Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bmamouri/393587d29aa23370f08bc6f8f731f875 to your computer and use it in GitHub Desktop.
Save bmamouri/393587d29aa23370f08bc6f8f731f875 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
(window.webpackJsonp = window.webpackJsonp || []).push([
[2], {
"+6xv": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
})), n.d(t, "b", (function() {
return a
})), n.d(t, "c", (function() {
return i
})), n.d(t, "d", (function() {
return d
})), n.d(t, "e", (function() {
return l
})), n.d(t, "f", (function() {
return o
})), n.d(t, "g", (function() {
return s
})), n.d(t, "h", (function() {
return u
})), n.d(t, "i", (function() {
return p
}));
class a {}
class i {}
const r = "*";
function l(e, t = null) {
return {
type: 4,
styles: t,
timings: e
}
}
function o(e, t = null) {
return {
type: 2,
steps: e,
options: t
}
}
function s(e) {
return {
type: 6,
styles: e,
offset: null
}
}
function c(e) {
Promise.resolve(null).then(e)
}
class d {
constructor(e = 0, t = 0) {
this._onDoneFns = [], this._onStartFns = [], this._onDestroyFns = [], this._started = !1, this._destroyed = !1, this._finished = !1, this.parentPlayer = null, this.totalTime = e + t
}
_onFinish() {
this._finished || (this._finished = !0, this._onDoneFns.forEach(e => e()), this._onDoneFns = [])
}
onStart(e) {
this._onStartFns.push(e)
}
onDone(e) {
this._onDoneFns.push(e)
}
onDestroy(e) {
this._onDestroyFns.push(e)
}
hasStarted() {
return this._started
}
init() {}
play() {
this.hasStarted() || (this._onStart(), this.triggerMicrotask()), this._started = !0
}
triggerMicrotask() {
c(() => this._onFinish())
}
_onStart() {
this._onStartFns.forEach(e => e()), this._onStartFns = []
}
pause() {}
restart() {}
finish() {
this._onFinish()
}
destroy() {
this._destroyed || (this._destroyed = !0, this.hasStarted() || this._onStart(), this.finish(), this._onDestroyFns.forEach(e => e()), this._onDestroyFns = [])
}
reset() {}
setPosition(e) {}
getPosition() {
return 0
}
triggerCallback(e) {
const t = "start" == e ? this._onStartFns : this._onDoneFns;
t.forEach(e => e()), t.length = 0
}
}
class u {
constructor(e) {
this._onDoneFns = [], this._onStartFns = [], this._finished = !1, this._started = !1, this._destroyed = !1, this._onDestroyFns = [], this.parentPlayer = null, this.totalTime = 0, this.players = e;
let t = 0,
n = 0,
a = 0;
const i = this.players.length;
0 == i ? c(() => this._onFinish()) : this.players.forEach(e => {
e.onDone(() => {
++t == i && this._onFinish()
}), e.onDestroy(() => {
++n == i && this._onDestroy()
}), e.onStart(() => {
++a == i && this._onStart()
})
}), this.totalTime = this.players.reduce((e, t) => Math.max(e, t.totalTime), 0)
}
_onFinish() {
this._finished || (this._finished = !0, this._onDoneFns.forEach(e => e()), this._onDoneFns = [])
}
init() {
this.players.forEach(e => e.init())
}
onStart(e) {
this._onStartFns.push(e)
}
_onStart() {
this.hasStarted() || (this._started = !0, this._onStartFns.forEach(e => e()), this._onStartFns = [])
}
onDone(e) {
this._onDoneFns.push(e)
}
onDestroy(e) {
this._onDestroyFns.push(e)
}
hasStarted() {
return this._started
}
play() {
this.parentPlayer || this.init(), this._onStart(), this.players.forEach(e => e.play())
}
pause() {
this.players.forEach(e => e.pause())
}
restart() {
this.players.forEach(e => e.restart())
}
finish() {
this._onFinish(), this.players.forEach(e => e.finish())
}
destroy() {
this._onDestroy()
}
_onDestroy() {
this._destroyed || (this._destroyed = !0, this._onFinish(), this.players.forEach(e => e.destroy()), this._onDestroyFns.forEach(e => e()), this._onDestroyFns = [])
}
reset() {
this.players.forEach(e => e.reset()), this._destroyed = !1, this._finished = !1, this._started = !1
}
setPosition(e) {
const t = e * this.totalTime;
this.players.forEach(e => {
const n = e.totalTime ? Math.min(1, t / e.totalTime) : 1;
e.setPosition(n)
})
}
getPosition() {
let e = 0;
return this.players.forEach(t => {
const n = t.getPosition();
e = Math.min(n, e)
}), e
}
beforeDestroy() {
this.players.forEach(e => {
e.beforeDestroy && e.beforeDestroy()
})
}
triggerCallback(e) {
const t = "start" == e ? this._onStartFns : this._onDoneFns;
t.forEach(e => e()), t.length = 0
}
}
const p = "!"
},
"+7q0": function(e, t, n) {
var a = n("eN33"),
i = n("Pz+s"),
r = n("zWgn");
e.exports = i ? function(e, t) {
return i(e, "toString", {
configurable: !0,
enumerable: !1,
value: a(t),
writable: !0
})
} : r
},
"+BzD": function(e, t, n) {
"use strict";
var a = l(n("a+E+")),
i = l(n("tdFx")),
r = l(n("uHsS"));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
a.default.registerModule("virtualScrolling", r.default), i.default.extend(r.default.extenders.dataSourceAdapter)
},
"+Dzz": function(e, t, n) {
"use strict";
t.default = void 0;
var a, i, r = (a = n("zboV")) && a.__esModule ? a : {
default: a
},
l = n("wwx0"),
o = function(e, t, n) {
return function() {
var a = this.callBase;
this.callBase = e[t];
try {
return n.apply(this, arguments)
} finally {
this.callBase = a
}
}
},
s = function(e) {
var t, n;
if (!e) return this;
for (t in e) n = e[t], this.prototype[t] = "function" == typeof this.prototype[t] && "function" == typeof n ? o(this.parent.prototype, t, n) : n;
return this
},
c = function() {
var e, t, n, a = this,
i = Object.prototype.hasOwnProperty.bind(a),
r = !i("_includedCtors") && !i("_includedPostCtors");
for (r && (a._includedCtors = a._includedCtors.slice(0), a._includedPostCtors = a._includedPostCtors.slice(0)), n = 0; n < arguments.length; n++)
for (t in (e = arguments[n]).ctor && a._includedCtors.push(e.ctor), e.postCtor && a._includedPostCtors.push(e.postCtor), e) "ctor" !== t && "postCtor" !== t && (a.prototype[t] = e[t]);
return a
},
d = function(e) {
if (!Object.prototype.hasOwnProperty.bind(this)("parent") && this.parent) {
var t = Object.getPrototypeOf(this);
return t === e || t.subclassOf(e)
}
return this.parent === e || !(!this.parent || !this.parent.subclassOf) && this.parent.subclassOf(e)
},
u = function() {
throw r.default.Error("E0001")
},
p = (i = Object.prototype.hasOwnProperty, function(e, t) {
for (var n in e) {
if (!i.call(e, n)) return;
t[n] = e[n]
}
}),
h = function() {};
h.inherit = function(e) {
var t = function() {
if (!this || (0, l.isWindow)(this) || "function" != typeof this.constructor) throw r.default.Error("E0003");
var e, t = this,
n = t.ctor,
a = t.constructor._includedCtors,
i = t.constructor._includedPostCtors;
for (e = 0; e < a.length; e++) a[e].call(t);
for (n && n.apply(t, arguments), e = 0; e < i.length; e++) i[e].call(t)
};
return t.prototype = function(e) {
var t = function() {};
return t.prototype = e.prototype, new t
}(this), p(this, t), t.inherit = this.inherit, t.abstract = u, t.redefine = s, t.include = c, t.subclassOf = d, t.parent = this, t._includedCtors = this._includedCtors ? this._includedCtors.slice(0) : [], t._includedPostCtors = this._includedPostCtors ? this._includedPostCtors.slice(0) : [], t.prototype.constructor = t, t.redefine(e), t
}, h.abstract = u, t.default = h, e.exports = t.default
},
"+JxS": function(e, t, n) {
"use strict";
t.getFormatter = function(e, t) {
return t = t || r,
function(n) {
if ("number" != typeof n || isNaN(n)) return "";
var r = n > 0 || 1 / n == 1 / 0,
o = function(e) {
var t = e.split(";");
return 1 === t.length && t.push("-" + t[0]), t
}(e)[r ? 0 : 1];
(function(e) {
return -1 !== e.indexOf("%") && !e.match(/'[^']*%[^']*'/g)
})(o) && (n *= 100), r || (n = -n);
var p, h = function(e) {
for (var t = !1, n = 0; n < e.length; n++)
if ("'" === e[n] && (t = !t), "." === e[n] && !t) return n;
return e.length
}(o),
m = [o.substr(0, h), o.substr(h + 1)],
f = c(m[1]),
g = f + s(m[1]),
v = c(m[0]),
b = s(m[0]) || t.unlimitedIntegerDigits ? void 0 : v,
_ = Math.floor(n).toString().length,
D = (0, a.fitIntoRange)(g, 0, 15 - _),
C = (p = m[0], p.split(",").slice(1).map((function(e) {
return e.split("").filter((function(e) {
return "#" === e || "0" === e
})).length
}))).reverse(),
y = (0, i.toFixed)(n, D < 0 ? 0 : D).split("."),
x = d(l(y[0]), v, b),
A = d(y[1], f, g);
x = function(e, t, n) {
if (!t.length) return e;
for (var a = [], i = 0; e;) {
var r = t[i];
if (!r) break;
a.push(e.slice(0, r)), e = e.slice(r), i < t.length - 1 && i++
}
return a.join(n)
}(x, C, t.thousandsSeparator);
var P = l(u(l(m[0]), x)),
S = g ? u(m[1], A) : "";
return P + (S.match(/\d/) ? t.decimalSeparator : "") + S
}
}, t.getFormat = function(e) {
var t = ".",
n = e(1).indexOf("100") >= 0;
t = h(t, e, n, !0);
var a = m(t = h(t, e, n, !1), e, n, !1),
i = m(t, e, n, !0);
return i === "-" + a ? a : a + ";" + i
};
var a = n("rJIJ"),
i = n("MqWz"),
r = {
thousandsSeparator: ",",
decimalSeparator: "."
};
function l(e) {
return e.toString().split("").reverse().join("")
}
function o(e) {
return e.replace(/'.+'/g, "")
}
function s(e) {
if (!e) return 0;
var t = o(e);
return t.length - t.replace(/[#]/g, "").length
}
function c(e) {
if (!e) return 0;
var t = o(e);
return t.length - t.replace(/[0]/g, "").length
}
function d(e, t, n) {
if (!e) return "";
for (e.length > n && (e = e.substr(0, n)); e.length > t && "0" === e.slice(-1);) e = e.substr(0, e.length - 1);
for (; e.length < t;) e += "0";
return e
}
function u(e, t) {
return e.split("'").map((function(e, n) {
var a = n % 2;
return !e && a ? "'" : a ? e : e.replace(/[,#0]+/, t)
})).join("")
}
function p(e, t, n) {
var a = (t ? .01 : 1) * parseFloat(e) || 0;
return n ? -a : a
}
function h(e, t, n, a) {
var i, r, l, o = e;
do {
l && (i = r.length === l.length ? "0" : "1", e = a ? i + e : e + i), r = l || t(p(o, n)), l = t(p(o = a ? "1" + o : o + "1", n))
} while (r !== l && (a ? r.length === l.length : r.length <= l.length));
if (a && l.length > r.length) {
var s = -1 === t(12345).indexOf("12345");
do {
e = "1" + e
} while (s && p(e, n) < 1e5)
}
return e
}
function m(e, t, n, a) {
var i = t(p(e, n, a)),
r = e.split("."),
l = t(p(r[0] + ".3" + r[1].slice(1), n, a)).indexOf("3") - 1;
return i = i.replace(/(\d)\D(\d)/g, "$1,$2"), l >= 0 && (i = i.slice(0, l) + "." + i.slice(l + 1)), i = i.replace(/1+/, "1").replace(/1/g, "#"), n || (i = i.replace("%", "'%'")), i
}
},
"+do1": function(e, t, n) {
"use strict";
t.default = void 0;
var a, i = (a = n("1IGy")) && a.__esModule ? a : {
default: a
},
r = n("V8yU"),
l = n("e95e"),
o = n("nwaP");
function s(e) {
return (s = "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
})(e)
}
function c(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}
function d(e, t) {
for (var n = 0; n < t.length; n++) {
var a = t[n];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
}
}
function u(e, t, n) {
return t && d(e.prototype, t), n && d(e, n), e
}
function p(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), t && (Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e
})(e, t)
}
function h(e) {
var t = function() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}))), !0
} catch (e) {
return !1
}
}();
return function() {
var n, a = f(e);
if (t) {
var i = f(this).constructor;
n = Reflect.construct(a, arguments, i)
} else n = a.apply(this, arguments);
return m(this, n)
}
}
function m(e, t) {
return !t || "object" !== s(t) && "function" != typeof t ? function(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}(e) : t
}
function f(e) {
return (f = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
})(e)
}
var g = function(e) {
p(n, e);
var t = h(n);
function n() {
return c(this, n), t.apply(this, arguments)
}
return u(n, [{
key: "tryExecute",
value: function() {
var e = this._options.value,
t = this.findInstance();
return !!t && (t.option(e), !0)
}
}]), n
}(i.default),
v = function(e) {
p(n, e);
var t = h(n);
function n() {
return c(this, n), t.apply(this, arguments)
}
return u(n, [{
key: "tryExecute",
value: function() {
var e = this.findInstance();
if (e) {
var t = this._options,
n = t.optionName,
a = t.value,
i = this._itemsRunTimeInfo.findItemIndexByItem(t.item);
if (i >= 0) return e.option((0, o.getFullOptionName)("items[".concat(i, "]"), n), a), !0
}
return !1
}
}]), n
}(i.default),
b = function(e) {
p(n, e);
var t = h(n);
function n() {
return c(this, n), t.apply(this, arguments)
}
return u(n, [{
key: "tryExecute",
value: function() {
var e = this.findInstance();
return !!e && (e.option("dataSource", this._options.value), !0)
}
}]), n
}(i.default),
_ = function(e) {
p(n, e);
var t = h(n);
function n() {
return c(this, n), t.apply(this, arguments)
}
return u(n, [{
key: "tryExecute",
value: function() {
var e = this._options.item,
t = this.findInstance(),
n = t && (0, r.data)(t.$element()[0], "dxValidator");
if (n && e) {
var a = function(e) {
return "required" === e.type
},
i = (n.option("validationRules") || []).some(a),
l = (e.validationRules || []).some(a);
if (!i && !l || i && l) return n.option("validationRules", e.validationRules), !0
}
return !1
}
}]), n
}(i.default),
D = function(e) {
p(n, e);
var t = h(n);
function n() {
return c(this, n), t.apply(this, arguments)
}
return u(n, [{
key: "tryExecute",
value: function() {
var e = this.findItemContainer(),
t = this._options,
n = t.value;
return !!e && (e.removeClass(t.previousValue).addClass(n), !0)
}
}]), n
}(i.default);
t.default = function(e, t) {
switch (e) {
case "editorOptions":
case "buttonOptions":
return new g(t);
case "validationRules":
return new _(t);
case "cssClass":
return new D(t);
case "badge":
case "disabled":
case "icon":
case "template":
case "tabTemplate":
case "title":
return new v((0, l.extend)(t, {
optionName: e
}));
case "tabs":
return new b(t);
default:
return null
}
}, e.exports = t.default
},
"+eYr": function(e, t, n) {
"use strict";
t.getData = function(e, t) {
return p.getData(e, t)
}, t.svgCreator = void 0;
var a = d(n("IbwU")),
i = d(n("iPzw")),
r = n("qOo7"),
l = n("wwx0"),
o = n("N8pe"),
s = n("drPJ"),
c = n("3jRX");
function d(e) {
return e && e.__esModule ? e : {
default: e
}
}
var u = (0, r.getWindow)(),
p = {
_markup: "",
_imageArray: {},
_imageDeferreds: [],
_getBinaryFile: function(e, t) {
i.default.sendRequest({
url: e,
method: "GET",
responseType: "arraybuffer"
}).done(t).fail((function() {
t(!1)
}))
},
_loadImages: function() {
var e = this;
(0, o.each)(e._imageArray, (function(t) {
var n = new c.Deferred;
e._imageDeferreds.push(n), e._getBinaryFile(t, (function(a) {
if (!a) return delete e._imageArray[t], void n.resolve();
var i, r = "",
l = new Uint8Array(a),
o = l.byteLength;
for (i = 0; i < o; i++) r += String.fromCharCode(l[i]);
e._imageArray[t] = "data:image/png;base64," + u.btoa(r), n.resolve()
}))
}))
},
_parseImages: function(e) {
var t, n = this;
"image" === e.tagName && (t = (0, a.default)(e).attr("href") || (0, a.default)(e).attr("xlink:href"), n._imageArray[t] || (n._imageArray[t] = "")), (0, o.each)(e.childNodes, (function(e, t) {
n._parseImages(t)
}))
},
_prepareImages: function(e) {
return this._parseImages(e), this._loadImages(), c.when.apply(a.default, this._imageDeferreds)
},
getData: function(e, t) {
var n, i = this,
r = (0, s.getSvgElement)(e),
c = (0, a.default)(r);
return n = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>' + (0, s.getSvgMarkup)(c.get(0), t.backgroundColor), i._prepareImages(r).then((function() {
return (0, o.each)(i._imageArray, (function(e, t) {
var a = "href=['|\"]".concat(e, "['|\"]");
n = n.replace(new RegExp(a, "gi"), 'href="'.concat(t, '"'))
})), (0, l.isFunction)(u.Blob) ? i._getBlob(n) : i._getBase64(n)
}))
},
_getBlob: function(e) {
return new u.Blob([e], {
type: "image/svg+xml"
})
},
_getBase64: function(e) {
return u.btoa(e)
}
};
t.svgCreator = p
},
"+fUG": function(e, t, n) {
var a = n("5pfJ"),
i = Object.prototype.hasOwnProperty;
e.exports = function(e) {
var t = this.__data__;
if (a) {
var n = t[e];
return "__lodash_hash_undefined__" === n ? void 0 : n
}
return i.call(t, e) ? t[e] : void 0
}
},
"+h6j": function(e, t, n) {
! function(e) {
"use strict";
var t = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),
n = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),
a = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
i = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
e.defineLocale("nl-be", {
months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),
monthsShort: function(e, a) {
return e ? /-MMM-/.test(a) ? n[e.month()] : t[e.month()] : t
},
monthsRegex: i,
monthsShortRegex: i,
monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
monthsParse: a,
longMonthsParse: a,
shortMonthsParse: a,
weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"),
weekdaysMin: "zo_ma_di_wo_do_vr_za".split("_"),
weekdaysParseExact: !0,
longDateFormat: {
LT: "HH:mm",
LTS: "HH:mm:ss",
L: "DD/MM/YYYY",
LL: "D MMMM YYYY",
LLL: "D MMMM YYYY HH:mm",
LLLL: "dddd D MMMM YYYY HH:mm"
},
calendar: {
sameDay: "[vandaag om] LT",
nextDay: "[morgen om] LT",
nextWeek: "dddd [om] LT",
lastDay: "[gisteren om] LT",
lastWeek: "[afgelopen] dddd [om] LT",
sameElse: "L"
},
relativeTime: {
future: "over %s",
past: "%s geleden",
s: "een paar seconden",
ss: "%d seconden",
m: "\xe9\xe9n minuut",
mm: "%d minuten",
h: "\xe9\xe9n uur",
hh: "%d uur",
d: "\xe9\xe9n dag",
dd: "%d dagen",
M: "\xe9\xe9n maand",
MM: "%d maanden",
y: "\xe9\xe9n jaar",
yy: "%d jaar"
},
dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
ordinal: function(e) {
return e + (1 === e || 8 === e || e >= 20 ? "ste" : "de")
},
week: {
dow: 1,
doy: 4
}
})
}(n("wgY5"))
},
"+k3o": function(e, t, n) {
"use strict";
t.default = void 0;
var a = D(n("IbwU")),
i = D(n("58Dz")),
r = D(n("rM28")),
l = n("Jd2B"),
o = n("L3QV"),
s = n("N8pe"),
c = n("wwx0"),
d = n("e95e"),
u = n("znnM"),
p = n("02tM"),
h = D(n("Mr1s")),
m = n("xphG"),
f = D(n("Dpa3")),
g = D(n("yj8o")),
v = D(n("hfEH")),
b = D(n("Lgc3")),
_ = D(n("N0dO"));
function D(e) {
return e && e.__esModule ? e : {
default: e
}
}
function C(e) {
return (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
})(e)
}
function y(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}
function x(e, t, n) {
return (x = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function(e, t, n) {
var a = function(e, t) {
for (; !Object.prototype.hasOwnProperty.call(e, t) && null !== (e = S(e)););
return e
}(e, t);
if (a) {
var i = Object.getOwnPropertyDescriptor(a, t);
return i.get ? i.get.call(n) : i.value
}
})(e, t, n || e)
}
function A(e, t) {
return (A = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e
})(e, t)
}
function P(e, t) {
return !t || "object" !== C(t) && "function" != typeof t ? function(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}(e) : t
}
function S(e) {
return (S = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
})(e)
}
var F = {
show: 50,
hide: 300
},
O = ["onSubmenuShowing", "onSubmenuShown", "onSubmenuHiding", "onSubmenuHidden", "onItemContextMenu", "onItemClick", "onSelectionChanged", "onItemRendered"],
w = function(e) {
! function(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), t && A(e, t)
}(D, e);
var t, n, r, f = (n = D, r = function() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}))), !0
} catch (e) {
return !1
}
}(), function() {
var e, t = S(n);
if (r) {
var a = S(this).constructor;
e = Reflect.construct(t, arguments, a)
} else e = t.apply(this, arguments);
return P(this, e)
});
function D() {
return y(this, D), f.apply(this, arguments)
}
return (t = [{
key: "_getDefaultOptions",
value: function() {
return (0, d.extend)(x(S(D.prototype), "_getDefaultOptions", this).call(this), {
orientation: "horizontal",
submenuDirection: "auto",
showFirstSubmenuMode: {
name: "onClick",
delay: {
show: 50,
hide: 300
}
},
hideSubmenuOnMouseLeave: !1,
onSubmenuShowing: null,
onSubmenuShown: null,
onSubmenuHiding: null,
onSubmenuHidden: null,
adaptivityEnabled: !1
})
}
}, {
key: "_setOptionsByReference",
value: function() {
x(S(D.prototype), "_setOptionsByReference", this).call(this), (0, d.extend)(this._optionsByReference, {
animation: !0,
selectedItem: !0
})
}
}, {
key: "_itemElements",
value: function() {
var e = x(S(D.prototype), "_itemElements", this).call(this),
t = this._submenuItemElements();
return e.add(t)
}
}, {
key: "_submenuItemElements",
value: function() {
var e = [],
t = ".".concat("dx-menu-item"),
n = this._submenus.length && this._submenus[0];
return n && n.itemsContainer() && (e = n.itemsContainer().find(t)), e
}
}, {
key: "_focusTarget",
value: function() {
return this.$element()
}
}, {
key: "_isMenuHorizontal",
value: function() {
return "horizontal" === this.option("orientation")
}
}, {
key: "_moveFocus",
value: function(e) {
var t, n, a = this._getAvailableItems(),
i = this._isMenuHorizontal(),
r = this._getActiveItem(!0);
switch (e) {
case "up":
t = i ? "showSubmenu" : this._getItemsNavigationOperation("prevItem"), n = this._getKeyboardNavigationAction(t, i ? r : a)();
break;
case "down":
t = i ? "showSubmenu" : this._getItemsNavigationOperation("nextItem"), n = this._getKeyboardNavigationAction(t, i ? r : a)();
break;
case "right":
t = i ? this._getItemsNavigationOperation("nextItem") : "showSubmenu", n = this._getKeyboardNavigationAction(t, i ? a : r)();
break;
case "left":
t = i ? this._getItemsNavigationOperation("prevItem") : "showSubmenu", n = this._getKeyboardNavigationAction(t, i ? a : r)();
break;
default:
return x(S(D.prototype), "_moveFocus", this).call(this, e)
}
n && 0 !== n.length && this.option("focusedElement", (0, o.getPublicElement)(n))
}
}, {
key: "_getItemsNavigationOperation",
value: function(e) {
var t = e;
return this.option("rtlEnabled") && (t = "prevItem" === e ? "nextItem" : "prevItem"), t
}
}, {
key: "_getKeyboardNavigationAction",
value: function(e, t) {
var n = l.noop;
switch (e) {
case "showSubmenu":
t.hasClass("dx-state-disabled") || (n = this._showSubmenu.bind(this, t));
break;
case "nextItem":
n = this._nextItem.bind(this, t);
break;
case "prevItem":
n = this._prevItem.bind(this, t)
}
return n
}
}, {
key: "_clean",
value: function() {
x(S(D.prototype), "_clean", this).call(this), this.option("templatesRenderAsynchronously") && clearTimeout(this._resizeEventTimer)
}
}, {
key: "_visibilityChanged",
value: function(e) {
e && (this._menuItemsWidth || this._updateItemsWidthCache(), this._dimensionChanged())
}
}, {
key: "_isAdaptivityEnabled",
value: function() {
return this.option("adaptivityEnabled") && "horizontal" === this.option("orientation")
}
}, {
key: "_updateItemsWidthCache",
value: function() {
var e = this.$element().find("ul").first().children("li").children(".".concat("dx-menu-item"));
this._menuItemsWidth = this._getSummaryItemsWidth(e, !0)
}
}, {
key: "_dimensionChanged",
value: function() {
if (this._isAdaptivityEnabled()) {
var e = this.$element().outerWidth();
this._toggleAdaptiveMode(this._menuItemsWidth > e)
}
}
}, {
key: "_init",
value: function() {
x(S(D.prototype), "_init", this).call(this), this._submenus = []
}
}, {
key: "_initActions",
value: function() {
var e = this;
this._actions = {}, (0, s.each)(O, (function(t, n) {
e._actions[n] = e._createActionByOption(n)
}))
}
}, {
key: "_initMarkup",
value: function() {
this._visibleSubmenu = null, this.$element().addClass("dx-menu"), x(S(D.prototype), "_initMarkup", this).call(this), this.setAria("role", "menubar")
}
}, {
key: "_render",
value: function() {
x(S(D.prototype), "_render", this).call(this), this._initAdaptivity()
}
}, {
key: "_renderHamburgerButton",
value: function() {
return this._hamburger = new b.default((0, a.default)("<div>").addClass("dx-menu-hamburger-button"), {
icon: "menu",
activeStateEnabled: !1,
onClick: this._toggleTreeView.bind(this)
}), this._hamburger.$element()
}
}, {
key: "_toggleTreeView",
value: function(e) {
(0, c.isPlainObject)(e) && (e = !this._overlay.option("visible")), this._overlay.option("visible", e), this._toggleHamburgerActiveState(e)
}
}, {
key: "_toggleHamburgerActiveState",
value: function(e) {
this._hamburger && this._hamburger.$element().toggleClass("dx-state-active", e)
}
}, {
key: "_toggleAdaptiveMode",
value: function(e) {
var t = this.$element().find(".".concat("dx-menu-horizontal")),
n = this.$element().find(".".concat("dx-menu-adaptive-mode"));
e ? this._hideVisibleSubmenu() : (this._treeView && this._treeView.collapseAll(), this._overlay && this._toggleTreeView(e)), t.toggle(!e), n.toggle(e)
}
}, {
key: "_removeAdaptivity",
value: function() {
this._$adaptiveContainer && (this._toggleAdaptiveMode(!1), this._$adaptiveContainer.remove(), this._$adaptiveContainer = null, this._treeView = null, this._hamburger = null, this._overlay = null)
}
}, {
key: "_treeviewItemClickHandler",
value: function(e) {
this._actions.onItemClick(e), e.node.children.length || this._toggleTreeView(!1)
}
}, {
key: "_getAdaptiveOverlayOptions",
value: function() {
var e = this,
t = this.option("rtlEnabled") ? "right" : "left";
return {
maxHeight: function() {
return (0, u.getElementMaxHeightByWindow)(e.$element())
},
deferRendering: !1,
shading: !1,
animation: !1,
closeOnTargetScroll: !0,
onHidden: function() {
e._toggleHamburgerActiveState(!1)
},
height: "auto",
closeOnOutsideClick: function(e) {
return !(0, a.default)(e.target).closest(".".concat("dx-menu-hamburger-button")).length
},
position: {
collision: "flipfit",
at: "bottom " + t,
my: "top " + t,
of: this._hamburger.$element()
}
}
}
}, {
key: "_getTreeViewOptions",
value: function() {
var e = this,
t = {};
return (0, s.each)(["rtlEnabled", "width", "accessKey", "activeStateEnabled", "animation", "dataSource", "disabled", "displayExpr", "displayExpr", "focusStateEnabled", "hint", "hoverStateEnabled", "itemsExpr", "items", "itemTemplate", "selectedExpr", "selectionMode", "tabIndex", "visible"], (function(n, a) {
t[a] = e.option(a)
})), (0, s.each)(["onItemContextMenu", "onSelectionChanged"], (function(n, a) {
t[a] = function(t) {
e._actions[a](t)
}
})), (0, d.extend)(t, {
dataSource: this.getDataSource(),
animationEnabled: !!this.option("animation"),
onItemClick: this._treeviewItemClickHandler.bind(this),
onItemExpanded: function(t) {
e._overlay.repaint(), e._actions.onSubmenuShown(t)
},
onItemCollapsed: function(t) {
e._overlay.repaint(), e._actions.onSubmenuHidden(t)
},
selectNodesRecursive: !1,
selectByClick: this.option("selectByClick"),
expandEvent: "click"
})
}
}, {
key: "_initAdaptivity",
value: function() {
if (this._isAdaptivityEnabled()) {
this._$adaptiveContainer = (0, a.default)("<div>").addClass("dx-menu-adaptive-mode");
var e = this._renderHamburgerButton();
this._treeView = this._createComponent((0, a.default)("<div>"), _.default, this._getTreeViewOptions()), this._overlay = this._createComponent((0, a.default)("<div>"), g.default, this._getAdaptiveOverlayOptions()), this._overlay.$content().append(this._treeView.$element()).addClass("dx-menu-adaptive-mode").addClass(this.option("cssClass")), this._overlay._wrapper().addClass("dx-menu-adaptive-mode-overlay-wrapper"), this._$adaptiveContainer.append(e), this._$adaptiveContainer.append(this._overlay.$element()), this.$element().append(this._$adaptiveContainer), this._updateItemsWidthCache(), this._dimensionChanged()
}
}
}, {
key: "_getDelay",
value: function(e) {
var t = this.option("showFirstSubmenuMode").delay;
return (0, c.isDefined)(t) ? (0, c.isObject)(t) ? t[e] : t : F[e]
}
}, {
key: "_keyboardHandler",
value: function(e) {
return x(S(D.prototype), "_keyboardHandler", this).call(this, e, !!this._visibleSubmenu)
}
}, {
key: "_renderContainer",
value: function() {
var e = (0, a.default)("<div>");
return e.appendTo(this.$element()).addClass(this._isMenuHorizontal() ? "dx-menu-horizontal" : "dx-menu-vertical"), x(S(D.prototype), "_renderContainer", this).call(this, e)
}
}, {
key: "_renderSubmenuItems",
value: function(e, t) {
var n = this._createSubmenu(e, t);
return this._submenus.push(n), this._renderBorderElement(t), n
}
}, {
key: "_getKeyboardListeners",
value: function() {
return x(S(D.prototype), "_getKeyboardListeners", this).call(this).concat(this._visibleSubmenu)
}
}, {
key: "_createSubmenu",
value: function(e, t) {
var n = (0, a.default)("<div>").addClass("dx-context-menu").appendTo(t),
i = this._getChildNodes(e),
r = this._createComponent(n, v.default, (0, d.extend)(this._getSubmenuOptions(), {
_dataAdapter: this._dataAdapter,
_parentKey: e.internalFields.key,
items: i,
onHoverStart: this._clearTimeouts.bind(this),
position: this.getSubmenuPosition(t)
}));
return this._attachSubmenuHandlers(t, r), r
}
}, {
key: "_getSubmenuOptions",
value: function() {
var e = this,
t = (0, a.default)("<div>"),
n = this._isMenuHorizontal();
return {
itemTemplate: this.option("itemTemplate"),
target: t,
orientation: this.option("orientation"),
selectionMode: this.option("selectionMode"),
cssClass: this.option("cssClass"),
selectByClick: this.option("selectByClick"),
hoverStateEnabled: this.option("hoverStateEnabled"),
activeStateEnabled: this.option("activeStateEnabled"),
focusStateEnabled: this.option("focusStateEnabled"),
animation: this.option("animation"),
showSubmenuMode: this.option("showSubmenuMode"),
displayExpr: this.option("displayExpr"),
disabledExpr: this.option("disabledExpr"),
selectedExpr: this.option("selectedExpr"),
itemsExpr: this.option("itemsExpr"),
onFocusedItemChanged: function(t) {
t.component.option("visible") && e.option("focusedElement", t.component.option("focusedElement"))
},
onSelectionChanged: this._nestedItemOnSelectionChangedHandler.bind(this),
onItemClick: this._nestedItemOnItemClickHandler.bind(this),
onItemRendered: this._nestedItemOnItemRenderedHandler.bind(this),
onLeftFirstItem: n ? null : this._moveMainMenuFocus.bind(this, "prevItem"),
onLeftLastItem: n ? null : this._moveMainMenuFocus.bind(this, "nextItem"),
onCloseRootSubmenu: this._moveMainMenuFocus.bind(this, n ? "prevItem" : null),
onExpandLastSubmenu: n ? this._moveMainMenuFocus.bind(this, "nextItem") : null
}
}
}, {
key: "_getShowFirstSubmenuMode",
value: function() {
if (!this._isDesktopDevice()) return "onClick";
var e = this.option("showFirstSubmenuMode");
return (0, c.isObject)(e) ? e.name : e
}
}, {
key: "_moveMainMenuFocus",
value: function(e) {
var t = this._getAvailableItems(),
n = t.length,
a = t.filter(".".concat("dx-menu-item-expanded")).eq(0),
i = t.index(a);
this._hideSubmenu(this._visibleSubmenu), (i += "prevItem" === e ? -1 : 1) >= n ? i = 0 : i < 0 && (i = n - 1);
var r = t.eq(i);
this.option("focusedElement", (0, o.getPublicElement)(r))
}
}, {
key: "_nestedItemOnSelectionChangedHandler",
value: function(e) {
var t = e.addedItems.length && e.addedItems[0],
n = v.default.getInstance(e.element);
(0, this._actions.onSelectionChanged)(e), t && this._clearSelectionInSubmenus(t[0], n), this._clearRootSelection(), this._setOptionWithoutOptionChange("selectedItem", t)
}
}, {
key: "_clearSelectionInSubmenus",
value: function(e, t) {
var n = this,
a = !arguments.length;
(0, s.each)(this._submenus, (function(e, i) {
var r = i._itemContainer(),
l = !r.is(t && t._itemContainer()),
o = r.find(".".concat(n._selectedItemClass()));
if (l && o.length || a) {
o.removeClass(n._selectedItemClass());
var s = n._getItemData(o);
s && (s.selected = !1), i._clearSelectedItems()
}
}))
}
}, {
key: "_clearRootSelection",
value: function() {
var e = this.$element().find(".".concat("dx-menu-items-container")).first().children().children().filter(".".concat(this._selectedItemClass()));
e.length && (this._getItemData(e).selected = !1, e.removeClass(this._selectedItemClass()))
}
}, {
key: "_nestedItemOnItemClickHandler",
value: function(e) {
this._actions.onItemClick(e)
}
}, {
key: "_nestedItemOnItemRenderedHandler",
value: function(e) {
this._actions.onItemRendered(e)
}
}, {
key: "_attachSubmenuHandlers",
value: function(e, t) {
var n = this,
a = t.getOverlayContent().find(".".concat("dx-submenu")),
r = (0, p.addNamespace)(m.end, this.NAME + "_submenu");
t.option({
onShowing: this._submenuOnShowingHandler.bind(this, e, t),
onShown: this._submenuOnShownHandler.bind(this, e, t),
onHiding: this._submenuOnHidingHandler.bind(this, e, t),
onHidden: this._submenuOnHiddenHandler.bind(this, e, t)
}), (0, s.each)(a, (function(t, a) {
i.default.off(a, r), i.default.on(a, r, null, n._submenuMouseLeaveHandler.bind(n, e))
}))
}
}, {
key: "_submenuOnShowingHandler",
value: function(e, t) {
var n = e.children(".".concat("dx-context-menu-container-border"));
this._actions.onSubmenuShowing({
rootItem: (0, o.getPublicElement)(e),
submenu: t
}), n.show(), e.addClass("dx-menu-item-expanded")
}
}, {
key: "_submenuOnShownHandler",
value: function(e, t) {
this._actions.onSubmenuShown({
rootItem: (0, o.getPublicElement)(e),
submenu: t
})
}
}, {
key: "_submenuOnHidingHandler",
value: function(e, t, n) {
var a = e.children(".".concat("dx-context-menu-container-border")),
i = n;
i.rootItem = (0, o.getPublicElement)(e), i.submenu = t, this._actions.onSubmenuHiding(i), (n = i).cancel || (this._visibleSubmenu === t && (this._visibleSubmenu = null), a.hide(), e.removeClass("dx-menu-item-expanded"))
}
}, {
key: "_submenuOnHiddenHandler",
value: function(e, t) {
this._actions.onSubmenuHidden({
rootItem: (0, o.getPublicElement)(e),
submenu: t
})
}
}, {
key: "_submenuMouseLeaveHandler",
value: function(e, t) {
var n = (0, a.default)(t.relatedTarget).parents(".".concat("dx-context-menu"))[0],
i = this._getSubmenuByRootElement(e).getOverlayContent()[0];
this.option("hideSubmenuOnMouseLeave") && n !== i && (this._clearTimeouts(), setTimeout(this._hideSubmenuAfterTimeout.bind(this), this._getDelay("hide")))
}
}, {
key: "_hideSubmenuAfterTimeout",
value: function() {
if (this._visibleSubmenu) {
var e = (0, a.default)(this._visibleSubmenu.$element().context).hasClass("dx-state-hover"),
t = this._visibleSubmenu.getOverlayContent().find(".".concat("dx-state-hover")).length;
this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover") || t || e || this._visibleSubmenu.hide()
}
}
}, {
key: "_getSubmenuByRootElement",
value: function(e) {
if (!e) return !1;
var t = e.children(".".concat("dx-context-menu"));
return t.length && v.default.getInstance(t)
}
}, {
key: "getSubmenuPosition",
value: function(e) {
var t = this._isMenuHorizontal(),
n = this.option("submenuDirection").toLowerCase(),
a = this.option("rtlEnabled"),
i = {
collision: "flip",
of: e
};
switch (n) {
case "leftortop":
i.at = "left top", i.my = t ? "left bottom" : "right top";
break;
case "rightorbottom":
i.at = t ? "left bottom" : "right top", i.my = "left top";
break;
default:
t ? (i.at = a ? "right bottom" : "left bottom", i.my = a ? "right top" : "left top") : (i.at = a ? "left top" : "right top", i.my = a ? "right top" : "left top")
}
return i
}
}, {
key: "_renderBorderElement",
value: function(e) {
(0, a.default)("<div>").appendTo(e).addClass("dx-context-menu-container-border").hide()
}
}, {
key: "_itemPointerDownHandler",
value: function(e) {
(0, a.default)(e.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu") ? this.option("focusedElement", null) : x(S(D.prototype), "_itemPointerDownHandler", this).call(this, e)
}
}, {
key: "_hoverStartHandler",
value: function(e) {
var t = (0, p.addNamespace)(h.default.move, this.NAME),
n = this._getItemElementByEventArgs(e),
a = this._dataAdapter.getNodeByItem(this._getItemData(n)),
r = (0, c.isDefined)(e.buttons) && 1 === e.buttons || !(0, c.isDefined)(e.buttons) && 1 === e.which;
if (!this._isItemDisabled(n))
if (i.default.off(n, t), this._hasChildren(a)) {
if ("onHover" === this._getShowFirstSubmenuMode() && !r) {
var l = this._getSubmenuByElement(n);
this._clearTimeouts(), l.isOverlayVisible() || (i.default.on(n, t, this._itemMouseMoveHandler.bind(this)), this._showSubmenuTimer = this._getDelay("hide"))
}
} else this._showSubmenuTimer = setTimeout(this._hideSubmenuAfterTimeout.bind(this), this._getDelay("hide"))
}
}, {
key: "_hoverEndHandler",
value: function(e) {
var t = this,
n = this._getItemElementByEventArgs(e),
i = (0, a.default)(e.relatedTarget);
x(S(D.prototype), "_hoverEndHandler", this).call(this, e), this._clearTimeouts(), this._isItemDisabled(n) || i.hasClass("dx-context-menu-content-delimiter") || this.option("hideSubmenuOnMouseLeave") && !i.hasClass("dx-menu-items-container") && (this._hideSubmenuTimer = setTimeout((function() {
t._hideSubmenuAfterTimeout()
}), this._getDelay("hide")))
}
}, {
key: "_hideVisibleSubmenu",
value: function() {
return !!this._visibleSubmenu && (this._hideSubmenu(this._visibleSubmenu), !0)
}
}, {
key: "_showSubmenu",
value: function(e) {
var t = this._getSubmenuByElement(e);
this._visibleSubmenu !== t && this._hideVisibleSubmenu(), t && (this._clearTimeouts(), t.show(), this.option("focusedElement", t.option("focusedElement"))), this._visibleSubmenu = t, this._hoveredRootItem = e
}
}, {
key: "_hideSubmenu",
value: function(e) {
e && e.hide(), this._visibleSubmenu === e && (this._visibleSubmenu = null), this._hoveredRootItem = null
}
}, {
key: "_itemMouseMoveHandler",
value: function(e) {
var t = this;
if (!e.pointers || !e.pointers.length) {
var n = (0, a.default)(e.currentTarget);
(0, c.isDefined)(this._showSubmenuTimer) && (this._clearTimeouts(), this._showSubmenuTimer = setTimeout((function() {
var e = t._getSubmenuByElement(n);
e && !e.isOverlayVisible() && t._showSubmenu(n)
}), this._getDelay("show")))
}
}
}, {
key: "_clearTimeouts",
value: function() {
clearTimeout(this._hideSubmenuTimer), clearTimeout(this._showSubmenuTimer)
}
}, {
key: "_getSubmenuByElement",
value: function(e, t) {
var n = this._getSubmenuByRootElement(e);
if (n) return n;
t = t || this._getItemData(e);
var a = this._dataAdapter.getNodeByItem(t);
return this._hasChildren(a) && this._renderSubmenuItems(a, e)
}
}, {
key: "_updateSubmenuVisibilityOnClick",
value: function(e) {
var t = e.args.length && e.args[0];
if (t && !this._disabledGetter(t.itemData)) {
var n = (0, a.default)(t.itemElement),
i = this._getSubmenuByElement(n, t.itemData);
if (this._updateSelectedItemOnClick(e), this._visibleSubmenu) {
if (this._visibleSubmenu === i) return void("onClick" === this.option("showFirstSubmenuMode") && this._hideSubmenu(this._visibleSubmenu));
this._hideSubmenu(this._visibleSubmenu)
}
i && (i.isOverlayVisible() || this._showSubmenu(n))
}
}
}, {
key: "_optionChanged",
value: function(e) {
switch (e.name) {
case "orientation":
case "submenuDirection":
this._invalidate();
break;
case "showFirstSubmenuMode":
case "hideSubmenuOnMouseLeave":
break;
case "showSubmenuMode":
this._changeSubmenusOption(e.name, e.value);
break;
case "onSubmenuShowing":
case "onSubmenuShown":
case "onSubmenuHiding":
case "onSubmenuHidden":
this._initActions();
break;
case "adaptivityEnabled":
e.value ? this._initAdaptivity() : this._removeAdaptivity();
break;
case "width":
this._isAdaptivityEnabled() && (this._treeView.option(e.name, e.value), this._overlay.option(e.name, e.value)), x(S(D.prototype), "_optionChanged", this).call(this, e), this._dimensionChanged();
break;
case "animation":
this._isAdaptivityEnabled() && this._treeView.option("animationEnabled", !!e.value), x(S(D.prototype), "_optionChanged", this).call(this, e);
break;
default:
this._isAdaptivityEnabled() && this._treeView.option(e.name, e.value), x(S(D.prototype), "_optionChanged", this).call(this, e)
}
}
}, {
key: "_changeSubmenusOption",
value: function(e, t) {
(0, s.each)(this._submenus, (function(n, a) {
a.option(e, t)
}))
}
}, {
key: "selectItem",
value: function(e) {
this._hideSubmenu(this._visibleSubmenu), x(S(D.prototype), "selectItem", this).call(this, e)
}
}, {
key: "unselectItem",
value: function(e) {
this._hideSubmenu(this._visibleSubmenu), x(S(D.prototype), "selectItem", this).call(this, e)
}
}]) && function(e, t) {
for (var n = 0; n < t.length; n++) {
var a = t[n];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
}
}(D.prototype, t), D
}(f.default);
(0, r.default)("dxMenu", w), t.default = w, e.exports = t.default
},
"+lGD": function(e, t, n) {
"use strict";
t.default = void 0;
var a, i = n("wwx0"),
r = n("rJIJ"),
l = n("N8pe"),
o = n("vxEe"),
s = (a = n("7B9z")) && a.__esModule ? a : {
default: a
};
function c(e, t, n) {
return (c = d() ? Reflect.construct : function(e, t, n) {
var a = [null];
a.push.apply(a, t);
var i = new(Function.bind.apply(e, a));
return n && u(i, n.prototype), i
}).apply(null, arguments)
}
function d() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}))), !0
} catch (e) {
return !1
}
}
function u(e, t) {
return (u = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e
})(e, t)
}
var p = s.default.msie && parseInt(s.default.version) <= 11,
h = ["millisecond", "second", "minute", "hour", "day", "week", "month", "quarter", "year"],
m = function e(t) {
switch (t) {
case "millisecond":
return 1;
case "second":
return 1e3 * e("millisecond");
case "minute":
return 60 * e("second");
case "hour":
return 60 * e("minute");
case "day":
return 24 * e("hour");
case "week":
return 7 * e("day");
case "month":
return 30 * e("day");
case "quarter":
return 3 * e("month");
case "year":
return 365 * e("day");
default:
return 0
}
},
f = function(e) {
var t, n, a, i = ["millisecond", "second", "minute", "hour", "day", "month", "year"],
r = {};
for (t = i.length - 1; t >= 0; t--) a = i[t], (n = Math.floor(e / m(a))) > 0 && (r[a + "s"] = n, e -= g(a, n));
return r
};
function g(e, t) {
return m(e) * t
}
function v(e) {
var t, n = -1;
return (0, i.isString)(e) ? e : (0, i.isObject)(e) ? ((0, l.each)(e, (function(e, a) {
for (t = 0; t < h.length; t++) a && (e === h[t] + "s" || e === h[t]) && n < t && (n = t)
})), h[n]) : ""
}
var b = {
millisecond: "millisecond",
second: "longtime",
minute: "shorttime",
hour: "shorttime",
day: "day",
week: "day",
month: "month",
quarter: "quarter",
year: "year"
},
_ = function(e) {
return Math.floor(e / 3)
},
D = function(e) {
return 3 * _(e)
};
function C(e, t, n, a) {
e = new Date(e.getTime());
var i, r, l = new Date(e.getTime()),
o = v(t);
switch (o) {
case "second":
e = new Date(1e3 * Math.floor(l.getTime() / 1e3));
break;
case "minute":
e = new Date(6e4 * Math.floor(l.getTime() / 6e4));
break;
case "hour":
e = new Date(36e5 * Math.floor(l.getTime() / 36e5));
break;
case "year":
e.setMonth(0);
case "month":
e.setDate(1);
case "day":
e.setHours(0, 0, 0, 0);
break;
case "week":
(e = T(e, a || 0)).setHours(0, 0, 0, 0);
break;
case "quarter":
i = D(e.getMonth()), r = e.getMonth(), e.setDate(1), e.setHours(0, 0, 0, 0), r !== i && e.setMonth(i)
}
return n && "hour" !== o && "minute" !== o && "second" !== o && R(l, e), e
}
function y(e) {
return C(e, "day")
}
function x(e, t, n) {
var a = new Date(e.getTime()),
r = (0, i.isString)(t) ? S(t.toLowerCase()) : (0, i.isNumeric)(t) ? f(t) : t;
return r.years && a.setFullYear(a.getFullYear() + r.years * n), r.quarters && a.setMonth(a.getMonth() + 3 * r.quarters * n), r.months && a.setMonth(a.getMonth() + r.months * n), r.weeks && a.setDate(a.getDate() + 7 * r.weeks * n), r.days && a.setDate(a.getDate() + r.days * n), r.hours && a.setTime(a.getTime() + 36e5 * r.hours * n), r.minutes && a.setTime(a.getTime() + 6e4 * r.minutes * n), r.seconds && a.setTime(a.getTime() + 1e3 * r.seconds * n), r.milliseconds && a.setTime(a.getTime() + r.milliseconds * n), a
}
var A = function(e, t, n) {
var a = n ? -1 : 1;
return (0, i.isDate)(e) ? x(e, t, a) : (0, r.adjust)(e + t * a, t)
};
function P(e) {
return k(e.getFullYear(), e.getMonth() + 1, 0).getDate()
}
function S(e) {
var t = {};
switch (e) {
case "year":
t.years = 1;
break;
case "month":
t.months = 1;
break;
case "quarter":
t.months = 3;
break;
case "week":
t.weeks = 1;
break;
case "day":
t.days = 1;
break;
case "hour":
t.hours = 1;
break;
case "minute":
t.minutes = 1;
break;
case "second":
t.seconds = 1;
break;
case "millisecond":
t.milliseconds = 1
}
return t
}
function F(e, t) {
return O(e, t) && e.getMonth() === t.getMonth()
}
function O(e, t) {
return e && t && e.getFullYear() === t.getFullYear()
}
function w(e) {
return e && e.getFullYear() - e.getFullYear() % 100
}
function E(e) {
return e && e.getFullYear() - e.getFullYear() % 10
}
function T(e, t) {
var n = (e.getDay() - t + 7) % 7,
a = new Date(e);
return a.setDate(e.getDate() - n), a
}
function I(e, t, n) {
var a = e;
return (0, i.isDefined)(e) ? ((0, i.isDefined)(t) && e < t && (a = t), (0, i.isDefined)(n) && e > n && (a = n), a) : e
}
function R(e, t) {
if ((0, i.isDefined)(e)) {
var n = t.getHours() - e.getHours();
if (0 !== n) {
var a = 1 === n || -23 === n ? -1 : 1,
r = new Date(t.getTime() + 36e5 * a);
(a > 0 || r.getDate() === t.getDate()) && t.setTime(r.getTime())
}
}
}
function M(e, t) {
return 60 * (t.getTimezoneOffset() - e.getTimezoneOffset()) * 1e3
}
var k = function(e) {
var t = c(Date, Array.prototype.slice.call(arguments));
return t.setFullYear(e), t
},
N = {
dateUnitIntervals: h,
convertMillisecondsToDateUnits: f,
dateToMilliseconds: function(e) {
var t = 0;
return (0, i.isObject)(e) && (0, l.each)(e, (function(e, n) {
t += g(e.substr(0, e.length - 1), n)
})), (0, i.isString)(e) && (t = g(e, 1)), t
},
getNextDateUnit: function(e, t) {
switch (v(e)) {
case "millisecond":
return "second";
case "second":
return "minute";
case "minute":
return "hour";
case "hour":
return "day";
case "day":
return t ? "week" : "month";
case "week":
return "month";
case "month":
return "quarter";
case "quarter":
case "year":
return "year";
default:
return 0
}
},
convertDateUnitToMilliseconds: g,
getDateUnitInterval: v,
getDateFormatByTickInterval: function(e) {
return b[v(e)] || ""
},
getDatesDifferences: function(e, t) {
var n = 0,
a = {
year: e.getFullYear() !== t.getFullYear(),
month: e.getMonth() !== t.getMonth(),
day: e.getDate() !== t.getDate(),
hour: e.getHours() !== t.getHours(),
minute: e.getMinutes() !== t.getMinutes(),
second: e.getSeconds() !== t.getSeconds(),
millisecond: e.getMilliseconds() !== t.getMilliseconds()
};
return (0, l.each)(a, (function(e, t) {
t && n++
})), 0 === n && 0 !== M(e, t) && (a.hour = !0, n++), a.count = n, a
},
correctDateWithUnitBeginning: C,
trimTime: y,
setToDayEnd: function(e) {
var t = y(e);
return t.setDate(t.getDate() + 1), new Date(t.getTime() - 1)
},
roundDateByStartDayHour: function(e, t) {
var n = this.dateTimeFromDecimal(t),
a = new Date(e);
return (e.getHours() === n.hours && e.getMinutes() < n.minutes || e.getHours() < n.hours) && a.setHours(n.hours, n.minutes, 0, 0), a
},
dateTimeFromDecimal: function(e) {
return {
hours: Math.floor(e),
minutes: e % 1 * 60
}
},
addDateInterval: x,
addInterval: A,
getSequenceByInterval: function(e, t, n) {
var a, r = [];
for (r.push((0, i.isDate)(e) ? new Date(e.getTime()) : e), a = e; a < t;) a = A(a, n), r.push(a);
return r
},
getDateIntervalByString: S,
sameDate: function(e, t) {
return F(e, t) && e.getDate() === t.getDate()
},
sameMonthAndYear: F,
sameMonth: F,
sameYear: O,
sameDecade: function(e, t) {
if ((0, i.isDefined)(e) && (0, i.isDefined)(t)) {
var n = e.getFullYear() - e.getFullYear() % 10,
a = t.getFullYear() - t.getFullYear() % 10;
return e && t && n === a
}
},
sameCentury: function(e, t) {
if ((0, i.isDefined)(e) && (0, i.isDefined)(t)) {
var n = e.getFullYear() - e.getFullYear() % 100,
a = t.getFullYear() - t.getFullYear() % 100;
return e && t && n === a
}
},
getDifferenceInMonth: function(e) {
var t = 1;
return "year" === e && (t = 12), "decade" === e && (t = 120), "century" === e && (t = 1200), t
},
getDifferenceInMonthForCells: function(e) {
var t = 1;
return "decade" === e && (t = 12), "century" === e && (t = 120), t
},
getFirstYearInDecade: E,
getFirstDecadeInCentury: w,
getShortDateFormat: function() {
return "yyyy/MM/dd"
},
getViewFirstCellDate: function(e, t) {
return "month" === e ? k(t.getFullYear(), t.getMonth(), 1) : "year" === e ? k(t.getFullYear(), 0, t.getDate()) : "decade" === e ? k(E(t), t.getMonth(), t.getDate()) : "century" === e ? k(w(t), t.getMonth(), t.getDate()) : void 0
},
getViewLastCellDate: function(e, t) {
return "month" === e ? k(t.getFullYear(), t.getMonth(), P(t)) : "year" === e ? k(t.getFullYear(), 11, t.getDate()) : "decade" === e ? k(E(t) + 9, t.getMonth(), t.getDate()) : "century" === e ? k(w(t) + 90, t.getMonth(), t.getDate()) : void 0
},
getViewDown: function(e) {
switch (e) {
case "century":
return "decade";
case "decade":
return "year";
case "year":
return "month"
}
},
getViewUp: function(e) {
switch (e) {
case "month":
return "year";
case "year":
return "decade";
case "decade":
return "century"
}
},
getLastMonthDay: P,
getLastMonthDate: function(e) {
if ((0, i.isDefined)(e)) return k(e.getFullYear(), e.getMonth() + 1, 0)
},
getFirstMonthDate: function(e) {
if ((0, i.isDefined)(e)) return k(e.getFullYear(), e.getMonth(), 1)
},
getFirstWeekDate: T,
normalizeDateByWeek: function(e, t) {
var n = N.getDatesInterval(e, t, "day"),
a = new Date(e);
return n >= 6 && (a = new Date(a.setDate(a.getDate() + 7))), a
},
getQuarter: _,
getFirstQuarterMonth: D,
dateInRange: function(e, t, n, a) {
return "date" === a && (t = t && N.correctDateWithUnitBeginning(t, "day"), n = n && N.correctDateWithUnitBeginning(n, "day"), e = e && N.correctDateWithUnitBeginning(e, "day")), I(e, t, n) === e
},
roundToHour: function(e) {
return e.setHours(e.getHours() + 1), e.setMinutes(0), e
},
normalizeDate: I,
getViewMinBoundaryDate: function(e, t) {
var n = k(t.getFullYear(), t.getMonth(), 1);
return "month" === e || (n.setMonth(0), "year" === e || ("decade" === e && n.setFullYear(E(t)), "century" === e && n.setFullYear(w(t)))), n
},
getViewMaxBoundaryDate: function(e, t) {
var n = new Date(t);
return n.setDate(P(t)), "month" === e || (n.setMonth(11), n.setDate(P(n)), "year" === e || ("decade" === e && n.setFullYear(E(t) + 9), "century" === e && n.setFullYear(w(t) + 99))), n
},
fixTimezoneGap: R,
getTimezonesDifference: M,
makeDate: function(e) {
return new Date(e)
},
getDatesInterval: function(e, t, n) {
var a = t.getTime() - e.getTime(),
i = m(n) || 1;
return Math.floor(a / i)
},
getDatesOfInterval: function(e, t, n) {
for (var a = [], i = new Date(e.getTime()); i < t;) a.push(new Date(i.getTime())), i = this.addInterval(i, n);
return a
},
createDate: function(e) {
return new Date(p && (0, i.isDate)(e) ? e.getTime() : e)
},
createDateWithFullYear: k,
sameView: function(e, t, n) {
return N[(0, o.camelize)("same " + e)](t, n)
}
};
t.default = N, e.exports = t.default
},
"+n5x": function(e, t, n) {
! function(e) {
"use strict";
e.defineLocale("bg", {
months: "\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),
monthsShort: "\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),
weekdays: "\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),
weekdaysShort: "\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),
weekdaysMin: "\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),
longDateFormat: {
LT: "H:mm",
LTS: "H:mm:ss",
L: "D.MM.YYYY",
LL: "D MMMM YYYY",
LLL: "D MMMM YYYY H:mm",
LLLL: "dddd, D MMMM YYYY H:mm"
},
calendar: {
sameDay: "[\u0414\u043d\u0435\u0441 \u0432] LT",
nextDay: "[\u0423\u0442\u0440\u0435 \u0432] LT",
nextWeek: "dddd [\u0432] LT",
lastDay: "[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",
lastWeek: function() {
switch (this.day()) {
case 0:
case 3:
case 6:
return "[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";
case 1:
case 2:
case 4:
case 5:
return "[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"
}
},
sameElse: "L"
},
relativeTime: {
future: "\u0441\u043b\u0435\u0434 %s",
past: "\u043f\u0440\u0435\u0434\u0438 %s",
s: "\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",
ss: "%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",
m: "\u043c\u0438\u043d\u0443\u0442\u0430",
mm: "%d \u043c\u0438\u043d\u0443\u0442\u0438",
h: "\u0447\u0430\u0441",
hh: "%d \u0447\u0430\u0441\u0430",
d: "\u0434\u0435\u043d",
dd: "%d \u0434\u043d\u0438",
M: "\u043c\u0435\u0441\u0435\u0446",
MM: "%d \u043c\u0435\u0441\u0435\u0446\u0430",
y: "\u0433\u043e\u0434\u0438\u043d\u0430",
yy: "%d \u0433\u043e\u0434\u0438\u043d\u0438"
},
dayOfMonthOrdinalParse: /\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,
ordinal: function(e) {
var t = e % 10,
n = e % 100;
return 0 === e ? e + "-\u0435\u0432" : 0 === n ? e + "-\u0435\u043d" : n > 10 && n < 20 ? e + "-\u0442\u0438" : 1 === t ? e + "-\u0432\u0438" : 2 === t ? e + "-\u0440\u0438" : 7 === t || 8 === t ? e + "-\u043c\u0438" : e + "-\u0442\u0438"
},
week: {
dow: 1,
doy: 7
}
})
}(n("wgY5"))
},
"+ooz": function(e, t, n) {
var a = n("8Zrg"),
i = n("kwr2"),
r = n("5VYK"),
l = n("Coc+"),
o = n("LzM7");
function s(e) {
var t = -1,
n = null == e ? 0 : e.length;
for (this.clear(); ++t < n;) {
var a = e[t];
this.set(a[0], a[1])
}
}
s.prototype.clear = a, s.prototype.delete = i, s.prototype.get = r, s.prototype.has = l, s.prototype.set = o, e.exports = s
},
"+q37": function(e, t, n) {
"use strict";
t.default = void 0;
var a, i = n("wwx0"),
r = (a = n("Kc8Q")) && a.__esModule ? a : {
default: a
},
l = {
ID_PROPERTY_NAME: "id",
tryCreateTag: function(e) {
var t = null;
return "string" == typeof e && l.isEmpty(t = {
formatCode: e
}) && (t = null), t
},
areEqual: function(e, t) {
return l.isEmpty(e) && l.isEmpty(t) || (0, i.isDefined)(e) && (0, i.isDefined)(t) && e.formatCode === t.formatCode
},
isEmpty: function(e) {
return !(0, i.isDefined)(e) || !(0, i.isDefined)(e.formatCode) || "" === e.formatCode
},
toXml: function(e) {
return r.default.toXml("numFmt", {
numFmtId: e[l.ID_PROPERTY_NAME],
formatCode: e.formatCode
})
}
};
t.default = l, e.exports = t.default
},
"+tCn": function(e, t, n) {
var a = n("tQYX");
e.exports = function(e) {
return e == e && !a(e)
}
},
"//nZ": function(e, t, n) {
var a = n("QwI6"),
i = n("cH1A")((function(e, t) {
return null == e ? {} : a(e, t)
}));
e.exports = i
},
"//rc": function(e, t, n) {
"use strict";
t.default = void 0;
var a = c(n("IbwU")),
i = n("L3QV"),
r = n("Jd2B"),
l = n("N8pe"),
o = c(n("Wgfj")),
s = c(n("BEDh"));
function c(e) {
return e && e.__esModule ? e : {
default: e
}
}
var d = {
columnHeadersView: "header",
rowsView: "content",
footerView: "footer",
headerPanel: "headerPanel"
},
u = ["columnHeadersView", "rowsView", "footerView", "headerPanel"],
p = o.default.ViewController.inherit({
init: function() {
this.createAction("onContextMenuPreparing")
},
getContextMenuItems: function(e) {
if (!e) return !1;
var t, n, r, o, s = this,
c = (0, a.default)(e.target);
return (0, l.each)(u, (function() {
var a = s.getView(this);
if ((t = a && a.element()) && (t.is(c) || t.find(c).length)) {
r = c.closest(".dx-row > td, .dx-row > tr"), n = r.parent();
var l = a.getRowIndex(n),
u = r[0] && r[0].cellIndex,
p = n.data("options"),
h = {
event: e,
targetElement: (0, i.getPublicElement)(c),
target: d[this],
rowIndex: l,
row: a._getRows()[l],
columnIndex: u,
column: p && p.cells[u].column
};
if (h.items = a.getContextMenuItems && a.getContextMenuItems(h), s.executeAction("onContextMenuPreparing", h), s._contextMenuPrepared(h), o = h.items) return !1
}
})), o
},
_contextMenuPrepared: r.noop
}),
h = o.default.View.inherit({
_renderCore: function() {
var e = this,
t = e.element().addClass("dx-context-menu");
this.setAria("role", "presentation", t), this._createComponent(t, s.default, {
onPositioning: function(t) {
var n = t.event,
a = t.component,
i = e.getController("contextMenu").getContextMenuItems(n);
i ? (a.option("items", i), n.stopPropagation()) : t.cancel = !0
},
onItemClick: function(e) {
e.itemData.onItemClick && e.itemData.onItemClick(e)
},
cssClass: e.getWidgetContainerClass(),
target: e.component.$element()
})
}
});
t.default = {
defaultOptions: function() {
return {
onContextMenuPreparing: null
}
},
controllers: {
contextMenu: p
},
views: {
contextMenuView: h
}
}, e.exports = t.default
},
"/07I": function(e, t, n) {
"use strict";
t.default = void 0;
var a = g(n("IbwU")),
i = g(n("paff")),
r = g(n("58Dz")),
l = n("V8yU"),
o = n("L3QV"),
s = g(n("1BCF")),
c = g(n("+lGD")),
d = n("e95e"),
u = n("Jd2B"),
p = g(n("z5Z3")),
h = g(n("dv/a")),
m = n("02tM"),
f = n("5JJw");
function g(e) {
return e && e.__esModule ? e : {
default: e
}
}
var v = s.default.abstract,
b = (0, m.addNamespace)(f.name, "dxCalendar"),
_ = s.default.inherit({
_getViewName: function() {
return "base"
},
_getDefaultOptions: function() {
return (0, d.extend)(this.callBase(), {
date: new Date,
focusStateEnabled: !1,
cellTemplate: null,
disabledDates: null,
onCellClick: null,
rowCount: 3,
colCount: 4,
allowValueSelection: !0
})
},
_init: function() {
this.callBase();
var e = this.option("value");
this.option("value", new Date(e)), this.option("value").valueOf() || this.option("value", new Date(0, 0, 0, 0, 0, 0))
},
_initMarkup: function() {
this.callBase(), this._renderImpl()
},
_renderImpl: function() {
this.$element().append(this._createTable()), this._createDisabledDatesHandler(), this._renderBody(), this._renderContouredDate(), this._renderValue(), this._renderEvents()
},
_createTable: function() {
return this._$table = (0, a.default)("<table>"), this.setAria({
label: h.default.format("dxCalendar-ariaWidgetName"),
role: "grid"
}, this._$table), this._$table
},
_renderBody: function() {
this.$body = (0, a.default)("<tbody>").appendTo(this._$table);
for (var e = {
cellDate: this._getFirstCellData(),
prevCellDate: null
}, t = 0, n = this.option("rowCount"); t < n; t++) {
e.row = this._createRow();
for (var i = 0, r = this.option("colCount"); i < r; i++) this._renderCell(e, i)
}
},
_createRow: function() {
var e = i.default.createElement("tr");
return this.setAria("role", "row", (0, a.default)(e)), this.$body.get(0).appendChild(e), e
},
_appendCell: function(e, t) {
this._appendMethodName || this._cacheAppendMethodName(), (0, a.default)(e)[this._appendMethodName](t)
},
_cacheAppendMethodName: function(e) {
this._appendMethodName = (null != e ? e : this.option("rtlEnabled")) ? "prepend" : "append"
},
_createCell: function(e) {
var t = i.default.createElement("td"),
n = (0, a.default)(t);
return t.className = this._getClassNameByDate(e), t.setAttribute("data-value", p.default.serializeDate(e, c.default.getShortDateFormat())), (0, l.data)(t, "dxDateValueKey", e), this.setAria({
role: "gridcell",
label: this.getCellAriaLabel(e)
}, n), {
cell: t,
$cell: n
}
},
_renderCell: function(e, t) {
var n = e.cellDate,
a = e.prevCellDate,
i = e.row;
a && c.default.fixTimezoneGap(a, n), e.prevCellDate = n;
var r = this._createCell(n),
l = r.cell,
o = r.$cell,
s = this.option("cellTemplate");
this._appendCell(i, l), s ? s.render(this._prepareCellTemplateData(n, t, o)) : l.innerHTML = this._getCellText(n), e.cellDate = this._getNextCellData(n)
},
_getClassNameByDate: function(e) {
var t = "dx-calendar-cell";
return this._isTodayCell(e) && (t += " ".concat("dx-calendar-today")), (this._isDateOutOfRange(e) || this.isDateDisabled(e)) && (t += " ".concat("dx-calendar-empty-cell")), this._isOtherView(e) && (t += " ".concat("dx-calendar-other-view")), t
},
_prepareCellTemplateData: function(e, t, n) {
return {
model: {
text: this._getCellText(e),
date: e,
view: this._getViewName()
},
container: (0, o.getPublicElement)(n),
index: t
}
},
_renderEvents: function() {
var e = this;
this._createCellClickAction(), r.default.off(this._$table, b), r.default.on(this._$table, b, "td", (function(t) {
(0, a.default)(t.currentTarget).hasClass("dx-calendar-empty-cell") || e._cellClickAction({
event: t,
value: (0, a.default)(t.currentTarget).data("dxDateValueKey")
})
}))
},
_createCellClickAction: function() {
this._cellClickAction = this._createActionByOption("onCellClick")
},
_createDisabledDatesHandler: function() {
var e = this.option("disabledDates");
this._disabledDatesHandler = Array.isArray(e) ? this._getDefaultDisabledDatesHandler(e) : e || u.noop
},
_getDefaultDisabledDatesHandler: function(e) {
return u.noop
},
_isTodayCell: v,
_isDateOutOfRange: v,
isDateDisabled: function(e) {
var t = {
date: e,
view: this._getViewName()
};
return this._disabledDatesHandler(t)
},
_isOtherView: v,
_getCellText: v,
_getFirstCellData: v,
_getNextCellData: v,
_renderContouredDate: function(e) {
if (this.option("focusStateEnabled")) {
e = e || this.option("contouredDate");
var t = this._$table.find(".".concat("dx-calendar-contoured-date")),
n = this._getCellByDate(e);
t.removeClass("dx-calendar-contoured-date"), n.addClass("dx-calendar-contoured-date")
}
},
_changeValue: function(e) {
if (e) {
var t = this.option("value"),
n = t ? new Date(t) : new Date;
n.setDate(e.getDate()), n.setMonth(e.getMonth()), n.setFullYear(e.getFullYear()), n.setDate(e.getDate()), this.option("value", n)
} else this.option("value", null)
},
_renderValue: function() {
if (this.option("allowValueSelection")) {
var e = this.option("value"),
t = this._getCellByDate(e);
this._selectedCell && this._selectedCell.removeClass("dx-calendar-selected-date"), t.addClass("dx-calendar-selected-date"), this._selectedCell = t
}
},
getCellAriaLabel: function(e) {
return this._getCellText(e)
},
_getFirstAvailableDate: function() {
var e = this.option("date"),
t = this.option("min");
return e = c.default.getFirstDateView(this._getViewName(), e), new Date(t && e < t ? t : e)
},
_getCellByDate: v,
isBoundary: v,
_optionChanged: function(e) {
var t = e.value;
switch (e.name) {
case "value":
this._renderValue();
break;
case "contouredDate":
this._renderContouredDate(t);
break;
case "onCellClick":
this._createCellClickAction();
break;
case "disabledDates":
case "cellTemplate":
this._invalidate();
break;
case "rtlEnabled":
this._cacheAppendMethodName(t), this.callBase(e);
break;
default:
this.callBase(e)
}
}
});
t.default = _, e.exports = t.default
},
"/30y": function(e, t, n) {
var a = n("Dhk8"),
i = n("tLQN");
e.exports = function(e) {
return i(e) && "[object Arguments]" == a(e)
}
},
"/89m": function(e, t, n) {
"use strict";
t.default = void 0;
var a = m(n("IbwU")),
i = m(n("rM28")),
r = n("Jd2B"),
l = n("wwx0"),
o = n("N8pe"),
s = n("e95e"),
c = n("5usN"),
d = m(n("7B9z")),
u = m(n("1BCF")),
p = m(n("a+E+")),
h = n("tsuW");
function m(e) {
return e && e.__esModule ? e : {
default: e
}
}
n("MQ1x"), n("XQzJ"), n("e/qF"), n("ZI53"), n("Gag4"), n("jNLN"), n("i8j/"), n("CJDj"), n("svo8"), p.default.registerModulesOrder(["stateStoring", "columns", "selection", "editorFactory", "columnChooser", "grouping", "editing", "masterDetail", "validating", "adaptivity", "data", "virtualScrolling", "columnHeaders", "filterRow", "headerPanel", "headerFilter", "sorting", "search", "rows", "pager", "columnsResizingReordering", "contextMenu", "keyboardNavigation", "errorHandling", "summary", "columnFixing", "export", "gridView"]);
var f = u.default.inherit({
_activeStateUnit: ".dx-row",
_getDefaultOptions: function() {
var e = this.callBase();
return (0, o.each)(p.default.modules, (function() {
(0, l.isFunction)(this.defaultOptions) && (0, s.extend)(!0, e, this.defaultOptions())
})), e
},
_setDeprecatedOptions: function() {
this.callBase(), (0, s.extend)(this._deprecatedOptions, {
useKeyboard: {
since: "19.2",
alias: "keyboardNavigation.enabled"
}
})
},
_defaultOptionsRules: function() {
return this.callBase().concat([{
device: {
platform: "ios"
},
options: {
showRowLines: !0
}
}, {
device: function() {
return (0, h.isMaterial)()
},
options: {
showRowLines: !0,
showColumnLines: !1,
headerFilter: {
height: 315
},
editing: {
useIcons: !0
}
}
}, {
device: function() {
return d.default.webkit
},
options: {
loadingTimeout: 30,
loadPanel: {
animation: {
show: {
easing: "cubic-bezier(1, 0, 1, 0)",
duration: 500,
from: {
opacity: 0
},
to: {
opacity: 1
}
}
}
}
}
}, {
device: function(e) {
return "desktop" !== e.deviceType
},
options: {
grouping: {
expandMode: "rowClick"
}
}
}])
},
_init: function() {
this.callBase(), p.default.processModules(this, p.default), p.default.callModuleItemsMethod(this, "init")
},
_clean: r.noop,
_optionChanged: function(e) {
p.default.callModuleItemsMethod(this, "optionChanged", [e]), e.handled || this.callBase(e)
},
_dimensionChanged: function() {
this.updateDimensions(!0)
},
_visibilityChanged: function(e) {
e && this.updateDimensions()
},
_initMarkup: function() {
this.callBase.apply(this, arguments), this.getView("gridView").render(this.$element())
},
_renderContentImpl: function() {
this.getView("gridView").update()
},
_renderContent: function() {
var e = this;
(0, r.deferRender)((function() {
e._renderContentImpl()
}))
},
_getTemplate: function(e) {
var t = e;
return (0, l.isString)(t) && "#" === t[0] && (t = (0, a.default)(e), c.logger.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")), this.callBase(t)
},
_dispose: function() {
this.callBase(), p.default.callModuleItemsMethod(this, "dispose")
},
isReady: function() {
return this.getController("data").isReady()
},
beginUpdate: function() {
this.callBase(), p.default.callModuleItemsMethod(this, "beginUpdate")
},
endUpdate: function() {
p.default.callModuleItemsMethod(this, "endUpdate"), this.callBase()
},
getController: function(e) {
return this._controllers[e]
},
getView: function(e) {
return this._views[e]
},
focus: function(e) {
this.getController("keyboardNavigation").focus(e)
}
});
f.registerModule = p.default.registerModule.bind(p.default), (0, i.default)("dxDataGrid", f), t.default = f, e.exports = t.default
},
"/Wus": function(e, t, n) {
"use strict";
t.default = function(e) {
var t = o.default.inherit(e),
n = t,
a = new n(e),
s = {},
c = function(t, n) {
(0, l.each)(t, (function(t) {
(0, r.isFunction)(a[t]) ? !n && e[t] || (e[t] = function() {
return a[t].apply(e, arguments)
}): (n && (s[t] = e[t]), e[t] = a[t])
}))
};
return c(e, !0), e.inject = function(e) {
n = n.inherit(e), a = new n, c(e)
}, e.resetInjection = function() {
(0, i.extend)(e, s), n = t, a = new t
}, e
};
var a, i = n("e95e"),
r = n("wwx0"),
l = n("N8pe"),
o = (a = n("+Dzz")) && a.__esModule ? a : {
default: a
};
e.exports = t.default
},
"/Xyq": function(e, t, n) {
"use strict";
t.default = void 0;
var a = n("FWkp"),
i = d(n("58Dz")),
r = d(n("Bh/l")),
l = n("N8pe"),
o = n("02tM"),
s = n("e95e"),
c = n("1ZmO");
function d(e) {
return e && e.__esModule ? e : {
default: e
}
}
var u = {
onStart: a.start,
onUpdated: a.swipe,
onEnd: a.end,
onCancel: "dxswipecancel"
},
p = r.default.inherit({
_getDefaultOptions: function() {
return (0, s.extend)(this.callBase(), {
elastic: !0,
immediate: !1,
direction: "horizontal",
itemSizeFunc: null,
onStart: null,
onUpdated: null,
onEnd: null,
onCancel: null
})
},
_render: function() {
this.callBase(), this.$element().addClass("dx-swipeable"), this._attachEventHandlers()
},
_attachEventHandlers: function() {
if (this._detachEventHandlers(), !this.option("disabled")) {
var e = this.NAME;
this._createEventData(), (0, l.each)(u, (function(t, n) {
var a = this._createActionByOption(t, {
context: this
});
n = (0, o.addNamespace)(n, e), i.default.on(this.$element(), n, this._eventData, (function(e) {
return a({
event: e
})
}))
}).bind(this))
}
},
_createEventData: function() {
this._eventData = {
elastic: this.option("elastic"),
itemSizeFunc: this.option("itemSizeFunc"),
direction: this.option("direction"),
immediate: this.option("immediate")
}
},
_detachEventHandlers: function() {
i.default.off(this.$element(), ".dxSwipeable")
},
_optionChanged: function(e) {
switch (e.name) {
case "disabled":
case "onStart":
case "onUpdated":
case "onEnd":
case "onCancel":
case "elastic":
case "immediate":
case "itemSizeFunc":
case "direction":
this._detachEventHandlers(), this._attachEventHandlers();
break;
case "rtlEnabled":
break;
default:
this.callBase(e)
}
},
_useTemplates: function() {
return !1
}
});
(0, c.name)(p, "dxSwipeable"), t.default = p, e.exports = t.default
},
"/Y+C": function(e, t, n) {
"use strict";
t.getCaretInBoundaries = p, t.getCaretOffset = t.isCaretInBoundaries = t.getCaretAfterFormat = t.getCaretWithOffset = t.getCaretBoundaries = void 0;
var a, i = n("rJIJ"),
r = n("Jd2B"),
l = (a = n("HV4V")) && a.__esModule ? a : {
default: a
},
o = function(e, t) {
if ("string" == typeof t) {
var n = t.split(";"),
a = l.default.getSign(e, t);
n[1] = n[1] || "-" + n[0], t = (t = n[a < 0 ? 1 : 0]).replace(/'([^']*)'/g, (function(e) {
return e.split("").map((function() {
return " "
})).join("").substr(2)
}));
var i = /^[^#0.,]*/.exec(t)[0].length,
r = /[^#0.,]*$/.exec(t)[0].length;
return {
start: i,
end: e.length - r
}
}
return {
start: 0,
end: e.length
}
};
t.getCaretBoundaries = o;
var s = function(e, t) {
var n = l.default.getDecimalSeparator(),
a = new RegExp("[^0-9" + (0, r.escapeRegExp)(n) + "]", "g");
return t.slice(0, e).replace(a, "").length
},
c = function(e) {
return e.split("").reverse().join("")
},
d = function(e, t) {
if (!e) return -1;
for (var n = /[0-9]/g, a = 1, i = null, r = n.exec(t); r;) {
if (i = r.index, !e || a >= e) return i;
a++, r = n.exec(t)
}
return null === i ? t.length : i
},
u = function(e, t) {
return void 0 === e.start && (e = {
start: e,
end: e
}), {
start: e.start + t,
end: e.end + t
}
};
function p(e, t, n) {
e = u(e, 0);
var a = o(t, n);
return {
start: (0, i.fitIntoRange)(e.start, a.start, a.end),
end: (0, i.fitIntoRange)(e.end, a.start, a.end)
}
}
t.getCaretWithOffset = u, t.getCaretAfterFormat = function(e, t, n, a) {
n = u(n, 0);
var i = l.default.getDecimalSeparator(),
r = function(e) {
return 1 === e.length && !!e.match(/^[,.][0-9]*$/g)
}(e),
o = r ? 0 : e.indexOf(i),
h = t.indexOf(i),
m = e.split(r ? e[o] : i),
f = t.split(i);
if (-1 !== o && n.start > o) {
var g = s(n.start - o - 1, m[1]);
return p(f[1] ? h + 1 + d(g, f[1]) + 1 : t.length, t, a)
}
var v = function(e) {
return e.replace(/[^0-9e]+$/, "")
}(f[0]),
b = s(m[0].length - n.start, c(m[0])),
_ = d(b, c(v));
return p(v.length - (_ + 1), t, a)
}, t.isCaretInBoundaries = function(e, t, n) {
var a = p(e = u(e, 0), t, n);
return e.start >= a.start && e.end <= a.end
}, t.getCaretOffset = function(e, t, n) {
var a = o(e, n);
return o(t, n).start - a.start
}
},
"/ZFQ": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
})), n.d(t, "b", (function() {
return r
}));
var a = n("kZht"),
i = (n("ppd2"), n("ENSU"), n("An66"), n("R4tF"), n("6uGs"), n("3kIJ"), a["\u0275crt"]({
encapsulation: 2,
styles: [],
data: {}
}));
function r(e) {
return a["\u0275vid"](0, [], null, null)
}
},
"/ZVk": function(e, t, n) {
"use strict";
t.setEasing = function(e) {
l = e
}, t.getEasing = function(e) {
return l[e]
}, t.convertTransitionTimingFuncToEasing = void 0;
var a = n("wwx0"),
i = /cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,
r = {
linear: "cubic-bezier(0, 0, 1, 1)",
swing: "cubic-bezier(0.445, 0.05, 0.55, 0.95)",
ease: "cubic-bezier(0.25, 0.1, 0.25, 1)",
"ease-in": "cubic-bezier(0.42, 0, 1, 1)",
"ease-out": "cubic-bezier(0, 0, 0.58, 1)",
"ease-in-out": "cubic-bezier(0.42, 0, 0.58, 1)"
},
l = {};
t.convertTransitionTimingFuncToEasing = function(e) {
var t, n = (e = r[e] || e).match(i);
n || (n = r[t = "linear"].match(i)), n = n.slice(1, 5);
for (var o = 0; o < n.length; o++) n[o] = parseFloat(n[o]);
var s = t || "cubicbezier_" + n.join("_").replace(/\./g, "p");
return (0, a.isFunction)(l[s]) || (l[s] = function(e, t, a, i, r) {
return i * (d = 1 - (s = 3 * (l = n[0])) - (c = 3 * (n[2] - l) - s), h = 1 - (u = 3 * (o = n[1])) - (p = 3 * (n[3] - o) - u), m = function(e) {
return e * (s + e * (c + e * d))
}, f = function(e) {
return s + e * (2 * c + 3 * e * d)
}, function(e) {
return function(e) {
return e * (u + e * (p + e * h))
}(function(e) {
for (var t, n = e, a = 0; a < 14 && (t = m(n) - e, !(Math.abs(t) < .001));) n -= t / f(n), a++;
return n
}(e))
})(t / r) + a;
var l, o, s, c, d, u, p, h, m, f
}), s
}
},
"/hEa": function(e, t, n) {
"use strict";
t.default = void 0;
var a = n("wwx0"),
i = s(n("+lGD")),
r = s(n("HV4V")),
l = s(n("e9tV")),
o = s(n("/Wus"));
function s(e) {
return e && e.__esModule ? e : {
default: e
}
}
n("riHP");
var c = (0, o.default)({
format: function(e, t) {
var n = (0, a.isString)(t) && "" !== t || (0, a.isPlainObject)(t) || (0, a.isFunction)(t),
i = (0, a.isNumeric)(e) || (0, a.isDate)(e);
return n && i ? (0, a.isFunction)(t) ? t(e) : ((0, a.isString)(t) && (t = {
type: t
}), (0, a.isNumeric)(e) ? r.default.format(e, t) : (0, a.isDate)(e) ? l.default.format(e, t) : void 0) : (0, a.isDefined)(e) ? e.toString() : ""
},
getTimeFormat: function(e) {
return e ? "longtime" : "shorttime"
},
_normalizeFormat: function(e) {
return Array.isArray(e) ? 1 === e.length ? e[0] : function(t) {
return e.map((function(e) {
return l.default.format(t, e)
})).join(" ")
} : e
},
getDateFormatByDifferences: function(e, t) {
var n = [],
a = t && e.millisecond && !(e.year || e.month || e.day);
return a ? n.push((function(e) {
return e.getSeconds() + e.getMilliseconds() / 1e3 + "s"
})) : e.millisecond && n.push("millisecond"), (e.hour || e.minute || !a && e.second) && n.unshift(this.getTimeFormat(e.second)), e.year && e.month && e.day ? t && "month" === t ? "monthandyear" : (n.unshift("shortdate"), this._normalizeFormat(n)) : e.year && e.month ? "monthandyear" : e.year && e.quarter ? "quarterandyear" : e.year ? "year" : e.quarter ? "quarter" : e.month && e.day ? (n.unshift(t ? function(e) {
return l.default.getMonthNames("abbreviated")[e.getMonth()] + " " + l.default.format(e, "day")
} : "monthandday"), this._normalizeFormat(n)) : e.month ? "month" : e.day ? (n.unshift(t ? "day" : function(e) {
return l.default.format(e, "dayofweek") + ", " + l.default.format(e, "day")
}), this._normalizeFormat(n)) : this._normalizeFormat(n)
},
getDateFormatByTicks: function(e) {
var t, n, a;
if (e.length > 1)
for (t = i.default.getDatesDifferences(e[0], e[1]), a = 1; a < e.length - 1; a++) n = i.default.getDatesDifferences(e[a], e[a + 1]), t.count < n.count && (t = n);
else t = {
year: !0,
month: !0,
day: !0,
hour: e[0].getHours() > 0,
minute: e[0].getMinutes() > 0,
second: e[0].getSeconds() > 0,
millisecond: e[0].getMilliseconds() > 0
};
return this.getDateFormatByDifferences(t)
},
getDateFormatByTickInterval: function(e, t, n) {
var r, l = function(e, t, n) {
switch (t) {
case "year":
case "quarter":
e.month = n;
case "month":
e.day = n;
case "week":
case "day":
e.hour = n;
case "hour":
e.minute = n;
case "minute":
e.second = n;
case "second":
e.millisecond = n
}
};
n = (0, a.isString)(n) ? n.toLowerCase() : n;
var o, s, c, d = i.default.getDatesDifferences(e, t);
return e !== t && (o = d, s = e > t ? t : e, !(c = e > t ? e : t).getMilliseconds() && c.getSeconds() ? c.getSeconds() - s.getSeconds() == 1 && (o.millisecond = !0, o.second = !1) : !c.getSeconds() && c.getMinutes() ? c.getMinutes() - s.getMinutes() == 1 && (o.second = !0, o.minute = !1) : !c.getMinutes() && c.getHours() ? c.getHours() - s.getHours() == 1 && (o.minute = !0, o.hour = !1) : !c.getHours() && c.getDate() > 1 ? c.getDate() - s.getDate() == 1 && (o.hour = !0, o.day = !1) : 1 === c.getDate() && c.getMonth() ? c.getMonth() - s.getMonth() == 1 && (o.day = !0, o.month = !1) : !c.getMonth() && c.getFullYear() && c.getFullYear() - s.getFullYear() == 1 && (o.month = !0, o.year = !1)), l(d, i.default.getDateUnitInterval(d), !0), l(d, r = i.default.getDateUnitInterval(n || "second"), !1), d[{
week: "day"
} [r] || r] = !0, this.getDateFormatByDifferences(d)
}
});
t.default = c, e.exports = t.default
},
"/hi0": function(e, t, n) {
! function(e) {
"use strict";
e.defineLocale("tet", {
months: "Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),
monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
weekdays: "Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),
weekdaysShort: "Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),
weekdaysMin: "Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),
longDateFormat: {
LT: "HH:mm",
LTS: "HH:mm:ss",
L: "DD/MM/YYYY",
LL: "D MMMM YYYY",
LLL: "D MMMM YYYY HH:mm",
LLLL: "dddd, D MMMM YYYY HH:mm"
},
calendar: {
sameDay: "[Ohin iha] LT",
nextDay: "[Aban iha] LT",
nextWeek: "dddd [iha] LT",
lastDay: "[Horiseik iha] LT",
lastWeek: "dddd [semana kotuk] [iha] LT",
sameElse: "L"
},
relativeTime: {
future: "iha %s",
past: "%s liuba",
s: "minutu balun",
ss: "minutu %d",
m: "minutu ida",
mm: "minutu %d",
h: "oras ida",
hh: "oras %d",
d: "loron ida",
dd: "loron %d",
M: "fulan ida",
MM: "fulan %d",
y: "tinan ida",
yy: "tinan %d"
},
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
ordinal: function(e) {
var t = e % 10;
return e + (1 == ~~(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th")
},
week: {
dow: 1,
doy: 4
}
})
}(n("wgY5"))
},
"/mVj": function(e, t, n) {
"use strict";
t.default = void 0;
var a = n("3jRX"),
i = n("qOo7"),
r = (0, i.hasWindow)() ? (0, i.getWindow)().Promise : Promise;
r || ((r = function(e) {
var t = new a.Deferred;
return e(t.resolve.bind(this), t.reject.bind(this)), t.promise()
}).resolve = function(e) {
return (new a.Deferred).resolve(e).promise()
}, r.reject = function(e) {
return (new a.Deferred).reject(e).promise()
}, r.all = function(e) {
return a.when.apply(this, e).then((function() {
return [].slice.call(arguments)
}))
}), t.default = r, e.exports = t.default
},
"/p0z": function(e, t, n) {
var a;
e.exports = (a = n("Ni7E"), n("heQk"), a.pad.NoPadding = {
pad: function() {},
unpad: function() {}
}, a.pad.NoPadding)
},
"/tCh": function(e, t, n) {
"use strict";
t.default = void 0;
var a = d(n("IbwU")),
i = d(n("58Dz")),
r = d(n("WD9e")),
l = d(n("ERDf")),
o = n("02tM"),
s = d(n("Mr1s")),
c = n("e95e");
function d(e) {
return e && e.__esModule ? e : {
default: e
}
}
function u(e) {
return (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
})(e)
}
function p(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}
function h(e, t, n) {
return (h = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function(e, t, n) {
var a = function(e, t) {
for (; !Object.prototype.hasOwnProperty.call(e, t) && null !== (e = g(e)););
return e
}(e, t);
if (a) {
var i = Object.getOwnPropertyDescriptor(a, t);
return i.get ? i.get.call(n) : i.value
}
})(e, t, n || e)
}
function m(e, t) {
return (m = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e
})(e, t)
}
function f(e, t) {
return !t || "object" !== u(t) && "function" != typeof t ? function(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}(e) : t
}
function g(e) {
return (g = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
})(e)
}
var v = function(e) {
! function(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), t && m(e, t)
}(u, e);
var t, n, r, d = (n = u, r = function() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}))), !0
} catch (e) {
return !1
}
}(), function() {
var e, t = g(n);
if (r) {
var a = g(this).constructor;
e = Reflect.construct(t, arguments, a)
} else e = t.apply(this, arguments);
return f(this, e)
});
function u() {
return p(this, u), d.apply(this, arguments)
}
return (t = [{
key: "_attachEvents",
value: function(e, t) {
var n = this.editor,
a = (0, o.addNamespace)(s.default.down, n.NAME),
r = t.children(),
c = n._createAction((function(e) {
return n._spinButtonsPointerDownHandler(e)
}));
i.default.off(t, a), i.default.on(t, a, (function(e) {
return c({
event: e
})
})), l.default.getInstance(r.eq(0)).option("onChange", (function(e) {
return n._spinUpChangeHandler(e)
})), l.default.getInstance(r.eq(1)).option("onChange", (function(e) {
return n._spinDownChangeHandler(e)
}))
}
}, {
key: "_create",
value: function() {
var e = this.editor,
t = (0, a.default)("<div>").addClass("dx-numberbox-spin-container"),
n = (0, a.default)("<div>").appendTo(t),
i = (0, a.default)("<div>").appendTo(t),
r = this._getOptions();
return this._addToContainer(t), e._createComponent(n, l.default, (0, c.extend)({
direction: "up"
}, r)), e._createComponent(i, l.default, (0, c.extend)({
direction: "down"
}, r)), this._legacyRender(e.$element(), this._isTouchFriendly(), r.visible), {
instance: t,
$element: t
}
}
}, {
key: "_getOptions",
value: function() {
var e = this.editor;
return {
visible: this._isVisible(),
disabled: e.option("disabled")
}
}
}, {
key: "_isVisible",
value: function() {
var e = this.editor;
return h(g(u.prototype), "_isVisible", this).call(this) && e.option("showSpinButtons")
}
}, {
key: "_isTouchFriendly",
value: function() {
var e = this.editor;
return e.option("showSpinButtons") && e.option("useLargeSpinButtons")
}
}, {
key: "_legacyRender",
value: function(e, t, n) {
e.toggleClass("dx-numberbox-spin-touch-friendly", t), e.toggleClass("dx-numberbox-spin", n)
}
}, {
key: "update",
value: function() {
if (h(g(u.prototype), "update", this).call(this)) {
var e = this.instance,
t = this.editor.$element(),
n = this._isVisible(),
a = this._isTouchFriendly(),
i = e.children(),
r = l.default.getInstance(i.eq(0)),
o = l.default.getInstance(i.eq(1)),
s = this._getOptions();
r.option(s), o.option(s), this._legacyRender(t, a, n)
}
}
}]) && function(e, t) {
for (var n = 0; n < t.length; n++) {
var a = t[n];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
}
}(u.prototype, t), u
}(r.default);
t.default = v, e.exports = t.default
},
"/vgl": function(e, t, n) {
"use strict";
function a(e) {
return !!e && "function" != typeof e.subscribe && "function" == typeof e.then
}
n.d(t, "a", (function() {
return a
}))
},
0: function(e, t, n) {
e.exports = n("zUnb")
},
"0+aC": function(e, t, n) {
var a = n("pFSi");
e.exports = function(e) {
var t = a(e, (function(e) {
return 500 === n.size && n.clear(), e
})),
n = t.cache;
return t
}
},
"02tM": function(e, t, n) {
"use strict";
t.addNamespace = t.getChar = t.normalizeKeyName = t.fireEvent = t.createEvent = t.setEventFixMethod = t.needSkipEvent = t.stopEventsSkipping = t.forceSkipEvents = t.hasTouches = t.eventDelta = t.eventData = t.isFakeClickEvent = t.isKeyboardEvent = t.isTouchEvent = t.isDxMouseWheelEvent = t.isMouseEvent = t.isPointerEvent = t.eventSource = void 0;
var a = c(n("IbwU")),
i = c(n("NCvQ")),
r = c(n("58Dz")),
l = n("N8pe"),
o = n("e95e"),
s = n("8FcI");
function c(e) {
return e && e.__esModule ? e : {
default: e
}
}
var d = {
backspace: "backspace",
tab: "tab",
enter: "enter",
escape: "escape",
pageup: "pageUp",
pagedown: "pageDown",
end: "end",
home: "home",
arrowleft: "leftArrow",
arrowup: "upArrow",
arrowright: "rightArrow",
arrowdown: "downArrow",
delete: "del",
" ": "space",
f: "F",
a: "A",
"*": "asterisk",
"-": "minus",
alt: "alt",
control: "control",
shift: "shift",
left: "leftArrow",
up: "upArrow",
right: "rightArrow",
down: "downArrow",
multiply: "asterisk",
spacebar: "space",
del: "del",
subtract: "minus",
esc: "escape"
},
u = {
8: "backspace",
9: "tab",
13: "enter",
27: "escape",
33: "pageUp",
34: "pageDown",
35: "end",
36: "home",
37: "leftArrow",
38: "upArrow",
39: "rightArrow",
40: "downArrow",
46: "del",
32: "space",
70: "F",
65: "A",
106: "asterisk",
109: "minus",
189: "minus",
173: "minus",
16: "shift",
17: "control",
18: "alt"
},
p = {
dx: /^dx/i,
mouse: /(mouse|wheel)/i,
touch: /^touch/i,
keyboard: /^key/i,
pointer: /^(ms)?pointer/i
},
h = function(e) {
return e
},
m = function(e) {
return "dx" === g(e)
},
f = function(e) {
return "touch" === g(e)
},
g = function(e) {
var t = e.type,
n = "other";
return (0, l.each)(p, (function(e) {
if (this.test(t)) return n = e, !1
})), n
};
t.eventSource = g;
var v = function(e) {
return "pointer" === g(e)
};
t.isPointerEvent = v;
var b = function(e) {
return function(e) {
return "mouse" === g(e)
}(e) || (v(e) || m(e)) && "mouse" === e.pointerType
};
t.isMouseEvent = b;
var _ = function(e) {
return e && "dxmousewheel" === e.type
};
t.isDxMouseWheelEvent = _;
var D = function(e) {
return f(e) || (v(e) || m(e)) && "touch" === e.pointerType
};
t.isTouchEvent = D, t.isKeyboardEvent = function(e) {
return "keyboard" === g(e)
}, t.isFakeClickEvent = function(e) {
return 0 === e.screenX && !e.offsetX && 0 === e.pageX
}, t.eventData = function(e) {
return {
x: e.pageX,
y: e.pageY,
time: e.timeStamp
}
}, t.eventDelta = function(e, t) {
return {
x: t.x - e.x,
y: t.y - e.y,
time: t.time - e.time || 1
}
}, t.hasTouches = function(e) {
var t = e.originalEvent,
n = e.pointers;
return f(e) ? (t.touches || []).length : m(e) ? (n || []).length : 0
};
var C = !1;
t.forceSkipEvents = function() {
return C = !0
}, t.stopEventsSkipping = function() {
return C = !1
}, t.needSkipEvent = function(e) {
if (C) return !0;
var t = e.target,
n = (0, a.default)(t),
i = n.is("input, textarea, select");
return !!n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event") || (_(e) ? (!n.is("textarea") || !n.hasClass("dx-texteditor-input")) && !t.isContentEditable && !t.hasAttribute("contenteditable") && n.is("input[type='number'], textarea, select") && n.is(":focus") : b(e) ? i || e.which > 1 : D(e) ? i && (0, s.focused)(n) : void 0)
}, t.setEventFixMethod = function(e) {
return h = e
};
var y = function(e, t) {
var n = function(e) {
return h(r.default.Event(e, e), e)
}(e);
return t && (0, o.extend)(n, t), n
};
t.createEvent = y, t.fireEvent = function(e) {
var t = e.delegateTarget,
n = y(e.originalEvent, e);
return r.default.trigger(t || n.target, n), n
}, t.normalizeKeyName = function(e) {
var t = e.key,
n = !!t;
if (t = n ? t : e.which) return n ? d[t.toLowerCase()] || t : u[t] || String.fromCharCode(t)
}, t.getChar = function(e) {
return e.key || String.fromCharCode(e.which)
}, t.addNamespace = i.default
},
"05Mt": function(e, t, n) {
"use strict";
t.default = void 0;
var a = A(n("IbwU")),
i = A(n("leS8")),
r = n("qOo7"),
l = A(n("58Dz")),
o = A(n("rM28")),
s = A(n("Of9j")),
c = n("wwx0"),
d = n("N8pe"),
u = n("e95e"),
p = n("d6L1"),
h = n("3jRX"),
m = A(n("iPzw")),
f = A(n("59CR")),
g = A(n("Lgc3")),
v = A(n("wlD4")),
b = A(n("7B9z")),
_ = A(n("mKuR")),
D = n("02tM"),
C = n("5JJw"),
y = A(n("dv/a")),
x = n("tsuW");
function A(e) {
return e && e.__esModule ? e : {
default: e
}
}
function P(e) {
return (P = "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
})(e)
}
function S(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}
function F(e, t) {
for (var n = 0; n < t.length; n++) {
var a = t[n];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
}
}
function O(e, t, n) {
return t && F(e.prototype, t), n && F(e, n), e
}
function w(e, t, n) {
return (w = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function(e, t, n) {
var a = function(e, t) {
for (; !Object.prototype.hasOwnProperty.call(e, t) && null !== (e = R(e)););
return e
}(e, t);
if (a) {
var i = Object.getOwnPropertyDescriptor(a, t);
return i.get ? i.get.call(n) : i.value
}
})(e, t, n || e)
}
function E(e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), t && (Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t, e
})(e, t)
}
function T(e) {
var t = function() {
if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
if (Reflect.construct.sham) return !1;
if ("function" == typeof Proxy) return !0;
try {
return Date.prototype.toString.call(Reflect.construct(Date, [], (function() {}))), !0
} catch (e) {
return !1
}
}();
return function() {
var n, a = R(e);
if (t) {
var i = R(this).constructor;
n = Reflect.construct(a, arguments, i)
} else n = a.apply(this, arguments);
return I(this, n)
}
}
function I(e, t) {
return !t || "object" !== P(t) && "function" != typeof t ? function(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}(e) : t
}
function R(e) {
return (R = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
})(e)
}
var M = (0, r.getWindow)(),
k = function() {
return !!M.FormData
},
N = function(e) {
E(n, e);
var t = T(n);
function n() {
return S(this, n), t.apply(this, arguments)
}
return O(n, [{
key: "_supportedKeys",
value: function() {
var e = this,
t = function(t) {
t.preventDefault();
var n = e._selectButton.$element();
l.default.trigger(n, C.name)
};
return (0, u.extend)(w(R(n.prototype), "_supportedKeys", this).call(this), {
space: t,
enter: t
})
}
}, {
key: "_setOptionsByReference",
value: function() {
w(R(n.prototype), "_setOptionsByReference", this).call(this), (0, u.extend)(this._optionsByReference, {
value: !0
})
}
}, {
key: "_getDefaultOptions",
value: function() {
return (0, u.extend)(w(R(n.prototype), "_getDefaultOptions", this).call(this), {
chunkSize: 0,
value: [],
selectButtonText: y.default.format("dxFileUploader-selectFile"),
uploadButtonText: y.default.format("dxFileUploader-upload"),
labelText: y.default.format("dxFileUploader-dropFile"),
name: "files[]",
multiple: !1,
accept: "",
uploadUrl: "/",
allowCanceling: !0,
showFileList: !0,
progress: 0,
dialogTrigger: void 0,
dropZone: void 0,
readyToUploadMessage: y.default.format("dxFileUploader-readyToUpload"),
uploadedMessage: y.default.format("dxFileUploader-uploaded"),
uploadFailedMessage: y.default.format("dxFileUploader-uploadFailedMessage"),
uploadAbortedMessage: y.default.format("dxFileUploader-uploadAbortedMessage"),
uploadMode: "instantly",
uploadMethod: "POST",
uploadHeaders: {},
uploadCustomData: {},
onBeforeSend: null,
onUploadStarted: null,
onUploaded: null,
onFilesUploaded: null,
onProgress: null,
onUploadError: null,
onUploadAborted: null,
onDropZoneEnter: null,
onDropZoneLeave: null,
allowedFileExtensions: [],
maxFileSize: 0,
minFileSize: 0,
inputAttr: {},
invalidFileExtensionMessage: y.default.format("dxFileUploader-invalidFileExtension"),
invalidMaxFileSizeMessage: y.default.format("dxFileUploader-invalidMaxFileSize"),
invalidMinFileSizeMessage: y.default.format("dxFileUploader-invalidMinFileSize"),
extendSelection: !0,
validationMessageMode: "always",
uploadFile: null,
uploadChunk: null,
abortUpload: null,
validationMessageOffset: {
h: 0,
v: 0
},
useNativeInputClick: !1,
useDragOver: !0,
nativeDropSupported: !0,
_uploadButtonType: "normal"
})
}
}, {
key: "_defaultOptionsRules",
value: function() {
return w(R(n.prototype), "_defaultOptionsRules", this).call(this).concat([{
device: function() {
return "desktop" === _.default.real().deviceType && !_.default.isSimulator()
},
options: {
focusStateEnabled: !0
}
}, {
device: [{
platform: "android"
}],
options: {
validationMessageOffset: {
v: 0
}
}
}, {
device: function() {
return "desktop" !== _.default.real().deviceType
},
options: {
useDragOver: !1
}
}, {
device: function() {
return !k()
},
options: {
uploadMode: "useForm"
}
}, {
device: function() {
return b.default.msie || "desktop" !== _.default.real().deviceType
},
options: {
nativeDropSupported: !1
}
}, {
device: function() {
return (0, x.isMaterial)()
},
options: {
_uploadButtonType: "default"
}
}])
}
}, {
key: "_init",
value: function() {
w(R(n.prototype), "_init", this).call(this), this._initFileInput(), this._initLabel(), this._setUploadStrategy(), this._createFiles(), this._createBeforeSendAction(), this._createUploadStartedAction(), this._createUploadedAction(), this._createFilesUploadedAction(), this._createProgressAction(), this._createUploadErrorAction(), this._createUploadAbortedAction(), this._createDropZoneEnterAction(), this._createDropZoneLeaveAction()
}
}, {
key: "_setUploadStrategy",
value: function() {
var e = null;
if (this.option("chunkSize") > 0) {
var t = this.option("uploadChunk");
e = t && (0, c.isFunction)(t) ? new q(this) : new B(this)
} else {
var n = this.option("uploadFile");
e = n && (0, c.isFunction)(n) ? new H(this) : new Y(this)
}
this._uploadStrategy = e
}
}, {
key: "_initFileInput",
value: function() {
var e = this;
this._isCustomClickEvent = !1, this._$fileInput || (this._$fileInput = (0, a.default)("<input>").attr("type", "file"), l.default.on(this._$fileInput, "change", this._inputChangeHandler.bind(this)), l.default.on(this._$fileInput, "click", (function(t) {
return t.stopPropagation(), e.option("useNativeInputClick") || e._isCustomClickEvent
}))), this._$fileInput.prop({
multiple: this.option("multiple"),
accept: this.option("accept"),
tabIndex: -1
})
}
}, {
key: "_inputChangeHandler",
value: function() {
if (!this._doPreventInputChange) {
var e = this._$fileInput.val().replace(/^.*\\/, ""),
t = this._$fileInput.prop("files");
if (!t || t.length || "useForm" === this.option("uploadMode")) {
var n = t ? this._getFiles(t) : [{
name: e
}];
this._changeValue(n), "instantly" === this.option("uploadMode") && this._uploadFiles()
}
}
}
}, {
key: "_shouldFileListBeExtended",
value: function() {
return "useForm" !== this.option("uploadMode") && this.option("extendSelection") && this.option("multiple")
}
}, {
key: "_removeDuplicates",
value: function(e, t) {
for (var n = [], a = 0; a < t.length; a++) this._isFileInArray(e, t[a]) || n.push(t[a]);
return n
}
}, {
key: "_isFileInArray",
value: function(e, t) {
for (var n = 0; n < e.length; n++) {
var a = e[n];
if (a.size === t.size && a.name === t.name) return !0
}
return !1
}
}, {
key: "_changeValue",
value: function(e) {
var t = this._shouldFileListBeExtended() ? this.option("value").slice() : [];
"instantly" !== this.option("uploadMode") && (e = this._removeDuplicates(t, e)), this.option("value", t.concat(e))
}
}, {
key: "_getFiles",
value: function(e) {
var t = [];
return (0, d.each)(e, (function(e, n) {
return t.push(n)
})), t
}
}, {
key: "_getFile",
value: function(e) {
var t = (0, c.isNumeric)(e) ? this.option("value")[e] : e;
return this._files.filter((function(e) {
return e.value === t
}))[0]
}
}, {
key: "_initLabel",
value: function() {
this._$inputLabel || (this._$inputLabel = (0, a.default)("<div>")), this._$inputLabel.text(this.option("labelText"))
}
}, {
key: "_focusTarget",
value: function() {
return this.$element().find(".dx-fileuploader-button")
}
}, {
key: "_getSubmitElement",
value: function() {
return this._$fileInput
}
}, {
key: "_initMarkup",
value: function() {
w(R(n.prototype), "_initMarkup", this).call(this), this.$element().addClass("dx-fileuploader"), this._renderWrapper(), this._renderInputWrapper(), this._renderSelectButton(), this._renderInputContainer(), this._renderUploadButton(), this._preventRecreatingFiles = !0
}
}, {
key: "_render",
value: function() {
this._preventRecreatingFiles = !1, this._attachDragEventHandlers(this._$inputWrapper), this._attachDragEventHandlers(this.option("dropZone")), this._renderFiles(), w(R(n.prototype), "_render", this).call(this)
}
}, {
key: "_createFileProgressBar",
value: function(e) {
e.progressBar = this._createProgressBar(e.value.size), e.progressBar.$element().appendTo(e.$file), this._initStatusMessage(e), this._ensureCancelButtonInitialized(e)
}
}, {
key: "_setStatusMessage",
value: function(e, t) {
var n = this;
setTimeout((function() {
n.option("showFileList") && e.$statusMessage && (e.$statusMessage.text(t), e.$statusMessage.css("display", ""), e.progressBar.$element().remove())
}), 400)
}
}, {
key: "_getUploadAbortedStatusMessage",
value: function() {
return "instantly" === this.option("uploadMode") ? this.option("uploadAbortedMessage") : this.option("readyToUploadMessage")
}
}, {
key: "_createFiles",
value: function() {
var e = this,
t = this.option("value");
!this._files || 0 !== t.length && this._shouldFileListBeExtended() || (this._preventFilesUploading(this._files), this._files = null), this._files || (this._files = []), (0, d.each)(t.slice(this._files.length), (function(t, n) {
var a = e._createFile(n);
e._validateFile(a), e._files.push(a)
}))
}
}, {
key: "_preventFilesUploading",
value: function(e) {
var t = this;
e.forEach((function(e) {
return t._uploadStrategy.abortUpload(e)
}))
}
}, {
key: "_validateFile",
value: function(e) {
e.isValidFileExtension = this._validateFileExtension(e), e.isValidMinSize = this._validateMinFileSize(e), e.isValidMaxSize = this._validateMaxFileSize(e)
}
}, {
key: "_validateFileExtension",
value: function(e) {
var t = this.option("allowedFileExtensions"),
n = e.value.name.substring(e.value.name.lastIndexOf(".")).toLowerCase();
if (0 === t.length) return !0;
for (var a = 0; a < t.length; a++)
if (n === t[a].toLowerCase()) return !0;
return !1
}
}, {
key: "_validateMaxFileSize",
value: function(e) {
var t = e.value.size,
n = this.option("maxFileSize");
return !(n > 0) || t <= n
}
}, {
key: "_validateMinFileSize",
value: function(e) {
var t = e.value.size,
n = this.option("minFileSize");
return !(n > 0) || t >= n
}
}, {
key: "_createBeforeSendAction",
value: function() {
this._beforeSendAction = this._createActionByOption("onBeforeSend", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createUploadStartedAction",
value: function() {
this._uploadStartedAction = this._createActionByOption("onUploadStarted", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createUploadedAction",
value: function() {
this._uploadedAction = this._createActionByOption("onUploaded", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createFilesUploadedAction",
value: function() {
this._filesUploadedAction = this._createActionByOption("onFilesUploaded", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createProgressAction",
value: function() {
this._progressAction = this._createActionByOption("onProgress", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createUploadAbortedAction",
value: function() {
this._uploadAbortedAction = this._createActionByOption("onUploadAborted", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createUploadErrorAction",
value: function() {
this._uploadErrorAction = this._createActionByOption("onUploadError", {
excludeValidators: ["readOnly"]
})
}
}, {
key: "_createDropZoneEnterAction",
value: function() {
this._dropZoneEnterAction = this._createActionByOption("onDropZoneEnter")
}
}, {
key: "_createDropZoneLeaveAction",
value: function() {
this._dropZoneLeaveAction = this._createActionByOption("onDropZoneLeave")
}
}, {
key: "_createFile",
value: function(e) {
return {
value: e,
loadedSize: 0,
onProgress: (0, s.default)(),
onAbort: (0, s.default)(),
onLoad: (0, s.default)(),
onError: (0, s.default)(),
onLoadStart: (0, s.default)(),
isValidFileExtension: !0,
isValidMaxSize: !0,
isValidMinSize: !0,
isValid: function() {
return this.isValidFileExtension && this.isValidMaxSize && this.isValidMinSize
},
isInitialized: !1
}
}
}, {
key: "_resetFileState",
value: function(e) {
e.isAborted = !1, e.uploadStarted = !1, e.isStartLoad = !1, e.loadedSize = 0, e.chunksData = void 0, e.request = void 0
}
}, {
key: "_renderFiles",
value: function() {
var e, t = this,
n = this.option("value");
this._$filesContainer ? this._shouldFileListBeExtended() && 0 !== n.length || this._$filesContainer.empty() : this._$filesContainer = (0, a.default)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);
var i = this.option("showFileList");
i && (0, d.each)(this._files, (function(e, n) {
n.$file || t._renderFile(n)
})), this.$element().toggleClass("dx-fileuploader-show-file-list", i), this._toggleFileUploaderEmptyClassName(), this._updateFileNameMaxWidth(), null === (e = this._validationMessage) || void 0 === e || e.repaint()
}
}, {
key: "_renderFile",
value: function(e) {
var t = e.value,
n = (0, a.default)("<div>").addClass("dx-fileuploader-file-container").appendTo(this._$filesContainer);
this._renderFileButtons(e, n), e.$file = (0, a.default)("<div>").addClass("dx-fileuploader-file").appendTo(n);
var i = (0, a.default)("<div>").addClass("dx-fileuploader-file-info").appendTo(e.$file);
e.$statusMessage = (0, a.default)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(e.$file), (0, a.default)("<div>").addClass("dx-fileuploader-file-name").text(t.name).appendTo(i), (0, c.isDefined)(t.size) && (0, a.default)("<div>").addClass("dx-fileuploader-file-size").text(this._getFileSize(t.size)).appendTo(i), e.isValid() ? e.$statusMessage.text(this.option("readyToUploadMessage")) : (e.isValidFileExtension || e.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")), e.isValidMaxSize || e.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")), e.isValidMinSize || e.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")), n.addClass("dx-fileuploader-invalid"))
}
}, {
key: "_createValidationElement",
value: function(e) {
return (0, a.default)("<span>").text(this.option(e))
}
}, {
key: "_updateFileNameMaxWidth",
value: function() {
var e = this.option("allowCanceling") && "useForm" !== this.option("uploadMode") ? 1 : 0,
t = "useButtons" === this.option("uploadMode") ? 1 : 0,
n = this._$filesContainer.find(".dx-fileuploader-file-container").first().width() || this._$filesContainer.width(),
a = this._$filesContainer.find(".dx-fileuploader-button-container").eq(0).width() * (e + t),
i = this._$filesContainer.find(".dx-fileuploader-file-size").eq(0),
r = i.text();
i.text("1000 Mb");
var l = i.width();
i.text(r), this._$filesContainer.find(".dx-fileuploader-file-name").css("maxWidth", n - a - l)
}
}, {
key: "_renderFileButtons",
value: function(e, t) {
var n = this._getCancelButton(e);
n && t.append(n);
var a = this._getUploadButton(e);
a && t.append(a)
}
}, {
key: "_getCancelButton",
value: function(e) {
var t = this;
return "useForm" === this.option("uploadMode") ? null : (e.cancelButton = this._createComponent((0, a.default)("<div>").addClass("dx-fileuploader-button dx-fileuploader-cancel-button"), g.default, {
onClick: function() {
return t._removeFile(e)
},
icon: "close",
visible: this.option("allowCanceling"),
disabled: this.option("readOnly"),
integrationOptions: {}
}), (0, a.default)("<div>").addClass("dx-fileuploader-button-container").append(e.cancelButton.$element()))
}
}, {
key: "_getUploadButton",
value: function(e) {
var t = this;
return e.isValid() && "useButtons" === this.option("uploadMode") ? (e.uploadButton = this._createComponent((0, a.default)("<div>").addClass("dx-fileuploader-button dx-fileuploader-upload-button"), g.default, {
onClick: function() {
return t._uploadFile(e)
},
icon: "upload"
}), e.onLoadStart.add((function() {
return e.uploadButton.option({
visible: !1,
disabled: !0
})
})), e.onAbort.add((function() {
return e.uploadButton.option({
visible: !0,
disabled: !1
})
})), (0, a.default)("<div>").addClass("dx-fileuploader-button-container").append(e.uploadButton.$element())) : null
}
}, {
key: "_removeFile",
value: function(e) {
var t;
null === (t = e.$file) || void 0 === t || t.parent().remove(), this._files.splice((0, p.inArray)(e, this._files), 1);
var n = this.option("value").slice();
n.splice((0, p.inArray)(e.value, n), 1), this._preventRecreatingFiles = !0, this.option("value", n), this._preventRecreatingFiles = !1, this._toggleFileUploaderEmptyClassName(), this._doPreventInputChange = !0, this._$fileInput.val(""), this._doPreventInputChange = !1
}
}, {
key: "removeFile",
value: function(e) {
if ("useForm" !== this.option("uploadMode") && (0, c.isDefined)(e)) {
var t = this._getFile(e);
t && (t.uploadStarted && this._preventFilesUploading([t]), this._removeFile(t))
}
}
}, {
key: "_toggleFileUploaderEmptyClassName",
value: function() {
this.$element().toggleClass("dx-fileuploader-empty", !this._files.length || this._hasInvalidFile(this._files))
}
}, {
key: "_hasInvalidFile",
value: function(e) {
for (var t = 0; t < e.length; t++)
if (!e[t].isValid()) return !0;
return !1
}
}, {
key: "_getFileSize",
value: function(e) {
for (var t = 0, n = [y.default.format("dxFileUploader-bytes"), y.default.format("dxFileUploader-kb"), y.default.format("dxFileUploader-Mb"), y.default.format("dxFileUploader-Gb")], a = n.length - 1; t < a && e >= 1024;) e /= 1024, t++;
return Math.round(e) + " " + n[t]
}
}, {
key: "_renderSelectButton",
value: function() {
var e = (0, a.default)("<div>").addClass("dx-fileuploader-button").appendTo(this._$inputWrapper);
this._selectButton = this._createComponent(e, g.default, {
text: this.option("selectButtonText"),
focusStateEnabled: !1,
integrationOptions: {},
disabled: this.option("readOnly")
}), this._selectFileDialogHandler = this._selectButtonClickHandler.bind(this), "desktop" === _.default.real().deviceType ? this._selectButton.option("onClick", this._selectFileDialogHandler) : this._attachSelectFileDialogHandler(this._selectButton.$element()), this._attachSelectFileDialogHandler(this.option("dialogTrigger"))
}
}, {
key: "_selectButtonClickHandler",
value: function() {
if (!this.option("useNativeInputClick")) {
if (this._isInteractionDisabled()) return !1;
this._isCustomClickEvent = !0, l.default.trigger(this._$fileInput, "click"), this._isCustomClickEvent = !1
}
}
}, {
key: "_attachSelectFileDialogHandler",
value: function(e) {
(0, c.isDefined)(e) && (this._detachSelectFileDialogHandler(e), l.default.on((0, a.default)(e), "click", this._selectFileDialogHandler))
}
}, {
key: "_detachSelectFileDialogHandler",
value: function(e) {
(0, c.isDefined)(e) && l.default.off((0, a.default)(e), "click", this._selectFileDialogHandler)
}
}, {
key: "_renderUploadButton",
value: function() {
if ("useButtons" === this.option("uploadMode")) {
var e = (0, a.default)("<div>").addClass("dx-fileuploader-button").addClass("dx-fileuploader-upload-button").appendTo(this._$content);
this._uploadButton = this._createComponent(e, g.default, {
text: this.option("uploadButtonText"),
onClick: this._uploadButtonClickHandler.bind(this),
type: this.option("_uploadButtonType"),
integrationOptions: {}
})
}
}
}, {
key: "_uploadButtonClickHandler",
value: function() {
this._uploadFiles()
}
}, {
key: "_shouldDragOverBeRendered",
value: function() {
return !this.option("readOnly") && ("useForm" !== this.option("uploadMode") || this.option("nativeDropSupported"))
}
}, {
key: "_isInteractionDisabled",
value: function() {
return this.option("readOnly") || this.option("disabled")
}
}, {
key: "_renderInputContainer",
value: function() {
this._$inputContainer = (0, a.default)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper), this._displayInputContainerIfNeeded(), this._$fileInput.addClass("dx-fileuploader-input"), this._renderInput();
var e = "dx-fileuploader-input-label-".concat(new i.default);
this._$inputLabel.attr("id", e).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer), this.setAria("labelledby", e, this._$fileInput)
}
}, {
key: "_displayInputContainerIfNeeded",
value: function() {
var e = this._shouldDragOverBeRendered() ? "" : "none";
this._$inputContainer.css("display", e)
}
}, {
key: "_renderInput",
value: function() {
this.option("useNativeInputClick") ? this._selectButton.option("template", this._selectButtonInputTemplate.bind(this)) : (this._$fileInput.appendTo(this._$inputContainer), this._selectButton.option("template", "content")), this._applyInputAttributes(this.option("inputAttr"))
}
}, {
key: "_selectButtonInputTemplate",
value: function(e, t) {
var n = (0, a.default)(t),
i = (0, a.default)("<span>").addClass("dx-button-text").text(e.text);
return n.append(i).append(this._$fileInput), n
}
}, {
key: "_renderInputWrapper",
value: function() {
this._$inputWrapper = (0, a.default)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)
}
}, {
key: "_detachDragEventHandlers",
value: function(e) {
(0, c.isDefined)(e) && l.default.off((0, a.default)(e), (0, D.addNamespace)("", this.NAME))
}
}, {
key: "_attachDragEventHandlers",
value: function(e) {
var t = e !== this._$inputWrapper;
(0, c.isDefined)(e) && this._shouldDragOverBeRendered() && (this._detachDragEventHandlers(e), e = (0, a.default)(e), this._dragEventsTargets = [], l.default.on(e, (0, D.addNamespace)("dragenter", this.NAME), this._dragEnterHandler.bind(this, t)), l.default.on(e, (0, D.addNamespace)("dragover", this.NAME), this._dragOverHandler.bind(this)), l.default.on(e, (0, D.addNamespace)("dragleave", this.NAME), this._dragLeaveHandler.bind(this, t)), l.default.on(e, (0, D.addNamespace)("drop", this.NAME), this._dropHandler.bind(this, t)))
}
}, {
key: "_applyInputAttributes",
value: function(e) {
this._$fileInput.attr(e)
}
}, {
key: "_useInputForDrop",
value: function() {
return this.option("nativeDropSupported") && "useForm" === this.option("uploadMode")
}
}, {
key: "_dragEnterHandler",
value: function(e, t) {
if (this.option("disabled")) return !1;
this._useInputForDrop() || t.preventDefault(), this._updateEventTargets(t), this._dropZoneEnterAction({
event: t,
dropZoneElement: t.target
}), e || this.$element().addClass("dx-fileuploader-dragover")
}
}, {
key: "_dragOverHandler",
value: function(e) {
this._useInputForDrop() || e.preventDefault(), e.originalEvent.dataTransfer.dropEffect = "copy"
}
}, {
key: "_dragLeaveHandler",
value: function(e, t) {
this._useInputForDrop() || t.preventDefault(), this._updateEventTargets(t), this._dropZoneLeaveAction({
event: t,
dropZoneElement: t.target
}), this._dragEventsTargets.length || e || this.$element().removeClass("dx-fileuploader-dragover")
}
}, {
key: "_updateEventTargets",
value: function(e) {
var t = this._dragEventsTargets.indexOf(e.target),
n = -1 !== t;
"dragenter" === e.type ? !n && this._dragEventsTargets.push(e.target) : n && this._dragEventsTargets.splice(t, 1)
}
}, {
key: "_dropHandler",
value: function(e, t) {
if (this._dragEventsTargets = [], e || this.$element().removeClass("dx-fileuploader-dragover"), !(this._useInputForDrop() || e && this._isInteractionDisabled())) {
t.preventDefault();
var n = this._getFiles(t.originalEvent.dataTransfer.files);
!this.option("multiple") && n.length > 1 || (this._changeValue(this._filterFiles(n)), "instantly" === this.option("uploadMode") && this._uploadFiles())
}
}
}, {
key: "_handleAllFilesUploaded",
value: function() {
this._files.every((function(e) {
return !e.isValid() || e._isError || e._isLoaded || e.isAborted
})) && this._filesUploadedAction()
}
}, {
key: "_filterFiles",
value: function(e) {
if (!e.length) return e;
var t = this.option("accept");
if (!t.length) return e;
for (var n = [], a = this._getAllowedFileTypes(t), i = 0, r = e.length; i < r; i++) this._isFileTypeAllowed(e[i], a) && n.push(e[i]);
return n
}
}, {
key: "_getAllowedFileTypes",
value: function(e) {
return e.length ? e.split(",").map((function(e) {
return e.trim()
})) : []
}
}, {
key: "_isFileTypeAllowed",
value: function(e, t) {
for (var n = 0, a = t.length; n < a; n++) {
var i = t[n];
if ("." === i[0]) {
if (i = i.replace(".", "\\."), e.name.match(new RegExp(i + "$", "i"))) return !0
} else if (i = i.replace("*", ""), e.type.match(new RegExp(i, "i"))) return !0
}
return !1
}
}, {
key: "_renderWrapper",
value: function() {
var e = (0, a.default)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),
t = (0, a.default)("<div>").addClass("dx-fileuploader-container").appendTo(e);
this._$content = (0, a.default)("<div>").addClass("dx-fileuploader-content").appendTo(t)
}
}, {
key: "_clean",
value: function() {
this._$fileInput.detach(), delete this._$filesContainer, this._files && this._files.forEach((function(e) {
e.$file = null, e.$statusMessage = null
})), w(R(n.prototype), "_clean", this).call(this)
}
}, {
key: "abortUpload",
value: function(e) {
if ("useForm" !== this.option("uploadMode"))
if ((0, c.isDefined)(e)) {
var t = this._getFile(e);
t && this._preventFilesUploading([t])
} else this._preventFilesUploading(this._files)
}
}, {
key: "upload",
value: function(e) {
if ("useForm" !== this.option("uploadMode"))
if ((0, c.isDefined)(e)) {
var t = this._getFile(e);
t && k() && this._uploadFile(t)
} else this._uploadFiles()
}
}, {
key: "_uploadFiles",
value: function() {
var e = this;
k() && (0, d.each)(this._files, (function(t, n) {
return e._uploadFile(n)
}))
}
}, {
key: "_uploadFile",
value: function(e) {
this._uploadStrategy.upload(e)
}
}, {
key: "_updateProgressBar",
value: function(e, t) {
e.progressBar && e.progressBar.option({
value: t.loaded,
showStatus: !0
}), this._progressAction({
file: e.value,
segmentSize: t.currentSegmentSize,
bytesLoaded: t.loaded,
bytesTotal: t.total,
event: t.event,
request: e.request
})
}
}, {
key: "_updateTotalProgress",
value: function(e, t) {
var n = e ? this._getProgressValue(t / e) : 0;
this.option("progress", n), this._setLoadedSize(t)
}
}, {
key: "_getProgressValue",
value: function(e) {
return Math.floor(100 * e)
}
}, {
key: "_initStatusMessage",
value: function(e) {
e.$statusMessage.css("display", "none")
}
}, {
key: "_ensureCancelButtonInitialized",
value: function(e) {
var t = this;
if (!e.isInitialized) {
e.cancelButton.option("onClick", (function() {
t._preventFilesUploading([e]), t._removeFile(e)
}));
var n = function() {
setTimeout((function() {
e.cancelButton.option({
visible: !1
})
}), 400)
};
e.onLoad.add(n), e.onError.add(n)
}
}
}, {
key: "_createProgressBar",
value: function(e) {
var t = this;
return this._createComponent((0, a.default)("<div>"), v.default, {
value: void 0,
min: 0,
max: e,
statusFormat: function(e) {
return t._getProgressValue(e) + "%"
},
showStatus: !1,
statusPosition: "right"
})
}
}, {
key: "_getTotalFilesSize",
value: function() {
var e = this;
return this._totalFilesSize || (this._totalFilesSize = 0, (0, d.each)(this._files, (function(t, n) {
e._totalFilesSize += n.value.size
}))), this._totalFilesSize
}
}, {
key: "_getTotalLoadedFilesSize",
value: function() {
var e = this;
return this._totalLoadedFilesSize || (this._totalLoadedFilesSize = 0, (0, d.each)(this._files, (function(t, n) {
e._totalLoadedFilesSize += n.loadedSize
}))), this._totalLoadedFilesSize
}
}, {
key: "_setLoadedSize",
value: function(e) {
this._totalLoadedFilesSize = e
}
}, {
key: "_recalculateProgress",
value: function() {
this._totalFilesSize = 0, this._totalLoadedFilesSize = 0, this._updateTotalProgress(this._getTotalFilesSize(), this._getTotalLoadedFilesSize())
}
}, {
key: "_updateReadOnlyState",
value: function() {
var e = this.option("readOnly");
this._selectButton.option("disabled", e), this._files.forEach((function(t) {
var n;
return null === (n = t.cancelButton) || void 0 === n ? void 0 : n.option("disabled", e)
})), this._displayInputContainerIfNeeded(), this._attachDragEventHandlers(this._$inputWrapper)
}
}, {
key: "_optionChanged",
value: function(e) {
var t = e.value;
switch (e.name) {
case "height":
case "width":
this._updateFileNameMaxWidth(), w(R(n.prototype), "_optionChanged", this).call(this, e);
break;
case "value":
!t.length && this._$fileInput.val(""), this._preventRecreatingFiles || (this._createFiles(), this._renderFiles()), this._recalculateProgress(), w(R(n.prototype), "_optionChanged", this).call(this, e);
break;
case "name":
this._initFileInput(), w(R(n.prototype), "_optionChanged", this).call(this, e);
break;
case "accept":
this._initFileInput();
break;
case "multiple":
this._initFileInput(), e.value || this.reset();
break;
case "readOnly":
this._updateReadOnlyState(), w(R(n.prototype), "_optionChanged", this).call(this, e);
break;
case "selectButtonText":
this._selectButton.option("text", t);
break;
case "uploadButtonText":
this._uploadButton && this._uploadButton.option("text", t);
break;
case "_uploadButtonType":
this._uploadButton && this._uploadButton.option("type", t);
break;
case "dialogTrigger":
this._detachSelectFileDialogHandler(e.previousValue), this._attachSelectFileDialogHandler(t);
break;
case "dropZone":
this._detachDragEventHandlers(e.previousValue), this._attachDragEventHandlers(t);
break;
case "maxFileSize":
case "minFileSize":
case "allowedFileExtensions":
case "invalidFileExtensionMessage":
case "invalidMaxFileSizeMessage":
case "invalidMinFileSizeMessage":
case "readyToUploadMessage":
case "uploadedMessage":
case "uploadFailedMessage":
case "uploadAbortedMessage":
this._invalidate();
break;
case "labelText":
this._$inputLabel.text(t);
break;
case "showFileList":
this._preventRecreatingFiles || this._renderFiles();
break;
case "uploadFile":
case "uploadChunk":
case "chunkSize":
this._setUploadStrategy();
break;
case "abortUpload":
case "uploadUrl":
case "progress":
case "uploadMethod":
case "uploadHeaders":
case "uploadCustomData":
case "extendSelection":
break;
case "allowCanceling":
case "uploadMode":
this.reset(), this._invalidate();
break;
case "onBeforeSend":
this._createBeforeSendAction();
break;
case "onUploadStarted":
this._createUploadStartedAction();
break;
case "onUploaded":
this._createUploadedAction();
break;
case "onFilesUploaded":
this._createFilesUploadedAction();
break;
case "onProgress":
this._createProgressAction();
break;
case "onUploadError":
this._createUploadErrorAction();
break;
case "onUploadAborted":
this._createUploadAbortedAction();
break;
case "onDropZoneEnter":
this._createDropZoneEnterAction();
break;
case "onDropZoneLeave":
this._createDropZoneLeaveAction();
break;
case "useNativeInputClick":
this._renderInput();
break;
case "useDragOver":
this._attachDragEventHandlers(this._$inputWrapper);
break;
case "nativeDropSupported":
this._invalidate();
break;
case "inputAttr":
this._applyInputAttributes(t);
break;
default:
w(R(n.prototype), "_optionChanged", this).call(this, e)
}
}
}, {
key: "reset",
value: function() {
this.option("value", [])
}
}]), n
}(f.default),
L = function() {
function e(t, n) {
S(this, e), this.file = t, this.chunkSize = n, this.index = 0
}
return O(e, [{
key: "read",
value: function() {
if (!this.file) return null;
var e = this.createBlobResult(this.file, this.index, this.chunkSize);
return e.isCompleted && (this.file = null), this.index++, e
}
}, {
key: "createBlobResult",
value: function(e, t, n) {
var a = t * n;
return {
blob: this.sliceFile(e, a, n),
index: t,
isCompleted: a + n >= e.size
}
}
}, {
key: "sliceFile",
value: function(e, t, n) {
return e.slice ? e.slice(t, t + n) : e.webkitSlice ? e.webkitSlice(t, t + n) : null
}
}]), e
}(),
V = function() {
function e(t) {
S(this, e), this.fileUploader = t
}
return O(e, [{
key: "upload",
value: function(e) {
e.isInitialized && e.isAborted && this.fileUploader._resetFileState(e), e.isValid() && !e.uploadStarted && (this._prepareFileBeforeUpload(e), this._uploadCore(e))
}
}, {
key: "abortUpload",
value: function(e) {
var t = this;
if (!(e._isError || e._isLoaded || e.isAborted) && (e.isAborted = !0, e.request && e.request.abort(), this._isCustomCallback("abortUpload"))) {
var n = this.fileUploader.option("abortUpload"),
a = this._createUploadArgument(e),
i = null;
try {
var r = n(e.value, a);
i = (0, h.fromPromise)(r)
} catch (l) {
i = (new h.Deferred).reject(l).promise()
}
i.done((function() {
return e.onAbort.fire()
})).fail((function(n) {
return t._handleFileError(e, n)
}))
}
}
}, {
key: "_beforeSend",
value: function(e, t) {
var n = this._createUploadArgument(t);
this.fileUploader._beforeSendAction({
request: e,
file: t.value,
uploadInfo: n
}), t.request = e
}
}, {
key: "_createUploadArgument",
value: function(e) {}
}, {
key: "_uploadCore",
value: function(e) {}
}, {
key: "_isCustomCallback",
value: function(e) {
var t = this.fileUploader.option(e);
return t && (0, c.isFunction)(t)
}
}, {
key: "_handleFileError",
value: function(e, t) {
e._isError = !0, e.onError.fire(t)
}
}, {
key: "_prepareFileBeforeUpload",
value: function(e) {
var t;
e.$file && (null === (t = e.progressBar) || void 0 === t || t.dispose(), this.fileUploader._createFileProgressBar(e)), e.isInitialized || (e.onLoadStart.add(this._onUploadStarted.bind(this, e)), e.onLoad.add(this._onLoadedHandler.bind(this, e)), e.onError.add(this._onErrorHandler.bind(this, e)), e.onAbort.add(this._onAbortHandler.bind(this, e)), e.onProgress.add(this._onProgressHandler.bind(this, e)), e.isInitialized = !0)
}
}, {
key: "_isStatusError",
value: function(e) {
return 400 <= e && e < 500 || 500 <= e && e < 600
}
}, {
key: "_onUploadStarted",
value: function(e, t) {
e.uploadStarted = !0, this.fileUploader._uploadStartedAction({
file: e.value,
event: t,
request: e.request
})
}
}, {
key: "_onAbortHandler",
value: function(e, t) {
var n = {
file: e.value,
event: t,
request: e.request,
message: this.fileUploader._getUploadAbortedStatusMessage()
};
this.fileUploader._uploadAbortedAction(n), this.fileUploader._setStatusMessage(e, n.message), this.fileUploader._handleAllFilesUploaded()
}
}, {
key: "_onErrorHandler",
value: function(e, t) {
var n = {
file: e.value,
event: void 0,
request: e.request,
error: t,
message: this.fileUploader.option("uploadFailedMessage")
};
this.fileUploader._uploadErrorAction(n), this.fileUploader._setStatusMessage(e, n.message), this.fileUploader._handleAllFilesUploaded()
}
}, {
key: "_onLoadedHandler",
value: function(e, t) {
var n = {
file: e.value,
event: t,
request: e.request,
message: this.fileUploader.option("uploadedMessage")
};
e._isLoaded = !0, this.fileUploader._uploadedAction(n), this.fileUploader._setStatusMessage(e, n.message), this.fileUploader._handleAllFilesUploaded()
}
}, {
key: "_onProgressHandler",
value: function(e, t) {
if (e) {
var n = this.fileUploader._getTotalFilesSize(),
a = this.fileUploader._getTotalLoadedFilesSize(),
i = Math.min(t.loaded, e.value.size),
r = i - e.loadedSize;
e.loadedSize = i, this.fileUploader._updateTotalProgress(n, a + r), this.fileUploader._updateProgressBar(e, this._getLoadedData(i, t.total, r, t))
}
}
}, {
key: "_getLoadedData",
value: function(e, t, n, a) {
return {
loaded: e,
total: t,
currentSegmentSize: n
}
}
}, {
key: "_extendFormData",
value: function(e) {
var t = this.fileUploader.option("uploadCustomData");
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (0, c.isDefined)(t[n]) && e.append(n, t[n])
}
}]), e
}(),
U = function(e) {
E(n, e);
var t = T(n);
function n(e) {
var a;
return S(this, n), (a = t.call(this, e)).chunkSize = a.fileUploader.option("chunkSize"), a
}
return O(n, [{
key: "_uploadCore",
value: function(e) {
var t = e.value,
n = {
name: t.name,
loadedBytes: 0,
type: t.type,
blobReader: new L(t, this.chunkSize),
guid: new i.default,
fileSize: t.size,
count: Math.ceil(t.size / this.chunkSize),
customData: {}
};
e.chunksData = n, this._sendChunk(e, n)
}
}, {
key: "_sendChunk",
value: function(e, t) {
var n = this,
a = t.blobReader.read();
t.currentChunk = a, a && this._sendChunkCore(e, t, a).done((function() {
e.isAborted || (t.loadedBytes += a.blob.size, e.onProgress.fire({
loaded: t.loadedBytes,
total: e.value.size
}), a.isCompleted && e.onLoad.fire(), setTimeout((function() {
return n._sendChunk(e, t)
})))
})).fail((function(t) {
n._shouldHandleError(t) && n._handleFileError(e, t)
}))
}
}, {
key: "_sendChunkCore",
value: function(e, t, n) {}
}, {
key: "_shouldHandleError",
value: function(e) {}
}, {
key: "_tryRaiseStartLoad",
value: function(e) {
e.isStartLoad || (e.isStartLoad = !0, e.onLoadStart.fire())
}
}, {
key: "_getEvent",
value: function(e) {
return null
}
}, {
key: "_createUploadArgument",
value: function(e) {
return this._createChunksInfo(e.chunksData)
}
}, {
key: "_createChunksInfo",
value: function(e) {
return {
bytesUploaded: e.loadedBytes,
chunkCount: e.count,
customData: e.customData,
chunkBlob: e.currentChunk.blob,
chunkIndex: e.currentChunk.index
}
}
}]), n
}(V),
B = function(e) {
E(n, e);
var t = T(n);
function n() {
return S(this, n), t.apply(this, arguments)
}
return O(n, [{
key: "_sendChunkCore",
value: function(e, t, n) {
var a = this;
return m.default.sendRequest({
url: this.fileUploader.option("uploadUrl"),
method: this.fileUploader.option("uploadMethod"),
headers: this.fileUploader.option("uploadHeaders"),
beforeSend: function(t) {
return a._beforeSend(t, e)
},
upload: {
onloadstart: function() {
return a._tryRaiseStartLoad(e)
},
onabort: function() {
return e.onAbort.fire()
}
},
data: this._createFormData({
fileName: t.name,
blobName: this.fileUploader.option("name"),
blob: n.blob,
index: n.index,
count: t.count,
type: t.type,
guid: t.guid,
size: t.fileSize
})
})
}
}, {
key: "_shouldHandleError",
value: function(e) {
return this._isStatusError(e.status)
}
}, {
key: "_createFormData",
value: function(e) {
var t = new M.FormData;
return t.append(e.blobName, e.blob), t.append("chunkMetadata", JSON.stringify({
FileName: e.fileName,
Index: e.index,
TotalCount: e.count,
FileSize: e.size,
FileType: e.type,
FileGuid: e.guid
})), this._extendFormData(t), t
}
}]), n
}(U),
q = function(e) {
E(n, e);
var t = T(n);
function n() {
return S(this, n), t.apply(this, arguments)
}
return O(n, [{
key: "_sendChunkCore",
value: function(e, t) {
this._tryRaiseStartLoad(e);
var n = this._createChunksInfo(t),
a = this.fileUploader.option("uploadChunk");
try {
var i = a(e.value, n);
return (0, h.fromPromise)(i)
} catch (r) {
return (new h.Deferred).reject(r).promise()
}
}
}, {
key: "_shouldHandleError",
value: function(e) {
return !0
}
}]), n
}(U),
j = function(e) {
E(n, e);
var t = T(n);
function n() {
return S(this, n), t.apply(this, arguments)
}
return O(n, [{
key: "_uploadCore",
value: function(e) {
var t = this;
e.loadedSize = 0, this._uploadFile(e).done((function() {
e.isAborted || e.onLoad.fire()
})).fail((function(n) {
t._shouldHandleError(e, n) && t._handleFileError(e, n)
}))
}
}, {
key: "_uploadFile",
value: function(e) {}
}, {
key: "_shouldHandleError",
value: function(e, t) {}
}, {
key: "_handleProgress",
value: function(e, t) {
e._isError || (e._isProgressStarted = !0, e.onProgress.fire(t))
}
}, {
key: "_getLoadedData",
value: function(e, t, a, i) {
var r = w(R(n.prototype), "_getLoadedData", this).call(this, e, t, a, i);
return r.event = i, r
}
}]), n
}(V),
Y = function(e) {
E(n, e);
var t = T(n);
function n() {
return S(this, n), t.apply(this, arguments)
}
return O(n, [{
key: "_uploadFile",
value: function(e) {
var t = this;
return m.default.sendRequest({
url: this.fileUploader.option("uploadUrl"),
method: this.fileUploader.option("uploadMethod"),
headers: this.fileUploader.option("uploadHeaders"),
beforeSend: function(n) {
return t._beforeSend(n, e)
},
upload: {
onprogress: function(n) {
return t._handleProgress(e, n)
},
onloadstart: function() {
return e.onLoadStart.fire()
},
onabort: function() {
return e.onAbort.fire()
}
},
data: this._createFormData(this.fileUploader.option("name"), e.value)
})
}
}, {
key: "_shouldHandleError",
value: function(e, t) {
return this._isStatusError(t.status) || !e._isProgressStarted
}
}, {
key: "_createFormData",
value: function(e, t) {
var n = new M.FormData;
return n.append(e, t, t.name), this._extendFormData(n), n
}
}]), n
}(j),
H = function(e) {
E(n, e);
var t = T(n);
function n() {
return S(this, n), t.apply(this, arguments)
}
return O(n, [{
key: "_uploadFile",
value: function(e) {
var t = this;
e.onLoadStart.fire();
var n = this.fileUploader.option("uploadFile");
try {
var a = n(e.value, (function(n) {
t._handleProgress(e, {
loaded: n,
total: e.size
})
}));
return (0, h.fromPromise)(a)
} catch (i) {
return (new h.Deferred).reject(i).promise()
}
}
}, {
key: "_shouldHandleError",
value: function(e, t) {
return !0
}
}]), n
}(j);
(0, o.default)("dxFileUploader", N), t.default = N, e.exports = t.default, e.exports.default = e.exports
},
"06KA": function(e, t, n) {
"use strict";
t.default = void 0;
var a, i = (a = n("djdu")) && a.__esModule ? a : {
default: a
};
t.default = i.default, e.exports = t.default, e.exports.default = e.exports
},
"0B/R": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
}));
var a = n("0iRq");
function i(e, t, n) {
return 0 === n ? [t] : (e.push(t), e)
}
function r() {
return Object(a.a)(i, [])
}
},
"0Hfl": function(e, t, n) {
var a;
e.exports = (a = n("Ni7E"), function(e) {
var t = a,
n = t.lib,
i = n.WordArray,
r = n.Hasher,
l = t.algo,
o = [];
! function() {
for (var t = 0; t < 64; t++) o[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0
}();
var s = l.MD5 = r.extend({
_doReset: function() {
this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878])
},
_doProcessBlock: function(e, t) {
for (var n = 0; n < 16; n++) {
var a = t + n,
i = e[a];
e[a] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
}
var r = this._hash.words,
l = e[t + 0],
s = e[t + 1],
h = e[t + 2],
m = e[t + 3],
f = e[t + 4],
g = e[t + 5],
v = e[t + 6],
b = e[t + 7],
_ = e[t + 8],
D = e[t + 9],
C = e[t + 10],
y = e[t + 11],
x = e[t + 12],
A = e[t + 13],
P = e[t + 14],
S = e[t + 15],
F = r[0],
O = r[1],
w = r[2],
E = r[3];
F = c(F, O, w, E, l, 7, o[0]), E = c(E, F, O, w, s, 12, o[1]), w = c(w, E, F, O, h, 17, o[2]), O = c(O, w, E, F, m, 22, o[3]), F = c(F, O, w, E, f, 7, o[4]), E = c(E, F, O, w, g, 12, o[5]), w = c(w, E, F, O, v, 17, o[6]), O = c(O, w, E, F, b, 22, o[7]), F = c(F, O, w, E, _, 7, o[8]), E = c(E, F, O, w, D, 12, o[9]), w = c(w, E, F, O, C, 17, o[10]), O = c(O, w, E, F, y, 22, o[11]), F = c(F, O, w, E, x, 7, o[12]), E = c(E, F, O, w, A, 12, o[13]), w = c(w, E, F, O, P, 17, o[14]), F = d(F, O = c(O, w, E, F, S, 22, o[15]), w, E, s, 5, o[16]), E = d(E, F, O, w, v, 9, o[17]), w = d(w, E, F, O, y, 14, o[18]), O = d(O, w, E, F, l, 20, o[19]), F = d(F, O, w, E, g, 5, o[20]), E = d(E, F, O, w, C, 9, o[21]), w = d(w, E, F, O, S, 14, o[22]), O = d(O, w, E, F, f, 20, o[23]), F = d(F, O, w, E, D, 5, o[24]), E = d(E, F, O, w, P, 9, o[25]), w = d(w, E, F, O, m, 14, o[26]), O = d(O, w, E, F, _, 20, o[27]), F = d(F, O, w, E, A, 5, o[28]), E = d(E, F, O, w, h, 9, o[29]), w = d(w, E, F, O, b, 14, o[30]), F = u(F, O = d(O, w, E, F, x, 20, o[31]), w, E, g, 4, o[32]), E = u(E, F, O, w, _, 11, o[33]), w = u(w, E, F, O, y, 16, o[34]), O = u(O, w, E, F, P, 23, o[35]), F = u(F, O, w, E, s, 4, o[36]), E = u(E, F, O, w, f, 11, o[37]), w = u(w, E, F, O, b, 16, o[38]), O = u(O, w, E, F, C, 23, o[39]), F = u(F, O, w, E, A, 4, o[40]), E = u(E, F, O, w, l, 11, o[41]), w = u(w, E, F, O, m, 16, o[42]), O = u(O, w, E, F, v, 23, o[43]), F = u(F, O, w, E, D, 4, o[44]), E = u(E, F, O, w, x, 11, o[45]), w = u(w, E, F, O, S, 16, o[46]), F = p(F, O = u(O, w, E, F, h, 23, o[47]), w, E, l, 6, o[48]), E = p(E, F, O, w, b, 10, o[49]), w = p(w, E, F, O, P, 15, o[50]), O = p(O, w, E, F, g, 21, o[51]), F = p(F, O, w, E, x, 6, o[52]), E = p(E, F, O, w, m, 10, o[53]), w = p(w, E, F, O, C, 15, o[54]), O = p(O, w, E, F, s, 21, o[55]), F = p(F, O, w, E, _, 6, o[56]), E = p(E, F, O, w, S, 10, o[57]), w = p(w, E, F, O, v, 15, o[58]), O = p(O, w, E, F, A, 21, o[59]), F = p(F, O, w, E, f, 6, o[60]), E = p(E, F, O, w, y, 10, o[61]), w = p(w, E, F, O, h, 15, o[62]), O = p(O, w, E, F, D, 21, o[63]), r[0] = r[0] + F | 0, r[1] = r[1] + O | 0, r[2] = r[2] + w | 0, r[3] = r[3] + E | 0
},
_doFinalize: function() {
var t = this._data,
n = t.words,
a = 8 * this._nDataBytes,
i = 8 * t.sigBytes;
n[i >>> 5] |= 128 << 24 - i % 32;
var r = e.floor(a / 4294967296),
l = a;
n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8), t.sigBytes = 4 * (n.length + 1), this._process();
for (var o = this._hash, s = o.words, c = 0; c < 4; c++) {
var d = s[c];
s[c] = 16711935 & (d << 8 | d >>> 24) | 4278255360 & (d << 24 | d >>> 8)
}
return o
},
clone: function() {
var e = r.clone.call(this);
return e._hash = this._hash.clone(), e
}
});
function c(e, t, n, a, i, r, l) {
var o = e + (t & n | ~t & a) + i + l;
return (o << r | o >>> 32 - r) + t
}
function d(e, t, n, a, i, r, l) {
var o = e + (t & a | n & ~a) + i + l;
return (o << r | o >>> 32 - r) + t
}
function u(e, t, n, a, i, r, l) {
var o = e + (t ^ n ^ a) + i + l;
return (o << r | o >>> 32 - r) + t
}
function p(e, t, n, a, i, r, l) {
var o = e + (n ^ (t | ~a)) + i + l;
return (o << r | o >>> 32 - r) + t
}
t.MD5 = r._createHelper(s), t.HmacMD5 = r._createHmacHelper(s)
}(Math), a.MD5)
},
"0I39": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}));
var a = n("sCjJ"),
i = function() {
function e() {}
return e.decodeAuthToken = function(t) {
if (e.isEmpty(t)) throw a.a.createTokenNullOrEmptyError(t);
var n = /^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);
if (!n || n.length < 4) throw a.a.createTokenParsingError("Given token is malformed: " + JSON.stringify(t));
return {
header: n[1],
JWSPayload: n[2],
JWSSig: n[3]
}
}, e.isEmpty = function(e) {
return void 0 === e || !e || 0 === e.length
}, e.isEmptyObj = function(t) {
if (t && !e.isEmpty(t)) try {
var n = JSON.parse(t);
return 0 === Object.keys(n).length
} catch (a) {}
return !0
}, e.startsWith = function(e, t) {
return 0 === e.indexOf(t)
}, e.endsWith = function(e, t) {
return e.length >= t.length && e.lastIndexOf(t) === e.length - t.length
}, e.queryStringToObject = function(e) {
var t = {},
n = e.split("&"),
a = function(e) {
return decodeURIComponent(e.replace(/\+/g, " "))
};
return n.forEach((function(e) {
if (e.trim()) {
var n = e.split(/=(.+)/g, 2),
i = n[0],
r = n[1];
i && r && (t[a(i)] = a(r))
}
})), t
}, e.trimArrayEntries = function(e) {
return e.map((function(e) {
return e.trim()
}))
}, e.removeEmptyStringsFromArray = function(t) {
return t.filter((function(t) {
return !e.isEmpty(t)
}))
}, e.jsonParseHelper = function(e) {
try {
return JSON.parse(e)
} catch (t) {
return null
}
}, e.matchPattern = function(e, t) {
return new RegExp(e.replace(/\\/g, "\\\\").replace(/\*/g, "[^ ]*").replace(/\?/g, "\\?")).test(t)
}, e
}()
},
"0Ss3": function(e, t) {
e.exports = function(e, t) {
return function(n) {
return null != n && n[e] === t && (void 0 !== t || e in Object(n))
}
}
},
"0Xj1": function(e, t, n) {
"use strict";
t.default = void 0;
var a = p(n("IbwU")),
i = n("Jd2B"),
r = p(n("dv/a")),
l = p(n("rM28")),
o = n("e95e"),
s = p(n("twop")),
c = p(n("yj8o")),
d = n("3jRX"),
u = n("tsuW");
function p(e) {
return e && e.__esModule ? e : {
default: e
}
}
var h = c.default.inherit({
_supportedKeys: function() {
return (0, o.extend)(this.callBase(), {
escape: i.noop
})
},
_getDefaultOptions: function() {
return (0, o.extend)(this.callBase(), {
message: r.default.format("Loading"),
width: 222,
height: 90,
animation: null,
showIndicator: !0,
indicatorSrc: "",
showPane: !0,
delay: 0,
templatesRenderAsynchronously: !1,
hideTopOverlayHandler: null,
resizeEnabled: !1,
focusStateEnabled: !1
})
},
_defaultOptionsRules: function() {
return this.callBase().concat([{
device: {
platform: "generic"
},
options: {
shadingColor: "transparent"
}
}, {
device: function() {
return (0, u.isMaterial)()
},
options: {
message: "",
width: 60,
height: 60,
maxHeight: 60,
maxWidth: 60
}
}])
},
_init: function() {
this.callBase.apply(this, arguments)
},
_render: function() {
this.callBase(), this.$element().addClass("dx-loadpanel"), this._wrapper().addClass("dx-loadpanel-wrapper")
},
_renderContentImpl: function() {
this.callBase(), this.$content().addClass("dx-loadpanel-content"), this._$contentWrapper = (0, a.default)("<div>").addClass("dx-loadpanel-content-wrapper"), this._$contentWrapper.appendTo(this._$content), this._togglePaneVisible(), this._cleanPreviousContent(), this._renderLoadIndicator(), this._renderMessage()
},
_show: function() {
var e = this.option("delay");
if (!e) return this.callBase();
var t = new d.Deferred,
n = this.callBase.bind(this);
return this._clearShowTimeout(), this._showTimeout = setTimeout((function() {
n().done((function() {
t.resolve()
}))
}), e), t.promise()
},
_hide: function() {
return this._clearShowTimeout(), this.callBase()
},
_clearShowTimeout: function() {
clearTimeout(this._showTimeout)
},
_renderMessage: function() {
if (this._$contentWrapper) {
var e = this.option("message");
if (e) {
var t = (0, a.default)("<div>").addClass("dx-loadpanel-message").text(e);
this._$contentWrapper.append(t)
}
}
},
_renderLoadIndicator: function() {
this._$contentWrapper && this.option("showIndicator") && (this._$indicator || (this._$indicator = (0, a.default)("<div>").addClass("dx-loadpanel-indicator").appendTo(this._$contentWrapper)), this._createComponent(this._$indicator, s.default, {
indicatorSrc: this.option("indicatorSrc")
}))
},
_cleanPreviousContent: function() {
this.$content().find(".dx-loadpanel-message").remove(), this.$content().find(".dx-loadpanel-indicator").remove()
},
_togglePaneVisible: function() {
this.$content().toggleClass("dx-loadpanel-pane-hidden", !this.option("showPane"))
},
_optionChanged: function(e) {
switch (e.name) {
case "delay":
break;
case "message":
case "showIndicator":
this._cleanPreviousContent(), this._renderLoadIndicator(), this._renderMessage();
break;
case "showPane":
this._togglePaneVisible();
break;
case "indicatorSrc":
this._renderLoadIndicator();
break;
default:
this.callBase(e)
}
},
_dispose: function() {
this._clearShowTimeout(), this.callBase()
}
});
(0, l.default)("dxLoadPanel", h), t.default = h, e.exports = t.default, e.exports.default = e.exports
},
"0gML": function(e, t, n) {
"use strict";
t.default = void 0;
var a = m(n("IbwU")),
i = n("wwx0"),
r = m(n("Wgfj")),
l = m(n("zStS")),
o = m(n("58Dz")),
s = m(n("dv/a")),
c = m(n("q0Hm")),
d = n("sgHp"),
u = n("3jRX"),
p = n("vxEe"),
h = n("UU+3");
function m(e) {
return e && e.__esModule ? e : {
default: e
}
}
var f = r.default.View.inherit({
isVisible: function() {
return this.option("filterPanel.visible") && this.getController("data").dataSource()
},
init: function() {
var e = this;
this.getController("data").dataSourceChanged.add((function() {
return e.render()
}))
},
_renderCore: function() {
var e = this.element();
e.empty().addClass(this.addWidgetPrefix("filter-panel"));
var t = (0, a.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-left")).appendTo(e);
this.option("filterValue") || this._filterValueBuffer ? (t.append(this._getCheckElement()).append(this._getFilterElement()).append(this._getTextElement()), e.append(this._getRemoveButtonElement())) : t.append(this._getFilterElement()).append(this._getTextElement())
},
_getCheckElement: function() {
var e = this,
t = (0, a.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-checkbox"));
return e._createComponent(t, c.default, {
value: e.option("filterPanel.filterEnabled"),
onValueChanged: function(t) {
e.option("filterPanel.filterEnabled", t.value)
}
}), t.attr("title", this.option("filterPanel.texts.filterEnabledHint")), t
},
_getFilterElement: function() {
var e = this,
t = (0, a.default)("<div>").addClass("dx-icon-filter");
return o.default.on(t, "click", (function() {
return e._showFilterBuilder()
})), (0, h.registerKeyboardAction)("filterPanel", e, t, void 0, (function() {
return e._showFilterBuilder()
})), e._addTabIndexToElement(t), t
},
_getTextElement: function() {
var e, t = this,
n = (0, a.default)("<div>").addClass(t.addWidgetPrefix("filter-panel-text")),
i = t.option("filterValue");
return i ? (0, u.when)(t.getFilterText(i, t.getController("filterSync").getCustomFilterOperations())).done((function(e) {
var a = t.option("filterPanel.customizeText");
if (a) {
var r = a({
component: t.component,
filterValue: i,
text: e
});
"string" == typeof r && (e = r)
}
n.text(e)
})) : (e = t.option("filterPanel.texts.createFilter"), n.text(e)), o.default.on(n, "click", (function() {
return t._showFilterBuilder()
})), (0, h.registerKeyboardAction)("filterPanel", t, n, void 0, (function() {
return t._showFilterBuilder()
})), t._addTabIndexToElement(n), n
},
_showFilterBuilder: function() {
this.option("filterBuilderPopup.visible", !0)
},
_getRemoveButtonElement: function() {
var e = this,
t = function() {
return e.option("filterValue", null)
},
n = (0, a.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-clear-filter")).text(e.option("filterPanel.texts.clearFilter"));
return o.default.on(n, "click", t), (0, h.registerKeyboardAction)("filterPanel", this, n, void 0, t), e._addTabIndexToElement(n), n
},
_addTabIndexToElement: function(e) {
if (!this.option("useLegacyKeyboardNavigation")) {
var t = this.option("tabindex") || 0;
e.attr("tabindex", t)
}
},
optionChanged: function(e) {
switch (e.name) {
case "filterValue":
this._invalidate(), this.option("filterPanel.filterEnabled", !0), e.handled = !0;
break;
case "filterPanel":
this._invalidate(), e.handled = !0;
break;
default:
this.callBase(e)
}
},
_getConditionText: function(e, t, n) {
var a = "[".concat(e, "] ").concat(t);
return (0, i.isDefined)(n) && (a += n), a
},
_getValueMaskedText: function(e) {
return Array.isArray(e) ? "('".concat(e.join("', '"), "')") : " '".concat(e, "'")
},
_getValueText: function(e, t, n) {
var a = this,
r = new u.Deferred,
o = t && t.customizeText;
if ((0, i.isDefined)(n) || o)
if (!o && e.lookup)(0, d.getCurrentLookupValueText)(e, n, (function(e) {
r.resolve(a._getValueMaskedText(e))
}));
else {
var s = Array.isArray(n) ? n : l.default.getDisplayValue(e, n);
(0, u.when)((0, d.getCurrentValueText)(e, s, t, "filterPanel")).done((function(e) {
r.resolve(a._getValueMaskedText(e))
}))
}
else r.resolve("");
return r.promise()
},
getConditionText: function(e, t) {
var n, a = this,
i = e[1],
r = new u.Deferred,
l = (0, d.getCustomOperation)(t.customOperations, i),
o = (0, d.getField)(e[0], t.columns),
s = o.caption || "",
c = e[2];
return n = l ? l.caption || (0, p.captionize)(l.name) : (0, d.getCaptionByOperation)(null === c ? "=" === i ? "isblank" : "isnotblank" : i, t.filterOperationDescriptions), this._getValueText(o, l, c).done((function(e) {
r.resolve(a._getConditionText(s, n, e))
})), r
},
getGroupText: function(e, t, n) {
var a = this,
i = new u.Deferred,
r = [],
l = (0, d.getGroupValue)(e);
return e.forEach((function(e) {
(0, d.isCondition)(e) ? r.push(a.getConditionText(e, t)): (0, d.isGroup)(e) && r.push(a.getGroupText(e, t, !0))
})), u.when.apply(this, r).done((function() {
for (var e, a = arguments.length, r = new Array(a), o = 0; o < a; o++) r[o] = arguments[o];
if ("!" === l[0]) {
var s = t.groupOperationDescriptions["not" + l.substring(1, 2).toUpperCase() + l.substring(2)].split(" ");
e = "".concat(s[0], " ").concat(r[0])
} else e = r.join(" ".concat(t.groupOperationDescriptions[l], " "));
n && (e = "(".concat(e, ")")), i.resolve(e)
})), i
},
getFilterText: function(e, t) {
var n = {
customOperations: t,
columns: this.getController("columns").getFilteringColumns(),
filterOperationDescriptions: this.option("filterBuilder.filterOperationDescriptions"),
groupOperationDescriptions: this.option("filterBuilder.groupOperationDescriptions")
};
return (0, d.isCondition)(e) ? this.getConditionText(e, n) : this.getGroupText(e, n)
}
});
t.default = {
defaultOptions: function() {
return {
filterPanel: {
visible: !1,
filterEnabled: !0,
texts: {
createFilter: s.default.format("dxDataGrid-filterPanelCreateFilter"),
clearFilter: s.default.format("dxDataGrid-filterPanelClearFilter"),
filterEnabledHint: s.default.format("dxDataGrid-filterPanelFilterEnabledHint")
}
}
}
},
views: {
filterPanelView: f
},
extenders: {
controllers: {
data: {
optionChanged: function(e) {
switch (e.name) {
case "filterPanel":
this._applyFilter(), e.handled = !0;
break;
default:
this.callBase(e)
}
}
}
}
}
}, e.exports = t.default
},
"0iRq": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}));
var a = n("SrNW"),
i = n("A8kH"),
r = n("iqFP"),
l = n("Ti3e");
function o(e, t) {
return arguments.length >= 2 ? function(n) {
return Object(l.a)(Object(a.a)(e, t), Object(i.a)(1), Object(r.a)(t))(n)
} : function(t) {
return Object(l.a)(Object(a.a)((t, n, a) => e(t, n, a + 1)), Object(i.a)(1))(t)
}
}
},
"0jKL": function(e, t, n) {
"use strict";
var a = r(n("a+E+")),
i = r(n("S2Yg"));
function r(e) {
return e && e.__esModule ? e : {
default: e
}
}
a.default.registerModule("filterBuilder", i.default)
},
"0yow": function(e, t, n) {
! function(e) {
"use strict";
e.defineLocale("id", {
months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),
weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
weekdaysShort: "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),
weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),
longDateFormat: {
LT: "HH.mm",
LTS: "HH.mm.ss",
L: "DD/MM/YYYY",
LL: "D MMMM YYYY",
LLL: "D MMMM YYYY [pukul] HH.mm",
LLLL: "dddd, D MMMM YYYY [pukul] HH.mm"
},
meridiemParse: /pagi|siang|sore|malam/,
meridiemHour: function(e, t) {
return 12 === e && (e = 0), "pagi" === t ? e : "siang" === t ? e >= 11 ? e : e + 12 : "sore" === t || "malam" === t ? e + 12 : void 0
},
meridiem: function(e, t, n) {
return e < 11 ? "pagi" : e < 15 ? "siang" : e < 19 ? "sore" : "malam"
},
calendar: {
sameDay: "[Hari ini pukul] LT",
nextDay: "[Besok pukul] LT",
nextWeek: "dddd [pukul] LT",
lastDay: "[Kemarin pukul] LT",
lastWeek: "dddd [lalu pukul] LT",
sameElse: "L"
},
relativeTime: {
future: "dalam %s",
past: "%s yang lalu",
s: "beberapa detik",
ss: "%d detik",
m: "semenit",
mm: "%d menit",
h: "sejam",
hh: "%d jam",
d: "sehari",
dd: "%d hari",
M: "sebulan",
MM: "%d bulan",
y: "setahun",
yy: "%d tahun"
},
week: {
dow: 1,
doy: 7
}
})
}(n("wgY5"))
},
"0zkE": function(e, t, n) {
"use strict";
var a = u(n("GtyH")),
i = u(n("9EQg")),
r = n("vJrX"),
l = n("N8pe"),
o = n("wwx0"),
s = n("02tM"),
c = u(n("5JdR")),
d = u(n("bDj3"));
function u(e) {
return e && e.__esModule ? e : {
default: e
}
}
if ((0, i.default)())
if ((0, r.compare)(a.default.fn.jquery, [3]) < 0) {
var p = {
2: "touch",
3: "pen",
4: "mouse"
};
(0, l.each)(["MSPointerDown", "MSPointerMove", "MSPointerUp", "MSPointerCancel", "MSPointerOver", "MSPointerOut", "mouseenter", "mouseleave", "pointerdown", "pointermove", "pointerup", "pointercancel", "pointerover", "pointerout", "pointerenter", "pointerleave"], (function() {
a.default.event.fixHooks[this] = {
filter: function(e, t) {
var n = t.pointerType;
return (0, o.isNumeric)(n) && (e.pointerType = p[n]), e
},
props: a.default.event.mouseHooks.props.concat(["pointerId", "pointerType", "originalTarget", "width", "height", "pressure", "result", "tiltX", "charCode", "tiltY", "detail", "isPrimary", "prevValue"])
}
})), (0, l.each)(["touchstart", "touchmove", "touchend", "touchcancel"], (function() {
a.default.event.fixHooks[this] = {
filter: function(e, t) {
return (0, d.default)((function(n, a) {
e[n] = a(t)
})), e
},
props: a.default.event.mouseHooks.props.concat(["touches", "changedTouches", "targetTouches", "detail", "result", "originalTarget", "charCode", "prevValue"])
}
})), a.default.event.fixHooks.wheel = a.default.event.mouseHooks;
var h = {
props: a.default.event.mouseHooks.props.concat(["pointerType", "pointerId", "pointers"])
};
c.default.callbacks.add((function(e) {
a.default.event.fixHooks[e] = h
})), (0, s.setEventFixMethod)((function(e, t) {
for (var n = a.default.event.fixHooks[t.type] || a.default.event.mouseHooks, i = n.props ? a.default.event.props.concat(n.props) : a.default.event.props, r = i.length; r--;) {
var l = i[r];
e[l] = t[l]
}
return n.filter ? n.filter(e, t) : e
}))
} else(0, d.default)((function(e, t) {
a.default.event.addProp(e, t)
}))
},
"1/i8": function(e, t, n) {
"use strict";
t.create = l, t.enqueue = void 0;
var a, i = (a = n("zboV")) && a.__esModule ? a : {
default: a
},
r = n("3jRX");
function l(e) {
var t = [],
n = !1;
function a() {
for (; t.length;) {
n = !0;
var e = t.shift()();
if (void 0 !== e) {
if (e.then) return void(0, r.when)(e).always(a);
throw i.default.Error("E0015")
}
}
n = !1
}
return {
add: function(i, r) {
e ? (t[0] && r && r(t[0]), t = [i]) : t.push(i), n || a()
},
busy: function() {
return n
}
}
}
var o = l().add;
t.enqueue = o
},
"1BCF": function(e, t, n) {
"use strict";
t.default = void 0;
var a = m(n("IbwU")),
i = m(n("kd9r")),
r = m(n("Bh/l")),
l = n("2kme"),
o = n("Jd2B"),
s = n("N8pe"),
c = n("e95e"),
d = n("8FcI"),
u = n("d6L1"),
p = n("02tM"),
h = n("wwx0");
function m(e) {
return e && e.__esModule ? e : {
default: e
}
}
function f(e, t, n) {
e = "role" === e || "id" === e ? e : "aria-".concat(e), t = (0, h.isDefined)(t) ? t.toString() : null, n.attr(e, t)
}
n("5JJw"), n("acpy"), n("xphG");
var g = r.default.inherit({
_feedbackHideTimeout: 400,
_feedbackShowTimeout: 30,
_supportedKeys: function() {
return {}
},
_getDefaultOptions: function() {
return (0, c.extend)(this.callBase(), {
hoveredElement: null,
isActive: !1,
disabled: !1,
visible: !0,
hint: void 0,
activeStateEnabled: !1,
onContentReady: null,
hoverStateEnabled: !1,
focusStateEnabled: !1,
tabIndex: 0,
accessKey: null,
onFocusIn: null,
onFocusOut: null,
onKeyboardHandled: null,
ignoreParentReadOnly: !1
})
},
_init: function() {
this.callBase(), this._initContentReadyAction()
},
_innerWidgetOptionChanged: function(e, t) {
var n = g.getOptionsFromContainer(t);
e && e.option(n), this._options.cache(t.name, n)
},
_bindInnerWidgetOptions: function(e, t) {
var n = this,
a = function() {
return n._options.silent(t, (0, c.extend)({}, e.option()))
};
a(), e.on("optionChanged", a)
},
_getAriaTarget: function() {
return this._focusTarget()
},
_initContentReadyAction: function() {
this._contentReadyAction = this._createActionByOption("onContentReady", {
excludeValidators: ["disabled", "readOnly"]
})
},
_initMarkup: function() {
var e = this.option(),
t = e.disabled,
n = e.visible;
this.$element().addClass("dx-widget"), this._toggleDisabledState(t), this._toggleVisibility(n), this._renderHint(), this._isFocusable() && this._renderFocusTarget(), this.callBase()
},
_render: function() {
this.callBase(), this._renderContent(), this._renderFocusState(), this._attachFeedbackEvents(), this._attachHoverEvents(), this._toggleIndependentState()
},
_renderHint: function() {
var e = this.option().hint;
this.$element().attr("title", e || null)
},
_renderContent: function() {
var e = this;
(0, o.deferRender)((function() {
return e._disposed ? void 0 : e._renderContentImpl()
})).done((function() {
return e._disposed ? void 0 : e._fireContentReadyAction()
}))
},
_renderContentImpl: o.noop,
_fireContentReadyAction: (0, o.deferRenderer)((function() {
return this._contentReadyAction()
})),
_dispose: function() {
this._contentReadyAction = null, this._detachKeyboardEvents(), this.callBase()
},
_resetActiveState: function() {
this._toggleActiveState(this._eventBindingTarget(), !1)
},
_clean: function() {
this._cleanFocusState(), this._resetActiveState(), this.callBase(), this.$element().empty()
},
_toggleVisibility: function(e) {
this.$element().toggleClass("dx-state-invisible", !e), this.setAria("hidden", !e || void 0)
},
_renderFocusState: function() {
this._attachKeyboardEvents(), this._isFocusable() && (this._renderFocusTarget(), this._attachFocusEvents(), this._renderAccessKey())
},
_renderAccessKey: function() {
var e = this,
t = this._focusTarget(),
n = this.option().accessKey;
t.attr("accesskey", n), l.dxClick.off(t, {
namespace: "UIFeedback"
}), n && l.dxClick.on(t, (function(t) {
(0, p.isFakeClickEvent)(t) && (t.stopImmediatePropagation(), e.focus())
}), {
namespace: "UIFeedback"
})
},
_isFocusable: function() {
var e = this.option();
return e.focusStateEnabled && !e.disabled
},
_eventBindingTarget: function() {
return this.$element()
},
_focusTarget: function() {
return this._getActiveElement()
},
_getActiveElement: function() {
var e = this._eventBindingTarget();
return this._activeStateUnit ? e.find(this._activeStateUnit).not(".dx-state-disabled") : e
},
_renderFocusTarget: function() {
var e = this.option().tabIndex;
this._focusTarget().attr("tabIndex", e)
},
_keyboardEventBindingTarget: function() {
return this._eventBindingTarget()
},
_refreshFocusEvent: function() {
this._detachFocusEvents(), this._attachFocusEvents()
},
_focusEventTarget: function() {
return this._focusTarget()
},
_focusInHandler: function(e) {
var t = this;
e.isDefaultPrevented() || this._createActionByOption("onFocusIn", {
beforeExecute: function() {
return t._updateFocusState(e, !0)
},
excludeValidators: ["readOnly"]
})({
event: e
})
},
_focusOutHandler: function(e) {
var t = this;
e.isDefaultPrevented() || this._createActionByOption("onFocusOut", {
beforeExecute: function() {
return t._updateFocusState(e, !1)
},
excludeValidators: ["readOnly", "disabled"]
})({
event: e
})
},
_updateFocusState: function(e, t) {
var n = e.target; - 1 !== (0, u.inArray)(n, this._focusTarget()) && this._toggleFocusClass(t, (0, a.default)(n))
},
_toggleFocusClass: function(e, t) {
(t && t.length ? t : this._focusTarget()).toggleClass("dx-state-focused", e)
},
_hasFocusClass: function(e) {
return (0, a.default)(e || this._focusTarget()).hasClass("dx-state-focused")
},
_isFocused: function() {
return this._hasFocusClass()
},
_getKeyboardListeners: function() {
return []
},
_attachKeyboardEvents: function() {
var e = this;
this._detachKeyboardEvents();
var t = this.option(),
n = t.focusStateEnabled,
a = t.onKeyboardHandled,
i = this._getKeyboardListeners().length;
(n || i || a) && (this._keyboardListenerId = l.keyboard.on(this._keyboardEventBindingTarget(), this._focusTarget(), (function(t) {
return e._keyboardHandler(t)
})))
},
_keyboardHandler: function(e, t) {
if (!t) {
var n = e.originalEvent,
a = e.keyName,
i = e.which,
r = this._supportedKeys(n),
l = r[a] || r[i];
if (void 0 !== l && !l.bind(this)(n, e)) return !1
}
var o = this._getKeyboardListeners(),
s = this.option().onKeyboardHandled;
return o.forEach((function(t) {
return t && t._keyboardHandler(e)
})), s && s(e), !0
},
_refreshFocusState: function() {
this._cleanFocusState(), this._renderFocusState()
},
_cleanFocusState: function() {
this._focusTarget().removeAttr("tabIndex"), this._toggleFocusClass(!1), this._detachFocusEvents(), this._detachKeyboardEvents()
},
_detachKeyboardEvents: function() {
l.keyboard.off(this._keyboardListenerId), this._keyboardListenerId = null
},
_attachHoverEvents: function() {
var e = this,
t = this.option().hoverStateEnabled,
n = this._activeStateUnit,
r = this._eventBindingTarget();
l.hover.off(r, {
selector: n,
namespace: "UIFeedback"
}), t && l.hover.on(r, new i.default((function(t) {
var n = t.element;
e._hoverStartHandler(t.event), e.option("hoveredElement", (0, a.default)(n))
}), {
excludeValidators: ["readOnly"]
}), (function(t) {
e.option("hoveredElement", null), e._hoverEndHandler(t)
}), {
selector: n,
namespace: "UIFeedback"
})
},
_attachFeedbackEvents: function() {
var e = this,
t = this.option().activeStateEnabled,
n = this._activeStateUnit,
r = this._eventBindingTarget();
l.active.off(r, {
namespace: "UIFeedback",
selector: n
}), t && l.active.on(r, new i.default((function(t) {
var n = t.event;
return e._toggleActiveState((0, a.default)(t.element), !0, n)
})), new i.default((function(t) {
var n = t.event;
return e._toggleActiveState((0, a.default)(t.element), !1, n)
}), {
excludeValidators: ["disabled", "readOnly"]
}), {
showTimeout: this._feedbackShowTimeout,
hideTimeout: this._feedbackHideTimeout,
selector: n,
namespace: "UIFeedback"
})
},
_detachFocusEvents: function() {
var e = this._focusEventTarget();
l.focus.off(e, {
namespace: "".concat(this.NAME, "Focus")
})
},
_attachFocusEvents: function() {
var e = this,
t = this._focusEventTarget();
l.focus.on(t, (function(t) {
return e._focusInHandler(t)
}), (function(t) {
return e._focusOutHandler(t)
}), {
namespace: "".concat(this.NAME, "Focus"),
isFocusable: function(e, t) {
return (0, a.default)(t).is(d.focusable)
}
})
},
_hoverStartHandler: o.noop,
_hoverEndHandler: o.noop,
_toggleActiveState: function(e, t) {
this.option("isActive", t), e.toggleClass("dx-state-active", t)
},
_updatedHover: function() {
var e = this._options.silent("hoveredElement");
this._hover(e, e)
},
_findHoverTarget: function(e) {
return e && e.closest(this._activeStateUnit || this._eventBindingTarget())
},
_hover: function(e, t) {
var n = this.option(),
a = n.hoverStateEnabled,
i = n.disabled,
r = n.isActive;
if ((t = this._findHoverTarget(t)) && t.toggleClass("dx-state-hover", !1), e && a && !i && !r) {
var l = this._findHoverTarget(e);
l && l.toggleClass("dx-state-hover", !0)
}
},
_toggleDisabledState: function(e) {
this.$element().toggleClass("dx-state-disabled", Boolean(e)), this.setAria("disabled", e || void 0)
},
_toggleIndependentState: function() {
this.$element().toggleClass("dx-state-independent", this.option("ignoreParentReadOnly"))
},
_setWidgetOption: function(e, t) {
var n = this;
if (this[e])
if ((0, h.isPlainObject)(t[0]))(0, s.each)(t[0], (function(t, a) {
return n._setWidgetOption(e, [t, a])
}));
else {
var a = t[0],
i = t[1];
1 === t.length && (i = this.option(a));
var r = this["".concat(e, "OptionMap")];
this[e].option(r ? r(a) : a, i)
}
},
_optionChanged: function(e) {
var t = e.value,
n = e.previousValue;
switch (e.name) {
case "disabled":
this._toggleDisabledState(t), this._updatedHover(), this._refreshFocusState();
break;
case "hint":
this._renderHint();
break;
case "ignoreParentReadOnly":
this._toggleIndependentState();
break;
case "activeStateEnabled":
this._attachFeedbackEvents();
break;
case "hoverStateEnabled":
this._attachHoverEvents(), this._updatedHover();
break;
case "tabIndex":
case "focusStateEnabled":
this._refreshFocusState();
break;
case "onFocusIn":
case "onFocusOut":
break;
case "accessKey":
this._renderAccessKey();
break;
case "hoveredElement":
this._hover(t, n);
break;
case "isActive":
this._updatedHover();
break;
case "visible":
this._toggleVisibility(t), this._isVisibilityChangeSupported() && this._checkVisibilityChanged(t ? "shown" : "hiding");
break;
case "onKeyboardHandled":
this._attachKeyboardEvents();
break;
case "onContentReady":
this._initContentReadyAction();
break;
default:
this.callBase(e)
}
},
_isVisible: function() {
var e = this.option().visible;
return this.callBase() && e
},
beginUpdate: function() {
this._ready(!1), this.callBase()
},
endUpdate: function() {
this.callBase(), this._initialized && this._ready(!0)
},
_ready: function(e) {
if (0 === arguments.length) return this._isReady;
this._isReady = e
},
setAria: function() {
if ((0, h.isPlainObject)(arguments.length <= 0 ? void 0 : arguments[0])) {
var e = (arguments.length <= 1 ? void 0 : arguments[1]) || this._getAriaTarget();
(0, s.each)(arguments.length <= 0 ? void 0 : arguments[0], (function(t, n) {
return f(t, n, e)
}))
} else f(arguments.length <= 0 ? void 0 : arguments[0], arguments.length <= 1 ? void 0 : arguments[1], (arguments.length <= 2 ? void 0 : arguments[2]) || this._getAriaTarget())
},
isReady: function() {
return this._ready()
},
repaint: function() {
this._refresh()
},
focus: function() {
l.focus.trigger(this._focusTarget())
},
registerKeyHandler: function(e, t) {
var n = this._supportedKeys();
this._supportedKeys = function() {
return (0, c.extend)(n, function(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e
}({}, e, t))
}
}
});
g.getOptionsFromContainer = function(e) {
var t = e.fullName,
n = e.value,
a = {};
return e.name === t ? a = n : a[t.split(".").pop()] = n, a
}, t.default = g, e.exports = t.default
},
"1EDM": function(e, t, n) {
var a = n("EI7Z"),
i = n("CEyS"),
r = n("i7nn"),
l = n("Ypsa");
e.exports = function(e) {
return r(e) ? a(l(e)) : i(e)
}
},
"1IGy": function(e, t, n) {
"use strict";
t.default = void 0;
var a, i = (a = n("+Dzz")) && a.__esModule ? a : {
default: a
};
var r = function() {
function e(t) {
! function(e, t) {
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
}(this, e), this._options = t, this._itemsRunTimeInfo = this._options.itemsRunTimeInfo
}
var t;
return (t = [{
key: "findInstance",
value: function() {
return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)
}
}, {
key: "findItemContainer",
value: function() {
return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)
}
}, {
key: "tryExecute",
value: function() {
i.default.abstract()
}
}]) && function(e, t) {
for (var n = 0; n < t.length; n++) {
var a = t[n];
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a)
}
}(e.prototype, t), e
}();
t.default = r, e.exports = t.default
},
"1KVU": function(e, t, n) {
! function(e) {
"use strict";
e.defineLocale("mt", {
months: "Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),
monthsShort: "Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),
weekdays: "Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),
weekdaysShort: "\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),
weekdaysMin: "\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),
longDateFormat: {
LT: "HH:mm",
LTS: "HH:mm:ss",
L: "DD/MM/YYYY",
LL: "D MMMM YYYY",
LLL: "D MMMM YYYY HH:mm",
LLLL: "dddd, D MMMM YYYY HH:mm"
},
calendar: {
sameDay: "[Illum fil-]LT",
nextDay: "[G\u0127ada fil-]LT",
nextWeek: "dddd [fil-]LT",
lastDay: "[Il-biera\u0127 fil-]LT",
lastWeek: "dddd [li g\u0127adda] [fil-]LT",
sameElse: "L"
},
relativeTime: {
future: "f\u2019 %s",
past: "%s ilu",
s: "ftit sekondi",
ss: "%d sekondi",
m: "minuta",
mm: "%d minuti",
h: "sieg\u0127a",
hh: "%d sieg\u0127at",
d: "\u0121urnata",
dd: "%d \u0121ranet",
M: "xahar",
MM: "%d xhur",
y: "sena",
yy: "%d sni"
},
dayOfMonthOrdinalParse: /\d{1,2}\xba/,
ordinal: "%d\xba",
week: {
dow: 1,
doy: 4
}
})
}(n("wgY5"))
},
"1MAX": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return h
}));
var a = n("IdLP"),
i = n("dUuy"),
r = n("8V6W"),
l = n("qhtU"),
o = n("wIzt"),
s = n("eY+9"),
c = n("/vgl"),
d = n("X0qr"),
u = n("sWLk"),
p = n("qEfY");
const h = e => {
if (e instanceof a.a) return t => e._isScalar ? (t.next(e.value), void t.complete()) : e.subscribe(t);
if (e && "function" == typeof e[p.a]) return Object(o.a)(e);
if (Object(s.a)(e)) return Object(i.a)(e);
if (Object(c.a)(e)) return Object(r.a)(e);
if (e && "function" == typeof e[u.a]) return Object(l.a)(e); {
const t = Object(d.a)(e) ? "an invalid object" : `'${e}'`;
throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)
}
}
},
"1Ruj": function(e, t, n) {
"use strict";
t.parseTranslate = t.resetPosition = t.move = t.getTranslate = t.getTranslateCss = t.clearCache = t.locate = void 0;
var a = n("V8yU"),
i = n("wwx0"),
r = /matrix(3d)?\((.+?)\)/,
l = /translate(?:3d)?\((.+?)\)/;
function o(e) {
return "string" === (0, i.type)(e) && "%" === e[e.length - 1]
}
function s(e, t) {
e.length && (0, a.data)(e.get(0), "dxTranslator", t)
}
t.locate = function(e) {
var t = u(e);
return {
left: t.x,
top: t.y
}
};
var c = function(e) {
e.length && (0, a.removeData)(e.get(0), "dxTranslator")
};
t.clearCache = c;
var d = function(e) {
return e.x = e.x || 0, e.y = e.y || 0, "translate(" + (o(e.x) ? e.x : e.x + "px") + ", " + (o(e.y) ? e.y : e.y + "px") + ")"
};
t.getTranslateCss = d;
var u = function(e) {
var t = e.length ? (0, a.data)(e.get(0), "dxTranslator") : null;
if (!t) {
var n = (e.css("transform") || d({
x: 0,
y: 0
})).match(r),
i = n && n[1];
n ? (n = n[2].split(","), "3d" === i ? n = n.slice(12, 15) : (n.push(0), n = n.slice(4, 7))) : n = [0, 0, 0], s(e, t = {
x: parseFloat(n[0]),
y: parseFloat(n[1]),
z: parseFloat(n[2])
})
}
return t
};
t.getTranslate = u, t.move = function(e, t) {
var n, a = t.left,
i = t.top;
void 0 === a ? (n = u(e)).y = i || 0 : void 0 === i ? (n = u(e)).x = a || 0 : s(e, n = {
x: a || 0,
y: i || 0,
z: 0
}), e.css({
transform: d(n)
}), (o(a) || o(i)) && c(e)
}, t.resetPosition = function(e, t) {
var n, a = {
left: 0,
top: 0,
transform: "none"
};
t && (n = e.css("transition"), a.transition = "none"), e.css(a), c(e), t && (e.get(0), e.css("transition", n))
}, t.parseTranslate = function(e) {
var t = e.match(l);
if (t && t[1]) return t = t[1].split(","), {
x: parseFloat(t[0]),
y: parseFloat(t[1]),
z: parseFloat(t[2])
}
}
},
"1VvW": function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return He
})), n.d(t, "b", (function() {
return rn
})), n.d(t, "c", (function() {
return xe
})), n.d(t, "d", (function() {
return U
})), n.d(t, "e", (function() {
return V
})), n.d(t, "f", (function() {
return dn
})), n.d(t, "g", (function() {
return cn
})), n.d(t, "h", (function() {
return sn
})), n.d(t, "i", (function() {
return hn
})), n.d(t, "j", (function() {
return Fn
})), n.d(t, "k", (function() {
return zt
})), n.d(t, "l", (function() {
return G
})), n.d(t, "m", (function() {
return Wt
})), n.d(t, "n", (function() {
return en
})), n.d(t, "o", (function() {
return tn
})), n.d(t, "p", (function() {
return vn
})), n.d(t, "q", (function() {
return ln
})), n.d(t, "r", (function() {
return un
})), n.d(t, "s", (function() {
return $t
})), n.d(t, "t", (function() {
return ye
})), n.d(t, "u", (function() {
return mn
})), n.d(t, "v", (function() {
return gn
})), n.d(t, "w", (function() {
return bn
})), n.d(t, "x", (function() {
return _n
})), n.d(t, "y", (function() {
return Dn
})), n.d(t, "z", (function() {
return yn
})), n.d(t, "A", (function() {
return xn
})), n.d(t, "B", (function() {
return An
})), n.d(t, "C", (function() {
return Pn
})), n.d(t, "D", (function() {
return Sn
})), n.d(t, "E", (function() {
return ee
})), n.d(t, "F", (function() {
return pn
}));
var a = n("An66"),
i = n("kZht"),
r = n("ROBh"),
l = n("GoAz"),
o = n("C05f"),
s = n("IdLP"),
c = n("VxHp"),
d = n("HM3f"),
u = n("6Oco");
function p(e) {
return new s.a(t => {
let n;
try {
n = e()
} catch (a) {
return void t.error(a)
}
return (n ? Object(l.a)(n) : Object(u.b)()).subscribe(t)
})
}
var h = n("ZTXN"),
m = n("YtkY"),
f = n("mawV"),
g = n("xVbo"),
v = n("A8kH"),
b = n("fbWu"),
_ = n("iqFP"),
D = n("5E2i");
function C(e, t) {
const n = arguments.length >= 2;
return a => a.pipe(e ? Object(g.a)((t, n) => e(t, n, a)) : D.a, Object(v.a)(1), n ? Object(_.a)(t) : Object(b.a)(() => new c.a))
}
var y = n("4e/d"),
x = n("jOdJ"),
A = n("cJ9h"),
P = n("5uGe");
class S {
constructor(e, t, n) {
this.predicate = e, this.thisArg = t, this.source = n
}
call(e, t) {
return t.subscribe(new F(e, this.predicate, this.thisArg, this.source))
}
}
class F extends P.a {
constructor(e, t, n, a) {
super(e), this.predicate = t, this.thisArg = n, this.source = a, this.index = 0, this.thisArg = n || this
}
notifyComplete(e) {
this.destination.next(e), this.destination.complete()
}
_next(e) {
let t = !1;
try {
t = this.predicate.call(this.thisArg, e, this.index++, this.source)
} catch (n) {
return void this.destination.error(n)
}
t || this.notifyComplete(!1)
}
_complete() {
this.notifyComplete(!0)
}
}
var O = n("TLy2"),
w = n("J+dc"),
E = n("jIqt"),
T = n("SrNW"),
I = n("5uDM"),
R = n("0iRq"),
M = n("8j5Y"),
k = n("ruxD"),
N = n("3lSR");
class L {
constructor(e, t) {
this.id = e, this.url = t
}
}
class V extends L {
constructor(e, t, n = "imperative", a = null) {
super(e, t), this.navigationTrigger = n, this.restoredState = a
}
toString() {
return `NavigationStart(id: ${this.id}, url: '${this.url}')`
}
}
class U extends L {
constructor(e, t, n) {
super(e, t), this.urlAfterRedirects = n
}
toString() {
return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`
}
}
class B extends L {
constructor(e, t, n) {
super(e, t), this.reason = n
}
toString() {
return `NavigationCancel(id: ${this.id}, url: '${this.url}')`
}
}
class q extends L {
constructor(e, t, n) {
super(e, t), this.error = n
}
toString() {
return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`
}
}
class j extends L {
constructor(e, t, n, a) {
super(e, t), this.urlAfterRedirects = n, this.state = a
}
toString() {
return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`
}
}
class Y extends L {
constructor(e, t, n, a) {
super(e, t), this.urlAfterRedirects = n, this.state = a
}
toString() {
return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`
}
}
class H extends L {
constructor(e, t, n, a, i) {
super(e, t), this.urlAfterRedirects = n, this.state = a, this.shouldActivate = i
}
toString() {
return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`
}
}
class W extends L {
constructor(e, t, n, a) {
super(e, t), this.urlAfterRedirects = n, this.state = a
}
toString() {
return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`
}
}
class G extends L {
constructor(e, t, n, a) {
super(e, t), this.urlAfterRedirects = n, this.state = a
}
toString() {
return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`
}
}
class z {
constructor(e) {
this.route = e
}
toString() {
return `RouteConfigLoadStart(path: ${this.route.path})`
}
}
class K {
constructor(e) {
this.route = e
}
toString() {
return `RouteConfigLoadEnd(path: ${this.route.path})`
}
}
class $ {
constructor(e) {
this.snapshot = e
}
toString() {
return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`
}
}
class Z {
constructor(e) {
this.snapshot = e
}
toString() {
return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`
}
}
class J {
constructor(e) {
this.snapshot = e
}
toString() {
return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`
}
}
class Q {
constructor(e) {
this.snapshot = e
}
toString() {
return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`
}
}
class X {
constructor(e, t, n) {
this.routerEvent = e, this.position = t, this.anchor = n
}
toString() {
return `Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`
}
}
class ee {}
class te {
constructor(e) {
this.params = e || {}
}
has(e) {
return this.params.hasOwnProperty(e)
}
get(e) {
if (this.has(e)) {
const t = this.params[e];
return Array.isArray(t) ? t[0] : t
}
return null
}
getAll(e) {
if (this.has(e)) {
const t = this.params[e];
return Array.isArray(t) ? t : [t]
}
return []
}
get keys() {
return Object.keys(this.params)
}
}
function ne(e) {
return new te(e)
}
function ae(e) {
const t = Error("NavigationCancelingError: " + e);
return t.ngNavigationCancelingError = !0, t
}
function ie(e, t, n) {
const a = n.path.split("/");
if (a.length > e.length) return null;
if ("full" === n.pathMatch && (t.hasChildren() || a.length < e.length)) return null;
const i = {};
for (let r = 0; r < a.length; r++) {
const t = a[r],
n = e[r];
if (t.startsWith(":")) i[t.substring(1)] = n;
else if (t !== n.path) return null
}
return {
consumed: e.slice(0, a.length),
posParams: i
}
}
class re {
constructor(e, t) {
this.routes = e, this.module = t
}
}
function le(e, t = "") {
for (let n = 0; n < e.length; n++) {
const a = e[n];
oe(a, se(t, a))
}
}
function oe(e, t) {
if (!e) throw new Error(`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);
if (Array.isArray(e)) throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);
if (!e.component && !e.children && !e.loadChildren && e.outlet && "primary" !== e.outlet) throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);
if (e.redirectTo && e.children) throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together);
if (e.redirectTo && e.loadChildren) throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);
if (e.children && e.loadChildren) throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);
if (e.redirectTo && e.component) throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);
if (e.path && e.matcher) throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);
if (void 0 === e.redirectTo && !e.component && !e.children && !e.loadChildren) throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);
if (void 0 === e.path && void 0 === e.matcher) throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);
if ("string" == typeof e.path && "/" === e.path.charAt(0)) throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);
if ("" === e.path && void 0 !== e.redirectTo && void 0 === e.pathMatch) throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);
if (void 0 !== e.pathMatch && "full" !== e.pathMatch && "prefix" !== e.pathMatch) throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);
e.children && le(e.children, t)
}
function se(e, t) {
return t ? e || t.path ? e && !t.path ? e + "/" : !e && t.path ? t.path : `${e}/${t.path}` : "" : e
}
function ce(e) {
const t = e.children && e.children.map(ce),
n = t ? Object.assign(Object.assign({}, e), {
children: t
}) : Object.assign({}, e);
return !n.component && (t || n.loadChildren) && n.outlet && "primary" !== n.outlet && (n.component = ee), n
}
function de(e, t) {
const n = Object.keys(e),
a = Object.keys(t);
if (!n || !a || n.length != a.length) return !1;
let i;
for (let r = 0; r < n.length; r++)
if (i = n[r], !ue(e[i], t[i])) return !1;
return !0
}
function ue(e, t) {
return Array.isArray(e) && Array.isArray(t) ? e.length == t.length && e.every(e => t.indexOf(e) > -1) : e === t
}
function pe(e) {
return Array.prototype.concat.apply([], e)
}
function he(e) {
return e.length > 0 ? e[e.length - 1] : null
}
function me(e, t) {
for (const n in e) e.hasOwnProperty(n) && t(e[n], n)
}
function fe(e) {
return Object(i["\u0275isObservable"])(e) ? e : Object(i["\u0275isPromise"])(e) ? Object(l.a)(Promise.resolve(e)) : Object(r.a)(e)
}
function ge(e, t, n) {
return n ? function(e, t) {
return de(e, t)
}(e.queryParams, t.queryParams) && function e(t, n) {
if (!De(t.segments, n.segments)) return !1;
if (t.numberOfChildren !== n.numberOfChildren) return !1;
for (const a in n.children) {
if (!t.children[a]) return !1;
if (!e(t.children[a], n.children[a])) return !1
}
return !0
}(e.root, t.root) : function(e, t) {
return Object.keys(t).length <= Object.keys(e).length && Object.keys(t).every(n => ue(e[n], t[n]))
}(e.queryParams, t.queryParams) && function e(t, n) {
return function t(n, a, i) {
if (n.segments.length > i.length) return !!De(n.segments.slice(0, i.length), i) && !a.hasChildren();
if (n.segments.length === i.length) {
if (!De(n.segments, i)) return !1;
for (const t in a.children) {
if (!n.children[t]) return !1;
if (!e(n.children[t], a.children[t])) return !1
}
return !0
} {
const e = i.slice(0, n.segments.length),
r = i.slice(n.segments.length);
return !!De(n.segments, e) && !!n.children.primary && t(n.children.primary, a, r)
}
}(t, n, n.segments)
}(e.root, t.root)
}
class ve {
constructor(e, t, n) {
this.root = e, this.queryParams = t, this.fragment = n
}
get queryParamMap() {
return this._queryParamMap || (this._queryParamMap = ne(this.queryParams)), this._queryParamMap
}
toString() {
return Ae.serialize(this)
}
}
class be {
constructor(e, t) {
this.segments = e, this.children = t, this.parent = null, me(t, (e, t) => e.parent = this)
}
hasChildren() {
return this.numberOfChildren > 0
}
get numberOfChildren() {
return Object.keys(this.children).length
}
toString() {
return Pe(this)
}
}
class _e {
constructor(e, t) {
this.path = e, this.parameters = t
}
get parameterMap() {
return this._parameterMap || (this._parameterMap = ne(this.parameters)), this._parameterMap
}
toString() {
return Te(this)
}
}
function De(e, t) {
return e.length === t.length && e.every((e, n) => e.path === t[n].path)
}
function Ce(e, t) {
let n = [];
return me(e.children, (e, a) => {
"primary" === a && (n = n.concat(t(e, a)))
}), me(e.children, (e, a) => {
"primary" !== a && (n = n.concat(t(e, a)))
}), n
}
class ye {}
class xe {
parse(e) {
const t = new Ne(e);
return new ve(t.parseRootSegment(), t.parseQueryParams(), t.parseFragment())
}
serialize(e) {
return `${"/"+function e(t,n){if(!t.hasChildren())return Pe(t);if(n){const n=t.children.primary?e(t.children.primary,!1):"",a=[];return me(t.children,(t,n)=>{"primary"!==n&&a.push(`${n}:${e(t,!1)}`)}),a.length>0?`
$ {
n
}($ {
a.join("//")
})`:n}{const n=Ce(t,(n,a)=>"primary"===a?[e(t.children.primary,!1)]:[`
$ {
a
}: $ {
e(n, !1)
}
`]);return`
$ {
Pe(t)
}
/(${n.join("/ / ")})`}}(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Fe(t)}=${Fe(e)}`).join(" & "):`${Fe(t)}=${Fe(n)}`});return t.length?" ? "+t.join(" & "):"
"}(e.queryParams)}${"
string "==typeof e.fragment?"
# "+encodeURI(e.fragment):"
"}`}}const Ae=new xe;function Pe(e){return e.segments.map(e=>Te(e)).join(" / ")}function Se(e){return encodeURIComponent(e).replace(/%40/g,"
@ ").replace(/%3A/gi,": ").replace(/%24/g,"
$ ").replace(/%2C/gi,", ")}function Fe(e){return Se(e).replace(/%3B/gi,";
")}function Oe(e){return Se(e).replace(/\(/g," % 28 ").replace(/\)/g," % 29 ").replace(/%26/gi," & ")}function we(e){return decodeURIComponent(e)}function Ee(e){return we(e.replace(/\+/g," % 20 "))}function Te(e){return`${Oe(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Oe(e)}=${Oe(t[e])}`).join("
")}`;var t}const Ie=/^[^\/()?;=#]+/;function Re(e){const t=e.match(Ie);return t?t[0]:"
"}const Me=/^[^=?&#]+/,ke=/^[^?&#]+/;class Ne{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional(" / "),"
"===this.remaining||this.peekStartsWith(" ? ")||this.peekStartsWith("
# ")?new be([],{}):new be([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional(" ? "))do{this.parseQueryParam(e)}while(this.consumeOptional(" & "));return e}parseFragment(){return this.consumeOptional("
# ")?decodeURIComponent(this.remaining):null}parseChildren(){if("
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment