2369 lines
126 KiB
JavaScript
2369 lines
126 KiB
JavaScript
/******/ (() => { // webpackBootstrap
|
|
/******/ var __webpack_modules__ = ({
|
|
|
|
/***/ 431:
|
|
/***/ (function(module) {
|
|
|
|
!function (e, t) {
|
|
true ? module.exports = t() : 0;
|
|
}(this, function () {
|
|
return function (e) {
|
|
function t(o) {
|
|
if (n[o]) return n[o].exports;
|
|
var i = n[o] = {
|
|
exports: {},
|
|
id: o,
|
|
loaded: !1
|
|
};
|
|
return e[o].call(i.exports, i, i.exports, t), i.loaded = !0, i.exports;
|
|
}
|
|
var n = {};
|
|
return t.m = e, t.c = n, t.p = "dist/", t(0);
|
|
}([function (e, t, n) {
|
|
"use strict";
|
|
|
|
function o(e) {
|
|
return e && e.__esModule ? e : {
|
|
default: e
|
|
};
|
|
}
|
|
var i = Object.assign || function (e) {
|
|
for (var t = 1; t < arguments.length; t++) {
|
|
var n = arguments[t];
|
|
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
}
|
|
return e;
|
|
},
|
|
r = n(1),
|
|
a = (o(r), n(6)),
|
|
u = o(a),
|
|
c = n(7),
|
|
s = o(c),
|
|
f = n(8),
|
|
d = o(f),
|
|
l = n(9),
|
|
p = o(l),
|
|
m = n(10),
|
|
b = o(m),
|
|
v = n(11),
|
|
y = o(v),
|
|
g = n(14),
|
|
h = o(g),
|
|
w = [],
|
|
k = !1,
|
|
x = {
|
|
offset: 120,
|
|
delay: 0,
|
|
easing: "ease",
|
|
duration: 400,
|
|
disable: !1,
|
|
once: !1,
|
|
startEvent: "DOMContentLoaded",
|
|
throttleDelay: 99,
|
|
debounceDelay: 50,
|
|
disableMutationObserver: !1
|
|
},
|
|
j = function () {
|
|
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
|
|
if (e && (k = !0), k) return w = (0, y.default)(w, x), (0, b.default)(w, x.once), w;
|
|
},
|
|
O = function () {
|
|
w = (0, h.default)(), j();
|
|
},
|
|
M = function () {
|
|
w.forEach(function (e, t) {
|
|
e.node.removeAttribute("data-aos"), e.node.removeAttribute("data-aos-easing"), e.node.removeAttribute("data-aos-duration"), e.node.removeAttribute("data-aos-delay");
|
|
});
|
|
},
|
|
S = function (e) {
|
|
return e === !0 || "mobile" === e && p.default.mobile() || "phone" === e && p.default.phone() || "tablet" === e && p.default.tablet() || "function" == typeof e && e() === !0;
|
|
},
|
|
_ = function (e) {
|
|
x = i(x, e), w = (0, h.default)();
|
|
var t = document.all && !window.atob;
|
|
return S(x.disable) || t ? M() : (x.disableMutationObserver || d.default.isSupported() || (console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '), x.disableMutationObserver = !0), document.querySelector("body").setAttribute("data-aos-easing", x.easing), document.querySelector("body").setAttribute("data-aos-duration", x.duration), document.querySelector("body").setAttribute("data-aos-delay", x.delay), "DOMContentLoaded" === x.startEvent && ["complete", "interactive"].indexOf(document.readyState) > -1 ? j(!0) : "load" === x.startEvent ? window.addEventListener(x.startEvent, function () {
|
|
j(!0);
|
|
}) : document.addEventListener(x.startEvent, function () {
|
|
j(!0);
|
|
}), window.addEventListener("resize", (0, s.default)(j, x.debounceDelay, !0)), window.addEventListener("orientationchange", (0, s.default)(j, x.debounceDelay, !0)), window.addEventListener("scroll", (0, u.default)(function () {
|
|
(0, b.default)(w, x.once);
|
|
}, x.throttleDelay)), x.disableMutationObserver || d.default.ready("[data-aos]", O), w);
|
|
};
|
|
e.exports = {
|
|
init: _,
|
|
refresh: j,
|
|
refreshHard: O
|
|
};
|
|
}, function (e, t) {},,,,, function (e, t) {
|
|
(function (t) {
|
|
"use strict";
|
|
|
|
function n(e, t, n) {
|
|
function o(t) {
|
|
var n = b,
|
|
o = v;
|
|
return b = v = void 0, k = t, g = e.apply(o, n);
|
|
}
|
|
function r(e) {
|
|
return k = e, h = setTimeout(f, t), M ? o(e) : g;
|
|
}
|
|
function a(e) {
|
|
var n = e - w,
|
|
o = e - k,
|
|
i = t - n;
|
|
return S ? j(i, y - o) : i;
|
|
}
|
|
function c(e) {
|
|
var n = e - w,
|
|
o = e - k;
|
|
return void 0 === w || n >= t || n < 0 || S && o >= y;
|
|
}
|
|
function f() {
|
|
var e = O();
|
|
return c(e) ? d(e) : void (h = setTimeout(f, a(e)));
|
|
}
|
|
function d(e) {
|
|
return h = void 0, _ && b ? o(e) : (b = v = void 0, g);
|
|
}
|
|
function l() {
|
|
void 0 !== h && clearTimeout(h), k = 0, b = w = v = h = void 0;
|
|
}
|
|
function p() {
|
|
return void 0 === h ? g : d(O());
|
|
}
|
|
function m() {
|
|
var e = O(),
|
|
n = c(e);
|
|
if (b = arguments, v = this, w = e, n) {
|
|
if (void 0 === h) return r(w);
|
|
if (S) return h = setTimeout(f, t), o(w);
|
|
}
|
|
return void 0 === h && (h = setTimeout(f, t)), g;
|
|
}
|
|
var b,
|
|
v,
|
|
y,
|
|
g,
|
|
h,
|
|
w,
|
|
k = 0,
|
|
M = !1,
|
|
S = !1,
|
|
_ = !0;
|
|
if ("function" != typeof e) throw new TypeError(s);
|
|
return t = u(t) || 0, i(n) && (M = !!n.leading, S = "maxWait" in n, y = S ? x(u(n.maxWait) || 0, t) : y, _ = "trailing" in n ? !!n.trailing : _), m.cancel = l, m.flush = p, m;
|
|
}
|
|
function o(e, t, o) {
|
|
var r = !0,
|
|
a = !0;
|
|
if ("function" != typeof e) throw new TypeError(s);
|
|
return i(o) && (r = "leading" in o ? !!o.leading : r, a = "trailing" in o ? !!o.trailing : a), n(e, t, {
|
|
leading: r,
|
|
maxWait: t,
|
|
trailing: a
|
|
});
|
|
}
|
|
function i(e) {
|
|
var t = "undefined" == typeof e ? "undefined" : c(e);
|
|
return !!e && ("object" == t || "function" == t);
|
|
}
|
|
function r(e) {
|
|
return !!e && "object" == ("undefined" == typeof e ? "undefined" : c(e));
|
|
}
|
|
function a(e) {
|
|
return "symbol" == ("undefined" == typeof e ? "undefined" : c(e)) || r(e) && k.call(e) == d;
|
|
}
|
|
function u(e) {
|
|
if ("number" == typeof e) return e;
|
|
if (a(e)) return f;
|
|
if (i(e)) {
|
|
var t = "function" == typeof e.valueOf ? e.valueOf() : e;
|
|
e = i(t) ? t + "" : t;
|
|
}
|
|
if ("string" != typeof e) return 0 === e ? e : +e;
|
|
e = e.replace(l, "");
|
|
var n = m.test(e);
|
|
return n || b.test(e) ? v(e.slice(2), n ? 2 : 8) : p.test(e) ? f : +e;
|
|
}
|
|
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
return typeof e;
|
|
} : function (e) {
|
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
},
|
|
s = "Expected a function",
|
|
f = NaN,
|
|
d = "[object Symbol]",
|
|
l = /^\s+|\s+$/g,
|
|
p = /^[-+]0x[0-9a-f]+$/i,
|
|
m = /^0b[01]+$/i,
|
|
b = /^0o[0-7]+$/i,
|
|
v = parseInt,
|
|
y = "object" == ("undefined" == typeof t ? "undefined" : c(t)) && t && t.Object === Object && t,
|
|
g = "object" == ("undefined" == typeof self ? "undefined" : c(self)) && self && self.Object === Object && self,
|
|
h = y || g || Function("return this")(),
|
|
w = Object.prototype,
|
|
k = w.toString,
|
|
x = Math.max,
|
|
j = Math.min,
|
|
O = function () {
|
|
return h.Date.now();
|
|
};
|
|
e.exports = o;
|
|
}).call(t, function () {
|
|
return this;
|
|
}());
|
|
}, function (e, t) {
|
|
(function (t) {
|
|
"use strict";
|
|
|
|
function n(e, t, n) {
|
|
function i(t) {
|
|
var n = b,
|
|
o = v;
|
|
return b = v = void 0, O = t, g = e.apply(o, n);
|
|
}
|
|
function r(e) {
|
|
return O = e, h = setTimeout(f, t), M ? i(e) : g;
|
|
}
|
|
function u(e) {
|
|
var n = e - w,
|
|
o = e - O,
|
|
i = t - n;
|
|
return S ? x(i, y - o) : i;
|
|
}
|
|
function s(e) {
|
|
var n = e - w,
|
|
o = e - O;
|
|
return void 0 === w || n >= t || n < 0 || S && o >= y;
|
|
}
|
|
function f() {
|
|
var e = j();
|
|
return s(e) ? d(e) : void (h = setTimeout(f, u(e)));
|
|
}
|
|
function d(e) {
|
|
return h = void 0, _ && b ? i(e) : (b = v = void 0, g);
|
|
}
|
|
function l() {
|
|
void 0 !== h && clearTimeout(h), O = 0, b = w = v = h = void 0;
|
|
}
|
|
function p() {
|
|
return void 0 === h ? g : d(j());
|
|
}
|
|
function m() {
|
|
var e = j(),
|
|
n = s(e);
|
|
if (b = arguments, v = this, w = e, n) {
|
|
if (void 0 === h) return r(w);
|
|
if (S) return h = setTimeout(f, t), i(w);
|
|
}
|
|
return void 0 === h && (h = setTimeout(f, t)), g;
|
|
}
|
|
var b,
|
|
v,
|
|
y,
|
|
g,
|
|
h,
|
|
w,
|
|
O = 0,
|
|
M = !1,
|
|
S = !1,
|
|
_ = !0;
|
|
if ("function" != typeof e) throw new TypeError(c);
|
|
return t = a(t) || 0, o(n) && (M = !!n.leading, S = "maxWait" in n, y = S ? k(a(n.maxWait) || 0, t) : y, _ = "trailing" in n ? !!n.trailing : _), m.cancel = l, m.flush = p, m;
|
|
}
|
|
function o(e) {
|
|
var t = "undefined" == typeof e ? "undefined" : u(e);
|
|
return !!e && ("object" == t || "function" == t);
|
|
}
|
|
function i(e) {
|
|
return !!e && "object" == ("undefined" == typeof e ? "undefined" : u(e));
|
|
}
|
|
function r(e) {
|
|
return "symbol" == ("undefined" == typeof e ? "undefined" : u(e)) || i(e) && w.call(e) == f;
|
|
}
|
|
function a(e) {
|
|
if ("number" == typeof e) return e;
|
|
if (r(e)) return s;
|
|
if (o(e)) {
|
|
var t = "function" == typeof e.valueOf ? e.valueOf() : e;
|
|
e = o(t) ? t + "" : t;
|
|
}
|
|
if ("string" != typeof e) return 0 === e ? e : +e;
|
|
e = e.replace(d, "");
|
|
var n = p.test(e);
|
|
return n || m.test(e) ? b(e.slice(2), n ? 2 : 8) : l.test(e) ? s : +e;
|
|
}
|
|
var u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
return typeof e;
|
|
} : function (e) {
|
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
},
|
|
c = "Expected a function",
|
|
s = NaN,
|
|
f = "[object Symbol]",
|
|
d = /^\s+|\s+$/g,
|
|
l = /^[-+]0x[0-9a-f]+$/i,
|
|
p = /^0b[01]+$/i,
|
|
m = /^0o[0-7]+$/i,
|
|
b = parseInt,
|
|
v = "object" == ("undefined" == typeof t ? "undefined" : u(t)) && t && t.Object === Object && t,
|
|
y = "object" == ("undefined" == typeof self ? "undefined" : u(self)) && self && self.Object === Object && self,
|
|
g = v || y || Function("return this")(),
|
|
h = Object.prototype,
|
|
w = h.toString,
|
|
k = Math.max,
|
|
x = Math.min,
|
|
j = function () {
|
|
return g.Date.now();
|
|
};
|
|
e.exports = n;
|
|
}).call(t, function () {
|
|
return this;
|
|
}());
|
|
}, function (e, t) {
|
|
"use strict";
|
|
|
|
function n(e) {
|
|
var t = void 0,
|
|
o = void 0,
|
|
i = void 0;
|
|
for (t = 0; t < e.length; t += 1) {
|
|
if (o = e[t], o.dataset && o.dataset.aos) return !0;
|
|
if (i = o.children && n(o.children)) return !0;
|
|
}
|
|
return !1;
|
|
}
|
|
function o() {
|
|
return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
|
}
|
|
function i() {
|
|
return !!o();
|
|
}
|
|
function r(e, t) {
|
|
var n = window.document,
|
|
i = o(),
|
|
r = new i(a);
|
|
u = t, r.observe(n.documentElement, {
|
|
childList: !0,
|
|
subtree: !0,
|
|
removedNodes: !0
|
|
});
|
|
}
|
|
function a(e) {
|
|
e && e.forEach(function (e) {
|
|
var t = Array.prototype.slice.call(e.addedNodes),
|
|
o = Array.prototype.slice.call(e.removedNodes),
|
|
i = t.concat(o);
|
|
if (n(i)) return u();
|
|
});
|
|
}
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var u = function () {};
|
|
t.default = {
|
|
isSupported: i,
|
|
ready: r
|
|
};
|
|
}, function (e, t) {
|
|
"use strict";
|
|
|
|
function n(e, t) {
|
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
function o() {
|
|
return navigator.userAgent || navigator.vendor || window.opera || "";
|
|
}
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var i = function () {
|
|
function e(e, t) {
|
|
for (var n = 0; n < t.length; n++) {
|
|
var o = t[n];
|
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o);
|
|
}
|
|
}
|
|
return function (t, n, o) {
|
|
return n && e(t.prototype, n), o && e(t, o), t;
|
|
};
|
|
}(),
|
|
r = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,
|
|
a = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
|
|
u = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,
|
|
c = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,
|
|
s = function () {
|
|
function e() {
|
|
n(this, e);
|
|
}
|
|
return i(e, [{
|
|
key: "phone",
|
|
value: function () {
|
|
var e = o();
|
|
return !(!r.test(e) && !a.test(e.substr(0, 4)));
|
|
}
|
|
}, {
|
|
key: "mobile",
|
|
value: function () {
|
|
var e = o();
|
|
return !(!u.test(e) && !c.test(e.substr(0, 4)));
|
|
}
|
|
}, {
|
|
key: "tablet",
|
|
value: function () {
|
|
return this.mobile() && !this.phone();
|
|
}
|
|
}]), e;
|
|
}();
|
|
t.default = new s();
|
|
}, function (e, t) {
|
|
"use strict";
|
|
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var n = function (e, t, n) {
|
|
var o = e.node.getAttribute("data-aos-once");
|
|
t > e.position ? e.node.classList.add("aos-animate") : "undefined" != typeof o && ("false" === o || !n && "true" !== o) && e.node.classList.remove("aos-animate");
|
|
},
|
|
o = function (e, t) {
|
|
var o = window.pageYOffset,
|
|
i = window.innerHeight;
|
|
e.forEach(function (e, r) {
|
|
n(e, i + o, t);
|
|
});
|
|
};
|
|
t.default = o;
|
|
}, function (e, t, n) {
|
|
"use strict";
|
|
|
|
function o(e) {
|
|
return e && e.__esModule ? e : {
|
|
default: e
|
|
};
|
|
}
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var i = n(12),
|
|
r = o(i),
|
|
a = function (e, t) {
|
|
return e.forEach(function (e, n) {
|
|
e.node.classList.add("aos-init"), e.position = (0, r.default)(e.node, t.offset);
|
|
}), e;
|
|
};
|
|
t.default = a;
|
|
}, function (e, t, n) {
|
|
"use strict";
|
|
|
|
function o(e) {
|
|
return e && e.__esModule ? e : {
|
|
default: e
|
|
};
|
|
}
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var i = n(13),
|
|
r = o(i),
|
|
a = function (e, t) {
|
|
var n = 0,
|
|
o = 0,
|
|
i = window.innerHeight,
|
|
a = {
|
|
offset: e.getAttribute("data-aos-offset"),
|
|
anchor: e.getAttribute("data-aos-anchor"),
|
|
anchorPlacement: e.getAttribute("data-aos-anchor-placement")
|
|
};
|
|
switch (a.offset && !isNaN(a.offset) && (o = parseInt(a.offset)), a.anchor && document.querySelectorAll(a.anchor) && (e = document.querySelectorAll(a.anchor)[0]), n = (0, r.default)(e).top, a.anchorPlacement) {
|
|
case "top-bottom":
|
|
break;
|
|
case "center-bottom":
|
|
n += e.offsetHeight / 2;
|
|
break;
|
|
case "bottom-bottom":
|
|
n += e.offsetHeight;
|
|
break;
|
|
case "top-center":
|
|
n += i / 2;
|
|
break;
|
|
case "bottom-center":
|
|
n += i / 2 + e.offsetHeight;
|
|
break;
|
|
case "center-center":
|
|
n += i / 2 + e.offsetHeight / 2;
|
|
break;
|
|
case "top-top":
|
|
n += i;
|
|
break;
|
|
case "bottom-top":
|
|
n += e.offsetHeight + i;
|
|
break;
|
|
case "center-top":
|
|
n += e.offsetHeight / 2 + i;
|
|
}
|
|
return a.anchorPlacement || a.offset || isNaN(t) || (o = t), n + o;
|
|
};
|
|
t.default = a;
|
|
}, function (e, t) {
|
|
"use strict";
|
|
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var n = function (e) {
|
|
for (var t = 0, n = 0; e && !isNaN(e.offsetLeft) && !isNaN(e.offsetTop);) t += e.offsetLeft - ("BODY" != e.tagName ? e.scrollLeft : 0), n += e.offsetTop - ("BODY" != e.tagName ? e.scrollTop : 0), e = e.offsetParent;
|
|
return {
|
|
top: n,
|
|
left: t
|
|
};
|
|
};
|
|
t.default = n;
|
|
}, function (e, t) {
|
|
"use strict";
|
|
|
|
Object.defineProperty(t, "__esModule", {
|
|
value: !0
|
|
});
|
|
var n = function (e) {
|
|
return e = e || document.querySelectorAll("[data-aos]"), Array.prototype.map.call(e, function (e) {
|
|
return {
|
|
node: e
|
|
};
|
|
});
|
|
};
|
|
t.default = n;
|
|
}]);
|
|
});
|
|
|
|
/***/ })
|
|
|
|
/******/ });
|
|
/************************************************************************/
|
|
/******/ // The module cache
|
|
/******/ var __webpack_module_cache__ = {};
|
|
/******/
|
|
/******/ // The require function
|
|
/******/ function __webpack_require__(moduleId) {
|
|
/******/ // Check if module is in cache
|
|
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
/******/ if (cachedModule !== undefined) {
|
|
/******/ return cachedModule.exports;
|
|
/******/ }
|
|
/******/ // Create a new module (and put it into the cache)
|
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
/******/ // no module.id needed
|
|
/******/ // no module.loaded needed
|
|
/******/ exports: {}
|
|
/******/ };
|
|
/******/
|
|
/******/ // Execute the module function
|
|
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
/******/
|
|
/******/ // Return the exports of the module
|
|
/******/ return module.exports;
|
|
/******/ }
|
|
/******/
|
|
/************************************************************************/
|
|
/******/ /* webpack/runtime/compat get default export */
|
|
/******/ (() => {
|
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
/******/ __webpack_require__.n = (module) => {
|
|
/******/ var getter = module && module.__esModule ?
|
|
/******/ () => (module['default']) :
|
|
/******/ () => (module);
|
|
/******/ __webpack_require__.d(getter, { a: getter });
|
|
/******/ return getter;
|
|
/******/ };
|
|
/******/ })();
|
|
/******/
|
|
/******/ /* webpack/runtime/define property getters */
|
|
/******/ (() => {
|
|
/******/ // define getter functions for harmony exports
|
|
/******/ __webpack_require__.d = (exports, definition) => {
|
|
/******/ for(var key in definition) {
|
|
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
/******/ }
|
|
/******/ }
|
|
/******/ };
|
|
/******/ })();
|
|
/******/
|
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
/******/ (() => {
|
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
/******/ })();
|
|
/******/
|
|
/************************************************************************/
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
|
|
// UNUSED EXPORTS: default
|
|
|
|
;// ./static/js/lib/validation.js
|
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
var Validation = /*#__PURE__*/function () {
|
|
function Validation() {
|
|
_classCallCheck(this, Validation);
|
|
}
|
|
return _createClass(Validation, null, [{
|
|
key: "isEmpty",
|
|
value:
|
|
/*
|
|
isNullOrWhitespace(v) {
|
|
let txt = JSON.stringify(v).replace('/\s\g', '');
|
|
return (txt == '' || 'null');
|
|
}
|
|
*/
|
|
|
|
function isEmpty(object) {
|
|
var isEmpty = true;
|
|
if (object !== null && object !== "null" && object !== undefined && object !== "undefined") {
|
|
if (object.length == undefined) {
|
|
isEmpty = false; // object exists but isn't a collection
|
|
} else if (typeof object === "function") {
|
|
isEmpty = false; // object is reference
|
|
} else {
|
|
// string or collection
|
|
|
|
var isString = typeof object == "string";
|
|
if (isString) object = object.trim();
|
|
if (object.length > 0) {
|
|
if (isString) {
|
|
isEmpty = false; // String greater than length 0
|
|
} else {
|
|
if (typeof object[0] != "string") {
|
|
isEmpty = false;
|
|
} else {
|
|
for (var i = 0; i < object.length; i++) {
|
|
if (object[i] != "") {
|
|
isEmpty = false;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return isEmpty;
|
|
}
|
|
}, {
|
|
key: "isValidNumber",
|
|
value: function isValidNumber(value, positiveOnly) {
|
|
return !Validation.isEmpty(value) && !isNaN(value) && (!positiveOnly || parseFloat(value) > 0);
|
|
}
|
|
}, {
|
|
key: "getDataContentType",
|
|
value: function getDataContentType(params) {
|
|
var data = null;
|
|
var contentType = '';
|
|
if (!Validation.isEmpty(params)) {
|
|
if (typeof params === "string") {
|
|
data = params;
|
|
contentType = "application/x-www-form-urlencoded; charset=UTF-8";
|
|
} else {
|
|
data = JSON.stringify(params);
|
|
contentType = "application/json; charset=UTF-8";
|
|
}
|
|
}
|
|
return {
|
|
Data: data,
|
|
ContentType: contentType
|
|
};
|
|
}
|
|
}, {
|
|
key: "arrayContainsItem",
|
|
value: function arrayContainsItem(array, itemValue) {
|
|
var hasItem = false;
|
|
if (!Validation.isEmpty(array) && !Validation.isEmpty(itemValue)) {
|
|
var isJQueryElementArray = array[0] instanceof jQuery;
|
|
if (isJQueryElementArray) {
|
|
for (var i = 0; i < array.length; i++) {
|
|
if (document.querySelectorAll(array[i]).is(itemValue)) {
|
|
hasItem = true;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
var isDate = array[0] instanceof Date;
|
|
if (isDate) {
|
|
for (var _i = 0; _i < array.length; _i++) {
|
|
if (array[_i].getTime() === itemValue.getTime()) {
|
|
hasItem = true;
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
for (var _i2 = 0; _i2 < array.length; _i2++) {
|
|
if (array[_i2] == itemValue) {
|
|
hasItem = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return hasItem;
|
|
}
|
|
}, {
|
|
key: "dictHasKey",
|
|
value: function dictHasKey(d, k) {
|
|
return k in d;
|
|
}
|
|
}, {
|
|
key: "areEqualDicts",
|
|
value: function areEqualDicts(dict1, dict2) {
|
|
var keys1 = Object.keys(dict1);
|
|
var keys2 = Object.keys(dict2);
|
|
if (keys1.length !== keys2.length) {
|
|
return false;
|
|
}
|
|
for (var _i3 = 0, _keys = keys1; _i3 < _keys.length; _i3++) {
|
|
var key = _keys[_i3];
|
|
if (dict1[key] !== dict2[key]) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}, {
|
|
key: "imageExists",
|
|
value: function imageExists(url, callback) {
|
|
var img = new Image();
|
|
img.onload = function () {
|
|
callback(true);
|
|
};
|
|
img.onerror = function () {
|
|
callback(false);
|
|
};
|
|
img.src = url;
|
|
}
|
|
}, {
|
|
key: "toFixedOrDefault",
|
|
value: function toFixedOrDefault(value, decimalPlaces) {
|
|
var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
return Validation.isValidNumber(value) ? parseFloat(value).toFixed(decimalPlaces) : defaultValue;
|
|
}
|
|
}]);
|
|
}();
|
|
|
|
;// ./static/js/dom.js
|
|
function dom_typeof(o) { "@babel/helpers - typeof"; return dom_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, dom_typeof(o); }
|
|
function _defineProperty(e, r, t) { return (r = dom_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function dom_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function dom_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, dom_toPropertyKey(o.key), o); } }
|
|
function dom_createClass(e, r, t) { return r && dom_defineProperties(e.prototype, r), t && dom_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function dom_toPropertyKey(t) { var i = dom_toPrimitive(t, "string"); return "symbol" == dom_typeof(i) ? i : i + ""; }
|
|
function dom_toPrimitive(t, r) { if ("object" != dom_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != dom_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var DOM = /*#__PURE__*/function () {
|
|
function DOM() {
|
|
dom_classCallCheck(this, DOM);
|
|
}
|
|
return dom_createClass(DOM, null, [{
|
|
key: "setElementAttributesValuesCurrentAndPrevious",
|
|
value: function setElementAttributesValuesCurrentAndPrevious(element, data) {
|
|
DOM.setElementAttributeValueCurrent(element, data);
|
|
DOM.setElementAttributeValuePrevious(element, data);
|
|
}
|
|
}, {
|
|
key: "setElementAttributeValueCurrent",
|
|
value: function setElementAttributeValueCurrent(element, data) {
|
|
element.setAttribute(attrValueCurrent, data);
|
|
}
|
|
}, {
|
|
key: "setElementAttributeValuePrevious",
|
|
value: function setElementAttributeValuePrevious(element, data) {
|
|
element.setAttribute(attrValuePrevious, data);
|
|
}
|
|
}, {
|
|
key: "setElementValuesCurrentAndPrevious",
|
|
value: function setElementValuesCurrentAndPrevious(element, data) {
|
|
DOM.setElementValueCurrent(element, data);
|
|
DOM.setElementAttributeValuePrevious(element, data);
|
|
}
|
|
}, {
|
|
key: "setElementValueCurrent",
|
|
value: function setElementValueCurrent(element, data) {
|
|
DOM.setElementAttributeValueCurrent(element, data);
|
|
if (element.type === "checkbox") {
|
|
element.checked = data;
|
|
} else if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA' || element.tagName === 'SELECT') {
|
|
element.value = data;
|
|
} else {
|
|
element.textContent = data;
|
|
}
|
|
}
|
|
}, {
|
|
key: "setElementValueCurrentIfEmpty",
|
|
value: function setElementValueCurrentIfEmpty(element, data) {
|
|
if (Validation.isEmpty(DOM.getElementValueCurrent(element))) {
|
|
DOM.setElementValueCurrent(element, data);
|
|
}
|
|
}
|
|
}, {
|
|
key: "getCellFromElement",
|
|
value: function getCellFromElement(element) {
|
|
return element.closest('td');
|
|
}
|
|
}, {
|
|
key: "getRowFromElement",
|
|
value: function getRowFromElement(element, flagRow) {
|
|
var selector = Validation.isEmpty(flagRow) ? 'tr' : 'tr.' + flagRow;
|
|
return element.closest(selector);
|
|
}
|
|
}, {
|
|
key: "getClosestParent",
|
|
value: function getClosestParent(element, selector) {
|
|
var parent = element.parentElement;
|
|
while (parent) {
|
|
if (parent.matches(selector)) {
|
|
return parent;
|
|
}
|
|
parent = parent.parentElement;
|
|
}
|
|
return null;
|
|
}
|
|
}, {
|
|
key: "convertForm2JSON",
|
|
value: function convertForm2JSON(elementForm) {
|
|
var dataForm = {};
|
|
if (Validation.isEmpty(elementForm)) {
|
|
return dataForm;
|
|
}
|
|
var containersFilter = elementForm.querySelectorAll('.' + flagContainerInput + '.' + flagFilter);
|
|
var containerFilter, labelFilter, keyFilter, filter;
|
|
for (var indexFilter = 0; indexFilter < containersFilter.length; indexFilter++) {
|
|
containerFilter = containersFilter[indexFilter];
|
|
labelFilter = containerFilter.querySelector('label');
|
|
keyFilter = labelFilter.getAttribute('for');
|
|
filter = containerFilter.querySelector("#".concat(keyFilter));
|
|
dataForm[keyFilter] = DOM.getElementValueCurrent(filter);
|
|
}
|
|
return dataForm;
|
|
}
|
|
}, {
|
|
key: "loadPageBody",
|
|
value: function loadPageBody(contentNew) {
|
|
var pageBody = document.querySelector(idPageBody);
|
|
pageBody.innerHTML = contentNew;
|
|
}
|
|
}, {
|
|
key: "getHashPageCurrent",
|
|
value: function getHashPageCurrent() {
|
|
var hashPageCurrent = document.body.dataset.page;
|
|
return hashPageCurrent;
|
|
}
|
|
}, {
|
|
key: "updateAndCheckIsElementDirty",
|
|
value: function updateAndCheckIsElementDirty(element) {
|
|
element.setAttribute(attrValueCurrent, DOM.getElementValueCurrent(element));
|
|
return DOM.isElementDirty(element);
|
|
}
|
|
}, {
|
|
key: "isElementDirty",
|
|
value: function isElementDirty(element) {
|
|
var isDirty = element.getAttribute(attrValuePrevious) != element.getAttribute(attrValueCurrent);
|
|
DOM.handleDirtyElement(element, isDirty);
|
|
return isDirty;
|
|
}
|
|
}, {
|
|
key: "handleDirtyElement",
|
|
value: function handleDirtyElement(element, isDirty) {
|
|
DOM.toggleElementHasClassnameFlag(element, isDirty, flagDirty);
|
|
}
|
|
}, {
|
|
key: "toggleElementHasClassnameFlag",
|
|
value: function toggleElementHasClassnameFlag(element, elementHasFlag, flag) {
|
|
var elementAlreadyHasFlag = element.classList.contains(flag);
|
|
if (elementHasFlag == elementAlreadyHasFlag) return;
|
|
if (elementHasFlag) {
|
|
element.classList.add(flag);
|
|
} else {
|
|
element.classList.remove(flag);
|
|
}
|
|
}
|
|
}, {
|
|
key: "hasDirtyChildrenContainer",
|
|
value: function hasDirtyChildrenContainer(container) {
|
|
if (container == null) return false;
|
|
return container.querySelector('.' + flagDirty) != null;
|
|
}
|
|
}, {
|
|
key: "hasDirtyChildrenNotDeletedContainer",
|
|
value: function hasDirtyChildrenNotDeletedContainer(container) {
|
|
if (container == null || container.classList.contains(flagDelete)) return false;
|
|
return container.querySelector('.' + flagDirty + ':not(.' + flagDelete + ', .' + flagDelete + ' *)') != null;
|
|
}
|
|
}, {
|
|
key: "getElementValueCurrent",
|
|
value: function getElementValueCurrent(element) {
|
|
var returnVal = '';
|
|
if (!Validation.isEmpty(element)) {
|
|
if (element.type === "checkbox") {
|
|
returnVal = element.checked;
|
|
}
|
|
/*
|
|
else if (element.classList.contains(flagIsDatePicker)) {
|
|
returnVal = getDatePickerDate(element, adjust4DayLightSavings);
|
|
}
|
|
*/else if (element.tagName === 'INPUT' || element.tagName === 'TEXTAREA' || element.tagName === 'SELECT') {
|
|
returnVal = element.value;
|
|
} else if (element.tagName === 'BUTTON' && element.classList.contains(flagActive)) {
|
|
returnVal = element.classList.contains(flagDelete);
|
|
} else if (element.tagName === 'TD') {
|
|
returnVal = DOM.getElementAttributeValueCurrent(element);
|
|
} else {
|
|
returnVal = element.textContent;
|
|
}
|
|
}
|
|
if (Validation.isEmpty(returnVal)) returnVal = '';
|
|
return returnVal;
|
|
}
|
|
}, {
|
|
key: "getElementAttributeValueCurrent",
|
|
value: function getElementAttributeValueCurrent(element) {
|
|
debugger;
|
|
if (Validation.isEmpty(element)) return null;
|
|
return element.getAttribute(attrValueCurrent);
|
|
if (!Validation.isEmpty(value) && element.type === "checkbox") {
|
|
value = value === 'true';
|
|
}
|
|
return value;
|
|
}
|
|
}, {
|
|
key: "getElementAttributeValuePrevious",
|
|
value: function getElementAttributeValuePrevious(element) {
|
|
if (Validation.isEmpty(element)) return null;
|
|
return element.getAttribute(attrValuePrevious);
|
|
if (!Validation.isEmpty(value) && element.type === "checkbox") {
|
|
value = value === 'true';
|
|
}
|
|
return value;
|
|
}
|
|
/* base_table.handleChangeElementCellTable
|
|
static updateAndCheckIsTableElementDirty(element) {
|
|
let wasDirty = DOM.isElementDirty(element);
|
|
let row = DOM.getRowFromElement(element);
|
|
let wasDirtyRow = DOM.hasDirtyChildrenNotDeletedContainer(row);
|
|
let isDirty = DOM.updateAndCheckIsElementDirty(element);
|
|
let cell = DOM.getCellFromElement(element);
|
|
console.log({element, row, cell, isDirty, wasDirty});
|
|
if (isDirty != wasDirty) {
|
|
DOM.handleDirtyElement(cell, isDirty);
|
|
let isDirtyRow = DOM.hasDirtyChildrenNotDeletedContainer(row);
|
|
console.log({isDirtyRow, wasDirtyRow});
|
|
if (isDirtyRow != wasDirtyRow) {
|
|
DOM.handleDirtyElement(row, isDirtyRow);
|
|
}
|
|
}
|
|
}
|
|
*/
|
|
/*
|
|
static updateElement(id, data) {
|
|
const element = document.getElementById(id);
|
|
if (element) {
|
|
element.textContent = data;
|
|
}
|
|
}
|
|
*/
|
|
/* non-static method on page object to use
|
|
static handleChangeElement(element) {}
|
|
*/
|
|
}, {
|
|
key: "scrollToElement",
|
|
value: function scrollToElement(parent, element) {
|
|
// REQUIRED: parent has scroll-bar
|
|
parent.scrollTop(parent.scrollTop() + (element.offset().top - parent.offset().top));
|
|
}
|
|
}, {
|
|
key: "isElementInContainer",
|
|
value: function isElementInContainer(container, element) {
|
|
if (typeof jQuery === 'function') {
|
|
if (container instanceof jQuery) container = container[0];
|
|
if (element instanceof jQuery) element = element[0];
|
|
}
|
|
var containerBounds = container.getBoundingClientRect();
|
|
var elementBounds = element.getBoundingClientRect();
|
|
return containerBounds.top <= elementBounds.top && containerBounds.left <= elementBounds.left && elementBounds.top + elementBounds.height <= containerBounds.top + containerBounds.height && elementBounds.left + elementBounds.width <= containerBounds.left + containerBounds.width;
|
|
}
|
|
}, {
|
|
key: "alertError",
|
|
value: function alertError(errorType, errorText) {
|
|
alert(errorType + '\n' + errorText);
|
|
}
|
|
}, {
|
|
key: "createOptionUnselectedProductVariation",
|
|
value: function createOptionUnselectedProductVariation() {
|
|
return _defineProperty(_defineProperty({}, flagProductVariationType, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, flagNameAttrOptionText, [flagName]), flagNameAttrOptionValue, [attrIdProductVariationType]), flagName, 'Select Variation Type'), attrIdProductVariationType, 0)), flagProductVariation, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, flagNameAttrOptionText, [flagName]), flagNameAttrOptionValue, [attrIdProductVariation]), flagName, 'Select Variation'), attrIdProductVariation, 0));
|
|
}
|
|
}, {
|
|
key: "createOption",
|
|
value: function createOption(optionJson) {
|
|
if (Validation.isEmpty(optionJson)) optionJson = {
|
|
text: 'Select',
|
|
value: 0
|
|
};
|
|
var option = document.createElement('option');
|
|
option.value = optionJson.value;
|
|
option.textContent = optionJson.text;
|
|
option.selected = optionJson.selected;
|
|
return option;
|
|
}
|
|
}]);
|
|
}();
|
|
|
|
;// ./static/js/lib/events.js
|
|
function events_typeof(o) { "@babel/helpers - typeof"; return events_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, events_typeof(o); }
|
|
function events_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function events_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, events_toPropertyKey(o.key), o); } }
|
|
function events_createClass(e, r, t) { return r && events_defineProperties(e.prototype, r), t && events_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function events_toPropertyKey(t) { var i = events_toPrimitive(t, "string"); return "symbol" == events_typeof(i) ? i : i + ""; }
|
|
function events_toPrimitive(t, r) { if ("object" != events_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != events_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
var Events = /*#__PURE__*/function () {
|
|
function Events() {
|
|
events_classCallCheck(this, Events);
|
|
}
|
|
return events_createClass(Events, null, [{
|
|
key: "initialiseEventHandler",
|
|
value: function initialiseEventHandler(selectorElement, classInitialised, eventHandler) {
|
|
document.querySelectorAll(selectorElement).forEach(function (element) {
|
|
if (element.classList.contains(classInitialised)) return;
|
|
element.classList.add(classInitialised);
|
|
eventHandler(element);
|
|
});
|
|
}
|
|
}]);
|
|
}();
|
|
|
|
;// ./static/js/lib/local_storage.js
|
|
function local_storage_typeof(o) { "@babel/helpers - typeof"; return local_storage_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, local_storage_typeof(o); }
|
|
function local_storage_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function local_storage_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, local_storage_toPropertyKey(o.key), o); } }
|
|
function local_storage_createClass(e, r, t) { return r && local_storage_defineProperties(e.prototype, r), t && local_storage_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function local_storage_toPropertyKey(t) { var i = local_storage_toPrimitive(t, "string"); return "symbol" == local_storage_typeof(i) ? i : i + ""; }
|
|
function local_storage_toPrimitive(t, r) { if ("object" != local_storage_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != local_storage_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var LocalStorage = /*#__PURE__*/function () {
|
|
function LocalStorage() {
|
|
local_storage_classCallCheck(this, LocalStorage);
|
|
}
|
|
return local_storage_createClass(LocalStorage, null, [{
|
|
key: "getLocalStorage",
|
|
value:
|
|
/*
|
|
function getPageLocalStorage(pageHash) {
|
|
|
|
let ls;
|
|
try {
|
|
ls = JSON.parse(localStorage.getItem(pageHash));
|
|
} catch {
|
|
|
|
}
|
|
|
|
if (Validation.isEmpty(ls)) return {}
|
|
|
|
return ls;
|
|
}
|
|
function getPageLocalStorageCurrent() {
|
|
|
|
return JSON.parse(localStorage.getItem(hashPageCurrent));
|
|
}
|
|
|
|
function setPageLocalStorage(pageHash, newLS) {
|
|
|
|
localStorage.setItem(pageHash, JSON.stringify(newLS));
|
|
}
|
|
|
|
function clearPageLocalStorage(pageHash) {
|
|
localStorage.removeItem(pageHash);
|
|
}
|
|
|
|
function setupPageLocalStorage(pageHash) {
|
|
|
|
let ls = getPageLocalStorage(pageHash);
|
|
|
|
if (Validation.isEmpty(ls)) ls = {};
|
|
|
|
setPageLocalStorage(pageHash, ls);
|
|
}
|
|
*/
|
|
|
|
function getLocalStorage(key) {
|
|
return JSON.parse(localStorage.getItem(key));
|
|
}
|
|
}, {
|
|
key: "setLocalStorage",
|
|
value: function setLocalStorage(key, newLS) {
|
|
localStorage.setItem(key, JSON.stringify(newLS));
|
|
}
|
|
|
|
/*
|
|
function setupPageLocalStorageNext(pageHashNext) {
|
|
let lsOld = getPageLocalStorage(hashPageCurrent);
|
|
hashPageCurrent = pageHashNext;
|
|
clearPageLocalStorage(hashPageCurrent);
|
|
setupPageLocalStorage(hashPageCurrent);
|
|
let lsNew = getPageLocalStorage(hashPageCurrent);
|
|
lsNew[keyBasket] = (keyBasket in lsOld) ? lsOld[keyBasket] : {'items': []};
|
|
setPageLocalStorage(hashPageCurrent, lsNew);
|
|
}
|
|
*/
|
|
}]);
|
|
}();
|
|
|
|
;// ./static/js/components/common/temporary/overlay_confirm.js
|
|
function overlay_confirm_typeof(o) { "@babel/helpers - typeof"; return overlay_confirm_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, overlay_confirm_typeof(o); }
|
|
function overlay_confirm_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function overlay_confirm_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, overlay_confirm_toPropertyKey(o.key), o); } }
|
|
function overlay_confirm_createClass(e, r, t) { return r && overlay_confirm_defineProperties(e.prototype, r), t && overlay_confirm_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function overlay_confirm_toPropertyKey(t) { var i = overlay_confirm_toPrimitive(t, "string"); return "symbol" == overlay_confirm_typeof(i) ? i : i + ""; }
|
|
function overlay_confirm_toPrimitive(t, r) { if ("object" != overlay_confirm_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != overlay_confirm_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var OverlayConfirm = /*#__PURE__*/function () {
|
|
function OverlayConfirm() {
|
|
overlay_confirm_classCallCheck(this, OverlayConfirm);
|
|
}
|
|
return overlay_confirm_createClass(OverlayConfirm, null, [{
|
|
key: "hookup",
|
|
value: function hookup(callbackSuccess) {
|
|
Events.initialiseEventHandler(idOverlayConfirm + ' button.' + flagCancel, flagInitialised, function (buttonCancel) {
|
|
buttonCancel.addEventListener('click', function () {
|
|
var overlay = document.querySelector(idOverlayConfirm);
|
|
overlay.style.visibility = 'hidden';
|
|
});
|
|
});
|
|
Events.initialiseEventHandler(idOverlayConfirm + ' button.' + flagSubmit, flagInitialised, function (buttonConfirm) {
|
|
buttonConfirm.addEventListener('click', function () {
|
|
var overlay = document.querySelector(idOverlayConfirm);
|
|
var textarea = overlay.querySelector('textarea');
|
|
overlay.style.visibility = 'hidden';
|
|
callbackSuccess(textarea.value);
|
|
});
|
|
});
|
|
}
|
|
}, {
|
|
key: "show",
|
|
value: function show() {
|
|
var overlay = document.querySelector(idOverlayConfirm);
|
|
overlay.classList.remove(flagCollapsed);
|
|
overlay.style.visibility = 'visible';
|
|
}
|
|
}]);
|
|
}();
|
|
|
|
;// ./static/js/pages/base.js
|
|
function base_typeof(o) { "@babel/helpers - typeof"; return base_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, base_typeof(o); }
|
|
function base_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function base_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, base_toPropertyKey(o.key), o); } }
|
|
function base_createClass(e, r, t) { return r && base_defineProperties(e.prototype, r), t && base_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function base_toPropertyKey(t) { var i = base_toPrimitive(t, "string"); return "symbol" == base_typeof(i) ? i : i + ""; }
|
|
function base_toPrimitive(t, r) { if ("object" != base_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != base_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var BasePage = /*#__PURE__*/function () {
|
|
function BasePage(router) {
|
|
base_classCallCheck(this, BasePage);
|
|
if (!router) {
|
|
throw new Error("Router is required");
|
|
} else {
|
|
if (_verbose) {
|
|
console.log("initialising with router: ", router);
|
|
}
|
|
}
|
|
this.router = router;
|
|
this.title = titlePageCurrent;
|
|
// this.hash = hashPageCurrent;
|
|
if (this.constructor === BasePage) {
|
|
throw new Error("Cannot instantiate abstract class");
|
|
}
|
|
if (!this.constructor.hash) {
|
|
throw new Error("Class ".concat(this.constructor.name, " must have a static hash attribute."));
|
|
}
|
|
}
|
|
return base_createClass(BasePage, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
throw new Error("Method 'initialize()' must be implemented.");
|
|
}
|
|
}, {
|
|
key: "sharedInitialize",
|
|
value: function sharedInitialize() {
|
|
this.logInitialisation();
|
|
this.hookupCommonElements();
|
|
}
|
|
}, {
|
|
key: "logInitialisation",
|
|
value: function logInitialisation() {
|
|
if (_verbose) {
|
|
console.log('Initializing ' + this.title + ' page');
|
|
}
|
|
}
|
|
}, {
|
|
key: "hookupCommonElements",
|
|
value: function hookupCommonElements() {
|
|
// hookupVideos();
|
|
this.hookupLogos();
|
|
this.hookupOverlays();
|
|
}
|
|
}, {
|
|
key: "hookupEventHandler",
|
|
value: function hookupEventHandler(eventType, selector, callback) {
|
|
Events.initialiseEventHandler(selector, flagInitialised, function (element) {
|
|
element.addEventListener(eventType, function (event) {
|
|
event.stopPropagation();
|
|
callback(event, element);
|
|
});
|
|
});
|
|
}
|
|
}, {
|
|
key: "hookupLogos",
|
|
value: function hookupLogos() {
|
|
var _this = this;
|
|
this.hookupEventHandler("click", "." + flagImageLogo + "," + "." + flagLogo, function (event, element) {
|
|
if (_verbose) {
|
|
console.log('clicking logo');
|
|
}
|
|
_this.router.navigateToHash(hashPageHome);
|
|
});
|
|
}
|
|
}, {
|
|
key: "hookupOverlays",
|
|
value: function hookupOverlays() {
|
|
this.hookupOverlayFromId(idOverlayConfirm);
|
|
this.hookupOverlayFromId(idOverlayError);
|
|
}
|
|
}, {
|
|
key: "hookupOverlayFromId",
|
|
value: function hookupOverlayFromId(idOverlay) {
|
|
Events.initialiseEventHandler(idOverlay, flagInitialised, function (overlay) {
|
|
overlay.querySelector('button.' + flagCancel).addEventListener("click", function (event) {
|
|
event.stopPropagation();
|
|
overlay.style.display = 'none';
|
|
});
|
|
});
|
|
}
|
|
}, {
|
|
key: "hookupButtonSave",
|
|
value: function hookupButtonSave() {
|
|
var _this2 = this;
|
|
Events.initialiseEventHandler('form.' + flagFilter + ' button.' + flagSave, flagInitialised, function (button) {
|
|
button.addEventListener("click", function (event) {
|
|
event.stopPropagation();
|
|
if (_verbose) {
|
|
console.log('saving page: ', _this2.title);
|
|
}
|
|
OverlayConfirm.show();
|
|
});
|
|
// button.classList.add(flagCollapsed);
|
|
});
|
|
}
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
if (_verbose) {
|
|
console.log('Leaving ' + this.title + ' page');
|
|
}
|
|
if (this.constructor === BasePage) {
|
|
throw new Error("Must implement leave() method.");
|
|
}
|
|
}
|
|
}, {
|
|
key: "setLocalStoragePage",
|
|
value: function setLocalStoragePage(dataPage) {
|
|
LocalStorage.setLocalStorage(this.hash, dataPage);
|
|
}
|
|
}, {
|
|
key: "getLocalStoragePage",
|
|
value: function getLocalStoragePage() {
|
|
return LocalStorage.getLocalStorage(this.hash);
|
|
}
|
|
}, {
|
|
key: "toggleShowButtonsSaveCancel",
|
|
value: function toggleShowButtonsSaveCancel(show) {
|
|
// , buttonSave = null, buttonCancel = null
|
|
var buttonSave = document.querySelector('form.' + flagFilter + ' button.' + flagSave);
|
|
var buttonCancel = document.querySelector('form.' + flagFilter + ' button.' + flagCancel);
|
|
if (show) {
|
|
buttonCancel.classList.remove(flagCollapsed);
|
|
buttonSave.classList.remove(flagCollapsed);
|
|
if (_verbose) {
|
|
console.log('showing buttons');
|
|
}
|
|
} else {
|
|
buttonCancel.classList.add(flagCollapsed);
|
|
buttonSave.classList.add(flagCollapsed);
|
|
if (_verbose) {
|
|
console.log('hiding buttons');
|
|
}
|
|
}
|
|
}
|
|
}], [{
|
|
key: "isDirtyFilter",
|
|
value: function isDirtyFilter(filter) {
|
|
var isDirty = DOM.updateAndCheckIsElementDirty(filter);
|
|
if (isDirty) document.querySelectorAll(idTableMain + ' tbody tr').remove();
|
|
return isDirty;
|
|
}
|
|
}]);
|
|
}();
|
|
|
|
// EXTERNAL MODULE: ./node_modules/aos/dist/aos.js
|
|
var aos = __webpack_require__(431);
|
|
var aos_default = /*#__PURE__*/__webpack_require__.n(aos);
|
|
;// ./static/js/pages/core/home.js
|
|
function home_typeof(o) { "@babel/helpers - typeof"; return home_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, home_typeof(o); }
|
|
function home_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function home_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, home_toPropertyKey(o.key), o); } }
|
|
function home_createClass(e, r, t) { return r && home_defineProperties(e.prototype, r), t && home_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == home_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
|
|
function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
|
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
function home_defineProperty(e, r, t) { return (r = home_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function home_toPropertyKey(t) { var i = home_toPrimitive(t, "string"); return "symbol" == home_typeof(i) ? i : i + ""; }
|
|
function home_toPrimitive(t, r) { if ("object" != home_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != home_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
// internal
|
|
|
|
// external
|
|
|
|
var PageHome = /*#__PURE__*/function (_BasePage) {
|
|
function PageHome(router) {
|
|
home_classCallCheck(this, PageHome);
|
|
return _callSuper(this, PageHome, [router]);
|
|
}
|
|
_inherits(PageHome, _BasePage);
|
|
return home_createClass(PageHome, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
this.hookupButtonsNavContact();
|
|
// this.initialiseAOS();
|
|
this.initialiseAnimations();
|
|
}
|
|
|
|
/* AOS */
|
|
}, {
|
|
key: "initialiseAOS",
|
|
value: function initialiseAOS() {
|
|
aos_default().init({
|
|
duration: 1000,
|
|
once: true
|
|
});
|
|
}
|
|
/* Manual animations *
|
|
initialiseAnimations() {
|
|
// Check if IntersectionObserver is supported
|
|
if ('IntersectionObserver' in window) {
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach(entry => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('active');
|
|
}
|
|
});
|
|
}, {
|
|
threshold: 0.1,
|
|
rootMargin: '50px'
|
|
});
|
|
// Observe all elements with 'reveal' class
|
|
document.querySelectorAll('.reveal').forEach((element) => {
|
|
observer.observe(element);
|
|
});
|
|
} else {
|
|
// If IntersectionObserver is not supported, make all elements visible
|
|
document.querySelectorAll('.reveal').forEach((element) => {
|
|
element.style.opacity = 1;
|
|
});
|
|
}
|
|
}
|
|
*/
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
_superPropGet(PageHome, "leave", this, 3)([]);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
home_defineProperty(PageHome, "hash", hashPageHome);
|
|
|
|
;// ./static/js/pages/core/contact.js
|
|
function contact_typeof(o) { "@babel/helpers - typeof"; return contact_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, contact_typeof(o); }
|
|
function contact_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function contact_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, contact_toPropertyKey(o.key), o); } }
|
|
function contact_createClass(e, r, t) { return r && contact_defineProperties(e.prototype, r), t && contact_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function contact_callSuper(t, o, e) { return o = contact_getPrototypeOf(o), contact_possibleConstructorReturn(t, contact_isNativeReflectConstruct() ? Reflect.construct(o, e || [], contact_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function contact_possibleConstructorReturn(t, e) { if (e && ("object" == contact_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return contact_assertThisInitialized(t); }
|
|
function contact_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function contact_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (contact_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function contact_getPrototypeOf(t) { return contact_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, contact_getPrototypeOf(t); }
|
|
function contact_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && contact_setPrototypeOf(t, e); }
|
|
function contact_setPrototypeOf(t, e) { return contact_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, contact_setPrototypeOf(t, e); }
|
|
function contact_defineProperty(e, r, t) { return (r = contact_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function contact_toPropertyKey(t) { var i = contact_toPrimitive(t, "string"); return "symbol" == contact_typeof(i) ? i : i + ""; }
|
|
function contact_toPrimitive(t, r) { if ("object" != contact_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != contact_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var PageContact = /*#__PURE__*/function (_BasePage) {
|
|
function PageContact(router) {
|
|
contact_classCallCheck(this, PageContact);
|
|
return contact_callSuper(this, PageContact, [router]);
|
|
}
|
|
contact_inherits(PageContact, _BasePage);
|
|
return contact_createClass(PageContact, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
this.hookupButtonSubmitFormContactUs();
|
|
}
|
|
}, {
|
|
key: "hookupButtonSubmitFormContactUs",
|
|
value: function hookupButtonSubmitFormContactUs() {
|
|
var button = document.querySelector('form input[type="submit"]');
|
|
button.classList.add(flagButton);
|
|
button.classList.add(flagButtonPrimary);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
contact_defineProperty(PageContact, "hash", hashPageContact);
|
|
|
|
;// ./static/js/pages/legal/accessibility_report.js
|
|
function accessibility_report_typeof(o) { "@babel/helpers - typeof"; return accessibility_report_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, accessibility_report_typeof(o); }
|
|
function accessibility_report_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function accessibility_report_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, accessibility_report_toPropertyKey(o.key), o); } }
|
|
function accessibility_report_createClass(e, r, t) { return r && accessibility_report_defineProperties(e.prototype, r), t && accessibility_report_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function accessibility_report_callSuper(t, o, e) { return o = accessibility_report_getPrototypeOf(o), accessibility_report_possibleConstructorReturn(t, accessibility_report_isNativeReflectConstruct() ? Reflect.construct(o, e || [], accessibility_report_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function accessibility_report_possibleConstructorReturn(t, e) { if (e && ("object" == accessibility_report_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return accessibility_report_assertThisInitialized(t); }
|
|
function accessibility_report_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function accessibility_report_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (accessibility_report_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function accessibility_report_superPropGet(t, o, e, r) { var p = accessibility_report_get(accessibility_report_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
function accessibility_report_get() { return accessibility_report_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = accessibility_report_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, accessibility_report_get.apply(null, arguments); }
|
|
function accessibility_report_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = accessibility_report_getPrototypeOf(t));); return t; }
|
|
function accessibility_report_getPrototypeOf(t) { return accessibility_report_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, accessibility_report_getPrototypeOf(t); }
|
|
function accessibility_report_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && accessibility_report_setPrototypeOf(t, e); }
|
|
function accessibility_report_setPrototypeOf(t, e) { return accessibility_report_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, accessibility_report_setPrototypeOf(t, e); }
|
|
function accessibility_report_defineProperty(e, r, t) { return (r = accessibility_report_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function accessibility_report_toPropertyKey(t) { var i = accessibility_report_toPrimitive(t, "string"); return "symbol" == accessibility_report_typeof(i) ? i : i + ""; }
|
|
function accessibility_report_toPrimitive(t, r) { if ("object" != accessibility_report_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != accessibility_report_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var PageAccessibilityReport = /*#__PURE__*/function (_BasePage) {
|
|
function PageAccessibilityReport(router) {
|
|
accessibility_report_classCallCheck(this, PageAccessibilityReport);
|
|
return accessibility_report_callSuper(this, PageAccessibilityReport, [router]);
|
|
}
|
|
accessibility_report_inherits(PageAccessibilityReport, _BasePage);
|
|
return accessibility_report_createClass(PageAccessibilityReport, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
}
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
accessibility_report_superPropGet(PageAccessibilityReport, "leave", this, 3)([]);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
accessibility_report_defineProperty(PageAccessibilityReport, "hash", hashPageAccessibilityReport);
|
|
|
|
;// ./static/js/pages/legal/accessibility_statement.js
|
|
function accessibility_statement_typeof(o) { "@babel/helpers - typeof"; return accessibility_statement_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, accessibility_statement_typeof(o); }
|
|
function accessibility_statement_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function accessibility_statement_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, accessibility_statement_toPropertyKey(o.key), o); } }
|
|
function accessibility_statement_createClass(e, r, t) { return r && accessibility_statement_defineProperties(e.prototype, r), t && accessibility_statement_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function accessibility_statement_callSuper(t, o, e) { return o = accessibility_statement_getPrototypeOf(o), accessibility_statement_possibleConstructorReturn(t, accessibility_statement_isNativeReflectConstruct() ? Reflect.construct(o, e || [], accessibility_statement_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function accessibility_statement_possibleConstructorReturn(t, e) { if (e && ("object" == accessibility_statement_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return accessibility_statement_assertThisInitialized(t); }
|
|
function accessibility_statement_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function accessibility_statement_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (accessibility_statement_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function accessibility_statement_superPropGet(t, o, e, r) { var p = accessibility_statement_get(accessibility_statement_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
function accessibility_statement_get() { return accessibility_statement_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = accessibility_statement_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, accessibility_statement_get.apply(null, arguments); }
|
|
function accessibility_statement_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = accessibility_statement_getPrototypeOf(t));); return t; }
|
|
function accessibility_statement_getPrototypeOf(t) { return accessibility_statement_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, accessibility_statement_getPrototypeOf(t); }
|
|
function accessibility_statement_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && accessibility_statement_setPrototypeOf(t, e); }
|
|
function accessibility_statement_setPrototypeOf(t, e) { return accessibility_statement_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, accessibility_statement_setPrototypeOf(t, e); }
|
|
function accessibility_statement_defineProperty(e, r, t) { return (r = accessibility_statement_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function accessibility_statement_toPropertyKey(t) { var i = accessibility_statement_toPrimitive(t, "string"); return "symbol" == accessibility_statement_typeof(i) ? i : i + ""; }
|
|
function accessibility_statement_toPrimitive(t, r) { if ("object" != accessibility_statement_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != accessibility_statement_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var PageAccessibilityStatement = /*#__PURE__*/function (_BasePage) {
|
|
function PageAccessibilityStatement(router) {
|
|
accessibility_statement_classCallCheck(this, PageAccessibilityStatement);
|
|
return accessibility_statement_callSuper(this, PageAccessibilityStatement, [router]);
|
|
}
|
|
accessibility_statement_inherits(PageAccessibilityStatement, _BasePage);
|
|
return accessibility_statement_createClass(PageAccessibilityStatement, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
}
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
accessibility_statement_superPropGet(PageAccessibilityStatement, "leave", this, 3)([]);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
accessibility_statement_defineProperty(PageAccessibilityStatement, "hash", hashPageAccessibilityStatement);
|
|
|
|
;// ./static/js/pages/legal/license.js
|
|
function license_typeof(o) { "@babel/helpers - typeof"; return license_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, license_typeof(o); }
|
|
function license_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function license_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, license_toPropertyKey(o.key), o); } }
|
|
function license_createClass(e, r, t) { return r && license_defineProperties(e.prototype, r), t && license_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function license_callSuper(t, o, e) { return o = license_getPrototypeOf(o), license_possibleConstructorReturn(t, license_isNativeReflectConstruct() ? Reflect.construct(o, e || [], license_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function license_possibleConstructorReturn(t, e) { if (e && ("object" == license_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return license_assertThisInitialized(t); }
|
|
function license_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function license_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (license_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function license_superPropGet(t, o, e, r) { var p = license_get(license_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
function license_get() { return license_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = license_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, license_get.apply(null, arguments); }
|
|
function license_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = license_getPrototypeOf(t));); return t; }
|
|
function license_getPrototypeOf(t) { return license_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, license_getPrototypeOf(t); }
|
|
function license_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && license_setPrototypeOf(t, e); }
|
|
function license_setPrototypeOf(t, e) { return license_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, license_setPrototypeOf(t, e); }
|
|
function license_defineProperty(e, r, t) { return (r = license_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function license_toPropertyKey(t) { var i = license_toPrimitive(t, "string"); return "symbol" == license_typeof(i) ? i : i + ""; }
|
|
function license_toPrimitive(t, r) { if ("object" != license_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != license_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var PageLicense = /*#__PURE__*/function (_BasePage) {
|
|
function PageLicense(router) {
|
|
license_classCallCheck(this, PageLicense);
|
|
return license_callSuper(this, PageLicense, [router]);
|
|
}
|
|
license_inherits(PageLicense, _BasePage);
|
|
return license_createClass(PageLicense, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
}
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
license_superPropGet(PageLicense, "leave", this, 3)([]);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
license_defineProperty(PageLicense, "hash", hashPageLicense);
|
|
|
|
;// ./static/js/api.js
|
|
function api_typeof(o) { "@babel/helpers - typeof"; return api_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, api_typeof(o); }
|
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == api_typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(api_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { api_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
function api_defineProperty(e, r, t) { return (r = api_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
function api_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function api_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, api_toPropertyKey(o.key), o); } }
|
|
function api_createClass(e, r, t) { return r && api_defineProperties(e.prototype, r), t && api_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function api_toPropertyKey(t) { var i = api_toPrimitive(t, "string"); return "symbol" == api_typeof(i) ? i : i + ""; }
|
|
function api_toPrimitive(t, r) { if ("object" != api_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != api_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var API = /*#__PURE__*/function () {
|
|
function API() {
|
|
api_classCallCheck(this, API);
|
|
}
|
|
return api_createClass(API, null, [{
|
|
key: "getCsrfToken",
|
|
value: function getCsrfToken() {
|
|
return document.querySelector(idCSRFToken).getAttribute('content');
|
|
}
|
|
}, {
|
|
key: "request",
|
|
value: function () {
|
|
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(hashEndpoint) {
|
|
var method,
|
|
data,
|
|
params,
|
|
url,
|
|
csrfToken,
|
|
options,
|
|
response,
|
|
_args = arguments;
|
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
method = _args.length > 1 && _args[1] !== undefined ? _args[1] : 'GET';
|
|
data = _args.length > 2 && _args[2] !== undefined ? _args[2] : null;
|
|
params = _args.length > 3 && _args[3] !== undefined ? _args[3] : null;
|
|
url = API.getUrlFromHash(hashEndpoint, params);
|
|
csrfToken = API.getCsrfToken();
|
|
options = {
|
|
method: method,
|
|
headers: api_defineProperty({
|
|
'Content-Type': 'application/json'
|
|
}, flagCsrfToken, csrfToken)
|
|
};
|
|
if (data && (method === 'POST' || method === 'PUT' || method === 'PATCH')) {
|
|
data = _objectSpread(_objectSpread({}, data), {}, api_defineProperty({}, flagCsrfToken, csrfToken));
|
|
options.body = JSON.stringify(data);
|
|
}
|
|
_context.prev = 7;
|
|
_context.next = 10;
|
|
return fetch(url, options);
|
|
case 10:
|
|
response = _context.sent;
|
|
if (response.ok) {
|
|
_context.next = 13;
|
|
break;
|
|
}
|
|
throw new Error("HTTP error! status: ".concat(response.status));
|
|
case 13:
|
|
_context.next = 15;
|
|
return response.json();
|
|
case 15:
|
|
return _context.abrupt("return", _context.sent);
|
|
case 18:
|
|
_context.prev = 18;
|
|
_context.t0 = _context["catch"](7);
|
|
console.error('API request failed:', _context.t0);
|
|
throw _context.t0;
|
|
case 22:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee, null, [[7, 18]]);
|
|
}));
|
|
function request(_x) {
|
|
return _request.apply(this, arguments);
|
|
}
|
|
return request;
|
|
}()
|
|
}, {
|
|
key: "getUrlFromHash",
|
|
value: function getUrlFromHash(hash) {
|
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
if (hash == null) hash = hashPageHome;
|
|
var url = API.parameteriseUrl(_pathHost + hash, params);
|
|
return url;
|
|
}
|
|
}, {
|
|
key: "parameteriseUrl",
|
|
value: function parameteriseUrl(url, params) {
|
|
if (params) {
|
|
url += '?' + new URLSearchParams(params).toString();
|
|
}
|
|
return url;
|
|
}
|
|
}, {
|
|
key: "goToUrl",
|
|
value: function goToUrl(url) {
|
|
window.location.href = url;
|
|
}
|
|
}, {
|
|
key: "goToHash",
|
|
value: function goToHash(hash) {
|
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
var url = API.getUrlFromHash(hash, params);
|
|
API.goToUrl(url);
|
|
}
|
|
|
|
// specific api calls
|
|
/* Example:
|
|
getUsers: () => request('/users'),
|
|
getUserById: (id) => request(`/users/${id}`),
|
|
createUser: (userData) => request('/users', 'POST', userData),
|
|
updateUser: (id, userData) => request(`/users/${id}`, 'PUT', userData),
|
|
deleteUser: (id) => request(`/users/${id}`, 'DELETE'),
|
|
*/
|
|
}, {
|
|
key: "loginUser",
|
|
value: function () {
|
|
var _loginUser = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
var callback;
|
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
callback = {};
|
|
callback[flagCallback] = DOM.getHashPageCurrent();
|
|
_context2.next = 4;
|
|
return API.request(hashPageUserLogin, 'POST', callback);
|
|
case 4:
|
|
return _context2.abrupt("return", _context2.sent);
|
|
case 5:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
function loginUser() {
|
|
return _loginUser.apply(this, arguments);
|
|
}
|
|
return loginUser;
|
|
}() // store
|
|
// product categories
|
|
}, {
|
|
key: "saveCategories",
|
|
value: function () {
|
|
var _saveCategories = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(categories, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
while (1) switch (_context3.prev = _context3.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagProductCategory] = categories;
|
|
dataRequest[flagComment] = comment;
|
|
_context3.next = 6;
|
|
return API.request(hashSaveStoreProductCategory, 'POST', dataRequest);
|
|
case 6:
|
|
return _context3.abrupt("return", _context3.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context3.stop();
|
|
}
|
|
}, _callee3);
|
|
}));
|
|
function saveCategories(_x2, _x3, _x4) {
|
|
return _saveCategories.apply(this, arguments);
|
|
}
|
|
return saveCategories;
|
|
}() // products
|
|
}, {
|
|
key: "saveProducts",
|
|
value: function () {
|
|
var _saveProducts = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(products, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagProduct] = products;
|
|
dataRequest[flagComment] = comment;
|
|
_context4.next = 6;
|
|
return API.request(hashSaveStoreProduct, 'POST', dataRequest);
|
|
case 6:
|
|
return _context4.abrupt("return", _context4.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context4.stop();
|
|
}
|
|
}, _callee4);
|
|
}));
|
|
function saveProducts(_x5, _x6, _x7) {
|
|
return _saveProducts.apply(this, arguments);
|
|
}
|
|
return saveProducts;
|
|
}() // product permutations
|
|
}, {
|
|
key: "saveProductPermutations",
|
|
value: function () {
|
|
var _saveProductPermutations = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(permutations, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagProductPermutation] = permutations;
|
|
dataRequest[flagComment] = comment;
|
|
_context5.next = 6;
|
|
return API.request(hashSaveStoreProductPermutation, 'POST', dataRequest);
|
|
case 6:
|
|
return _context5.abrupt("return", _context5.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context5.stop();
|
|
}
|
|
}, _callee5);
|
|
}));
|
|
function saveProductPermutations(_x8, _x9, _x10) {
|
|
return _saveProductPermutations.apply(this, arguments);
|
|
}
|
|
return saveProductPermutations;
|
|
}() // product variations
|
|
}, {
|
|
key: "saveProductVariations",
|
|
value: function () {
|
|
var _saveProductVariations = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(variationTypes, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagProductVariationType] = variationTypes;
|
|
dataRequest[flagComment] = comment;
|
|
_context6.next = 6;
|
|
return API.request(hashSaveStoreProductVariation, 'POST', dataRequest);
|
|
case 6:
|
|
return _context6.abrupt("return", _context6.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context6.stop();
|
|
}
|
|
}, _callee6);
|
|
}));
|
|
function saveProductVariations(_x11, _x12, _x13) {
|
|
return _saveProductVariations.apply(this, arguments);
|
|
}
|
|
return saveProductVariations;
|
|
}() // stock items
|
|
}, {
|
|
key: "saveStockItems",
|
|
value: function () {
|
|
var _saveStockItems = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(stockItems, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagStockItem] = stockItems;
|
|
dataRequest[flagComment] = comment;
|
|
_context7.next = 6;
|
|
return API.request(hashSaveStoreStockItem, 'POST', dataRequest);
|
|
case 6:
|
|
return _context7.abrupt("return", _context7.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context7.stop();
|
|
}
|
|
}, _callee7);
|
|
}));
|
|
function saveStockItems(_x14, _x15, _x16) {
|
|
return _saveStockItems.apply(this, arguments);
|
|
}
|
|
return saveStockItems;
|
|
}() // suppliers
|
|
}, {
|
|
key: "saveSuppliers",
|
|
value: function () {
|
|
var _saveSuppliers = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(suppliers, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
while (1) switch (_context8.prev = _context8.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagSupplier] = suppliers;
|
|
dataRequest[flagComment] = comment;
|
|
_context8.next = 6;
|
|
return API.request(hashSaveStoreSupplier, 'POST', dataRequest);
|
|
case 6:
|
|
return _context8.abrupt("return", _context8.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context8.stop();
|
|
}
|
|
}, _callee8);
|
|
}));
|
|
function saveSuppliers(_x17, _x18, _x19) {
|
|
return _saveSuppliers.apply(this, arguments);
|
|
}
|
|
return saveSuppliers;
|
|
}() // supplier purchase orders
|
|
}, {
|
|
key: "saveSupplierPurchaseOrders",
|
|
value: function () {
|
|
var _saveSupplierPurchaseOrders = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(supplierPurchaseOrders, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
while (1) switch (_context9.prev = _context9.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagSupplierPurchaseOrder] = supplierPurchaseOrders;
|
|
dataRequest[flagComment] = comment;
|
|
_context9.next = 6;
|
|
return API.request(hashSaveStoreSupplierPurchaseOrder, 'POST', dataRequest);
|
|
case 6:
|
|
return _context9.abrupt("return", _context9.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context9.stop();
|
|
}
|
|
}, _callee9);
|
|
}));
|
|
function saveSupplierPurchaseOrders(_x20, _x21, _x22) {
|
|
return _saveSupplierPurchaseOrders.apply(this, arguments);
|
|
}
|
|
return saveSupplierPurchaseOrders;
|
|
}() // manufacturing purchase orders
|
|
}, {
|
|
key: "saveManufacturingPurchaseOrders",
|
|
value: function () {
|
|
var _saveManufacturingPurchaseOrders = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(manufacturingPurchaseOrders, formFilters, comment) {
|
|
var dataRequest;
|
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
while (1) switch (_context10.prev = _context10.next) {
|
|
case 0:
|
|
dataRequest = {};
|
|
dataRequest[flagFormFilters] = DOM.convertForm2JSON(formFilters);
|
|
dataRequest[flagManufacturingPurchaseOrder] = manufacturingPurchaseOrders;
|
|
dataRequest[flagComment] = comment;
|
|
_context10.next = 6;
|
|
return API.request(hashSaveStoreManufacturingPurchaseOrder, 'POST', dataRequest);
|
|
case 6:
|
|
return _context10.abrupt("return", _context10.sent);
|
|
case 7:
|
|
case "end":
|
|
return _context10.stop();
|
|
}
|
|
}, _callee10);
|
|
}));
|
|
function saveManufacturingPurchaseOrders(_x23, _x24, _x25) {
|
|
return _saveManufacturingPurchaseOrders.apply(this, arguments);
|
|
}
|
|
return saveManufacturingPurchaseOrders;
|
|
}()
|
|
}]);
|
|
}();
|
|
/*
|
|
|
|
const api = new API();
|
|
export default api;
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
initializeApp();
|
|
setupEventListeners();
|
|
initializeComponents();
|
|
|
|
// Example of using the API
|
|
API.getData('/some-endpoint')
|
|
.then(data => console.log('Data received:', data))
|
|
.catch(error => console.error('Error:', error));
|
|
});
|
|
*/
|
|
|
|
;// ./static/js/pages/legal/privacy_policy.js
|
|
function privacy_policy_typeof(o) { "@babel/helpers - typeof"; return privacy_policy_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, privacy_policy_typeof(o); }
|
|
function privacy_policy_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function privacy_policy_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, privacy_policy_toPropertyKey(o.key), o); } }
|
|
function privacy_policy_createClass(e, r, t) { return r && privacy_policy_defineProperties(e.prototype, r), t && privacy_policy_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function privacy_policy_callSuper(t, o, e) { return o = privacy_policy_getPrototypeOf(o), privacy_policy_possibleConstructorReturn(t, privacy_policy_isNativeReflectConstruct() ? Reflect.construct(o, e || [], privacy_policy_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function privacy_policy_possibleConstructorReturn(t, e) { if (e && ("object" == privacy_policy_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return privacy_policy_assertThisInitialized(t); }
|
|
function privacy_policy_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function privacy_policy_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (privacy_policy_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function privacy_policy_superPropGet(t, o, e, r) { var p = privacy_policy_get(privacy_policy_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
function privacy_policy_get() { return privacy_policy_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = privacy_policy_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, privacy_policy_get.apply(null, arguments); }
|
|
function privacy_policy_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = privacy_policy_getPrototypeOf(t));); return t; }
|
|
function privacy_policy_getPrototypeOf(t) { return privacy_policy_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, privacy_policy_getPrototypeOf(t); }
|
|
function privacy_policy_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && privacy_policy_setPrototypeOf(t, e); }
|
|
function privacy_policy_setPrototypeOf(t, e) { return privacy_policy_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, privacy_policy_setPrototypeOf(t, e); }
|
|
function privacy_policy_defineProperty(e, r, t) { return (r = privacy_policy_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function privacy_policy_toPropertyKey(t) { var i = privacy_policy_toPrimitive(t, "string"); return "symbol" == privacy_policy_typeof(i) ? i : i + ""; }
|
|
function privacy_policy_toPrimitive(t, r) { if ("object" != privacy_policy_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != privacy_policy_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var PagePrivacyPolicy = /*#__PURE__*/function (_BasePage) {
|
|
function PagePrivacyPolicy(router) {
|
|
privacy_policy_classCallCheck(this, PagePrivacyPolicy);
|
|
return privacy_policy_callSuper(this, PagePrivacyPolicy, [router]);
|
|
}
|
|
privacy_policy_inherits(PagePrivacyPolicy, _BasePage);
|
|
return privacy_policy_createClass(PagePrivacyPolicy, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
}
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
privacy_policy_superPropGet(PagePrivacyPolicy, "leave", this, 3)([]);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
privacy_policy_defineProperty(PagePrivacyPolicy, "hash", hashPagePrivacyPolicy);
|
|
|
|
;// ./static/js/pages/legal/retention_schedule.js
|
|
function retention_schedule_typeof(o) { "@babel/helpers - typeof"; return retention_schedule_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, retention_schedule_typeof(o); }
|
|
function retention_schedule_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function retention_schedule_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, retention_schedule_toPropertyKey(o.key), o); } }
|
|
function retention_schedule_createClass(e, r, t) { return r && retention_schedule_defineProperties(e.prototype, r), t && retention_schedule_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function retention_schedule_callSuper(t, o, e) { return o = retention_schedule_getPrototypeOf(o), retention_schedule_possibleConstructorReturn(t, retention_schedule_isNativeReflectConstruct() ? Reflect.construct(o, e || [], retention_schedule_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
function retention_schedule_possibleConstructorReturn(t, e) { if (e && ("object" == retention_schedule_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return retention_schedule_assertThisInitialized(t); }
|
|
function retention_schedule_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
function retention_schedule_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (retention_schedule_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
function retention_schedule_superPropGet(t, o, e, r) { var p = retention_schedule_get(retention_schedule_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
function retention_schedule_get() { return retention_schedule_get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = retention_schedule_superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, retention_schedule_get.apply(null, arguments); }
|
|
function retention_schedule_superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = retention_schedule_getPrototypeOf(t));); return t; }
|
|
function retention_schedule_getPrototypeOf(t) { return retention_schedule_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, retention_schedule_getPrototypeOf(t); }
|
|
function retention_schedule_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && retention_schedule_setPrototypeOf(t, e); }
|
|
function retention_schedule_setPrototypeOf(t, e) { return retention_schedule_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, retention_schedule_setPrototypeOf(t, e); }
|
|
function retention_schedule_defineProperty(e, r, t) { return (r = retention_schedule_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
function retention_schedule_toPropertyKey(t) { var i = retention_schedule_toPrimitive(t, "string"); return "symbol" == retention_schedule_typeof(i) ? i : i + ""; }
|
|
function retention_schedule_toPrimitive(t, r) { if ("object" != retention_schedule_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != retention_schedule_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
var PageRetentionSchedule = /*#__PURE__*/function (_BasePage) {
|
|
function PageRetentionSchedule(router) {
|
|
retention_schedule_classCallCheck(this, PageRetentionSchedule);
|
|
return retention_schedule_callSuper(this, PageRetentionSchedule, [router]);
|
|
}
|
|
retention_schedule_inherits(PageRetentionSchedule, _BasePage);
|
|
return retention_schedule_createClass(PageRetentionSchedule, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.sharedInitialize();
|
|
}
|
|
}, {
|
|
key: "leave",
|
|
value: function leave() {
|
|
retention_schedule_superPropGet(PageRetentionSchedule, "leave", this, 3)([]);
|
|
}
|
|
}]);
|
|
}(BasePage);
|
|
retention_schedule_defineProperty(PageRetentionSchedule, "hash", hashPageDataRetentionSchedule);
|
|
|
|
;// ./static/js/router.js
|
|
function router_typeof(o) { "@babel/helpers - typeof"; return router_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, router_typeof(o); }
|
|
function router_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function router_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, router_toPropertyKey(o.key), o); } }
|
|
function router_createClass(e, r, t) { return r && router_defineProperties(e.prototype, r), t && router_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function router_toPropertyKey(t) { var i = router_toPrimitive(t, "string"); return "symbol" == router_typeof(i) ? i : i + ""; }
|
|
function router_toPrimitive(t, r) { if ("object" != router_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != router_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
// Pages
|
|
// Core
|
|
|
|
|
|
// Legal
|
|
|
|
|
|
|
|
// User
|
|
// import PageUserLogin from './pages/user/login.js';
|
|
// import PageUserLogout from './pages/user/logout.js';
|
|
// import PageUserAccount from './pages/user/account.js';
|
|
|
|
|
|
|
|
|
|
|
|
var Router = /*#__PURE__*/function () {
|
|
function Router() {
|
|
var _this = this;
|
|
router_classCallCheck(this, Router);
|
|
// Pages
|
|
this.pages = {};
|
|
// Core
|
|
this.pages[hashPageHome] = {
|
|
name: 'PageHome',
|
|
module: PageHome
|
|
}; // importModule: () => import(/* webpackChunkName: "page_core_home" */ './pages/core/home.js') , pathModule: './pages/core/home.js'
|
|
this.pages[hashPageContact] = {
|
|
name: 'PageContact',
|
|
module: PageContact
|
|
}; // pathModule: './pages/core/contact.js' };
|
|
// Legal
|
|
this.pages[hashPageAccessibilityStatement] = {
|
|
name: 'PageAccessibilityStatement',
|
|
module: PageAccessibilityStatement
|
|
}; // pathModule: '../../static/js/pages/legal/accessibility_statement.js' }; // , page: PageAccessibilityStatement
|
|
this.pages[hashPageDataRetentionSchedule] = {
|
|
name: 'PageDataRetentionSchedule',
|
|
module: PageRetentionSchedule
|
|
}; // pathModule: './pages/legal/data_retention_schedule.js' };
|
|
this.pages[hashPageLicense] = {
|
|
name: 'PageLicense',
|
|
module: PageLicense
|
|
}; // pathModule: './pages/legal/license.js' };
|
|
this.pages[hashPagePrivacyPolicy] = {
|
|
name: 'PagePrivacyPolicy',
|
|
module: PagePrivacyPolicy
|
|
}; // pathModule: './pages/legal/privacy_policy.js' }; // importModule: () => {return import(/* webpackChunkName: "page_privacy_policy" */ './pages/legal/privacy_policy.js'); }
|
|
// User
|
|
// this.pages[hashPageUserLogin] = { name: 'PageUserLogin', module: PageUserLogin }; // pathModule: './pages/user/login.js' };
|
|
// this.pages[hashPageUserLogout] = { name: 'PageUserLogout', module: PageUserLogout }; // pathModule: './pages/user/logout.js' };
|
|
// this.pages[hashPageUserAccount] = { name: 'PageUserAccount', module: PageUserAccount }; // pathModule: './pages/user/account.js' };
|
|
|
|
// Routes
|
|
this.routes = {};
|
|
// Core
|
|
this.routes[hashPageHome] = function () {
|
|
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
return _this.navigateToHash(hashPageHome, isPopState);
|
|
};
|
|
this.routes[hashPageContact] = function () {
|
|
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
return _this.navigateToHash(hashPageContact, isPopState);
|
|
};
|
|
// Legal
|
|
this.routes[hashPageAccessibilityStatement] = function () {
|
|
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
return _this.navigateToHash(hashPageAccessibilityStatement, isPopState);
|
|
};
|
|
this.routes[hashPageDataRetentionSchedule] = function () {
|
|
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
return _this.navigateToHash(hashPageDataRetentionSchedule, isPopState);
|
|
};
|
|
this.routes[hashPageLicense] = function () {
|
|
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
return _this.navigateToHash(hashPageLicense, isPopState);
|
|
};
|
|
this.routes[hashPagePrivacyPolicy] = function () {
|
|
var isPopState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
return _this.navigateToHash(hashPagePrivacyPolicy, isPopState);
|
|
};
|
|
// User
|
|
// this.routes[hashPageUserLogin] = (isPopState = false) => this.navigateToHash(hashPageUserLogin, isPopState);
|
|
// this.routes[hashPageUserLogout] = (isPopState = false) => this.navigateToHash(hashPageUserLogout, isPopState);
|
|
// this.routes[hashPageUserAccount] = (isPopState = false) => this.navigateToHash(hashPageUserAccount, isPopState);
|
|
this.initialize();
|
|
}
|
|
return router_createClass(Router, [{
|
|
key: "loadPage",
|
|
value: function loadPage(hashPage) {
|
|
var _this2 = this;
|
|
var isPopState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
var PageClass = this.getClassPageFromHash(hashPage);
|
|
this.currentPage = new PageClass(this);
|
|
this.currentPage.initialize(isPopState);
|
|
window.addEventListener('beforeunload', function () {
|
|
return _this2.currentPage.leave();
|
|
});
|
|
}
|
|
}, {
|
|
key: "getClassPageFromHash",
|
|
value: function getClassPageFromHash(hashPage) {
|
|
var pageJson = this.pages[hashPage];
|
|
try {
|
|
/*
|
|
const module = await pagesContext(pageJson.pathModule);
|
|
console.log("module: ", module);
|
|
return module[pageJson.name];
|
|
*/
|
|
// const module = await import(pageJson.pathModule); // pageJson.page;
|
|
// const module = () => import(pageJson.pathModule);
|
|
var module = pageJson.module; // importModule;
|
|
return module; // [pageJson.name];
|
|
} catch (error) {
|
|
if (_verbose) {
|
|
console.log("this.pages: ", this.pages);
|
|
}
|
|
;
|
|
console.error('Page not found:', hashPage);
|
|
throw error;
|
|
}
|
|
}
|
|
}, {
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
/*
|
|
let pages = Router.getPages();
|
|
for (const key of Object.keys(pages)) {
|
|
let page = pages[key];
|
|
this.addRoute(page.hash, page.initialize);
|
|
}
|
|
*/
|
|
window.addEventListener('popstate', this.handlePopState.bind(this)); // page accessed by history navigation
|
|
}
|
|
}, {
|
|
key: "handlePopState",
|
|
value: function handlePopState(event) {
|
|
this.loadPageCurrent();
|
|
}
|
|
}, {
|
|
key: "loadPageCurrent",
|
|
value: function loadPageCurrent() {
|
|
var hashPageCurrent = DOM.getHashPageCurrent();
|
|
this.loadPage(hashPageCurrent);
|
|
}
|
|
}, {
|
|
key: "navigateToHash",
|
|
value: function navigateToHash(hash) {
|
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
var isPopState = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
// this.beforeLeave();
|
|
/*
|
|
if (this.routes[hash]) {
|
|
this.routes[hash](isPopState);
|
|
} else {
|
|
console.error(`Hash ${hash} not found`);
|
|
}
|
|
*/
|
|
var url = API.getUrlFromHash(hash, params);
|
|
// if (!isPopState)
|
|
history.pushState({
|
|
data: data,
|
|
params: params
|
|
}, '', hash);
|
|
API.goToUrl(url, data);
|
|
}
|
|
/* beforeunload listener
|
|
async beforeLeave() {
|
|
const ClassPageCurrent = await this.getClassPageFromHash(DOM.getHashPageCurrent());
|
|
const pageCurrent = new ClassPageCurrent(this);
|
|
pageCurrent.leave();
|
|
}
|
|
*/
|
|
}, {
|
|
key: "navigateToUrl",
|
|
value: function navigateToUrl(url) {
|
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
var appendHistory = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
// this.beforeLeave();
|
|
if (appendHistory) history.pushState(data, '', url);
|
|
url = API.parameteriseUrl(url, data);
|
|
API.goToUrl(url);
|
|
}
|
|
}], [{
|
|
key: "loadPageBodyFromResponse",
|
|
value: function loadPageBodyFromResponse(response) {
|
|
DOM.loadPageBody(response.data);
|
|
}
|
|
}]);
|
|
}();
|
|
|
|
var router = new Router();
|
|
|
|
/*
|
|
router.addRoute('/', () => {
|
|
console.log('Home page');
|
|
// Load home page content
|
|
});
|
|
|
|
router.addRoute('/about', () => {
|
|
console.log('About page');
|
|
// Load about page content
|
|
});
|
|
|
|
export function setupNavigationEvents() {
|
|
document.querySelectorAll('a[data-nav]').forEach(link => {
|
|
link.addEventListener('click', (e) => {
|
|
e.preventDefault();
|
|
const url = e.target.getAttribute('href');
|
|
router.navigateToUrl(url);
|
|
});
|
|
});
|
|
}
|
|
*/
|
|
;// ./static/js/app.js
|
|
|
|
|
|
function app_typeof(o) { "@babel/helpers - typeof"; return app_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, app_typeof(o); }
|
|
function app_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
function app_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, app_toPropertyKey(o.key), o); } }
|
|
function app_createClass(e, r, t) { return r && app_defineProperties(e.prototype, r), t && app_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
function app_toPropertyKey(t) { var i = app_toPrimitive(t, "string"); return "symbol" == app_typeof(i) ? i : i + ""; }
|
|
function app_toPrimitive(t, r) { if ("object" != app_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != app_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
|
|
|
|
var App = /*#__PURE__*/function () {
|
|
function App() {
|
|
app_classCallCheck(this, App);
|
|
this.dom = new DOM();
|
|
this.router = new Router();
|
|
}
|
|
return app_createClass(App, [{
|
|
key: "initialize",
|
|
value: function initialize() {
|
|
this.setupEventListeners();
|
|
this.start();
|
|
}
|
|
}, {
|
|
key: "setupEventListeners",
|
|
value: function setupEventListeners() {
|
|
// document.addEventListener('click', this.handleGlobalClick.bind(this));
|
|
}
|
|
}, {
|
|
key: "handleGlobalClick",
|
|
value: function handleGlobalClick(event) {}
|
|
}, {
|
|
key: "start",
|
|
value: function start() {
|
|
this.initPageCurrent();
|
|
}
|
|
}, {
|
|
key: "initPageCurrent",
|
|
value: function initPageCurrent() {
|
|
this.router.loadPageCurrent();
|
|
}
|
|
}]);
|
|
}();
|
|
var app = new App();
|
|
function domReady(fn) {
|
|
if (document.readyState !== 'loading') {
|
|
fn();
|
|
} else {
|
|
document.addEventListener('DOMContentLoaded', fn);
|
|
}
|
|
}
|
|
domReady(function () {
|
|
app.initialize();
|
|
});
|
|
window.app = app;
|
|
/* harmony default export */ const js_app = ((/* unused pure expression or super */ null && (app)));
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
(() => {
|
|
"use strict";
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
})();
|
|
|
|
/******/ })()
|
|
;
|
|
//# sourceMappingURL=main.bundle.js.map
|