/*! For license information please see main.js.LICENSE.txt */
!function(e) {
var t = {};
function n(r) {
if (t[r])
return t[r].exports;
var i = t[r] = {
i: r,
l: !1,
exports: {}
};
return e[r].call(i.exports, i, i.exports, n),
i.l = !0,
i.exports
}
n.m = e,
n.c = t,
n.d = function(e, t, r) {
n.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: r
})
}
,
n.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}),
Object.defineProperty(e, "__esModule", {
value: !0
})
}
,
n.t = function(e, t) {
if (1 & t && (e = n(e)),
8 & t)
return e;
if (4 & t && "object" == typeof e && e && e.__esModule)
return e;
var r = Object.create(null);
if (n.r(r),
Object.defineProperty(r, "default", {
enumerable: !0,
value: e
}),
2 & t && "string" != typeof e)
for (var i in e)
n.d(r, i, function(t) {
return e[t]
}
.bind(null, i));
return r
}
,
n.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
}
: function() {
return e
}
;
return n.d(t, "a", t),
t
}
,
n.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
,
n.p = "https://cdnjs.appcheap.io/5.3.0/",
n(n.s = 547)
}([function(e, t, n) {
"use strict";
e.exports = n(452)
}
, function(e, t, n) {
"use strict";
e.exports = n(354)
}
, function(e, t, n) {
"use strict";
n.d(t, "c", (function() {
return i
}
)),
n.d(t, "a", (function() {
return o
}
)),
n.d(t, "d", (function() {
return a
}
)),
n.d(t, "b", (function() {
return l
}
)),
n.d(t, "f", (function() {
return s
}
)),
n.d(t, "e", (function() {
return c
}
));
var r = function(e, t) {
return r = Object.setPrototypeOf || {
__proto__: []
}instanceof Array && function(e, t) {
e.__proto__ = t
}
|| function(e, t) {
for (var n in t)
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}
,
r(e, t)
};
function i(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
function n() {
this.constructor = e
}
r(e, t),
e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
new n)
}
var o = function() {
return o = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
o.apply(this, arguments)
};
function a(e, t) {
var n = {};
for (var r in e)
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
var i = 0;
for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
}
return n
}
function l(e, t, n, r) {
var i, o = arguments.length, a = o < 3 ? t : null === r ? r = Object.getOwnPropertyDescriptor(t, n) : r;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate)
a = Reflect.decorate(e, t, n, r);
else
for (var l = e.length - 1; l >= 0; l--)
(i = e[l]) && (a = (o < 3 ? i(a) : o > 3 ? i(t, n, a) : i(t, n)) || a);
return o > 3 && a && Object.defineProperty(t, n, a),
a
}
function s() {
for (var e = 0, t = 0, n = arguments.length; t < n; t++)
e += arguments[t].length;
var r = Array(e)
, i = 0;
for (t = 0; t < n; t++)
for (var o = arguments[t], a = 0, l = o.length; a < l; a++,
i++)
r[i] = o[a];
return r
}
function c(e, t, n) {
if (n || 2 === arguments.length)
for (var r, i = 0, o = t.length; i < o; i++)
!r && i in t || (r || (r = Array.prototype.slice.call(t, 0, i)),
r[i] = t[i]);
return e.concat(r || Array.prototype.slice.call(t))
}
Object.create,
Object.create
}
, function(e, t, n) {
var r = n(154);
e.exports = function(e, t, n) {
var i = null == e ? void 0 : r(e, t);
return void 0 === i ? n : i
}
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "a", (function() {
return ze
}
)),
n.d(t, "c", (function() {
return De
}
));
var r = n(100)
, i = n(1)
, o = n.n(i)
, a = n(288)
, l = n.n(a)
, s = n(289)
, c = n(290)
, u = n(219)
, d = n(89)
, p = n.n(d);
function h() {
return (h = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
).apply(this, arguments)
}
var f = function(e, t) {
for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1)
n.push(t[r], e[r + 1]);
return n
}
, b = function(e) {
return null !== e && "object" == typeof e && "[object Object]" === (e.toString ? e.toString() : Object.prototype.toString.call(e)) && !Object(r.typeOf)(e)
}
, g = Object.freeze([])
, m = Object.freeze({});
function v(e) {
return "function" == typeof e
}
function y(e) {
return e.displayName || e.name || "Component"
}
function x(e) {
return e && "string" == typeof e.styledComponentId
}
var O = void 0 !== e && (Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).REACT_APP_SC_ATTR || Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).SC_ATTR) || "data-styled"
, j = "undefined" != typeof window && "HTMLElement"in window
, k = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : void 0 !== e && void 0 !== Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).REACT_APP_SC_DISABLE_SPEEDY && "" !== Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).REACT_APP_SC_DISABLE_SPEEDY ? "false" !== Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).REACT_APP_SC_DISABLE_SPEEDY && Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).REACT_APP_SC_DISABLE_SPEEDY : void 0 !== e && void 0 !== Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).SC_DISABLE_SPEEDY && "" !== Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).SC_DISABLE_SPEEDY && "false" !== Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).SC_DISABLE_SPEEDY && Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
}).SC_DISABLE_SPEEDY)
, w = {};
function C(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
throw new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : ""))
}
var _ = function() {
function e(e) {
this.groupSizes = new Uint32Array(512),
this.length = 512,
this.tag = e
}
var t = e.prototype;
return t.indexOfGroup = function(e) {
for (var t = 0, n = 0; n < e; n++)
t += this.groupSizes[n];
return t
}
,
t.insertRules = function(e, t) {
if (e >= this.groupSizes.length) {
for (var n = this.groupSizes, r = n.length, i = r; e >= i; )
(i <<= 1) < 0 && C(16, "" + e);
this.groupSizes = new Uint32Array(i),
this.groupSizes.set(n),
this.length = i;
for (var o = r; o < i; o++)
this.groupSizes[o] = 0
}
for (var a = this.indexOfGroup(e + 1), l = 0, s = t.length; l < s; l++)
this.tag.insertRule(a, t[l]) && (this.groupSizes[e]++,
a++)
}
,
t.clearGroup = function(e) {
if (e < this.length) {
var t = this.groupSizes[e]
, n = this.indexOfGroup(e)
, r = n + t;
this.groupSizes[e] = 0;
for (var i = n; i < r; i++)
this.tag.deleteRule(n)
}
}
,
t.getGroup = function(e) {
var t = "";
if (e >= this.length || 0 === this.groupSizes[e])
return t;
for (var n = this.groupSizes[e], r = this.indexOfGroup(e), i = r + n, o = r; o < i; o++)
t += this.tag.getRule(o) + "/*!sc*/\n";
return t
}
,
e
}()
, M = new Map
, S = new Map
, A = 1
, T = function(e) {
if (M.has(e))
return M.get(e);
for (; S.has(A); )
A++;
var t = A++;
return M.set(e, t),
S.set(t, e),
t
}
, E = function(e) {
return S.get(e)
}
, I = function(e, t) {
t >= A && (A = t + 1),
M.set(e, t),
S.set(t, e)
}
, N = "style[" + O + '][data-styled-version="5.3.3"]'
, z = new RegExp("^" + O + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')
, D = function(e, t, n) {
for (var r, i = n.split(","), o = 0, a = i.length; o < a; o++)
(r = i[o]) && e.registerName(t, r)
}
, L = function(e, t) {
for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], i = 0, o = n.length; i < o; i++) {
var a = n[i].trim();
if (a) {
var l = a.match(z);
if (l) {
var s = 0 | parseInt(l[1], 10)
, c = l[2];
0 !== s && (I(c, s),
D(e, c, l[3]),
e.getTag().insertRules(s, r)),
r.length = 0
} else
r.push(a)
}
}
}
, R = function() {
return "undefined" != typeof window && void 0 !== window.__webpack_nonce__ ? window.__webpack_nonce__ : null
}
, P = function(e) {
var t = document.head
, n = e || t
, r = document.createElement("style")
, i = function(e) {
for (var t = e.childNodes, n = t.length; n >= 0; n--) {
var r = t[n];
if (r && 1 === r.nodeType && r.hasAttribute(O))
return r
}
}(n)
, o = void 0 !== i ? i.nextSibling : null;
r.setAttribute(O, "active"),
r.setAttribute("data-styled-version", "5.3.3");
var a = R();
return a && r.setAttribute("nonce", a),
n.insertBefore(r, o),
r
}
, B = function() {
function e(e) {
var t = this.element = P(e);
t.appendChild(document.createTextNode("")),
this.sheet = function(e) {
if (e.sheet)
return e.sheet;
for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
var i = t[n];
if (i.ownerNode === e)
return i
}
C(17)
}(t),
this.length = 0
}
var t = e.prototype;
return t.insertRule = function(e, t) {
try {
return this.sheet.insertRule(t, e),
this.length++,
!0
} catch (e) {
return !1
}
}
,
t.deleteRule = function(e) {
this.sheet.deleteRule(e),
this.length--
}
,
t.getRule = function(e) {
var t = this.sheet.cssRules[e];
return void 0 !== t && "string" == typeof t.cssText ? t.cssText : ""
}
,
e
}()
, F = function() {
function e(e) {
var t = this.element = P(e);
this.nodes = t.childNodes,
this.length = 0
}
var t = e.prototype;
return t.insertRule = function(e, t) {
if (e <= this.length && e >= 0) {
var n = document.createTextNode(t)
, r = this.nodes[e];
return this.element.insertBefore(n, r || null),
this.length++,
!0
}
return !1
}
,
t.deleteRule = function(e) {
this.element.removeChild(this.nodes[e]),
this.length--
}
,
t.getRule = function(e) {
return e < this.length ? this.nodes[e].textContent : ""
}
,
e
}()
, V = function() {
function e(e) {
this.rules = [],
this.length = 0
}
var t = e.prototype;
return t.insertRule = function(e, t) {
return e <= this.length && (this.rules.splice(e, 0, t),
this.length++,
!0)
}
,
t.deleteRule = function(e) {
this.rules.splice(e, 1),
this.length--
}
,
t.getRule = function(e) {
return e < this.length ? this.rules[e] : ""
}
,
e
}()
, W = j
, q = {
isServer: !j,
useCSSOMInjection: !k
}
, H = function() {
function e(e, t, n) {
void 0 === e && (e = m),
void 0 === t && (t = {}),
this.options = h({}, q, {}, e),
this.gs = t,
this.names = new Map(n),
this.server = !!e.isServer,
!this.server && j && W && (W = !1,
function(e) {
for (var t = document.querySelectorAll(N), n = 0, r = t.length; n < r; n++) {
var i = t[n];
i && "active" !== i.getAttribute(O) && (L(e, i),
i.parentNode && i.parentNode.removeChild(i))
}
}(this))
}
e.registerId = function(e) {
return T(e)
}
;
var t = e.prototype;
return t.reconstructWithOptions = function(t, n) {
return void 0 === n && (n = !0),
new e(h({}, this.options, {}, t),this.gs,n && this.names || void 0)
}
,
t.allocateGSInstance = function(e) {
return this.gs[e] = (this.gs[e] || 0) + 1
}
,
t.getTag = function() {
return this.tag || (this.tag = (n = (t = this.options).isServer,
r = t.useCSSOMInjection,
i = t.target,
e = n ? new V(i) : r ? new B(i) : new F(i),
new _(e)));
var e, t, n, r, i
}
,
t.hasNameForId = function(e, t) {
return this.names.has(e) && this.names.get(e).has(t)
}
,
t.registerName = function(e, t) {
if (T(e),
this.names.has(e))
this.names.get(e).add(t);
else {
var n = new Set;
n.add(t),
this.names.set(e, n)
}
}
,
t.insertRules = function(e, t, n) {
this.registerName(e, t),
this.getTag().insertRules(T(e), n)
}
,
t.clearNames = function(e) {
this.names.has(e) && this.names.get(e).clear()
}
,
t.clearRules = function(e) {
this.getTag().clearGroup(T(e)),
this.clearNames(e)
}
,
t.clearTag = function() {
this.tag = void 0
}
,
t.toString = function() {
return function(e) {
for (var t = e.getTag(), n = t.length, r = "", i = 0; i < n; i++) {
var o = E(i);
if (void 0 !== o) {
var a = e.names.get(o)
, l = t.getGroup(i);
if (a && l && a.size) {
var s = O + ".g" + i + '[id="' + o + '"]'
, c = "";
void 0 !== a && a.forEach((function(e) {
e.length > 0 && (c += e + ",")
}
)),
r += "" + l + s + '{content:"' + c + '"}/*!sc*/\n'
}
}
}
return r
}(this)
}
,
e
}()
, U = /(a)(d)/gi
, X = function(e) {
return String.fromCharCode(e + (e > 25 ? 39 : 97))
};
function G(e) {
var t, n = "";
for (t = Math.abs(e); t > 52; t = t / 52 | 0)
n = X(t % 52) + n;
return (X(t % 52) + n).replace(U, "$1-$2")
}
var K = function(e, t) {
for (var n = t.length; n; )
e = 33 * e ^ t.charCodeAt(--n);
return e
}
, Y = function(e) {
return K(5381, e)
};
function Q(e) {
for (var t = 0; t < e.length; t += 1) {
var n = e[t];
if (v(n) && !x(n))
return !1
}
return !0
}
var J = Y("5.3.3")
, Z = function() {
function e(e, t, n) {
this.rules = e,
this.staticRulesId = "",
this.isStatic = (void 0 === n || n.isStatic) && Q(e),
this.componentId = t,
this.baseHash = K(J, t),
this.baseStyle = n,
H.registerId(t)
}
return e.prototype.generateAndInjectStyles = function(e, t, n) {
var r = this.componentId
, i = [];
if (this.baseStyle && i.push(this.baseStyle.generateAndInjectStyles(e, t, n)),
this.isStatic && !n.hash)
if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId))
i.push(this.staticRulesId);
else {
var o = ge(this.rules, e, t, n).join("")
, a = G(K(this.baseHash, o) >>> 0);
if (!t.hasNameForId(r, a)) {
var l = n(o, "." + a, void 0, r);
t.insertRules(r, a, l)
}
i.push(a),
this.staticRulesId = a
}
else {
for (var s = this.rules.length, c = K(this.baseHash, n.hash), u = "", d = 0; d < s; d++) {
var p = this.rules[d];
if ("string" == typeof p)
u += p;
else if (p) {
var h = ge(p, e, t, n)
, f = Array.isArray(h) ? h.join("") : h;
c = K(c, f + d),
u += f
}
}
if (u) {
var b = G(c >>> 0);
if (!t.hasNameForId(r, b)) {
var g = n(u, "." + b, void 0, r);
t.insertRules(r, b, g)
}
i.push(b)
}
}
return i.join(" ")
}
,
e
}()
, $ = /^\s*\/\/.*$/gm
, ee = [":", "[", ".", "#"];
function te(e) {
var t, n, r, i, o = void 0 === e ? m : e, a = o.options, l = void 0 === a ? m : a, c = o.plugins, u = void 0 === c ? g : c, d = new s.a(l), p = [], h = function(e) {
function t(t) {
if (t)
try {
e(t + "}")
} catch (e) {}
}
return function(n, r, i, o, a, l, s, c, u, d) {
switch (n) {
case 1:
if (0 === u && 64 === r.charCodeAt(0))
return e(r + ";"),
"";
break;
case 2:
if (0 === c)
return r + "/*|*/";
break;
case 3:
switch (c) {
case 102:
case 112:
return e(i[0] + r),
"";
default:
return r + (0 === d ? "/*|*/" : "")
}
case -2:
r.split("/*|*/}").forEach(t)
}
}
}((function(e) {
p.push(e)
}
)), f = function(e, r, o) {
return 0 === r && -1 !== ee.indexOf(o[n.length]) || o.match(i) ? e : "." + t
};
function b(e, o, a, l) {
void 0 === l && (l = "&");
var s = e.replace($, "")
, c = o && a ? a + " " + o + " { " + s + " }" : s;
return t = l,
n = o,
r = new RegExp("\\" + n + "\\b","g"),
i = new RegExp("(\\" + n + "\\b){2,}"),
d(a || !o ? "" : o, c)
}
return d.use([].concat(u, [function(e, t, i) {
2 === e && i.length && i[0].lastIndexOf(n) > 0 && (i[0] = i[0].replace(r, f))
}
, h, function(e) {
if (-2 === e) {
var t = p;
return p = [],
t
}
}
])),
b.hash = u.length ? u.reduce((function(e, t) {
return t.name || C(15),
K(e, t.name)
}
), 5381).toString() : "",
b
}
var ne = o.a.createContext()
, re = (ne.Consumer,
o.a.createContext())
, ie = (re.Consumer,
new H)
, oe = te();
function ae() {
return Object(i.useContext)(ne) || ie
}
function le() {
return Object(i.useContext)(re) || oe
}
function se(e) {
var t = Object(i.useState)(e.stylisPlugins)
, n = t[0]
, r = t[1]
, a = ae()
, s = Object(i.useMemo)((function() {
var t = a;
return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({
target: e.target
}, !1)),
e.disableCSSOMInjection && (t = t.reconstructWithOptions({
useCSSOMInjection: !1
})),
t
}
), [e.disableCSSOMInjection, e.sheet, e.target])
, c = Object(i.useMemo)((function() {
return te({
options: {
prefix: !e.disableVendorPrefixes
},
plugins: n
})
}
), [e.disableVendorPrefixes, n]);
return Object(i.useEffect)((function() {
l()(n, e.stylisPlugins) || r(e.stylisPlugins)
}
), [e.stylisPlugins]),
o.a.createElement(ne.Provider, {
value: s
}, o.a.createElement(re.Provider, {
value: c
}, e.children))
}
var ce = function() {
function e(e, t) {
var n = this;
this.inject = function(e, t) {
void 0 === t && (t = oe);
var r = n.name + t.hash;
e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"))
}
,
this.toString = function() {
return C(12, String(n.name))
}
,
this.name = e,
this.id = "sc-keyframes-" + e,
this.rules = t
}
return e.prototype.getName = function(e) {
return void 0 === e && (e = oe),
this.name + e.hash
}
,
e
}()
, ue = /([A-Z])/
, de = /([A-Z])/g
, pe = /^ms-/
, he = function(e) {
return "-" + e.toLowerCase()
};
function fe(e) {
return ue.test(e) ? e.replace(de, he).replace(pe, "-ms-") : e
}
var be = function(e) {
return null == e || !1 === e || "" === e
};
function ge(e, t, n, r) {
if (Array.isArray(e)) {
for (var i, o = [], a = 0, l = e.length; a < l; a += 1)
"" !== (i = ge(e[a], t, n, r)) && (Array.isArray(i) ? o.push.apply(o, i) : o.push(i));
return o
}
return be(e) ? "" : x(e) ? "." + e.styledComponentId : v(e) ? "function" != typeof (s = e) || s.prototype && s.prototype.isReactComponent || !t ? e : ge(e(t), t, n, r) : e instanceof ce ? n ? (e.inject(n, r),
e.getName(r)) : e : b(e) ? function e(t, n) {
var r, i, o = [];
for (var a in t)
t.hasOwnProperty(a) && !be(t[a]) && (Array.isArray(t[a]) && t[a].isCss || v(t[a]) ? o.push(fe(a) + ":", t[a], ";") : b(t[a]) ? o.push.apply(o, e(t[a], a)) : o.push(fe(a) + ": " + (r = a,
(null == (i = t[a]) || "boolean" == typeof i || "" === i ? "" : "number" != typeof i || 0 === i || r in c.a ? String(i).trim() : i + "px") + ";")));
return n ? [n + " {"].concat(o, ["}"]) : o
}(e) : e.toString();
var s
}
var me = function(e) {
return Array.isArray(e) && (e.isCss = !0),
e
};
function ve(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
return v(e) || b(e) ? me(ge(f(g, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : me(ge(f(e, n)))
}
new Set;
var ye = function(e, t, n) {
return void 0 === n && (n = m),
e.theme !== n.theme && e.theme || t || n.theme
}
, xe = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g
, Oe = /(^-|-$)/g;
function je(e) {
return e.replace(xe, "-").replace(Oe, "")
}
var ke = function(e) {
return G(Y(e) >>> 0)
};
function we(e) {
return "string" == typeof e && !0
}
var Ce = function(e) {
return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e)
}
, _e = function(e) {
return "__proto__" !== e && "constructor" !== e && "prototype" !== e
};
function Me(e, t, n) {
var r = e[n];
Ce(t) && Ce(r) ? Se(r, t) : e[n] = t
}
function Se(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
for (var i = 0, o = n; i < o.length; i++) {
var a = o[i];
if (Ce(a))
for (var l in a)
_e(l) && Me(e, a[l], l)
}
return e
}
var Ae = o.a.createContext();
Ae.Consumer;
var Te = {};
function Ee(e, t, n) {
var r = x(e)
, a = !we(e)
, l = t.attrs
, s = void 0 === l ? g : l
, c = t.componentId
, d = void 0 === c ? function(e, t) {
var n = "string" != typeof e ? "sc" : je(e);
Te[n] = (Te[n] || 0) + 1;
var r = n + "-" + ke("5.3.3" + n + Te[n]);
return t ? t + "-" + r : r
}(t.displayName, t.parentComponentId) : c
, f = t.displayName
, b = void 0 === f ? function(e) {
return we(e) ? "styled." + e : "Styled(" + y(e) + ")"
}(e) : f
, O = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || d
, j = r && e.attrs ? Array.prototype.concat(e.attrs, s).filter(Boolean) : s
, k = t.shouldForwardProp;
r && e.shouldForwardProp && (k = t.shouldForwardProp ? function(n, r, i) {
return e.shouldForwardProp(n, r, i) && t.shouldForwardProp(n, r, i)
}
: e.shouldForwardProp);
var w, C = new Z(n,O,r ? e.componentStyle : void 0), _ = C.isStatic && 0 === s.length, M = function(e, t) {
return function(e, t, n, r) {
var o = e.attrs
, a = e.componentStyle
, l = e.defaultProps
, s = e.foldedComponentIds
, c = e.shouldForwardProp
, d = e.styledComponentId
, p = e.target
, f = function(e, t, n) {
void 0 === e && (e = m);
var r = h({}, t, {
theme: e
})
, i = {};
return n.forEach((function(e) {
var t, n, o, a = e;
for (t in v(a) && (a = a(r)),
a)
r[t] = i[t] = "className" === t ? (n = i[t],
o = a[t],
n && o ? n + " " + o : n || o) : a[t]
}
)),
[r, i]
}(ye(t, Object(i.useContext)(Ae), l) || m, t, o)
, b = f[0]
, g = f[1]
, y = function(e, t, n, r) {
var i = ae()
, o = le();
return t ? e.generateAndInjectStyles(m, i, o) : e.generateAndInjectStyles(n, i, o)
}(a, r, b)
, x = n
, O = g.$as || t.$as || g.as || t.as || p
, j = we(O)
, k = g !== t ? h({}, t, {}, g) : t
, w = {};
for (var C in k)
"$" !== C[0] && "as" !== C && ("forwardedAs" === C ? w.as = k[C] : (c ? c(C, u.a, O) : !j || Object(u.a)(C)) && (w[C] = k[C]));
return t.style && g.style !== t.style && (w.style = h({}, t.style, {}, g.style)),
w.className = Array.prototype.concat(s, d, y !== d ? y : null, t.className, g.className).filter(Boolean).join(" "),
w.ref = x,
Object(i.createElement)(O, w)
}(w, e, t, _)
};
return M.displayName = b,
(w = o.a.forwardRef(M)).attrs = j,
w.componentStyle = C,
w.displayName = b,
w.shouldForwardProp = k,
w.foldedComponentIds = r ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : g,
w.styledComponentId = O,
w.target = r ? e.target : e,
w.withComponent = function(e) {
var r = t.componentId
, i = function(e, t) {
if (null == e)
return {};
var n, r, i = {}, o = Object.keys(e);
for (r = 0; r < o.length; r++)
n = o[r],
t.indexOf(n) >= 0 || (i[n] = e[n]);
return i
}(t, ["componentId"])
, o = r && r + "-" + (we(e) ? e : je(y(e)));
return Ee(e, h({}, i, {
attrs: j,
componentId: o
}), n)
}
,
Object.defineProperty(w, "defaultProps", {
get: function() {
return this._foldedDefaultProps
},
set: function(t) {
this._foldedDefaultProps = r ? Se({}, e.defaultProps, t) : t
}
}),
w.toString = function() {
return "." + w.styledComponentId
}
,
a && p()(w, e, {
attrs: !0,
componentStyle: !0,
displayName: !0,
foldedComponentIds: !0,
shouldForwardProp: !0,
styledComponentId: !0,
target: !0,
withComponent: !0
}),
w
}
var Ie = function(e) {
return function e(t, n, i) {
if (void 0 === i && (i = m),
!Object(r.isValidElementType)(n))
return C(1, String(n));
var o = function() {
return t(n, i, ve.apply(void 0, arguments))
};
return o.withConfig = function(r) {
return e(t, n, h({}, i, {}, r))
}
,
o.attrs = function(r) {
return e(t, n, h({}, i, {
attrs: Array.prototype.concat(i.attrs, r).filter(Boolean)
}))
}
,
o
}(Ee, e)
};
["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach((function(e) {
Ie[e] = Ie(e)
}
));
var Ne = function() {
function e(e, t) {
this.rules = e,
this.componentId = t,
this.isStatic = Q(e),
H.registerId(this.componentId + 1)
}
var t = e.prototype;
return t.createStyles = function(e, t, n, r) {
var i = r(ge(this.rules, t, n, r).join(""), "")
, o = this.componentId + e;
n.insertRules(o, o, i)
}
,
t.removeStyles = function(e, t) {
t.clearRules(this.componentId + e)
}
,
t.renderStyles = function(e, t, n, r) {
e > 2 && H.registerId(this.componentId + e),
this.removeStyles(e, n),
this.createStyles(e, t, n, r)
}
,
e
}();
function ze(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var a = ve.apply(void 0, [e].concat(n))
, l = "sc-global-" + ke(JSON.stringify(a))
, s = new Ne(a,l);
function c(e) {
var t = ae()
, n = le()
, r = Object(i.useContext)(Ae)
, o = Object(i.useRef)(t.allocateGSInstance(l)).current;
return t.server && u(o, e, t, r, n),
Object(i.useLayoutEffect)((function() {
if (!t.server)
return u(o, e, t, r, n),
function() {
return s.removeStyles(o, t)
}
}
), [o, e, t, r, n]),
null
}
function u(e, t, n, r, i) {
if (s.isStatic)
s.renderStyles(e, w, n, i);
else {
var o = h({}, t, {
theme: ye(t, r, c.defaultProps)
});
s.renderStyles(e, o, n, i)
}
}
return o.a.memo(c)
}
function De(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var i = ve.apply(void 0, [e].concat(n)).join("")
, o = ke(i);
return new ce(o,i)
}
!function() {
var e = function() {
var e = this;
this._emitSheetCSS = function() {
var t = e.instance.toString();
if (!t)
return "";
var n = R();
return "<style " + [n && 'nonce="' + n + '"', O + '="true"', 'data-styled-version="5.3.3"'].filter(Boolean).join(" ") + ">" + t + "</style>"
}
,
this.getStyleTags = function() {
return e.sealed ? C(2) : e._emitSheetCSS()
}
,
this.getStyleElement = function() {
var t;
if (e.sealed)
return C(2);
var n = ((t = {})[O] = "",
t["data-styled-version"] = "5.3.3",
t.dangerouslySetInnerHTML = {
__html: e.instance.toString()
},
t)
, r = R();
return r && (n.nonce = r),
[o.a.createElement("style", h({}, n, {
key: "sc-0-0"
}))]
}
,
this.seal = function() {
e.sealed = !0
}
,
this.instance = new H({
isServer: !0
}),
this.sealed = !1
}
.prototype;
e.collectStyles = function(e) {
return this.sealed ? C(2) : o.a.createElement(se, {
sheet: this.instance
}, e)
}
,
e.interleaveWithNodeStream = function(e) {
return C(3)
}
}(),
t.b = Ie
}
).call(this, n(143))
}
, function(e, t, n) {
"use strict";
function r(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
function r(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
function i(e, t, n) {
return t && r(e.prototype, t),
n && r(e, n),
Object.defineProperty(e, "prototype", {
writable: !1
}),
e
}
n.d(t, "a", (function() {
return i
}
))
}
, function(e, t, n) {
e.exports = n(358)
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
));
var r = n(87);
function i(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
}
}),
Object.defineProperty(e, "prototype", {
writable: !1
}),
t && Object(r.a)(e, t)
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return s
}
));
var r = n(43)
, i = n(164)
, o = n(76)
, a = n(56);
function l(e, t) {
if (t && ("object" === Object(o.a)(t) || "function" == typeof t))
return t;
if (void 0 !== t)
throw new TypeError("Derived constructors may only return object or undefined");
return Object(a.a)(e)
}
function s(e) {
var t = Object(i.a)();
return function() {
var n, i = Object(r.a)(e);
if (t) {
var o = Object(r.a)(this).constructor;
n = Reflect.construct(i, arguments, o)
} else
n = i.apply(this, arguments);
return l(this, n)
}
}
}
, function(e, t, n) {
"use strict";
function r(e, t, n, r, i, o, a) {
try {
var l = e[o](a)
, s = l.value
} catch (e) {
return void n(e)
}
l.done ? t(s) : Promise.resolve(s).then(r, i)
}
function i(e) {
return function() {
var t = this
, n = arguments;
return new Promise((function(i, o) {
var a = e.apply(t, n);
function l(e) {
r(a, i, o, l, s, "next", e)
}
function s(e) {
r(a, i, o, l, s, "throw", e)
}
l(void 0)
}
))
}
}
n.d(t, "a", (function() {
return i
}
))
}
, function(e, t, n) {
"use strict";
function r(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n,
e
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return a
}
));
var r = n(165)
, i = n(88)
, o = n(166);
function a(e, t) {
return Object(r.a)(e) || function(e, t) {
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (null != n) {
var r, i, o = [], a = !0, l = !1;
try {
for (n = n.call(e); !(a = (r = n.next()).done) && (o.push(r.value),
!t || o.length !== t); a = !0)
;
} catch (e) {
l = !0,
i = e
} finally {
try {
a || null == n.return || n.return()
} finally {
if (l)
throw i
}
}
return o
}
}(e, t) || Object(i.a)(e, t) || Object(o.a)()
}
}
, , function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "a", (function() {
return g
}
)),
n.d(t, "b", (function() {
return T
}
)),
n.d(t, "c", (function() {
return A
}
)),
n.d(t, "d", (function() {
return f
}
)),
n.d(t, "e", (function() {
return I
}
)),
n.d(t, "f", (function() {
return m
}
)),
n.d(t, "g", (function() {
return B
}
)),
n.d(t, "h", (function() {
return z
}
)),
n.d(t, "i", (function() {
return b
}
)),
n.d(t, "j", (function() {
return P
}
)),
n.d(t, "k", (function() {
return W
}
)),
n.d(t, "l", (function() {
return v
}
)),
n.d(t, "m", (function() {
return O
}
)),
n.d(t, "n", (function() {
return j
}
)),
n.d(t, "o", (function() {
return w
}
)),
n.d(t, "p", (function() {
return N
}
)),
n.d(t, "q", (function() {
return C
}
)),
n.d(t, "r", (function() {
return S
}
)),
n.d(t, "s", (function() {
return y
}
)),
n.d(t, "t", (function() {
return x
}
)),
n.d(t, "u", (function() {
return k
}
)),
n.d(t, "v", (function() {
return M
}
)),
n.d(t, "w", (function() {
return _
}
)),
n.d(t, "x", (function() {
return L
}
)),
n.d(t, "y", (function() {
return R
}
));
var r = n(19)
, i = n(12)
, o = n(56)
, a = n(8)
, l = n(9)
, s = n(310)
, c = n(5)
, u = n(6)
, d = function(e) {
for (var t = [], n = 0, r = 0; r < e.length; r++) {
var i = e.charCodeAt(r);
i < 128 ? t[n++] = i : i < 2048 ? (t[n++] = i >> 6 | 192,
t[n++] = 63 & i | 128) : 55296 == (64512 & i) && r + 1 < e.length && 56320 == (64512 & e.charCodeAt(r + 1)) ? (i = 65536 + ((1023 & i) << 10) + (1023 & e.charCodeAt(++r)),
t[n++] = i >> 18 | 240,
t[n++] = i >> 12 & 63 | 128,
t[n++] = i >> 6 & 63 | 128,
t[n++] = 63 & i | 128) : (t[n++] = i >> 12 | 224,
t[n++] = i >> 6 & 63 | 128,
t[n++] = 63 & i | 128)
}
return t
}
, p = {
byteToCharMap_: null,
charToByteMap_: null,
byteToCharMapWebSafe_: null,
charToByteMapWebSafe_: null,
ENCODED_VALS_BASE: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
get ENCODED_VALS() {
return this.ENCODED_VALS_BASE + "+/="
},
get ENCODED_VALS_WEBSAFE() {
return this.ENCODED_VALS_BASE + "-_."
},
HAS_NATIVE_SUPPORT: "function" == typeof atob,
encodeByteArray: function(e, t) {
if (!Array.isArray(e))
throw Error("encodeByteArray takes an array as a parameter");
this.init_();
for (var n = t ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [], i = 0; i < e.length; i += 3) {
var o = e[i]
, a = i + 1 < e.length
, l = a ? e[i + 1] : 0
, s = i + 2 < e.length
, c = s ? e[i + 2] : 0
, u = o >> 2
, d = (3 & o) << 4 | l >> 4
, p = (15 & l) << 2 | c >> 6
, h = 63 & c;
s || (h = 64,
a || (p = 64)),
r.push(n[u], n[d], n[p], n[h])
}
return r.join("")
},
encodeString: function(e, t) {
return this.HAS_NATIVE_SUPPORT && !t ? btoa(e) : this.encodeByteArray(d(e), t)
},
decodeString: function(e, t) {
return this.HAS_NATIVE_SUPPORT && !t ? atob(e) : function(e) {
for (var t = [], n = 0, r = 0; n < e.length; ) {
var i = e[n++];
if (i < 128)
t[r++] = String.fromCharCode(i);
else if (i > 191 && i < 224) {
var o = e[n++];
t[r++] = String.fromCharCode((31 & i) << 6 | 63 & o)
} else if (i > 239 && i < 365) {
var a = ((7 & i) << 18 | (63 & e[n++]) << 12 | (63 & e[n++]) << 6 | 63 & e[n++]) - 65536;
t[r++] = String.fromCharCode(55296 + (a >> 10)),
t[r++] = String.fromCharCode(56320 + (1023 & a))
} else {
var l = e[n++]
, s = e[n++];
t[r++] = String.fromCharCode((15 & i) << 12 | (63 & l) << 6 | 63 & s)
}
}
return t.join("")
}(this.decodeStringToByteArray(e, t))
},
decodeStringToByteArray: function(e, t) {
this.init_();
for (var n = t ? this.charToByteMapWebSafe_ : this.charToByteMap_, r = [], i = 0; i < e.length; ) {
var o = n[e.charAt(i++)]
, a = i < e.length ? n[e.charAt(i)] : 0
, l = ++i < e.length ? n[e.charAt(i)] : 64
, s = ++i < e.length ? n[e.charAt(i)] : 64;
if (++i,
null == o || null == a || null == l || null == s)
throw Error();
var c = o << 2 | a >> 4;
if (r.push(c),
64 !== l) {
var u = a << 4 & 240 | l >> 2;
if (r.push(u),
64 !== s) {
var d = l << 6 & 192 | s;
r.push(d)
}
}
}
return r
},
init_: function() {
if (!this.byteToCharMap_) {
this.byteToCharMap_ = {},
this.charToByteMap_ = {},
this.byteToCharMapWebSafe_ = {},
this.charToByteMapWebSafe_ = {};
for (var e = 0; e < this.ENCODED_VALS.length; e++)
this.byteToCharMap_[e] = this.ENCODED_VALS.charAt(e),
this.charToByteMap_[this.byteToCharMap_[e]] = e,
this.byteToCharMapWebSafe_[e] = this.ENCODED_VALS_WEBSAFE.charAt(e),
this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]] = e,
e >= this.ENCODED_VALS_BASE.length && (this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)] = e,
this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)] = e)
}
}
}
, h = function(e) {
return function(e) {
var t = d(e);
return p.encodeByteArray(t, !0)
}(e).replace(/\./g, "")
}
, f = function(e) {
try {
return p.decodeString(e, !0)
} catch (e) {
console.error("base64Decode failed: ", e)
}
return null
};
function b(e, t) {
if (!(t instanceof Object))
return t;
switch (t.constructor) {
case Date:
return new Date(t.getTime());
case Object:
void 0 === e && (e = {});
break;
case Array:
e = [];
break;
default:
return t
}
for (var n in t)
t.hasOwnProperty(n) && "__proto__" !== n && (e[n] = b(e[n], t[n]));
return e
}
var g = function() {
function e() {
var t = this;
Object(c.a)(this, e),
this.reject = function() {}
,
this.resolve = function() {}
,
this.promise = new Promise((function(e, n) {
t.resolve = e,
t.reject = n
}
))
}
return Object(u.a)(e, [{
key: "wrapCallback",
value: function(e) {
var t = this;
return function(n, r) {
n ? t.reject(n) : t.resolve(r),
"function" == typeof e && (t.promise.catch((function() {}
)),
1 === e.length ? e(n) : e(n, r))
}
}
}]),
e
}();
function m(e, t) {
if (e.uid)
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
var n = t || "demo-project"
, r = e.iat || 0
, i = e.sub || e.user_id;
if (!i)
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
var o = Object.assign({
iss: "https://securetoken.google.com/".concat(n),
aud: n,
iat: r,
exp: r + 3600,
auth_time: r,
sub: i,
user_id: i,
firebase: {
sign_in_provider: "custom",
identities: {}
}
}, e);
return [h(JSON.stringify({
alg: "none",
type: "JWT"
})), h(JSON.stringify(o)), ""].join(".")
}
function v() {
return "undefined" != typeof navigator && "string" == typeof navigator.userAgent ? navigator.userAgent : ""
}
function y() {
return "undefined" != typeof window && !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(v())
}
function x() {
try {
return "[object process]" === Object.prototype.toString.call(e.process)
} catch (e) {
return !1
}
}
function O() {
return "object" == typeof self && self.self === self
}
function j() {
var e = "object" == typeof chrome ? chrome.runtime : "object" == typeof browser ? browser.runtime : void 0;
return "object" == typeof e && void 0 !== e.id
}
function k() {
return "object" == typeof navigator && "ReactNative" === navigator.product
}
function w() {
return v().indexOf("Electron/") >= 0
}
function C() {
var e = v();
return e.indexOf("MSIE ") >= 0 || e.indexOf("Trident/") >= 0
}
function _() {
return v().indexOf("MSAppHost/") >= 0
}
function M() {
return !x() && navigator.userAgent.includes("Safari") && !navigator.userAgent.includes("Chrome")
}
function S() {
return "object" == typeof indexedDB
}
var A = function(e) {
Object(a.a)(n, e);
var t = Object(l.a)(n);
function n(e, r, i) {
var a;
return Object(c.a)(this, n),
(a = t.call(this, r)).code = e,
a.customData = i,
a.name = "FirebaseError",
Object.setPrototypeOf(Object(o.a)(a), n.prototype),
Error.captureStackTrace && Error.captureStackTrace(Object(o.a)(a), T.prototype.create),
a
}
return Object(u.a)(n)
}(Object(s.a)(Error))
, T = function() {
function e(t, n, r) {
Object(c.a)(this, e),
this.service = t,
this.serviceName = n,
this.errors = r
}
return Object(u.a)(e, [{
key: "create",
value: function(e) {
var t = (arguments.length <= 1 ? void 0 : arguments[1]) || {}
, n = "".concat(this.service, "/").concat(e)
, r = this.errors[e]
, i = r ? function(e, t) {
return e.replace(E, (function(e, n) {
var r = t[n];
return null != r ? String(r) : "<".concat(n, "?>")
}
))
}(r, t) : "Error"
, o = "".concat(this.serviceName, ": ").concat(i, " (").concat(n, ").");
return new A(n,o,t)
}
}]),
e
}();
var E = /\{\$([^}]+)}/g;
function I(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
function N(e) {
for (var t in e)
if (Object.prototype.hasOwnProperty.call(e, t))
return !1;
return !0
}
function z(e, t) {
if (e === t)
return !0;
for (var n = Object.keys(e), r = Object.keys(t), i = 0, o = n; i < o.length; i++) {
var a = o[i];
if (!r.includes(a))
return !1;
var l = e[a]
, s = t[a];
if (D(l) && D(s)) {
if (!z(l, s))
return !1
} else if (l !== s)
return !1
}
for (var c = 0, u = r; c < u.length; c++) {
var d = u[c];
if (!n.includes(d))
return !1
}
return !0
}
function D(e) {
return null !== e && "object" == typeof e
}
function L(e) {
for (var t = [], n = function() {
var e = Object(i.a)(o[r], 2)
, n = e[0]
, a = e[1];
Array.isArray(a) ? a.forEach((function(e) {
t.push(encodeURIComponent(n) + "=" + encodeURIComponent(e))
}
)) : t.push(encodeURIComponent(n) + "=" + encodeURIComponent(a))
}, r = 0, o = Object.entries(e); r < o.length; r++)
n();
return t.length ? "&" + t.join("&") : ""
}
function R(e) {
var t = {};
return e.replace(/^\?/, "").split("&").forEach((function(e) {
if (e) {
var n = e.split("=")
, r = Object(i.a)(n, 2)
, o = r[0]
, a = r[1];
t[decodeURIComponent(o)] = decodeURIComponent(a)
}
}
)),
t
}
function P(e) {
var t = e.indexOf("?");
if (!t)
return "";
var n = e.indexOf("#", t);
return e.substring(t, n > 0 ? n : void 0)
}
function B(e, t) {
var n = new F(e,t);
return n.subscribe.bind(n)
}
var F = function() {
function e(t, n) {
var r = this;
Object(c.a)(this, e),
this.observers = [],
this.unsubscribes = [],
this.observerCount = 0,
this.task = Promise.resolve(),
this.finalized = !1,
this.onNoObservers = n,
this.task.then((function() {
t(r)
}
)).catch((function(e) {
r.error(e)
}
))
}
return Object(u.a)(e, [{
key: "next",
value: function(e) {
this.forEachObserver((function(t) {
t.next(e)
}
))
}
}, {
key: "error",
value: function(e) {
this.forEachObserver((function(t) {
t.error(e)
}
)),
this.close(e)
}
}, {
key: "complete",
value: function() {
this.forEachObserver((function(e) {
e.complete()
}
)),
this.close()
}
}, {
key: "subscribe",
value: function(e, t, n) {
var i, o = this;
if (void 0 === e && void 0 === t && void 0 === n)
throw new Error("Missing Observer.");
void 0 === (i = function(e, t) {
if ("object" != typeof e || null === e)
return !1;
var n, i = Object(r.a)(["next", "error", "complete"]);
try {
for (i.s(); !(n = i.n()).done; ) {
var o = n.value;
if (o in e && "function" == typeof e[o])
return !0
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return !1
}(e) ? e : {
next: e,
error: t,
complete: n
}).next && (i.next = V),
void 0 === i.error && (i.error = V),
void 0 === i.complete && (i.complete = V);
var a = this.unsubscribeOne.bind(this, this.observers.length);
return this.finalized && this.task.then((function() {
try {
o.finalError ? i.error(o.finalError) : i.complete()
} catch (e) {}
}
)),
this.observers.push(i),
a
}
}, {
key: "unsubscribeOne",
value: function(e) {
void 0 !== this.observers && void 0 !== this.observers[e] && (delete this.observers[e],
this.observerCount -= 1,
0 === this.observerCount && void 0 !== this.onNoObservers && this.onNoObservers(this))
}
}, {
key: "forEachObserver",
value: function(e) {
if (!this.finalized)
for (var t = 0; t < this.observers.length; t++)
this.sendOne(t, e)
}
}, {
key: "sendOne",
value: function(e, t) {
var n = this;
this.task.then((function() {
if (void 0 !== n.observers && void 0 !== n.observers[e])
try {
t(n.observers[e])
} catch (e) {
"undefined" != typeof console && console.error && console.error(e)
}
}
))
}
}, {
key: "close",
value: function(e) {
var t = this;
this.finalized || (this.finalized = !0,
void 0 !== e && (this.finalError = e),
this.task.then((function() {
t.observers = void 0,
t.onNoObservers = void 0
}
)))
}
}]),
e
}();
function V() {}
function W(e) {
return e && e._delegate ? e._delegate : e
}
}
).call(this, n(73))
}
, , function(e, t) {
var n = Array.isArray;
e.exports = n
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return S
}
)),
n.d(t, "b", (function() {
return tt
}
)),
n.d(t, "c", (function() {
return Lt
}
)),
n.d(t, "d", (function() {
return Ft
}
)),
n.d(t, "e", (function() {
return Wt
}
)),
n.d(t, "f", (function() {
return Vt
}
)),
n.d(t, "g", (function() {
return Mt
}
)),
n.d(t, "h", (function() {
return Bt
}
)),
n.d(t, "i", (function() {
return Oi
}
)),
n.d(t, "j", (function() {
return No
}
)),
n.d(t, "k", (function() {
return M
}
)),
n.d(t, "l", (function() {
return si
}
)),
n.d(t, "m", (function() {
return qt
}
)),
n.d(t, "n", (function() {
return Ht
}
)),
n.d(t, "o", (function() {
return Ut
}
)),
n.d(t, "p", (function() {
return F
}
)),
n.d(t, "q", (function() {
return Qe
}
)),
n.d(t, "r", (function() {
return D
}
)),
n.d(t, "s", (function() {
return Mr
}
)),
n.d(t, "t", (function() {
return H
}
)),
n.d(t, "u", (function() {
return $i
}
)),
n.d(t, "v", (function() {
return Le
}
)),
n.d(t, "x", (function() {
return An
}
)),
n.d(t, "y", (function() {
return jr
}
)),
n.d(t, "z", (function() {
return Eo
}
)),
n.d(t, "A", (function() {
return wr
}
)),
n.d(t, "B", (function() {
return En
}
)),
n.d(t, "C", (function() {
return Mn
}
)),
n.d(t, "D", (function() {
return Ze
}
)),
n.d(t, "F", (function() {
return Dn
}
)),
n.d(t, "G", (function() {
return T
}
)),
n.d(t, "H", (function() {
return Un
}
)),
n.d(t, "I", (function() {
return dr
}
)),
n.d(t, "J", (function() {
return fr
}
)),
n.d(t, "K", (function() {
return Ji
}
)),
n.d(t, "L", (function() {
return De
}
)),
n.d(t, "M", (function() {
return Gr
}
)),
n.d(t, "N", (function() {
return Fn
}
)),
n.d(t, "O", (function() {
return fn
}
)),
n.d(t, "P", (function() {
return hi
}
)),
n.d(t, "Q", (function() {
return zi
}
)),
n.d(t, "R", (function() {
return Yi
}
)),
n.d(t, "S", (function() {
return vr
}
)),
n.d(t, "T", (function() {
return gn
}
)),
n.d(t, "U", (function() {
return bi
}
)),
n.d(t, "V", (function() {
return Ii
}
)),
n.d(t, "W", (function() {
return Gi
}
)),
n.d(t, "X", (function() {
return Gn
}
)),
n.d(t, "Y", (function() {
return Cn
}
)),
n.d(t, "Z", (function() {
return Pn
}
)),
n.d(t, "ab", (function() {
return Qt
}
)),
n.d(t, "bb", (function() {
return pn
}
)),
n.d(t, "cb", (function() {
return xn
}
)),
n.d(t, "db", (function() {
return Rn
}
)),
n.d(t, "eb", (function() {
return Vn
}
)),
n.d(t, "fb", (function() {
return di
}
)),
n.d(t, "gb", (function() {
return Ti
}
)),
n.d(t, "hb", (function() {
return Ui
}
)),
n.d(t, "ib", (function() {
return tn
}
)),
n.d(t, "jb", (function() {
return tr
}
)),
n.d(t, "kb", (function() {
return nr
}
)),
n.d(t, "lb", (function() {
return yi
}
)),
n.d(t, "mb", (function() {
return $n
}
)),
n.d(t, "nb", (function() {
return Yn
}
)),
n.d(t, "ob", (function() {
return Nn
}
)),
n.d(t, "w", (function() {
return sa
}
)),
n.d(t, "E", (function() {
return aa
}
));
var r, i = n(165), o = n(167), a = n(88), l = n(166), s = n(5), c = n(6), u = n(51), d = n(43), p = n(8), h = n(9), f = n(10), b = n(7), g = n.n(b), m = n(56), v = n(19), y = n(12), x = n(33), O = n(11), j = n(14), k = n(35), w = n(2), C = n(53), _ = n(55), M = {
FACEBOOK: "facebook.com",
GITHUB: "github.com",
GOOGLE: "google.com",
PASSWORD: "password",
PHONE: "phone",
TWITTER: "twitter.com"
}, S = {
EMAIL_SIGNIN: "EMAIL_SIGNIN",
PASSWORD_RESET: "PASSWORD_RESET",
RECOVER_EMAIL: "RECOVER_EMAIL",
REVERT_SECOND_FACTOR_ADDITION: "REVERT_SECOND_FACTOR_ADDITION",
VERIFY_AND_CHANGE_EMAIL: "VERIFY_AND_CHANGE_EMAIL",
VERIFY_EMAIL: "VERIFY_EMAIL"
};
function A() {
return Object(O.a)({}, "dependent-sdk-initialized-before-auth", "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.")
}
var T = function() {
var e;
return e = {},
Object(O.a)(e, "admin-restricted-operation", "This operation is restricted to administrators only."),
Object(O.a)(e, "argument-error", ""),
Object(O.a)(e, "app-not-authorized", "This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console."),
Object(O.a)(e, "app-not-installed", "The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device."),
Object(O.a)(e, "captcha-check-failed", "The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains."),
Object(O.a)(e, "code-expired", "The SMS code has expired. Please re-send the verification code to try again."),
Object(O.a)(e, "cordova-not-ready", "Cordova framework is not ready."),
Object(O.a)(e, "cors-unsupported", "This browser is not supported."),
Object(O.a)(e, "credential-already-in-use", "This credential is already associated with a different user account."),
Object(O.a)(e, "custom-token-mismatch", "The custom token corresponds to a different audience."),
Object(O.a)(e, "requires-recent-login", "This operation is sensitive and requires recent authentication. Log in again before retrying this request."),
Object(O.a)(e, "dependent-sdk-initialized-before-auth", "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."),
Object(O.a)(e, "dynamic-link-not-activated", "Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions."),
Object(O.a)(e, "email-change-needs-verification", "Multi-factor users must always have a verified email."),
Object(O.a)(e, "email-already-in-use", "The email address is already in use by another account."),
Object(O.a)(e, "emulator-config-failed", 'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.'),
Object(O.a)(e, "expired-action-code", "The action code has expired."),
Object(O.a)(e, "cancelled-popup-request", "This operation has been cancelled due to another conflicting popup being opened."),
Object(O.a)(e, "internal-error", "An internal AuthError has occurred."),
Object(O.a)(e, "invalid-app-credential", "The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired."),
Object(O.a)(e, "invalid-app-id", "The mobile app identifier is not registed for the current project."),
Object(O.a)(e, "invalid-user-token", "This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key."),
Object(O.a)(e, "invalid-auth-event", "An internal AuthError has occurred."),
Object(O.a)(e, "invalid-verification-code", "The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user."),
Object(O.a)(e, "invalid-continue-uri", "The continue URL provided in the request is invalid."),
Object(O.a)(e, "invalid-cordova-configuration", "The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme."),
Object(O.a)(e, "invalid-custom-token", "The custom token format is incorrect. Please check the documentation."),
Object(O.a)(e, "invalid-dynamic-link-domain", "The provided dynamic link domain is not configured or authorized for the current project."),
Object(O.a)(e, "invalid-email", "The email address is badly formatted."),
Object(O.a)(e, "invalid-emulator-scheme", "Emulator URL must start with a valid scheme (http:// or https://)."),
Object(O.a)(e, "invalid-api-key", "Your API key is invalid, please check you have copied it correctly."),
Object(O.a)(e, "invalid-cert-hash", "The SHA-1 certificate hash provided is invalid."),
Object(O.a)(e, "invalid-credential", "The supplied auth credential is malformed or has expired."),
Object(O.a)(e, "invalid-message-payload", "The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console."),
Object(O.a)(e, "invalid-multi-factor-session", "The request does not contain a valid proof of first factor successful sign-in."),
Object(O.a)(e, "invalid-oauth-provider", "EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers."),
Object(O.a)(e, "invalid-oauth-client-id", "The OAuth client ID provided is either invalid or does not match the specified API key."),
Object(O.a)(e, "unauthorized-domain", "This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console."),
Object(O.a)(e, "invalid-action-code", "The action code is invalid. This can happen if the code is malformed, expired, or has already been used."),
Object(O.a)(e, "wrong-password", "The password is invalid or the user does not have a password."),
Object(O.a)(e, "invalid-persistence-type", "The specified persistence type is invalid. It can only be local, session or none."),
Object(O.a)(e, "invalid-phone-number", "The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code]."),
Object(O.a)(e, "invalid-provider-id", "The specified provider ID is invalid."),
Object(O.a)(e, "invalid-recipient-email", "The email corresponding to this action failed to send as the provided recipient email address is invalid."),
Object(O.a)(e, "invalid-sender", "The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console."),
Object(O.a)(e, "invalid-verification-id", "The verification ID used to create the phone auth credential is invalid."),
Object(O.a)(e, "invalid-tenant-id", "The Auth instance's tenant ID is invalid."),
Object(O.a)(e, "missing-android-pkg-name", "An Android Package Name must be provided if the Android App is required to be installed."),
Object(O.a)(e, "auth-domain-config-required", "Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console."),
Object(O.a)(e, "missing-app-credential", "The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided."),
Object(O.a)(e, "missing-verification-code", "The phone auth credential was created with an empty SMS verification code."),
Object(O.a)(e, "missing-continue-uri", "A continue URL must be provided in the request."),
Object(O.a)(e, "missing-iframe-start", "An internal AuthError has occurred."),
Object(O.a)(e, "missing-ios-bundle-id", "An iOS Bundle ID must be provided if an App Store ID is provided."),
Object(O.a)(e, "missing-or-invalid-nonce", "The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload."),
Object(O.a)(e, "missing-multi-factor-info", "No second factor identifier is provided."),
Object(O.a)(e, "missing-multi-factor-session", "The request is missing proof of first factor successful sign-in."),
Object(O.a)(e, "missing-phone-number", "To send verification codes, provide a phone number for the recipient."),
Object(O.a)(e, "missing-verification-id", "The phone auth credential was created with an empty verification ID."),
Object(O.a)(e, "app-deleted", "This instance of FirebaseApp has been deleted."),
Object(O.a)(e, "multi-factor-info-not-found", "The user does not have a second factor matching the identifier provided."),
Object(O.a)(e, "multi-factor-auth-required", "Proof of ownership of a second factor is required to complete sign-in."),
Object(O.a)(e, "account-exists-with-different-credential", "An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address."),
Object(O.a)(e, "network-request-failed", "A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred."),
Object(O.a)(e, "no-auth-event", "An internal AuthError has occurred."),
Object(O.a)(e, "no-such-provider", "User was not linked to an account with the given provider."),
Object(O.a)(e, "null-user", "A null user object was provided as the argument for an operation which requires a non-null user object."),
Object(O.a)(e, "operation-not-allowed", "The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section."),
Object(O.a)(e, "operation-not-supported-in-this-environment", 'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.'),
Object(O.a)(e, "popup-blocked", "Unable to establish a connection with the popup. It may have been blocked by the browser."),
Object(O.a)(e, "popup-closed-by-user", "The popup has been closed by the user before finalizing the operation."),
Object(O.a)(e, "provider-already-linked", "User can only be linked to one identity for the given provider."),
Object(O.a)(e, "quota-exceeded", "The project's quota for this operation has been exceeded."),
Object(O.a)(e, "redirect-cancelled-by-user", "The redirect operation has been cancelled by the user before finalizing."),
Object(O.a)(e, "redirect-operation-pending", "A redirect sign-in operation is already pending."),
Object(O.a)(e, "rejected-credential", "The request contains malformed or mismatching credentials."),
Object(O.a)(e, "second-factor-already-in-use", "The second factor is already enrolled on this account."),
Object(O.a)(e, "maximum-second-factor-count-exceeded", "The maximum allowed number of second factors on a user has been exceeded."),
Object(O.a)(e, "tenant-id-mismatch", "The provided tenant ID does not match the Auth instance's tenant ID"),
Object(O.a)(e, "timeout", "The operation has timed out."),
Object(O.a)(e, "user-token-expired", "The user's credential is no longer valid. The user must sign in again."),
Object(O.a)(e, "too-many-requests", "We have blocked all requests from this device due to unusual activity. Try again later."),
Object(O.a)(e, "unauthorized-continue-uri", "The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console."),
Object(O.a)(e, "unsupported-first-factor", "Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor."),
Object(O.a)(e, "unsupported-persistence-type", "The current environment does not support the specified persistence type."),
Object(O.a)(e, "unsupported-tenant-operation", "This operation is not supported in a multi-tenant context."),
Object(O.a)(e, "unverified-email", "The operation requires a verified email."),
Object(O.a)(e, "user-cancelled", "The user did not grant your application the permissions it requested."),
Object(O.a)(e, "user-not-found", "There is no user record corresponding to this identifier. The user may have been deleted."),
Object(O.a)(e, "user-disabled", "The user account has been disabled by an administrator."),
Object(O.a)(e, "user-mismatch", "The supplied credentials do not correspond to the previously signed in user."),
Object(O.a)(e, "user-signed-out", ""),
Object(O.a)(e, "weak-password", "The password must be 6 characters long or more."),
Object(O.a)(e, "web-storage-unsupported", "This browser is not supported or 3rd party cookies and data may be disabled."),
Object(O.a)(e, "already-initialized", "initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance."),
e
}
, E = A
, I = new j.b("auth","Firebase",A())
, N = new C.b("@firebase/auth");
function z(e) {
if (N.logLevel <= C.a.ERROR) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
N.error.apply(N, ["Auth (".concat(k.SDK_VERSION, "): ").concat(e)].concat(n))
}
}
function D(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
throw B.apply(void 0, [e].concat(n))
}
function L(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
return B.apply(void 0, [e].concat(n))
}
function R(e, t, n) {
var r = Object.assign(Object.assign({}, E()), Object(O.a)({}, t, n));
return new j.b("auth","Firebase",r).create(t, {
appName: e.name
})
}
function P(e, t, n) {
if (!(t instanceof n))
throw n.name !== t.constructor.name && D(e, "argument-error"),
R(e, "argument-error", "Type of ".concat(t.constructor.name, " does not match expected instance.") + "Did you pass a reference from a different Auth SDK?")
}
function B(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
if ("string" != typeof e) {
var i, o = n[0], a = Object(x.a)(n.slice(1));
return a[0] && (a[0].appName = e.name),
(i = e._errorFactory).create.apply(i, [o].concat(Object(x.a)(a)))
}
return I.create.apply(I, [e].concat(n))
}
function F(e, t) {
if (!e) {
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
r[i - 2] = arguments[i];
throw B.apply(void 0, [t].concat(r))
}
}
function V(e) {
var t = "INTERNAL ASSERTION FAILED: " + e;
throw z(t),
new Error(t)
}
function W(e, t) {
e || V(t)
}
var q = new Map;
function H(e) {
W(e instanceof Function, "Expected a class definition");
var t = q.get(e);
return t ? (W(t instanceof e, "Instance stored in cache mismatched with class"),
t) : (t = new e,
q.set(e, t),
t)
}
function U() {
var e;
return "undefined" != typeof self && (null === (e = self.location) || void 0 === e ? void 0 : e.href) || ""
}
function X() {
return "http:" === G() || "https:" === G()
}
function G() {
var e;
return "undefined" != typeof self && (null === (e = self.location) || void 0 === e ? void 0 : e.protocol) || null
}
var K = function() {
function e(t, n) {
Object(s.a)(this, e),
this.shortDelay = t,
this.longDelay = n,
W(n > t, "Short delay should be less than long delay!"),
this.isMobile = Object(j.s)() || Object(j.u)()
}
return Object(c.a)(e, [{
key: "get",
value: function() {
return "undefined" != typeof navigator && navigator && "onLine"in navigator && "boolean" == typeof navigator.onLine && (X() || Object(j.n)() || "connection"in navigator) && !navigator.onLine ? Math.min(5e3, this.shortDelay) : this.isMobile ? this.longDelay : this.shortDelay
}
}]),
e
}();
function Y(e, t) {
W(e.emulator, "Emulator should always be set here");
var n = e.emulator.url;
return t ? "".concat(n).concat(t.startsWith("/") ? t.slice(1) : t) : n
}
var Q = function() {
function e() {
Object(s.a)(this, e)
}
return Object(c.a)(e, null, [{
key: "initialize",
value: function(e, t, n) {
this.fetchImpl = e,
t && (this.headersImpl = t),
n && (this.responseImpl = n)
}
}, {
key: "fetch",
value: function() {
return this.fetchImpl ? this.fetchImpl : "undefined" != typeof self && "fetch"in self ? self.fetch : void V("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")
}
}, {
key: "headers",
value: function() {
return this.headersImpl ? this.headersImpl : "undefined" != typeof self && "Headers"in self ? self.Headers : void V("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")
}
}, {
key: "response",
value: function() {
return this.responseImpl ? this.responseImpl : "undefined" != typeof self && "Response"in self ? self.Response : void V("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")
}
}]),
e
}()
, J = (r = {},
Object(O.a)(r, "CREDENTIAL_MISMATCH", "custom-token-mismatch"),
Object(O.a)(r, "MISSING_CUSTOM_TOKEN", "internal-error"),
Object(O.a)(r, "INVALID_IDENTIFIER", "invalid-email"),
Object(O.a)(r, "MISSING_CONTINUE_URI", "internal-error"),
Object(O.a)(r, "INVALID_PASSWORD", "wrong-password"),
Object(O.a)(r, "MISSING_PASSWORD", "internal-error"),
Object(O.a)(r, "EMAIL_EXISTS", "email-already-in-use"),
Object(O.a)(r, "PASSWORD_LOGIN_DISABLED", "operation-not-allowed"),
Object(O.a)(r, "INVALID_IDP_RESPONSE", "invalid-credential"),
Object(O.a)(r, "INVALID_PENDING_TOKEN", "invalid-credential"),
Object(O.a)(r, "FEDERATED_USER_ID_ALREADY_LINKED", "credential-already-in-use"),
Object(O.a)(r, "MISSING_REQ_TYPE", "internal-error"),
Object(O.a)(r, "EMAIL_NOT_FOUND", "user-not-found"),
Object(O.a)(r, "RESET_PASSWORD_EXCEED_LIMIT", "too-many-requests"),
Object(O.a)(r, "EXPIRED_OOB_CODE", "expired-action-code"),
Object(O.a)(r, "INVALID_OOB_CODE", "invalid-action-code"),
Object(O.a)(r, "MISSING_OOB_CODE", "internal-error"),
Object(O.a)(r, "CREDENTIAL_TOO_OLD_LOGIN_AGAIN", "requires-recent-login"),
Object(O.a)(r, "INVALID_ID_TOKEN", "invalid-user-token"),
Object(O.a)(r, "TOKEN_EXPIRED", "user-token-expired"),
Object(O.a)(r, "USER_NOT_FOUND", "user-token-expired"),
Object(O.a)(r, "TOO_MANY_ATTEMPTS_TRY_LATER", "too-many-requests"),
Object(O.a)(r, "INVALID_CODE", "invalid-verification-code"),
Object(O.a)(r, "INVALID_SESSION_INFO", "invalid-verification-id"),
Object(O.a)(r, "INVALID_TEMPORARY_PROOF", "invalid-credential"),
Object(O.a)(r, "MISSING_SESSION_INFO", "missing-verification-id"),
Object(O.a)(r, "SESSION_EXPIRED", "code-expired"),
Object(O.a)(r, "MISSING_ANDROID_PACKAGE_NAME", "missing-android-pkg-name"),
Object(O.a)(r, "UNAUTHORIZED_DOMAIN", "unauthorized-continue-uri"),
Object(O.a)(r, "INVALID_OAUTH_CLIENT_ID", "invalid-oauth-client-id"),
Object(O.a)(r, "ADMIN_ONLY_OPERATION", "admin-restricted-operation"),
Object(O.a)(r, "INVALID_MFA_PENDING_CREDENTIAL", "invalid-multi-factor-session"),
Object(O.a)(r, "MFA_ENROLLMENT_NOT_FOUND", "multi-factor-info-not-found"),
Object(O.a)(r, "MISSING_MFA_ENROLLMENT_ID", "missing-multi-factor-info"),
Object(O.a)(r, "MISSING_MFA_PENDING_CREDENTIAL", "missing-multi-factor-session"),
Object(O.a)(r, "SECOND_FACTOR_EXISTS", "second-factor-already-in-use"),
Object(O.a)(r, "SECOND_FACTOR_LIMIT_EXCEEDED", "maximum-second-factor-count-exceeded"),
Object(O.a)(r, "BLOCKING_FUNCTION_ERROR_RESPONSE", "internal-error"),
r)
, Z = new K(3e4,6e4);
function $(e, t) {
return e.tenantId && !t.tenantId ? Object.assign(Object.assign({}, t), {
tenantId: e.tenantId
}) : t
}
function ee(e, t, n, r) {
return te.apply(this, arguments)
}
function te() {
return te = Object(f.a)(g.a.mark((function e(t, n, r, i) {
var o, a = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return o = a.length > 4 && void 0 !== a[4] ? a[4] : {},
e.abrupt("return", ne(t, o, Object(f.a)(g.a.mark((function e() {
var o, a, l, s;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return o = {},
a = {},
i && ("GET" === n ? a = i : o = {
body: JSON.stringify(i)
}),
l = Object(j.x)(Object.assign({
key: t.config.apiKey
}, a)).slice(1),
e.next = 6,
t._getAdditionalHeaders();
case 6:
return (s = e.sent)["Content-Type"] = "application/json",
t.languageCode && (s["X-Firebase-Locale"] = t.languageCode),
e.abrupt("return", Q.fetch()(ae(t, t.config.apiHost, r, l), Object.assign({
method: n,
headers: s,
referrerPolicy: "no-referrer"
}, o)));
case 10:
case "end":
return e.stop()
}
}
), e)
}
)))));
case 2:
case "end":
return e.stop()
}
}
), e)
}
))),
te.apply(this, arguments)
}
function ne(e, t, n) {
return re.apply(this, arguments)
}
function re() {
return (re = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a, l, s, c, u, d, p, h;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t._canInitEmulator = !1,
i = Object.assign(Object.assign({}, J), n),
e.prev = 2,
o = new le(t),
e.next = 6,
Promise.race([r(), o.promise]);
case 6:
return a = e.sent,
o.clearNetworkTimeout(),
e.next = 10,
a.json();
case 10:
if (!("needConfirmation"in (l = e.sent))) {
e.next = 13;
break
}
throw se(t, "account-exists-with-different-credential", l);
case 13:
if (!a.ok || "errorMessage"in l) {
e.next = 17;
break
}
return e.abrupt("return", l);
case 17:
if (s = a.ok ? l.errorMessage : l.error.message,
c = s.split(" : "),
u = Object(y.a)(c, 2),
d = u[0],
p = u[1],
"FEDERATED_USER_ID_ALREADY_LINKED" !== d) {
e.next = 23;
break
}
throw se(t, "credential-already-in-use", l);
case 23:
if ("EMAIL_EXISTS" !== d) {
e.next = 25;
break
}
throw se(t, "email-already-in-use", l);
case 25:
if (h = i[d] || d.toLowerCase().replace(/[_\s]+/g, "-"),
!p) {
e.next = 30;
break
}
throw R(t, h, p);
case 30:
D(t, h);
case 31:
e.next = 38;
break;
case 33:
if (e.prev = 33,
e.t0 = e.catch(2),
!(e.t0 instanceof j.c)) {
e.next = 37;
break
}
throw e.t0;
case 37:
D(t, "network-request-failed");
case 38:
case "end":
return e.stop()
}
}
), e, null, [[2, 33]])
}
)))).apply(this, arguments)
}
function ie(e, t, n, r) {
return oe.apply(this, arguments)
}
function oe() {
return oe = Object(f.a)(g.a.mark((function e(t, n, r, i) {
var o, a, l = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return o = l.length > 4 && void 0 !== l[4] ? l[4] : {},
e.next = 3,
ee(t, n, r, i, o);
case 3:
return "mfaPendingCredential"in (a = e.sent) && D(t, "multi-factor-auth-required", {
_serverResponse: a
}),
e.abrupt("return", a);
case 6:
case "end":
return e.stop()
}
}
), e)
}
))),
oe.apply(this, arguments)
}
function ae(e, t, n, r) {
var i = "".concat(t).concat(n, "?").concat(r);
return e.config.emulator ? Y(e.config, i) : "".concat(e.config.apiScheme, "://").concat(i)
}
var le = function() {
function e(t) {
var n = this;
Object(s.a)(this, e),
this.auth = t,
this.timer = null,
this.promise = new Promise((function(e, t) {
n.timer = setTimeout((function() {
return t(L(n.auth, "timeout"))
}
), Z.get())
}
))
}
return Object(c.a)(e, [{
key: "clearNetworkTimeout",
value: function() {
clearTimeout(this.timer)
}
}]),
e
}();
function se(e, t, n) {
var r = {
appName: e.name
};
n.email && (r.email = n.email),
n.phoneNumber && (r.phoneNumber = n.phoneNumber);
var i = L(e, t, r);
return i.customData._tokenResponse = n,
i
}
function ce(e, t) {
return ue.apply(this, arguments)
}
function ue() {
return (ue = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:delete", n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function de(e, t) {
return pe.apply(this, arguments)
}
function pe() {
return (pe = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:update", n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function he(e, t) {
return fe.apply(this, arguments)
}
function fe() {
return (fe = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:lookup", n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function be(e) {
if (e)
try {
var t = new Date(Number(e));
if (!isNaN(t.getTime()))
return t.toUTCString()
} catch (e) {}
}
function ge() {
return ge = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o, a, l, s = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = s.length > 1 && void 0 !== s[1] && s[1],
r = Object(j.k)(t),
e.next = 4,
r.getIdToken(n);
case 4:
return i = e.sent,
F((o = ve(i)) && o.exp && o.auth_time && o.iat, r.auth, "internal-error"),
a = "object" == typeof o.firebase ? o.firebase : void 0,
l = null == a ? void 0 : a.sign_in_provider,
e.abrupt("return", {
claims: o,
token: i,
authTime: be(me(o.auth_time)),
issuedAtTime: be(me(o.iat)),
expirationTime: be(me(o.exp)),
signInProvider: l || null,
signInSecondFactor: (null == a ? void 0 : a.sign_in_second_factor) || null
});
case 10:
case "end":
return e.stop()
}
}
), e)
}
))),
ge.apply(this, arguments)
}
function me(e) {
return 1e3 * Number(e)
}
function ve(e) {
var t = e.split(".")
, n = Object(y.a)(t, 3)
, r = n[0]
, i = n[1]
, o = n[2];
if (void 0 === r || void 0 === i || void 0 === o)
return z("JWT malformed, contained fewer than 3 sections"),
null;
try {
var a = Object(j.d)(i);
return a ? JSON.parse(a) : (z("Failed to decode base64 JWT payload"),
null)
} catch (e) {
return z("Caught error parsing JWT payload as JSON", e),
null
}
}
function ye(e, t) {
return xe.apply(this, arguments)
}
function xe() {
return xe = Object(f.a)(g.a.mark((function e(t, n) {
var r = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!(r.length > 2 && void 0 !== r[2] && r[2])) {
e.next = 3;
break
}
return e.abrupt("return", n);
case 3:
return e.prev = 3,
e.next = 6,
n;
case 6:
return e.abrupt("return", e.sent);
case 9:
if (e.prev = 9,
e.t0 = e.catch(3),
!(e.t0 instanceof j.c && Oe(e.t0))) {
e.next = 15;
break
}
if (t.auth.currentUser !== t) {
e.next = 15;
break
}
return e.next = 15,
t.auth.signOut();
case 15:
throw e.t0;
case 16:
case "end":
return e.stop()
}
}
), e, null, [[3, 9]])
}
))),
xe.apply(this, arguments)
}
function Oe(e) {
var t = e.code;
return t === "auth/".concat("user-disabled") || t === "auth/".concat("user-token-expired")
}
var je = function() {
function e(t) {
Object(s.a)(this, e),
this.user = t,
this.isRunning = !1,
this.timerId = null,
this.errorBackoff = 3e4
}
return Object(c.a)(e, [{
key: "_start",
value: function() {
this.isRunning || (this.isRunning = !0,
this.schedule())
}
}, {
key: "_stop",
value: function() {
this.isRunning && (this.isRunning = !1,
null !== this.timerId && clearTimeout(this.timerId))
}
}, {
key: "getInterval",
value: function(e) {
var t;
if (e) {
var n = this.errorBackoff;
return this.errorBackoff = Math.min(2 * this.errorBackoff, 96e4),
n
}
this.errorBackoff = 3e4;
var r = (null !== (t = this.user.stsTokenManager.expirationTime) && void 0 !== t ? t : 0) - Date.now() - 3e5;
return Math.max(0, r)
}
}, {
key: "schedule",
value: function() {
var e = this
, t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
if (this.isRunning) {
var n = this.getInterval(t);
this.timerId = setTimeout(Object(f.a)(g.a.mark((function t() {
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.next = 2,
e.iteration();
case 2:
case "end":
return t.stop()
}
}
), t)
}
))), n)
}
}
}, {
key: "iteration",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
this.user.getIdToken(!0);
case 3:
e.next = 9;
break;
case 5:
return e.prev = 5,
e.t0 = e.catch(0),
e.t0.code === "auth/".concat("network-request-failed") && this.schedule(!0),
e.abrupt("return");
case 9:
this.schedule();
case 10:
case "end":
return e.stop()
}
}
), e, this, [[0, 5]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
e
}()
, ke = function() {
function e(t, n) {
Object(s.a)(this, e),
this.createdAt = t,
this.lastLoginAt = n,
this._initializeTime()
}
return Object(c.a)(e, [{
key: "_initializeTime",
value: function() {
this.lastSignInTime = be(this.lastLoginAt),
this.creationTime = be(this.createdAt)
}
}, {
key: "_copy",
value: function(e) {
this.createdAt = e.createdAt,
this.lastLoginAt = e.lastLoginAt,
this._initializeTime()
}
}, {
key: "toJSON",
value: function() {
return {
createdAt: this.createdAt,
lastLoginAt: this.lastLoginAt
}
}
}]),
e
}();
function we(e) {
return Ce.apply(this, arguments)
}
function Ce() {
return (Ce = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o, a, l, s, c, u, d, p;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = t.auth,
e.next = 3,
t.getIdToken();
case 3:
return i = e.sent,
e.next = 6,
ye(t, he(r, {
idToken: i
}));
case 6:
F(null === (o = e.sent) || void 0 === o ? void 0 : o.users.length, r, "internal-error"),
a = o.users[0],
t._notifyReloadListener(a),
l = (null === (n = a.providerUserInfo) || void 0 === n ? void 0 : n.length) ? Se(a.providerUserInfo) : [],
s = Me(t.providerData, l),
c = t.isAnonymous,
u = !(t.email && a.passwordHash || (null == s ? void 0 : s.length)),
d = !!c && u,
p = {
uid: a.localId,
displayName: a.displayName || null,
photoURL: a.photoUrl || null,
email: a.email || null,
emailVerified: a.emailVerified || !1,
phoneNumber: a.phoneNumber || null,
tenantId: a.tenantId || null,
providerData: s,
metadata: new ke(a.createdAt,a.lastLoginAt),
isAnonymous: d
},
Object.assign(t, p);
case 17:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function _e() {
return (_e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = Object(j.k)(t),
e.next = 3,
we(n);
case 3:
return e.next = 5,
n.auth._persistUserIfCurrent(n);
case 5:
n.auth._notifyListenersIfCurrent(n);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Me(e, t) {
var n = e.filter((function(e) {
return !t.some((function(t) {
return t.providerId === e.providerId
}
))
}
));
return [].concat(Object(x.a)(n), Object(x.a)(t))
}
function Se(e) {
return e.map((function(e) {
var t = e.providerId
, n = Object(w.d)(e, ["providerId"]);
return {
providerId: t,
uid: n.rawId || "",
displayName: n.displayName || null,
email: n.email || null,
phoneNumber: n.phoneNumber || null,
photoURL: n.photoUrl || null
}
}
))
}
function Ae(e, t) {
return Te.apply(this, arguments)
}
function Te() {
return (Te = Object(f.a)(g.a.mark((function e(t, n) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
ne(t, {}, Object(f.a)(g.a.mark((function e() {
var r, i, o, a, l, s;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Object(j.x)({
grant_type: "refresh_token",
refresh_token: n
}).slice(1),
i = t.config,
o = i.tokenApiHost,
a = i.apiKey,
l = ae(t, o, "/v1/token", "key=".concat(a)),
e.next = 5,
t._getAdditionalHeaders();
case 5:
return (s = e.sent)["Content-Type"] = "application/x-www-form-urlencoded",
e.abrupt("return", Q.fetch()(l, {
method: "POST",
headers: s,
body: r
}));
case 8:
case "end":
return e.stop()
}
}
), e)
}
))));
case 2:
return r = e.sent,
e.abrupt("return", {
accessToken: r.access_token,
expiresIn: r.expires_in,
refreshToken: r.refresh_token
});
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var Ee = function() {
function e() {
Object(s.a)(this, e),
this.refreshToken = null,
this.accessToken = null,
this.expirationTime = null
}
return Object(c.a)(e, [{
key: "isExpired",
get: function() {
return !this.expirationTime || Date.now() > this.expirationTime - 3e4
}
}, {
key: "updateFromServerResponse",
value: function(e) {
F(e.idToken, "internal-error"),
F(void 0 !== e.idToken, "internal-error"),
F(void 0 !== e.refreshToken, "internal-error");
var t = "expiresIn"in e && void 0 !== e.expiresIn ? Number(e.expiresIn) : function(e) {
var t = ve(e);
return F(t, "internal-error"),
F(void 0 !== t.exp, "internal-error"),
F(void 0 !== t.iat, "internal-error"),
Number(t.exp) - Number(t.iat)
}(e.idToken);
this.updateTokensAndExpiration(e.idToken, e.refreshToken, t)
}
}, {
key: "getToken",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (n = r.length > 1 && void 0 !== r[1] && r[1],
F(!this.accessToken || this.refreshToken, t, "user-token-expired"),
n || !this.accessToken || this.isExpired) {
e.next = 4;
break
}
return e.abrupt("return", this.accessToken);
case 4:
if (!this.refreshToken) {
e.next = 8;
break
}
return e.next = 7,
this.refresh(t, this.refreshToken);
case 7:
return e.abrupt("return", this.accessToken);
case 8:
return e.abrupt("return", null);
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "clearRefreshToken",
value: function() {
this.refreshToken = null
}
}, {
key: "refresh",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Ae(t, n);
case 2:
r = e.sent,
i = r.accessToken,
o = r.refreshToken,
a = r.expiresIn,
this.updateTokensAndExpiration(i, o, Number(a));
case 7:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "updateTokensAndExpiration",
value: function(e, t, n) {
this.refreshToken = t || null,
this.accessToken = e || null,
this.expirationTime = Date.now() + 1e3 * n
}
}, {
key: "toJSON",
value: function() {
return {
refreshToken: this.refreshToken,
accessToken: this.accessToken,
expirationTime: this.expirationTime
}
}
}, {
key: "_assign",
value: function(e) {
this.accessToken = e.accessToken,
this.refreshToken = e.refreshToken,
this.expirationTime = e.expirationTime
}
}, {
key: "_clone",
value: function() {
return Object.assign(new e, this.toJSON())
}
}, {
key: "_performRefresh",
value: function() {
return V("not implemented")
}
}], [{
key: "fromJSON",
value: function(t, n) {
var r = n.refreshToken
, i = n.accessToken
, o = n.expirationTime
, a = new e;
return r && (F("string" == typeof r, "internal-error", {
appName: t
}),
a.refreshToken = r),
i && (F("string" == typeof i, "internal-error", {
appName: t
}),
a.accessToken = i),
o && (F("number" == typeof o, "internal-error", {
appName: t
}),
a.expirationTime = o),
a
}
}]),
e
}();
function Ie(e, t) {
F("string" == typeof e || void 0 === e, "internal-error", {
appName: t
})
}
var Ne = function() {
function e(t) {
Object(s.a)(this, e);
var n = t.uid
, r = t.auth
, i = t.stsTokenManager
, o = Object(w.d)(t, ["uid", "auth", "stsTokenManager"]);
this.providerId = "firebase",
this.emailVerified = !1,
this.isAnonymous = !1,
this.tenantId = null,
this.providerData = [],
this.proactiveRefresh = new je(this),
this.reloadUserInfo = null,
this.reloadListener = null,
this.uid = n,
this.auth = r,
this.stsTokenManager = i,
this.accessToken = i.accessToken,
this.displayName = o.displayName || null,
this.email = o.email || null,
this.emailVerified = o.emailVerified || !1,
this.phoneNumber = o.phoneNumber || null,
this.photoURL = o.photoURL || null,
this.isAnonymous = o.isAnonymous || !1,
this.tenantId = o.tenantId || null,
this.metadata = new ke(o.createdAt || void 0,o.lastLoginAt || void 0)
}
return Object(c.a)(e, [{
key: "getIdToken",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
ye(this, this.stsTokenManager.getToken(this.auth, t));
case 2:
if (F(n = e.sent, this.auth, "internal-error"),
this.accessToken === n) {
e.next = 9;
break
}
return this.accessToken = n,
e.next = 8,
this.auth._persistUserIfCurrent(this);
case 8:
this.auth._notifyListenersIfCurrent(this);
case 9:
return e.abrupt("return", n);
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "getIdTokenResult",
value: function(e) {
return function(e) {
return ge.apply(this, arguments)
}(this, e)
}
}, {
key: "reload",
value: function() {
return function(e) {
return _e.apply(this, arguments)
}(this)
}
}, {
key: "_assign",
value: function(e) {
this !== e && (F(this.uid === e.uid, this.auth, "internal-error"),
this.displayName = e.displayName,
this.photoURL = e.photoURL,
this.email = e.email,
this.emailVerified = e.emailVerified,
this.phoneNumber = e.phoneNumber,
this.isAnonymous = e.isAnonymous,
this.tenantId = e.tenantId,
this.providerData = e.providerData.map((function(e) {
return Object.assign({}, e)
}
)),
this.metadata._copy(e.metadata),
this.stsTokenManager._assign(e.stsTokenManager))
}
}, {
key: "_clone",
value: function(t) {
return new e(Object.assign(Object.assign({}, this), {
auth: t,
stsTokenManager: this.stsTokenManager._clone()
}))
}
}, {
key: "_onReload",
value: function(e) {
F(!this.reloadListener, this.auth, "internal-error"),
this.reloadListener = e,
this.reloadUserInfo && (this._notifyReloadListener(this.reloadUserInfo),
this.reloadUserInfo = null)
}
}, {
key: "_notifyReloadListener",
value: function(e) {
this.reloadListener ? this.reloadListener(e) : this.reloadUserInfo = e
}
}, {
key: "_startProactiveRefresh",
value: function() {
this.proactiveRefresh._start()
}
}, {
key: "_stopProactiveRefresh",
value: function() {
this.proactiveRefresh._stop()
}
}, {
key: "_updateTokensIfNecessary",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r, i = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (n = i.length > 1 && void 0 !== i[1] && i[1],
r = !1,
t.idToken && t.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(t),
r = !0),
!n) {
e.next = 6;
break
}
return e.next = 6,
we(this);
case 6:
return e.next = 8,
this.auth._persistUserIfCurrent(this);
case 8:
r && this.auth._notifyListenersIfCurrent(this);
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "delete",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.getIdToken();
case 2:
return t = e.sent,
e.next = 5,
ye(this, ce(this.auth, {
idToken: t
}));
case 5:
return this.stsTokenManager.clearRefreshToken(),
e.abrupt("return", this.auth.signOut());
case 7:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "toJSON",
value: function() {
return Object.assign(Object.assign({
uid: this.uid,
email: this.email || void 0,
emailVerified: this.emailVerified,
displayName: this.displayName || void 0,
isAnonymous: this.isAnonymous,
photoURL: this.photoURL || void 0,
phoneNumber: this.phoneNumber || void 0,
tenantId: this.tenantId || void 0,
providerData: this.providerData.map((function(e) {
return Object.assign({}, e)
}
)),
stsTokenManager: this.stsTokenManager.toJSON(),
_redirectEventId: this._redirectEventId
}, this.metadata.toJSON()), {
apiKey: this.auth.config.apiKey,
appName: this.auth.name
})
}
}, {
key: "refreshToken",
get: function() {
return this.stsTokenManager.refreshToken || ""
}
}], [{
key: "_fromJSON",
value: function(t, n) {
var r, i, o, a, l, s, c, u, d = null !== (r = n.displayName) && void 0 !== r ? r : void 0, p = null !== (i = n.email) && void 0 !== i ? i : void 0, h = null !== (o = n.phoneNumber) && void 0 !== o ? o : void 0, f = null !== (a = n.photoURL) && void 0 !== a ? a : void 0, b = null !== (l = n.tenantId) && void 0 !== l ? l : void 0, g = null !== (s = n._redirectEventId) && void 0 !== s ? s : void 0, m = null !== (c = n.createdAt) && void 0 !== c ? c : void 0, v = null !== (u = n.lastLoginAt) && void 0 !== u ? u : void 0, y = n.uid, x = n.emailVerified, O = n.isAnonymous, j = n.providerData, k = n.stsTokenManager;
F(y && k, t, "internal-error");
var w = Ee.fromJSON(this.name, k);
F("string" == typeof y, t, "internal-error"),
Ie(d, t.name),
Ie(p, t.name),
F("boolean" == typeof x, t, "internal-error"),
F("boolean" == typeof O, t, "internal-error"),
Ie(h, t.name),
Ie(f, t.name),
Ie(b, t.name),
Ie(g, t.name),
Ie(m, t.name),
Ie(v, t.name);
var C = new e({
uid: y,
auth: t,
email: p,
emailVerified: x,
displayName: d,
isAnonymous: O,
photoURL: f,
phoneNumber: h,
tenantId: b,
stsTokenManager: w,
createdAt: m,
lastLoginAt: v
});
return j && Array.isArray(j) && (C.providerData = j.map((function(e) {
return Object.assign({}, e)
}
))),
g && (C._redirectEventId = g),
C
}
}, {
key: "_fromIdTokenResponse",
value: function() {
var t = Object(f.a)(g.a.mark((function t(n, r) {
var i, o, a, l = arguments;
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return i = l.length > 2 && void 0 !== l[2] && l[2],
(o = new Ee).updateFromServerResponse(r),
a = new e({
uid: r.localId,
auth: n,
stsTokenManager: o,
isAnonymous: i
}),
t.next = 6,
we(a);
case 6:
return t.abrupt("return", a);
case 7:
case "end":
return t.stop()
}
}
), t)
}
)));
return function(e, n) {
return t.apply(this, arguments)
}
}()
}]),
e
}()
, ze = function() {
function e() {
Object(s.a)(this, e),
this.type = "NONE",
this.storage = {}
}
return Object(c.a)(e, [{
key: "_isAvailable",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", !0);
case 1:
case "end":
return e.stop()
}
}
), e)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "_set",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
this.storage[t] = n;
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "_get",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = this.storage[t],
e.abrupt("return", void 0 === n ? null : n);
case 2:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_remove",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
delete this.storage[t];
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_addListener",
value: function(e, t) {}
}, {
key: "_removeListener",
value: function(e, t) {}
}]),
e
}();
ze.type = "NONE";
var De = ze;
function Le(e, t, n) {
return "firebase".concat(":", e, ":").concat(t, ":").concat(n)
}
var Re = function() {
function e(t, n, r) {
Object(s.a)(this, e),
this.persistence = t,
this.auth = n,
this.userKey = r;
var i = this.auth
, o = i.config
, a = i.name;
this.fullUserKey = Le(this.userKey, o.apiKey, a),
this.fullPersistenceKey = Le("persistence", o.apiKey, a),
this.boundEventHandler = n._onStorageEvent.bind(n),
this.persistence._addListener(this.fullUserKey, this.boundEventHandler)
}
return Object(c.a)(e, [{
key: "setCurrentUser",
value: function(e) {
return this.persistence._set(this.fullUserKey, e.toJSON())
}
}, {
key: "getCurrentUser",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.persistence._get(this.fullUserKey);
case 2:
return t = e.sent,
e.abrupt("return", t ? Ne._fromJSON(this.auth, t) : null);
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "removeCurrentUser",
value: function() {
return this.persistence._remove(this.fullUserKey)
}
}, {
key: "savePersistenceForRedirect",
value: function() {
return this.persistence._set(this.fullPersistenceKey, this.persistence.type)
}
}, {
key: "setPersistence",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (this.persistence !== t) {
e.next = 2;
break
}
return e.abrupt("return");
case 2:
return e.next = 4,
this.getCurrentUser();
case 4:
return n = e.sent,
e.next = 7,
this.removeCurrentUser();
case 7:
if (this.persistence = t,
!n) {
e.next = 10;
break
}
return e.abrupt("return", this.setCurrentUser(n));
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "delete",
value: function() {
this.persistence._removeListener(this.fullUserKey, this.boundEventHandler)
}
}], [{
key: "create",
value: function() {
var t = Object(f.a)(g.a.mark((function t(n, r) {
var i, o, a, l, s, c, u, d, p, h, b, m = arguments;
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
if (i = m.length > 2 && void 0 !== m[2] ? m[2] : "authUser",
r.length) {
t.next = 3;
break
}
return t.abrupt("return", new e(H(De),n,i));
case 3:
return t.next = 5,
Promise.all(r.map(function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
t._isAvailable();
case 2:
if (!e.sent) {
e.next = 4;
break
}
return e.abrupt("return", t);
case 4:
return e.abrupt("return", void 0);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()));
case 5:
o = t.sent.filter((function(e) {
return e
}
)),
a = o[0] || H(De),
l = Le(i, n.config.apiKey, n.name),
s = null,
c = Object(v.a)(r),
t.prev = 10,
c.s();
case 12:
if ((u = c.n()).done) {
t.next = 29;
break
}
return d = u.value,
t.prev = 14,
t.next = 17,
d._get(l);
case 17:
if (!(p = t.sent)) {
t.next = 23;
break
}
return h = Ne._fromJSON(n, p),
d !== a && (s = h),
a = d,
t.abrupt("break", 29);
case 23:
t.next = 27;
break;
case 25:
t.prev = 25,
t.t0 = t.catch(14);
case 27:
t.next = 12;
break;
case 29:
t.next = 34;
break;
case 31:
t.prev = 31,
t.t1 = t.catch(10),
c.e(t.t1);
case 34:
return t.prev = 34,
c.f(),
t.finish(34);
case 37:
if (b = o.filter((function(e) {
return e._shouldAllowMigration
}
)),
a._shouldAllowMigration && b.length) {
t.next = 40;
break
}
return t.abrupt("return", new e(a,n,i));
case 40:
if (a = b[0],
!s) {
t.next = 44;
break
}
return t.next = 44,
a._set(l, s.toJSON());
case 44:
return t.next = 46,
Promise.all(r.map(function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t === a) {
e.next = 8;
break
}
return e.prev = 1,
e.next = 4,
t._remove(l);
case 4:
e.next = 8;
break;
case 6:
e.prev = 6,
e.t0 = e.catch(1);
case 8:
case "end":
return e.stop()
}
}
), e, null, [[1, 6]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()));
case 46:
return t.abrupt("return", new e(a,n,i));
case 47:
case "end":
return t.stop()
}
}
), t, null, [[10, 31, 34, 37], [14, 25]])
}
)));
return function(e, n) {
return t.apply(this, arguments)
}
}()
}]),
e
}();
function Pe(e) {
var t = e.toLowerCase();
if (t.includes("opera/") || t.includes("opr/") || t.includes("opios/"))
return "Opera";
if (We(t))
return "IEMobile";
if (t.includes("msie") || t.includes("trident/"))
return "IE";
if (t.includes("edge/"))
return "Edge";
if (Be(t))
return "Firefox";
if (t.includes("silk/"))
return "Silk";
if (He(t))
return "Blackberry";
if (Ue(t))
return "Webos";
if (Fe(t))
return "Safari";
if ((t.includes("chrome/") || Ve(t)) && !t.includes("edge/"))
return "Chrome";
if (qe(t))
return "Android";
var n = e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);
return 2 === (null == n ? void 0 : n.length) ? n[1] : "Other"
}
function Be() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /firefox\//i.test(e)
}
function Fe() {
var e = (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)()).toLowerCase();
return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android")
}
function Ve() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /crios\//i.test(e)
}
function We() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /iemobile/i.test(e)
}
function qe() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /android/i.test(e)
}
function He() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /blackberry/i.test(e)
}
function Ue() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /webos/i.test(e)
}
function Xe() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /iphone|ipad|ipod/i.test(e)
}
function Ge() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return Xe(e) || qe(e) || Ue(e) || He(e) || /windows phone/i.test(e) || We(e)
}
function Ke(e) {
var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
switch (e) {
case "Browser":
t = Pe(Object(j.l)());
break;
case "Worker":
t = "".concat(Pe(Object(j.l)()), "-").concat(e);
break;
default:
t = e
}
var r = n.length ? n.join(",") : "FirebaseCore-web";
return "".concat(t, "/", "JsCore", "/").concat(k.SDK_VERSION, "/").concat(r)
}
var Ye = function() {
function e(t, n) {
Object(s.a)(this, e),
this.app = t,
this.config = n,
this.currentUser = null,
this.emulatorConfig = null,
this.operations = Promise.resolve(),
this.authStateSubscription = new Je(this),
this.idTokenSubscription = new Je(this),
this.redirectUser = null,
this.isProactiveRefreshEnabled = !1,
this._canInitEmulator = !0,
this._isInitialized = !1,
this._deleted = !1,
this._initializationPromise = null,
this._popupRedirectResolver = null,
this._errorFactory = I,
this.lastNotifiedUid = void 0,
this.languageCode = null,
this.tenantId = null,
this.settings = {
appVerificationDisabledForTesting: !1
},
this.frameworks = [],
this.name = t.name,
this.clientVersion = n.sdkClientVersion
}
return Object(c.a)(e, [{
key: "_initializeWithPersistence",
value: function(e, t) {
var n = this;
return t && (this._popupRedirectResolver = H(t)),
this._initializationPromise = this.queue(Object(f.a)(g.a.mark((function r() {
var i, o;
return g.a.wrap((function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
if (!n._deleted) {
r.next = 2;
break
}
return r.abrupt("return");
case 2:
return r.next = 4,
Re.create(n, e);
case 4:
if (n.persistenceManager = r.sent,
!n._deleted) {
r.next = 7;
break
}
return r.abrupt("return");
case 7:
if (!(null === (i = n._popupRedirectResolver) || void 0 === i ? void 0 : i._shouldInitProactively)) {
r.next = 15;
break
}
return r.prev = 8,
r.next = 11,
n._popupRedirectResolver._initialize(n);
case 11:
r.next = 15;
break;
case 13:
r.prev = 13,
r.t0 = r.catch(8);
case 15:
return r.next = 17,
n.initializeCurrentUser(t);
case 17:
if (n.lastNotifiedUid = (null === (o = n.currentUser) || void 0 === o ? void 0 : o.uid) || null,
!n._deleted) {
r.next = 20;
break
}
return r.abrupt("return");
case 20:
n._isInitialized = !0;
case 21:
case "end":
return r.stop()
}
}
), r, null, [[8, 13]])
}
)))),
this._initializationPromise
}
}, {
key: "_onStorageEvent",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this._deleted) {
e.next = 2;
break
}
return e.abrupt("return");
case 2:
return e.next = 4,
this.assertedPersistence.getCurrentUser();
case 4:
if (t = e.sent,
this.currentUser || t) {
e.next = 7;
break
}
return e.abrupt("return");
case 7:
if (!this.currentUser || !t || this.currentUser.uid !== t.uid) {
e.next = 12;
break
}
return this._currentUser._assign(t),
e.next = 11,
this.currentUser.getIdToken();
case 11:
return e.abrupt("return");
case 12:
return e.next = 14,
this._updateCurrentUser(t);
case 14:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "initializeCurrentUser",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.assertedPersistence.getCurrentUser();
case 2:
if (r = e.sent,
!t || !this.config.authDomain) {
e.next = 12;
break
}
return e.next = 6,
this.getOrInitRedirectPersistenceManager();
case 6:
return i = null === (n = this.redirectUser) || void 0 === n ? void 0 : n._redirectEventId,
o = null == r ? void 0 : r._redirectEventId,
e.next = 10,
this.tryRedirectSignIn(t);
case 10:
a = e.sent,
i && i !== o || !(null == a ? void 0 : a.user) || (r = a.user);
case 12:
if (r) {
e.next = 14;
break
}
return e.abrupt("return", this.directlySetCurrentUser(null));
case 14:
if (r._redirectEventId) {
e.next = 16;
break
}
return e.abrupt("return", this.reloadAndSetCurrentUserOrClear(r));
case 16:
return F(this._popupRedirectResolver, this, "argument-error"),
e.next = 19,
this.getOrInitRedirectPersistenceManager();
case 19:
if (!this.redirectUser || this.redirectUser._redirectEventId !== r._redirectEventId) {
e.next = 21;
break
}
return e.abrupt("return", this.directlySetCurrentUser(r));
case 21:
return e.abrupt("return", this.reloadAndSetCurrentUserOrClear(r));
case 22:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "tryRedirectSignIn",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = null,
e.prev = 1,
e.next = 4,
this._popupRedirectResolver._completeRedirectFn(this, t, !0);
case 4:
n = e.sent,
e.next = 11;
break;
case 7:
return e.prev = 7,
e.t0 = e.catch(1),
e.next = 11,
this._setRedirectUser(null);
case 11:
return e.abrupt("return", n);
case 12:
case "end":
return e.stop()
}
}
), e, this, [[1, 7]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "reloadAndSetCurrentUserOrClear",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
we(t);
case 3:
e.next = 9;
break;
case 5:
if (e.prev = 5,
e.t0 = e.catch(0),
e.t0.code === "auth/".concat("network-request-failed")) {
e.next = 9;
break
}
return e.abrupt("return", this.directlySetCurrentUser(null));
case 9:
return e.abrupt("return", this.directlySetCurrentUser(t));
case 10:
case "end":
return e.stop()
}
}
), e, this, [[0, 5]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "useDeviceLanguage",
value: function() {
this.languageCode = function() {
if ("undefined" == typeof navigator)
return null;
var e = navigator;
return e.languages && e.languages[0] || e.language || null
}()
}
}, {
key: "_delete",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
this._deleted = !0;
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "updateCurrentUser",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return (n = t ? Object(j.k)(t) : null) && F(n.auth.config.apiKey === this.config.apiKey, this, "invalid-user-token"),
e.abrupt("return", this._updateCurrentUser(n && n._clone(this)));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_updateCurrentUser",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this._deleted) {
e.next = 2;
break
}
return e.abrupt("return");
case 2:
return t && F(this.tenantId === t.tenantId, this, "tenant-id-mismatch"),
e.abrupt("return", this.queue(Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
n.directlySetCurrentUser(t);
case 2:
n.notifyAuthListeners();
case 3:
case "end":
return e.stop()
}
}
), e)
}
)))));
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "signOut",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this.redirectPersistenceManager && !this._popupRedirectResolver) {
e.next = 3;
break
}
return e.next = 3,
this._setRedirectUser(null);
case 3:
return e.abrupt("return", this._updateCurrentUser(null));
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "setPersistence",
value: function(e) {
var t = this;
return this.queue(Object(f.a)(g.a.mark((function n() {
return g.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return n.next = 2,
t.assertedPersistence.setPersistence(H(e));
case 2:
case "end":
return n.stop()
}
}
), n)
}
))))
}
}, {
key: "_getPersistence",
value: function() {
return this.assertedPersistence.persistence.type
}
}, {
key: "_updateErrorMap",
value: function(e) {
this._errorFactory = new j.b("auth","Firebase",e())
}
}, {
key: "onAuthStateChanged",
value: function(e, t, n) {
return this.registerStateListener(this.authStateSubscription, e, t, n)
}
}, {
key: "onIdTokenChanged",
value: function(e, t, n) {
return this.registerStateListener(this.idTokenSubscription, e, t, n)
}
}, {
key: "toJSON",
value: function() {
var e;
return {
apiKey: this.config.apiKey,
authDomain: this.config.authDomain,
appName: this.name,
currentUser: null === (e = this._currentUser) || void 0 === e ? void 0 : e.toJSON()
}
}
}, {
key: "_setRedirectUser",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.getOrInitRedirectPersistenceManager(n);
case 2:
return r = e.sent,
e.abrupt("return", null === t ? r.removeCurrentUser() : r.setCurrentUser(t));
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "getOrInitRedirectPersistenceManager",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (this.redirectPersistenceManager) {
e.next = 9;
break
}
return F(n = t && H(t) || this._popupRedirectResolver, this, "argument-error"),
e.next = 5,
Re.create(this, [H(n._redirectPersistence)], "redirectUser");
case 5:
return this.redirectPersistenceManager = e.sent,
e.next = 8,
this.redirectPersistenceManager.getCurrentUser();
case 8:
this.redirectUser = e.sent;
case 9:
return e.abrupt("return", this.redirectPersistenceManager);
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_redirectUserForId",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this._isInitialized) {
e.next = 3;
break
}
return e.next = 3,
this.queue(Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
case "end":
return e.stop()
}
}
), e)
}
))));
case 3:
if ((null === (n = this._currentUser) || void 0 === n ? void 0 : n._redirectEventId) !== t) {
e.next = 5;
break
}
return e.abrupt("return", this._currentUser);
case 5:
if ((null === (r = this.redirectUser) || void 0 === r ? void 0 : r._redirectEventId) !== t) {
e.next = 7;
break
}
return e.abrupt("return", this.redirectUser);
case 7:
return e.abrupt("return", null);
case 8:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_persistUserIfCurrent",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t !== this.currentUser) {
e.next = 2;
break
}
return e.abrupt("return", this.queue(Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", n.directlySetCurrentUser(t));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))));
case 2:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_notifyListenersIfCurrent",
value: function(e) {
e === this.currentUser && this.notifyAuthListeners()
}
}, {
key: "_key",
value: function() {
return "".concat(this.config.authDomain, ":").concat(this.config.apiKey, ":").concat(this.name)
}
}, {
key: "_startProactiveRefresh",
value: function() {
this.isProactiveRefreshEnabled = !0,
this.currentUser && this._currentUser._startProactiveRefresh()
}
}, {
key: "_stopProactiveRefresh",
value: function() {
this.isProactiveRefreshEnabled = !1,
this.currentUser && this._currentUser._stopProactiveRefresh()
}
}, {
key: "_currentUser",
get: function() {
return this.currentUser
}
}, {
key: "notifyAuthListeners",
value: function() {
var e, t;
if (this._isInitialized) {
this.idTokenSubscription.next(this.currentUser);
var n = null !== (t = null === (e = this.currentUser) || void 0 === e ? void 0 : e.uid) && void 0 !== t ? t : null;
this.lastNotifiedUid !== n && (this.lastNotifiedUid = n,
this.authStateSubscription.next(this.currentUser))
}
}
}, {
key: "registerStateListener",
value: function(e, t, n, r) {
var i = this;
if (this._deleted)
return function() {}
;
var o = "function" == typeof t ? t : t.next.bind(t)
, a = this._isInitialized ? Promise.resolve() : this._initializationPromise;
return F(a, this, "internal-error"),
a.then((function() {
return o(i.currentUser)
}
)),
"function" == typeof t ? e.addObserver(t, n, r) : e.addObserver(t)
}
}, {
key: "directlySetCurrentUser",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (this.currentUser && this.currentUser !== t && (this._currentUser._stopProactiveRefresh(),
t && this.isProactiveRefreshEnabled && t._startProactiveRefresh()),
this.currentUser = t,
!t) {
e.next = 7;
break
}
return e.next = 5,
this.assertedPersistence.setCurrentUser(t);
case 5:
e.next = 9;
break;
case 7:
return e.next = 9,
this.assertedPersistence.removeCurrentUser();
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "queue",
value: function(e) {
return this.operations = this.operations.then(e, e),
this.operations
}
}, {
key: "assertedPersistence",
get: function() {
return F(this.persistenceManager, this, "internal-error"),
this.persistenceManager
}
}, {
key: "_logFramework",
value: function(e) {
e && !this.frameworks.includes(e) && (this.frameworks.push(e),
this.frameworks.sort(),
this.clientVersion = Ke(this.config.clientPlatform, this._getFrameworks()))
}
}, {
key: "_getFrameworks",
value: function() {
return this.frameworks
}
}, {
key: "_getAdditionalHeaders",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t = Object(O.a)({}, "X-Client-Version", this.clientVersion),
this.app.options.appId && (t["X-Firebase-gmpid"] = this.app.options.appId),
e.abrupt("return", t);
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
e
}();
function Qe(e) {
return Object(j.k)(e)
}
var Je = function() {
function e(t) {
var n = this;
Object(s.a)(this, e),
this.auth = t,
this.observer = null,
this.addObserver = Object(j.g)((function(e) {
return n.observer = e
}
))
}
return Object(c.a)(e, [{
key: "next",
get: function() {
return F(this.observer, this.auth, "internal-error"),
this.observer.next.bind(this.observer)
}
}]),
e
}();
function Ze(e, t, n) {
var r = Qe(e);
F(r._canInitEmulator, r, "emulator-config-failed"),
F(/^https?:\/\//.test(t), r, "invalid-emulator-scheme");
var i = !!(null == n ? void 0 : n.disableWarnings)
, o = $e(t)
, a = function(e) {
var t = $e(e)
, n = /(\/\/)?([^?#/]+)/.exec(e.substr(t.length));
if (!n)
return {
host: "",
port: null
};
var r = n[2].split("@").pop() || ""
, i = /^(\[[^\]]+\])(:|$)/.exec(r);
if (i) {
var o = i[1];
return {
host: o,
port: et(r.substr(o.length + 1))
}
}
var a = r.split(":")
, l = Object(y.a)(a, 2);
return {
host: l[0],
port: et(l[1])
}
}(t)
, l = a.host
, s = a.port
, c = null === s ? "" : ":".concat(s);
r.config.emulator = {
url: "".concat(o, "//").concat(l).concat(c, "/")
},
r.settings.appVerificationDisabledForTesting = !0,
r.emulatorConfig = Object.freeze({
host: l,
port: s,
protocol: o.replace(":", ""),
options: Object.freeze({
disableWarnings: i
})
}),
i || function() {
function e() {
var e = document.createElement("p")
, t = e.style;
e.innerText = "Running in emulator mode. Do not use with production credentials.",
t.position = "fixed",
t.width = "100%",
t.backgroundColor = "#ffffff",
t.border = ".1em solid #000000",
t.color = "#b50000",
t.bottom = "0px",
t.left = "0px",
t.margin = "0px",
t.zIndex = "10000",
t.textAlign = "center",
e.classList.add("firebase-emulator-warning"),
document.body.appendChild(e)
}
"undefined" != typeof console && "function" == typeof console.info && console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),
"undefined" != typeof window && "undefined" != typeof document && ("loading" === document.readyState ? window.addEventListener("DOMContentLoaded", e) : e())
}()
}
function $e(e) {
var t = e.indexOf(":");
return t < 0 ? "" : e.substr(0, t + 1)
}
function et(e) {
if (!e)
return null;
var t = Number(e);
return isNaN(t) ? null : t
}
var tt = function() {
function e(t, n) {
Object(s.a)(this, e),
this.providerId = t,
this.signInMethod = n
}
return Object(c.a)(e, [{
key: "toJSON",
value: function() {
return V("not implemented")
}
}, {
key: "_getIdTokenResponse",
value: function(e) {
return V("not implemented")
}
}, {
key: "_linkToIdToken",
value: function(e, t) {
return V("not implemented")
}
}, {
key: "_getReauthenticationResolver",
value: function(e) {
return V("not implemented")
}
}]),
e
}();
function nt(e, t) {
return rt.apply(this, arguments)
}
function rt() {
return (rt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:resetPassword", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function it(e, t) {
return ot.apply(this, arguments)
}
function ot() {
return (ot = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:update", n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function at(e, t) {
return lt.apply(this, arguments)
}
function lt() {
return (lt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:update", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function st(e, t) {
return ct.apply(this, arguments)
}
function ct() {
return (ct = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithPassword", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ut(e, t) {
return dt.apply(this, arguments)
}
function dt() {
return (dt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:sendOobCode", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function pt(e, t) {
return ht.apply(this, arguments)
}
function ht() {
return (ht = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ut(t, n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ft(e, t) {
return bt.apply(this, arguments)
}
function bt() {
return (bt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ut(t, n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function gt(e, t) {
return mt.apply(this, arguments)
}
function mt() {
return (mt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ut(t, n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function vt(e, t) {
return yt.apply(this, arguments)
}
function yt() {
return (yt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ut(t, n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function xt(e, t) {
return Ot.apply(this, arguments)
}
function Ot() {
return (Ot = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithEmailLink", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function jt(e, t) {
return kt.apply(this, arguments)
}
function kt() {
return (kt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithEmailLink", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var wt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r, i) {
var o, a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null;
return Object(s.a)(this, n),
(o = t.call(this, "password", i))._email = e,
o._password = r,
o._tenantId = a,
o
}
return Object(c.a)(n, [{
key: "toJSON",
value: function() {
return {
email: this._email,
password: this._password,
signInMethod: this.signInMethod,
tenantId: this._tenantId
}
}
}, {
key: "_getIdTokenResponse",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
e.t0 = this.signInMethod,
e.next = "password" === e.t0 ? 3 : "emailLink" === e.t0 ? 4 : 5;
break;
case 3:
return e.abrupt("return", st(t, {
returnSecureToken: !0,
email: this._email,
password: this._password
}));
case 4:
return e.abrupt("return", xt(t, {
email: this._email,
oobCode: this._password
}));
case 5:
D(t, "internal-error");
case 6:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_linkToIdToken",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
e.t0 = this.signInMethod,
e.next = "password" === e.t0 ? 3 : "emailLink" === e.t0 ? 4 : 5;
break;
case 3:
return e.abrupt("return", it(t, {
idToken: n,
returnSecureToken: !0,
email: this._email,
password: this._password
}));
case 4:
return e.abrupt("return", jt(t, {
idToken: n,
email: this._email,
oobCode: this._password
}));
case 5:
D(t, "internal-error");
case 6:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "_getReauthenticationResolver",
value: function(e) {
return this._getIdTokenResponse(e)
}
}], [{
key: "_fromEmailAndPassword",
value: function(e, t) {
return new n(e,t,"password")
}
}, {
key: "_fromEmailAndCode",
value: function(e, t) {
return new n(e,t,"emailLink",arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null)
}
}, {
key: "fromJSON",
value: function(e) {
var t = "string" == typeof e ? JSON.parse(e) : e;
if ((null == t ? void 0 : t.email) && (null == t ? void 0 : t.password)) {
if ("password" === t.signInMethod)
return this._fromEmailAndPassword(t.email, t.password);
if ("emailLink" === t.signInMethod)
return this._fromEmailAndCode(t.email, t.password, t.tenantId)
}
return null
}
}]),
n
}(tt);
function Ct(e, t) {
return _t.apply(this, arguments)
}
function _t() {
return (_t = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithIdp", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var Mt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
var e;
return Object(s.a)(this, n),
(e = t.apply(this, arguments)).pendingToken = null,
e
}
return Object(c.a)(n, [{
key: "toJSON",
value: function() {
return {
idToken: this.idToken,
accessToken: this.accessToken,
secret: this.secret,
nonce: this.nonce,
pendingToken: this.pendingToken,
providerId: this.providerId,
signInMethod: this.signInMethod
}
}
}, {
key: "_getIdTokenResponse",
value: function(e) {
return Ct(e, this.buildRequest())
}
}, {
key: "_linkToIdToken",
value: function(e, t) {
var n = this.buildRequest();
return n.idToken = t,
Ct(e, n)
}
}, {
key: "_getReauthenticationResolver",
value: function(e) {
var t = this.buildRequest();
return t.autoCreate = !1,
Ct(e, t)
}
}, {
key: "buildRequest",
value: function() {
var e = {
requestUri: "http://localhost",
returnSecureToken: !0
};
if (this.pendingToken)
e.pendingToken = this.pendingToken;
else {
var t = {};
this.idToken && (t.id_token = this.idToken),
this.accessToken && (t.access_token = this.accessToken),
this.secret && (t.oauth_token_secret = this.secret),
t.providerId = this.providerId,
this.nonce && !this.pendingToken && (t.nonce = this.nonce),
e.postBody = Object(j.x)(t)
}
return e
}
}], [{
key: "_fromParams",
value: function(e) {
var t = new n(e.providerId,e.signInMethod);
return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken),
e.accessToken && (t.accessToken = e.accessToken),
e.nonce && !e.pendingToken && (t.nonce = e.nonce),
e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken,
t.secret = e.oauthTokenSecret) : D("argument-error"),
t
}
}, {
key: "fromJSON",
value: function(e) {
var t = "string" == typeof e ? JSON.parse(e) : e
, r = t.providerId
, i = t.signInMethod
, o = Object(w.d)(t, ["providerId", "signInMethod"]);
if (!r || !i)
return null;
var a = new n(r,i);
return a.idToken = o.idToken || void 0,
a.accessToken = o.accessToken || void 0,
a.secret = o.secret,
a.nonce = o.nonce,
a.pendingToken = o.pendingToken || null,
a
}
}]),
n
}(tt);
function St(e, t) {
return At.apply(this, arguments)
}
function At() {
return (At = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:sendVerificationCode", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Tt() {
return (Tt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithPhoneNumber", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Et() {
return (Et = Object(f.a)(g.a.mark((function e(t, n) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
ie(t, "POST", "/v1/accounts:signInWithPhoneNumber", $(t, n));
case 2:
if (!(r = e.sent).temporaryProof) {
e.next = 5;
break
}
throw se(t, "account-exists-with-different-credential", r);
case 5:
return e.abrupt("return", r);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var It = Object(O.a)({}, "USER_NOT_FOUND", "user-not-found");
function Nt() {
return (Nt = Object(f.a)(g.a.mark((function e(t, n) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Object.assign(Object.assign({}, n), {
operation: "REAUTH"
}),
e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithPhoneNumber", $(t, r), It));
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var zt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e) {
var r;
return Object(s.a)(this, n),
(r = t.call(this, "phone", "phone")).params = e,
r
}
return Object(c.a)(n, [{
key: "_getIdTokenResponse",
value: function(e) {
return function(e, t) {
return Tt.apply(this, arguments)
}(e, this._makeVerificationRequest())
}
}, {
key: "_linkToIdToken",
value: function(e, t) {
return function(e, t) {
return Et.apply(this, arguments)
}(e, Object.assign({
idToken: t
}, this._makeVerificationRequest()))
}
}, {
key: "_getReauthenticationResolver",
value: function(e) {
return function(e, t) {
return Nt.apply(this, arguments)
}(e, this._makeVerificationRequest())
}
}, {
key: "_makeVerificationRequest",
value: function() {
var e = this.params
, t = e.temporaryProof
, n = e.phoneNumber
, r = e.verificationId
, i = e.verificationCode;
return t && n ? {
temporaryProof: t,
phoneNumber: n
} : {
sessionInfo: r,
code: i
}
}
}, {
key: "toJSON",
value: function() {
var e = {
providerId: this.providerId
};
return this.params.phoneNumber && (e.phoneNumber = this.params.phoneNumber),
this.params.temporaryProof && (e.temporaryProof = this.params.temporaryProof),
this.params.verificationCode && (e.verificationCode = this.params.verificationCode),
this.params.verificationId && (e.verificationId = this.params.verificationId),
e
}
}], [{
key: "_fromVerification",
value: function(e, t) {
return new n({
verificationId: e,
verificationCode: t
})
}
}, {
key: "_fromTokenResponse",
value: function(e, t) {
return new n({
phoneNumber: e,
temporaryProof: t
})
}
}, {
key: "fromJSON",
value: function(e) {
"string" == typeof e && (e = JSON.parse(e));
var t = e
, r = t.verificationId
, i = t.verificationCode
, o = t.phoneNumber
, a = t.temporaryProof;
return i || r || o || a ? new n({
verificationId: r,
verificationCode: i,
phoneNumber: o,
temporaryProof: a
}) : null
}
}]),
n
}(tt)
, Dt = function() {
function e(t) {
var n, r, i, o, a, l;
Object(s.a)(this, e);
var c = Object(j.y)(Object(j.j)(t))
, u = null !== (n = c.apiKey) && void 0 !== n ? n : null
, d = null !== (r = c.oobCode) && void 0 !== r ? r : null
, p = function(e) {
switch (e) {
case "recoverEmail":
return "RECOVER_EMAIL";
case "resetPassword":
return "PASSWORD_RESET";
case "signIn":
return "EMAIL_SIGNIN";
case "verifyEmail":
return "VERIFY_EMAIL";
case "verifyAndChangeEmail":
return "VERIFY_AND_CHANGE_EMAIL";
case "revertSecondFactorAddition":
return "REVERT_SECOND_FACTOR_ADDITION";
default:
return null
}
}(null !== (i = c.mode) && void 0 !== i ? i : null);
F(u && d && p, "argument-error"),
this.apiKey = u,
this.operation = p,
this.code = d,
this.continueUrl = null !== (o = c.continueUrl) && void 0 !== o ? o : null,
this.languageCode = null !== (a = c.languageCode) && void 0 !== a ? a : null,
this.tenantId = null !== (l = c.tenantId) && void 0 !== l ? l : null
}
return Object(c.a)(e, null, [{
key: "parseLink",
value: function(t) {
var n = function(e) {
var t = Object(j.y)(Object(j.j)(e)).link
, n = t ? Object(j.y)(Object(j.j)(t)).deep_link_id : null
, r = Object(j.y)(Object(j.j)(e)).deep_link_id;
return (r ? Object(j.y)(Object(j.j)(r)).link : null) || r || n || t || e
}(t);
try {
return new e(n)
} catch (e) {
return null
}
}
}]),
e
}()
, Lt = function() {
function e() {
Object(s.a)(this, e),
this.providerId = e.PROVIDER_ID
}
return Object(c.a)(e, null, [{
key: "credential",
value: function(e, t) {
return wt._fromEmailAndPassword(e, t)
}
}, {
key: "credentialWithLink",
value: function(e, t) {
var n = Dt.parseLink(t);
return F(n, "argument-error"),
wt._fromEmailAndCode(e, n.code, n.tenantId)
}
}]),
e
}();
Lt.PROVIDER_ID = "password",
Lt.EMAIL_PASSWORD_SIGN_IN_METHOD = "password",
Lt.EMAIL_LINK_SIGN_IN_METHOD = "emailLink";
var Rt = function() {
function e(t) {
Object(s.a)(this, e),
this.providerId = t,
this.defaultLanguageCode = null,
this.customParameters = {}
}
return Object(c.a)(e, [{
key: "setDefaultLanguage",
value: function(e) {
this.defaultLanguageCode = e
}
}, {
key: "setCustomParameters",
value: function(e) {
return this.customParameters = e,
this
}
}, {
key: "getCustomParameters",
value: function() {
return this.customParameters
}
}]),
e
}()
, Pt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
var e;
return Object(s.a)(this, n),
(e = t.apply(this, arguments)).scopes = [],
e
}
return Object(c.a)(n, [{
key: "addScope",
value: function(e) {
return this.scopes.includes(e) || this.scopes.push(e),
this
}
}, {
key: "getScopes",
value: function() {
return Object(x.a)(this.scopes)
}
}]),
n
}(Rt)
, Bt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
return Object(s.a)(this, n),
t.apply(this, arguments)
}
return Object(c.a)(n, [{
key: "credential",
value: function(e) {
return this._credential(Object.assign(Object.assign({}, e), {
nonce: e.rawNonce
}))
}
}, {
key: "_credential",
value: function(e) {
return F(e.idToken || e.accessToken, "argument-error"),
Mt._fromParams(Object.assign(Object.assign({}, e), {
providerId: this.providerId,
signInMethod: this.providerId
}))
}
}], [{
key: "credentialFromJSON",
value: function(e) {
var t = "string" == typeof e ? JSON.parse(e) : e;
return F("providerId"in t && "signInMethod"in t, "argument-error"),
Mt._fromParams(t)
}
}, {
key: "credentialFromResult",
value: function(e) {
return n.oauthCredentialFromTaggedObject(e)
}
}, {
key: "credentialFromError",
value: function(e) {
return n.oauthCredentialFromTaggedObject(e.customData || {})
}
}, {
key: "oauthCredentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t)
return null;
var r = t.oauthIdToken
, i = t.oauthAccessToken
, o = t.oauthTokenSecret
, a = t.pendingToken
, l = t.nonce
, s = t.providerId;
if (!(i || o || r || a))
return null;
if (!s)
return null;
try {
return new n(s)._credential({
idToken: r,
accessToken: i,
nonce: l,
pendingToken: a
})
} catch (e) {
return null
}
}
}]),
n
}(Pt)
, Ft = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
return Object(s.a)(this, n),
t.call(this, "facebook.com")
}
return Object(c.a)(n, null, [{
key: "credential",
value: function(e) {
return Mt._fromParams({
providerId: n.PROVIDER_ID,
signInMethod: n.FACEBOOK_SIGN_IN_METHOD,
accessToken: e
})
}
}, {
key: "credentialFromResult",
value: function(e) {
return n.credentialFromTaggedObject(e)
}
}, {
key: "credentialFromError",
value: function(e) {
return n.credentialFromTaggedObject(e.customData || {})
}
}, {
key: "credentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t || !("oauthAccessToken"in t))
return null;
if (!t.oauthAccessToken)
return null;
try {
return n.credential(t.oauthAccessToken)
} catch (e) {
return null
}
}
}]),
n
}(Pt);
Ft.FACEBOOK_SIGN_IN_METHOD = "facebook.com",
Ft.PROVIDER_ID = "facebook.com";
var Vt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
var e;
return Object(s.a)(this, n),
(e = t.call(this, "google.com")).addScope("profile"),
e
}
return Object(c.a)(n, null, [{
key: "credential",
value: function(e, t) {
return Mt._fromParams({
providerId: n.PROVIDER_ID,
signInMethod: n.GOOGLE_SIGN_IN_METHOD,
idToken: e,
accessToken: t
})
}
}, {
key: "credentialFromResult",
value: function(e) {
return n.credentialFromTaggedObject(e)
}
}, {
key: "credentialFromError",
value: function(e) {
return n.credentialFromTaggedObject(e.customData || {})
}
}, {
key: "credentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t)
return null;
var r = t.oauthIdToken
, i = t.oauthAccessToken;
if (!r && !i)
return null;
try {
return n.credential(r, i)
} catch (e) {
return null
}
}
}]),
n
}(Pt);
Vt.GOOGLE_SIGN_IN_METHOD = "google.com",
Vt.PROVIDER_ID = "google.com";
var Wt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
return Object(s.a)(this, n),
t.call(this, "github.com")
}
return Object(c.a)(n, null, [{
key: "credential",
value: function(e) {
return Mt._fromParams({
providerId: n.PROVIDER_ID,
signInMethod: n.GITHUB_SIGN_IN_METHOD,
accessToken: e
})
}
}, {
key: "credentialFromResult",
value: function(e) {
return n.credentialFromTaggedObject(e)
}
}, {
key: "credentialFromError",
value: function(e) {
return n.credentialFromTaggedObject(e.customData || {})
}
}, {
key: "credentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t || !("oauthAccessToken"in t))
return null;
if (!t.oauthAccessToken)
return null;
try {
return n.credential(t.oauthAccessToken)
} catch (e) {
return null
}
}
}]),
n
}(Pt);
Wt.GITHUB_SIGN_IN_METHOD = "github.com",
Wt.PROVIDER_ID = "github.com";
var qt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r) {
var i;
return Object(s.a)(this, n),
(i = t.call(this, e, e)).pendingToken = r,
i
}
return Object(c.a)(n, [{
key: "_getIdTokenResponse",
value: function(e) {
return Ct(e, this.buildRequest())
}
}, {
key: "_linkToIdToken",
value: function(e, t) {
var n = this.buildRequest();
return n.idToken = t,
Ct(e, n)
}
}, {
key: "_getReauthenticationResolver",
value: function(e) {
var t = this.buildRequest();
return t.autoCreate = !1,
Ct(e, t)
}
}, {
key: "toJSON",
value: function() {
return {
signInMethod: this.signInMethod,
providerId: this.providerId,
pendingToken: this.pendingToken
}
}
}, {
key: "buildRequest",
value: function() {
return {
requestUri: "http://localhost",
returnSecureToken: !0,
pendingToken: this.pendingToken
}
}
}], [{
key: "fromJSON",
value: function(e) {
var t = "string" == typeof e ? JSON.parse(e) : e
, r = t.providerId
, i = t.signInMethod
, o = t.pendingToken;
return r && i && o && r === i ? new n(r,o) : null
}
}, {
key: "_create",
value: function(e, t) {
return new n(e,t)
}
}]),
n
}(tt)
, Ht = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e) {
return Object(s.a)(this, n),
F(e.startsWith("saml."), "argument-error"),
t.call(this, e)
}
return Object(c.a)(n, null, [{
key: "credentialFromResult",
value: function(e) {
return n.samlCredentialFromTaggedObject(e)
}
}, {
key: "credentialFromError",
value: function(e) {
return n.samlCredentialFromTaggedObject(e.customData || {})
}
}, {
key: "credentialFromJSON",
value: function(e) {
var t = qt.fromJSON(e);
return F(t, "argument-error"),
t
}
}, {
key: "samlCredentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t)
return null;
var n = t.pendingToken
, r = t.providerId;
if (!n || !r)
return null;
try {
return qt._create(r, n)
} catch (e) {
return null
}
}
}]),
n
}(Rt)
, Ut = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
return Object(s.a)(this, n),
t.call(this, "twitter.com")
}
return Object(c.a)(n, null, [{
key: "credential",
value: function(e, t) {
return Mt._fromParams({
providerId: n.PROVIDER_ID,
signInMethod: n.TWITTER_SIGN_IN_METHOD,
oauthToken: e,
oauthTokenSecret: t
})
}
}, {
key: "credentialFromResult",
value: function(e) {
return n.credentialFromTaggedObject(e)
}
}, {
key: "credentialFromError",
value: function(e) {
return n.credentialFromTaggedObject(e.customData || {})
}
}, {
key: "credentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t)
return null;
var r = t.oauthAccessToken
, i = t.oauthTokenSecret;
if (!r || !i)
return null;
try {
return n.credential(r, i)
} catch (e) {
return null
}
}
}]),
n
}(Pt);
function Xt(e, t) {
return Gt.apply(this, arguments)
}
function Gt() {
return (Gt = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signUp", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
Ut.TWITTER_SIGN_IN_METHOD = "twitter.com",
Ut.PROVIDER_ID = "twitter.com";
var Kt = function() {
function e(t) {
Object(s.a)(this, e),
this.user = t.user,
this.providerId = t.providerId,
this._tokenResponse = t._tokenResponse,
this.operationType = t.operationType
}
return Object(c.a)(e, null, [{
key: "_fromIdTokenResponse",
value: function() {
var t = Object(f.a)(g.a.mark((function t(n, r, i) {
var o, a, l, s, c = arguments;
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return o = c.length > 3 && void 0 !== c[3] && c[3],
t.next = 3,
Ne._fromIdTokenResponse(n, i, o);
case 3:
return a = t.sent,
l = Yt(i),
s = new e({
user: a,
providerId: l,
_tokenResponse: i,
operationType: r
}),
t.abrupt("return", s);
case 7:
case "end":
return t.stop()
}
}
), t)
}
)));
return function(e, n, r) {
return t.apply(this, arguments)
}
}()
}, {
key: "_forOperation",
value: function() {
var t = Object(f.a)(g.a.mark((function t(n, r, i) {
var o;
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.next = 2,
n._updateTokensIfNecessary(i, !0);
case 2:
return o = Yt(i),
t.abrupt("return", new e({
user: n,
providerId: o,
_tokenResponse: i,
operationType: r
}));
case 4:
case "end":
return t.stop()
}
}
), t)
}
)));
return function(e, n, r) {
return t.apply(this, arguments)
}
}()
}]),
e
}();
function Yt(e) {
return e.providerId ? e.providerId : "phoneNumber"in e ? "phone" : null
}
function Qt(e) {
return Jt.apply(this, arguments)
}
function Jt() {
return (Jt = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Qe(t),
e.next = 3,
r._initializationPromise;
case 3:
if (!(null === (n = r.currentUser) || void 0 === n ? void 0 : n.isAnonymous)) {
e.next = 5;
break
}
return e.abrupt("return", new Kt({
user: r.currentUser,
providerId: null,
operationType: "signIn"
}));
case 5:
return e.next = 7,
Xt(r, {
returnSecureToken: !0
});
case 7:
return i = e.sent,
e.next = 10,
Kt._fromIdTokenResponse(r, "signIn", i, !0);
case 10:
return o = e.sent,
e.next = 13,
r._updateCurrentUser(o.user);
case 13:
return e.abrupt("return", o);
case 14:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var Zt = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r, i, o) {
var a, l;
return Object(s.a)(this, n),
(a = t.call(this, r.code, r.message)).operationType = i,
a.user = o,
Object.setPrototypeOf(Object(m.a)(a), n.prototype),
a.customData = {
appName: e.name,
tenantId: null !== (l = e.tenantId) && void 0 !== l ? l : void 0,
_serverResponse: r.customData._serverResponse,
operationType: i
},
a
}
return Object(c.a)(n, null, [{
key: "_fromErrorAndOperation",
value: function(e, t, r, i) {
return new n(e,t,r,i)
}
}]),
n
}(j.c);
function $t(e, t, n, r) {
return ("reauthenticate" === t ? n._getReauthenticationResolver(e) : n._getIdTokenResponse(e)).catch((function(n) {
if (n.code === "auth/".concat("multi-factor-auth-required"))
throw Zt._fromErrorAndOperation(e, n, t, r);
throw n
}
))
}
function en(e) {
return new Set(e.map((function(e) {
return e.providerId
}
)).filter((function(e) {
return !!e
}
)))
}
function tn(e, t) {
return nn.apply(this, arguments)
}
function nn() {
return (nn = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Object(j.k)(t),
e.next = 3,
an(!0, r, n);
case 3:
return e.t0 = de,
e.t1 = r.auth,
e.next = 7,
r.getIdToken();
case 7:
return e.t2 = e.sent,
e.t3 = [n],
e.t4 = {
idToken: e.t2,
deleteProvider: e.t3
},
e.next = 12,
(0,
e.t0)(e.t1, e.t4);
case 12:
return i = e.sent,
o = i.providerUserInfo,
a = en(o || []),
r.providerData = r.providerData.filter((function(e) {
return a.has(e.providerId)
}
)),
a.has("phone") || (r.phoneNumber = null),
e.next = 19,
r.auth._persistUserIfCurrent(r);
case 19:
return e.abrupt("return", r);
case 20:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function rn(e, t) {
return on.apply(this, arguments)
}
function on() {
return on = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = o.length > 2 && void 0 !== o[2] && o[2],
e.t0 = ye,
e.t1 = t,
e.t2 = n,
e.t3 = t.auth,
e.next = 7,
t.getIdToken();
case 7:
return e.t4 = e.sent,
e.t5 = e.t2._linkToIdToken.call(e.t2, e.t3, e.t4),
e.t6 = r,
e.next = 12,
(0,
e.t0)(e.t1, e.t5, e.t6);
case 12:
return i = e.sent,
e.abrupt("return", Kt._forOperation(t, "link", i));
case 14:
case "end":
return e.stop()
}
}
), e)
}
))),
on.apply(this, arguments)
}
function an(e, t, n) {
return ln.apply(this, arguments)
}
function ln() {
return (ln = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
we(n);
case 2:
i = en(n.providerData),
o = !1 === t ? "provider-already-linked" : "no-such-provider",
F(i.has(r) === t, n.auth, o);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function sn(e, t) {
return cn.apply(this, arguments)
}
function cn() {
return cn = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a, l, s, c = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = c.length > 2 && void 0 !== c[2] && c[2],
i = t.auth,
o = "reauthenticate",
e.prev = 3,
e.next = 6,
ye(t, $t(i, o, n, t), r);
case 6:
return F((a = e.sent).idToken, i, "internal-error"),
F(l = ve(a.idToken), i, "internal-error"),
s = l.sub,
F(t.uid === s, i, "user-mismatch"),
e.abrupt("return", Kt._forOperation(t, o, a));
case 15:
throw e.prev = 15,
e.t0 = e.catch(3),
(null === e.t0 || void 0 === e.t0 ? void 0 : e.t0.code) === "auth/".concat("user-not-found") && D(i, "user-mismatch"),
e.t0;
case 19:
case "end":
return e.stop()
}
}
), e, null, [[3, 15]])
}
))),
cn.apply(this, arguments)
}
function un(e, t) {
return dn.apply(this, arguments)
}
function dn() {
return dn = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a, l = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = l.length > 2 && void 0 !== l[2] && l[2],
i = "signIn",
e.next = 4,
$t(t, i, n);
case 4:
return o = e.sent,
e.next = 7,
Kt._fromIdTokenResponse(t, i, o);
case 7:
if (a = e.sent,
r) {
e.next = 11;
break
}
return e.next = 11,
t._updateCurrentUser(a.user);
case 11:
return e.abrupt("return", a);
case 12:
case "end":
return e.stop()
}
}
), e)
}
))),
dn.apply(this, arguments)
}
function pn(e, t) {
return hn.apply(this, arguments)
}
function hn() {
return (hn = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", un(Qe(t), n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function fn(e, t) {
return bn.apply(this, arguments)
}
function bn() {
return (bn = Object(f.a)(g.a.mark((function e(t, n) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Object(j.k)(t),
e.next = 3,
an(!1, r, n.providerId);
case 3:
return e.abrupt("return", rn(r, n));
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function gn(e, t) {
return mn.apply(this, arguments)
}
function mn() {
return (mn = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", sn(Object(j.k)(t), n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function vn(e, t) {
return yn.apply(this, arguments)
}
function yn() {
return (yn = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ie(t, "POST", "/v1/accounts:signInWithCustomToken", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function xn(e, t) {
return On.apply(this, arguments)
}
function On() {
return (On = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Qe(t),
e.next = 3,
vn(r, {
token: n,
returnSecureToken: !0
});
case 3:
return i = e.sent,
e.next = 6,
Kt._fromIdTokenResponse(r, "signIn", i);
case 6:
return o = e.sent,
e.next = 9,
r._updateCurrentUser(o.user);
case 9:
return e.abrupt("return", o);
case 10:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var jn = function() {
function e(t, n) {
Object(s.a)(this, e),
this.factorId = t,
this.uid = n.mfaEnrollmentId,
this.enrollmentTime = new Date(n.enrolledAt).toUTCString(),
this.displayName = n.displayName
}
return Object(c.a)(e, null, [{
key: "_fromServerResponse",
value: function(e, t) {
return "phoneInfo"in t ? kn._fromServerResponse(e, t) : D(e, "internal-error")
}
}]),
e
}()
, kn = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e) {
var r;
return Object(s.a)(this, n),
(r = t.call(this, "phone", e)).phoneNumber = e.phoneInfo,
r
}
return Object(c.a)(n, null, [{
key: "_fromServerResponse",
value: function(e, t) {
return new n(t)
}
}]),
n
}(jn);
function wn(e, t, n) {
var r;
F((null === (r = n.url) || void 0 === r ? void 0 : r.length) > 0, e, "invalid-continue-uri"),
F(void 0 === n.dynamicLinkDomain || n.dynamicLinkDomain.length > 0, e, "invalid-dynamic-link-domain"),
t.continueUrl = n.url,
t.dynamicLinkDomain = n.dynamicLinkDomain,
t.canHandleCodeInApp = n.handleCodeInApp,
n.iOS && (F(n.iOS.bundleId.length > 0, e, "missing-ios-bundle-id"),
t.iOSBundleId = n.iOS.bundleId),
n.android && (F(n.android.packageName.length > 0, e, "missing-android-pkg-name"),
t.androidInstallApp = n.android.installApp,
t.androidMinimumVersionCode = n.android.minimumVersion,
t.androidPackageName = n.android.packageName)
}
function Cn(e, t, n) {
return _n.apply(this, arguments)
}
function _n() {
return (_n = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Object(j.k)(t),
o = {
requestType: "PASSWORD_RESET",
email: n
},
r && wn(i, o, r),
e.next = 5,
ft(i, o);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Mn(e, t, n) {
return Sn.apply(this, arguments)
}
function Sn() {
return (Sn = Object(f.a)(g.a.mark((function e(t, n, r) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
nt(Object(j.k)(t), {
oobCode: n,
newPassword: r
});
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function An(e, t) {
return Tn.apply(this, arguments)
}
function Tn() {
return (Tn = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
at(Object(j.k)(t), {
oobCode: n
});
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function En(e, t) {
return In.apply(this, arguments)
}
function In() {
return (In = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Object(j.k)(t),
e.next = 3,
nt(r, {
oobCode: n
});
case 3:
i = e.sent,
F(o = i.requestType, r, "internal-error"),
e.t0 = o,
e.next = "EMAIL_SIGNIN" === e.t0 ? 9 : "VERIFY_AND_CHANGE_EMAIL" === e.t0 ? 10 : "REVERT_SECOND_FACTOR_ADDITION" === e.t0 ? 12 : 13;
break;
case 9:
return e.abrupt("break", 14);
case 10:
return F(i.newEmail, r, "internal-error"),
e.abrupt("break", 14);
case 12:
F(i.mfaInfo, r, "internal-error");
case 13:
F(i.email, r, "internal-error");
case 14:
return a = null,
i.mfaInfo && (a = jn._fromServerResponse(Qe(r), i.mfaInfo)),
e.abrupt("return", {
data: {
email: ("VERIFY_AND_CHANGE_EMAIL" === i.requestType ? i.newEmail : i.email) || null,
previousEmail: ("VERIFY_AND_CHANGE_EMAIL" === i.requestType ? i.email : i.newEmail) || null,
multiFactorInfo: a
},
operation: o
});
case 17:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Nn(e, t) {
return zn.apply(this, arguments)
}
function zn() {
return (zn = Object(f.a)(g.a.mark((function e(t, n) {
var r, i;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
En(Object(j.k)(t), n);
case 2:
return r = e.sent,
i = r.data,
e.abrupt("return", i.email);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Dn(e, t, n) {
return Ln.apply(this, arguments)
}
function Ln() {
return (Ln = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Qe(t),
e.next = 3,
Xt(i, {
returnSecureToken: !0,
email: n,
password: r
});
case 3:
return o = e.sent,
e.next = 6,
Kt._fromIdTokenResponse(i, "signIn", o);
case 6:
return a = e.sent,
e.next = 9,
i._updateCurrentUser(a.user);
case 9:
return e.abrupt("return", a);
case 10:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Rn(e, t, n) {
return pn(Object(j.k)(e), Lt.credential(t, n))
}
function Pn(e, t, n) {
return Bn.apply(this, arguments)
}
function Bn() {
return (Bn = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Object(j.k)(t),
o = {
requestType: "EMAIL_SIGNIN",
email: n
},
F(r.handleCodeInApp, i, "argument-error"),
r && wn(i, o, r),
e.next = 6,
gt(i, o);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Fn(e, t) {
var n = Dt.parseLink(t);
return "EMAIL_SIGNIN" === (null == n ? void 0 : n.operation)
}
function Vn(e, t, n) {
return Wn.apply(this, arguments)
}
function Wn() {
return (Wn = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Object(j.k)(t),
F((o = Lt.credentialWithLink(n, r || U()))._tenantId === (i.tenantId || null), i, "tenant-id-mismatch"),
e.abrupt("return", pn(i, o));
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function qn(e, t) {
return Hn.apply(this, arguments)
}
function Hn() {
return (Hn = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:createAuthUri", $(t, n)));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Un(e, t) {
return Xn.apply(this, arguments)
}
function Xn() {
return (Xn = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = X() ? U() : "http://localhost",
i = {
identifier: n,
continueUri: r
},
e.next = 4,
qn(Object(j.k)(t), i);
case 4:
return o = e.sent,
a = o.signinMethods,
e.abrupt("return", a || []);
case 7:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Gn(e, t) {
return Kn.apply(this, arguments)
}
function Kn() {
return (Kn = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Object(j.k)(t),
e.next = 3,
t.getIdToken();
case 3:
return i = e.sent,
o = {
requestType: "VERIFY_EMAIL",
idToken: i
},
n && wn(r.auth, o, n),
e.next = 8,
pt(r.auth, o);
case 8:
if (e.sent.email === t.email) {
e.next = 13;
break
}
return e.next = 13,
t.reload();
case 13:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Yn(e, t, n) {
return Qn.apply(this, arguments)
}
function Qn() {
return (Qn = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Object(j.k)(t),
e.next = 3,
t.getIdToken();
case 3:
return o = e.sent,
a = {
requestType: "VERIFY_AND_CHANGE_EMAIL",
idToken: o,
newEmail: n
},
r && wn(i.auth, a, r),
e.next = 8,
vt(i.auth, a);
case 8:
if (e.sent.email === t.email) {
e.next = 13;
break
}
return e.next = 13,
t.reload();
case 13:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Jn(e, t) {
return Zn.apply(this, arguments)
}
function Zn() {
return (Zn = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ee(t, "POST", "/v1/accounts:update", n));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function $n(e, t) {
return er.apply(this, arguments)
}
function er() {
return (er = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a, l, s, c;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = n.displayName,
i = n.photoURL,
void 0 !== r || void 0 !== i) {
e.next = 3;
break
}
return e.abrupt("return");
case 3:
return o = Object(j.k)(t),
e.next = 6,
o.getIdToken();
case 6:
return a = e.sent,
l = {
idToken: a,
displayName: r,
photoUrl: i,
returnSecureToken: !0
},
e.next = 10,
ye(o, Jn(o.auth, l));
case 10:
return s = e.sent,
o.displayName = s.displayName || null,
o.photoURL = s.photoUrl || null,
(c = o.providerData.find((function(e) {
return "password" === e.providerId
}
))) && (c.displayName = o.displayName,
c.photoURL = o.photoURL),
e.next = 17,
o._updateTokensIfNecessary(s);
case 17:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function tr(e, t) {
return rr(Object(j.k)(e), t, null)
}
function nr(e, t) {
return rr(Object(j.k)(e), null, t)
}
function rr(e, t, n) {
return ir.apply(this, arguments)
}
function ir() {
return (ir = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a, l;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = t.auth,
e.next = 3,
t.getIdToken();
case 3:
return o = e.sent,
a = {
idToken: o,
returnSecureToken: !0
},
n && (a.email = n),
r && (a.password = r),
e.next = 9,
ye(t, it(i, a));
case 9:
return l = e.sent,
e.next = 12,
t._updateTokensIfNecessary(l, !0);
case 12:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var or = Object(c.a)((function e(t, n) {
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
Object(s.a)(this, e),
this.isNewUser = t,
this.providerId = n,
this.profile = r
}
))
, ar = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r, i, o) {
var a;
return Object(s.a)(this, n),
(a = t.call(this, e, r, i)).username = o,
a
}
return Object(c.a)(n)
}(or)
, lr = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r) {
return Object(s.a)(this, n),
t.call(this, e, "facebook.com", r)
}
return Object(c.a)(n)
}(or)
, sr = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r) {
return Object(s.a)(this, n),
t.call(this, e, "github.com", r, "string" == typeof (null == r ? void 0 : r.login) ? null == r ? void 0 : r.login : null)
}
return Object(c.a)(n)
}(ar)
, cr = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r) {
return Object(s.a)(this, n),
t.call(this, e, "google.com", r)
}
return Object(c.a)(n)
}(or)
, ur = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r, i) {
return Object(s.a)(this, n),
t.call(this, e, "twitter.com", r, i)
}
return Object(c.a)(n)
}(ar);
function dr(e) {
var t = e.user
, n = e._tokenResponse;
return t.isAnonymous && !n ? {
providerId: null,
isNewUser: !1,
profile: null
} : function(e) {
var t, n;
if (!e)
return null;
var r = e.providerId
, i = e.rawUserInfo ? JSON.parse(e.rawUserInfo) : {}
, o = e.isNewUser || "identitytoolkit#SignupNewUserResponse" === e.kind;
if (!r && (null == e ? void 0 : e.idToken)) {
var a = null === (n = null === (t = ve(e.idToken)) || void 0 === t ? void 0 : t.firebase) || void 0 === n ? void 0 : n.sign_in_provider;
if (a)
return new or(o,"anonymous" !== a && "custom" !== a ? a : null)
}
if (!r)
return null;
switch (r) {
case "facebook.com":
return new lr(o,i);
case "github.com":
return new sr(o,i);
case "google.com":
return new cr(o,i);
case "twitter.com":
return new ur(o,i,e.screenName || null);
case "custom":
case "anonymous":
return new or(o,null);
default:
return new or(o,r,i)
}
}(n)
}
var pr = function() {
function e(t, n) {
Object(s.a)(this, e),
this.type = t,
this.credential = n
}
return Object(c.a)(e, [{
key: "toJSON",
value: function() {
var e = "enroll" === this.type ? "idToken" : "pendingCredential";
return {
multiFactorSession: Object(O.a)({}, e, this.credential)
}
}
}], [{
key: "_fromIdtoken",
value: function(t) {
return new e("enroll",t)
}
}, {
key: "_fromMfaPendingCredential",
value: function(t) {
return new e("signin",t)
}
}, {
key: "fromJSON",
value: function(t) {
var n, r;
if (null == t ? void 0 : t.multiFactorSession) {
if (null === (n = t.multiFactorSession) || void 0 === n ? void 0 : n.pendingCredential)
return e._fromMfaPendingCredential(t.multiFactorSession.pendingCredential);
if (null === (r = t.multiFactorSession) || void 0 === r ? void 0 : r.idToken)
return e._fromIdtoken(t.multiFactorSession.idToken)
}
return null
}
}]),
e
}()
, hr = function() {
function e(t, n, r) {
Object(s.a)(this, e),
this.session = t,
this.hints = n,
this.signInResolver = r
}
return Object(c.a)(e, [{
key: "resolveSignIn",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = t,
e.abrupt("return", this.signInResolver(n));
case 2:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}], [{
key: "_fromError",
value: function(t, n) {
var r = Qe(t)
, i = n.customData._serverResponse
, o = (i.mfaInfo || []).map((function(e) {
return jn._fromServerResponse(r, e)
}
));
F(i.mfaPendingCredential, r, "internal-error");
var a = pr._fromMfaPendingCredential(i.mfaPendingCredential);
return new e(a,o,function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var o, l, s;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
t._process(r, a);
case 2:
o = e.sent,
delete i.mfaInfo,
delete i.mfaPendingCredential,
l = Object.assign(Object.assign({}, i), {
idToken: o.idToken,
refreshToken: o.refreshToken
}),
e.t0 = n.operationType,
e.next = "signIn" === e.t0 ? 9 : "reauthenticate" === e.t0 ? 15 : 17;
break;
case 9:
return e.next = 11,
Kt._fromIdTokenResponse(r, n.operationType, l);
case 11:
return s = e.sent,
e.next = 14,
r._updateCurrentUser(s.user);
case 14:
return e.abrupt("return", s);
case 15:
return F(n.user, r, "internal-error"),
e.abrupt("return", Kt._forOperation(n.user, n.operationType, l));
case 17:
D(r, "internal-error");
case 18:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}())
}
}]),
e
}();
function fr(e, t) {
var n, r = Object(j.k)(e), i = t;
return F(t.customData.operationType, r, "argument-error"),
F(null === (n = i.customData._serverResponse) || void 0 === n ? void 0 : n.mfaPendingCredential, r, "argument-error"),
hr._fromError(r, i)
}
function br(e, t) {
return ee(e, "POST", "/v2/accounts/mfaEnrollment:start", $(e, t))
}
var gr = function() {
function e(t) {
var n = this;
Object(s.a)(this, e),
this.user = t,
this.enrolledFactors = [],
t._onReload((function(e) {
e.mfaInfo && (n.enrolledFactors = e.mfaInfo.map((function(e) {
return jn._fromServerResponse(t.auth, e)
}
)))
}
))
}
return Object(c.a)(e, [{
key: "getSession",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.t0 = pr,
e.next = 3,
this.user.getIdToken();
case 3:
return e.t1 = e.sent,
e.abrupt("return", e.t0._fromIdtoken.call(e.t0, e.t1));
case 5:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "enroll",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = t,
e.next = 3,
this.getSession();
case 3:
return i = e.sent,
e.next = 6,
ye(this.user, r._process(this.user.auth, i, n));
case 6:
return o = e.sent,
e.next = 9,
this.user._updateTokensIfNecessary(o);
case 9:
return e.abrupt("return", this.user.reload());
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "unenroll",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r, i;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = "string" == typeof t ? t : t.uid,
e.next = 3,
this.user.getIdToken();
case 3:
return r = e.sent,
e.next = 6,
ye(this.user, ee(o = this.user.auth, "POST", "/v2/accounts/mfaEnrollment:withdraw", $(o, {
idToken: r,
mfaEnrollmentId: n
})));
case 6:
return i = e.sent,
this.enrolledFactors = this.enrolledFactors.filter((function(e) {
return e.uid !== n
}
)),
e.next = 10,
this.user._updateTokensIfNecessary(i);
case 10:
return e.prev = 10,
e.next = 13,
this.user.reload();
case 13:
e.next = 19;
break;
case 15:
if (e.prev = 15,
e.t0 = e.catch(10),
e.t0.code === "auth/".concat("user-token-expired")) {
e.next = 19;
break
}
throw e.t0;
case 19:
case "end":
return e.stop()
}
var o
}
), e, this, [[10, 15]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}], [{
key: "_fromUser",
value: function(t) {
return new e(t)
}
}]),
e
}()
, mr = new WeakMap;
function vr(e) {
var t = Object(j.k)(e);
return mr.has(t) || mr.set(t, gr._fromUser(t)),
mr.get(t)
}
var yr = "__sak"
, xr = function() {
function e(t, n) {
Object(s.a)(this, e),
this.storageRetriever = t,
this.type = n
}
return Object(c.a)(e, [{
key: "_isAvailable",
value: function() {
try {
return this.storage ? (this.storage.setItem(yr, "1"),
this.storage.removeItem(yr),
Promise.resolve(!0)) : Promise.resolve(!1)
} catch (e) {
return Promise.resolve(!1)
}
}
}, {
key: "_set",
value: function(e, t) {
return this.storage.setItem(e, JSON.stringify(t)),
Promise.resolve()
}
}, {
key: "_get",
value: function(e) {
var t = this.storage.getItem(e);
return Promise.resolve(t ? JSON.parse(t) : null)
}
}, {
key: "_remove",
value: function(e) {
return this.storage.removeItem(e),
Promise.resolve()
}
}, {
key: "storage",
get: function() {
return this.storageRetriever()
}
}]),
e
}()
, Or = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
var e;
return Object(s.a)(this, n),
(e = t.call(this, (function() {
return window.localStorage
}
), "LOCAL")).boundEventHandler = function(t, n) {
return e.onStorageEvent(t, n)
}
,
e.listeners = {},
e.localCache = {},
e.pollTimer = null,
e.safariLocalStorageNotSynced = function() {
var e = Object(j.l)();
return Fe(e) || Xe(e)
}() && function() {
try {
return !(!window || window === window.top)
} catch (e) {
return !1
}
}(),
e.fallbackToPolling = Ge(),
e._shouldAllowMigration = !0,
e
}
return Object(c.a)(n, [{
key: "forAllChangedKeys",
value: function(e) {
for (var t = 0, n = Object.keys(this.listeners); t < n.length; t++) {
var r = n[t]
, i = this.storage.getItem(r)
, o = this.localCache[r];
i !== o && e(r, o, i)
}
}
}, {
key: "onStorageEvent",
value: function(e) {
var t = this
, n = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
if (e.key) {
var r = e.key;
if (n ? this.detachListener() : this.stopPolling(),
this.safariLocalStorageNotSynced) {
var i = this.storage.getItem(r);
if (e.newValue !== i)
null !== e.newValue ? this.storage.setItem(r, e.newValue) : this.storage.removeItem(r);
else if (this.localCache[r] === e.newValue && !n)
return
}
var o = function() {
var e = t.storage.getItem(r);
(n || t.localCache[r] !== e) && t.notifyListeners(r, e)
}
, a = this.storage.getItem(r);
Object(j.q)() && 10 === document.documentMode && a !== e.newValue && e.newValue !== e.oldValue ? setTimeout(o, 10) : o()
} else
this.forAllChangedKeys((function(e, n, r) {
t.notifyListeners(e, r)
}
))
}
}, {
key: "notifyListeners",
value: function(e, t) {
this.localCache[e] = t;
var n = this.listeners[e];
if (n)
for (var r = 0, i = Array.from(n); r < i.length; r++)
(0,
i[r])(t ? JSON.parse(t) : t)
}
}, {
key: "startPolling",
value: function() {
var e = this;
this.stopPolling(),
this.pollTimer = setInterval((function() {
e.forAllChangedKeys((function(t, n, r) {
e.onStorageEvent(new StorageEvent("storage",{
key: t,
oldValue: n,
newValue: r
}), !0)
}
))
}
), 1e3)
}
}, {
key: "stopPolling",
value: function() {
this.pollTimer && (clearInterval(this.pollTimer),
this.pollTimer = null)
}
}, {
key: "attachListener",
value: function() {
window.addEventListener("storage", this.boundEventHandler)
}
}, {
key: "detachListener",
value: function() {
window.removeEventListener("storage", this.boundEventHandler)
}
}, {
key: "_addListener",
value: function(e, t) {
0 === Object.keys(this.listeners).length && (this.fallbackToPolling ? this.startPolling() : this.attachListener()),
this.listeners[e] || (this.listeners[e] = new Set,
this.localCache[e] = this.storage.getItem(e)),
this.listeners[e].add(t)
}
}, {
key: "_removeListener",
value: function(e, t) {
this.listeners[e] && (this.listeners[e].delete(t),
0 === this.listeners[e].size && delete this.listeners[e]),
0 === Object.keys(this.listeners).length && (this.detachListener(),
this.stopPolling())
}
}, {
key: "_set",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, r) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Object(u.a)(Object(d.a)(n.prototype), "_set", this).call(this, t, r);
case 2:
this.localCache[t] = JSON.stringify(r);
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "_get",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Object(u.a)(Object(d.a)(n.prototype), "_get", this).call(this, t);
case 2:
return r = e.sent,
this.localCache[t] = JSON.stringify(r),
e.abrupt("return", r);
case 5:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_remove",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Object(u.a)(Object(d.a)(n.prototype), "_remove", this).call(this, t);
case 2:
delete this.localCache[t];
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}]),
n
}(xr);
Or.type = "LOCAL";
var jr = Or
, kr = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
return Object(s.a)(this, n),
t.call(this, (function() {
return window.sessionStorage
}
), "SESSION")
}
return Object(c.a)(n, [{
key: "_addListener",
value: function(e, t) {}
}, {
key: "_removeListener",
value: function(e, t) {}
}]),
n
}(xr);
kr.type = "SESSION";
var wr = kr;
function Cr(e) {
return Promise.all(e.map(function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
t;
case 3:
return n = e.sent,
e.abrupt("return", {
fulfilled: !0,
value: n
});
case 7:
return e.prev = 7,
e.t0 = e.catch(0),
e.abrupt("return", {
fulfilled: !1,
reason: e.t0
});
case 10:
case "end":
return e.stop()
}
}
), e, null, [[0, 7]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()))
}
var _r = function() {
function e(t) {
Object(s.a)(this, e),
this.eventTarget = t,
this.handlersMap = {},
this.boundEventHandler = this.handleEvent.bind(this)
}
return Object(c.a)(e, [{
key: "isListeningto",
value: function(e) {
return this.eventTarget === e
}
}, {
key: "handleEvent",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o, a, l, s, c;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = (n = t).data,
i = r.eventId,
o = r.eventType,
a = r.data,
null === (l = this.handlersMap[o]) || void 0 === l ? void 0 : l.size) {
e.next = 5;
break
}
return e.abrupt("return");
case 5:
return n.ports[0].postMessage({
status: "ack",
eventId: i,
eventType: o
}),
s = Array.from(l).map(function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", t(n.origin, a));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()),
e.next = 9,
Cr(s);
case 9:
c = e.sent,
n.ports[0].postMessage({
status: "done",
eventId: i,
eventType: o,
response: c
});
case 11:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_subscribe",
value: function(e, t) {
0 === Object.keys(this.handlersMap).length && this.eventTarget.addEventListener("message", this.boundEventHandler),
this.handlersMap[e] || (this.handlersMap[e] = new Set),
this.handlersMap[e].add(t)
}
}, {
key: "_unsubscribe",
value: function(e, t) {
this.handlersMap[e] && t && this.handlersMap[e].delete(t),
t && 0 !== this.handlersMap[e].size || delete this.handlersMap[e],
0 === Object.keys(this.handlersMap).length && this.eventTarget.removeEventListener("message", this.boundEventHandler)
}
}], [{
key: "_getInstance",
value: function(t) {
var n = this.receivers.find((function(e) {
return e.isListeningto(t)
}
));
if (n)
return n;
var r = new e(t);
return this.receivers.push(r),
r
}
}]),
e
}();
function Mr() {
for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10, n = "", r = 0; r < t; r++)
n += Math.floor(10 * Math.random());
return e + n
}
_r.receivers = [];
var Sr = function() {
function e(t) {
Object(s.a)(this, e),
this.target = t,
this.handlers = new Set
}
return Object(c.a)(e, [{
key: "removeMessageHandler",
value: function(e) {
e.messageChannel && (e.messageChannel.port1.removeEventListener("message", e.onMessage),
e.messageChannel.port1.close()),
this.handlers.delete(e)
}
}, {
key: "_send",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a, l = this, s = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = s.length > 2 && void 0 !== s[2] ? s[2] : 50,
i = "undefined" != typeof MessageChannel ? new MessageChannel : null) {
e.next = 4;
break
}
throw new Error("connection_unavailable");
case 4:
return e.abrupt("return", new Promise((function(e, s) {
var c = Mr("", 20);
i.port1.start();
var u = setTimeout((function() {
s(new Error("unsupported_event"))
}
), r);
a = {
messageChannel: i,
onMessage: function(t) {
var n = t;
if (n.data.eventId === c)
switch (n.data.status) {
case "ack":
clearTimeout(u),
o = setTimeout((function() {
s(new Error("timeout"))
}
), 3e3);
break;
case "done":
clearTimeout(o),
e(n.data.response);
break;
default:
clearTimeout(u),
clearTimeout(o),
s(new Error("invalid_response"))
}
}
},
l.handlers.add(a),
i.port1.addEventListener("message", a.onMessage),
l.target.postMessage({
eventType: t,
eventId: c,
data: n
}, [i.port2])
}
)).finally((function() {
a && l.removeMessageHandler(a)
}
)));
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}]),
e
}();
function Ar() {
return window
}
function Tr() {
return void 0 !== Ar().WorkerGlobalScope && "function" == typeof Ar().importScripts
}
function Er() {
return Ir.apply(this, arguments)
}
function Ir() {
return (Ir = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (null === navigator || void 0 === navigator ? void 0 : navigator.serviceWorker) {
e.next = 2;
break
}
return e.abrupt("return", null);
case 2:
return e.prev = 2,
e.next = 5,
navigator.serviceWorker.ready;
case 5:
return t = e.sent,
e.abrupt("return", t.active);
case 9:
return e.prev = 9,
e.t0 = e.catch(2),
e.abrupt("return", null);
case 12:
case "end":
return e.stop()
}
}
), e, null, [[2, 9]])
}
)))).apply(this, arguments)
}
function Nr() {
var e;
return (null === (e = null === navigator || void 0 === navigator ? void 0 : navigator.serviceWorker) || void 0 === e ? void 0 : e.controller) || null
}
var zr = "firebaseLocalStorageDb"
, Dr = "firebaseLocalStorage"
, Lr = "fbase_key"
, Rr = function() {
function e(t) {
Object(s.a)(this, e),
this.request = t
}
return Object(c.a)(e, [{
key: "toPromise",
value: function() {
var e = this;
return new Promise((function(t, n) {
e.request.addEventListener("success", (function() {
t(e.request.result)
}
)),
e.request.addEventListener("error", (function() {
n(e.request.error)
}
))
}
))
}
}]),
e
}();
function Pr(e, t) {
return e.transaction([Dr], t ? "readwrite" : "readonly").objectStore(Dr)
}
function Br() {
var e = indexedDB.deleteDatabase(zr);
return new Rr(e).toPromise()
}
function Fr() {
var e = indexedDB.open(zr, 1);
return new Promise((function(t, n) {
e.addEventListener("error", (function() {
n(e.error)
}
)),
e.addEventListener("upgradeneeded", (function() {
var t = e.result;
try {
t.createObjectStore(Dr, {
keyPath: Lr
})
} catch (e) {
n(e)
}
}
)),
e.addEventListener("success", Object(f.a)(g.a.mark((function n() {
var r;
return g.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
if ((r = e.result).objectStoreNames.contains(Dr)) {
n.next = 12;
break
}
return r.close(),
n.next = 5,
Br();
case 5:
return n.t0 = t,
n.next = 8,
Fr();
case 8:
n.t1 = n.sent,
(0,
n.t0)(n.t1),
n.next = 13;
break;
case 12:
t(r);
case 13:
case "end":
return n.stop()
}
}
), n)
}
))))
}
))
}
function Vr(e, t, n) {
return Wr.apply(this, arguments)
}
function Wr() {
return (Wr = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return o = Pr(t, !0).put((i = {},
Object(O.a)(i, Lr, n),
Object(O.a)(i, "value", r),
i)),
e.abrupt("return", new Rr(o).toPromise());
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function qr(e, t) {
return Hr.apply(this, arguments)
}
function Hr() {
return (Hr = Object(f.a)(g.a.mark((function e(t, n) {
var r, i;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Pr(t, !1).get(n),
e.next = 3,
new Rr(r).toPromise();
case 3:
return i = e.sent,
e.abrupt("return", void 0 === i ? null : i.value);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ur(e, t) {
var n = Pr(e, !0).delete(t);
return new Rr(n).toPromise()
}
var Xr = function() {
function e() {
Object(s.a)(this, e),
this.type = "LOCAL",
this._shouldAllowMigration = !0,
this.listeners = {},
this.localCache = {},
this.pollTimer = null,
this.pendingWrites = 0,
this.receiver = null,
this.sender = null,
this.serviceWorkerReceiverAvailable = !1,
this.activeServiceWorker = null,
this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then((function() {}
), (function() {}
))
}
return Object(c.a)(e, [{
key: "_openDb",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this.db) {
e.next = 2;
break
}
return e.abrupt("return", this.db);
case 2:
return e.next = 4,
Fr();
case 4:
return this.db = e.sent,
e.abrupt("return", this.db);
case 6:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "_withRetries",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
n = 0;
case 1:
return e.prev = 2,
e.next = 5,
this._openDb();
case 5:
return r = e.sent,
e.next = 8,
t(r);
case 8:
return e.abrupt("return", e.sent);
case 11:
if (e.prev = 11,
e.t0 = e.catch(2),
!(n++ > 3)) {
e.next = 15;
break
}
throw e.t0;
case 15:
this.db && (this.db.close(),
this.db = void 0);
case 16:
e.next = 1;
break;
case 18:
case "end":
return e.stop()
}
}
), e, this, [[2, 11]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "initializeServiceWorkerMessaging",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", Tr() ? this.initializeReceiver() : this.initializeSender());
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "initializeReceiver",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
this.receiver = _r._getInstance(Tr() ? self : null),
this.receiver._subscribe("keyChanged", function() {
var e = Object(f.a)(g.a.mark((function e(n, r) {
var i;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
t._poll();
case 2:
return i = e.sent,
e.abrupt("return", {
keyProcessed: i.includes(r.key)
});
case 4:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()),
this.receiver._subscribe("ping", function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", ["keyChanged"]);
case 1:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}());
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "initializeSender",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t, n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Er();
case 2:
if (this.activeServiceWorker = e.sent,
this.activeServiceWorker) {
e.next = 5;
break
}
return e.abrupt("return");
case 5:
return this.sender = new Sr(this.activeServiceWorker),
e.next = 8,
this.sender._send("ping", {}, 800);
case 8:
if (r = e.sent) {
e.next = 11;
break
}
return e.abrupt("return");
case 11:
(null === (t = r[0]) || void 0 === t ? void 0 : t.fulfilled) && (null === (n = r[0]) || void 0 === n ? void 0 : n.value.includes("keyChanged")) && (this.serviceWorkerReceiverAvailable = !0);
case 12:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "notifyServiceWorker",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (this.sender && this.activeServiceWorker && Nr() === this.activeServiceWorker) {
e.next = 2;
break
}
return e.abrupt("return");
case 2:
return e.prev = 2,
e.next = 5,
this.sender._send("keyChanged", {
key: t
}, this.serviceWorkerReceiverAvailable ? 800 : 50);
case 5:
e.next = 9;
break;
case 7:
e.prev = 7,
e.t0 = e.catch(2);
case 9:
case "end":
return e.stop()
}
}
), e, this, [[2, 7]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_isAvailable",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.prev = 0,
indexedDB) {
e.next = 3;
break
}
return e.abrupt("return", !1);
case 3:
return e.next = 5,
Fr();
case 5:
return t = e.sent,
e.next = 8,
Vr(t, yr, "1");
case 8:
return e.next = 10,
Ur(t, yr);
case 10:
return e.abrupt("return", !0);
case 13:
e.prev = 13,
e.t0 = e.catch(0);
case 15:
return e.abrupt("return", !1);
case 16:
case "end":
return e.stop()
}
}
), e, null, [[0, 13]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "_withPendingWrite",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.pendingWrites++,
e.prev = 1,
e.next = 4,
t();
case 4:
return e.prev = 4,
this.pendingWrites--,
e.finish(4);
case 7:
case "end":
return e.stop()
}
}
), e, this, [[1, , 4, 7]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_set",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n) {
var r = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", this._withPendingWrite(Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
r._withRetries((function(e) {
return Vr(e, t, n)
}
));
case 2:
return r.localCache[t] = n,
e.abrupt("return", r.notifyServiceWorker(t));
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "_get",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this._withRetries((function(e) {
return qr(e, t)
}
));
case 2:
return n = e.sent,
this.localCache[t] = n,
e.abrupt("return", n);
case 5:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_remove",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", this._withPendingWrite(Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
n._withRetries((function(e) {
return Ur(e, t)
}
));
case 2:
return delete n.localCache[t],
e.abrupt("return", n.notifyServiceWorker(t));
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_poll",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t, n, r, i, o, a, l, s, c, u, d;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this._withRetries((function(e) {
var t = Pr(e, !1).getAll();
return new Rr(t).toPromise()
}
));
case 2:
if (t = e.sent) {
e.next = 5;
break
}
return e.abrupt("return", []);
case 5:
if (0 === this.pendingWrites) {
e.next = 7;
break
}
return e.abrupt("return", []);
case 7:
n = [],
r = new Set,
i = Object(v.a)(t);
try {
for (i.s(); !(o = i.n()).done; )
a = o.value,
l = a.fbase_key,
s = a.value,
r.add(l),
JSON.stringify(this.localCache[l]) !== JSON.stringify(s) && (this.notifyListeners(l, s),
n.push(l))
} catch (e) {
i.e(e)
} finally {
i.f()
}
for (c = 0,
u = Object.keys(this.localCache); c < u.length; c++)
d = u[c],
this.localCache[d] && !r.has(d) && (this.notifyListeners(d, null),
n.push(d));
return e.abrupt("return", n);
case 13:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "notifyListeners",
value: function(e, t) {
this.localCache[e] = t;
var n = this.listeners[e];
if (n)
for (var r = 0, i = Array.from(n); r < i.length; r++)
(0,
i[r])(t)
}
}, {
key: "startPolling",
value: function() {
var e = this;
this.stopPolling(),
this.pollTimer = setInterval(Object(f.a)(g.a.mark((function t() {
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.abrupt("return", e._poll());
case 1:
case "end":
return t.stop()
}
}
), t)
}
))), 800)
}
}, {
key: "stopPolling",
value: function() {
this.pollTimer && (clearInterval(this.pollTimer),
this.pollTimer = null)
}
}, {
key: "_addListener",
value: function(e, t) {
0 === Object.keys(this.listeners).length && this.startPolling(),
this.listeners[e] || (this.listeners[e] = new Set,
this._get(e)),
this.listeners[e].add(t)
}
}, {
key: "_removeListener",
value: function(e, t) {
this.listeners[e] && (this.listeners[e].delete(t),
0 === this.listeners[e].size && delete this.listeners[e]),
0 === Object.keys(this.listeners).length && this.stopPolling()
}
}]),
e
}();
Xr.type = "LOCAL";
var Gr = Xr;
function Kr(e, t) {
return ee(e, "POST", "/v2/accounts/mfaSignIn:start", $(e, t))
}
function Yr(e) {
return Qr.apply(this, arguments)
}
function Qr() {
return (Qr = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
ee(t, "GET", "/v1/recaptchaParams");
case 2:
if (e.t0 = e.sent.recaptchaSiteKey,
e.t0) {
e.next = 5;
break
}
e.t0 = "";
case 5:
return e.abrupt("return", e.t0);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Jr(e) {
return new Promise((function(t, n) {
var r = document.createElement("script");
r.setAttribute("src", e),
r.onload = t,
r.onerror = function(e) {
var t = L("internal-error");
t.customData = e,
n(t)
}
,
r.type = "text/javascript",
r.charset = "UTF-8",
function() {
var e, t;
return null !== (t = null === (e = document.getElementsByTagName("head")) || void 0 === e ? void 0 : e[0]) && void 0 !== t ? t : document
}().appendChild(r)
}
))
}
function Zr(e) {
return "__".concat(e).concat(Math.floor(1e6 * Math.random()))
}
var $r = 1e12
, ei = function() {
function e(t) {
Object(s.a)(this, e),
this.auth = t,
this.counter = $r,
this._widgets = new Map
}
return Object(c.a)(e, [{
key: "render",
value: function(e, t) {
var n = this.counter;
return this._widgets.set(n, new ti(e,this.auth.name,t || {})),
this.counter++,
n
}
}, {
key: "reset",
value: function(e) {
var t, n = e || $r;
null === (t = this._widgets.get(n)) || void 0 === t || t.delete(),
this._widgets.delete(n)
}
}, {
key: "getResponse",
value: function(e) {
var t, n = e || $r;
return (null === (t = this._widgets.get(n)) || void 0 === t ? void 0 : t.getResponse()) || ""
}
}, {
key: "execute",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = t || $r,
null === (n = this._widgets.get(r)) || void 0 === n || n.execute(),
e.abrupt("return", "");
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}]),
e
}()
, ti = function() {
function e(t, n, r) {
var i = this;
Object(s.a)(this, e),
this.params = r,
this.timerId = null,
this.deleted = !1,
this.responseToken = null,
this.clickHandler = function() {
i.execute()
}
;
var o = "string" == typeof t ? document.getElementById(t) : t;
F(o, "argument-error", {
appName: n
}),
this.container = o,
this.isVisible = "invisible" !== this.params.size,
this.isVisible ? this.execute() : this.container.addEventListener("click", this.clickHandler)
}
return Object(c.a)(e, [{
key: "getResponse",
value: function() {
return this.checkIfDeleted(),
this.responseToken
}
}, {
key: "delete",
value: function() {
this.checkIfDeleted(),
this.deleted = !0,
this.timerId && (clearTimeout(this.timerId),
this.timerId = null),
this.container.removeEventListener("click", this.clickHandler)
}
}, {
key: "execute",
value: function() {
var e = this;
this.checkIfDeleted(),
this.timerId || (this.timerId = window.setTimeout((function() {
e.responseToken = function(e) {
for (var t = [], n = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", r = 0; r < 50; r++)
t.push(n.charAt(Math.floor(62 * Math.random())));
return t.join("")
}();
var t = e.params
, n = t.callback
, r = t["expired-callback"];
if (n)
try {
n(e.responseToken)
} catch (e) {}
e.timerId = window.setTimeout((function() {
if (e.timerId = null,
e.responseToken = null,
r)
try {
r()
} catch (e) {}
e.isVisible && e.execute()
}
), 6e4)
}
), 500))
}
}, {
key: "checkIfDeleted",
value: function() {
if (this.deleted)
throw new Error("reCAPTCHA mock was already deleted!")
}
}]),
e
}()
, ni = Zr("rcb")
, ri = new K(3e4,6e4)
, ii = function() {
function e() {
Object(s.a)(this, e),
this.hostLanguage = "",
this.counter = 0,
this.librarySeparatelyLoaded = !!Ar().grecaptcha
}
return Object(c.a)(e, [{
key: "load",
value: function(e) {
var t = this
, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "";
return F(function(e) {
return e.length <= 6 && /^\s*[a-zA-Z0-9\-]*\s*$/.test(e)
}(n), e, "argument-error"),
this.shouldResolveImmediately(n) ? Promise.resolve(Ar().grecaptcha) : new Promise((function(r, i) {
var o = Ar().setTimeout((function() {
i(L(e, "network-request-failed"))
}
), ri.get());
Ar()[ni] = function() {
Ar().clearTimeout(o),
delete Ar()[ni];
var a = Ar().grecaptcha;
if (a) {
var l = a.render;
a.render = function(e, n) {
var r = l(e, n);
return t.counter++,
r
}
,
t.hostLanguage = n,
r(a)
} else
i(L(e, "internal-error"))
}
,
Jr("".concat("https://www.google.com/recaptcha/api.js?", "?").concat(Object(j.x)({
onload: ni,
render: "explicit",
hl: n
}))).catch((function() {
clearTimeout(o),
i(L(e, "internal-error"))
}
))
}
))
}
}, {
key: "clearedOneInstance",
value: function() {
this.counter--
}
}, {
key: "shouldResolveImmediately",
value: function(e) {
return !!Ar().grecaptcha && (e === this.hostLanguage || this.counter > 0 || this.librarySeparatelyLoaded)
}
}]),
e
}();
var oi = function() {
function e() {
Object(s.a)(this, e)
}
return Object(c.a)(e, [{
key: "load",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", new ei(t));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "clearedOneInstance",
value: function() {}
}]),
e
}()
, ai = "recaptcha"
, li = {
theme: "light",
type: "image"
}
, si = function() {
function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Object.assign({}, li)
, r = arguments.length > 2 ? arguments[2] : void 0;
Object(s.a)(this, e),
this.parameters = n,
this.type = ai,
this.destroyed = !1,
this.widgetId = null,
this.tokenChangeListeners = new Set,
this.renderPromise = null,
this.recaptcha = null,
this.auth = Qe(r),
this.isInvisible = "invisible" === this.parameters.size,
F("undefined" != typeof document, this.auth, "operation-not-supported-in-this-environment");
var i = "string" == typeof t ? document.getElementById(t) : t;
F(i, this.auth, "argument-error"),
this.container = i,
this.parameters.callback = this.makeTokenCallback(this.parameters.callback),
this._recaptchaLoader = this.auth.settings.appVerificationDisabledForTesting ? new oi : new ii,
this.validateStartingState()
}
return Object(c.a)(e, [{
key: "verify",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t, n, r, i = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.assertNotDestroyed(),
e.next = 3,
this.render();
case 3:
if (t = e.sent,
n = this.getAssertedRecaptcha(),
!(r = n.getResponse(t))) {
e.next = 8;
break
}
return e.abrupt("return", r);
case 8:
return e.abrupt("return", new Promise((function(e) {
i.tokenChangeListeners.add((function t(n) {
n && (i.tokenChangeListeners.delete(t),
e(n))
}
)),
i.isInvisible && n.execute(t)
}
)));
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "render",
value: function() {
var e = this;
try {
this.assertNotDestroyed()
} catch (e) {
return Promise.reject(e)
}
return this.renderPromise || (this.renderPromise = this.makeRenderPromise().catch((function(t) {
throw e.renderPromise = null,
t
}
))),
this.renderPromise
}
}, {
key: "_reset",
value: function() {
this.assertNotDestroyed(),
null !== this.widgetId && this.getAssertedRecaptcha().reset(this.widgetId)
}
}, {
key: "clear",
value: function() {
var e = this;
this.assertNotDestroyed(),
this.destroyed = !0,
this._recaptchaLoader.clearedOneInstance(),
this.isInvisible || this.container.childNodes.forEach((function(t) {
e.container.removeChild(t)
}
))
}
}, {
key: "validateStartingState",
value: function() {
F(!this.parameters.sitekey, this.auth, "argument-error"),
F(this.isInvisible || !this.container.hasChildNodes(), this.auth, "argument-error"),
F("undefined" != typeof document, this.auth, "operation-not-supported-in-this-environment")
}
}, {
key: "makeTokenCallback",
value: function(e) {
var t = this;
return function(n) {
if (t.tokenChangeListeners.forEach((function(e) {
return e(n)
}
)),
"function" == typeof e)
e(n);
else if ("string" == typeof e) {
var r = Ar()[e];
"function" == typeof r && r(n)
}
}
}
}, {
key: "assertNotDestroyed",
value: function() {
F(!this.destroyed, this.auth, "internal-error")
}
}, {
key: "makeRenderPromise",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t, n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.init();
case 2:
return this.widgetId || (t = this.container,
this.isInvisible || (n = document.createElement("div"),
t.appendChild(n),
t = n),
this.widgetId = this.getAssertedRecaptcha().render(t, this.parameters)),
e.abrupt("return", this.widgetId);
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "init",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return F(X() && !Tr(), this.auth, "internal-error"),
e.next = 3,
ci();
case 3:
return e.next = 5,
this._recaptchaLoader.load(this.auth, this.auth.languageCode || void 0);
case 5:
return this.recaptcha = e.sent,
e.next = 8,
Yr(this.auth);
case 8:
F(t = e.sent, this.auth, "internal-error"),
this.parameters.sitekey = t;
case 11:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "getAssertedRecaptcha",
value: function() {
return F(this.recaptcha, this.auth, "internal-error"),
this.recaptcha
}
}]),
e
}();
function ci() {
var e = null;
return new Promise((function(t) {
"complete" !== document.readyState ? (e = function() {
return t()
}
,
window.addEventListener("load", e)) : t()
}
)).catch((function(t) {
throw e && window.removeEventListener("load", e),
t
}
))
}
var ui = function() {
function e(t, n) {
Object(s.a)(this, e),
this.verificationId = t,
this.onConfirmation = n
}
return Object(c.a)(e, [{
key: "confirm",
value: function(e) {
var t = zt._fromVerification(this.verificationId, e);
return this.onConfirmation(t)
}
}]),
e
}();
function di(e, t, n) {
return pi.apply(this, arguments)
}
function pi() {
return (pi = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Qe(t),
e.next = 3,
mi(i, n, Object(j.k)(r));
case 3:
return o = e.sent,
e.abrupt("return", new ui(o,(function(e) {
return pn(i, e)
}
)));
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function hi(e, t, n) {
return fi.apply(this, arguments)
}
function fi() {
return (fi = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Object(j.k)(t),
e.next = 3,
an(!1, i, "phone");
case 3:
return e.next = 5,
mi(i.auth, n, Object(j.k)(r));
case 5:
return o = e.sent,
e.abrupt("return", new ui(o,(function(e) {
return fn(i, e)
}
)));
case 7:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function bi(e, t, n) {
return gi.apply(this, arguments)
}
function gi() {
return (gi = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Object(j.k)(t),
e.next = 3,
mi(i.auth, n, Object(j.k)(r));
case 3:
return o = e.sent,
e.abrupt("return", new ui(o,(function(e) {
return gn(i, e)
}
)));
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function mi(e, t, n) {
return vi.apply(this, arguments)
}
function vi() {
return (vi = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a, l, s, c, u, d, p;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
r.verify();
case 2:
if (o = e.sent,
e.prev = 3,
F("string" == typeof o, t, "argument-error"),
F(r.type === ai, t, "argument-error"),
!("session"in (a = "string" == typeof n ? {
phoneNumber: n
} : n))) {
e.next = 26;
break
}
if (l = a.session,
!("phoneNumber"in a)) {
e.next = 17;
break
}
return F("enroll" === l.type, t, "internal-error"),
e.next = 13,
br(t, {
idToken: l.credential,
phoneEnrollmentInfo: {
phoneNumber: a.phoneNumber,
recaptchaToken: o
}
});
case 13:
return s = e.sent,
e.abrupt("return", s.phoneSessionInfo.sessionInfo);
case 17:
return F("signin" === l.type, t, "internal-error"),
F(c = (null === (i = a.multiFactorHint) || void 0 === i ? void 0 : i.uid) || a.multiFactorUid, t, "missing-multi-factor-info"),
e.next = 22,
Kr(t, {
mfaPendingCredential: l.credential,
mfaEnrollmentId: c,
phoneSignInInfo: {
recaptchaToken: o
}
});
case 22:
return u = e.sent,
e.abrupt("return", u.phoneResponseInfo.sessionInfo);
case 24:
e.next = 31;
break;
case 26:
return e.next = 28,
St(t, {
phoneNumber: a.phoneNumber,
recaptchaToken: o
});
case 28:
return d = e.sent,
p = d.sessionInfo,
e.abrupt("return", p);
case 31:
return e.prev = 31,
r._reset(),
e.finish(31);
case 34:
case "end":
return e.stop()
}
}
), e, null, [[3, , 31, 34]])
}
)))).apply(this, arguments)
}
function yi(e, t) {
return xi.apply(this, arguments)
}
function xi() {
return (xi = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
rn(Object(j.k)(t), n);
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var Oi = function() {
function e(t) {
Object(s.a)(this, e),
this.providerId = e.PROVIDER_ID,
this.auth = Qe(t)
}
return Object(c.a)(e, [{
key: "verifyPhoneNumber",
value: function(e, t) {
return mi(this.auth, e, Object(j.k)(t))
}
}], [{
key: "credential",
value: function(e, t) {
return zt._fromVerification(e, t)
}
}, {
key: "credentialFromResult",
value: function(t) {
var n = t;
return e.credentialFromTaggedObject(n)
}
}, {
key: "credentialFromError",
value: function(t) {
return e.credentialFromTaggedObject(t.customData || {})
}
}, {
key: "credentialFromTaggedObject",
value: function(e) {
var t = e._tokenResponse;
if (!t)
return null;
var n = t.phoneNumber
, r = t.temporaryProof;
return n && r ? zt._fromTokenResponse(n, r) : null
}
}]),
e
}();
function ji(e, t) {
return t ? H(t) : (F(e._popupRedirectResolver, e, "argument-error"),
e._popupRedirectResolver)
}
Oi.PROVIDER_ID = "phone",
Oi.PHONE_SIGN_IN_METHOD = "phone";
var ki = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e) {
var r;
return Object(s.a)(this, n),
(r = t.call(this, "custom", "custom")).params = e,
r
}
return Object(c.a)(n, [{
key: "_getIdTokenResponse",
value: function(e) {
return Ct(e, this._buildIdpRequest())
}
}, {
key: "_linkToIdToken",
value: function(e, t) {
return Ct(e, this._buildIdpRequest(t))
}
}, {
key: "_getReauthenticationResolver",
value: function(e) {
return Ct(e, this._buildIdpRequest())
}
}, {
key: "_buildIdpRequest",
value: function(e) {
var t = {
requestUri: this.params.requestUri,
sessionId: this.params.sessionId,
postBody: this.params.postBody,
tenantId: this.params.tenantId,
pendingToken: this.params.pendingToken,
returnSecureToken: !0,
returnIdpCredential: !0
};
return e && (t.idToken = e),
t
}
}]),
n
}(tt);
function wi(e) {
return un(e.auth, new ki(e), e.bypassAuthState)
}
function Ci(e) {
var t = e.auth
, n = e.user;
return F(n, t, "internal-error"),
sn(n, new ki(e), e.bypassAuthState)
}
function _i(e) {
return Mi.apply(this, arguments)
}
function Mi() {
return (Mi = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = t.auth,
F(r = t.user, n, "internal-error"),
e.abrupt("return", rn(r, new ki(t), t.bypassAuthState));
case 3:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var Si = function() {
function e(t, n, r, i) {
var o = arguments.length > 4 && void 0 !== arguments[4] && arguments[4];
Object(s.a)(this, e),
this.auth = t,
this.resolver = r,
this.user = i,
this.bypassAuthState = o,
this.pendingPromise = null,
this.eventManager = null,
this.filter = Array.isArray(n) ? n : [n]
}
return Object(c.a)(e, [{
key: "execute",
value: function() {
var e = this;
return new Promise(function() {
var t = Object(f.a)(g.a.mark((function t(n, r) {
return g.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return e.pendingPromise = {
resolve: n,
reject: r
},
t.prev = 1,
t.next = 4,
e.resolver._initialize(e.auth);
case 4:
return e.eventManager = t.sent,
t.next = 7,
e.onExecution();
case 7:
e.eventManager.registerConsumer(e),
t.next = 13;
break;
case 10:
t.prev = 10,
t.t0 = t.catch(1),
e.reject(t.t0);
case 13:
case "end":
return t.stop()
}
}
), t, null, [[1, 10]])
}
)));
return function(e, n) {
return t.apply(this, arguments)
}
}())
}
}, {
key: "onAuthEvent",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o, a, l, s;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (n = t.urlResponse,
r = t.sessionId,
i = t.postBody,
o = t.tenantId,
a = t.error,
l = t.type,
!a) {
e.next = 4;
break
}
return this.reject(a),
e.abrupt("return");
case 4:
return s = {
auth: this.auth,
requestUri: n,
sessionId: r,
tenantId: o || void 0,
postBody: i || void 0,
user: this.user,
bypassAuthState: this.bypassAuthState
},
e.prev = 5,
e.t0 = this,
e.next = 9,
this.getIdpTask(l)(s);
case 9:
e.t1 = e.sent,
e.t0.resolve.call(e.t0, e.t1),
e.next = 16;
break;
case 13:
e.prev = 13,
e.t2 = e.catch(5),
this.reject(e.t2);
case 16:
case "end":
return e.stop()
}
}
), e, this, [[5, 13]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "onError",
value: function(e) {
this.reject(e)
}
}, {
key: "getIdpTask",
value: function(e) {
switch (e) {
case "signInViaPopup":
case "signInViaRedirect":
return wi;
case "linkViaPopup":
case "linkViaRedirect":
return _i;
case "reauthViaPopup":
case "reauthViaRedirect":
return Ci;
default:
D(this.auth, "internal-error")
}
}
}, {
key: "resolve",
value: function(e) {
W(this.pendingPromise, "Pending promise was never set"),
this.pendingPromise.resolve(e),
this.unregisterAndCleanUp()
}
}, {
key: "reject",
value: function(e) {
W(this.pendingPromise, "Pending promise was never set"),
this.pendingPromise.reject(e),
this.unregisterAndCleanUp()
}
}, {
key: "unregisterAndCleanUp",
value: function() {
this.eventManager && this.eventManager.unregisterConsumer(this),
this.pendingPromise = null,
this.cleanUp()
}
}]),
e
}()
, Ai = new K(2e3,1e4);
function Ti(e, t, n) {
return Ei.apply(this, arguments)
}
function Ei() {
return (Ei = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Qe(t),
P(t, n, Rt),
o = ji(i, r),
a = new Li(i,"signInViaPopup",n,o),
e.abrupt("return", a.executeNotNull());
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ii(e, t, n) {
return Ni.apply(this, arguments)
}
function Ni() {
return (Ni = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return P((i = Object(j.k)(t)).auth, n, Rt),
o = ji(i.auth, r),
a = new Li(i.auth,"reauthViaPopup",n,o,i),
e.abrupt("return", a.executeNotNull());
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function zi(e, t, n) {
return Di.apply(this, arguments)
}
function Di() {
return (Di = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return P((i = Object(j.k)(t)).auth, n, Rt),
o = ji(i.auth, r),
a = new Li(i.auth,"linkViaPopup",n,o,i),
e.abrupt("return", a.executeNotNull());
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var Li = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r, i, o, a) {
var l;
return Object(s.a)(this, n),
(l = t.call(this, e, r, o, a)).provider = i,
l.authWindow = null,
l.pollId = null,
n.currentPopupAction && n.currentPopupAction.cancel(),
n.currentPopupAction = Object(m.a)(l),
l
}
return Object(c.a)(n, [{
key: "executeNotNull",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.execute();
case 2:
return F(t = e.sent, this.auth, "internal-error"),
e.abrupt("return", t);
case 5:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "onExecution",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t, n = this;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return W(1 === this.filter.length, "Popup operations only handle one event"),
t = Mr(),
e.next = 4,
this.resolver._openPopup(this.auth, this.provider, this.filter[0], t);
case 4:
this.authWindow = e.sent,
this.authWindow.associatedEvent = t,
this.resolver._originValidation(this.auth).catch((function(e) {
n.reject(e)
}
)),
this.resolver._isIframeWebStorageSupported(this.auth, (function(e) {
e || n.reject(L(n.auth, "web-storage-unsupported"))
}
)),
this.pollUserCancellation();
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "eventId",
get: function() {
var e;
return (null === (e = this.authWindow) || void 0 === e ? void 0 : e.associatedEvent) || null
}
}, {
key: "cancel",
value: function() {
this.reject(L(this.auth, "cancelled-popup-request"))
}
}, {
key: "cleanUp",
value: function() {
this.authWindow && this.authWindow.close(),
this.pollId && window.clearTimeout(this.pollId),
this.authWindow = null,
this.pollId = null,
n.currentPopupAction = null
}
}, {
key: "pollUserCancellation",
value: function() {
var e = this;
!function t() {
var n, r;
(null === (r = null === (n = e.authWindow) || void 0 === n ? void 0 : n.window) || void 0 === r ? void 0 : r.closed) ? e.pollId = window.setTimeout((function() {
e.pollId = null,
e.reject(L(e.auth, "popup-closed-by-user"))
}
), 2e3) : e.pollId = window.setTimeout(t, Ai.get())
}()
}
}]),
n
}(Si);
Li.currentPopupAction = null;
var Ri = new Map
, Pi = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e, r) {
var i, o = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
return Object(s.a)(this, n),
(i = t.call(this, e, ["signInViaRedirect", "linkViaRedirect", "reauthViaRedirect", "unknown"], r, void 0, o)).eventId = null,
i
}
return Object(c.a)(n, [{
key: "execute",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
var t, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t = Ri.get(this.auth._key())) {
e.next = 21;
break
}
return e.prev = 2,
e.next = 5,
Bi(this.resolver, this.auth);
case 5:
if (!e.sent) {
e.next = 12;
break
}
return e.next = 9,
Object(u.a)(Object(d.a)(n.prototype), "execute", this).call(this);
case 9:
e.t0 = e.sent,
e.next = 13;
break;
case 12:
e.t0 = null;
case 13:
r = e.t0,
t = function() {
return Promise.resolve(r)
}
,
e.next = 20;
break;
case 17:
e.prev = 17,
e.t1 = e.catch(2),
t = function() {
return Promise.reject(e.t1)
}
;
case 20:
Ri.set(this.auth._key(), t);
case 21:
return this.bypassAuthState || Ri.set(this.auth._key(), (function() {
return Promise.resolve(null)
}
)),
e.abrupt("return", t());
case 23:
case "end":
return e.stop()
}
}
), e, this, [[2, 17]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "onAuthEvent",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if ("signInViaRedirect" !== t.type) {
e.next = 4;
break
}
return e.abrupt("return", Object(u.a)(Object(d.a)(n.prototype), "onAuthEvent", this).call(this, t));
case 4:
if ("unknown" !== t.type) {
e.next = 7;
break
}
return this.resolve(null),
e.abrupt("return");
case 7:
if (!t.eventId) {
e.next = 17;
break
}
return e.next = 10,
this.auth._redirectUserForId(t.eventId);
case 10:
if (!(r = e.sent)) {
e.next = 16;
break
}
return this.user = r,
e.abrupt("return", Object(u.a)(Object(d.a)(n.prototype), "onAuthEvent", this).call(this, t));
case 16:
this.resolve(null);
case 17:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "onExecution",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
case "end":
return e.stop()
}
}
), e)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "cleanUp",
value: function() {}
}]),
n
}(Si);
function Bi(e, t) {
return Fi.apply(this, arguments)
}
function Fi() {
return (Fi = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = Hi(n),
i = qi(t),
e.next = 4,
i._isAvailable();
case 4:
if (e.sent) {
e.next = 6;
break
}
return e.abrupt("return", !1);
case 6:
return e.next = 8,
i._get(r);
case 8:
return e.t0 = e.sent,
o = "true" === e.t0,
e.next = 12,
i._remove(r);
case 12:
return e.abrupt("return", o);
case 13:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Vi(e, t) {
return Wi.apply(this, arguments)
}
function Wi() {
return (Wi = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", qi(t)._set(Hi(n), "true"));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function qi(e) {
return H(e._redirectPersistence)
}
function Hi(e) {
return Le("pendingRedirect", e.config.apiKey, e.name)
}
function Ui(e, t, n) {
return function(e, t, n) {
return Xi.apply(this, arguments)
}(e, t, n)
}
function Xi() {
return (Xi = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Qe(t),
P(t, n, Rt),
o = ji(i, r),
e.next = 5,
Vi(o, i);
case 5:
return e.abrupt("return", o._openRedirect(i, n, "signInViaRedirect"));
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Gi(e, t, n) {
return function(e, t, n) {
return Ki.apply(this, arguments)
}(e, t, n)
}
function Ki() {
return (Ki = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return P((i = Object(j.k)(t)).auth, n, Rt),
o = ji(i.auth, r),
e.next = 5,
Vi(o, i.auth);
case 5:
return e.next = 7,
to(i);
case 7:
return a = e.sent,
e.abrupt("return", o._openRedirect(i.auth, n, "reauthViaRedirect", a));
case 9:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Yi(e, t, n) {
return function(e, t, n) {
return Qi.apply(this, arguments)
}(e, t, n)
}
function Qi() {
return (Qi = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return P((i = Object(j.k)(t)).auth, n, Rt),
o = ji(i.auth, r),
e.next = 5,
an(!1, i, n.providerId);
case 5:
return e.next = 7,
Vi(o, i.auth);
case 7:
return e.next = 9,
to(i);
case 9:
return a = e.sent,
e.abrupt("return", o._openRedirect(i.auth, n, "linkViaRedirect", a));
case 11:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ji(e, t) {
return Zi.apply(this, arguments)
}
function Zi() {
return (Zi = Object(f.a)(g.a.mark((function e(t, n) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Qe(t)._initializationPromise;
case 2:
return e.abrupt("return", $i(t, n, !1));
case 3:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function $i(e, t) {
return eo.apply(this, arguments)
}
function eo() {
return eo = Object(f.a)(g.a.mark((function e(t, n) {
var r, i, o, a, l, s = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = s.length > 2 && void 0 !== s[2] && s[2],
i = Qe(t),
o = ji(i, n),
a = new Pi(i,o,r),
e.next = 6,
a.execute();
case 6:
if (!(l = e.sent) || r) {
e.next = 13;
break
}
return delete l.user._redirectEventId,
e.next = 11,
i._persistUserIfCurrent(l.user);
case 11:
return e.next = 13,
i._setRedirectUser(null, n);
case 13:
return e.abrupt("return", l);
case 14:
case "end":
return e.stop()
}
}
), e)
}
))),
eo.apply(this, arguments)
}
function to(e) {
return no.apply(this, arguments)
}
function no() {
return (no = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = Mr("".concat(t.uid, ":::")),
t._redirectEventId = n,
e.next = 4,
t.auth._setRedirectUser(t);
case 4:
return e.next = 6,
t.auth._persistUserIfCurrent(t);
case 6:
return e.abrupt("return", n);
case 7:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var ro = function() {
function e(t) {
Object(s.a)(this, e),
this.auth = t,
this.cachedEventUids = new Set,
this.consumers = new Set,
this.queuedRedirectEvent = null,
this.hasHandledPotentialRedirect = !1,
this.lastProcessedEventTime = Date.now()
}
return Object(c.a)(e, [{
key: "registerConsumer",
value: function(e) {
this.consumers.add(e),
this.queuedRedirectEvent && this.isEventForConsumer(this.queuedRedirectEvent, e) && (this.sendToConsumer(this.queuedRedirectEvent, e),
this.saveEventToCache(this.queuedRedirectEvent),
this.queuedRedirectEvent = null)
}
}, {
key: "unregisterConsumer",
value: function(e) {
this.consumers.delete(e)
}
}, {
key: "onEvent",
value: function(e) {
var t = this;
if (this.hasEventBeenHandled(e))
return !1;
var n = !1;
return this.consumers.forEach((function(r) {
t.isEventForConsumer(e, r) && (n = !0,
t.sendToConsumer(e, r),
t.saveEventToCache(e))
}
)),
this.hasHandledPotentialRedirect || !function(e) {
switch (e.type) {
case "signInViaRedirect":
case "linkViaRedirect":
case "reauthViaRedirect":
return !0;
case "unknown":
return oo(e);
default:
return !1
}
}(e) || (this.hasHandledPotentialRedirect = !0,
n || (this.queuedRedirectEvent = e,
n = !0)),
n
}
}, {
key: "sendToConsumer",
value: function(e, t) {
var n;
if (e.error && !oo(e)) {
var r = (null === (n = e.error.code) || void 0 === n ? void 0 : n.split("auth/")[1]) || "internal-error";
t.onError(L(this.auth, r))
} else
t.onAuthEvent(e)
}
}, {
key: "isEventForConsumer",
value: function(e, t) {
var n = null === t.eventId || !!e.eventId && e.eventId === t.eventId;
return t.filter.includes(e.type) && n
}
}, {
key: "hasEventBeenHandled",
value: function(e) {
return Date.now() - this.lastProcessedEventTime >= 6e5 && this.cachedEventUids.clear(),
this.cachedEventUids.has(io(e))
}
}, {
key: "saveEventToCache",
value: function(e) {
this.cachedEventUids.add(io(e)),
this.lastProcessedEventTime = Date.now()
}
}]),
e
}();
function io(e) {
return [e.type, e.eventId, e.sessionId, e.tenantId].filter((function(e) {
return e
}
)).join("-")
}
function oo(e) {
var t = e.type
, n = e.error;
return "unknown" === t && (null == n ? void 0 : n.code) === "auth/".concat("no-auth-event")
}
function ao(e) {
return lo.apply(this, arguments)
}
function lo() {
return lo = Object(f.a)(g.a.mark((function e(t) {
var n, r = arguments;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = r.length > 1 && void 0 !== r[1] ? r[1] : {},
e.abrupt("return", ee(t, "GET", "/v1/projects", n));
case 2:
case "end":
return e.stop()
}
}
), e)
}
))),
lo.apply(this, arguments)
}
var so = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
, co = /^https?/;
function uo() {
return (uo = Object(f.a)(g.a.mark((function e(t) {
var n, r, i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!t.config.emulator) {
e.next = 2;
break
}
return e.abrupt("return");
case 2:
return e.next = 4,
ao(t);
case 4:
n = e.sent,
r = n.authorizedDomains,
i = Object(v.a)(r),
e.prev = 7,
i.s();
case 9:
if ((o = i.n()).done) {
e.next = 20;
break
}
if (a = o.value,
e.prev = 11,
!po(a)) {
e.next = 14;
break
}
return e.abrupt("return");
case 14:
e.next = 18;
break;
case 16:
e.prev = 16,
e.t0 = e.catch(11);
case 18:
e.next = 9;
break;
case 20:
e.next = 25;
break;
case 22:
e.prev = 22,
e.t1 = e.catch(7),
i.e(e.t1);
case 25:
return e.prev = 25,
i.f(),
e.finish(25);
case 28:
D(t, "unauthorized-domain");
case 29:
case "end":
return e.stop()
}
}
), e, null, [[7, 22, 25, 28], [11, 16]])
}
)))).apply(this, arguments)
}
function po(e) {
var t = U()
, n = new URL(t)
, r = n.protocol
, i = n.hostname;
if (e.startsWith("chrome-extension://")) {
var o = new URL(e);
return "" === o.hostname && "" === i ? "chrome-extension:" === r && e.replace("chrome-extension://", "") === t.replace("chrome-extension://", "") : "chrome-extension:" === r && o.hostname === i
}
if (!co.test(r))
return !1;
if (so.test(e))
return i === e;
var a = e.replace(/\./g, "\\.");
return new RegExp("^(.+\\." + a + "|" + a + ")$","i").test(i)
}
var ho = new K(3e4,6e4);
function fo() {
var e = Ar().___jsl;
if (null == e ? void 0 : e.H)
for (var t = 0, n = Object.keys(e.H); t < n.length; t++) {
var r = n[t];
if (e.H[r].r = e.H[r].r || [],
e.H[r].L = e.H[r].L || [],
e.H[r].r = Object(x.a)(e.H[r].L),
e.CP)
for (var i = 0; i < e.CP.length; i++)
e.CP[i] = null
}
}
var bo = null;
function go(e) {
return bo = bo || function(e) {
return new Promise((function(t, n) {
var r, i, o;
function a() {
fo(),
gapi.load("gapi.iframes", {
callback: function() {
t(gapi.iframes.getContext())
},
ontimeout: function() {
fo(),
n(L(e, "network-request-failed"))
},
timeout: ho.get()
})
}
if (null === (i = null === (r = Ar().gapi) || void 0 === r ? void 0 : r.iframes) || void 0 === i ? void 0 : i.Iframe)
t(gapi.iframes.getContext());
else {
if (!(null === (o = Ar().gapi) || void 0 === o ? void 0 : o.load)) {
var l = Zr("iframefcb");
return Ar()[l] = function() {
gapi.load ? a() : n(L(e, "network-request-failed"))
}
,
Jr("https://apis.google.com/js/api.js?onload=".concat(l)).catch((function(e) {
return n(e)
}
))
}
a()
}
}
)).catch((function(e) {
throw bo = null,
e
}
))
}(e),
bo
}
var mo = new K(5e3,15e3)
, vo = {
style: {
position: "absolute",
top: "-100px",
width: "1px",
height: "1px"
},
"aria-hidden": "true",
tabindex: "-1"
}
, yo = new Map([["identitytoolkit.googleapis.com", "p"], ["staging-identitytoolkit.sandbox.googleapis.com", "s"], ["test-identitytoolkit.sandbox.googleapis.com", "t"]]);
function xo(e) {
var t = e.config;
F(t.authDomain, e, "auth-domain-config-required");
var n = t.emulator ? Y(t, "emulator/auth/iframe") : "https://".concat(e.config.authDomain, "/").concat("__/auth/iframe")
, r = {
apiKey: t.apiKey,
appName: e.name,
v: k.SDK_VERSION
}
, i = yo.get(e.config.apiHost);
i && (r.eid = i);
var o = e._getFrameworks();
return o.length && (r.fw = o.join(",")),
"".concat(n, "?").concat(Object(j.x)(r).slice(1))
}
function Oo(e) {
return jo.apply(this, arguments)
}
function jo() {
return jo = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
go(t);
case 2:
return n = e.sent,
F(r = Ar().gapi, t, "internal-error"),
e.abrupt("return", n.open({
where: document.body,
url: xo(t),
messageHandlersFilter: r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
attributes: vo,
dontclear: !0
}, (function(e) {
return new Promise(function() {
var n = Object(f.a)(g.a.mark((function n(r, i) {
var o, a, l;
return g.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return l = function() {
Ar().clearTimeout(a),
r(e)
}
,
n.next = 3,
e.restyle({
setHideOnLeave: !1
});
case 3:
o = L(t, "network-request-failed"),
a = Ar().setTimeout((function() {
i(o)
}
), mo.get()),
e.ping(l).then(l, (function() {
i(o)
}
));
case 6:
case "end":
return n.stop()
}
}
), n)
}
)));
return function(e, t) {
return n.apply(this, arguments)
}
}())
}
)));
case 6:
case "end":
return e.stop()
}
}
), e)
}
))),
jo.apply(this, arguments)
}
var ko = {
location: "yes",
resizable: "yes",
statusbar: "yes",
toolbar: "no"
}
, wo = function() {
function e(t) {
Object(s.a)(this, e),
this.window = t,
this.associatedEvent = null
}
return Object(c.a)(e, [{
key: "close",
value: function() {
if (this.window)
try {
this.window.close()
} catch (e) {}
}
}]),
e
}();
function Co(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 500
, i = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 600
, o = Math.max((window.screen.availHeight - i) / 2, 0).toString()
, a = Math.max((window.screen.availWidth - r) / 2, 0).toString()
, l = ""
, s = Object.assign(Object.assign({}, ko), {
width: r.toString(),
height: i.toString(),
top: o,
left: a
})
, c = Object(j.l)().toLowerCase();
n && (l = Ve(c) ? "_blank" : n),
Be(c) && (t = t || "http://localhost",
s.scrollbars = "yes");
var u = Object.entries(s).reduce((function(e, t) {
var n = Object(y.a)(t, 2)
, r = n[0]
, i = n[1];
return "".concat(e).concat(r, "=").concat(i, ",")
}
), "");
if (function() {
var e;
return Xe(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)()) && !!(null === (e = window.navigator) || void 0 === e ? void 0 : e.standalone)
}(c) && "_self" !== l)
return function(e, t) {
var n = document.createElement("a");
n.href = e,
n.target = t;
var r = document.createEvent("MouseEvent");
r.initMouseEvent("click", !0, !0, window, 1, 0, 0, 0, 0, !1, !1, !1, !1, 1, null),
n.dispatchEvent(r)
}(t || "", l),
new wo(null);
var d = window.open(t || "", l, u);
F(d, e, "popup-blocked");
try {
d.focus()
} catch (e) {}
return new wo(d)
}
var _o = "__/auth/handler"
, Mo = "emulator/auth/handler";
function So(e, t, n, r, i, o) {
F(e.config.authDomain, e, "auth-domain-config-required"),
F(e.config.apiKey, e, "invalid-api-key");
var a = {
apiKey: e.config.apiKey,
appName: e.name,
authType: n,
redirectUrl: r,
v: k.SDK_VERSION,
eventId: i
};
if (t instanceof Rt) {
t.setDefaultLanguage(e.languageCode),
a.providerId = t.providerId || "",
Object(j.p)(t.getCustomParameters()) || (a.customParameters = JSON.stringify(t.getCustomParameters()));
for (var l = 0, s = Object.entries(o || {}); l < s.length; l++) {
var c = Object(y.a)(s[l], 2)
, u = c[0]
, d = c[1];
a[u] = d
}
}
if (t instanceof Pt) {
var p = t.getScopes().filter((function(e) {
return "" !== e
}
));
p.length > 0 && (a.scopes = p.join(","))
}
e.tenantId && (a.tid = e.tenantId);
for (var h = a, f = 0, b = Object.keys(h); f < b.length; f++) {
var g = b[f];
void 0 === h[g] && delete h[g]
}
return "".concat(function(e) {
var t = e.config;
return t.emulator ? Y(t, Mo) : "https://".concat(t.authDomain, "/").concat(_o)
}(e), "?").concat(Object(j.x)(h).slice(1))
}
var Ao = "webStorageSupport"
, To = function() {
function e() {
Object(s.a)(this, e),
this.eventManagers = {},
this.iframes = {},
this.originValidationPromises = {},
this._redirectPersistence = wr,
this._completeRedirectFn = $i
}
return Object(c.a)(e, [{
key: "_openPopup",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n, r, i) {
var o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return W(null === (o = this.eventManagers[t._key()]) || void 0 === o ? void 0 : o.manager, "_initialize() not called before _openPopup()"),
a = So(t, n, r, U(), i),
e.abrupt("return", Co(t, a, Mr()));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()
}, {
key: "_openRedirect",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n, r, i) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this._originValidation(t);
case 2:
return o = So(t, n, r, U(), i),
Ar().location.href = o,
e.abrupt("return", new Promise((function() {}
)));
case 4:
case "end":
return e.stop()
}
var o
}
), e, this)
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()
}, {
key: "_initialize",
value: function(e) {
var t = this
, n = e._key();
if (this.eventManagers[n]) {
var r = this.eventManagers[n]
, i = r.manager
, o = r.promise;
return i ? Promise.resolve(i) : (W(o, "If manager is not set, promise should be"),
o)
}
var a = this.initAndGetManager(e);
return this.eventManagers[n] = {
promise: a
},
a.catch((function() {
delete t.eventManagers[n]
}
)),
a
}
}, {
key: "initAndGetManager",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Oo(t);
case 2:
return n = e.sent,
r = new ro(t),
n.register("authEvent", (function(e) {
return F(null == e ? void 0 : e.authEvent, t, "invalid-auth-event"),
{
status: r.onEvent(e.authEvent) ? "ACK" : "ERROR"
}
}
), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),
this.eventManagers[t._key()] = {
manager: r
},
this.iframes[t._key()] = n,
e.abrupt("return", r);
case 8:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_isIframeWebStorageSupported",
value: function(e, t) {
this.iframes[e._key()].send(Ao, {
type: Ao
}, (function(n) {
var r, i = null === (r = null == n ? void 0 : n[0]) || void 0 === r ? void 0 : r.webStorageSupport;
void 0 !== i && t(!!i),
D(e, "internal-error")
}
), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)
}
}, {
key: "_originValidation",
value: function(e) {
var t = e._key();
return this.originValidationPromises[t] || (this.originValidationPromises[t] = function(e) {
return uo.apply(this, arguments)
}(e)),
this.originValidationPromises[t]
}
}, {
key: "_shouldInitProactively",
get: function() {
return Ge() || Fe() || Xe()
}
}]),
e
}()
, Eo = To
, Io = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n(e) {
var r;
return Object(s.a)(this, n),
(r = t.call(this, "phone")).credential = e,
r
}
return Object(c.a)(n, [{
key: "_finalizeEnroll",
value: function(e, t, n) {
return function(e, t) {
return ee(e, "POST", "/v2/accounts/mfaEnrollment:finalize", $(e, t))
}(e, {
idToken: t,
displayName: n,
phoneVerificationInfo: this.credential._makeVerificationRequest()
})
}
}, {
key: "_finalizeSignIn",
value: function(e, t) {
return function(e, t) {
return ee(e, "POST", "/v2/accounts/mfaSignIn:finalize", $(e, t))
}(e, {
mfaPendingCredential: t,
phoneVerificationInfo: this.credential._makeVerificationRequest()
})
}
}], [{
key: "_fromCredential",
value: function(e) {
return new n(e)
}
}]),
n
}(function() {
function e(t) {
Object(s.a)(this, e),
this.factorId = t
}
return Object(c.a)(e, [{
key: "_process",
value: function(e, t, n) {
switch (t.type) {
case "enroll":
return this._finalizeEnroll(e, t.credential, n);
case "signin":
return this._finalizeSignIn(e, t.credential);
default:
return V("unexpected MultiFactorSessionType")
}
}
}]),
e
}())
, No = function() {
function e() {
Object(s.a)(this, e)
}
return Object(c.a)(e, null, [{
key: "assertion",
value: function(e) {
return Io._fromCredential(e)
}
}]),
e
}();
No.FACTOR_ID = "phone";
var zo, Do = "@firebase/auth", Lo = "0.19.5", Ro = function() {
function e(t) {
Object(s.a)(this, e),
this.auth = t,
this.internalListeners = new Map
}
return Object(c.a)(e, [{
key: "getUid",
value: function() {
var e;
return this.assertAuthConfigured(),
(null === (e = this.auth.currentUser) || void 0 === e ? void 0 : e.uid) || null
}
}, {
key: "getToken",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.assertAuthConfigured(),
e.next = 3,
this.auth._initializationPromise;
case 3:
if (this.auth.currentUser) {
e.next = 5;
break
}
return e.abrupt("return", null);
case 5:
return e.next = 7,
this.auth.currentUser.getIdToken(t);
case 7:
return n = e.sent,
e.abrupt("return", {
accessToken: n
});
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "addAuthTokenListener",
value: function(e) {
if (this.assertAuthConfigured(),
!this.internalListeners.has(e)) {
var t = this.auth.onIdTokenChanged((function(t) {
var n;
e((null === (n = t) || void 0 === n ? void 0 : n.stsTokenManager.accessToken) || null)
}
));
this.internalListeners.set(e, t),
this.updateProactiveRefresh()
}
}
}, {
key: "removeAuthTokenListener",
value: function(e) {
this.assertAuthConfigured();
var t = this.internalListeners.get(e);
t && (this.internalListeners.delete(e),
t(),
this.updateProactiveRefresh())
}
}, {
key: "assertAuthConfigured",
value: function() {
F(this.auth._initializationPromise, "dependent-sdk-initialized-before-auth")
}
}, {
key: "updateProactiveRefresh",
value: function() {
this.internalListeners.size > 0 ? this.auth._startProactiveRefresh() : this.auth._stopProactiveRefresh()
}
}]),
e
}();
function Po() {
return window
}
function Bo(e, t, n) {
return Fo.apply(this, arguments)
}
function Fo() {
return (Fo = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a, l, s;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return o = Po(),
a = o.BuildInfo,
W(n.sessionId, "AuthEvent did not contain a session ID"),
e.next = 4,
Xo(n.sessionId);
case 4:
return l = e.sent,
s = {},
Xe() ? s.ibi = a.packageName : qe() ? s.apn = a.packageName : D(t, "operation-not-supported-in-this-environment"),
a.displayName && (s.appDisplayName = a.displayName),
s.sessionId = l,
e.abrupt("return", So(t, r, n.type, void 0, null !== (i = n.eventId) && void 0 !== i ? i : void 0, s));
case 10:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Vo() {
return (Vo = Object(f.a)(g.a.mark((function e(t) {
var n, r, i;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = Po(),
r = n.BuildInfo,
i = {},
Xe() ? i.iosBundleId = r.packageName : qe() ? i.androidPackageName = r.packageName : D(t, "operation-not-supported-in-this-environment"),
e.next = 5,
ao(t, i);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Wo(e) {
var t = Po().cordova;
return new Promise((function(n) {
t.plugins.browsertab.isAvailable((function(r) {
var i = null;
r ? t.plugins.browsertab.openUrl(e) : i = t.InAppBrowser.open(e, function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(j.l)();
return /(iPad|iPhone|iPod).*OS 7_\d/i.test(e) || /(iPad|iPhone|iPod).*OS 8_\d/i.test(e)
}() ? "_blank" : "_system", "location=yes"),
n(i)
}
))
}
))
}
function qo(e, t, n) {
return Ho.apply(this, arguments)
}
function Ho() {
return (Ho = Object(f.a)(g.a.mark((function e(t, n, r) {
var i, o, a;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = Po(),
o = i.cordova,
a = function() {}
,
e.prev = 2,
e.next = 5,
new Promise((function(e, i) {
var l = null;
function s() {
var t;
e();
var n = null === (t = o.plugins.browsertab) || void 0 === t ? void 0 : t.close;
"function" == typeof n && n(),
"function" == typeof (null == r ? void 0 : r.close) && r.close()
}
function c() {
l || (l = window.setTimeout((function() {
i(L(t, "redirect-cancelled-by-user"))
}
), 2e3))
}
function u() {
"visible" === (null === document || void 0 === document ? void 0 : document.visibilityState) && c()
}
n.addPassiveListener(s),
document.addEventListener("resume", c, !1),
qe() && document.addEventListener("visibilitychange", u, !1),
a = function() {
n.removePassiveListener(s),
document.removeEventListener("resume", c, !1),
document.removeEventListener("visibilitychange", u, !1),
l && window.clearTimeout(l)
}
}
));
case 5:
return e.prev = 5,
a(),
e.finish(5);
case 8:
case "end":
return e.stop()
}
}
), e, null, [[2, , 5, 8]])
}
)))).apply(this, arguments)
}
function Uo(e) {
var t, n, r, i, o, a, l, s, c, u, d = Po();
F("function" == typeof (null === (t = null == d ? void 0 : d.universalLinks) || void 0 === t ? void 0 : t.subscribe), e, "invalid-cordova-configuration", {
missingPlugin: "cordova-universal-links-plugin-fix"
}),
F(void 0 !== (null === (n = null == d ? void 0 : d.BuildInfo) || void 0 === n ? void 0 : n.packageName), e, "invalid-cordova-configuration", {
missingPlugin: "cordova-plugin-buildInfo"
}),
F("function" == typeof (null === (o = null === (i = null === (r = null == d ? void 0 : d.cordova) || void 0 === r ? void 0 : r.plugins) || void 0 === i ? void 0 : i.browsertab) || void 0 === o ? void 0 : o.openUrl), e, "invalid-cordova-configuration", {
missingPlugin: "cordova-plugin-browsertab"
}),
F("function" == typeof (null === (s = null === (l = null === (a = null == d ? void 0 : d.cordova) || void 0 === a ? void 0 : a.plugins) || void 0 === l ? void 0 : l.browsertab) || void 0 === s ? void 0 : s.isAvailable), e, "invalid-cordova-configuration", {
missingPlugin: "cordova-plugin-browsertab"
}),
F("function" == typeof (null === (u = null === (c = null == d ? void 0 : d.cordova) || void 0 === c ? void 0 : c.InAppBrowser) || void 0 === u ? void 0 : u.open), e, "invalid-cordova-configuration", {
missingPlugin: "cordova-plugin-inappbrowser"
})
}
function Xo(e) {
return Go.apply(this, arguments)
}
function Go() {
return (Go = Object(f.a)(g.a.mark((function e(t) {
var n, r, i;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = Ko(t),
e.next = 3,
crypto.subtle.digest("SHA-256", n);
case 3:
return r = e.sent,
i = Array.from(new Uint8Array(r)),
e.abrupt("return", i.map((function(e) {
return e.toString(16).padStart(2, "0")
}
)).join(""));
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ko(e) {
if (W(/[0-9a-zA-Z]+/.test(e), "Can only convert alpha-numeric strings"),
"undefined" != typeof TextEncoder)
return (new TextEncoder).encode(e);
for (var t = new ArrayBuffer(e.length), n = new Uint8Array(t), r = 0; r < e.length; r++)
n[r] = e.charCodeAt(r);
return n
}
zo = "Browser",
Object(k._registerComponent)(new _.a("auth",(function(e, t) {
var n = t.options
, r = e.getProvider("app").getImmediate()
, i = r.options
, o = i.apiKey
, a = i.authDomain;
return function(e) {
F(o && !o.includes(":"), "invalid-api-key", {
appName: e.name
}),
F(!(null == a ? void 0 : a.includes(":")), "argument-error", {
appName: e.name
});
var t = {
apiKey: o,
authDomain: a,
clientPlatform: zo,
apiHost: "identitytoolkit.googleapis.com",
tokenApiHost: "securetoken.googleapis.com",
apiScheme: "https",
sdkClientVersion: Ke(zo)
}
, r = new Ye(e,t);
return function(e, t) {
var n = (null == t ? void 0 : t.persistence) || []
, r = (Array.isArray(n) ? n : [n]).map(H);
(null == t ? void 0 : t.errorMap) && e._updateErrorMap(t.errorMap),
e._initializeWithPersistence(r, null == t ? void 0 : t.popupRedirectResolver)
}(r, n),
r
}(r)
}
),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e, t, n) {
e.getProvider("auth-internal").initialize()
}
))),
Object(k._registerComponent)(new _.a("auth-internal",(function(e) {
return function(e) {
return new Ro(e)
}(Qe(e.getProvider("auth").getImmediate()))
}
),"PRIVATE").setInstantiationMode("EXPLICIT")),
Object(k.registerVersion)(Do, Lo, function(e) {
switch (e) {
case "Node":
return "node";
case "ReactNative":
return "rn";
case "Worker":
return "webworker";
case "Cordova":
return "cordova";
default:
return
}
}(zo)),
Object(k.registerVersion)(Do, Lo, "esm2017");
var Yo = function(e) {
Object(p.a)(n, e);
var t = Object(h.a)(n);
function n() {
var e;
return Object(s.a)(this, n),
(e = t.apply(this, arguments)).passiveListeners = new Set,
e.initPromise = new Promise((function(t) {
e.resolveInialized = t
}
)),
e
}
return Object(c.a)(n, [{
key: "addPassiveListener",
value: function(e) {
this.passiveListeners.add(e)
}
}, {
key: "removePassiveListener",
value: function(e) {
this.passiveListeners.delete(e)
}
}, {
key: "resetRedirect",
value: function() {
this.queuedRedirectEvent = null,
this.hasHandledPotentialRedirect = !1
}
}, {
key: "onEvent",
value: function(e) {
return this.resolveInialized(),
this.passiveListeners.forEach((function(t) {
return t(e)
}
)),
Object(u.a)(Object(d.a)(n.prototype), "onEvent", this).call(this, e)
}
}, {
key: "initialized",
value: function() {
var e = Object(f.a)(g.a.mark((function e() {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.initPromise;
case 2:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
n
}(ro);
function Qo(e, t) {
return {
type: t,
eventId: arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null,
urlResponse: null,
sessionId: ta(),
postBody: null,
tenantId: e.tenantId,
error: L(e, "no-auth-event")
}
}
function Jo(e, t) {
return na()._set(ra(e), t)
}
function Zo(e) {
return $o.apply(this, arguments)
}
function $o() {
return ($o = Object(f.a)(g.a.mark((function e(t) {
var n;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
na()._get(ra(t));
case 2:
if (!(n = e.sent)) {
e.next = 6;
break
}
return e.next = 6,
na()._remove(ra(t));
case 6:
return e.abrupt("return", n);
case 7:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ea(e, t) {
var n, r, i = function(e) {
var t = ia(e)
, n = t.link ? decodeURIComponent(t.link) : void 0
, r = ia(n).link
, i = t.deep_link_id ? decodeURIComponent(t.deep_link_id) : void 0;
return ia(i).link || i || r || n || e
}(t);
if (i.includes("/__/auth/callback")) {
var o = ia(i)
, a = o.firebaseError ? function(e) {
try {
return JSON.parse(e)
} catch (e) {
return null
}
}(decodeURIComponent(o.firebaseError)) : null
, l = null === (r = null === (n = null == a ? void 0 : a.code) || void 0 === n ? void 0 : n.split("auth/")) || void 0 === r ? void 0 : r[1]
, s = l ? L(l) : null;
return s ? {
type: e.type,
eventId: e.eventId,
tenantId: e.tenantId,
error: s,
urlResponse: null,
sessionId: null,
postBody: null
} : {
type: e.type,
eventId: e.eventId,
tenantId: e.tenantId,
sessionId: e.sessionId,
urlResponse: i,
postBody: null
}
}
return null
}
function ta() {
for (var e = [], t = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = 0; n < 20; n++) {
var r = Math.floor(62 * Math.random());
e.push(t.charAt(r))
}
return e.join("")
}
function na() {
return H(jr)
}
function ra(e) {
return Le("authEvent", e.config.apiKey, e.name)
}
function ia(e) {
if (!(null == e ? void 0 : e.includes("?")))
return {};
var t, n = (t = e.split("?"),
Object(i.a)(t) || Object(o.a)(t) || Object(a.a)(t) || Object(l.a)()), r = (n[0],
n.slice(1));
return Object(j.y)(r.join("?"))
}
var oa = function() {
function e() {
Object(s.a)(this, e),
this._redirectPersistence = wr,
this._shouldInitProactively = !0,
this.eventManagers = new Map,
this.originValidationPromises = {},
this._completeRedirectFn = $i
}
return Object(c.a)(e, [{
key: "_initialize",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t) {
var n, r;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = t._key(),
(r = this.eventManagers.get(n)) || (r = new Yo(t),
this.eventManagers.set(n, r),
this.attachCallbackListeners(t, r)),
e.abrupt("return", r);
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_openPopup",
value: function(e) {
D(e, "operation-not-supported-in-this-environment")
}
}, {
key: "_openRedirect",
value: function() {
var e = Object(f.a)(g.a.mark((function e(t, n, r, i) {
var o, a, l, s;
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return Uo(t),
e.next = 3,
this._initialize(t);
case 3:
return o = e.sent,
e.next = 6,
o.initialized();
case 6:
return o.resetRedirect(),
Ri.clear(),
e.next = 10,
this._originValidation(t);
case 10:
return a = Qo(t, r, i),
e.next = 13,
Jo(t, a);
case 13:
return e.next = 15,
Bo(t, a, n);
case 15:
return l = e.sent,
e.next = 18,
Wo(l);
case 18:
return s = e.sent,
e.abrupt("return", qo(t, o, s));
case 20:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()
}, {
key: "_isIframeWebStorageSupported",
value: function(e, t) {
throw new Error("Method not implemented.")
}
}, {
key: "_originValidation",
value: function(e) {
var t = e._key();
return this.originValidationPromises[t] || (this.originValidationPromises[t] = function(e) {
return Vo.apply(this, arguments)
}(e)),
this.originValidationPromises[t]
}
}, {
key: "attachCallbackListeners",
value: function(e, t) {
var n = Po()
, r = n.universalLinks
, i = n.handleOpenURL
, o = n.BuildInfo
, a = setTimeout(Object(f.a)(g.a.mark((function n() {
return g.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return n.next = 2,
Zo(e);
case 2:
t.onEvent(la());
case 3:
case "end":
return n.stop()
}
}
), n)
}
))), 500)
, l = function() {
var n = Object(f.a)(g.a.mark((function n(r) {
var i, o;
return g.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return clearTimeout(a),
n.next = 3,
Zo(e);
case 3:
i = n.sent,
o = null,
i && (null == r ? void 0 : r.url) && (o = ea(i, r.url)),
t.onEvent(o || la());
case 7:
case "end":
return n.stop()
}
}
), n)
}
)));
return function(e) {
return n.apply(this, arguments)
}
}();
void 0 !== r && "function" == typeof r.subscribe && r.subscribe(null, l);
var s = i
, c = "".concat(o.packageName.toLowerCase(), "://");
Po().handleOpenURL = function() {
var e = Object(f.a)(g.a.mark((function e(t) {
return g.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t.toLowerCase().startsWith(c) && l({
url: t
}),
"function" == typeof s)
try {
s(t)
} catch (e) {
console.error(e)
}
case 2:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}
}]),
e
}()
, aa = oa;
function la() {
return {
type: "unknown",
eventId: null,
sessionId: null,
urlResponse: null,
postBody: null,
tenantId: null,
error: L("no-auth-event")
}
}
function sa(e, t) {
Qe(e)._logFramework(t)
}
}
, function(e, t, n) {
e.exports = n(478)()
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
));
var r = n(88);
function i(e, t) {
var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (!n) {
if (Array.isArray(e) || (n = Object(r.a)(e)) || t && e && "number" == typeof e.length) {
n && (e = n);
var i = 0
, o = function() {};
return {
s: o,
n: function() {
return i >= e.length ? {
done: !0
} : {
done: !1,
value: e[i++]
}
},
e: function(e) {
throw e
},
f: o
}
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
var a, l = !0, s = !1;
return {
s: function() {
n = n.call(e)
},
n: function() {
var e = n.next();
return l = e.done,
e
},
e: function(e) {
s = !0,
a = e
},
f: function() {
try {
l || null == n.return || n.return()
} finally {
if (s)
throw a
}
}
}
}
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.ReactCSS = t.loop = t.handleActive = t.handleHover = t.hover = void 0;
var r = c(n(508))
, i = c(n(509))
, o = c(n(527))
, a = c(n(528))
, l = c(n(529))
, s = c(n(530));
function c(e) {
return e && e.__esModule ? e : {
default: e
}
}
t.hover = a.default,
t.handleHover = a.default,
t.handleActive = l.default,
t.loop = s.default;
var u = t.ReactCSS = function(e) {
for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
n[a - 1] = arguments[a];
var l = (0,
r.default)(n)
, s = (0,
i.default)(e, l);
return (0,
o.default)(s)
}
;
t.default = u
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "a", (function() {
return Ou
}
)),
n.d(t, "b", (function() {
return mc
}
)),
n.d(t, "c", (function() {
return nc
}
)),
n.d(t, "d", (function() {
return Us
}
)),
n.d(t, "e", (function() {
return Qc
}
)),
n.d(t, "f", (function() {
return gc
}
)),
n.d(t, "g", (function() {
return L
}
)),
n.d(t, "h", (function() {
return yc
}
)),
n.d(t, "i", (function() {
return Jc
}
)),
n.d(t, "j", (function() {
return Zc
}
)),
n.d(t, "k", (function() {
return Z
}
)),
n.d(t, "l", (function() {
return wu
}
)),
n.d(t, "m", (function() {
return Ns
}
)),
n.d(t, "n", (function() {
return xe
}
)),
n.d(t, "o", (function() {
return ae
}
)),
n.d(t, "p", (function() {
return Fs
}
)),
n.d(t, "q", (function() {
return N
}
)),
n.d(t, "r", (function() {
return se
}
)),
n.d(t, "s", (function() {
return A
}
)),
n.d(t, "t", (function() {
return Ls
}
)),
n.d(t, "u", (function() {
return Lu
}
)),
n.d(t, "v", (function() {
return Xu
}
)),
n.d(t, "w", (function() {
return Uu
}
)),
n.d(t, "x", (function() {
return cc
}
)),
n.d(t, "y", (function() {
return Ks
}
)),
n.d(t, "z", (function() {
return Ys
}
)),
n.d(t, "A", (function() {
return Hs
}
)),
n.d(t, "B", (function() {
return Du
}
)),
n.d(t, "C", (function() {
return qu
}
)),
n.d(t, "D", (function() {
return pc
}
)),
n.d(t, "E", (function() {
return Qs
}
)),
n.d(t, "F", (function() {
return ac
}
)),
n.d(t, "G", (function() {
return lc
}
)),
n.d(t, "H", (function() {
return dc
}
)),
n.d(t, "I", (function() {
return gu
}
)),
n.d(t, "J", (function() {
return bu
}
)),
n.d(t, "K", (function() {
return ic
}
)),
n.d(t, "L", (function() {
return Bu
}
)),
n.d(t, "M", (function() {
return _u
}
)),
n.d(t, "N", (function() {
return Su
}
)),
n.d(t, "O", (function() {
return Au
}
)),
n.d(t, "P", (function() {
return Tu
}
)),
n.d(t, "Q", (function() {
return Eu
}
)),
n.d(t, "R", (function() {
return Iu
}
)),
n.d(t, "S", (function() {
return Gu
}
)),
n.d(t, "T", (function() {
return cu
}
)),
n.d(t, "U", (function() {
return uu
}
)),
n.d(t, "V", (function() {
return hc
}
)),
n.d(t, "W", (function() {
return fc
}
)),
n.d(t, "X", (function() {
return Ru
}
)),
n.d(t, "Y", (function() {
return Pu
}
)),
n.d(t, "Z", (function() {
return lu
}
)),
n.d(t, "ab", (function() {
return ru
}
)),
n.d(t, "bb", (function() {
return Zs
}
)),
n.d(t, "cb", (function() {
return Js
}
)),
n.d(t, "db", (function() {
return Wu
}
)),
n.d(t, "eb", (function() {
return Hu
}
)),
n.d(t, "fb", (function() {
return Nu
}
)),
n.d(t, "gb", (function() {
return _
}
)),
n.d(t, "hb", (function() {
return eu
}
)),
n.d(t, "ib", (function() {
return hu
}
)),
n.d(t, "jb", (function() {
return pu
}
)),
n.d(t, "kb", (function() {
return zu
}
)),
n.d(t, "lb", (function() {
return uc
}
)),
n.d(t, "mb", (function() {
return ou
}
));
var r = n(113)
, i = n(51)
, o = n(43)
, a = n(12)
, l = n(19)
, s = n(10)
, c = n(8)
, u = n(9)
, d = n(33)
, p = n(5)
, h = n(6)
, f = n(7)
, b = n.n(f)
, g = n(35)
, m = n(55)
, v = n(53)
, y = n(14)
, x = n(61)
, O = "@firebase/firestore"
, j = function() {
function e(t) {
Object(p.a)(this, e),
this.uid = t
}
return Object(h.a)(e, [{
key: "isAuthenticated",
value: function() {
return null != this.uid
}
}, {
key: "toKey",
value: function() {
return this.isAuthenticated() ? "uid:" + this.uid : "anonymous-user"
}
}, {
key: "isEqual",
value: function(e) {
return e.uid === this.uid
}
}]),
e
}();
j.UNAUTHENTICATED = new j(null),
j.GOOGLE_CREDENTIALS = new j("google-credentials-uid"),
j.FIRST_PARTY = new j("first-party-uid"),
j.MOCK_USER = new j("mock-user");
var k = "9.6.2"
, w = new v.b("@firebase/firestore");
function C() {
return w.logLevel
}
function _(e) {
w.setLogLevel(e)
}
function M(e) {
if (w.logLevel <= v.a.DEBUG) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var i = n.map(T);
w.debug.apply(w, ["Firestore (".concat(k, "): ").concat(e)].concat(Object(d.a)(i)))
}
}
function S(e) {
if (w.logLevel <= v.a.ERROR) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var i = n.map(T);
w.error.apply(w, ["Firestore (".concat(k, "): ").concat(e)].concat(Object(d.a)(i)))
}
}
function A(e) {
if (w.logLevel <= v.a.WARN) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var i = n.map(T);
w.warn.apply(w, ["Firestore (".concat(k, "): ").concat(e)].concat(Object(d.a)(i)))
}
}
function T(e) {
if ("string" == typeof e)
return e;
try {
return t = e,
JSON.stringify(t)
} catch (t) {
return e
}
var t
}
function E() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "Unexpected state"
, t = "FIRESTORE (".concat(k, ") INTERNAL ASSERTION FAILED: ") + e;
throw S(t),
new Error(t)
}
function I(e, t) {
e || E()
}
function N(e, t) {
e || E()
}
function z(e, t) {
return e
}
var D = {
OK: "ok",
CANCELLED: "cancelled",
UNKNOWN: "unknown",
INVALID_ARGUMENT: "invalid-argument",
DEADLINE_EXCEEDED: "deadline-exceeded",
NOT_FOUND: "not-found",
ALREADY_EXISTS: "already-exists",
PERMISSION_DENIED: "permission-denied",
UNAUTHENTICATED: "unauthenticated",
RESOURCE_EXHAUSTED: "resource-exhausted",
FAILED_PRECONDITION: "failed-precondition",
ABORTED: "aborted",
OUT_OF_RANGE: "out-of-range",
UNIMPLEMENTED: "unimplemented",
INTERNAL: "internal",
UNAVAILABLE: "unavailable",
DATA_LOSS: "data-loss"
}
, L = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e, r)).code = e,
i.message = r,
i.toString = function() {
return "".concat(i.name, ": [code=").concat(i.code, "]: ").concat(i.message)
}
,
i
}
return Object(h.a)(n)
}(y.c)
, R = Object(h.a)((function e() {
var t = this;
Object(p.a)(this, e),
this.promise = new Promise((function(e, n) {
t.resolve = e,
t.reject = n
}
))
}
))
, P = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.user = n,
this.type = "OAuth",
this.headers = new Map,
this.headers.set("Authorization", "Bearer ".concat(t))
}
))
, B = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, [{
key: "getToken",
value: function() {
return Promise.resolve(null)
}
}, {
key: "invalidateToken",
value: function() {}
}, {
key: "start",
value: function(e, t) {
e.enqueueRetryable((function() {
return t(j.UNAUTHENTICATED)
}
))
}
}, {
key: "shutdown",
value: function() {}
}]),
e
}()
, F = function() {
function e(t) {
Object(p.a)(this, e),
this.token = t,
this.changeListener = null
}
return Object(h.a)(e, [{
key: "getToken",
value: function() {
return Promise.resolve(this.token)
}
}, {
key: "invalidateToken",
value: function() {}
}, {
key: "start",
value: function(e, t) {
var n = this;
this.changeListener = t,
e.enqueueRetryable((function() {
return t(n.token.user)
}
))
}
}, {
key: "shutdown",
value: function() {
this.changeListener = null
}
}]),
e
}()
, V = function() {
function e(t) {
Object(p.a)(this, e),
this.t = t,
this.currentUser = j.UNAUTHENTICATED,
this.i = 0,
this.forceRefresh = !1,
this.auth = null
}
return Object(h.a)(e, [{
key: "start",
value: function(e, t) {
var n = this
, r = this.i
, i = function(e) {
return n.i !== r ? (r = n.i,
t(e)) : Promise.resolve()
}
, o = new R;
this.o = function() {
n.i++,
n.currentUser = n.u(),
o.resolve(),
o = new R,
e.enqueueRetryable((function() {
return i(n.currentUser)
}
))
}
;
var a = function() {
var t = o;
e.enqueueRetryable(Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
t.promise;
case 2:
return e.next = 4,
i(n.currentUser);
case 4:
case "end":
return e.stop()
}
}
), e)
}
))))
}
, l = function(e) {
M("FirebaseAuthCredentialsProvider", "Auth detected"),
n.auth = e,
n.auth.addAuthTokenListener(n.o),
a()
};
this.t.onInit((function(e) {
return l(e)
}
)),
setTimeout((function() {
if (!n.auth) {
var e = n.t.getImmediate({
optional: !0
});
e ? l(e) : (M("FirebaseAuthCredentialsProvider", "Auth not yet detected"),
o.resolve(),
o = new R)
}
}
), 0),
a()
}
}, {
key: "getToken",
value: function() {
var e = this
, t = this.i
, n = this.forceRefresh;
return this.forceRefresh = !1,
this.auth ? this.auth.getToken(n).then((function(n) {
return e.i !== t ? (M("FirebaseAuthCredentialsProvider", "getToken aborted due to token change."),
e.getToken()) : n ? (I("string" == typeof n.accessToken),
new P(n.accessToken,e.currentUser)) : null
}
)) : Promise.resolve(null)
}
}, {
key: "invalidateToken",
value: function() {
this.forceRefresh = !0
}
}, {
key: "shutdown",
value: function() {
this.auth && this.auth.removeAuthTokenListener(this.o)
}
}, {
key: "u",
value: function() {
var e = this.auth && this.auth.getUid();
return I(null === e || "string" == typeof e),
new j(e)
}
}]),
e
}()
, W = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.type = "FirstParty",
this.user = j.FIRST_PARTY,
this.headers = new Map,
this.headers.set("X-Goog-AuthUser", n);
var i = t.auth.getAuthHeaderValueForFirstParty([]);
i && this.headers.set("Authorization", i),
r && this.headers.set("X-Goog-Iam-Authorization-Token", r)
}
))
, q = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.h = t,
this.l = n,
this.m = r
}
return Object(h.a)(e, [{
key: "getToken",
value: function() {
return Promise.resolve(new W(this.h,this.l,this.m))
}
}, {
key: "start",
value: function(e, t) {
e.enqueueRetryable((function() {
return t(j.FIRST_PARTY)
}
))
}
}, {
key: "shutdown",
value: function() {}
}, {
key: "invalidateToken",
value: function() {}
}]),
e
}()
, H = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.value = t,
this.type = "AppCheck",
this.headers = new Map,
t && t.length > 0 && this.headers.set("x-firebase-appcheck", this.value)
}
))
, U = function() {
function e(t) {
Object(p.a)(this, e),
this.g = t,
this.forceRefresh = !1,
this.appCheck = null
}
return Object(h.a)(e, [{
key: "start",
value: function(e, t) {
var n = this;
this.o = function(n) {
e.enqueueRetryable((function() {
return function(e) {
return null != e.error && M("FirebaseAppCheckTokenProvider", "Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message)),
t(e.token)
}(n)
}
))
}
;
var r = function(e) {
M("FirebaseAppCheckTokenProvider", "AppCheck detected"),
n.appCheck = e,
n.appCheck.addTokenListener(n.o)
};
this.g.onInit((function(e) {
return r(e)
}
)),
setTimeout((function() {
if (!n.appCheck) {
var e = n.g.getImmediate({
optional: !0
});
e ? r(e) : M("FirebaseAppCheckTokenProvider", "AppCheck not yet detected")
}
}
), 0)
}
}, {
key: "getToken",
value: function() {
var e = this.forceRefresh;
return this.forceRefresh = !1,
this.appCheck ? this.appCheck.getToken(e).then((function(e) {
return e ? (I("string" == typeof e.token),
new H(e.token)) : null
}
)) : Promise.resolve(null)
}
}, {
key: "invalidateToken",
value: function() {
this.forceRefresh = !0
}
}, {
key: "shutdown",
value: function() {
this.appCheck && this.appCheck.removeTokenListener(this.o)
}
}]),
e
}()
, X = function() {
function e(t, n) {
var r = this;
Object(p.a)(this, e),
this.previousValue = t,
n && (n.sequenceNumberHandler = function(e) {
return r.p(e)
}
,
this.T = function(e) {
return n.writeSequenceNumber(e)
}
)
}
return Object(h.a)(e, [{
key: "p",
value: function(e) {
return this.previousValue = Math.max(e, this.previousValue),
this.previousValue
}
}, {
key: "next",
value: function() {
var e = ++this.previousValue;
return this.T && this.T(e),
e
}
}]),
e
}();
function G(e) {
var t = "undefined" != typeof self && (self.crypto || self.msCrypto)
, n = new Uint8Array(e);
if (t && "function" == typeof t.getRandomValues)
t.getRandomValues(n);
else
for (var r = 0; r < e; r++)
n[r] = Math.floor(256 * Math.random());
return n
}
X.I = -1;
var K = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, null, [{
key: "A",
value: function() {
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", t = 62 * Math.floor(256 / 62), n = ""; n.length < 20; )
for (var r = G(40), i = 0; i < r.length; ++i)
n.length < 20 && r[i] < t && (n += e.charAt(r[i] % 62));
return n
}
}]),
e
}();
function Y(e, t) {
return e < t ? -1 : e > t ? 1 : 0
}
function Q(e, t, n) {
return e.length === t.length && e.every((function(e, r) {
return n(e, t[r])
}
))
}
function J(e) {
return e + "\0"
}
var Z = function() {
function e(t, n) {
if (Object(p.a)(this, e),
this.seconds = t,
this.nanoseconds = n,
n < 0)
throw new L(D.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: " + n);
if (n >= 1e9)
throw new L(D.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: " + n);
if (t < -62135596800)
throw new L(D.INVALID_ARGUMENT,"Timestamp seconds out of range: " + t);
if (t >= 253402300800)
throw new L(D.INVALID_ARGUMENT,"Timestamp seconds out of range: " + t)
}
return Object(h.a)(e, [{
key: "toDate",
value: function() {
return new Date(this.toMillis())
}
}, {
key: "toMillis",
value: function() {
return 1e3 * this.seconds + this.nanoseconds / 1e6
}
}, {
key: "_compareTo",
value: function(e) {
return this.seconds === e.seconds ? Y(this.nanoseconds, e.nanoseconds) : Y(this.seconds, e.seconds)
}
}, {
key: "isEqual",
value: function(e) {
return e.seconds === this.seconds && e.nanoseconds === this.nanoseconds
}
}, {
key: "toString",
value: function() {
return "Timestamp(seconds=" + this.seconds + ", nanoseconds=" + this.nanoseconds + ")"
}
}, {
key: "toJSON",
value: function() {
return {
seconds: this.seconds,
nanoseconds: this.nanoseconds
}
}
}, {
key: "valueOf",
value: function() {
var e = this.seconds - -62135596800;
return String(e).padStart(12, "0") + "." + String(this.nanoseconds).padStart(9, "0")
}
}], [{
key: "now",
value: function() {
return e.fromMillis(Date.now())
}
}, {
key: "fromDate",
value: function(t) {
return e.fromMillis(t.getTime())
}
}, {
key: "fromMillis",
value: function(t) {
var n = Math.floor(t / 1e3);
return new e(n,Math.floor(1e6 * (t - 1e3 * n)))
}
}]),
e
}()
, $ = function() {
function e(t) {
Object(p.a)(this, e),
this.timestamp = t
}
return Object(h.a)(e, [{
key: "compareTo",
value: function(e) {
return this.timestamp._compareTo(e.timestamp)
}
}, {
key: "isEqual",
value: function(e) {
return this.timestamp.isEqual(e.timestamp)
}
}, {
key: "toMicroseconds",
value: function() {
return 1e6 * this.timestamp.seconds + this.timestamp.nanoseconds / 1e3
}
}, {
key: "toString",
value: function() {
return "SnapshotVersion(" + this.timestamp.toString() + ")"
}
}, {
key: "toTimestamp",
value: function() {
return this.timestamp
}
}], [{
key: "fromTimestamp",
value: function(t) {
return new e(t)
}
}, {
key: "min",
value: function() {
return new e(new Z(0,0))
}
}]),
e
}();
function ee(e) {
var t = 0;
for (var n in e)
Object.prototype.hasOwnProperty.call(e, n) && t++;
return t
}
function te(e, t) {
for (var n in e)
Object.prototype.hasOwnProperty.call(e, n) && t(n, e[n])
}
function ne(e) {
for (var t in e)
if (Object.prototype.hasOwnProperty.call(e, t))
return !1;
return !0
}
var re = function() {
function e(t, n, r) {
Object(p.a)(this, e),
void 0 === n ? n = 0 : n > t.length && E(),
void 0 === r ? r = t.length - n : r > t.length - n && E(),
this.segments = t,
this.offset = n,
this.len = r
}
return Object(h.a)(e, [{
key: "length",
get: function() {
return this.len
}
}, {
key: "isEqual",
value: function(t) {
return 0 === e.comparator(this, t)
}
}, {
key: "child",
value: function(t) {
var n = this.segments.slice(this.offset, this.limit());
return t instanceof e ? t.forEach((function(e) {
n.push(e)
}
)) : n.push(t),
this.construct(n)
}
}, {
key: "limit",
value: function() {
return this.offset + this.length
}
}, {
key: "popFirst",
value: function(e) {
return e = void 0 === e ? 1 : e,
this.construct(this.segments, this.offset + e, this.length - e)
}
}, {
key: "popLast",
value: function() {
return this.construct(this.segments, this.offset, this.length - 1)
}
}, {
key: "firstSegment",
value: function() {
return this.segments[this.offset]
}
}, {
key: "lastSegment",
value: function() {
return this.get(this.length - 1)
}
}, {
key: "get",
value: function(e) {
return this.segments[this.offset + e]
}
}, {
key: "isEmpty",
value: function() {
return 0 === this.length
}
}, {
key: "isPrefixOf",
value: function(e) {
if (e.length < this.length)
return !1;
for (var t = 0; t < this.length; t++)
if (this.get(t) !== e.get(t))
return !1;
return !0
}
}, {
key: "isImmediateParentOf",
value: function(e) {
if (this.length + 1 !== e.length)
return !1;
for (var t = 0; t < this.length; t++)
if (this.get(t) !== e.get(t))
return !1;
return !0
}
}, {
key: "forEach",
value: function(e) {
for (var t = this.offset, n = this.limit(); t < n; t++)
e(this.segments[t])
}
}, {
key: "toArray",
value: function() {
return this.segments.slice(this.offset, this.limit())
}
}], [{
key: "comparator",
value: function(e, t) {
for (var n = Math.min(e.length, t.length), r = 0; r < n; r++) {
var i = e.get(r)
, o = t.get(r);
if (i < o)
return -1;
if (i > o)
return 1
}
return e.length < t.length ? -1 : e.length > t.length ? 1 : 0
}
}]),
e
}()
, ie = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n, [{
key: "construct",
value: function(e, t, r) {
return new n(e,t,r)
}
}, {
key: "canonicalString",
value: function() {
return this.toArray().join("/")
}
}, {
key: "toString",
value: function() {
return this.canonicalString()
}
}], [{
key: "fromString",
value: function() {
for (var e = [], t = arguments.length, r = new Array(t), i = 0; i < t; i++)
r[i] = arguments[i];
for (var o = 0, a = r; o < a.length; o++) {
var l = a[o];
if (l.indexOf("//") >= 0)
throw new L(D.INVALID_ARGUMENT,"Invalid segment (".concat(l, "). Paths must not contain // in them."));
e.push.apply(e, Object(d.a)(l.split("/").filter((function(e) {
return e.length > 0
}
))))
}
return new n(e)
}
}, {
key: "emptyPath",
value: function() {
return new n([])
}
}]),
n
}(re)
, oe = /^[_a-zA-Z][_a-zA-Z0-9]*$/
, ae = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n, [{
key: "construct",
value: function(e, t, r) {
return new n(e,t,r)
}
}, {
key: "canonicalString",
value: function() {
return this.toArray().map((function(e) {
return e = e.replace(/\\/g, "\\\\").replace(/`/g, "\\`"),
n.isValidIdentifier(e) || (e = "`" + e + "`"),
e
}
)).join(".")
}
}, {
key: "toString",
value: function() {
return this.canonicalString()
}
}, {
key: "isKeyField",
value: function() {
return 1 === this.length && "__name__" === this.get(0)
}
}], [{
key: "isValidIdentifier",
value: function(e) {
return oe.test(e)
}
}, {
key: "keyField",
value: function() {
return new n(["__name__"])
}
}, {
key: "fromServerFormat",
value: function(e) {
for (var t = [], r = "", i = 0, o = function() {
if (0 === r.length)
throw new L(D.INVALID_ARGUMENT,"Invalid field path (".concat(e, "). Paths must not be empty, begin with '.', end with '.', or contain '..'"));
t.push(r),
r = ""
}, a = !1; i < e.length; ) {
var l = e[i];
if ("\\" === l) {
if (i + 1 === e.length)
throw new L(D.INVALID_ARGUMENT,"Path has trailing escape character: " + e);
var s = e[i + 1];
if ("\\" !== s && "." !== s && "`" !== s)
throw new L(D.INVALID_ARGUMENT,"Path has invalid escape sequence: " + e);
r += s,
i += 2
} else
"`" === l ? (a = !a,
i++) : "." !== l || a ? (r += l,
i++) : (o(),
i++)
}
if (o(),
a)
throw new L(D.INVALID_ARGUMENT,"Unterminated ` in path: " + e);
return new n(t)
}
}, {
key: "emptyPath",
value: function() {
return new n([])
}
}]),
n
}(re)
, le = function() {
function e(t) {
Object(p.a)(this, e),
this.fields = t,
t.sort(ae.comparator)
}
return Object(h.a)(e, [{
key: "covers",
value: function(e) {
var t, n = Object(l.a)(this.fields);
try {
for (n.s(); !(t = n.n()).done; )
if (t.value.isPrefixOf(e))
return !0
} catch (e) {
n.e(e)
} finally {
n.f()
}
return !1
}
}, {
key: "isEqual",
value: function(e) {
return Q(this.fields, e.fields, (function(e, t) {
return e.isEqual(t)
}
))
}
}]),
e
}();
function se() {
return "undefined" != typeof atob
}
var ce = function(e) {
function t(e) {
Object(p.a)(this, t),
this.binaryString = e
}
return Object(h.a)(t, [{
key: e,
value: function() {
var e = this
, t = 0;
return {
next: function() {
return t < e.binaryString.length ? {
value: e.binaryString.charCodeAt(t++),
done: !1
} : {
value: void 0,
done: !0
}
}
}
}
}, {
key: "toBase64",
value: function() {
return e = this.binaryString,
btoa(e);
var e
}
}, {
key: "toUint8Array",
value: function() {
return function(e) {
for (var t = new Uint8Array(e.length), n = 0; n < e.length; n++)
t[n] = e.charCodeAt(n);
return t
}(this.binaryString)
}
}, {
key: "approximateByteSize",
value: function() {
return 2 * this.binaryString.length
}
}, {
key: "compareTo",
value: function(e) {
return Y(this.binaryString, e.binaryString)
}
}, {
key: "isEqual",
value: function(e) {
return this.binaryString === e.binaryString
}
}], [{
key: "fromBase64String",
value: function(e) {
return new t(atob(e))
}
}, {
key: "fromUint8Array",
value: function(e) {
var n = function(e) {
for (var t = "", n = 0; n < e.length; ++n)
t += String.fromCharCode(e[n]);
return t
}(e);
return new t(n)
}
}]),
t
}(Symbol.iterator);
ce.EMPTY_BYTE_STRING = new ce("");
var ue = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
function de(e) {
if (I(!!e),
"string" == typeof e) {
var t = 0
, n = ue.exec(e);
if (I(!!n),
n[1]) {
var r = n[1];
r = (r + "000000000").substr(0, 9),
t = Number(r)
}
var i = new Date(e);
return {
seconds: Math.floor(i.getTime() / 1e3),
nanos: t
}
}
return {
seconds: pe(e.seconds),
nanos: pe(e.nanos)
}
}
function pe(e) {
return "number" == typeof e ? e : "string" == typeof e ? Number(e) : 0
}
function he(e) {
return "string" == typeof e ? ce.fromBase64String(e) : ce.fromUint8Array(e)
}
function fe(e) {
var t, n;
return "server_timestamp" === (null === (n = ((null === (t = null == e ? void 0 : e.mapValue) || void 0 === t ? void 0 : t.fields) || {}).__type__) || void 0 === n ? void 0 : n.stringValue)
}
function be(e) {
var t = e.mapValue.fields.__previous_value__;
return fe(t) ? be(t) : t
}
function ge(e) {
var t = de(e.mapValue.fields.__local_write_time__.timestampValue);
return new Z(t.seconds,t.nanos)
}
function me(e) {
return null == e
}
function ve(e) {
return 0 === e && 1 / e == -1 / 0
}
function ye(e) {
return "number" == typeof e && Number.isInteger(e) && !ve(e) && e <= Number.MAX_SAFE_INTEGER && e >= Number.MIN_SAFE_INTEGER
}
var xe = function() {
function e(t) {
Object(p.a)(this, e),
this.path = t
}
return Object(h.a)(e, [{
key: "hasCollectionId",
value: function(e) {
return this.path.length >= 2 && this.path.get(this.path.length - 2) === e
}
}, {
key: "isEqual",
value: function(e) {
return null !== e && 0 === ie.comparator(this.path, e.path)
}
}, {
key: "toString",
value: function() {
return this.path.toString()
}
}], [{
key: "fromPath",
value: function(t) {
return new e(ie.fromString(t))
}
}, {
key: "fromName",
value: function(t) {
return new e(ie.fromString(t).popFirst(5))
}
}, {
key: "comparator",
value: function(e, t) {
return ie.comparator(e.path, t.path)
}
}, {
key: "isDocumentKey",
value: function(e) {
return e.length % 2 == 0
}
}, {
key: "fromSegments",
value: function(t) {
return new e(new ie(t.slice()))
}
}]),
e
}();
function Oe(e) {
return "nullValue"in e ? 0 : "booleanValue"in e ? 1 : "integerValue"in e || "doubleValue"in e ? 2 : "timestampValue"in e ? 3 : "stringValue"in e ? 5 : "bytesValue"in e ? 6 : "referenceValue"in e ? 7 : "geoPointValue"in e ? 8 : "arrayValue"in e ? 9 : "mapValue"in e ? fe(e) ? 4 : 10 : E()
}
function je(e, t) {
if (e === t)
return !0;
var n = Oe(e);
if (n !== Oe(t))
return !1;
switch (n) {
case 0:
return !0;
case 1:
return e.booleanValue === t.booleanValue;
case 4:
return ge(e).isEqual(ge(t));
case 3:
return function(e, t) {
if ("string" == typeof e.timestampValue && "string" == typeof t.timestampValue && e.timestampValue.length === t.timestampValue.length)
return e.timestampValue === t.timestampValue;
var n = de(e.timestampValue)
, r = de(t.timestampValue);
return n.seconds === r.seconds && n.nanos === r.nanos
}(e, t);
case 5:
return e.stringValue === t.stringValue;
case 6:
return function(e, t) {
return he(e.bytesValue).isEqual(he(t.bytesValue))
}(e, t);
case 7:
return e.referenceValue === t.referenceValue;
case 8:
return function(e, t) {
return pe(e.geoPointValue.latitude) === pe(t.geoPointValue.latitude) && pe(e.geoPointValue.longitude) === pe(t.geoPointValue.longitude)
}(e, t);
case 2:
return function(e, t) {
if ("integerValue"in e && "integerValue"in t)
return pe(e.integerValue) === pe(t.integerValue);
if ("doubleValue"in e && "doubleValue"in t) {
var n = pe(e.doubleValue)
, r = pe(t.doubleValue);
return n === r ? ve(n) === ve(r) : isNaN(n) && isNaN(r)
}
return !1
}(e, t);
case 9:
return Q(e.arrayValue.values || [], t.arrayValue.values || [], je);
case 10:
return function(e, t) {
var n = e.mapValue.fields || {}
, r = t.mapValue.fields || {};
if (ee(n) !== ee(r))
return !1;
for (var i in n)
if (n.hasOwnProperty(i) && (void 0 === r[i] || !je(n[i], r[i])))
return !1;
return !0
}(e, t);
default:
return E()
}
}
function ke(e, t) {
return void 0 !== (e.values || []).find((function(e) {
return je(e, t)
}
))
}
function we(e, t) {
if (e === t)
return 0;
var n = Oe(e)
, r = Oe(t);
if (n !== r)
return Y(n, r);
switch (n) {
case 0:
return 0;
case 1:
return Y(e.booleanValue, t.booleanValue);
case 2:
return function(e, t) {
var n = pe(e.integerValue || e.doubleValue)
, r = pe(t.integerValue || t.doubleValue);
return n < r ? -1 : n > r ? 1 : n === r ? 0 : isNaN(n) ? isNaN(r) ? 0 : -1 : 1
}(e, t);
case 3:
return Ce(e.timestampValue, t.timestampValue);
case 4:
return Ce(ge(e), ge(t));
case 5:
return Y(e.stringValue, t.stringValue);
case 6:
return function(e, t) {
var n = he(e)
, r = he(t);
return n.compareTo(r)
}(e.bytesValue, t.bytesValue);
case 7:
return function(e, t) {
for (var n = e.split("/"), r = t.split("/"), i = 0; i < n.length && i < r.length; i++) {
var o = Y(n[i], r[i]);
if (0 !== o)
return o
}
return Y(n.length, r.length)
}(e.referenceValue, t.referenceValue);
case 8:
return function(e, t) {
var n = Y(pe(e.latitude), pe(t.latitude));
return 0 !== n ? n : Y(pe(e.longitude), pe(t.longitude))
}(e.geoPointValue, t.geoPointValue);
case 9:
return function(e, t) {
for (var n = e.values || [], r = t.values || [], i = 0; i < n.length && i < r.length; ++i) {
var o = we(n[i], r[i]);
if (o)
return o
}
return Y(n.length, r.length)
}(e.arrayValue, t.arrayValue);
case 10:
return function(e, t) {
var n = e.fields || {}
, r = Object.keys(n)
, i = t.fields || {}
, o = Object.keys(i);
r.sort(),
o.sort();
for (var a = 0; a < r.length && a < o.length; ++a) {
var l = Y(r[a], o[a]);
if (0 !== l)
return l;
var s = we(n[r[a]], i[o[a]]);
if (0 !== s)
return s
}
return Y(r.length, o.length)
}(e.mapValue, t.mapValue);
default:
throw E()
}
}
function Ce(e, t) {
if ("string" == typeof e && "string" == typeof t && e.length === t.length)
return Y(e, t);
var n = de(e)
, r = de(t)
, i = Y(n.seconds, r.seconds);
return 0 !== i ? i : Y(n.nanos, r.nanos)
}
function _e(e) {
return Me(e)
}
function Me(e) {
return "nullValue"in e ? "null" : "booleanValue"in e ? "" + e.booleanValue : "integerValue"in e ? "" + e.integerValue : "doubleValue"in e ? "" + e.doubleValue : "timestampValue"in e ? function(e) {
var t = de(e);
return "time(".concat(t.seconds, ",").concat(t.nanos, ")")
}(e.timestampValue) : "stringValue"in e ? e.stringValue : "bytesValue"in e ? he(e.bytesValue).toBase64() : "referenceValue"in e ? (n = e.referenceValue,
xe.fromName(n).toString()) : "geoPointValue"in e ? "geo(".concat((t = e.geoPointValue).latitude, ",").concat(t.longitude, ")") : "arrayValue"in e ? function(e) {
var t, n = "[", r = !0, i = Object(l.a)(e.values || []);
try {
for (i.s(); !(t = i.n()).done; ) {
var o = t.value;
r ? r = !1 : n += ",",
n += Me(o)
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return n + "]"
}(e.arrayValue) : "mapValue"in e ? function(e) {
var t, n = Object.keys(e.fields || {}).sort(), r = "{", i = !0, o = Object(l.a)(n);
try {
for (o.s(); !(t = o.n()).done; ) {
var a = t.value;
i ? i = !1 : r += ",",
r += "".concat(a, ":").concat(Me(e.fields[a]))
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
return r + "}"
}(e.mapValue) : E();
var t, n
}
function Se(e, t) {
return {
referenceValue: "projects/".concat(e.projectId, "/databases/").concat(e.database, "/documents/").concat(t.path.canonicalString())
}
}
function Ae(e) {
return !!e && "integerValue"in e
}
function Te(e) {
return !!e && "arrayValue"in e
}
function Ee(e) {
return !!e && "nullValue"in e
}
function Ie(e) {
return !!e && "doubleValue"in e && isNaN(Number(e.doubleValue))
}
function Ne(e) {
return !!e && "mapValue"in e
}
function ze(e) {
if (e.geoPointValue)
return {
geoPointValue: Object.assign({}, e.geoPointValue)
};
if (e.timestampValue && "object" == typeof e.timestampValue)
return {
timestampValue: Object.assign({}, e.timestampValue)
};
if (e.mapValue) {
var t = {
mapValue: {
fields: {}
}
};
return te(e.mapValue.fields, (function(e, n) {
return t.mapValue.fields[e] = ze(n)
}
)),
t
}
if (e.arrayValue) {
for (var n = {
arrayValue: {
values: []
}
}, r = 0; r < (e.arrayValue.values || []).length; ++r)
n.arrayValue.values[r] = ze(e.arrayValue.values[r]);
return n
}
return Object.assign({}, e)
}
var De = function() {
function e(t) {
Object(p.a)(this, e),
this.value = t
}
return Object(h.a)(e, [{
key: "field",
value: function(e) {
if (e.isEmpty())
return this.value;
for (var t = this.value, n = 0; n < e.length - 1; ++n)
if (!Ne(t = (t.mapValue.fields || {})[e.get(n)]))
return null;
return (t = (t.mapValue.fields || {})[e.lastSegment()]) || null
}
}, {
key: "set",
value: function(e, t) {
this.getFieldsMap(e.popLast())[e.lastSegment()] = ze(t)
}
}, {
key: "setAll",
value: function(e) {
var t = this
, n = ae.emptyPath()
, r = {}
, i = [];
e.forEach((function(e, o) {
if (!n.isImmediateParentOf(o)) {
var a = t.getFieldsMap(n);
t.applyChanges(a, r, i),
r = {},
i = [],
n = o.popLast()
}
e ? r[o.lastSegment()] = ze(e) : i.push(o.lastSegment())
}
));
var o = this.getFieldsMap(n);
this.applyChanges(o, r, i)
}
}, {
key: "delete",
value: function(e) {
var t = this.field(e.popLast());
Ne(t) && t.mapValue.fields && delete t.mapValue.fields[e.lastSegment()]
}
}, {
key: "isEqual",
value: function(e) {
return je(this.value, e.value)
}
}, {
key: "getFieldsMap",
value: function(e) {
var t = this.value;
t.mapValue.fields || (t.mapValue = {
fields: {}
});
for (var n = 0; n < e.length; ++n) {
var r = t.mapValue.fields[e.get(n)];
Ne(r) && r.mapValue.fields || (r = {
mapValue: {
fields: {}
}
},
t.mapValue.fields[e.get(n)] = r),
t = r
}
return t.mapValue.fields
}
}, {
key: "applyChanges",
value: function(e, t, n) {
te(t, (function(t, n) {
return e[t] = n
}
));
var r, i = Object(l.a)(n);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = r.value;
delete e[o]
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
}
}, {
key: "clone",
value: function() {
return new e(ze(this.value))
}
}], [{
key: "empty",
value: function() {
return new e({
mapValue: {}
})
}
}]),
e
}();
function Le(e) {
var t = [];
return te(e.fields, (function(e, n) {
var r = new ae([e]);
if (Ne(n)) {
var i = Le(n.mapValue).fields;
if (0 === i.length)
t.push(r);
else {
var o, a = Object(l.a)(i);
try {
for (a.s(); !(o = a.n()).done; ) {
var s = o.value;
t.push(r.child(s))
}
} catch (e) {
a.e(e)
} finally {
a.f()
}
}
} else
t.push(r)
}
)),
new le(t)
}
var Re = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.key = t,
this.documentType = n,
this.version = r,
this.data = i,
this.documentState = o
}
return Object(h.a)(e, [{
key: "convertToFoundDocument",
value: function(e, t) {
return this.version = e,
this.documentType = 1,
this.data = t,
this.documentState = 0,
this
}
}, {
key: "convertToNoDocument",
value: function(e) {
return this.version = e,
this.documentType = 2,
this.data = De.empty(),
this.documentState = 0,
this
}
}, {
key: "convertToUnknownDocument",
value: function(e) {
return this.version = e,
this.documentType = 3,
this.data = De.empty(),
this.documentState = 2,
this
}
}, {
key: "setHasCommittedMutations",
value: function() {
return this.documentState = 2,
this
}
}, {
key: "setHasLocalMutations",
value: function() {
return this.documentState = 1,
this
}
}, {
key: "hasLocalMutations",
get: function() {
return 1 === this.documentState
}
}, {
key: "hasCommittedMutations",
get: function() {
return 2 === this.documentState
}
}, {
key: "hasPendingWrites",
get: function() {
return this.hasLocalMutations || this.hasCommittedMutations
}
}, {
key: "isValidDocument",
value: function() {
return 0 !== this.documentType
}
}, {
key: "isFoundDocument",
value: function() {
return 1 === this.documentType
}
}, {
key: "isNoDocument",
value: function() {
return 2 === this.documentType
}
}, {
key: "isUnknownDocument",
value: function() {
return 3 === this.documentType
}
}, {
key: "isEqual",
value: function(t) {
return t instanceof e && this.key.isEqual(t.key) && this.version.isEqual(t.version) && this.documentType === t.documentType && this.documentState === t.documentState && this.data.isEqual(t.data)
}
}, {
key: "mutableCopy",
value: function() {
return new e(this.key,this.documentType,this.version,this.data.clone(),this.documentState)
}
}, {
key: "toString",
value: function() {
return "Document(".concat(this.key, ", ").concat(this.version, ", ").concat(JSON.stringify(this.data.value), ", {documentType: ").concat(this.documentType, "}), {documentState: ").concat(this.documentState, "})")
}
}], [{
key: "newInvalidDocument",
value: function(t) {
return new e(t,0,$.min(),De.empty(),0)
}
}, {
key: "newFoundDocument",
value: function(t, n, r) {
return new e(t,1,n,r,0)
}
}, {
key: "newNoDocument",
value: function(t, n) {
return new e(t,2,n,De.empty(),0)
}
}, {
key: "newUnknownDocument",
value: function(t, n) {
return new e(t,3,n,De.empty(),2)
}
}]),
e
}()
, Pe = Object(h.a)((function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null
, r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : []
, i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : []
, o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : null
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null
, l = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : null;
Object(p.a)(this, e),
this.path = t,
this.collectionGroup = n,
this.orderBy = r,
this.filters = i,
this.limit = o,
this.startAt = a,
this.endAt = l,
this.R = null
}
));
function Be(e) {
return new Pe(e,arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null,arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : [],arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : [],arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : null,arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : null,arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : null)
}
function Fe(e) {
var t = z(e);
if (null === t.R) {
var n = t.path.canonicalString();
null !== t.collectionGroup && (n += "|cg:" + t.collectionGroup),
n += "|f:",
n += t.filters.map((function(e) {
return function(e) {
return e.field.canonicalString() + e.op.toString() + _e(e.value)
}(e)
}
)).join(","),
n += "|ob:",
n += t.orderBy.map((function(e) {
return function(e) {
return e.field.canonicalString() + e.dir
}(e)
}
)).join(","),
me(t.limit) || (n += "|l:",
n += t.limit),
t.startAt && (n += "|lb:",
n += $e(t.startAt)),
t.endAt && (n += "|ub:",
n += $e(t.endAt)),
t.R = n
}
return t.R
}
function Ve(e, t) {
if (e.limit !== t.limit)
return !1;
if (e.orderBy.length !== t.orderBy.length)
return !1;
for (var n = 0; n < e.orderBy.length; n++)
if (!tt(e.orderBy[n], t.orderBy[n]))
return !1;
if (e.filters.length !== t.filters.length)
return !1;
for (var r = 0; r < e.filters.length; r++)
if (i = e.filters[r],
o = t.filters[r],
i.op !== o.op || !i.field.isEqual(o.field) || !je(i.value, o.value))
return !1;
var i, o;
return e.collectionGroup === t.collectionGroup && !!e.path.isEqual(t.path) && !!rt(e.startAt, t.startAt) && rt(e.endAt, t.endAt)
}
function We(e) {
return xe.isDocumentKey(e.path) && null === e.collectionGroup && 0 === e.filters.length
}
var qe = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this)).field = e,
o.op = r,
o.value = i,
o
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
var t = e.data.field(this.field);
return "!=" === this.op ? null !== t && this.v(we(t, this.value)) : null !== t && Oe(this.value) === Oe(t) && this.v(we(t, this.value))
}
}, {
key: "v",
value: function(e) {
switch (this.op) {
case "<":
return e < 0;
case "<=":
return e <= 0;
case "==":
return 0 === e;
case "!=":
return 0 !== e;
case ">":
return e > 0;
case ">=":
return e >= 0;
default:
return E()
}
}
}, {
key: "V",
value: function() {
return ["<", "<=", ">", ">=", "!=", "not-in"].indexOf(this.op) >= 0
}
}], [{
key: "create",
value: function(e, t, r) {
return e.isKeyField() ? "in" === t || "not-in" === t ? this.P(e, t, r) : new He(e,t,r) : "array-contains" === t ? new Ke(e,r) : "in" === t ? new Ye(e,r) : "not-in" === t ? new Qe(e,r) : "array-contains-any" === t ? new Je(e,r) : new n(e,t,r)
}
}, {
key: "P",
value: function(e, t, n) {
return "in" === t ? new Ue(e,n) : new Xe(e,n)
}
}]),
n
}(Object(h.a)((function e() {
Object(p.a)(this, e)
}
)))
, He = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this, e, r, i)).key = xe.fromName(i.referenceValue),
o
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
var t = xe.comparator(e.key, this.key);
return this.v(t)
}
}]),
n
}(qe)
, Ue = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e, "in", r)).keys = Ge("in", r),
i
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
return this.keys.some((function(t) {
return t.isEqual(e.key)
}
))
}
}]),
n
}(qe)
, Xe = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e, "not-in", r)).keys = Ge("not-in", r),
i
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
return !this.keys.some((function(t) {
return t.isEqual(e.key)
}
))
}
}]),
n
}(qe);
function Ge(e, t) {
var n;
return ((null === (n = t.arrayValue) || void 0 === n ? void 0 : n.values) || []).map((function(e) {
return xe.fromName(e.referenceValue)
}
))
}
var Ke = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
return Object(p.a)(this, n),
t.call(this, e, "array-contains", r)
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
var t = e.data.field(this.field);
return Te(t) && ke(t.arrayValue, this.value)
}
}]),
n
}(qe)
, Ye = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
return Object(p.a)(this, n),
t.call(this, e, "in", r)
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
var t = e.data.field(this.field);
return null !== t && ke(this.value.arrayValue, t)
}
}]),
n
}(qe)
, Qe = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
return Object(p.a)(this, n),
t.call(this, e, "not-in", r)
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
if (ke(this.value.arrayValue, {
nullValue: "NULL_VALUE"
}))
return !1;
var t = e.data.field(this.field);
return null !== t && !ke(this.value.arrayValue, t)
}
}]),
n
}(qe)
, Je = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
return Object(p.a)(this, n),
t.call(this, e, "array-contains-any", r)
}
return Object(h.a)(n, [{
key: "matches",
value: function(e) {
var t = this
, n = e.data.field(this.field);
return !(!Te(n) || !n.arrayValue.values) && n.arrayValue.values.some((function(e) {
return ke(t.value.arrayValue, e)
}
))
}
}]),
n
}(qe)
, Ze = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.position = t,
this.before = n
}
));
function $e(e) {
return "".concat(e.before ? "b" : "a", ":").concat(e.position.map((function(e) {
return _e(e)
}
)).join(","))
}
var et = Object(h.a)((function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "asc";
Object(p.a)(this, e),
this.field = t,
this.dir = n
}
));
function tt(e, t) {
return e.dir === t.dir && e.field.isEqual(t.field)
}
function nt(e, t, n) {
for (var r = 0, i = 0; i < e.position.length; i++) {
var o = t[i]
, a = e.position[i];
if (r = o.field.isKeyField() ? xe.comparator(xe.fromName(a.referenceValue), n.key) : we(a, n.data.field(o.field)),
"desc" === o.dir && (r *= -1),
0 !== r)
break
}
return e.before ? r <= 0 : r < 0
}
function rt(e, t) {
if (null === e)
return null === t;
if (null === t)
return !1;
if (e.before !== t.before || e.position.length !== t.position.length)
return !1;
for (var n = 0; n < e.position.length; n++)
if (!je(e.position[n], t.position[n]))
return !1;
return !0
}
var it = Object(h.a)((function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null
, r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : []
, i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : []
, o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : null
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : "F"
, l = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : null
, s = arguments.length > 7 && void 0 !== arguments[7] ? arguments[7] : null;
Object(p.a)(this, e),
this.path = t,
this.collectionGroup = n,
this.explicitOrderBy = r,
this.filters = i,
this.limit = o,
this.limitType = a,
this.startAt = l,
this.endAt = s,
this.S = null,
this.D = null,
this.startAt,
this.endAt
}
));
function ot(e, t, n, r, i, o, a, l) {
return new it(e,t,n,r,i,o,a,l)
}
function at(e) {
return new it(e)
}
function lt(e) {
return !me(e.limit) && "F" === e.limitType
}
function st(e) {
return !me(e.limit) && "L" === e.limitType
}
function ct(e) {
return e.explicitOrderBy.length > 0 ? e.explicitOrderBy[0].field : null
}
function ut(e) {
var t, n = Object(l.a)(e.filters);
try {
for (n.s(); !(t = n.n()).done; ) {
var r = t.value;
if (r.V())
return r.field
}
} catch (e) {
n.e(e)
} finally {
n.f()
}
return null
}
function dt(e) {
return null !== e.collectionGroup
}
function pt(e) {
var t = z(e);
if (null === t.S) {
t.S = [];
var n = ut(t)
, r = ct(t);
if (null !== n && null === r)
n.isKeyField() || t.S.push(new et(n)),
t.S.push(new et(ae.keyField(),"asc"));
else {
var i, o = !1, a = Object(l.a)(t.explicitOrderBy);
try {
for (a.s(); !(i = a.n()).done; ) {
var s = i.value;
t.S.push(s),
s.field.isKeyField() && (o = !0)
}
} catch (e) {
a.e(e)
} finally {
a.f()
}
if (!o) {
var c = t.explicitOrderBy.length > 0 ? t.explicitOrderBy[t.explicitOrderBy.length - 1].dir : "asc";
t.S.push(new et(ae.keyField(),c))
}
}
}
return t.S
}
function ht(e) {
var t = z(e);
if (!t.D)
if ("F" === t.limitType)
t.D = Be(t.path, t.collectionGroup, pt(t), t.filters, t.limit, t.startAt, t.endAt);
else {
var n, r = [], i = Object(l.a)(pt(t));
try {
for (i.s(); !(n = i.n()).done; ) {
var o = n.value
, a = "desc" === o.dir ? "asc" : "desc";
r.push(new et(o.field,a))
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
var s = t.endAt ? new Ze(t.endAt.position,!t.endAt.before) : null
, c = t.startAt ? new Ze(t.startAt.position,!t.startAt.before) : null;
t.D = Be(t.path, t.collectionGroup, r, t.filters, t.limit, s, c)
}
return t.D
}
function ft(e, t, n) {
return new it(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)
}
function bt(e, t) {
return Ve(ht(e), ht(t)) && e.limitType === t.limitType
}
function gt(e) {
return "".concat(Fe(ht(e)), "|lt:").concat(e.limitType)
}
function mt(e) {
return "Query(target=".concat(function(e) {
var t = e.path.canonicalString();
return null !== e.collectionGroup && (t += " collectionGroup=" + e.collectionGroup),
e.filters.length > 0 && (t += ", filters: [".concat(e.filters.map((function(e) {
return "".concat((t = e).field.canonicalString(), " ").concat(t.op, " ").concat(_e(t.value));
var t
}
)).join(", "), "]")),
me(e.limit) || (t += ", limit: " + e.limit),
e.orderBy.length > 0 && (t += ", orderBy: [".concat(e.orderBy.map((function(e) {
return function(e) {
return "".concat(e.field.canonicalString(), " (").concat(e.dir, ")")
}(e)
}
)).join(", "), "]")),
e.startAt && (t += ", startAt: " + $e(e.startAt)),
e.endAt && (t += ", endAt: " + $e(e.endAt)),
"Target(".concat(t, ")")
}(ht(e)), "; limitType=").concat(e.limitType, ")")
}
function vt(e, t) {
return t.isFoundDocument() && function(e, t) {
var n = t.key.path;
return null !== e.collectionGroup ? t.key.hasCollectionId(e.collectionGroup) && e.path.isPrefixOf(n) : xe.isDocumentKey(e.path) ? e.path.isEqual(n) : e.path.isImmediateParentOf(n)
}(e, t) && function(e, t) {
var n, r = Object(l.a)(e.explicitOrderBy);
try {
for (r.s(); !(n = r.n()).done; ) {
var i = n.value;
if (!i.field.isKeyField() && null === t.data.field(i.field))
return !1
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
return !0
}(e, t) && function(e, t) {
var n, r = Object(l.a)(e.filters);
try {
for (r.s(); !(n = r.n()).done; )
if (!n.value.matches(t))
return !1
} catch (e) {
r.e(e)
} finally {
r.f()
}
return !0
}(e, t) && function(e, t) {
return !(e.startAt && !nt(e.startAt, pt(e), t) || e.endAt && nt(e.endAt, pt(e), t))
}(e, t)
}
function yt(e) {
return function(t, n) {
var r, i = !1, o = Object(l.a)(pt(e));
try {
for (o.s(); !(r = o.n()).done; ) {
var a = r.value
, s = xt(a, t, n);
if (0 !== s)
return s;
i = i || a.field.isKeyField()
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
return 0
}
}
function xt(e, t, n) {
var r = e.field.isKeyField() ? xe.comparator(t.key, n.key) : function(e, t, n) {
var r = t.data.field(e)
, i = n.data.field(e);
return null !== r && null !== i ? we(r, i) : E()
}(e.field, t, n);
switch (e.dir) {
case "asc":
return r;
case "desc":
return -1 * r;
default:
return E()
}
}
function Ot(e, t) {
if (e.C) {
if (isNaN(t))
return {
doubleValue: "NaN"
};
if (t === 1 / 0)
return {
doubleValue: "Infinity"
};
if (t === -1 / 0)
return {
doubleValue: "-Infinity"
}
}
return {
doubleValue: ve(t) ? "-0" : t
}
}
function jt(e) {
return {
integerValue: "" + e
}
}
function kt(e, t) {
return ye(t) ? jt(t) : Ot(e, t)
}
var wt = Object(h.a)((function e() {
Object(p.a)(this, e),
this._ = void 0
}
));
function Ct(e, t, n) {
return e instanceof St ? function(e, t) {
var n = {
fields: {
__type__: {
stringValue: "server_timestamp"
},
__local_write_time__: {
timestampValue: {
seconds: e.seconds,
nanos: e.nanoseconds
}
}
}
};
return t && (n.fields.__previous_value__ = t),
{
mapValue: n
}
}(n, t) : e instanceof At ? Tt(e, t) : e instanceof Et ? It(e, t) : function(e, t) {
var n = Mt(e, t)
, r = zt(n) + zt(e.N);
return Ae(n) && Ae(e.N) ? jt(r) : Ot(e.k, r)
}(e, t)
}
function _t(e, t, n) {
return e instanceof At ? Tt(e, t) : e instanceof Et ? It(e, t) : n
}
function Mt(e, t) {
return e instanceof Nt ? Ae(n = t) || function(e) {
return !!e && "doubleValue"in e
}(n) ? t : {
integerValue: 0
} : null;
var n
}
var St = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n)
}(wt)
, At = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this)).elements = e,
r
}
return Object(h.a)(n)
}(wt);
function Tt(e, t) {
var n, r = Dt(t), i = Object(l.a)(e.elements);
try {
var o = function() {
var e = n.value;
r.some((function(t) {
return je(t, e)
}
)) || r.push(e)
};
for (i.s(); !(n = i.n()).done; )
o()
} catch (e) {
i.e(e)
} finally {
i.f()
}
return {
arrayValue: {
values: r
}
}
}
var Et = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this)).elements = e,
r
}
return Object(h.a)(n)
}(wt);
function It(e, t) {
var n, r = Dt(t), i = Object(l.a)(e.elements);
try {
var o = function() {
var e = n.value;
r = r.filter((function(t) {
return !je(t, e)
}
))
};
for (i.s(); !(n = i.n()).done; )
o()
} catch (e) {
i.e(e)
} finally {
i.f()
}
return {
arrayValue: {
values: r
}
}
}
var Nt = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this)).k = e,
i.N = r,
i
}
return Object(h.a)(n)
}(wt);
function zt(e) {
return pe(e.integerValue || e.doubleValue)
}
function Dt(e) {
return Te(e) && e.arrayValue.values ? e.arrayValue.values.slice() : []
}
var Lt = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.field = t,
this.transform = n
}
))
, Rt = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.version = t,
this.transformResults = n
}
))
, Pt = function() {
function e(t, n) {
Object(p.a)(this, e),
this.updateTime = t,
this.exists = n
}
return Object(h.a)(e, [{
key: "isNone",
get: function() {
return void 0 === this.updateTime && void 0 === this.exists
}
}, {
key: "isEqual",
value: function(e) {
return this.exists === e.exists && (this.updateTime ? !!e.updateTime && this.updateTime.isEqual(e.updateTime) : !e.updateTime)
}
}], [{
key: "none",
value: function() {
return new e
}
}, {
key: "exists",
value: function(t) {
return new e(void 0,t)
}
}, {
key: "updateTime",
value: function(t) {
return new e(t)
}
}]),
e
}();
function Bt(e, t) {
return void 0 !== e.updateTime ? t.isFoundDocument() && t.version.isEqual(e.updateTime) : void 0 === e.exists || e.exists === t.isFoundDocument()
}
var Ft = Object(h.a)((function e() {
Object(p.a)(this, e)
}
));
function Vt(e, t, n) {
e instanceof Xt ? function(e, t, n) {
var r = e.value.clone()
, i = Yt(e.fieldTransforms, t, n.transformResults);
r.setAll(i),
t.convertToFoundDocument(n.version, r).setHasCommittedMutations()
}(e, t, n) : e instanceof Gt ? function(e, t, n) {
if (Bt(e.precondition, t)) {
var r = Yt(e.fieldTransforms, t, n.transformResults)
, i = t.data;
i.setAll(Kt(e)),
i.setAll(r),
t.convertToFoundDocument(n.version, i).setHasCommittedMutations()
} else
t.convertToUnknownDocument(n.version)
}(e, t, n) : function(e, t, n) {
t.convertToNoDocument(n.version).setHasCommittedMutations()
}(0, t, n)
}
function Wt(e, t, n) {
e instanceof Xt ? function(e, t, n) {
if (Bt(e.precondition, t)) {
var r = e.value.clone()
, i = Qt(e.fieldTransforms, n, t);
r.setAll(i),
t.convertToFoundDocument(Ut(t), r).setHasLocalMutations()
}
}(e, t, n) : e instanceof Gt ? function(e, t, n) {
if (Bt(e.precondition, t)) {
var r = Qt(e.fieldTransforms, n, t)
, i = t.data;
i.setAll(Kt(e)),
i.setAll(r),
t.convertToFoundDocument(Ut(t), i).setHasLocalMutations()
}
}(e, t, n) : function(e, t) {
Bt(e.precondition, t) && t.convertToNoDocument($.min())
}(e, t)
}
function qt(e, t) {
var n, r = null, i = Object(l.a)(e.fieldTransforms);
try {
for (i.s(); !(n = i.n()).done; ) {
var o = n.value
, a = t.data.field(o.field)
, s = Mt(o.transform, a || null);
null != s && (null == r && (r = De.empty()),
r.set(o.field, s))
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return r || null
}
function Ht(e, t) {
return e.type === t.type && !!e.key.isEqual(t.key) && !!e.precondition.isEqual(t.precondition) && !!function(e, t) {
return void 0 === e && void 0 === t || !(!e || !t) && Q(e, t, (function(e, t) {
return function(e, t) {
return e.field.isEqual(t.field) && function(e, t) {
return e instanceof At && t instanceof At || e instanceof Et && t instanceof Et ? Q(e.elements, t.elements, je) : e instanceof Nt && t instanceof Nt ? je(e.N, t.N) : e instanceof St && t instanceof St
}(e.transform, t.transform)
}(e, t)
}
))
}(e.fieldTransforms, t.fieldTransforms) && (0 === e.type ? e.value.isEqual(t.value) : 1 !== e.type || e.data.isEqual(t.data) && e.fieldMask.isEqual(t.fieldMask))
}
function Ut(e) {
return e.isFoundDocument() ? e.version : $.min()
}
var Xt = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o, a = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : [];
return Object(p.a)(this, n),
(o = t.call(this)).key = e,
o.value = r,
o.precondition = i,
o.fieldTransforms = a,
o.type = 0,
o
}
return Object(h.a)(n)
}(Ft)
, Gt = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i, o) {
var a, l = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : [];
return Object(p.a)(this, n),
(a = t.call(this)).key = e,
a.data = r,
a.fieldMask = i,
a.precondition = o,
a.fieldTransforms = l,
a.type = 1,
a
}
return Object(h.a)(n)
}(Ft);
function Kt(e) {
var t = new Map;
return e.fieldMask.fields.forEach((function(n) {
if (!n.isEmpty()) {
var r = e.data.field(n);
t.set(n, r)
}
}
)),
t
}
function Yt(e, t, n) {
var r = new Map;
I(e.length === n.length);
for (var i = 0; i < n.length; i++) {
var o = e[i]
, a = o.transform
, l = t.data.field(o.field);
r.set(o.field, _t(a, l, n[i]))
}
return r
}
function Qt(e, t, n) {
var r, i = new Map, o = Object(l.a)(e);
try {
for (o.s(); !(r = o.n()).done; ) {
var a = r.value
, s = a.transform
, c = n.data.field(a.field);
i.set(a.field, Ct(s, c, t))
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
return i
}
var Jt, Zt, $t = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this)).key = e,
i.precondition = r,
i.type = 2,
i.fieldTransforms = [],
i
}
return Object(h.a)(n)
}(Ft), en = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this)).key = e,
i.precondition = r,
i.type = 3,
i.fieldTransforms = [],
i
}
return Object(h.a)(n)
}(Ft), tn = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.count = t
}
));
function nn(e) {
switch (e) {
default:
return E();
case D.CANCELLED:
case D.UNKNOWN:
case D.DEADLINE_EXCEEDED:
case D.RESOURCE_EXHAUSTED:
case D.INTERNAL:
case D.UNAVAILABLE:
case D.UNAUTHENTICATED:
return !1;
case D.INVALID_ARGUMENT:
case D.NOT_FOUND:
case D.ALREADY_EXISTS:
case D.PERMISSION_DENIED:
case D.FAILED_PRECONDITION:
case D.ABORTED:
case D.OUT_OF_RANGE:
case D.UNIMPLEMENTED:
case D.DATA_LOSS:
return !0
}
}
function rn(e) {
if (void 0 === e)
return S("GRPC error has no .code"),
D.UNKNOWN;
switch (e) {
case Jt.OK:
return D.OK;
case Jt.CANCELLED:
return D.CANCELLED;
case Jt.UNKNOWN:
return D.UNKNOWN;
case Jt.DEADLINE_EXCEEDED:
return D.DEADLINE_EXCEEDED;
case Jt.RESOURCE_EXHAUSTED:
return D.RESOURCE_EXHAUSTED;
case Jt.INTERNAL:
return D.INTERNAL;
case Jt.UNAVAILABLE:
return D.UNAVAILABLE;
case Jt.UNAUTHENTICATED:
return D.UNAUTHENTICATED;
case Jt.INVALID_ARGUMENT:
return D.INVALID_ARGUMENT;
case Jt.NOT_FOUND:
return D.NOT_FOUND;
case Jt.ALREADY_EXISTS:
return D.ALREADY_EXISTS;
case Jt.PERMISSION_DENIED:
return D.PERMISSION_DENIED;
case Jt.FAILED_PRECONDITION:
return D.FAILED_PRECONDITION;
case Jt.ABORTED:
return D.ABORTED;
case Jt.OUT_OF_RANGE:
return D.OUT_OF_RANGE;
case Jt.UNIMPLEMENTED:
return D.UNIMPLEMENTED;
case Jt.DATA_LOSS:
return D.DATA_LOSS;
default:
return E()
}
}
(Zt = Jt || (Jt = {}))[Zt.OK = 0] = "OK",
Zt[Zt.CANCELLED = 1] = "CANCELLED",
Zt[Zt.UNKNOWN = 2] = "UNKNOWN",
Zt[Zt.INVALID_ARGUMENT = 3] = "INVALID_ARGUMENT",
Zt[Zt.DEADLINE_EXCEEDED = 4] = "DEADLINE_EXCEEDED",
Zt[Zt.NOT_FOUND = 5] = "NOT_FOUND",
Zt[Zt.ALREADY_EXISTS = 6] = "ALREADY_EXISTS",
Zt[Zt.PERMISSION_DENIED = 7] = "PERMISSION_DENIED",
Zt[Zt.UNAUTHENTICATED = 16] = "UNAUTHENTICATED",
Zt[Zt.RESOURCE_EXHAUSTED = 8] = "RESOURCE_EXHAUSTED",
Zt[Zt.FAILED_PRECONDITION = 9] = "FAILED_PRECONDITION",
Zt[Zt.ABORTED = 10] = "ABORTED",
Zt[Zt.OUT_OF_RANGE = 11] = "OUT_OF_RANGE",
Zt[Zt.UNIMPLEMENTED = 12] = "UNIMPLEMENTED",
Zt[Zt.INTERNAL = 13] = "INTERNAL",
Zt[Zt.UNAVAILABLE = 14] = "UNAVAILABLE",
Zt[Zt.DATA_LOSS = 15] = "DATA_LOSS";
var on = function() {
function e(t, n) {
Object(p.a)(this, e),
this.comparator = t,
this.root = n || ln.EMPTY
}
return Object(h.a)(e, [{
key: "insert",
value: function(t, n) {
return new e(this.comparator,this.root.insert(t, n, this.comparator).copy(null, null, ln.BLACK, null, null))
}
}, {
key: "remove",
value: function(t) {
return new e(this.comparator,this.root.remove(t, this.comparator).copy(null, null, ln.BLACK, null, null))
}
}, {
key: "get",
value: function(e) {
for (var t = this.root; !t.isEmpty(); ) {
var n = this.comparator(e, t.key);
if (0 === n)
return t.value;
n < 0 ? t = t.left : n > 0 && (t = t.right)
}
return null
}
}, {
key: "indexOf",
value: function(e) {
for (var t = 0, n = this.root; !n.isEmpty(); ) {
var r = this.comparator(e, n.key);
if (0 === r)
return t + n.left.size;
r < 0 ? n = n.left : (t += n.left.size + 1,
n = n.right)
}
return -1
}
}, {
key: "isEmpty",
value: function() {
return this.root.isEmpty()
}
}, {
key: "size",
get: function() {
return this.root.size
}
}, {
key: "minKey",
value: function() {
return this.root.minKey()
}
}, {
key: "maxKey",
value: function() {
return this.root.maxKey()
}
}, {
key: "inorderTraversal",
value: function(e) {
return this.root.inorderTraversal(e)
}
}, {
key: "forEach",
value: function(e) {
this.inorderTraversal((function(t, n) {
return e(t, n),
!1
}
))
}
}, {
key: "toString",
value: function() {
var e = [];
return this.inorderTraversal((function(t, n) {
return e.push("".concat(t, ":").concat(n)),
!1
}
)),
"{".concat(e.join(", "), "}")
}
}, {
key: "reverseTraversal",
value: function(e) {
return this.root.reverseTraversal(e)
}
}, {
key: "getIterator",
value: function() {
return new an(this.root,null,this.comparator,!1)
}
}, {
key: "getIteratorFrom",
value: function(e) {
return new an(this.root,e,this.comparator,!1)
}
}, {
key: "getReverseIterator",
value: function() {
return new an(this.root,null,this.comparator,!0)
}
}, {
key: "getReverseIteratorFrom",
value: function(e) {
return new an(this.root,e,this.comparator,!0)
}
}]),
e
}()
, an = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.isReverse = i,
this.nodeStack = [];
for (var o = 1; !t.isEmpty(); )
if (o = n ? r(t.key, n) : 1,
i && (o *= -1),
o < 0)
t = this.isReverse ? t.left : t.right;
else {
if (0 === o) {
this.nodeStack.push(t);
break
}
this.nodeStack.push(t),
t = this.isReverse ? t.right : t.left
}
}
return Object(h.a)(e, [{
key: "getNext",
value: function() {
var e = this.nodeStack.pop()
, t = {
key: e.key,
value: e.value
};
if (this.isReverse)
for (e = e.left; !e.isEmpty(); )
this.nodeStack.push(e),
e = e.right;
else
for (e = e.right; !e.isEmpty(); )
this.nodeStack.push(e),
e = e.left;
return t
}
}, {
key: "hasNext",
value: function() {
return this.nodeStack.length > 0
}
}, {
key: "peek",
value: function() {
if (0 === this.nodeStack.length)
return null;
var e = this.nodeStack[this.nodeStack.length - 1];
return {
key: e.key,
value: e.value
}
}
}]),
e
}()
, ln = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.key = t,
this.value = n,
this.color = null != r ? r : e.RED,
this.left = null != i ? i : e.EMPTY,
this.right = null != o ? o : e.EMPTY,
this.size = this.left.size + 1 + this.right.size
}
return Object(h.a)(e, [{
key: "copy",
value: function(t, n, r, i, o) {
return new e(null != t ? t : this.key,null != n ? n : this.value,null != r ? r : this.color,null != i ? i : this.left,null != o ? o : this.right)
}
}, {
key: "isEmpty",
value: function() {
return !1
}
}, {
key: "inorderTraversal",
value: function(e) {
return this.left.inorderTraversal(e) || e(this.key, this.value) || this.right.inorderTraversal(e)
}
}, {
key: "reverseTraversal",
value: function(e) {
return this.right.reverseTraversal(e) || e(this.key, this.value) || this.left.reverseTraversal(e)
}
}, {
key: "min",
value: function() {
return this.left.isEmpty() ? this : this.left.min()
}
}, {
key: "minKey",
value: function() {
return this.min().key
}
}, {
key: "maxKey",
value: function() {
return this.right.isEmpty() ? this.key : this.right.maxKey()
}
}, {
key: "insert",
value: function(e, t, n) {
var r = this
, i = n(e, r.key);
return (r = i < 0 ? r.copy(null, null, null, r.left.insert(e, t, n), null) : 0 === i ? r.copy(null, t, null, null, null) : r.copy(null, null, null, null, r.right.insert(e, t, n))).fixUp()
}
}, {
key: "removeMin",
value: function() {
if (this.left.isEmpty())
return e.EMPTY;
var t = this;
return t.left.isRed() || t.left.left.isRed() || (t = t.moveRedLeft()),
(t = t.copy(null, null, null, t.left.removeMin(), null)).fixUp()
}
}, {
key: "remove",
value: function(t, n) {
var r, i = this;
if (n(t, i.key) < 0)
i.left.isEmpty() || i.left.isRed() || i.left.left.isRed() || (i = i.moveRedLeft()),
i = i.copy(null, null, null, i.left.remove(t, n), null);
else {
if (i.left.isRed() && (i = i.rotateRight()),
i.right.isEmpty() || i.right.isRed() || i.right.left.isRed() || (i = i.moveRedRight()),
0 === n(t, i.key)) {
if (i.right.isEmpty())
return e.EMPTY;
r = i.right.min(),
i = i.copy(r.key, r.value, null, null, i.right.removeMin())
}
i = i.copy(null, null, null, null, i.right.remove(t, n))
}
return i.fixUp()
}
}, {
key: "isRed",
value: function() {
return this.color
}
}, {
key: "fixUp",
value: function() {
var e = this;
return e.right.isRed() && !e.left.isRed() && (e = e.rotateLeft()),
e.left.isRed() && e.left.left.isRed() && (e = e.rotateRight()),
e.left.isRed() && e.right.isRed() && (e = e.colorFlip()),
e
}
}, {
key: "moveRedLeft",
value: function() {
var e = this.colorFlip();
return e.right.left.isRed() && (e = (e = (e = e.copy(null, null, null, null, e.right.rotateRight())).rotateLeft()).colorFlip()),
e
}
}, {
key: "moveRedRight",
value: function() {
var e = this.colorFlip();
return e.left.left.isRed() && (e = (e = e.rotateRight()).colorFlip()),
e
}
}, {
key: "rotateLeft",
value: function() {
var t = this.copy(null, null, e.RED, null, this.right.left);
return this.right.copy(null, null, this.color, t, null)
}
}, {
key: "rotateRight",
value: function() {
var t = this.copy(null, null, e.RED, this.left.right, null);
return this.left.copy(null, null, this.color, null, t)
}
}, {
key: "colorFlip",
value: function() {
var e = this.left.copy(null, null, !this.left.color, null, null)
, t = this.right.copy(null, null, !this.right.color, null, null);
return this.copy(null, null, !this.color, e, t)
}
}, {
key: "checkMaxDepth",
value: function() {
var e = this.check();
return Math.pow(2, e) <= this.size + 1
}
}, {
key: "check",
value: function() {
if (this.isRed() && this.left.isRed())
throw E();
if (this.right.isRed())
throw E();
var e = this.left.check();
if (e !== this.right.check())
throw E();
return e + (this.isRed() ? 0 : 1)
}
}]),
e
}();
ln.EMPTY = null,
ln.RED = !0,
ln.BLACK = !1,
ln.EMPTY = new (function() {
function e() {
Object(p.a)(this, e),
this.size = 0
}
return Object(h.a)(e, [{
key: "key",
get: function() {
throw E()
}
}, {
key: "value",
get: function() {
throw E()
}
}, {
key: "color",
get: function() {
throw E()
}
}, {
key: "left",
get: function() {
throw E()
}
}, {
key: "right",
get: function() {
throw E()
}
}, {
key: "copy",
value: function(e, t, n, r, i) {
return this
}
}, {
key: "insert",
value: function(e, t, n) {
return new ln(e,t)
}
}, {
key: "remove",
value: function(e, t) {
return this
}
}, {
key: "isEmpty",
value: function() {
return !0
}
}, {
key: "inorderTraversal",
value: function(e) {
return !1
}
}, {
key: "reverseTraversal",
value: function(e) {
return !1
}
}, {
key: "minKey",
value: function() {
return null
}
}, {
key: "maxKey",
value: function() {
return null
}
}, {
key: "isRed",
value: function() {
return !1
}
}, {
key: "checkMaxDepth",
value: function() {
return !0
}
}, {
key: "check",
value: function() {
return 0
}
}]),
e
}());
var sn = function() {
function e(t) {
Object(p.a)(this, e),
this.comparator = t,
this.data = new on(this.comparator)
}
return Object(h.a)(e, [{
key: "has",
value: function(e) {
return null !== this.data.get(e)
}
}, {
key: "first",
value: function() {
return this.data.minKey()
}
}, {
key: "last",
value: function() {
return this.data.maxKey()
}
}, {
key: "size",
get: function() {
return this.data.size
}
}, {
key: "indexOf",
value: function(e) {
return this.data.indexOf(e)
}
}, {
key: "forEach",
value: function(e) {
this.data.inorderTraversal((function(t, n) {
return e(t),
!1
}
))
}
}, {
key: "forEachInRange",
value: function(e, t) {
for (var n = this.data.getIteratorFrom(e[0]); n.hasNext(); ) {
var r = n.getNext();
if (this.comparator(r.key, e[1]) >= 0)
return;
t(r.key)
}
}
}, {
key: "forEachWhile",
value: function(e, t) {
var n;
for (n = void 0 !== t ? this.data.getIteratorFrom(t) : this.data.getIterator(); n.hasNext(); )
if (!e(n.getNext().key))
return
}
}, {
key: "firstAfterOrEqual",
value: function(e) {
var t = this.data.getIteratorFrom(e);
return t.hasNext() ? t.getNext().key : null
}
}, {
key: "getIterator",
value: function() {
return new cn(this.data.getIterator())
}
}, {
key: "getIteratorFrom",
value: function(e) {
return new cn(this.data.getIteratorFrom(e))
}
}, {
key: "add",
value: function(e) {
return this.copy(this.data.remove(e).insert(e, !0))
}
}, {
key: "delete",
value: function(e) {
return this.has(e) ? this.copy(this.data.remove(e)) : this
}
}, {
key: "isEmpty",
value: function() {
return this.data.isEmpty()
}
}, {
key: "unionWith",
value: function(e) {
var t = this;
return t.size < e.size && (t = e,
e = this),
e.forEach((function(e) {
t = t.add(e)
}
)),
t
}
}, {
key: "isEqual",
value: function(t) {
if (!(t instanceof e))
return !1;
if (this.size !== t.size)
return !1;
for (var n = this.data.getIterator(), r = t.data.getIterator(); n.hasNext(); ) {
var i = n.getNext().key
, o = r.getNext().key;
if (0 !== this.comparator(i, o))
return !1
}
return !0
}
}, {
key: "toArray",
value: function() {
var e = [];
return this.forEach((function(t) {
e.push(t)
}
)),
e
}
}, {
key: "toString",
value: function() {
var e = [];
return this.forEach((function(t) {
return e.push(t)
}
)),
"SortedSet(" + e.toString() + ")"
}
}, {
key: "copy",
value: function(t) {
var n = new e(this.comparator);
return n.data = t,
n
}
}]),
e
}()
, cn = function() {
function e(t) {
Object(p.a)(this, e),
this.iter = t
}
return Object(h.a)(e, [{
key: "getNext",
value: function() {
return this.iter.getNext().key
}
}, {
key: "hasNext",
value: function() {
return this.iter.hasNext()
}
}]),
e
}()
, un = new on(xe.comparator);
function dn() {
return un
}
var pn = new on(xe.comparator);
function hn() {
return pn
}
var fn = new on(xe.comparator);
function bn() {
return fn
}
var gn = new sn(xe.comparator);
function mn() {
for (var e = gn, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
for (var i = 0, o = n; i < o.length; i++) {
var a = o[i];
e = e.add(a)
}
return e
}
var vn = new sn(Y);
function yn() {
return vn
}
var xn = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.snapshotVersion = t,
this.targetChanges = n,
this.targetMismatches = r,
this.documentUpdates = i,
this.resolvedLimboDocuments = o
}
return Object(h.a)(e, null, [{
key: "createSynthesizedRemoteEventForCurrentChange",
value: function(t, n) {
var r = new Map;
return r.set(t, On.createSynthesizedTargetChangeForCurrentChange(t, n)),
new e($.min(),r,yn(),dn(),mn())
}
}]),
e
}()
, On = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.resumeToken = t,
this.current = n,
this.addedDocuments = r,
this.modifiedDocuments = i,
this.removedDocuments = o
}
return Object(h.a)(e, null, [{
key: "createSynthesizedTargetChangeForCurrentChange",
value: function(t, n) {
return new e(ce.EMPTY_BYTE_STRING,n,mn(),mn(),mn())
}
}]),
e
}()
, jn = Object(h.a)((function e(t, n, r, i) {
Object(p.a)(this, e),
this.$ = t,
this.removedTargetIds = n,
this.key = r,
this.O = i
}
))
, kn = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.targetId = t,
this.F = n
}
))
, wn = Object(h.a)((function e(t, n) {
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ce.EMPTY_BYTE_STRING
, i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null;
Object(p.a)(this, e),
this.state = t,
this.targetIds = n,
this.resumeToken = r,
this.cause = i
}
))
, Cn = function() {
function e() {
Object(p.a)(this, e),
this.M = 0,
this.L = Sn(),
this.B = ce.EMPTY_BYTE_STRING,
this.U = !1,
this.q = !0
}
return Object(h.a)(e, [{
key: "current",
get: function() {
return this.U
}
}, {
key: "resumeToken",
get: function() {
return this.B
}
}, {
key: "K",
get: function() {
return 0 !== this.M
}
}, {
key: "j",
get: function() {
return this.q
}
}, {
key: "W",
value: function(e) {
e.approximateByteSize() > 0 && (this.q = !0,
this.B = e)
}
}, {
key: "G",
value: function() {
var e = mn()
, t = mn()
, n = mn();
return this.L.forEach((function(r, i) {
switch (i) {
case 0:
e = e.add(r);
break;
case 2:
t = t.add(r);
break;
case 1:
n = n.add(r);
break;
default:
E()
}
}
)),
new On(this.B,this.U,e,t,n)
}
}, {
key: "H",
value: function() {
this.q = !1,
this.L = Sn()
}
}, {
key: "J",
value: function(e, t) {
this.q = !0,
this.L = this.L.insert(e, t)
}
}, {
key: "Y",
value: function(e) {
this.q = !0,
this.L = this.L.remove(e)
}
}, {
key: "X",
value: function() {
this.M += 1
}
}, {
key: "Z",
value: function() {
this.M -= 1
}
}, {
key: "tt",
value: function() {
this.q = !0,
this.U = !0
}
}]),
e
}()
, _n = function() {
function e(t) {
Object(p.a)(this, e),
this.et = t,
this.nt = new Map,
this.st = dn(),
this.it = Mn(),
this.rt = new sn(Y)
}
return Object(h.a)(e, [{
key: "ot",
value: function(e) {
var t, n = Object(l.a)(e.$);
try {
for (n.s(); !(t = n.n()).done; ) {
var r = t.value;
e.O && e.O.isFoundDocument() ? this.at(r, e.O) : this.ct(r, e.key, e.O)
}
} catch (e) {
n.e(e)
} finally {
n.f()
}
var i, o = Object(l.a)(e.removedTargetIds);
try {
for (o.s(); !(i = o.n()).done; ) {
var a = i.value;
this.ct(a, e.key, e.O)
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
}
}, {
key: "ut",
value: function(e) {
var t = this;
this.forEachTarget(e, (function(n) {
var r = t.ht(n);
switch (e.state) {
case 0:
t.lt(n) && r.W(e.resumeToken);
break;
case 1:
r.Z(),
r.K || r.H(),
r.W(e.resumeToken);
break;
case 2:
r.Z(),
r.K || t.removeTarget(n);
break;
case 3:
t.lt(n) && (r.tt(),
r.W(e.resumeToken));
break;
case 4:
t.lt(n) && (t.ft(n),
r.W(e.resumeToken));
break;
default:
E()
}
}
))
}
}, {
key: "forEachTarget",
value: function(e, t) {
var n = this;
e.targetIds.length > 0 ? e.targetIds.forEach(t) : this.nt.forEach((function(e, r) {
n.lt(r) && t(r)
}
))
}
}, {
key: "dt",
value: function(e) {
var t = e.targetId
, n = e.F.count
, r = this.wt(t);
if (r) {
var i = r.target;
if (We(i))
if (0 === n) {
var o = new xe(i.path);
this.ct(t, o, Re.newNoDocument(o, $.min()))
} else
I(1 === n);
else
this._t(t) !== n && (this.ft(t),
this.rt = this.rt.add(t))
}
}
}, {
key: "gt",
value: function(e) {
var t = this
, n = new Map;
this.nt.forEach((function(r, i) {
var o = t.wt(i);
if (o) {
if (r.current && We(o.target)) {
var a = new xe(o.target.path);
null !== t.st.get(a) || t.yt(i, a) || t.ct(i, a, Re.newNoDocument(a, e))
}
r.j && (n.set(i, r.G()),
r.H())
}
}
));
var r = mn();
this.it.forEach((function(e, n) {
var i = !0;
n.forEachWhile((function(e) {
var n = t.wt(e);
return !n || 2 === n.purpose || (i = !1,
!1)
}
)),
i && (r = r.add(e))
}
));
var i = new xn(e,n,this.rt,this.st,r);
return this.st = dn(),
this.it = Mn(),
this.rt = new sn(Y),
i
}
}, {
key: "at",
value: function(e, t) {
if (this.lt(e)) {
var n = this.yt(e, t.key) ? 2 : 0;
this.ht(e).J(t.key, n),
this.st = this.st.insert(t.key, t),
this.it = this.it.insert(t.key, this.Tt(t.key).add(e))
}
}
}, {
key: "ct",
value: function(e, t, n) {
if (this.lt(e)) {
var r = this.ht(e);
this.yt(e, t) ? r.J(t, 1) : r.Y(t),
this.it = this.it.insert(t, this.Tt(t).delete(e)),
n && (this.st = this.st.insert(t, n))
}
}
}, {
key: "removeTarget",
value: function(e) {
this.nt.delete(e)
}
}, {
key: "_t",
value: function(e) {
var t = this.ht(e).G();
return this.et.getRemoteKeysForTarget(e).size + t.addedDocuments.size - t.removedDocuments.size
}
}, {
key: "X",
value: function(e) {
this.ht(e).X()
}
}, {
key: "ht",
value: function(e) {
var t = this.nt.get(e);
return t || (t = new Cn,
this.nt.set(e, t)),
t
}
}, {
key: "Tt",
value: function(e) {
var t = this.it.get(e);
return t || (t = new sn(Y),
this.it = this.it.insert(e, t)),
t
}
}, {
key: "lt",
value: function(e) {
var t = null !== this.wt(e);
return t || M("WatchChangeAggregator", "Detected inactive target", e),
t
}
}, {
key: "wt",
value: function(e) {
var t = this.nt.get(e);
return t && t.K ? null : this.et.Et(e)
}
}, {
key: "ft",
value: function(e) {
var t = this;
this.nt.set(e, new Cn),
this.et.getRemoteKeysForTarget(e).forEach((function(n) {
t.ct(e, n, null)
}
))
}
}, {
key: "yt",
value: function(e, t) {
return this.et.getRemoteKeysForTarget(e).has(t)
}
}]),
e
}();
function Mn() {
return new on(xe.comparator)
}
function Sn() {
return new on(xe.comparator)
}
var An = {
asc: "ASCENDING",
desc: "DESCENDING"
}
, Tn = {
"<": "LESS_THAN",
"<=": "LESS_THAN_OR_EQUAL",
">": "GREATER_THAN",
">=": "GREATER_THAN_OR_EQUAL",
"==": "EQUAL",
"!=": "NOT_EQUAL",
"array-contains": "ARRAY_CONTAINS",
in: "IN",
"not-in": "NOT_IN",
"array-contains-any": "ARRAY_CONTAINS_ANY"
}
, En = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.databaseId = t,
this.C = n
}
));
function In(e, t) {
return e.C ? "".concat(new Date(1e3 * t.seconds).toISOString().replace(/\.\d*/, "").replace("Z", ""), ".").concat(("000000000" + t.nanoseconds).slice(-9), "Z") : {
seconds: "" + t.seconds,
nanos: t.nanoseconds
}
}
function Nn(e, t) {
return e.C ? t.toBase64() : t.toUint8Array()
}
function zn(e, t) {
return In(e, t.toTimestamp())
}
function Dn(e) {
return I(!!e),
$.fromTimestamp(function(e) {
var t = de(e);
return new Z(t.seconds,t.nanos)
}(e))
}
function Ln(e, t) {
return function(e) {
return new ie(["projects", e.projectId, "databases", e.database])
}(e).child("documents").child(t).canonicalString()
}
function Rn(e) {
var t = ie.fromString(e);
return I(sr(t)),
t
}
function Pn(e, t) {
return Ln(e.databaseId, t.path)
}
function Bn(e, t) {
var n = Rn(t);
if (n.get(1) !== e.databaseId.projectId)
throw new L(D.INVALID_ARGUMENT,"Tried to deserialize key from different project: " + n.get(1) + " vs " + e.databaseId.projectId);
if (n.get(3) !== e.databaseId.database)
throw new L(D.INVALID_ARGUMENT,"Tried to deserialize key from different database: " + n.get(3) + " vs " + e.databaseId.database);
return new xe(qn(n))
}
function Fn(e, t) {
return Ln(e.databaseId, t)
}
function Vn(e) {
var t = Rn(e);
return 4 === t.length ? ie.emptyPath() : qn(t)
}
function Wn(e) {
return new ie(["projects", e.databaseId.projectId, "databases", e.databaseId.database]).canonicalString()
}
function qn(e) {
return I(e.length > 4 && "documents" === e.get(4)),
e.popFirst(5)
}
function Hn(e, t, n) {
return {
name: Pn(e, t),
fields: n.value.mapValue.fields
}
}
function Un(e, t, n) {
var r = Bn(e, t.name)
, i = Dn(t.updateTime)
, o = new De({
mapValue: {
fields: t.fields
}
})
, a = Re.newFoundDocument(r, i, o);
return n && a.setHasCommittedMutations(),
n ? a.setHasCommittedMutations() : a
}
function Xn(e, t) {
return "found"in t ? function(e, t) {
I(!!t.found),
t.found.name,
t.found.updateTime;
var n = Bn(e, t.found.name)
, r = Dn(t.found.updateTime)
, i = new De({
mapValue: {
fields: t.found.fields
}
});
return Re.newFoundDocument(n, r, i)
}(e, t) : "missing"in t ? function(e, t) {
I(!!t.missing),
I(!!t.readTime);
var n = Bn(e, t.missing)
, r = Dn(t.readTime);
return Re.newNoDocument(n, r)
}(e, t) : E()
}
function Gn(e, t) {
var n;
if (t instanceof Xt)
n = {
update: Hn(e, t.key, t.value)
};
else if (t instanceof $t)
n = {
delete: Pn(e, t.key)
};
else if (t instanceof Gt)
n = {
update: Hn(e, t.key, t.data),
updateMask: lr(t.fieldMask)
};
else {
if (!(t instanceof en))
return E();
n = {
verify: Pn(e, t.key)
}
}
return t.fieldTransforms.length > 0 && (n.updateTransforms = t.fieldTransforms.map((function(e) {
return function(e, t) {
var n = t.transform;
if (n instanceof St)
return {
fieldPath: t.field.canonicalString(),
setToServerValue: "REQUEST_TIME"
};
if (n instanceof At)
return {
fieldPath: t.field.canonicalString(),
appendMissingElements: {
values: n.elements
}
};
if (n instanceof Et)
return {
fieldPath: t.field.canonicalString(),
removeAllFromArray: {
values: n.elements
}
};
if (n instanceof Nt)
return {
fieldPath: t.field.canonicalString(),
increment: n.N
};
throw E()
}(0, e)
}
))),
t.precondition.isNone || (n.currentDocument = function(e, t) {
return void 0 !== t.updateTime ? {
updateTime: zn(e, t.updateTime)
} : void 0 !== t.exists ? {
exists: t.exists
} : E()
}(e, t.precondition)),
n
}
function Kn(e, t) {
var n = t.currentDocument ? function(e) {
return void 0 !== e.updateTime ? Pt.updateTime(Dn(e.updateTime)) : void 0 !== e.exists ? Pt.exists(e.exists) : Pt.none()
}(t.currentDocument) : Pt.none()
, r = t.updateTransforms ? t.updateTransforms.map((function(t) {
return function(e, t) {
var n = null;
if ("setToServerValue"in t)
I("REQUEST_TIME" === t.setToServerValue),
n = new St;
else if ("appendMissingElements"in t) {
var r = t.appendMissingElements.values || [];
n = new At(r)
} else if ("removeAllFromArray"in t) {
var i = t.removeAllFromArray.values || [];
n = new Et(i)
} else
"increment"in t ? n = new Nt(e,t.increment) : E();
var o = ae.fromServerFormat(t.fieldPath);
return new Lt(o,n)
}(e, t)
}
)) : [];
if (t.update) {
t.update.name;
var i = Bn(e, t.update.name)
, o = new De({
mapValue: {
fields: t.update.fields
}
});
if (t.updateMask) {
var a = function(e) {
var t = e.fieldPaths || [];
return new le(t.map((function(e) {
return ae.fromServerFormat(e)
}
)))
}(t.updateMask);
return new Gt(i,o,a,n,r)
}
return new Xt(i,o,n,r)
}
if (t.delete) {
var l = Bn(e, t.delete);
return new $t(l,n)
}
if (t.verify) {
var s = Bn(e, t.verify);
return new en(s,n)
}
return E()
}
function Yn(e, t) {
return {
documents: [Fn(e, t.path)]
}
}
function Qn(e, t) {
var n = {
structuredQuery: {}
}
, r = t.path;
null !== t.collectionGroup ? (n.parent = Fn(e, r),
n.structuredQuery.from = [{
collectionId: t.collectionGroup,
allDescendants: !0
}]) : (n.parent = Fn(e, r.popLast()),
n.structuredQuery.from = [{
collectionId: r.lastSegment()
}]);
var i = function(e) {
if (0 !== e.length) {
var t = e.map((function(e) {
return function(e) {
if ("==" === e.op) {
if (Ie(e.value))
return {
unaryFilter: {
field: rr(e.field),
op: "IS_NAN"
}
};
if (Ee(e.value))
return {
unaryFilter: {
field: rr(e.field),
op: "IS_NULL"
}
}
} else if ("!=" === e.op) {
if (Ie(e.value))
return {
unaryFilter: {
field: rr(e.field),
op: "IS_NOT_NAN"
}
};
if (Ee(e.value))
return {
unaryFilter: {
field: rr(e.field),
op: "IS_NOT_NULL"
}
}
}
return {
fieldFilter: {
field: rr(e.field),
op: nr(e.op),
value: e.value
}
}
}(e)
}
));
return 1 === t.length ? t[0] : {
compositeFilter: {
op: "AND",
filters: t
}
}
}
}(t.filters);
i && (n.structuredQuery.where = i);
var o = function(e) {
if (0 !== e.length)
return e.map((function(e) {
return function(e) {
return {
field: rr(e.field),
direction: tr(e.dir)
}
}(e)
}
))
}(t.orderBy);
o && (n.structuredQuery.orderBy = o);
var a = function(e, t) {
return e.C || me(t) ? t : {
value: t
}
}(e, t.limit);
return null !== a && (n.structuredQuery.limit = a),
t.startAt && (n.structuredQuery.startAt = $n(t.startAt)),
t.endAt && (n.structuredQuery.endAt = $n(t.endAt)),
n
}
function Jn(e) {
var t = Vn(e.parent)
, n = e.structuredQuery
, r = n.from ? n.from.length : 0
, i = null;
if (r > 0) {
I(1 === r);
var o = n.from[0];
o.allDescendants ? i = o.collectionId : t = t.child(o.collectionId)
}
var a = [];
n.where && (a = Zn(n.where));
var l = [];
n.orderBy && (l = n.orderBy.map((function(e) {
return function(e) {
return new et(ir(e.field),function(e) {
switch (e) {
case "ASCENDING":
return "asc";
case "DESCENDING":
return "desc";
default:
return
}
}(e.direction))
}(e)
}
)));
var s = null;
n.limit && (s = function(e) {
var t;
return me(t = "object" == typeof e ? e.value : e) ? null : t
}(n.limit));
var c = null;
n.startAt && (c = er(n.startAt));
var u = null;
return n.endAt && (u = er(n.endAt)),
ot(t, i, l, a, s, "F", c, u)
}
function Zn(e) {
return e ? void 0 !== e.unaryFilter ? [ar(e)] : void 0 !== e.fieldFilter ? [or(e)] : void 0 !== e.compositeFilter ? e.compositeFilter.filters.map((function(e) {
return Zn(e)
}
)).reduce((function(e, t) {
return e.concat(t)
}
)) : E() : []
}
function $n(e) {
return {
before: e.before,
values: e.position
}
}
function er(e) {
var t = !!e.before
, n = e.values || [];
return new Ze(n,t)
}
function tr(e) {
return An[e]
}
function nr(e) {
return Tn[e]
}
function rr(e) {
return {
fieldPath: e.canonicalString()
}
}
function ir(e) {
return ae.fromServerFormat(e.fieldPath)
}
function or(e) {
return qe.create(ir(e.fieldFilter.field), function(e) {
switch (e) {
case "EQUAL":
return "==";
case "NOT_EQUAL":
return "!=";
case "GREATER_THAN":
return ">";
case "GREATER_THAN_OR_EQUAL":
return ">=";
case "LESS_THAN":
return "<";
case "LESS_THAN_OR_EQUAL":
return "<=";
case "ARRAY_CONTAINS":
return "array-contains";
case "IN":
return "in";
case "NOT_IN":
return "not-in";
case "ARRAY_CONTAINS_ANY":
return "array-contains-any";
default:
return E()
}
}(e.fieldFilter.op), e.fieldFilter.value)
}
function ar(e) {
switch (e.unaryFilter.op) {
case "IS_NAN":
var t = ir(e.unaryFilter.field);
return qe.create(t, "==", {
doubleValue: NaN
});
case "IS_NULL":
var n = ir(e.unaryFilter.field);
return qe.create(n, "==", {
nullValue: "NULL_VALUE"
});
case "IS_NOT_NAN":
var r = ir(e.unaryFilter.field);
return qe.create(r, "!=", {
doubleValue: NaN
});
case "IS_NOT_NULL":
var i = ir(e.unaryFilter.field);
return qe.create(i, "!=", {
nullValue: "NULL_VALUE"
});
default:
return E()
}
}
function lr(e) {
var t = [];
return e.fields.forEach((function(e) {
return t.push(e.canonicalString())
}
)),
{
fieldPaths: t
}
}
function sr(e) {
return e.length >= 4 && "projects" === e.get(0) && "databases" === e.get(2)
}
function cr(e) {
for (var t = "", n = 0; n < e.length; n++)
t.length > 0 && (t = dr(t)),
t = ur(e.get(n), t);
return dr(t)
}
function ur(e, t) {
for (var n = t, r = e.length, i = 0; i < r; i++) {
var o = e.charAt(i);
switch (o) {
case "\0":
n += "";
break;
case "":
n += "";
break;
default:
n += o
}
}
return n
}
function dr(e) {
return e + ""
}
function pr(e) {
var t = e.length;
if (I(t >= 2),
2 === t)
return I("" === e.charAt(0) && "" === e.charAt(1)),
ie.emptyPath();
for (var n = t - 2, r = [], i = "", o = 0; o < t; ) {
var a = e.indexOf("", o);
switch ((a < 0 || a > n) && E(),
e.charAt(a + 1)) {
case "":
var l = e.substring(o, a)
, s = void 0;
0 === i.length ? s = l : (s = i += l,
i = ""),
r.push(s);
break;
case "":
i += e.substring(o, a),
i += "\0";
break;
case "":
i += e.substring(o, a + 1);
break;
default:
E()
}
o = a + 2
}
return new ie(r)
}
var hr = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.seconds = t,
this.nanoseconds = n
}
))
, fr = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.ownerId = t,
this.allowTabSynchronization = n,
this.leaseTimestampMs = r
}
));
fr.store = "owner",
fr.key = "owner";
var br = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.userId = t,
this.lastAcknowledgedBatchId = n,
this.lastStreamToken = r
}
));
br.store = "mutationQueues",
br.keyPath = "userId";
var gr = Object(h.a)((function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.userId = t,
this.batchId = n,
this.localWriteTimeMs = r,
this.baseMutations = i,
this.mutations = o
}
));
gr.store = "mutations",
gr.keyPath = "batchId",
gr.userMutationsIndex = "userMutationsIndex",
gr.userMutationsKeyPath = ["userId", "batchId"];
var mr = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, null, [{
key: "prefixForUser",
value: function(e) {
return [e]
}
}, {
key: "prefixForPath",
value: function(e, t) {
return [e, cr(t)]
}
}, {
key: "key",
value: function(e, t, n) {
return [e, cr(t), n]
}
}]),
e
}();
mr.store = "documentMutations",
mr.PLACEHOLDER = new mr;
var vr = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.path = t,
this.readTime = n
}
))
, yr = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.path = t,
this.version = n
}
))
, xr = Object(h.a)((function e(t, n, r, i, o, a) {
Object(p.a)(this, e),
this.unknownDocument = t,
this.noDocument = n,
this.document = r,
this.hasCommittedMutations = i,
this.readTime = o,
this.parentPath = a
}
));
xr.store = "remoteDocuments",
xr.readTimeIndex = "readTimeIndex",
xr.readTimeIndexPath = "readTime",
xr.collectionReadTimeIndex = "collectionReadTimeIndex",
xr.collectionReadTimeIndexPath = ["parentPath", "readTime"];
var Or = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.byteSize = t
}
));
Or.store = "remoteDocumentGlobal",
Or.key = "remoteDocumentGlobalKey";
var jr = Object(h.a)((function e(t, n, r, i, o, a, l) {
Object(p.a)(this, e),
this.targetId = t,
this.canonicalId = n,
this.readTime = r,
this.resumeToken = i,
this.lastListenSequenceNumber = o,
this.lastLimboFreeSnapshotVersion = a,
this.query = l
}
));
jr.store = "targets",
jr.keyPath = "targetId",
jr.queryTargetsIndexName = "queryTargetsIndex",
jr.queryTargetsKeyPath = ["canonicalId", "targetId"];
var kr = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.targetId = t,
this.path = n,
this.sequenceNumber = r
}
));
kr.store = "targetDocuments",
kr.keyPath = ["targetId", "path"],
kr.documentTargetsIndex = "documentTargetsIndex",
kr.documentTargetsKeyPath = ["path", "targetId"];
var wr = Object(h.a)((function e(t, n, r, i) {
Object(p.a)(this, e),
this.highestTargetId = t,
this.highestListenSequenceNumber = n,
this.lastRemoteSnapshotVersion = r,
this.targetCount = i
}
));
wr.key = "targetGlobalKey",
wr.store = "targetGlobal";
var Cr = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.collectionId = t,
this.parent = n
}
));
Cr.store = "collectionParents",
Cr.keyPath = ["collectionId", "parent"];
var _r = Object(h.a)((function e(t, n, r, i) {
Object(p.a)(this, e),
this.clientId = t,
this.updateTimeMs = n,
this.networkEnabled = r,
this.inForeground = i
}
));
_r.store = "clientMetadata",
_r.keyPath = "clientId";
var Mr = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.bundleId = t,
this.createTime = n,
this.version = r
}
));
Mr.store = "bundles",
Mr.keyPath = "bundleId";
var Sr = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.name = t,
this.readTime = n,
this.bundledQuery = r
}
));
Sr.store = "namedQueries",
Sr.keyPath = "name";
var Ar = [br.store, gr.store, mr.store, xr.store, jr.store, fr.store, wr.store, kr.store].concat([_r.store]).concat([Or.store]).concat([Cr.store]).concat([Mr.store, Sr.store])
, Tr = "The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab."
, Er = function() {
function e() {
Object(p.a)(this, e),
this.onCommittedListeners = []
}
return Object(h.a)(e, [{
key: "addOnCommittedListener",
value: function(e) {
this.onCommittedListeners.push(e)
}
}, {
key: "raiseOnCommittedEvent",
value: function() {
this.onCommittedListeners.forEach((function(e) {
return e()
}
))
}
}]),
e
}()
, Ir = function() {
function e(t) {
var n = this;
Object(p.a)(this, e),
this.nextCallback = null,
this.catchCallback = null,
this.result = void 0,
this.error = void 0,
this.isDone = !1,
this.callbackAttached = !1,
t((function(e) {
n.isDone = !0,
n.result = e,
n.nextCallback && n.nextCallback(e)
}
), (function(e) {
n.isDone = !0,
n.error = e,
n.catchCallback && n.catchCallback(e)
}
))
}
return Object(h.a)(e, [{
key: "catch",
value: function(e) {
return this.next(void 0, e)
}
}, {
key: "next",
value: function(t, n) {
var r = this;
return this.callbackAttached && E(),
this.callbackAttached = !0,
this.isDone ? this.error ? this.wrapFailure(n, this.error) : this.wrapSuccess(t, this.result) : new e((function(e, i) {
r.nextCallback = function(n) {
r.wrapSuccess(t, n).next(e, i)
}
,
r.catchCallback = function(t) {
r.wrapFailure(n, t).next(e, i)
}
}
))
}
}, {
key: "toPromise",
value: function() {
var e = this;
return new Promise((function(t, n) {
e.next(t, n)
}
))
}
}, {
key: "wrapUserFunction",
value: function(t) {
try {
var n = t();
return n instanceof e ? n : e.resolve(n)
} catch (t) {
return e.reject(t)
}
}
}, {
key: "wrapSuccess",
value: function(t, n) {
return t ? this.wrapUserFunction((function() {
return t(n)
}
)) : e.resolve(n)
}
}, {
key: "wrapFailure",
value: function(t, n) {
return t ? this.wrapUserFunction((function() {
return t(n)
}
)) : e.reject(n)
}
}], [{
key: "resolve",
value: function(t) {
return new e((function(e, n) {
e(t)
}
))
}
}, {
key: "reject",
value: function(t) {
return new e((function(e, n) {
n(t)
}
))
}
}, {
key: "waitFor",
value: function(t) {
return new e((function(e, n) {
var r = 0
, i = 0
, o = !1;
t.forEach((function(t) {
++r,
t.next((function() {
++i,
o && i === r && e()
}
), (function(e) {
return n(e)
}
))
}
)),
o = !0,
i === r && e()
}
))
}
}, {
key: "or",
value: function(t) {
var n, r = e.resolve(!1), i = Object(l.a)(t);
try {
var o = function() {
var t = n.value;
r = r.next((function(n) {
return n ? e.resolve(n) : t()
}
))
};
for (i.s(); !(n = i.n()).done; )
o()
} catch (e) {
i.e(e)
} finally {
i.f()
}
return r
}
}, {
key: "forEach",
value: function(e, t) {
var n = this
, r = [];
return e.forEach((function(e, i) {
r.push(t.call(n, e, i))
}
)),
this.waitFor(r)
}
}]),
e
}()
, Nr = function() {
function e(t, n) {
var r = this;
Object(p.a)(this, e),
this.action = t,
this.transaction = n,
this.aborted = !1,
this.It = new R,
this.transaction.oncomplete = function() {
r.It.resolve()
}
,
this.transaction.onabort = function() {
n.error ? r.It.reject(new Lr(t,n.error)) : r.It.resolve()
}
,
this.transaction.onerror = function(e) {
var n = Vr(e.target.error);
r.It.reject(new Lr(t,n))
}
}
return Object(h.a)(e, [{
key: "At",
get: function() {
return this.It.promise
}
}, {
key: "abort",
value: function(e) {
e && this.It.reject(e),
this.aborted || (M("SimpleDb", "Aborting transaction:", e ? e.message : "Client-initiated abort"),
this.aborted = !0,
this.transaction.abort())
}
}, {
key: "store",
value: function(e) {
var t = this.transaction.objectStore(e);
return new Pr(t)
}
}], [{
key: "open",
value: function(t, n, r, i) {
try {
return new e(n,t.transaction(i, r))
} catch (t) {
throw new Lr(n,t)
}
}
}]),
e
}()
, zr = function() {
function t(e, n, r) {
Object(p.a)(this, t),
this.name = e,
this.version = n,
this.Rt = r,
12.2 === t.bt(Object(y.l)()) && S("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")
}
return Object(h.a)(t, [{
key: "Ct",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = this.db,
e.t0) {
e.next = 6;
break
}
return M("SimpleDb", "Opening database:", this.name),
e.next = 5,
new Promise((function(e, r) {
var i = indexedDB.open(n.name, n.version);
i.onsuccess = function(t) {
var n = t.target.result;
e(n)
}
,
i.onblocked = function() {
r(new Lr(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))
}
,
i.onerror = function(e) {
var n = e.target.error;
"VersionError" === n.name ? r(new L(D.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")) : "InvalidStateError" === n.name ? r(new L(D.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: " + n)) : r(new Lr(t,n))
}
,
i.onupgradeneeded = function(e) {
M("SimpleDb", 'Database "' + n.name + '" requires upgrade from version:', e.oldVersion);
var t = e.target.result;
n.Rt.Nt(t, i.transaction, e.oldVersion, n.version).next((function() {
M("SimpleDb", "Database upgrade to version " + n.version + " complete")
}
))
}
}
));
case 5:
this.db = e.sent;
case 6:
return this.kt && (this.db.onversionchange = function(e) {
return n.kt(e)
}
),
e.abrupt("return", this.db);
case 8:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "xt",
value: function(e) {
this.kt = e,
this.db && (this.db.onversionchange = function(t) {
return e(t)
}
)
}
}, {
key: "runTransaction",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t, n, r, i) {
var o, a, l, s, c = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
o = "readonly" === n,
a = 0;
case 2:
return ++a,
e.prev = 3,
e.delegateYield(b.a.mark((function e() {
var n, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
c.Ct(t);
case 2:
return c.db = e.sent,
n = Nr.open(c.db, t, o ? "readonly" : "readwrite", r),
a = i(n).catch((function(e) {
return n.abort(e),
Ir.reject(e)
}
)).toPromise(),
a.catch((function() {}
)),
e.next = 7,
n.At;
case 7:
return e.t0 = a,
e.abrupt("return", {
v: e.t0
});
case 9:
case "end":
return e.stop()
}
}
), e)
}
))(), "t0", 5);
case 5:
if ("object" != typeof (l = e.t0)) {
e.next = 8;
break
}
return e.abrupt("return", l.v);
case 8:
e.next = 15;
break;
case 10:
if (e.prev = 10,
e.t1 = e.catch(3),
s = "FirebaseError" !== e.t1.name && a < 3,
M("SimpleDb", "Transaction failed with error:", e.t1.message, "Retrying:", s),
this.close(),
s) {
e.next = 15;
break
}
return e.abrupt("return", Promise.reject(e.t1));
case 15:
e.next = 2;
break;
case 17:
case "end":
return e.stop()
}
}
), e, this, [[3, 10]])
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()
}, {
key: "close",
value: function() {
this.db && this.db.close(),
this.db = void 0
}
}], [{
key: "delete",
value: function(e) {
return M("SimpleDb", "Removing database:", e),
Br(window.indexedDB.deleteDatabase(e)).toPromise()
}
}, {
key: "Pt",
value: function() {
if (!Object(y.r)())
return !1;
if (t.vt())
return !0;
var e = Object(y.l)()
, n = t.bt(e)
, r = 0 < n && n < 10
, i = t.Vt(e)
, o = 0 < i && i < 4.5;
return !(e.indexOf("MSIE ") > 0 || e.indexOf("Trident/") > 0 || e.indexOf("Edge/") > 0 || r || o)
}
}, {
key: "vt",
value: function() {
var t;
return void 0 !== e && "YES" === (null === (t = Object({
NODE_ENV: "production",
PUBLIC_URL: "https://cdnjs.appcheap.io/5.3.0",
WDS_SOCKET_HOST: void 0,
WDS_SOCKET_PATH: void 0,
WDS_SOCKET_PORT: void 0,
FAST_REFRESH: !0,
REACT_APP_BUILD_NUM: "759"
})) || void 0 === t ? void 0 : t.St)
}
}, {
key: "Dt",
value: function(e, t) {
return e.store(t)
}
}, {
key: "bt",
value: function(e) {
var t = e.match(/i(?:phone|pad|pod) os ([\d_]+)/i)
, n = t ? t[1].split("_").slice(0, 2).join(".") : "-1";
return Number(n)
}
}, {
key: "Vt",
value: function(e) {
var t = e.match(/Android ([\d.]+)/i)
, n = t ? t[1].split(".").slice(0, 2).join(".") : "-1";
return Number(n)
}
}]),
t
}()
, Dr = function() {
function e(t) {
Object(p.a)(this, e),
this.$t = t,
this.Ot = !1,
this.Ft = null
}
return Object(h.a)(e, [{
key: "isDone",
get: function() {
return this.Ot
}
}, {
key: "Mt",
get: function() {
return this.Ft
}
}, {
key: "cursor",
set: function(e) {
this.$t = e
}
}, {
key: "done",
value: function() {
this.Ot = !0
}
}, {
key: "Lt",
value: function(e) {
this.Ft = e
}
}, {
key: "delete",
value: function() {
return Br(this.$t.delete())
}
}]),
e
}()
, Lr = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, D.UNAVAILABLE, "IndexedDB transaction '".concat(e, "' failed: ").concat(r))).name = "IndexedDbTransactionError",
i
}
return Object(h.a)(n)
}(L);
function Rr(e) {
return "IndexedDbTransactionError" === e.name
}
var Pr = function() {
function e(t) {
Object(p.a)(this, e),
this.store = t
}
return Object(h.a)(e, [{
key: "put",
value: function(e, t) {
var n;
return void 0 !== t ? (M("SimpleDb", "PUT", this.store.name, e, t),
n = this.store.put(t, e)) : (M("SimpleDb", "PUT", this.store.name, "<auto-key>", e),
n = this.store.put(e)),
Br(n)
}
}, {
key: "add",
value: function(e) {
return M("SimpleDb", "ADD", this.store.name, e, e),
Br(this.store.add(e))
}
}, {
key: "get",
value: function(e) {
var t = this;
return Br(this.store.get(e)).next((function(n) {
return void 0 === n && (n = null),
M("SimpleDb", "GET", t.store.name, e, n),
n
}
))
}
}, {
key: "delete",
value: function(e) {
return M("SimpleDb", "DELETE", this.store.name, e),
Br(this.store.delete(e))
}
}, {
key: "count",
value: function() {
return M("SimpleDb", "COUNT", this.store.name),
Br(this.store.count())
}
}, {
key: "Bt",
value: function(e, t) {
var n = this.cursor(this.options(e, t))
, r = [];
return this.Ut(n, (function(e, t) {
r.push(t)
}
)).next((function() {
return r
}
))
}
}, {
key: "qt",
value: function(e, t) {
M("SimpleDb", "DELETE ALL", this.store.name);
var n = this.options(e, t);
n.Kt = !1;
var r = this.cursor(n);
return this.Ut(r, (function(e, t, n) {
return n.delete()
}
))
}
}, {
key: "jt",
value: function(e, t) {
var n;
t ? n = e : (n = {},
t = e);
var r = this.cursor(n);
return this.Ut(r, t)
}
}, {
key: "Qt",
value: function(e) {
var t = this.cursor({});
return new Ir((function(n, r) {
t.onerror = function(e) {
var t = Vr(e.target.error);
r(t)
}
,
t.onsuccess = function(t) {
var r = t.target.result;
r ? e(r.primaryKey, r.value).next((function(e) {
e ? r.continue() : n()
}
)) : n()
}
}
))
}
}, {
key: "Ut",
value: function(e, t) {
var n = [];
return new Ir((function(r, i) {
e.onerror = function(e) {
i(e.target.error)
}
,
e.onsuccess = function(e) {
var i = e.target.result;
if (i) {
var o = new Dr(i)
, a = t(i.primaryKey, i.value, o);
if (a instanceof Ir) {
var l = a.catch((function(e) {
return o.done(),
Ir.reject(e)
}
));
n.push(l)
}
o.isDone ? r() : null === o.Mt ? i.continue() : i.continue(o.Mt)
} else
r()
}
}
)).next((function() {
return Ir.waitFor(n)
}
))
}
}, {
key: "options",
value: function(e, t) {
var n;
return void 0 !== e && ("string" == typeof e ? n = e : t = e),
{
index: n,
range: t
}
}
}, {
key: "cursor",
value: function(e) {
var t = "next";
if (e.reverse && (t = "prev"),
e.index) {
var n = this.store.index(e.index);
return e.Kt ? n.openKeyCursor(e.range, t) : n.openCursor(e.range, t)
}
return this.store.openCursor(e.range, t)
}
}]),
e
}();
function Br(e) {
return new Ir((function(t, n) {
e.onsuccess = function(e) {
var n = e.target.result;
t(n)
}
,
e.onerror = function(e) {
var t = Vr(e.target.error);
n(t)
}
}
))
}
var Fr = !1;
function Vr(e) {
var t = zr.bt(Object(y.l)());
if (t >= 12.2 && t < 13) {
var n = "An internal error was encountered in the Indexed Database server";
if (e.message.indexOf(n) >= 0) {
var r = new L("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '".concat(n, "'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround."));
return Fr || (Fr = !0,
setTimeout((function() {
throw r
}
), 0)),
r
}
}
return e
}
var Wr = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this)).Wt = e,
i.currentSequenceNumber = r,
i
}
return Object(h.a)(n)
}(Er);
function qr(e, t) {
var n = z(e);
return zr.Dt(n.Wt, t)
}
var Hr = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.batchId = t,
this.localWriteTime = n,
this.baseMutations = r,
this.mutations = i
}
return Object(h.a)(e, [{
key: "applyToRemoteDocument",
value: function(e, t) {
for (var n = t.mutationResults, r = 0; r < this.mutations.length; r++) {
var i = this.mutations[r];
i.key.isEqual(e.key) && Vt(i, e, n[r])
}
}
}, {
key: "applyToLocalView",
value: function(e) {
var t, n = Object(l.a)(this.baseMutations);
try {
for (n.s(); !(t = n.n()).done; ) {
var r = t.value;
r.key.isEqual(e.key) && Wt(r, e, this.localWriteTime)
}
} catch (e) {
n.e(e)
} finally {
n.f()
}
var i, o = Object(l.a)(this.mutations);
try {
for (o.s(); !(i = o.n()).done; ) {
var a = i.value;
a.key.isEqual(e.key) && Wt(a, e, this.localWriteTime)
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
}
}, {
key: "applyToLocalDocumentSet",
value: function(e) {
var t = this;
this.mutations.forEach((function(n) {
var r = e.get(n.key)
, i = r;
t.applyToLocalView(i),
r.isValidDocument() || i.convertToNoDocument($.min())
}
))
}
}, {
key: "keys",
value: function() {
return this.mutations.reduce((function(e, t) {
return e.add(t.key)
}
), mn())
}
}, {
key: "isEqual",
value: function(e) {
return this.batchId === e.batchId && Q(this.mutations, e.mutations, (function(e, t) {
return Ht(e, t)
}
)) && Q(this.baseMutations, e.baseMutations, (function(e, t) {
return Ht(e, t)
}
))
}
}]),
e
}()
, Ur = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.batch = t,
this.commitVersion = n,
this.mutationResults = r,
this.docVersions = i
}
return Object(h.a)(e, null, [{
key: "from",
value: function(t, n, r) {
I(t.mutations.length === r.length);
for (var i = bn(), o = t.mutations, a = 0; a < o.length; a++)
i = i.insert(o[a].key, r[a].version);
return new e(t,n,r,i)
}
}]),
e
}()
, Xr = function() {
function e(t, n, r, i) {
var o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : $.min()
, a = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : $.min()
, l = arguments.length > 6 && void 0 !== arguments[6] ? arguments[6] : ce.EMPTY_BYTE_STRING;
Object(p.a)(this, e),
this.target = t,
this.targetId = n,
this.purpose = r,
this.sequenceNumber = i,
this.snapshotVersion = o,
this.lastLimboFreeSnapshotVersion = a,
this.resumeToken = l
}
return Object(h.a)(e, [{
key: "withSequenceNumber",
value: function(t) {
return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)
}
}, {
key: "withResumeToken",
value: function(t, n) {
return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)
}
}, {
key: "withLastLimboFreeSnapshotVersion",
value: function(t) {
return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)
}
}]),
e
}()
, Gr = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.Gt = t
}
));
function Kr(e, t) {
if (t.document)
return Un(e.Gt, t.document, !!t.hasCommittedMutations);
if (t.noDocument) {
var n = xe.fromSegments(t.noDocument.path)
, r = $r(t.noDocument.readTime)
, i = Re.newNoDocument(n, r);
return t.hasCommittedMutations ? i.setHasCommittedMutations() : i
}
if (t.unknownDocument) {
var o = xe.fromSegments(t.unknownDocument.path)
, a = $r(t.unknownDocument.version);
return Re.newUnknownDocument(o, a)
}
return E()
}
function Yr(e, t, n) {
var r = Qr(n)
, i = t.key.path.popLast().toArray();
if (t.isFoundDocument()) {
var o = function(e, t) {
return {
name: Pn(e, t.key),
fields: t.data.value.mapValue.fields,
updateTime: In(e, t.version.toTimestamp())
}
}(e.Gt, t)
, a = t.hasCommittedMutations;
return new xr(null,null,o,a,r,i)
}
if (t.isNoDocument()) {
var l = t.key.path.toArray()
, s = Zr(t.version)
, c = t.hasCommittedMutations;
return new xr(null,new vr(l,s),null,c,r,i)
}
if (t.isUnknownDocument()) {
var u = t.key.path.toArray()
, d = Zr(t.version);
return new xr(new yr(u,d),null,null,!0,r,i)
}
return E()
}
function Qr(e) {
var t = e.toTimestamp();
return [t.seconds, t.nanoseconds]
}
function Jr(e) {
var t = new Z(e[0],e[1]);
return $.fromTimestamp(t)
}
function Zr(e) {
var t = e.toTimestamp();
return new hr(t.seconds,t.nanoseconds)
}
function $r(e) {
var t = new Z(e.seconds,e.nanoseconds);
return $.fromTimestamp(t)
}
function ei(e, t) {
for (var n = (t.baseMutations || []).map((function(t) {
return Kn(e.Gt, t)
}
)), r = 0; r < t.mutations.length - 1; ++r) {
var i = t.mutations[r];
if (r + 1 < t.mutations.length && void 0 !== t.mutations[r + 1].transform) {
var o = t.mutations[r + 1];
i.updateTransforms = o.transform.fieldTransforms,
t.mutations.splice(r + 1, 1),
++r
}
}
var a = t.mutations.map((function(t) {
return Kn(e.Gt, t)
}
))
, l = Z.fromMillis(t.localWriteTimeMs);
return new Hr(t.batchId,l,n,a)
}
function ti(e) {
var t, n, r = $r(e.readTime), i = void 0 !== e.lastLimboFreeSnapshotVersion ? $r(e.lastLimboFreeSnapshotVersion) : $.min();
return void 0 !== e.query.documents ? (I(1 === (n = e.query).documents.length),
t = ht(at(Vn(n.documents[0])))) : t = function(e) {
return ht(Jn(e))
}(e.query),
new Xr(t,e.targetId,0,e.lastListenSequenceNumber,r,i,ce.fromBase64String(e.resumeToken))
}
function ni(e, t) {
var n, r = Zr(t.snapshotVersion), i = Zr(t.lastLimboFreeSnapshotVersion);
n = We(t.target) ? Yn(e.Gt, t.target) : Qn(e.Gt, t.target);
var o = t.resumeToken.toBase64();
return new jr(t.targetId,Fe(t.target),r,o,t.sequenceNumber,i,n)
}
function ri(e) {
var t = Jn({
parent: e.parent,
structuredQuery: e.structuredQuery
});
return "LAST" === e.limitType ? ft(t, t.limit, "L") : t
}
var ii = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, [{
key: "getBundleMetadata",
value: function(e, t) {
return oi(e).get(t).next((function(e) {
if (e)
return {
id: (t = e).bundleId,
createTime: $r(t.createTime),
version: t.version
};
var t
}
))
}
}, {
key: "saveBundleMetadata",
value: function(e, t) {
return oi(e).put({
bundleId: (n = t).id,
createTime: Zr(Dn(n.createTime)),
version: n.version
});
var n
}
}, {
key: "getNamedQuery",
value: function(e, t) {
return ai(e).get(t).next((function(e) {
if (e)
return {
name: (t = e).name,
query: ri(t.bundledQuery),
readTime: $r(t.readTime)
};
var t
}
))
}
}, {
key: "saveNamedQuery",
value: function(e, t) {
return ai(e).put(function(e) {
return {
name: e.name,
readTime: Zr(Dn(e.readTime)),
bundledQuery: e.bundledQuery
}
}(t))
}
}]),
e
}();
function oi(e) {
return qr(e, Mr.store)
}
function ai(e) {
return qr(e, Sr.store)
}
var li = function() {
function e() {
Object(p.a)(this, e),
this.zt = new si
}
return Object(h.a)(e, [{
key: "addToCollectionParentIndex",
value: function(e, t) {
return this.zt.add(t),
Ir.resolve()
}
}, {
key: "getCollectionParents",
value: function(e, t) {
return Ir.resolve(this.zt.getEntries(t))
}
}]),
e
}()
, si = function() {
function e() {
Object(p.a)(this, e),
this.index = {}
}
return Object(h.a)(e, [{
key: "add",
value: function(e) {
var t = e.lastSegment()
, n = e.popLast()
, r = this.index[t] || new sn(ie.comparator)
, i = !r.has(n);
return this.index[t] = r.add(n),
i
}
}, {
key: "has",
value: function(e) {
var t = e.lastSegment()
, n = e.popLast()
, r = this.index[t];
return r && r.has(n)
}
}, {
key: "getEntries",
value: function(e) {
return (this.index[e] || new sn(ie.comparator)).toArray()
}
}]),
e
}()
, ci = function() {
function e() {
Object(p.a)(this, e),
this.Ht = new si
}
return Object(h.a)(e, [{
key: "addToCollectionParentIndex",
value: function(e, t) {
var n = this;
if (!this.Ht.has(t)) {
var r = t.lastSegment()
, i = t.popLast();
e.addOnCommittedListener((function() {
n.Ht.add(t)
}
));
var o = {
collectionId: r,
parent: cr(i)
};
return ui(e).put(o)
}
return Ir.resolve()
}
}, {
key: "getCollectionParents",
value: function(e, t) {
var n = []
, r = IDBKeyRange.bound([t, ""], [J(t), ""], !1, !0);
return ui(e).Bt(r).next((function(e) {
var r, i = Object(l.a)(e);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = r.value;
if (o.collectionId !== t)
break;
n.push(pr(o.parent))
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return n
}
))
}
}]),
e
}();
function ui(e) {
return qr(e, Cr.store)
}
var di = {
didRun: !1,
sequenceNumbersCollected: 0,
targetsRemoved: 0,
documentsRemoved: 0
}
, pi = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.cacheSizeCollectionThreshold = t,
this.percentileToCollect = n,
this.maximumSequenceNumbersToCollect = r
}
return Object(h.a)(e, null, [{
key: "withCacheSize",
value: function(t) {
return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)
}
}]),
e
}();
function hi(e, t, n) {
var r = e.store(gr.store)
, i = e.store(mr.store)
, o = []
, a = IDBKeyRange.only(n.batchId)
, s = 0
, c = r.jt({
range: a
}, (function(e, t, n) {
return s++,
n.delete()
}
));
o.push(c.next((function() {
I(1 === s)
}
)));
var u, d = [], p = Object(l.a)(n.mutations);
try {
for (p.s(); !(u = p.n()).done; ) {
var h = u.value
, f = mr.key(t, h.key.path, n.batchId);
o.push(i.delete(f)),
d.push(h.key)
}
} catch (e) {
p.e(e)
} finally {
p.f()
}
return Ir.waitFor(o).next((function() {
return d
}
))
}
function fi(e) {
if (!e)
return 0;
var t;
if (e.document)
t = e.document;
else if (e.unknownDocument)
t = e.unknownDocument;
else {
if (!e.noDocument)
throw E();
t = e.noDocument
}
return JSON.stringify(t).length
}
pi.DEFAULT_COLLECTION_PERCENTILE = 10,
pi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT = 1e3,
pi.DEFAULT = new pi(41943040,pi.DEFAULT_COLLECTION_PERCENTILE,pi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),
pi.DISABLED = new pi(-1,0,0);
var bi = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.userId = t,
this.k = n,
this.Jt = r,
this.referenceDelegate = i,
this.Yt = {}
}
return Object(h.a)(e, [{
key: "checkEmpty",
value: function(e) {
var t = !0
, n = IDBKeyRange.bound([this.userId, Number.NEGATIVE_INFINITY], [this.userId, Number.POSITIVE_INFINITY]);
return mi(e).jt({
index: gr.userMutationsIndex,
range: n
}, (function(e, n, r) {
t = !1,
r.done()
}
)).next((function() {
return t
}
))
}
}, {
key: "addMutationBatch",
value: function(e, t, n, r) {
var i = this
, o = vi(e)
, a = mi(e);
return a.add({}).next((function(s) {
I("number" == typeof s);
var c, u = new Hr(s,t,n,r), d = function(e, t, n) {
var r = n.baseMutations.map((function(t) {
return Gn(e.Gt, t)
}
))
, i = n.mutations.map((function(t) {
return Gn(e.Gt, t)
}
));
return new gr(t,n.batchId,n.localWriteTime.toMillis(),r,i)
}(i.k, i.userId, u), p = [], h = new sn((function(e, t) {
return Y(e.canonicalString(), t.canonicalString())
}
)), f = Object(l.a)(r);
try {
for (f.s(); !(c = f.n()).done; ) {
var b = c.value
, g = mr.key(i.userId, b.key.path, s);
h = h.add(b.key.path.popLast()),
p.push(a.put(d)),
p.push(o.put(g, mr.PLACEHOLDER))
}
} catch (e) {
f.e(e)
} finally {
f.f()
}
return h.forEach((function(t) {
p.push(i.Jt.addToCollectionParentIndex(e, t))
}
)),
e.addOnCommittedListener((function() {
i.Yt[s] = u.keys()
}
)),
Ir.waitFor(p).next((function() {
return u
}
))
}
))
}
}, {
key: "lookupMutationBatch",
value: function(e, t) {
var n = this;
return mi(e).get(t).next((function(e) {
return e ? (I(e.userId === n.userId),
ei(n.k, e)) : null
}
))
}
}, {
key: "Zt",
value: function(e, t) {
var n = this;
return this.Yt[t] ? Ir.resolve(this.Yt[t]) : this.lookupMutationBatch(e, t).next((function(e) {
if (e) {
var r = e.keys();
return n.Yt[t] = r,
r
}
return null
}
))
}
}, {
key: "getNextMutationBatchAfterBatchId",
value: function(e, t) {
var n = this
, r = t + 1
, i = IDBKeyRange.lowerBound([this.userId, r])
, o = null;
return mi(e).jt({
index: gr.userMutationsIndex,
range: i
}, (function(e, t, i) {
t.userId === n.userId && (I(t.batchId >= r),
o = ei(n.k, t)),
i.done()
}
)).next((function() {
return o
}
))
}
}, {
key: "getHighestUnacknowledgedBatchId",
value: function(e) {
var t = IDBKeyRange.upperBound([this.userId, Number.POSITIVE_INFINITY])
, n = -1;
return mi(e).jt({
index: gr.userMutationsIndex,
range: t,
reverse: !0
}, (function(e, t, r) {
n = t.batchId,
r.done()
}
)).next((function() {
return n
}
))
}
}, {
key: "getAllMutationBatches",
value: function(e) {
var t = this
, n = IDBKeyRange.bound([this.userId, -1], [this.userId, Number.POSITIVE_INFINITY]);
return mi(e).Bt(gr.userMutationsIndex, n).next((function(e) {
return e.map((function(e) {
return ei(t.k, e)
}
))
}
))
}
}, {
key: "getAllMutationBatchesAffectingDocumentKey",
value: function(e, t) {
var n = this
, r = mr.prefixForPath(this.userId, t.path)
, i = IDBKeyRange.lowerBound(r)
, o = [];
return vi(e).jt({
range: i
}, (function(r, i, l) {
var s = Object(a.a)(r, 3)
, c = s[0]
, u = s[1]
, d = s[2]
, p = pr(u);
if (c === n.userId && t.path.isEqual(p))
return mi(e).get(d).next((function(e) {
if (!e)
throw E();
I(e.userId === n.userId),
o.push(ei(n.k, e))
}
));
l.done()
}
)).next((function() {
return o
}
))
}
}, {
key: "getAllMutationBatchesAffectingDocumentKeys",
value: function(e, t) {
var n = this
, r = new sn(Y)
, i = [];
return t.forEach((function(t) {
var o = mr.prefixForPath(n.userId, t.path)
, l = IDBKeyRange.lowerBound(o)
, s = vi(e).jt({
range: l
}, (function(e, i, o) {
var l = Object(a.a)(e, 3)
, s = l[0]
, c = l[1]
, u = l[2]
, d = pr(c);
s === n.userId && t.path.isEqual(d) ? r = r.add(u) : o.done()
}
));
i.push(s)
}
)),
Ir.waitFor(i).next((function() {
return n.te(e, r)
}
))
}
}, {
key: "getAllMutationBatchesAffectingQuery",
value: function(e, t) {
var n = this
, r = t.path
, i = r.length + 1
, o = mr.prefixForPath(this.userId, r)
, l = IDBKeyRange.lowerBound(o)
, s = new sn(Y);
return vi(e).jt({
range: l
}, (function(e, t, o) {
var l = Object(a.a)(e, 3)
, c = l[0]
, u = l[1]
, d = l[2]
, p = pr(u);
c === n.userId && r.isPrefixOf(p) ? p.length === i && (s = s.add(d)) : o.done()
}
)).next((function() {
return n.te(e, s)
}
))
}
}, {
key: "te",
value: function(e, t) {
var n = this
, r = []
, i = [];
return t.forEach((function(t) {
i.push(mi(e).get(t).next((function(e) {
if (null === e)
throw E();
I(e.userId === n.userId),
r.push(ei(n.k, e))
}
)))
}
)),
Ir.waitFor(i).next((function() {
return r
}
))
}
}, {
key: "removeMutationBatch",
value: function(e, t) {
var n = this;
return hi(e.Wt, this.userId, t).next((function(r) {
return e.addOnCommittedListener((function() {
n.ee(t.batchId)
}
)),
Ir.forEach(r, (function(t) {
return n.referenceDelegate.markPotentiallyOrphaned(e, t)
}
))
}
))
}
}, {
key: "ee",
value: function(e) {
delete this.Yt[e]
}
}, {
key: "performConsistencyCheck",
value: function(e) {
var t = this;
return this.checkEmpty(e).next((function(n) {
if (!n)
return Ir.resolve();
var r = IDBKeyRange.lowerBound(mr.prefixForUser(t.userId))
, i = [];
return vi(e).jt({
range: r
}, (function(e, n, r) {
if (e[0] === t.userId) {
var o = pr(e[1]);
i.push(o)
} else
r.done()
}
)).next((function() {
I(0 === i.length)
}
))
}
))
}
}, {
key: "containsKey",
value: function(e, t) {
return gi(e, this.userId, t)
}
}, {
key: "ne",
value: function(e) {
var t = this;
return yi(e).get(this.userId).next((function(e) {
return e || new br(t.userId,-1,"")
}
))
}
}], [{
key: "Xt",
value: function(t, n, r, i) {
return I("" !== t.uid),
new e(t.isAuthenticated() ? t.uid : "",n,r,i)
}
}]),
e
}();
function gi(e, t, n) {
var r = mr.prefixForPath(t, n.path)
, i = r[1]
, o = IDBKeyRange.lowerBound(r)
, l = !1;
return vi(e).jt({
range: o,
Kt: !0
}, (function(e, n, r) {
var o = Object(a.a)(e, 3)
, s = o[0]
, c = o[1];
o[2],
s === t && c === i && (l = !0),
r.done()
}
)).next((function() {
return l
}
))
}
function mi(e) {
return qr(e, gr.store)
}
function vi(e) {
return qr(e, mr.store)
}
function yi(e) {
return qr(e, br.store)
}
var xi = function() {
function e(t) {
Object(p.a)(this, e),
this.se = t
}
return Object(h.a)(e, [{
key: "next",
value: function() {
return this.se += 2,
this.se
}
}], [{
key: "ie",
value: function() {
return new e(0)
}
}, {
key: "re",
value: function() {
return new e(-1)
}
}]),
e
}()
, Oi = function() {
function e(t, n) {
Object(p.a)(this, e),
this.referenceDelegate = t,
this.k = n
}
return Object(h.a)(e, [{
key: "allocateTargetId",
value: function(e) {
var t = this;
return this.oe(e).next((function(n) {
var r = new xi(n.highestTargetId);
return n.highestTargetId = r.next(),
t.ae(e, n).next((function() {
return n.highestTargetId
}
))
}
))
}
}, {
key: "getLastRemoteSnapshotVersion",
value: function(e) {
return this.oe(e).next((function(e) {
return $.fromTimestamp(new Z(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))
}
))
}
}, {
key: "getHighestSequenceNumber",
value: function(e) {
return this.oe(e).next((function(e) {
return e.highestListenSequenceNumber
}
))
}
}, {
key: "setTargetsMetadata",
value: function(e, t, n) {
var r = this;
return this.oe(e).next((function(i) {
return i.highestListenSequenceNumber = t,
n && (i.lastRemoteSnapshotVersion = n.toTimestamp()),
t > i.highestListenSequenceNumber && (i.highestListenSequenceNumber = t),
r.ae(e, i)
}
))
}
}, {
key: "addTargetData",
value: function(e, t) {
var n = this;
return this.ce(e, t).next((function() {
return n.oe(e).next((function(r) {
return r.targetCount += 1,
n.ue(t, r),
n.ae(e, r)
}
))
}
))
}
}, {
key: "updateTargetData",
value: function(e, t) {
return this.ce(e, t)
}
}, {
key: "removeTargetData",
value: function(e, t) {
var n = this;
return this.removeMatchingKeysForTargetId(e, t.targetId).next((function() {
return ji(e).delete(t.targetId)
}
)).next((function() {
return n.oe(e)
}
)).next((function(t) {
return I(t.targetCount > 0),
t.targetCount -= 1,
n.ae(e, t)
}
))
}
}, {
key: "removeTargets",
value: function(e, t, n) {
var r = this
, i = 0
, o = [];
return ji(e).jt((function(a, l) {
var s = ti(l);
s.sequenceNumber <= t && null === n.get(s.targetId) && (i++,
o.push(r.removeTargetData(e, s)))
}
)).next((function() {
return Ir.waitFor(o)
}
)).next((function() {
return i
}
))
}
}, {
key: "forEachTarget",
value: function(e, t) {
return ji(e).jt((function(e, n) {
var r = ti(n);
t(r)
}
))
}
}, {
key: "oe",
value: function(e) {
return ki(e).get(wr.key).next((function(e) {
return I(null !== e),
e
}
))
}
}, {
key: "ae",
value: function(e, t) {
return ki(e).put(wr.key, t)
}
}, {
key: "ce",
value: function(e, t) {
return ji(e).put(ni(this.k, t))
}
}, {
key: "ue",
value: function(e, t) {
var n = !1;
return e.targetId > t.highestTargetId && (t.highestTargetId = e.targetId,
n = !0),
e.sequenceNumber > t.highestListenSequenceNumber && (t.highestListenSequenceNumber = e.sequenceNumber,
n = !0),
n
}
}, {
key: "getTargetCount",
value: function(e) {
return this.oe(e).next((function(e) {
return e.targetCount
}
))
}
}, {
key: "getTargetData",
value: function(e, t) {
var n = Fe(t)
, r = IDBKeyRange.bound([n, Number.NEGATIVE_INFINITY], [n, Number.POSITIVE_INFINITY])
, i = null;
return ji(e).jt({
range: r,
index: jr.queryTargetsIndexName
}, (function(e, n, r) {
var o = ti(n);
Ve(t, o.target) && (i = o,
r.done())
}
)).next((function() {
return i
}
))
}
}, {
key: "addMatchingKeys",
value: function(e, t, n) {
var r = this
, i = []
, o = wi(e);
return t.forEach((function(t) {
var a = cr(t.path);
i.push(o.put(new kr(n,a))),
i.push(r.referenceDelegate.addReference(e, n, t))
}
)),
Ir.waitFor(i)
}
}, {
key: "removeMatchingKeys",
value: function(e, t, n) {
var r = this
, i = wi(e);
return Ir.forEach(t, (function(t) {
var o = cr(t.path);
return Ir.waitFor([i.delete([n, o]), r.referenceDelegate.removeReference(e, n, t)])
}
))
}
}, {
key: "removeMatchingKeysForTargetId",
value: function(e, t) {
var n = wi(e)
, r = IDBKeyRange.bound([t], [t + 1], !1, !0);
return n.delete(r)
}
}, {
key: "getMatchingKeysForTargetId",
value: function(e, t) {
var n = IDBKeyRange.bound([t], [t + 1], !1, !0)
, r = wi(e)
, i = mn();
return r.jt({
range: n,
Kt: !0
}, (function(e, t, n) {
var r = pr(e[1])
, o = new xe(r);
i = i.add(o)
}
)).next((function() {
return i
}
))
}
}, {
key: "containsKey",
value: function(e, t) {
var n = cr(t.path)
, r = IDBKeyRange.bound([n], [J(n)], !1, !0)
, i = 0;
return wi(e).jt({
index: kr.documentTargetsIndex,
Kt: !0,
range: r
}, (function(e, t, n) {
var r = Object(a.a)(e, 2)
, o = r[0];
r[1],
0 !== o && (i++,
n.done())
}
)).next((function() {
return i > 0
}
))
}
}, {
key: "Et",
value: function(e, t) {
return ji(e).get(t).next((function(e) {
return e ? ti(e) : null
}
))
}
}]),
e
}();
function ji(e) {
return qr(e, jr.store)
}
function ki(e) {
return qr(e, wr.store)
}
function wi(e) {
return qr(e, kr.store)
}
function Ci(e) {
return _i.apply(this, arguments)
}
function _i() {
return (_i = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t.code === D.FAILED_PRECONDITION && t.message === Tr) {
e.next = 2;
break
}
throw t;
case 2:
M("LocalStore", "Unexpectedly lost primary lease");
case 3:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Mi(e, t) {
var n = Object(a.a)(e, 2)
, r = n[0]
, i = n[1]
, o = Object(a.a)(t, 2)
, l = o[0]
, s = o[1]
, c = Y(r, l);
return 0 === c ? Y(i, s) : c
}
var Si = function() {
function e(t) {
Object(p.a)(this, e),
this.he = t,
this.buffer = new sn(Mi),
this.le = 0
}
return Object(h.a)(e, [{
key: "fe",
value: function() {
return ++this.le
}
}, {
key: "de",
value: function(e) {
var t = [e, this.fe()];
if (this.buffer.size < this.he)
this.buffer = this.buffer.add(t);
else {
var n = this.buffer.last();
Mi(t, n) < 0 && (this.buffer = this.buffer.delete(n).add(t))
}
}
}, {
key: "maxValue",
get: function() {
return this.buffer.last()[0]
}
}]),
e
}()
, Ai = function() {
function e(t, n) {
Object(p.a)(this, e),
this.garbageCollector = t,
this.asyncQueue = n,
this.we = !1,
this._e = null
}
return Object(h.a)(e, [{
key: "start",
value: function(e) {
-1 !== this.garbageCollector.params.cacheSizeCollectionThreshold && this.me(e)
}
}, {
key: "stop",
value: function() {
this._e && (this._e.cancel(),
this._e = null)
}
}, {
key: "started",
get: function() {
return null !== this._e
}
}, {
key: "me",
value: function(e) {
var t = this
, n = this.we ? 3e5 : 6e4;
M("LruGarbageCollector", "Garbage collection scheduled in ".concat(n, "ms")),
this._e = this.asyncQueue.enqueueAfterDelay("lru_garbage_collection", n, Object(s.a)(b.a.mark((function n() {
return b.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return t._e = null,
t.we = !0,
n.prev = 1,
n.next = 4,
e.collectGarbage(t.garbageCollector);
case 4:
n.next = 14;
break;
case 6:
if (n.prev = 6,
n.t0 = n.catch(1),
!Rr(n.t0)) {
n.next = 12;
break
}
M("LruGarbageCollector", "Ignoring IndexedDB error during garbage collection: ", n.t0),
n.next = 14;
break;
case 12:
return n.next = 14,
Ci(n.t0);
case 14:
return n.next = 16,
t.me(e);
case 16:
case "end":
return n.stop()
}
}
), n, null, [[1, 6]])
}
))))
}
}]),
e
}()
, Ti = function() {
function e(t, n) {
Object(p.a)(this, e),
this.ge = t,
this.params = n
}
return Object(h.a)(e, [{
key: "calculateTargetCount",
value: function(e, t) {
return this.ge.ye(e).next((function(e) {
return Math.floor(t / 100 * e)
}
))
}
}, {
key: "nthSequenceNumber",
value: function(e, t) {
var n = this;
if (0 === t)
return Ir.resolve(X.I);
var r = new Si(t);
return this.ge.forEachTarget(e, (function(e) {
return r.de(e.sequenceNumber)
}
)).next((function() {
return n.ge.pe(e, (function(e) {
return r.de(e)
}
))
}
)).next((function() {
return r.maxValue
}
))
}
}, {
key: "removeTargets",
value: function(e, t, n) {
return this.ge.removeTargets(e, t, n)
}
}, {
key: "removeOrphanedDocuments",
value: function(e, t) {
return this.ge.removeOrphanedDocuments(e, t)
}
}, {
key: "collect",
value: function(e, t) {
var n = this;
return -1 === this.params.cacheSizeCollectionThreshold ? (M("LruGarbageCollector", "Garbage collection skipped; disabled"),
Ir.resolve(di)) : this.getCacheSize(e).next((function(r) {
return r < n.params.cacheSizeCollectionThreshold ? (M("LruGarbageCollector", "Garbage collection skipped; Cache size ".concat(r, " is lower than threshold ").concat(n.params.cacheSizeCollectionThreshold)),
di) : n.Te(e, t)
}
))
}
}, {
key: "getCacheSize",
value: function(e) {
return this.ge.getCacheSize(e)
}
}, {
key: "Te",
value: function(e, t) {
var n, r, i, o, a, l, s, c = this, u = Date.now();
return this.calculateTargetCount(e, this.params.percentileToCollect).next((function(t) {
return t > c.params.maximumSequenceNumbersToCollect ? (M("LruGarbageCollector", "Capping sequence numbers to collect down to the maximum of ".concat(c.params.maximumSequenceNumbersToCollect, " from ").concat(t)),
r = c.params.maximumSequenceNumbersToCollect) : r = t,
o = Date.now(),
c.nthSequenceNumber(e, r)
}
)).next((function(r) {
return n = r,
a = Date.now(),
c.removeTargets(e, n, t)
}
)).next((function(t) {
return i = t,
l = Date.now(),
c.removeOrphanedDocuments(e, n)
}
)).next((function(e) {
return s = Date.now(),
C() <= v.a.DEBUG && M("LruGarbageCollector", "LRU Garbage Collection\n\tCounted targets in ".concat(o - u, "ms\n\tDetermined least recently used ").concat(r, " in ") + (a - o) + "ms\n" + "\tRemoved ".concat(i, " targets in ") + (l - a) + "ms\n" + "\tRemoved ".concat(e, " documents in ") + (s - l) + "ms\n" + "Total Duration: ".concat(s - u, "ms")),
Ir.resolve({
didRun: !0,
sequenceNumbersCollected: r,
targetsRemoved: i,
documentsRemoved: e
})
}
))
}
}]),
e
}()
, Ei = function() {
function e(t, n) {
Object(p.a)(this, e),
this.db = t,
this.garbageCollector = function(e, t) {
return new Ti(e,t)
}(this, n)
}
return Object(h.a)(e, [{
key: "ye",
value: function(e) {
var t = this.Ee(e);
return this.db.getTargetCache().getTargetCount(e).next((function(e) {
return t.next((function(t) {
return e + t
}
))
}
))
}
}, {
key: "Ee",
value: function(e) {
var t = 0;
return this.pe(e, (function(e) {
t++
}
)).next((function() {
return t
}
))
}
}, {
key: "forEachTarget",
value: function(e, t) {
return this.db.getTargetCache().forEachTarget(e, t)
}
}, {
key: "pe",
value: function(e, t) {
return this.Ie(e, (function(e, n) {
return t(n)
}
))
}
}, {
key: "addReference",
value: function(e, t, n) {
return Ii(e, n)
}
}, {
key: "removeReference",
value: function(e, t, n) {
return Ii(e, n)
}
}, {
key: "removeTargets",
value: function(e, t, n) {
return this.db.getTargetCache().removeTargets(e, t, n)
}
}, {
key: "markPotentiallyOrphaned",
value: function(e, t) {
return Ii(e, t)
}
}, {
key: "Ae",
value: function(e, t) {
return function(e, t) {
var n = !1;
return yi(e).Qt((function(r) {
return gi(e, r, t).next((function(e) {
return e && (n = !0),
Ir.resolve(!e)
}
))
}
)).next((function() {
return n
}
))
}(e, t)
}
}, {
key: "removeOrphanedDocuments",
value: function(e, t) {
var n = this
, r = this.db.getRemoteDocumentCache().newChangeBuffer()
, i = []
, o = 0;
return this.Ie(e, (function(a, l) {
if (l <= t) {
var s = n.Ae(e, a).next((function(t) {
if (!t)
return o++,
r.getEntry(e, a).next((function() {
return r.removeEntry(a),
wi(e).delete([0, cr(a.path)])
}
))
}
));
i.push(s)
}
}
)).next((function() {
return Ir.waitFor(i)
}
)).next((function() {
return r.apply(e)
}
)).next((function() {
return o
}
))
}
}, {
key: "removeTarget",
value: function(e, t) {
var n = t.withSequenceNumber(e.currentSequenceNumber);
return this.db.getTargetCache().updateTargetData(e, n)
}
}, {
key: "updateLimboDocument",
value: function(e, t) {
return Ii(e, t)
}
}, {
key: "Ie",
value: function(e, t) {
var n, r = wi(e), i = X.I;
return r.jt({
index: kr.documentTargetsIndex
}, (function(e, r) {
var o = Object(a.a)(e, 2)
, l = o[0]
, s = (o[1],
r.path)
, c = r.sequenceNumber;
0 === l ? (i !== X.I && t(new xe(pr(n)), i),
i = c,
n = s) : i = X.I
}
)).next((function() {
i !== X.I && t(new xe(pr(n)), i)
}
))
}
}, {
key: "getCacheSize",
value: function(e) {
return this.db.getRemoteDocumentCache().getSize(e)
}
}]),
e
}();
function Ii(e, t) {
return wi(e).put(function(e, t) {
return new kr(0,cr(e.path),t)
}(t, e.currentSequenceNumber))
}
var Ni = function() {
function e(t, n) {
Object(p.a)(this, e),
this.mapKeyFn = t,
this.equalsFn = n,
this.inner = {}
}
return Object(h.a)(e, [{
key: "get",
value: function(e) {
var t = this.mapKeyFn(e)
, n = this.inner[t];
if (void 0 !== n) {
var r, i = Object(l.a)(n);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = Object(a.a)(r.value, 2)
, s = o[0]
, c = o[1];
if (this.equalsFn(s, e))
return c
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
}
}
}, {
key: "has",
value: function(e) {
return void 0 !== this.get(e)
}
}, {
key: "set",
value: function(e, t) {
var n = this.mapKeyFn(e)
, r = this.inner[n];
if (void 0 !== r) {
for (var i = 0; i < r.length; i++)
if (this.equalsFn(r[i][0], e))
return void (r[i] = [e, t]);
r.push([e, t])
} else
this.inner[n] = [[e, t]]
}
}, {
key: "delete",
value: function(e) {
var t = this.mapKeyFn(e)
, n = this.inner[t];
if (void 0 === n)
return !1;
for (var r = 0; r < n.length; r++)
if (this.equalsFn(n[r][0], e))
return 1 === n.length ? delete this.inner[t] : n.splice(r, 1),
!0;
return !1
}
}, {
key: "forEach",
value: function(e) {
te(this.inner, (function(t, n) {
var r, i = Object(l.a)(n);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = Object(a.a)(r.value, 2)
, s = o[0]
, c = o[1];
e(s, c)
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
}
))
}
}, {
key: "isEmpty",
value: function() {
return ne(this.inner)
}
}]),
e
}()
, zi = function() {
function e() {
Object(p.a)(this, e),
this.changes = new Ni((function(e) {
return e.toString()
}
),(function(e, t) {
return e.isEqual(t)
}
)),
this.changesApplied = !1
}
return Object(h.a)(e, [{
key: "getReadTime",
value: function(e) {
var t = this.changes.get(e);
return t ? t.readTime : $.min()
}
}, {
key: "addEntry",
value: function(e, t) {
this.assertNotApplied(),
this.changes.set(e.key, {
document: e,
readTime: t
})
}
}, {
key: "removeEntry",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null;
this.assertNotApplied(),
this.changes.set(e, {
document: Re.newInvalidDocument(e),
readTime: t
})
}
}, {
key: "getEntry",
value: function(e, t) {
this.assertNotApplied();
var n = this.changes.get(t);
return void 0 !== n ? Ir.resolve(n.document) : this.getFromCache(e, t)
}
}, {
key: "getEntries",
value: function(e, t) {
return this.getAllFromCache(e, t)
}
}, {
key: "apply",
value: function(e) {
return this.assertNotApplied(),
this.changesApplied = !0,
this.applyChanges(e)
}
}, {
key: "assertNotApplied",
value: function() {}
}]),
e
}()
, Di = function() {
function e(t, n) {
Object(p.a)(this, e),
this.k = t,
this.Jt = n
}
return Object(h.a)(e, [{
key: "addEntry",
value: function(e, t, n) {
return Pi(e).put(Bi(t), n)
}
}, {
key: "removeEntry",
value: function(e, t) {
var n = Pi(e)
, r = Bi(t);
return n.delete(r)
}
}, {
key: "updateMetadata",
value: function(e, t) {
var n = this;
return this.getMetadata(e).next((function(r) {
return r.byteSize += t,
n.Re(e, r)
}
))
}
}, {
key: "getEntry",
value: function(e, t) {
var n = this;
return Pi(e).get(Bi(t)).next((function(e) {
return n.be(t, e)
}
))
}
}, {
key: "Pe",
value: function(e, t) {
var n = this;
return Pi(e).get(Bi(t)).next((function(e) {
return {
document: n.be(t, e),
size: fi(e)
}
}
))
}
}, {
key: "getEntries",
value: function(e, t) {
var n = this
, r = dn();
return this.ve(e, t, (function(e, t) {
var i = n.be(e, t);
r = r.insert(e, i)
}
)).next((function() {
return r
}
))
}
}, {
key: "Ve",
value: function(e, t) {
var n = this
, r = dn()
, i = new on(xe.comparator);
return this.ve(e, t, (function(e, t) {
var o = n.be(e, t);
r = r.insert(e, o),
i = i.insert(e, fi(t))
}
)).next((function() {
return {
documents: r,
Se: i
}
}
))
}
}, {
key: "ve",
value: function(e, t, n) {
if (t.isEmpty())
return Ir.resolve();
var r = IDBKeyRange.bound(t.first().path.toArray(), t.last().path.toArray())
, i = t.getIterator()
, o = i.getNext();
return Pi(e).jt({
range: r
}, (function(e, t, r) {
for (var a = xe.fromSegments(e); o && xe.comparator(o, a) < 0; )
n(o, null),
o = i.getNext();
o && o.isEqual(a) && (n(o, t),
o = i.hasNext() ? i.getNext() : null),
o ? r.Lt(o.path.toArray()) : r.done()
}
)).next((function() {
for (; o; )
n(o, null),
o = i.hasNext() ? i.getNext() : null
}
))
}
}, {
key: "getDocumentsMatchingQuery",
value: function(e, t, n) {
var r = this
, i = dn()
, o = t.path.length + 1
, a = {};
if (n.isEqual($.min())) {
var l = t.path.toArray();
a.range = IDBKeyRange.lowerBound(l)
} else {
var s = t.path.toArray()
, c = Qr(n);
a.range = IDBKeyRange.lowerBound([s, c], !0),
a.index = xr.collectionReadTimeIndex
}
return Pi(e).jt(a, (function(e, n, a) {
if (e.length === o) {
var l = Kr(r.k, n);
t.path.isPrefixOf(l.key.path) ? vt(t, l) && (i = i.insert(l.key, l)) : a.done()
}
}
)).next((function() {
return i
}
))
}
}, {
key: "newChangeBuffer",
value: function(e) {
return new Li(this,!!e && e.trackRemovals)
}
}, {
key: "getSize",
value: function(e) {
return this.getMetadata(e).next((function(e) {
return e.byteSize
}
))
}
}, {
key: "getMetadata",
value: function(e) {
return Ri(e).get(Or.key).next((function(e) {
return I(!!e),
e
}
))
}
}, {
key: "Re",
value: function(e, t) {
return Ri(e).put(Or.key, t)
}
}, {
key: "be",
value: function(e, t) {
if (t) {
var n = Kr(this.k, t);
if (!n.isNoDocument() || !n.version.isEqual($.min()))
return n
}
return Re.newInvalidDocument(e)
}
}]),
e
}()
, Li = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this)).De = e,
i.trackRemovals = r,
i.Ce = new Ni((function(e) {
return e.toString()
}
),(function(e, t) {
return e.isEqual(t)
}
)),
i
}
return Object(h.a)(n, [{
key: "applyChanges",
value: function(e) {
var t = this
, n = []
, r = 0
, i = new sn((function(e, t) {
return Y(e.canonicalString(), t.canonicalString())
}
));
return this.changes.forEach((function(o, a) {
var l = t.Ce.get(o);
if (a.document.isValidDocument()) {
var s = Yr(t.De.k, a.document, t.getReadTime(o));
i = i.add(o.path.popLast());
var c = fi(s);
r += c - l,
n.push(t.De.addEntry(e, o, s))
} else if (r -= l,
t.trackRemovals) {
var u = Yr(t.De.k, Re.newNoDocument(o, $.min()), t.getReadTime(o));
n.push(t.De.addEntry(e, o, u))
} else
n.push(t.De.removeEntry(e, o))
}
)),
i.forEach((function(r) {
n.push(t.De.Jt.addToCollectionParentIndex(e, r))
}
)),
n.push(this.De.updateMetadata(e, r)),
Ir.waitFor(n)
}
}, {
key: "getFromCache",
value: function(e, t) {
var n = this;
return this.De.Pe(e, t).next((function(e) {
return n.Ce.set(t, e.size),
e.document
}
))
}
}, {
key: "getAllFromCache",
value: function(e, t) {
var n = this;
return this.De.Ve(e, t).next((function(e) {
var t = e.documents;
return e.Se.forEach((function(e, t) {
n.Ce.set(e, t)
}
)),
t
}
))
}
}]),
n
}(zi);
function Ri(e) {
return qr(e, Or.store)
}
function Pi(e) {
return qr(e, xr.store)
}
function Bi(e) {
return e.path.toArray()
}
var Fi = function() {
function e(t) {
Object(p.a)(this, e),
this.k = t
}
return Object(h.a)(e, [{
key: "Nt",
value: function(e, t, n, r) {
var i = this;
I(n < r && n >= 0 && r <= 11);
var o = new Nr("createOrUpgrade",t);
n < 1 && r >= 1 && (function(e) {
e.createObjectStore(fr.store)
}(e),
function(e) {
e.createObjectStore(br.store, {
keyPath: br.keyPath
}),
e.createObjectStore(gr.store, {
keyPath: gr.keyPath,
autoIncrement: !0
}).createIndex(gr.userMutationsIndex, gr.userMutationsKeyPath, {
unique: !0
}),
e.createObjectStore(mr.store)
}(e),
Vi(e),
function(e) {
e.createObjectStore(xr.store)
}(e));
var a = Ir.resolve();
return n < 3 && r >= 3 && (0 !== n && (function(e) {
e.deleteObjectStore(kr.store),
e.deleteObjectStore(jr.store),
e.deleteObjectStore(wr.store)
}(e),
Vi(e)),
a = a.next((function() {
return function(e) {
var t = e.store(wr.store)
, n = new wr(0,0,$.min().toTimestamp(),0);
return t.put(wr.key, n)
}(o)
}
))),
n < 4 && r >= 4 && (0 !== n && (a = a.next((function() {
return function(e, t) {
return t.store(gr.store).Bt().next((function(n) {
e.deleteObjectStore(gr.store),
e.createObjectStore(gr.store, {
keyPath: gr.keyPath,
autoIncrement: !0
}).createIndex(gr.userMutationsIndex, gr.userMutationsKeyPath, {
unique: !0
});
var r = t.store(gr.store)
, i = n.map((function(e) {
return r.put(e)
}
));
return Ir.waitFor(i)
}
))
}(e, o)
}
))),
a = a.next((function() {
!function(e) {
e.createObjectStore(_r.store, {
keyPath: _r.keyPath
})
}(e)
}
))),
n < 5 && r >= 5 && (a = a.next((function() {
return i.Ne(o)
}
))),
n < 6 && r >= 6 && (a = a.next((function() {
return function(e) {
e.createObjectStore(Or.store)
}(e),
i.ke(o)
}
))),
n < 7 && r >= 7 && (a = a.next((function() {
return i.xe(o)
}
))),
n < 8 && r >= 8 && (a = a.next((function() {
return i.$e(e, o)
}
))),
n < 9 && r >= 9 && (a = a.next((function() {
!function(e) {
e.objectStoreNames.contains("remoteDocumentChanges") && e.deleteObjectStore("remoteDocumentChanges")
}(e),
function(e) {
var t = e.objectStore(xr.store);
t.createIndex(xr.readTimeIndex, xr.readTimeIndexPath, {
unique: !1
}),
t.createIndex(xr.collectionReadTimeIndex, xr.collectionReadTimeIndexPath, {
unique: !1
})
}(t)
}
))),
n < 10 && r >= 10 && (a = a.next((function() {
return i.Oe(o)
}
))),
n < 11 && r >= 11 && (a = a.next((function() {
!function(e) {
e.createObjectStore(Mr.store, {
keyPath: Mr.keyPath
})
}(e),
function(e) {
e.createObjectStore(Sr.store, {
keyPath: Sr.keyPath
})
}(e)
}
))),
a
}
}, {
key: "ke",
value: function(e) {
var t = 0;
return e.store(xr.store).jt((function(e, n) {
t += fi(n)
}
)).next((function() {
var n = new Or(t);
return e.store(Or.store).put(Or.key, n)
}
))
}
}, {
key: "Ne",
value: function(e) {
var t = this
, n = e.store(br.store)
, r = e.store(gr.store);
return n.Bt().next((function(n) {
return Ir.forEach(n, (function(n) {
var i = IDBKeyRange.bound([n.userId, -1], [n.userId, n.lastAcknowledgedBatchId]);
return r.Bt(gr.userMutationsIndex, i).next((function(r) {
return Ir.forEach(r, (function(r) {
I(r.userId === n.userId);
var i = ei(t.k, r);
return hi(e, n.userId, i).next((function() {}
))
}
))
}
))
}
))
}
))
}
}, {
key: "xe",
value: function(e) {
var t = e.store(kr.store)
, n = e.store(xr.store);
return e.store(wr.store).get(wr.key).next((function(e) {
var r = [];
return n.jt((function(n, i) {
var o = new ie(n)
, a = function(e) {
return [0, cr(e)]
}(o);
r.push(t.get(a).next((function(n) {
return n ? Ir.resolve() : function(n) {
return t.put(new kr(0,cr(n),e.highestListenSequenceNumber))
}(o)
}
)))
}
)).next((function() {
return Ir.waitFor(r)
}
))
}
))
}
}, {
key: "$e",
value: function(e, t) {
e.createObjectStore(Cr.store, {
keyPath: Cr.keyPath
});
var n = t.store(Cr.store)
, r = new si
, i = function(e) {
if (r.add(e)) {
var t = e.lastSegment()
, i = e.popLast();
return n.put({
collectionId: t,
parent: cr(i)
})
}
};
return t.store(xr.store).jt({
Kt: !0
}, (function(e, t) {
var n = new ie(e);
return i(n.popLast())
}
)).next((function() {
return t.store(mr.store).jt({
Kt: !0
}, (function(e, t) {
var n = Object(a.a)(e, 3)
, r = (n[0],
n[1])
, o = (n[2],
pr(r));
return i(o.popLast())
}
))
}
))
}
}, {
key: "Oe",
value: function(e) {
var t = this
, n = e.store(jr.store);
return n.jt((function(e, r) {
var i = ti(r)
, o = ni(t.k, i);
return n.put(o)
}
))
}
}]),
e
}();
function Vi(e) {
e.createObjectStore(kr.store, {
keyPath: kr.keyPath
}).createIndex(kr.documentTargetsIndex, kr.documentTargetsKeyPath, {
unique: !0
}),
e.createObjectStore(jr.store, {
keyPath: jr.keyPath
}).createIndex(jr.queryTargetsIndexName, jr.queryTargetsKeyPath, {
unique: !0
}),
e.createObjectStore(wr.store)
}
var Wi = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time."
, qi = function() {
function e(t, n, r, i, o, a, l, s, c, u) {
if (Object(p.a)(this, e),
this.allowTabSynchronization = t,
this.persistenceKey = n,
this.clientId = r,
this.Fe = o,
this.window = a,
this.document = l,
this.Me = c,
this.Le = u,
this.Be = null,
this.Ue = !1,
this.isPrimary = !1,
this.networkEnabled = !0,
this.qe = null,
this.inForeground = !1,
this.Ke = null,
this.je = null,
this.Qe = Number.NEGATIVE_INFINITY,
this.We = function(e) {
return Promise.resolve()
}
,
!e.Pt())
throw new L(D.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
this.referenceDelegate = new Ei(this,i),
this.Ge = n + "main",
this.k = new Gr(s),
this.ze = new zr(this.Ge,11,new Fi(this.k)),
this.He = new Oi(this.referenceDelegate,this.k),
this.Jt = new ci,
this.Je = function(e, t) {
return new Di(e,t)
}(this.k, this.Jt),
this.Ye = new ii,
this.window && this.window.localStorage ? this.Xe = this.window.localStorage : (this.Xe = null,
!1 === u && S("IndexedDbPersistence", "LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))
}
return Object(h.a)(e, [{
key: "start",
value: function() {
var e = this;
return this.Ze().then((function() {
if (!e.isPrimary && !e.allowTabSynchronization)
throw new L(D.FAILED_PRECONDITION,Wi);
return e.tn(),
e.en(),
e.nn(),
e.runTransaction("getHighestListenSequenceNumber", "readonly", (function(t) {
return e.He.getHighestSequenceNumber(t)
}
))
}
)).then((function(t) {
e.Be = new X(t,e.Me)
}
)).then((function() {
e.Ue = !0
}
)).catch((function(t) {
return e.ze && e.ze.close(),
Promise.reject(t)
}
))
}
}, {
key: "sn",
value: function(e) {
var t = this;
return this.We = function() {
var n = Object(s.a)(b.a.mark((function n(r) {
return b.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
if (!t.started) {
n.next = 2;
break
}
return n.abrupt("return", e(r));
case 2:
case "end":
return n.stop()
}
}
), n)
}
)));
return function(e) {
return n.apply(this, arguments)
}
}(),
e(this.isPrimary)
}
}, {
key: "setDatabaseDeletedListener",
value: function(e) {
this.ze.xt(function() {
var t = Object(s.a)(b.a.mark((function t(n) {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
if (t.t0 = null === n.newVersion,
!t.t0) {
t.next = 4;
break
}
return t.next = 4,
e();
case 4:
case "end":
return t.stop()
}
}
), t)
}
)));
return function(e) {
return t.apply(this, arguments)
}
}())
}
}, {
key: "setNetworkEnabled",
value: function(e) {
var t = this;
this.networkEnabled !== e && (this.networkEnabled = e,
this.Fe.enqueueAndForget(Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = t.started,
!e.t0) {
e.next = 4;
break
}
return e.next = 4,
t.Ze();
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))))
}
}, {
key: "Ze",
value: function() {
var e = this;
return this.runTransaction("updateClientMetadataAndTryBecomePrimary", "readwrite", (function(t) {
return Ui(t).put(new _r(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function() {
if (e.isPrimary)
return e.rn(t).next((function(t) {
t || (e.isPrimary = !1,
e.Fe.enqueueRetryable((function() {
return e.We(!1)
}
)))
}
))
}
)).next((function() {
return e.on(t)
}
)).next((function(n) {
return e.isPrimary && !n ? e.an(t).next((function() {
return !1
}
)) : !!n && e.cn(t).next((function() {
return !0
}
))
}
))
}
)).catch((function(t) {
if (Rr(t))
return M("IndexedDbPersistence", "Failed to extend owner lease: ", t),
e.isPrimary;
if (!e.allowTabSynchronization)
throw t;
return M("IndexedDbPersistence", "Releasing owner lease after error during lease refresh", t),
!1
}
)).then((function(t) {
e.isPrimary !== t && e.Fe.enqueueRetryable((function() {
return e.We(t)
}
)),
e.isPrimary = t
}
))
}
}, {
key: "rn",
value: function(e) {
var t = this;
return Hi(e).get(fr.key).next((function(e) {
return Ir.resolve(t.un(e))
}
))
}
}, {
key: "hn",
value: function(e) {
return Ui(e).delete(this.clientId)
}
}, {
key: "ln",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n, r, i, o = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this.isPrimary || this.fn(this.Qe, 18e5)) {
e.next = 6;
break
}
return this.Qe = Date.now(),
e.next = 4,
this.runTransaction("maybeGarbageCollectMultiClientState", "readwrite-primary", (function(e) {
var t = qr(e, _r.store);
return t.Bt().next((function(e) {
var n = o.dn(e, 18e5)
, r = e.filter((function(e) {
return -1 === n.indexOf(e)
}
));
return Ir.forEach(r, (function(e) {
return t.delete(e.clientId)
}
)).next((function() {
return r
}
))
}
))
}
)).catch((function() {
return []
}
));
case 4:
if (t = e.sent,
this.Xe) {
n = Object(l.a)(t);
try {
for (n.s(); !(r = n.n()).done; )
i = r.value,
this.Xe.removeItem(this.wn(i.clientId))
} catch (e) {
n.e(e)
} finally {
n.f()
}
}
case 6:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "nn",
value: function() {
var e = this;
this.je = this.Fe.enqueueAfterDelay("client_metadata_refresh", 4e3, (function() {
return e.Ze().then((function() {
return e.ln()
}
)).then((function() {
return e.nn()
}
))
}
))
}
}, {
key: "un",
value: function(e) {
return !!e && e.ownerId === this.clientId
}
}, {
key: "on",
value: function(e) {
var t = this;
return this.Le ? Ir.resolve(!0) : Hi(e).get(fr.key).next((function(n) {
if (null !== n && t.fn(n.leaseTimestampMs, 5e3) && !t._n(n.ownerId)) {
if (t.un(n) && t.networkEnabled)
return !0;
if (!t.un(n)) {
if (!n.allowTabSynchronization)
throw new L(D.FAILED_PRECONDITION,Wi);
return !1
}
}
return !(!t.networkEnabled || !t.inForeground) || Ui(e).Bt().next((function(e) {
return void 0 === t.dn(e, 5e3).find((function(e) {
if (t.clientId !== e.clientId) {
var n = !t.networkEnabled && e.networkEnabled
, r = !t.inForeground && e.inForeground
, i = t.networkEnabled === e.networkEnabled;
if (n || r && i)
return !0
}
return !1
}
))
}
))
}
)).next((function(e) {
return t.isPrimary !== e && M("IndexedDbPersistence", "Client ".concat(e ? "is" : "is not", " eligible for a primary lease.")),
e
}
))
}
}, {
key: "shutdown",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.Ue = !1,
this.mn(),
this.je && (this.je.cancel(),
this.je = null),
this.gn(),
this.yn(),
e.next = 7,
this.ze.runTransaction("shutdown", "readwrite", [fr.store, _r.store], (function(e) {
var n = new Wr(e,X.I);
return t.an(n).next((function() {
return t.hn(n)
}
))
}
));
case 7:
this.ze.close(),
this.pn();
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "dn",
value: function(e, t) {
var n = this;
return e.filter((function(e) {
return n.fn(e.updateTimeMs, t) && !n._n(e.clientId)
}
))
}
}, {
key: "Tn",
value: function() {
var e = this;
return this.runTransaction("getActiveClients", "readonly", (function(t) {
return Ui(t).Bt().next((function(t) {
return e.dn(t, 18e5).map((function(e) {
return e.clientId
}
))
}
))
}
))
}
}, {
key: "started",
get: function() {
return this.Ue
}
}, {
key: "getMutationQueue",
value: function(e) {
return bi.Xt(e, this.k, this.Jt, this.referenceDelegate)
}
}, {
key: "getTargetCache",
value: function() {
return this.He
}
}, {
key: "getRemoteDocumentCache",
value: function() {
return this.Je
}
}, {
key: "getIndexManager",
value: function() {
return this.Jt
}
}, {
key: "getBundleCache",
value: function() {
return this.Ye
}
}, {
key: "runTransaction",
value: function(e, t, n) {
var r = this;
M("IndexedDbPersistence", "Starting transaction:", e);
var i, o = "readonly" === t ? "readonly" : "readwrite";
return this.ze.runTransaction(e, o, Ar, (function(o) {
return i = new Wr(o,r.Be ? r.Be.next() : X.I),
"readwrite-primary" === t ? r.rn(i).next((function(e) {
return !!e || r.on(i)
}
)).next((function(t) {
if (!t)
throw S("Failed to obtain primary lease for action '".concat(e, "'.")),
r.isPrimary = !1,
r.Fe.enqueueRetryable((function() {
return r.We(!1)
}
)),
new L(D.FAILED_PRECONDITION,Tr);
return n(i)
}
)).next((function(e) {
return r.cn(i).next((function() {
return e
}
))
}
)) : r.En(i).next((function() {
return n(i)
}
))
}
)).then((function(e) {
return i.raiseOnCommittedEvent(),
e
}
))
}
}, {
key: "En",
value: function(e) {
var t = this;
return Hi(e).get(fr.key).next((function(e) {
if (null !== e && t.fn(e.leaseTimestampMs, 5e3) && !t._n(e.ownerId) && !t.un(e) && !(t.Le || t.allowTabSynchronization && e.allowTabSynchronization))
throw new L(D.FAILED_PRECONDITION,Wi)
}
))
}
}, {
key: "cn",
value: function(e) {
var t = new fr(this.clientId,this.allowTabSynchronization,Date.now());
return Hi(e).put(fr.key, t)
}
}, {
key: "an",
value: function(e) {
var t = this
, n = Hi(e);
return n.get(fr.key).next((function(e) {
return t.un(e) ? (M("IndexedDbPersistence", "Releasing primary lease."),
n.delete(fr.key)) : Ir.resolve()
}
))
}
}, {
key: "fn",
value: function(e, t) {
var n = Date.now();
return !(e < n - t || e > n && (S("Detected an update time that is in the future: ".concat(e, " > ").concat(n)),
1))
}
}, {
key: "tn",
value: function() {
var e = this;
null !== this.document && "function" == typeof this.document.addEventListener && (this.Ke = function() {
e.Fe.enqueueAndForget((function() {
return e.inForeground = "visible" === e.document.visibilityState,
e.Ze()
}
))
}
,
this.document.addEventListener("visibilitychange", this.Ke),
this.inForeground = "visible" === this.document.visibilityState)
}
}, {
key: "gn",
value: function() {
this.Ke && (this.document.removeEventListener("visibilitychange", this.Ke),
this.Ke = null)
}
}, {
key: "en",
value: function() {
var e, t = this;
"function" == typeof (null === (e = this.window) || void 0 === e ? void 0 : e.addEventListener) && (this.qe = function() {
t.mn(),
Object(y.v)() && navigator.appVersion.match(/Version\/1[45]/) && t.Fe.enterRestrictedMode(!0),
t.Fe.enqueueAndForget((function() {
return t.shutdown()
}
))
}
,
this.window.addEventListener("pagehide", this.qe))
}
}, {
key: "yn",
value: function() {
this.qe && (this.window.removeEventListener("pagehide", this.qe),
this.qe = null)
}
}, {
key: "_n",
value: function(e) {
var t;
try {
var n = null !== (null === (t = this.Xe) || void 0 === t ? void 0 : t.getItem(this.wn(e)));
return M("IndexedDbPersistence", "Client '".concat(e, "' ").concat(n ? "is" : "is not", " zombied in LocalStorage")),
n
} catch (e) {
return S("IndexedDbPersistence", "Failed to get zombied client id.", e),
!1
}
}
}, {
key: "mn",
value: function() {
if (this.Xe)
try {
this.Xe.setItem(this.wn(this.clientId), String(Date.now()))
} catch (e) {
S("Failed to set zombie client id.", e)
}
}
}, {
key: "pn",
value: function() {
if (this.Xe)
try {
this.Xe.removeItem(this.wn(this.clientId))
} catch (e) {}
}
}, {
key: "wn",
value: function(e) {
return "firestore_zombie_".concat(this.persistenceKey, "_").concat(e)
}
}], [{
key: "Pt",
value: function() {
return zr.Pt()
}
}]),
e
}();
function Hi(e) {
return qr(e, fr.store)
}
function Ui(e) {
return qr(e, _r.store)
}
function Xi(e, t) {
var n = e.projectId;
return e.isDefaultDatabase || (n += "." + e.database),
"firestore/" + t + "/" + n + "/"
}
var Gi = Object(h.a)((function e(t, n) {
Object(p.a)(this, e),
this.progress = t,
this.In = n
}
))
, Ki = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.Je = t,
this.An = n,
this.Jt = r
}
return Object(h.a)(e, [{
key: "Rn",
value: function(e, t) {
var n = this;
return this.An.getAllMutationBatchesAffectingDocumentKey(e, t).next((function(r) {
return n.bn(e, t, r)
}
))
}
}, {
key: "bn",
value: function(e, t, n) {
return this.Je.getEntry(e, t).next((function(e) {
var t, r = Object(l.a)(n);
try {
for (r.s(); !(t = r.n()).done; )
t.value.applyToLocalView(e)
} catch (e) {
r.e(e)
} finally {
r.f()
}
return e
}
))
}
}, {
key: "Pn",
value: function(e, t) {
e.forEach((function(e, n) {
var r, i = Object(l.a)(t);
try {
for (i.s(); !(r = i.n()).done; )
r.value.applyToLocalView(n)
} catch (e) {
i.e(e)
} finally {
i.f()
}
}
))
}
}, {
key: "vn",
value: function(e, t) {
var n = this;
return this.Je.getEntries(e, t).next((function(t) {
return n.Vn(e, t).next((function() {
return t
}
))
}
))
}
}, {
key: "Vn",
value: function(e, t) {
var n = this;
return this.An.getAllMutationBatchesAffectingDocumentKeys(e, t).next((function(e) {
return n.Pn(t, e)
}
))
}
}, {
key: "getDocumentsMatchingQuery",
value: function(e, t, n) {
return function(e) {
return xe.isDocumentKey(e.path) && null === e.collectionGroup && 0 === e.filters.length
}(t) ? this.Sn(e, t.path) : dt(t) ? this.Dn(e, t, n) : this.Cn(e, t, n)
}
}, {
key: "Sn",
value: function(e, t) {
return this.Rn(e, new xe(t)).next((function(e) {
var t = hn();
return e.isFoundDocument() && (t = t.insert(e.key, e)),
t
}
))
}
}, {
key: "Dn",
value: function(e, t, n) {
var r = this
, i = t.collectionGroup
, o = hn();
return this.Jt.getCollectionParents(e, i).next((function(a) {
return Ir.forEach(a, (function(a) {
var l = function(e, t) {
return new it(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)
}(t, a.child(i));
return r.Cn(e, l, n).next((function(e) {
e.forEach((function(e, t) {
o = o.insert(e, t)
}
))
}
))
}
)).next((function() {
return o
}
))
}
))
}
}, {
key: "Cn",
value: function(e, t, n) {
var r, i, o = this;
return this.Je.getDocumentsMatchingQuery(e, t, n).next((function(n) {
return r = n,
o.An.getAllMutationBatchesAffectingQuery(e, t)
}
)).next((function(t) {
return i = t,
o.Nn(e, i, r).next((function(e) {
r = e;
var t, n = Object(l.a)(i);
try {
for (n.s(); !(t = n.n()).done; ) {
var o, a = t.value, s = Object(l.a)(a.mutations);
try {
for (s.s(); !(o = s.n()).done; ) {
var c = o.value
, u = c.key
, d = r.get(u);
null == d && (d = Re.newInvalidDocument(u),
r = r.insert(u, d)),
Wt(c, d, a.localWriteTime),
d.isFoundDocument() || (r = r.remove(u))
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
}
} catch (e) {
n.e(e)
} finally {
n.f()
}
}
))
}
)).next((function() {
return r.forEach((function(e, n) {
vt(t, n) || (r = r.remove(e))
}
)),
r
}
))
}
}, {
key: "Nn",
value: function(e, t, n) {
var r, i = mn(), o = Object(l.a)(t);
try {
for (o.s(); !(r = o.n()).done; ) {
var a, s = r.value, c = Object(l.a)(s.mutations);
try {
for (c.s(); !(a = c.n()).done; ) {
var u = a.value;
u instanceof Gt && null === n.get(u.key) && (i = i.add(u.key))
}
} catch (e) {
c.e(e)
} finally {
c.f()
}
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
var d = n;
return this.Je.getEntries(e, i).next((function(e) {
return e.forEach((function(e, t) {
t.isFoundDocument() && (d = d.insert(e, t))
}
)),
d
}
))
}
}]),
e
}()
, Yi = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.targetId = t,
this.fromCache = n,
this.kn = r,
this.xn = i
}
return Object(h.a)(e, null, [{
key: "$n",
value: function(t, n) {
var r, i = mn(), o = mn(), a = Object(l.a)(n.docChanges);
try {
for (a.s(); !(r = a.n()).done; ) {
var s = r.value;
switch (s.type) {
case 0:
i = i.add(s.doc.key);
break;
case 1:
o = o.add(s.doc.key)
}
}
} catch (e) {
a.e(e)
} finally {
a.f()
}
return new e(t,n.fromCache,i,o)
}
}]),
e
}()
, Qi = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, [{
key: "On",
value: function(e) {
this.Fn = e
}
}, {
key: "getDocumentsMatchingQuery",
value: function(e, t, n, r) {
var i = this;
return function(e) {
return 0 === e.filters.length && null === e.limit && null == e.startAt && null == e.endAt && (0 === e.explicitOrderBy.length || 1 === e.explicitOrderBy.length && e.explicitOrderBy[0].field.isKeyField())
}(t) || n.isEqual($.min()) ? this.Mn(e, t) : this.Fn.vn(e, r).next((function(o) {
var a = i.Ln(t, o);
return (lt(t) || st(t)) && i.Bn(t.limitType, a, r, n) ? i.Mn(e, t) : (C() <= v.a.DEBUG && M("QueryEngine", "Re-using previous result from %s to execute query: %s", n.toString(), mt(t)),
i.Fn.getDocumentsMatchingQuery(e, t, n).next((function(e) {
return a.forEach((function(t) {
e = e.insert(t.key, t)
}
)),
e
}
)))
}
))
}
}, {
key: "Ln",
value: function(e, t) {
var n = new sn(yt(e));
return t.forEach((function(t, r) {
vt(e, r) && (n = n.add(r))
}
)),
n
}
}, {
key: "Bn",
value: function(e, t, n, r) {
if (n.size !== t.size)
return !0;
var i = "F" === e ? t.last() : t.first();
return !!i && (i.hasPendingWrites || i.version.compareTo(r) > 0)
}
}, {
key: "Mn",
value: function(e, t) {
return C() <= v.a.DEBUG && M("QueryEngine", "Using full collection scan to execute query:", mt(t)),
this.Fn.getDocumentsMatchingQuery(e, t, $.min())
}
}]),
e
}()
, Ji = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.persistence = t,
this.Un = n,
this.k = i,
this.qn = new on(Y),
this.Kn = new Ni((function(e) {
return Fe(e)
}
),Ve),
this.jn = $.min(),
this.An = t.getMutationQueue(r),
this.Qn = t.getRemoteDocumentCache(),
this.He = t.getTargetCache(),
this.Wn = new Ki(this.Qn,this.An,this.persistence.getIndexManager()),
this.Ye = t.getBundleCache(),
this.Un.On(this.Wn)
}
return Object(h.a)(e, [{
key: "collectGarbage",
value: function(e) {
var t = this;
return this.persistence.runTransaction("Collect garbage", "readwrite-primary", (function(n) {
return e.collect(n, t.qn)
}
))
}
}]),
e
}();
function Zi(e, t, n, r) {
return new Ji(e,t,n,r)
}
function $i(e, t) {
return eo.apply(this, arguments)
}
function eo() {
return (eo = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
i = r.An,
o = r.Wn,
e.next = 4,
r.persistence.runTransaction("Handle user change", "readonly", (function(e) {
var t;
return r.An.getAllMutationBatches(e).next((function(a) {
return t = a,
i = r.persistence.getMutationQueue(n),
o = new Ki(r.Qn,i,r.persistence.getIndexManager()),
i.getAllMutationBatches(e)
}
)).next((function(n) {
var r, i = [], a = [], s = mn(), c = Object(l.a)(t);
try {
for (c.s(); !(r = c.n()).done; ) {
var u = r.value;
i.push(u.batchId);
var d, p = Object(l.a)(u.mutations);
try {
for (p.s(); !(d = p.n()).done; ) {
var h = d.value;
s = s.add(h.key)
}
} catch (e) {
p.e(e)
} finally {
p.f()
}
}
} catch (e) {
c.e(e)
} finally {
c.f()
}
var f, b = Object(l.a)(n);
try {
for (b.s(); !(f = b.n()).done; ) {
var g = f.value;
a.push(g.batchId);
var m, v = Object(l.a)(g.mutations);
try {
for (v.s(); !(m = v.n()).done; ) {
var y = m.value;
s = s.add(y.key)
}
} catch (e) {
v.e(e)
} finally {
v.f()
}
}
} catch (e) {
b.e(e)
} finally {
b.f()
}
return o.vn(e, s).next((function(e) {
return {
Gn: e,
removedBatchIds: i,
addedBatchIds: a
}
}
))
}
))
}
));
case 4:
return a = e.sent,
e.abrupt("return", (r.An = i,
r.Wn = o,
r.Un.On(r.Wn),
a));
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function to(e, t) {
var n = z(e);
return n.persistence.runTransaction("Acknowledge batch", "readwrite-primary", (function(e) {
var r = t.batch.keys()
, i = n.Qn.newChangeBuffer({
trackRemovals: !0
});
return function(e, t, n, r) {
var i = n.batch
, o = i.keys()
, a = Ir.resolve();
return o.forEach((function(e) {
a = a.next((function() {
return r.getEntry(t, e)
}
)).next((function(t) {
var o = n.docVersions.get(e);
I(null !== o),
t.version.compareTo(o) < 0 && (i.applyToRemoteDocument(t, n),
t.isValidDocument() && r.addEntry(t, n.commitVersion))
}
))
}
)),
a.next((function() {
return e.An.removeMutationBatch(t, i)
}
))
}(n, e, t, i).next((function() {
return i.apply(e)
}
)).next((function() {
return n.An.performConsistencyCheck(e)
}
)).next((function() {
return n.Wn.vn(e, r)
}
))
}
))
}
function no(e) {
var t = z(e);
return t.persistence.runTransaction("Get last remote snapshot version", "readonly", (function(e) {
return t.He.getLastRemoteSnapshotVersion(e)
}
))
}
function ro(e, t) {
var n = z(e)
, r = t.snapshotVersion
, i = n.qn;
return n.persistence.runTransaction("Apply remote event", "readwrite-primary", (function(e) {
var o = n.Qn.newChangeBuffer({
trackRemovals: !0
});
i = n.qn;
var a = [];
t.targetChanges.forEach((function(o, l) {
var s = i.get(l);
if (s) {
a.push(n.He.removeMatchingKeys(e, o.removedDocuments, l).next((function() {
return n.He.addMatchingKeys(e, o.addedDocuments, l)
}
)));
var c = s.withSequenceNumber(e.currentSequenceNumber);
t.targetMismatches.has(l) ? c = c.withResumeToken(ce.EMPTY_BYTE_STRING, $.min()).withLastLimboFreeSnapshotVersion($.min()) : o.resumeToken.approximateByteSize() > 0 && (c = c.withResumeToken(o.resumeToken, r)),
i = i.insert(l, c),
function(e, t, n) {
return 0 === e.resumeToken.approximateByteSize() || t.snapshotVersion.toMicroseconds() - e.snapshotVersion.toMicroseconds() >= 3e8 || n.addedDocuments.size + n.modifiedDocuments.size + n.removedDocuments.size > 0
}(s, c, o) && a.push(n.He.updateTargetData(e, c))
}
}
));
var l = dn();
if (t.documentUpdates.forEach((function(r, i) {
t.resolvedLimboDocuments.has(r) && a.push(n.persistence.referenceDelegate.updateLimboDocument(e, r))
}
)),
a.push(io(e, o, t.documentUpdates, r, void 0).next((function(e) {
l = e
}
))),
!r.isEqual($.min())) {
var s = n.He.getLastRemoteSnapshotVersion(e).next((function(t) {
return n.He.setTargetsMetadata(e, e.currentSequenceNumber, r)
}
));
a.push(s)
}
return Ir.waitFor(a).next((function() {
return o.apply(e)
}
)).next((function() {
return n.Wn.Vn(e, l)
}
)).next((function() {
return l
}
))
}
)).then((function(e) {
return n.qn = i,
e
}
))
}
function io(e, t, n, r, i) {
var o = mn();
return n.forEach((function(e) {
return o = o.add(e)
}
)),
t.getEntries(e, o).next((function(e) {
var o = dn();
return n.forEach((function(n, a) {
var l = e.get(n)
, s = (null == i ? void 0 : i.get(n)) || r;
a.isNoDocument() && a.version.isEqual($.min()) ? (t.removeEntry(n, s),
o = o.insert(n, a)) : !l.isValidDocument() || a.version.compareTo(l.version) > 0 || 0 === a.version.compareTo(l.version) && l.hasPendingWrites ? (t.addEntry(a, s),
o = o.insert(n, a)) : M("LocalStore", "Ignoring outdated watch update for ", n, ". Current version:", l.version, " Watch version:", a.version)
}
)),
o
}
))
}
function oo(e, t) {
var n = z(e);
return n.persistence.runTransaction("Get next mutation batch", "readonly", (function(e) {
return void 0 === t && (t = -1),
n.An.getNextMutationBatchAfterBatchId(e, t)
}
))
}
function ao(e, t) {
var n = z(e);
return n.persistence.runTransaction("Allocate target", "readwrite", (function(e) {
var r;
return n.He.getTargetData(e, t).next((function(i) {
return i ? (r = i,
Ir.resolve(r)) : n.He.allocateTargetId(e).next((function(i) {
return r = new Xr(t,i,0,e.currentSequenceNumber),
n.He.addTargetData(e, r).next((function() {
return r
}
))
}
))
}
))
}
)).then((function(e) {
var r = n.qn.get(e.targetId);
return (null === r || e.snapshotVersion.compareTo(r.snapshotVersion) > 0) && (n.qn = n.qn.insert(e.targetId, e),
n.Kn.set(t, e.targetId)),
e
}
))
}
function lo(e, t, n) {
return so.apply(this, arguments)
}
function so() {
return (so = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (i = z(t),
o = i.qn.get(n),
a = r ? "readwrite" : "readwrite-primary",
e.prev = 1,
e.t0 = r,
e.t0) {
e.next = 6;
break
}
return e.next = 6,
i.persistence.runTransaction("Release target", a, (function(e) {
return i.persistence.referenceDelegate.removeTarget(e, o)
}
));
case 6:
e.next = 13;
break;
case 8:
if (e.prev = 8,
e.t1 = e.catch(1),
Rr(e.t1)) {
e.next = 12;
break
}
throw e.t1;
case 12:
M("LocalStore", "Failed to update sequence numbers for target ".concat(n, ": ").concat(e.t1));
case 13:
i.qn = i.qn.remove(n),
i.Kn.delete(o.target);
case 14:
case "end":
return e.stop()
}
}
), e, null, [[1, 8]])
}
)))).apply(this, arguments)
}
function co(e, t, n) {
var r = z(e)
, i = $.min()
, o = mn();
return r.persistence.runTransaction("Execute query", "readonly", (function(e) {
return function(e, t, n) {
var r = z(e)
, i = r.Kn.get(n);
return void 0 !== i ? Ir.resolve(r.qn.get(i)) : r.He.getTargetData(t, n)
}(r, e, ht(t)).next((function(t) {
if (t)
return i = t.lastLimboFreeSnapshotVersion,
r.He.getMatchingKeysForTargetId(e, t.targetId).next((function(e) {
o = e
}
))
}
)).next((function() {
return r.Un.getDocumentsMatchingQuery(e, t, n ? i : $.min(), n ? o : mn())
}
)).next((function(e) {
return {
documents: e,
zn: o
}
}
))
}
))
}
function uo(e, t) {
var n = z(e)
, r = z(n.He)
, i = n.qn.get(t);
return i ? Promise.resolve(i.target) : n.persistence.runTransaction("Get target data", "readonly", (function(e) {
return r.Et(e, t).next((function(e) {
return e ? e.target : null
}
))
}
))
}
function po(e) {
var t = z(e);
return t.persistence.runTransaction("Get new document changes", "readonly", (function(e) {
return function(e, t, n) {
var r = z(e)
, i = dn()
, o = Qr(n)
, a = Pi(t)
, l = IDBKeyRange.lowerBound(o, !0);
return a.jt({
index: xr.readTimeIndex,
range: l
}, (function(e, t) {
var n = Kr(r.k, t);
i = i.insert(n.key, n),
o = t.readTime
}
)).next((function() {
return {
In: i,
readTime: Jr(o)
}
}
))
}(t.Qn, e, t.jn)
}
)).then((function(e) {
var n = e.In
, r = e.readTime;
return t.jn = r,
n
}
))
}
function ho(e) {
return fo.apply(this, arguments)
}
function fo() {
return (fo = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = z(t),
e.abrupt("return", n.persistence.runTransaction("Synchronize last document change read time", "readonly", (function(e) {
return function(e) {
var t = Pi(e)
, n = $.min();
return t.jt({
index: xr.readTimeIndex,
reverse: !0
}, (function(e, t, r) {
t.readTime && (n = Jr(t.readTime)),
r.done()
}
)).next((function() {
return n
}
))
}(e)
}
)).then((function(e) {
n.jn = e
}
)));
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function bo(e, t, n, r) {
return go.apply(this, arguments)
}
function go() {
return (go = Object(s.a)(b.a.mark((function e(t, n, r, i) {
var o, a, s, c, u, d, p, h, f, g;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
o = z(t),
a = mn(),
s = dn(),
c = bn(),
u = Object(l.a)(r);
try {
for (u.s(); !(d = u.n()).done; )
p = d.value,
h = n.Hn(p.metadata.name),
p.document && (a = a.add(h)),
s = s.insert(h, n.Jn(p)),
c = c.insert(h, n.Yn(p.metadata.readTime))
} catch (e) {
u.e(e)
} finally {
u.f()
}
return f = o.Qn.newChangeBuffer({
trackRemovals: !0
}),
e.next = 7,
ao(o, function(e) {
return ht(at(ie.fromString("__bundle__/docs/".concat(e))))
}(i));
case 7:
return g = e.sent,
e.abrupt("return", o.persistence.runTransaction("Apply bundle documents", "readwrite", (function(e) {
return io(e, f, s, $.min(), c).next((function(t) {
return f.apply(e),
t
}
)).next((function(t) {
return o.He.removeMatchingKeysForTargetId(e, g.targetId).next((function() {
return o.He.addMatchingKeys(e, a, g.targetId)
}
)).next((function() {
return o.Wn.Vn(e, t)
}
)).next((function() {
return t
}
))
}
))
}
)));
case 9:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function mo(e, t) {
return vo.apply(this, arguments)
}
function vo() {
return vo = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a = arguments;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = a.length > 2 && void 0 !== a[2] ? a[2] : mn(),
e.next = 3,
ao(t, ht(ri(n.bundledQuery)));
case 3:
return i = e.sent,
o = z(t),
e.abrupt("return", o.persistence.runTransaction("Save named query", "readwrite", (function(e) {
var t = Dn(n.readTime);
if (i.snapshotVersion.compareTo(t) >= 0)
return o.Ye.saveNamedQuery(e, n);
var a = i.withResumeToken(ce.EMPTY_BYTE_STRING, t);
return o.qn = o.qn.insert(a.targetId, a),
o.He.updateTargetData(e, a).next((function() {
return o.He.removeMatchingKeysForTargetId(e, i.targetId)
}
)).next((function() {
return o.He.addMatchingKeys(e, r, i.targetId)
}
)).next((function() {
return o.Ye.saveNamedQuery(e, n)
}
))
}
)));
case 6:
case "end":
return e.stop()
}
}
), e)
}
))),
vo.apply(this, arguments)
}
var yo = function() {
function e(t) {
Object(p.a)(this, e),
this.k = t,
this.Xn = new Map,
this.Zn = new Map
}
return Object(h.a)(e, [{
key: "getBundleMetadata",
value: function(e, t) {
return Ir.resolve(this.Xn.get(t))
}
}, {
key: "saveBundleMetadata",
value: function(e, t) {
var n;
return this.Xn.set(t.id, {
id: (n = t).id,
version: n.version,
createTime: Dn(n.createTime)
}),
Ir.resolve()
}
}, {
key: "getNamedQuery",
value: function(e, t) {
return Ir.resolve(this.Zn.get(t))
}
}, {
key: "saveNamedQuery",
value: function(e, t) {
return this.Zn.set(t.name, function(e) {
return {
name: e.name,
query: ri(e.bundledQuery),
readTime: Dn(e.readTime)
}
}(t)),
Ir.resolve()
}
}]),
e
}()
, xo = function() {
function e() {
Object(p.a)(this, e),
this.ts = new sn(Oo.es),
this.ns = new sn(Oo.ss)
}
return Object(h.a)(e, [{
key: "isEmpty",
value: function() {
return this.ts.isEmpty()
}
}, {
key: "addReference",
value: function(e, t) {
var n = new Oo(e,t);
this.ts = this.ts.add(n),
this.ns = this.ns.add(n)
}
}, {
key: "rs",
value: function(e, t) {
var n = this;
e.forEach((function(e) {
return n.addReference(e, t)
}
))
}
}, {
key: "removeReference",
value: function(e, t) {
this.os(new Oo(e,t))
}
}, {
key: "cs",
value: function(e, t) {
var n = this;
e.forEach((function(e) {
return n.removeReference(e, t)
}
))
}
}, {
key: "us",
value: function(e) {
var t = this
, n = new xe(new ie([]))
, r = new Oo(n,e)
, i = new Oo(n,e + 1)
, o = [];
return this.ns.forEachInRange([r, i], (function(e) {
t.os(e),
o.push(e.key)
}
)),
o
}
}, {
key: "hs",
value: function() {
var e = this;
this.ts.forEach((function(t) {
return e.os(t)
}
))
}
}, {
key: "os",
value: function(e) {
this.ts = this.ts.delete(e),
this.ns = this.ns.delete(e)
}
}, {
key: "ls",
value: function(e) {
var t = new xe(new ie([]))
, n = new Oo(t,e)
, r = new Oo(t,e + 1)
, i = mn();
return this.ns.forEachInRange([n, r], (function(e) {
i = i.add(e.key)
}
)),
i
}
}, {
key: "containsKey",
value: function(e) {
var t = new Oo(e,0)
, n = this.ts.firstAfterOrEqual(t);
return null !== n && e.isEqual(n.key)
}
}]),
e
}()
, Oo = function() {
function e(t, n) {
Object(p.a)(this, e),
this.key = t,
this.fs = n
}
return Object(h.a)(e, null, [{
key: "es",
value: function(e, t) {
return xe.comparator(e.key, t.key) || Y(e.fs, t.fs)
}
}, {
key: "ss",
value: function(e, t) {
return Y(e.fs, t.fs) || xe.comparator(e.key, t.key)
}
}]),
e
}()
, jo = function() {
function e(t, n) {
Object(p.a)(this, e),
this.Jt = t,
this.referenceDelegate = n,
this.An = [],
this.ds = 1,
this.ws = new sn(Oo.es)
}
return Object(h.a)(e, [{
key: "checkEmpty",
value: function(e) {
return Ir.resolve(0 === this.An.length)
}
}, {
key: "addMutationBatch",
value: function(e, t, n, r) {
var i = this.ds;
this.ds++,
this.An.length > 0 && this.An[this.An.length - 1];
var o = new Hr(i,t,n,r);
this.An.push(o);
var a, s = Object(l.a)(r);
try {
for (s.s(); !(a = s.n()).done; ) {
var c = a.value;
this.ws = this.ws.add(new Oo(c.key,i)),
this.Jt.addToCollectionParentIndex(e, c.key.path.popLast())
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
return Ir.resolve(o)
}
}, {
key: "lookupMutationBatch",
value: function(e, t) {
return Ir.resolve(this._s(t))
}
}, {
key: "getNextMutationBatchAfterBatchId",
value: function(e, t) {
var n = t + 1
, r = this.gs(n)
, i = r < 0 ? 0 : r;
return Ir.resolve(this.An.length > i ? this.An[i] : null)
}
}, {
key: "getHighestUnacknowledgedBatchId",
value: function() {
return Ir.resolve(0 === this.An.length ? -1 : this.ds - 1)
}
}, {
key: "getAllMutationBatches",
value: function(e) {
return Ir.resolve(this.An.slice())
}
}, {
key: "getAllMutationBatchesAffectingDocumentKey",
value: function(e, t) {
var n = this
, r = new Oo(t,0)
, i = new Oo(t,Number.POSITIVE_INFINITY)
, o = [];
return this.ws.forEachInRange([r, i], (function(e) {
var t = n._s(e.fs);
o.push(t)
}
)),
Ir.resolve(o)
}
}, {
key: "getAllMutationBatchesAffectingDocumentKeys",
value: function(e, t) {
var n = this
, r = new sn(Y);
return t.forEach((function(e) {
var t = new Oo(e,0)
, i = new Oo(e,Number.POSITIVE_INFINITY);
n.ws.forEachInRange([t, i], (function(e) {
r = r.add(e.fs)
}
))
}
)),
Ir.resolve(this.ys(r))
}
}, {
key: "getAllMutationBatchesAffectingQuery",
value: function(e, t) {
var n = t.path
, r = n.length + 1
, i = n;
xe.isDocumentKey(i) || (i = i.child(""));
var o = new Oo(new xe(i),0)
, a = new sn(Y);
return this.ws.forEachWhile((function(e) {
var t = e.key.path;
return !!n.isPrefixOf(t) && (t.length === r && (a = a.add(e.fs)),
!0)
}
), o),
Ir.resolve(this.ys(a))
}
}, {
key: "ys",
value: function(e) {
var t = this
, n = [];
return e.forEach((function(e) {
var r = t._s(e);
null !== r && n.push(r)
}
)),
n
}
}, {
key: "removeMutationBatch",
value: function(e, t) {
var n = this;
I(0 === this.ps(t.batchId, "removed")),
this.An.shift();
var r = this.ws;
return Ir.forEach(t.mutations, (function(i) {
var o = new Oo(i.key,t.batchId);
return r = r.delete(o),
n.referenceDelegate.markPotentiallyOrphaned(e, i.key)
}
)).next((function() {
n.ws = r
}
))
}
}, {
key: "ee",
value: function(e) {}
}, {
key: "containsKey",
value: function(e, t) {
var n = new Oo(t,0)
, r = this.ws.firstAfterOrEqual(n);
return Ir.resolve(t.isEqual(r && r.key))
}
}, {
key: "performConsistencyCheck",
value: function(e) {
return this.An.length,
Ir.resolve()
}
}, {
key: "ps",
value: function(e, t) {
return this.gs(e)
}
}, {
key: "gs",
value: function(e) {
return 0 === this.An.length ? 0 : e - this.An[0].batchId
}
}, {
key: "_s",
value: function(e) {
var t = this.gs(e);
return t < 0 || t >= this.An.length ? null : this.An[t]
}
}]),
e
}()
, ko = function() {
function e(t, n) {
Object(p.a)(this, e),
this.Jt = t,
this.Ts = n,
this.docs = new on(xe.comparator),
this.size = 0
}
return Object(h.a)(e, [{
key: "addEntry",
value: function(e, t, n) {
var r = t.key
, i = this.docs.get(r)
, o = i ? i.size : 0
, a = this.Ts(t);
return this.docs = this.docs.insert(r, {
document: t.mutableCopy(),
size: a,
readTime: n
}),
this.size += a - o,
this.Jt.addToCollectionParentIndex(e, r.path.popLast())
}
}, {
key: "removeEntry",
value: function(e) {
var t = this.docs.get(e);
t && (this.docs = this.docs.remove(e),
this.size -= t.size)
}
}, {
key: "getEntry",
value: function(e, t) {
var n = this.docs.get(t);
return Ir.resolve(n ? n.document.mutableCopy() : Re.newInvalidDocument(t))
}
}, {
key: "getEntries",
value: function(e, t) {
var n = this
, r = dn();
return t.forEach((function(e) {
var t = n.docs.get(e);
r = r.insert(e, t ? t.document.mutableCopy() : Re.newInvalidDocument(e))
}
)),
Ir.resolve(r)
}
}, {
key: "getDocumentsMatchingQuery",
value: function(e, t, n) {
for (var r = dn(), i = new xe(t.path.child("")), o = this.docs.getIteratorFrom(i); o.hasNext(); ) {
var a = o.getNext()
, l = a.key
, s = a.value
, c = s.document
, u = s.readTime;
if (!t.path.isPrefixOf(l.path))
break;
u.compareTo(n) <= 0 || vt(t, c) && (r = r.insert(c.key, c.mutableCopy()))
}
return Ir.resolve(r)
}
}, {
key: "Es",
value: function(e, t) {
return Ir.forEach(this.docs, (function(e) {
return t(e)
}
))
}
}, {
key: "newChangeBuffer",
value: function(e) {
return new wo(this)
}
}, {
key: "getSize",
value: function(e) {
return Ir.resolve(this.size)
}
}]),
e
}()
, wo = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this)).De = e,
r
}
return Object(h.a)(n, [{
key: "applyChanges",
value: function(e) {
var t = this
, n = [];
return this.changes.forEach((function(r, i) {
i.document.isValidDocument() ? n.push(t.De.addEntry(e, i.document, t.getReadTime(r))) : t.De.removeEntry(r)
}
)),
Ir.waitFor(n)
}
}, {
key: "getFromCache",
value: function(e, t) {
return this.De.getEntry(e, t)
}
}, {
key: "getAllFromCache",
value: function(e, t) {
return this.De.getEntries(e, t)
}
}]),
n
}(zi)
, Co = function() {
function e(t) {
Object(p.a)(this, e),
this.persistence = t,
this.Is = new Ni((function(e) {
return Fe(e)
}
),Ve),
this.lastRemoteSnapshotVersion = $.min(),
this.highestTargetId = 0,
this.As = 0,
this.Rs = new xo,
this.targetCount = 0,
this.bs = xi.ie()
}
return Object(h.a)(e, [{
key: "forEachTarget",
value: function(e, t) {
return this.Is.forEach((function(e, n) {
return t(n)
}
)),
Ir.resolve()
}
}, {
key: "getLastRemoteSnapshotVersion",
value: function(e) {
return Ir.resolve(this.lastRemoteSnapshotVersion)
}
}, {
key: "getHighestSequenceNumber",
value: function(e) {
return Ir.resolve(this.As)
}
}, {
key: "allocateTargetId",
value: function(e) {
return this.highestTargetId = this.bs.next(),
Ir.resolve(this.highestTargetId)
}
}, {
key: "setTargetsMetadata",
value: function(e, t, n) {
return n && (this.lastRemoteSnapshotVersion = n),
t > this.As && (this.As = t),
Ir.resolve()
}
}, {
key: "ce",
value: function(e) {
this.Is.set(e.target, e);
var t = e.targetId;
t > this.highestTargetId && (this.bs = new xi(t),
this.highestTargetId = t),
e.sequenceNumber > this.As && (this.As = e.sequenceNumber)
}
}, {
key: "addTargetData",
value: function(e, t) {
return this.ce(t),
this.targetCount += 1,
Ir.resolve()
}
}, {
key: "updateTargetData",
value: function(e, t) {
return this.ce(t),
Ir.resolve()
}
}, {
key: "removeTargetData",
value: function(e, t) {
return this.Is.delete(t.target),
this.Rs.us(t.targetId),
this.targetCount -= 1,
Ir.resolve()
}
}, {
key: "removeTargets",
value: function(e, t, n) {
var r = this
, i = 0
, o = [];
return this.Is.forEach((function(a, l) {
l.sequenceNumber <= t && null === n.get(l.targetId) && (r.Is.delete(a),
o.push(r.removeMatchingKeysForTargetId(e, l.targetId)),
i++)
}
)),
Ir.waitFor(o).next((function() {
return i
}
))
}
}, {
key: "getTargetCount",
value: function(e) {
return Ir.resolve(this.targetCount)
}
}, {
key: "getTargetData",
value: function(e, t) {
var n = this.Is.get(t) || null;
return Ir.resolve(n)
}
}, {
key: "addMatchingKeys",
value: function(e, t, n) {
return this.Rs.rs(t, n),
Ir.resolve()
}
}, {
key: "removeMatchingKeys",
value: function(e, t, n) {
this.Rs.cs(t, n);
var r = this.persistence.referenceDelegate
, i = [];
return r && t.forEach((function(t) {
i.push(r.markPotentiallyOrphaned(e, t))
}
)),
Ir.waitFor(i)
}
}, {
key: "removeMatchingKeysForTargetId",
value: function(e, t) {
return this.Rs.us(t),
Ir.resolve()
}
}, {
key: "getMatchingKeysForTargetId",
value: function(e, t) {
var n = this.Rs.ls(t);
return Ir.resolve(n)
}
}, {
key: "containsKey",
value: function(e, t) {
return Ir.resolve(this.Rs.containsKey(t))
}
}]),
e
}()
, _o = function() {
function e(t, n) {
var r = this;
Object(p.a)(this, e),
this.Ps = {},
this.Be = new X(0),
this.Ue = !1,
this.Ue = !0,
this.referenceDelegate = t(this),
this.He = new Co(this),
this.Jt = new li,
this.Je = function(e, t) {
return new ko(e,(function(e) {
return r.referenceDelegate.vs(e)
}
))
}(this.Jt),
this.k = new Gr(n),
this.Ye = new yo(this.k)
}
return Object(h.a)(e, [{
key: "start",
value: function() {
return Promise.resolve()
}
}, {
key: "shutdown",
value: function() {
return this.Ue = !1,
Promise.resolve()
}
}, {
key: "started",
get: function() {
return this.Ue
}
}, {
key: "setDatabaseDeletedListener",
value: function() {}
}, {
key: "setNetworkEnabled",
value: function() {}
}, {
key: "getIndexManager",
value: function() {
return this.Jt
}
}, {
key: "getMutationQueue",
value: function(e) {
var t = this.Ps[e.toKey()];
return t || (t = new jo(this.Jt,this.referenceDelegate),
this.Ps[e.toKey()] = t),
t
}
}, {
key: "getTargetCache",
value: function() {
return this.He
}
}, {
key: "getRemoteDocumentCache",
value: function() {
return this.Je
}
}, {
key: "getBundleCache",
value: function() {
return this.Ye
}
}, {
key: "runTransaction",
value: function(e, t, n) {
var r = this;
M("MemoryPersistence", "Starting transaction:", e);
var i = new Mo(this.Be.next());
return this.referenceDelegate.Vs(),
n(i).next((function(e) {
return r.referenceDelegate.Ss(i).next((function() {
return e
}
))
}
)).toPromise().then((function(e) {
return i.raiseOnCommittedEvent(),
e
}
))
}
}, {
key: "Ds",
value: function(e, t) {
return Ir.or(Object.values(this.Ps).map((function(n) {
return function() {
return n.containsKey(e, t)
}
}
)))
}
}]),
e
}()
, Mo = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this)).currentSequenceNumber = e,
r
}
return Object(h.a)(n)
}(Er)
, So = function() {
function e(t) {
Object(p.a)(this, e),
this.persistence = t,
this.Cs = new xo,
this.Ns = null
}
return Object(h.a)(e, [{
key: "xs",
get: function() {
if (this.Ns)
return this.Ns;
throw E()
}
}, {
key: "addReference",
value: function(e, t, n) {
return this.Cs.addReference(n, t),
this.xs.delete(n.toString()),
Ir.resolve()
}
}, {
key: "removeReference",
value: function(e, t, n) {
return this.Cs.removeReference(n, t),
this.xs.add(n.toString()),
Ir.resolve()
}
}, {
key: "markPotentiallyOrphaned",
value: function(e, t) {
return this.xs.add(t.toString()),
Ir.resolve()
}
}, {
key: "removeTarget",
value: function(e, t) {
var n = this;
this.Cs.us(t.targetId).forEach((function(e) {
return n.xs.add(e.toString())
}
));
var r = this.persistence.getTargetCache();
return r.getMatchingKeysForTargetId(e, t.targetId).next((function(e) {
e.forEach((function(e) {
return n.xs.add(e.toString())
}
))
}
)).next((function() {
return r.removeTargetData(e, t)
}
))
}
}, {
key: "Vs",
value: function() {
this.Ns = new Set
}
}, {
key: "Ss",
value: function(e) {
var t = this
, n = this.persistence.getRemoteDocumentCache().newChangeBuffer();
return Ir.forEach(this.xs, (function(r) {
var i = xe.fromPath(r);
return t.$s(e, i).next((function(e) {
e || n.removeEntry(i)
}
))
}
)).next((function() {
return t.Ns = null,
n.apply(e)
}
))
}
}, {
key: "updateLimboDocument",
value: function(e, t) {
var n = this;
return this.$s(e, t).next((function(e) {
e ? n.xs.delete(t.toString()) : n.xs.add(t.toString())
}
))
}
}, {
key: "vs",
value: function(e) {
return 0
}
}, {
key: "$s",
value: function(e, t) {
var n = this;
return Ir.or([function() {
return Ir.resolve(n.Cs.containsKey(t))
}
, function() {
return n.persistence.getTargetCache().containsKey(e, t)
}
, function() {
return n.persistence.Ds(e, t)
}
])
}
}], [{
key: "ks",
value: function(t) {
return new e(t)
}
}]),
e
}();
function Ao(e, t) {
return "firestore_clients_".concat(e, "_").concat(t)
}
function To(e, t, n) {
var r = "firestore_mutations_".concat(e, "_").concat(n);
return t.isAuthenticated() && (r += "_".concat(t.uid)),
r
}
function Eo(e, t) {
return "firestore_targets_".concat(e, "_").concat(t)
}
var Io = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.user = t,
this.batchId = n,
this.state = r,
this.error = i
}
return Object(h.a)(e, [{
key: "Fs",
value: function() {
var e = {
state: this.state,
updateTimeMs: Date.now()
};
return this.error && (e.error = {
code: this.error.code,
message: this.error.message
}),
JSON.stringify(e)
}
}], [{
key: "Os",
value: function(t, n, r) {
var i, o = JSON.parse(r), a = "object" == typeof o && -1 !== ["pending", "acknowledged", "rejected"].indexOf(o.state) && (void 0 === o.error || "object" == typeof o.error);
return a && o.error && (a = "string" == typeof o.error.message && "string" == typeof o.error.code) && (i = new L(o.error.code,o.error.message)),
a ? new e(t,n,o.state,i) : (S("SharedClientState", "Failed to parse mutation state for ID '".concat(n, "': ").concat(r)),
null)
}
}]),
e
}()
, No = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.targetId = t,
this.state = n,
this.error = r
}
return Object(h.a)(e, [{
key: "Fs",
value: function() {
var e = {
state: this.state,
updateTimeMs: Date.now()
};
return this.error && (e.error = {
code: this.error.code,
message: this.error.message
}),
JSON.stringify(e)
}
}], [{
key: "Os",
value: function(t, n) {
var r, i = JSON.parse(n), o = "object" == typeof i && -1 !== ["not-current", "current", "rejected"].indexOf(i.state) && (void 0 === i.error || "object" == typeof i.error);
return o && i.error && (o = "string" == typeof i.error.message && "string" == typeof i.error.code) && (r = new L(i.error.code,i.error.message)),
o ? new e(t,i.state,r) : (S("SharedClientState", "Failed to parse target state for ID '".concat(t, "': ").concat(n)),
null)
}
}]),
e
}()
, zo = function() {
function e(t, n) {
Object(p.a)(this, e),
this.clientId = t,
this.activeTargetIds = n
}
return Object(h.a)(e, null, [{
key: "Os",
value: function(t, n) {
for (var r = JSON.parse(n), i = "object" == typeof r && r.activeTargetIds instanceof Array, o = yn(), a = 0; i && a < r.activeTargetIds.length; ++a)
i = ye(r.activeTargetIds[a]),
o = o.add(r.activeTargetIds[a]);
return i ? new e(t,o) : (S("SharedClientState", "Failed to parse client data for instance '".concat(t, "': ").concat(n)),
null)
}
}]),
e
}()
, Do = function() {
function e(t, n) {
Object(p.a)(this, e),
this.clientId = t,
this.onlineState = n
}
return Object(h.a)(e, null, [{
key: "Os",
value: function(t) {
var n = JSON.parse(t);
return "object" == typeof n && -1 !== ["Unknown", "Online", "Offline"].indexOf(n.onlineState) && "string" == typeof n.clientId ? new e(n.clientId,n.onlineState) : (S("SharedClientState", "Failed to parse online state: ".concat(t)),
null)
}
}]),
e
}()
, Lo = function() {
function e() {
Object(p.a)(this, e),
this.activeTargetIds = yn()
}
return Object(h.a)(e, [{
key: "Ms",
value: function(e) {
this.activeTargetIds = this.activeTargetIds.add(e)
}
}, {
key: "Ls",
value: function(e) {
this.activeTargetIds = this.activeTargetIds.delete(e)
}
}, {
key: "Fs",
value: function() {
var e = {
activeTargetIds: this.activeTargetIds.toArray(),
updateTimeMs: Date.now()
};
return JSON.stringify(e)
}
}]),
e
}()
, Ro = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.window = t,
this.Fe = n,
this.persistenceKey = r,
this.Bs = i,
this.syncEngine = null,
this.onlineStateHandler = null,
this.sequenceNumberHandler = null,
this.Us = this.qs.bind(this),
this.Ks = new on(Y),
this.started = !1,
this.js = [];
var a = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
this.storage = this.window.localStorage,
this.currentUser = o,
this.Qs = Ao(this.persistenceKey, this.Bs),
this.Ws = function(e) {
return "firestore_sequence_number_".concat(e)
}(this.persistenceKey),
this.Ks = this.Ks.insert(this.Bs, new Lo),
this.Gs = new RegExp("^firestore_clients_".concat(a, "_([^_]*)$")),
this.zs = new RegExp("^firestore_mutations_".concat(a, "_(\\d+)(?:_(.*))?$")),
this.Hs = new RegExp("^firestore_targets_".concat(a, "_(\\d+)$")),
this.Js = function(e) {
return "firestore_online_state_".concat(e)
}(this.persistenceKey),
this.Ys = function(e) {
return "firestore_bundle_loaded_".concat(e)
}(this.persistenceKey),
this.window.addEventListener("storage", this.Us)
}
return Object(h.a)(e, [{
key: "start",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n, r, i, o, a, s, c, u, d, p, h = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.syncEngine.Tn();
case 2:
t = e.sent,
n = Object(l.a)(t),
e.prev = 4,
n.s();
case 6:
if ((r = n.n()).done) {
e.next = 14;
break
}
if ((i = r.value) !== this.Bs) {
e.next = 10;
break
}
return e.abrupt("continue", 12);
case 10:
(o = this.getItem(Ao(this.persistenceKey, i))) && (a = zo.Os(i, o)) && (this.Ks = this.Ks.insert(a.clientId, a));
case 12:
e.next = 6;
break;
case 14:
e.next = 19;
break;
case 16:
e.prev = 16,
e.t0 = e.catch(4),
n.e(e.t0);
case 19:
return e.prev = 19,
n.f(),
e.finish(19);
case 22:
this.Xs(),
(s = this.storage.getItem(this.Js)) && (c = this.Zs(s)) && this.ti(c),
u = Object(l.a)(this.js);
try {
for (u.s(); !(d = u.n()).done; )
p = d.value,
this.qs(p)
} catch (e) {
u.e(e)
} finally {
u.f()
}
this.js = [],
this.window.addEventListener("pagehide", (function() {
return h.shutdown()
}
)),
this.started = !0;
case 28:
case "end":
return e.stop()
}
}
), e, this, [[4, 16, 19, 22]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "writeSequenceNumber",
value: function(e) {
this.setItem(this.Ws, JSON.stringify(e))
}
}, {
key: "getAllActiveQueryTargets",
value: function() {
return this.ei(this.Ks)
}
}, {
key: "isActiveQueryTarget",
value: function(e) {
var t = !1;
return this.Ks.forEach((function(n, r) {
r.activeTargetIds.has(e) && (t = !0)
}
)),
t
}
}, {
key: "addPendingMutation",
value: function(e) {
this.ni(e, "pending")
}
}, {
key: "updateMutationState",
value: function(e, t, n) {
this.ni(e, t, n),
this.si(e)
}
}, {
key: "addLocalQueryTarget",
value: function(e) {
var t = "not-current";
if (this.isActiveQueryTarget(e)) {
var n = this.storage.getItem(Eo(this.persistenceKey, e));
if (n) {
var r = No.Os(e, n);
r && (t = r.state)
}
}
return this.ii.Ms(e),
this.Xs(),
t
}
}, {
key: "removeLocalQueryTarget",
value: function(e) {
this.ii.Ls(e),
this.Xs()
}
}, {
key: "isLocalQueryTarget",
value: function(e) {
return this.ii.activeTargetIds.has(e)
}
}, {
key: "clearQueryState",
value: function(e) {
this.removeItem(Eo(this.persistenceKey, e))
}
}, {
key: "updateQueryState",
value: function(e, t, n) {
this.ri(e, t, n)
}
}, {
key: "handleUserChange",
value: function(e, t, n) {
var r = this;
t.forEach((function(e) {
r.si(e)
}
)),
this.currentUser = e,
n.forEach((function(e) {
r.addPendingMutation(e)
}
))
}
}, {
key: "setOnlineState",
value: function(e) {
this.oi(e)
}
}, {
key: "notifyBundleLoaded",
value: function() {
this.ai()
}
}, {
key: "shutdown",
value: function() {
this.started && (this.window.removeEventListener("storage", this.Us),
this.removeItem(this.Qs),
this.started = !1)
}
}, {
key: "getItem",
value: function(e) {
var t = this.storage.getItem(e);
return M("SharedClientState", "READ", e, t),
t
}
}, {
key: "setItem",
value: function(e, t) {
M("SharedClientState", "SET", e, t),
this.storage.setItem(e, t)
}
}, {
key: "removeItem",
value: function(e) {
M("SharedClientState", "REMOVE", e),
this.storage.removeItem(e)
}
}, {
key: "qs",
value: function(e) {
var t = this
, n = e;
if (n.storageArea === this.storage) {
if (M("SharedClientState", "EVENT", n.key, n.newValue),
n.key === this.Qs)
return void S("Received WebStorage notification for local change. Another client might have garbage-collected our state");
this.Fe.enqueueRetryable(Object(s.a)(b.a.mark((function e() {
var r, i, o, a, l, s;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!t.started) {
e.next = 41;
break
}
if (null === n.key) {
e.next = 39;
break
}
if (!t.Gs.test(n.key)) {
e.next = 11;
break
}
if (null != n.newValue) {
e.next = 6;
break
}
return r = t.ci(n.key),
e.abrupt("return", t.ui(r, null));
case 6:
if (!(i = t.hi(n.key, n.newValue))) {
e.next = 9;
break
}
return e.abrupt("return", t.ui(i.clientId, i));
case 9:
e.next = 39;
break;
case 11:
if (!t.zs.test(n.key)) {
e.next = 18;
break
}
if (null === n.newValue) {
e.next = 16;
break
}
if (!(o = t.li(n.key, n.newValue))) {
e.next = 16;
break
}
return e.abrupt("return", t.fi(o));
case 16:
e.next = 39;
break;
case 18:
if (!t.Hs.test(n.key)) {
e.next = 25;
break
}
if (null === n.newValue) {
e.next = 23;
break
}
if (!(a = t.di(n.key, n.newValue))) {
e.next = 23;
break
}
return e.abrupt("return", t.wi(a));
case 23:
e.next = 39;
break;
case 25:
if (n.key !== t.Js) {
e.next = 32;
break
}
if (null === n.newValue) {
e.next = 30;
break
}
if (!(l = t.Zs(n.newValue))) {
e.next = 30;
break
}
return e.abrupt("return", t.ti(l));
case 30:
e.next = 39;
break;
case 32:
if (n.key !== t.Ws) {
e.next = 37;
break
}
s = function(e) {
var t = X.I;
if (null != e)
try {
var n = JSON.parse(e);
I("number" == typeof n),
t = n
} catch (e) {
S("SharedClientState", "Failed to read sequence number from WebStorage", e)
}
return t
}(n.newValue),
s !== X.I && t.sequenceNumberHandler(s),
e.next = 39;
break;
case 37:
if (n.key !== t.Ys) {
e.next = 39;
break
}
return e.abrupt("return", t.syncEngine._i());
case 39:
e.next = 42;
break;
case 41:
t.js.push(n);
case 42:
case "end":
return e.stop()
}
}
), e)
}
))))
}
}
}, {
key: "ii",
get: function() {
return this.Ks.get(this.Bs)
}
}, {
key: "Xs",
value: function() {
this.setItem(this.Qs, this.ii.Fs())
}
}, {
key: "ni",
value: function(e, t, n) {
var r = new Io(this.currentUser,e,t,n)
, i = To(this.persistenceKey, this.currentUser, e);
this.setItem(i, r.Fs())
}
}, {
key: "si",
value: function(e) {
var t = To(this.persistenceKey, this.currentUser, e);
this.removeItem(t)
}
}, {
key: "oi",
value: function(e) {
var t = {
clientId: this.Bs,
onlineState: e
};
this.storage.setItem(this.Js, JSON.stringify(t))
}
}, {
key: "ri",
value: function(e, t, n) {
var r = Eo(this.persistenceKey, e)
, i = new No(e,t,n);
this.setItem(r, i.Fs())
}
}, {
key: "ai",
value: function() {
this.setItem(this.Ys, "value-not-used")
}
}, {
key: "ci",
value: function(e) {
var t = this.Gs.exec(e);
return t ? t[1] : null
}
}, {
key: "hi",
value: function(e, t) {
var n = this.ci(e);
return zo.Os(n, t)
}
}, {
key: "li",
value: function(e, t) {
var n = this.zs.exec(e)
, r = Number(n[1])
, i = void 0 !== n[2] ? n[2] : null;
return Io.Os(new j(i), r, t)
}
}, {
key: "di",
value: function(e, t) {
var n = this.Hs.exec(e)
, r = Number(n[1]);
return No.Os(r, t)
}
}, {
key: "Zs",
value: function(e) {
return Do.Os(e)
}
}, {
key: "fi",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t.user.uid !== this.currentUser.uid) {
e.next = 2;
break
}
return e.abrupt("return", this.syncEngine.mi(t.batchId, t.state, t.error));
case 2:
M("SharedClientState", "Ignoring mutation for non-active user ".concat(t.user.uid));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "wi",
value: function(e) {
return this.syncEngine.gi(e.targetId, e.state, e.error)
}
}, {
key: "ui",
value: function(e, t) {
var n = this
, r = t ? this.Ks.insert(e, t) : this.Ks.remove(e)
, i = this.ei(this.Ks)
, o = this.ei(r)
, a = []
, l = [];
return o.forEach((function(e) {
i.has(e) || a.push(e)
}
)),
i.forEach((function(e) {
o.has(e) || l.push(e)
}
)),
this.syncEngine.yi(a, l).then((function() {
n.Ks = r
}
))
}
}, {
key: "ti",
value: function(e) {
this.Ks.get(e.clientId) && this.onlineStateHandler(e.onlineState)
}
}, {
key: "ei",
value: function(e) {
var t = yn();
return e.forEach((function(e, n) {
t = t.unionWith(n.activeTargetIds)
}
)),
t
}
}], [{
key: "Pt",
value: function(e) {
return !(!e || !e.localStorage)
}
}]),
e
}()
, Po = function() {
function e() {
Object(p.a)(this, e),
this.pi = new Lo,
this.Ti = {},
this.onlineStateHandler = null,
this.sequenceNumberHandler = null
}
return Object(h.a)(e, [{
key: "addPendingMutation",
value: function(e) {}
}, {
key: "updateMutationState",
value: function(e, t, n) {}
}, {
key: "addLocalQueryTarget",
value: function(e) {
return this.pi.Ms(e),
this.Ti[e] || "not-current"
}
}, {
key: "updateQueryState",
value: function(e, t, n) {
this.Ti[e] = t
}
}, {
key: "removeLocalQueryTarget",
value: function(e) {
this.pi.Ls(e)
}
}, {
key: "isLocalQueryTarget",
value: function(e) {
return this.pi.activeTargetIds.has(e)
}
}, {
key: "clearQueryState",
value: function(e) {
delete this.Ti[e]
}
}, {
key: "getAllActiveQueryTargets",
value: function() {
return this.pi.activeTargetIds
}
}, {
key: "isActiveQueryTarget",
value: function(e) {
return this.pi.activeTargetIds.has(e)
}
}, {
key: "start",
value: function() {
return this.pi = new Lo,
Promise.resolve()
}
}, {
key: "handleUserChange",
value: function(e, t, n) {}
}, {
key: "setOnlineState",
value: function(e) {}
}, {
key: "shutdown",
value: function() {}
}, {
key: "writeSequenceNumber",
value: function(e) {}
}, {
key: "notifyBundleLoaded",
value: function() {}
}]),
e
}()
, Bo = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, [{
key: "Ei",
value: function(e) {}
}, {
key: "shutdown",
value: function() {}
}]),
e
}()
, Fo = function() {
function e() {
var t = this;
Object(p.a)(this, e),
this.Ii = function() {
return t.Ai()
}
,
this.Ri = function() {
return t.bi()
}
,
this.Pi = [],
this.vi()
}
return Object(h.a)(e, [{
key: "Ei",
value: function(e) {
this.Pi.push(e)
}
}, {
key: "shutdown",
value: function() {
window.removeEventListener("online", this.Ii),
window.removeEventListener("offline", this.Ri)
}
}, {
key: "vi",
value: function() {
window.addEventListener("online", this.Ii),
window.addEventListener("offline", this.Ri)
}
}, {
key: "Ai",
value: function() {
M("ConnectivityMonitor", "Network connectivity changed: AVAILABLE");
var e, t = Object(l.a)(this.Pi);
try {
for (t.s(); !(e = t.n()).done; )
(0,
e.value)(0)
} catch (e) {
t.e(e)
} finally {
t.f()
}
}
}, {
key: "bi",
value: function() {
M("ConnectivityMonitor", "Network connectivity changed: UNAVAILABLE");
var e, t = Object(l.a)(this.Pi);
try {
for (t.s(); !(e = t.n()).done; )
(0,
e.value)(1)
} catch (e) {
t.e(e)
} finally {
t.f()
}
}
}], [{
key: "Pt",
value: function() {
return "undefined" != typeof window && void 0 !== window.addEventListener && void 0 !== window.removeEventListener
}
}]),
e
}()
, Vo = {
BatchGetDocuments: "batchGet",
Commit: "commit",
RunQuery: "runQuery"
}
, Wo = function() {
function e(t) {
Object(p.a)(this, e),
this.Vi = t.Vi,
this.Si = t.Si
}
return Object(h.a)(e, [{
key: "Di",
value: function(e) {
this.Ci = e
}
}, {
key: "Ni",
value: function(e) {
this.ki = e
}
}, {
key: "onMessage",
value: function(e) {
this.xi = e
}
}, {
key: "close",
value: function() {
this.Si()
}
}, {
key: "send",
value: function(e) {
this.Vi(e)
}
}, {
key: "$i",
value: function() {
this.Ci()
}
}, {
key: "Oi",
value: function(e) {
this.ki(e)
}
}, {
key: "Fi",
value: function(e) {
this.xi(e)
}
}]),
e
}()
, qo = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this, e)).forceLongPolling = e.forceLongPolling,
r.autoDetectLongPolling = e.autoDetectLongPolling,
r.useFetchStreams = e.useFetchStreams,
r
}
return Object(h.a)(n, [{
key: "Ki",
value: function(e, t, n, r) {
return new Promise((function(i, o) {
var a = new x.g;
a.listenOnce(x.c.COMPLETE, (function() {
try {
switch (a.getLastErrorCode()) {
case x.a.NO_ERROR:
var t = a.getResponseJson();
M("Connection", "XHR received:", JSON.stringify(t)),
i(t);
break;
case x.a.TIMEOUT:
M("Connection", 'RPC "' + e + '" timed out'),
o(new L(D.DEADLINE_EXCEEDED,"Request time out"));
break;
case x.a.HTTP_ERROR:
var n = a.getStatus();
if (M("Connection", 'RPC "' + e + '" failed with status:', n, "response text:", a.getResponseText()),
n > 0) {
var r = a.getResponseJson().error;
if (r && r.status && r.message) {
var l = function(e) {
var t = e.toLowerCase().replace(/_/g, "-");
return Object.values(D).indexOf(t) >= 0 ? t : D.UNKNOWN
}(r.status);
o(new L(l,r.message))
} else
o(new L(D.UNKNOWN,"Server responded with status " + a.getStatus()))
} else
o(new L(D.UNAVAILABLE,"Connection failed."));
break;
default:
E()
}
} finally {
M("Connection", 'RPC "' + e + '" completed.')
}
}
));
var l = JSON.stringify(r);
a.send(t, "POST", l, n, 15)
}
))
}
}, {
key: "Qi",
value: function(e, t, n) {
var r = [this.Mi, "/", "google.firestore.v1.Firestore", "/", e, "/channel"]
, i = Object(x.h)()
, o = Object(x.i)()
, a = {
httpSessionIdParam: "gsessionid",
initMessageHeaders: {},
messageUrlParams: {
database: "projects/".concat(this.databaseId.projectId, "/databases/").concat(this.databaseId.database)
},
sendRawJson: !0,
supportsCrossDomainXhr: !0,
internalChannelParams: {
forwardChannelRequestTimeoutMs: 6e5
},
forceLongPolling: this.forceLongPolling,
detectBufferingProxy: this.autoDetectLongPolling
};
this.useFetchStreams && (a.xmlHttpFactory = new x.d({})),
this.qi(a.initMessageHeaders, t, n),
Object(y.s)() || Object(y.u)() || Object(y.o)() || Object(y.q)() || Object(y.w)() || Object(y.n)() || (a.httpHeadersOverwriteParam = "$httpHeaders");
var l = r.join("");
M("Connection", "Creating WebChannel: " + l, a);
var s = i.createWebChannel(l, a)
, c = !1
, u = !1
, d = new Wo({
Vi: function(e) {
u ? M("Connection", "Not sending because WebChannel is closed:", e) : (c || (M("Connection", "Opening WebChannel transport."),
s.open(),
c = !0),
M("Connection", "WebChannel sending:", e),
s.send(e))
},
Si: function() {
return s.close()
}
})
, p = function(e, t, n) {
e.listen(t, (function(e) {
try {
n(e)
} catch (e) {
setTimeout((function() {
throw e
}
), 0)
}
}
))
};
return p(s, x.f.EventType.OPEN, (function() {
u || M("Connection", "WebChannel transport opened.")
}
)),
p(s, x.f.EventType.CLOSE, (function() {
u || (u = !0,
M("Connection", "WebChannel transport closed"),
d.Oi())
}
)),
p(s, x.f.EventType.ERROR, (function(e) {
u || (u = !0,
A("Connection", "WebChannel transport errored:", e),
d.Oi(new L(D.UNAVAILABLE,"The operation could not be completed")))
}
)),
p(s, x.f.EventType.MESSAGE, (function(e) {
var t;
if (!u) {
var n = e.data[0];
I(!!n);
var r = n
, i = r.error || (null === (t = r[0]) || void 0 === t ? void 0 : t.error);
if (i) {
M("Connection", "WebChannel received error:", i);
var o = i.status
, a = function(e) {
var t = Jt[e];
if (void 0 !== t)
return rn(t)
}(o)
, l = i.message;
void 0 === a && (a = D.INTERNAL,
l = "Unknown error status: " + o + " with message " + i.message),
u = !0,
d.Oi(new L(a,l)),
s.close()
} else
M("Connection", "WebChannel received:", n),
d.Fi(n)
}
}
)),
p(o, x.b.STAT_EVENT, (function(e) {
e.stat === x.e.PROXY ? M("Connection", "Detected buffering proxy") : e.stat === x.e.NOPROXY && M("Connection", "Detected no buffering proxy")
}
)),
setTimeout((function() {
d.$i()
}
), 0),
d
}
}]),
n
}(function() {
function e(t) {
Object(p.a)(this, e),
this.databaseInfo = t,
this.databaseId = t.databaseId;
var n = t.ssl ? "https" : "http";
this.Mi = n + "://" + t.host,
this.Li = "projects/" + this.databaseId.projectId + "/databases/" + this.databaseId.database + "/documents"
}
return Object(h.a)(e, [{
key: "Bi",
value: function(e, t, n, r, i) {
var o = this.Ui(e, t);
M("RestConnection", "Sending: ", o, n);
var a = {};
return this.qi(a, r, i),
this.Ki(e, o, a, n).then((function(e) {
return M("RestConnection", "Received: ", e),
e
}
), (function(t) {
throw A("RestConnection", "".concat(e, " failed with error: "), t, "url: ", o, "request:", n),
t
}
))
}
}, {
key: "ji",
value: function(e, t, n, r, i) {
return this.Bi(e, t, n, r, i)
}
}, {
key: "qi",
value: function(e, t, n) {
e["X-Goog-Api-Client"] = "gl-js/ fire/" + k,
e["Content-Type"] = "text/plain",
this.databaseInfo.appId && (e["X-Firebase-GMPID"] = this.databaseInfo.appId),
t && t.headers.forEach((function(t, n) {
return e[n] = t
}
)),
n && n.headers.forEach((function(t, n) {
return e[n] = t
}
))
}
}, {
key: "Ui",
value: function(e, t) {
var n = Vo[e];
return "".concat(this.Mi, "/v1/").concat(t, ":").concat(n)
}
}]),
e
}());
function Ho() {
return "undefined" != typeof window ? window : null
}
function Uo() {
return "undefined" != typeof document ? document : null
}
function Xo(e) {
return new En(e,!0)
}
var Go = function() {
function e(t, n) {
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1e3
, i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 1.5
, o = arguments.length > 4 && void 0 !== arguments[4] ? arguments[4] : 6e4;
Object(p.a)(this, e),
this.Fe = t,
this.timerId = n,
this.Wi = r,
this.Gi = i,
this.zi = o,
this.Hi = 0,
this.Ji = null,
this.Yi = Date.now(),
this.reset()
}
return Object(h.a)(e, [{
key: "reset",
value: function() {
this.Hi = 0
}
}, {
key: "Xi",
value: function() {
this.Hi = this.zi
}
}, {
key: "Zi",
value: function(e) {
var t = this;
this.cancel();
var n = Math.floor(this.Hi + this.tr())
, r = Math.max(0, Date.now() - this.Yi)
, i = Math.max(0, n - r);
i > 0 && M("ExponentialBackoff", "Backing off for ".concat(i, " ms (base delay: ").concat(this.Hi, " ms, delay with jitter: ").concat(n, " ms, last attempt: ").concat(r, " ms ago)")),
this.Ji = this.Fe.enqueueAfterDelay(this.timerId, i, (function() {
return t.Yi = Date.now(),
e()
}
)),
this.Hi *= this.Gi,
this.Hi < this.Wi && (this.Hi = this.Wi),
this.Hi > this.zi && (this.Hi = this.zi)
}
}, {
key: "er",
value: function() {
null !== this.Ji && (this.Ji.skipDelay(),
this.Ji = null)
}
}, {
key: "cancel",
value: function() {
null !== this.Ji && (this.Ji.cancel(),
this.Ji = null)
}
}, {
key: "tr",
value: function() {
return (Math.random() - .5) * this.Hi
}
}]),
e
}()
, Ko = function() {
function e(t, n, r, i, o, a, l, s) {
Object(p.a)(this, e),
this.Fe = t,
this.nr = r,
this.sr = i,
this.ir = o,
this.authCredentialsProvider = a,
this.appCheckCredentialsProvider = l,
this.listener = s,
this.state = 0,
this.rr = 0,
this.ar = null,
this.cr = null,
this.stream = null,
this.ur = new Go(t,n)
}
return Object(h.a)(e, [{
key: "hr",
value: function() {
return 1 === this.state || 5 === this.state || this.lr()
}
}, {
key: "lr",
value: function() {
return 2 === this.state || 3 === this.state
}
}, {
key: "start",
value: function() {
4 !== this.state ? this.auth() : this.dr()
}
}, {
key: "stop",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = this.hr(),
!e.t0) {
e.next = 4;
break
}
return e.next = 4,
this.close(0);
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "wr",
value: function() {
this.state = 0,
this.ur.reset()
}
}, {
key: "_r",
value: function() {
var e = this;
this.lr() && null === this.ar && (this.ar = this.Fe.enqueueAfterDelay(this.nr, 6e4, (function() {
return e.mr()
}
)))
}
}, {
key: "gr",
value: function(e) {
this.yr(),
this.stream.send(e)
}
}, {
key: "mr",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this.lr()) {
e.next = 2;
break
}
return e.abrupt("return", this.close(0));
case 2:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "yr",
value: function() {
this.ar && (this.ar.cancel(),
this.ar = null)
}
}, {
key: "pr",
value: function() {
this.cr && (this.cr.cancel(),
this.cr = null)
}
}, {
key: "close",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.yr(),
this.pr(),
this.ur.cancel(),
this.rr++,
4 !== t ? this.ur.reset() : n && n.code === D.RESOURCE_EXHAUSTED ? (S(n.toString()),
S("Using maximum backoff delay to prevent overloading the backend."),
this.ur.Xi()) : n && n.code === D.UNAUTHENTICATED && 3 !== this.state && (this.authCredentialsProvider.invalidateToken(),
this.appCheckCredentialsProvider.invalidateToken()),
null !== this.stream && (this.Tr(),
this.stream.close(),
this.stream = null),
this.state = t,
e.next = 9,
this.listener.Ni(n);
case 9:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "Tr",
value: function() {}
}, {
key: "auth",
value: function() {
var e = this;
this.state = 1;
var t = this.Er(this.rr)
, n = this.rr;
Promise.all([this.authCredentialsProvider.getToken(), this.appCheckCredentialsProvider.getToken()]).then((function(t) {
var r = Object(a.a)(t, 2)
, i = r[0]
, o = r[1];
e.rr === n && e.Ir(i, o)
}
), (function(n) {
t((function() {
var t = new L(D.UNKNOWN,"Fetching auth token failed: " + n.message);
return e.Ar(t)
}
))
}
))
}
}, {
key: "Ir",
value: function(e, t) {
var n = this
, r = this.Er(this.rr);
this.stream = this.Rr(e, t),
this.stream.Di((function() {
r((function() {
return n.state = 2,
n.cr = n.Fe.enqueueAfterDelay(n.sr, 1e4, (function() {
return n.lr() && (n.state = 3),
Promise.resolve()
}
)),
n.listener.Di()
}
))
}
)),
this.stream.Ni((function(e) {
r((function() {
return n.Ar(e)
}
))
}
)),
this.stream.onMessage((function(e) {
r((function() {
return n.onMessage(e)
}
))
}
))
}
}, {
key: "dr",
value: function() {
var e = this;
this.state = 5,
this.ur.Zi(Object(s.a)(b.a.mark((function t() {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
e.state = 0,
e.start();
case 1:
case "end":
return t.stop()
}
}
), t)
}
))))
}
}, {
key: "Ar",
value: function(e) {
return M("PersistentStream", "close with error: ".concat(e)),
this.stream = null,
this.close(4, e)
}
}, {
key: "Er",
value: function(e) {
var t = this;
return function(n) {
t.Fe.enqueueAndForget((function() {
return t.rr === e ? n() : (M("PersistentStream", "stream callback skipped by getCloseGuardedDispatcher."),
Promise.resolve())
}
))
}
}
}]),
e
}()
, Yo = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i, o, a, l) {
var s;
return Object(p.a)(this, n),
(s = t.call(this, e, "listen_stream_connection_backoff", "listen_stream_idle", "health_check_timeout", r, i, o, l)).k = a,
s
}
return Object(h.a)(n, [{
key: "Rr",
value: function(e, t) {
return this.ir.Qi("Listen", e, t)
}
}, {
key: "onMessage",
value: function(e) {
this.ur.reset();
var t = function(e, t) {
var n;
if ("targetChange"in t) {
t.targetChange;
var r = function(e) {
return "NO_CHANGE" === e ? 0 : "ADD" === e ? 1 : "REMOVE" === e ? 2 : "CURRENT" === e ? 3 : "RESET" === e ? 4 : E()
}(t.targetChange.targetChangeType || "NO_CHANGE")
, i = t.targetChange.targetIds || []
, o = function(e, t) {
return e.C ? (I(void 0 === t || "string" == typeof t),
ce.fromBase64String(t || "")) : (I(void 0 === t || t instanceof Uint8Array),
ce.fromUint8Array(t || new Uint8Array))
}(e, t.targetChange.resumeToken)
, a = t.targetChange.cause
, l = a && function(e) {
var t = void 0 === e.code ? D.UNKNOWN : rn(e.code);
return new L(t,e.message || "")
}(a);
n = new wn(r,i,o,l || null)
} else if ("documentChange"in t) {
t.documentChange;
var s = t.documentChange;
s.document,
s.document.name,
s.document.updateTime;
var c = Bn(e, s.document.name)
, u = Dn(s.document.updateTime)
, d = new De({
mapValue: {
fields: s.document.fields
}
})
, p = Re.newFoundDocument(c, u, d)
, h = s.targetIds || []
, f = s.removedTargetIds || [];
n = new jn(h,f,p.key,p)
} else if ("documentDelete"in t) {
t.documentDelete;
var b = t.documentDelete;
b.document;
var g = Bn(e, b.document)
, m = b.readTime ? Dn(b.readTime) : $.min()
, v = Re.newNoDocument(g, m)
, y = b.removedTargetIds || [];
n = new jn([],y,v.key,v)
} else if ("documentRemove"in t) {
t.documentRemove;
var x = t.documentRemove;
x.document;
var O = Bn(e, x.document)
, j = x.removedTargetIds || [];
n = new jn([],j,O,null)
} else {
if (!("filter"in t))
return E();
t.filter;
var k = t.filter;
k.targetId;
var w = k.count || 0
, C = new tn(w)
, _ = k.targetId;
n = new kn(_,C)
}
return n
}(this.k, e)
, n = function(e) {
if (!("targetChange"in e))
return $.min();
var t = e.targetChange;
return t.targetIds && t.targetIds.length ? $.min() : t.readTime ? Dn(t.readTime) : $.min()
}(e);
return this.listener.br(t, n)
}
}, {
key: "Pr",
value: function(e) {
var t = {};
t.database = Wn(this.k),
t.addTarget = function(e, t) {
var n, r = t.target;
return (n = We(r) ? {
documents: Yn(e, r)
} : {
query: Qn(e, r)
}).targetId = t.targetId,
t.resumeToken.approximateByteSize() > 0 ? n.resumeToken = Nn(e, t.resumeToken) : t.snapshotVersion.compareTo($.min()) > 0 && (n.readTime = In(e, t.snapshotVersion.toTimestamp())),
n
}(this.k, e);
var n = function(e, t) {
var n = function(e, t) {
switch (t) {
case 0:
return null;
case 1:
return "existence-filter-mismatch";
case 2:
return "limbo-document";
default:
return E()
}
}(0, t.purpose);
return null == n ? null : {
"goog-listen-tags": n
}
}(this.k, e);
n && (t.labels = n),
this.gr(t)
}
}, {
key: "vr",
value: function(e) {
var t = {};
t.database = Wn(this.k),
t.removeTarget = e,
this.gr(t)
}
}]),
n
}(Ko)
, Qo = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i, o, a, l) {
var s;
return Object(p.a)(this, n),
(s = t.call(this, e, "write_stream_connection_backoff", "write_stream_idle", "health_check_timeout", r, i, o, l)).k = a,
s.Vr = !1,
s
}
return Object(h.a)(n, [{
key: "Sr",
get: function() {
return this.Vr
}
}, {
key: "start",
value: function() {
this.Vr = !1,
this.lastStreamToken = void 0,
Object(i.a)(Object(o.a)(n.prototype), "start", this).call(this)
}
}, {
key: "Tr",
value: function() {
this.Vr && this.Dr([])
}
}, {
key: "Rr",
value: function(e, t) {
return this.ir.Qi("Write", e, t)
}
}, {
key: "onMessage",
value: function(e) {
if (I(!!e.streamToken),
this.lastStreamToken = e.streamToken,
this.Vr) {
this.ur.reset();
var t = function(e, t) {
return e && e.length > 0 ? (I(void 0 !== t),
e.map((function(e) {
return function(e, t) {
var n = e.updateTime ? Dn(e.updateTime) : Dn(t);
return n.isEqual($.min()) && (n = Dn(t)),
new Rt(n,e.transformResults || [])
}(e, t)
}
))) : []
}(e.writeResults, e.commitTime)
, n = Dn(e.commitTime);
return this.listener.Cr(n, t)
}
return I(!e.writeResults || 0 === e.writeResults.length),
this.Vr = !0,
this.listener.Nr()
}
}, {
key: "kr",
value: function() {
var e = {};
e.database = Wn(this.k),
this.gr(e)
}
}, {
key: "Dr",
value: function(e) {
var t = this
, n = {
streamToken: this.lastStreamToken,
writes: e.map((function(e) {
return Gn(t.k, e)
}
))
};
this.gr(n)
}
}]),
n
}(Ko)
, Jo = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i, o) {
var a;
return Object(p.a)(this, n),
(a = t.call(this)).authCredentials = e,
a.appCheckCredentials = r,
a.ir = i,
a.k = o,
a.$r = !1,
a
}
return Object(h.a)(n, [{
key: "Or",
value: function() {
if (this.$r)
throw new L(D.FAILED_PRECONDITION,"The client has already been terminated.")
}
}, {
key: "Bi",
value: function(e, t, n) {
var r = this;
return this.Or(),
Promise.all([this.authCredentials.getToken(), this.appCheckCredentials.getToken()]).then((function(i) {
var o = Object(a.a)(i, 2)
, l = o[0]
, s = o[1];
return r.ir.Bi(e, t, n, l, s)
}
)).catch((function(e) {
throw "FirebaseError" === e.name ? (e.code === D.UNAUTHENTICATED && (r.authCredentials.invalidateToken(),
r.appCheckCredentials.invalidateToken()),
e) : new L(D.UNKNOWN,e.toString())
}
))
}
}, {
key: "ji",
value: function(e, t, n) {
var r = this;
return this.Or(),
Promise.all([this.authCredentials.getToken(), this.appCheckCredentials.getToken()]).then((function(i) {
var o = Object(a.a)(i, 2)
, l = o[0]
, s = o[1];
return r.ir.ji(e, t, n, l, s)
}
)).catch((function(e) {
throw "FirebaseError" === e.name ? (e.code === D.UNAUTHENTICATED && (r.authCredentials.invalidateToken(),
r.appCheckCredentials.invalidateToken()),
e) : new L(D.UNKNOWN,e.toString())
}
))
}
}, {
key: "terminate",
value: function() {
this.$r = !0
}
}]),
n
}(Object(h.a)((function e() {
Object(p.a)(this, e)
}
)))
, Zo = function() {
function e(t, n) {
Object(p.a)(this, e),
this.asyncQueue = t,
this.onlineStateHandler = n,
this.state = "Unknown",
this.Fr = 0,
this.Mr = null,
this.Lr = !0
}
return Object(h.a)(e, [{
key: "Br",
value: function() {
var e = this;
0 === this.Fr && (this.Ur("Unknown"),
this.Mr = this.asyncQueue.enqueueAfterDelay("online_state_timeout", 1e4, (function() {
return e.Mr = null,
e.qr("Backend didn't respond within 10 seconds."),
e.Ur("Offline"),
Promise.resolve()
}
)))
}
}, {
key: "Kr",
value: function(e) {
"Online" === this.state ? this.Ur("Unknown") : (this.Fr++,
this.Fr >= 1 && (this.jr(),
this.qr("Connection failed 1 times. Most recent error: ".concat(e.toString())),
this.Ur("Offline")))
}
}, {
key: "set",
value: function(e) {
this.jr(),
this.Fr = 0,
"Online" === e && (this.Lr = !1),
this.Ur(e)
}
}, {
key: "Ur",
value: function(e) {
e !== this.state && (this.state = e,
this.onlineStateHandler(e))
}
}, {
key: "qr",
value: function(e) {
var t = "Could not reach Cloud Firestore backend. ".concat(e, "\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");
this.Lr ? (S(t),
this.Lr = !1) : M("OnlineStateTracker", t)
}
}, {
key: "jr",
value: function() {
null !== this.Mr && (this.Mr.cancel(),
this.Mr = null)
}
}]),
e
}()
, $o = Object(h.a)((function e(t, n, r, i, o) {
var a = this;
Object(p.a)(this, e),
this.localStore = t,
this.datastore = n,
this.asyncQueue = r,
this.remoteSyncer = {},
this.Qr = [],
this.Wr = new Map,
this.Gr = new Set,
this.zr = [],
this.Hr = o,
this.Hr.Ei((function(e) {
r.enqueueAndForget(Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = ua(a),
!e.t0) {
e.next = 5;
break
}
return M("RemoteStore", "Restarting streams for network reachability change."),
e.next = 5,
function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return (n = z(t)).Gr.add(4),
e.next = 4,
na(n);
case 4:
return n.Jr.set("Unknown"),
n.Gr.delete(4),
e.next = 8,
ea(n);
case 8:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()(a);
case 5:
case "end":
return e.stop()
}
}
), e)
}
))))
}
)),
this.Jr = new Zo(r,i)
}
));
function ea(e) {
return ta.apply(this, arguments)
}
function ta() {
return (ta = Object(s.a)(b.a.mark((function e(t) {
var n, r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!ua(t)) {
e.next = 18;
break
}
n = Object(l.a)(t.zr),
e.prev = 2,
n.s();
case 4:
if ((r = n.n()).done) {
e.next = 10;
break
}
return i = r.value,
e.next = 8,
i(!0);
case 8:
e.next = 4;
break;
case 10:
e.next = 15;
break;
case 12:
e.prev = 12,
e.t0 = e.catch(2),
n.e(e.t0);
case 15:
return e.prev = 15,
n.f(),
e.finish(15);
case 18:
case "end":
return e.stop()
}
}
), e, null, [[2, 12, 15, 18]])
}
)))).apply(this, arguments)
}
function na(e) {
return ra.apply(this, arguments)
}
function ra() {
return (ra = Object(s.a)(b.a.mark((function e(t) {
var n, r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
n = Object(l.a)(t.zr),
e.prev = 1,
n.s();
case 3:
if ((r = n.n()).done) {
e.next = 9;
break
}
return i = r.value,
e.next = 7,
i(!1);
case 7:
e.next = 3;
break;
case 9:
e.next = 14;
break;
case 11:
e.prev = 11,
e.t0 = e.catch(1),
n.e(e.t0);
case 14:
return e.prev = 14,
n.f(),
e.finish(14);
case 17:
case "end":
return e.stop()
}
}
), e, null, [[1, 11, 14, 17]])
}
)))).apply(this, arguments)
}
function ia(e, t) {
var n = z(e);
n.Wr.has(t.targetId) || (n.Wr.set(t.targetId, t),
ca(n) ? sa(n) : Ra(n).lr() && aa(n, t))
}
function oa(e, t) {
var n = z(e)
, r = Ra(n);
n.Wr.delete(t),
r.lr() && la(n, t),
0 === n.Wr.size && (r.lr() ? r._r() : ua(n) && n.Jr.set("Unknown"))
}
function aa(e, t) {
e.Yr.X(t.targetId),
Ra(e).Pr(t)
}
function la(e, t) {
e.Yr.X(t),
Ra(e).vr(t)
}
function sa(e) {
e.Yr = new _n({
getRemoteKeysForTarget: function(t) {
return e.remoteSyncer.getRemoteKeysForTarget(t)
},
Et: function(t) {
return e.Wr.get(t) || null
}
}),
Ra(e).start(),
e.Jr.Br()
}
function ca(e) {
return ua(e) && !Ra(e).hr() && e.Wr.size > 0
}
function ua(e) {
return 0 === z(e).Gr.size
}
function da(e) {
e.Yr = void 0
}
function pa(e) {
return ha.apply(this, arguments)
}
function ha() {
return (ha = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
t.Wr.forEach((function(e, n) {
aa(t, e)
}
));
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function fa(e, t) {
return ba.apply(this, arguments)
}
function ba() {
return (ba = Object(s.a)(b.a.mark((function e(t, n) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
da(t),
ca(t) ? (t.Jr.Kr(n),
sa(t)) : t.Jr.set("Unknown");
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ga(e, t, n) {
return ma.apply(this, arguments)
}
function ma() {
return ma = Object(s.a)(b.a.mark((function e(t, n, r) {
var i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t.Jr.set("Online"),
!(n instanceof wn && 2 === n.state && n.cause)) {
e.next = 13;
break
}
return e.prev = 1,
e.next = 4,
function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
r = n.cause,
i = Object(l.a)(n.targetIds),
e.prev = 2,
i.s();
case 4:
if ((o = i.n()).done) {
e.next = 14;
break
}
if (a = o.value,
e.t0 = t.Wr.has(a),
!e.t0) {
e.next = 12;
break
}
return e.next = 10,
t.remoteSyncer.rejectListen(a, r);
case 10:
t.Wr.delete(a),
t.Yr.removeTarget(a);
case 12:
e.next = 4;
break;
case 14:
e.next = 19;
break;
case 16:
e.prev = 16,
e.t1 = e.catch(2),
i.e(e.t1);
case 19:
return e.prev = 19,
i.f(),
e.finish(19);
case 22:
case "end":
return e.stop()
}
}
), e, null, [[2, 16, 19, 22]])
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()(t, n);
case 4:
e.next = 11;
break;
case 6:
return e.prev = 6,
e.t0 = e.catch(1),
M("RemoteStore", "Failed to remove targets %s: %s ", n.targetIds.join(","), e.t0),
e.next = 11,
va(t, e.t0);
case 11:
case 22:
e.next = 29;
break;
case 13:
if (n instanceof jn ? t.Yr.ot(n) : n instanceof kn ? t.Yr.dt(n) : t.Yr.ut(n),
r.isEqual($.min())) {
e.next = 29;
break
}
return e.prev = 14,
e.next = 17,
no(t.localStore);
case 17:
if (i = e.sent,
e.t1 = r.compareTo(i) >= 0,
!e.t1) {
e.next = 22;
break
}
return e.next = 22,
function(e, t) {
var n = e.Yr.gt(t);
return n.targetChanges.forEach((function(n, r) {
if (n.resumeToken.approximateByteSize() > 0) {
var i = e.Wr.get(r);
i && e.Wr.set(r, i.withResumeToken(n.resumeToken, t))
}
}
)),
n.targetMismatches.forEach((function(t) {
var n = e.Wr.get(t);
if (n) {
e.Wr.set(t, n.withResumeToken(ce.EMPTY_BYTE_STRING, n.snapshotVersion)),
la(e, t);
var r = new Xr(n.target,t,1,n.sequenceNumber);
aa(e, r)
}
}
)),
e.remoteSyncer.applyRemoteEvent(n)
}(t, r);
case 24:
return e.prev = 24,
e.t2 = e.catch(14),
M("RemoteStore", "Failed to raise snapshot:", e.t2),
e.next = 29,
va(t, e.t2);
case 29:
case "end":
return e.stop()
}
}
), e, null, [[1, 6], [14, 24]])
}
))),
ma.apply(this, arguments)
}
function va(e, t, n) {
return ya.apply(this, arguments)
}
function ya() {
return (ya = Object(s.a)(b.a.mark((function e(t, n, r) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (Rr(n)) {
e.next = 2;
break
}
throw n;
case 2:
return t.Gr.add(1),
e.next = 5,
na(t);
case 5:
t.Jr.set("Offline"),
r || (r = function() {
return no(t.localStore)
}
),
t.asyncQueue.enqueueRetryable(Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return M("RemoteStore", "Retrying IndexedDB access"),
e.next = 3,
r();
case 3:
return t.Gr.delete(1),
e.next = 6,
ea(t);
case 6:
case "end":
return e.stop()
}
}
), e)
}
))));
case 8:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function xa(e, t) {
return t().catch((function(n) {
return va(e, n, t)
}
))
}
function Oa(e) {
return ja.apply(this, arguments)
}
function ja() {
return (ja = Object(s.a)(b.a.mark((function e(t) {
var n, r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
n = z(t),
r = Pa(n),
i = n.Qr.length > 0 ? n.Qr[n.Qr.length - 1].batchId : -1;
case 2:
if (!ka(n)) {
e.next = 19;
break
}
return e.prev = 3,
e.next = 6,
oo(n.localStore, i);
case 6:
if (null !== (o = e.sent)) {
e.next = 10;
break
}
return 0 === n.Qr.length && r._r(),
e.abrupt("break", 19);
case 10:
i = o.batchId,
wa(n, o),
e.next = 17;
break;
case 13:
return e.prev = 13,
e.t0 = e.catch(3),
e.next = 17,
va(n, e.t0);
case 17:
e.next = 2;
break;
case 19:
Ca(n) && _a(n);
case 20:
case "end":
return e.stop()
}
}
), e, null, [[3, 13]])
}
)))).apply(this, arguments)
}
function ka(e) {
return ua(e) && e.Qr.length < 10
}
function wa(e, t) {
e.Qr.push(t);
var n = Pa(e);
n.lr() && n.Sr && n.Dr(t.mutations)
}
function Ca(e) {
return ua(e) && !Pa(e).hr() && e.Qr.length > 0
}
function _a(e) {
Pa(e).start()
}
function Ma(e) {
return Sa.apply(this, arguments)
}
function Sa() {
return (Sa = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
Pa(t).kr();
case 1:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Aa(e) {
return Ta.apply(this, arguments)
}
function Ta() {
return (Ta = Object(s.a)(b.a.mark((function e(t) {
var n, r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
n = Pa(t),
r = Object(l.a)(t.Qr);
try {
for (r.s(); !(i = r.n()).done; )
o = i.value,
n.Dr(o.mutations)
} catch (e) {
r.e(e)
} finally {
r.f()
}
case 3:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ea(e, t, n) {
return Ia.apply(this, arguments)
}
function Ia() {
return (Ia = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = t.Qr.shift(),
o = Ur.from(i, n, r),
e.next = 3,
xa(t, (function() {
return t.remoteSyncer.applySuccessfulWrite(o)
}
));
case 3:
return e.next = 5,
Oa(t);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Na(e, t) {
return za.apply(this, arguments)
}
function za() {
return za = Object(s.a)(b.a.mark((function e(t, n) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = n && Pa(t).Sr,
!e.t0) {
e.next = 4;
break
}
return e.next = 4,
function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!nn(i = n.code) || i === D.ABORTED) {
e.next = 7;
break
}
return r = t.Qr.shift(),
Pa(t).wr(),
e.next = 5,
xa(t, (function() {
return t.remoteSyncer.rejectFailedWrite(r.batchId, n)
}
));
case 5:
return e.next = 7,
Oa(t);
case 7:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()(t, n);
case 4:
Ca(t) && _a(t);
case 5:
case "end":
return e.stop()
}
}
), e)
}
))),
za.apply(this, arguments)
}
function Da(e, t) {
return La.apply(this, arguments)
}
function La() {
return (La = Object(s.a)(b.a.mark((function e(t, n) {
var r;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = z(t),
!n) {
e.next = 7;
break
}
return r.Gr.delete(2),
e.next = 5,
ea(r);
case 5:
e.next = 13;
break;
case 7:
if (e.t0 = n,
e.t0) {
e.next = 13;
break
}
return r.Gr.add(2),
e.next = 12,
na(r);
case 12:
r.Jr.set("Unknown");
case 13:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ra(e) {
return e.Xr || (e.Xr = function(e, t, n) {
var r = z(e);
return r.Or(),
new Yo(t,r.ir,r.authCredentials,r.appCheckCredentials,r.k,n)
}(e.datastore, e.asyncQueue, {
Di: pa.bind(null, e),
Ni: fa.bind(null, e),
br: ga.bind(null, e)
}),
e.zr.push(function() {
var t = Object(s.a)(b.a.mark((function t(n) {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
if (!n) {
t.next = 4;
break
}
e.Xr.wr(),
ca(e) ? sa(e) : e.Jr.set("Unknown"),
t.next = 7;
break;
case 4:
return t.next = 6,
e.Xr.stop();
case 6:
da(e);
case 7:
case "end":
return t.stop()
}
}
), t)
}
)));
return function(e) {
return t.apply(this, arguments)
}
}())),
e.Xr
}
function Pa(e) {
return e.Zr || (e.Zr = function(e, t, n) {
var r = z(e);
return r.Or(),
new Qo(t,r.ir,r.authCredentials,r.appCheckCredentials,r.k,n)
}(e.datastore, e.asyncQueue, {
Di: Ma.bind(null, e),
Ni: Na.bind(null, e),
Nr: Aa.bind(null, e),
Cr: Ea.bind(null, e)
}),
e.zr.push(function() {
var t = Object(s.a)(b.a.mark((function t(n) {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
if (!n) {
t.next = 6;
break
}
return e.Zr.wr(),
t.next = 4,
Oa(e);
case 4:
t.next = 9;
break;
case 6:
return t.next = 8,
e.Zr.stop();
case 8:
e.Qr.length > 0 && (M("RemoteStore", "Stopping write stream with ".concat(e.Qr.length, " pending writes")),
e.Qr = []);
case 9:
case "end":
return t.stop()
}
}
), t)
}
)));
return function(e) {
return t.apply(this, arguments)
}
}())),
e.Zr
}
var Ba = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this.asyncQueue = t,
this.timerId = n,
this.targetTimeMs = r,
this.op = i,
this.removalCallback = o,
this.deferred = new R,
this.then = this.deferred.promise.then.bind(this.deferred.promise),
this.deferred.promise.catch((function(e) {}
))
}
return Object(h.a)(e, [{
key: "start",
value: function(e) {
var t = this;
this.timerHandle = setTimeout((function() {
return t.handleDelayElapsed()
}
), e)
}
}, {
key: "skipDelay",
value: function() {
return this.handleDelayElapsed()
}
}, {
key: "cancel",
value: function(e) {
null !== this.timerHandle && (this.clearTimeout(),
this.deferred.reject(new L(D.CANCELLED,"Operation cancelled" + (e ? ": " + e : ""))))
}
}, {
key: "handleDelayElapsed",
value: function() {
var e = this;
this.asyncQueue.enqueueAndForget((function() {
return null !== e.timerHandle ? (e.clearTimeout(),
e.op().then((function(t) {
return e.deferred.resolve(t)
}
))) : Promise.resolve()
}
))
}
}, {
key: "clearTimeout",
value: function(e) {
function t() {
return e.apply(this, arguments)
}
return t.toString = function() {
return e.toString()
}
,
t
}((function() {
null !== this.timerHandle && (this.removalCallback(this),
clearTimeout(this.timerHandle),
this.timerHandle = null)
}
))
}], [{
key: "createAndSchedule",
value: function(t, n, r, i, o) {
var a = new e(t,n,Date.now() + r,i,o);
return a.start(r),
a
}
}]),
e
}();
function Fa(e, t) {
if (S("AsyncQueue", "".concat(t, ": ").concat(e)),
Rr(e))
return new L(D.UNAVAILABLE,"".concat(t, ": ").concat(e));
throw e
}
var Va = function() {
function e(t) {
Object(p.a)(this, e),
this.comparator = t ? function(e, n) {
return t(e, n) || xe.comparator(e.key, n.key)
}
: function(e, t) {
return xe.comparator(e.key, t.key)
}
,
this.keyedMap = hn(),
this.sortedSet = new on(this.comparator)
}
return Object(h.a)(e, [{
key: "has",
value: function(e) {
return null != this.keyedMap.get(e)
}
}, {
key: "get",
value: function(e) {
return this.keyedMap.get(e)
}
}, {
key: "first",
value: function() {
return this.sortedSet.minKey()
}
}, {
key: "last",
value: function() {
return this.sortedSet.maxKey()
}
}, {
key: "isEmpty",
value: function() {
return this.sortedSet.isEmpty()
}
}, {
key: "indexOf",
value: function(e) {
var t = this.keyedMap.get(e);
return t ? this.sortedSet.indexOf(t) : -1
}
}, {
key: "size",
get: function() {
return this.sortedSet.size
}
}, {
key: "forEach",
value: function(e) {
this.sortedSet.inorderTraversal((function(t, n) {
return e(t),
!1
}
))
}
}, {
key: "add",
value: function(e) {
var t = this.delete(e.key);
return t.copy(t.keyedMap.insert(e.key, e), t.sortedSet.insert(e, null))
}
}, {
key: "delete",
value: function(e) {
var t = this.get(e);
return t ? this.copy(this.keyedMap.remove(e), this.sortedSet.remove(t)) : this
}
}, {
key: "isEqual",
value: function(t) {
if (!(t instanceof e))
return !1;
if (this.size !== t.size)
return !1;
for (var n = this.sortedSet.getIterator(), r = t.sortedSet.getIterator(); n.hasNext(); ) {
var i = n.getNext().key
, o = r.getNext().key;
if (!i.isEqual(o))
return !1
}
return !0
}
}, {
key: "toString",
value: function() {
var e = [];
return this.forEach((function(t) {
e.push(t.toString())
}
)),
0 === e.length ? "DocumentSet ()" : "DocumentSet (\n " + e.join(" \n") + "\n)"
}
}, {
key: "copy",
value: function(t, n) {
var r = new e;
return r.comparator = this.comparator,
r.keyedMap = t,
r.sortedSet = n,
r
}
}], [{
key: "emptySet",
value: function(t) {
return new e(t.comparator)
}
}]),
e
}()
, Wa = function() {
function e() {
Object(p.a)(this, e),
this.eo = new on(xe.comparator)
}
return Object(h.a)(e, [{
key: "track",
value: function(e) {
var t = e.doc.key
, n = this.eo.get(t);
n ? 0 !== e.type && 3 === n.type ? this.eo = this.eo.insert(t, e) : 3 === e.type && 1 !== n.type ? this.eo = this.eo.insert(t, {
type: n.type,
doc: e.doc
}) : 2 === e.type && 2 === n.type ? this.eo = this.eo.insert(t, {
type: 2,
doc: e.doc
}) : 2 === e.type && 0 === n.type ? this.eo = this.eo.insert(t, {
type: 0,
doc: e.doc
}) : 1 === e.type && 0 === n.type ? this.eo = this.eo.remove(t) : 1 === e.type && 2 === n.type ? this.eo = this.eo.insert(t, {
type: 1,
doc: n.doc
}) : 0 === e.type && 1 === n.type ? this.eo = this.eo.insert(t, {
type: 2,
doc: e.doc
}) : E() : this.eo = this.eo.insert(t, e)
}
}, {
key: "no",
value: function() {
var e = [];
return this.eo.inorderTraversal((function(t, n) {
e.push(n)
}
)),
e
}
}]),
e
}()
, qa = function() {
function e(t, n, r, i, o, a, l, s) {
Object(p.a)(this, e),
this.query = t,
this.docs = n,
this.oldDocs = r,
this.docChanges = i,
this.mutatedKeys = o,
this.fromCache = a,
this.syncStateChanged = l,
this.excludesMetadataChanges = s
}
return Object(h.a)(e, [{
key: "hasPendingWrites",
get: function() {
return !this.mutatedKeys.isEmpty()
}
}, {
key: "isEqual",
value: function(e) {
if (!(this.fromCache === e.fromCache && this.syncStateChanged === e.syncStateChanged && this.mutatedKeys.isEqual(e.mutatedKeys) && bt(this.query, e.query) && this.docs.isEqual(e.docs) && this.oldDocs.isEqual(e.oldDocs)))
return !1;
var t = this.docChanges
, n = e.docChanges;
if (t.length !== n.length)
return !1;
for (var r = 0; r < t.length; r++)
if (t[r].type !== n[r].type || !t[r].doc.isEqual(n[r].doc))
return !1;
return !0
}
}], [{
key: "fromInitialDocuments",
value: function(t, n, r, i) {
var o = [];
return n.forEach((function(e) {
o.push({
type: 0,
doc: e
})
}
)),
new e(t,n,Va.emptySet(n),o,r,i,!0,!1)
}
}]),
e
}()
, Ha = Object(h.a)((function e() {
Object(p.a)(this, e),
this.so = void 0,
this.listeners = []
}
))
, Ua = Object(h.a)((function e() {
Object(p.a)(this, e),
this.queries = new Ni((function(e) {
return gt(e)
}
),bt),
this.onlineState = "Unknown",
this.io = new Set
}
));
function Xa(e, t) {
return Ga.apply(this, arguments)
}
function Ga() {
return (Ga = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a, l;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = z(t),
i = n.query,
o = !1,
(a = r.queries.get(i)) || (o = !0,
a = new Ha),
!o) {
e.next = 13;
break
}
return e.prev = 3,
e.next = 6,
r.onListen(i);
case 6:
a.so = e.sent,
e.next = 13;
break;
case 9:
return e.prev = 9,
e.t0 = e.catch(3),
l = Fa(e.t0, "Initialization of query '".concat(mt(n.query), "' failed")),
e.abrupt("return", void n.onError(l));
case 13:
r.queries.set(i, a),
a.listeners.push(n),
n.ro(r.onlineState),
a.so && n.oo(a.so) && Za(r);
case 14:
case "end":
return e.stop()
}
}
), e, null, [[3, 9]])
}
)))).apply(this, arguments)
}
function Ka(e, t) {
return Ya.apply(this, arguments)
}
function Ya() {
return (Ya = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a, l;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = z(t),
i = n.query,
o = !1,
(a = r.queries.get(i)) && (l = a.listeners.indexOf(n)) >= 0 && (a.listeners.splice(l, 1),
o = 0 === a.listeners.length),
!o) {
e.next = 6;
break
}
return e.abrupt("return", (r.queries.delete(i),
r.onUnlisten(i)));
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Qa(e, t) {
var n, r = z(e), i = !1, o = Object(l.a)(t);
try {
for (o.s(); !(n = o.n()).done; ) {
var a = n.value
, s = a.query
, c = r.queries.get(s);
if (c) {
var u, d = Object(l.a)(c.listeners);
try {
for (d.s(); !(u = d.n()).done; )
u.value.oo(a) && (i = !0)
} catch (e) {
d.e(e)
} finally {
d.f()
}
c.so = a
}
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
i && Za(r)
}
function Ja(e, t, n) {
var r = z(e)
, i = r.queries.get(t);
if (i) {
var o, a = Object(l.a)(i.listeners);
try {
for (a.s(); !(o = a.n()).done; )
o.value.onError(n)
} catch (e) {
a.e(e)
} finally {
a.f()
}
}
r.queries.delete(t)
}
function Za(e) {
e.io.forEach((function(e) {
e.next()
}
))
}
var $a = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.query = t,
this.ao = n,
this.co = !1,
this.uo = null,
this.onlineState = "Unknown",
this.options = r || {}
}
return Object(h.a)(e, [{
key: "oo",
value: function(e) {
if (!this.options.includeMetadataChanges) {
var t, n = [], r = Object(l.a)(e.docChanges);
try {
for (r.s(); !(t = r.n()).done; ) {
var i = t.value;
3 !== i.type && n.push(i)
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
e = new qa(e.query,e.docs,e.oldDocs,n,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)
}
var o = !1;
return this.co ? this.ho(e) && (this.ao.next(e),
o = !0) : this.lo(e, this.onlineState) && (this.fo(e),
o = !0),
this.uo = e,
o
}
}, {
key: "onError",
value: function(e) {
this.ao.error(e)
}
}, {
key: "ro",
value: function(e) {
this.onlineState = e;
var t = !1;
return this.uo && !this.co && this.lo(this.uo, e) && (this.fo(this.uo),
t = !0),
t
}
}, {
key: "lo",
value: function(e, t) {
if (!e.fromCache)
return !0;
var n = "Offline" !== t;
return !(this.options.wo && n || e.docs.isEmpty() && "Offline" !== t)
}
}, {
key: "ho",
value: function(e) {
if (e.docChanges.length > 0)
return !0;
var t = this.uo && this.uo.hasPendingWrites !== e.hasPendingWrites;
return !(!e.syncStateChanged && !t) && !0 === this.options.includeMetadataChanges
}
}, {
key: "fo",
value: function(e) {
e = qa.fromInitialDocuments(e.query, e.docs, e.mutatedKeys, e.fromCache),
this.co = !0,
this.ao.next(e)
}
}]),
e
}()
, el = function() {
function e(t, n) {
Object(p.a)(this, e),
this.payload = t,
this.byteLength = n
}
return Object(h.a)(e, [{
key: "_o",
value: function() {
return "metadata"in this.payload
}
}]),
e
}()
, tl = function() {
function e(t) {
Object(p.a)(this, e),
this.k = t
}
return Object(h.a)(e, [{
key: "Hn",
value: function(e) {
return Bn(this.k, e)
}
}, {
key: "Jn",
value: function(e) {
return e.metadata.exists ? Un(this.k, e.document, !1) : Re.newNoDocument(this.Hn(e.metadata.name), this.Yn(e.metadata.readTime))
}
}, {
key: "Yn",
value: function(e) {
return Dn(e)
}
}]),
e
}()
, nl = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.mo = t,
this.localStore = n,
this.k = r,
this.queries = [],
this.documents = [],
this.progress = rl(t)
}
return Object(h.a)(e, [{
key: "yo",
value: function(e) {
this.progress.bytesLoaded += e.byteLength;
var t = this.progress.documentsLoaded;
return e.payload.namedQuery ? this.queries.push(e.payload.namedQuery) : e.payload.documentMetadata ? (this.documents.push({
metadata: e.payload.documentMetadata
}),
e.payload.documentMetadata.exists || ++t) : e.payload.document && (this.documents[this.documents.length - 1].document = e.payload.document,
++t),
t !== this.progress.documentsLoaded ? (this.progress.documentsLoaded = t,
Object.assign({}, this.progress)) : null
}
}, {
key: "po",
value: function(e) {
var t, n = new Map, r = new tl(this.k), i = Object(l.a)(e);
try {
for (i.s(); !(t = i.n()).done; ) {
var o = t.value;
if (o.metadata.queries) {
var a, s = r.Hn(o.metadata.name), c = Object(l.a)(o.metadata.queries);
try {
for (c.s(); !(a = c.n()).done; ) {
var u = a.value
, d = (n.get(u) || mn()).add(s);
n.set(u, d)
}
} catch (e) {
c.e(e)
} finally {
c.f()
}
}
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return n
}
}, {
key: "complete",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n, r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
bo(this.localStore, new tl(this.k), this.documents, this.mo.id);
case 2:
t = e.sent,
n = this.po(this.documents),
r = Object(l.a)(this.queries),
e.prev = 5,
r.s();
case 7:
if ((i = r.n()).done) {
e.next = 13;
break
}
return o = i.value,
e.next = 11,
mo(this.localStore, o, n.get(o.name));
case 11:
e.next = 7;
break;
case 13:
e.next = 18;
break;
case 15:
e.prev = 15,
e.t0 = e.catch(5),
r.e(e.t0);
case 18:
return e.prev = 18,
r.f(),
e.finish(18);
case 21:
return e.abrupt("return", (this.progress.taskState = "Success",
new Gi(Object.assign({}, this.progress),t)));
case 22:
case "end":
return e.stop()
}
}
), e, this, [[5, 15, 18, 21]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
e
}();
function rl(e) {
return {
taskState: "Running",
documentsLoaded: 0,
bytesLoaded: 0,
totalDocuments: e.totalDocuments,
totalBytes: e.totalBytes
}
}
var il = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.key = t
}
))
, ol = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.key = t
}
))
, al = function() {
function e(t, n) {
Object(p.a)(this, e),
this.query = t,
this.To = n,
this.Eo = null,
this.current = !1,
this.Io = mn(),
this.mutatedKeys = mn(),
this.Ao = yt(t),
this.Ro = new Va(this.Ao)
}
return Object(h.a)(e, [{
key: "bo",
get: function() {
return this.To
}
}, {
key: "Po",
value: function(e, t) {
var n = this
, r = t ? t.vo : new Wa
, i = t ? t.Ro : this.Ro
, o = t ? t.mutatedKeys : this.mutatedKeys
, a = i
, l = !1
, s = lt(this.query) && i.size === this.query.limit ? i.last() : null
, c = st(this.query) && i.size === this.query.limit ? i.first() : null;
if (e.inorderTraversal((function(e, t) {
var u = i.get(e)
, d = vt(n.query, t) ? t : null
, p = !!u && n.mutatedKeys.has(u.key)
, h = !!d && (d.hasLocalMutations || n.mutatedKeys.has(d.key) && d.hasCommittedMutations)
, f = !1;
u && d ? u.data.isEqual(d.data) ? p !== h && (r.track({
type: 3,
doc: d
}),
f = !0) : n.Vo(u, d) || (r.track({
type: 2,
doc: d
}),
f = !0,
(s && n.Ao(d, s) > 0 || c && n.Ao(d, c) < 0) && (l = !0)) : !u && d ? (r.track({
type: 0,
doc: d
}),
f = !0) : u && !d && (r.track({
type: 1,
doc: u
}),
f = !0,
(s || c) && (l = !0)),
f && (d ? (a = a.add(d),
o = h ? o.add(e) : o.delete(e)) : (a = a.delete(e),
o = o.delete(e)))
}
)),
lt(this.query) || st(this.query))
for (; a.size > this.query.limit; ) {
var u = lt(this.query) ? a.last() : a.first();
a = a.delete(u.key),
o = o.delete(u.key),
r.track({
type: 1,
doc: u
})
}
return {
Ro: a,
vo: r,
Bn: l,
mutatedKeys: o
}
}
}, {
key: "Vo",
value: function(e, t) {
return e.hasLocalMutations && t.hasCommittedMutations && !t.hasLocalMutations
}
}, {
key: "applyChanges",
value: function(e, t, n) {
var r = this
, i = this.Ro;
this.Ro = e.Ro,
this.mutatedKeys = e.mutatedKeys;
var o = e.vo.no();
o.sort((function(e, t) {
return function(e, t) {
var n = function(e) {
switch (e) {
case 0:
return 1;
case 2:
case 3:
return 2;
case 1:
return 0;
default:
return E()
}
};
return n(e) - n(t)
}(e.type, t.type) || r.Ao(e.doc, t.doc)
}
)),
this.So(n);
var a = t ? this.Do() : []
, l = 0 === this.Io.size && this.current ? 1 : 0
, s = l !== this.Eo;
return this.Eo = l,
0 !== o.length || s ? {
snapshot: new qa(this.query,e.Ro,i,o,e.mutatedKeys,0 === l,s,!1),
Co: a
} : {
Co: a
}
}
}, {
key: "ro",
value: function(e) {
return this.current && "Offline" === e ? (this.current = !1,
this.applyChanges({
Ro: this.Ro,
vo: new Wa,
mutatedKeys: this.mutatedKeys,
Bn: !1
}, !1)) : {
Co: []
}
}
}, {
key: "No",
value: function(e) {
return !this.To.has(e) && !!this.Ro.has(e) && !this.Ro.get(e).hasLocalMutations
}
}, {
key: "So",
value: function(e) {
var t = this;
e && (e.addedDocuments.forEach((function(e) {
return t.To = t.To.add(e)
}
)),
e.modifiedDocuments.forEach((function(e) {}
)),
e.removedDocuments.forEach((function(e) {
return t.To = t.To.delete(e)
}
)),
this.current = e.current)
}
}, {
key: "Do",
value: function() {
var e = this;
if (!this.current)
return [];
var t = this.Io;
this.Io = mn(),
this.Ro.forEach((function(t) {
e.No(t.key) && (e.Io = e.Io.add(t.key))
}
));
var n = [];
return t.forEach((function(t) {
e.Io.has(t) || n.push(new ol(t))
}
)),
this.Io.forEach((function(e) {
t.has(e) || n.push(new il(e))
}
)),
n
}
}, {
key: "ko",
value: function(e) {
this.To = e.zn,
this.Io = mn();
var t = this.Po(e.documents);
return this.applyChanges(t, !0)
}
}, {
key: "xo",
value: function() {
return qa.fromInitialDocuments(this.query, this.Ro, this.mutatedKeys, 0 === this.Eo)
}
}]),
e
}()
, ll = Object(h.a)((function e(t, n, r) {
Object(p.a)(this, e),
this.query = t,
this.targetId = n,
this.view = r
}
))
, sl = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this.key = t,
this.$o = !1
}
))
, cl = function() {
function e(t, n, r, i, o, a) {
Object(p.a)(this, e),
this.localStore = t,
this.remoteStore = n,
this.eventManager = r,
this.sharedClientState = i,
this.currentUser = o,
this.maxConcurrentLimboResolutions = a,
this.Oo = {},
this.Fo = new Ni((function(e) {
return gt(e)
}
),bt),
this.Mo = new Map,
this.Lo = new Set,
this.Bo = new on(xe.comparator),
this.Uo = new Map,
this.qo = new xo,
this.Ko = {},
this.jo = new Map,
this.Qo = xi.re(),
this.onlineState = "Unknown",
this.Wo = void 0
}
return Object(h.a)(e, [{
key: "isPrimaryClient",
get: function() {
return !0 === this.Wo
}
}]),
e
}();
function ul(e, t) {
return dl.apply(this, arguments)
}
function dl() {
return (dl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a, l, s;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = rs(t),
!(a = r.Fo.get(n))) {
e.next = 6;
break
}
i = a.targetId,
r.sharedClientState.addLocalQueryTarget(i),
o = a.view.xo(),
e.next = 15;
break;
case 6:
return e.next = 8,
ao(r.localStore, ht(n));
case 8:
return l = e.sent,
s = r.sharedClientState.addLocalQueryTarget(l.targetId),
i = l.targetId,
e.next = 13,
pl(r, n, i, "current" === s);
case 13:
o = e.sent,
r.isPrimaryClient && ia(r.remoteStore, l);
case 15:
return e.abrupt("return", o);
case 16:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function pl(e, t, n, r) {
return hl.apply(this, arguments)
}
function hl() {
return hl = Object(s.a)(b.a.mark((function e(t, n, r, i) {
var o, a, l, c, u, d;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t.Go = function(e, n, r) {
return function() {
var e = Object(s.a)(b.a.mark((function e(t, n, r, i) {
var o, a, l;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (o = n.view.Po(r),
e.t0 = o.Bn,
!e.t0) {
e.next = 6;
break
}
return e.next = 5,
co(t.localStore, n.query, !1).then((function(e) {
var t = e.documents;
return n.view.Po(t, o)
}
));
case 5:
o = e.sent;
case 6:
return a = i && i.targetChanges.get(n.targetId),
l = n.view.applyChanges(o, t.isPrimaryClient, a),
e.abrupt("return", (Nl(t, n.targetId, l.Co),
l.snapshot));
case 8:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()(t, e, n, r)
}
,
e.next = 3,
co(t.localStore, n, !0);
case 3:
return o = e.sent,
a = new al(n,o.zn),
l = a.Po(o.documents),
c = On.createSynthesizedTargetChangeForCurrentChange(r, i && "Offline" !== t.onlineState),
u = a.applyChanges(l, t.isPrimaryClient, c),
Nl(t, r, u.Co),
d = new ll(n,r,a),
e.abrupt("return", (t.Fo.set(n, d),
t.Mo.has(r) ? t.Mo.get(r).push(n) : t.Mo.set(r, [n]),
u.snapshot));
case 11:
case "end":
return e.stop()
}
}
), e)
}
))),
hl.apply(this, arguments)
}
function fl(e, t) {
return bl.apply(this, arguments)
}
function bl() {
return (bl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r = z(t),
i = r.Fo.get(n),
!((o = r.Mo.get(i.targetId)).length > 1)) {
e.next = 3;
break
}
return e.abrupt("return", (r.Mo.set(i.targetId, o.filter((function(e) {
return !bt(e, n)
}
))),
void r.Fo.delete(n)));
case 3:
if (!r.isPrimaryClient) {
e.next = 11;
break
}
if (r.sharedClientState.removeLocalQueryTarget(i.targetId),
e.t0 = r.sharedClientState.isActiveQueryTarget(i.targetId),
e.t0) {
e.next = 9;
break
}
return e.next = 9,
lo(r.localStore, i.targetId, !1).then((function() {
r.sharedClientState.clearQueryState(i.targetId),
oa(r.remoteStore, i.targetId),
El(r, i.targetId)
}
)).catch(Ci);
case 9:
e.next = 14;
break;
case 11:
return El(r, i.targetId),
e.next = 14,
lo(r.localStore, i.targetId, !0);
case 14:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function gl(e, t, n) {
return ml.apply(this, arguments)
}
function ml() {
return (ml = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = is(t),
e.prev = 1,
e.next = 4,
function(e, t) {
var n, r = z(e), i = Z.now(), o = t.reduce((function(e, t) {
return e.add(t.key)
}
), mn());
return r.persistence.runTransaction("Locally write mutations", "readwrite", (function(e) {
return r.Wn.vn(e, o).next((function(o) {
n = o;
var a, s = [], c = Object(l.a)(t);
try {
for (c.s(); !(a = c.n()).done; ) {
var u = a.value
, d = qt(u, n.get(u.key));
null != d && s.push(new Gt(u.key,d,Le(d.value.mapValue),Pt.exists(!0)))
}
} catch (e) {
c.e(e)
} finally {
c.f()
}
return r.An.addMutationBatch(e, i, s, t)
}
))
}
)).then((function(e) {
return e.applyToLocalDocumentSet(n),
{
batchId: e.batchId,
changes: n
}
}
))
}(i.localStore, n);
case 4:
return o = e.sent,
i.sharedClientState.addPendingMutation(o.batchId),
function(e, t, n) {
var r = e.Ko[e.currentUser.toKey()];
r || (r = new on(Y)),
r = r.insert(t, n),
e.Ko[e.currentUser.toKey()] = r
}(i, o.batchId, r),
e.next = 9,
Ll(i, o.changes);
case 9:
return e.next = 11,
Oa(i.remoteStore);
case 11:
e.next = 17;
break;
case 13:
e.prev = 13,
e.t0 = e.catch(1),
a = Fa(e.t0, "Failed to persist write"),
r.reject(a);
case 17:
case "end":
return e.stop()
}
}
), e, null, [[1, 13]])
}
)))).apply(this, arguments)
}
function vl(e, t) {
return yl.apply(this, arguments)
}
function yl() {
return (yl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
e.prev = 1,
e.next = 4,
ro(r.localStore, n);
case 4:
return i = e.sent,
n.targetChanges.forEach((function(e, t) {
var n = r.Uo.get(t);
n && (I(e.addedDocuments.size + e.modifiedDocuments.size + e.removedDocuments.size <= 1),
e.addedDocuments.size > 0 ? n.$o = !0 : e.modifiedDocuments.size > 0 ? I(n.$o) : e.removedDocuments.size > 0 && (I(n.$o),
n.$o = !1))
}
)),
e.next = 8,
Ll(r, i, n);
case 8:
e.next = 14;
break;
case 10:
return e.prev = 10,
e.t0 = e.catch(1),
e.next = 14,
Ci(e.t0);
case 14:
case "end":
return e.stop()
}
}
), e, null, [[1, 10]])
}
)))).apply(this, arguments)
}
function xl(e, t, n) {
var r = z(e);
if (r.isPrimaryClient && 0 === n || !r.isPrimaryClient && 1 === n) {
var i = [];
r.Fo.forEach((function(e, n) {
var r = n.view.ro(t);
r.snapshot && i.push(r.snapshot)
}
)),
function(e, t) {
var n = z(e);
n.onlineState = t;
var r = !1;
n.queries.forEach((function(e, n) {
var i, o = Object(l.a)(n.listeners);
try {
for (o.s(); !(i = o.n()).done; )
i.value.ro(t) && (r = !0)
} catch (e) {
o.e(e)
} finally {
o.f()
}
}
)),
r && Za(n)
}(r.eventManager, t),
i.length && r.Oo.br(i),
r.onlineState = t,
r.isPrimaryClient && r.sharedClientState.setOnlineState(t)
}
}
function Ol(e, t, n) {
return jl.apply(this, arguments)
}
function jl() {
return (jl = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a, l, s, c;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if ((i = z(t)).sharedClientState.updateQueryState(n, "rejected", r),
o = i.Uo.get(n),
!(a = o && o.key)) {
e.next = 14;
break
}
return l = (l = new on(xe.comparator)).insert(a, Re.newNoDocument(a, $.min())),
s = mn().add(a),
c = new xn($.min(),new Map,new sn(Y),l,s),
e.next = 9,
vl(i, c);
case 9:
i.Bo = i.Bo.remove(a),
i.Uo.delete(n),
Dl(i),
e.next = 16;
break;
case 14:
return e.next = 16,
lo(i.localStore, n, !1).then((function() {
return El(i, n, r)
}
)).catch(Ci);
case 16:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function kl(e, t) {
return wl.apply(this, arguments)
}
function wl() {
return (wl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
i = n.batch.batchId,
e.prev = 1,
e.next = 4,
to(r.localStore, n);
case 4:
return o = e.sent,
Tl(r, i, null),
Al(r, i),
r.sharedClientState.updateMutationState(i, "acknowledged"),
e.next = 10,
Ll(r, o);
case 10:
e.next = 16;
break;
case 12:
return e.prev = 12,
e.t0 = e.catch(1),
e.next = 16,
Ci(e.t0);
case 16:
case "end":
return e.stop()
}
}
), e, null, [[1, 12]])
}
)))).apply(this, arguments)
}
function Cl(e, t, n) {
return _l.apply(this, arguments)
}
function _l() {
return (_l = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return i = z(t),
e.prev = 1,
e.next = 4,
function(e, t) {
var n = z(e);
return n.persistence.runTransaction("Reject batch", "readwrite-primary", (function(e) {
var r;
return n.An.lookupMutationBatch(e, t).next((function(t) {
return I(null !== t),
r = t.keys(),
n.An.removeMutationBatch(e, t)
}
)).next((function() {
return n.An.performConsistencyCheck(e)
}
)).next((function() {
return n.Wn.vn(e, r)
}
))
}
))
}(i.localStore, n);
case 4:
return o = e.sent,
Tl(i, n, r),
Al(i, n),
i.sharedClientState.updateMutationState(n, "rejected", r),
e.next = 10,
Ll(i, o);
case 10:
e.next = 16;
break;
case 12:
return e.prev = 12,
e.t0 = e.catch(1),
e.next = 16,
Ci(e.t0);
case 16:
case "end":
return e.stop()
}
}
), e, null, [[1, 12]])
}
)))).apply(this, arguments)
}
function Ml(e, t) {
return Sl.apply(this, arguments)
}
function Sl() {
return (Sl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return ua((r = z(t)).remoteStore) || M("SyncEngine", "The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),
e.prev = 2,
e.next = 5,
function(e) {
var t = z(e);
return t.persistence.runTransaction("Get highest unacknowledged batch id", "readonly", (function(e) {
return t.An.getHighestUnacknowledgedBatchId(e)
}
))
}(r.localStore);
case 5:
if (-1 !== (i = e.sent)) {
e.next = 8;
break
}
return e.abrupt("return", void n.resolve());
case 8:
(o = r.jo.get(i) || []).push(n),
r.jo.set(i, o),
e.next = 16;
break;
case 12:
e.prev = 12,
e.t0 = e.catch(2),
a = Fa(e.t0, "Initialization of waitForPendingWrites() operation failed"),
n.reject(a);
case 16:
case "end":
return e.stop()
}
}
), e, null, [[2, 12]])
}
)))).apply(this, arguments)
}
function Al(e, t) {
(e.jo.get(t) || []).forEach((function(e) {
e.resolve()
}
)),
e.jo.delete(t)
}
function Tl(e, t, n) {
var r = z(e)
, i = r.Ko[r.currentUser.toKey()];
if (i) {
var o = i.get(t);
o && (n ? o.reject(n) : o.resolve(),
i = i.remove(t)),
r.Ko[r.currentUser.toKey()] = i
}
}
function El(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null;
e.sharedClientState.removeLocalQueryTarget(t);
var r, i = Object(l.a)(e.Mo.get(t));
try {
for (i.s(); !(r = i.n()).done; ) {
var o = r.value;
e.Fo.delete(o),
n && e.Oo.zo(o, n)
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
e.Mo.delete(t),
e.isPrimaryClient && e.qo.us(t).forEach((function(t) {
e.qo.containsKey(t) || Il(e, t)
}
))
}
function Il(e, t) {
e.Lo.delete(t.path.canonicalString());
var n = e.Bo.get(t);
null !== n && (oa(e.remoteStore, n),
e.Bo = e.Bo.remove(t),
e.Uo.delete(n),
Dl(e))
}
function Nl(e, t, n) {
var r, i = Object(l.a)(n);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = r.value;
o instanceof il ? (e.qo.addReference(o.key, t),
zl(e, o)) : o instanceof ol ? (M("SyncEngine", "Document no longer in limbo: " + o.key),
e.qo.removeReference(o.key, t),
e.qo.containsKey(o.key) || Il(e, o.key)) : E()
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
}
function zl(e, t) {
var n = t.key
, r = n.path.canonicalString();
e.Bo.get(n) || e.Lo.has(r) || (M("SyncEngine", "New document in limbo: " + n),
e.Lo.add(r),
Dl(e))
}
function Dl(e) {
for (; e.Lo.size > 0 && e.Bo.size < e.maxConcurrentLimboResolutions; ) {
var t = e.Lo.values().next().value;
e.Lo.delete(t);
var n = new xe(ie.fromString(t))
, r = e.Qo.next();
e.Uo.set(r, new sl(n)),
e.Bo = e.Bo.insert(n, r),
ia(e.remoteStore, new Xr(ht(at(n.path)),r,2,X.I))
}
}
function Ll(e, t, n) {
return Rl.apply(this, arguments)
}
function Rl() {
return Rl = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a, c;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (i = z(t),
o = [],
a = [],
c = [],
e.t0 = i.Fo.isEmpty(),
e.t0) {
e.next = 9;
break
}
return i.Fo.forEach((function(e, t) {
c.push(i.Go(t, n, r).then((function(e) {
if (e) {
i.isPrimaryClient && i.sharedClientState.updateQueryState(t.targetId, e.fromCache ? "not-current" : "current"),
o.push(e);
var n = Yi.$n(t.targetId, e);
a.push(n)
}
}
)))
}
)),
e.next = 6,
Promise.all(c);
case 6:
return i.Oo.br(o),
e.next = 9,
function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a, s, c, u, d;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
e.prev = 1,
e.next = 4,
r.persistence.runTransaction("notifyLocalViewChanges", "readwrite", (function(e) {
return Ir.forEach(n, (function(t) {
return Ir.forEach(t.kn, (function(n) {
return r.persistence.referenceDelegate.addReference(e, t.targetId, n)
}
)).next((function() {
return Ir.forEach(t.xn, (function(n) {
return r.persistence.referenceDelegate.removeReference(e, t.targetId, n)
}
))
}
))
}
))
}
));
case 4:
e.next = 11;
break;
case 6:
if (e.prev = 6,
e.t0 = e.catch(1),
Rr(e.t0)) {
e.next = 10;
break
}
throw e.t0;
case 10:
M("LocalStore", "Failed to update sequence numbers: " + e.t0);
case 11:
i = Object(l.a)(n);
try {
for (i.s(); !(o = i.n()).done; )
a = o.value,
s = a.targetId,
a.fromCache || (c = r.qn.get(s),
u = c.snapshotVersion,
d = c.withLastLimboFreeSnapshotVersion(u),
r.qn = r.qn.insert(s, d))
} catch (e) {
i.e(e)
} finally {
i.f()
}
case 13:
case "end":
return e.stop()
}
}
), e, null, [[1, 6]])
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()(i.localStore, a);
case 9:
case "end":
return e.stop()
}
}
), e)
}
))),
Rl.apply(this, arguments)
}
function Pl(e, t) {
return Bl.apply(this, arguments)
}
function Bl() {
return (Bl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if ((r = z(t)).currentUser.isEqual(n)) {
e.next = 11;
break
}
return M("SyncEngine", "User change. New user:", n.toKey()),
e.next = 5,
$i(r.localStore, n);
case 5:
return i = e.sent,
r.currentUser = n,
function(e, t) {
e.jo.forEach((function(e) {
e.forEach((function(e) {
e.reject(new L(D.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))
}
))
}
)),
e.jo.clear()
}(r),
r.sharedClientState.handleUserChange(n, i.removedBatchIds, i.addedBatchIds),
e.next = 11,
Ll(r, i.Gn);
case 11:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Fl(e, t) {
var n = z(e)
, r = n.Uo.get(t);
if (r && r.$o)
return mn().add(r.key);
var i = mn()
, o = n.Mo.get(t);
if (!o)
return i;
var a, s = Object(l.a)(o);
try {
for (s.s(); !(a = s.n()).done; ) {
var c = a.value
, u = n.Fo.get(c);
i = i.unionWith(u.view.bo)
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
return i
}
function Vl(e, t) {
return Wl.apply(this, arguments)
}
function Wl() {
return (Wl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
e.next = 3,
co(r.localStore, n.query, !0);
case 3:
return i = e.sent,
o = n.view.ko(i),
e.abrupt("return", (r.isPrimaryClient && Nl(r, n.targetId, o.Co),
o));
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ql(e) {
return Hl.apply(this, arguments)
}
function Hl() {
return (Hl = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = z(t),
e.abrupt("return", po(n.localStore).then((function(e) {
return Ll(n, e)
}
)));
case 2:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ul(e, t, n, r) {
return Xl.apply(this, arguments)
}
function Xl() {
return (Xl = Object(s.a)(b.a.mark((function e(t, n, r, i) {
var o, a;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return o = z(t),
e.next = 3,
function(e, t) {
var n = z(e)
, r = z(n.An);
return n.persistence.runTransaction("Lookup mutation documents", "readonly", (function(e) {
return r.Zt(e, t).next((function(t) {
return t ? n.Wn.vn(e, t) : Ir.resolve(null)
}
))
}
))
}(o.localStore, n);
case 3:
if (null === (a = e.sent)) {
e.next = 15;
break
}
if ("pending" !== r) {
e.next = 10;
break
}
return e.next = 8,
Oa(o.remoteStore);
case 8:
e.next = 11;
break;
case 10:
"acknowledged" === r || "rejected" === r ? (Tl(o, n, i || null),
Al(o, n),
function(e, t) {
z(z(e).An).ee(t)
}(o.localStore, n)) : E();
case 11:
return e.next = 13,
Ll(o, a);
case 13:
e.next = 16;
break;
case 15:
M("SyncEngine", "Cannot apply mutation batch with id: " + n);
case 16:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Gl(e, t) {
return Kl.apply(this, arguments)
}
function Kl() {
return (Kl = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a, s, c, u, d;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (rs(r = z(t)),
is(r),
!0 !== n || !0 === r.Wo) {
e.next = 13;
break
}
return i = r.sharedClientState.getAllActiveQueryTargets(),
e.next = 5,
Yl(r, i.toArray());
case 5:
return o = e.sent,
r.Wo = !0,
e.next = 9,
Da(r.remoteStore, !0);
case 9:
a = Object(l.a)(o);
try {
for (a.s(); !(s = a.n()).done; )
c = s.value,
ia(r.remoteStore, c)
} catch (e) {
a.e(e)
} finally {
a.f()
}
e.next = 25;
break;
case 13:
if (!1 !== n || !1 === r.Wo) {
e.next = 25;
break
}
return u = [],
d = Promise.resolve(),
r.Mo.forEach((function(e, t) {
r.sharedClientState.isLocalQueryTarget(t) ? u.push(t) : d = d.then((function() {
return El(r, t),
lo(r.localStore, t, !0)
}
)),
oa(r.remoteStore, t)
}
)),
e.next = 19,
d;
case 19:
return e.next = 21,
Yl(r, u);
case 21:
return function(e) {
var t = z(e);
t.Uo.forEach((function(e, n) {
oa(t.remoteStore, n)
}
)),
t.qo.hs(),
t.Uo = new Map,
t.Bo = new on(xe.comparator)
}(r),
r.Wo = !1,
e.next = 25,
Da(r.remoteStore, !1);
case 25:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Yl(e, t, n) {
return Ql.apply(this, arguments)
}
function Ql() {
return (Ql = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a, s, c, u, d, p, h, f, g, m, v, y;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
i = z(t),
o = [],
a = [],
s = Object(l.a)(n),
e.prev = 2,
s.s();
case 4:
if ((c = s.n()).done) {
e.next = 45;
break
}
if (u = c.value,
d = void 0,
!(p = i.Mo.get(u)) || 0 === p.length) {
e.next = 34;
break
}
return e.next = 11,
ao(i.localStore, ht(p[0]));
case 11:
d = e.sent,
h = Object(l.a)(p),
e.prev = 13,
h.s();
case 15:
if ((f = h.n()).done) {
e.next = 24;
break
}
return g = f.value,
m = i.Fo.get(g),
e.next = 20,
Vl(i, m);
case 20:
(v = e.sent).snapshot && a.push(v.snapshot);
case 22:
e.next = 15;
break;
case 24:
e.next = 29;
break;
case 26:
e.prev = 26,
e.t0 = e.catch(13),
h.e(e.t0);
case 29:
return e.prev = 29,
h.f(),
e.finish(29);
case 32:
e.next = 42;
break;
case 34:
return e.next = 36,
uo(i.localStore, u);
case 36:
return y = e.sent,
e.next = 39,
ao(i.localStore, y);
case 39:
return d = e.sent,
e.next = 42,
pl(i, Jl(y), u, !1);
case 42:
o.push(d);
case 43:
e.next = 4;
break;
case 45:
e.next = 50;
break;
case 47:
e.prev = 47,
e.t1 = e.catch(2),
s.e(e.t1);
case 50:
return e.prev = 50,
s.f(),
e.finish(50);
case 53:
return e.abrupt("return", (i.Oo.br(a),
o));
case 54:
case "end":
return e.stop()
}
}
), e, null, [[2, 47, 50, 53], [13, 26, 29, 32]])
}
)))).apply(this, arguments)
}
function Jl(e) {
return ot(e.path, e.collectionGroup, e.orderBy, e.filters, e.limit, "F", e.startAt, e.endAt)
}
function Zl(e) {
var t = z(e);
return z(z(t.localStore).persistence).Tn()
}
function $l(e, t, n, r) {
return es.apply(this, arguments)
}
function es() {
return (es = Object(s.a)(b.a.mark((function e(t, n, r, i) {
var o, a, l;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!(o = z(t)).Wo) {
e.next = 5;
break
}
M("SyncEngine", "Ignoring unexpected query state notification."),
e.next = 21;
break;
case 5:
if (!o.Mo.has(n)) {
e.next = 21;
break
}
e.t0 = r,
e.next = "current" === e.t0 || "not-current" === e.t0 ? 9 : "rejected" === e.t0 ? 16 : 20;
break;
case 9:
return e.next = 11,
po(o.localStore);
case 11:
return a = e.sent,
l = xn.createSynthesizedRemoteEventForCurrentChange(n, "current" === r),
e.next = 15,
Ll(o, a, l);
case 15:
return e.abrupt("break", 21);
case 16:
return e.next = 18,
lo(o.localStore, n, !0);
case 18:
return El(o, n, i),
e.abrupt("break", 21);
case 20:
E();
case 21:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ts(e, t, n) {
return ns.apply(this, arguments)
}
function ns() {
return (ns = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a, s, c, u, d, p, h;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!(i = rs(t)).Wo) {
e.next = 45;
break
}
o = Object(l.a)(n),
e.prev = 3,
o.s();
case 5:
if ((a = o.n()).done) {
e.next = 21;
break
}
if (s = a.value,
!i.Mo.has(s)) {
e.next = 10;
break
}
return M("SyncEngine", "Adding an already active target " + s),
e.abrupt("continue", 19);
case 10:
return e.next = 12,
uo(i.localStore, s);
case 12:
return c = e.sent,
e.next = 15,
ao(i.localStore, c);
case 15:
return u = e.sent,
e.next = 18,
pl(i, Jl(c), u.targetId, !1);
case 18:
ia(i.remoteStore, u);
case 19:
e.next = 5;
break;
case 21:
e.next = 26;
break;
case 23:
e.prev = 23,
e.t0 = e.catch(3),
o.e(e.t0);
case 26:
return e.prev = 26,
o.f(),
e.finish(26);
case 29:
d = Object(l.a)(r),
e.prev = 30,
h = b.a.mark((function e() {
var t;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t = p.value,
e.t0 = i.Mo.has(t),
!e.t0) {
e.next = 5;
break
}
return e.next = 5,
lo(i.localStore, t, !1).then((function() {
oa(i.remoteStore, t),
El(i, t)
}
)).catch(Ci);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)),
d.s();
case 33:
if ((p = d.n()).done) {
e.next = 37;
break
}
return e.delegateYield(h(), "t1", 35);
case 35:
e.next = 33;
break;
case 37:
e.next = 42;
break;
case 39:
e.prev = 39,
e.t2 = e.catch(30),
d.e(e.t2);
case 42:
return e.prev = 42,
d.f(),
e.finish(42);
case 45:
case "end":
return e.stop()
}
}
), e, null, [[3, 23, 26, 29], [30, 39, 42, 45]])
}
)))).apply(this, arguments)
}
function rs(e) {
var t = z(e);
return t.remoteStore.remoteSyncer.applyRemoteEvent = vl.bind(null, t),
t.remoteStore.remoteSyncer.getRemoteKeysForTarget = Fl.bind(null, t),
t.remoteStore.remoteSyncer.rejectListen = Ol.bind(null, t),
t.Oo.br = Qa.bind(null, t.eventManager),
t.Oo.zo = Ja.bind(null, t.eventManager),
t
}
function is(e) {
var t = z(e);
return t.remoteStore.remoteSyncer.applySuccessfulWrite = kl.bind(null, t),
t.remoteStore.remoteSyncer.rejectFailedWrite = Cl.bind(null, t),
t
}
function os(e, t, n) {
var r = z(e);
(function() {
var e = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a, l, s;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
n.getMetadata();
case 3:
return i = e.sent,
e.next = 6,
function(e, t) {
var n = z(e)
, r = Dn(t.createTime);
return n.persistence.runTransaction("hasNewerBundle", "readonly", (function(e) {
return n.Ye.getBundleMetadata(e, t.id)
}
)).then((function(e) {
return !!e && e.createTime.compareTo(r) >= 0
}
))
}(t.localStore, i);
case 6:
if (!e.sent) {
e.next = 10;
break
}
return e.next = 9,
n.close();
case 9:
return e.abrupt("return", void r._completeWith(function(e) {
return {
taskState: "Success",
documentsLoaded: e.totalDocuments,
bytesLoaded: e.totalBytes,
totalDocuments: e.totalDocuments,
totalBytes: e.totalBytes
}
}(i)));
case 10:
return r._updateProgress(rl(i)),
o = new nl(i,t.localStore,n.k),
e.next = 14,
n.Ho();
case 14:
a = e.sent;
case 15:
if (!a) {
e.next = 25;
break
}
return e.next = 18,
o.yo(a);
case 18:
return (l = e.sent) && r._updateProgress(l),
e.next = 22,
n.Ho();
case 22:
a = e.sent;
case 23:
e.next = 15;
break;
case 25:
return e.next = 27,
o.complete();
case 27:
return s = e.sent,
e.next = 30,
Ll(t, s.In, void 0);
case 30:
return e.next = 32,
function(e, t) {
var n = z(e);
return n.persistence.runTransaction("Save bundle", "readwrite", (function(e) {
return n.Ye.saveBundleMetadata(e, t)
}
))
}(t.localStore, i);
case 32:
r._completeWith(s.progress),
e.next = 38;
break;
case 35:
e.prev = 35,
e.t0 = e.catch(0),
A("SyncEngine", "Loading bundle failed with ".concat(e.t0)),
r._failWith(e.t0);
case 38:
case "end":
return e.stop()
}
}
), e, null, [[0, 35]])
}
)));
return function(t, n, r) {
return e.apply(this, arguments)
}
}
)()(r, t, n).then((function() {
r.sharedClientState.notifyBundleLoaded()
}
))
}
var as = function() {
function e() {
Object(p.a)(this, e),
this.synchronizeTabs = !1
}
return Object(h.a)(e, [{
key: "initialize",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.k = Xo(t.databaseInfo.databaseId),
this.sharedClientState = this.Jo(t),
this.persistence = this.Yo(t),
e.next = 5,
this.persistence.start();
case 5:
this.gcScheduler = this.Xo(t),
this.localStore = this.Zo(t);
case 7:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "Xo",
value: function(e) {
return null
}
}, {
key: "Zo",
value: function(e) {
return Zi(this.persistence, new Qi, e.initialUser, this.k)
}
}, {
key: "Yo",
value: function(e) {
return new _o(So.ks,this.k)
}
}, {
key: "Jo",
value: function(e) {
return new Po
}
}, {
key: "terminate",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.gcScheduler && this.gcScheduler.stop(),
e.next = 3,
this.sharedClientState.shutdown();
case 3:
return e.next = 5,
this.persistence.shutdown();
case 5:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
e
}()
, ls = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this)).ta = e,
o.cacheSizeBytes = r,
o.forceOwnership = i,
o.synchronizeTabs = !1,
o
}
return Object(h.a)(n, [{
key: "initialize",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var r = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Object(i.a)(Object(o.a)(n.prototype), "initialize", this).call(this, t);
case 2:
return e.next = 4,
ho(this.localStore);
case 4:
return e.next = 6,
this.ta.initialize(this, t);
case 6:
return e.next = 8,
is(this.ta.syncEngine);
case 8:
return e.next = 10,
Oa(this.ta.remoteStore);
case 10:
return e.next = 12,
this.persistence.sn((function() {
return r.gcScheduler && !r.gcScheduler.started && r.gcScheduler.start(r.localStore),
Promise.resolve()
}
));
case 12:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "Zo",
value: function(e) {
return Zi(this.persistence, new Qi, e.initialUser, this.k)
}
}, {
key: "Xo",
value: function(e) {
var t = this.persistence.referenceDelegate.garbageCollector;
return new Ai(t,e.asyncQueue)
}
}, {
key: "Yo",
value: function(e) {
var t = Xi(e.databaseInfo.databaseId, e.databaseInfo.persistenceKey)
, n = void 0 !== this.cacheSizeBytes ? pi.withCacheSize(this.cacheSizeBytes) : pi.DEFAULT;
return new qi(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,Ho(),Uo(),this.k,this.sharedClientState,!!this.forceOwnership)
}
}, {
key: "Jo",
value: function(e) {
return new Po
}
}]),
n
}(as)
, ss = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e, r, !1)).ta = e,
i.cacheSizeBytes = r,
i.synchronizeTabs = !0,
i
}
return Object(h.a)(n, [{
key: "initialize",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var r, a = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Object(i.a)(Object(o.a)(n.prototype), "initialize", this).call(this, t);
case 2:
if (r = this.ta.syncEngine,
e.t0 = this.sharedClientState instanceof Ro,
!e.t0) {
e.next = 8;
break
}
return this.sharedClientState.syncEngine = {
mi: Ul.bind(null, r),
gi: $l.bind(null, r),
yi: ts.bind(null, r),
Tn: Zl.bind(null, r),
_i: ql.bind(null, r)
},
e.next = 8,
this.sharedClientState.start();
case 8:
return e.next = 10,
this.persistence.sn(function() {
var e = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
Gl(a.ta.syncEngine, t);
case 2:
a.gcScheduler && (t && !a.gcScheduler.started ? a.gcScheduler.start(a.localStore) : t || a.gcScheduler.stop());
case 3:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}());
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "Jo",
value: function(e) {
var t = Ho();
if (!Ro.Pt(t))
throw new L(D.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");
var n = Xi(e.databaseInfo.databaseId, e.databaseInfo.persistenceKey);
return new Ro(t,e.asyncQueue,n,e.clientId,e.initialUser)
}
}]),
n
}(ls)
, cs = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, [{
key: "initialize",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = this.localStore,
e.t0) {
e.next = 12;
break
}
return this.localStore = t.localStore,
this.sharedClientState = t.sharedClientState,
this.datastore = this.createDatastore(n),
this.remoteStore = this.createRemoteStore(n),
this.eventManager = this.createEventManager(n),
this.syncEngine = this.createSyncEngine(n, !t.synchronizeTabs),
this.sharedClientState.onlineStateHandler = function(e) {
return xl(r.syncEngine, e, 1)
}
,
this.remoteStore.remoteSyncer.handleCredentialChange = Pl.bind(null, this.syncEngine),
e.next = 12,
Da(this.remoteStore, this.syncEngine.isPrimaryClient);
case 12:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "createEventManager",
value: function(e) {
return new Ua
}
}, {
key: "createDatastore",
value: function(e) {
var t, n = Xo(e.databaseInfo.databaseId), r = (t = e.databaseInfo,
new qo(t));
return function(e, t, n, r) {
return new Jo(e,t,n,r)
}(e.authCredentials, e.appCheckCredentials, r, n)
}
}, {
key: "createRemoteStore",
value: function(e) {
var t, n, r, i, o, a = this;
return t = this.localStore,
n = this.datastore,
r = e.asyncQueue,
i = function(e) {
return xl(a.syncEngine, e, 0)
}
,
o = Fo.Pt() ? new Fo : new Bo,
new $o(t,n,r,i,o)
}
}, {
key: "createSyncEngine",
value: function(e, t) {
return function(e, t, n, r, i, o, a) {
var l = new cl(e,t,n,r,i,o);
return a && (l.Wo = !0),
l
}(this.localStore, this.remoteStore, this.eventManager, this.sharedClientState, e.initialUser, e.maxConcurrentLimboResolutions, t)
}
}, {
key: "terminate",
value: function() {
return function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return n = z(t),
M("RemoteStore", "RemoteStore shutting down."),
n.Gr.add(5),
e.next = 5,
na(n);
case 5:
n.Hr.shutdown(),
n.Jr.set("Unknown");
case 7:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()(this.remoteStore)
}
}]),
e
}();
function us(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 10240
, n = 0;
return {
read: function() {
return Object(s.a)(b.a.mark((function r() {
var i;
return b.a.wrap((function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
if (!(n < e.byteLength)) {
r.next = 3;
break
}
return i = {
value: e.slice(n, n + t),
done: !1
},
r.abrupt("return", (n += t,
i));
case 3:
return r.abrupt("return", {
done: !0
});
case 4:
case "end":
return r.stop()
}
}
), r)
}
)))()
},
cancel: function() {
return Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
case "end":
return e.stop()
}
}
), e)
}
)))()
},
releaseLock: function() {},
closed: Promise.reject("unimplemented")
}
}
var ds = function() {
function e(t) {
Object(p.a)(this, e),
this.observer = t,
this.muted = !1
}
return Object(h.a)(e, [{
key: "next",
value: function(e) {
this.observer.next && this.ea(this.observer.next, e)
}
}, {
key: "error",
value: function(e) {
this.observer.error ? this.ea(this.observer.error, e) : console.error("Uncaught Error in snapshot listener:", e)
}
}, {
key: "na",
value: function() {
this.muted = !0
}
}, {
key: "ea",
value: function(e, t) {
var n = this;
this.muted || setTimeout((function() {
n.muted || e(t)
}
), 0)
}
}]),
e
}()
, ps = function() {
function e(t, n) {
var r = this;
Object(p.a)(this, e),
this.sa = t,
this.k = n,
this.metadata = new R,
this.buffer = new Uint8Array,
this.ia = new TextDecoder("utf-8"),
this.ra().then((function(e) {
e && e._o() ? r.metadata.resolve(e.payload.metadata) : r.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n ".concat(JSON.stringify(null == e ? void 0 : e.payload))))
}
), (function(e) {
return r.metadata.reject(e)
}
))
}
return Object(h.a)(e, [{
key: "close",
value: function() {
return this.sa.cancel()
}
}, {
key: "getMetadata",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", this.metadata.promise);
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "Ho",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.getMetadata();
case 2:
return e.abrupt("return", this.ra());
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "ra",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n, r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.oa();
case 2:
if (null !== (t = e.sent)) {
e.next = 5;
break
}
return e.abrupt("return", null);
case 5:
return n = this.ia.decode(t),
r = Number(n),
isNaN(r) && this.aa("length string (".concat(n, ") is not valid number")),
e.next = 9,
this.ca(r);
case 9:
return i = e.sent,
e.abrupt("return", new el(JSON.parse(i),t.length + r));
case 11:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "ua",
value: function() {
return this.buffer.findIndex((function(e) {
return e === "{".charCodeAt(0)
}
))
}
}, {
key: "oa",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!(this.ua() < 0)) {
e.next = 7;
break
}
return e.next = 3,
this.ha();
case 3:
if (!e.sent) {
e.next = 5;
break
}
return e.abrupt("break", 7);
case 5:
e.next = 0;
break;
case 7:
if (0 !== this.buffer.length) {
e.next = 9;
break
}
return e.abrupt("return", null);
case 9:
return (t = this.ua()) < 0 && this.aa("Reached the end of bundle when a length string is expected."),
n = this.buffer.slice(0, t),
e.abrupt("return", (this.buffer = this.buffer.slice(t),
n));
case 13:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "ca",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!(this.buffer.length < t)) {
e.next = 8;
break
}
return e.next = 3,
this.ha();
case 3:
if (e.t0 = e.sent,
!e.t0) {
e.next = 6;
break
}
this.aa("Reached the end of bundle when more is expected.");
case 6:
e.next = 0;
break;
case 8:
return n = this.ia.decode(this.buffer.slice(0, t)),
e.abrupt("return", (this.buffer = this.buffer.slice(t),
n));
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "aa",
value: function(e) {
throw this.sa.cancel(),
new Error("Invalid bundle format: ".concat(e))
}
}, {
key: "ha",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.sa.read();
case 2:
return (t = e.sent).done || ((n = new Uint8Array(this.buffer.length + t.value.length)).set(this.buffer),
n.set(t.value, this.buffer.length),
this.buffer = n),
e.abrupt("return", t.done);
case 5:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
e
}()
, hs = function() {
function e(t) {
Object(p.a)(this, e),
this.datastore = t,
this.readVersions = new Map,
this.mutations = [],
this.committed = !1,
this.lastWriteError = null,
this.writtenDocs = new Set
}
return Object(h.a)(e, [{
key: "lookup",
value: function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n, r = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (this.ensureCommitNotCalled(),
!(this.mutations.length > 0)) {
e.next = 2;
break
}
throw new L(D.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");
case 2:
return e.next = 4,
function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o, a, l, s;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
i = Wn(r.k) + "/documents",
o = {
documents: n.map((function(e) {
return Pn(r.k, e)
}
))
},
e.next = 5,
r.ji("BatchGetDocuments", i, o);
case 5:
return a = e.sent,
l = new Map,
a.forEach((function(e) {
var t = Xn(r.k, e);
l.set(t.key.toString(), t)
}
)),
s = [],
e.abrupt("return", (n.forEach((function(e) {
var t = l.get(e.toString());
I(!!t),
s.push(t)
}
)),
s));
case 10:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()(this.datastore, t);
case 4:
return n = e.sent,
e.abrupt("return", (n.forEach((function(e) {
return r.recordVersion(e)
}
)),
n));
case 6:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "set",
value: function(e, t) {
this.write(t.toMutation(e, this.precondition(e))),
this.writtenDocs.add(e.toString())
}
}, {
key: "update",
value: function(e, t) {
try {
this.write(t.toMutation(e, this.preconditionForUpdate(e)))
} catch (e) {
this.lastWriteError = e
}
this.writtenDocs.add(e.toString())
}
}, {
key: "delete",
value: function(e) {
this.write(new $t(e,this.precondition(e))),
this.writtenDocs.add(e.toString())
}
}, {
key: "commit",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t, n = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (this.ensureCommitNotCalled(),
!this.lastWriteError) {
e.next = 2;
break
}
throw this.lastWriteError;
case 2:
return t = this.readVersions,
this.mutations.forEach((function(e) {
t.delete(e.key.toString())
}
)),
t.forEach((function(e, t) {
var r = xe.fromPath(t);
n.mutations.push(new en(r,n.precondition(r)))
}
)),
e.next = 7,
function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r, i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return r = z(t),
i = Wn(r.k) + "/documents",
o = {
writes: n.map((function(e) {
return Gn(r.k, e)
}
))
},
e.next = 3,
r.Bi("Commit", i, o);
case 3:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()(this.datastore, this.mutations);
case 7:
this.committed = !0;
case 8:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "recordVersion",
value: function(e) {
var t;
if (e.isFoundDocument())
t = e.version;
else {
if (!e.isNoDocument())
throw E();
t = $.min()
}
var n = this.readVersions.get(e.key.toString());
if (n) {
if (!t.isEqual(n))
throw new L(D.ABORTED,"Document version changed between two reads.")
} else
this.readVersions.set(e.key.toString(), t)
}
}, {
key: "precondition",
value: function(e) {
var t = this.readVersions.get(e.toString());
return !this.writtenDocs.has(e.toString()) && t ? Pt.updateTime(t) : Pt.none()
}
}, {
key: "preconditionForUpdate",
value: function(e) {
var t = this.readVersions.get(e.toString());
if (!this.writtenDocs.has(e.toString()) && t) {
if (t.isEqual($.min()))
throw new L(D.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");
return Pt.updateTime(t)
}
return Pt.exists(!0)
}
}, {
key: "write",
value: function(e) {
this.ensureCommitNotCalled(),
this.mutations.push(e)
}
}, {
key: "ensureCommitNotCalled",
value: function() {}
}]),
e
}()
, fs = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this.asyncQueue = t,
this.datastore = n,
this.updateFunction = r,
this.deferred = i,
this.la = 5,
this.ur = new Go(this.asyncQueue,"transaction_retry")
}
return Object(h.a)(e, [{
key: "run",
value: function() {
this.la -= 1,
this.fa()
}
}, {
key: "fa",
value: function() {
var e = this;
this.ur.Zi(Object(s.a)(b.a.mark((function t() {
var n, r;
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
n = new hs(e.datastore),
(r = e.da(n)) && r.then((function(t) {
e.asyncQueue.enqueueAndForget((function() {
return n.commit().then((function() {
e.deferred.resolve(t)
}
)).catch((function(t) {
e.wa(t)
}
))
}
))
}
)).catch((function(t) {
e.wa(t)
}
));
case 2:
case "end":
return t.stop()
}
}
), t)
}
))))
}
}, {
key: "da",
value: function(e) {
try {
var t = this.updateFunction(e);
return !me(t) && t.catch && t.then ? t : (this.deferred.reject(Error("Transaction callback must return a Promise")),
null)
} catch (e) {
return this.deferred.reject(e),
null
}
}
}, {
key: "wa",
value: function(e) {
var t = this;
this.la > 0 && this._a(e) ? (this.la -= 1,
this.asyncQueue.enqueueAndForget((function() {
return t.fa(),
Promise.resolve()
}
))) : this.deferred.reject(e)
}
}, {
key: "_a",
value: function(e) {
if ("FirebaseError" === e.name) {
var t = e.code;
return "aborted" === t || "failed-precondition" === t || !nn(t)
}
return !1
}
}]),
e
}()
, bs = function() {
function e(t, n, r, i) {
var o = this;
Object(p.a)(this, e),
this.authCredentials = t,
this.appCheckCredentials = n,
this.asyncQueue = r,
this.databaseInfo = i,
this.user = j.UNAUTHENTICATED,
this.clientId = K.A(),
this.authCredentialListener = function() {
return Promise.resolve()
}
,
this.authCredentials.start(r, function() {
var e = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return M("FirestoreClient", "Received user=", t.uid),
e.next = 3,
o.authCredentialListener(t);
case 3:
o.user = t;
case 4:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()),
this.appCheckCredentials.start(r, (function() {
return Promise.resolve()
}
))
}
return Object(h.a)(e, [{
key: "getConfiguration",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", {
asyncQueue: this.asyncQueue,
databaseInfo: this.databaseInfo,
clientId: this.clientId,
authCredentials: this.authCredentials,
appCheckCredentials: this.appCheckCredentials,
initialUser: this.user,
maxConcurrentLimboResolutions: 100
});
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "setCredentialChangeListener",
value: function(e) {
this.authCredentialListener = e
}
}, {
key: "verifyNotTerminated",
value: function() {
if (this.asyncQueue.isShuttingDown)
throw new L(D.FAILED_PRECONDITION,"The client has already been terminated.")
}
}, {
key: "terminate",
value: function() {
var e = this;
this.asyncQueue.enterRestrictedMode();
var t = new R;
return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(Object(s.a)(b.a.mark((function n() {
var r;
return b.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
if (n.prev = 0,
n.t0 = e.onlineComponents,
!n.t0) {
n.next = 5;
break
}
return n.next = 5,
e.onlineComponents.terminate();
case 5:
if (n.t1 = e.offlineComponents,
!n.t1) {
n.next = 9;
break
}
return n.next = 9,
e.offlineComponents.terminate();
case 9:
e.authCredentials.shutdown(),
e.appCheckCredentials.shutdown(),
t.resolve(),
n.next = 18;
break;
case 14:
n.prev = 14,
n.t2 = n.catch(0),
r = Fa(n.t2, "Failed to shutdown persistence"),
t.reject(r);
case 18:
case "end":
return n.stop()
}
}
), n, null, [[0, 14]])
}
)))),
t.promise
}
}]),
e
}();
function gs(e, t) {
return ms.apply(this, arguments)
}
function ms() {
return ms = Object(s.a)(b.a.mark((function e(t, n) {
var r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t.asyncQueue.verifyOperationInProgress(),
M("FirestoreClient", "Initializing OfflineComponentProvider"),
e.next = 3,
t.getConfiguration();
case 3:
return r = e.sent,
e.next = 6,
n.initialize(r);
case 6:
i = r.initialUser,
t.setCredentialChangeListener(function() {
var e = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = i.isEqual(t),
e.t0) {
e.next = 5;
break
}
return e.next = 4,
$i(n.localStore, t);
case 4:
i = t;
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()),
n.persistence.setDatabaseDeletedListener((function() {
return t.terminate()
}
)),
t.offlineComponents = n;
case 8:
case "end":
return e.stop()
}
}
), e)
}
))),
ms.apply(this, arguments)
}
function vs(e, t) {
return ys.apply(this, arguments)
}
function ys() {
return ys = Object(s.a)(b.a.mark((function e(t, n) {
var r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t.asyncQueue.verifyOperationInProgress(),
e.next = 3,
xs(t);
case 3:
return r = e.sent,
M("FirestoreClient", "Initializing OnlineComponentProvider"),
e.next = 7,
t.getConfiguration();
case 7:
return i = e.sent,
e.next = 10,
n.initialize(r, i);
case 10:
t.setCredentialChangeListener((function(e) {
return function() {
var e = Object(s.a)(b.a.mark((function e(t, n) {
var r, i;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return (r = z(t)).asyncQueue.verifyOperationInProgress(),
M("RemoteStore", "RemoteStore received new credentials"),
i = ua(r),
r.Gr.add(3),
e.next = 6,
na(r);
case 6:
return i && r.Jr.set("Unknown"),
e.next = 9,
r.remoteSyncer.handleCredentialChange(n);
case 9:
return r.Gr.delete(3),
e.next = 12,
ea(r);
case 12:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()(n.remoteStore, e)
}
)),
t.onlineComponents = n;
case 12:
case "end":
return e.stop()
}
}
), e)
}
))),
ys.apply(this, arguments)
}
function xs(e) {
return Os.apply(this, arguments)
}
function Os() {
return (Os = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = t.offlineComponents,
e.t0) {
e.next = 5;
break
}
return M("FirestoreClient", "Using default OfflineComponentProvider"),
e.next = 5,
gs(t, new as);
case 5:
return e.abrupt("return", t.offlineComponents);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function js(e) {
return ks.apply(this, arguments)
}
function ks() {
return (ks = Object(s.a)(b.a.mark((function e(t) {
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (e.t0 = t.onlineComponents,
e.t0) {
e.next = 5;
break
}
return M("FirestoreClient", "Using default OnlineComponentProvider"),
e.next = 5,
vs(t, new cs);
case 5:
return e.abrupt("return", t.onlineComponents);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function ws(e) {
return xs(e).then((function(e) {
return e.persistence
}
))
}
function Cs(e) {
return xs(e).then((function(e) {
return e.localStore
}
))
}
function _s(e) {
return js(e).then((function(e) {
return e.remoteStore
}
))
}
function Ms(e) {
return js(e).then((function(e) {
return e.syncEngine
}
))
}
function Ss(e) {
return As.apply(this, arguments)
}
function As() {
return (As = Object(s.a)(b.a.mark((function e(t) {
var n, r;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
js(t);
case 2:
return n = e.sent,
r = n.eventManager,
e.abrupt("return", (r.onListen = ul.bind(null, n.syncEngine),
r.onUnlisten = fl.bind(null, n.syncEngine),
r));
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function Ts(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}
, r = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function i() {
return b.a.wrap((function(i) {
for (; ; )
switch (i.prev = i.next) {
case 0:
return i.t0 = function(e, t, n, r, i) {
var o = new ds({
next: function(o) {
t.enqueueAndForget((function() {
return Ka(e, a)
}
));
var l = o.docs.has(n);
!l && o.fromCache ? i.reject(new L(D.UNAVAILABLE,"Failed to get document because the client is offline.")) : l && o.fromCache && r && "server" === r.source ? i.reject(new L(D.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')) : i.resolve(o)
},
error: function(e) {
return i.reject(e)
}
})
, a = new $a(at(n.path),o,{
includeMetadataChanges: !0,
wo: !0
});
return Xa(e, a)
}
,
i.next = 3,
Ss(e);
case 3:
return i.t1 = i.sent,
i.t2 = e.asyncQueue,
i.t3 = t,
i.t4 = n,
i.t5 = r,
i.abrupt("return", (0,
i.t0)(i.t1, i.t2, i.t3, i.t4, i.t5));
case 9:
case "end":
return i.stop()
}
}
), i)
}
)))),
r.promise
}
function Es(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}
, r = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function i() {
return b.a.wrap((function(i) {
for (; ; )
switch (i.prev = i.next) {
case 0:
return i.t0 = function(e, t, n, r, i) {
var o = new ds({
next: function(n) {
t.enqueueAndForget((function() {
return Ka(e, a)
}
)),
n.fromCache && "server" === r.source ? i.reject(new L(D.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')) : i.resolve(n)
},
error: function(e) {
return i.reject(e)
}
})
, a = new $a(n,o,{
includeMetadataChanges: !0,
wo: !0
});
return Xa(e, a)
}
,
i.next = 3,
Ss(e);
case 3:
return i.t1 = i.sent,
i.t2 = e.asyncQueue,
i.t3 = t,
i.t4 = n,
i.t5 = r,
i.abrupt("return", (0,
i.t0)(i.t1, i.t2, i.t3, i.t4, i.t5));
case 9:
case "end":
return i.stop()
}
}
), i)
}
)))),
r.promise
}
var Is = Object(h.a)((function e(t, n, r, i, o, a, l, s) {
Object(p.a)(this, e),
this.databaseId = t,
this.appId = n,
this.persistenceKey = r,
this.host = i,
this.ssl = o,
this.forceLongPolling = a,
this.autoDetectLongPolling = l,
this.useFetchStreams = s
}
))
, Ns = function() {
function e(t, n) {
Object(p.a)(this, e),
this.projectId = t,
this.database = n || "(default)"
}
return Object(h.a)(e, [{
key: "isDefaultDatabase",
get: function() {
return "(default)" === this.database
}
}, {
key: "isEqual",
value: function(t) {
return t instanceof e && t.projectId === this.projectId && t.database === this.database
}
}]),
e
}()
, zs = new Map;
function Ds(e, t, n) {
if (!n)
throw new L(D.INVALID_ARGUMENT,"Function ".concat(e, "() cannot be called with an empty ").concat(t, "."))
}
function Ls(e, t, n, r) {
if (!0 === t && !0 === r)
throw new L(D.INVALID_ARGUMENT,"".concat(e, " and ").concat(n, " cannot be used together."))
}
function Rs(e) {
if (!xe.isDocumentKey(e))
throw new L(D.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e, " has ").concat(e.length, "."))
}
function Ps(e) {
if (xe.isDocumentKey(e))
throw new L(D.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e, " has ").concat(e.length, "."))
}
function Bs(e) {
if (void 0 === e)
return "undefined";
if (null === e)
return "null";
if ("string" == typeof e)
return e.length > 20 && (e = "".concat(e.substring(0, 20), "...")),
JSON.stringify(e);
if ("number" == typeof e || "boolean" == typeof e)
return "" + e;
if ("object" == typeof e) {
if (e instanceof Array)
return "an array";
var t = function(e) {
return e.constructor ? e.constructor.name : null
}(e);
return t ? "a custom ".concat(t, " object") : "an object"
}
return "function" == typeof e ? "a function" : E()
}
function Fs(e, t) {
if ("_delegate"in e && (e = e._delegate),
!(e instanceof t)) {
if (t.name === e.constructor.name)
throw new L(D.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");
var n = Bs(e);
throw new L(D.INVALID_ARGUMENT,"Expected type '".concat(t.name, "', but it was: ").concat(n))
}
return e
}
function Vs(e, t) {
if (t <= 0)
throw new L(D.INVALID_ARGUMENT,"Function ".concat(e, "() requires a positive number, but it was: ").concat(t, "."))
}
var Ws = function() {
function e(t) {
var n;
if (Object(p.a)(this, e),
void 0 === t.host) {
if (void 0 !== t.ssl)
throw new L(D.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");
this.host = "firestore.googleapis.com",
this.ssl = !0
} else
this.host = t.host,
this.ssl = null === (n = t.ssl) || void 0 === n || n;
if (this.credentials = t.credentials,
this.ignoreUndefinedProperties = !!t.ignoreUndefinedProperties,
void 0 === t.cacheSizeBytes)
this.cacheSizeBytes = 41943040;
else {
if (-1 !== t.cacheSizeBytes && t.cacheSizeBytes < 1048576)
throw new L(D.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");
this.cacheSizeBytes = t.cacheSizeBytes
}
this.experimentalForceLongPolling = !!t.experimentalForceLongPolling,
this.experimentalAutoDetectLongPolling = !!t.experimentalAutoDetectLongPolling,
this.useFetchStreams = !!t.useFetchStreams,
Ls("experimentalForceLongPolling", t.experimentalForceLongPolling, "experimentalAutoDetectLongPolling", t.experimentalAutoDetectLongPolling)
}
return Object(h.a)(e, [{
key: "isEqual",
value: function(e) {
return this.host === e.host && this.ssl === e.ssl && this.credentials === e.credentials && this.cacheSizeBytes === e.cacheSizeBytes && this.experimentalForceLongPolling === e.experimentalForceLongPolling && this.experimentalAutoDetectLongPolling === e.experimentalAutoDetectLongPolling && this.ignoreUndefinedProperties === e.ignoreUndefinedProperties && this.useFetchStreams === e.useFetchStreams
}
}]),
e
}()
, qs = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this._authCredentials = n,
this._appCheckCredentials = r,
this.type = "firestore-lite",
this._persistenceKey = "(lite)",
this._settings = new Ws({}),
this._settingsFrozen = !1,
t instanceof Ns ? this._databaseId = t : (this._app = t,
this._databaseId = function(e) {
if (!Object.prototype.hasOwnProperty.apply(e.options, ["projectId"]))
throw new L(D.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');
return new Ns(e.options.projectId)
}(t))
}
return Object(h.a)(e, [{
key: "app",
get: function() {
if (!this._app)
throw new L(D.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");
return this._app
}
}, {
key: "_initialized",
get: function() {
return this._settingsFrozen
}
}, {
key: "_terminated",
get: function() {
return void 0 !== this._terminateTask
}
}, {
key: "_setSettings",
value: function(e) {
if (this._settingsFrozen)
throw new L(D.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
this._settings = new Ws(e),
void 0 !== e.credentials && (this._authCredentials = function(e) {
if (!e)
return new B;
switch (e.type) {
case "gapi":
var t = e.client;
return I(!("object" != typeof t || null === t || !t.auth || !t.auth.getAuthHeaderValueForFirstParty)),
new q(t,e.sessionIndex || "0",e.iamToken || null);
case "provider":
return e.client;
default:
throw new L(D.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")
}
}(e.credentials))
}
}, {
key: "_getSettings",
value: function() {
return this._settings
}
}, {
key: "_freezeSettings",
value: function() {
return this._settingsFrozen = !0,
this._settings
}
}, {
key: "_delete",
value: function() {
return this._terminateTask || (this._terminateTask = this._terminate()),
this._terminateTask
}
}, {
key: "toJSON",
value: function() {
return {
app: this._app,
databaseId: this._databaseId,
settings: this._settings
}
}
}, {
key: "_terminate",
value: function() {
return function(e) {
var t = zs.get(e);
t && (M("ComponentProvider", "Removing Datastore"),
zs.delete(e),
t.terminate())
}(this),
Promise.resolve()
}
}]),
e
}();
function Hs(e, t, n) {
var r, i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}, o = (e = Fs(e, qs))._getSettings();
if ("firestore.googleapis.com" !== o.host && o.host !== t && A("Host has been set in both settings() and useEmulator(), emulator host will be used"),
e._setSettings(Object.assign(Object.assign({}, o), {
host: "".concat(t, ":").concat(n),
ssl: !1
})),
i.mockUserToken) {
var a, l;
if ("string" == typeof i.mockUserToken)
a = i.mockUserToken,
l = j.MOCK_USER;
else {
a = Object(y.f)(i.mockUserToken, null === (r = e._app) || void 0 === r ? void 0 : r.options.projectId);
var s = i.mockUserToken.sub || i.mockUserToken.user_id;
if (!s)
throw new L(D.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");
l = new j(s)
}
e._authCredentials = new F(new P(a,l))
}
}
var Us = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.converter = n,
this._key = r,
this.type = "document",
this.firestore = t
}
return Object(h.a)(e, [{
key: "_path",
get: function() {
return this._key.path
}
}, {
key: "id",
get: function() {
return this._key.path.lastSegment()
}
}, {
key: "path",
get: function() {
return this._key.path.canonicalString()
}
}, {
key: "parent",
get: function() {
return new Gs(this.firestore,this.converter,this._key.path.popLast())
}
}, {
key: "withConverter",
value: function(t) {
return new e(this.firestore,t,this._key)
}
}]),
e
}()
, Xs = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.converter = n,
this._query = r,
this.type = "query",
this.firestore = t
}
return Object(h.a)(e, [{
key: "withConverter",
value: function(t) {
return new e(this.firestore,t,this._query)
}
}]),
e
}()
, Gs = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this, e, r, at(i)))._path = i,
o.type = "collection",
o
}
return Object(h.a)(n, [{
key: "id",
get: function() {
return this._query.path.lastSegment()
}
}, {
key: "path",
get: function() {
return this._query.path.canonicalString()
}
}, {
key: "parent",
get: function() {
var e = this._path.popLast();
return e.isEmpty() ? null : new Us(this.firestore,null,new xe(e))
}
}, {
key: "withConverter",
value: function(e) {
return new n(this.firestore,e,this._path)
}
}]),
n
}(Xs);
function Ks(e, t) {
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
r[i - 2] = arguments[i];
if (e = Object(y.k)(e),
Ds("collection", "path", t),
e instanceof qs) {
var o = ie.fromString.apply(ie, [t].concat(r));
return Ps(o),
new Gs(e,null,o)
}
if (!(e instanceof Us || e instanceof Gs))
throw new L(D.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");
var a = e._path.child(ie.fromString.apply(ie, [t].concat(r)));
return Ps(a),
new Gs(e.firestore,null,a)
}
function Ys(e, t) {
if (e = Fs(e, qs),
Ds("collectionGroup", "collection id", t),
t.indexOf("/") >= 0)
throw new L(D.INVALID_ARGUMENT,"Invalid collection ID '".concat(t, "' passed to function collectionGroup(). Collection IDs must not contain '/'."));
return new Xs(e,null,function(e) {
return new it(ie.emptyPath(),e)
}(t))
}
function Qs(e, t) {
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
r[i - 2] = arguments[i];
if (e = Object(y.k)(e),
1 === arguments.length && (t = K.A()),
Ds("doc", "path", t),
e instanceof qs) {
var o = ie.fromString.apply(ie, [t].concat(r));
return Rs(o),
new Us(e,null,new xe(o))
}
if (!(e instanceof Us || e instanceof Gs))
throw new L(D.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");
var a = e._path.child(ie.fromString.apply(ie, [t].concat(r)));
return Rs(a),
new Us(e.firestore,e instanceof Gs ? e.converter : null,new xe(a))
}
function Js(e, t) {
return e = Object(y.k)(e),
t = Object(y.k)(t),
(e instanceof Us || e instanceof Gs) && (t instanceof Us || t instanceof Gs) && e.firestore === t.firestore && e.path === t.path && e.converter === t.converter
}
function Zs(e, t) {
return e = Object(y.k)(e),
t = Object(y.k)(t),
e instanceof Xs && t instanceof Xs && e.firestore === t.firestore && bt(e._query, t._query) && e.converter === t.converter
}
var $s = function() {
function e() {
var t = this;
Object(p.a)(this, e),
this.ma = Promise.resolve(),
this.ga = [],
this.ya = !1,
this.pa = [],
this.Ta = null,
this.Ea = !1,
this.Ia = !1,
this.Aa = [],
this.ur = new Go(this,"async_queue_retry"),
this.Ra = function() {
var e = Uo();
e && M("AsyncQueue", "Visibility state changed to " + e.visibilityState),
t.ur.er()
}
;
var n = Uo();
n && "function" == typeof n.addEventListener && n.addEventListener("visibilitychange", this.Ra)
}
return Object(h.a)(e, [{
key: "isShuttingDown",
get: function() {
return this.ya
}
}, {
key: "enqueueAndForget",
value: function(e) {
this.enqueue(e)
}
}, {
key: "enqueueAndForgetEvenWhileRestricted",
value: function(e) {
this.ba(),
this.Pa(e)
}
}, {
key: "enterRestrictedMode",
value: function(e) {
if (!this.ya) {
this.ya = !0,
this.Ia = e || !1;
var t = Uo();
t && "function" == typeof t.removeEventListener && t.removeEventListener("visibilitychange", this.Ra)
}
}
}, {
key: "enqueue",
value: function(e) {
var t = this;
if (this.ba(),
this.ya)
return new Promise((function() {}
));
var n = new R;
return this.Pa((function() {
return t.ya && t.Ia ? Promise.resolve() : (e().then(n.resolve, n.reject),
n.promise)
}
)).then((function() {
return n.promise
}
))
}
}, {
key: "enqueueRetryable",
value: function(e) {
var t = this;
this.enqueueAndForget((function() {
return t.ga.push(e),
t.va()
}
))
}
}, {
key: "va",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t = this;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (0 === this.ga.length) {
e.next = 14;
break
}
return e.prev = 1,
e.next = 4,
this.ga[0]();
case 4:
this.ga.shift(),
this.ur.reset(),
e.next = 13;
break;
case 8:
if (e.prev = 8,
e.t0 = e.catch(1),
Rr(e.t0)) {
e.next = 12;
break
}
throw e.t0;
case 12:
M("AsyncQueue", "Operation failed with retryable error: " + e.t0);
case 13:
this.ga.length > 0 && this.ur.Zi((function() {
return t.va()
}
));
case 14:
case "end":
return e.stop()
}
}
), e, this, [[1, 8]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "Pa",
value: function(e) {
var t = this
, n = this.ma.then((function() {
return t.Ea = !0,
e().catch((function(e) {
t.Ta = e,
t.Ea = !1;
var n = function(e) {
var t = e.message || "";
return e.stack && (t = e.stack.includes(e.message) ? e.stack : e.message + "\n" + e.stack),
t
}(e);
throw S("INTERNAL UNHANDLED ERROR: ", n),
e
}
)).then((function(e) {
return t.Ea = !1,
e
}
))
}
));
return this.ma = n,
n
}
}, {
key: "enqueueAfterDelay",
value: function(e, t, n) {
var r = this;
this.ba(),
this.Aa.indexOf(e) > -1 && (t = 0);
var i = Ba.createAndSchedule(this, e, t, n, (function(e) {
return r.Va(e)
}
));
return this.pa.push(i),
i
}
}, {
key: "ba",
value: function() {
this.Ta && E()
}
}, {
key: "verifyOperationInProgress",
value: function() {}
}, {
key: "Sa",
value: function() {
var e = Object(s.a)(b.a.mark((function e() {
var t;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t = this.ma,
e.next = 3,
t;
case 3:
if (t !== this.ma) {
e.next = 0;
break
}
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "Da",
value: function(e) {
var t, n = Object(l.a)(this.pa);
try {
for (n.s(); !(t = n.n()).done; )
if (t.value.timerId === e)
return !0
} catch (e) {
n.e(e)
} finally {
n.f()
}
return !1
}
}, {
key: "Ca",
value: function(e) {
var t = this;
return this.Sa().then((function() {
t.pa.sort((function(e, t) {
return e.targetTimeMs - t.targetTimeMs
}
));
var n, r = Object(l.a)(t.pa);
try {
for (r.s(); !(n = r.n()).done; ) {
var i = n.value;
if (i.skipDelay(),
"all" !== e && i.timerId === e)
break
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
return t.Sa()
}
))
}
}, {
key: "Na",
value: function(e) {
this.Aa.push(e)
}
}, {
key: "Va",
value: function(e) {
var t = this.pa.indexOf(e);
this.pa.splice(t, 1)
}
}]),
e
}();
function ec(e) {
return function(e, t) {
if ("object" != typeof e || null === e)
return !1;
var n, r = e, i = Object(l.a)(["next", "error", "complete"]);
try {
for (i.s(); !(n = i.n()).done; ) {
var o = n.value;
if (o in r && "function" == typeof r[o])
return !0
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return !1
}(e)
}
var tc = function() {
function e() {
Object(p.a)(this, e),
this._progressObserver = {},
this._taskCompletionResolver = new R,
this._lastProgress = {
taskState: "Running",
totalBytes: 0,
totalDocuments: 0,
bytesLoaded: 0,
documentsLoaded: 0
}
}
return Object(h.a)(e, [{
key: "onProgress",
value: function(e, t, n) {
this._progressObserver = {
next: e,
error: t,
complete: n
}
}
}, {
key: "catch",
value: function(e) {
return this._taskCompletionResolver.promise.catch(e)
}
}, {
key: "then",
value: function(e, t) {
return this._taskCompletionResolver.promise.then(e, t)
}
}, {
key: "_completeWith",
value: function(e) {
this._updateProgress(e),
this._progressObserver.complete && this._progressObserver.complete(),
this._taskCompletionResolver.resolve(e)
}
}, {
key: "_failWith",
value: function(e) {
this._lastProgress.taskState = "Error",
this._progressObserver.next && this._progressObserver.next(this._lastProgress),
this._progressObserver.error && this._progressObserver.error(e),
this._taskCompletionResolver.reject(e)
}
}, {
key: "_updateProgress",
value: function(e) {
this._lastProgress = e,
this._progressObserver.next && this._progressObserver.next(e)
}
}]),
e
}()
, nc = -1
, rc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this, e, r, i)).type = "firestore",
o._queue = new $s,
o._persistenceKey = "name"in e ? e.name : "[DEFAULT]",
o
}
return Object(h.a)(n, [{
key: "_terminate",
value: function() {
return this._firestoreClient || oc(this),
this._firestoreClient.terminate()
}
}]),
n
}(qs);
function ic(e) {
return e._firestoreClient || oc(e),
e._firestoreClient.verifyNotTerminated(),
e._firestoreClient
}
function oc(e) {
var t, n = e._freezeSettings(), r = function(e, t, n, r) {
return new Is(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)
}(e._databaseId, (null === (t = e._app) || void 0 === t ? void 0 : t.options.appId) || "", e._persistenceKey, n);
e._firestoreClient = new bs(e._authCredentials,e._appCheckCredentials,e._queue,r)
}
function ac(e, t) {
bc(e = Fs(e, rc));
var n = ic(e)
, r = e._freezeSettings()
, i = new cs;
return sc(n, i, new ls(i,r.cacheSizeBytes,null == t ? void 0 : t.forceOwnership))
}
function lc(e) {
bc(e = Fs(e, rc));
var t = ic(e)
, n = e._freezeSettings()
, r = new cs;
return sc(t, r, new ss(r,n.cacheSizeBytes))
}
function sc(e, t, n) {
var r = new R;
return e.asyncQueue.enqueue(Object(s.a)(b.a.mark((function i() {
return b.a.wrap((function(i) {
for (; ; )
switch (i.prev = i.next) {
case 0:
return i.prev = 0,
i.next = 3,
gs(e, n);
case 3:
return i.next = 5,
vs(e, t);
case 5:
r.resolve(),
i.next = 13;
break;
case 8:
if (i.prev = 8,
i.t0 = i.catch(0),
function(e) {
return "FirebaseError" === e.name ? e.code === D.FAILED_PRECONDITION || e.code === D.UNIMPLEMENTED : !("undefined" != typeof DOMException && e instanceof DOMException) || 22 === e.code || 20 === e.code || 11 === e.code
}(i.t0)) {
i.next = 12;
break
}
throw i.t0;
case 12:
console.warn("Error enabling offline persistence. Falling back to persistence disabled: " + i.t0),
r.reject(i.t0);
case 13:
case "end":
return i.stop()
}
}
), i, null, [[0, 8]])
}
)))).then((function() {
return r.promise
}
))
}
function cc(e) {
if (e._initialized && !e._terminated)
throw new L(D.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");
var t = new R;
return e._queue.enqueueAndForgetEvenWhileRestricted(Object(s.a)(b.a.mark((function n() {
return b.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return n.prev = 0,
n.next = 3,
function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (zr.Pt()) {
e.next = 2;
break
}
return e.abrupt("return", Promise.resolve());
case 2:
return n = t + "main",
e.next = 5,
zr.delete(n);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()(Xi(e._databaseId, e._persistenceKey));
case 3:
t.resolve(),
n.next = 9;
break;
case 6:
n.prev = 6,
n.t0 = n.catch(0),
t.reject(n.t0);
case 9:
case "end":
return n.stop()
}
}
), n, null, [[0, 6]])
}
)))),
t.promise
}
function uc(e) {
return function(e) {
var t = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function n() {
return b.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return n.t0 = Ml,
n.next = 3,
Ms(e);
case 3:
return n.t1 = n.sent,
n.t2 = t,
n.abrupt("return", (0,
n.t0)(n.t1, n.t2));
case 6:
case "end":
return n.stop()
}
}
), n)
}
)))),
t.promise
}(ic(e = Fs(e, rc)))
}
function dc(e) {
return function(e) {
return e.asyncQueue.enqueue(Object(s.a)(b.a.mark((function t() {
var n, r;
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.next = 2,
ws(e);
case 2:
return n = t.sent,
t.next = 5,
_s(e);
case 5:
return r = t.sent,
t.abrupt("return", (n.setNetworkEnabled(!0),
function(e) {
var t = z(e);
return t.Gr.delete(0),
ea(t)
}(r)));
case 7:
case "end":
return t.stop()
}
}
), t)
}
))))
}(ic(e = Fs(e, rc)))
}
function pc(e) {
return function(e) {
return e.asyncQueue.enqueue(Object(s.a)(b.a.mark((function t() {
var n, r;
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.next = 2,
ws(e);
case 2:
return n = t.sent,
t.next = 5,
_s(e);
case 5:
return r = t.sent,
t.abrupt("return", (n.setNetworkEnabled(!1),
function() {
var e = Object(s.a)(b.a.mark((function e(t) {
var n;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return (n = z(t)).Gr.add(0),
e.next = 4,
na(n);
case 4:
n.Jr.set("Offline");
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()(r)));
case 7:
case "end":
return t.stop()
}
}
), t)
}
))))
}(ic(e = Fs(e, rc)))
}
function hc(e, t) {
var n = ic(e = Fs(e, rc))
, r = new tc;
return function(e, t, n, r) {
var i = function(e, t) {
return function(e, t) {
return new ps(e,t)
}(function(e, t) {
if (e instanceof Uint8Array)
return us(e, t);
if (e instanceof ArrayBuffer)
return us(new Uint8Array(e), t);
if (e instanceof ReadableStream)
return e.getReader();
throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")
}("string" == typeof e ? (new TextEncoder).encode(e) : e), t)
}(n, Xo(t));
e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function t() {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.t0 = os,
t.next = 3,
Ms(e);
case 3:
t.t1 = t.sent,
t.t2 = i,
t.t3 = r,
(0,
t.t0)(t.t1, t.t2, t.t3);
case 7:
case "end":
return t.stop()
}
}
), t)
}
))))
}(n, e._databaseId, t, r),
r
}
function fc(e, t) {
return function(e, t) {
return e.asyncQueue.enqueue(Object(s.a)(b.a.mark((function n() {
return b.a.wrap((function(n) {
for (; ; )
switch (n.prev = n.next) {
case 0:
return n.t0 = function(e, t) {
var n = z(e);
return n.persistence.runTransaction("Get named query", "readonly", (function(e) {
return n.Ye.getNamedQuery(e, t)
}
))
}
,
n.next = 3,
Cs(e);
case 3:
return n.t1 = n.sent,
n.t2 = t,
n.abrupt("return", (0,
n.t0)(n.t1, n.t2));
case 6:
case "end":
return n.stop()
}
}
), n)
}
))))
}(ic(e = Fs(e, rc)), t).then((function(t) {
return t ? new Xs(e,null,t.query) : null
}
))
}
function bc(e) {
if (e._initialized || e._terminated)
throw new L(D.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")
}
var gc = function() {
function e() {
Object(p.a)(this, e);
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
for (var i = 0; i < n.length; ++i)
if (0 === n[i].length)
throw new L(D.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");
this._internalPath = new ae(n)
}
return Object(h.a)(e, [{
key: "isEqual",
value: function(e) {
return this._internalPath.isEqual(e._internalPath)
}
}]),
e
}()
, mc = function() {
function e(t) {
Object(p.a)(this, e),
this._byteString = t
}
return Object(h.a)(e, [{
key: "toBase64",
value: function() {
return this._byteString.toBase64()
}
}, {
key: "toUint8Array",
value: function() {
return this._byteString.toUint8Array()
}
}, {
key: "toString",
value: function() {
return "Bytes(base64: " + this.toBase64() + ")"
}
}, {
key: "isEqual",
value: function(e) {
return this._byteString.isEqual(e._byteString)
}
}], [{
key: "fromBase64String",
value: function(t) {
try {
return new e(ce.fromBase64String(t))
} catch (t) {
throw new L(D.INVALID_ARGUMENT,"Failed to construct data from Base64 string: " + t)
}
}
}, {
key: "fromUint8Array",
value: function(t) {
return new e(ce.fromUint8Array(t))
}
}]),
e
}()
, vc = Object(h.a)((function e(t) {
Object(p.a)(this, e),
this._methodName = t
}
))
, yc = function() {
function e(t, n) {
if (Object(p.a)(this, e),
!isFinite(t) || t < -90 || t > 90)
throw new L(D.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: " + t);
if (!isFinite(n) || n < -180 || n > 180)
throw new L(D.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: " + n);
this._lat = t,
this._long = n
}
return Object(h.a)(e, [{
key: "latitude",
get: function() {
return this._lat
}
}, {
key: "longitude",
get: function() {
return this._long
}
}, {
key: "isEqual",
value: function(e) {
return this._lat === e._lat && this._long === e._long
}
}, {
key: "toJSON",
value: function() {
return {
latitude: this._lat,
longitude: this._long
}
}
}, {
key: "_compareTo",
value: function(e) {
return Y(this._lat, e._lat) || Y(this._long, e._long)
}
}]),
e
}()
, xc = /^__.*__$/
, Oc = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.data = t,
this.fieldMask = n,
this.fieldTransforms = r
}
return Object(h.a)(e, [{
key: "toMutation",
value: function(e, t) {
return null !== this.fieldMask ? new Gt(e,this.data,this.fieldMask,t,this.fieldTransforms) : new Xt(e,this.data,t,this.fieldTransforms)
}
}]),
e
}()
, jc = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.data = t,
this.fieldMask = n,
this.fieldTransforms = r
}
return Object(h.a)(e, [{
key: "toMutation",
value: function(e, t) {
return new Gt(e,this.data,this.fieldMask,t,this.fieldTransforms)
}
}]),
e
}();
function kc(e) {
switch (e) {
case 0:
case 2:
case 1:
return !0;
case 3:
case 4:
return !1;
default:
throw E()
}
}
var wc = function() {
function e(t, n, r, i, o, a) {
Object(p.a)(this, e),
this.settings = t,
this.databaseId = n,
this.k = r,
this.ignoreUndefinedProperties = i,
void 0 === o && this.ka(),
this.fieldTransforms = o || [],
this.fieldMask = a || []
}
return Object(h.a)(e, [{
key: "path",
get: function() {
return this.settings.path
}
}, {
key: "xa",
get: function() {
return this.settings.xa
}
}, {
key: "$a",
value: function(t) {
return new e(Object.assign(Object.assign({}, this.settings), t),this.databaseId,this.k,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)
}
}, {
key: "Oa",
value: function(e) {
var t, n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.$a({
path: n,
Fa: !1
});
return r.Ma(e),
r
}
}, {
key: "La",
value: function(e) {
var t, n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.$a({
path: n,
Fa: !1
});
return r.ka(),
r
}
}, {
key: "Ba",
value: function(e) {
return this.$a({
path: void 0,
Fa: !0
})
}
}, {
key: "Ua",
value: function(e) {
return Hc(e, this.settings.methodName, this.settings.qa || !1, this.path, this.settings.Ka)
}
}, {
key: "contains",
value: function(e) {
return void 0 !== this.fieldMask.find((function(t) {
return e.isPrefixOf(t)
}
)) || void 0 !== this.fieldTransforms.find((function(t) {
return e.isPrefixOf(t.field)
}
))
}
}, {
key: "ka",
value: function() {
if (this.path)
for (var e = 0; e < this.path.length; e++)
this.Ma(this.path.get(e))
}
}, {
key: "Ma",
value: function(e) {
if (0 === e.length)
throw this.Ua("Document fields must not be empty");
if (kc(this.xa) && xc.test(e))
throw this.Ua('Document fields cannot begin and end with "__"')
}
}]),
e
}()
, Cc = function() {
function e(t, n, r) {
Object(p.a)(this, e),
this.databaseId = t,
this.ignoreUndefinedProperties = n,
this.k = r || Xo(t)
}
return Object(h.a)(e, [{
key: "ja",
value: function(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
return new wc({
xa: e,
methodName: t,
Ka: n,
path: ae.emptyPath(),
Fa: !1,
qa: r
},this.databaseId,this.k,this.ignoreUndefinedProperties)
}
}]),
e
}();
function _c(e) {
var t = e._freezeSettings()
, n = Xo(e._databaseId);
return new Cc(e._databaseId,!!t.ignoreUndefinedProperties,n)
}
function Mc(e, t, n, r, i) {
var o = arguments.length > 5 && void 0 !== arguments[5] ? arguments[5] : {}
, a = e.ja(o.merge || o.mergeFields ? 2 : 0, t, n, i);
Fc("Data must be an object, but it was:", a, r);
var s, c, u = Pc(r, a);
if (o.merge)
s = new le(a.fieldMask),
c = a.fieldTransforms;
else if (o.mergeFields) {
var d, p = [], h = Object(l.a)(o.mergeFields);
try {
for (h.s(); !(d = h.n()).done; ) {
var f = Vc(t, d.value, n);
if (!a.contains(f))
throw new L(D.INVALID_ARGUMENT,"Field '".concat(f, "' is specified in your field mask but missing from your input data."));
Uc(p, f) || p.push(f)
}
} catch (e) {
h.e(e)
} finally {
h.f()
}
s = new le(p),
c = a.fieldTransforms.filter((function(e) {
return s.covers(e.field)
}
))
} else
s = null,
c = a.fieldTransforms;
return new Oc(new De(u),s,c)
}
var Sc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n, [{
key: "_toFieldTransform",
value: function(e) {
if (2 !== e.xa)
throw 1 === e.xa ? e.Ua("".concat(this._methodName, "() can only appear at the top level of your update data")) : e.Ua("".concat(this._methodName, "() cannot be used with set() unless you pass {merge:true}"));
return e.fieldMask.push(e.path),
null
}
}, {
key: "isEqual",
value: function(e) {
return e instanceof n
}
}]),
n
}(vc);
function Ac(e, t, n) {
return new wc({
xa: 3,
Ka: t.settings.Ka,
methodName: e._methodName,
Fa: n
},t.databaseId,t.k,t.ignoreUndefinedProperties)
}
var Tc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n, [{
key: "_toFieldTransform",
value: function(e) {
return new Lt(e.path,new St)
}
}, {
key: "isEqual",
value: function(e) {
return e instanceof n
}
}]),
n
}(vc)
, Ec = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e)).Qa = r,
i
}
return Object(h.a)(n, [{
key: "_toFieldTransform",
value: function(e) {
var t = Ac(this, e, !0)
, n = this.Qa.map((function(e) {
return Rc(e, t)
}
))
, r = new At(n);
return new Lt(e.path,r)
}
}, {
key: "isEqual",
value: function(e) {
return this === e
}
}]),
n
}(vc)
, Ic = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e)).Qa = r,
i
}
return Object(h.a)(n, [{
key: "_toFieldTransform",
value: function(e) {
var t = Ac(this, e, !0)
, n = this.Qa.map((function(e) {
return Rc(e, t)
}
))
, r = new Et(n);
return new Lt(e.path,r)
}
}, {
key: "isEqual",
value: function(e) {
return this === e
}
}]),
n
}(vc)
, Nc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e)).Wa = r,
i
}
return Object(h.a)(n, [{
key: "_toFieldTransform",
value: function(e) {
var t = new Nt(e.k,kt(e.k, this.Wa));
return new Lt(e.path,t)
}
}, {
key: "isEqual",
value: function(e) {
return this === e
}
}]),
n
}(vc);
function zc(e, t, n, r) {
var i = e.ja(1, t, n);
Fc("Data must be an object, but it was:", i, r);
var o = []
, a = De.empty();
te(r, (function(e, r) {
var l = qc(t, e, n);
r = Object(y.k)(r);
var s = i.La(l);
if (r instanceof Sc)
o.push(l);
else {
var c = Rc(r, s);
null != c && (o.push(l),
a.set(l, c))
}
}
));
var l = new le(o);
return new jc(a,l,i.fieldTransforms)
}
function Dc(e, t, n, r, i, o) {
var a = e.ja(1, t, n)
, l = [Vc(t, r, n)]
, s = [i];
if (o.length % 2 != 0)
throw new L(D.INVALID_ARGUMENT,"Function ".concat(t, "() needs to be called with an even number of arguments that alternate between field names and values."));
for (var c = 0; c < o.length; c += 2)
l.push(Vc(t, o[c])),
s.push(o[c + 1]);
for (var u = [], d = De.empty(), p = l.length - 1; p >= 0; --p)
if (!Uc(u, l[p])) {
var h = l[p]
, f = s[p];
f = Object(y.k)(f);
var b = a.La(h);
if (f instanceof Sc)
u.push(h);
else {
var g = Rc(f, b);
null != g && (u.push(h),
d.set(h, g))
}
}
var m = new le(u);
return new jc(d,m,a.fieldTransforms)
}
function Lc(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] && arguments[3];
return Rc(n, e.ja(r ? 4 : 3, t))
}
function Rc(e, t) {
if (Bc(e = Object(y.k)(e)))
return Fc("Unsupported field value:", t, e),
Pc(e, t);
if (e instanceof vc)
return function(e, t) {
if (!kc(t.xa))
throw t.Ua("".concat(e._methodName, "() can only be used with update() and set()"));
if (!t.path)
throw t.Ua("".concat(e._methodName, "() is not currently supported inside arrays"));
var n = e._toFieldTransform(t);
n && t.fieldTransforms.push(n)
}(e, t),
null;
if (void 0 === e && t.ignoreUndefinedProperties)
return null;
if (t.path && t.fieldMask.push(t.path),
e instanceof Array) {
if (t.settings.Fa && 4 !== t.xa)
throw t.Ua("Nested arrays are not supported");
return function(e, t) {
var n, r = [], i = 0, o = Object(l.a)(e);
try {
for (o.s(); !(n = o.n()).done; ) {
var a = Rc(n.value, t.Ba(i));
null == a && (a = {
nullValue: "NULL_VALUE"
}),
r.push(a),
i++
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
return {
arrayValue: {
values: r
}
}
}(e, t)
}
return function(e, t) {
if (null === (e = Object(y.k)(e)))
return {
nullValue: "NULL_VALUE"
};
if ("number" == typeof e)
return kt(t.k, e);
if ("boolean" == typeof e)
return {
booleanValue: e
};
if ("string" == typeof e)
return {
stringValue: e
};
if (e instanceof Date) {
var n = Z.fromDate(e);
return {
timestampValue: In(t.k, n)
}
}
if (e instanceof Z) {
var r = new Z(e.seconds,1e3 * Math.floor(e.nanoseconds / 1e3));
return {
timestampValue: In(t.k, r)
}
}
if (e instanceof yc)
return {
geoPointValue: {
latitude: e.latitude,
longitude: e.longitude
}
};
if (e instanceof mc)
return {
bytesValue: Nn(t.k, e._byteString)
};
if (e instanceof Us) {
var i = t.databaseId
, o = e.firestore._databaseId;
if (!o.isEqual(i))
throw t.Ua("Document reference is for database ".concat(o.projectId, "/").concat(o.database, " but should be for database ").concat(i.projectId, "/").concat(i.database));
return {
referenceValue: Ln(e.firestore._databaseId || t.databaseId, e._key.path)
}
}
throw t.Ua("Unsupported field value: ".concat(Bs(e)))
}(e, t)
}
function Pc(e, t) {
var n = {};
return ne(e) ? t.path && t.path.length > 0 && t.fieldMask.push(t.path) : te(e, (function(e, r) {
var i = Rc(r, t.Oa(e));
null != i && (n[e] = i)
}
)),
{
mapValue: {
fields: n
}
}
}
function Bc(e) {
return !("object" != typeof e || null === e || e instanceof Array || e instanceof Date || e instanceof Z || e instanceof yc || e instanceof mc || e instanceof Us || e instanceof vc)
}
function Fc(e, t, n) {
if (!Bc(n) || !function(e) {
return "object" == typeof e && null !== e && (Object.getPrototypeOf(e) === Object.prototype || null === Object.getPrototypeOf(e))
}(n)) {
var r = Bs(n);
throw "an object" === r ? t.Ua(e + " a custom object") : t.Ua(e + " " + r)
}
}
function Vc(e, t, n) {
if ((t = Object(y.k)(t))instanceof gc)
return t._internalPath;
if ("string" == typeof t)
return qc(e, t);
throw Hc("Field path arguments must be of type string or FieldPath.", e, !1, void 0, n)
}
var Wc = new RegExp("[~\\*/\\[\\]]");
function qc(e, t, n) {
if (t.search(Wc) >= 0)
throw Hc("Invalid field path (".concat(t, "). Paths must not contain '~', '*', '/', '[', or ']'"), e, !1, void 0, n);
try {
return Object(r.a)(gc, Object(d.a)(t.split(".")))._internalPath
} catch (r) {
throw Hc("Invalid field path (".concat(t, "). Paths must not be empty, begin with '.', end with '.', or contain '..'"), e, !1, void 0, n)
}
}
function Hc(e, t, n, r, i) {
var o = r && !r.isEmpty()
, a = void 0 !== i
, l = "Function ".concat(t, "() called with invalid data");
n && (l += " (via `toFirestore()`)"),
l += ". ";
var s = "";
return (o || a) && (s += " (found",
o && (s += " in field ".concat(r)),
a && (s += " in document ".concat(i)),
s += ")"),
new L(D.INVALID_ARGUMENT,l + e + s)
}
function Uc(e, t) {
return e.some((function(e) {
return e.isEqual(t)
}
))
}
var Xc = function() {
function e(t, n, r, i, o) {
Object(p.a)(this, e),
this._firestore = t,
this._userDataWriter = n,
this._key = r,
this._document = i,
this._converter = o
}
return Object(h.a)(e, [{
key: "id",
get: function() {
return this._key.path.lastSegment()
}
}, {
key: "ref",
get: function() {
return new Us(this._firestore,this._converter,this._key)
}
}, {
key: "exists",
value: function() {
return null !== this._document
}
}, {
key: "data",
value: function() {
if (this._document) {
if (this._converter) {
var e = new Gc(this._firestore,this._userDataWriter,this._key,this._document,null);
return this._converter.fromFirestore(e)
}
return this._userDataWriter.convertValue(this._document.data.value)
}
}
}, {
key: "get",
value: function(e) {
if (this._document) {
var t = this._document.data.field(Kc("DocumentSnapshot.get", e));
if (null !== t)
return this._userDataWriter.convertValue(t)
}
}
}]),
e
}()
, Gc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n, [{
key: "data",
value: function() {
return Object(i.a)(Object(o.a)(n.prototype), "data", this).call(this)
}
}]),
n
}(Xc);
function Kc(e, t) {
return "string" == typeof t ? qc(e, t) : t instanceof gc ? t._internalPath : t._delegate._internalPath
}
var Yc = function() {
function e(t, n) {
Object(p.a)(this, e),
this.hasPendingWrites = t,
this.fromCache = n
}
return Object(h.a)(e, [{
key: "isEqual",
value: function(e) {
return this.hasPendingWrites === e.hasPendingWrites && this.fromCache === e.fromCache
}
}]),
e
}()
, Qc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i, o, a, l) {
var s;
return Object(p.a)(this, n),
(s = t.call(this, e, r, i, o, l))._firestore = e,
s._firestoreImpl = e,
s.metadata = a,
s
}
return Object(h.a)(n, [{
key: "exists",
value: function() {
return Object(i.a)(Object(o.a)(n.prototype), "exists", this).call(this)
}
}, {
key: "data",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
if (this._document) {
if (this._converter) {
var t = new Jc(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);
return this._converter.fromFirestore(t, e)
}
return this._userDataWriter.convertValue(this._document.data.value, e.serverTimestamps)
}
}
}, {
key: "get",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
if (this._document) {
var n = this._document.data.field(Kc("DocumentSnapshot.get", e));
if (null !== n)
return this._userDataWriter.convertValue(n, t.serverTimestamps)
}
}
}]),
n
}(Xc)
, Jc = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n() {
return Object(p.a)(this, n),
t.apply(this, arguments)
}
return Object(h.a)(n, [{
key: "data",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
return Object(i.a)(Object(o.a)(n.prototype), "data", this).call(this, e)
}
}]),
n
}(Qc)
, Zc = function() {
function e(t, n, r, i) {
Object(p.a)(this, e),
this._firestore = t,
this._userDataWriter = n,
this._snapshot = i,
this.metadata = new Yc(i.hasPendingWrites,i.fromCache),
this.query = r
}
return Object(h.a)(e, [{
key: "docs",
get: function() {
var e = [];
return this.forEach((function(t) {
return e.push(t)
}
)),
e
}
}, {
key: "size",
get: function() {
return this._snapshot.docs.size
}
}, {
key: "empty",
get: function() {
return 0 === this.size
}
}, {
key: "forEach",
value: function(e, t) {
var n = this;
this._snapshot.docs.forEach((function(r) {
e.call(t, new Jc(n._firestore,n._userDataWriter,r.key,r,new Yc(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))
}
))
}
}, {
key: "docChanges",
value: function() {
var e = !!(arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}).includeMetadataChanges;
if (e && this._snapshot.excludesMetadataChanges)
throw new L(D.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");
return this._cachedChanges && this._cachedChangesIncludeMetadataChanges === e || (this._cachedChanges = function(e, t) {
if (e._snapshot.oldDocs.isEmpty()) {
var n = 0;
return e._snapshot.docChanges.map((function(t) {
return {
type: "added",
doc: new Jc(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Yc(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),
oldIndex: -1,
newIndex: n++
}
}
))
}
var r = e._snapshot.oldDocs;
return e._snapshot.docChanges.filter((function(e) {
return t || 3 !== e.type
}
)).map((function(t) {
var n = new Jc(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Yc(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter)
, i = -1
, o = -1;
return 0 !== t.type && (i = r.indexOf(t.doc.key),
r = r.delete(t.doc.key)),
1 !== t.type && (o = (r = r.add(t.doc)).indexOf(t.doc.key)),
{
type: $c(t.type),
doc: n,
oldIndex: i,
newIndex: o
}
}
))
}(this, e),
this._cachedChangesIncludeMetadataChanges = e),
this._cachedChanges
}
}]),
e
}();
function $c(e) {
switch (e) {
case 0:
return "added";
case 2:
case 3:
return "modified";
case 1:
return "removed";
default:
return E()
}
}
function eu(e, t) {
return e instanceof Qc && t instanceof Qc ? e._firestore === t._firestore && e._key.isEqual(t._key) && (null === e._document ? null === t._document : e._document.isEqual(t._document)) && e._converter === t._converter : e instanceof Zc && t instanceof Zc && e._firestore === t._firestore && Zs(e.query, t.query) && e.metadata.isEqual(t.metadata) && e._snapshot.isEqual(t._snapshot)
}
function tu(e) {
if (st(e) && 0 === e.explicitOrderBy.length)
throw new L(D.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")
}
var nu = Object(h.a)((function e() {
Object(p.a)(this, e)
}
));
function ru(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
for (var i = 0, o = n; i < o.length; i++) {
e = o[i]._apply(e)
}
return e
}
var iu = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this)).Ga = e,
o.za = r,
o.Ha = i,
o.type = "where",
o
}
return Object(h.a)(n, [{
key: "_apply",
value: function(e) {
var t = _c(e.firestore)
, n = function(e, t, n, r, i, o, a) {
var s;
if (i.isKeyField()) {
if ("array-contains" === o || "array-contains-any" === o)
throw new L(D.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(o, "' queries on FieldPath.documentId()."));
if ("in" === o || "not-in" === o) {
yu(a, o);
var c, u = [], d = Object(l.a)(a);
try {
for (d.s(); !(c = d.n()).done; ) {
var p = c.value;
u.push(vu(r, e, p))
}
} catch (e) {
d.e(e)
} finally {
d.f()
}
s = {
arrayValue: {
values: u
}
}
} else
s = vu(r, e, a)
} else
"in" !== o && "not-in" !== o && "array-contains-any" !== o || yu(a, o),
s = Lc(n, "where", a, "in" === o || "not-in" === o);
var h = qe.create(i, o, s);
return function(e, t) {
if (t.V()) {
var n = ut(e);
if (null !== n && !n.isEqual(t.field))
throw new L(D.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '".concat(n.toString(), "' and '").concat(t.field.toString(), "'"));
var r = ct(e);
null !== r && xu(e, t.field, r)
}
var i = function(e, t) {
var n, r = Object(l.a)(e.filters);
try {
for (r.s(); !(n = r.n()).done; ) {
var i = n.value;
if (t.indexOf(i.op) >= 0)
return i.op
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
return null
}(e, function(e) {
switch (e) {
case "!=":
return ["!=", "not-in"];
case "array-contains":
return ["array-contains", "array-contains-any", "not-in"];
case "in":
return ["array-contains-any", "in", "not-in"];
case "array-contains-any":
return ["array-contains", "array-contains-any", "in", "not-in"];
case "not-in":
return ["array-contains", "array-contains-any", "in", "not-in", "!="];
default:
return []
}
}(t.op));
if (null !== i)
throw i === t.op ? new L(D.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(), "' filter.")) : new L(D.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(), "' filters with '").concat(i.toString(), "' filters."))
}(e, h),
h
}(e._query, 0, t, e.firestore._databaseId, this.Ga, this.za, this.Ha);
return new Xs(e.firestore,e.converter,function(e, t) {
var n = e.filters.concat([t]);
return new it(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)
}(e._query, n))
}
}]),
n
}(nu);
function ou(e, t, n) {
var r = t
, i = Kc("where", e);
return new iu(i,r,n)
}
var au = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this)).Ga = e,
i.Ja = r,
i.type = "orderBy",
i
}
return Object(h.a)(n, [{
key: "_apply",
value: function(e) {
var t = function(e, t, n) {
if (null !== e.startAt)
throw new L(D.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");
if (null !== e.endAt)
throw new L(D.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");
var r = new et(t,n);
return function(e, t) {
if (null === ct(e)) {
var n = ut(e);
null !== n && xu(e, n, t.field)
}
}(e, r),
r
}(e._query, this.Ga, this.Ja);
return new Xs(e.firestore,e.converter,function(e, t) {
var n = e.explicitOrderBy.concat([t]);
return new it(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)
}(e._query, t))
}
}]),
n
}(nu);
function lu(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "asc"
, n = Kc("orderBy", e);
return new au(n,t)
}
var su = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this)).type = e,
o.Ya = r,
o.Xa = i,
o
}
return Object(h.a)(n, [{
key: "_apply",
value: function(e) {
return new Xs(e.firestore,e.converter,ft(e._query, this.Ya, this.Xa))
}
}]),
n
}(nu);
function cu(e) {
return Vs("limit", e),
new su("limit",e,"F")
}
function uu(e) {
return Vs("limitToLast", e),
new su("limitToLast",e,"L")
}
var du = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this)).type = e,
o.Za = r,
o.tc = i,
o
}
return Object(h.a)(n, [{
key: "_apply",
value: function(e) {
var t = mu(e, this.type, this.Za, this.tc);
return new Xs(e.firestore,e.converter,function(e, t) {
return new it(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)
}(e._query, t))
}
}]),
n
}(nu);
function pu() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return new du("startAt",t,!0)
}
function hu() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return new du("startAfter",t,!1)
}
var fu = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r, i) {
var o;
return Object(p.a)(this, n),
(o = t.call(this)).type = e,
o.Za = r,
o.tc = i,
o
}
return Object(h.a)(n, [{
key: "_apply",
value: function(e) {
var t = mu(e, this.type, this.Za, this.tc);
return new Xs(e.firestore,e.converter,function(e, t) {
return new it(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)
}(e._query, t))
}
}]),
n
}(nu);
function bu() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return new fu("endBefore",t,!0)
}
function gu() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return new fu("endAt",t,!1)
}
function mu(e, t, n, r) {
if (n[0] = Object(y.k)(n[0]),
n[0]instanceof Xc)
return function(e, t, n, r, i) {
if (!r)
throw new L(D.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for ".concat(n, "()."));
var o, a = [], s = Object(l.a)(pt(e));
try {
for (s.s(); !(o = s.n()).done; ) {
var c = o.value;
if (c.field.isKeyField())
a.push(Se(t, r.key));
else {
var u = r.data.field(c.field);
if (fe(u))
throw new L(D.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "' + c.field + '" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');
if (null === u) {
var d = c.field.canonicalString();
throw new L(D.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '".concat(d, "' (used as the orderBy) does not exist."))
}
a.push(u)
}
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
return new Ze(a,i)
}(e._query, e.firestore._databaseId, t, n[0]._document, r);
var i = _c(e.firestore);
return function(e, t, n, r, i, o) {
var a = e.explicitOrderBy;
if (i.length > a.length)
throw new L(D.INVALID_ARGUMENT,"Too many arguments provided to ".concat(r, "(). The number of arguments must be less than or equal to the number of orderBy() clauses"));
for (var l = [], s = 0; s < i.length; s++) {
var c = i[s];
if (a[s].field.isKeyField()) {
if ("string" != typeof c)
throw new L(D.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in ".concat(r, "(), but got a ").concat(typeof c));
if (!dt(e) && -1 !== c.indexOf("/"))
throw new L(D.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to ".concat(r, "() must be a plain document ID, but '").concat(c, "' contains a slash."));
var u = e.path.child(ie.fromString(c));
if (!xe.isDocumentKey(u))
throw new L(D.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to ".concat(r, "() must result in a valid document path, but '").concat(u, "' is not because it contains an odd number of segments."));
var d = new xe(u);
l.push(Se(t, d))
} else {
var p = Lc(n, r, c);
l.push(p)
}
}
return new Ze(l,o)
}(e._query, e.firestore._databaseId, i, t, n, r)
}
function vu(e, t, n) {
if ("string" == typeof (n = Object(y.k)(n))) {
if ("" === n)
throw new L(D.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");
if (!dt(t) && -1 !== n.indexOf("/"))
throw new L(D.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '".concat(n, "' contains a '/' character."));
var r = t.path.child(ie.fromString(n));
if (!xe.isDocumentKey(r))
throw new L(D.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '".concat(r, "' is not because it has an odd number of segments (").concat(r.length, ")."));
return Se(e, new xe(r))
}
if (n instanceof Us)
return Se(e, n._key);
throw new L(D.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(Bs(n), "."))
}
function yu(e, t) {
if (!Array.isArray(e) || 0 === e.length)
throw new L(D.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(), "' filters."));
if (e.length > 10)
throw new L(D.INVALID_ARGUMENT,"Invalid Query. '".concat(t.toString(), "' filters support a maximum of 10 elements in the value array."))
}
function xu(e, t, n) {
if (!n.isEqual(t))
throw new L(D.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '".concat(t.toString(), "' and so you must also use '").concat(t.toString(), "' as your first argument to orderBy(), but your first orderBy() is on field '").concat(n.toString(), "' instead."))
}
var Ou = function() {
function e() {
Object(p.a)(this, e)
}
return Object(h.a)(e, [{
key: "convertValue",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "none";
switch (Oe(e)) {
case 0:
return null;
case 1:
return e.booleanValue;
case 2:
return pe(e.integerValue || e.doubleValue);
case 3:
return this.convertTimestamp(e.timestampValue);
case 4:
return this.convertServerTimestamp(e, t);
case 5:
return e.stringValue;
case 6:
return this.convertBytes(he(e.bytesValue));
case 7:
return this.convertReference(e.referenceValue);
case 8:
return this.convertGeoPoint(e.geoPointValue);
case 9:
return this.convertArray(e.arrayValue, t);
case 10:
return this.convertObject(e.mapValue, t);
default:
throw E()
}
}
}, {
key: "convertObject",
value: function(e, t) {
var n = this
, r = {};
return te(e.fields, (function(e, i) {
r[e] = n.convertValue(i, t)
}
)),
r
}
}, {
key: "convertGeoPoint",
value: function(e) {
return new yc(pe(e.latitude),pe(e.longitude))
}
}, {
key: "convertArray",
value: function(e, t) {
var n = this;
return (e.values || []).map((function(e) {
return n.convertValue(e, t)
}
))
}
}, {
key: "convertServerTimestamp",
value: function(e, t) {
switch (t) {
case "previous":
var n = be(e);
return null == n ? null : this.convertValue(n, t);
case "estimate":
return this.convertTimestamp(ge(e));
default:
return null
}
}
}, {
key: "convertTimestamp",
value: function(e) {
var t = de(e);
return new Z(t.seconds,t.nanos)
}
}, {
key: "convertDocumentKey",
value: function(e, t) {
var n = ie.fromString(e);
I(sr(n));
var r = new Ns(n.get(1),n.get(3))
, i = new xe(n.popFirst(5));
return r.isEqual(t) || S("Document ".concat(i, " contains a document reference within a different database (").concat(r.projectId, "/").concat(r.database, ") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId, "/").concat(t.database, ") instead.")),
i
}
}]),
e
}();
function ju(e, t, n) {
return e ? n && (n.merge || n.mergeFields) ? e.toFirestore(t, n) : e.toFirestore(t) : t
}
var ku = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this)).firestore = e,
r
}
return Object(h.a)(n, [{
key: "convertBytes",
value: function(e) {
return new mc(e)
}
}, {
key: "convertReference",
value: function(e) {
var t = this.convertDocumentKey(e, this.firestore._databaseId);
return new Us(this.firestore,null,t)
}
}]),
n
}(Ou)
, wu = function() {
function e(t, n) {
Object(p.a)(this, e),
this._firestore = t,
this._commitHandler = n,
this._mutations = [],
this._committed = !1,
this._dataReader = _c(t)
}
return Object(h.a)(e, [{
key: "set",
value: function(e, t, n) {
this._verifyNotCommitted();
var r = Cu(e, this._firestore)
, i = ju(r.converter, t, n)
, o = Mc(this._dataReader, "WriteBatch.set", r._key, i, null !== r.converter, n);
return this._mutations.push(o.toMutation(r._key, Pt.none())),
this
}
}, {
key: "update",
value: function(e, t, n) {
this._verifyNotCommitted();
for (var r, i = Cu(e, this._firestore), o = arguments.length, a = new Array(o > 3 ? o - 3 : 0), l = 3; l < o; l++)
a[l - 3] = arguments[l];
return r = "string" == typeof (t = Object(y.k)(t)) || t instanceof gc ? Dc(this._dataReader, "WriteBatch.update", i._key, t, n, a) : zc(this._dataReader, "WriteBatch.update", i._key, t),
this._mutations.push(r.toMutation(i._key, Pt.exists(!0))),
this
}
}, {
key: "delete",
value: function(e) {
this._verifyNotCommitted();
var t = Cu(e, this._firestore);
return this._mutations = this._mutations.concat(new $t(t._key,Pt.none())),
this
}
}, {
key: "commit",
value: function() {
return this._verifyNotCommitted(),
this._committed = !0,
this._mutations.length > 0 ? this._commitHandler(this._mutations) : Promise.resolve()
}
}, {
key: "_verifyNotCommitted",
value: function() {
if (this._committed)
throw new L(D.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")
}
}]),
e
}();
function Cu(e, t) {
if ((e = Object(y.k)(e)).firestore !== t)
throw new L(D.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");
return e
}
function _u(e) {
e = Fs(e, Us);
var t = Fs(e.firestore, rc);
return Ts(ic(t), e._key).then((function(n) {
return Fu(t, e, n)
}
))
}
var Mu = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e) {
var r;
return Object(p.a)(this, n),
(r = t.call(this)).firestore = e,
r
}
return Object(h.a)(n, [{
key: "convertBytes",
value: function(e) {
return new mc(e)
}
}, {
key: "convertReference",
value: function(e) {
var t = this.convertDocumentKey(e, this.firestore._databaseId);
return new Us(this.firestore,null,t)
}
}]),
n
}(Ou);
function Su(e) {
e = Fs(e, Us);
var t = Fs(e.firestore, rc)
, n = ic(t)
, r = new Mu(t);
return function(e, t) {
var n = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function r() {
return b.a.wrap((function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
return r.t0 = function() {
var e = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
function(e, t) {
var n = z(e);
return n.persistence.runTransaction("read document", "readonly", (function(e) {
return n.Wn.Rn(e, t)
}
))
}(t, n);
case 3:
(i = e.sent).isFoundDocument() ? r.resolve(i) : i.isNoDocument() ? r.resolve(null) : r.reject(new L(D.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),
e.next = 11;
break;
case 7:
e.prev = 7,
e.t0 = e.catch(0),
o = Fa(e.t0, "Failed to get document '".concat(n, " from cache")),
r.reject(o);
case 11:
case "end":
return e.stop()
}
}
), e, null, [[0, 7]])
}
)));
return function(t, n, r) {
return e.apply(this, arguments)
}
}(),
r.next = 3,
Cs(e);
case 3:
return r.t1 = r.sent,
r.t2 = t,
r.t3 = n,
r.abrupt("return", (0,
r.t0)(r.t1, r.t2, r.t3));
case 7:
case "end":
return r.stop()
}
}
), r)
}
)))),
n.promise
}(n, e._key).then((function(n) {
return new Qc(t,r,e._key,n,new Yc(null !== n && n.hasLocalMutations,!0),e.converter)
}
))
}
function Au(e) {
e = Fs(e, Us);
var t = Fs(e.firestore, rc);
return Ts(ic(t), e._key, {
source: "server"
}).then((function(n) {
return Fu(t, e, n)
}
))
}
function Tu(e) {
e = Fs(e, Xs);
var t = Fs(e.firestore, rc)
, n = ic(t)
, r = new Mu(t);
return tu(e._query),
Es(n, e._query).then((function(n) {
return new Zc(t,r,e,n)
}
))
}
function Eu(e) {
e = Fs(e, Xs);
var t = Fs(e.firestore, rc)
, n = ic(t)
, r = new Mu(t);
return function(e, t) {
var n = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function r() {
return b.a.wrap((function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
return r.t0 = function() {
var e = Object(s.a)(b.a.mark((function e(t, n, r) {
var i, o, a, l, s;
return b.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
co(t, n, !0);
case 3:
i = e.sent,
o = new al(n,i.zn),
a = o.Po(i.documents),
l = o.applyChanges(a, !1),
r.resolve(l.snapshot),
e.next = 14;
break;
case 10:
e.prev = 10,
e.t0 = e.catch(0),
s = Fa(e.t0, "Failed to execute query '".concat(n, " against cache")),
r.reject(s);
case 14:
case "end":
return e.stop()
}
}
), e, null, [[0, 10]])
}
)));
return function(t, n, r) {
return e.apply(this, arguments)
}
}(),
r.next = 3,
Cs(e);
case 3:
return r.t1 = r.sent,
r.t2 = t,
r.t3 = n,
r.abrupt("return", (0,
r.t0)(r.t1, r.t2, r.t3));
case 7:
case "end":
return r.stop()
}
}
), r)
}
)))),
n.promise
}(n, e._query).then((function(n) {
return new Zc(t,r,e,n)
}
))
}
function Iu(e) {
e = Fs(e, Xs);
var t = Fs(e.firestore, rc)
, n = ic(t)
, r = new Mu(t);
return Es(n, e._query, {
source: "server"
}).then((function(n) {
return new Zc(t,r,e,n)
}
))
}
function Nu(e, t, n) {
e = Fs(e, Us);
var r = Fs(e.firestore, rc)
, i = ju(e.converter, t, n);
return Bu(r, [Mc(_c(r), "setDoc", e._key, i, null !== e.converter, n).toMutation(e._key, Pt.none())])
}
function zu(e, t, n) {
e = Fs(e, Us);
for (var r = Fs(e.firestore, rc), i = _c(r), o = arguments.length, a = new Array(o > 3 ? o - 3 : 0), l = 3; l < o; l++)
a[l - 3] = arguments[l];
return Bu(r, [("string" == typeof (t = Object(y.k)(t)) || t instanceof gc ? Dc(i, "updateDoc", e._key, t, n, a) : zc(i, "updateDoc", e._key, t)).toMutation(e._key, Pt.exists(!0))])
}
function Du(e) {
return Bu(Fs(e.firestore, rc), [new $t(e._key,Pt.none())])
}
function Lu(e, t) {
var n = Fs(e.firestore, rc)
, r = Qs(e)
, i = ju(e.converter, t);
return Bu(n, [Mc(_c(e.firestore), "addDoc", r._key, i, null !== e.converter, {}).toMutation(r._key, Pt.exists(!1))]).then((function() {
return r
}
))
}
function Ru(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
var i, o, a;
e = Object(y.k)(e);
var l = {
includeMetadataChanges: !1
}
, c = 0;
"object" != typeof n[c] || ec(n[c]) || (l = n[c],
c++);
var u, d, p, h = {
includeMetadataChanges: l.includeMetadataChanges
};
if (ec(n[c])) {
var f = n[c];
n[c] = null === (i = f.next) || void 0 === i ? void 0 : i.bind(f),
n[c + 1] = null === (o = f.error) || void 0 === o ? void 0 : o.bind(f),
n[c + 2] = null === (a = f.complete) || void 0 === a ? void 0 : a.bind(f)
}
if (e instanceof Us)
d = Fs(e.firestore, rc),
p = at(e._key.path),
u = {
next: function(t) {
n[c] && n[c](Fu(d, e, t))
},
error: n[c + 1],
complete: n[c + 2]
};
else {
var g = Fs(e, Xs);
d = Fs(g.firestore, rc),
p = g._query;
var m = new Mu(d);
u = {
next: function(e) {
n[c] && n[c](new Zc(d,m,g,e))
},
error: n[c + 1],
complete: n[c + 2]
},
tu(e._query)
}
return function(e, t, n, r) {
var i = new ds(r)
, o = new $a(t,i,n);
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function t() {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.t0 = Xa,
t.next = 3,
Ss(e);
case 3:
return t.t1 = t.sent,
t.t2 = o,
t.abrupt("return", (0,
t.t0)(t.t1, t.t2));
case 6:
case "end":
return t.stop()
}
}
), t)
}
)))),
function() {
i.na(),
e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function t() {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.t0 = Ka,
t.next = 3,
Ss(e);
case 3:
return t.t1 = t.sent,
t.t2 = o,
t.abrupt("return", (0,
t.t0)(t.t1, t.t2));
case 6:
case "end":
return t.stop()
}
}
), t)
}
))))
}
}(ic(d), p, h, u)
}
function Pu(e, t) {
return function(e, t) {
var n = new ds(t);
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function t() {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.t0 = function(e, t) {
z(e).io.add(t),
t.next()
}
,
t.next = 3,
Ss(e);
case 3:
return t.t1 = t.sent,
t.t2 = n,
t.abrupt("return", (0,
t.t0)(t.t1, t.t2));
case 6:
case "end":
return t.stop()
}
}
), t)
}
)))),
function() {
n.na(),
e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function t() {
return b.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.t0 = function(e, t) {
z(e).io.delete(t)
}
,
t.next = 3,
Ss(e);
case 3:
return t.t1 = t.sent,
t.t2 = n,
t.abrupt("return", (0,
t.t0)(t.t1, t.t2));
case 6:
case "end":
return t.stop()
}
}
), t)
}
))))
}
}(ic(e = Fs(e, rc)), ec(t) ? t : {
next: t
})
}
function Bu(e, t) {
return function(e, t) {
var n = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function r() {
return b.a.wrap((function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
return r.t0 = gl,
r.next = 3,
Ms(e);
case 3:
return r.t1 = r.sent,
r.t2 = t,
r.t3 = n,
r.abrupt("return", (0,
r.t0)(r.t1, r.t2, r.t3));
case 7:
case "end":
return r.stop()
}
}
), r)
}
)))),
n.promise
}(ic(e), t)
}
function Fu(e, t, n) {
var r = n.docs.get(t._key)
, i = new Mu(e);
return new Qc(e,i,t._key,r,new Yc(n.hasPendingWrites,n.fromCache),t.converter)
}
var Vu = function(e) {
Object(c.a)(n, e);
var t = Object(u.a)(n);
function n(e, r) {
var i;
return Object(p.a)(this, n),
(i = t.call(this, e, r))._firestore = e,
i
}
return Object(h.a)(n, [{
key: "get",
value: function(e) {
var t = this
, r = Cu(e, this._firestore)
, a = new Mu(this._firestore);
return Object(i.a)(Object(o.a)(n.prototype), "get", this).call(this, e).then((function(e) {
return new Qc(t._firestore,a,r._key,e._document,new Yc(!1,!1),r.converter)
}
))
}
}]),
n
}(function() {
function e(t, n) {
Object(p.a)(this, e),
this._firestore = t,
this._transaction = n,
this._dataReader = _c(t)
}
return Object(h.a)(e, [{
key: "get",
value: function(e) {
var t = this
, n = Cu(e, this._firestore)
, r = new ku(this._firestore);
return this._transaction.lookup([n._key]).then((function(e) {
if (!e || 1 !== e.length)
return E();
var i = e[0];
if (i.isFoundDocument())
return new Xc(t._firestore,r,i.key,i,n.converter);
if (i.isNoDocument())
return new Xc(t._firestore,r,n._key,null,n.converter);
throw E()
}
))
}
}, {
key: "set",
value: function(e, t, n) {
var r = Cu(e, this._firestore)
, i = ju(r.converter, t, n)
, o = Mc(this._dataReader, "Transaction.set", r._key, i, null !== r.converter, n);
return this._transaction.set(r._key, o),
this
}
}, {
key: "update",
value: function(e, t, n) {
for (var r, i = Cu(e, this._firestore), o = arguments.length, a = new Array(o > 3 ? o - 3 : 0), l = 3; l < o; l++)
a[l - 3] = arguments[l];
return r = "string" == typeof (t = Object(y.k)(t)) || t instanceof gc ? Dc(this._dataReader, "Transaction.update", i._key, t, n, a) : zc(this._dataReader, "Transaction.update", i._key, t),
this._transaction.update(i._key, r),
this
}
}, {
key: "delete",
value: function(e) {
var t = Cu(e, this._firestore);
return this._transaction.delete(t._key),
this
}
}]),
e
}());
function Wu(e, t) {
return function(e, t) {
var n = new R;
return e.asyncQueue.enqueueAndForget(Object(s.a)(b.a.mark((function r() {
var i;
return b.a.wrap((function(r) {
for (; ; )
switch (r.prev = r.next) {
case 0:
return r.next = 2,
function(e) {
return js(e).then((function(e) {
return e.datastore
}
))
}(e);
case 2:
i = r.sent,
new fs(e.asyncQueue,i,t,n).run();
case 4:
case "end":
return r.stop()
}
}
), r)
}
)))),
n.promise
}(ic(e = Fs(e, rc)), (function(n) {
return t(new Vu(e,n))
}
))
}
function qu() {
return new Sc("deleteField")
}
function Hu() {
return new Tc("serverTimestamp")
}
function Uu() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return new Ec("arrayUnion",t)
}
function Xu() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return new Ic("arrayRemove",t)
}
function Gu(e) {
return new Nc("increment",e)
}
!function(e) {
var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
!function(e) {
k = e
}(g.SDK_VERSION),
Object(g._registerComponent)(new m.a("firestore",(function(e, n) {
var r = n.options
, i = e.getProvider("app").getImmediate()
, o = new rc(i,new V(e.getProvider("auth-internal")),new U(e.getProvider("app-check-internal")));
return r = Object.assign({
useFetchStreams: t
}, r),
o._setSettings(r),
o
}
),"PUBLIC")),
Object(g.registerVersion)(O, "3.4.2", e),
Object(g.registerVersion)(O, "3.4.2", "esm2017")
}()
}
).call(this, n(143))
}
, function(e, t, n) {
e.exports = n(384)
}
, , , function(e, t, n) {
var r = n(233)
, i = n(121)
, o = n(122)
, a = n(16)
, l = n(83)
, s = n(123)
, c = n(120)
, u = n(148)
, d = Object.prototype.hasOwnProperty;
e.exports = function(e) {
if (null == e)
return !0;
if (l(e) && (a(e) || "string" == typeof e || "function" == typeof e.splice || s(e) || u(e) || o(e)))
return !e.length;
var t = i(e);
if ("[object Map]" == t || "[object Set]" == t)
return !e.size;
if (c(e))
return !r(e).length;
for (var n in e)
if (d.call(e, n))
return !1;
return !0
}
}
, function(e, t, n) {
var r = n(161)
, i = n(109)
, o = n(205)
, a = n(83)
, l = n(120)
, s = n(96)
, c = Object.prototype.hasOwnProperty
, u = o((function(e, t) {
if (l(t) || a(t))
i(t, s(t), e);
else
for (var n in t)
c.call(t, n) && r(e, n, t[n])
}
));
e.exports = u
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
}
)),
n.d(t, "b", (function() {
return o
}
));
var r = function() {
return r = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
r.apply(this, arguments)
};
function i(e, t) {
var n = "function" == typeof Symbol && e[Symbol.iterator];
if (!n)
return e;
var r, i, o = n.call(e), a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
a.push(r.value)
} catch (e) {
i = {
error: e
}
} finally {
try {
r && !r.done && (n = o.return) && n.call(o)
} finally {
if (i)
throw i.error
}
}
return a
}
function o() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(i(arguments[t]));
return e
}
}
, function(e, t, n) {
"use strict";
n.d(t, "b", (function() {
return i
}
)),
n.d(t, "a", (function() {
return o
}
)),
n.d(t, "d", (function() {
return a
}
)),
n.d(t, "f", (function() {
return l
}
)),
n.d(t, "c", (function() {
return s
}
)),
n.d(t, "e", (function() {
return c
}
));
var r = function(e, t) {
return r = Object.setPrototypeOf || {
__proto__: []
}instanceof Array && function(e, t) {
e.__proto__ = t
}
|| function(e, t) {
for (var n in t)
t.hasOwnProperty(n) && (e[n] = t[n])
}
,
r(e, t)
};
function i(e, t) {
function n() {
this.constructor = e
}
r(e, t),
e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
new n)
}
var o = function() {
return o = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
o.apply(this, arguments)
};
function a(e, t) {
var n = {};
for (var r in e)
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
var i = 0;
for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
}
return n
}
function l(e) {
var t = "function" == typeof Symbol && Symbol.iterator
, n = t && e[t]
, r = 0;
if (n)
return n.call(e);
if (e && "number" == typeof e.length)
return {
next: function() {
return e && r >= e.length && (e = void 0),
{
value: e && e[r++],
done: !e
}
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
}
function s(e, t) {
var n = "function" == typeof Symbol && e[Symbol.iterator];
if (!n)
return e;
var r, i, o = n.call(e), a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
a.push(r.value)
} catch (e) {
i = {
error: e
}
} finally {
try {
r && !r.done && (n = o.return) && n.call(o)
} finally {
if (i)
throw i.error
}
}
return a
}
function c() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(s(arguments[t]));
return e
}
}
, function(e, t, n) {
var r = n(200);
e.exports = function(e, t) {
return r(e, t)
}
}
, function(e, t) {
e.exports = function(e) {
var t = typeof e;
return null != e && ("object" == t || "function" == t)
}
}
, function(e, t, n) {
var r = n(75)
, i = n(409)
, o = /&(?:amp|lt|gt|quot|#39);/g
, a = RegExp(o.source);
e.exports = function(e) {
return (e = r(e)) && a.test(e) ? e.replace(o, i) : e
}
}
, , function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return a
}
));
var r = n(127)
, i = n(167)
, o = n(88);
function a(e) {
return function(e) {
if (Array.isArray(e))
return Object(r.a)(e)
}(e) || Object(i.a)(e) || Object(o.a)(e) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}
}
, , function(e, t, n) {
"use strict";
n.r(t),
n.d(t, "SDK_VERSION", (function() {
return I
}
)),
n.d(t, "_DEFAULT_ENTRY_NAME", (function() {
return y
}
)),
n.d(t, "_addComponent", (function() {
return k
}
)),
n.d(t, "_addOrOverwriteComponent", (function() {
return w
}
)),
n.d(t, "_apps", (function() {
return O
}
)),
n.d(t, "_clearComponents", (function() {
return S
}
)),
n.d(t, "_components", (function() {
return j
}
)),
n.d(t, "_getProvider", (function() {
return _
}
)),
n.d(t, "_registerComponent", (function() {
return C
}
)),
n.d(t, "_removeServiceInstance", (function() {
return M
}
)),
n.d(t, "deleteApp", (function() {
return L
}
)),
n.d(t, "getApp", (function() {
return z
}
)),
n.d(t, "getApps", (function() {
return D
}
)),
n.d(t, "initializeApp", (function() {
return N
}
)),
n.d(t, "onLog", (function() {
return B
}
)),
n.d(t, "registerVersion", (function() {
return P
}
)),
n.d(t, "setLogLevel", (function() {
return F
}
));
var r, i, o = n(10), a = n(19), l = n(11), s = n(5), c = n(6), u = n(7), d = n.n(u), p = n(55), h = n(53), f = n(14);
n.d(t, "FirebaseError", (function() {
return f.c
}
));
var b = function() {
function e(t) {
Object(s.a)(this, e),
this.container = t
}
return Object(c.a)(e, [{
key: "getPlatformInfoString",
value: function() {
return this.container.getProviders().map((function(e) {
if (function(e) {
var t = e.getComponent();
return "VERSION" === (null == t ? void 0 : t.type)
}(e)) {
var t = e.getImmediate();
return "".concat(t.library, "/").concat(t.version)
}
return null
}
)).filter((function(e) {
return e
}
)).join(" ")
}
}]),
e
}()
, g = "@firebase/app"
, m = "0.7.12"
, v = new h.b("@firebase/app")
, y = "[DEFAULT]"
, x = (r = {},
Object(l.a)(r, g, "fire-core"),
Object(l.a)(r, "@firebase/app-compat", "fire-core-compat"),
Object(l.a)(r, "@firebase/analytics", "fire-analytics"),
Object(l.a)(r, "@firebase/analytics-compat", "fire-analytics-compat"),
Object(l.a)(r, "@firebase/app-check", "fire-app-check"),
Object(l.a)(r, "@firebase/app-check-compat", "fire-app-check-compat"),
Object(l.a)(r, "@firebase/auth", "fire-auth"),
Object(l.a)(r, "@firebase/auth-compat", "fire-auth-compat"),
Object(l.a)(r, "@firebase/database", "fire-rtdb"),
Object(l.a)(r, "@firebase/database-compat", "fire-rtdb-compat"),
Object(l.a)(r, "@firebase/functions", "fire-fn"),
Object(l.a)(r, "@firebase/functions-compat", "fire-fn-compat"),
Object(l.a)(r, "@firebase/installations", "fire-iid"),
Object(l.a)(r, "@firebase/installations-compat", "fire-iid-compat"),
Object(l.a)(r, "@firebase/messaging", "fire-fcm"),
Object(l.a)(r, "@firebase/messaging-compat", "fire-fcm-compat"),
Object(l.a)(r, "@firebase/performance", "fire-perf"),
Object(l.a)(r, "@firebase/performance-compat", "fire-perf-compat"),
Object(l.a)(r, "@firebase/remote-config", "fire-rc"),
Object(l.a)(r, "@firebase/remote-config-compat", "fire-rc-compat"),
Object(l.a)(r, "@firebase/storage", "fire-gcs"),
Object(l.a)(r, "@firebase/storage-compat", "fire-gcs-compat"),
Object(l.a)(r, "@firebase/firestore", "fire-fst"),
Object(l.a)(r, "@firebase/firestore-compat", "fire-fst-compat"),
Object(l.a)(r, "fire-js", "fire-js"),
Object(l.a)(r, "firebase", "fire-js-all"),
r)
, O = new Map
, j = new Map;
function k(e, t) {
try {
e.container.addComponent(t)
} catch (n) {
v.debug("Component ".concat(t.name, " failed to register with FirebaseApp ").concat(e.name), n)
}
}
function w(e, t) {
e.container.addOrOverwriteComponent(t)
}
function C(e) {
var t = e.name;
if (j.has(t))
return v.debug("There were multiple attempts to register component ".concat(t, ".")),
!1;
j.set(t, e);
var n, r = Object(a.a)(O.values());
try {
for (r.s(); !(n = r.n()).done; )
k(n.value, e)
} catch (e) {
r.e(e)
} finally {
r.f()
}
return !0
}
function _(e, t) {
return e.container.getProvider(t)
}
function M(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : y;
_(e, t).clearInstance(n)
}
function S() {
j.clear()
}
var A = (i = {},
Object(l.a)(i, "no-app", "No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),
Object(l.a)(i, "bad-app-name", "Illegal App name: '{$appName}"),
Object(l.a)(i, "duplicate-app", "Firebase App named '{$appName}' already exists with different options or config"),
Object(l.a)(i, "app-deleted", "Firebase App named '{$appName}' already deleted"),
Object(l.a)(i, "invalid-app-argument", "firebase.{$appName}() takes either no argument or a Firebase App instance."),
Object(l.a)(i, "invalid-log-argument", "First argument to `onLog` must be null or a function."),
i)
, T = new f.b("app","Firebase",A)
, E = function() {
function e(t, n, r) {
var i = this;
Object(s.a)(this, e),
this._isDeleted = !1,
this._options = Object.assign({}, t),
this._config = Object.assign({}, n),
this._name = n.name,
this._automaticDataCollectionEnabled = n.automaticDataCollectionEnabled,
this._container = r,
this.container.addComponent(new p.a("app",(function() {
return i
}
),"PUBLIC"))
}
return Object(c.a)(e, [{
key: "automaticDataCollectionEnabled",
get: function() {
return this.checkDestroyed(),
this._automaticDataCollectionEnabled
},
set: function(e) {
this.checkDestroyed(),
this._automaticDataCollectionEnabled = e
}
}, {
key: "name",
get: function() {
return this.checkDestroyed(),
this._name
}
}, {
key: "options",
get: function() {
return this.checkDestroyed(),
this._options
}
}, {
key: "config",
get: function() {
return this.checkDestroyed(),
this._config
}
}, {
key: "container",
get: function() {
return this._container
}
}, {
key: "isDeleted",
get: function() {
return this._isDeleted
},
set: function(e) {
this._isDeleted = e
}
}, {
key: "checkDestroyed",
value: function() {
if (this.isDeleted)
throw T.create("app-deleted", {
appName: this._name
})
}
}]),
e
}()
, I = "9.6.2";
function N(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
"object" != typeof t && (t = {
name: t
});
var n = Object.assign({
name: y,
automaticDataCollectionEnabled: !1
}, t)
, r = n.name;
if ("string" != typeof r || !r)
throw T.create("bad-app-name", {
appName: String(r)
});
var i = O.get(r);
if (i) {
if (Object(f.h)(e, i.options) && Object(f.h)(n, i.config))
return i;
throw T.create("duplicate-app", {
appName: r
})
}
var o, l = new p.b(r), s = Object(a.a)(j.values());
try {
for (s.s(); !(o = s.n()).done; ) {
var c = o.value;
l.addComponent(c)
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
var u = new E(e,n,l);
return O.set(r, u),
u
}
function z() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : y
, t = O.get(e);
if (!t)
throw T.create("no-app", {
appName: e
});
return t
}
function D() {
return Array.from(O.values())
}
function L(e) {
return R.apply(this, arguments)
}
function R() {
return R = Object(o.a)(d.a.mark((function e(t) {
var n;
return d.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (n = t.name,
!O.has(n)) {
e.next = 6;
break
}
return O.delete(n),
e.next = 5,
Promise.all(t.container.getProviders().map((function(e) {
return e.delete()
}
)));
case 5:
t.isDeleted = !0;
case 6:
case "end":
return e.stop()
}
}
), e)
}
))),
R.apply(this, arguments)
}
function P(e, t, n) {
var r, i = null !== (r = x[e]) && void 0 !== r ? r : e;
n && (i += "-".concat(n));
var o = i.match(/\s|\//)
, a = t.match(/\s|\//);
if (o || a) {
var l = ['Unable to register library "'.concat(i, '" with version "').concat(t, '":')];
return o && l.push('library name "'.concat(i, '" contains illegal characters (whitespace or "/")')),
o && a && l.push("and"),
a && l.push('version name "'.concat(t, '" contains illegal characters (whitespace or "/")')),
void v.warn(l.join(" "))
}
C(new p.a("".concat(i, "-version"),(function() {
return {
library: i,
version: t
}
}
),"VERSION"))
}
function B(e, t) {
if (null !== e && "function" != typeof e)
throw T.create("invalid-log-argument");
Object(h.d)(e, t)
}
function F(e) {
Object(h.c)(e)
}
C(new p.a("platform-logger",(function(e) {
return new b(e)
}
),"PRIVATE")),
P(g, m, ""),
P(g, m, "esm2017"),
P("fire-js", "")
}
, function(e, t, n) {
"use strict";
n.d(t, "c", (function() {
return o
}
)),
n.d(t, "a", (function() {
return a
}
)),
n.d(t, "b", (function() {
return l
}
)),
n.d(t, "d", (function() {
return s
}
)),
n.d(t, "e", (function() {
return c
}
));
var r = n(115)
, i = new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");
function o(e) {
var t;
return void 0 === e && (e = null === (t = Object(r.b)().getClient()) || void 0 === t ? void 0 : t.getOptions()),
!!e && ("tracesSampleRate"in e || "tracesSampler"in e)
}
function a(e) {
var t = e.match(i);
if (t) {
var n = void 0;
return "1" === t[3] ? n = !0 : "0" === t[3] && (n = !1),
{
traceId: t[1],
parentSampled: n,
parentSpanId: t[2]
}
}
}
function l(e) {
var t, n;
return void 0 === e && (e = Object(r.b)()),
null === (n = null === (t = e) || void 0 === t ? void 0 : t.getScope()) || void 0 === n ? void 0 : n.getTransaction()
}
function s(e) {
return e / 1e3
}
function c(e) {
return 1e3 * e
}
}
, , , function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return a
}
)),
n.d(t, "b", (function() {
return s
}
));
var r = n(52)
, i = Object(r.a)()
, o = "Sentry Logger ";
function a(e) {
var t = Object(r.a)();
if (!("console"in t))
return e();
var n = t.console
, i = {};
["debug", "info", "warn", "error", "log", "assert"].forEach((function(e) {
e in t.console && n[e].__sentry_original__ && (i[e] = n[e],
n[e] = n[e].__sentry_original__)
}
));
var o = e();
return Object.keys(i).forEach((function(e) {
n[e] = i[e]
}
)),
o
}
var l = function() {
function e() {
this._enabled = !1
}
return e.prototype.disable = function() {
this._enabled = !1
}
,
e.prototype.enable = function() {
this._enabled = !0
}
,
e.prototype.log = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
this._enabled && a((function() {
i.console.log(o + "[Log]: " + e.join(" "))
}
))
}
,
e.prototype.warn = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
this._enabled && a((function() {
i.console.warn(o + "[Warn]: " + e.join(" "))
}
))
}
,
e.prototype.error = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
this._enabled && a((function() {
i.console.error(o + "[Error]: " + e.join(" "))
}
))
}
,
e
}();
i.__SENTRY__ = i.__SENTRY__ || {};
var s = i.__SENTRY__.logger || (i.__SENTRY__.logger = new l)
}
, , , function(e, t, n) {
var r = n(190)
, i = n(230)
, o = n(191)
, a = n(117)
, l = n(361)
, s = n(232)
, c = n(75);
e.exports = function(e, t, n) {
return n && "number" != typeof n && a(e, t, n) && (t = n = void 0),
(n = void 0 === n ? 4294967295 : n >>> 0) ? (e = c(e)) && ("string" == typeof t || null != t && !l(t)) && !(t = r(t)) && o(e) ? i(s(e), 0, n) : e.split(t, n) : []
}
}
, function(e, t, n) {
"use strict";
function r(e) {
return r = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
}
,
r(e)
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
function r(e) {
switch (Object.prototype.toString.call(e)) {
case "[object Error]":
case "[object Exception]":
case "[object DOMException]":
return !0;
default:
return b(e, Error)
}
}
function i(e) {
return "[object ErrorEvent]" === Object.prototype.toString.call(e)
}
function o(e) {
return "[object DOMError]" === Object.prototype.toString.call(e)
}
function a(e) {
return "[object DOMException]" === Object.prototype.toString.call(e)
}
function l(e) {
return "[object String]" === Object.prototype.toString.call(e)
}
function s(e) {
return null === e || "object" != typeof e && "function" != typeof e
}
function c(e) {
return "[object Object]" === Object.prototype.toString.call(e)
}
function u(e) {
return "undefined" != typeof Event && b(e, Event)
}
function d(e) {
return "undefined" != typeof Element && b(e, Element)
}
function p(e) {
return "[object RegExp]" === Object.prototype.toString.call(e)
}
function h(e) {
return Boolean(e && e.then && "function" == typeof e.then)
}
function f(e) {
return c(e) && "nativeEvent"in e && "preventDefault"in e && "stopPropagation"in e
}
function b(e, t) {
try {
return e instanceof t
} catch (e) {
return !1
}
}
n.d(t, "d", (function() {
return r
}
)),
n.d(t, "e", (function() {
return i
}
)),
n.d(t, "a", (function() {
return o
}
)),
n.d(t, "b", (function() {
return a
}
)),
n.d(t, "k", (function() {
return l
}
)),
n.d(t, "i", (function() {
return s
}
)),
n.d(t, "h", (function() {
return c
}
)),
n.d(t, "f", (function() {
return u
}
)),
n.d(t, "c", (function() {
return d
}
)),
n.d(t, "j", (function() {
return p
}
)),
n.d(t, "m", (function() {
return h
}
)),
n.d(t, "l", (function() {
return f
}
)),
n.d(t, "g", (function() {
return b
}
))
}
, , function(e, t, n) {
"use strict";
var r = n(410).default
, i = n(411).default
, o = n(415).default
, a = n(416).default
, l = n(420)
, s = n(421)
, c = n(422)
, u = n(423)
, d = Symbol("encodeFragmentIdentifier");
function p(e) {
if ("string" != typeof e || 1 !== e.length)
throw new TypeError("arrayFormatSeparator must be single character string")
}
function h(e, t) {
return t.encode ? t.strict ? l(e) : encodeURIComponent(e) : e
}
function f(e, t) {
return t.decode ? s(e) : e
}
function b(e) {
return Array.isArray(e) ? e.sort() : "object" == typeof e ? b(Object.keys(e)).sort((function(e, t) {
return Number(e) - Number(t)
}
)).map((function(t) {
return e[t]
}
)) : e
}
function g(e) {
var t = e.indexOf("#");
return -1 !== t && (e = e.slice(0, t)),
e
}
function m(e) {
var t = (e = g(e)).indexOf("?");
return -1 === t ? "" : e.slice(t + 1)
}
function v(e, t) {
return t.parseNumbers && !Number.isNaN(Number(e)) && "string" == typeof e && "" !== e.trim() ? e = Number(e) : !t.parseBooleans || null === e || "true" !== e.toLowerCase() && "false" !== e.toLowerCase() || (e = "true" === e.toLowerCase()),
e
}
function y(e, t) {
p((t = Object.assign({
decode: !0,
sort: !0,
arrayFormat: "none",
arrayFormatSeparator: ",",
parseNumbers: !1,
parseBooleans: !1
}, t)).arrayFormatSeparator);
var n = function(e) {
var t;
switch (e.arrayFormat) {
case "index":
return function(e, n, r) {
t = /\[(\d*)\]$/.exec(e),
e = e.replace(/\[\d*\]$/, ""),
t ? (void 0 === r[e] && (r[e] = {}),
r[e][t[1]] = n) : r[e] = n
}
;
case "bracket":
return function(e, n, r) {
t = /(\[\])$/.exec(e),
e = e.replace(/\[\]$/, ""),
t ? void 0 !== r[e] ? r[e] = [].concat(r[e], n) : r[e] = [n] : r[e] = n
}
;
case "colon-list-separator":
return function(e, n, r) {
t = /(:list)$/.exec(e),
e = e.replace(/:list$/, ""),
t ? void 0 !== r[e] ? r[e] = [].concat(r[e], n) : r[e] = [n] : r[e] = n
}
;
case "comma":
case "separator":
return function(t, n, r) {
var i = "string" == typeof n && n.includes(e.arrayFormatSeparator)
, o = "string" == typeof n && !i && f(n, e).includes(e.arrayFormatSeparator);
n = o ? f(n, e) : n;
var a = i || o ? n.split(e.arrayFormatSeparator).map((function(t) {
return f(t, e)
}
)) : null === n ? n : f(n, e);
r[t] = a
}
;
case "bracket-separator":
return function(t, n, r) {
var i = /(\[\])$/.test(t);
if (t = t.replace(/\[\]$/, ""),
i) {
var o = null === n ? [] : n.split(e.arrayFormatSeparator).map((function(t) {
return f(t, e)
}
));
void 0 !== r[t] ? r[t] = [].concat(r[t], o) : r[t] = o
} else
r[t] = n ? f(n, e) : n
}
;
default:
return function(e, t, n) {
void 0 !== n[e] ? n[e] = [].concat(n[e], t) : n[e] = t
}
}
}(t)
, r = Object.create(null);
if ("string" != typeof e)
return r;
if (!(e = e.trim().replace(/^[?#&]/, "")))
return r;
var a, l = o(e.split("&"));
try {
for (l.s(); !(a = l.n()).done; ) {
var s = a.value;
if ("" !== s) {
var u = c(t.decode ? s.replace(/\+/g, " ") : s, "=")
, d = i(u, 2)
, h = d[0]
, g = d[1];
g = void 0 === g ? null : ["comma", "separator", "bracket-separator"].includes(t.arrayFormat) ? g : f(g, t),
n(f(h, t), g, r)
}
}
} catch (e) {
l.e(e)
} finally {
l.f()
}
for (var m = 0, y = Object.keys(r); m < y.length; m++) {
var x = y[m]
, O = r[x];
if ("object" == typeof O && null !== O)
for (var j = 0, k = Object.keys(O); j < k.length; j++) {
var w = k[j];
O[w] = v(O[w], t)
}
else
r[x] = v(O, t)
}
return !1 === t.sort ? r : (!0 === t.sort ? Object.keys(r).sort() : Object.keys(r).sort(t.sort)).reduce((function(e, t) {
var n = r[t];
return Boolean(n) && "object" == typeof n && !Array.isArray(n) ? e[t] = b(n) : e[t] = n,
e
}
), Object.create(null))
}
t.extract = m,
t.parse = y,
t.stringify = function(e, t) {
if (!e)
return "";
p((t = Object.assign({
encode: !0,
strict: !0,
arrayFormat: "none",
arrayFormatSeparator: ","
}, t)).arrayFormatSeparator);
for (var n = function(n) {
return t.skipNull && (null === (r = e[n]) || void 0 === r) || t.skipEmptyString && "" === e[n];
var r
}, r = function(e) {
switch (e.arrayFormat) {
case "index":
return function(t) {
return function(n, r) {
var i = n.length;
return void 0 === r || e.skipNull && null === r || e.skipEmptyString && "" === r ? n : [].concat(a(n), null === r ? [[h(t, e), "[", i, "]"].join("")] : [[h(t, e), "[", h(i, e), "]=", h(r, e)].join("")])
}
}
;
case "bracket":
return function(t) {
return function(n, r) {
return void 0 === r || e.skipNull && null === r || e.skipEmptyString && "" === r ? n : [].concat(a(n), null === r ? [[h(t, e), "[]"].join("")] : [[h(t, e), "[]=", h(r, e)].join("")])
}
}
;
case "colon-list-separator":
return function(t) {
return function(n, r) {
return void 0 === r || e.skipNull && null === r || e.skipEmptyString && "" === r ? n : [].concat(a(n), null === r ? [[h(t, e), ":list="].join("")] : [[h(t, e), ":list=", h(r, e)].join("")])
}
}
;
case "comma":
case "separator":
case "bracket-separator":
var t = "bracket-separator" === e.arrayFormat ? "[]=" : "=";
return function(n) {
return function(r, i) {
return void 0 === i || e.skipNull && null === i || e.skipEmptyString && "" === i ? r : (i = null === i ? "" : i,
0 === r.length ? [[h(n, e), t, h(i, e)].join("")] : [[r, h(i, e)].join(e.arrayFormatSeparator)])
}
}
;
default:
return function(t) {
return function(n, r) {
return void 0 === r || e.skipNull && null === r || e.skipEmptyString && "" === r ? n : [].concat(a(n), null === r ? [h(t, e)] : [[h(t, e), "=", h(r, e)].join("")])
}
}
}
}(t), i = {}, o = 0, l = Object.keys(e); o < l.length; o++) {
var s = l[o];
n(s) || (i[s] = e[s])
}
var c = Object.keys(i);
return !1 !== t.sort && c.sort(t.sort),
c.map((function(n) {
var i = e[n];
return void 0 === i ? "" : null === i ? h(n, t) : Array.isArray(i) ? 0 === i.length && "bracket-separator" === t.arrayFormat ? h(n, t) + "[]" : i.reduce(r(n), []).join("&") : h(n, t) + "=" + h(i, t)
}
)).filter((function(e) {
return e.length > 0
}
)).join("&")
}
,
t.parseUrl = function(e, t) {
t = Object.assign({
decode: !0
}, t);
var n = c(e, "#")
, r = i(n, 2)
, o = r[0]
, a = r[1];
return Object.assign({
url: o.split("?")[0] || "",
query: y(m(e), t)
}, t && t.parseFragmentIdentifier && a ? {
fragmentIdentifier: f(a, t)
} : {})
}
,
t.stringifyUrl = function(e, n) {
n = Object.assign(r({
encode: !0,
strict: !0
}, d, !0), n);
var i = g(e.url).split("?")[0] || ""
, o = t.extract(e.url)
, a = t.parse(o, {
sort: !1
})
, l = Object.assign(a, e.query)
, s = t.stringify(l, n);
s && (s = "?".concat(s));
var c = function(e) {
var t = ""
, n = e.indexOf("#");
return -1 !== n && (t = e.slice(n)),
t
}(e.url);
return e.fragmentIdentifier && (c = "#".concat(n[d] ? h(e.fragmentIdentifier, n) : e.fragmentIdentifier)),
"".concat(i).concat(s).concat(c)
}
,
t.pick = function(e, n, i) {
i = Object.assign(r({
parseFragmentIdentifier: !0
}, d, !1), i);
var o = t.parseUrl(e, i)
, a = o.url
, l = o.query
, s = o.fragmentIdentifier;
return t.stringifyUrl({
url: a,
query: u(l, n),
fragmentIdentifier: s
}, i)
}
,
t.exclude = function(e, n, r) {
var i = Array.isArray(n) ? function(e) {
return !n.includes(e)
}
: function(e, t) {
return !n(e, t)
}
;
return t.pick(e, i, r)
}
}
, function(e, t, n) {
"use strict";
var r = n(168)
, i = "object" == typeof self && self && self.Object === Object && self
, o = r.a || i || Function("return this")();
t.a = o
}
, function(e, t, n) {
var r = n(74)
, i = n(16)
, o = n(64);
e.exports = function(e) {
return "string" == typeof e || !i(e) && o(e) && "[object String]" == r(e)
}
}
, function(e, t, n) {
"use strict";
var r;
n.d(t, "a", (function() {
return r
}
)),
function(e) {
e.Ok = "ok",
e.DeadlineExceeded = "deadline_exceeded",
e.Unauthenticated = "unauthenticated",
e.PermissionDenied = "permission_denied",
e.NotFound = "not_found",
e.ResourceExhausted = "resource_exhausted",
e.InvalidArgument = "invalid_argument",
e.Unimplemented = "unimplemented",
e.Unavailable = "unavailable",
e.InternalError = "internal_error",
e.UnknownError = "unknown_error",
e.Cancelled = "cancelled",
e.AlreadyExists = "already_exists",
e.FailedPrecondition = "failed_precondition",
e.Aborted = "aborted",
e.OutOfRange = "out_of_range",
e.DataLoss = "data_loss"
}(r || (r = {})),
function(e) {
e.fromHttpCode = function(t) {
if (t < 400 && t >= 100)
return e.Ok;
if (t >= 400 && t < 500)
switch (t) {
case 401:
return e.Unauthenticated;
case 403:
return e.PermissionDenied;
case 404:
return e.NotFound;
case 409:
return e.AlreadyExists;
case 413:
return e.FailedPrecondition;
case 429:
return e.ResourceExhausted;
default:
return e.InvalidArgument
}
if (t >= 500 && t < 600)
switch (t) {
case 501:
return e.Unimplemented;
case 503:
return e.Unavailable;
case 504:
return e.DeadlineExceeded;
default:
return e.InternalError
}
return e.UnknownError
}
}(r || (r = {}))
}
, function(e, t, n) {
"use strict";
n.d(t, "b", (function() {
return i
}
)),
n.d(t, "a", (function() {
return o
}
)),
n.d(t, "d", (function() {
return a
}
)),
n.d(t, "c", (function() {
return l
}
));
var r = function(e, t) {
return r = Object.setPrototypeOf || {
__proto__: []
}instanceof Array && function(e, t) {
e.__proto__ = t
}
|| function(e, t) {
for (var n in t)
t.hasOwnProperty(n) && (e[n] = t[n])
}
,
r(e, t)
};
function i(e, t) {
function n() {
this.constructor = e
}
r(e, t),
e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
new n)
}
var o = function() {
return o = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
o.apply(this, arguments)
};
function a(e) {
var t = "function" == typeof Symbol && Symbol.iterator
, n = t && e[t]
, r = 0;
if (n)
return n.call(e);
if (e && "number" == typeof e.length)
return {
next: function() {
return e && r >= e.length && (e = void 0),
{
value: e && e[r++],
done: !e
}
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
}
function l(e, t) {
var n = "function" == typeof Symbol && e[Symbol.iterator];
if (!n)
return e;
var r, i, o = n.call(e), a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
a.push(r.value)
} catch (e) {
i = {
error: e
}
} finally {
try {
r && !r.done && (n = o.return) && n.call(o)
} finally {
if (i)
throw i.error
}
}
return a
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}
));
var r = n(43);
function i(e, t) {
for (; !Object.prototype.hasOwnProperty.call(e, t) && null !== (e = Object(r.a)(e)); )
;
return e
}
function o() {
return o = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function(e, t, n) {
var r = i(e, t);
if (r) {
var o = Object.getOwnPropertyDescriptor(r, t);
return o.get ? o.get.call(arguments.length < 3 ? e : n) : o.value
}
}
,
o.apply(this, arguments)
}
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "a", (function() {
return o
}
));
var r = n(71)
, i = {};
function o() {
return Object(r.b)() ? e : "undefined" != typeof window ? window : "undefined" != typeof self ? self : i
}
}
).call(this, n(73))
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
)),
n.d(t, "b", (function() {
return f
}
)),
n.d(t, "c", (function() {
return b
}
)),
n.d(t, "d", (function() {
return g
}
));
var r, i, o = n(19), a = n(5), l = n(6), s = n(11), c = [];
!function(e) {
e[e.DEBUG = 0] = "DEBUG",
e[e.VERBOSE = 1] = "VERBOSE",
e[e.INFO = 2] = "INFO",
e[e.WARN = 3] = "WARN",
e[e.ERROR = 4] = "ERROR",
e[e.SILENT = 5] = "SILENT"
}(i || (i = {}));
var u = {
debug: i.DEBUG,
verbose: i.VERBOSE,
info: i.INFO,
warn: i.WARN,
error: i.ERROR,
silent: i.SILENT
}
, d = i.INFO
, p = (r = {},
Object(s.a)(r, i.DEBUG, "log"),
Object(s.a)(r, i.VERBOSE, "log"),
Object(s.a)(r, i.INFO, "info"),
Object(s.a)(r, i.WARN, "warn"),
Object(s.a)(r, i.ERROR, "error"),
r)
, h = function(e, t) {
if (!(t < e.logLevel)) {
var n = (new Date).toISOString()
, r = p[t];
if (!r)
throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t, ")"));
for (var i, o = arguments.length, a = new Array(o > 2 ? o - 2 : 0), l = 2; l < o; l++)
a[l - 2] = arguments[l];
(i = console)[r].apply(i, ["[".concat(n, "] ").concat(e.name, ":")].concat(a))
}
}
, f = function() {
function e(t) {
Object(a.a)(this, e),
this.name = t,
this._logLevel = d,
this._logHandler = h,
this._userLogHandler = null,
c.push(this)
}
return Object(l.a)(e, [{
key: "logLevel",
get: function() {
return this._logLevel
},
set: function(e) {
if (!(e in i))
throw new TypeError('Invalid value "'.concat(e, '" assigned to `logLevel`'));
this._logLevel = e
}
}, {
key: "setLogLevel",
value: function(e) {
this._logLevel = "string" == typeof e ? u[e] : e
}
}, {
key: "logHandler",
get: function() {
return this._logHandler
},
set: function(e) {
if ("function" != typeof e)
throw new TypeError("Value assigned to `logHandler` must be a function");
this._logHandler = e
}
}, {
key: "userLogHandler",
get: function() {
return this._userLogHandler
},
set: function(e) {
this._userLogHandler = e
}
}, {
key: "debug",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
this._userLogHandler && this._userLogHandler.apply(this, [this, i.DEBUG].concat(t)),
this._logHandler.apply(this, [this, i.DEBUG].concat(t))
}
}, {
key: "log",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
this._userLogHandler && this._userLogHandler.apply(this, [this, i.VERBOSE].concat(t)),
this._logHandler.apply(this, [this, i.VERBOSE].concat(t))
}
}, {
key: "info",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
this._userLogHandler && this._userLogHandler.apply(this, [this, i.INFO].concat(t)),
this._logHandler.apply(this, [this, i.INFO].concat(t))
}
}, {
key: "warn",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
this._userLogHandler && this._userLogHandler.apply(this, [this, i.WARN].concat(t)),
this._logHandler.apply(this, [this, i.WARN].concat(t))
}
}, {
key: "error",
value: function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
this._userLogHandler && this._userLogHandler.apply(this, [this, i.ERROR].concat(t)),
this._logHandler.apply(this, [this, i.ERROR].concat(t))
}
}]),
e
}();
function b(e) {
c.forEach((function(t) {
t.setLogLevel(e)
}
))
}
function g(e, t) {
var n, r = Object(o.a)(c);
try {
var a = function() {
var r = n.value
, o = null;
t && t.level && (o = u[t.level]),
r.userLogHandler = null === e ? null : function(t, n) {
for (var r = arguments.length, a = new Array(r > 2 ? r - 2 : 0), l = 2; l < r; l++)
a[l - 2] = arguments[l];
var s = a.map((function(e) {
if (null == e)
return null;
if ("string" == typeof e)
return e;
if ("number" == typeof e || "boolean" == typeof e)
return e.toString();
if (e instanceof Error)
return e.message;
try {
return JSON.stringify(e)
} catch (e) {
return null
}
}
)).filter((function(e) {
return e
}
)).join(" ");
n >= (null != o ? o : t.logLevel) && e({
level: i[n].toLowerCase(),
message: s,
args: a,
type: t.name
})
}
};
for (r.s(); !(n = r.n()).done; )
a()
} catch (e) {
r.e(e)
} finally {
r.f()
}
}
}
, function(e, t, n) {
"use strict";
!function e() {
if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" == typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)
try {
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)
} catch (e) {
console.error(e)
}
}(),
e.exports = n(355)
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return p
}
)),
n.d(t, "b", (function() {
return b
}
));
var r = n(33)
, i = n(10)
, o = n(12)
, a = n(19)
, l = n(5)
, s = n(6)
, c = n(7)
, u = n.n(c)
, d = n(14)
, p = function() {
function e(t, n, r) {
Object(l.a)(this, e),
this.name = t,
this.instanceFactory = n,
this.type = r,
this.multipleInstances = !1,
this.serviceProps = {},
this.instantiationMode = "LAZY",
this.onInstanceCreated = null
}
return Object(s.a)(e, [{
key: "setInstantiationMode",
value: function(e) {
return this.instantiationMode = e,
this
}
}, {
key: "setMultipleInstances",
value: function(e) {
return this.multipleInstances = e,
this
}
}, {
key: "setServiceProps",
value: function(e) {
return this.serviceProps = e,
this
}
}, {
key: "setInstanceCreatedCallback",
value: function(e) {
return this.onInstanceCreated = e,
this
}
}]),
e
}()
, h = "[DEFAULT]"
, f = function() {
function e(t, n) {
Object(l.a)(this, e),
this.name = t,
this.container = n,
this.component = null,
this.instances = new Map,
this.instancesDeferred = new Map,
this.instancesOptions = new Map,
this.onInitCallbacks = new Map
}
return Object(s.a)(e, [{
key: "get",
value: function(e) {
var t = this.normalizeInstanceIdentifier(e);
if (!this.instancesDeferred.has(t)) {
var n = new d.a;
if (this.instancesDeferred.set(t, n),
this.isInitialized(t) || this.shouldAutoInitialize())
try {
var r = this.getOrInitializeService({
instanceIdentifier: t
});
r && n.resolve(r)
} catch (e) {}
}
return this.instancesDeferred.get(t).promise
}
}, {
key: "getImmediate",
value: function(e) {
var t, n = this.normalizeInstanceIdentifier(null == e ? void 0 : e.identifier), r = null !== (t = null == e ? void 0 : e.optional) && void 0 !== t && t;
if (!this.isInitialized(n) && !this.shouldAutoInitialize()) {
if (r)
return null;
throw Error("Service ".concat(this.name, " is not available"))
}
try {
return this.getOrInitializeService({
instanceIdentifier: n
})
} catch (e) {
if (r)
return null;
throw e
}
}
}, {
key: "getComponent",
value: function() {
return this.component
}
}, {
key: "setComponent",
value: function(e) {
if (e.name !== this.name)
throw Error("Mismatching Component ".concat(e.name, " for Provider ").concat(this.name, "."));
if (this.component)
throw Error("Component for ".concat(this.name, " has already been provided"));
if (this.component = e,
this.shouldAutoInitialize()) {
if (function(e) {
return "EAGER" === e.instantiationMode
}(e))
try {
this.getOrInitializeService({
instanceIdentifier: h
})
} catch (e) {}
var t, n = Object(a.a)(this.instancesDeferred.entries());
try {
for (n.s(); !(t = n.n()).done; ) {
var r = Object(o.a)(t.value, 2)
, i = r[0]
, l = r[1]
, s = this.normalizeInstanceIdentifier(i);
try {
var c = this.getOrInitializeService({
instanceIdentifier: s
});
l.resolve(c)
} catch (e) {}
}
} catch (e) {
n.e(e)
} finally {
n.f()
}
}
}
}, {
key: "clearInstance",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : h;
this.instancesDeferred.delete(e),
this.instancesOptions.delete(e),
this.instances.delete(e)
}
}, {
key: "delete",
value: function() {
var e = Object(i.a)(u.a.mark((function e() {
var t;
return u.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return t = Array.from(this.instances.values()),
e.next = 3,
Promise.all([].concat(Object(r.a)(t.filter((function(e) {
return "INTERNAL"in e
}
)).map((function(e) {
return e.INTERNAL.delete()
}
))), Object(r.a)(t.filter((function(e) {
return "_delete"in e
}
)).map((function(e) {
return e._delete()
}
)))));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "isComponentSet",
value: function() {
return null != this.component
}
}, {
key: "isInitialized",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : h;
return this.instances.has(e)
}
}, {
key: "getOptions",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : h;
return this.instancesOptions.get(e) || {}
}
}, {
key: "initialize",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
, t = e.options
, n = void 0 === t ? {} : t
, r = this.normalizeInstanceIdentifier(e.instanceIdentifier);
if (this.isInitialized(r))
throw Error("".concat(this.name, "(").concat(r, ") has already been initialized"));
if (!this.isComponentSet())
throw Error("Component ".concat(this.name, " has not been registered yet"));
var i, l = this.getOrInitializeService({
instanceIdentifier: r,
options: n
}), s = Object(a.a)(this.instancesDeferred.entries());
try {
for (s.s(); !(i = s.n()).done; ) {
var c = Object(o.a)(i.value, 2)
, u = c[0]
, d = c[1];
r === this.normalizeInstanceIdentifier(u) && d.resolve(l)
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
return l
}
}, {
key: "onInit",
value: function(e, t) {
var n, r = this.normalizeInstanceIdentifier(t), i = null !== (n = this.onInitCallbacks.get(r)) && void 0 !== n ? n : new Set;
i.add(e),
this.onInitCallbacks.set(r, i);
var o = this.instances.get(r);
return o && e(o, r),
function() {
i.delete(e)
}
}
}, {
key: "invokeOnInitCallbacks",
value: function(e, t) {
var n = this.onInitCallbacks.get(t);
if (n) {
var r, i = Object(a.a)(n);
try {
for (i.s(); !(r = i.n()).done; ) {
var o = r.value;
try {
o(e, t)
} catch (e) {}
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
}
}
}, {
key: "getOrInitializeService",
value: function(e) {
var t, n = e.instanceIdentifier, r = e.options, i = void 0 === r ? {} : r, o = this.instances.get(n);
if (!o && this.component && (o = this.component.instanceFactory(this.container, {
instanceIdentifier: (t = n,
t === h ? void 0 : t),
options: i
}),
this.instances.set(n, o),
this.instancesOptions.set(n, i),
this.invokeOnInitCallbacks(o, n),
this.component.onInstanceCreated))
try {
this.component.onInstanceCreated(this.container, n, o)
} catch (e) {}
return o || null
}
}, {
key: "normalizeInstanceIdentifier",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : h;
return this.component ? this.component.multipleInstances ? e : h : e
}
}, {
key: "shouldAutoInitialize",
value: function() {
return !!this.component && "EXPLICIT" !== this.component.instantiationMode
}
}]),
e
}()
, b = function() {
function e(t) {
Object(l.a)(this, e),
this.name = t,
this.providers = new Map
}
return Object(s.a)(e, [{
key: "addComponent",
value: function(e) {
var t = this.getProvider(e.name);
if (t.isComponentSet())
throw new Error("Component ".concat(e.name, " has already been registered with ").concat(this.name));
t.setComponent(e)
}
}, {
key: "addOrOverwriteComponent",
value: function(e) {
this.getProvider(e.name).isComponentSet() && this.providers.delete(e.name),
this.addComponent(e)
}
}, {
key: "getProvider",
value: function(e) {
if (this.providers.has(e))
return this.providers.get(e);
var t = new f(e,this);
return this.providers.set(e, t),
t
}
}, {
key: "getProviders",
value: function() {
return Array.from(this.providers.values())
}
}]),
e
}()
}
, function(e, t, n) {
"use strict";
function r(e) {
if (void 0 === e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
var r = n(151)
, i = n(248)
, o = n(152)
, a = n(16);
e.exports = function() {
var e = arguments.length;
if (!e)
return [];
for (var t = Array(e - 1), n = arguments[0], l = e; l--; )
t[l - 1] = arguments[l];
return r(a(n) ? o(n) : [n], i(t, 1))
}
}
, , , function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
));
var r = n(87);
function i(e, t) {
e.prototype = Object.create(t.prototype),
e.prototype.constructor = e,
Object(r.a)(e, t)
}
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "a", (function() {
return gr
}
)),
n.d(t, "b", (function() {
return vr
}
)),
n.d(t, "c", (function() {
return mr
}
)),
n.d(t, "d", (function() {
return xr
}
)),
n.d(t, "e", (function() {
return yr
}
)),
n.d(t, "f", (function() {
return Or
}
)),
n.d(t, "g", (function() {
return jr
}
)),
n.d(t, "h", (function() {
return fr
}
)),
n.d(t, "i", (function() {
return br
}
));
var r, i = n(19), o = n(51), a = n(43), l = n(8), s = n(9), c = n(5), u = n(6), d = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== e ? e : "undefined" != typeof self ? self : {}, p = {}, h = h || {}, f = d || self;
function b() {}
function g(e) {
var t = typeof e;
return "array" == (t = "object" != t ? t : e ? Array.isArray(e) ? "array" : t : "null") || "object" == t && "number" == typeof e.length
}
function m(e) {
var t = typeof e;
return "object" == t && null != e || "function" == t
}
var v = "closure_uid_" + (1e9 * Math.random() >>> 0)
, y = 0;
function x(e, t, n) {
return e.call.apply(e.bind, arguments)
}
function O(e, t, n) {
if (!e)
throw Error();
if (2 < arguments.length) {
var r = Array.prototype.slice.call(arguments, 2);
return function() {
var n = Array.prototype.slice.call(arguments);
return Array.prototype.unshift.apply(n, r),
e.apply(t, n)
}
}
return function() {
return e.apply(t, arguments)
}
}
function j(e, t, n) {
return (j = Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf("native code") ? x : O).apply(null, arguments)
}
function k(e, t) {
var n = Array.prototype.slice.call(arguments, 1);
return function() {
var t = n.slice();
return t.push.apply(t, arguments),
e.apply(this, t)
}
}
function w(e, t) {
function n() {}
n.prototype = t.prototype,
e.Z = t.prototype,
e.prototype = new n,
e.prototype.constructor = e,
e.Vb = function(e, n, r) {
for (var i = Array(arguments.length - 2), o = 2; o < arguments.length; o++)
i[o - 2] = arguments[o];
return t.prototype[n].apply(e, i)
}
}
function C() {
this.s = this.s,
this.o = this.o
}
var _ = {};
C.prototype.s = !1,
C.prototype.na = function() {
if (!this.s && (this.s = !0,
this.M(),
0)) {
var e = function(e) {
return Object.prototype.hasOwnProperty.call(e, v) && e[v] || (e[v] = ++y)
}(this);
delete _[e]
}
}
,
C.prototype.M = function() {
if (this.o)
for (; this.o.length; )
this.o.shift()()
}
;
var M = Array.prototype.indexOf ? function(e, t) {
return Array.prototype.indexOf.call(e, t, void 0)
}
: function(e, t) {
if ("string" == typeof e)
return "string" != typeof t || 1 != t.length ? -1 : e.indexOf(t, 0);
for (var n = 0; n < e.length; n++)
if (n in e && e[n] === t)
return n;
return -1
}
, S = Array.prototype.forEach ? function(e, t, n) {
Array.prototype.forEach.call(e, t, n)
}
: function(e, t, n) {
for (var r = e.length, i = "string" == typeof e ? e.split("") : e, o = 0; o < r; o++)
o in i && t.call(n, i[o], o, e)
}
;
function A(e) {
return Array.prototype.concat.apply([], arguments)
}
function T(e) {
var t = e.length;
if (0 < t) {
for (var n = Array(t), r = 0; r < t; r++)
n[r] = e[r];
return n
}
return []
}
function E(e) {
return /^[\s\xa0]*$/.test(e)
}
var I, N = String.prototype.trim ? function(e) {
return e.trim()
}
: function(e) {
return /^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]
}
;
function z(e, t) {
return -1 != e.indexOf(t)
}
function D(e, t) {
return e < t ? -1 : e > t ? 1 : 0
}
e: {
var L = f.navigator;
if (L) {
var R = L.userAgent;
if (R) {
I = R;
break e
}
}
I = ""
}
function P(e, t, n) {
for (var r in e)
t.call(n, e[r], r, e)
}
function B(e) {
var t = {};
for (var n in e)
t[n] = e[n];
return t
}
var F = "constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function V(e, t) {
for (var n, r, i = 1; i < arguments.length; i++) {
for (n in r = arguments[i])
e[n] = r[n];
for (var o = 0; o < F.length; o++)
n = F[o],
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n])
}
}
function W(e) {
return W[" "](e),
e
}
W[" "] = b;
var q, H = z(I, "Opera"), U = z(I, "Trident") || z(I, "MSIE"), X = z(I, "Edge"), G = X || U, K = z(I, "Gecko") && !(z(I.toLowerCase(), "webkit") && !z(I, "Edge")) && !(z(I, "Trident") || z(I, "MSIE")) && !z(I, "Edge"), Y = z(I.toLowerCase(), "webkit") && !z(I, "Edge");
function Q() {
var e = f.document;
return e ? e.documentMode : void 0
}
e: {
var J = ""
, Z = function() {
var e = I;
return K ? /rv:([^\);]+)(\)|;)/.exec(e) : X ? /Edge\/([\d\.]+)/.exec(e) : U ? /\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e) : Y ? /WebKit\/(\S+)/.exec(e) : H ? /(?:Version)[ \/]?(\S+)/.exec(e) : void 0
}();
if (Z && (J = Z ? Z[1] : ""),
U) {
var $ = Q();
if (null != $ && $ > parseFloat(J)) {
q = String($);
break e
}
}
q = J
}
var ee, te = {};
function ne() {
return function(e) {
var t = te;
return Object.prototype.hasOwnProperty.call(t, 9) ? t[9] : t[9] = function() {
for (var e = 0, t = N(String(q)).split("."), n = N("9").split("."), r = Math.max(t.length, n.length), i = 0; 0 == e && i < r; i++) {
var o = t[i] || ""
, a = n[i] || "";
do {
if (o = /(\d*)(\D*)(.*)/.exec(o) || ["", "", "", ""],
a = /(\d*)(\D*)(.*)/.exec(a) || ["", "", "", ""],
0 == o[0].length && 0 == a[0].length)
break;
e = D(0 == o[1].length ? 0 : parseInt(o[1], 10), 0 == a[1].length ? 0 : parseInt(a[1], 10)) || D(0 == o[2].length, 0 == a[2].length) || D(o[2], a[2]),
o = o[3],
a = a[3]
} while (0 == e)
}
return 0 <= e
}()
}()
}
f.document && U ? ee = Q() || parseInt(q, 10) || void 0 : ee = void 0;
var re = ee
, ie = function() {
if (!f.addEventListener || !Object.defineProperty)
return !1;
var e = !1
, t = Object.defineProperty({}, "passive", {
get: function() {
e = !0
}
});
try {
f.addEventListener("test", b, t),
f.removeEventListener("test", b, t)
} catch (e) {}
return e
}();
function oe(e, t) {
this.type = e,
this.g = this.target = t,
this.defaultPrevented = !1
}
function ae(e, t) {
if (oe.call(this, e ? e.type : ""),
this.relatedTarget = this.g = this.target = null,
this.button = this.screenY = this.screenX = this.clientY = this.clientX = 0,
this.key = "",
this.metaKey = this.shiftKey = this.altKey = this.ctrlKey = !1,
this.state = null,
this.pointerId = 0,
this.pointerType = "",
this.i = null,
e) {
var n = this.type = e.type
, r = e.changedTouches && e.changedTouches.length ? e.changedTouches[0] : null;
if (this.target = e.target || e.srcElement,
this.g = t,
t = e.relatedTarget) {
if (K) {
e: {
try {
W(t.nodeName);
var i = !0;
break e
} catch (e) {}
i = !1
}
i || (t = null)
}
} else
"mouseover" == n ? t = e.fromElement : "mouseout" == n && (t = e.toElement);
this.relatedTarget = t,
r ? (this.clientX = void 0 !== r.clientX ? r.clientX : r.pageX,
this.clientY = void 0 !== r.clientY ? r.clientY : r.pageY,
this.screenX = r.screenX || 0,
this.screenY = r.screenY || 0) : (this.clientX = void 0 !== e.clientX ? e.clientX : e.pageX,
this.clientY = void 0 !== e.clientY ? e.clientY : e.pageY,
this.screenX = e.screenX || 0,
this.screenY = e.screenY || 0),
this.button = e.button,
this.key = e.key || "",
this.ctrlKey = e.ctrlKey,
this.altKey = e.altKey,
this.shiftKey = e.shiftKey,
this.metaKey = e.metaKey,
this.pointerId = e.pointerId || 0,
this.pointerType = "string" == typeof e.pointerType ? e.pointerType : le[e.pointerType] || "",
this.state = e.state,
this.i = e,
e.defaultPrevented && ae.Z.h.call(this)
}
}
oe.prototype.h = function() {
this.defaultPrevented = !0
}
,
w(ae, oe);
var le = {
2: "touch",
3: "pen",
4: "mouse"
};
ae.prototype.h = function() {
ae.Z.h.call(this);
var e = this.i;
e.preventDefault ? e.preventDefault() : e.returnValue = !1
}
;
var se = "closure_listenable_" + (1e6 * Math.random() | 0)
, ce = 0;
function ue(e, t, n, r, i) {
this.listener = e,
this.proxy = null,
this.src = t,
this.type = n,
this.capture = !!r,
this.ia = i,
this.key = ++ce,
this.ca = this.fa = !1
}
function de(e) {
e.ca = !0,
e.listener = null,
e.proxy = null,
e.src = null,
e.ia = null
}
function pe(e) {
this.src = e,
this.g = {},
this.h = 0
}
function he(e, t) {
var n = t.type;
if (n in e.g) {
var r, i = e.g[n], o = M(i, t);
(r = 0 <= o) && Array.prototype.splice.call(i, o, 1),
r && (de(t),
0 == e.g[n].length && (delete e.g[n],
e.h--))
}
}
function fe(e, t, n, r) {
for (var i = 0; i < e.length; ++i) {
var o = e[i];
if (!o.ca && o.listener == t && o.capture == !!n && o.ia == r)
return i
}
return -1
}
pe.prototype.add = function(e, t, n, r, i) {
var o = e.toString();
(e = this.g[o]) || (e = this.g[o] = [],
this.h++);
var a = fe(e, t, r, i);
return -1 < a ? (t = e[a],
n || (t.fa = !1)) : ((t = new ue(t,this.src,o,!!r,i)).fa = n,
e.push(t)),
t
}
;
var be = "closure_lm_" + (1e6 * Math.random() | 0)
, ge = {};
function me(e, t, n, r, i) {
if (r && r.once)
return ye(e, t, n, r, i);
if (Array.isArray(t)) {
for (var o = 0; o < t.length; o++)
me(e, t[o], n, r, i);
return null
}
return n = _e(n),
e && e[se] ? e.N(t, n, m(r) ? !!r.capture : !!r, i) : ve(e, t, n, !1, r, i)
}
function ve(e, t, n, r, i, o) {
if (!t)
throw Error("Invalid event type");
var a = m(i) ? !!i.capture : !!i
, l = we(e);
if (l || (e[be] = l = new pe(e)),
(n = l.add(t, n, r, a, o)).proxy)
return n;
if (r = function() {
var e = ke;
return function t(n) {
return e.call(t.src, t.listener, n)
}
}(),
n.proxy = r,
r.src = e,
r.listener = n,
e.addEventListener)
ie || (i = a),
void 0 === i && (i = !1),
e.addEventListener(t.toString(), r, i);
else if (e.attachEvent)
e.attachEvent(je(t.toString()), r);
else {
if (!e.addListener || !e.removeListener)
throw Error("addEventListener and attachEvent are unavailable.");
e.addListener(r)
}
return n
}
function ye(e, t, n, r, i) {
if (Array.isArray(t)) {
for (var o = 0; o < t.length; o++)
ye(e, t[o], n, r, i);
return null
}
return n = _e(n),
e && e[se] ? e.O(t, n, m(r) ? !!r.capture : !!r, i) : ve(e, t, n, !0, r, i)
}
function xe(e, t, n, r, i) {
if (Array.isArray(t))
for (var o = 0; o < t.length; o++)
xe(e, t[o], n, r, i);
else
r = m(r) ? !!r.capture : !!r,
n = _e(n),
e && e[se] ? (e = e.i,
(t = String(t).toString())in e.g && -1 < (n = fe(o = e.g[t], n, r, i)) && (de(o[n]),
Array.prototype.splice.call(o, n, 1),
0 == o.length && (delete e.g[t],
e.h--))) : e && (e = we(e)) && (t = e.g[t.toString()],
e = -1,
t && (e = fe(t, n, r, i)),
(n = -1 < e ? t[e] : null) && Oe(n))
}
function Oe(e) {
if ("number" != typeof e && e && !e.ca) {
var t = e.src;
if (t && t[se])
he(t.i, e);
else {
var n = e.type
, r = e.proxy;
t.removeEventListener ? t.removeEventListener(n, r, e.capture) : t.detachEvent ? t.detachEvent(je(n), r) : t.addListener && t.removeListener && t.removeListener(r),
(n = we(t)) ? (he(n, e),
0 == n.h && (n.src = null,
t[be] = null)) : de(e)
}
}
}
function je(e) {
return e in ge ? ge[e] : ge[e] = "on" + e
}
function ke(e, t) {
if (e.ca)
e = !0;
else {
t = new ae(t,this);
var n = e.listener
, r = e.ia || e.src;
e.fa && Oe(e),
e = n.call(r, t)
}
return e
}
function we(e) {
return (e = e[be])instanceof pe ? e : null
}
var Ce = "__closure_events_fn_" + (1e9 * Math.random() >>> 0);
function _e(e) {
return "function" == typeof e ? e : (e[Ce] || (e[Ce] = function(t) {
return e.handleEvent(t)
}
),
e[Ce])
}
function Me() {
C.call(this),
this.i = new pe(this),
this.P = this,
this.I = null
}
function Se(e, t) {
var n, r = e.I;
if (r)
for (n = []; r; r = r.I)
n.push(r);
if (e = e.P,
r = t.type || t,
"string" == typeof t)
t = new oe(t,e);
else if (t instanceof oe)
t.target = t.target || e;
else {
var i = t;
V(t = new oe(r,e), i)
}
if (i = !0,
n)
for (var o = n.length - 1; 0 <= o; o--) {
var a = t.g = n[o];
i = Ae(a, r, !0, t) && i
}
if (i = Ae(a = t.g = e, r, !0, t) && i,
i = Ae(a, r, !1, t) && i,
n)
for (o = 0; o < n.length; o++)
i = Ae(a = t.g = n[o], r, !1, t) && i
}
function Ae(e, t, n, r) {
if (!(t = e.i.g[String(t)]))
return !0;
t = t.concat();
for (var i = !0, o = 0; o < t.length; ++o) {
var a = t[o];
if (a && !a.ca && a.capture == n) {
var l = a.listener
, s = a.ia || a.src;
a.fa && he(e.i, a),
i = !1 !== l.call(s, r) && i
}
}
return i && !r.defaultPrevented
}
w(Me, C),
Me.prototype[se] = !0,
Me.prototype.removeEventListener = function(e, t, n, r) {
xe(this, e, t, n, r)
}
,
Me.prototype.M = function() {
if (Me.Z.M.call(this),
this.i) {
var e, t = this.i;
for (e in t.g) {
for (var n = t.g[e], r = 0; r < n.length; r++)
de(n[r]);
delete t.g[e],
t.h--
}
}
this.I = null
}
,
Me.prototype.N = function(e, t, n, r) {
return this.i.add(String(e), t, !1, n, r)
}
,
Me.prototype.O = function(e, t, n, r) {
return this.i.add(String(e), t, !0, n, r)
}
;
var Te = f.JSON.stringify;
function Ee() {
var e = Be
, t = null;
return e.g && (t = e.g,
e.g = e.g.next,
e.g || (e.h = null),
t.next = null),
t
}
var Ie, Ne = function() {
function e() {
Object(c.a)(this, e),
this.h = this.g = null
}
return Object(u.a)(e, [{
key: "add",
value: function(e, t) {
var n = ze.get();
n.set(e, t),
this.h ? this.h.next = n : this.g = n,
this.h = n
}
}]),
e
}(), ze = new (function() {
function e(t, n) {
Object(c.a)(this, e),
this.i = t,
this.j = n,
this.h = 0,
this.g = null
}
return Object(u.a)(e, [{
key: "get",
value: function() {
var e;
return 0 < this.h ? (this.h--,
e = this.g,
this.g = e.next,
e.next = null) : e = this.i(),
e
}
}]),
e
}())((function() {
return new De
}
),(function(e) {
return e.reset()
}
)), De = function() {
function e() {
Object(c.a)(this, e),
this.next = this.g = this.h = null
}
return Object(u.a)(e, [{
key: "set",
value: function(e, t) {
this.h = e,
this.g = t,
this.next = null
}
}, {
key: "reset",
value: function() {
this.next = this.g = this.h = null
}
}]),
e
}();
function Le(e) {
f.setTimeout((function() {
throw e
}
), 0)
}
function Re(e, t) {
Ie || function() {
var e = f.Promise.resolve(void 0);
Ie = function() {
e.then(Fe)
}
}(),
Pe || (Ie(),
Pe = !0),
Be.add(e, t)
}
var Pe = !1
, Be = new Ne;
function Fe() {
for (var e; e = Ee(); ) {
try {
e.h.call(e.g)
} catch (e) {
Le(e)
}
var t = ze;
t.j(e),
100 > t.h && (t.h++,
e.next = t.g,
t.g = e)
}
Pe = !1
}
function Ve(e, t) {
Me.call(this),
this.h = e || 1,
this.g = t || f,
this.j = j(this.kb, this),
this.l = Date.now()
}
function We(e) {
e.da = !1,
e.S && (e.g.clearTimeout(e.S),
e.S = null)
}
function qe(e, t, n) {
if ("function" == typeof e)
n && (e = j(e, n));
else {
if (!e || "function" != typeof e.handleEvent)
throw Error("Invalid listener argument");
e = j(e.handleEvent, e)
}
return 2147483647 < Number(t) ? -1 : f.setTimeout(e, t || 0)
}
function He(e) {
e.g = qe((function() {
e.g = null,
e.i && (e.i = !1,
He(e))
}
), e.j);
var t = e.h;
e.h = null,
e.m.apply(null, t)
}
w(Ve, Me),
(r = Ve.prototype).da = !1,
r.S = null,
r.kb = function() {
if (this.da) {
var e = Date.now() - this.l;
0 < e && e < .8 * this.h ? this.S = this.g.setTimeout(this.j, this.h - e) : (this.S && (this.g.clearTimeout(this.S),
this.S = null),
Se(this, "tick"),
this.da && (We(this),
this.start()))
}
}
,
r.start = function() {
this.da = !0,
this.S || (this.S = this.g.setTimeout(this.j, this.h),
this.l = Date.now())
}
,
r.M = function() {
Ve.Z.M.call(this),
We(this),
delete this.g
}
;
var Ue = function(e) {
Object(l.a)(n, e);
var t = Object(s.a)(n);
function n(e, r) {
var i;
return Object(c.a)(this, n),
(i = t.call(this)).m = e,
i.j = r,
i.h = null,
i.i = !1,
i.g = null,
i
}
return Object(u.a)(n, [{
key: "l",
value: function(e) {
this.h = arguments,
this.g ? this.i = !0 : He(this)
}
}, {
key: "M",
value: function() {
Object(o.a)(Object(a.a)(n.prototype), "M", this).call(this),
this.g && (f.clearTimeout(this.g),
this.g = null,
this.i = !1,
this.h = null)
}
}]),
n
}(C);
function Xe(e) {
C.call(this),
this.h = e,
this.g = {}
}
w(Xe, C);
var Ge = [];
function Ke(e, t, n, r) {
Array.isArray(n) || (n && (Ge[0] = n.toString()),
n = Ge);
for (var i = 0; i < n.length; i++) {
var o = me(t, n[i], r || e.handleEvent, !1, e.h || e);
if (!o)
break;
e.g[o.key] = o
}
}
function Ye(e) {
P(e.g, (function(e, t) {
this.g.hasOwnProperty(t) && Oe(e)
}
), e),
e.g = {}
}
function Qe() {
this.g = !0
}
function Je(e, t, n, r) {
e.info((function() {
return "XMLHTTP TEXT (" + t + "): " + function(e, t) {
if (!e.g)
return t;
if (!t)
return null;
try {
var n = JSON.parse(t);
if (n)
for (e = 0; e < n.length; e++)
if (Array.isArray(n[e])) {
var r = n[e];
if (!(2 > r.length)) {
var i = r[1];
if (Array.isArray(i) && !(1 > i.length)) {
var o = i[0];
if ("noop" != o && "stop" != o && "close" != o)
for (var a = 1; a < i.length; a++)
i[a] = ""
}
}
}
return Te(n)
} catch (e) {
return t
}
}(e, n) + (r ? " " + r : "")
}
))
}
Xe.prototype.M = function() {
Xe.Z.M.call(this),
Ye(this)
}
,
Xe.prototype.handleEvent = function() {
throw Error("EventHandler.handleEvent not implemented")
}
,
Qe.prototype.Aa = function() {
this.g = !1
}
,
Qe.prototype.info = function() {}
;
var Ze = {}
, $e = null;
function et() {
return $e = $e || new Me
}
function tt(e) {
oe.call(this, Ze.Ma, e)
}
function nt(e) {
var t = et();
Se(t, new tt(t,e))
}
function rt(e, t) {
oe.call(this, Ze.STAT_EVENT, e),
this.stat = t
}
function it(e) {
var t = et();
Se(t, new rt(t,e))
}
function ot(e, t) {
oe.call(this, Ze.Na, e),
this.size = t
}
function at(e, t) {
if ("function" != typeof e)
throw Error("Fn must not be null and must be a function");
return f.setTimeout((function() {
e()
}
), t)
}
Ze.Ma = "serverreachability",
w(tt, oe),
Ze.STAT_EVENT = "statevent",
w(rt, oe),
Ze.Na = "timingevent",
w(ot, oe);
var lt = {
NO_ERROR: 0,
lb: 1,
yb: 2,
xb: 3,
sb: 4,
wb: 5,
zb: 6,
Ja: 7,
TIMEOUT: 8,
Cb: 9
}
, st = {
qb: "complete",
Mb: "success",
Ka: "error",
Ja: "abort",
Eb: "ready",
Fb: "readystatechange",
TIMEOUT: "timeout",
Ab: "incrementaldata",
Db: "progress",
tb: "downloadprogress",
Ub: "uploadprogress"
};
function ct() {}
function ut(e) {
return e.h || (e.h = e.i())
}
function dt() {}
ct.prototype.h = null;
var pt, ht = {
OPEN: "a",
pb: "b",
Ka: "c",
Bb: "d"
};
function ft() {
oe.call(this, "d")
}
function bt() {
oe.call(this, "c")
}
function gt() {}
function mt(e, t, n, r) {
this.l = e,
this.j = t,
this.m = n,
this.X = r || 1,
this.V = new Xe(this),
this.P = yt,
e = G ? 125 : void 0,
this.W = new Ve(e),
this.H = null,
this.i = !1,
this.s = this.A = this.v = this.K = this.F = this.Y = this.B = null,
this.D = [],
this.g = null,
this.C = 0,
this.o = this.u = null,
this.N = -1,
this.I = !1,
this.O = 0,
this.L = null,
this.aa = this.J = this.$ = this.U = !1,
this.h = new vt
}
function vt() {
this.i = null,
this.g = "",
this.h = !1
}
w(ft, oe),
w(bt, oe),
w(gt, ct),
gt.prototype.g = function() {
return new XMLHttpRequest
}
,
gt.prototype.i = function() {
return {}
}
,
pt = new gt;
var yt = 45e3
, xt = {}
, Ot = {};
function jt(e, t, n) {
e.K = 1,
e.v = Ut(Bt(t)),
e.s = n,
e.U = !0,
kt(e, null)
}
function kt(e, t) {
e.F = Date.now(),
Mt(e),
e.A = Bt(e.v);
var n = e.A
, r = e.X;
Array.isArray(r) || (r = [String(r)]),
on(n.h, "t", r),
e.C = 0,
n = e.l.H,
e.h = new vt,
e.g = lr(e.l, n ? t : null, !e.s),
0 < e.O && (e.L = new Ue(j(e.Ia, e, e.g),e.O)),
Ke(e.V, e.g, "readystatechange", e.gb),
t = e.H ? B(e.H) : {},
e.s ? (e.u || (e.u = "POST"),
t["Content-Type"] = "application/x-www-form-urlencoded",
e.g.ea(e.A, e.u, e.s, t)) : (e.u = "GET",
e.g.ea(e.A, e.u, null, t)),
nt(1),
function(e, t, n, r, i, o) {
e.info((function() {
if (e.g)
if (o)
for (var a = "", l = o.split("&"), s = 0; s < l.length; s++) {
var c = l[s].split("=");
if (1 < c.length) {
var u = c[0];
c = c[1];
var d = u.split("_");
a = 2 <= d.length && "type" == d[1] ? a + (u + "=") + c + "&" : a + (u + "=redacted&")
}
}
else
a = null;
else
a = o;
return "XMLHTTP REQ (" + r + ") [attempt " + i + "]: " + t + "\n" + n + "\n" + a
}
))
}(e.j, e.u, e.A, e.m, e.X, e.s)
}
function wt(e) {
return !!e.g && "GET" == e.u && 2 != e.K && e.l.Ba
}
function Ct(e, t, n) {
for (var r, i = !0; !e.I && e.C < n.length; ) {
if ((r = _t(e, n)) == Ot) {
4 == t && (e.o = 4,
it(14),
i = !1),
Je(e.j, e.m, null, "[Incomplete Response]");
break
}
if (r == xt) {
e.o = 4,
it(15),
Je(e.j, e.m, n, "[Invalid Chunk]"),
i = !1;
break
}
Je(e.j, e.m, r, null),
It(e, r)
}
wt(e) && r != Ot && r != xt && (e.h.g = "",
e.C = 0),
4 != t || 0 != n.length || e.h.h || (e.o = 1,
it(16),
i = !1),
e.i = e.i && i,
i ? 0 < n.length && !e.aa && (e.aa = !0,
(t = e.l).g == e && t.$ && !t.L && (t.h.info("Great, no buffering proxy detected. Bytes received: " + n.length),
$n(t),
t.L = !0,
it(11))) : (Je(e.j, e.m, n, "[Invalid Chunked Response]"),
Et(e),
Tt(e))
}
function _t(e, t) {
var n = e.C
, r = t.indexOf("\n", n);
return -1 == r ? Ot : (n = Number(t.substring(n, r)),
isNaN(n) ? xt : (r += 1) + n > t.length ? Ot : (t = t.substr(r, n),
e.C = r + n,
t))
}
function Mt(e) {
e.Y = Date.now() + e.P,
St(e, e.P)
}
function St(e, t) {
if (null != e.B)
throw Error("WatchDog timer not null");
e.B = at(j(e.eb, e), t)
}
function At(e) {
e.B && (f.clearTimeout(e.B),
e.B = null)
}
function Tt(e) {
0 == e.l.G || e.I || nr(e.l, e)
}
function Et(e) {
At(e);
var t = e.L;
t && "function" == typeof t.na && t.na(),
e.L = null,
We(e.W),
Ye(e.V),
e.g && (t = e.g,
e.g = null,
t.abort(),
t.na())
}
function It(e, t) {
try {
var n = e.l;
if (0 != n.G && (n.g == e || hn(n.i, e)))
if (n.I = e.N,
!e.J && hn(n.i, e) && 3 == n.G) {
try {
var r = n.Ca.g.parse(t)
} catch (o) {
r = null
}
if (Array.isArray(r) && 3 == r.length) {
var i = r;
if (0 == i[0]) {
e: if (!n.u) {
if (n.g) {
if (!(n.g.F + 3e3 < e.F))
break e;
tr(n),
Hn(n)
}
Zn(n),
it(18)
}
} else
n.ta = i[1],
0 < n.ta - n.U && 37500 > i[2] && n.N && 0 == n.A && !n.v && (n.v = at(j(n.ab, n), 6e3));
if (1 >= pn(n.i) && n.ka) {
try {
n.ka()
} catch (o) {}
n.ka = void 0
}
} else
ir(n, 11)
} else if ((e.J || n.g == e) && tr(n),
!E(t))
for (i = n.Ca.g.parse(t),
t = 0; t < i.length; t++) {
var o = i[t];
if (n.U = o[0],
o = o[1],
2 == n.G)
if ("c" == o[0]) {
n.J = o[1],
n.la = o[2];
var a = o[3];
null != a && (n.ma = a,
n.h.info("VER=" + n.ma));
var l = o[4];
null != l && (n.za = l,
n.h.info("SVER=" + n.za));
var s = o[5];
null != s && "number" == typeof s && 0 < s && (r = 1.5 * s,
n.K = r,
n.h.info("backChannelRequestTimeoutMs_=" + r)),
r = n;
var c = e.g;
if (c) {
var u = c.g ? c.g.getResponseHeader("X-Client-Wire-Protocol") : null;
if (u) {
var d = r.i;
!d.g && (z(u, "spdy") || z(u, "quic") || z(u, "h2")) && (d.j = d.l,
d.g = new Set,
d.h && (fn(d, d.h),
d.h = null))
}
if (r.D) {
var p = c.g ? c.g.getResponseHeader("X-HTTP-Session-Id") : null;
p && (r.sa = p,
Ht(r.F, r.D, p))
}
}
n.G = 3,
n.j && n.j.xa(),
n.$ && (n.O = Date.now() - e.F,
n.h.info("Handshake RTT: " + n.O + "ms"));
var h = e;
if ((r = n).oa = ar(r, r.H ? r.la : null, r.W),
h.J) {
bn(r.i, h);
var f = h
, b = r.K;
b && f.setTimeout(b),
f.B && (At(f),
Mt(f)),
r.g = h
} else
Jn(r);
0 < n.l.length && Gn(n)
} else
"stop" != o[0] && "close" != o[0] || ir(n, 7);
else
3 == n.G && ("stop" == o[0] || "close" == o[0] ? "stop" == o[0] ? ir(n, 7) : qn(n) : "noop" != o[0] && n.j && n.j.wa(o),
n.A = 0)
}
nt(4)
} catch (o) {}
}
function Nt(e, t) {
if (e.forEach && "function" == typeof e.forEach)
e.forEach(t, void 0);
else if (g(e) || "string" == typeof e)
S(e, t, void 0);
else {
if (e.T && "function" == typeof e.T)
var n = e.T();
else if (e.R && "function" == typeof e.R)
n = void 0;
else if (g(e) || "string" == typeof e) {
n = [];
for (var r = e.length, i = 0; i < r; i++)
n.push(i)
} else
for (i in n = [],
r = 0,
e)
n[r++] = i;
r = function(e) {
if (e.R && "function" == typeof e.R)
return e.R();
if ("string" == typeof e)
return e.split("");
if (g(e)) {
for (var t = [], n = e.length, r = 0; r < n; r++)
t.push(e[r]);
return t
}
for (r in t = [],
n = 0,
e)
t[n++] = e[r];
return t
}(e),
i = r.length;
for (var o = 0; o < i; o++)
t.call(void 0, r[o], n && n[o], e)
}
}
function zt(e, t) {
this.h = {},
this.g = [],
this.i = 0;
var n = arguments.length;
if (1 < n) {
if (n % 2)
throw Error("Uneven number of arguments");
for (var r = 0; r < n; r += 2)
this.set(arguments[r], arguments[r + 1])
} else if (e)
if (e instanceof zt)
for (n = e.T(),
r = 0; r < n.length; r++)
this.set(n[r], e.get(n[r]));
else
for (r in e)
this.set(r, e[r])
}
function Dt(e) {
if (e.i != e.g.length) {
for (var t = 0, n = 0; t < e.g.length; ) {
var r = e.g[t];
Lt(e.h, r) && (e.g[n++] = r),
t++
}
e.g.length = n
}
if (e.i != e.g.length) {
var i = {};
for (n = t = 0; t < e.g.length; )
Lt(i, r = e.g[t]) || (e.g[n++] = r,
i[r] = 1),
t++;
e.g.length = n
}
}
function Lt(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
(r = mt.prototype).setTimeout = function(e) {
this.P = e
}
,
r.gb = function(e) {
e = e.target;
var t = this.L;
t && 3 == Pn(e) ? t.l() : this.Ia(e)
}
,
r.Ia = function(e) {
try {
if (e == this.g)
e: {
var t = Pn(this.g)
, n = this.g.Da()
, r = this.g.ba();
if (!(3 > t) && (3 != t || G || this.g && (this.h.h || this.g.ga() || Bn(this.g)))) {
this.I || 4 != t || 7 == n || nt(8 == n || 0 >= r ? 3 : 2),
At(this);
var i = this.g.ba();
this.N = i;
t: if (wt(this)) {
var o = Bn(this.g);
e = "";
var a = o.length
, l = 4 == Pn(this.g);
if (!this.h.i) {
if ("undefined" == typeof TextDecoder) {
Et(this),
Tt(this);
var s = "";
break t
}
this.h.i = new f.TextDecoder
}
for (n = 0; n < a; n++)
this.h.h = !0,
e += this.h.i.decode(o[n], {
stream: l && n == a - 1
});
o.splice(0, a),
this.h.g += e,
this.C = 0,
s = this.h.g
} else
s = this.g.ga();
if (this.i = 200 == i,
function(e, t, n, r, i, o, a) {
e.info((function() {
return "XMLHTTP RESP (" + r + ") [ attempt " + i + "]: " + t + "\n" + n + "\n" + o + " " + a
}
))
}(this.j, this.u, this.A, this.m, this.X, t, i),
this.i) {
if (this.$ && !this.J) {
t: {
if (this.g) {
var c, u = this.g;
if ((c = u.g ? u.g.getResponseHeader("X-HTTP-Initial-Response") : null) && !E(c)) {
var d = c;
break t
}
}
d = null
}
if (!(i = d)) {
this.i = !1,
this.o = 3,
it(12),
Et(this),
Tt(this);
break e
}
Je(this.j, this.m, i, "Initial handshake response via X-HTTP-Initial-Response"),
this.J = !0,
It(this, i)
}
this.U ? (Ct(this, t, s),
G && this.i && 3 == t && (Ke(this.V, this.W, "tick", this.fb),
this.W.start())) : (Je(this.j, this.m, s, null),
It(this, s)),
4 == t && Et(this),
this.i && !this.I && (4 == t ? nr(this.l, this) : (this.i = !1,
Mt(this)))
} else
400 == i && 0 < s.indexOf("Unknown SID") ? (this.o = 3,
it(12)) : (this.o = 0,
it(13)),
Et(this),
Tt(this)
}
}
} catch (t) {}
}
,
r.fb = function() {
if (this.g) {
var e = Pn(this.g)
, t = this.g.ga();
this.C < t.length && (At(this),
Ct(this, e, t),
this.i && 4 != e && Mt(this))
}
}
,
r.cancel = function() {
this.I = !0,
Et(this)
}
,
r.eb = function() {
this.B = null;
var e = Date.now();
0 <= e - this.Y ? (function(e, t) {
e.info((function() {
return "TIMEOUT: " + t
}
))
}(this.j, this.A),
2 != this.K && (nt(3),
it(17)),
Et(this),
this.o = 2,
Tt(this)) : St(this, this.Y - e)
}
,
(r = zt.prototype).R = function() {
Dt(this);
for (var e = [], t = 0; t < this.g.length; t++)
e.push(this.h[this.g[t]]);
return e
}
,
r.T = function() {
return Dt(this),
this.g.concat()
}
,
r.get = function(e, t) {
return Lt(this.h, e) ? this.h[e] : t
}
,
r.set = function(e, t) {
Lt(this.h, e) || (this.i++,
this.g.push(e)),
this.h[e] = t
}
,
r.forEach = function(e, t) {
for (var n = this.T(), r = 0; r < n.length; r++) {
var i = n[r]
, o = this.get(i);
e.call(t, o, i, this)
}
}
;
var Rt = /^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;
function Pt(e, t) {
if (this.i = this.s = this.j = "",
this.m = null,
this.o = this.l = "",
this.g = !1,
e instanceof Pt) {
this.g = void 0 !== t ? t : e.g,
Ft(this, e.j),
this.s = e.s,
Vt(this, e.i),
Wt(this, e.m),
this.l = e.l,
t = e.h;
var n = new en;
n.i = t.i,
t.g && (n.g = new zt(t.g),
n.h = t.h),
qt(this, n),
this.o = e.o
} else
e && (n = String(e).match(Rt)) ? (this.g = !!t,
Ft(this, n[1] || "", !0),
this.s = Xt(n[2] || ""),
Vt(this, n[3] || "", !0),
Wt(this, n[4]),
this.l = Xt(n[5] || "", !0),
qt(this, n[6] || "", !0),
this.o = Xt(n[7] || "")) : (this.g = !!t,
this.h = new en(null,this.g))
}
function Bt(e) {
return new Pt(e)
}
function Ft(e, t, n) {
e.j = n ? Xt(t, !0) : t,
e.j && (e.j = e.j.replace(/:$/, ""))
}
function Vt(e, t, n) {
e.i = n ? Xt(t, !0) : t
}
function Wt(e, t) {
if (t) {
if (t = Number(t),
isNaN(t) || 0 > t)
throw Error("Bad port number " + t);
e.m = t
} else
e.m = null
}
function qt(e, t, n) {
t instanceof en ? (e.h = t,
function(e, t) {
t && !e.j && (tn(e),
e.i = null,
e.g.forEach((function(e, t) {
var n = t.toLowerCase();
t != n && (nn(this, t),
on(this, n, e))
}
), e)),
e.j = t
}(e.h, e.g)) : (n || (t = Gt(t, Zt)),
e.h = new en(t,e.g))
}
function Ht(e, t, n) {
e.h.set(t, n)
}
function Ut(e) {
return Ht(e, "zx", Math.floor(2147483648 * Math.random()).toString(36) + Math.abs(Math.floor(2147483648 * Math.random()) ^ Date.now()).toString(36)),
e
}
function Xt(e, t) {
return e ? t ? decodeURI(e.replace(/%25/g, "%2525")) : decodeURIComponent(e) : ""
}
function Gt(e, t, n) {
return "string" == typeof e ? (e = encodeURI(e).replace(t, Kt),
n && (e = e.replace(/%25([0-9a-fA-F]{2})/g, "%$1")),
e) : null
}
function Kt(e) {
return "%" + ((e = e.charCodeAt(0)) >> 4 & 15).toString(16) + (15 & e).toString(16)
}
Pt.prototype.toString = function() {
var e = []
, t = this.j;
t && e.push(Gt(t, Yt, !0), ":");
var n = this.i;
return (n || "file" == t) && (e.push("//"),
(t = this.s) && e.push(Gt(t, Yt, !0), "@"),
e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g, "%$1")),
null != (n = this.m) && e.push(":", String(n))),
(n = this.l) && (this.i && "/" != n.charAt(0) && e.push("/"),
e.push(Gt(n, "/" == n.charAt(0) ? Jt : Qt, !0))),
(n = this.h.toString()) && e.push("?", n),
(n = this.o) && e.push("#", Gt(n, $t)),
e.join("")
}
;
var Yt = /[#\/\?@]/g
, Qt = /[#\?:]/g
, Jt = /[#\?]/g
, Zt = /[#\?@]/g
, $t = /#/g;
function en(e, t) {
this.h = this.g = null,
this.i = e || null,
this.j = !!t
}
function tn(e) {
e.g || (e.g = new zt,
e.h = 0,
e.i && function(e, t) {
if (e) {
e = e.split("&");
for (var n = 0; n < e.length; n++) {
var r = e[n].indexOf("=")
, i = null;
if (0 <= r) {
var o = e[n].substring(0, r);
i = e[n].substring(r + 1)
} else
o = e[n];
t(o, i ? decodeURIComponent(i.replace(/\+/g, " ")) : "")
}
}
}(e.i, (function(t, n) {
e.add(decodeURIComponent(t.replace(/\+/g, " ")), n)
}
)))
}
function nn(e, t) {
tn(e),
t = an(e, t),
Lt(e.g.h, t) && (e.i = null,
e.h -= e.g.get(t).length,
Lt((e = e.g).h, t) && (delete e.h[t],
e.i--,
e.g.length > 2 * e.i && Dt(e)))
}
function rn(e, t) {
return tn(e),
t = an(e, t),
Lt(e.g.h, t)
}
function on(e, t, n) {
nn(e, t),
0 < n.length && (e.i = null,
e.g.set(an(e, t), T(n)),
e.h += n.length)
}
function an(e, t) {
return t = String(t),
e.j && (t = t.toLowerCase()),
t
}
(r = en.prototype).add = function(e, t) {
tn(this),
this.i = null,
e = an(this, e);
var n = this.g.get(e);
return n || this.g.set(e, n = []),
n.push(t),
this.h += 1,
this
}
,
r.forEach = function(e, t) {
tn(this),
this.g.forEach((function(n, r) {
S(n, (function(n) {
e.call(t, n, r, this)
}
), this)
}
), this)
}
,
r.T = function() {
tn(this);
for (var e = this.g.R(), t = this.g.T(), n = [], r = 0; r < t.length; r++)
for (var i = e[r], o = 0; o < i.length; o++)
n.push(t[r]);
return n
}
,
r.R = function(e) {
tn(this);
var t = [];
if ("string" == typeof e)
rn(this, e) && (t = A(t, this.g.get(an(this, e))));
else {
e = this.g.R();
for (var n = 0; n < e.length; n++)
t = A(t, e[n])
}
return t
}
,
r.set = function(e, t) {
return tn(this),
this.i = null,
rn(this, e = an(this, e)) && (this.h -= this.g.get(e).length),
this.g.set(e, [t]),
this.h += 1,
this
}
,
r.get = function(e, t) {
return e && 0 < (e = this.R(e)).length ? String(e[0]) : t
}
,
r.toString = function() {
if (this.i)
return this.i;
if (!this.g)
return "";
for (var e = [], t = this.g.T(), n = 0; n < t.length; n++) {
var r = t[n]
, i = encodeURIComponent(String(r));
r = this.R(r);
for (var o = 0; o < r.length; o++) {
var a = i;
"" !== r[o] && (a += "=" + encodeURIComponent(String(r[o]))),
e.push(a)
}
}
return this.i = e.join("&")
}
;
var ln = Object(u.a)((function e(t, n) {
Object(c.a)(this, e),
this.h = t,
this.g = n
}
));
function sn(e) {
this.l = e || un,
e = f.PerformanceNavigationTiming ? 0 < (e = f.performance.getEntriesByType("navigation")).length && ("hq" == e[0].nextHopProtocol || "h2" == e[0].nextHopProtocol) : !!(f.g && f.g.Ea && f.g.Ea() && f.g.Ea().Zb),
this.j = e ? this.l : 1,
this.g = null,
1 < this.j && (this.g = new Set),
this.h = null,
this.i = []
}
var cn, un = 10;
function dn(e) {
return !!e.h || !!e.g && e.g.size >= e.j
}
function pn(e) {
return e.h ? 1 : e.g ? e.g.size : 0
}
function hn(e, t) {
return e.h ? e.h == t : !!e.g && e.g.has(t)
}
function fn(e, t) {
e.g ? e.g.add(t) : e.h = t
}
function bn(e, t) {
e.h && e.h == t ? e.h = null : e.g && e.g.has(t) && e.g.delete(t)
}
function gn(e) {
if (null != e.h)
return e.i.concat(e.h.D);
if (null != e.g && 0 !== e.g.size) {
var t, n = e.i, r = Object(i.a)(e.g.values());
try {
for (r.s(); !(t = r.n()).done; ) {
var o = t.value;
n = n.concat(o.D)
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
return n
}
return T(e.i)
}
function mn() {}
function vn() {
this.g = new mn
}
function yn(e, t, n) {
var r = n || "";
try {
Nt(e, (function(e, n) {
var i = e;
m(e) && (i = Te(e)),
t.push(r + n + "=" + encodeURIComponent(i))
}
))
} catch (e) {
throw t.push(r + "type=" + encodeURIComponent("_badmap")),
e
}
}
function xn(e, t, n, r, i) {
try {
t.onload = null,
t.onerror = null,
t.onabort = null,
t.ontimeout = null,
i(r)
} catch (e) {}
}
function On(e) {
this.l = e.$b || null,
this.j = e.ib || !1
}
function jn(e, t) {
Me.call(this),
this.D = e,
this.u = t,
this.m = void 0,
this.readyState = kn,
this.status = 0,
this.responseType = this.responseText = this.response = this.statusText = "",
this.onreadystatechange = null,
this.v = new Headers,
this.h = null,
this.C = "GET",
this.B = "",
this.g = !1,
this.A = this.j = this.l = null
}
sn.prototype.cancel = function() {
if (this.i = gn(this),
this.h)
this.h.cancel(),
this.h = null;
else if (this.g && 0 !== this.g.size) {
var e, t = Object(i.a)(this.g.values());
try {
for (t.s(); !(e = t.n()).done; )
e.value.cancel()
} catch (e) {
t.e(e)
} finally {
t.f()
}
this.g.clear()
}
}
,
mn.prototype.stringify = function(e) {
return f.JSON.stringify(e, void 0)
}
,
mn.prototype.parse = function(e) {
return f.JSON.parse(e, void 0)
}
,
w(On, ct),
On.prototype.g = function() {
return new jn(this.l,this.j)
}
,
On.prototype.i = (cn = {},
function() {
return cn
}
),
w(jn, Me);
var kn = 0;
function wn(e) {
e.j.read().then(e.Sa.bind(e)).catch(e.ha.bind(e))
}
function Cn(e) {
e.readyState = 4,
e.l = null,
e.j = null,
e.A = null,
_n(e)
}
function _n(e) {
e.onreadystatechange && e.onreadystatechange.call(e)
}
(r = jn.prototype).open = function(e, t) {
if (this.readyState != kn)
throw this.abort(),
Error("Error reopening a connection");
this.C = e,
this.B = t,
this.readyState = 1,
_n(this)
}
,
r.send = function(e) {
if (1 != this.readyState)
throw this.abort(),
Error("need to call open() first. ");
this.g = !0;
var t = {
headers: this.v,
method: this.C,
credentials: this.m,
cache: void 0
};
e && (t.body = e),
(this.D || f).fetch(new Request(this.B,t)).then(this.Va.bind(this), this.ha.bind(this))
}
,
r.abort = function() {
this.response = this.responseText = "",
this.v = new Headers,
this.status = 0,
this.j && this.j.cancel("Request was aborted."),
1 <= this.readyState && this.g && 4 != this.readyState && (this.g = !1,
Cn(this)),
this.readyState = kn
}
,
r.Va = function(e) {
if (this.g && (this.l = e,
this.h || (this.status = this.l.status,
this.statusText = this.l.statusText,
this.h = e.headers,
this.readyState = 2,
_n(this)),
this.g && (this.readyState = 3,
_n(this),
this.g)))
if ("arraybuffer" === this.responseType)
e.arrayBuffer().then(this.Ta.bind(this), this.ha.bind(this));
else if (void 0 !== f.ReadableStream && "body"in e) {
if (this.j = e.body.getReader(),
this.u) {
if (this.responseType)
throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response = []
} else
this.response = this.responseText = "",
this.A = new TextDecoder;
wn(this)
} else
e.text().then(this.Ua.bind(this), this.ha.bind(this))
}
,
r.Sa = function(e) {
if (this.g) {
if (this.u && e.value)
this.response.push(e.value);
else if (!this.u) {
var t = e.value ? e.value : new Uint8Array(0);
(t = this.A.decode(t, {
stream: !e.done
})) && (this.response = this.responseText += t)
}
e.done ? Cn(this) : _n(this),
3 == this.readyState && wn(this)
}
}
,
r.Ua = function(e) {
this.g && (this.response = this.responseText = e,
Cn(this))
}
,
r.Ta = function(e) {
this.g && (this.response = e,
Cn(this))
}
,
r.ha = function() {
this.g && Cn(this)
}
,
r.setRequestHeader = function(e, t) {
this.v.append(e, t)
}
,
r.getResponseHeader = function(e) {
return this.h && this.h.get(e.toLowerCase()) || ""
}
,
r.getAllResponseHeaders = function() {
if (!this.h)
return "";
for (var e = [], t = this.h.entries(), n = t.next(); !n.done; )
n = n.value,
e.push(n[0] + ": " + n[1]),
n = t.next();
return e.join("\r\n")
}
,
Object.defineProperty(jn.prototype, "withCredentials", {
get: function() {
return "include" === this.m
},
set: function(e) {
this.m = e ? "include" : "same-origin"
}
});
var Mn = f.JSON.parse;
function Sn(e) {
Me.call(this),
this.headers = new zt,
this.u = e || null,
this.h = !1,
this.C = this.g = null,
this.H = "",
this.m = 0,
this.j = "",
this.l = this.F = this.v = this.D = !1,
this.B = 0,
this.A = null,
this.J = An,
this.K = this.L = !1
}
w(Sn, Me);
var An = ""
, Tn = /^https?$/i
, En = ["POST", "PUT"];
function In(e) {
return "content-type" == e.toLowerCase()
}
function Nn(e, t) {
e.h = !1,
e.g && (e.l = !0,
e.g.abort(),
e.l = !1),
e.j = t,
e.m = 5,
zn(e),
Ln(e)
}
function zn(e) {
e.D || (e.D = !0,
Se(e, "complete"),
Se(e, "error"))
}
function Dn(e) {
if (e.h && void 0 !== h && (!e.C[1] || 4 != Pn(e) || 2 != e.ba()))
if (e.v && 4 == Pn(e))
qe(e.Fa, 0, e);
else if (Se(e, "readystatechange"),
4 == Pn(e)) {
e.h = !1;
try {
var t, n = e.ba();
e: switch (n) {
case 200:
case 201:
case 202:
case 204:
case 206:
case 304:
case 1223:
var r = !0;
break e;
default:
r = !1
}
if (!(t = r)) {
var i;
if (i = 0 === n) {
var o = String(e.H).match(Rt)[1] || null;
if (!o && f.self && f.self.location) {
var a = f.self.location.protocol;
o = a.substr(0, a.length - 1)
}
i = !Tn.test(o ? o.toLowerCase() : "")
}
t = i
}
if (t)
Se(e, "complete"),
Se(e, "success");
else {
e.m = 6;
try {
var l = 2 < Pn(e) ? e.g.statusText : ""
} catch (e) {
l = ""
}
e.j = l + " [" + e.ba() + "]",
zn(e)
}
} finally {
Ln(e)
}
}
}
function Ln(e, t) {
if (e.g) {
Rn(e);
var n = e.g
, r = e.C[0] ? b : null;
e.g = null,
e.C = null,
t || Se(e, "ready");
try {
n.onreadystatechange = r
} catch (e) {}
}
}
function Rn(e) {
e.g && e.K && (e.g.ontimeout = null),
e.A && (f.clearTimeout(e.A),
e.A = null)
}
function Pn(e) {
return e.g ? e.g.readyState : 0
}
function Bn(e) {
try {
if (!e.g)
return null;
if ("response"in e.g)
return e.g.response;
switch (e.J) {
case An:
case "text":
return e.g.responseText;
case "arraybuffer":
if ("mozResponseArrayBuffer"in e.g)
return e.g.mozResponseArrayBuffer
}
return null
} catch (e) {
return null
}
}
function Fn(e, t, n) {
e: {
for (r in n) {
var r = !1;
break e
}
r = !0
}
r || (n = function(e) {
var t = "";
return P(e, (function(e, n) {
t += n,
t += ":",
t += e,
t += "\r\n"
}
)),
t
}(n),
"string" == typeof e ? null != n && encodeURIComponent(String(n)) : Ht(e, t, n))
}
function Vn(e, t, n) {
return n && n.internalChannelParams && n.internalChannelParams[e] || t
}
function Wn(e) {
this.za = 0,
this.l = [],
this.h = new Qe,
this.la = this.oa = this.F = this.W = this.g = this.sa = this.D = this.aa = this.o = this.P = this.s = null,
this.Za = this.V = 0,
this.Xa = Vn("failFast", !1, e),
this.N = this.v = this.u = this.m = this.j = null,
this.X = !0,
this.I = this.ta = this.U = -1,
this.Y = this.A = this.C = 0,
this.Pa = Vn("baseRetryDelayMs", 5e3, e),
this.$a = Vn("retryDelaySeedMs", 1e4, e),
this.Ya = Vn("forwardChannelMaxRetries", 2, e),
this.ra = Vn("forwardChannelRequestTimeoutMs", 2e4, e),
this.qa = e && e.xmlHttpFactory || void 0,
this.Ba = e && e.Yb || !1,
this.K = void 0,
this.H = e && e.supportsCrossDomainXhr || !1,
this.J = "",
this.i = new sn(e && e.concurrentRequestLimit),
this.Ca = new vn,
this.ja = e && e.fastHandshake || !1,
this.Ra = e && e.Wb || !1,
e && e.Aa && this.h.Aa(),
e && e.forceLongPolling && (this.X = !1),
this.$ = !this.ja && this.X && e && e.detectBufferingProxy || !1,
this.ka = void 0,
this.O = 0,
this.L = !1,
this.B = null,
this.Wa = !e || !1 !== e.Xb
}
function qn(e) {
if (Un(e),
3 == e.G) {
var t = e.V++
, n = Bt(e.F);
Ht(n, "SID", e.J),
Ht(n, "RID", t),
Ht(n, "TYPE", "terminate"),
Yn(e, n),
(t = new mt(e,e.h,t,void 0)).K = 2,
t.v = Ut(Bt(n)),
n = !1,
f.navigator && f.navigator.sendBeacon && (n = f.navigator.sendBeacon(t.v.toString(), "")),
!n && f.Image && ((new Image).src = t.v,
n = !0),
n || (t.g = lr(t.l, null),
t.g.ea(t.v)),
t.F = Date.now(),
Mt(t)
}
or(e)
}
function Hn(e) {
e.g && ($n(e),
e.g.cancel(),
e.g = null)
}
function Un(e) {
Hn(e),
e.u && (f.clearTimeout(e.u),
e.u = null),
tr(e),
e.i.cancel(),
e.m && ("number" == typeof e.m && f.clearTimeout(e.m),
e.m = null)
}
function Xn(e, t) {
e.l.push(new ln(e.Za++,t)),
3 == e.G && Gn(e)
}
function Gn(e) {
dn(e.i) || e.m || (e.m = !0,
Re(e.Ha, e),
e.C = 0)
}
function Kn(e, t) {
var n;
n = t ? t.m : e.V++;
var r = Bt(e.F);
Ht(r, "SID", e.J),
Ht(r, "RID", n),
Ht(r, "AID", e.U),
Yn(e, r),
e.o && e.s && Fn(r, e.o, e.s),
n = new mt(e,e.h,n,e.C + 1),
null === e.o && (n.H = e.s),
t && (e.l = t.D.concat(e.l)),
t = Qn(e, n, 1e3),
n.setTimeout(Math.round(.5 * e.ra) + Math.round(.5 * e.ra * Math.random())),
fn(e.i, n),
jt(n, r, t)
}
function Yn(e, t) {
e.j && Nt({}, (function(e, n) {
Ht(t, n, e)
}
))
}
function Qn(e, t, n) {
n = Math.min(e.l.length, n);
var r = e.j ? j(e.j.Oa, e.j, e) : null;
e: for (var i = e.l, o = -1; ; ) {
var a = ["count=" + n];
-1 == o ? 0 < n ? (o = i[0].h,
a.push("ofs=" + o)) : o = 0 : a.push("ofs=" + o);
for (var l = !0, s = 0; s < n; s++) {
var c = i[s].h
, u = i[s].g;
if (0 > (c -= o))
o = Math.max(0, i[s].h - 100),
l = !1;
else
try {
yn(u, a, "req" + c + "_")
} catch (e) {
r && r(u)
}
}
if (l) {
r = a.join("&");
break e
}
}
return e = e.l.splice(0, n),
t.D = e,
r
}
function Jn(e) {
e.g || e.u || (e.Y = 1,
Re(e.Ga, e),
e.A = 0)
}
function Zn(e) {
return !(e.g || e.u || 3 <= e.A || (e.Y++,
e.u = at(j(e.Ga, e), rr(e, e.A)),
e.A++,
0))
}
function $n(e) {
null != e.B && (f.clearTimeout(e.B),
e.B = null)
}
function er(e) {
e.g = new mt(e,e.h,"rpc",e.Y),
null === e.o && (e.g.H = e.s),
e.g.O = 0;
var t = Bt(e.oa);
Ht(t, "RID", "rpc"),
Ht(t, "SID", e.J),
Ht(t, "CI", e.N ? "0" : "1"),
Ht(t, "AID", e.U),
Yn(e, t),
Ht(t, "TYPE", "xmlhttp"),
e.o && e.s && Fn(t, e.o, e.s),
e.K && e.g.setTimeout(e.K);
var n = e.g;
e = e.la,
n.K = 1,
n.v = Ut(Bt(t)),
n.s = null,
n.U = !0,
kt(n, e)
}
function tr(e) {
null != e.v && (f.clearTimeout(e.v),
e.v = null)
}
function nr(e, t) {
var n = null;
if (e.g == t) {
tr(e),
$n(e),
e.g = null;
var r = 2
} else {
if (!hn(e.i, t))
return;
n = t.D,
bn(e.i, t),
r = 1
}
if (e.I = t.N,
0 != e.G)
if (t.i)
if (1 == r) {
n = t.s ? t.s.length : 0,
t = Date.now() - t.F;
var i = e.C;
Se(r = et(), new ot(r,n,t,i)),
Gn(e)
} else
Jn(e);
else if (3 == (i = t.o) || 0 == i && 0 < e.I || !(1 == r && function(e, t) {
return !(pn(e.i) >= e.i.j - (e.m ? 1 : 0) || (e.m ? (e.l = t.D.concat(e.l),
0) : 1 == e.G || 2 == e.G || e.C >= (e.Xa ? 0 : e.Ya) || (e.m = at(j(e.Ha, e, t), rr(e, e.C)),
e.C++,
0)))
}(e, t) || 2 == r && Zn(e)))
switch (n && 0 < n.length && (t = e.i,
t.i = t.i.concat(n)),
i) {
case 1:
ir(e, 5);
break;
case 4:
ir(e, 10);
break;
case 3:
ir(e, 6);
break;
default:
ir(e, 2)
}
}
function rr(e, t) {
var n = e.Pa + Math.floor(Math.random() * e.$a);
return e.j || (n *= 2),
n * t
}
function ir(e, t) {
if (e.h.info("Error code " + t),
2 == t) {
var n = null;
e.j && (n = null);
var r = j(e.jb, e);
n || (n = new Pt("//www.google.com/images/cleardot.gif"),
f.location && "http" == f.location.protocol || Ft(n, "https"),
Ut(n)),
function(e, t) {
var n = new Qe;
if (f.Image) {
var r = new Image;
r.onload = k(xn, n, r, "TestLoadImage: loaded", !0, t),
r.onerror = k(xn, n, r, "TestLoadImage: error", !1, t),
r.onabort = k(xn, n, r, "TestLoadImage: abort", !1, t),
r.ontimeout = k(xn, n, r, "TestLoadImage: timeout", !1, t),
f.setTimeout((function() {
r.ontimeout && r.ontimeout()
}
), 1e4),
r.src = e
} else
t(!1)
}(n.toString(), r)
} else
it(2);
e.G = 0,
e.j && e.j.va(t),
or(e),
Un(e)
}
function or(e) {
e.G = 0,
e.I = -1,
e.j && (0 == gn(e.i).length && 0 == e.l.length || (e.i.i.length = 0,
T(e.l),
e.l.length = 0),
e.j.ua())
}
function ar(e, t, n) {
var r = function(e) {
return e instanceof Pt ? Bt(e) : new Pt(e,void 0)
}(n);
if ("" != r.i)
t && Vt(r, t + "." + r.i),
Wt(r, r.m);
else {
var i = f.location;
r = function(e, t, n, r) {
var i = new Pt(null,void 0);
return e && Ft(i, e),
t && Vt(i, t),
n && Wt(i, n),
r && (i.l = r),
i
}(i.protocol, t ? t + "." + i.hostname : i.hostname, +i.port, n)
}
return e.aa && P(e.aa, (function(e, t) {
Ht(r, t, e)
}
)),
t = e.D,
n = e.sa,
t && n && Ht(r, t, n),
Ht(r, "VER", e.ma),
Yn(e, r),
r
}
function lr(e, t, n) {
if (t && !e.H)
throw Error("Can't create secondary domain capable XhrIo object.");
return (t = n && e.Ba && !e.qa ? new Sn(new On({
ib: !0
})) : new Sn(e.qa)).L = e.H,
t
}
function sr() {}
function cr() {
if (U && !(10 <= Number(re)))
throw Error("Environmental error: no available transport.")
}
function ur(e, t) {
Me.call(this),
this.g = new Wn(t),
this.l = e,
this.h = t && t.messageUrlParams || null,
e = t && t.messageHeaders || null,
t && t.clientProtocolHeaderRequired && (e ? e["X-Client-Protocol"] = "webchannel" : e = {
"X-Client-Protocol": "webchannel"
}),
this.g.s = e,
e = t && t.initMessageHeaders || null,
t && t.messageContentType && (e ? e["X-WebChannel-Content-Type"] = t.messageContentType : e = {
"X-WebChannel-Content-Type": t.messageContentType
}),
t && t.ya && (e ? e["X-WebChannel-Client-Profile"] = t.ya : e = {
"X-WebChannel-Client-Profile": t.ya
}),
this.g.P = e,
(e = t && t.httpHeadersOverwriteParam) && !E(e) && (this.g.o = e),
this.A = t && t.supportsCrossDomainXhr || !1,
this.v = t && t.sendRawJson || !1,
(t = t && t.httpSessionIdParam) && !E(t) && (this.g.D = t,
null !== (e = this.h) && t in e && t in (e = this.h) && delete e[t]),
this.j = new hr(this)
}
function dr(e) {
ft.call(this);
var t = e.__sm__;
if (t) {
e: {
for (var n in t) {
e = n;
break e
}
e = void 0
}
(this.i = e) && (e = this.i,
t = null !== t && e in t ? t[e] : void 0),
this.data = t
} else
this.data = e
}
function pr() {
bt.call(this),
this.status = 1
}
function hr(e) {
this.g = e
}
(r = Sn.prototype).ea = function(e, t, n, r) {
if (this.g)
throw Error("[goog.net.XhrIo] Object is active with another request=" + this.H + "; newUri=" + e);
t = t ? t.toUpperCase() : "GET",
this.H = e,
this.j = "",
this.m = 0,
this.D = !1,
this.h = !0,
this.g = this.u ? this.u.g() : pt.g(),
this.C = this.u ? ut(this.u) : ut(pt),
this.g.onreadystatechange = j(this.Fa, this);
try {
this.F = !0,
this.g.open(t, String(e), !0),
this.F = !1
} catch (e) {
return void Nn(this, e)
}
e = n || "";
var i = new zt(this.headers);
r && Nt(r, (function(e, t) {
i.set(t, e)
}
)),
r = function(e) {
e: {
for (var t = In, n = e.length, r = "string" == typeof e ? e.split("") : e, i = 0; i < n; i++)
if (i in r && t.call(void 0, r[i], i, e)) {
t = i;
break e
}
t = -1
}
return 0 > t ? null : "string" == typeof e ? e.charAt(t) : e[t]
}(i.T()),
n = f.FormData && e instanceof f.FormData,
!(0 <= M(En, t)) || r || n || i.set("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"),
i.forEach((function(e, t) {
this.g.setRequestHeader(t, e)
}
), this),
this.J && (this.g.responseType = this.J),
"withCredentials"in this.g && this.g.withCredentials !== this.L && (this.g.withCredentials = this.L);
try {
Rn(this),
0 < this.B && ((this.K = function(e) {
return U && ne() && "number" == typeof e.timeout && void 0 !== e.ontimeout
}(this.g)) ? (this.g.timeout = this.B,
this.g.ontimeout = j(this.pa, this)) : this.A = qe(this.pa, this.B, this)),
this.v = !0,
this.g.send(e),
this.v = !1
} catch (e) {
Nn(this, e)
}
}
,
r.pa = function() {
void 0 !== h && this.g && (this.j = "Timed out after " + this.B + "ms, aborting",
this.m = 8,
Se(this, "timeout"),
this.abort(8))
}
,
r.abort = function(e) {
this.g && this.h && (this.h = !1,
this.l = !0,
this.g.abort(),
this.l = !1,
this.m = e || 7,
Se(this, "complete"),
Se(this, "abort"),
Ln(this))
}
,
r.M = function() {
this.g && (this.h && (this.h = !1,
this.l = !0,
this.g.abort(),
this.l = !1),
Ln(this, !0)),
Sn.Z.M.call(this)
}
,
r.Fa = function() {
this.s || (this.F || this.v || this.l ? Dn(this) : this.cb())
}
,
r.cb = function() {
Dn(this)
}
,
r.ba = function() {
try {
return 2 < Pn(this) ? this.g.status : -1
} catch (e) {
return -1
}
}
,
r.ga = function() {
try {
return this.g ? this.g.responseText : ""
} catch (e) {
return ""
}
}
,
r.Qa = function(e) {
if (this.g) {
var t = this.g.responseText;
return e && 0 == t.indexOf(e) && (t = t.substring(e.length)),
Mn(t)
}
}
,
r.Da = function() {
return this.m
}
,
r.La = function() {
return "string" == typeof this.j ? this.j : String(this.j)
}
,
(r = Wn.prototype).ma = 8,
r.G = 1,
r.hb = function(e) {
try {
this.h.info("Origin Trials invoked: " + e)
} catch (e) {}
}
,
r.Ha = function(e) {
if (this.m)
if (this.m = null,
1 == this.G) {
if (!e) {
this.V = Math.floor(1e5 * Math.random()),
e = this.V++;
var t = new mt(this,this.h,e,void 0)
, n = this.s;
if (this.P && (n ? V(n = B(n), this.P) : n = this.P),
null === this.o && (t.H = n),
this.ja)
e: {
for (var r = 0, i = 0; i < this.l.length; i++) {
var o = this.l[i];
if (void 0 === (o = "__data__"in o.g && "string" == typeof (o = o.g.__data__) ? o.length : void 0))
break;
if (4096 < (r += o)) {
r = i;
break e
}
if (4096 === r || i === this.l.length - 1) {
r = i + 1;
break e
}
}
r = 1e3
}
else
r = 1e3;
r = Qn(this, t, r),
Ht(i = Bt(this.F), "RID", e),
Ht(i, "CVER", 22),
this.D && Ht(i, "X-HTTP-Session-Id", this.D),
Yn(this, i),
this.o && n && Fn(i, this.o, n),
fn(this.i, t),
this.Ra && Ht(i, "TYPE", "init"),
this.ja ? (Ht(i, "$req", r),
Ht(i, "SID", "null"),
t.$ = !0,
jt(t, i, null)) : jt(t, i, r),
this.G = 2
}
} else
3 == this.G && (e ? Kn(this, e) : 0 == this.l.length || dn(this.i) || Kn(this))
}
,
r.Ga = function() {
if (this.u = null,
er(this),
this.$ && !(this.L || null == this.g || 0 >= this.O)) {
var e = 2 * this.O;
this.h.info("BP detection timer enabled: " + e),
this.B = at(j(this.bb, this), e)
}
}
,
r.bb = function() {
this.B && (this.B = null,
this.h.info("BP detection timeout reached."),
this.h.info("Buffering proxy detected and switch to long-polling!"),
this.N = !1,
this.L = !0,
it(10),
Hn(this),
er(this))
}
,
r.ab = function() {
null != this.v && (this.v = null,
Hn(this),
Zn(this),
it(19))
}
,
r.jb = function(e) {
e ? (this.h.info("Successfully pinged google.com"),
it(2)) : (this.h.info("Failed to ping google.com"),
it(1))
}
,
(r = sr.prototype).xa = function() {}
,
r.wa = function() {}
,
r.va = function() {}
,
r.ua = function() {}
,
r.Oa = function() {}
,
cr.prototype.g = function(e, t) {
return new ur(e,t)
}
,
w(ur, Me),
ur.prototype.m = function() {
this.g.j = this.j,
this.A && (this.g.H = !0);
var e = this.g
, t = this.l
, n = this.h || void 0;
e.Wa && (e.h.info("Origin Trials enabled."),
Re(j(e.hb, e, t))),
it(0),
e.W = t,
e.aa = n || {},
e.N = e.X,
e.F = ar(e, null, e.W),
Gn(e)
}
,
ur.prototype.close = function() {
qn(this.g)
}
,
ur.prototype.u = function(e) {
if ("string" == typeof e) {
var t = {};
t.__data__ = e,
Xn(this.g, t)
} else
this.v ? ((t = {}).__data__ = Te(e),
Xn(this.g, t)) : Xn(this.g, e)
}
,
ur.prototype.M = function() {
this.g.j = null,
delete this.j,
qn(this.g),
delete this.g,
ur.Z.M.call(this)
}
,
w(dr, ft),
w(pr, bt),
w(hr, sr),
hr.prototype.xa = function() {
Se(this.g, "a")
}
,
hr.prototype.wa = function(e) {
Se(this.g, new dr(e))
}
,
hr.prototype.va = function(e) {
Se(this.g, new pr(e))
}
,
hr.prototype.ua = function() {
Se(this.g, "b")
}
,
cr.prototype.createWebChannel = cr.prototype.g,
ur.prototype.send = ur.prototype.u,
ur.prototype.open = ur.prototype.m,
ur.prototype.close = ur.prototype.close,
lt.NO_ERROR = 0,
lt.TIMEOUT = 8,
lt.HTTP_ERROR = 6,
st.COMPLETE = "complete",
dt.EventType = ht,
ht.OPEN = "a",
ht.CLOSE = "b",
ht.ERROR = "c",
ht.MESSAGE = "d",
Me.prototype.listen = Me.prototype.N,
Sn.prototype.listenOnce = Sn.prototype.O,
Sn.prototype.getLastError = Sn.prototype.La,
Sn.prototype.getLastErrorCode = Sn.prototype.Da,
Sn.prototype.getStatus = Sn.prototype.ba,
Sn.prototype.getResponseJson = Sn.prototype.Qa,
Sn.prototype.getResponseText = Sn.prototype.ga,
Sn.prototype.send = Sn.prototype.ea;
var fr = p.createWebChannelTransport = function() {
return new cr
}
, br = p.getStatEventTarget = function() {
return et()
}
, gr = p.ErrorCode = lt
, mr = p.EventType = st
, vr = p.Event = Ze
, yr = p.Stat = {
rb: 0,
ub: 1,
vb: 2,
Ob: 3,
Tb: 4,
Qb: 5,
Rb: 6,
Pb: 7,
Nb: 8,
Sb: 9,
PROXY: 10,
NOPROXY: 11,
Lb: 12,
Hb: 13,
Ib: 14,
Gb: 15,
Jb: 16,
Kb: 17,
nb: 18,
mb: 19,
ob: 20
}
, xr = p.FetchXmlHttpFactory = On
, Or = p.WebChannel = dt
, jr = p.XhrIo = Sn
}
).call(this, n(73))
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "c", (function() {
return c
}
)),
n.d(t, "f", (function() {
return u
}
)),
n.d(t, "e", (function() {
return p
}
)),
n.d(t, "d", (function() {
return b
}
)),
n.d(t, "b", (function() {
return g
}
)),
n.d(t, "a", (function() {
return m
}
));
var r = n(50)
, i = n(210)
, o = n(44)
, a = n(282)
, l = n(163)
, s = n(103);
function c(e, t, n) {
if (t in e) {
var r = e[t]
, i = n(r);
if ("function" == typeof i)
try {
i.prototype = i.prototype || {},
Object.defineProperties(i, {
__sentry_original__: {
enumerable: !1,
value: r
}
})
} catch (e) {}
e[t] = i
}
}
function u(e) {
return Object.keys(e).map((function(t) {
return encodeURIComponent(t) + "=" + encodeURIComponent(e[t])
}
)).join("&")
}
function d(e) {
if (Object(o.d)(e)) {
var t = e
, n = {
message: t.message,
name: t.name,
stack: t.stack
};
for (var r in t)
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
return n
}
if (Object(o.f)(e)) {
var a = e
, l = {};
l.type = a.type;
try {
l.target = Object(o.c)(a.target) ? Object(i.b)(a.target) : Object.prototype.toString.call(a.target)
} catch (e) {
l.target = "<unknown>"
}
try {
l.currentTarget = Object(o.c)(a.currentTarget) ? Object(i.b)(a.currentTarget) : Object.prototype.toString.call(a.currentTarget)
} catch (e) {
l.currentTarget = "<unknown>"
}
for (var s in "undefined" != typeof CustomEvent && Object(o.g)(e, CustomEvent) && (l.detail = a.detail),
a)
Object.prototype.hasOwnProperty.call(a, s) && (l[s] = a[s]);
return l
}
return e
}
function p(e, t, n) {
void 0 === t && (t = 3),
void 0 === n && (n = 102400);
var r = b(e, t);
return function(e) {
return function(e) {
return ~-encodeURI(e).split(/%..|./).length
}(JSON.stringify(e))
}(r) > n ? p(e, t - 1, n) : r
}
function h(t, n) {
return "domain" === n && t && "object" == typeof t && t._events ? "[Domain]" : "domainEmitter" === n ? "[DomainEmitter]" : void 0 !== e && t === e ? "[Global]" : "undefined" != typeof window && t === window ? "[Window]" : "undefined" != typeof document && t === document ? "[Document]" : Object(o.l)(t) ? "[SyntheticEvent]" : "number" == typeof t && t != t ? "[NaN]" : void 0 === t ? "[undefined]" : "function" == typeof t ? "[Function: " + Object(l.a)(t) + "]" : "symbol" == typeof t ? "[" + String(t) + "]" : "bigint" == typeof t ? "[BigInt: " + String(t) + "]" : t
}
function f(e, t, n, r) {
if (void 0 === n && (n = 1 / 0),
void 0 === r && (r = new a.a),
0 === n)
return function(e) {
var t = Object.prototype.toString.call(e);
if ("string" == typeof e)
return e;
if ("[object Object]" === t)
return "[Object]";
if ("[object Array]" === t)
return "[Array]";
var n = h(e);
return Object(o.i)(n) ? n : t
}(t);
if (null != t && "function" == typeof t.toJSON)
return t.toJSON();
var i = h(t, e);
if (Object(o.i)(i))
return i;
var l = d(t)
, s = Array.isArray(t) ? [] : {};
if (r.memoize(t))
return "[Circular ~]";
for (var c in l)
Object.prototype.hasOwnProperty.call(l, c) && (s[c] = f(c, l[c], n - 1, r));
return r.unmemoize(t),
s
}
function b(e, t) {
try {
return JSON.parse(JSON.stringify(e, (function(e, n) {
return f(e, n, t)
}
)))
} catch (e) {
return "**non-serializable**"
}
}
function g(e, t) {
void 0 === t && (t = 40);
var n = Object.keys(d(e));
if (n.sort(),
!n.length)
return "[object has no keys]";
if (n[0].length >= t)
return Object(s.d)(n[0], t);
for (var r = n.length; r > 0; r--) {
var i = n.slice(0, r).join(", ");
if (!(i.length > t))
return r === n.length ? i : Object(s.d)(i, t)
}
return ""
}
function m(e) {
var t, n;
if (Object(o.h)(e)) {
var i = e
, a = {};
try {
for (var l = Object(r.d)(Object.keys(i)), s = l.next(); !s.done; s = l.next()) {
var c = s.value;
void 0 !== i[c] && (a[c] = m(i[c]))
}
} catch (e) {
t = {
error: e
}
} finally {
try {
s && !s.done && (n = l.return) && n.call(l)
} finally {
if (t)
throw t.error
}
}
return a
}
return Array.isArray(e) ? e.map(m) : e
}
}
).call(this, n(73))
}
, , function(e, t) {
e.exports = function(e) {
return null != e && "object" == typeof e
}
}
, function(e, t, n) {
"use strict";
var r = n(240)
, i = Object.prototype.toString;
function o(e) {
return "[object Array]" === i.call(e)
}
function a(e) {
return void 0 === e
}
function l(e) {
return null !== e && "object" == typeof e
}
function s(e) {
if ("[object Object]" !== i.call(e))
return !1;
var t = Object.getPrototypeOf(e);
return null === t || t === Object.prototype
}
function c(e) {
return "[object Function]" === i.call(e)
}
function u(e, t) {
if (null != e)
if ("object" != typeof e && (e = [e]),
o(e))
for (var n = 0, r = e.length; n < r; n++)
t.call(null, e[n], n, e);
else
for (var i in e)
Object.prototype.hasOwnProperty.call(e, i) && t.call(null, e[i], i, e)
}
e.exports = {
isArray: o,
isArrayBuffer: function(e) {
return "[object ArrayBuffer]" === i.call(e)
},
isBuffer: function(e) {
return null !== e && !a(e) && null !== e.constructor && !a(e.constructor) && "function" == typeof e.constructor.isBuffer && e.constructor.isBuffer(e)
},
isFormData: function(e) {
return "undefined" != typeof FormData && e instanceof FormData
},
isArrayBufferView: function(e) {
return "undefined" != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && e.buffer instanceof ArrayBuffer
},
isString: function(e) {
return "string" == typeof e
},
isNumber: function(e) {
return "number" == typeof e
},
isObject: l,
isPlainObject: s,
isUndefined: a,
isDate: function(e) {
return "[object Date]" === i.call(e)
},
isFile: function(e) {
return "[object File]" === i.call(e)
},
isBlob: function(e) {
return "[object Blob]" === i.call(e)
},
isFunction: c,
isStream: function(e) {
return l(e) && c(e.pipe)
},
isURLSearchParams: function(e) {
return "undefined" != typeof URLSearchParams && e instanceof URLSearchParams
},
isStandardBrowserEnv: function() {
return ("undefined" == typeof navigator || "ReactNative" !== navigator.product && "NativeScript" !== navigator.product && "NS" !== navigator.product) && "undefined" != typeof window && "undefined" != typeof document
},
forEach: u,
merge: function e() {
var t = {};
function n(n, r) {
s(t[r]) && s(n) ? t[r] = e(t[r], n) : s(n) ? t[r] = e({}, n) : o(n) ? t[r] = n.slice() : t[r] = n
}
for (var r = 0, i = arguments.length; r < i; r++)
u(arguments[r], n);
return t
},
extend: function(e, t, n) {
return u(t, (function(t, i) {
e[i] = n && "function" == typeof t ? r(t, n) : t
}
)),
e
},
trim: function(e) {
return e.trim ? e.trim() : e.replace(/^\s+|\s+$/g, "")
},
stripBOM: function(e) {
return 65279 === e.charCodeAt(0) && (e = e.slice(1)),
e
}
}
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
Object.defineProperty(t, "ActionTypes", {
enumerable: !0,
get: function() {
return i.ActionTypes
}
}),
Object.defineProperty(t, "ActionCreators", {
enumerable: !0,
get: function() {
return i.ActionCreators
}
}),
Object.defineProperty(t, "parseActions", {
enumerable: !0,
get: function() {
return o.parseActions
}
}),
Object.defineProperty(t, "isHistory", {
enumerable: !0,
get: function() {
return o.isHistory
}
}),
Object.defineProperty(t, "includeAction", {
enumerable: !0,
get: function() {
return o.includeAction
}
}),
Object.defineProperty(t, "excludeAction", {
enumerable: !0,
get: function() {
return o.excludeAction
}
}),
Object.defineProperty(t, "combineFilters", {
enumerable: !0,
get: function() {
return o.combineFilters
}
}),
Object.defineProperty(t, "groupByActionTypes", {
enumerable: !0,
get: function() {
return o.groupByActionTypes
}
}),
Object.defineProperty(t, "newHistory", {
enumerable: !0,
get: function() {
return o.newHistory
}
}),
Object.defineProperty(t, "default", {
enumerable: !0,
get: function() {
return a.default
}
});
var r, i = n(238), o = n(239), a = (r = n(382)) && r.__esModule ? r : {
default: r
}
}
, , , , function(e, t, n) {
var r = n(229)
, i = "object" == typeof self && self && self.Object === Object && self
, o = r || i || Function("return this")();
e.exports = o
}
, function(e, t, n) {
"use strict";
(function(e, r) {
function i() {
return "[object process]" === Object.prototype.toString.call(void 0 !== e ? e : 0)
}
function o(e, t) {
return e.require(t)
}
function a(e) {
var t;
try {
t = o(r, e)
} catch (e) {}
try {
var n = o(r, "process").cwd;
t = o(r, n() + "/node_modules/" + e)
} catch (e) {}
return t
}
n.d(t, "b", (function() {
return i
}
)),
n.d(t, "a", (function() {
return o
}
)),
n.d(t, "c", (function() {
return a
}
))
}
).call(this, n(143), n(106)(e))
}
, function(e, t, n) {
(e.exports = n(503)).tz.load(n(504))
}
, function(e, t) {
var n;
n = function() {
return this
}();
try {
n = n || new Function("return this")()
} catch (e) {
"object" == typeof window && (n = window)
}
e.exports = n
}
, function(e, t, n) {
var r = n(107)
, i = n(359)
, o = n(360)
, a = r ? r.toStringTag : void 0;
e.exports = function(e) {
return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : a && a in Object(e) ? i(e) : o(e)
}
}
, function(e, t, n) {
var r = n(190);
e.exports = function(e) {
return null == e ? "" : r(e)
}
}
, function(e, t, n) {
"use strict";
function r(e) {
return r = "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
}
,
r(e)
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "a", (function() {
return u
}
)),
n.d(t, "b", (function() {
return p
}
));
var r = function() {
return r = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
r.apply(this, arguments)
}
, i = "undefined" == typeof window ? e : window
, o = i && i.CSPSettings && i.CSPSettings.nonce
, a = function() {
var e = i.__themeState__ || {
theme: void 0,
lastStyleElement: void 0,
registeredStyles: []
};
return e.runState || (e = r(r({}, e), {
perf: {
count: 0,
duration: 0
},
runState: {
flushTimer: 0,
mode: 0,
buffer: []
}
})),
e.registeredThemableStyles || (e = r(r({}, e), {
registeredThemableStyles: []
})),
i.__themeState__ = e,
e
}()
, l = /[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g
, s = function() {
return "undefined" != typeof performance && performance.now ? performance.now() : Date.now()
};
function c(e) {
var t = s();
e();
var n = s();
a.perf.duration += n - t
}
function u(e, t) {
void 0 === t && (t = !1),
c((function() {
var n = Array.isArray(e) ? e : b(e)
, r = a.runState
, i = r.mode
, o = r.buffer
, l = r.flushTimer;
t || 1 === i ? (o.push(n),
l || (a.runState.flushTimer = setTimeout((function() {
a.runState.flushTimer = 0,
c((function() {
var e = a.runState.buffer.slice();
a.runState.buffer = [];
var t = [].concat.apply([], e);
t.length > 0 && d(t)
}
))
}
), 0))) : d(n)
}
))
}
function d(e, t) {
a.loadStyles ? a.loadStyles(f(e).styleString, e) : function(e) {
if ("undefined" != typeof document) {
var t = document.getElementsByTagName("head")[0]
, n = document.createElement("style")
, r = f(e)
, i = r.styleString
, l = r.themable;
n.setAttribute("data-load-themed-styles", "true"),
o && n.setAttribute("nonce", o),
n.appendChild(document.createTextNode(i)),
a.perf.count++,
t.appendChild(n);
var s = document.createEvent("HTMLEvents");
s.initEvent("styleinsert", !0, !1),
s.args = {
newStyle: n
},
document.dispatchEvent(s);
var c = {
styleElement: n,
themableStyle: e
};
l ? a.registeredThemableStyles.push(c) : a.registeredStyles.push(c)
}
}(e)
}
function p(e) {
a.theme = e,
function() {
if (a.theme) {
for (var e = [], t = 0, n = a.registeredThemableStyles; t < n.length; t++) {
var r = n[t];
e.push(r.themableStyle)
}
e.length > 0 && (function(e) {
void 0 === e && (e = 3),
3 !== e && 2 !== e || (h(a.registeredStyles),
a.registeredStyles = []),
3 !== e && 1 !== e || (h(a.registeredThemableStyles),
a.registeredThemableStyles = [])
}(1),
d([].concat.apply([], e)))
}
}()
}
function h(e) {
e.forEach((function(e) {
var t = e && e.styleElement;
t && t.parentElement && t.parentElement.removeChild(t)
}
))
}
function f(e) {
var t = a.theme
, n = !1;
return {
styleString: (e || []).map((function(e) {
var r = e.theme;
if (r) {
n = !0;
var i = t ? t[r] : void 0
, o = e.defaultValue || "inherit";
return t && !i && console && !(r in t) && "undefined" != typeof DEBUG && DEBUG && console.warn('Theming value not provided for "'.concat(r, '". Falling back to "').concat(o, '".')),
i || o
}
return e.rawString
}
)).join(""),
themable: n
}
}
function b(e) {
var t = [];
if (e) {
for (var n = 0, r = void 0; r = l.exec(e); ) {
var i = r.index;
i > n && t.push({
rawString: e.substring(n, i)
}),
t.push({
theme: r[1],
defaultValue: r[2]
}),
n = l.lastIndex
}
t.push({
rawString: e.substring(n)
})
}
return t
}
}
).call(this, n(73))
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return m
}
));
var r, i = n(11), o = n(5), a = n(6), l = n(14), s = n(55), c = n(35), u = n(53), d = function() {
function e(t, n) {
var r = this;
Object(o.a)(this, e),
this._delegate = t,
this.firebase = n,
Object(c._addComponent)(t, new s.a("app-compat",(function() {
return r
}
),"PUBLIC")),
this.container = t.container
}
return Object(a.a)(e, [{
key: "automaticDataCollectionEnabled",
get: function() {
return this._delegate.automaticDataCollectionEnabled
},
set: function(e) {
this._delegate.automaticDataCollectionEnabled = e
}
}, {
key: "name",
get: function() {
return this._delegate.name
}
}, {
key: "options",
get: function() {
return this._delegate.options
}
}, {
key: "delete",
value: function() {
var e = this;
return new Promise((function(t) {
e._delegate.checkDestroyed(),
t()
}
)).then((function() {
return e.firebase.INTERNAL.removeApp(e.name),
Object(c.deleteApp)(e._delegate)
}
))
}
}, {
key: "_getService",
value: function(e) {
var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : c._DEFAULT_ENTRY_NAME;
this._delegate.checkDestroyed();
var r = this._delegate.container.getProvider(e);
return r.isInitialized() || "EXPLICIT" !== (null === (t = r.getComponent()) || void 0 === t ? void 0 : t.instantiationMode) || r.initialize(),
r.getImmediate({
identifier: n
})
}
}, {
key: "_removeServiceInstance",
value: function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : c._DEFAULT_ENTRY_NAME;
this._delegate.container.getProvider(e).clearInstance(t)
}
}, {
key: "_addComponent",
value: function(e) {
Object(c._addComponent)(this._delegate, e)
}
}, {
key: "_addOrOverwriteComponent",
value: function(e) {
Object(c._addOrOverwriteComponent)(this._delegate, e)
}
}, {
key: "toJSON",
value: function() {
return {
name: this.name,
automaticDataCollectionEnabled: this.automaticDataCollectionEnabled,
options: this.options
}
}
}]),
e
}(), p = (r = {},
Object(i.a)(r, "no-app", "No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),
Object(i.a)(r, "invalid-app-argument", "firebase.{$appName}() takes either no argument or a Firebase App instance."),
r), h = new l.b("app-compat","Firebase",p), f = function e() {
var t = function(e) {
var t = {}
, n = {
__esModule: !0,
initializeApp: function(r) {
var i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
, o = c.initializeApp(r, i);
if (Object(l.e)(t, o.name))
return t[o.name];
var a = new e(o,n);
return t[o.name] = a,
a
},
app: r,
registerVersion: c.registerVersion,
setLogLevel: c.setLogLevel,
onLog: c.onLog,
apps: null,
SDK_VERSION: c.SDK_VERSION,
INTERNAL: {
registerComponent: function(t) {
var i = t.name
, o = i.replace("-compat", "");
if (c._registerComponent(t) && "PUBLIC" === t.type) {
var a = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : r();
if ("function" != typeof e[o])
throw h.create("invalid-app-argument", {
appName: i
});
return e[o]()
};
void 0 !== t.serviceProps && Object(l.i)(a, t.serviceProps),
n[o] = a,
e.prototype[o] = function() {
for (var e = this._getService.bind(this, i), n = arguments.length, r = new Array(n), o = 0; o < n; o++)
r[o] = arguments[o];
return e.apply(this, t.multipleInstances ? r : [])
}
}
return "PUBLIC" === t.type ? n[o] : null
},
removeApp: function(e) {
delete t[e]
},
useAsService: function(e, t) {
return "serverAuth" === t ? null : t
},
modularAPIs: c
}
};
function r(e) {
if (e = e || c._DEFAULT_ENTRY_NAME,
!Object(l.e)(t, e))
throw h.create("no-app", {
appName: e
});
return t[e]
}
return n.default = n,
Object.defineProperty(n, "apps", {
get: function() {
return Object.keys(t).map((function(e) {
return t[e]
}
))
}
}),
r.App = e,
n
}(d);
return t.INTERNAL = Object.assign(Object.assign({}, t.INTERNAL), {
createFirebaseNamespace: e,
extendNamespace: function(e) {
Object(l.i)(t, e)
},
createSubscribe: l.g,
ErrorFactory: l.b,
deepExtend: l.i
}),
t
}(), b = new u.b("@firebase/app-compat");
if (Object(l.m)() && void 0 !== self.firebase) {
b.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");
var g = self.firebase.SDK_VERSION;
g && g.indexOf("LITE") >= 0 && b.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")
}
var m = f;
Object(c.registerVersion)("@firebase/app-compat", "0.1.13", undefined)
}
, function(e, t, n) {
var r = n(231)
, i = n(117)
, o = n(108);
e.exports = function(e, t, n) {
var a = null == e ? 0 : e.length;
return a ? (n && "number" != typeof n && i(e, t, n) ? (t = 0,
n = a) : (t = null == t ? 0 : o(t),
n = void 0 === n ? a : o(n)),
r(e, t, n)) : []
}
}
, function(e, t, n) {
"use strict";
e.exports = n(496)
}
, , , function(e, t, n) {
var r = n(192)
, i = n(193);
e.exports = function(e) {
return null != e && i(e.length) && !r(e)
}
}
, , , function(e, t, n) {
(function(t) {
e.exports = function() {
var e = e || function(e, r) {
var i;
if ("undefined" != typeof window && window.crypto && (i = window.crypto),
"undefined" != typeof self && self.crypto && (i = self.crypto),
"undefined" != typeof globalThis && globalThis.crypto && (i = globalThis.crypto),
!i && "undefined" != typeof window && window.msCrypto && (i = window.msCrypto),
!i && void 0 !== t && t.crypto && (i = t.crypto),
!i)
try {
i = n(539)
} catch (e) {}
var o = function() {
if (i) {
if ("function" == typeof i.getRandomValues)
try {
return i.getRandomValues(new Uint32Array(1))[0]
} catch (e) {}
if ("function" == typeof i.randomBytes)
try {
return i.randomBytes(4).readInt32LE()
} catch (e) {}
}
throw new Error("Native crypto module could not be used to get secure random number.")
}
, a = Object.create || function() {
function e() {}
return function(t) {
var n;
return e.prototype = t,
n = new e,
e.prototype = null,
n
}
}()
, l = {}
, s = l.lib = {}
, c = s.Base = {
extend: function(e) {
var t = a(this);
return e && t.mixIn(e),
t.hasOwnProperty("init") && this.init !== t.init || (t.init = function() {
t.$super.init.apply(this, arguments)
}
),
t.init.prototype = t,
t.$super = this,
t
},
create: function() {
var e = this.extend();
return e.init.apply(e, arguments),
e
},
init: function() {},
mixIn: function(e) {
for (var t in e)
e.hasOwnProperty(t) && (this[t] = e[t]);
e.hasOwnProperty("toString") && (this.toString = e.toString)
},
clone: function() {
return this.init.prototype.extend(this)
}
}
, u = s.WordArray = c.extend({
init: function(e, t) {
e = this.words = e || [],
this.sigBytes = null != t ? t : 4 * e.length
},
toString: function(e) {
return (e || p).stringify(this)
},
concat: function(e) {
var t = this.words
, n = e.words
, r = this.sigBytes
, i = e.sigBytes;
if (this.clamp(),
r % 4)
for (var o = 0; o < i; o++) {
var a = n[o >>> 2] >>> 24 - o % 4 * 8 & 255;
t[r + o >>> 2] |= a << 24 - (r + o) % 4 * 8
}
else
for (var l = 0; l < i; l += 4)
t[r + l >>> 2] = n[l >>> 2];
return this.sigBytes += i,
this
},
clamp: function() {
var t = this.words
, n = this.sigBytes;
t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8,
t.length = e.ceil(n / 4)
},
clone: function() {
var e = c.clone.call(this);
return e.words = this.words.slice(0),
e
},
random: function(e) {
for (var t = [], n = 0; n < e; n += 4)
t.push(o());
return new u.init(t,e)
}
})
, d = l.enc = {}
, p = d.Hex = {
stringify: function(e) {
for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
var o = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
r.push((o >>> 4).toString(16)),
r.push((15 & o).toString(16))
}
return r.join("")
},
parse: function(e) {
for (var t = e.length, n = [], r = 0; r < t; r += 2)
n[r >>> 3] |= parseInt(e.substr(r, 2), 16) << 24 - r % 8 * 4;
return new u.init(n,t / 2)
}
}
, h = d.Latin1 = {
stringify: function(e) {
for (var t = e.words, n = e.sigBytes, r = [], i = 0; i < n; i++) {
var o = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
r.push(String.fromCharCode(o))
}
return r.join("")
},
parse: function(e) {
for (var t = e.length, n = [], r = 0; r < t; r++)
n[r >>> 2] |= (255 & e.charCodeAt(r)) << 24 - r % 4 * 8;
return new u.init(n,t)
}
}
, f = d.Utf8 = {
stringify: function(e) {
try {
return decodeURIComponent(escape(h.stringify(e)))
} catch (e) {
throw new Error("Malformed UTF-8 data")
}
},
parse: function(e) {
return h.parse(unescape(encodeURIComponent(e)))
}
}
, b = s.BufferedBlockAlgorithm = c.extend({
reset: function() {
this._data = new u.init,
this._nDataBytes = 0
},
_append: function(e) {
"string" == typeof e && (e = f.parse(e)),
this._data.concat(e),
this._nDataBytes += e.sigBytes
},
_process: function(t) {
var n, r = this._data, i = r.words, o = r.sigBytes, a = this.blockSize, l = o / (4 * a), s = (l = t ? e.ceil(l) : e.max((0 | l) - this._minBufferSize, 0)) * a, c = e.min(4 * s, o);
if (s) {
for (var d = 0; d < s; d += a)
this._doProcessBlock(i, d);
n = i.splice(0, s),
r.sigBytes -= c
}
return new u.init(n,c)
},
clone: function() {
var e = c.clone.call(this);
return e._data = this._data.clone(),
e
},
_minBufferSize: 0
})
, g = (s.Hasher = b.extend({
cfg: c.extend(),
init: function(e) {
this.cfg = this.cfg.extend(e),
this.reset()
},
reset: function() {
b.reset.call(this),
this._doReset()
},
update: function(e) {
return this._append(e),
this._process(),
this
},
finalize: function(e) {
return e && this._append(e),
this._doFinalize()
},
blockSize: 16,
_createHelper: function(e) {
return function(t, n) {
return new e.init(n).finalize(t)
}
},
_createHmacHelper: function(e) {
return function(t, n) {
return new g.HMAC.init(e,n).finalize(t)
}
}
}),
l.algo = {});
return l
}(Math);
return e
}()
}
).call(this, n(73))
}
, function(e, t, n) {
"use strict";
function r(e, t) {
return r = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t,
e
}
,
r(e, t)
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
));
var r = n(127);
function i(e, t) {
if (e) {
if ("string" == typeof e)
return Object(r.a)(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
return "Object" === n && e.constructor && (n = e.constructor.name),
"Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Object(r.a)(e, t) : void 0
}
}
}
, function(e, t, n) {
"use strict";
var r = n(100)
, i = {
childContextTypes: !0,
contextType: !0,
contextTypes: !0,
defaultProps: !0,
displayName: !0,
getDefaultProps: !0,
getDerivedStateFromError: !0,
getDerivedStateFromProps: !0,
mixins: !0,
propTypes: !0,
type: !0
}
, o = {
name: !0,
length: !0,
prototype: !0,
caller: !0,
callee: !0,
arguments: !0,
arity: !0
}
, a = {
$$typeof: !0,
compare: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0,
type: !0
}
, l = {};
function s(e) {
return r.isMemo(e) ? a : l[e.$$typeof] || i
}
l[r.ForwardRef] = {
$$typeof: !0,
render: !0,
defaultProps: !0,
displayName: !0,
propTypes: !0
},
l[r.Memo] = a;
var c = Object.defineProperty
, u = Object.getOwnPropertyNames
, d = Object.getOwnPropertySymbols
, p = Object.getOwnPropertyDescriptor
, h = Object.getPrototypeOf
, f = Object.prototype;
e.exports = function e(t, n, r) {
if ("string" != typeof n) {
if (f) {
var i = h(n);
i && i !== f && e(t, i, r)
}
var a = u(n);
d && (a = a.concat(d(n)));
for (var l = s(t), b = s(n), g = 0; g < a.length; ++g) {
var m = a[g];
if (!(o[m] || r && r[m] || b && b[m] || l && l[m])) {
var v = p(n, m);
try {
c(t, m, v)
} catch (e) {}
}
}
}
return t
}
}
, function(e, t, n) {
var r;
!function() {
"use strict";
var n = {}.hasOwnProperty;
function i() {
for (var e = [], t = 0; t < arguments.length; t++) {
var r = arguments[t];
if (r) {
var o = typeof r;
if ("string" === o || "number" === o)
e.push(r);
else if (Array.isArray(r)) {
if (r.length) {
var a = i.apply(null, r);
a && e.push(a)
}
} else if ("object" === o)
if (r.toString === Object.prototype.toString)
for (var l in r)
n.call(r, l) && r[l] && e.push(l);
else
e.push(r.toString())
}
}
return e.join(" ")
}
e.exports ? (i.default = i,
e.exports = i) : void 0 === (r = function() {
return i
}
.apply(t, [])) || (e.exports = r)
}()
}
, function(e, t, n) {
(function(e) {
e.exports = function() {
"use strict";
var t, n;
function r() {
return t.apply(null, arguments)
}
function i(e) {
return e instanceof Array || "[object Array]" === Object.prototype.toString.call(e)
}
function o(e) {
return null != e && "[object Object]" === Object.prototype.toString.call(e)
}
function a(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}
function l(e) {
if (Object.getOwnPropertyNames)
return 0 === Object.getOwnPropertyNames(e).length;
var t;
for (t in e)
if (a(e, t))
return !1;
return !0
}
function s(e) {
return void 0 === e
}
function c(e) {
return "number" == typeof e || "[object Number]" === Object.prototype.toString.call(e)
}
function u(e) {
return e instanceof Date || "[object Date]" === Object.prototype.toString.call(e)
}
function d(e, t) {
var n, r = [];
for (n = 0; n < e.length; ++n)
r.push(t(e[n], n));
return r
}
function p(e, t) {
for (var n in t)
a(t, n) && (e[n] = t[n]);
return a(t, "toString") && (e.toString = t.toString),
a(t, "valueOf") && (e.valueOf = t.valueOf),
e
}
function h(e, t, n, r) {
return Dt(e, t, n, r, !0).utc()
}
function f(e) {
return null == e._pf && (e._pf = {
empty: !1,
unusedTokens: [],
unusedInput: [],
overflow: -2,
charsLeftOver: 0,
nullInput: !1,
invalidEra: null,
invalidMonth: null,
invalidFormat: !1,
userInvalidated: !1,
iso: !1,
parsedDateParts: [],
era: null,
meridiem: null,
rfc2822: !1,
weekdayMismatch: !1
}),
e._pf
}
function b(e) {
if (null == e._isValid) {
var t = f(e)
, r = n.call(t.parsedDateParts, (function(e) {
return null != e
}
))
, i = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidEra && !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t.nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t.meridiem && r);
if (e._strict && (i = i && 0 === t.charsLeftOver && 0 === t.unusedTokens.length && void 0 === t.bigHour),
null != Object.isFrozen && Object.isFrozen(e))
return i;
e._isValid = i
}
return e._isValid
}
function g(e) {
var t = h(NaN);
return null != e ? p(f(t), e) : f(t).userInvalidated = !0,
t
}
n = Array.prototype.some ? Array.prototype.some : function(e) {
var t, n = Object(this), r = n.length >>> 0;
for (t = 0; t < r; t++)
if (t in n && e.call(this, n[t], t, n))
return !0;
return !1
}
;
var m = r.momentProperties = []
, v = !1;
function y(e, t) {
var n, r, i;
if (s(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject),
s(t._i) || (e._i = t._i),
s(t._f) || (e._f = t._f),
s(t._l) || (e._l = t._l),
s(t._strict) || (e._strict = t._strict),
s(t._tzm) || (e._tzm = t._tzm),
s(t._isUTC) || (e._isUTC = t._isUTC),
s(t._offset) || (e._offset = t._offset),
s(t._pf) || (e._pf = f(t)),
s(t._locale) || (e._locale = t._locale),
m.length > 0)
for (n = 0; n < m.length; n++)
s(i = t[r = m[n]]) || (e[r] = i);
return e
}
function x(e) {
y(this, e),
this._d = new Date(null != e._d ? e._d.getTime() : NaN),
this.isValid() || (this._d = new Date(NaN)),
!1 === v && (v = !0,
r.updateOffset(this),
v = !1)
}
function O(e) {
return e instanceof x || null != e && null != e._isAMomentObject
}
function j(e) {
!1 === r.suppressDeprecationWarnings && "undefined" != typeof console && console.warn && console.warn("Deprecation warning: " + e)
}
function k(e, t) {
var n = !0;
return p((function() {
if (null != r.deprecationHandler && r.deprecationHandler(null, e),
n) {
var i, o, l, s = [];
for (o = 0; o < arguments.length; o++) {
if (i = "",
"object" == typeof arguments[o]) {
for (l in i += "\n[" + o + "] ",
arguments[0])
a(arguments[0], l) && (i += l + ": " + arguments[0][l] + ", ");
i = i.slice(0, -2)
} else
i = arguments[o];
s.push(i)
}
j(e + "\nArguments: " + Array.prototype.slice.call(s).join("") + "\n" + (new Error).stack),
n = !1
}
return t.apply(this, arguments)
}
), t)
}
var w, C = {};
function _(e, t) {
null != r.deprecationHandler && r.deprecationHandler(e, t),
C[e] || (j(t),
C[e] = !0)
}
function M(e) {
return "undefined" != typeof Function && e instanceof Function || "[object Function]" === Object.prototype.toString.call(e)
}
function S(e, t) {
var n, r = p({}, e);
for (n in t)
a(t, n) && (o(e[n]) && o(t[n]) ? (r[n] = {},
p(r[n], e[n]),
p(r[n], t[n])) : null != t[n] ? r[n] = t[n] : delete r[n]);
for (n in e)
a(e, n) && !a(t, n) && o(e[n]) && (r[n] = p({}, r[n]));
return r
}
function A(e) {
null != e && this.set(e)
}
r.suppressDeprecationWarnings = !1,
r.deprecationHandler = null,
w = Object.keys ? Object.keys : function(e) {
var t, n = [];
for (t in e)
a(e, t) && n.push(t);
return n
}
;
function T(e, t, n) {
var r = "" + Math.abs(e)
, i = t - r.length;
return (e >= 0 ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, i)).toString().substr(1) + r
}
var E = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g
, I = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g
, N = {}
, z = {};
function D(e, t, n, r) {
var i = r;
"string" == typeof r && (i = function() {
return this[r]()
}
),
e && (z[e] = i),
t && (z[t[0]] = function() {
return T(i.apply(this, arguments), t[1], t[2])
}
),
n && (z[n] = function() {
return this.localeData().ordinal(i.apply(this, arguments), e)
}
)
}
function L(e) {
return e.match(/\[[\s\S]/) ? e.replace(/^\[|\]$/g, "") : e.replace(/\\/g, "")
}
function R(e, t) {
return e.isValid() ? (t = P(t, e.localeData()),
N[t] = N[t] || function(e) {
var t, n, r = e.match(E);
for (t = 0,
n = r.length; t < n; t++)
z[r[t]] ? r[t] = z[r[t]] : r[t] = L(r[t]);
return function(t) {
var i, o = "";
for (i = 0; i < n; i++)
o += M(r[i]) ? r[i].call(t, e) : r[i];
return o
}
}(t),
N[t](e)) : e.localeData().invalidDate()
}
function P(e, t) {
var n = 5;
function r(e) {
return t.longDateFormat(e) || e
}
for (I.lastIndex = 0; n >= 0 && I.test(e); )
e = e.replace(I, r),
I.lastIndex = 0,
n -= 1;
return e
}
var B = {};
function F(e, t) {
var n = e.toLowerCase();
B[n] = B[n + "s"] = B[t] = e
}
function V(e) {
return "string" == typeof e ? B[e] || B[e.toLowerCase()] : void 0
}
function W(e) {
var t, n, r = {};
for (n in e)
a(e, n) && (t = V(n)) && (r[t] = e[n]);
return r
}
var q = {};
function H(e, t) {
q[e] = t
}
function U(e) {
return e % 4 == 0 && e % 100 != 0 || e % 400 == 0
}
function X(e) {
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e)
}
function G(e) {
var t = +e
, n = 0;
return 0 !== t && isFinite(t) && (n = X(t)),
n
}
function K(e, t) {
return function(n) {
return null != n ? (Q(this, e, n),
r.updateOffset(this, t),
this) : Y(this, e)
}
}
function Y(e, t) {
return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN
}
function Q(e, t, n) {
e.isValid() && !isNaN(n) && ("FullYear" === t && U(e.year()) && 1 === e.month() && 29 === e.date() ? (n = G(n),
e._d["set" + (e._isUTC ? "UTC" : "") + t](n, e.month(), Ee(n, e.month()))) : e._d["set" + (e._isUTC ? "UTC" : "") + t](n))
}
var J, Z = /\d/, $ = /\d\d/, ee = /\d{3}/, te = /\d{4}/, ne = /[+-]?\d{6}/, re = /\d\d?/, ie = /\d\d\d\d?/, oe = /\d\d\d\d\d\d?/, ae = /\d{1,3}/, le = /\d{1,4}/, se = /[+-]?\d{1,6}/, ce = /\d+/, ue = /[+-]?\d+/, de = /Z|[+-]\d\d:?\d\d/gi, pe = /Z|[+-]\d\d(?::?\d\d)?/gi, he = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
function fe(e, t, n) {
J[e] = M(t) ? t : function(e, r) {
return e && n ? n : t
}
}
function be(e, t) {
return a(J, e) ? J[e](t._strict, t._locale) : new RegExp(function(e) {
return ge(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, (function(e, t, n, r, i) {
return t || n || r || i
}
)))
}(e))
}
function ge(e) {
return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
}
J = {};
var me = {};
function ve(e, t) {
var n, r = t;
for ("string" == typeof e && (e = [e]),
c(t) && (r = function(e, n) {
n[t] = G(e)
}
),
n = 0; n < e.length; n++)
me[e[n]] = r
}
function ye(e, t) {
ve(e, (function(e, n, r, i) {
r._w = r._w || {},
t(e, r._w, r, i)
}
))
}
function xe(e, t, n) {
null != t && a(me, e) && me[e](t, n._a, n, e)
}
var Oe, je = 0, ke = 1, we = 2, Ce = 3, _e = 4, Me = 5, Se = 6, Ae = 7, Te = 8;
function Ee(e, t) {
if (isNaN(e) || isNaN(t))
return NaN;
var n = function(e, t) {
return (e % t + t) % t
}(t, 12);
return e += (t - n) / 12,
1 === n ? U(e) ? 29 : 28 : 31 - n % 7 % 2
}
Oe = Array.prototype.indexOf ? Array.prototype.indexOf : function(e) {
var t;
for (t = 0; t < this.length; ++t)
if (this[t] === e)
return t;
return -1
}
,
D("M", ["MM", 2], "Mo", (function() {
return this.month() + 1
}
)),
D("MMM", 0, 0, (function(e) {
return this.localeData().monthsShort(this, e)
}
)),
D("MMMM", 0, 0, (function(e) {
return this.localeData().months(this, e)
}
)),
F("month", "M"),
H("month", 8),
fe("M", re),
fe("MM", re, $),
fe("MMM", (function(e, t) {
return t.monthsShortRegex(e)
}
)),
fe("MMMM", (function(e, t) {
return t.monthsRegex(e)
}
)),
ve(["M", "MM"], (function(e, t) {
t[ke] = G(e) - 1
}
)),
ve(["MMM", "MMMM"], (function(e, t, n, r) {
var i = n._locale.monthsParse(e, r, n._strict);
null != i ? t[ke] = i : f(n).invalidMonth = e
}
));
var Ie = "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
, Ne = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_")
, ze = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/
, De = he
, Le = he;
function Re(e, t, n) {
var r, i, o, a = e.toLocaleLowerCase();
if (!this._monthsParse)
for (this._monthsParse = [],
this._longMonthsParse = [],
this._shortMonthsParse = [],
r = 0; r < 12; ++r)
o = h([2e3, r]),
this._shortMonthsParse[r] = this.monthsShort(o, "").toLocaleLowerCase(),
this._longMonthsParse[r] = this.months(o, "").toLocaleLowerCase();
return n ? "MMM" === t ? -1 !== (i = Oe.call(this._shortMonthsParse, a)) ? i : null : -1 !== (i = Oe.call(this._longMonthsParse, a)) ? i : null : "MMM" === t ? -1 !== (i = Oe.call(this._shortMonthsParse, a)) || -1 !== (i = Oe.call(this._longMonthsParse, a)) ? i : null : -1 !== (i = Oe.call(this._longMonthsParse, a)) || -1 !== (i = Oe.call(this._shortMonthsParse, a)) ? i : null
}
function Pe(e, t) {
var n;
if (!e.isValid())
return e;
if ("string" == typeof t)
if (/^\d+$/.test(t))
t = G(t);
else if (!c(t = e.localeData().monthsParse(t)))
return e;
return n = Math.min(e.date(), Ee(e.year(), t)),
e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, n),
e
}
function Be(e) {
return null != e ? (Pe(this, e),
r.updateOffset(this, !0),
this) : Y(this, "Month")
}
function Fe() {
function e(e, t) {
return t.length - e.length
}
var t, n, r = [], i = [], o = [];
for (t = 0; t < 12; t++)
n = h([2e3, t]),
r.push(this.monthsShort(n, "")),
i.push(this.months(n, "")),
o.push(this.months(n, "")),
o.push(this.monthsShort(n, ""));
for (r.sort(e),
i.sort(e),
o.sort(e),
t = 0; t < 12; t++)
r[t] = ge(r[t]),
i[t] = ge(i[t]);
for (t = 0; t < 24; t++)
o[t] = ge(o[t]);
this._monthsRegex = new RegExp("^(" + o.join("|") + ")","i"),
this._monthsShortRegex = this._monthsRegex,
this._monthsStrictRegex = new RegExp("^(" + i.join("|") + ")","i"),
this._monthsShortStrictRegex = new RegExp("^(" + r.join("|") + ")","i")
}
function Ve(e) {
return U(e) ? 366 : 365
}
D("Y", 0, 0, (function() {
var e = this.year();
return e <= 9999 ? T(e, 4) : "+" + e
}
)),
D(0, ["YY", 2], 0, (function() {
return this.year() % 100
}
)),
D(0, ["YYYY", 4], 0, "year"),
D(0, ["YYYYY", 5], 0, "year"),
D(0, ["YYYYYY", 6, !0], 0, "year"),
F("year", "y"),
H("year", 1),
fe("Y", ue),
fe("YY", re, $),
fe("YYYY", le, te),
fe("YYYYY", se, ne),
fe("YYYYYY", se, ne),
ve(["YYYYY", "YYYYYY"], je),
ve("YYYY", (function(e, t) {
t[je] = 2 === e.length ? r.parseTwoDigitYear(e) : G(e)
}
)),
ve("YY", (function(e, t) {
t[je] = r.parseTwoDigitYear(e)
}
)),
ve("Y", (function(e, t) {
t[je] = parseInt(e, 10)
}
)),
r.parseTwoDigitYear = function(e) {
return G(e) + (G(e) > 68 ? 1900 : 2e3)
}
;
var We = K("FullYear", !0);
function qe(e, t, n, r, i, o, a) {
var l;
return e < 100 && e >= 0 ? (l = new Date(e + 400,t,n,r,i,o,a),
isFinite(l.getFullYear()) && l.setFullYear(e)) : l = new Date(e,t,n,r,i,o,a),
l
}
function He(e) {
var t, n;
return e < 100 && e >= 0 ? ((n = Array.prototype.slice.call(arguments))[0] = e + 400,
t = new Date(Date.UTC.apply(null, n)),
isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e)) : t = new Date(Date.UTC.apply(null, arguments)),
t
}
function Ue(e, t, n) {
var r = 7 + t - n;
return -(7 + He(e, 0, r).getUTCDay() - t) % 7 + r - 1
}
function Xe(e, t, n, r, i) {
var o, a, l = 1 + 7 * (t - 1) + (7 + n - r) % 7 + Ue(e, r, i);
return l <= 0 ? a = Ve(o = e - 1) + l : l > Ve(e) ? (o = e + 1,
a = l - Ve(e)) : (o = e,
a = l),
{
year: o,
dayOfYear: a
}
}
function Ge(e, t, n) {
var r, i, o = Ue(e.year(), t, n), a = Math.floor((e.dayOfYear() - o - 1) / 7) + 1;
return a < 1 ? r = a + Ke(i = e.year() - 1, t, n) : a > Ke(e.year(), t, n) ? (r = a - Ke(e.year(), t, n),
i = e.year() + 1) : (i = e.year(),
r = a),
{
week: r,
year: i
}
}
function Ke(e, t, n) {
var r = Ue(e, t, n)
, i = Ue(e + 1, t, n);
return (Ve(e) - r + i) / 7
}
D("w", ["ww", 2], "wo", "week"),
D("W", ["WW", 2], "Wo", "isoWeek"),
F("week", "w"),
F("isoWeek", "W"),
H("week", 5),
H("isoWeek", 5),
fe("w", re),
fe("ww", re, $),
fe("W", re),
fe("WW", re, $),
ye(["w", "ww", "W", "WW"], (function(e, t, n, r) {
t[r.substr(0, 1)] = G(e)
}
));
function Ye(e, t) {
return e.slice(t, 7).concat(e.slice(0, t))
}
D("d", 0, "do", "day"),
D("dd", 0, 0, (function(e) {
return this.localeData().weekdaysMin(this, e)
}
)),
D("ddd", 0, 0, (function(e) {
return this.localeData().weekdaysShort(this, e)
}
)),
D("dddd", 0, 0, (function(e) {
return this.localeData().weekdays(this, e)
}
)),
D("e", 0, 0, "weekday"),
D("E", 0, 0, "isoWeekday"),
F("day", "d"),
F("weekday", "e"),
F("isoWeekday", "E"),
H("day", 11),
H("weekday", 11),
H("isoWeekday", 11),
fe("d", re),
fe("e", re),
fe("E", re),
fe("dd", (function(e, t) {
return t.weekdaysMinRegex(e)
}
)),
fe("ddd", (function(e, t) {
return t.weekdaysShortRegex(e)
}
)),
fe("dddd", (function(e, t) {
return t.weekdaysRegex(e)
}
)),
ye(["dd", "ddd", "dddd"], (function(e, t, n, r) {
var i = n._locale.weekdaysParse(e, r, n._strict);
null != i ? t.d = i : f(n).invalidWeekday = e
}
)),
ye(["d", "e", "E"], (function(e, t, n, r) {
t[r] = G(e)
}
));
var Qe = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_")
, Je = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_")
, Ze = "Su_Mo_Tu_We_Th_Fr_Sa".split("_")
, $e = he
, et = he
, tt = he;
function nt(e, t, n) {
var r, i, o, a = e.toLocaleLowerCase();
if (!this._weekdaysParse)
for (this._weekdaysParse = [],
this._shortWeekdaysParse = [],
this._minWeekdaysParse = [],
r = 0; r < 7; ++r)
o = h([2e3, 1]).day(r),
this._minWeekdaysParse[r] = this.weekdaysMin(o, "").toLocaleLowerCase(),
this._shortWeekdaysParse[r] = this.weekdaysShort(o, "").toLocaleLowerCase(),
this._weekdaysParse[r] = this.weekdays(o, "").toLocaleLowerCase();
return n ? "dddd" === t ? -1 !== (i = Oe.call(this._weekdaysParse, a)) ? i : null : "ddd" === t ? -1 !== (i = Oe.call(this._shortWeekdaysParse, a)) ? i : null : -1 !== (i = Oe.call(this._minWeekdaysParse, a)) ? i : null : "dddd" === t ? -1 !== (i = Oe.call(this._weekdaysParse, a)) || -1 !== (i = Oe.call(this._shortWeekdaysParse, a)) || -1 !== (i = Oe.call(this._minWeekdaysParse, a)) ? i : null : "ddd" === t ? -1 !== (i = Oe.call(this._shortWeekdaysParse, a)) || -1 !== (i = Oe.call(this._weekdaysParse, a)) || -1 !== (i = Oe.call(this._minWeekdaysParse, a)) ? i : null : -1 !== (i = Oe.call(this._minWeekdaysParse, a)) || -1 !== (i = Oe.call(this._weekdaysParse, a)) || -1 !== (i = Oe.call(this._shortWeekdaysParse, a)) ? i : null
}
function rt() {
function e(e, t) {
return t.length - e.length
}
var t, n, r, i, o, a = [], l = [], s = [], c = [];
for (t = 0; t < 7; t++)
n = h([2e3, 1]).day(t),
r = ge(this.weekdaysMin(n, "")),
i = ge(this.weekdaysShort(n, "")),
o = ge(this.weekdays(n, "")),
a.push(r),
l.push(i),
s.push(o),
c.push(r),
c.push(i),
c.push(o);
a.sort(e),
l.sort(e),
s.sort(e),
c.sort(e),
this._weekdaysRegex = new RegExp("^(" + c.join("|") + ")","i"),
this._weekdaysShortRegex = this._weekdaysRegex,
this._weekdaysMinRegex = this._weekdaysRegex,
this._weekdaysStrictRegex = new RegExp("^(" + s.join("|") + ")","i"),
this._weekdaysShortStrictRegex = new RegExp("^(" + l.join("|") + ")","i"),
this._weekdaysMinStrictRegex = new RegExp("^(" + a.join("|") + ")","i")
}
function it() {
return this.hours() % 12 || 12
}
function ot(e, t) {
D(e, 0, 0, (function() {
return this.localeData().meridiem(this.hours(), this.minutes(), t)
}
))
}
function at(e, t) {
return t._meridiemParse
}
D("H", ["HH", 2], 0, "hour"),
D("h", ["hh", 2], 0, it),
D("k", ["kk", 2], 0, (function() {
return this.hours() || 24
}
)),
D("hmm", 0, 0, (function() {
return "" + it.apply(this) + T(this.minutes(), 2)
}
)),
D("hmmss", 0, 0, (function() {
return "" + it.apply(this) + T(this.minutes(), 2) + T(this.seconds(), 2)
}
)),
D("Hmm", 0, 0, (function() {
return "" + this.hours() + T(this.minutes(), 2)
}
)),
D("Hmmss", 0, 0, (function() {
return "" + this.hours() + T(this.minutes(), 2) + T(this.seconds(), 2)
}
)),
ot("a", !0),
ot("A", !1),
F("hour", "h"),
H("hour", 13),
fe("a", at),
fe("A", at),
fe("H", re),
fe("h", re),
fe("k", re),
fe("HH", re, $),
fe("hh", re, $),
fe("kk", re, $),
fe("hmm", ie),
fe("hmmss", oe),
fe("Hmm", ie),
fe("Hmmss", oe),
ve(["H", "HH"], Ce),
ve(["k", "kk"], (function(e, t, n) {
var r = G(e);
t[Ce] = 24 === r ? 0 : r
}
)),
ve(["a", "A"], (function(e, t, n) {
n._isPm = n._locale.isPM(e),
n._meridiem = e
}
)),
ve(["h", "hh"], (function(e, t, n) {
t[Ce] = G(e),
f(n).bigHour = !0
}
)),
ve("hmm", (function(e, t, n) {
var r = e.length - 2;
t[Ce] = G(e.substr(0, r)),
t[_e] = G(e.substr(r)),
f(n).bigHour = !0
}
)),
ve("hmmss", (function(e, t, n) {
var r = e.length - 4
, i = e.length - 2;
t[Ce] = G(e.substr(0, r)),
t[_e] = G(e.substr(r, 2)),
t[Me] = G(e.substr(i)),
f(n).bigHour = !0
}
)),
ve("Hmm", (function(e, t, n) {
var r = e.length - 2;
t[Ce] = G(e.substr(0, r)),
t[_e] = G(e.substr(r))
}
)),
ve("Hmmss", (function(e, t, n) {
var r = e.length - 4
, i = e.length - 2;
t[Ce] = G(e.substr(0, r)),
t[_e] = G(e.substr(r, 2)),
t[Me] = G(e.substr(i))
}
));
var lt = K("Hours", !0);
var st, ct = {
calendar: {
sameDay: "[Today at] LT",
nextDay: "[Tomorrow at] LT",
nextWeek: "dddd [at] LT",
lastDay: "[Yesterday at] LT",
lastWeek: "[Last] dddd [at] LT",
sameElse: "L"
},
longDateFormat: {
LTS: "h:mm:ss A",
LT: "h:mm A",
L: "MM/DD/YYYY",
LL: "MMMM D, YYYY",
LLL: "MMMM D, YYYY h:mm A",
LLLL: "dddd, MMMM D, YYYY h:mm A"
},
invalidDate: "Invalid date",
ordinal: "%d",
dayOfMonthOrdinalParse: /\d{1,2}/,
relativeTime: {
future: "in %s",
past: "%s ago",
s: "a few seconds",
ss: "%d seconds",
m: "a minute",
mm: "%d minutes",
h: "an hour",
hh: "%d hours",
d: "a day",
dd: "%d days",
w: "a week",
ww: "%d weeks",
M: "a month",
MM: "%d months",
y: "a year",
yy: "%d years"
},
months: Ie,
monthsShort: Ne,
week: {
dow: 0,
doy: 6
},
weekdays: Qe,
weekdaysMin: Ze,
weekdaysShort: Je,
meridiemParse: /[ap]\.?m?\.?/i
}, ut = {}, dt = {};
function pt(e, t) {
var n, r = Math.min(e.length, t.length);
for (n = 0; n < r; n += 1)
if (e[n] !== t[n])
return n;
return r
}
function ht(e) {
return e ? e.toLowerCase().replace("_", "-") : e
}
function ft(t) {
var n = null;
if (void 0 === ut[t] && void 0 !== e && e && e.exports)
try {
n = st._abbr,
function() {
var e = new Error("Cannot find module 'undefined'");
throw e.code = "MODULE_NOT_FOUND",
e
}(),
bt(n)
} catch (e) {
ut[t] = null
}
return ut[t]
}
function bt(e, t) {
var n;
return e && ((n = s(t) ? mt(e) : gt(e, t)) ? st = n : "undefined" != typeof console && console.warn && console.warn("Locale " + e + " not found. Did you forget to load it?")),
st._abbr
}
function gt(e, t) {
if (null !== t) {
var n, r = ct;
if (t.abbr = e,
null != ut[e])
_("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),
r = ut[e]._config;
else if (null != t.parentLocale)
if (null != ut[t.parentLocale])
r = ut[t.parentLocale]._config;
else {
if (null == (n = ft(t.parentLocale)))
return dt[t.parentLocale] || (dt[t.parentLocale] = []),
dt[t.parentLocale].push({
name: e,
config: t
}),
null;
r = n._config
}
return ut[e] = new A(S(r, t)),
dt[e] && dt[e].forEach((function(e) {
gt(e.name, e.config)
}
)),
bt(e),
ut[e]
}
return delete ut[e],
null
}
function mt(e) {
var t;
if (e && e._locale && e._locale._abbr && (e = e._locale._abbr),
!e)
return st;
if (!i(e)) {
if (t = ft(e))
return t;
e = [e]
}
return function(e) {
for (var t, n, r, i, o = 0; o < e.length; ) {
for (t = (i = ht(e[o]).split("-")).length,
n = (n = ht(e[o + 1])) ? n.split("-") : null; t > 0; ) {
if (r = ft(i.slice(0, t).join("-")))
return r;
if (n && n.length >= t && pt(i, n) >= t - 1)
break;
t--
}
o++
}
return st
}(e)
}
function vt(e) {
var t, n = e._a;
return n && -2 === f(e).overflow && (t = n[ke] < 0 || n[ke] > 11 ? ke : n[we] < 1 || n[we] > Ee(n[je], n[ke]) ? we : n[Ce] < 0 || n[Ce] > 24 || 24 === n[Ce] && (0 !== n[_e] || 0 !== n[Me] || 0 !== n[Se]) ? Ce : n[_e] < 0 || n[_e] > 59 ? _e : n[Me] < 0 || n[Me] > 59 ? Me : n[Se] < 0 || n[Se] > 999 ? Se : -1,
f(e)._overflowDayOfYear && (t < je || t > we) && (t = we),
f(e)._overflowWeeks && -1 === t && (t = Ae),
f(e)._overflowWeekday && -1 === t && (t = Te),
f(e).overflow = t),
e
}
var yt = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/
, xt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/
, Ot = /Z|[+-]\d\d(?::?\d\d)?/
, jt = [["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/], ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/], ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/], ["GGGG-[W]WW", /\d{4}-W\d\d/, !1], ["YYYY-DDD", /\d{4}-\d{3}/], ["YYYY-MM", /\d{4}-\d\d/, !1], ["YYYYYYMMDD", /[+-]\d{10}/], ["YYYYMMDD", /\d{8}/], ["GGGG[W]WWE", /\d{4}W\d{3}/], ["GGGG[W]WW", /\d{4}W\d{2}/, !1], ["YYYYDDD", /\d{7}/], ["YYYYMM", /\d{6}/, !1], ["YYYY", /\d{4}/, !1]]
, kt = [["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/], ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/], ["HH:mm:ss", /\d\d:\d\d:\d\d/], ["HH:mm", /\d\d:\d\d/], ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/], ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/], ["HHmmss", /\d\d\d\d\d\d/], ["HHmm", /\d\d\d\d/], ["HH", /\d\d/]]
, wt = /^\/?Date\((-?\d+)/i
, Ct = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/
, _t = {
UT: 0,
GMT: 0,
EDT: -240,
EST: -300,
CDT: -300,
CST: -360,
MDT: -360,
MST: -420,
PDT: -420,
PST: -480
};
function Mt(e) {
var t, n, r, i, o, a, l = e._i, s = yt.exec(l) || xt.exec(l);
if (s) {
for (f(e).iso = !0,
t = 0,
n = jt.length; t < n; t++)
if (jt[t][1].exec(s[1])) {
i = jt[t][0],
r = !1 !== jt[t][2];
break
}
if (null == i)
return void (e._isValid = !1);
if (s[3]) {
for (t = 0,
n = kt.length; t < n; t++)
if (kt[t][1].exec(s[3])) {
o = (s[2] || " ") + kt[t][0];
break
}
if (null == o)
return void (e._isValid = !1)
}
if (!r && null != o)
return void (e._isValid = !1);
if (s[4]) {
if (!Ot.exec(s[4]))
return void (e._isValid = !1);
a = "Z"
}
e._f = i + (o || "") + (a || ""),
Nt(e)
} else
e._isValid = !1
}
function St(e) {
var t = parseInt(e, 10);
return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t
}
function At(e) {
var t, n = Ct.exec(function(e) {
return e.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "")
}(e._i));
if (n) {
if (t = function(e, t, n, r, i, o) {
var a = [St(e), Ne.indexOf(t), parseInt(n, 10), parseInt(r, 10), parseInt(i, 10)];
return o && a.push(parseInt(o, 10)),
a
}(n[4], n[3], n[2], n[5], n[6], n[7]),
!function(e, t, n) {
return !e || Je.indexOf(e) === new Date(t[0],t[1],t[2]).getDay() || (f(n).weekdayMismatch = !0,
n._isValid = !1,
!1)
}(n[1], t, e))
return;
e._a = t,
e._tzm = function(e, t, n) {
if (e)
return _t[e];
if (t)
return 0;
var r = parseInt(n, 10)
, i = r % 100;
return (r - i) / 100 * 60 + i
}(n[8], n[9], n[10]),
e._d = He.apply(null, e._a),
e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
f(e).rfc2822 = !0
} else
e._isValid = !1
}
function Tt(e, t, n) {
return null != e ? e : null != t ? t : n
}
function Et(e) {
var t = new Date(r.now());
return e._useUTC ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()] : [t.getFullYear(), t.getMonth(), t.getDate()]
}
function It(e) {
var t, n, r, i, o, a = [];
if (!e._d) {
for (r = Et(e),
e._w && null == e._a[we] && null == e._a[ke] && function(e) {
var t, n, r, i, o, a, l, s, c;
null != (t = e._w).GG || null != t.W || null != t.E ? (o = 1,
a = 4,
n = Tt(t.GG, e._a[je], Ge(Lt(), 1, 4).year),
r = Tt(t.W, 1),
((i = Tt(t.E, 1)) < 1 || i > 7) && (s = !0)) : (o = e._locale._week.dow,
a = e._locale._week.doy,
c = Ge(Lt(), o, a),
n = Tt(t.gg, e._a[je], c.year),
r = Tt(t.w, c.week),
null != t.d ? ((i = t.d) < 0 || i > 6) && (s = !0) : null != t.e ? (i = t.e + o,
(t.e < 0 || t.e > 6) && (s = !0)) : i = o),
r < 1 || r > Ke(n, o, a) ? f(e)._overflowWeeks = !0 : null != s ? f(e)._overflowWeekday = !0 : (l = Xe(n, r, i, o, a),
e._a[je] = l.year,
e._dayOfYear = l.dayOfYear)
}(e),
null != e._dayOfYear && (o = Tt(e._a[je], r[je]),
(e._dayOfYear > Ve(o) || 0 === e._dayOfYear) && (f(e)._overflowDayOfYear = !0),
n = He(o, 0, e._dayOfYear),
e._a[ke] = n.getUTCMonth(),
e._a[we] = n.getUTCDate()),
t = 0; t < 3 && null == e._a[t]; ++t)
e._a[t] = a[t] = r[t];
for (; t < 7; t++)
e._a[t] = a[t] = null == e._a[t] ? 2 === t ? 1 : 0 : e._a[t];
24 === e._a[Ce] && 0 === e._a[_e] && 0 === e._a[Me] && 0 === e._a[Se] && (e._nextDay = !0,
e._a[Ce] = 0),
e._d = (e._useUTC ? He : qe).apply(null, a),
i = e._useUTC ? e._d.getUTCDay() : e._d.getDay(),
null != e._tzm && e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm),
e._nextDay && (e._a[Ce] = 24),
e._w && void 0 !== e._w.d && e._w.d !== i && (f(e).weekdayMismatch = !0)
}
}
function Nt(e) {
if (e._f !== r.ISO_8601)
if (e._f !== r.RFC_2822) {
e._a = [],
f(e).empty = !0;
var t, n, i, o, a, l, s = "" + e._i, c = s.length, u = 0;
for (i = P(e._f, e._locale).match(E) || [],
t = 0; t < i.length; t++)
o = i[t],
(n = (s.match(be(o, e)) || [])[0]) && ((a = s.substr(0, s.indexOf(n))).length > 0 && f(e).unusedInput.push(a),
s = s.slice(s.indexOf(n) + n.length),
u += n.length),
z[o] ? (n ? f(e).empty = !1 : f(e).unusedTokens.push(o),
xe(o, n, e)) : e._strict && !n && f(e).unusedTokens.push(o);
f(e).charsLeftOver = c - u,
s.length > 0 && f(e).unusedInput.push(s),
e._a[Ce] <= 12 && !0 === f(e).bigHour && e._a[Ce] > 0 && (f(e).bigHour = void 0),
f(e).parsedDateParts = e._a.slice(0),
f(e).meridiem = e._meridiem,
e._a[Ce] = function(e, t, n) {
var r;
return null == n ? t : null != e.meridiemHour ? e.meridiemHour(t, n) : null != e.isPM ? ((r = e.isPM(n)) && t < 12 && (t += 12),
r || 12 !== t || (t = 0),
t) : t
}(e._locale, e._a[Ce], e._meridiem),
null !== (l = f(e).era) && (e._a[je] = e._locale.erasConvertYear(l, e._a[je])),
It(e),
vt(e)
} else
At(e);
else
Mt(e)
}
function zt(e) {
var t = e._i
, n = e._f;
return e._locale = e._locale || mt(e._l),
null === t || void 0 === n && "" === t ? g({
nullInput: !0
}) : ("string" == typeof t && (e._i = t = e._locale.preparse(t)),
O(t) ? new x(vt(t)) : (u(t) ? e._d = t : i(n) ? function(e) {
var t, n, r, i, o, a, l = !1;
if (0 === e._f.length)
return f(e).invalidFormat = !0,
void (e._d = new Date(NaN));
for (i = 0; i < e._f.length; i++)
o = 0,
a = !1,
t = y({}, e),
null != e._useUTC && (t._useUTC = e._useUTC),
t._f = e._f[i],
Nt(t),
b(t) && (a = !0),
o += f(t).charsLeftOver,
o += 10 * f(t).unusedTokens.length,
f(t).score = o,
l ? o < r && (r = o,
n = t) : (null == r || o < r || a) && (r = o,
n = t,
a && (l = !0));
p(e, n || t)
}(e) : n ? Nt(e) : function(e) {
var t = e._i;
s(t) ? e._d = new Date(r.now()) : u(t) ? e._d = new Date(t.valueOf()) : "string" == typeof t ? function(e) {
var t = wt.exec(e._i);
null === t ? (Mt(e),
!1 === e._isValid && (delete e._isValid,
At(e),
!1 === e._isValid && (delete e._isValid,
e._strict ? e._isValid = !1 : r.createFromInputFallback(e)))) : e._d = new Date(+t[1])
}(e) : i(t) ? (e._a = d(t.slice(0), (function(e) {
return parseInt(e, 10)
}
)),
It(e)) : o(t) ? function(e) {
if (!e._d) {
var t = W(e._i)
, n = void 0 === t.day ? t.date : t.day;
e._a = d([t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond], (function(e) {
return e && parseInt(e, 10)
}
)),
It(e)
}
}(e) : c(t) ? e._d = new Date(t) : r.createFromInputFallback(e)
}(e),
b(e) || (e._d = null),
e))
}
function Dt(e, t, n, r, a) {
var s = {};
return !0 !== t && !1 !== t || (r = t,
t = void 0),
!0 !== n && !1 !== n || (r = n,
n = void 0),
(o(e) && l(e) || i(e) && 0 === e.length) && (e = void 0),
s._isAMomentObject = !0,
s._useUTC = s._isUTC = a,
s._l = n,
s._i = e,
s._f = t,
s._strict = r,
function(e) {
var t = new x(vt(zt(e)));
return t._nextDay && (t.add(1, "d"),
t._nextDay = void 0),
t
}(s)
}
function Lt(e, t, n, r) {
return Dt(e, t, n, r, !1)
}
r.createFromInputFallback = k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", (function(e) {
e._d = new Date(e._i + (e._useUTC ? " UTC" : ""))
}
)),
r.ISO_8601 = function() {}
,
r.RFC_2822 = function() {}
;
var Rt = k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", (function() {
var e = Lt.apply(null, arguments);
return this.isValid() && e.isValid() ? e < this ? this : e : g()
}
))
, Pt = k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", (function() {
var e = Lt.apply(null, arguments);
return this.isValid() && e.isValid() ? e > this ? this : e : g()
}
));
function Bt(e, t) {
var n, r;
if (1 === t.length && i(t[0]) && (t = t[0]),
!t.length)
return Lt();
for (n = t[0],
r = 1; r < t.length; ++r)
t[r].isValid() && !t[r][e](n) || (n = t[r]);
return n
}
var Ft = ["year", "quarter", "month", "week", "day", "hour", "minute", "second", "millisecond"];
function Vt(e) {
var t, n, r = !1;
for (t in e)
if (a(e, t) && (-1 === Oe.call(Ft, t) || null != e[t] && isNaN(e[t])))
return !1;
for (n = 0; n < Ft.length; ++n)
if (e[Ft[n]]) {
if (r)
return !1;
parseFloat(e[Ft[n]]) !== G(e[Ft[n]]) && (r = !0)
}
return !0
}
function Wt(e) {
var t = W(e)
, n = t.year || 0
, r = t.quarter || 0
, i = t.month || 0
, o = t.week || t.isoWeek || 0
, a = t.day || 0
, l = t.hour || 0
, s = t.minute || 0
, c = t.second || 0
, u = t.millisecond || 0;
this._isValid = Vt(t),
this._milliseconds = +u + 1e3 * c + 6e4 * s + 1e3 * l * 60 * 60,
this._days = +a + 7 * o,
this._months = +i + 3 * r + 12 * n,
this._data = {},
this._locale = mt(),
this._bubble()
}
function qt(e) {
return e instanceof Wt
}
function Ht(e) {
return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e)
}
function Ut(e, t) {
D(e, 0, 0, (function() {
var e = this.utcOffset()
, n = "+";
return e < 0 && (e = -e,
n = "-"),
n + T(~~(e / 60), 2) + t + T(~~e % 60, 2)
}
))
}
Ut("Z", ":"),
Ut("ZZ", ""),
fe("Z", pe),
fe("ZZ", pe),
ve(["Z", "ZZ"], (function(e, t, n) {
n._useUTC = !0,
n._tzm = Gt(pe, e)
}
));
var Xt = /([\+\-]|\d\d)/gi;
function Gt(e, t) {
var n, r, i = (t || "").match(e);
return null === i ? null : 0 === (r = 60 * (n = ((i[i.length - 1] || []) + "").match(Xt) || ["-", 0, 0])[1] + G(n[2])) ? 0 : "+" === n[0] ? r : -r
}
function Kt(e, t) {
var n, i;
return t._isUTC ? (n = t.clone(),
i = (O(e) || u(e) ? e.valueOf() : Lt(e).valueOf()) - n.valueOf(),
n._d.setTime(n._d.valueOf() + i),
r.updateOffset(n, !1),
n) : Lt(e).local()
}
function Yt(e) {
return -Math.round(e._d.getTimezoneOffset())
}
function Qt() {
return !!this.isValid() && this._isUTC && 0 === this._offset
}
r.updateOffset = function() {}
;
var Jt = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/
, Zt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
function $t(e, t) {
var n, r, i, o = e, l = null;
return qt(e) ? o = {
ms: e._milliseconds,
d: e._days,
M: e._months
} : c(e) || !isNaN(+e) ? (o = {},
t ? o[t] = +e : o.milliseconds = +e) : (l = Jt.exec(e)) ? (n = "-" === l[1] ? -1 : 1,
o = {
y: 0,
d: G(l[we]) * n,
h: G(l[Ce]) * n,
m: G(l[_e]) * n,
s: G(l[Me]) * n,
ms: G(Ht(1e3 * l[Se])) * n
}) : (l = Zt.exec(e)) ? (n = "-" === l[1] ? -1 : 1,
o = {
y: en(l[2], n),
M: en(l[3], n),
w: en(l[4], n),
d: en(l[5], n),
h: en(l[6], n),
m: en(l[7], n),
s: en(l[8], n)
}) : null == o ? o = {} : "object" == typeof o && ("from"in o || "to"in o) && (i = function(e, t) {
var n;
return e.isValid() && t.isValid() ? (t = Kt(t, e),
e.isBefore(t) ? n = tn(e, t) : ((n = tn(t, e)).milliseconds = -n.milliseconds,
n.months = -n.months),
n) : {
milliseconds: 0,
months: 0
}
}(Lt(o.from), Lt(o.to)),
(o = {}).ms = i.milliseconds,
o.M = i.months),
r = new Wt(o),
qt(e) && a(e, "_locale") && (r._locale = e._locale),
qt(e) && a(e, "_isValid") && (r._isValid = e._isValid),
r
}
function en(e, t) {
var n = e && parseFloat(e.replace(",", "."));
return (isNaN(n) ? 0 : n) * t
}
function tn(e, t) {
var n = {};
return n.months = t.month() - e.month() + 12 * (t.year() - e.year()),
e.clone().add(n.months, "M").isAfter(t) && --n.months,
n.milliseconds = +t - +e.clone().add(n.months, "M"),
n
}
function nn(e, t) {
return function(n, r) {
var i;
return null === r || isNaN(+r) || (_(t, "moment()." + t + "(period, number) is deprecated. Please use moment()." + t + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),
i = n,
n = r,
r = i),
rn(this, $t(n, r), e),
this
}
}
function rn(e, t, n, i) {
var o = t._milliseconds
, a = Ht(t._days)
, l = Ht(t._months);
e.isValid() && (i = null == i || i,
l && Pe(e, Y(e, "Month") + l * n),
a && Q(e, "Date", Y(e, "Date") + a * n),
o && e._d.setTime(e._d.valueOf() + o * n),
i && r.updateOffset(e, a || l))
}
$t.fn = Wt.prototype,
$t.invalid = function() {
return $t(NaN)
}
;
var on = nn(1, "add")
, an = nn(-1, "subtract");
function ln(e) {
return "string" == typeof e || e instanceof String
}
function sn(e) {
return O(e) || u(e) || ln(e) || c(e) || function(e) {
var t = i(e)
, n = !1;
return t && (n = 0 === e.filter((function(t) {
return !c(t) && ln(e)
}
)).length),
t && n
}(e) || function(e) {
var t, n, r = o(e) && !l(e), i = !1, s = ["years", "year", "y", "months", "month", "M", "days", "day", "d", "dates", "date", "D", "hours", "hour", "h", "minutes", "minute", "m", "seconds", "second", "s", "milliseconds", "millisecond", "ms"];
for (t = 0; t < s.length; t += 1)
n = s[t],
i = i || a(e, n);
return r && i
}(e) || null == e
}
function cn(e) {
var t, n = o(e) && !l(e), r = !1, i = ["sameDay", "nextDay", "lastDay", "nextWeek", "lastWeek", "sameElse"];
for (t = 0; t < i.length; t += 1)
r = r || a(e, i[t]);
return n && r
}
function un(e, t) {
if (e.date() < t.date())
return -un(t, e);
var n = 12 * (t.year() - e.year()) + (t.month() - e.month())
, r = e.clone().add(n, "months");
return -(n + (t - r < 0 ? (t - r) / (r - e.clone().add(n - 1, "months")) : (t - r) / (e.clone().add(n + 1, "months") - r))) || 0
}
function dn(e) {
var t;
return void 0 === e ? this._locale._abbr : (null != (t = mt(e)) && (this._locale = t),
this)
}
r.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ",
r.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
var pn = k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", (function(e) {
return void 0 === e ? this.localeData() : this.locale(e)
}
));
function hn() {
return this._locale
}
var fn = 1e3
, bn = 6e4
, gn = 60 * bn
, mn = 3506328 * gn;
function vn(e, t) {
return (e % t + t) % t
}
function yn(e, t, n) {
return e < 100 && e >= 0 ? new Date(e + 400,t,n) - mn : new Date(e,t,n).valueOf()
}
function xn(e, t, n) {
return e < 100 && e >= 0 ? Date.UTC(e + 400, t, n) - mn : Date.UTC(e, t, n)
}
function On(e, t) {
return t.erasAbbrRegex(e)
}
function jn() {
var e, t, n = [], r = [], i = [], o = [], a = this.eras();
for (e = 0,
t = a.length; e < t; ++e)
r.push(ge(a[e].name)),
n.push(ge(a[e].abbr)),
i.push(ge(a[e].narrow)),
o.push(ge(a[e].name)),
o.push(ge(a[e].abbr)),
o.push(ge(a[e].narrow));
this._erasRegex = new RegExp("^(" + o.join("|") + ")","i"),
this._erasNameRegex = new RegExp("^(" + r.join("|") + ")","i"),
this._erasAbbrRegex = new RegExp("^(" + n.join("|") + ")","i"),
this._erasNarrowRegex = new RegExp("^(" + i.join("|") + ")","i")
}
function kn(e, t) {
D(0, [e, e.length], 0, t)
}
function wn(e, t, n, r, i) {
var o;
return null == e ? Ge(this, r, i).year : (t > (o = Ke(e, r, i)) && (t = o),
Cn.call(this, e, t, n, r, i))
}
function Cn(e, t, n, r, i) {
var o = Xe(e, t, n, r, i)
, a = He(o.year, 0, o.dayOfYear);
return this.year(a.getUTCFullYear()),
this.month(a.getUTCMonth()),
this.date(a.getUTCDate()),
this
}
D("N", 0, 0, "eraAbbr"),
D("NN", 0, 0, "eraAbbr"),
D("NNN", 0, 0, "eraAbbr"),
D("NNNN", 0, 0, "eraName"),
D("NNNNN", 0, 0, "eraNarrow"),
D("y", ["y", 1], "yo", "eraYear"),
D("y", ["yy", 2], 0, "eraYear"),
D("y", ["yyy", 3], 0, "eraYear"),
D("y", ["yyyy", 4], 0, "eraYear"),
fe("N", On),
fe("NN", On),
fe("NNN", On),
fe("NNNN", (function(e, t) {
return t.erasNameRegex(e)
}
)),
fe("NNNNN", (function(e, t) {
return t.erasNarrowRegex(e)
}
)),
ve(["N", "NN", "NNN", "NNNN", "NNNNN"], (function(e, t, n, r) {
var i = n._locale.erasParse(e, r, n._strict);
i ? f(n).era = i : f(n).invalidEra = e
}
)),
fe("y", ce),
fe("yy", ce),
fe("yyy", ce),
fe("yyyy", ce),
fe("yo", (function(e, t) {
return t._eraYearOrdinalRegex || ce
}
)),
ve(["y", "yy", "yyy", "yyyy"], je),
ve(["yo"], (function(e, t, n, r) {
var i;
n._locale._eraYearOrdinalRegex && (i = e.match(n._locale._eraYearOrdinalRegex)),
n._locale.eraYearOrdinalParse ? t[je] = n._locale.eraYearOrdinalParse(e, i) : t[je] = parseInt(e, 10)
}
)),
D(0, ["gg", 2], 0, (function() {
return this.weekYear() % 100
}
)),
D(0, ["GG", 2], 0, (function() {
return this.isoWeekYear() % 100
}
)),
kn("gggg", "weekYear"),
kn("ggggg", "weekYear"),
kn("GGGG", "isoWeekYear"),
kn("GGGGG", "isoWeekYear"),
F("weekYear", "gg"),
F("isoWeekYear", "GG"),
H("weekYear", 1),
H("isoWeekYear", 1),
fe("G", ue),
fe("g", ue),
fe("GG", re, $),
fe("gg", re, $),
fe("GGGG", le, te),
fe("gggg", le, te),
fe("GGGGG", se, ne),
fe("ggggg", se, ne),
ye(["gggg", "ggggg", "GGGG", "GGGGG"], (function(e, t, n, r) {
t[r.substr(0, 2)] = G(e)
}
)),
ye(["gg", "GG"], (function(e, t, n, i) {
t[i] = r.parseTwoDigitYear(e)
}
)),
D("Q", 0, "Qo", "quarter"),
F("quarter", "Q"),
H("quarter", 7),
fe("Q", Z),
ve("Q", (function(e, t) {
t[ke] = 3 * (G(e) - 1)
}
)),
D("D", ["DD", 2], "Do", "date"),
F("date", "D"),
H("date", 9),
fe("D", re),
fe("DD", re, $),
fe("Do", (function(e, t) {
return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t._dayOfMonthOrdinalParseLenient
}
)),
ve(["D", "DD"], we),
ve("Do", (function(e, t) {
t[we] = G(e.match(re)[0])
}
));
var _n = K("Date", !0);
D("DDD", ["DDDD", 3], "DDDo", "dayOfYear"),
F("dayOfYear", "DDD"),
H("dayOfYear", 4),
fe("DDD", ae),
fe("DDDD", ee),
ve(["DDD", "DDDD"], (function(e, t, n) {
n._dayOfYear = G(e)
}
)),
D("m", ["mm", 2], 0, "minute"),
F("minute", "m"),
H("minute", 14),
fe("m", re),
fe("mm", re, $),
ve(["m", "mm"], _e);
var Mn = K("Minutes", !1);
D("s", ["ss", 2], 0, "second"),
F("second", "s"),
H("second", 15),
fe("s", re),
fe("ss", re, $),
ve(["s", "ss"], Me);
var Sn, An, Tn = K("Seconds", !1);
for (D("S", 0, 0, (function() {
return ~~(this.millisecond() / 100)
}
)),
D(0, ["SS", 2], 0, (function() {
return ~~(this.millisecond() / 10)
}
)),
D(0, ["SSS", 3], 0, "millisecond"),
D(0, ["SSSS", 4], 0, (function() {
return 10 * this.millisecond()
}
)),
D(0, ["SSSSS", 5], 0, (function() {
return 100 * this.millisecond()
}
)),
D(0, ["SSSSSS", 6], 0, (function() {
return 1e3 * this.millisecond()
}
)),
D(0, ["SSSSSSS", 7], 0, (function() {
return 1e4 * this.millisecond()
}
)),
D(0, ["SSSSSSSS", 8], 0, (function() {
return 1e5 * this.millisecond()
}
)),
D(0, ["SSSSSSSSS", 9], 0, (function() {
return 1e6 * this.millisecond()
}
)),
F("millisecond", "ms"),
H("millisecond", 16),
fe("S", ae, Z),
fe("SS", ae, $),
fe("SSS", ae, ee),
Sn = "SSSS"; Sn.length <= 9; Sn += "S")
fe(Sn, ce);
function En(e, t) {
t[Se] = G(1e3 * ("0." + e))
}
for (Sn = "S"; Sn.length <= 9; Sn += "S")
ve(Sn, En);
An = K("Milliseconds", !1),
D("z", 0, 0, "zoneAbbr"),
D("zz", 0, 0, "zoneName");
var In = x.prototype;
function Nn(e) {
return e
}
In.add = on,
In.calendar = function(e, t) {
1 === arguments.length && (arguments[0] ? sn(arguments[0]) ? (e = arguments[0],
t = void 0) : cn(arguments[0]) && (t = arguments[0],
e = void 0) : (e = void 0,
t = void 0));
var n = e || Lt()
, i = Kt(n, this).startOf("day")
, o = r.calendarFormat(this, i) || "sameElse"
, a = t && (M(t[o]) ? t[o].call(this, n) : t[o]);
return this.format(a || this.localeData().calendar(o, this, Lt(n)))
}
,
In.clone = function() {
return new x(this)
}
,
In.diff = function(e, t, n) {
var r, i, o;
if (!this.isValid())
return NaN;
if (!(r = Kt(e, this)).isValid())
return NaN;
switch (i = 6e4 * (r.utcOffset() - this.utcOffset()),
t = V(t)) {
case "year":
o = un(this, r) / 12;
break;
case "month":
o = un(this, r);
break;
case "quarter":
o = un(this, r) / 3;
break;
case "second":
o = (this - r) / 1e3;
break;
case "minute":
o = (this - r) / 6e4;
break;
case "hour":
o = (this - r) / 36e5;
break;
case "day":
o = (this - r - i) / 864e5;
break;
case "week":
o = (this - r - i) / 6048e5;
break;
default:
o = this - r
}
return n ? o : X(o)
}
,
In.endOf = function(e) {
var t, n;
if (void 0 === (e = V(e)) || "millisecond" === e || !this.isValid())
return this;
switch (n = this._isUTC ? xn : yn,
e) {
case "year":
t = n(this.year() + 1, 0, 1) - 1;
break;
case "quarter":
t = n(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
break;
case "month":
t = n(this.year(), this.month() + 1, 1) - 1;
break;
case "week":
t = n(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
break;
case "isoWeek":
t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
break;
case "day":
case "date":
t = n(this.year(), this.month(), this.date() + 1) - 1;
break;
case "hour":
t = this._d.valueOf(),
t += gn - vn(t + (this._isUTC ? 0 : this.utcOffset() * bn), gn) - 1;
break;
case "minute":
t = this._d.valueOf(),
t += bn - vn(t, bn) - 1;
break;
case "second":
t = this._d.valueOf(),
t += fn - vn(t, fn) - 1
}
return this._d.setTime(t),
r.updateOffset(this, !0),
this
}
,
In.format = function(e) {
e || (e = this.isUtc() ? r.defaultFormatUtc : r.defaultFormat);
var t = R(this, e);
return this.localeData().postformat(t)
}
,
In.from = function(e, t) {
return this.isValid() && (O(e) && e.isValid() || Lt(e).isValid()) ? $t({
to: this,
from: e
}).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()
}
,
In.fromNow = function(e) {
return this.from(Lt(), e)
}
,
In.to = function(e, t) {
return this.isValid() && (O(e) && e.isValid() || Lt(e).isValid()) ? $t({
from: this,
to: e
}).locale(this.locale()).humanize(!t) : this.localeData().invalidDate()
}
,
In.toNow = function(e) {
return this.to(Lt(), e)
}
,
In.get = function(e) {
return M(this[e = V(e)]) ? this[e]() : this
}
,
In.invalidAt = function() {
return f(this).overflow
}
,
In.isAfter = function(e, t) {
var n = O(e) ? e : Lt(e);
return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = V(t) || "millisecond") ? this.valueOf() > n.valueOf() : n.valueOf() < this.clone().startOf(t).valueOf())
}
,
In.isBefore = function(e, t) {
var n = O(e) ? e : Lt(e);
return !(!this.isValid() || !n.isValid()) && ("millisecond" === (t = V(t) || "millisecond") ? this.valueOf() < n.valueOf() : this.clone().endOf(t).valueOf() < n.valueOf())
}
,
In.isBetween = function(e, t, n, r) {
var i = O(e) ? e : Lt(e)
, o = O(t) ? t : Lt(t);
return !!(this.isValid() && i.isValid() && o.isValid()) && ("(" === (r = r || "()")[0] ? this.isAfter(i, n) : !this.isBefore(i, n)) && (")" === r[1] ? this.isBefore(o, n) : !this.isAfter(o, n))
}
,
In.isSame = function(e, t) {
var n, r = O(e) ? e : Lt(e);
return !(!this.isValid() || !r.isValid()) && ("millisecond" === (t = V(t) || "millisecond") ? this.valueOf() === r.valueOf() : (n = r.valueOf(),
this.clone().startOf(t).valueOf() <= n && n <= this.clone().endOf(t).valueOf()))
}
,
In.isSameOrAfter = function(e, t) {
return this.isSame(e, t) || this.isAfter(e, t)
}
,
In.isSameOrBefore = function(e, t) {
return this.isSame(e, t) || this.isBefore(e, t)
}
,
In.isValid = function() {
return b(this)
}
,
In.lang = pn,
In.locale = dn,
In.localeData = hn,
In.max = Pt,
In.min = Rt,
In.parsingFlags = function() {
return p({}, f(this))
}
,
In.set = function(e, t) {
if ("object" == typeof e) {
var n, r = function(e) {
var t, n = [];
for (t in e)
a(e, t) && n.push({
unit: t,
priority: q[t]
});
return n.sort((function(e, t) {
return e.priority - t.priority
}
)),
n
}(e = W(e));
for (n = 0; n < r.length; n++)
this[r[n].unit](e[r[n].unit])
} else if (M(this[e = V(e)]))
return this[e](t);
return this
}
,
In.startOf = function(e) {
var t, n;
if (void 0 === (e = V(e)) || "millisecond" === e || !this.isValid())
return this;
switch (n = this._isUTC ? xn : yn,
e) {
case "year":
t = n(this.year(), 0, 1);
break;
case "quarter":
t = n(this.year(), this.month() - this.month() % 3, 1);
break;
case "month":
t = n(this.year(), this.month(), 1);
break;
case "week":
t = n(this.year(), this.month(), this.date() - this.weekday());
break;
case "isoWeek":
t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
break;
case "day":
case "date":
t = n(this.year(), this.month(), this.date());
break;
case "hour":
t = this._d.valueOf(),
t -= vn(t + (this._isUTC ? 0 : this.utcOffset() * bn), gn);
break;
case "minute":
t = this._d.valueOf(),
t -= vn(t, bn);
break;
case "second":
t = this._d.valueOf(),
t -= vn(t, fn)
}
return this._d.setTime(t),
r.updateOffset(this, !0),
this
}
,
In.subtract = an,
In.toArray = function() {
var e = this;
return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e.millisecond()]
}
,
In.toObject = function() {
var e = this;
return {
years: e.year(),
months: e.month(),
date: e.date(),
hours: e.hours(),
minutes: e.minutes(),
seconds: e.seconds(),
milliseconds: e.milliseconds()
}
}
,
In.toDate = function() {
return new Date(this.valueOf())
}
,
In.toISOString = function(e) {
if (!this.isValid())
return null;
var t = !0 !== e
, n = t ? this.clone().utc() : this;
return n.year() < 0 || n.year() > 9999 ? R(n, t ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ") : M(Date.prototype.toISOString) ? t ? this.toDate().toISOString() : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3).toISOString().replace("Z", R(n, "Z")) : R(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ")
}
,
In.inspect = function() {
if (!this.isValid())
return "moment.invalid(/* " + this._i + " */)";
var e, t, n, r = "moment", i = "";
return this.isLocal() || (r = 0 === this.utcOffset() ? "moment.utc" : "moment.parseZone",
i = "Z"),
e = "[" + r + '("]',
t = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY",
"-MM-DD[T]HH:mm:ss.SSS",
n = i + '[")]',
this.format(e + t + "-MM-DD[T]HH:mm:ss.SSS" + n)
}
,
"undefined" != typeof Symbol && null != Symbol.for && (In[Symbol.for("nodejs.util.inspect.custom")] = function() {
return "Moment<" + this.format() + ">"
}
),
In.toJSON = function() {
return this.isValid() ? this.toISOString() : null
}
,
In.toString = function() {
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")
}
,
In.unix = function() {
return Math.floor(this.valueOf() / 1e3)
}
,
In.valueOf = function() {
return this._d.valueOf() - 6e4 * (this._offset || 0)
}
,
In.creationData = function() {
return {
input: this._i,
format: this._f,
locale: this._locale,
isUTC: this._isUTC,
strict: this._strict
}
}
,
In.eraName = function() {
var e, t, n, r = this.localeData().eras();
for (e = 0,
t = r.length; e < t; ++e) {
if (n = this.clone().startOf("day").valueOf(),
r[e].since <= n && n <= r[e].until)
return r[e].name;
if (r[e].until <= n && n <= r[e].since)
return r[e].name
}
return ""
}
,
In.eraNarrow = function() {
var e, t, n, r = this.localeData().eras();
for (e = 0,
t = r.length; e < t; ++e) {
if (n = this.clone().startOf("day").valueOf(),
r[e].since <= n && n <= r[e].until)
return r[e].narrow;
if (r[e].until <= n && n <= r[e].since)
return r[e].narrow
}
return ""
}
,
In.eraAbbr = function() {
var e, t, n, r = this.localeData().eras();
for (e = 0,
t = r.length; e < t; ++e) {
if (n = this.clone().startOf("day").valueOf(),
r[e].since <= n && n <= r[e].until)
return r[e].abbr;
if (r[e].until <= n && n <= r[e].since)
return r[e].abbr
}
return ""
}
,
In.eraYear = function() {
var e, t, n, i, o = this.localeData().eras();
for (e = 0,
t = o.length; e < t; ++e)
if (n = o[e].since <= o[e].until ? 1 : -1,
i = this.clone().startOf("day").valueOf(),
o[e].since <= i && i <= o[e].until || o[e].until <= i && i <= o[e].since)
return (this.year() - r(o[e].since).year()) * n + o[e].offset;
return this.year()
}
,
In.year = We,
In.isLeapYear = function() {
return U(this.year())
}
,
In.weekYear = function(e) {
return wn.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy)
}
,
In.isoWeekYear = function(e) {
return wn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4)
}
,
In.quarter = In.quarters = function(e) {
return null == e ? Math.ceil((this.month() + 1) / 3) : this.month(3 * (e - 1) + this.month() % 3)
}
,
In.month = Be,
In.daysInMonth = function() {
return Ee(this.year(), this.month())
}
,
In.week = In.weeks = function(e) {
var t = this.localeData().week(this);
return null == e ? t : this.add(7 * (e - t), "d")
}
,
In.isoWeek = In.isoWeeks = function(e) {
var t = Ge(this, 1, 4).week;
return null == e ? t : this.add(7 * (e - t), "d")
}
,
In.weeksInYear = function() {
var e = this.localeData()._week;
return Ke(this.year(), e.dow, e.doy)
}
,
In.weeksInWeekYear = function() {
var e = this.localeData()._week;
return Ke(this.weekYear(), e.dow, e.doy)
}
,
In.isoWeeksInYear = function() {
return Ke(this.year(), 1, 4)
}
,
In.isoWeeksInISOWeekYear = function() {
return Ke(this.isoWeekYear(), 1, 4)
}
,
In.date = _n,
In.day = In.days = function(e) {
if (!this.isValid())
return null != e ? this : NaN;
var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
return null != e ? (e = function(e, t) {
return "string" != typeof e ? e : isNaN(e) ? "number" == typeof (e = t.weekdaysParse(e)) ? e : null : parseInt(e, 10)
}(e, this.localeData()),
this.add(e - t, "d")) : t
}
,
In.weekday = function(e) {
if (!this.isValid())
return null != e ? this : NaN;
var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
return null == e ? t : this.add(e - t, "d")
}
,
In.isoWeekday = function(e) {
if (!this.isValid())
return null != e ? this : NaN;
if (null != e) {
var t = function(e, t) {
return "string" == typeof e ? t.weekdaysParse(e) % 7 || 7 : isNaN(e) ? null : e
}(e, this.localeData());
return this.day(this.day() % 7 ? t : t - 7)
}
return this.day() || 7
}
,
In.dayOfYear = function(e) {
var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
return null == e ? t : this.add(e - t, "d")
}
,
In.hour = In.hours = lt,
In.minute = In.minutes = Mn,
In.second = In.seconds = Tn,
In.millisecond = In.milliseconds = An,
In.utcOffset = function(e, t, n) {
var i, o = this._offset || 0;
if (!this.isValid())
return null != e ? this : NaN;
if (null != e) {
if ("string" == typeof e) {
if (null === (e = Gt(pe, e)))
return this
} else
Math.abs(e) < 16 && !n && (e *= 60);
return !this._isUTC && t && (i = Yt(this)),
this._offset = e,
this._isUTC = !0,
null != i && this.add(i, "m"),
o !== e && (!t || this._changeInProgress ? rn(this, $t(e - o, "m"), 1, !1) : this._changeInProgress || (this._changeInProgress = !0,
r.updateOffset(this, !0),
this._changeInProgress = null)),
this
}
return this._isUTC ? o : Yt(this)
}
,
In.utc = function(e) {
return this.utcOffset(0, e)
}
,
In.local = function(e) {
return this._isUTC && (this.utcOffset(0, e),
this._isUTC = !1,
e && this.subtract(Yt(this), "m")),
this
}
,
In.parseZone = function() {
if (null != this._tzm)
this.utcOffset(this._tzm, !1, !0);
else if ("string" == typeof this._i) {
var e = Gt(de, this._i);
null != e ? this.utcOffset(e) : this.utcOffset(0, !0)
}
return this
}
,
In.hasAlignedHourOffset = function(e) {
return !!this.isValid() && (e = e ? Lt(e).utcOffset() : 0,
(this.utcOffset() - e) % 60 == 0)
}
,
In.isDST = function() {
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset()
}
,
In.isLocal = function() {
return !!this.isValid() && !this._isUTC
}
,
In.isUtcOffset = function() {
return !!this.isValid() && this._isUTC
}
,
In.isUtc = Qt,
In.isUTC = Qt,
In.zoneAbbr = function() {
return this._isUTC ? "UTC" : ""
}
,
In.zoneName = function() {
return this._isUTC ? "Coordinated Universal Time" : ""
}
,
In.dates = k("dates accessor is deprecated. Use date instead.", _n),
In.months = k("months accessor is deprecated. Use month instead", Be),
In.years = k("years accessor is deprecated. Use year instead", We),
In.zone = k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", (function(e, t) {
return null != e ? ("string" != typeof e && (e = -e),
this.utcOffset(e, t),
this) : -this.utcOffset()
}
)),
In.isDSTShifted = k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", (function() {
if (!s(this._isDSTShifted))
return this._isDSTShifted;
var e, t = {};
return y(t, this),
(t = zt(t))._a ? (e = t._isUTC ? h(t._a) : Lt(t._a),
this._isDSTShifted = this.isValid() && function(e, t, n) {
var r, i = Math.min(e.length, t.length), o = Math.abs(e.length - t.length), a = 0;
for (r = 0; r < i; r++)
(n && e[r] !== t[r] || !n && G(e[r]) !== G(t[r])) && a++;
return a + o
}(t._a, e.toArray()) > 0) : this._isDSTShifted = !1,
this._isDSTShifted
}
));
var zn = A.prototype;
function Dn(e, t, n, r) {
var i = mt()
, o = h().set(r, t);
return i[n](o, e)
}
function Ln(e, t, n) {
if (c(e) && (t = e,
e = void 0),
e = e || "",
null != t)
return Dn(e, t, n, "month");
var r, i = [];
for (r = 0; r < 12; r++)
i[r] = Dn(e, r, n, "month");
return i
}
function Rn(e, t, n, r) {
"boolean" == typeof e ? (c(t) && (n = t,
t = void 0),
t = t || "") : (n = t = e,
e = !1,
c(t) && (n = t,
t = void 0),
t = t || "");
var i, o = mt(), a = e ? o._week.dow : 0, l = [];
if (null != n)
return Dn(t, (n + a) % 7, r, "day");
for (i = 0; i < 7; i++)
l[i] = Dn(t, (i + a) % 7, r, "day");
return l
}
zn.calendar = function(e, t, n) {
var r = this._calendar[e] || this._calendar.sameElse;
return M(r) ? r.call(t, n) : r
}
,
zn.longDateFormat = function(e) {
var t = this._longDateFormat[e]
, n = this._longDateFormat[e.toUpperCase()];
return t || !n ? t : (this._longDateFormat[e] = n.match(E).map((function(e) {
return "MMMM" === e || "MM" === e || "DD" === e || "dddd" === e ? e.slice(1) : e
}
)).join(""),
this._longDateFormat[e])
}
,
zn.invalidDate = function() {
return this._invalidDate
}
,
zn.ordinal = function(e) {
return this._ordinal.replace("%d", e)
}
,
zn.preparse = Nn,
zn.postformat = Nn,
zn.relativeTime = function(e, t, n, r) {
var i = this._relativeTime[n];
return M(i) ? i(e, t, n, r) : i.replace(/%d/i, e)
}
,
zn.pastFuture = function(e, t) {
var n = this._relativeTime[e > 0 ? "future" : "past"];
return M(n) ? n(t) : n.replace(/%s/i, t)
}
,
zn.set = function(e) {
var t, n;
for (n in e)
a(e, n) && (M(t = e[n]) ? this[n] = t : this["_" + n] = t);
this._config = e,
this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source)
}
,
zn.eras = function(e, t) {
var n, i, o, a = this._eras || mt("en")._eras;
for (n = 0,
i = a.length; n < i; ++n)
switch ("string" == typeof a[n].since && (o = r(a[n].since).startOf("day"),
a[n].since = o.valueOf()),
typeof a[n].until) {
case "undefined":
a[n].until = 1 / 0;
break;
case "string":
o = r(a[n].until).startOf("day").valueOf(),
a[n].until = o.valueOf()
}
return a
}
,
zn.erasParse = function(e, t, n) {
var r, i, o, a, l, s = this.eras();
for (e = e.toUpperCase(),
r = 0,
i = s.length; r < i; ++r)
if (o = s[r].name.toUpperCase(),
a = s[r].abbr.toUpperCase(),
l = s[r].narrow.toUpperCase(),
n)
switch (t) {
case "N":
case "NN":
case "NNN":
if (a === e)
return s[r];
break;
case "NNNN":
if (o === e)
return s[r];
break;
case "NNNNN":
if (l === e)
return s[r]
}
else if ([o, a, l].indexOf(e) >= 0)
return s[r]
}
,
zn.erasConvertYear = function(e, t) {
var n = e.since <= e.until ? 1 : -1;
return void 0 === t ? r(e.since).year() : r(e.since).year() + (t - e.offset) * n
}
,
zn.erasAbbrRegex = function(e) {
return a(this, "_erasAbbrRegex") || jn.call(this),
e ? this._erasAbbrRegex : this._erasRegex
}
,
zn.erasNameRegex = function(e) {
return a(this, "_erasNameRegex") || jn.call(this),
e ? this._erasNameRegex : this._erasRegex
}
,
zn.erasNarrowRegex = function(e) {
return a(this, "_erasNarrowRegex") || jn.call(this),
e ? this._erasNarrowRegex : this._erasRegex
}
,
zn.months = function(e, t) {
return e ? i(this._months) ? this._months[e.month()] : this._months[(this._months.isFormat || ze).test(t) ? "format" : "standalone"][e.month()] : i(this._months) ? this._months : this._months.standalone
}
,
zn.monthsShort = function(e, t) {
return e ? i(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[ze.test(t) ? "format" : "standalone"][e.month()] : i(this._monthsShort) ? this._monthsShort : this._monthsShort.standalone
}
,
zn.monthsParse = function(e, t, n) {
var r, i, o;
if (this._monthsParseExact)
return Re.call(this, e, t, n);
for (this._monthsParse || (this._monthsParse = [],
this._longMonthsParse = [],
this._shortMonthsParse = []),
r = 0; r < 12; r++) {
if (i = h([2e3, r]),
n && !this._longMonthsParse[r] && (this._longMonthsParse[r] = new RegExp("^" + this.months(i, "").replace(".", "") + "$","i"),
this._shortMonthsParse[r] = new RegExp("^" + this.monthsShort(i, "").replace(".", "") + "$","i")),
n || this._monthsParse[r] || (o = "^" + this.months(i, "") + "|^" + this.monthsShort(i, ""),
this._monthsParse[r] = new RegExp(o.replace(".", ""),"i")),
n && "MMMM" === t && this._longMonthsParse[r].test(e))
return r;
if (n && "MMM" === t && this._shortMonthsParse[r].test(e))
return r;
if (!n && this._monthsParse[r].test(e))
return r
}
}
,
zn.monthsRegex = function(e) {
return this._monthsParseExact ? (a(this, "_monthsRegex") || Fe.call(this),
e ? this._monthsStrictRegex : this._monthsRegex) : (a(this, "_monthsRegex") || (this._monthsRegex = Le),
this._monthsStrictRegex && e ? this._monthsStrictRegex : this._monthsRegex)
}
,
zn.monthsShortRegex = function(e) {
return this._monthsParseExact ? (a(this, "_monthsRegex") || Fe.call(this),
e ? this._monthsShortStrictRegex : this._monthsShortRegex) : (a(this, "_monthsShortRegex") || (this._monthsShortRegex = De),
this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this._monthsShortRegex)
}
,
zn.week = function(e) {
return Ge(e, this._week.dow, this._week.doy).week
}
,
zn.firstDayOfYear = function() {
return this._week.doy
}
,
zn.firstDayOfWeek = function() {
return this._week.dow
}
,
zn.weekdays = function(e, t) {
var n = i(this._weekdays) ? this._weekdays : this._weekdays[e && !0 !== e && this._weekdays.isFormat.test(t) ? "format" : "standalone"];
return !0 === e ? Ye(n, this._week.dow) : e ? n[e.day()] : n
}
,
zn.weekdaysMin = function(e) {
return !0 === e ? Ye(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e.day()] : this._weekdaysMin
}
,
zn.weekdaysShort = function(e) {
return !0 === e ? Ye(this._weekdaysShort, this._week.dow) : e ? this._weekdaysShort[e.day()] : this._weekdaysShort
}
,
zn.weekdaysParse = function(e, t, n) {
var r, i, o;
if (this._weekdaysParseExact)
return nt.call(this, e, t, n);
for (this._weekdaysParse || (this._weekdaysParse = [],
this._minWeekdaysParse = [],
this._shortWeekdaysParse = [],
this._fullWeekdaysParse = []),
r = 0; r < 7; r++) {
if (i = h([2e3, 1]).day(r),
n && !this._fullWeekdaysParse[r] && (this._fullWeekdaysParse[r] = new RegExp("^" + this.weekdays(i, "").replace(".", "\\.?") + "$","i"),
this._shortWeekdaysParse[r] = new RegExp("^" + this.weekdaysShort(i, "").replace(".", "\\.?") + "$","i"),
this._minWeekdaysParse[r] = new RegExp("^" + this.weekdaysMin(i, "").replace(".", "\\.?") + "$","i")),
this._weekdaysParse[r] || (o = "^" + this.weekdays(i, "") + "|^" + this.weekdaysShort(i, "") + "|^" + this.weekdaysMin(i, ""),
this._weekdaysParse[r] = new RegExp(o.replace(".", ""),"i")),
n && "dddd" === t && this._fullWeekdaysParse[r].test(e))
return r;
if (n && "ddd" === t && this._shortWeekdaysParse[r].test(e))
return r;
if (n && "dd" === t && this._minWeekdaysParse[r].test(e))
return r;
if (!n && this._weekdaysParse[r].test(e))
return r
}
}
,
zn.weekdaysRegex = function(e) {
return this._weekdaysParseExact ? (a(this, "_weekdaysRegex") || rt.call(this),
e ? this._weekdaysStrictRegex : this._weekdaysRegex) : (a(this, "_weekdaysRegex") || (this._weekdaysRegex = $e),
this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this._weekdaysRegex)
}
,
zn.weekdaysShortRegex = function(e) {
return this._weekdaysParseExact ? (a(this, "_weekdaysRegex") || rt.call(this),
e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) : (a(this, "_weekdaysShortRegex") || (this._weekdaysShortRegex = et),
this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex)
}
,
zn.weekdaysMinRegex = function(e) {
return this._weekdaysParseExact ? (a(this, "_weekdaysRegex") || rt.call(this),
e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (a(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = tt),
this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex)
}
,
zn.isPM = function(e) {
return "p" === (e + "").toLowerCase().charAt(0)
}
,
zn.meridiem = function(e, t, n) {
return e > 11 ? n ? "pm" : "PM" : n ? "am" : "AM"
}
,
bt("en", {
eras: [{
since: "0001-01-01",
until: 1 / 0,
offset: 1,
name: "Anno Domini",
narrow: "AD",
abbr: "AD"
}, {
since: "0000-12-31",
until: -1 / 0,
offset: 1,
name: "Before Christ",
narrow: "BC",
abbr: "BC"
}],
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
ordinal: function(e) {
var t = e % 10;
return e + (1 === G(e % 100 / 10) ? "th" : 1 === t ? "st" : 2 === t ? "nd" : 3 === t ? "rd" : "th")
}
}),
r.lang = k("moment.lang is deprecated. Use moment.locale instead.", bt),
r.langData = k("moment.langData is deprecated. Use moment.localeData instead.", mt);
var Pn = Math.abs;
function Bn(e, t, n, r) {
var i = $t(t, n);
return e._milliseconds += r * i._milliseconds,
e._days += r * i._days,
e._months += r * i._months,
e._bubble()
}
function Fn(e) {
return e < 0 ? Math.floor(e) : Math.ceil(e)
}
function Vn(e) {
return 4800 * e / 146097
}
function Wn(e) {
return 146097 * e / 4800
}
function qn(e) {
return function() {
return this.as(e)
}
}
var Hn = qn("ms")
, Un = qn("s")
, Xn = qn("m")
, Gn = qn("h")
, Kn = qn("d")
, Yn = qn("w")
, Qn = qn("M")
, Jn = qn("Q")
, Zn = qn("y");
function $n(e) {
return function() {
return this.isValid() ? this._data[e] : NaN
}
}
var er = $n("milliseconds")
, tr = $n("seconds")
, nr = $n("minutes")
, rr = $n("hours")
, ir = $n("days")
, or = $n("months")
, ar = $n("years");
var lr = Math.round
, sr = {
ss: 44,
s: 45,
m: 45,
h: 22,
d: 26,
w: null,
M: 11
};
function cr(e, t, n, r, i) {
return i.relativeTime(t || 1, !!n, e, r)
}
var ur = Math.abs;
function dr(e) {
return (e > 0) - (e < 0) || +e
}
function pr() {
if (!this.isValid())
return this.localeData().invalidDate();
var e, t, n, r, i, o, a, l, s = ur(this._milliseconds) / 1e3, c = ur(this._days), u = ur(this._months), d = this.asSeconds();
return d ? (e = X(s / 60),
t = X(e / 60),
s %= 60,
e %= 60,
n = X(u / 12),
u %= 12,
r = s ? s.toFixed(3).replace(/\.?0+$/, "") : "",
i = d < 0 ? "-" : "",
o = dr(this._months) !== dr(d) ? "-" : "",
a = dr(this._days) !== dr(d) ? "-" : "",
l = dr(this._milliseconds) !== dr(d) ? "-" : "",
i + "P" + (n ? o + n + "Y" : "") + (u ? o + u + "M" : "") + (c ? a + c + "D" : "") + (t || e || s ? "T" : "") + (t ? l + t + "H" : "") + (e ? l + e + "M" : "") + (s ? l + r + "S" : "")) : "P0D"
}
var hr = Wt.prototype;
return hr.isValid = function() {
return this._isValid
}
,
hr.abs = function() {
var e = this._data;
return this._milliseconds = Pn(this._milliseconds),
this._days = Pn(this._days),
this._months = Pn(this._months),
e.milliseconds = Pn(e.milliseconds),
e.seconds = Pn(e.seconds),
e.minutes = Pn(e.minutes),
e.hours = Pn(e.hours),
e.months = Pn(e.months),
e.years = Pn(e.years),
this
}
,
hr.add = function(e, t) {
return Bn(this, e, t, 1)
}
,
hr.subtract = function(e, t) {
return Bn(this, e, t, -1)
}
,
hr.as = function(e) {
if (!this.isValid())
return NaN;
var t, n, r = this._milliseconds;
if ("month" === (e = V(e)) || "quarter" === e || "year" === e)
switch (t = this._days + r / 864e5,
n = this._months + Vn(t),
e) {
case "month":
return n;
case "quarter":
return n / 3;
case "year":
return n / 12
}
else
switch (t = this._days + Math.round(Wn(this._months)),
e) {
case "week":
return t / 7 + r / 6048e5;
case "day":
return t + r / 864e5;
case "hour":
return 24 * t + r / 36e5;
case "minute":
return 1440 * t + r / 6e4;
case "second":
return 86400 * t + r / 1e3;
case "millisecond":
return Math.floor(864e5 * t) + r;
default:
throw new Error("Unknown unit " + e)
}
}
,
hr.asMilliseconds = Hn,
hr.asSeconds = Un,
hr.asMinutes = Xn,
hr.asHours = Gn,
hr.asDays = Kn,
hr.asWeeks = Yn,
hr.asMonths = Qn,
hr.asQuarters = Jn,
hr.asYears = Zn,
hr.valueOf = function() {
return this.isValid() ? this._milliseconds + 864e5 * this._days + this._months % 12 * 2592e6 + 31536e6 * G(this._months / 12) : NaN
}
,
hr._bubble = function() {
var e, t, n, r, i, o = this._milliseconds, a = this._days, l = this._months, s = this._data;
return o >= 0 && a >= 0 && l >= 0 || o <= 0 && a <= 0 && l <= 0 || (o += 864e5 * Fn(Wn(l) + a),
a = 0,
l = 0),
s.milliseconds = o % 1e3,
e = X(o / 1e3),
s.seconds = e % 60,
t = X(e / 60),
s.minutes = t % 60,
n = X(t / 60),
s.hours = n % 24,
a += X(n / 24),
l += i = X(Vn(a)),
a -= Fn(Wn(i)),
r = X(l / 12),
l %= 12,
s.days = a,
s.months = l,
s.years = r,
this
}
,
hr.clone = function() {
return $t(this)
}
,
hr.get = function(e) {
return e = V(e),
this.isValid() ? this[e + "s"]() : NaN
}
,
hr.milliseconds = er,
hr.seconds = tr,
hr.minutes = nr,
hr.hours = rr,
hr.days = ir,
hr.weeks = function() {
return X(this.days() / 7)
}
,
hr.months = or,
hr.years = ar,
hr.humanize = function(e, t) {
if (!this.isValid())
return this.localeData().invalidDate();
var n, r, i = !1, o = sr;
return "object" == typeof e && (t = e,
e = !1),
"boolean" == typeof e && (i = e),
"object" == typeof t && (o = Object.assign({}, sr, t),
null != t.s && null == t.ss && (o.ss = t.s - 1)),
r = function(e, t, n, r) {
var i = $t(e).abs()
, o = lr(i.as("s"))
, a = lr(i.as("m"))
, l = lr(i.as("h"))
, s = lr(i.as("d"))
, c = lr(i.as("M"))
, u = lr(i.as("w"))
, d = lr(i.as("y"))
, p = o <= n.ss && ["s", o] || o < n.s && ["ss", o] || a <= 1 && ["m"] || a < n.m && ["mm", a] || l <= 1 && ["h"] || l < n.h && ["hh", l] || s <= 1 && ["d"] || s < n.d && ["dd", s];
return null != n.w && (p = p || u <= 1 && ["w"] || u < n.w && ["ww", u]),
(p = p || c <= 1 && ["M"] || c < n.M && ["MM", c] || d <= 1 && ["y"] || ["yy", d])[2] = t,
p[3] = +e > 0,
p[4] = r,
cr.apply(null, p)
}(this, !i, o, n = this.localeData()),
i && (r = n.pastFuture(+this, r)),
n.postformat(r)
}
,
hr.toISOString = pr,
hr.toString = pr,
hr.toJSON = pr,
hr.locale = dn,
hr.localeData = hn,
hr.toIsoString = k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", pr),
hr.lang = pn,
D("X", 0, 0, "unix"),
D("x", 0, 0, "valueOf"),
fe("x", ue),
fe("X", /[+-]?\d+(\.\d{1,3})?/),
ve("X", (function(e, t, n) {
n._d = new Date(1e3 * parseFloat(e))
}
)),
ve("x", (function(e, t, n) {
n._d = new Date(G(e))
}
)),
r.version = "2.29.1",
function(e) {
t = e
}(Lt),
r.fn = In,
r.min = function() {
return Bt("isBefore", [].slice.call(arguments, 0))
}
,
r.max = function() {
return Bt("isAfter", [].slice.call(arguments, 0))
}
,
r.now = function() {
return Date.now ? Date.now() : +new Date
}
,
r.utc = h,
r.unix = function(e) {
return Lt(1e3 * e)
}
,
r.months = function(e, t) {
return Ln(e, t, "months")
}
,
r.isDate = u,
r.locale = bt,
r.invalid = g,
r.duration = $t,
r.isMoment = O,
r.weekdays = function(e, t, n) {
return Rn(e, t, n, "weekdays")
}
,
r.parseZone = function() {
return Lt.apply(null, arguments).parseZone()
}
,
r.localeData = mt,
r.isDuration = qt,
r.monthsShort = function(e, t) {
return Ln(e, t, "monthsShort")
}
,
r.weekdaysMin = function(e, t, n) {
return Rn(e, t, n, "weekdaysMin")
}
,
r.defineLocale = gt,
r.updateLocale = function(e, t) {
if (null != t) {
var n, r, i = ct;
null != ut[e] && null != ut[e].parentLocale ? ut[e].set(S(ut[e]._config, t)) : (null != (r = ft(e)) && (i = r._config),
t = S(i, t),
null == r && (t.abbr = e),
(n = new A(t)).parentLocale = ut[e],
ut[e] = n),
bt(e)
} else
null != ut[e] && (null != ut[e].parentLocale ? (ut[e] = ut[e].parentLocale,
e === bt() && bt(e)) : null != ut[e] && delete ut[e]);
return ut[e]
}
,
r.locales = function() {
return w(ut)
}
,
r.weekdaysShort = function(e, t, n) {
return Rn(e, t, n, "weekdaysShort")
}
,
r.normalizeUnits = V,
r.relativeTimeRounding = function(e) {
return void 0 === e ? lr : "function" == typeof e && (lr = e,
!0)
}
,
r.relativeTimeThreshold = function(e, t) {
return void 0 !== sr[e] && (void 0 === t ? sr[e] : (sr[e] = t,
"s" === e && (sr.ss = t - 1),
!0))
}
,
r.calendarFormat = function(e, t) {
var n = e.diff(t, "days", !0);
return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ? "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse"
}
,
r.prototype = In,
r.HTML5_FMT = {
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
DATE: "YYYY-MM-DD",
TIME: "HH:mm",
TIME_SECONDS: "HH:mm:ss",
TIME_MS: "HH:mm:ss.SSS",
WEEK: "GGGG-[W]WW",
MONTH: "YYYY-MM"
},
r
}()
}
).call(this, n(147)(e))
}
, function(e, t) {
var n = Array.prototype.join;
e.exports = function(e, t) {
return null == e ? "" : n.call(e, t)
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
}
)),
n.d(t, "b", (function() {
return i
}
));
var r = "finishReason"
, i = ["heartbeatFailed", "idleTimeout", "documentHidden"]
}
, , function(e, t, n) {
var r = n(367)
, i = n(370);
e.exports = function(e, t) {
var n = i(e, t);
return r(n) ? n : void 0
}
}
, function(e, t, n) {
var r = n(250)
, i = n(233)
, o = n(83);
e.exports = function(e) {
return o(e) ? r(e) : i(e)
}
}
, function(e, t, n) {
var r = n(482)
, i = n(485)
, o = n(126)
, a = n(16)
, l = n(489);
e.exports = function(e) {
return "function" == typeof e ? e : null == e ? o : "object" == typeof e ? a(e) ? i(e[0], e[1]) : r(e) : l(e)
}
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "b", (function() {
return b
}
)),
n.d(t, "a", (function() {
return g
}
));
var r = n(28)
, i = n(115)
, o = n(174)
, a = n(39)
, l = n(71)
, s = n(283)
, c = n(110)
, u = n(111)
, d = n(36);
function p() {
var e = this.getScope();
if (e) {
var t = e.getSpan();
if (t)
return {
"sentry-trace": t.toTraceparent()
}
}
return {}
}
function h(e, t, n) {
return Object(d.c)(t) ? void 0 !== e.sampled ? (e.setMetadata({
transactionSampling: {
method: o.a.Explicit
}
}),
e) : ("function" == typeof t.tracesSampler ? (r = t.tracesSampler(n),
e.setMetadata({
transactionSampling: {
method: o.a.Sampler,
rate: Number(r)
}
})) : void 0 !== n.parentSampled ? (r = n.parentSampled,
e.setMetadata({
transactionSampling: {
method: o.a.Inheritance
}
})) : (r = t.tracesSampleRate,
e.setMetadata({
transactionSampling: {
method: o.a.Rate,
rate: Number(r)
}
})),
function(e) {
return isNaN(e) || "number" != typeof e && "boolean" != typeof e ? (a.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got " + JSON.stringify(e) + " of type " + JSON.stringify(typeof e) + "."),
!1) : !(e < 0 || e > 1) || (a.b.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got " + e + "."),
!1)
}(r) ? r ? (e.sampled = Math.random() < r,
e.sampled ? (a.b.log("[Tracing] starting " + e.op + " transaction - " + e.name),
e) : (a.b.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = " + Number(r) + ")"),
e)) : (a.b.log("[Tracing] Discarding transaction because " + ("function" == typeof t.tracesSampler ? "tracesSampler returned 0 or false" : "a negative sampling decision was inherited or tracesSampleRate is set to 0")),
e.sampled = !1,
e) : (a.b.warn("[Tracing] Discarding transaction because of invalid sample rate."),
e.sampled = !1,
e)) : (e.sampled = !1,
e);
var r
}
function f(e, t) {
var n, i, o = (null === (n = this.getClient()) || void 0 === n ? void 0 : n.getOptions()) || {}, a = new u.a(e,this);
return (a = h(a, o, Object(r.a)({
parentSampled: e.parentSampled,
transactionContext: e
}, t))).sampled && a.initSpanRecorder(null === (i = o._experiments) || void 0 === i ? void 0 : i.maxSpans),
a
}
function b(e, t, n, i, o) {
var a, l, s = (null === (a = e.getClient()) || void 0 === a ? void 0 : a.getOptions()) || {}, u = new c.b(t,e,n,i);
return (u = h(u, s, Object(r.a)({
parentSampled: t.parentSampled,
transactionContext: t
}, o))).sampled && u.initSpanRecorder(null === (l = s._experiments) || void 0 === l ? void 0 : l.maxSpans),
u
}
function g() {
!function() {
var e = Object(i.c)();
e.__SENTRY__ && (e.__SENTRY__.extensions = e.__SENTRY__.extensions || {},
e.__SENTRY__.extensions.startTransaction || (e.__SENTRY__.extensions.startTransaction = f),
e.__SENTRY__.extensions.traceHeaders || (e.__SENTRY__.extensions.traceHeaders = p))
}(),
Object(l.b)() && function() {
var t = Object(i.c)();
if (t.__SENTRY__) {
var n = {
mongodb: function() {
return new (Object(l.a)(e, "./integrations/node/mongo").Mongo)
},
mongoose: function() {
return new (Object(l.a)(e, "./integrations/node/mongo").Mongo)({
mongoose: !0
})
},
mysql: function() {
return new (Object(l.a)(e, "./integrations/node/mysql").Mysql)
},
pg: function() {
return new (Object(l.a)(e, "./integrations/node/postgres").Postgres)
}
}
, o = Object.keys(n).filter((function(e) {
return !!Object(l.c)(e)
}
)).map((function(e) {
try {
return n[e]()
} catch (e) {
return
}
}
)).filter((function(e) {
return e
}
));
o.length > 0 && (t.__SENTRY__.integrations = Object(r.e)(t.__SENTRY__.integrations || [], o))
}
}(),
Object(s.a)()
}
}
).call(this, n(106)(e))
}
, function(e, t, n) {
"use strict";
n.d(t, "b", (function() {
return s
}
)),
n.d(t, "a", (function() {
return c
}
));
var r = n(28)
, i = n(211)
, o = n(114)
, a = n(62)
, l = n(49)
, s = function() {
function e(e) {
void 0 === e && (e = 1e3),
this.spans = [],
this._maxlen = e
}
return e.prototype.add = function(e) {
this.spans.length > this._maxlen ? e.spanRecorder = void 0 : this.spans.push(e)
}
,
e
}()
, c = function() {
function e(e) {
if (this.traceId = Object(i.g)(),
this.spanId = Object(i.g)().substring(16),
this.startTimestamp = Object(o.d)(),
this.tags = {},
this.data = {},
!e)
return this;
e.traceId && (this.traceId = e.traceId),
e.spanId && (this.spanId = e.spanId),
e.parentSpanId && (this.parentSpanId = e.parentSpanId),
"sampled"in e && (this.sampled = e.sampled),
e.op && (this.op = e.op),
e.description && (this.description = e.description),
e.data && (this.data = e.data),
e.tags && (this.tags = e.tags),
e.status && (this.status = e.status),
e.startTimestamp && (this.startTimestamp = e.startTimestamp),
e.endTimestamp && (this.endTimestamp = e.endTimestamp)
}
return e.prototype.child = function(e) {
return this.startChild(e)
}
,
e.prototype.startChild = function(t) {
var n = new e(Object(r.a)(Object(r.a)({}, t), {
parentSpanId: this.spanId,
sampled: this.sampled,
traceId: this.traceId
}));
return n.spanRecorder = this.spanRecorder,
n.spanRecorder && n.spanRecorder.add(n),
n.transaction = this.transaction,
n
}
,
e.prototype.setTag = function(e, t) {
var n;
return this.tags = Object(r.a)(Object(r.a)({}, this.tags), ((n = {})[e] = t,
n)),
this
}
,
e.prototype.setData = function(e, t) {
var n;
return this.data = Object(r.a)(Object(r.a)({}, this.data), ((n = {})[e] = t,
n)),
this
}
,
e.prototype.setStatus = function(e) {
return this.status = e,
this
}
,
e.prototype.setHttpStatus = function(e) {
this.setTag("http.status_code", String(e));
var t = l.a.fromHttpCode(e);
return t !== l.a.UnknownError && this.setStatus(t),
this
}
,
e.prototype.isSuccess = function() {
return this.status === l.a.Ok
}
,
e.prototype.finish = function(e) {
this.endTimestamp = "number" == typeof e ? e : Object(o.d)()
}
,
e.prototype.toTraceparent = function() {
var e = "";
return void 0 !== this.sampled && (e = this.sampled ? "-1" : "-0"),
this.traceId + "-" + this.spanId + e
}
,
e.prototype.toContext = function() {
return Object(a.a)({
data: this.data,
description: this.description,
endTimestamp: this.endTimestamp,
op: this.op,
parentSpanId: this.parentSpanId,
sampled: this.sampled,
spanId: this.spanId,
startTimestamp: this.startTimestamp,
status: this.status,
tags: this.tags,
traceId: this.traceId
})
}
,
e.prototype.updateWithContext = function(e) {
var t, n, r, i, o;
return this.data = null !== (t = e.data) && void 0 !== t ? t : {},
this.description = e.description,
this.endTimestamp = e.endTimestamp,
this.op = e.op,
this.parentSpanId = e.parentSpanId,
this.sampled = e.sampled,
this.spanId = null !== (n = e.spanId) && void 0 !== n ? n : this.spanId,
this.startTimestamp = null !== (r = e.startTimestamp) && void 0 !== r ? r : this.startTimestamp,
this.status = e.status,
this.tags = null !== (i = e.tags) && void 0 !== i ? i : {},
this.traceId = null !== (o = e.traceId) && void 0 !== o ? o : this.traceId,
this
}
,
e.prototype.getTraceContext = function() {
return Object(a.a)({
data: Object.keys(this.data).length > 0 ? this.data : void 0,
description: this.description,
op: this.op,
parent_span_id: this.parentSpanId,
span_id: this.spanId,
status: this.status,
tags: Object.keys(this.tags).length > 0 ? this.tags : void 0,
trace_id: this.traceId
})
}
,
e.prototype.toJSON = function() {
return Object(a.a)({
data: Object.keys(this.data).length > 0 ? this.data : void 0,
description: this.description,
op: this.op,
parent_span_id: this.parentSpanId,
span_id: this.spanId,
start_timestamp: this.startTimestamp,
status: this.status,
tags: Object.keys(this.tags).length > 0 ? this.tags : void 0,
timestamp: this.endTimestamp,
trace_id: this.traceId
})
}
,
e
}()
}
, function(e, t, n) {
"use strict";
e.exports = n(380)
}
, function(e, t, n) {
var r = n(405)
, i = n(96);
e.exports = function(e) {
return null == e ? [] : r(e, i(e))
}
}
, function(e, t, n) {
"use strict";
(function(e) {
var r = n(47)
, i = n(299)
, o = "object" == typeof exports && exports && !exports.nodeType && exports
, a = o && "object" == typeof e && e && !e.nodeType && e
, l = a && a.exports === o ? r.a.Buffer : void 0
, s = (l ? l.isBuffer : void 0) || i.a;
t.a = s
}
).call(this, n(106)(e))
}
, function(e, t, n) {
"use strict";
n.d(t, "d", (function() {
return i
}
)),
n.d(t, "c", (function() {
return o
}
)),
n.d(t, "b", (function() {
return a
}
)),
n.d(t, "a", (function() {
return l
}
));
var r = n(44);
function i(e, t) {
return void 0 === t && (t = 0),
"string" != typeof e || 0 === t || e.length <= t ? e : e.substr(0, t) + "..."
}
function o(e, t) {
var n = e
, r = n.length;
if (r <= 150)
return n;
t > r && (t = r);
var i = Math.max(t - 60, 0);
i < 5 && (i = 0);
var o = Math.min(i + 140, r);
return o > r - 5 && (o = r),
o === r && (i = Math.max(o - 140, 0)),
n = n.slice(i, o),
i > 0 && (n = "'{snip} " + n),
o < r && (n += " {snip}"),
n
}
function a(e, t) {
if (!Array.isArray(e))
return "";
for (var n = [], r = 0; r < e.length; r++) {
var i = e[r];
try {
n.push(String(i))
} catch (e) {
n.push("[value cannot be serialized]")
}
}
return n.join(t)
}
function l(e, t) {
return !!Object(r.k)(e) && (Object(r.j)(t) ? t.test(e) : "string" == typeof t && -1 !== e.indexOf(t))
}
}
, , , function(e, t) {
e.exports = function(e) {
if (!e.webpackPolyfill) {
var t = Object.create(e);
t.children || (t.children = []),
Object.defineProperty(t, "loaded", {
enumerable: !0,
get: function() {
return t.l
}
}),
Object.defineProperty(t, "id", {
enumerable: !0,
get: function() {
return t.i
}
}),
Object.defineProperty(t, "exports", {
enumerable: !0
}),
t.webpackPolyfill = 1
}
return t
}
}
, function(e, t, n) {
var r = n(70).Symbol;
e.exports = r
}
, function(e, t, n) {
var r = n(377);
e.exports = function(e) {
var t = r(e)
, n = t % 1;
return t == t ? n ? t - n : t : 0
}
}
, function(e, t, n) {
var r = n(161)
, i = n(160);
e.exports = function(e, t, n, o) {
var a = !n;
n || (n = {});
for (var l = -1, s = t.length; ++l < s; ) {
var c = t[l]
, u = o ? o(n[c], e[c], c, n, e) : void 0;
void 0 === u && (u = e[c]),
a ? i(n, c, u) : r(n, c, u)
}
return n
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return u
}
)),
n.d(t, "b", (function() {
return p
}
));
var r = n(28)
, i = n(114)
, o = n(39)
, a = n(93)
, l = n(99)
, s = n(49)
, c = n(111)
, u = 1e3
, d = function(e) {
function t(t, n, r, i) {
void 0 === r && (r = "");
var o = e.call(this, i) || this;
return o._pushActivity = t,
o._popActivity = n,
o.transactionSpanId = r,
o
}
return Object(r.b)(t, e),
t.prototype.add = function(t) {
var n = this;
t.spanId !== this.transactionSpanId && (t.finish = function(e) {
t.endTimestamp = "number" == typeof e ? e : Object(i.d)(),
n._popActivity(t.spanId)
}
,
void 0 === t.endTimestamp && this._pushActivity(t.spanId)),
e.prototype.add.call(this, t)
}
,
t
}(l.b)
, p = function(e) {
function t(t, n, r, i) {
void 0 === r && (r = u),
void 0 === i && (i = !1);
var a = e.call(this, t, n) || this;
return a._idleHub = n,
a._idleTimeout = r,
a._onScope = i,
a.activities = {},
a._heartbeatCounter = 0,
a._finished = !1,
a._beforeFinishCallbacks = [],
n && i && (h(n),
o.b.log("Setting idle transaction on scope. Span ID: " + a.spanId),
n.configureScope((function(e) {
return e.setSpan(a)
}
))),
a._initTimeout = setTimeout((function() {
a._finished || a.finish()
}
), a._idleTimeout),
a
}
return Object(r.b)(t, e),
t.prototype.finish = function(t) {
var n, a, l = this;
if (void 0 === t && (t = Object(i.d)()),
this._finished = !0,
this.activities = {},
this.spanRecorder) {
o.b.log("[Tracing] finishing IdleTransaction", new Date(1e3 * t).toISOString(), this.op);
try {
for (var c = Object(r.f)(this._beforeFinishCallbacks), u = c.next(); !u.done; u = c.next())
(0,
u.value)(this, t)
} catch (e) {
n = {
error: e
}
} finally {
try {
u && !u.done && (a = c.return) && a.call(c)
} finally {
if (n)
throw n.error
}
}
this.spanRecorder.spans = this.spanRecorder.spans.filter((function(e) {
if (e.spanId === l.spanId)
return !0;
e.endTimestamp || (e.endTimestamp = t,
e.setStatus(s.a.Cancelled),
o.b.log("[Tracing] cancelling span since transaction ended early", JSON.stringify(e, void 0, 2)));
var n = e.startTimestamp < t;
return n || o.b.log("[Tracing] discarding Span since it happened after Transaction was finished", JSON.stringify(e, void 0, 2)),
n
}
)),
o.b.log("[Tracing] flushing IdleTransaction")
} else
o.b.log("[Tracing] No active IdleTransaction");
return this._onScope && h(this._idleHub),
e.prototype.finish.call(this, t)
}
,
t.prototype.registerBeforeFinishCallback = function(e) {
this._beforeFinishCallbacks.push(e)
}
,
t.prototype.initSpanRecorder = function(e) {
var t = this;
this.spanRecorder || (this.spanRecorder = new d((function(e) {
t._finished || t._pushActivity(e)
}
),(function(e) {
t._finished || t._popActivity(e)
}
),this.spanId,e),
o.b.log("Starting heartbeat"),
this._pingHeartbeat()),
this.spanRecorder.add(this)
}
,
t.prototype._pushActivity = function(e) {
this._initTimeout && (clearTimeout(this._initTimeout),
this._initTimeout = void 0),
o.b.log("[Tracing] pushActivity: " + e),
this.activities[e] = !0,
o.b.log("[Tracing] new activities count", Object.keys(this.activities).length)
}
,
t.prototype._popActivity = function(e) {
var t = this;
if (this.activities[e] && (o.b.log("[Tracing] popActivity " + e),
delete this.activities[e],
o.b.log("[Tracing] new activities count", Object.keys(this.activities).length)),
0 === Object.keys(this.activities).length) {
var n = this._idleTimeout
, r = Object(i.d)() + n / 1e3;
setTimeout((function() {
t._finished || (t.setTag(a.a, a.b[1]),
t.finish(r))
}
), n)
}
}
,
t.prototype._beat = function() {
if (!this._finished) {
var e = Object.keys(this.activities).join("");
e === this._prevHeartbeatString ? this._heartbeatCounter += 1 : this._heartbeatCounter = 1,
this._prevHeartbeatString = e,
this._heartbeatCounter >= 3 ? (o.b.log("[Tracing] Transaction finished because of no change for 3 heart beats"),
this.setStatus(s.a.DeadlineExceeded),
this.setTag(a.a, a.b[0]),
this.finish()) : this._pingHeartbeat()
}
}
,
t.prototype._pingHeartbeat = function() {
var e = this;
o.b.log("pinging Heartbeat -> current counter: " + this._heartbeatCounter),
setTimeout((function() {
e._beat()
}
), 5e3)
}
,
t
}(c.a);
function h(e) {
if (e) {
var t = e.getScope();
t && t.getTransaction() && t.setSpan(void 0)
}
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return u
}
));
var r = n(28)
, i = n(115)
, o = n(548)
, a = n(44)
, l = n(39)
, s = n(62)
, c = n(99)
, u = function(e) {
function t(t, n) {
var r = e.call(this, t) || this;
return r._measurements = {},
r._hub = Object(i.b)(),
Object(a.g)(n, i.a) && (r._hub = n),
r.name = t.name || "",
r.metadata = t.metadata || {},
r._trimEnd = t.trimEnd,
r.transaction = r,
r
}
return Object(r.b)(t, e),
t.prototype.setName = function(e) {
this.name = e
}
,
t.prototype.initSpanRecorder = function(e) {
void 0 === e && (e = 1e3),
this.spanRecorder || (this.spanRecorder = new c.b(e)),
this.spanRecorder.add(this)
}
,
t.prototype.setMeasurements = function(e) {
this._measurements = Object(r.a)({}, e)
}
,
t.prototype.setMetadata = function(e) {
this.metadata = Object(r.a)(Object(r.a)({}, this.metadata), e)
}
,
t.prototype.finish = function(t) {
var n, r, i, a, s, c = this;
if (void 0 === this.endTimestamp) {
if (this.name || (l.b.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),
this.name = "<unlabeled transaction>"),
e.prototype.finish.call(this, t),
!0 !== this.sampled)
return l.b.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),
void (null === (s = null === (i = null === (n = this._hub.getClient()) || void 0 === n ? void 0 : (r = n).getTransport) || void 0 === i ? void 0 : (a = i.call(r)).recordLostEvent) || void 0 === s || s.call(a, o.a.SampleRate, "transaction"));
var u = this.spanRecorder ? this.spanRecorder.spans.filter((function(e) {
return e !== c && e.endTimestamp
}
)) : [];
this._trimEnd && u.length > 0 && (this.endTimestamp = u.reduce((function(e, t) {
return e.endTimestamp && t.endTimestamp ? e.endTimestamp > t.endTimestamp ? e : t : e
}
)).endTimestamp);
var d = {
contexts: {
trace: this.getTraceContext()
},
spans: u,
start_timestamp: this.startTimestamp,
tags: this.tags,
timestamp: this.endTimestamp,
transaction: this.name,
type: "transaction",
debug_meta: this.metadata
};
return Object.keys(this._measurements).length > 0 && (l.b.log("[Measurements] Adding measurements to transaction", JSON.stringify(this._measurements, void 0, 2)),
d.measurements = this._measurements),
l.b.log("[Tracing] Finishing " + this.op + " transaction: " + this.name + "."),
this._hub.captureEvent(d)
}
}
,
t.prototype.toContext = function() {
var t = e.prototype.toContext.call(this);
return Object(s.a)(Object(r.a)(Object(r.a)({}, t), {
name: this.name,
trimEnd: this._trimEnd
}))
}
,
t.prototype.updateWithContext = function(t) {
var n;
return e.prototype.updateWithContext.call(this, t),
this.name = null !== (n = t.name) && void 0 !== n ? n : "",
this._trimEnd = t.trimEnd,
this
}
,
t
}(c.a)
}
, function(e, t, n) {
var r = n(160)
, i = n(497)
, o = Object.prototype.hasOwnProperty
, a = i((function(e, t, n) {
o.call(e, n) ? e[n].push(t) : r(e, n, [t])
}
));
e.exports = a
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}
));
var r = n(87)
, i = n(164);
function o(e, t, n) {
return o = Object(i.a)() ? Reflect.construct : function(e, t, n) {
var i = [null];
i.push.apply(i, t);
var o = new (Function.bind.apply(e, i));
return n && Object(r.a)(o, n.prototype),
o
}
,
o.apply(null, arguments)
}
}
, function(e, t, n) {
"use strict";
(function(e) {
n.d(t, "b", (function() {
return s
}
)),
n.d(t, "c", (function() {
return c
}
)),
n.d(t, "d", (function() {
return u
}
)),
n.d(t, "a", (function() {
return d
}
));
var r = n(52)
, i = n(71)
, o = {
nowSeconds: function() {
return Date.now() / 1e3
}
}
, a = Object(i.b)() ? function() {
try {
return Object(i.a)(e, "perf_hooks").performance
} catch (e) {
return
}
}() : function() {
var e = Object(r.a)().performance;
if (e && e.now)
return {
now: function() {
return e.now()
},
timeOrigin: Date.now() - e.now()
}
}()
, l = void 0 === a ? o : {
nowSeconds: function() {
return (a.timeOrigin + a.now()) / 1e3
}
}
, s = o.nowSeconds.bind(o)
, c = l.nowSeconds.bind(l)
, u = c
, d = function() {
var e = Object(r.a)().performance;
if (e && e.now) {
var t = 36e5
, n = e.now()
, i = Date.now()
, o = e.timeOrigin ? Math.abs(e.timeOrigin + n - i) : t
, a = o < t
, l = e.timing && e.timing.navigationStart
, s = "number" == typeof l ? Math.abs(l + n - i) : t;
return a || s < t ? o <= s ? e.timeOrigin : l : i
}
}()
}
).call(this, n(106)(e))
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return h
}
)),
n.d(t, "c", (function() {
return f
}
)),
n.d(t, "b", (function() {
return g
}
));
var r = n(27)
, i = n(627)
, o = n(211)
, a = n(114)
, l = n(39)
, s = n(52)
, c = n(71)
, u = n(171)
, d = n(62)
, p = function() {
function e(e) {
this.errors = 0,
this.sid = Object(o.g)(),
this.duration = 0,
this.status = i.a.Ok,
this.init = !0,
this.ignoreDuration = !1;
var t = Object(a.c)();
this.timestamp = t,
this.started = t,
e && this.update(e)
}
return e.prototype.update = function(e) {
if (void 0 === e && (e = {}),
e.user && (!this.ipAddress && e.user.ip_address && (this.ipAddress = e.user.ip_address),
this.did || e.did || (this.did = e.user.id || e.user.email || e.user.username)),
this.timestamp = e.timestamp || Object(a.c)(),
e.ignoreDuration && (this.ignoreDuration = e.ignoreDuration),
e.sid && (this.sid = 32 === e.sid.length ? e.sid : Object(o.g)()),
void 0 !== e.init && (this.init = e.init),
!this.did && e.did && (this.did = "" + e.did),
"number" == typeof e.started && (this.started = e.started),
this.ignoreDuration)
this.duration = void 0;
else if ("number" == typeof e.duration)
this.duration = e.duration;
else {
var t = this.timestamp - this.started;
this.duration = t >= 0 ? t : 0
}
e.release && (this.release = e.release),
e.environment && (this.environment = e.environment),
!this.ipAddress && e.ipAddress && (this.ipAddress = e.ipAddress),
!this.userAgent && e.userAgent && (this.userAgent = e.userAgent),
"number" == typeof e.errors && (this.errors = e.errors),
e.status && (this.status = e.status)
}
,
e.prototype.close = function(e) {
e ? this.update({
status: e
}) : this.status === i.a.Ok ? this.update({
status: i.a.Exited
}) : this.update()
}
,
e.prototype.toJSON = function() {
return Object(d.a)({
sid: "" + this.sid,
init: this.init,
started: new Date(1e3 * this.started).toISOString(),
timestamp: new Date(1e3 * this.timestamp).toISOString(),
status: this.status,
errors: this.errors,
did: "number" == typeof this.did || "string" == typeof this.did ? "" + this.did : void 0,
duration: this.duration,
attrs: Object(d.a)({
release: this.release,
environment: this.environment,
ip_address: this.ipAddress,
user_agent: this.userAgent
})
})
}
,
e
}()
, h = function() {
function e(e, t, n) {
void 0 === t && (t = new u.a),
void 0 === n && (n = 4),
this._version = n,
this._stack = [{}],
this.getStackTop().scope = t,
e && this.bindClient(e)
}
return e.prototype.isOlderThan = function(e) {
return this._version < e
}
,
e.prototype.bindClient = function(e) {
this.getStackTop().client = e,
e && e.setupIntegrations && e.setupIntegrations()
}
,
e.prototype.pushScope = function() {
var e = u.a.clone(this.getScope());
return this.getStack().push({
client: this.getClient(),
scope: e
}),
e
}
,
e.prototype.popScope = function() {
return !(this.getStack().length <= 1 || !this.getStack().pop())
}
,
e.prototype.withScope = function(e) {
var t = this.pushScope();
try {
e(t)
} finally {
this.popScope()
}
}
,
e.prototype.getClient = function() {
return this.getStackTop().client
}
,
e.prototype.getScope = function() {
return this.getStackTop().scope
}
,
e.prototype.getStack = function() {
return this._stack
}
,
e.prototype.getStackTop = function() {
return this._stack[this._stack.length - 1]
}
,
e.prototype.captureException = function(e, t) {
var n = this._lastEventId = Object(o.g)()
, i = t;
if (!t) {
var a = void 0;
try {
throw new Error("Sentry syntheticException")
} catch (e) {
a = e
}
i = {
originalException: e,
syntheticException: a
}
}
return this._invokeClient("captureException", e, Object(r.a)(Object(r.a)({}, i), {
event_id: n
})),
n
}
,
e.prototype.captureMessage = function(e, t, n) {
var i = this._lastEventId = Object(o.g)()
, a = n;
if (!n) {
var l = void 0;
try {
throw new Error(e)
} catch (e) {
l = e
}
a = {
originalException: e,
syntheticException: l
}
}
return this._invokeClient("captureMessage", e, t, Object(r.a)(Object(r.a)({}, a), {
event_id: i
})),
i
}
,
e.prototype.captureEvent = function(e, t) {
var n = Object(o.g)();
return "transaction" !== e.type && (this._lastEventId = n),
this._invokeClient("captureEvent", e, Object(r.a)(Object(r.a)({}, t), {
event_id: n
})),
n
}
,
e.prototype.lastEventId = function() {
return this._lastEventId
}
,
e.prototype.addBreadcrumb = function(e, t) {
var n = this.getStackTop()
, i = n.scope
, o = n.client;
if (i && o) {
var s = o.getOptions && o.getOptions() || {}
, c = s.beforeBreadcrumb
, u = void 0 === c ? null : c
, d = s.maxBreadcrumbs
, p = void 0 === d ? 100 : d;
if (!(p <= 0)) {
var h = Object(a.b)()
, f = Object(r.a)({
timestamp: h
}, e)
, b = u ? Object(l.a)((function() {
return u(f, t)
}
)) : f;
null !== b && i.addBreadcrumb(b, p)
}
}
}
,
e.prototype.setUser = function(e) {
var t = this.getScope();
t && t.setUser(e)
}
,
e.prototype.setTags = function(e) {
var t = this.getScope();
t && t.setTags(e)
}
,
e.prototype.setExtras = function(e) {
var t = this.getScope();
t && t.setExtras(e)
}
,
e.prototype.setTag = function(e, t) {
var n = this.getScope();
n && n.setTag(e, t)
}
,
e.prototype.setExtra = function(e, t) {
var n = this.getScope();
n && n.setExtra(e, t)
}
,
e.prototype.setContext = function(e, t) {
var n = this.getScope();
n && n.setContext(e, t)
}
,
e.prototype.configureScope = function(e) {
var t = this.getStackTop()
, n = t.scope
, r = t.client;
n && r && e(n)
}
,
e.prototype.run = function(e) {
var t = b(this);
try {
e(this)
} finally {
b(t)
}
}
,
e.prototype.getIntegration = function(e) {
var t = this.getClient();
if (!t)
return null;
try {
return t.getIntegration(e)
} catch (t) {
return l.b.warn("Cannot retrieve integration " + e.id + " from the current Hub"),
null
}
}
,
e.prototype.startSpan = function(e) {
return this._callExtensionMethod("startSpan", e)
}
,
e.prototype.startTransaction = function(e, t) {
return this._callExtensionMethod("startTransaction", e, t)
}
,
e.prototype.traceHeaders = function() {
return this._callExtensionMethod("traceHeaders")
}
,
e.prototype.captureSession = function(e) {
if (void 0 === e && (e = !1),
e)
return this.endSession();
this._sendSessionUpdate()
}
,
e.prototype.endSession = function() {
var e, t, n, r, i;
null === (n = null === (t = null === (e = this.getStackTop()) || void 0 === e ? void 0 : e.scope) || void 0 === t ? void 0 : t.getSession()) || void 0 === n || n.close(),
this._sendSessionUpdate(),
null === (i = null === (r = this.getStackTop()) || void 0 === r ? void 0 : r.scope) || void 0 === i || i.setSession()
}
,
e.prototype.startSession = function(e) {
var t = this.getStackTop()
, n = t.scope
, o = t.client
, a = o && o.getOptions() || {}
, l = a.release
, c = a.environment
, u = (Object(s.a)().navigator || {}).userAgent
, d = new p(Object(r.a)(Object(r.a)(Object(r.a)({
release: l,
environment: c
}, n && {
user: n.getUser()
}), u && {
userAgent: u
}), e));
if (n) {
var h = n.getSession && n.getSession();
h && h.status === i.a.Ok && h.update({
status: i.a.Exited
}),
this.endSession(),
n.setSession(d)
}
return d
}
,
e.prototype._sendSessionUpdate = function() {
var e = this.getStackTop()
, t = e.scope
, n = e.client;
if (t) {
var r = t.getSession && t.getSession();
r && n && n.captureSession && n.captureSession(r)
}
}
,
e.prototype._invokeClient = function(e) {
for (var t, n = [], i = 1; i < arguments.length; i++)
n[i - 1] = arguments[i];
var o = this.getStackTop()
, a = o.scope
, l = o.client;
l && l[e] && (t = l)[e].apply(t, Object(r.b)(n, [a]))
}
,
e.prototype._callExtensionMethod = function(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = f().__SENTRY__;
if (r && r.extensions && "function" == typeof r.extensions[e])
return r.extensions[e].apply(this, t);
l.b.warn("Extension method " + e + " couldn't be found, doing nothing.")
}
,
e
}();
function f() {
var e = Object(s.a)();
return e.__SENTRY__ = e.__SENTRY__ || {
extensions: {},
hub: void 0
},
e
}
function b(e) {
var t = f()
, n = v(t);
return y(t, e),
n
}
function g() {
var e = f();
return m(e) && !v(e).isOlderThan(4) || y(e, new h),
Object(c.b)() ? function(e) {
var t, n, r;
try {
var i = null === (r = null === (n = null === (t = f().__SENTRY__) || void 0 === t ? void 0 : t.extensions) || void 0 === n ? void 0 : n.domain) || void 0 === r ? void 0 : r.active;
if (!i)
return v(e);
if (!m(i) || v(i).isOlderThan(4)) {
var o = v(e).getStackTop();
y(i, new h(o.client,u.a.clone(o.scope)))
}
return v(i)
} catch (t) {
return v(e)
}
}(e) : v(e)
}
function m(e) {
return !!(e && e.__SENTRY__ && e.__SENTRY__.hub)
}
function v(e) {
return e && e.__SENTRY__ && e.__SENTRY__.hub || (e.__SENTRY__ = e.__SENTRY__ || {},
e.__SENTRY__.hub = new h),
e.__SENTRY__.hub
}
function y(e, t) {
return !!e && (e.__SENTRY__ = e.__SENTRY__ || {},
e.__SENTRY__.hub = t,
!0)
}
}
, function(e, t, n) {
var r = n(74)
, i = n(64);
e.exports = function(e) {
return "symbol" == typeof e || i(e) && "[object Symbol]" == r(e)
}
}
, function(e, t, n) {
var r = n(118)
, i = n(83)
, o = n(145)
, a = n(30);
e.exports = function(e, t, n) {
if (!a(n))
return !1;
var l = typeof t;
return !!("number" == l ? i(n) && o(t, n.length) : "string" == l && t in n) && r(n[t], e)
}
}
, function(e, t) {
e.exports = function(e, t) {
return e === t || e != e && t != t
}
}
, function(e, t) {
e.exports = function(e) {
return function(t) {
return e(t)
}
}
}
, function(e, t) {
var n = Object.prototype;
e.exports = function(e) {
var t = e && e.constructor;
return e === ("function" == typeof t && t.prototype || n)
}
}
, function(e, t, n) {
var r = n(366)
, i = n(194)
, o = n(371)
, a = n(236)
, l = n(372)
, s = n(74)
, c = n(235)
, u = "[object Map]"
, d = "[object Promise]"
, p = "[object Set]"
, h = "[object WeakMap]"
, f = "[object DataView]"
, b = c(r)
, g = c(i)
, m = c(o)
, v = c(a)
, y = c(l)
, x = s;
(r && x(new r(new ArrayBuffer(1))) != f || i && x(new i) != u || o && x(o.resolve()) != d || a && x(new a) != p || l && x(new l) != h) && (x = function(e) {
var t = s(e)
, n = "[object Object]" == t ? e.constructor : void 0
, r = n ? c(n) : "";
if (r)
switch (r) {
case b:
return f;
case g:
return u;
case m:
return d;
case v:
return p;
case y:
return h
}
return t
}
),
e.exports = x
}
, function(e, t, n) {
var r = n(373)
, i = n(64)
, o = Object.prototype
, a = o.hasOwnProperty
, l = o.propertyIsEnumerable
, s = r(function() {
return arguments
}()) ? r : function(e) {
return i(e) && a.call(e, "callee") && !l.call(e, "callee")
}
;
e.exports = s
}
, function(e, t, n) {
(function(e) {
var r = n(70)
, i = n(374)
, o = t && !t.nodeType && t
, a = o && "object" == typeof e && e && !e.nodeType && e
, l = a && a.exports === o ? r.Buffer : void 0
, s = (l ? l.isBuffer : void 0) || i;
e.exports = s
}
).call(this, n(147)(e))
}
, function(e, t, n) {
var r = n(116);
e.exports = function(e) {
if ("string" == typeof e || r(e))
return e;
var t = e + "";
return "0" == t && 1 / e == -1 / 0 ? "-0" : t
}
}
, function(e, t, n) {
var r = n(250)
, i = n(470)
, o = n(83);
e.exports = function(e) {
return o(e) ? r(e, !0) : i(e)
}
}
, function(e, t) {
e.exports = function(e) {
return e
}
}
, function(e, t, n) {
"use strict";
function r(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++)
r[n] = e[n];
return r
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
var r = n(153)((function(e, t, n) {
return e + (n ? "-" : "") + t.toLowerCase()
}
));
e.exports = r
}
, function(e, t, n) {
var r = n(248)
, i = n(481)
, o = n(271)
, a = n(117)
, l = o((function(e, t) {
if (null == e)
return [];
var n = t.length;
return n > 1 && a(e, t[0], t[1]) ? t = [] : n > 2 && a(t[0], t[1], t[2]) && (t = [t[0]]),
i(e, r(t, 1), [])
}
));
e.exports = l
}
, function(e, t, n) {
var r = n(277)("ceil");
e.exports = r
}
, function(e, t) {
e.exports = function(e) {
var t = null == e ? 0 : e.length;
return t ? e[t - 1] : void 0
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
));
var r = n(44)
, i = function() {
function e(e) {
var t = this;
this._state = "PENDING",
this._handlers = [],
this._resolve = function(e) {
t._setResult("RESOLVED", e)
}
,
this._reject = function(e) {
t._setResult("REJECTED", e)
}
,
this._setResult = function(e, n) {
"PENDING" === t._state && (Object(r.m)(n) ? n.then(t._resolve, t._reject) : (t._state = e,
t._value = n,
t._executeHandlers()))
}
,
this._attachHandler = function(e) {
t._handlers = t._handlers.concat(e),
t._executeHandlers()
}
,
this._executeHandlers = function() {
if ("PENDING" !== t._state) {
var e = t._handlers.slice();
t._handlers = [],
e.forEach((function(e) {
e.done || ("RESOLVED" === t._state && e.onfulfilled && e.onfulfilled(t._value),
"REJECTED" === t._state && e.onrejected && e.onrejected(t._value),
e.done = !0)
}
))
}
}
;
try {
e(this._resolve, this._reject)
} catch (e) {
this._reject(e)
}
}
return e.resolve = function(t) {
return new e((function(e) {
e(t)
}
))
}
,
e.reject = function(t) {
return new e((function(e, n) {
n(t)
}
))
}
,
e.all = function(t) {
return new e((function(n, r) {
if (Array.isArray(t))
if (0 !== t.length) {
var i = t.length
, o = [];
t.forEach((function(t, a) {
e.resolve(t).then((function(e) {
o[a] = e,
0 == (i -= 1) && n(o)
}
)).then(null, r)
}
))
} else
n([]);
else
r(new TypeError("Promise.all requires an array as input."))
}
))
}
,
e.prototype.then = function(t, n) {
var r = this;
return new e((function(e, i) {
r._attachHandler({
done: !1,
onfulfilled: function(n) {
if (t)
try {
return void e(t(n))
} catch (e) {
return void i(e)
}
else
e(n)
},
onrejected: function(t) {
if (n)
try {
return void e(n(t))
} catch (e) {
return void i(e)
}
else
i(t)
}
})
}
))
}
,
e.prototype.catch = function(e) {
return this.then((function(e) {
return e
}
), e)
}
,
e.prototype.finally = function(t) {
var n = this;
return new e((function(e, r) {
var i, o;
return n.then((function(e) {
o = !1,
i = e,
t && t()
}
), (function(e) {
o = !0,
i = e,
t && t()
}
)).then((function() {
o ? r(i) : e(i)
}
))
}
))
}
,
e.prototype.toString = function() {
return "[object SyncPromise]"
}
,
e
}()
}
, function(e, t, n) {
var r = n(153)((function(e, t, n) {
return e + (n ? " " : "") + t.toLowerCase()
}
));
e.exports = r
}
, function(e, t, n) {
var r;
!function(i) {
var o = /^\s+/
, a = /\s+$/
, l = 0
, s = i.round
, c = i.min
, u = i.max
, d = i.random;
function p(e, t) {
if (t = t || {},
(e = e || "")instanceof p)
return e;
if (!(this instanceof p))
return new p(e,t);
var n = function(e) {
var t, n, r, l = {
r: 0,
g: 0,
b: 0
}, s = 1, d = null, p = null, h = null, f = !1, b = !1;
return "string" == typeof e && (e = function(e) {
e = e.replace(o, "").replace(a, "").toLowerCase();
var t, n = !1;
if (T[e])
e = T[e],
n = !0;
else if ("transparent" == e)
return {
r: 0,
g: 0,
b: 0,
a: 0,
format: "name"
};
return (t = F.rgb.exec(e)) ? {
r: t[1],
g: t[2],
b: t[3]
} : (t = F.rgba.exec(e)) ? {
r: t[1],
g: t[2],
b: t[3],
a: t[4]
} : (t = F.hsl.exec(e)) ? {
h: t[1],
s: t[2],
l: t[3]
} : (t = F.hsla.exec(e)) ? {
h: t[1],
s: t[2],
l: t[3],
a: t[4]
} : (t = F.hsv.exec(e)) ? {
h: t[1],
s: t[2],
v: t[3]
} : (t = F.hsva.exec(e)) ? {
h: t[1],
s: t[2],
v: t[3],
a: t[4]
} : (t = F.hex8.exec(e)) ? {
r: D(t[1]),
g: D(t[2]),
b: D(t[3]),
a: B(t[4]),
format: n ? "name" : "hex8"
} : (t = F.hex6.exec(e)) ? {
r: D(t[1]),
g: D(t[2]),
b: D(t[3]),
format: n ? "name" : "hex"
} : (t = F.hex4.exec(e)) ? {
r: D(t[1] + "" + t[1]),
g: D(t[2] + "" + t[2]),
b: D(t[3] + "" + t[3]),
a: B(t[4] + "" + t[4]),
format: n ? "name" : "hex8"
} : !!(t = F.hex3.exec(e)) && {
r: D(t[1] + "" + t[1]),
g: D(t[2] + "" + t[2]),
b: D(t[3] + "" + t[3]),
format: n ? "name" : "hex"
}
}(e)),
"object" == typeof e && (V(e.r) && V(e.g) && V(e.b) ? (t = e.r,
n = e.g,
r = e.b,
l = {
r: 255 * N(t, 255),
g: 255 * N(n, 255),
b: 255 * N(r, 255)
},
f = !0,
b = "%" === String(e.r).substr(-1) ? "prgb" : "rgb") : V(e.h) && V(e.s) && V(e.v) ? (d = R(e.s),
p = R(e.v),
l = function(e, t, n) {
e = 6 * N(e, 360),
t = N(t, 100),
n = N(n, 100);
var r = i.floor(e)
, o = e - r
, a = n * (1 - t)
, l = n * (1 - o * t)
, s = n * (1 - (1 - o) * t)
, c = r % 6;
return {
r: 255 * [n, l, a, a, s, n][c],
g: 255 * [s, n, n, l, a, a][c],
b: 255 * [a, a, s, n, n, l][c]
}
}(e.h, d, p),
f = !0,
b = "hsv") : V(e.h) && V(e.s) && V(e.l) && (d = R(e.s),
h = R(e.l),
l = function(e, t, n) {
var r, i, o;
function a(e, t, n) {
return n < 0 && (n += 1),
n > 1 && (n -= 1),
n < 1 / 6 ? e + 6 * (t - e) * n : n < .5 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e
}
if (e = N(e, 360),
t = N(t, 100),
n = N(n, 100),
0 === t)
r = i = o = n;
else {
var l = n < .5 ? n * (1 + t) : n + t - n * t
, s = 2 * n - l;
r = a(s, l, e + 1 / 3),
i = a(s, l, e),
o = a(s, l, e - 1 / 3)
}
return {
r: 255 * r,
g: 255 * i,
b: 255 * o
}
}(e.h, d, h),
f = !0,
b = "hsl"),
e.hasOwnProperty("a") && (s = e.a)),
s = I(s),
{
ok: f,
format: e.format || b,
r: c(255, u(l.r, 0)),
g: c(255, u(l.g, 0)),
b: c(255, u(l.b, 0)),
a: s
}
}(e);
this._originalInput = e,
this._r = n.r,
this._g = n.g,
this._b = n.b,
this._a = n.a,
this._roundA = s(100 * this._a) / 100,
this._format = t.format || n.format,
this._gradientType = t.gradientType,
this._r < 1 && (this._r = s(this._r)),
this._g < 1 && (this._g = s(this._g)),
this._b < 1 && (this._b = s(this._b)),
this._ok = n.ok,
this._tc_id = l++
}
function h(e, t, n) {
e = N(e, 255),
t = N(t, 255),
n = N(n, 255);
var r, i, o = u(e, t, n), a = c(e, t, n), l = (o + a) / 2;
if (o == a)
r = i = 0;
else {
var s = o - a;
switch (i = l > .5 ? s / (2 - o - a) : s / (o + a),
o) {
case e:
r = (t - n) / s + (t < n ? 6 : 0);
break;
case t:
r = (n - e) / s + 2;
break;
case n:
r = (e - t) / s + 4
}
r /= 6
}
return {
h: r,
s: i,
l: l
}
}
function f(e, t, n) {
e = N(e, 255),
t = N(t, 255),
n = N(n, 255);
var r, i, o = u(e, t, n), a = c(e, t, n), l = o, s = o - a;
if (i = 0 === o ? 0 : s / o,
o == a)
r = 0;
else {
switch (o) {
case e:
r = (t - n) / s + (t < n ? 6 : 0);
break;
case t:
r = (n - e) / s + 2;
break;
case n:
r = (e - t) / s + 4
}
r /= 6
}
return {
h: r,
s: i,
v: l
}
}
function b(e, t, n, r) {
var i = [L(s(e).toString(16)), L(s(t).toString(16)), L(s(n).toString(16))];
return r && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("")
}
function g(e, t, n, r) {
return [L(P(r)), L(s(e).toString(16)), L(s(t).toString(16)), L(s(n).toString(16))].join("")
}
function m(e, t) {
t = 0 === t ? 0 : t || 10;
var n = p(e).toHsl();
return n.s -= t / 100,
n.s = z(n.s),
p(n)
}
function v(e, t) {
t = 0 === t ? 0 : t || 10;
var n = p(e).toHsl();
return n.s += t / 100,
n.s = z(n.s),
p(n)
}
function y(e) {
return p(e).desaturate(100)
}
function x(e, t) {
t = 0 === t ? 0 : t || 10;
var n = p(e).toHsl();
return n.l += t / 100,
n.l = z(n.l),
p(n)
}
function O(e, t) {
t = 0 === t ? 0 : t || 10;
var n = p(e).toRgb();
return n.r = u(0, c(255, n.r - s(-t / 100 * 255))),
n.g = u(0, c(255, n.g - s(-t / 100 * 255))),
n.b = u(0, c(255, n.b - s(-t / 100 * 255))),
p(n)
}
function j(e, t) {
t = 0 === t ? 0 : t || 10;
var n = p(e).toHsl();
return n.l -= t / 100,
n.l = z(n.l),
p(n)
}
function k(e, t) {
var n = p(e).toHsl()
, r = (n.h + t) % 360;
return n.h = r < 0 ? 360 + r : r,
p(n)
}
function w(e) {
var t = p(e).toHsl();
return t.h = (t.h + 180) % 360,
p(t)
}
function C(e) {
var t = p(e).toHsl()
, n = t.h;
return [p(e), p({
h: (n + 120) % 360,
s: t.s,
l: t.l
}), p({
h: (n + 240) % 360,
s: t.s,
l: t.l
})]
}
function _(e) {
var t = p(e).toHsl()
, n = t.h;
return [p(e), p({
h: (n + 90) % 360,
s: t.s,
l: t.l
}), p({
h: (n + 180) % 360,
s: t.s,
l: t.l
}), p({
h: (n + 270) % 360,
s: t.s,
l: t.l
})]
}
function M(e) {
var t = p(e).toHsl()
, n = t.h;
return [p(e), p({
h: (n + 72) % 360,
s: t.s,
l: t.l
}), p({
h: (n + 216) % 360,
s: t.s,
l: t.l
})]
}
function S(e, t, n) {
t = t || 6,
n = n || 30;
var r = p(e).toHsl()
, i = 360 / n
, o = [p(e)];
for (r.h = (r.h - (i * t >> 1) + 720) % 360; --t; )
r.h = (r.h + i) % 360,
o.push(p(r));
return o
}
function A(e, t) {
t = t || 6;
for (var n = p(e).toHsv(), r = n.h, i = n.s, o = n.v, a = [], l = 1 / t; t--; )
a.push(p({
h: r,
s: i,
v: o
})),
o = (o + l) % 1;
return a
}
p.prototype = {
isDark: function() {
return this.getBrightness() < 128
},
isLight: function() {
return !this.isDark()
},
isValid: function() {
return this._ok
},
getOriginalInput: function() {
return this._originalInput
},
getFormat: function() {
return this._format
},
getAlpha: function() {
return this._a
},
getBrightness: function() {
var e = this.toRgb();
return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3
},
getLuminance: function() {
var e, t, n, r = this.toRgb();
return e = r.r / 255,
t = r.g / 255,
n = r.b / 255,
.2126 * (e <= .03928 ? e / 12.92 : i.pow((e + .055) / 1.055, 2.4)) + .7152 * (t <= .03928 ? t / 12.92 : i.pow((t + .055) / 1.055, 2.4)) + .0722 * (n <= .03928 ? n / 12.92 : i.pow((n + .055) / 1.055, 2.4))
},
setAlpha: function(e) {
return this._a = I(e),
this._roundA = s(100 * this._a) / 100,
this
},
toHsv: function() {
var e = f(this._r, this._g, this._b);
return {
h: 360 * e.h,
s: e.s,
v: e.v,
a: this._a
}
},
toHsvString: function() {
var e = f(this._r, this._g, this._b)
, t = s(360 * e.h)
, n = s(100 * e.s)
, r = s(100 * e.v);
return 1 == this._a ? "hsv(" + t + ", " + n + "%, " + r + "%)" : "hsva(" + t + ", " + n + "%, " + r + "%, " + this._roundA + ")"
},
toHsl: function() {
var e = h(this._r, this._g, this._b);
return {
h: 360 * e.h,
s: e.s,
l: e.l,
a: this._a
}
},
toHslString: function() {
var e = h(this._r, this._g, this._b)
, t = s(360 * e.h)
, n = s(100 * e.s)
, r = s(100 * e.l);
return 1 == this._a ? "hsl(" + t + ", " + n + "%, " + r + "%)" : "hsla(" + t + ", " + n + "%, " + r + "%, " + this._roundA + ")"
},
toHex: function(e) {
return b(this._r, this._g, this._b, e)
},
toHexString: function(e) {
return "#" + this.toHex(e)
},
toHex8: function(e) {
return function(e, t, n, r, i) {
var o = [L(s(e).toString(16)), L(s(t).toString(16)), L(s(n).toString(16)), L(P(r))];
return i && o[0].charAt(0) == o[0].charAt(1) && o[1].charAt(0) == o[1].charAt(1) && o[2].charAt(0) == o[2].charAt(1) && o[3].charAt(0) == o[3].charAt(1) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) + o[3].charAt(0) : o.join("")
}(this._r, this._g, this._b, this._a, e)
},
toHex8String: function(e) {
return "#" + this.toHex8(e)
},
toRgb: function() {
return {
r: s(this._r),
g: s(this._g),
b: s(this._b),
a: this._a
}
},
toRgbString: function() {
return 1 == this._a ? "rgb(" + s(this._r) + ", " + s(this._g) + ", " + s(this._b) + ")" : "rgba(" + s(this._r) + ", " + s(this._g) + ", " + s(this._b) + ", " + this._roundA + ")"
},
toPercentageRgb: function() {
return {
r: s(100 * N(this._r, 255)) + "%",
g: s(100 * N(this._g, 255)) + "%",
b: s(100 * N(this._b, 255)) + "%",
a: this._a
}
},
toPercentageRgbString: function() {
return 1 == this._a ? "rgb(" + s(100 * N(this._r, 255)) + "%, " + s(100 * N(this._g, 255)) + "%, " + s(100 * N(this._b, 255)) + "%)" : "rgba(" + s(100 * N(this._r, 255)) + "%, " + s(100 * N(this._g, 255)) + "%, " + s(100 * N(this._b, 255)) + "%, " + this._roundA + ")"
},
toName: function() {
return 0 === this._a ? "transparent" : !(this._a < 1) && (E[b(this._r, this._g, this._b, !0)] || !1)
},
toFilter: function(e) {
var t = "#" + g(this._r, this._g, this._b, this._a)
, n = t
, r = this._gradientType ? "GradientType = 1, " : "";
if (e) {
var i = p(e);
n = "#" + g(i._r, i._g, i._b, i._a)
}
return "progid:DXImageTransform.Microsoft.gradient(" + r + "startColorstr=" + t + ",endColorstr=" + n + ")"
},
toString: function(e) {
var t = !!e;
e = e || this._format;
var n = !1
, r = this._a < 1 && this._a >= 0;
return t || !r || "hex" !== e && "hex6" !== e && "hex3" !== e && "hex4" !== e && "hex8" !== e && "name" !== e ? ("rgb" === e && (n = this.toRgbString()),
"prgb" === e && (n = this.toPercentageRgbString()),
"hex" !== e && "hex6" !== e || (n = this.toHexString()),
"hex3" === e && (n = this.toHexString(!0)),
"hex4" === e && (n = this.toHex8String(!0)),
"hex8" === e && (n = this.toHex8String()),
"name" === e && (n = this.toName()),
"hsl" === e && (n = this.toHslString()),
"hsv" === e && (n = this.toHsvString()),
n || this.toHexString()) : "name" === e && 0 === this._a ? this.toName() : this.toRgbString()
},
clone: function() {
return p(this.toString())
},
_applyModification: function(e, t) {
var n = e.apply(null, [this].concat([].slice.call(t)));
return this._r = n._r,
this._g = n._g,
this._b = n._b,
this.setAlpha(n._a),
this
},
lighten: function() {
return this._applyModification(x, arguments)
},
brighten: function() {
return this._applyModification(O, arguments)
},
darken: function() {
return this._applyModification(j, arguments)
},
desaturate: function() {
return this._applyModification(m, arguments)
},
saturate: function() {
return this._applyModification(v, arguments)
},
greyscale: function() {
return this._applyModification(y, arguments)
},
spin: function() {
return this._applyModification(k, arguments)
},
_applyCombination: function(e, t) {
return e.apply(null, [this].concat([].slice.call(t)))
},
analogous: function() {
return this._applyCombination(S, arguments)
},
complement: function() {
return this._applyCombination(w, arguments)
},
monochromatic: function() {
return this._applyCombination(A, arguments)
},
splitcomplement: function() {
return this._applyCombination(M, arguments)
},
triad: function() {
return this._applyCombination(C, arguments)
},
tetrad: function() {
return this._applyCombination(_, arguments)
}
},
p.fromRatio = function(e, t) {
if ("object" == typeof e) {
var n = {};
for (var r in e)
e.hasOwnProperty(r) && (n[r] = "a" === r ? e[r] : R(e[r]));
e = n
}
return p(e, t)
}
,
p.equals = function(e, t) {
return !(!e || !t) && p(e).toRgbString() == p(t).toRgbString()
}
,
p.random = function() {
return p.fromRatio({
r: d(),
g: d(),
b: d()
})
}
,
p.mix = function(e, t, n) {
n = 0 === n ? 0 : n || 50;
var r = p(e).toRgb()
, i = p(t).toRgb()
, o = n / 100;
return p({
r: (i.r - r.r) * o + r.r,
g: (i.g - r.g) * o + r.g,
b: (i.b - r.b) * o + r.b,
a: (i.a - r.a) * o + r.a
})
}
,
p.readability = function(e, t) {
var n = p(e)
, r = p(t);
return (i.max(n.getLuminance(), r.getLuminance()) + .05) / (i.min(n.getLuminance(), r.getLuminance()) + .05)
}
,
p.isReadable = function(e, t, n) {
var r, i, o = p.readability(e, t);
switch (i = !1,
(r = function(e) {
var t, n;
return "AA" !== (t = ((e = e || {
level: "AA",
size: "small"
}).level || "AA").toUpperCase()) && "AAA" !== t && (t = "AA"),
"small" !== (n = (e.size || "small").toLowerCase()) && "large" !== n && (n = "small"),
{
level: t,
size: n
}
}(n)).level + r.size) {
case "AAsmall":
case "AAAlarge":
i = o >= 4.5;
break;
case "AAlarge":
i = o >= 3;
break;
case "AAAsmall":
i = o >= 7
}
return i
}
,
p.mostReadable = function(e, t, n) {
var r, i, o, a, l = null, s = 0;
i = (n = n || {}).includeFallbackColors,
o = n.level,
a = n.size;
for (var c = 0; c < t.length; c++)
(r = p.readability(e, t[c])) > s && (s = r,
l = p(t[c]));
return p.isReadable(e, l, {
level: o,
size: a
}) || !i ? l : (n.includeFallbackColors = !1,
p.mostReadable(e, ["#fff", "#000"], n))
}
;
var T = p.names = {
aliceblue: "f0f8ff",
antiquewhite: "faebd7",
aqua: "0ff",
aquamarine: "7fffd4",
azure: "f0ffff",
beige: "f5f5dc",
bisque: "ffe4c4",
black: "000",
blanchedalmond: "ffebcd",
blue: "00f",
blueviolet: "8a2be2",
brown: "a52a2a",
burlywood: "deb887",
burntsienna: "ea7e5d",
cadetblue: "5f9ea0",
chartreuse: "7fff00",
chocolate: "d2691e",
coral: "ff7f50",
cornflowerblue: "6495ed",
cornsilk: "fff8dc",
crimson: "dc143c",
cyan: "0ff",
darkblue: "00008b",
darkcyan: "008b8b",
darkgoldenrod: "b8860b",
darkgray: "a9a9a9",
darkgreen: "006400",
darkgrey: "a9a9a9",
darkkhaki: "bdb76b",
darkmagenta: "8b008b",
darkolivegreen: "556b2f",
darkorange: "ff8c00",
darkorchid: "9932cc",
darkred: "8b0000",
darksalmon: "e9967a",
darkseagreen: "8fbc8f",
darkslateblue: "483d8b",
darkslategray: "2f4f4f",
darkslategrey: "2f4f4f",
darkturquoise: "00ced1",
darkviolet: "9400d3",
deeppink: "ff1493",
deepskyblue: "00bfff",
dimgray: "696969",
dimgrey: "696969",
dodgerblue: "1e90ff",
firebrick: "b22222",
floralwhite: "fffaf0",
forestgreen: "228b22",
fuchsia: "f0f",
gainsboro: "dcdcdc",
ghostwhite: "f8f8ff",
gold: "ffd700",
goldenrod: "daa520",
gray: "808080",
green: "008000",
greenyellow: "adff2f",
grey: "808080",
honeydew: "f0fff0",
hotpink: "ff69b4",
indianred: "cd5c5c",
indigo: "4b0082",
ivory: "fffff0",
khaki: "f0e68c",
lavender: "e6e6fa",
lavenderblush: "fff0f5",
lawngreen: "7cfc00",
lemonchiffon: "fffacd",
lightblue: "add8e6",
lightcoral: "f08080",
lightcyan: "e0ffff",
lightgoldenrodyellow: "fafad2",
lightgray: "d3d3d3",
lightgreen: "90ee90",
lightgrey: "d3d3d3",
lightpink: "ffb6c1",
lightsalmon: "ffa07a",
lightseagreen: "20b2aa",
lightskyblue: "87cefa",
lightslategray: "789",
lightslategrey: "789",
lightsteelblue: "b0c4de",
lightyellow: "ffffe0",
lime: "0f0",
limegreen: "32cd32",
linen: "faf0e6",
magenta: "f0f",
maroon: "800000",
mediumaquamarine: "66cdaa",
mediumblue: "0000cd",
mediumorchid: "ba55d3",
mediumpurple: "9370db",
mediumseagreen: "3cb371",
mediumslateblue: "7b68ee",
mediumspringgreen: "00fa9a",
mediumturquoise: "48d1cc",
mediumvioletred: "c71585",
midnightblue: "191970",
mintcream: "f5fffa",
mistyrose: "ffe4e1",
moccasin: "ffe4b5",
navajowhite: "ffdead",
navy: "000080",
oldlace: "fdf5e6",
olive: "808000",
olivedrab: "6b8e23",
orange: "ffa500",
orangered: "ff4500",
orchid: "da70d6",
palegoldenrod: "eee8aa",
palegreen: "98fb98",
paleturquoise: "afeeee",
palevioletred: "db7093",
papayawhip: "ffefd5",
peachpuff: "ffdab9",
peru: "cd853f",
pink: "ffc0cb",
plum: "dda0dd",
powderblue: "b0e0e6",
purple: "800080",
rebeccapurple: "663399",
red: "f00",
rosybrown: "bc8f8f",
royalblue: "4169e1",
saddlebrown: "8b4513",
salmon: "fa8072",
sandybrown: "f4a460",
seagreen: "2e8b57",
seashell: "fff5ee",
sienna: "a0522d",
silver: "c0c0c0",
skyblue: "87ceeb",
slateblue: "6a5acd",
slategray: "708090",
slategrey: "708090",
snow: "fffafa",
springgreen: "00ff7f",
steelblue: "4682b4",
tan: "d2b48c",
teal: "008080",
thistle: "d8bfd8",
tomato: "ff6347",
turquoise: "40e0d0",
violet: "ee82ee",
wheat: "f5deb3",
white: "fff",
whitesmoke: "f5f5f5",
yellow: "ff0",
yellowgreen: "9acd32"
}
, E = p.hexNames = function(e) {
var t = {};
for (var n in e)
e.hasOwnProperty(n) && (t[e[n]] = n);
return t
}(T);
function I(e) {
return e = parseFloat(e),
(isNaN(e) || e < 0 || e > 1) && (e = 1),
e
}
function N(e, t) {
(function(e) {
return "string" == typeof e && -1 != e.indexOf(".") && 1 === parseFloat(e)
}
)(e) && (e = "100%");
var n = function(e) {
return "string" == typeof e && -1 != e.indexOf("%")
}(e);
return e = c(t, u(0, parseFloat(e))),
n && (e = parseInt(e * t, 10) / 100),
i.abs(e - t) < 1e-6 ? 1 : e % t / parseFloat(t)
}
function z(e) {
return c(1, u(0, e))
}
function D(e) {
return parseInt(e, 16)
}
function L(e) {
return 1 == e.length ? "0" + e : "" + e
}
function R(e) {
return e <= 1 && (e = 100 * e + "%"),
e
}
function P(e) {
return i.round(255 * parseFloat(e)).toString(16)
}
function B(e) {
return D(e) / 255
}
var F = function() {
var e = "(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)"
, t = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?"
, n = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?";
return {
CSS_UNIT: new RegExp(e),
rgb: new RegExp("rgb" + t),
rgba: new RegExp("rgba" + n),
hsl: new RegExp("hsl" + t),
hsla: new RegExp("hsla" + n),
hsv: new RegExp("hsv" + t),
hsva: new RegExp("hsva" + n),
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
}
}();
function V(e) {
return !!F.CSS_UNIT.exec(e)
}
e.exports ? e.exports = p : void 0 === (r = function() {
return p
}
.call(t, n, t, e)) || (e.exports = r)
}(Math)
}
, , , , , , , , function(e, t, n) {
"use strict";
var r = Object.getOwnPropertySymbols
, i = Object.prototype.hasOwnProperty
, o = Object.prototype.propertyIsEnumerable;
e.exports = function() {
try {
if (!Object.assign)
return !1;
var e = new String("abc");
if (e[5] = "de",
"5" === Object.getOwnPropertyNames(e)[0])
return !1;
for (var t = {}, n = 0; n < 10; n++)
t["_" + String.fromCharCode(n)] = n;
if ("0123456789" !== Object.getOwnPropertyNames(t).map((function(e) {
return t[e]
}
)).join(""))
return !1;
var r = {};
return "abcdefghijklmnopqrst".split("").forEach((function(e) {
r[e] = e
}
)),
"abcdefghijklmnopqrst" === Object.keys(Object.assign({}, r)).join("")
} catch (e) {
return !1
}
}() ? Object.assign : function(e, t) {
for (var n, a, l = function(e) {
if (null == e)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(e)
}(e), s = 1; s < arguments.length; s++) {
for (var c in n = Object(arguments[s]))
i.call(n, c) && (l[c] = n[c]);
if (r) {
a = r(n);
for (var u = 0; u < a.length; u++)
o.call(n, a[u]) && (l[a[u]] = n[a[u]])
}
}
return l
}
}
, function(e, t) {
var n, r, i = e.exports = {};
function o() {
throw new Error("setTimeout has not been defined")
}
function a() {
throw new Error("clearTimeout has not been defined")
}
function l(e) {
if (n === setTimeout)
return setTimeout(e, 0);
if ((n === o || !n) && setTimeout)
return n = setTimeout,
setTimeout(e, 0);
try {
return n(e, 0)
} catch (t) {
try {
return n.call(null, e, 0)
} catch (t) {
return n.call(this, e, 0)
}
}
}
!function() {
try {
n = "function" == typeof setTimeout ? setTimeout : o
} catch (e) {
n = o
}
try {
r = "function" == typeof clearTimeout ? clearTimeout : a
} catch (e) {
r = a
}
}();
var s, c = [], u = !1, d = -1;
function p() {
u && s && (u = !1,
s.length ? c = s.concat(c) : d = -1,
c.length && h())
}
function h() {
if (!u) {
var e = l(p);
u = !0;
for (var t = c.length; t; ) {
for (s = c,
c = []; ++d < t; )
s && s[d].run();
d = -1,
t = c.length
}
s = null,
u = !1,
function(e) {
if (r === clearTimeout)
return clearTimeout(e);
if ((r === a || !r) && clearTimeout)
return r = clearTimeout,
clearTimeout(e);
try {
r(e)
} catch (t) {
try {
return r.call(null, e)
} catch (t) {
return r.call(this, e)
}
}
}(e)
}
}
function f(e, t) {
this.fun = e,
this.array = t
}
function b() {}
i.nextTick = function(e) {
var t = new Array(arguments.length - 1);
if (arguments.length > 1)
for (var n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
c.push(new f(e,t)),
1 !== c.length || u || l(h)
}
,
f.prototype.run = function() {
this.fun.apply(null, this.array)
}
,
i.title = "browser",
i.browser = !0,
i.env = {},
i.argv = [],
i.version = "",
i.versions = {},
i.on = b,
i.addListener = b,
i.once = b,
i.off = b,
i.removeListener = b,
i.removeAllListeners = b,
i.emit = b,
i.prependListener = b,
i.prependOnceListener = b,
i.listeners = function(e) {
return []
}
,
i.binding = function(e) {
throw new Error("process.binding is not supported")
}
,
i.cwd = function() {
return "/"
}
,
i.chdir = function(e) {
throw new Error("process.chdir is not supported")
}
,
i.umask = function() {
return 0
}
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; )
i[n] = t(e[n], n, e);
return i
}
}
, function(e, t) {
var n = /^(?:0|[1-9]\d*)$/;
e.exports = function(e, t) {
var r = typeof e;
return !!(t = null == t ? 9007199254740991 : t) && ("number" == r || "symbol" != r && n.test(e)) && e > -1 && e % 1 == 0 && e < t
}
}
, function(e, t, n) {
(function(e) {
var r = n(229)
, i = t && !t.nodeType && t
, o = i && "object" == typeof e && e && !e.nodeType && e
, a = o && o.exports === i && r.process
, l = function() {
try {
return o && o.require && o.require("util").types || a && a.binding && a.binding("util")
} catch (e) {}
}();
e.exports = l
}
).call(this, n(147)(e))
}
, function(e, t) {
e.exports = function(e) {
return e.webpackPolyfill || (e.deprecate = function() {}
,
e.paths = [],
e.children || (e.children = []),
Object.defineProperty(e, "loaded", {
enumerable: !0,
get: function() {
return e.l
}
}),
Object.defineProperty(e, "id", {
enumerable: !0,
get: function() {
return e.i
}
}),
e.webpackPolyfill = 1),
e
}
}
, function(e, t, n) {
var r = n(375)
, i = n(119)
, o = n(146)
, a = o && o.isTypedArray
, l = a ? i(a) : r;
e.exports = l
}
, function(e, t, n) {
"use strict";
(function(t) {
var r = n(65)
, i = n(389)
, o = n(242)
, a = {
"Content-Type": "application/x-www-form-urlencoded"
};
function l(e, t) {
!r.isUndefined(e) && r.isUndefined(e["Content-Type"]) && (e["Content-Type"] = t)
}
var s = {
transitional: {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
},
adapter: function() {
var e;
return ("undefined" != typeof XMLHttpRequest || void 0 !== t && "[object process]" === Object.prototype.toString.call(t)) && (e = n(243)),
e
}(),
transformRequest: [function(e, t) {
return i(t, "Accept"),
i(t, "Content-Type"),
r.isFormData(e) || r.isArrayBuffer(e) || r.isBuffer(e) || r.isStream(e) || r.isFile(e) || r.isBlob(e) ? e : r.isArrayBufferView(e) ? e.buffer : r.isURLSearchParams(e) ? (l(t, "application/x-www-form-urlencoded;charset=utf-8"),
e.toString()) : r.isObject(e) || t && "application/json" === t["Content-Type"] ? (l(t, "application/json"),
function(e, t, n) {
if (r.isString(e))
try {
return (0,
JSON.parse)(e),
r.trim(e)
} catch (e) {
if ("SyntaxError" !== e.name)
throw e
}
return (0,
JSON.stringify)(e)
}(e)) : e
}
],
transformResponse: [function(e) {
var t = this.transitional || s.transitional
, n = t && t.silentJSONParsing
, i = t && t.forcedJSONParsing
, a = !n && "json" === this.responseType;
if (a || i && r.isString(e) && e.length)
try {
return JSON.parse(e)
} catch (e) {
if (a) {
if ("SyntaxError" === e.name)
throw o(e, this, "E_JSON_PARSE");
throw e
}
}
return e
}
],
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: function(e) {
return e >= 200 && e < 300
},
headers: {
common: {
Accept: "application/json, text/plain, */*"
}
}
};
r.forEach(["delete", "get", "head"], (function(e) {
s.headers[e] = {}
}
)),
r.forEach(["post", "put", "patch"], (function(e) {
s.headers[e] = r.merge(a)
}
)),
e.exports = s
}
).call(this, n(143))
}
, function(e, t, n) {
"use strict";
function r(e) {
this.message = e
}
r.prototype.toString = function() {
return "Cancel" + (this.message ? ": " + this.message : "")
}
,
r.prototype.__CANCEL__ = !0,
e.exports = r
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = t.length, i = e.length; ++n < r; )
e[i + n] = t[n];
return e
}
}
, function(e, t) {
e.exports = function(e, t) {
var n = -1
, r = e.length;
for (t || (t = Array(r)); ++n < r; )
t[n] = e[n];
return t
}
}
, function(e, t, n) {
var r = n(424)
, i = n(425)
, o = n(427)
, a = RegExp("['’]", "g");
e.exports = function(e) {
return function(t) {
return r(o(i(t).replace(a, "")), e, "")
}
}
}
, function(e, t, n) {
var r = n(197)
, i = n(124);
e.exports = function(e, t) {
for (var n = 0, o = (t = r(t, e)).length; null != e && n < o; )
e = e[i(t[n++])];
return n && n == o ? e : void 0
}
}
, function(e, t, n) {
var r = n(95)(Object, "create");
e.exports = r
}
, function(e, t, n) {
var r = n(441)
, i = n(442)
, o = n(443)
, a = n(444)
, l = n(445);
function s(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1])
}
}
s.prototype.clear = r,
s.prototype.delete = i,
s.prototype.get = o,
s.prototype.has = a,
s.prototype.set = l,
e.exports = s
}
, function(e, t, n) {
var r = n(118);
e.exports = function(e, t) {
for (var n = e.length; n--; )
if (r(e[n][0], t))
return n;
return -1
}
}
, function(e, t, n) {
var r = n(447);
e.exports = function(e, t) {
var n = e.__data__;
return r(t) ? n["string" == typeof t ? "string" : "hash"] : n.map
}
}
, function(e, t, n) {
var r = n(156)
, i = n(454)
, o = n(455)
, a = n(456)
, l = n(457)
, s = n(458);
function c(e) {
var t = this.__data__ = new r(e);
this.size = t.size
}
c.prototype.clear = i,
c.prototype.delete = o,
c.prototype.get = a,
c.prototype.has = l,
c.prototype.set = s,
e.exports = c
}
, function(e, t, n) {
var r = n(264);
e.exports = function(e, t, n) {
"__proto__" == t && r ? r(e, t, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : e[t] = n
}
}
, function(e, t, n) {
var r = n(160)
, i = n(118)
, o = Object.prototype.hasOwnProperty;
e.exports = function(e, t, n) {
var a = e[t];
o.call(e, t) && i(a, n) && (void 0 !== n || t in e) || r(e, t, n)
}
}
, function(e, t, n) {
var r = n(275)
, i = n(492)(r);
e.exports = i
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return i
}
));
var r = "<anonymous>";
function i(e) {
try {
return e && "function" == typeof e && e.name || r
} catch (e) {
return r
}
}
}
, function(e, t, n) {
"use strict";
function r() {
if ("undefined" == typeof Reflect || !Reflect.construct)
return !1;
if (Reflect.construct.sham)
return !1;
if ("function" == typeof Proxy)
return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}
))),
!0
} catch (e) {
return !1
}
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
function r(e) {
if (Array.isArray(e))
return e
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
function r() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
function r(e) {
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"])
return Array.from(e)
}
n.d(t, "a", (function() {
return r
}
))
}
, function(e, t, n) {
"use strict";
(function(e) {
var n = "object" == typeof e && e && e.Object === Object && e;
t.a = n
}
).call(this, n(73))
}
, function(e, t, n) {
var r = n(262)
, i = n(205)((function(e, t, n) {
r(e, t, n)
}
));
e.exports = i
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}
));
var r = {}
, i = void 0;
try {
i = window
} catch (e) {}
function o(e, t) {
if (void 0 !== i) {
var n = i.__packages__ = i.__packages__ || {};
n[e] && r[e] || (r[e] = t,
(n[e] = n[e] || []).push(t))
}
}
o("@fluentui/set-version", "6.0.0")
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return s
}
)),
n.d(t, "b", (function() {
return u
}
));
var r = n(27)
, i = n(44)
, o = n(114)
, a = n(132)
, l = n(52)
, s = function() {
function e() {
this._notifyingListeners = !1,
this._scopeListeners = [],
this._eventProcessors = [],
this._breadcrumbs = [],
this._user = {},
this._tags = {},
this._extra = {},
this._contexts = {}
}
return e.clone = function(t) {
var n = new e;
return t && (n._breadcrumbs = Object(r.b)(t._breadcrumbs),
n._tags = Object(r.a)({}, t._tags),
n._extra = Object(r.a)({}, t._extra),
n._contexts = Object(r.a)({}, t._contexts),
n._user = t._user,
n._level = t._level,
n._span = t._span,
n._session = t._session,
n._transactionName = t._transactionName,
n._fingerprint = t._fingerprint,
n._eventProcessors = Object(r.b)(t._eventProcessors),
n._requestSession = t._requestSession),
n
}
,
e.prototype.addScopeListener = function(e) {
this._scopeListeners.push(e)
}
,
e.prototype.addEventProcessor = function(e) {
return this._eventProcessors.push(e),
this
}
,
e.prototype.setUser = function(e) {
return this._user = e || {},
this._session && this._session.update({
user: e
}),
this._notifyScopeListeners(),
this
}
,
e.prototype.getUser = function() {
return this._user
}
,
e.prototype.getRequestSession = function() {
return this._requestSession
}
,
e.prototype.setRequestSession = function(e) {
return this._requestSession = e,
this
}
,
e.prototype.setTags = function(e) {
return this._tags = Object(r.a)(Object(r.a)({}, this._tags), e),
this._notifyScopeListeners(),
this
}
,
e.prototype.setTag = function(e, t) {
var n;
return this._tags = Object(r.a)(Object(r.a)({}, this._tags), ((n = {})[e] = t,
n)),
this._notifyScopeListeners(),
this
}
,
e.prototype.setExtras = function(e) {
return this._extra = Object(r.a)(Object(r.a)({}, this._extra), e),
this._notifyScopeListeners(),
this
}
,
e.prototype.setExtra = function(e, t) {
var n;
return this._extra = Object(r.a)(Object(r.a)({}, this._extra), ((n = {})[e] = t,
n)),
this._notifyScopeListeners(),
this
}
,
e.prototype.setFingerprint = function(e) {
return this._fingerprint = e,
this._notifyScopeListeners(),
this
}
,
e.prototype.setLevel = function(e) {
return this._level = e,
this._notifyScopeListeners(),
this
}
,
e.prototype.setTransactionName = function(e) {
return this._transactionName = e,
this._notifyScopeListeners(),
this
}
,
e.prototype.setTransaction = function(e) {
return this.setTransactionName(e)
}
,
e.prototype.setContext = function(e, t) {
var n;
return null === t ? delete this._contexts[e] : this._contexts = Object(r.a)(Object(r.a)({}, this._contexts), ((n = {})[e] = t,
n)),
this._notifyScopeListeners(),
this
}
,
e.prototype.setSpan = function(e) {
return this._span = e,
this._notifyScopeListeners(),
this
}
,
e.prototype.getSpan = function() {
return this._span
}
,
e.prototype.getTransaction = function() {
var e, t, n, r, i = this.getSpan();
return (null === (e = i) || void 0 === e ? void 0 : e.transaction) ? null === (t = i) || void 0 === t ? void 0 : t.transaction : (null === (r = null === (n = i) || void 0 === n ? void 0 : n.spanRecorder) || void 0 === r ? void 0 : r.spans[0]) ? i.spanRecorder.spans[0] : void 0
}
,
e.prototype.setSession = function(e) {
return e ? this._session = e : delete this._session,
this._notifyScopeListeners(),
this
}
,
e.prototype.getSession = function() {
return this._session
}
,
e.prototype.update = function(t) {
if (!t)
return this;
if ("function" == typeof t) {
var n = t(this);
return n instanceof e ? n : this
}
return t instanceof e ? (this._tags = Object(r.a)(Object(r.a)({}, this._tags), t._tags),
this._extra = Object(r.a)(Object(r.a)({}, this._extra), t._extra),
this._contexts = Object(r.a)(Object(r.a)({}, this._contexts), t._contexts),
t._user && Object.keys(t._user).length && (this._user = t._user),
t._level && (this._level = t._level),
t._fingerprint && (this._fingerprint = t._fingerprint),
t._requestSession && (this._requestSession = t._requestSession)) : Object(i.h)(t) && (this._tags = Object(r.a)(Object(r.a)({}, this._tags), t.tags),
this._extra = Object(r.a)(Object(r.a)({}, this._extra), t.extra),
this._contexts = Object(r.a)(Object(r.a)({}, this._contexts), t.contexts),
t.user && (this._user = t.user),
t.level && (this._level = t.level),
t.fingerprint && (this._fingerprint = t.fingerprint),
t.requestSession && (this._requestSession = t.requestSession)),
this
}
,
e.prototype.clear = function() {
return this._breadcrumbs = [],
this._tags = {},
this._extra = {},
this._user = {},
this._contexts = {},
this._level = void 0,
this._transactionName = void 0,
this._fingerprint = void 0,
this._requestSession = void 0,
this._span = void 0,
this._session = void 0,
this._notifyScopeListeners(),
this
}
,
e.prototype.addBreadcrumb = function(e, t) {
var n = "number" == typeof t ? Math.min(t, 100) : 100;
if (n <= 0)
return this;
var i = Object(r.a)({
timestamp: Object(o.b)()
}, e);
return this._breadcrumbs = Object(r.b)(this._breadcrumbs, [i]).slice(-n),
this._notifyScopeListeners(),
this
}
,
e.prototype.clearBreadcrumbs = function() {
return this._breadcrumbs = [],
this._notifyScopeListeners(),
this
}
,
e.prototype.applyToEvent = function(e, t) {
var n;
if (this._extra && Object.keys(this._extra).length && (e.extra = Object(r.a)(Object(r.a)({}, this._extra), e.extra)),
this._tags && Object.keys(this._tags).length && (e.tags = Object(r.a)(Object(r.a)({}, this._tags), e.tags)),
this._user && Object.keys(this._user).length && (e.user = Object(r.a)(Object(r.a)({}, this._user), e.user)),
this._contexts && Object.keys(this._contexts).length && (e.contexts = Object(r.a)(Object(r.a)({}, this._contexts), e.contexts)),
this._level && (e.level = this._level),
this._transactionName && (e.transaction = this._transactionName),
this._span) {
e.contexts = Object(r.a)({
trace: this._span.getTraceContext()
}, e.contexts);
var i = null === (n = this._span.transaction) || void 0 === n ? void 0 : n.name;
i && (e.tags = Object(r.a)({
transaction: i
}, e.tags))
}
return this._applyFingerprint(e),
e.breadcrumbs = Object(r.b)(e.breadcrumbs || [], this._breadcrumbs),
e.breadcrumbs = e.breadcrumbs.length > 0 ? e.breadcrumbs : void 0,
this._notifyEventProcessors(Object(r.b)(c(), this._eventProcessors), e, t)
}
,
e.prototype._notifyEventProcessors = function(e, t, n, o) {
var l = this;
return void 0 === o && (o = 0),
new a.a((function(a, s) {
var c = e[o];
if (null === t || "function" != typeof c)
a(t);
else {
var u = c(Object(r.a)({}, t), n);
Object(i.m)(u) ? u.then((function(t) {
return l._notifyEventProcessors(e, t, n, o + 1).then(a)
}
)).then(null, s) : l._notifyEventProcessors(e, u, n, o + 1).then(a).then(null, s)
}
}
))
}
,
e.prototype._notifyScopeListeners = function() {
var e = this;
this._notifyingListeners || (this._notifyingListeners = !0,
this._scopeListeners.forEach((function(t) {
t(e)
}
)),
this._notifyingListeners = !1)
}
,
e.prototype._applyFingerprint = function(e) {
e.fingerprint = e.fingerprint ? Array.isArray(e.fingerprint) ? e.fingerprint : [e.fingerprint] : [],
this._fingerprint && (e.fingerprint = e.fingerprint.concat(this._fingerprint)),
e.fingerprint && !e.fingerprint.length && delete e.fingerprint
}
,
e
}();
function c() {
var e = Object(l.a)();
return e.__SENTRY__ = e.__SENTRY__ || {},
e.__SENTRY__.globalEventProcessors = e.__SENTRY__.globalEventProcessors || [],
e.__SENTRY__.globalEventProcessors
}
function u(e) {
c().push(e)
}
}
, function(e, t, n) {
var r = n(402)
, i = n(404)
, o = n(16);
e.exports = function(e) {
return (o(e) ? r : i)(e)
}
}
, function(e, t, n) {
var r = n(195)
, i = n(83)
, o = n(48)
, a = n(108)
, l = n(101)
, s = Math.max;
e.exports = function(e, t, n, c) {
e = i(e) ? e : l(e),
n = n && !c ? a(n) : 0;
var u = e.length;
return n < 0 && (n = s(u + n, 0)),
o(e) ? n <= u && e.indexOf(t, n) > -1 : !!u && r(e, t, n) > -1
}
}
, function(e, t, n) {
"use strict";
var r;
n.d(t, "a", (function() {
return r
}
)),
function(e) {
e.Explicit = "explicitly_set",
e.Sampler = "client_sampler",
e.Rate = "client_rate",
e.Inheritance = "inheritance"
}(r || (r = {}))
}
, , , , , , , , , , , , , , , , function(e, t, n) {
var r = n(107)
, i = n(144)
, o = n(16)
, a = n(116)
, l = r ? r.prototype : void 0
, s = l ? l.toString : void 0;
e.exports = function e(t) {
if ("string" == typeof t)
return t;
if (o(t))
return i(t, e) + "";
if (a(t))
return s ? s.call(t) : "";
var n = t + "";
return "0" == n && 1 / t == -1 / 0 ? "-0" : n
}
}
, function(e, t) {
var n = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
e.exports = function(e) {
return n.test(e)
}
}
, function(e, t, n) {
var r = n(74)
, i = n(30);
e.exports = function(e) {
if (!i(e))
return !1;
var t = r(e);
return "[object Function]" == t || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t
}
}
, function(e, t) {
e.exports = function(e) {
return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991
}
}
, function(e, t, n) {
var r = n(95)(n(70), "Map");
e.exports = r
}
, function(e, t, n) {
var r = n(251)
, i = n(407)
, o = n(408);
e.exports = function(e, t, n) {
return t == t ? o(e, t, n) : r(e, i, n)
}
}
, function(e, t, n) {
var r = n(253);
e.exports = function(e, t) {
if (e) {
if ("string" == typeof e)
return r(e, t);
var n = Object.prototype.toString.call(e).slice(8, -1);
return "Object" === n && e.constructor && (n = e.constructor.name),
"Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r(e, t) : void 0
}
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
var r = n(16)
, i = n(198)
, o = n(431)
, a = n(75);
e.exports = function(e, t) {
return r(e) ? e : i(e, t) ? [e] : o(a(e))
}
}
, function(e, t, n) {
var r = n(16)
, i = n(116)
, o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/
, a = /^\w*$/;
e.exports = function(e, t) {
if (r(e))
return !1;
var n = typeof e;
return !("number" != n && "symbol" != n && "boolean" != n && null != e && !i(e)) || a.test(e) || !o.test(e) || null != t && e in Object(t)
}
}
, function(e, t, n) {
var r = n(434)
, i = n(446)
, o = n(448)
, a = n(449)
, l = n(450);
function s(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1])
}
}
s.prototype.clear = r,
s.prototype.delete = i,
s.prototype.get = o,
s.prototype.has = a,
s.prototype.set = l,
e.exports = s
}
, function(e, t, n) {
var r = n(453)
, i = n(64);
e.exports = function e(t, n, o, a, l) {
return t === n || (null == t || null == n || !i(t) && !i(n) ? t != t && n != n : r(t, n, o, a, e, l))
}
}
, function(e, t) {
e.exports = function(e) {
var t = -1
, n = Array(e.size);
return e.forEach((function(e) {
n[++t] = e
}
)),
n
}
}
, function(e, t, n) {
var r = n(260)
, i = n(261)
, o = Object.prototype.propertyIsEnumerable
, a = Object.getOwnPropertySymbols
, l = a ? function(e) {
return null == e ? [] : (e = Object(e),
r(a(e), (function(t) {
return o.call(e, t)
}
)))
}
: i;
e.exports = l
}
, function(e, t, n) {
var r = n(257);
e.exports = function(e) {
var t = new e.constructor(e.byteLength);
return new r(t).set(new r(e)),
t
}
}
, function(e, t, n) {
var r = n(234)(Object.getPrototypeOf, Object);
e.exports = r
}
, function(e, t, n) {
var r = n(271)
, i = n(117);
e.exports = function(e) {
return r((function(t, n) {
var r = -1
, o = n.length
, a = o > 1 ? n[o - 1] : void 0
, l = o > 2 ? n[2] : void 0;
for (a = e.length > 3 && "function" == typeof a ? (o--,
a) : void 0,
l && i(n[0], n[1], l) && (a = o < 3 ? void 0 : a,
o = 1),
t = Object(t); ++r < o; ) {
var s = n[r];
s && e(t, s, r, a)
}
return t
}
))
}
}
, function(e, t, n) {
var r = n(275)
, i = n(278);
e.exports = function(e, t) {
return e && r(e, i(t))
}
}
, function(e, t, n) {}
, function(e, t, n) {}
, function(e, t, n) {
var r = n(144)
, i = n(97)
, o = n(274)
, a = n(16);
e.exports = function(e, t) {
return (a(e) ? r : o)(e, i(t, 3))
}
}
, function(e, t, n) {
"use strict";
n.d(t, "b", (function() {
return o
}
)),
n.d(t, "a", (function() {
return l
}
));
var r = n(52)
, i = n(44);
function o(e, t) {
try {
for (var n = e, r = [], i = 0, o = 0, l = void 0; n && i++ < 5 && !("html" === (l = a(n, t)) || i > 1 && o + 3 * r.length + l.length >= 80); )
r.push(l),
o += l.length,
n = n.parentNode;
return r.reverse().join(" > ")
} catch (e) {
return "<unknown>"
}
}
function a(e, t) {
var n, r, o, a, l, s, c, u = e, d = [];
if (!u || !u.tagName)
return "";
d.push(u.tagName.toLowerCase());
var p = (null === (n = t) || void 0 === n ? void 0 : n.length) ? t.filter((function(e) {
return u.getAttribute(e)
}
)).map((function(e) {
return [e, u.getAttribute(e)]
}
)) : null;
if (null === (r = p) || void 0 === r ? void 0 : r.length)
p.forEach((function(e) {
d.push("[" + e[0] + '="' + e[1] + '"]')
}
));
else if (u.id && d.push("#" + u.id),
(o = u.className) && Object(i.k)(o))
for (a = o.split(/\s+/),
c = 0; c < a.length; c++)
d.push("." + a[c]);
var h = ["type", "name", "title", "alt"];
for (c = 0; c < h.length; c++)
l = h[c],
(s = u.getAttribute(l)) && d.push("[" + l + '="' + s + '"]');
return d.join("")
}
function l() {
var e = Object(r.a)();
try {
return e.document.location.href
} catch (e) {
return ""
}
}
}
, function(e, t, n) {
"use strict";
n.d(t, "g", (function() {
return o
}
)),
n.d(t, "f", (function() {
return a
}
)),
n.d(t, "d", (function() {
return l
}
)),
n.d(t, "b", (function() {
return s
}
)),
n.d(t, "a", (function() {
return c
}
)),
n.d(t, "e", (function() {
return u
}
)),
n.d(t, "c", (function() {
return d
}
));
var r = n(50)
, i = n(52);
function o() {
var e = Object(i.a)()
, t = e.crypto || e.msCrypto;
if (void 0 !== t && t.getRandomValues) {
var n = new Uint16Array(8);
t.getRandomValues(n),
n[3] = 4095 & n[3] | 16384,
n[4] = 16383 & n[4] | 32768;
var r = function(e) {
for (var t = e.toString(16); t.length < 4; )
t = "0" + t;
return t
};
return r(n[0]) + r(n[1]) + r(n[2]) + r(n[3]) + r(n[4]) + r(n[5]) + r(n[6]) + r(n[7])
}
return "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g, (function(e) {
var t = 16 * Math.random() | 0;
return ("x" === e ? t : 3 & t | 8).toString(16)
}
))
}
function a(e) {
if (!e)
return {};
var t = e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);
if (!t)
return {};
var n = t[6] || ""
, r = t[8] || "";
return {
host: t[4],
path: t[5],
protocol: t[2],
relative: t[5] + n + r
}
}
function l(e) {
if (e.message)
return e.message;
if (e.exception && e.exception.values && e.exception.values[0]) {
var t = e.exception.values[0];
return t.type && t.value ? t.type + ": " + t.value : t.type || t.value || e.event_id || "<unknown>"
}
return e.event_id || "<unknown>"
}
function s(e, t, n) {
e.exception = e.exception || {},
e.exception.values = e.exception.values || [],
e.exception.values[0] = e.exception.values[0] || {},
e.exception.values[0].value = e.exception.values[0].value || t || "",
e.exception.values[0].type = e.exception.values[0].type || n || "Error"
}
function c(e, t) {
var n;
if (e.exception && e.exception.values) {
var i = e.exception.values[0]
, o = i.mechanism;
if (i.mechanism = Object(r.a)(Object(r.a)(Object(r.a)({}, {
type: "generic",
handled: !0
}), o), t),
t && "data"in t) {
var a = Object(r.a)(Object(r.a)({}, null === (n = o) || void 0 === n ? void 0 : n.data), t.data);
i.mechanism.data = a
}
}
}
function u(e, t) {
if (!t)
return 6e4;
var n = parseInt("" + t, 10);
if (!isNaN(n))
return 1e3 * n;
var r = Date.parse("" + t);
return isNaN(r) ? 6e4 : r - e
}
function d(e) {
var t;
if (null === (t = e) || void 0 === t ? void 0 : t.__sentry_captured__)
return !0;
try {
Object.defineProperty(e, "__sentry_captured__", {
value: !0
})
} catch (e) {}
return !1
}
n(103)
}
, function(e, t, n) {
"use strict";
n.d(t, "b", (function() {
return o
}
)),
n.d(t, "a", (function() {
return a
}
)),
n.d(t, "d", (function() {
return l
}
)),
n.d(t, "e", (function() {
return s
}
)),
n.d(t, "c", (function() {
return c
}
));
var r = n(52)
, i = n(39);
function o() {
if (!("fetch"in Object(r.a)()))
return !1;
try {
return new Headers,
new Request(""),
new Response,
!0
} catch (e) {
return !1
}
}
function a(e) {
return e && /^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())
}
function l() {
if (!o())
return !1;
var e = Object(r.a)();
if (a(e.fetch))
return !0;
var t = !1
, n = e.document;
if (n && "function" == typeof n.createElement)
try {
var l = n.createElement("iframe");
l.hidden = !0,
n.head.appendChild(l),
l.contentWindow && l.contentWindow.fetch && (t = a(l.contentWindow.fetch)),
n.head.removeChild(l)
} catch (e) {
i.b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e)
}
return t
}
function s() {
if (!o())
return !1;
try {
return new Request("_",{
referrerPolicy: "origin"
}),
!0
} catch (e) {
return !1
}
}
function c() {
var e = Object(r.a)()
, t = e.chrome
, n = t && t.app && t.app.runtime
, i = "history"in e && !!e.history.pushState && !!e.history.replaceState;
return !n && i
}
}
, function(e, t, n) {
var r = n(480);
e.exports = function e(t, n, i) {
return r(n) || (i = n || i,
n = []),
i = i || {},
t instanceof RegExp ? function(e, t) {
var n = e.source.match(/\((?!\?)/g);
if (n)
for (var r = 0; r < n.length; r++)
t.push({
name: r,
prefix: null,
delimiter: null,
optional: !1,
repeat: !1,
partial: !1,
asterisk: !1,
pattern: null
});
return u(e, t)
}(t, n) : r(t) ? function(t, n, r) {
for (var i = [], o = 0; o < t.length; o++)
i.push(e(t[o], n, r).source);
return u(new RegExp("(?:" + i.join("|") + ")",d(r)), n)
}(t, n, i) : function(e, t, n) {
return p(o(e, n), t, n)
}(t, n, i)
}
,
e.exports.parse = o,
e.exports.compile = function(e, t) {
return l(o(e, t), t)
}
,
e.exports.tokensToFunction = l,
e.exports.tokensToRegExp = p;
var i = new RegExp(["(\\\\.)", "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");
function o(e, t) {
for (var n, r = [], o = 0, a = 0, l = "", u = t && t.delimiter || "/"; null != (n = i.exec(e)); ) {
var d = n[0]
, p = n[1]
, h = n.index;
if (l += e.slice(a, h),
a = h + d.length,
p)
l += p[1];
else {
var f = e[a]
, b = n[2]
, g = n[3]
, m = n[4]
, v = n[5]
, y = n[6]
, x = n[7];
l && (r.push(l),
l = "");
var O = null != b && null != f && f !== b
, j = "+" === y || "*" === y
, k = "?" === y || "*" === y
, w = n[2] || u
, C = m || v;
r.push({
name: g || o++,
prefix: b || "",
delimiter: w,
optional: k,
repeat: j,
partial: O,
asterisk: !!x,
pattern: C ? c(C) : x ? ".*" : "[^" + s(w) + "]+?"
})
}
}
return a < e.length && (l += e.substr(a)),
l && r.push(l),
r
}
function a(e) {
return encodeURI(e).replace(/[\/?#]/g, (function(e) {
return "%" + e.charCodeAt(0).toString(16).toUpperCase()
}
))
}
function l(e, t) {
for (var n = new Array(e.length), i = 0; i < e.length; i++)
"object" == typeof e[i] && (n[i] = new RegExp("^(?:" + e[i].pattern + ")$",d(t)));
return function(t, i) {
for (var o = "", l = t || {}, s = (i || {}).pretty ? a : encodeURIComponent, c = 0; c < e.length; c++) {
var u = e[c];
if ("string" != typeof u) {
var d, p = l[u.name];
if (null == p) {
if (u.optional) {
u.partial && (o += u.prefix);
continue
}
throw new TypeError('Expected "' + u.name + '" to be defined')
}
if (r(p)) {
if (!u.repeat)
throw new TypeError('Expected "' + u.name + '" to not repeat, but received `' + JSON.stringify(p) + "`");
if (0 === p.length) {
if (u.optional)
continue;
throw new TypeError('Expected "' + u.name + '" to not be empty')
}
for (var h = 0; h < p.length; h++) {
if (d = s(p[h]),
!n[c].test(d))
throw new TypeError('Expected all "' + u.name + '" to match "' + u.pattern + '", but received `' + JSON.stringify(d) + "`");
o += (0 === h ? u.prefix : u.delimiter) + d
}
} else {
if (d = u.asterisk ? encodeURI(p).replace(/[?#]/g, (function(e) {
return "%" + e.charCodeAt(0).toString(16).toUpperCase()
}
)) : s(p),
!n[c].test(d))
throw new TypeError('Expected "' + u.name + '" to match "' + u.pattern + '", but received "' + d + '"');
o += u.prefix + d
}
} else
o += u
}
return o
}
}
function s(e) {
return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1")
}
function c(e) {
return e.replace(/([=!:$\/()])/g, "\\$1")
}
function u(e, t) {
return e.keys = t,
e
}
function d(e) {
return e && e.sensitive ? "" : "i"
}
function p(e, t, n) {
r(t) || (n = t || n,
t = []);
for (var i = (n = n || {}).strict, o = !1 !== n.end, a = "", l = 0; l < e.length; l++) {
var c = e[l];
if ("string" == typeof c)
a += s(c);
else {
var p = s(c.prefix)
, h = "(?:" + c.pattern + ")";
t.push(c),
c.repeat && (h += "(?:" + p + h + ")*"),
a += h = c.optional ? c.partial ? p + "(" + h + ")?" : "(?:" + p + "(" + h + "))?" : p + "(" + h + ")"
}
}
var f = s(n.delimiter || "/")
, b = a.slice(-f.length) === f;
return i || (a = (b ? a.slice(0, -f.length) : a) + "(?:" + f + "(?=$))?"),
a += o ? "$" : i && b ? "" : "(?=" + f + "|$)",
u(new RegExp("^" + a,d(n)), t)
}
}
, function(e, t, n) {
var r = n(501)
, i = n(502)
, o = n(97)
, a = n(16)
, l = n(117);
e.exports = function(e, t, n) {
var s = a(e) ? r : i;
return n && l(e, t, n) && (t = void 0),
s(e, o(t, 3))
}
}
, function(e, t, n) {
var r = n(277)("floor");
e.exports = r
}
, function(e, t, n) {
"use strict";
(function(e) {
var r = n(168)
, i = "object" == typeof exports && exports && !exports.nodeType && exports
, o = i && "object" == typeof e && e && !e.nodeType && e
, a = o && o.exports === i && r.a.process
, l = function() {
try {
return o && o.require && o.require("util").types || a && a.binding && a.binding("util")
} catch (e) {}
}();
t.a = l
}
).call(this, n(106)(e))
}
, function(e, t, n) {
e.exports = n(86).enc.Utf8
}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
n(540),
n(541),
n(281),
n(544),
function() {
var e = r
, t = e.lib.BlockCipher
, n = e.algo
, i = []
, o = []
, a = []
, l = []
, s = []
, c = []
, u = []
, d = []
, p = []
, h = [];
!function() {
for (var e = [], t = 0; t < 256; t++)
e[t] = t < 128 ? t << 1 : t << 1 ^ 283;
var n = 0
, r = 0;
for (t = 0; t < 256; t++) {
var f = r ^ r << 1 ^ r << 2 ^ r << 3 ^ r << 4;
f = f >>> 8 ^ 255 & f ^ 99,
i[n] = f,
o[f] = n;
var b = e[n]
, g = e[b]
, m = e[g]
, v = 257 * e[f] ^ 16843008 * f;
a[n] = v << 24 | v >>> 8,
l[n] = v << 16 | v >>> 16,
s[n] = v << 8 | v >>> 24,
c[n] = v,
v = 16843009 * m ^ 65537 * g ^ 257 * b ^ 16843008 * n,
u[f] = v << 24 | v >>> 8,
d[f] = v << 16 | v >>> 16,
p[f] = v << 8 | v >>> 24,
h[f] = v,
n ? (n = b ^ e[e[e[m ^ b]]],
r ^= e[e[r]]) : n = r = 1
}
}();
var f = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]
, b = n.AES = t.extend({
_doReset: function() {
if (!this._nRounds || this._keyPriorReset !== this._key) {
for (var e = this._keyPriorReset = this._key, t = e.words, n = e.sigBytes / 4, r = 4 * ((this._nRounds = n + 6) + 1), o = this._keySchedule = [], a = 0; a < r; a++)
a < n ? o[a] = t[a] : (c = o[a - 1],
a % n ? n > 6 && a % n == 4 && (c = i[c >>> 24] << 24 | i[c >>> 16 & 255] << 16 | i[c >>> 8 & 255] << 8 | i[255 & c]) : (c = i[(c = c << 8 | c >>> 24) >>> 24] << 24 | i[c >>> 16 & 255] << 16 | i[c >>> 8 & 255] << 8 | i[255 & c],
c ^= f[a / n | 0] << 24),
o[a] = o[a - n] ^ c);
for (var l = this._invKeySchedule = [], s = 0; s < r; s++) {
if (a = r - s,
s % 4)
var c = o[a];
else
c = o[a - 4];
l[s] = s < 4 || a <= 4 ? c : u[i[c >>> 24]] ^ d[i[c >>> 16 & 255]] ^ p[i[c >>> 8 & 255]] ^ h[i[255 & c]]
}
}
},
encryptBlock: function(e, t) {
this._doCryptBlock(e, t, this._keySchedule, a, l, s, c, i)
},
decryptBlock: function(e, t) {
var n = e[t + 1];
e[t + 1] = e[t + 3],
e[t + 3] = n,
this._doCryptBlock(e, t, this._invKeySchedule, u, d, p, h, o),
n = e[t + 1],
e[t + 1] = e[t + 3],
e[t + 3] = n
},
_doCryptBlock: function(e, t, n, r, i, o, a, l) {
for (var s = this._nRounds, c = e[t] ^ n[0], u = e[t + 1] ^ n[1], d = e[t + 2] ^ n[2], p = e[t + 3] ^ n[3], h = 4, f = 1; f < s; f++) {
var b = r[c >>> 24] ^ i[u >>> 16 & 255] ^ o[d >>> 8 & 255] ^ a[255 & p] ^ n[h++]
, g = r[u >>> 24] ^ i[d >>> 16 & 255] ^ o[p >>> 8 & 255] ^ a[255 & c] ^ n[h++]
, m = r[d >>> 24] ^ i[p >>> 16 & 255] ^ o[c >>> 8 & 255] ^ a[255 & u] ^ n[h++]
, v = r[p >>> 24] ^ i[c >>> 16 & 255] ^ o[u >>> 8 & 255] ^ a[255 & d] ^ n[h++];
c = b,
u = g,
d = m,
p = v
}
b = (l[c >>> 24] << 24 | l[u >>> 16 & 255] << 16 | l[d >>> 8 & 255] << 8 | l[255 & p]) ^ n[h++],
g = (l[u >>> 24] << 24 | l[d >>> 16 & 255] << 16 | l[p >>> 8 & 255] << 8 | l[255 & c]) ^ n[h++],
m = (l[d >>> 24] << 24 | l[p >>> 16 & 255] << 16 | l[c >>> 8 & 255] << 8 | l[255 & u]) ^ n[h++],
v = (l[p >>> 24] << 24 | l[c >>> 16 & 255] << 16 | l[u >>> 8 & 255] << 8 | l[255 & d]) ^ n[h++],
e[t] = b,
e[t + 1] = g,
e[t + 2] = m,
e[t + 3] = v
},
keySize: 8
});
e.AES = t._createHelper(b)
}(),
r.AES)
}
, function(e, t, n) {
"use strict";
var r = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/
, i = function(e) {
var t = {};
return function(e) {
return void 0 === t[e] && (t[e] = function(e) {
return r.test(e) || 111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91
}(e)),
t[e]
}
}();
t.a = i
}
, , , , , , , , , , function(e, t, n) {
(function(t) {
var n = "object" == typeof t && t && t.Object === Object && t;
e.exports = n
}
).call(this, n(73))
}
, function(e, t, n) {
var r = n(231);
e.exports = function(e, t, n) {
var i = e.length;
return n = void 0 === n ? i : n,
!t && n >= i ? e : r(e, t, n)
}
}
, function(e, t) {
e.exports = function(e, t, n) {
var r = -1
, i = e.length;
t < 0 && (t = -t > i ? 0 : i + t),
(n = n > i ? i : n) < 0 && (n += i),
i = t > n ? 0 : n - t >>> 0,
t >>>= 0;
for (var o = Array(i); ++r < i; )
o[r] = e[r + t];
return o
}
}
, function(e, t, n) {
var r = n(363)
, i = n(191)
, o = n(364);
e.exports = function(e) {
return i(e) ? o(e) : r(e)
}
}
, function(e, t, n) {
var r = n(120)
, i = n(365)
, o = Object.prototype.hasOwnProperty;
e.exports = function(e) {
if (!r(e))
return i(e);
var t = [];
for (var n in Object(e))
o.call(e, n) && "constructor" != n && t.push(n);
return t
}
}
, function(e, t) {
e.exports = function(e, t) {
return function(n) {
return e(t(n))
}
}
}
, function(e, t) {
var n = Function.prototype.toString;
e.exports = function(e) {
if (null != e) {
try {
return n.call(e)
} catch (e) {}
try {
return e + ""
} catch (e) {}
}
return ""
}
}
, function(e, t, n) {
var r = n(95)(n(70), "Set");
e.exports = r
}
, function(e, t, n) {
var r = n(378)
, i = n(30)
, o = n(116)
, a = /^[-+]0x[0-9a-f]+$/i
, l = /^0b[01]+$/i
, s = /^0o[0-7]+$/i
, c = parseInt;
e.exports = function(e) {
if ("number" == typeof e)
return e;
if (o(e))
return NaN;
if (i(e)) {
var t = "function" == typeof e.valueOf ? e.valueOf() : e;
e = i(t) ? t + "" : t
}
if ("string" != typeof e)
return 0 === e ? e : +e;
e = r(e);
var n = l.test(e);
return n || s.test(e) ? c(e.slice(2), n ? 2 : 8) : a.test(e) ? NaN : +e
}
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.ActionCreators = t.ActionTypes = void 0;
var r = {
UNDO: "@@redux-undo/UNDO",
REDO: "@@redux-undo/REDO",
JUMP_TO_FUTURE: "@@redux-undo/JUMP_TO_FUTURE",
JUMP_TO_PAST: "@@redux-undo/JUMP_TO_PAST",
JUMP: "@@redux-undo/JUMP",
CLEAR_HISTORY: "@@redux-undo/CLEAR_HISTORY"
};
t.ActionTypes = r;
var i = {
undo: function() {
return {
type: r.UNDO
}
},
redo: function() {
return {
type: r.REDO
}
},
jumpToFuture: function(e) {
return {
type: r.JUMP_TO_FUTURE,
index: e
}
},
jumpToPast: function(e) {
return {
type: r.JUMP_TO_PAST,
index: e
}
},
jump: function(e) {
return {
type: r.JUMP,
index: e
}
},
clearHistory: function() {
return {
type: r.CLEAR_HISTORY
}
}
};
t.ActionCreators = i
}
, function(e, t, n) {
"use strict";
function r(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
return Array.isArray(e) ? e : "string" == typeof e ? [e] : t
}
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.parseActions = r,
t.isHistory = function(e) {
return void 0 !== e.present && void 0 !== e.future && void 0 !== e.past && Array.isArray(e.future) && Array.isArray(e.past)
}
,
t.includeAction = function(e) {
var t = r(e);
return function(e) {
return t.indexOf(e.type) >= 0
}
}
,
t.excludeAction = function(e) {
var t = r(e);
return function(e) {
return t.indexOf(e.type) < 0
}
}
,
t.combineFilters = function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return t.reduce((function(e, t) {
return function(n, r, i) {
return e(n, r, i) && t(n, r, i)
}
}
), (function() {
return !0
}
))
}
,
t.groupByActionTypes = function(e) {
var t = r(e);
return function(e) {
return t.indexOf(e.type) >= 0 ? e.type : null
}
}
,
t.newHistory = function(e, t, n) {
return {
past: e,
present: t,
future: n,
group: arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null,
_latestUnfiltered: t,
index: e.length,
limit: e.length + n.length + 1
}
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e, t) {
return function() {
for (var n = new Array(arguments.length), r = 0; r < n.length; r++)
n[r] = arguments[r];
return e.apply(t, n)
}
}
}
, function(e, t, n) {
"use strict";
var r = n(65);
function i(e) {
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]")
}
e.exports = function(e, t, n) {
if (!t)
return e;
var o;
if (n)
o = n(t);
else if (r.isURLSearchParams(t))
o = t.toString();
else {
var a = [];
r.forEach(t, (function(e, t) {
null != e && (r.isArray(e) ? t += "[]" : e = [e],
r.forEach(e, (function(e) {
r.isDate(e) ? e = e.toISOString() : r.isObject(e) && (e = JSON.stringify(e)),
a.push(i(t) + "=" + i(e))
}
)))
}
)),
o = a.join("&")
}
if (o) {
var l = e.indexOf("#");
-1 !== l && (e = e.slice(0, l)),
e += (-1 === e.indexOf("?") ? "?" : "&") + o
}
return e
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e, t, n, r, i) {
return e.config = t,
n && (e.code = n),
e.request = r,
e.response = i,
e.isAxiosError = !0,
e.toJSON = function() {
return {
message: this.message,
name: this.name,
description: this.description,
number: this.number,
fileName: this.fileName,
lineNumber: this.lineNumber,
columnNumber: this.columnNumber,
stack: this.stack,
config: this.config,
code: this.code,
status: this.response && this.response.status ? this.response.status : null
}
}
,
e
}
}
, function(e, t, n) {
"use strict";
var r = n(65)
, i = n(390)
, o = n(391)
, a = n(241)
, l = n(392)
, s = n(395)
, c = n(396)
, u = n(244)
, d = n(149)
, p = n(150);
e.exports = function(e) {
return new Promise((function(t, n) {
var h, f = e.data, b = e.headers, g = e.responseType;
function m() {
e.cancelToken && e.cancelToken.unsubscribe(h),
e.signal && e.signal.removeEventListener("abort", h)
}
r.isFormData(f) && delete b["Content-Type"];
var v = new XMLHttpRequest;
if (e.auth) {
var y = e.auth.username || ""
, x = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
b.Authorization = "Basic " + btoa(y + ":" + x)
}
var O = l(e.baseURL, e.url);
function j() {
if (v) {
var r = "getAllResponseHeaders"in v ? s(v.getAllResponseHeaders()) : null
, o = {
data: g && "text" !== g && "json" !== g ? v.response : v.responseText,
status: v.status,
statusText: v.statusText,
headers: r,
config: e,
request: v
};
i((function(e) {
t(e),
m()
}
), (function(e) {
n(e),
m()
}
), o),
v = null
}
}
if (v.open(e.method.toUpperCase(), a(O, e.params, e.paramsSerializer), !0),
v.timeout = e.timeout,
"onloadend"in v ? v.onloadend = j : v.onreadystatechange = function() {
v && 4 === v.readyState && (0 !== v.status || v.responseURL && 0 === v.responseURL.indexOf("file:")) && setTimeout(j)
}
,
v.onabort = function() {
v && (n(u("Request aborted", e, "ECONNABORTED", v)),
v = null)
}
,
v.onerror = function() {
n(u("Network Error", e, null, v)),
v = null
}
,
v.ontimeout = function() {
var t = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded"
, r = e.transitional || d.transitional;
e.timeoutErrorMessage && (t = e.timeoutErrorMessage),
n(u(t, e, r.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED", v)),
v = null
}
,
r.isStandardBrowserEnv()) {
var k = (e.withCredentials || c(O)) && e.xsrfCookieName ? o.read(e.xsrfCookieName) : void 0;
k && (b[e.xsrfHeaderName] = k)
}
"setRequestHeader"in v && r.forEach(b, (function(e, t) {
void 0 === f && "content-type" === t.toLowerCase() ? delete b[t] : v.setRequestHeader(t, e)
}
)),
r.isUndefined(e.withCredentials) || (v.withCredentials = !!e.withCredentials),
g && "json" !== g && (v.responseType = e.responseType),
"function" == typeof e.onDownloadProgress && v.addEventListener("progress", e.onDownloadProgress),
"function" == typeof e.onUploadProgress && v.upload && v.upload.addEventListener("progress", e.onUploadProgress),
(e.cancelToken || e.signal) && (h = function(e) {
v && (n(!e || e && e.type ? new p("canceled") : e),
v.abort(),
v = null)
}
,
e.cancelToken && e.cancelToken.subscribe(h),
e.signal && (e.signal.aborted ? h() : e.signal.addEventListener("abort", h))),
f || (f = null),
v.send(f)
}
))
}
}
, function(e, t, n) {
"use strict";
var r = n(242);
e.exports = function(e, t, n, i, o) {
var a = new Error(e);
return r(a, t, n, i, o)
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e) {
return !(!e || !e.__CANCEL__)
}
}
, function(e, t, n) {
"use strict";
var r = n(65);
e.exports = function(e, t) {
t = t || {};
var n = {};
function i(e, t) {
return r.isPlainObject(e) && r.isPlainObject(t) ? r.merge(e, t) : r.isPlainObject(t) ? r.merge({}, t) : r.isArray(t) ? t.slice() : t
}
function o(n) {
return r.isUndefined(t[n]) ? r.isUndefined(e[n]) ? void 0 : i(void 0, e[n]) : i(e[n], t[n])
}
function a(e) {
if (!r.isUndefined(t[e]))
return i(void 0, t[e])
}
function l(n) {
return r.isUndefined(t[n]) ? r.isUndefined(e[n]) ? void 0 : i(void 0, e[n]) : i(void 0, t[n])
}
function s(n) {
return n in t ? i(e[n], t[n]) : n in e ? i(void 0, e[n]) : void 0
}
var c = {
url: a,
method: a,
data: a,
baseURL: l,
transformRequest: l,
transformResponse: l,
paramsSerializer: l,
timeout: l,
timeoutMessage: l,
withCredentials: l,
adapter: l,
responseType: l,
xsrfCookieName: l,
xsrfHeaderName: l,
onUploadProgress: l,
onDownloadProgress: l,
decompress: l,
maxContentLength: l,
maxBodyLength: l,
transport: l,
httpAgent: l,
httpsAgent: l,
cancelToken: l,
socketPath: l,
responseEncoding: l,
validateStatus: s
};
return r.forEach(Object.keys(e).concat(Object.keys(t)), (function(e) {
var t = c[e] || o
, i = t(e);
r.isUndefined(i) && t !== s || (n[e] = i)
}
)),
n
}
}
, function(e, t) {
e.exports = {
version: "0.24.0"
}
}
, function(e, t, n) {
var r = n(151)
, i = n(401);
e.exports = function e(t, n, o, a, l) {
var s = -1
, c = t.length;
for (o || (o = i),
l || (l = []); ++s < c; ) {
var u = t[s];
n > 0 && o(u) ? n > 1 ? e(u, n - 1, o, a, l) : r(l, u) : a || (l[l.length] = u)
}
return l
}
}
, function(e, t, n) {
var r = n(403);
e.exports = function(e, t) {
var n = -1
, i = e.length
, o = i - 1;
for (t = void 0 === t ? i : t; ++n < t; ) {
var a = r(n, o)
, l = e[a];
e[a] = e[n],
e[n] = l
}
return e.length = t,
e
}
}
, function(e, t, n) {
var r = n(406)
, i = n(122)
, o = n(16)
, a = n(123)
, l = n(145)
, s = n(148)
, c = Object.prototype.hasOwnProperty;
e.exports = function(e, t) {
var n = o(e)
, u = !n && i(e)
, d = !n && !u && a(e)
, p = !n && !u && !d && s(e)
, h = n || u || d || p
, f = h ? r(e.length, String) : []
, b = f.length;
for (var g in e)
!t && !c.call(e, g) || h && ("length" == g || d && ("offset" == g || "parent" == g) || p && ("buffer" == g || "byteLength" == g || "byteOffset" == g) || l(g, b)) || f.push(g);
return f
}
}
, function(e, t) {
e.exports = function(e, t, n, r) {
for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; )
if (t(e[o], o, e))
return o;
return -1
}
}
, function(e, t) {
e.exports = function(e) {
return function(t) {
return null == e ? void 0 : e[t]
}
}
}
, function(e, t) {
e.exports = function(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = new Array(t); n < t; n++)
r[n] = e[n];
return r
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
var r = n(255)
, i = n(461)
, o = n(256);
e.exports = function(e, t, n, a, l, s) {
var c = 1 & n
, u = e.length
, d = t.length;
if (u != d && !(c && d > u))
return !1;
var p = s.get(e)
, h = s.get(t);
if (p && h)
return p == t && h == e;
var f = -1
, b = !0
, g = 2 & n ? new r : void 0;
for (s.set(e, t),
s.set(t, e); ++f < u; ) {
var m = e[f]
, v = t[f];
if (a)
var y = c ? a(v, m, f, t, e, s) : a(m, v, f, e, t, s);
if (void 0 !== y) {
if (y)
continue;
b = !1;
break
}
if (g) {
if (!i(t, (function(e, t) {
if (!o(g, t) && (m === e || l(m, e, n, a, s)))
return g.push(t)
}
))) {
b = !1;
break
}
} else if (m !== v && !l(m, v, n, a, s)) {
b = !1;
break
}
}
return s.delete(e),
s.delete(t),
b
}
}
, function(e, t, n) {
var r = n(199)
, i = n(459)
, o = n(460);
function a(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.__data__ = new r; ++t < n; )
this.add(e[t])
}
a.prototype.add = a.prototype.push = i,
a.prototype.has = o,
e.exports = a
}
, function(e, t) {
e.exports = function(e, t) {
return e.has(t)
}
}
, function(e, t, n) {
var r = n(70).Uint8Array;
e.exports = r
}
, function(e, t, n) {
var r = n(259)
, i = n(202)
, o = n(96);
e.exports = function(e) {
return r(e, o, i)
}
}
, function(e, t, n) {
var r = n(151)
, i = n(16);
e.exports = function(e, t, n) {
var o = t(e);
return i(e) ? o : r(o, n(e))
}
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; ++n < r; ) {
var a = e[n];
t(a, n, e) && (o[i++] = a)
}
return o
}
}
, function(e, t) {
e.exports = function() {
return []
}
}
, function(e, t, n) {
var r = n(159)
, i = n(263)
, o = n(265)
, a = n(466)
, l = n(30)
, s = n(125)
, c = n(270);
e.exports = function e(t, n, u, d, p) {
t !== n && o(n, (function(o, s) {
if (p || (p = new r),
l(o))
a(t, n, s, u, e, d, p);
else {
var h = d ? d(c(t, s), o, s + "", t, n, p) : void 0;
void 0 === h && (h = o),
i(t, s, h)
}
}
), s)
}
}
, function(e, t, n) {
var r = n(160)
, i = n(118);
e.exports = function(e, t, n) {
(void 0 !== n && !i(e[t], n) || void 0 === n && !(t in e)) && r(e, t, n)
}
}
, function(e, t, n) {
var r = n(95)
, i = function() {
try {
var e = r(Object, "defineProperty");
return e({}, "", {}),
e
} catch (e) {}
}();
e.exports = i
}
, function(e, t, n) {
var r = n(465)();
e.exports = r
}
, function(e, t, n) {
(function(e) {
var r = n(70)
, i = t && !t.nodeType && t
, o = i && "object" == typeof e && e && !e.nodeType && e
, a = o && o.exports === i ? r.Buffer : void 0
, l = a ? a.allocUnsafe : void 0;
e.exports = function(e, t) {
if (t)
return e.slice();
var n = e.length
, r = l ? l(n) : new e.constructor(n);
return e.copy(r),
r
}
}
).call(this, n(147)(e))
}
, function(e, t, n) {
var r = n(203);
e.exports = function(e, t) {
var n = t ? r(e.buffer) : e.buffer;
return new e.constructor(n,e.byteOffset,e.length)
}
}
, function(e, t, n) {
var r = n(467)
, i = n(204)
, o = n(120);
e.exports = function(e) {
return "function" != typeof e.constructor || o(e) ? {} : r(i(e))
}
}
, function(e, t, n) {
var r = n(74)
, i = n(204)
, o = n(64)
, a = Function.prototype
, l = Object.prototype
, s = a.toString
, c = l.hasOwnProperty
, u = s.call(Object);
e.exports = function(e) {
if (!o(e) || "[object Object]" != r(e))
return !1;
var t = i(e);
if (null === t)
return !0;
var n = c.call(t, "constructor") && t.constructor;
return "function" == typeof n && n instanceof n && s.call(n) == u
}
}
, function(e, t) {
e.exports = function(e, t) {
if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t)
return e[t]
}
}
, function(e, t, n) {
var r = n(126)
, i = n(472)
, o = n(474);
e.exports = function(e, t) {
return o(i(e, t, r), e + "")
}
}
, function(e, t, n) {
var r = n(30);
e.exports = function(e) {
return e == e && !r(e)
}
}
, function(e, t) {
e.exports = function(e, t) {
return function(n) {
return null != n && n[e] === t && (void 0 !== t || e in Object(n))
}
}
}
, function(e, t, n) {
var r = n(162)
, i = n(83);
e.exports = function(e, t) {
var n = -1
, o = i(e) ? Array(e.length) : [];
return r(e, (function(e, r, i) {
o[++n] = t(e, r, i)
}
)),
o
}
}
, function(e, t, n) {
var r = n(265)
, i = n(96);
e.exports = function(e, t) {
return e && r(e, t, i)
}
}
, function(e, t, n) {
var r = n(500)("toUpperCase");
e.exports = r
}
, function(e, t, n) {
var r = n(70)
, i = n(108)
, o = n(237)
, a = n(75)
, l = r.isFinite
, s = Math.min;
e.exports = function(e) {
var t = Math[e];
return function(e, n) {
if (e = o(e),
(n = null == n ? 0 : s(i(n), 292)) && l(e)) {
var r = (a(e) + "e").split("e")
, c = t(r[0] + "e" + (+r[1] + n));
return +((r = (a(c) + "e").split("e"))[0] + "e" + (+r[1] - n))
}
return t(e)
}
}
}
, function(e, t, n) {
var r = n(126);
e.exports = function(e) {
return "function" == typeof e ? e : r
}
}
, function(e, t, n) {
var r = n(151)
, i = n(204)
, o = n(202)
, a = n(261)
, l = Object.getOwnPropertySymbols ? function(e) {
for (var t = []; e; )
r(t, o(e)),
e = i(e);
return t
}
: a;
e.exports = l
}
, function(e, t, n) {}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
n(542),
n(543),
function() {
var e = r
, t = e.lib
, n = t.Base
, i = t.WordArray
, o = e.algo
, a = o.MD5
, l = o.EvpKDF = n.extend({
cfg: n.extend({
keySize: 4,
hasher: a,
iterations: 1
}),
init: function(e) {
this.cfg = this.cfg.extend(e)
},
compute: function(e, t) {
for (var n, r = this.cfg, o = r.hasher.create(), a = i.create(), l = a.words, s = r.keySize, c = r.iterations; l.length < s; ) {
n && o.update(n),
n = o.update(e).finalize(t),
o.reset();
for (var u = 1; u < c; u++)
n = o.finalize(n),
o.reset();
a.concat(n)
}
return a.sigBytes = 4 * s,
a
}
});
e.EvpKDF = function(e, t, n) {
return l.create(n).compute(e, t)
}
}(),
r.EvpKDF)
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return r
}
));
var r = function() {
function e() {
this._hasWeakSet = "function" == typeof WeakSet,
this._inner = this._hasWeakSet ? new WeakSet : []
}
return e.prototype.memoize = function(e) {
if (this._hasWeakSet)
return !!this._inner.has(e) || (this._inner.add(e),
!1);
for (var t = 0; t < this._inner.length; t++)
if (this._inner[t] === e)
return !0;
return this._inner.push(e),
!1
}
,
e.prototype.unmemoize = function(e) {
if (this._hasWeakSet)
this._inner.delete(e);
else
for (var t = 0; t < this._inner.length; t++)
if (this._inner[t] === e) {
this._inner.splice(t, 1);
break
}
}
,
e
}()
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return l
}
));
var r = n(311)
, i = n(39)
, o = n(49)
, a = n(36);
function l() {
Object(r.a)({
callback: s,
type: "error"
}),
Object(r.a)({
callback: s,
type: "unhandledrejection"
})
}
function s() {
var e = Object(a.b)();
e && (i.b.log("[Tracing] Transaction: " + o.a.InternalError + " -> Global error occured"),
e.setStatus(o.a.InternalError))
}
}
, function(e, t, n) {
var r = n(376)
, i = n(190)
, o = n(108)
, a = n(75);
e.exports = function(e, t, n) {
return e = a(e),
n = null == n ? 0 : r(o(n), 0, e.length),
t = i(t),
e.slice(n, n + t.length) == t
}
}
, function(e, t, n) {
"use strict";
e.exports = n(381)
}
, function(e, t, n) {
var r = n(195)
, i = n(108)
, o = Math.max;
e.exports = function(e, t, n) {
var a = null == e ? 0 : e.length;
if (!a)
return -1;
var l = null == n ? 0 : i(n);
return l < 0 && (l = o(a + l, 0)),
r(e, t, l)
}
}
, function(e, t) {
var n = Array.prototype.reverse;
e.exports = function(e) {
return null == e ? e : n.call(e)
}
}
, function(e, t) {
e.exports = function(e, t, n, r) {
var i = n ? n.call(r, e, t) : void 0;
if (void 0 !== i)
return !!i;
if (e === t)
return !0;
if ("object" != typeof e || !e || "object" != typeof t || !t)
return !1;
var o = Object.keys(e)
, a = Object.keys(t);
if (o.length !== a.length)
return !1;
for (var l = Object.prototype.hasOwnProperty.bind(t), s = 0; s < o.length; s++) {
var c = o[s];
if (!l(c))
return !1;
var u = e[c]
, d = t[c];
if (!1 === (i = n ? n.call(r, u, d, c) : void 0) || void 0 === i && u !== d)
return !1
}
return !0
}
}
, function(e, t, n) {
"use strict";
t.a = function(e) {
function t(e, r, s, c, p) {
for (var h, f, b, g, x, j = 0, k = 0, w = 0, C = 0, _ = 0, I = 0, z = b = h = 0, L = 0, R = 0, P = 0, B = 0, F = s.length, V = F - 1, W = "", q = "", H = "", U = ""; L < F; ) {
if (f = s.charCodeAt(L),
L === V && 0 !== k + C + w + j && (0 !== k && (f = 47 === k ? 10 : 47),
C = w = j = 0,
F++,
V++),
0 === k + C + w + j) {
if (L === V && (0 < R && (W = W.replace(d, "")),
0 < W.trim().length)) {
switch (f) {
case 32:
case 9:
case 59:
case 13:
case 10:
break;
default:
W += s.charAt(L)
}
f = 59
}
switch (f) {
case 123:
for (h = (W = W.trim()).charCodeAt(0),
b = 1,
B = ++L; L < F; ) {
switch (f = s.charCodeAt(L)) {
case 123:
b++;
break;
case 125:
b--;
break;
case 47:
switch (f = s.charCodeAt(L + 1)) {
case 42:
case 47:
e: {
for (z = L + 1; z < V; ++z)
switch (s.charCodeAt(z)) {
case 47:
if (42 === f && 42 === s.charCodeAt(z - 1) && L + 2 !== z) {
L = z + 1;
break e
}
break;
case 10:
if (47 === f) {
L = z + 1;
break e
}
}
L = z
}
}
break;
case 91:
f++;
case 40:
f++;
case 34:
case 39:
for (; L++ < V && s.charCodeAt(L) !== f; )
;
}
if (0 === b)
break;
L++
}
if (b = s.substring(B, L),
0 === h && (h = (W = W.replace(u, "").trim()).charCodeAt(0)),
64 === h) {
switch (0 < R && (W = W.replace(d, "")),
f = W.charCodeAt(1)) {
case 100:
case 109:
case 115:
case 45:
R = r;
break;
default:
R = E
}
if (B = (b = t(r, R, b, f, p + 1)).length,
0 < N && (x = l(3, b, R = n(E, W, P), r, S, M, B, f, p, c),
W = R.join(""),
void 0 !== x && 0 === (B = (b = x.trim()).length) && (f = 0,
b = "")),
0 < B)
switch (f) {
case 115:
W = W.replace(O, a);
case 100:
case 109:
case 45:
b = W + "{" + b + "}";
break;
case 107:
b = (W = W.replace(m, "$1 $2")) + "{" + b + "}",
b = 1 === T || 2 === T && o("@" + b, 3) ? "@-webkit-" + b + "@" + b : "@" + b;
break;
default:
b = W + b,
112 === c && (q += b,
b = "")
}
else
b = ""
} else
b = t(r, n(r, W, P), b, c, p + 1);
H += b,
b = P = R = z = h = 0,
W = "",
f = s.charCodeAt(++L);
break;
case 125:
case 59:
if (1 < (B = (W = (0 < R ? W.replace(d, "") : W).trim()).length))
switch (0 === z && (h = W.charCodeAt(0),
45 === h || 96 < h && 123 > h) && (B = (W = W.replace(" ", ":")).length),
0 < N && void 0 !== (x = l(1, W, r, e, S, M, q.length, c, p, c)) && 0 === (B = (W = x.trim()).length) && (W = "\0\0"),
h = W.charCodeAt(0),
f = W.charCodeAt(1),
h) {
case 0:
break;
case 64:
if (105 === f || 99 === f) {
U += W + s.charAt(L);
break
}
default:
58 !== W.charCodeAt(B - 1) && (q += i(W, h, f, W.charCodeAt(2)))
}
P = R = z = h = 0,
W = "",
f = s.charCodeAt(++L)
}
}
switch (f) {
case 13:
case 10:
47 === k ? k = 0 : 0 === 1 + h && 107 !== c && 0 < W.length && (R = 1,
W += "\0"),
0 < N * D && l(0, W, r, e, S, M, q.length, c, p, c),
M = 1,
S++;
break;
case 59:
case 125:
if (0 === k + C + w + j) {
M++;
break
}
default:
switch (M++,
g = s.charAt(L),
f) {
case 9:
case 32:
if (0 === C + j + k)
switch (_) {
case 44:
case 58:
case 9:
case 32:
g = "";
break;
default:
32 !== f && (g = " ")
}
break;
case 0:
g = "\\0";
break;
case 12:
g = "\\f";
break;
case 11:
g = "\\v";
break;
case 38:
0 === C + k + j && (R = P = 1,
g = "\f" + g);
break;
case 108:
if (0 === C + k + j + A && 0 < z)
switch (L - z) {
case 2:
112 === _ && 58 === s.charCodeAt(L - 3) && (A = _);
case 8:
111 === I && (A = I)
}
break;
case 58:
0 === C + k + j && (z = L);
break;
case 44:
0 === k + w + C + j && (R = 1,
g += "\r");
break;
case 34:
case 39:
0 === k && (C = C === f ? 0 : 0 === C ? f : C);
break;
case 91:
0 === C + k + w && j++;
break;
case 93:
0 === C + k + w && j--;
break;
case 41:
0 === C + k + j && w--;
break;
case 40:
0 === C + k + j && (0 === h && (2 * _ + 3 * I == 533 || (h = 1)),
w++);
break;
case 64:
0 === k + w + C + j + z + b && (b = 1);
break;
case 42:
case 47:
if (!(0 < C + j + w))
switch (k) {
case 0:
switch (2 * f + 3 * s.charCodeAt(L + 1)) {
case 235:
k = 47;
break;
case 220:
B = L,
k = 42
}
break;
case 42:
47 === f && 42 === _ && B + 2 !== L && (33 === s.charCodeAt(B + 2) && (q += s.substring(B, L + 1)),
g = "",
k = 0)
}
}
0 === k && (W += g)
}
I = _,
_ = f,
L++
}
if (0 < (B = q.length)) {
if (R = r,
0 < N && void 0 !== (x = l(2, q, R, e, S, M, B, c, p, c)) && 0 === (q = x).length)
return U + q + H;
if (q = R.join(",") + "{" + q + "}",
0 != T * A) {
switch (2 !== T || o(q, 2) || (A = 0),
A) {
case 111:
q = q.replace(y, ":-moz-$1") + q;
break;
case 112:
q = q.replace(v, "::-webkit-input-$1") + q.replace(v, "::-moz-$1") + q.replace(v, ":-ms-input-$1") + q
}
A = 0
}
}
return U + q + H
}
function n(e, t, n) {
var i = t.trim().split(b);
t = i;
var o = i.length
, a = e.length;
switch (a) {
case 0:
case 1:
var l = 0;
for (e = 0 === a ? "" : e[0] + " "; l < o; ++l)
t[l] = r(e, t[l], n).trim();
break;
default:
var s = l = 0;
for (t = []; l < o; ++l)
for (var c = 0; c < a; ++c)
t[s++] = r(e[c] + " ", i[l], n).trim()
}
return t
}
function r(e, t, n) {
var r = t.charCodeAt(0);
switch (33 > r && (r = (t = t.trim()).charCodeAt(0)),
r) {
case 38:
return t.replace(g, "$1" + e.trim());
case 58:
return e.trim() + t.replace(g, "$1" + e.trim());
default:
if (0 < 1 * n && 0 < t.indexOf("\f"))
return t.replace(g, (58 === e.charCodeAt(0) ? "" : "$1") + e.trim())
}
return e + t
}
function i(e, t, n, r) {
var a = e + ";"
, l = 2 * t + 3 * n + 4 * r;
if (944 === l) {
e = a.indexOf(":", 9) + 1;
var s = a.substring(e, a.length - 1).trim();
return s = a.substring(0, e).trim() + s + ";",
1 === T || 2 === T && o(s, 1) ? "-webkit-" + s + s : s
}
if (0 === T || 2 === T && !o(a, 1))
return a;
switch (l) {
case 1015:
return 97 === a.charCodeAt(10) ? "-webkit-" + a + a : a;
case 951:
return 116 === a.charCodeAt(3) ? "-webkit-" + a + a : a;
case 963:
return 110 === a.charCodeAt(5) ? "-webkit-" + a + a : a;
case 1009:
if (100 !== a.charCodeAt(4))
break;
case 969:
case 942:
return "-webkit-" + a + a;
case 978:
return "-webkit-" + a + "-moz-" + a + a;
case 1019:
case 983:
return "-webkit-" + a + "-moz-" + a + "-ms-" + a + a;
case 883:
if (45 === a.charCodeAt(8))
return "-webkit-" + a + a;
if (0 < a.indexOf("image-set(", 11))
return a.replace(_, "$1-webkit-$2") + a;
break;
case 932:
if (45 === a.charCodeAt(4))
switch (a.charCodeAt(5)) {
case 103:
return "-webkit-box-" + a.replace("-grow", "") + "-webkit-" + a + "-ms-" + a.replace("grow", "positive") + a;
case 115:
return "-webkit-" + a + "-ms-" + a.replace("shrink", "negative") + a;
case 98:
return "-webkit-" + a + "-ms-" + a.replace("basis", "preferred-size") + a
}
return "-webkit-" + a + "-ms-" + a + a;
case 964:
return "-webkit-" + a + "-ms-flex-" + a + a;
case 1023:
if (99 !== a.charCodeAt(8))
break;
return "-webkit-box-pack" + (s = a.substring(a.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify")) + "-webkit-" + a + "-ms-flex-pack" + s + a;
case 1005:
return h.test(a) ? a.replace(p, ":-webkit-") + a.replace(p, ":-moz-") + a : a;
case 1e3:
switch (t = (s = a.substring(13).trim()).indexOf("-") + 1,
s.charCodeAt(0) + s.charCodeAt(t)) {
case 226:
s = a.replace(x, "tb");
break;
case 232:
s = a.replace(x, "tb-rl");
break;
case 220:
s = a.replace(x, "lr");
break;
default:
return a
}
return "-webkit-" + a + "-ms-" + s + a;
case 1017:
if (-1 === a.indexOf("sticky", 9))
break;
case 975:
switch (t = (a = e).length - 10,
l = (s = (33 === a.charCodeAt(t) ? a.substring(0, t) : a).substring(e.indexOf(":", 7) + 1).trim()).charCodeAt(0) + (0 | s.charCodeAt(7))) {
case 203:
if (111 > s.charCodeAt(8))
break;
case 115:
a = a.replace(s, "-webkit-" + s) + ";" + a;
break;
case 207:
case 102:
a = a.replace(s, "-webkit-" + (102 < l ? "inline-" : "") + "box") + ";" + a.replace(s, "-webkit-" + s) + ";" + a.replace(s, "-ms-" + s + "box") + ";" + a
}
return a + ";";
case 938:
if (45 === a.charCodeAt(5))
switch (a.charCodeAt(6)) {
case 105:
return s = a.replace("-items", ""),
"-webkit-" + a + "-webkit-box-" + s + "-ms-flex-" + s + a;
case 115:
return "-webkit-" + a + "-ms-flex-item-" + a.replace(k, "") + a;
default:
return "-webkit-" + a + "-ms-flex-line-pack" + a.replace("align-content", "").replace(k, "") + a
}
break;
case 973:
case 989:
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4))
break;
case 931:
case 953:
if (!0 === C.test(e))
return 115 === (s = e.substring(e.indexOf(":") + 1)).charCodeAt(0) ? i(e.replace("stretch", "fill-available"), t, n, r).replace(":fill-available", ":stretch") : a.replace(s, "-webkit-" + s) + a.replace(s, "-moz-" + s.replace("fill-", "")) + a;
break;
case 962:
if (a = "-webkit-" + a + (102 === a.charCodeAt(5) ? "-ms-" + a : "") + a,
211 === n + r && 105 === a.charCodeAt(13) && 0 < a.indexOf("transform", 10))
return a.substring(0, a.indexOf(";", 27) + 1).replace(f, "$1-webkit-$2") + a
}
return a
}
function o(e, t) {
var n = e.indexOf(1 === t ? ":" : "{")
, r = e.substring(0, 3 !== t ? n : 10);
return n = e.substring(n + 1, e.length - 1),
z(2 !== t ? r : r.replace(w, "$1"), n, t)
}
function a(e, t) {
var n = i(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2));
return n !== t + ";" ? n.replace(j, " or ($1)").substring(4) : "(" + t + ")"
}
function l(e, t, n, r, i, o, a, l, s, u) {
for (var d, p = 0, h = t; p < N; ++p)
switch (d = I[p].call(c, e, h, n, r, i, o, a, l, s, u)) {
case void 0:
case !1:
case !0:
case null:
break;
default:
h = d
}
if (h !== t)
return h
}
function s(e) {
return void 0 !== (e = e.prefix) && (z = null,
e ? "function" != typeof e ? T = 1 : (T = 2,
z = e) : T = 0),
s
}
function c(e, n) {
var r = e;
if (33 > r.charCodeAt(0) && (r = r.trim()),
r = [r],
0 < N) {
var i = l(-1, n, r, r, S, M, 0, 0, 0, 0);
void 0 !== i && "string" == typeof i && (n = i)
}
var o = t(E, r, n, 0, 0);
return 0 < N && void 0 !== (i = l(-2, o, r, r, S, M, o.length, 0, 0, 0)) && (o = i),
A = 0,
M = S = 1,
o
}
var u = /^\0+/g
, d = /[\0\r\f]/g
, p = /: */g
, h = /zoo|gra/
, f = /([,: ])(transform)/g
, b = /,\r+?/g
, g = /([\t\r\n ])*\f?&/g
, m = /@(k\w+)\s*(\S*)\s*/
, v = /::(place)/g
, y = /:(read-only)/g
, x = /[svh]\w+-[tblr]{2}/
, O = /\(\s*(.*)\s*\)/g
, j = /([\s\S]*?);/g
, k = /-self|flex-/g
, w = /[^]*?(:[rp][el]a[\w-]+)[^]*/
, C = /stretch|:\s*\w+\-(?:conte|avail)/
, _ = /([^-])(image-set\()/
, M = 1
, S = 1
, A = 0
, T = 1
, E = []
, I = []
, N = 0
, z = null
, D = 0;
return c.use = function e(t) {
switch (t) {
case void 0:
case null:
N = I.length = 0;
break;
default:
if ("function" == typeof t)
I[N++] = t;
else if ("object" == typeof t)
for (var n = 0, r = t.length; n < r; ++n)
e(t[n]);
else
D = 0 | !!t
}
return e
}
,
c.set = s,
void 0 !== e && s(e),
c
}
}
, function(e, t, n) {
"use strict";
t.a = {
animationIterationCount: 1,
borderImageOutset: 1,
borderImageSlice: 1,
borderImageWidth: 1,
boxFlex: 1,
boxFlexGroup: 1,
boxOrdinalGroup: 1,
columnCount: 1,
columns: 1,
flex: 1,
flexGrow: 1,
flexPositive: 1,
flexShrink: 1,
flexNegative: 1,
flexOrder: 1,
gridRow: 1,
gridRowEnd: 1,
gridRowSpan: 1,
gridRowStart: 1,
gridColumn: 1,
gridColumnEnd: 1,
gridColumnSpan: 1,
gridColumnStart: 1,
msGridRow: 1,
msGridRowSpan: 1,
msGridColumn: 1,
msGridColumnSpan: 1,
fontWeight: 1,
lineHeight: 1,
opacity: 1,
order: 1,
orphans: 1,
tabSize: 1,
widows: 1,
zIndex: 1,
zoom: 1,
WebkitLineClamp: 1,
fillOpacity: 1,
floodOpacity: 1,
stopOpacity: 1,
strokeDasharray: 1,
strokeDashoffset: 1,
strokeMiterlimit: 1,
strokeOpacity: 1,
strokeWidth: 1
}
}
, function(e, t, n) {
var r = n(262)
, i = n(205)((function(e, t, n, i) {
r(e, t, n, i)
}
));
e.exports = i
}
, function(e, t, n) {
"use strict";
(function(e) {
var r = n(1)
, i = n.n(r)
, o = n(60)
, a = n(18)
, l = n.n(a)
, s = 1073741823
, c = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== e ? e : {};
var u = i.a.createContext || function(e, t) {
var n, i, a = "__create-react-context-" + function() {
var e = "__global_unique_id__";
return c[e] = (c[e] || 0) + 1
}() + "__", u = function(e) {
function n() {
var t;
return (t = e.apply(this, arguments) || this).emitter = function(e) {
var t = [];
return {
on: function(e) {
t.push(e)
},
off: function(e) {
t = t.filter((function(t) {
return t !== e
}
))
},
get: function() {
return e
},
set: function(n, r) {
e = n,
t.forEach((function(t) {
return t(e, r)
}
))
}
}
}(t.props.value),
t
}
Object(o.a)(n, e);
var r = n.prototype;
return r.getChildContext = function() {
var e;
return (e = {})[a] = this.emitter,
e
}
,
r.componentWillReceiveProps = function(e) {
if (this.props.value !== e.value) {
var n, r = this.props.value, i = e.value;
((o = r) === (a = i) ? 0 !== o || 1 / o == 1 / a : o != o && a != a) ? n = 0 : (n = "function" == typeof t ? t(r, i) : s,
0 != (n |= 0) && this.emitter.set(e.value, n))
}
var o, a
}
,
r.render = function() {
return this.props.children
}
,
n
}(r.Component);
u.childContextTypes = ((n = {})[a] = l.a.object.isRequired,
n);
var d = function(t) {
function n() {
var e;
return (e = t.apply(this, arguments) || this).state = {
value: e.getValue()
},
e.onUpdate = function(t, n) {
0 != ((0 | e.observedBits) & n) && e.setState({
value: e.getValue()
})
}
,
e
}
Object(o.a)(n, t);
var r = n.prototype;
return r.componentWillReceiveProps = function(e) {
var t = e.observedBits;
this.observedBits = null == t ? s : t
}
,
r.componentDidMount = function() {
this.context[a] && this.context[a].on(this.onUpdate);
var e = this.props.observedBits;
this.observedBits = null == e ? s : e
}
,
r.componentWillUnmount = function() {
this.context[a] && this.context[a].off(this.onUpdate)
}
,
r.getValue = function() {
return this.context[a] ? this.context[a].get() : e
}
,
r.render = function() {
return (e = this.props.children,
Array.isArray(e) ? e[0] : e)(this.state.value);
var e
}
,
n
}(r.Component);
return d.contextTypes = ((i = {})[a] = l.a.object,
i),
{
Provider: u,
Consumer: d
}
}
;
t.a = u
}
).call(this, n(73))
}
, function(e, t, n) {
var r = n(153)
, i = n(276)
, o = r((function(e, t, n) {
return e + (n ? " " : "") + i(t)
}
));
e.exports = o
}
, function(e, t, n) {
var r = n(505)
, i = n(278);
e.exports = function(e, t, n) {
return null == e ? e : r(e, t, i(n))
}
}
, function(e, t, n) {
var r = n(75);
e.exports = function() {
var e = arguments
, t = r(e[0]);
return e.length < 3 ? t : t.replace(e[1], e[2])
}
}
, function(e, t, n) {
var r = n(74)
, i = n(64);
e.exports = function(e) {
return !0 === e || !1 === e || i(e) && "[object Boolean]" == r(e)
}
}
, function(e, t, n) {
var r = n(74)
, i = n(64);
e.exports = function(e) {
return "number" == typeof e || i(e) && "[object Number]" == r(e)
}
}
, function(e, t, n) {
var r = n(75)
, i = n(276);
e.exports = function(e) {
return i(r(e).toLowerCase())
}
}
, function(e, t, n) {
"use strict";
t.a = function() {
return !1
}
}
, function(e, t, n) {
"use strict";
(function(e) {
var r = n(47)
, i = "object" == typeof exports && exports && !exports.nodeType && exports
, o = i && "object" == typeof e && e && !e.nodeType && e
, a = o && o.exports === i ? r.a.Buffer : void 0
, l = a ? a.allocUnsafe : void 0;
t.a = function(e, t) {
if (t)
return e.slice();
var n = e.length
, r = l ? l(n) : new e.constructor(n);
return e.copy(r),
r
}
}
).call(this, n(106)(e))
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, i = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, o = (r = n(1)) && r.__esModule ? r : {
default: r
};
t.default = function(e) {
var t = e.fill
, n = void 0 === t ? "currentColor" : t
, r = e.width
, a = void 0 === r ? 24 : r
, l = e.height
, s = void 0 === l ? 24 : l
, c = e.style
, u = void 0 === c ? {} : c
, d = function(e, t) {
var n = {};
for (var r in e)
t.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
return n
}(e, ["fill", "width", "height", "style"]);
return o.default.createElement("svg", i({
viewBox: "0 0 24 24",
style: i({
fill: n,
width: a,
height: s
}, u)
}, d), o.default.createElement("path", {
d: "M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"
}))
}
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r, i = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, o = (r = n(1)) && r.__esModule ? r : {
default: r
};
t.default = function(e) {
var t = e.fill
, n = void 0 === t ? "currentColor" : t
, r = e.width
, a = void 0 === r ? 24 : r
, l = e.height
, s = void 0 === l ? 24 : l
, c = e.style
, u = void 0 === c ? {} : c
, d = function(e, t) {
var n = {};
for (var r in e)
t.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
return n
}(e, ["fill", "width", "height", "style"]);
return o.default.createElement("svg", i({
viewBox: "0 0 24 24",
style: i({
fill: n,
width: a,
height: s
}, u)
}, d), o.default.createElement("path", {
d: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"
}))
}
}
, function(e, t, n) {
e.exports = n(531)
}
, function(e, t, n) {
var r = n(260)
, i = n(532)
, o = n(97)
, a = n(16);
e.exports = function(e, t) {
return (a(e) ? r : i)(e, o(t, 3))
}
}
, function(e, t, n) {
var r = n(153)((function(e, t, n) {
return e + (n ? " " : "") + t.toUpperCase()
}
));
e.exports = r
}
, function(e, t, n) {
var r = n(97)
, i = n(533);
e.exports = function(e, t) {
return e && e.length ? i(e, r(t, 2)) : []
}
}
, function(e, t, n) {
var r = n(251)
, i = n(97)
, o = n(108)
, a = Math.max;
e.exports = function(e, t, n) {
var l = null == e ? 0 : e.length;
if (!l)
return -1;
var s = null == n ? 0 : o(n);
return s < 0 && (s = a(l + s, 0)),
r(e, i(t, 3), s)
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}
));
var r = {}
, i = void 0;
try {
i = window
} catch (e) {}
function o(e, t) {
if (void 0 !== i) {
var n = i.__packages__ = i.__packages__ || {};
n[e] && r[e] || (r[e] = t,
(n[e] = n[e] || []).push(t))
}
}
o("@fluentui/set-version", "6.0.0")
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return o
}
));
var r = {}
, i = void 0;
try {
i = window
} catch (e) {}
function o(e, t) {
if (void 0 !== i) {
var n = i.__packages__ = i.__packages__ || {};
n[e] && r[e] || (r[e] = t,
(n[e] = n[e] || []).push(t))
}
}
o("@fluentui/set-version", "6.0.0")
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return a
}
));
var r = n(43)
, i = n(87)
, o = n(113);
function a(e) {
var t = "function" == typeof Map ? new Map : void 0;
return a = function(e) {
if (null === e || (n = e,
-1 === Function.toString.call(n).indexOf("[native code]")))
return e;
var n;
if ("function" != typeof e)
throw new TypeError("Super expression must either be null or a function");
if (void 0 !== t) {
if (t.has(e))
return t.get(e);
t.set(e, a)
}
function a() {
return Object(o.a)(e, arguments, Object(r.a)(this).constructor)
}
return a.prototype = Object.create(e.prototype, {
constructor: {
value: a,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
Object(i.a)(a, e)
}
,
a(e)
}
}
, function(e, t, n) {
"use strict";
n.d(t, "a", (function() {
return g
}
));
var r, i, o, a = n(50), l = n(52), s = n(44), c = n(39), u = n(62), d = n(163), p = n(212), h = Object(l.a)(), f = {}, b = {};
function g(e) {
e && "string" == typeof e.type && "function" == typeof e.callback && (f[e.type] = f[e.type] || [],
f[e.type].push(e.callback),
function(e) {
if (!b[e])
switch (b[e] = !0,
e) {
case "console":
"console"in h && ["debug", "info", "warn", "error", "log", "assert"].forEach((function(e) {
e in h.console && Object(u.c)(h.console, e, (function(t) {
return function() {
for (var n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
m("console", {
args: n,
level: e
}),
t && Function.prototype.apply.call(t, h.console, n)
}
}
))
}
));
break;
case "dom":
!function() {
if ("document"in h) {
var e = m.bind(null, "dom")
, t = x(e, !0);
h.document.addEventListener("click", t, !1),
h.document.addEventListener("keypress", t, !1),
["EventTarget", "Node"].forEach((function(t) {
var n = h[t] && h[t].prototype;
n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Object(u.c)(n, "addEventListener", (function(t) {
return function(n, r, i) {
if ("click" === n || "keypress" == n)
try {
var o = this.__sentry_instrumentation_handlers__ = this.__sentry_instrumentation_handlers__ || {}
, a = o[n] = o[n] || {
refCount: 0
};
if (!a.handler) {
var l = x(e);
a.handler = l,
t.call(this, n, l, i)
}
a.refCount += 1
} catch (e) {}
return t.call(this, n, r, i)
}
}
)),
Object(u.c)(n, "removeEventListener", (function(e) {
return function(t, n, r) {
if ("click" === t || "keypress" == t)
try {
var i = this.__sentry_instrumentation_handlers__ || {}
, o = i[t];
o && (o.refCount -= 1,
o.refCount <= 0 && (e.call(this, t, o.handler, r),
o.handler = void 0,
delete i[t]),
0 === Object.keys(i).length && delete this.__sentry_instrumentation_handlers__)
} catch (e) {}
return e.call(this, t, n, r)
}
}
)))
}
))
}
}();
break;
case "xhr":
!function() {
if ("XMLHttpRequest"in h) {
var e = []
, t = []
, n = XMLHttpRequest.prototype;
Object(u.c)(n, "open", (function(n) {
return function() {
for (var r = [], i = 0; i < arguments.length; i++)
r[i] = arguments[i];
var o = this
, a = r[1];
o.__sentry_xhr__ = {
method: Object(s.k)(r[0]) ? r[0].toUpperCase() : r[0],
url: r[1]
},
Object(s.k)(a) && "POST" === o.__sentry_xhr__.method && a.match(/sentry_key/) && (o.__sentry_own_request__ = !0);
var l = function() {
if (4 === o.readyState) {
try {
o.__sentry_xhr__ && (o.__sentry_xhr__.status_code = o.status)
} catch (e) {}
try {
var n = e.indexOf(o);
if (-1 !== n) {
e.splice(n);
var i = t.splice(n)[0];
o.__sentry_xhr__ && void 0 !== i[0] && (o.__sentry_xhr__.body = i[0])
}
} catch (e) {}
m("xhr", {
args: r,
endTimestamp: Date.now(),
startTimestamp: Date.now(),
xhr: o
})
}
};
return "onreadystatechange"in o && "function" == typeof o.onreadystatechange ? Object(u.c)(o, "onreadystatechange", (function(e) {
return function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return l(),
e.apply(o, t)
}
}
)) : o.addEventListener("readystatechange", l),
n.apply(o, r)
}
}
)),
Object(u.c)(n, "send", (function(n) {
return function() {
for (var r = [], i = 0; i < arguments.length; i++)
r[i] = arguments[i];
return e.push(this),
t.push(r),
m("xhr", {
args: r,
startTimestamp: Date.now(),
xhr: this
}),
n.apply(this, r)
}
}
))
}
}();
break;
case "fetch":
Object(p.d)() && Object(u.c)(h, "fetch", (function(e) {
return function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
var r = {
args: t,
fetchData: {
method: v(t),
url: y(t)
},
startTimestamp: Date.now()
};
return m("fetch", Object(a.a)({}, r)),
e.apply(h, t).then((function(e) {
return m("fetch", Object(a.a)(Object(a.a)({}, r), {
endTimestamp: Date.now(),
response: e
})),
e
}
), (function(e) {
throw m("fetch", Object(a.a)(Object(a.a)({}, r), {
endTimestamp: Date.now(),
error: e
})),
e
}
))
}
}
));
break;
case "history":
!function() {
if (Object(p.c)()) {
var e = h.onpopstate;
h.onpopstate = function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
var i = h.location.href
, o = r;
if (r = i,
m("history", {
from: o,
to: i
}),
e)
try {
return e.apply(this, t)
} catch (e) {}
}
,
Object(u.c)(h.history, "pushState", t),
Object(u.c)(h.history, "replaceState", t)
}
function t(e) {
return function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
var i = t.length > 2 ? t[2] : void 0;
if (i) {
var o = r
, a = String(i);
r = a,
m("history", {
from: o,
to: a
})
}
return e.apply(this, t)
}
}
}();
break;
case "error":
O = h.onerror,
h.onerror = function(e, t, n, r, i) {
return m("error", {
column: r,
error: i,
line: n,
msg: e,
url: t
}),
!!O && O.apply(this, arguments)
}
;
break;
case "unhandledrejection":
j = h.onunhandledrejection,
h.onunhandledrejection = function(e) {
return m("unhandledrejection", e),
!j || j.apply(this, arguments)
}
;
break;
default:
c.b.warn("unknown instrumentation type:", e)
}
}(e.type))
}
function m(e, t) {
var n, r;
if (e && f[e])
try {
for (var i = Object(a.d)(f[e] || []), o = i.next(); !o.done; o = i.next()) {
var l = o.value;
try {
l(t)
} catch (t) {
c.b.error("Error while triggering instrumentation handler.\nType: " + e + "\nName: " + Object(d.a)(l) + "\nError: " + t)
}
}
} catch (e) {
n = {
error: e
}
} finally {
try {
o && !o.done && (r = i.return) && r.call(i)
} finally {
if (n)
throw n.error
}
}
}
function v(e) {
return void 0 === e && (e = []),
"Request"in h && Object(s.g)(e[0], Request) && e[0].method ? String(e[0].method).toUpperCase() : e[1] && e[1].method ? String(e[1].method).toUpperCase() : "GET"
}
function y(e) {
return void 0 === e && (e = []),
"string" == typeof e[0] ? e[0] : "Request"in h && Object(s.g)(e[0], Request) ? e[0].url : String(e[0])
}
function x(e, t) {
return void 0 === t && (t = !1),
function(n) {
if (n && o !== n && !function(e) {
if ("keypress" !== e.type)
return !1;
try {
var t = e.target;
if (!t || !t.tagName)
return !0;
if ("INPUT" === t.tagName || "TEXTAREA" === t.tagName || t.isContentEditable)
return !1
} catch (e) {}
return !0
}(n)) {
var r = "keypress" === n.type ? "input" : n.type;
(void 0 === i || function(e, t) {
if (!e)
return !0;
if (e.type !== t.type)
return !0;
try {
if (e.target !== t.target)
return !0
} catch (e) {}
return !1
}(o, n)) && (e({
event: n,
name: r,
global: t
}),
o = n),
clearTimeout(i),
i = h.setTimeout((function() {
i = void 0
}
), 1e3)
}
}
}
var O = null
, j = null
}
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
"use strict";
var r = n(142)
, i = 60103
, o = 60106;
t.Fragment = 60107,
t.StrictMode = 60108,
t.Profiler = 60114;
var a = 60109
, l = 60110
, s = 60112;
t.Suspense = 60113;
var c = 60115
, u = 60116;
if ("function" == typeof Symbol && Symbol.for) {
var d = Symbol.for;
i = d("react.element"),
o = d("react.portal"),
t.Fragment = d("react.fragment"),
t.StrictMode = d("react.strict_mode"),
t.Profiler = d("react.profiler"),
a = d("react.provider"),
l = d("react.context"),
s = d("react.forward_ref"),
t.Suspense = d("react.suspense"),
c = d("react.memo"),
u = d("react.lazy")
}
var p = "function" == typeof Symbol && Symbol.iterator;
function h(e) {
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++)
t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
}
var f = {
isMounted: function() {
return !1
},
enqueueForceUpdate: function() {},
enqueueReplaceState: function() {},
enqueueSetState: function() {}
}
, b = {};
function g(e, t, n) {
this.props = e,
this.context = t,
this.refs = b,
this.updater = n || f
}
function m() {}
function v(e, t, n) {
this.props = e,
this.context = t,
this.refs = b,
this.updater = n || f
}
g.prototype.isReactComponent = {},
g.prototype.setState = function(e, t) {
if ("object" != typeof e && "function" != typeof e && null != e)
throw Error(h(85));
this.updater.enqueueSetState(this, e, t, "setState")
}
,
g.prototype.forceUpdate = function(e) {
this.updater.enqueueForceUpdate(this, e, "forceUpdate")
}
,
m.prototype = g.prototype;
var y = v.prototype = new m;
y.constructor = v,
r(y, g.prototype),
y.isPureReactComponent = !0;
var x = {
current: null
}
, O = Object.prototype.hasOwnProperty
, j = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function k(e, t, n) {
var r, o = {}, a = null, l = null;
if (null != t)
for (r in void 0 !== t.ref && (l = t.ref),
void 0 !== t.key && (a = "" + t.key),
t)
O.call(t, r) && !j.hasOwnProperty(r) && (o[r] = t[r]);
var s = arguments.length - 2;
if (1 === s)
o.children = n;
else if (1 < s) {
for (var c = Array(s), u = 0; u < s; u++)
c[u] = arguments[u + 2];
o.children = c
}
if (e && e.defaultProps)
for (r in s = e.defaultProps)
void 0 === o[r] && (o[r] = s[r]);
return {
$$typeof: i,
type: e,
key: a,
ref: l,
props: o,
_owner: x.current
}
}
function w(e) {
return "object" == typeof e && null !== e && e.$$typeof === i
}
var C = /\/+/g;
function _(e, t) {
return "object" == typeof e && null !== e && null != e.key ? function(e) {
var t = {
"=": "=0",
":": "=2"
};
return "$" + e.replace(/[=:]/g, (function(e) {
return t[e]
}
))
}("" + e.key) : t.toString(36)
}
function M(e, t, n, r, a) {
var l = typeof e;
"undefined" !== l && "boolean" !== l || (e = null);
var s = !1;
if (null === e)
s = !0;
else
switch (l) {
case "string":
case "number":
s = !0;
break;
case "object":
switch (e.$$typeof) {
case i:
case o:
s = !0
}
}
if (s)
return a = a(s = e),
e = "" === r ? "." + _(s, 0) : r,
Array.isArray(a) ? (n = "",
null != e && (n = e.replace(C, "$&/") + "/"),
M(a, t, n, "", (function(e) {
return e
}
))) : null != a && (w(a) && (a = function(e, t) {
return {
$$typeof: i,
type: e.type,
key: t,
ref: e.ref,
props: e.props,
_owner: e._owner
}
}(a, n + (!a.key || s && s.key === a.key ? "" : ("" + a.key).replace(C, "$&/") + "/") + e)),
t.push(a)),
1;
if (s = 0,
r = "" === r ? "." : r + ":",
Array.isArray(e))
for (var c = 0; c < e.length; c++) {
var u = r + _(l = e[c], c);
s += M(l, t, n, u, a)
}
else if (u = function(e) {
return null === e || "object" != typeof e ? null : "function" == typeof (e = p && e[p] || e["@@iterator"]) ? e : null
}(e),
"function" == typeof u)
for (e = u.call(e),
c = 0; !(l = e.next()).done; )
s += M(l = l.value, t, n, u = r + _(l, c++), a);
else if ("object" === l)
throw t = "" + e,
Error(h(31, "[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t));
return s
}
function S(e, t, n) {
if (null == e)
return e;
var r = []
, i = 0;
return M(e, r, "", "", (function(e) {
return t.call(n, e, i++)
}
)),
r
}
function A(e) {
if (-1 === e._status) {
var t = e._result;
t = t(),
e._status = 0,
e._result = t,
t.then((function(t) {
0 === e._status && (t = t.default,
e._status = 1,
e._result = t)
}
), (function(t) {
0 === e._status && (e._status = 2,
e._result = t)
}
))
}
if (1 === e._status)
return e._result;
throw e._result
}
var T = {
current: null
};
function E() {
var e = T.current;
if (null === e)
throw Error(h(321));
return e
}
var I = {
ReactCurrentDispatcher: T,
ReactCurrentBatchConfig: {
transition: 0
},
ReactCurrentOwner: x,
IsSomeRendererActing: {
current: !1
},
assign: r
};
t.Children = {
map: S,
forEach: function(e, t, n) {
S(e, (function() {
t.apply(this, arguments)
}
), n)
},
count: function(e) {
var t = 0;
return S(e, (function() {
t++
}
)),
t
},
toArray: function(e) {
return S(e, (function(e) {
return e
}
)) || []
},
only: function(e) {
if (!w(e))
throw Error(h(143));
return e
}
},
t.Component = g,
t.PureComponent = v,
t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = I,
t.cloneElement = function(e, t, n) {
if (null == e)
throw Error(h(267, e));
var o = r({}, e.props)
, a = e.key
, l = e.ref
, s = e._owner;
if (null != t) {
if (void 0 !== t.ref && (l = t.ref,
s = x.current),
void 0 !== t.key && (a = "" + t.key),
e.type && e.type.defaultProps)
var c = e.type.defaultProps;
for (u in t)
O.call(t, u) && !j.hasOwnProperty(u) && (o[u] = void 0 === t[u] && void 0 !== c ? c[u] : t[u])
}
var u = arguments.length - 2;
if (1 === u)
o.children = n;
else if (1 < u) {
c = Array(u);
for (var d = 0; d < u; d++)
c[d] = arguments[d + 2];
o.children = c
}
return {
$$typeof: i,
type: e.type,
key: a,
ref: l,
props: o,
_owner: s
}
}
,
t.createContext = function(e, t) {
return void 0 === t && (t = null),
(e = {
$$typeof: l,
_calculateChangedBits: t,
_currentValue: e,
_currentValue2: e,
_threadCount: 0,
Provider: null,
Consumer: null
}).Provider = {
$$typeof: a,
_context: e
},
e.Consumer = e
}
,
t.createElement = k,
t.createFactory = function(e) {
var t = k.bind(null, e);
return t.type = e,
t
}
,
t.createRef = function() {
return {
current: null
}
}
,
t.forwardRef = function(e) {
return {
$$typeof: s,
render: e
}
}
,
t.isValidElement = w,
t.lazy = function(e) {
return {
$$typeof: u,
_payload: {
_status: -1,
_result: e
},
_init: A
}
}
,
t.memo = function(e, t) {
return {
$$typeof: c,
type: e,
compare: void 0 === t ? null : t
}
}
,
t.useCallback = function(e, t) {
return E().useCallback(e, t)
}
,
t.useContext = function(e, t) {
return E().useContext(e, t)
}
,
t.useDebugValue = function() {}
,
t.useEffect = function(e, t) {
return E().useEffect(e, t)
}
,
t.useImperativeHandle = function(e, t, n) {
return E().useImperativeHandle(e, t, n)
}
,
t.useLayoutEffect = function(e, t) {
return E().useLayoutEffect(e, t)
}
,
t.useMemo = function(e, t) {
return E().useMemo(e, t)
}
,
t.useReducer = function(e, t, n) {
return E().useReducer(e, t, n)
}
,
t.useRef = function(e) {
return E().useRef(e)
}
,
t.useState = function(e) {
return E().useState(e)
}
,
t.version = "17.0.2"
}
, function(e, t, n) {
"use strict";
var r = n(1)
, i = n(142)
, o = n(356);
function a(e) {
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++)
t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
}
if (!r)
throw Error(a(227));
var l = new Set
, s = {};
function c(e, t) {
u(e, t),
u(e + "Capture", t)
}
function u(e, t) {
for (s[e] = t,
e = 0; e < t.length; e++)
l.add(t[e])
}
var d = !("undefined" == typeof window || void 0 === window.document || void 0 === window.document.createElement)
, p = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/
, h = Object.prototype.hasOwnProperty
, f = {}
, b = {};
function g(e, t, n, r, i, o, a) {
this.acceptsBooleans = 2 === t || 3 === t || 4 === t,
this.attributeName = r,
this.attributeNamespace = i,
this.mustUseProperty = n,
this.propertyName = e,
this.type = t,
this.sanitizeURL = o,
this.removeEmptyString = a
}
var m = {};
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e) {
m[e] = new g(e,0,!1,e,null,!1,!1)
}
)),
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach((function(e) {
var t = e[0];
m[t] = new g(t,1,!1,e[1],null,!1,!1)
}
)),
["contentEditable", "draggable", "spellCheck", "value"].forEach((function(e) {
m[e] = new g(e,2,!1,e.toLowerCase(),null,!1,!1)
}
)),
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach((function(e) {
m[e] = new g(e,2,!1,e,null,!1,!1)
}
)),
"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e) {
m[e] = new g(e,3,!1,e.toLowerCase(),null,!1,!1)
}
)),
["checked", "multiple", "muted", "selected"].forEach((function(e) {
m[e] = new g(e,3,!0,e,null,!1,!1)
}
)),
["capture", "download"].forEach((function(e) {
m[e] = new g(e,4,!1,e,null,!1,!1)
}
)),
["cols", "rows", "size", "span"].forEach((function(e) {
m[e] = new g(e,6,!1,e,null,!1,!1)
}
)),
["rowSpan", "start"].forEach((function(e) {
m[e] = new g(e,5,!1,e.toLowerCase(),null,!1,!1)
}
));
var v = /[\-:]([a-z])/g;
function y(e) {
return e[1].toUpperCase()
}
function x(e, t, n, r) {
var i = m.hasOwnProperty(t) ? m[t] : null;
(null !== i ? 0 === i.type : !r && 2 < t.length && ("o" === t[0] || "O" === t[0]) && ("n" === t[1] || "N" === t[1])) || (function(e, t, n, r) {
if (null == t || function(e, t, n, r) {
if (null !== n && 0 === n.type)
return !1;
switch (typeof t) {
case "function":
case "symbol":
return !0;
case "boolean":
return !r && (null !== n ? !n.acceptsBooleans : "data-" !== (e = e.toLowerCase().slice(0, 5)) && "aria-" !== e);
default:
return !1
}
}(e, t, n, r))
return !0;
if (r)
return !1;
if (null !== n)
switch (n.type) {
case 3:
return !t;
case 4:
return !1 === t;
case 5:
return isNaN(t);
case 6:
return isNaN(t) || 1 > t
}
return !1
}(t, n, i, r) && (n = null),
r || null === i ? function(e) {
return !!h.call(b, e) || !h.call(f, e) && (p.test(e) ? b[e] = !0 : (f[e] = !0,
!1))
}(t) && (null === n ? e.removeAttribute(t) : e.setAttribute(t, "" + n)) : i.mustUseProperty ? e[i.propertyName] = null === n ? 3 !== i.type && "" : n : (t = i.attributeName,
r = i.attributeNamespace,
null === n ? e.removeAttribute(t) : (n = 3 === (i = i.type) || 4 === i && !0 === n ? "" : "" + n,
r ? e.setAttributeNS(r, t, n) : e.setAttribute(t, n))))
}
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e) {
var t = e.replace(v, y);
m[t] = new g(t,1,!1,e,null,!1,!1)
}
)),
"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e) {
var t = e.replace(v, y);
m[t] = new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)
}
)),
["xml:base", "xml:lang", "xml:space"].forEach((function(e) {
var t = e.replace(v, y);
m[t] = new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)
}
)),
["tabIndex", "crossOrigin"].forEach((function(e) {
m[e] = new g(e,1,!1,e.toLowerCase(),null,!1,!1)
}
)),
m.xlinkHref = new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),
["src", "href", "action", "formAction"].forEach((function(e) {
m[e] = new g(e,1,!1,e.toLowerCase(),null,!0,!0)
}
));
var O = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
, j = 60103
, k = 60106
, w = 60107
, C = 60108
, _ = 60114
, M = 60109
, S = 60110
, A = 60112
, T = 60113
, E = 60120
, I = 60115
, N = 60116
, z = 60121
, D = 60128
, L = 60129
, R = 60130
, P = 60131;
if ("function" == typeof Symbol && Symbol.for) {
var B = Symbol.for;
j = B("react.element"),
k = B("react.portal"),
w = B("react.fragment"),
C = B("react.strict_mode"),
_ = B("react.profiler"),
M = B("react.provider"),
S = B("react.context"),
A = B("react.forward_ref"),
T = B("react.suspense"),
E = B("react.suspense_list"),
I = B("react.memo"),
N = B("react.lazy"),
z = B("react.block"),
B("react.scope"),
D = B("react.opaque.id"),
L = B("react.debug_trace_mode"),
R = B("react.offscreen"),
P = B("react.legacy_hidden")
}
var F, V = "function" == typeof Symbol && Symbol.iterator;
function W(e) {
return null === e || "object" != typeof e ? null : "function" == typeof (e = V && e[V] || e["@@iterator"]) ? e : null
}
function q(e) {
if (void 0 === F)
try {
throw Error()
} catch (e) {
var t = e.stack.trim().match(/\n( *(at )?)/);
F = t && t[1] || ""
}
return "\n" + F + e
}
var H = !1;
function U(e, t) {
if (!e || H)
return "";
H = !0;
var n = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
if (t)
if (t = function() {
throw Error()
}
,
Object.defineProperty(t.prototype, "props", {
set: function() {
throw Error()
}
}),
"object" == typeof Reflect && Reflect.construct) {
try {
Reflect.construct(t, [])
} catch (e) {
var r = e
}
Reflect.construct(e, [], t)
} else {
try {
t.call()
} catch (e) {
r = e
}
e.call(t.prototype)
}
else {
try {
throw Error()
} catch (e) {
r = e
}
e()
}
} catch (e) {
if (e && r && "string" == typeof e.stack) {
for (var i = e.stack.split("\n"), o = r.stack.split("\n"), a = i.length - 1, l = o.length - 1; 1 <= a && 0 <= l && i[a] !== o[l]; )
l--;
for (; 1 <= a && 0 <= l; a--,
l--)
if (i[a] !== o[l]) {
if (1 !== a || 1 !== l)
do {
if (a--,
0 > --l || i[a] !== o[l])
return "\n" + i[a].replace(" at new ", " at ")
} while (1 <= a && 0 <= l);
break
}
}
} finally {
H = !1,
Error.prepareStackTrace = n
}
return (e = e ? e.displayName || e.name : "") ? q(e) : ""
}
function X(e) {
switch (e.tag) {
case 5:
return q(e.type);
case 16:
return q("Lazy");
case 13:
return q("Suspense");
case 19:
return q("SuspenseList");
case 0:
case 2:
case 15:
return U(e.type, !1);
case 11:
return U(e.type.render, !1);
case 22:
return U(e.type._render, !1);
case 1:
return U(e.type, !0);
default:
return ""
}
}
function G(e) {
if (null == e)
return null;
if ("function" == typeof e)
return e.displayName || e.name || null;
if ("string" == typeof e)
return e;
switch (e) {
case w:
return "Fragment";
case k:
return "Portal";
case _:
return "Profiler";
case C:
return "StrictMode";
case T:
return "Suspense";
case E:
return "SuspenseList"
}
if ("object" == typeof e)
switch (e.$$typeof) {
case S:
return (e.displayName || "Context") + ".Consumer";
case M:
return (e._context.displayName || "Context") + ".Provider";
case A:
var t = e.render;
return t = t.displayName || t.name || "",
e.displayName || ("" !== t ? "ForwardRef(" + t + ")" : "ForwardRef");
case I:
return G(e.type);
case z:
return G(e._render);
case N:
t = e._payload,
e = e._init;
try {
return G(e(t))
} catch (e) {}
}
return null
}
function K(e) {
switch (typeof e) {
case "boolean":
case "number":
case "object":
case "string":
case "undefined":
return e;
default:
return ""
}
}
function Y(e) {
var t = e.type;
return (e = e.nodeName) && "input" === e.toLowerCase() && ("checkbox" === t || "radio" === t)
}
function Q(e) {
e._valueTracker || (e._valueTracker = function(e) {
var t = Y(e) ? "checked" : "value"
, n = Object.getOwnPropertyDescriptor(e.constructor.prototype, t)
, r = "" + e[t];
if (!e.hasOwnProperty(t) && void 0 !== n && "function" == typeof n.get && "function" == typeof n.set) {
var i = n.get
, o = n.set;
return Object.defineProperty(e, t, {
configurable: !0,
get: function() {
return i.call(this)
},
set: function(e) {
r = "" + e,
o.call(this, e)
}
}),
Object.defineProperty(e, t, {
enumerable: n.enumerable
}),
{
getValue: function() {
return r
},
setValue: function(e) {
r = "" + e
},
stopTracking: function() {
e._valueTracker = null,
delete e[t]
}
}
}
}(e))
}
function J(e) {
if (!e)
return !1;
var t = e._valueTracker;
if (!t)
return !0;
var n = t.getValue()
, r = "";
return e && (r = Y(e) ? e.checked ? "true" : "false" : e.value),
(e = r) !== n && (t.setValue(e),
!0)
}
function Z(e) {
if (void 0 === (e = e || ("undefined" != typeof document ? document : void 0)))
return null;
try {
return e.activeElement || e.body
} catch (t) {
return e.body
}
}
function $(e, t) {
var n = t.checked;
return i({}, t, {
defaultChecked: void 0,
defaultValue: void 0,
value: void 0,
checked: null != n ? n : e._wrapperState.initialChecked
})
}
function ee(e, t) {
var n = null == t.defaultValue ? "" : t.defaultValue
, r = null != t.checked ? t.checked : t.defaultChecked;
n = K(null != t.value ? t.value : n),
e._wrapperState = {
initialChecked: r,
initialValue: n,
controlled: "checkbox" === t.type || "radio" === t.type ? null != t.checked : null != t.value
}
}
function te(e, t) {
null != (t = t.checked) && x(e, "checked", t, !1)
}
function ne(e, t) {
te(e, t);
var n = K(t.value)
, r = t.type;
if (null != n)
"number" === r ? (0 === n && "" === e.value || e.value != n) && (e.value = "" + n) : e.value !== "" + n && (e.value = "" + n);
else if ("submit" === r || "reset" === r)
return void e.removeAttribute("value");
t.hasOwnProperty("value") ? ie(e, t.type, n) : t.hasOwnProperty("defaultValue") && ie(e, t.type, K(t.defaultValue)),
null == t.checked && null != t.defaultChecked && (e.defaultChecked = !!t.defaultChecked)
}
function re(e, t, n) {
if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) {
var r = t.type;
if (!("submit" !== r && "reset" !== r || void 0 !== t.value && null !== t.value))
return;
t = "" + e._wrapperState.initialValue,
n || t === e.value || (e.value = t),
e.defaultValue = t
}
"" !== (n = e.name) && (e.name = ""),
e.defaultChecked = !!e._wrapperState.initialChecked,
"" !== n && (e.name = n)
}
function ie(e, t, n) {
"number" === t && Z(e.ownerDocument) === e || (null == n ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + n && (e.defaultValue = "" + n))
}
function oe(e, t) {
return e = i({
children: void 0
}, t),
(t = function(e) {
var t = "";
return r.Children.forEach(e, (function(e) {
null != e && (t += e)
}
)),
t
}(t.children)) && (e.children = t),
e
}
function ae(e, t, n, r) {
if (e = e.options,
t) {
t = {};
for (var i = 0; i < n.length; i++)
t["$" + n[i]] = !0;
for (n = 0; n < e.length; n++)
i = t.hasOwnProperty("$" + e[n].value),
e[n].selected !== i && (e[n].selected = i),
i && r && (e[n].defaultSelected = !0)
} else {
for (n = "" + K(n),
t = null,
i = 0; i < e.length; i++) {
if (e[i].value === n)
return e[i].selected = !0,
void (r && (e[i].defaultSelected = !0));
null !== t || e[i].disabled || (t = e[i])
}
null !== t && (t.selected = !0)
}
}
function le(e, t) {
if (null != t.dangerouslySetInnerHTML)
throw Error(a(91));
return i({}, t, {
value: void 0,
defaultValue: void 0,
children: "" + e._wrapperState.initialValue
})
}
function se(e, t) {
var n = t.value;
if (null == n) {
if (n = t.children,
t = t.defaultValue,
null != n) {
if (null != t)
throw Error(a(92));
if (Array.isArray(n)) {
if (!(1 >= n.length))
throw Error(a(93));
n = n[0]
}
t = n
}
null == t && (t = ""),
n = t
}
e._wrapperState = {
initialValue: K(n)
}
}
function ce(e, t) {
var n = K(t.value)
, r = K(t.defaultValue);
null != n && ((n = "" + n) !== e.value && (e.value = n),
null == t.defaultValue && e.defaultValue !== n && (e.defaultValue = n)),
null != r && (e.defaultValue = "" + r)
}
function ue(e) {
var t = e.textContent;
t === e._wrapperState.initialValue && "" !== t && null !== t && (e.value = t)
}
var de = "http://www.w3.org/1999/xhtml";
function pe(e) {
switch (e) {
case "svg":
return "http://www.w3.org/2000/svg";
case "math":
return "http://www.w3.org/1998/Math/MathML";
default:
return "http://www.w3.org/1999/xhtml"
}
}
function he(e, t) {
return null == e || "http://www.w3.org/1999/xhtml" === e ? pe(t) : "http://www.w3.org/2000/svg" === e && "foreignObject" === t ? "http://www.w3.org/1999/xhtml" : e
}
var fe, be, ge = (be = function(e, t) {
if ("http://www.w3.org/2000/svg" !== e.namespaceURI || "innerHTML"in e)
e.innerHTML = t;
else {
for ((fe = fe || document.createElement("div")).innerHTML = "<svg>" + t.valueOf().toString() + "</svg>",
t = fe.firstChild; e.firstChild; )
e.removeChild(e.firstChild);
for (; t.firstChild; )
e.appendChild(t.firstChild)
}
}
,
"undefined" != typeof MSApp && MSApp.execUnsafeLocalFunction ? function(e, t, n, r) {
MSApp.execUnsafeLocalFunction((function() {
return be(e, t)
}
))
}
: be);
function me(e, t) {
if (t) {
var n = e.firstChild;
if (n && n === e.lastChild && 3 === n.nodeType)
return void (n.nodeValue = t)
}
e.textContent = t
}
var ve = {
animationIterationCount: !0,
borderImageOutset: !0,
borderImageSlice: !0,
borderImageWidth: !0,
boxFlex: !0,
boxFlexGroup: !0,
boxOrdinalGroup: !0,
columnCount: !0,
columns: !0,
flex: !0,
flexGrow: !0,
flexPositive: !0,
flexShrink: !0,
flexNegative: !0,
flexOrder: !0,
gridArea: !0,
gridRow: !0,
gridRowEnd: !0,
gridRowSpan: !0,
gridRowStart: !0,
gridColumn: !0,
gridColumnEnd: !0,
gridColumnSpan: !0,
gridColumnStart: !0,
fontWeight: !0,
lineClamp: !0,
lineHeight: !0,
opacity: !0,
order: !0,
orphans: !0,
tabSize: !0,
widows: !0,
zIndex: !0,
zoom: !0,
fillOpacity: !0,
floodOpacity: !0,
stopOpacity: !0,
strokeDasharray: !0,
strokeDashoffset: !0,
strokeMiterlimit: !0,
strokeOpacity: !0,
strokeWidth: !0
}
, ye = ["Webkit", "ms", "Moz", "O"];
function xe(e, t, n) {
return null == t || "boolean" == typeof t || "" === t ? "" : n || "number" != typeof t || 0 === t || ve.hasOwnProperty(e) && ve[e] ? ("" + t).trim() : t + "px"
}
function Oe(e, t) {
for (var n in e = e.style,
t)
if (t.hasOwnProperty(n)) {
var r = 0 === n.indexOf("--")
, i = xe(n, t[n], r);
"float" === n && (n = "cssFloat"),
r ? e.setProperty(n, i) : e[n] = i
}
}
Object.keys(ve).forEach((function(e) {
ye.forEach((function(t) {
t = t + e.charAt(0).toUpperCase() + e.substring(1),
ve[t] = ve[e]
}
))
}
));
var je = i({
menuitem: !0
}, {
area: !0,
base: !0,
br: !0,
col: !0,
embed: !0,
hr: !0,
img: !0,
input: !0,
keygen: !0,
link: !0,
meta: !0,
param: !0,
source: !0,
track: !0,
wbr: !0
});
function ke(e, t) {
if (t) {
if (je[e] && (null != t.children || null != t.dangerouslySetInnerHTML))
throw Error(a(137, e));
if (null != t.dangerouslySetInnerHTML) {
if (null != t.children)
throw Error(a(60));
if ("object" != typeof t.dangerouslySetInnerHTML || !("__html"in t.dangerouslySetInnerHTML))
throw Error(a(61))
}
if (null != t.style && "object" != typeof t.style)
throw Error(a(62))
}
}
function we(e, t) {
if (-1 === e.indexOf("-"))
return "string" == typeof t.is;
switch (e) {
case "annotation-xml":
case "color-profile":
case "font-face":
case "font-face-src":
case "font-face-uri":
case "font-face-format":
case "font-face-name":
case "missing-glyph":
return !1;
default:
return !0
}
}
function Ce(e) {
return (e = e.target || e.srcElement || window).correspondingUseElement && (e = e.correspondingUseElement),
3 === e.nodeType ? e.parentNode : e
}
var _e = null
, Me = null
, Se = null;
function Ae(e) {
if (e = ni(e)) {
if ("function" != typeof _e)
throw Error(a(280));
var t = e.stateNode;
t && (t = ii(t),
_e(e.stateNode, e.type, t))
}
}
function Te(e) {
Me ? Se ? Se.push(e) : Se = [e] : Me = e
}
function Ee() {
if (Me) {
var e = Me
, t = Se;
if (Se = Me = null,
Ae(e),
t)
for (e = 0; e < t.length; e++)
Ae(t[e])
}
}
function Ie(e, t) {
return e(t)
}
function Ne(e, t, n, r, i) {
return e(t, n, r, i)
}
function ze() {}
var De = Ie
, Le = !1
, Re = !1;
function Pe() {
null === Me && null === Se || (ze(),
Ee())
}
function Be(e, t) {
var n = e.stateNode;
if (null === n)
return null;
var r = ii(n);
if (null === r)
return null;
n = r[t];
e: switch (t) {
case "onClick":
case "onClickCapture":
case "onDoubleClick":
case "onDoubleClickCapture":
case "onMouseDown":
case "onMouseDownCapture":
case "onMouseMove":
case "onMouseMoveCapture":
case "onMouseUp":
case "onMouseUpCapture":
case "onMouseEnter":
(r = !r.disabled) || (r = !("button" === (e = e.type) || "input" === e || "select" === e || "textarea" === e)),
e = !r;
break e;
default:
e = !1
}
if (e)
return null;
if (n && "function" != typeof n)
throw Error(a(231, t, typeof n));
return n
}
var Fe = !1;
if (d)
try {
var Ve = {};
Object.defineProperty(Ve, "passive", {
get: function() {
Fe = !0
}
}),
window.addEventListener("test", Ve, Ve),
window.removeEventListener("test", Ve, Ve)
} catch (be) {
Fe = !1
}
function We(e, t, n, r, i, o, a, l, s) {
var c = Array.prototype.slice.call(arguments, 3);
try {
t.apply(n, c)
} catch (e) {
this.onError(e)
}
}
var qe = !1
, He = null
, Ue = !1
, Xe = null
, Ge = {
onError: function(e) {
qe = !0,
He = e
}
};
function Ke(e, t, n, r, i, o, a, l, s) {
qe = !1,
He = null,
We.apply(Ge, arguments)
}
function Ye(e) {
var t = e
, n = e;
if (e.alternate)
for (; t.return; )
t = t.return;
else {
e = t;
do {
0 != (1026 & (t = e).flags) && (n = t.return),
e = t.return
} while (e)
}
return 3 === t.tag ? n : null
}
function Qe(e) {
if (13 === e.tag) {
var t = e.memoizedState;
if (null === t && null !== (e = e.alternate) && (t = e.memoizedState),
null !== t)
return t.dehydrated
}
return null
}
function Je(e) {
if (Ye(e) !== e)
throw Error(a(188))
}
function Ze(e) {
if (e = function(e) {
var t = e.alternate;
if (!t) {
if (null === (t = Ye(e)))
throw Error(a(188));
return t !== e ? null : e
}
for (var n = e, r = t; ; ) {
var i = n.return;
if (null === i)
break;
var o = i.alternate;
if (null === o) {
if (null !== (r = i.return)) {
n = r;
continue
}
break
}
if (i.child === o.child) {
for (o = i.child; o; ) {
if (o === n)
return Je(i),
e;
if (o === r)
return Je(i),
t;
o = o.sibling
}
throw Error(a(188))
}
if (n.return !== r.return)
n = i,
r = o;
else {
for (var l = !1, s = i.child; s; ) {
if (s === n) {
l = !0,
n = i,
r = o;
break
}
if (s === r) {
l = !0,
r = i,
n = o;
break
}
s = s.sibling
}
if (!l) {
for (s = o.child; s; ) {
if (s === n) {
l = !0,
n = o,
r = i;
break
}
if (s === r) {
l = !0,
r = o,
n = i;
break
}
s = s.sibling
}
if (!l)
throw Error(a(189))
}
}
if (n.alternate !== r)
throw Error(a(190))
}
if (3 !== n.tag)
throw Error(a(188));
return n.stateNode.current === n ? e : t
}(e),
!e)
return null;
for (var t = e; ; ) {
if (5 === t.tag || 6 === t.tag)
return t;
if (t.child)
t.child.return = t,
t = t.child;
else {
if (t === e)
break;
for (; !t.sibling; ) {
if (!t.return || t.return === e)
return null;
t = t.return
}
t.sibling.return = t.return,
t = t.sibling
}
}
return null
}
function $e(e, t) {
for (var n = e.alternate; null !== t; ) {
if (t === e || t === n)
return !0;
t = t.return
}
return !1
}
var et, tt, nt, rt, it = !1, ot = [], at = null, lt = null, st = null, ct = new Map, ut = new Map, dt = [], pt = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");
function ht(e, t, n, r, i) {
return {
blockedOn: e,
domEventName: t,
eventSystemFlags: 16 | n,
nativeEvent: i,
targetContainers: [r]
}
}
function ft(e, t) {
switch (e) {
case "focusin":
case "focusout":
at = null;
break;
case "dragenter":
case "dragleave":
lt = null;
break;
case "mouseover":
case "mouseout":
st = null;
break;
case "pointerover":
case "pointerout":
ct.delete(t.pointerId);
break;
case "gotpointercapture":
case "lostpointercapture":
ut.delete(t.pointerId)
}
}
function bt(e, t, n, r, i, o) {
return null === e || e.nativeEvent !== o ? (e = ht(t, n, r, i, o),
null !== t && null !== (t = ni(t)) && tt(t),
e) : (e.eventSystemFlags |= r,
t = e.targetContainers,
null !== i && -1 === t.indexOf(i) && t.push(i),
e)
}
function gt(e) {
var t = ti(e.target);
if (null !== t) {
var n = Ye(t);
if (null !== n)
if (13 === (t = n.tag)) {
if (null !== (t = Qe(n)))
return e.blockedOn = t,
void rt(e.lanePriority, (function() {
o.unstable_runWithPriority(e.priority, (function() {
nt(n)
}
))
}
))
} else if (3 === t && n.stateNode.hydrate)
return void (e.blockedOn = 3 === n.tag ? n.stateNode.containerInfo : null)
}
e.blockedOn = null
}
function mt(e) {
if (null !== e.blockedOn)
return !1;
for (var t = e.targetContainers; 0 < t.length; ) {
var n = Zt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
if (null !== n)
return null !== (t = ni(n)) && tt(t),
e.blockedOn = n,
!1;
t.shift()
}
return !0
}
function vt(e, t, n) {
mt(e) && n.delete(t)
}
function yt() {
for (it = !1; 0 < ot.length; ) {
var e = ot[0];
if (null !== e.blockedOn) {
null !== (e = ni(e.blockedOn)) && et(e);
break
}
for (var t = e.targetContainers; 0 < t.length; ) {
var n = Zt(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent);
if (null !== n) {
e.blockedOn = n;
break
}
t.shift()
}
null === e.blockedOn && ot.shift()
}
null !== at && mt(at) && (at = null),
null !== lt && mt(lt) && (lt = null),
null !== st && mt(st) && (st = null),
ct.forEach(vt),
ut.forEach(vt)
}
function xt(e, t) {
e.blockedOn === t && (e.blockedOn = null,
it || (it = !0,
o.unstable_scheduleCallback(o.unstable_NormalPriority, yt)))
}
function Ot(e) {
function t(t) {
return xt(t, e)
}
if (0 < ot.length) {
xt(ot[0], e);
for (var n = 1; n < ot.length; n++) {
var r = ot[n];
r.blockedOn === e && (r.blockedOn = null)
}
}
for (null !== at && xt(at, e),
null !== lt && xt(lt, e),
null !== st && xt(st, e),
ct.forEach(t),
ut.forEach(t),
n = 0; n < dt.length; n++)
(r = dt[n]).blockedOn === e && (r.blockedOn = null);
for (; 0 < dt.length && null === (n = dt[0]).blockedOn; )
gt(n),
null === n.blockedOn && dt.shift()
}
function jt(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(),
n["Webkit" + e] = "webkit" + t,
n["Moz" + e] = "moz" + t,
n
}
var kt = {
animationend: jt("Animation", "AnimationEnd"),
animationiteration: jt("Animation", "AnimationIteration"),
animationstart: jt("Animation", "AnimationStart"),
transitionend: jt("Transition", "TransitionEnd")
}
, wt = {}
, Ct = {};
function _t(e) {
if (wt[e])
return wt[e];
if (!kt[e])
return e;
var t, n = kt[e];
for (t in n)
if (n.hasOwnProperty(t) && t in Ct)
return wt[e] = n[t];
return e
}
d && (Ct = document.createElement("div").style,
"AnimationEvent"in window || (delete kt.animationend.animation,
delete kt.animationiteration.animation,
delete kt.animationstart.animation),
"TransitionEvent"in window || delete kt.transitionend.transition);
var Mt = _t("animationend")
, St = _t("animationiteration")
, At = _t("animationstart")
, Tt = _t("transitionend")
, Et = new Map
, It = new Map
, Nt = ["abort", "abort", Mt, "animationEnd", St, "animationIteration", At, "animationStart", "canplay", "canPlay", "canplaythrough", "canPlayThrough", "durationchange", "durationChange", "emptied", "emptied", "encrypted", "encrypted", "ended", "ended", "error", "error", "gotpointercapture", "gotPointerCapture", "load", "load", "loadeddata", "loadedData", "loadedmetadata", "loadedMetadata", "loadstart", "loadStart", "lostpointercapture", "lostPointerCapture", "playing", "playing", "progress", "progress", "seeking", "seeking", "stalled", "stalled", "suspend", "suspend", "timeupdate", "timeUpdate", Tt, "transitionEnd", "waiting", "waiting"];
function zt(e, t) {
for (var n = 0; n < e.length; n += 2) {
var r = e[n]
, i = e[n + 1];
i = "on" + (i[0].toUpperCase() + i.slice(1)),
It.set(r, t),
Et.set(r, i),
c(i, [r])
}
}
(0,
o.unstable_now)();
var Dt = 8;
function Lt(e) {
if (0 != (1 & e))
return Dt = 15,
1;
if (0 != (2 & e))
return Dt = 14,
2;
if (0 != (4 & e))
return Dt = 13,
4;
var t = 24 & e;
return 0 !== t ? (Dt = 12,
t) : 0 != (32 & e) ? (Dt = 11,
32) : 0 != (t = 192 & e) ? (Dt = 10,
t) : 0 != (256 & e) ? (Dt = 9,
256) : 0 != (t = 3584 & e) ? (Dt = 8,
t) : 0 != (4096 & e) ? (Dt = 7,
4096) : 0 != (t = 4186112 & e) ? (Dt = 6,
t) : 0 != (t = 62914560 & e) ? (Dt = 5,
t) : 67108864 & e ? (Dt = 4,
67108864) : 0 != (134217728 & e) ? (Dt = 3,
134217728) : 0 != (t = 805306368 & e) ? (Dt = 2,
t) : 0 != (1073741824 & e) ? (Dt = 1,
1073741824) : (Dt = 8,
e)
}
function Rt(e, t) {
var n = e.pendingLanes;
if (0 === n)
return Dt = 0;
var r = 0
, i = 0
, o = e.expiredLanes
, a = e.suspendedLanes
, l = e.pingedLanes;
if (0 !== o)
r = o,
i = Dt = 15;
else if (0 != (o = 134217727 & n)) {
var s = o & ~a;
0 !== s ? (r = Lt(s),
i = Dt) : 0 != (l &= o) && (r = Lt(l),
i = Dt)
} else
0 != (o = n & ~a) ? (r = Lt(o),
i = Dt) : 0 !== l && (r = Lt(l),
i = Dt);
if (0 === r)
return 0;
if (r = n & ((0 > (r = 31 - qt(r)) ? 0 : 1 << r) << 1) - 1,
0 !== t && t !== r && 0 == (t & a)) {
if (Lt(t),
i <= Dt)
return t;
Dt = i
}
if (0 !== (t = e.entangledLanes))
for (e = e.entanglements,
t &= r; 0 < t; )
i = 1 << (n = 31 - qt(t)),
r |= e[n],
t &= ~i;
return r
}
function Pt(e) {
return 0 != (e = -1073741825 & e.pendingLanes) ? e : 1073741824 & e ? 1073741824 : 0
}
function Bt(e, t) {
switch (e) {
case 15:
return 1;
case 14:
return 2;
case 12:
return 0 === (e = Ft(24 & ~t)) ? Bt(10, t) : e;
case 10:
return 0 === (e = Ft(192 & ~t)) ? Bt(8, t) : e;
case 8:
return 0 === (e = Ft(3584 & ~t)) && 0 === (e = Ft(4186112 & ~t)) && (e = 512),
e;
case 2:
return 0 === (t = Ft(805306368 & ~t)) && (t = 268435456),
t
}
throw Error(a(358, e))
}
function Ft(e) {
return e & -e
}
function Vt(e) {
for (var t = [], n = 0; 31 > n; n++)
t.push(e);
return t
}
function Wt(e, t, n) {
e.pendingLanes |= t;
var r = t - 1;
e.suspendedLanes &= r,
e.pingedLanes &= r,
(e = e.eventTimes)[t = 31 - qt(t)] = n
}
var qt = Math.clz32 ? Math.clz32 : function(e) {
return 0 === e ? 32 : 31 - (Ht(e) / Ut | 0) | 0
}
, Ht = Math.log
, Ut = Math.LN2
, Xt = o.unstable_UserBlockingPriority
, Gt = o.unstable_runWithPriority
, Kt = !0;
function Yt(e, t, n, r) {
Le || ze();
var i = Jt
, o = Le;
Le = !0;
try {
Ne(i, e, t, n, r)
} finally {
(Le = o) || Pe()
}
}
function Qt(e, t, n, r) {
Gt(Xt, Jt.bind(null, e, t, n, r))
}
function Jt(e, t, n, r) {
var i;
if (Kt)
if ((i = 0 == (4 & t)) && 0 < ot.length && -1 < pt.indexOf(e))
e = ht(null, e, t, n, r),
ot.push(e);
else {
var o = Zt(e, t, n, r);
if (null === o)
i && ft(e, r);
else {
if (i) {
if (-1 < pt.indexOf(e))
return e = ht(o, e, t, n, r),
void ot.push(e);
if (function(e, t, n, r, i) {
switch (t) {
case "focusin":
return at = bt(at, e, t, n, r, i),
!0;
case "dragenter":
return lt = bt(lt, e, t, n, r, i),
!0;
case "mouseover":
return st = bt(st, e, t, n, r, i),
!0;
case "pointerover":
var o = i.pointerId;
return ct.set(o, bt(ct.get(o) || null, e, t, n, r, i)),
!0;
case "gotpointercapture":
return o = i.pointerId,
ut.set(o, bt(ut.get(o) || null, e, t, n, r, i)),
!0
}
return !1
}(o, e, t, n, r))
return;
ft(e, r)
}
zr(e, t, r, null, n)
}
}
}
function Zt(e, t, n, r) {
var i = Ce(r);
if (null !== (i = ti(i))) {
var o = Ye(i);
if (null === o)
i = null;
else {
var a = o.tag;
if (13 === a) {
if (null !== (i = Qe(o)))
return i;
i = null
} else if (3 === a) {
if (o.stateNode.hydrate)
return 3 === o.tag ? o.stateNode.containerInfo : null;
i = null
} else
o !== i && (i = null)
}
}
return zr(e, t, r, i, n),
null
}
var $t = null
, en = null
, tn = null;
function nn() {
if (tn)
return tn;
var e, t, n = en, r = n.length, i = "value"in $t ? $t.value : $t.textContent, o = i.length;
for (e = 0; e < r && n[e] === i[e]; e++)
;
var a = r - e;
for (t = 1; t <= a && n[r - t] === i[o - t]; t++)
;
return tn = i.slice(e, 1 < t ? 1 - t : void 0)
}
function rn(e) {
var t = e.keyCode;
return "charCode"in e ? 0 === (e = e.charCode) && 13 === t && (e = 13) : e = t,
10 === e && (e = 13),
32 <= e || 13 === e ? e : 0
}
function on() {
return !0
}
function an() {
return !1
}
function ln(e) {
function t(t, n, r, i, o) {
for (var a in this._reactName = t,
this._targetInst = r,
this.type = n,
this.nativeEvent = i,
this.target = o,
this.currentTarget = null,
e)
e.hasOwnProperty(a) && (t = e[a],
this[a] = t ? t(i) : i[a]);
return this.isDefaultPrevented = (null != i.defaultPrevented ? i.defaultPrevented : !1 === i.returnValue) ? on : an,
this.isPropagationStopped = an,
this
}
return i(t.prototype, {
preventDefault: function() {
this.defaultPrevented = !0;
var e = this.nativeEvent;
e && (e.preventDefault ? e.preventDefault() : "unknown" != typeof e.returnValue && (e.returnValue = !1),
this.isDefaultPrevented = on)
},
stopPropagation: function() {
var e = this.nativeEvent;
e && (e.stopPropagation ? e.stopPropagation() : "unknown" != typeof e.cancelBubble && (e.cancelBubble = !0),
this.isPropagationStopped = on)
},
persist: function() {},
isPersistent: on
}),
t
}
var sn, cn, un, dn = {
eventPhase: 0,
bubbles: 0,
cancelable: 0,
timeStamp: function(e) {
return e.timeStamp || Date.now()
},
defaultPrevented: 0,
isTrusted: 0
}, pn = ln(dn), hn = i({}, dn, {
view: 0,
detail: 0
}), fn = ln(hn), bn = i({}, hn, {
screenX: 0,
screenY: 0,
clientX: 0,
clientY: 0,
pageX: 0,
pageY: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
getModifierState: Mn,
button: 0,
buttons: 0,
relatedTarget: function(e) {
return void 0 === e.relatedTarget ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget
},
movementX: function(e) {
return "movementX"in e ? e.movementX : (e !== un && (un && "mousemove" === e.type ? (sn = e.screenX - un.screenX,
cn = e.screenY - un.screenY) : cn = sn = 0,
un = e),
sn)
},
movementY: function(e) {
return "movementY"in e ? e.movementY : cn
}
}), gn = ln(bn), mn = ln(i({}, bn, {
dataTransfer: 0
})), vn = ln(i({}, hn, {
relatedTarget: 0
})), yn = ln(i({}, dn, {
animationName: 0,
elapsedTime: 0,
pseudoElement: 0
})), xn = i({}, dn, {
clipboardData: function(e) {
return "clipboardData"in e ? e.clipboardData : window.clipboardData
}
}), On = ln(xn), jn = ln(i({}, dn, {
data: 0
})), kn = {
Esc: "Escape",
Spacebar: " ",
Left: "ArrowLeft",
Up: "ArrowUp",
Right: "ArrowRight",
Down: "ArrowDown",
Del: "Delete",
Win: "OS",
Menu: "ContextMenu",
Apps: "ContextMenu",
Scroll: "ScrollLock",
MozPrintableKey: "Unidentified"
}, wn = {
8: "Backspace",
9: "Tab",
12: "Clear",
13: "Enter",
16: "Shift",
17: "Control",
18: "Alt",
19: "Pause",
20: "CapsLock",
27: "Escape",
32: " ",
33: "PageUp",
34: "PageDown",
35: "End",
36: "Home",
37: "ArrowLeft",
38: "ArrowUp",
39: "ArrowRight",
40: "ArrowDown",
45: "Insert",
46: "Delete",
112: "F1",
113: "F2",
114: "F3",
115: "F4",
116: "F5",
117: "F6",
118: "F7",
119: "F8",
120: "F9",
121: "F10",
122: "F11",
123: "F12",
144: "NumLock",
145: "ScrollLock",
224: "Meta"
}, Cn = {
Alt: "altKey",
Control: "ctrlKey",
Meta: "metaKey",
Shift: "shiftKey"
};
function _n(e) {
var t = this.nativeEvent;
return t.getModifierState ? t.getModifierState(e) : !!(e = Cn[e]) && !!t[e]
}
function Mn() {
return _n
}
var Sn = i({}, hn, {
key: function(e) {
if (e.key) {
var t = kn[e.key] || e.key;
if ("Unidentified" !== t)
return t
}
return "keypress" === e.type ? 13 === (e = rn(e)) ? "Enter" : String.fromCharCode(e) : "keydown" === e.type || "keyup" === e.type ? wn[e.keyCode] || "Unidentified" : ""
},
code: 0,
location: 0,
ctrlKey: 0,
shiftKey: 0,
altKey: 0,
metaKey: 0,
repeat: 0,
locale: 0,
getModifierState: Mn,
charCode: function(e) {
return "keypress" === e.type ? rn(e) : 0
},
keyCode: function(e) {
return "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0
},
which: function(e) {
return "keypress" === e.type ? rn(e) : "keydown" === e.type || "keyup" === e.type ? e.keyCode : 0
}
})
, An = ln(Sn)
, Tn = ln(i({}, bn, {
pointerId: 0,
width: 0,
height: 0,
pressure: 0,
tangentialPressure: 0,
tiltX: 0,
tiltY: 0,
twist: 0,
pointerType: 0,
isPrimary: 0
}))
, En = ln(i({}, hn, {
touches: 0,
targetTouches: 0,
changedTouches: 0,
altKey: 0,
metaKey: 0,
ctrlKey: 0,
shiftKey: 0,
getModifierState: Mn
}))
, In = ln(i({}, dn, {
propertyName: 0,
elapsedTime: 0,
pseudoElement: 0
}))
, Nn = i({}, bn, {
deltaX: function(e) {
return "deltaX"in e ? e.deltaX : "wheelDeltaX"in e ? -e.wheelDeltaX : 0
},
deltaY: function(e) {
return "deltaY"in e ? e.deltaY : "wheelDeltaY"in e ? -e.wheelDeltaY : "wheelDelta"in e ? -e.wheelDelta : 0
},
deltaZ: 0,
deltaMode: 0
})
, zn = ln(Nn)
, Dn = [9, 13, 27, 32]
, Ln = d && "CompositionEvent"in window
, Rn = null;
d && "documentMode"in document && (Rn = document.documentMode);
var Pn = d && "TextEvent"in window && !Rn
, Bn = d && (!Ln || Rn && 8 < Rn && 11 >= Rn)
, Fn = String.fromCharCode(32)
, Vn = !1;
function Wn(e, t) {
switch (e) {
case "keyup":
return -1 !== Dn.indexOf(t.keyCode);
case "keydown":
return 229 !== t.keyCode;
case "keypress":
case "mousedown":
case "focusout":
return !0;
default:
return !1
}
}
function qn(e) {
return "object" == typeof (e = e.detail) && "data"in e ? e.data : null
}
var Hn = !1
, Un = {
color: !0,
date: !0,
datetime: !0,
"datetime-local": !0,
email: !0,
month: !0,
number: !0,
password: !0,
range: !0,
search: !0,
tel: !0,
text: !0,
time: !0,
url: !0,
week: !0
};
function Xn(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return "input" === t ? !!Un[e.type] : "textarea" === t
}
function Gn(e, t, n, r) {
Te(r),
0 < (t = Lr(t, "onChange")).length && (n = new pn("onChange","change",null,n,r),
e.push({
event: n,
listeners: t
}))
}
var Kn = null
, Yn = null;
function Qn(e) {
Sr(e, 0)
}
function Jn(e) {
if (J(ri(e)))
return e
}
function Zn(e, t) {
if ("change" === e)
return t
}
var $n = !1;
if (d) {
var er;
if (d) {
var tr = "oninput"in document;
if (!tr) {
var nr = document.createElement("div");
nr.setAttribute("oninput", "return;"),
tr = "function" == typeof nr.oninput
}
er = tr
} else
er = !1;
$n = er && (!document.documentMode || 9 < document.documentMode)
}
function rr() {
Kn && (Kn.detachEvent("onpropertychange", ir),
Yn = Kn = null)
}
function ir(e) {
if ("value" === e.propertyName && Jn(Yn)) {
var t = [];
if (Gn(t, Yn, e, Ce(e)),
e = Qn,
Le)
e(t);
else {
Le = !0;
try {
Ie(e, t)
} finally {
Le = !1,
Pe()
}
}
}
}
function or(e, t, n) {
"focusin" === e ? (rr(),
Yn = n,
(Kn = t).attachEvent("onpropertychange", ir)) : "focusout" === e && rr()
}
function ar(e) {
if ("selectionchange" === e || "keyup" === e || "keydown" === e)
return Jn(Yn)
}
function lr(e, t) {
if ("click" === e)
return Jn(t)
}
function sr(e, t) {
if ("input" === e || "change" === e)
return Jn(t)
}
var cr = "function" == typeof Object.is ? Object.is : function(e, t) {
return e === t && (0 !== e || 1 / e == 1 / t) || e != e && t != t
}
, ur = Object.prototype.hasOwnProperty;
function dr(e, t) {
if (cr(e, t))
return !0;
if ("object" != typeof e || null === e || "object" != typeof t || null === t)
return !1;
var n = Object.keys(e)
, r = Object.keys(t);
if (n.length !== r.length)
return !1;
for (r = 0; r < n.length; r++)
if (!ur.call(t, n[r]) || !cr(e[n[r]], t[n[r]]))
return !1;
return !0
}
function pr(e) {
for (; e && e.firstChild; )
e = e.firstChild;
return e
}
function hr(e, t) {
var n, r = pr(e);
for (e = 0; r; ) {
if (3 === r.nodeType) {
if (n = e + r.textContent.length,
e <= t && n >= t)
return {
node: r,
offset: t - e
};
e = n
}
e: {
for (; r; ) {
if (r.nextSibling) {
r = r.nextSibling;
break e
}
r = r.parentNode
}
r = void 0
}
r = pr(r)
}
}
function fr(e, t) {
return !(!e || !t) && (e === t || (!e || 3 !== e.nodeType) && (t && 3 === t.nodeType ? fr(e, t.parentNode) : "contains"in e ? e.contains(t) : !!e.compareDocumentPosition && !!(16 & e.compareDocumentPosition(t))))
}
function br() {
for (var e = window, t = Z(); t instanceof e.HTMLIFrameElement; ) {
try {
var n = "string" == typeof t.contentWindow.location.href
} catch (e) {
n = !1
}
if (!n)
break;
t = Z((e = t.contentWindow).document)
}
return t
}
function gr(e) {
var t = e && e.nodeName && e.nodeName.toLowerCase();
return t && ("input" === t && ("text" === e.type || "search" === e.type || "tel" === e.type || "url" === e.type || "password" === e.type) || "textarea" === t || "true" === e.contentEditable)
}
var mr = d && "documentMode"in document && 11 >= document.documentMode
, vr = null
, yr = null
, xr = null
, Or = !1;
function jr(e, t, n) {
var r = n.window === n ? n.document : 9 === n.nodeType ? n : n.ownerDocument;
Or || null == vr || vr !== Z(r) || (r = "selectionStart"in (r = vr) && gr(r) ? {
start: r.selectionStart,
end: r.selectionEnd
} : {
anchorNode: (r = (r.ownerDocument && r.ownerDocument.defaultView || window).getSelection()).anchorNode,
anchorOffset: r.anchorOffset,
focusNode: r.focusNode,
focusOffset: r.focusOffset
},
xr && dr(xr, r) || (xr = r,
0 < (r = Lr(yr, "onSelect")).length && (t = new pn("onSelect","select",null,t,n),
e.push({
event: t,
listeners: r
}),
t.target = vr)))
}
zt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "), 0),
zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "), 1),
zt(Nt, 2);
for (var kr = "change selectionchange textInput compositionstart compositionend compositionupdate".split(" "), wr = 0; wr < kr.length; wr++)
It.set(kr[wr], 0);
u("onMouseEnter", ["mouseout", "mouseover"]),
u("onMouseLeave", ["mouseout", "mouseover"]),
u("onPointerEnter", ["pointerout", "pointerover"]),
u("onPointerLeave", ["pointerout", "pointerover"]),
c("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")),
c("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),
c("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]),
c("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")),
c("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")),
c("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" "));
var Cr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ")
, _r = new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));
function Mr(e, t, n) {
var r = e.type || "unknown-event";
e.currentTarget = n,
function(e, t, n, r, i, o, l, s, c) {
if (Ke.apply(this, arguments),
qe) {
if (!qe)
throw Error(a(198));
var u = He;
qe = !1,
He = null,
Ue || (Ue = !0,
Xe = u)
}
}(r, t, void 0, e),
e.currentTarget = null
}
function Sr(e, t) {
t = 0 != (4 & t);
for (var n = 0; n < e.length; n++) {
var r = e[n]
, i = r.event;
r = r.listeners;
e: {
var o = void 0;
if (t)
for (var a = r.length - 1; 0 <= a; a--) {
var l = r[a]
, s = l.instance
, c = l.currentTarget;
if (l = l.listener,
s !== o && i.isPropagationStopped())
break e;
Mr(i, l, c),
o = s
}
else
for (a = 0; a < r.length; a++) {
if (s = (l = r[a]).instance,
c = l.currentTarget,
l = l.listener,
s !== o && i.isPropagationStopped())
break e;
Mr(i, l, c),
o = s
}
}
}
if (Ue)
throw e = Xe,
Ue = !1,
Xe = null,
e
}
function Ar(e, t) {
var n = oi(t)
, r = e + "__bubble";
n.has(r) || (Nr(t, e, 2, !1),
n.add(r))
}
var Tr = "_reactListening" + Math.random().toString(36).slice(2);
function Er(e) {
e[Tr] || (e[Tr] = !0,
l.forEach((function(t) {
_r.has(t) || Ir(t, !1, e, null),
Ir(t, !0, e, null)
}
)))
}
function Ir(e, t, n, r) {
var i = 4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 0
, o = n;
if ("selectionchange" === e && 9 !== n.nodeType && (o = n.ownerDocument),
null !== r && !t && _r.has(e)) {
if ("scroll" !== e)
return;
i |= 2,
o = r
}
var a = oi(o)
, l = e + "__" + (t ? "capture" : "bubble");
a.has(l) || (t && (i |= 4),
Nr(o, e, i, t),
a.add(l))
}
function Nr(e, t, n, r) {
var i = It.get(t);
switch (void 0 === i ? 2 : i) {
case 0:
i = Yt;
break;
case 1:
i = Qt;
break;
default:
i = Jt
}
n = i.bind(null, t, n, e),
i = void 0,
!Fe || "touchstart" !== t && "touchmove" !== t && "wheel" !== t || (i = !0),
r ? void 0 !== i ? e.addEventListener(t, n, {
capture: !0,
passive: i
}) : e.addEventListener(t, n, !0) : void 0 !== i ? e.addEventListener(t, n, {
passive: i
}) : e.addEventListener(t, n, !1)
}
function zr(e, t, n, r, i) {
var o = r;
if (0 == (1 & t) && 0 == (2 & t) && null !== r)
e: for (; ; ) {
if (null === r)
return;
var a = r.tag;
if (3 === a || 4 === a) {
var l = r.stateNode.containerInfo;
if (l === i || 8 === l.nodeType && l.parentNode === i)
break;
if (4 === a)
for (a = r.return; null !== a; ) {
var s = a.tag;
if ((3 === s || 4 === s) && ((s = a.stateNode.containerInfo) === i || 8 === s.nodeType && s.parentNode === i))
return;
a = a.return
}
for (; null !== l; ) {
if (null === (a = ti(l)))
return;
if (5 === (s = a.tag) || 6 === s) {
r = o = a;
continue e
}
l = l.parentNode
}
}
r = r.return
}
!function(e, t, n) {
if (Re)
return e();
Re = !0;
try {
De(e, t, n)
} finally {
Re = !1,
Pe()
}
}((function() {
var r = o
, i = Ce(n)
, a = [];
e: {
var l = Et.get(e);
if (void 0 !== l) {
var s = pn
, c = e;
switch (e) {
case "keypress":
if (0 === rn(n))
break e;
case "keydown":
case "keyup":
s = An;
break;
case "focusin":
c = "focus",
s = vn;
break;
case "focusout":
c = "blur",
s = vn;
break;
case "beforeblur":
case "afterblur":
s = vn;
break;
case "click":
if (2 === n.button)
break e;
case "auxclick":
case "dblclick":
case "mousedown":
case "mousemove":
case "mouseup":
case "mouseout":
case "mouseover":
case "contextmenu":
s = gn;
break;
case "drag":
case "dragend":
case "dragenter":
case "dragexit":
case "dragleave":
case "dragover":
case "dragstart":
case "drop":
s = mn;
break;
case "touchcancel":
case "touchend":
case "touchmove":
case "touchstart":
s = En;
break;
case Mt:
case St:
case At:
s = yn;
break;
case Tt:
s = In;
break;
case "scroll":
s = fn;
break;
case "wheel":
s = zn;
break;
case "copy":
case "cut":
case "paste":
s = On;
break;
case "gotpointercapture":
case "lostpointercapture":
case "pointercancel":
case "pointerdown":
case "pointermove":
case "pointerout":
case "pointerover":
case "pointerup":
s = Tn
}
var u = 0 != (4 & t)
, d = !u && "scroll" === e
, p = u ? null !== l ? l + "Capture" : null : l;
u = [];
for (var h, f = r; null !== f; ) {
var b = (h = f).stateNode;
if (5 === h.tag && null !== b && (h = b,
null !== p && null != (b = Be(f, p)) && u.push(Dr(f, b, h))),
d)
break;
f = f.return
}
0 < u.length && (l = new s(l,c,null,n,i),
a.push({
event: l,
listeners: u
}))
}
}
if (0 == (7 & t)) {
if (s = "mouseout" === e || "pointerout" === e,
(!(l = "mouseover" === e || "pointerover" === e) || 0 != (16 & t) || !(c = n.relatedTarget || n.fromElement) || !ti(c) && !c[$r]) && (s || l) && (l = i.window === i ? i : (l = i.ownerDocument) ? l.defaultView || l.parentWindow : window,
s ? (s = r,
null !== (c = (c = n.relatedTarget || n.toElement) ? ti(c) : null) && (c !== (d = Ye(c)) || 5 !== c.tag && 6 !== c.tag) && (c = null)) : (s = null,
c = r),
s !== c)) {
if (u = gn,
b = "onMouseLeave",
p = "onMouseEnter",
f = "mouse",
"pointerout" !== e && "pointerover" !== e || (u = Tn,
b = "onPointerLeave",
p = "onPointerEnter",
f = "pointer"),
d = null == s ? l : ri(s),
h = null == c ? l : ri(c),
(l = new u(b,f + "leave",s,n,i)).target = d,
l.relatedTarget = h,
b = null,
ti(i) === r && ((u = new u(p,f + "enter",c,n,i)).target = h,
u.relatedTarget = d,
b = u),
d = b,
s && c)
e: {
for (p = c,
f = 0,
h = u = s; h; h = Rr(h))
f++;
for (h = 0,
b = p; b; b = Rr(b))
h++;
for (; 0 < f - h; )
u = Rr(u),
f--;
for (; 0 < h - f; )
p = Rr(p),
h--;
for (; f--; ) {
if (u === p || null !== p && u === p.alternate)
break e;
u = Rr(u),
p = Rr(p)
}
u = null
}
else
u = null;
null !== s && Pr(a, l, s, u, !1),
null !== c && null !== d && Pr(a, d, c, u, !0)
}
if ("select" === (s = (l = r ? ri(r) : window).nodeName && l.nodeName.toLowerCase()) || "input" === s && "file" === l.type)
var g = Zn;
else if (Xn(l))
if ($n)
g = sr;
else {
g = ar;
var m = or
}
else
(s = l.nodeName) && "input" === s.toLowerCase() && ("checkbox" === l.type || "radio" === l.type) && (g = lr);
switch (g && (g = g(e, r)) ? Gn(a, g, n, i) : (m && m(e, l, r),
"focusout" === e && (m = l._wrapperState) && m.controlled && "number" === l.type && ie(l, "number", l.value)),
m = r ? ri(r) : window,
e) {
case "focusin":
(Xn(m) || "true" === m.contentEditable) && (vr = m,
yr = r,
xr = null);
break;
case "focusout":
xr = yr = vr = null;
break;
case "mousedown":
Or = !0;
break;
case "contextmenu":
case "mouseup":
case "dragend":
Or = !1,
jr(a, n, i);
break;
case "selectionchange":
if (mr)
break;
case "keydown":
case "keyup":
jr(a, n, i)
}
var v;
if (Ln)
e: {
switch (e) {
case "compositionstart":
var y = "onCompositionStart";
break e;
case "compositionend":
y = "onCompositionEnd";
break e;
case "compositionupdate":
y = "onCompositionUpdate";
break e
}
y = void 0
}
else
Hn ? Wn(e, n) && (y = "onCompositionEnd") : "keydown" === e && 229 === n.keyCode && (y = "onCompositionStart");
y && (Bn && "ko" !== n.locale && (Hn || "onCompositionStart" !== y ? "onCompositionEnd" === y && Hn && (v = nn()) : (en = "value"in ($t = i) ? $t.value : $t.textContent,
Hn = !0)),
0 < (m = Lr(r, y)).length && (y = new jn(y,e,null,n,i),
a.push({
event: y,
listeners: m
}),
(v || null !== (v = qn(n))) && (y.data = v))),
(v = Pn ? function(e, t) {
switch (e) {
case "compositionend":
return qn(t);
case "keypress":
return 32 !== t.which ? null : (Vn = !0,
Fn);
case "textInput":
return (e = t.data) === Fn && Vn ? null : e;
default:
return null
}
}(e, n) : function(e, t) {
if (Hn)
return "compositionend" === e || !Ln && Wn(e, t) ? (e = nn(),
tn = en = $t = null,
Hn = !1,
e) : null;
switch (e) {
case "paste":
default:
return null;
case "keypress":
if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) {
if (t.char && 1 < t.char.length)
return t.char;
if (t.which)
return String.fromCharCode(t.which)
}
return null;
case "compositionend":
return Bn && "ko" !== t.locale ? null : t.data
}
}(e, n)) && 0 < (r = Lr(r, "onBeforeInput")).length && (i = new jn("onBeforeInput","beforeinput",null,n,i),
a.push({
event: i,
listeners: r
}),
i.data = v)
}
Sr(a, t)
}
))
}
function Dr(e, t, n) {
return {
instance: e,
listener: t,
currentTarget: n
}
}
function Lr(e, t) {
for (var n = t + "Capture", r = []; null !== e; ) {
var i = e
, o = i.stateNode;
5 === i.tag && null !== o && (i = o,
null != (o = Be(e, n)) && r.unshift(Dr(e, o, i)),
null != (o = Be(e, t)) && r.push(Dr(e, o, i))),
e = e.return
}
return r
}
function Rr(e) {
if (null === e)
return null;
do {
e = e.return
} while (e && 5 !== e.tag);
return e || null
}
function Pr(e, t, n, r, i) {
for (var o = t._reactName, a = []; null !== n && n !== r; ) {
var l = n
, s = l.alternate
, c = l.stateNode;
if (null !== s && s === r)
break;
5 === l.tag && null !== c && (l = c,
i ? null != (s = Be(n, o)) && a.unshift(Dr(n, s, l)) : i || null != (s = Be(n, o)) && a.push(Dr(n, s, l))),
n = n.return
}
0 !== a.length && e.push({
event: t,
listeners: a
})
}
function Br() {}
var Fr = null
, Vr = null;
function Wr(e, t) {
switch (e) {
case "button":
case "input":
case "select":
case "textarea":
return !!t.autoFocus
}
return !1
}
function qr(e, t) {
return "textarea" === e || "option" === e || "noscript" === e || "string" == typeof t.children || "number" == typeof t.children || "object" == typeof t.dangerouslySetInnerHTML && null !== t.dangerouslySetInnerHTML && null != t.dangerouslySetInnerHTML.__html
}
var Hr = "function" == typeof setTimeout ? setTimeout : void 0
, Ur = "function" == typeof clearTimeout ? clearTimeout : void 0;
function Xr(e) {
(1 === e.nodeType || 9 === e.nodeType && null != (e = e.body)) && (e.textContent = "")
}
function Gr(e) {
for (; null != e; e = e.nextSibling) {
var t = e.nodeType;
if (1 === t || 3 === t)
break
}
return e
}
function Kr(e) {
e = e.previousSibling;
for (var t = 0; e; ) {
if (8 === e.nodeType) {
var n = e.data;
if ("$" === n || "$!" === n || "$?" === n) {
if (0 === t)
return e;
t--
} else
"/$" === n && t++
}
e = e.previousSibling
}
return null
}
var Yr = 0
, Qr = Math.random().toString(36).slice(2)
, Jr = "__reactFiber$" + Qr
, Zr = "__reactProps$" + Qr
, $r = "__reactContainer$" + Qr
, ei = "__reactEvents$" + Qr;
function ti(e) {
var t = e[Jr];
if (t)
return t;
for (var n = e.parentNode; n; ) {
if (t = n[$r] || n[Jr]) {
if (n = t.alternate,
null !== t.child || null !== n && null !== n.child)
for (e = Kr(e); null !== e; ) {
if (n = e[Jr])
return n;
e = Kr(e)
}
return t
}
n = (e = n).parentNode
}
return null
}
function ni(e) {
return !(e = e[Jr] || e[$r]) || 5 !== e.tag && 6 !== e.tag && 13 !== e.tag && 3 !== e.tag ? null : e
}
function ri(e) {
if (5 === e.tag || 6 === e.tag)
return e.stateNode;
throw Error(a(33))
}
function ii(e) {
return e[Zr] || null
}
function oi(e) {
var t = e[ei];
return void 0 === t && (t = e[ei] = new Set),
t
}
var ai = []
, li = -1;
function si(e) {
return {
current: e
}
}
function ci(e) {
0 > li || (e.current = ai[li],
ai[li] = null,
li--)
}
function ui(e, t) {
li++,
ai[li] = e.current,
e.current = t
}
var di = {}
, pi = si(di)
, hi = si(!1)
, fi = di;
function bi(e, t) {
var n = e.type.contextTypes;
if (!n)
return di;
var r = e.stateNode;
if (r && r.__reactInternalMemoizedUnmaskedChildContext === t)
return r.__reactInternalMemoizedMaskedChildContext;
var i, o = {};
for (i in n)
o[i] = t[i];
return r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = t,
e.__reactInternalMemoizedMaskedChildContext = o),
o
}
function gi(e) {
return null !== (e = e.childContextTypes) && void 0 !== e
}
function mi() {
ci(hi),
ci(pi)
}
function vi(e, t, n) {
if (pi.current !== di)
throw Error(a(168));
ui(pi, t),
ui(hi, n)
}
function yi(e, t, n) {
var r = e.stateNode;
if (e = t.childContextTypes,
"function" != typeof r.getChildContext)
return n;
for (var o in r = r.getChildContext())
if (!(o in e))
throw Error(a(108, G(t) || "Unknown", o));
return i({}, n, r)
}
function xi(e) {
return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || di,
fi = pi.current,
ui(pi, e),
ui(hi, hi.current),
!0
}
function Oi(e, t, n) {
var r = e.stateNode;
if (!r)
throw Error(a(169));
n ? (e = yi(e, t, fi),
r.__reactInternalMemoizedMergedChildContext = e,
ci(hi),
ci(pi),
ui(pi, e)) : ci(hi),
ui(hi, n)
}
var ji = null
, ki = null
, wi = o.unstable_runWithPriority
, Ci = o.unstable_scheduleCallback
, _i = o.unstable_cancelCallback
, Mi = o.unstable_shouldYield
, Si = o.unstable_requestPaint
, Ai = o.unstable_now
, Ti = o.unstable_getCurrentPriorityLevel
, Ei = o.unstable_ImmediatePriority
, Ii = o.unstable_UserBlockingPriority
, Ni = o.unstable_NormalPriority
, zi = o.unstable_LowPriority
, Di = o.unstable_IdlePriority
, Li = {}
, Ri = void 0 !== Si ? Si : function() {}
, Pi = null
, Bi = null
, Fi = !1
, Vi = Ai()
, Wi = 1e4 > Vi ? Ai : function() {
return Ai() - Vi
}
;
function qi() {
switch (Ti()) {
case Ei:
return 99;
case Ii:
return 98;
case Ni:
return 97;
case zi:
return 96;
case Di:
return 95;
default:
throw Error(a(332))
}
}
function Hi(e) {
switch (e) {
case 99:
return Ei;
case 98:
return Ii;
case 97:
return Ni;
case 96:
return zi;
case 95:
return Di;
default:
throw Error(a(332))
}
}
function Ui(e, t) {
return e = Hi(e),
wi(e, t)
}
function Xi(e, t, n) {
return e = Hi(e),
Ci(e, t, n)
}
function Gi() {
if (null !== Bi) {
var e = Bi;
Bi = null,
_i(e)
}
Ki()
}
function Ki() {
if (!Fi && null !== Pi) {
Fi = !0;
var e = 0;
try {
var t = Pi;
Ui(99, (function() {
for (; e < t.length; e++) {
var n = t[e];
do {
n = n(!0)
} while (null !== n)
}
}
)),
Pi = null
} catch (t) {
throw null !== Pi && (Pi = Pi.slice(e + 1)),
Ci(Ei, Gi),
t
} finally {
Fi = !1
}
}
}
var Yi = O.ReactCurrentBatchConfig;
function Qi(e, t) {
if (e && e.defaultProps) {
for (var n in t = i({}, t),
e = e.defaultProps)
void 0 === t[n] && (t[n] = e[n]);
return t
}
return t
}
var Ji = si(null)
, Zi = null
, $i = null
, eo = null;
function to() {
eo = $i = Zi = null
}
function no(e) {
var t = Ji.current;
ci(Ji),
e.type._context._currentValue = t
}
function ro(e, t) {
for (; null !== e; ) {
var n = e.alternate;
if ((e.childLanes & t) === t) {
if (null === n || (n.childLanes & t) === t)
break;
n.childLanes |= t
} else
e.childLanes |= t,
null !== n && (n.childLanes |= t);
e = e.return
}
}
function io(e, t) {
Zi = e,
eo = $i = null,
null !== (e = e.dependencies) && null !== e.firstContext && (0 != (e.lanes & t) && (La = !0),
e.firstContext = null)
}
function oo(e, t) {
if (eo !== e && !1 !== t && 0 !== t)
if ("number" == typeof t && 1073741823 !== t || (eo = e,
t = 1073741823),
t = {
context: e,
observedBits: t,
next: null
},
null === $i) {
if (null === Zi)
throw Error(a(308));
$i = t,
Zi.dependencies = {
lanes: 0,
firstContext: t,
responders: null
}
} else
$i = $i.next = t;
return e._currentValue
}
var ao = !1;
function lo(e) {
e.updateQueue = {
baseState: e.memoizedState,
firstBaseUpdate: null,
lastBaseUpdate: null,
shared: {
pending: null
},
effects: null
}
}
function so(e, t) {
e = e.updateQueue,
t.updateQueue === e && (t.updateQueue = {
baseState: e.baseState,
firstBaseUpdate: e.firstBaseUpdate,
lastBaseUpdate: e.lastBaseUpdate,
shared: e.shared,
effects: e.effects
})
}
function co(e, t) {
return {
eventTime: e,
lane: t,
tag: 0,
payload: null,
callback: null,
next: null
}
}
function uo(e, t) {
if (null !== (e = e.updateQueue)) {
var n = (e = e.shared).pending;
null === n ? t.next = t : (t.next = n.next,
n.next = t),
e.pending = t
}
}
function po(e, t) {
var n = e.updateQueue
, r = e.alternate;
if (null !== r && n === (r = r.updateQueue)) {
var i = null
, o = null;
if (null !== (n = n.firstBaseUpdate)) {
do {
var a = {
eventTime: n.eventTime,
lane: n.lane,
tag: n.tag,
payload: n.payload,
callback: n.callback,
next: null
};
null === o ? i = o = a : o = o.next = a,
n = n.next
} while (null !== n);
null === o ? i = o = t : o = o.next = t
} else
i = o = t;
return n = {
baseState: r.baseState,
firstBaseUpdate: i,
lastBaseUpdate: o,
shared: r.shared,
effects: r.effects
},
void (e.updateQueue = n)
}
null === (e = n.lastBaseUpdate) ? n.firstBaseUpdate = t : e.next = t,
n.lastBaseUpdate = t
}
function ho(e, t, n, r) {
var o = e.updateQueue;
ao = !1;
var a = o.firstBaseUpdate
, l = o.lastBaseUpdate
, s = o.shared.pending;
if (null !== s) {
o.shared.pending = null;
var c = s
, u = c.next;
c.next = null,
null === l ? a = u : l.next = u,
l = c;
var d = e.alternate;
if (null !== d) {
var p = (d = d.updateQueue).lastBaseUpdate;
p !== l && (null === p ? d.firstBaseUpdate = u : p.next = u,
d.lastBaseUpdate = c)
}
}
if (null !== a) {
for (p = o.baseState,
l = 0,
d = u = c = null; ; ) {
s = a.lane;
var h = a.eventTime;
if ((r & s) === s) {
null !== d && (d = d.next = {
eventTime: h,
lane: 0,
tag: a.tag,
payload: a.payload,
callback: a.callback,
next: null
});
e: {
var f = e
, b = a;
switch (s = t,
h = n,
b.tag) {
case 1:
if ("function" == typeof (f = b.payload)) {
p = f.call(h, p, s);
break e
}
p = f;
break e;
case 3:
f.flags = -4097 & f.flags | 64;
case 0:
if (null === (s = "function" == typeof (f = b.payload) ? f.call(h, p, s) : f) || void 0 === s)
break e;
p = i({}, p, s);
break e;
case 2:
ao = !0
}
}
null !== a.callback && (e.flags |= 32,
null === (s = o.effects) ? o.effects = [a] : s.push(a))
} else
h = {
eventTime: h,
lane: s,
tag: a.tag,
payload: a.payload,
callback: a.callback,
next: null
},
null === d ? (u = d = h,
c = p) : d = d.next = h,
l |= s;
if (null === (a = a.next)) {
if (null === (s = o.shared.pending))
break;
a = s.next,
s.next = null,
o.lastBaseUpdate = s,
o.shared.pending = null
}
}
null === d && (c = p),
o.baseState = c,
o.firstBaseUpdate = u,
o.lastBaseUpdate = d,
Pl |= l,
e.lanes = l,
e.memoizedState = p
}
}
function fo(e, t, n) {
if (e = t.effects,
t.effects = null,
null !== e)
for (t = 0; t < e.length; t++) {
var r = e[t]
, i = r.callback;
if (null !== i) {
if (r.callback = null,
r = n,
"function" != typeof i)
throw Error(a(191, i));
i.call(r)
}
}
}
var bo = (new r.Component).refs;
function go(e, t, n, r) {
n = null === (n = n(r, t = e.memoizedState)) || void 0 === n ? t : i({}, t, n),
e.memoizedState = n,
0 === e.lanes && (e.updateQueue.baseState = n)
}
var mo = {
isMounted: function(e) {
return !!(e = e._reactInternals) && Ye(e) === e
},
enqueueSetState: function(e, t, n) {
e = e._reactInternals;
var r = cs()
, i = us(e)
, o = co(r, i);
o.payload = t,
null != n && (o.callback = n),
uo(e, o),
ds(e, i, r)
},
enqueueReplaceState: function(e, t, n) {
e = e._reactInternals;
var r = cs()
, i = us(e)
, o = co(r, i);
o.tag = 1,
o.payload = t,
null != n && (o.callback = n),
uo(e, o),
ds(e, i, r)
},
enqueueForceUpdate: function(e, t) {
e = e._reactInternals;
var n = cs()
, r = us(e)
, i = co(n, r);
i.tag = 2,
null != t && (i.callback = t),
uo(e, i),
ds(e, r, n)
}
};
function vo(e, t, n, r, i, o, a) {
return "function" == typeof (e = e.stateNode).shouldComponentUpdate ? e.shouldComponentUpdate(r, o, a) : !(t.prototype && t.prototype.isPureReactComponent && dr(n, r) && dr(i, o))
}
function yo(e, t, n) {
var r = !1
, i = di
, o = t.contextType;
return "object" == typeof o && null !== o ? o = oo(o) : (i = gi(t) ? fi : pi.current,
o = (r = null !== (r = t.contextTypes) && void 0 !== r) ? bi(e, i) : di),
t = new t(n,o),
e.memoizedState = null !== t.state && void 0 !== t.state ? t.state : null,
t.updater = mo,
e.stateNode = t,
t._reactInternals = e,
r && ((e = e.stateNode).__reactInternalMemoizedUnmaskedChildContext = i,
e.__reactInternalMemoizedMaskedChildContext = o),
t
}
function xo(e, t, n, r) {
e = t.state,
"function" == typeof t.componentWillReceiveProps && t.componentWillReceiveProps(n, r),
"function" == typeof t.UNSAFE_componentWillReceiveProps && t.UNSAFE_componentWillReceiveProps(n, r),
t.state !== e && mo.enqueueReplaceState(t, t.state, null)
}
function Oo(e, t, n, r) {
var i = e.stateNode;
i.props = n,
i.state = e.memoizedState,
i.refs = bo,
lo(e);
var o = t.contextType;
"object" == typeof o && null !== o ? i.context = oo(o) : (o = gi(t) ? fi : pi.current,
i.context = bi(e, o)),
ho(e, n, i, r),
i.state = e.memoizedState,
"function" == typeof (o = t.getDerivedStateFromProps) && (go(e, t, o, n),
i.state = e.memoizedState),
"function" == typeof t.getDerivedStateFromProps || "function" == typeof i.getSnapshotBeforeUpdate || "function" != typeof i.UNSAFE_componentWillMount && "function" != typeof i.componentWillMount || (t = i.state,
"function" == typeof i.componentWillMount && i.componentWillMount(),
"function" == typeof i.UNSAFE_componentWillMount && i.UNSAFE_componentWillMount(),
t !== i.state && mo.enqueueReplaceState(i, i.state, null),
ho(e, n, i, r),
i.state = e.memoizedState),
"function" == typeof i.componentDidMount && (e.flags |= 4)
}
var jo = Array.isArray;
function ko(e, t, n) {
if (null !== (e = n.ref) && "function" != typeof e && "object" != typeof e) {
if (n._owner) {
if (n = n._owner) {
if (1 !== n.tag)
throw Error(a(309));
var r = n.stateNode
}
if (!r)
throw Error(a(147, e));
var i = "" + e;
return null !== t && null !== t.ref && "function" == typeof t.ref && t.ref._stringRef === i ? t.ref : (t = function(e) {
var t = r.refs;
t === bo && (t = r.refs = {}),
null === e ? delete t[i] : t[i] = e
}
,
t._stringRef = i,
t)
}
if ("string" != typeof e)
throw Error(a(284));
if (!n._owner)
throw Error(a(290, e))
}
return e
}
function wo(e, t) {
if ("textarea" !== e.type)
throw Error(a(31, "[object Object]" === Object.prototype.toString.call(t) ? "object with keys {" + Object.keys(t).join(", ") + "}" : t))
}
function Co(e) {
function t(t, n) {
if (e) {
var r = t.lastEffect;
null !== r ? (r.nextEffect = n,
t.lastEffect = n) : t.firstEffect = t.lastEffect = n,
n.nextEffect = null,
n.flags = 8
}
}
function n(n, r) {
if (!e)
return null;
for (; null !== r; )
t(n, r),
r = r.sibling;
return null
}
function r(e, t) {
for (e = new Map; null !== t; )
null !== t.key ? e.set(t.key, t) : e.set(t.index, t),
t = t.sibling;
return e
}
function i(e, t) {
return (e = qs(e, t)).index = 0,
e.sibling = null,
e
}
function o(t, n, r) {
return t.index = r,
e ? null !== (r = t.alternate) ? (r = r.index) < n ? (t.flags = 2,
n) : r : (t.flags = 2,
n) : n
}
function l(t) {
return e && null === t.alternate && (t.flags = 2),
t
}
function s(e, t, n, r) {
return null === t || 6 !== t.tag ? ((t = Gs(n, e.mode, r)).return = e,
t) : ((t = i(t, n)).return = e,
t)
}
function c(e, t, n, r) {
return null !== t && t.elementType === n.type ? ((r = i(t, n.props)).ref = ko(e, t, n),
r.return = e,
r) : ((r = Hs(n.type, n.key, n.props, null, e.mode, r)).ref = ko(e, t, n),
r.return = e,
r)
}
function u(e, t, n, r) {
return null === t || 4 !== t.tag || t.stateNode.containerInfo !== n.containerInfo || t.stateNode.implementation !== n.implementation ? ((t = Ks(n, e.mode, r)).return = e,
t) : ((t = i(t, n.children || [])).return = e,
t)
}
function d(e, t, n, r, o) {
return null === t || 7 !== t.tag ? ((t = Us(n, e.mode, r, o)).return = e,
t) : ((t = i(t, n)).return = e,
t)
}
function p(e, t, n) {
if ("string" == typeof t || "number" == typeof t)
return (t = Gs("" + t, e.mode, n)).return = e,
t;
if ("object" == typeof t && null !== t) {
switch (t.$$typeof) {
case j:
return (n = Hs(t.type, t.key, t.props, null, e.mode, n)).ref = ko(e, null, t),
n.return = e,
n;
case k:
return (t = Ks(t, e.mode, n)).return = e,
t
}
if (jo(t) || W(t))
return (t = Us(t, e.mode, n, null)).return = e,
t;
wo(e, t)
}
return null
}
function h(e, t, n, r) {
var i = null !== t ? t.key : null;
if ("string" == typeof n || "number" == typeof n)
return null !== i ? null : s(e, t, "" + n, r);
if ("object" == typeof n && null !== n) {
switch (n.$$typeof) {
case j:
return n.key === i ? n.type === w ? d(e, t, n.props.children, r, i) : c(e, t, n, r) : null;
case k:
return n.key === i ? u(e, t, n, r) : null
}
if (jo(n) || W(n))
return null !== i ? null : d(e, t, n, r, null);
wo(e, n)
}
return null
}
function f(e, t, n, r, i) {
if ("string" == typeof r || "number" == typeof r)
return s(t, e = e.get(n) || null, "" + r, i);
if ("object" == typeof r && null !== r) {
switch (r.$$typeof) {
case j:
return e = e.get(null === r.key ? n : r.key) || null,
r.type === w ? d(t, e, r.props.children, i, r.key) : c(t, e, r, i);
case k:
return u(t, e = e.get(null === r.key ? n : r.key) || null, r, i)
}
if (jo(r) || W(r))
return d(t, e = e.get(n) || null, r, i, null);
wo(t, r)
}
return null
}
function b(i, a, l, s) {
for (var c = null, u = null, d = a, b = a = 0, g = null; null !== d && b < l.length; b++) {
d.index > b ? (g = d,
d = null) : g = d.sibling;
var m = h(i, d, l[b], s);
if (null === m) {
null === d && (d = g);
break
}
e && d && null === m.alternate && t(i, d),
a = o(m, a, b),
null === u ? c = m : u.sibling = m,
u = m,
d = g
}
if (b === l.length)
return n(i, d),
c;
if (null === d) {
for (; b < l.length; b++)
null !== (d = p(i, l[b], s)) && (a = o(d, a, b),
null === u ? c = d : u.sibling = d,
u = d);
return c
}
for (d = r(i, d); b < l.length; b++)
null !== (g = f(d, i, b, l[b], s)) && (e && null !== g.alternate && d.delete(null === g.key ? b : g.key),
a = o(g, a, b),
null === u ? c = g : u.sibling = g,
u = g);
return e && d.forEach((function(e) {
return t(i, e)
}
)),
c
}
function g(i, l, s, c) {
var u = W(s);
if ("function" != typeof u)
throw Error(a(150));
if (null == (s = u.call(s)))
throw Error(a(151));
for (var d = u = null, b = l, g = l = 0, m = null, v = s.next(); null !== b && !v.done; g++,
v = s.next()) {
b.index > g ? (m = b,
b = null) : m = b.sibling;
var y = h(i, b, v.value, c);
if (null === y) {
null === b && (b = m);
break
}
e && b && null === y.alternate && t(i, b),
l = o(y, l, g),
null === d ? u = y : d.sibling = y,
d = y,
b = m
}
if (v.done)
return n(i, b),
u;
if (null === b) {
for (; !v.done; g++,
v = s.next())
null !== (v = p(i, v.value, c)) && (l = o(v, l, g),
null === d ? u = v : d.sibling = v,
d = v);
return u
}
for (b = r(i, b); !v.done; g++,
v = s.next())
null !== (v = f(b, i, g, v.value, c)) && (e && null !== v.alternate && b.delete(null === v.key ? g : v.key),
l = o(v, l, g),
null === d ? u = v : d.sibling = v,
d = v);
return e && b.forEach((function(e) {
return t(i, e)
}
)),
u
}
return function(e, r, o, s) {
var c = "object" == typeof o && null !== o && o.type === w && null === o.key;
c && (o = o.props.children);
var u = "object" == typeof o && null !== o;
if (u)
switch (o.$$typeof) {
case j:
e: {
for (u = o.key,
c = r; null !== c; ) {
if (c.key === u) {
if (7 === c.tag) {
if (o.type === w) {
n(e, c.sibling),
(r = i(c, o.props.children)).return = e,
e = r;
break e
}
} else if (c.elementType === o.type) {
n(e, c.sibling),
(r = i(c, o.props)).ref = ko(e, c, o),
r.return = e,
e = r;
break e
}
n(e, c);
break
}
t(e, c),
c = c.sibling
}
o.type === w ? ((r = Us(o.props.children, e.mode, s, o.key)).return = e,
e = r) : ((s = Hs(o.type, o.key, o.props, null, e.mode, s)).ref = ko(e, r, o),
s.return = e,
e = s)
}
return l(e);
case k:
e: {
for (c = o.key; null !== r; ) {
if (r.key === c) {
if (4 === r.tag && r.stateNode.containerInfo === o.containerInfo && r.stateNode.implementation === o.implementation) {
n(e, r.sibling),
(r = i(r, o.children || [])).return = e,
e = r;
break e
}
n(e, r);
break
}
t(e, r),
r = r.sibling
}
(r = Ks(o, e.mode, s)).return = e,
e = r
}
return l(e)
}
if ("string" == typeof o || "number" == typeof o)
return o = "" + o,
null !== r && 6 === r.tag ? (n(e, r.sibling),
(r = i(r, o)).return = e,
e = r) : (n(e, r),
(r = Gs(o, e.mode, s)).return = e,
e = r),
l(e);
if (jo(o))
return b(e, r, o, s);
if (W(o))
return g(e, r, o, s);
if (u && wo(e, o),
void 0 === o && !c)
switch (e.tag) {
case 1:
case 22:
case 0:
case 11:
case 15:
throw Error(a(152, G(e.type) || "Component"))
}
return n(e, r)
}
}
var _o = Co(!0)
, Mo = Co(!1)
, So = {}
, Ao = si(So)
, To = si(So)
, Eo = si(So);
function Io(e) {
if (e === So)
throw Error(a(174));
return e
}
function No(e, t) {
switch (ui(Eo, t),
ui(To, e),
ui(Ao, So),
e = t.nodeType) {
case 9:
case 11:
t = (t = t.documentElement) ? t.namespaceURI : he(null, "");
break;
default:
t = he(t = (e = 8 === e ? t.parentNode : t).namespaceURI || null, e = e.tagName)
}
ci(Ao),
ui(Ao, t)
}
function zo() {
ci(Ao),
ci(To),
ci(Eo)
}
function Do(e) {
Io(Eo.current);
var t = Io(Ao.current)
, n = he(t, e.type);
t !== n && (ui(To, e),
ui(Ao, n))
}
function Lo(e) {
To.current === e && (ci(Ao),
ci(To))
}
var Ro = si(0);
function Po(e) {
for (var t = e; null !== t; ) {
if (13 === t.tag) {
var n = t.memoizedState;
if (null !== n && (null === (n = n.dehydrated) || "$?" === n.data || "$!" === n.data))
return t
} else if (19 === t.tag && void 0 !== t.memoizedProps.revealOrder) {
if (0 != (64 & t.flags))
return t
} else if (null !== t.child) {
t.child.return = t,
t = t.child;
continue
}
if (t === e)
break;
for (; null === t.sibling; ) {
if (null === t.return || t.return === e)
return null;
t = t.return
}
t.sibling.return = t.return,
t = t.sibling
}
return null
}
var Bo = null
, Fo = null
, Vo = !1;
function Wo(e, t) {
var n = Vs(5, null, null, 0);
n.elementType = "DELETED",
n.type = "DELETED",
n.stateNode = t,
n.return = e,
n.flags = 8,
null !== e.lastEffect ? (e.lastEffect.nextEffect = n,
e.lastEffect = n) : e.firstEffect = e.lastEffect = n
}
function qo(e, t) {
switch (e.tag) {
case 5:
var n = e.type;
return null !== (t = 1 !== t.nodeType || n.toLowerCase() !== t.nodeName.toLowerCase() ? null : t) && (e.stateNode = t,
!0);
case 6:
return null !== (t = "" === e.pendingProps || 3 !== t.nodeType ? null : t) && (e.stateNode = t,
!0);
default:
return !1
}
}
function Ho(e) {
if (Vo) {
var t = Fo;
if (t) {
var n = t;
if (!qo(e, t)) {
if (!(t = Gr(n.nextSibling)) || !qo(e, t))
return e.flags = -1025 & e.flags | 2,
Vo = !1,
void (Bo = e);
Wo(Bo, n)
}
Bo = e,
Fo = Gr(t.firstChild)
} else
e.flags = -1025 & e.flags | 2,
Vo = !1,
Bo = e
}
}
function Uo(e) {
for (e = e.return; null !== e && 5 !== e.tag && 3 !== e.tag && 13 !== e.tag; )
e = e.return;
Bo = e
}
function Xo(e) {
if (e !== Bo)
return !1;
if (!Vo)
return Uo(e),
Vo = !0,
!1;
var t = e.type;
if (5 !== e.tag || "head" !== t && "body" !== t && !qr(t, e.memoizedProps))
for (t = Fo; t; )
Wo(e, t),
t = Gr(t.nextSibling);
if (Uo(e),
13 === e.tag) {
if (!(e = null !== (e = e.memoizedState) ? e.dehydrated : null))
throw Error(a(317));
e: {
for (e = e.nextSibling,
t = 0; e; ) {
if (8 === e.nodeType) {
var n = e.data;
if ("/$" === n) {
if (0 === t) {
Fo = Gr(e.nextSibling);
break e
}
t--
} else
"$" !== n && "$!" !== n && "$?" !== n || t++
}
e = e.nextSibling
}
Fo = null
}
} else
Fo = Bo ? Gr(e.stateNode.nextSibling) : null;
return !0
}
function Go() {
Fo = Bo = null,
Vo = !1
}
var Ko = [];
function Yo() {
for (var e = 0; e < Ko.length; e++)
Ko[e]._workInProgressVersionPrimary = null;
Ko.length = 0
}
var Qo = O.ReactCurrentDispatcher
, Jo = O.ReactCurrentBatchConfig
, Zo = 0
, $o = null
, ea = null
, ta = null
, na = !1
, ra = !1;
function ia() {
throw Error(a(321))
}
function oa(e, t) {
if (null === t)
return !1;
for (var n = 0; n < t.length && n < e.length; n++)
if (!cr(e[n], t[n]))
return !1;
return !0
}
function aa(e, t, n, r, i, o) {
if (Zo = o,
$o = t,
t.memoizedState = null,
t.updateQueue = null,
t.lanes = 0,
Qo.current = null === e || null === e.memoizedState ? Ia : Na,
e = n(r, i),
ra) {
o = 0;
do {
if (ra = !1,
!(25 > o))
throw Error(a(301));
o += 1,
ta = ea = null,
t.updateQueue = null,
Qo.current = za,
e = n(r, i)
} while (ra)
}
if (Qo.current = Ea,
t = null !== ea && null !== ea.next,
Zo = 0,
ta = ea = $o = null,
na = !1,
t)
throw Error(a(300));
return e
}
function la() {
var e = {
memoizedState: null,
baseState: null,
baseQueue: null,
queue: null,
next: null
};
return null === ta ? $o.memoizedState = ta = e : ta = ta.next = e,
ta
}
function sa() {
if (null === ea) {
var e = $o.alternate;
e = null !== e ? e.memoizedState : null
} else
e = ea.next;
var t = null === ta ? $o.memoizedState : ta.next;
if (null !== t)
ta = t,
ea = e;
else {
if (null === e)
throw Error(a(310));
e = {
memoizedState: (ea = e).memoizedState,
baseState: ea.baseState,
baseQueue: ea.baseQueue,
queue: ea.queue,
next: null
},
null === ta ? $o.memoizedState = ta = e : ta = ta.next = e
}
return ta
}
function ca(e, t) {
return "function" == typeof t ? t(e) : t
}
function ua(e) {
var t = sa()
, n = t.queue;
if (null === n)
throw Error(a(311));
n.lastRenderedReducer = e;
var r = ea
, i = r.baseQueue
, o = n.pending;
if (null !== o) {
if (null !== i) {
var l = i.next;
i.next = o.next,
o.next = l
}
r.baseQueue = i = o,
n.pending = null
}
if (null !== i) {
i = i.next,
r = r.baseState;
var s = l = o = null
, c = i;
do {
var u = c.lane;
if ((Zo & u) === u)
null !== s && (s = s.next = {
lane: 0,
action: c.action,
eagerReducer: c.eagerReducer,
eagerState: c.eagerState,
next: null
}),
r = c.eagerReducer === e ? c.eagerState : e(r, c.action);
else {
var d = {
lane: u,
action: c.action,
eagerReducer: c.eagerReducer,
eagerState: c.eagerState,
next: null
};
null === s ? (l = s = d,
o = r) : s = s.next = d,
$o.lanes |= u,
Pl |= u
}
c = c.next
} while (null !== c && c !== i);
null === s ? o = r : s.next = l,
cr(r, t.memoizedState) || (La = !0),
t.memoizedState = r,
t.baseState = o,
t.baseQueue = s,
n.lastRenderedState = r
}
return [t.memoizedState, n.dispatch]
}
function da(e) {
var t = sa()
, n = t.queue;
if (null === n)
throw Error(a(311));
n.lastRenderedReducer = e;
var r = n.dispatch
, i = n.pending
, o = t.memoizedState;
if (null !== i) {
n.pending = null;
var l = i = i.next;
do {
o = e(o, l.action),
l = l.next
} while (l !== i);
cr(o, t.memoizedState) || (La = !0),
t.memoizedState = o,
null === t.baseQueue && (t.baseState = o),
n.lastRenderedState = o
}
return [o, r]
}
function pa(e, t, n) {
var r = t._getVersion;
r = r(t._source);
var i = t._workInProgressVersionPrimary;
if (null !== i ? e = i === r : (e = e.mutableReadLanes,
(e = (Zo & e) === e) && (t._workInProgressVersionPrimary = r,
Ko.push(t))),
e)
return n(t._source);
throw Ko.push(t),
Error(a(350))
}
function ha(e, t, n, r) {
var i = Tl;
if (null === i)
throw Error(a(349));
var o = t._getVersion
, l = o(t._source)
, s = Qo.current
, c = s.useState((function() {
return pa(i, t, n)
}
))
, u = c[1]
, d = c[0];
c = ta;
var p = e.memoizedState
, h = p.refs
, f = h.getSnapshot
, b = p.source;
p = p.subscribe;
var g = $o;
return e.memoizedState = {
refs: h,
source: t,
subscribe: r
},
s.useEffect((function() {
h.getSnapshot = n,
h.setSnapshot = u;
var e = o(t._source);
if (!cr(l, e)) {
e = n(t._source),
cr(d, e) || (u(e),
e = us(g),
i.mutableReadLanes |= e & i.pendingLanes),
e = i.mutableReadLanes,
i.entangledLanes |= e;
for (var r = i.entanglements, a = e; 0 < a; ) {
var s = 31 - qt(a)
, c = 1 << s;
r[s] |= e,
a &= ~c
}
}
}
), [n, t, r]),
s.useEffect((function() {
return r(t._source, (function() {
var e = h.getSnapshot
, n = h.setSnapshot;
try {
n(e(t._source));
var r = us(g);
i.mutableReadLanes |= r & i.pendingLanes
} catch (e) {
n((function() {
throw e
}
))
}
}
))
}
), [t, r]),
cr(f, n) && cr(b, t) && cr(p, r) || ((e = {
pending: null,
dispatch: null,
lastRenderedReducer: ca,
lastRenderedState: d
}).dispatch = u = Ta.bind(null, $o, e),
c.queue = e,
c.baseQueue = null,
d = pa(i, t, n),
c.memoizedState = c.baseState = d),
d
}
function fa(e, t, n) {
return ha(sa(), e, t, n)
}
function ba(e) {
var t = la();
return "function" == typeof e && (e = e()),
t.memoizedState = t.baseState = e,
e = (e = t.queue = {
pending: null,
dispatch: null,
lastRenderedReducer: ca,
lastRenderedState: e
}).dispatch = Ta.bind(null, $o, e),
[t.memoizedState, e]
}
function ga(e, t, n, r) {
return e = {
tag: e,
create: t,
destroy: n,
deps: r,
next: null
},
null === (t = $o.updateQueue) ? (t = {
lastEffect: null
},
$o.updateQueue = t,
t.lastEffect = e.next = e) : null === (n = t.lastEffect) ? t.lastEffect = e.next = e : (r = n.next,
n.next = e,
e.next = r,
t.lastEffect = e),
e
}
function ma(e) {
return e = {
current: e
},
la().memoizedState = e
}
function va() {
return sa().memoizedState
}
function ya(e, t, n, r) {
var i = la();
$o.flags |= e,
i.memoizedState = ga(1 | t, n, void 0, void 0 === r ? null : r)
}
function xa(e, t, n, r) {
var i = sa();
r = void 0 === r ? null : r;
var o = void 0;
if (null !== ea) {
var a = ea.memoizedState;
if (o = a.destroy,
null !== r && oa(r, a.deps))
return void ga(t, n, o, r)
}
$o.flags |= e,
i.memoizedState = ga(1 | t, n, o, r)
}
function Oa(e, t) {
return ya(516, 4, e, t)
}
function ja(e, t) {
return xa(516, 4, e, t)
}
function ka(e, t) {
return xa(4, 2, e, t)
}
function wa(e, t) {
return "function" == typeof t ? (e = e(),
t(e),
function() {
t(null)
}
) : null != t ? (e = e(),
t.current = e,
function() {
t.current = null
}
) : void 0
}
function Ca(e, t, n) {
return n = null != n ? n.concat([e]) : null,
xa(4, 2, wa.bind(null, t, e), n)
}
function _a() {}
function Ma(e, t) {
var n = sa();
t = void 0 === t ? null : t;
var r = n.memoizedState;
return null !== r && null !== t && oa(t, r[1]) ? r[0] : (n.memoizedState = [e, t],
e)
}
function Sa(e, t) {
var n = sa();
t = void 0 === t ? null : t;
var r = n.memoizedState;
return null !== r && null !== t && oa(t, r[1]) ? r[0] : (e = e(),
n.memoizedState = [e, t],
e)
}
function Aa(e, t) {
var n = qi();
Ui(98 > n ? 98 : n, (function() {
e(!0)
}
)),
Ui(97 < n ? 97 : n, (function() {
var n = Jo.transition;
Jo.transition = 1;
try {
e(!1),
t()
} finally {
Jo.transition = n
}
}
))
}
function Ta(e, t, n) {
var r = cs()
, i = us(e)
, o = {
lane: i,
action: n,
eagerReducer: null,
eagerState: null,
next: null
}
, a = t.pending;
if (null === a ? o.next = o : (o.next = a.next,
a.next = o),
t.pending = o,
a = e.alternate,
e === $o || null !== a && a === $o)
ra = na = !0;
else {
if (0 === e.lanes && (null === a || 0 === a.lanes) && null !== (a = t.lastRenderedReducer))
try {
var l = t.lastRenderedState
, s = a(l, n);
if (o.eagerReducer = a,
o.eagerState = s,
cr(s, l))
return
} catch (e) {}
ds(e, i, r)
}
}
var Ea = {
readContext: oo,
useCallback: ia,
useContext: ia,
useEffect: ia,
useImperativeHandle: ia,
useLayoutEffect: ia,
useMemo: ia,
useReducer: ia,
useRef: ia,
useState: ia,
useDebugValue: ia,
useDeferredValue: ia,
useTransition: ia,
useMutableSource: ia,
useOpaqueIdentifier: ia,
unstable_isNewReconciler: !1
}
, Ia = {
readContext: oo,
useCallback: function(e, t) {
return la().memoizedState = [e, void 0 === t ? null : t],
e
},
useContext: oo,
useEffect: Oa,
useImperativeHandle: function(e, t, n) {
return n = null != n ? n.concat([e]) : null,
ya(4, 2, wa.bind(null, t, e), n)
},
useLayoutEffect: function(e, t) {
return ya(4, 2, e, t)
},
useMemo: function(e, t) {
var n = la();
return t = void 0 === t ? null : t,
e = e(),
n.memoizedState = [e, t],
e
},
useReducer: function(e, t, n) {
var r = la();
return t = void 0 !== n ? n(t) : t,
r.memoizedState = r.baseState = t,
e = (e = r.queue = {
pending: null,
dispatch: null,
lastRenderedReducer: e,
lastRenderedState: t
}).dispatch = Ta.bind(null, $o, e),
[r.memoizedState, e]
},
useRef: ma,
useState: ba,
useDebugValue: _a,
useDeferredValue: function(e) {
var t = ba(e)
, n = t[0]
, r = t[1];
return Oa((function() {
var t = Jo.transition;
Jo.transition = 1;
try {
r(e)
} finally {
Jo.transition = t
}
}
), [e]),
n
},
useTransition: function() {
var e = ba(!1)
, t = e[0];
return ma(e = Aa.bind(null, e[1])),
[e, t]
},
useMutableSource: function(e, t, n) {
var r = la();
return r.memoizedState = {
refs: {
getSnapshot: t,
setSnapshot: null
},
source: e,
subscribe: n
},
ha(r, e, t, n)
},
useOpaqueIdentifier: function() {
if (Vo) {
var e = !1
, t = function(e) {
return {
$$typeof: D,
toString: e,
valueOf: e
}
}((function() {
throw e || (e = !0,
n("r:" + (Yr++).toString(36))),
Error(a(355))
}
))
, n = ba(t)[1];
return 0 == (2 & $o.mode) && ($o.flags |= 516,
ga(5, (function() {
n("r:" + (Yr++).toString(36))
}
), void 0, null)),
t
}
return ba(t = "r:" + (Yr++).toString(36)),
t
},
unstable_isNewReconciler: !1
}
, Na = {
readContext: oo,
useCallback: Ma,
useContext: oo,
useEffect: ja,
useImperativeHandle: Ca,
useLayoutEffect: ka,
useMemo: Sa,
useReducer: ua,
useRef: va,
useState: function() {
return ua(ca)
},
useDebugValue: _a,
useDeferredValue: function(e) {
var t = ua(ca)
, n = t[0]
, r = t[1];
return ja((function() {
var t = Jo.transition;
Jo.transition = 1;
try {
r(e)
} finally {
Jo.transition = t
}
}
), [e]),
n
},
useTransition: function() {
var e = ua(ca)[0];
return [va().current, e]
},
useMutableSource: fa,
useOpaqueIdentifier: function() {
return ua(ca)[0]
},
unstable_isNewReconciler: !1
}
, za = {
readContext: oo,
useCallback: Ma,
useContext: oo,
useEffect: ja,
useImperativeHandle: Ca,
useLayoutEffect: ka,
useMemo: Sa,
useReducer: da,
useRef: va,
useState: function() {
return da(ca)
},
useDebugValue: _a,
useDeferredValue: function(e) {
var t = da(ca)
, n = t[0]
, r = t[1];
return ja((function() {
var t = Jo.transition;
Jo.transition = 1;
try {
r(e)
} finally {
Jo.transition = t
}
}
), [e]),
n
},
useTransition: function() {
var e = da(ca)[0];
return [va().current, e]
},
useMutableSource: fa,
useOpaqueIdentifier: function() {
return da(ca)[0]
},
unstable_isNewReconciler: !1
}
, Da = O.ReactCurrentOwner
, La = !1;
function Ra(e, t, n, r) {
t.child = null === e ? Mo(t, null, n, r) : _o(t, e.child, n, r)
}
function Pa(e, t, n, r, i) {
n = n.render;
var o = t.ref;
return io(t, i),
r = aa(e, t, n, r, o, i),
null === e || La ? (t.flags |= 1,
Ra(e, t, r, i),
t.child) : (t.updateQueue = e.updateQueue,
t.flags &= -517,
e.lanes &= ~i,
nl(e, t, i))
}
function Ba(e, t, n, r, i, o) {
if (null === e) {
var a = n.type;
return "function" != typeof a || Ws(a) || void 0 !== a.defaultProps || null !== n.compare || void 0 !== n.defaultProps ? ((e = Hs(n.type, null, r, t, t.mode, o)).ref = t.ref,
e.return = t,
t.child = e) : (t.tag = 15,
t.type = a,
Fa(e, t, a, r, i, o))
}
return a = e.child,
0 == (i & o) && (i = a.memoizedProps,
(n = null !== (n = n.compare) ? n : dr)(i, r) && e.ref === t.ref) ? nl(e, t, o) : (t.flags |= 1,
(e = qs(a, r)).ref = t.ref,
e.return = t,
t.child = e)
}
function Fa(e, t, n, r, i, o) {
if (null !== e && dr(e.memoizedProps, r) && e.ref === t.ref) {
if (La = !1,
0 == (o & i))
return t.lanes = e.lanes,
nl(e, t, o);
0 != (16384 & e.flags) && (La = !0)
}
return qa(e, t, n, r, o)
}
function Va(e, t, n) {
var r = t.pendingProps
, i = r.children
, o = null !== e ? e.memoizedState : null;
if ("hidden" === r.mode || "unstable-defer-without-hiding" === r.mode)
if (0 == (4 & t.mode))
t.memoizedState = {
baseLanes: 0
},
ys(t, n);
else {
if (0 == (1073741824 & n))
return e = null !== o ? o.baseLanes | n : n,
t.lanes = t.childLanes = 1073741824,
t.memoizedState = {
baseLanes: e
},
ys(t, e),
null;
t.memoizedState = {
baseLanes: 0
},
ys(t, null !== o ? o.baseLanes : n)
}
else
null !== o ? (r = o.baseLanes | n,
t.memoizedState = null) : r = n,
ys(t, r);
return Ra(e, t, i, n),
t.child
}
function Wa(e, t) {
var n = t.ref;
(null === e && null !== n || null !== e && e.ref !== n) && (t.flags |= 128)
}
function qa(e, t, n, r, i) {
var o = gi(n) ? fi : pi.current;
return o = bi(t, o),
io(t, i),
n = aa(e, t, n, r, o, i),
null === e || La ? (t.flags |= 1,
Ra(e, t, n, i),
t.child) : (t.updateQueue = e.updateQueue,
t.flags &= -517,
e.lanes &= ~i,
nl(e, t, i))
}
function Ha(e, t, n, r, i) {
if (gi(n)) {
var o = !0;
xi(t)
} else
o = !1;
if (io(t, i),
null === t.stateNode)
null !== e && (e.alternate = null,
t.alternate = null,
t.flags |= 2),
yo(t, n, r),
Oo(t, n, r, i),
r = !0;
else if (null === e) {
var a = t.stateNode
, l = t.memoizedProps;
a.props = l;
var s = a.context
, c = n.contextType;
c = "object" == typeof c && null !== c ? oo(c) : bi(t, c = gi(n) ? fi : pi.current);
var u = n.getDerivedStateFromProps
, d = "function" == typeof u || "function" == typeof a.getSnapshotBeforeUpdate;
d || "function" != typeof a.UNSAFE_componentWillReceiveProps && "function" != typeof a.componentWillReceiveProps || (l !== r || s !== c) && xo(t, a, r, c),
ao = !1;
var p = t.memoizedState;
a.state = p,
ho(t, r, a, i),
s = t.memoizedState,
l !== r || p !== s || hi.current || ao ? ("function" == typeof u && (go(t, n, u, r),
s = t.memoizedState),
(l = ao || vo(t, n, l, r, p, s, c)) ? (d || "function" != typeof a.UNSAFE_componentWillMount && "function" != typeof a.componentWillMount || ("function" == typeof a.componentWillMount && a.componentWillMount(),
"function" == typeof a.UNSAFE_componentWillMount && a.UNSAFE_componentWillMount()),
"function" == typeof a.componentDidMount && (t.flags |= 4)) : ("function" == typeof a.componentDidMount && (t.flags |= 4),
t.memoizedProps = r,
t.memoizedState = s),
a.props = r,
a.state = s,
a.context = c,
r = l) : ("function" == typeof a.componentDidMount && (t.flags |= 4),
r = !1)
} else {
a = t.stateNode,
so(e, t),
l = t.memoizedProps,
c = t.type === t.elementType ? l : Qi(t.type, l),
a.props = c,
d = t.pendingProps,
p = a.context,
s = "object" == typeof (s = n.contextType) && null !== s ? oo(s) : bi(t, s = gi(n) ? fi : pi.current);
var h = n.getDerivedStateFromProps;
(u = "function" == typeof h || "function" == typeof a.getSnapshotBeforeUpdate) || "function" != typeof a.UNSAFE_componentWillReceiveProps && "function" != typeof a.componentWillReceiveProps || (l !== d || p !== s) && xo(t, a, r, s),
ao = !1,
p = t.memoizedState,
a.state = p,
ho(t, r, a, i);
var f = t.memoizedState;
l !== d || p !== f || hi.current || ao ? ("function" == typeof h && (go(t, n, h, r),
f = t.memoizedState),
(c = ao || vo(t, n, c, r, p, f, s)) ? (u || "function" != typeof a.UNSAFE_componentWillUpdate && "function" != typeof a.componentWillUpdate || ("function" == typeof a.componentWillUpdate && a.componentWillUpdate(r, f, s),
"function" == typeof a.UNSAFE_componentWillUpdate && a.UNSAFE_componentWillUpdate(r, f, s)),
"function" == typeof a.componentDidUpdate && (t.flags |= 4),
"function" == typeof a.getSnapshotBeforeUpdate && (t.flags |= 256)) : ("function" != typeof a.componentDidUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4),
"function" != typeof a.getSnapshotBeforeUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 256),
t.memoizedProps = r,
t.memoizedState = f),
a.props = r,
a.state = f,
a.context = s,
r = c) : ("function" != typeof a.componentDidUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4),
"function" != typeof a.getSnapshotBeforeUpdate || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 256),
r = !1)
}
return Ua(e, t, n, r, o, i)
}
function Ua(e, t, n, r, i, o) {
Wa(e, t);
var a = 0 != (64 & t.flags);
if (!r && !a)
return i && Oi(t, n, !1),
nl(e, t, o);
r = t.stateNode,
Da.current = t;
var l = a && "function" != typeof n.getDerivedStateFromError ? null : r.render();
return t.flags |= 1,
null !== e && a ? (t.child = _o(t, e.child, null, o),
t.child = _o(t, null, l, o)) : Ra(e, t, l, o),
t.memoizedState = r.state,
i && Oi(t, n, !0),
t.child
}
function Xa(e) {
var t = e.stateNode;
t.pendingContext ? vi(0, t.pendingContext, t.pendingContext !== t.context) : t.context && vi(0, t.context, !1),
No(e, t.containerInfo)
}
var Ga, Ka, Ya, Qa = {
dehydrated: null,
retryLane: 0
};
function Ja(e, t, n) {
var r, i = t.pendingProps, o = Ro.current, a = !1;
return (r = 0 != (64 & t.flags)) || (r = (null === e || null !== e.memoizedState) && 0 != (2 & o)),
r ? (a = !0,
t.flags &= -65) : null !== e && null === e.memoizedState || void 0 === i.fallback || !0 === i.unstable_avoidThisFallback || (o |= 1),
ui(Ro, 1 & o),
null === e ? (void 0 !== i.fallback && Ho(t),
e = i.children,
o = i.fallback,
a ? (e = Za(t, e, o, n),
t.child.memoizedState = {
baseLanes: n
},
t.memoizedState = Qa,
e) : "number" == typeof i.unstable_expectedLoadTime ? (e = Za(t, e, o, n),
t.child.memoizedState = {
baseLanes: n
},
t.memoizedState = Qa,
t.lanes = 33554432,
e) : ((n = Xs({
mode: "visible",
children: e
}, t.mode, n, null)).return = t,
t.child = n)) : (e.memoizedState,
a ? (i = function(e, t, n, r, i) {
var o = t.mode
, a = e.child;
e = a.sibling;
var l = {
mode: "hidden",
children: n
};
return 0 == (2 & o) && t.child !== a ? ((n = t.child).childLanes = 0,
n.pendingProps = l,
null !== (a = n.lastEffect) ? (t.firstEffect = n.firstEffect,
t.lastEffect = a,
a.nextEffect = null) : t.firstEffect = t.lastEffect = null) : n = qs(a, l),
null !== e ? r = qs(e, r) : (r = Us(r, o, i, null)).flags |= 2,
r.return = t,
n.return = t,
n.sibling = r,
t.child = n,
r
}(e, t, i.children, i.fallback, n),
a = t.child,
o = e.child.memoizedState,
a.memoizedState = null === o ? {
baseLanes: n
} : {
baseLanes: o.baseLanes | n
},
a.childLanes = e.childLanes & ~n,
t.memoizedState = Qa,
i) : (n = function(e, t, n, r) {
var i = e.child;
return e = i.sibling,
n = qs(i, {
mode: "visible",
children: n
}),
0 == (2 & t.mode) && (n.lanes = r),
n.return = t,
n.sibling = null,
null !== e && (e.nextEffect = null,
e.flags = 8,
t.firstEffect = t.lastEffect = e),
t.child = n
}(e, t, i.children, n),
t.memoizedState = null,
n))
}
function Za(e, t, n, r) {
var i = e.mode
, o = e.child;
return t = {
mode: "hidden",
children: t
},
0 == (2 & i) && null !== o ? (o.childLanes = 0,
o.pendingProps = t) : o = Xs(t, i, 0, null),
n = Us(n, i, r, null),
o.return = e,
n.return = e,
o.sibling = n,
e.child = o,
n
}
function $a(e, t) {
e.lanes |= t;
var n = e.alternate;
null !== n && (n.lanes |= t),
ro(e.return, t)
}
function el(e, t, n, r, i, o) {
var a = e.memoizedState;
null === a ? e.memoizedState = {
isBackwards: t,
rendering: null,
renderingStartTime: 0,
last: r,
tail: n,
tailMode: i,
lastEffect: o
} : (a.isBackwards = t,
a.rendering = null,
a.renderingStartTime = 0,
a.last = r,
a.tail = n,
a.tailMode = i,
a.lastEffect = o)
}
function tl(e, t, n) {
var r = t.pendingProps
, i = r.revealOrder
, o = r.tail;
if (Ra(e, t, r.children, n),
0 != (2 & (r = Ro.current)))
r = 1 & r | 2,
t.flags |= 64;
else {
if (null !== e && 0 != (64 & e.flags))
e: for (e = t.child; null !== e; ) {
if (13 === e.tag)
null !== e.memoizedState && $a(e, n);
else if (19 === e.tag)
$a(e, n);
else if (null !== e.child) {
e.child.return = e,
e = e.child;
continue
}
if (e === t)
break e;
for (; null === e.sibling; ) {
if (null === e.return || e.return === t)
break e;
e = e.return
}
e.sibling.return = e.return,
e = e.sibling
}
r &= 1
}
if (ui(Ro, r),
0 == (2 & t.mode))
t.memoizedState = null;
else
switch (i) {
case "forwards":
for (n = t.child,
i = null; null !== n; )
null !== (e = n.alternate) && null === Po(e) && (i = n),
n = n.sibling;
null === (n = i) ? (i = t.child,
t.child = null) : (i = n.sibling,
n.sibling = null),
el(t, !1, i, n, o, t.lastEffect);
break;
case "backwards":
for (n = null,
i = t.child,
t.child = null; null !== i; ) {
if (null !== (e = i.alternate) && null === Po(e)) {
t.child = i;
break
}
e = i.sibling,
i.sibling = n,
n = i,
i = e
}
el(t, !0, n, null, o, t.lastEffect);
break;
case "together":
el(t, !1, null, null, void 0, t.lastEffect);
break;
default:
t.memoizedState = null
}
return t.child
}
function nl(e, t, n) {
if (null !== e && (t.dependencies = e.dependencies),
Pl |= t.lanes,
0 != (n & t.childLanes)) {
if (null !== e && t.child !== e.child)
throw Error(a(153));
if (null !== t.child) {
for (n = qs(e = t.child, e.pendingProps),
t.child = n,
n.return = t; null !== e.sibling; )
e = e.sibling,
(n = n.sibling = qs(e, e.pendingProps)).return = t;
n.sibling = null
}
return t.child
}
return null
}
function rl(e, t) {
if (!Vo)
switch (e.tailMode) {
case "hidden":
t = e.tail;
for (var n = null; null !== t; )
null !== t.alternate && (n = t),
t = t.sibling;
null === n ? e.tail = null : n.sibling = null;
break;
case "collapsed":
n = e.tail;
for (var r = null; null !== n; )
null !== n.alternate && (r = n),
n = n.sibling;
null === r ? t || null === e.tail ? e.tail = null : e.tail.sibling = null : r.sibling = null
}
}
function il(e, t, n) {
var r = t.pendingProps;
switch (t.tag) {
case 2:
case 16:
case 15:
case 0:
case 11:
case 7:
case 8:
case 12:
case 9:
case 14:
return null;
case 1:
case 17:
return gi(t.type) && mi(),
null;
case 3:
return zo(),
ci(hi),
ci(pi),
Yo(),
(r = t.stateNode).pendingContext && (r.context = r.pendingContext,
r.pendingContext = null),
null !== e && null !== e.child || (Xo(t) ? t.flags |= 4 : r.hydrate || (t.flags |= 256)),
null;
case 5:
Lo(t);
var o = Io(Eo.current);
if (n = t.type,
null !== e && null != t.stateNode)
Ka(e, t, n, r),
e.ref !== t.ref && (t.flags |= 128);
else {
if (!r) {
if (null === t.stateNode)
throw Error(a(166));
return null
}
if (e = Io(Ao.current),
Xo(t)) {
r = t.stateNode,
n = t.type;
var l = t.memoizedProps;
switch (r[Jr] = t,
r[Zr] = l,
n) {
case "dialog":
Ar("cancel", r),
Ar("close", r);
break;
case "iframe":
case "object":
case "embed":
Ar("load", r);
break;
case "video":
case "audio":
for (e = 0; e < Cr.length; e++)
Ar(Cr[e], r);
break;
case "source":
Ar("error", r);
break;
case "img":
case "image":
case "link":
Ar("error", r),
Ar("load", r);
break;
case "details":
Ar("toggle", r);
break;
case "input":
ee(r, l),
Ar("invalid", r);
break;
case "select":
r._wrapperState = {
wasMultiple: !!l.multiple
},
Ar("invalid", r);
break;
case "textarea":
se(r, l),
Ar("invalid", r)
}
for (var c in ke(n, l),
e = null,
l)
l.hasOwnProperty(c) && (o = l[c],
"children" === c ? "string" == typeof o ? r.textContent !== o && (e = ["children", o]) : "number" == typeof o && r.textContent !== "" + o && (e = ["children", "" + o]) : s.hasOwnProperty(c) && null != o && "onScroll" === c && Ar("scroll", r));
switch (n) {
case "input":
Q(r),
re(r, l, !0);
break;
case "textarea":
Q(r),
ue(r);
break;
case "select":
case "option":
break;
default:
"function" == typeof l.onClick && (r.onclick = Br)
}
r = e,
t.updateQueue = r,
null !== r && (t.flags |= 4)
} else {
switch (c = 9 === o.nodeType ? o : o.ownerDocument,
e === de && (e = pe(n)),
e === de ? "script" === n ? ((e = c.createElement("div")).innerHTML = "<script><\/script>",
e = e.removeChild(e.firstChild)) : "string" == typeof r.is ? e = c.createElement(n, {
is: r.is
}) : (e = c.createElement(n),
"select" === n && (c = e,
r.multiple ? c.multiple = !0 : r.size && (c.size = r.size))) : e = c.createElementNS(e, n),
e[Jr] = t,
e[Zr] = r,
Ga(e, t),
t.stateNode = e,
c = we(n, r),
n) {
case "dialog":
Ar("cancel", e),
Ar("close", e),
o = r;
break;
case "iframe":
case "object":
case "embed":
Ar("load", e),
o = r;
break;
case "video":
case "audio":
for (o = 0; o < Cr.length; o++)
Ar(Cr[o], e);
o = r;
break;
case "source":
Ar("error", e),
o = r;
break;
case "img":
case "image":
case "link":
Ar("error", e),
Ar("load", e),
o = r;
break;
case "details":
Ar("toggle", e),
o = r;
break;
case "input":
ee(e, r),
o = $(e, r),
Ar("invalid", e);
break;
case "option":
o = oe(e, r);
break;
case "select":
e._wrapperState = {
wasMultiple: !!r.multiple
},
o = i({}, r, {
value: void 0
}),
Ar("invalid", e);
break;
case "textarea":
se(e, r),
o = le(e, r),
Ar("invalid", e);
break;
default:
o = r
}
ke(n, o);
var u = o;
for (l in u)
if (u.hasOwnProperty(l)) {
var d = u[l];
"style" === l ? Oe(e, d) : "dangerouslySetInnerHTML" === l ? null != (d = d ? d.__html : void 0) && ge(e, d) : "children" === l ? "string" == typeof d ? ("textarea" !== n || "" !== d) && me(e, d) : "number" == typeof d && me(e, "" + d) : "suppressContentEditableWarning" !== l && "suppressHydrationWarning" !== l && "autoFocus" !== l && (s.hasOwnProperty(l) ? null != d && "onScroll" === l && Ar("scroll", e) : null != d && x(e, l, d, c))
}
switch (n) {
case "input":
Q(e),
re(e, r, !1);
break;
case "textarea":
Q(e),
ue(e);
break;
case "option":
null != r.value && e.setAttribute("value", "" + K(r.value));
break;
case "select":
e.multiple = !!r.multiple,
null != (l = r.value) ? ae(e, !!r.multiple, l, !1) : null != r.defaultValue && ae(e, !!r.multiple, r.defaultValue, !0);
break;
default:
"function" == typeof o.onClick && (e.onclick = Br)
}
Wr(n, r) && (t.flags |= 4)
}
null !== t.ref && (t.flags |= 128)
}
return null;
case 6:
if (e && null != t.stateNode)
Ya(0, t, e.memoizedProps, r);
else {
if ("string" != typeof r && null === t.stateNode)
throw Error(a(166));
n = Io(Eo.current),
Io(Ao.current),
Xo(t) ? (r = t.stateNode,
n = t.memoizedProps,
r[Jr] = t,
r.nodeValue !== n && (t.flags |= 4)) : ((r = (9 === n.nodeType ? n : n.ownerDocument).createTextNode(r))[Jr] = t,
t.stateNode = r)
}
return null;
case 13:
return ci(Ro),
r = t.memoizedState,
0 != (64 & t.flags) ? (t.lanes = n,
t) : (r = null !== r,
n = !1,
null === e ? void 0 !== t.memoizedProps.fallback && Xo(t) : n = null !== e.memoizedState,
r && !n && 0 != (2 & t.mode) && (null === e && !0 !== t.memoizedProps.unstable_avoidThisFallback || 0 != (1 & Ro.current) ? 0 === Dl && (Dl = 3) : (0 !== Dl && 3 !== Dl || (Dl = 4),
null === Tl || 0 == (134217727 & Pl) && 0 == (134217727 & Bl) || bs(Tl, Il))),
(r || n) && (t.flags |= 4),
null);
case 4:
return zo(),
null === e && Er(t.stateNode.containerInfo),
null;
case 10:
return no(t),
null;
case 19:
if (ci(Ro),
null === (r = t.memoizedState))
return null;
if (l = 0 != (64 & t.flags),
null === (c = r.rendering))
if (l)
rl(r, !1);
else {
if (0 !== Dl || null !== e && 0 != (64 & e.flags))
for (e = t.child; null !== e; ) {
if (null !== (c = Po(e))) {
for (t.flags |= 64,
rl(r, !1),
null !== (l = c.updateQueue) && (t.updateQueue = l,
t.flags |= 4),
null === r.lastEffect && (t.firstEffect = null),
t.lastEffect = r.lastEffect,
r = n,
n = t.child; null !== n; )
e = r,
(l = n).flags &= 2,
l.nextEffect = null,
l.firstEffect = null,
l.lastEffect = null,
null === (c = l.alternate) ? (l.childLanes = 0,
l.lanes = e,
l.child = null,
l.memoizedProps = null,
l.memoizedState = null,
l.updateQueue = null,
l.dependencies = null,
l.stateNode = null) : (l.childLanes = c.childLanes,
l.lanes = c.lanes,
l.child = c.child,
l.memoizedProps = c.memoizedProps,
l.memoizedState = c.memoizedState,
l.updateQueue = c.updateQueue,
l.type = c.type,
e = c.dependencies,
l.dependencies = null === e ? null : {
lanes: e.lanes,
firstContext: e.firstContext
}),
n = n.sibling;
return ui(Ro, 1 & Ro.current | 2),
t.child
}
e = e.sibling
}
null !== r.tail && Wi() > ql && (t.flags |= 64,
l = !0,
rl(r, !1),
t.lanes = 33554432)
}
else {
if (!l)
if (null !== (e = Po(c))) {
if (t.flags |= 64,
l = !0,
null !== (n = e.updateQueue) && (t.updateQueue = n,
t.flags |= 4),
rl(r, !0),
null === r.tail && "hidden" === r.tailMode && !c.alternate && !Vo)
return null !== (t = t.lastEffect = r.lastEffect) && (t.nextEffect = null),
null
} else
2 * Wi() - r.renderingStartTime > ql && 1073741824 !== n && (t.flags |= 64,
l = !0,
rl(r, !1),
t.lanes = 33554432);
r.isBackwards ? (c.sibling = t.child,
t.child = c) : (null !== (n = r.last) ? n.sibling = c : t.child = c,
r.last = c)
}
return null !== r.tail ? (n = r.tail,
r.rendering = n,
r.tail = n.sibling,
r.lastEffect = t.lastEffect,
r.renderingStartTime = Wi(),
n.sibling = null,
t = Ro.current,
ui(Ro, l ? 1 & t | 2 : 1 & t),
n) : null;
case 23:
case 24:
return xs(),
null !== e && null !== e.memoizedState != (null !== t.memoizedState) && "unstable-defer-without-hiding" !== r.mode && (t.flags |= 4),
null
}
throw Error(a(156, t.tag))
}
function ol(e) {
switch (e.tag) {
case 1:
gi(e.type) && mi();
var t = e.flags;
return 4096 & t ? (e.flags = -4097 & t | 64,
e) : null;
case 3:
if (zo(),
ci(hi),
ci(pi),
Yo(),
0 != (64 & (t = e.flags)))
throw Error(a(285));
return e.flags = -4097 & t | 64,
e;
case 5:
return Lo(e),
null;
case 13:
return ci(Ro),
4096 & (t = e.flags) ? (e.flags = -4097 & t | 64,
e) : null;
case 19:
return ci(Ro),
null;
case 4:
return zo(),
null;
case 10:
return no(e),
null;
case 23:
case 24:
return xs(),
null;
default:
return null
}
}
function al(e, t) {
try {
var n = ""
, r = t;
do {
n += X(r),
r = r.return
} while (r);
var i = n
} catch (e) {
i = "\nError generating stack: " + e.message + "\n" + e.stack
}
return {
value: e,
source: t,
stack: i
}
}
function ll(e, t) {
try {
console.error(t.value)
} catch (e) {
setTimeout((function() {
throw e
}
))
}
}
Ga = function(e, t) {
for (var n = t.child; null !== n; ) {
if (5 === n.tag || 6 === n.tag)
e.appendChild(n.stateNode);
else if (4 !== n.tag && null !== n.child) {
n.child.return = n,
n = n.child;
continue
}
if (n === t)
break;
for (; null === n.sibling; ) {
if (null === n.return || n.return === t)
return;
n = n.return
}
n.sibling.return = n.return,
n = n.sibling
}
}
,
Ka = function(e, t, n, r) {
var o = e.memoizedProps;
if (o !== r) {
e = t.stateNode,
Io(Ao.current);
var a, l = null;
switch (n) {
case "input":
o = $(e, o),
r = $(e, r),
l = [];
break;
case "option":
o = oe(e, o),
r = oe(e, r),
l = [];
break;
case "select":
o = i({}, o, {
value: void 0
}),
r = i({}, r, {
value: void 0
}),
l = [];
break;
case "textarea":
o = le(e, o),
r = le(e, r),
l = [];
break;
default:
"function" != typeof o.onClick && "function" == typeof r.onClick && (e.onclick = Br)
}
for (d in ke(n, r),
n = null,
o)
if (!r.hasOwnProperty(d) && o.hasOwnProperty(d) && null != o[d])
if ("style" === d) {
var c = o[d];
for (a in c)
c.hasOwnProperty(a) && (n || (n = {}),
n[a] = "")
} else
"dangerouslySetInnerHTML" !== d && "children" !== d && "suppressContentEditableWarning" !== d && "suppressHydrationWarning" !== d && "autoFocus" !== d && (s.hasOwnProperty(d) ? l || (l = []) : (l = l || []).push(d, null));
for (d in r) {
var u = r[d];
if (c = null != o ? o[d] : void 0,
r.hasOwnProperty(d) && u !== c && (null != u || null != c))
if ("style" === d)
if (c) {
for (a in c)
!c.hasOwnProperty(a) || u && u.hasOwnProperty(a) || (n || (n = {}),
n[a] = "");
for (a in u)
u.hasOwnProperty(a) && c[a] !== u[a] && (n || (n = {}),
n[a] = u[a])
} else
n || (l || (l = []),
l.push(d, n)),
n = u;
else
"dangerouslySetInnerHTML" === d ? (u = u ? u.__html : void 0,
c = c ? c.__html : void 0,
null != u && c !== u && (l = l || []).push(d, u)) : "children" === d ? "string" != typeof u && "number" != typeof u || (l = l || []).push(d, "" + u) : "suppressContentEditableWarning" !== d && "suppressHydrationWarning" !== d && (s.hasOwnProperty(d) ? (null != u && "onScroll" === d && Ar("scroll", e),
l || c === u || (l = [])) : "object" == typeof u && null !== u && u.$$typeof === D ? u.toString() : (l = l || []).push(d, u))
}
n && (l = l || []).push("style", n);
var d = l;
(t.updateQueue = d) && (t.flags |= 4)
}
}
,
Ya = function(e, t, n, r) {
n !== r && (t.flags |= 4)
}
;
var sl = "function" == typeof WeakMap ? WeakMap : Map;
function cl(e, t, n) {
(n = co(-1, n)).tag = 3,
n.payload = {
element: null
};
var r = t.value;
return n.callback = function() {
Gl || (Gl = !0,
Kl = r),
ll(0, t)
}
,
n
}
function ul(e, t, n) {
(n = co(-1, n)).tag = 3;
var r = e.type.getDerivedStateFromError;
if ("function" == typeof r) {
var i = t.value;
n.payload = function() {
return ll(0, t),
r(i)
}
}
var o = e.stateNode;
return null !== o && "function" == typeof o.componentDidCatch && (n.callback = function() {
"function" != typeof r && (null === Yl ? Yl = new Set([this]) : Yl.add(this),
ll(0, t));
var e = t.stack;
this.componentDidCatch(t.value, {
componentStack: null !== e ? e : ""
})
}
),
n
}
var dl = "function" == typeof WeakSet ? WeakSet : Set;
function pl(e) {
var t = e.ref;
if (null !== t)
if ("function" == typeof t)
try {
t(null)
} catch (t) {
Rs(e, t)
}
else
t.current = null
}
function hl(e, t) {
switch (t.tag) {
case 0:
case 11:
case 15:
case 22:
case 5:
case 6:
case 4:
case 17:
return;
case 1:
if (256 & t.flags && null !== e) {
var n = e.memoizedProps
, r = e.memoizedState;
t = (e = t.stateNode).getSnapshotBeforeUpdate(t.elementType === t.type ? n : Qi(t.type, n), r),
e.__reactInternalSnapshotBeforeUpdate = t
}
return;
case 3:
return void (256 & t.flags && Xr(t.stateNode.containerInfo))
}
throw Error(a(163))
}
function fl(e, t, n) {
switch (n.tag) {
case 0:
case 11:
case 15:
case 22:
if (null !== (t = null !== (t = n.updateQueue) ? t.lastEffect : null)) {
e = t = t.next;
do {
if (3 == (3 & e.tag)) {
var r = e.create;
e.destroy = r()
}
e = e.next
} while (e !== t)
}
if (null !== (t = null !== (t = n.updateQueue) ? t.lastEffect : null)) {
e = t = t.next;
do {
var i = e;
r = i.next,
0 != (4 & (i = i.tag)) && 0 != (1 & i) && (zs(n, e),
Ns(n, e)),
e = r
} while (e !== t)
}
return;
case 1:
return e = n.stateNode,
4 & n.flags && (null === t ? e.componentDidMount() : (r = n.elementType === n.type ? t.memoizedProps : Qi(n.type, t.memoizedProps),
e.componentDidUpdate(r, t.memoizedState, e.__reactInternalSnapshotBeforeUpdate))),
void (null !== (t = n.updateQueue) && fo(n, t, e));
case 3:
if (null !== (t = n.updateQueue)) {
if (e = null,
null !== n.child)
switch (n.child.tag) {
case 5:
case 1:
e = n.child.stateNode
}
fo(n, t, e)
}
return;
case 5:
return e = n.stateNode,
void (null === t && 4 & n.flags && Wr(n.type, n.memoizedProps) && e.focus());
case 6:
case 4:
case 12:
case 19:
case 17:
case 20:
case 21:
case 23:
case 24:
return;
case 13:
return void (null === n.memoizedState && (n = n.alternate,
null !== n && (n = n.memoizedState,
null !== n && (n = n.dehydrated,
null !== n && Ot(n)))))
}
throw Error(a(163))
}
function bl(e, t) {
for (var n = e; ; ) {
if (5 === n.tag) {
var r = n.stateNode;
if (t)
"function" == typeof (r = r.style).setProperty ? r.setProperty("display", "none", "important") : r.display = "none";
else {
r = n.stateNode;
var i = n.memoizedProps.style;
i = null != i && i.hasOwnProperty("display") ? i.display : null,
r.style.display = xe("display", i)
}
} else if (6 === n.tag)
n.stateNode.nodeValue = t ? "" : n.memoizedProps;
else if ((23 !== n.tag && 24 !== n.tag || null === n.memoizedState || n === e) && null !== n.child) {
n.child.return = n,
n = n.child;
continue
}
if (n === e)
break;
for (; null === n.sibling; ) {
if (null === n.return || n.return === e)
return;
n = n.return
}
n.sibling.return = n.return,
n = n.sibling
}
}
function gl(e, t) {
if (ki && "function" == typeof ki.onCommitFiberUnmount)
try {
ki.onCommitFiberUnmount(ji, t)
} catch (e) {}
switch (t.tag) {
case 0:
case 11:
case 14:
case 15:
case 22:
if (null !== (e = t.updateQueue) && null !== (e = e.lastEffect)) {
var n = e = e.next;
do {
var r = n
, i = r.destroy;
if (r = r.tag,
void 0 !== i)
if (0 != (4 & r))
zs(t, n);
else {
r = t;
try {
i()
} catch (e) {
Rs(r, e)
}
}
n = n.next
} while (n !== e)
}
break;
case 1:
if (pl(t),
"function" == typeof (e = t.stateNode).componentWillUnmount)
try {
e.props = t.memoizedProps,
e.state = t.memoizedState,
e.componentWillUnmount()
} catch (e) {
Rs(t, e)
}
break;
case 5:
pl(t);
break;
case 4:
jl(e, t)
}
}
function ml(e) {
e.alternate = null,
e.child = null,
e.dependencies = null,
e.firstEffect = null,
e.lastEffect = null,
e.memoizedProps = null,
e.memoizedState = null,
e.pendingProps = null,
e.return = null,
e.updateQueue = null
}
function vl(e) {
return 5 === e.tag || 3 === e.tag || 4 === e.tag
}
function yl(e) {
e: {
for (var t = e.return; null !== t; ) {
if (vl(t))
break e;
t = t.return
}
throw Error(a(160))
}
var n = t;
switch (t = n.stateNode,
n.tag) {
case 5:
var r = !1;
break;
case 3:
case 4:
t = t.containerInfo,
r = !0;
break;
default:
throw Error(a(161))
}
16 & n.flags && (me(t, ""),
n.flags &= -17);
e: t: for (n = e; ; ) {
for (; null === n.sibling; ) {
if (null === n.return || vl(n.return)) {
n = null;
break e
}
n = n.return
}
for (n.sibling.return = n.return,
n = n.sibling; 5 !== n.tag && 6 !== n.tag && 18 !== n.tag; ) {
if (2 & n.flags)
continue t;
if (null === n.child || 4 === n.tag)
continue t;
n.child.return = n,
n = n.child
}
if (!(2 & n.flags)) {
n = n.stateNode;
break e
}
}
r ? xl(e, n, t) : Ol(e, n, t)
}
function xl(e, t, n) {
var r = e.tag
, i = 5 === r || 6 === r;
if (i)
e = i ? e.stateNode : e.stateNode.instance,
t ? 8 === n.nodeType ? n.parentNode.insertBefore(e, t) : n.insertBefore(e, t) : (8 === n.nodeType ? (t = n.parentNode).insertBefore(e, n) : (t = n).appendChild(e),
null !== (n = n._reactRootContainer) && void 0 !== n || null !== t.onclick || (t.onclick = Br));
else if (4 !== r && null !== (e = e.child))
for (xl(e, t, n),
e = e.sibling; null !== e; )
xl(e, t, n),
e = e.sibling
}
function Ol(e, t, n) {
var r = e.tag
, i = 5 === r || 6 === r;
if (i)
e = i ? e.stateNode : e.stateNode.instance,
t ? n.insertBefore(e, t) : n.appendChild(e);
else if (4 !== r && null !== (e = e.child))
for (Ol(e, t, n),
e = e.sibling; null !== e; )
Ol(e, t, n),
e = e.sibling
}
function jl(e, t) {
for (var n, r, i = t, o = !1; ; ) {
if (!o) {
o = i.return;
e: for (; ; ) {
if (null === o)
throw Error(a(160));
switch (n = o.stateNode,
o.tag) {
case 5:
r = !1;
break e;
case 3:
case 4:
n = n.containerInfo,
r = !0;
break e
}
o = o.return
}
o = !0
}
if (5 === i.tag || 6 === i.tag) {
e: for (var l = e, s = i, c = s; ; )
if (gl(l, c),
null !== c.child && 4 !== c.tag)
c.child.return = c,
c = c.child;
else {
if (c === s)
break e;
for (; null === c.sibling; ) {
if (null === c.return || c.return === s)
break e;
c = c.return
}
c.sibling.return = c.return,
c = c.sibling
}
r ? (l = n,
s = i.stateNode,
8 === l.nodeType ? l.parentNode.removeChild(s) : l.removeChild(s)) : n.removeChild(i.stateNode)
} else if (4 === i.tag) {
if (null !== i.child) {
n = i.stateNode.containerInfo,
r = !0,
i.child.return = i,
i = i.child;
continue
}
} else if (gl(e, i),
null !== i.child) {
i.child.return = i,
i = i.child;
continue
}
if (i === t)
break;
for (; null === i.sibling; ) {
if (null === i.return || i.return === t)
return;
4 === (i = i.return).tag && (o = !1)
}
i.sibling.return = i.return,
i = i.sibling
}
}
function kl(e, t) {
switch (t.tag) {
case 0:
case 11:
case 14:
case 15:
case 22:
var n = t.updateQueue;
if (null !== (n = null !== n ? n.lastEffect : null)) {
var r = n = n.next;
do {
3 == (3 & r.tag) && (e = r.destroy,
r.destroy = void 0,
void 0 !== e && e()),
r = r.next
} while (r !== n)
}
return;
case 1:
case 12:
case 17:
return;
case 5:
if (null != (n = t.stateNode)) {
r = t.memoizedProps;
var i = null !== e ? e.memoizedProps : r;
e = t.type;
var o = t.updateQueue;
if (t.updateQueue = null,
null !== o) {
for (n[Zr] = r,
"input" === e && "radio" === r.type && null != r.name && te(n, r),
we(e, i),
t = we(e, r),
i = 0; i < o.length; i += 2) {
var l = o[i]
, s = o[i + 1];
"style" === l ? Oe(n, s) : "dangerouslySetInnerHTML" === l ? ge(n, s) : "children" === l ? me(n, s) : x(n, l, s, t)
}
switch (e) {
case "input":
ne(n, r);
break;
case "textarea":
ce(n, r);
break;
case "select":
e = n._wrapperState.wasMultiple,
n._wrapperState.wasMultiple = !!r.multiple,
null != (o = r.value) ? ae(n, !!r.multiple, o, !1) : e !== !!r.multiple && (null != r.defaultValue ? ae(n, !!r.multiple, r.defaultValue, !0) : ae(n, !!r.multiple, r.multiple ? [] : "", !1))
}
}
}
return;
case 6:
if (null === t.stateNode)
throw Error(a(162));
return void (t.stateNode.nodeValue = t.memoizedProps);
case 3:
return void ((n = t.stateNode).hydrate && (n.hydrate = !1,
Ot(n.containerInfo)));
case 13:
return null !== t.memoizedState && (Wl = Wi(),
bl(t.child, !0)),
void wl(t);
case 19:
return void wl(t);
case 23:
case 24:
return void bl(t, null !== t.memoizedState)
}
throw Error(a(163))
}
function wl(e) {
var t = e.updateQueue;
if (null !== t) {
e.updateQueue = null;
var n = e.stateNode;
null === n && (n = e.stateNode = new dl),
t.forEach((function(t) {
var r = Bs.bind(null, e, t);
n.has(t) || (n.add(t),
t.then(r, r))
}
))
}
}
function Cl(e, t) {
return null !== e && (null === (e = e.memoizedState) || null !== e.dehydrated) && null !== (t = t.memoizedState) && null === t.dehydrated
}
var _l = Math.ceil
, Ml = O.ReactCurrentDispatcher
, Sl = O.ReactCurrentOwner
, Al = 0
, Tl = null
, El = null
, Il = 0
, Nl = 0
, zl = si(0)
, Dl = 0
, Ll = null
, Rl = 0
, Pl = 0
, Bl = 0
, Fl = 0
, Vl = null
, Wl = 0
, ql = 1 / 0;
function Hl() {
ql = Wi() + 500
}
var Ul, Xl = null, Gl = !1, Kl = null, Yl = null, Ql = !1, Jl = null, Zl = 90, $l = [], es = [], ts = null, ns = 0, rs = null, is = -1, os = 0, as = 0, ls = null, ss = !1;
function cs() {
return 0 != (48 & Al) ? Wi() : -1 !== is ? is : is = Wi()
}
function us(e) {
if (0 == (2 & (e = e.mode)))
return 1;
if (0 == (4 & e))
return 99 === qi() ? 1 : 2;
if (0 === os && (os = Rl),
0 !== Yi.transition) {
0 !== as && (as = null !== Vl ? Vl.pendingLanes : 0),
e = os;
var t = 4186112 & ~as;
return 0 == (t &= -t) && 0 == (t = (e = 4186112 & ~e) & -e) && (t = 8192),
t
}
return e = qi(),
e = Bt(0 != (4 & Al) && 98 === e ? 12 : e = function(e) {
switch (e) {
case 99:
return 15;
case 98:
return 10;
case 97:
case 96:
return 8;
case 95:
return 2;
default:
return 0
}
}(e), os)
}
function ds(e, t, n) {
if (50 < ns)
throw ns = 0,
rs = null,
Error(a(185));
if (null === (e = ps(e, t)))
return null;
Wt(e, t, n),
e === Tl && (Bl |= t,
4 === Dl && bs(e, Il));
var r = qi();
1 === t ? 0 != (8 & Al) && 0 == (48 & Al) ? gs(e) : (hs(e, n),
0 === Al && (Hl(),
Gi())) : (0 == (4 & Al) || 98 !== r && 99 !== r || (null === ts ? ts = new Set([e]) : ts.add(e)),
hs(e, n)),
Vl = e
}
function ps(e, t) {
e.lanes |= t;
var n = e.alternate;
for (null !== n && (n.lanes |= t),
n = e,
e = e.return; null !== e; )
e.childLanes |= t,
null !== (n = e.alternate) && (n.childLanes |= t),
n = e,
e = e.return;
return 3 === n.tag ? n.stateNode : null
}
function hs(e, t) {
for (var n = e.callbackNode, r = e.suspendedLanes, i = e.pingedLanes, o = e.expirationTimes, l = e.pendingLanes; 0 < l; ) {
var s = 31 - qt(l)
, c = 1 << s
, u = o[s];
if (-1 === u) {
if (0 == (c & r) || 0 != (c & i)) {
u = t,
Lt(c);
var d = Dt;
o[s] = 10 <= d ? u + 250 : 6 <= d ? u + 5e3 : -1
}
} else
u <= t && (e.expiredLanes |= c);
l &= ~c
}
if (r = Rt(e, e === Tl ? Il : 0),
t = Dt,
0 === r)
null !== n && (n !== Li && _i(n),
e.callbackNode = null,
e.callbackPriority = 0);
else {
if (null !== n) {
if (e.callbackPriority === t)
return;
n !== Li && _i(n)
}
15 === t ? (n = gs.bind(null, e),
null === Pi ? (Pi = [n],
Bi = Ci(Ei, Ki)) : Pi.push(n),
n = Li) : 14 === t ? n = Xi(99, gs.bind(null, e)) : (n = function(e) {
switch (e) {
case 15:
case 14:
return 99;
case 13:
case 12:
case 11:
case 10:
return 98;
case 9:
case 8:
case 7:
case 6:
case 4:
case 5:
return 97;
case 3:
case 2:
case 1:
return 95;
case 0:
return 90;
default:
throw Error(a(358, e))
}
}(t),
n = Xi(n, fs.bind(null, e))),
e.callbackPriority = t,
e.callbackNode = n
}
}
function fs(e) {
if (is = -1,
as = os = 0,
0 != (48 & Al))
throw Error(a(327));
var t = e.callbackNode;
if (Is() && e.callbackNode !== t)
return null;
var n = Rt(e, e === Tl ? Il : 0);
if (0 === n)
return null;
var r = n
, i = Al;
Al |= 16;
var o = ks();
for (Tl === e && Il === r || (Hl(),
Os(e, r)); ; )
try {
_s();
break
} catch (t) {
js(e, t)
}
if (to(),
Ml.current = o,
Al = i,
null !== El ? r = 0 : (Tl = null,
Il = 0,
r = Dl),
0 != (Rl & Bl))
Os(e, 0);
else if (0 !== r) {
if (2 === r && (Al |= 64,
e.hydrate && (e.hydrate = !1,
Xr(e.containerInfo)),
0 !== (n = Pt(e)) && (r = ws(e, n))),
1 === r)
throw t = Ll,
Os(e, 0),
bs(e, n),
hs(e, Wi()),
t;
switch (e.finishedWork = e.current.alternate,
e.finishedLanes = n,
r) {
case 0:
case 1:
throw Error(a(345));
case 2:
case 5:
As(e);
break;
case 3:
if (bs(e, n),
(62914560 & n) === n && 10 < (r = Wl + 500 - Wi())) {
if (0 !== Rt(e, 0))
break;
if (((i = e.suspendedLanes) & n) !== n) {
cs(),
e.pingedLanes |= e.suspendedLanes & i;
break
}
e.timeoutHandle = Hr(As.bind(null, e), r);
break
}
As(e);
break;
case 4:
if (bs(e, n),
(4186112 & n) === n)
break;
for (r = e.eventTimes,
i = -1; 0 < n; ) {
var l = 31 - qt(n);
o = 1 << l,
(l = r[l]) > i && (i = l),
n &= ~o
}
if (n = i,
10 < (n = (120 > (n = Wi() - n) ? 120 : 480 > n ? 480 : 1080 > n ? 1080 : 1920 > n ? 1920 : 3e3 > n ? 3e3 : 4320 > n ? 4320 : 1960 * _l(n / 1960)) - n)) {
e.timeoutHandle = Hr(As.bind(null, e), n);
break
}
As(e);
break;
default:
throw Error(a(329))
}
}
return hs(e, Wi()),
e.callbackNode === t ? fs.bind(null, e) : null
}
function bs(e, t) {
for (t &= ~Fl,
t &= ~Bl,
e.suspendedLanes |= t,
e.pingedLanes &= ~t,
e = e.expirationTimes; 0 < t; ) {
var n = 31 - qt(t)
, r = 1 << n;
e[n] = -1,
t &= ~r
}
}
function gs(e) {
if (0 != (48 & Al))
throw Error(a(327));
if (Is(),
e === Tl && 0 != (e.expiredLanes & Il)) {
var t = Il
, n = ws(e, t);
0 != (Rl & Bl) && (n = ws(e, t = Rt(e, t)))
} else
n = ws(e, t = Rt(e, 0));
if (0 !== e.tag && 2 === n && (Al |= 64,
e.hydrate && (e.hydrate = !1,
Xr(e.containerInfo)),
0 !== (t = Pt(e)) && (n = ws(e, t))),
1 === n)
throw n = Ll,
Os(e, 0),
bs(e, t),
hs(e, Wi()),
n;
return e.finishedWork = e.current.alternate,
e.finishedLanes = t,
As(e),
hs(e, Wi()),
null
}
function ms(e, t) {
var n = Al;
Al |= 1;
try {
return e(t)
} finally {
0 === (Al = n) && (Hl(),
Gi())
}
}
function vs(e, t) {
var n = Al;
Al &= -2,
Al |= 8;
try {
return e(t)
} finally {
0 === (Al = n) && (Hl(),
Gi())
}
}
function ys(e, t) {
ui(zl, Nl),
Nl |= t,
Rl |= t
}
function xs() {
Nl = zl.current,
ci(zl)
}
function Os(e, t) {
e.finishedWork = null,
e.finishedLanes = 0;
var n = e.timeoutHandle;
if (-1 !== n && (e.timeoutHandle = -1,
Ur(n)),
null !== El)
for (n = El.return; null !== n; ) {
var r = n;
switch (r.tag) {
case 1:
null !== (r = r.type.childContextTypes) && void 0 !== r && mi();
break;
case 3:
zo(),
ci(hi),
ci(pi),
Yo();
break;
case 5:
Lo(r);
break;
case 4:
zo();
break;
case 13:
case 19:
ci(Ro);
break;
case 10:
no(r);
break;
case 23:
case 24:
xs()
}
n = n.return
}
Tl = e,
El = qs(e.current, null),
Il = Nl = Rl = t,
Dl = 0,
Ll = null,
Fl = Bl = Pl = 0
}
function js(e, t) {
for (; ; ) {
var n = El;
try {
if (to(),
Qo.current = Ea,
na) {
for (var r = $o.memoizedState; null !== r; ) {
var i = r.queue;
null !== i && (i.pending = null),
r = r.next
}
na = !1
}
if (Zo = 0,
ta = ea = $o = null,
ra = !1,
Sl.current = null,
null === n || null === n.return) {
Dl = 1,
Ll = t,
El = null;
break
}
e: {
var o = e
, a = n.return
, l = n
, s = t;
if (t = Il,
l.flags |= 2048,
l.firstEffect = l.lastEffect = null,
null !== s && "object" == typeof s && "function" == typeof s.then) {
var c = s;
if (0 == (2 & l.mode)) {
var u = l.alternate;
u ? (l.updateQueue = u.updateQueue,
l.memoizedState = u.memoizedState,
l.lanes = u.lanes) : (l.updateQueue = null,
l.memoizedState = null)
}
var d = 0 != (1 & Ro.current)
, p = a;
do {
var h;
if (h = 13 === p.tag) {
var f = p.memoizedState;
if (null !== f)
h = null !== f.dehydrated;
else {
var b = p.memoizedProps;
h = void 0 !== b.fallback && (!0 !== b.unstable_avoidThisFallback || !d)
}
}
if (h) {
var g = p.updateQueue;
if (null === g) {
var m = new Set;
m.add(c),
p.updateQueue = m
} else
g.add(c);
if (0 == (2 & p.mode)) {
if (p.flags |= 64,
l.flags |= 16384,
l.flags &= -2981,
1 === l.tag)
if (null === l.alternate)
l.tag = 17;
else {
var v = co(-1, 1);
v.tag = 2,
uo(l, v)
}
l.lanes |= 1;
break e
}
s = void 0,
l = t;
var y = o.pingCache;
if (null === y ? (y = o.pingCache = new sl,
s = new Set,
y.set(c, s)) : void 0 === (s = y.get(c)) && (s = new Set,
y.set(c, s)),
!s.has(l)) {
s.add(l);
var x = Ps.bind(null, o, c, l);
c.then(x, x)
}
p.flags |= 4096,
p.lanes = t;
break e
}
p = p.return
} while (null !== p);
s = Error((G(l.type) || "A React component") + " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")
}
5 !== Dl && (Dl = 2),
s = al(s, l),
p = a;
do {
switch (p.tag) {
case 3:
o = s,
p.flags |= 4096,
t &= -t,
p.lanes |= t,
po(p, cl(0, o, t));
break e;
case 1:
o = s;
var O = p.type
, j = p.stateNode;
if (0 == (64 & p.flags) && ("function" == typeof O.getDerivedStateFromError || null !== j && "function" == typeof j.componentDidCatch && (null === Yl || !Yl.has(j)))) {
p.flags |= 4096,
t &= -t,
p.lanes |= t,
po(p, ul(p, o, t));
break e
}
}
p = p.return
} while (null !== p)
}
Ss(n)
} catch (e) {
t = e,
El === n && null !== n && (El = n = n.return);
continue
}
break
}
}
function ks() {
var e = Ml.current;
return Ml.current = Ea,
null === e ? Ea : e
}
function ws(e, t) {
var n = Al;
Al |= 16;
var r = ks();
for (Tl === e && Il === t || Os(e, t); ; )
try {
Cs();
break
} catch (t) {
js(e, t)
}
if (to(),
Al = n,
Ml.current = r,
null !== El)
throw Error(a(261));
return Tl = null,
Il = 0,
Dl
}
function Cs() {
for (; null !== El; )
Ms(El)
}
function _s() {
for (; null !== El && !Mi(); )
Ms(El)
}
function Ms(e) {
var t = Ul(e.alternate, e, Nl);
e.memoizedProps = e.pendingProps,
null === t ? Ss(e) : El = t,
Sl.current = null
}
function Ss(e) {
var t = e;
do {
var n = t.alternate;
if (e = t.return,
0 == (2048 & t.flags)) {
if (null !== (n = il(n, t, Nl)))
return void (El = n);
if (24 !== (n = t).tag && 23 !== n.tag || null === n.memoizedState || 0 != (1073741824 & Nl) || 0 == (4 & n.mode)) {
for (var r = 0, i = n.child; null !== i; )
r |= i.lanes | i.childLanes,
i = i.sibling;
n.childLanes = r
}
null !== e && 0 == (2048 & e.flags) && (null === e.firstEffect && (e.firstEffect = t.firstEffect),
null !== t.lastEffect && (null !== e.lastEffect && (e.lastEffect.nextEffect = t.firstEffect),
e.lastEffect = t.lastEffect),
1 < t.flags && (null !== e.lastEffect ? e.lastEffect.nextEffect = t : e.firstEffect = t,
e.lastEffect = t))
} else {
if (null !== (n = ol(t)))
return n.flags &= 2047,
void (El = n);
null !== e && (e.firstEffect = e.lastEffect = null,
e.flags |= 2048)
}
if (null !== (t = t.sibling))
return void (El = t);
El = t = e
} while (null !== t);
0 === Dl && (Dl = 5)
}
function As(e) {
var t = qi();
return Ui(99, Ts.bind(null, e, t)),
null
}
function Ts(e, t) {
do {
Is()
} while (null !== Jl);
if (0 != (48 & Al))
throw Error(a(327));
var n = e.finishedWork;
if (null === n)
return null;
if (e.finishedWork = null,
e.finishedLanes = 0,
n === e.current)
throw Error(a(177));
e.callbackNode = null;
var r = n.lanes | n.childLanes
, i = r
, o = e.pendingLanes & ~i;
e.pendingLanes = i,
e.suspendedLanes = 0,
e.pingedLanes = 0,
e.expiredLanes &= i,
e.mutableReadLanes &= i,
e.entangledLanes &= i,
i = e.entanglements;
for (var l = e.eventTimes, s = e.expirationTimes; 0 < o; ) {
var c = 31 - qt(o)
, u = 1 << c;
i[c] = 0,
l[c] = -1,
s[c] = -1,
o &= ~u
}
if (null !== ts && 0 == (24 & r) && ts.has(e) && ts.delete(e),
e === Tl && (El = Tl = null,
Il = 0),
1 < n.flags ? null !== n.lastEffect ? (n.lastEffect.nextEffect = n,
r = n.firstEffect) : r = n : r = n.firstEffect,
null !== r) {
if (i = Al,
Al |= 32,
Sl.current = null,
Fr = Kt,
gr(l = br())) {
if ("selectionStart"in l)
s = {
start: l.selectionStart,
end: l.selectionEnd
};
else
e: if (s = (s = l.ownerDocument) && s.defaultView || window,
(u = s.getSelection && s.getSelection()) && 0 !== u.rangeCount) {
s = u.anchorNode,
o = u.anchorOffset,
c = u.focusNode,
u = u.focusOffset;
try {
s.nodeType,
c.nodeType
} catch (e) {
s = null;
break e
}
var d = 0
, p = -1
, h = -1
, f = 0
, b = 0
, g = l
, m = null;
t: for (; ; ) {
for (var v; g !== s || 0 !== o && 3 !== g.nodeType || (p = d + o),
g !== c || 0 !== u && 3 !== g.nodeType || (h = d + u),
3 === g.nodeType && (d += g.nodeValue.length),
null !== (v = g.firstChild); )
m = g,
g = v;
for (; ; ) {
if (g === l)
break t;
if (m === s && ++f === o && (p = d),
m === c && ++b === u && (h = d),
null !== (v = g.nextSibling))
break;
m = (g = m).parentNode
}
g = v
}
s = -1 === p || -1 === h ? null : {
start: p,
end: h
}
} else
s = null;
s = s || {
start: 0,
end: 0
}
} else
s = null;
Vr = {
focusedElem: l,
selectionRange: s
},
Kt = !1,
ls = null,
ss = !1,
Xl = r;
do {
try {
Es()
} catch (e) {
if (null === Xl)
throw Error(a(330));
Rs(Xl, e),
Xl = Xl.nextEffect
}
} while (null !== Xl);
ls = null,
Xl = r;
do {
try {
for (l = e; null !== Xl; ) {
var y = Xl.flags;
if (16 & y && me(Xl.stateNode, ""),
128 & y) {
var x = Xl.alternate;
if (null !== x) {
var O = x.ref;
null !== O && ("function" == typeof O ? O(null) : O.current = null)
}
}
switch (1038 & y) {
case 2:
yl(Xl),
Xl.flags &= -3;
break;
case 6:
yl(Xl),
Xl.flags &= -3,
kl(Xl.alternate, Xl);
break;
case 1024:
Xl.flags &= -1025;
break;
case 1028:
Xl.flags &= -1025,
kl(Xl.alternate, Xl);
break;
case 4:
kl(Xl.alternate, Xl);
break;
case 8:
jl(l, s = Xl);
var j = s.alternate;
ml(s),
null !== j && ml(j)
}
Xl = Xl.nextEffect
}
} catch (e) {
if (null === Xl)
throw Error(a(330));
Rs(Xl, e),
Xl = Xl.nextEffect
}
} while (null !== Xl);
if (O = Vr,
x = br(),
y = O.focusedElem,
l = O.selectionRange,
x !== y && y && y.ownerDocument && fr(y.ownerDocument.documentElement, y)) {
null !== l && gr(y) && (x = l.start,
void 0 === (O = l.end) && (O = x),
"selectionStart"in y ? (y.selectionStart = x,
y.selectionEnd = Math.min(O, y.value.length)) : (O = (x = y.ownerDocument || document) && x.defaultView || window).getSelection && (O = O.getSelection(),
s = y.textContent.length,
j = Math.min(l.start, s),
l = void 0 === l.end ? j : Math.min(l.end, s),
!O.extend && j > l && (s = l,
l = j,
j = s),
s = hr(y, j),
o = hr(y, l),
s && o && (1 !== O.rangeCount || O.anchorNode !== s.node || O.anchorOffset !== s.offset || O.focusNode !== o.node || O.focusOffset !== o.offset) && ((x = x.createRange()).setStart(s.node, s.offset),
O.removeAllRanges(),
j > l ? (O.addRange(x),
O.extend(o.node, o.offset)) : (x.setEnd(o.node, o.offset),
O.addRange(x))))),
x = [];
for (O = y; O = O.parentNode; )
1 === O.nodeType && x.push({
element: O,
left: O.scrollLeft,
top: O.scrollTop
});
for ("function" == typeof y.focus && y.focus(),
y = 0; y < x.length; y++)
(O = x[y]).element.scrollLeft = O.left,
O.element.scrollTop = O.top
}
Kt = !!Fr,
Vr = Fr = null,
e.current = n,
Xl = r;
do {
try {
for (y = e; null !== Xl; ) {
var k = Xl.flags;
if (36 & k && fl(y, Xl.alternate, Xl),
128 & k) {
x = void 0;
var w = Xl.ref;
if (null !== w) {
var C = Xl.stateNode;
Xl.tag,
x = C,
"function" == typeof w ? w(x) : w.current = x
}
}
Xl = Xl.nextEffect
}
} catch (e) {
if (null === Xl)
throw Error(a(330));
Rs(Xl, e),
Xl = Xl.nextEffect
}
} while (null !== Xl);
Xl = null,
Ri(),
Al = i
} else
e.current = n;
if (Ql)
Ql = !1,
Jl = e,
Zl = t;
else
for (Xl = r; null !== Xl; )
t = Xl.nextEffect,
Xl.nextEffect = null,
8 & Xl.flags && ((k = Xl).sibling = null,
k.stateNode = null),
Xl = t;
if (0 === (r = e.pendingLanes) && (Yl = null),
1 === r ? e === rs ? ns++ : (ns = 0,
rs = e) : ns = 0,
n = n.stateNode,
ki && "function" == typeof ki.onCommitFiberRoot)
try {
ki.onCommitFiberRoot(ji, n, void 0, 64 == (64 & n.current.flags))
} catch (e) {}
if (hs(e, Wi()),
Gl)
throw Gl = !1,
e = Kl,
Kl = null,
e;
return 0 != (8 & Al) || Gi(),
null
}
function Es() {
for (; null !== Xl; ) {
var e = Xl.alternate;
ss || null === ls || (0 != (8 & Xl.flags) ? $e(Xl, ls) && (ss = !0) : 13 === Xl.tag && Cl(e, Xl) && $e(Xl, ls) && (ss = !0));
var t = Xl.flags;
0 != (256 & t) && hl(e, Xl),
0 == (512 & t) || Ql || (Ql = !0,
Xi(97, (function() {
return Is(),
null
}
))),
Xl = Xl.nextEffect
}
}
function Is() {
if (90 !== Zl) {
var e = 97 < Zl ? 97 : Zl;
return Zl = 90,
Ui(e, Ds)
}
return !1
}
function Ns(e, t) {
$l.push(t, e),
Ql || (Ql = !0,
Xi(97, (function() {
return Is(),
null
}
)))
}
function zs(e, t) {
es.push(t, e),
Ql || (Ql = !0,
Xi(97, (function() {
return Is(),
null
}
)))
}
function Ds() {
if (null === Jl)
return !1;
var e = Jl;
if (Jl = null,
0 != (48 & Al))
throw Error(a(331));
var t = Al;
Al |= 32;
var n = es;
es = [];
for (var r = 0; r < n.length; r += 2) {
var i = n[r]
, o = n[r + 1]
, l = i.destroy;
if (i.destroy = void 0,
"function" == typeof l)
try {
l()
} catch (e) {
if (null === o)
throw Error(a(330));
Rs(o, e)
}
}
for (n = $l,
$l = [],
r = 0; r < n.length; r += 2) {
i = n[r],
o = n[r + 1];
try {
var s = i.create;
i.destroy = s()
} catch (e) {
if (null === o)
throw Error(a(330));
Rs(o, e)
}
}
for (s = e.current.firstEffect; null !== s; )
e = s.nextEffect,
s.nextEffect = null,
8 & s.flags && (s.sibling = null,
s.stateNode = null),
s = e;
return Al = t,
Gi(),
!0
}
function Ls(e, t, n) {
uo(e, t = cl(0, t = al(n, t), 1)),
t = cs(),
null !== (e = ps(e, 1)) && (Wt(e, 1, t),
hs(e, t))
}
function Rs(e, t) {
if (3 === e.tag)
Ls(e, e, t);
else
for (var n = e.return; null !== n; ) {
if (3 === n.tag) {
Ls(n, e, t);
break
}
if (1 === n.tag) {
var r = n.stateNode;
if ("function" == typeof n.type.getDerivedStateFromError || "function" == typeof r.componentDidCatch && (null === Yl || !Yl.has(r))) {
var i = ul(n, e = al(t, e), 1);
if (uo(n, i),
i = cs(),
null !== (n = ps(n, 1)))
Wt(n, 1, i),
hs(n, i);
else if ("function" == typeof r.componentDidCatch && (null === Yl || !Yl.has(r)))
try {
r.componentDidCatch(t, e)
} catch (e) {}
break
}
}
n = n.return
}
}
function Ps(e, t, n) {
var r = e.pingCache;
null !== r && r.delete(t),
t = cs(),
e.pingedLanes |= e.suspendedLanes & n,
Tl === e && (Il & n) === n && (4 === Dl || 3 === Dl && (62914560 & Il) === Il && 500 > Wi() - Wl ? Os(e, 0) : Fl |= n),
hs(e, t)
}
function Bs(e, t) {
var n = e.stateNode;
null !== n && n.delete(t),
0 == (t = 0) && (0 == (2 & (t = e.mode)) ? t = 1 : 0 == (4 & t) ? t = 99 === qi() ? 1 : 2 : (0 === os && (os = Rl),
0 === (t = Ft(62914560 & ~os)) && (t = 4194304))),
n = cs(),
null !== (e = ps(e, t)) && (Wt(e, t, n),
hs(e, n))
}
function Fs(e, t, n, r) {
this.tag = e,
this.key = n,
this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null,
this.index = 0,
this.ref = null,
this.pendingProps = t,
this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null,
this.mode = r,
this.flags = 0,
this.lastEffect = this.firstEffect = this.nextEffect = null,
this.childLanes = this.lanes = 0,
this.alternate = null
}
function Vs(e, t, n, r) {
return new Fs(e,t,n,r)
}
function Ws(e) {
return !(!(e = e.prototype) || !e.isReactComponent)
}
function qs(e, t) {
var n = e.alternate;
return null === n ? ((n = Vs(e.tag, t, e.key, e.mode)).elementType = e.elementType,
n.type = e.type,
n.stateNode = e.stateNode,
n.alternate = e,
e.alternate = n) : (n.pendingProps = t,
n.type = e.type,
n.flags = 0,
n.nextEffect = null,
n.firstEffect = null,
n.lastEffect = null),
n.childLanes = e.childLanes,
n.lanes = e.lanes,
n.child = e.child,
n.memoizedProps = e.memoizedProps,
n.memoizedState = e.memoizedState,
n.updateQueue = e.updateQueue,
t = e.dependencies,
n.dependencies = null === t ? null : {
lanes: t.lanes,
firstContext: t.firstContext
},
n.sibling = e.sibling,
n.index = e.index,
n.ref = e.ref,
n
}
function Hs(e, t, n, r, i, o) {
var l = 2;
if (r = e,
"function" == typeof e)
Ws(e) && (l = 1);
else if ("string" == typeof e)
l = 5;
else
e: switch (e) {
case w:
return Us(n.children, i, o, t);
case L:
l = 8,
i |= 16;
break;
case C:
l = 8,
i |= 1;
break;
case _:
return (e = Vs(12, n, t, 8 | i)).elementType = _,
e.type = _,
e.lanes = o,
e;
case T:
return (e = Vs(13, n, t, i)).type = T,
e.elementType = T,
e.lanes = o,
e;
case E:
return (e = Vs(19, n, t, i)).elementType = E,
e.lanes = o,
e;
case R:
return Xs(n, i, o, t);
case P:
return (e = Vs(24, n, t, i)).elementType = P,
e.lanes = o,
e;
default:
if ("object" == typeof e && null !== e)
switch (e.$$typeof) {
case M:
l = 10;
break e;
case S:
l = 9;
break e;
case A:
l = 11;
break e;
case I:
l = 14;
break e;
case N:
l = 16,
r = null;
break e;
case z:
l = 22;
break e
}
throw Error(a(130, null == e ? e : typeof e, ""))
}
return (t = Vs(l, n, t, i)).elementType = e,
t.type = r,
t.lanes = o,
t
}
function Us(e, t, n, r) {
return (e = Vs(7, e, r, t)).lanes = n,
e
}
function Xs(e, t, n, r) {
return (e = Vs(23, e, r, t)).elementType = R,
e.lanes = n,
e
}
function Gs(e, t, n) {
return (e = Vs(6, e, null, t)).lanes = n,
e
}
function Ks(e, t, n) {
return (t = Vs(4, null !== e.children ? e.children : [], e.key, t)).lanes = n,
t.stateNode = {
containerInfo: e.containerInfo,
pendingChildren: null,
implementation: e.implementation
},
t
}
function Ys(e, t, n) {
this.tag = t,
this.containerInfo = e,
this.finishedWork = this.pingCache = this.current = this.pendingChildren = null,
this.timeoutHandle = -1,
this.pendingContext = this.context = null,
this.hydrate = n,
this.callbackNode = null,
this.callbackPriority = 0,
this.eventTimes = Vt(0),
this.expirationTimes = Vt(-1),
this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0,
this.entanglements = Vt(0),
this.mutableSourceEagerHydrationData = null
}
function Qs(e, t, n, r) {
var i = t.current
, o = cs()
, l = us(i);
e: if (n) {
t: {
if (Ye(n = n._reactInternals) !== n || 1 !== n.tag)
throw Error(a(170));
var s = n;
do {
switch (s.tag) {
case 3:
s = s.stateNode.context;
break t;
case 1:
if (gi(s.type)) {
s = s.stateNode.__reactInternalMemoizedMergedChildContext;
break t
}
}
s = s.return
} while (null !== s);
throw Error(a(171))
}
if (1 === n.tag) {
var c = n.type;
if (gi(c)) {
n = yi(n, c, s);
break e
}
}
n = s
} else
n = di;
return null === t.context ? t.context = n : t.pendingContext = n,
(t = co(o, l)).payload = {
element: e
},
null !== (r = void 0 === r ? null : r) && (t.callback = r),
uo(i, t),
ds(i, l, o),
l
}
function Js(e) {
return (e = e.current).child ? (e.child.tag,
e.child.stateNode) : null
}
function Zs(e, t) {
if (null !== (e = e.memoizedState) && null !== e.dehydrated) {
var n = e.retryLane;
e.retryLane = 0 !== n && n < t ? n : t
}
}
function $s(e, t) {
Zs(e, t),
(e = e.alternate) && Zs(e, t)
}
function ec(e, t, n) {
var r = null != n && null != n.hydrationOptions && n.hydrationOptions.mutableSources || null;
if (n = new Ys(e,t,null != n && !0 === n.hydrate),
t = Vs(3, null, null, 2 === t ? 7 : 1 === t ? 3 : 0),
n.current = t,
t.stateNode = n,
lo(t),
e[$r] = n.current,
Er(8 === e.nodeType ? e.parentNode : e),
r)
for (e = 0; e < r.length; e++) {
var i = (t = r[e])._getVersion;
i = i(t._source),
null == n.mutableSourceEagerHydrationData ? n.mutableSourceEagerHydrationData = [t, i] : n.mutableSourceEagerHydrationData.push(t, i)
}
this._internalRoot = n
}
function tc(e) {
return !(!e || 1 !== e.nodeType && 9 !== e.nodeType && 11 !== e.nodeType && (8 !== e.nodeType || " react-mount-point-unstable " !== e.nodeValue))
}
function nc(e, t, n, r, i) {
var o = n._reactRootContainer;
if (o) {
var a = o._internalRoot;
if ("function" == typeof i) {
var l = i;
i = function() {
var e = Js(a);
l.call(e)
}
}
Qs(t, a, e, i)
} else {
if (o = n._reactRootContainer = function(e, t) {
if (t || (t = !(!(t = e ? 9 === e.nodeType ? e.documentElement : e.firstChild : null) || 1 !== t.nodeType || !t.hasAttribute("data-reactroot"))),
!t)
for (var n; n = e.lastChild; )
e.removeChild(n);
return new ec(e,0,t ? {
hydrate: !0
} : void 0)
}(n, r),
a = o._internalRoot,
"function" == typeof i) {
var s = i;
i = function() {
var e = Js(a);
s.call(e)
}
}
vs((function() {
Qs(t, a, e, i)
}
))
}
return Js(a)
}
function rc(e, t) {
var n = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
if (!tc(t))
throw Error(a(200));
return function(e, t, n) {
var r = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
return {
$$typeof: k,
key: null == r ? null : "" + r,
children: e,
containerInfo: t,
implementation: n
}
}(e, t, null, n)
}
Ul = function(e, t, n) {
var r = t.lanes;
if (null !== e)
if (e.memoizedProps !== t.pendingProps || hi.current)
La = !0;
else {
if (0 == (n & r)) {
switch (La = !1,
t.tag) {
case 3:
Xa(t),
Go();
break;
case 5:
Do(t);
break;
case 1:
gi(t.type) && xi(t);
break;
case 4:
No(t, t.stateNode.containerInfo);
break;
case 10:
r = t.memoizedProps.value;
var i = t.type._context;
ui(Ji, i._currentValue),
i._currentValue = r;
break;
case 13:
if (null !== t.memoizedState)
return 0 != (n & t.child.childLanes) ? Ja(e, t, n) : (ui(Ro, 1 & Ro.current),
null !== (t = nl(e, t, n)) ? t.sibling : null);
ui(Ro, 1 & Ro.current);
break;
case 19:
if (r = 0 != (n & t.childLanes),
0 != (64 & e.flags)) {
if (r)
return tl(e, t, n);
t.flags |= 64
}
if (null !== (i = t.memoizedState) && (i.rendering = null,
i.tail = null,
i.lastEffect = null),
ui(Ro, Ro.current),
r)
break;
return null;
case 23:
case 24:
return t.lanes = 0,
Va(e, t, n)
}
return nl(e, t, n)
}
La = 0 != (16384 & e.flags)
}
else
La = !1;
switch (t.lanes = 0,
t.tag) {
case 2:
if (r = t.type,
null !== e && (e.alternate = null,
t.alternate = null,
t.flags |= 2),
e = t.pendingProps,
i = bi(t, pi.current),
io(t, n),
i = aa(null, t, r, e, i, n),
t.flags |= 1,
"object" == typeof i && null !== i && "function" == typeof i.render && void 0 === i.$$typeof) {
if (t.tag = 1,
t.memoizedState = null,
t.updateQueue = null,
gi(r)) {
var o = !0;
xi(t)
} else
o = !1;
t.memoizedState = null !== i.state && void 0 !== i.state ? i.state : null,
lo(t);
var l = r.getDerivedStateFromProps;
"function" == typeof l && go(t, r, l, e),
i.updater = mo,
t.stateNode = i,
i._reactInternals = t,
Oo(t, r, e, n),
t = Ua(null, t, r, !0, o, n)
} else
t.tag = 0,
Ra(null, t, i, n),
t = t.child;
return t;
case 16:
i = t.elementType;
e: {
switch (null !== e && (e.alternate = null,
t.alternate = null,
t.flags |= 2),
e = t.pendingProps,
i = (o = i._init)(i._payload),
t.type = i,
o = t.tag = function(e) {
if ("function" == typeof e)
return Ws(e) ? 1 : 0;
if (null != e) {
if ((e = e.$$typeof) === A)
return 11;
if (e === I)
return 14
}
return 2
}(i),
e = Qi(i, e),
o) {
case 0:
t = qa(null, t, i, e, n);
break e;
case 1:
t = Ha(null, t, i, e, n);
break e;
case 11:
t = Pa(null, t, i, e, n);
break e;
case 14:
t = Ba(null, t, i, Qi(i.type, e), r, n);
break e
}
throw Error(a(306, i, ""))
}
return t;
case 0:
return r = t.type,
i = t.pendingProps,
qa(e, t, r, i = t.elementType === r ? i : Qi(r, i), n);
case 1:
return r = t.type,
i = t.pendingProps,
Ha(e, t, r, i = t.elementType === r ? i : Qi(r, i), n);
case 3:
if (Xa(t),
r = t.updateQueue,
null === e || null === r)
throw Error(a(282));
if (r = t.pendingProps,
i = null !== (i = t.memoizedState) ? i.element : null,
so(e, t),
ho(t, r, null, n),
(r = t.memoizedState.element) === i)
Go(),
t = nl(e, t, n);
else {
if ((o = (i = t.stateNode).hydrate) && (Fo = Gr(t.stateNode.containerInfo.firstChild),
Bo = t,
o = Vo = !0),
o) {
if (null != (e = i.mutableSourceEagerHydrationData))
for (i = 0; i < e.length; i += 2)
(o = e[i])._workInProgressVersionPrimary = e[i + 1],
Ko.push(o);
for (n = Mo(t, null, r, n),
t.child = n; n; )
n.flags = -3 & n.flags | 1024,
n = n.sibling
} else
Ra(e, t, r, n),
Go();
t = t.child
}
return t;
case 5:
return Do(t),
null === e && Ho(t),
r = t.type,
i = t.pendingProps,
o = null !== e ? e.memoizedProps : null,
l = i.children,
qr(r, i) ? l = null : null !== o && qr(r, o) && (t.flags |= 16),
Wa(e, t),
Ra(e, t, l, n),
t.child;
case 6:
return null === e && Ho(t),
null;
case 13:
return Ja(e, t, n);
case 4:
return No(t, t.stateNode.containerInfo),
r = t.pendingProps,
null === e ? t.child = _o(t, null, r, n) : Ra(e, t, r, n),
t.child;
case 11:
return r = t.type,
i = t.pendingProps,
Pa(e, t, r, i = t.elementType === r ? i : Qi(r, i), n);
case 7:
return Ra(e, t, t.pendingProps, n),
t.child;
case 8:
case 12:
return Ra(e, t, t.pendingProps.children, n),
t.child;
case 10:
e: {
r = t.type._context,
i = t.pendingProps,
l = t.memoizedProps,
o = i.value;
var s = t.type._context;
if (ui(Ji, s._currentValue),
s._currentValue = o,
null !== l)
if (s = l.value,
0 == (o = cr(s, o) ? 0 : 0 | ("function" == typeof r._calculateChangedBits ? r._calculateChangedBits(s, o) : 1073741823))) {
if (l.children === i.children && !hi.current) {
t = nl(e, t, n);
break e
}
} else
for (null !== (s = t.child) && (s.return = t); null !== s; ) {
var c = s.dependencies;
if (null !== c) {
l = s.child;
for (var u = c.firstContext; null !== u; ) {
if (u.context === r && 0 != (u.observedBits & o)) {
1 === s.tag && ((u = co(-1, n & -n)).tag = 2,
uo(s, u)),
s.lanes |= n,
null !== (u = s.alternate) && (u.lanes |= n),
ro(s.return, n),
c.lanes |= n;
break
}
u = u.next
}
} else
l = 10 === s.tag && s.type === t.type ? null : s.child;
if (null !== l)
l.return = s;
else
for (l = s; null !== l; ) {
if (l === t) {
l = null;
break
}
if (null !== (s = l.sibling)) {
s.return = l.return,
l = s;
break
}
l = l.return
}
s = l
}
Ra(e, t, i.children, n),
t = t.child
}
return t;
case 9:
return i = t.type,
r = (o = t.pendingProps).children,
io(t, n),
r = r(i = oo(i, o.unstable_observedBits)),
t.flags |= 1,
Ra(e, t, r, n),
t.child;
case 14:
return o = Qi(i = t.type, t.pendingProps),
Ba(e, t, i, o = Qi(i.type, o), r, n);
case 15:
return Fa(e, t, t.type, t.pendingProps, r, n);
case 17:
return r = t.type,
i = t.pendingProps,
i = t.elementType === r ? i : Qi(r, i),
null !== e && (e.alternate = null,
t.alternate = null,
t.flags |= 2),
t.tag = 1,
gi(r) ? (e = !0,
xi(t)) : e = !1,
io(t, n),
yo(t, r, i),
Oo(t, r, i, n),
Ua(null, t, r, !0, e, n);
case 19:
return tl(e, t, n);
case 23:
case 24:
return Va(e, t, n)
}
throw Error(a(156, t.tag))
}
,
ec.prototype.render = function(e) {
Qs(e, this._internalRoot, null, null)
}
,
ec.prototype.unmount = function() {
var e = this._internalRoot
, t = e.containerInfo;
Qs(null, e, null, (function() {
t[$r] = null
}
))
}
,
et = function(e) {
13 === e.tag && (ds(e, 4, cs()),
$s(e, 4))
}
,
tt = function(e) {
13 === e.tag && (ds(e, 67108864, cs()),
$s(e, 67108864))
}
,
nt = function(e) {
if (13 === e.tag) {
var t = cs()
, n = us(e);
ds(e, n, t),
$s(e, n)
}
}
,
rt = function(e, t) {
return t()
}
,
_e = function(e, t, n) {
switch (t) {
case "input":
if (ne(e, n),
t = n.name,
"radio" === n.type && null != t) {
for (n = e; n.parentNode; )
n = n.parentNode;
for (n = n.querySelectorAll("input[name=" + JSON.stringify("" + t) + '][type="radio"]'),
t = 0; t < n.length; t++) {
var r = n[t];
if (r !== e && r.form === e.form) {
var i = ii(r);
if (!i)
throw Error(a(90));
J(r),
ne(r, i)
}
}
}
break;
case "textarea":
ce(e, n);
break;
case "select":
null != (t = n.value) && ae(e, !!n.multiple, t, !1)
}
}
,
Ie = ms,
Ne = function(e, t, n, r, i) {
var o = Al;
Al |= 4;
try {
return Ui(98, e.bind(null, t, n, r, i))
} finally {
0 === (Al = o) && (Hl(),
Gi())
}
}
,
ze = function() {
0 == (49 & Al) && (function() {
if (null !== ts) {
var e = ts;
ts = null,
e.forEach((function(e) {
e.expiredLanes |= 24 & e.pendingLanes,
hs(e, Wi())
}
))
}
Gi()
}(),
Is())
}
,
De = function(e, t) {
var n = Al;
Al |= 2;
try {
return e(t)
} finally {
0 === (Al = n) && (Hl(),
Gi())
}
}
;
var ic = {
Events: [ni, ri, ii, Te, Ee, Is, {
current: !1
}]
}
, oc = {
findFiberByHostInstance: ti,
bundleType: 0,
version: "17.0.2",
rendererPackageName: "react-dom"
}
, ac = {
bundleType: oc.bundleType,
version: oc.version,
rendererPackageName: oc.rendererPackageName,
rendererConfig: oc.rendererConfig,
overrideHookState: null,
overrideHookStateDeletePath: null,
overrideHookStateRenamePath: null,
overrideProps: null,
overridePropsDeletePath: null,
overridePropsRenamePath: null,
setSuspenseHandler: null,
scheduleUpdate: null,
currentDispatcherRef: O.ReactCurrentDispatcher,
findHostInstanceByFiber: function(e) {
return null === (e = Ze(e)) ? null : e.stateNode
},
findFiberByHostInstance: oc.findFiberByHostInstance || function() {
return null
}
,
findHostInstancesForRefresh: null,
scheduleRefresh: null,
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null
};
if ("undefined" != typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var lc = __REACT_DEVTOOLS_GLOBAL_HOOK__;
if (!lc.isDisabled && lc.supportsFiber)
try {
ji = lc.inject(ac),
ki = lc
} catch (be) {}
}
t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ic,
t.createPortal = rc,
t.findDOMNode = function(e) {
if (null == e)
return null;
if (1 === e.nodeType)
return e;
var t = e._reactInternals;
if (void 0 === t) {
if ("function" == typeof e.render)
throw Error(a(188));
throw Error(a(268, Object.keys(e)))
}
return null === (e = Ze(t)) ? null : e.stateNode
}
,
t.flushSync = function(e, t) {
var n = Al;
if (0 != (48 & n))
return e(t);
Al |= 1;
try {
if (e)
return Ui(99, e.bind(null, t))
} finally {
Al = n,
Gi()
}
}
,
t.hydrate = function(e, t, n) {
if (!tc(t))
throw Error(a(200));
return nc(null, e, t, !0, n)
}
,
t.render = function(e, t, n) {
if (!tc(t))
throw Error(a(200));
return nc(null, e, t, !1, n)
}
,
t.unmountComponentAtNode = function(e) {
if (!tc(e))
throw Error(a(40));
return !!e._reactRootContainer && (vs((function() {
nc(null, null, e, !1, (function() {
e._reactRootContainer = null,
e[$r] = null
}
))
}
)),
!0)
}
,
t.unstable_batchedUpdates = ms,
t.unstable_createPortal = function(e, t) {
return rc(e, t, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null)
}
,
t.unstable_renderSubtreeIntoContainer = function(e, t, n, r) {
if (!tc(n))
throw Error(a(200));
if (null == e || void 0 === e._reactInternals)
throw Error(a(38));
return nc(e, t, n, !1, r)
}
,
t.version = "17.0.2"
}
, function(e, t, n) {
"use strict";
e.exports = n(357)
}
, function(e, t, n) {
"use strict";
var r, i, o, a;
if ("object" == typeof performance && "function" == typeof performance.now) {
var l = performance;
t.unstable_now = function() {
return l.now()
}
} else {
var s = Date
, c = s.now();
t.unstable_now = function() {
return s.now() - c
}
}
if ("undefined" == typeof window || "function" != typeof MessageChannel) {
var u = null
, d = null
, p = function e() {
if (null !== u)
try {
var n = t.unstable_now();
u(!0, n),
u = null
} catch (t) {
throw setTimeout(e, 0),
t
}
};
r = function(e) {
null !== u ? setTimeout(r, 0, e) : (u = e,
setTimeout(p, 0))
}
,
i = function(e, t) {
d = setTimeout(e, t)
}
,
o = function() {
clearTimeout(d)
}
,
t.unstable_shouldYield = function() {
return !1
}
,
a = t.unstable_forceFrameRate = function() {}
} else {
var h = window.setTimeout
, f = window.clearTimeout;
if ("undefined" != typeof console) {
var b = window.cancelAnimationFrame;
"function" != typeof window.requestAnimationFrame && console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),
"function" != typeof b && console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")
}
var g = !1
, m = null
, v = -1
, y = 5
, x = 0;
t.unstable_shouldYield = function() {
return t.unstable_now() >= x
}
,
a = function() {}
,
t.unstable_forceFrameRate = function(e) {
0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : y = 0 < e ? Math.floor(1e3 / e) : 5
}
;
var O = new MessageChannel
, j = O.port2;
O.port1.onmessage = function() {
if (null !== m) {
var e = t.unstable_now();
x = e + y;
try {
m(!0, e) ? j.postMessage(null) : (g = !1,
m = null)
} catch (e) {
throw j.postMessage(null),
e
}
} else
g = !1
}
,
r = function(e) {
m = e,
g || (g = !0,
j.postMessage(null))
}
,
i = function(e, n) {
v = h((function() {
e(t.unstable_now())
}
), n)
}
,
o = function() {
f(v),
v = -1
}
}
function k(e, t) {
var n = e.length;
e.push(t);
e: for (; ; ) {
var r = n - 1 >>> 1
, i = e[r];
if (!(void 0 !== i && 0 < _(i, t)))
break e;
e[r] = t,
e[n] = i,
n = r
}
}
function w(e) {
return void 0 === (e = e[0]) ? null : e
}
function C(e) {
var t = e[0];
if (void 0 !== t) {
var n = e.pop();
if (n !== t) {
e[0] = n;
e: for (var r = 0, i = e.length; r < i; ) {
var o = 2 * (r + 1) - 1
, a = e[o]
, l = o + 1
, s = e[l];
if (void 0 !== a && 0 > _(a, n))
void 0 !== s && 0 > _(s, a) ? (e[r] = s,
e[l] = n,
r = l) : (e[r] = a,
e[o] = n,
r = o);
else {
if (!(void 0 !== s && 0 > _(s, n)))
break e;
e[r] = s,
e[l] = n,
r = l
}
}
}
return t
}
return null
}
function _(e, t) {
var n = e.sortIndex - t.sortIndex;
return 0 !== n ? n : e.id - t.id
}
var M = []
, S = []
, A = 1
, T = null
, E = 3
, I = !1
, N = !1
, z = !1;
function D(e) {
for (var t = w(S); null !== t; ) {
if (null === t.callback)
C(S);
else {
if (!(t.startTime <= e))
break;
C(S),
t.sortIndex = t.expirationTime,
k(M, t)
}
t = w(S)
}
}
function L(e) {
if (z = !1,
D(e),
!N)
if (null !== w(M))
N = !0,
r(R);
else {
var t = w(S);
null !== t && i(L, t.startTime - e)
}
}
function R(e, n) {
N = !1,
z && (z = !1,
o()),
I = !0;
var r = E;
try {
for (D(n),
T = w(M); null !== T && (!(T.expirationTime > n) || e && !t.unstable_shouldYield()); ) {
var a = T.callback;
if ("function" == typeof a) {
T.callback = null,
E = T.priorityLevel;
var l = a(T.expirationTime <= n);
n = t.unstable_now(),
"function" == typeof l ? T.callback = l : T === w(M) && C(M),
D(n)
} else
C(M);
T = w(M)
}
if (null !== T)
var s = !0;
else {
var c = w(S);
null !== c && i(L, c.startTime - n),
s = !1
}
return s
} finally {
T = null,
E = r,
I = !1
}
}
var P = a;
t.unstable_IdlePriority = 5,
t.unstable_ImmediatePriority = 1,
t.unstable_LowPriority = 4,
t.unstable_NormalPriority = 3,
t.unstable_Profiling = null,
t.unstable_UserBlockingPriority = 2,
t.unstable_cancelCallback = function(e) {
e.callback = null
}
,
t.unstable_continueExecution = function() {
N || I || (N = !0,
r(R))
}
,
t.unstable_getCurrentPriorityLevel = function() {
return E
}
,
t.unstable_getFirstCallbackNode = function() {
return w(M)
}
,
t.unstable_next = function(e) {
switch (E) {
case 1:
case 2:
case 3:
var t = 3;
break;
default:
t = E
}
var n = E;
E = t;
try {
return e()
} finally {
E = n
}
}
,
t.unstable_pauseExecution = function() {}
,
t.unstable_requestPaint = P,
t.unstable_runWithPriority = function(e, t) {
switch (e) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
e = 3
}
var n = E;
E = e;
try {
return t()
} finally {
E = n
}
}
,
t.unstable_scheduleCallback = function(e, n, a) {
var l = t.unstable_now();
switch (a = "object" == typeof a && null !== a && "number" == typeof (a = a.delay) && 0 < a ? l + a : l,
e) {
case 1:
var s = -1;
break;
case 2:
s = 250;
break;
case 5:
s = 1073741823;
break;
case 4:
s = 1e4;
break;
default:
s = 5e3
}
return e = {
id: A++,
callback: n,
priorityLevel: e,
startTime: a,
expirationTime: s = a + s,
sortIndex: -1
},
a > l ? (e.sortIndex = a,
k(S, e),
null === w(M) && e === w(S) && (z ? o() : z = !0,
i(L, a - l))) : (e.sortIndex = s,
k(M, e),
N || I || (N = !0,
r(R))),
e
}
,
t.unstable_wrapCallback = function(e) {
var t = E;
return function() {
var n = E;
E = t;
try {
return e.apply(this, arguments)
} finally {
E = n
}
}
}
}
, function(e, t, n) {
var r = function(e) {
"use strict";
var t, n = Object.prototype, r = n.hasOwnProperty, i = "function" == typeof Symbol ? Symbol : {}, o = i.iterator || "@@iterator", a = i.asyncIterator || "@@asyncIterator", l = i.toStringTag || "@@toStringTag";
function s(e, t, n) {
return Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}),
e[t]
}
try {
s({}, "")
} catch (e) {
s = function(e, t, n) {
return e[t] = n
}
}
function c(e, t, n, r) {
var i = t && t.prototype instanceof g ? t : g
, o = Object.create(i.prototype)
, a = new S(r || []);
return o._invoke = function(e, t, n) {
var r = d;
return function(i, o) {
if (r === h)
throw new Error("Generator is already running");
if (r === f) {
if ("throw" === i)
throw o;
return T()
}
for (n.method = i,
n.arg = o; ; ) {
var a = n.delegate;
if (a) {
var l = C(a, n);
if (l) {
if (l === b)
continue;
return l
}
}
if ("next" === n.method)
n.sent = n._sent = n.arg;
else if ("throw" === n.method) {
if (r === d)
throw r = f,
n.arg;
n.dispatchException(n.arg)
} else
"return" === n.method && n.abrupt("return", n.arg);
r = h;
var s = u(e, t, n);
if ("normal" === s.type) {
if (r = n.done ? f : p,
s.arg === b)
continue;
return {
value: s.arg,
done: n.done
}
}
"throw" === s.type && (r = f,
n.method = "throw",
n.arg = s.arg)
}
}
}(e, n, a),
o
}
function u(e, t, n) {
try {
return {
type: "normal",
arg: e.call(t, n)
}
} catch (e) {
return {
type: "throw",
arg: e
}
}
}
e.wrap = c;
var d = "suspendedStart"
, p = "suspendedYield"
, h = "executing"
, f = "completed"
, b = {};
function g() {}
function m() {}
function v() {}
var y = {};
s(y, o, (function() {
return this
}
));
var x = Object.getPrototypeOf
, O = x && x(x(A([])));
O && O !== n && r.call(O, o) && (y = O);
var j = v.prototype = g.prototype = Object.create(y);
function k(e) {
["next", "throw", "return"].forEach((function(t) {
s(e, t, (function(e) {
return this._invoke(t, e)
}
))
}
))
}
function w(e, t) {
function n(i, o, a, l) {
var s = u(e[i], e, o);
if ("throw" !== s.type) {
var c = s.arg
, d = c.value;
return d && "object" == typeof d && r.call(d, "__await") ? t.resolve(d.__await).then((function(e) {
n("next", e, a, l)
}
), (function(e) {
n("throw", e, a, l)
}
)) : t.resolve(d).then((function(e) {
c.value = e,
a(c)
}
), (function(e) {
return n("throw", e, a, l)
}
))
}
l(s.arg)
}
var i;
this._invoke = function(e, r) {
function o() {
return new t((function(t, i) {
n(e, r, t, i)
}
))
}
return i = i ? i.then(o, o) : o()
}
}
function C(e, n) {
var r = e.iterator[n.method];
if (r === t) {
if (n.delegate = null,
"throw" === n.method) {
if (e.iterator.return && (n.method = "return",
n.arg = t,
C(e, n),
"throw" === n.method))
return b;
n.method = "throw",
n.arg = new TypeError("The iterator does not provide a 'throw' method")
}
return b
}
var i = u(r, e.iterator, n.arg);
if ("throw" === i.type)
return n.method = "throw",
n.arg = i.arg,
n.delegate = null,
b;
var o = i.arg;
return o ? o.done ? (n[e.resultName] = o.value,
n.next = e.nextLoc,
"return" !== n.method && (n.method = "next",
n.arg = t),
n.delegate = null,
b) : o : (n.method = "throw",
n.arg = new TypeError("iterator result is not an object"),
n.delegate = null,
b)
}
function _(e) {
var t = {
tryLoc: e[0]
};
1 in e && (t.catchLoc = e[1]),
2 in e && (t.finallyLoc = e[2],
t.afterLoc = e[3]),
this.tryEntries.push(t)
}
function M(e) {
var t = e.completion || {};
t.type = "normal",
delete t.arg,
e.completion = t
}
function S(e) {
this.tryEntries = [{
tryLoc: "root"
}],
e.forEach(_, this),
this.reset(!0)
}
function A(e) {
if (e) {
var n = e[o];
if (n)
return n.call(e);
if ("function" == typeof e.next)
return e;
if (!isNaN(e.length)) {
var i = -1
, a = function n() {
for (; ++i < e.length; )
if (r.call(e, i))
return n.value = e[i],
n.done = !1,
n;
return n.value = t,
n.done = !0,
n
};
return a.next = a
}
}
return {
next: T
}
}
function T() {
return {
value: t,
done: !0
}
}
return m.prototype = v,
s(j, "constructor", v),
s(v, "constructor", m),
m.displayName = s(v, l, "GeneratorFunction"),
e.isGeneratorFunction = function(e) {
var t = "function" == typeof e && e.constructor;
return !!t && (t === m || "GeneratorFunction" === (t.displayName || t.name))
}
,
e.mark = function(e) {
return Object.setPrototypeOf ? Object.setPrototypeOf(e, v) : (e.__proto__ = v,
s(e, l, "GeneratorFunction")),
e.prototype = Object.create(j),
e
}
,
e.awrap = function(e) {
return {
__await: e
}
}
,
k(w.prototype),
s(w.prototype, a, (function() {
return this
}
)),
e.AsyncIterator = w,
e.async = function(t, n, r, i, o) {
void 0 === o && (o = Promise);
var a = new w(c(t, n, r, i),o);
return e.isGeneratorFunction(n) ? a : a.next().then((function(e) {
return e.done ? e.value : a.next()
}
))
}
,
k(j),
s(j, l, "Generator"),
s(j, o, (function() {
return this
}
)),
s(j, "toString", (function() {
return "[object Generator]"
}
)),
e.keys = function(e) {
var t = [];
for (var n in e)
t.push(n);
return t.reverse(),
function n() {
for (; t.length; ) {
var r = t.pop();
if (r in e)
return n.value = r,
n.done = !1,
n
}
return n.done = !0,
n
}
}
,
e.values = A,
S.prototype = {
constructor: S,
reset: function(e) {
if (this.prev = 0,
this.next = 0,
this.sent = this._sent = t,
this.done = !1,
this.delegate = null,
this.method = "next",
this.arg = t,
this.tryEntries.forEach(M),
!e)
for (var n in this)
"t" === n.charAt(0) && r.call(this, n) && !isNaN(+n.slice(1)) && (this[n] = t)
},
stop: function() {
this.done = !0;
var e = this.tryEntries[0].completion;
if ("throw" === e.type)
throw e.arg;
return this.rval
},
dispatchException: function(e) {
if (this.done)
throw e;
var n = this;
function i(r, i) {
return l.type = "throw",
l.arg = e,
n.next = r,
i && (n.method = "next",
n.arg = t),
!!i
}
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
var a = this.tryEntries[o]
, l = a.completion;
if ("root" === a.tryLoc)
return i("end");
if (a.tryLoc <= this.prev) {
var s = r.call(a, "catchLoc")
, c = r.call(a, "finallyLoc");
if (s && c) {
if (this.prev < a.catchLoc)
return i(a.catchLoc, !0);
if (this.prev < a.finallyLoc)
return i(a.finallyLoc)
} else if (s) {
if (this.prev < a.catchLoc)
return i(a.catchLoc, !0)
} else {
if (!c)
throw new Error("try statement without catch or finally");
if (this.prev < a.finallyLoc)
return i(a.finallyLoc)
}
}
}
},
abrupt: function(e, t) {
for (var n = this.tryEntries.length - 1; n >= 0; --n) {
var i = this.tryEntries[n];
if (i.tryLoc <= this.prev && r.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
var o = i;
break
}
}
o && ("break" === e || "continue" === e) && o.tryLoc <= t && t <= o.finallyLoc && (o = null);
var a = o ? o.completion : {};
return a.type = e,
a.arg = t,
o ? (this.method = "next",
this.next = o.finallyLoc,
b) : this.complete(a)
},
complete: function(e, t) {
if ("throw" === e.type)
throw e.arg;
return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg,
this.method = "return",
this.next = "end") : "normal" === e.type && t && (this.next = t),
b
},
finish: function(e) {
for (var t = this.tryEntries.length - 1; t >= 0; --t) {
var n = this.tryEntries[t];
if (n.finallyLoc === e)
return this.complete(n.completion, n.afterLoc),
M(n),
b
}
},
catch: function(e) {
for (var t = this.tryEntries.length - 1; t >= 0; --t) {
var n = this.tryEntries[t];
if (n.tryLoc === e) {
var r = n.completion;
if ("throw" === r.type) {
var i = r.arg;
M(n)
}
return i
}
}
throw new Error("illegal catch attempt")
},
delegateYield: function(e, n, r) {
return this.delegate = {
iterator: A(e),
resultName: n,
nextLoc: r
},
"next" === this.method && (this.arg = t),
b
}
},
e
}(e.exports);
try {
regeneratorRuntime = r
} catch (e) {
"object" == typeof globalThis ? globalThis.regeneratorRuntime = r : Function("r", "regeneratorRuntime = r")(r)
}
}
, function(e, t, n) {
var r = n(107)
, i = Object.prototype
, o = i.hasOwnProperty
, a = i.toString
, l = r ? r.toStringTag : void 0;
e.exports = function(e) {
var t = o.call(e, l)
, n = e[l];
try {
e[l] = void 0;
var r = !0
} catch (e) {}
var i = a.call(e);
return r && (t ? e[l] = n : delete e[l]),
i
}
}
, function(e, t) {
var n = Object.prototype.toString;
e.exports = function(e) {
return n.call(e)
}
}
, function(e, t, n) {
var r = n(362)
, i = n(119)
, o = n(146)
, a = o && o.isRegExp
, l = a ? i(a) : r;
e.exports = l
}
, function(e, t, n) {
var r = n(74)
, i = n(64);
e.exports = function(e) {
return i(e) && "[object RegExp]" == r(e)
}
}
, function(e, t) {
e.exports = function(e) {
return e.split("")
}
}
, function(e, t) {
var n = "[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]"
, r = "\\ud83c[\\udffb-\\udfff]"
, i = "[^\\ud800-\\udfff]"
, o = "(?:\\ud83c[\\udde6-\\uddff]){2}"
, a = "[\\ud800-\\udbff][\\udc00-\\udfff]"
, l = "(?:" + n + "|" + r + ")?"
, s = "[\\ufe0e\\ufe0f]?"
, c = s + l + "(?:\\u200d(?:" + [i, o, a].join("|") + ")" + s + l + ")*"
, u = "(?:" + [i + n + "?", n, o, a, "[\\ud800-\\udfff]"].join("|") + ")"
, d = RegExp(r + "(?=" + r + ")|" + u + c, "g");
e.exports = function(e) {
return e.match(d) || []
}
}
, function(e, t, n) {
var r = n(234)(Object.keys, Object);
e.exports = r
}
, function(e, t, n) {
var r = n(95)(n(70), "DataView");
e.exports = r
}
, function(e, t, n) {
var r = n(192)
, i = n(368)
, o = n(30)
, a = n(235)
, l = /^\[object .+?Constructor\]$/
, s = Function.prototype
, c = Object.prototype
, u = s.toString
, d = c.hasOwnProperty
, p = RegExp("^" + u.call(d).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
e.exports = function(e) {
return !(!o(e) || i(e)) && (r(e) ? p : l).test(a(e))
}
}
, function(e, t, n) {
var r = n(369)
, i = function() {
var e = /[^.]+$/.exec(r && r.keys && r.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : ""
}();
e.exports = function(e) {
return !!i && i in e
}
}
, function(e, t, n) {
var r = n(70)["__core-js_shared__"];
e.exports = r
}
, function(e, t) {
e.exports = function(e, t) {
return null == e ? void 0 : e[t]
}
}
, function(e, t, n) {
var r = n(95)(n(70), "Promise");
e.exports = r
}
, function(e, t, n) {
var r = n(95)(n(70), "WeakMap");
e.exports = r
}
, function(e, t, n) {
var r = n(74)
, i = n(64);
e.exports = function(e) {
return i(e) && "[object Arguments]" == r(e)
}
}
, function(e, t) {
e.exports = function() {
return !1
}
}
, function(e, t, n) {
var r = n(74)
, i = n(193)
, o = n(64)
, a = {};
a["[object Float32Array]"] = a["[object Float64Array]"] = a["[object Int8Array]"] = a["[object Int16Array]"] = a["[object Int32Array]"] = a["[object Uint8Array]"] = a["[object Uint8ClampedArray]"] = a["[object Uint16Array]"] = a["[object Uint32Array]"] = !0,
a["[object Arguments]"] = a["[object Array]"] = a["[object ArrayBuffer]"] = a["[object Boolean]"] = a["[object DataView]"] = a["[object Date]"] = a["[object Error]"] = a["[object Function]"] = a["[object Map]"] = a["[object Number]"] = a["[object Object]"] = a["[object RegExp]"] = a["[object Set]"] = a["[object String]"] = a["[object WeakMap]"] = !1,
e.exports = function(e) {
return o(e) && i(e.length) && !!a[r(e)]
}
}
, function(e, t) {
e.exports = function(e, t, n) {
return e == e && (void 0 !== n && (e = e <= n ? e : n),
void 0 !== t && (e = e >= t ? e : t)),
e
}
}
, function(e, t, n) {
var r = n(237);
e.exports = function(e) {
return e ? Infinity === (e = r(e)) || e === -1 / 0 ? 17976931348623157e292 * (e < 0 ? -1 : 1) : e == e ? e : 0 : 0 === e ? e : 0
}
}
, function(e, t, n) {
var r = n(379)
, i = /^\s+/;
e.exports = function(e) {
return e ? e.slice(0, r(e) + 1).replace(i, "") : e
}
}
, function(e, t) {
var n = /\s/;
e.exports = function(e) {
for (var t = e.length; t-- && n.test(e.charAt(t)); )
;
return t
}
}
, function(e, t, n) {
"use strict";
var r = "function" == typeof Symbol && Symbol.for
, i = r ? Symbol.for("react.element") : 60103
, o = r ? Symbol.for("react.portal") : 60106
, a = r ? Symbol.for("react.fragment") : 60107
, l = r ? Symbol.for("react.strict_mode") : 60108
, s = r ? Symbol.for("react.profiler") : 60114
, c = r ? Symbol.for("react.provider") : 60109
, u = r ? Symbol.for("react.context") : 60110
, d = r ? Symbol.for("react.async_mode") : 60111
, p = r ? Symbol.for("react.concurrent_mode") : 60111
, h = r ? Symbol.for("react.forward_ref") : 60112
, f = r ? Symbol.for("react.suspense") : 60113
, b = r ? Symbol.for("react.suspense_list") : 60120
, g = r ? Symbol.for("react.memo") : 60115
, m = r ? Symbol.for("react.lazy") : 60116
, v = r ? Symbol.for("react.block") : 60121
, y = r ? Symbol.for("react.fundamental") : 60117
, x = r ? Symbol.for("react.responder") : 60118
, O = r ? Symbol.for("react.scope") : 60119;
function j(e) {
if ("object" == typeof e && null !== e) {
var t = e.$$typeof;
switch (t) {
case i:
switch (e = e.type) {
case d:
case p:
case a:
case s:
case l:
case f:
return e;
default:
switch (e = e && e.$$typeof) {
case u:
case h:
case m:
case g:
case c:
return e;
default:
return t
}
}
case o:
return t
}
}
}
function k(e) {
return j(e) === p
}
t.AsyncMode = d,
t.ConcurrentMode = p,
t.ContextConsumer = u,
t.ContextProvider = c,
t.Element = i,
t.ForwardRef = h,
t.Fragment = a,
t.Lazy = m,
t.Memo = g,
t.Portal = o,
t.Profiler = s,
t.StrictMode = l,
t.Suspense = f,
t.isAsyncMode = function(e) {
return k(e) || j(e) === d
}
,
t.isConcurrentMode = k,
t.isContextConsumer = function(e) {
return j(e) === u
}
,
t.isContextProvider = function(e) {
return j(e) === c
}
,
t.isElement = function(e) {
return "object" == typeof e && null !== e && e.$$typeof === i
}
,
t.isForwardRef = function(e) {
return j(e) === h
}
,
t.isFragment = function(e) {
return j(e) === a
}
,
t.isLazy = function(e) {
return j(e) === m
}
,
t.isMemo = function(e) {
return j(e) === g
}
,
t.isPortal = function(e) {
return j(e) === o
}
,
t.isProfiler = function(e) {
return j(e) === s
}
,
t.isStrictMode = function(e) {
return j(e) === l
}
,
t.isSuspense = function(e) {
return j(e) === f
}
,
t.isValidElementType = function(e) {
return "string" == typeof e || "function" == typeof e || e === a || e === p || e === s || e === l || e === f || e === b || "object" == typeof e && null !== e && (e.$$typeof === m || e.$$typeof === g || e.$$typeof === c || e.$$typeof === u || e.$$typeof === h || e.$$typeof === y || e.$$typeof === x || e.$$typeof === O || e.$$typeof === v)
}
,
t.typeOf = j
}
, function(e, t, n) {
"use strict";
var r = 60103
, i = 60106
, o = 60107
, a = 60108
, l = 60114
, s = 60109
, c = 60110
, u = 60112
, d = 60113
, p = 60120
, h = 60115
, f = 60116
, b = 60121
, g = 60122
, m = 60117
, v = 60129
, y = 60131;
if ("function" == typeof Symbol && Symbol.for) {
var x = Symbol.for;
r = x("react.element"),
i = x("react.portal"),
o = x("react.fragment"),
a = x("react.strict_mode"),
l = x("react.profiler"),
s = x("react.provider"),
c = x("react.context"),
u = x("react.forward_ref"),
d = x("react.suspense"),
p = x("react.suspense_list"),
h = x("react.memo"),
f = x("react.lazy"),
b = x("react.block"),
g = x("react.server.block"),
m = x("react.fundamental"),
v = x("react.debug_trace_mode"),
y = x("react.legacy_hidden")
}
function O(e) {
if ("object" == typeof e && null !== e) {
var t = e.$$typeof;
switch (t) {
case r:
switch (e = e.type) {
case o:
case l:
case a:
case d:
case p:
return e;
default:
switch (e = e && e.$$typeof) {
case c:
case u:
case f:
case h:
case s:
return e;
default:
return t
}
}
case i:
return t
}
}
}
var j = s
, k = r
, w = u
, C = o
, _ = f
, M = h
, S = i
, A = l
, T = a
, E = d;
t.ContextConsumer = c,
t.ContextProvider = j,
t.Element = k,
t.ForwardRef = w,
t.Fragment = C,
t.Lazy = _,
t.Memo = M,
t.Portal = S,
t.Profiler = A,
t.StrictMode = T,
t.Suspense = E,
t.isAsyncMode = function() {
return !1
}
,
t.isConcurrentMode = function() {
return !1
}
,
t.isContextConsumer = function(e) {
return O(e) === c
}
,
t.isContextProvider = function(e) {
return O(e) === s
}
,
t.isElement = function(e) {
return "object" == typeof e && null !== e && e.$$typeof === r
}
,
t.isForwardRef = function(e) {
return O(e) === u
}
,
t.isFragment = function(e) {
return O(e) === o
}
,
t.isLazy = function(e) {
return O(e) === f
}
,
t.isMemo = function(e) {
return O(e) === h
}
,
t.isPortal = function(e) {
return O(e) === i
}
,
t.isProfiler = function(e) {
return O(e) === l
}
,
t.isStrictMode = function(e) {
return O(e) === a
}
,
t.isSuspense = function(e) {
return O(e) === d
}
,
t.isValidElementType = function(e) {
return "string" == typeof e || "function" == typeof e || e === o || e === l || e === v || e === a || e === d || e === p || e === y || "object" == typeof e && null !== e && (e.$$typeof === f || e.$$typeof === h || e.$$typeof === s || e.$$typeof === c || e.$$typeof === u || e.$$typeof === m || e.$$typeof === b || e[0] === g)
}
,
t.typeOf = O
}
, function(e, t, n) {
"use strict";
function r(e) {
return r = "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
}
,
r(e)
}
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.default = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
i.set(t.debug);
var n, r = c({
limit: void 0,
filter: function() {
return !0
},
groupBy: function() {
return null
},
undoType: o.ActionTypes.UNDO,
redoType: o.ActionTypes.REDO,
jumpToPastType: o.ActionTypes.JUMP_TO_PAST,
jumpToFutureType: o.ActionTypes.JUMP_TO_FUTURE,
jumpType: o.ActionTypes.JUMP,
neverSkipReducer: !1,
ignoreInitialState: !1,
syncFilter: !1
}, t, {
initTypes: (0,
a.parseActions)(t.initTypes, ["@@redux-undo/INIT"]),
clearHistoryType: (0,
a.parseActions)(t.clearHistoryType, [o.ActionTypes.CLEAR_HISTORY])
}), l = r.neverSkipReducer ? function(t, n) {
for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++)
i[o - 2] = arguments[o];
return c({}, t, {
present: e.apply(void 0, [t.present, n].concat(i))
})
}
: function(e) {
return e
}
;
return function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : n
, o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
i.start(o, t);
for (var s, c = t, u = arguments.length, d = new Array(u > 2 ? u - 2 : 0), m = 2; m < u; m++)
d[m - 2] = arguments[m];
if (!n) {
if (i.log("history is uninitialized"),
void 0 === t) {
return c = p(e.apply(void 0, [t, {
type: "@@redux-undo/CREATE_HISTORY"
}].concat(d)), r.ignoreInitialState),
i.log("do not set initialState on probe actions"),
i.end(c),
c
}
(0,
a.isHistory)(t) ? (c = n = r.ignoreInitialState ? t : (0,
a.newHistory)(t.past, t.present, t.future),
i.log("initialHistory initialized: initialState is a history", n)) : (c = n = p(t, r.ignoreInitialState),
i.log("initialHistory initialized: initialState is not a history", n))
}
switch (o.type) {
case void 0:
return c;
case r.undoType:
return s = g(c, -1),
i.log("perform undo"),
i.end(s),
l.apply(void 0, [s, o].concat(d));
case r.redoType:
return s = g(c, 1),
i.log("perform redo"),
i.end(s),
l.apply(void 0, [s, o].concat(d));
case r.jumpToPastType:
return s = b(c, o.index),
i.log("perform jumpToPast to ".concat(o.index)),
i.end(s),
l.apply(void 0, [s, o].concat(d));
case r.jumpToFutureType:
return s = f(c, o.index),
i.log("perform jumpToFuture to ".concat(o.index)),
i.end(s),
l.apply(void 0, [s, o].concat(d));
case r.jumpType:
return s = g(c, o.index),
i.log("perform jump to ".concat(o.index)),
i.end(s),
l.apply(void 0, [s, o].concat(d));
case function(e, t) {
return t.indexOf(e) > -1 ? e : !e
}(o.type, r.clearHistoryType):
return s = p(c.present, r.ignoreInitialState),
i.log("perform clearHistory"),
i.end(s),
l.apply(void 0, [s, o].concat(d));
default:
if (s = e.apply(void 0, [c.present, o].concat(d)),
r.initTypes.some((function(e) {
return e === o.type
}
)))
return i.log("reset history due to init action"),
i.end(n),
n;
if (c._latestUnfiltered === s)
return c;
if ("function" == typeof r.filter && !r.filter(o, s, c)) {
var v = (0,
a.newHistory)(c.past, s, c.future, c.group);
return r.syncFilter || (v._latestUnfiltered = c._latestUnfiltered),
i.log("filter ignored action, not storing it in past"),
i.end(v),
v
}
var y = r.groupBy(o, s, c);
if (null != y && y === c.group) {
var x = (0,
a.newHistory)(c.past, s, c.future, c.group);
return i.log("groupBy grouped the action with the previous action"),
i.end(x),
x
}
return c = h(c, s, r.limit, y),
i.log("inserted new state into history"),
i.end(c),
c
}
}
}
;
var i = function(e) {
if (e && e.__esModule)
return e;
if (null === e || "object" !== r(e) && "function" != typeof e)
return {
default: e
};
var t = l();
if (t && t.has(e))
return t.get(e);
var n = {}
, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var o in e)
if (Object.prototype.hasOwnProperty.call(e, o)) {
var a = i ? Object.getOwnPropertyDescriptor(e, o) : null;
a && (a.get || a.set) ? Object.defineProperty(n, o, a) : n[o] = e[o]
}
return n.default = e,
t && t.set(e, n),
n
}(n(383))
, o = n(238)
, a = n(239);
function l() {
if ("function" != typeof WeakMap)
return null;
var e = new WeakMap;
return l = function() {
return e
}
,
e
}
function s(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}
))),
n.push.apply(n, r)
}
return n
}
function c(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? s(Object(n), !0).forEach((function(t) {
u(e, t, n[t])
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}
))
}
return e
}
function u(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n,
e
}
function d(e) {
return function(e) {
if (Array.isArray(e)) {
for (var t = 0, n = new Array(e.length); t < e.length; t++)
n[t] = e[t];
return n
}
}(e) || function(e) {
if (Symbol.iterator in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e))
return Array.from(e)
}(e) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance")
}()
}
function p(e, t) {
var n = (0,
a.newHistory)([], e, []);
return t && (n._latestUnfiltered = null),
n
}
function h(e, t, n, r) {
var o = e.past.length + 1;
i.log("inserting", t),
i.log("new free: ", n - o);
var l = e.past
, s = e._latestUnfiltered
, c = n && n <= o
, u = l.slice(c ? 1 : 0)
, p = null != s ? [].concat(d(u), [s]) : u;
return (0,
a.newHistory)(p, t, [], r)
}
function f(e, t) {
if (t < 0 || t >= e.future.length)
return e;
var n = e.past
, r = e.future
, i = e._latestUnfiltered
, o = [].concat(d(n), [i], d(r.slice(0, t)))
, l = r[t]
, s = r.slice(t + 1);
return (0,
a.newHistory)(o, l, s)
}
function b(e, t) {
if (t < 0 || t >= e.past.length)
return e;
var n = e.past
, r = e.future
, i = e._latestUnfiltered
, o = n.slice(0, t)
, l = [].concat(d(n.slice(t + 1)), [i], d(r))
, s = n[t];
return (0,
a.newHistory)(o, s, l)
}
function g(e, t) {
return t > 0 ? f(e, t - 1) : t < 0 ? b(e, e.past.length + t) : e
}
}
, function(e, t, n) {
"use strict";
function r(e) {
return function(e) {
if (Array.isArray(e)) {
for (var t = 0, n = new Array(e.length); t < e.length; t++)
n[t] = e[t];
return n
}
}(e) || function(e) {
if (Symbol.iterator in Object(e) || "[object Arguments]" === Object.prototype.toString.call(e))
return Array.from(e)
}(e) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance")
}()
}
var i, o;
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.set = function(e) {
i = e
}
,
t.start = function(e, t) {
o = {
header: [],
prev: [],
action: [],
next: [],
msgs: []
},
i && (console.group ? (o.header = ["%credux-undo", "font-style: italic", "action", e.type],
o.action = c("action", l, e),
o.prev = c("prev history", a, t)) : (o.header = ["redux-undo action", e.type],
o.action = ["action", e],
o.prev = ["prev history", t]))
}
,
t.end = function(e) {
i && (console.group ? o.next = c("next history", s, e) : o.next = ["next history", e],
function() {
var e, t, n, i, a, l, s, c, u, d, p = o, h = p.header, f = p.prev, b = p.next, g = p.action, m = p.msgs;
console.group ? ((e = console).groupCollapsed.apply(e, r(h)),
(t = console).log.apply(t, r(f)),
(n = console).log.apply(n, r(g)),
(i = console).log.apply(i, r(b)),
(a = console).log.apply(a, r(m)),
console.groupEnd()) : ((l = console).log.apply(l, r(h)),
(s = console).log.apply(s, r(f)),
(c = console).log.apply(c, r(g)),
(u = console).log.apply(u, r(b)),
(d = console).log.apply(d, r(m)))
}())
}
,
t.log = function() {
if (i) {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
o.msgs = o.msgs.concat([].concat(t, ["\n"]))
}
}
;
var a = "#9E9E9E"
, l = "#03A9F4"
, s = "#4CAF50";
function c(e, t, n) {
return ["%c".concat(e), "color: ".concat(t, "; font-weight: bold"), n]
}
}
, function(e, t, n) {
"use strict";
var r = n(65)
, i = n(240)
, o = n(385)
, a = n(246)
, l = function e(t) {
var n = new o(t)
, l = i(o.prototype.request, n);
return r.extend(l, o.prototype, n),
r.extend(l, n),
l.create = function(n) {
return e(a(t, n))
}
,
l
}(n(149));
l.Axios = o,
l.Cancel = n(150),
l.CancelToken = n(398),
l.isCancel = n(245),
l.VERSION = n(247).version,
l.all = function(e) {
return Promise.all(e)
}
,
l.spread = n(399),
l.isAxiosError = n(400),
e.exports = l,
e.exports.default = l
}
, function(e, t, n) {
"use strict";
var r = n(65)
, i = n(241)
, o = n(386)
, a = n(387)
, l = n(246)
, s = n(397)
, c = s.validators;
function u(e) {
this.defaults = e,
this.interceptors = {
request: new o,
response: new o
}
}
u.prototype.request = function(e) {
"string" == typeof e ? (e = arguments[1] || {}).url = arguments[0] : e = e || {},
(e = l(this.defaults, e)).method ? e.method = e.method.toLowerCase() : this.defaults.method ? e.method = this.defaults.method.toLowerCase() : e.method = "get";
var t = e.transitional;
void 0 !== t && s.assertOptions(t, {
silentJSONParsing: c.transitional(c.boolean),
forcedJSONParsing: c.transitional(c.boolean),
clarifyTimeoutError: c.transitional(c.boolean)
}, !1);
var n = []
, r = !0;
this.interceptors.request.forEach((function(t) {
"function" == typeof t.runWhen && !1 === t.runWhen(e) || (r = r && t.synchronous,
n.unshift(t.fulfilled, t.rejected))
}
));
var i, o = [];
if (this.interceptors.response.forEach((function(e) {
o.push(e.fulfilled, e.rejected)
}
)),
!r) {
var u = [a, void 0];
for (Array.prototype.unshift.apply(u, n),
u = u.concat(o),
i = Promise.resolve(e); u.length; )
i = i.then(u.shift(), u.shift());
return i
}
for (var d = e; n.length; ) {
var p = n.shift()
, h = n.shift();
try {
d = p(d)
} catch (e) {
h(e);
break
}
}
try {
i = a(d)
} catch (e) {
return Promise.reject(e)
}
for (; o.length; )
i = i.then(o.shift(), o.shift());
return i
}
,
u.prototype.getUri = function(e) {
return e = l(this.defaults, e),
i(e.url, e.params, e.paramsSerializer).replace(/^\?/, "")
}
,
r.forEach(["delete", "get", "head", "options"], (function(e) {
u.prototype[e] = function(t, n) {
return this.request(l(n || {}, {
method: e,
url: t,
data: (n || {}).data
}))
}
}
)),
r.forEach(["post", "put", "patch"], (function(e) {
u.prototype[e] = function(t, n, r) {
return this.request(l(r || {}, {
method: e,
url: t,
data: n
}))
}
}
)),
e.exports = u
}
, function(e, t, n) {
"use strict";
var r = n(65);
function i() {
this.handlers = []
}
i.prototype.use = function(e, t, n) {
return this.handlers.push({
fulfilled: e,
rejected: t,
synchronous: !!n && n.synchronous,
runWhen: n ? n.runWhen : null
}),
this.handlers.length - 1
}
,
i.prototype.eject = function(e) {
this.handlers[e] && (this.handlers[e] = null)
}
,
i.prototype.forEach = function(e) {
r.forEach(this.handlers, (function(t) {
null !== t && e(t)
}
))
}
,
e.exports = i
}
, function(e, t, n) {
"use strict";
var r = n(65)
, i = n(388)
, o = n(245)
, a = n(149)
, l = n(150);
function s(e) {
if (e.cancelToken && e.cancelToken.throwIfRequested(),
e.signal && e.signal.aborted)
throw new l("canceled")
}
e.exports = function(e) {
return s(e),
e.headers = e.headers || {},
e.data = i.call(e, e.data, e.headers, e.transformRequest),
e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers),
r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function(t) {
delete e.headers[t]
}
)),
(e.adapter || a.adapter)(e).then((function(t) {
return s(e),
t.data = i.call(e, t.data, t.headers, e.transformResponse),
t
}
), (function(t) {
return o(t) || (s(e),
t && t.response && (t.response.data = i.call(e, t.response.data, t.response.headers, e.transformResponse))),
Promise.reject(t)
}
))
}
}
, function(e, t, n) {
"use strict";
var r = n(65)
, i = n(149);
e.exports = function(e, t, n) {
var o = this || i;
return r.forEach(n, (function(n) {
e = n.call(o, e, t)
}
)),
e
}
}
, function(e, t, n) {
"use strict";
var r = n(65);
e.exports = function(e, t) {
r.forEach(e, (function(n, r) {
r !== t && r.toUpperCase() === t.toUpperCase() && (e[t] = n,
delete e[r])
}
))
}
}
, function(e, t, n) {
"use strict";
var r = n(244);
e.exports = function(e, t, n) {
var i = n.config.validateStatus;
n.status && i && !i(n.status) ? t(r("Request failed with status code " + n.status, n.config, null, n.request, n)) : e(n)
}
}
, function(e, t, n) {
"use strict";
var r = n(65);
e.exports = r.isStandardBrowserEnv() ? {
write: function(e, t, n, i, o, a) {
var l = [];
l.push(e + "=" + encodeURIComponent(t)),
r.isNumber(n) && l.push("expires=" + new Date(n).toGMTString()),
r.isString(i) && l.push("path=" + i),
r.isString(o) && l.push("domain=" + o),
!0 === a && l.push("secure"),
document.cookie = l.join("; ")
},
read: function(e) {
var t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
return t ? decodeURIComponent(t[3]) : null
},
remove: function(e) {
this.write(e, "", Date.now() - 864e5)
}
} : {
write: function() {},
read: function() {
return null
},
remove: function() {}
}
}
, function(e, t, n) {
"use strict";
var r = n(393)
, i = n(394);
e.exports = function(e, t) {
return e && !r(t) ? i(e, t) : t
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e) {
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e, t) {
return t ? e.replace(/\/+$/, "") + "/" + t.replace(/^\/+/, "") : e
}
}
, function(e, t, n) {
"use strict";
var r = n(65)
, i = ["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"];
e.exports = function(e) {
var t, n, o, a = {};
return e ? (r.forEach(e.split("\n"), (function(e) {
if (o = e.indexOf(":"),
t = r.trim(e.substr(0, o)).toLowerCase(),
n = r.trim(e.substr(o + 1)),
t) {
if (a[t] && i.indexOf(t) >= 0)
return;
a[t] = "set-cookie" === t ? (a[t] ? a[t] : []).concat([n]) : a[t] ? a[t] + ", " + n : n
}
}
)),
a) : a
}
}
, function(e, t, n) {
"use strict";
var r = n(65);
e.exports = r.isStandardBrowserEnv() ? function() {
var e, t = /(msie|trident)/i.test(navigator.userAgent), n = document.createElement("a");
function i(e) {
var r = e;
return t && (n.setAttribute("href", r),
r = n.href),
n.setAttribute("href", r),
{
href: n.href,
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
host: n.host,
search: n.search ? n.search.replace(/^\?/, "") : "",
hash: n.hash ? n.hash.replace(/^#/, "") : "",
hostname: n.hostname,
port: n.port,
pathname: "/" === n.pathname.charAt(0) ? n.pathname : "/" + n.pathname
}
}
return e = i(window.location.href),
function(t) {
var n = r.isString(t) ? i(t) : t;
return n.protocol === e.protocol && n.host === e.host
}
}() : function() {
return !0
}
}
, function(e, t, n) {
"use strict";
var r = n(247).version
, i = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((function(e, t) {
i[e] = function(n) {
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e
}
}
));
var o = {};
i.transitional = function(e, t, n) {
function i(e, t) {
return "[Axios v" + r + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "")
}
return function(n, r, a) {
if (!1 === e)
throw new Error(i(r, " has been removed" + (t ? " in " + t : "")));
return t && !o[r] && (o[r] = !0,
console.warn(i(r, " has been deprecated since v" + t + " and will be removed in the near future"))),
!e || e(n, r, a)
}
}
,
e.exports = {
assertOptions: function(e, t, n) {
if ("object" != typeof e)
throw new TypeError("options must be an object");
for (var r = Object.keys(e), i = r.length; i-- > 0; ) {
var o = r[i]
, a = t[o];
if (a) {
var l = e[o]
, s = void 0 === l || a(l, o, e);
if (!0 !== s)
throw new TypeError("option " + o + " must be " + s)
} else if (!0 !== n)
throw Error("Unknown option " + o)
}
},
validators: i
}
}
, function(e, t, n) {
"use strict";
var r = n(150);
function i(e) {
if ("function" != typeof e)
throw new TypeError("executor must be a function.");
var t;
this.promise = new Promise((function(e) {
t = e
}
));
var n = this;
this.promise.then((function(e) {
if (n._listeners) {
var t, r = n._listeners.length;
for (t = 0; t < r; t++)
n._listeners[t](e);
n._listeners = null
}
}
)),
this.promise.then = function(e) {
var t, r = new Promise((function(e) {
n.subscribe(e),
t = e
}
)).then(e);
return r.cancel = function() {
n.unsubscribe(t)
}
,
r
}
,
e((function(e) {
n.reason || (n.reason = new r(e),
t(n.reason))
}
))
}
i.prototype.throwIfRequested = function() {
if (this.reason)
throw this.reason
}
,
i.prototype.subscribe = function(e) {
this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e]
}
,
i.prototype.unsubscribe = function(e) {
if (this._listeners) {
var t = this._listeners.indexOf(e);
-1 !== t && this._listeners.splice(t, 1)
}
}
,
i.source = function() {
var e;
return {
token: new i((function(t) {
e = t
}
)),
cancel: e
}
}
,
e.exports = i
}
, function(e, t, n) {
"use strict";
e.exports = function(e) {
return function(t) {
return e.apply(null, t)
}
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e) {
return "object" == typeof e && !0 === e.isAxiosError
}
}
, function(e, t, n) {
var r = n(107)
, i = n(122)
, o = n(16)
, a = r ? r.isConcatSpreadable : void 0;
e.exports = function(e) {
return o(e) || i(e) || !!(a && e && e[a])
}
}
, function(e, t, n) {
var r = n(152)
, i = n(249);
e.exports = function(e) {
return i(r(e))
}
}
, function(e, t) {
var n = Math.floor
, r = Math.random;
e.exports = function(e, t) {
return e + n(r() * (t - e + 1))
}
}
, function(e, t, n) {
var r = n(249)
, i = n(101);
e.exports = function(e) {
return r(i(e))
}
}
, function(e, t, n) {
var r = n(144);
e.exports = function(e, t) {
return r(t, (function(t) {
return e[t]
}
))
}
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = Array(e); ++n < e; )
r[n] = t(n);
return r
}
}
, function(e, t) {
e.exports = function(e) {
return e != e
}
}
, function(e, t) {
e.exports = function(e, t, n) {
for (var r = n - 1, i = e.length; ++r < i; )
if (e[r] === t)
return r;
return -1
}
}
, function(e, t, n) {
var r = n(252)({
"&": "&",
"<": "<",
">": ">",
""": '"',
"'": "'"
});
e.exports = r
}
, function(e, t) {
e.exports = 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.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
var r = n(412)
, i = n(413)
, o = n(196)
, a = n(414);
e.exports = function(e, t) {
return r(e) || i(e, t) || o(e, t) || a()
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t) {
e.exports = function(e) {
if (Array.isArray(e))
return e
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t) {
e.exports = function(e, t) {
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (null != n) {
var r, i, o = [], a = !0, l = !1;
try {
for (n = n.call(e); !(a = (r = n.next()).done) && (o.push(r.value),
!t || o.length !== t); a = !0)
;
} catch (e) {
l = !0,
i = e
} finally {
try {
a || null == n.return || n.return()
} finally {
if (l)
throw i
}
}
return o
}
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t) {
e.exports = function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
var r = n(196);
e.exports = function(e, t) {
var n = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (!n) {
if (Array.isArray(e) || (n = r(e)) || t && e && "number" == typeof e.length) {
n && (e = n);
var i = 0
, o = function() {};
return {
s: o,
n: function() {
return i >= e.length ? {
done: !0
} : {
done: !1,
value: e[i++]
}
},
e: function(e) {
throw e
},
f: o
}
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
var a, l = !0, s = !1;
return {
s: function() {
n = n.call(e)
},
n: function() {
var e = n.next();
return l = e.done,
e
},
e: function(e) {
s = !0,
a = e
},
f: function() {
try {
l || null == n.return || n.return()
} finally {
if (s)
throw a
}
}
}
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
var r = n(417)
, i = n(418)
, o = n(196)
, a = n(419);
e.exports = function(e) {
return r(e) || i(e) || o(e) || a()
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
var r = n(253);
e.exports = function(e) {
if (Array.isArray(e))
return r(e)
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t) {
e.exports = function(e) {
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"])
return Array.from(e)
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t) {
e.exports = function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}
,
e.exports.__esModule = !0,
e.exports.default = e.exports
}
, function(e, t, n) {
"use strict";
e.exports = function(e) {
return encodeURIComponent(e).replace(/[!'()*]/g, (function(e) {
return "%".concat(e.charCodeAt(0).toString(16).toUpperCase())
}
))
}
}
, function(e, t, n) {
"use strict";
var r = "%[a-f0-9]{2}"
, i = new RegExp(r,"gi")
, o = new RegExp("(" + r + ")+","gi");
function a(e, t) {
try {
return decodeURIComponent(e.join(""))
} catch (e) {}
if (1 === e.length)
return e;
t = t || 1;
var n = e.slice(0, t)
, r = e.slice(t);
return Array.prototype.concat.call([], a(n), a(r))
}
function l(e) {
try {
return decodeURIComponent(e)
} catch (r) {
for (var t = e.match(i), n = 1; n < t.length; n++)
t = (e = a(t, n).join("")).match(i);
return e
}
}
e.exports = function(e) {
if ("string" != typeof e)
throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof e + "`");
try {
return e = e.replace(/\+/g, " "),
decodeURIComponent(e)
} catch (t) {
return function(e) {
for (var t = {
"%FE%FF": "��",
"%FF%FE": "��"
}, n = o.exec(e); n; ) {
try {
t[n[0]] = decodeURIComponent(n[0])
} catch (e) {
var r = l(n[0]);
r !== n[0] && (t[n[0]] = r)
}
n = o.exec(e)
}
t["%C2"] = "�";
for (var i = Object.keys(t), a = 0; a < i.length; a++) {
var s = i[a];
e = e.replace(new RegExp(s,"g"), t[s])
}
return e
}(e)
}
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e, t) {
if ("string" != typeof e || "string" != typeof t)
throw new TypeError("Expected the arguments to be of type `string`");
if ("" === t)
return [e];
var n = e.indexOf(t);
return -1 === n ? [e] : [e.slice(0, n), e.slice(n + t.length)]
}
}
, function(e, t, n) {
"use strict";
e.exports = function(e, t) {
for (var n = {}, r = Object.keys(e), i = Array.isArray(t), o = 0; o < r.length; o++) {
var a = r[o]
, l = e[a];
(i ? -1 !== t.indexOf(a) : t(a, l, e)) && (n[a] = l)
}
return n
}
}
, function(e, t) {
e.exports = function(e, t, n, r) {
var i = -1
, o = null == e ? 0 : e.length;
for (r && o && (n = e[++i]); ++i < o; )
n = t(n, e[i], i, e);
return n
}
}
, function(e, t, n) {
var r = n(426)
, i = n(75)
, o = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g
, a = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
e.exports = function(e) {
return (e = i(e)) && e.replace(o, r).replace(a, "")
}
}
, function(e, t, n) {
var r = n(252)({
"À": "A",
"Á": "A",
"Â": "A",
"Ã": "A",
"Ä": "A",
"Å": "A",
"à": "a",
"á": "a",
"â": "a",
"ã": "a",
"ä": "a",
"å": "a",
"Ç": "C",
"ç": "c",
"Ð": "D",
"ð": "d",
"È": "E",
"É": "E",
"Ê": "E",
"Ë": "E",
"è": "e",
"é": "e",
"ê": "e",
"ë": "e",
"Ì": "I",
"Í": "I",
"Î": "I",
"Ï": "I",
"ì": "i",
"í": "i",
"î": "i",
"ï": "i",
"Ñ": "N",
"ñ": "n",
"Ò": "O",
"Ó": "O",
"Ô": "O",
"Õ": "O",
"Ö": "O",
"Ø": "O",
"ò": "o",
"ó": "o",
"ô": "o",
"õ": "o",
"ö": "o",
"ø": "o",
"Ù": "U",
"Ú": "U",
"Û": "U",
"Ü": "U",
"ù": "u",
"ú": "u",
"û": "u",
"ü": "u",
"Ý": "Y",
"ý": "y",
"ÿ": "y",
"Æ": "Ae",
"æ": "ae",
"Þ": "Th",
"þ": "th",
"ß": "ss",
"Ā": "A",
"Ă": "A",
"Ą": "A",
"ā": "a",
"ă": "a",
"ą": "a",
"Ć": "C",
"Ĉ": "C",
"Ċ": "C",
"Č": "C",
"ć": "c",
"ĉ": "c",
"ċ": "c",
"č": "c",
"Ď": "D",
"Đ": "D",
"ď": "d",
"đ": "d",
"Ē": "E",
"Ĕ": "E",
"Ė": "E",
"Ę": "E",
"Ě": "E",
"ē": "e",
"ĕ": "e",
"ė": "e",
"ę": "e",
"ě": "e",
"Ĝ": "G",
"Ğ": "G",
"Ġ": "G",
"Ģ": "G",
"ĝ": "g",
"ğ": "g",
"ġ": "g",
"ģ": "g",
"Ĥ": "H",
"Ħ": "H",
"ĥ": "h",
"ħ": "h",
"Ĩ": "I",
"Ī": "I",
"Ĭ": "I",
"Į": "I",
"İ": "I",
"ĩ": "i",
"ī": "i",
"ĭ": "i",
"į": "i",
"ı": "i",
"Ĵ": "J",
"ĵ": "j",
"Ķ": "K",
"ķ": "k",
"ĸ": "k",
"Ĺ": "L",
"Ļ": "L",
"Ľ": "L",
"Ŀ": "L",
"Ł": "L",
"ĺ": "l",
"ļ": "l",
"ľ": "l",
"ŀ": "l",
"ł": "l",
"Ń": "N",
"Ņ": "N",
"Ň": "N",
"Ŋ": "N",
"ń": "n",
"ņ": "n",
"ň": "n",
"ŋ": "n",
"Ō": "O",
"Ŏ": "O",
"Ő": "O",
"ō": "o",
"ŏ": "o",
"ő": "o",
"Ŕ": "R",
"Ŗ": "R",
"Ř": "R",
"ŕ": "r",
"ŗ": "r",
"ř": "r",
"Ś": "S",
"Ŝ": "S",
"Ş": "S",
"Š": "S",
"ś": "s",
"ŝ": "s",
"ş": "s",
"š": "s",
"Ţ": "T",
"Ť": "T",
"Ŧ": "T",
"ţ": "t",
"ť": "t",
"ŧ": "t",
"Ũ": "U",
"Ū": "U",
"Ŭ": "U",
"Ů": "U",
"Ű": "U",
"Ų": "U",
"ũ": "u",
"ū": "u",
"ŭ": "u",
"ů": "u",
"ű": "u",
"ų": "u",
"Ŵ": "W",
"ŵ": "w",
"Ŷ": "Y",
"ŷ": "y",
"Ÿ": "Y",
"Ź": "Z",
"Ż": "Z",
"Ž": "Z",
"ź": "z",
"ż": "z",
"ž": "z",
"IJ": "IJ",
"ij": "ij",
"Œ": "Oe",
"œ": "oe",
"ʼn": "'n",
"ſ": "s"
});
e.exports = r
}
, function(e, t, n) {
var r = n(428)
, i = n(429)
, o = n(75)
, a = n(430);
e.exports = function(e, t, n) {
return e = o(e),
void 0 === (t = n ? void 0 : t) ? i(e) ? a(e) : r(e) : e.match(t) || []
}
}
, function(e, t) {
var n = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
e.exports = function(e) {
return e.match(n) || []
}
}
, function(e, t) {
var n = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
e.exports = function(e) {
return n.test(e)
}
}
, function(e, t) {
var n = "a-z\\xdf-\\xf6\\xf8-\\xff"
, r = "A-Z\\xc0-\\xd6\\xd8-\\xde"
, i = "\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"
, o = "[" + i + "]"
, a = "\\d+"
, l = "[" + n + "]"
, s = "[^\\ud800-\\udfff" + i + a + "\\u2700-\\u27bf" + n + r + "]"
, c = "(?:\\ud83c[\\udde6-\\uddff]){2}"
, u = "[\\ud800-\\udbff][\\udc00-\\udfff]"
, d = "[" + r + "]"
, p = "(?:" + l + "|" + s + ")"
, h = "(?:" + d + "|" + s + ")"
, f = "(?:['’](?:d|ll|m|re|s|t|ve))?"
, b = "(?:['’](?:D|LL|M|RE|S|T|VE))?"
, g = "(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?"
, m = "[\\ufe0e\\ufe0f]?"
, v = m + g + "(?:\\u200d(?:" + ["[^\\ud800-\\udfff]", c, u].join("|") + ")" + m + g + ")*"
, y = "(?:" + ["[\\u2700-\\u27bf]", c, u].join("|") + ")" + v
, x = RegExp([d + "?" + l + "+" + f + "(?=" + [o, d, "$"].join("|") + ")", h + "+" + b + "(?=" + [o, d + p, "$"].join("|") + ")", d + "?" + p + "+" + f, d + "+" + b, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", a, y].join("|"), "g");
e.exports = function(e) {
return e.match(x) || []
}
}
, function(e, t, n) {
var r = n(432)
, i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
, o = /\\(\\)?/g
, a = r((function(e) {
var t = [];
return 46 === e.charCodeAt(0) && t.push(""),
e.replace(i, (function(e, n, r, i) {
t.push(r ? i.replace(o, "$1") : n || e)
}
)),
t
}
));
e.exports = a
}
, function(e, t, n) {
var r = n(433);
e.exports = function(e) {
var t = r(e, (function(e) {
return 500 === n.size && n.clear(),
e
}
))
, n = t.cache;
return t
}
}
, function(e, t, n) {
var r = n(199);
function i(e, t) {
if ("function" != typeof e || null != t && "function" != typeof t)
throw new TypeError("Expected a function");
var n = function n() {
var r = arguments
, i = t ? t.apply(this, r) : r[0]
, o = n.cache;
if (o.has(i))
return o.get(i);
var a = e.apply(this, r);
return n.cache = o.set(i, a) || o,
a
};
return n.cache = new (i.Cache || r),
n
}
i.Cache = r,
e.exports = i
}
, function(e, t, n) {
var r = n(435)
, i = n(156)
, o = n(194);
e.exports = function() {
this.size = 0,
this.__data__ = {
hash: new r,
map: new (o || i),
string: new r
}
}
}
, function(e, t, n) {
var r = n(436)
, i = n(437)
, o = n(438)
, a = n(439)
, l = n(440);
function s(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1])
}
}
s.prototype.clear = r,
s.prototype.delete = i,
s.prototype.get = o,
s.prototype.has = a,
s.prototype.set = l,
e.exports = s
}
, function(e, t, n) {
var r = n(155);
e.exports = function() {
this.__data__ = r ? r(null) : {},
this.size = 0
}
}
, function(e, t) {
e.exports = function(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0,
t
}
}
, function(e, t, n) {
var r = n(155)
, i = Object.prototype.hasOwnProperty;
e.exports = function(e) {
var t = this.__data__;
if (r) {
var n = t[e];
return "__lodash_hash_undefined__" === n ? void 0 : n
}
return i.call(t, e) ? t[e] : void 0
}
}
, function(e, t, n) {
var r = n(155)
, i = Object.prototype.hasOwnProperty;
e.exports = function(e) {
var t = this.__data__;
return r ? void 0 !== t[e] : i.call(t, e)
}
}
, function(e, t, n) {
var r = n(155);
e.exports = function(e, t) {
var n = this.__data__;
return this.size += this.has(e) ? 0 : 1,
n[e] = r && void 0 === t ? "__lodash_hash_undefined__" : t,
this
}
}
, function(e, t) {
e.exports = function() {
this.__data__ = [],
this.size = 0
}
}
, function(e, t, n) {
var r = n(157)
, i = Array.prototype.splice;
e.exports = function(e) {
var t = this.__data__
, n = r(t, e);
return !(n < 0 || (n == t.length - 1 ? t.pop() : i.call(t, n, 1),
--this.size,
0))
}
}
, function(e, t, n) {
var r = n(157);
e.exports = function(e) {
var t = this.__data__
, n = r(t, e);
return n < 0 ? void 0 : t[n][1]
}
}
, function(e, t, n) {
var r = n(157);
e.exports = function(e) {
return r(this.__data__, e) > -1
}
}
, function(e, t, n) {
var r = n(157);
e.exports = function(e, t) {
var n = this.__data__
, i = r(n, e);
return i < 0 ? (++this.size,
n.push([e, t])) : n[i][1] = t,
this
}
}
, function(e, t, n) {
var r = n(158);
e.exports = function(e) {
var t = r(this, e).delete(e);
return this.size -= t ? 1 : 0,
t
}
}
, function(e, t) {
e.exports = function(e) {
var t = typeof e;
return "string" == t || "number" == t || "symbol" == t || "boolean" == t ? "__proto__" !== e : null === e
}
}
, function(e, t, n) {
var r = n(158);
e.exports = function(e) {
return r(this, e).get(e)
}
}
, function(e, t, n) {
var r = n(158);
e.exports = function(e) {
return r(this, e).has(e)
}
}
, function(e, t, n) {
var r = n(158);
e.exports = function(e, t) {
var n = r(this, e)
, i = n.size;
return n.set(e, t),
this.size += n.size == i ? 0 : 1,
this
}
}
, function(e, t, n) {}
, function(e, t, n) {
"use strict";
n(142);
var r = n(1)
, i = 60103;
if (t.Fragment = 60107,
"function" == typeof Symbol && Symbol.for) {
var o = Symbol.for;
i = o("react.element"),
t.Fragment = o("react.fragment")
}
var a = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner
, l = Object.prototype.hasOwnProperty
, s = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function c(e, t, n) {
var r, o = {}, c = null, u = null;
for (r in void 0 !== n && (c = "" + n),
void 0 !== t.key && (c = "" + t.key),
void 0 !== t.ref && (u = t.ref),
t)
l.call(t, r) && !s.hasOwnProperty(r) && (o[r] = t[r]);
if (e && e.defaultProps)
for (r in t = e.defaultProps)
void 0 === o[r] && (o[r] = t[r]);
return {
$$typeof: i,
type: e,
key: c,
ref: u,
props: o,
_owner: a.current
}
}
t.jsx = c,
t.jsxs = c
}
, function(e, t, n) {
var r = n(159)
, i = n(254)
, o = n(462)
, a = n(464)
, l = n(121)
, s = n(16)
, c = n(123)
, u = n(148)
, d = "[object Arguments]"
, p = "[object Array]"
, h = "[object Object]"
, f = Object.prototype.hasOwnProperty;
e.exports = function(e, t, n, b, g, m) {
var v = s(e)
, y = s(t)
, x = v ? p : l(e)
, O = y ? p : l(t)
, j = (x = x == d ? h : x) == h
, k = (O = O == d ? h : O) == h
, w = x == O;
if (w && c(e)) {
if (!c(t))
return !1;
v = !0,
j = !1
}
if (w && !j)
return m || (m = new r),
v || u(e) ? i(e, t, n, b, g, m) : o(e, t, x, n, b, g, m);
if (!(1 & n)) {
var C = j && f.call(e, "__wrapped__")
, _ = k && f.call(t, "__wrapped__");
if (C || _) {
var M = C ? e.value() : e
, S = _ ? t.value() : t;
return m || (m = new r),
g(M, S, n, b, m)
}
}
return !!w && (m || (m = new r),
a(e, t, n, b, g, m))
}
}
, function(e, t, n) {
var r = n(156);
e.exports = function() {
this.__data__ = new r,
this.size = 0
}
}
, function(e, t) {
e.exports = function(e) {
var t = this.__data__
, n = t.delete(e);
return this.size = t.size,
n
}
}
, function(e, t) {
e.exports = function(e) {
return this.__data__.get(e)
}
}
, function(e, t) {
e.exports = function(e) {
return this.__data__.has(e)
}
}
, function(e, t, n) {
var r = n(156)
, i = n(194)
, o = n(199);
e.exports = function(e, t) {
var n = this.__data__;
if (n instanceof r) {
var a = n.__data__;
if (!i || a.length < 199)
return a.push([e, t]),
this.size = ++n.size,
this;
n = this.__data__ = new o(a)
}
return n.set(e, t),
this.size = n.size,
this
}
}
, function(e, t) {
e.exports = function(e) {
return this.__data__.set(e, "__lodash_hash_undefined__"),
this
}
}
, function(e, t) {
e.exports = function(e) {
return this.__data__.has(e)
}
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
if (t(e[n], n, e))
return !0;
return !1
}
}
, function(e, t, n) {
var r = n(107)
, i = n(257)
, o = n(118)
, a = n(254)
, l = n(463)
, s = n(201)
, c = r ? r.prototype : void 0
, u = c ? c.valueOf : void 0;
e.exports = function(e, t, n, r, c, d, p) {
switch (n) {
case "[object DataView]":
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
return !1;
e = e.buffer,
t = t.buffer;
case "[object ArrayBuffer]":
return !(e.byteLength != t.byteLength || !d(new i(e), new i(t)));
case "[object Boolean]":
case "[object Date]":
case "[object Number]":
return o(+e, +t);
case "[object Error]":
return e.name == t.name && e.message == t.message;
case "[object RegExp]":
case "[object String]":
return e == t + "";
case "[object Map]":
var h = l;
case "[object Set]":
var f = 1 & r;
if (h || (h = s),
e.size != t.size && !f)
return !1;
var b = p.get(e);
if (b)
return b == t;
r |= 2,
p.set(e, t);
var g = a(h(e), h(t), r, c, d, p);
return p.delete(e),
g;
case "[object Symbol]":
if (u)
return u.call(e) == u.call(t)
}
return !1
}
}
, function(e, t) {
e.exports = function(e) {
var t = -1
, n = Array(e.size);
return e.forEach((function(e, r) {
n[++t] = [r, e]
}
)),
n
}
}
, function(e, t, n) {
var r = n(258)
, i = Object.prototype.hasOwnProperty;
e.exports = function(e, t, n, o, a, l) {
var s = 1 & n
, c = r(e)
, u = c.length;
if (u != r(t).length && !s)
return !1;
for (var d = u; d--; ) {
var p = c[d];
if (!(s ? p in t : i.call(t, p)))
return !1
}
var h = l.get(e)
, f = l.get(t);
if (h && f)
return h == t && f == e;
var b = !0;
l.set(e, t),
l.set(t, e);
for (var g = s; ++d < u; ) {
var m = e[p = c[d]]
, v = t[p];
if (o)
var y = s ? o(v, m, p, t, e, l) : o(m, v, p, e, t, l);
if (!(void 0 === y ? m === v || a(m, v, n, o, l) : y)) {
b = !1;
break
}
g || (g = "constructor" == p)
}
if (b && !g) {
var x = e.constructor
, O = t.constructor;
x == O || !("constructor"in e) || !("constructor"in t) || "function" == typeof x && x instanceof x && "function" == typeof O && O instanceof O || (b = !1)
}
return l.delete(e),
l.delete(t),
b
}
}
, function(e, t) {
e.exports = function(e) {
return function(t, n, r) {
for (var i = -1, o = Object(t), a = r(t), l = a.length; l--; ) {
var s = a[e ? l : ++i];
if (!1 === n(o[s], s, o))
break
}
return t
}
}
}
, function(e, t, n) {
var r = n(263)
, i = n(266)
, o = n(267)
, a = n(152)
, l = n(268)
, s = n(122)
, c = n(16)
, u = n(468)
, d = n(123)
, p = n(192)
, h = n(30)
, f = n(269)
, b = n(148)
, g = n(270)
, m = n(469);
e.exports = function(e, t, n, v, y, x, O) {
var j = g(e, n)
, k = g(t, n)
, w = O.get(k);
if (w)
r(e, n, w);
else {
var C = x ? x(j, k, n + "", e, t, O) : void 0
, _ = void 0 === C;
if (_) {
var M = c(k)
, S = !M && d(k)
, A = !M && !S && b(k);
C = k,
M || S || A ? c(j) ? C = j : u(j) ? C = a(j) : S ? (_ = !1,
C = i(k, !0)) : A ? (_ = !1,
C = o(k, !0)) : C = [] : f(k) || s(k) ? (C = j,
s(j) ? C = m(j) : h(j) && !p(j) || (C = l(k))) : _ = !1
}
_ && (O.set(k, C),
y(C, k, v, x, O),
O.delete(k)),
r(e, n, C)
}
}
}
, function(e, t, n) {
var r = n(30)
, i = Object.create
, o = function() {
function e() {}
return function(t) {
if (!r(t))
return {};
if (i)
return i(t);
e.prototype = t;
var n = new e;
return e.prototype = void 0,
n
}
}();
e.exports = o
}
, function(e, t, n) {
var r = n(83)
, i = n(64);
e.exports = function(e) {
return i(e) && r(e)
}
}
, function(e, t, n) {
var r = n(109)
, i = n(125);
e.exports = function(e) {
return r(e, i(e))
}
}
, function(e, t, n) {
var r = n(30)
, i = n(120)
, o = n(471)
, a = Object.prototype.hasOwnProperty;
e.exports = function(e) {
if (!r(e))
return o(e);
var t = i(e)
, n = [];
for (var l in e)
("constructor" != l || !t && a.call(e, l)) && n.push(l);
return n
}
}
, function(e, t) {
e.exports = function(e) {
var t = [];
if (null != e)
for (var n in Object(e))
t.push(n);
return t
}
}
, function(e, t, n) {
var r = n(473)
, i = Math.max;
e.exports = function(e, t, n) {
return t = i(void 0 === t ? e.length - 1 : t, 0),
function() {
for (var o = arguments, a = -1, l = i(o.length - t, 0), s = Array(l); ++a < l; )
s[a] = o[t + a];
a = -1;
for (var c = Array(t + 1); ++a < t; )
c[a] = o[a];
return c[t] = n(s),
r(e, this, c)
}
}
}
, function(e, t) {
e.exports = function(e, t, n) {
switch (n.length) {
case 0:
return e.call(t);
case 1:
return e.call(t, n[0]);
case 2:
return e.call(t, n[0], n[1]);
case 3:
return e.call(t, n[0], n[1], n[2])
}
return e.apply(t, n)
}
}
, function(e, t, n) {
var r = n(475)
, i = n(477)(r);
e.exports = i
}
, function(e, t, n) {
var r = n(476)
, i = n(264)
, o = n(126)
, a = i ? function(e, t) {
return i(e, "toString", {
configurable: !0,
enumerable: !1,
value: r(t),
writable: !0
})
}
: o;
e.exports = a
}
, function(e, t) {
e.exports = function(e) {
return function() {
return e
}
}
}
, function(e, t) {
var n = Date.now;
e.exports = function(e) {
var t = 0
, r = 0;
return function() {
var i = n()
, o = 16 - (i - r);
if (r = i,
o > 0) {
if (++t >= 800)
return arguments[0]
} else
t = 0;
return e.apply(void 0, arguments)
}
}
}
, function(e, t, n) {
"use strict";
var r = n(479);
function i() {}
function o() {}
o.resetWarningCache = i,
e.exports = function() {
function e(e, t, n, i, o, a) {
if (a !== r) {
var l = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
throw l.name = "Invariant Violation",
l
}
}
function t() {
return e
}
e.isRequired = e;
var n = {
array: e,
bigint: e,
bool: e,
func: e,
number: e,
object: e,
string: e,
symbol: e,
any: e,
arrayOf: t,
element: e,
elementType: e,
instanceOf: t,
node: e,
objectOf: t,
oneOf: t,
oneOfType: t,
shape: t,
exact: t,
checkPropTypes: o,
resetWarningCache: i
};
return n.PropTypes = n,
n
}
}
, function(e, t, n) {
"use strict";
e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"
}
, function(e, t) {
e.exports = Array.isArray || function(e) {
return "[object Array]" == Object.prototype.toString.call(e)
}
}
, function(e, t, n) {
var r = n(144)
, i = n(154)
, o = n(97)
, a = n(274)
, l = n(493)
, s = n(119)
, c = n(494)
, u = n(126)
, d = n(16);
e.exports = function(e, t, n) {
t = t.length ? r(t, (function(e) {
return d(e) ? function(t) {
return i(t, 1 === e.length ? e[0] : e)
}
: e
}
)) : [u];
var p = -1;
t = r(t, s(o));
var h = a(e, (function(e, n, i) {
return {
criteria: r(t, (function(t) {
return t(e)
}
)),
index: ++p,
value: e
}
}
));
return l(h, (function(e, t) {
return c(e, t, n)
}
))
}
}
, function(e, t, n) {
var r = n(483)
, i = n(484)
, o = n(273);
e.exports = function(e) {
var t = i(e);
return 1 == t.length && t[0][2] ? o(t[0][0], t[0][1]) : function(n) {
return n === e || r(n, e, t)
}
}
}
, function(e, t, n) {
var r = n(159)
, i = n(200);
e.exports = function(e, t, n, o) {
var a = n.length
, l = a
, s = !o;
if (null == e)
return !l;
for (e = Object(e); a--; ) {
var c = n[a];
if (s && c[2] ? c[1] !== e[c[0]] : !(c[0]in e))
return !1
}
for (; ++a < l; ) {
var u = (c = n[a])[0]
, d = e[u]
, p = c[1];
if (s && c[2]) {
if (void 0 === d && !(u in e))
return !1
} else {
var h = new r;
if (o)
var f = o(d, p, u, e, t, h);
if (!(void 0 === f ? i(p, d, 3, o, h) : f))
return !1
}
}
return !0
}
}
, function(e, t, n) {
var r = n(272)
, i = n(96);
e.exports = function(e) {
for (var t = i(e), n = t.length; n--; ) {
var o = t[n]
, a = e[o];
t[n] = [o, a, r(a)]
}
return t
}
}
, function(e, t, n) {
var r = n(200)
, i = n(3)
, o = n(486)
, a = n(198)
, l = n(272)
, s = n(273)
, c = n(124);
e.exports = function(e, t) {
return a(e) && l(t) ? s(c(e), t) : function(n) {
var a = i(n, e);
return void 0 === a && a === t ? o(n, e) : r(t, a, 3)
}
}
}
, function(e, t, n) {
var r = n(487)
, i = n(488);
e.exports = function(e, t) {
return null != e && i(e, t, r)
}
}
, function(e, t) {
e.exports = function(e, t) {
return null != e && t in Object(e)
}
}
, function(e, t, n) {
var r = n(197)
, i = n(122)
, o = n(16)
, a = n(145)
, l = n(193)
, s = n(124);
e.exports = function(e, t, n) {
for (var c = -1, u = (t = r(t, e)).length, d = !1; ++c < u; ) {
var p = s(t[c]);
if (!(d = null != e && n(e, p)))
break;
e = e[p]
}
return d || ++c != u ? d : !!(u = null == e ? 0 : e.length) && l(u) && a(p, u) && (o(e) || i(e))
}
}
, function(e, t, n) {
var r = n(490)
, i = n(491)
, o = n(198)
, a = n(124);
e.exports = function(e) {
return o(e) ? r(a(e)) : i(e)
}
}
, function(e, t) {
e.exports = function(e) {
return function(t) {
return null == t ? void 0 : t[e]
}
}
}
, function(e, t, n) {
var r = n(154);
e.exports = function(e) {
return function(t) {
return r(t, e)
}
}
}
, function(e, t, n) {
var r = n(83);
e.exports = function(e, t) {
return function(n, i) {
if (null == n)
return n;
if (!r(n))
return e(n, i);
for (var o = n.length, a = t ? o : -1, l = Object(n); (t ? a-- : ++a < o) && !1 !== i(l[a], a, l); )
;
return n
}
}
}
, function(e, t) {
e.exports = function(e, t) {
var n = e.length;
for (e.sort(t); n--; )
e[n] = e[n].value;
return e
}
}
, function(e, t, n) {
var r = n(495);
e.exports = function(e, t, n) {
for (var i = -1, o = e.criteria, a = t.criteria, l = o.length, s = n.length; ++i < l; ) {
var c = r(o[i], a[i]);
if (c)
return i >= s ? c : c * ("desc" == n[i] ? -1 : 1)
}
return e.index - t.index
}
}
, function(e, t, n) {
var r = n(116);
e.exports = function(e, t) {
if (e !== t) {
var n = void 0 !== e
, i = null === e
, o = e == e
, a = r(e)
, l = void 0 !== t
, s = null === t
, c = t == t
, u = r(t);
if (!s && !u && !a && e > t || a && l && c && !s && !u || i && l && c || !n && c || !o)
return 1;
if (!i && !a && !u && e < t || u && n && o && !i && !a || s && n && o || !l && o || !c)
return -1
}
return 0
}
}
, function(e, t, n) {
"use strict";
var r = n(142)
, i = "function" == typeof Symbol && Symbol.for
, o = i ? Symbol.for("react.element") : 60103
, a = i ? Symbol.for("react.portal") : 60106
, l = i ? Symbol.for("react.fragment") : 60107
, s = i ? Symbol.for("react.strict_mode") : 60108
, c = i ? Symbol.for("react.profiler") : 60114
, u = i ? Symbol.for("react.provider") : 60109
, d = i ? Symbol.for("react.context") : 60110
, p = i ? Symbol.for("react.forward_ref") : 60112
, h = i ? Symbol.for("react.suspense") : 60113
, f = i ? Symbol.for("react.memo") : 60115
, b = i ? Symbol.for("react.lazy") : 60116
, g = "function" == typeof Symbol && Symbol.iterator;
function m(e) {
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, n = 1; n < arguments.length; n++)
t += "&args[]=" + encodeURIComponent(arguments[n]);
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
}
var v = {
isMounted: function() {
return !1
},
enqueueForceUpdate: function() {},
enqueueReplaceState: function() {},
enqueueSetState: function() {}
}
, y = {};
function x(e, t, n) {
this.props = e,
this.context = t,
this.refs = y,
this.updater = n || v
}
function O() {}
function j(e, t, n) {
this.props = e,
this.context = t,
this.refs = y,
this.updater = n || v
}
x.prototype.isReactComponent = {},
x.prototype.setState = function(e, t) {
if ("object" != typeof e && "function" != typeof e && null != e)
throw Error(m(85));
this.updater.enqueueSetState(this, e, t, "setState")
}
,
x.prototype.forceUpdate = function(e) {
this.updater.enqueueForceUpdate(this, e, "forceUpdate")
}
,
O.prototype = x.prototype;
var k = j.prototype = new O;
k.constructor = j,
r(k, x.prototype),
k.isPureReactComponent = !0;
var w = {
current: null
}
, C = Object.prototype.hasOwnProperty
, _ = {
key: !0,
ref: !0,
__self: !0,
__source: !0
};
function M(e, t, n) {
var r, i = {}, a = null, l = null;
if (null != t)
for (r in void 0 !== t.ref && (l = t.ref),
void 0 !== t.key && (a = "" + t.key),
t)
C.call(t, r) && !_.hasOwnProperty(r) && (i[r] = t[r]);
var s = arguments.length - 2;
if (1 === s)
i.children = n;
else if (1 < s) {
for (var c = Array(s), u = 0; u < s; u++)
c[u] = arguments[u + 2];
i.children = c
}
if (e && e.defaultProps)
for (r in s = e.defaultProps)
void 0 === i[r] && (i[r] = s[r]);
return {
$$typeof: o,
type: e,
key: a,
ref: l,
props: i,
_owner: w.current
}
}
function S(e) {
return "object" == typeof e && null !== e && e.$$typeof === o
}
var A = /\/+/g
, T = [];
function E(e, t, n, r) {
if (T.length) {
var i = T.pop();
return i.result = e,
i.keyPrefix = t,
i.func = n,
i.context = r,
i.count = 0,
i
}
return {
result: e,
keyPrefix: t,
func: n,
context: r,
count: 0
}
}
function I(e) {
e.result = null,
e.keyPrefix = null,
e.func = null,
e.context = null,
e.count = 0,
10 > T.length && T.push(e)
}
function N(e, t, n, r) {
var i = typeof e;
"undefined" !== i && "boolean" !== i || (e = null);
var l = !1;
if (null === e)
l = !0;
else
switch (i) {
case "string":
case "number":
l = !0;
break;
case "object":
switch (e.$$typeof) {
case o:
case a:
l = !0
}
}
if (l)
return n(r, e, "" === t ? "." + D(e, 0) : t),
1;
if (l = 0,
t = "" === t ? "." : t + ":",
Array.isArray(e))
for (var s = 0; s < e.length; s++) {
var c = t + D(i = e[s], s);
l += N(i, c, n, r)
}
else if ("function" == typeof (c = null === e || "object" != typeof e ? null : "function" == typeof (c = g && e[g] || e["@@iterator"]) ? c : null))
for (e = c.call(e),
s = 0; !(i = e.next()).done; )
l += N(i = i.value, c = t + D(i, s++), n, r);
else if ("object" === i)
throw n = "" + e,
Error(m(31, "[object Object]" === n ? "object with keys {" + Object.keys(e).join(", ") + "}" : n, ""));
return l
}
function z(e, t, n) {
return null == e ? 0 : N(e, "", t, n)
}
function D(e, t) {
return "object" == typeof e && null !== e && null != e.key ? function(e) {
var t = {
"=": "=0",
":": "=2"
};
return "$" + ("" + e).replace(/[=:]/g, (function(e) {
return t[e]
}
))
}(e.key) : t.toString(36)
}
function L(e, t) {
e.func.call(e.context, t, e.count++)
}
function R(e, t, n) {
var r = e.result
, i = e.keyPrefix;
e = e.func.call(e.context, t, e.count++),
Array.isArray(e) ? P(e, r, n, (function(e) {
return e
}
)) : null != e && (S(e) && (e = function(e, t) {
return {
$$typeof: o,
type: e.type,
key: t,
ref: e.ref,
props: e.props,
_owner: e._owner
}
}(e, i + (!e.key || t && t.key === e.key ? "" : ("" + e.key).replace(A, "$&/") + "/") + n)),
r.push(e))
}
function P(e, t, n, r, i) {
var o = "";
null != n && (o = ("" + n).replace(A, "$&/") + "/"),
z(e, R, t = E(t, o, r, i)),
I(t)
}
var B = {
current: null
};
function F() {
var e = B.current;
if (null === e)
throw Error(m(321));
return e
}
var V = {
ReactCurrentDispatcher: B,
ReactCurrentBatchConfig: {
suspense: null
},
ReactCurrentOwner: w,
IsSomeRendererActing: {
current: !1
},
assign: r
};
t.Children = {
map: function(e, t, n) {
if (null == e)
return e;
var r = [];
return P(e, r, null, t, n),
r
},
forEach: function(e, t, n) {
if (null == e)
return e;
z(e, L, t = E(null, null, t, n)),
I(t)
},
count: function(e) {
return z(e, (function() {
return null
}
), null)
},
toArray: function(e) {
var t = [];
return P(e, t, null, (function(e) {
return e
}
)),
t
},
only: function(e) {
if (!S(e))
throw Error(m(143));
return e
}
},
t.Component = x,
t.Fragment = l,
t.Profiler = c,
t.PureComponent = j,
t.StrictMode = s,
t.Suspense = h,
t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = V,
t.cloneElement = function(e, t, n) {
if (null == e)
throw Error(m(267, e));
var i = r({}, e.props)
, a = e.key
, l = e.ref
, s = e._owner;
if (null != t) {
if (void 0 !== t.ref && (l = t.ref,
s = w.current),
void 0 !== t.key && (a = "" + t.key),
e.type && e.type.defaultProps)
var c = e.type.defaultProps;
for (u in t)
C.call(t, u) && !_.hasOwnProperty(u) && (i[u] = void 0 === t[u] && void 0 !== c ? c[u] : t[u])
}
var u = arguments.length - 2;
if (1 === u)
i.children = n;
else if (1 < u) {
c = Array(u);
for (var d = 0; d < u; d++)
c[d] = arguments[d + 2];
i.children = c
}
return {
$$typeof: o,
type: e.type,
key: a,
ref: l,
props: i,
_owner: s
}
}
,
t.createContext = function(e, t) {
return void 0 === t && (t = null),
(e = {
$$typeof: d,
_calculateChangedBits: t,
_currentValue: e,
_currentValue2: e,
_threadCount: 0,
Provider: null,
Consumer: null
}).Provider = {
$$typeof: u,
_context: e
},
e.Consumer = e
}
,
t.createElement = M,
t.createFactory = function(e) {
var t = M.bind(null, e);
return t.type = e,
t
}
,
t.createRef = function() {
return {
current: null
}
}
,
t.forwardRef = function(e) {
return {
$$typeof: p,
render: e
}
}
,
t.isValidElement = S,
t.lazy = function(e) {
return {
$$typeof: b,
_ctor: e,
_status: -1,
_result: null
}
}
,
t.memo = function(e, t) {
return {
$$typeof: f,
type: e,
compare: void 0 === t ? null : t
}
}
,
t.useCallback = function(e, t) {
return F().useCallback(e, t)
}
,
t.useContext = function(e, t) {
return F().useContext(e, t)
}
,
t.useDebugValue = function() {}
,
t.useEffect = function(e, t) {
return F().useEffect(e, t)
}
,
t.useImperativeHandle = function(e, t, n) {
return F().useImperativeHandle(e, t, n)
}
,
t.useLayoutEffect = function(e, t) {
return F().useLayoutEffect(e, t)
}
,
t.useMemo = function(e, t) {
return F().useMemo(e, t)
}
,
t.useReducer = function(e, t, n) {
return F().useReducer(e, t, n)
}
,
t.useRef = function(e) {
return F().useRef(e)
}
,
t.useState = function(e) {
return F().useState(e)
}
,
t.version = "16.14.0"
}
, function(e, t, n) {
var r = n(498)
, i = n(499)
, o = n(97)
, a = n(16);
e.exports = function(e, t) {
return function(n, l) {
var s = a(n) ? r : i
, c = t ? t() : {};
return s(n, e, o(l, 2), c)
}
}
}
, function(e, t) {
e.exports = function(e, t, n, r) {
for (var i = -1, o = null == e ? 0 : e.length; ++i < o; ) {
var a = e[i];
t(r, a, n(a), e)
}
return r
}
}
, function(e, t, n) {
var r = n(162);
e.exports = function(e, t, n, i) {
return r(e, (function(e, r, o) {
t(i, e, n(e), o)
}
)),
i
}
}
, function(e, t, n) {
var r = n(230)
, i = n(191)
, o = n(232)
, a = n(75);
e.exports = function(e) {
return function(t) {
t = a(t);
var n = i(t) ? o(t) : void 0
, l = n ? n[0] : t.charAt(0)
, s = n ? r(n, 1).join("") : t.slice(1);
return l[e]() + s
}
}
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
if (!t(e[n], n, e))
return !1;
return !0
}
}
, function(e, t, n) {
var r = n(162);
e.exports = function(e, t) {
var n = !0;
return r(e, (function(e, r, i) {
return n = !!t(e, r, i)
}
)),
n
}
}
, function(e, t, n) {
var r, i, o;
!function(a, l) {
"use strict";
e.exports ? e.exports = l(n(91)) : (i = [n(91)],
void 0 === (o = "function" == typeof (r = l) ? r.apply(t, i) : r) || (e.exports = o))
}(0, (function(e) {
"use strict";
void 0 === e.version && e.default && (e = e.default);
var t, n = {}, r = {}, i = {}, o = {}, a = {};
e && "string" == typeof e.version || S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
var l = e.version.split(".")
, s = +l[0]
, c = +l[1];
function u(e) {
return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48
}
function d(e) {
var t = 0
, n = e.split(".")
, r = n[0]
, i = n[1] || ""
, o = 1
, a = 0
, l = 1;
for (45 === e.charCodeAt(0) && (t = 1,
l = -1); t < r.length; t++)
a = 60 * a + u(r.charCodeAt(t));
for (t = 0; t < i.length; t++)
o /= 60,
a += u(i.charCodeAt(t)) * o;
return a * l
}
function p(e) {
for (var t = 0; t < e.length; t++)
e[t] = d(e[t])
}
function h(e, t) {
var n, r = [];
for (n = 0; n < t.length; n++)
r[n] = e[t[n]];
return r
}
function f(e) {
var t = e.split("|")
, n = t[2].split(" ")
, r = t[3].split("")
, i = t[4].split(" ");
return p(n),
p(r),
p(i),
function(e, t) {
for (var n = 0; n < t; n++)
e[n] = Math.round((e[n - 1] || 0) + 6e4 * e[n]);
e[t - 1] = 1 / 0
}(i, r.length),
{
name: t[0],
abbrs: h(t[1].split(" "), r),
offsets: h(n, r),
untils: i,
population: 0 | t[5]
}
}
function b(e) {
e && this._set(f(e))
}
function g(e, t) {
this.name = e,
this.zones = t
}
function m(e) {
var t = e.toTimeString()
, n = t.match(/\([a-z ]+\)/i);
"GMT" === (n = n && n[0] ? (n = n[0].match(/[A-Z]/g)) ? n.join("") : void 0 : (n = t.match(/[A-Z]{3,5}/g)) ? n[0] : void 0) && (n = void 0),
this.at = +e,
this.abbr = n,
this.offset = e.getTimezoneOffset()
}
function v(e) {
this.zone = e,
this.offsetScore = 0,
this.abbrScore = 0
}
function y(e, t) {
for (var n, r; r = 6e4 * ((t.at - e.at) / 12e4 | 0); )
(n = new m(new Date(e.at + r))).offset === e.offset ? e = n : t = n;
return e
}
function x(e, t) {
return e.offsetScore !== t.offsetScore ? e.offsetScore - t.offsetScore : e.abbrScore !== t.abbrScore ? e.abbrScore - t.abbrScore : e.zone.population !== t.zone.population ? t.zone.population - e.zone.population : t.zone.name.localeCompare(e.zone.name)
}
function O(e, t) {
var n, r;
for (p(t),
n = 0; n < t.length; n++)
r = t[n],
a[r] = a[r] || {},
a[r][e] = !0
}
function j(e) {
var t, n, r, i = e.length, l = {}, s = [];
for (t = 0; t < i; t++)
for (n in r = a[e[t].offset] || {})
r.hasOwnProperty(n) && (l[n] = !0);
for (t in l)
l.hasOwnProperty(t) && s.push(o[t]);
return s
}
function k(e) {
return (e || "").toLowerCase().replace(/\//g, "_")
}
function w(e) {
var t, r, i, a;
for ("string" == typeof e && (e = [e]),
t = 0; t < e.length; t++)
a = k(r = (i = e[t].split("|"))[0]),
n[a] = e[t],
o[a] = r,
O(a, i[2].split(" "))
}
function C(e, t) {
e = k(e);
var i, a = n[e];
return a instanceof b ? a : "string" == typeof a ? (a = new b(a),
n[e] = a,
a) : r[e] && t !== C && (i = C(r[e], C)) ? ((a = n[e] = new b)._set(i),
a.name = o[e],
a) : null
}
function _(e) {
var t, n, i, a;
for ("string" == typeof e && (e = [e]),
t = 0; t < e.length; t++)
i = k((n = e[t].split("|"))[0]),
a = k(n[1]),
r[i] = a,
o[i] = n[0],
r[a] = i,
o[a] = n[1]
}
function M(e) {
var t = "X" === e._f || "x" === e._f;
return !(!e._a || void 0 !== e._tzm || t)
}
function S(e) {
"undefined" != typeof console && "function" == typeof console.error && console.error(e)
}
function A(t) {
var n = Array.prototype.slice.call(arguments, 0, -1)
, r = arguments[arguments.length - 1]
, i = C(r)
, o = e.utc.apply(null, n);
return i && !e.isMoment(t) && M(o) && o.add(i.parse(o), "minutes"),
o.tz(r),
o
}
(s < 2 || 2 === s && c < 6) && S("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + e.version + ". See momentjs.com"),
b.prototype = {
_set: function(e) {
this.name = e.name,
this.abbrs = e.abbrs,
this.untils = e.untils,
this.offsets = e.offsets,
this.population = e.population
},
_index: function(e) {
var t, n = +e, r = this.untils;
for (t = 0; t < r.length; t++)
if (n < r[t])
return t
},
countries: function() {
var e = this.name;
return Object.keys(i).filter((function(t) {
return -1 !== i[t].zones.indexOf(e)
}
))
},
parse: function(e) {
var t, n, r, i, o = +e, a = this.offsets, l = this.untils, s = l.length - 1;
for (i = 0; i < s; i++)
if (t = a[i],
n = a[i + 1],
r = a[i ? i - 1 : i],
t < n && A.moveAmbiguousForward ? t = n : t > r && A.moveInvalidForward && (t = r),
o < l[i] - 6e4 * t)
return a[i];
return a[s]
},
abbr: function(e) {
return this.abbrs[this._index(e)]
},
offset: function(e) {
return S("zone.offset has been deprecated in favor of zone.utcOffset"),
this.offsets[this._index(e)]
},
utcOffset: function(e) {
return this.offsets[this._index(e)]
}
},
v.prototype.scoreOffsetAt = function(e) {
this.offsetScore += Math.abs(this.zone.utcOffset(e.at) - e.offset),
this.zone.abbr(e.at).replace(/[^A-Z]/g, "") !== e.abbr && this.abbrScore++
}
,
A.version = "0.5.34",
A.dataVersion = "",
A._zones = n,
A._links = r,
A._names = o,
A._countries = i,
A.add = w,
A.link = _,
A.load = function(e) {
w(e.zones),
_(e.links),
function(e) {
var t, n, r, o;
if (e && e.length)
for (t = 0; t < e.length; t++)
n = (o = e[t].split("|"))[0].toUpperCase(),
r = o[1].split(" "),
i[n] = new g(n,r)
}(e.countries),
A.dataVersion = e.version
}
,
A.zone = C,
A.zoneExists = function e(t) {
return e.didShowError || (e.didShowError = !0,
S("moment.tz.zoneExists('" + t + "') has been deprecated in favor of !moment.tz.zone('" + t + "')")),
!!C(t)
}
,
A.guess = function(e) {
return t && !e || (t = function() {
try {
var e = Intl.DateTimeFormat().resolvedOptions().timeZone;
if (e && e.length > 3) {
var t = o[k(e)];
if (t)
return t;
S("Moment Timezone found " + e + " from the Intl api, but did not have that data loaded.")
}
} catch (e) {}
var n, r, i, a = function() {
var e, t, n, r = (new Date).getFullYear() - 2, i = new m(new Date(r,0,1)), o = [i];
for (n = 1; n < 48; n++)
(t = new m(new Date(r,n,1))).offset !== i.offset && (e = y(i, t),
o.push(e),
o.push(new m(new Date(e.at + 6e4)))),
i = t;
for (n = 0; n < 4; n++)
o.push(new m(new Date(r + n,0,1))),
o.push(new m(new Date(r + n,6,1)));
return o
}(), l = a.length, s = j(a), c = [];
for (r = 0; r < s.length; r++) {
for (n = new v(C(s[r]),l),
i = 0; i < l; i++)
n.scoreOffsetAt(a[i]);
c.push(n)
}
return c.sort(x),
c.length > 0 ? c[0].zone.name : void 0
}()),
t
}
,
A.names = function() {
var e, t = [];
for (e in o)
o.hasOwnProperty(e) && (n[e] || n[r[e]]) && o[e] && t.push(o[e]);
return t.sort()
}
,
A.Zone = b,
A.unpack = f,
A.unpackBase60 = d,
A.needsOffset = M,
A.moveInvalidForward = !0,
A.moveAmbiguousForward = !1,
A.countries = function() {
return Object.keys(i)
}
,
A.zonesForCountry = function(e, t) {
var n;
if (n = (n = e).toUpperCase(),
!(e = i[n] || null))
return null;
var r = e.zones.sort();
return t ? r.map((function(e) {
return {
name: e,
offset: C(e).utcOffset(new Date)
}
}
)) : r
}
;
var T, E = e.fn;
function I(e) {
return function() {
return this._z ? this._z.abbr(this) : e.call(this)
}
}
function N(e) {
return function() {
return this._z = null,
e.apply(this, arguments)
}
}
e.tz = A,
e.defaultZone = null,
e.updateOffset = function(t, n) {
var r, i = e.defaultZone;
if (void 0 === t._z && (i && M(t) && !t._isUTC && (t._d = e.utc(t._a)._d,
t.utc().add(i.parse(t), "minutes")),
t._z = i),
t._z)
if (r = t._z.utcOffset(t),
Math.abs(r) < 16 && (r /= 60),
void 0 !== t.utcOffset) {
var o = t._z;
t.utcOffset(-r, n),
t._z = o
} else
t.zone(r, n)
}
,
E.tz = function(t, n) {
if (t) {
if ("string" != typeof t)
throw new Error("Time zone name must be a string, got " + t + " [" + typeof t + "]");
return this._z = C(t),
this._z ? e.updateOffset(this, n) : S("Moment Timezone has no data for " + t + ". See http://momentjs.com/timezone/docs/#/data-loading/."),
this
}
if (this._z)
return this._z.name
}
,
E.zoneName = I(E.zoneName),
E.zoneAbbr = I(E.zoneAbbr),
E.utc = N(E.utc),
E.local = N(E.local),
E.utcOffset = (T = E.utcOffset,
function() {
return arguments.length > 0 && (this._z = null),
T.apply(this, arguments)
}
),
e.tz.setDefault = function(t) {
return (s < 2 || 2 === s && c < 9) && S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + e.version + "."),
e.defaultZone = t ? C(t) : null,
e
}
;
var z = e.momentProperties;
return "[object Array]" === Object.prototype.toString.call(z) ? (z.push("_z"),
z.push("_a")) : z && (z._z = null),
e
}
))
}
, function(e) {
e.exports = JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')
}
, function(e, t, n) {
var r = n(154)
, i = n(506);
e.exports = function(e, t, n, o) {
return i(e, t, n(r(e, t)), o)
}
}
, function(e, t, n) {
var r = n(161)
, i = n(197)
, o = n(145)
, a = n(30)
, l = n(124);
e.exports = function(e, t, n, s) {
if (!a(e))
return e;
for (var c = -1, u = (t = i(t, e)).length, d = u - 1, p = e; null != p && ++c < u; ) {
var h = l(t[c])
, f = n;
if ("__proto__" === h || "constructor" === h || "prototype" === h)
return e;
if (c != d) {
var b = p[h];
void 0 === (f = s ? s(b, h, p) : void 0) && (f = a(b) ? b : o(t[c + 1]) ? [] : {})
}
r(p, h, f),
p = p[h]
}
return e
}
}
, function(e, t, n) {}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.flattenNames = void 0;
var r = l(n(48))
, i = l(n(206))
, o = l(n(269))
, a = l(n(209));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
var s = t.flattenNames = function e() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []
, n = [];
return (0,
a.default)(t, (function(t) {
Array.isArray(t) ? e(t).map((function(e) {
return n.push(e)
}
)) : (0,
o.default)(t) ? (0,
i.default)(t, (function(e, t) {
!0 === e && n.push(t),
n.push(t + "-" + e)
}
)) : (0,
r.default)(t) && n.push(t)
}
)),
n
}
;
t.default = s
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.mergeClasses = void 0;
var r = a(n(206))
, i = a(n(510))
, o = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
;
function a(e) {
return e && e.__esModule ? e : {
default: e
}
}
var l = t.mergeClasses = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : []
, n = e.default && (0,
i.default)(e.default) || {};
return t.map((function(t) {
var i = e[t];
return i && (0,
r.default)(i, (function(e, t) {
n[t] || (n[t] = {}),
n[t] = o({}, n[t], i[t])
}
)),
t
}
)),
n
}
;
t.default = l
}
, function(e, t, n) {
var r = n(511);
e.exports = function(e) {
return r(e, 5)
}
}
, function(e, t, n) {
var r = n(159)
, i = n(512)
, o = n(161)
, a = n(513)
, l = n(514)
, s = n(266)
, c = n(152)
, u = n(515)
, d = n(516)
, p = n(258)
, h = n(517)
, f = n(121)
, b = n(518)
, g = n(519)
, m = n(268)
, v = n(16)
, y = n(123)
, x = n(523)
, O = n(30)
, j = n(525)
, k = n(96)
, w = n(125)
, C = "[object Arguments]"
, _ = "[object Function]"
, M = "[object Object]"
, S = {};
S[C] = S["[object Array]"] = S["[object ArrayBuffer]"] = S["[object DataView]"] = S["[object Boolean]"] = S["[object Date]"] = S["[object Float32Array]"] = S["[object Float64Array]"] = S["[object Int8Array]"] = S["[object Int16Array]"] = S["[object Int32Array]"] = S["[object Map]"] = S["[object Number]"] = S[M] = S["[object RegExp]"] = S["[object Set]"] = S["[object String]"] = S["[object Symbol]"] = S["[object Uint8Array]"] = S["[object Uint8ClampedArray]"] = S["[object Uint16Array]"] = S["[object Uint32Array]"] = !0,
S["[object Error]"] = S[_] = S["[object WeakMap]"] = !1,
e.exports = function e(t, n, A, T, E, I) {
var N, z = 1 & n, D = 2 & n, L = 4 & n;
if (A && (N = E ? A(t, T, E, I) : A(t)),
void 0 !== N)
return N;
if (!O(t))
return t;
var R = v(t);
if (R) {
if (N = b(t),
!z)
return c(t, N)
} else {
var P = f(t)
, B = P == _ || "[object GeneratorFunction]" == P;
if (y(t))
return s(t, z);
if (P == M || P == C || B && !E) {
if (N = D || B ? {} : m(t),
!z)
return D ? d(t, l(N, t)) : u(t, a(N, t))
} else {
if (!S[P])
return E ? t : {};
N = g(t, P, z)
}
}
I || (I = new r);
var F = I.get(t);
if (F)
return F;
I.set(t, N),
j(t) ? t.forEach((function(r) {
N.add(e(r, n, A, r, t, I))
}
)) : x(t) && t.forEach((function(r, i) {
N.set(i, e(r, n, A, i, t, I))
}
));
var V = R ? void 0 : (L ? D ? h : p : D ? w : k)(t);
return i(V || t, (function(r, i) {
V && (r = t[i = r]),
o(N, i, e(r, n, A, i, t, I))
}
)),
N
}
}
, function(e, t) {
e.exports = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e); )
;
return e
}
}
, function(e, t, n) {
var r = n(109)
, i = n(96);
e.exports = function(e, t) {
return e && r(t, i(t), e)
}
}
, function(e, t, n) {
var r = n(109)
, i = n(125);
e.exports = function(e, t) {
return e && r(t, i(t), e)
}
}
, function(e, t, n) {
var r = n(109)
, i = n(202);
e.exports = function(e, t) {
return r(e, i(e), t)
}
}
, function(e, t, n) {
var r = n(109)
, i = n(279);
e.exports = function(e, t) {
return r(e, i(e), t)
}
}
, function(e, t, n) {
var r = n(259)
, i = n(279)
, o = n(125);
e.exports = function(e) {
return r(e, o, i)
}
}
, function(e, t) {
var n = Object.prototype.hasOwnProperty;
e.exports = function(e) {
var t = e.length
, r = new e.constructor(t);
return t && "string" == typeof e[0] && n.call(e, "index") && (r.index = e.index,
r.input = e.input),
r
}
}
, function(e, t, n) {
var r = n(203)
, i = n(520)
, o = n(521)
, a = n(522)
, l = n(267);
e.exports = function(e, t, n) {
var s = e.constructor;
switch (t) {
case "[object ArrayBuffer]":
return r(e);
case "[object Boolean]":
case "[object Date]":
return new s(+e);
case "[object DataView]":
return i(e, n);
case "[object Float32Array]":
case "[object Float64Array]":
case "[object Int8Array]":
case "[object Int16Array]":
case "[object Int32Array]":
case "[object Uint8Array]":
case "[object Uint8ClampedArray]":
case "[object Uint16Array]":
case "[object Uint32Array]":
return l(e, n);
case "[object Map]":
case "[object Set]":
return new s;
case "[object Number]":
case "[object String]":
return new s(e);
case "[object RegExp]":
return o(e);
case "[object Symbol]":
return a(e)
}
}
}
, function(e, t, n) {
var r = n(203);
e.exports = function(e, t) {
var n = t ? r(e.buffer) : e.buffer;
return new e.constructor(n,e.byteOffset,e.byteLength)
}
}
, function(e, t) {
var n = /\w*$/;
e.exports = function(e) {
var t = new e.constructor(e.source,n.exec(e));
return t.lastIndex = e.lastIndex,
t
}
}
, function(e, t, n) {
var r = n(107)
, i = r ? r.prototype : void 0
, o = i ? i.valueOf : void 0;
e.exports = function(e) {
return o ? Object(o.call(e)) : {}
}
}
, function(e, t, n) {
var r = n(524)
, i = n(119)
, o = n(146)
, a = o && o.isMap
, l = a ? i(a) : r;
e.exports = l
}
, function(e, t, n) {
var r = n(121)
, i = n(64);
e.exports = function(e) {
return i(e) && "[object Map]" == r(e)
}
}
, function(e, t, n) {
var r = n(526)
, i = n(119)
, o = n(146)
, a = o && o.isSet
, l = a ? i(a) : r;
e.exports = l
}
, function(e, t, n) {
var r = n(121)
, i = n(64);
e.exports = function(e) {
return i(e) && "[object Set]" == r(e)
}
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.autoprefix = void 0;
var r, i = (r = n(206)) && r.__esModule ? r : {
default: r
}, o = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, a = {
borderRadius: function(e) {
return {
msBorderRadius: e,
MozBorderRadius: e,
OBorderRadius: e,
WebkitBorderRadius: e,
borderRadius: e
}
},
boxShadow: function(e) {
return {
msBoxShadow: e,
MozBoxShadow: e,
OBoxShadow: e,
WebkitBoxShadow: e,
boxShadow: e
}
},
userSelect: function(e) {
return {
WebkitTouchCallout: e,
KhtmlUserSelect: e,
MozUserSelect: e,
msUserSelect: e,
WebkitUserSelect: e,
userSelect: e
}
},
flex: function(e) {
return {
WebkitBoxFlex: e,
MozBoxFlex: e,
WebkitFlex: e,
msFlex: e,
flex: e
}
},
flexBasis: function(e) {
return {
WebkitFlexBasis: e,
flexBasis: e
}
},
justifyContent: function(e) {
return {
WebkitJustifyContent: e,
justifyContent: e
}
},
transition: function(e) {
return {
msTransition: e,
MozTransition: e,
OTransition: e,
WebkitTransition: e,
transition: e
}
},
transform: function(e) {
return {
msTransform: e,
MozTransform: e,
OTransform: e,
WebkitTransform: e,
transform: e
}
},
absolute: function(e) {
var t = e && e.split(" ");
return {
position: "absolute",
top: t && t[0],
right: t && t[1],
bottom: t && t[2],
left: t && t[3]
}
},
extend: function(e, t) {
return t[e] || {
extend: e
}
}
}, l = t.autoprefix = function(e) {
var t = {};
return (0,
i.default)(e, (function(e, n) {
var r = {};
(0,
i.default)(e, (function(e, t) {
var n = a[t];
n ? r = o({}, r, n(e)) : r[t] = e
}
)),
t[n] = r
}
)),
t
}
;
t.default = l
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.hover = void 0;
var r, i = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, o = (r = n(1)) && r.__esModule ? r : {
default: r
};
function a(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}
var l = t.hover = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "span";
return function(n) {
function r() {
var n, l, s;
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, r);
for (var c = arguments.length, u = Array(c), d = 0; d < c; d++)
u[d] = arguments[d];
return l = s = a(this, (n = r.__proto__ || Object.getPrototypeOf(r)).call.apply(n, [this].concat(u))),
s.state = {
hover: !1
},
s.handleMouseOver = function() {
return s.setState({
hover: !0
})
}
,
s.handleMouseOut = function() {
return s.setState({
hover: !1
})
}
,
s.render = function() {
return o.default.createElement(t, {
onMouseOver: s.handleMouseOver,
onMouseOut: s.handleMouseOut
}, o.default.createElement(e, i({}, s.props, s.state)))
}
,
a(s, l)
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(r, n),
r
}(o.default.Component)
}
;
t.default = l
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.active = void 0;
var r, i = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, o = (r = n(1)) && r.__esModule ? r : {
default: r
};
function a(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}
var l = t.active = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "span";
return function(n) {
function r() {
var n, l, s;
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, r);
for (var c = arguments.length, u = Array(c), d = 0; d < c; d++)
u[d] = arguments[d];
return l = s = a(this, (n = r.__proto__ || Object.getPrototypeOf(r)).call.apply(n, [this].concat(u))),
s.state = {
active: !1
},
s.handleMouseDown = function() {
return s.setState({
active: !0
})
}
,
s.handleMouseUp = function() {
return s.setState({
active: !1
})
}
,
s.render = function() {
return o.default.createElement(t, {
onMouseDown: s.handleMouseDown,
onMouseUp: s.handleMouseUp
}, o.default.createElement(e, i({}, s.props, s.state)))
}
,
a(s, l)
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(r, n),
r
}(o.default.Component)
}
;
t.default = l
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.default = function(e, t) {
var n = {}
, r = function(e) {
var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
n[e] = t
};
return 0 === e && r("first-child"),
e === t - 1 && r("last-child"),
(0 === e || e % 2 == 0) && r("even"),
1 === Math.abs(e % 2) && r("odd"),
r("nth-child", e),
n
}
}
, function(e, t, n) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var r = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, i = n(1)
, o = l(i)
, a = l(n(18));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
var s = function(e) {
function t(e) {
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
var n = function(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));
return n.scrollListener = n.scrollListener.bind(n),
n.eventListenerOptions = n.eventListenerOptions.bind(n),
n.mousewheelListener = n.mousewheelListener.bind(n),
n
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
r(t, [{
key: "componentDidMount",
value: function() {
this.pageLoaded = this.props.pageStart,
this.options = this.eventListenerOptions(),
this.attachScrollListener()
}
}, {
key: "componentDidUpdate",
value: function() {
if (this.props.isReverse && this.loadMore) {
var e = this.getParentElement(this.scrollComponent);
e.scrollTop = e.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop,
this.loadMore = !1
}
this.attachScrollListener()
}
}, {
key: "componentWillUnmount",
value: function() {
this.detachScrollListener(),
this.detachMousewheelListener()
}
}, {
key: "isPassiveSupported",
value: function() {
var e = !1
, t = {
get passive() {
e = !0
}
};
try {
document.addEventListener("test", null, t),
document.removeEventListener("test", null, t)
} catch (e) {}
return e
}
}, {
key: "eventListenerOptions",
value: function() {
var e = this.props.useCapture;
return this.isPassiveSupported() && (e = {
useCapture: this.props.useCapture,
passive: !0
}),
e
}
}, {
key: "setDefaultLoader",
value: function(e) {
this.defaultLoader = e
}
}, {
key: "detachMousewheelListener",
value: function() {
var e = window;
!1 === this.props.useWindow && (e = this.scrollComponent.parentNode),
e.removeEventListener("mousewheel", this.mousewheelListener, this.options ? this.options : this.props.useCapture)
}
}, {
key: "detachScrollListener",
value: function() {
var e = window;
!1 === this.props.useWindow && (e = this.getParentElement(this.scrollComponent)),
e.removeEventListener("scroll", this.scrollListener, this.options ? this.options : this.props.useCapture),
e.removeEventListener("resize", this.scrollListener, this.options ? this.options : this.props.useCapture)
}
}, {
key: "getParentElement",
value: function(e) {
var t = this.props.getScrollParent && this.props.getScrollParent();
return null != t ? t : e && e.parentNode
}
}, {
key: "filterProps",
value: function(e) {
return e
}
}, {
key: "attachScrollListener",
value: function() {
var e = this.getParentElement(this.scrollComponent);
if (this.props.hasMore && e) {
var t = window;
!1 === this.props.useWindow && (t = e),
t.addEventListener("mousewheel", this.mousewheelListener, this.options ? this.options : this.props.useCapture),
t.addEventListener("scroll", this.scrollListener, this.options ? this.options : this.props.useCapture),
t.addEventListener("resize", this.scrollListener, this.options ? this.options : this.props.useCapture),
this.props.initialLoad && this.scrollListener()
}
}
}, {
key: "mousewheelListener",
value: function(e) {
1 !== e.deltaY || this.isPassiveSupported() || e.preventDefault()
}
}, {
key: "scrollListener",
value: function() {
var e = this.scrollComponent
, t = window
, n = this.getParentElement(e)
, r = void 0;
if (this.props.useWindow) {
var i = document.documentElement || document.body.parentNode || document.body
, o = void 0 !== t.pageYOffset ? t.pageYOffset : i.scrollTop;
r = this.props.isReverse ? o : this.calculateOffset(e, o)
} else
r = this.props.isReverse ? n.scrollTop : e.scrollHeight - n.scrollTop - n.clientHeight;
r < Number(this.props.threshold) && e && null !== e.offsetParent && (this.detachScrollListener(),
this.beforeScrollHeight = n.scrollHeight,
this.beforeScrollTop = n.scrollTop,
"function" == typeof this.props.loadMore && (this.props.loadMore(this.pageLoaded += 1),
this.loadMore = !0))
}
}, {
key: "calculateOffset",
value: function(e, t) {
return e ? this.calculateTopPosition(e) + (e.offsetHeight - t - window.innerHeight) : 0
}
}, {
key: "calculateTopPosition",
value: function(e) {
return e ? e.offsetTop + this.calculateTopPosition(e.offsetParent) : 0
}
}, {
key: "render",
value: function() {
var e = this
, t = this.filterProps(this.props)
, n = t.children
, r = t.element
, i = t.hasMore
, a = (t.initialLoad,
t.isReverse)
, l = t.loader
, s = (t.loadMore,
t.pageStart,
t.ref)
, c = (t.threshold,
t.useCapture,
t.useWindow,
t.getScrollParent,
function(e, t) {
var n = {};
for (var r in e)
t.indexOf(r) >= 0 || Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
return n
}(t, ["children", "element", "hasMore", "initialLoad", "isReverse", "loader", "loadMore", "pageStart", "ref", "threshold", "useCapture", "useWindow", "getScrollParent"]));
c.ref = function(t) {
e.scrollComponent = t,
s && s(t)
}
;
var u = [n];
return i && (l ? a ? u.unshift(l) : u.push(l) : this.defaultLoader && (a ? u.unshift(this.defaultLoader) : u.push(this.defaultLoader))),
o.default.createElement(r, c, u)
}
}]),
t
}(i.Component);
s.propTypes = {
children: a.default.node.isRequired,
element: a.default.node,
hasMore: a.default.bool,
initialLoad: a.default.bool,
isReverse: a.default.bool,
loader: a.default.node,
loadMore: a.default.func.isRequired,
pageStart: a.default.number,
ref: a.default.func,
getScrollParent: a.default.func,
threshold: a.default.number,
useCapture: a.default.bool,
useWindow: a.default.bool
},
s.defaultProps = {
element: "div",
hasMore: !1,
initialLoad: !0,
pageStart: 0,
ref: null,
threshold: 250,
useWindow: !0,
isReverse: !1,
useCapture: !1,
loader: null,
getScrollParent: null
},
t.default = s,
e.exports = t.default
}
, function(e, t, n) {
var r = n(162);
e.exports = function(e, t) {
var n = [];
return r(e, (function(e, r, i) {
t(e, r, i) && n.push(e)
}
)),
n
}
}
, function(e, t, n) {
var r = n(255)
, i = n(534)
, o = n(535)
, a = n(256)
, l = n(536)
, s = n(201);
e.exports = function(e, t, n) {
var c = -1
, u = i
, d = e.length
, p = !0
, h = []
, f = h;
if (n)
p = !1,
u = o;
else if (d >= 200) {
var b = t ? null : l(e);
if (b)
return s(b);
p = !1,
u = a,
f = new r
} else
f = t ? [] : h;
e: for (; ++c < d; ) {
var g = e[c]
, m = t ? t(g) : g;
if (g = n || 0 !== g ? g : 0,
p && m == m) {
for (var v = f.length; v--; )
if (f[v] === m)
continue e;
t && f.push(m),
h.push(g)
} else
u(f, m, n) || (f !== h && f.push(m),
h.push(g))
}
return h
}
}
, function(e, t, n) {
var r = n(195);
e.exports = function(e, t) {
return !(null == e || !e.length) && r(e, t, 0) > -1
}
}
, function(e, t) {
e.exports = function(e, t, n) {
for (var r = -1, i = null == e ? 0 : e.length; ++r < i; )
if (n(t, e[r]))
return !0;
return !1
}
}
, function(e, t, n) {
var r = n(236)
, i = n(537)
, o = n(201)
, a = r && 1 / o(new r([, -0]))[1] == 1 / 0 ? function(e) {
return new r(e)
}
: i;
e.exports = a
}
, function(e, t) {
e.exports = function() {}
}
, function(e, t, n) {}
, function(e, t) {}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
function() {
var e = r
, t = e.lib.WordArray;
function n(e, n, r) {
for (var i = [], o = 0, a = 0; a < n; a++)
if (a % 4) {
var l = r[e.charCodeAt(a - 1)] << a % 4 * 2 | r[e.charCodeAt(a)] >>> 6 - a % 4 * 2;
i[o >>> 2] |= l << 24 - o % 4 * 8,
o++
}
return t.create(i, o)
}
e.enc.Base64 = {
stringify: function(e) {
var t = e.words
, n = e.sigBytes
, r = this._map;
e.clamp();
for (var i = [], o = 0; o < n; o += 3)
for (var a = (t[o >>> 2] >>> 24 - o % 4 * 8 & 255) << 16 | (t[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255) << 8 | t[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, l = 0; l < 4 && o + .75 * l < n; l++)
i.push(r.charAt(a >>> 6 * (3 - l) & 63));
var s = r.charAt(64);
if (s)
for (; i.length % 4; )
i.push(s);
return i.join("")
},
parse: function(e) {
var t = e.length
, r = this._map
, i = this._reverseMap;
if (!i) {
i = this._reverseMap = [];
for (var o = 0; o < r.length; o++)
i[r.charCodeAt(o)] = o
}
var a = r.charAt(64);
if (a) {
var l = e.indexOf(a);
-1 !== l && (t = l)
}
return n(e, t, i)
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
}
}(),
r.enc.Base64)
}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
function(e) {
var t = r
, n = t.lib
, i = n.WordArray
, o = n.Hasher
, a = t.algo
, l = [];
!function() {
for (var t = 0; t < 64; t++)
l[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0
}();
var s = a.MD5 = o.extend({
_doReset: function() {
this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878])
},
_doProcessBlock: function(e, t) {
for (var n = 0; n < 16; n++) {
var r = t + n
, i = e[r];
e[r] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
}
var o = this._hash.words
, a = e[t + 0]
, s = e[t + 1]
, h = e[t + 2]
, f = e[t + 3]
, b = e[t + 4]
, g = e[t + 5]
, m = e[t + 6]
, v = e[t + 7]
, y = e[t + 8]
, x = e[t + 9]
, O = e[t + 10]
, j = e[t + 11]
, k = e[t + 12]
, w = e[t + 13]
, C = e[t + 14]
, _ = e[t + 15]
, M = o[0]
, S = o[1]
, A = o[2]
, T = o[3];
M = c(M, S, A, T, a, 7, l[0]),
T = c(T, M, S, A, s, 12, l[1]),
A = c(A, T, M, S, h, 17, l[2]),
S = c(S, A, T, M, f, 22, l[3]),
M = c(M, S, A, T, b, 7, l[4]),
T = c(T, M, S, A, g, 12, l[5]),
A = c(A, T, M, S, m, 17, l[6]),
S = c(S, A, T, M, v, 22, l[7]),
M = c(M, S, A, T, y, 7, l[8]),
T = c(T, M, S, A, x, 12, l[9]),
A = c(A, T, M, S, O, 17, l[10]),
S = c(S, A, T, M, j, 22, l[11]),
M = c(M, S, A, T, k, 7, l[12]),
T = c(T, M, S, A, w, 12, l[13]),
A = c(A, T, M, S, C, 17, l[14]),
M = u(M, S = c(S, A, T, M, _, 22, l[15]), A, T, s, 5, l[16]),
T = u(T, M, S, A, m, 9, l[17]),
A = u(A, T, M, S, j, 14, l[18]),
S = u(S, A, T, M, a, 20, l[19]),
M = u(M, S, A, T, g, 5, l[20]),
T = u(T, M, S, A, O, 9, l[21]),
A = u(A, T, M, S, _, 14, l[22]),
S = u(S, A, T, M, b, 20, l[23]),
M = u(M, S, A, T, x, 5, l[24]),
T = u(T, M, S, A, C, 9, l[25]),
A = u(A, T, M, S, f, 14, l[26]),
S = u(S, A, T, M, y, 20, l[27]),
M = u(M, S, A, T, w, 5, l[28]),
T = u(T, M, S, A, h, 9, l[29]),
A = u(A, T, M, S, v, 14, l[30]),
M = d(M, S = u(S, A, T, M, k, 20, l[31]), A, T, g, 4, l[32]),
T = d(T, M, S, A, y, 11, l[33]),
A = d(A, T, M, S, j, 16, l[34]),
S = d(S, A, T, M, C, 23, l[35]),
M = d(M, S, A, T, s, 4, l[36]),
T = d(T, M, S, A, b, 11, l[37]),
A = d(A, T, M, S, v, 16, l[38]),
S = d(S, A, T, M, O, 23, l[39]),
M = d(M, S, A, T, w, 4, l[40]),
T = d(T, M, S, A, a, 11, l[41]),
A = d(A, T, M, S, f, 16, l[42]),
S = d(S, A, T, M, m, 23, l[43]),
M = d(M, S, A, T, x, 4, l[44]),
T = d(T, M, S, A, k, 11, l[45]),
A = d(A, T, M, S, _, 16, l[46]),
M = p(M, S = d(S, A, T, M, h, 23, l[47]), A, T, a, 6, l[48]),
T = p(T, M, S, A, v, 10, l[49]),
A = p(A, T, M, S, C, 15, l[50]),
S = p(S, A, T, M, g, 21, l[51]),
M = p(M, S, A, T, k, 6, l[52]),
T = p(T, M, S, A, f, 10, l[53]),
A = p(A, T, M, S, O, 15, l[54]),
S = p(S, A, T, M, s, 21, l[55]),
M = p(M, S, A, T, y, 6, l[56]),
T = p(T, M, S, A, _, 10, l[57]),
A = p(A, T, M, S, m, 15, l[58]),
S = p(S, A, T, M, w, 21, l[59]),
M = p(M, S, A, T, b, 6, l[60]),
T = p(T, M, S, A, j, 10, l[61]),
A = p(A, T, M, S, h, 15, l[62]),
S = p(S, A, T, M, x, 21, l[63]),
o[0] = o[0] + M | 0,
o[1] = o[1] + S | 0,
o[2] = o[2] + A | 0,
o[3] = o[3] + T | 0
},
_doFinalize: function() {
var t = this._data
, n = t.words
, r = 8 * this._nDataBytes
, i = 8 * t.sigBytes;
n[i >>> 5] |= 128 << 24 - i % 32;
var o = e.floor(r / 4294967296)
, a = r;
n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8),
n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
t.sigBytes = 4 * (n.length + 1),
this._process();
for (var l = this._hash, s = l.words, c = 0; c < 4; c++) {
var u = s[c];
s[c] = 16711935 & (u << 8 | u >>> 24) | 4278255360 & (u << 24 | u >>> 8)
}
return l
},
clone: function() {
var e = o.clone.call(this);
return e._hash = this._hash.clone(),
e
}
});
function c(e, t, n, r, i, o, a) {
var l = e + (t & n | ~t & r) + i + a;
return (l << o | l >>> 32 - o) + t
}
function u(e, t, n, r, i, o, a) {
var l = e + (t & r | n & ~r) + i + a;
return (l << o | l >>> 32 - o) + t
}
function d(e, t, n, r, i, o, a) {
var l = e + (t ^ n ^ r) + i + a;
return (l << o | l >>> 32 - o) + t
}
function p(e, t, n, r, i, o, a) {
var l = e + (n ^ (t | ~r)) + i + a;
return (l << o | l >>> 32 - o) + t
}
t.MD5 = o._createHelper(s),
t.HmacMD5 = o._createHmacHelper(s)
}(Math),
r.MD5)
}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
function() {
var e = r
, t = e.lib
, n = t.WordArray
, i = t.Hasher
, o = e.algo
, a = []
, l = o.SHA1 = i.extend({
_doReset: function() {
this._hash = new n.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
},
_doProcessBlock: function(e, t) {
for (var n = this._hash.words, r = n[0], i = n[1], o = n[2], l = n[3], s = n[4], c = 0; c < 80; c++) {
if (c < 16)
a[c] = 0 | e[t + c];
else {
var u = a[c - 3] ^ a[c - 8] ^ a[c - 14] ^ a[c - 16];
a[c] = u << 1 | u >>> 31
}
var d = (r << 5 | r >>> 27) + s + a[c];
d += c < 20 ? 1518500249 + (i & o | ~i & l) : c < 40 ? 1859775393 + (i ^ o ^ l) : c < 60 ? (i & o | i & l | o & l) - 1894007588 : (i ^ o ^ l) - 899497514,
s = l,
l = o,
o = i << 30 | i >>> 2,
i = r,
r = d
}
n[0] = n[0] + r | 0,
n[1] = n[1] + i | 0,
n[2] = n[2] + o | 0,
n[3] = n[3] + l | 0,
n[4] = n[4] + s | 0
},
_doFinalize: function() {
var e = this._data
, t = e.words
, n = 8 * this._nDataBytes
, r = 8 * e.sigBytes;
return t[r >>> 5] |= 128 << 24 - r % 32,
t[14 + (r + 64 >>> 9 << 4)] = Math.floor(n / 4294967296),
t[15 + (r + 64 >>> 9 << 4)] = n,
e.sigBytes = 4 * t.length,
this._process(),
this._hash
},
clone: function() {
var e = i.clone.call(this);
return e._hash = this._hash.clone(),
e
}
});
e.SHA1 = i._createHelper(l),
e.HmacSHA1 = i._createHmacHelper(l)
}(),
r.SHA1)
}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
void function() {
var e = r
, t = e.lib.Base
, n = e.enc.Utf8;
e.algo.HMAC = t.extend({
init: function(e, t) {
e = this._hasher = new e.init,
"string" == typeof t && (t = n.parse(t));
var r = e.blockSize
, i = 4 * r;
t.sigBytes > i && (t = e.finalize(t)),
t.clamp();
for (var o = this._oKey = t.clone(), a = this._iKey = t.clone(), l = o.words, s = a.words, c = 0; c < r; c++)
l[c] ^= 1549556828,
s[c] ^= 909522486;
o.sigBytes = a.sigBytes = i,
this.reset()
},
reset: function() {
var e = this._hasher;
e.reset(),
e.update(this._iKey)
},
update: function(e) {
return this._hasher.update(e),
this
},
finalize: function(e) {
var t = this._hasher
, n = t.finalize(e);
return t.reset(),
t.finalize(this._oKey.clone().concat(n))
}
})
}())
}
, function(e, t, n) {
var r;
e.exports = (r = n(86),
n(281),
void (r.lib.Cipher || function(e) {
var t = r
, n = t.lib
, i = n.Base
, o = n.WordArray
, a = n.BufferedBlockAlgorithm
, l = t.enc
, s = (l.Utf8,
l.Base64)
, c = t.algo.EvpKDF
, u = n.Cipher = a.extend({
cfg: i.extend(),
createEncryptor: function(e, t) {
return this.create(this._ENC_XFORM_MODE, e, t)
},
createDecryptor: function(e, t) {
return this.create(this._DEC_XFORM_MODE, e, t)
},
init: function(e, t, n) {
this.cfg = this.cfg.extend(n),
this._xformMode = e,
this._key = t,
this.reset()
},
reset: function() {
a.reset.call(this),
this._doReset()
},
process: function(e) {
return this._append(e),
this._process()
},
finalize: function(e) {
return e && this._append(e),
this._doFinalize()
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function() {
function e(e) {
return "string" == typeof e ? y : m
}
return function(t) {
return {
encrypt: function(n, r, i) {
return e(r).encrypt(t, n, r, i)
},
decrypt: function(n, r, i) {
return e(r).decrypt(t, n, r, i)
}
}
}
}()
})
, d = (n.StreamCipher = u.extend({
_doFinalize: function() {
return this._process(!0)
},
blockSize: 1
}),
t.mode = {})
, p = n.BlockCipherMode = i.extend({
createEncryptor: function(e, t) {
return this.Encryptor.create(e, t)
},
createDecryptor: function(e, t) {
return this.Decryptor.create(e, t)
},
init: function(e, t) {
this._cipher = e,
this._iv = t
}
})
, h = d.CBC = function() {
var e = p.extend();
function t(e, t, n) {
var r, i = this._iv;
i ? (r = i,
this._iv = void 0) : r = this._prevBlock;
for (var o = 0; o < n; o++)
e[t + o] ^= r[o]
}
return e.Encryptor = e.extend({
processBlock: function(e, n) {
var r = this._cipher
, i = r.blockSize;
t.call(this, e, n, i),
r.encryptBlock(e, n),
this._prevBlock = e.slice(n, n + i)
}
}),
e.Decryptor = e.extend({
processBlock: function(e, n) {
var r = this._cipher
, i = r.blockSize
, o = e.slice(n, n + i);
r.decryptBlock(e, n),
t.call(this, e, n, i),
this._prevBlock = o
}
}),
e
}()
, f = (t.pad = {}).Pkcs7 = {
pad: function(e, t) {
for (var n = 4 * t, r = n - e.sigBytes % n, i = r << 24 | r << 16 | r << 8 | r, a = [], l = 0; l < r; l += 4)
a.push(i);
var s = o.create(a, r);
e.concat(s)
},
unpad: function(e) {
var t = 255 & e.words[e.sigBytes - 1 >>> 2];
e.sigBytes -= t
}
}
, b = (n.BlockCipher = u.extend({
cfg: u.cfg.extend({
mode: h,
padding: f
}),
reset: function() {
var e;
u.reset.call(this);
var t = this.cfg
, n = t.iv
, r = t.mode;
this._xformMode == this._ENC_XFORM_MODE ? e = r.createEncryptor : (e = r.createDecryptor,
this._minBufferSize = 1),
this._mode && this._mode.__creator == e ? this._mode.init(this, n && n.words) : (this._mode = e.call(r, this, n && n.words),
this._mode.__creator = e)
},
_doProcessBlock: function(e, t) {
this._mode.processBlock(e, t)
},
_doFinalize: function() {
var e, t = this.cfg.padding;
return this._xformMode == this._ENC_XFORM_MODE ? (t.pad(this._data, this.blockSize),
e = this._process(!0)) : (e = this._process(!0),
t.unpad(e)),
e
},
blockSize: 4
}),
n.CipherParams = i.extend({
init: function(e) {
this.mixIn(e)
},
toString: function(e) {
return (e || this.formatter).stringify(this)
}
}))
, g = (t.format = {}).OpenSSL = {
stringify: function(e) {
var t = e.ciphertext
, n = e.salt;
return (n ? o.create([1398893684, 1701076831]).concat(n).concat(t) : t).toString(s)
},
parse: function(e) {
var t, n = s.parse(e), r = n.words;
return 1398893684 == r[0] && 1701076831 == r[1] && (t = o.create(r.slice(2, 4)),
r.splice(0, 4),
n.sigBytes -= 16),
b.create({
ciphertext: n,
salt: t
})
}
}
, m = n.SerializableCipher = i.extend({
cfg: i.extend({
format: g
}),
encrypt: function(e, t, n, r) {
r = this.cfg.extend(r);
var i = e.createEncryptor(n, r)
, o = i.finalize(t)
, a = i.cfg;
return b.create({
ciphertext: o,
key: n,
iv: a.iv,
algorithm: e,
mode: a.mode,
padding: a.padding,
blockSize: e.blockSize,
formatter: r.format
})
},
decrypt: function(e, t, n, r) {
return r = this.cfg.extend(r),
t = this._parse(t, r.format),
e.createDecryptor(n, r).finalize(t.ciphertext)
},
_parse: function(e, t) {
return "string" == typeof e ? t.parse(e, this) : e
}
})
, v = (t.kdf = {}).OpenSSL = {
execute: function(e, t, n, r) {
r || (r = o.random(8));
var i = c.create({
keySize: t + n
}).compute(e, r)
, a = o.create(i.words.slice(t), 4 * n);
return i.sigBytes = 4 * t,
b.create({
key: i,
iv: a,
salt: r
})
}
}
, y = n.PasswordBasedCipher = m.extend({
cfg: m.cfg.extend({
kdf: v
}),
encrypt: function(e, t, n, r) {
var i = (r = this.cfg.extend(r)).kdf.execute(n, e.keySize, e.ivSize);
r.iv = i.iv;
var o = m.encrypt.call(this, e, t, i.key, r);
return o.mixIn(i),
o
},
decrypt: function(e, t, n, r) {
r = this.cfg.extend(r),
t = this._parse(t, r.format);
var i = r.kdf.execute(n, e.keySize, e.ivSize, t.salt);
return r.iv = i.iv,
m.decrypt.call(this, e, t, i.key, r)
}
})
}()))
}
, function(e, t, n) {
"use strict";
(function(e) {
var t = n(5)
, r = n(6)
, i = n(10)
, o = n(7)
, a = n.n(o)
, l = n(78)
, s = n(17)
, c = n(55)
, u = n(14);
function d() {
var e;
return (null === (e = null === self || void 0 === self ? void 0 : self.location) || void 0 === e ? void 0 : e.protocol) || null
}
function p() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(u.l)();
return !("file:" !== d() && "ionic:" !== d() || !e.toLowerCase().match(/iphone|ipad|ipod|android/))
}
function h() {
try {
var e = self.localStorage
, t = s.s();
if (e)
return e.setItem(t, "1"),
e.removeItem(t),
!function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(u.l)();
return Object(u.q)() && 11 === (null === document || void 0 === document ? void 0 : document.documentMode) || function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Object(u.l)();
return /Edge\/\d+/.test(e)
}(e)
}() || Object(u.r)()
} catch (e) {
return f() && Object(u.r)()
}
return !1
}
function f() {
return void 0 !== e && "WorkerGlobalScope"in e && "importScripts"in e
}
function b() {
return ("http:" === d() || "https:" === d() || Object(u.n)() || p()) && !(Object(u.u)() || Object(u.t)()) && h() && !f()
}
function g() {
return p() && "undefined" != typeof document
}
function m() {
return v.apply(this, arguments)
}
function v() {
return (v = Object(i.a)(a.a.mark((function e() {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (g()) {
e.next = 2;
break
}
return e.abrupt("return", !1);
case 2:
return e.abrupt("return", new Promise((function(e) {
var t = setTimeout((function() {
e(!1)
}
), 1e3);
document.addEventListener("deviceready", (function() {
clearTimeout(t),
e(!0)
}
))
}
)));
case 3:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var y = {
LOCAL: "local",
NONE: "none",
SESSION: "session"
}
, x = s.p
, O = "persistence";
function j(e, t) {
x(Object.values(y).includes(t), e, "invalid-persistence-type"),
Object(u.u)() ? x(t !== y.SESSION, e, "unsupported-persistence-type") : Object(u.t)() ? x(t === y.NONE, e, "unsupported-persistence-type") : f() ? x(t === y.NONE || t === y.LOCAL && Object(u.r)(), e, "unsupported-persistence-type") : x(t === y.NONE || h(), e, "unsupported-persistence-type")
}
function k(e) {
return w.apply(this, arguments)
}
function w() {
return (w = Object(i.a)(a.a.mark((function e(t) {
var n, r;
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
t._initializationPromise;
case 2:
n = C(),
r = s.v(O, t.config.apiKey, t.name),
(null == n ? void 0 : n.sessionStorage) && n.sessionStorage.setItem(r, t._getPersistence());
case 5:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
function C() {
return "undefined" != typeof window ? window : null
}
var _ = s.p
, M = function() {
function e() {
Object(t.a)(this, e),
this.browserResolver = s.t(s.z),
this.cordovaResolver = s.t(s.E),
this.underlyingResolver = null,
this._redirectPersistence = s.A,
this._completeRedirectFn = s.u
}
return Object(r.a)(e, [{
key: "_initialize",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.selectUnderlyingResolver();
case 2:
return e.abrupt("return", this.assertedUnderlyingResolver._initialize(t));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "_openPopup",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t, n, r, i) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.selectUnderlyingResolver();
case 2:
return e.abrupt("return", this.assertedUnderlyingResolver._openPopup(t, n, r, i));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()
}, {
key: "_openRedirect",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t, n, r, i) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
this.selectUnderlyingResolver();
case 2:
return e.abrupt("return", this.assertedUnderlyingResolver._openRedirect(t, n, r, i));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n, r, i) {
return e.apply(this, arguments)
}
}()
}, {
key: "_isIframeWebStorageSupported",
value: function(e, t) {
this.assertedUnderlyingResolver._isIframeWebStorageSupported(e, t)
}
}, {
key: "_originValidation",
value: function(e) {
return this.assertedUnderlyingResolver._originValidation(e)
}
}, {
key: "_shouldInitProactively",
get: function() {
return g() || this.browserResolver._shouldInitProactively
}
}, {
key: "assertedUnderlyingResolver",
get: function() {
return _(this.underlyingResolver, "internal-error"),
this.underlyingResolver
}
}, {
key: "selectUnderlyingResolver",
value: function() {
var e = Object(i.a)(a.a.mark((function e() {
var t;
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!this.underlyingResolver) {
e.next = 2;
break
}
return e.abrupt("return");
case 2:
return e.next = 4,
m();
case 4:
t = e.sent,
this.underlyingResolver = t ? this.cordovaResolver : this.browserResolver;
case 6:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}]),
e
}();
function S(e) {
return e.unwrap()
}
function A(e) {
var t = (e instanceof u.c ? e.customData : e)._tokenResponse;
if (!t)
return null;
if (!(e instanceof u.c) && "temporaryProof"in t && "phoneNumber"in t)
return s.i.credentialFromResult(e);
var n, r = t.providerId;
if (!r || r === s.k.PASSWORD)
return null;
switch (r) {
case s.k.GOOGLE:
n = s.f;
break;
case s.k.FACEBOOK:
n = s.d;
break;
case s.k.GITHUB:
n = s.e;
break;
case s.k.TWITTER:
n = s.o;
break;
default:
var i = t.oauthIdToken
, o = t.oauthAccessToken
, a = t.oauthTokenSecret
, l = t.pendingToken
, c = t.nonce;
return o || a || i || l ? l ? r.startsWith("saml.") ? s.m._create(r, l) : s.g._fromParams({
providerId: r,
signInMethod: r,
pendingToken: l,
idToken: i,
accessToken: o
}) : new s.h(r).credential({
idToken: i,
accessToken: o,
rawNonce: c
}) : null
}
return e instanceof u.c ? n.credentialFromError(e) : n.credentialFromResult(e)
}
function T(e, t) {
return t.catch((function(t) {
throw t instanceof u.c && function(e, t) {
var n, r = null === (n = t.customData) || void 0 === n ? void 0 : n._tokenResponse;
if ("auth/multi-factor-auth-required" === t.code)
t.resolver = new N(e,s.J(e, t));
else if (r) {
var i = A(t)
, o = t;
i && (o.credential = i,
o.tenantId = r.tenantId || void 0,
o.email = r.email || void 0,
o.phoneNumber = r.phoneNumber || void 0)
}
}(e, t),
t
}
)).then((function(e) {
var t, n = e.operationType, r = e.user;
return {
operationType: n,
credential: (t = e,
A(t)),
additionalUserInfo: s.I(e),
user: z.getOrCreate(r)
}
}
))
}
function E(e, t) {
return I.apply(this, arguments)
}
function I() {
return (I = Object(i.a)(a.a.mark((function e(t, n) {
var r;
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
n;
case 2:
return r = e.sent,
e.abrupt("return", {
verificationId: r.verificationId,
confirm: function(e) {
return T(t, r.confirm(e))
}
});
case 4:
case "end":
return e.stop()
}
}
), e)
}
)))).apply(this, arguments)
}
var N = function() {
function e(n, r) {
Object(t.a)(this, e),
this.resolver = r,
this.auth = n.wrapped()
}
return Object(r.a)(e, [{
key: "session",
get: function() {
return this.resolver.session
}
}, {
key: "hints",
get: function() {
return this.resolver.hints
}
}, {
key: "resolveSignIn",
value: function(e) {
return T(S(this.auth), this.resolver.resolveSignIn(e))
}
}]),
e
}()
, z = function() {
function e(n) {
Object(t.a)(this, e),
this._delegate = n,
this.multiFactor = s.S(n)
}
return Object(r.a)(e, [{
key: "delete",
value: function() {
return this._delegate.delete()
}
}, {
key: "reload",
value: function() {
return this._delegate.reload()
}
}, {
key: "toJSON",
value: function() {
return this._delegate.toJSON()
}
}, {
key: "getIdTokenResult",
value: function(e) {
return this._delegate.getIdTokenResult(e)
}
}, {
key: "getIdToken",
value: function(e) {
return this._delegate.getIdToken(e)
}
}, {
key: "linkAndRetrieveDataWithCredential",
value: function(e) {
return this.linkWithCredential(e)
}
}, {
key: "linkWithCredential",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", T(this.auth, s.O(this._delegate, t)));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "linkWithPhoneNumber",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t, n) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", E(this.auth, s.P(this._delegate, t, n)));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "linkWithPopup",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", T(this.auth, s.Q(this._delegate, t, M)));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "linkWithRedirect",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
k(s.q(this.auth));
case 2:
return e.abrupt("return", s.R(this._delegate, t, M));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "reauthenticateAndRetrieveDataWithCredential",
value: function(e) {
return this.reauthenticateWithCredential(e)
}
}, {
key: "reauthenticateWithCredential",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", T(this.auth, s.T(this._delegate, t)));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "reauthenticateWithPhoneNumber",
value: function(e, t) {
return E(this.auth, s.U(this._delegate, e, t))
}
}, {
key: "reauthenticateWithPopup",
value: function(e) {
return T(this.auth, s.V(this._delegate, e, M))
}
}, {
key: "reauthenticateWithRedirect",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
k(s.q(this.auth));
case 2:
return e.abrupt("return", s.W(this._delegate, t, M));
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "sendEmailVerification",
value: function(e) {
return s.X(this._delegate, e)
}
}, {
key: "unlink",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
s.ib(this._delegate, t);
case 2:
return e.abrupt("return", this);
case 3:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "updateEmail",
value: function(e) {
return s.jb(this._delegate, e)
}
}, {
key: "updatePassword",
value: function(e) {
return s.kb(this._delegate, e)
}
}, {
key: "updatePhoneNumber",
value: function(e) {
return s.lb(this._delegate, e)
}
}, {
key: "updateProfile",
value: function(e) {
return s.mb(this._delegate, e)
}
}, {
key: "verifyBeforeUpdateEmail",
value: function(e, t) {
return s.nb(this._delegate, e, t)
}
}, {
key: "emailVerified",
get: function() {
return this._delegate.emailVerified
}
}, {
key: "isAnonymous",
get: function() {
return this._delegate.isAnonymous
}
}, {
key: "metadata",
get: function() {
return this._delegate.metadata
}
}, {
key: "phoneNumber",
get: function() {
return this._delegate.phoneNumber
}
}, {
key: "providerData",
get: function() {
return this._delegate.providerData
}
}, {
key: "refreshToken",
get: function() {
return this._delegate.refreshToken
}
}, {
key: "tenantId",
get: function() {
return this._delegate.tenantId
}
}, {
key: "displayName",
get: function() {
return this._delegate.displayName
}
}, {
key: "email",
get: function() {
return this._delegate.email
}
}, {
key: "photoURL",
get: function() {
return this._delegate.photoURL
}
}, {
key: "providerId",
get: function() {
return this._delegate.providerId
}
}, {
key: "uid",
get: function() {
return this._delegate.uid
}
}, {
key: "auth",
get: function() {
return this._delegate.auth
}
}], [{
key: "getOrCreate",
value: function(t) {
return e.USER_MAP.has(t) || e.USER_MAP.set(t, new e(t)),
e.USER_MAP.get(t)
}
}]),
e
}();
z.USER_MAP = new WeakMap;
var D = s.p
, L = function() {
function e(n, r) {
if (Object(t.a)(this, e),
this.app = n,
r.isInitialized())
return this._delegate = r.getImmediate(),
void this.linkUnderlyingAuth();
var i = n.options.apiKey;
D(i, "invalid-api-key", {
appName: n.name
}),
D(i, "invalid-api-key", {
appName: n.name
});
var o = "undefined" != typeof window ? M : void 0;
this._delegate = r.initialize({
options: {
persistence: P(i, n.name),
popupRedirectResolver: o
}
}),
this._delegate._updateErrorMap(s.G),
this.linkUnderlyingAuth()
}
return Object(r.a)(e, [{
key: "emulatorConfig",
get: function() {
return this._delegate.emulatorConfig
}
}, {
key: "currentUser",
get: function() {
return this._delegate.currentUser ? z.getOrCreate(this._delegate.currentUser) : null
}
}, {
key: "languageCode",
get: function() {
return this._delegate.languageCode
},
set: function(e) {
this._delegate.languageCode = e
}
}, {
key: "settings",
get: function() {
return this._delegate.settings
}
}, {
key: "tenantId",
get: function() {
return this._delegate.tenantId
},
set: function(e) {
this._delegate.tenantId = e
}
}, {
key: "useDeviceLanguage",
value: function() {
this._delegate.useDeviceLanguage()
}
}, {
key: "signOut",
value: function() {
return this._delegate.signOut()
}
}, {
key: "useEmulator",
value: function(e, t) {
s.D(this._delegate, e, t)
}
}, {
key: "applyActionCode",
value: function(e) {
return s.x(this._delegate, e)
}
}, {
key: "checkActionCode",
value: function(e) {
return s.B(this._delegate, e)
}
}, {
key: "confirmPasswordReset",
value: function(e, t) {
return s.C(this._delegate, e, t)
}
}, {
key: "createUserWithEmailAndPassword",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t, n) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.abrupt("return", T(this._delegate, s.F(this._delegate, t, n)));
case 1:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "fetchProvidersForEmail",
value: function(e) {
return this.fetchSignInMethodsForEmail(e)
}
}, {
key: "fetchSignInMethodsForEmail",
value: function(e) {
return s.H(this._delegate, e)
}
}, {
key: "isSignInWithEmailLink",
value: function(e) {
return s.N(this._delegate, e)
}
}, {
key: "getRedirectResult",
value: function() {
var e = Object(i.a)(a.a.mark((function e() {
var t;
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return D(b(), this._delegate, "operation-not-supported-in-this-environment"),
e.next = 3,
s.K(this._delegate, M);
case 3:
if (t = e.sent) {
e.next = 6;
break
}
return e.abrupt("return", {
credential: null,
user: null
});
case 6:
return e.abrupt("return", T(this._delegate, Promise.resolve(t)));
case 7:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function() {
return e.apply(this, arguments)
}
}()
}, {
key: "addFrameworkForLogging",
value: function(e) {
s.w(this._delegate, e)
}
}, {
key: "onAuthStateChanged",
value: function(e, t, n) {
var r = R(e, t, n)
, i = r.next
, o = r.error
, a = r.complete;
return this._delegate.onAuthStateChanged(i, o, a)
}
}, {
key: "onIdTokenChanged",
value: function(e, t, n) {
var r = R(e, t, n)
, i = r.next
, o = r.error
, a = r.complete;
return this._delegate.onIdTokenChanged(i, o, a)
}
}, {
key: "sendSignInLinkToEmail",
value: function(e, t) {
return s.Z(this._delegate, e, t)
}
}, {
key: "sendPasswordResetEmail",
value: function(e, t) {
return s.Y(this._delegate, e, t || void 0)
}
}, {
key: "setPersistence",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
var n, r;
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
j(this._delegate, t),
e.t0 = t,
e.next = e.t0 === y.SESSION ? 4 : e.t0 === y.LOCAL ? 6 : e.t0 === y.NONE ? 11 : 13;
break;
case 4:
return n = s.A,
e.abrupt("break", 14);
case 6:
return e.next = 8,
s.t(s.M)._isAvailable();
case 8:
return r = e.sent,
n = r ? s.M : s.y,
e.abrupt("break", 14);
case 11:
return n = s.L,
e.abrupt("break", 14);
case 13:
return e.abrupt("return", s.r("argument-error", {
appName: this._delegate.name
}));
case 14:
return e.abrupt("return", this._delegate.setPersistence(n));
case 15:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "signInAndRetrieveDataWithCredential",
value: function(e) {
return this.signInWithCredential(e)
}
}, {
key: "signInAnonymously",
value: function() {
return T(this._delegate, s.ab(this._delegate))
}
}, {
key: "signInWithCredential",
value: function(e) {
return T(this._delegate, s.bb(this._delegate, e))
}
}, {
key: "signInWithCustomToken",
value: function(e) {
return T(this._delegate, s.cb(this._delegate, e))
}
}, {
key: "signInWithEmailAndPassword",
value: function(e, t) {
return T(this._delegate, s.db(this._delegate, e, t))
}
}, {
key: "signInWithEmailLink",
value: function(e, t) {
return T(this._delegate, s.eb(this._delegate, e, t))
}
}, {
key: "signInWithPhoneNumber",
value: function(e, t) {
return E(this._delegate, s.fb(this._delegate, e, t))
}
}, {
key: "signInWithPopup",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return D(b(), this._delegate, "operation-not-supported-in-this-environment"),
e.abrupt("return", T(this._delegate, s.gb(this._delegate, t, M)));
case 2:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "signInWithRedirect",
value: function() {
var e = Object(i.a)(a.a.mark((function e(t) {
return a.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return D(b(), this._delegate, "operation-not-supported-in-this-environment"),
e.next = 3,
k(this._delegate);
case 3:
return e.abrupt("return", s.hb(this._delegate, t, M));
case 4:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "updateCurrentUser",
value: function(e) {
return this._delegate.updateCurrentUser(e)
}
}, {
key: "verifyPasswordResetCode",
value: function(e) {
return s.ob(this._delegate, e)
}
}, {
key: "unwrap",
value: function() {
return this._delegate
}
}, {
key: "_delete",
value: function() {
return this._delegate._delete()
}
}, {
key: "linkUnderlyingAuth",
value: function() {
var e = this;
this._delegate.wrapped = function() {
return e
}
}
}]),
e
}();
function R(e, t, n) {
var r = e;
"function" != typeof e && (r = e.next,
t = e.error,
n = e.complete);
var i = r;
return {
next: function(e) {
return i(e && z.getOrCreate(e))
},
error: t,
complete: n
}
}
function P(e, t) {
var n = function(e, t) {
var n = C();
if (!(null == n ? void 0 : n.sessionStorage))
return [];
var r = s.v(O, e, t);
switch (n.sessionStorage.getItem(r)) {
case y.NONE:
return [s.L];
case y.LOCAL:
return [s.M, s.A];
case y.SESSION:
return [s.A];
default:
return []
}
}(e, t);
if ("undefined" == typeof self || n.includes(s.M) || n.push(s.M),
"undefined" != typeof window)
for (var r = 0, i = [s.y, s.A]; r < i.length; r++) {
var o = i[r];
n.includes(o) || n.push(o)
}
return n.includes(s.L) || n.push(s.L),
n
}
L.Persistence = y;
var B = function() {
function e() {
Object(t.a)(this, e),
this.providerId = "phone",
this._delegate = new s.i(S(l.a.auth()))
}
return Object(r.a)(e, [{
key: "verifyPhoneNumber",
value: function(e, t) {
return this._delegate.verifyPhoneNumber(e, t)
}
}, {
key: "unwrap",
value: function() {
return this._delegate
}
}], [{
key: "credential",
value: function(e, t) {
return s.i.credential(e, t)
}
}]),
e
}();
B.PHONE_SIGN_IN_METHOD = s.i.PHONE_SIGN_IN_METHOD,
B.PROVIDER_ID = s.i.PROVIDER_ID;
var F, V = s.p, W = function() {
function e(n, r) {
var i, o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : l.a.app();
Object(t.a)(this, e),
V(null === (i = o.options) || void 0 === i ? void 0 : i.apiKey, "invalid-api-key", {
appName: o.name
}),
this._delegate = new s.l(n,r,o.auth()),
this.type = this._delegate.type
}
return Object(r.a)(e, [{
key: "clear",
value: function() {
this._delegate.clear()
}
}, {
key: "render",
value: function() {
return this._delegate.render()
}
}, {
key: "verify",
value: function() {
return this._delegate.verify()
}
}]),
e
}();
(F = l.a).INTERNAL.registerComponent(new c.a("auth-compat",(function(e) {
var t = e.getProvider("app-compat").getImmediate()
, n = e.getProvider("auth");
return new L(t,n)
}
),"PUBLIC").setServiceProps({
ActionCodeInfo: {
Operation: {
EMAIL_SIGNIN: s.a.EMAIL_SIGNIN,
PASSWORD_RESET: s.a.PASSWORD_RESET,
RECOVER_EMAIL: s.a.RECOVER_EMAIL,
REVERT_SECOND_FACTOR_ADDITION: s.a.REVERT_SECOND_FACTOR_ADDITION,
VERIFY_AND_CHANGE_EMAIL: s.a.VERIFY_AND_CHANGE_EMAIL,
VERIFY_EMAIL: s.a.VERIFY_EMAIL
}
},
EmailAuthProvider: s.c,
FacebookAuthProvider: s.d,
GithubAuthProvider: s.e,
GoogleAuthProvider: s.f,
OAuthProvider: s.h,
SAMLAuthProvider: s.n,
PhoneAuthProvider: B,
PhoneMultiFactorGenerator: s.j,
RecaptchaVerifier: W,
TwitterAuthProvider: s.o,
Auth: L,
AuthCredential: s.b,
Error: u.c
}).setInstantiationMode("LAZY").setMultipleInstances(!1)),
F.registerVersion("@firebase/auth-compat", "0.2.5")
}
).call(this, n(73))
}
, function(e, t, n) {}
, function(e, t, n) {
"use strict";
n.r(t);
var r = {};
n.r(r),
n.d(r, "FunctionToString", (function() {
return y
}
)),
n.d(r, "InboundFilters", (function() {
return A
}
));
var i = {};
n.r(i),
n.d(i, "Express", (function() {
return Ye
}
)),
n.d(i, "Postgres", (function() {
return Ze
}
)),
n.d(i, "Mysql", (function() {
return $e
}
)),
n.d(i, "Mongo", (function() {
return nt
}
)),
n.d(i, "BrowserTracing", (function() {
return kt
}
));
var o = {};
n.r(o),
n.d(o, "root", (function() {
return rAe
}
)),
n.d(o, "suggestionsItem", (function() {
return iAe
}
)),
n.d(o, "closeButton", (function() {
return oAe
}
)),
n.d(o, "suggestionsItemIsSuggested", (function() {
return aAe
}
)),
n.d(o, "itemButton", (function() {
return lAe
}
)),
n.d(o, "actionButton", (function() {
return sAe
}
)),
n.d(o, "buttonSelected", (function() {
return cAe
}
)),
n.d(o, "suggestionsTitle", (function() {
return uAe
}
)),
n.d(o, "suggestionsContainer", (function() {
return dAe
}
)),
n.d(o, "suggestionsNone", (function() {
return pAe
}
)),
n.d(o, "suggestionsSpinner", (function() {
return hAe
}
)),
n.d(o, "suggestionsAvailable", (function() {
return fAe
}
));
var a = {};
n.r(a),
n.d(a, "pickerText", (function() {
return DAe
}
)),
n.d(a, "inputFocused", (function() {
return LAe
}
)),
n.d(a, "inputDisabled", (function() {
return RAe
}
)),
n.d(a, "pickerInput", (function() {
return PAe
}
)),
n.d(a, "pickerItems", (function() {
return BAe
}
)),
n.d(a, "screenReaderOnly", (function() {
return FAe
}
));
var l = n(1)
, s = n.n(l)
, c = n(54)
, u = n.n(c)
, d = "6.16.1"
, p = function(e, t) {
return p = Object.setPrototypeOf || {
__proto__: []
}instanceof Array && function(e, t) {
e.__proto__ = t
}
|| function(e, t) {
for (var n in t)
t.hasOwnProperty(n) && (e[n] = t[n])
}
,
p(e, t)
};
function h(e, t) {
function n() {
this.constructor = e
}
p(e, t),
e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype,
new n)
}
var f, b = function() {
return b = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
b.apply(this, arguments)
};
function g(e) {
var t = "function" == typeof Symbol && Symbol.iterator
, n = t && e[t]
, r = 0;
if (n)
return n.call(e);
if (e && "number" == typeof e.length)
return {
next: function() {
return e && r >= e.length && (e = void 0),
{
value: e && e[r++],
done: !e
}
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
}
function m(e, t) {
var n = "function" == typeof Symbol && e[Symbol.iterator];
if (!n)
return e;
var r, i, o = n.call(e), a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
a.push(r.value)
} catch (e) {
i = {
error: e
}
} finally {
try {
r && !r.done && (n = o.return) && n.call(o)
} finally {
if (i)
throw i.error
}
}
return a
}
function v() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(m(arguments[t]));
return e
}
var y = function() {
function e() {
this.name = e.id
}
return e.prototype.setupOnce = function() {
f = Function.prototype.toString,
Function.prototype.toString = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = this.__sentry_original__ || this;
return f.apply(n, e)
}
}
,
e.id = "FunctionToString",
e
}()
, x = function() {
return x = Object.assign || function(e) {
for (var t, n = 1, r = arguments.length; n < r; n++)
for (var i in t = arguments[n])
Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
return e
}
,
x.apply(this, arguments)
};
function O(e, t) {
var n = "function" == typeof Symbol && e[Symbol.iterator];
if (!n)
return e;
var r, i, o = n.call(e), a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
a.push(r.value)
} catch (e) {
i = {
error: e
}
} finally {
try {
r && !r.done && (n = o.return) && n.call(o)
} finally {
if (i)
throw i.error
}
}
return a
}
function j() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(O(arguments[t]));
return e
}
var k = n(171)
, w = n(115)
, C = n(39)
, _ = n(211)
, M = n(103)
, S = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/]
, A = function() {
function e(t) {
void 0 === t && (t = {}),
this._options = t,
this.name = e.id
}
return e.prototype.setupOnce = function() {
Object(k.b)((function(t) {
var n = Object(w.b)();
if (!n)
return t;
var r = n.getIntegration(e);
if (r) {
var i = n.getClient()
, o = i ? i.getOptions() : {}
, a = "function" == typeof r._mergeOptions ? r._mergeOptions(o) : {};
return "function" != typeof r._shouldDropEvent ? t : r._shouldDropEvent(t, a) ? null : t
}
return t
}
))
}
,
e.prototype._shouldDropEvent = function(e, t) {
return this._isSentryError(e, t) ? (C.b.warn("Event dropped due to being internal Sentry Error.\nEvent: " + Object(_.d)(e)),
!0) : this._isIgnoredError(e, t) ? (C.b.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: " + Object(_.d)(e)),
!0) : this._isDeniedUrl(e, t) ? (C.b.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: " + Object(_.d)(e) + ".\nUrl: " + this._getEventFilterUrl(e)),
!0) : !this._isAllowedUrl(e, t) && (C.b.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: " + Object(_.d)(e) + ".\nUrl: " + this._getEventFilterUrl(e)),
!0)
}
,
e.prototype._isSentryError = function(e, t) {
if (!t.ignoreInternal)
return !1;
try {
return e && e.exception && e.exception.values && e.exception.values[0] && "SentryError" === e.exception.values[0].type || !1
} catch (e) {
return !1
}
}
,
e.prototype._isIgnoredError = function(e, t) {
return !(!t.ignoreErrors || !t.ignoreErrors.length) && this._getPossibleEventMessages(e).some((function(e) {
return t.ignoreErrors.some((function(t) {
return Object(M.a)(e, t)
}
))
}
))
}
,
e.prototype._isDeniedUrl = function(e, t) {
if (!t.denyUrls || !t.denyUrls.length)
return !1;
var n = this._getEventFilterUrl(e);
return !!n && t.denyUrls.some((function(e) {
return Object(M.a)(n, e)
}
))
}
,
e.prototype._isAllowedUrl = function(e, t) {
if (!t.allowUrls || !t.allowUrls.length)
return !0;
var n = this._getEventFilterUrl(e);
return !n || t.allowUrls.some((function(e) {
return Object(M.a)(n, e)
}
))
}
,
e.prototype._mergeOptions = function(e) {
return void 0 === e && (e = {}),
{
allowUrls: j(this._options.whitelistUrls || [], this._options.allowUrls || [], e.whitelistUrls || [], e.allowUrls || []),
denyUrls: j(this._options.blacklistUrls || [], this._options.denyUrls || [], e.blacklistUrls || [], e.denyUrls || []),
ignoreErrors: j(this._options.ignoreErrors || [], e.ignoreErrors || [], S),
ignoreInternal: void 0 === this._options.ignoreInternal || this._options.ignoreInternal
}
}
,
e.prototype._getPossibleEventMessages = function(e) {
if (e.message)
return [e.message];
if (e.exception)
try {
var t = e.exception.values && e.exception.values[0] || {}
, n = t.type
, r = void 0 === n ? "" : n
, i = t.value
, o = void 0 === i ? "" : i;
return ["" + o, r + ": " + o]
} catch (t) {
return C.b.error("Cannot extract message for event " + Object(_.d)(e)),
[]
}
return []
}
,
e.prototype._getLastValidUrl = function(e) {
var t, n;
void 0 === e && (e = []);
for (var r = e.length - 1; r >= 0; r--) {
var i = e[r];
if ("<anonymous>" !== (null === (t = i) || void 0 === t ? void 0 : t.filename) && "[native code]" !== (null === (n = i) || void 0 === n ? void 0 : n.filename))
return i.filename || null
}
return null
}
,
e.prototype._getEventFilterUrl = function(e) {
try {
if (e.stacktrace) {
var t = e.stacktrace.frames;
return this._getLastValidUrl(t)
}
if (e.exception) {
var n = e.exception.values && e.exception.values[0].stacktrace && e.exception.values[0].stacktrace.frames;
return this._getLastValidUrl(n)
}
return null
} catch (t) {
return C.b.error("Cannot extract url for event " + Object(_.d)(e)),
null
}
}
,
e.id = "InboundFilters",
e
}()
, T = n(52)
, E = n(132)
, I = n(311)
, N = n(627)
, z = n(548)
, D = n(50)
, L = Object.setPrototypeOf || ({
__proto__: []
}instanceof Array ? function(e, t) {
return e.__proto__ = t,
e
}
: function(e, t) {
for (var n in t)
Object.prototype.hasOwnProperty.call(e, n) || (e[n] = t[n]);
return e
}
)
, R = function(e) {
function t(t) {
var n = this.constructor
, r = e.call(this, t) || this;
return r.message = t,
r.name = n.prototype.constructor.name,
L(r, n.prototype),
r
}
return Object(D.b)(t, e),
t
}(Error)
, P = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/
, B = function() {
function e(e) {
"string" == typeof e ? this._fromString(e) : this._fromComponents(e),
this._validate()
}
return e.prototype.toString = function(e) {
void 0 === e && (e = !1);
var t = this
, n = t.host
, r = t.path
, i = t.pass
, o = t.port
, a = t.projectId;
return t.protocol + "://" + t.publicKey + (e && i ? ":" + i : "") + "@" + n + (o ? ":" + o : "") + "/" + (r ? r + "/" : r) + a
}
,
e.prototype._fromString = function(e) {
var t = P.exec(e);
if (!t)
throw new R("Invalid Dsn");
var n = Object(D.c)(t.slice(1), 6)
, r = n[0]
, i = n[1]
, o = n[2]
, a = void 0 === o ? "" : o
, l = n[3]
, s = n[4]
, c = void 0 === s ? "" : s
, u = ""
, d = n[5]
, p = d.split("/");
if (p.length > 1 && (u = p.slice(0, -1).join("/"),
d = p.pop()),
d) {
var h = d.match(/^\d+/);
h && (d = h[0])
}
this._fromComponents({
host: l,
pass: a,
path: u,
projectId: d,
port: c,
protocol: r,
publicKey: i
})
}
,
e.prototype._fromComponents = function(e) {
"user"in e && !("publicKey"in e) && (e.publicKey = e.user),
this.user = e.publicKey || "",
this.protocol = e.protocol,
this.publicKey = e.publicKey || "",
this.pass = e.pass || "",
this.host = e.host,
this.port = e.port || "",
this.path = e.path || "",
this.projectId = e.projectId
}
,
e.prototype._validate = function() {
var e = this;
if (["protocol", "publicKey", "host", "projectId"].forEach((function(t) {
if (!e[t])
throw new R("Invalid Dsn: " + t + " missing")
}
)),
!this.projectId.match(/^\d+$/))
throw new R("Invalid Dsn: Invalid projectId " + this.projectId);
if ("http" !== this.protocol && "https" !== this.protocol)
throw new R("Invalid Dsn: Invalid protocol " + this.protocol);
if (this.port && isNaN(parseInt(this.port, 10)))
throw new R("Invalid Dsn: Invalid port " + this.port)
}
,
e
}()
, F = n(44)
, V = n(114)
, W = n(62)
, q = [];
function H(e) {
return e.reduce((function(e, t) {
return e.every((function(e) {
return t.name !== e.name
}
)) && e.push(t),
e
}
), [])
}
var U, X = "Not capturing exception because it's already been captured.", G = function() {
function e(e, t) {
this._integrations = {},
this._numProcessing = 0,
this._backend = new e(t),
this._options = t,
t.dsn && (this._dsn = new B(t.dsn))
}
return e.prototype.captureException = function(e, t, n) {
var r = this;
if (!Object(_.c)(e)) {
var i = t && t.event_id;
return this._process(this._getBackend().eventFromException(e, t).then((function(e) {
return r._captureEvent(e, t, n)
}
)).then((function(e) {
i = e
}
))),
i
}
C.b.log(X)
}
,
e.prototype.captureMessage = function(e, t, n, r) {
var i = this
, o = n && n.event_id
, a = Object(F.i)(e) ? this._getBackend().eventFromMessage(String(e), t, n) : this._getBackend().eventFromException(e, n);
return this._process(a.then((function(e) {
return i._captureEvent(e, n, r)
}
)).then((function(e) {
o = e
}
))),
o
}
,
e.prototype.captureEvent = function(e, t, n) {
var r;
if (!(null === (r = t) || void 0 === r ? void 0 : r.originalException) || !Object(_.c)(t.originalException)) {
var i = t && t.event_id;
return this._process(this._captureEvent(e, t, n).then((function(e) {
i = e
}
))),
i
}
C.b.log(X)
}
,
e.prototype.captureSession = function(e) {
this._isEnabled() ? "string" != typeof e.release ? C.b.warn("Discarded session because of missing or non-string release") : (this._sendSession(e),
e.update({
init: !1
})) : C.b.warn("SDK not enabled, will not capture session.")
}
,
e.prototype.getDsn = function() {
return this._dsn
}
,
e.prototype.getOptions = function() {
return this._options
}
,
e.prototype.getTransport = function() {
return this._getBackend().getTransport()
}
,
e.prototype.flush = function(e) {
var t = this;
return this._isClientDoneProcessing(e).then((function(n) {
return t.getTransport().close(e).then((function(e) {
return n && e
}
))
}
))
}
,
e.prototype.close = function(e) {
var t = this;
return this.flush(e).then((function(e) {
return t.getOptions().enabled = !1,
e
}
))
}
,
e.prototype.setupIntegrations = function() {
this._isEnabled() && !this._integrations.initialized && (this._integrations = function(e) {
var t = {};
return function(e) {
var t = e.defaultIntegrations && j(e.defaultIntegrations) || []
, n = e.integrations
, r = j(H(t));
Array.isArray(n) ? r = j(r.filter((function(e) {
return n.every((function(t) {
return t.name !== e.name
}
))
}
)), H(n)) : "function" == typeof n && (r = n(r),
r = Array.isArray(r) ? r : [r]);
var i = r.map((function(e) {
return e.name
}
))
, o = "Debug";
return -1 !== i.indexOf(o) && r.push.apply(r, j(r.splice(i.indexOf(o), 1))),
r
}(e).forEach((function(e) {
t[e.name] = e,
function(e) {
-1 === q.indexOf(e.name) && (e.setupOnce(k.b, w.b),
q.push(e.name),
C.b.log("Integration installed: " + e.name))
}(e)
}
)),
Object.defineProperty(t, "initialized", {
value: !0
}),
t
}(this._options))
}
,
e.prototype.getIntegration = function(e) {
try {
return this._integrations[e.id] || null
} catch (t) {
return C.b.warn("Cannot retrieve integration " + e.id + " from the current Client"),
null
}
}
,
e.prototype._updateSessionFromEvent = function(e, t) {
var n, r, i = !1, o = !1, a = t.exception && t.exception.values;
if (a) {
o = !0;
try {
for (var l = function(e) {
var t = "function" == typeof Symbol && Symbol.iterator
, n = t && e[t]
, r = 0;
if (n)
return n.call(e);
if (e && "number" == typeof e.length)
return {
next: function() {
return e && r >= e.length && (e = void 0),
{
value: e && e[r++],
done: !e
}
}
};
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.")
}(a), s = l.next(); !s.done; s = l.next()) {
var c = s.value.mechanism;
if (c && !1 === c.handled) {
i = !0;
break
}
}
} catch (e) {
n = {
error: e
}
} finally {
try {
s && !s.done && (r = l.return) && r.call(l)
} finally {
if (n)
throw n.error
}
}
}
var u = e.status === N.a.Ok;
(u && 0 === e.errors || u && i) && (e.update(x(x({}, i && {
status: N.a.Crashed
}), {
errors: e.errors || Number(o || i)
})),
this.captureSession(e))
}
,
e.prototype._sendSession = function(e) {
this._getBackend().sendSession(e)
}
,
e.prototype._isClientDoneProcessing = function(e) {
var t = this;
return new E.a((function(n) {
var r = 0
, i = setInterval((function() {
0 == t._numProcessing ? (clearInterval(i),
n(!0)) : (r += 1,
e && r >= e && (clearInterval(i),
n(!1)))
}
), 1)
}
))
}
,
e.prototype._getBackend = function() {
return this._backend
}
,
e.prototype._isEnabled = function() {
return !1 !== this.getOptions().enabled && void 0 !== this._dsn
}
,
e.prototype._prepareEvent = function(e, t, n) {
var r = this
, i = this.getOptions().normalizeDepth
, o = void 0 === i ? 3 : i
, a = x(x({}, e), {
event_id: e.event_id || (n && n.event_id ? n.event_id : Object(_.g)()),
timestamp: e.timestamp || Object(V.b)()
});
this._applyClientOptions(a),
this._applyIntegrationsMetadata(a);
var l = t;
n && n.captureContext && (l = k.a.clone(l).update(n.captureContext));
var s = E.a.resolve(a);
return l && (s = l.applyToEvent(a, n)),
s.then((function(e) {
return "number" == typeof o && o > 0 ? r._normalizeEvent(e, o) : e
}
))
}
,
e.prototype._normalizeEvent = function(e, t) {
if (!e)
return null;
var n = x(x(x(x(x({}, e), e.breadcrumbs && {
breadcrumbs: e.breadcrumbs.map((function(e) {
return x(x({}, e), e.data && {
data: Object(W.d)(e.data, t)
})
}
))
}), e.user && {
user: Object(W.d)(e.user, t)
}), e.contexts && {
contexts: Object(W.d)(e.contexts, t)
}), e.extra && {
extra: Object(W.d)(e.extra, t)
});
e.contexts && e.contexts.trace && (n.contexts.trace = e.contexts.trace);
var r = this.getOptions()._experiments;
return (void 0 === r ? {} : r).ensureNoCircularStructures ? Object(W.d)(n) : n
}
,
e.prototype._applyClientOptions = function(e) {
var t = this.getOptions()
, n = t.environment
, r = t.release
, i = t.dist
, o = t.maxValueLength
, a = void 0 === o ? 250 : o;
"environment"in e || (e.environment = "environment"in t ? n : "production"),
void 0 === e.release && void 0 !== r && (e.release = r),
void 0 === e.dist && void 0 !== i && (e.dist = i),
e.message && (e.message = Object(M.d)(e.message, a));
var l = e.exception && e.exception.values && e.exception.values[0];
l && l.value && (l.value = Object(M.d)(l.value, a));
var s = e.request;
s && s.url && (s.url = Object(M.d)(s.url, a))
}
,
e.prototype._applyIntegrationsMetadata = function(e) {
var t = Object.keys(this._integrations);
t.length > 0 && (e.sdk = e.sdk || {},
e.sdk.integrations = j(e.sdk.integrations || [], t))
}
,
e.prototype._sendEvent = function(e) {
this._getBackend().sendEvent(e)
}
,
e.prototype._captureEvent = function(e, t, n) {
return this._processEvent(e, t, n).then((function(e) {
return e.event_id
}
), (function(e) {
C.b.error(e)
}
))
}
,
e.prototype._processEvent = function(e, t, n) {
var r, i, o = this, a = this.getOptions(), l = a.beforeSend, s = a.sampleRate, c = this.getTransport();
if (!this._isEnabled())
return E.a.reject(new R("SDK not enabled, will not capture event."));
var u = "transaction" === e.type;
return !u && "number" == typeof s && Math.random() > s ? (null === (i = (r = c).recordLostEvent) || void 0 === i || i.call(r, z.a.SampleRate, "event"),
E.a.reject(new R("Discarding event because it's not included in the random sample (sampling rate = " + s + ")"))) : this._prepareEvent(e, n, t).then((function(n) {
var r, i;
if (null === n)
throw null === (i = (r = c).recordLostEvent) || void 0 === i || i.call(r, z.a.EventProcessor, e.type || "event"),
new R("An event processor returned null, will not send event.");
if (t && t.data && !0 === t.data.__sentry__ || u || !l)
return n;
var a = l(n, t);
return o._ensureBeforeSendRv(a)
}
)).then((function(t) {
var r, i;
if (null === t)
throw null === (i = (r = c).recordLostEvent) || void 0 === i || i.call(r, z.a.BeforeSend, e.type || "event"),
new R("`beforeSend` returned `null`, will not send event.");
var a = n && n.getSession && n.getSession();
return !u && a && o._updateSessionFromEvent(a, t),
o._sendEvent(t),
t
}
)).then(null, (function(e) {
if (e instanceof R)
throw e;
throw o.captureException(e, {
data: {
__sentry__: !0
},
originalException: e
}),
new R("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: " + e)
}
))
}
,
e.prototype._process = function(e) {
var t = this;
this._numProcessing += 1,
e.then((function(e) {
return t._numProcessing -= 1,
e
}
), (function(e) {
return t._numProcessing -= 1,
e
}
))
}
,
e.prototype._ensureBeforeSendRv = function(e) {
var t = "`beforeSend` method has to return `null` or a valid event.";
if (Object(F.m)(e))
return e.then((function(e) {
if (!Object(F.h)(e) && null !== e)
throw new R(t);
return e
}
), (function(e) {
throw new R("beforeSend rejected with " + e)
}
));
if (!Object(F.h)(e) && null !== e)
throw new R(t);
return e
}
,
e
}();
!function(e) {
e.Unknown = "unknown",
e.Skipped = "skipped",
e.Success = "success",
e.RateLimit = "rate_limit",
e.Invalid = "invalid",
e.Failed = "failed"
}(U || (U = {})),
function(e) {
e.fromHttpCode = function(t) {
return t >= 200 && t < 300 ? e.Success : 429 === t ? e.RateLimit : t >= 400 && t < 500 ? e.Invalid : t >= 500 ? e.Failed : e.Unknown
}
}(U || (U = {}));
var K, Y = function() {
function e() {}
return e.prototype.sendEvent = function(e) {
return E.a.resolve({
reason: "NoopTransport: Event has been skipped because no Dsn is configured.",
status: U.Skipped
})
}
,
e.prototype.close = function(e) {
return E.a.resolve(!0)
}
,
e
}(), Q = function() {
function e(e) {
this._options = e,
this._options.dsn || C.b.warn("No DSN provided, backend will not do anything."),
this._transport = this._setupTransport()
}
return e.prototype.eventFromException = function(e, t) {
throw new R("Backend has to implement `eventFromException` method")
}
,
e.prototype.eventFromMessage = function(e, t, n) {
throw new R("Backend has to implement `eventFromMessage` method")
}
,
e.prototype.sendEvent = function(e) {
this._transport.sendEvent(e).then(null, (function(e) {
C.b.error("Error while sending event: " + e)
}
))
}
,
e.prototype.sendSession = function(e) {
this._transport.sendSession ? this._transport.sendSession(e).then(null, (function(e) {
C.b.error("Error while sending session: " + e)
}
)) : C.b.warn("Dropping session because custom transport doesn't implement sendSession")
}
,
e.prototype.getTransport = function() {
return this._transport
}
,
e.prototype._setupTransport = function() {
return new Y
}
,
e
}();
!function(e) {
e.Fatal = "fatal",
e.Error = "error",
e.Warning = "warning",
e.Log = "log",
e.Info = "info",
e.Debug = "debug",
e.Critical = "critical"
}(K || (K = {})),
function(e) {
e.fromString = function(t) {
switch (t) {
case "debug":
return e.Debug;
case "info":
return e.Info;
case "warn":
case "warning":
return e.Warning;
case "error":
return e.Error;
case "fatal":
return e.Fatal;
case "critical":
return e.Critical;
default:
return e.Log
}
}
}(K || (K = {}));
var J = n(212)
, Z = "?"
, $ = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i
, ee = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i
, te = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i
, ne = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i
, re = /\((\S*)(?::(\d+))(?::(\d+))\)/
, ie = /Minified React error #\d+;/i;
function oe(e) {
var t = null
, n = 0;
e && ("number" == typeof e.framesToPop ? n = e.framesToPop : ie.test(e.message) && (n = 1));
try {
if (t = function(e) {
if (!e || !e.stacktrace)
return null;
for (var t, n = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i, r = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i, i = e.stacktrace.split("\n"), o = [], a = 0; a < i.length; a += 2) {
var l = null;
(t = n.exec(i[a])) ? l = {
url: t[2],
func: t[3],
args: [],
line: +t[1],
column: null
} : (t = r.exec(i[a])) && (l = {
url: t[6],
func: t[3] || t[4],
args: t[5] ? t[5].split(",") : [],
line: +t[1],
column: +t[2]
}),
l && (!l.func && l.line && (l.func = Z),
o.push(l))
}
return o.length ? {
message: se(e),
name: e.name,
stack: o
} : null
}(e),
t)
return le(t, n)
} catch (e) {}
try {
if (t = function(e) {
var t, n;
if (!e || !e.stack)
return null;
for (var r, i, o, a = [], l = e.stack.split("\n"), s = 0; s < l.length; ++s) {
if (i = $.exec(l[s])) {
var c = i[2] && 0 === i[2].indexOf("native");
i[2] && 0 === i[2].indexOf("eval") && (r = re.exec(i[2])) && (i[2] = r[1],
i[3] = r[2],
i[4] = r[3]);
var u = i[2] && 0 === i[2].indexOf("address at ") ? i[2].substr(11) : i[2]
, d = i[1] || Z;
d = (t = m(ae(d, u), 2))[0],
o = {
url: u = t[1],
func: d,
args: c ? [i[2]] : [],
line: i[3] ? +i[3] : null,
column: i[4] ? +i[4] : null
}
} else if (i = te.exec(l[s]))
o = {
url: i[2],
func: i[1] || Z,
args: [],
line: +i[3],
column: i[4] ? +i[4] : null
};
else {
if (!(i = ee.exec(l[s])))
continue;
i[3] && i[3].indexOf(" > eval") > -1 && (r = ne.exec(i[3])) ? (i[1] = i[1] || "eval",
i[3] = r[1],
i[4] = r[2],
i[5] = "") : 0 !== s || i[5] || void 0 === e.columnNumber || (a[0].column = e.columnNumber + 1),
u = i[3],
d = i[1] || Z,
d = (n = m(ae(d, u), 2))[0],
o = {
url: u = n[1],
func: d,
args: i[2] ? i[2].split(",") : [],
line: i[4] ? +i[4] : null,
column: i[5] ? +i[5] : null
}
}
!o.func && o.line && (o.func = Z),
a.push(o)
}
return a.length ? {
message: se(e),
name: e.name,
stack: a
} : null
}(e),
t)
return le(t, n)
} catch (e) {}
return {
message: se(e),
name: e && e.name,
stack: [],
failed: !0
}
}
var ae = function(e, t) {
var n = -1 !== e.indexOf("safari-extension")
, r = -1 !== e.indexOf("safari-web-extension");
return n || r ? [-1 !== e.indexOf("@") ? e.split("@")[0] : Z, n ? "safari-extension:" + t : "safari-web-extension:" + t] : [e, t]
};
function le(e, t) {
try {
return b(b({}, e), {
stack: e.stack.slice(t)
})
} catch (t) {
return e
}
}
function se(e) {
var t = e && e.message;
return t ? t.error && "string" == typeof t.error.message ? t.error.message : t : "No error message"
}
function ce(e) {
var t = de(e.stack)
, n = {
type: e.name,
value: e.message
};
return t && t.length && (n.stacktrace = {
frames: t
}),
void 0 === n.type && "" === n.value && (n.value = "Unrecoverable error caught"),
n
}
function ue(e) {
return {
exception: {
values: [ce(e)]
}
}
}
function de(e) {
if (!e || !e.length)
return [];
var t = e
, n = t[0].func || ""
, r = t[t.length - 1].func || "";
return -1 === n.indexOf("captureMessage") && -1 === n.indexOf("captureException") || (t = t.slice(1)),
-1 !== r.indexOf("sentryWrapped") && (t = t.slice(0, -1)),
t.slice(0, 50).map((function(e) {
return {
colno: null === e.column ? void 0 : e.column,
filename: e.url || t[0].url,
function: e.func || "?",
in_app: !0,
lineno: null === e.line ? void 0 : e.line
}
}
)).reverse()
}
function pe(e, t, n) {
var r;
if (void 0 === n && (n = {}),
Object(F.e)(e) && e.error)
return ue(oe(e = e.error));
if (Object(F.a)(e) || Object(F.b)(e)) {
var i = e;
if ("stack"in e)
r = ue(oe(e));
else {
var o = i.name || (Object(F.a)(i) ? "DOMError" : "DOMException")
, a = i.message ? o + ": " + i.message : o;
r = he(a, t, n),
Object(_.b)(r, a)
}
return "code"in i && (r.tags = b(b({}, r.tags), {
"DOMException.code": "" + i.code
})),
r
}
return Object(F.d)(e) ? r = ue(oe(e)) : Object(F.h)(e) || Object(F.f)(e) ? (r = function(e, t, n) {
var r = {
exception: {
values: [{
type: Object(F.f)(e) ? e.constructor.name : n ? "UnhandledRejection" : "Error",
value: "Non-Error " + (n ? "promise rejection" : "exception") + " captured with keys: " + Object(W.b)(e)
}]
},
extra: {
__serialized__: Object(W.e)(e)
}
};
if (t) {
var i = de(oe(t).stack);
r.stacktrace = {
frames: i
}
}
return r
}(e, t, n.rejection),
Object(_.a)(r, {
synthetic: !0
}),
r) : (r = he(e, t, n),
Object(_.b)(r, "" + e, void 0),
Object(_.a)(r, {
synthetic: !0
}),
r)
}
function he(e, t, n) {
void 0 === n && (n = {});
var r = {
message: e
};
if (n.attachStacktrace && t) {
var i = de(oe(t).stack);
r.stacktrace = {
frames: i
}
}
return r
}
function fe(e) {
if (e.metadata && e.metadata.sdk) {
var t = e.metadata.sdk;
return {
name: t.name,
version: t.version
}
}
}
function be(e, t) {
return t ? (e.sdk = e.sdk || {},
e.sdk.name = e.sdk.name || t.name,
e.sdk.version = e.sdk.version || t.version,
e.sdk.integrations = j(e.sdk.integrations || [], t.integrations || []),
e.sdk.packages = j(e.sdk.packages || [], t.packages || []),
e) : e
}
function ge(e, t) {
var n = fe(t)
, r = "aggregates"in e ? "sessions" : "session";
return {
body: JSON.stringify(x(x({
sent_at: (new Date).toISOString()
}, n && {
sdk: n
}), t.forceEnvelope() && {
dsn: t.getDsn().toString()
})) + "\n" + JSON.stringify({
type: r
}) + "\n" + JSON.stringify(e),
type: r,
url: t.getEnvelopeEndpointWithUrlEncodedAuth()
}
}
function me(e, t) {
var n = fe(t)
, r = e.type || "event"
, i = "transaction" === r || t.forceEnvelope()
, o = e.debug_meta || {}
, a = o.transactionSampling
, l = function(e, t) {
var n = {};
for (var r in e)
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
if (null != e && "function" == typeof Object.getOwnPropertySymbols) {
var i = 0;
for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]])
}
return n
}(o, ["transactionSampling"])
, s = a || {}
, c = s.method
, u = s.rate;
0 === Object.keys(l).length ? delete e.debug_meta : e.debug_meta = l;
var d = {
body: JSON.stringify(n ? be(e, t.metadata.sdk) : e),
type: r,
url: i ? t.getEnvelopeEndpointWithUrlEncodedAuth() : t.getStoreEndpointWithUrlEncodedAuth()
};
if (i) {
var p = JSON.stringify(x(x({
event_id: e.event_id,
sent_at: (new Date).toISOString()
}, n && {
sdk: n
}), t.forceEnvelope() && {
dsn: t.getDsn().toString()
})) + "\n" + JSON.stringify({
type: r,
sample_rates: [{
id: c,
rate: u
}]
}) + "\n" + d.body;
d.body = p
}
return d
}
var ve, ye = function() {
function e(e, t, n) {
void 0 === t && (t = {}),
this.dsn = e,
this._dsnObject = new B(e),
this.metadata = t,
this._tunnel = n
}
return e.prototype.getDsn = function() {
return this._dsnObject
}
,
e.prototype.forceEnvelope = function() {
return !!this._tunnel
}
,
e.prototype.getBaseApiEndpoint = function() {
var e = this.getDsn()
, t = e.protocol ? e.protocol + ":" : ""
, n = e.port ? ":" + e.port : "";
return t + "//" + e.host + n + (e.path ? "/" + e.path : "") + "/api/"
}
,
e.prototype.getStoreEndpoint = function() {
return this._getIngestEndpoint("store")
}
,
e.prototype.getStoreEndpointWithUrlEncodedAuth = function() {
return this.getStoreEndpoint() + "?" + this._encodedAuth()
}
,
e.prototype.getEnvelopeEndpointWithUrlEncodedAuth = function() {
return this.forceEnvelope() ? this._tunnel : this._getEnvelopeEndpoint() + "?" + this._encodedAuth()
}
,
e.prototype.getStoreEndpointPath = function() {
var e = this.getDsn();
return (e.path ? "/" + e.path : "") + "/api/" + e.projectId + "/store/"
}
,
e.prototype.getRequestHeaders = function(e, t) {
var n = this.getDsn()
, r = ["Sentry sentry_version=7"];
return r.push("sentry_client=" + e + "/" + t),
r.push("sentry_key=" + n.publicKey),
n.pass && r.push("sentry_secret=" + n.pass),
{
"Content-Type": "application/json",
"X-Sentry-Auth": r.join(", ")
}
}
,
e.prototype.getReportDialogEndpoint = function(e) {
void 0 === e && (e = {});
var t = this.getDsn()
, n = this.getBaseApiEndpoint() + "embed/error-page/"
, r = [];
for (var i in r.push("dsn=" + t.toString()),
e)
if ("dsn" !== i)
if ("user" === i) {
if (!e.user)
continue;
e.user.name && r.push("name=" + encodeURIComponent(e.user.name)),
e.user.email && r.push("email=" + encodeURIComponent(e.user.email))
} else
r.push(encodeURIComponent(i) + "=" + encodeURIComponent(e[i]));
return r.length ? n + "?" + r.join("&") : n
}
,
e.prototype._getEnvelopeEndpoint = function() {
return this._getIngestEndpoint("envelope")
}
,
e.prototype._getIngestEndpoint = function(e) {
return this._tunnel ? this._tunnel : "" + this.getBaseApiEndpoint() + this.getDsn().projectId + "/" + e + "/"
}
,
e.prototype._encodedAuth = function() {
var e = {
sentry_key: this.getDsn().publicKey,
sentry_version: "7"
};
return Object(W.f)(e)
}
,
e
}(), xe = function() {
function e(e) {
this._limit = e,
this._buffer = []
}
return e.prototype.isReady = function() {
return void 0 === this._limit || this.length() < this._limit
}
,
e.prototype.add = function(e) {
var t = this;
if (!this.isReady())
return E.a.reject(new R("Not adding Promise due to buffer limit reached."));
var n = e();
return -1 === this._buffer.indexOf(n) && this._buffer.push(n),
n.then((function() {
return t.remove(n)
}
)).then(null, (function() {
return t.remove(n).then(null, (function() {}
))
}
)),
n
}
,
e.prototype.remove = function(e) {
return this._buffer.splice(this._buffer.indexOf(e), 1)[0]
}
,
e.prototype.length = function() {
return this._buffer.length
}
,
e.prototype.drain = function(e) {
var t = this;
return new E.a((function(n) {
var r = setTimeout((function() {
e && e > 0 && n(!1)
}
), e);
E.a.all(t._buffer).then((function() {
clearTimeout(r),
n(!0)
}
)).then(null, (function() {
n(!0)
}
))
}
))
}
,
e
}(), Oe = Object(T.a)();
function je() {
var e, t;
if (ve)
return ve;
if (Object(J.a)(Oe.fetch))
return ve = Oe.fetch.bind(Oe);
var n = Oe.document
, r = Oe.fetch;
if ("function" == typeof (null === (e = n) || void 0 === e ? void 0 : e.createElement))
try {
var i = n.createElement("iframe");
i.hidden = !0,
n.head.appendChild(i),
(null === (t = i.contentWindow) || void 0 === t ? void 0 : t.fetch) && (r = i.contentWindow.fetch),
n.head.removeChild(i)
} catch (e) {
C.b.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ", e)
}
return ve = r.bind(Oe)
}
var ke = {
event: "error",
transaction: "transaction",
session: "session",
attachment: "attachment"
}
, we = Object(T.a)()
, Ce = function() {
function e(e) {
var t = this;
this.options = e,
this._buffer = new xe(30),
this._rateLimits = {},
this._outcomes = {},
this._api = new ye(e.dsn,e._metadata,e.tunnel),
this.url = this._api.getStoreEndpointWithUrlEncodedAuth(),
this.options.sendClientReports && we.document && we.document.addEventListener("visibilitychange", (function() {
"hidden" === we.document.visibilityState && t._flushOutcomes()
}
))
}
return e.prototype.sendEvent = function(e) {
throw new R("Transport Class has to implement `sendEvent` method")
}
,
e.prototype.close = function(e) {
return this._buffer.drain(e)
}
,
e.prototype.recordLostEvent = function(e, t) {
var n;
if (this.options.sendClientReports) {
var r = ke[t] + ":" + e;
C.b.log("Adding outcome: " + r),
this._outcomes[r] = (null !== (n = this._outcomes[r]) && void 0 !== n ? n : 0) + 1
}
}
,
e.prototype._flushOutcomes = function() {
if (this.options.sendClientReports) {
var e = this._outcomes;
if (this._outcomes = {},
Object.keys(e).length) {
C.b.log("Flushing outcomes:\n" + JSON.stringify(e, null, 2));
var t = this._api.getEnvelopeEndpointWithUrlEncodedAuth()
, n = JSON.stringify(b({}, this.options.tunnel && {
dsn: this._api.getDsn().toString()
})) + "\n" + JSON.stringify({
type: "client_report"
}) + "\n" + JSON.stringify({
timestamp: Object(V.b)(),
discarded_events: Object.keys(e).map((function(t) {
var n = m(t.split(":"), 2)
, r = n[0];
return {
reason: n[1],
category: r,
quantity: e[t]
}
}
))
});
try {
!function(e, t) {
if ("[object Navigator]" === Object.prototype.toString.call(Oe && Oe.navigator) && "function" == typeof Oe.navigator.sendBeacon)
return Oe.navigator.sendBeacon.bind(Oe.navigator)(e, t);
Object(J.b)() && je()(e, {
body: t,
method: "POST",
credentials: "omit",
keepalive: !0
}).then(null, (function(e) {
console.error(e)
}
))
}(t, n)
} catch (e) {
C.b.error(e)
}
} else
C.b.log("No outcomes to flush")
}
}
,
e.prototype._handleResponse = function(e) {
var t = e.requestType
, n = e.response
, r = e.headers
, i = e.resolve
, o = e.reject
, a = U.fromHttpCode(n.status);
this._handleRateLimit(r) && C.b.warn("Too many " + t + " requests, backing off until: " + this._disabledUntil(t)),
a !== U.Success ? o(n) : i({
status: a
})
}
,
e.prototype._disabledUntil = function(e) {
var t = ke[e];
return this._rateLimits[t] || this._rateLimits.all
}
,
e.prototype._isRateLimited = function(e) {
return this._disabledUntil(e) > new Date(Date.now())
}
,
e.prototype._handleRateLimit = function(e) {
var t, n, r, i, o = Date.now(), a = e["x-sentry-rate-limits"], l = e["retry-after"];
if (a) {
try {
for (var s = g(a.trim().split(",")), c = s.next(); !c.done; c = s.next()) {
var u = c.value.split(":", 2)
, d = parseInt(u[0], 10)
, p = 1e3 * (isNaN(d) ? 60 : d);
try {
for (var h = (r = void 0,
g(u[1].split(";"))), f = h.next(); !f.done; f = h.next()) {
var b = f.value;
this._rateLimits[b || "all"] = new Date(o + p)
}
} catch (e) {
r = {
error: e
}
} finally {
try {
f && !f.done && (i = h.return) && i.call(h)
} finally {
if (r)
throw r.error
}
}
}
} catch (e) {
t = {
error: e
}
} finally {
try {
c && !c.done && (n = s.return) && n.call(s)
} finally {
if (t)
throw t.error
}
}
return !0
}
return !!l && (this._rateLimits.all = new Date(o + Object(_.e)(o, l)),
!0)
}
,
e
}()
, _e = function(e) {
function t(t, n) {
void 0 === n && (n = je());
var r = e.call(this, t) || this;
return r._fetch = n,
r
}
return h(t, e),
t.prototype.sendEvent = function(e) {
return this._sendRequest(me(e, this._api), e)
}
,
t.prototype.sendSession = function(e) {
return this._sendRequest(ge(e, this._api), e)
}
,
t.prototype._sendRequest = function(e, t) {
var n = this;
if (this._isRateLimited(e.type))
return this.recordLostEvent(z.a.RateLimitBackoff, e.type),
Promise.reject({
event: t,
type: e.type,
reason: "Transport for " + e.type + " requests locked till " + this._disabledUntil(e.type) + " due to too many requests.",
status: 429
});
var r = {
body: e.body,
method: "POST",
referrerPolicy: Object(J.e)() ? "origin" : ""
};
return void 0 !== this.options.fetchParameters && Object.assign(r, this.options.fetchParameters),
void 0 !== this.options.headers && (r.headers = this.options.headers),
this._buffer.add((function() {
return new E.a((function(t, i) {
n._fetch(e.url, r).then((function(r) {
var o = {
"x-sentry-rate-limits": r.headers.get("X-Sentry-Rate-Limits"),
"retry-after": r.headers.get("Retry-After")
};
n._handleResponse({
requestType: e.type,
response: r,
headers: o,
resolve: t,
reject: i
})
}
)).catch(i)
}
))
}
)).then(void 0, (function(t) {
throw t instanceof R ? n.recordLostEvent(z.a.QueueOverflow, e.type) : n.recordLostEvent(z.a.NetworkError, e.type),
t
}
))
}
,
t
}(Ce)
, Me = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return h(t, e),
t.prototype.sendEvent = function(e) {
return this._sendRequest(me(e, this._api), e)
}
,
t.prototype.sendSession = function(e) {
return this._sendRequest(ge(e, this._api), e)
}
,
t.prototype._sendRequest = function(e, t) {
var n = this;
return this._isRateLimited(e.type) ? (this.recordLostEvent(z.a.RateLimitBackoff, e.type),
Promise.reject({
event: t,
type: e.type,
reason: "Transport for " + e.type + " requests locked till " + this._disabledUntil(e.type) + " due to too many requests.",
status: 429
})) : this._buffer.add((function() {
return new E.a((function(t, r) {
var i = new XMLHttpRequest;
for (var o in i.onreadystatechange = function() {
if (4 === i.readyState) {
var o = {
"x-sentry-rate-limits": i.getResponseHeader("X-Sentry-Rate-Limits"),
"retry-after": i.getResponseHeader("Retry-After")
};
n._handleResponse({
requestType: e.type,
response: i,
headers: o,
resolve: t,
reject: r
})
}
}
,
i.open("POST", e.url),
n.options.headers)
Object.prototype.hasOwnProperty.call(n.options.headers, o) && i.setRequestHeader(o, n.options.headers[o]);
i.send(e.body)
}
))
}
)).then(void 0, (function(t) {
throw t instanceof R ? n.recordLostEvent(z.a.QueueOverflow, e.type) : n.recordLostEvent(z.a.NetworkError, e.type),
t
}
))
}
,
t
}(Ce)
, Se = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return h(t, e),
t.prototype.eventFromException = function(e, t) {
return function(e, t, n) {
var r = pe(t, n && n.syntheticException || void 0, {
attachStacktrace: e.attachStacktrace
});
return Object(_.a)(r),
r.level = K.Error,
n && n.event_id && (r.event_id = n.event_id),
E.a.resolve(r)
}(this._options, e, t)
}
,
t.prototype.eventFromMessage = function(e, t, n) {
return void 0 === t && (t = K.Info),
function(e, t, n, r) {
void 0 === n && (n = K.Info);
var i = he(t, r && r.syntheticException || void 0, {
attachStacktrace: e.attachStacktrace
});
return i.level = n,
r && r.event_id && (i.event_id = r.event_id),
E.a.resolve(i)
}(this._options, e, t, n)
}
,
t.prototype._setupTransport = function() {
if (!this._options.dsn)
return e.prototype._setupTransport.call(this);
var t = b(b({}, this._options.transportOptions), {
dsn: this._options.dsn,
tunnel: this._options.tunnel,
sendClientReports: this._options.sendClientReports,
_metadata: this._options._metadata
});
return this._options.transport ? new this._options.transport(t) : Object(J.b)() ? new _e(t) : new Me(t)
}
,
t
}(Q);
function Ae(e, t) {
var n = "function" == typeof Symbol && e[Symbol.iterator];
if (!n)
return e;
var r, i, o = n.call(e), a = [];
try {
for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; )
a.push(r.value)
} catch (e) {
i = {
error: e
}
} finally {
try {
r && !r.done && (n = o.return) && n.call(o)
} finally {
if (i)
throw i.error
}
}
return a
}
function Te(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = Object(w.b)();
if (r && r[e])
return r[e].apply(r, function() {
for (var e = [], t = 0; t < arguments.length; t++)
e = e.concat(Ae(arguments[t]));
return e
}(t));
throw new Error("No hub defined or " + e + " was not found on the hub, please open a bug report.")
}
var Ee = Object(T.a)()
, Ie = 0;
function Ne() {
return Ie > 0
}
function ze(e, t, n) {
if (void 0 === t && (t = {}),
"function" != typeof e)
return e;
try {
if (e.__sentry__)
return e;
if (e.__sentry_wrapped__)
return e.__sentry_wrapped__
} catch (t) {
return e
}
var r = function() {
var r = Array.prototype.slice.call(arguments);
try {
n && "function" == typeof n && n.apply(this, arguments);
var i = r.map((function(e) {
return ze(e, t)
}
));
return e.handleEvent ? e.handleEvent.apply(this, i) : e.apply(this, i)
} catch (e) {
throw Ie += 1,
setTimeout((function() {
Ie -= 1
}
)),
function(e) {
Te("withScope", e)
}((function(n) {
n.addEventProcessor((function(e) {
var n = b({}, e);
return t.mechanism && (Object(_.b)(n, void 0, void 0),
Object(_.a)(n, t.mechanism)),
n.extra = b(b({}, n.extra), {
arguments: r
}),
n
}
)),
function(e, t) {
var n;
try {
throw new Error("Sentry syntheticException")
} catch (e) {
n = e
}
Te("captureException", e, {
captureContext: t,
originalException: e,
syntheticException: n
})
}(e)
}
)),
e
}
};
try {
for (var i in e)
Object.prototype.hasOwnProperty.call(e, i) && (r[i] = e[i])
} catch (e) {}
e.prototype = e.prototype || {},
r.prototype = e.prototype,
Object.defineProperty(e, "__sentry_wrapped__", {
enumerable: !1,
value: r
}),
Object.defineProperties(r, {
__sentry__: {
enumerable: !1,
value: !0
},
__sentry_original__: {
enumerable: !1,
value: e
}
});
try {
Object.getOwnPropertyDescriptor(r, "name").configurable && Object.defineProperty(r, "name", {
get: function() {
return e.name
}
})
} catch (e) {}
return r
}
var De = n(210)
, Le = function() {
function e(t) {
this.name = e.id,
this._options = b({
console: !0,
dom: !0,
fetch: !0,
history: !0,
sentry: !0,
xhr: !0
}, t)
}
return e.prototype.addSentryBreadcrumb = function(e) {
this._options.sentry && Object(w.b)().addBreadcrumb({
category: "sentry." + ("transaction" === e.type ? "transaction" : "event"),
event_id: e.event_id,
level: e.level,
message: Object(_.d)(e)
}, {
event: e
})
}
,
e.prototype.setupOnce = function() {
var e = this;
this._options.console && Object(I.a)({
callback: function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
e._consoleBreadcrumb.apply(e, v(t))
},
type: "console"
}),
this._options.dom && Object(I.a)({
callback: function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
e._domBreadcrumb.apply(e, v(t))
},
type: "dom"
}),
this._options.xhr && Object(I.a)({
callback: function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
e._xhrBreadcrumb.apply(e, v(t))
},
type: "xhr"
}),
this._options.fetch && Object(I.a)({
callback: function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
e._fetchBreadcrumb.apply(e, v(t))
},
type: "fetch"
}),
this._options.history && Object(I.a)({
callback: function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
e._historyBreadcrumb.apply(e, v(t))
},
type: "history"
})
}
,
e.prototype._consoleBreadcrumb = function(e) {
var t = {
category: "console",
data: {
arguments: e.args,
logger: "console"
},
level: K.fromString(e.level),
message: Object(M.b)(e.args, " ")
};
if ("assert" === e.level) {
if (!1 !== e.args[0])
return;
t.message = "Assertion failed: " + (Object(M.b)(e.args.slice(1), " ") || "console.assert"),
t.data.arguments = e.args.slice(1)
}
Object(w.b)().addBreadcrumb(t, {
input: e.args,
level: e.level
})
}
,
e.prototype._domBreadcrumb = function(e) {
var t, n = "object" == typeof this._options.dom ? this._options.dom.serializeAttribute : void 0;
"string" == typeof n && (n = [n]);
try {
t = e.event.target ? Object(De.b)(e.event.target, n) : Object(De.b)(e.event, n)
} catch (e) {
t = "<unknown>"
}
0 !== t.length && Object(w.b)().addBreadcrumb({
category: "ui." + e.name,
message: t
}, {
event: e.event,
name: e.name,
global: e.global
})
}
,
e.prototype._xhrBreadcrumb = function(e) {
if (e.endTimestamp) {
if (e.xhr.__sentry_own_request__)
return;
var t = e.xhr.__sentry_xhr__ || {}
, n = t.method
, r = t.url
, i = t.status_code
, o = t.body;
Object(w.b)().addBreadcrumb({
category: "xhr",
data: {
method: n,
url: r,
status_code: i
},
type: "http"
}, {
xhr: e.xhr,
input: o
})
}
}
,
e.prototype._fetchBreadcrumb = function(e) {
e.endTimestamp && (e.fetchData.url.match(/sentry_key/) && "POST" === e.fetchData.method || (e.error ? Object(w.b)().addBreadcrumb({
category: "fetch",
data: e.fetchData,
level: K.Error,
type: "http"
}, {
data: e.error,
input: e.args
}) : Object(w.b)().addBreadcrumb({
category: "fetch",
data: b(b({}, e.fetchData), {
status_code: e.response.status
}),
type: "http"
}, {
input: e.args,
response: e.response
})))
}
,
e.prototype._historyBreadcrumb = function(e) {
var t = Object(T.a)()
, n = e.from
, r = e.to
, i = Object(_.f)(t.location.href)
, o = Object(_.f)(n)
, a = Object(_.f)(r);
o.path || (o = i),
i.protocol === a.protocol && i.host === a.host && (r = a.relative),
i.protocol === o.protocol && i.host === o.host && (n = o.relative),
Object(w.b)().addBreadcrumb({
category: "navigation",
data: {
from: n,
to: r
}
})
}
,
e.id = "Breadcrumbs",
e
}()
, Re = function(e) {
function t(t) {
return void 0 === t && (t = {}),
t._metadata = t._metadata || {},
t._metadata.sdk = t._metadata.sdk || {
name: "sentry.javascript.browser",
packages: [{
name: "npm:@sentry/browser",
version: d
}],
version: d
},
e.call(this, Se, t) || this
}
return h(t, e),
t.prototype.showReportDialog = function(e) {
void 0 === e && (e = {}),
Object(T.a)().document && (this._isEnabled() ? function(e) {
if (void 0 === e && (e = {}),
Ee.document)
if (e.eventId)
if (e.dsn) {
var t = Ee.document.createElement("script");
t.async = !0,
t.src = new ye(e.dsn).getReportDialogEndpoint(e),
e.onLoad && (t.onload = e.onLoad);
var n = Ee.document.head || Ee.document.body;
n && n.appendChild(t)
} else
C.b.error("Missing dsn option in showReportDialog call");
else
C.b.error("Missing eventId option in showReportDialog call")
}(b(b({}, e), {
dsn: e.dsn || this.getDsn()
})) : C.b.error("Trying to call showReportDialog with Sentry Client disabled"))
}
,
t.prototype._prepareEvent = function(t, n, r) {
return t.platform = t.platform || "javascript",
e.prototype._prepareEvent.call(this, t, n, r)
}
,
t.prototype._sendEvent = function(t) {
var n = this.getIntegration(Le);
n && n.addSentryBreadcrumb(t),
e.prototype._sendEvent.call(this, t)
}
,
t
}(G)
, Pe = n(163)
, Be = ["EventTarget", "Window", "Node", "ApplicationCache", "AudioTrackList", "ChannelMergerNode", "CryptoOperation", "EventSource", "FileReader", "HTMLUnknownElement", "IDBDatabase", "IDBRequest", "IDBTransaction", "KeyOperation", "MediaController", "MessagePort", "ModalWindow", "Notification", "SVGElementInstance", "Screen", "TextTrack", "TextTrackCue", "TextTrackList", "WebSocket", "WebSocketWorker", "Worker", "XMLHttpRequest", "XMLHttpRequestEventTarget", "XMLHttpRequestUpload"]
, Fe = function() {
function e(t) {
this.name = e.id,
this._options = b({
XMLHttpRequest: !0,
eventTarget: !0,
requestAnimationFrame: !0,
setInterval: !0,
setTimeout: !0
}, t)
}
return e.prototype.setupOnce = function() {
var e = Object(T.a)();
this._options.setTimeout && Object(W.c)(e, "setTimeout", this._wrapTimeFunction.bind(this)),
this._options.setInterval && Object(W.c)(e, "setInterval", this._wrapTimeFunction.bind(this)),
this._options.requestAnimationFrame && Object(W.c)(e, "requestAnimationFrame", this._wrapRAF.bind(this)),
this._options.XMLHttpRequest && "XMLHttpRequest"in e && Object(W.c)(XMLHttpRequest.prototype, "send", this._wrapXHR.bind(this)),
this._options.eventTarget && (Array.isArray(this._options.eventTarget) ? this._options.eventTarget : Be).forEach(this._wrapEventTarget.bind(this))
}
,
e.prototype._wrapTimeFunction = function(e) {
return function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
var r = t[0];
return t[0] = ze(r, {
mechanism: {
data: {
function: Object(Pe.a)(e)
},
handled: !0,
type: "instrument"
}
}),
e.apply(this, t)
}
}
,
e.prototype._wrapRAF = function(e) {
return function(t) {
return e.call(this, ze(t, {
mechanism: {
data: {
function: "requestAnimationFrame",
handler: Object(Pe.a)(e)
},
handled: !0,
type: "instrument"
}
}))
}
}
,
e.prototype._wrapEventTarget = function(e) {
var t = Object(T.a)()
, n = t[e] && t[e].prototype;
n && n.hasOwnProperty && n.hasOwnProperty("addEventListener") && (Object(W.c)(n, "addEventListener", (function(t) {
return function(n, r, i) {
try {
"function" == typeof r.handleEvent && (r.handleEvent = ze(r.handleEvent.bind(r), {
mechanism: {
data: {
function: "handleEvent",
handler: Object(Pe.a)(r),
target: e
},
handled: !0,
type: "instrument"
}
}))
} catch (e) {}
return t.call(this, n, ze(r, {
mechanism: {
data: {
function: "addEventListener",
handler: Object(Pe.a)(r),
target: e
},
handled: !0,
type: "instrument"
}
}), i)
}
}
)),
Object(W.c)(n, "removeEventListener", (function(e) {
return function(t, n, r) {
var i, o = n;
try {
var a = null === (i = o) || void 0 === i ? void 0 : i.__sentry_wrapped__;
a && e.call(this, t, a, r)
} catch (e) {}
return e.call(this, t, o, r)
}
}
)))
}
,
e.prototype._wrapXHR = function(e) {
return function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
var r = this;
return ["onload", "onerror", "onprogress", "onreadystatechange"].forEach((function(e) {
e in r && "function" == typeof r[e] && Object(W.c)(r, e, (function(t) {
var n = {
mechanism: {
data: {
function: e,
handler: Object(Pe.a)(t)
},
handled: !0,
type: "instrument"
}
};
return t.__sentry_original__ && (n.mechanism.data.handler = Object(Pe.a)(t.__sentry_original__)),
ze(t, n)
}
))
}
)),
e.apply(this, t)
}
}
,
e.id = "TryCatch",
e
}()
, Ve = function() {
function e(t) {
this.name = e.id,
this._onErrorHandlerInstalled = !1,
this._onUnhandledRejectionHandlerInstalled = !1,
this._options = b({
onerror: !0,
onunhandledrejection: !0
}, t)
}
return e.prototype.setupOnce = function() {
Error.stackTraceLimit = 50,
this._options.onerror && (C.b.log("Global Handler attached: onerror"),
this._installGlobalOnErrorHandler()),
this._options.onunhandledrejection && (C.b.log("Global Handler attached: onunhandledrejection"),
this._installGlobalOnUnhandledRejectionHandler())
}
,
e.prototype._installGlobalOnErrorHandler = function() {
var t = this;
this._onErrorHandlerInstalled || (Object(I.a)({
callback: function(n) {
var r = n.error
, i = Object(w.b)()
, o = i.getIntegration(e)
, a = r && !0 === r.__sentry_own_request__;
if (o && !Ne() && !a) {
var l = i.getClient()
, s = void 0 === r && Object(F.k)(n.msg) ? t._eventFromIncompleteOnError(n.msg, n.url, n.line, n.column) : t._enhanceEventWithInitialFrame(pe(r || n.msg, void 0, {
attachStacktrace: l && l.getOptions().attachStacktrace,
rejection: !1
}), n.url, n.line, n.column);
Object(_.a)(s, {
handled: !1,
type: "onerror"
}),
i.captureEvent(s, {
originalException: r
})
}
},
type: "error"
}),
this._onErrorHandlerInstalled = !0)
}
,
e.prototype._installGlobalOnUnhandledRejectionHandler = function() {
var t = this;
this._onUnhandledRejectionHandlerInstalled || (Object(I.a)({
callback: function(n) {
var r = n;
try {
"reason"in n ? r = n.reason : "detail"in n && "reason"in n.detail && (r = n.detail.reason)
} catch (e) {}
var i = Object(w.b)()
, o = i.getIntegration(e)
, a = r && !0 === r.__sentry_own_request__;
if (!o || Ne() || a)
return !0;
var l = i.getClient()
, s = Object(F.i)(r) ? t._eventFromRejectionWithPrimitive(r) : pe(r, void 0, {
attachStacktrace: l && l.getOptions().attachStacktrace,
rejection: !0
});
s.level = K.Error,
Object(_.a)(s, {
handled: !1,
type: "onunhandledrejection"
}),
i.captureEvent(s, {
originalException: r
})
},
type: "unhandledrejection"
}),
this._onUnhandledRejectionHandlerInstalled = !0)
}
,
e.prototype._eventFromIncompleteOnError = function(e, t, n, r) {
var i, o = Object(F.e)(e) ? e.message : e, a = o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);
a && (i = a[1],
o = a[2]);
var l = {
exception: {
values: [{
type: i || "Error",
value: o
}]
}
};
return this._enhanceEventWithInitialFrame(l, t, n, r)
}
,
e.prototype._eventFromRejectionWithPrimitive = function(e) {
return {
exception: {
values: [{
type: "UnhandledRejection",
value: "Non-Error promise rejection captured with value: " + String(e)
}]
}
}
}
,
e.prototype._enhanceEventWithInitialFrame = function(e, t, n, r) {
e.exception = e.exception || {},
e.exception.values = e.exception.values || [],
e.exception.values[0] = e.exception.values[0] || {},
e.exception.values[0].stacktrace = e.exception.values[0].stacktrace || {},
e.exception.values[0].stacktrace.frames = e.exception.values[0].stacktrace.frames || [];
var i = isNaN(parseInt(r, 10)) ? void 0 : r
, o = isNaN(parseInt(n, 10)) ? void 0 : n
, a = Object(F.k)(t) && t.length > 0 ? t : Object(De.a)();
return 0 === e.exception.values[0].stacktrace.frames.length && e.exception.values[0].stacktrace.frames.push({
colno: i,
filename: a,
function: "?",
in_app: !0,
lineno: o
}),
e
}
,
e.id = "GlobalHandlers",
e
}()
, We = function() {
function e(t) {
void 0 === t && (t = {}),
this.name = e.id,
this._key = t.key || "cause",
this._limit = t.limit || 5
}
return e.prototype.setupOnce = function() {
Object(k.b)((function(t, n) {
var r = Object(w.b)().getIntegration(e);
if (r) {
var i = r._handler && r._handler.bind(r);
return "function" == typeof i ? i(t, n) : t
}
return t
}
))
}
,
e.prototype._handler = function(e, t) {
if (!(e.exception && e.exception.values && t && Object(F.g)(t.originalException, Error)))
return e;
var n = this._walkErrorTree(t.originalException, this._key);
return e.exception.values = v(n, e.exception.values),
e
}
,
e.prototype._walkErrorTree = function(e, t, n) {
if (void 0 === n && (n = []),
!Object(F.g)(e[t], Error) || n.length + 1 >= this._limit)
return n;
var r = ce(oe(e[t]));
return this._walkErrorTree(e[t], t, v([r], n))
}
,
e.id = "LinkedErrors",
e
}()
, qe = function() {
function e() {
this.name = e.id
}
return e.prototype.setupOnce = function(t, n) {
t((function(t) {
var r = n().getIntegration(e);
if (r) {
try {
if (r._shouldDropEvent(t, r._previousEvent))
return C.b.warn("Event dropped due to being a duplicate of previously captured event."),
null
} catch (e) {
return r._previousEvent = t
}
return r._previousEvent = t
}
return t
}
))
}
,
e.prototype._shouldDropEvent = function(e, t) {
return !(!t || !this._isSameMessageEvent(e, t) && !this._isSameExceptionEvent(e, t))
}
,
e.prototype._isSameMessageEvent = function(e, t) {
var n = e.message
, r = t.message;
return !(!n && !r || n && !r || !n && r || n !== r || !this._isSameFingerprint(e, t) || !this._isSameStacktrace(e, t))
}
,
e.prototype._getFramesFromEvent = function(e) {
var t = e.exception;
if (t)
try {
return t.values[0].stacktrace.frames
} catch (e) {
return
}
else if (e.stacktrace)
return e.stacktrace.frames
}
,
e.prototype._isSameStacktrace = function(e, t) {
var n = this._getFramesFromEvent(e)
, r = this._getFramesFromEvent(t);
if (!n && !r)
return !0;
if (n && !r || !n && r)
return !1;
if (r.length !== n.length)
return !1;
for (var i = 0; i < r.length; i++) {
var o = r[i]
, a = n[i];
if (o.filename !== a.filename || o.lineno !== a.lineno || o.colno !== a.colno || o.function !== a.function)
return !1
}
return !0
}
,
e.prototype._getExceptionFromEvent = function(e) {
return e.exception && e.exception.values && e.exception.values[0]
}
,
e.prototype._isSameExceptionEvent = function(e, t) {
var n = this._getExceptionFromEvent(t)
, r = this._getExceptionFromEvent(e);
return !!(n && r && n.type === r.type && n.value === r.value && this._isSameFingerprint(e, t) && this._isSameStacktrace(e, t))
}
,
e.prototype._isSameFingerprint = function(e, t) {
var n = e.fingerprint
, r = t.fingerprint;
if (!n && !r)
return !0;
if (n && !r || !n && r)
return !1;
try {
return !(n.join("") !== r.join(""))
} catch (e) {
return !1
}
}
,
e.id = "Dedupe",
e
}()
, He = Object(T.a)()
, Ue = function() {
function e() {
this.name = e.id
}
return e.prototype.setupOnce = function() {
Object(k.b)((function(t) {
var n, r, i;
if (Object(w.b)().getIntegration(e)) {
if (!He.navigator && !He.location && !He.document)
return t;
var o = (null === (n = t.request) || void 0 === n ? void 0 : n.url) || (null === (r = He.location) || void 0 === r ? void 0 : r.href)
, a = (He.document || {}).referrer
, l = (He.navigator || {}).userAgent
, s = b(b(b({}, null === (i = t.request) || void 0 === i ? void 0 : i.headers), a && {
Referer: a
}), l && {
"User-Agent": l
})
, c = b(b({}, o && {
url: o
}), {
headers: s
});
return b(b({}, t), {
request: c
})
}
return t
}
))
}
,
e.id = "UserAgent",
e
}()
, Xe = [new r.InboundFilters, new r.FunctionToString, new Fe, new Le, new Ve, new We, new qe, new Ue];
var Ge = n(98)
, Ke = n(28)
, Ye = function() {
function e(t) {
void 0 === t && (t = {}),
this.name = e.id,
this._router = t.router || t.app,
this._methods = (Array.isArray(t.methods) ? t.methods : []).concat("use")
}
return e.prototype.setupOnce = function() {
this._router ? function(e, t) {
void 0 === t && (t = []),
t.forEach((function(t) {
return function(e, t) {
var n = e[t];
return e[t] = function() {
for (var e = [], r = 0; r < arguments.length; r++)
e[r] = arguments[r];
return n.call.apply(n, Object(Ke.e)([this], function(e, t) {
return e.map((function(e) {
return "function" == typeof e ? Qe(e, t) : Array.isArray(e) ? e.map((function(e) {
return "function" == typeof e ? Qe(e, t) : e
}
)) : e
}
))
}(e, t)))
}
,
e
}(e, t)
}
))
}(this._router, this._methods) : C.b.error("ExpressIntegration is missing an Express instance")
}
,
e.id = "Express",
e
}();
function Qe(e, t) {
var n = e.length;
switch (n) {
case 2:
return function(n, r) {
var i = r.__sentry_transaction;
if (i) {
var o = i.startChild({
description: e.name,
op: "express.middleware." + t
});
r.once("finish", (function() {
o.finish()
}
))
}
return e.call(this, n, r)
}
;
case 3:
return function(n, r, i) {
var o, a = null === (o = r.__sentry_transaction) || void 0 === o ? void 0 : o.startChild({
description: e.name,
op: "express.middleware." + t
});
e.call(this, n, r, (function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
null === (e = a) || void 0 === e || e.finish(),
i.call.apply(i, Object(Ke.e)([this], t))
}
))
}
;
case 4:
return function(n, r, i, o) {
var a, l = null === (a = i.__sentry_transaction) || void 0 === a ? void 0 : a.startChild({
description: e.name,
op: "express.middleware." + t
});
e.call(this, n, r, i, (function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
null === (e = l) || void 0 === e || e.finish(),
o.call.apply(o, Object(Ke.e)([this], t))
}
))
}
;
default:
throw new Error("Express middleware takes 2-4 arguments. Got: " + n)
}
}
var Je = n(71)
, Ze = function() {
function e(t) {
void 0 === t && (t = {}),
this.name = e.id,
this._usePgNative = !!t.usePgNative
}
return e.prototype.setupOnce = function(e, t) {
var n, r = Object(Je.c)("pg");
if (r)
if (!this._usePgNative || (null === (n = r.native) || void 0 === n ? void 0 : n.Client)) {
var i = (this._usePgNative ? r.native : r).Client;
Object(W.c)(i.prototype, "query", (function(e) {
return function(n, r, i) {
var o, a, l, s = null === (a = null === (o = t().getScope()) || void 0 === o ? void 0 : o.getSpan()) || void 0 === a ? void 0 : a.startChild({
description: "string" == typeof n ? n : n.text,
op: "db"
});
if ("function" == typeof i)
return e.call(this, n, r, (function(e, t) {
var n;
null === (n = s) || void 0 === n || n.finish(),
i(e, t)
}
));
if ("function" == typeof r)
return e.call(this, n, (function(e, t) {
var n;
null === (n = s) || void 0 === n || n.finish(),
r(e, t)
}
));
var c = void 0 !== r ? e.call(this, n, r) : e.call(this, n);
return Object(F.m)(c) ? c.then((function(e) {
var t;
return null === (t = s) || void 0 === t || t.finish(),
e
}
)) : (null === (l = s) || void 0 === l || l.finish(),
c)
}
}
))
} else
C.b.error("Postgres Integration was unable to access 'pg-native' bindings.");
else
C.b.error("Postgres Integration was unable to require `pg` package.")
}
,
e.id = "Postgres",
e
}()
, $e = function() {
function e() {
this.name = e.id
}
return e.prototype.setupOnce = function(e, t) {
var n = Object(Je.c)("mysql/lib/Connection.js");
n ? Object(W.c)(n, "createQuery", (function(e) {
return function(n, r, i) {
var o, a, l = null === (a = null === (o = t().getScope()) || void 0 === o ? void 0 : o.getSpan()) || void 0 === a ? void 0 : a.startChild({
description: "string" == typeof n ? n : n.sql,
op: "db"
});
return "function" == typeof i ? e.call(this, n, r, (function(e, t, n) {
var r;
null === (r = l) || void 0 === r || r.finish(),
i(e, t, n)
}
)) : "function" == typeof r ? e.call(this, n, (function(e, t, n) {
var i;
null === (i = l) || void 0 === i || i.finish(),
r(e, t, n)
}
)) : e.call(this, n, r, i)
}
}
)) : C.b.error("Mysql Integration was unable to require `mysql` package.")
}
,
e.id = "Mysql",
e
}()
, et = ["aggregate", "bulkWrite", "countDocuments", "createIndex", "createIndexes", "deleteMany", "deleteOne", "distinct", "drop", "dropIndex", "dropIndexes", "estimatedDocumentCount", "find", "findOne", "findOneAndDelete", "findOneAndReplace", "findOneAndUpdate", "indexes", "indexExists", "indexInformation", "initializeOrderedBulkOp", "insertMany", "insertOne", "isCapped", "mapReduce", "options", "parallelCollectionScan", "rename", "replaceOne", "stats", "updateMany", "updateOne"]
, tt = {
bulkWrite: ["operations"],
countDocuments: ["query"],
createIndex: ["fieldOrSpec"],
createIndexes: ["indexSpecs"],
deleteMany: ["filter"],
deleteOne: ["filter"],
distinct: ["key", "query"],
dropIndex: ["indexName"],
find: ["query"],
findOne: ["query"],
findOneAndDelete: ["filter"],
findOneAndReplace: ["filter", "replacement"],
findOneAndUpdate: ["filter", "update"],
indexExists: ["indexes"],
insertMany: ["docs"],
insertOne: ["doc"],
mapReduce: ["map", "reduce"],
rename: ["newName"],
replaceOne: ["filter", "doc"],
updateMany: ["filter", "update"],
updateOne: ["filter", "update"]
}
, nt = function() {
function e(t) {
void 0 === t && (t = {}),
this.name = e.id,
this._operations = Array.isArray(t.operations) ? t.operations : et,
this._describeOperations = !("describeOperations"in t) || t.describeOperations,
this._useMongoose = !!t.useMongoose
}
return e.prototype.setupOnce = function(e, t) {
var n = this._useMongoose ? "mongoose" : "mongodb"
, r = Object(Je.c)(n);
r ? this._instrumentOperations(r.Collection, this._operations, t) : C.b.error("Mongo Integration was unable to require `" + n + "` package.")
}
,
e.prototype._instrumentOperations = function(e, t, n) {
var r = this;
t.forEach((function(t) {
return r._patchOperation(e, t, n)
}
))
}
,
e.prototype._patchOperation = function(e, t, n) {
if (t in e.prototype) {
var r = this._getSpanContextFromOperationArguments.bind(this);
Object(W.c)(e.prototype, t, (function(e) {
return function() {
for (var i, o, a, l, s = [], c = 0; c < arguments.length; c++)
s[c] = arguments[c];
var u = s[s.length - 1]
, d = null === (i = n().getScope()) || void 0 === i ? void 0 : i.getSpan();
if ("function" != typeof u || "mapReduce" === t && 2 === s.length) {
var p = null === (o = d) || void 0 === o ? void 0 : o.startChild(r(this, t, s))
, h = e.call.apply(e, Object(Ke.e)([this], s));
return Object(F.m)(h) ? h.then((function(e) {
var t;
return null === (t = p) || void 0 === t || t.finish(),
e
}
)) : (null === (a = p) || void 0 === a || a.finish(),
h)
}
var f = null === (l = d) || void 0 === l ? void 0 : l.startChild(r(this, t, s.slice(0, -1)));
return e.call.apply(e, Object(Ke.e)([this], s.slice(0, -1), [function(e, t) {
var n;
null === (n = f) || void 0 === n || n.finish(),
u(e, t)
}
]))
}
}
))
}
}
,
e.prototype._getSpanContextFromOperationArguments = function(e, t, n) {
var r = {
collectionName: e.collectionName,
dbName: e.dbName,
namespace: e.namespace
}
, i = {
op: "db",
description: t,
data: r
}
, o = tt[t]
, a = Array.isArray(this._describeOperations) ? this._describeOperations.includes(t) : this._describeOperations;
if (!o || !a)
return i;
try {
if ("mapReduce" === t) {
var l = Object(Ke.c)(n, 2)
, s = l[0]
, c = l[1];
r[o[0]] = "string" == typeof s ? s : s.name || "<anonymous>",
r[o[1]] = "string" == typeof c ? c : c.name || "<anonymous>"
} else
for (var u = 0; u < o.length; u++)
r[o[u]] = JSON.stringify(n[u])
} catch (e) {}
return i
}
,
e.id = "Mongo",
e
}()
, rt = n(110)
, it = n(49)
, ot = n(36)
, at = n(93)
, lt = Object(T.a)()
, st = function(e, t, n) {
var r;
return function(i) {
t.value >= 0 && (i || n) && (t.delta = t.value - (r || 0),
(t.delta || void 0 === r) && (r = t.value,
e(t)))
}
}
, ct = function(e, t) {
return {
name: e,
value: null != t ? t : -1,
delta: 0,
entries: [],
id: "v2-" + Date.now() + "-" + (Math.floor(8999999999999 * Math.random()) + 1e12)
}
}
, ut = function(e, t) {
try {
if (PerformanceObserver.supportedEntryTypes.includes(e)) {
if ("first-input" === e && !("PerformanceEventTiming"in self))
return;
var n = new PerformanceObserver((function(e) {
return e.getEntries().map(t)
}
));
return n.observe({
type: e,
buffered: !0
}),
n
}
} catch (e) {}
}
, dt = function(e, t) {
var n = function n(r) {
"pagehide" !== r.type && "hidden" !== Object(T.a)().document.visibilityState || (e(r),
t && (removeEventListener("visibilitychange", n, !0),
removeEventListener("pagehide", n, !0)))
};
addEventListener("visibilitychange", n, !0),
addEventListener("pagehide", n, !0)
}
, pt = -1
, ht = function() {
return pt < 0 && (pt = "hidden" === Object(T.a)().document.visibilityState ? 0 : 1 / 0,
dt((function(e) {
var t = e.timeStamp;
pt = t
}
), !0)),
{
get firstHiddenTime() {
return pt
}
}
}
, ft = {}
, bt = Object(T.a)()
, gt = function() {
function e(e) {
var t, n;
void 0 === e && (e = !1),
this._reportAllChanges = e,
this._measurements = {},
this._performanceCursor = 0,
!Object(Je.b)() && (null === (t = bt) || void 0 === t ? void 0 : t.performance) && (null === (n = bt) || void 0 === n ? void 0 : n.document) && (bt.performance.mark && bt.performance.mark("sentry-tracing-init"),
this._trackCLS(),
this._trackLCP(),
this._trackFID())
}
return e.prototype.addPerformanceEntries = function(e) {
var t = this;
if (bt && bt.performance && bt.performance.getEntries && V.a) {
C.b.log("[Tracing] Adding & adjusting spans using Performance API");
var n, r, i, o, a, l = Object(ot.d)(V.a);
if (bt.document && bt.document.scripts)
for (var s = 0; s < bt.document.scripts.length; s++)
if ("true" === bt.document.scripts[s].dataset.entry) {
n = bt.document.scripts[s].src;
break
}
if (bt.performance.getEntries().slice(this._performanceCursor).forEach((function(s) {
var c = Object(ot.d)(s.startTime)
, u = Object(ot.d)(s.duration);
if (!("navigation" === e.op && l + c < e.startTimestamp))
switch (s.entryType) {
case "navigation":
!function(e, t, n) {
mt({
transaction: e,
entry: t,
event: "unloadEvent",
timeOrigin: n
}),
mt({
transaction: e,
entry: t,
event: "redirect",
timeOrigin: n
}),
mt({
transaction: e,
entry: t,
event: "domContentLoadedEvent",
timeOrigin: n
}),
mt({
transaction: e,
entry: t,
event: "loadEvent",
timeOrigin: n
}),
mt({
transaction: e,
entry: t,
event: "connect",
timeOrigin: n
}),
mt({
transaction: e,
entry: t,
event: "secureConnection",
timeOrigin: n,
eventEnd: "connectEnd",
description: "TLS/SSL"
}),
mt({
transaction: e,
entry: t,
event: "fetch",
timeOrigin: n,
eventEnd: "domainLookupStart",
description: "cache"
}),
mt({
transaction: e,
entry: t,
event: "domainLookup",
timeOrigin: n,
description: "DNS"
}),
function(e, t, n) {
vt(e, {
op: "browser",
description: "request",
startTimestamp: n + Object(ot.d)(t.requestStart),
endTimestamp: n + Object(ot.d)(t.responseEnd)
}),
vt(e, {
op: "browser",
description: "response",
startTimestamp: n + Object(ot.d)(t.responseStart),
endTimestamp: n + Object(ot.d)(t.responseEnd)
})
}(e, t, n)
}(e, s, l),
o = l + Object(ot.d)(s.responseStart),
a = l + Object(ot.d)(s.requestStart);
break;
case "mark":
case "paint":
case "measure":
var d = function(e, t, n, r, i) {
var o = i + n
, a = o + r;
return vt(e, {
description: t.name,
endTimestamp: a,
op: t.entryType,
startTimestamp: o
}),
o
}(e, s, c, u, l);
void 0 === i && "sentry-tracing-init" === s.name && (i = d);
var p = ht()
, h = s.startTime < p.firstHiddenTime;
"first-paint" === s.name && h && (C.b.log("[Measurements] Adding FP"),
t._measurements.fp = {
value: s.startTime
},
t._measurements["mark.fp"] = {
value: d
}),
"first-contentful-paint" === s.name && h && (C.b.log("[Measurements] Adding FCP"),
t._measurements.fcp = {
value: s.startTime
},
t._measurements["mark.fcp"] = {
value: d
});
break;
case "resource":
var f = s.name.replace(bt.location.origin, "")
, b = function(e, t, n, r, i, o) {
if ("xmlhttprequest" !== t.initiatorType && "fetch" !== t.initiatorType) {
var a = {};
"transferSize"in t && (a["Transfer Size"] = t.transferSize),
"encodedBodySize"in t && (a["Encoded Body Size"] = t.encodedBodySize),
"decodedBodySize"in t && (a["Decoded Body Size"] = t.decodedBodySize);
var l = o + r
, s = l + i;
return vt(e, {
description: n,
endTimestamp: s,
op: t.initiatorType ? "resource." + t.initiatorType : "resource",
startTimestamp: l,
data: a
}),
s
}
}(e, s, f, c, u, l);
void 0 === r && (n || "").indexOf(f) > -1 && (r = b)
}
}
)),
void 0 !== r && void 0 !== i && vt(e, {
description: "evaluation",
endTimestamp: i,
op: "script",
startTimestamp: r
}),
this._performanceCursor = Math.max(performance.getEntries().length - 1, 0),
this._trackNavigator(e),
"pageload" === e.op) {
var c = Object(ot.d)(V.a);
"number" == typeof o && (C.b.log("[Measurements] Adding TTFB"),
this._measurements.ttfb = {
value: 1e3 * (o - e.startTimestamp)
},
"number" == typeof a && a <= o && (this._measurements["ttfb.requestTime"] = {
value: 1e3 * (o - a)
})),
["fcp", "fp", "lcp"].forEach((function(n) {
if (t._measurements[n] && !(c >= e.startTimestamp)) {
var r = t._measurements[n].value
, i = c + Object(ot.d)(r)
, o = Math.abs(1e3 * (i - e.startTimestamp))
, a = o - r;
C.b.log("[Measurements] Normalized " + n + " from " + r + " to " + o + " (" + a + ")"),
t._measurements[n].value = o
}
}
)),
this._measurements["mark.fid"] && this._measurements.fid && vt(e, {
description: "first input delay",
endTimestamp: this._measurements["mark.fid"].value + Object(ot.d)(this._measurements.fid.value),
op: "web.vitals",
startTimestamp: this._measurements["mark.fid"].value
}),
"fcp"in this._measurements || delete this._measurements.cls,
e.setMeasurements(this._measurements),
this._tagMetricInfo(e),
e.setTag("sentry_reportAllChanges", this._reportAllChanges)
}
}
}
,
e.prototype._tagMetricInfo = function(e) {
this._lcpEntry && (C.b.log("[Measurements] Adding LCP Data"),
this._lcpEntry.element && e.setTag("lcp.element", Object(De.b)(this._lcpEntry.element)),
this._lcpEntry.id && e.setTag("lcp.id", this._lcpEntry.id),
this._lcpEntry.url && e.setTag("lcp.url", this._lcpEntry.url.trim().slice(0, 200)),
e.setTag("lcp.size", this._lcpEntry.size)),
this._clsEntry && this._clsEntry.sources && (C.b.log("[Measurements] Adding CLS Data"),
this._clsEntry.sources.forEach((function(t, n) {
return e.setTag("cls.source." + (n + 1), Object(De.b)(t.node))
}
)))
}
,
e.prototype._trackCLS = function() {
var e = this;
!function(e, t) {
var n, r = ct("CLS", 0), i = 0, o = [], a = function(e) {
if (e && !e.hadRecentInput) {
var t = o[0]
, a = o[o.length - 1];
i && 0 !== o.length && e.startTime - a.startTime < 1e3 && e.startTime - t.startTime < 5e3 ? (i += e.value,
o.push(e)) : (i = e.value,
o = [e]),
i > r.value && (r.value = i,
r.entries = o,
n && n())
}
}, l = ut("layout-shift", a);
l && (n = st(e, r, void 0),
dt((function() {
l.takeRecords().map(a),
n(!0)
}
)))
}((function(t) {
var n = t.entries.pop();
n && (C.b.log("[Measurements] Adding CLS"),
e._measurements.cls = {
value: t.value
},
e._clsEntry = n)
}
))
}
,
e.prototype._trackNavigator = function(e) {
var t = bt.navigator;
if (t) {
var n = t.connection;
n && (n.effectiveType && e.setTag("effectiveConnectionType", n.effectiveType),
n.type && e.setTag("connectionType", n.type),
yt(n.rtt) && (this._measurements["connection.rtt"] = {
value: n.rtt
}),
yt(n.downlink) && (this._measurements["connection.downlink"] = {
value: n.downlink
})),
yt(t.deviceMemory) && e.setTag("deviceMemory", String(t.deviceMemory)),
yt(t.hardwareConcurrency) && e.setTag("hardwareConcurrency", String(t.hardwareConcurrency))
}
}
,
e.prototype._trackLCP = function() {
var e = this;
!function(e, t) {
var n, r = ht(), i = ct("LCP"), o = function(e) {
var t = e.startTime;
t < r.firstHiddenTime && (i.value = t,
i.entries.push(e)),
n && n()
}, a = ut("largest-contentful-paint", o);
if (a) {
n = st(e, i, t);
var l = function() {
ft[i.id] || (a.takeRecords().map(o),
a.disconnect(),
ft[i.id] = !0,
n(!0))
};
["keydown", "click"].forEach((function(e) {
addEventListener(e, l, {
once: !0,
capture: !0
})
}
)),
dt(l, !0)
}
}((function(t) {
var n = t.entries.pop();
if (n) {
var r = Object(ot.d)(V.a)
, i = Object(ot.d)(n.startTime);
C.b.log("[Measurements] Adding LCP"),
e._measurements.lcp = {
value: t.value
},
e._measurements["mark.lcp"] = {
value: r + i
},
e._lcpEntry = n
}
}
), this._reportAllChanges)
}
,
e.prototype._trackFID = function() {
var e = this;
!function(e, t) {
var n, r = ht(), i = ct("FID"), o = function(e) {
n && e.startTime < r.firstHiddenTime && (i.value = e.processingStart - e.startTime,
i.entries.push(e),
n(!0))
}, a = ut("first-input", o);
a && (n = st(e, i, void 0),
dt((function() {
a.takeRecords().map(o),
a.disconnect()
}
), !0))
}((function(t) {
var n = t.entries.pop();
if (n) {
var r = Object(ot.d)(V.a)
, i = Object(ot.d)(n.startTime);
C.b.log("[Measurements] Adding FID"),
e._measurements.fid = {
value: t.value
},
e._measurements["mark.fid"] = {
value: r + i
}
}
}
))
}
,
e
}();
function mt(e) {
var t = e.transaction
, n = e.entry
, r = e.event
, i = e.timeOrigin
, o = e.eventEnd
, a = e.description
, l = o ? n[o] : n[r + "End"]
, s = n[r + "Start"];
s && l && vt(t, {
op: "browser",
description: null != a ? a : r,
startTimestamp: i + Object(ot.d)(s),
endTimestamp: i + Object(ot.d)(l)
})
}
function vt(e, t) {
var n = t.startTimestamp
, r = Object(Ke.d)(t, ["startTimestamp"]);
return n && e.startTimestamp > n && (e.startTimestamp = n),
e.startChild(Object(Ke.a)({
startTimestamp: n
}, r))
}
function yt(e) {
return "number" == typeof e && isFinite(e)
}
var xt = {
traceFetch: !0,
traceXHR: !0,
tracingOrigins: ["localhost", /^\//]
};
var Ot = Object(T.a)()
, jt = Object(Ke.a)({
idleTimeout: rt.a,
markBackgroundTransactions: !0,
maxTransactionDuration: 600,
routingInstrumentation: function(e, t, n) {
if (void 0 === t && (t = !0),
void 0 === n && (n = !0),
Ot && Ot.location) {
var r, i = Ot.location.href;
t && (r = e({
name: Ot.location.pathname,
op: "pageload"
})),
n && Object(I.a)({
callback: function(t) {
var n = t.to
, o = t.from;
void 0 === o && i && -1 !== i.indexOf(n) ? i = void 0 : o !== n && (i = void 0,
r && (C.b.log("[Tracing] Finishing current transaction with op: " + r.op),
r.finish()),
r = e({
name: Ot.location.pathname,
op: "navigation"
}))
},
type: "history"
})
} else
C.b.warn("Could not initialize routing instrumentation due to invalid location")
},
startTransactionOnLocationChange: !0,
startTransactionOnPageLoad: !0
}, xt)
, kt = function() {
function e(t) {
this.name = e.id,
this._emitOptionsWarning = !1,
this._configuredIdleTimeout = void 0;
var n = xt.tracingOrigins;
t && (this._configuredIdleTimeout = t.idleTimeout,
t.tracingOrigins && Array.isArray(t.tracingOrigins) && 0 !== t.tracingOrigins.length ? n = t.tracingOrigins : this._emitOptionsWarning = !0),
this.options = Object(Ke.a)(Object(Ke.a)(Object(Ke.a)({}, jt), t), {
tracingOrigins: n
});
var r = this.options._metricOptions;
this._metrics = new gt(r && r._reportAllChanges)
}
return e.prototype.setupOnce = function(e, t) {
var n = this;
this._getCurrentHub = t,
this._emitOptionsWarning && (C.b.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),
C.b.warn("[Tracing] We added a reasonable default for you: " + xt.tracingOrigins));
var r = this.options
, i = r.routingInstrumentation
, o = r.startTransactionOnLocationChange
, a = r.startTransactionOnPageLoad
, l = r.markBackgroundTransactions
, s = r.traceFetch
, c = r.traceXHR
, u = r.tracingOrigins
, d = r.shouldCreateSpanForRequest;
i((function(e) {
return n._createRouteTransaction(e)
}
), a, o),
l && (lt && lt.document ? lt.document.addEventListener("visibilitychange", (function() {
var e = Object(ot.b)();
lt.document.hidden && e && (C.b.log("[Tracing] Transaction: " + it.a.Cancelled + " -> since tab moved to the background, op: " + e.op),
e.status || e.setStatus(it.a.Cancelled),
e.setTag("visibilitychange", "document.hidden"),
e.setTag(at.a, at.b[2]),
e.finish())
}
)) : C.b.warn("[Tracing] Could not set up background tab detection due to lack of global document")),
function(e) {
var t = Object(Ke.a)(Object(Ke.a)({}, xt), e)
, n = t.traceFetch
, r = t.traceXHR
, i = t.tracingOrigins
, o = t.shouldCreateSpanForRequest
, a = {}
, l = function(e) {
if (a[e])
return a[e];
var t = i;
return a[e] = t.some((function(t) {
return Object(M.a)(e, t)
}
)) && !Object(M.a)(e, "sentry_key"),
a[e]
}
, s = l;
"function" == typeof o && (s = function(e) {
return l(e) && o(e)
}
);
var c = {};
n && Object(I.a)({
callback: function(e) {
!function(e, t, n) {
if (Object(ot.c)() && e.fetchData && t(e.fetchData.url))
if (e.endTimestamp && e.fetchData.__span)
(i = n[e.fetchData.__span]) && (e.response ? i.setHttpStatus(e.response.status) : e.error && i.setStatus(it.a.InternalError),
i.finish(),
delete n[e.fetchData.__span]);
else {
var r = Object(ot.b)();
if (r) {
var i = r.startChild({
data: Object(Ke.a)(Object(Ke.a)({}, e.fetchData), {
type: "fetch"
}),
description: e.fetchData.method + " " + e.fetchData.url,
op: "http.client"
});
e.fetchData.__span = i.spanId,
n[i.spanId] = i;
var o = e.args[0] = e.args[0]
, a = e.args[1] = e.args[1] || {}
, l = a.headers;
Object(F.g)(o, Request) && (l = o.headers),
l ? "function" == typeof l.append ? l.append("sentry-trace", i.toTraceparent()) : l = Array.isArray(l) ? Object(Ke.e)(l, [["sentry-trace", i.toTraceparent()]]) : Object(Ke.a)(Object(Ke.a)({}, l), {
"sentry-trace": i.toTraceparent()
}) : l = {
"sentry-trace": i.toTraceparent()
},
a.headers = l
}
}
}(e, s, c)
},
type: "fetch"
}),
r && Object(I.a)({
callback: function(e) {
!function(e, t, n) {
var r, i;
if (Object(ot.c)() && !(null === (r = e.xhr) || void 0 === r ? void 0 : r.__sentry_own_request__) && (null === (i = e.xhr) || void 0 === i ? void 0 : i.__sentry_xhr__) && t(e.xhr.__sentry_xhr__.url)) {
var o = e.xhr.__sentry_xhr__;
if (e.endTimestamp && e.xhr.__sentry_xhr_span_id__)
(l = n[e.xhr.__sentry_xhr_span_id__]) && (l.setHttpStatus(o.status_code),
l.finish(),
delete n[e.xhr.__sentry_xhr_span_id__]);
else {
var a = Object(ot.b)();
if (a) {
var l = a.startChild({
data: Object(Ke.a)(Object(Ke.a)({}, o.data), {
type: "xhr",
method: o.method,
url: o.url
}),
description: o.method + " " + o.url,
op: "http.client"
});
if (e.xhr.__sentry_xhr_span_id__ = l.spanId,
n[e.xhr.__sentry_xhr_span_id__] = l,
e.xhr.setRequestHeader)
try {
e.xhr.setRequestHeader("sentry-trace", l.toTraceparent())
} catch (e) {}
}
}
}
}(e, s, c)
},
type: "xhr"
})
}({
traceFetch: s,
traceXHR: c,
tracingOrigins: u,
shouldCreateSpanForRequest: d
})
}
,
e.prototype._createRouteTransaction = function(e) {
var t = this;
if (this._getCurrentHub) {
var n = this.options
, r = n.beforeNavigate
, i = n.idleTimeout
, o = n.maxTransactionDuration
, a = "pageload" === e.op ? function() {
var e = function(e) {
var t = Object(T.a)().document.querySelector("meta[name=sentry-trace]");
return t ? t.getAttribute("content") : null
}();
if (e)
return Object(ot.a)(e)
}() : void 0
, l = Object(Ke.a)(Object(Ke.a)(Object(Ke.a)({}, e), a), {
trimEnd: !0
})
, s = "function" == typeof r ? r(l) : l
, c = void 0 === s ? Object(Ke.a)(Object(Ke.a)({}, l), {
sampled: !1
}) : s;
!1 === c.sampled && C.b.log("[Tracing] Will not send " + c.op + " transaction because of beforeNavigate."),
C.b.log("[Tracing] Starting " + c.op + " transaction on scope");
var u = this._getCurrentHub()
, d = Object(T.a)().location
, p = Object(Ge.b)(u, c, i, !0, {
location: d
});
return p.registerBeforeFinishCallback((function(e, n) {
t._metrics.addPerformanceEntries(e),
function(e, t, n) {
var r = n - t.startTimestamp;
n && (r > e || r < 0) && (t.setStatus(it.a.DeadlineExceeded),
t.setTag("maxTransactionDurationExceeded", "true"))
}(Object(ot.e)(o), e, n)
}
)),
p.setTag("idleTimeout", this._configuredIdleTimeout),
p
}
C.b.warn("[Tracing] Did not create " + e.op + " transaction because _getCurrentHub is invalid.")
}
,
e.id = "BrowserTracing",
e
}();
Object(Ge.a)();
var wt = n(11);
function Ct(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}
))),
n.push.apply(n, r)
}
return n
}
function _t(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? Ct(Object(n), !0).forEach((function(t) {
Object(wt.a)(e, t, n[t])
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ct(Object(n)).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}
))
}
return e
}
var Mt = n(10)
, St = n(5)
, At = n(6)
, Tt = n(8)
, Et = n(9)
, It = n(7)
, Nt = n.n(It)
, zt = n(42)
, Dt = n.n(zt)
, Lt = n(25)
, Rt = n.n(Lt)
, Pt = n(284)
, Bt = n.n(Pt)
, Ft = n(60);
function Vt() {
return Vt = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
,
Vt.apply(this, arguments)
}
function Wt(e) {
return "/" === e.charAt(0)
}
function qt(e, t) {
for (var n = t, r = n + 1, i = e.length; r < i; n += 1,
r += 1)
e[n] = e[r];
e.pop()
}
var Ht = function(e, t) {
void 0 === t && (t = "");
var n, r = e && e.split("/") || [], i = t && t.split("/") || [], o = e && Wt(e), a = t && Wt(t), l = o || a;
if (e && Wt(e) ? i = r : r.length && (i.pop(),
i = i.concat(r)),
!i.length)
return "/";
if (i.length) {
var s = i[i.length - 1];
n = "." === s || ".." === s || "" === s
} else
n = !1;
for (var c = 0, u = i.length; u >= 0; u--) {
var d = i[u];
"." === d ? qt(i, u) : ".." === d ? (qt(i, u),
c++) : c && (qt(i, u),
c--)
}
if (!l)
for (; c--; c)
i.unshift("..");
!l || "" === i[0] || i[0] && Wt(i[0]) || i.unshift("");
var p = i.join("/");
return n && "/" !== p.substr(-1) && (p += "/"),
p
};
function Ut(e) {
return e.valueOf ? e.valueOf() : Object.prototype.valueOf.call(e)
}
var Xt = function e(t, n) {
if (t === n)
return !0;
if (null == t || null == n)
return !1;
if (Array.isArray(t))
return Array.isArray(n) && t.length === n.length && t.every((function(t, r) {
return e(t, n[r])
}
));
if ("object" == typeof t || "object" == typeof n) {
var r = Ut(t)
, i = Ut(n);
return r !== t || i !== n ? e(r, i) : Object.keys(Object.assign({}, t, n)).every((function(r) {
return e(t[r], n[r])
}
))
}
return !1
}
, Gt = "Invariant failed";
function Kt(e, t) {
if (!e)
throw new Error(Gt)
}
function Yt(e) {
var t = e.pathname
, n = e.search
, r = e.hash
, i = t || "/";
return n && "?" !== n && (i += "?" === n.charAt(0) ? n : "?" + n),
r && "#" !== r && (i += "#" === r.charAt(0) ? r : "#" + r),
i
}
function Qt(e, t, n, r) {
var i;
"string" == typeof e ? (i = function(e) {
var t = e || "/"
, n = ""
, r = ""
, i = t.indexOf("#");
-1 !== i && (r = t.substr(i),
t = t.substr(0, i));
var o = t.indexOf("?");
return -1 !== o && (n = t.substr(o),
t = t.substr(0, o)),
{
pathname: t,
search: "?" === n ? "" : n,
hash: "#" === r ? "" : r
}
}(e),
i.state = t) : (void 0 === (i = Vt({}, e)).pathname && (i.pathname = ""),
i.search ? "?" !== i.search.charAt(0) && (i.search = "?" + i.search) : i.search = "",
i.hash ? "#" !== i.hash.charAt(0) && (i.hash = "#" + i.hash) : i.hash = "",
void 0 !== t && void 0 === i.state && (i.state = t));
try {
i.pathname = decodeURI(i.pathname)
} catch (e) {
throw e instanceof URIError ? new URIError('Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : e
}
return n && (i.key = n),
r ? i.pathname ? "/" !== i.pathname.charAt(0) && (i.pathname = Ht(i.pathname, r.pathname)) : i.pathname = r.pathname : i.pathname || (i.pathname = "/"),
i
}
function Jt() {
var e = null
, t = [];
return {
setPrompt: function(t) {
return e = t,
function() {
e === t && (e = null)
}
},
confirmTransitionTo: function(t, n, r, i) {
if (null != e) {
var o = "function" == typeof e ? e(t, n) : e;
"string" == typeof o ? "function" == typeof r ? r(o, i) : i(!0) : i(!1 !== o)
} else
i(!0)
},
appendListener: function(e) {
var n = !0;
function r() {
n && e.apply(void 0, arguments)
}
return t.push(r),
function() {
n = !1,
t = t.filter((function(e) {
return e !== r
}
))
}
},
notifyListeners: function() {
for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
n[r] = arguments[r];
t.forEach((function(e) {
return e.apply(void 0, n)
}
))
}
}
}
"undefined" == typeof window || !window.document || window.document.createElement;
function Zt(e, t, n) {
return Math.min(Math.max(e, t), n)
}
var $t = n(292)
, en = n(213)
, tn = n.n(en);
function nn(e, t) {
if (null == e)
return {};
var n, r, i = {}, o = Object.keys(e);
for (r = 0; r < o.length; r++)
n = o[r],
t.indexOf(n) >= 0 || (i[n] = e[n]);
return i
}
n(100);
var rn = n(89)
, on = n.n(rn)
, an = function(e) {
var t = Object($t.a)();
return t.displayName = e,
t
}
, ln = an("Router-History")
, sn = an("Router")
, cn = function(e) {
function t(t) {
var n;
return (n = e.call(this, t) || this).state = {
location: t.history.location
},
n._isMounted = !1,
n._pendingLocation = null,
t.staticContext || (n.unlisten = t.history.listen((function(e) {
n._isMounted ? n.setState({
location: e
}) : n._pendingLocation = e
}
))),
n
}
Object(Ft.a)(t, e),
t.computeRootMatch = function(e) {
return {
path: "/",
url: "/",
params: {},
isExact: "/" === e
}
}
;
var n = t.prototype;
return n.componentDidMount = function() {
this._isMounted = !0,
this._pendingLocation && this.setState({
location: this._pendingLocation
})
}
,
n.componentWillUnmount = function() {
this.unlisten && (this.unlisten(),
this._isMounted = !1,
this._pendingLocation = null)
}
,
n.render = function() {
return s.a.createElement(sn.Provider, {
value: {
history: this.props.history,
location: this.state.location,
match: t.computeRootMatch(this.state.location.pathname),
staticContext: this.props.staticContext
}
}, s.a.createElement(ln.Provider, {
children: this.props.children || null,
value: this.props.history
}))
}
,
t
}(s.a.Component)
, un = function(e) {
function t() {
for (var t, n = arguments.length, r = new Array(n), i = 0; i < n; i++)
r[i] = arguments[i];
return (t = e.call.apply(e, [this].concat(r)) || this).history = function(e) {
void 0 === e && (e = {});
var t = e
, n = t.getUserConfirmation
, r = t.initialEntries
, i = void 0 === r ? ["/"] : r
, o = t.initialIndex
, a = void 0 === o ? 0 : o
, l = t.keyLength
, s = void 0 === l ? 6 : l
, c = Jt();
function u(e) {
Vt(g, e),
g.length = g.entries.length,
c.notifyListeners(g.location, g.action)
}
function d() {
return Math.random().toString(36).substr(2, s)
}
var p = Zt(a, 0, i.length - 1)
, h = i.map((function(e) {
return Qt(e, void 0, "string" == typeof e ? d() : e.key || d())
}
))
, f = Yt;
function b(e) {
var t = Zt(g.index + e, 0, g.entries.length - 1)
, r = g.entries[t];
c.confirmTransitionTo(r, "POP", n, (function(e) {
e ? u({
action: "POP",
location: r,
index: t
}) : u()
}
))
}
var g = {
length: h.length,
action: "POP",
location: h[p],
index: p,
entries: h,
createHref: f,
push: function(e, t) {
var r = "PUSH"
, i = Qt(e, t, d(), g.location);
c.confirmTransitionTo(i, r, n, (function(e) {
if (e) {
var t = g.index + 1
, n = g.entries.slice(0);
n.length > t ? n.splice(t, n.length - t, i) : n.push(i),
u({
action: r,
location: i,
index: t,
entries: n
})
}
}
))
},
replace: function(e, t) {
var r = "REPLACE"
, i = Qt(e, t, d(), g.location);
c.confirmTransitionTo(i, r, n, (function(e) {
e && (g.entries[g.index] = i,
u({
action: r,
location: i
}))
}
))
},
go: b,
goBack: function() {
b(-1)
},
goForward: function() {
b(1)
},
canGo: function(e) {
var t = g.index + e;
return t >= 0 && t < g.entries.length
},
block: function(e) {
return void 0 === e && (e = !1),
c.setPrompt(e)
},
listen: function(e) {
return c.appendListener(e)
}
};
return g
}(t.props),
t
}
return Object(Ft.a)(t, e),
t.prototype.render = function() {
return s.a.createElement(cn, {
history: this.history,
children: this.props.children
})
}
,
t
}(s.a.Component)
, dn = function(e) {
function t() {
return e.apply(this, arguments) || this
}
Object(Ft.a)(t, e);
var n = t.prototype;
return n.componentDidMount = function() {
this.props.onMount && this.props.onMount.call(this, this)
}
,
n.componentDidUpdate = function(e) {
this.props.onUpdate && this.props.onUpdate.call(this, this, e)
}
,
n.componentWillUnmount = function() {
this.props.onUnmount && this.props.onUnmount.call(this, this)
}
,
n.render = function() {
return null
}
,
t
}(s.a.Component)
, pn = {}
, hn = 0;
function fn(e, t) {
return void 0 === e && (e = "/"),
void 0 === t && (t = {}),
"/" === e ? e : function(e) {
if (pn[e])
return pn[e];
var t = tn.a.compile(e);
return hn < 1e4 && (pn[e] = t,
hn++),
t
}(e)(t, {
pretty: !0
})
}
function bn(e) {
var t = e.computedMatch
, n = e.to
, r = e.push
, i = void 0 !== r && r;
return s.a.createElement(sn.Consumer, null, (function(e) {
e || Kt(!1);
var r = e.history
, o = e.staticContext
, a = i ? r.push : r.replace
, l = Qt(t ? "string" == typeof n ? fn(n, t.params) : Vt({}, n, {
pathname: fn(n.pathname, t.params)
}) : n);
return o ? (a(l),
null) : s.a.createElement(dn, {
onMount: function() {
a(l)
},
onUpdate: function(e, t) {
var n, r, i = Qt(t.to);
n = i,
r = Vt({}, l, {
key: i.key
}),
n.pathname === r.pathname && n.search === r.search && n.hash === r.hash && n.key === r.key && Xt(n.state, r.state) || a(l)
},
to: n
})
}
))
}
var gn = {}
, mn = 0;
function vn(e, t) {
void 0 === t && (t = {}),
("string" == typeof t || Array.isArray(t)) && (t = {
path: t
});
var n = t
, r = n.path
, i = n.exact
, o = void 0 !== i && i
, a = n.strict
, l = void 0 !== a && a
, s = n.sensitive
, c = void 0 !== s && s;
return [].concat(r).reduce((function(t, n) {
if (!n && "" !== n)
return null;
if (t)
return t;
var r = function(e, t) {
var n = "" + t.end + t.strict + t.sensitive
, r = gn[n] || (gn[n] = {});
if (r[e])
return r[e];
var i = []
, o = {
regexp: tn()(e, i, t),
keys: i
};
return mn < 1e4 && (r[e] = o,
mn++),
o
}(n, {
end: o,
strict: l,
sensitive: c
})
, i = r.regexp
, a = r.keys
, s = i.exec(e);
if (!s)
return null;
var u = s[0]
, d = s.slice(1)
, p = e === u;
return o && !p ? null : {
path: n,
url: "/" === n && "" === u ? "/" : u,
isExact: p,
params: a.reduce((function(e, t, n) {
return e[t.name] = d[n],
e
}
), {})
}
}
), null)
}
var yn = function(e) {
function t() {
return e.apply(this, arguments) || this
}
return Object(Ft.a)(t, e),
t.prototype.render = function() {
var e = this;
return s.a.createElement(sn.Consumer, null, (function(t) {
t || Kt(!1);
var n = e.props.location || t.location
, r = Vt({}, t, {
location: n,
match: e.props.computedMatch ? e.props.computedMatch : e.props.path ? vn(n.pathname, e.props) : t.match
})
, i = e.props
, o = i.children
, a = i.component
, l = i.render;
return Array.isArray(o) && function(e) {
return 0 === s.a.Children.count(e)
}(o) && (o = null),
s.a.createElement(sn.Provider, {
value: r
}, r.match ? o ? "function" == typeof o ? o(r) : o : a ? s.a.createElement(a, r) : l ? l(r) : null : "function" == typeof o ? o(r) : null)
}
))
}
,
t
}(s.a.Component);
s.a.Component;
var xn = function(e) {
function t() {
return e.apply(this, arguments) || this
}
return Object(Ft.a)(t, e),
t.prototype.render = function() {
var e = this;
return s.a.createElement(sn.Consumer, null, (function(t) {
t || Kt(!1);
var n, r, i = e.props.location || t.location;
return s.a.Children.forEach(e.props.children, (function(e) {
if (null == r && s.a.isValidElement(e)) {
n = e;
var o = e.props.path || e.props.from;
r = o ? vn(i.pathname, Vt({}, e.props, {
path: o
})) : t.match
}
}
)),
r ? s.a.cloneElement(n, {
location: i,
computedMatch: r
}) : null
}
))
}
,
t
}(s.a.Component);
function On(e) {
var t = "withRouter(" + (e.displayName || e.name) + ")"
, n = function(t) {
var n = t.wrappedComponentRef
, r = nn(t, ["wrappedComponentRef"]);
return s.a.createElement(sn.Consumer, null, (function(t) {
return t || Kt(!1),
s.a.createElement(e, Vt({}, r, t, {
ref: n
}))
}
))
};
return n.displayName = t,
n.WrappedComponent = e,
on()(n, e)
}
var jn = s.a.useContext;
function kn() {
return jn(ln)
}
function wn() {
return jn(sn).location
}
s.a.Component,
s.a.Component;
var Cn = function(e, t) {
return "function" == typeof e ? e(t) : e
}
, _n = function(e, t) {
return "string" == typeof e ? Qt(e, null, null, t) : e
}
, Mn = function(e) {
return e
}
, Sn = s.a.forwardRef;
void 0 === Sn && (Sn = Mn);
var An = Sn((function(e, t) {
var n = e.innerRef
, r = e.navigate
, i = e.onClick
, o = nn(e, ["innerRef", "navigate", "onClick"])
, a = o.target
, l = Vt({}, o, {
onClick: function(e) {
try {
i && i(e)
} catch (t) {
throw e.preventDefault(),
t
}
e.defaultPrevented || 0 !== e.button || a && "_self" !== a || function(e) {
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)
}(e) || (e.preventDefault(),
r())
}
});
return l.ref = Mn !== Sn && t || n,
s.a.createElement("a", l)
}
))
, Tn = Sn((function(e, t) {
var n = e.component
, r = void 0 === n ? An : n
, i = e.replace
, o = e.to
, a = e.innerRef
, l = nn(e, ["component", "replace", "to", "innerRef"]);
return s.a.createElement(sn.Consumer, null, (function(e) {
e || Kt(!1);
var n = e.history
, c = _n(Cn(o, e.location), e.location)
, u = c ? n.createHref(c) : ""
, d = Vt({}, l, {
href: u,
navigate: function() {
var t = Cn(o, e.location)
, r = Yt(e.location) === Yt(_n(t));
(i || r ? n.replace : n.push)(t)
}
});
return Mn !== Sn ? d.ref = t || a : d.innerRef = a,
s.a.createElement(r, d)
}
))
}
))
, En = function(e) {
return e
}
, In = s.a.forwardRef;
void 0 === In && (In = En),
In((function(e, t) {
var n = e["aria-current"]
, r = void 0 === n ? "page" : n
, i = e.activeClassName
, o = void 0 === i ? "active" : i
, a = e.activeStyle
, l = e.className
, c = e.exact
, u = e.isActive
, d = e.location
, p = e.sensitive
, h = e.strict
, f = e.style
, b = e.to
, g = e.innerRef
, m = nn(e, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
return s.a.createElement(sn.Consumer, null, (function(e) {
e || Kt(!1);
var n = d || e.location
, i = _n(Cn(b, n), n)
, v = i.pathname
, y = v && v.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1")
, x = y ? vn(n.pathname, {
path: y,
exact: c,
sensitive: p,
strict: h
}) : null
, O = !!(u ? u(x, n) : x)
, j = "function" == typeof l ? l(O) : l
, k = "function" == typeof f ? f(O) : f;
O && (j = function() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return t.filter((function(e) {
return e
}
)).join(" ")
}(j, o),
k = Vt({}, k, a));
var w = Vt({
"aria-current": O && r || null,
className: j,
style: k,
to: i
}, m);
return En !== In ? w.ref = t || g : w.innerRef = g,
s.a.createElement(Tn, w)
}
))
}
));
var Nn, zn = n(2), Dn = "undefined" != typeof navigator && /rv:11.0/.test(navigator.userAgent), Ln = {};
try {
Ln = window || {}
} catch (e) {}
var Rn, Pn = function() {
function e(e, t) {
var n, r, i, o, a, l;
this._rules = [],
this._preservedRules = [],
this._counter = 0,
this._keyToClassName = {},
this._onInsertRuleCallbacks = [],
this._onResetCallbacks = [],
this._classNameToArgs = {},
this._config = Object(zn.a)({
injectionMode: "undefined" == typeof document ? 0 : 1,
defaultPrefix: "css",
namespace: void 0,
cspSettings: void 0
}, e),
this._classNameToArgs = null !== (n = null == t ? void 0 : t.classNameToArgs) && void 0 !== n ? n : this._classNameToArgs,
this._counter = null !== (r = null == t ? void 0 : t.counter) && void 0 !== r ? r : this._counter,
this._keyToClassName = null !== (o = null !== (i = this._config.classNameCache) && void 0 !== i ? i : null == t ? void 0 : t.keyToClassName) && void 0 !== o ? o : this._keyToClassName,
this._preservedRules = null !== (a = null == t ? void 0 : t.preservedRules) && void 0 !== a ? a : this._preservedRules,
this._rules = null !== (l = null == t ? void 0 : t.rules) && void 0 !== l ? l : this._rules
}
return e.getInstance = function() {
if (!(Nn = Ln.__stylesheet__) || Nn._lastStyleElement && Nn._lastStyleElement.ownerDocument !== document) {
var t = (null == Ln ? void 0 : Ln.FabricConfig) || {}
, n = new e(t.mergeStyles,t.serializedStylesheet);
Nn = n,
Ln.__stylesheet__ = n
}
return Nn
}
,
e.prototype.serialize = function() {
return JSON.stringify({
classNameToArgs: this._classNameToArgs,
counter: this._counter,
keyToClassName: this._keyToClassName,
preservedRules: this._preservedRules,
rules: this._rules
})
}
,
e.prototype.setConfig = function(e) {
this._config = Object(zn.a)(Object(zn.a)({}, this._config), e)
}
,
e.prototype.onReset = function(e) {
var t = this;
return this._onResetCallbacks.push(e),
function() {
t._onResetCallbacks = t._onResetCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
e.prototype.onInsertRule = function(e) {
var t = this;
return this._onInsertRuleCallbacks.push(e),
function() {
t._onInsertRuleCallbacks = t._onInsertRuleCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
e.prototype.getClassName = function(e) {
var t = this._config.namespace;
return (t ? t + "-" : "") + (e || this._config.defaultPrefix) + "-" + this._counter++
}
,
e.prototype.cacheClassName = function(e, t, n, r) {
this._keyToClassName[t] = e,
this._classNameToArgs[e] = {
args: n,
rules: r
}
}
,
e.prototype.classNameFromKey = function(e) {
return this._keyToClassName[e]
}
,
e.prototype.getClassNameCache = function() {
return this._keyToClassName
}
,
e.prototype.argsFromClassName = function(e) {
var t = this._classNameToArgs[e];
return t && t.args
}
,
e.prototype.insertedRulesFromClassName = function(e) {
var t = this._classNameToArgs[e];
return t && t.rules
}
,
e.prototype.insertRule = function(e, t) {
var n = this._config.injectionMode
, r = 0 !== n ? this._getStyleElement() : void 0;
if (t && this._preservedRules.push(e),
r)
switch (n) {
case 1:
var i = r.sheet;
try {
i.insertRule(e, i.cssRules.length)
} catch (e) {}
break;
case 2:
r.appendChild(document.createTextNode(e))
}
else
this._rules.push(e);
this._config.onInsertRule && this._config.onInsertRule(e),
this._onInsertRuleCallbacks.forEach((function(e) {
return e()
}
))
}
,
e.prototype.getRules = function(e) {
return (e ? this._preservedRules.join("") : "") + this._rules.join("")
}
,
e.prototype.reset = function() {
this._rules = [],
this._counter = 0,
this._classNameToArgs = {},
this._keyToClassName = {},
this._onResetCallbacks.forEach((function(e) {
return e()
}
))
}
,
e.prototype.resetKeys = function() {
this._keyToClassName = {}
}
,
e.prototype._getStyleElement = function() {
var e = this;
return this._styleElement || "undefined" == typeof document || (this._styleElement = this._createStyleElement(),
Dn || window.requestAnimationFrame((function() {
e._styleElement = void 0
}
))),
this._styleElement
}
,
e.prototype._createStyleElement = function() {
var e = document.head
, t = document.createElement("style")
, n = null;
t.setAttribute("data-merge-styles", "true");
var r = this._config.cspSettings;
if (r && r.nonce && t.setAttribute("nonce", r.nonce),
this._lastStyleElement)
n = this._lastStyleElement.nextElementSibling;
else {
var i = this._findPlaceholderStyleTag();
n = i ? i.nextElementSibling : e.childNodes[0]
}
return e.insertBefore(t, e.contains(n) ? n : null),
this._lastStyleElement = t,
t
}
,
e.prototype._findPlaceholderStyleTag = function() {
var e = document.head;
return e ? e.querySelector("style[data-merge-styles]") : null
}
,
e
}();
function Bn() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = []
, r = []
, i = Pn.getInstance();
return function e(t) {
for (var o = 0, a = t; o < a.length; o++) {
var l = a[o];
if (l)
if ("string" == typeof l)
if (l.indexOf(" ") >= 0)
e(l.split(" "));
else {
var s = i.argsFromClassName(l);
s ? e(s) : -1 === n.indexOf(l) && n.push(l)
}
else
Array.isArray(l) ? e(l) : "object" == typeof l && r.push(l)
}
}(e),
{
classes: n,
objects: r
}
}
function Fn(e) {
Rn !== e && (Rn = e)
}
function Vn() {
return void 0 === Rn && (Rn = "undefined" != typeof document && !!document.documentElement && "rtl" === document.documentElement.getAttribute("dir")),
Rn
}
function Wn() {
return {
rtl: Vn()
}
}
Rn = Vn();
var qn, Hn = {};
function Un(e, t) {
var n = e[t];
"-" !== n.charAt(0) && (e[t] = Hn[n] = Hn[n] || n.replace(/([A-Z])/g, "-$1").toLowerCase())
}
var Xn = {
"user-select": 1
};
function Gn(e, t) {
var n = function() {
var e;
if (!qn) {
var t = "undefined" != typeof document ? document : void 0
, n = "undefined" != typeof navigator ? navigator : void 0
, r = null === (e = null == n ? void 0 : n.userAgent) || void 0 === e ? void 0 : e.toLowerCase();
qn = t ? {
isWebkit: !(!t || !("WebkitAppearance"in t.documentElement.style)),
isMoz: !!(r && r.indexOf("firefox") > -1),
isOpera: !!(r && r.indexOf("opera") > -1),
isMs: !(!n || !/rv:11.0/i.test(n.userAgent) && !/Edge\/\d./i.test(navigator.userAgent))
} : {
isWebkit: !0,
isMoz: !0,
isOpera: !0,
isMs: !0
}
}
return qn
}()
, r = e[t];
if (Xn[r]) {
var i = e[t + 1];
Xn[r] && (n.isWebkit && e.push("-webkit-" + r, i),
n.isMoz && e.push("-moz-" + r, i),
n.isMs && e.push("-ms-" + r, i),
n.isOpera && e.push("-o-" + r, i))
}
}
var Kn, Yn = ["column-count", "font-weight", "flex", "flex-grow", "flex-shrink", "fill-opacity", "opacity", "order", "z-index", "zoom"];
function Qn(e, t) {
var n = e[t]
, r = e[t + 1];
if ("number" == typeof r) {
var i = Yn.indexOf(n) > -1
, o = n.indexOf("--") > -1
, a = i || o ? "" : "px";
e[t + 1] = "" + r + a
}
}
var Jn = "left"
, Zn = "right"
, $n = ((Kn = {}).left = Zn,
Kn.right = Jn,
Kn)
, er = {
"w-resize": "e-resize",
"sw-resize": "se-resize",
"nw-resize": "ne-resize"
};
function tr(e, t, n) {
if (e.rtl) {
var r = t[n];
if (!r)
return;
var i = t[n + 1];
if ("string" == typeof i && i.indexOf("@noflip") >= 0)
t[n + 1] = i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g, "");
else if (r.indexOf(Jn) >= 0)
t[n] = r.replace(Jn, Zn);
else if (r.indexOf(Zn) >= 0)
t[n] = r.replace(Zn, Jn);
else if (String(i).indexOf(Jn) >= 0)
t[n + 1] = i.replace(Jn, Zn);
else if (String(i).indexOf(Zn) >= 0)
t[n + 1] = i.replace(Zn, Jn);
else if ($n[r])
t[n] = $n[r];
else if (er[i])
t[n + 1] = er[i];
else
switch (r) {
case "margin":
case "padding":
t[n + 1] = function(e) {
if ("string" == typeof e) {
var t = e.split(" ");
if (4 === t.length)
return t[0] + " " + t[3] + " " + t[2] + " " + t[1]
}
return e
}(i);
break;
case "box-shadow":
t[n + 1] = function(e, t) {
var n = e.split(" ")
, r = parseInt(n[0], 10);
return n[0] = n[0].replace(String(r), String(-1 * r)),
n.join(" ")
}(i)
}
}
}
var nr = /\:global\((.+?)\)/g;
function rr(e, t) {
return e.indexOf(":global(") >= 0 ? e.replace(nr, "$1") : 0 === e.indexOf(":") ? t + e : e.indexOf("&") < 0 ? t + " " + e : e
}
function ir(e, t, n, r) {
void 0 === t && (t = {
__order: []
}),
0 === n.indexOf("@") ? or([r], t, n = n + "{" + e) : n.indexOf(",") > -1 ? function(e) {
if (!nr.test(e))
return e;
for (var t = [], n = /\:global\((.+?)\)/g, r = null; r = n.exec(e); )
r[1].indexOf(",") > -1 && t.push([r.index, r.index + r[0].length, r[1].split(",").map((function(e) {
return ":global(" + e.trim() + ")"
}
)).join(", ")]);
return t.reverse().reduce((function(e, t) {
var n = t[0]
, r = t[1]
, i = t[2];
return e.slice(0, n) + i + e.slice(r)
}
), e)
}(n).split(",").map((function(e) {
return e.trim()
}
)).forEach((function(n) {
return or([r], t, rr(n, e))
}
)) : or([r], t, rr(n, e))
}
function or(e, t, n) {
void 0 === t && (t = {
__order: []
}),
void 0 === n && (n = "&");
var r = Pn.getInstance()
, i = t[n];
i || (i = {},
t[n] = i,
t.__order.push(n));
for (var o = 0, a = e; o < a.length; o++) {
var l = a[o];
if ("string" == typeof l) {
var s = r.argsFromClassName(l);
s && or(s, t, n)
} else if (Array.isArray(l))
or(l, t, n);
else
for (var c in l)
if (l.hasOwnProperty(c)) {
var u = l[c];
if ("selectors" === c) {
var d = l.selectors;
for (var p in d)
d.hasOwnProperty(p) && ir(n, t, p, d[p])
} else
"object" == typeof u ? null !== u && ir(n, t, c, u) : void 0 !== u && ("margin" === c || "padding" === c ? ar(i, c, u) : i[c] = u)
}
}
return t
}
function ar(e, t, n) {
var r = "string" == typeof n ? function(e) {
for (var t = [], n = 0, r = 0, i = 0; i < e.length; i++)
switch (e[i]) {
case "(":
r++;
break;
case ")":
r && r--;
break;
case "\t":
case " ":
r || (i > n && t.push(e.substring(n, i)),
n = i + 1)
}
return n < e.length && t.push(e.substring(n)),
t
}(n) : [n];
0 === r.length && r.push(n),
"!important" === r[r.length - 1] && (r = r.slice(0, -1).map((function(e) {
return e + " !important"
}
))),
e[t + "Top"] = r[0],
e[t + "Right"] = r[1] || r[0],
e[t + "Bottom"] = r[2] || r[0],
e[t + "Left"] = r[3] || r[1] || r[0]
}
function lr(e, t) {
return t <= 0 ? "" : 1 === t ? e : e + lr(e, t - 1)
}
function sr(e, t) {
if (!t)
return "";
var n = [];
for (var r in t)
t.hasOwnProperty(r) && "displayName" !== r && void 0 !== t[r] && n.push(r, t[r]);
for (var i = 0; i < n.length; i += 2)
Un(n, i),
Qn(n, i),
tr(e, n, i),
Gn(n, i);
for (i = 1; i < n.length; i += 4)
n.splice(i, 1, ":", n[i], ";");
return n.join("")
}
function cr(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = or(t)
, i = function(e, t) {
for (var n = [e.rtl ? "rtl" : "ltr"], r = !1, i = 0, o = t.__order; i < o.length; i++) {
var a = o[i];
n.push(a);
var l = t[a];
for (var s in l)
l.hasOwnProperty(s) && void 0 !== l[s] && (r = !0,
n.push(s, l[s]))
}
return r ? n.join("") : void 0
}(e, r);
if (i) {
var o = Pn.getInstance()
, a = {
className: o.classNameFromKey(i),
key: i,
args: t
};
if (!a.className) {
a.className = o.getClassName(function(e) {
var t = e && e["&"];
return t ? t.displayName : void 0
}(r));
for (var l = [], s = 0, c = r.__order; s < c.length; s++) {
var u = c[s];
l.push(u, sr(e, r[u]))
}
a.rulesToInsert = l
}
return a
}
}
function ur(e, t) {
void 0 === t && (t = 1);
var n = Pn.getInstance()
, r = e.className
, i = e.key
, o = e.args
, a = e.rulesToInsert;
if (a) {
for (var l = 0; l < a.length; l += 2) {
var s = a[l + 1];
if (s) {
var c = a[l]
, u = (c = c.replace(/&/g, lr("." + e.className, t))) + "{" + s + "}" + (0 === c.indexOf("@") ? "}" : "");
n.insertRule(u)
}
}
n.cacheClassName(r, i, o, a)
}
}
function dr() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return pr(e, Wn())
}
function pr(e, t) {
var n = Bn(e instanceof Array ? e : [e])
, r = n.classes
, i = n.objects;
return i.length && r.push(function(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = cr.apply(void 0, Object(zn.e)([e], t));
return r ? (ur(r, e.specificityMultiplier),
r.className) : ""
}(t || {}, i)),
r.join(" ")
}
function hr(e) {
var t = Pn.getInstance()
, n = [];
for (var r in e)
e.hasOwnProperty(r) && n.push(r, "{", sr(Wn(), e[r]), "}");
var i = n.join("")
, o = t.classNameFromKey(i);
if (o)
return o;
var a = t.getClassName();
return t.insertRule("@keyframes " + a + "{" + i + "}", !0),
t.cacheClassName(a, i, [], ["keyframes", i]),
a
}
var fr = "cubic-bezier(.1,.9,.2,1)"
, br = "cubic-bezier(.1,.25,.75,.9)"
, gr = "0.167s"
, mr = "0.267s"
, vr = "0.367s"
, yr = "0.467s"
, xr = hr({
from: {
opacity: 0
},
to: {
opacity: 1
}
})
, Or = hr({
from: {
opacity: 1
},
to: {
opacity: 0,
visibility: "hidden"
}
})
, jr = ai(-10)
, kr = ai(-20)
, wr = ai(-40)
, Cr = ai(-400)
, _r = ai(10)
, Mr = ai(20)
, Sr = ai(40)
, Ar = ai(400)
, Tr = li(10)
, Er = li(20)
, Ir = li(-10)
, Nr = li(-20)
, zr = si(10)
, Dr = si(20)
, Lr = si(40)
, Rr = si(400)
, Pr = si(-10)
, Br = si(-20)
, Fr = si(-40)
, Vr = si(-400)
, Wr = ci(-10)
, qr = ci(-20)
, Hr = ci(10)
, Ur = ci(20)
, Xr = hr({
from: {
transform: "scale3d(.98,.98,1)"
},
to: {
transform: "scale3d(1,1,1)"
}
})
, Gr = hr({
from: {
transform: "scale3d(1,1,1)"
},
to: {
transform: "scale3d(.98,.98,1)"
}
})
, Kr = hr({
from: {
transform: "scale3d(1.03,1.03,1)"
},
to: {
transform: "scale3d(1,1,1)"
}
})
, Yr = hr({
from: {
transform: "scale3d(1,1,1)"
},
to: {
transform: "scale3d(1.03,1.03,1)"
}
})
, Qr = hr({
from: {
transform: "rotateZ(0deg)"
},
to: {
transform: "rotateZ(90deg)"
}
})
, Jr = hr({
from: {
transform: "rotateZ(0deg)"
},
to: {
transform: "rotateZ(-90deg)"
}
})
, Zr = fr
, $r = br
, ei = gr
, ti = mr
, ni = vr
, ri = yr
, ii = {
slideRightIn10: oi(xr + "," + jr, vr, fr),
slideRightIn20: oi(xr + "," + kr, vr, fr),
slideRightIn40: oi(xr + "," + wr, vr, fr),
slideRightIn400: oi(xr + "," + Cr, vr, fr),
slideLeftIn10: oi(xr + "," + _r, vr, fr),
slideLeftIn20: oi(xr + "," + Mr, vr, fr),
slideLeftIn40: oi(xr + "," + Sr, vr, fr),
slideLeftIn400: oi(xr + "," + Ar, vr, fr),
slideUpIn10: oi(xr + "," + Tr, vr, fr),
slideUpIn20: oi(xr + "," + Er, vr, fr),
slideDownIn10: oi(xr + "," + Ir, vr, fr),
slideDownIn20: oi(xr + "," + Nr, vr, fr),
slideRightOut10: oi(Or + "," + zr, vr, fr),
slideRightOut20: oi(Or + "," + Dr, vr, fr),
slideRightOut40: oi(Or + "," + Lr, vr, fr),
slideRightOut400: oi(Or + "," + Rr, vr, fr),
slideLeftOut10: oi(Or + "," + Pr, vr, fr),
slideLeftOut20: oi(Or + "," + Br, vr, fr),
slideLeftOut40: oi(Or + "," + Fr, vr, fr),
slideLeftOut400: oi(Or + "," + Vr, vr, fr),
slideUpOut10: oi(Or + "," + Wr, vr, fr),
slideUpOut20: oi(Or + "," + qr, vr, fr),
slideDownOut10: oi(Or + "," + Hr, vr, fr),
slideDownOut20: oi(Or + "," + Ur, vr, fr),
scaleUpIn100: oi(xr + "," + Xr, vr, fr),
scaleDownIn100: oi(xr + "," + Kr, vr, fr),
scaleUpOut103: oi(Or + "," + Yr, gr, br),
scaleDownOut98: oi(Or + "," + Gr, gr, br),
fadeIn100: oi(xr, gr, br),
fadeIn200: oi(xr, mr, br),
fadeIn400: oi(xr, vr, br),
fadeIn500: oi(xr, yr, br),
fadeOut100: oi(Or, gr, br),
fadeOut200: oi(Or, mr, br),
fadeOut400: oi(Or, vr, br),
fadeOut500: oi(Or, yr, br),
rotate90deg: oi(Qr, "0.1s", br),
rotateN90deg: oi(Jr, "0.1s", br)
};
function oi(e, t, n) {
return {
animationName: e,
animationDuration: t,
animationTimingFunction: n,
animationFillMode: "both"
}
}
function ai(e) {
return hr({
from: {
transform: "translate3d(" + e + "px,0,0)",
pointerEvents: "none"
},
to: {
transform: "translate3d(0,0,0)",
pointerEvents: "auto"
}
})
}
function li(e) {
return hr({
from: {
transform: "translate3d(0," + e + "px,0)",
pointerEvents: "none"
},
to: {
transform: "translate3d(0,0,0)",
pointerEvents: "auto"
}
})
}
function si(e) {
return hr({
from: {
transform: "translate3d(0,0,0)"
},
to: {
transform: "translate3d(" + e + "px,0,0)"
}
})
}
function ci(e) {
return hr({
from: {
transform: "translate3d(0,0,0)"
},
to: {
transform: "translate3d(0," + e + "px,0)"
}
})
}
var ui, di = function(e) {
var t = {}
, n = function(n) {
var r;
e.hasOwnProperty(n) && Object.defineProperty(t, n, {
get: function() {
return void 0 === r && (r = dr(e[n]).toString()),
r
},
enumerable: !0,
configurable: !0
})
};
for (var r in e)
n(r);
return t
}(ii);
!function(e) {
e.depth0 = "0 0 0 0 transparent",
e.depth4 = "0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",
e.depth8 = "0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",
e.depth16 = "0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",
e.depth64 = "0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"
}(ui || (ui = {}));
var pi, hi, fi, bi, gi, mi = {
elevation4: ui.depth4,
elevation8: ui.depth8,
elevation16: ui.depth16,
elevation64: ui.depth64,
roundedCorner2: "2px",
roundedCorner4: "4px",
roundedCorner6: "6px"
};
!function(e) {
e.Arabic = "Segoe UI Web (Arabic)",
e.Cyrillic = "Segoe UI Web (Cyrillic)",
e.EastEuropean = "Segoe UI Web (East European)",
e.Greek = "Segoe UI Web (Greek)",
e.Hebrew = "Segoe UI Web (Hebrew)",
e.Thai = "Leelawadee UI Web",
e.Vietnamese = "Segoe UI Web (Vietnamese)",
e.WestEuropean = "Segoe UI Web (West European)",
e.Selawik = "Selawik Web",
e.Armenian = "Segoe UI Web (Armenian)",
e.Georgian = "Segoe UI Web (Georgian)"
}(pi || (pi = {})),
function(e) {
e.Arabic = "'" + pi.Arabic + "'",
e.ChineseSimplified = "'Microsoft Yahei UI', Verdana, Simsun",
e.ChineseTraditional = "'Microsoft Jhenghei UI', Pmingliu",
e.Cyrillic = "'" + pi.Cyrillic + "'",
e.EastEuropean = "'" + pi.EastEuropean + "'",
e.Greek = "'" + pi.Greek + "'",
e.Hebrew = "'" + pi.Hebrew + "'",
e.Hindi = "'Nirmala UI'",
e.Japanese = "'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",
e.Korean = "'Malgun Gothic', Gulim",
e.Selawik = "'" + pi.Selawik + "'",
e.Thai = "'Leelawadee UI Web', 'Kmer UI'",
e.Vietnamese = "'" + pi.Vietnamese + "'",
e.WestEuropean = "'" + pi.WestEuropean + "'",
e.Armenian = "'" + pi.Armenian + "'",
e.Georgian = "'" + pi.Georgian + "'"
}(hi || (hi = {})),
function(e) {
e.size10 = "10px",
e.size12 = "12px",
e.size14 = "14px",
e.size16 = "16px",
e.size18 = "18px",
e.size20 = "20px",
e.size24 = "24px",
e.size28 = "28px",
e.size32 = "32px",
e.size42 = "42px",
e.size68 = "68px",
e.mini = "10px",
e.xSmall = "10px",
e.small = "12px",
e.smallPlus = "12px",
e.medium = "14px",
e.mediumPlus = "16px",
e.icon = "16px",
e.large = "18px",
e.xLarge = "20px",
e.xLargePlus = "24px",
e.xxLarge = "28px",
e.xxLargePlus = "32px",
e.superLarge = "42px",
e.mega = "68px"
}(fi || (fi = {})),
function(e) {
e.light = 100,
e.semilight = 300,
e.regular = 400,
e.semibold = 600,
e.bold = 700
}(bi || (bi = {})),
function(e) {
e.xSmall = "10px",
e.small = "12px",
e.medium = "16px",
e.large = "20px"
}(gi || (gi = {}));
var vi = "@media screen and (-ms-high-contrast: active), (forced-colors: active)";
function yi(e, t) {
return "@media only screen" + ("number" == typeof e ? " and (min-width: " + e + "px)" : "") + ("number" == typeof t ? " and (max-width: " + t + "px)" : "")
}
var xi = !1
, Oi = void 0;
try {
Oi = window
} catch (e) {}
function ji(e) {
if (!xi && void 0 !== Oi) {
var t = e;
return t && t.ownerDocument && t.ownerDocument.defaultView ? t.ownerDocument.defaultView : Oi
}
}
var ki, wi = "ms-Fabric--isFocusVisible", Ci = "ms-Fabric--isFocusHidden";
function _i(e, t) {
var n = t ? ji(t) : ji();
if (n) {
var r = n.document.body.classList;
r.add(e ? wi : Ci),
r.remove(e ? Ci : wi)
}
}
function Mi(e, t, n, r, i, o, a) {
return function(e, t) {
var n, r;
void 0 === t && (t = {});
var i = t.inset
, o = void 0 === i ? 0 : i
, a = t.width
, l = void 0 === a ? 1 : a
, s = t.position
, c = void 0 === s ? "relative" : s
, u = t.highContrastStyle
, d = t.borderColor
, p = void 0 === d ? e.palette.white : d
, h = t.outlineColor
, f = void 0 === h ? e.palette.neutralSecondary : h
, b = t.isFocusedOnly;
return {
outline: "transparent",
position: c,
selectors: (n = {
"::-moz-focus-inner": {
border: "0"
}
},
n[".ms-Fabric--isFocusVisible &" + (void 0 === b || b ? ":focus" : "") + ":after"] = {
content: '""',
position: "absolute",
left: o + 1,
top: o + 1,
bottom: o + 1,
right: o + 1,
border: l + "px solid " + p,
outline: l + "px solid " + f,
zIndex: ki.FocusStyle,
selectors: (r = {},
r[vi] = u,
r)
},
n)
}
}(e, "number" != typeof t && t ? t : {
inset: t,
position: n,
highContrastStyle: r,
borderColor: i,
outlineColor: o,
isFocusedOnly: a
})
}
!function(e) {
e.Nav = 1,
e.ScrollablePane = 1,
e.FocusStyle = 1,
e.Coachmark = 1e3,
e.Layer = 1e6,
e.KeytipLayer = 1000001
}(ki || (ki = {}));
var Si = function(e, t, n, r) {
var i, o, a;
void 0 === n && (n = "border"),
void 0 === r && (r = -1);
var l = "borderBottom" === n;
return {
borderColor: e,
selectors: {
":after": (i = {
pointerEvents: "none",
content: "''",
position: "absolute",
left: l ? 0 : r,
top: r,
bottom: r,
right: l ? 0 : r
},
i[n] = "2px solid " + e,
i.borderRadius = t,
i.width = "borderBottom" === n ? "100%" : void 0,
i.selectors = (o = {},
o[vi] = (a = {},
a["border" === n ? "borderColor" : "borderBottomColor"] = "Highlight",
a),
o),
i)
}
}
}
, Ai = {
position: "absolute",
width: 1,
height: 1,
margin: -1,
padding: 0,
border: 0,
overflow: "hidden",
whiteSpace: "nowrap"
}
, Ti = !1
, Ei = 0
, Ii = {
empty: !0
}
, Ni = {}
, zi = "undefined" == typeof WeakMap ? null : WeakMap;
function Di() {
Ei++
}
function Li(e, t, n) {
if (void 0 === t && (t = 100),
void 0 === n && (n = !1),
!zi)
return e;
if (!Ti) {
var r = Pn.getInstance();
r && r.onReset && Pn.getInstance().onReset(Di),
Ti = !0
}
var i, o = 0, a = Ei;
return function() {
for (var r = [], l = 0; l < arguments.length; l++)
r[l] = arguments[l];
var s = i;
(void 0 === i || a !== Ei || t > 0 && o > t) && (i = Bi(),
o = 0,
a = Ei),
s = i;
for (var c = 0; c < r.length; c++) {
var u = Pi(r[c]);
s.map.has(u) || s.map.set(u, Bi()),
s = s.map.get(u)
}
return s.hasOwnProperty("value") || (s.value = e.apply(void 0, r),
o++),
!n || null !== s.value && void 0 !== s.value || (s.value = e.apply(void 0, r)),
s.value
}
}
function Ri(e) {
if (!zi)
return e;
var t = new zi;
return function(n) {
if (!n || "function" != typeof n && "object" != typeof n)
return e(n);
if (t.has(n))
return t.get(n);
var r = e(n);
return t.set(n, r),
r
}
}
function Pi(e) {
return e ? "object" == typeof e || "function" == typeof e ? e : (Ni[e] || (Ni[e] = {
val: e
}),
Ni[e]) : Ii
}
function Bi() {
return {
map: zi ? new zi : null
}
}
var Fi = Li((function(e, t) {
var n = Pn.getInstance();
return t ? Object.keys(e).reduce((function(t, r) {
return t[r] = n.getClassName(e[r]),
t
}
), {}) : e
}
));
function Vi(e, t, n) {
return Fi(e, void 0 !== n ? n : t.disableGlobalClassNames)
}
var Wi = 0
, qi = function() {
function e() {}
return e.getValue = function(e, t) {
var n = Hi();
return void 0 === n[e] && (n[e] = "function" == typeof t ? t() : t),
n[e]
}
,
e.setValue = function(e, t) {
var n = Hi()
, r = n.__callbacks__
, i = n[e];
if (t !== i) {
n[e] = t;
var o = {
oldValue: i,
value: t,
key: e
};
for (var a in r)
r.hasOwnProperty(a) && r[a](o)
}
return t
}
,
e.addChangeListener = function(e) {
var t = e.__id__
, n = Ui();
t || (t = e.__id__ = String(Wi++)),
n[t] = e
}
,
e.removeChangeListener = function(e) {
delete Ui()[e.__id__]
}
,
e
}();
function Hi() {
var e, t = ji() || {};
return t.__globalSettings__ || (t.__globalSettings__ = ((e = {}).__callbacks__ = {},
e)),
t.__globalSettings__
}
function Ui() {
return Hi().__callbacks__
}
var Xi = {
settings: {},
scopedSettings: {},
inCustomizerContext: !1
}
, Gi = qi.getValue("customizations", {
settings: {},
scopedSettings: {},
inCustomizerContext: !1
})
, Ki = []
, Yi = function() {
function e() {}
return e.reset = function() {
Gi.settings = {},
Gi.scopedSettings = {}
}
,
e.applySettings = function(t) {
Gi.settings = Object(zn.a)(Object(zn.a)({}, Gi.settings), t),
e._raiseChange()
}
,
e.applyScopedSettings = function(t, n) {
Gi.scopedSettings[t] = Object(zn.a)(Object(zn.a)({}, Gi.scopedSettings[t]), n),
e._raiseChange()
}
,
e.getSettings = function(e, t, n) {
void 0 === n && (n = Xi);
for (var r = {}, i = t && n.scopedSettings[t] || {}, o = t && Gi.scopedSettings[t] || {}, a = 0, l = e; a < l.length; a++) {
var s = l[a];
r[s] = i[s] || n.settings[s] || o[s] || Gi.settings[s]
}
return r
}
,
e.applyBatchedUpdates = function(t, n) {
e._suppressUpdates = !0;
try {
t()
} catch (e) {}
e._suppressUpdates = !1,
n || e._raiseChange()
}
,
e.observe = function(e) {
Ki.push(e)
}
,
e.unobserve = function(e) {
Ki = Ki.filter((function(t) {
return t !== e
}
))
}
,
e._raiseChange = function() {
e._suppressUpdates || Ki.forEach((function(e) {
return e()
}
))
}
,
e
}()
, Qi = n(77)
, Ji = {
themeDarker: "#004578",
themeDark: "#005a9e",
themeDarkAlt: "#106ebe",
themePrimary: "#0078d4",
themeSecondary: "#2b88d8",
themeTertiary: "#71afe5",
themeLight: "#c7e0f4",
themeLighter: "#deecf9",
themeLighterAlt: "#eff6fc",
black: "#000000",
blackTranslucent40: "rgba(0,0,0,.4)",
neutralDark: "#201f1e",
neutralPrimary: "#323130",
neutralPrimaryAlt: "#3b3a39",
neutralSecondary: "#605e5c",
neutralSecondaryAlt: "#8a8886",
neutralTertiary: "#a19f9d",
neutralTertiaryAlt: "#c8c6c4",
neutralQuaternary: "#d2d0ce",
neutralQuaternaryAlt: "#e1dfdd",
neutralLight: "#edebe9",
neutralLighter: "#f3f2f1",
neutralLighterAlt: "#faf9f8",
accent: "#0078d4",
white: "#ffffff",
whiteTranslucent40: "rgba(255,255,255,.4)",
yellowDark: "#d29200",
yellow: "#ffb900",
yellowLight: "#fff100",
orange: "#d83b01",
orangeLight: "#ea4300",
orangeLighter: "#ff8c00",
redDark: "#a4262c",
red: "#e81123",
magentaDark: "#5c005c",
magenta: "#b4009e",
magentaLight: "#e3008c",
purpleDark: "#32145a",
purple: "#5c2d91",
purpleLight: "#b4a0ff",
blueDark: "#002050",
blueMid: "#00188f",
blue: "#0078d4",
blueLight: "#00bcf2",
tealDark: "#004b50",
teal: "#008272",
tealLight: "#00b294",
greenDark: "#004b1c",
green: "#107c10",
greenLight: "#bad80a"
};
function Zi(e) {
var t = Pn.getInstance()
, n = sr(Wn(), e);
if (!t.classNameFromKey(n)) {
var r = t.getClassName();
t.insertRule("@font-face{" + n + "}", !0),
t.cacheClassName(r, n, [], ["font-face", n])
}
}
var $i, eo = "'Segoe UI', '" + pi.WestEuropean + "'", to = {
ar: hi.Arabic,
bg: hi.Cyrillic,
cs: hi.EastEuropean,
el: hi.Greek,
et: hi.EastEuropean,
he: hi.Hebrew,
hi: hi.Hindi,
hr: hi.EastEuropean,
hu: hi.EastEuropean,
ja: hi.Japanese,
kk: hi.EastEuropean,
ko: hi.Korean,
lt: hi.EastEuropean,
lv: hi.EastEuropean,
pl: hi.EastEuropean,
ru: hi.Cyrillic,
sk: hi.EastEuropean,
"sr-latn": hi.EastEuropean,
th: hi.Thai,
tr: hi.EastEuropean,
uk: hi.Cyrillic,
vi: hi.Vietnamese,
"zh-hans": hi.ChineseSimplified,
"zh-hant": hi.ChineseTraditional,
hy: hi.Armenian,
ka: hi.Georgian
};
function no(e, t, n) {
return {
fontFamily: n,
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontSize: e,
fontWeight: t
}
}
function ro(e) {
if (!xi && "undefined" != typeof document) {
var t = e;
return t && t.ownerDocument ? t.ownerDocument : document
}
}
function io(e) {
var t = null;
try {
var n = ji();
t = n ? n.sessionStorage.getItem(e) : null
} catch (e) {}
return t
}
var oo = "language"
, ao = function(e) {
var t = function(e) {
for (var t in to)
if (to.hasOwnProperty(t) && e && 0 === t.indexOf(e))
return to[t];
return eo
}(e) + ", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";
return {
tiny: no(fi.mini, bi.regular, t),
xSmall: no(fi.xSmall, bi.regular, t),
small: no(fi.small, bi.regular, t),
smallPlus: no(fi.smallPlus, bi.regular, t),
medium: no(fi.medium, bi.regular, t),
mediumPlus: no(fi.mediumPlus, bi.regular, t),
large: no(fi.large, bi.regular, t),
xLarge: no(fi.xLarge, bi.semibold, t),
xLargePlus: no(fi.xLargePlus, bi.semibold, t),
xxLarge: no(fi.xxLarge, bi.semibold, t),
xxLargePlus: no(fi.xxLargePlus, bi.semibold, t),
superLarge: no(fi.superLarge, bi.semibold, t),
mega: no(fi.mega, bi.semibold, t)
}
}(function(e) {
if (void 0 === e && (e = "sessionStorage"),
void 0 === $i) {
var t = ro()
, n = "localStorage" === e ? function(e) {
var t = null;
try {
var n = ji();
t = n ? n.localStorage.getItem(e) : null
} catch (e) {}
return t
}(oo) : "sessionStorage" === e ? io(oo) : void 0;
n && ($i = n),
void 0 === $i && t && ($i = t.documentElement.getAttribute("lang")),
void 0 === $i && ($i = "en")
}
return $i
}());
function lo(e, t, n, r) {
Zi({
fontFamily: e = "'" + e + "'",
src: (void 0 !== r ? "local('" + r + "')," : "") + "url('" + t + ".woff2') format('woff2'),url('" + t + ".woff') format('woff')",
fontWeight: n,
fontStyle: "normal",
fontDisplay: "swap"
})
}
function so(e, t, n, r, i) {
void 0 === r && (r = "segoeui");
var o = e + "/" + n + "/" + r;
lo(t, o + "-light", bi.light, i && i + " Light"),
lo(t, o + "-semilight", bi.semilight, i && i + " SemiLight"),
lo(t, o + "-regular", bi.regular, i),
lo(t, o + "-semibold", bi.semibold, i && i + " SemiBold"),
lo(t, o + "-bold", bi.bold, i && i + " Bold")
}
function co(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
for (var r = 0, i = t; r < i.length; r++) {
uo(e || {}, i[r])
}
return e
}
function uo(e, t, n) {
for (var r in void 0 === n && (n = []),
n.push(t),
t)
if (t.hasOwnProperty(r) && "__proto__" !== r && "constructor" !== r && "prototype" !== r) {
var i = t[r];
if ("object" != typeof i || null === i || Array.isArray(i))
e[r] = i;
else {
var o = n.indexOf(i) > -1;
e[r] = o ? i : uo(e[r] || {}, i, n)
}
}
return n.pop(),
e
}
function po(e, t, n, r, i) {
return void 0 === i && (i = !1),
function(e, t) {
var n = "";
return !0 === t && (n = " /* @deprecated */"),
e.listTextColor = e.listText + n,
e.menuItemBackgroundChecked += n,
e.warningHighlight += n,
e.warningText = e.messageText + n,
e.successText += n,
e
}(ho(e, t, Object(zn.a)({
primaryButtonBorder: "transparent",
errorText: r ? "#F1707B" : "#a4262c",
messageText: r ? "#F3F2F1" : "#323130",
messageLink: r ? "#6CB8F6" : "#005A9E",
messageLinkHovered: r ? "#82C7FF" : "#004578",
infoIcon: r ? "#C8C6C4" : "#605e5c",
errorIcon: r ? "#F1707B" : "#A80000",
blockingIcon: r ? "#442726" : "#FDE7E9",
warningIcon: r ? "#C8C6C4" : "#797775",
severeWarningIcon: r ? "#FCE100" : "#D83B01",
successIcon: r ? "#92C353" : "#107C10",
infoBackground: r ? "#323130" : "#f3f2f1",
errorBackground: r ? "#442726" : "#FDE7E9",
blockingBackground: r ? "#442726" : "#FDE7E9",
warningBackground: r ? "#433519" : "#FFF4CE",
severeWarningBackground: r ? "#4F2A0F" : "#FED9CC",
successBackground: r ? "#393D1B" : "#DFF6DD",
warningHighlight: r ? "#fff100" : "#ffb900",
successText: r ? "#92c353" : "#107C10"
}, n), r), i)
}
function ho(e, t, n, r, i) {
void 0 === i && (i = !1);
var o = {}
, a = e || {}
, l = a.white
, s = a.black
, c = a.themePrimary
, u = a.themeDark
, d = a.themeDarker
, p = a.themeDarkAlt
, h = a.themeLighter
, f = a.neutralLight
, b = a.neutralLighter
, g = a.neutralDark
, m = a.neutralQuaternary
, v = a.neutralQuaternaryAlt
, y = a.neutralPrimary
, x = a.neutralSecondary
, O = a.neutralSecondaryAlt
, j = a.neutralTertiary
, k = a.neutralTertiaryAlt
, w = a.neutralLighterAlt
, C = a.accent;
return l && (o.bodyBackground = l,
o.bodyFrameBackground = l,
o.accentButtonText = l,
o.buttonBackground = l,
o.primaryButtonText = l,
o.primaryButtonTextHovered = l,
o.primaryButtonTextPressed = l,
o.inputBackground = l,
o.inputForegroundChecked = l,
o.listBackground = l,
o.menuBackground = l,
o.cardStandoutBackground = l),
s && (o.bodyTextChecked = s,
o.buttonTextCheckedHovered = s),
c && (o.link = c,
o.primaryButtonBackground = c,
o.inputBackgroundChecked = c,
o.inputIcon = c,
o.inputFocusBorderAlt = c,
o.menuIcon = c,
o.menuHeader = c,
o.accentButtonBackground = c),
u && (o.primaryButtonBackgroundPressed = u,
o.inputBackgroundCheckedHovered = u,
o.inputIconHovered = u),
d && (o.linkHovered = d),
p && (o.primaryButtonBackgroundHovered = p),
h && (o.inputPlaceholderBackgroundChecked = h),
f && (o.bodyBackgroundChecked = f,
o.bodyFrameDivider = f,
o.bodyDivider = f,
o.variantBorder = f,
o.buttonBackgroundCheckedHovered = f,
o.buttonBackgroundPressed = f,
o.listItemBackgroundChecked = f,
o.listHeaderBackgroundPressed = f,
o.menuItemBackgroundPressed = f,
o.menuItemBackgroundChecked = f),
b && (o.bodyBackgroundHovered = b,
o.buttonBackgroundHovered = b,
o.buttonBackgroundDisabled = b,
o.buttonBorderDisabled = b,
o.primaryButtonBackgroundDisabled = b,
o.disabledBackground = b,
o.listItemBackgroundHovered = b,
o.listHeaderBackgroundHovered = b,
o.menuItemBackgroundHovered = b),
m && (o.primaryButtonTextDisabled = m,
o.disabledSubtext = m),
v && (o.listItemBackgroundCheckedHovered = v),
j && (o.disabledBodyText = j,
o.variantBorderHovered = (null == n ? void 0 : n.variantBorderHovered) || j,
o.buttonTextDisabled = j,
o.inputIconDisabled = j,
o.disabledText = j),
y && (o.bodyText = y,
o.actionLink = y,
o.buttonText = y,
o.inputBorderHovered = y,
o.inputText = y,
o.listText = y,
o.menuItemText = y),
w && (o.bodyStandoutBackground = w,
o.defaultStateBackground = w),
g && (o.actionLinkHovered = g,
o.buttonTextHovered = g,
o.buttonTextChecked = g,
o.buttonTextPressed = g,
o.inputTextHovered = g,
o.menuItemTextHovered = g),
x && (o.bodySubtext = x,
o.focusBorder = x,
o.inputBorder = x,
o.smallInputBorder = x,
o.inputPlaceholderText = x),
O && (o.buttonBorder = O),
k && (o.disabledBodySubtext = k,
o.disabledBorder = k,
o.buttonBackgroundChecked = k,
o.menuDivider = k),
C && (o.accentButtonBackground = C),
(null == t ? void 0 : t.elevation4) && (o.cardShadow = t.elevation4),
!r && (null == t ? void 0 : t.elevation8) ? o.cardShadowHovered = t.elevation8 : o.variantBorderHovered && (o.cardShadowHovered = "0 0 1px " + o.variantBorderHovered),
Object(zn.a)(Object(zn.a)({}, o), n)
}
!function(e) {
if (e) {
var t = e + "/fonts";
so(t, pi.Thai, "leelawadeeui-thai", "leelawadeeui"),
so(t, pi.Arabic, "segoeui-arabic"),
so(t, pi.Cyrillic, "segoeui-cyrillic"),
so(t, pi.EastEuropean, "segoeui-easteuropean"),
so(t, pi.Greek, "segoeui-greek"),
so(t, pi.Hebrew, "segoeui-hebrew"),
so(t, pi.Vietnamese, "segoeui-vietnamese"),
so(t, pi.WestEuropean, "segoeui-westeuropean", "segoeui", "Segoe UI"),
so(t, hi.Selawik, "selawik", "selawik"),
so(t, pi.Armenian, "segoeui-armenian"),
so(t, pi.Georgian, "segoeui-georgian"),
lo("Leelawadee UI Web", t + "/leelawadeeui-thai/leelawadeeui-semilight", bi.light),
lo("Leelawadee UI Web", t + "/leelawadeeui-thai/leelawadeeui-bold", bi.semibold)
}
}(function() {
var e, t, n = null === (e = ji()) || void 0 === e ? void 0 : e.FabricConfig;
return null !== (t = null == n ? void 0 : n.fontBaseUrl) && void 0 !== t ? t : "https://static2.sharepointonline.com/files/fabric/assets"
}());
var fo = {
s2: "4px",
s1: "8px",
m: "16px",
l1: "20px",
l2: "32px"
};
function bo(e, t) {
void 0 === e && (e = {}),
void 0 === t && (t = !1);
var n = !!e.isInverted;
return function(e, t) {
var n, r, i;
void 0 === t && (t = {});
var o = co({}, e, t, {
semanticColors: ho(t.palette, t.effects, t.semanticColors, void 0 === t.isInverted ? e.isInverted : t.isInverted)
});
if ((null === (n = t.palette) || void 0 === n ? void 0 : n.themePrimary) && !(null === (r = t.palette) || void 0 === r ? void 0 : r.accent) && (o.palette.accent = t.palette.themePrimary),
t.defaultFontStyle)
for (var a = 0, l = Object.keys(o.fonts); a < l.length; a++) {
var s = l[a];
o.fonts[s] = co(o.fonts[s], t.defaultFontStyle, null === (i = null == t ? void 0 : t.fonts) || void 0 === i ? void 0 : i[s])
}
return o
}({
palette: Ji,
effects: mi,
fonts: ao,
spacing: fo,
isInverted: n,
disableGlobalClassNames: !1,
semanticColors: po(Ji, mi, void 0, n, t),
rtl: void 0
}, e)
}
var go = bo({})
, mo = [];
function vo() {
var e, t, n, r = ji();
(null === (t = null == r ? void 0 : r.FabricConfig) || void 0 === t ? void 0 : t.legacyTheme) ? xo(r.FabricConfig.legacyTheme) : Yi.getSettings(["theme"]).theme || ((null === (n = null == r ? void 0 : r.FabricConfig) || void 0 === n ? void 0 : n.theme) && (go = bo(r.FabricConfig.theme)),
Yi.applySettings(((e = {}).theme = go,
e)))
}
function yo(e) {
return void 0 === e && (e = !1),
!0 === e && (go = bo({}, e)),
go
}
function xo(e, t) {
var n;
return void 0 === t && (t = !1),
go = bo(e, t),
Object(Qi.b)(Object(zn.a)(Object(zn.a)(Object(zn.a)(Object(zn.a)({}, go.palette), go.semanticColors), go.effects), function(e) {
for (var t = {}, n = 0, r = Object.keys(e.fonts); n < r.length; n++)
for (var i = r[n], o = e.fonts[i], a = 0, l = Object.keys(o); a < l.length; a++) {
var s = l[a]
, c = i + s.charAt(0).toUpperCase() + s.slice(1)
, u = o[s];
"fontSize" === s && "number" == typeof u && (u += "px"),
t[c] = u
}
return t
}(go))),
Yi.applySettings(((n = {}).theme = go,
n)),
mo.forEach((function(e) {
try {
e(go)
} catch (e) {}
}
)),
go
}
vo();
var Oo = {
boxShadow: "none",
margin: 0,
padding: 0,
boxSizing: "border-box"
}
, jo = {
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap"
};
function ko(e) {
return {
selectors: {
"::placeholder": e,
":-ms-input-placeholder": e,
"::-ms-input-placeholder": e
}
}
}
function wo(e) {
console && console.warn && console.warn(e)
}
var Co = qi.getValue("icons", {
__options: {
disableWarnings: !1,
warnOnMissingIcons: !0
},
__remapped: {}
})
, _o = Pn.getInstance();
_o && _o.onReset && _o.onReset((function() {
for (var e in Co)
Co.hasOwnProperty(e) && Co[e].subset && (Co[e].subset.className = void 0)
}
));
var Mo = function(e) {
return e.toLowerCase()
};
function So(e, t) {
var n = Object(zn.a)(Object(zn.a)({}, e), {
isRegistered: !1,
className: void 0
})
, r = e.icons;
for (var i in t = t ? Object(zn.a)(Object(zn.a)({}, Co.__options), t) : Co.__options,
r)
if (r.hasOwnProperty(i)) {
var o = r[i]
, a = Mo(i);
Co[a] ? Io(i) : Co[a] = {
code: o,
subset: n
}
}
}
function Ao(e, t) {
Co.__remapped[Mo(e)] = Mo(t)
}
var To = []
, Eo = void 0;
function Io(e) {
Co.__options.disableWarnings || (To.push(e),
void 0 === Eo && (Eo = setTimeout((function() {
wo("Some icons were re-registered. Applications should only call registerIcons for any given icon once. Redefining what an icon is may have unintended consequences. Duplicates include: \n" + To.slice(0, 10).join(", ") + (To.length > 10 ? " (+ " + (To.length - 10) + " more)" : "")),
Eo = void 0,
To = []
}
), 2e3)))
}
function No() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
if (e && 1 === e.length && e[0] && !e[0].subComponentStyles)
return e[0];
for (var n = {}, r = {}, i = 0, o = e; i < o.length; i++) {
var a = o[i];
if (a)
for (var l in a)
if (a.hasOwnProperty(l)) {
if ("subComponentStyles" === l && void 0 !== a.subComponentStyles) {
var s = a.subComponentStyles;
for (var c in s)
s.hasOwnProperty(c) && (r.hasOwnProperty(c) ? r[c].push(s[c]) : r[c] = [s[c]]);
continue
}
var u = n[l]
, d = a[l];
n[l] = void 0 === u ? d : Object(zn.e)(Object(zn.e)([], Array.isArray(u) ? u : [u]), Array.isArray(d) ? d : [d])
}
}
if (Object.keys(r).length > 0) {
n.subComponentStyles = {};
var p = n.subComponentStyles
, h = function(e) {
if (r.hasOwnProperty(e)) {
var t = r[e];
p[e] = function(e) {
return No.apply(void 0, t.map((function(t) {
return "function" == typeof t ? t(e) : t
}
)))
}
}
};
for (var c in r)
h(c)
}
return n
}
function zo(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
for (var r = [], i = 0, o = t; i < o.length; i++) {
var a = o[i];
a && r.push("function" == typeof a ? a(e) : a)
}
return 1 === r.length ? r[0] : r.length ? No.apply(void 0, r) : {}
}
function Do() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return Lo(e, Wn())
}
function Lo(e, t) {
var n = {
subComponentStyles: {}
};
if (!e[0] && e.length <= 1)
return {
subComponentStyles: {}
};
var r = No.apply(void 0, e)
, i = [];
for (var o in r)
if (r.hasOwnProperty(o)) {
if ("subComponentStyles" === o) {
n.subComponentStyles = r.subComponentStyles || {};
continue
}
var a = Bn(r[o])
, l = a.classes
, s = a.objects;
(null == s ? void 0 : s.length) ? (d = cr(t || {}, {
displayName: o
}, s)) && (i.push(d),
n[o] = l.concat([d.className]).join(" ")) : n[o] = l.join(" ")
}
for (var c = 0, u = i; c < u.length; c++) {
var d;
(d = u[c]) && ur(d, null == t ? void 0 : t.specificityMultiplier)
}
return n
}
var Ro = n(170);
Object(Ro.a)("@fluentui/style-utilities", "8.5.2"),
vo();
Object(Ro.a)("@fluentui/font-icons-mdl2", "8.1.20");
var Po = bo({
defaultFontStyle: {
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif',
fontWeight: "normal"
},
fonts: {
small: {
fontSize: "12px"
},
medium: {
fontSize: "14px"
},
mediumPlus: {
fontSize: "16px",
fontWeight: "500"
},
large: {
fontSize: "20px",
fontWeight: "500"
},
xLarge: {
fontSize: "22px",
fontWeight: "bold"
}
},
palette: {
themePrimary: "#30ad62",
themeLighterAlt: "#f4fcf7",
themeLighter: "#d6f2e1",
themeLight: "#b5e7c9",
themeTertiary: "#75ce99",
themeSecondary: "#43b772",
themeDarkAlt: "#2c9c59",
themeDark: "#25844b",
themeDarker: "#1b6137",
neutralLighterAlt: "#eef0f6",
neutralLighter: "#F4F6FC",
neutralLight: "#e1e3e8",
neutralQuaternaryAlt: "#E0E0E0",
neutralQuaternary: "#c8c9ce",
neutralTertiaryAlt: "#B3B0AD",
neutralTertiary: "#a0a2bd",
neutralSecondary: "#8589a8",
neutralPrimaryAlt: "#7E82A4",
neutralPrimary: "#21243d",
neutralDark: "#434668",
black: "#313453",
white: "#ffffff"
}
})
, Bo = s.a.createContext(null)
, Fo = function(e) {
e()
};
var Vo = {
notify: function() {},
get: function() {
return []
}
};
function Wo(e, t) {
var n, r = Vo;
function i() {
a.onStateChange && a.onStateChange()
}
function o() {
n || (n = t ? t.addNestedSub(i) : e.subscribe(i),
r = function() {
var e = Fo
, t = null
, n = null;
return {
clear: function() {
t = null,
n = null
},
notify: function() {
e((function() {
for (var e = t; e; )
e.callback(),
e = e.next
}
))
},
get: function() {
for (var e = [], n = t; n; )
e.push(n),
n = n.next;
return e
},
subscribe: function(e) {
var r = !0
, i = n = {
callback: e,
next: null,
prev: n
};
return i.prev ? i.prev.next = i : t = i,
function() {
r && null !== t && (r = !1,
i.next ? i.next.prev = i.prev : n = i.prev,
i.prev ? i.prev.next = i.next : t = i.next)
}
}
}
}())
}
var a = {
addNestedSub: function(e) {
return o(),
r.subscribe(e)
},
notifyNestedSubs: function() {
r.notify()
},
handleChangeWrapper: i,
isSubscribed: function() {
return Boolean(n)
},
trySubscribe: o,
tryUnsubscribe: function() {
n && (n(),
n = void 0,
r.clear(),
r = Vo)
},
getListeners: function() {
return r
}
};
return a
}
var qo = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? l.useLayoutEffect : l.useEffect
, Ho = function(e) {
var t = e.store
, n = e.context
, r = e.children
, i = Object(l.useMemo)((function() {
var e = Wo(t);
return e.onStateChange = e.notifyNestedSubs,
{
store: t,
subscription: e
}
}
), [t])
, o = Object(l.useMemo)((function() {
return t.getState()
}
), [t]);
qo((function() {
var e = i.subscription;
return e.trySubscribe(),
o !== t.getState() && e.notifyNestedSubs(),
function() {
e.tryUnsubscribe(),
e.onStateChange = null
}
}
), [i, o]);
var a = n || Bo;
return s.a.createElement(a.Provider, {
value: i
}, r)
}
, Uo = n(285)
, Xo = ["getDisplayName", "methodName", "renderCountProp", "shouldHandleStateChanges", "storeKey", "withRef", "forwardRef", "context"]
, Go = ["reactReduxForwardedRef"]
, Ko = []
, Yo = [null, null];
function Qo(e, t) {
var n = e[1];
return [t.payload, n + 1]
}
function Jo(e, t, n) {
qo((function() {
return e.apply(void 0, t)
}
), n)
}
function Zo(e, t, n, r, i, o, a) {
e.current = r,
t.current = i,
n.current = !1,
o.current && (o.current = null,
a())
}
function $o(e, t, n, r, i, o, a, l, s, c) {
if (e) {
var u = !1
, d = null
, p = function() {
if (!u) {
var e, n, p = t.getState();
try {
e = r(p, i.current)
} catch (e) {
n = e,
d = e
}
n || (d = null),
e === o.current ? a.current || s() : (o.current = e,
l.current = e,
a.current = !0,
c({
type: "STORE_UPDATED",
payload: {
error: n
}
}))
}
};
return n.onStateChange = p,
n.trySubscribe(),
p(),
function() {
if (u = !0,
n.tryUnsubscribe(),
n.onStateChange = null,
d)
throw d
}
}
}
var ea = function() {
return [null, 0]
};
function ta(e, t) {
void 0 === t && (t = {});
var n = t
, r = n.getDisplayName
, i = void 0 === r ? function(e) {
return "ConnectAdvanced(" + e + ")"
}
: r
, o = n.methodName
, a = void 0 === o ? "connectAdvanced" : o
, c = n.renderCountProp
, u = void 0 === c ? void 0 : c
, d = n.shouldHandleStateChanges
, p = void 0 === d || d
, h = n.storeKey
, f = void 0 === h ? "store" : h
, b = (n.withRef,
n.forwardRef)
, g = void 0 !== b && b
, m = n.context
, v = void 0 === m ? Bo : m
, y = nn(n, Xo)
, x = v;
return function(t) {
var n = t.displayName || t.name || "Component"
, r = i(n)
, o = Vt({}, y, {
getDisplayName: i,
methodName: a,
renderCountProp: u,
shouldHandleStateChanges: p,
storeKey: f,
displayName: r,
wrappedComponentName: n,
WrappedComponent: t
})
, c = y.pure
, d = c ? l.useMemo : function(e) {
return e()
}
;
function h(n) {
var r = Object(l.useMemo)((function() {
var e = n.reactReduxForwardedRef
, t = nn(n, Go);
return [n.context, e, t]
}
), [n])
, i = r[0]
, a = r[1]
, c = r[2]
, u = Object(l.useMemo)((function() {
return i && i.Consumer && Object(Uo.isContextConsumer)(s.a.createElement(i.Consumer, null)) ? i : x
}
), [i, x])
, h = Object(l.useContext)(u)
, f = Boolean(n.store) && Boolean(n.store.getState) && Boolean(n.store.dispatch);
Boolean(h) && Boolean(h.store);
var b = f ? n.store : h.store
, g = Object(l.useMemo)((function() {
return function(t) {
return e(t.dispatch, o)
}(b)
}
), [b])
, m = Object(l.useMemo)((function() {
if (!p)
return Yo;
var e = Wo(b, f ? null : h.subscription)
, t = e.notifyNestedSubs.bind(e);
return [e, t]
}
), [b, f, h])
, v = m[0]
, y = m[1]
, O = Object(l.useMemo)((function() {
return f ? h : Vt({}, h, {
subscription: v
})
}
), [f, h, v])
, j = Object(l.useReducer)(Qo, Ko, ea)
, k = j[0][0]
, w = j[1];
if (k && k.error)
throw k.error;
var C = Object(l.useRef)()
, _ = Object(l.useRef)(c)
, M = Object(l.useRef)()
, S = Object(l.useRef)(!1)
, A = d((function() {
return M.current && c === _.current ? M.current : g(b.getState(), c)
}
), [b, k, c]);
Jo(Zo, [_, C, S, c, A, M, y]),
Jo($o, [p, b, v, g, _, C, S, M, y, w], [b, v, g]);
var T = Object(l.useMemo)((function() {
return s.a.createElement(t, Vt({}, A, {
ref: a
}))
}
), [a, t, A]);
return Object(l.useMemo)((function() {
return p ? s.a.createElement(u.Provider, {
value: O
}, T) : T
}
), [u, T, O])
}
var b = c ? s.a.memo(h) : h;
if (b.WrappedComponent = t,
b.displayName = h.displayName = r,
g) {
var m = s.a.forwardRef((function(e, t) {
return s.a.createElement(b, Vt({}, e, {
reactReduxForwardedRef: t
}))
}
));
return m.displayName = r,
m.WrappedComponent = t,
on()(m, t)
}
return on()(b, t)
}
}
function na(e, t) {
return e === t ? 0 !== e || 0 !== t || 1 / e == 1 / t : e != e && t != t
}
function ra(e, t) {
if (na(e, t))
return !0;
if ("object" != typeof e || null === e || "object" != typeof t || null === t)
return !1;
var n = Object.keys(e)
, r = Object.keys(t);
if (n.length !== r.length)
return !1;
for (var i = 0; i < n.length; i++)
if (!Object.prototype.hasOwnProperty.call(t, n[i]) || !na(e[n[i]], t[n[i]]))
return !1;
return !0
}
function ia(e) {
return function(t, n) {
var r = e(t, n);
function i() {
return r
}
return i.dependsOnOwnProps = !1,
i
}
}
function oa(e) {
return null !== e.dependsOnOwnProps && void 0 !== e.dependsOnOwnProps ? Boolean(e.dependsOnOwnProps) : 1 !== e.length
}
function aa(e, t) {
return function(t, n) {
n.displayName;
var r = function(e, t) {
return r.dependsOnOwnProps ? r.mapToProps(e, t) : r.mapToProps(e)
};
return r.dependsOnOwnProps = !0,
r.mapToProps = function(t, n) {
r.mapToProps = e,
r.dependsOnOwnProps = oa(e);
var i = r(t, n);
return "function" == typeof i && (r.mapToProps = i,
r.dependsOnOwnProps = oa(i),
i = r(t, n)),
i
}
,
r
}
}
var la = [function(e) {
return "function" == typeof e ? aa(e) : void 0
}
, function(e) {
return e ? void 0 : ia((function(e) {
return {
dispatch: e
}
}
))
}
, function(e) {
return e && "object" == typeof e ? ia((function(t) {
return function(e, t) {
var n = {}
, r = function(r) {
var i = e[r];
"function" == typeof i && (n[r] = function() {
return t(i.apply(void 0, arguments))
}
)
};
for (var i in e)
r(i);
return n
}(e, t)
}
)) : void 0
}
]
, sa = [function(e) {
return "function" == typeof e ? aa(e) : void 0
}
, function(e) {
return e ? void 0 : ia((function() {
return {}
}
))
}
];
function ca(e, t, n) {
return Vt({}, n, e, t)
}
var ua = [function(e) {
return "function" == typeof e ? function(e) {
return function(t, n) {
n.displayName;
var r, i = n.pure, o = n.areMergedPropsEqual, a = !1;
return function(t, n, l) {
var s = e(t, n, l);
return a ? i && o(s, r) || (r = s) : (a = !0,
r = s),
r
}
}
}(e) : void 0
}
, function(e) {
return e ? void 0 : function() {
return ca
}
}
]
, da = ["initMapStateToProps", "initMapDispatchToProps", "initMergeProps"];
function pa(e, t, n, r) {
return function(i, o) {
return n(e(i, o), t(r, o), o)
}
}
function ha(e, t, n, r, i) {
var o, a, l, s, c, u = i.areStatesEqual, d = i.areOwnPropsEqual, p = i.areStatePropsEqual, h = !1;
function f(i, h) {
var f = !d(h, a)
, b = !u(i, o);
return o = i,
a = h,
f && b ? (l = e(o, a),
t.dependsOnOwnProps && (s = t(r, a)),
c = n(l, s, a)) : f ? (e.dependsOnOwnProps && (l = e(o, a)),
t.dependsOnOwnProps && (s = t(r, a)),
c = n(l, s, a)) : b ? function() {
var t = e(o, a)
, r = !p(t, l);
return l = t,
r && (c = n(l, s, a)),
c
}() : c
}
return function(i, u) {
return h ? f(i, u) : (l = e(o = i, a = u),
s = t(r, a),
c = n(l, s, a),
h = !0,
c)
}
}
function fa(e, t) {
var n = t.initMapStateToProps
, r = t.initMapDispatchToProps
, i = t.initMergeProps
, o = nn(t, da)
, a = n(e, o)
, l = r(e, o)
, s = i(e, o);
return (o.pure ? ha : pa)(a, l, s, e, o)
}
var ba = ["pure", "areStatesEqual", "areOwnPropsEqual", "areStatePropsEqual", "areMergedPropsEqual"];
function ga(e, t, n) {
for (var r = t.length - 1; r >= 0; r--) {
var i = t[r](e);
if (i)
return i
}
return function(t, r) {
throw new Error("Invalid value of type " + typeof e + " for " + n + " argument when connecting component " + r.wrappedComponentName + ".")
}
}
function ma(e, t) {
return e === t
}
var va = function(e) {
var t = void 0 === e ? {} : e
, n = t.connectHOC
, r = void 0 === n ? ta : n
, i = t.mapStateToPropsFactories
, o = void 0 === i ? sa : i
, a = t.mapDispatchToPropsFactories
, l = void 0 === a ? la : a
, s = t.mergePropsFactories
, c = void 0 === s ? ua : s
, u = t.selectorFactory
, d = void 0 === u ? fa : u;
return function(e, t, n, i) {
void 0 === i && (i = {});
var a = i
, s = a.pure
, u = void 0 === s || s
, p = a.areStatesEqual
, h = void 0 === p ? ma : p
, f = a.areOwnPropsEqual
, b = void 0 === f ? ra : f
, g = a.areStatePropsEqual
, m = void 0 === g ? ra : g
, v = a.areMergedPropsEqual
, y = void 0 === v ? ra : v
, x = nn(a, ba)
, O = ga(e, o, "mapStateToProps")
, j = ga(t, l, "mapDispatchToProps")
, k = ga(n, c, "mergeProps");
return r(d, Vt({
methodName: "connect",
getDisplayName: function(e) {
return "Connect(" + e + ")"
},
shouldHandleStateChanges: Boolean(e),
initMapStateToProps: O,
initMapDispatchToProps: j,
initMergeProps: k,
pure: u,
areStatesEqual: h,
areOwnPropsEqual: b,
areStatePropsEqual: m,
areMergedPropsEqual: y
}, x))
}
}();
function ya() {
return Object(l.useContext)(Bo)
}
function xa(e) {
void 0 === e && (e = Bo);
var t = e === Bo ? ya : function() {
return Object(l.useContext)(e)
}
;
return function() {
return t().store
}
}
var Oa = xa();
var ja = function(e) {
void 0 === e && (e = Bo);
var t = e === Bo ? Oa : xa(e);
return function() {
return t().dispatch
}
}()
, ka = function(e, t) {
return e === t
};
var wa, Ca = function(e) {
void 0 === e && (e = Bo);
var t = e === Bo ? ya : function() {
return Object(l.useContext)(e)
}
;
return function(e, n) {
void 0 === n && (n = ka);
var r = t()
, i = function(e, t, n, r) {
var i, o = Object(l.useReducer)((function(e) {
return e + 1
}
), 0)[1], a = Object(l.useMemo)((function() {
return Wo(n, r)
}
), [n, r]), s = Object(l.useRef)(), c = Object(l.useRef)(), u = Object(l.useRef)(), d = Object(l.useRef)(), p = n.getState();
try {
if (e !== c.current || p !== u.current || s.current) {
var h = e(p);
i = void 0 !== d.current && t(h, d.current) ? d.current : h
} else
i = d.current
} catch (e) {
throw s.current && (e.message += "\nThe error may be correlated with this previous error:\n" + s.current.stack + "\n\n"),
e
}
return qo((function() {
c.current = e,
u.current = p,
d.current = i,
s.current = void 0
}
)),
qo((function() {
function e() {
try {
var e = n.getState();
if (e === u.current)
return;
var r = c.current(e);
if (t(r, d.current))
return;
d.current = r,
u.current = e
} catch (e) {
s.current = e
}
o()
}
return a.onStateChange = e,
a.trySubscribe(),
e(),
function() {
return a.tryUnsubscribe()
}
}
), [n, a]),
i
}(e, n, r.store, r.subscription);
return Object(l.useDebugValue)(i),
i
}
}();
function _a(e) {
return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. "
}
wa = c.unstable_batchedUpdates,
Fo = wa;
var Ma = "function" == typeof Symbol && Symbol.observable || "@@observable"
, Sa = function() {
return Math.random().toString(36).substring(7).split("").join(".")
}
, Aa = {
INIT: "@@redux/INIT" + Sa(),
REPLACE: "@@redux/REPLACE" + Sa(),
PROBE_UNKNOWN_ACTION: function() {
return "@@redux/PROBE_UNKNOWN_ACTION" + Sa()
}
};
function Ta(e, t, n) {
var r;
if ("function" == typeof t && "function" == typeof n || "function" == typeof n && "function" == typeof arguments[3])
throw new Error(_a(0));
if ("function" == typeof t && void 0 === n && (n = t,
t = void 0),
void 0 !== n) {
if ("function" != typeof n)
throw new Error(_a(1));
return n(Ta)(e, t)
}
if ("function" != typeof e)
throw new Error(_a(2));
var i = e
, o = t
, a = []
, l = a
, s = !1;
function c() {
l === a && (l = a.slice())
}
function u() {
if (s)
throw new Error(_a(3));
return o
}
function d(e) {
if ("function" != typeof e)
throw new Error(_a(4));
if (s)
throw new Error(_a(5));
var t = !0;
return c(),
l.push(e),
function() {
if (t) {
if (s)
throw new Error(_a(6));
t = !1,
c();
var n = l.indexOf(e);
l.splice(n, 1),
a = null
}
}
}
function p(e) {
if (!function(e) {
if ("object" != typeof e || null === e)
return !1;
for (var t = e; null !== Object.getPrototypeOf(t); )
t = Object.getPrototypeOf(t);
return Object.getPrototypeOf(e) === t
}(e))
throw new Error(_a(7));
if (void 0 === e.type)
throw new Error(_a(8));
if (s)
throw new Error(_a(9));
try {
s = !0,
o = i(o, e)
} finally {
s = !1
}
for (var t = a = l, n = 0; n < t.length; n++)
(0,
t[n])();
return e
}
return p({
type: Aa.INIT
}),
(r = {
dispatch: p,
subscribe: d,
getState: u,
replaceReducer: function(e) {
if ("function" != typeof e)
throw new Error(_a(10));
i = e,
p({
type: Aa.REPLACE
})
}
})[Ma] = function() {
var e, t = d;
return (e = {
subscribe: function(e) {
if ("object" != typeof e || null === e)
throw new Error(_a(11));
function n() {
e.next && e.next(u())
}
return n(),
{
unsubscribe: t(n)
}
}
})[Ma] = function() {
return this
}
,
e
}
,
r
}
function Ea(e) {
for (var t = Object.keys(e), n = {}, r = 0; r < t.length; r++) {
var i = t[r];
"function" == typeof e[i] && (n[i] = e[i])
}
var o, a = Object.keys(n);
try {
!function(e) {
Object.keys(e).forEach((function(t) {
var n = e[t];
if (void 0 === n(void 0, {
type: Aa.INIT
}))
throw new Error(_a(12));
if (void 0 === n(void 0, {
type: Aa.PROBE_UNKNOWN_ACTION()
}))
throw new Error(_a(13))
}
))
}(n)
} catch (e) {
o = e
}
return function(e, t) {
if (void 0 === e && (e = {}),
o)
throw o;
for (var r = !1, i = {}, l = 0; l < a.length; l++) {
var s = a[l]
, c = n[s]
, u = e[s]
, d = c(u, t);
if (void 0 === d)
throw t && t.type,
new Error(_a(14));
i[s] = d,
r = r || d !== u
}
return (r = r || a.length !== Object.keys(e).length) ? i : e
}
}
function Ia(e, t) {
return function() {
return t(e.apply(this, arguments))
}
}
function Na(e, t) {
if ("function" == typeof e)
return Ia(e, t);
if ("object" != typeof e || null === e)
throw new Error(_a(16));
var n = {};
for (var r in e) {
var i = e[r];
"function" == typeof i && (n[r] = Ia(i, t))
}
return n
}
function za() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return 0 === t.length ? function(e) {
return e
}
: 1 === t.length ? t[0] : t.reduce((function(e, t) {
return function() {
return e(t.apply(void 0, arguments))
}
}
))
}
function Da() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
t[n] = arguments[n];
return function(e) {
return function() {
var n = e.apply(void 0, arguments)
, r = function() {
throw new Error(_a(15))
}
, i = {
getState: n.getState,
dispatch: function() {
return r.apply(void 0, arguments)
}
}
, o = t.map((function(e) {
return e(i)
}
));
return r = za.apply(void 0, o)(n.dispatch),
_t(_t({}, n), {}, {
dispatch: r
})
}
}
}
function La(e) {
for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
throw Error("[Immer] minified error nr: " + e + (n.length ? " " + n.map((function(e) {
return "'" + e + "'"
}
)).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf")
}
function Ra(e) {
return !!e && !!e[kl]
}
function Pa(e) {
return !!e && (function(e) {
if (!e || "object" != typeof e)
return !1;
var t = Object.getPrototypeOf(e);
if (null === t)
return !0;
var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
return n === Object || "function" == typeof n && Function.toString.call(n) === wl
}(e) || Array.isArray(e) || !!e[jl] || !!e.constructor[jl] || Ha(e) || Ua(e))
}
function Ba(e, t, n) {
void 0 === n && (n = !1),
0 === Fa(e) ? (n ? Object.keys : Cl)(e).forEach((function(r) {
n && "symbol" == typeof r || t(r, e[r], e)
}
)) : e.forEach((function(n, r) {
return t(r, n, e)
}
))
}
function Fa(e) {
var t = e[kl];
return t ? t.i > 3 ? t.i - 4 : t.i : Array.isArray(e) ? 1 : Ha(e) ? 2 : Ua(e) ? 3 : 0
}
function Va(e, t) {
return 2 === Fa(e) ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t)
}
function Wa(e, t, n) {
var r = Fa(e);
2 === r ? e.set(t, n) : 3 === r ? (e.delete(t),
e.add(n)) : e[t] = n
}
function qa(e, t) {
return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t
}
function Ha(e) {
return vl && e instanceof Map
}
function Ua(e) {
return yl && e instanceof Set
}
function Xa(e) {
return e.o || e.t
}
function Ga(e) {
if (Array.isArray(e))
return Array.prototype.slice.call(e);
var t = _l(e);
delete t[kl];
for (var n = Cl(t), r = 0; r < n.length; r++) {
var i = n[r]
, o = t[i];
!1 === o.writable && (o.writable = !0,
o.configurable = !0),
(o.get || o.set) && (t[i] = {
configurable: !0,
writable: !0,
enumerable: o.enumerable,
value: e[i]
})
}
return Object.create(Object.getPrototypeOf(e), t)
}
function Ka(e, t) {
return void 0 === t && (t = !1),
Qa(e) || Ra(e) || !Pa(e) || (Fa(e) > 1 && (e.set = e.add = e.clear = e.delete = Ya),
Object.freeze(e),
t && Ba(e, (function(e, t) {
return Ka(t, !0)
}
), !0)),
e
}
function Ya() {
La(2)
}
function Qa(e) {
return null == e || "object" != typeof e || Object.isFrozen(e)
}
function Ja(e) {
var t = Ml[e];
return t || La(18, e),
t
}
function Za() {
return gl
}
function $a(e, t) {
t && (Ja("Patches"),
e.u = [],
e.s = [],
e.v = t)
}
function el(e) {
tl(e),
e.p.forEach(rl),
e.p = null
}
function tl(e) {
e === gl && (gl = e.l)
}
function nl(e) {
return gl = {
p: [],
l: gl,
h: e,
m: !0,
_: 0
}
}
function rl(e) {
var t = e[kl];
0 === t.i || 1 === t.i ? t.j() : t.O = !0
}
function il(e, t) {
t._ = t.p.length;
var n = t.p[0]
, r = void 0 !== e && e !== n;
return t.h.g || Ja("ES5").S(t, e, r),
r ? (n[kl].P && (el(t),
La(4)),
Pa(e) && (e = ol(t, e),
t.l || ll(t, e)),
t.u && Ja("Patches").M(n[kl], e, t.u, t.s)) : e = ol(t, n, []),
el(t),
t.u && t.v(t.u, t.s),
e !== Ol ? e : void 0
}
function ol(e, t, n) {
if (Qa(t))
return t;
var r = t[kl];
if (!r)
return Ba(t, (function(i, o) {
return al(e, r, t, i, o, n)
}
), !0),
t;
if (r.A !== e)
return t;
if (!r.P)
return ll(e, r.t, !0),
r.t;
if (!r.I) {
r.I = !0,
r.A._--;
var i = 4 === r.i || 5 === r.i ? r.o = Ga(r.k) : r.o;
Ba(3 === r.i ? new Set(i) : i, (function(t, o) {
return al(e, r, i, t, o, n)
}
)),
ll(e, i, !1),
n && e.u && Ja("Patches").R(r, n, e.u, e.s)
}
return r.o
}
function al(e, t, n, r, i, o) {
if (Ra(i)) {
var a = ol(e, i, o && t && 3 !== t.i && !Va(t.D, r) ? o.concat(r) : void 0);
if (Wa(n, r, a),
!Ra(a))
return;
e.m = !1
}
if (Pa(i) && !Qa(i)) {
if (!e.h.F && e._ < 1)
return;
ol(e, i),
t && t.A.l || ll(e, i)
}
}
function ll(e, t, n) {
void 0 === n && (n = !1),
e.h.F && e.m && Ka(t, n)
}
function sl(e, t) {
var n = e[kl];
return (n ? Xa(n) : e)[t]
}
function cl(e, t) {
if (t in e)
for (var n = Object.getPrototypeOf(e); n; ) {
var r = Object.getOwnPropertyDescriptor(n, t);
if (r)
return r;
n = Object.getPrototypeOf(n)
}
}
function ul(e) {
e.P || (e.P = !0,
e.l && ul(e.l))
}
function dl(e) {
e.o || (e.o = Ga(e.t))
}
function pl(e, t, n) {
var r = Ha(t) ? Ja("MapSet").N(t, n) : Ua(t) ? Ja("MapSet").T(t, n) : e.g ? function(e, t) {
var n = Array.isArray(e)
, r = {
i: n ? 1 : 0,
A: t ? t.A : Za(),
P: !1,
I: !1,
D: {},
l: t,
t: e,
k: null,
o: null,
j: null,
C: !1
}
, i = r
, o = Sl;
n && (i = [r],
o = Al);
var a = Proxy.revocable(i, o)
, l = a.revoke
, s = a.proxy;
return r.k = s,
r.j = l,
s
}(t, n) : Ja("ES5").J(t, n);
return (n ? n.A : Za()).p.push(r),
r
}
function hl(e) {
return Ra(e) || La(22, e),
function e(t) {
if (!Pa(t))
return t;
var n, r = t[kl], i = Fa(t);
if (r) {
if (!r.P && (r.i < 4 || !Ja("ES5").K(r)))
return r.t;
r.I = !0,
n = fl(t, i),
r.I = !1
} else
n = fl(t, i);
return Ba(n, (function(t, i) {
r && function(e, t) {
return 2 === Fa(e) ? e.get(t) : e[t]
}(r.t, t) === i || Wa(n, t, e(i))
}
)),
3 === i ? new Set(n) : n
}(e)
}
function fl(e, t) {
switch (t) {
case 2:
return new Map(e);
case 3:
return Array.from(e)
}
return Ga(e)
}
var bl, gl, ml = "undefined" != typeof Symbol && "symbol" == typeof Symbol("x"), vl = "undefined" != typeof Map, yl = "undefined" != typeof Set, xl = "undefined" != typeof Proxy && void 0 !== Proxy.revocable && "undefined" != typeof Reflect, Ol = ml ? Symbol.for("immer-nothing") : ((bl = {})["immer-nothing"] = !0,
bl), jl = ml ? Symbol.for("immer-draftable") : "__$immer_draftable", kl = ml ? Symbol.for("immer-state") : "__$immer_state", wl = ("undefined" != typeof Symbol && Symbol.iterator,
"" + Object.prototype.constructor), Cl = "undefined" != typeof Reflect && Reflect.ownKeys ? Reflect.ownKeys : void 0 !== Object.getOwnPropertySymbols ? function(e) {
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))
}
: Object.getOwnPropertyNames, _l = Object.getOwnPropertyDescriptors || function(e) {
var t = {};
return Cl(e).forEach((function(n) {
t[n] = Object.getOwnPropertyDescriptor(e, n)
}
)),
t
}
, Ml = {}, Sl = {
get: function(e, t) {
if (t === kl)
return e;
var n = Xa(e);
if (!Va(n, t))
return function(e, t, n) {
var r, i = cl(t, n);
return i ? "value"in i ? i.value : null === (r = i.get) || void 0 === r ? void 0 : r.call(e.k) : void 0
}(e, n, t);
var r = n[t];
return e.I || !Pa(r) ? r : r === sl(e.t, t) ? (dl(e),
e.o[t] = pl(e.A.h, r, e)) : r
},
has: function(e, t) {
return t in Xa(e)
},
ownKeys: function(e) {
return Reflect.ownKeys(Xa(e))
},
set: function(e, t, n) {
var r = cl(Xa(e), t);
if (null == r ? void 0 : r.set)
return r.set.call(e.k, n),
!0;
if (!e.P) {
var i = sl(Xa(e), t)
, o = null == i ? void 0 : i[kl];
if (o && o.t === n)
return e.o[t] = n,
e.D[t] = !1,
!0;
if (qa(n, i) && (void 0 !== n || Va(e.t, t)))
return !0;
dl(e),
ul(e)
}
return e.o[t] === n && "number" != typeof n && (void 0 !== n || t in e.o) || (e.o[t] = n,
e.D[t] = !0,
!0)
},
deleteProperty: function(e, t) {
return void 0 !== sl(e.t, t) || t in e.t ? (e.D[t] = !1,
dl(e),
ul(e)) : delete e.D[t],
e.o && delete e.o[t],
!0
},
getOwnPropertyDescriptor: function(e, t) {
var n = Xa(e)
, r = Reflect.getOwnPropertyDescriptor(n, t);
return r ? {
writable: !0,
configurable: 1 !== e.i || "length" !== t,
enumerable: r.enumerable,
value: n[t]
} : r
},
defineProperty: function() {
La(11)
},
getPrototypeOf: function(e) {
return Object.getPrototypeOf(e.t)
},
setPrototypeOf: function() {
La(12)
}
}, Al = {};
Ba(Sl, (function(e, t) {
Al[e] = function() {
return arguments[0] = arguments[0][0],
t.apply(this, arguments)
}
}
)),
Al.deleteProperty = function(e, t) {
return Sl.deleteProperty.call(this, e[0], t)
}
,
Al.set = function(e, t, n) {
return Sl.set.call(this, e[0], t, n, e[0])
}
;
var Tl = function() {
function e(e) {
var t = this;
this.g = xl,
this.F = !0,
this.produce = function(e, n, r) {
if ("function" == typeof e && "function" != typeof n) {
var i = n;
n = e;
var o = t;
return function(e) {
var t = this;
void 0 === e && (e = i);
for (var r = arguments.length, a = Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
a[l - 1] = arguments[l];
return o.produce(e, (function(e) {
var r;
return (r = n).call.apply(r, [t, e].concat(a))
}
))
}
}
var a;
if ("function" != typeof n && La(6),
void 0 !== r && "function" != typeof r && La(7),
Pa(e)) {
var l = nl(t)
, s = pl(t, e, void 0)
, c = !0;
try {
a = n(s),
c = !1
} finally {
c ? el(l) : tl(l)
}
return "undefined" != typeof Promise && a instanceof Promise ? a.then((function(e) {
return $a(l, r),
il(e, l)
}
), (function(e) {
throw el(l),
e
}
)) : ($a(l, r),
il(a, l))
}
if (!e || "object" != typeof e) {
if ((a = n(e)) === Ol)
return;
return void 0 === a && (a = e),
t.F && Ka(a, !0),
a
}
La(21, e)
}
,
this.produceWithPatches = function(e, n) {
return "function" == typeof e ? function(n) {
for (var r = arguments.length, i = Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
i[o - 1] = arguments[o];
return t.produceWithPatches(n, (function(t) {
return e.apply(void 0, [t].concat(i))
}
))
}
: [t.produce(e, n, (function(e, t) {
r = e,
i = t
}
)), r, i];
var r, i
}
,
"boolean" == typeof (null == e ? void 0 : e.useProxies) && this.setUseProxies(e.useProxies),
"boolean" == typeof (null == e ? void 0 : e.autoFreeze) && this.setAutoFreeze(e.autoFreeze)
}
var t = e.prototype;
return t.createDraft = function(e) {
Pa(e) || La(8),
Ra(e) && (e = hl(e));
var t = nl(this)
, n = pl(this, e, void 0);
return n[kl].C = !0,
tl(t),
n
}
,
t.finishDraft = function(e, t) {
var n = (e && e[kl]).A;
return $a(n, t),
il(void 0, n)
}
,
t.setAutoFreeze = function(e) {
this.F = e
}
,
t.setUseProxies = function(e) {
e && !xl && La(20),
this.g = e
}
,
t.applyPatches = function(e, t) {
var n;
for (n = t.length - 1; n >= 0; n--) {
var r = t[n];
if (0 === r.path.length && "replace" === r.op) {
e = r.value;
break
}
}
n > -1 && (t = t.slice(n + 1));
var i = Ja("Patches").$;
return Ra(e) ? i(e, t) : this.produce(e, (function(e) {
return i(e, t)
}
))
}
,
e
}()
, El = new Tl
, Il = El.produce
, Nl = (El.produceWithPatches.bind(El),
El.setAutoFreeze.bind(El),
El.setUseProxies.bind(El),
El.applyPatches.bind(El),
El.createDraft.bind(El),
El.finishDraft.bind(El),
Il)
, zl = "NOT_FOUND"
, Dl = function(e, t) {
return e === t
};
var Ll = function(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r];
return function() {
for (var t = arguments.length, r = new Array(t), i = 0; i < t; i++)
r[i] = arguments[i];
var o, a = 0, l = {
memoizeOptions: void 0
}, s = r.pop();
if ("object" == typeof s && (l = s,
s = r.pop()),
"function" != typeof s)
throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof s + "]");
var c = l.memoizeOptions
, u = void 0 === c ? n : c
, d = Array.isArray(u) ? u : [u]
, p = function(e) {
var t = Array.isArray(e[0]) ? e[0] : e;
if (!t.every((function(e) {
return "function" == typeof e
}
))) {
var n = t.map((function(e) {
return "function" == typeof e ? "function " + (e.name || "unnamed") + "()" : typeof e
}
)).join(", ");
throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + n + "]")
}
return t
}(r)
, h = e.apply(void 0, [function() {
return a++,
s.apply(null, arguments)
}
].concat(d))
, f = e((function() {
for (var e = [], t = p.length, n = 0; n < t; n++)
e.push(p[n].apply(null, arguments));
return o = h.apply(null, e)
}
));
return Object.assign(f, {
resultFunc: s,
memoizedResultFunc: h,
dependencies: p,
lastResult: function() {
return o
},
recomputations: function() {
return a
},
resetRecomputations: function() {
return a = 0
}
}),
f
}
}((function(e, t) {
var n = "object" == typeof t ? t : {
equalityCheck: t
}
, r = n.equalityCheck
, i = void 0 === r ? Dl : r
, o = n.maxSize
, a = void 0 === o ? 1 : o
, l = n.resultEqualityCheck
, s = function(e) {
return function(t, n) {
if (null === t || null === n || t.length !== n.length)
return !1;
for (var r = t.length, i = 0; i < r; i++)
if (!e(t[i], n[i]))
return !1;
return !0
}
}(i)
, c = 1 === a ? function(e) {
var t;
return {
get: function(n) {
return t && e(t.key, n) ? t.value : zl
},
put: function(e, n) {
t = {
key: e,
value: n
}
},
getEntries: function() {
return t ? [t] : []
},
clear: function() {
t = void 0
}
}
}(s) : function(e, t) {
var n = [];
function r(e) {
var r = n.findIndex((function(n) {
return t(e, n.key)
}
));
if (r > -1) {
var i = n[r];
return r > 0 && (n.splice(r, 1),
n.unshift(i)),
i.value
}
return zl
}
return {
get: r,
put: function(t, i) {
r(t) === zl && (n.unshift({
key: t,
value: i
}),
n.length > e && n.pop())
},
getEntries: function() {
return n
},
clear: function() {
n = []
}
}
}(a, s);
function u() {
var t = c.get(arguments);
if (t === zl) {
if (t = e.apply(null, arguments),
l) {
var n = c.getEntries().find((function(e) {
return l(e.value, t)
}
));
n && (t = n.value)
}
c.put(arguments, t)
}
return t
}
return u.clearCache = function() {
return c.clear()
}
,
u
}
));
function Rl(e) {
return function(t) {
var n = t.dispatch
, r = t.getState;
return function(t) {
return function(i) {
return "function" == typeof i ? i(n, r, e) : t(i)
}
}
}
}
var Pl = Rl();
Pl.withExtraArgument = Rl;
var Bl = Pl
, Fl = function() {
var e = function(t, n) {
return e = Object.setPrototypeOf || {
__proto__: []
}instanceof Array && function(e, t) {
e.__proto__ = t
}
|| function(e, t) {
for (var n in t)
Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
}
,
e(t, n)
};
return function(t, n) {
if ("function" != typeof n && null !== n)
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
function r() {
this.constructor = t
}
e(t, n),
t.prototype = null === n ? Object.create(n) : (r.prototype = n.prototype,
new r)
}
}()
, Vl = function(e, t) {
for (var n = 0, r = t.length, i = e.length; n < r; n++,
i++)
e[i] = t[n];
return e
}
, Wl = Object.defineProperty
, ql = Object.defineProperties
, Hl = Object.getOwnPropertyDescriptors
, Ul = Object.getOwnPropertySymbols
, Xl = Object.prototype.hasOwnProperty
, Gl = Object.prototype.propertyIsEnumerable
, Kl = function(e, t, n) {
return t in e ? Wl(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: n
}) : e[t] = n
}
, Yl = function(e, t) {
for (var n in t || (t = {}))
Xl.call(t, n) && Kl(e, n, t[n]);
if (Ul)
for (var r = 0, i = Ul(t); r < i.length; r++)
n = i[r],
Gl.call(t, n) && Kl(e, n, t[n]);
return e
}
, Ql = function(e, t) {
return ql(e, Hl(t))
}
, Jl = "undefined" != typeof window && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
if (0 !== arguments.length)
return "object" == typeof arguments[0] ? za : za.apply(null, arguments)
}
;
"undefined" != typeof window && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
var Zl = function(e) {
function t() {
for (var n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
var i = e.apply(this, n) || this;
return Object.setPrototypeOf(i, t.prototype),
i
}
return Fl(t, e),
Object.defineProperty(t, Symbol.species, {
get: function() {
return t
},
enumerable: !1,
configurable: !0
}),
t.prototype.concat = function() {
for (var t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return e.prototype.concat.apply(this, t)
}
,
t.prototype.prepend = function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
return 1 === e.length && Array.isArray(e[0]) ? new (t.bind.apply(t, Vl([void 0], e[0].concat(this)))) : new (t.bind.apply(t, Vl([void 0], e.concat(this))))
}
,
t
}(Array);
function $l(e, t) {
function n() {
for (var n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
if (t) {
var i = t.apply(void 0, n);
if (!i)
throw new Error("prepareAction did not return an object");
return Yl(Yl({
type: e,
payload: i.payload
}, "meta"in i && {
meta: i.meta
}), "error"in i && {
error: i.error
})
}
return {
type: e,
payload: n[0]
}
}
return n.toString = function() {
return "" + e
}
,
n.type = e,
n.match = function(t) {
return t.type === e
}
,
n
}
function es(e) {
var t, n = {}, r = [], i = {
addCase: function(e, t) {
var r = "string" == typeof e ? e : e.type;
if (r in n)
throw new Error("addCase cannot be called with two reducers for the same action type");
return n[r] = t,
i
},
addMatcher: function(e, t) {
return r.push({
matcher: e,
reducer: t
}),
i
},
addDefaultCase: function(e) {
return t = e,
i
}
};
return e(i),
[n, r, t]
}
function ts(e) {
var t = e.name;
if (!t)
throw new Error("`name` is a required option for createSlice");
var n, r = "function" == typeof e.initialState ? e.initialState : Nl(e.initialState, (function() {}
)), i = e.reducers || {}, o = Object.keys(i), a = {}, l = {}, s = {};
function c() {
var t = "function" == typeof e.extraReducers ? es(e.extraReducers) : [e.extraReducers]
, n = t[0]
, i = void 0 === n ? {} : n
, o = t[1]
, a = void 0 === o ? [] : o
, s = t[2]
, c = void 0 === s ? void 0 : s
, u = Yl(Yl({}, i), l);
return function(e, t, n, r) {
void 0 === n && (n = []);
var i, o = "function" == typeof t ? es(t) : [t, n, r], a = o[0], l = o[1], s = o[2];
if ("function" == typeof e)
i = function() {
return Nl(e(), (function() {}
))
}
;
else {
var c = Nl(e, (function() {}
));
i = function() {
return c
}
}
function u(e, t) {
void 0 === e && (e = i());
var n = Vl([a[t.type]], l.filter((function(e) {
return (0,
e.matcher)(t)
}
)).map((function(e) {
return e.reducer
}
)));
return 0 === n.filter((function(e) {
return !!e
}
)).length && (n = [s]),
n.reduce((function(e, n) {
if (n) {
var r;
if (Ra(e))
return void 0 === (r = n(e, t)) ? e : r;
if (Pa(e))
return Nl(e, (function(e) {
return n(e, t)
}
));
if (void 0 === (r = n(e, t))) {
if (null === e)
return e;
throw Error("A case reducer on a non-draftable value must not return undefined")
}
return r
}
return e
}
), e)
}
return u.getInitialState = i,
u
}(r, u, a, c)
}
return o.forEach((function(e) {
var n, r, o = i[e], c = function(e, t) {
return e + "/" + t
}(t, e);
"reducer"in o ? (n = o.reducer,
r = o.prepare) : n = o,
a[e] = n,
l[c] = n,
s[e] = r ? $l(c, r) : $l(c)
}
)),
{
name: t,
reducer: function(e, t) {
return n || (n = c()),
n(e, t)
},
actions: s,
caseReducers: a,
getInitialState: function() {
return n || (n = c()),
n.getInitialState()
}
}
}
var ns = ["name", "message", "stack", "code"]
, rs = function(e, t) {
this.payload = e,
this.meta = t
}
, is = function(e, t) {
this.payload = e,
this.meta = t
}
, os = function(e) {
if ("object" == typeof e && null !== e) {
for (var t = {}, n = 0, r = ns; n < r.length; n++) {
var i = r[n];
"string" == typeof e[i] && (t[i] = e[i])
}
return t
}
return {
message: String(e)
}
};
function as(e, t, n) {
var r = $l(e + "/fulfilled", (function(e, t, n, r) {
return {
payload: e,
meta: Ql(Yl({}, r || {}), {
arg: n,
requestId: t,
requestStatus: "fulfilled"
})
}
}
))
, i = $l(e + "/pending", (function(e, t, n) {
return {
payload: void 0,
meta: Ql(Yl({}, n || {}), {
arg: t,
requestId: e,
requestStatus: "pending"
})
}
}
))
, o = $l(e + "/rejected", (function(e, t, r, i, o) {
return {
payload: i,
error: (n && n.serializeError || os)(e || "Rejected"),
meta: Ql(Yl({}, o || {}), {
arg: r,
requestId: t,
rejectedWithValue: !!i,
requestStatus: "rejected",
aborted: "AbortError" === (null == e ? void 0 : e.name),
condition: "ConditionError" === (null == e ? void 0 : e.name)
})
}
}
))
, a = "undefined" != typeof AbortController ? AbortController : function() {
function e() {
this.signal = {
aborted: !1,
addEventListener: function() {},
dispatchEvent: function() {
return !1
},
onabort: function() {},
removeEventListener: function() {}
}
}
return e.prototype.abort = function() {}
,
e
}();
return Object.assign((function(e) {
return function(l, s, c) {
var u, d = (null == n ? void 0 : n.idGenerator) ? n.idGenerator(e) : function(e) {
void 0 === e && (e = 21);
for (var t = "", n = e; n--; )
t += "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64 * Math.random() | 0];
return t
}(), p = new a, h = new Promise((function(e, t) {
return p.signal.addEventListener("abort", (function() {
return t({
name: "AbortError",
message: u || "Aborted"
})
}
))
}
)), f = !1, b = function() {
return a = this,
null,
u = function() {
var a, u, b, g, m;
return function(e, t) {
var n, r, i, o, a = {
label: 0,
sent: function() {
if (1 & i[0])
throw i[1];
return i[1]
},
trys: [],
ops: []
};
return o = {
next: l(0),
throw: l(1),
return: l(2)
},
"function" == typeof Symbol && (o[Symbol.iterator] = function() {
return this
}
),
o;
function l(o) {
return function(l) {
return function(o) {
if (n)
throw new TypeError("Generator is already executing.");
for (; a; )
try {
if (n = 1,
r && (i = 2 & o[0] ? r.return : o[0] ? r.throw || ((i = r.return) && i.call(r),
0) : r.next) && !(i = i.call(r, o[1])).done)
return i;
switch (r = 0,
i && (o = [2 & o[0], i.value]),
o[0]) {
case 0:
case 1:
i = o;
break;
case 4:
return a.label++,
{
value: o[1],
done: !1
};
case 5:
a.label++,
r = o[1],
o = [0];
continue;
case 7:
o = a.ops.pop(),
a.trys.pop();
continue;
default:
if (!(i = (i = a.trys).length > 0 && i[i.length - 1]) && (6 === o[0] || 2 === o[0])) {
a = 0;
continue
}
if (3 === o[0] && (!i || o[1] > i[0] && o[1] < i[3])) {
a.label = o[1];
break
}
if (6 === o[0] && a.label < i[1]) {
a.label = i[1],
i = o;
break
}
if (i && a.label < i[2]) {
a.label = i[2],
a.ops.push(o);
break
}
i[2] && a.ops.pop(),
a.trys.pop();
continue
}
o = t.call(e, a)
} catch (e) {
o = [6, e],
r = 0
} finally {
n = i = 0
}
if (5 & o[0])
throw o[1];
return {
value: o[0] ? o[1] : void 0,
done: !0
}
}([o, l])
}
}
}(this, (function(v) {
switch (v.label) {
case 0:
return v.trys.push([0, 4, , 5]),
null === (y = g = null == (a = null == n ? void 0 : n.condition) ? void 0 : a.call(n, e, {
getState: s,
extra: c
})) || "object" != typeof y || "function" != typeof y.then ? [3, 2] : [4, g];
case 1:
g = v.sent(),
v.label = 2;
case 2:
if (!1 === g)
throw {
name: "ConditionError",
message: "Aborted due to condition callback returning false."
};
return f = !0,
l(i(d, e, null == (u = null == n ? void 0 : n.getPendingMeta) ? void 0 : u.call(n, {
requestId: d,
arg: e
}, {
getState: s,
extra: c
}))),
[4, Promise.race([h, Promise.resolve(t(e, {
dispatch: l,
getState: s,
extra: c,
requestId: d,
signal: p.signal,
rejectWithValue: function(e, t) {
return new rs(e,t)
},
fulfillWithValue: function(e, t) {
return new is(e,t)
}
})).then((function(t) {
if (t instanceof rs)
throw t;
return t instanceof is ? r(t.payload, d, e, t.meta) : r(t, d, e)
}
))])];
case 3:
return b = v.sent(),
[3, 5];
case 4:
return m = v.sent(),
b = m instanceof rs ? o(null, d, e, m.payload, m.meta) : o(m, d, e),
[3, 5];
case 5:
return n && !n.dispatchConditionRejection && o.match(b) && b.meta.condition || l(b),
[2, b]
}
var y
}
))
}
,
new Promise((function(e, t) {
var n = function(e) {
try {
i(u.next(e))
} catch (e) {
t(e)
}
}
, r = function(e) {
try {
i(u.throw(e))
} catch (e) {
t(e)
}
}
, i = function(t) {
return t.done ? e(t.value) : Promise.resolve(t.value).then(n, r)
};
i((u = u.apply(a, null)).next())
}
));
var a, u
}();
return Object.assign(b, {
abort: function(e) {
f && (u = e,
p.abort())
},
requestId: d,
arg: e,
unwrap: function() {
return b.then(ls)
}
})
}
}
), {
pending: i,
rejected: o,
fulfilled: r,
typePrefix: e
})
}
function ls(e) {
if (e.meta && e.meta.rejectedWithValue)
throw e.payload;
if (e.error)
throw e.error;
return e.payload
}
!function() {
function e(e, t) {
var n = i[e];
return n ? n.enumerable = t : i[e] = n = {
configurable: !0,
enumerable: t,
get: function() {
var t = this[kl];
return Sl.get(t, e)
},
set: function(t) {
var n = this[kl];
Sl.set(n, e, t)
}
},
n
}
function t(e) {
for (var t = e.length - 1; t >= 0; t--) {
var i = e[t][kl];
if (!i.P)
switch (i.i) {
case 5:
r(i) && ul(i);
break;
case 4:
n(i) && ul(i)
}
}
}
function n(e) {
for (var t = e.t, n = e.k, r = Cl(n), i = r.length - 1; i >= 0; i--) {
var o = r[i];
if (o !== kl) {
var a = t[o];
if (void 0 === a && !Va(t, o))
return !0;
var l = n[o]
, s = l && l[kl];
if (s ? s.t !== a : !qa(l, a))
return !0
}
}
var c = !!t[kl];
return r.length !== Cl(t).length + (c ? 0 : 1)
}
function r(e) {
var t = e.k;
if (t.length !== e.t.length)
return !0;
var n = Object.getOwnPropertyDescriptor(t, t.length - 1);
return !(!n || n.get)
}
var i = {};
!function(e, t) {
Ml[e] || (Ml[e] = t)
}("ES5", {
J: function(t, n) {
var r = Array.isArray(t)
, i = function(t, n) {
if (t) {
for (var r = Array(n.length), i = 0; i < n.length; i++)
Object.defineProperty(r, "" + i, e(i, !0));
return r
}
var o = _l(n);
delete o[kl];
for (var a = Cl(o), l = 0; l < a.length; l++) {
var s = a[l];
o[s] = e(s, t || !!o[s].enumerable)
}
return Object.create(Object.getPrototypeOf(n), o)
}(r, t)
, o = {
i: r ? 5 : 4,
A: n ? n.A : Za(),
P: !1,
I: !1,
D: {},
l: n,
t: t,
k: i,
o: null,
O: !1,
C: !1
};
return Object.defineProperty(i, kl, {
value: o,
writable: !0
}),
i
},
S: function(e, n, i) {
i ? Ra(n) && n[kl].A === e && t(e.p) : (e.u && function e(t) {
if (t && "object" == typeof t) {
var n = t[kl];
if (n) {
var i = n.t
, o = n.k
, a = n.D
, l = n.i;
if (4 === l)
Ba(o, (function(t) {
t !== kl && (void 0 !== i[t] || Va(i, t) ? a[t] || e(o[t]) : (a[t] = !0,
ul(n)))
}
)),
Ba(i, (function(e) {
void 0 !== o[e] || Va(o, e) || (a[e] = !1,
ul(n))
}
));
else if (5 === l) {
if (r(n) && (ul(n),
a.length = !0),
o.length < i.length)
for (var s = o.length; s < i.length; s++)
a[s] = !1;
else
for (var c = i.length; c < o.length; c++)
a[c] = !0;
for (var u = Math.min(o.length, i.length), d = 0; d < u; d++)
void 0 === a[d] && e(o[d])
}
}
}
}(e.p[0]),
t(e.p))
},
K: function(e) {
return 4 === e.i ? n(e) : r(e)
}
})
}();
var ss = n(12)
, cs = n(66)
, us = n.n(cs)
, ds = n(22)
, ps = n.n(ds)
, hs = n(57)
, fs = n.n(hs)
, bs = (n(172),
n(79))
, gs = n.n(bs)
, ms = n(286)
, vs = n.n(ms)
, ys = n(287)
, xs = n.n(ys)
, Os = n(31)
, js = n.n(Os)
, ks = [32, 64, 96]
, ws = [[["/", "#", "9", " ", "8", "4", "<", "!", ".", "*", "?", "3", "%", ">", "$", "5", "+", "&", ";", '"', ":", "6", "7", "-", "'", ")", "(", "2", ",", "=", "0", "1"], [" ", "#", "4", '"', "!", "2", ")", ";", "/", "&", "0", "<", "'", "3", "7", "6", ",", "=", "(", "-", "*", "?", "%", "9", "$", "+", ":", "1", "8", "5", ".", ">"], [":", "9", "#", "%", "0", "+", "1", "5", "!", "8", ",", "*", "-", ";", "(", ")", "7", "$", "/", "<", "'", ".", "?", "6", "3", '"', "2", " ", "&", ">", "4", "="], [">", "7", "8", ")", ":", "6", "3", "&", "4", ",", "/", '"', "$", "'", "%", "-", "?", " ", ";", "+", "9", ".", "5", "!", "1", "2", "#", "=", "<", "*", "0", "("], [".", "3", "=", "-", ")", "%", "#", "6", ",", "(", "0", "4", "!", "8", "'", "7", "*", "1", " ", "$", "9", "&", '"', ":", ";", "/", ">", "2", "5", "<", "?", "+"]], [["S", "U", "Y", "J", "E", "G", "H", "X", "I", "A", "O", "[", "\\", "C", "L", "@", "D", "]", "R", "K", "M", "P", "V", "Z", "F", "N", "W", "Q", "T", "_", "B", "^"], ["N", "O", "A", "E", "G", "H", "Z", "B", "J", "D", "U", "K", "\\", "[", "C", "T", "X", "I", "Y", "F", "S", "V", "_", "@", "Q", "P", "L", "]", "M", "^", "W", "R"], ["M", "R", "I", "D", "H", "^", "P", "F", "S", "V", "A", "N", "[", "_", "T", "Z", "B", "L", "J", "]", "\\", "O", "W", "C", "K", "X", "@", "Q", "Y", "E", "U", "G"], ["\\", "I", "O", "B", "V", "U", "Z", "K", "C", "Q", "[", "L", "M", "A", "^", "X", "Y", "D", "T", "N", "E", "G", "P", "@", "F", "W", "]", "H", "R", "S", "J", "_"], ["A", "S", "[", "H", "G", "N", "W", "D", "\\", "U", "C", "I", "F", "P", "O", "K", "M", "T", "^", "J", "V", "Z", "X", "]", "B", "R", "Q", "@", "_", "L", "Y", "E"]], [["f", "", "k", "a", "b", "p", "v", "m", "q", "n", "d", "h", "t", "j", "`", "u", "w", "{", "~", "r", "i", "g", "z", "c", "o", "}", "l", "|", "e", "x", "s", "y"], ["z", "m", "a", "f", "y", "|", "i", "{", "", "u", "c", "b", "w", "t", "l", "k", "p", "j", "o", "q", "d", "x", "s", "`", "r", "h", "n", "~", "e", "v", "}", "g"], ["n", "g", "r", "y", "~", "a", "i", "u", "j", "{", "e", "k", "d", "c", "p", "h", "`", "", "w", "v", "}", "s", "|", "x", "o", "m", "t", "q", "b", "l", "f", "z"], ["o", "i", "", "j", "q", "s", "w", "v", "t", "r", "e", "k", "y", "d", "f", "x", "u", "z", "c", "~", "}", "`", "p", "n", "a", "|", "m", "l", "b", "h", "g", "{"], ["y", "v", "w", "t", "a", "l", "h", "x", "r", "s", "}", "~", "e", "g", "b", "m", "j", "o", "q", "p", "k", "|", "i", "`", "c", "f", "d", "n", "", "{", "u", "z"]]]
, Cs = function(e) {
return Array.from(Array(32)).map((function(t, n) {
return n + e
}
)).map((function(e) {
return String.fromCharCode(e)
}
))
}
, _s = function(e) {
for (var t = function() {
var e = Cs(ks[0])
, t = Cs(ks[1])
, n = Cs(ks[2]);
return fs()(e, t, n)
}(), n = js()(e), r = Dt()(n, ""), i = gs()(r, 0, 3), o = gs()(r, 3, 4), a = gs()(r, 4, r.length), l = function(e) {
for (var t = [], n = 0; n < 3; n++)
t = fs()(t, ws[n][e[n]]);
return t
}(i), s = function(e) {
return 1 === e || "1" === e
}(o[0]) ? xs()(a) : a, c = "", u = 0; u < a.length; u++)
c += l[vs()(t, s[u])];
return c
}
, Ms = _s("1121uz`jyj}j(")
, Ss = _s("3140*xq{cdxc")
, As = _s("3400*lxxz~")
, Ts = "/features"
, Es = "/integrations"
, Is = _s("3030*xwx{lhar")
, Ns = _s("1410(px|3m|apnbm|v")
, zs = _s("3331ejhx{vzjh*")
, Ds = _s("22202jlfzxb")
, Ls = _s("0131jewjra{ ")
, Rs = _s("41019")
, Ps = (_s("1141`yvhla(;edhc{lx3i~(<<-%<3hlzev~n3ssd(;**=:ciqfedxqe((:sccf"),
_s("4221c~fbjs9zj` u`xfzm`g~lgx}m --!;-#bjl}fg|#nne#1}ebz`jm#ug997unzzo"))
, Bs = [_s("2310fvMimy|zmfjbm|t")]
, Fs = window.app_builder
, Vs = Fs.api_url
, Ws = Fs.api_nonce
, qs = (window.token,
ps.a.create({
baseURL: Vs
}));
qs.defaults.timeout = 6e4,
qs.interceptors.request.use((function(e) {
return e.headers = {
Accept: "application/json",
"Content-Type": "application/json",
"X-WP-Nonce": Ws
},
e
}
), (function(e) {
return Promise.reject(e)
}
)),
qs.interceptors.response.use((function(e) {
var t, n = null !== (t = e.config.url) && void 0 !== t ? t : "", r = new URL("".concat(e.config.baseURL).concat(e.config.url)), i = n.replace(r.search, "");
return "wp/v2/app-builder-upgraders" !== i && "wp/v2/app-builder-upgraders/" !== i || "get" !== e.config.method ? e.data : e
}
), (function(e) {
return Promise.reject(e)
}
));
var Hs, Us = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
return ps()({
method: "post",
url: Ps,
data: {
license: e
}
}).then((function(e) {
return e.data
}
))
}, Xs = qs, Gs = n(46), Ks = n.n(Gs), Ys = _s("3331*w`ec/vf*`a5vxj}rvvx5rf**$evhh}"), Qs = _s("2110ymmpv 22bppjy|bp5fr2lp,qvrz2bt,knrjov2}&2m|apnbm|v"), Js = _s("3421nn@zxou`jjbmu*zj`5u`xfzm`g~lgx}m5|e}`b/e}}fbfm/8}ebz`jm/ug**$unzzo"), Zs = _s("3121xf5nejomnne5e}}fbfm**$unzzo"), $s = ["settings_theme", "settings_general", "settings_tabs", "settings_sidebar", "screens_category", "screens_onBoarding", "screens_contact", "screens_profile", "screens_product", "screens_products", "screens_login", "screens_register", "screens_postList", "screens_postDetail", "screens_postCategory", "screens_postWishlist", "screens_vendorList", "screens_vendorDetail", "screens_productQuickView", "screens_brands", "screens_cart"], ec = {
transparent: {
r: 0,
g: 0,
b: 0,
a: 0
},
black: {
r: 0,
g: 0,
b: 0,
a: 1
},
white: {
r: 255,
g: 255,
b: 255,
a: 1
},
blue: {
r: 6,
g: 134,
b: 248,
a: 1
},
primaryColor: {
r: 6,
g: 134,
b: 248,
a: 1
},
pressColor: {
r: 32,
g: 100,
b: 217,
a: 1
},
primaryText: {
r: 0,
g: 0,
b: 1,
a: 1
},
secondaryText: {
r: 100,
g: 124,
b: 156,
a: 1
},
tertiaryText: {
r: 159,
g: 173,
b: 192,
a: 1
},
redColor: {
r: 240,
g: 31,
b: 14,
a: 1
},
yellowColor: {
r: 255,
g: 162,
b: 0,
a: 1
},
greenColor: {
r: 33,
g: 186,
b: 69,
a: 1
},
grayColor: {
r: 244,
g: 244,
b: 244,
a: 1
},
borderLightMode: {
r: 222,
g: 226,
b: 230,
a: 1
},
primaryDarkMode: {
r: 41,
g: 41,
b: 41,
a: 1
},
secondaryDarkMode: {
r: 49,
g: 49,
b: 49,
a: 1
},
borderDarkMode: {
r: 84,
g: 84,
b: 88,
a: .5
},
primaryTextDarkMode: {
r: 142,
g: 142,
b: 147,
a: 1
},
secondaryTextDarkMode: {
r: 204,
g: 204,
b: 204,
a: 1
}
}, tc = {
defaultPagePadding: {
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 120,
paddingTop: 20
}
}, nc = function(e) {
return Xs.get("wp/v2/app-builder-templates?".concat(Ks.a.stringify(e, {
arrayFormat: "comma"
})))
}, rc = function(e) {
return ps.a.get("".concat(Qs, "?").concat(Ks.a.stringify(e, {
arrayFormat: "comma"
}))).then((function(e) {
return e.data
}
))
}, ic = function(e) {
return Xs.post("wp/v2/app-builder-templates?app-builder-decode=true", e)
}, oc = function(e) {
return Xs.post("wp/v2/app-builder-presets?app-builder-decode=true", e)
}, ac = function(e, t) {
return Xs.put("wp/v2/app-builder-templates/".concat(e, "?app-builder-decode=true"), t)
}, lc = function(e) {
return Xs.delete("wp/v2/app-builder-templates/".concat(e, "?app-builder-decode=true"))
}, sc = function(e) {
return Xs.post("app-builder/v1/active-template?app-builder-decode=true", {
template_id: e
})
}, cc = function(e, t) {
var n = "object" == typeof e ? e : {};
return n["app-builder-decode"] = !0,
Xs.get("wp/v2/posts?".concat(Ks.a.stringify(n, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, uc = function(e, t, n) {
var r = "object" == typeof t ? t : {};
return r["app-builder-decode"] = !0,
Xs.get("wp/v2/".concat(e, "?").concat(Ks.a.stringify(r, {
arrayFormat: "comma"
})), {
cancelToken: n
})
}, dc = function(e, t) {
var n = "object" == typeof e ? e : {};
return n["app-builder-decode"] = !0,
Xs.get("wp/v2/comments?".concat(Ks.a.stringify(n, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, pc = function(e, t, n) {
var r = "object" == typeof t ? t : {};
return r["app-builder-decode"] = !0,
Xs.get("wp/v2/".concat(e, "?").concat(Ks.a.stringify(r, {
arrayFormat: "comma"
})), {
cancelToken: n
})
}, hc = function(e, t) {
var n = "object" == typeof e ? e : {};
return n["app-builder-decode"] = !0,
Xs.get("wp/v2/tags?".concat(Ks.a.stringify(n, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, fc = function(e, t) {
var n = "object" == typeof e ? e : {};
return n["app-builder-decode"] = !0,
Xs.get("wp/v2/users?".concat(Ks.a.stringify(n, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, bc = function(e, t) {
var n = "object" == typeof e ? e : {};
return n["app-builder-decode"] = !0,
Xs.get("wc/v3/products?".concat(Ks.a.stringify(n, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, gc = function(e, t) {
var n = "object" == typeof e ? e : {};
return n["app-builder-decode"] = !0,
Xs.get("wc/v2/products/brands?".concat(Ks.a.stringify(n, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, mc = function(e) {
return Xs.get("app-builder/v1/categories", {
cancelToken: e
})
}, vc = function(e) {
return Xs.get("app-builder/v1/current?app-builder-decode=true", {
cancelToken: e
})
}, yc = function(e) {
return Xs.get("app-builder/v1/fonts?app-builder-decode=true", {
cancelToken: e
})
}, xc = function(e, t) {
return Xs.post("app-builder/v1/download?app-builder-decode=true", {
url: e,
version: t
})
}, Oc = function(e) {
return Xs.post("app-builder/v1/license?app-builder-decode=true", e)
}, jc = function(e) {
return Xs.get("app-builder/v1/archives", {
cancelToken: e
})
}, kc = function(e, t) {
var n = "object" == typeof e ? e : {};
return Xs.get("app-builder/v1/search?".concat(Ks.a.stringify(n, {
arrayFormat: "index"
})), {
cancelToken: t
})
}, wc = function(e, t) {
return Xs.get("app-builder/v1/vendors?".concat(Ks.a.stringify(e, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, Cc = function(e, t) {
return Xs.get("wp/v2/app-builder-upgraders?".concat(Ks.a.stringify(e, {
arrayFormat: "comma"
})), {
cancelToken: t
})
}, _c = function(e) {
return Xs.get("wp/v2/app-builder-upgraders/".concat(e, "/?app-builder-decode=true"))
}, Mc = function(e) {
return Xs.post("wp/v2/app-builder-upgraders?app-builder-decode=true", e)
}, Sc = function(e, t) {
return Xs.put("wp/v2/app-builder-upgraders/".concat(e, "/?app-builder-decode=true"), t)
}, Ac = function(e) {
return Xs.delete("wp/v2/app-builder-upgraders/".concat(e, "/?app-builder-decode=true"))
}, Tc = function(e) {
return Xs.post("app-builder/v1/features?app-builder-decode=true", e)
}, Ec = as("common/fetchCategoryStatus", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
mc(null);
case 2:
return r = e.sent,
e.abrupt("return", r);
case 4:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()), Ic = as("common/fetchUser", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
vc(null);
case 2:
return r = e.sent,
e.abrupt("return", r);
case 4:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()), Nc = window.app_builder, zc = Nc.language, Dc = Nc.languages, Lc = Object.keys(Dc).map((function(e) {
return {
key: e,
text: Dc[e].native_name,
data: Dc[e]
}
}
)), Rc = ts({
name: "common",
initialState: {
widgetSelected: null,
preview: !1,
darkMode: !1,
language: zc,
languages: Lc,
categories: [],
loading: "ide",
user: {}
},
reducers: {
selectWidget: function(e, t) {
e.widgetSelected = t.payload
},
switchPreview: function(e, t) {
e.preview = t.payload
},
switchDarkMode: function(e, t) {
e.darkMode = t.payload
},
changeLanguage: function(e, t) {
e.language = t.payload
}
},
extraReducers: (Hs = {},
Object(wt.a)(Hs, Ic.fulfilled, (function(e, t) {
e.user = t.payload
}
)),
Object(wt.a)(Hs, Ec.fulfilled, (function(e, t) {
e.categories = t.payload,
e.loading = "fulfilled"
}
)),
Object(wt.a)(Hs, Ec.pending, (function(e, t) {
e.loading = "pending"
}
)),
Object(wt.a)(Hs, Ec.rejected, (function(e, t) {
e.loading = "rejected"
}
)),
Hs)
}), Pc = Rc.actions, Bc = Pc.selectWidget, Fc = Pc.switchPreview, Vc = Pc.changeLanguage, Wc = Pc.switchDarkMode, qc = function(e) {
return e.common
}, Hc = Ll(qc, (function(e) {
return e.widgetSelected
}
)), Uc = Ll(qc, (function(e) {
return e.preview
}
)), Xc = Ll(qc, (function(e) {
return e.darkMode
}
)), Gc = Ll(qc, (function(e) {
return e.darkMode ? "dark" : "value"
}
)), Kc = Ll(qc, (function(e) {
return e.language
}
)), Yc = Ll(qc, (function(e) {
return e.languages
}
)), Qc = Ll(qc, (function(e) {
return e.language !== zc
}
)), Jc = Ll(qc, (function(e) {
return e.categories
}
)), Zc = Ll(qc, (function(e) {
return e.user
}
)), $c = Rc.reducer, eu = ts({
name: "widget",
initialState: {
fieldId: void 0,
widgets: {},
widgetIds: [],
configs: {},
action: {}
},
reducers: {
addWidget: function(e, t) {
var n = t.payload
, r = n.index
, i = n.id
, o = n.widget;
e.widgetIds.splice(r, 0, i),
e.widgets[i] = o
},
reorderWidget: function(e, t) {
var n = t.payload
, r = n.source
, i = n.destination
, o = e.widgetIds.splice(r, 1)
, a = Object(ss.a)(o, 1)[0];
e.widgetIds.splice(i, 0, a)
},
deleteWidget: function(e, t) {
var n = t.payload.index
, r = e.widgetIds[n];
e.widgetIds.splice(n, 1),
delete e.widgets[r]
},
updateLayout: function(e, t) {
var n = t.payload
, r = n.id
, i = n.value;
e.widgets[r].layout = i
},
updateGeneral: function(e, t) {
var n = t.payload
, r = n.widgetId
, i = n.fieldId
, o = n.value;
e.fieldId = i,
e.widgets[r].fields[i] = o
},
updateStyles: function(e, t) {
var n = t.payload
, r = n.widgetId
, i = n.fieldId
, o = n.value;
e.fieldId = i,
e.widgets[r].styles[i] = o
},
updateConfig: function(e, t) {
var n = t.payload
, r = n.fieldId
, i = n.value;
e.fieldId = r,
e.configs[r] = i
},
addPreset: function(e, t) {
var n = t.payload
, r = n.widgets
, i = n.widgetIds
, o = n.configs;
Rt()(r) || (e.widgets = r),
Rt()(i) || (e.widgetIds = i),
Rt()(o) || (e.configs = o),
Rt()(t.payload.action) || (e.action = t.payload.action)
},
onBlurInput: function(e) {
e.fieldId = void 0
},
restoreScreenData: function(e, t) {
var n = t.payload
, r = n.widgets
, i = n.widgetIds
, o = n.configs;
e.widgets = Rt()(r) ? {} : r,
e.widgetIds = Rt()(i) ? [] : i,
e.configs = Rt()(o) ? {} : o,
e.action = Rt()(t.payload.action) ? {} : t.payload.action
},
disableWidget: function(e, t) {
var n = t.payload
, r = n.widgetId
, i = n.value;
e.widgets[r].disable = i
}
}
}), tu = eu.actions, nu = tu.addWidget, ru = tu.reorderWidget, iu = tu.deleteWidget, ou = tu.updateLayout, au = tu.updateGeneral, lu = tu.updateStyles, su = tu.updateConfig, cu = tu.onBlurInput, uu = tu.restoreScreenData, du = tu.disableWidget, pu = tu.addPreset, hu = function(e) {
return e.widget.present
}, fu = Ll(hu, (function(e) {
return e.widgets
}
)), bu = Ll(hu, (function(e) {
return e.widgetIds
}
)), gu = Ll(hu, (function(e) {
return e.configs
}
)), mu = Ll(Hc, fu, (function(e, t) {
return e ? t[e] : null
}
)), vu = eu.reducer, yu = us()(vu, {
filter: function(e, t, n) {
return !(e.type === eu.actions.restoreScreenData.type && e.payload.ignore || e.type === eu.actions.updateGeneral.type && void 0 !== t.fieldId && t.fieldId === n.present.fieldId)
}
}), xu = n(128), Ou = n.n(xu), ju = n(101), ku = n.n(ju), wu = n(3), Cu = n.n(wu);
function _u(e, t) {
return t || (t = e.slice(0)),
Object.freeze(Object.defineProperties(e, {
raw: {
value: Object.freeze(t)
}
}))
}
var Mu = n(4);
function Su(e, t) {
if (null == e)
return {};
var n, r, i = nn(e, t);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
for (r = 0; r < o.length; r++)
n = o[r],
t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n])
}
return i
}
var Au = n(90)
, Tu = n.n(Au)
, Eu = n(76);
function Iu() {
return !("undefined" == typeof window || !window.document || !window.document.createElement)
}
function Nu(e, t) {
var n = {};
return n[e.toLowerCase()] = t.toLowerCase(),
n["Webkit".concat(e)] = "webkit".concat(t),
n["Moz".concat(e)] = "moz".concat(t),
n["ms".concat(e)] = "MS".concat(t),
n["O".concat(e)] = "o".concat(t.toLowerCase()),
n
}
var zu = function(e, t) {
var n = {
animationend: Nu("Animation", "AnimationEnd"),
transitionend: Nu("Transition", "TransitionEnd")
};
return e && ("AnimationEvent"in t || delete n.animationend.animation,
"TransitionEvent"in t || delete n.transitionend.transition),
n
}(Iu(), "undefined" != typeof window ? window : {})
, Du = {};
if (Iu()) {
var Lu = document.createElement("div");
Du = Lu.style
}
var Ru = {};
function Pu(e) {
if (Ru[e])
return Ru[e];
var t = zu[e];
if (t)
for (var n = Object.keys(t), r = n.length, i = 0; i < r; i += 1) {
var o = n[i];
if (Object.prototype.hasOwnProperty.call(t, o) && o in Du)
return Ru[e] = t[o],
Ru[e]
}
return ""
}
var Bu = Pu("animationend")
, Fu = Pu("transitionend")
, Vu = !(!Bu || !Fu)
, Wu = Bu || "animationend"
, qu = Fu || "transitionend";
function Hu(e, t) {
return e ? "object" === Object(Eu.a)(e) ? e[t.replace(/-\w/g, (function(e) {
return e[1].toUpperCase()
}
))] : "".concat(e, "-").concat(t) : null
}
var Uu = "none"
, Xu = "appear"
, Gu = "enter"
, Ku = "leave"
, Yu = "none"
, Qu = "prepare"
, Ju = "start"
, Zu = "active"
, $u = "end";
function ed(e) {
var t = Object(l.useRef)(!1)
, n = Object(l.useState)(e)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1];
return Object(l.useEffect)((function() {
return function() {
t.current = !0
}
}
), []),
[i, function(e) {
t.current || o(e)
}
]
}
var td = Iu() ? l.useLayoutEffect : l.useEffect
, nd = function(e) {
return +setTimeout(e, 16)
}
, rd = function(e) {
return clearTimeout(e)
};
"undefined" != typeof window && "requestAnimationFrame"in window && (nd = function(e) {
return window.requestAnimationFrame(e)
}
,
rd = function(e) {
return window.cancelAnimationFrame(e)
}
);
var id = 0
, od = new Map;
function ad(e) {
od.delete(e)
}
function ld(e) {
var t = id += 1;
return function n(r) {
if (0 === r)
ad(t),
e();
else {
var i = nd((function() {
n(r - 1)
}
));
od.set(t, i)
}
}(arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1),
t
}
ld.cancel = function(e) {
var t = od.get(e);
return ad(t),
rd(t)
}
;
var sd = [Qu, Ju, Zu, $u];
function cd(e) {
return e === Zu || e === $u
}
function ud(e, t, n, r) {
var i = r.motionEnter
, o = void 0 === i || i
, a = r.motionAppear
, s = void 0 === a || a
, c = r.motionLeave
, u = void 0 === c || c
, d = r.motionDeadline
, p = r.motionLeaveImmediately
, h = r.onAppearPrepare
, f = r.onEnterPrepare
, b = r.onLeavePrepare
, g = r.onAppearStart
, m = r.onEnterStart
, v = r.onLeaveStart
, y = r.onAppearActive
, x = r.onEnterActive
, O = r.onLeaveActive
, j = r.onAppearEnd
, k = r.onEnterEnd
, w = r.onLeaveEnd
, C = r.onVisibleChanged
, _ = ed()
, M = Object(ss.a)(_, 2)
, S = M[0]
, A = M[1]
, T = ed(Uu)
, E = Object(ss.a)(T, 2)
, I = E[0]
, N = E[1]
, z = ed(null)
, D = Object(ss.a)(z, 2)
, L = D[0]
, R = D[1]
, P = Object(l.useRef)(!1)
, B = Object(l.useRef)(null)
, F = Object(l.useRef)(!1)
, V = Object(l.useRef)(null);
function W() {
return n() || V.current
}
var q = Object(l.useRef)(!1);
function H(e) {
var t, n = W();
e && !e.deadline && e.target !== n || (I === Xu && q.current ? t = null == j ? void 0 : j(n, e) : I === Gu && q.current ? t = null == k ? void 0 : k(n, e) : I === Ku && q.current && (t = null == w ? void 0 : w(n, e)),
!1 === t || F.current || (N(Uu),
R(null)))
}
var U = function(e) {
var t = Object(l.useRef)()
, n = Object(l.useRef)(e);
n.current = e;
var r = l.useCallback((function(e) {
n.current(e)
}
), []);
function i(e) {
e && (e.removeEventListener(qu, r),
e.removeEventListener(Wu, r))
}
return l.useEffect((function() {
return function() {
i(t.current)
}
}
), []),
[function(e) {
t.current && t.current !== e && i(t.current),
e && e !== t.current && (e.addEventListener(qu, r),
e.addEventListener(Wu, r),
t.current = e)
}
, i]
}(H)
, X = Object(ss.a)(U, 1)[0]
, G = l.useMemo((function() {
var e, t, n;
switch (I) {
case "appear":
return e = {},
Object(wt.a)(e, Qu, h),
Object(wt.a)(e, Ju, g),
Object(wt.a)(e, Zu, y),
e;
case "enter":
return t = {},
Object(wt.a)(t, Qu, f),
Object(wt.a)(t, Ju, m),
Object(wt.a)(t, Zu, x),
t;
case "leave":
return n = {},
Object(wt.a)(n, Qu, b),
Object(wt.a)(n, Ju, v),
Object(wt.a)(n, Zu, O),
n;
default:
return {}
}
}
), [I])
, K = function(e, t) {
var n = l.useState(Yu)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1]
, a = function() {
var e = l.useRef(null);
function t() {
ld.cancel(e.current)
}
return l.useEffect((function() {
return function() {
t()
}
}
), []),
[function n(r) {
var i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 2;
t();
var o = ld((function() {
i <= 1 ? r({
isCanceled: function() {
return o !== e.current
}
}) : n(r, i - 1)
}
));
e.current = o
}
, t]
}()
, s = Object(ss.a)(a, 2)
, c = s[0]
, u = s[1];
return td((function() {
if (i !== Yu && i !== $u) {
var e = sd.indexOf(i)
, n = sd[e + 1]
, r = t(i);
!1 === r ? o(n) : c((function(e) {
function t() {
e.isCanceled() || o(n)
}
!0 === r ? t() : Promise.resolve(r).then(t)
}
))
}
}
), [e, i]),
l.useEffect((function() {
return function() {
u()
}
}
), []),
[function() {
o(Qu)
}
, i]
}(I, (function(e) {
if (e === Qu) {
var t = G.prepare;
return !!t && t(W())
}
var n;
return J in G && R((null === (n = G[J]) || void 0 === n ? void 0 : n.call(G, W(), null)) || null),
J === Zu && (X(W()),
d > 0 && (clearTimeout(B.current),
B.current = setTimeout((function() {
H({
deadline: !0
})
}
), d))),
!0
}
))
, Y = Object(ss.a)(K, 2)
, Q = Y[0]
, J = Y[1]
, Z = cd(J);
q.current = Z,
td((function() {
A(t);
var n, r = P.current;
P.current = !0,
e && (!r && t && s && (n = Xu),
r && t && o && (n = Gu),
(r && !t && u || !r && p && !t && u) && (n = Ku),
n && (N(n),
Q()))
}
), [t]),
Object(l.useEffect)((function() {
(I === Xu && !s || I === Gu && !o || I === Ku && !u) && N(Uu)
}
), [s, o, u]),
Object(l.useEffect)((function() {
return function() {
clearTimeout(B.current),
F.current = !0
}
}
), []),
Object(l.useEffect)((function() {
void 0 !== S && I === Uu && (null == C || C(S))
}
), [S, I]);
var $ = L;
return G.prepare && J === Ju && ($ = _t({
transition: "none"
}, $)),
[I, J, $, null != S ? S : t]
}
var dd = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return this.props.children
}
}]),
n
}(l.Component)
, pd = dd
, hd = function(e) {
var t = e;
function n(e) {
return !(!e.motionName || !t)
}
"object" === Object(Eu.a)(e) && (t = e.transitionSupport);
var r = l.forwardRef((function(e, t) {
var r = e.visible
, i = void 0 === r || r
, o = e.removeOnLeave
, a = void 0 === o || o
, s = e.forceRender
, c = e.children
, d = e.motionName
, p = e.leavedClassName
, h = e.eventProps
, f = n(e)
, b = Object(l.useRef)()
, g = Object(l.useRef)()
, m = ud(f, i, (function() {
try {
return (e = b.current || g.current)instanceof HTMLElement ? e : u.a.findDOMNode(e)
} catch (e) {
return null
}
var e
}
), e)
, v = Object(ss.a)(m, 4)
, y = v[0]
, x = v[1]
, O = v[2]
, j = v[3]
, k = l.useRef(j);
j && (k.current = !0);
var w = Object(l.useRef)(t);
w.current = t;
var C, _ = l.useCallback((function(e) {
b.current = e,
function(e, t) {
"function" == typeof e ? e(t) : "object" === Object(Eu.a)(e) && e && "current"in e && (e.current = t)
}(w.current, e)
}
), []), M = _t(_t({}, h), {}, {
visible: i
});
if (c)
if (y !== Uu && n(e)) {
var S, A;
x === Qu ? A = "prepare" : cd(x) ? A = "active" : x === Ju && (A = "start"),
C = c(_t(_t({}, M), {}, {
className: Tu()(Hu(d, y), (S = {},
Object(wt.a)(S, Hu(d, "".concat(y, "-").concat(A)), A),
Object(wt.a)(S, d, "string" == typeof d),
S)),
style: O
}), _)
} else
C = j ? c(_t({}, M), _) : !a && k.current ? c(_t(_t({}, M), {}, {
className: p
}), _) : s ? c(_t(_t({}, M), {}, {
style: {
display: "none"
}
}), _) : null;
else
C = null;
return l.createElement(pd, {
ref: g
}, C)
}
));
return r.displayName = "CSSMotion",
r
}(Vu)
, fd = "add"
, bd = "keep"
, gd = "remove"
, md = "removed";
function vd(e) {
var t;
return _t(_t({}, t = e && "object" === Object(Eu.a)(e) && "key"in e ? e : {
key: e
}), {}, {
key: String(t.key)
})
}
function yd() {
return (arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []).map(vd)
}
function xd() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : []
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : []
, n = []
, r = 0
, i = t.length
, o = yd(e)
, a = yd(t);
o.forEach((function(e) {
for (var t = !1, o = r; o < i; o += 1) {
var l = a[o];
if (l.key === e.key) {
r < o && (n = n.concat(a.slice(r, o).map((function(e) {
return _t(_t({}, e), {}, {
status: fd
})
}
))),
r = o),
n.push(_t(_t({}, l), {}, {
status: bd
})),
r += 1,
t = !0;
break
}
}
t || n.push(_t(_t({}, e), {}, {
status: gd
}))
}
)),
r < i && (n = n.concat(a.slice(r).map((function(e) {
return _t(_t({}, e), {}, {
status: fd
})
}
))));
var l = {};
n.forEach((function(e) {
var t = e.key;
l[t] = (l[t] || 0) + 1
}
));
var s = Object.keys(l).filter((function(e) {
return l[e] > 1
}
));
return s.forEach((function(e) {
(n = n.filter((function(t) {
var n = t.key
, r = t.status;
return n !== e || r !== gd
}
))).forEach((function(t) {
t.key === e && (t.status = bd)
}
))
}
)),
n
}
var Od = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"]
, jd = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : hd
, n = function(e) {
Object(Tt.a)(r, e);
var n = Object(Et.a)(r);
function r() {
var e;
return Object(St.a)(this, r),
(e = n.apply(this, arguments)).state = {
keyEntities: []
},
e.removeKey = function(t) {
e.setState((function(e) {
return {
keyEntities: e.keyEntities.map((function(e) {
return e.key !== t ? e : _t(_t({}, e), {}, {
status: md
})
}
))
}
}
))
}
,
e
}
return Object(At.a)(r, [{
key: "render",
value: function() {
var e = this
, n = this.state.keyEntities
, r = this.props
, i = r.component
, o = r.children
, a = r.onVisibleChanged
, s = Su(r, ["component", "children", "onVisibleChanged"])
, c = i || l.Fragment
, u = {};
return Od.forEach((function(e) {
u[e] = s[e],
delete s[e]
}
)),
delete s.keys,
l.createElement(c, s, n.map((function(n) {
var r = n.status
, i = Su(n, ["status"])
, s = r === fd || r === bd;
return l.createElement(t, Vt({}, u, {
key: i.key,
visible: s,
eventProps: i,
onVisibleChanged: function(t) {
null == a || a(t, {
key: i.key
}),
t || e.removeKey(i.key)
}
}), o)
}
)))
}
}], [{
key: "getDerivedStateFromProps",
value: function(e, t) {
var n = e.keys
, r = t.keyEntities
, i = yd(n);
return {
keyEntities: xd(r, i).filter((function(e) {
var t = r.find((function(t) {
var n = t.key;
return e.key === n
}
));
return !t || t.status !== md || e.status !== gd
}
))
}
}
}]),
r
}(l.Component);
return n.defaultProps = {
component: "div"
},
n
}(Vu)
, kd = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).closeTimer = null,
e.close = function(t) {
t && t.stopPropagation(),
e.clearCloseTimer();
var n = e.props
, r = n.onClose
, i = n.noticeKey;
r && r(i)
}
,
e.startCloseTimer = function() {
e.props.duration && (e.closeTimer = window.setTimeout((function() {
e.close()
}
), 1e3 * e.props.duration))
}
,
e.clearCloseTimer = function() {
e.closeTimer && (clearTimeout(e.closeTimer),
e.closeTimer = null)
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.startCloseTimer()
}
}, {
key: "componentDidUpdate",
value: function(e) {
(this.props.duration !== e.duration || this.props.updateMark !== e.updateMark || this.props.visible !== e.visible && this.props.visible) && this.restartCloseTimer()
}
}, {
key: "componentWillUnmount",
value: function() {
this.clearCloseTimer()
}
}, {
key: "restartCloseTimer",
value: function() {
this.clearCloseTimer(),
this.startCloseTimer()
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.prefixCls
, r = t.className
, i = t.closable
, o = t.closeIcon
, a = t.style
, s = t.onClick
, c = t.children
, d = t.holder
, p = "".concat(n, "-notice")
, h = Object.keys(this.props).reduce((function(t, n) {
return "data-" !== n.substr(0, 5) && "aria-" !== n.substr(0, 5) && "role" !== n || (t[n] = e.props[n]),
t
}
), {})
, f = l.createElement("div", Vt({
className: Tu()(p, r, Object(wt.a)({}, "".concat(p, "-closable"), i)),
style: a,
onMouseEnter: this.clearCloseTimer,
onMouseLeave: this.startCloseTimer,
onClick: s
}, h), l.createElement("div", {
className: "".concat(p, "-content")
}, c), i ? l.createElement("a", {
tabIndex: 0,
onClick: this.close,
className: "".concat(p, "-close")
}, o || l.createElement("span", {
className: "".concat(p, "-close-x")
})) : null);
return d ? u.a.createPortal(f, d) : f
}
}]),
n
}(l.Component);
kd.defaultProps = {
onClose: function() {},
duration: 1.5
};
var wd = n(33)
, Cd = 0
, _d = Date.now();
function Md() {
var e = Cd;
return Cd += 1,
"rcNotification_".concat(_d, "_").concat(e)
}
var Sd = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
notices: []
},
e.hookRefs = new Map,
e.add = function(t, n) {
var r = t.key || Md()
, i = _t(_t({}, t), {}, {
key: r
})
, o = e.props.maxCount;
e.setState((function(e) {
var t = e.notices
, a = t.map((function(e) {
return e.notice.key
}
)).indexOf(r)
, l = t.concat();
return -1 !== a ? l.splice(a, 1, {
notice: i,
holderCallback: n
}) : (o && t.length >= o && (i.key = l[0].notice.key,
i.updateMark = Md(),
i.userPassKey = r,
l.shift()),
l.push({
notice: i,
holderCallback: n
})),
{
notices: l
}
}
))
}
,
e.remove = function(t) {
e.setState((function(e) {
return {
notices: e.notices.filter((function(e) {
var n = e.notice
, r = n.key;
return (n.userPassKey || r) !== t
}
))
}
}
))
}
,
e.noticePropsMap = {},
e
}
return Object(At.a)(n, [{
key: "getTransitionName",
value: function() {
var e = this.props
, t = e.prefixCls
, n = e.animation
, r = this.props.transitionName;
return !r && n && (r = "".concat(t, "-").concat(n)),
r
}
}, {
key: "render",
value: function() {
var e = this
, t = this.state.notices
, n = this.props
, r = n.prefixCls
, i = n.className
, o = n.closeIcon
, a = n.style
, s = [];
return t.forEach((function(n, i) {
var a = n.notice
, l = n.holderCallback
, c = i === t.length - 1 ? a.updateMark : void 0
, u = a.key
, d = a.userPassKey
, p = _t(_t(_t({
prefixCls: r,
closeIcon: o
}, a), a.props), {}, {
key: u,
noticeKey: d || u,
updateMark: c,
onClose: function(t) {
var n;
e.remove(t),
null === (n = a.onClose) || void 0 === n || n.call(a)
},
onClick: a.onClick,
children: a.content
});
s.push(u),
e.noticePropsMap[u] = {
props: p,
holderCallback: l
}
}
)),
l.createElement("div", {
className: Tu()(r, i),
style: a
}, l.createElement(jd, {
keys: s,
motionName: this.getTransitionName(),
onVisibleChanged: function(t, n) {
var r = n.key;
t || delete e.noticePropsMap[r]
}
}, (function(t) {
var n = t.key
, i = t.className
, o = t.style
, a = t.visible
, s = e.noticePropsMap[n]
, c = s.props
, u = s.holderCallback;
return u ? l.createElement("div", {
key: n,
className: Tu()(i, "".concat(r, "-hook-holder")),
style: _t({}, o),
ref: function(t) {
void 0 !== n && (t ? (e.hookRefs.set(n, t),
u(t, c)) : e.hookRefs.delete(n))
}
}) : l.createElement(kd, Vt({}, c, {
className: Tu()(i, null == c ? void 0 : c.className),
style: _t(_t({}, o), null == c ? void 0 : c.style),
visible: a
}))
}
)))
}
}]),
n
}(l.Component);
Sd.newInstance = void 0,
Sd.defaultProps = {
prefixCls: "rc-notification",
animation: "fade",
style: {
top: 65,
left: "50%"
}
},
Sd.newInstance = function(e, t) {
var n = e || {}
, r = n.getContainer
, i = Su(n, ["getContainer"])
, o = document.createElement("div");
r ? r().appendChild(o) : document.body.appendChild(o);
var a = !1;
u.a.render(l.createElement(Sd, Vt({}, i, {
ref: function(e) {
a || (a = !0,
t({
notice: function(t) {
e.add(t)
},
removeNotice: function(t) {
e.remove(t)
},
component: e,
destroy: function() {
u.a.unmountComponentAtNode(o),
o.parentNode && o.parentNode.removeChild(o)
},
useNotification: function() {
return function(e) {
var t = l.useRef({})
, n = l.useState([])
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1];
return [function(n) {
var r = !0;
e.add(n, (function(e, n) {
var i = n.key;
if (e && (!t.current[i] || r)) {
var a = l.createElement(kd, Vt({}, n, {
holder: e
}));
t.current[i] = a,
o((function(e) {
var t = e.findIndex((function(e) {
return e.key === n.key
}
));
if (-1 === t)
return [].concat(Object(wd.a)(e), [a]);
var r = Object(wd.a)(e);
return r[t] = a,
r
}
))
}
r = !1
}
))
}
, l.createElement(l.Fragment, null, i)]
}(e)
}
}))
}
})), o)
}
;
var Ad = Sd
, Td = Do({
root: {
display: "inline-block"
},
placeholder: ["ms-Icon-placeHolder", {
width: "1em"
}],
image: ["ms-Icon-imageContainer", {
overflow: "hidden"
}]
})
, Ed = "ms-Icon"
, Id = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var n = {}, r = 0, i = e; r < i.length; r++)
for (var o = i[r], a = 0, l = Array.isArray(o) ? o : Object.keys(o); a < l.length; a++) {
n[l[a]] = 1
}
return n
}
, Nd = Id(["onCopy", "onCut", "onPaste", "onCompositionEnd", "onCompositionStart", "onCompositionUpdate", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onInput", "onSubmit", "onLoad", "onError", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyUp", "onAbort", "onCanPlay", "onCanPlayThrough", "onDurationChange", "onEmptied", "onEncrypted", "onEnded", "onLoadedData", "onLoadedMetadata", "onLoadStart", "onPause", "onPlay", "onPlaying", "onProgress", "onRateChange", "onSeeked", "onSeeking", "onStalled", "onSuspend", "onTimeUpdate", "onVolumeChange", "onWaiting", "onClick", "onClickCapture", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onMouseUpCapture", "onSelect", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onScroll", "onWheel", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onGotPointerCapture", "onLostPointerCapture"])
, zd = Id(["accessKey", "children", "className", "contentEditable", "dir", "draggable", "hidden", "htmlFor", "id", "lang", "ref", "role", "style", "tabIndex", "title", "translate", "spellCheck", "name"])
, Dd = Id(zd, Nd)
, Ld = Id(Dd, ["form"])
, Rd = Id(Dd, ["height", "loop", "muted", "preload", "src", "width"])
, Pd = Id(Rd, ["poster"])
, Bd = Id(Dd, ["start"])
, Fd = Id(Dd, ["value"])
, Vd = Id(Dd, ["download", "href", "hrefLang", "media", "rel", "target", "type"])
, Wd = Id(Dd, ["autoFocus", "disabled", "form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "type", "value"])
, qd = Id(Wd, ["accept", "alt", "autoCapitalize", "autoComplete", "checked", "dirname", "form", "height", "inputMode", "list", "max", "maxLength", "min", "minLength", "multiple", "pattern", "placeholder", "readOnly", "required", "src", "step", "size", "type", "value", "width"])
, Hd = Id(Wd, ["autoCapitalize", "cols", "dirname", "form", "maxLength", "minLength", "placeholder", "readOnly", "required", "rows", "wrap"])
, Ud = Id(Wd, ["form", "multiple", "required"])
, Xd = Id(Dd, ["selected", "value"])
, Gd = Id(Dd, ["cellPadding", "cellSpacing"])
, Kd = Dd
, Yd = Id(Dd, ["rowSpan", "scope"])
, Qd = Id(Dd, ["colSpan", "headers", "rowSpan", "scope"])
, Jd = Id(Dd, ["span"])
, Zd = Id(Dd, ["span"])
, $d = Id(Dd, ["acceptCharset", "action", "encType", "encType", "method", "noValidate", "target"])
, ep = Id(Dd, ["allow", "allowFullScreen", "allowPaymentRequest", "allowTransparency", "csp", "height", "importance", "referrerPolicy", "sandbox", "src", "srcDoc", "width"])
, tp = Id(Dd, ["alt", "crossOrigin", "height", "src", "srcSet", "useMap", "width"])
, np = Dd;
function rp(e, t, n) {
for (var r = Array.isArray(t), i = {}, o = 0, a = Object.keys(e); o < a.length; o++) {
var l = a[o];
!(!r && t[l] || r && t.indexOf(l) >= 0 || 0 === l.indexOf("data-") || 0 === l.indexOf("aria-")) || n && -1 !== (null == n ? void 0 : n.indexOf(l)) || (i[l] = e[l])
}
return i
}
function ip() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var n = [], r = 0, i = e; r < i.length; r++) {
var o = i[r];
if (o)
if ("string" == typeof o)
n.push(o);
else if (o.hasOwnProperty("toString") && "function" == typeof o.toString)
n.push(o.toString());
else
for (var a in o)
o[a] && n.push(a)
}
return n.join(" ")
}
var op, ap = Li((function(e) {
var t = function(e) {
var t = void 0
, n = Co.__options;
if (e = e ? Mo(e) : "",
e = Co.__remapped[e] || e)
if (t = Co[e]) {
var r = t.subset;
r && r.fontFace && (r.isRegistered || (Zi(r.fontFace),
r.isRegistered = !0),
r.className || (r.className = dr(r.style, {
fontFamily: r.fontFace.fontFamily,
fontWeight: r.fontFace.fontWeight || "normal",
fontStyle: r.fontFace.fontStyle || "normal"
})))
} else
!n.disableWarnings && n.warnOnMissingIcons && wo('The icon "' + e + '" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.');
return t
}(e) || {
subset: {},
code: void 0
}
, n = t.code
, r = t.subset;
return n ? {
children: n,
iconClassName: r.className,
fontFamily: r.fontFace && r.fontFace.fontFamily,
mergeImageProps: r.mergeImageProps
} : null
}
), void 0, !0), lp = function(e) {
var t = e.iconName
, n = e.className
, r = e.style
, i = void 0 === r ? {} : r
, o = ap(t) || {}
, a = o.iconClassName
, s = o.children
, c = o.fontFamily
, u = o.mergeImageProps
, d = rp(e, Dd)
, p = e["aria-label"] || e.title
, h = e["aria-label"] || e["aria-labelledby"] || e.title ? {
role: u ? void 0 : "img"
} : {
"aria-hidden": !0
}
, f = s;
return u && "object" == typeof s && "object" == typeof s.props && p && (f = l.cloneElement(s, {
alt: p
})),
l.createElement("i", Object(zn.a)({
"data-icon-name": t
}, h, d, u ? {
title: void 0,
"aria-label": void 0
} : {}, {
className: ip(Ed, Td.root, a, !t && Td.placeholder, n),
style: Object(zn.a)({
fontFamily: c
}, i)
}), f)
}, sp = (Li((function(e, t, n) {
return lp({
iconName: e,
className: t,
"aria-label": n
})
}
)),
l.createContext({
customizations: {
inCustomizerContext: !1,
settings: {},
scopedSettings: {}
}
})), cp = 13, up = 18, dp = 27, pp = 32, hp = 37, fp = 38, bp = 39, gp = 40, mp = "isRTL";
function vp(e) {
if (void 0 === e && (e = {}),
void 0 !== e.rtl)
return e.rtl;
if (void 0 === op) {
var t = io(mp);
null !== t && function(e, t) {
void 0 === t && (t = !1);
var n = ro();
n && n.documentElement.setAttribute("dir", e ? "rtl" : "ltr"),
t && function(e, t) {
var n;
try {
null === (n = ji()) || void 0 === n || n.sessionStorage.setItem(e, t)
} catch (e) {}
}(mp, e ? "1" : "0"),
Fn(op = e)
}(op = "1" === t);
var n = ro();
void 0 === op && n && Fn(op = "rtl" === (n.body && n.body.getAttribute("dir") || n.documentElement.getAttribute("dir")))
}
return !!op
}
function yp(e, t) {
return void 0 === t && (t = {}),
vp(t) && (e === hp ? e = bp : e === bp && (e = hp)),
e
}
var xp = zn.a;
function Op(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
var i = e;
return i.isSlot ? 0 === (n = l.Children.toArray(n)).length ? i(t) : i(Object(zn.a)(Object(zn.a)({}, t), {
children: n
})) : l.createElement.apply(l, Object(zn.e)([e, t], n))
}
function jp(e, t) {
void 0 === t && (t = {});
var n = t.defaultProp
, r = void 0 === n ? "children" : n;
return function(t, n, i, o, a) {
if (l.isValidElement(n))
return n;
var s = function(e, t) {
var n, r;
return "string" == typeof t || "number" == typeof t || "boolean" == typeof t ? ((n = {})[e] = t,
r = n) : r = t,
r
}(r, n)
, c = function(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
for (var i = {}, o = [], a = 0, l = n; a < l.length; a++) {
var s = l[a];
o.push(s && s.className),
xp(i, s)
}
return i.className = pr([e, o], {
rtl: vp(t)
}),
i
}(o, a, t, s);
if (i) {
if (i.component) {
var u = i.component;
return l.createElement(u, Object(zn.a)({}, c))
}
if (i.render)
return i.render(c, e)
}
return l.createElement(e, Object(zn.a)({}, c))
}
}
var kp = Li((function(e) {
return jp(e)
}
));
function Cp(e, t) {
var n = {}
, r = e
, i = function(e) {
if (t.hasOwnProperty(e)) {
var i = function(n) {
for (var i = [], o = 1; o < arguments.length; o++)
i[o - 1] = arguments[o];
if (i.length > 0)
throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");
return function(e, t, n, r, i, o) {
return void 0 !== e.create ? e.create(t, n, r, i) : kp(e)(t, n, r, i, o)
}(t[e], n, r[e], r.slots && r.slots[e], r._defaultStyles && r._defaultStyles[e], r.theme)
};
i.isSlot = !0,
n[e] = i
}
};
for (var o in t)
i(o);
return n
}
function _p(e, t) {
void 0 === t && (t = {});
var n = t.factoryOptions
, r = (void 0 === n ? {} : n).defaultProp
, i = function(n) {
var r = function(e, t, n) {
return Yi.getSettings(n || ["theme", "styles", "tokens"], e, t.customizations)
}(t.displayName, l.useContext(sp), t.fields)
, i = t.state;
i && (n = Object(zn.a)(Object(zn.a)({}, n), i(n)));
var o = n.theme || r.theme
, a = Mp(n, o, t.tokens, r.tokens, n.tokens)
, s = function(e, t, n) {
for (var r = [], i = 3; i < arguments.length; i++)
r[i - 3] = arguments[i];
return No.apply(void 0, r.map((function(r) {
return "function" == typeof r ? r(e, t, n) : r
}
)))
}(n, o, a, t.styles, r.styles, n.styles)
, c = Object(zn.a)(Object(zn.a)({}, n), {
styles: s,
tokens: a,
_defaultStyles: s,
theme: o
});
return e(c)
};
return i.displayName = t.displayName || e.name,
r && (i.create = jp(i, {
defaultProp: r
})),
xp(i, t.statics),
i
}
function Mp(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
for (var i = {}, o = 0, a = n; o < a.length; o++) {
var l = a[o];
l && (l = "function" == typeof l ? l(e, t) : l,
Array.isArray(l) && (l = Mp.apply(void 0, Object(zn.e)([e, t], l))),
xp(i, l))
}
return i
}
var Sp, Ap, Tp, Ep = _p((function(e) {
if (null == e.children)
return null;
e.block,
e.className;
var t = e.as
, n = void 0 === t ? "span" : t
, r = (e.variant,
e.nowrap,
Object(zn.d)(e, ["block", "className", "as", "variant", "nowrap"]));
return Op(Cp(e, {
root: n
}).root, Object(zn.a)({}, rp(r, Dd)))
}
), {
displayName: "Text",
styles: function(e, t) {
var n = e.as
, r = e.className
, i = e.block
, o = e.nowrap
, a = e.variant
, l = t.fonts
, s = t.semanticColors
, c = l[a || "medium"];
return {
root: [c, {
color: c.color || s.bodyText,
display: i ? "td" === n ? "table-cell" : "block" : "inline",
mozOsxFontSmoothing: c.MozOsxFontSmoothing,
webkitFontSmoothing: c.WebkitFontSmoothing
}, o && {
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis"
}, r]
}
}
}), Ip = (n(451),
n(0)), Np = dr({
fontSize: 16,
height: 16,
width: 15,
margin: "0 10px 0 10px"
}), zp = Mu.b.div(Sp || (Sp = _u(["\n display: flex;\n align-items: center;\n"]))), Dp = Mu.b.div(Ap || (Ap = _u(["\n i {\n color: ", ";\n }\n"])), Po.palette.themePrimary), Lp = Mu.b.div(Tp || (Tp = _u(["\n i {\n color: red;\n }\n"]))), Rp = null;
Ad.newInstance({
style: {
transform: "translateX(-50%)",
top: 20,
left: "50%",
marginLeft: "50px"
}
}, (function(e) {
return Rp = e
}
));
var Pp = {
success: function(e) {
Rp.notice({
content: Object(Ip.jsx)(Dp, {
children: Object(Ip.jsxs)(zp, {
children: [Object(Ip.jsx)(lp, {
iconName: "SkypeCircleCheck",
className: Np
}), Object(Ip.jsx)(Ep, {
variant: "smallPlus",
children: e
})]
})
})
})
},
error: function(e) {
Rp.notice({
content: Object(Ip.jsxs)(Lp, {
children: [Object(Ip.jsx)(lp, {
iconName: "SkypeCircleCheck",
className: Np
}), Object(Ip.jsx)(Ep, {
variant: "smallPlus",
children: e
})]
})
})
}
}
, Bp = {
base: {
id: "base",
title: "Base"
},
post: {
id: "post",
title: "Post"
},
woocommerce: {
id: "woocommerce",
title: "Woocommerce",
color: "#7F54B3",
icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAATCAYAAACHrr18AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQtSURBVHgBvVVbbJNlGH6+v926Q+m6U9eyAy22044tTGl0hjHAADERYYpyIRo1xMSh8Qa94caKXhm5MZrpjRrjhSEhY70wUSPZFNCAwipqkW3gtm5s3cp6Wtv19Pt+31/+dWYhVaNP0v87v4fne96v7M0nPbaMzD5ikLfKYCX4DyEDWUmWh5HNHtZmZJykORc5Leqw3qiDtkRCaD6BvwvyoJEZe0jWaj6WaOjq3NmMIyd60NRafceDhroy9L3Tg74T28GklUAlzZ2DLtyrBMC2a3lnY0cdTC0GOO41wX9tUd2gLZVgsVVh6ndlrvW+BlRW6TDhuwU5J8NoKkfvkU5Y22oRXkjg4lcTOHt6TD3vfMCM3YecqLFUIjARweCHP2N6NKQEyz/B6ZgY1JgrVkX28PPtOPzWVtQ16cW4o3u9aC99Mwl9tQ7PuR+EdVOt4LCqvhy7Dt2Djm2NYs+GthocPOoSTjlMGwx45liXCHzF8c0lMbBsrFKdVpsq4NrVohhx1go6mxw1Yswz7t5nh7G+AqG5BPqPDuMnCobj/j1WEcj+vs1g1I5eCuCD175FKJBAmV6LLXmbwvFknkruTFcu2McjL3SoQVgp+ka7ERotw1I4RcKKo73bIta+/PRXzE1GBQscDTaDYKHGXIk47R3s92L2jwi8w36xXt+4TrlG/okEE4hHU6hYVwqz1QBdRQnsnfWqYzvd/djIvOiHF+KoJfr0xjJk0jn4LsyKeZkXixAOMWdVmJsZDyEWWhb9dDorWk1eiNJt47M3IgrdJKY9TztFf2RoSoimvLIEnTuaxFyMstBqlWOZvDEOc7PijGfPy40jsZRW15vzFTPnj652PD2m0N2116aKaejkNXiHFIps7XWiDc7EEM1nUUbMcEVX1Zaj5wm7mPvl3AwFp6zzKuFXx4V2t6tBvCC/fX9zhWqO61cWsO1xhxAMBy8N/kiMXg6QUYcaeTySEr9x7zzu2lyPg69ugUR1WkascKFdOTtND1MOu4k1fnWvvLcTpTrFzQ9f3MD8XzP2U30tJzKiz9tz+XqcoroeyWfNkUoq9J5+3yto5ca50wD1Pzl+nsS3jGQsjc/f/lEEXmnQoUSnEUx8/ZlPtaNmnF7Oiizauiz4bmBs1ZPIlcuVbSTVs3yo0cWkKKMGqs8cPSYL/hhkWVbPTF69hXdfPoP1DiOW6GoW5+IohGZH21O91Jr5YOZ6GGFyeN4zvmpTJpXD1YuzVMsSLp+ZQjKeUdd4hpz6tcDjiASTSBaILD/vY8cPeDblGOunYRft06BIyPTa0wPBCozRTEHKa4FJKWLlgpRlLxX3l7QG3L0D1pxW4ybfzwqbMjzuU4/uL/b8P3Z8G68f8Dgp1UEy1KLLZhqPDTwWLOachH+JN07t8zGmb2VMejEpSXvxf4Mr2u12F53In3AOlV93p0QGAAAAAElFTkSuQmCC"
},
vendor: {
id: "vendor",
title: "Vendor"
}
}
, Fp = {
type: "tab",
route: "/",
args: {
key: "screens_home"
}
}
, Vp = {
icon: {
name: "home",
type: "feather"
},
title: {
text: "Home"
},
action: Fp,
enableCount: !1,
countType: "cart",
enableCustomize: !1,
background: {
value: ec.white,
dark: ec.primaryDarkMode
},
color: {
value: ec.tertiaryText,
dark: ec.primaryTextDarkMode
},
colorActive: {
value: ec.primaryColor,
dark: ec.primaryColor
},
colorOnActive: {
value: ec.white,
dark: ec.white
},
enableShadow: !0,
padTop: 12,
pad: 4,
padBottom: 12,
radius: 12,
activeBorderRadius: 30
}
, Wp = {
fieldId: "tabs",
widgets: {
tabs: {
id: "tabs",
type: "tabs",
fields: {
hidden: !1,
animated: !0,
fixedActive: !1,
items: [{
template: "default",
active: !0,
data: {
icon: {
name: "home",
type: "feather"
},
title: {
text: "Home"
},
action: Fp
}
}, {
template: "default",
active: !1,
data: {
icon: {
name: "search",
type: "feather"
},
title: {
text: "Shop"
},
action: {
type: "tab",
route: "/",
args: {
key: "screens_category"
}
}
}
}, {
template: "default",
active: !1,
data: {
icon: {
name: "heart",
type: "feather"
},
title: {
text: "Wishlist"
},
action: {
type: "tab",
route: "/",
args: {
key: "screens_wishlist"
}
}
}
}, {
template: "default",
active: !1,
data: {
icon: {
name: "shopping-cart",
type: "feather"
},
title: {
text: "Cart"
},
action: {
type: "tab",
route: "/",
args: {
key: "screens_cart"
}
}
}
}, {
template: "default",
active: !1,
data: {
icon: {
name: "user",
type: "feather"
},
title: {
text: "Me"
},
action: {
type: "tab",
route: "/",
args: {
key: "screens_profile"
}
}
}
}]
},
styles: {
background: {
value: ec.white,
dark: ec.primaryDarkMode
},
color: {
value: ec.tertiaryText,
dark: ec.primaryTextDarkMode
},
colorActive: {
value: ec.primaryColor,
dark: ec.primaryColor
},
colorOnActive: {
value: ec.white,
dark: ec.white
},
enableShadow: !0,
padTop: 12,
pad: 4,
padBottom: 12,
radius: 12,
activeBorderRadius: 30
},
layout: "default"
}
},
widgetIds: ["tabs"],
configs: {
name: "Menu Bottom"
}
}
, qp = {
id: "tabs",
name: "Tabs",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
hidden: {
id: "hidden",
input: "switch",
defaultValue: !1,
label: "Hidden"
},
animated: {
id: "animated",
input: "switch",
defaultValue: !0,
label: "Enable Animation"
},
fixedActive: {
id: "fixedActive",
input: "switch",
defaultValue: !1,
label: "Fixed Active"
},
items: {
id: "items",
input: "items",
active: 0,
toggle: !0,
defaultValue: [{
template: "default",
active: !1,
data: Vp
}],
label: "Tabs",
props: {
preview: "tabs",
templates: {
default: {
template: "default",
name: "Default",
data: Vp,
fields: {
icon: {
id: "icon:",
input: "icon",
defaultValue: {
name: "home",
type: "feather"
},
label: "Change Icon"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "Home"
},
isTranslate: !0,
label: "Menu Title"
},
action: {
id: "action",
input: "select-tab",
defaultValue: Fp,
label: "Tab"
},
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !1,
label: "Enable Count"
},
countType: {
id: "countType",
input: "select",
defaultValue: "cart",
label: "Count Type",
props: {
options: [{
key: "cart",
text: "Cart"
}, {
key: "wishlist",
text: "WishList"
}, {
key: "favorite",
text: "Favorite"
}],
relationship: {
paths: ["enableCount"],
operator: "==",
value: !0
}
}
},
__lineTab: {
id: "__lineTab",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerTab: {
id: "__headerTab",
input: "heading",
defaultValue: "",
label: "Customize in tab"
},
enableCustomize: {
id: "enableCustomize",
input: "switch",
defaultValue: !1,
label: "Enable Customize"
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Background Bottom Bar",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
color: {
id: "color",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.primaryTextDarkMode
},
label: "Text Color",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
colorActive: {
id: "colorActive",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Active Color",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
colorOnActive: {
id: "colorOnActive",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Active Color",
info: "Used for text and icon on active color.",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
enableShadow: {
id: "enableShadow",
input: "switch",
defaultValue: !0,
label: "Enable Shadow",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
padTop: {
id: "padTop",
input: "slider",
defaultValue: 12,
label: "Padding Top",
props: {
max: 100,
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
pad: {
id: "pad",
input: "slider",
defaultValue: 4,
label: "Padding Text & Icon",
props: {
max: 100,
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
padBottom: {
id: "padBottom",
input: "slider",
defaultValue: 12,
label: "Padding Bottom",
props: {
max: 100,
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
radius: {
id: "radius",
input: "slider",
defaultValue: 12,
label: "Border radius",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
},
activeBorderRadius: {
id: "activeBorderRadius",
input: "slider",
defaultValue: 30,
label: "Active Border radius",
info: "Used when layout = salomon",
props: {
relationship2: {
paths: ["enableCustomize"],
operator: "==",
value: !0
}
}
}
}
}
},
keyItem: "title"
}
}
},
styles: {
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Background Bottom Bar"
},
color: {
id: "color",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.primaryTextDarkMode
},
label: "Text Color"
},
colorActive: {
id: "colorActive",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Active Color"
},
colorOnActive: {
id: "colorOnActive",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Active Color",
info: "Used for text and icon on active color."
},
enableShadow: {
id: "enableShadow",
input: "switch",
defaultValue: !0,
label: "Enable Shadow"
},
padTop: {
id: "padTop",
input: "slider",
defaultValue: 12,
label: "Padding Top",
props: {
max: 100
}
},
pad: {
id: "pad",
input: "slider",
defaultValue: 4,
label: "Padding Text & Icon",
props: {
max: 100
}
},
padBottom: {
id: "padBottom",
input: "slider",
defaultValue: 12,
label: "Padding Bottom",
props: {
max: 100
}
},
radius: {
id: "radius",
input: "slider",
defaultValue: 12,
label: "Border radius"
},
activeBorderRadius: {
id: "activeBorderRadius",
input: "slider",
defaultValue: 30,
label: "Active Border radius",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "salomon"
}
}
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "default_bg",
name: "Default Background"
}, {
id: "border_top",
name: "Border Top"
}, {
id: "border_bottom",
name: "Border Bottom"
}, {
id: "salomon",
name: "Salomon"
}, {
id: "inspired_inside",
name: "Inspired Inside"
}, {
id: "inspired_inside_hexagon",
name: "Inspired Inside Hexagon"
}, {
id: "inspired_outside",
name: "Inspired Outside"
}, {
id: "inspired_outside_hexagon",
name: "Inspired Outside Hexagon"
}, {
id: "inspired_outside_deep",
name: "Inspired Outside Deep"
}, {
id: "inspired_outside_radius",
name: "Inspired Outside Radius"
}, {
id: "inspired_curve",
name: "Inspired Top"
}, {
id: "inspired_curve_hexagon",
name: "Inspired Top Hexagon"
}, {
id: "creative",
name: "Creative"
}, {
id: "creative_hexagon",
name: "Creative Hexagon"
}, {
id: "fancy",
name: "Fancy Dot"
}, {
id: "fancy_border",
name: "Fancy Border"
}, {
id: "floating",
name: "Floating"
}]
}
}
, Hp = n.p + "static/media/placeholder-416x416.c20dd015.png"
, Up = n.p + "static/media/placeholder-black-416x416.d359d4be.png"
, Xp = {
NoImage: window.app_builder.placeholder,
NoImageBlack: window.app_builder.placeholder_black
}
, Gp = "Poppins"
, Kp = _s("0130E`zj")
, Yp = _s("1430]arjwej")
, Qp = _s("2230xmzawaehixh`i")
, Jp = _s("4111xrmft|")
, Zp = Xp
, $p = {
home: {
type: "tab",
route: "/",
args: {
key: "screens_home"
}
},
category: {
type: "tab",
route: "/product/category",
args: {
key: "screens_category"
}
},
products: {
type: "screen",
route: "/product_list",
args: {
key: "screens_products"
}
},
product: {
type: "screen",
route: "/product",
args: {
key: "screens_product"
}
},
cart: {
type: "tab",
route: "/",
args: {
key: "screens_cart"
}
},
profile: {
type: "tab",
route: "/",
args: {
key: "screens_profile"
}
},
wishlist: {
type: "tab",
route: "/",
args: {
key: "screens_wishlist"
}
},
contact: {
type: "screen",
route: "/contact",
args: {
key: "screens_contact"
}
},
onBoarding: {
type: "screen",
route: "/onBoarding",
args: {
key: "screens_onBoarding"
}
},
posts: {
type: "screen",
route: "/post_list",
args: {
key: "screens_posts"
}
},
post: {
type: "screen",
route: "/post/post",
args: {
key: "screens_post"
}
},
login: {
type: "screen",
route: "/login",
args: {
key: "screens_login"
}
},
register: {
type: "screen",
route: "/register",
args: {
key: "screens_register"
}
},
postList: {
type: "screen",
route: "/post_list",
args: {
key: "screens_postList"
}
},
postCategory: {
type: "tab",
route: "/post_category",
args: {
key: "screens_postCategory"
}
},
postWishlist: {
type: "tab",
route: "/post_wishlist",
args: {
key: "screens_postWishlist"
}
},
vendor: {
type: "tab",
route: "/vendor_list",
args: {
key: "screens_vendorList"
}
},
vendorDetail: {
type: "screen",
route: "/vendor",
args: {
key: "screens_vendorDetail"
}
},
brands: {
type: "screen",
route: "/brand_list",
args: {
key: "screens_brands"
}
},
none: {
type: "screen",
route: "none",
args: {
key: "screens_none"
}
}
}
, eh = {
fieldId: "sidebar",
widgets: {
sidebar: {
id: "sidebar",
type: "sidebar",
fields: {
enableHeaderSidebar: !0,
alignHeader: "left",
enableCategory: !0,
alignCategory: "left",
showHierarchy: !0,
titleCategory: {
text: "Categories"
},
enableCount: !1,
enableImageCategory: !1,
includeCategory: [],
excludeCategory: [],
depth: 3,
enableCustomize: !0,
alignCustomize: "left",
enableIconCustomize: !0,
titleCustomize: {
text: "Help & Info"
},
itemsCustomize: [{
template: "default",
data: {
icon: {
name: "book",
type: "feather"
},
title: {
text: "Blog"
},
action: $p.posts
}
}, {
template: "default",
data: {
icon: {
name: "phone",
type: "feather"
},
title: {
text: "Contact us"
},
action: $p.contact
}
}]
},
styles: {
background: {
value: ec.white,
dark: ec.primaryDarkMode
},
color: {
value: ec.black,
dark: ec.white
},
borderColor: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
enableImageBg: !1,
imageBg: Zp.NoImage
},
layout: "default"
}
},
widgetIds: ["sidebar"],
configs: {
name: "Sidebar"
}
}
, th = {
id: "sidebar",
name: "Sidebar",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__headerSideBar: {
id: "__headerSideBar",
input: "heading",
defaultValue: "",
label: "Header Sidebar"
},
enableHeaderSidebar: {
id: "enableHeaderSidebar",
input: "switch",
defaultValue: !0,
label: "Enable Header Sidebar"
},
alignHeader: {
id: "alignHeader",
input: "alignment",
defaultValue: "left",
label: "Alignment"
},
__lineSideBar: {
id: "__lineSideBar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headerCategory: {
id: "__headerCategory",
input: "heading",
defaultValue: "",
label: "Categories"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Enable Categories"
},
alignCategory: {
id: "alignCategory",
input: "alignment",
defaultValue: "left",
label: "Alignment"
},
titleCategory: {
id: "titleCategory",
input: "text",
defaultValue: {
text: "Categories"
},
isTranslate: !0,
label: "Title"
},
showHierarchy: {
id: "showHierarchy",
input: "switch",
defaultValue: !0,
label: "Show hierarchy"
},
depth: {
id: "depth",
input: "select",
defaultValue: 3,
label: "Max Depth",
props: {
options: [{
key: 1,
text: "1"
}, {
key: 2,
text: "2"
}, {
key: 3,
text: "3"
}, {
key: 4,
text: "4"
}, {
key: 5,
text: "5"
}, {
key: 6,
text: "6"
}, {
key: 7,
text: "7"
}, {
key: 8,
text: "8"
}, {
key: 9,
text: "9"
}, {
key: 10,
text: "10"
}],
relationship: {
paths: ["fields", "showHierarchy"],
operator: "==",
value: !0
}
}
},
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !1,
label: "Show product counts"
},
enableImageCategory: {
id: "enableImageCategory",
input: "switch",
defaultValue: !1,
label: "Enable Image Categories"
},
includeCategory: {
id: "includeCategory",
input: "picker",
defaultValue: [],
label: "Include Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
excludeCategory: {
id: "excludeCategory",
input: "picker",
defaultValue: [],
label: "Exclude Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
__lineCategory: {
id: "__lineCategory",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headerCustomize: {
id: "__headerCustomize",
input: "heading",
defaultValue: "",
label: "Link Customize"
},
enableCustomize: {
id: "enableCustomize",
input: "switch",
defaultValue: !0,
label: "Enable Link Customize"
},
alignCustomize: {
id: "alignCustomize",
input: "alignment",
defaultValue: "left",
label: "Alignment"
},
enableIconCustomize: {
id: "enableIconCustomize",
input: "switch",
defaultValue: !0,
label: "Enable Icon"
},
titleCustomize: {
id: "titleCustomize",
input: "text",
defaultValue: {
text: "Help & Info"
},
isTranslate: !0,
label: "Title"
},
itemsCustomize: {
id: "itemsCustomize",
input: "items",
active: -1,
toggle: !0,
defaultValue: [{
template: "default",
data: {
icon: {
name: "book",
type: "feather"
},
title: {
text: "Blog"
},
action: $p.posts
}
}, {
template: "default",
data: {
icon: {
name: "phone",
type: "feather"
},
title: {
text: "Contact us"
},
action: $p.contact
}
}],
label: "Content Block",
props: {
preview: "sidebar",
templates: {
default: {
template: "default",
name: "Default",
data: {
icon: {
name: "book",
type: "feather"
},
title: {
text: "Blog"
},
action: "blog"
},
fields: {
icon: {
id: "icon:",
input: "icon",
defaultValue: {
name: "home",
type: "feather"
},
label: "Change Icon"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "Blog"
},
isTranslate: !0,
label: "Menu Title"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
}
},
keyItem: "title"
}
}
},
styles: {
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Background"
},
color: {
id: "color",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
label: "Text Color"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Border Color"
},
enableImageBg: {
id: "enableImageBg",
input: "switch",
defaultValue: !0,
label: "Enable Background Image"
},
imageBg: {
id: "imageBg",
input: "image",
defaultValue: {
src: ""
},
label: "Background Image"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Sidebar Overlay"
}, {
id: "style1",
name: "Sidebar Scale Right"
}, {
id: "style2",
name: "Sidebar Scale Rotate"
}, {
id: "style3",
name: "Sidebar Stack"
}, {
id: "style4",
name: "Sidebar Fixed Stack "
}, {
id: "style5",
name: "Sidebar Scale Bottom"
}, {
id: "style6",
name: "Sidebar Scale Top"
}, {
id: "style7",
name: "Sidebar 3D in"
}, {
id: "style8",
name: "Sidebar 3D out"
}, {
id: "style9",
name: "Sidebar Popup"
}]
}
}
, nh = [{
text: "Afghanistan",
imageInitials: "🇦🇫",
key: "AF",
secondaryText: "+93"
}, {
text: "Åland Islands",
imageInitials: "🇦🇽",
key: "AX",
secondaryText: "+358"
}, {
text: "Albania",
imageInitials: "🇦🇱",
key: "AL",
secondaryText: "+355"
}, {
text: "Algeria",
imageInitials: "🇩🇿",
key: "DZ",
secondaryText: "+213"
}, {
text: "American Samoa",
imageInitials: "🇦🇸",
key: "AS",
secondaryText: "+1684"
}, {
text: "Andorra",
imageInitials: "🇦🇩",
key: "AD",
secondaryText: "+376"
}, {
text: "Angola",
imageInitials: "🇦🇴",
key: "AO",
secondaryText: "+244"
}, {
text: "Anguilla",
imageInitials: "🇦🇮",
key: "AI",
secondaryText: "+1264"
}, {
text: "Antarctica",
imageInitials: "🇦🇶",
key: "AQ",
secondaryText: "+672"
}, {
text: "Antigua and Barbuda",
imageInitials: "🇦🇬",
key: "AG",
secondaryText: "+1268"
}, {
text: "Argentina",
imageInitials: "🇦🇷",
key: "AR",
secondaryText: "+54"
}, {
text: "Armenia",
imageInitials: "🇦🇲",
key: "AM",
secondaryText: "+374"
}, {
text: "Aruba",
imageInitials: "🇦🇼",
key: "AW",
secondaryText: "+297"
}, {
text: "Australia",
imageInitials: "🇦🇺",
key: "AU",
secondaryText: "+61"
}, {
text: "Austria",
imageInitials: "🇦🇹",
key: "AT",
secondaryText: "+43"
}, {
text: "Azerbaijan",
imageInitials: "🇦🇿",
key: "AZ",
secondaryText: "+994"
}, {
text: "Bahamas",
imageInitials: "🇧🇸",
key: "BS",
secondaryText: "+1242"
}, {
text: "Bahrain",
imageInitials: "🇧🇭",
key: "BH",
secondaryText: "+973"
}, {
text: "Bangladesh",
imageInitials: "🇧🇩",
key: "BD",
secondaryText: "+880"
}, {
text: "Barbados",
imageInitials: "🇧🇧",
key: "BB",
secondaryText: "+1246"
}, {
text: "Belarus",
imageInitials: "🇧🇾",
key: "BY",
secondaryText: "+375"
}, {
text: "Belgium",
imageInitials: "🇧🇪",
key: "BE",
secondaryText: "+32"
}, {
text: "Belize",
imageInitials: "🇧🇿",
key: "BZ",
secondaryText: "+501"
}, {
text: "Benin",
imageInitials: "🇧🇯",
key: "BJ",
secondaryText: "+229"
}, {
text: "Bermuda",
imageInitials: "🇧🇲",
key: "BM",
secondaryText: "+1441"
}, {
text: "Bhutan",
imageInitials: "🇧🇹",
key: "BT",
secondaryText: "+975"
}, {
text: "Bolivia, Plurinational State of bolivia",
imageInitials: "🇧🇴",
key: "BO",
secondaryText: "+591"
}, {
text: "Bosnia and Herzegovina",
imageInitials: "🇧🇦",
key: "BA",
secondaryText: "+387"
}, {
text: "Botswana",
imageInitials: "🇧🇼",
key: "BW",
secondaryText: "+267"
}, {
text: "Bouvet Island",
imageInitials: "🇧🇻",
key: "BV",
secondaryText: "+47"
}, {
text: "Brazil",
imageInitials: "🇧🇷",
key: "BR",
secondaryText: "+55"
}, {
text: "British Indian Ocean Territory",
imageInitials: "🇮🇴",
key: "IO",
secondaryText: "+246"
}, {
text: "Brunei Darussalam",
imageInitials: "🇧🇳",
key: "BN",
secondaryText: "+673"
}, {
text: "Bulgaria",
imageInitials: "🇧🇬",
key: "BG",
secondaryText: "+359"
}, {
text: "Burkina Faso",
imageInitials: "🇧🇫",
key: "BF",
secondaryText: "+226"
}, {
text: "Burundi",
imageInitials: "🇧🇮",
key: "BI",
secondaryText: "+257"
}, {
text: "Cambodia",
imageInitials: "🇰🇭",
key: "KH",
secondaryText: "+855"
}, {
text: "Cameroon",
imageInitials: "🇨🇲",
key: "CM",
secondaryText: "+237"
}, {
text: "Canada",
imageInitials: "🇨🇦",
key: "CA",
secondaryText: "+1"
}, {
text: "Cape Verde",
imageInitials: "🇨🇻",
key: "CV",
secondaryText: "+238"
}, {
text: "Cayman Islands",
imageInitials: "🇰🇾",
key: "KY",
secondaryText: "+345"
}, {
text: "Central African Republic",
imageInitials: "🇨🇫",
key: "CF",
secondaryText: "+236"
}, {
text: "Chad",
imageInitials: "🇹🇩",
key: "TD",
secondaryText: "+235"
}, {
text: "Chile",
imageInitials: "🇨🇱",
key: "CL",
secondaryText: "+56"
}, {
text: "China",
imageInitials: "🇨🇳",
key: "CN",
secondaryText: "+86"
}, {
text: "Christmas Island",
imageInitials: "🇨🇽",
key: "CX",
secondaryText: "+61"
}, {
text: "Cocos (Keeling) Islands",
imageInitials: "🇨🇨",
key: "CC",
secondaryText: "+61"
}, {
text: "Colombia",
imageInitials: "🇨🇴",
key: "CO",
secondaryText: "+57"
}, {
text: "Comoros",
imageInitials: "🇰🇲",
key: "KM",
secondaryText: "+269"
}, {
text: "Congo",
imageInitials: "🇨🇬",
key: "CG",
secondaryText: "+242"
}, {
text: "Congo, The Democratic Republic of the Congo",
imageInitials: "🇨🇩",
key: "CD",
secondaryText: "+243"
}, {
text: "Cook Islands",
imageInitials: "🇨🇰",
key: "CK",
secondaryText: "+682"
}, {
text: "Costa Rica",
imageInitials: "🇨🇷",
key: "CR",
secondaryText: "+506"
}, {
text: "Cote d'Ivoire",
imageInitials: "🇨🇮",
key: "CI",
secondaryText: "+225"
}, {
text: "Croatia",
imageInitials: "🇭🇷",
key: "HR",
secondaryText: "+385"
}, {
text: "Cuba",
imageInitials: "🇨🇺",
key: "CU",
secondaryText: "+53"
}, {
text: "Cyprus",
imageInitials: "🇨🇾",
key: "CY",
secondaryText: "+357"
}, {
text: "Czech Republic",
imageInitials: "🇨🇿",
key: "CZ",
secondaryText: "+420"
}, {
text: "Denmark",
imageInitials: "🇩🇰",
key: "DK",
secondaryText: "+45"
}, {
text: "Djibouti",
imageInitials: "🇩🇯",
key: "DJ",
secondaryText: "+253"
}, {
text: "Dominica",
imageInitials: "🇩🇲",
key: "DM",
secondaryText: "+1767"
}, {
text: "Dominican Republic",
imageInitials: "🇩🇴",
key: "DO",
secondaryText: "+1849"
}, {
text: "Ecuador",
imageInitials: "🇪🇨",
key: "EC",
secondaryText: "+593"
}, {
text: "Egypt",
imageInitials: "🇪🇬",
key: "EG",
secondaryText: "+20"
}, {
text: "El Salvador",
imageInitials: "🇸🇻",
key: "SV",
secondaryText: "+503"
}, {
text: "Equatorial Guinea",
imageInitials: "🇬🇶",
key: "GQ",
secondaryText: "+240"
}, {
text: "Eritrea",
imageInitials: "🇪🇷",
key: "ER",
secondaryText: "+291"
}, {
text: "Estonia",
imageInitials: "🇪🇪",
key: "EE",
secondaryText: "+372"
}, {
text: "Ethiopia",
imageInitials: "🇪🇹",
key: "ET",
secondaryText: "+251"
}, {
text: "Falkland Islands (Malvinas)",
imageInitials: "🇫🇰",
key: "FK",
secondaryText: "+500"
}, {
text: "Faroe Islands",
imageInitials: "🇫🇴",
key: "FO",
secondaryText: "+298"
}, {
text: "Fiji",
imageInitials: "🇫🇯",
key: "FJ",
secondaryText: "+679"
}, {
text: "Finland",
imageInitials: "🇫🇮",
key: "FI",
secondaryText: "+358"
}, {
text: "France",
imageInitials: "🇫🇷",
key: "FR",
secondaryText: "+33"
}, {
text: "French Guiana",
imageInitials: "🇬🇫",
key: "GF",
secondaryText: "+594"
}, {
text: "French Polynesia",
imageInitials: "🇵🇫",
key: "PF",
secondaryText: "+689"
}, {
text: "French Southern Territories",
imageInitials: "🇹🇫",
key: "TF",
secondaryText: "+262"
}, {
text: "Gabon",
imageInitials: "🇬🇦",
key: "GA",
secondaryText: "+241"
}, {
text: "Gambia",
imageInitials: "🇬🇲",
key: "GM",
secondaryText: "+220"
}, {
text: "Georgia",
imageInitials: "🇬🇪",
key: "GE",
secondaryText: "+995"
}, {
text: "Germany",
imageInitials: "🇩🇪",
key: "DE",
secondaryText: "+49"
}, {
text: "Ghana",
imageInitials: "🇬🇭",
key: "GH",
secondaryText: "+233"
}, {
text: "Gibraltar",
imageInitials: "🇬🇮",
key: "GI",
secondaryText: "+350"
}, {
text: "Greece",
imageInitials: "🇬🇷",
key: "GR",
secondaryText: "+30"
}, {
text: "Greenland",
imageInitials: "🇬🇱",
key: "GL",
secondaryText: "+299"
}, {
text: "Grenada",
imageInitials: "🇬🇩",
key: "GD",
secondaryText: "+1473"
}, {
text: "Guadeloupe",
imageInitials: "🇬🇵",
key: "GP",
secondaryText: "+590"
}, {
text: "Guam",
imageInitials: "🇬🇺",
key: "GU",
secondaryText: "+1671"
}, {
text: "Guatemala",
imageInitials: "🇬🇹",
key: "GT",
secondaryText: "+502"
}, {
text: "Guernsey",
imageInitials: "🇬🇬",
key: "GG",
secondaryText: "+44"
}, {
text: "Guinea",
imageInitials: "🇬🇳",
key: "GN",
secondaryText: "+224"
}, {
text: "Guinea-Bissau",
imageInitials: "🇬🇼",
key: "GW",
secondaryText: "+245"
}, {
text: "Guyana",
imageInitials: "🇬🇾",
key: "GY",
secondaryText: "+592"
}, {
text: "Haiti",
imageInitials: "🇭🇹",
key: "HT",
secondaryText: "+509"
}, {
text: "Heard Island and Mcdonald Islands",
imageInitials: "🇭🇲",
key: "HM",
secondaryText: "+672"
}, {
text: "Holy See (Vatican City State)",
imageInitials: "🇻🇦",
key: "VA",
secondaryText: "+379"
}, {
text: "Honduras",
imageInitials: "🇭🇳",
key: "HN",
secondaryText: "+504"
}, {
text: "Hong Kong",
imageInitials: "🇭🇰",
key: "HK",
secondaryText: "+852"
}, {
text: "Hungary",
imageInitials: "🇭🇺",
key: "HU",
secondaryText: "+36"
}, {
text: "Iceland",
imageInitials: "🇮🇸",
key: "IS",
secondaryText: "+354"
}, {
text: "India",
imageInitials: "🇮🇳",
key: "IN",
secondaryText: "+91"
}, {
text: "Indonesia",
imageInitials: "🇮🇩",
key: "ID",
secondaryText: "+62"
}, {
text: "Iran, Islamic Republic of Persian Gulf",
imageInitials: "🇮🇷",
key: "IR",
secondaryText: "+98"
}, {
text: "Iraq",
imageInitials: "🇮🇶",
key: "IQ",
secondaryText: "+964"
}, {
text: "Ireland",
imageInitials: "🇮🇪",
key: "IE",
secondaryText: "+353"
}, {
text: "Isle of Man",
imageInitials: "🇮🇲",
key: "IM",
secondaryText: "+44"
}, {
text: "Israel",
imageInitials: "🇮🇱",
key: "IL",
secondaryText: "+972"
}, {
text: "Italy",
imageInitials: "🇮🇹",
key: "IT",
secondaryText: "+39"
}, {
text: "Jamaica",
imageInitials: "🇯🇲",
key: "JM",
secondaryText: "+1876"
}, {
text: "Japan",
imageInitials: "🇯🇵",
key: "JP",
secondaryText: "+81"
}, {
text: "Jersey",
imageInitials: "🇯🇪",
key: "JE",
secondaryText: "+44"
}, {
text: "Jordan",
imageInitials: "🇯🇴",
key: "JO",
secondaryText: "+962"
}, {
text: "Kazakhstan",
imageInitials: "🇰🇿",
key: "KZ",
secondaryText: "+7"
}, {
text: "Kenya",
imageInitials: "🇰🇪",
key: "KE",
secondaryText: "+254"
}, {
text: "Kiribati",
imageInitials: "🇰🇮",
key: "KI",
secondaryText: "+686"
}, {
text: "Korea, Democratic People's Republic of Korea",
imageInitials: "🇰🇵",
key: "KP",
secondaryText: "+850"
}, {
text: "Korea, Republic of South Korea",
imageInitials: "🇰🇷",
key: "KR",
secondaryText: "+82"
}, {
text: "Kosovo",
imageInitials: "🇽🇰",
key: "XK",
secondaryText: "+383"
}, {
text: "Kuwait",
imageInitials: "🇰🇼",
key: "KW",
secondaryText: "+965"
}, {
text: "Kyrgyzstan",
imageInitials: "🇰🇬",
key: "KG",
secondaryText: "+996"
}, {
text: "Laos",
imageInitials: "🇱🇦",
key: "LA",
secondaryText: "+856"
}, {
text: "Latvia",
imageInitials: "🇱🇻",
key: "LV",
secondaryText: "+371"
}, {
text: "Lebanon",
imageInitials: "🇱🇧",
key: "LB",
secondaryText: "+961"
}, {
text: "Lesotho",
imageInitials: "🇱🇸",
key: "LS",
secondaryText: "+266"
}, {
text: "Liberia",
imageInitials: "🇱🇷",
key: "LR",
secondaryText: "+231"
}, {
text: "Libyan Arab Jamahiriya",
imageInitials: "🇱🇾",
key: "LY",
secondaryText: "+218"
}, {
text: "Liechtenstein",
imageInitials: "🇱🇮",
key: "LI",
secondaryText: "+423"
}, {
text: "Lithuania",
imageInitials: "🇱🇹",
key: "LT",
secondaryText: "+370"
}, {
text: "Luxembourg",
imageInitials: "🇱🇺",
key: "LU",
secondaryText: "+352"
}, {
text: "Macao",
imageInitials: "🇲🇴",
key: "MO",
secondaryText: "+853"
}, {
text: "Macedonia",
imageInitials: "🇲🇰",
key: "MK",
secondaryText: "+389"
}, {
text: "Madagascar",
imageInitials: "🇲🇬",
key: "MG",
secondaryText: "+261"
}, {
text: "Malawi",
imageInitials: "🇲🇼",
key: "MW",
secondaryText: "+265"
}, {
text: "Malaysia",
imageInitials: "🇲🇾",
key: "MY",
secondaryText: "+60"
}, {
text: "Maldives",
imageInitials: "🇲🇻",
key: "MV",
secondaryText: "+960"
}, {
text: "Mali",
imageInitials: "🇲🇱",
key: "ML",
secondaryText: "+223"
}, {
text: "Malta",
imageInitials: "🇲🇹",
key: "MT",
secondaryText: "+356"
}, {
text: "Marshall Islands",
imageInitials: "🇲🇭",
key: "MH",
secondaryText: "+692"
}, {
text: "Martinique",
imageInitials: "🇲🇶",
key: "MQ",
secondaryText: "+596"
}, {
text: "Mauritania",
imageInitials: "🇲🇷",
key: "MR",
secondaryText: "+222"
}, {
text: "Mauritius",
imageInitials: "🇲🇺",
key: "MU",
secondaryText: "+230"
}, {
text: "Mayotte",
imageInitials: "🇾🇹",
key: "YT",
secondaryText: "+262"
}, {
text: "Mexico",
imageInitials: "🇲🇽",
key: "MX",
secondaryText: "+52"
}, {
text: "Micronesia, Federated States of Micronesia",
imageInitials: "🇫🇲",
key: "FM",
secondaryText: "+691"
}, {
text: "Moldova",
imageInitials: "🇲🇩",
key: "MD",
secondaryText: "+373"
}, {
text: "Monaco",
imageInitials: "🇲🇨",
key: "MC",
secondaryText: "+377"
}, {
text: "Mongolia",
imageInitials: "🇲🇳",
key: "MN",
secondaryText: "+976"
}, {
text: "Montenegro",
imageInitials: "🇲🇪",
key: "ME",
secondaryText: "+382"
}, {
text: "Montserrat",
imageInitials: "🇲🇸",
key: "MS",
secondaryText: "+1664"
}, {
text: "Morocco",
imageInitials: "🇲🇦",
key: "MA",
secondaryText: "+212"
}, {
text: "Mozambique",
imageInitials: "🇲🇿",
key: "MZ",
secondaryText: "+258"
}, {
text: "Myanmar",
imageInitials: "🇲🇲",
key: "MM",
secondaryText: "+95"
}, {
text: "Namibia",
imageInitials: "🇳🇦",
key: "NA",
secondaryText: "+264"
}, {
text: "Nauru",
imageInitials: "🇳🇷",
key: "NR",
secondaryText: "+674"
}, {
text: "Nepal",
imageInitials: "🇳🇵",
key: "NP",
secondaryText: "+977"
}, {
text: "Netherlands",
imageInitials: "🇳🇱",
key: "NL",
secondaryText: "+31"
}, {
text: "Netherlands Antilles",
imageInitials: "",
key: "AN",
secondaryText: "+599"
}, {
text: "New Caledonia",
imageInitials: "🇳🇨",
key: "NC",
secondaryText: "+687"
}, {
text: "New Zealand",
imageInitials: "🇳🇿",
key: "NZ",
secondaryText: "+64"
}, {
text: "Nicaragua",
imageInitials: "🇳🇮",
key: "NI",
secondaryText: "+505"
}, {
text: "Niger",
imageInitials: "🇳🇪",
key: "NE",
secondaryText: "+227"
}, {
text: "Nigeria",
imageInitials: "🇳🇬",
key: "NG",
secondaryText: "+234"
}, {
text: "Niue",
imageInitials: "🇳🇺",
key: "NU",
secondaryText: "+683"
}, {
text: "Norfolk Island",
imageInitials: "🇳🇫",
key: "NF",
secondaryText: "+672"
}, {
text: "Northern Mariana Islands",
imageInitials: "🇲🇵",
key: "MP",
secondaryText: "+1670"
}, {
text: "Norway",
imageInitials: "🇳🇴",
key: "NO",
secondaryText: "+47"
}, {
text: "Oman",
imageInitials: "🇴🇲",
key: "OM",
secondaryText: "+968"
}, {
text: "Pakistan",
imageInitials: "🇵🇰",
key: "PK",
secondaryText: "+92"
}, {
text: "Palau",
imageInitials: "🇵🇼",
key: "PW",
secondaryText: "+680"
}, {
text: "Palestinian Territory, Occupied",
imageInitials: "🇵🇸",
key: "PS",
secondaryText: "+970"
}, {
text: "Panama",
imageInitials: "🇵🇦",
key: "PA",
secondaryText: "+507"
}, {
text: "Papua New Guinea",
imageInitials: "🇵🇬",
key: "PG",
secondaryText: "+675"
}, {
text: "Paraguay",
imageInitials: "🇵🇾",
key: "PY",
secondaryText: "+595"
}, {
text: "Peru",
imageInitials: "🇵🇪",
key: "PE",
secondaryText: "+51"
}, {
text: "Philippines",
imageInitials: "🇵🇭",
key: "PH",
secondaryText: "+63"
}, {
text: "Pitcairn",
imageInitials: "🇵🇳",
key: "PN",
secondaryText: "+64"
}, {
text: "Poland",
imageInitials: "🇵🇱",
key: "PL",
secondaryText: "+48"
}, {
text: "Portugal",
imageInitials: "🇵🇹",
key: "PT",
secondaryText: "+351"
}, {
text: "Puerto Rico",
imageInitials: "🇵🇷",
key: "PR",
secondaryText: "+1939"
}, {
text: "Qatar",
imageInitials: "🇶🇦",
key: "QA",
secondaryText: "+974"
}, {
text: "Romania",
imageInitials: "🇷🇴",
key: "RO",
secondaryText: "+40"
}, {
text: "Russia",
imageInitials: "🇷🇺",
key: "RU",
secondaryText: "+7"
}, {
text: "Rwanda",
imageInitials: "🇷🇼",
key: "RW",
secondaryText: "+250"
}, {
text: "Reunion",
imageInitials: "🇷🇪",
key: "RE",
secondaryText: "+262"
}, {
text: "Saint Barthelemy",
imageInitials: "🇧🇱",
key: "BL",
secondaryText: "+590"
}, {
text: "Saint Helena, Ascension and Tristan Da Cunha",
imageInitials: "🇸🇭",
key: "SH",
secondaryText: "+290"
}, {
text: "Saint Kitts and Nevis",
imageInitials: "🇰🇳",
key: "KN",
secondaryText: "+1869"
}, {
text: "Saint Lucia",
imageInitials: "🇱🇨",
key: "LC",
secondaryText: "+1758"
}, {
text: "Saint Martin",
imageInitials: "🇲🇫",
key: "MF",
secondaryText: "+590"
}, {
text: "Saint Pierre and Miquelon",
imageInitials: "🇵🇲",
key: "PM",
secondaryText: "+508"
}, {
text: "Saint Vincent and the Grenadines",
imageInitials: "🇻🇨",
key: "VC",
secondaryText: "+1784"
}, {
text: "Samoa",
imageInitials: "🇼🇸",
key: "WS",
secondaryText: "+685"
}, {
text: "San Marino",
imageInitials: "🇸🇲",
key: "SM",
secondaryText: "+378"
}, {
text: "Sao Tome and Principe",
imageInitials: "🇸🇹",
key: "ST",
secondaryText: "+239"
}, {
text: "Saudi Arabia",
imageInitials: "🇸🇦",
key: "SA",
secondaryText: "+966"
}, {
text: "Senegal",
imageInitials: "🇸🇳",
key: "SN",
secondaryText: "+221"
}, {
text: "Serbia",
imageInitials: "🇷🇸",
key: "RS",
secondaryText: "+381"
}, {
text: "Seychelles",
imageInitials: "🇸🇨",
key: "SC",
secondaryText: "+248"
}, {
text: "Sierra Leone",
imageInitials: "🇸🇱",
key: "SL",
secondaryText: "+232"
}, {
text: "Singapore",
imageInitials: "🇸🇬",
key: "SG",
secondaryText: "+65"
}, {
text: "Slovakia",
imageInitials: "🇸🇰",
key: "SK",
secondaryText: "+421"
}, {
text: "Slovenia",
imageInitials: "🇸🇮",
key: "SI",
secondaryText: "+386"
}, {
text: "Solomon Islands",
imageInitials: "🇸🇧",
key: "SB",
secondaryText: "+677"
}, {
text: "Somalia",
imageInitials: "🇸🇴",
key: "SO",
secondaryText: "+252"
}, {
text: "South Africa",
imageInitials: "🇿🇦",
key: "ZA",
secondaryText: "+27"
}, {
text: "South Sudan",
imageInitials: "🇸🇸",
key: "SS",
secondaryText: "+211"
}, {
text: "South Georgia and the South Sandwich Islands",
imageInitials: "🇬🇸",
key: "GS",
secondaryText: "+500"
}, {
text: "Spain",
imageInitials: "🇪🇸",
key: "ES",
secondaryText: "+34"
}, {
text: "Sri Lanka",
imageInitials: "🇱🇰",
key: "LK",
secondaryText: "+94"
}, {
text: "Sudan",
imageInitials: "🇸🇩",
key: "SD",
secondaryText: "+249"
}, {
text: "Suriname",
imageInitials: "🇸🇷",
key: "SR",
secondaryText: "+597"
}, {
text: "Svalbard and Jan Mayen",
imageInitials: "🇸🇯",
key: "SJ",
secondaryText: "+47"
}, {
text: "Swaziland",
imageInitials: "🇸🇿",
key: "SZ",
secondaryText: "+268"
}, {
text: "Sweden",
imageInitials: "🇸🇪",
key: "SE",
secondaryText: "+46"
}, {
text: "Switzerland",
imageInitials: "🇨🇭",
key: "CH",
secondaryText: "+41"
}, {
text: "Syrian Arab Republic",
imageInitials: "🇸🇾",
key: "SY",
secondaryText: "+963"
}, {
text: "Taiwan",
imageInitials: "🇹🇼",
key: "TW",
secondaryText: "+886"
}, {
text: "Tajikistan",
imageInitials: "🇹🇯",
key: "TJ",
secondaryText: "+992"
}, {
text: "Tanzania, United Republic of Tanzania",
imageInitials: "🇹🇿",
key: "TZ",
secondaryText: "+255"
}, {
text: "Thailand",
imageInitials: "🇹🇭",
key: "TH",
secondaryText: "+66"
}, {
text: "Timor-Leste",
imageInitials: "🇹🇱",
key: "TL",
secondaryText: "+670"
}, {
text: "Togo",
imageInitials: "🇹🇬",
key: "TG",
secondaryText: "+228"
}, {
text: "Tokelau",
imageInitials: "🇹🇰",
key: "TK",
secondaryText: "+690"
}, {
text: "Tonga",
imageInitials: "🇹🇴",
key: "TO",
secondaryText: "+676"
}, {
text: "Trinidad and Tobago",
imageInitials: "🇹🇹",
key: "TT",
secondaryText: "+1868"
}, {
text: "Tunisia",
imageInitials: "🇹🇳",
key: "TN",
secondaryText: "+216"
}, {
text: "Turkey",
imageInitials: "🇹🇷",
key: "TR",
secondaryText: "+90"
}, {
text: "Turkmenistan",
imageInitials: "🇹🇲",
key: "TM",
secondaryText: "+993"
}, {
text: "Turks and Caicos Islands",
imageInitials: "🇹🇨",
key: "TC",
secondaryText: "+1649"
}, {
text: "Tuvalu",
imageInitials: "🇹🇻",
key: "TV",
secondaryText: "+688"
}, {
text: "Uganda",
imageInitials: "🇺🇬",
key: "UG",
secondaryText: "+256"
}, {
text: "Ukraine",
imageInitials: "🇺🇦",
key: "UA",
secondaryText: "+380"
}, {
text: "United Arab Emirates",
imageInitials: "🇦🇪",
key: "AE",
secondaryText: "+971"
}, {
text: "United Kingdom",
imageInitials: "🇬🇧",
key: "GB",
secondaryText: "+44"
}, {
text: "United States",
imageInitials: "🇺🇸",
key: "US",
secondaryText: "+1"
}, {
text: "Uruguay",
imageInitials: "🇺🇾",
key: "UY",
secondaryText: "+598"
}, {
text: "Uzbekistan",
imageInitials: "🇺🇿",
key: "UZ",
secondaryText: "+998"
}, {
text: "Vanuatu",
imageInitials: "🇻🇺",
key: "VU",
secondaryText: "+678"
}, {
text: "Venezuela, Bolivarian Republic of Venezuela",
imageInitials: "🇻🇪",
key: "VE",
secondaryText: "+58"
}, {
text: "Vietnam",
imageInitials: "🇻🇳",
key: "VN",
secondaryText: "+84"
}, {
text: "Virgin Islands, British",
imageInitials: "🇻🇬",
key: "VG",
secondaryText: "+1284"
}, {
text: "Virgin Islands, U.S.",
imageInitials: "🇻🇮",
key: "VI",
secondaryText: "+1340"
}, {
text: "Wallis and Futuna",
imageInitials: "🇼🇫",
key: "WF",
secondaryText: "+681"
}, {
text: "Yemen",
imageInitials: "🇾🇪",
key: "YE",
secondaryText: "+967"
}, {
text: "Zambia",
imageInitials: "🇿🇲",
key: "ZM",
secondaryText: "+260"
}, {
text: "Zimbabwe",
imageInitials: "🇿🇼",
key: "ZW",
secondaryText: "+263"
}]
, rh = [{
key: "fill",
text: "Fill"
}, {
key: "contain",
text: "Contain"
}, {
key: "cover",
text: "Cover"
}, {
key: "fit-width",
text: "Fit Width"
}, {
key: "fit-height",
text: "Fit Height"
}, {
key: "none",
text: "None"
}, {
key: "scale-down",
text: "Scale Down"
}]
, ih = [{
key: "solid",
text: "Solid"
}, {
key: "dashed",
text: "Dashed"
}, {
key: "dotted",
text: "Dotted"
}, {
key: "none",
text: "None"
}]
, oh = [{
key: "none",
text: "None"
}, {
key: "underline",
text: "Underline"
}, {
key: "overline",
text: "Overline"
}, {
key: "line-through",
text: "Line Through"
}]
, ah = [{
key: "top-start",
text: "Top Start"
}, {
key: "top-center",
text: "Top Center"
}, {
key: "top-end",
text: "Top End"
}, {
key: "center-start",
text: "Center Start"
}, {
key: "center",
text: "Center"
}, {
key: "center-end",
text: "Center End"
}, {
key: "bottom-start",
text: "Bottom Start"
}, {
key: "bottom-center",
text: "Bottom Center"
}, {
key: "bottom-end",
text: "Bottom End"
}]
, lh = [{
key: "elevated",
text: "Elevated"
}, {
key: "outline",
text: "Outline"
}]
, sh = [{
key: "always",
text: "Always show"
}, {
key: "show_if",
text: "Show if"
}, {
key: "do_not_show_if",
text: "Do not show if"
}]
, ch = [{
key: "is_equal_to",
text: "is equal to"
}, {
key: "is_not_equal_to",
text: "is not equal to"
}, {
key: "is_empty",
text: "is empty"
}, {
key: "is_not_empty",
text: "is not empty"
}, {
key: "contains",
text: "contains"
}, {
key: "does_not_contain",
text: "doesn’t contain"
}, {
key: "match_regular_expressions",
text: "match regular expressions"
}, {
key: "is_less_than",
text: "is less than"
}, {
key: "is_less_or_equal_to",
text: "is less or equal to"
}, {
key: "is_greater_than",
text: "is greater than"
}, {
key: "is_greater_or_equal_to",
text: "is greater or equal to"
}]
, uh = [{
key: "long_link",
text: "Long Link"
}, {
key: "short_link",
text: "Short Link"
}]
, dh = {
default: {
template: "default",
name: "Default",
data: {
position: {
width: "",
height: "",
left: "0",
top: "0",
right: "",
bottom: ""
},
image: {
src: ""
},
imageSize: {
width: 375,
height: 300
},
fit: "cover",
delay: 5e3,
enableDragable: !1,
radius: 0,
shadowColor: {
value: ec.transparent,
dark: ec.transparent
},
elevation: 0,
action: $p.none
},
fields: {
position: {
id: "position",
input: "position",
defaultValue: {
width: "",
height: "",
left: "",
top: "",
right: "",
bottom: ""
},
label: "Position",
props: {
min: 0
}
},
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
label: "Choose image"
},
imageSize: {
id: "imageSize",
input: "size",
defaultValue: {
width: "375",
height: "300"
},
label: "Image size"
},
fit: {
id: "fit",
input: "select",
defaultValue: "cover",
label: "Box fit",
props: {
options: rh
}
},
delay: {
id: "delay",
input: "input-number",
defaultValue: "5000",
isStyle: !0,
label: "Delay(ms)",
props: {
min: 0,
max: 5e4,
step: 1
},
info: "Delay show or when banner is showed "
},
enableDragable: {
id: "enableDragable",
input: "switch",
defaultValue: !1,
label: "Enable dragable"
},
radius: {
id: "radius",
input: "input-number",
defaultValue: "0",
isStyle: !0,
label: "Border radius",
props: {
min: 0,
max: 300,
step: 1
}
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
elevation: {
id: "elevation",
input: "input-number",
defaultValue: "0",
isStyle: !0,
label: "Elevation",
props: {
min: 0,
max: 20,
step: .1
}
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Action"
}
}
}
}
, ph = {
fieldId: "general",
widgets: {
general: {
id: "general",
type: "general",
fields: {
forceLogin: !1,
forceLoginMobile: !1,
forceLoginCheckout: !1,
forceLoginAddToCart: !1,
enableSelectLanguage: !0,
enableOnBoarding: !0,
enableRegister: !0,
enableProductQuickView: !1,
loginView: "email",
enableCaptchaLogin: !0,
enableCaptchaRegister: !0,
enableCaptchaReviewProduct: !0,
enableCaptchaCommentPost: !0,
productItemLabelEnableNew: !0,
productItemLabelEnableSale: !0,
productItemLabelEnableRating: !0,
productItemEnableQuantity: !1,
productItemEnableAddCart: !0,
initCodeCountry: "US",
includeCountry: [],
excludeCountry: [],
loginProvider: "firebase",
lengthVerify: "6",
customCheckout: !1,
layoutCustomCheckoutPayment: "layout_horizontal",
pickupAddress: !1,
enableStickyBanner: !1,
itemStickyBanner: [{
template: "default",
active: !0,
data: {
position: {
width: "",
height: "",
left: "0",
top: "0",
right: "",
bottom: ""
},
image: {
src: ""
},
imageSize: {
width: 375,
height: 300
},
fit: "cover",
delay: 5e3,
enableDragable: !1,
radius: 0,
shadowColor: {
value: ec.transparent,
dark: ec.transparent
},
elevation: 0,
action: $p.none
}
}]
},
styles: {}
}
},
widgetIds: ["general"],
configs: {
name: "General"
}
}
, hh = {
id: "general",
name: "General",
content: "General settings",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
enableSelectLanguage: {
id: "enableSelectLanguage",
input: "switch",
defaultValue: !1,
label: "Enable languages screen"
},
enableLocationScreen: {
id: "enableLocationScreen",
input: "switch",
defaultValue: !1,
label: "Enable allow location screen"
},
loginView: {
id: "loginView",
input: "select",
defaultValue: "email",
label: "Default login method",
props: {
options: [{
key: "email",
text: "Username/Email"
}, {
key: "phone-number",
text: "Phone Number"
}]
}
},
forgotPasswordMethod: {
id: "forgotPasswordMethod",
input: "select",
defaultValue: "email",
label: "Forgot password method",
props: {
options: [{
key: "link",
text: "Send Link To Email"
}, {
key: "otp",
text: "Send OTP To Email"
}]
}
},
enableRegister: {
id: "enableRegister",
input: "switch",
defaultValue: !0,
label: "Enable register"
},
forceLogin: {
id: "forceLogin",
input: "switch",
defaultValue: !1,
label: "Force login"
},
forceLoginMobile: {
id: "forceLoginMobile",
input: "switch",
defaultValue: !1,
label: "Force login mobile"
},
forceLoginCheckout: {
id: "forceLoginCheckout",
input: "switch",
defaultValue: !1,
label: "Force login checkout"
},
forceLoginAddToCart: {
id: "forceLoginAddToCart",
input: "switch",
defaultValue: !1,
label: "Force login add to cart"
},
enableOnBoarding: {
id: "enableOnBoarding",
input: "switch",
defaultValue: !0,
label: "Enable on boarding"
},
enableProductQuickView: {
id: "enableProductQuickView",
input: "switch",
defaultValue: !0,
label: "Enable product quick view"
},
__line_captcha: {
id: "__line_captcha",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_captcha: {
id: "__header_captcha",
input: "heading",
defaultValue: "",
label: "Captcha"
},
enableCaptchaLogin: {
id: "enableCaptchaLogin",
input: "switch",
defaultValue: !0,
label: "Enable login"
},
enableCaptchaRegister: {
id: "enableCaptchaRegister",
input: "switch",
defaultValue: !0,
label: "Enable register"
},
enableCaptchaReviewProduct: {
id: "enableCaptchaReviewProduct",
input: "switch",
defaultValue: !0,
label: "Enable write review product"
},
enableCaptchaCommentPost: {
id: "enableCaptchaCommentPost",
input: "switch",
defaultValue: !0,
label: "Enable comment post"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Product item"
},
productItemLabelEnableNew: {
id: "productItemLabelEnableNew",
input: "switch",
defaultValue: !0,
label: "Enable label new"
},
productItemLabelEnableSale: {
id: "productItemLabelEnableSale",
input: "switch",
defaultValue: !0,
label: "Enable label sale"
},
productItemLabelEnableRating: {
id: "productItemLabelEnableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
productItemEnableQuantity: {
id: "productItemEnableQuantity",
input: "switch",
defaultValue: !1,
label: "Enable quantity"
},
productItemEnableAddCart: {
id: "productItemEnableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__lineCountry: {
id: "__lineCountry",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerCountry: {
id: "__headerCountry",
input: "heading",
defaultValue: "",
label: "Mobile login"
},
loginProvider: {
id: "loginProvider",
input: "select",
defaultValue: "firebase",
label: "Login provider",
props: {
options: [{
key: "firebase",
text: "Firebase"
}, {
key: "digits",
text: "Digits plugin"
}]
}
},
lengthVerify: {
id: "lengthVerify",
input: "input-number",
defaultValue: "6",
label: "Length verify vode",
props: {
min: 4,
max: 8
}
},
initCodeCountry: {
id: "initCodeCountry",
input: "select",
defaultValue: "US",
label: "Init country",
props: {
options: nh.map((function(e) {
return _t(_t({}, e), {}, {
text: "(".concat(e.secondaryText, ") ").concat(e.text)
})
}
))
}
},
includeCountry: {
id: "includeCountry",
input: "picker-country-number",
defaultValue: [],
label: "Include country"
},
excludeCountry: {
id: "excludeCountry",
input: "picker-country-number",
defaultValue: [],
label: "Exclude country"
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header2: {
id: "__header2",
input: "heading",
defaultValue: "",
label: "Checkout"
},
customCheckout: {
id: "customCheckout",
input: "switch",
defaultValue: !1,
label: "Checkout custom flow"
},
layoutCustomCheckoutPayment: {
id: "layoutCustomCheckoutPayment",
input: "select",
defaultValue: "layout_horizontal",
label: "Layout custom checkout payment",
props: {
options: [{
key: "layout_horizontal",
text: "Horizontal"
}, {
key: "layout_vertical",
text: "Vertical"
}],
relationship: {
paths: ["fields", "customCheckout"],
operator: "==",
value: !0
}
}
},
pickupAddress: {
id: "pickupAddress",
input: "switch",
defaultValue: !1,
label: "Pickup address from map"
},
__line_sticky_banner: {
id: "__line_sticky_banner",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_sticky_banner: {
id: "__header_sticky_banner",
input: "heading",
defaultValue: "",
label: "Sticky banners"
},
enableStickyBanner: {
id: "enableStickyBanner",
input: "switch",
defaultValue: !1,
label: "Enable sticky banners"
},
itemStickyBanner: {
id: "itemStickyBanner",
input: "items",
active: 0,
toggle: !0,
defaultValue: [{
template: "default",
active: !0,
data: {
position: {
width: "",
height: "",
left: "0",
top: "0",
right: "",
bottom: ""
},
image: {
src: ""
},
imageSize: {
width: 375,
height: 300
},
fit: "cover",
delay: 5e3,
enableDragable: !1,
radius: 0,
shadowColor: {
value: ec.transparent,
dark: ec.transparent
},
elevation: 0,
action: $p.none
}
}],
label: "Items",
props: {
templates: dh
}
}
}
}
, fh = {
fieldId: "theme",
widgets: {
theme: {
id: "theme",
type: "theme",
fields: {
fontFamilyBody: "Poppins",
fontFamily: "Poppins",
displayColor: {
value: ec.primaryText,
dark: ec.white
},
bodyColor: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
cardColor: {
value: ec.white,
dark: ec.secondaryDarkMode
},
primary: {
value: ec.primaryColor,
dark: ec.primaryColor
},
primaryVariant: {
value: ec.pressColor,
dark: ec.pressColor
},
secondary: {
value: ec.blue,
dark: ec.blue
},
secondaryVariant: {
value: ec.blue,
dark: ec.blue
},
surface: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
error: {
value: ec.redColor,
dark: ec.redColor
},
onPrimary: {
value: ec.white,
dark: ec.white
},
onSecondary: {
value: ec.white,
dark: ec.white
},
onSurface: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
onError: {
value: ec.white,
dark: ec.white
},
success: {
value: ec.greenColor,
dark: ec.greenColor
},
onSuccess: {
value: ec.white,
dark: ec.white
},
warning: {
value: ec.yellowColor,
dark: ec.yellowColor
},
onWarning: {
value: ec.white,
dark: ec.white
},
appBarBackgroundColor: {
value: ec.white,
dark: ec.primaryDarkMode
},
appBarIconColor: {
value: ec.black,
dark: ec.white
},
appBarTextColor: {
value: ec.black,
dark: ec.white
},
appBarShadowColor: {
value: ec.black,
dark: ec.white
},
appBarElevation: 4,
scaffoldBackgroundColor: {
value: ec.white,
dark: ec.primaryDarkMode
},
textFieldsType: "filled",
textFieldsBorderRadius: "8",
textFieldsBorderWidth: "1",
textFieldsBorderColor: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
textFieldsLabelColor: {
value: ec.primaryText,
dark: ec.white
},
textFieldsLabelFontSize: "14",
textFieldsLabelFontWeight: "3",
textFieldsPadding: {
textFieldsPaddingLeft: 0,
textFieldsPaddingRight: 0,
textFieldsPaddingBottom: 0,
textFieldsPaddingTop: 0
},
buttonBorderRadius: "8",
dividerColor: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
brightnessLight: 1,
brightnessDark: 0
},
styles: {}
}
},
widgetIds: ["theme"],
configs: {
name: "Theme"
}
}
, bh = {
id: "theme",
name: "Theme",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
headerTypography: {
id: "headerTypography",
input: "heading",
defaultValue: "",
label: "Typography"
},
fontFamily: {
id: "fontFamily",
input: "font",
defaultValue: "Poppins",
label: "Heading Font Family"
},
fontFamilyBody: {
id: "fontFamilyBody",
input: "font",
defaultValue: "Poppins",
label: "Body Font Family"
},
displayColor: {
id: "displayColor",
input: "color",
defaultValue: {
value: ec.primaryText,
dark: ec.white
},
label: "Display Color",
info: "The `displayColor` is applied to [headline4], [headline3], [headline2], [headline1], and [caption]. The `bodyColor` is applied to the remaining text styles."
},
bodyColor: {
id: "bodyColor",
input: "color",
defaultValue: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
label: "Body Color",
info: "The `displayColor` is applied to [headline4], [headline3], [headline2], [headline1], and [caption]. The `bodyColor` is applied to the remaining text styles."
},
lineSchema: {
id: "lineSchema",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerColorSchema: {
id: "headerColorSchema",
input: "heading",
defaultValue: "",
label: "Colors Schema"
},
primary: {
id: "primary",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Primary Color",
info: "A primary color is the color displayed most frequently across your app's screens and components."
},
primaryVariant: {
id: "primaryVariant",
input: "color",
defaultValue: {
value: ec.pressColor,
dark: ec.pressColor
},
label: "Primary Variant Color"
},
onPrimary: {
id: "onPrimary",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Primary Color"
},
secondary: {
id: "secondary",
input: "color",
defaultValue: {
value: ec.blue,
dark: ec.blue
},
label: "Secondary Color",
info: "A secondary color provides more ways to accent and distinguish your product. Having a secondary color is optional, and should be applied sparingly to accent select parts of your UI."
},
secondaryVariant: {
id: "secondaryVariant",
input: "color",
defaultValue: {
value: ec.blue,
dark: ec.blue
},
label: "Secondary Variant Color"
},
onSecondary: {
id: "onSecondary",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Secondary Color"
},
surface: {
id: "surface",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Surface Color",
info: "Surface colors affect surfaces of components, such as cards, sheets, and menus."
},
onSurface: {
id: "onSurface",
input: "color",
defaultValue: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
label: "On Surface Color"
},
error: {
id: "error",
input: "color",
defaultValue: {
value: ec.redColor,
dark: ec.redColor
},
label: "Error Color",
info: "Error color indicates errors in components, such as invalid text in a text field. The baseline error color is #F01F0E."
},
onError: {
id: "onError",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Error Color"
},
success: {
id: "success",
input: "color",
defaultValue: {
value: ec.greenColor,
dark: ec.greenColor
},
label: "Success Color",
info: "Success color indicates success in components, such as invalid text in a text field. The baseline success color is #21BA45."
},
onSuccess: {
id: "onSuccess",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Success Color"
},
warning: {
id: "warning",
input: "color",
defaultValue: {
value: ec.yellowColor,
dark: ec.yellowColor
},
label: "Warning Color",
info: "Warning color indicates warning in components, such as invalid text in a text field. The baseline warning color is #FFA200."
},
onWarning: {
id: "onWarning",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "On Warning Color"
},
lineColorAppbar: {
id: "lineColorAppbar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerColorLabelAppbar: {
id: "headerColorLabelAppbar",
input: "heading",
defaultValue: "",
label: "Appbar"
},
appBarBackgroundColor: {
id: "appBarBackgroundColor",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Appbar Background Color"
},
appBarIconColor: {
id: "appBarIconColor",
input: "color",
defaultValue: {
value: ec.primaryText,
dark: ec.white
},
label: "Appbar Icon Color"
},
appBarTextColor: {
id: "appBarTextColor",
input: "color",
defaultValue: {
value: ec.primaryText,
dark: ec.white
},
label: "Appbar Text Color"
},
appBarShadowColor: {
id: "appBarShadowColor",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
label: "Appbar Shadow Color"
},
appBarElevation: {
id: "appBarElevation",
input: "input-number",
defaultValue: "4",
isStyle: !0,
label: "App Bar Elevation",
info: "The z-coordinate at which to place this material relative to its parent.",
props: {
min: 0,
max: 20,
step: .1
}
},
lineColorLabelScaffold: {
id: "lineColorLabelScaffold",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerColorTextScaffold: {
id: "headerColorTextScaffold",
input: "heading",
defaultValue: "",
label: "Scaffold"
},
scaffoldBackgroundColor: {
id: "scaffoldBackgroundColor",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Scaffold Background Color",
info: "The default color of the Material that underlies the Scaffold. The background color for a typical material app or a page within the app."
},
lineColorLabelTextFields: {
id: "lineColorLabelScaffold",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerColorTextTextFields: {
id: "headerColorTextScaffold",
input: "heading",
defaultValue: "",
label: "Text fields"
},
textFieldsType: {
id: "textFieldsType",
input: "select",
defaultValue: "filled",
label: "Text fields type",
props: {
options: [{
key: "filled",
text: "Filled"
}, {
key: "outlined",
text: "Outlined"
}]
}
},
textFieldsBorderRadius: {
id: "textFieldsBorderRadius",
input: "input-number",
defaultValue: "0",
isStyle: !0,
label: "Text fields border radius",
props: {
min: 0,
max: 50,
step: 1
}
},
textFieldsBorderWidth: {
id: "textFieldsBorderWidth",
input: "input-number",
defaultValue: "0",
isStyle: !0,
label: "Text fields border width",
props: {
min: 0,
max: 10,
step: 1
}
},
textFieldsBorderColor: {
id: "textFieldsBorderColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Text fields border color"
},
textFieldsLabelColor: {
id: "textFieldsLabelColor",
input: "color",
defaultValue: {
value: ec.primaryText,
dark: ec.white
},
label: "Text fields label color"
},
textFieldsLabelFontSize: {
id: "textFieldsLabelFontSize",
input: "input-number",
defaultValue: "0",
isStyle: !0,
label: "Text fields label font size",
props: {
min: 8,
max: 64,
step: 1
}
},
textFieldsLabelFontWeight: {
id: "textFieldsLabelFontWeight",
input: "select",
defaultValue: "3",
label: "Text fields label font weight",
props: {
options: [{
key: "0",
text: "w100"
}, {
key: "1",
text: "w200"
}, {
key: "2",
text: "w300"
}, {
key: "3",
text: "w400"
}, {
key: "4",
text: "w500"
}, {
key: "5",
text: "w600"
}, {
key: "6",
text: "w700"
}, {
key: "7",
text: "w800"
}, {
key: "8",
text: "w900"
}]
}
},
textFieldsPadding: {
id: "textFieldsPadding",
input: "spacing",
defaultValue: {
textFieldsPaddingLeft: 0,
textFieldsPaddingRight: 0,
textFieldsPaddingBottom: 0,
textFieldsPaddingTop: 0
},
label: "Text fields content padding",
props: {}
},
lineColorLabelButton: {
id: "lineColorLabelScaffold",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerColorTextButton: {
id: "headerColorTextScaffold",
input: "heading",
defaultValue: "",
label: "Button"
},
buttonBorderRadius: {
id: "buttonBorderRadius",
input: "input-number",
defaultValue: "8",
isStyle: !0,
label: "Button border radius",
props: {
min: 0,
max: 150,
step: 1
}
},
lineColorLabelDivider: {
id: "lineColorLabelDivider",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerColorTextDivider: {
id: "headerColorTextDivider",
input: "heading",
defaultValue: "",
label: "Divider"
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Divider Color",
info: "The color of Dividers and PopupMenuDividers, also used between ListTiles, between rows in DataTables, and so forth."
},
lineStatusBar: {
id: "lineStatusBar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerStatusBar: {
id: "headerStatusBar",
input: "heading",
defaultValue: "",
label: "Status Bar"
},
brightnessLight: {
id: "brightnessLight",
input: "select",
defaultValue: 1,
label: "Brightness for Light Mode",
props: {
options: [{
key: 0,
text: "Dark"
}, {
key: 1,
text: "Light"
}]
}
},
brightnessDark: {
id: "brightnessDark",
input: "select",
defaultValue: 0,
label: "Brightness for Dark Mode",
props: {
options: [{
key: 0,
text: "Dark"
}, {
key: 1,
text: "Light"
}]
}
},
lineCardColor: {
id: "lineCardColor",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerCardColor: {
id: "headerCardColor",
input: "heading",
defaultValue: "",
label: "Card"
},
cardColor: {
id: "cardColor",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.secondaryDarkMode
},
label: "Card Color"
}
}
}
, gh = n(29)
, mh = n.n(gh)
, vh = n(16)
, yh = n.n(vh)
, xh = n(291)
, Oh = n.n(xh);
function jh(e, t) {
return t
}
var kh = function(e) {
return e.content,
_t(_t({}, e), {}, {
content: "string" == typeof e.content ? e.content : JSON.stringify(e.content)
})
}
, wh = function(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "==";
return "!=" === n || "!==" === n ? e !== t : "include" === n && yh()(t) ? t.indexOf(e) > -1 : "exclude" === n && yh()(t) ? t.indexOf(e) < 0 : mh()(e, t)
}
, Ch = function() {
var e, t, n, r = null !== (e = null === (t = window) || void 0 === t || null === (n = t.app_builder) || void 0 === n ? void 0 : n.sizes) && void 0 !== e ? e : {};
return r ? Object.keys(r).map((function(e) {
var t, n, i = r[e];
return {
key: e,
text: "".concat(e, ": ").concat(null !== (t = null == i ? void 0 : i.width) && void 0 !== t ? t : 0, " x ").concat(null !== (n = null == i ? void 0 : i.height) && void 0 !== n ? n : 0)
}
}
)) : [{
key: "thumbnail",
text: "thumbnail"
}]
}
, _h = {
id: "thumbSizes",
input: "select",
defaultValue: "shop_catalog",
props: {
options: Ch()
},
label: "Thumb Size"
}
, Mh = {
fieldId: "categoryPage",
widgets: {
categoryPage: {
id: "categoryPage",
type: "categoryPage",
fields: {
excludeCategory: [],
includeCategory: [],
styleView: "list",
columnGrid: 2,
childAspectRatio: 1,
enableShowAll: !0,
enableChangeNameShowAll: !0,
positionShowAll: "start",
textShowAll: {
text: "Show all"
},
padItem: 16,
template: {
template: "horizontal",
data: {
enableSubcategories: !0,
enableImage: !0,
enableNumber: !0,
enableShadow: !1,
enableBorder: !1,
borderColor: {
dark: ec.white,
value: ec.white
}
}
}
},
styles: {
padding: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
margin: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
backgroundItems: {
dark: ec.secondaryDarkMode,
value: ec.grayColor
},
backgroundItem: {
dark: ec.secondaryDarkMode,
value: ec.grayColor
},
radiusItem: 8,
radiusImage: 0,
textColor: {
dark: ec.white,
value: ec.black
},
sizeText: 16,
subtextColor: {
dark: ec.secondaryTextDarkMode,
value: ec.tertiaryText
},
sizeSubtext: 12
},
layout: "horizontal"
}
},
widgetIds: ["categoryPage"],
configs: {
name: "Category",
appBarType: "floating",
appbarColorOnTop: {
dark: ec.transparent,
value: ec.transparent
},
iconAppbarColorOnTop: {
dark: ec.white,
value: ec.white
},
enableSearch: !0,
enableCart: !0,
enableBanner: !0,
widthBanner: 335,
heightBanner: 80,
radiusBanner: 8,
imageBanner: {
src: ""
}
},
action: $p.category
}
, Sh = {
id: "categoryPage",
name: "Category",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
excludeCategory: {
id: "excludeCategory",
input: "picker",
defaultValue: [],
label: "Exclude Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
includeCategory: {
id: "includeCategory",
input: "picker",
defaultValue: [],
label: "Include Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
styleView: {
id: "styleView",
input: "select",
defaultValue: "list",
label: "View",
props: {
options: [{
key: "grid",
text: "Grid"
}, {
key: "list",
text: "List"
}]
}
},
columnGrid: {
id: "columnGrid",
input: "input-number",
defaultValue: "1",
label: "Column Grid",
info: "Only use when View == Grid",
props: {
min: 2,
max: 4,
relationship: {
paths: ["fields", "styleView"],
operator: "==",
value: "grid"
}
}
},
childAspectRatio: {
id: "childAspectRatio",
input: "input-number",
defaultValue: "1",
label: "Child Aspect Ratio",
info: "Only use when View == Grid",
props: {
min: .1,
max: 3,
step: .1,
relationship: {
paths: ["fields", "styleView"],
operator: "==",
value: "grid"
}
}
},
lineSetup: {
id: "lineSetup",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerShowAll: {
id: "headerShowAll",
input: "heading",
defaultValue: "",
label: "Item Show all"
},
enableShowAll: {
id: "enableShowAll",
input: "switch",
defaultValue: !0,
label: "Enable Item Show all"
},
enableChangeNameShowAll: {
id: "enableChangeNameShowAll",
input: "switch",
defaultValue: !0,
label: "Enable Change Name Item Show all"
},
positionShowAll: {
id: "positionShowAll",
input: "select",
defaultValue: "start",
label: "Position Item Show all",
props: {
options: [{
key: "start",
text: "Start"
}, {
key: "end",
text: "End"
}]
}
},
textShowAll: {
id: "textShowAll",
input: "text",
defaultValue: {
text: "Show all"
},
isTranslate: !0,
label: "Text Show all"
},
lineItemShowAll: {
id: "lineItemShowAll",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerItem: {
id: "headerItem",
input: "heading",
defaultValue: "",
label: "General Item"
},
padItem: {
id: "padItem",
input: "slider",
defaultValue: 16,
label: "Padding Item"
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "horizontal",
data: {
enableSubcategories: !0,
enableImage: !0,
enableNumber: !0,
enableShadow: !1,
enableBorder: !1,
borderColor: {
dark: ec.white,
value: ec.white
}
}
},
label: "Select template",
props: {
preview: "categoryPage",
templates: {
horizontal: {
template: "horizontal",
name: "Item Horizontal",
data: {
enableSubcategories: !0,
enableImage: !0,
thumbSizes: "shop_catalog",
enableNumber: !0,
enableShadow: !1,
enableBorder: !1,
borderColor: {
dark: ec.white,
value: ec.white
}
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable Image"
},
thumbSizes: _h,
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
enableShadow: {
id: "enableShadow",
input: "switch",
defaultValue: !1,
label: "Enable shadow"
},
enableBorder: {
id: "enableBorder",
input: "switch",
defaultValue: !1,
label: "Enable border"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "Border color"
}
}
},
card: {
template: "card",
name: "Item Card",
data: {
thumbSizes: "shop_catalog",
enableSubcategories: !0,
enableImage: !0,
enableNumber: !0,
enableRound: !0,
enableShadow: !1,
enableBorder: !1,
borderColor: {
dark: ec.white,
value: ec.white
}
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable Image"
},
thumbSizes: _h,
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
enableRound: {
id: "enableRound",
input: "switch",
defaultValue: !0,
label: "Enable round image"
},
enableShadow: {
id: "enableShadow",
input: "switch",
defaultValue: !1,
label: "Enable shadow"
},
enableBorder: {
id: "enableBorder",
input: "switch",
defaultValue: !1,
label: "Enable border"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "Border color"
}
}
},
overlay: {
template: "overlay",
name: "Item Overlay",
data: {
thumbSizes: "shop_catalog",
enableSubcategories: !0,
enableNumber: !0,
alignment: "center",
opacityColor: {
dark: ec.primaryDarkMode,
value: ec.black
},
opacity: .6
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
thumbSizes: _h,
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "center",
label: "Alignment"
},
opacityColor: {
id: "opacityColor",
input: "color",
defaultValue: {
dark: ec.primaryDarkMode,
value: ec.black
},
label: "Opacity Color"
},
opacity: {
id: "opacity",
input: "slider",
defaultValue: .6,
label: "Opacity",
props: {
min: 0,
max: 1,
step: .1
}
}
}
},
contained: {
template: "contained",
name: "Item Contained",
data: {
thumbSizes: "shop_catalog",
enableSubcategories: !0,
enableImage: !0,
enableNumber: !0,
enableRound: !1,
enableBorder: !0,
borderColor: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
}
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable Image"
},
thumbSizes: _h,
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
enableRound: {
id: "enableRound",
input: "switch",
defaultValue: !1,
label: "Enable Round"
},
enableBorder: {
id: "enableBorder",
input: "switch",
defaultValue: !0,
label: "Enable Border"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Border color"
}
}
},
grid: {
template: "grid",
name: "Item Grid",
data: {
thumbSizes: "shop_catalog",
enableSubcategories: !0,
enableNumber: !0,
maxCountSubcategory: "6",
columnSubcategory: "3",
enableRoundSubcategory: !1,
radiusSubCategory: 8,
enableBorderSubcategory: !0,
borderColorSubCategory: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
sizeSubcategory: 12,
textColorSubcategory: {
dark: ec.white,
value: ec.black
}
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
thumbSizes: _h,
headerItemParent: {
id: "headerItemParent",
input: "heading",
defaultValue: "",
label: "Config Subcategory"
},
maxCountSubcategory: {
id: "maxCountSubcategory",
input: "input-number",
defaultValue: "6",
label: "Max Length Subcategory",
props: {
min: 1,
max: 12
}
},
columnSubcategory: {
id: "columnSubcategory",
input: "input-number",
defaultValue: "3",
label: "Column subcategory",
props: {
min: 2,
max: 4
}
},
enableRoundSubcategory: {
id: "enableRoundSubcategory",
input: "switch",
defaultValue: !1,
label: "Enable Round Subcategory"
},
enableBorderSubcategory: {
id: "enableBorderSubcategory",
input: "switch",
defaultValue: !0,
label: "Enable Border Subcategory"
},
radiusSubCategory: {
id: "enableRadiusSubCategory",
input: "slider",
defaultValue: 8,
label: "Border radius Image Subcategory"
},
borderColorSubCategory: {
id: "borderColorSubCategory",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Border color Subcategory"
},
sizeSubcategory: {
id: "sizeSubcategory",
input: "input-number",
defaultValue: 12,
label: "Font Size Subcategory",
props: {
min: 5,
max: 40
}
},
textColorSubcategory: {
id: "textColorSubcategory",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color Subcategory"
}
}
},
basic: {
template: "basic",
name: "Item Basic",
data: {
thumbSizes: "shop_catalog",
enableSubcategories: !0,
enableNumber: !0,
enableIcon: !0,
enableBorder: !0,
iconSize: 16,
iconColor: {
dark: ec.white,
value: ec.black
},
borderColor: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
}
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
thumbSizes: _h,
enableIcon: {
id: "enableIcon",
input: "switch",
defaultValue: !0,
label: "Enable Icon"
},
iconSize: {
id: "iconSize",
input: "input-number",
defaultValue: 16,
label: "Icon size"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Icon color",
props: {
min: 5,
max: 40
}
},
enableBorder: {
id: "enableBorder",
input: "switch",
defaultValue: !0,
label: "Enable Border"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Border color"
}
}
},
"horizontal-over": {
template: "horizontal-over",
name: "Item Horizontal Image Over",
data: {
enableSubcategories: !0,
alignmentView: "left",
enableImage: !0,
thumbSizes: "shop_catalog",
enableNumber: !0,
enableShadow: !1,
enableBorder: !1,
borderColor: {
dark: ec.white,
value: ec.white
}
},
fields: {
enableSubcategories: {
id: "enableSubcategories",
input: "switch",
defaultValue: !0,
label: "Enable Subcategories"
},
alignmentView: {
id: "alignmentView",
input: "alignment",
defaultValue: "left",
label: "Alignment",
props: {
lists: [{
key: "left",
icon: "ThumbnailView"
}, {
key: "zigzag",
icon: "SecondaryNav"
}, {
key: "right",
icon: "ThumbnailViewMirrored"
}]
}
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable Image"
},
thumbSizes: _h,
enableNumber: {
id: "enableItems",
input: "switch",
defaultValue: !0,
label: "Enable number"
},
enableShadow: {
id: "enableShadow",
input: "switch",
defaultValue: !1,
label: "Enable shadow"
},
enableBorder: {
id: "enableBorder",
input: "switch",
defaultValue: !1,
label: "Enable border"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "Border color"
}
}
}
},
single: !0
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
backgroundItems: {
id: "backgroundItems",
input: "color",
defaultValue: {
dark: ec.grayColor,
value: ec.secondaryDarkMode
},
label: "Background children Items",
info: "Only set layout = vertical",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "vertical"
}
}
},
lineItem: {
id: "lineItem",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerItem: {
id: "headerItem",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundItem: {
id: "backgroundItem",
input: "color",
defaultValue: {
dark: ec.secondaryDarkMode,
value: ec.grayColor
},
label: "Background Item"
},
radiusItem: {
id: "radiusItem",
input: "slider",
defaultValue: 8,
label: "Radius Item"
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 0,
label: "Radius Image Item"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text Color Item"
},
sizeText: {
id: "sizeText",
input: "input-number",
defaultValue: "16",
label: "Text Font size Item",
props: {
min: 1,
max: 200
}
},
subtextColor: {
id: "subtextColor",
input: "color",
defaultValue: {
dark: ec.secondaryTextDarkMode,
value: ec.tertiaryText
},
label: "Subtext Color Item"
},
sizeSubtext: {
id: "sizeSubtext",
input: "input-number",
defaultValue: "12",
label: "Subtext Font size Item",
props: {
min: 5,
max: 40
}
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "vertical",
name: "Vertical"
}, {
id: "horizontal",
name: "Horizontal"
}]
}
}
, Ah = {
fieldId: "onBoardingPage",
widgets: {
onBoardingPage: {
id: "onBoardingPage",
type: "onBoardingPage",
fields: {
enablePagination: !0,
items: [{
template: "default",
active: !0,
data: {
image: {
src: ""
},
title: {
text: "Find Your Outfits."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
}
}, {
template: "default",
data: {
image: {
src: ""
},
title: {
text: "Discover Trend."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
}
}, {
template: "default",
data: {
image: {
src: ""
},
title: {
text: "Online fashion."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
}
}]
},
styles: {
backgroundItem: {
value: ec.white,
dark: ec.primaryDarkMode
},
titleColor: {
value: ec.black,
dark: ec.primaryDarkMode
},
subtitleColor: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
titleSize: 28,
subtitleSize: 14,
skipColor: {
value: ec.tertiaryText,
dark: ec.white
},
opacity: .9,
gradientFrom: {
value: ec.transparent,
dark: ec.transparent
},
gradientTo: {
value: {
r: 33,
g: 11,
b: 1,
a: 1
},
dark: {
r: 33,
g: 11,
b: 1,
a: 1
}
},
dividerColor: {
value: {
r: 255,
g: 255,
b: 255,
a: .2
},
dark: {
r: 255,
g: 255,
b: 255,
a: .2
}
},
indicatorColor: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
indicatorActiveColor: {
value: ec.tertiaryText,
dark: ec.white
}
}
}
},
widgetIds: ["onBoardingPage"],
configs: {
name: "On Boarding"
},
action: $p.onBoarding
}
, Th = {
id: "onBoardingPage",
name: "On Boarding page",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
enablePagination: {
id: "enablePagination",
input: "switch",
defaultValue: !0,
label: "Enable pagination"
},
items: {
id: "items",
input: "items",
active: 0,
toggle: !0,
defaultValue: [{
template: "default",
active: !0,
data: {
image: {
src: ""
},
title: {
text: "Find Your Outfits."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
}
}, {
template: "default",
data: {
image: {
src: ""
},
title: {
text: "Discover Trend."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
}
}, {
template: "default",
data: {
image: {
src: ""
},
title: {
text: "Online fashion."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
}
}],
label: "Item",
props: {
preview: "onBoardingPage",
templates: {
default: {
template: "default",
name: "Item Default",
data: {
image: {
src: ""
},
title: {
text: "Find Your Outfits."
},
subTitle: {
text: "Lorem Ipsum is simply dummy text of the printing and typesetting industry"
}
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
label: "Choose image"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Title"
},
subTitle: {
id: "subTitle",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Sub Title"
}
}
}
},
keyItem: "title"
}
}
},
styles: {
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundItem: {
id: "backgroundItem",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Background"
},
titleColor: {
id: "titleColor",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.primaryDarkMode
},
label: "Title Color"
},
subtitleColor: {
id: "subtitleColor",
input: "color",
defaultValue: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
label: "Sub title Color"
},
titleSize: {
id: "titleSize",
input: "input-number",
defaultValue: 28,
label: "Title font Size"
},
subtitleSize: {
id: "subtitleSize",
input: "input-number",
defaultValue: 14,
label: "Sub title Color"
},
skipColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Text skip Color"
},
opacity: {
id: "opacity",
input: "input-number",
defaultValue: .9,
label: "Opacity Color",
props: {
min: 0,
max: 1,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "overlay"
}
}
},
gradientFrom: {
id: "gradientFrom",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
isStyle: !0,
label: "Gradient From Color",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "overlay"
}
}
},
gradientTo: {
id: "gradientTo",
input: "color",
defaultValue: {
value: {
r: 33,
g: 11,
b: 1,
a: 1
},
dark: {
r: 33,
g: 11,
b: 1,
a: 1
}
},
label: "Gradient To Color",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "overlay"
}
}
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
value: {
r: 255,
g: 255,
b: 255,
a: .2
},
dark: {
r: 255,
g: 255,
b: 255,
a: .2
}
},
label: "Divider Color",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "overlay"
}
}
},
__indicatorLine: {
id: "__indicatorLine",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__indicator: {
id: "__indicator",
input: "heading",
defaultValue: "",
label: "Config Indicator"
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Color"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Active color"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "overlay",
name: "Overlay"
}]
}
}
, Eh = [{
active: !1,
value: {
title: {
text: ""
},
icon: {
name: "settings",
type: "feather"
},
enableChevron: !0,
action: $p.none
}
}]
, Ih = {
fieldId: "profilePage",
widgets: {
profilePage: {
id: "profilePage",
type: "profilePage",
fields: {
enableChangeTheme: !0,
enableAddressBook: !1,
enableUsingBiometric: !1,
textCopyRight: {
text: "© Cirrilla 2020"
},
itemSocial: [{
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}],
itemInfo: [{
template: "default",
data: {
title: {
text: "Contact us"
},
action: $p.none
}
}, {
template: "default",
data: {
title: {
text: "Privacy policies"
},
action: $p.none
}
}, {
template: "default",
data: {
title: {
text: "Term & Condition"
},
action: $p.none
}
}, {
template: "default",
data: {
title: {
text: "Faqs"
},
action: $p.none
}
}, {
template: "default",
data: {
title: {
text: "About us"
},
action: $p.none
}
}, {
template: "default",
data: {
title: {
text: "Rate This App"
},
action: $p.none
}
}],
blocks: [{
template: "default",
active: !0,
data: {
name: "Information - Login",
title: {
text: "Information"
},
items: [{
active: !1,
value: {
title: {
text: "My account"
},
icon: {
name: "user",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/account",
args: {
name: "Account"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Order & return"
},
icon: {
name: "package",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/order_list",
args: {
name: "Order list"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Downloads"
},
icon: {
name: "download",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/download",
args: {
name: "Download"
}
}
}
}],
conditional: {
when_conditionals: "show_if",
conditionals: [[{
value1: "{isLogin}",
operator: "is_equal_to",
value2: "true"
}]]
}
}
}, {
template: "default",
active: !0,
data: {
name: "Settings",
title: {
text: "Settings"
},
items: [{
active: !1,
value: {
title: {
text: "App Settings"
},
icon: {
name: "settings",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/setting",
args: {
name: "Settings"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Help & Info"
},
icon: {
name: "info",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/help_info",
args: {
name: "Hele & info"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Hotline"
},
subTitle: {
text: "0123456789"
},
icon: {
name: "phone-forwarded",
type: "feather"
},
enableChevron: !0,
action: {
type: "launcher",
route: "/launcher",
args: {
url: "tel://0123456789",
name: "tel://0123456789"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Sign out"
},
icon: {
name: "log-out",
type: "feather"
},
enableChevron: !1,
action: {
type: "logout",
route: "/logout",
args: {
name: "Logout"
}
},
conditional: {
when_conditionals: "show_if",
conditionals: [[{
value1: "{isLogin}",
operator: "is_equal_to",
value2: "true"
}]]
}
}
}]
}
}]
},
styles: {
padding: {
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 120,
paddingTop: 20
}
},
layout: "style1"
}
},
widgetIds: ["profilePage"],
configs: {
name: "Profile"
},
action: $p.profile
}
, Nh = {
id: "profilePage",
name: "Profile page",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
enableChangeTheme: {
id: "enableChangeTheme",
input: "switch",
defaultValue: !0,
label: "Enable button switch theme"
},
enableUsingBiometric: {
id: "enableUsingBiometric",
input: "switch",
defaultValue: !1,
label: "Enable using biometric"
},
enableAddressBook: {
id: "enableAddressBook",
input: "switch",
defaultValue: !1,
label: "Enable address book",
info: "Used in account screen"
},
textCopyRight: {
id: "textCopyRight",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Copyright"
},
blocks: {
id: "blocks",
input: "items",
active: 0,
toggle: !0,
defaultValue: [{
template: "default",
active: !0,
data: {
name: "Information - Login",
title: {
text: "Information"
},
items: [{
active: !1,
value: {
title: {
text: "My account"
},
icon: {
name: "user",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/account",
args: {
name: "Account"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Order & return"
},
icon: {
name: "package",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/order_list",
args: {
name: "Order list"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Downloads"
},
icon: {
name: "download",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/download",
args: {
name: "Download"
}
}
}
}],
conditional: {
when_conditionals: "show_if",
conditionals: [[{
value1: "{isLogin}",
operator: "is_equal_to",
value2: "true"
}]]
}
}
}, {
template: "default",
active: !0,
data: {
name: "Settings",
title: {
text: "Settings"
},
items: [{
active: !1,
value: {
title: {
text: "App Settings"
},
icon: {
name: "settings",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/setting",
args: {
name: "Settings"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Help & Info"
},
icon: {
name: "info",
type: "feather"
},
enableChevron: !0,
action: {
type: "screen",
route: "/profile/help_info",
args: {
name: "Hele & info"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Hotline"
},
subTitle: {
text: "0123456789"
},
icon: {
name: "phone-forwarded",
type: "feather"
},
enableChevron: !0,
action: {
type: "launcher",
route: "/launcher",
args: {
url: "tel://0123456789",
name: "tel://0123456789"
}
}
}
}, {
active: !1,
value: {
title: {
text: "Sign out"
},
icon: {
name: "log-out",
type: "feather"
},
enableChevron: !1,
action: {
type: "logout",
route: "/logout",
args: {
name: "Logout"
}
},
conditional: {
when_conditionals: "show_if",
conditionals: [[{
value1: "{isLogin}",
operator: "is_equal_to",
value2: "true"
}]]
}
}
}]
}
}],
label: "Profile Content Blocks",
props: {
keyItem: "name",
textItem: "Item",
numberItem: !0,
preview: "slideshow",
templates: {
default: {
template: "default",
name: "Default",
data: {
name: "Settings",
title: {
text: "Settings"
},
items: [Eh],
conditional: {
when_conditionals: "always",
conditionals: []
}
},
fields: {
name: {
id: "name",
input: "text",
defaultValue: "",
label: "Name"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: ""
},
label: "Title",
isTranslate: !0
},
items: {
id: "items",
input: "list",
active: 0,
toggle: !0,
defaultValue: Eh,
props: {
keyItem: "title",
textItem: "Item",
numberItem: !0,
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: ""
},
label: "Title",
isTranslate: !0
},
subTitle: {
id: "subTitle",
input: "text",
defaultValue: {
text: ""
},
label: "Subtitle",
info: 'You can get "first_name", "last_name" or "email" of user or "amount_balance" of wallet by {}. EX: {amount_balance}',
isTranslate: !0
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Icon"
},
enableChevron: {
id: "enableChevron",
input: "switch",
defaultValue: !0,
label: "Enable chevron icon"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Action"
},
conditional: {
id: "conditional",
input: "conditional",
defaultValue: {
when_conditionals: "always",
conditionals: []
},
label: "Conditional",
props: {
keyVariables: ["isLogin", "language", "user.id", "user.displayName", "user.userEmail", "user.loginType", "user.roles"]
}
}
}
},
label: "Items"
},
conditional: {
id: "conditional",
input: "conditional",
defaultValue: {
when_conditionals: "always",
conditionals: []
},
label: "Conditional",
props: {
keyVariables: ["isLogin", "language", "user.id", "user.displayName", "user.userEmail", "user.loginType", "user.roles"]
}
}
}
}
}
}
},
itemSocial: {
id: "itemSocial",
input: "items",
defaultValue: [{
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}],
label: "Socials",
active: -1,
toggle: !0,
props: {
textItem: "Social",
numberItem: !0,
preview: "social-profile",
templates: {
default: {
template: "default",
name: "Item Default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "fab-facebook-square",
type: "awesome"
},
label: "Change Icon"
},
backgroundColor: {
id: "backgroundColor",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
dark: ec.primaryColor,
value: ec.primaryColor
},
label: "Icon color"
},
linkSocial: {
id: "linkSocial",
input: "text",
defaultValue: {
text: ""
},
label: "Link social",
isTranslate: !0,
props: {
placeholder: "https://"
}
},
enableRound: {
id: "enableRound",
input: "switch",
defaultValue: !1,
label: "Enable Button Round"
},
enableOutLine: {
id: "enableOutLine",
input: "switch",
defaultValue: !0,
label: "Enable Button Out Line"
}
}
}
}
}
},
itemInfo: {
id: "itemInfo",
input: "items",
defaultValue: [{
template: "default",
data: {
title: {
text: "Info"
},
action: $p.none
}
}],
label: "Help & info",
active: -1,
toggle: !0,
props: {
keyItem: "title",
preview: "info-profile",
templates: {
default: {
template: "default",
name: "Item Default",
data: {
title: {
text: "Info"
},
action: $p.none
},
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: ""
},
label: "Title",
isTranslate: !0
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
}
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 120,
paddingTop: 20
},
label: "Padding",
props: {}
}
},
layout: {
defaultValue: "style1",
options: [{
id: "style1",
name: "Style 1"
}, {
id: "style2",
name: "Style 2"
}, {
id: "style3",
name: "Style 3"
}, {
id: "style4",
name: "Style 4"
}]
}
}
, zh = [{
key: "center",
text: "Center"
}, {
key: "end",
text: "End"
}, {
key: "spaceAround",
text: "Space Around"
}, {
key: "spaceBetween",
text: "Space Between"
}, {
key: "spaceEvenly",
text: "Space Evenly"
}, {
key: "start",
text: "Start"
}]
, Dh = [{
key: "start",
text: "Start"
}, {
key: "end",
text: "End"
}, {
key: "center",
text: "Center"
}, {
key: "stretch",
text: "Stretch"
}, {
key: "baseline",
text: "Baseline"
}]
, Lh = {
paths: ["type"],
operator: "==",
value: "Custom"
}
, Rh = {
fieldId: "productDetailPage",
widgets: {
productDetailPage: {
id: "productDetailPage",
type: "productDetailPage",
fields: {
productGalleryScrollDirection: 0,
productGalleryThumbSizes: "woocommerce_thumbnail",
productGallerySize: {
width: "375",
height: "440"
},
productGalleryFit: "cover",
disableSwiper: !1,
playVideoInSameScreen: !1,
autoPlayVideo: !1,
enableDynamicLink: !1,
dynamicLinkType: "long_link",
dynamicLinkUriPrefix: {
text: ""
},
dynamicLinkFallbackUrl: {
text: ""
},
dynamicLinkAndroidMinimumVersion: 1,
dynamicLinkAndroidPackageName: {
text: ""
},
dynamicLinkIosAppStoreId: {
text: ""
},
dynamicLinkIosBundleId: {
text: ""
},
dynamicLinkIosMinimumVersion: {
text: ""
},
rows: [Ph("Category"), Ph("Name"), Ph("Rating"), Ph("Price"), Ph("Status"), Ph("Type"), Ph("Quantity"), Ph("AddOns"), Ph("SortDescription"), Ph("Description"), Ph("AdditionInformation"), Ph("Review"), Ph("AddToCart"), Ph("RelatedProduct"), Ph("Webview")]
},
styles: {
padding: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
margin: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
background: {
dark: ec.black,
value: ec.white
},
productGalleryIndicator: "dot",
indicatorAlignment: "bottom-start",
indicatorColor: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
indicatorActiveColor: {
value: ec.tertiaryText,
dark: ec.white
},
indicatorMargin: {
indicatorMarginLeft: 0,
indicatorMarginRight: 0,
indicatorMarginBottom: 0,
indicatorMarginTop: 0
},
indicatorSize: 6,
indicatorSpace: 4,
indicatorActiveSize: 10,
indicatorBorderRadius: 8
},
layout: "default"
}
},
widgetIds: ["productDetailPage"],
configs: {
name: "Product Detail"
},
action: $p.product
};
function Ph(e) {
return {
template: "default",
active: !0,
data: {
mainAxisAlignment: "start",
crossAxisAlignment: "start",
divider: !1,
columns: [{
active: !1,
value: {
type: e,
flex: "1",
layout: "horizontal"
}
}]
}
}
}
var Bh = [{
active: !1,
value: {
type: "Custom"
}
}]
, Fh = {
default: {
template: "default",
name: "Default",
data: {
mainAxisAlignment: "start",
crossAxisAlignment: "start",
divider: "false",
layer: [Bh]
},
fields: {
mainAxisAlignment: {
id: "mainAxisAlignment",
input: "select",
defaultValue: "Custom",
label: "Horizontal Alignment",
props: {
options: zh
}
},
crossAxisAlignment: {
id: "crossAxisAlignment",
input: "select",
defaultValue: "Custom",
label: "Vertical Alignment",
props: {
options: Dh
}
},
divider: {
id: "divider",
input: "switch",
defaultValue: !1,
label: "Divider"
},
columns: {
id: "columns",
input: "list",
active: 0,
toggle: !0,
defaultValue: Bh,
props: {
keyItem: "type",
textItem: "Column",
numberItem: !0,
fields: {
type: {
id: "type",
input: "select",
defaultValue: "Custom",
label: "Block type",
props: {
options: [{
key: "ProductItem",
text: "Product Item"
}, {
key: "Category",
text: "Product Category"
}, {
key: "Name",
text: "Product Name"
}, {
key: "Rating",
text: "Product Rating"
}, {
key: "Price",
text: "Product Price"
}, {
key: "Status",
text: "Product Status"
}, {
key: "Type",
text: "Product Type(Grouped, Variable, Appointment, Booking)"
}, {
key: "Sku",
text: "Product Sku"
}, {
key: "Quantity",
text: "Product Quantity"
}, {
key: "AddOns",
text: "Product AddOns"
}, {
key: "Brand",
text: "Product Brand"
}, {
key: "Store",
text: "Product Vendor Store"
}, {
key: "SortDescription",
text: "Product Sort Description"
}, {
key: "Description",
text: "Product Description"
}, {
key: "AdditionInformation",
text: "Product Addition Information"
}, {
key: "Review",
text: "Product Review"
}, {
key: "AddToCart",
text: "Add To Cart Button"
}, {
key: "UpsellProduct",
text: "Product Upsells"
}, {
key: "RelatedProduct",
text: "Product Related"
}, {
key: "ProductQueryData",
text: "Product Query Data"
}, {
key: "Custom",
text: "Custom"
}, {
key: "Action",
text: "Action"
}, {
key: "Html",
text: "Html"
}, {
key: "AdvancedCustomFields",
text: "Advanced Custom Fields"
}, {
key: "Webview",
text: "Webview"
}, {
key: "CustomWidget",
text: "Custom Widget"
}, {
key: "Divider",
text: "Divider"
}]
}
},
__lineContent: {
id: "__lineContent",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
flex: {
id: "flex",
input: "input-number",
defaultValue: "1",
label: "Flex",
props: {
step: 1,
min: 1,
max: 12
}
},
align: {
id: "align",
input: "alignment",
defaultValue: "left",
label: "Alignment"
},
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
foreground: {
id: "foreground",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.white
},
label: "Foreground color"
},
__lineContent1: {
id: "__lineContent1",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line",
relationship: {
paths: ["type"],
operator: "include",
value: ["SortDescription", "Description", "Review", "Custom", "Brand", "Html"]
}
}
},
expand: {
id: "expand",
input: "switch",
defaultValue: !1,
label: "Expand",
info: "Working only on section Addition Information, Description and Review",
props: {
relationship: {
paths: ["type"],
operator: "include",
value: ["SortDescription", "Description", "Review", "AdditionInformation"]
}
}
},
productVariableSwatch: {
id: "productVariableSwatch",
input: "switch",
defaultValue: !1,
label: "Product Variable Swatch",
info: "Used when product type is Product Variable",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Type"
}
}
},
layout: {
id: "layout",
input: "select",
defaultValue: "horizontal",
label: "Layout",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Brand"
},
options: [{
key: "horizontal",
text: "Horizontal"
}, {
key: "vertical",
text: "Vertical"
}]
}
},
textHtml: {
id: "textHtml",
input: "text",
defaultValue: {
text: ""
},
label: "Content Html",
isTranslate: !0,
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Html"
},
multiline: !0,
rows: 5
}
},
customType: {
id: "customType",
input: "button-group",
defaultValue: "text",
label: "Custom type",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Custom"
},
options: [{
key: "text",
text: "Text"
}, {
key: "button",
text: "Button"
}, {
key: "image",
text: "Image"
}, {
key: "icon",
text: "Icon"
}]
}
},
text: {
id: "text",
input: "text",
defaultValue: {
text: "Text",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text",
props: {
relationship: Lh
}
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "icon"
},
relationship2: Lh
},
label: "Icon"
},
buttonBg: {
id: "buttonBg",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: Lh
},
label: "Button background color"
},
buttonBorderColor: {
id: "buttonBorderColor",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: Lh
},
label: "Button border color"
},
buttonBorderWidth: {
id: "buttonBorderWidth",
input: "input-number",
defaultValue: "0",
props: {
min: 0,
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: Lh
},
label: "Button border width"
},
buttonSize: {
id: "buttonSize",
input: "size",
defaultValue: {
width: "80",
height: "32"
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: Lh
},
label: "Button size"
},
buttonBorderRadius: {
id: "buttonBorderRadius",
input: "input-number",
defaultValue: "0",
props: {
min: 0,
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: Lh
},
label: "Button border radius"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "icon"
},
relationship2: Lh
},
label: "Icon color"
},
iconSize: {
id: "iconSize",
input: "input-number",
defaultValue: "14",
props: {
min: 1,
relationship: {
paths: ["customType"],
operator: "==",
value: "icon"
},
relationship2: Lh
},
label: "Icon size"
},
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "image"
},
relationship2: Lh
},
label: "Image"
},
imageSize: {
id: "imageSize",
input: "size",
defaultValue: {
width: "32",
height: "32"
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "image"
},
relationship2: Lh
},
label: "Image size"
},
customFieldName: {
id: "customFieldName",
input: "text",
defaultValue: "",
label: "Custom Field Name",
translate: !1,
isStyle: !1,
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "AdvancedCustomFields"
}
}
},
typeStatus: {
id: "typeStatus",
input: "select",
defaultValue: "text",
label: "Type status",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Status"
},
options: [{
key: "text",
text: "Text"
}, {
key: "progress_indicator",
text: "Progress Indicator"
}, {
key: "progress_percent",
text: "Progress Percent"
}]
}
},
action: {
id: "action",
input: "action",
defaultValue: $p.home,
isTranslate: !0,
label: "Action",
props: {
relationship: Lh
},
info: "Type to show product status. Default is text"
},
heightDivider: {
id: "heightDivider",
input: "input-number",
defaultValue: "1",
props: {
min: 0,
relationship: {
paths: ["type"],
operator: "==",
value: "Divider"
}
},
label: "Height"
},
colorDivider: {
id: "colorDivider",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
isTranslate: !0,
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Divider"
}
},
label: "Color"
},
height: {
id: "height",
input: "input-number",
defaultValue: "200",
label: "Height",
props: {
min: 0,
relationship: {
paths: ["type"],
operator: "==",
value: "Webview"
}
}
},
url: {
id: "url",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "URL",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Webview"
}
}
},
syncAuth: {
id: "syncAuth",
input: "switch",
defaultValue: !1,
label: "Sync login App => Webview",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Webview"
}
}
},
keyCustom: {
id: "keyCustom",
input: "text",
defaultValue: "",
label: "Key Custom",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "CustomWidget"
}
}
},
dataJson: {
id: "dataJson",
input: "text",
defaultValue: "",
label: "Data Json",
props: {
multiline: !0,
rows: 7,
relationship: {
paths: ["type"],
operator: "==",
value: "CustomWidget"
}
}
},
thumbSize: {
id: "thumbSizes",
input: "select",
defaultValue: "shop_catalog",
props: {
options: Ch(),
relationship: {
paths: ["type"],
operator: "==",
value: "RelatedProduct"
}
},
label: "Thumb Size"
},
dataQuery: {
id: "dataQuery",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "ProductQueryData"
}
},
isTranslate: !0,
label: "Data query"
},
conditional: {
id: "conditional",
input: "conditional",
defaultValue: {
when_conditionals: "always",
conditionals: []
},
label: "Conditional",
props: {}
}
}
},
label: "Columns"
}
}
}
}
, Vh = {
id: "productDetailPage",
name: "Product Detail",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__heading1: {
id: "__heading1",
input: "heading",
defaultValue: "",
label: "Product Gallery"
},
productGalleryScrollDirection: {
id: "productGalleryScrollDirection",
input: "select",
defaultValue: 0,
label: "Direction",
props: {
options: [{
key: 0,
text: "Horizontal"
}, {
key: 1,
text: "Vertical"
}]
}
},
productGalleryThumbSizes: _h,
productGallerySize: {
id: "productGallerySize",
input: "size",
defaultValue: {
width: "375",
height: "440"
},
label: "Size"
},
productGalleryFit: {
id: "productGalleryFit",
input: "select",
defaultValue: "cover",
label: "Box Fit",
props: {
options: rh
}
},
disableSwiper: {
id: "disableSwiper",
input: "switch",
defaultValue: !1,
label: "Disable swiper"
},
playVideoInSameScreen: {
id: "playVideoInSameScreen",
input: "switch",
defaultValue: !1,
label: "Play Video In Same Screen"
},
autoPlayVideo: {
id: "autoPlayVideo",
input: "switch",
defaultValue: !1,
label: "Auto Play Video"
},
__lineDynamicLink: {
id: "__lineDynamicLink",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headingDynamicLink: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "Dynamic Link"
},
enableDynamicLink: {
id: "enableDynamicLink",
input: "switch",
defaultValue: !1,
label: "Enable Dynamic Link"
},
dynamicLinkType: {
id: "dynamicLinkType",
input: "select",
defaultValue: "long_link",
label: "Type",
props: {
options: uh
}
},
dynamicLinkUriPrefix: {
id: "dynamicLinkUriPrefix",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Prefix Url"
},
dynamicLinkFallbackUrl: {
id: "dynamicLinkFallbackUrl",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Fallback Url"
},
__headingDynamicLinkAndroid: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "Android"
},
dynamicLinkAndroidPackageName: {
id: "dynamicLinkAndroidPackageName",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Package Name"
},
dynamicLinkAndroidMinimumVersion: {
id: "dynamicLinkAndroidMinimumVersion",
input: "input-number",
defaultValue: 1,
label: "Android Minimum Version"
},
__headingDynamicLinkIos: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "iOS"
},
dynamicLinkIosAppStoreId: {
id: "dynamicLinkIosAppStoreId",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "App Store ID"
},
dynamicLinkIosBundleId: {
id: "dynamicLinkIosBundleId",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Bundle ID"
},
dynamicLinkIosMinimumVersion: {
id: "dynamicLinkIosMinimumVersion",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "iOS Minimum Version"
},
__lineContent: {
id: "__lineContent",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headingContent: {
id: "__headingContent",
input: "heading",
defaultValue: "",
label: "Product Content Blocks"
},
rows: {
id: "rows",
input: "items",
active: 0,
toggle: !0,
defaultValue: [Ph("Category"), Ph("Name"), Ph("Rating"), Ph("Price"), Ph("Status"), Ph("Type"), Ph("Quantity"), Ph("AddOns"), Ph("SortDescription"), Ph("Description"), Ph("AdditionInformation"), Ph("Review"), Ph("AddToCart"), Ph("RelatedProduct")],
label: "Rows",
props: {
preview: "slideshow",
templates: Fh,
collect: !0
}
}
},
styles: {
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.white
},
label: "Background Color"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Product Gallery Indicator"
},
productGalleryIndicator: {
id: "productGalleryIndicator",
input: "select",
defaultValue: "dot",
label: "Indicator",
props: {
options: [{
key: "dot",
text: "Dot"
}, {
key: "image",
text: "Image"
}, {
key: "number",
text: "Number"
}]
}
},
indicatorAlignment: {
id: "indicatorAlignment",
input: "select",
defaultValue: "bottom-start",
label: "Alignment",
props: {
options: ah
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
label: "Color"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Active color"
},
indicatorMargin: {
id: "indicatorMargin",
input: "spacing",
defaultValue: {
indicatorMarginLeft: 0,
indicatorMarginRight: 0,
indicatorMarginBottom: 0,
indicatorMarginTop: 0
},
label: "Margin"
},
indicatorSize: {
id: "indicatorSize",
input: "input-number",
defaultValue: "6",
label: "Size"
},
indicatorSpace: {
id: "activeIndicatorSize",
input: "input-number",
defaultValue: "4",
label: "Space"
},
indicatorActiveSize: {
id: "indicatorActiveSize",
input: "input-number",
defaultValue: "10",
props: {
relationship: {
paths: ["styles", "productGalleryIndicator"],
operator: "==",
value: "dot"
}
},
label: "Active size"
},
indicatorBorderRadius: {
id: "indicatorBorderRadius",
input: "input-number",
defaultValue: "8",
label: "Border Radius"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "zoom",
name: "Zoom Slideshow"
}, {
id: "scroll",
name: "Scrollable"
}]
}
}
, Wh = {
contained: {
template: "contained",
name: "Item Contained",
data: {
size: {
width: 160,
height: 190
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
}
}
},
horizontal: {
template: "horizontal",
name: "Item Horizontal",
data: {
size: {
width: 86,
height: 102
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "86",
height: "102"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
}
}
},
emerge: {
template: "emerge",
name: "Item Emerge",
data: {
size: {
width: 160,
height: 190
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableCategory: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Enable category"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
}
}
},
vertical: {
template: "vertical",
name: "Item vertical",
data: {
size: {
width: 160,
height: 190
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableCategory: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Enable category"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
}
}
},
"vertical-center": {
template: "vertical-center",
name: "Item Vertical center",
data: {
size: {
width: 160,
height: 190
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableCategory: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Enable category"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
}
}
},
"card-horizontal": {
template: "card-horizontal",
name: "Item card horizontal",
data: {
size: {
width: 247,
height: 180
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableCategory: !0,
enablePrice: !1,
enableQuantity: !0,
enableAddCart: !0,
opacity: .6,
opacityColor: {
dark: ec.black,
value: ec.black
},
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Enable category"
},
enablePrice: {
id: "enablePrice",
input: "switch",
defaultValue: !1,
label: "Enable price"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
opacity: {
id: "opacity",
input: "input-number",
defaultValue: "0.6",
label: "Opacity",
props: {
max: 1,
step: .1
}
},
opacityColor: {
id: "opacityColor",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Opacity Color"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
}
}
},
"card-vertical": {
template: "card-vertical",
name: "Item card vertical",
data: {
size: {
width: 247,
height: 180
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableCategory: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customBesideWishlist: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Enable category"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
},
customBesideWishlist: {
id: "customBesideWishlist",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Beside wishlist"
}
}
},
curve: {
template: "curve",
name: "Item curve",
data: {
size: {
width: 247,
height: 180
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
enableProgressSale: !1,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "160",
height: "190"
},
label: "Width x Height"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableLabelNew: {
id: "enableLabelNew",
input: "switch",
defaultValue: !0,
label: "Enable Label new"
},
enableLabelSale: {
id: "enableLabelSale",
input: "switch",
defaultValue: !0,
label: "Enable Label sale"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
enableQuantity: {
id: "enableQuantity",
input: "switch",
defaultValue: !0,
label: "Enable quantity"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable button add cart"
},
enableProgressSale: {
id: "enableProgressSale",
input: "switch",
defaultValue: !1,
label: "Enable progress sale"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Widget area"
},
customAboveName: {
id: "customAboveName",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above name"
},
customAbovePrice: {
id: "customAbovePrice",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above price"
},
customAboveRating: {
id: "customAboveRating",
input: "query-data-selector",
defaultValue: {
methods: [],
type: "text",
width: "100",
height: "100"
},
isTranslate: !0,
label: "Above rating"
}
}
}
}
, qh = {
enableGeoSearch: {
id: "enableGeoSearch",
input: "switch",
defaultValue: !0,
label: "Enable Geo search",
info: 'Will be used when enable "Enable allow location screen" of "General"'
},
limit: {
id: "limit",
input: "slider",
defaultValue: 4,
label: "Load items",
props: {
min: 1,
max: 100
}
},
enableLoadMore: {
id: "enableLoadMore",
input: "switch",
defaultValue: !1,
label: "Enable load more",
props: {
relationship: {
paths: ["layout"],
operator: "!=",
value: "slideshow"
}
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "contained",
data: {
size: {
width: 160,
height: 190
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0
}
},
label: "Select template",
props: {
preview: "product-list",
templates: Wh,
single: !0
}
}
}
, Hh = _t({
excludeProduct: {
id: "excludeProduct",
input: "picker",
defaultValue: [],
label: "Exclude Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
}
}, qh)
, Uh = _t(_t({
name: {
id: "name",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Name"
},
layoutItem: {
id: "layoutItem",
input: "select",
defaultValue: "list",
label: "Type Item",
props: {
options: [{
key: "list",
text: "List"
}, {
key: "carousel",
text: "Carousel"
}, {
key: "masonry",
text: "Masonry"
}, {
key: "big-first",
text: "Big first"
}, {
key: "slideshow",
text: "Slideshow"
}, {
key: "grid",
text: "Grid"
}]
}
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Filter by"
},
search: {
id: "search",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "Keyword",
info: "Search product by keyword"
},
tags: {
id: "tags",
input: "picker",
defaultValue: [],
label: "Tags",
props: {
query: {
post_type: [],
taxonomy: ["product_tag"]
}
}
},
categories: {
id: "categories",
input: "picker",
defaultValue: [],
label: "Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
includeProduct: {
id: "includeProduct",
input: "picker",
defaultValue: [],
label: "Include Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
}
}, qh), {}, {
template: {
id: "template",
input: "template",
defaultValue: {
template: "contained",
data: {
size: {
width: 160,
height: 190
},
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0,
enableAddCart: !0,
customAboveName: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAbovePrice: {
methods: [],
type: "text",
width: "100",
height: "100"
},
customAboveRating: {
methods: [],
type: "text",
width: "100",
height: "100"
}
}
},
label: "Select template",
props: {
preview: "product-list",
templates: Wh
}
}
})
, Xh = _t({
excludeProduct: {
id: "excludeProduct",
input: "picker",
defaultValue: [],
label: "Exclude Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
sortBy: {
id: "sortBy",
input: "select",
defaultValue: "latest",
label: "Sort By",
props: {
options: [{
key: "latest",
text: "Latest"
}, {
key: "random",
text: "Random"
}]
}
}
}, qh)
, Gh = _t({
search: {
id: "search",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "Keyword",
info: "Search product with this keyword"
},
categories: {
id: "categories",
input: "picker",
defaultValue: [],
label: "Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
product: {
id: "product",
input: "picker",
defaultValue: [],
label: "Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
query: {
id: "query",
input: "query",
defaultValue: {
value: {}
},
isTranslate: !0,
label: "Custom query"
}
}, qh)
, Kh = _t({
tags: {
id: "tags",
input: "picker",
defaultValue: [],
label: "Tags",
props: {
query: {
post_type: [],
taxonomy: ["product_tag"]
}
}
},
excludeProduct: {
id: "excludeProduct",
input: "picker",
defaultValue: [],
label: "Exclude Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
sortBy: {
id: "sortBy",
input: "select",
defaultValue: "latest",
label: "Sort By",
props: {
options: [{
key: "latest",
text: "Latest"
}, {
key: "random",
text: "Random"
}]
}
}
}, qh)
, Yh = _t({
categories: {
id: "categories",
input: "picker",
defaultValue: [],
label: "Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
excludeProduct: {
id: "excludeProduct",
input: "picker",
defaultValue: [],
label: "Exclude Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
sortBy: {
id: "sortBy",
input: "select",
defaultValue: "latest",
label: "Sort By",
props: {
options: [{
key: "latest",
text: "Latest"
}, {
key: "random",
text: "Random"
}]
}
}
}, qh)
, Qh = _t({
excludeProduct: {
id: "excludeProduct",
input: "picker",
defaultValue: [],
label: "Exclude Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
sortBy: {
id: "sortBy",
input: "select",
defaultValue: "latest",
label: "Sort By",
props: {
options: [{
key: "latest",
text: "Latest"
}, {
key: "random",
text: "Random"
}]
}
}
}, qh)
, Jh = {
__headerSection: {
id: "__headerSection",
input: "heading",
defaultValue: "",
label: "Config Section"
},
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Pad Item"
},
dividerWidth: {
id: "dividerWidth",
input: "slider",
defaultValue: 1,
label: "Divider width",
props: {
max: 20
}
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Divider color"
},
height: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Height",
props: {
max: 1e3
},
info: "Only use in layout carousel or slideshow"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout products = grid",
props: {
min: 2,
max: 8
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout products = grid",
props: {
min: .1,
max: 5,
step: .1
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
label: "Indicator color",
info: "Only use with slideshow layout"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Indicator Active color",
info: "Only use with slideshow layout"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundColorItem: {
id: "backgroundColorItem",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.tertiaryText,
value: ec.tertiaryText
},
label: "Sub text color"
},
priceColor: {
id: "priceColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Price color"
},
salePriceColor: {
id: "salePriceColor",
input: "color",
defaultValue: {
dark: ec.redColor,
value: ec.redColor
},
label: "Sale price color"
},
regularPriceColor: {
id: "regularPriceColor",
input: "color",
defaultValue: {
dark: ec.secondaryTextDarkMode,
value: ec.secondaryText
},
label: "Regular price color"
},
wishlistColor: {
id: "wishlistColor",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Wishlist icon Color"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 0,
label: "Border Radius",
props: {
max: 30
}
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius image",
props: {
max: 30
}
},
paddingItem: {
id: "paddingItem",
input: "spacing",
defaultValue: {
paddingItemLeft: 0,
paddingItemRight: 0,
paddingItemBottom: 0,
paddingItemTop: 0
},
label: "Padding Item",
props: {}
},
__lineLabelNew: {
id: "__lineLabelNew",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerLabelNew: {
id: "__headerLabelSale",
input: "heading",
defaultValue: "",
label: "Label New"
},
labelNewColor: {
id: "labelNewColor",
input: "color",
defaultValue: {
dark: ec.greenColor,
value: ec.greenColor
},
label: "Background color"
},
labelNewTextColor: {
id: "labelNewTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On Color"
},
radiusLabelNew: {
id: "radiusLabelNew",
input: "slider",
defaultValue: 8,
label: "Border radius",
props: {
max: 19
}
},
__lineLabelSale: {
id: "__lineLabelSale",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerLabelSale: {
id: "__headerLabelSale",
input: "heading",
defaultValue: "",
label: "Label sale"
},
labelSaleColor: {
id: "labelSaleColor",
input: "color",
defaultValue: {
dark: ec.redColor,
value: ec.redColor
},
label: "Background Color"
},
labelSaleTextColor: {
id: "labelSaleTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On color"
},
radiusLabelSale: {
id: "radiusLabelSale",
input: "slider",
defaultValue: 8,
label: "Border radius",
props: {
max: 19
}
},
__lineButtonCart: {
id: "__lineButtonCard",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerButtonCart: {
id: "__headerLabelSale",
input: "heading",
defaultValue: "",
label: "Button Add cart"
},
typeCart: {
id: "typeCart",
input: "select",
defaultValue: "elevated",
label: "Type",
props: {
options: lh
}
},
enableIconCart: {
id: "enableIconCart",
input: "switch",
defaultValue: !0,
label: "Enable icon",
info: "Only use for template card horizontal or card vertical or vertical center"
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "plus",
type: "feather"
},
label: "Icon"
},
radiusCart: {
id: "radiusCart",
input: "slider",
defaultValue: 8,
label: "Border radius",
props: {
max: 34
}
},
__lineShadow: {
id: "__lineShadow",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerShadow: {
id: "__headerShadow",
input: "heading",
defaultValue: "",
label: "Box Shadow"
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}
, Zh = {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "big-first",
name: "Big first"
}, {
id: "slideshow",
name: "Slideshow"
}, {
id: "grid",
name: "Grid"
}]
}
, $h = [{
template: "default",
active: !0,
data: {
icon: {
name: "grid",
type: "feather"
},
layoutItem: "grid",
columnItem: 2,
pad: 32,
runPad: 16,
enableDivider: !1,
template: {
template: "contained",
data: {
size: {
width: 160,
height: 190
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !1,
enableAddCart: !0
}
}
}
}, {
template: "default",
active: !1,
data: {
icon: {
name: "square",
type: "feather"
},
layoutItem: "list",
columnItem: 2,
pad: 32,
runPad: 16,
enableDivider: !1,
template: {
template: "contained",
data: {
size: {
width: 335,
height: 397
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !1,
enableAddCart: !0
}
}
}
}, {
template: "default",
active: !1,
data: {
icon: {
name: "list",
type: "feather"
},
layoutItem: "list",
columnItem: 2,
pad: 48,
runPad: 16,
enableDivider: !0,
template: {
template: "horizontal",
data: {
size: {
width: 86,
height: 102
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !1,
enableAddCart: !0
}
}
}
}]
, ef = {
widgets: {
productListPage: {
id: "productListPage",
type: "productListPage",
fields: {
refinePosition: "bottom",
refineItemStyle: "listTitle",
enableFilterBrand: !1,
itemPerPage: 10,
thumbSizes: "shop_catalog",
layout: $h
},
styles: {
padding: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
margin: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
textColor: {
dark: ec.white,
value: ec.black
},
subTextColor: {
dark: ec.tertiaryText,
value: ec.tertiaryText
},
priceColor: {
dark: ec.white,
value: ec.black
},
salePriceColor: {
dark: ec.redColor,
value: ec.redColor
},
regularPriceColor: {
dark: ec.secondaryTextDarkMode,
value: ec.secondaryText
},
wishlistColor: {
dark: ec.black,
value: ec.black
},
radiusImage: 8,
labelNewColor: {
dark: ec.greenColor,
value: ec.greenColor
},
labelNewTextColor: {
dark: ec.white,
value: ec.white
},
radiusLabelNew: 8,
labelSaleColor: {
dark: ec.redColor,
value: ec.redColor
},
labelSaleTextColor: {
dark: ec.white,
value: ec.white
},
radiusLabelSale: 8,
typeCart: "elevated",
iconCart: {
name: "plus",
type: "feather"
},
radiusCart: 8,
sizeImage: "cover"
},
layout: "default"
}
},
widgetIds: ["productListPage"],
configs: {
name: "Product List",
appBarType: "floating",
extendBodyBehindAppBar: !0,
enableCenterTitle: !0,
enableAppbarCountProduct: !0,
enableAppbarCart: !0,
enableAppbarSearch: !1
},
action: $p.products
}
, tf = {
id: "productListPage",
name: "Product List",
content: "Product List",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Refine"
},
refinePosition: {
id: "refinePosition",
input: "select",
defaultValue: "bottom",
label: "Position",
props: {
options: [{
key: "bottom",
text: "Bottom"
}, {
key: "left",
text: "Left"
}, {
key: "right",
text: "Right"
}]
}
},
refineItemStyle: {
id: "refineItemStyle",
input: "select",
defaultValue: "listTitle",
label: "Item Style",
props: {
options: [{
key: "listTitle",
text: "List title"
}, {
key: "card",
text: "Card"
}]
}
},
enableFilterBrand: {
id: "enableFilterBrand",
input: "switch",
defaultValue: !1,
label: "Enable Refine With Brand"
},
__line_item: {
id: "__line_item",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_item: {
id: "__header_item",
input: "heading",
defaultValue: "",
label: "Item"
},
itemPerPage: {
id: "itemPerPage",
input: "input-number",
defaultValue: "10",
label: "Item Per Page",
props: {
min: 1,
max: 100
}
},
__lineLayout: {
id: "__lineItem",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerLayout: {
id: "__headerItem",
input: "heading",
defaultValue: "",
label: "Layouts"
},
layout: {
id: "layout",
input: "items",
defaultValue: $h,
label: "View Layouts",
active: 0,
toggle: !0,
props: {
preview: "productListPage",
templates: {
default: {
template: "default",
name: "Default",
data: {
icon: {
name: "grid",
type: "feather"
},
layoutItem: "grid",
columnItem: 2,
pad: 32,
runPad: 16,
enableDivider: !1,
template: {
template: "contained",
data: {
size: {
width: 160,
height: 190
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !1,
enableAddCart: !0
}
}
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "square",
type: "feather"
},
label: "Icon"
},
layoutItem: {
id: "layoutItem",
input: "select",
defaultValue: "bottom",
label: "Layout item",
props: {
options: [{
key: "list",
text: "List"
}, {
key: "grid",
text: "Grid"
}]
}
},
columnItem: {
id: "columnItem",
input: "slider",
defaultValue: 2,
label: "Column",
props: {
min: 2,
max: 5
},
info: "Used when set Layout item is grid"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 32,
label: "Pad",
props: {
max: 48
},
info: "Vertical distance"
},
runPad: {
id: "columnItem",
input: "slider",
defaultValue: 16,
label: "Run pad",
props: {
max: 48
},
info: "Horizontal distance"
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "horizontal",
data: {
size: {
width: 160,
height: 190
},
imageSize: "cover",
thumbSizes: "shop_catalog",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !1,
enableAddCart: !0
}
},
label: "Select template",
props: {
preview: "product-list",
templates: Wh,
single: !1
}
}
}
}
},
textItem: "Layout",
numberItem: !0
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
__lineItem: {
id: "__lineItem",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerItem: {
id: "__headerItem",
input: "heading",
defaultValue: "",
label: "Config item"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.tertiaryText,
value: ec.tertiaryText
},
label: "Sub text color"
},
priceColor: {
id: "priceColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Price color"
},
salePriceColor: {
id: "salePriceColor",
input: "color",
defaultValue: {
dark: ec.redColor,
value: ec.redColor
},
label: "Sale price color"
},
regularPriceColor: {
id: "regularPriceColor",
input: "color",
defaultValue: {
dark: ec.secondaryTextDarkMode,
value: ec.secondaryText
},
label: "Regular price color"
},
wishlistColor: {
id: "wishlistColor",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Wishlist icon Color"
},
radiusImage: {
id: "radius",
input: "slider",
defaultValue: 8,
label: "Border Radius image",
props: {
max: 30
}
},
sizeImage: {
id: "sizeImage",
input: "select",
defaultValue: "cover",
label: "Size Image",
props: {
options: rh
}
},
__lineLabelNew: {
id: "__lineLabelNew",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerLabelNew: {
id: "__headerLabelSale",
input: "heading",
defaultValue: "",
label: "Label New"
},
labelNewColor: {
id: "labelNewColor",
input: "color",
defaultValue: {
dark: ec.greenColor,
value: ec.greenColor
},
label: "Background color"
},
labelNewTextColor: {
id: "labelNewTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On Color"
},
radiusLabelNew: {
id: "radiusLabelNew",
input: "slider",
defaultValue: 8,
label: "Border radius",
props: {
max: 19
}
},
__lineLabelSale: {
id: "__lineLabelSale",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerLabelSale: {
id: "__headerLabelSale",
input: "heading",
defaultValue: "",
label: "Label sale"
},
labelSaleColor: {
id: "labelSaleColor",
input: "color",
defaultValue: {
dark: ec.redColor,
value: ec.redColor
},
label: "Background Color"
},
labelSaleTextColor: {
id: "labelSaleTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On color"
},
radiusLabelSale: {
id: "radiusLabelSale",
input: "slider",
defaultValue: 8,
label: "Border radius",
props: {
max: 19
}
},
__lineButtonCart: {
id: "__lineButtonCard",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerButtonCart: {
id: "__headerLabelSale",
input: "heading",
defaultValue: "",
label: "Button Add cart"
},
typeCart: {
id: "typeCart",
input: "select",
defaultValue: "elevated",
label: "Type",
props: {
options: lh
}
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "plus",
type: "feather"
},
label: "Icon"
},
radiusCart: {
id: "radiusCart",
input: "slider",
defaultValue: 8,
label: "Border radius",
props: {
max: 34
}
}
}
}
, nf = as("template/fetchTemplatesStatus", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
nc(t);
case 2:
return r = e.sent,
e.abrupt("return", r);
case 4:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, rf = as("template/fetchPreTemplatesStatus", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
rc(t);
case 2:
return r = e.sent,
e.abrupt("return", r);
case 4:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, of = as("template/createTemplate", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
ic(kh(t.data));
case 2:
return r = e.sent,
n.dispatch(nf()),
t.cb(),
e.abrupt("return", r);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, af = as("template/updateTemplate", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
ac(t.id, t.data);
case 2:
return r = e.sent,
t.cb(),
n.dispatch(nf()),
e.abrupt("return", r);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, lf = as("template/deleteTemplate", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
lc(t);
case 2:
return r = e.sent,
n.dispatch(nf()),
e.abrupt("return", r);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, sf = as("template/activeTemplate", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
sc(t.id);
case 2:
return r = e.sent,
t.cb(),
e.abrupt("return", r);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, cf = as("template/createPreset", function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.next = 2,
oc(kh(t.data));
case 2:
return r = e.sent,
t.cb(),
e.abrupt("return", r);
case 5:
case "end":
return e.stop()
}
}
), e)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}())
, uf = {
titleHeading: {
text: "Head Office"
},
iconPhone: {
name: "phone",
type: "feather"
},
titlePhone: {
text: "+ 0123 456 789 "
},
iconMail: {
name: "mail",
type: "feather"
},
titleEmail: {
text: "cirrillastore@flutter.io"
},
iconAddress: {
name: "map-pin",
type: "feather"
},
titleAddress: {
text: "14601-14609 Bessemer St, Van Nuys, CA 91411"
},
lat: "21.013210",
lng: "105.778583",
bearing: "105.804817",
tilt: "59.440717697143555",
zoom: "19.151926040649414"
}
, df = {
fieldId: "contactPage",
widgets: {
contactPage: {
id: "contactPage",
type: "contactPage",
fields: {
enablePinMap: !0,
enableFeedback: !0,
enableDirectMap: !0,
itemsCustomize: [{
template: "default",
data: uf
}],
formId: ""
},
layout: "horizontal"
}
},
widgetIds: ["contactPage"],
configs: {
name: "Contact"
},
action: $p.contact
}
, pf = {
id: "contactPage",
name: "Contact page",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
enablePinMap: {
id: "enablePinMap",
input: "switch",
defaultValue: !0,
label: "Enable Pin Location"
},
enableFeedback: {
id: "enableFeedback",
input: "switch",
defaultValue: !0,
label: "Enable Form Feedback"
},
enableDirectMap: {
id: "enableDirectMap",
input: "switch",
defaultValue: !0,
label: "Enable Direct Map"
},
mapType: {
id: "mapType",
input: "select",
defaultValue: "normal",
label: "Map type",
props: {
options: [{
key: "none",
text: "None"
}, {
key: "normal",
text: "Normal"
}, {
key: "satellite",
text: "Satellite"
}, {
key: "terrain",
text: "Terrain"
}, {
key: "hybrid",
text: "Hybrid"
}]
},
info: "Type of map tiles to display."
},
formId: {
id: "formId",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Form Id",
info: "Contact Form 7 ID"
},
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "default"
}
},
label: "Image"
},
itemsCustomize: {
id: "itemsCustomize",
input: "items",
active: -1,
toggle: !0,
defaultValue: [{
template: "default",
data: uf
}],
label: "Address",
props: {
preview: "sidebar",
templates: {
default: {
template: "default",
name: "Default",
data: uf,
fields: {
titleHeading: {
id: "titleHeading",
input: "text",
defaultValue: {
text: "Head Office"
},
isTranslate: !0,
label: "Heading"
},
iconPhone: {
id: "iconPhone",
input: "icon",
defaultValue: {
name: "phone",
type: "feather"
},
label: "Change Icon Phone"
},
titlePhone: {
id: "titlePhone",
input: "text",
defaultValue: {
text: "+ 0123 456 789 "
},
isTranslate: !0,
label: "Number Phone"
},
iconMail: {
id: "iconMail",
input: "icon",
defaultValue: {
name: "mail",
type: "feather"
},
label: "Change Icon Mail"
},
titleEmail: {
id: "titleEmail",
input: "text",
defaultValue: {
text: "cirrillastore@flutter.io"
},
isTranslate: !0,
label: "Email"
},
iconAddress: {
id: "iconAddress",
input: "icon",
defaultValue: {
name: "map-pin",
type: "feather"
},
label: "Change Icon Address"
},
titleAddress: {
id: "titleAddress",
input: "text",
defaultValue: {
text: "14601-14609 Bessemer St, Van Nuys, CA 91411"
},
isTranslate: !0,
label: "Address"
},
lat: {
id: "lat",
input: "text",
defaultValue: "",
isTranslate: !1,
label: "Latitude"
},
lng: {
id: "lng",
input: "text",
defaultValue: "",
isTranslate: !1,
label: "Longitude"
},
bearing: {
id: "bearing",
input: "text",
defaultValue: "",
isTranslate: !1,
label: "Bearing",
info: "Direction that the camera is pointing in, in degrees clockwise from north."
},
tilt: {
id: "tilt",
input: "text",
defaultValue: "",
isTranslate: !1,
label: "tilt",
info: "The angle, in degrees, of the camera angle from the nadir (directly facing the Earth)."
},
zoom: {
id: "zoom",
input: "text",
defaultValue: "",
isTranslate: !1,
label: "zoom",
info: "\tZoom level near the center of the screen."
}
}
}
},
keyItem: "titleHeading"
}
}
},
layout: {
defaultValue: "horizontal",
options: [{
id: "horizontal",
name: "Horizontal"
}, {
id: "vertical",
name: "Vertical"
}, {
id: "default",
name: "Without Map"
}]
}
}
, hf = {
fieldId: "login",
widgets: {
login: {
id: "login",
type: "login",
fields: {
loginFacebook: !0,
loginGoogle: !0,
loginApple: !0,
loginPhoneNumber: !0,
titleAppBar: !0,
term: {
text: "Accept the Terms and Conditions"
}
},
styles: {
padding: tc.defaultPagePadding,
background: {
value: ec.white,
dark: ec.primaryDarkMode
},
headerImage: Zp.NoImage
},
layout: "default"
}
},
widgetIds: ["login"],
configs: {
name: "Login",
extendBodyBehindAppBar: !1,
appbarColor: {
value: ec.white,
dark: ec.black
}
},
action: $p.login
}
, ff = {
id: "login",
name: "Login",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__headerSocialLogin: {
id: "__headerSocialLogin",
input: "heading",
defaultValue: "",
label: "Social Login"
},
loginFacebook: {
id: "loginFacebook",
input: "switch",
defaultValue: !0,
label: "Login Facebook"
},
loginGoogle: {
id: "loginGoogle",
input: "switch",
defaultValue: !0,
label: "Login Google"
},
loginApple: {
id: "loginApple",
input: "switch",
defaultValue: !0,
label: "Login Apple"
},
loginPhoneNumber: {
id: "loginPhoneNumber",
input: "switch",
defaultValue: !0,
label: "Login Phone Number"
},
__lineSideBar: {
id: "__lineSideBar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headerTerm: {
id: "__headerTerm",
input: "heading",
defaultValue: "",
label: "Other"
},
titleAppBar: {
id: "titleAppBar",
input: "switch",
defaultValue: !0,
label: "Title app bar"
},
term: {
id: "termUrlLogin",
input: "html",
defaultValue: {
text: "Accept the Terms and Conditions"
},
isTranslate: !0,
label: "Term & Policy"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: tc.defaultPagePadding,
label: "Padding",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Background"
},
headerImage: {
id: "headerImage",
input: "image",
defaultValue: {
src: ""
},
label: "Header Image"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Social top"
}, {
id: "logo_top",
name: "Logo top"
}, {
id: "image_header_top",
name: "Image header top"
}, {
id: "image_header_corner",
name: "Image header Corner"
}]
}
}
, bf = {
fieldId: "register",
widgets: {
register: {
id: "register",
type: "register",
fields: {
registerFacebook: !0,
registerGoogle: !0,
registerApple: !0,
registerPhoneNumber: !0,
titleAppBar: !0,
term: {
text: "Accept the Terms and Conditions"
},
minLengthPassword: 6,
enableSymbolPassword: !0,
enableNumberPassword: !0,
enableLowerCharacterPassword: !0,
enableUpperCharacterPassword: !0
},
styles: {
padding: tc.defaultPagePadding,
background: {
value: ec.white,
dark: ec.primaryDarkMode
},
headerImage: Zp.NoImage
},
layout: "default"
}
},
widgetIds: ["register"],
configs: {
name: "Register",
extendBodyBehindAppBar: !1,
appbarColor: {
value: ec.white,
dark: ec.black
}
},
action: $p.register
}
, gf = {
id: "register",
name: "Register",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__headerSocialRegister: {
id: "__headerSocialRegister",
input: "heading",
defaultValue: "",
label: "Social Login"
},
registerFacebook: {
id: "registerFacebook",
input: "switch",
defaultValue: !0,
label: "Register Facebook"
},
registerGoogle: {
id: "registerGoogle",
input: "switch",
defaultValue: !0,
label: "Register Google"
},
registerApple: {
id: "registerApple",
input: "switch",
defaultValue: !0,
label: "Register Apple"
},
registerPhoneNumber: {
id: "registerPhoneNumber",
input: "switch",
defaultValue: !0,
label: "Register Phone Number"
},
__linePassword: {
id: "__linePassword",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headerPassword: {
id: "__headerPassword",
input: "heading",
defaultValue: "",
label: "Secure password"
},
minLengthPassword: {
id: "minLengthPassword",
input: "input-number",
defaultValue: 6,
label: "Height",
props: {
min: 6,
max: 15
}
},
enableSymbolPassword: {
id: "enableSymbolPassword",
input: "switch",
defaultValue: !0,
label: "Include Symbols"
},
enableNumberPassword: {
id: "enableNumber",
input: "switch",
defaultValue: !0,
label: "Include Numbers"
},
enableLowerCharacterPassword: {
id: "enableLowerCharacterPassword",
input: "switch",
defaultValue: !0,
label: "Include Lowercase Characters"
},
enableUpperCharacterPassword: {
id: "enableUpperCharacterPassword",
input: "switch",
defaultValue: !0,
label: "Include Uppercase Characters"
},
__lineSideBar: {
id: "__lineSideBar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headerTerm: {
id: "__headerTerm",
input: "heading",
defaultValue: "",
label: "Other"
},
titleAppBar: {
id: "titleAppBar",
input: "switch",
defaultValue: !0,
label: "Title app bar"
},
enableEmail: {
id: "enableEmail",
input: "switch",
defaultValue: !0,
label: "Enable field email"
},
term: {
id: "termUrlRegister",
input: "html",
defaultValue: {
text: "Accept the Terms and Conditions"
},
isTranslate: !0,
label: "Term & Policy"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: tc.defaultPagePadding,
label: "Padding",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.primaryDarkMode
},
label: "Background"
},
headerImage: {
id: "headerImage",
input: "image",
defaultValue: {
src: ""
},
label: "Header Image"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Register Social top"
}, {
id: "logo_top",
name: "Register Logo top"
}, {
id: "image_header_top",
name: "Image header top"
}, {
id: "image_header_corner",
name: "Image header Corner"
}]
}
}
, mf = {
default: {
template: "default",
name: "Item Default",
data: {
enableImage: !0,
size: {
width: 335,
height: 260
},
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
nameFieldTopLeftImage: "",
nameFieldTopRightImage: "",
nameFieldAboveName: "",
nameFieldBottomLeft: "",
nameFieldBottomRight: ""
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "335",
height: "260"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
},
__lineField: {
id: "__lineField",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerField: {
id: "__headerField",
input: "heading",
defaultValue: "",
label: "Advanced Custom Fields"
},
nameFieldTopLeftImage: {
id: "nameFieldTopLeftImage",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Top left image"
},
nameFieldTopRightImage: {
id: "nameFieldTopRightImage",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Top right image"
},
nameFieldAboveName: {
id: "nameFieldAboveName",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Above name"
},
nameFieldBottomLeft: {
id: "nameFieldBottomLeft",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Bottom left"
},
nameFieldBottomRight: {
id: "nameFieldBottomRight",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Bottom right"
}
}
},
vertical: {
template: "vertical",
name: "Item Vertical",
data: {
enableImage: !0,
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
}
}
},
horizontal: {
template: "horizontal",
name: "Item horizontal",
data: {
enableImage: !0,
size: {
width: 120,
height: 120
},
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
alignment: "left",
nameFieldAbove: "",
nameFieldBelow: "",
nameFieldBelowName: ""
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "120",
height: "120"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "left",
label: "Alignment",
props: {
lists: [{
key: "left",
icon: "ThumbnailView"
}, {
key: "zigzag",
icon: "SecondaryNav"
}, {
key: "right",
icon: "ThumbnailViewMirrored"
}]
}
},
__lineField: {
id: "__lineField",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerField: {
id: "__headerField",
input: "heading",
defaultValue: "",
label: "Advanced Custom Fields"
},
nameFieldAbove: {
id: "nameFieldAbove",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Above"
},
nameFieldBelow: {
id: "nameFieldBelow",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Below"
},
nameFieldBelowName: {
id: "nameFieldBelowName",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Below name"
}
}
},
number: {
template: "number",
name: "Item Number",
data: {
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0
},
fields: {
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
}
}
},
overlay: {
template: "overlay",
name: "Item Image Overlay",
data: {
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableExcerpt: !0,
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
color: {
dark: ec.black,
value: ec.black
},
opacity: .5,
colorLine: {
dark: ec.borderLightMode,
value: ec.borderLightMode
}
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
}
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableExcerpt: {
id: "enableExcerpt",
input: "switch",
defaultValue: !0,
label: "Excerpt"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
},
color: {
id: "color",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Color"
},
opacity: {
id: "opacity",
input: "slider",
defaultValue: .5,
label: "Opacity",
props: {
max: 1,
step: .01
}
},
colorLine: {
id: "colorLine",
input: "color",
defaultValue: {
dark: ec.borderLightMode,
value: ec.borderLightMode
},
label: "Color line"
}
}
},
timeLine: {
template: "timeLine",
name: "Item Time line",
data: {
enableImage: !0,
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableImageAuthor: !0,
enableCategory: !0,
enableDate: !0,
enableComments: !0
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableImageAuthor: {
id: "enableImageAuthor",
input: "switch",
defaultValue: !1,
label: "Image author"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
}
}
},
verticalCenter: {
template: "verticalCenter",
name: "Item Vertical center",
data: {
enableImage: !0,
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
}
}
},
topName: {
template: "topName",
name: "Item Top Name",
data: {
enableImage: !0,
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableExcerpt: !0,
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableExcerpt: {
id: "enableExcerpt",
input: "switch",
defaultValue: !0,
label: "Excerpt"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !0,
label: "Author"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
}
}
},
emerge: {
template: "emerge",
name: "Item Emerge",
data: {
enableImage: !0,
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableAuthor: !0,
enableCategory: !0,
enableDate: !0,
enableComments: !0
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
},
info: "Used when Image = true"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
},
info: "Used when Image = true"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Image"
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !1,
label: "Author"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
}
}
},
gradient: {
template: "gradient",
name: "Item Gradient",
data: {
size: {
width: 247,
height: 192
},
imageSize: "cover",
enableAuthor: !0,
enableCategory: !0,
enableDate: !0,
enableComments: !0,
opacity: .9,
colorBegin: {
dark: ec.transparent,
value: ec.transparent
},
colorEnd: {
dark: ec.black,
value: ec.black
},
begin: "top-center",
end: "bottom-center"
},
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "247",
height: "192"
},
label: "Width x Height",
props: {
type: "line"
}
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableAuthor: {
id: "enableAuthor",
input: "switch",
defaultValue: !1,
label: "Author"
},
enableCategory: {
id: "enableCategory",
input: "switch",
defaultValue: !0,
label: "Category"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Date"
},
enableComments: {
id: "enableComments",
input: "switch",
defaultValue: !0,
label: "Comment count"
},
colorBegin: {
id: "colorBegin",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Color Begin Gradient"
},
colorEnd: {
id: "colorEnd",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Color End Gradient"
},
begin: {
id: "begin",
input: "select",
defaultValue: "top-center",
label: "Begin alignment Gradient",
props: {
options: ah
}
},
end: {
id: "end",
input: "select",
defaultValue: "bottom-center",
label: "End alignment Gradient",
props: {
options: ah
}
},
opacity: {
id: "opacity",
input: "slider",
defaultValue: .9,
label: "Opacity",
props: {
max: 1,
step: .01
}
}
}
}
}
, vf = {
postType: {
id: "postType",
input: "text",
defaultValue: "posts",
isTranslate: !1,
isStyle: !1,
label: "Post Type"
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Filter by"
},
search: {
id: "search",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "Keyword",
info: "Search post with this keyword"
},
tags: {
id: "tags",
input: "picker",
defaultValue: [],
label: "Tags",
props: {
query: {
post_type: [],
taxonomy: ["post_tag"]
}
}
},
categories: {
id: "categories",
input: "picker",
defaultValue: [],
label: "Categories",
props: {
query: {
post_type: [],
taxonomy: ["category"]
}
}
},
post: {
id: "post",
input: "picker",
defaultValue: [],
label: "Hand-picked Posts",
props: {
query: {
post_type: ["post"],
taxonomy: []
}
}
},
query: {
id: "query",
input: "query",
defaultValue: {
value: {}
},
isTranslate: !0,
label: "Custom query"
},
page: {
id: "page",
input: "slider",
defaultValue: 1,
label: "Page",
props: {
min: 1,
max: 99,
info: "Current page of the collection."
}
},
perPage: {
id: "perPage",
input: "slider",
defaultValue: 10,
label: "Per page",
props: {
min: 1,
max: 99,
info: "Maximum number of items to be returned in result set."
}
},
enableLoadMore: {
id: "enableLoadMore",
input: "switch",
defaultValue: !1,
label: "Enable load more",
props: {
relationship: {
paths: ["layout"],
operator: "!=",
value: "slideshow"
}
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "default",
data: {
enableImage: !0,
size: {
width: 335,
height: 260
},
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
nameFieldTopLeftImage: "",
nameFieldTopRightImage: "",
nameFieldAboveName: "",
nameFieldBottomLeft: "",
nameFieldBottomRight: ""
}
},
label: "Select template",
props: {
preview: "post",
templates: mf,
single: !0
}
}
}
, yf = _t(_t({
name: {
id: "name",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Name"
},
layoutItem: {
id: "layoutItem",
input: "select",
defaultValue: "list",
label: "Type Item",
props: {
options: [{
key: "list",
text: "List"
}, {
key: "carousel",
text: "Carousel"
}, {
key: "masonry",
text: "Masonry"
}, {
key: "big-first",
text: "Big first"
}, {
key: "slideshow",
text: "Slideshow"
}]
}
}
}, vf), {}, {
template: {
id: "template",
input: "template",
defaultValue: {
template: "default",
data: {
size: {
width: 335,
height: 260
},
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
nameFieldTopLeftImage: "",
nameFieldTopRightImage: "",
nameFieldAboveName: "",
nameFieldBottomLeft: "",
nameFieldBottomRight: ""
}
},
label: "Select template",
props: {
preview: "post",
templates: mf
}
}
})
, xf = {
__headerSection: {
id: "__headerSection",
input: "heading",
defaultValue: "",
label: "Config Section"
},
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Pad Item"
},
dividerWidth: {
id: "dividerWidth",
input: "slider",
defaultValue: 1,
label: "Divider width",
props: {
max: 20
}
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Divider color"
},
height: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Height",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "include",
value: ["carousel", "slideshow"]
}
},
info: "Only use in layout carousel or slideshow"
},
maxHeightImage: {
id: "maxHeightImage",
input: "input-number",
defaultValue: 300,
label: "Max height image",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
info: "Only use in layout carousel or slideshow"
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator color",
info: "Only use with slideshow layout posts"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator Active color",
info: "Only use with slideshow layout posts"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundColorItem: {
id: "backgroundColorItem",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.tertiaryText,
value: ec.tertiaryText
},
label: "Sub text color"
},
labelColor: {
id: "labelColor",
input: "color",
defaultValue: {
dark: ec.greenColor,
value: ec.greenColor
},
label: "Label color"
},
labelTextColor: {
id: "labelTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On Label color"
},
labelRadius: {
id: "labelRadius",
input: "slider",
defaultValue: 19,
label: "Border radius label",
props: {
max: 19
}
},
radius: {
id: "radius",
input: "corner",
defaultValue: {
topLeft: 0,
topRight: 0,
bottomLeft: 0,
bottomRight: 0
},
label: "Border Radius"
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius Image",
props: {
max: 30
}
},
paddingContent: {
id: "paddingContent",
input: "spacing",
defaultValue: {
paddingContentLeft: 0,
paddingContentRight: 0,
paddingContentBottom: 0,
paddingContentTop: 8
},
label: "Padding Content"
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}
, Of = {
id: "post",
name: "Latest Posts",
content: "Content 1",
group: Bp.post,
icon: "Blog",
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "big-first",
name: "Big first"
}, {
id: "slideshow",
name: "Slideshow"
}]
},
fields: vf,
styles: xf
}
, jf = {
fieldId: "postList",
widgets: {
postList: {
id: "postList",
type: "postList",
fields: {},
styles: {
textColor: {
dark: ec.white,
value: ec.black
},
subTextColor: {
dark: ec.secondaryTextDarkMode,
value: ec.tertiaryText
},
labelColor: {
dark: ec.greenColor,
value: ec.greenColor
},
labelTextColor: {
dark: ec.white,
value: ec.white
},
labelRadius: 19,
radiusImage: 8
},
layout: "default"
}
},
widgetIds: ["postList"],
configs: {
name: "Post List",
appBarType: "floating",
extendBodyBehindAppBar: !0,
enableCenterTitle: !0,
enableAppbarSearch: !0
},
action: $p.postList
}
, kf = {
id: "postList",
name: "Post List",
content: "Screen post list",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
layout: {
id: "layout",
input: "items",
defaultValue: [{
template: "default",
active: !1,
data: {
icon: {
name: "square",
type: "feather"
},
template: {
template: "default",
data: {
size: {
width: 335,
height: 260
},
enableImage: !0,
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
nameFieldTopLeftImage: "",
nameFieldTopRightImage: "",
nameFieldAboveName: "",
nameFieldBottomLeft: "",
nameFieldBottomRight: ""
}
}
}
}, {
template: "default",
active: !0,
data: {
icon: {
name: "list",
type: "feather"
},
template: {
template: "horizontal",
data: {
size: {
width: 120,
height: 120
},
imageSize: "cover",
enableImage: !0,
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
alignment: "left",
nameFieldAbove: "",
nameFieldBelow: "",
nameFieldBelowName: ""
}
}
}
}],
label: "View Layouts",
active: 1,
toggle: !0,
props: {
preview: "postList",
templates: {
default: {
template: "default",
name: "Default",
data: {
icon: {
name: "square",
type: "feather"
},
template: {
template: "horizontal",
data: {
size: {
width: 120,
height: 120
},
enableImage: !0,
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
alignment: "left",
nameFieldAbove: "",
nameFieldBelow: "",
nameFieldBelowName: ""
}
}
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "square",
type: "feather"
},
label: "Icon"
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "horizontal",
data: {
size: {
width: 120,
height: 120
},
enableImage: !0,
imageSize: "cover",
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0,
alignment: "left",
nameFieldAbove: "",
nameFieldBelow: "",
nameFieldBelowName: ""
}
},
label: "Select template",
props: {
preview: "post",
templates: mf,
single: !1
}
}
}
}
},
textItem: "Layout",
numberItem: !0
}
}
},
styles: {
__headerSection: {
id: "__headerSection",
input: "heading",
defaultValue: "",
label: "Config Section"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 40,
label: "Pad Item"
},
dividerWidth: {
id: "dividerWidth",
input: "slider",
defaultValue: 1,
label: "Divider width",
props: {
max: 20
}
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Divider color"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundColorItem: {
id: "backgroundColorItem",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.tertiaryText,
value: ec.tertiaryText
},
label: "Sub text color"
},
labelColor: {
id: "labelColor",
input: "color",
defaultValue: {
dark: ec.greenColor,
value: ec.greenColor
},
label: "Label color"
},
labelTextColor: {
id: "labelTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On Label color"
},
labelRadius: {
id: "labelRadius",
input: "slider",
defaultValue: 19,
label: "Border radius label",
props: {
max: 19
}
},
radius: {
id: "radius",
input: "corner",
defaultValue: {
topLeft: 0,
topRight: 0,
bottomLeft: 0,
bottomRight: 0
},
label: "Border Radius"
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius Image",
props: {
max: 30
}
},
paddingContent: {
id: "paddingContent",
input: "spacing",
defaultValue: {
paddingContentLeft: 0,
paddingContentRight: 0,
paddingContentBottom: 0,
paddingContentTop: 8
},
label: "Padding Content"
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}
}
, wf = {
paths: ["type"],
operator: "==",
value: "Custom"
};
function Cf(e) {
return {
template: "default",
active: !0,
data: {
mainAxisAlignment: "start",
crossAxisAlignment: "start",
divider: !1,
columns: [{
active: !1,
value: {
type: e,
enableFlex: !0,
flex: "1",
queryBy: "tag"
}
}]
}
}
}
var _f, Mf, Sf = [{
active: !1,
value: {
type: "Name"
}
}], Af = {
default: {
template: "default",
name: "Default",
data: {
mainAxisAlignment: "start",
crossAxisAlignment: "start",
divider: "false",
layer: [Sf]
},
fields: {
visit: {
id: "visit",
input: "select",
defaultValue: "content",
label: "Visit",
props: {
options: [{
key: "header",
text: "Header"
}, {
key: "content",
text: "Content"
}],
relationship: {
paths: ["layout"],
operator: "include",
value: ["overlay", "layer"]
}
}
},
mainAxisAlignment: {
id: "mainAxisAlignment",
input: "select",
defaultValue: "start",
label: "Horizontal Alignment",
props: {
options: zh
}
},
crossAxisAlignment: {
id: "crossAxisAlignment",
input: "select",
defaultValue: "start",
label: "Vertical Alignment",
props: {
options: Dh
}
},
divider: {
id: "divider",
input: "switch",
defaultValue: !1,
label: "Divider"
},
columns: {
id: "columns",
input: "list",
active: 0,
toggle: !0,
defaultValue: Sf,
props: {
keyItem: "type",
textItem: "Column",
numberItem: !0,
fields: {
type: {
id: "type",
input: "select",
defaultValue: "Name",
label: "Block type",
props: {
options: [{
key: "Custom",
text: "Custom"
}, {
key: "Category",
text: "Post Category"
}, {
key: "Name",
text: "Post Name"
}, {
key: "Date",
text: "Date"
}, {
key: "Author",
text: "Author"
}, {
key: "CountComment",
text: "Count Comment"
}, {
key: "NavigateComment",
text: "Navigate comment"
}, {
key: "Wishlist",
text: "Post wishlist"
}, {
key: "Share",
text: "Share"
}, {
key: "FeatureImage",
text: "Feature image"
}, {
key: "Content",
text: "Content"
}, {
key: "Tag",
text: "Tag"
}, {
key: "Comments",
text: "Comments"
}, {
key: "RelatedPost",
text: "Post Related"
}, {
key: "Html",
text: "Html"
}, {
key: "AdvancedCustomFields",
text: "Advanced Custom Fields"
}]
}
},
__lineContent: {
id: "__lineContent",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
enableFlex: {
id: "enableFlex",
input: "switch",
defaultValue: !0,
label: "Enable Flex"
},
flex: {
id: "flex",
input: "input-number",
defaultValue: "1",
label: "Flex",
props: {
step: 1,
min: 1,
max: 12
}
},
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
foreground: {
id: "foreground",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Foreground Color"
},
__lineContent1: {
id: "__lineContent1",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line",
relationship: {
paths: ["type"],
operator: "include",
value: ["RelatedPost", "Custom", "Html"]
}
}
},
queryBy: {
id: "queryBy",
input: "select",
defaultValue: "tag",
label: "Query by",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "RelatedPost"
},
options: [{
key: "tag",
text: "Tag"
}, {
key: "category",
text: "Category"
}, {
key: "custom-field",
text: "Custom field"
}]
}
},
textHtml: {
id: "textHtml",
input: "text",
defaultValue: {
text: ""
},
label: "Content Html",
isTranslate: !0,
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Html"
},
multiline: !0,
rows: 5
}
},
customType: {
id: "customType",
input: "button-group",
defaultValue: "text",
label: "Custom type",
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "Custom"
},
options: [{
key: "text",
text: "Text"
}, {
key: "button",
text: "Button"
}, {
key: "image",
text: "Image"
}, {
key: "icon",
text: "Icon"
}]
}
},
text: {
id: "text",
input: "text",
defaultValue: {
text: "Text",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text",
props: {
relationship: wf
}
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "icon"
},
relationship2: wf
},
label: "Icon"
},
buttonBg: {
id: "buttonBg",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: wf
},
label: "Button background color"
},
buttonBorderColor: {
id: "buttonBorderColor",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: wf
},
label: "Button border color"
},
buttonBorderWidth: {
id: "buttonBorderWidth",
input: "input-number",
defaultValue: "0",
props: {
min: 0,
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: wf
},
label: "Button border width"
},
buttonSize: {
id: "buttonSize",
input: "size",
defaultValue: {
width: "80",
height: "32"
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: wf
},
label: "Button size"
},
buttonBorderRadius: {
id: "buttonBorderRadius",
input: "input-number",
defaultValue: "0",
props: {
min: 0,
relationship: {
paths: ["customType"],
operator: "==",
value: "button"
},
relationship2: wf
},
label: "Button border radius"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "icon"
},
relationship2: wf
},
label: "Icon color"
},
iconSize: {
id: "iconSize",
input: "input-number",
defaultValue: "14",
props: {
min: 1,
relationship: {
paths: ["customType"],
operator: "==",
value: "icon"
},
relationship2: wf
},
label: "Icon size"
},
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "image"
},
relationship2: wf
},
label: "Image"
},
imageSize: {
id: "imageSize",
input: "size",
defaultValue: {
width: "32",
height: "32"
},
props: {
relationship: {
paths: ["customType"],
operator: "==",
value: "image"
},
relationship2: wf
},
label: "Image size"
},
customFieldName: {
id: "customFieldName",
input: "text",
defaultValue: "",
label: "Custom Field Name",
translate: !1,
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "AdvancedCustomFields"
}
}
},
action: {
id: "action",
input: "action",
defaultValue: $p.home,
isTranslate: !0,
label: "Action",
props: {
relationship: wf
}
}
}
},
label: "Columns"
}
}
}
}, Tf = {
fieldId: "postDetailPage",
widgets: {
postDetailPage: {
id: "postDetailPage",
type: "postDetailPage",
fields: {
enableBlock: !0,
enableDynamicLink: !1,
dynamicLinkType: "long_link",
dynamicLinkUriPrefix: {
text: ""
},
dynamicLinkFallbackUrl: {
text: ""
},
dynamicLinkAndroidMinimumVersion: 1,
dynamicLinkAndroidPackageName: {
text: ""
},
dynamicLinkIosAppStoreId: {
text: ""
},
dynamicLinkIosBundleId: {
text: ""
},
dynamicLinkIosMinimumVersion: {
text: ""
},
rows: [Cf("Category"), Cf("Name"), {
template: "default",
active: !0,
data: {
mainAxisAlignment: "start",
crossAxisAlignment: "start",
divider: !1,
columns: [{
active: !1,
value: {
type: "Author",
enableFlex: !1,
flex: "1",
queryBy: "tag"
}
}, {
active: !1,
value: {
type: "CountComment",
enableFlex: !1,
flex: "1",
queryBy: "tag"
}
}, {
active: !1,
value: {
type: "Date",
enableFlex: !1,
flex: "1",
queryBy: "tag"
}
}]
}
}, Cf("FeatureImage"), Cf("Content"), Cf("Tag"), Cf("Comments"), Cf("RelatedPost")]
},
styles: {
backgroundCategory: {
dark: ec.greenColor,
value: ec.greenColor
},
colorCategory: {
dark: ec.white,
value: ec.white
},
radiusCategory: 19
},
layout: "default"
}
},
widgetIds: ["postDetailPage"],
configs: {
name: "Post Detail"
},
action: $p.post
}, Ef = {
id: "postDetailPage",
name: "Post Detail",
content: "Screen post detail",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
enableBlock: {
id: "enableBlock",
input: "switch",
defaultValue: !0,
label: "Use block render"
},
__lineDynamicLink: {
id: "__lineDynamicLink",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headingDynamicLink: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "Dynamic Link"
},
enableDynamicLink: {
id: "enableDynamicLink",
input: "switch",
defaultValue: !1,
label: "Enable Dynamic Link"
},
dynamicLinkType: {
id: "dynamicLinkType",
input: "select",
defaultValue: "long_link",
label: "Type",
props: {
options: uh
}
},
dynamicLinkUriPrefix: {
id: "dynamicLinkUriPrefix",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Prefix Url"
},
dynamicLinkFallbackUrl: {
id: "dynamicLinkFallbackUrl",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Fallback Url"
},
__headingDynamicLinkAndroid: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "Android"
},
dynamicLinkAndroidPackageName: {
id: "dynamicLinkAndroidPackageName",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Package Name"
},
dynamicLinkAndroidMinimumVersion: {
id: "dynamicLinkAndroidMinimumVersion",
input: "input-number",
defaultValue: 1,
label: "Android Minimum Version"
},
__headingDynamicLinkIos: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "iOS"
},
dynamicLinkIosAppStoreId: {
id: "dynamicLinkIosAppStoreId",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "App Store ID"
},
dynamicLinkIosBundleId: {
id: "dynamicLinkIosBundleId",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Bundle ID"
},
dynamicLinkIosMinimumVersion: {
id: "dynamicLinkIosMinimumVersion",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "iOS Minimum Version"
},
__lineRow: {
id: "__lineRow",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
rows: {
id: "rows",
input: "items",
active: 0,
toggle: !0,
defaultValue: [Cf("Category"), Cf("Name"), {
template: "default",
active: !0,
data: {
mainAxisAlignment: "start",
crossAxisAlignment: "start",
divider: !1,
columns: [{
active: !1,
value: {
type: "Author",
enableFlex: !1,
flex: "1",
queryBy: "tag"
}
}, {
active: !1,
value: {
type: "CountComment",
enableFlex: !1,
flex: "1",
queryBy: "tag"
}
}, {
active: !1,
value: {
type: "Date",
enableFlex: !1,
flex: "1",
queryBy: "tag"
}
}]
}
}, Cf("FeatureImage"), Cf("Content"), Cf("Tag"), Cf("Comments"), Cf("RelatedPost")],
label: "Rows",
props: {
preview: "slideshow",
templates: Af,
collect: !0
}
}
},
styles: {
__headerItem: {
id: "__headerItem",
input: "heading",
defaultValue: "",
label: "Config item category"
},
backgroundCategory: {
id: "backgroundCategory",
input: "color",
defaultValue: {
dark: ec.greenColor,
value: ec.greenColor
},
label: "Background Category"
},
colorCategory: {
id: "colorCategory",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "Color category"
},
radiusCategory: {
id: "radiusCategory",
input: "slider",
defaultValue: 19,
label: "Border radius category",
props: {
max: 19
}
},
__lineFeature: {
id: "__lineFeature",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerFeature: {
id: "__headerFeature",
input: "heading",
defaultValue: "",
label: "Config Feature image"
},
thumbSizes: _h,
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "overlay",
name: "Overlay"
}, {
id: "curve_top",
name: "Curve image top"
}, {
id: "curve_bottom",
name: "Curve image bottom"
}, {
id: "gradient",
name: "Gradient"
}, {
id: "stack",
name: "Stack"
}, {
id: "layer",
name: "Layer"
}]
}
}, If = {
fieldId: "postCategoryPage",
widgets: {
postCategoryPage: {
id: "postCategoryPage",
type: "postCategoryPage",
fields: {},
styles: {},
layout: "default"
}
},
widgetIds: ["postCategoryPage"],
configs: {
name: "Post Category"
},
action: $p.postCategory
}, Nf = {
id: "postCategoryPage",
name: "Post Category",
content: "Screen post category",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__lineSideBar: {
id: "__lineSideBar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
}
},
styles: {},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}]
}
}, zf = {
fieldId: "postWishlistPage",
widgets: {
postWishlistPage: {
id: "postWishlistPage",
type: "postWishlistPage",
fields: {},
styles: {
textColor: {
dark: ec.white,
value: ec.black
},
subTextColor: {
dark: ec.secondaryTextDarkMode,
value: ec.tertiaryText
},
labelColor: {
dark: ec.greenColor,
value: ec.greenColor
},
labelTextColor: {
dark: ec.white,
value: ec.white
},
labelRadius: 19,
radiusImage: 8
},
layout: "default"
}
},
widgetIds: ["postWishlistPage"],
configs: {
name: "Post Wishlist"
},
action: $p.postWishlist
}, Df = {
id: "postWishlistPage",
name: "Post Wishlist",
content: "Screen post wishlist",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__lineSideBar: {
id: "__lineSideBar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
}
},
styles: {
__headerItem: {
id: "__headerItem",
input: "heading",
defaultValue: "",
label: "Config item"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.secondaryTextDarkMode,
value: ec.tertiaryText
},
label: "Sub text color"
},
labelColor: {
id: "labelColor",
input: "color",
defaultValue: {
dark: ec.greenColor,
value: ec.greenColor
},
label: "Label color"
},
labelTextColor: {
id: "labelTextColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.white
},
label: "On Label color"
},
labelRadius: {
id: "labelRadius",
input: "slider",
defaultValue: 19,
label: "Border radius label",
props: {
max: 19
}
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius image",
props: {
max: 30
}
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}]
}
}, Lf = {
widgets: {
vendorListPage: {
id: "vendorListPage",
type: "vendorListPage",
fields: {
itemPerPage: 10,
enableRating: !0
},
styles: {},
layout: "default"
}
},
widgetIds: ["vendorListPage"],
configs: {
name: "Store List",
enableCenterTitle: !0
},
action: $p.vendor
}, Rf = {
id: "vendorListPage",
name: "Store List",
content: "Store List",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
itemPerPage: {
id: "itemPerPage",
input: "input-number",
defaultValue: "10",
label: "Item Per Page",
props: {
min: 1,
max: 100
}
},
enableRangeFilter: {
id: "itemPerPage",
input: "switch",
defaultValue: !1,
label: "Enable range filter"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__item: {
id: "__item",
input: "heading",
defaultValue: "",
label: "Item"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable Rating"
}
},
styles: {},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "map",
name: "Map"
}]
}
}, Pf = {
widgets: {
vendorDetailPage: {
id: "vendorDetailPage",
type: "vendorDetailPage",
fields: {
typeAppBar: "emerge"
},
enableRating: !0,
styles: {},
layout: "default"
}
},
widgetIds: ["vendorDetailPage"],
configs: {
name: "Store Detail",
enableCenterTitle: !0
},
action: $p.vendorDetail
}, Bf = {
id: "vendorDetailPage",
name: "Store Detail",
content: "Store Detail",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
typeAppBar: {
id: "typeAppBar",
input: "select",
defaultValue: "emerge",
label: "Type appbar",
props: {
options: [{
key: "emerge",
text: "Emerge"
}, {
key: "opacity",
text: "Opacity"
}]
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__item: {
id: "__item",
input: "heading",
defaultValue: "",
label: "Item"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable Rating"
}
},
styles: {}
}, Ff = {
fieldId: "productQuickView",
widgets: {
productQuickView: {
id: "productQuickView",
type: "productQuickView",
fields: {
dynamicLinkType: "long_link",
dynamicLinkUriPrefix: {
text: ""
},
dynamicLinkFallbackUrl: {
text: ""
},
dynamicLinkAndroidMinimumVersion: 1,
dynamicLinkAndroidPackageName: {
text: ""
},
dynamicLinkIosAppStoreId: {
text: ""
},
dynamicLinkIosBundleId: {
text: ""
},
dynamicLinkIosMinimumVersion: {
text: ""
},
rows: [Ph("Category"), Ph("Name"), Ph("Rating"), Ph("Price"), Ph("Status"), Ph("Type"), Ph("Quantity"), Ph("AddOns"), Ph("SortDescription"), Ph("Description"), Ph("AdditionInformation"), Ph("Review"), Ph("AddToCart"), Ph("FeaturedImage")]
},
styles: {
background: {
dark: ec.black,
value: ec.white
}
},
layout: "default"
}
},
widgetIds: ["productQuickView"],
configs: {
name: "Product Quick View"
},
action: $p.product
}, Vf = {
id: "productQuickView",
name: "Product Detail",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__headingDynamicLink: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "Dynamic Link"
},
enableDynamicLink: {
id: "enableDynamicLink",
input: "switch",
defaultValue: !1,
label: "Enable Dynamic Link"
},
dynamicLinkType: {
id: "dynamicLinkType",
input: "select",
defaultValue: "long_link",
label: "Type",
props: {
options: uh
}
},
dynamicLinkUriPrefix: {
id: "dynamicLinkUriPrefix",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Prefix Url"
},
dynamicLinkFallbackUrl: {
id: "dynamicLinkFallbackUrl",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Fallback Url"
},
__headingDynamicLinkAndroid: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "Android"
},
dynamicLinkAndroidPackageName: {
id: "dynamicLinkAndroidPackageName",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Package Name"
},
dynamicLinkAndroidMinimumVersion: {
id: "dynamicLinkAndroidMinimumVersion",
input: "input-number",
defaultValue: 1,
label: "Android Minimum Version"
},
__headingDynamicLinkIos: {
id: "__headingDynamicLink",
input: "heading",
defaultValue: "",
label: "iOS"
},
dynamicLinkIosAppStoreId: {
id: "dynamicLinkIosAppStoreId",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "App Store ID"
},
dynamicLinkIosBundleId: {
id: "dynamicLinkIosBundleId",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Bundle ID"
},
dynamicLinkIosMinimumVersion: {
id: "dynamicLinkIosMinimumVersion",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "iOS Minimum Version"
},
__lineContent: {
id: "__lineContent",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headingContent: {
id: "__headingContent",
input: "heading",
defaultValue: "",
label: "Product Content Blocks"
},
rows: {
id: "rows",
input: "items",
active: 0,
toggle: !0,
defaultValue: [Ph("Category"), Ph("Name"), Ph("Rating"), Ph("Price"), Ph("Status"), Ph("Type"), Ph("Quantity"), Ph("AddOns"), Ph("SortDescription"), Ph("Description"), Ph("AdditionInformation"), Ph("Review"), Ph("AddToCart")],
label: "Rows",
props: {
preview: "slideshow",
templates: Fh,
numberItem: !0,
textItem: "Row"
}
}
},
styles: {
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.white
},
label: "Background Color"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}]
}
}, Wf = {
widgets: {
brandListPage: {
id: "brandListPage",
type: "brandListPage",
fields: {
enableImage: !0,
enableNumber: !0,
enableBorderImage: !0
},
styles: {}
}
},
widgetIds: ["brandListPage"],
configs: {
name: "Brand List",
enableCenterTitle: !0,
enableAppbarCart: !0
},
action: $p.brands
}, qf = {
id: "brandListPage",
name: "Brand List",
content: "Brand List",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
__headerItem: {
id: "__headerItem",
input: "heading",
defaultValue: "",
label: "Item brand"
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable image"
},
enableBorderImage: {
id: "enableBorderImage",
input: "switch",
defaultValue: !0,
label: "Enable border image",
props: {
relationship: {
paths: ["fields", "enableImage"],
operator: "==",
value: !0
}
}
},
enableNumber: {
id: "enableNumber",
input: "switch",
defaultValue: !0,
label: "Enable number"
}
},
styles: {}
}, Hf = {
widgets: {
cartPage: {
id: "cartPage",
type: "cartPage",
fields: {
enableShipping: !0,
enableCoupon: !0,
enableExpressCheckout: !1,
shippingMethodLayoutDirection: "horizontal",
shippingMethodItemType: "icon",
buttonTitle: {
text: "Submit",
style: {
fontSize: 14,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.white
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
}
}
},
buttonAction: $p.none,
buttonBackground: {
value: ec.transparent,
dark: ec.transparent
}
}
}
},
widgetIds: ["cartPage"],
configs: {
name: "Cart"
},
action: $p.cart
}, Uf = {
id: "cartPage",
name: "Cart",
content: "Cart",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
enableShipping: {
id: "enableShipping",
input: "switch",
defaultValue: "true",
label: "Show change shipping method"
},
enableCoupon: {
id: "enableCoupon",
input: "switch",
defaultValue: "true",
label: "Enable Coupon Block"
},
enableExpressCheckout: {
id: "enableExpressCheckout",
input: "switch",
defaultValue: "false",
label: "Enable Express Checkout"
},
line: {
id: "line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
header: {
id: "header",
input: "heading",
defaultValue: "",
label: "Shipping method"
},
shippingMethodLayoutDirection: {
id: "shippingMethodLayoutDirection",
input: "select",
defaultValue: "horizontal",
label: "Layout Direction",
props: {
options: [{
key: "horizontal",
text: "Horizontal"
}, {
key: "vertical",
text: "Vertical"
}]
}
},
shippingMethodItemType: {
id: "shippingMethodItemType",
input: "select",
defaultValue: "icon",
label: "Item Type",
props: {
options: [{
key: "icon",
text: "Icon"
}, {
key: "filter",
text: "Filter"
}, {
key: "radio",
text: "Radio"
}]
}
},
buttonLine: {
id: "buttonLine",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
buttonHeader: {
id: "buttonHeader",
input: "heading",
defaultValue: "",
label: "Button"
},
buttonTitle: {
id: "buttonTitle",
input: "text",
defaultValue: {
text: "Submit",
style: {
fontSize: 14,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.white
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
}
}
},
isStyle: !0,
isTranslate: !0,
label: "Title"
},
buttonAction: {
id: "buttonAction",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action",
info: 'With type is "Launcher" or "Share", You can get "cart" or data user "name", "phone", "email" by {}. EX: https://api.com?text={cart},{name}'
},
buttonBackground: {
id: "buttonBackground",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
}
}
}, Xf = window.app_builder.template_active_id, Gf = {
screens: {
home: {
configs: {
name: "Home",
extendBody: !0,
stackHeight: 400
},
action: $p.home
},
category: Mh,
products: ef,
product: Rh,
cart: Hf,
profile: Ih,
wishlist: {
configs: {
name: "WishList"
},
action: $p.wishlist
},
contact: df,
onBoarding: Ah,
login: hf,
register: bf,
postList: jf,
postDetail: Tf,
postCategory: If,
postWishlist: zf,
vendorList: Lf,
vendorDetail: Pf,
productQuickView: Ff,
brands: Wf
},
settings: {
theme: fh,
general: ph,
tabs: Wp,
sidebar: eh
},
extraScreens: {
custom: {
configs: {
name: "Custom Screen"
},
action: {
type: "screen",
route: "/custom",
args: {
key: "extraScreens_custom"
}
},
products: ef,
product: Rh
},
custom2: {
configs: {
name: "Custom Tab"
},
action: {
type: "tab",
route: "/",
args: {
key: "extraScreens_custom2"
}
}
}
}
}, Kf = "screens_home", Yf = ts({
name: "template",
initialState: {
templateActiveId: Xf,
templates: [],
preTemplates: [],
loading: {
fetch: "ide",
update: "ide",
create: "ide",
delete: "ide",
preTemps: "ide",
createPreset: "ide"
},
templateActive: void 0,
screenActive: Kf
},
reducers: {
selectScreenKey: function(e, t) {
e.screenActive = t.payload
},
updateScreenData: function(e, t) {
var n = t.payload
, r = n.key
, i = n.data
, o = Dt()(r, "_");
2 === o.length && e.templateActive && e.templateActive.data && (e.templateActive.data[o[0]][o[1]] = i)
},
configTemplate: function(e, t) {
var n = t.payload;
e.screenActive = Kf;
var r, i, o = _t({}, Gf.screens), a = Object.assign({}, n, {
data: _t(_t({}, n.data), {}, {
screens: (r = o,
i = n.data.screens,
Oh()(r, i, jh))
})
});
e.templateActive = a
},
addScreen: function(e, t) {
var n = t.payload.name;
if (e.templateActive && e.templateActive.data) {
var r = Ou()(n);
if (e.templateActive && !e.templateActive.data.extraScreens[r]) {
var i = {
key: "extraScreens_" + r
};
e.templateActive.data.extraScreens[r] = {
fieldId: void 0,
widgetIds: [],
widgets: {},
configs: {
name: n
},
action: t.payload.action ? _t(_t({}, t.payload.action), {}, {
args: i
}) : {
type: "screen",
route: "/custom",
args: i
}
},
Pp.success("Screen created!")
}
}
},
deleteScreen: function(e, t) {
var n = t.payload.key;
n && e.templateActive && (e.screenActive === "extraScreens_" + n && (e.screenActive = ""),
delete e.templateActive.data.extraScreens[n],
Pp.success("Screen deleted!"))
}
},
extraReducers: (_f = {},
Object(wt.a)(_f, nf.fulfilled, (function(e, t) {
e.templates = t.payload,
e.loading.fetch = "fulfilled"
}
)),
Object(wt.a)(_f, nf.pending, (function(e, t) {
e.loading.fetch = "pending"
}
)),
Object(wt.a)(_f, nf.rejected, (function(e, t) {
e.loading.fetch = "rejected"
}
)),
Object(wt.a)(_f, rf.fulfilled, (function(e, t) {
e.preTemplates = t.payload,
e.loading.preTemps = "fulfilled"
}
)),
Object(wt.a)(_f, rf.pending, (function(e, t) {
e.loading.preTemps = "pending"
}
)),
Object(wt.a)(_f, rf.rejected, (function(e, t) {
e.loading.preTemps = "rejected"
}
)),
Object(wt.a)(_f, af.fulfilled, (function(e, t) {
Pp.success("Update template successfully!"),
e.loading.update = "fulfilled"
}
)),
Object(wt.a)(_f, af.pending, (function(e, t) {
e.loading.update = "pending"
}
)),
Object(wt.a)(_f, af.rejected, (function(e, t) {
e.loading.update = "rejected"
}
)),
Object(wt.a)(_f, of.fulfilled, (function(e, t) {
Pp.success("Create template successfully!"),
e.loading.create = "fulfilled"
}
)),
Object(wt.a)(_f, of.pending, (function(e, t) {
e.loading.create = "pending"
}
)),
Object(wt.a)(_f, of.rejected, (function(e, t) {
e.loading.create = "rejected"
}
)),
Object(wt.a)(_f, lf.fulfilled, (function(e, t) {
Pp.success("Delete template successfully!"),
e.loading.delete = "fulfilled"
}
)),
Object(wt.a)(_f, lf.pending, (function(e, t) {
e.loading.delete = "pending"
}
)),
Object(wt.a)(_f, lf.rejected, (function(e, t) {
e.loading.delete = "rejected"
}
)),
Object(wt.a)(_f, sf.fulfilled, (function(e, t) {
var n, r, i;
e.templateActiveId = null !== (n = null == t || null === (r = t.meta) || void 0 === r || null === (i = r.arg) || void 0 === i ? void 0 : i.id) && void 0 !== n ? n : 0
}
)),
Object(wt.a)(_f, cf.fulfilled, (function(e, t) {
Pp.success("Create preset successfully!"),
e.loading.createPreset = "fulfilled"
}
)),
Object(wt.a)(_f, cf.pending, (function(e, t) {
e.loading.createPreset = "pending"
}
)),
Object(wt.a)(_f, cf.rejected, (function(e, t) {
e.loading.createPreset = "rejected"
}
)),
_f)
}), Qf = Yf.actions, Jf = Qf.updateScreenData, Zf = Qf.selectScreenKey, $f = Qf.configTemplate, eb = Qf.addScreen, tb = Qf.deleteScreen, nb = function(e) {
return e.template
}, rb = Ll(nb, (function(e) {
return e.templates
}
)), ib = Ll(nb, (function(e) {
return e.preTemplates
}
)), ob = Ll(nb, (function(e) {
return e.templateActive
}
)), ab = Ll(nb, (function(e) {
return e.templateActiveId
}
)), lb = Ll(nb, (function(e) {
return e.screenActive
}
)), sb = Ll(ob, (function(e) {
return e ? e.name : ""
}
)), cb = (Ll(ob, (function(e) {
return e ? e.id : 0
}
)),
Ll(ob, (function(e) {
return e ? e.featured_media : 0
}
)),
Ll(nb, (function(e) {
return e.loading
}
))), ub = Ll(lb, (function(e) {
return !$s.includes(e)
}
)), db = Ll(nb, (function(e) {
return e && e.templateActive && e.templateActive.data ? e.templateActive.data.settings : {}
}
)), pb = Ll(nb, (function(e) {
return e && e.templateActive && e.templateActive.data ? fs()(ku()(e.templateActive.data.screens), ku()(e.templateActive.data.extraScreens)) : []
}
)), hb = Ll(nb, (function(e) {
return e && e.templateActive && e.templateActive.data ? fs()(ku()(Gf.screens), ku()(e.templateActive.data.extraScreens)) : []
}
)), fb = (Ll(nb, (function(e) {
return e && e.templateActive && e.templateActive.data ? Cu()(e.templateActive.data, ["settings", "theme", "widgets", "theme", "fields"], {}) : {}
}
)),
Yf.reducer), bb = window.app_builder_settings, gb = function(e) {
var t = "string" == typeof (null == e ? void 0 : e.type) ? e.type : "text"
, n = null == e ? void 0 : e.value;
if ("switch" === t)
return !0 === n || !1 === n ? n : "1" === n || 1 === n || "true" === n;
if ("number" === t) {
var r = Number(n);
return Number.isInteger(r) ? r : void 0
}
if ("select" === t) {
var i = Array.isArray(null == e ? void 0 : e.options) ? null == e ? void 0 : e.options.map((function(e) {
var t;
return null !== (t = null == e ? void 0 : e.value) && void 0 !== t ? t : ""
}
)) : [];
return i.includes(n) ? n : i.length > 0 ? i[0] : void 0
}
return "string" == typeof n ? n : ""
}, mb = function(e) {
for (var t, n, r = {}, i = Array.isArray(null == bb || null === (t = bb.features) || void 0 === t ? void 0 : t[e]) ? null == bb || null === (n = bb.features) || void 0 === n ? void 0 : n[e] : [], o = 0; o < i.length; o++)
for (var a = i[o], l = a && null != a && a.fields && Array.isArray(null == a ? void 0 : a.fields) ? a.fields : [], s = 0; s < l.length; s++) {
var c = l[s]
, u = c && c.name ? c.name : ""
, d = gb(c);
void 0 !== d && (r = _t(_t({}, r), {}, Object(wt.a)({}, u, d)))
}
return r
}, vb = ts({
name: "settings",
initialState: {
settings: bb,
upgraderSetting: mb("app_builder_upgrader_settings"),
customIconsSetting: mb("app_builder_custom_icon_settings")
},
reducers: {
changeUpgraderSetting: function(e, t) {
e.upgraderSetting = t.payload
},
changeCustomIconsSetting: function(e, t) {
e.customIconsSetting = t.payload
}
}
}), yb = vb.actions, xb = (yb.changeUpgraderSetting,
yb.changeCustomIconsSetting,
function(e) {
return e.settings
}
), Ob = (Ll(xb, (function(e) {
return e.upgraderSetting
}
)),
Ll(xb, (function(e) {
return e.customIconsSetting
}
)),
vb.reducer), jb = n(30), kb = n.n(jb), wb = n(48), Cb = n.n(wb), _b = null === (Mf = window.app_builder_settings) || void 0 === Mf ? void 0 : Mf.features, Mb = function(e) {
var t = "string" == typeof (null == e ? void 0 : e.type) ? e.type : "text"
, n = null == e ? void 0 : e.value;
if ("switch" === t)
return !0 === n || !1 === n ? n : "1" === n || 1 === n || "true" === n;
if ("number" === t) {
var r = Number(n);
return Number.isInteger(r) ? r : void 0
}
if ("select" === t) {
var i = Array.isArray(null == e ? void 0 : e.options) ? null == e ? void 0 : e.options.map((function(e) {
var t;
return null !== (t = null == e ? void 0 : e.value) && void 0 !== t ? t : ""
}
)) : [];
return i.includes(n) ? n : i.length > 0 ? i[0] : void 0
}
return "string" == typeof n ? n : ""
}, Sb = ts({
name: "features",
initialState: {
data: function() {
var e = {};
if (kb()(_b) && !yh()(_b) && !Rt()(_b))
for (var t = 0, n = Object.keys(_b); t < n.length; t++) {
var r = n[t]
, i = {}
, o = Cu()(_b, [r]);
if (yh()(o) && !Rt()(o))
for (var a = 0; a < o.length; a++)
for (var l = o[a], s = yh()(null == l ? void 0 : l.fields) ? l.fields : [], c = 0; c < s.length; c++) {
var u = s[c]
, d = u && u.name ? u.name : ""
, p = Mb(u);
void 0 !== p && (i = _t(_t({}, i), {}, Object(wt.a)({}, d, p)))
}
e[r] = i
}
return e
}()
},
reducers: {
changeDataFeatures: function(e, t) {
var n, r, i = null === (n = t.payload) || void 0 === n ? void 0 : n.key, o = null === (r = t.payload) || void 0 === r ? void 0 : r.data;
if (Cb()(i) && "" !== i && o) {
var a = Il(e.data, (function(e) {
e[i] = o
}
));
e.data = a
}
}
}
}), Ab = Sb.actions.changeDataFeatures, Tb = Ll((function(e) {
return e.features
}
), (function(e) {
return e.data
}
)), Eb = Sb.reducer, Ib = window.app_builder_integrations, Nb = ts({
name: "integrations",
initialState: {
data: function() {
var e = kb()(null == Ib ? void 0 : Ib.settings) && !yh()(null == Ib ? void 0 : Ib.settings) ? Ib.settings : {}
, t = kb()(null == Ib ? void 0 : Ib.values) && !yh()(null == Ib ? void 0 : Ib.values) ? Ib.values : {};
return Object.keys(e).map((function(n) {
return {
key: n,
setting: kb()(e[n]) && !yh()(e[n]) ? e[n] : {},
value: kb()(t[n]) && !yh()(t[n]) ? t[n] : {}
}
}
))
}()
},
reducers: {
changeIntegrations: function(e, t) {
e.data = t.payload
}
}
}), zb = Nb.actions.changeIntegrations, Db = Ll((function(e) {
return e.integrations
}
), (function(e) {
return e.data
}
)), Lb = function(e) {
var t, n = function(e) {
return function(e) {
void 0 === e && (e = {});
var t = e.thunk
, n = void 0 === t || t
, r = (e.immutableCheck,
e.serializableCheck,
new Zl);
return n && ("boolean" == typeof n ? r.push(Bl) : r.push(Bl.withExtraArgument(n.extraArgument))),
r
}(e)
}, r = e || {}, i = r.reducer, o = void 0 === i ? void 0 : i, a = r.middleware, l = void 0 === a ? n() : a, s = r.devTools, c = void 0 === s || s, u = r.preloadedState, d = void 0 === u ? void 0 : u, p = r.enhancers, h = void 0 === p ? void 0 : p;
if ("function" == typeof o)
t = o;
else {
if (!function(e) {
if ("object" != typeof e || null === e)
return !1;
var t = Object.getPrototypeOf(e);
if (null === t)
return !0;
for (var n = t; null !== Object.getPrototypeOf(n); )
n = Object.getPrototypeOf(n);
return t === n
}(o))
throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
t = Ea(o)
}
var f = l;
"function" == typeof f && (f = f(n));
var b = Da.apply(void 0, f)
, g = za;
c && (g = Jl(Yl({
trace: !1
}, "object" == typeof c && c)));
var m = [b];
return Array.isArray(h) ? m = Vl([b], h) : "function" == typeof h && (m = h(m)),
Ta(t, d, g.apply(void 0, m))
}({
reducer: Ea({
common: $c,
widget: yu,
template: fb,
settings: Ob,
features: Eb,
integrations: Nb.reducer
}),
devTools: !1
}), Rb = s.a.createContext({
isAuthenticated: !0,
loading: !1,
logout: function() {},
login: function(e) {},
profile: {
copyright: ""
},
settings: {
btn: {
save: !0,
className: "",
progress: "",
typebtn: "",
txt: "save"
},
groups: {},
name: "",
url: ""
}
}), Pb = (Rb.Provider,
Rb.Consumer,
["children"]);
function Bb() {
return Object(l.useContext)(Rb)
}
function Fb(e) {
var t = e.children
, n = Su(e, Pb)
, r = Bb()
, i = Cu()(r, [Bs[0]]);
return Object(Ip.jsx)(yn, _t(_t({}, n), {}, {
render: function(e) {
var n = e.location;
return i ? t : Object(Ip.jsx)(bn, {
to: {
pathname: Ls,
state: {
from: n
}
}
})
}
}))
}
function Vb(e, t, n) {
void 0 === n && (n = 0);
for (var r = -1, i = n; e && i < e.length; i++)
if (t(e[i], i)) {
r = i;
break
}
return r
}
function Wb(e, t) {
return void 0 === t && (t = !0),
e && (t && function(e) {
var t, n;
return e && (n = e) && n._virtual && (t = e._virtual.parent),
t
}(e) || e.parentNode && e.parentNode)
}
function qb(e, t) {
return e && e !== document.body ? t(e) ? e : qb(Wb(e), t) : null
}
var Hb = "data-portal-element";
function Ub(e, t) {
var n = qb(e, (function(e) {
return t === e || e.hasAttribute(Hb)
}
));
return null !== n && n.hasAttribute(Hb)
}
function Xb(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return t.length < 2 ? t[0] : function() {
for (var n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
t.forEach((function(t) {
return t && t.apply(e, n)
}
))
}
}
function Gb(e, t) {
for (var n in t)
t.hasOwnProperty(n) && (e[n] = Xb(e, e[n], t[n]))
}
function Kb(e) {
Gb(e, {
componentDidMount: Yb,
componentDidUpdate: Qb,
componentWillUnmount: Jb
})
}
function Yb() {
Zb(this.props.componentRef, this)
}
function Qb(e) {
e.componentRef !== this.props.componentRef && (Zb(e.componentRef, null),
Zb(this.props.componentRef, this))
}
function Jb() {
Zb(this.props.componentRef, null)
}
function Zb(e, t) {
e && ("object" == typeof e ? e.current = t : "function" == typeof e && e(t))
}
var $b = function() {
function e(e, t) {
this._timeoutIds = null,
this._immediateIds = null,
this._intervalIds = null,
this._animationFrameIds = null,
this._isDisposed = !1,
this._parent = e || null,
this._onErrorHandler = t,
this._noop = function() {}
}
return e.prototype.dispose = function() {
var e;
if (this._isDisposed = !0,
this._parent = null,
this._timeoutIds) {
for (e in this._timeoutIds)
this._timeoutIds.hasOwnProperty(e) && this.clearTimeout(parseInt(e, 10));
this._timeoutIds = null
}
if (this._immediateIds) {
for (e in this._immediateIds)
this._immediateIds.hasOwnProperty(e) && this.clearImmediate(parseInt(e, 10));
this._immediateIds = null
}
if (this._intervalIds) {
for (e in this._intervalIds)
this._intervalIds.hasOwnProperty(e) && this.clearInterval(parseInt(e, 10));
this._intervalIds = null
}
if (this._animationFrameIds) {
for (e in this._animationFrameIds)
this._animationFrameIds.hasOwnProperty(e) && this.cancelAnimationFrame(parseInt(e, 10));
this._animationFrameIds = null
}
}
,
e.prototype.setTimeout = function(e, t) {
var n = this
, r = 0;
return this._isDisposed || (this._timeoutIds || (this._timeoutIds = {}),
r = setTimeout((function() {
try {
n._timeoutIds && delete n._timeoutIds[r],
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
}
), t),
this._timeoutIds[r] = !0),
r
}
,
e.prototype.clearTimeout = function(e) {
this._timeoutIds && this._timeoutIds[e] && (clearTimeout(e),
delete this._timeoutIds[e])
}
,
e.prototype.setImmediate = function(e, t) {
var n = this
, r = 0
, i = ji(t);
return this._isDisposed || (this._immediateIds || (this._immediateIds = {}),
r = i.setTimeout((function() {
try {
n._immediateIds && delete n._immediateIds[r],
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
}
), 0),
this._immediateIds[r] = !0),
r
}
,
e.prototype.clearImmediate = function(e, t) {
var n = ji(t);
this._immediateIds && this._immediateIds[e] && (n.clearTimeout(e),
delete this._immediateIds[e])
}
,
e.prototype.setInterval = function(e, t) {
var n = this
, r = 0;
return this._isDisposed || (this._intervalIds || (this._intervalIds = {}),
r = setInterval((function() {
try {
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
}
), t),
this._intervalIds[r] = !0),
r
}
,
e.prototype.clearInterval = function(e) {
this._intervalIds && this._intervalIds[e] && (clearInterval(e),
delete this._intervalIds[e])
}
,
e.prototype.throttle = function(e, t, n) {
var r = this;
if (this._isDisposed)
return this._noop;
var i, o, a = t || 0, l = !0, s = !0, c = 0, u = null;
n && "boolean" == typeof n.leading && (l = n.leading),
n && "boolean" == typeof n.trailing && (s = n.trailing);
var d = function t(n) {
var d = Date.now()
, p = d - c
, h = l ? a - p : a;
return p >= a && (!n || l) ? (c = d,
u && (r.clearTimeout(u),
u = null),
i = e.apply(r._parent, o)) : null === u && s && (u = r.setTimeout(t, h)),
i
};
return function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return o = e,
d(!0)
}
}
,
e.prototype.debounce = function(e, t, n) {
var r = this;
if (this._isDisposed) {
var i = function() {};
return i.cancel = function() {}
,
i.flush = function() {
return null
}
,
i.pending = function() {
return !1
}
,
i
}
var o, a, l = t || 0, s = !1, c = !0, u = null, d = 0, p = Date.now(), h = null;
n && "boolean" == typeof n.leading && (s = n.leading),
n && "boolean" == typeof n.trailing && (c = n.trailing),
n && "number" == typeof n.maxWait && !isNaN(n.maxWait) && (u = n.maxWait);
var f = function(e) {
h && (r.clearTimeout(h),
h = null),
p = e
}
, b = function(t) {
f(t),
o = e.apply(r._parent, a)
}
, g = function e(t) {
var n = Date.now()
, i = !1;
t && (s && n - d >= l && (i = !0),
d = n);
var a = n - d
, f = l - a
, g = n - p
, m = !1;
return null !== u && (g >= u && h ? m = !0 : f = Math.min(f, u - g)),
a >= l || m || i ? b(n) : null !== h && t || !c || (h = r.setTimeout(e, f)),
o
}
, m = function() {
return !!h
}
, v = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return a = e,
g(!0)
};
return v.cancel = function() {
m() && f(Date.now())
}
,
v.flush = function() {
return m() && b(Date.now()),
o
}
,
v.pending = m,
v
}
,
e.prototype.requestAnimationFrame = function(e, t) {
var n = this
, r = 0
, i = ji(t);
if (!this._isDisposed) {
this._animationFrameIds || (this._animationFrameIds = {});
var o = function() {
try {
n._animationFrameIds && delete n._animationFrameIds[r],
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
};
r = i.requestAnimationFrame ? i.requestAnimationFrame(o) : i.setTimeout(o, 0),
this._animationFrameIds[r] = !0
}
return r
}
,
e.prototype.cancelAnimationFrame = function(e, t) {
var n = ji(t);
this._animationFrameIds && this._animationFrameIds[e] && (n.cancelAnimationFrame ? n.cancelAnimationFrame(e) : n.clearTimeout(e),
delete this._animationFrameIds[e])
}
,
e.prototype._logError = function(e) {
this._onErrorHandler && this._onErrorHandler(e)
}
,
e
}();
function eg(e, t) {
for (var n in e)
if (e.hasOwnProperty(n) && (!t.hasOwnProperty(n) || t[n] !== e[n]))
return !1;
for (var n in t)
if (t.hasOwnProperty(n) && !e.hasOwnProperty(n))
return !1;
return !0
}
function tg(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return ng.apply(this, [null, e].concat(t))
}
function ng(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
t = t || {};
for (var i = 0, o = n; i < o.length; i++) {
var a = o[i];
if (a)
for (var l in a)
!a.hasOwnProperty(l) || e && !e(l) || (t[l] = a[l])
}
return t
}
var rg = function() {
function e(t) {
this._id = e._uniqueId++,
this._parent = t,
this._eventRecords = []
}
return e.raise = function(t, n, r, i) {
var o;
if (e._isElement(t)) {
if ("undefined" != typeof document && document.createEvent) {
var a = document.createEvent("HTMLEvents");
a.initEvent(n, i || !1, !0),
tg(a, r),
o = t.dispatchEvent(a)
} else if ("undefined" != typeof document && document.createEventObject) {
var l = document.createEventObject(r);
t.fireEvent("on" + n, l)
}
} else
for (; t && !1 !== o; ) {
var s = t.__events__
, c = s ? s[n] : null;
if (c)
for (var u in c)
if (c.hasOwnProperty(u))
for (var d = c[u], p = 0; !1 !== o && p < d.length; p++) {
var h = d[p];
h.objectCallback && (o = h.objectCallback.call(h.parent, r))
}
t = i ? t.parent : null
}
return o
}
,
e.isObserved = function(e, t) {
var n = e && e.__events__;
return !!n && !!n[t]
}
,
e.isDeclared = function(e, t) {
var n = e && e.__declaredEvents;
return !!n && !!n[t]
}
,
e.stopPropagation = function(e) {
e.stopPropagation ? e.stopPropagation() : e.cancelBubble = !0
}
,
e._isElement = function(e) {
return !!e && (!!e.addEventListener || "undefined" != typeof HTMLElement && e instanceof HTMLElement)
}
,
e.prototype.dispose = function() {
this._isDisposed || (this._isDisposed = !0,
this.off(),
this._parent = null)
}
,
e.prototype.onAll = function(e, t, n) {
for (var r in t)
t.hasOwnProperty(r) && this.on(e, r, t[r], n)
}
,
e.prototype.on = function(t, n, r, i) {
var o = this;
if (n.indexOf(",") > -1)
for (var a = n.split(/[ ,]+/), l = 0; l < a.length; l++)
this.on(t, a[l], r, i);
else {
var s = this._parent
, c = {
target: t,
eventName: n,
parent: s,
callback: r,
options: i
};
if ((a = t.__events__ = t.__events__ || {})[n] = a[n] || {
count: 0
},
a[n][this._id] = a[n][this._id] || [],
a[n][this._id].push(c),
a[n].count++,
e._isElement(t)) {
var u = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
if (!o._isDisposed) {
var n;
try {
if (!1 === (n = r.apply(s, e)) && e[0]) {
var i = e[0];
i.preventDefault && i.preventDefault(),
i.stopPropagation && i.stopPropagation(),
i.cancelBubble = !0
}
} catch (i) {}
return n
}
};
c.elementCallback = u,
t.addEventListener ? t.addEventListener(n, u, i) : t.attachEvent && t.attachEvent("on" + n, u)
} else
c.objectCallback = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
if (!o._isDisposed)
return r.apply(s, e)
}
;
this._eventRecords.push(c)
}
}
,
e.prototype.off = function(e, t, n, r) {
for (var i = 0; i < this._eventRecords.length; i++) {
var o = this._eventRecords[i];
if (!(e && e !== o.target || t && t !== o.eventName || n && n !== o.callback || "boolean" == typeof r && r !== o.options)) {
var a = o.target.__events__
, l = a[o.eventName]
, s = l ? l[this._id] : null;
s && (1 !== s.length && n ? (l.count--,
s.splice(s.indexOf(o), 1)) : (l.count -= s.length,
delete a[o.eventName][this._id]),
l.count || delete a[o.eventName]),
o.elementCallback && (o.target.removeEventListener ? o.target.removeEventListener(o.eventName, o.elementCallback, o.options) : o.target.detachEvent && o.target.detachEvent("on" + o.eventName, o.elementCallback)),
this._eventRecords.splice(i--, 1)
}
}
}
,
e.prototype.raise = function(t, n, r) {
return e.raise(this._parent, t, n, r)
}
,
e.prototype.declare = function(e) {
var t = this._parent.__declaredEvents = this._parent.__declaredEvents || {};
if ("string" == typeof e)
t[e] = !0;
else
for (var n = 0; n < e.length; n++)
t[e[n]] = !0
}
,
e._uniqueId = 0,
e
}()
, ig = ji() || {};
void 0 === ig.__currentId__ && (ig.__currentId__ = 0);
var og, ag = !1;
function lg(e) {
if (!ag) {
var t = Pn.getInstance();
t && t.onReset && t.onReset(sg),
ag = !0
}
return (void 0 === e ? "id__" : e) + ig.__currentId__++
}
function sg(e) {
void 0 === e && (e = 0),
ig.__currentId__ = e
}
function cg(e, t, n) {
var r = e[n]
, i = t[n];
(r || i) && (e[n] = function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return i && (e = i.apply(this, t)),
r !== i && (e = r.apply(this, t)),
e
}
)
}
function ug() {
return null
}
!function(e) {
function t(n, r) {
var i = e.call(this, n, r) || this;
return function(e, t, n) {
for (var r = 0, i = n.length; r < i; r++)
cg(e, t, n[r])
}(i, t.prototype, ["componentDidMount", "shouldComponentUpdate", "getSnapshotBeforeUpdate", "render", "componentDidUpdate", "componentWillUnmount"]),
i
}
Object(zn.c)(t, e),
t.prototype.componentDidUpdate = function(e, t) {
this._updateComponentRef(e, this.props)
}
,
t.prototype.componentDidMount = function() {
this._setComponentRef(this.props.componentRef, this)
}
,
t.prototype.componentWillUnmount = function() {
if (this._setComponentRef(this.props.componentRef, null),
this.__disposables) {
for (var e = 0, t = this._disposables.length; e < t; e++) {
var n = this.__disposables[e];
n.dispose && n.dispose()
}
this.__disposables = null
}
}
,
Object.defineProperty(t.prototype, "className", {
get: function() {
if (!this.__className) {
var e = /function (.{1,})\(/.exec(this.constructor.toString());
this.__className = e && e.length > 1 ? e[1] : ""
}
return this.__className
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_disposables", {
get: function() {
return this.__disposables || (this.__disposables = []),
this.__disposables
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_async", {
get: function() {
return this.__async || (this.__async = new $b(this),
this._disposables.push(this.__async)),
this.__async
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_events", {
get: function() {
return this.__events || (this.__events = new rg(this),
this._disposables.push(this.__events)),
this.__events
},
enumerable: !1,
configurable: !0
}),
t.prototype._resolveRef = function(e) {
var t = this;
return this.__resolves || (this.__resolves = {}),
this.__resolves[e] || (this.__resolves[e] = function(n) {
return t[e] = n
}
),
this.__resolves[e]
}
,
t.prototype._updateComponentRef = function(e, t) {
void 0 === t && (t = {}),
e && t && e.componentRef !== t.componentRef && (this._setComponentRef(e.componentRef, null),
this._setComponentRef(t.componentRef, this))
}
,
t.prototype._warnDeprecations = function(e) {
this.className,
this.props
}
,
t.prototype._warnMutuallyExclusive = function(e) {
this.className,
this.props
}
,
t.prototype._warnConditionallyRequiredProps = function(e, t, n) {
this.className,
this.props
}
,
t.prototype._setComponentRef = function(e, t) {
!this._skipComponentRefResolution && e && ("function" == typeof e && e(t),
"object" == typeof e && (e.current = t))
}
}(l.Component);
var dg = ((og = {})[fp] = 1,
og[gp] = 1,
og[hp] = 1,
og[bp] = 1,
og[36] = 1,
og[35] = 1,
og[9] = 1,
og[33] = 1,
og[34] = 1,
og)
, pg = new WeakMap;
function hg(e, t) {
var n, r = pg.get(e);
return n = r ? r + t : 1,
pg.set(e, n),
n
}
function fg(e) {
l.useEffect((function() {
var t, n = ji(null == e ? void 0 : e.current);
if (n && !0 !== (null === (t = n.FabricConfig) || void 0 === t ? void 0 : t.disableFocusRects)) {
var r = hg(n, 1);
return r <= 1 && (n.addEventListener("mousedown", gg, !0),
n.addEventListener("pointerdown", mg, !0),
n.addEventListener("keydown", vg, !0)),
function() {
var e;
n && !0 !== (null === (e = n.FabricConfig) || void 0 === e ? void 0 : e.disableFocusRects) && 0 === (r = hg(n, -1)) && (n.removeEventListener("mousedown", gg, !0),
n.removeEventListener("pointerdown", mg, !0),
n.removeEventListener("keydown", vg, !0))
}
}
}
), [e])
}
var bg = function(e) {
return fg(e.rootRef),
null
};
function gg(e) {
_i(!1, e.target)
}
function mg(e) {
"mouse" !== e.pointerType && _i(!1, e.target)
}
function vg(e) {
var t;
t = e.which,
dg[t] && _i(!0, e.target)
}
function yg() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = e.filter((function(e) {
return e
}
)).join(" ").trim();
return "" === n ? void 0 : n
}
var xg, Og = ["theme", "styles"];
function jg(e, t, n, r, i) {
var o = (r = r || {
scope: "",
fields: void 0
}).scope
, a = r.fields
, s = void 0 === a ? Og : a
, c = l.forwardRef((function(r, i) {
var a = l.useRef()
, c = function(e, t) {
var n = function() {
var e = l.useState(0)[1];
return function() {
return e((function(e) {
return ++e
}
))
}
}()
, r = l.useContext(sp).customizations
, i = r.inCustomizerContext;
return l.useEffect((function() {
return i || Yi.observe(n),
function() {
i || Yi.unobserve(n)
}
}
), [i]),
Yi.getSettings(e, t, r)
}(s, o)
, u = c.styles
, d = (c.dir,
Object(zn.d)(c, ["styles", "dir"]))
, p = n ? n(r) : void 0
, h = a.current && a.current.__cachedInputs__ || [];
if (!a.current || u !== h[1] || r.styles !== h[2]) {
var f = function(e) {
return zo(e, t, u, r.styles)
};
f.__cachedInputs__ = [t, u, r.styles],
f.__noStyleOverride__ = !u && !r.styles,
a.current = f
}
return l.createElement(e, Object(zn.a)({
ref: i
}, d, p, r, {
styles: a.current
}))
}
));
c.displayName = "Styled" + (e.displayName || e.name);
var u = i ? l.memo(c) : c;
return c.displayName && (u.displayName = c.displayName),
u
}
!function(e) {
e[e.default = 0] = "default",
e[e.image = 1] = "image",
e[e.Default = 1e5] = "Default",
e[e.Image = 100001] = "Image"
}(xg || (xg = {}));
var kg, wg, Cg, _g = 0, Mg = Pn.getInstance();
function Sg(e) {
void 0 === e && (e = {});
var t = new Map
, n = 0
, r = 0
, i = _g;
return function(o, a) {
var l;
if (void 0 === a && (a = {}),
e.useStaticStyles && "function" == typeof o && o.__noStyleOverride__)
return o(a);
r++;
var s = t
, c = a.theme
, u = c && void 0 !== c.rtl ? c.rtl : vp()
, d = e.disableCaching;
if (i !== _g && (i = _g,
t = new Map,
n = 0),
e.disableCaching || (s = Tg(t, o),
s = Tg(s, a)),
!d && s.__retval__ || (s.__retval__ = void 0 === o ? {} : Lo(["function" == typeof o ? o(a) : o], {
rtl: !!u,
specificityMultiplier: e.useStaticStyles ? 5 : void 0
}),
d || n++),
n > (e.cacheSize || 50)) {
var p = ji();
(null === (l = null == p ? void 0 : p.FabricConfig) || void 0 === l ? void 0 : l.enableClassNameCacheFullWarning) && (console.warn("Styles are being recalculated too frequently. Cache miss rate is " + n + "/" + r + "."),
console.trace()),
t.clear(),
n = 0,
e.disableCaching = !0
}
return s.__retval__
}
}
function Ag(e, t) {
return t = function(e) {
switch (e) {
case void 0:
return "__undefined__";
case null:
return "__null__";
default:
return e
}
}(t),
e.has(t) || e.set(t, new Map),
e.get(t)
}
function Tg(e, t) {
if ("function" == typeof t)
if (t.__cachedInputs__)
for (var n = 0, r = t.__cachedInputs__; n < r.length; n++)
e = Ag(e, r[n]);
else
e = Ag(e, t);
else if ("object" == typeof t)
for (var i in t)
t.hasOwnProperty(i) && (e = Ag(e, t[i]));
return e
}
function Eg() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = l.useCallback((function(t) {
n.current = t;
for (var r = 0, i = e; r < i.length; r++) {
var o = i[r];
"function" == typeof o ? o(t) : o && (o.current = t)
}
}
), Object(zn.e)([], e));
return n
}
Mg && Mg.onReset && Mg.onReset((function() {
return _g++
}
)),
function(e) {
e[e.center = 0] = "center",
e[e.contain = 1] = "contain",
e[e.cover = 2] = "cover",
e[e.none = 3] = "none",
e[e.centerCover = 4] = "centerCover",
e[e.centerContain = 5] = "centerContain"
}(kg || (kg = {})),
function(e) {
e[e.landscape = 0] = "landscape",
e[e.portrait = 1] = "portrait"
}(wg || (wg = {})),
function(e) {
e[e.notLoaded = 0] = "notLoaded",
e[e.loaded = 1] = "loaded",
e[e.error = 2] = "error",
e[e.errorLoaded = 3] = "errorLoaded"
}(Cg || (Cg = {}));
var Ig = Sg()
, Ng = /\.svg$/i
, zg = l.forwardRef((function(e, t) {
var n = l.useRef()
, r = l.useRef()
, i = function(e, t) {
var n = e.onLoadingStateChange
, r = e.onLoad
, i = e.onError
, o = e.src
, a = l.useState(Cg.notLoaded)
, s = a[0]
, c = a[1];
l.useLayoutEffect((function() {
c(Cg.notLoaded)
}
), [o]),
l.useEffect((function() {
s === Cg.notLoaded && t.current && (o && t.current.naturalWidth > 0 && t.current.naturalHeight > 0 || t.current.complete && Ng.test(o)) && c(Cg.loaded)
}
)),
l.useEffect((function() {
null == n || n(s)
}
), [s]);
var u = l.useCallback((function(e) {
null == r || r(e),
o && c(Cg.loaded)
}
), [o, r])
, d = l.useCallback((function(e) {
null == i || i(e),
c(Cg.error)
}
), [i]);
return [s, u, d]
}(e, r)
, o = i[0]
, a = i[1]
, s = i[2]
, c = rp(e, tp, ["width", "height"])
, u = e.src
, d = e.alt
, p = e.width
, h = e.height
, f = e.shouldFadeIn
, b = void 0 === f || f
, g = e.shouldStartVisible
, m = e.className
, v = e.imageFit
, y = e.role
, x = e.maximizeFrame
, O = e.styles
, j = e.theme
, k = e.loading
, w = function(e, t, n, r) {
var i = l.useRef(t)
, o = l.useRef();
return (void 0 === o || i.current === Cg.notLoaded && t === Cg.loaded) && (o.current = function(e, t, n, r) {
var i = e.imageFit
, o = e.width
, a = e.height;
if (void 0 !== e.coverStyle)
return e.coverStyle;
if (t === Cg.loaded && (i === kg.cover || i === kg.contain || i === kg.centerContain || i === kg.centerCover) && n.current && r.current) {
var l;
if (l = "number" == typeof o && "number" == typeof a && i !== kg.centerContain && i !== kg.centerCover ? o / a : r.current.clientWidth / r.current.clientHeight,
n.current.naturalWidth / n.current.naturalHeight > l)
return wg.landscape
}
return wg.portrait
}(e, t, n, r)),
i.current = t,
o.current
}(e, o, r, n)
, C = Ig(O, {
theme: j,
className: m,
width: p,
height: h,
maximizeFrame: x,
shouldFadeIn: b,
shouldStartVisible: g,
isLoaded: o === Cg.loaded || o === Cg.notLoaded && e.shouldStartVisible,
isLandscape: w === wg.landscape,
isCenter: v === kg.center,
isCenterContain: v === kg.centerContain,
isCenterCover: v === kg.centerCover,
isContain: v === kg.contain,
isCover: v === kg.cover,
isNone: v === kg.none,
isError: o === Cg.error,
isNotImageFit: void 0 === v
});
return l.createElement("div", {
className: C.root,
style: {
width: p,
height: h
},
ref: n
}, l.createElement("img", Object(zn.a)({}, c, {
onLoad: a,
onError: s,
key: "fabricImage" + e.src || "",
className: C.image,
ref: Eg(r, t),
src: u,
alt: d,
role: y,
loading: k
})))
}
));
zg.displayName = "ImageBase";
var Dg = {
root: "ms-Image",
rootMaximizeFrame: "ms-Image--maximizeFrame",
image: "ms-Image-image",
imageCenter: "ms-Image-image--center",
imageContain: "ms-Image-image--contain",
imageCover: "ms-Image-image--cover",
imageCenterContain: "ms-Image-image--centerContain",
imageCenterCover: "ms-Image-image--centerCover",
imageNone: "ms-Image-image--none",
imageLandscape: "ms-Image-image--landscape",
imagePortrait: "ms-Image-image--portrait"
}
, Lg = jg(zg, (function(e) {
var t = e.className
, n = e.width
, r = e.height
, i = e.maximizeFrame
, o = e.isLoaded
, a = e.shouldFadeIn
, l = e.shouldStartVisible
, s = e.isLandscape
, c = e.isCenter
, u = e.isContain
, d = e.isCover
, p = e.isCenterContain
, h = e.isCenterCover
, f = e.isNone
, b = e.isError
, g = e.isNotImageFit
, m = e.theme
, v = Vi(Dg, m)
, y = {
position: "absolute",
left: "50% /* @noflip */",
top: "50%",
transform: "translate(-50%,-50%)"
}
, x = ji()
, O = void 0 !== x && void 0 === x.navigator.msMaxTouchPoints
, j = u && s || d && !s ? {
width: "100%",
height: "auto"
} : {
width: "auto",
height: "100%"
};
return {
root: [v.root, m.fonts.medium, {
overflow: "hidden"
}, i && [v.rootMaximizeFrame, {
height: "100%",
width: "100%"
}], o && a && !l && di.fadeIn400, (c || u || d || p || h) && {
position: "relative"
}, t],
image: [v.image, {
display: "block",
opacity: 0
}, o && ["is-loaded", {
opacity: 1
}], c && [v.imageCenter, y], u && [v.imageContain, O && {
width: "100%",
height: "100%",
objectFit: "contain"
}, !O && j, !O && y], d && [v.imageCover, O && {
width: "100%",
height: "100%",
objectFit: "cover"
}, !O && j, !O && y], p && [v.imageCenterContain, s && {
maxWidth: "100%"
}, !s && {
maxHeight: "100%"
}, y], h && [v.imageCenterCover, s && {
maxHeight: "100%"
}, !s && {
maxWidth: "100%"
}, y], f && [v.imageNone, {
width: "auto",
height: "auto"
}], g && [!!n && !r && {
height: "auto",
width: "100%"
}, !n && !!r && {
height: "100%",
width: "auto"
}, !!n && !!r && {
height: "100%",
width: "100%"
}], s && v.imageLandscape, !s && v.imagePortrait, !o && "is-notLoaded", a && "is-fadeIn", b && "is-error"]
}
}
), void 0, {
scope: "Image"
}, !0);
Lg.displayName = "Image";
var Rg = Sg({
cacheSize: 100
})
, Pg = jg(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._onImageLoadingStateChange = function(e) {
n.props.imageProps && n.props.imageProps.onLoadingStateChange && n.props.imageProps.onLoadingStateChange(e),
e === Cg.error && n.setState({
imageLoadError: !0
})
}
,
n.state = {
imageLoadError: !1
},
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.children
, n = e.className
, r = e.styles
, i = e.iconName
, o = e.imageErrorAs
, a = e.theme
, s = "string" == typeof i && 0 === i.length
, c = !!this.props.imageProps || this.props.iconType === xg.image || this.props.iconType === xg.Image
, u = ap(i) || {}
, d = u.iconClassName
, p = u.children
, h = u.mergeImageProps
, f = Rg(r, {
theme: a,
className: n,
iconClassName: d,
isImage: c,
isPlaceholder: s
})
, b = c ? "span" : "i"
, g = rp(this.props, Dd, ["aria-label"])
, m = this.state.imageLoadError
, v = Object(zn.a)(Object(zn.a)({}, this.props.imageProps), {
onLoadingStateChange: this._onImageLoadingStateChange
})
, y = m && o || Lg
, x = this.props["aria-label"] || this.props.ariaLabel
, O = v.alt || x || this.props.title
, j = O || this.props["aria-labelledby"] || v["aria-label"] || v["aria-labelledby"] ? {
role: c || h ? void 0 : "img",
"aria-label": c || h ? void 0 : O
} : {
"aria-hidden": !0
}
, k = p;
return h && p && "object" == typeof p && O && (k = l.cloneElement(p, {
alt: O
})),
l.createElement(b, Object(zn.a)({
"data-icon-name": i
}, j, g, h ? {
title: void 0,
"aria-label": void 0
} : {}, {
className: f.root
}), c ? l.createElement(y, Object(zn.a)({}, v)) : t || k)
}
,
t
}(l.Component), (function(e) {
var t = e.className
, n = e.iconClassName
, r = e.isPlaceholder
, i = e.isImage
, o = e.styles;
return {
root: [r && Td.placeholder, Td.root, i && Td.image, n, t, o && o.root, o && o.imageContainer]
}
}
), void 0, {
scope: "Icon"
}, !0);
Pg.displayName = "Icon";
var Bg, Fg = function(e) {
var t = e.className
, n = e.imageProps
, r = rp(e, Dd, ["aria-label", "aria-labelledby", "title", "aria-describedby"])
, i = n.alt || e["aria-label"]
, o = i || e["aria-labelledby"] || e.title || n["aria-label"] || n["aria-labelledby"] || n.title
, a = {
"aria-labelledby": e["aria-labelledby"],
"aria-describedby": e["aria-describedby"],
title: e.title
}
, s = o ? {} : {
"aria-hidden": !0
};
return l.createElement("div", Object(zn.a)({}, s, r, {
className: ip(Ed, Td.root, Td.image, t)
}), l.createElement(Lg, Object(zn.a)({}, a, n, {
alt: o ? i : ""
})))
}, Vg = 7, Wg = Ri((function(e) {
return Ri((function(t) {
var n = Ri((function(e) {
return function(n) {
return t(n, e)
}
}
));
return function(r, i) {
return e(r, i ? n(i) : t)
}
}
))
}
));
function qg(e, t) {
return Wg(e)(t)
}
!function(e) {
e[e.Normal = 0] = "Normal",
e[e.Divider = 1] = "Divider",
e[e.Header = 2] = "Header",
e[e.Section = 3] = "Section"
}(Bg || (Bg = {}));
var Hg;
!function(e) {
e[e.vertical = 0] = "vertical",
e[e.horizontal = 1] = "horizontal",
e[e.bidirectional = 2] = "bidirectional",
e[e.domOrder = 3] = "domOrder"
}(Hg || (Hg = {}));
function Ug(e, t) {
return void 0 === t && (t = !0),
e && (t && function(e) {
var t, n;
return e && (n = e) && n._virtual && (t = e._virtual.parent),
t
}(e) || e.parentNode && e.parentNode)
}
function Xg(e, t) {
return e && e !== document.body ? t(e) ? e : Xg(Ug(e), t) : null
}
function Gg(e, t, n) {
void 0 === n && (n = !0);
var r = !1;
if (e && t)
if (n)
if (e === t)
r = !0;
else
for (r = !1; t; ) {
var i = Ug(t);
if (i === e) {
r = !0;
break
}
t = i
}
else
e.contains && (r = e.contains(t));
return r
}
var Kg = !1
, Yg = void 0;
try {
Yg = window
} catch (e) {}
function Qg(e) {
if (!Kg && void 0 !== Yg) {
var t = e;
return t && t.ownerDocument && t.ownerDocument.defaultView ? t.ownerDocument.defaultView : Yg
}
}
function Jg(e) {
if (!Kg && "undefined" != typeof document) {
var t = e;
return t && t.ownerDocument ? t.ownerDocument : document
}
}
function Zg(e, t, n, r, i, o, a, l) {
if (!t || !a && t === e)
return null;
var s = em(t);
if (i && s && (o || !nm(t) && !rm(t))) {
var c = Zg(e, t.lastElementChild, !0, !0, !0, o, a, l);
if (c) {
if (l && tm(c, !0) || !l)
return c;
var u = Zg(e, c.previousElementSibling, !0, !0, !0, o, a, l);
if (u)
return u;
for (var d = c.parentElement; d && d !== t; ) {
var p = Zg(e, d.previousElementSibling, !0, !0, !0, o, a, l);
if (p)
return p;
d = d.parentElement
}
}
}
return n && s && tm(t, l) ? t : Zg(e, t.previousElementSibling, !0, !0, !0, o, a, l) || (r ? null : Zg(e, t.parentElement, !0, !1, !1, o, a, l))
}
function $g(e, t, n, r, i, o, a, l) {
if (!t || t === e && i && !a)
return null;
var s = em(t);
if (n && s && tm(t, l))
return t;
if (!i && s && (o || !nm(t) && !rm(t))) {
var c = $g(e, t.firstElementChild, !0, !0, !1, o, a, l);
if (c)
return c
}
return t === e ? null : $g(e, t.nextElementSibling, !0, !0, !1, o, a, l) || (r ? null : $g(e, t.parentElement, !1, !1, !0, o, a, l))
}
function em(e) {
if (!e || !e.getAttribute)
return !1;
var t = e.getAttribute("data-is-visible");
return null != t ? "true" === t : 0 !== e.offsetHeight || null !== e.offsetParent || !0 === e.isVisible
}
function tm(e, t) {
if (!e || e.disabled)
return !1;
var n = 0
, r = null;
e && e.getAttribute && (r = e.getAttribute("tabIndex")) && (n = parseInt(r, 10));
var i = e.getAttribute ? e.getAttribute("data-is-focusable") : null
, o = null !== r && n >= 0
, a = !!e && "false" !== i && ("A" === e.tagName || "BUTTON" === e.tagName || "INPUT" === e.tagName || "TEXTAREA" === e.tagName || "SELECT" === e.tagName || "true" === i || o);
return t ? -1 !== n && a : a
}
function nm(e) {
return !!(e && e.getAttribute && e.getAttribute("data-focuszone-id"))
}
function rm(e) {
return !(!e || !e.getAttribute || "true" !== e.getAttribute("data-is-sub-focuszone"))
}
var im;
function om(e) {
var t = null;
try {
var n = Qg();
t = n ? n.sessionStorage.getItem(e) : null
} catch (e) {}
return t
}
function am(e) {
im !== e && (im = e)
}
function lm() {
return void 0 === im && (im = "undefined" != typeof document && !!document.documentElement && "rtl" === document.documentElement.getAttribute("dir")),
im
}
function sm() {
return {
rtl: lm()
}
}
im = lm();
var cm, um = "isRTL";
function dm(e) {
if (void 0 === e && (e = {}),
void 0 !== e.rtl)
return e.rtl;
if (void 0 === cm) {
var t = om(um);
null !== t && function(e, t) {
void 0 === t && (t = !1);
var n = Jg();
n && n.documentElement.setAttribute("dir", e ? "rtl" : "ltr"),
t && function(e, t) {
var n;
try {
null === (n = Qg()) || void 0 === n || n.sessionStorage.setItem(e, t)
} catch (e) {}
}(um, e ? "1" : "0"),
am(cm = e)
}(cm = "1" === t);
var n = Jg();
void 0 === cm && n && am(cm = "rtl" === (n.body && n.body.getAttribute("dir") || n.documentElement.getAttribute("dir")))
}
return !!cm
}
function pm(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return t.length < 2 ? t[0] : function() {
for (var n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
t.forEach((function(t) {
return t && t.apply(e, n)
}
))
}
}
function hm() {
gm(this.props.componentRef, this)
}
function fm(e) {
e.componentRef !== this.props.componentRef && (gm(e.componentRef, null),
gm(this.props.componentRef, this))
}
function bm() {
gm(this.props.componentRef, null)
}
function gm(e, t) {
e && ("object" == typeof e ? e.current = t : "function" == typeof e && e(t))
}
var mm, vm = "undefined" != typeof navigator && /rv:11.0/.test(navigator.userAgent), ym = {};
try {
ym = window || {}
} catch (e) {}
var xm = function() {
function e(e, t) {
var n, r, i, o, a, l;
this._rules = [],
this._preservedRules = [],
this._counter = 0,
this._keyToClassName = {},
this._onInsertRuleCallbacks = [],
this._onResetCallbacks = [],
this._classNameToArgs = {},
this._config = Object(zn.a)({
injectionMode: "undefined" == typeof document ? 0 : 1,
defaultPrefix: "css",
namespace: void 0,
cspSettings: void 0
}, e),
this._classNameToArgs = null !== (n = null == t ? void 0 : t.classNameToArgs) && void 0 !== n ? n : this._classNameToArgs,
this._counter = null !== (r = null == t ? void 0 : t.counter) && void 0 !== r ? r : this._counter,
this._keyToClassName = null !== (o = null !== (i = this._config.classNameCache) && void 0 !== i ? i : null == t ? void 0 : t.keyToClassName) && void 0 !== o ? o : this._keyToClassName,
this._preservedRules = null !== (a = null == t ? void 0 : t.preservedRules) && void 0 !== a ? a : this._preservedRules,
this._rules = null !== (l = null == t ? void 0 : t.rules) && void 0 !== l ? l : this._rules
}
return e.getInstance = function() {
if (!(mm = ym.__stylesheet__) || mm._lastStyleElement && mm._lastStyleElement.ownerDocument !== document) {
var t = (null == ym ? void 0 : ym.FabricConfig) || {}
, n = new e(t.mergeStyles,t.serializedStylesheet);
mm = n,
ym.__stylesheet__ = n
}
return mm
}
,
e.prototype.serialize = function() {
return JSON.stringify({
classNameToArgs: this._classNameToArgs,
counter: this._counter,
keyToClassName: this._keyToClassName,
preservedRules: this._preservedRules,
rules: this._rules
})
}
,
e.prototype.setConfig = function(e) {
this._config = Object(zn.a)(Object(zn.a)({}, this._config), e)
}
,
e.prototype.onReset = function(e) {
var t = this;
return this._onResetCallbacks.push(e),
function() {
t._onResetCallbacks = t._onResetCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
e.prototype.onInsertRule = function(e) {
var t = this;
return this._onInsertRuleCallbacks.push(e),
function() {
t._onInsertRuleCallbacks = t._onInsertRuleCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
e.prototype.getClassName = function(e) {
var t = this._config.namespace;
return (t ? t + "-" : "") + (e || this._config.defaultPrefix) + "-" + this._counter++
}
,
e.prototype.cacheClassName = function(e, t, n, r) {
this._keyToClassName[t] = e,
this._classNameToArgs[e] = {
args: n,
rules: r
}
}
,
e.prototype.classNameFromKey = function(e) {
return this._keyToClassName[e]
}
,
e.prototype.getClassNameCache = function() {
return this._keyToClassName
}
,
e.prototype.argsFromClassName = function(e) {
var t = this._classNameToArgs[e];
return t && t.args
}
,
e.prototype.insertedRulesFromClassName = function(e) {
var t = this._classNameToArgs[e];
return t && t.rules
}
,
e.prototype.insertRule = function(e, t) {
var n = this._config.injectionMode
, r = 0 !== n ? this._getStyleElement() : void 0;
if (t && this._preservedRules.push(e),
r)
switch (n) {
case 1:
var i = r.sheet;
try {
i.insertRule(e, i.cssRules.length)
} catch (e) {}
break;
case 2:
r.appendChild(document.createTextNode(e))
}
else
this._rules.push(e);
this._config.onInsertRule && this._config.onInsertRule(e),
this._onInsertRuleCallbacks.forEach((function(e) {
return e()
}
))
}
,
e.prototype.getRules = function(e) {
return (e ? this._preservedRules.join("") : "") + this._rules.join("")
}
,
e.prototype.reset = function() {
this._rules = [],
this._counter = 0,
this._classNameToArgs = {},
this._keyToClassName = {},
this._onResetCallbacks.forEach((function(e) {
return e()
}
))
}
,
e.prototype.resetKeys = function() {
this._keyToClassName = {}
}
,
e.prototype._getStyleElement = function() {
var e = this;
return this._styleElement || "undefined" == typeof document || (this._styleElement = this._createStyleElement(),
vm || window.requestAnimationFrame((function() {
e._styleElement = void 0
}
))),
this._styleElement
}
,
e.prototype._createStyleElement = function() {
var e = document.head
, t = document.createElement("style")
, n = null;
t.setAttribute("data-merge-styles", "true");
var r = this._config.cspSettings;
if (r && r.nonce && t.setAttribute("nonce", r.nonce),
this._lastStyleElement)
n = this._lastStyleElement.nextElementSibling;
else {
var i = this._findPlaceholderStyleTag();
n = i ? i.nextElementSibling : e.childNodes[0]
}
return e.insertBefore(t, e.contains(n) ? n : null),
this._lastStyleElement = t,
t
}
,
e.prototype._findPlaceholderStyleTag = function() {
var e = document.head;
return e ? e.querySelector("style[data-merge-styles]") : null
}
,
e
}()
, Om = Qg() || {};
void 0 === Om.__currentId__ && (Om.__currentId__ = 0);
var jm = !1;
function km(e) {
void 0 === e && (e = 0),
Om.__currentId__ = e
}
var wm = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var n = {}, r = 0, i = e; r < i.length; r++)
for (var o = i[r], a = 0, l = Array.isArray(o) ? o : Object.keys(o); a < l.length; a++) {
n[l[a]] = 1
}
return n
}
, Cm = wm(["onCopy", "onCut", "onPaste", "onCompositionEnd", "onCompositionStart", "onCompositionUpdate", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onInput", "onSubmit", "onLoad", "onError", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyUp", "onAbort", "onCanPlay", "onCanPlayThrough", "onDurationChange", "onEmptied", "onEncrypted", "onEnded", "onLoadedData", "onLoadedMetadata", "onLoadStart", "onPause", "onPlay", "onPlaying", "onProgress", "onRateChange", "onSeeked", "onSeeking", "onStalled", "onSuspend", "onTimeUpdate", "onVolumeChange", "onWaiting", "onClick", "onClickCapture", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onMouseUpCapture", "onSelect", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onScroll", "onWheel", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onGotPointerCapture", "onLostPointerCapture"])
, _m = wm(["accessKey", "children", "className", "contentEditable", "dir", "draggable", "hidden", "htmlFor", "id", "lang", "ref", "role", "style", "tabIndex", "title", "translate", "spellCheck", "name"])
, Mm = wm(_m, Cm)
, Sm = (wm(Mm, ["form"]),
wm(Mm, ["height", "loop", "muted", "preload", "src", "width"]))
, Am = (wm(Sm, ["poster"]),
wm(Mm, ["start"]),
wm(Mm, ["value"]),
wm(Mm, ["download", "href", "hrefLang", "media", "rel", "target", "type"]),
wm(Mm, ["autoFocus", "disabled", "form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "type", "value"]));
function Tm() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var n = [], r = 0, i = e; r < i.length; r++) {
var o = i[r];
if (o)
if ("string" == typeof o)
n.push(o);
else if (o.hasOwnProperty("toString") && "function" == typeof o.toString)
n.push(o.toString());
else
for (var a in o)
o[a] && n.push(a)
}
return n.join(" ")
}
function Em(e) {
var t = function(e) {
var t;
return "function" == typeof Event ? t = new Event(e) : (t = document.createEvent("Event")).initEvent(e, !0, !0),
t
}("MouseEvents");
t.initEvent("click", !0, !0),
e.dispatchEvent(t)
}
wm(Am, ["accept", "alt", "autoCapitalize", "autoComplete", "checked", "dirname", "form", "height", "inputMode", "list", "max", "maxLength", "min", "minLength", "multiple", "pattern", "placeholder", "readOnly", "required", "src", "step", "size", "type", "value", "width"]),
wm(Am, ["autoCapitalize", "cols", "dirname", "form", "maxLength", "minLength", "placeholder", "readOnly", "required", "rows", "wrap"]),
wm(Am, ["form", "multiple", "required"]),
wm(Mm, ["selected", "value"]),
wm(Mm, ["cellPadding", "cellSpacing"]),
wm(Mm, ["rowSpan", "scope"]),
wm(Mm, ["colSpan", "headers", "rowSpan", "scope"]),
wm(Mm, ["span"]),
wm(Mm, ["span"]),
wm(Mm, ["acceptCharset", "action", "encType", "encType", "method", "noValidate", "target"]),
wm(Mm, ["allow", "allowFullScreen", "allowPaymentRequest", "allowTransparency", "csp", "height", "importance", "referrerPolicy", "sandbox", "src", "srcDoc", "width"]),
wm(Mm, ["alt", "crossOrigin", "height", "src", "srcSet", "useMap", "width"]);
var Im, Nm = {};
function zm(e, t) {
var n = e[t];
"-" !== n.charAt(0) && (e[t] = Nm[n] = Nm[n] || n.replace(/([A-Z])/g, "-$1").toLowerCase())
}
var Dm = {
"user-select": 1
};
function Lm(e, t) {
var n = function() {
var e;
if (!Im) {
var t = "undefined" != typeof document ? document : void 0
, n = "undefined" != typeof navigator ? navigator : void 0
, r = null === (e = null == n ? void 0 : n.userAgent) || void 0 === e ? void 0 : e.toLowerCase();
Im = t ? {
isWebkit: !(!t || !("WebkitAppearance"in t.documentElement.style)),
isMoz: !!(r && r.indexOf("firefox") > -1),
isOpera: !!(r && r.indexOf("opera") > -1),
isMs: !(!n || !/rv:11.0/i.test(n.userAgent) && !/Edge\/\d./i.test(navigator.userAgent))
} : {
isWebkit: !0,
isMoz: !0,
isOpera: !0,
isMs: !0
}
}
return Im
}()
, r = e[t];
if (Dm[r]) {
var i = e[t + 1];
Dm[r] && (n.isWebkit && e.push("-webkit-" + r, i),
n.isMoz && e.push("-moz-" + r, i),
n.isMs && e.push("-ms-" + r, i),
n.isOpera && e.push("-o-" + r, i))
}
}
var Rm, Pm = ["column-count", "font-weight", "flex", "flex-grow", "flex-shrink", "fill-opacity", "opacity", "order", "z-index", "zoom"];
function Bm(e, t) {
var n = e[t]
, r = e[t + 1];
if ("number" == typeof r) {
var i = Pm.indexOf(n) > -1
, o = n.indexOf("--") > -1
, a = i || o ? "" : "px";
e[t + 1] = "" + r + a
}
}
var Fm = "left"
, Vm = "right"
, Wm = ((Rm = {}).left = Vm,
Rm.right = Fm,
Rm)
, qm = {
"w-resize": "e-resize",
"sw-resize": "se-resize",
"nw-resize": "ne-resize"
};
function Hm(e, t, n) {
if (e.rtl) {
var r = t[n];
if (!r)
return;
var i = t[n + 1];
if ("string" == typeof i && i.indexOf("@noflip") >= 0)
t[n + 1] = i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g, "");
else if (r.indexOf(Fm) >= 0)
t[n] = r.replace(Fm, Vm);
else if (r.indexOf(Vm) >= 0)
t[n] = r.replace(Vm, Fm);
else if (String(i).indexOf(Fm) >= 0)
t[n + 1] = i.replace(Fm, Vm);
else if (String(i).indexOf(Vm) >= 0)
t[n + 1] = i.replace(Vm, Fm);
else if (Wm[r])
t[n] = Wm[r];
else if (qm[i])
t[n + 1] = qm[i];
else
switch (r) {
case "margin":
case "padding":
t[n + 1] = function(e) {
if ("string" == typeof e) {
var t = e.split(" ");
if (4 === t.length)
return t[0] + " " + t[3] + " " + t[2] + " " + t[1]
}
return e
}(i);
break;
case "box-shadow":
t[n + 1] = function(e, t) {
var n = e.split(" ")
, r = parseInt(n[0], 10);
return n[0] = n[0].replace(String(r), String(-1 * r)),
n.join(" ")
}(i)
}
}
}
var Um = /\:global\((.+?)\)/g;
function Xm(e, t) {
return e.indexOf(":global(") >= 0 ? e.replace(Um, "$1") : 0 === e.indexOf(":") ? t + e : e.indexOf("&") < 0 ? t + " " + e : e
}
function Gm(e, t, n, r) {
void 0 === t && (t = {
__order: []
}),
0 === n.indexOf("@") ? Km([r], t, n = n + "{" + e) : n.indexOf(",") > -1 ? function(e) {
if (!Um.test(e))
return e;
for (var t = [], n = /\:global\((.+?)\)/g, r = null; r = n.exec(e); )
r[1].indexOf(",") > -1 && t.push([r.index, r.index + r[0].length, r[1].split(",").map((function(e) {
return ":global(" + e.trim() + ")"
}
)).join(", ")]);
return t.reverse().reduce((function(e, t) {
var n = t[0]
, r = t[1]
, i = t[2];
return e.slice(0, n) + i + e.slice(r)
}
), e)
}(n).split(",").map((function(e) {
return e.trim()
}
)).forEach((function(n) {
return Km([r], t, Xm(n, e))
}
)) : Km([r], t, Xm(n, e))
}
function Km(e, t, n) {
void 0 === t && (t = {
__order: []
}),
void 0 === n && (n = "&");
var r = xm.getInstance()
, i = t[n];
i || (i = {},
t[n] = i,
t.__order.push(n));
for (var o = 0, a = e; o < a.length; o++) {
var l = a[o];
if ("string" == typeof l) {
var s = r.argsFromClassName(l);
s && Km(s, t, n)
} else if (Array.isArray(l))
Km(l, t, n);
else
for (var c in l)
if (l.hasOwnProperty(c)) {
var u = l[c];
if ("selectors" === c) {
var d = l.selectors;
for (var p in d)
d.hasOwnProperty(p) && Gm(n, t, p, d[p])
} else
"object" == typeof u ? null !== u && Gm(n, t, c, u) : void 0 !== u && ("margin" === c || "padding" === c ? Ym(i, c, u) : i[c] = u)
}
}
return t
}
function Ym(e, t, n) {
var r = "string" == typeof n ? function(e) {
for (var t = [], n = 0, r = 0, i = 0; i < e.length; i++)
switch (e[i]) {
case "(":
r++;
break;
case ")":
r && r--;
break;
case "\t":
case " ":
r || (i > n && t.push(e.substring(n, i)),
n = i + 1)
}
return n < e.length && t.push(e.substring(n)),
t
}(n) : [n];
0 === r.length && r.push(n),
"!important" === r[r.length - 1] && (r = r.slice(0, -1).map((function(e) {
return e + " !important"
}
))),
e[t + "Top"] = r[0],
e[t + "Right"] = r[1] || r[0],
e[t + "Bottom"] = r[2] || r[0],
e[t + "Left"] = r[3] || r[1] || r[0]
}
function Qm(e, t) {
return t <= 0 ? "" : 1 === t ? e : e + Qm(e, t - 1)
}
function Jm(e, t) {
if (!t)
return "";
var n = [];
for (var r in t)
t.hasOwnProperty(r) && "displayName" !== r && void 0 !== t[r] && n.push(r, t[r]);
for (var i = 0; i < n.length; i += 2)
zm(n, i),
Bm(n, i),
Hm(e, n, i),
Lm(n, i);
for (i = 1; i < n.length; i += 4)
n.splice(i, 1, ":", n[i], ";");
return n.join("")
}
function Zm(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = Km(t)
, i = function(e, t) {
for (var n = [e.rtl ? "rtl" : "ltr"], r = !1, i = 0, o = t.__order; i < o.length; i++) {
var a = o[i];
n.push(a);
var l = t[a];
for (var s in l)
l.hasOwnProperty(s) && void 0 !== l[s] && (r = !0,
n.push(s, l[s]))
}
return r ? n.join("") : void 0
}(e, r);
if (i) {
var o = xm.getInstance()
, a = {
className: o.classNameFromKey(i),
key: i,
args: t
};
if (!a.className) {
a.className = o.getClassName(function(e) {
var t = e && e["&"];
return t ? t.displayName : void 0
}(r));
for (var l = [], s = 0, c = r.__order; s < c.length; s++) {
var u = c[s];
l.push(u, Jm(e, r[u]))
}
a.rulesToInsert = l
}
return a
}
}
function $m() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return function(e, t) {
var n = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = []
, r = []
, i = xm.getInstance();
function o(e) {
for (var t = 0, a = e; t < a.length; t++) {
var l = a[t];
if (l)
if ("string" == typeof l)
if (l.indexOf(" ") >= 0)
o(l.split(" "));
else {
var s = i.argsFromClassName(l);
s ? o(s) : -1 === n.indexOf(l) && n.push(l)
}
else
Array.isArray(l) ? o(l) : "object" == typeof l && r.push(l)
}
}
return o(e),
{
classes: n,
objects: r
}
}(e instanceof Array ? e : [e])
, r = n.classes
, i = n.objects;
return i.length && r.push(function(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = Zm.apply(void 0, Object(zn.e)([e], t));
return r ? (function(e, t) {
void 0 === t && (t = 1);
var n = xm.getInstance()
, r = e.className
, i = e.key
, o = e.args
, a = e.rulesToInsert;
if (a) {
for (var l = 0; l < a.length; l += 2) {
var s = a[l + 1];
if (s) {
var c = a[l]
, u = (c = c.replace(/&/g, Qm("." + e.className, t))) + "{" + s + "}" + (0 === c.indexOf("@") ? "}" : "");
n.insertRule(u)
}
}
n.cacheClassName(r, i, o, a)
}
}(r, e.specificityMultiplier),
r.className) : ""
}(t || {}, i)),
r.join(" ")
}(e, sm())
}
$m({
overflow: "hidden !important"
});
var ev = "data-is-scrollable";
var tv = "data-portal-element"
, nv = 0
, rv = function() {
function e() {}
return e.getValue = function(e, t) {
var n = iv();
return void 0 === n[e] && (n[e] = "function" == typeof t ? t() : t),
n[e]
}
,
e.setValue = function(e, t) {
var n = iv()
, r = n.__callbacks__
, i = n[e];
if (t !== i) {
n[e] = t;
var o = {
oldValue: i,
value: t,
key: e
};
for (var a in r)
r.hasOwnProperty(a) && r[a](o)
}
return t
}
,
e.addChangeListener = function(e) {
var t = e.__id__
, n = ov();
t || (t = e.__id__ = String(nv++)),
n[t] = e
}
,
e.removeChangeListener = function(e) {
delete ov()[e.__id__]
}
,
e
}();
function iv() {
var e, t = Qg() || {};
return t.__globalSettings__ || (t.__globalSettings__ = ((e = {}).__callbacks__ = {},
e)),
t.__globalSettings__
}
function ov() {
return iv().__callbacks__
}
var av, lv = {
settings: {},
scopedSettings: {},
inCustomizerContext: !1
}, sv = rv.getValue("customizations", {
settings: {},
scopedSettings: {},
inCustomizerContext: !1
}), cv = [], uv = function() {
function e() {}
return e.reset = function() {
sv.settings = {},
sv.scopedSettings = {}
}
,
e.applySettings = function(t) {
sv.settings = Object(zn.a)(Object(zn.a)({}, sv.settings), t),
e._raiseChange()
}
,
e.applyScopedSettings = function(t, n) {
sv.scopedSettings[t] = Object(zn.a)(Object(zn.a)({}, sv.scopedSettings[t]), n),
e._raiseChange()
}
,
e.getSettings = function(e, t, n) {
void 0 === n && (n = lv);
for (var r = {}, i = t && n.scopedSettings[t] || {}, o = t && sv.scopedSettings[t] || {}, a = 0, l = e; a < l.length; a++) {
var s = l[a];
r[s] = i[s] || n.settings[s] || o[s] || sv.settings[s]
}
return r
}
,
e.applyBatchedUpdates = function(t, n) {
e._suppressUpdates = !0;
try {
t()
} catch (e) {}
e._suppressUpdates = !1,
n || e._raiseChange()
}
,
e.observe = function(e) {
cv.push(e)
}
,
e.unobserve = function(e) {
cv = cv.filter((function(t) {
return t !== e
}
))
}
,
e._raiseChange = function() {
e._suppressUpdates || cv.forEach((function(e) {
return e()
}
))
}
,
e
}(), dv = {
themeDarker: "#004578",
themeDark: "#005a9e",
themeDarkAlt: "#106ebe",
themePrimary: "#0078d4",
themeSecondary: "#2b88d8",
themeTertiary: "#71afe5",
themeLight: "#c7e0f4",
themeLighter: "#deecf9",
themeLighterAlt: "#eff6fc",
black: "#000000",
blackTranslucent40: "rgba(0,0,0,.4)",
neutralDark: "#201f1e",
neutralPrimary: "#323130",
neutralPrimaryAlt: "#3b3a39",
neutralSecondary: "#605e5c",
neutralSecondaryAlt: "#8a8886",
neutralTertiary: "#a19f9d",
neutralTertiaryAlt: "#c8c6c4",
neutralQuaternary: "#d2d0ce",
neutralQuaternaryAlt: "#e1dfdd",
neutralLight: "#edebe9",
neutralLighter: "#f3f2f1",
neutralLighterAlt: "#faf9f8",
accent: "#0078d4",
white: "#ffffff",
whiteTranslucent40: "rgba(255,255,255,.4)",
yellowDark: "#d29200",
yellow: "#ffb900",
yellowLight: "#fff100",
orange: "#d83b01",
orangeLight: "#ea4300",
orangeLighter: "#ff8c00",
redDark: "#a4262c",
red: "#e81123",
magentaDark: "#5c005c",
magenta: "#b4009e",
magentaLight: "#e3008c",
purpleDark: "#32145a",
purple: "#5c2d91",
purpleLight: "#b4a0ff",
blueDark: "#002050",
blueMid: "#00188f",
blue: "#0078d4",
blueLight: "#00bcf2",
tealDark: "#004b50",
teal: "#008272",
tealLight: "#00b294",
greenDark: "#004b1c",
green: "#107c10",
greenLight: "#bad80a"
};
!function(e) {
e.depth0 = "0 0 0 0 transparent",
e.depth4 = "0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",
e.depth8 = "0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",
e.depth16 = "0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",
e.depth64 = "0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"
}(av || (av = {}));
var pv, hv, fv, bv, gv, mv = {
elevation4: av.depth4,
elevation8: av.depth8,
elevation16: av.depth16,
elevation64: av.depth64,
roundedCorner2: "2px",
roundedCorner4: "4px",
roundedCorner6: "6px"
};
!function(e) {
e.Arabic = "Segoe UI Web (Arabic)",
e.Cyrillic = "Segoe UI Web (Cyrillic)",
e.EastEuropean = "Segoe UI Web (East European)",
e.Greek = "Segoe UI Web (Greek)",
e.Hebrew = "Segoe UI Web (Hebrew)",
e.Thai = "Leelawadee UI Web",
e.Vietnamese = "Segoe UI Web (Vietnamese)",
e.WestEuropean = "Segoe UI Web (West European)",
e.Selawik = "Selawik Web",
e.Armenian = "Segoe UI Web (Armenian)",
e.Georgian = "Segoe UI Web (Georgian)"
}(pv || (pv = {})),
function(e) {
e.Arabic = "'" + pv.Arabic + "'",
e.ChineseSimplified = "'Microsoft Yahei UI', Verdana, Simsun",
e.ChineseTraditional = "'Microsoft Jhenghei UI', Pmingliu",
e.Cyrillic = "'" + pv.Cyrillic + "'",
e.EastEuropean = "'" + pv.EastEuropean + "'",
e.Greek = "'" + pv.Greek + "'",
e.Hebrew = "'" + pv.Hebrew + "'",
e.Hindi = "'Nirmala UI'",
e.Japanese = "'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",
e.Korean = "'Malgun Gothic', Gulim",
e.Selawik = "'" + pv.Selawik + "'",
e.Thai = "'Leelawadee UI Web', 'Kmer UI'",
e.Vietnamese = "'" + pv.Vietnamese + "'",
e.WestEuropean = "'" + pv.WestEuropean + "'",
e.Armenian = "'" + pv.Armenian + "'",
e.Georgian = "'" + pv.Georgian + "'"
}(hv || (hv = {})),
function(e) {
e.size10 = "10px",
e.size12 = "12px",
e.size14 = "14px",
e.size16 = "16px",
e.size18 = "18px",
e.size20 = "20px",
e.size24 = "24px",
e.size28 = "28px",
e.size32 = "32px",
e.size42 = "42px",
e.size68 = "68px",
e.mini = "10px",
e.xSmall = "10px",
e.small = "12px",
e.smallPlus = "12px",
e.medium = "14px",
e.mediumPlus = "16px",
e.icon = "16px",
e.large = "18px",
e.xLarge = "20px",
e.xLargePlus = "24px",
e.xxLarge = "28px",
e.xxLargePlus = "32px",
e.superLarge = "42px",
e.mega = "68px"
}(fv || (fv = {})),
function(e) {
e.light = 100,
e.semilight = 300,
e.regular = 400,
e.semibold = 600,
e.bold = 700
}(bv || (bv = {})),
function(e) {
e.xSmall = "10px",
e.small = "12px",
e.medium = "16px",
e.large = "20px"
}(gv || (gv = {}));
var vv, yv = "'Segoe UI', '" + pv.WestEuropean + "'", xv = {
ar: hv.Arabic,
bg: hv.Cyrillic,
cs: hv.EastEuropean,
el: hv.Greek,
et: hv.EastEuropean,
he: hv.Hebrew,
hi: hv.Hindi,
hr: hv.EastEuropean,
hu: hv.EastEuropean,
ja: hv.Japanese,
kk: hv.EastEuropean,
ko: hv.Korean,
lt: hv.EastEuropean,
lv: hv.EastEuropean,
pl: hv.EastEuropean,
ru: hv.Cyrillic,
sk: hv.EastEuropean,
"sr-latn": hv.EastEuropean,
th: hv.Thai,
tr: hv.EastEuropean,
uk: hv.Cyrillic,
vi: hv.Vietnamese,
"zh-hans": hv.ChineseSimplified,
"zh-hant": hv.ChineseTraditional,
hy: hv.Armenian,
ka: hv.Georgian
};
function Ov(e, t, n) {
return {
fontFamily: n,
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontSize: e,
fontWeight: t
}
}
var jv = "language"
, kv = function(e) {
var t = function(e) {
for (var t in xv)
if (xv.hasOwnProperty(t) && e && 0 === t.indexOf(e))
return xv[t];
return yv
}(e) + ", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";
return {
tiny: Ov(fv.mini, bv.regular, t),
xSmall: Ov(fv.xSmall, bv.regular, t),
small: Ov(fv.small, bv.regular, t),
smallPlus: Ov(fv.smallPlus, bv.regular, t),
medium: Ov(fv.medium, bv.regular, t),
mediumPlus: Ov(fv.mediumPlus, bv.regular, t),
large: Ov(fv.large, bv.regular, t),
xLarge: Ov(fv.xLarge, bv.semibold, t),
xLargePlus: Ov(fv.xLargePlus, bv.semibold, t),
xxLarge: Ov(fv.xxLarge, bv.semibold, t),
xxLargePlus: Ov(fv.xxLargePlus, bv.semibold, t),
superLarge: Ov(fv.superLarge, bv.semibold, t),
mega: Ov(fv.mega, bv.semibold, t)
}
}(function(e) {
if (void 0 === e && (e = "sessionStorage"),
void 0 === vv) {
var t = Jg()
, n = "localStorage" === e ? function(e) {
var t = null;
try {
var n = Qg();
t = n ? n.localStorage.getItem(e) : null
} catch (e) {}
return t
}(jv) : "sessionStorage" === e ? om(jv) : void 0;
n && (vv = n),
void 0 === vv && t && (vv = t.documentElement.getAttribute("lang")),
void 0 === vv && (vv = "en")
}
return vv
}());
function wv(e, t, n, r) {
!function(e) {
var t = xm.getInstance()
, n = Jm(sm(), e);
if (!t.classNameFromKey(n)) {
var r = t.getClassName();
t.insertRule("@font-face{" + n + "}", !0),
t.cacheClassName(r, n, [], ["font-face", n])
}
}({
fontFamily: e = "'" + e + "'",
src: (void 0 !== r ? "local('" + r + "')," : "") + "url('" + t + ".woff2') format('woff2'),url('" + t + ".woff') format('woff')",
fontWeight: n,
fontStyle: "normal",
fontDisplay: "swap"
})
}
function Cv(e, t, n, r, i) {
void 0 === r && (r = "segoeui");
var o = e + "/" + n + "/" + r;
wv(t, o + "-light", bv.light, i && i + " Light"),
wv(t, o + "-semilight", bv.semilight, i && i + " SemiLight"),
wv(t, o + "-regular", bv.regular, i),
wv(t, o + "-semibold", bv.semibold, i && i + " SemiBold"),
wv(t, o + "-bold", bv.bold, i && i + " Bold")
}
function _v(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
for (var r = 0, i = t; r < i.length; r++) {
Mv(e || {}, i[r])
}
return e
}
function Mv(e, t, n) {
for (var r in void 0 === n && (n = []),
n.push(t),
t)
if (t.hasOwnProperty(r) && "__proto__" !== r && "constructor" !== r && "prototype" !== r) {
var i = t[r];
if ("object" != typeof i || null === i || Array.isArray(i))
e[r] = i;
else {
var o = n.indexOf(i) > -1;
e[r] = o ? i : Mv(e[r] || {}, i, n)
}
}
return n.pop(),
e
}
function Sv(e, t, n, r, i) {
return void 0 === i && (i = !1),
function(e, t) {
var n = "";
return !0 === t && (n = " /* @deprecated */"),
e.listTextColor = e.listText + n,
e.menuItemBackgroundChecked += n,
e.warningHighlight += n,
e.warningText = e.messageText + n,
e.successText += n,
e
}(Av(e, t, Object(zn.a)({
primaryButtonBorder: "transparent",
errorText: r ? "#F1707B" : "#a4262c",
messageText: r ? "#F3F2F1" : "#323130",
messageLink: r ? "#6CB8F6" : "#005A9E",
messageLinkHovered: r ? "#82C7FF" : "#004578",
infoIcon: r ? "#C8C6C4" : "#605e5c",
errorIcon: r ? "#F1707B" : "#A80000",
blockingIcon: r ? "#442726" : "#FDE7E9",
warningIcon: r ? "#C8C6C4" : "#797775",
severeWarningIcon: r ? "#FCE100" : "#D83B01",
successIcon: r ? "#92C353" : "#107C10",
infoBackground: r ? "#323130" : "#f3f2f1",
errorBackground: r ? "#442726" : "#FDE7E9",
blockingBackground: r ? "#442726" : "#FDE7E9",
warningBackground: r ? "#433519" : "#FFF4CE",
severeWarningBackground: r ? "#4F2A0F" : "#FED9CC",
successBackground: r ? "#393D1B" : "#DFF6DD",
warningHighlight: r ? "#fff100" : "#ffb900",
successText: r ? "#92c353" : "#107C10"
}, n), r), i)
}
function Av(e, t, n, r, i) {
void 0 === i && (i = !1);
var o = {}
, a = e || {}
, l = a.white
, s = a.black
, c = a.themePrimary
, u = a.themeDark
, d = a.themeDarker
, p = a.themeDarkAlt
, h = a.themeLighter
, f = a.neutralLight
, b = a.neutralLighter
, g = a.neutralDark
, m = a.neutralQuaternary
, v = a.neutralQuaternaryAlt
, y = a.neutralPrimary
, x = a.neutralSecondary
, O = a.neutralSecondaryAlt
, j = a.neutralTertiary
, k = a.neutralTertiaryAlt
, w = a.neutralLighterAlt
, C = a.accent;
return l && (o.bodyBackground = l,
o.bodyFrameBackground = l,
o.accentButtonText = l,
o.buttonBackground = l,
o.primaryButtonText = l,
o.primaryButtonTextHovered = l,
o.primaryButtonTextPressed = l,
o.inputBackground = l,
o.inputForegroundChecked = l,
o.listBackground = l,
o.menuBackground = l,
o.cardStandoutBackground = l),
s && (o.bodyTextChecked = s,
o.buttonTextCheckedHovered = s),
c && (o.link = c,
o.primaryButtonBackground = c,
o.inputBackgroundChecked = c,
o.inputIcon = c,
o.inputFocusBorderAlt = c,
o.menuIcon = c,
o.menuHeader = c,
o.accentButtonBackground = c),
u && (o.primaryButtonBackgroundPressed = u,
o.inputBackgroundCheckedHovered = u,
o.inputIconHovered = u),
d && (o.linkHovered = d),
p && (o.primaryButtonBackgroundHovered = p),
h && (o.inputPlaceholderBackgroundChecked = h),
f && (o.bodyBackgroundChecked = f,
o.bodyFrameDivider = f,
o.bodyDivider = f,
o.variantBorder = f,
o.buttonBackgroundCheckedHovered = f,
o.buttonBackgroundPressed = f,
o.listItemBackgroundChecked = f,
o.listHeaderBackgroundPressed = f,
o.menuItemBackgroundPressed = f,
o.menuItemBackgroundChecked = f),
b && (o.bodyBackgroundHovered = b,
o.buttonBackgroundHovered = b,
o.buttonBackgroundDisabled = b,
o.buttonBorderDisabled = b,
o.primaryButtonBackgroundDisabled = b,
o.disabledBackground = b,
o.listItemBackgroundHovered = b,
o.listHeaderBackgroundHovered = b,
o.menuItemBackgroundHovered = b),
m && (o.primaryButtonTextDisabled = m,
o.disabledSubtext = m),
v && (o.listItemBackgroundCheckedHovered = v),
j && (o.disabledBodyText = j,
o.variantBorderHovered = (null == n ? void 0 : n.variantBorderHovered) || j,
o.buttonTextDisabled = j,
o.inputIconDisabled = j,
o.disabledText = j),
y && (o.bodyText = y,
o.actionLink = y,
o.buttonText = y,
o.inputBorderHovered = y,
o.inputText = y,
o.listText = y,
o.menuItemText = y),
w && (o.bodyStandoutBackground = w,
o.defaultStateBackground = w),
g && (o.actionLinkHovered = g,
o.buttonTextHovered = g,
o.buttonTextChecked = g,
o.buttonTextPressed = g,
o.inputTextHovered = g,
o.menuItemTextHovered = g),
x && (o.bodySubtext = x,
o.focusBorder = x,
o.inputBorder = x,
o.smallInputBorder = x,
o.inputPlaceholderText = x),
O && (o.buttonBorder = O),
k && (o.disabledBodySubtext = k,
o.disabledBorder = k,
o.buttonBackgroundChecked = k,
o.menuDivider = k),
C && (o.accentButtonBackground = C),
(null == t ? void 0 : t.elevation4) && (o.cardShadow = t.elevation4),
!r && (null == t ? void 0 : t.elevation8) ? o.cardShadowHovered = t.elevation8 : o.variantBorderHovered && (o.cardShadowHovered = "0 0 1px " + o.variantBorderHovered),
Object(zn.a)(Object(zn.a)({}, o), n)
}
!function(e) {
if (e) {
var t = e + "/fonts";
Cv(t, pv.Thai, "leelawadeeui-thai", "leelawadeeui"),
Cv(t, pv.Arabic, "segoeui-arabic"),
Cv(t, pv.Cyrillic, "segoeui-cyrillic"),
Cv(t, pv.EastEuropean, "segoeui-easteuropean"),
Cv(t, pv.Greek, "segoeui-greek"),
Cv(t, pv.Hebrew, "segoeui-hebrew"),
Cv(t, pv.Vietnamese, "segoeui-vietnamese"),
Cv(t, pv.WestEuropean, "segoeui-westeuropean", "segoeui", "Segoe UI"),
Cv(t, hv.Selawik, "selawik", "selawik"),
Cv(t, pv.Armenian, "segoeui-armenian"),
Cv(t, pv.Georgian, "segoeui-georgian"),
wv("Leelawadee UI Web", t + "/leelawadeeui-thai/leelawadeeui-semilight", bv.light),
wv("Leelawadee UI Web", t + "/leelawadeeui-thai/leelawadeeui-bold", bv.semibold)
}
}(function() {
var e, t, n = null === (e = Qg()) || void 0 === e ? void 0 : e.FabricConfig;
return null !== (t = null == n ? void 0 : n.fontBaseUrl) && void 0 !== t ? t : "https://static2.sharepointonline.com/files/fabric/assets"
}());
var Tv = {
s2: "4px",
s1: "8px",
m: "16px",
l1: "20px",
l2: "32px"
};
function Ev(e, t) {
void 0 === e && (e = {}),
void 0 === t && (t = !1);
var n = !!e.isInverted;
return function(e, t) {
var n, r, i;
void 0 === t && (t = {});
var o = _v({}, e, t, {
semanticColors: Av(t.palette, t.effects, t.semanticColors, void 0 === t.isInverted ? e.isInverted : t.isInverted)
});
if ((null === (n = t.palette) || void 0 === n ? void 0 : n.themePrimary) && !(null === (r = t.palette) || void 0 === r ? void 0 : r.accent) && (o.palette.accent = t.palette.themePrimary),
t.defaultFontStyle)
for (var a = 0, l = Object.keys(o.fonts); a < l.length; a++) {
var s = l[a];
o.fonts[s] = _v(o.fonts[s], t.defaultFontStyle, null === (i = null == t ? void 0 : t.fonts) || void 0 === i ? void 0 : i[s])
}
return o
}({
palette: dv,
effects: mv,
fonts: kv,
spacing: Tv,
isInverted: n,
disableGlobalClassNames: !1,
semanticColors: Sv(dv, mv, void 0, n, t),
rtl: void 0
}, e)
}
var Iv = Ev({})
, Nv = [];
function zv() {
var e, t, n, r = Qg();
(null === (t = null == r ? void 0 : r.FabricConfig) || void 0 === t ? void 0 : t.legacyTheme) ? function(e, t) {
var n;
void 0 === t && (t = !1),
Iv = Ev(e, t),
Object(Qi.b)(Object(zn.a)(Object(zn.a)(Object(zn.a)(Object(zn.a)({}, Iv.palette), Iv.semanticColors), Iv.effects), function(e) {
for (var t = {}, n = 0, r = Object.keys(e.fonts); n < r.length; n++)
for (var i = r[n], o = e.fonts[i], a = 0, l = Object.keys(o); a < l.length; a++) {
var s = l[a]
, c = i + s.charAt(0).toUpperCase() + s.slice(1)
, u = o[s];
"fontSize" === s && "number" == typeof u && (u += "px"),
t[c] = u
}
return t
}(Iv))),
uv.applySettings(((n = {}).theme = Iv,
n)),
Nv.forEach((function(e) {
try {
e(Iv)
} catch (e) {}
}
))
}(r.FabricConfig.legacyTheme) : uv.getSettings(["theme"]).theme || ((null === (n = null == r ? void 0 : r.FabricConfig) || void 0 === n ? void 0 : n.theme) && (Iv = Ev(r.FabricConfig.theme)),
uv.applySettings(((e = {}).theme = Iv,
e)))
}
zv();
var Dv = n(308);
Object(Dv.a)("@fluentui/style-utilities", "8.5.2"),
zv();
var Lv, Rv = "data-is-focusable", Pv = "data-focuszone-id", Bv = "tabindex", Fv = "data-no-vertical-wrap", Vv = "data-no-horizontal-wrap", Wv = 999999999, qv = -999999999, Hv = {}, Uv = new Set, Xv = ["text", "number", "password", "email", "tel", "url", "search"], Gv = !1, Kv = function(e) {
function t(n) {
var r, i, o, a, s = e.call(this, n) || this;
s._root = l.createRef(),
s._mergedRef = function(e) {
var t = {
refs: []
};
return function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
return t.resolver && function(e, t) {
if (e.length !== t.length)
return !1;
for (var n = 0; n < e.length; n++)
if (e[n] !== t[n])
return !1;
return !0
}(t.refs, e) || (t.resolver = function(e) {
return function(t) {
for (var n = 0, r = e.refs; n < r.length; n++) {
var i = r[n];
"function" == typeof i ? i(t) : i && (i.current = t)
}
}
}(t)),
t.refs = e,
t.resolver
}
}(),
s._onFocus = function(e) {
if (!s._portalContainsElement(e.target)) {
var t, n = s.props, r = n.onActiveElementChanged, i = n.doNotAllowFocusEventToPropagate, o = n.stopFocusPropagation, a = n.onFocusNotification, l = n.onFocus, c = n.shouldFocusInnerElementWhenReceivedFocus, u = n.defaultTabbableElement, d = s._isImmediateDescendantOfZone(e.target);
if (d)
t = e.target;
else
for (var p = e.target; p && p !== s._root.current; ) {
if (tm(p) && s._isImmediateDescendantOfZone(p)) {
t = p;
break
}
p = Ug(p, Gv)
}
if (c && e.target === s._root.current) {
var h = u && "function" == typeof u && s._root.current && u(s._root.current);
h && tm(h) ? (t = h,
h.focus()) : (s.focus(!0),
s._activeElement && (t = null))
}
var f = !s._activeElement;
t && t !== s._activeElement && ((d || f) && s._setFocusAlignment(t, !0, !0),
s._activeElement = t,
f && s._updateTabIndexes()),
r && r(s._activeElement, e),
(o || i) && e.stopPropagation(),
l ? l(e) : a && a()
}
}
,
s._onBlur = function() {
s._setParkedFocus(!1)
}
,
s._onMouseDown = function(e) {
if (!s._portalContainsElement(e.target) && !s.props.disabled) {
for (var t = e.target, n = []; t && t !== s._root.current; )
n.push(t),
t = Ug(t, Gv);
for (; n.length && ((t = n.pop()) && tm(t) && s._setActiveElement(t, !0),
!nm(t)); )
;
}
}
,
s._onKeyDown = function(e, t) {
if (!s._portalContainsElement(e.target)) {
var n = s.props
, r = n.direction
, i = n.disabled
, o = n.isInnerZoneKeystroke
, a = n.pagingSupportDisabled
, l = n.shouldEnterInnerZone;
if (!(i || (s.props.onKeyDown && s.props.onKeyDown(e),
e.isDefaultPrevented() || s._getDocument().activeElement === s._root.current && s._isInnerZone))) {
if ((l && l(e) || o && o(e)) && s._isImmediateDescendantOfZone(e.target)) {
var c = s._getFirstInnerZone();
if (c) {
if (!c.focus(!0))
return
} else {
if (!rm(e.target))
return;
if (!s.focusElement($g(e.target, e.target.firstChild, !0)))
return
}
} else {
if (e.altKey)
return;
switch (e.which) {
case 32:
if (s._shouldRaiseClicksOnSpace && s._tryInvokeClickForFocusable(e.target))
break;
return;
case 37:
if (r !== Hg.vertical && (s._preventDefaultWhenHandled(e),
s._moveFocusLeft(t)))
break;
return;
case 39:
if (r !== Hg.vertical && (s._preventDefaultWhenHandled(e),
s._moveFocusRight(t)))
break;
return;
case 38:
if (r !== Hg.horizontal && (s._preventDefaultWhenHandled(e),
s._moveFocusUp()))
break;
return;
case 40:
if (r !== Hg.horizontal && (s._preventDefaultWhenHandled(e),
s._moveFocusDown()))
break;
return;
case 34:
if (!a && s._moveFocusPaging(!0))
break;
return;
case 33:
if (!a && s._moveFocusPaging(!1))
break;
return;
case 9:
if (s.props.allowTabKey || 1 === s.props.handleTabKey || 2 === s.props.handleTabKey && s._isElementInput(e.target)) {
var u = !1;
if (s._processingTabKey = !0,
u = r !== Hg.vertical && s._shouldWrapFocus(s._activeElement, Vv) ? (dm(t) ? !e.shiftKey : e.shiftKey) ? s._moveFocusLeft(t) : s._moveFocusRight(t) : e.shiftKey ? s._moveFocusUp() : s._moveFocusDown(),
s._processingTabKey = !1,
u)
break;
s.props.shouldResetActiveElementWhenTabFromZone && (s._activeElement = null)
}
return;
case 36:
if (s._isContentEditableElement(e.target) || s._isElementInput(e.target) && !s._shouldInputLoseFocus(e.target, !1))
return !1;
var d = s._root.current && s._root.current.firstChild;
if (s._root.current && d && s.focusElement($g(s._root.current, d, !0)))
break;
return;
case 35:
if (s._isContentEditableElement(e.target) || s._isElementInput(e.target) && !s._shouldInputLoseFocus(e.target, !0))
return !1;
var p = s._root.current && s._root.current.lastChild;
if (s._root.current && s.focusElement(Zg(s._root.current, p, !0, !0, !0)))
break;
return;
case 13:
if (s._shouldRaiseClicksOnEnter && s._tryInvokeClickForFocusable(e.target))
break;
return;
default:
return
}
}
e.preventDefault(),
e.stopPropagation()
}
}
}
,
s._getHorizontalDistanceFromCenter = function(e, t, n) {
var r = s._focusAlignment.left || s._focusAlignment.x || 0
, i = Math.floor(n.top)
, o = Math.floor(t.bottom)
, a = Math.floor(n.bottom)
, l = Math.floor(t.top);
return e && i > o || !e && a < l ? r >= n.left && r <= n.left + n.width ? 0 : Math.abs(n.left + n.width / 2 - r) : s._shouldWrapFocus(s._activeElement, Fv) ? Wv : qv
}
,
function(e) {
!function(e, t) {
for (var n in t)
t.hasOwnProperty(n) && (e[n] = pm(e, e[n], t[n]))
}(e, {
componentDidMount: hm,
componentDidUpdate: fm,
componentWillUnmount: bm
})
}(s),
s._id = function(e) {
if (!jm) {
var t = xm.getInstance();
t && t.onReset && t.onReset(km),
jm = !0
}
return e + Om.__currentId__++
}("FocusZone"),
s._focusAlignment = {
left: 0,
top: 0
},
s._processingTabKey = !1;
var c = null === (i = null !== (r = n.shouldRaiseClicks) && void 0 !== r ? r : t.defaultProps.shouldRaiseClicks) || void 0 === i || i;
return s._shouldRaiseClicksOnEnter = null !== (o = n.shouldRaiseClicksOnEnter) && void 0 !== o ? o : c,
s._shouldRaiseClicksOnSpace = null !== (a = n.shouldRaiseClicksOnSpace) && void 0 !== a ? a : c,
s
}
return Object(zn.c)(t, e),
t.getOuterZones = function() {
return Uv.size
}
,
t._onKeyDownCapture = function(e) {
9 === e.which && Uv.forEach((function(e) {
return e._updateTabIndexes()
}
))
}
,
t.prototype.componentDidMount = function() {
var e = this._root.current;
if (Hv[this._id] = this,
e) {
this._windowElement = Qg(e);
for (var n = Ug(e, Gv); n && n !== this._getDocument().body && 1 === n.nodeType; ) {
if (nm(n)) {
this._isInnerZone = !0;
break
}
n = Ug(n, Gv)
}
this._isInnerZone || (Uv.add(this),
this._windowElement && 1 === Uv.size && this._windowElement.addEventListener("keydown", t._onKeyDownCapture, !0)),
this._root.current && this._root.current.addEventListener("blur", this._onBlur, !0),
this._updateTabIndexes(),
this.props.defaultTabbableElement && "string" == typeof this.props.defaultTabbableElement ? this._activeElement = this._getDocument().querySelector(this.props.defaultTabbableElement) : this.props.defaultActiveElement && (this._activeElement = this._getDocument().querySelector(this.props.defaultActiveElement)),
this.props.shouldFocusOnMount && this.focus()
}
}
,
t.prototype.componentDidUpdate = function() {
var e = this._root.current
, t = this._getDocument();
if (!this.props.preventFocusRestoration && t && this._lastIndexPath && (t.activeElement === t.body || null === t.activeElement || t.activeElement === e)) {
var n = function(e, t) {
for (var n = e, r = 0, i = t; r < i.length; r++) {
var o = i[r]
, a = n.children[Math.min(o, n.children.length - 1)];
if (!a)
break;
n = a
}
return tm(n) && em(n) ? n : $g(e, n, !0) || Zg(e, n)
}(e, this._lastIndexPath);
n ? (this._setActiveElement(n, !0),
n.focus(),
this._setParkedFocus(!1)) : this._setParkedFocus(!0)
}
}
,
t.prototype.componentWillUnmount = function() {
delete Hv[this._id],
this._isInnerZone || (Uv.delete(this),
this._windowElement && 0 === Uv.size && this._windowElement.removeEventListener("keydown", t._onKeyDownCapture, !0)),
this._root.current && this._root.current.removeEventListener("blur", this._onBlur, !0),
this._activeElement = null,
this._defaultFocusElement = null
}
,
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.as
, r = t.elementType
, i = t.rootProps
, o = t.ariaDescribedBy
, a = t.ariaLabelledBy
, s = t.className
, c = function(e, t, n) {
for (var r = Array.isArray(t), i = {}, o = 0, a = Object.keys(e); o < a.length; o++) {
var l = a[o];
!(!r && t[l] || r && t.indexOf(l) >= 0 || 0 === l.indexOf("data-") || 0 === l.indexOf("aria-")) || (i[l] = e[l])
}
return i
}(this.props, Mm)
, u = n || r || "div";
this._evaluateFocusBeforeRender();
var d, p = (void 0 === d && (d = !1),
!0 === d && (Iv = Ev({}, d)),
Iv);
return l.createElement(u, Object(zn.a)({
"aria-labelledby": a,
"aria-describedby": o
}, c, i, {
className: Tm((Lv || (Lv = $m({
selectors: {
":focus": {
outline: "none"
}
}
}, "ms-FocusZone")),
Lv), s),
ref: this._mergedRef(this.props.elementRef, this._root),
"data-focuszone-id": this._id,
onKeyDown: function(t) {
return e._onKeyDown(t, p)
},
onFocus: this._onFocus,
onMouseDownCapture: this._onMouseDown
}), this.props.children)
}
,
t.prototype.focus = function(e) {
if (void 0 === e && (e = !1),
this._root.current) {
if (!e && "true" === this._root.current.getAttribute(Rv) && this._isInnerZone) {
var t = this._getOwnerZone(this._root.current);
if (t !== this._root.current) {
var n = Hv[t.getAttribute(Pv)];
return !!n && n.focusElement(this._root.current)
}
return !1
}
if (!e && this._activeElement && Gg(this._root.current, this._activeElement) && tm(this._activeElement))
return this._activeElement.focus(),
!0;
var r = this._root.current.firstChild;
return this.focusElement($g(this._root.current, r, !0))
}
return !1
}
,
t.prototype.focusLast = function() {
if (this._root.current) {
var e = this._root.current && this._root.current.lastChild;
return this.focusElement(Zg(this._root.current, e, !0, !0, !0))
}
return !1
}
,
t.prototype.focusElement = function(e, t) {
var n = this.props
, r = n.onBeforeFocus
, i = n.shouldReceiveFocus;
return !(i && !i(e) || r && !r(e) || !e || (this._setActiveElement(e, t),
this._activeElement && this._activeElement.focus(),
0))
}
,
t.prototype.setFocusAlignment = function(e) {
this._focusAlignment = e
}
,
t.prototype._evaluateFocusBeforeRender = function() {
var e = this._root.current
, t = this._getDocument();
if (t) {
var n = t.activeElement;
if (n !== e) {
var r = Gg(e, n, !1);
this._lastIndexPath = r ? function(e, t) {
for (var n = []; t && e && t !== e; ) {
var r = Ug(t, !0);
if (null === r)
return [];
n.unshift(Array.prototype.indexOf.call(r.children, t)),
t = r
}
return n
}(e, n) : void 0
}
}
}
,
t.prototype._setParkedFocus = function(e) {
var t = this._root.current;
t && this._isParked !== e && (this._isParked = e,
e ? (this.props.allowFocusRoot || (this._parkedTabIndex = t.getAttribute("tabindex"),
t.setAttribute("tabindex", "-1")),
t.focus()) : this.props.allowFocusRoot || (this._parkedTabIndex ? (t.setAttribute("tabindex", this._parkedTabIndex),
this._parkedTabIndex = void 0) : t.removeAttribute("tabindex")))
}
,
t.prototype._setActiveElement = function(e, t) {
var n = this._activeElement;
this._activeElement = e,
n && (nm(n) && this._updateTabIndexes(n),
n.tabIndex = -1),
this._activeElement && (this._focusAlignment && !t || this._setFocusAlignment(e, !0, !0),
this._activeElement.tabIndex = 0)
}
,
t.prototype._preventDefaultWhenHandled = function(e) {
this.props.preventDefaultWhenHandled && e.preventDefault()
}
,
t.prototype._tryInvokeClickForFocusable = function(e) {
if (e === this._root.current)
return !1;
do {
if ("BUTTON" === e.tagName || "A" === e.tagName || "INPUT" === e.tagName || "TEXTAREA" === e.tagName)
return !1;
if (this._isImmediateDescendantOfZone(e) && "true" === e.getAttribute(Rv) && "true" !== e.getAttribute("data-disable-click-on-enter"))
return Em(e),
!0;
e = Ug(e, Gv)
} while (e !== this._root.current);
return !1
}
,
t.prototype._getFirstInnerZone = function(e) {
if (!(e = e || this._activeElement || this._root.current))
return null;
if (nm(e))
return Hv[e.getAttribute(Pv)];
for (var t = e.firstElementChild; t; ) {
if (nm(t))
return Hv[t.getAttribute(Pv)];
var n = this._getFirstInnerZone(t);
if (n)
return n;
t = t.nextElementSibling
}
return null
}
,
t.prototype._moveFocus = function(e, t, n, r) {
void 0 === r && (r = !0);
var i = this._activeElement
, o = -1
, a = void 0
, l = !1
, s = this.props.direction === Hg.bidirectional;
if (!i || !this._root.current)
return !1;
if (this._isElementInput(i) && !this._shouldInputLoseFocus(i, e))
return !1;
var c = s ? i.getBoundingClientRect() : null;
do {
if (i = e ? $g(this._root.current, i) : Zg(this._root.current, i),
!s) {
a = i;
break
}
if (i) {
var u = t(c, i.getBoundingClientRect());
if (-1 === u && -1 === o) {
a = i;
break
}
if (u > -1 && (-1 === o || u < o) && (o = u,
a = i),
o >= 0 && u < 0)
break
}
} while (i);
if (a && a !== this._activeElement)
l = !0,
this.focusElement(a);
else if (this.props.isCircularNavigation && r)
return e ? this.focusElement($g(this._root.current, this._root.current.firstElementChild, !0)) : this.focusElement(Zg(this._root.current, this._root.current.lastElementChild, !0, !0, !0));
return l
}
,
t.prototype._moveFocusDown = function() {
var e = this
, t = -1
, n = this._focusAlignment.left || this._focusAlignment.x || 0;
return !!this._moveFocus(!0, (function(r, i) {
var o = -1
, a = Math.floor(i.top)
, l = Math.floor(r.bottom);
return a < l ? e._shouldWrapFocus(e._activeElement, Fv) ? Wv : qv : ((-1 === t && a >= l || a === t) && (t = a,
o = n >= i.left && n <= i.left + i.width ? 0 : Math.abs(i.left + i.width / 2 - n)),
o)
}
)) && (this._setFocusAlignment(this._activeElement, !1, !0),
!0)
}
,
t.prototype._moveFocusUp = function() {
var e = this
, t = -1
, n = this._focusAlignment.left || this._focusAlignment.x || 0;
return !!this._moveFocus(!1, (function(r, i) {
var o = -1
, a = Math.floor(i.bottom)
, l = Math.floor(i.top)
, s = Math.floor(r.top);
return a > s ? e._shouldWrapFocus(e._activeElement, Fv) ? Wv : qv : ((-1 === t && a <= s || l === t) && (t = l,
o = n >= i.left && n <= i.left + i.width ? 0 : Math.abs(i.left + i.width / 2 - n)),
o)
}
)) && (this._setFocusAlignment(this._activeElement, !1, !0),
!0)
}
,
t.prototype._moveFocusLeft = function(e) {
var t = this
, n = this._shouldWrapFocus(this._activeElement, Vv);
return !!this._moveFocus(dm(e), (function(r, i) {
var o = -1;
return (dm(e) ? parseFloat(i.top.toFixed(3)) < parseFloat(r.bottom.toFixed(3)) : parseFloat(i.bottom.toFixed(3)) > parseFloat(r.top.toFixed(3))) && i.right <= r.right && t.props.direction !== Hg.vertical ? o = r.right - i.right : n || (o = qv),
o
}
), void 0, n) && (this._setFocusAlignment(this._activeElement, !0, !1),
!0)
}
,
t.prototype._moveFocusRight = function(e) {
var t = this
, n = this._shouldWrapFocus(this._activeElement, Vv);
return !!this._moveFocus(!dm(e), (function(r, i) {
var o = -1;
return (dm(e) ? parseFloat(i.bottom.toFixed(3)) > parseFloat(r.top.toFixed(3)) : parseFloat(i.top.toFixed(3)) < parseFloat(r.bottom.toFixed(3))) && i.left >= r.left && t.props.direction !== Hg.vertical ? o = i.left - r.left : n || (o = qv),
o
}
), void 0, n) && (this._setFocusAlignment(this._activeElement, !0, !1),
!0)
}
,
t.prototype._moveFocusPaging = function(e, t) {
void 0 === t && (t = !0);
var n = this._activeElement;
if (!n || !this._root.current)
return !1;
if (this._isElementInput(n) && !this._shouldInputLoseFocus(n, e))
return !1;
var r = function(e) {
for (var t = e, n = Jg(e); t && t !== n.body; ) {
if ("true" === t.getAttribute(ev))
return t;
t = t.parentElement
}
for (t = e; t && t !== n.body; ) {
if ("false" !== t.getAttribute(ev)) {
var r = getComputedStyle(t)
, i = r ? r.getPropertyValue("overflow-y") : "";
if (i && ("scroll" === i || "auto" === i))
return t
}
t = t.parentElement
}
return t && t !== n.body || (t = Qg(e)),
t
}(n);
if (!r)
return !1;
var i = -1
, o = void 0
, a = -1
, l = -1
, s = r.clientHeight
, c = n.getBoundingClientRect();
do {
if (n = e ? $g(this._root.current, n) : Zg(this._root.current, n)) {
var u = n.getBoundingClientRect()
, d = Math.floor(u.top)
, p = Math.floor(c.bottom)
, h = Math.floor(u.bottom)
, f = Math.floor(c.top)
, b = this._getHorizontalDistanceFromCenter(e, c, u);
if (e && d > p + s || !e && h < f - s)
break;
b > -1 && (e && d > a ? (a = d,
i = b,
o = n) : !e && h < l ? (l = h,
i = b,
o = n) : (-1 === i || b <= i) && (i = b,
o = n))
}
} while (n);
var g = !1;
if (o && o !== this._activeElement)
g = !0,
this.focusElement(o),
this._setFocusAlignment(o, !1, !0);
else if (this.props.isCircularNavigation && t)
return e ? this.focusElement($g(this._root.current, this._root.current.firstElementChild, !0)) : this.focusElement(Zg(this._root.current, this._root.current.lastElementChild, !0, !0, !0));
return g
}
,
t.prototype._setFocusAlignment = function(e, t, n) {
if (this.props.direction === Hg.bidirectional && (!this._focusAlignment || t || n)) {
var r = e.getBoundingClientRect()
, i = r.left + r.width / 2
, o = r.top + r.height / 2;
this._focusAlignment || (this._focusAlignment = {
left: i,
top: o
}),
t && (this._focusAlignment.left = i),
n && (this._focusAlignment.top = o)
}
}
,
t.prototype._isImmediateDescendantOfZone = function(e) {
return this._getOwnerZone(e) === this._root.current
}
,
t.prototype._getOwnerZone = function(e) {
for (var t = Ug(e, Gv); t && t !== this._root.current && t !== this._getDocument().body; ) {
if (nm(t))
return t;
t = Ug(t, Gv)
}
return t
}
,
t.prototype._updateTabIndexes = function(e) {
!this._activeElement && this.props.defaultTabbableElement && "function" == typeof this.props.defaultTabbableElement && (this._activeElement = this.props.defaultTabbableElement(this._root.current)),
!e && this._root.current && (this._defaultFocusElement = null,
e = this._root.current,
this._activeElement && !Gg(e, this._activeElement) && (this._activeElement = null)),
this._activeElement && !tm(this._activeElement) && (this._activeElement = null);
for (var t = e && e.children, n = 0; t && n < t.length; n++) {
var r = t[n];
nm(r) ? "true" === r.getAttribute(Rv) && (this._isInnerZone || (this._activeElement || this._defaultFocusElement) && this._activeElement !== r ? "-1" !== r.getAttribute(Bv) && r.setAttribute(Bv, "-1") : (this._defaultFocusElement = r,
"0" !== r.getAttribute(Bv) && r.setAttribute(Bv, "0"))) : (r.getAttribute && "false" === r.getAttribute(Rv) && r.setAttribute(Bv, "-1"),
tm(r) ? this.props.disabled ? r.setAttribute(Bv, "-1") : this._isInnerZone || (this._activeElement || this._defaultFocusElement) && this._activeElement !== r ? "-1" !== r.getAttribute(Bv) && r.setAttribute(Bv, "-1") : (this._defaultFocusElement = r,
"0" !== r.getAttribute(Bv) && r.setAttribute(Bv, "0")) : "svg" === r.tagName && "false" !== r.getAttribute("focusable") && r.setAttribute("focusable", "false")),
this._updateTabIndexes(r)
}
}
,
t.prototype._isContentEditableElement = function(e) {
return e && "true" === e.getAttribute("contenteditable")
}
,
t.prototype._isElementInput = function(e) {
return !(!e || !e.tagName || "input" !== e.tagName.toLowerCase() && "textarea" !== e.tagName.toLowerCase())
}
,
t.prototype._shouldInputLoseFocus = function(e, t) {
if (!this._processingTabKey && e && e.type && Xv.indexOf(e.type.toLowerCase()) > -1) {
var n = e.selectionStart
, r = n !== e.selectionEnd
, i = e.value
, o = e.readOnly;
if (r || n > 0 && !t && !o || n !== i.length && t && !o || this.props.handleTabKey && (!this.props.shouldInputLoseFocusOnArrowKey || !this.props.shouldInputLoseFocusOnArrowKey(e)))
return !1
}
return !0
}
,
t.prototype._shouldWrapFocus = function(e, t) {
return !this.props.checkForNoWrap || function(e, t) {
return "true" !== function(e, t) {
var n = Xg(e, (function(e) {
return e.hasAttribute(t)
}
));
return n && n.getAttribute(t)
}(e, t)
}(e, t)
}
,
t.prototype._portalContainsElement = function(e) {
return e && !!this._root.current && function(e, t) {
var n = Xg(e, (function(e) {
return t === e || e.hasAttribute(tv)
}
));
return null !== n && n.hasAttribute(tv)
}(e, this._root.current)
}
,
t.prototype._getDocument = function() {
return Jg(this._root.current)
}
,
t.defaultProps = {
isCircularNavigation: !1,
direction: Hg.bidirectional,
shouldRaiseClicks: !0
},
t
}(l.Component);
function Yv(e, t, n) {
void 0 === n && (n = !0);
var r = !1;
if (e && t)
if (n)
if (e === t)
r = !0;
else
for (r = !1; t; ) {
var i = Wb(t);
if (i === e) {
r = !0;
break
}
t = i
}
else
e.contains && (r = e.contains(t));
return r
}
function Qv(e, t, n) {
return $v(e, t, !0, !1, !1, n)
}
function Jv(e, t, n) {
return Zv(e, t, !0, !1, !0, n)
}
function Zv(e, t, n, r, i, o, a, l) {
if (!t || !a && t === e)
return null;
var s = ey(t);
if (i && s && (o || !ny(t) && !ry(t))) {
var c = Zv(e, t.lastElementChild, !0, !0, !0, o, a, l);
if (c) {
if (l && ty(c, !0) || !l)
return c;
var u = Zv(e, c.previousElementSibling, !0, !0, !0, o, a, l);
if (u)
return u;
for (var d = c.parentElement; d && d !== t; ) {
var p = Zv(e, d.previousElementSibling, !0, !0, !0, o, a, l);
if (p)
return p;
d = d.parentElement
}
}
}
return n && s && ty(t, l) ? t : Zv(e, t.previousElementSibling, !0, !0, !0, o, a, l) || (r ? null : Zv(e, t.parentElement, !0, !1, !1, o, a, l))
}
function $v(e, t, n, r, i, o, a, l) {
if (!t || t === e && i && !a)
return null;
var s = ey(t);
if (n && s && ty(t, l))
return t;
if (!i && s && (o || !ny(t) && !ry(t))) {
var c = $v(e, t.firstElementChild, !0, !0, !1, o, a, l);
if (c)
return c
}
return t === e ? null : $v(e, t.nextElementSibling, !0, !0, !1, o, a, l) || (r ? null : $v(e, t.parentElement, !1, !1, !0, o, a, l))
}
function ey(e) {
if (!e || !e.getAttribute)
return !1;
var t = e.getAttribute("data-is-visible");
return null != t ? "true" === t : 0 !== e.offsetHeight || null !== e.offsetParent || !0 === e.isVisible
}
function ty(e, t) {
if (!e || e.disabled)
return !1;
var n = 0
, r = null;
e && e.getAttribute && (r = e.getAttribute("tabIndex")) && (n = parseInt(r, 10));
var i = e.getAttribute ? e.getAttribute("data-is-focusable") : null
, o = null !== r && n >= 0
, a = !!e && "false" !== i && ("A" === e.tagName || "BUTTON" === e.tagName || "INPUT" === e.tagName || "TEXTAREA" === e.tagName || "SELECT" === e.tagName || "true" === i || o);
return t ? -1 !== n && a : a
}
function ny(e) {
return !!(e && e.getAttribute && e.getAttribute("data-focuszone-id"))
}
function ry(e) {
return !(!e || !e.getAttribute || "true" !== e.getAttribute("data-is-sub-focuszone"))
}
var iy, oy = void 0;
function ay(e) {
if (e) {
if (oy)
return void (oy = e);
oy = e;
var t = ji(e);
t && t.requestAnimationFrame((function() {
oy && oy.focus(),
oy = void 0
}
))
}
}
function ly(e) {
var t;
if (void 0 === iy || e) {
var n = ji()
, r = null === (t = null == n ? void 0 : n.navigator) || void 0 === t ? void 0 : t.userAgent;
iy = !!r && -1 !== r.indexOf("Macintosh")
}
return !!iy
}
var sy, cy, uy, dy, py = function() {
return !!(window && window.navigator && window.navigator.userAgent) && /iPad|iPhone|iPod/i.test(window.navigator.userAgent)
};
function hy(e, t) {
for (var n = Object(zn.a)({}, t), r = 0, i = Object.keys(e); r < i.length; r++) {
var o = i[r];
void 0 === n[o] && (n[o] = e[o])
}
return n
}
function fy(e) {
return e.canCheck ? !(!e.isChecked && !e.checked) : "boolean" == typeof e.isChecked ? e.isChecked : "boolean" == typeof e.checked ? e.checked : null
}
function by(e) {
return !(!e.subMenuProps && !e.items)
}
function gy(e) {
return !(!e.isDisabled && !e.disabled)
}
function my(e) {
return null !== fy(e) ? "menuitemcheckbox" : "menuitem"
}
function vy(e, t, n, r) {
return e.addEventListener(t, n, r),
function() {
return e.removeEventListener(t, n, r)
}
}
!function(e) {
e[e.top = 1] = "top",
e[e.bottom = -1] = "bottom",
e[e.left = 2] = "left",
e[e.right = -2] = "right"
}(sy || (sy = {})),
(uy = cy || (cy = {}))[uy.top = 0] = "top",
uy[uy.bottom = 1] = "bottom",
uy[uy.start = 2] = "start",
uy[uy.end = 3] = "end";
var yy = 0
, xy = dr({
overflow: "hidden !important"
})
, Oy = "data-is-scrollable"
, jy = function(e, t) {
if (e) {
var n = 0
, r = null;
t.on(e, "touchstart", (function(e) {
1 === e.targetTouches.length && (n = e.targetTouches[0].clientY)
}
), {
passive: !1
}),
t.on(e, "touchmove", (function(e) {
if (1 === e.targetTouches.length && (e.stopPropagation(),
r)) {
var t = e.targetTouches[0].clientY - n
, i = Cy(e.target);
i && (r = i),
0 === r.scrollTop && t > 0 && e.preventDefault(),
r.scrollHeight - Math.ceil(r.scrollTop) <= r.clientHeight && t < 0 && e.preventDefault()
}
}
), {
passive: !1
}),
r = e
}
}
, ky = function(e, t) {
e && t.on(e, "touchmove", (function(e) {
e.stopPropagation()
}
), {
passive: !1
})
}
, wy = function(e) {
e.preventDefault()
};
function Cy(e) {
for (var t = e, n = ro(e); t && t !== n.body; ) {
if ("true" === t.getAttribute(Oy))
return t;
t = t.parentElement
}
for (t = e; t && t !== n.body; ) {
if ("false" !== t.getAttribute(Oy)) {
var r = getComputedStyle(t)
, i = r ? r.getPropertyValue("overflow-y") : "";
if (i && ("scroll" === i || "auto" === i))
return t
}
t = t.parentElement
}
return t && t !== n.body || (t = ji(e)),
t
}
var _y, My = function() {
function e(e, t, n, r) {
void 0 === e && (e = 0),
void 0 === t && (t = 0),
void 0 === n && (n = 0),
void 0 === r && (r = 0),
this.top = n,
this.bottom = r,
this.left = e,
this.right = t
}
return Object.defineProperty(e.prototype, "width", {
get: function() {
return this.right - this.left
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(e.prototype, "height", {
get: function() {
return this.bottom - this.top
},
enumerable: !1,
configurable: !0
}),
e.prototype.equals = function(e) {
return parseFloat(this.top.toFixed(4)) === parseFloat(e.top.toFixed(4)) && parseFloat(this.bottom.toFixed(4)) === parseFloat(e.bottom.toFixed(4)) && parseFloat(this.left.toFixed(4)) === parseFloat(e.left.toFixed(4)) && parseFloat(this.right.toFixed(4)) === parseFloat(e.right.toFixed(4))
}
,
e
}();
function Sy(e, t, n) {
return {
targetEdge: e,
alignmentEdge: t,
isAuto: n
}
}
var Ay = ((_y = {})[0] = Sy(sy.top, sy.left),
_y[1] = Sy(sy.top),
_y[2] = Sy(sy.top, sy.right),
_y[3] = Sy(sy.top, void 0, !0),
_y[4] = Sy(sy.bottom, sy.left),
_y[5] = Sy(sy.bottom),
_y[6] = Sy(sy.bottom, sy.right),
_y[Vg] = Sy(sy.bottom, void 0, !0),
_y[8] = Sy(sy.left, sy.top),
_y[9] = Sy(sy.left),
_y[10] = Sy(sy.left, sy.bottom),
_y[11] = Sy(sy.right, sy.top),
_y[12] = Sy(sy.right),
_y[13] = Sy(sy.right, sy.bottom),
_y);
function Ty(e, t) {
return !(e.top < t.top || e.bottom > t.bottom || e.left < t.left || e.right > t.right)
}
function Ey(e, t) {
var n = [];
return e.top < t.top && n.push(sy.top),
e.bottom > t.bottom && n.push(sy.bottom),
e.left < t.left && n.push(sy.left),
e.right > t.right && n.push(sy.right),
n
}
function Iy(e, t) {
return e[sy[t]]
}
function Ny(e, t, n) {
return e[sy[t]] = n,
e
}
function zy(e, t) {
var n = Uy(t);
return (Iy(e, n.positiveEdge) + Iy(e, n.negativeEdge)) / 2
}
function Dy(e, t) {
return e > 0 ? t : -1 * t
}
function Ly(e, t) {
return Dy(e, Iy(t, e))
}
function Ry(e, t, n) {
return Dy(n, Iy(e, n) - Iy(t, n))
}
function Py(e, t, n, r) {
void 0 === r && (r = !0);
var i = Iy(e, t) - n
, o = Ny(e, t, n);
return r && (o = Ny(e, -1 * t, Iy(e, -1 * t) - i)),
o
}
function By(e, t, n, r) {
return void 0 === r && (r = 0),
Py(e, n, Iy(t, n) + Dy(n, r))
}
function Fy(e, t, n) {
return Ly(n, e) > Ly(n, t)
}
function Vy(e, t) {
for (var n = 0, r = 0, i = Ey(e, t); r < i.length; r++) {
var o = i[r];
n += Math.pow(Ry(e, t, o), 2)
}
return n
}
function Wy(e, t, n, r) {
for (var i = 0, o = e; i < o.length; i++) {
var a = o[i]
, l = void 0;
r && r === -1 * a ? (l = Py(t.elementRectangle, a, Iy(n, a), !1),
t.forcedInBounds = !0) : Fy(l = By(t.elementRectangle, n, a), n, -1 * a) || (l = Py(l, -1 * a, Iy(n, -1 * a), !1),
t.forcedInBounds = !0),
t.elementRectangle = l
}
return t
}
function qy(e, t, n) {
var r = Uy(t).positiveEdge;
return Py(e, r, n - (zy(e, t) - Iy(e, r)))
}
function Hy(e, t, n, r, i) {
void 0 === r && (r = 0);
var o = new My(e.left,e.right,e.top,e.bottom)
, a = n.alignmentEdge
, l = n.targetEdge
, s = i ? l : -1 * l;
return o = i ? By(o, t, l, r) : function(e, t, n, r) {
void 0 === r && (r = 0);
var i = Dy(-1 * n, r);
return Py(e, -1 * n, Iy(t, n) + i)
}(o, t, l, r),
o = a ? By(o, t, a) : qy(o, s, zy(t, l))
}
function Uy(e) {
return e === sy.top || e === sy.bottom ? {
positiveEdge: sy.left,
negativeEdge: sy.right
} : {
positiveEdge: sy.top,
negativeEdge: sy.bottom
}
}
function Xy(e, t, n) {
return n && Math.abs(Ry(e, n, t)) > Math.abs(Ry(e, n, -1 * t)) ? -1 * t : t
}
function Gy(e, t, n, r, i, o, a, l) {
var s, c = {}, u = Qy(t), d = o ? n : -1 * n, p = i || Uy(n).positiveEdge;
return a && !function(e, t, n) {
return void 0 !== n && Iy(e, t) === Iy(n, t)
}(e, (s = p,
-1 * s), r) || (p = Xy(e, p, r)),
c[sy[d]] = Ry(e, u, d),
c[sy[p]] = Ry(e, u, p),
l && (c[sy[-1 * d]] = Ry(e, u, -1 * d),
c[sy[-1 * p]] = Ry(e, u, -1 * p)),
c
}
function Ky(e, t, n) {
var r = zy(t, e)
, i = zy(n, e)
, o = Uy(e)
, a = o.positiveEdge
, l = o.negativeEdge;
return r <= i ? a : l
}
function Yy(e, t, n, r, i, o, a) {
var l = Hy(e, t, r, i, a);
return Ty(l, n) ? {
elementRectangle: l,
targetEdge: r.targetEdge,
alignmentEdge: r.alignmentEdge
} : function(e, t, n, r, i, o, a) {
void 0 === i && (i = 0);
var l = r.alignmentEdge
, s = r.alignTargetEdge
, c = {
elementRectangle: e,
targetEdge: r.targetEdge,
alignmentEdge: l
};
o || a || (c = function(e, t, n, r, i) {
void 0 === i && (i = 0);
var o = [sy.left, sy.right, sy.bottom, sy.top];
vp() && (o[0] *= -1,
o[1] *= -1);
for (var a, l = e, s = r.targetEdge, c = r.alignmentEdge, u = s, d = c, p = 0; p < 4; p++) {
if (Fy(l, n, s))
return {
elementRectangle: l,
targetEdge: s,
alignmentEdge: c
};
var h = Vy(l, n);
(!a || h < a) && (a = h,
u = s,
d = c),
o.splice(o.indexOf(s), 1),
o.length > 0 && (o.indexOf(-1 * s) > -1 ? s *= -1 : (c = s,
s = o.slice(-1)[0]),
l = Hy(e, t, {
targetEdge: s,
alignmentEdge: c
}, i))
}
return {
elementRectangle: l = Hy(e, t, {
targetEdge: u,
alignmentEdge: d
}, i),
targetEdge: u,
alignmentEdge: d
}
}(e, t, n, r, i));
var u = Ey(c.elementRectangle, n)
, d = o ? -c.targetEdge : void 0;
if (u.length > 0)
if (s)
if (c.alignmentEdge && u.indexOf(-1 * c.alignmentEdge) > -1) {
var p = function(e, t, n, r) {
var i = e.alignmentEdge
, o = e.targetEdge
, a = -1 * i;
return {
elementRectangle: Hy(e.elementRectangle, t, {
targetEdge: o,
alignmentEdge: a
}, n, r),
targetEdge: o,
alignmentEdge: a
}
}(c, t, i, a);
if (Ty(p.elementRectangle, n))
return p;
c = Wy(Ey(p.elementRectangle, n), c, n, d)
} else
c = Wy(u, c, n, d);
else
c = Wy(u, c, n, d);
return c
}(l, t, n, r, i, o, a)
}
function Qy(e) {
var t = e.getBoundingClientRect();
return new My(t.left,t.right,t.top,t.bottom)
}
function Jy(e, t, n, r) {
var i = e.gapSpace ? e.gapSpace : 0
, o = function(e, t) {
var n;
if (t) {
if (t.preventDefault) {
var r = t;
n = new My(r.clientX,r.clientX,r.clientY,r.clientY)
} else if (t.getBoundingClientRect)
n = Qy(t);
else {
var i = t
, o = i.left || i.x
, a = i.top || i.y
, l = i.right || o
, s = i.bottom || a;
n = new My(o,l,a,s)
}
if (!Ty(n, e))
for (var c = 0, u = Ey(n, e); c < u.length; c++) {
var d = u[c];
n[sy[d]] = e[sy[d]]
}
} else
n = new My(0,0,0,0);
return n
}(n, e.target)
, a = function(e, t, n, r, i) {
return e.isAuto && (e.alignmentEdge = Ky(e.targetEdge, t, n)),
e.alignTargetEdge = i,
e
}(function(e, t, n) {
if (void 0 === e && (e = Vg),
n)
return {
alignmentEdge: n.alignmentEdge,
isAuto: n.isAuto,
targetEdge: n.targetEdge
};
var r = Object(zn.a)({}, Ay[e]);
return vp() ? (r.alignmentEdge && r.alignmentEdge % 2 == 0 && (r.alignmentEdge = -1 * r.alignmentEdge),
void 0 !== t ? Ay[t] : r) : r
}(e.directionalHint, e.directionalHintForRTL, r), o, n, e.coverTarget, e.alignTargetEdge)
, l = Yy(Qy(t), o, n, a, i, e.directionalHintFixed, e.coverTarget);
return Object(zn.a)(Object(zn.a)({}, l), {
targetRectangle: o
})
}
function Zy(e, t, n, r, i) {
var o = e.isBeakVisible && e.beakWidth || 0
, a = function(e) {
return Math.sqrt(e * e * 2)
}(o) / 2 + (e.gapSpace ? e.gapSpace : 0)
, l = e;
l.gapSpace = a;
var s = e.bounds ? function(e) {
return new My(e.left,e.right,e.top,e.bottom)
}(e.bounds) : new My(0,window.innerWidth - function() {
if (void 0 === dy) {
var e = document.createElement("div");
e.style.setProperty("width", "100px"),
e.style.setProperty("height", "100px"),
e.style.setProperty("overflow", "scroll"),
e.style.setProperty("position", "absolute"),
e.style.setProperty("top", "-9999px"),
document.body.appendChild(e),
dy = e.offsetWidth - e.clientWidth,
document.body.removeChild(e)
}
return dy
}(),0,window.innerHeight)
, c = Jy(l, n, s, r)
, u = function(e, t, n) {
var r = -1 * e.targetEdge
, i = new My(0,e.elementRectangle.width,0,e.elementRectangle.height)
, o = {}
, a = Xy(e.elementRectangle, e.alignmentEdge ? e.alignmentEdge : Uy(r).positiveEdge, n)
, l = Ry(e.elementRectangle, e.targetRectangle, r) > Math.abs(Iy(t, r));
return o[sy[r]] = Iy(t, r),
o[sy[a]] = Ry(t, i, a),
{
elementPosition: Object(zn.a)({}, o),
closestEdge: Ky(e.targetEdge, t, i),
targetEdge: r,
hideBeak: !l
}
}(c, function(e, t) {
var n = t.targetRectangle
, r = Uy(t.targetEdge)
, i = r.positiveEdge
, o = r.negativeEdge
, a = zy(n, t.targetEdge)
, l = new My(e / 2,t.elementRectangle.width - e / 2,e / 2,t.elementRectangle.height - e / 2)
, s = new My(0,e,0,e);
return Fy(s = qy(s = Py(s, -1 * t.targetEdge, -e / 2), -1 * t.targetEdge, a - Ly(i, t.elementRectangle)), l, i) ? Fy(s, l, o) || (s = By(s, l, o)) : s = By(s, l, i),
s
}(o, c), s);
return Object(zn.a)(Object(zn.a)({}, function(e, t, n, r, i) {
return {
elementPosition: Gy(e.elementRectangle, t, e.targetEdge, n, e.alignmentEdge, r, i, e.forcedInBounds),
targetEdge: e.targetEdge,
alignmentEdge: e.alignmentEdge
}
}(c, t, s, e.coverTarget, i)), {
beakPosition: u
})
}
function $y(e) {
var t = l.useRef();
return void 0 === t.current && (t.current = {
value: "function" == typeof e ? e() : e
}),
t.current.value
}
function ex() {
var e = $y((function() {
return new $b
}
));
return l.useEffect((function() {
return function() {
return e.dispose()
}
}
), [e]),
e
}
function tx(e, t, n, r) {
var i = l.useRef(n);
i.current = n,
l.useEffect((function() {
var n = e && "current"in e ? e.current : e;
if (n)
return vy(n, t, (function(e) {
return i.current(e)
}
), r)
}
), [e, t, r])
}
var nx = l.createContext({
window: "object" == typeof window ? window : void 0
})
, rx = function() {
return l.useContext(nx).window
}
, ix = function() {
var e;
return null === (e = l.useContext(nx).window) || void 0 === e ? void 0 : e.document
};
function ox(e) {
var t = e.originalElement
, n = e.containsFocus;
t && n && t !== ji() && setTimeout((function() {
var e;
null === (e = t.focus) || void 0 === e || e.call(t)
}
), 0)
}
var ax, lx = function(e, t) {
return e && t ? [].slice.call(t.children).filter((function(t) {
return t !== e
}
)) : []
}, sx = l.forwardRef((function(e, t) {
e = Object(zn.a)({
shouldRestoreFocus: !0
}, e);
var n = l.useRef()
, r = Eg(n, t);
!function(e, t) {
var n = e["aria-modal"];
l.useEffect((function() {
var e, r = ro();
if (n && r && t && t.current) {
var i = null === (e = t.current.parentElement) || void 0 === e ? void 0 : e.parentElement
, o = lx(i, null == i ? void 0 : i.parentElement);
if ((null == i ? void 0 : i.parentElement) !== r.body) {
var a = function(e, t) {
for (var n = e; n && n.parentElement !== t.body; )
n = n.parentElement;
return n
}(t.current, r);
o.concat(lx(a, r.body))
}
return (o = o.filter((function(e) {
return "TEMPLATE" !== e.tagName && "SCRIPT" !== e.tagName && "STYLE" !== e.tagName && !e.hasAttribute("aria-hidden")
}
))).forEach((function(e) {
return e.setAttribute("aria-hidden", "true")
}
)),
function() {
return o.forEach((function(e) {
return e.removeAttribute("aria-hidden")
}
))
}
}
}
), [n, t])
}(e, n),
function(e, t) {
var n = e.onRestoreFocus
, r = void 0 === n ? ox : n
, i = l.useRef()
, o = l.useRef(!1);
l.useEffect((function() {
return i.current = ro().activeElement,
function(e) {
var t = ro(e)
, n = t && t.activeElement;
return !(!n || !Yv(e, n))
}(t.current) && (o.current = !0),
function() {
var e;
null == r || r({
originalElement: i.current,
containsFocus: o.current,
documentContainsFocus: (null === (e = ro()) || void 0 === e ? void 0 : e.hasFocus()) || !1
}),
i.current = void 0
}
}
), []),
tx(t, "focus", l.useCallback((function() {
o.current = !0
}
), []), !0),
tx(t, "blur", l.useCallback((function(e) {
t.current && e.relatedTarget && !t.current.contains(e.relatedTarget) && (o.current = !1)
}
), []), !0)
}(e, n);
var i = e.role
, o = e.className
, a = e.ariaLabel
, s = e.ariaLabelledBy
, c = e.ariaDescribedBy
, u = e.style
, d = e.children
, p = e.onDismiss
, h = function(e, t) {
var n = ex()
, r = l.useState(!1)
, i = r[0]
, o = r[1];
return l.useEffect((function() {
return n.requestAnimationFrame((function() {
var n;
if (!e.style || !e.style.overflowY) {
var r = !1;
if (t && t.current && (null === (n = t.current) || void 0 === n ? void 0 : n.firstElementChild)) {
var a = t.current.clientHeight
, l = t.current.firstElementChild.clientHeight;
a > 0 && l > a && (r = l - a > 1)
}
i !== r && o(r)
}
}
)),
function() {
return n.dispose()
}
}
)),
i
}(e, n)
, f = l.useCallback((function(e) {
e.which === dp && p && (p(e),
e.preventDefault(),
e.stopPropagation())
}
), [p]);
return tx(rx(), "keydown", f),
l.createElement("div", Object(zn.a)({
ref: r
}, rp(e, np), {
className: o,
role: i,
"aria-label": a,
"aria-labelledby": s,
"aria-describedby": c,
onKeyDown: f,
style: Object(zn.a)({
overflowY: h ? "scroll" : void 0,
outline: "none"
}, u)
}), d)
}
));
function cx(e, t) {
var n = l.useRef()
, r = l.useRef(null)
, i = rx();
if (!e || e !== n.current || "string" == typeof e) {
var o = null == t ? void 0 : t.current;
if (e)
if ("string" == typeof e) {
var a = ro(o);
r.current = a ? a.querySelector(e) : null
} else
r.current = "stopPropagation"in e || "getBoundingClientRect"in e ? e : "current"in e ? e.current : e;
n.current = e
}
return [r, i]
}
var ux = ((ax = {})[sy.top] = di.slideUpIn10,
ax[sy.bottom] = di.slideDownIn10,
ax[sy.left] = di.slideLeftIn10,
ax[sy.right] = di.slideRightIn10,
ax)
, dx = {
opacity: 0,
filter: "opacity(0)",
pointerEvents: "none"
}
, px = ["role", "aria-roledescription"]
, hx = {
preventDismissOnLostFocus: !1,
preventDismissOnScroll: !1,
preventDismissOnResize: !1,
isBeakVisible: !0,
beakWidth: 16,
gapSpace: 0,
minPagePadding: 8,
directionalHint: Vg
}
, fx = Sg({
disableCaching: !0
});
function bx(e, t, n, r, i) {
var o = l.useState()
, a = o[0]
, s = o[1]
, c = l.useRef(0)
, u = l.useRef()
, d = ex()
, p = e.hidden
, h = e.target
, f = e.finalHeight
, b = e.calloutMaxHeight
, g = e.onPositioned
, m = e.directionalHint;
return l.useEffect((function() {
if (!p) {
var o = d.requestAnimationFrame((function() {
var o, l, d, p;
if (t.current && n) {
var m = Object(zn.a)(Object(zn.a)({}, e), {
target: r.current,
bounds: i()
})
, v = n.cloneNode(!0);
v.style.maxHeight = b ? "" + b : "",
v.style.visibility = "hidden",
null === (o = n.parentElement) || void 0 === o || o.appendChild(v);
var y = u.current === h ? a : void 0
, x = f ? function(e, t, n, r) {
return function(e, t, n, r) {
return Zy(e, t, n, r, !0)
}(e, t, n, r)
}(m, t.current, v, y) : function(e, t, n, r) {
return Zy(e, t, n, r)
}(m, t.current, v, y);
null === (l = n.parentElement) || void 0 === l || l.removeChild(v),
!a && x || a && x && (p = x,
!vx((d = a).elementPosition, p.elementPosition) || !vx(d.beakPosition.elementPosition, p.beakPosition.elementPosition)) && c.current < 5 ? (c.current++,
s(x)) : c.current > 0 && (c.current = 0,
null == g || g(a))
}
}
), n);
return u.current = h,
function() {
d.cancelAnimationFrame(o),
u.current = void 0
}
}
s(void 0),
c.current = 0
}
), [p, m, d, n, b, t, r, f, i, g, a, e, h]),
a
}
var gx = l.memo(l.forwardRef((function(e, t) {
var n = hy(hx, e)
, r = n.styles
, i = n.style
, o = n.ariaLabel
, a = n.ariaDescribedBy
, s = n.ariaLabelledBy
, c = n.className
, u = n.isBeakVisible
, d = n.children
, p = n.beakWidth
, h = n.calloutWidth
, f = n.calloutMaxWidth
, b = n.calloutMinWidth
, g = n.doNotLayer
, m = n.finalHeight
, v = n.hideOverflow
, y = void 0 === v ? !!m : v
, x = n.backgroundColor
, O = n.calloutMaxHeight
, j = n.onScroll
, k = n.shouldRestoreFocus
, w = void 0 === k || k
, C = n.target
, _ = n.hidden
, M = n.onLayerMounted
, S = l.useRef(null)
, A = l.useState(null)
, T = A[0]
, E = A[1]
, I = l.useCallback((function(e) {
E(e)
}
), [])
, N = Eg(S, t)
, z = cx(n.target, {
current: T
})
, D = z[0]
, L = z[1]
, R = function(e, t, n) {
var r = e.bounds
, i = e.minPagePadding
, o = void 0 === i ? hx.minPagePadding : i
, a = e.target
, s = l.useState(!1)
, c = s[0]
, u = s[1]
, d = l.useRef()
, p = l.useCallback((function() {
if (!d.current || c) {
var e = "function" == typeof r ? n ? r(a, n) : void 0 : r;
!e && n && (e = function(e, t) {
return function(e, t) {
var n = void 0;
if (t.getWindowSegments && (n = t.getWindowSegments()),
void 0 === n || n.length <= 1)
return {
top: 0,
left: 0,
right: t.innerWidth,
bottom: t.innerHeight,
width: t.innerWidth,
height: t.innerHeight
};
var r = 0
, i = 0;
if (null !== e && e.getBoundingClientRect) {
var o = e.getBoundingClientRect();
r = (o.left + o.right) / 2,
i = (o.top + o.bottom) / 2
} else
null !== e && (r = e.left || e.x,
i = e.top || e.y);
for (var a = {
top: 0,
left: 0,
right: 0,
bottom: 0,
width: 0,
height: 0
}, l = 0, s = n; l < s.length; l++) {
var c = s[l];
r && c.left <= r && c.right >= r && i && c.top <= i && c.bottom >= i && (a = {
top: c.top,
left: c.left,
right: c.right,
bottom: c.bottom,
width: c.width,
height: c.height
})
}
return a
}(e, t)
}(t.current, n),
e = {
top: e.top + o,
left: e.left + o,
right: e.right - o,
bottom: e.bottom - o,
width: e.width - 2 * o,
height: e.height - 2 * o
}),
d.current = e,
c && u(!1)
}
return d.current
}
), [r, o, a, t, n, c])
, h = ex();
return tx(n, "resize", h.debounce((function() {
u(!0)
}
), 500, {
leading: !0
})),
p
}(n, D, L)
, P = bx(n, S, T, D, R)
, B = function(e, t, n) {
var r, i = e.calloutMaxHeight, o = e.finalHeight, a = e.directionalHint, s = e.directionalHintFixed, c = e.hidden, u = l.useState(), d = u[0], p = u[1], h = null !== (r = null == n ? void 0 : n.elementPosition) && void 0 !== r ? r : {}, f = h.top, b = h.bottom;
return l.useEffect((function() {
var e, n = null !== (e = t()) && void 0 !== e ? e : {}, r = n.top, o = n.bottom;
i || c ? p(i || void 0) : "number" == typeof f && o ? p(o - f) : "number" == typeof b && "number" == typeof r && o && p(o - r - b)
}
), [b, i, o, a, s, t, c, n, f]),
d
}(n, R, P)
, F = function(e, t, n, r, i) {
var o = e.hidden
, a = e.onDismiss
, s = e.preventDismissOnScroll
, c = e.preventDismissOnResize
, u = e.preventDismissOnLostFocus
, d = e.dismissOnTargetClick
, p = e.shouldDismissOnWindowFocus
, h = e.preventDismissOnEvent
, f = l.useRef(!1)
, b = ex()
, g = $y([function() {
f.current = !0
}
, function() {
f.current = !1
}
])
, m = !!t;
return l.useEffect((function() {
var e = function(e) {
m && !s && g(e)
}
, t = function(e) {
c || h && h(e) || null == a || a(e)
}
, l = function(e) {
u || g(e)
}
, g = function(e) {
var t = e.target
, o = n.current && !Yv(n.current, t);
if (o && f.current)
f.current = !1;
else if (!r.current && o || e.target !== i && o && (!r.current || "stopPropagation"in r.current || d || t !== r.current && !Yv(r.current, t))) {
if (h && h(e))
return;
null == a || a(e)
}
}
, v = function(e) {
p && ((!h || h(e)) && (h || u) || (null == i ? void 0 : i.document.hasFocus()) || null !== e.relatedTarget || null == a || a(e))
}
, y = new Promise((function(n) {
b.setTimeout((function() {
if (!o && i) {
var r = [vy(i, "scroll", e, !0), vy(i, "resize", t, !0), vy(i.document.documentElement, "focus", l, !0), vy(i.document.documentElement, "click", l, !0), vy(i, "blur", v, !0)];
n((function() {
r.forEach((function(e) {
return e()
}
))
}
))
}
}
), 0)
}
));
return function() {
y.then((function(e) {
return e()
}
))
}
}
), [o, b, n, r, i, a, p, d, u, c, s, m, h]),
g
}(n, P, S, D, L)
, V = F[0]
, W = F[1]
, q = (null == P ? void 0 : P.elementPosition.top) && (null == P ? void 0 : P.elementPosition.bottom)
, H = Object(zn.a)(Object(zn.a)({}, null == P ? void 0 : P.elementPosition), {
maxHeight: B
});
if (q && (H.bottom = void 0),
function(e, t, n) {
var r = e.hidden
, i = e.setInitialFocus
, o = ex()
, a = !!t;
l.useEffect((function() {
if (!r && i && a && n) {
var e = o.requestAnimationFrame((function() {
return function(e) {
var t = $v(e, e, !0, !1, !1, !0);
return !!t && (ay(t),
!0)
}(n)
}
), n);
return function() {
return o.cancelAnimationFrame(e)
}
}
}
), [r, a, o, n, i])
}(n, P, T),
l.useEffect((function() {
_ || null == M || M()
}
), [_]),
!L)
return null;
var U = y
, X = u && !!C
, G = fx(r, {
theme: n.theme,
className: c,
overflowYHidden: U,
calloutWidth: h,
positions: P,
beakWidth: p,
backgroundColor: x,
calloutMaxWidth: f,
calloutMinWidth: b,
doNotLayer: g
})
, K = Object(zn.a)(Object(zn.a)({
maxHeight: O || "100%"
}, i), U && {
overflowY: "hidden"
})
, Y = n.hidden ? {
visibility: "hidden"
} : void 0;
return l.createElement("div", {
ref: N,
className: G.container,
style: Y
}, l.createElement("div", Object(zn.a)({}, rp(n, np, px), {
className: ip(G.root, P && P.targetEdge && ux[P.targetEdge]),
style: P ? Object(zn.a)({}, H) : dx,
tabIndex: -1,
ref: I
}), X && l.createElement("div", {
className: G.beak,
style: mx(P)
}), X && l.createElement("div", {
className: G.beakCurtain
}), l.createElement(sx, Object(zn.a)({}, rp(n, px), {
ariaDescribedBy: a,
ariaLabel: o,
ariaLabelledBy: s,
className: G.calloutMain,
onDismiss: n.onDismiss,
onMouseDown: V,
onMouseUp: W,
onRestoreFocus: n.onRestoreFocus,
onScroll: j,
shouldRestoreFocus: w,
style: K
}), d)))
}
)), (function(e, t) {
return !(t.shouldUpdateWhenHidden || !e.hidden || !t.hidden) || eg(e, t)
}
));
function mx(e) {
var t, n, r = Object(zn.a)(Object(zn.a)({}, null === (t = null == e ? void 0 : e.beakPosition) || void 0 === t ? void 0 : t.elementPosition), {
display: (null === (n = null == e ? void 0 : e.beakPosition) || void 0 === n ? void 0 : n.hideBeak) ? "none" : void 0
});
return r.top || r.bottom || r.left || r.right || (r.left = 0,
r.top = 0),
r
}
function vx(e, t) {
for (var n in t)
if (t.hasOwnProperty(n)) {
var r = e[n]
, i = t[n];
if (void 0 === r || void 0 === i)
return !1;
if (r.toFixed(2) !== i.toFixed(2))
return !1
}
return !0
}
function yx(e) {
return {
height: e,
width: e
}
}
gx.displayName = "CalloutContentBase";
var xx = {
container: "ms-Callout-container",
root: "ms-Callout",
beak: "ms-Callout-beak",
beakCurtain: "ms-Callout-beakCurtain",
calloutMain: "ms-Callout-main"
}
, Ox = jg(gx, (function(e) {
var t, n = e.theme, r = e.className, i = e.overflowYHidden, o = e.calloutWidth, a = e.beakWidth, l = e.backgroundColor, s = e.calloutMaxWidth, c = e.calloutMinWidth, u = e.doNotLayer, d = Vi(xx, n), p = n.semanticColors, h = n.effects;
return {
container: [d.container, {
position: "relative"
}],
root: [d.root, n.fonts.medium, {
position: "absolute",
display: "flex",
zIndex: u ? ki.Layer : void 0,
boxSizing: "border-box",
borderRadius: h.roundedCorner2,
boxShadow: h.elevation16,
selectors: (t = {},
t[vi] = {
borderWidth: 1,
borderStyle: "solid",
borderColor: "WindowText"
},
t)
}, {
selectors: {
"&::-moz-focus-inner": {
border: 0
},
"&": {
outline: "transparent"
}
}
}, r, !!o && {
width: o
}, !!s && {
maxWidth: s
}, !!c && {
minWidth: c
}],
beak: [d.beak, {
position: "absolute",
backgroundColor: p.menuBackground,
boxShadow: "inherit",
border: "inherit",
boxSizing: "border-box",
transform: "rotate(45deg)"
}, yx(a), l && {
backgroundColor: l
}],
beakCurtain: [d.beakCurtain, {
position: "absolute",
top: 0,
right: 0,
bottom: 0,
left: 0,
backgroundColor: p.menuBackground,
borderRadius: h.roundedCorner2
}],
calloutMain: [d.calloutMain, {
backgroundColor: p.menuBackground,
overflowX: "hidden",
overflowY: "auto",
position: "relative",
width: "100%",
borderRadius: h.roundedCorner2
}, i && {
overflowY: "hidden"
}, l && {
backgroundColor: l
}]
}
}
), void 0, {
scope: "CalloutContent"
});
function jx(e, t) {
void 0 === e && (e = {});
var n = wx(t) ? t : function(e) {
return function(t) {
return e ? Object(zn.a)(Object(zn.a)({}, t), e) : t
}
}(t);
return n(e)
}
function kx(e, t) {
return void 0 === e && (e = {}),
(wx(t) ? t : function(e) {
return void 0 === e && (e = {}),
function(t) {
var n = Object(zn.a)({}, t);
for (var r in e)
e.hasOwnProperty(r) && (n[r] = Object(zn.a)(Object(zn.a)({}, t[r]), e[r]));
return n
}
}(t))(e)
}
function wx(e) {
return "function" == typeof e
}
var Cx = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._onCustomizationChange = function() {
return t.forceUpdate()
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
Yi.observe(this._onCustomizationChange)
}
,
t.prototype.componentWillUnmount = function() {
Yi.unobserve(this._onCustomizationChange)
}
,
t.prototype.render = function() {
var e = this
, t = this.props.contextTransform;
return l.createElement(sp.Consumer, null, (function(n) {
var r = function(e, t) {
var n = (t || {}).customizations
, r = void 0 === n ? {
settings: {},
scopedSettings: {}
} : n;
return {
customizations: {
settings: jx(r.settings, e.settings),
scopedSettings: kx(r.scopedSettings, e.scopedSettings),
inCustomizerContext: !0
}
}
}(e.props, n);
return t && (r = t(r)),
l.createElement(sp.Provider, {
value: r
}, e.props.children)
}
))
}
,
t
}(l.Component)
, _x = Sg()
, Mx = Li((function(e, t) {
return bo(Object(zn.a)(Object(zn.a)({}, e), {
rtl: t
}))
}
))
, Sx = l.forwardRef((function(e, t) {
var n = e.className
, r = e.theme
, i = e.applyTheme
, o = e.applyThemeToBody
, a = e.styles
, s = _x(a, {
theme: r,
applyTheme: i,
className: n
})
, c = l.useRef(null);
return function(e, t, n) {
var r = t.bodyThemed;
l.useEffect((function() {
if (e) {
var t = ro(n.current);
if (t)
return t.body.classList.add(r),
function() {
t.body.classList.remove(r)
}
}
}
), [r, e, n])
}(o, s, c),
fg(c),
l.createElement(l.Fragment, null, function(e, t, n, r) {
var i = t.root
, o = e.as
, a = void 0 === o ? "div" : o
, s = e.dir
, c = e.theme
, u = rp(e, np, ["dir"])
, d = function(e) {
var t = e.theme
, n = e.dir
, r = vp(t) ? "rtl" : "ltr"
, i = vp() ? "rtl" : "ltr"
, o = n || r;
return {
rootDir: o !== r || o !== i ? o : n,
needsTheme: o !== r
}
}(e)
, p = d.rootDir
, h = d.needsTheme
, f = l.createElement(a, Object(zn.a)({
dir: p
}, u, {
className: i,
ref: Eg(n, r)
}));
return h && (f = l.createElement(Cx, {
settings: {
theme: Mx(c, "rtl" === s)
}
}, f)),
f
}(e, s, c, t))
}
));
Sx.displayName = "FabricBase";
var Ax, Tx = {
fontFamily: "inherit"
}, Ex = {
root: "ms-Fabric",
bodyThemed: "ms-Fabric-bodyThemed"
}, Ix = jg(Sx, (function(e) {
var t = e.theme
, n = e.className
, r = e.applyTheme;
return {
root: [Vi(Ex, t).root, t.fonts.medium, {
color: t.palette.neutralPrimary,
selectors: {
"& button": Tx,
"& input": Tx,
"& textarea": Tx
}
}, r && {
color: t.semanticColors.bodyText,
backgroundColor: t.semanticColors.bodyBackground
}, n],
bodyThemed: [{
backgroundColor: t.semanticColors.bodyBackground
}]
}
}
), void 0, {
scope: "Fabric"
}), Nx = {}, zx = Sg(), Dx = l.forwardRef((function(e, t) {
var n = l.useRef(null)
, r = Eg(n, t)
, i = l.useRef()
, o = l.useState(!1)
, a = o[0]
, s = o[1]
, u = ix()
, d = e.eventBubblingEnabled
, p = e.styles
, h = e.theme
, f = e.className
, b = e.children
, g = e.hostId
, m = e.onLayerDidMount
, v = void 0 === m ? function() {}
: m
, y = e.onLayerMounted
, x = void 0 === y ? function() {}
: y
, O = e.onLayerWillUnmount
, j = e.insertFirst
, k = zx(p, {
theme: h,
className: f,
isNotHost: !g
})
, w = function() {
null == O || O();
var e = i.current;
i.current = void 0,
e && e.parentNode && e.parentNode.removeChild(e)
}
, C = function() {
var e = function() {
if (u)
return g ? u.getElementById(g) : u.body
}();
if (u && e) {
w();
var t = u.createElement("div");
t.className = k.root,
t.setAttribute(Hb, "true"),
function(e, t) {
var n = e
, r = t;
n._virtual || (n._virtual = {
children: []
});
var i = n._virtual.parent;
if (i && i !== t) {
var o = i._virtual.children.indexOf(n);
o > -1 && i._virtual.children.splice(o, 1)
}
n._virtual.parent = r || void 0,
r && (r._virtual || (r._virtual = {
children: []
}),
r._virtual.children.push(n))
}(t, n.current),
j ? e.insertBefore(t, e.firstChild) : e.appendChild(t),
i.current = t,
s(!0)
}
};
return l.useLayoutEffect((function() {
return C(),
g && function(e, t) {
Nx[e] || (Nx[e] = []),
Nx[e].push(t)
}(g, C),
function() {
w(),
g && function(e, t) {
if (Nx[e]) {
var n = Nx[e].indexOf(t);
n >= 0 && (Nx[e].splice(n, 1),
0 === Nx[e].length && delete Nx[e])
}
}(g, C)
}
}
), [g]),
l.useEffect((function() {
i.current && a && (null == x || x(),
null == v || v(),
s(!1))
}
), [a, x, v]),
l.createElement("span", {
className: "ms-layer",
ref: r
}, i.current && c.createPortal(l.createElement(Ix, Object(zn.a)({}, !d && (Ax || (Ax = {},
["onClick", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOver", "onMouseOut", "onMouseUp", "onTouchMove", "onTouchStart", "onTouchCancel", "onTouchEnd", "onKeyDown", "onKeyPress", "onKeyUp", "onFocus", "onBlur", "onChange", "onInput", "onInvalid", "onSubmit"].forEach((function(e) {
return Ax[e] = Lx
}
))),
Ax), {
className: k.content
}), b), i.current))
}
));
Dx.displayName = "LayerBase";
var Lx = function(e) {
e.eventPhase === Event.BUBBLING_PHASE && "mouseenter" !== e.type && "mouseleave" !== e.type && "touchstart" !== e.type && "touchend" !== e.type && e.stopPropagation()
}
, Rx = {
root: "ms-Layer",
rootNoHost: "ms-Layer--fixed",
content: "ms-Layer-content"
}
, Px = jg(Dx, (function(e) {
var t = e.className
, n = e.isNotHost
, r = e.theme
, i = Vi(Rx, r);
return {
root: [i.root, r.fonts.medium, n && [i.rootNoHost, {
position: "fixed",
zIndex: ki.Layer,
top: 0,
left: 0,
bottom: 0,
right: 0,
visibility: "hidden"
}], t],
content: [i.content, {
visibility: "visible"
}]
}
}
), void 0, {
scope: "Layer",
fields: ["hostId", "theme", "styles"]
})
, Bx = l.forwardRef((function(e, t) {
var n = e.layerProps
, r = e.doNotLayer
, i = Object(zn.d)(e, ["layerProps", "doNotLayer"])
, o = l.createElement(Ox, Object(zn.a)({}, i, {
doNotLayer: r,
ref: t
}));
return r ? o : l.createElement(Px, Object(zn.a)({}, n), o)
}
));
Bx.displayName = "Callout";
var Fx, Vx = function(e) {
var t = e.item
, n = e.classNames
, r = t.iconProps;
return l.createElement(Pg, Object(zn.a)({}, r, {
className: n.icon
}))
}, Wx = function(e) {
var t = e.item;
return e.hasIcons ? t.onRenderIcon ? t.onRenderIcon(e, Vx) : Vx(e) : null
}, qx = function(e) {
var t = e.onCheckmarkClick
, n = e.item
, r = e.classNames
, i = fy(n);
return t ? l.createElement(Pg, {
iconName: !1 !== n.canCheck && i ? "CheckMark" : "",
className: r.checkmarkIcon,
onClick: function(e) {
return t(n, e)
}
}) : null
}, Hx = function(e) {
var t = e.item
, n = e.classNames;
return t.text || t.name ? l.createElement("span", {
className: n.label
}, t.text || t.name) : null
}, Ux = function(e) {
var t = e.item
, n = e.classNames;
return t.secondaryText ? l.createElement("span", {
className: n.secondaryText
}, t.secondaryText) : null
}, Xx = function(e) {
var t = e.item
, n = e.classNames
, r = e.theme;
return by(t) ? l.createElement(Pg, Object(zn.a)({
iconName: vp(r) ? "ChevronLeft" : "ChevronRight"
}, t.submenuIconProps, {
className: n.subMenuIcon
})) : null
}, Gx = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n.openSubMenu = function() {
var e = n.props
, t = e.item
, r = e.openSubMenu
, i = e.getSubmenuTarget;
if (i) {
var o = i();
by(t) && r && o && r(t, o)
}
}
,
n.dismissSubMenu = function() {
var e = n.props
, t = e.item
, r = e.dismissSubMenu;
by(t) && r && r()
}
,
n.dismissMenu = function(e) {
var t = n.props.dismissMenu;
t && t(void 0, e)
}
,
Kb(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.item
, n = e.classNames
, r = t.onRenderContent || this._renderLayout;
return l.createElement("div", {
className: t.split ? n.linkContentMenu : n.linkContent
}, r(this.props, {
renderCheckMarkIcon: qx,
renderItemIcon: Wx,
renderItemName: Hx,
renderSecondaryText: Ux,
renderSubMenuIcon: Xx
}))
}
,
t.prototype._renderLayout = function(e, t) {
return l.createElement(l.Fragment, null, t.renderCheckMarkIcon(e), t.renderItemIcon(e), t.renderItemName(e), t.renderSecondaryText(e), t.renderSubMenuIcon(e))
}
,
t
}(l.Component), Kx = Li((function(e) {
return Do({
wrapper: {
display: "inline-flex",
height: "100%",
alignItems: "center"
},
divider: {
width: 1,
height: "100%",
backgroundColor: e.palette.neutralTertiaryAlt
}
})
}
)), Yx = 36, Qx = yi(0, 639), Jx = Li((function() {
var e;
return {
selectors: (e = {},
e[vi] = Object(zn.a)({
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
e)
}
}
)), Zx = Li((function(e) {
var t, n, r, i, o, a, l, s = e.semanticColors, c = e.fonts, u = e.palette, d = s.menuItemBackgroundHovered, p = s.menuItemTextHovered, h = s.menuItemBackgroundPressed, f = s.bodyDivider;
return No({
item: [c.medium, {
color: s.bodyText,
position: "relative",
boxSizing: "border-box"
}],
divider: {
display: "block",
height: "1px",
backgroundColor: f,
position: "relative"
},
root: [Mi(e), c.medium, {
color: s.bodyText,
backgroundColor: "transparent",
border: "none",
width: "100%",
height: Yx,
lineHeight: Yx,
display: "block",
cursor: "pointer",
padding: "0px 8px 0 4px",
textAlign: "left"
}],
rootDisabled: {
color: s.disabledBodyText,
cursor: "default",
pointerEvents: "none",
selectors: (t = {},
t[vi] = Object(zn.a)({
color: "GrayText",
opacity: 1
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
},
rootHovered: Object(zn.a)({
backgroundColor: d,
color: p,
selectors: {
".ms-ContextualMenu-icon": {
color: u.themeDarkAlt
},
".ms-ContextualMenu-submenuIcon": {
color: u.neutralPrimary
}
}
}, Jx()),
rootFocused: Object(zn.a)({
backgroundColor: u.white
}, Jx()),
rootChecked: Object(zn.a)({
selectors: {
".ms-ContextualMenu-checkmarkIcon": {
color: u.neutralPrimary
}
}
}, Jx()),
rootPressed: Object(zn.a)({
backgroundColor: h,
selectors: {
".ms-ContextualMenu-icon": {
color: u.themeDark
},
".ms-ContextualMenu-submenuIcon": {
color: u.neutralPrimary
}
}
}, Jx()),
rootExpanded: Object(zn.a)({
backgroundColor: h,
color: s.bodyTextChecked
}, Jx()),
linkContent: {
whiteSpace: "nowrap",
height: "inherit",
display: "flex",
alignItems: "center",
maxWidth: "100%"
},
anchorLink: {
padding: "0px 8px 0 4px",
textRendering: "auto",
color: "inherit",
letterSpacing: "normal",
wordSpacing: "normal",
textTransform: "none",
textIndent: "0px",
textShadow: "none",
textDecoration: "none",
boxSizing: "border-box"
},
label: {
margin: "0 4px",
verticalAlign: "middle",
display: "inline-block",
flexGrow: "1",
textOverflow: "ellipsis",
overflow: "hidden",
whiteSpace: "nowrap"
},
secondaryText: {
color: e.palette.neutralSecondary,
paddingLeft: "20px",
textAlign: "right"
},
icon: {
display: "inline-block",
minHeight: "1px",
maxHeight: Yx,
fontSize: gi.medium,
width: gi.medium,
margin: "0 4px",
verticalAlign: "middle",
flexShrink: "0",
selectors: (n = {},
n[Qx] = {
fontSize: gi.large,
width: gi.large
},
n)
},
iconColor: {
color: s.menuIcon,
selectors: (r = {},
r[vi] = {
color: "inherit"
},
r["$root:hover &"] = {
selectors: (i = {},
i[vi] = {
color: "HighlightText"
},
i)
},
r["$root:focus &"] = {
selectors: (o = {},
o[vi] = {
color: "HighlightText"
},
o)
},
r)
},
iconDisabled: {
color: s.disabledBodyText
},
checkmarkIcon: {
color: s.bodySubtext,
selectors: (a = {},
a[vi] = {
color: "HighlightText"
},
a)
},
subMenuIcon: {
height: Yx,
lineHeight: Yx,
color: u.neutralSecondary,
textAlign: "center",
display: "inline-block",
verticalAlign: "middle",
flexShrink: "0",
fontSize: gi.small,
selectors: (l = {
":hover": {
color: u.neutralPrimary
},
":active": {
color: u.neutralPrimary
}
},
l[Qx] = {
fontSize: gi.medium
},
l[vi] = {
color: "HighlightText"
},
l)
},
splitButtonFlexContainer: [Mi(e), {
display: "flex",
height: Yx,
flexWrap: "nowrap",
justifyContent: "center",
alignItems: "flex-start"
}]
})
}
)), $x = yi(0, 639), eO = Li((function(e) {
var t;
return Do(Kx(e), {
wrapper: {
position: "absolute",
right: 28,
selectors: (t = {},
t[$x] = {
right: 32
},
t)
},
divider: {
height: 16,
width: 1
}
})
}
)), tO = {
item: "ms-ContextualMenu-item",
divider: "ms-ContextualMenu-divider",
root: "ms-ContextualMenu-link",
isChecked: "is-checked",
isExpanded: "is-expanded",
isDisabled: "is-disabled",
linkContent: "ms-ContextualMenu-linkContent",
linkContentMenu: "ms-ContextualMenu-linkContent",
icon: "ms-ContextualMenu-icon",
iconColor: "ms-ContextualMenu-iconColor",
checkmarkIcon: "ms-ContextualMenu-checkmarkIcon",
subMenuIcon: "ms-ContextualMenu-submenuIcon",
label: "ms-ContextualMenu-itemText",
secondaryText: "ms-ContextualMenu-secondaryText",
splitMenu: "ms-ContextualMenu-splitMenu",
screenReaderText: "ms-ContextualMenu-screenReaderText"
}, nO = Li((function(e, t, n, r, i, o, a, l, s, c, u, d) {
var p, h, f, b, g = Zx(e), m = Vi(tO, e);
return Do({
item: [m.item, g.item, a],
divider: [m.divider, g.divider, l],
root: [m.root, g.root, r && [m.isChecked, g.rootChecked], i && g.anchorLink, n && [m.isExpanded, g.rootExpanded], t && [m.isDisabled, g.rootDisabled], !t && !n && [{
selectors: (p = {
":hover": g.rootHovered,
":active": g.rootPressed
},
p[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"] = g.rootFocused,
p[".ms-Fabric--isFocusVisible &:hover"] = {
background: "inherit;"
},
p)
}], d],
splitPrimary: [g.root, {
width: "calc(100% - 28px)"
}, r && ["is-checked", g.rootChecked], (t || u) && ["is-disabled", g.rootDisabled], !(t || u) && !r && [{
selectors: (h = {
":hover": g.rootHovered
},
h[":hover ~ ." + m.splitMenu] = g.rootHovered,
h[":active"] = g.rootPressed,
h[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"] = g.rootFocused,
h[".ms-Fabric--isFocusVisible &:hover"] = {
background: "inherit;"
},
h)
}]],
splitMenu: [m.splitMenu, g.root, {
flexBasis: "0",
padding: "0 8px",
minWidth: "28px"
}, n && ["is-expanded", g.rootExpanded], t && ["is-disabled", g.rootDisabled], !t && !n && [{
selectors: (f = {
":hover": g.rootHovered,
":active": g.rootPressed
},
f[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"] = g.rootFocused,
f[".ms-Fabric--isFocusVisible &:hover"] = {
background: "inherit;"
},
f)
}]],
anchorLink: g.anchorLink,
linkContent: [m.linkContent, g.linkContent],
linkContentMenu: [m.linkContentMenu, g.linkContent, {
justifyContent: "center"
}],
icon: [m.icon, o && g.iconColor, g.icon, s, t && [m.isDisabled, g.iconDisabled]],
iconColor: g.iconColor,
checkmarkIcon: [m.checkmarkIcon, o && g.checkmarkIcon, g.icon, s],
subMenuIcon: [m.subMenuIcon, g.subMenuIcon, c, n && {
color: e.palette.neutralPrimary
}, t && [g.iconDisabled]],
label: [m.label, g.label],
secondaryText: [m.secondaryText, g.secondaryText],
splitContainer: [g.splitButtonFlexContainer, !t && !r && [{
selectors: (b = {},
b[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"] = g.rootFocused,
b)
}]],
screenReaderText: [m.screenReaderText, g.screenReaderText, Ai, {
visibility: "hidden"
}]
})
}
)), rO = function(e) {
var t = e.theme
, n = e.disabled
, r = e.expanded
, i = e.checked
, o = e.isAnchorLink
, a = e.knownIcon
, l = e.itemClassName
, s = e.dividerClassName
, c = e.iconClassName
, u = e.subMenuClassName
, d = e.primaryDisabled
, p = e.className;
return nO(t, n, r, i, o, a, l, s, c, u, d, p)
}, iO = jg(Gx, rO, void 0, {
scope: "ContextualMenuItem"
}), oO = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._onItemMouseEnter = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseEnter;
i && i(r, e, e.currentTarget)
}
,
n._onItemClick = function(e) {
var t = n.props
, r = t.item
, i = t.onItemClickBase;
i && i(r, e, e.currentTarget)
}
,
n._onItemMouseLeave = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseLeave;
i && i(r, e)
}
,
n._onItemKeyDown = function(e) {
var t = n.props
, r = t.item
, i = t.onItemKeyDown;
i && i(r, e)
}
,
n._onItemMouseMove = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseMove;
i && i(r, e, e.currentTarget)
}
,
n._getSubmenuTarget = function() {}
,
Kb(n),
n
}
return Object(zn.c)(t, e),
t.prototype.shouldComponentUpdate = function(e) {
return !eg(e, this.props)
}
,
t
}(l.Component);
function aO(e) {
var t = Object(l.useRef)();
return Object(l.useEffect)((function() {
t.current = e
}
)),
t.current
}
!function(e) {
e.KEYTIP_ADDED = "keytipAdded",
e.KEYTIP_REMOVED = "keytipRemoved",
e.KEYTIP_UPDATED = "keytipUpdated",
e.PERSISTED_KEYTIP_ADDED = "persistedKeytipAdded",
e.PERSISTED_KEYTIP_REMOVED = "persistedKeytipRemoved",
e.PERSISTED_KEYTIP_EXECUTE = "persistedKeytipExecute",
e.ENTER_KEYTIP_MODE = "enterKeytipMode",
e.EXIT_KEYTIP_MODE = "exitKeytipMode"
}(Fx || (Fx = {}));
var lO = function() {
function e() {
this.keytips = {},
this.persistedKeytips = {},
this.sequenceMapping = {},
this.inKeytipMode = !1,
this.shouldEnterKeytipMode = !0,
this.delayUpdatingKeytipChange = !1
}
return e.getInstance = function() {
return this._instance
}
,
e.prototype.init = function(e) {
this.delayUpdatingKeytipChange = e
}
,
e.prototype.register = function(e, t) {
void 0 === t && (t = !1);
var n = e;
t || (n = this.addParentOverflow(e),
this.sequenceMapping[n.keySequences.toString()] = n);
var r = this._getUniqueKtp(n);
if (t ? this.persistedKeytips[r.uniqueID] = r : this.keytips[r.uniqueID] = r,
this.inKeytipMode || !this.delayUpdatingKeytipChange) {
var i = t ? Fx.PERSISTED_KEYTIP_ADDED : Fx.KEYTIP_ADDED;
rg.raise(this, i, {
keytip: n,
uniqueID: r.uniqueID
})
}
return r.uniqueID
}
,
e.prototype.update = function(e, t) {
var n = this.addParentOverflow(e)
, r = this._getUniqueKtp(n, t)
, i = this.keytips[t];
i && (r.keytip.visible = i.keytip.visible,
this.keytips[t] = r,
delete this.sequenceMapping[i.keytip.keySequences.toString()],
this.sequenceMapping[r.keytip.keySequences.toString()] = r.keytip,
!this.inKeytipMode && this.delayUpdatingKeytipChange || rg.raise(this, Fx.KEYTIP_UPDATED, {
keytip: r.keytip,
uniqueID: r.uniqueID
}))
}
,
e.prototype.unregister = function(e, t, n) {
void 0 === n && (n = !1),
n ? delete this.persistedKeytips[t] : delete this.keytips[t],
!n && delete this.sequenceMapping[e.keySequences.toString()];
var r = n ? Fx.PERSISTED_KEYTIP_REMOVED : Fx.KEYTIP_REMOVED;
!this.inKeytipMode && this.delayUpdatingKeytipChange || rg.raise(this, r, {
keytip: e,
uniqueID: t
})
}
,
e.prototype.enterKeytipMode = function() {
rg.raise(this, Fx.ENTER_KEYTIP_MODE)
}
,
e.prototype.exitKeytipMode = function() {
rg.raise(this, Fx.EXIT_KEYTIP_MODE)
}
,
e.prototype.getKeytips = function() {
var e = this;
return Object.keys(this.keytips).map((function(t) {
return e.keytips[t].keytip
}
))
}
,
e.prototype.addParentOverflow = function(e) {
var t = Object(zn.e)([], e.keySequences);
if (t.pop(),
0 !== t.length) {
var n = this.sequenceMapping[t.toString()];
if (n && n.overflowSetSequence)
return Object(zn.a)(Object(zn.a)({}, e), {
overflowSetSequence: n.overflowSetSequence
})
}
return e
}
,
e.prototype.menuExecute = function(e, t) {
rg.raise(this, Fx.PERSISTED_KEYTIP_EXECUTE, {
overflowButtonSequences: e,
keytipSequences: t
})
}
,
e.prototype._getUniqueKtp = function(e, t) {
return void 0 === t && (t = lg()),
{
keytip: Object(zn.a)({}, e),
uniqueID: t
}
}
,
e._instance = new e,
e
}();
function sO(e) {
return e.reduce((function(e, t) {
return e + "-" + t.split("").join("-")
}
), "ktp")
}
var cO = function(e) {
var t, n = e.children, r = function(e) {
var t = l.useRef()
, n = e.keytipProps ? Object(zn.a)({
disabled: e.disabled
}, e.keytipProps) : void 0
, r = $y(lO.getInstance())
, i = aO(e);
l.useLayoutEffect((function() {
t.current && n && ((null == i ? void 0 : i.keytipProps) !== e.keytipProps || (null == i ? void 0 : i.disabled) !== e.disabled) && r.update(n, t.current)
}
)),
l.useLayoutEffect((function() {
return n && (t.current = r.register(n)),
function() {
n && r.unregister(n, t.current)
}
}
), []);
var o = {
ariaDescribedBy: void 0,
keytipId: void 0
};
return n && (o = function(e, t, n) {
var r = e.addParentOverflow(t)
, i = yg(n, function(e) {
var t = " ktp-layer-id";
return e.length ? t + " " + sO(e) : t
}(r.keySequences))
, o = Object(zn.e)([], r.keySequences);
return r.overflowSetSequence && (o = function(e, t) {
var n = t.length
, r = Object(zn.e)([], t).pop();
return function(e, t, n) {
var r = e.slice();
return r.splice(t, 0, n),
r
}(Object(zn.e)([], e), n - 1, r)
}(o, r.overflowSetSequence)),
{
ariaDescribedBy: i,
keytipId: sO(o)
}
}(r, n, e.ariaDescribedBy)),
o
}(Object(zn.d)(e, ["children"])), i = r.keytipId, o = r.ariaDescribedBy;
return n(((t = {})["data-ktp-target"] = i,
t["data-ktp-execute-target"] = i,
t["aria-describedby"] = o,
t))
}
, uO = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._anchor = l.createRef(),
t._getMemoizedMenuButtonKeytipProps = Li((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
t._getSubmenuTarget = function() {
return t._anchor.current ? t._anchor.current : void 0
}
,
t._onItemClick = function(e) {
var n = t.props
, r = n.item
, i = n.onItemClick;
i && i(r, e)
}
,
t._renderAriaDescription = function(e, n) {
return e ? l.createElement("span", {
id: t._ariaDescriptionId,
className: n
}, e) : null
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.item
, r = t.classNames
, i = t.index
, o = t.focusableElementIndex
, a = t.totalItemCount
, s = t.hasCheckmarks
, c = t.hasIcons
, u = t.contextualMenuItemAs
, d = void 0 === u ? iO : u
, p = t.expandedMenuItemKey
, h = t.onItemClick
, f = t.openSubMenu
, b = t.dismissSubMenu
, g = t.dismissMenu
, m = n.rel;
n.target && "_blank" === n.target.toLowerCase() && (m = m || "nofollow noopener noreferrer");
var v = by(n)
, y = rp(n, Vd)
, x = gy(n)
, O = n.itemProps
, j = n.ariaDescription
, k = n.keytipProps;
k && v && (k = this._getMemoizedMenuButtonKeytipProps(k)),
j && (this._ariaDescriptionId = lg());
var w = yg(n.ariaDescribedBy, j ? this._ariaDescriptionId : void 0, y["aria-describedby"])
, C = {
"aria-describedby": w
};
return l.createElement("div", null, l.createElement(cO, {
keytipProps: n.keytipProps,
ariaDescribedBy: w,
disabled: x
}, (function(t) {
return l.createElement("a", Object(zn.a)({}, C, y, t, {
ref: e._anchor,
href: n.href,
target: n.target,
rel: m,
className: r.root,
role: "menuitem",
"aria-haspopup": v || void 0,
"aria-expanded": v ? n.key === p : void 0,
"aria-posinset": o + 1,
"aria-setsize": a,
"aria-disabled": gy(n),
style: n.style,
onClick: e._onItemClick,
onMouseEnter: e._onItemMouseEnter,
onMouseLeave: e._onItemMouseLeave,
onMouseMove: e._onItemMouseMove,
onKeyDown: v ? e._onItemKeyDown : void 0
}), l.createElement(d, Object(zn.a)({
componentRef: n.componentRef,
item: n,
classNames: r,
index: i,
onCheckmarkClick: s && h ? h : void 0,
hasIcons: c,
openSubMenu: f,
dismissSubMenu: b,
dismissMenu: g,
getSubmenuTarget: e._getSubmenuTarget
}, O)), e._renderAriaDescription(j, r.screenReaderText))
}
)))
}
,
t
}(oO)
, dO = Sg()
, pO = l.forwardRef((function(e, t) {
var n = e.styles
, r = e.theme
, i = e.getClassNames
, o = e.className
, a = dO(n, {
theme: r,
getClassNames: i,
className: o
});
return l.createElement("span", {
className: a.wrapper,
ref: t
}, l.createElement("span", {
className: a.divider
}))
}
));
pO.displayName = "VerticalDividerBase";
var hO = jg(pO, (function(e) {
var t = e.theme
, n = e.getClassNames
, r = e.className;
if (!t)
throw new Error("Theme is undefined or null.");
if (n) {
var i = n(t);
return {
wrapper: [i.wrapper],
divider: [i.divider]
}
}
return {
wrapper: [{
display: "inline-flex",
height: "100%",
alignItems: "center"
}, r],
divider: [{
width: 1,
height: "100%",
backgroundColor: t.palette.neutralTertiaryAlt
}]
}
}
), void 0, {
scope: "VerticalDivider"
})
, fO = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._getMemoizedMenuButtonKeytipProps = Li((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
n._onItemKeyDown = function(e) {
var t = n.props
, r = t.item
, i = t.onItemKeyDown;
e.which === cp ? (n._executeItemClick(e),
e.preventDefault(),
e.stopPropagation()) : i && i(r, e)
}
,
n._getSubmenuTarget = function() {
return n._splitButton
}
,
n._renderAriaDescription = function(e, t) {
return e ? l.createElement("span", {
id: n._ariaDescriptionId,
className: t
}, e) : null
}
,
n._onItemMouseEnterPrimary = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseEnter;
i && i(Object(zn.a)(Object(zn.a)({}, r), {
subMenuProps: void 0,
items: void 0
}), e, n._splitButton)
}
,
n._onItemMouseEnterIcon = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseEnter;
i && i(r, e, n._splitButton)
}
,
n._onItemMouseMovePrimary = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseMove;
i && i(Object(zn.a)(Object(zn.a)({}, r), {
subMenuProps: void 0,
items: void 0
}), e, n._splitButton)
}
,
n._onItemMouseMoveIcon = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseMove;
i && i(r, e, n._splitButton)
}
,
n._onIconItemClick = function(e) {
var t = n.props
, r = t.item
, i = t.onItemClickBase;
i && i(r, e, n._splitButton ? n._splitButton : e.currentTarget)
}
,
n._executeItemClick = function(e) {
var t = n.props
, r = t.item
, i = t.executeItemClick
, o = t.onItemClick;
if (!r.disabled && !r.isDisabled)
return n._processingTouch && o ? o(r, e) : void (i && i(r, e))
}
,
n._onTouchStart = function(e) {
n._splitButton && !("onpointerdown"in n._splitButton) && n._handleTouchAndPointerEvent(e)
}
,
n._onPointerDown = function(e) {
"touch" === e.pointerType && (n._handleTouchAndPointerEvent(e),
e.preventDefault(),
e.stopImmediatePropagation())
}
,
n._async = new $b(n),
n._events = new rg(n),
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
this._splitButton && "onpointerdown"in this._splitButton && this._events.on(this._splitButton, "pointerdown", this._onPointerDown, !0)
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.item
, r = t.classNames
, i = t.index
, o = t.focusableElementIndex
, a = t.totalItemCount
, s = t.hasCheckmarks
, c = t.hasIcons
, u = t.onItemMouseLeave
, d = t.expandedMenuItemKey
, p = by(n)
, h = n.keytipProps;
h && (h = this._getMemoizedMenuButtonKeytipProps(h));
var f = n.ariaDescription;
return f && (this._ariaDescriptionId = lg()),
l.createElement(cO, {
keytipProps: h,
disabled: gy(n)
}, (function(t) {
return l.createElement("div", {
"data-ktp-target": t["data-ktp-target"],
ref: function(t) {
return e._splitButton = t
},
role: my(n),
"aria-label": n.ariaLabel,
className: r.splitContainer,
"aria-disabled": gy(n),
"aria-expanded": p ? n.key === d : void 0,
"aria-haspopup": !0,
"aria-describedby": yg(n.ariaDescribedBy, f ? e._ariaDescriptionId : void 0, t["aria-describedby"]),
"aria-checked": n.isChecked || n.checked,
"aria-posinset": o + 1,
"aria-setsize": a,
onMouseEnter: e._onItemMouseEnterPrimary,
onMouseLeave: u ? u.bind(e, Object(zn.a)(Object(zn.a)({}, n), {
subMenuProps: null,
items: null
})) : void 0,
onMouseMove: e._onItemMouseMovePrimary,
onKeyDown: e._onItemKeyDown,
onClick: e._executeItemClick,
onTouchStart: e._onTouchStart,
tabIndex: 0,
"data-is-focusable": !0,
"aria-roledescription": n["aria-roledescription"]
}, e._renderSplitPrimaryButton(n, r, i, s, c), e._renderSplitDivider(n), e._renderSplitIconButton(n, r, i, t), e._renderAriaDescription(f, r.screenReaderText))
}
))
}
,
t.prototype._renderSplitPrimaryButton = function(e, t, n, r, i) {
var o = this.props
, a = o.contextualMenuItemAs
, s = void 0 === a ? iO : a
, c = o.onItemClick
, u = {
key: e.key,
disabled: gy(e) || e.primaryDisabled,
name: e.name,
text: e.text || e.name,
secondaryText: e.secondaryText,
className: t.splitPrimary,
canCheck: e.canCheck,
isChecked: e.isChecked,
checked: e.checked,
iconProps: e.iconProps,
onRenderIcon: e.onRenderIcon,
data: e.data,
"data-is-focusable": !1
}
, d = e.itemProps;
return l.createElement("button", Object(zn.a)({}, rp(u, Wd)), l.createElement(s, Object(zn.a)({
"data-is-focusable": !1,
item: u,
classNames: t,
index: n,
onCheckmarkClick: r && c ? c : void 0,
hasIcons: i
}, d)))
}
,
t.prototype._renderSplitDivider = function(e) {
var t = e.getSplitButtonVerticalDividerClassNames || eO;
return l.createElement(hO, {
getClassNames: t
})
}
,
t.prototype._renderSplitIconButton = function(e, t, n, r) {
var i = this.props
, o = i.contextualMenuItemAs
, a = void 0 === o ? iO : o
, s = i.onItemMouseLeave
, c = i.onItemMouseDown
, u = i.openSubMenu
, d = i.dismissSubMenu
, p = i.dismissMenu
, h = {
onClick: this._onIconItemClick,
disabled: gy(e),
className: t.splitMenu,
subMenuProps: e.subMenuProps,
submenuIconProps: e.submenuIconProps,
split: !0,
key: e.key
}
, f = Object(zn.a)(Object(zn.a)({}, rp(h, Wd)), {
onMouseEnter: this._onItemMouseEnterIcon,
onMouseLeave: s ? s.bind(this, e) : void 0,
onMouseDown: function(t) {
return c ? c(e, t) : void 0
},
onMouseMove: this._onItemMouseMoveIcon,
"data-is-focusable": !1,
"data-ktp-execute-target": r["data-ktp-execute-target"],
"aria-hidden": !0
})
, b = e.itemProps;
return l.createElement("button", Object(zn.a)({}, f), l.createElement(a, Object(zn.a)({
componentRef: e.componentRef,
item: h,
classNames: t,
index: n,
hasIcons: !1,
openSubMenu: u,
dismissSubMenu: d,
dismissMenu: p,
getSubmenuTarget: this._getSubmenuTarget
}, b)))
}
,
t.prototype._handleTouchAndPointerEvent = function(e) {
var t = this
, n = this.props.onTap;
n && n(e),
this._lastTouchTimeoutId && (this._async.clearTimeout(this._lastTouchTimeoutId),
this._lastTouchTimeoutId = void 0),
this._processingTouch = !0,
this._lastTouchTimeoutId = this._async.setTimeout((function() {
t._processingTouch = !1,
t._lastTouchTimeoutId = void 0
}
), 500)
}
,
t
}(oO)
, bO = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._btn = l.createRef(),
t._getMemoizedMenuButtonKeytipProps = Li((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
t._renderAriaDescription = function(e, n) {
return e ? l.createElement("span", {
id: t._ariaDescriptionId,
className: n
}, e) : null
}
,
t._getSubmenuTarget = function() {
return t._btn.current ? t._btn.current : void 0
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.item
, r = t.classNames
, i = t.index
, o = t.focusableElementIndex
, a = t.totalItemCount
, s = t.hasCheckmarks
, c = t.hasIcons
, u = t.contextualMenuItemAs
, d = void 0 === u ? iO : u
, p = t.expandedMenuItemKey
, h = t.onItemMouseDown
, f = t.onItemClick
, b = t.openSubMenu
, g = t.dismissSubMenu
, m = t.dismissMenu
, v = fy(n)
, y = null !== v
, x = my(n)
, O = by(n)
, j = n.itemProps
, k = n.ariaLabel
, w = n.ariaDescription
, C = rp(n, Wd);
delete C.disabled;
var _ = n.role || x;
w && (this._ariaDescriptionId = lg());
var M = yg(n.ariaDescribedBy, w ? this._ariaDescriptionId : void 0, C["aria-describedby"])
, S = {
className: r.root,
onClick: this._onItemClick,
onKeyDown: O ? this._onItemKeyDown : void 0,
onMouseEnter: this._onItemMouseEnter,
onMouseLeave: this._onItemMouseLeave,
onMouseDown: function(e) {
return h ? h(n, e) : void 0
},
onMouseMove: this._onItemMouseMove,
href: n.href,
title: n.title,
"aria-label": k,
"aria-describedby": M,
"aria-haspopup": O || void 0,
"aria-expanded": O ? n.key === p : void 0,
"aria-posinset": o + 1,
"aria-setsize": a,
"aria-disabled": gy(n),
"aria-checked": "menuitemcheckbox" !== _ && "menuitemradio" !== _ || !y ? void 0 : !!v,
"aria-selected": "menuitem" === _ && y ? !!v : void 0,
role: _,
style: n.style
}
, A = n.keytipProps;
return A && O && (A = this._getMemoizedMenuButtonKeytipProps(A)),
l.createElement(cO, {
keytipProps: A,
ariaDescribedBy: M,
disabled: gy(n)
}, (function(t) {
return l.createElement("button", Object(zn.a)({
ref: e._btn
}, C, S, t), l.createElement(d, Object(zn.a)({
componentRef: n.componentRef,
item: n,
classNames: r,
index: i,
onCheckmarkClick: s && f ? f : void 0,
hasIcons: c,
openSubMenu: b,
dismissSubMenu: g,
dismissMenu: m,
getSubmenuTarget: e._getSubmenuTarget
}, j)), e._renderAriaDescription(w, r.screenReaderText))
}
))
}
,
t
}(oO);
function gO(e, t) {
var n = l.useRef(t);
return n.current || (n.current = lg(e)),
n.current
}
var mO, vO = ["setState", "render", "componentWillMount", "UNSAFE_componentWillMount", "componentDidMount", "componentWillReceiveProps", "UNSAFE_componentWillReceiveProps", "shouldComponentUpdate", "componentWillUpdate", "getSnapshotBeforeUpdate", "UNSAFE_componentWillUpdate", "componentDidUpdate", "componentWillUnmount"], yO = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._updateComposedComponentRef = n._updateComposedComponentRef.bind(n),
n
}
return Object(zn.c)(t, e),
t.prototype._updateComposedComponentRef = function(e) {
var t;
this._composedComponentInstance = e,
e ? this._hoisted = function(e, t, n) {
void 0 === n && (n = vO);
var r = []
, i = function(i) {
"function" != typeof t[i] || void 0 !== e[i] || n && -1 !== n.indexOf(i) || (r.push(i),
e[i] = function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
t[i].apply(t, e)
}
)
};
for (var o in t)
i(o);
return r
}(this, e) : this._hoisted && (t = this,
this._hoisted.forEach((function(e) {
return delete t[e]
}
)))
}
,
t
}(l.Component);
function xO(e, t) {
for (var n in e)
e.hasOwnProperty(n) && (t[n] = e[n]);
return t
}
!function(e) {
e[e.small = 0] = "small",
e[e.medium = 1] = "medium",
e[e.large = 2] = "large",
e[e.xLarge = 3] = "xLarge",
e[e.xxLarge = 4] = "xxLarge",
e[e.xxxLarge = 5] = "xxxLarge",
e[e.unknown = 999] = "unknown"
}(mO || (mO = {}));
var OO, jO, kO = [479, 639, 1023, 1365, 1919, 99999999];
function wO() {
var e;
return null !== (e = null != OO ? OO : jO) && void 0 !== e ? e : mO.large
}
function CO(e) {
var t, n = ((t = function(t) {
function n(e) {
var n = t.call(this, e) || this;
return n._onResize = function() {
var e = _O(n.context.window);
e !== n.state.responsiveMode && n.setState({
responsiveMode: e
})
}
,
n._events = new rg(n),
n._updateComposedComponentRef = n._updateComposedComponentRef.bind(n),
n.state = {
responsiveMode: wO()
},
n
}
return Object(zn.c)(n, t),
n.prototype.componentDidMount = function() {
this._events.on(this.context.window, "resize", this._onResize),
this._onResize()
}
,
n.prototype.componentWillUnmount = function() {
this._events.dispose()
}
,
n.prototype.render = function() {
var t = this.state.responsiveMode;
return t === mO.unknown ? null : l.createElement(e, Object(zn.a)({
ref: this._updateComposedComponentRef,
responsiveMode: t
}, this.props))
}
,
n
}(yO)).contextType = nx,
t);
return xO(e, n)
}
function _O(e) {
var t = mO.small;
if (e) {
try {
for (; e.innerWidth > kO[t]; )
t++
} catch (e) {
t = wO()
}
jO = t
} else {
if (void 0 === OO)
throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");
t = OO
}
return t
}
var MO = function(e, t) {
var n = l.useState(wO())
, r = n[0]
, i = n[1]
, o = l.useCallback((function() {
var t = _O(ji(e.current));
r !== t && i(t)
}
), [e, r]);
return tx(rx(), "resize", o),
l.useEffect((function() {
void 0 === t && o()
}
), [t]),
null != t ? t : r
}
, SO = l.createContext({})
, AO = Sg()
, TO = Sg()
, EO = {
items: [],
shouldFocusOnMount: !0,
gapSpace: 0,
directionalHint: Vg,
beakWidth: 16
};
function IO(e, t) {
var n = null == t ? void 0 : t.target
, r = e.subMenuProps ? e.subMenuProps.items : e.items;
if (r) {
for (var i = [], o = 0, a = r; o < a.length; o++) {
var l = a[o];
if (l.preferMenuTargetAsEventTarget) {
var s = l.onClick
, c = Object(zn.d)(l, ["onClick"]);
i.push(Object(zn.a)(Object(zn.a)({}, c), {
onClick: WO(s, n)
}))
} else
i.push(l)
}
return i
}
}
var NO = "ContextualMenu"
, zO = Li((function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return function(t) {
return zo.apply(void 0, Object(zn.e)([t, rO], e))
}
}
));
function DO(e, t) {
var n = e.hidden
, r = e.items
, i = e.theme
, o = e.className
, a = e.id
, s = e.target
, c = l.useState()
, u = c[0]
, d = c[1]
, p = l.useState()
, h = p[0]
, f = p[1]
, b = l.useState()
, g = b[0]
, m = b[1]
, v = gO(NO, a)
, y = l.useCallback((function() {
m(void 0),
d(void 0),
f(void 0)
}
), [])
, x = l.useCallback((function(e, t, n) {
var r = e.key;
u !== r && (t.focus(),
m(n),
d(r),
f(t))
}
), [u]);
l.useEffect((function() {
n && y()
}
), [n, y]);
var O = function(e, t) {
var n = l.useRef(!1);
return l.useEffect((function() {
return n.current = !0,
function() {
n.current = !1
}
}
), []),
function(r, i) {
i ? e(r, i) : n.current && t()
}
}(t, y);
return [u, x, function() {
var e = VO(u, r)
, t = null;
if (e && (t = {
items: IO(e),
target: h,
onDismiss: O,
isSubMenu: !0,
id: v,
shouldFocusOnMount: !0,
shouldFocusOnContainer: g,
directionalHint: vp(i) ? 8 : 11,
className: o,
gapSpace: 0,
isBeakVisible: !1
},
e.subMenuProps && tg(t, e.subMenuProps),
e.preferMenuTargetAsEventTarget)) {
var n = e.onItemClick;
t.onItemClick = WO(n, s)
}
return t
}
, O]
}
function LO(e, t, n, r) {
var i = e.theme
, o = e.isSubMenu
, a = e.focusZoneProps
, s = void 0 === a ? {} : a
, c = s.checkForNoWrap
, u = s.direction
, d = void 0 === u ? Hg.vertical : u
, p = l.useRef()
, h = function(e, n, r) {
var i = !1;
return n(e) && (t(e, r),
e.preventDefault(),
e.stopPropagation(),
i = !0),
i
}
, f = function(e) {
return e.which === dp || function(e) {
var t = vp(i) ? bp : hp;
return !(e.which !== t || !o || d !== Hg.vertical && (!c || function(e, t) {
return "true" !== function(e, t) {
var n = qb(e, (function(e) {
return e.hasAttribute(t)
}
));
return n && n.getAttribute(t)
}(e, t)
}(e.target, "data-no-horizontal-wrap")))
}(e) || e.which === fp && (e.altKey || e.metaKey)
}
, b = function(e) {
p.current = PO(e);
var t = e.which === dp && (ly() || py());
return h(e, f, t)
}
, g = function(e) {
var t = p.current && PO(e);
return p.current = !1,
!!t && !(py() || ly())
};
return [b, function(e) {
return h(e, g, !0)
}
, function(e) {
if (!b(e) && n.current) {
var t = !(!e.altKey && !e.metaKey)
, r = e.which === fp
, i = e.which === gp;
if (!t && (r || i)) {
var o = r ? Jv(n.current, n.current.lastChild, !0) : Qv(n.current, n.current.firstChild, !0);
o && (o.focus(),
e.preventDefault(),
e.stopPropagation())
}
}
}
, function(e, t) {
var n = vp(i) ? hp : bp;
e.disabled || t.which !== n && t.which !== cp && (t.which !== gp || !t.altKey && !t.metaKey) || (r(e, t.currentTarget, !1),
t.preventDefault())
}
]
}
var RO = l.memo(l.forwardRef((function(e, t) {
var n, r = hy(EO, e), i = (r.ref,
Object(zn.d)(r, ["ref"])), o = l.useRef(null), a = ex(), s = gO(NO, i.id), c = function(e, t) {
var n;
return null === (n = i.onDismiss) || void 0 === n ? void 0 : n.call(i, e, t)
}, u = cx(i.target, o), d = u[0], p = u[1], h = function(e, t) {
var n = e.hidden
, r = e.onRestoreFocus
, i = l.useRef()
, o = l.useCallback((function(e) {
var t, n;
r ? r(e) : (null == e ? void 0 : e.documentContainsFocus) && (null === (n = null === (t = i.current) || void 0 === t ? void 0 : t.focus) || void 0 === n || n.call(t))
}
), [r]);
return l.useLayoutEffect((function() {
var e;
n ? i.current && (o({
originalElement: i.current,
containsFocus: !0,
documentContainsFocus: (null === (e = ro()) || void 0 === e ? void 0 : e.hasFocus()) || !1
}),
i.current = void 0) : i.current = null == t ? void 0 : t.document.activeElement
}
), [n, null == t ? void 0 : t.document.activeElement, o]),
[o]
}(i, p)[0], f = DO(i, c), b = f[0], g = f[1], m = f[2], v = f[3], y = function(e) {
var t = e.delayUpdateFocusOnHover
, n = e.hidden
, r = l.useRef(!t)
, i = l.useRef(!1);
l.useEffect((function() {
r.current = !t,
i.current = !n && !t && i.current
}
), [t, n]);
var o = l.useCallback((function() {
t && (r.current = !0)
}
), [t]);
return [r, i, o]
}(i), x = y[0], O = y[1], j = y[2], k = function(e) {
var t = l.useRef(!0)
, n = l.useRef();
return [function() {
t.current || void 0 === n.current ? t.current = !1 : (e.clearTimeout(n.current),
n.current = void 0),
n.current = e.setTimeout((function() {
t.current = !0
}
), 250)
}
, t]
}(a), w = k[0], C = k[1], _ = function(e, t) {
var n = e.subMenuHoverDelay
, r = void 0 === n ? 250 : n
, i = l.useRef(void 0)
, o = function() {
void 0 !== i.current && (t.clearTimeout(i.current),
i.current = void 0)
};
return [o, function(e) {
i.current = t.setTimeout((function() {
e(),
o()
}
), r)
}
, i]
}(i, a), M = _[0], S = _[1], A = _[2], T = MO(o, i.responsiveMode);
!function(e, t) {
var n = e.hidden
, r = void 0 !== n && n
, i = e.onMenuDismissed
, o = e.onMenuOpened
, a = aO(r)
, s = l.useRef(o)
, c = l.useRef(i)
, u = l.useRef(e);
s.current = o,
c.current = i,
u.current = e,
l.useEffect((function() {
var e, t;
r && !1 === a ? null === (e = c.current) || void 0 === e || e.call(c, u.current) : r || !1 === a || null === (t = s.current) || void 0 === t || t.call(s, u.current)
}
), [r, a]),
l.useEffect((function() {
return function() {
var e;
return null === (e = c.current) || void 0 === e ? void 0 : e.call(c, u.current)
}
}
), [])
}(i);
var E, I = LO(i, c, o, g), N = I[0], z = I[1], D = I[2], L = I[3], R = function(e, t, n, r, i, o, a, l, s, c, u, d, p) {
var h = e.target
, f = function() {
return !t.current || !o.current
}
, b = function(e, t, n) {
var r = n || t.currentTarget;
e.key !== a && (c(),
void 0 === a && r.focus(),
by(e) ? (t.stopPropagation(),
s((function() {
r.focus(),
u(e, r, !0)
}
))) : s((function() {
d(t),
r.focus()
}
)))
}
, g = function(e, t, n) {
var r = IO(e);
c(),
by(e) || r && r.length ? e.key !== a && u(e, n, 0 !== t.nativeEvent.detail || "mouse" === t.nativeEvent.pointerType) : m(e, t),
t.stopPropagation(),
t.preventDefault()
}
, m = function(t, n) {
if (!t.disabled && !t.isDisabled) {
t.preferMenuTargetAsEventTarget && qO(n, h);
var r = !1;
t.onClick ? r = !!t.onClick(n, t) : e.onItemClick && (r = !!e.onItemClick(n, t)),
!r && n.defaultPrevented || p(n, !0)
}
};
return [function(e, t, n) {
f() || b(e, t, n)
}
, function(e, a, l) {
var s = a.currentTarget;
i.current && (o.current = !0,
t.current && void 0 === n.current && s !== (null == r ? void 0 : r.document.activeElement) && b(e, a, l))
}
, function(e, t) {
var n;
if (!f() && (c(),
void 0 === a))
if (l.current.setActive)
try {
l.current.setActive()
} catch (e) {}
else
null === (n = l.current) || void 0 === n || n.focus()
}
, function(e, t) {
g(e, t, t.currentTarget)
}
, function(e, t) {
m(e, t),
t.stopPropagation()
}
, m, g]
}(i, C, A, p, x, O, b, o, S, M, g, v, c), P = R[0], B = R[1], F = R[2], V = R[3], W = R[4], q = R[5], H = R[6], U = function(e, t, n) {
var r = 0
, i = e.items
, o = e.totalItemCount
, a = e.hasCheckmarks
, s = e.hasIcons;
return l.createElement("ul", {
className: t.list,
onKeyDown: N,
onKeyUp: z,
role: "presentation"
}, i.map((function(e, n) {
var i = X(e, n, r, o, a, s, t);
if (e.itemType !== Bg.Divider && e.itemType !== Bg.Header) {
var l = e.customOnRenderListLength ? e.customOnRenderListLength : 1;
r += l
}
return i
}
)))
}, X = function(e, t, n, r, o, a, s) {
var c, u, d = [], p = e.iconProps || {
iconName: "None"
}, h = e.getItemClassNames, f = e.itemProps, g = f ? f.styles : void 0, m = e.itemType === Bg.Divider ? e.className : void 0, v = e.submenuIconProps ? e.submenuIconProps.className : "";
if (h)
u = h(i.theme, gy(e), b === e.key, !!fy(e), !!e.href, "None" !== p.iconName, e.className, m, p.className, v, e.primaryDisabled);
else {
var y = {
theme: i.theme,
disabled: gy(e),
expanded: b === e.key,
checked: !!fy(e),
isAnchorLink: !!e.href,
knownIcon: "None" !== p.iconName,
itemClassName: e.className,
dividerClassName: m,
iconClassName: p.className,
subMenuClassName: v,
primaryDisabled: e.primaryDisabled
};
u = TO(zO(null === (c = s.subComponentStyles) || void 0 === c ? void 0 : c.menuItem, g), y)
}
switch ("-" !== e.text && "-" !== e.name || (e.itemType = Bg.Divider),
e.itemType) {
case Bg.Divider:
d.push(Y(t, u));
break;
case Bg.Header:
d.push(Y(t, u));
var x = J(e, u, s, t, o, a);
d.push(K(x, e.key || t, u, e.title));
break;
case Bg.Section:
d.push(G(e, u, s, t, o, a));
break;
default:
var O = Q(e, u, t, n, r, o, a);
d.push(K(O, e.key || t, u, e.title))
}
return l.createElement(l.Fragment, {
key: e.key
}, d)
}, G = function(e, t, n, r, i, o) {
var a = e.sectionProps;
if (a) {
var c, u;
if (a.title) {
var d = void 0
, p = "";
if ("string" == typeof a.title) {
var h = s + a.title.replace(/\s/g, "");
d = {
key: "section-" + a.title + "-title",
itemType: Bg.Header,
text: a.title,
id: h
},
p = h
} else {
var f = a.title.id || s + a.title.key.replace(/\s/g, "");
d = Object(zn.a)(Object(zn.a)({}, a.title), {
id: f
}),
p = f
}
d && (u = {
role: "group",
"aria-labelledby": p
},
c = J(d, t, n, r, i, o))
}
return a.items && a.items.length > 0 ? l.createElement("li", {
role: "presentation",
key: a.key || e.key || "section-" + r
}, l.createElement("div", Object(zn.a)({}, u), l.createElement("ul", {
className: n.list,
role: "presentation"
}, a.topDivider && Y(r, t, !0, !0), c && K(c, e.key || r, t, e.title), a.items.map((function(e, t) {
return X(e, t, t, a.items.length, i, o, n)
}
)), a.bottomDivider && Y(r, t, !1, !0)))) : void 0
}
}, K = function(e, t, n, r) {
return l.createElement("li", {
role: "presentation",
title: r,
key: t,
className: n.item
}, e)
}, Y = function(e, t, n, r) {
return r || e > 0 ? l.createElement("li", {
role: "separator",
key: "separator-" + e + (void 0 === n ? "" : n ? "-top" : "-bottom"),
className: t.divider,
"aria-hidden": "true"
}) : null
}, Q = function(e, t, n, r, o, a, s) {
if (e.onRender)
return e.onRender(Object(zn.a)({
"aria-posinset": r + 1,
"aria-setsize": o
}, e), c);
var u = {
item: e,
classNames: t,
index: n,
focusableElementIndex: r,
totalItemCount: o,
hasCheckmarks: a,
hasIcons: s,
contextualMenuItemAs: i.contextualMenuItemAs,
onItemMouseEnter: P,
onItemMouseLeave: F,
onItemMouseMove: B,
onItemMouseDown: BO,
executeItemClick: q,
onItemKeyDown: L,
expandedMenuItemKey: b,
openSubMenu: g,
dismissSubMenu: v,
dismissMenu: c
};
return e.href ? l.createElement(uO, Object(zn.a)({}, u, {
onItemClick: W
})) : e.split && by(e) ? l.createElement(fO, Object(zn.a)({}, u, {
onItemClick: V,
onItemClickBase: H,
onTap: M
})) : l.createElement(bO, Object(zn.a)({}, u, {
onItemClick: V,
onItemClickBase: H
}))
}, J = function(e, t, n, r, o, a) {
var s = i.contextualMenuItemAs
, c = void 0 === s ? iO : s
, u = e.itemProps
, d = e.id
, p = u && rp(u, np);
return l.createElement("div", Object(zn.a)({
id: d,
className: n.header
}, p, {
style: e.style
}), l.createElement(c, Object(zn.a)({
item: e,
classNames: t,
index: r,
onCheckmarkClick: o ? V : void 0,
hasIcons: a
}, u)))
}, Z = i.isBeakVisible, $ = i.items, ee = i.labelElementId, te = i.id, ne = i.className, re = i.beakWidth, ie = i.directionalHint, oe = i.directionalHintForRTL, ae = i.alignTargetEdge, le = i.gapSpace, se = i.coverTarget, ce = i.ariaLabel, ue = i.doNotLayer, de = i.target, pe = i.bounds, he = i.useTargetWidth, fe = i.useTargetAsMinWidth, be = i.directionalHintFixed, ge = i.shouldFocusOnMount, me = i.shouldFocusOnContainer, ve = i.title, ye = i.styles, xe = i.theme, Oe = i.calloutProps, je = i.onRenderSubMenu, ke = void 0 === je ? FO : je, we = i.onRenderMenuList, Ce = void 0 === we ? function(e, t) {
return U(e, Se)
}
: we, _e = i.focusZoneProps, Me = i.getMenuClassNames, Se = Me ? Me(xe, ne) : AO(ye, {
theme: xe,
className: ne
}), Ae = function e(t) {
for (var n = 0, r = t; n < r.length; n++) {
var i = r[n];
if (i.iconProps)
return !0;
if (i.itemType === Bg.Section && i.sectionProps && e(i.sectionProps.items))
return !0
}
return !1
}($), Te = Object(zn.a)(Object(zn.a)({
direction: Hg.vertical,
handleTabKey: 1,
isCircularNavigation: !0
}, _e), {
className: ip(Se.root, null === (n = i.focusZoneProps) || void 0 === n ? void 0 : n.className)
}), Ee = function(e) {
return e.some((function(e) {
return !!e.canCheck || !(!e.sectionProps || !e.sectionProps.items.some((function(e) {
return !0 === e.canCheck
}
)))
}
))
}($), Ie = b && !0 !== i.hidden ? m() : null;
Z = void 0 === Z ? T <= mO.medium : Z;
var Ne = d.current;
if ((he || fe) && Ne && Ne.offsetWidth) {
var ze = Ne.getBoundingClientRect().width - 2;
he ? E = {
width: ze
} : fe && (E = {
minWidth: ze
})
}
if ($ && $.length > 0) {
for (var De = 0, Le = 0, Re = $; Le < Re.length; Le++) {
var Pe = Re[Le];
if (Pe.itemType !== Bg.Divider && Pe.itemType !== Bg.Header) {
var Be = Pe.customOnRenderListLength ? Pe.customOnRenderListLength : 1;
De += Be
}
}
var Fe = Se.subComponentStyles ? Se.subComponentStyles.callout : void 0;
return l.createElement(SO.Consumer, null, (function(e) {
return l.createElement(Bx, Object(zn.a)({
styles: Fe,
onRestoreFocus: h
}, Oe, {
target: de || e.target,
isBeakVisible: Z,
beakWidth: re,
directionalHint: ie,
directionalHintForRTL: oe,
gapSpace: le,
coverTarget: se,
doNotLayer: ue,
className: ip("ms-ContextualMenu-Callout", Oe && Oe.className),
setInitialFocus: ge,
onDismiss: i.onDismiss || e.onDismiss,
onScroll: w,
bounds: pe,
directionalHintFixed: be,
alignTargetEdge: ae,
hidden: i.hidden || e.hidden,
ref: t
}), l.createElement("div", {
style: E,
ref: o,
id: te,
className: Se.container,
tabIndex: me ? 0 : -1,
onKeyDown: D,
onKeyUp: z,
onFocusCapture: j,
"aria-label": ce,
"aria-labelledby": ee,
role: "menu"
}, ve && l.createElement("div", {
className: Se.title
}, " ", ve, " "), $ && $.length ? function(e, t) {
var n = i.focusZoneAs
, r = void 0 === n ? Kv : n;
return l.createElement(r, Object(zn.a)({}, t), e)
}(Ce({
ariaLabel: ce,
items: $,
totalItemCount: De,
hasCheckmarks: Ee,
hasIcons: Ae,
defaultMenuItemRenderer: function(e) {
return function(e, t) {
var n = e.index
, r = e.focusableElementIndex
, i = e.totalItemCount
, o = e.hasCheckmarks
, a = e.hasIcons;
return X(e, n, r, i, o, a, t)
}(e, Se)
},
labelElementId: ee
}, (function(e, t) {
return U(e, Se)
}
)), Te) : null, Ie && ke(Ie, FO)))
}
))
}
return null
}
)), (function(e, t) {
return !(t.shouldUpdateWhenHidden || !e.hidden || !t.hidden) || eg(e, t)
}
));
function PO(e) {
return e.which === up || "Meta" === e.key
}
function BO(e, t) {
var n;
null === (n = e.onMouseDown) || void 0 === n || n.call(e, e, t)
}
function FO(e, t) {
throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")
}
function VO(e, t) {
for (var n = 0, r = t; n < r.length; n++) {
var i = r[n];
if (i.itemType === Bg.Section && i.sectionProps) {
var o = VO(e, i.sectionProps.items);
if (o)
return o
} else if (i.key && i.key === e)
return i
}
}
function WO(e, t) {
return e ? function(n, r) {
return qO(n, t),
e(n, r)
}
: e
}
function qO(e, t) {
e && t && (e.persist(),
t instanceof Event ? e.target = t.target : t instanceof Element && (e.target = t))
}
RO.displayName = "ContextualMenuBase";
var HO = {
root: "ms-ContextualMenu",
container: "ms-ContextualMenu-container",
list: "ms-ContextualMenu-list",
header: "ms-ContextualMenu-header",
title: "ms-ContextualMenu-title",
isopen: "is-open"
};
function UO(e) {
return l.createElement(XO, Object(zn.a)({}, e))
}
var XO = jg(RO, (function(e) {
var t = e.className
, n = e.theme
, r = Vi(HO, n)
, i = n.fonts
, o = n.semanticColors
, a = n.effects;
return {
root: [n.fonts.medium, r.root, r.isopen, {
backgroundColor: o.menuBackground,
minWidth: "180px"
}, t],
container: [r.container, {
selectors: {
":focus": {
outline: 0
}
}
}],
list: [r.list, r.isopen, {
listStyleType: "none",
margin: "0",
padding: "0"
}],
header: [r.header, i.small, {
fontWeight: bi.semibold,
color: o.menuHeader,
background: "none",
backgroundColor: "transparent",
border: "none",
height: Yx,
lineHeight: Yx,
cursor: "default",
padding: "0px 6px",
userSelect: "none",
textAlign: "left"
}],
title: [r.title, {
fontSize: i.mediumPlus.fontSize,
paddingRight: "14px",
paddingLeft: "14px",
paddingBottom: "5px",
paddingTop: "5px",
backgroundColor: o.menuItemBackgroundPressed
}],
subComponentStyles: {
callout: {
root: {
boxShadow: a.elevation8
}
},
menuItem: {}
}
}
}
), (function(e) {
return {
onRenderSubMenu: e.onRenderSubMenu ? qg(e.onRenderSubMenu, UO) : UO
}
}
), {
scope: "ContextualMenu"
})
, GO = XO;
GO.displayName = "ContextualMenu";
var KO = {
msButton: "ms-Button",
msButtonHasMenu: "ms-Button--hasMenu",
msButtonIcon: "ms-Button-icon",
msButtonMenuIcon: "ms-Button-menuIcon",
msButtonLabel: "ms-Button-label",
msButtonDescription: "ms-Button-description",
msButtonScreenReaderText: "ms-Button-screenReaderText",
msButtonFlexContainer: "ms-Button-flexContainer",
msButtonTextContainer: "ms-Button-textContainer"
}
, YO = Li((function(e, t, n, r, i, o, a, l, s, c, u) {
var d, p, h = Vi(KO, e || {}), f = c && !u;
return Do({
root: [h.msButton, t.root, r, s && ["is-checked", t.rootChecked], f && ["is-expanded", t.rootExpanded, {
selectors: (d = {},
d[":hover ." + h.msButtonIcon] = t.iconExpandedHovered,
d[":hover ." + h.msButtonMenuIcon] = t.menuIconExpandedHovered || t.rootExpandedHovered,
d[":hover"] = t.rootExpandedHovered,
d)
}], l && [KO.msButtonHasMenu, t.rootHasMenu], a && ["is-disabled", t.rootDisabled], !a && !f && !s && {
selectors: (p = {
":hover": t.rootHovered
},
p[":hover ." + h.msButtonLabel] = t.labelHovered,
p[":hover ." + h.msButtonIcon] = t.iconHovered,
p[":hover ." + h.msButtonDescription] = t.descriptionHovered,
p[":hover ." + h.msButtonMenuIcon] = t.menuIconHovered,
p[":focus"] = t.rootFocused,
p[":active"] = t.rootPressed,
p[":active ." + h.msButtonIcon] = t.iconPressed,
p[":active ." + h.msButtonDescription] = t.descriptionPressed,
p[":active ." + h.msButtonMenuIcon] = t.menuIconPressed,
p)
}, a && s && [t.rootCheckedDisabled], !a && s && {
selectors: {
":hover": t.rootCheckedHovered,
":active": t.rootCheckedPressed
}
}, n],
flexContainer: [h.msButtonFlexContainer, t.flexContainer],
textContainer: [h.msButtonTextContainer, t.textContainer],
icon: [h.msButtonIcon, i, t.icon, f && t.iconExpanded, s && t.iconChecked, a && t.iconDisabled],
label: [h.msButtonLabel, t.label, s && t.labelChecked, a && t.labelDisabled],
menuIcon: [h.msButtonMenuIcon, o, t.menuIcon, s && t.menuIconChecked, a && !u && t.menuIconDisabled, !a && !f && !s && {
selectors: {
":hover": t.menuIconHovered,
":active": t.menuIconPressed
}
}, f && ["is-expanded", t.menuIconExpanded]],
description: [h.msButtonDescription, t.description, s && t.descriptionChecked, a && t.descriptionDisabled],
screenReaderText: [h.msButtonScreenReaderText, t.screenReaderText]
})
}
))
, QO = Li((function(e, t, n, r, i) {
return {
root: dr(e.splitButtonMenuButton, n && [e.splitButtonMenuButtonExpanded], t && [e.splitButtonMenuButtonDisabled], r && !t && [e.splitButtonMenuButtonChecked], i && !t && [{
selectors: {
":focus": e.splitButtonMenuFocused
}
}]),
splitButtonContainer: dr(e.splitButtonContainer, !t && r && [e.splitButtonContainerChecked, {
selectors: {
":hover": e.splitButtonContainerCheckedHovered
}
}], !t && !r && [{
selectors: {
":hover": e.splitButtonContainerHovered,
":focus": e.splitButtonContainerFocused
}
}], t && e.splitButtonContainerDisabled),
icon: dr(e.splitButtonMenuIcon, t && e.splitButtonMenuIconDisabled, !t && i && e.splitButtonMenuIcon),
flexContainer: dr(e.splitButtonFlexContainer),
divider: dr(e.splitButtonDivider, (i || t) && e.splitButtonDividerDisabled)
}
}
))
, JO = Ri((function(e) {
var t = e;
return Ri((function(n) {
if (e === n)
throw new Error("Attempted to compose a component with itself.");
var r = n
, i = Ri((function(e) {
return function(t) {
return l.createElement(r, Object(zn.a)({}, t, {
defaultRender: e
}))
}
}
));
return function(e) {
var n = e.defaultRender;
return l.createElement(t, Object(zn.a)({}, e, {
defaultRender: n ? i(n) : r
}))
}
}
))
}
))
, ZO = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._buttonElement = l.createRef(),
n._splitButtonContainer = l.createRef(),
n._mergedRef = function(e) {
var t = {
refs: []
};
return function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
return t.resolver && function(e, t) {
if (e.length !== t.length)
return !1;
for (var n = 0; n < e.length; n++)
if (e[n] !== t[n])
return !1;
return !0
}(t.refs, e) || (t.resolver = function(e) {
return function(t) {
for (var n = 0, r = e.refs; n < r.length; n++) {
var i = r[n];
"function" == typeof i ? i(t) : i && (i.current = t)
}
}
}(t)),
t.refs = e,
t.resolver
}
}(),
n._renderedVisibleMenu = !1,
n._getMemoizedMenuButtonKeytipProps = Li((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
n._onRenderIcon = function(e, t) {
var r = n.props.iconProps;
if (r && (void 0 !== r.iconName || r.imageProps)) {
var i = r.className
, o = r.imageProps
, a = Object(zn.d)(r, ["className", "imageProps"]);
if (r.styles)
return l.createElement(Pg, Object(zn.a)({
className: ip(n._classNames.icon, i),
imageProps: o
}, a));
if (r.iconName)
return l.createElement(lp, Object(zn.a)({
className: ip(n._classNames.icon, i)
}, a));
if (o)
return l.createElement(Fg, Object(zn.a)({
className: ip(n._classNames.icon, i),
imageProps: o
}, a))
}
return null
}
,
n._onRenderTextContents = function() {
var e = n.props
, t = e.text
, r = e.children
, i = e.secondaryText
, o = void 0 === i ? n.props.description : i
, a = e.onRenderText
, s = void 0 === a ? n._onRenderText : a
, c = e.onRenderDescription
, u = void 0 === c ? n._onRenderDescription : c;
return t || "string" == typeof r || o ? l.createElement("span", {
className: n._classNames.textContainer
}, s(n.props, n._onRenderText), u(n.props, n._onRenderDescription)) : [s(n.props, n._onRenderText), u(n.props, n._onRenderDescription)]
}
,
n._onRenderText = function() {
var e = n.props.text
, t = n.props.children;
return void 0 === e && "string" == typeof t && (e = t),
n._hasText() ? l.createElement("span", {
key: n._labelId,
className: n._classNames.label,
id: n._labelId
}, e) : null
}
,
n._onRenderChildren = function() {
var e = n.props.children;
return "string" == typeof e ? null : e
}
,
n._onRenderDescription = function(e) {
var t = e.secondaryText
, r = void 0 === t ? n.props.description : t;
return r ? l.createElement("span", {
key: n._descriptionId,
className: n._classNames.description,
id: n._descriptionId
}, r) : null
}
,
n._onRenderAriaDescription = function() {
var e = n.props.ariaDescription;
return e ? l.createElement("span", {
className: n._classNames.screenReaderText,
id: n._ariaDescriptionId
}, e) : null
}
,
n._onRenderMenuIcon = function(e) {
var t = n.props.menuIconProps;
return l.createElement(lp, Object(zn.a)({
iconName: "ChevronDown"
}, t, {
className: n._classNames.menuIcon
}))
}
,
n._onRenderMenu = function(e) {
var t, r, i = n.props.menuAs ? (t = n.props.menuAs,
r = GO,
JO(t)(r)) : GO;
return l.createElement(i, Object(zn.a)({}, e))
}
,
n._onDismissMenu = function(e) {
var t = n.props.menuProps;
t && t.onDismiss && t.onDismiss(e),
e && e.defaultPrevented || n._dismissMenu()
}
,
n._dismissMenu = function() {
n._menuShouldFocusOnMount = void 0,
n._menuShouldFocusOnContainer = void 0,
n.setState({
menuHidden: !0
})
}
,
n._openMenu = function(e, t) {
void 0 === t && (t = !0),
n.props.menuProps && (n._menuShouldFocusOnContainer = e,
n._menuShouldFocusOnMount = t,
n._renderedVisibleMenu = !0,
n.setState({
menuHidden: !1
}))
}
,
n._onToggleMenu = function(e) {
var t = !0;
n.props.menuProps && !1 === n.props.menuProps.shouldFocusOnMount && (t = !1),
n.state.menuHidden ? n._openMenu(e, t) : n._dismissMenu()
}
,
n._onSplitContainerFocusCapture = function(e) {
var t = n._splitButtonContainer.current;
!t || e.target && Ub(e.target, t) || t.focus()
}
,
n._onSplitButtonPrimaryClick = function(e) {
n.state.menuHidden || n._dismissMenu(),
!n._processingTouch && n.props.onClick ? n.props.onClick(e) : n._processingTouch && n._onMenuClick(e)
}
,
n._onKeyDown = function(e) {
!n.props.disabled || e.which !== cp && e.which !== pp ? n.props.disabled || (n.props.menuProps ? n._onMenuKeyDown(e) : void 0 !== n.props.onKeyDown && n.props.onKeyDown(e)) : (e.preventDefault(),
e.stopPropagation())
}
,
n._onKeyUp = function(e) {
n.props.disabled || void 0 === n.props.onKeyUp || n.props.onKeyUp(e)
}
,
n._onKeyPress = function(e) {
n.props.disabled || void 0 === n.props.onKeyPress || n.props.onKeyPress(e)
}
,
n._onMouseUp = function(e) {
n.props.disabled || void 0 === n.props.onMouseUp || n.props.onMouseUp(e)
}
,
n._onMouseDown = function(e) {
n.props.disabled || void 0 === n.props.onMouseDown || n.props.onMouseDown(e)
}
,
n._onClick = function(e) {
n.props.disabled || (n.props.menuProps ? n._onMenuClick(e) : void 0 !== n.props.onClick && n.props.onClick(e))
}
,
n._onSplitButtonContainerKeyDown = function(e) {
e.which === cp || e.which === pp ? n._buttonElement.current && (n._buttonElement.current.click(),
e.preventDefault(),
e.stopPropagation()) : n._onMenuKeyDown(e)
}
,
n._onMenuKeyDown = function(e) {
if (!n.props.disabled) {
n.props.onKeyDown && n.props.onKeyDown(e);
var t = e.which === fp
, r = e.which === gp;
if (!e.defaultPrevented && n._isValidMenuOpenKey(e)) {
var i = n.props.onMenuClick;
i && i(e, n.props),
n._onToggleMenu(!1),
e.preventDefault(),
e.stopPropagation()
}
e.which !== cp && e.which !== pp || _i(!0, e.target),
e.altKey || e.metaKey || !t && !r || !n.state.menuHidden && n.props.menuProps && ((void 0 !== n._menuShouldFocusOnMount ? n._menuShouldFocusOnMount : n.props.menuProps.shouldFocusOnMount) || (e.preventDefault(),
e.stopPropagation(),
n._menuShouldFocusOnMount = !0,
n.forceUpdate()))
}
}
,
n._onTouchStart = function() {
n._isSplitButton && n._splitButtonContainer.current && !("onpointerdown"in n._splitButtonContainer.current) && n._handleTouchAndPointerEvent()
}
,
n._onMenuClick = function(e) {
var t = n.props.onMenuClick;
if (t && t(e, n.props),
!e.defaultPrevented) {
var r = 0 !== e.nativeEvent.detail || "mouse" === e.nativeEvent.pointerType;
n._onToggleMenu(r),
e.preventDefault(),
e.stopPropagation()
}
}
,
Kb(n),
n._async = new $b(n),
n._events = new rg(n),
n.props.split,
n._labelId = lg(),
n._descriptionId = lg(),
n._ariaDescriptionId = lg(),
n.state = {
menuHidden: !0
},
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "_isSplitButton", {
get: function() {
return !!this.props.menuProps && !!this.props.onClick && !0 === this.props.split
},
enumerable: !1,
configurable: !0
}),
t.prototype.render = function() {
var e, t = this.props, n = t.ariaDescription, r = t.ariaLabel, i = t.ariaHidden, o = t.className, a = t.disabled, l = t.allowDisabledFocus, s = t.primaryDisabled, c = t.secondaryText, u = void 0 === c ? this.props.description : c, d = t.href, p = t.iconProps, h = t.menuIconProps, f = t.styles, b = t.checked, g = t.variantClassName, m = t.theme, v = t.toggle, y = t.getClassNames, x = t.role, O = this.state.menuHidden, j = a || s;
this._classNames = y ? y(m, o, g, p && p.className, h && h.className, j, b, !O, !!this.props.menuProps, this.props.split, !!l) : YO(m, f, o, g, p && p.className, h && h.className, j, !!this.props.menuProps, b, !O, this.props.split);
var k = this
, w = k._ariaDescriptionId
, C = k._labelId
, _ = k._descriptionId
, M = !j && !!d
, S = M ? "a" : "button"
, A = rp(tg(M ? {} : {
type: "button"
}, this.props.rootProps, this.props), M ? Vd : Wd, ["disabled"])
, T = r || A["aria-label"]
, E = void 0;
n ? E = w : u && this.props.onRenderDescription !== ug ? E = _ : A["aria-describedby"] && (E = A["aria-describedby"]);
var I = void 0;
A["aria-labelledby"] ? I = A["aria-labelledby"] : E && !T && (I = this._hasText() ? C : void 0);
var N = !(!1 === this.props["data-is-focusable"] || a && !l || this._isSplitButton)
, z = "menuitemcheckbox" === x || "checkbox" === x
, D = z || !0 === v ? !!b : void 0
, L = tg(A, ((e = {
className: this._classNames.root,
ref: this._mergedRef(this.props.elementRef, this._buttonElement),
disabled: j && !l,
onKeyDown: this._onKeyDown,
onKeyPress: this._onKeyPress,
onKeyUp: this._onKeyUp,
onMouseDown: this._onMouseDown,
onMouseUp: this._onMouseUp,
onClick: this._onClick,
"aria-label": T,
"aria-labelledby": I,
"aria-describedby": E,
"aria-disabled": j,
"data-is-focusable": N
})[z ? "aria-checked" : "aria-pressed"] = D,
e));
if (i && (L["aria-hidden"] = !0),
this._isSplitButton)
return this._onRenderSplitButtonContent(S, L);
if (this.props.menuProps) {
var R = this.props.menuProps.id
, P = void 0 === R ? this._labelId + "-menu" : R;
tg(L, {
"aria-expanded": !O,
"aria-controls": O ? null : P,
"aria-haspopup": !0
})
}
return this._onRenderContent(S, L)
}
,
t.prototype.componentDidMount = function() {
this._isSplitButton && this._splitButtonContainer.current && ("onpointerdown"in this._splitButtonContainer.current && this._events.on(this._splitButtonContainer.current, "pointerdown", this._onPointerDown, !0),
"onpointerup"in this._splitButtonContainer.current && this.props.onPointerUp && this._events.on(this._splitButtonContainer.current, "pointerup", this.props.onPointerUp, !0))
}
,
t.prototype.componentDidUpdate = function(e, t) {
this.props.onAfterMenuDismiss && !t.menuHidden && this.state.menuHidden && this.props.onAfterMenuDismiss()
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.focus = function() {
this._isSplitButton && this._splitButtonContainer.current ? (_i(!0),
this._splitButtonContainer.current.focus()) : this._buttonElement.current && (_i(!0),
this._buttonElement.current.focus())
}
,
t.prototype.dismissMenu = function() {
this._dismissMenu()
}
,
t.prototype.openMenu = function(e, t) {
this._openMenu(e, t)
}
,
t.prototype._onRenderContent = function(e, t) {
var n = this
, r = this.props
, i = e
, o = r.menuIconProps
, a = r.menuProps
, s = r.onRenderIcon
, c = void 0 === s ? this._onRenderIcon : s
, u = r.onRenderAriaDescription
, d = void 0 === u ? this._onRenderAriaDescription : u
, p = r.onRenderChildren
, h = void 0 === p ? this._onRenderChildren : p
, f = r.onRenderMenu
, b = void 0 === f ? this._onRenderMenu : f
, g = r.onRenderMenuIcon
, m = void 0 === g ? this._onRenderMenuIcon : g
, v = r.disabled
, y = r.keytipProps;
y && a && (y = this._getMemoizedMenuButtonKeytipProps(y));
var x = function(e) {
return l.createElement(i, Object(zn.a)({}, t, e), l.createElement("span", {
className: n._classNames.flexContainer,
"data-automationid": "splitbuttonprimary"
}, c(r, n._onRenderIcon), n._onRenderTextContents(), d(r, n._onRenderAriaDescription), h(r, n._onRenderChildren), !n._isSplitButton && (a || o || n.props.onRenderMenuIcon) && m(n.props, n._onRenderMenuIcon), a && !a.doNotLayer && n._shouldRenderMenu() && b(n._getMenuProps(a), n._onRenderMenu)))
}
, O = y ? l.createElement(cO, {
keytipProps: this._isSplitButton ? void 0 : y,
ariaDescribedBy: t["aria-describedby"],
disabled: v
}, (function(e) {
return x(e)
}
)) : x();
return a && a.doNotLayer ? l.createElement(l.Fragment, null, O, this._shouldRenderMenu() && b(this._getMenuProps(a), this._onRenderMenu)) : l.createElement(l.Fragment, null, O, l.createElement(bg, null))
}
,
t.prototype._shouldRenderMenu = function() {
var e = this.state.menuHidden
, t = this.props
, n = t.persistMenu
, r = t.renderPersistedMenuHiddenOnMount;
return !e || !(!n || !this._renderedVisibleMenu && !r)
}
,
t.prototype._hasText = function() {
return null !== this.props.text && (void 0 !== this.props.text || "string" == typeof this.props.children)
}
,
t.prototype._getMenuProps = function(e) {
var t = this.props.persistMenu
, n = this.state.menuHidden;
return e.ariaLabel || e.labelElementId || !this._hasText() || (e = Object(zn.a)(Object(zn.a)({}, e), {
labelElementId: this._labelId
})),
Object(zn.a)(Object(zn.a)({
id: this._labelId + "-menu",
directionalHint: 4
}, e), {
shouldFocusOnContainer: this._menuShouldFocusOnContainer,
shouldFocusOnMount: this._menuShouldFocusOnMount,
hidden: t ? n : void 0,
className: ip("ms-BaseButton-menuhost", e.className),
target: this._isSplitButton ? this._splitButtonContainer.current : this._buttonElement.current,
onDismiss: this._onDismissMenu
})
}
,
t.prototype._onRenderSplitButtonContent = function(e, t) {
var n = this
, r = this.props
, i = r.styles
, o = void 0 === i ? {} : i
, a = r.disabled
, s = r.allowDisabledFocus
, c = r.checked
, u = r.getSplitButtonClassNames
, d = r.primaryDisabled
, p = r.menuProps
, h = r.toggle
, f = r.role
, b = r.primaryActionButtonProps
, g = this.props.keytipProps
, m = this.state.menuHidden
, v = u ? u(!!a, !m, !!c, !!s) : o && QO(o, !!a, !m, !!c, !!d);
tg(t, {
onClick: void 0,
onPointerDown: void 0,
onPointerUp: void 0,
tabIndex: -1,
"data-is-focusable": !1
}),
g && p && (g = this._getMemoizedMenuButtonKeytipProps(g));
var y = rp(t, [], ["disabled"]);
b && tg(t, b);
var x = function(r) {
return l.createElement("div", Object(zn.a)({}, y, {
"data-ktp-target": r ? r["data-ktp-target"] : void 0,
role: f || "button",
"aria-disabled": a,
"aria-haspopup": !0,
"aria-expanded": !m,
"aria-pressed": h ? !!c : void 0,
"aria-describedby": yg(t["aria-describedby"], r ? r["aria-describedby"] : void 0),
className: v && v.splitButtonContainer,
onKeyDown: n._onSplitButtonContainerKeyDown,
onTouchStart: n._onTouchStart,
ref: n._splitButtonContainer,
"data-is-focusable": !0,
onClick: a || d ? void 0 : n._onSplitButtonPrimaryClick,
tabIndex: !a && !d || s ? 0 : void 0,
"aria-roledescription": t["aria-roledescription"],
onFocusCapture: n._onSplitContainerFocusCapture
}), l.createElement("span", {
style: {
display: "flex"
}
}, n._onRenderContent(e, t), n._onRenderSplitButtonMenuButton(v, r), n._onRenderSplitButtonDivider(v)))
};
return g ? l.createElement(cO, {
keytipProps: g,
disabled: a
}, (function(e) {
return x(e)
}
)) : x()
}
,
t.prototype._onRenderSplitButtonDivider = function(e) {
return e && e.divider ? l.createElement("span", {
className: e.divider,
"aria-hidden": !0,
onClick: function(e) {
e.stopPropagation()
}
}) : null
}
,
t.prototype._onRenderSplitButtonMenuButton = function(e, n) {
var r = this.props
, i = r.allowDisabledFocus
, o = r.checked
, a = r.disabled
, s = r.splitButtonMenuProps
, c = r.splitButtonAriaLabel
, u = r.primaryDisabled
, d = this.state.menuHidden
, p = this.props.menuIconProps;
void 0 === p && (p = {
iconName: "ChevronDown"
});
var h = Object(zn.a)(Object(zn.a)({}, s), {
styles: e,
checked: o,
disabled: a,
allowDisabledFocus: i,
onClick: this._onMenuClick,
menuProps: void 0,
iconProps: Object(zn.a)(Object(zn.a)({}, p), {
className: this._classNames.menuIcon
}),
ariaLabel: c,
"aria-haspopup": !0,
"aria-expanded": !d,
"data-is-focusable": !1
});
return l.createElement(t, Object(zn.a)({}, h, {
"data-ktp-execute-target": n ? n["data-ktp-execute-target"] : n,
onMouseDown: this._onMouseDown,
tabIndex: u && !i ? 0 : -1
}))
}
,
t.prototype._onPointerDown = function(e) {
var t = this.props.onPointerDown;
t && t(e),
"touch" === e.pointerType && (this._handleTouchAndPointerEvent(),
e.preventDefault(),
e.stopImmediatePropagation())
}
,
t.prototype._handleTouchAndPointerEvent = function() {
var e = this;
void 0 !== this._lastTouchTimeoutId && (this._async.clearTimeout(this._lastTouchTimeoutId),
this._lastTouchTimeoutId = void 0),
this._processingTouch = !0,
this._lastTouchTimeoutId = this._async.setTimeout((function() {
e._processingTouch = !1,
e._lastTouchTimeoutId = void 0,
e.focus()
}
), 500)
}
,
t.prototype._isValidMenuOpenKey = function(e) {
return this.props.menuTriggerKeyCode ? e.which === this.props.menuTriggerKeyCode : !!this.props.menuProps && e.which === gp && (e.altKey || e.metaKey)
}
,
t.defaultProps = {
baseClassName: "ms-Button",
styles: {},
split: !1
},
t
}(l.Component);
function $O(e, t, n) {
return function(r) {
var i, o = ((i = function(i) {
function o(e) {
var t = i.call(this, e) || this;
return t._styleCache = {},
t._onSettingChanged = t._onSettingChanged.bind(t),
t
}
return Object(zn.c)(o, i),
o.prototype.componentDidMount = function() {
Yi.observe(this._onSettingChanged)
}
,
o.prototype.componentWillUnmount = function() {
Yi.unobserve(this._onSettingChanged)
}
,
o.prototype.render = function() {
var i = this;
return l.createElement(sp.Consumer, null, (function(o) {
var a = Yi.getSettings(t, e, o.customizations)
, s = i.props;
if (a.styles && "function" == typeof a.styles && (a.styles = a.styles(Object(zn.a)(Object(zn.a)({}, a), s))),
n && a.styles) {
if (i._styleCache.default !== a.styles || i._styleCache.component !== s.styles) {
var c = No(a.styles, s.styles);
i._styleCache.default = a.styles,
i._styleCache.component = s.styles,
i._styleCache.merged = c
}
return l.createElement(r, Object(zn.a)({}, a, s, {
styles: i._styleCache.merged
}))
}
return l.createElement(r, Object(zn.a)({}, a, s))
}
))
}
,
o.prototype._onSettingChanged = function() {
this.forceUpdate()
}
,
o
}(l.Component)).displayName = "Customized" + e,
i);
return xO(r, o)
}
}
var ej, tj = {
outline: 0
}, nj = function(e) {
return {
fontSize: e,
margin: "0 4px",
height: "16px",
lineHeight: "16px",
textAlign: "center",
flexShrink: 0
}
}, rj = Li((function(e) {
var t, n, r = e.semanticColors, i = e.effects, o = e.fonts, a = r.buttonBorder, l = r.disabledBackground, s = r.disabledText, c = {
left: -2,
top: -2,
bottom: -2,
right: -2,
outlineColor: "ButtonText"
};
return {
root: [Mi(e, {
inset: 1,
highContrastStyle: c,
borderColor: "transparent"
}), e.fonts.medium, {
boxSizing: "border-box",
border: "1px solid " + a,
userSelect: "none",
display: "inline-block",
textDecoration: "none",
textAlign: "center",
cursor: "pointer",
padding: "0 16px",
borderRadius: i.roundedCorner2,
selectors: {
":active > *": {
position: "relative",
left: 0,
top: 0
}
}
}],
rootDisabled: [Mi(e, {
inset: 1,
highContrastStyle: c,
borderColor: "transparent"
}), {
backgroundColor: l,
borderColor: l,
color: s,
cursor: "default",
selectors: {
":hover": tj,
":focus": tj
}
}],
iconDisabled: {
color: s,
selectors: (t = {},
t[vi] = {
color: "GrayText"
},
t)
},
menuIconDisabled: {
color: s,
selectors: (n = {},
n[vi] = {
color: "GrayText"
},
n)
},
flexContainer: {
display: "flex",
height: "100%",
flexWrap: "nowrap",
justifyContent: "center",
alignItems: "center"
},
description: {
display: "block"
},
textContainer: {
flexGrow: 1,
display: "block"
},
icon: nj(o.mediumPlus.fontSize),
menuIcon: nj(o.small.fontSize),
label: {
margin: "0 4px",
lineHeight: "100%",
display: "block"
},
screenReaderText: Ai
}
}
)), ij = Li((function(e, t) {
var n, r, i, o, a, l, s, c, u, d, p, h, f, b = e.effects, g = e.palette, m = e.semanticColors, v = {
left: -2,
top: -2,
bottom: -2,
right: -2,
border: "none"
}, y = {
position: "absolute",
width: 1,
right: 31,
top: 8,
bottom: 8
};
return No({
splitButtonContainer: [Mi(e, {
highContrastStyle: v,
inset: 2
}), {
display: "inline-flex",
selectors: {
".ms-Button--default": {
borderTopRightRadius: "0",
borderBottomRightRadius: "0",
borderRight: "none"
},
".ms-Button--primary": {
borderTopRightRadius: "0",
borderBottomRightRadius: "0",
border: "none",
selectors: (n = {},
n[vi] = Object(zn.a)({
color: "WindowText",
backgroundColor: "Window",
border: "1px solid WindowText",
borderRightWidth: "0"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
n)
},
".ms-Button--primary + .ms-Button": {
border: "none",
selectors: (r = {},
r[vi] = {
border: "1px solid WindowText",
borderLeftWidth: "0"
},
r)
}
}
}],
splitButtonContainerHovered: {
selectors: {
".ms-Button--primary": {
selectors: (i = {},
i[vi] = {
color: "Window",
backgroundColor: "Highlight"
},
i)
},
".ms-Button.is-disabled": {
color: m.buttonTextDisabled,
selectors: (o = {},
o[vi] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
o)
}
}
},
splitButtonContainerChecked: {
selectors: {
".ms-Button--primary": {
selectors: (a = {},
a[vi] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
a)
}
}
},
splitButtonContainerCheckedHovered: {
selectors: {
".ms-Button--primary": {
selectors: (l = {},
l[vi] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
l)
}
}
},
splitButtonContainerFocused: {
outline: "none!important"
},
splitButtonMenuButton: (s = {
padding: 6,
height: "auto",
boxSizing: "border-box",
borderRadius: 0,
borderTopRightRadius: b.roundedCorner2,
borderBottomRightRadius: b.roundedCorner2,
border: "1px solid " + g.neutralSecondaryAlt,
borderLeft: "none",
outline: "transparent",
userSelect: "none",
display: "inline-block",
textDecoration: "none",
textAlign: "center",
cursor: "pointer",
verticalAlign: "top",
width: 32,
marginLeft: -1,
marginTop: 0,
marginRight: 0,
marginBottom: 0
},
s[vi] = {
".ms-Button-menuIcon": {
color: "WindowText"
}
},
s),
splitButtonDivider: Object(zn.a)(Object(zn.a)({}, y), {
selectors: (c = {},
c[vi] = {
backgroundColor: "WindowText"
},
c)
}),
splitButtonDividerDisabled: Object(zn.a)(Object(zn.a)({}, y), {
selectors: (u = {},
u[vi] = {
backgroundColor: "GrayText"
},
u)
}),
splitButtonMenuButtonDisabled: {
pointerEvents: "none",
border: "none",
selectors: (d = {
":hover": {
cursor: "default"
},
".ms-Button--primary": {
selectors: (p = {},
p[vi] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
p)
},
".ms-Button-menuIcon": {
selectors: (h = {},
h[vi] = {
color: "GrayText"
},
h)
}
},
d[vi] = {
color: "GrayText",
border: "1px solid GrayText",
backgroundColor: "Window"
},
d)
},
splitButtonFlexContainer: {
display: "flex",
height: "100%",
flexWrap: "nowrap",
justifyContent: "center",
alignItems: "center"
},
splitButtonContainerDisabled: {
outline: "none",
border: "none",
selectors: (f = {},
f[vi] = Object(zn.a)({
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
f)
},
splitButtonMenuFocused: Object(zn.a)({}, Mi(e, {
highContrastStyle: v,
inset: 2
}))
}, t)
}
)), oj = Li((function(e, t, n) {
var r = rj(e)
, i = ij(e);
return No(r, {
root: {
minWidth: "80px",
height: "32px"
},
label: {
fontWeight: bi.semibold
}
}, n ? function(e) {
var t, n, r, i, o, a, l, s, c, u = e.palette, d = e.semanticColors;
return {
root: {
backgroundColor: d.primaryButtonBackground,
border: "1px solid " + d.primaryButtonBackground,
color: d.primaryButtonText,
selectors: (t = {},
t[vi] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText",
borderColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t[".ms-Fabric--isFocusVisible &:focus"] = {
selectors: {
":after": {
border: "none",
outlineColor: u.white
}
}
},
t)
},
rootHovered: {
backgroundColor: d.primaryButtonBackgroundHovered,
border: "1px solid " + d.primaryButtonBackgroundHovered,
color: d.primaryButtonTextHovered,
selectors: (n = {},
n[vi] = {
color: "Window",
backgroundColor: "Highlight",
borderColor: "Highlight"
},
n)
},
rootPressed: {
backgroundColor: d.primaryButtonBackgroundPressed,
border: "1px solid " + d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed,
selectors: (r = {},
r[vi] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText",
borderColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
r)
},
rootExpanded: {
backgroundColor: d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed
},
rootChecked: {
backgroundColor: d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed
},
rootCheckedHovered: {
backgroundColor: d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed
},
rootDisabled: {
color: d.primaryButtonTextDisabled,
backgroundColor: d.primaryButtonBackgroundDisabled,
selectors: (i = {},
i[vi] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
i)
},
splitButtonContainer: {
selectors: (o = {},
o[vi] = {
border: "none"
},
o)
},
splitButtonDivider: Object(zn.a)(Object(zn.a)({}, {
position: "absolute",
width: 1,
right: 31,
top: 8,
bottom: 8
}), {
backgroundColor: u.white,
selectors: (a = {},
a[vi] = {
backgroundColor: "Window"
},
a)
}),
splitButtonMenuButton: {
backgroundColor: d.primaryButtonBackground,
color: d.primaryButtonText,
selectors: (l = {},
l[vi] = {
backgroundColor: "WindowText"
},
l[":hover"] = {
backgroundColor: d.primaryButtonBackgroundHovered,
selectors: (s = {},
s[vi] = {
color: "Highlight"
},
s)
},
l)
},
splitButtonMenuButtonDisabled: {
backgroundColor: d.primaryButtonBackgroundDisabled,
selectors: {
":hover": {
backgroundColor: d.primaryButtonBackgroundDisabled
}
}
},
splitButtonMenuButtonChecked: {
backgroundColor: d.primaryButtonBackgroundPressed,
selectors: {
":hover": {
backgroundColor: d.primaryButtonBackgroundPressed
}
}
},
splitButtonMenuButtonExpanded: {
backgroundColor: d.primaryButtonBackgroundPressed,
selectors: {
":hover": {
backgroundColor: d.primaryButtonBackgroundPressed
}
}
},
splitButtonMenuIcon: {
color: d.primaryButtonText
},
splitButtonMenuIconDisabled: {
color: u.neutralTertiary,
selectors: (c = {},
c[vi] = {
color: "GrayText"
},
c)
}
}
}(e) : function(e) {
var t, n, r, i, o, a = e.semanticColors, l = e.palette, s = a.buttonBackground, c = a.buttonBackgroundPressed, u = a.buttonBackgroundHovered, d = a.buttonBackgroundDisabled, p = a.buttonText, h = a.buttonTextHovered, f = a.buttonTextDisabled, b = a.buttonTextChecked, g = a.buttonTextCheckedHovered;
return {
root: {
backgroundColor: s,
color: p
},
rootHovered: {
backgroundColor: u,
color: h,
selectors: (t = {},
t[vi] = {
borderColor: "Highlight",
color: "Highlight"
},
t)
},
rootPressed: {
backgroundColor: c,
color: b
},
rootExpanded: {
backgroundColor: c,
color: b
},
rootChecked: {
backgroundColor: c,
color: b
},
rootCheckedHovered: {
backgroundColor: c,
color: g
},
rootDisabled: {
color: f,
backgroundColor: d,
selectors: (n = {},
n[vi] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
n)
},
splitButtonContainer: {
selectors: (r = {},
r[vi] = {
border: "none"
},
r)
},
splitButtonMenuButton: {
color: l.white,
backgroundColor: "transparent",
selectors: {
":hover": {
backgroundColor: l.neutralLight,
selectors: (i = {},
i[vi] = {
color: "Highlight"
},
i)
}
}
},
splitButtonMenuButtonDisabled: {
backgroundColor: a.buttonBackgroundDisabled,
selectors: {
":hover": {
backgroundColor: a.buttonBackgroundDisabled
}
}
},
splitButtonDivider: Object(zn.a)(Object(zn.a)({}, {
position: "absolute",
width: 1,
right: 31,
top: 8,
bottom: 8
}), {
backgroundColor: l.neutralTertiaryAlt,
selectors: (o = {},
o[vi] = {
backgroundColor: "WindowText"
},
o)
}),
splitButtonDividerDisabled: {
backgroundColor: e.palette.neutralTertiaryAlt
},
splitButtonMenuButtonChecked: {
backgroundColor: l.neutralQuaternaryAlt,
selectors: {
":hover": {
backgroundColor: l.neutralQuaternaryAlt
}
}
},
splitButtonMenuButtonExpanded: {
backgroundColor: l.neutralQuaternaryAlt,
selectors: {
":hover": {
backgroundColor: l.neutralQuaternaryAlt
}
}
},
splitButtonMenuIcon: {
color: a.buttonText
},
splitButtonMenuIconDisabled: {
color: a.buttonTextDisabled
}
}
}(e), i, t)
}
)), aj = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.primary
, n = void 0 !== t && t
, r = e.styles
, i = e.theme;
return l.createElement(ZO, Object(zn.a)({}, this.props, {
variantClassName: n ? "ms-Button--primary" : "ms-Button--default",
styles: oj(i, r, n),
onRenderDescription: ug
}))
}
,
Object(zn.b)([$O("DefaultButton", ["theme", "styles"], !0)], t)
}(l.Component), lj = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)(aj, {
text: "Standard",
onClick: function() {},
allowDisabledFocus: !0,
disabled: !1,
checked: !1
})
}
}]),
n
}(l.Component), sj = lj, cj = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
style: {
backgroundColor: "red"
},
children: Object(Ip.jsx)(sj, {})
})
}
}]),
n
}(l.Component), uj = cj, dj = function(e, t) {
return t.spacing.hasOwnProperty(e) ? t.spacing[e] : e
}, pj = function(e) {
var t = parseFloat(e)
, n = isNaN(t) ? 0 : t
, r = isNaN(t) ? "" : t.toString();
return {
value: n,
unit: e.substring(r.toString().length) || "px"
}
}, hj = function(e, t) {
if (void 0 === e || "number" == typeof e || "" === e)
return e;
var n = e.split(" ");
return n.length < 2 ? dj(e, t) : n.reduce((function(e, n) {
return dj(e, t) + " " + dj(n, t)
}
))
}, fj = {
start: "flex-start",
end: "flex-end"
}, bj = {
root: "ms-Stack",
inner: "ms-Stack-inner"
}, gj = {
root: "ms-StackItem"
}, mj = {
start: "flex-start",
end: "flex-end"
}, vj = _p((function(e) {
var t = e.children
, n = rp(e, Dd);
return null == t ? null : Op(Cp(e, {
root: "div"
}).root, Object(zn.a)({}, n), t)
}
), {
displayName: "StackItem",
styles: function(e, t, n) {
var r = e.grow
, i = e.shrink
, o = e.disableShrink
, a = e.align
, l = e.verticalFill
, s = e.order
, c = e.className
, u = Vi(gj, t);
return {
root: [t.fonts.medium, u.root, {
margin: n.margin,
padding: n.padding,
height: l ? "100%" : "auto",
width: "auto"
}, r && {
flexGrow: !0 === r ? 1 : r
}, (o || !r && !i) && {
flexShrink: 0
}, i && !o && {
flexShrink: 1
}, a && {
alignSelf: mj[a] || a
}, s && {
order: s
}, c]
}
}
}), yj = _p((function(e) {
var t = e.as
, n = void 0 === t ? "div" : t
, r = e.disableShrink
, i = e.wrap
, o = Object(zn.d)(e, ["as", "disableShrink", "wrap"])
, a = l.Children.toArray(e.children);
1 === a.length && l.isValidElement(a[0]) && a[0].type === l.Fragment && (a = a[0].props.children),
a = l.Children.map(a, (function(e, t) {
if (!e)
return null;
if ((i = e) && "object" == typeof i && i.type && i.type.displayName === vj.displayName) {
var n = {
shrink: !r
};
return l.cloneElement(e, Object(zn.a)(Object(zn.a)({}, n), e.props))
}
var i;
return e
}
));
var s = rp(o, Dd)
, c = Cp(e, {
root: n,
inner: "div"
});
return Op(c.root, Object(zn.a)({}, s), i ? Op(c.inner, null, a) : a)
}
), {
displayName: "Stack",
styles: function(e, t, n) {
var r, i, o, a, l, s, c, u = e.verticalFill, d = e.horizontal, p = e.reversed, h = e.grow, f = e.wrap, b = e.horizontalAlign, g = e.verticalAlign, m = e.disableShrink, v = e.className, y = Vi(bj, t), x = n && n.childrenGap ? n.childrenGap : e.gap, O = n && n.maxHeight ? n.maxHeight : e.maxHeight, j = n && n.maxWidth ? n.maxWidth : e.maxWidth, k = n && n.padding ? n.padding : e.padding, w = function(e, t) {
if (void 0 === e || "" === e)
return {
rowGap: {
value: 0,
unit: "px"
},
columnGap: {
value: 0,
unit: "px"
}
};
if ("number" == typeof e)
return {
rowGap: {
value: e,
unit: "px"
},
columnGap: {
value: e,
unit: "px"
}
};
var n = e.split(" ");
if (n.length > 2)
return {
rowGap: {
value: 0,
unit: "px"
},
columnGap: {
value: 0,
unit: "px"
}
};
if (2 === n.length)
return {
rowGap: pj(dj(n[0], t)),
columnGap: pj(dj(n[1], t))
};
var r = pj(dj(e, t));
return {
rowGap: r,
columnGap: r
}
}(x, t), C = w.rowGap, _ = w.columnGap, M = "" + -.5 * _.value + _.unit, S = "" + -.5 * C.value + C.unit, A = {
textOverflow: "ellipsis"
}, T = {
"> *:not(.ms-StackItem)": {
flexShrink: m ? 0 : 1
}
};
return f ? {
root: [y.root, {
flexWrap: "wrap",
maxWidth: j,
maxHeight: O,
width: "auto",
overflow: "visible",
height: "100%"
}, b && (r = {},
r[d ? "justifyContent" : "alignItems"] = fj[b] || b,
r), g && (i = {},
i[d ? "alignItems" : "justifyContent"] = fj[g] || g,
i), v, {
display: "flex"
}, d && {
height: u ? "100%" : "auto"
}],
inner: [y.inner, {
display: "flex",
flexWrap: "wrap",
marginLeft: M,
marginRight: M,
marginTop: S,
marginBottom: S,
overflow: "visible",
boxSizing: "border-box",
padding: hj(k, t),
width: 0 === _.value ? "100%" : "calc(100% + " + _.value + _.unit + ")",
maxWidth: "100vw",
selectors: Object(zn.a)({
"> *": Object(zn.a)({
margin: "" + .5 * C.value + C.unit + " " + .5 * _.value + _.unit
}, A)
}, T)
}, b && (o = {},
o[d ? "justifyContent" : "alignItems"] = fj[b] || b,
o), g && (a = {},
a[d ? "alignItems" : "justifyContent"] = fj[g] || g,
a), d && {
flexDirection: p ? "row-reverse" : "row",
height: 0 === C.value ? "100%" : "calc(100% + " + C.value + C.unit + ")",
selectors: {
"> *": {
maxWidth: 0 === _.value ? "100%" : "calc(100% - " + _.value + _.unit + ")"
}
}
}, !d && {
flexDirection: p ? "column-reverse" : "column",
height: "calc(100% + " + C.value + C.unit + ")",
selectors: {
"> *": {
maxHeight: 0 === C.value ? "100%" : "calc(100% - " + C.value + C.unit + ")"
}
}
}]
} : {
root: [y.root, {
display: "flex",
flexDirection: d ? p ? "row-reverse" : "row" : p ? "column-reverse" : "column",
flexWrap: "nowrap",
width: "auto",
height: u ? "100%" : "auto",
maxWidth: j,
maxHeight: O,
padding: hj(k, t),
boxSizing: "border-box",
selectors: Object(zn.a)((l = {
"> *": A
},
l[p ? "> *:not(:last-child)" : "> *:not(:first-child)"] = [d && {
marginLeft: "" + _.value + _.unit
}, !d && {
marginTop: "" + C.value + C.unit
}],
l), T)
}, h && {
flexGrow: !0 === h ? 1 : h
}, b && (s = {},
s[d ? "justifyContent" : "alignItems"] = fj[b] || b,
s), g && (c = {},
c[d ? "alignItems" : "justifyContent"] = fj[g] || g,
c), v]
}
},
statics: {
Item: vj
}
});
!function(e) {
e[e.normal = 0] = "normal",
e[e.largeHeader = 1] = "largeHeader",
e[e.close = 2] = "close"
}(ej || (ej = {}));
var xj = l.forwardRef((function(e, t) {
var n = l.useRef(null)
, r = l.useRef(null)
, i = l.useRef(null)
, o = Eg(n, t)
, a = gO(void 0, e.id)
, s = ix()
, c = rp(e, np)
, u = $y((function() {
return {
previouslyFocusedElementOutsideTrapZone: void 0,
previouslyFocusedElementInTrapZone: void 0,
disposeFocusHandler: void 0,
disposeClickHandler: void 0,
hasFocus: !1,
unmodalize: void 0
}
}
))
, d = e.ariaLabelledBy
, p = e.className
, h = e.children
, f = e.componentRef
, b = e.disabled
, g = e.disableFirstFocus
, m = void 0 !== g && g
, v = e.disabled
, y = void 0 !== v && v
, x = e.elementToFocusOnDismiss
, O = e.forceFocusInsideTrap
, j = void 0 === O || O
, k = e.focusPreviouslyFocusedInnerElement
, w = e.firstFocusableSelector
, C = e.firstFocusableTarget
, _ = e.ignoreExternalFocusing
, M = e.isClickableOutsideFocusTrap
, S = void 0 !== M && M
, A = e.onFocus
, T = e.onBlur
, E = e.onFocusCapture
, I = e.onBlurCapture
, N = e.enableAriaHiddenSiblings
, z = {
"aria-hidden": !0,
style: {
pointerEvents: "none",
position: "fixed"
},
tabIndex: b ? -1 : 0,
"data-is-visible": !0
}
, D = l.useCallback((function() {
if (k && u.previouslyFocusedElementInTrapZone && Yv(n.current, u.previouslyFocusedElementInTrapZone))
ay(u.previouslyFocusedElementInTrapZone);
else {
var e = "string" == typeof w ? w : w && w()
, t = null;
n.current && ("string" == typeof C ? t = n.current.querySelector(C) : C ? t = C(n.current) : e && (t = n.current.querySelector("." + e)),
t || (t = $v(n.current, n.current.firstChild, !1, !1, !1, !0))),
t && ay(t)
}
}
), [w, C, k, u])
, L = l.useCallback((function(e) {
if (!b) {
var t, o = e === u.hasFocus ? i.current : r.current;
if (n.current) {
var a = e === u.hasFocus ? (void 0 === (t = !1) && (t = !0),
Zv(n.current, o, t, !1, !0, !0, !1, !0)) : function(e, t, n, r) {
return void 0 === r && (r = !0),
$v(e, t, r, !1, !1, !0, !1, !0)
}(n.current, o, 0, !1);
a && (a === r.current || a === i.current ? D() : a.focus())
}
}
}
), [b, D, u])
, R = l.useCallback((function(e) {
null == I || I(e);
var t = e.relatedTarget;
null === e.relatedTarget && (t = s.activeElement),
Yv(n.current, t) || (u.hasFocus = !1)
}
), [s, u, I])
, P = l.useCallback((function(e) {
null == E || E(e),
e.target === r.current ? L(!0) : e.target === i.current && L(!1),
u.hasFocus = !0,
e.target !== e.currentTarget && e.target !== r.current && e.target !== i.current && (u.previouslyFocusedElementInTrapZone = e.target)
}
), [E, u, L])
, B = l.useCallback((function() {
if (xj.focusStack = xj.focusStack.filter((function(e) {
return a !== e
}
)),
s) {
var e = s.activeElement;
_ || !u.previouslyFocusedElementOutsideTrapZone || "function" != typeof u.previouslyFocusedElementOutsideTrapZone.focus || !Yv(n.current, e) && e !== s.body || u.previouslyFocusedElementOutsideTrapZone !== r.current && u.previouslyFocusedElementOutsideTrapZone !== i.current && ay(u.previouslyFocusedElementOutsideTrapZone)
}
}
), [s, a, _, u])
, F = l.useCallback((function(e) {
if (!b && xj.focusStack.length && a === xj.focusStack[xj.focusStack.length - 1]) {
var t = e.target;
Yv(n.current, t) || (D(),
u.hasFocus = !0,
e.preventDefault(),
e.stopPropagation())
}
}
), [b, a, D, u])
, V = l.useCallback((function(e) {
if (!b && xj.focusStack.length && a === xj.focusStack[xj.focusStack.length - 1]) {
var t = e.target;
t && !Yv(n.current, t) && (D(),
u.hasFocus = !0,
e.preventDefault(),
e.stopPropagation())
}
}
), [b, a, D, u])
, W = l.useCallback((function() {
j && !u.disposeFocusHandler ? u.disposeFocusHandler = vy(window, "focus", F, !0) : !j && u.disposeFocusHandler && (u.disposeFocusHandler(),
u.disposeFocusHandler = void 0),
S || u.disposeClickHandler ? S && u.disposeClickHandler && (u.disposeClickHandler(),
u.disposeClickHandler = void 0) : u.disposeClickHandler = vy(window, "click", V, !0)
}
), [V, F, j, S, u]);
return l.useEffect((function() {
var e = n.current;
return W(),
function() {
b && !j && Yv(e, null == s ? void 0 : s.activeElement) || B()
}
}
), [W]),
l.useEffect((function() {
var e = void 0 === j || j
, t = void 0 !== b && b;
if (!t || e) {
if (y)
return;
xj.focusStack.push(a),
u.previouslyFocusedElementOutsideTrapZone = x || s.activeElement,
m || Yv(n.current, u.previouslyFocusedElementOutsideTrapZone) || D(),
!u.unmodalize && n.current && N && (u.unmodalize = function(e) {
for (var t, n = [], r = ro(e) || document; e !== r.body; ) {
for (var i = 0, o = e.parentElement.children; i < o.length; i++) {
var a = o[i];
a !== e && "true" !== (null === (t = a.getAttribute("aria-hidden")) || void 0 === t ? void 0 : t.toLowerCase()) && n.push(a)
}
if (!e.parentElement)
break;
e = e.parentElement
}
return n.forEach((function(e) {
e.setAttribute("aria-hidden", "true")
}
)),
function() {
!function(e) {
e.forEach((function(e) {
e.setAttribute("aria-hidden", "false")
}
))
}(n),
n = []
}
}(n.current))
} else
e && !t || (B(),
u.unmodalize && u.unmodalize());
x && u.previouslyFocusedElementOutsideTrapZone !== x && (u.previouslyFocusedElementOutsideTrapZone = x)
}
), [x, j, b]),
Oj((function() {
u.disposeClickHandler && (u.disposeClickHandler(),
u.disposeClickHandler = void 0),
u.disposeFocusHandler && (u.disposeFocusHandler(),
u.disposeFocusHandler = void 0),
u.unmodalize && u.unmodalize(),
delete u.previouslyFocusedElementInTrapZone,
delete u.previouslyFocusedElementOutsideTrapZone
}
)),
function(e, t, n) {
l.useImperativeHandle(e, (function() {
return {
get previouslyFocusedElement() {
return t
},
focus: n
}
}
), [t, n])
}(f, u.previouslyFocusedElementInTrapZone, D),
l.createElement("div", Object(zn.a)({}, c, {
className: p,
ref: o,
"aria-labelledby": d,
onFocusCapture: P,
onFocus: A,
onBlur: T,
onBlurCapture: R
}), l.createElement("div", Object(zn.a)({}, z, {
ref: r
})), h, l.createElement("div", Object(zn.a)({}, z, {
ref: i
})))
}
))
, Oj = function(e) {
var t = l.useRef(e);
t.current = e,
l.useEffect((function() {
return function() {
t.current && t.current()
}
}
), [e])
};
xj.displayName = "FocusTrapZone",
xj.focusStack = [];
var jj = ti
, kj = {
root: "ms-Modal",
main: "ms-Dialog-main",
scrollableContent: "ms-Modal-scrollableContent",
isOpen: "is-open",
layer: "ms-Modal-Layer"
}
, wj = Sg()
, Cj = function(e) {
function t(t) {
var n = e.call(this, t) || this;
Kb(n);
var r = n.props.allowTouchBodyScroll
, i = void 0 !== r && r;
return n._allowTouchBodyScroll = i,
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
!this._allowTouchBodyScroll && function() {
var e = ro();
e && e.body && !yy && (e.body.classList.add(xy),
e.body.addEventListener("touchmove", wy, {
passive: !1,
capture: !1
})),
yy++
}()
}
,
t.prototype.componentWillUnmount = function() {
!this._allowTouchBodyScroll && function() {
if (yy > 0) {
var e = ro();
e && e.body && 1 === yy && (e.body.classList.remove(xy),
e.body.removeEventListener("touchmove", wy)),
yy--
}
}()
}
,
t.prototype.render = function() {
var e = this.props
, t = e.isDarkThemed
, n = e.className
, r = e.theme
, i = e.styles
, o = rp(this.props, np)
, a = wj(i, {
theme: r,
className: n,
isDark: t
});
return l.createElement("div", Object(zn.a)({}, o, {
className: a.root
}))
}
,
t
}(l.Component)
, _j = {
root: "ms-Overlay",
rootDark: "ms-Overlay--dark"
}
, Mj = jg(Cj, (function(e) {
var t, n = e.className, r = e.theme, i = e.isNone, o = e.isDark, a = r.palette, l = Vi(_j, r);
return {
root: [l.root, r.fonts.medium, {
backgroundColor: a.whiteTranslucent40,
top: 0,
right: 0,
bottom: 0,
left: 0,
position: "absolute",
selectors: (t = {},
t[vi] = {
border: "1px solid WindowText",
opacity: 0
},
t)
}, i && {
visibility: "hidden"
}, o && [l.rootDark, {
backgroundColor: a.blackTranslucent40
}], n]
}
}
), void 0, {
scope: "Overlay"
})
, Sj = Li((function(e, t) {
return {
root: dr(e, t && {
touchAction: "none",
selectors: {
"& *": {
userSelect: "none"
}
}
})
}
}
))
, Aj = {
start: "touchstart",
move: "touchmove",
stop: "touchend"
}
, Tj = {
start: "mousedown",
move: "mousemove",
stop: "mouseup"
}
, Ej = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._currentEventType = Tj,
n._events = [],
n._onMouseDown = function(e) {
var t = l.Children.only(n.props.children).props.onMouseDown;
return t && t(e),
n._currentEventType = Tj,
n._onDragStart(e)
}
,
n._onMouseUp = function(e) {
var t = l.Children.only(n.props.children).props.onMouseUp;
return t && t(e),
n._currentEventType = Tj,
n._onDragStop(e)
}
,
n._onTouchStart = function(e) {
var t = l.Children.only(n.props.children).props.onTouchStart;
return t && t(e),
n._currentEventType = Aj,
n._onDragStart(e)
}
,
n._onTouchEnd = function(e) {
var t = l.Children.only(n.props.children).props.onTouchEnd;
t && t(e),
n._currentEventType = Aj,
n._onDragStop(e)
}
,
n._onDragStart = function(e) {
if ("number" == typeof e.button && 0 !== e.button)
return !1;
if (!(n.props.handleSelector && !n._matchesSelector(e.target, n.props.handleSelector) || n.props.preventDragSelector && n._matchesSelector(e.target, n.props.preventDragSelector))) {
n._touchId = n._getTouchId(e);
var t = n._getControlPosition(e);
if (void 0 !== t) {
var r = n._createDragDataFromPosition(t);
n.props.onStart && n.props.onStart(e, r),
n.setState({
isDragging: !0,
lastPosition: t
}),
n._events = [vy(document.body, n._currentEventType.move, n._onDrag, !0), vy(document.body, n._currentEventType.stop, n._onDragStop, !0)]
}
}
}
,
n._onDrag = function(e) {
"touchmove" === e.type && e.preventDefault();
var t = n._getControlPosition(e);
if (t) {
var r = n._createUpdatedDragData(n._createDragDataFromPosition(t))
, i = r.position;
n.props.onDragChange && n.props.onDragChange(e, r),
n.setState({
position: i,
lastPosition: t
})
}
}
,
n._onDragStop = function(e) {
if (n.state.isDragging) {
var t = n._getControlPosition(e);
if (t) {
var r = n._createDragDataFromPosition(t);
n.setState({
isDragging: !1,
lastPosition: void 0
}),
n.props.onStop && n.props.onStop(e, r),
n.props.position && n.setState({
position: n.props.position
}),
n._events.forEach((function(e) {
return e()
}
))
}
}
}
,
n.state = {
isDragging: !1,
position: n.props.position || {
x: 0,
y: 0
},
lastPosition: void 0
},
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidUpdate = function(e) {
!this.props.position || e.position && this.props.position === e.position || this.setState({
position: this.props.position
})
}
,
t.prototype.componentWillUnmount = function() {
this._events.forEach((function(e) {
return e()
}
))
}
,
t.prototype.render = function() {
var e = l.Children.only(this.props.children)
, t = e.props
, n = this.props.position
, r = this.state
, i = r.position
, o = r.isDragging
, a = i.x
, s = i.y;
return n && !o && (a = n.x,
s = n.y),
l.cloneElement(e, {
style: Object(zn.a)(Object(zn.a)({}, t.style), {
transform: "translate(" + a + "px, " + s + "px)"
}),
className: Sj(t.className, this.state.isDragging).root,
onMouseDown: this._onMouseDown,
onMouseUp: this._onMouseUp,
onTouchStart: this._onTouchStart,
onTouchEnd: this._onTouchEnd
})
}
,
t.prototype._getControlPosition = function(e) {
var t = this._getActiveTouch(e);
if (void 0 === this._touchId || t) {
var n = t || e;
return {
x: n.clientX,
y: n.clientY
}
}
}
,
t.prototype._getActiveTouch = function(e) {
return e.targetTouches && this._findTouchInTouchList(e.targetTouches) || e.changedTouches && this._findTouchInTouchList(e.changedTouches)
}
,
t.prototype._getTouchId = function(e) {
var t = e.targetTouches && e.targetTouches[0] || e.changedTouches && e.changedTouches[0];
if (t)
return t.identifier
}
,
t.prototype._matchesSelector = function(e, t) {
if (!e || e === document.body)
return !1;
var n = e.matches || e.webkitMatchesSelector || e.msMatchesSelector;
return !!n && (n.call(e, t) || this._matchesSelector(e.parentElement, t))
}
,
t.prototype._findTouchInTouchList = function(e) {
if (void 0 !== this._touchId)
for (var t = 0; t < e.length; t++)
if (e[t].identifier === this._touchId)
return e[t]
}
,
t.prototype._createDragDataFromPosition = function(e) {
var t = this.state.lastPosition;
return void 0 === t ? {
delta: {
x: 0,
y: 0
},
lastPosition: e,
position: e
} : {
delta: {
x: e.x - t.x,
y: e.y - t.y
},
lastPosition: t,
position: e
}
}
,
t.prototype._createUpdatedDragData = function(e) {
var t = this.state.position;
return {
position: {
x: t.x + e.delta.x,
y: t.y + e.delta.y
},
delta: e.delta,
lastPosition: t
}
}
,
t
}(l.Component)
, Ij = function() {
var e = $y({});
return l.useEffect((function() {
return function() {
for (var t = 0, n = Object.keys(e); t < n.length; t++) {
var r = n[t];
clearTimeout(r)
}
}
}
), [e]),
$y({
setTimeout: function(e) {
function t(t, n) {
return e.apply(this, arguments)
}
return t.toString = function() {
return e.toString()
}
,
t
}((function(t, n) {
var r = setTimeout(t, n);
return e[r] = 1,
r
}
)),
clearTimeout: function(e) {
function t(t) {
return e.apply(this, arguments)
}
return t.toString = function() {
return e.toString()
}
,
t
}((function(t) {
delete e[t],
clearTimeout(t)
}
))
})
};
function Nj(e) {
var t = l.useState(e)
, n = t[0]
, r = t[1];
return [n, {
setTrue: $y((function() {
return function() {
r(!0)
}
}
)),
setFalse: $y((function() {
return function() {
r(!1)
}
}
)),
toggle: $y((function() {
return function() {
r((function(e) {
return !e
}
))
}
}
))
}]
}
var zj = {
x: 0,
y: 0
}
, Dj = {
isOpen: !1,
isDarkOverlay: !0,
className: "",
containerClassName: ""
}
, Lj = Sg()
, Rj = l.forwardRef((function(e, t) {
var n = hy(Dj, e)
, r = n.allowTouchBodyScroll
, i = n.className
, o = n.children
, a = n.containerClassName
, s = n.scrollableContentClassName
, c = n.elementToFocusOnDismiss
, u = n.firstFocusableSelector
, d = n.forceFocusInsideTrap
, p = n.ignoreExternalFocusing
, h = n.isBlocking
, f = n.isAlert
, b = n.isClickableOutsideFocusTrap
, g = n.isDarkOverlay
, m = n.onDismiss
, v = n.layerProps
, y = n.overlay
, x = n.isOpen
, O = n.titleAriaId
, j = n.styles
, k = n.subtitleAriaId
, w = n.theme
, C = n.topOffsetFixed
, _ = n.responsiveMode
, M = n.onLayerDidMount
, S = n.isModeless
, A = n.dragOptions
, T = n.onDismissed
, E = n.enableAriaHiddenSiblings
, I = l.useRef(null)
, N = l.useRef(null)
, z = l.useRef(null)
, D = Eg(I, t)
, L = MO(D)
, R = gO("ModalFocusTrapZone")
, P = rx()
, B = Ij()
, F = B.setTimeout
, V = B.clearTimeout
, W = l.useState(x)
, q = W[0]
, H = W[1]
, U = l.useState(x)
, X = U[0]
, G = U[1]
, K = l.useState(zj)
, Y = K[0]
, Q = K[1]
, J = l.useState()
, Z = J[0]
, $ = J[1]
, ee = Nj(!1)
, te = ee[0]
, ne = ee[1]
, re = ne.toggle
, ie = ne.setFalse
, oe = $y((function() {
return {
onModalCloseTimer: 0,
allowTouchBodyScroll: r,
scrollableContent: null,
lastSetCoordinates: zj,
events: new rg({})
}
}
))
, ae = (A || {}).keepInBounds
, le = null != f ? f : h && !S
, se = void 0 === v ? "" : v.className
, ce = Lj(j, {
theme: w,
className: i,
containerClassName: a,
scrollableContentClassName: s,
isOpen: x,
isVisible: X,
hasBeenOpened: oe.hasBeenOpened,
modalRectangleTop: Z,
topOffsetFixed: C,
isModeless: S,
layerClassName: se,
windowInnerHeight: null == P ? void 0 : P.innerHeight,
isDefaultDragHandle: A && !A.dragHandleSelector
})
, ue = Object(zn.a)(Object(zn.a)({
eventBubblingEnabled: !1
}, v), {
onLayerDidMount: v && v.onLayerDidMount ? v.onLayerDidMount : M,
insertFirst: S,
className: ce.layer
})
, de = l.useCallback((function(e) {
e ? oe.allowTouchBodyScroll ? ky(e, oe.events) : jy(e, oe.events) : oe.events.off(oe.scrollableContent),
oe.scrollableContent = e
}
), [oe])
, pe = function() {
var e = z.current
, t = null == e ? void 0 : e.getBoundingClientRect();
t && (C && $(t.top),
ae && (oe.minPosition = {
x: -t.left,
y: -t.top
},
oe.maxPosition = {
x: t.left,
y: t.top
}))
}
, he = l.useCallback((function(e, t) {
var n = oe.minPosition
, r = oe.maxPosition;
return ae && n && r && (t = Math.max(n[e], t),
t = Math.min(r[e], t)),
t
}
), [ae, oe])
, fe = function() {
var e;
oe.lastSetCoordinates = zj,
ie(),
oe.isInKeyboardMoveMode = !1,
H(!1),
Q(zj),
null === (e = oe.disposeOnKeyUp) || void 0 === e || e.call(oe),
null == T || T()
}
, be = l.useCallback((function() {
ie(),
oe.isInKeyboardMoveMode = !1
}
), [oe, ie])
, ge = l.useCallback((function(e, t) {
Q((function(e) {
return {
x: he("x", e.x + t.delta.x),
y: he("y", e.y + t.delta.y)
}
}
))
}
), [he])
, me = l.useCallback((function() {
N.current && N.current.focus()
}
), []);
l.useEffect((function() {
V(oe.onModalCloseTimer),
x && (requestAnimationFrame((function() {
return F(pe, 0)
}
)),
H(!0),
A && function() {
var e = function(e) {
e.altKey && e.ctrlKey && e.keyCode === pp && Yv(oe.scrollableContent, e.target) && (re(),
e.preventDefault(),
e.stopPropagation())
};
oe.disposeOnKeyUp || (oe.events.on(P, "keyup", e, !0),
oe.disposeOnKeyUp = function() {
oe.events.off(P, "keyup", e, !0),
oe.disposeOnKeyUp = void 0
}
)
}(),
oe.hasBeenOpened = !0,
G(!0)),
!x && q && (oe.onModalCloseTimer = F(fe, 1e3 * parseFloat(jj)),
G(!1))
}
), [q, x]),
function(e) {
var t = l.useRef(e);
t.current = e,
l.useEffect((function() {
return function() {
var e;
null === (e = t.current) || void 0 === e || e.call(t)
}
}
), [])
}((function() {
oe.events.dispose()
}
)),
function(e, t) {
l.useImperativeHandle(e.componentRef, (function() {
return {
focus: function() {
t.current && t.current.focus()
}
}
}
), [t])
}(n, N);
var ve = l.createElement(xj, {
id: R,
ref: z,
componentRef: N,
className: ce.main,
elementToFocusOnDismiss: c,
isClickableOutsideFocusTrap: S || b || !h,
ignoreExternalFocusing: p,
forceFocusInsideTrap: S ? !S : d,
firstFocusableSelector: u,
focusPreviouslyFocusedInnerElement: !0,
onBlur: oe.isInKeyboardMoveMode ? function() {
var e;
oe.lastSetCoordinates = zj,
oe.isInKeyboardMoveMode = !1,
null === (e = oe.disposeOnKeyDown) || void 0 === e || e.call(oe)
}
: void 0,
enableAriaHiddenSiblings: E
}, A && oe.isInKeyboardMoveMode && l.createElement("div", {
className: ce.keyboardMoveIconContainer
}, A.keyboardMoveIconProps ? l.createElement(Pg, Object(zn.a)({}, A.keyboardMoveIconProps)) : l.createElement(Pg, {
iconName: "move",
className: ce.keyboardMoveIcon
})), l.createElement("div", {
ref: de,
className: ce.scrollableContent,
"data-is-scrollable": !0
}, A && te && l.createElement(A.menu, {
items: [{
key: "move",
text: A.moveMenuItemText,
onClick: function() {
var e = function(e) {
if (e.altKey && e.ctrlKey && e.keyCode === pp)
return e.preventDefault(),
void e.stopPropagation();
if (te && (e.altKey || e.keyCode === dp) && ie(),
!oe.isInKeyboardMoveMode || e.keyCode !== dp && e.keyCode !== cp || (oe.isInKeyboardMoveMode = !1,
e.preventDefault(),
e.stopPropagation()),
oe.isInKeyboardMoveMode) {
var t = !0
, n = function(e) {
var t = 10;
return e.shiftKey ? e.ctrlKey || (t = 50) : e.ctrlKey && (t = 1),
t
}(e);
switch (e.keyCode) {
case dp:
Q(oe.lastSetCoordinates);
case cp:
oe.lastSetCoordinates = zj;
break;
case fp:
Q((function(e) {
return {
x: e.x,
y: he("y", e.y - n)
}
}
));
break;
case gp:
Q((function(e) {
return {
x: e.x,
y: he("y", e.y + n)
}
}
));
break;
case hp:
Q((function(e) {
return {
x: he("x", e.x - n),
y: e.y
}
}
));
break;
case bp:
Q((function(e) {
return {
x: he("x", e.x + n),
y: e.y
}
}
));
break;
default:
t = !1
}
t && (e.preventDefault(),
e.stopPropagation())
}
};
oe.lastSetCoordinates = Y,
ie(),
oe.isInKeyboardMoveMode = !0,
oe.events.on(P, "keydown", e, !0),
oe.disposeOnKeyDown = function() {
oe.events.off(P, "keydown", e, !0),
oe.disposeOnKeyDown = void 0
}
}
}, {
key: "close",
text: A.closeMenuItemText,
onClick: fe
}],
onDismiss: ie,
alignTargetEdge: !0,
coverTarget: !0,
directionalHint: 0,
directionalHintFixed: !0,
shouldFocusOnMount: !0,
target: oe.scrollableContent
}), o));
return q && L >= (_ || mO.small) && l.createElement(Px, Object(zn.a)({
ref: D
}, ue), l.createElement(sx, {
role: le ? "alertdialog" : "dialog",
"aria-modal": !S,
ariaLabelledBy: O,
ariaDescribedBy: k,
onDismiss: m,
shouldRestoreFocus: !p
}, l.createElement("div", {
className: ce.root,
role: S ? void 0 : "document"
}, !S && l.createElement(Mj, Object(zn.a)({
"aria-hidden": !0,
isDarkThemed: g,
onClick: h ? void 0 : m,
allowTouchBodyScroll: r
}, y)), A ? l.createElement(Ej, {
handleSelector: A.dragHandleSelector || "#" + R,
preventDragSelector: "button",
onStart: be,
onDragChange: ge,
onStop: me,
position: Y
}, ve) : ve))) || null
}
));
Rj.displayName = "Modal";
var Pj = jg(Rj, (function(e) {
var t, n = e.className, r = e.containerClassName, i = e.scrollableContentClassName, o = e.isOpen, a = e.isVisible, l = e.hasBeenOpened, s = e.modalRectangleTop, c = e.theme, u = e.topOffsetFixed, d = e.isModeless, p = e.layerClassName, h = e.isDefaultDragHandle, f = e.windowInnerHeight, b = c.palette, g = c.effects, m = c.fonts, v = Vi(kj, c);
return {
root: [v.root, m.medium, {
backgroundColor: "transparent",
position: d ? "absolute" : "fixed",
height: "100%",
width: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
opacity: 0,
pointerEvents: "none",
transition: "opacity " + jj
}, u && "number" == typeof s && l && {
alignItems: "flex-start"
}, o && v.isOpen, a && {
opacity: 1,
pointerEvents: "auto"
}, n],
main: [v.main, {
boxShadow: g.elevation64,
borderRadius: g.roundedCorner2,
backgroundColor: b.white,
boxSizing: "border-box",
position: "relative",
textAlign: "left",
outline: "3px solid transparent",
maxHeight: "calc(100% - 32px)",
maxWidth: "calc(100% - 32px)",
minHeight: "176px",
minWidth: "288px",
overflowY: "auto",
zIndex: d ? ki.Layer : void 0
}, u && "number" == typeof s && l && {
top: s
}, h && {
cursor: "move"
}, r],
scrollableContent: [v.scrollableContent, {
overflowY: "auto",
flexGrow: 1,
maxHeight: "100vh",
selectors: (t = {},
t["@supports (-webkit-overflow-scrolling: touch)"] = {
maxHeight: f
},
t)
}, i],
layer: d && [p, v.layer, {
position: "static",
width: "unset",
height: "unset"
}],
keyboardMoveIconContainer: {
position: "absolute",
display: "flex",
justifyContent: "center",
width: "100%",
padding: "3px 0px"
},
keyboardMoveIcon: {
fontSize: m.xLargePlus.fontSize,
width: "24px"
}
}
}
), void 0, {
scope: "Modal",
fields: ["theme", "styles", "enableAriaHiddenSiblings"]
});
Pj.displayName = "Modal";
var Bj = Li((function(e, t) {
var n, r = rj(e), i = ij(e), o = e.palette;
return No(r, {
root: {
padding: "0 4px",
width: "32px",
height: "32px",
backgroundColor: "transparent",
border: "none",
color: e.semanticColors.link
},
rootHovered: {
color: o.themeDarkAlt,
backgroundColor: o.neutralLighter,
selectors: (n = {},
n[vi] = {
borderColor: "Highlight",
color: "Highlight"
},
n)
},
rootHasMenu: {
width: "auto"
},
rootPressed: {
color: o.themeDark,
backgroundColor: o.neutralLight
},
rootExpanded: {
color: o.themeDark,
backgroundColor: o.neutralLight
},
rootChecked: {
color: o.themeDark,
backgroundColor: o.neutralLight
},
rootCheckedHovered: {
color: o.themeDark,
backgroundColor: o.neutralQuaternaryAlt
},
rootDisabled: {
color: o.neutralTertiaryAlt
}
}, i, t)
}
))
, Fj = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.styles
, n = e.theme;
return l.createElement(ZO, Object(zn.a)({}, this.props, {
variantClassName: "ms-Button--icon",
styles: Bj(n, t),
onRenderText: ug,
onRenderDescription: ug
}))
}
,
Object(zn.b)([$O("IconButton", ["theme", "styles"], !0)], t)
}(l.Component)
, Vj = Sg()
, Wj = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return Kb(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.className
, n = e.styles
, r = e.theme;
return this._classNames = Vj(n, {
theme: r,
className: t
}),
l.createElement("div", {
className: this._classNames.actions
}, l.createElement("div", {
className: this._classNames.actionsRight
}, this._renderChildrenAsActions()))
}
,
t.prototype._renderChildrenAsActions = function() {
var e = this;
return l.Children.map(this.props.children, (function(t) {
return t ? l.createElement("span", {
className: e._classNames.action
}, t) : null
}
))
}
,
t
}(l.Component)
, qj = {
actions: "ms-Dialog-actions",
action: "ms-Dialog-action",
actionsRight: "ms-Dialog-actionsRight"
}
, Hj = jg(Wj, (function(e) {
var t = e.className
, n = e.theme
, r = Vi(qj, n);
return {
actions: [r.actions, {
position: "relative",
width: "100%",
minHeight: "24px",
lineHeight: "24px",
margin: "16px 0 0",
fontSize: "0",
selectors: {
".ms-Button": {
lineHeight: "normal"
}
}
}, t],
action: [r.action, {
margin: "0 4px"
}],
actionsRight: [r.actionsRight, {
textAlign: "right",
marginRight: "-4px",
fontSize: "0"
}]
}
}
), void 0, {
scope: "DialogFooter"
})
, Uj = Sg()
, Xj = l.createElement(Hj, null).type
, Gj = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return Kb(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e, t = this.props, n = t.showCloseButton, r = t.className, i = t.closeButtonAriaLabel, o = t.onDismiss, a = t.subTextId, s = t.subText, c = t.titleProps, u = void 0 === c ? {} : c, d = t.titleId, p = t.title, h = t.type, f = t.styles, b = t.theme, g = t.draggableHeaderClassName, m = Uj(f, {
theme: b,
className: r,
isLargeHeader: h === ej.largeHeader,
isClose: h === ej.close,
draggableHeaderClassName: g
}), v = this._groupChildren();
return s && (e = l.createElement("p", {
className: m.subText,
id: a
}, s)),
l.createElement("div", {
className: m.content
}, l.createElement("div", {
className: m.header
}, l.createElement("div", Object(zn.a)({
id: d,
role: "heading",
"aria-level": 1
}, u, {
className: ip(m.title, u.className)
}), p), l.createElement("div", {
className: m.topButton
}, this.props.topButtonsProps.map((function(e, t) {
return l.createElement(Fj, Object(zn.a)({
key: e.uniqueId || t
}, e))
}
)), (h === ej.close || n && h !== ej.largeHeader) && l.createElement(Fj, {
className: m.button,
iconProps: {
iconName: "Cancel"
},
ariaLabel: i,
onClick: o
}))), l.createElement("div", {
className: m.inner
}, l.createElement("div", {
className: m.innerContent
}, e, v.contents), v.footers))
}
,
t.prototype._groupChildren = function() {
var e = {
footers: [],
contents: []
};
return l.Children.map(this.props.children, (function(t) {
"object" == typeof t && null !== t && t.type === Xj ? e.footers.push(t) : e.contents.push(t)
}
)),
e
}
,
t.defaultProps = {
showCloseButton: !1,
className: "",
topButtonsProps: [],
closeButtonAriaLabel: "Close"
},
Object(zn.b)([CO], t)
}(l.Component)
, Kj = {
contentLgHeader: "ms-Dialog-lgHeader",
close: "ms-Dialog--close",
subText: "ms-Dialog-subText",
header: "ms-Dialog-header",
headerLg: "ms-Dialog--lgHeader",
button: "ms-Dialog-button ms-Dialog-button--close",
inner: "ms-Dialog-inner",
content: "ms-Dialog-content",
title: "ms-Dialog-title"
}
, Yj = jg(Gj, (function(e) {
var t, n, r, i = e.className, o = e.theme, a = e.isLargeHeader, l = e.isClose, s = e.hidden, c = e.isMultiline, u = e.draggableHeaderClassName, d = o.palette, p = o.fonts, h = o.effects, f = o.semanticColors, b = Vi(Kj, o);
return {
content: [a && [b.contentLgHeader, {
borderTop: "4px solid " + d.themePrimary
}], l && b.close, {
flexGrow: 1,
overflowY: "hidden"
}, i],
subText: [b.subText, p.medium, {
margin: "0 0 24px 0",
color: f.bodySubtext,
lineHeight: "1.5",
wordWrap: "break-word",
fontWeight: bi.regular
}],
header: [b.header, {
position: "relative",
width: "100%",
boxSizing: "border-box"
}, l && b.close, u && [u, {
cursor: "move"
}]],
button: [b.button, s && {
selectors: {
".ms-Icon.ms-Icon--Cancel": {
color: f.buttonText,
fontSize: gi.medium
}
}
}],
inner: [b.inner, {
padding: "0 24px 24px",
selectors: (t = {},
t["@media (min-width: 320px) and (max-width: 479px)"] = {
padding: "0 16px 16px"
},
t)
}],
innerContent: [b.content, {
position: "relative",
width: "100%"
}],
title: [b.title, p.xLarge, {
color: f.bodyText,
margin: "0",
minHeight: p.xLarge.fontSize,
padding: "16px 46px 20px 24px",
lineHeight: "normal",
selectors: (n = {},
n["@media (min-width: 320px) and (max-width: 479px)"] = {
padding: "16px 46px 16px 16px"
},
n)
}, a && {
color: f.menuHeader
}, c && {
fontSize: p.xxLarge.fontSize
}],
topButton: [{
display: "flex",
flexDirection: "row",
flexWrap: "nowrap",
position: "absolute",
top: "0",
right: "0",
padding: "15px 15px 0 0",
selectors: (r = {
"> *": {
flex: "0 0 auto"
},
".ms-Dialog-button": {
color: f.buttonText
},
".ms-Dialog-button:hover": {
color: f.buttonTextHovered,
borderRadius: h.roundedCorner2
}
},
r["@media (min-width: 320px) and (max-width: 479px)"] = {
padding: "15px 8px 0 0"
},
r)
}]
}
}
), void 0, {
scope: "DialogContent"
})
, Qj = Sg()
, Jj = {
isDarkOverlay: !1,
isBlocking: !1,
className: "",
containerClassName: "",
topOffsetFixed: !1
}
, Zj = {
type: ej.normal,
className: "",
topButtonsProps: []
}
, $j = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._getSubTextId = function() {
var e = n.props
, t = e.ariaDescribedById
, r = e.modalProps
, i = e.dialogContentProps
, o = e.subText
, a = r && r.subtitleAriaId || t;
return a || (a = (i && i.subText || o) && n._defaultSubTextId),
a
}
,
n._getTitleTextId = function() {
var e = n.props
, t = e.ariaLabelledById
, r = e.modalProps
, i = e.dialogContentProps
, o = e.title
, a = r && r.titleAriaId || t;
return a || (a = (i && i.title || o) && n._defaultTitleTextId),
a
}
,
n._id = lg("Dialog"),
n._defaultTitleTextId = n._id + "-title",
n._defaultSubTextId = n._id + "-subText",
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e, t, n, r, i = this.props, o = i.className, a = i.containerClassName, s = i.contentClassName, c = i.elementToFocusOnDismiss, u = i.firstFocusableSelector, d = i.forceFocusInsideTrap, p = i.styles, h = i.hidden, f = i.ignoreExternalFocusing, b = i.isBlocking, g = i.isClickableOutsideFocusTrap, m = i.isDarkOverlay, v = i.isOpen, y = i.onDismiss, x = i.onDismissed, O = i.onLayerDidMount, j = i.responsiveMode, k = i.subText, w = i.theme, C = i.title, _ = i.topButtonsProps, M = i.type, S = i.minWidth, A = i.maxWidth, T = i.modalProps, E = Object(zn.a)({}, T ? T.layerProps : {
onLayerDidMount: O
});
O && !E.onLayerDidMount && (E.onLayerDidMount = O),
T && T.dragOptions && !T.dragOptions.dragHandleSelector ? (n = "ms-Dialog-draggable-header",
r = Object(zn.a)(Object(zn.a)({}, T.dragOptions), {
dragHandleSelector: "." + n
})) : r = T && T.dragOptions;
var I = Object(zn.a)(Object(zn.a)(Object(zn.a)(Object(zn.a)({}, Jj), {
className: o,
containerClassName: a,
isBlocking: b,
isDarkOverlay: m,
onDismissed: x
}), T), {
layerProps: E,
dragOptions: r
})
, N = Object(zn.a)(Object(zn.a)(Object(zn.a)({
className: s,
subText: k,
title: C,
topButtonsProps: _,
type: M
}, Zj), this.props.dialogContentProps), {
draggableHeaderClassName: n,
titleProps: Object(zn.a)({
id: (null === (e = this.props.dialogContentProps) || void 0 === e ? void 0 : e.titleId) || this._defaultTitleTextId
}, null === (t = this.props.dialogContentProps) || void 0 === t ? void 0 : t.titleProps)
})
, z = Qj(p, {
theme: w,
className: I.className,
containerClassName: I.containerClassName,
hidden: h,
dialogDefaultMinWidth: S,
dialogDefaultMaxWidth: A
});
return l.createElement(Pj, Object(zn.a)({
elementToFocusOnDismiss: c,
firstFocusableSelector: u,
forceFocusInsideTrap: d,
ignoreExternalFocusing: f,
isClickableOutsideFocusTrap: g,
responsiveMode: j
}, I, {
isOpen: void 0 !== v ? v : !h,
className: z.root,
containerClassName: z.main,
onDismiss: y || I.onDismiss,
subtitleAriaId: this._getSubTextId(),
titleAriaId: this._getTitleTextId()
}), l.createElement(Yj, Object(zn.a)({
subTextId: this._defaultSubTextId,
showCloseButton: I.isBlocking,
onDismiss: y
}, N), this.props.children))
}
,
t.defaultProps = {
hidden: !0
},
Object(zn.b)([CO], t)
}(l.Component)
, ek = {
root: "ms-Dialog"
}
, tk = jg($j, (function(e) {
var t, n = e.className, r = e.containerClassName, i = e.dialogDefaultMinWidth, o = void 0 === i ? "288px" : i, a = e.dialogDefaultMaxWidth, l = void 0 === a ? "340px" : a, s = e.hidden, c = e.theme;
return {
root: [Vi(ek, c).root, c.fonts.medium, n],
main: [{
width: o,
outline: "3px solid transparent",
selectors: (t = {},
t["@media (min-width: 480px)"] = {
width: "auto",
maxWidth: l,
minWidth: o
},
t)
}, !s && {
display: "flex"
}, r]
}
}
), void 0, {
scope: "Dialog"
});
tk.displayName = "Dialog";
var nk, rk = Sg({
cacheSize: 100
}), ik = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.as
, n = void 0 === t ? "label" : t
, r = e.children
, i = e.className
, o = e.disabled
, a = e.styles
, s = e.required
, c = e.theme
, u = rk(a, {
className: i,
disabled: o,
required: s,
theme: c
});
return l.createElement(n, Object(zn.a)({}, rp(this.props, np), {
className: u.root
}), r)
}
,
t
}(l.Component), ok = jg(ik, (function(e) {
var t, n = e.theme, r = e.className, i = e.disabled, o = e.required, a = n.semanticColors, l = bi.semibold, s = a.bodyText, c = a.disabledBodyText, u = a.errorText;
return {
root: ["ms-Label", n.fonts.medium, {
fontWeight: l,
color: s,
boxSizing: "border-box",
boxShadow: "none",
margin: 0,
display: "block",
padding: "5px 0",
wordWrap: "break-word",
overflowWrap: "break-word"
}, i && {
color: c,
selectors: (t = {},
t[vi] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
}, o && {
selectors: {
"::after": {
content: "' *'",
color: u,
paddingRight: 12
}
}
}, r]
}
}
), void 0, {
scope: "Label"
}), ak = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n.state = {
isRendered: !1
},
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
var e = this
, t = this.props.delay;
this._timeoutId = window.setTimeout((function() {
e.setState({
isRendered: !0
})
}
), t)
}
,
t.prototype.componentWillUnmount = function() {
this._timeoutId && clearTimeout(this._timeoutId)
}
,
t.prototype.render = function() {
return this.state.isRendered ? l.Children.only(this.props.children) : null
}
,
t.defaultProps = {
delay: 0
},
t
}(l.Component), lk = function() {
var e, t = ji();
return !!(null === (e = null == t ? void 0 : t.navigator) || void 0 === e ? void 0 : e.userAgent) && t.navigator.userAgent.indexOf("rv:11.0") > -1
}, sk = Sg(), ck = function(e) {
function t(t) {
var n = e.call(this, t) || this;
n._textElement = l.createRef(),
n._onFocus = function(e) {
n.props.onFocus && n.props.onFocus(e),
n.setState({
isFocused: !0
}, (function() {
n.props.validateOnFocusIn && n._validate(n.value)
}
))
}
,
n._onBlur = function(e) {
n.props.onBlur && n.props.onBlur(e),
n.setState({
isFocused: !1
}, (function() {
n.props.validateOnFocusOut && n._validate(n.value)
}
))
}
,
n._onRenderLabel = function(e) {
var t = e.label
, r = e.required
, i = n._classNames.subComponentStyles ? n._classNames.subComponentStyles.label : void 0;
return t ? l.createElement(ok, {
required: r,
htmlFor: n._id,
styles: i,
disabled: e.disabled,
id: n._labelId
}, e.label) : null
}
,
n._onRenderDescription = function(e) {
return e.description ? l.createElement("span", {
className: n._classNames.description
}, e.description) : null
}
,
n._onRevealButtonClick = function(e) {
n.setState((function(e) {
return {
isRevealingPassword: !e.isRevealingPassword
}
}
))
}
,
n._onInputChange = function(e) {
var t, r, i = e.target.value, o = uk(n.props, n.state) || "";
void 0 !== i && i !== n._lastChangeValue && i !== o ? (n._lastChangeValue = i,
null === (r = (t = n.props).onChange) || void 0 === r || r.call(t, e, i),
n._isControlled || n.setState({
uncontrolledValue: i
})) : n._lastChangeValue = void 0
}
,
Kb(n),
n._async = new $b(n),
n._fallbackId = lg("TextField"),
n._descriptionId = lg("TextFieldDescription"),
n._labelId = lg("TextFieldLabel"),
n._warnControlledUsage();
var r = t.defaultValue
, i = void 0 === r ? "" : r;
return "number" == typeof i && (i = String(i)),
n.state = {
uncontrolledValue: n._isControlled ? void 0 : i,
isFocused: !1,
errorMessage: ""
},
n._delayedValidate = n._async.debounce(n._validate, n.props.deferredValidationTime),
n._lastValidation = 0,
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "value", {
get: function() {
return uk(this.props, this.state)
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidMount = function() {
this._adjustInputHeight(),
this.props.validateOnLoad && this._validate(this.value)
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose()
}
,
t.prototype.getSnapshotBeforeUpdate = function(e, t) {
return {
selection: [this.selectionStart, this.selectionEnd]
}
}
,
t.prototype.componentDidUpdate = function(e, t, n) {
var r = this.props
, i = (n || {}).selection
, o = void 0 === i ? [null, null] : i
, a = o[0]
, l = o[1];
!!e.multiline != !!r.multiline && t.isFocused && (this.focus(),
null !== a && null !== l && a >= 0 && l >= 0 && this.setSelectionRange(a, l)),
e.value !== r.value && (this._lastChangeValue = void 0);
var s = uk(e, t)
, c = this.value;
s !== c && (this._warnControlledUsage(e),
this.state.errorMessage && !r.errorMessage && this.setState({
errorMessage: ""
}),
this._adjustInputHeight(),
dk(r) && this._delayedValidate(c))
}
,
t.prototype.render = function() {
var e = this.props
, t = e.borderless
, n = e.className
, r = e.disabled
, i = e.invalid
, o = e.iconProps
, a = e.inputClassName
, s = e.label
, c = e.multiline
, u = e.required
, d = e.underlined
, p = e.prefix
, h = e.resizable
, f = e.suffix
, b = e.theme
, g = e.styles
, m = e.autoAdjustHeight
, v = e.canRevealPassword
, y = e.revealPasswordAriaLabel
, x = e.type
, O = e.onRenderPrefix
, j = void 0 === O ? this._onRenderPrefix : O
, k = e.onRenderSuffix
, w = void 0 === k ? this._onRenderSuffix : k
, C = e.onRenderLabel
, _ = void 0 === C ? this._onRenderLabel : C
, M = e.onRenderDescription
, S = void 0 === M ? this._onRenderDescription : M
, A = this.state
, T = A.isFocused
, E = A.isRevealingPassword
, I = this._errorMessage
, N = "boolean" == typeof i ? i : !!I
, z = !!v && "password" === x && function() {
if ("boolean" != typeof nk) {
var e = ji();
if (null == e ? void 0 : e.navigator) {
var t = /^Edg/.test(e.navigator.userAgent || "");
nk = !(lk() || t)
} else
nk = !0
}
return nk
}()
, D = this._classNames = sk(g, {
theme: b,
className: n,
disabled: r,
focused: T,
required: u,
multiline: c,
hasLabel: !!s,
hasErrorMessage: N,
borderless: t,
resizable: h,
hasIcon: !!o,
underlined: d,
inputClassName: a,
autoAdjustHeight: m,
hasRevealButton: z
});
return l.createElement("div", {
ref: this.props.elementRef,
className: D.root
}, l.createElement("div", {
className: D.wrapper
}, _(this.props, this._onRenderLabel), l.createElement("div", {
className: D.fieldGroup
}, (void 0 !== p || this.props.onRenderPrefix) && l.createElement("div", {
className: D.prefix
}, j(this.props, this._onRenderPrefix)), c ? this._renderTextArea() : this._renderInput(), o && l.createElement(Pg, Object(zn.a)({
className: D.icon
}, o)), z && l.createElement("button", {
"aria-label": y,
className: D.revealButton,
onClick: this._onRevealButtonClick,
"aria-pressed": !!E,
type: "button"
}, l.createElement("span", {
className: D.revealSpan
}, l.createElement(Pg, {
className: D.revealIcon,
iconName: E ? "Hide" : "RedEye"
}))), (void 0 !== f || this.props.onRenderSuffix) && l.createElement("div", {
className: D.suffix
}, w(this.props, this._onRenderSuffix)))), this._isDescriptionAvailable && l.createElement("span", {
id: this._descriptionId
}, S(this.props, this._onRenderDescription), I && l.createElement("div", {
role: "alert"
}, l.createElement(ak, null, this._renderErrorMessage()))))
}
,
t.prototype.focus = function() {
this._textElement.current && this._textElement.current.focus()
}
,
t.prototype.blur = function() {
this._textElement.current && this._textElement.current.blur()
}
,
t.prototype.select = function() {
this._textElement.current && this._textElement.current.select()
}
,
t.prototype.setSelectionStart = function(e) {
this._textElement.current && (this._textElement.current.selectionStart = e)
}
,
t.prototype.setSelectionEnd = function(e) {
this._textElement.current && (this._textElement.current.selectionEnd = e)
}
,
Object.defineProperty(t.prototype, "selectionStart", {
get: function() {
return this._textElement.current ? this._textElement.current.selectionStart : -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "selectionEnd", {
get: function() {
return this._textElement.current ? this._textElement.current.selectionEnd : -1
},
enumerable: !1,
configurable: !0
}),
t.prototype.setSelectionRange = function(e, t) {
this._textElement.current && this._textElement.current.setSelectionRange(e, t)
}
,
t.prototype._warnControlledUsage = function(e) {
this._id,
this.props,
null !== this.props.value || this._hasWarnedNullValue || (this._hasWarnedNullValue = !0,
wo("Warning: 'value' prop on 'TextField' should not be null. Consider using an empty string to clear the component or undefined to indicate an uncontrolled component."))
}
,
Object.defineProperty(t.prototype, "_id", {
get: function() {
return this.props.id || this._fallbackId
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_isControlled", {
get: function() {
return void 0 !== (e = this.props)["value"] && null !== e.value;
var e
},
enumerable: !1,
configurable: !0
}),
t.prototype._onRenderPrefix = function(e) {
var t = e.prefix;
return l.createElement("span", {
style: {
paddingBottom: "1px"
}
}, t)
}
,
t.prototype._onRenderSuffix = function(e) {
var t = e.suffix;
return l.createElement("span", {
style: {
paddingBottom: "1px"
}
}, t)
}
,
Object.defineProperty(t.prototype, "_errorMessage", {
get: function() {
var e = this.props.errorMessage;
return (void 0 === e ? this.state.errorMessage : e) || ""
},
enumerable: !1,
configurable: !0
}),
t.prototype._renderErrorMessage = function() {
var e = this._errorMessage;
return e ? "string" == typeof e ? l.createElement("p", {
className: this._classNames.errorMessage
}, l.createElement("span", {
"data-automation-id": "error-message"
}, e)) : l.createElement("div", {
className: this._classNames.errorMessage,
"data-automation-id": "error-message"
}, e) : null
}
,
Object.defineProperty(t.prototype, "_isDescriptionAvailable", {
get: function() {
var e = this.props;
return !!(e.onRenderDescription || e.description || this._errorMessage)
},
enumerable: !1,
configurable: !0
}),
t.prototype._renderTextArea = function() {
var e = this.props.invalid
, t = void 0 === e ? !!this._errorMessage : e
, n = rp(this.props, Hd, ["defaultValue"])
, r = this.props["aria-labelledby"] || (this.props.label ? this._labelId : void 0);
return l.createElement("textarea", Object(zn.a)({
id: this._id
}, n, {
ref: this._textElement,
value: this.value || "",
onInput: this._onInputChange,
onChange: this._onInputChange,
className: this._classNames.field,
"aria-labelledby": r,
"aria-describedby": this._isDescriptionAvailable ? this._descriptionId : this.props["aria-describedby"],
"aria-invalid": t,
"aria-label": this.props.ariaLabel,
readOnly: this.props.readOnly,
onFocus: this._onFocus,
onBlur: this._onBlur
}))
}
,
t.prototype._renderInput = function() {
var e = this.props
, t = e.ariaLabel
, n = e.invalid
, r = void 0 === n ? !!this._errorMessage : n
, i = e.type
, o = void 0 === i ? "text" : i
, a = e.label
, s = Object(zn.a)(Object(zn.a)({
type: this.state.isRevealingPassword ? "text" : o,
id: this._id
}, rp(this.props, qd, ["defaultValue", "type"])), {
"aria-labelledby": this.props["aria-labelledby"] || (a ? this._labelId : void 0),
ref: this._textElement,
value: this.value || "",
onInput: this._onInputChange,
onChange: this._onInputChange,
className: this._classNames.field,
"aria-label": t,
"aria-describedby": this._isDescriptionAvailable ? this._descriptionId : this.props["aria-describedby"],
"aria-invalid": r,
onFocus: this._onFocus,
onBlur: this._onBlur
})
, c = function(e) {
return l.createElement("input", Object(zn.a)({}, e))
};
return (this.props.onRenderInput || c)(s, c)
}
,
t.prototype._validate = function(e) {
var t = this;
if (this._latestValidateValue !== e || !dk(this.props)) {
this._latestValidateValue = e;
var n = this.props.onGetErrorMessage
, r = n && n(e || "");
if (void 0 !== r)
if ("string" != typeof r && "then"in r) {
var i = ++this._lastValidation;
r.then((function(n) {
i === t._lastValidation && t.setState({
errorMessage: n
}),
t._notifyAfterValidate(e, n)
}
))
} else
this.setState({
errorMessage: r
}),
this._notifyAfterValidate(e, r);
else
this._notifyAfterValidate(e, "")
}
}
,
t.prototype._notifyAfterValidate = function(e, t) {
e === this.value && this.props.onNotifyValidationResult && this.props.onNotifyValidationResult(t, e)
}
,
t.prototype._adjustInputHeight = function() {
if (this._textElement.current && this.props.autoAdjustHeight && this.props.multiline) {
var e = this._textElement.current;
e.style.height = "",
e.style.height = e.scrollHeight + "px"
}
}
,
t.defaultProps = {
resizable: !0,
deferredValidationTime: 200,
validateOnLoad: !0
},
t
}(l.Component);
function uk(e, t) {
var n = e.value
, r = void 0 === n ? t.uncontrolledValue : n;
return "number" == typeof r ? String(r) : r
}
function dk(e) {
return !(e.validateOnFocusIn || e.validateOnFocusOut)
}
var pk = {
root: "ms-TextField",
description: "ms-TextField-description",
errorMessage: "ms-TextField-errorMessage",
field: "ms-TextField-field",
fieldGroup: "ms-TextField-fieldGroup",
prefix: "ms-TextField-prefix",
suffix: "ms-TextField-suffix",
wrapper: "ms-TextField-wrapper",
revealButton: "ms-TextField-reveal",
multiline: "ms-TextField--multiline",
borderless: "ms-TextField--borderless",
underlined: "ms-TextField--underlined",
unresizable: "ms-TextField--unresizable",
required: "is-required",
disabled: "is-disabled",
active: "is-active"
};
function hk(e) {
var t = e.underlined
, n = e.disabled
, r = e.focused
, i = e.theme
, o = i.palette
, a = i.fonts;
return function() {
var e;
return {
root: [t && n && {
color: o.neutralTertiary
}, t && {
fontSize: a.medium.fontSize,
marginRight: 8,
paddingLeft: 12,
paddingRight: 0,
lineHeight: "22px",
height: 32
}, t && r && {
selectors: (e = {},
e[vi] = {
height: 31
},
e)
}]
}
}
}
var fk, bk, gk, mk, vk, yk, xk, Ok, jk = jg(ck, (function(e) {
var t, n, r, i, o, a, l, s, c, u, d, p, h = e.theme, f = e.className, b = e.disabled, g = e.focused, m = e.required, v = e.multiline, y = e.hasLabel, x = e.borderless, O = e.underlined, j = e.hasIcon, k = e.resizable, w = e.hasErrorMessage, C = e.inputClassName, _ = e.autoAdjustHeight, M = e.hasRevealButton, S = h.semanticColors, A = h.effects, T = h.fonts, E = Vi(pk, h), I = {
background: S.disabledBackground,
color: b ? S.disabledText : S.inputPlaceholderText,
display: "flex",
alignItems: "center",
padding: "0 10px",
lineHeight: 1,
whiteSpace: "nowrap",
flexShrink: 0,
selectors: (t = {},
t[vi] = {
background: "Window",
color: b ? "GrayText" : "WindowText"
},
t)
}, N = [{
color: S.inputPlaceholderText,
opacity: 1,
selectors: (n = {},
n[vi] = {
color: "GrayText"
},
n)
}], z = {
color: S.disabledText,
selectors: (r = {},
r[vi] = {
color: "GrayText"
},
r)
};
return {
root: [E.root, T.medium, m && E.required, b && E.disabled, g && E.active, v && E.multiline, x && E.borderless, O && E.underlined, Oo, {
position: "relative"
}, f],
wrapper: [E.wrapper, O && [{
display: "flex",
borderBottom: "1px solid " + (w ? S.errorText : S.inputBorder),
width: "100%"
}, b && {
borderBottomColor: S.disabledBackground,
selectors: (i = {},
i[vi] = Object(zn.a)({
borderColor: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
}, !b && {
selectors: {
":hover": {
borderBottomColor: w ? S.errorText : S.inputBorderHovered,
selectors: (o = {},
o[vi] = Object(zn.a)({
borderBottomColor: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
o)
}
}
}, g && [{
position: "relative"
}, Si(w ? S.errorText : S.inputFocusBorderAlt, 0, "borderBottom")]]],
fieldGroup: [E.fieldGroup, Oo, {
border: "1px solid " + S.inputBorder,
borderRadius: A.roundedCorner2,
background: S.inputBackground,
cursor: "text",
height: 32,
display: "flex",
flexDirection: "row",
alignItems: "stretch",
position: "relative"
}, v && {
minHeight: "60px",
height: "auto",
display: "flex"
}, !g && !b && {
selectors: {
":hover": {
borderColor: S.inputBorderHovered,
selectors: (a = {},
a[vi] = Object(zn.a)({
borderColor: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
a)
}
}
}, g && !O && Si(w ? S.errorText : S.inputFocusBorderAlt, A.roundedCorner2), b && {
borderColor: S.disabledBackground,
selectors: (l = {},
l[vi] = Object(zn.a)({
borderColor: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
l),
cursor: "default"
}, x && {
border: "none"
}, x && g && {
border: "none",
selectors: {
":after": {
border: "none"
}
}
}, O && {
flex: "1 1 0px",
border: "none",
textAlign: "left"
}, O && b && {
backgroundColor: "transparent"
}, w && !O && {
borderColor: S.errorText,
selectors: {
"&:hover": {
borderColor: S.errorText
}
}
}, !y && m && {
selectors: (s = {
":before": {
content: "'*'",
color: S.errorText,
position: "absolute",
top: -5,
right: -10
}
},
s[vi] = {
selectors: {
":before": {
color: "WindowText",
right: -14
}
}
},
s)
}],
field: [T.medium, E.field, Oo, {
borderRadius: 0,
border: "none",
background: "none",
backgroundColor: "transparent",
color: S.inputText,
padding: "0 8px",
width: "100%",
minWidth: 0,
textOverflow: "ellipsis",
outline: 0,
selectors: (c = {
"&:active, &:focus, &:hover": {
outline: 0
},
"::-ms-clear": {
display: "none"
}
},
c[vi] = {
background: "Window",
color: b ? "GrayText" : "WindowText"
},
c)
}, ko(N), v && !k && [E.unresizable, {
resize: "none"
}], v && {
minHeight: "inherit",
lineHeight: 17,
flexGrow: 1,
paddingTop: 6,
paddingBottom: 6,
overflow: "auto",
width: "100%"
}, v && _ && {
overflow: "hidden"
}, j && !M && {
paddingRight: 24
}, v && j && {
paddingRight: 40
}, b && [{
backgroundColor: S.disabledBackground,
color: S.disabledText,
borderColor: S.disabledBackground
}, ko(z)], O && {
textAlign: "left"
}, g && !x && {
selectors: (u = {},
u[vi] = {
paddingLeft: 11,
paddingRight: 11
},
u)
}, g && v && !x && {
selectors: (d = {},
d[vi] = {
paddingTop: 4
},
d)
}, C],
icon: [v && {
paddingRight: 24,
alignItems: "flex-end"
}, {
pointerEvents: "none",
position: "absolute",
bottom: 6,
right: 8,
top: "auto",
fontSize: gi.medium,
lineHeight: 18
}, b && {
color: S.disabledText
}],
description: [E.description, {
color: S.bodySubtext,
fontSize: T.xSmall.fontSize
}],
errorMessage: [E.errorMessage, di.slideDownIn20, T.small, {
color: S.errorText,
margin: 0,
paddingTop: 5,
display: "flex",
alignItems: "center"
}],
prefix: [E.prefix, I],
suffix: [E.suffix, I],
revealButton: [E.revealButton, "ms-Button", "ms-Button--icon", Mi(h, {
inset: 1
}), {
height: 30,
width: 32,
border: "none",
padding: "0px 4px",
backgroundColor: "transparent",
color: S.link,
selectors: {
":hover": {
outline: 0,
color: S.primaryButtonBackgroundHovered,
backgroundColor: S.buttonBackgroundHovered,
selectors: (p = {},
p[vi] = {
borderColor: "Highlight",
color: "Highlight"
},
p)
},
":focus": {
outline: 0
}
}
}, j && {
marginRight: 28
}],
revealSpan: {
display: "flex",
height: "100%",
alignItems: "center"
},
revealIcon: {
margin: "0px 4px",
pointerEvents: "none",
bottom: 6,
right: 8,
top: "auto",
fontSize: gi.medium,
lineHeight: 18
},
subComponentStyles: {
label: hk(e)
}
}
}
), void 0, {
scope: "TextField"
}), kk = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
return l.createElement(aj, Object(zn.a)({}, this.props, {
primary: !0,
onRenderDescription: ug
}))
}
,
Object(zn.b)([$O("PrimaryButton", ["theme", "styles"], !0)], t)
}(l.Component);
function wk(e) {
var t = l.useRef();
return void 0 === t.current && (t.current = {
value: "function" == typeof e ? e() : e
}),
t.current.value
}
function Ck(e) {
var t = l.useState(e)
, n = t[0]
, r = t[1];
return [n, {
setTrue: wk((function() {
return function() {
r(!0)
}
}
)),
setFalse: wk((function() {
return function() {
r(!1)
}
}
)),
toggle: wk((function() {
return function() {
r((function(e) {
return !e
}
))
}
}
))
}]
}
var _k, Mk, Sk = Mu.b.button(fk || (fk = _u(["\n padding: 5px 16px;\n background-color: ", ";\n border: 1px solid\n ", ";\n border-radius: 2px;\n color: ", ";\n font-weight: bold;\n font-size: 13px;\n line-height: 20px;\n display: inline-flex;\n cursor: pointer;\n outline: none;\n &:hover {\n opacity: 0.8;\n }\n &:disabled {\n opacity: 0.2;\n color: #000;\n background-color: white;\n border-color: #000;\n }\n"])), (function(e) {
return "primary" === e.typebtn ? "#30AD62" : "success" === e.typebtn ? "rgba(43, 157, 255, 0.1)" : "error" === e.typebtn ? "rgba(228, 0, 0, 0.1)" : "errorprimary" === e.typebtn ? "#E40000" : "outline" === e.typebtn ? "#ffffff" : "rgba(48, 173, 98, 0.1)"
}
), (function(e) {
return "primary" === e.typebtn ? "#30AD62" : "success" === e.typebtn ? "rgba(43, 157, 255, 0.1)" : "error" === e.typebtn ? "rgba(228, 0, 0, 0.1)" : "errorprimary" === e.typebtn ? "#E40000" : "outline" === e.typebtn ? Po.palette.neutralQuaternary : "rgba(48, 173, 98, 0.1)"
}
), (function(e) {
return "primary" === e.typebtn ? "white" : "success" === e.typebtn ? "#035AA6" : "error" === e.typebtn ? "#E40000" : "errorprimary" === e.typebtn ? "white" : "outline" === e.typebtn ? Po.palette.neutralPrimaryAlt : "#30AD62"
}
)), Ak = Object(Mu.b)(Sk)(bk || (bk = _u(["\n padding: 3px 10px;\n font-size: 12px;\n font-weight: 500;\n"]))), Tk = Object(Mu.b)(Sk)(gk || (gk = _u(["\n justify-content: space-between;\n width: 100%;\n"]))), Ek = Object(Mu.b)(Sk)(mk || (mk = _u(["\n padding: 5px 8.5px;\n"]))), Ik = Object(Mu.b)(Sk)(vk || (vk = _u(["\n width: 32px;\n height: 32px;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n"]))), Nk = Object(Mu.c)(yk || (yk = _u(["\n from {\n background-position: 40px 0;\n }\n\n to {\n background-position: 0 0;\n }\n"]))), zk = Object(Mu.b)(Sk)(xk || (xk = _u(["\n &.progress {\n background-image: linear-gradient(\n 45deg,\n rgba(255, 255, 255, 0.3) 25%,\n transparent 25%,\n transparent 50%,\n rgba(255, 255, 255, 0.3) 50%,\n rgba(255, 255, 255, 0.3) 75%,\n transparent 75%,\n transparent\n );\n background-size: 40px 40px;\n animation: ", " 1s linear infinite;\n }\n"])), Nk), Dk = Object(Mu.b)(Sk)(Ok || (Ok = _u(["\n &.progress {\n background-image: linear-gradient(\n 45deg,\n rgba(0, 0, 0, 0.05) 25%,\n transparent 25%,\n transparent 50%,\n rgba(0, 0, 0, 0.05) 50%,\n rgba(0, 0, 0, 0.05) 75%,\n transparent 75%,\n transparent\n );\n background-size: 40px 40px;\n animation: ", " 1s linear infinite;\n }\n"])), Nk), Lk = Sk, Rk = {
isBlocking: !1,
styles: {
main: {
maxWidth: 450
}
}
}, Pk = {
type: ej.largeHeader,
title: "Create new template",
subText: "Create your own awesome template and custom for your style idea."
}, Bk = {
title: "",
status: "publish",
content: Gf
}, Fk = function(e) {
var t = e.pending
, n = Ck(!0)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1].toggle
, a = Object(l.useState)("")
, c = Object(ss.a)(a, 2)
, u = c[0]
, d = c[1];
function p() {
d(""),
o()
}
var h = s.a.useMemo((function() {
return {
className: "pending" === t ? "progress" : ""
}
}
), [t]);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(kk, {
onClick: o,
text: "Create Template +"
}), Object(Ip.jsxs)(tk, {
hidden: i,
onDismiss: o,
dialogContentProps: Pk,
modalProps: Rk,
children: [Object(Ip.jsx)(jk, {
onKeyDown: function(t) {
return function(t) {
13 === t.keyCode && e.createTemplate({
data: _t(_t({}, Bk), {}, {
title: u
}),
cb: p
})
}(t)
},
value: u,
label: "Template Name",
onChange: function(e, t) {
return d(t || "")
}
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(zk, _t(_t({}, h), {}, {
typebtn: "primary",
onClick: function() {
e.createTemplate({
data: _t(_t({}, Bk), {}, {
title: u
}),
cb: p
})
},
children: "Save"
})), Object(Ip.jsx)(aj, {
onClick: o,
text: "Cancel"
})]
})]
})]
})
};
!function(e) {
e[e.line = 1] = "line",
e[e.circle = 2] = "circle",
e[e.gap = 3] = "gap"
}(_k || (_k = {})),
function(e) {
e[e.line = 16] = "line",
e[e.gap = 16] = "gap",
e[e.circle = 24] = "circle"
}(Mk || (Mk = {}));
var Vk = Sg()
, Wk = {
root: "ms-ShimmerLine-root",
topLeftCorner: "ms-ShimmerLine-topLeftCorner",
topRightCorner: "ms-ShimmerLine-topRightCorner",
bottomLeftCorner: "ms-ShimmerLine-bottomLeftCorner",
bottomRightCorner: "ms-ShimmerLine-bottomRightCorner"
}
, qk = jg((function(e) {
var t = e.height
, n = e.styles
, r = e.width
, i = void 0 === r ? "100%" : r
, o = e.borderStyle
, a = e.theme
, s = Vk(n, {
theme: a,
height: t,
borderStyle: o
});
return l.createElement("div", {
style: {
width: i,
minWidth: "number" == typeof i ? i + "px" : "auto"
},
className: s.root
}, l.createElement("svg", {
width: "2",
height: "2",
className: s.topLeftCorner
}, l.createElement("path", {
d: "M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"
})), l.createElement("svg", {
width: "2",
height: "2",
className: s.topRightCorner
}, l.createElement("path", {
d: "M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"
})), l.createElement("svg", {
width: "2",
height: "2",
className: s.bottomRightCorner
}, l.createElement("path", {
d: "M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"
})), l.createElement("svg", {
width: "2",
height: "2",
className: s.bottomLeftCorner
}, l.createElement("path", {
d: "M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"
})))
}
), (function(e) {
var t, n = e.height, r = e.borderStyle, i = e.theme, o = i.semanticColors, a = Vi(Wk, i), l = r || {}, s = {
position: "absolute",
fill: o.bodyBackground
};
return {
root: [a.root, i.fonts.medium, {
height: n + "px",
boxSizing: "content-box",
position: "relative",
borderTopStyle: "solid",
borderBottomStyle: "solid",
borderColor: o.bodyBackground,
borderWidth: 0,
selectors: (t = {},
t[vi] = {
borderColor: "Window",
selectors: {
"> *": {
fill: "Window"
}
}
},
t)
}, l],
topLeftCorner: [a.topLeftCorner, {
top: "0",
left: "0"
}, s],
topRightCorner: [a.topRightCorner, {
top: "0",
right: "0"
}, s],
bottomRightCorner: [a.bottomRightCorner, {
bottom: "0",
right: "0"
}, s],
bottomLeftCorner: [a.bottomLeftCorner, {
bottom: "0",
left: "0"
}, s]
}
}
), void 0, {
scope: "ShimmerLine"
})
, Hk = Sg()
, Uk = {
root: "ms-ShimmerGap-root"
}
, Xk = jg((function(e) {
var t = e.height
, n = e.styles
, r = e.width
, i = void 0 === r ? "10px" : r
, o = e.borderStyle
, a = e.theme
, s = Hk(n, {
theme: a,
height: t,
borderStyle: o
});
return l.createElement("div", {
style: {
width: i,
minWidth: "number" == typeof i ? i + "px" : "auto"
},
className: s.root
})
}
), (function(e) {
var t, n = e.height, r = e.borderStyle, i = e.theme, o = i.semanticColors, a = r || {};
return {
root: [Vi(Uk, i).root, i.fonts.medium, {
backgroundColor: o.bodyBackground,
height: n + "px",
boxSizing: "content-box",
borderTopStyle: "solid",
borderBottomStyle: "solid",
borderColor: o.bodyBackground,
selectors: (t = {},
t[vi] = {
backgroundColor: "Window",
borderColor: "Window"
},
t)
}, a]
}
}
), void 0, {
scope: "ShimmerGap"
})
, Gk = {
root: "ms-ShimmerCircle-root",
svg: "ms-ShimmerCircle-svg"
}
, Kk = Sg()
, Yk = jg((function(e) {
var t = e.height
, n = e.styles
, r = e.borderStyle
, i = e.theme
, o = Kk(n, {
theme: i,
height: t,
borderStyle: r
});
return l.createElement("div", {
className: o.root
}, l.createElement("svg", {
viewBox: "0 0 10 10",
width: t,
height: t,
className: o.svg
}, l.createElement("path", {
d: "M0,0 L10,0 L10,10 L0,10 L0,0 Z M0,5 C0,7.76142375 2.23857625,10 5,10 C7.76142375,10 10,7.76142375 10,5 C10,2.23857625 7.76142375,2.22044605e-16 5,0 C2.23857625,-2.22044605e-16 0,2.23857625 0,5 L0,5 Z"
})))
}
), (function(e) {
var t, n, r = e.height, i = e.borderStyle, o = e.theme, a = o.semanticColors, l = Vi(Gk, o), s = i || {};
return {
root: [l.root, o.fonts.medium, {
width: r + "px",
height: r + "px",
minWidth: r + "px",
boxSizing: "content-box",
borderTopStyle: "solid",
borderBottomStyle: "solid",
borderColor: a.bodyBackground,
selectors: (t = {},
t[vi] = {
borderColor: "Window"
},
t)
}, s],
svg: [l.svg, {
display: "block",
fill: a.bodyBackground,
selectors: (n = {},
n[vi] = {
fill: "Window"
},
n)
}]
}
}
), void 0, {
scope: "ShimmerCircle"
})
, Qk = Sg()
, Jk = Li((function(e, t, n, r, i) {
var o, a = i && n ? i - n : 0;
if (e && "center" !== e ? e && "top" === e ? o = {
borderBottomWidth: a + "px",
borderTopWidth: "0px"
} : e && "bottom" === e && (o = {
borderBottomWidth: "0px",
borderTopWidth: a + "px"
}) : o = {
borderBottomWidth: (a ? Math.floor(a / 2) : 0) + "px",
borderTopWidth: (a ? Math.ceil(a / 2) : 0) + "px"
},
r)
switch (t) {
case _k.circle:
return {
root: Object(zn.a)(Object(zn.a)({}, o), {
borderColor: r
}),
svg: {
fill: r
}
};
case _k.gap:
return {
root: Object(zn.a)(Object(zn.a)({}, o), {
borderColor: r,
backgroundColor: r
})
};
case _k.line:
return {
root: Object(zn.a)(Object(zn.a)({}, o), {
borderColor: r
}),
topLeftCorner: {
fill: r
},
topRightCorner: {
fill: r
},
bottomLeftCorner: {
fill: r
},
bottomRightCorner: {
fill: r
}
}
}
return {
root: o
}
}
))
, Zk = {
root: "ms-ShimmerElementsGroup-root"
}
, $k = jg((function(e) {
var t = e.styles
, n = e.width
, r = void 0 === n ? "auto" : n
, i = e.shimmerElements
, o = e.rowHeight
, a = void 0 === o ? function(e) {
return e.map((function(e) {
switch (e.type) {
case _k.circle:
e.height || (e.height = Mk.circle);
break;
case _k.line:
e.height || (e.height = Mk.line);
break;
case _k.gap:
e.height || (e.height = Mk.gap)
}
return e
}
)).reduce((function(e, t) {
return t.height && t.height > e ? t.height : e
}
), 0)
}(i || []) : o
, s = e.flexWrap
, c = void 0 !== s && s
, u = e.theme
, d = e.backgroundColor
, p = Qk(t, {
theme: u,
flexWrap: c
});
return l.createElement("div", {
style: {
width: r
},
className: p.root
}, function(e, t, n) {
var r = e ? e.map((function(e, r) {
var i = e.type
, o = Object(zn.d)(e, ["type"])
, a = o.verticalAlign
, s = o.height
, c = Jk(a, i, s, t, n);
switch (e.type) {
case _k.circle:
return l.createElement(Yk, Object(zn.a)({
key: r
}, o, {
styles: c
}));
case _k.gap:
return l.createElement(Xk, Object(zn.a)({
key: r
}, o, {
styles: c
}));
case _k.line:
return l.createElement(qk, Object(zn.a)({
key: r
}, o, {
styles: c
}))
}
}
)) : l.createElement(qk, {
height: Mk.line
});
return r
}(i, d, a))
}
), (function(e) {
var t = e.flexWrap
, n = e.theme;
return {
root: [Vi(Zk, n).root, n.fonts.medium, {
display: "flex",
alignItems: "center",
flexWrap: t ? "wrap" : "nowrap",
position: "relative"
}]
}
}
), void 0, {
scope: "ShimmerElementsGroup"
})
, ew = {
root: "ms-Shimmer-container",
shimmerWrapper: "ms-Shimmer-shimmerWrapper",
shimmerGradient: "ms-Shimmer-shimmerGradient",
dataWrapper: "ms-Shimmer-dataWrapper"
}
, tw = Li((function() {
return hr({
"0%": {
transform: "translateX(-100%)"
},
"100%": {
transform: "translateX(100%)"
}
})
}
))
, nw = Li((function() {
return hr({
"100%": {
transform: "translateX(-100%)"
},
"0%": {
transform: "translateX(100%)"
}
})
}
))
, rw = Sg()
, iw = l.forwardRef((function(e, t) {
var n = e.styles
, r = e.shimmerElements
, i = e.children
, o = e.width
, a = e.className
, s = e.customElementsGroup
, c = e.theme
, u = e.ariaLabel
, d = e.shimmerColors
, p = e.isDataLoaded
, h = void 0 !== p && p
, f = rp(e, np)
, b = rw(n, {
theme: c,
isDataLoaded: h,
className: a,
transitionAnimationInterval: 200,
shimmerColor: d && d.shimmer,
shimmerWaveColor: d && d.shimmerWave
})
, g = $y({
lastTimeoutId: 0
})
, m = Ij()
, v = m.setTimeout
, y = m.clearTimeout
, x = l.useState(h)
, O = x[0]
, j = x[1]
, k = {
width: o || "100%"
};
return l.useEffect((function() {
if (h !== O) {
if (h)
return g.lastTimeoutId = v((function() {
j(!0)
}
), 200),
function() {
return y(g.lastTimeoutId)
}
;
j(!1)
}
}
), [h]),
l.createElement("div", Object(zn.a)({}, f, {
className: b.root,
ref: t
}), !O && l.createElement("div", {
style: k,
className: b.shimmerWrapper
}, l.createElement("div", {
className: b.shimmerGradient
}), s || l.createElement($k, {
shimmerElements: r,
backgroundColor: d && d.background
})), i && l.createElement("div", {
className: b.dataWrapper
}, i), u && !h && l.createElement("div", {
role: "status",
"aria-live": "polite"
}, l.createElement(ak, null, l.createElement("div", {
className: b.screenReaderText
}, u))))
}
));
iw.displayName = "Shimmer";
var ow, aw, lw, sw, cw, uw = jg(iw, (function(e) {
var t, n = e.isDataLoaded, r = e.className, i = e.theme, o = e.transitionAnimationInterval, a = e.shimmerColor, l = e.shimmerWaveColor, s = i.semanticColors, c = Vi(ew, i), u = vp(i);
return {
root: [c.root, i.fonts.medium, {
position: "relative",
height: "auto"
}, r],
shimmerWrapper: [c.shimmerWrapper, {
position: "relative",
overflow: "hidden",
transform: "translateZ(0)",
backgroundColor: a || s.disabledBackground,
transition: "opacity " + o + "ms",
selectors: (t = {
"> *": {
transform: "translateZ(0)"
}
},
t[vi] = Object(zn.a)({
background: "WindowText\n linear-gradient(\n to right,\n transparent 0%,\n Window 50%,\n transparent 100%)\n 0 0 / 90% 100%\n no-repeat"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
}, n && {
opacity: "0",
position: "absolute",
top: "0",
bottom: "0",
left: "0",
right: "0"
}],
shimmerGradient: [c.shimmerGradient, {
position: "absolute",
top: 0,
left: 0,
width: "100%",
height: "100%",
background: (a || s.disabledBackground) + "\n linear-gradient(\n to right,\n " + (a || s.disabledBackground) + " 0%,\n " + (l || s.bodyDivider) + " 50%,\n " + (a || s.disabledBackground) + " 100%)\n 0 0 / 90% 100%\n no-repeat",
transform: "translateX(-100%)",
animationDuration: "2s",
animationTimingFunction: "ease-in-out",
animationDirection: "normal",
animationIterationCount: "infinite",
animationName: u ? nw() : tw()
}],
dataWrapper: [c.dataWrapper, {
position: "absolute",
top: "0",
bottom: "0",
left: "0",
right: "0",
opacity: "0",
background: "none",
backgroundColor: "transparent",
border: "none",
transition: "opacity " + o + "ms"
}, n && {
opacity: "1",
position: "static"
}],
screenReaderText: Ai
}
}
), void 0, {
scope: "Shimmer"
}), dw = Mu.b.div(ow || (ow = _u(["\n padding: 22px 16px;\n"]))), pw = Mu.b.div(aw || (aw = _u(["\n border: 1px solid #e9e9e9;\n margin: 0 12px;\n background-color:#fff;\n"]))), hw = Mu.b.div(lw || (lw = _u(["\n padding: 16px;\n"]))), fw = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsxs)(pw, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
flexWrap: !0,
width: "calc(100%)",
shimmerElements: [{
type: _k.line,
width: "100%",
height: 400
}]
})
}),
width: "100%"
}), Object(Ip.jsx)(dw, {
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
width: "100%"
},
children: [Object(Ip.jsx)($k, {
flexWrap: !0,
width: "calc(100% - 50px)",
shimmerElements: [{
type: _k.line,
width: "90%",
height: 10
}, {
type: _k.gap,
width: "10%",
height: 20
}, {
type: _k.line,
width: "100%",
height: 10
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
width: 10,
height: 40
}, {
type: _k.circle,
height: 40
}]
})]
})
}),
width: "100%"
})
}), Object(Ip.jsx)(hw, {
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
width: "100%",
justifyContent: "flex-end"
},
children: [Object(Ip.jsx)($k, {
width: "calc(100% - 80px)",
shimmerElements: [{
type: _k.gap,
width: "300px",
height: 32
}, {
type: _k.line,
width: "100%",
height: 32
}]
}), Object(Ip.jsx)($k, {
width: "calc(80px)",
shimmerElements: [{
type: _k.gap,
width: 10,
height: 32
}, {
type: _k.line,
height: 32
}]
})]
}),
width: "100%"
})
})]
})
}
}]),
n
}(l.Component), bw = fw, gw = function(e) {
var t = e.count
, n = e.style
, r = new Array(null != t ? t : 4).fill(0);
return Object(Ip.jsx)(Ip.Fragment, {
children: r.map((function(e, t) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-md3 ms-lg3",
style: null != n ? n : {},
children: Object(Ip.jsx)(bw, {})
}, t)
}
))
})
}, mw = Mu.b.div(sw || (sw = _u(["\n margin: ", ";\n padding: ", ";\n display: ", ";\n"])), (function(e) {
return e.margin ? e.margin : "0px"
}
), (function(e) {
return e.padding ? e.padding : "0px"
}
), (function(e) {
return e.inlineblock ? "inline-block" : "block"
}
)), vw = Mu.b.div(cw || (cw = _u(["\n margin: auto;\n max-width: 1366px;\n padding: 0 30px;\n"]))), yw = mw, xw = Li((function(e, t, n, r) {
var i, o, a, l, s, c, u, d, p, h, f, b, g, m, v = rj(e), y = ij(e), x = e.palette, O = e.semanticColors;
return No(v, y, {
root: [Mi(e, {
inset: 2,
highContrastStyle: {
left: 4,
top: 4,
bottom: 4,
right: 4,
border: "none"
},
borderColor: "transparent"
}), e.fonts.medium, {
minWidth: "40px",
backgroundColor: x.white,
color: x.neutralPrimary,
padding: "0 4px",
border: "none",
borderRadius: 0,
selectors: (i = {},
i[vi] = {
border: "none"
},
i)
}],
rootHovered: {
backgroundColor: x.neutralLighter,
color: x.neutralDark,
selectors: (o = {},
o[vi] = {
color: "Highlight"
},
o["." + KO.msButtonIcon] = {
color: x.themeDarkAlt
},
o["." + KO.msButtonMenuIcon] = {
color: x.neutralPrimary
},
o)
},
rootPressed: {
backgroundColor: x.neutralLight,
color: x.neutralDark,
selectors: (a = {},
a["." + KO.msButtonIcon] = {
color: x.themeDark
},
a["." + KO.msButtonMenuIcon] = {
color: x.neutralPrimary
},
a)
},
rootChecked: {
backgroundColor: x.neutralLight,
color: x.neutralDark,
selectors: (l = {},
l["." + KO.msButtonIcon] = {
color: x.themeDark
},
l["." + KO.msButtonMenuIcon] = {
color: x.neutralPrimary
},
l)
},
rootCheckedHovered: {
backgroundColor: x.neutralQuaternaryAlt,
selectors: (s = {},
s["." + KO.msButtonIcon] = {
color: x.themeDark
},
s["." + KO.msButtonMenuIcon] = {
color: x.neutralPrimary
},
s)
},
rootExpanded: {
backgroundColor: x.neutralLight,
color: x.neutralDark,
selectors: (c = {},
c["." + KO.msButtonIcon] = {
color: x.themeDark
},
c["." + KO.msButtonMenuIcon] = {
color: x.neutralPrimary
},
c)
},
rootExpandedHovered: {
backgroundColor: x.neutralQuaternaryAlt
},
rootDisabled: {
backgroundColor: x.white,
selectors: (u = {},
u["." + KO.msButtonIcon] = {
color: O.disabledBodySubtext,
selectors: (d = {},
d[vi] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
d)
},
u[vi] = Object(zn.a)({
color: "GrayText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
u)
},
splitButtonContainer: {
height: "100%",
selectors: (p = {},
p[vi] = {
border: "none"
},
p)
},
splitButtonDividerDisabled: {
selectors: (h = {},
h[vi] = {
backgroundColor: "Window"
},
h)
},
splitButtonDivider: {
backgroundColor: x.neutralTertiaryAlt
},
splitButtonMenuButton: {
backgroundColor: x.white,
border: "none",
borderTopRightRadius: "0",
borderBottomRightRadius: "0",
color: x.neutralSecondary,
selectors: {
":hover": {
backgroundColor: x.neutralLighter,
color: x.neutralDark,
selectors: (f = {},
f[vi] = {
color: "Highlight"
},
f["." + KO.msButtonIcon] = {
color: x.neutralPrimary
},
f)
},
":active": {
backgroundColor: x.neutralLight,
selectors: (b = {},
b["." + KO.msButtonIcon] = {
color: x.neutralPrimary
},
b)
}
}
},
splitButtonMenuButtonDisabled: {
backgroundColor: x.white,
selectors: (g = {},
g[vi] = Object(zn.a)({
color: "GrayText",
border: "none",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
g)
},
splitButtonMenuButtonChecked: {
backgroundColor: x.neutralLight,
color: x.neutralDark,
selectors: {
":hover": {
backgroundColor: x.neutralQuaternaryAlt
}
}
},
splitButtonMenuButtonExpanded: {
backgroundColor: x.neutralLight,
color: x.black,
selectors: {
":hover": {
backgroundColor: x.neutralQuaternaryAlt
}
}
},
splitButtonMenuIcon: {
color: x.neutralPrimary
},
splitButtonMenuIconDisabled: {
color: x.neutralTertiary
},
label: {
fontWeight: "normal"
},
icon: {
color: x.themePrimary
},
menuIcon: (m = {
color: x.neutralSecondary
},
m[vi] = {
color: "GrayText"
},
m)
}, t)
}
)), Ow = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.styles
, n = e.theme;
return l.createElement(ZO, Object(zn.a)({}, this.props, {
variantClassName: "ms-Button--commandBar",
styles: xw(n, t),
onRenderDescription: ug
}))
}
,
Object(zn.b)([$O("CommandBarButton", ["theme", "styles"], !0)], t)
}(l.Component);
function jw() {
return "undefined" != typeof window && !(!window.document || !window.document.createElement)
}
var kw = void 0;
try {
kw = window
} catch (e) {}
function ww(e) {
if (jw() && void 0 !== kw) {
var t = e;
return t && t.ownerDocument && t.ownerDocument.defaultView ? t.ownerDocument.defaultView : kw
}
}
var Cw, _w = "__global__", Mw = {
stylesheetKey: _w,
inShadow: !1,
window: void 0,
__isShadowConfig__: !0
}, Sw = function(e) {
return !!e && !0 === e.__isShadowConfig__
}, Aw = "undefined" != typeof navigator && /rv:11.0/.test(navigator.userAgent), Tw = {};
try {
Tw = window || {}
} catch (e) {}
var Ew = function() {
function e(e, t) {
var n, r, i, o, a, l;
this._rules = [],
this._preservedRules = [],
this._counter = 0,
this._keyToClassName = {},
this._onInsertRuleCallbacks = [],
this._onResetCallbacks = [],
this._classNameToArgs = {},
this._config = Object(zn.a)({
injectionMode: "undefined" == typeof document ? 0 : 1,
defaultPrefix: "css",
namespace: void 0,
cspSettings: void 0
}, e),
this._classNameToArgs = null !== (n = null == t ? void 0 : t.classNameToArgs) && void 0 !== n ? n : this._classNameToArgs,
this._counter = null !== (r = null == t ? void 0 : t.counter) && void 0 !== r ? r : this._counter,
this._keyToClassName = null !== (o = null !== (i = this._config.classNameCache) && void 0 !== i ? i : null == t ? void 0 : t.keyToClassName) && void 0 !== o ? o : this._keyToClassName,
this._preservedRules = null !== (a = null == t ? void 0 : t.preservedRules) && void 0 !== a ? a : this._preservedRules,
this._rules = null !== (l = null == t ? void 0 : t.rules) && void 0 !== l ? l : this._rules
}
return e.getInstance = function(t) {
if (Cw = Tw.__stylesheet__,
Tw.__shadow_dom_stylesheet__)
return Tw.__shadow_dom_stylesheet__.getInstance(t);
if (!Cw || Cw._lastStyleElement && Cw._lastStyleElement.ownerDocument !== document) {
var n = (null == Tw ? void 0 : Tw.FabricConfig) || {}
, r = new e(n.mergeStyles,n.serializedStylesheet);
Cw = r,
Tw.__stylesheet__ = r
}
return Cw
}
,
e.prototype.serialize = function() {
return JSON.stringify({
classNameToArgs: this._classNameToArgs,
counter: this._counter,
keyToClassName: this._keyToClassName,
preservedRules: this._preservedRules,
rules: this._rules
})
}
,
e.prototype.setConfig = function(e) {
this._config = Object(zn.a)(Object(zn.a)({}, this._config), e)
}
,
e.prototype.onReset = function(e) {
var t = this;
return this._onResetCallbacks.push(e),
function() {
t._onResetCallbacks = t._onResetCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
e.prototype.onInsertRule = function(e) {
var t = this;
return this._onInsertRuleCallbacks.push(e),
function() {
t._onInsertRuleCallbacks = t._onInsertRuleCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
e.prototype.getClassName = function(e) {
var t = this._config.namespace
, n = e || this._config.defaultPrefix;
return "".concat(t ? t + "-" : "").concat(n, "-").concat(this._counter++)
}
,
e.prototype.cacheClassName = function(e, t, n, r) {
this._keyToClassName[this._getCacheKey(t)] = e,
this._classNameToArgs[e] = {
args: n,
rules: r
}
}
,
e.prototype.classNameFromKey = function(e) {
return this._keyToClassName[this._getCacheKey(e)]
}
,
e.prototype.getClassNameCache = function() {
return this._keyToClassName
}
,
e.prototype.argsFromClassName = function(e) {
var t = this._classNameToArgs[e];
return t && t.args
}
,
e.prototype.insertedRulesFromClassName = function(e) {
var t = this._classNameToArgs[e];
return t && t.rules
}
,
e.prototype.insertRule = function(e, t, n) {
void 0 === n && (n = _w);
var r = this._config.injectionMode
, i = 0 !== r ? this._getStyleElement() : void 0;
if (t && this._preservedRules.push(e),
i)
switch (r) {
case 1:
this._insertRuleIntoSheet(i.sheet, e);
break;
case 2:
i.appendChild(document.createTextNode(e))
}
else
this._rules.push(e);
this._config.onInsertRule && this._config.onInsertRule(e),
this._onInsertRuleCallbacks.forEach((function(t) {
return t({
key: n,
sheet: i ? i.sheet : void 0,
rule: e
})
}
))
}
,
e.prototype.getRules = function(e) {
return (e ? this._preservedRules.join("") : "") + this._rules.join("")
}
,
e.prototype.reset = function() {
this._rules = [],
this._counter = 0,
this._classNameToArgs = {},
this._keyToClassName = {},
this._onResetCallbacks.forEach((function(e) {
return e()
}
))
}
,
e.prototype.resetKeys = function() {
this._keyToClassName = {}
}
,
e.prototype._createStyleElement = function() {
var e, t = (null === (e = this._config.window) || void 0 === e ? void 0 : e.document) || document, n = t.head, r = t.createElement("style"), i = null;
r.setAttribute("data-merge-styles", "true");
var o = this._config.cspSettings;
if (o && o.nonce && r.setAttribute("nonce", o.nonce),
this._lastStyleElement)
i = this._lastStyleElement.nextElementSibling;
else {
var a = this._findPlaceholderStyleTag();
i = a ? a.nextElementSibling : n.childNodes[0]
}
return n.insertBefore(r, n.contains(i) ? i : null),
this._lastStyleElement = r,
r
}
,
e.prototype._insertRuleIntoSheet = function(e, t) {
if (!e)
return !1;
try {
return e.insertRule(t, e.cssRules.length),
!0
} catch (e) {}
return !1
}
,
e.prototype._getCacheKey = function(e) {
return e
}
,
e.prototype._getStyleElement = function() {
var e = this;
return this._styleElement || (this._styleElement = this._createStyleElement(),
Aw || (this._config.window || window).requestAnimationFrame((function() {
e._styleElement = void 0
}
))),
this._styleElement
}
,
e.prototype._findPlaceholderStyleTag = function() {
var e = document.head;
return e ? e.querySelector("style[data-merge-styles]") : null
}
,
e
}()
, Iw = ww() || {};
void 0 === Iw.__currentId__ && (Iw.__currentId__ = 0);
var Nw = !1;
function zw(e) {
if (!Nw) {
var t = Ew.getInstance();
t && t.onReset && t.onReset(Dw),
Nw = !0
}
return (void 0 === e ? "id__" : e) + Iw.__currentId__++
}
function Dw(e) {
void 0 === e && (e = 0),
Iw.__currentId__ = e
}
function Lw(e, t) {
var n = l.useRef(t);
return n.current || (n.current = zw(e)),
n.current
}
var Rw, Pw, Bw, Fw, Vw, Ww, qw, Hw, Uw, Xw = {
main: {
maxWidth: 450
}
}, Gw = {
noImage: Hp,
noImageBlack: Up
}, Kw = {
type: ej.normal,
title: "Delete template?",
closeButtonAriaLabel: "Close",
subText: "Do you want to delete?"
}, Yw = {
type: ej.normal,
title: "Rename template?",
closeButtonAriaLabel: "Close",
subText: ""
}, Qw = Mu.b.div(Rw || (Rw = _u(["\n position: relative;\n overflow: hidden;\n"]))), Jw = Mu.b.div(Pw || (Pw = _u(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), Zw = Mu.b.div(Bw || (Bw = _u(["\n display: flex;\n overflow: hidden;\n height: 400px;\n background-repeat: no-repeat;\n background-size: 100%;\n background-position: 0 top;\n transition: background-position 7s ease;\n background-color: #f4f6fc;\n"]))), $w = Mu.b.div(Fw || (Fw = _u(["\n background: white;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n padding: 0px 16px 16px;\n"]))), eC = Mu.b.div(Vw || (Vw = _u(["\n width: 40px;\n height: 40px;\n background: #eeeeee;\n border-radius: 40px;\n line-height: 40px;\n text-align: center;\n i {\n font-size: 20px;\n color: white;\n }\n"]))), tC = Object(Mu.c)(Ww || (Ww = _u(["\n 0% {\n transform:scale(0);\n }\n 100% {\n transform:scale(1.25);\n }\n"]))), nC = Mu.b.a(qw || (qw = _u(["\n text-decoration: none;\n display: block;\n //border: 1px solid #e9e9e9;\n padding: 0;\n background-color: #ffffff;\n box-shadow:0 4px 10px 0 rgb(33 33 43 / 10%);\n border-radius:6px;\n overflow:hidden;\n &.activeItem {\n box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);\n ", " {\n background-color: ", ";\n color: white;\n animation: 0.2s ", " ease-out;\n }\n }\n"])), eC, Po.palette.themePrimary, tC), rC = Mu.b.div(Hw || (Hw = _u(["\n cursor: pointer;\n padding: 0 12px;\n ", " {\n opacity: 0;\n visibility: hidden;\n transition: all 0.1s ease-in;\n }\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n ", " {\n &.activeItem {\n ", " {\n opacity: 1;\n visibility: visible;\n }\n }\n }\n"])), Jw, Jw, $w, nC, Jw), iC = {
root: {
marginLeft: 10,
borderRadius: 2,
height: 32,
borderStyle: "solid",
borderWidth: 1,
borderColor: " #babfc3",
padding: "0 4px 0 8px"
},
rootHovered: {
opacity: .8,
background: "white"
},
rootExpandedHovered: {},
rootHasMenu: {
minWidth: "auto"
},
label: {
fontWeight: "bold",
fontSize: 12,
color: "#7E82A4"
}
}, oC = {
root: [{
color: Po.palette.neutralPrimary,
fontSize: 18
}]
}, aC = {
root: [{
color: Po.palette.neutralPrimaryAlt,
marginBottom: 5
}]
}, lC = va((function(e) {
return {
templateActiveId: ab(e)
}
}
), {
createTemplate: of,
updateTemplate: af,
deleteTemplate: lf,
activeTemplate: sf
})((function(e) {
var t = e.deleteTemplate
, n = e.configTemplate
, r = e.template
, i = e.activeTemplate
, o = e.templateActiveId
, a = e.createTemplate
, c = e.updateTemplate
, u = s.a.useState("delete")
, d = Object(ss.a)(u, 2)
, p = d[0]
, h = d[1]
, f = Ck(!0)
, b = Object(ss.a)(f, 2)
, g = b[0]
, m = b[1].toggle
, v = Object(l.useState)(r.name)
, y = Object(ss.a)(v, 2)
, x = y[0]
, O = y[1]
, j = Ck(!1)
, k = Object(ss.a)(j, 2)
, w = k[0]
, C = k[1].toggle
, _ = Ck(!1)
, M = Object(ss.a)(_, 2)
, S = M[0]
, A = M[1].toggle
, T = Lw("dialogLabel")
, E = Lw("subTextLabel")
, I = s.a.useMemo((function() {
return {
titleAriaId: T,
subtitleAriaId: E,
isBlocking: !1,
styles: Xw,
dragOptions: void 0
}
}
), [T, E])
, N = {
items: [{
key: "rename",
text: "Rename",
iconProps: {
iconName: "PageEdit"
},
onClick: function() {
m(),
h("rename")
}
}, {
key: "changecover",
text: "Change Cover Image",
iconProps: {
iconName: "FileImage"
},
onClick: function() {
!function() {
var e = wp.media({
title: "Select or Upload Media Of Your Chosen Persuasion",
button: {
text: "Use this media"
},
multiple: !1
});
e.open(),
e.on("select", (function() {
var t = e.state().get("selection").first().toJSON();
console.log(t);
var n = {
id: r.id,
data: {
featured_media: t.id
},
cb: function() {
console.log("done")
}
};
c(n)
}
))
}(),
h("changecover")
}
}, {
key: "duplicate",
text: "Duplicate",
iconProps: {
iconName: "Copy"
},
onClick: function() {
var e = {
data: {
title: r.name + " - Copy",
status: "publish",
content: r.data,
featured_media: r.featured_media
},
cb: function() {}
};
a(e)
}
}, {
key: "delete",
text: "Delete",
iconProps: {
iconName: "Delete"
},
onClick: function() {
m(),
h("delete")
}
}]
}
, z = "delete" === p
, D = !!o && r.id.toString() === o.toString();
return Object(Ip.jsxs)(rC, {
children: [Object(Ip.jsxs)(nC, {
className: D ? "activeItem" : "",
children: [Object(Ip.jsxs)(Qw, {
children: [Object(Ip.jsx)(Zw, {
style: {
backgroundImage: r.image ? "url(".concat(r.image, ")") : Gw.noImage
}
}), Object(Ip.jsx)(Jw, {
children: D ? null : Object(Ip.jsx)(kk, {
onClick: function() {
return n(r)
},
children: "Customize"
})
})]
}), Object(Ip.jsx)(yw, {
padding: "20px 16px 16px",
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
horizontalAlign: "space-between",
children: [Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(yw, {
padding: "0px 0px 8px 0px",
children: Object(Ip.jsx)(Ep, {
block: !0,
variant: "mediumPlus",
styles: oC,
children: r.name
})
}), Object(Ip.jsxs)(Ep, {
block: !0,
variant: "small",
styles: aC,
children: ["Last saved: ", r.modified]
}), Object(Ip.jsxs)(Ep, {
block: !0,
variant: "small",
styles: aC,
children: ["ID : ", r.id]
})]
}), Object(Ip.jsx)(eC, {
children: Object(Ip.jsx)(lp, {
iconName: "CheckMark"
})
})]
})
}), Object(Ip.jsxs)($w, {
children: [D ? Object(Ip.jsx)(kk, {
onClick: function() {
return n(r)
},
children: "Customize"
}) : Object(Ip.jsx)(Dk, {
typebtn: "outline",
className: w ? "progress" : "",
onClick: function() {
C();
var e = {
id: r.id,
cb: C
};
i(e)
},
children: "Activate"
}), Object(Ip.jsx)(Ow, {
text: "Action",
styles: iC,
menuProps: N
})]
})]
}), Object(Ip.jsxs)(tk, {
hidden: g,
onDismiss: m,
dialogContentProps: z ? Kw : Yw,
modalProps: I,
children: [!z && Object(Ip.jsx)(jk, {
value: x,
label: "Template Name",
onChange: function(e, t) {
return O(t || "")
}
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(zk, {
className: S ? "progress" : "",
onClick: function() {
return z ? (t(r.id),
void m()) : function() {
A();
var e = {
id: r.id,
data: {
title: x
},
cb: function() {
A(),
m()
}
};
c(e)
}()
},
typebtn: z ? "errorprimary" : "primary",
children: z ? "Delete" : "Update"
}), Object(Ip.jsx)(aj, {
onClick: m,
text: "Cancel"
})]
})]
})]
})
}
));
!function(e) {
e[e.smallFluid = 0] = "smallFluid",
e[e.smallFixedFar = 1] = "smallFixedFar",
e[e.smallFixedNear = 2] = "smallFixedNear",
e[e.medium = 3] = "medium",
e[e.large = 4] = "large",
e[e.largeFixed = 5] = "largeFixed",
e[e.extraLarge = 6] = "extraLarge",
e[e.custom = 7] = "custom",
e[e.customNear = 8] = "customNear"
}(Uw || (Uw = {}));
var sC, cC = Sg();
!function(e) {
e[e.closed = 0] = "closed",
e[e.animatingOpen = 1] = "animatingOpen",
e[e.open = 2] = "open",
e[e.animatingClosed = 3] = "animatingClosed"
}(sC || (sC = {}));
var uC, dC, pC, hC, fC, bC = function(e) {
function t(t) {
var n = e.call(this, t) || this;
n._panel = l.createRef(),
n._animationCallback = null,
n._hasCustomNavigation = !(!n.props.onRenderNavigation && !n.props.onRenderNavigationContent),
n.dismiss = function(e) {
n.props.onDismiss && n.isActive && n.props.onDismiss(e),
(!e || e && !e.defaultPrevented) && n.close()
}
,
n._allowScrollOnPanel = function(e) {
e ? n._allowTouchBodyScroll ? ky(e, n._events) : jy(e, n._events) : n._events.off(n._scrollableContent),
n._scrollableContent = e
}
,
n._onRenderNavigation = function(e) {
if (!n.props.onRenderNavigationContent && !n.props.onRenderNavigation && !n.props.hasCloseButton)
return null;
var t = n.props.onRenderNavigationContent
, r = void 0 === t ? n._onRenderNavigationContent : t;
return l.createElement("div", {
className: n._classNames.navigation
}, r(e, n._onRenderNavigationContent))
}
,
n._onRenderNavigationContent = function(e) {
var t, r = e.closeButtonAriaLabel, i = e.hasCloseButton, o = e.onRenderHeader, a = void 0 === o ? n._onRenderHeader : o;
if (i) {
var s = null === (t = n._classNames.subComponentStyles) || void 0 === t ? void 0 : t.closeButton();
return l.createElement(l.Fragment, null, !n._hasCustomNavigation && a(n.props, n._onRenderHeader, n._headerTextId), l.createElement(Fj, {
styles: s,
className: n._classNames.closeButton,
onClick: n._onPanelClick,
ariaLabel: r,
title: r,
"data-is-visible": !0,
iconProps: {
iconName: "Cancel"
}
}))
}
return null
}
,
n._onRenderHeader = function(e, t, r) {
var i = e.headerText
, o = e.headerTextProps
, a = void 0 === o ? {} : o;
return i ? l.createElement("div", {
className: n._classNames.header
}, l.createElement("div", Object(zn.a)({
id: r,
role: "heading",
"aria-level": 1
}, a, {
className: ip(n._classNames.headerText, a.className)
}), i)) : null
}
,
n._onRenderBody = function(e) {
return l.createElement("div", {
className: n._classNames.content
}, e.children)
}
,
n._onRenderFooter = function(e) {
var t = n.props.onRenderFooterContent
, r = void 0 === t ? null : t;
return r ? l.createElement("div", {
className: n._classNames.footer
}, l.createElement("div", {
className: n._classNames.footerInner
}, r())) : null
}
,
n._animateTo = function(e) {
e === sC.open && n.props.onOpen && n.props.onOpen(),
n._animationCallback = n._async.setTimeout((function() {
n.setState({
visibility: e
}),
n._onTransitionComplete()
}
), 200)
}
,
n._clearExistingAnimationTimer = function() {
null !== n._animationCallback && n._async.clearTimeout(n._animationCallback)
}
,
n._onPanelClick = function(e) {
n.dismiss(e)
}
,
n._onTransitionComplete = function() {
n._updateFooterPosition(),
n.state.visibility === sC.open && n.props.onOpened && n.props.onOpened(),
n.state.visibility === sC.closed && n.props.onDismissed && n.props.onDismissed()
}
;
var r = n.props.allowTouchBodyScroll
, i = void 0 !== r && r;
return n._allowTouchBodyScroll = i,
n._async = new $b(n),
n._events = new rg(n),
Kb(n),
n.state = {
isFooterSticky: !1,
visibility: sC.closed,
id: lg("Panel")
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
return void 0 === e.isOpen ? null : !e.isOpen || t.visibility !== sC.closed && t.visibility !== sC.animatingClosed ? e.isOpen || t.visibility !== sC.open && t.visibility !== sC.animatingOpen ? null : {
visibility: sC.animatingClosed
} : {
visibility: sC.animatingOpen
}
}
,
t.prototype.componentDidMount = function() {
this._events.on(window, "resize", this._updateFooterPosition),
this._shouldListenForOuterClick(this.props) && this._events.on(document.body, "mousedown", this._dismissOnOuterClick, !0),
this.props.isOpen && this.setState({
visibility: sC.animatingOpen
})
}
,
t.prototype.componentDidUpdate = function(e, t) {
var n = this._shouldListenForOuterClick(this.props)
, r = this._shouldListenForOuterClick(e);
this.state.visibility !== t.visibility && (this._clearExistingAnimationTimer(),
this.state.visibility === sC.animatingOpen ? this._animateTo(sC.open) : this.state.visibility === sC.animatingClosed && this._animateTo(sC.closed)),
n && !r ? this._events.on(document.body, "mousedown", this._dismissOnOuterClick, !0) : !n && r && this._events.off(document.body, "mousedown", this._dismissOnOuterClick, !0)
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.render = function() {
var e = this.props
, t = e.className
, n = void 0 === t ? "" : t
, r = e.elementToFocusOnDismiss
, i = e.firstFocusableSelector
, o = e.focusTrapZoneProps
, a = e.forceFocusInsideTrap
, s = e.hasCloseButton
, c = e.headerText
, u = e.headerClassName
, d = void 0 === u ? "" : u
, p = e.ignoreExternalFocusing
, h = e.isBlocking
, f = e.isFooterAtBottom
, b = e.isLightDismiss
, g = e.isHiddenOnDismiss
, m = e.layerProps
, v = e.overlayProps
, y = e.popupProps
, x = e.type
, O = e.styles
, j = e.theme
, k = e.customWidth
, w = e.onLightDismissClick
, C = void 0 === w ? this._onPanelClick : w
, _ = e.onRenderNavigation
, M = void 0 === _ ? this._onRenderNavigation : _
, S = e.onRenderHeader
, A = void 0 === S ? this._onRenderHeader : S
, T = e.onRenderBody
, E = void 0 === T ? this._onRenderBody : T
, I = e.onRenderFooter
, N = void 0 === I ? this._onRenderFooter : I
, z = this.state
, D = z.isFooterSticky
, L = z.visibility
, R = z.id
, P = x === Uw.smallFixedNear || x === Uw.customNear
, B = vp(j) ? P : !P
, F = x === Uw.custom || x === Uw.customNear ? {
width: k
} : {}
, V = rp(this.props, np)
, W = this.isActive
, q = L === sC.animatingClosed || L === sC.animatingOpen;
if (this._headerTextId = c && R + "-headerText",
!W && !q && !g)
return null;
this._classNames = cC(O, {
theme: j,
className: n,
focusTrapZoneClassName: o ? o.className : void 0,
hasCloseButton: s,
headerClassName: d,
isAnimating: q,
isFooterSticky: D,
isFooterAtBottom: f,
isOnRightSide: B,
isOpen: W,
isHiddenOnDismiss: g,
type: x,
hasCustomNavigation: this._hasCustomNavigation
});
var H, U = this._classNames, X = this._allowTouchBodyScroll;
return h && W && (H = l.createElement(Mj, Object(zn.a)({
className: U.overlay,
isDarkThemed: !1,
onClick: b ? C : void 0,
allowTouchBodyScroll: X
}, v))),
l.createElement(Px, Object(zn.a)({}, m), l.createElement(sx, Object(zn.a)({
role: "dialog",
"aria-modal": h ? "true" : void 0,
ariaLabelledBy: this._headerTextId ? this._headerTextId : void 0,
onDismiss: this.dismiss,
className: U.hiddenPanel
}, y), l.createElement("div", Object(zn.a)({
"aria-hidden": !W && q
}, V, {
ref: this._panel,
className: U.root
}), H, l.createElement(xj, Object(zn.a)({
ignoreExternalFocusing: p,
forceFocusInsideTrap: !(!h || g && !W) && a,
firstFocusableSelector: i,
isClickableOutsideFocusTrap: !0
}, o, {
className: U.main,
style: F,
elementToFocusOnDismiss: r
}), l.createElement("div", {
className: U.contentInner
}, l.createElement("div", {
ref: this._allowScrollOnPanel,
className: U.scrollableContent,
"data-is-scrollable": !0
}, l.createElement("div", {
className: U.commands,
"data-is-visible": !0
}, M(this.props, this._onRenderNavigation)), (this._hasCustomNavigation || !s) && A(this.props, this._onRenderHeader, this._headerTextId), E(this.props, this._onRenderBody), N(this.props, this._onRenderFooter)))))))
}
,
t.prototype.open = function() {
void 0 === this.props.isOpen && (this.isActive || this.setState({
visibility: sC.animatingOpen
}))
}
,
t.prototype.close = function() {
void 0 === this.props.isOpen && this.isActive && this.setState({
visibility: sC.animatingClosed
})
}
,
Object.defineProperty(t.prototype, "isActive", {
get: function() {
return this.state.visibility === sC.open || this.state.visibility === sC.animatingOpen
},
enumerable: !1,
configurable: !0
}),
t.prototype._shouldListenForOuterClick = function(e) {
return !!e.isBlocking && !!e.isOpen
}
,
t.prototype._updateFooterPosition = function() {
var e = this._scrollableContent;
if (e) {
var t = e.clientHeight
, n = e.scrollHeight;
this.setState({
isFooterSticky: t < n
})
}
}
,
t.prototype._dismissOnOuterClick = function(e) {
var t = this._panel.current;
this.isActive && t && !e.defaultPrevented && (Yv(t, e.target) || (this.props.onOuterClick ? this.props.onOuterClick(e) : this.dismiss(e)))
}
,
t.defaultProps = {
isHiddenOnDismiss: !1,
isOpen: void 0,
isBlocking: !0,
hasCloseButton: !0,
type: Uw.smallFixedFar
},
t
}(l.Component), gC = {
root: "ms-Panel",
main: "ms-Panel-main",
commands: "ms-Panel-commands",
contentInner: "ms-Panel-contentInner",
scrollableContent: "ms-Panel-scrollableContent",
navigation: "ms-Panel-navigation",
closeButton: "ms-Panel-closeButton ms-PanelAction-close",
header: "ms-Panel-header",
headerText: "ms-Panel-headerText",
content: "ms-Panel-content",
footer: "ms-Panel-footer",
footerInner: "ms-Panel-footerInner",
isOpen: "is-open",
hasCloseButton: "ms-Panel--hasCloseButton",
smallFluid: "ms-Panel--smFluid",
smallFixedNear: "ms-Panel--smLeft",
smallFixedFar: "ms-Panel--sm",
medium: "ms-Panel--md",
large: "ms-Panel--lg",
largeFixed: "ms-Panel--fixed",
extraLarge: "ms-Panel--xl",
custom: "ms-Panel--custom",
customNear: "ms-Panel--customLeft"
}, mC = "auto", vC = ((uC = {})["@media (min-width: 480px)"] = {
width: 340
},
uC), yC = ((dC = {})["@media (min-width: 640px)"] = {
width: 592
},
dC["@media (min-width: 1024px)"] = {
width: 644
},
dC), xC = ((pC = {})["@media (min-width: 768px)"] = {
left: 48,
width: "auto"
},
pC["@media (min-width: 1366px)"] = {
left: 428
},
pC), OC = ((hC = {})["@media (min-width: 1366px)"] = {
left: mC,
width: 940
},
hC), jC = ((fC = {})["@media (min-width: 1366px)"] = {
left: 176
},
fC), kC = function(e) {
var t;
switch (e) {
case Uw.smallFixedFar:
t = Object(zn.a)({}, vC);
break;
case Uw.medium:
t = Object(zn.a)(Object(zn.a)({}, vC), yC);
break;
case Uw.large:
t = Object(zn.a)(Object(zn.a)(Object(zn.a)({}, vC), yC), xC);
break;
case Uw.largeFixed:
t = Object(zn.a)(Object(zn.a)(Object(zn.a)(Object(zn.a)({}, vC), yC), xC), OC);
break;
case Uw.extraLarge:
t = Object(zn.a)(Object(zn.a)(Object(zn.a)(Object(zn.a)({}, vC), yC), xC), jC)
}
return t
}, wC = {
paddingLeft: "24px",
paddingRight: "24px"
}, CC = jg(bC, (function(e) {
var t, n, r, i, o = e.className, a = e.focusTrapZoneClassName, l = e.hasCloseButton, s = e.headerClassName, c = e.isAnimating, u = e.isFooterSticky, d = e.isFooterAtBottom, p = e.isOnRightSide, h = e.isOpen, f = e.isHiddenOnDismiss, b = e.hasCustomNavigation, g = e.theme, m = e.type, v = void 0 === m ? Uw.smallFixedFar : m, y = g.effects, x = g.fonts, O = g.semanticColors, j = Vi(gC, g), k = v === Uw.custom || v === Uw.customNear;
return {
root: [j.root, g.fonts.medium, h && j.isOpen, l && j.hasCloseButton, {
pointerEvents: "none",
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0
}, k && p && j.custom, k && !p && j.customNear, o],
overlay: [{
pointerEvents: "auto",
cursor: "pointer"
}, h && c && di.fadeIn100, !h && c && di.fadeOut100],
hiddenPanel: [!h && !c && f && {
visibility: "hidden"
}],
main: [j.main, {
backgroundColor: O.bodyBackground,
boxShadow: y.elevation64,
pointerEvents: "auto",
position: "absolute",
display: "flex",
flexDirection: "column",
overflowX: "hidden",
overflowY: "auto",
WebkitOverflowScrolling: "touch",
bottom: 0,
top: 0,
left: mC,
right: 0,
width: "100%",
selectors: Object(zn.a)((t = {},
t[vi] = {
borderLeft: "3px solid " + O.variantBorder,
borderRight: "3px solid " + O.variantBorder
},
t), kC(v))
}, v === Uw.smallFluid && {
left: 0
}, v === Uw.smallFixedNear && {
left: 0,
right: mC,
width: 272
}, v === Uw.customNear && {
right: "auto",
left: 0
}, k && {
maxWidth: "100vw"
}, h && c && !p && di.slideRightIn40, h && c && p && di.slideLeftIn40, !h && c && !p && di.slideLeftOut40, !h && c && p && di.slideRightOut40, a],
commands: [j.commands, {
marginTop: 18,
selectors: (n = {},
n["@media (min-height: 480px)"] = {
backgroundColor: O.bodyBackground,
position: "sticky",
top: 0,
zIndex: 1
},
n)
}, b && {
marginTop: "inherit"
}],
navigation: [j.navigation, {
display: "flex",
justifyContent: "flex-end"
}, b && {
height: "44px"
}],
contentInner: [j.contentInner, {
display: "flex",
flexDirection: "column",
flexGrow: 1,
overflowY: "hidden"
}],
header: [j.header, wC, {
alignSelf: "flex-start"
}, l && !b && {
flexGrow: 1
}, b && {
flexShrink: 0
}],
headerText: [j.headerText, x.xLarge, {
color: O.bodyText,
lineHeight: "27px",
overflowWrap: "break-word",
wordWrap: "break-word",
wordBreak: "break-word",
hyphens: "auto"
}, s],
scrollableContent: [j.scrollableContent, {
overflowY: "auto"
}, d && {
flexGrow: 1,
display: "inherit",
flexDirection: "inherit"
}],
content: [j.content, wC, {
paddingBottom: 20
}, d && {
selectors: (r = {},
r["@media (min-height: 480px)"] = {
flexGrow: 1
},
r)
}],
footer: [j.footer, {
flexShrink: 0,
borderTop: "1px solid transparent",
transition: "opacity " + ni + " " + $r,
selectors: (i = {},
i["@media (min-height: 480px)"] = {
background: O.bodyBackground,
position: "sticky",
bottom: 0
},
i)
}, u && {
background: O.bodyBackground,
borderTopColor: O.variantBorder
}],
footerInner: [j.footerInner, wC, {
paddingBottom: 16,
paddingTop: 16
}],
subComponentStyles: {
closeButton: {
root: [j.closeButton, {
marginRight: 14,
color: g.palette.neutralSecondary,
fontSize: gi.large
}, b && {
marginRight: 0,
height: "auto",
width: "44px"
}],
rootHovered: {
color: g.palette.neutralPrimary
}
}
}
}
}
), void 0, {
scope: "Panel"
});
function _C(e, t, n) {
var r = l.useState(t)
, i = r[0]
, o = r[1]
, a = $y(void 0 !== e)
, s = a ? e : i
, c = l.useRef(s)
, u = l.useRef(n);
l.useEffect((function() {
c.current = s,
u.current = n
}
));
var d = $y((function() {
return function(e, t) {
var n = "function" == typeof e ? e(c.current) : e;
u.current && u.current(t, n),
a || o(n)
}
}
));
return [s, d]
}
var MC = Li((function(e, t) {
var n, r, i;
return No(rj(e), {
root: {
padding: "0 4px",
height: "40px",
color: e.palette.neutralPrimary,
backgroundColor: "transparent",
border: "1px solid transparent",
selectors: (n = {},
n[vi] = {
borderColor: "Window"
},
n)
},
rootHovered: {
color: e.palette.themePrimary,
selectors: (r = {},
r[vi] = {
color: "Highlight"
},
r)
},
iconHovered: {
color: e.palette.themePrimary
},
rootPressed: {
color: e.palette.black
},
rootExpanded: {
color: e.palette.themePrimary
},
iconPressed: {
color: e.palette.themeDarker
},
rootDisabled: {
color: e.palette.neutralTertiary,
backgroundColor: "transparent",
borderColor: "transparent",
selectors: (i = {},
i[vi] = {
color: "GrayText"
},
i)
},
rootChecked: {
color: e.palette.black
},
iconChecked: {
color: e.palette.themeDarker
},
flexContainer: {
justifyContent: "flex-start"
},
icon: {
color: e.palette.themeDarkAlt
},
iconDisabled: {
color: "inherit"
},
menuIcon: {
color: e.palette.neutralSecondary
},
textContainer: {
flexGrow: 0
}
}, t)
}
))
, SC = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.styles
, n = e.theme;
return l.createElement(ZO, Object(zn.a)({}, this.props, {
variantClassName: "ms-Button--action ms-Button--command",
styles: MC(n, t),
onRenderDescription: ug
}))
}
,
Object(zn.b)([$O("ActionButton", ["theme", "styles"], !0)], t)
}(l.Component)
, AC = SC;
function TC(e, t) {
void 0 === t && (t = null);
var n = l.useRef({
ref: function() {
var e = function(e) {
n.ref.current !== e && (n.cleanup && (n.cleanup(),
n.cleanup = void 0),
n.ref.current = e,
null !== e && (n.cleanup = n.callback(e)))
};
return e.current = t,
e
}(),
callback: e
}).current;
return n.callback = e,
n.ref
}
var EC = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return Kb(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
return l.createElement("div", Object(zn.a)({}, rp(this.props, np)), this.props.children)
}
,
t
}(l.Component)
, IC = Sg()
, NC = function(e, t) {
var n = {
links: [],
keyToIndexMapping: {},
keyToTabIdMapping: {}
};
return l.Children.forEach(l.Children.toArray(e.children), (function(r, i) {
if (zC(r)) {
var o = r.props
, a = o.linkText
, l = Object(zn.d)(o, ["linkText"])
, s = r.props.itemKey || i.toString();
n.links.push(Object(zn.a)(Object(zn.a)({
headerText: a
}, l), {
itemKey: s
})),
n.keyToIndexMapping[s] = i,
n.keyToTabIdMapping[s] = function(e, t, n, r) {
return e.getTabId ? e.getTabId(n, r) : t + "-Tab" + r
}(e, t, s, i)
} else
r && wo("The children of a Pivot component must be of type PivotItem to be rendered.")
}
)),
n
}
, zC = function(e) {
var t;
return l.isValidElement(e) && (null === (t = e.type) || void 0 === t ? void 0 : t.name) === EC.name
}
, DC = l.forwardRef((function(e, t) {
var n, r = l.useRef(null), i = l.useRef(null), o = gO("Pivot"), a = _C(e.selectedKey, e.defaultSelectedKey), s = a[0], c = a[1], u = e.componentRef, d = e.theme, p = e.linkSize, h = e.linkFormat, f = e.overflowBehavior, b = e.overflowAriaLabel, g = e.focusZoneProps, m = {
"aria-label": e["aria-label"],
"aria-labelledby": e["aria-labelledby"]
}, v = rp(e, np, ["aria-label", "aria-labelledby"]), y = NC(e, o);
l.useImperativeHandle(u, (function() {
return {
focus: function() {
var e;
null === (e = r.current) || void 0 === e || e.focus()
}
}
}
));
var x = function(e) {
if (!e)
return null;
var t = e.itemCount
, r = e.itemIcon
, i = e.headerText;
return l.createElement("span", {
className: n.linkContent
}, void 0 !== r && l.createElement("span", {
className: n.icon
}, l.createElement(Pg, {
iconName: r
})), void 0 !== i && l.createElement("span", {
className: n.text
}, " ", e.headerText), void 0 !== t && l.createElement("span", {
className: n.count
}, " (", t, ")"))
}
, O = function(e, t, r, i) {
var o, a = t.itemKey, s = t.headerButtonProps, c = t.onRenderItemLink, u = e.keyToTabIdMapping[a], d = r === a;
o = c ? c(t, x) : x(t);
var p = t.headerText || "";
return p += t.itemCount ? " (" + t.itemCount + ")" : "",
p += t.itemIcon ? " xx" : "",
l.createElement(AC, Object(zn.a)({}, s, {
id: u,
key: a,
className: ip(i, d && n.linkIsSelected),
onClick: function(e) {
return j(a, e)
},
onKeyDown: function(e) {
return k(a, e)
},
"aria-label": t.ariaLabel,
role: t.role || "tab",
"aria-selected": d,
name: t.headerText,
keytipProps: t.keytipProps,
"data-content": p
}), o)
}
, j = function(e, t) {
t.preventDefault(),
w(e, t)
}
, k = function(e, t) {
t.which === cp && (t.preventDefault(),
w(e))
}
, w = function(t, n) {
var r;
if (c(t),
y = NC(e, o),
e.onLinkClick && y.keyToIndexMapping[t] >= 0) {
var a = y.keyToIndexMapping[t]
, s = l.Children.toArray(e.children)[a];
zC(s) && e.onLinkClick(s, n)
}
null === (r = i.current) || void 0 === r || r.dismissMenu()
};
n = IC(e.styles, {
theme: d,
linkSize: p,
linkFormat: h
});
var C = function() {
return null === (e = s) || void 0 !== e && void 0 !== y.keyToIndexMapping[e] ? s : y.links.length ? y.links[0].itemKey : void 0;
var e
}()
, _ = C ? y.keyToIndexMapping[C] : 0
, M = y.links.map((function(e) {
return O(y, e, C, n.link)
}
))
, S = l.useMemo((function() {
return {
items: [],
alignTargetEdge: !0,
directionalHint: 6
}
}
), [])
, A = function(e) {
var t = e.onOverflowItemsChanged
, n = e.rtl
, r = e.pinnedIndex
, i = l.useRef()
, o = l.useRef()
, a = TC((function(e) {
var t = function(e, t) {
if ("undefined" != typeof ResizeObserver) {
var n = new ResizeObserver(t);
return Array.isArray(e) ? e.forEach((function(e) {
return n.observe(e)
}
)) : n.observe(e),
function() {
return n.disconnect()
}
}
var r = function() {
return t(void 0)
}
, i = ji(Array.isArray(e) ? e[0] : e);
if (!i)
return function() {}
;
var o = i.requestAnimationFrame(r);
return i.addEventListener("resize", r, !1),
function() {
i.cancelAnimationFrame(o),
i.removeEventListener("resize", r, !1)
}
}(e, (function(t) {
o.current = t ? t[0].contentRect.width : e.clientWidth,
i.current && i.current()
}
));
return function() {
t(),
o.current = void 0
}
}
))
, s = TC((function(e) {
return a(e.parentElement),
function() {
return a(null)
}
}
));
return l.useLayoutEffect((function() {
var e = a.current
, l = s.current;
if (e && l) {
for (var c = [], u = 0; u < e.children.length; u++) {
var d = e.children[u];
d instanceof HTMLElement && d !== l && c.push(d)
}
var p = []
, h = 0;
i.current = function() {
var e = o.current;
if (void 0 !== e) {
for (var t = c.length - 1; t >= 0; t--) {
if (void 0 === p[t]) {
var i = n ? e - c[t].offsetLeft : c[t].offsetLeft + c[t].offsetWidth;
t + 1 < c.length && t + 1 === r && (h = p[t + 1] - i),
t === c.length - 2 && (h += l.offsetWidth),
p[t] = i + h
}
if (e > p[t])
return void b(t + 1)
}
b(0)
}
}
;
var f = c.length
, b = function(e) {
f !== e && (f = e,
t(e, c.map((function(t, n) {
return {
ele: t,
isOverflowing: n >= e && n !== r
}
}
))))
}
, g = void 0;
if (void 0 !== o.current) {
var m = ji(e);
if (m) {
var v = m.requestAnimationFrame(i.current);
g = function() {
return m.cancelAnimationFrame(v)
}
}
}
return function() {
g && g(),
b(c.length),
i.current = void 0
}
}
}
)),
{
menuButtonRef: s
}
}({
onOverflowItemsChanged: function(e, t) {
t.forEach((function(e) {
var t = e.ele
, n = e.isOverflowing;
return t.dataset.isOverflowing = "" + n
}
)),
S.items = y.links.slice(e).filter((function(e) {
return e.itemKey !== C
}
)).map((function(t, r) {
return {
key: t.itemKey || "" + (e + r),
onRender: function() {
return O(y, t, C, n.linkInMenu)
}
}
}
))
},
rtl: vp(d),
pinnedIndex: _
}).menuButtonRef;
return l.createElement("div", Object(zn.a)({
ref: t
}, v), l.createElement(Kv, Object(zn.a)({
componentRef: r,
role: "tablist"
}, m, {
direction: Hg.horizontal
}, g, {
className: ip(n.root, null == g ? void 0 : g.className)
}), M, "menu" === f && l.createElement(AC, {
className: ip(n.link, n.overflowMenuButton),
elementRef: A,
componentRef: i,
menuProps: S,
menuIconProps: {
iconName: "More",
style: {
color: "inherit"
}
},
ariaLabel: b
})), C && y.links.map((function(t) {
return (!0 === t.alwaysRender || C === t.itemKey) && function(t, r) {
if (e.headersOnly || !t)
return null;
var i = y.keyToIndexMapping[t]
, o = y.keyToTabIdMapping[t];
return l.createElement("div", {
role: "tabpanel",
hidden: !r,
key: t,
"aria-hidden": !r,
"aria-labelledby": o,
className: n.itemContainer
}, l.Children.toArray(e.children)[i])
}(t.itemKey, C === t.itemKey)
}
)))
}
));
DC.displayName = "Pivot";
var LC, RC, PC, BC, FC, VC, WC, qC, HC, UC, XC, GC, KC = {
count: "ms-Pivot-count",
icon: "ms-Pivot-icon",
linkIsSelected: "is-selected",
link: "ms-Pivot-link",
linkContent: "ms-Pivot-linkContent",
root: "ms-Pivot",
rootIsLarge: "ms-Pivot--large",
rootIsTabs: "ms-Pivot--tabs",
text: "ms-Pivot-text",
linkInMenu: "ms-Pivot-linkInMenu",
overflowMenuButton: "ms-Pivot-overflowMenuButton"
}, YC = function(e, t, n) {
var r, i, o;
void 0 === n && (n = !1);
var a = e.linkSize
, l = e.linkFormat
, s = e.theme
, c = s.semanticColors
, u = s.fonts
, d = "large" === a
, p = "tabs" === l;
return [u.medium, {
color: c.actionLink,
padding: "0 8px",
position: "relative",
backgroundColor: "transparent",
border: 0,
borderRadius: 0,
selectors: (r = {
":hover": {
backgroundColor: c.buttonBackgroundHovered,
color: c.buttonTextHovered,
cursor: "pointer"
},
":active": {
backgroundColor: c.buttonBackgroundPressed,
color: c.buttonTextHovered
},
":focus": {
outline: "none"
}
},
r[".ms-Fabric--isFocusVisible &:focus"] = {
outline: "1px solid " + c.focusBorder
},
r[".ms-Fabric--isFocusVisible &:focus:after"] = {
content: "attr(data-content)",
position: "relative",
border: 0
},
r)
}, !n && [{
display: "inline-block",
lineHeight: 44,
height: 44,
marginRight: 8,
textAlign: "center",
selectors: {
":before": {
backgroundColor: "transparent",
bottom: 0,
content: '""',
height: 2,
left: 8,
position: "absolute",
right: 8,
transition: "left " + ti + " " + $r + ",\n right " + ti + " " + $r
},
":after": {
color: "transparent",
content: "attr(data-content)",
display: "block",
fontWeight: bi.bold,
height: 1,
overflow: "hidden",
visibility: "hidden"
}
}
}, d && {
fontSize: u.large.fontSize
}, p && [{
marginRight: 0,
height: 44,
lineHeight: 44,
backgroundColor: c.buttonBackground,
padding: "0 10px",
verticalAlign: "top",
selectors: (i = {
":focus": {
outlineOffset: "-1px"
}
},
i[".ms-Fabric--isFocusVisible &:focus::before"] = {
height: "auto",
background: "transparent",
transition: "none"
},
i["&:hover, &:focus"] = {
color: c.buttonTextCheckedHovered
},
i["&:active, &:hover"] = {
color: c.primaryButtonText,
backgroundColor: c.primaryButtonBackground
},
i["&." + t.linkIsSelected] = {
backgroundColor: c.primaryButtonBackground,
color: c.primaryButtonText,
fontWeight: bi.regular,
selectors: (o = {
":before": {
backgroundColor: "transparent",
transition: "none",
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
content: '""',
height: 0
},
":hover": {
backgroundColor: c.primaryButtonBackgroundHovered,
color: c.primaryButtonText
},
"&:active": {
backgroundColor: c.primaryButtonBackgroundPressed,
color: c.primaryButtonText
}
},
o[vi] = Object(zn.a)({
fontWeight: bi.semibold,
color: "HighlightText",
background: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
o)
},
i)
}]]]
}, QC = jg(DC, (function(e) {
var t, n, r, i, o = e.className, a = e.linkSize, l = e.linkFormat, s = e.theme, c = s.semanticColors, u = s.fonts, d = Vi(KC, s), p = "large" === a, h = "tabs" === l;
return {
root: [d.root, u.medium, Oo, {
position: "relative",
color: c.link,
whiteSpace: "nowrap"
}, p && d.rootIsLarge, h && d.rootIsTabs, o],
itemContainer: {
selectors: {
"&[hidden]": {
display: "none"
}
}
},
link: Object(zn.e)(Object(zn.e)([d.link], YC(e, d)), [(t = {},
t["&[data-is-overflowing='true']"] = {
display: "none"
},
t)]),
overflowMenuButton: [d.overflowMenuButton, (n = {
visibility: "hidden",
position: "absolute",
right: 0
},
n["." + d.link + "[data-is-overflowing='true'] ~ &"] = {
visibility: "visible",
position: "relative"
},
n)],
linkInMenu: Object(zn.e)(Object(zn.e)([d.linkInMenu], YC(e, d, !0)), [{
textAlign: "left",
width: "100%",
height: 36,
lineHeight: 36
}]),
linkIsSelected: [d.link, d.linkIsSelected, {
fontWeight: bi.semibold,
selectors: (r = {
":before": {
backgroundColor: c.inputBackgroundChecked,
selectors: (i = {},
i[vi] = {
backgroundColor: "Highlight"
},
i)
},
":hover::before": {
left: 0,
right: 0
}
},
r[vi] = {
color: "Highlight"
},
r)
}],
linkContent: [d.linkContent, {
flex: "0 1 100%",
selectors: {
"& > * ": {
marginLeft: 4
},
"& > *:first-child": {
marginLeft: 0
}
}
}],
text: [d.text, {
display: "inline-block",
verticalAlign: "top"
}],
count: [d.count, {
display: "inline-block",
verticalAlign: "top"
}],
icon: d.icon
}
}
), void 0, {
scope: "Pivot"
}), JC = n.p + "static/media/12promax.36b52009.png", ZC = Mu.b.div(LC || (LC = _u(["\n position: relative;\n overflow: hidden;\n"]))), $C = Mu.b.div(RC || (RC = _u(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.4);\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), e_ = Mu.b.div(PC || (PC = _u(["\n display: flex;\n overflow: hidden;\n height: 400px;\n background-repeat: no-repeat;\n background-size: 100%;\n background-position: 0 top;\n transition: background-position 7s ease;\n background-color: #f4f6fc;\n"]))), t_ = Mu.b.div(BC || (BC = _u(["\n background: white;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n //padding: 0 16px 16px 16px;\n"]))), n_ = dr({
fontSize: 13,
margin: "0 8px 0 0",
color: "#7e82a4"
}), r_ = Mu.b.div(FC || (FC = _u(["\n width: 40px;\n height: 40px;\n background: #eeeeee;\n border-radius: 40px;\n line-height: 40px;\n text-align: center;\n\n i {\n font-size: 20px;\n color: white;\n }\n"]))), i_ = Object(Mu.c)(VC || (VC = _u(["\n 0% {\n transform: scale(0);\n }\n 100% {\n transform: scale(1.25);\n }\n"]))), o_ = Mu.b.a(WC || (WC = _u(["\n text-decoration: none;\n display: block;\n //border: 1px solid #e9e9e9;\n padding: 0;\n background-color: #ffffff;\n box-shadow: 0 4px 10px 0 rgb(33 33 43 / 10%);\n border-radius: 6px;\n overflow: hidden;\n\n &.activeItem {\n box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);\n\n ", " {\n background-color: ", ";\n color: white;\n animation: 0.2s ", " ease-out;\n }\n }\n"])), r_, Po.palette.themePrimary, i_), a_ = Mu.b.div(qC || (qC = _u(["\n cursor: pointer;\n padding: 0 12px;\n\n ", " {\n opacity: 0;\n visibility: hidden;\n transition: all 0.1s ease-in;\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n ", " {\n &.activeItem {\n ", " {\n opacity: 1;\n visibility: visible;\n }\n }\n }\n"])), $C, $C, t_, o_, $C), l_ = {
root: [{
color: Po.palette.neutralPrimary,
fontSize: 18
}]
}, s_ = {
root: [{
color: Po.palette.neutralPrimaryAlt,
marginBottom: 5
}]
}, c_ = Mu.b.div(HC || (HC = _u(["\n width: max-content;\n margin: 0 auto;\n background-image: url(", ");\n background-repeat: no-repeat;\n background-position: top center;\n text-align: center;\n border: ", ";\n border-radius: ", "px;\n width: ", ";\n height: ", "px;\n background-color: ", ";\n padding: ", ";\n\n iframe {\n border-radius: ", "px;;\n }\n"])), (function(e) {
return e.image
}
), (function(e) {
return e.border
}
), (function(e) {
return e.radius
}
), (function(e) {
return e.width
}
), (function(e) {
return e.height
}
), (function(e) {
return e.bg
}
), (function(e) {
return e.padding
}
), (function(e) {
return e.borderFrame
}
)), u_ = function(e) {
return "preview_".concat(e)
}, d_ = Mu.b.div(UC || (UC = _u(["\n align-self: flex-start;\n flex-grow: 1;\n padding: 0 44px;\n display: flex;\n align-items: center;\n margin-bottom: 40px;\n\n"]))), p_ = function(e) {
var t = e.template
, n = Ck(!1)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1]
, a = o.setTrue
, l = o.setFalse
, c = s.a.useState("mobile")
, u = Object(ss.a)(c, 2)
, d = u[0]
, p = u[1]
, h = function(e) {
e && p(e.props.itemKey)
}
, f = "333px"
, b = 720
, g = "333px"
, m = b + 20
, v = 40;
"table" === d && (f = "570px",
g = "570px",
m = b = 740),
"desktop" === d && (f = "100%",
g = "auto",
m = b = window.innerHeight - 160);
var y = 0
, x = "none"
, O = ""
, j = "transparent"
, k = "20px";
"mobile" !== d && (y = 20,
x = "15px solid #000",
j = "#000",
k = "0px",
v = 10),
"mobile" === d && (O = JC);
var w = Ks.a.stringify({
id: t.id,
cs: t.cs,
ck: t.ck,
time: +new Date,
url: "".concat(t.domain, "/wp-json/")
}, {
skipNull: !0,
encode: !1
})
, C = "".concat(Zs, "?").concat(w);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(kk, {
onClick: a,
children: "Preview"
}), Object(Ip.jsx)(CC, {
isOpen: i,
onDismiss: l,
type: Uw.smallFluid,
closeButtonAriaLabel: "Close",
onRenderHeader: function() {
return Object(Ip.jsxs)(d_, {
children: [Object(Ip.jsx)(Ep, {
variant: "xLarge",
className: "ms-Grid-col ms-sm6 ms-md4 ms-lg4",
children: "Preview"
}), Object(Ip.jsxs)(QC, {
"aria-label": "Display type",
selectedKey: d,
onLinkClick: h,
headersOnly: !0,
getTabId: u_,
className: "ms-Grid-col ms-sm6 ms-md4 ms-lg4",
style: {
textAlign: "center"
},
children: [Object(Ip.jsx)(EC, {
headerText: "Mobile",
itemKey: "mobile",
itemIcon: "MobileSelected"
}), Object(Ip.jsx)(EC, {
headerText: "Table",
itemKey: "table",
itemIcon: "TabletMode"
}), Object(Ip.jsx)(EC, {
headerText: "Desktop",
itemKey: "desktop",
itemIcon: "CloneToDesktop"
})]
})]
})
},
children: i && Object(Ip.jsx)(c_, {
padding: k,
bg: j,
border: x,
borderFrame: v,
radius: y,
image: O,
width: g,
height: m,
children: Object(Ip.jsx)("iframe", {
title: t.name,
frameBorder: "0",
src: C,
width: f,
height: b
})
})
})]
})
}, h_ = function(e) {
var t = e.createTemplate
, n = e.template
, r = Ck(!1)
, i = Object(ss.a)(r, 2)
, o = i[0]
, a = i[1].toggle
, l = function() {
var e = Object(Mt.a)(Nt.a.mark((function e() {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return a(),
e.prev = 1,
e.next = 4,
ps.a.get("".concat(n.domain, "/wp-json/wp/v2/app-builder-templates/").concat(n.id));
case 4:
r = e.sent,
t(r.data, (function() {
return a()
}
)),
e.next = 11;
break;
case 8:
e.prev = 8,
e.t0 = e.catch(1),
a();
case 11:
case "end":
return e.stop()
}
}
), e, null, [[1, 8]])
}
)));
return function() {
return e.apply(this, arguments)
}
}();
return Object(Ip.jsx)(a_, {
children: Object(Ip.jsxs)(o_, {
children: [Object(Ip.jsxs)(ZC, {
children: [Object(Ip.jsx)(e_, {
style: {
backgroundImage: n.image ? "url(".concat(n.image, ")") : Gw.noImage
}
}), Object(Ip.jsx)($C, {
children: Object(Ip.jsx)(p_, {
template: n
})
})]
}), Object(Ip.jsx)(yw, {
padding: "20px 16px 20px",
children: Object(Ip.jsx)(yj, {
horizontal: !0,
verticalAlign: "center",
children: Object(Ip.jsxs)("div", {
style: {
width: "100%"
},
children: [Object(Ip.jsx)(yw, {
padding: "0 0 16px 0",
children: Object(Ip.jsx)(Ep, {
block: !0,
variant: "mediumPlus",
styles: l_,
children: n.name
})
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
horizontalAlign: "space-between",
children: [Object(Ip.jsxs)(yj, {
verticalAlign: "center",
children: [Object(Ip.jsxs)(Ep, {
block: !0,
variant: "small",
styles: s_,
children: ["Id : ", n.id]
}), Object(Ip.jsx)(lp, {
iconName: "TagSolid",
className: n_
}), " ", n.tags ? n.tags.map((function(e) {
return e.name
}
)).join(", ") : null]
}), Object(Ip.jsx)(t_, {
children: Object(Ip.jsxs)(Lk, {
className: "progress",
onClick: o ? function() {}
: l,
children: [Object(Ip.jsx)(lp, {
"aria-label": "Download",
iconName: "Download"
}), " ", o ? "Downloading" : "Import"]
})
})]
})]
})
})
})]
})
})
};
!function(e) {
e[e.info = 0] = "info",
e[e.error = 1] = "error",
e[e.blocked = 2] = "blocked",
e[e.severeWarning = 3] = "severeWarning",
e[e.success = 4] = "success",
e[e.warning = 5] = "warning"
}(XC || (XC = {}));
var f_, b_, g_, m_ = ((GC = {})[XC.info] = "Info",
GC[XC.warning] = "Info",
GC[XC.error] = "ErrorBadge",
GC[XC.blocked] = "Blocked2",
GC[XC.severeWarning] = "Warning",
GC[XC.success] = "Completed",
GC), v_ = Sg(), y_ = function(e) {
switch (e) {
case XC.blocked:
case XC.error:
case XC.severeWarning:
return "assertive"
}
return "polite"
}, x_ = function(e) {
switch (e) {
case XC.blocked:
case XC.error:
case XC.severeWarning:
return "alert"
}
return "status"
}, O_ = l.forwardRef((function(e, t) {
var n = Nj(!1)
, r = n[0]
, i = n[1].toggle
, o = gO("MessageBar")
, a = e.actions
, s = e.className
, c = e.children
, u = e.overflowButtonAriaLabel
, d = e.dismissIconProps
, p = e.styles
, h = e.theme
, f = e.messageBarType
, b = void 0 === f ? XC.info : f
, g = e.onDismiss
, m = void 0 === g ? void 0 : g
, v = e.isMultiline
, y = void 0 === v || v
, x = e.truncated
, O = e.dismissButtonAriaLabel
, j = e.messageBarIconProps
, k = e.role
, w = e.delayedRender
, C = void 0 === w || w
, _ = rp(e, Dd, ["className", "role"])
, M = v_(p, {
theme: h,
messageBarType: b || XC.info,
onDismiss: void 0 !== m,
actions: void 0 !== a,
truncated: x,
isMultiline: y,
expandSingleLine: r,
className: s
})
, S = {
iconName: r ? "DoubleChevronUp" : "DoubleChevronDown"
}
, A = a || m ? {
"aria-describedby": o,
role: "region"
} : {}
, T = a ? l.createElement("div", {
className: M.actions
}, a) : null
, E = m ? l.createElement(Fj, {
disabled: !1,
className: M.dismissal,
onClick: m,
iconProps: d || {
iconName: "Clear"
},
title: O,
ariaLabel: O
}) : null;
return l.createElement("div", Object(zn.a)({
ref: t,
className: M.root
}, A), l.createElement("div", {
className: M.content
}, l.createElement("div", {
className: M.iconContainer,
"aria-hidden": !0
}, j ? l.createElement(Pg, Object(zn.a)({}, j, {
className: ip(M.icon, j.className)
})) : l.createElement(Pg, {
iconName: m_[b],
className: M.icon
})), l.createElement("div", {
className: M.text,
id: o,
role: k || x_(b),
"aria-live": y_(b)
}, l.createElement("span", Object(zn.a)({
className: M.innerText
}, _), C ? l.createElement(ak, null, l.createElement("span", null, c)) : l.createElement("span", null, c))), !y && !T && x && l.createElement("div", {
className: M.expandSingleLine
}, l.createElement(Fj, {
disabled: !1,
className: M.expand,
onClick: i,
iconProps: S,
ariaLabel: u,
"aria-expanded": r
})), !y && T, !y && E && l.createElement("div", {
className: M.dismissSingleLine
}, E), y && E), y && T)
}
));
O_.displayName = "MessageBar";
var j_, k_, w_, C_, __, M_, S_, A_ = {
root: "ms-MessageBar",
error: "ms-MessageBar--error",
blocked: "ms-MessageBar--blocked",
severeWarning: "ms-MessageBar--severeWarning",
success: "ms-MessageBar--success",
warning: "ms-MessageBar--warning",
multiline: "ms-MessageBar-multiline",
singleline: "ms-MessageBar-singleline",
dismissalSingleLine: "ms-MessageBar-dismissalSingleLine",
expandingSingleLine: "ms-MessageBar-expandingSingleLine",
content: "ms-MessageBar-content",
iconContainer: "ms-MessageBar-icon",
text: "ms-MessageBar-text",
innerText: "ms-MessageBar-innerText",
dismissSingleLine: "ms-MessageBar-dismissSingleLine",
expandSingleLine: "ms-MessageBar-expandSingleLine",
dismissal: "ms-MessageBar-dismissal",
expand: "ms-MessageBar-expand",
actions: "ms-MessageBar-actions",
actionsSingleline: "ms-MessageBar-actionsSingleLine"
}, T_ = ((f_ = {})[XC.error] = "errorBackground",
f_[XC.blocked] = "errorBackground",
f_[XC.success] = "successBackground",
f_[XC.warning] = "warningBackground",
f_[XC.severeWarning] = "severeWarningBackground",
f_[XC.info] = "infoBackground",
f_), E_ = ((b_ = {})[XC.error] = "rgba(255, 0, 0, 0.3)",
b_[XC.blocked] = "rgba(255, 0, 0, 0.3)",
b_[XC.success] = "rgba(48, 241, 73, 0.3)",
b_[XC.warning] = "rgba(255, 254, 57, 0.3)",
b_[XC.severeWarning] = "rgba(255, 0, 0, 0.3)",
b_[XC.info] = "Window",
b_), I_ = ((g_ = {})[XC.error] = "errorIcon",
g_[XC.blocked] = "errorIcon",
g_[XC.success] = "successIcon",
g_[XC.warning] = "warningIcon",
g_[XC.severeWarning] = "severeWarningIcon",
g_[XC.info] = "infoIcon",
g_), N_ = jg(O_, (function(e) {
var t, n, r, i, o, a = e.theme, l = e.className, s = e.onDismiss, c = e.truncated, u = e.isMultiline, d = e.expandSingleLine, p = e.messageBarType, h = void 0 === p ? XC.info : p, f = a.semanticColors, b = a.fonts, g = yi(0, 479), m = Vi(A_, a), v = {
fontSize: gi.xSmall,
height: 10,
lineHeight: "10px",
color: f.messageText,
selectors: (t = {},
t[vi] = Object(zn.a)(Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
color: "WindowText"
}),
t)
}, y = [Mi(a, {
inset: 1,
highContrastStyle: {
outlineOffset: "-6px",
outline: "1px solid Highlight"
},
borderColor: "transparent"
}), {
flexShrink: 0,
width: 32,
height: 32,
padding: "8px 12px",
selectors: {
"& .ms-Button-icon": v,
":hover": {
backgroundColor: "transparent"
},
":active": {
backgroundColor: "transparent"
}
}
}];
return {
root: [m.root, b.medium, h === XC.error && m.error, h === XC.blocked && m.blocked, h === XC.severeWarning && m.severeWarning, h === XC.success && m.success, h === XC.warning && m.warning, u ? m.multiline : m.singleline, !u && s && m.dismissalSingleLine, !u && c && m.expandingSingleLine, {
background: f[T_[h]],
color: f.messageText,
minHeight: 32,
width: "100%",
display: "flex",
wordBreak: "break-word",
selectors: (n = {
".ms-Link": {
color: f.messageLink,
selectors: {
":hover": {
color: f.messageLinkHovered
}
}
}
},
n[vi] = Object(zn.a)(Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
background: E_[h],
border: "1px solid WindowText",
color: "WindowText"
}),
n)
}, u && {
flexDirection: "column"
}, l],
content: [m.content, {
display: "flex",
width: "100%",
lineHeight: "normal"
}],
iconContainer: [m.iconContainer, {
fontSize: gi.medium,
minWidth: 16,
minHeight: 16,
display: "flex",
flexShrink: 0,
margin: "8px 0 8px 12px"
}],
icon: {
color: f[I_[h]],
selectors: (r = {},
r[vi] = Object(zn.a)(Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
color: "WindowText"
}),
r)
},
text: [m.text, Object(zn.a)(Object(zn.a)({
minWidth: 0,
display: "flex",
flexGrow: 1,
margin: 8
}, b.small), {
selectors: (i = {},
i[vi] = Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
}), !s && {
marginRight: 12
}],
innerText: [m.innerText, {
lineHeight: 16,
selectors: {
"& span a:last-child": {
paddingLeft: 4
}
}
}, c && {
overflow: "visible",
whiteSpace: "pre-wrap"
}, !u && {
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap"
}, !u && !c && {
selectors: (o = {},
o[g] = {
overflow: "visible",
whiteSpace: "pre-wrap"
},
o)
}, d && {
overflow: "visible",
whiteSpace: "pre-wrap"
}],
dismissSingleLine: m.dismissSingleLine,
expandSingleLine: m.expandSingleLine,
dismissal: [m.dismissal, y],
expand: [m.expand, y],
actions: [u ? m.actions : m.actionsSingleline, {
display: "flex",
flexGrow: 0,
flexShrink: 0,
flexBasis: "auto",
flexDirection: "row-reverse",
alignItems: "center",
margin: "0 12px 0 8px",
selectors: {
"& button:nth-child(n+2)": {
marginLeft: 8
}
}
}, u && {
marginBottom: 8
}, s && !u && {
marginRight: 0
}]
}
}
), void 0, {
scope: "MessageBar"
}), z_ = {
icon: {
marginTop: 6
}
}, D_ = Mu.b.span(j_ || (j_ = _u(["\n margin-left: 10px;\n"]))), L_ = function() {
var e = kn();
return Object(l.useContext)(Rb).isAuthenticated ? null : Object(Ip.jsxs)(N_, {
messageBarType: XC.severeWarning,
isMultiline: !0,
styles: z_,
children: [Object(Ip.jsx)("span", {
children: "You need to enter your license"
}), Object(Ip.jsx)(D_, {
children: Object(Ip.jsx)(kk, {
text: "Enter License",
onClick: function() {
return e.push("/license")
}
})
})]
})
}, R_ = Mu.b.span(k_ || (k_ = _u(["\n margin-right: 8px;\n"]))), P_ = Mu.b.div(w_ || (w_ = _u(["\n padding: 70px 0px;\n"]))), B_ = Mu.b.div(C_ || (C_ = _u(["\n width: 100%;\n"]))), F_ = Mu.b.div(__ || (__ = _u(["\n background: ", ";\n"])), Po.palette.neutralLighter), V_ = {
root: {
padding: "0 16px 20px 16px"
}
}, W_ = Object(Mu.b)(Tn)(M_ || (M_ = _u(["\n text-decoration: none;\n color: ", ";\n &:hover {\n text-decoration: none;\n }\n"])), Po.palette.themePrimary), q_ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).configTemplate = function(t) {
var n, r, i, o = e.props, a = o.configTemplate, l = o.restoreScreenData, s = o.history, c = o.clearHistory, u = _t(_t({}, t), {}, {
data: JSON.parse(null !== (n = null == t ? void 0 : t.data) && void 0 !== n ? n : "{}")
});
a(u),
l(_t(_t({}, null !== (r = null == u || null === (i = u.data) || void 0 === i ? void 0 : i.screens.home) && void 0 !== r ? r : {}), {}, {
ignore: !0
})),
c(),
s.push("/editor")
}
,
e.createTemplate = function(t, n) {
var r = arguments.length > 2 && void 0 !== arguments[2] && arguments[2];
(0,
e.props.createTemplate)({
data: {
title: t.name,
status: "publish",
content: r ? JSON.parse(t.data) : t.data
},
cb: n
})
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.props.fetchTemplates({
per_page: 4
}),
this.props.fetchPreTemplates({
per_page: 4,
orderby: "modified",
order: "desc"
}),
this.props.fetchCategories(),
this.props.fetchUser()
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.templates
, r = t.preTemplates
, i = t.createTemplate
, o = t.loading;
return Object(Ip.jsxs)(B_, {
children: [Object(Ip.jsx)(L_, {}), Object(Ip.jsx)(vw, {
children: Object(Ip.jsxs)(P_, {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
styles: V_,
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "xLarge",
children: "Your templates."
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
children: [Object(Ip.jsx)(R_, {
children: Object(Ip.jsx)(Fk, {
createTemplate: i,
pending: o.create
})
}), Object(Ip.jsx)(W_, {
to: zs,
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
children: [Object(Ip.jsx)(yw, {
padding: "0 8px 0 20px",
children: Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
children: "All templates"
})
}), Object(Ip.jsx)(lp, {
iconName: "ChevronRightMed"
})]
})
})]
})]
}), Object(Ip.jsx)("div", {
className: "ms-Grid",
children: Object(Ip.jsx)("div", {
className: "ms-Grid-row",
children: "pending" === o.fetch && 0 === n.length ? Object(Ip.jsx)(gw, {}) : n.length ? n.slice(0, 4).map((function(t) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-md3 ms-lg3",
children: Object(Ip.jsx)(lC, {
template: t,
configTemplate: e.configTemplate
})
}, t.id)
}
)) : Object(Ip.jsx)("div", {
children: "Create New Template"
})
})
})]
})
}), Object(Ip.jsx)(F_, {
children: Object(Ip.jsx)(vw, {
children: Object(Ip.jsx)(yj, {
children: Object(Ip.jsxs)(P_, {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
styles: V_,
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "xLarge",
children: "Pre design templates"
}), Object(Ip.jsx)(W_, {
to: Ns,
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
children: [Object(Ip.jsx)(R_, {
children: Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
children: "All templates"
})
}), Object(Ip.jsx)(lp, {
iconName: "ChevronRightMed"
})]
})
})]
}), Object(Ip.jsx)("div", {
className: "ms-Grid",
children: Object(Ip.jsx)("div", {
className: "ms-Grid-row",
children: "pending" === o.preTemps && 0 === r.length ? Object(Ip.jsx)(gw, {}) : r.slice(0, 4).map((function(t) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-md3 ms-lg3",
children: Object(Ip.jsx)(h_, {
template: t,
createTemplate: function(t, n) {
return e.createTemplate(t, n, !0)
}
})
}, t.id)
}
))
})
})]
})
})
})
})]
})
}
}]),
n
}(l.Component), H_ = On(va((function(e) {
return {
templates: rb(e),
preTemplates: ib(e),
loading: cb(e)
}
}
), {
fetchTemplates: nf,
fetchPreTemplates: rf,
createTemplate: of,
configTemplate: $f,
restoreScreenData: uu,
clearHistory: cs.ActionCreators.clearHistory,
fetchCategories: Ec,
fetchUser: Ic
})(q_));
!function(e) {
e[e.Normal = 0] = "Normal",
e[e.Divider = 1] = "Divider",
e[e.Header = 2] = "Header",
e[e.SelectAll = 3] = "SelectAll"
}(S_ || (S_ = {}));
var U_ = function() {
function e() {
this._size = 0
}
return e.prototype.updateOptions = function(e) {
for (var t = [], n = 0, r = 0; r < e.length; r++)
e[r].itemType === S_.Divider || e[r].itemType === S_.Header ? t.push(r) : e[r].hidden || n++;
this._size = n,
this._displayOnlyOptionsCache = t,
this._cachedOptions = Object(zn.e)([], e)
}
,
Object.defineProperty(e.prototype, "optionSetSize", {
get: function() {
return this._size
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(e.prototype, "cachedOptions", {
get: function() {
return this._cachedOptions
},
enumerable: !1,
configurable: !0
}),
e.prototype.positionInSet = function(e) {
if (void 0 !== e) {
for (var t = 0; e > this._displayOnlyOptionsCache[t]; )
t++;
if (this._displayOnlyOptionsCache[t] === e)
throw new Error("Unexpected: Option at index " + e + " is not a selectable element.");
return e - t + 1
}
}
,
e
}();
function X_(e, t) {
for (var n = [], r = 0, i = t; r < i.length; r++) {
var o = e[i[r]];
o && n.push(o)
}
return n
}
var G_ = Sg()
, K_ = l.forwardRef((function(e, t) {
var n = e.disabled
, r = e.required
, i = e.inputProps
, o = e.name
, a = e.ariaLabel
, s = e.ariaLabelledBy
, c = e.ariaDescribedBy
, u = e.ariaPositionInSet
, d = e.ariaSetSize
, p = e.title
, h = e.checkmarkIconProps
, f = e.styles
, b = e.theme
, g = e.className
, m = e.boxSide
, v = void 0 === m ? "start" : m
, y = gO("checkbox-", e.id)
, x = l.useRef(null)
, O = Eg(x, t)
, j = l.useRef(null)
, k = _C(e.checked, e.defaultChecked, e.onChange)
, w = k[0]
, C = k[1]
, _ = _C(e.indeterminate, e.defaultIndeterminate)
, M = _[0]
, S = _[1];
fg(x),
function(e, t, n, r) {
l.useImperativeHandle(e.componentRef, (function() {
return {
get checked() {
return !!t
},
get indeterminate() {
return !!n
},
focus: function() {
r.current && r.current.focus()
}
}
}
), [r, t, n])
}(e, w, M, j);
var A = G_(f, {
theme: b,
className: g,
disabled: n,
indeterminate: M,
checked: w,
reversed: "start" !== v,
isUsingCustomLabelRender: !!e.onRenderLabel
})
, T = l.useCallback((function(e) {
return e && e.label ? l.createElement("span", {
className: A.text,
title: e.title
}, e.label) : null
}
), [A.text])
, E = e.onRenderLabel || T
, I = M ? "mixed" : void 0
, N = Object(zn.a)(Object(zn.a)({
className: A.input,
type: "checkbox"
}, i), {
checked: !!w,
disabled: n,
required: r,
name: o,
id: y,
title: p,
onChange: function(e) {
M ? (C(!!w, e),
S(!1)) : C(!w, e)
},
"aria-disabled": n,
"aria-label": a,
"aria-labelledby": s,
"aria-describedby": c,
"aria-posinset": u,
"aria-setsize": d,
"aria-checked": I
});
return l.createElement("div", {
className: A.root,
title: p,
ref: O
}, l.createElement("input", Object(zn.a)({}, N, {
ref: j,
title: p,
"data-ktp-execute-target": !0
})), l.createElement("label", {
className: A.label,
htmlFor: y
}, l.createElement("div", {
className: A.checkbox,
"data-ktp-target": !0
}, l.createElement(Pg, Object(zn.a)({
iconName: "CheckMark"
}, h, {
className: A.checkmark
}))), E(e, T)))
}
));
K_.displayName = "CheckboxBase";
var Y_ = {
root: "ms-Checkbox",
label: "ms-Checkbox-label",
checkbox: "ms-Checkbox-checkbox",
checkmark: "ms-Checkbox-checkmark",
text: "ms-Checkbox-text"
}
, Q_ = "20px"
, J_ = "200ms"
, Z_ = "cubic-bezier(.4, 0, .23, 1)"
, $_ = jg(K_, (function(e) {
var t, n, r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y = e.className, x = e.theme, O = e.reversed, j = e.checked, k = e.disabled, w = e.isUsingCustomLabelRender, C = e.indeterminate, _ = x.semanticColors, M = x.effects, S = x.palette, A = x.fonts, T = Vi(Y_, x), E = _.inputForegroundChecked, I = S.neutralSecondary, N = S.neutralPrimary, z = _.inputBackgroundChecked, D = _.inputBackgroundChecked, L = _.disabledBodySubtext, R = _.inputBorderHovered, P = _.inputBackgroundCheckedHovered, B = _.inputBackgroundChecked, F = _.inputBackgroundCheckedHovered, V = _.inputBackgroundCheckedHovered, W = _.inputTextHovered, q = _.disabledBodySubtext, H = _.bodyText, U = _.disabledText, X = [(t = {
content: '""',
borderRadius: M.roundedCorner2,
position: "absolute",
width: 10,
height: 10,
top: 4,
left: 4,
boxSizing: "border-box",
borderWidth: 5,
borderStyle: "solid",
borderColor: k ? L : z,
transitionProperty: "border-width, border, border-color",
transitionDuration: J_,
transitionTimingFunction: Z_
},
t[vi] = {
borderColor: "WindowText"
},
t)];
return {
root: [T.root, {
position: "relative",
display: "flex"
}, O && "reversed", j && "is-checked", !k && "is-enabled", k && "is-disabled", !k && [!j && (n = {},
n[":hover ." + T.checkbox] = (r = {
borderColor: R
},
r[vi] = {
borderColor: "Highlight"
},
r),
n[":focus ." + T.checkbox] = {
borderColor: R
},
n[":hover ." + T.checkmark] = (i = {
color: I,
opacity: "1"
},
i[vi] = {
color: "Highlight"
},
i),
n), j && !C && (o = {},
o[":hover ." + T.checkbox] = {
background: F,
borderColor: V
},
o[":focus ." + T.checkbox] = {
background: F,
borderColor: V
},
o[vi] = (a = {},
a[":hover ." + T.checkbox] = {
background: "Highlight",
borderColor: "Highlight"
},
a[":focus ." + T.checkbox] = {
background: "Highlight"
},
a[":focus:hover ." + T.checkbox] = {
background: "Highlight"
},
a[":focus:hover ." + T.checkmark] = {
color: "Window"
},
a[":hover ." + T.checkmark] = {
color: "Window"
},
a),
o), C && (l = {},
l[":hover ." + T.checkbox + ", :hover ." + T.checkbox + ":after"] = (s = {
borderColor: P
},
s[vi] = {
borderColor: "WindowText"
},
s),
l[":focus ." + T.checkbox] = {
borderColor: P
},
l[":hover ." + T.checkmark] = {
opacity: "0"
},
l), (c = {},
c[":hover ." + T.text + ", :focus ." + T.text] = (u = {
color: W
},
u[vi] = {
color: k ? "GrayText" : "WindowText"
},
u),
c)], y],
input: (d = {
position: "absolute",
background: "none",
opacity: 0
},
d[".ms-Fabric--isFocusVisible &:focus + label::before"] = (p = {
outline: "1px solid " + x.palette.neutralSecondary,
outlineOffset: "2px"
},
p[vi] = {
outline: "1px solid WindowText"
},
p),
d),
label: [T.label, x.fonts.medium, {
display: "flex",
alignItems: w ? "center" : "flex-start",
cursor: k ? "default" : "pointer",
position: "relative",
userSelect: "none"
}, O && {
flexDirection: "row-reverse",
justifyContent: "flex-end"
}, {
"&::before": {
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0,
content: '""',
pointerEvents: "none"
}
}],
checkbox: [T.checkbox, (h = {
position: "relative",
display: "flex",
flexShrink: 0,
alignItems: "center",
justifyContent: "center",
height: Q_,
width: Q_,
border: "1px solid " + N,
borderRadius: M.roundedCorner2,
boxSizing: "border-box",
transitionProperty: "background, border, border-color",
transitionDuration: J_,
transitionTimingFunction: Z_,
overflow: "hidden",
":after": C ? X : null
},
h[vi] = Object(zn.a)({
borderColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
h), C && {
borderColor: z
}, O ? {
marginLeft: 4
} : {
marginRight: 4
}, !k && !C && j && (f = {
background: B,
borderColor: D
},
f[vi] = {
background: "Highlight",
borderColor: "Highlight"
},
f), k && (b = {
borderColor: L
},
b[vi] = {
borderColor: "GrayText"
},
b), j && k && (g = {
background: q,
borderColor: L
},
g[vi] = {
background: "Window"
},
g)],
checkmark: [T.checkmark, (m = {
opacity: j && !C ? "1" : "0",
color: E
},
m[vi] = Object(zn.a)({
color: k ? "GrayText" : "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
m)],
text: [T.text, (v = {
color: k ? U : H,
fontSize: A.medium.fontSize,
lineHeight: "20px"
},
v[vi] = Object(zn.a)({
color: k ? "GrayText" : "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
v), O ? {
marginRight: 4
} : {
marginLeft: 4
}]
}
}
), void 0, {
scope: "Checkbox"
})
, eM = Sg()
, tM = {
options: []
}
, nM = l.forwardRef((function(e, t) {
var n = hy(tM, e)
, r = l.useRef(null)
, i = Eg(t, r)
, o = MO(r, n.responsiveMode)
, a = function(e) {
var t, n = e.defaultSelectedKeys, r = e.selectedKeys, i = e.defaultSelectedKey, o = e.selectedKey, a = e.options, s = e.multiSelect, c = aO(a), u = l.useState([]), d = u[0], p = u[1], h = a !== c, f = aO(t = s ? h && void 0 !== n ? n : r : h && void 0 !== i ? i : o);
return l.useEffect((function() {
var e = function() {
return a.map((function(e, t) {
return e.selected ? t : -1
}
)).filter((function(e) {
return -1 !== e
}
))
}
, n = function(e) {
return Vb(a, (function(t) {
return null != e ? t.key === e : !!t.selected || !!t.isSelected
}
))
};
void 0 === t && c || t === f && !h || p(function() {
if (void 0 === t)
return s ? e() : -1 !== (a = n(null)) ? [a] : [];
if (!Array.isArray(t))
return -1 !== (a = n(t)) ? [a] : [];
for (var r = [], i = 0, o = t; i < o.length; i++) {
var a, l = o[i];
-1 !== (a = n(l)) && r.push(a)
}
return r
}())
}
), [h, s, c, f, a, t]),
[d, p]
}(n)
, s = a[0]
, c = a[1];
return l.createElement(aM, Object(zn.a)({}, n, {
responsiveMode: o,
hoisted: {
rootRef: i,
selectedIndices: s,
setSelectedIndices: c
}
}))
}
));
nM.displayName = "DropdownBase";
var rM, iM, oM, aM = function(e) {
function t(t) {
var n = e.call(this, t) || this;
n._host = l.createRef(),
n._focusZone = l.createRef(),
n._dropDown = l.createRef(),
n._scrollIdleDelay = 250,
n._sizePosCache = new U_,
n._requestAnimationFrame = function(e) {
var t;
return function(n) {
t || (t = new Set,
Gb(e, {
componentWillUnmount: function() {
t.forEach((function(e) {
return cancelAnimationFrame(e)
}
))
}
}));
var r = requestAnimationFrame((function() {
t.delete(r),
n()
}
));
t.add(r)
}
}(n),
n._onChange = function(e, t, r, i, o) {
var a = n.props
, l = a.onChange
, s = a.onChanged;
if (l || s) {
var c = o ? Object(zn.a)(Object(zn.a)({}, t[r]), {
selected: !i
}) : t[r];
l && l(Object(zn.a)(Object(zn.a)({}, e), {
target: n._dropDown.current
}), c, r),
s && s(c, r)
}
}
,
n._getPlaceholder = function() {
return n.props.placeholder || n.props.placeHolder
}
,
n._getTitle = function(e, t) {
var r = n.props.multiSelectDelimiter
, i = void 0 === r ? ", " : r;
return e.map((function(e) {
return e.text
}
)).join(i)
}
,
n._onRenderTitle = function(e) {
return l.createElement(l.Fragment, null, n._getTitle(e))
}
,
n._onRenderPlaceholder = function(e) {
return n._getPlaceholder() ? l.createElement(l.Fragment, null, n._getPlaceholder()) : null
}
,
n._onRenderContainer = function(e) {
var t = e.calloutProps
, r = e.panelProps
, i = n.props
, o = i.responsiveMode
, a = i.dropdownWidth
, s = o <= mO.medium
, c = n._classNames.subComponentStyles ? n._classNames.subComponentStyles.panel : void 0
, u = void 0
, d = void 0;
return "auto" === a ? d = n._dropDown.current ? n._dropDown.current.clientWidth : 0 : u = a || (n._dropDown.current ? n._dropDown.current.clientWidth : 0),
s ? l.createElement(CC, Object(zn.a)({
isOpen: !0,
isLightDismiss: !0,
onDismiss: n._onDismiss,
hasCloseButton: !1,
styles: c
}, r), n._renderFocusableList(e)) : l.createElement(Bx, Object(zn.a)({
isBeakVisible: !1,
gapSpace: 0,
doNotLayer: !1,
directionalHintFixed: !1,
directionalHint: 4,
calloutWidth: u,
calloutMinWidth: d
}, t, {
className: n._classNames.callout,
target: n._dropDown.current,
onDismiss: n._onDismiss,
onScroll: n._onScroll,
onPositioned: n._onPositioned
}), n._renderFocusableList(e))
}
,
n._onRenderCaretDown = function(e) {
return l.createElement(Pg, {
className: n._classNames.caretDown,
iconName: "ChevronDown",
"aria-hidden": !0
})
}
,
n._onRenderList = function(e) {
var t = e.onRenderItem
, r = void 0 === t ? n._onRenderItem : t
, i = {
items: []
}
, o = []
, a = function() {
var e = i.id ? [l.createElement("div", {
role: "group",
key: i.id,
"aria-labelledby": i.id
}, i.items)] : i.items;
o = Object(zn.e)(Object(zn.e)([], o), e),
i = {
items: []
}
};
return e.options.forEach((function(e, t) {
!function(e, t) {
switch (e.itemType) {
case S_.Header:
i.items.length > 0 && a();
var o = n._id + e.key;
i.items.push(r(Object(zn.a)(Object(zn.a)({
id: o
}, e), {
index: t
}), n._onRenderItem)),
i.id = o;
break;
case S_.Divider:
t > 0 && i.items.push(r(Object(zn.a)(Object(zn.a)({}, e), {
index: t
}), n._onRenderItem)),
i.items.length > 0 && a();
break;
default:
i.items.push(r(Object(zn.a)(Object(zn.a)({}, e), {
index: t
}), n._onRenderItem))
}
}(e, t)
}
)),
i.items.length > 0 && a(),
l.createElement(l.Fragment, null, o)
}
,
n._onRenderItem = function(e) {
switch (e.itemType) {
case S_.Divider:
return n._renderSeparator(e);
case S_.Header:
return n._renderHeader(e);
default:
return n._renderOption(e)
}
}
,
n._renderOption = function(e) {
var t = n.props
, r = t.onRenderOption
, i = void 0 === r ? n._onRenderOption : r
, o = t.hoisted.selectedIndices
, a = void 0 === o ? [] : o
, s = !(void 0 === e.index || !a) && a.indexOf(e.index) > -1
, c = e.hidden ? n._classNames.dropdownItemHidden : s && !0 === e.disabled ? n._classNames.dropdownItemSelectedAndDisabled : s ? n._classNames.dropdownItemSelected : !0 === e.disabled ? n._classNames.dropdownItemDisabled : n._classNames.dropdownItem
, u = e.title
, d = n._classNames.subComponentStyles ? n._classNames.subComponentStyles.multiSelectItem : void 0;
return n.props.multiSelect ? l.createElement($_, {
id: n._listId + e.index,
key: e.key,
disabled: e.disabled,
onChange: n._onItemClick(e),
inputProps: Object(zn.a)({
"aria-selected": s,
onMouseEnter: n._onItemMouseEnter.bind(n, e),
onMouseLeave: n._onMouseItemLeave.bind(n, e),
onMouseMove: n._onItemMouseMove.bind(n, e),
role: "option"
}, {
"data-index": e.index,
"data-is-focusable": !e.disabled
}),
label: e.text,
title: u,
onRenderLabel: n._onRenderItemLabel.bind(n, e),
className: c,
checked: s,
styles: d,
ariaPositionInSet: n._sizePosCache.positionInSet(e.index),
ariaSetSize: n._sizePosCache.optionSetSize,
ariaLabel: e.ariaLabel
}) : l.createElement(AC, {
id: n._listId + e.index,
key: e.key,
"data-index": e.index,
"data-is-focusable": !e.disabled,
disabled: e.disabled,
className: c,
onClick: n._onItemClick(e),
onMouseEnter: n._onItemMouseEnter.bind(n, e),
onMouseLeave: n._onMouseItemLeave.bind(n, e),
onMouseMove: n._onItemMouseMove.bind(n, e),
role: "option",
"aria-selected": s ? "true" : "false",
ariaLabel: e.ariaLabel,
title: u,
"aria-posinset": n._sizePosCache.positionInSet(e.index),
"aria-setsize": n._sizePosCache.optionSetSize
}, i(e, n._onRenderOption))
}
,
n._onRenderOption = function(e) {
return l.createElement("span", {
className: n._classNames.dropdownOptionText
}, e.text)
}
,
n._onRenderItemLabel = function(e) {
var t = n.props.onRenderOption;
return (void 0 === t ? n._onRenderOption : t)(e, n._onRenderOption)
}
,
n._onPositioned = function(e) {
n._focusZone.current && n._requestAnimationFrame((function() {
var e = n.props.hoisted.selectedIndices;
if (n._focusZone.current)
if (!n._hasBeenPositioned && e && e[0] && !n.props.options[e[0]].disabled) {
var t = ro().getElementById(n._id + "-list" + e[0]);
t && n._focusZone.current.focusElement(t),
n._hasBeenPositioned = !0
} else
n._focusZone.current.focus()
}
)),
n.state.calloutRenderEdge && n.state.calloutRenderEdge === e.targetEdge || n.setState({
calloutRenderEdge: e.targetEdge
})
}
,
n._onItemClick = function(e) {
return function(t) {
e.disabled || (n.setSelectedIndex(t, e.index),
n.props.multiSelect || n.setState({
isOpen: !1
}))
}
}
,
n._onScroll = function() {
n._isScrollIdle || void 0 === n._scrollIdleTimeoutId ? n._isScrollIdle = !1 : (clearTimeout(n._scrollIdleTimeoutId),
n._scrollIdleTimeoutId = void 0),
n._scrollIdleTimeoutId = window.setTimeout((function() {
n._isScrollIdle = !0
}
), n._scrollIdleDelay)
}
,
n._onMouseItemLeave = function(e, t) {
if (!n._shouldIgnoreMouseEvent() && n._host.current)
if (n._host.current.setActive)
try {
n._host.current.setActive()
} catch (e) {}
else
n._host.current.focus()
}
,
n._onDismiss = function() {
n.setState({
isOpen: !1
})
}
,
n._onDropdownBlur = function(e) {
n._isDisabled() || n.state.isOpen || (n.setState({
hasFocus: !1
}),
n.props.onBlur && n.props.onBlur(e))
}
,
n._onDropdownKeyDown = function(e) {
if (!n._isDisabled() && (n._lastKeyDownWasAltOrMeta = n._isAltOrMeta(e),
!n.props.onKeyDown || (n.props.onKeyDown(e),
!e.defaultPrevented))) {
var t, r = n.props.hoisted.selectedIndices.length ? n.props.hoisted.selectedIndices[0] : -1, i = e.altKey || e.metaKey, o = n.state.isOpen;
switch (e.which) {
case cp:
n.setState({
isOpen: !o
});
break;
case dp:
if (!o)
return;
n.setState({
isOpen: !1
});
break;
case fp:
if (i) {
if (o) {
n.setState({
isOpen: !1
});
break
}
return
}
n.props.multiSelect ? n.setState({
isOpen: !0
}) : n._isDisabled() || (t = n._moveIndex(e, -1, r - 1, r));
break;
case gp:
i && (e.stopPropagation(),
e.preventDefault()),
i && !o || n.props.multiSelect ? n.setState({
isOpen: !0
}) : n._isDisabled() || (t = n._moveIndex(e, 1, r + 1, r));
break;
case 36:
n.props.multiSelect || (t = n._moveIndex(e, 1, 0, r));
break;
case 35:
n.props.multiSelect || (t = n._moveIndex(e, -1, n.props.options.length - 1, r));
break;
case pp:
break;
default:
return
}
t !== r && (e.stopPropagation(),
e.preventDefault())
}
}
,
n._onDropdownKeyUp = function(e) {
if (!n._isDisabled()) {
var t = n._shouldHandleKeyUp(e)
, r = n.state.isOpen;
n.props.onKeyUp && (n.props.onKeyUp(e),
e.defaultPrevented) || (e.which === pp ? (n.setState({
isOpen: !r
}),
e.stopPropagation(),
e.preventDefault()) : t && r && n.setState({
isOpen: !1
}))
}
}
,
n._onZoneKeyDown = function(e) {
var t;
n._lastKeyDownWasAltOrMeta = n._isAltOrMeta(e);
var r = e.altKey || e.metaKey;
switch (e.which) {
case fp:
r ? n.setState({
isOpen: !1
}) : n._host.current && (t = Jv(n._host.current, n._host.current.lastChild, !0));
break;
case 36:
case 35:
case 33:
case 34:
break;
case gp:
!r && n._host.current && (t = Qv(n._host.current, n._host.current.firstChild, !0));
break;
case dp:
n.setState({
isOpen: !1
});
break;
case 9:
return void n.setState({
isOpen: !1
});
default:
return
}
t && t.focus(),
e.stopPropagation(),
e.preventDefault()
}
,
n._onZoneKeyUp = function(e) {
n._shouldHandleKeyUp(e) && n.state.isOpen && (n.setState({
isOpen: !1
}),
e.preventDefault())
}
,
n._onDropdownClick = function(e) {
if (!n.props.onClick || (n.props.onClick(e),
!e.defaultPrevented)) {
var t = n.state.isOpen;
n._isDisabled() || n._shouldOpenOnFocus() || n.setState({
isOpen: !t
}),
n._isFocusedByClick = !1
}
}
,
n._onDropdownMouseDown = function() {
n._isFocusedByClick = !0
}
,
n._onFocus = function(e) {
if (!n._isDisabled()) {
n.props.onFocus && n.props.onFocus(e);
var t = {
hasFocus: !0
};
n._shouldOpenOnFocus() && (t.isOpen = !0),
n.setState(t)
}
}
,
n._isDisabled = function() {
var e = n.props.disabled
, t = n.props.isDisabled;
return void 0 === e && (e = t),
e
}
,
n._onRenderLabel = function(e) {
var t = e.label
, r = e.required
, i = e.disabled
, o = n._classNames.subComponentStyles ? n._classNames.subComponentStyles.label : void 0;
return t ? l.createElement(ok, {
className: n._classNames.label,
id: n._labelId,
required: r,
styles: o,
disabled: i
}, t) : null
}
,
Kb(n),
t.multiSelect,
t.selectedKey,
t.selectedKeys,
t.defaultSelectedKey,
t.defaultSelectedKeys;
var r = t.options;
return n._id = t.id || lg("Dropdown"),
n._labelId = n._id + "-label",
n._listId = n._id + "-list",
n._optionId = n._id + "-option",
n._isScrollIdle = !0,
n._hasBeenPositioned = !1,
n._sizePosCache.updateOptions(r),
n.state = {
isOpen: !1,
hasFocus: !1,
calloutRenderEdge: void 0
},
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "selectedOptions", {
get: function() {
var e = this.props;
return X_(e.options, e.hoisted.selectedIndices)
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentWillUnmount = function() {
clearTimeout(this._scrollIdleTimeoutId)
}
,
t.prototype.componentDidUpdate = function(e, t) {
!0 === t.isOpen && !1 === this.state.isOpen && (this._gotMouseMove = !1,
this._hasBeenPositioned = !1,
this.props.onDismiss && this.props.onDismiss())
}
,
t.prototype.render = function() {
var e = this._id
, t = this.props
, n = t.className
, r = t.label
, i = t.options
, o = t.ariaLabel
, a = t.required
, s = t.errorMessage
, c = t.styles
, u = t.theme
, d = t.panelProps
, p = t.calloutProps
, h = t.onRenderTitle
, f = void 0 === h ? this._getTitle : h
, b = t.onRenderContainer
, g = void 0 === b ? this._onRenderContainer : b
, m = t.onRenderCaretDown
, v = void 0 === m ? this._onRenderCaretDown : m
, y = t.onRenderLabel
, x = void 0 === y ? this._onRenderLabel : y
, O = t.hoisted.selectedIndices
, j = this.state
, k = j.isOpen
, w = j.calloutRenderEdge
, C = j.hasFocus
, _ = t.onRenderPlaceholder || t.onRenderPlaceHolder || this._getPlaceholder;
i !== this._sizePosCache.cachedOptions && this._sizePosCache.updateOptions(i);
var M = X_(i, O)
, S = rp(t, np)
, A = this._isDisabled()
, T = e + "-errorMessage"
, E = A ? void 0 : k && 1 === O.length && O[0] >= 0 ? this._listId + O[0] : void 0;
this._classNames = eM(c, {
theme: u,
className: n,
hasError: !!(s && s.length > 0),
hasLabel: !!r,
isOpen: k,
required: a,
disabled: A,
isRenderingPlaceholder: !M.length,
panelClassName: d ? d.className : void 0,
calloutClassName: p ? p.className : void 0,
calloutRenderEdge: w
});
var I = !!s && s.length > 0;
return l.createElement("div", {
className: this._classNames.root,
ref: this.props.hoisted.rootRef,
"aria-owns": k ? this._listId : void 0
}, x(this.props, this._onRenderLabel), l.createElement("div", Object(zn.a)({
"data-is-focusable": !A,
"data-ktp-target": !0,
ref: this._dropDown,
id: e,
tabIndex: A ? -1 : 0,
role: "combobox",
"aria-haspopup": "listbox",
"aria-expanded": k ? "true" : "false",
"aria-label": o,
"aria-labelledby": r && !o ? yg(this._labelId, this._optionId) : void 0,
"aria-describedby": I ? this._id + "-errorMessage" : void 0,
"aria-activedescendant": E,
"aria-required": a,
"aria-disabled": A,
"aria-controls": k ? this._listId : void 0
}, S, {
className: this._classNames.dropdown,
onBlur: this._onDropdownBlur,
onKeyDown: this._onDropdownKeyDown,
onKeyUp: this._onDropdownKeyUp,
onClick: this._onDropdownClick,
onMouseDown: this._onDropdownMouseDown,
onFocus: this._onFocus
}), l.createElement("span", {
id: this._optionId,
className: this._classNames.title,
"aria-live": C ? "polite" : void 0,
"aria-atomic": !!C || void 0,
"aria-invalid": I
}, M.length ? f(M, this._onRenderTitle) : _(t, this._onRenderPlaceholder)), l.createElement("span", {
className: this._classNames.caretDownWrapper
}, v(t, this._onRenderCaretDown))), k && g(Object(zn.a)(Object(zn.a)({}, t), {
onDismiss: this._onDismiss
}), this._onRenderContainer), I && l.createElement("div", {
role: "alert",
id: T,
className: this._classNames.errorMessage
}, s))
}
,
t.prototype.focus = function(e) {
this._dropDown.current && (this._dropDown.current.focus(),
e && this.setState({
isOpen: !0
}))
}
,
t.prototype.setSelectedIndex = function(e, t) {
var n = this.props
, r = n.options
, i = n.selectedKey
, o = n.selectedKeys
, a = n.multiSelect
, l = n.notifyOnReselect
, s = n.hoisted.selectedIndices
, c = void 0 === s ? [] : s
, u = !!c && c.indexOf(t) > -1
, d = [];
if (t = Math.max(0, Math.min(r.length - 1, t)),
void 0 === i && void 0 === o) {
if (a || l || t !== c[0]) {
if (a)
if (d = c ? this._copyArray(c) : [],
u) {
var p = d.indexOf(t);
p > -1 && d.splice(p, 1)
} else
d.push(t);
else
d = [t];
e.persist(),
this.props.hoisted.setSelectedIndices(d),
this._onChange(e, r, t, u, a)
}
} else
this._onChange(e, r, t, u, a)
}
,
t.prototype._copyArray = function(e) {
for (var t = [], n = 0, r = e; n < r.length; n++) {
var i = r[n];
t.push(i)
}
return t
}
,
t.prototype._moveIndex = function(e, t, n, r) {
var i = this.props.options;
if (r === n || 0 === i.length)
return r;
n >= i.length ? n = 0 : n < 0 && (n = i.length - 1);
for (var o = 0; i[n].itemType === S_.Header || i[n].itemType === S_.Divider || i[n].disabled; ) {
if (o >= i.length)
return r;
n + t < 0 ? n = i.length : n + t >= i.length && (n = -1),
n += t,
o++
}
return this.setSelectedIndex(e, n),
n
}
,
t.prototype._renderFocusableList = function(e) {
var t = e.onRenderList
, n = void 0 === t ? this._onRenderList : t
, r = e.label
, i = e.ariaLabel
, o = e.multiSelect;
return l.createElement("div", {
className: this._classNames.dropdownItemsWrapper,
onKeyDown: this._onZoneKeyDown,
onKeyUp: this._onZoneKeyUp,
ref: this._host,
tabIndex: 0
}, l.createElement(Kv, {
ref: this._focusZone,
direction: Hg.vertical,
id: this._listId,
className: this._classNames.dropdownItems,
role: "listbox",
"aria-label": i,
"aria-labelledby": r && !i ? this._labelId : void 0,
"aria-multiselectable": o
}, n(e, this._onRenderList)))
}
,
t.prototype._renderSeparator = function(e) {
var t = e.index
, n = e.key;
return t > 0 ? l.createElement("div", {
role: "separator",
key: n,
className: this._classNames.dropdownDivider
}) : null
}
,
t.prototype._renderHeader = function(e) {
var t = this.props.onRenderOption
, n = void 0 === t ? this._onRenderOption : t
, r = e.key
, i = e.id;
return l.createElement("div", {
id: i,
key: r,
className: this._classNames.dropdownItemHeader
}, n(e, this._onRenderOption))
}
,
t.prototype._onItemMouseEnter = function(e, t) {
this._shouldIgnoreMouseEvent() || t.currentTarget.focus()
}
,
t.prototype._onItemMouseMove = function(e, t) {
var n = t.currentTarget;
this._gotMouseMove = !0,
this._isScrollIdle && document.activeElement !== n && n.focus()
}
,
t.prototype._shouldIgnoreMouseEvent = function() {
return !this._isScrollIdle || !this._gotMouseMove
}
,
t.prototype._isAltOrMeta = function(e) {
return e.which === up || "Meta" === e.key
}
,
t.prototype._shouldHandleKeyUp = function(e) {
var t = this._lastKeyDownWasAltOrMeta && this._isAltOrMeta(e);
return this._lastKeyDownWasAltOrMeta = !1,
!!t && !(ly() || py())
}
,
t.prototype._shouldOpenOnFocus = function() {
var e = this.state.hasFocus
, t = this.props.openOnKeyboardFocus;
return !this._isFocusedByClick && !0 === t && !e
}
,
t.defaultProps = {
options: []
},
t
}(l.Component), lM = {
root: "ms-Dropdown-container",
label: "ms-Dropdown-label",
dropdown: "ms-Dropdown",
title: "ms-Dropdown-title",
caretDownWrapper: "ms-Dropdown-caretDownWrapper",
caretDown: "ms-Dropdown-caretDown",
callout: "ms-Dropdown-callout",
panel: "ms-Dropdown-panel",
dropdownItems: "ms-Dropdown-items",
dropdownItem: "ms-Dropdown-item",
dropdownDivider: "ms-Dropdown-divider",
dropdownOptionText: "ms-Dropdown-optionText",
dropdownItemHeader: "ms-Dropdown-header",
titleIsPlaceHolder: "ms-Dropdown-titleIsPlaceHolder",
titleHasError: "ms-Dropdown-title--hasError"
}, sM = ((rM = {})[vi + ", " + "@media screen and (-ms-high-contrast: black-on-white), (forced-colors: black-on-white)".replace("@media ", "")] = Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
rM), cM = {
selectors: Object(zn.a)((iM = {},
iM[vi] = {
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
},
iM), sM)
}, uM = {
selectors: (oM = {},
oM[vi] = {
borderColor: "Highlight"
},
oM)
}, dM = yi(0, 480), pM = jg(nM, (function(e) {
var t, n, r, i, o, a, l, s, c, u, d, p, h = e.theme, f = e.hasError, b = e.hasLabel, g = e.className, m = e.isOpen, v = e.disabled, y = e.required, x = e.isRenderingPlaceholder, O = e.panelClassName, j = e.calloutClassName, k = e.calloutRenderEdge;
if (!h)
throw new Error("theme is undefined or null in base Dropdown getStyles function.");
var w = Vi(lM, h)
, C = h.palette
, _ = h.semanticColors
, M = h.effects
, S = h.fonts
, A = {
color: _.menuItemTextHovered
}
, T = {
color: _.menuItemText
}
, E = {
borderColor: _.errorText
}
, I = [w.dropdownItem, {
backgroundColor: "transparent",
boxSizing: "border-box",
cursor: "pointer",
display: "flex",
alignItems: "center",
padding: "0 8px",
width: "100%",
minHeight: 36,
lineHeight: 20,
height: 0,
position: "relative",
border: "1px solid transparent",
borderRadius: 0,
wordWrap: "break-word",
overflowWrap: "break-word",
textAlign: "left",
".ms-Button-flexContainer": {
width: "100%"
}
}]
, N = _.menuItemBackgroundPressed
, z = function(e) {
var t;
return void 0 === e && (e = !1),
{
selectors: (t = {
"&:hover:focus": [{
color: _.menuItemTextHovered,
backgroundColor: e ? N : _.menuItemBackgroundHovered
}, cM],
"&:focus": [{
backgroundColor: e ? N : "transparent"
}, cM],
"&:active": [{
color: _.menuItemTextHovered,
backgroundColor: e ? _.menuItemBackgroundHovered : _.menuBackground
}, cM]
},
t[".ms-Fabric--isFocusVisible &:focus:after"] = {
left: 0,
top: 0,
bottom: 0,
right: 0
},
t[vi] = {
border: "none"
},
t)
}
}
, D = Object(zn.e)(Object(zn.e)([], I), [{
backgroundColor: N,
color: _.menuItemTextHovered
}, z(!0), cM])
, L = Object(zn.e)(Object(zn.e)([], I), [{
color: _.disabledText,
cursor: "default",
selectors: (t = {},
t[vi] = {
color: "GrayText",
border: "none"
},
t)
}])
, R = k === sy.bottom ? M.roundedCorner2 + " " + M.roundedCorner2 + " 0 0" : "0 0 " + M.roundedCorner2 + " " + M.roundedCorner2
, P = k === sy.bottom ? "0 0 " + M.roundedCorner2 + " " + M.roundedCorner2 : M.roundedCorner2 + " " + M.roundedCorner2 + " 0 0";
return {
root: [w.root, g],
label: w.label,
dropdown: [w.dropdown, Oo, S.medium, {
color: _.menuItemText,
borderColor: _.focusBorder,
position: "relative",
outline: 0,
userSelect: "none",
selectors: (n = {},
n["&:hover ." + w.title] = [!v && A, {
borderColor: m ? C.neutralSecondary : C.neutralPrimary
}, uM],
n["&:focus ." + w.title] = [!v && A, {
selectors: (r = {},
r[vi] = {
color: "Highlight"
},
r)
}],
n["&:focus:after"] = [{
pointerEvents: "none",
content: "''",
position: "absolute",
boxSizing: "border-box",
top: "0px",
left: "0px",
width: "100%",
height: "100%",
border: v ? "none" : "2px solid " + C.themePrimary,
borderRadius: "2px",
selectors: (i = {},
i[vi] = {
color: "Highlight"
},
i)
}],
n["&:active ." + w.title] = [!v && A, {
borderColor: C.themePrimary
}, uM],
n["&:hover ." + w.caretDown] = !v && T,
n["&:focus ." + w.caretDown] = [!v && T, {
selectors: (o = {},
o[vi] = {
color: "Highlight"
},
o)
}],
n["&:active ." + w.caretDown] = !v && T,
n["&:hover ." + w.titleIsPlaceHolder] = !v && T,
n["&:focus ." + w.titleIsPlaceHolder] = !v && T,
n["&:active ." + w.titleIsPlaceHolder] = !v && T,
n["&:hover ." + w.titleHasError] = E,
n["&:active ." + w.titleHasError] = E,
n)
}, m && "is-open", v && "is-disabled", y && "is-required", y && !b && {
selectors: (a = {
":before": {
content: "'*'",
color: _.errorText,
position: "absolute",
top: -5,
right: -10
}
},
a[vi] = {
selectors: {
":after": {
right: -14
}
}
},
a)
}],
title: [w.title, Oo, {
backgroundColor: _.inputBackground,
borderWidth: 1,
borderStyle: "solid",
borderColor: _.inputBorder,
borderRadius: m ? R : M.roundedCorner2,
cursor: "pointer",
display: "block",
height: 32,
lineHeight: 30,
padding: "0 28px 0 8px",
position: "relative",
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis"
}, x && [w.titleIsPlaceHolder, {
color: _.inputPlaceholderText
}], f && [w.titleHasError, E], v && {
backgroundColor: _.disabledBackground,
border: "none",
color: _.disabledText,
cursor: "default",
selectors: (l = {},
l[vi] = Object(zn.a)({
border: "1px solid GrayText",
color: "GrayText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
l)
}],
caretDownWrapper: [w.caretDownWrapper, {
height: 32,
lineHeight: 30,
paddingTop: 1,
position: "absolute",
right: 8,
top: 0
}, !v && {
cursor: "pointer"
}],
caretDown: [w.caretDown, {
color: C.neutralSecondary,
fontSize: S.small.fontSize,
pointerEvents: "none"
}, v && {
color: _.disabledText,
selectors: (s = {},
s[vi] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
s)
}],
errorMessage: Object(zn.a)(Object(zn.a)({
color: _.errorText
}, h.fonts.small), {
paddingTop: 5
}),
callout: [w.callout, {
boxShadow: M.elevation8,
borderRadius: P,
selectors: (c = {},
c[".ms-Callout-main"] = {
borderRadius: P
},
c)
}, j],
dropdownItemsWrapper: {
selectors: {
"&:focus": {
outline: 0
}
}
},
dropdownItems: [w.dropdownItems, {
display: "block"
}],
dropdownItem: Object(zn.e)(Object(zn.e)([], I), [z()]),
dropdownItemSelected: D,
dropdownItemDisabled: L,
dropdownItemSelectedAndDisabled: [D, L, {
backgroundColor: "transparent"
}],
dropdownItemHidden: Object(zn.e)(Object(zn.e)([], I), [{
display: "none"
}]),
dropdownDivider: [w.dropdownDivider, {
height: 1,
backgroundColor: _.bodyDivider
}],
dropdownOptionText: [w.dropdownOptionText, {
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
minWidth: 0,
maxWidth: "100%",
wordWrap: "break-word",
overflowWrap: "break-word",
margin: "1px"
}],
dropdownItemHeader: [w.dropdownItemHeader, Object(zn.a)(Object(zn.a)({}, S.medium), {
fontWeight: bi.semibold,
color: _.menuHeader,
background: "none",
backgroundColor: "transparent",
border: "none",
height: 36,
lineHeight: 36,
cursor: "default",
padding: "0 8px",
userSelect: "none",
textAlign: "left",
selectors: (u = {},
u[vi] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
u)
})],
subComponentStyles: {
label: {
root: {
display: "inline-block"
}
},
multiSelectItem: {
root: {
padding: 0
},
label: {
alignSelf: "stretch",
padding: "0 8px",
width: "100%"
},
input: {
selectors: (d = {},
d[".ms-Fabric--isFocusVisible &:focus + label::before"] = {
outlineOffset: "0px"
},
d)
}
},
panel: {
root: [O],
main: {
selectors: (p = {},
p[dM] = {
width: 272
},
p)
},
contentInner: {
padding: "0 0 20px"
}
}
}
}
}
), void 0, {
scope: "Dropdown"
});
pM.displayName = "Dropdown";
var hM, fM, bM, gM, mM, vM, yM, xM, OM, jM, kM, wM, CM, _M, MM, SM, AM, TM, EM, IM, NM, zM, DM, LM, RM, PM, BM, FM, VM, WM, qM, HM, UM, XM, GM, KM, YM, QM = [{
key: "default",
text: "Default",
data: {
orderby: "modified",
order: "asc"
}
}, {
key: "popular",
text: "Popular item",
data: {
orderby: "modified",
order: "desc"
}
}, {
key: "latest",
text: "Latest",
data: {
orderby: "date",
order: "desc"
}
}], JM = {
title: {
border: "none",
":active": {
border: "none"
},
":focus": {
border: "none"
}
},
dropdown: {
width: "auto",
border: "none",
":focus": {
"::after": {
display: "none"
}
}
}
}, ZM = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.value
, n = e.onChange;
return Object(Ip.jsx)(pM, {
placeholder: "Sort",
selectedKey: t,
options: QM,
styles: JM,
onChange: n
})
}
}]),
n
}(l.Component), $M = ZM, eS = Mu.b.div(hM || (hM = _u(["\n padding: 70px 0;\n"]))), tS = {
root: {
padding: "0 16px 20px 16px"
}
}, nS = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
selected: "popular",
query: {
orderby: "modified",
order: "desc"
}
},
e.fetData = function(t) {
e.props.fetchTemplates(_t(_t({}, t), {}, {
per_page: 100
}))
}
,
e._onChange = function(t, n, r) {
null != n && n.key && (e.setState({
selected: n.key,
query: n.data
}),
e.fetData(n.data))
}
,
e.configTemplate = function(t) {
var n, r, i, o = e.props, a = o.configTemplate, l = o.restoreScreenData, s = o.history, c = o.clearHistory, u = _t(_t({}, t), {}, {
data: JSON.parse(null !== (n = null == t ? void 0 : t.data) && void 0 !== n ? n : "{}")
});
a(u),
l(_t(_t({}, null !== (r = null == u || null === (i = u.data) || void 0 === i ? void 0 : i.screens.home) && void 0 !== r ? r : {}), {}, {
ignore: !0
})),
c(),
s.push("/editor")
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetData(this.state.query)
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.templates
, r = t.loading;
return Object(Ip.jsx)("div", {
style: {
width: "100%",
backgroundColor: "#F4F6F8"
},
children: Object(Ip.jsx)(vw, {
children: Object(Ip.jsx)(yj, {
children: Object(Ip.jsxs)(eS, {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
styles: tS,
children: [Object(Ip.jsxs)(yj.Item, {
children: [Object(Ip.jsx)(Ek, {
onClick: function() {
return e.props.history.goBack()
},
children: Object(Ip.jsx)(lp, {
iconName: "Back"
})
}), " Home"]
}), Object(Ip.jsx)(yj.Item, {
children: Object(Ip.jsx)($M, {
value: this.state.selected,
onChange: this._onChange
})
})]
}), Object(Ip.jsx)("div", {
className: "ms-Grid",
children: Object(Ip.jsx)("div", {
className: "ms-Grid-row",
children: "pending" === r.fetch ? Object(Ip.jsx)(gw, {
count: 8,
style: {
marginBottom: 40
}
}) : n.map((function(t) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-md3 ms-lg3",
children: Object(Ip.jsx)(yw, {
margin: "0 0 40px 0",
children: Object(Ip.jsx)(lC, {
template: t,
configTemplate: e.configTemplate
})
})
}, t.id)
}
))
})
})]
})
})
})
})
}
}]),
n
}(l.Component), rS = On(va((function(e) {
return {
templates: rb(e),
loading: cb(e)
}
}
), {
fetchTemplates: nf,
createTemplate: of,
configTemplate: $f,
restoreScreenData: uu,
clearHistory: cs.ActionCreators.clearHistory
})(nS)), iS = Mu.b.div(fM || (fM = _u(["\n padding: 70px 0;\n"]))), oS = {
root: {
padding: "0 16px 20px 16px"
}
}, aS = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
selected: "popular",
query: {
orderby: "modified",
order: "desc"
}
},
e._onChange = function(t, n, r) {
null != n && n.key && e.setState({
selected: n.key,
query: n.data
})
}
,
e.createTemplate = function(t, n) {
(0,
e.props.createTemplate)({
data: {
title: t.name,
status: "publish",
content: JSON.parse(t.data)
},
cb: n
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.templates
, r = t.loading;
return Object(Ip.jsx)("div", {
style: {
width: "100%",
backgroundColor: "#F4F6F8"
},
children: Object(Ip.jsx)(vw, {
children: Object(Ip.jsx)(yj, {
children: Object(Ip.jsxs)(iS, {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
styles: oS,
children: [Object(Ip.jsxs)(yj.Item, {
children: [Object(Ip.jsx)(Ek, {
onClick: function() {
return e.props.history.goBack()
},
children: Object(Ip.jsx)(lp, {
iconName: "Back"
})
}), " Home"]
}), Object(Ip.jsx)(yj.Item, {
children: Object(Ip.jsx)($M, {
value: this.state.selected,
onChange: this._onChange
})
})]
}), Object(Ip.jsx)("div", {
className: "ms-Grid",
children: Object(Ip.jsx)("div", {
className: "ms-Grid-row",
children: "pending" === r.preTemps ? Object(Ip.jsx)(gw, {
count: 8,
style: {
marginBottom: 40
}
}) : n.map((function(t) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-md3 ms-lg3",
children: Object(Ip.jsx)(yw, {
margin: "0 0 40px 0",
children: Object(Ip.jsx)(h_, {
template: t,
createTemplate: e.createTemplate
})
})
}, t.id)
}
))
})
})]
})
})
})
})
}
}]),
n
}(l.Component), lS = On(va((function(e) {
return {
templates: ib(e),
loading: cb(e)
}
}
), {
fetchPreTemplates: rf,
createTemplate: of
})(aS)), sS = {
root: {
fontWeight: 400,
color: Po.palette.neutralPrimaryAlt
}
}, cS = {
valueLabel: {
width: "auto"
}
}, uS = {
fieldGroup: {
borderColor: Po.palette.neutralTertiaryAlt,
background: Po.palette.white
},
field: {
border: "none !important"
}
}, dS = {
label: {
fontWeight: 400,
color: Po.palette.neutralPrimaryAlt
},
title: {
borderColor: Po.palette.neutralTertiaryAlt,
background: Po.palette.white
}
}, pS = {
input: {
border: "none !important",
borderColor: Po.palette.neutralTertiaryAlt,
background: Po.palette.white,
borderRadius: "0 !important"
},
spinButtonWrapper: {
borderColor: Po.palette.neutralTertiaryAlt,
":after": {
borderColor: Po.palette.neutralTertiaryAlt
}
}
}, hS = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0"
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
}, fS = Mu.b.span(bM || (bM = _u(["\n display: block;\n"]))), bS = Mu.b.div(gM || (gM = _u(["\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0px 24px;\n margin-top: 50px;\n"]))), gS = Mu.b.div(mM || (mM = _u(["\n width: 100%;\n max-width: 825px;\n"]))), mS = Object(Mu.b)(fS)(vM || (vM = _u(["\n font-size: 22px;\n font-weight: 500;\n margin-bottom: 20px;\n"]))), vS = Object(Mu.b)(fS)(yM || (yM = _u(["\n color: ", ";\n margin-bottom: 50px;\n"])), Po.palette.neutralPrimaryAlt), yS = Mu.b.div(xM || (xM = _u(["\n margin: 0px -16px;\n & > div:first-child {\n float: right;\n }\n"]))), xS = Mu.b.div(OM || (OM = _u(["\n padding: 0px 16px;\n margin-bottom: 30px;\n"]))), OS = Mu.b.div(jM || (jM = _u(["\n background-color: ", ";\n padding: 30px 25px;\n border-radius: 5px;\n box-shadow: 0px 1.6px 3.6px rgba(0, 0, 0, 0.132),\n 0px 0.3px 0.9px rgba(0, 0, 0, 0.108);\n & > div {\n margin-bottom: 15px;\n }\n & > button {\n margin-top: 15px;\n }\n"])), Po.palette.neutralLighter), jS = Object(Mu.b)(fS)(kM || (kM = _u(["\n font-size: 18px;\n font-weight: 500;\n margin-bottom: 15px;\n"]))), kS = Mu.b.div(wM || (wM = _u(["\n display: flex;\n margin: 0px -18px;\n & > div {\n flex: 1;\n margin: 0px 18px;\n }\n"]))), wS = Mu.b.div(CM || (CM = _u(["\n display: flex;\n align-items: center;\n & > i {\n font-size: 20px;\n color: ", ";\n }\n & > span {\n flex: 1;\n word-break: break-word;\n margin-left: 10px;\n line-height: 22px;\n color: #2f80ed;\n cursor: pointer;\n }\n"])), Po.palette.neutralPrimaryAlt), CS = Object(Mu.b)(wS)(_M || (_M = _u(["\n padding-top: 5px;\n padding-bottom: 12px;\n"]))), _S = Object(Mu.b)(wS)(MM || (MM = _u(["\n padding-bottom: 40px;\n"]))), MS = Mu.b.div(SM || (SM = _u(["\n padding-top: 5px;\n font-size: 20px;\n & > i {\n margin-right: 20px;\n cursor: pointer;\n }\n"]))), SS = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)(bS, {
children: Object(Ip.jsxs)(gS, {
children: [Object(Ip.jsx)(mS, {
children: "We create beautiful Apps with amazing User Experience"
}), Object(Ip.jsxs)(vS, {
children: ["Rnlab.io is a highly experienced app & web company that specializes in eCommerce and CMS related products.", Object(Ip.jsx)("span", {
style: {
display: "block"
},
children: "We promise best and best service to you all of our customers."
})]
}), Object(Ip.jsxs)(yS, {
children: [Object(Ip.jsx)(xS, {
className: "ms-Grid-col ms-sm12 ms-lg7",
children: Object(Ip.jsxs)(OS, {
children: [Object(Ip.jsx)(jS, {
children: "Contacts Us"
}), Object(Ip.jsxs)(kS, {
children: [Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: "Name"
}), Object(Ip.jsx)(jk, {
styles: uS,
placeholder: "Full Name"
})]
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: "Phone"
}), Object(Ip.jsx)(jk, {
styles: uS,
placeholder: "Your phone"
})]
})]
}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Email"
}), Object(Ip.jsx)(jk, {
styles: uS,
placeholder: "Your Email"
}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Subject*"
}), Object(Ip.jsx)(jk, {
styles: uS,
placeholder: "Title"
}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Messenger"
}), Object(Ip.jsx)(jk, {
styles: uS,
placeholder: "Content",
multiline: !0,
rows: 4
}), Object(Ip.jsx)(kk, {
children: "Submit"
})]
})
}), Object(Ip.jsxs)(xS, {
className: "ms-Grid-col ms-sm12 ms-lg5",
children: [Object(Ip.jsx)(jS, {
children: "Support chanel"
}), Object(Ip.jsxs)(CS, {
children: [Object(Ip.jsx)(lp, {
iconName: "Mail"
}), Object(Ip.jsx)("span", {
children: "ngocdt@rnlab.io"
})]
}), Object(Ip.jsxs)(_S, {
children: [Object(Ip.jsx)(lp, {
iconName: "CommentActive"
}), Object(Ip.jsx)("span", {
children: "https://support.rnlab.io/"
})]
}), Object(Ip.jsx)(jS, {
children: "Connect Social"
}), Object(Ip.jsxs)(MS, {
children: [Object(Ip.jsx)(lp, {
iconName: "Info"
}), Object(Ip.jsx)(lp, {
iconName: "Info"
}), Object(Ip.jsx)(lp, {
iconName: "Info"
}), Object(Ip.jsx)(lp, {
iconName: "Info"
})]
})]
})]
})]
})
})
}
}]),
n
}(l.Component), AS = SS, TS = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "AnalyticPage"
})
}
}]),
n
}(l.Component), ES = TS, IS = Mu.b.span(AM || (AM = _u(["\n display: block;\n"]))), NS = Mu.b.div(TM || (TM = _u(["\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 0px 24px;\n margin-top: 50px;\n"]))), zS = Mu.b.div(EM || (EM = _u(["\n width: 100%;\n max-width: 948px;\n"]))), DS = Object(Mu.b)(IS)(IM || (IM = _u(["\n font-size: 22px;\n font-weight: 500;\n margin-bottom: 9px;\n"]))), LS = Object(Mu.b)(IS)(NM || (NM = _u(["\n color: ", ";\n margin-bottom: 40px;\n"])), Po.palette.neutralPrimaryAlt), RS = Mu.b.div(zM || (zM = _u(["\n margin: 0px -16px;\n"]))), PS = Mu.b.div(DM || (DM = _u(["\n padding: 0px 16px;\n margin-bottom: 30px;\n"]))), BS = Mu.b.div(LM || (LM = _u(["\n background-color: #fff4ce;\n padding: 16px 31px 13px 8px;\n margin-bottom: 30px;\n display: flex;\n"]))), FS = Object(Mu.b)(lp)(RM || (RM = _u(["\n font-size: 16px;\n color: #797775;\n margin-right: 9px;\n margin-top: 3px;\n"]))), VS = Object(Mu.b)(IS)(PM || (PM = _u(["\n font-size: 12px;\n line-height: 20px;\n color: ", "\n flex: 1;\n"])), Po.palette.neutralPrimary), WS = Mu.b.div(BM || (BM = _u(["\n background-color: ", ";\n padding: 30px 23px;\n border-radius: 5px;\n box-shadow: 0px 1.6px 3.6px rgba(0, 0, 0, 0.132),\n 0px 0.3px 0.9px rgba(0, 0, 0, 0.108);\n"])), Po.palette.neutralLighter), qS = Mu.b.div(FM || (FM = _u(["\n display: flex;\n margin-bottom: 25px;\n"]))), HS = Object(Mu.b)(IS)(VM || (VM = _u(["\n flex: 1;\n font-size: 18px;\n font-weight: 500;\n"]))), US = Object(Mu.b)(lp)(WM || (WM = _u(["\n color: #acafc9;\n font-size: 20px;\n"]))), XS = Mu.b.div(qM || (qM = _u(["\n max-width: 295px;\n margin-bottom: 10px;\n"]))), GS = Object(Mu.b)(IS)(HM || (HM = _u(["\n color: ", ";\n font-size: 12px;\n margin-top: 20px;\n"])), Po.palette.neutralPrimaryAlt), KS = Mu.b.div(UM || (UM = _u(["\n //padding: 30px 26px;\n border: 1px solid rgba(126, 130, 164, 0.2);\n border-radius: 5px;\n margin-bottom: 30px;\n"]))), YS = Mu.b.div(XM || (XM = _u(["\n display: flex;\n margin-bottom: 10px;\n align-items: center;\n\n & > div:nth-child(2) {\n flex: 1;\n margin-left: 12px;\n\n & > span {\n font-size: 16px;\n line-height: 20px;\n font-weight: 500;\n display: block;\n\n &:nth-child(1) {\n color: #acafc9;\n margin-bottom: 3px;\n }\n }\n }\n"]))), QS = Mu.b.div(GM || (GM = _u(["\n width: 44px;\n height: 44px;\n border-radius: 5px;\n background-color: ", ";\n color: ", ";\n font-size: 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.color
}
)), JS = Object(Mu.b)(Ek)(KM || (KM = _u(["\n margin-right: 15px;\n padding: 6px 19px;\n\n & > i {\n font-size: 14px;\n margin-right: 6px;\n }\n"]))), ZS = Mu.b.ul(YM || (YM = _u(["\n margin-left: 20px;\n margin-right: 20px;\n margin-bottom: 20px;\n padding: 0;\n"]))), $S = n(129), eA = n.n($S), tA = n(80);
function nA(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
function rA(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n,
e
}
function iA(e, t) {
var n = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e);
t && (r = r.filter((function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable
}
))),
n.push.apply(n, r)
}
return n
}
function oA(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {};
t % 2 ? iA(n, !0).forEach((function(t) {
rA(e, t, n[t])
}
)) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : iA(n).forEach((function(t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
}
))
}
return e
}
function aA(e) {
return aA = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
return e.__proto__ || Object.getPrototypeOf(e)
}
,
aA(e)
}
function lA(e, t) {
return lA = Object.setPrototypeOf || function(e, t) {
return e.__proto__ = t,
e
}
,
lA(e, t)
}
function sA(e) {
if (void 0 === e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e
}
!function(e, t) {
void 0 === t && (t = {});
var n = t.insertAt;
if (e && "undefined" != typeof document) {
var r = document.head || document.getElementsByTagName("head")[0]
, i = document.createElement("style");
i.type = "text/css",
"top" === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i),
i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e))
}
}(".scroll_container__2ZFIl {\n box-sizing: border-box;\n max-width:100%;\n margin: auto;\n position: relative;\n overflow: hidden;\n}\n.scroll_content__dfsgC {\n height: 100%;\n width: calc(100% + 100px);\n overflow-y: scroll;\n}\n\n.scroll_content__dfsgC > div {\n margin-right: 100px;\n}\n\n.scroll_scrollbarContainer__2KZyQ {\n position: absolute;\n right: 0px;\n bottom: 5px;\n top: 5px;\n}\n\n.scroll_scrollbar__2hZu6 {\n position: absolute;\n right: 0;\n height: 30px;\n width: 10px;\n border-radius: 10px;\n background: rgba(0, 0, 0, 0.2);\n}\n\n::-webkit-scrollbar {\n display: none;\n}\n");
var cA = function(e) {
function t(e) {
var n;
return function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t),
n = function(e, t) {
return !t || "object" != typeof t && "function" != typeof t ? sA(e) : t
}(this, aA(t).call(this, e)),
rA(sA(n), "state", {
top: 0,
height: 30,
start: 0,
y: 0,
data: n.props.data
}),
rA(sA(n), "content", void 0),
rA(sA(n), "container", void 0),
rA(sA(n), "scroll", void 0),
rA(sA(n), "handleScroll", (function() {
var e = n.content.current
, t = n.container.current
, r = e.scrollHeight > 10 + t.clientHeight
, i = t.clientHeight * e.clientHeight / e.scrollHeight
, o = t.clientHeight * e.scrollTop / e.scrollHeight;
n.setState({
height: r ? i : 0,
top: o
})
}
)),
rA(sA(n), "isFirefox", (function() {
return "undefined" != typeof InstallTrigger
}
)),
n.content = Object(tA.createRef)(),
n.container = Object(tA.createRef)(),
n.scroll = Object(tA.createRef)(),
n.onMove = n.onMove.bind(sA(n)),
n.handleMouseDown = n.handleMouseDown.bind(sA(n)),
n
}
var n, r;
return 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 && lA(e, t)
}(t, e),
n = t,
(r = [{
key: "componentDidMount",
value: function() {
this.handleScroll()
}
}, {
key: "componentWillReceiveProps",
value: function(e) {
this.handleScroll()
}
}, {
key: "handleMouseDown",
value: function(e) {
var t = this;
e.preventDefault();
var n = this.scroll.current;
this.setState({
start: e.pageY,
y: n.offsetTop
}, (function() {
window.addEventListener("mousemove", t.onMove, !1),
window.addEventListener("mouseup", (function() {
window.removeEventListener("mousemove", t.onMove, !1)
}
), !1)
}
))
}
}, {
key: "onMove",
value: function(e) {
var t = this.state
, n = t.start
, r = t.y
, i = this.content.current
, o = this.container.current
, a = this.scroll.current
, l = e.pageY - n
, s = Math.min(o.clientHeight - a.clientHeight, Math.max(0, r + l));
this.setState({
top: s
}),
i.scrollTop = i.scrollHeight * a.offsetTop / o.clientHeight
}
}, {
key: "componentDidUpdate",
value: function(e, t) {
if (e.data && t.data && Object.keys(e.data).length !== Object.keys(t.data).length && this.props.autoScroll) {
var n = this.content.current;
this.setState({
data: e.data
}, (function() {
n.scrollTop = n.scrollHeight
}
))
}
}
}, {
key: "render",
value: function() {
var e = this.state
, t = e.height
, n = e.top
, r = this.props
, i = r.height
, o = r.scrollBorderRadius
, a = r.scrollColor
, l = r.scrollCursor
, s = r.scrollWidth
, c = r.scrollRight
, u = r.style
, d = (function(e, t) {
if (null == e)
return {};
var n, r, i = function(e, t) {
if (null == e)
return {};
var n, r, i = {}, o = Object.keys(e);
for (r = 0; r < o.length; r++)
n = o[r],
t.indexOf(n) >= 0 || (i[n] = e[n]);
return i
}(e, t);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
for (r = 0; r < o.length; r++)
n = o[r],
t.indexOf(n) >= 0 || Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n])
}
}(r, ["height", "scrollBorderRadius", "scrollColor", "scrollCursor", "scrollWidth", "scrollRight", "style"]),
oA({
borderRadius: o,
color: a,
cursor: l,
width: s,
right: c
}, u, {
height: t,
top: n
}));
return Object(tA.createElement)("div", {
className: "scroll_container__2ZFIl",
style: {
height: u.height ? u.height : i
}
}, Object(tA.createElement)("div", {
className: "scroll_scrollbarContainer__2KZyQ",
ref: this.container
}, Object(tA.createElement)("div", {
className: "scroll_scrollbar__2hZu6",
ref: this.scroll,
onMouseDown: this.handleMouseDown,
style: oA({}, d)
})), Object(tA.createElement)("div", {
className: "scroll_content__dfsgC",
onScroll: this.handleScroll,
ref: this.content
}, Object(tA.createElement)("div", {
className: !0 === this.isFirefox() ? "story-list-firefox" : ""
}, this.props.children)))
}
}]) && nA(n.prototype, r),
t
}(tA.Component);
rA(cA, "defaultProps", {
height: 300,
scrollBorderRadius: 5,
scrollColor: "rgba(0, 0, 0, 0.2)",
scrollCursor: "pointer",
scrollDisplay: "block",
scrollWidth: 5,
scrollRight: 1
});
var uA = function() {
var e = Array(10).fill(0);
return Object(Ip.jsx)(Ip.Fragment, {
children: e.map((function(e, t) {
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(YS, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 44,
width: "100%"
}]
})
}),
width: 44
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "100%"
}]
})
}),
width: "150px"
}), Object(Ip.jsx)("div", {
style: {
marginBottom: "3px"
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "100%"
}]
})
}),
width: "240px"
})]
})]
}), Object(Ip.jsx)("div", {
style: {
borderBottom: "1px solid rgba(0, 0, 0, 0.1)",
marginBottom: "10px"
}
})]
}, t)
}
))
})
}
, dA = function() {
var e = Object(l.useState)([])
, t = Object(ss.a)(e, 2)
, n = t[0]
, r = t[1]
, i = Object(l.useState)({})
, o = Object(ss.a)(i, 2)
, a = o[0]
, s = o[1]
, c = Object(l.useState)(!1)
, u = Object(ss.a)(c, 2)
, d = u[0]
, p = u[1];
Object(l.useEffect)((function() {
var e = function() {
var e = Object(Mt.a)(Nt.a.mark((function e() {
var t;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return p(!0),
e.next = 3,
ps()("https://us-central1-cirilla-rnlab.cloudfunctions.net/build");
case 3:
t = e.sent,
r(t.data),
p(!1);
case 6:
case "end":
return e.stop()
}
}
), e)
}
)));
return function() {
return e.apply(this, arguments)
}
}();
e()
}
), []);
var h = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n, r) {
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return s({
key: r
}),
e.prev = 1,
e.next = 4,
xc(t, n);
case 4:
Pp.success("Download successfully."),
e.next = 10;
break;
case 7:
e.prev = 7,
e.t0 = e.catch(1),
Pp.error(e.t0.message);
case 10:
return e.prev = 10,
s({}),
e.finish(10);
case 13:
case "end":
return e.stop()
}
}
), e, null, [[1, 7, 10, 13]])
}
)));
return function(t, n, r) {
return e.apply(this, arguments)
}
}();
return Object(Ip.jsx)(cA, {
style: {
height: 280
},
children: Object(Ip.jsx)(ZS, {
children: d ? Object(Ip.jsx)(uA, {}) : eA()(n, ["buildNumber"]).reverse().map((function(e, t) {
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(YS, {
children: [Object(Ip.jsx)(QS, {
background: "#F94E2B",
color: "#fff",
children: Object(Ip.jsx)(lp, {
iconName: "CloudDownload"
})
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("span", {
children: ["Cirilla Store ", e.version, ".", e.buildNumber]
}), e.created ? Object(Ip.jsx)("span", {
children: new Date(1e3 * e.created._seconds).toUTCString()
}) : null]
}), Object(Ip.jsx)(zk, {
className: Cu()(a, ["key"], null) === e.key ? "progress" : "",
typebtn: "primary",
onClick: function() {
return h(e.downloadUrl, "".concat(e.version, ".").concat(e.buildNumber), e.key)
},
children: "Download"
})]
}, e.key), Object(Ip.jsx)("div", {
style: {
borderBottom: "1px solid rgba(0, 0, 0, 0.1)",
marginBottom: "10px"
}
})]
}, t)
}
))
})
})
}
, pA = {
iconName: "CheckMark",
styles: {
root: {
color: "green"
}
}
}
, hA = {
iconName: "Error"
}
, fA = window.app_builder.version
, bA = function() {
var e, t, n, r = Object(l.useContext)(Rb), i = Object(l.useState)(null !== (e = null === (t = window) || void 0 === t || null === (n = t.app_builder) || void 0 === n ? void 0 : n.license) && void 0 !== e ? e : ""), o = Object(ss.a)(i, 2), a = o[0], c = o[1], u = Ck(!1), d = Object(ss.a)(u, 2), p = d[0], h = d[1], f = h.setFalse, b = h.setTrue, g = s.a.useMemo((function() {
return {
className: p ? "progress" : ""
}
}
), [p]), m = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t) {
var n;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return b(),
e.prev = 1,
e.next = 4,
Us(t);
case 4:
if (!(n = e.sent).error) {
e.next = 9;
break
}
return Pp.error(n.error),
f(),
e.abrupt("return");
case 9:
if (n.verify) {
e.next = 13;
break
}
return Pp.error("The license code not validate, please flow our document to get the license code."),
f(),
e.abrupt("return");
case 13:
return e.next = 15,
Oc({
license: a,
app: n.app
});
case 15:
n && n.token && (r.logout(),
r.login(n.token)),
Pp.success("The license code added successfully."),
f(),
e.next = 24;
break;
case 20:
e.prev = 20,
e.t0 = e.catch(1),
f(),
Pp.error(e.t0.message);
case 24:
case "end":
return e.stop()
}
}
), e, null, [[1, 20]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}();
return Object(Ip.jsx)(NS, {
children: Object(Ip.jsxs)(zS, {
children: [Object(Ip.jsx)(DS, {
children: "Welcome to App Builder"
}), Object(Ip.jsx)(LS, {
children: "Thank you for using our app, please reward it a full five-star ★★★★★ rating."
}), Object(Ip.jsxs)(RS, {
children: [Object(Ip.jsxs)(PS, {
className: "ms-Grid-col ms-sm12 ms-lg6",
children: [Object(Ip.jsxs)(BS, {
children: [Object(Ip.jsx)(FS, {
iconName: "Info"
}), Object(Ip.jsxs)(VS, {
children: ["1 Purchase Code per Website", Object(Ip.jsx)(VS, {
children: "If you want to use App Builder on another domain, please purchase another license"
})]
})]
}), Object(Ip.jsxs)(WS, {
children: [Object(Ip.jsxs)(qS, {
children: [Object(Ip.jsx)(HS, {
children: "Registered License"
}), Object(Ip.jsx)(US, {
iconName: "UnlockSolid"
})]
}), Object(Ip.jsx)(ok, {
styles: sS,
children: "License"
}), Object(Ip.jsx)(XS, {
children: Object(Ip.jsx)(jk, {
value: a,
onChange: function(e, t) {
return c(t ? t.trim() : "")
},
placeholder: "Paste your license code here",
styles: uS,
iconProps: r.isAuthenticated ? pA : hA
})
}), Object(Ip.jsx)(zk, _t(_t({}, g), {}, {
typebtn: "primary",
onClick: function() {
return m(a)
},
children: "Submit"
})), Object(Ip.jsx)(GS, {
children: "Show us your license code to get the automatic update."
})]
})]
}), Object(Ip.jsxs)(PS, {
className: "ms-Grid-col ms-sm12 ms-lg6",
children: [Object(Ip.jsxs)(KS, {
children: [Object(Ip.jsxs)(YS, {
style: {
marginBottom: 20,
paddingTop: 20,
paddingLeft: 20
},
children: [Object(Ip.jsx)(QS, {
background: Po.palette.neutralLighter,
color: Po.palette.neutralPrimary,
children: Object(Ip.jsx)(lp, {
iconName: "Flag"
})
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)("span", {
children: "App Builder"
}), Object(Ip.jsx)("span", {
children: null != fA ? fA : ""
})]
})]
}), Object(Ip.jsx)(dA, {})]
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(JS, {
onClick: function() {
return window.open("https://admin.appcheap.io/", "_blank")
},
children: [Object(Ip.jsx)(lp, {
iconName: "Headset"
}), Object(Ip.jsx)("span", {
children: "Support Ticket"
})]
}), Object(Ip.jsxs)(JS, {
onClick: function() {
return window.open("https://appcheap.io/fqa/", "_blank")
},
children: [Object(Ip.jsx)(lp, {
iconName: "CommentActive"
}), Object(Ip.jsx)("span", {
children: "FAQ"
})]
})]
})]
})]
})]
})
})
}
, gA = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "Tools Page"
})
}
}]),
n
}(l.Component)
, mA = gA
, vA = n(112)
, yA = n.n(vA)
, xA = n(293)
, OA = n.n(xA)
, jA = n(19)
, kA = n(214)
, wA = n.n(kA)
, CA = ["text", "textarea", "number", "select", "switch"]
, _A = Sg()
, MA = l.forwardRef((function(e, t) {
var n = e.as
, r = void 0 === n ? "div" : n
, i = e.ariaLabel
, o = e.checked
, a = e.className
, s = e.defaultChecked
, c = void 0 !== s && s
, u = e.disabled
, d = e.inlineLabel
, p = e.label
, h = e.offAriaLabel
, f = e.offText
, b = e.onAriaLabel
, g = e.onChange
, m = e.onChanged
, v = e.onClick
, y = e.onText
, x = e.role
, O = e.styles
, j = e.theme
, k = _C(o, c, l.useCallback((function(e, t) {
null == g || g(e, t),
null == m || m(t)
}
), [g, m]))
, w = k[0]
, C = k[1]
, _ = _A(O, {
theme: j,
className: a,
disabled: u,
checked: w,
inlineLabel: d,
onOffMissing: !y && !f
})
, M = w ? b : h
, S = gO("Toggle", e.id)
, A = S + "-label"
, T = S + "-stateText"
, E = w ? y : f
, I = rp(e, qd, ["defaultChecked"])
, N = void 0;
i || M || (p && (N = A),
E && !N && (N = T));
var z = l.useRef(null);
fg(z),
AA(e, w, z);
var D = {
root: {
className: _.root,
hidden: I.hidden
},
label: {
children: p,
className: _.label,
htmlFor: S,
id: A
},
container: {
className: _.container
},
pill: Object(zn.a)(Object(zn.a)({}, I), {
"aria-disabled": u,
"aria-checked": w,
"aria-label": i || M,
"aria-labelledby": N,
className: _.pill,
"data-is-focusable": !0,
"data-ktp-target": !0,
disabled: u,
id: S,
onClick: function(e) {
u || (C(!w, e),
v && v(e))
},
ref: z,
role: x || "switch",
type: "button"
}),
thumb: {
className: _.thumb
},
stateText: {
children: E,
className: _.text,
htmlFor: S,
id: T
}
};
return l.createElement(r, Object(zn.a)({
ref: t
}, D.root), p && l.createElement(ok, Object(zn.a)({}, D.label)), l.createElement("div", Object(zn.a)({}, D.container), l.createElement("button", Object(zn.a)({}, D.pill), l.createElement("span", Object(zn.a)({}, D.thumb))), (w && y || f) && l.createElement(ok, Object(zn.a)({}, D.stateText))))
}
));
MA.displayName = "ToggleBase";
var SA, AA = function(e, t, n) {
l.useImperativeHandle(e.componentRef, (function() {
return {
get checked() {
return !!t
},
focus: function() {
n.current && n.current.focus()
}
}
}
), [t, n])
}, TA = jg(MA, (function(e) {
var t, n, r, i, o, a, l, s = e.theme, c = e.className, u = e.disabled, d = e.checked, p = e.inlineLabel, h = e.onOffMissing, f = s.semanticColors, b = s.palette, g = f.bodyBackground, m = f.inputBackgroundChecked, v = f.inputBackgroundCheckedHovered, y = b.neutralDark, x = f.disabledBodySubtext, O = f.smallInputBorder, j = f.inputForegroundChecked, k = f.disabledBodySubtext, w = f.disabledBackground, C = f.smallInputBorder, _ = f.inputBorderHovered, M = f.disabledBodySubtext, S = f.disabledText;
return {
root: ["ms-Toggle", d && "is-checked", !u && "is-enabled", u && "is-disabled", s.fonts.medium, {
marginBottom: "8px"
}, p && {
display: "flex",
alignItems: "center"
}, c],
label: ["ms-Toggle-label", {
display: "inline-block"
}, u && {
color: S,
selectors: (t = {},
t[vi] = {
color: "GrayText"
},
t)
}, p && !h && {
marginRight: 16
}, h && p && {
order: 1,
marginLeft: 16
}, p && {
wordBreak: "break-word"
}],
container: ["ms-Toggle-innerContainer", {
display: "flex",
position: "relative"
}],
pill: ["ms-Toggle-background", Mi(s, {
inset: -3
}), {
fontSize: "20px",
boxSizing: "border-box",
width: 40,
height: 20,
borderRadius: 10,
transition: "all 0.1s ease",
border: "1px solid " + C,
background: g,
cursor: "pointer",
display: "flex",
alignItems: "center",
padding: "0 3px"
}, !u && [!d && {
selectors: {
":hover": [{
borderColor: _
}],
":hover .ms-Toggle-thumb": [{
backgroundColor: y,
selectors: (n = {},
n[vi] = {
borderColor: "Highlight"
},
n)
}]
}
}, d && [{
background: m,
borderColor: "transparent",
justifyContent: "flex-end"
}, {
selectors: (r = {
":hover": [{
backgroundColor: v,
borderColor: "transparent",
selectors: (i = {},
i[vi] = {
backgroundColor: "Highlight"
},
i)
}]
},
r[vi] = Object(zn.a)({
backgroundColor: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
r)
}]], u && [{
cursor: "default"
}, !d && [{
borderColor: M
}], d && [{
backgroundColor: x,
borderColor: "transparent",
justifyContent: "flex-end"
}]], !u && {
selectors: {
"&:hover": {
selectors: (o = {},
o[vi] = {
borderColor: "Highlight"
},
o)
}
}
}],
thumb: ["ms-Toggle-thumb", {
display: "block",
width: 12,
height: 12,
borderRadius: "50%",
transition: "all 0.1s ease",
backgroundColor: O,
borderColor: "transparent",
borderWidth: 6,
borderStyle: "solid",
boxSizing: "border-box"
}, !u && d && [{
backgroundColor: j,
selectors: (a = {},
a[vi] = {
backgroundColor: "Window",
borderColor: "Window"
},
a)
}], u && [!d && [{
backgroundColor: k
}], d && [{
backgroundColor: w
}]]],
text: ["ms-Toggle-stateText", {
selectors: {
"&&": {
padding: "0",
margin: "0 8px",
userSelect: "none",
fontWeight: bi.regular
}
}
}, u && {
selectors: {
"&&": {
color: S,
selectors: (l = {},
l[vi] = {
color: "GrayText"
},
l)
}
}
}]
}
}
), void 0, {
scope: "Toggle"
});
!function(e) {
e[e.Parent = 0] = "Parent",
e[e.Self = 1] = "Self"
}(SA || (SA = {}));
var EA, IA = Sg(), NA = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._onRenderContent = function(e) {
return "string" == typeof e.content ? l.createElement("p", {
className: t._classNames.subText
}, e.content) : l.createElement("div", {
className: t._classNames.subText
}, e.content)
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.className
, n = e.calloutProps
, r = e.directionalHint
, i = e.directionalHintForRTL
, o = e.styles
, a = e.id
, s = e.maxWidth
, c = e.onRenderContent
, u = void 0 === c ? this._onRenderContent : c
, d = e.targetElement
, p = e.theme;
return this._classNames = IA(o, {
theme: p,
className: t || n && n.className,
beakWidth: n && n.beakWidth,
gapSpace: n && n.gapSpace,
maxWidth: s
}),
l.createElement(Bx, Object(zn.a)({
target: d,
directionalHint: r,
directionalHintForRTL: i
}, n, rp(this.props, np, ["id"]), {
className: this._classNames.root
}), l.createElement("div", {
className: this._classNames.content,
id: a,
onMouseEnter: this.props.onMouseEnter,
onMouseLeave: this.props.onMouseLeave
}, u(this.props, this._onRenderContent)))
}
,
t.defaultProps = {
directionalHint: 1,
maxWidth: "364px",
calloutProps: {
isBeakVisible: !0,
beakWidth: 16,
gapSpace: 0,
setInitialFocus: !0,
doNotLayer: !1
}
},
t
}(l.Component), zA = jg(NA, (function(e) {
var t = e.className
, n = e.beakWidth
, r = void 0 === n ? 16 : n
, i = e.gapSpace
, o = void 0 === i ? 0 : i
, a = e.maxWidth
, l = e.theme
, s = l.semanticColors
, c = l.fonts
, u = l.effects
, d = -(Math.sqrt(r * r / 2) + o) + 1 / window.devicePixelRatio;
return {
root: ["ms-Tooltip", l.fonts.medium, di.fadeIn200, {
background: s.menuBackground,
boxShadow: u.elevation8,
padding: "8px",
maxWidth: a,
selectors: {
":after": {
content: "''",
position: "absolute",
bottom: d,
left: d,
right: d,
top: d,
zIndex: 0
}
}
}, t],
content: ["ms-Tooltip-content", c.small, {
position: "relative",
zIndex: 1,
color: s.menuItemText,
wordWrap: "break-word",
overflowWrap: "break-word",
overflow: "hidden"
}],
subText: ["ms-Tooltip-subtext", {
fontSize: "inherit",
fontWeight: "inherit",
color: "inherit",
margin: 0
}]
}
}
), void 0, {
scope: "Tooltip"
});
!function(e) {
e[e.zero = 0] = "zero",
e[e.medium = 1] = "medium",
e[e.long = 2] = "long"
}(EA || (EA = {}));
var DA, LA = Sg(), RA = function(e) {
function t(n) {
var r = e.call(this, n) || this;
return r._tooltipHost = l.createRef(),
r._defaultTooltipId = lg("tooltip"),
r.show = function() {
r._toggleTooltip(!0)
}
,
r.dismiss = function() {
r._hideTooltip()
}
,
r._getTargetElement = function() {
if (r._tooltipHost.current) {
var e = r.props.overflowMode;
if (void 0 !== e)
switch (e) {
case SA.Parent:
return r._tooltipHost.current.parentElement;
case SA.Self:
return r._tooltipHost.current
}
return r._tooltipHost.current
}
}
,
r._onTooltipFocus = function(e) {
r._ignoreNextFocusEvent ? r._ignoreNextFocusEvent = !1 : r._onTooltipMouseEnter(e)
}
,
r._onTooltipBlur = function(e) {
r._ignoreNextFocusEvent = (null === document || void 0 === document ? void 0 : document.activeElement) === e.target,
r._hideTooltip()
}
,
r._onTooltipMouseEnter = function(e) {
var n, i = r.props, o = i.overflowMode, a = i.delay;
if (t._currentVisibleTooltip && t._currentVisibleTooltip !== r && t._currentVisibleTooltip.dismiss(),
t._currentVisibleTooltip = r,
void 0 !== o) {
var l = r._getTargetElement();
if (l && !function(e) {
return e.clientWidth < e.scrollWidth
}(n = l) && !function(e) {
return e.clientHeight < e.scrollHeight
}(n))
return
}
if (!e.target || !Ub(e.target, r._getTargetElement()))
if (r._clearDismissTimer(),
r._clearOpenTimer(),
a !== EA.zero) {
r.setState({
isAriaPlaceholderRendered: !0
});
var s = r._getDelayTime(a);
r._openTimerId = r._async.setTimeout((function() {
r._toggleTooltip(!0)
}
), s)
} else
r._toggleTooltip(!0)
}
,
r._onTooltipMouseLeave = function(e) {
var n = r.props.closeDelay;
r._clearDismissTimer(),
r._clearOpenTimer(),
n ? r._dismissTimerId = r._async.setTimeout((function() {
r._toggleTooltip(!1)
}
), n) : r._toggleTooltip(!1),
t._currentVisibleTooltip === r && (t._currentVisibleTooltip = void 0)
}
,
r._onTooltipKeyDown = function(e) {
(e.which === dp || e.ctrlKey) && r.state.isTooltipVisible && (r._hideTooltip(),
e.stopPropagation())
}
,
r._clearDismissTimer = function() {
r._async.clearTimeout(r._dismissTimerId)
}
,
r._clearOpenTimer = function() {
r._async.clearTimeout(r._openTimerId)
}
,
r._hideTooltip = function() {
r._clearOpenTimer(),
r._clearDismissTimer(),
r._toggleTooltip(!1)
}
,
r._toggleTooltip = function(e) {
r.state.isTooltipVisible !== e && r.setState({
isAriaPlaceholderRendered: !1,
isTooltipVisible: e
}, (function() {
return r.props.onTooltipToggle && r.props.onTooltipToggle(e)
}
))
}
,
r._getDelayTime = function(e) {
switch (e) {
case EA.medium:
return 300;
case EA.long:
return 500;
default:
return 0
}
}
,
Kb(r),
r.state = {
isAriaPlaceholderRendered: !1,
isTooltipVisible: !1
},
r._async = new $b(r),
r
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.calloutProps
, n = e.children
, r = e.content
, i = e.directionalHint
, o = e.directionalHintForRTL
, a = e.hostClassName
, s = e.id
, c = e.setAriaDescribedBy
, u = void 0 === c || c
, d = e.tooltipProps
, p = e.styles
, h = e.theme;
this._classNames = LA(p, {
theme: h,
className: a
});
var f = this.state
, b = f.isAriaPlaceholderRendered
, g = f.isTooltipVisible
, m = s || this._defaultTooltipId
, v = !!(r || d && d.onRenderContent && d.onRenderContent())
, y = g && v
, x = u && g && v ? m : void 0;
return l.createElement("div", Object(zn.a)({
className: this._classNames.root,
ref: this._tooltipHost
}, {
onFocusCapture: this._onTooltipFocus
}, {
onBlurCapture: this._onTooltipBlur
}, {
onMouseEnter: this._onTooltipMouseEnter,
onMouseLeave: this._onTooltipMouseLeave,
onKeyDown: this._onTooltipKeyDown,
role: "none",
"aria-describedby": x
}), n, y && l.createElement(zA, Object(zn.a)({
id: m,
content: r,
targetElement: this._getTargetElement(),
directionalHint: i,
directionalHintForRTL: o,
calloutProps: tg({}, t, {
onDismiss: this._hideTooltip,
onMouseEnter: this._onTooltipMouseEnter,
onMouseLeave: this._onTooltipMouseLeave
}),
onMouseEnter: this._onTooltipMouseEnter,
onMouseLeave: this._onTooltipMouseLeave
}, rp(this.props, np), d)), b && l.createElement("div", {
id: m,
role: "none",
style: Ai
}, r))
}
,
t.prototype.componentWillUnmount = function() {
t._currentVisibleTooltip && t._currentVisibleTooltip === this && (t._currentVisibleTooltip = void 0),
this._async.dispose()
}
,
t.defaultProps = {
delay: EA.medium
},
t
}(l.Component), PA = {
root: "ms-TooltipHost",
ariaPlaceholder: "ms-TooltipHost-aria-placeholder"
}, BA = jg(RA, (function(e) {
var t = e.className
, n = e.theme;
return {
root: [Vi(PA, n).root, {
display: "inline"
}, t]
}
}
), void 0, {
scope: "TooltipHost"
}), FA = Mu.b.div(DA || (DA = _u(["\n margin: 0 16px 0 0;\n flex: 1;\n"]))), VA = {
gapSpace: 0
}, WA = {
root: {
display: "inline-block"
}
}, qA = function(e) {
var t = e.label
, n = e.info
, r = Lw("tooltip");
return Object(Ip.jsx)(FA, {
children: Object(Ip.jsxs)(ok, {
styles: sS,
children: [t || "", n ? Object(Ip.jsx)(BA, {
content: Object(Ip.jsx)("div", {
style: {
whiteSpace: "pre-line"
},
children: n
}),
id: r,
calloutProps: VA,
styles: WA,
children: Object(Ip.jsx)(lp, {
iconName: "Info",
style: {
marginLeft: 4
}
})
}) : null]
})
})
}, HA = Sg(), UA = function(e, t) {
t.as;
var n = t.disabled
, r = t.target
, i = t.href
, o = (t.theme,
t.getStyles,
t.styles,
t.componentRef,
t.underline,
Object(zn.d)(t, ["as", "disabled", "target", "href", "theme", "getStyles", "styles", "componentRef", "underline"]));
return "string" == typeof e ? "a" === e ? Object(zn.a)({
target: r,
href: n ? void 0 : i
}, o) : "button" === e ? Object(zn.a)({
type: "button",
disabled: n
}, o) : Object(zn.a)(Object(zn.a)({}, o), {
disabled: n
}) : Object(zn.a)({
target: r,
href: i,
disabled: n
}, o)
}, XA = l.forwardRef((function(e, t) {
var n = function(e, t) {
var n = e.as
, r = e.className
, i = e.disabled
, o = e.href
, a = e.onClick
, s = e.styles
, c = e.theme
, u = e.underline
, d = l.useRef(null)
, p = Eg(d, t);
(function(e, t) {
l.useImperativeHandle(e.componentRef, (function() {
return {
focus: function() {
t.current && t.current.focus()
}
}
}
), [t])
}
)(e, d),
fg(d);
var h = HA(s, {
className: r,
isButton: !o,
isDisabled: i,
isUnderlined: u,
theme: c
})
, f = n || (o ? "a" : "button");
return {
state: {},
slots: {
root: f
},
slotProps: {
root: Object(zn.a)(Object(zn.a)({}, UA(f, e)), {
"aria-disabled": i,
className: h.root,
onClick: function(e) {
i ? e.preventDefault() : a && a(e)
},
ref: p
})
}
}
}(e, t)
, r = n.slots
, i = n.slotProps;
return l.createElement(r.root, Object(zn.a)({}, i.root))
}
));
XA.displayName = "LinkBase";
var GA, KA, YA = {
root: "ms-Link"
}, QA = jg(XA, (function(e) {
var t, n, r, i, o, a, l = e.className, s = e.isButton, c = e.isDisabled, u = e.isUnderlined, d = e.theme, p = d.semanticColors, h = p.link, f = p.linkHovered, b = p.disabledText, g = p.focusBorder, m = Vi(YA, d);
return {
root: [m.root, d.fonts.medium, {
color: h,
outline: "none",
fontSize: "inherit",
fontWeight: "inherit",
textDecoration: u ? "underline" : "none",
selectors: (t = {
".ms-Fabric--isFocusVisible &:focus": {
boxShadow: "0 0 0 1px " + g + " inset",
outline: "1px auto " + g,
selectors: (n = {},
n[vi] = {
outline: "1px solid WindowText"
},
n)
}
},
t[vi] = {
borderBottom: "none"
},
t)
}, s && {
background: "none",
backgroundColor: "transparent",
border: "none",
cursor: "pointer",
display: "inline",
margin: 0,
overflow: "inherit",
padding: 0,
textAlign: "left",
textOverflow: "inherit",
userSelect: "text",
borderBottom: "1px solid transparent",
selectors: (r = {},
r[vi] = {
color: "LinkText",
forcedColorAdjust: "none"
},
r)
}, !s && {
selectors: (i = {},
i[vi] = {
MsHighContrastAdjust: "auto",
forcedColorAdjust: "auto"
},
i)
}, c && ["is-disabled", {
color: b,
cursor: "default"
}, {
selectors: {
"&:link, &:visited": {
pointerEvents: "none"
}
}
}], !c && {
selectors: {
"&:active, &:hover, &:active:hover": {
color: f,
textDecoration: "underline",
selectors: (o = {},
o[vi] = {
color: "LinkText"
},
o)
},
"&:focus": {
color: h,
selectors: (a = {},
a[vi] = {
color: "LinkText"
},
a)
}
}
}, m.root, l]
}
}
), void 0, {
scope: "Link"
});
!function(e) {
e[e.xSmall = 0] = "xSmall",
e[e.small = 1] = "small",
e[e.medium = 2] = "medium",
e[e.large = 3] = "large"
}(GA || (GA = {})),
function(e) {
e[e.normal = 0] = "normal",
e[e.large = 1] = "large"
}(KA || (KA = {}));
var JA = Sg()
, ZA = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.type
, n = e.size
, r = e.ariaLabel
, i = e.ariaLive
, o = e.styles
, a = e.label
, s = e.theme
, c = e.className
, u = e.labelPosition
, d = r
, p = rp(this.props, np, ["size"])
, h = n;
void 0 === h && void 0 !== t && (h = t === KA.large ? GA.large : GA.medium);
var f = JA(o, {
theme: s,
size: h,
className: c,
labelPosition: u
});
return l.createElement("div", Object(zn.a)({}, p, {
className: f.root
}), l.createElement("div", {
className: f.circle
}), a && l.createElement("div", {
className: f.label
}, a), d && l.createElement("div", {
role: "status",
"aria-live": i
}, l.createElement(ak, null, l.createElement("div", {
className: f.screenReaderText
}, d))))
}
,
t.defaultProps = {
size: GA.medium,
ariaLive: "polite",
labelPosition: "bottom"
},
t
}(l.Component)
, $A = {
root: "ms-Spinner",
circle: "ms-Spinner-circle",
label: "ms-Spinner-label"
}
, eT = Li((function() {
return hr({
"0%": {
transform: "rotate(0deg)"
},
"100%": {
transform: "rotate(360deg)"
}
})
}
))
, tT = jg(ZA, (function(e) {
var t, n = e.theme, r = e.size, i = e.className, o = e.labelPosition, a = n.palette, l = Vi($A, n);
return {
root: [l.root, {
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center"
}, "top" === o && {
flexDirection: "column-reverse"
}, "right" === o && {
flexDirection: "row"
}, "left" === o && {
flexDirection: "row-reverse"
}, i],
circle: [l.circle, {
boxSizing: "border-box",
borderRadius: "50%",
border: "1.5px solid " + a.themeLight,
borderTopColor: a.themePrimary,
animationName: eT(),
animationDuration: "1.3s",
animationIterationCount: "infinite",
animationTimingFunction: "cubic-bezier(.53,.21,.29,.67)",
selectors: (t = {},
t[vi] = Object(zn.a)({
borderTopColor: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
}, r === GA.xSmall && ["ms-Spinner--xSmall", {
width: 12,
height: 12
}], r === GA.small && ["ms-Spinner--small", {
width: 16,
height: 16
}], r === GA.medium && ["ms-Spinner--medium", {
width: 20,
height: 20
}], r === GA.large && ["ms-Spinner--large", {
width: 28,
height: 28
}]],
label: [l.label, n.fonts.small, {
color: a.themePrimary,
margin: "8px 0 0",
textAlign: "center"
}, "top" === o && {
margin: "0 0 8px"
}, "right" === o && {
margin: "0 0 0 8px"
}, "left" === o && {
margin: "0 8px 0 0"
}],
screenReaderText: Ai
}
}
), void 0, {
scope: "Spinner"
})
, nT = {
gapSpace: 0
}
, rT = {
root: {
display: "inline-block"
}
};
function iT(e) {
var t, n = e.data, r = e.onSelectBundleId, i = Ck(!0), o = Object(ss.a)(i, 2), a = o[0], l = o[1].toggle, s = Lw("tooltip-copy-bundle-id-".concat(null == n ? void 0 : n.bundleId)), c = Lw("tooltip-applybundle-id-".concat(null == n ? void 0 : n.bundleId));
return Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
tokens: {
childrenGap: 16
},
children: [Object(Ip.jsx)(Lg, {
src: null !== (t = null == n ? void 0 : n.artworkUrl512) && void 0 !== t ? t : Zp.NoImage,
alt: "Image app",
width: 80,
height: 80,
style: {
borderRadius: 8
}
}), Object(Ip.jsxs)(yj.Item, {
grow: !0,
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "mediumPlus",
children: null == n ? void 0 : n.trackName
}), Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
children: null == n ? void 0 : n.sellerName
}), Object(Ip.jsxs)(yj, {
style: {
marginTop: 4
},
horizontal: !0,
verticalAlign: "center",
tokens: {
childrenGap: 4
},
children: [Object(Ip.jsx)(Ep, {
variant: "smallPlus",
children: null == n ? void 0 : n.bundleId
}), Object(Ip.jsx)(BA, {
content: a ? "Copy" : "Copied",
id: s,
calloutProps: nT,
styles: rT,
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "copy"
},
styles: uT,
onClick: function() {
var e;
navigator.clipboard.writeText(null !== (e = null == n ? void 0 : n.bundleId) && void 0 !== e ? e : ""),
l(),
setTimeout((function() {
l()
}
), 1e3)
}
})
}), Object(Ip.jsx)(BA, {
content: "Apply",
id: c,
calloutProps: nT,
styles: rT,
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "CirclePlus"
},
styles: uT,
onClick: function() {
var e;
return r(null !== (e = null == n ? void 0 : n.bundleId) && void 0 !== e ? e : "")
}
})
})]
})]
})]
})
}
function oT(e) {
var t = e.onSelectBundleId
, n = s.a.useState(!1)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1]
, a = s.a.useState("")
, l = Object(ss.a)(a, 2)
, c = l[0]
, u = l[1]
, d = s.a.useState([])
, p = Object(ss.a)(d, 2)
, h = p[0]
, f = p[1]
, b = s.a.useState(void 0)
, g = Object(ss.a)(b, 2)
, m = g[0]
, v = g[1]
, y = s.a.useState(!1)
, x = Object(ss.a)(y, 2)
, O = x[0]
, j = x[1];
s.a.useEffect((function() {
return i || "" === c || ("" !== c && u(""),
h.length > 0 && f([]),
m && v(void 0),
O && j(!1)),
function() {}
}
), [i, c, h, m, O]);
var k = s.a.useCallback((function() {
return o((function(e) {
return !e
}
))
}
), [])
, w = function() {
var e = Object(Mt.a)(Nt.a.mark((function e() {
var t, n;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (O) {
e.next = 16;
break
}
return e.prev = 1,
j(!0),
v(void 0),
e.next = 6,
ps()("https://itunes.apple.com/search?limit=10&media=software&term=" + c).then((function(e) {
return e.data
}
));
case 6:
t = e.sent,
f(yh()(null == t ? void 0 : t.results) ? t.results : []),
j(!1),
e.next = 16;
break;
case 11:
e.prev = 11,
e.t0 = e.catch(1),
j(!1),
v(null !== (n = null === e.t0 || void 0 === e.t0 ? void 0 : e.t0.message) && void 0 !== n ? n : "error"),
f([]);
case 16:
case "end":
return e.stop()
}
}
), e, null, [[1, 11]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
, C = "search_bundle_id";
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(QA, {
href: "",
onClick: k,
children: "Search Bundle ID"
}), Object(Ip.jsxs)(Pj, {
titleAriaId: C,
isOpen: i,
onDismiss: k,
isBlocking: !1,
containerClassName: sT.container,
children: [Object(Ip.jsxs)("div", {
className: sT.header,
children: [Object(Ip.jsx)("h2", {
className: sT.heading,
id: C,
children: "Search Bundle ID"
}), Object(Ip.jsx)(Fj, {
styles: cT,
iconProps: aT,
ariaLabel: "Close popup modal",
onClick: k
})]
}), Object(Ip.jsxs)("div", {
className: sT.body,
children: [Object(Ip.jsx)("form", {
onClick: function(e) {
e.preventDefault(),
"" !== c && w()
},
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
tokens: {
childrenGap: 12
},
children: [Object(Ip.jsx)(yj.Item, {
grow: !0,
children: Object(Ip.jsx)(jk, {
value: c,
placeholder: "To find an app's bundle ID, enter the app name.",
onChange: function(e, t) {
return u(null != t ? t : "")
}
})
}), Object(Ip.jsx)(kk, {
type: "submit",
onClick: w,
iconProps: {
iconName: "Search"
},
disabled: "" === c,
children: "Search"
})]
})
}), !O && h.length > 0 ? Object(Ip.jsx)(yj, {
className: sT.listApp,
tokens: {
childrenGap: 16
},
children: h.map((function(e) {
return Object(Ip.jsx)(iT, {
data: e,
onSelectBundleId: function(e) {
t(e),
k()
}
}, null == e ? void 0 : e.bundleId)
}
))
}) : Object(Ip.jsx)("div", {
className: sT.listAppCenter,
children: O ? Object(Ip.jsx)(tT, {
size: GA.large
}) : m ? Object(Ip.jsx)(Ep, {
style: {
color: "rgb(228, 0, 0)"
},
children: m
}) : "" !== c && 0 === h.length ? Object(Ip.jsx)(Ep, {
children: "No exist data."
}) : Object(Ip.jsx)(Ep, {
children: "Please fill input and search it."
})
})]
})]
})]
})
}
var aT = {
iconName: "Cancel"
}
, lT = yo()
, sT = Do({
container: {
display: "flex",
flexFlow: "column nowrap",
alignItems: "stretch",
maxWidth: "800px",
width: "100%"
},
header: [lT.fonts.xLargePlus, {
flex: "1 1 auto",
borderTop: "4px solid ".concat(lT.palette.themePrimary),
color: lT.palette.neutralPrimary,
display: "flex",
alignItems: "center",
fontWeight: bi.semibold,
padding: "12px 12px 14px 24px"
}],
heading: {
color: lT.palette.neutralPrimary,
fontWeight: bi.semibold,
fontSize: "inherit",
margin: "0"
},
body: {
flex: "4 4 auto",
padding: "0 24px 24px 24px",
overflowY: "hidden"
},
listApp: {
marginTop: "24px",
minHeight: "300px"
},
listAppCenter: {
minHeight: "300px",
display: "flex",
justifyContent: "center",
alignItems: "center",
textAlign: "center"
},
buttonActionApp: {
cursor: "pointer",
color: lT.palette.themeSecondary,
":hover": {
color: lT.palette.themeDark
}
}
})
, cT = {
root: {
color: lT.palette.neutralPrimary,
marginLeft: "auto",
marginTop: "4px",
marginRight: "2px"
},
rootHovered: {
color: lT.palette.neutralDark
}
}
, uT = {
root: {
width: 22,
height: 22
},
icon: {
fontSize: 12
}
}
, dT = n.p + "static/media/guideline-android.6e7730b1.png"
, pT = Do({
root: {
background: "rgba(0, 0, 0, 0.2)",
bottom: "0",
left: "0",
position: "fixed",
right: "0",
top: "0"
},
content: {
background: "white",
left: "50%",
maxWidth: "800px",
padding: "0 2em 2em",
position: "absolute",
top: "50%",
transform: "translate(-50%, -50%)"
},
image: {
margin: "24px 0px",
border: "1px solid #e1e3e8"
}
});
function hT() {
var e = Ck(!1)
, t = Object(ss.a)(e, 2)
, n = t[0]
, r = t[1]
, i = r.setTrue
, o = r.setFalse;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(QA, {
href: "",
onClick: i,
children: "Guideline"
}), n && Object(Ip.jsx)(Px, {
children: Object(Ip.jsxs)(sx, {
className: pT.root,
role: "dialog",
"aria-modal": "true",
onDismiss: o,
children: [Object(Ip.jsx)(Mj, {
onClick: o
}), Object(Ip.jsx)(xj, {
children: Object(Ip.jsxs)("div", {
role: "document",
className: pT.content,
children: [Object(Ip.jsx)(Lg, {
src: dT,
width: 700,
className: pT.image
}), Object(Ip.jsx)(aj, {
onClick: o,
children: "Close Guideline"
})]
})
})]
})
})]
})
}
var fT, bT, gT, mT, vT, yT = n(56), xT = n(130), OT = n.n(xT);
!function(e) {
e[e.disabled = 0] = "disabled",
e[e.clickable = 1] = "clickable",
e[e.hasDropdown = 2] = "hasDropdown"
}(fT || (fT = {})),
function(e) {
e[e.unconstrained = 0] = "unconstrained",
e[e.horizontalConstrained = 1] = "horizontalConstrained"
}(bT || (bT = {})),
function(e) {
e[e.outside = 0] = "outside",
e[e.surface = 1] = "surface",
e[e.header = 2] = "header"
}(gT || (gT = {})),
function(e) {
e[e.fixedColumns = 0] = "fixedColumns",
e[e.justified = 1] = "justified"
}(mT || (mT = {})),
function(e) {
e[e.onHover = 0] = "onHover",
e[e.always = 1] = "always",
e[e.hidden = 2] = "hidden"
}(vT || (vT = {}));
var jT, kT = function(e) {
var t = e.count
, n = e.indentWidth
, r = void 0 === n ? 36 : n
, i = e.role
, o = void 0 === i ? "presentation" : i
, a = t * r;
return t > 0 ? l.createElement("span", {
className: "ms-GroupSpacer",
style: {
display: "inline-block",
width: a
},
role: o
}) : null
};
!function(e) {
e[e.hidden = 0] = "hidden",
e[e.visible = 1] = "visible"
}(jT || (jT = {}));
var wT = {
label: Ld,
audio: Rd,
video: Pd,
ol: Bd,
li: Fd,
a: Vd,
button: Wd,
input: qd,
textarea: Hd,
select: Ud,
option: Xd,
table: Gd,
tr: Kd,
th: Yd,
td: Qd,
colGroup: Jd,
col: Zd,
form: $d,
iframe: ep,
img: tp
}
, CT = Sg()
, _T = l.forwardRef((function(e, t) {
var n = e.checked
, r = void 0 !== n && n
, i = e.className
, o = e.theme
, a = e.styles
, s = e.useFastIcons
, c = void 0 === s || s
, u = CT(a, {
theme: o,
className: i,
checked: r
})
, d = c ? lp : Pg;
return l.createElement("div", {
className: u.root,
ref: t
}, l.createElement(d, {
iconName: "CircleRing",
className: u.circle
}), l.createElement(d, {
iconName: "StatusCircleCheckmark",
className: u.check
}))
}
));
_T.displayName = "CheckBase";
var MT, ST, AT = {
root: "ms-Check",
circle: "ms-Check-circle",
check: "ms-Check-check",
checkHost: "ms-Check-checkHost"
}, TT = jg(_T, (function(e) {
var t, n, r, i, o, a = e.height, l = void 0 === a ? e.checkBoxHeight || "18px" : a, s = e.checked, c = e.className, u = e.theme, d = u.palette, p = u.semanticColors, h = u.fonts, f = vp(u), b = Vi(AT, u), g = {
fontSize: l,
position: "absolute",
left: 0,
top: 0,
width: l,
height: l,
textAlign: "center",
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
verticalAlign: "middle"
};
return {
root: [b.root, h.medium, {
lineHeight: "1",
width: l,
height: l,
verticalAlign: "top",
position: "relative",
userSelect: "none",
selectors: (t = {
":before": {
content: '""',
position: "absolute",
top: "1px",
right: "1px",
bottom: "1px",
left: "1px",
borderRadius: "50%",
opacity: 1,
background: p.bodyBackground
}
},
t["." + b.checkHost + ":hover &, ." + b.checkHost + ":focus &, &:hover, &:focus"] = {
opacity: 1
},
t)
}, s && ["is-checked", {
selectors: {
":before": {
background: d.themePrimary,
opacity: 1,
selectors: (n = {},
n[vi] = {
background: "Window"
},
n)
}
}
}], c],
circle: [b.circle, g, {
color: d.neutralSecondary,
selectors: (r = {},
r[vi] = {
color: "WindowText"
},
r)
}, s && {
color: d.white
}],
check: [b.check, g, {
opacity: 0,
color: d.neutralSecondary,
fontSize: gi.medium,
left: f ? "-0.5px" : ".5px",
top: "-1px",
selectors: (i = {
":hover": {
opacity: 1
}
},
i[vi] = Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
}, s && {
opacity: 1,
color: d.white,
fontWeight: 900,
selectors: (o = {},
o[vi] = {
border: "none",
color: "WindowText"
},
o)
}],
checkHost: b.checkHost
}
}
), void 0, {
scope: "Check"
}, !0), ET = {
root: "ms-DetailsRow",
compact: "ms-DetailsList--Compact",
cell: "ms-DetailsRow-cell",
cellAnimation: "ms-DetailsRow-cellAnimation",
cellCheck: "ms-DetailsRow-cellCheck",
check: "ms-DetailsRow-check",
cellMeasurer: "ms-DetailsRow-cellMeasurer",
listCellFirstChild: "ms-List-cell:first-child",
isContentUnselectable: "is-contentUnselectable",
isSelected: "is-selected",
isCheckVisible: "is-check-visible",
isRowHeader: "is-row-header",
fields: "ms-DetailsRow-fields"
}, IT = {
cellLeftPadding: 12,
cellRightPadding: 8,
cellExtraRightPadding: 24
}, NT = {
rowHeight: 42,
compactRowHeight: 32
}, zT = Object(zn.a)(Object(zn.a)({}, NT), {
rowVerticalPadding: 11,
compactRowVerticalPadding: 6
}), DT = {
tooltipHost: "ms-TooltipHost",
root: "ms-DetailsHeader",
cell: "ms-DetailsHeader-cell",
cellIsCheck: "ms-DetailsHeader-cellIsCheck",
collapseButton: "ms-DetailsHeader-collapseButton",
isCollapsed: "is-collapsed",
isAllSelected: "is-allSelected",
isSelectAllHidden: "is-selectAllHidden",
isResizingColumn: "is-resizingColumn",
cellSizer: "ms-DetailsHeader-cellSizer",
isResizing: "is-resizing",
dropHintCircleStyle: "ms-DetailsHeader-dropHintCircleStyle",
dropHintCaretStyle: "ms-DetailsHeader-dropHintCaretStyle",
dropHintLineStyle: "ms-DetailsHeader-dropHintLineStyle",
cellTitle: "ms-DetailsHeader-cellTitle",
cellName: "ms-DetailsHeader-cellName",
filterChevron: "ms-DetailsHeader-filterChevron",
gripperBarVertical: "ms-DetailsColumn-gripperBarVertical",
checkTooltip: "ms-DetailsHeader-checkTooltip",
check: "ms-DetailsHeader-check"
}, LT = function(e) {
var t = e.theme
, n = e.cellStyleProps
, r = void 0 === n ? IT : n
, i = t.semanticColors;
return [Vi(DT, t).cell, Mi(t), {
color: i.bodyText,
position: "relative",
display: "inline-block",
boxSizing: "border-box",
padding: "0 " + r.cellRightPadding + "px 0 " + r.cellLeftPadding + "px",
lineHeight: "inherit",
margin: "0",
height: 42,
verticalAlign: "top",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
textAlign: "left"
}]
}, RT = {
root: "ms-DetailsRow-check",
isDisabled: "ms-DetailsRow-check--isDisabled",
isHeader: "ms-DetailsRow-check--isHeader"
}, PT = "change";
!function(e) {
e[e.none = 0] = "none",
e[e.single = 1] = "single",
e[e.multiple = 2] = "multiple"
}(MT || (MT = {})),
function(e) {
e[e.horizontal = 0] = "horizontal",
e[e.vertical = 1] = "vertical"
}(ST || (ST = {}));
var BT = Sg()
, FT = l.memo((function(e) {
return l.createElement(TT, {
theme: e.theme,
checked: e.checked,
className: e.className,
useFastIcons: !0
})
}
));
function VT(e) {
return l.createElement(TT, {
checked: e.checked
})
}
function WT(e) {
return l.createElement(FT, {
theme: e.theme,
checked: e.checked
})
}
var qT, HT = jg((function(e) {
var t = e.isVisible
, n = void 0 !== t && t
, r = e.canSelect
, i = void 0 !== r && r
, o = e.anySelected
, a = void 0 !== o && o
, s = e.selected
, c = void 0 !== s && s
, u = e.selectionMode
, d = e.isHeader
, p = void 0 !== d && d
, h = e.className
, f = (e.checkClassName,
e.styles)
, b = e.theme
, g = e.compact
, m = e.onRenderDetailsCheckbox
, v = e.useFastIcons
, y = void 0 === v || v
, x = Object(zn.d)(e, ["isVisible", "canSelect", "anySelected", "selected", "selectionMode", "isHeader", "className", "checkClassName", "styles", "theme", "compact", "onRenderDetailsCheckbox", "useFastIcons"])
, O = y ? WT : VT
, j = m ? qg(m, O) : O
, k = BT(f, {
theme: b,
canSelect: i,
selected: c,
anySelected: a,
className: h,
isHeader: p,
isVisible: n,
compact: g
})
, w = {
checked: c,
theme: b
}
, C = function(e, t, n) {
return rp(t, wT.div || Dd, ["aria-label", "aria-labelledby", "aria-describedby"])
}(0, x)
, _ = u === MT.single ? "radio" : "checkbox";
return i ? l.createElement("div", Object(zn.a)({}, x, {
role: _,
className: ip(k.root, k.check),
"aria-checked": c,
"data-selection-toggle": !0,
"data-automationid": "DetailsRowCheck",
tabIndex: -1
}), j(w)) : l.createElement("div", Object(zn.a)({}, C, {
className: ip(k.root, k.check)
}))
}
), (function(e) {
var t = e.theme
, n = e.className
, r = e.isHeader
, i = e.selected
, o = e.anySelected
, a = e.canSelect
, l = e.compact
, s = e.isVisible
, c = Vi(RT, t)
, u = r ? 42 : l ? NT.compactRowHeight : NT.rowHeight
, d = s || i || o;
return {
root: [c.root, n],
check: [!a && c.isDisabled, r && c.isHeader, Mi(t), t.fonts.small, AT.checkHost, {
display: "flex",
alignItems: "center",
justifyContent: "center",
cursor: "default",
boxSizing: "border-box",
verticalAlign: "top",
background: "none",
backgroundColor: "transparent",
border: "none",
opacity: d ? 1 : 0,
height: u,
width: 48,
padding: 0,
margin: 0
}],
isDisabled: []
}
}
), void 0, {
scope: "DetailsRowCheck"
}, !0), UT = function() {
function e(e) {
this._selection = e.selection,
this._dragEnterCounts = {},
this._activeTargets = {},
this._lastId = 0,
this._initialized = !1
}
return e.prototype.dispose = function() {
this._events && this._events.dispose()
}
,
e.prototype.subscribe = function(e, t, n) {
var r = this;
if (!this._initialized) {
this._events = new rg(this);
var i = ro();
i && (this._events.on(i.body, "mouseup", this._onMouseUp.bind(this), !0),
this._events.on(i, "mouseup", this._onDocumentMouseUp.bind(this), !0)),
this._initialized = !0
}
var o, a, l, s, c, u, d, p, h, f, b = n.key, g = void 0 === b ? "" + ++this._lastId : b, m = [];
if (n && e) {
var v = n.eventMap
, y = n.context
, x = n.updateDropState
, O = {
root: e,
options: n,
key: g
};
if (p = this._isDraggable(O),
h = this._isDroppable(O),
(p || h) && v)
for (var j = 0, k = v; j < k.length; j++) {
var w = k[j]
, C = {
callback: w.callback.bind(null, y),
eventName: w.eventName
};
m.push(C),
this._events.on(e, C.eventName, C.callback)
}
h && (a = function(e) {
e.isHandled || (e.isHandled = !0,
r._dragEnterCounts[g]--,
0 === r._dragEnterCounts[g] && x(!1, e))
}
,
l = function(e) {
e.preventDefault(),
e.isHandled || (e.isHandled = !0,
r._dragEnterCounts[g]++,
1 === r._dragEnterCounts[g] && x(!0, e))
}
,
s = function(e) {
r._dragEnterCounts[g] = 0,
x(!1, e)
}
,
c = function(e) {
r._dragEnterCounts[g] = 0,
x(!1, e),
n.onDrop && n.onDrop(n.context.data, e)
}
,
u = function(e) {
e.preventDefault(),
n.onDragOver && n.onDragOver(n.context.data, e)
}
,
this._dragEnterCounts[g] = 0,
t.on(e, "dragenter", l),
t.on(e, "dragleave", a),
t.on(e, "dragend", s),
t.on(e, "drop", c),
t.on(e, "dragover", u)),
p && (d = this._onMouseDown.bind(this, O),
s = this._onDragEnd.bind(this, O),
o = function(t) {
var i = n;
i && i.onDragStart && i.onDragStart(i.context.data, i.context.index, r._selection.getSelection(), t),
r._isDragging = !0,
t.dataTransfer && t.dataTransfer.setData("id", e.id)
}
,
t.on(e, "dragstart", o),
t.on(e, "mousedown", d),
t.on(e, "dragend", s)),
f = {
target: O,
dispose: function() {
if (r._activeTargets[g] === f && delete r._activeTargets[g],
e) {
for (var n = 0, i = m; n < i.length; n++) {
var b = i[n];
r._events.off(e, b.eventName, b.callback)
}
h && (t.off(e, "dragenter", l),
t.off(e, "dragleave", a),
t.off(e, "dragend", s),
t.off(e, "dragover", u),
t.off(e, "drop", c)),
p && (t.off(e, "dragstart", o),
t.off(e, "mousedown", d),
t.off(e, "dragend", s))
}
}
},
this._activeTargets[g] = f
}
return {
key: g,
dispose: function() {
f && f.dispose()
}
}
}
,
e.prototype.unsubscribe = function(e, t) {
var n = this._activeTargets[t];
n && n.dispose()
}
,
e.prototype._onDragEnd = function(e, t) {
var n = e.options;
n.onDragEnd && n.onDragEnd(n.context.data, t)
}
,
e.prototype._onMouseUp = function(e) {
if (this._isDragging = !1,
this._dragData) {
for (var t = 0, n = Object.keys(this._activeTargets); t < n.length; t++) {
var r = n[t]
, i = this._activeTargets[r];
i.target.root && (this._events.off(i.target.root, "mousemove"),
this._events.off(i.target.root, "mouseleave"))
}
this._dragData.dropTarget && (rg.raise(this._dragData.dropTarget.root, "dragleave"),
rg.raise(this._dragData.dropTarget.root, "drop"))
}
this._dragData = null
}
,
e.prototype._onDocumentMouseUp = function(e) {
var t = ro();
t && e.target === t.documentElement && this._onMouseUp(e)
}
,
e.prototype._onMouseMove = function(e, t) {
var n = t.buttons
, r = void 0 === n ? 1 : n;
if (this._dragData && 1 !== r)
this._onMouseUp(t);
else {
var i = e.root
, o = e.key;
this._isDragging && this._isDroppable(e) && this._dragData && this._dragData.dropTarget && this._dragData.dropTarget.key !== o && !this._isChild(i, this._dragData.dropTarget.root) && this._dragEnterCounts[this._dragData.dropTarget.key] > 0 && (rg.raise(this._dragData.dropTarget.root, "dragleave"),
rg.raise(i, "dragenter"),
this._dragData.dropTarget = e)
}
}
,
e.prototype._onMouseLeave = function(e, t) {
this._isDragging && this._dragData && this._dragData.dropTarget && this._dragData.dropTarget.key === e.key && (rg.raise(e.root, "dragleave"),
this._dragData.dropTarget = void 0)
}
,
e.prototype._onMouseDown = function(e, t) {
if (0 === t.button)
if (this._isDraggable(e)) {
this._dragData = {
clientX: t.clientX,
clientY: t.clientY,
eventTarget: t.target,
dragTarget: e
};
for (var n = 0, r = Object.keys(this._activeTargets); n < r.length; n++) {
var i = r[n]
, o = this._activeTargets[i];
o.target.root && (this._events.on(o.target.root, "mousemove", this._onMouseMove.bind(this, o.target)),
this._events.on(o.target.root, "mouseleave", this._onMouseLeave.bind(this, o.target)))
}
} else
this._dragData = null
}
,
e.prototype._isChild = function(e, t) {
for (; t && t.parentElement; ) {
if (t.parentElement === e)
return !0;
t = t.parentElement
}
return !1
}
,
e.prototype._isDraggable = function(e) {
var t = e.options;
return !(!t.canDrag || !t.canDrag(t.context.data))
}
,
e.prototype._isDroppable = function(e) {
var t = e.options
, n = this._dragData && this._dragData.dragTarget ? this._dragData.dragTarget.options.context : void 0;
return !(!t.canDrop || !t.canDrop(t.context, n))
}
,
e
}(), XT = Sg(), GT = function(e) {
return function(t) {
return t ? t.column.isIconOnly ? l.createElement("span", {
className: e.accessibleLabel
}, t.column.name) : l.createElement(l.Fragment, null, t.column.name) : null
}
}, KT = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._root = l.createRef(),
n._onRenderFilterIcon = function(e) {
return function(e) {
var t = e.columnProps
, n = Object(zn.d)(e, ["columnProps"])
, r = (null == t ? void 0 : t.useFastIcons) ? lp : Pg;
return l.createElement(r, Object(zn.a)({}, n))
}
}
,
n._onRenderColumnHeaderTooltip = function(e) {
return l.createElement("span", {
className: e.hostClassName
}, e.children)
}
,
n._onColumnClick = function(e) {
var t = n.props
, r = t.onColumnClick
, i = t.column;
i.columnActionsMode !== fT.disabled && (i.onColumnClick && i.onColumnClick(e, i),
r && r(e, i))
}
,
n._onDragStart = function(e, t, r, i) {
var o = n._classNames;
t && (n._updateHeaderDragInfo(t),
n._root.current.classList.add(o.borderWhileDragging),
n._async.setTimeout((function() {
n._root.current && n._root.current.classList.add(o.noBorderWhileDragging)
}
), 20))
}
,
n._onDragEnd = function(e, t) {
var r = n._classNames;
t && n._updateHeaderDragInfo(-1, t),
n._root.current.classList.remove(r.borderWhileDragging),
n._root.current.classList.remove(r.noBorderWhileDragging)
}
,
n._updateHeaderDragInfo = function(e, t) {
n.props.setDraggedItemIndex && n.props.setDraggedItemIndex(e),
n.props.updateDragInfo && n.props.updateDragInfo({
itemIndex: e
}, t)
}
,
n._onColumnContextMenu = function(e) {
var t = n.props
, r = t.onColumnContextMenu
, i = t.column;
i.onColumnContextMenu && (i.onColumnContextMenu(i, e),
e.preventDefault()),
r && (r(i, e),
e.preventDefault())
}
,
n._onRootMouseDown = function(e) {
n.props.isDraggable && 0 === e.button && e.stopPropagation()
}
,
Kb(n),
n._async = new $b(n),
n._events = new rg(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.column
, n = e.columnIndex
, r = e.parentId
, i = e.isDraggable
, o = e.styles
, a = e.theme
, s = e.cellStyleProps
, c = void 0 === s ? IT : s
, u = e.useFastIcons
, d = void 0 === u || u
, p = this.props.onRenderColumnHeaderTooltip
, h = void 0 === p ? this._onRenderColumnHeaderTooltip : p;
this._classNames = XT(o, {
theme: a,
headerClassName: t.headerClassName,
iconClassName: t.iconClassName,
isActionable: t.columnActionsMode !== fT.disabled,
isEmpty: !t.name,
isIconVisible: t.isSorted || t.isGrouped || t.isFiltered,
isPadded: t.isPadded,
isIconOnly: t.isIconOnly,
cellStyleProps: c,
transitionDurationDrag: 200,
transitionDurationDrop: 1500
});
var f = this._classNames
, b = d ? lp : Pg
, g = t.onRenderFilterIcon ? qg(t.onRenderFilterIcon, this._onRenderFilterIcon(this._classNames)) : this._onRenderFilterIcon(this._classNames)
, m = t.onRenderHeader ? qg(t.onRenderHeader, GT(this._classNames)) : GT(this._classNames)
, v = t.columnActionsMode !== fT.disabled && (void 0 !== t.onColumnClick || void 0 !== this.props.onColumnClick)
, y = {
"aria-label": t.isIconOnly ? t.name : void 0,
"aria-labelledby": t.isIconOnly ? void 0 : r + "-" + t.key + "-name",
"aria-describedby": !this.props.onRenderColumnHeaderTooltip && this._hasAccessibleLabel() ? r + "-" + t.key + "-tooltip" : void 0
};
return l.createElement(l.Fragment, null, l.createElement("div", Object(zn.a)({
key: t.key,
ref: this._root,
role: "columnheader"
}, !v && y, {
"aria-sort": t.isSorted ? t.isSortedDescending ? "descending" : "ascending" : "none",
"aria-colindex": n,
"data-is-focusable": v || t.columnActionsMode === fT.disabled ? void 0 : "true",
className: f.root,
"data-is-draggable": i,
draggable: i,
style: {
width: t.calculatedWidth + c.cellLeftPadding + c.cellRightPadding + (t.isPadded ? c.cellExtraRightPadding : 0)
},
"data-automationid": "ColumnsHeaderColumn",
"data-item-key": t.key
}), i && l.createElement(b, {
iconName: "GripperBarVertical",
className: f.gripperBarVerticalStyle
}), h({
hostClassName: f.cellTooltip,
id: r + "-" + t.key + "-tooltip",
setAriaDescribedBy: !1,
column: t,
content: t.columnActionsMode !== fT.disabled ? t.ariaLabel : "",
children: l.createElement("span", Object(zn.a)({
id: r + "-" + t.key,
className: f.cellTitle,
"data-is-focusable": v && t.columnActionsMode !== fT.disabled ? "true" : void 0,
role: v ? "button" : void 0
}, v && y, {
onContextMenu: this._onColumnContextMenu,
onClick: this._onColumnClick,
"aria-haspopup": t.columnActionsMode === fT.hasDropdown ? "menu" : void 0,
"aria-expanded": t.columnActionsMode === fT.hasDropdown ? !!t.isMenuOpen : void 0
}), l.createElement("span", {
id: r + "-" + t.key + "-name",
className: f.cellName
}, (t.iconName || t.iconClassName) && l.createElement(b, {
className: f.iconClassName,
iconName: t.iconName
}), m(this.props)), t.isFiltered && l.createElement(b, {
className: f.nearIcon,
iconName: "Filter"
}), t.isSorted && l.createElement(b, {
className: f.sortIcon,
iconName: t.isSortedDescending ? "SortDown" : "SortUp"
}), t.isGrouped && l.createElement(b, {
className: f.nearIcon,
iconName: "GroupedDescending"
}), t.columnActionsMode === fT.hasDropdown && !t.isIconOnly && g({
"aria-hidden": !0,
columnProps: this.props,
className: f.filterChevron,
iconName: "ChevronDown"
}))
}, this._onRenderColumnHeaderTooltip)), this.props.onRenderColumnHeaderTooltip ? null : this._renderAccessibleLabel())
}
,
t.prototype.componentDidMount = function() {
var e = this;
this.props.dragDropHelper && this.props.isDraggable && this._addDragDropHandling();
var t = this._classNames;
this.props.isDropped && (this._root.current && (this._root.current.classList.add(t.borderAfterDropping),
this._async.setTimeout((function() {
e._root.current && e._root.current.classList.add(t.noBorderAfterDropping)
}
), 20)),
this._async.setTimeout((function() {
e._root.current && (e._root.current.classList.remove(t.borderAfterDropping),
e._root.current.classList.remove(t.noBorderAfterDropping))
}
), 1520))
}
,
t.prototype.componentWillUnmount = function() {
this._dragDropSubscription && (this._dragDropSubscription.dispose(),
delete this._dragDropSubscription),
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.componentDidUpdate = function() {
!this._dragDropSubscription && this.props.dragDropHelper && this.props.isDraggable && this._addDragDropHandling(),
this._dragDropSubscription && !this.props.isDraggable && (this._dragDropSubscription.dispose(),
this._events.off(this._root.current, "mousedown"),
delete this._dragDropSubscription)
}
,
t.prototype._getColumnDragDropOptions = function() {
var e = this
, t = this.props.columnIndex;
return {
selectionIndex: t,
context: {
data: t,
index: t
},
canDrag: function() {
return e.props.isDraggable
},
canDrop: function() {
return !1
},
onDragStart: this._onDragStart,
updateDropState: function() {},
onDrop: function() {},
onDragEnd: this._onDragEnd
}
}
,
t.prototype._hasAccessibleLabel = function() {
var e = this.props.column;
return !!(e.ariaLabel || e.filterAriaLabel || e.sortAscendingAriaLabel || e.sortDescendingAriaLabel || e.groupAriaLabel)
}
,
t.prototype._renderAccessibleLabel = function() {
var e = this.props
, t = e.column
, n = e.parentId
, r = this._classNames;
return this._hasAccessibleLabel() && !this.props.onRenderColumnHeaderTooltip ? l.createElement("label", {
key: t.key + "_label",
id: n + "-" + t.key + "-tooltip",
className: r.accessibleLabel
}, t.ariaLabel, t.isFiltered && t.filterAriaLabel || null, t.isSorted && (t.isSortedDescending ? t.sortDescendingAriaLabel : t.sortAscendingAriaLabel) || null, t.isGrouped && t.groupAriaLabel || null) : null
}
,
t.prototype._addDragDropHandling = function() {
this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getColumnDragDropOptions()),
this._events.on(this._root.current, "mousedown", this._onRootMouseDown)
}
,
t
}(l.Component), YT = {
isActionable: "is-actionable",
cellIsCheck: "ms-DetailsHeader-cellIsCheck",
collapseButton: "ms-DetailsHeader-collapseButton",
isCollapsed: "is-collapsed",
isAllSelected: "is-allSelected",
isSelectAllHidden: "is-selectAllHidden",
isResizingColumn: "is-resizingColumn",
isEmpty: "is-empty",
isIconVisible: "is-icon-visible",
cellSizer: "ms-DetailsHeader-cellSizer",
isResizing: "is-resizing",
dropHintCircleStyle: "ms-DetailsHeader-dropHintCircleStyle",
dropHintLineStyle: "ms-DetailsHeader-dropHintLineStyle",
cellTitle: "ms-DetailsHeader-cellTitle",
cellName: "ms-DetailsHeader-cellName",
filterChevron: "ms-DetailsHeader-filterChevron",
gripperBarVerticalStyle: "ms-DetailsColumn-gripperBar",
nearIcon: "ms-DetailsColumn-nearIcon"
}, QT = jg(KT, (function(e) {
var t, n = e.theme, r = e.headerClassName, i = e.iconClassName, o = e.isActionable, a = e.isEmpty, l = e.isIconVisible, s = e.isPadded, c = e.isIconOnly, u = e.cellStyleProps, d = void 0 === u ? IT : u, p = e.transitionDurationDrag, h = e.transitionDurationDrop, f = n.semanticColors, b = n.palette, g = n.fonts, m = Vi(YT, n), v = {
iconForegroundColor: f.bodySubtext,
headerForegroundColor: f.bodyText,
headerBackgroundColor: f.bodyBackground,
dropdownChevronForegroundColor: b.neutralSecondary,
resizerColor: b.neutralTertiaryAlt
}, y = {
color: v.iconForegroundColor,
opacity: 1,
paddingLeft: 8
}, x = {
outline: "1px solid " + b.themePrimary
}, O = {
outlineColor: "transparent"
};
return {
root: [LT(e), g.small, o && [m.isActionable, {
selectors: {
":hover": {
color: f.bodyText,
background: f.listHeaderBackgroundHovered
},
":active": {
background: f.listHeaderBackgroundPressed
}
}
}], a && [m.isEmpty, {
textOverflow: "clip"
}], l && m.isIconVisible, s && {
paddingRight: d.cellExtraRightPadding + d.cellRightPadding
}, {
selectors: {
':hover i[data-icon-name="GripperBarVertical"]': {
display: "block"
}
}
}, r],
gripperBarVerticalStyle: {
display: "none",
position: "absolute",
textAlign: "left",
color: b.neutralTertiary,
left: 1
},
nearIcon: [m.nearIcon, y],
sortIcon: [y, {
paddingLeft: 4,
position: "relative",
top: 1
}],
iconClassName: [{
color: v.iconForegroundColor,
opacity: 1
}, i],
filterChevron: [m.filterChevron, {
color: v.dropdownChevronForegroundColor,
paddingLeft: 6,
verticalAlign: "middle",
fontSize: g.small.fontSize
}],
cellTitle: [m.cellTitle, Mi(n), Object(zn.a)({
display: "flex",
flexDirection: "row",
justifyContent: "flex-start",
alignItems: "stretch",
boxSizing: "border-box",
overflow: "hidden",
padding: "0 " + d.cellRightPadding + "px 0 " + d.cellLeftPadding + "px"
}, c ? {
alignContent: "flex-end",
maxHeight: "100%",
flexWrap: "wrap-reverse"
} : {})],
cellName: [m.cellName, {
flex: "0 1 auto",
overflow: "hidden",
textOverflow: "ellipsis",
fontWeight: bi.semibold,
fontSize: g.medium.fontSize
}, c && {
selectors: (t = {},
t["." + m.nearIcon] = {
paddingLeft: 0
},
t)
}],
cellTooltip: {
display: "block",
position: "absolute",
top: 0,
left: 0,
bottom: 0,
right: 0
},
accessibleLabel: Ai,
borderWhileDragging: x,
noBorderWhileDragging: [O, {
transition: "outline " + p + "ms ease"
}],
borderAfterDropping: x,
noBorderAfterDropping: [O, {
transition: "outline " + h + "ms ease"
}]
}
}
), void 0, {
scope: "DetailsColumn"
});
!function(e) {
e[e.none = 0] = "none",
e[e.hidden = 1] = "hidden",
e[e.visible = 2] = "visible"
}(qT || (qT = {}));
var JT = Sg()
, ZT = [];
function $T(e, t, n, r) {
return e ? t <= n && t >= r : t >= n && t <= r
}
function eE(e, t, n) {
return e ? t >= n : t <= n
}
function tE(e, t, n) {
return e ? t <= n : t >= n
}
function nE(e) {
e.stopPropagation()
}
var rE = jg(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._rootElement = l.createRef(),
n._rootComponent = l.createRef(),
n._draggedColumnIndex = -1,
n._dropHintDetails = {},
n._updateDroppingState = function(e, t) {
n._draggedColumnIndex >= 0 && "drop" !== t.type && !e && n._resetDropHints()
}
,
n._onDragOver = function(e, t) {
n._draggedColumnIndex >= 0 && (t.stopPropagation(),
n._computeDropHintToBeShown(t.clientX))
}
,
n._onDrop = function(e, t) {
var r = n._getColumnReorderProps();
if (n._draggedColumnIndex >= 0 && t) {
var i = n._draggedColumnIndex > n._currentDropHintIndex ? n._currentDropHintIndex : n._currentDropHintIndex - 1
, o = n._isValidCurrentDropHintIndex();
if (t.stopPropagation(),
o)
if (n._onDropIndexInfo.sourceIndex = n._draggedColumnIndex,
n._onDropIndexInfo.targetIndex = i,
r.onColumnDrop) {
var a = {
draggedIndex: n._draggedColumnIndex,
targetIndex: i
};
r.onColumnDrop(a)
} else
r.handleColumnReorder && r.handleColumnReorder(n._draggedColumnIndex, i)
}
n._resetDropHints(),
n._dropHintDetails = {},
n._draggedColumnIndex = -1
}
,
n._updateDragInfo = function(e, t) {
var r = n._getColumnReorderProps()
, i = e.itemIndex;
if (i >= 0)
n._draggedColumnIndex = n._isCheckboxColumnHidden() ? i - 1 : i - 2,
n._getDropHintPositions(),
r.onColumnDragStart && r.onColumnDragStart(!0);
else if (t && n._draggedColumnIndex >= 0 && (n._resetDropHints(),
n._draggedColumnIndex = -1,
n._dropHintDetails = {},
r.onColumnDragEnd)) {
var o = n._isEventOnHeader(t);
r.onColumnDragEnd({
dropLocation: o
}, t)
}
}
,
n._getDropHintPositions = function() {
for (var e, t = n.props.columns, r = void 0 === t ? ZT : t, i = n._getColumnReorderProps(), o = 0, a = 0, l = i.frozenColumnCountFromStart || 0, s = i.frozenColumnCountFromEnd || 0, c = l; c < r.length - s + 1; c++)
if (n._rootElement.current) {
var u = n._rootElement.current.querySelectorAll("#columnDropHint_" + c)[0];
if (u)
if (c === l)
o = u.offsetLeft,
a = u.offsetLeft,
e = u;
else {
var d = (u.offsetLeft + o) / 2;
n._dropHintDetails[c - 1] = {
originX: o,
startX: a,
endX: d,
dropHintElementRef: e
},
a = d,
e = u,
o = u.offsetLeft,
c === r.length - s && (n._dropHintDetails[c] = {
originX: o,
startX: a,
endX: u.offsetLeft,
dropHintElementRef: e
})
}
}
}
,
n._computeDropHintToBeShown = function(e) {
var t = vp(n.props.theme);
if (n._rootElement.current) {
var r = e - n._rootElement.current.getBoundingClientRect().left
, i = n._currentDropHintIndex;
if (n._isValidCurrentDropHintIndex() && $T(t, r, n._dropHintDetails[i].startX, n._dropHintDetails[i].endX))
return;
var o = n.props.columns
, a = void 0 === o ? ZT : o
, l = n._getColumnReorderProps()
, s = l.frozenColumnCountFromStart || 0
, c = l.frozenColumnCountFromEnd || 0
, u = s
, d = a.length - c
, p = -1;
if (eE(t, r, n._dropHintDetails[u].endX) ? p = u : tE(t, r, n._dropHintDetails[d].startX) ? p = d : n._isValidCurrentDropHintIndex() && (n._dropHintDetails[i + 1] && $T(t, r, n._dropHintDetails[i + 1].startX, n._dropHintDetails[i + 1].endX) ? p = i + 1 : n._dropHintDetails[i - 1] && $T(t, r, n._dropHintDetails[i - 1].startX, n._dropHintDetails[i - 1].endX) && (p = i - 1)),
-1 === p)
for (var h = s, f = d; h < f; ) {
var b = Math.ceil((f + h) / 2);
if ($T(t, r, n._dropHintDetails[b].startX, n._dropHintDetails[b].endX)) {
p = b;
break
}
eE(t, r, n._dropHintDetails[b].originX) ? f = b : tE(t, r, n._dropHintDetails[b].originX) && (h = b)
}
p === n._draggedColumnIndex || p === n._draggedColumnIndex + 1 ? n._isValidCurrentDropHintIndex() && n._resetDropHints() : i !== p && p >= 0 && (n._resetDropHints(),
n._updateDropHintElement(n._dropHintDetails[p].dropHintElementRef, "inline-block"),
n._currentDropHintIndex = p)
}
}
,
n._renderColumnSizer = function(e) {
var t, r = e.columnIndex, i = n.props.columns, o = void 0 === i ? ZT : i, a = o[r], s = n.state.columnResizeDetails, c = n._classNames;
return a.isResizable ? l.createElement("div", {
key: a.key + "_sizer",
"aria-hidden": !0,
role: "button",
"data-is-focusable": !1,
onClick: nE,
"data-sizer-index": r,
onBlur: n._onSizerBlur,
className: ip(c.cellSizer, r < o.length - 1 ? c.cellSizerStart : c.cellSizerEnd, (t = {},
t[c.cellIsResizing] = s && s.columnIndex === r,
t)),
onDoubleClick: n._onSizerDoubleClick.bind(n, r)
}) : null
}
,
n._onRenderColumnHeaderTooltip = function(e) {
return l.createElement("span", {
className: e.hostClassName
}, e.children)
}
,
n._onSelectAllClicked = function() {
var e = n.props.selection;
e && e.toggleAllSelected()
}
,
n._onRootMouseDown = function(e) {
var t = e.target.getAttribute("data-sizer-index")
, r = Number(t)
, i = n.props.columns
, o = void 0 === i ? ZT : i;
null !== t && 0 === e.button && (n.setState({
columnResizeDetails: {
columnIndex: r,
columnMinWidth: o[r].calculatedWidth,
originX: e.clientX
}
}),
e.preventDefault(),
e.stopPropagation())
}
,
n._onRootMouseMove = function(e) {
var t = n.state
, r = t.columnResizeDetails
, i = t.isSizing;
r && !i && e.clientX !== r.originX && n.setState({
isSizing: !0
})
}
,
n._onRootKeyDown = function(e) {
var t = n.state
, r = t.columnResizeDetails
, i = t.isSizing
, o = n.props
, a = o.columns
, l = void 0 === a ? ZT : a
, s = o.onColumnResized
, c = e.target.getAttribute("data-sizer-index");
if (c && !i) {
var u = Number(c);
if (r) {
var d = void 0;
e.which === cp ? (n.setState({
columnResizeDetails: void 0
}),
e.preventDefault(),
e.stopPropagation()) : e.which === hp ? d = vp(n.props.theme) ? 1 : -1 : e.which === bp && (d = vp(n.props.theme) ? -1 : 1),
d && (e.shiftKey || (d *= 10),
n.setState({
columnResizeDetails: Object(zn.a)(Object(zn.a)({}, r), {
columnMinWidth: r.columnMinWidth + d
})
}),
s && s(l[u], r.columnMinWidth + d, u),
e.preventDefault(),
e.stopPropagation())
} else
e.which === cp && (n.setState({
columnResizeDetails: {
columnIndex: u,
columnMinWidth: l[u].calculatedWidth
}
}),
e.preventDefault(),
e.stopPropagation())
}
}
,
n._onSizerMouseMove = function(e) {
var t = e.buttons
, r = n.props
, i = r.onColumnIsSizingChanged
, o = r.onColumnResized
, a = r.columns
, l = void 0 === a ? ZT : a
, s = n.state.columnResizeDetails;
if (void 0 === t || 1 === t) {
if (e.clientX !== s.originX && i && i(l[s.columnIndex], !0),
o) {
var c = e.clientX - s.originX;
vp(n.props.theme) && (c = -c),
o(l[s.columnIndex], s.columnMinWidth + c, s.columnIndex)
}
} else
n._onSizerMouseUp(e)
}
,
n._onSizerBlur = function(e) {
n.state.columnResizeDetails && n.setState({
columnResizeDetails: void 0,
isSizing: !1
})
}
,
n._onSizerMouseUp = function(e) {
var t = n.props
, r = t.columns
, i = void 0 === r ? ZT : r
, o = t.onColumnIsSizingChanged
, a = n.state.columnResizeDetails;
n.setState({
columnResizeDetails: void 0,
isSizing: !1
}),
o && o(i[a.columnIndex], !1)
}
,
n._onToggleCollapseAll = function() {
var e = n.props.onToggleCollapseAll
, t = !n.state.isAllCollapsed;
n.setState({
isAllCollapsed: t
}),
e && e(t)
}
,
Kb(n),
n._events = new rg(n),
n.state = {
columnResizeDetails: void 0,
isAllCollapsed: n.props.isAllCollapsed,
isAllSelected: !!n.props.selection && n.props.selection.isAllSelected()
},
n._onDropIndexInfo = {
sourceIndex: -1,
targetIndex: -1
},
n._id = lg("header"),
n._currentDropHintIndex = -1,
n._dragDropHelper = new UT({
selection: {
getSelection: function() {}
},
minimumPixelsForDrag: n.props.minimumPixelsForDrag
}),
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
var e = this.props.selection;
this._events.on(e, PT, this._onSelectionChanged),
this._rootElement.current && (this._events.on(this._rootElement.current, "mousedown", this._onRootMouseDown),
this._events.on(this._rootElement.current, "keydown", this._onRootKeyDown),
this._getColumnReorderProps() && (this._subscriptionObject = this._dragDropHelper.subscribe(this._rootElement.current, this._events, this._getHeaderDragDropOptions())))
}
,
t.prototype.componentDidUpdate = function(e) {
if (this._getColumnReorderProps() ? !this._subscriptionObject && this._rootElement.current && (this._subscriptionObject = this._dragDropHelper.subscribe(this._rootElement.current, this._events, this._getHeaderDragDropOptions())) : this._subscriptionObject && (this._subscriptionObject.dispose(),
delete this._subscriptionObject),
this.props !== e && this._onDropIndexInfo.sourceIndex >= 0 && this._onDropIndexInfo.targetIndex >= 0) {
var t = e.columns
, n = void 0 === t ? ZT : t
, r = this.props.columns
, i = void 0 === r ? ZT : r;
n[this._onDropIndexInfo.sourceIndex].key === i[this._onDropIndexInfo.targetIndex].key && (this._onDropIndexInfo = {
sourceIndex: -1,
targetIndex: -1
})
}
this.props.isAllCollapsed !== e.isAllCollapsed && this.setState({
isAllCollapsed: this.props.isAllCollapsed
})
}
,
t.prototype.componentWillUnmount = function() {
this._subscriptionObject && (this._subscriptionObject.dispose(),
delete this._subscriptionObject),
this._dragDropHelper.dispose(),
this._events.dispose()
}
,
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.columns
, r = void 0 === n ? ZT : n
, i = t.ariaLabel
, o = t.ariaLabelForToggleAllGroupsButton
, a = t.ariaLabelForSelectAllCheckbox
, s = t.selectAllVisibility
, c = t.ariaLabelForSelectionColumn
, u = t.indentWidth
, d = t.onColumnClick
, p = t.onColumnContextMenu
, h = t.onRenderColumnHeaderTooltip
, f = void 0 === h ? this._onRenderColumnHeaderTooltip : h
, b = t.styles
, g = t.selectionMode
, m = t.theme
, v = t.onRenderDetailsCheckbox
, y = t.groupNestingDepth
, x = t.useFastIcons
, O = t.checkboxVisibility
, j = t.className
, k = this.state
, w = k.isAllSelected
, C = k.columnResizeDetails
, _ = k.isSizing
, M = k.isAllCollapsed
, S = s !== qT.none
, A = s === qT.hidden
, T = O === vT.always
, E = this._getColumnReorderProps()
, I = E && E.frozenColumnCountFromStart ? E.frozenColumnCountFromStart : 0
, N = E && E.frozenColumnCountFromEnd ? E.frozenColumnCountFromEnd : 0;
this._classNames = JT(b, {
theme: m,
isAllSelected: w,
isSelectAllHidden: s === qT.hidden,
isResizingColumn: !!C && _,
isSizing: _,
isAllCollapsed: M,
isCheckboxHidden: A,
className: j
});
var z = this._classNames
, D = x ? lp : Pg
, L = vp(m);
return l.createElement(Kv, {
role: "row",
"aria-label": i,
className: z.root,
componentRef: this._rootComponent,
elementRef: this._rootElement,
onMouseMove: this._onRootMouseMove,
"data-automationid": "DetailsHeader",
direction: Hg.horizontal
}, S ? [l.createElement("div", {
key: "__checkbox",
className: z.cellIsCheck,
"aria-labelledby": this._id + "-checkTooltip",
onClick: A ? void 0 : this._onSelectAllClicked,
"aria-colindex": 1,
role: "columnheader"
}, f({
hostClassName: z.checkTooltip,
id: this._id + "-checkTooltip",
setAriaDescribedBy: !1,
content: a,
children: l.createElement(HT, {
id: this._id + "-check",
"aria-label": g === MT.multiple ? a : c,
"data-is-focusable": !A || void 0,
isHeader: !0,
selected: w,
anySelected: !1,
canSelect: !A,
className: z.check,
onRenderDetailsCheckbox: v,
useFastIcons: x,
isVisible: T
})
}, this._onRenderColumnHeaderTooltip)), this.props.onRenderColumnHeaderTooltip ? null : a && !A ? l.createElement("label", {
key: "__checkboxLabel",
id: this._id + "-checkTooltip",
className: z.accessibleLabel,
"aria-hidden": !0
}, a) : c && A ? l.createElement("label", {
key: "__checkboxLabel",
id: this._id + "-checkTooltip",
className: z.accessibleLabel,
"aria-hidden": !0
}, c) : null] : null, y > 0 && this.props.collapseAllVisibility === jT.visible ? l.createElement("div", {
className: z.cellIsGroupExpander,
onClick: this._onToggleCollapseAll,
"data-is-focusable": !0,
"aria-label": o,
"aria-expanded": !M,
role: "columnheader"
}, l.createElement(D, {
className: z.collapseButton,
iconName: L ? "ChevronLeftMed" : "ChevronRightMed"
})) : null, l.createElement(kT, {
indentWidth: u,
role: "gridcell",
count: y - 1
}), r.map((function(t, n) {
var i = !!E && n >= I && n < r.length - N;
return [E && (i || n === r.length - N) && e._renderDropHint(n), l.createElement(QT, {
column: t,
styles: t.styles,
key: t.key,
columnIndex: (S ? 2 : 1) + n,
parentId: e._id,
isDraggable: i,
updateDragInfo: e._updateDragInfo,
dragDropHelper: e._dragDropHelper,
onColumnClick: d,
onColumnContextMenu: p,
onRenderColumnHeaderTooltip: e.props.onRenderColumnHeaderTooltip,
isDropped: e._onDropIndexInfo.targetIndex === n,
cellStyleProps: e.props.cellStyleProps,
useFastIcons: x
}), e._renderColumnDivider(n)]
}
)), E && 0 === N && this._renderDropHint(r.length), _ && l.createElement(Px, null, l.createElement("div", {
className: z.sizingOverlay,
onMouseMove: this._onSizerMouseMove,
onMouseUp: this._onSizerMouseUp
})))
}
,
t.prototype.focus = function() {
var e;
return !!(null === (e = this._rootComponent.current) || void 0 === e ? void 0 : e.focus())
}
,
t.prototype._getColumnReorderProps = function() {
var e = this.props
, t = e.columnReorderOptions;
return e.columnReorderProps || t && Object(zn.a)(Object(zn.a)({}, t), {
onColumnDragEnd: void 0
})
}
,
t.prototype._getHeaderDragDropOptions = function() {
return {
selectionIndex: 1,
context: {
data: this,
index: 0
},
canDrag: function() {
return !1
},
canDrop: function() {
return !0
},
onDragStart: function() {},
updateDropState: this._updateDroppingState,
onDrop: this._onDrop,
onDragEnd: function() {},
onDragOver: this._onDragOver
}
}
,
t.prototype._isValidCurrentDropHintIndex = function() {
return this._currentDropHintIndex >= 0
}
,
t.prototype._isCheckboxColumnHidden = function() {
var e = this.props
, t = e.selectionMode
, n = e.checkboxVisibility;
return t === MT.none || n === vT.hidden
}
,
t.prototype._resetDropHints = function() {
this._currentDropHintIndex >= 0 && (this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef, "none"),
this._currentDropHintIndex = -1)
}
,
t.prototype._updateDropHintElement = function(e, t) {
e.childNodes[1].style.display = t,
e.childNodes[0].style.display = t
}
,
t.prototype._isEventOnHeader = function(e) {
if (this._rootElement.current) {
var t = this._rootElement.current.getBoundingClientRect();
if (e.clientX > t.left && e.clientX < t.right && e.clientY > t.top && e.clientY < t.bottom)
return gT.header
}
}
,
t.prototype._renderColumnDivider = function(e) {
var t = this.props.columns
, n = (void 0 === t ? ZT : t)[e]
, r = n.onRenderDivider;
return r ? r({
column: n,
columnIndex: e
}, this._renderColumnSizer) : this._renderColumnSizer({
column: n,
columnIndex: e
})
}
,
t.prototype._renderDropHint = function(e) {
var t = this._classNames
, n = this.props.useFastIcons ? lp : Pg;
return l.createElement("div", {
key: "dropHintKey",
className: t.dropHintStyle,
id: "columnDropHint_" + e
}, l.createElement("div", {
role: "presentation",
key: "dropHintCircleKey",
className: t.dropHintCaretStyle,
"data-is-focusable": !1,
"data-sizer-index": e,
"aria-hidden": !0
}, l.createElement(n, {
iconName: "CircleShapeSolid"
})), l.createElement("div", {
key: "dropHintLineKey",
"aria-hidden": !0,
"data-is-focusable": !1,
"data-sizer-index": e,
className: t.dropHintLineStyle
}))
}
,
t.prototype._onSizerDoubleClick = function(e, t) {
var n = this.props
, r = n.onColumnAutoResized
, i = n.columns;
r && r((void 0 === i ? ZT : i)[e], e)
}
,
t.prototype._onSelectionChanged = function() {
var e = !!this.props.selection && this.props.selection.isAllSelected();
this.state.isAllSelected !== e && this.setState({
isAllSelected: e
})
}
,
t.defaultProps = {
selectAllVisibility: qT.visible,
collapseAllVisibility: jT.visible,
useFastIcons: !0
},
t
}(l.Component), (function(e) {
var t, n, r, i, o = e.theme, a = e.className, l = e.isAllSelected, s = e.isResizingColumn, c = e.isSizing, u = e.isAllCollapsed, d = e.cellStyleProps, p = void 0 === d ? IT : d, h = o.semanticColors, f = o.palette, b = o.fonts, g = Vi(DT, o), m = {
iconForegroundColor: h.bodySubtext,
headerForegroundColor: h.bodyText,
headerBackgroundColor: h.bodyBackground,
resizerColor: f.neutralTertiaryAlt
}, v = {
opacity: 1,
transition: "opacity 0.3s linear"
}, y = LT(e);
return {
root: [g.root, b.small, {
display: "inline-block",
background: m.headerBackgroundColor,
position: "relative",
minWidth: "100%",
verticalAlign: "top",
height: 42,
lineHeight: 42,
whiteSpace: "nowrap",
boxSizing: "content-box",
paddingBottom: "1px",
paddingTop: "16px",
borderBottom: "1px solid " + h.bodyDivider,
cursor: "default",
userSelect: "none",
selectors: (t = {},
t["&:hover ." + g.check] = {
opacity: 1
},
t["& ." + g.tooltipHost + " ." + g.checkTooltip] = {
display: "block"
},
t)
}, l && g.isAllSelected, s && g.isResizingColumn, a],
check: [g.check, {
height: 42
}, {
selectors: (n = {},
n[".ms-Fabric--isFocusVisible &:focus"] = {
opacity: 1
},
n)
}],
cellWrapperPadded: {
paddingRight: p.cellExtraRightPadding + p.cellRightPadding
},
cellIsCheck: [y, g.cellIsCheck, {
position: "relative",
padding: 0,
margin: 0,
display: "inline-flex",
alignItems: "center",
border: "none"
}, l && {
opacity: 1
}],
cellIsGroupExpander: [y, {
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
fontSize: b.small.fontSize,
padding: 0,
border: "none",
width: 36,
color: f.neutralSecondary,
selectors: {
":hover": {
backgroundColor: f.neutralLighter
},
":active": {
backgroundColor: f.neutralLight
}
}
}],
cellIsActionable: {
selectors: {
":hover": {
color: h.bodyText,
background: h.listHeaderBackgroundHovered
},
":active": {
background: h.listHeaderBackgroundPressed
}
}
},
cellIsEmpty: {
textOverflow: "clip"
},
cellSizer: [g.cellSizer, {
selectors: {
"&::-moz-focus-inner": {
border: 0
},
"&": {
outline: "transparent"
}
}
}, {
display: "inline-block",
position: "relative",
cursor: "ew-resize",
bottom: 0,
top: 0,
overflow: "hidden",
height: "inherit",
background: "transparent",
zIndex: 1,
width: 16,
selectors: (r = {
":after": {
content: '""',
position: "absolute",
top: 0,
bottom: 0,
width: 1,
background: m.resizerColor,
opacity: 0,
left: "50%"
},
":focus:after": v,
":hover:after": v
},
r["&." + g.isResizing + ":after"] = [v, {
boxShadow: "0 0 5px 0 rgba(0, 0, 0, 0.4)"
}],
r)
}],
cellIsResizing: g.isResizing,
cellSizerStart: {
margin: "0 -8px"
},
cellSizerEnd: {
margin: 0,
marginLeft: -16
},
collapseButton: [g.collapseButton, {
transformOrigin: "50% 50%",
transition: "transform .1s linear"
}, u ? [g.isCollapsed, {
transform: "rotate(0deg)"
}] : {
transform: vp(o) ? "rotate(-90deg)" : "rotate(90deg)"
}],
checkTooltip: g.checkTooltip,
sizingOverlay: c && {
position: "absolute",
left: 0,
top: 0,
right: 0,
bottom: 0,
cursor: "ew-resize",
background: "rgba(255, 255, 255, 0)",
selectors: (i = {},
i[vi] = Object(zn.a)({
background: "transparent"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
},
accessibleLabel: Ai,
dropHintCircleStyle: [g.dropHintCircleStyle, {
display: "inline-block",
visibility: "hidden",
position: "absolute",
bottom: 0,
height: 9,
width: 9,
borderRadius: "50%",
marginLeft: -5,
top: 34,
overflow: "visible",
zIndex: 10,
border: "1px solid " + f.themePrimary,
background: f.white
}],
dropHintCaretStyle: [g.dropHintCaretStyle, {
display: "none",
position: "absolute",
top: -28,
left: -6.5,
fontSize: b.medium.fontSize,
color: f.themePrimary,
overflow: "visible",
zIndex: 10
}],
dropHintLineStyle: [g.dropHintLineStyle, {
display: "none",
position: "absolute",
bottom: 0,
top: 0,
overflow: "hidden",
height: 42,
width: 1,
background: f.themePrimary,
zIndex: 10
}],
dropHintStyle: {
display: "inline-block",
position: "absolute"
}
}
}
), void 0, {
scope: "DetailsHeader"
})
, iE = function(e) {
var t = e.columns
, n = e.columnStartIndex
, r = e.rowClassNames
, i = e.cellStyleProps
, o = void 0 === i ? IT : i
, a = e.item
, s = e.itemIndex
, c = e.onRenderItemColumn
, u = e.getCellValueKey
, d = e.cellsByColumn
, p = e.enableUpdateAnimations
, h = e.rowHeaderId
, f = l.useRef()
, b = f.current || (f.current = {});
return l.createElement("div", {
className: r.fields,
"data-automationid": "DetailsRowFields",
role: "presentation"
}, t.map((function(e, t) {
var i = void 0 === e.calculatedWidth ? "auto" : e.calculatedWidth + o.cellLeftPadding + o.cellRightPadding + (e.isPadded ? o.cellExtraRightPadding : 0)
, f = e.onRender
, g = void 0 === f ? c : f
, m = e.getValueKey
, v = void 0 === m ? u : m
, y = d && e.key in d ? d[e.key] : g ? g(a, s, e) : function(e, t) {
var n = e && t && t.fieldName ? e[t.fieldName] : "";
return null != n || (n = ""),
"boolean" == typeof n ? n.toString() : n
}(a, e)
, x = b[e.key]
, O = p && v ? v(a, s, e) : void 0
, j = !1;
void 0 !== O && void 0 !== x && O !== x && (j = !0),
b[e.key] = O;
var k = e.key + (void 0 !== O ? "-" + O : "");
return l.createElement("div", {
key: k,
id: e.isRowHeader ? h : void 0,
role: e.isRowHeader ? "rowheader" : "gridcell",
"aria-readonly": !0,
"aria-colindex": t + n + 1,
className: ip(e.className, e.isMultiline && r.isMultiline, e.isRowHeader && r.isRowHeader, r.cell, e.isPadded ? r.cellPadded : r.cellUnpadded, j && r.cellAnimation),
style: {
width: i
},
"data-automationid": "DetailsRowCell",
"data-automation-key": e.key
}, y)
}
)))
}
, oE = Sg()
, aE = [];
function lE(e) {
var t, n = e.itemIndex, r = e.selection;
return {
isSelected: !!(null == r ? void 0 : r.isIndexSelected(n)),
isSelectionModal: !!(null === (t = null == r ? void 0 : r.isModal) || void 0 === t ? void 0 : t.call(r))
}
}
var sE = jg(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._root = l.createRef(),
n._cellMeasurer = l.createRef(),
n._focusZone = l.createRef(),
n._onSelectionChanged = function() {
var e = lE(n.props);
eg(e, n.state.selectionState) || n.setState({
selectionState: e
})
}
,
n._updateDroppingState = function(e, t) {
var r = n.state.isDropping
, i = n.props
, o = i.dragDropEvents
, a = i.item;
e ? o.onDragEnter && (n._droppingClassNames = o.onDragEnter(a, t)) : o.onDragLeave && o.onDragLeave(a, t),
r !== e && n.setState({
isDropping: e
})
}
,
Kb(n),
n._events = new rg(n),
n.state = {
selectionState: lE(t),
columnMeasureInfo: void 0,
isDropping: !1
},
n._droppingClassNames = "",
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
return Object(zn.a)(Object(zn.a)({}, t), {
selectionState: lE(e)
})
}
,
t.prototype.componentDidMount = function() {
var e = this.props
, t = e.dragDropHelper
, n = e.selection
, r = e.item
, i = e.onDidMount;
t && this._root.current && (this._dragDropSubscription = t.subscribe(this._root.current, this._events, this._getRowDragDropOptions())),
n && this._events.on(n, PT, this._onSelectionChanged),
i && r && (this._onDidMountCalled = !0,
i(this))
}
,
t.prototype.componentDidUpdate = function(e) {
var t = this.state
, n = this.props
, r = n.item
, i = n.onDidMount
, o = t.columnMeasureInfo;
if (this.props.itemIndex === e.itemIndex && this.props.item === e.item && this.props.dragDropHelper === e.dragDropHelper || (this._dragDropSubscription && (this._dragDropSubscription.dispose(),
delete this._dragDropSubscription),
this.props.dragDropHelper && this._root.current && (this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getRowDragDropOptions()))),
o && o.index >= 0 && this._cellMeasurer.current) {
var a = this._cellMeasurer.current.getBoundingClientRect().width;
o.onMeasureDone(a),
this.setState({
columnMeasureInfo: void 0
})
}
r && i && !this._onDidMountCalled && (this._onDidMountCalled = !0,
i(this))
}
,
t.prototype.componentWillUnmount = function() {
var e = this.props
, t = e.item
, n = e.onWillUnmount;
n && t && n(this),
this._dragDropSubscription && (this._dragDropSubscription.dispose(),
delete this._dragDropSubscription),
this._events.dispose()
}
,
t.prototype.shouldComponentUpdate = function(e, t) {
if (this.props.useReducedRowRenderer) {
var n = lE(e);
return this.state.selectionState.isSelected !== n.isSelected || !eg(this.props, e)
}
return !0
}
,
t.prototype.render = function() {
var e = this.props
, t = e.className
, n = e.columns
, r = void 0 === n ? aE : n
, i = e.dragDropEvents
, o = e.item
, a = e.itemIndex
, s = e.id
, c = e.flatIndexOffset
, u = void 0 === c ? 2 : c
, d = e.onRenderCheck
, p = void 0 === d ? this._onRenderCheck : d
, h = e.onRenderDetailsCheckbox
, f = e.onRenderItemColumn
, b = e.getCellValueKey
, g = e.selectionMode
, m = e.rowWidth
, v = void 0 === m ? 0 : m
, y = e.checkboxVisibility
, x = e.getRowAriaLabel
, O = e.getRowAriaDescription
, j = e.getRowAriaDescribedBy
, k = e.checkButtonAriaLabel
, w = e.checkboxCellClassName
, C = e.rowFieldsAs
, _ = void 0 === C ? iE : C
, M = e.selection
, S = e.indentWidth
, A = e.enableUpdateAnimations
, T = e.compact
, E = e.theme
, I = e.styles
, N = e.cellsByColumn
, z = e.groupNestingDepth
, D = e.useFastIcons
, L = void 0 === D || D
, R = e.cellStyleProps
, P = e.group
, B = e.focusZoneProps
, F = e.disabled
, V = void 0 !== F && F
, W = this.state
, q = W.columnMeasureInfo
, H = W.isDropping
, U = this.state.selectionState
, X = U.isSelected
, G = void 0 !== X && X
, K = U.isSelectionModal
, Y = void 0 !== K && K
, Q = i ? !(!i.canDrag || !i.canDrag(o)) : void 0
, J = H ? this._droppingClassNames || "is-dropping" : ""
, Z = x ? x(o) : void 0
, $ = O ? O(o) : void 0
, ee = j ? j(o) : void 0
, te = !!M && M.canSelectItem(o, a) && !V
, ne = g === MT.multiple
, re = g !== MT.none && y !== vT.hidden
, ie = g === MT.none ? void 0 : G
, oe = P ? a - P.startIndex + 1 : void 0
, ae = P ? P.count : void 0
, le = B ? B.direction : Hg.horizontal;
this._classNames = Object(zn.a)(Object(zn.a)({}, this._classNames), oE(I, {
theme: E,
isSelected: G,
canSelect: !ne,
anySelected: Y,
checkboxCellClassName: w,
droppingClassName: J,
className: t,
compact: T,
enableUpdateAnimations: A,
cellStyleProps: R,
disabled: V
}));
var se = {
isMultiline: this._classNames.isMultiline,
isRowHeader: this._classNames.isRowHeader,
cell: this._classNames.cell,
cellAnimation: this._classNames.cellAnimation,
cellPadded: this._classNames.cellPadded,
cellUnpadded: this._classNames.cellUnpadded,
fields: this._classNames.fields
};
eg(this._rowClassNames || {}, se) || (this._rowClassNames = se);
var ce = l.createElement(_, {
rowClassNames: this._rowClassNames,
rowHeaderId: s + "-header",
cellsByColumn: N,
columns: r,
item: o,
itemIndex: a,
columnStartIndex: (re ? 1 : 0) + (z ? 1 : 0),
onRenderItemColumn: f,
getCellValueKey: b,
enableUpdateAnimations: A,
cellStyleProps: R
})
, ue = this.props.role ? this.props.role : "row";
return this._ariaRowDescriptionId = lg("DetailsRow-description"),
l.createElement(Kv, Object(zn.a)({
"data-is-focusable": !0
}, rp(this.props, np), "boolean" == typeof Q ? {
"data-is-draggable": Q,
draggable: Q
} : {}, B, {
direction: le,
elementRef: this._root,
componentRef: this._focusZone,
role: ue,
"aria-label": Z,
"aria-disabled": V || void 0,
"aria-describedby": $ ? this._ariaRowDescriptionId : ee,
className: this._classNames.root,
"data-selection-index": a,
"data-selection-touch-invoke": !0,
"data-selection-disabled": V || void 0,
"data-item-index": a,
"aria-rowindex": void 0 === oe ? a + u : void 0,
"aria-level": z && z + 1 || void 0,
"aria-posinset": oe,
"aria-setsize": ae,
"data-automationid": "DetailsRow",
style: {
minWidth: v
},
"aria-selected": ie,
allowFocusRoot: !0
}), $ ? l.createElement("span", {
key: "description",
role: "presentation",
hidden: !0,
id: this._ariaRowDescriptionId
}, $) : null, re && l.createElement("div", {
role: "gridcell",
"aria-colindex": 1,
"data-selection-toggle": !0,
className: this._classNames.checkCell
}, p({
id: s ? s + "-checkbox" : void 0,
selected: G,
selectionMode: g,
anySelected: Y,
"aria-label": k,
"aria-labelledby": s ? s + "-checkbox " + s + "-header" : void 0,
canSelect: te,
compact: T,
className: this._classNames.check,
theme: E,
isVisible: y === vT.always,
onRenderDetailsCheckbox: h,
useFastIcons: L
})), l.createElement(kT, {
indentWidth: S,
role: "gridcell",
count: z - (this.props.collapseAllVisibility === jT.hidden ? 1 : 0)
}), o && ce, q && l.createElement("span", {
role: "presentation",
className: ip(this._classNames.cellMeasurer, this._classNames.cell),
ref: this._cellMeasurer
}, l.createElement(_, {
rowClassNames: this._rowClassNames,
rowHeaderId: s + "-header",
columns: [q.column],
item: o,
itemIndex: a,
columnStartIndex: (re ? 1 : 0) + (z ? 1 : 0) + r.length,
onRenderItemColumn: f,
getCellValueKey: b
})), l.createElement("span", {
role: "checkbox",
className: this._classNames.checkCover,
"aria-checked": G,
"data-selection-toggle": !0
}))
}
,
t.prototype.measureCell = function(e, t) {
var n = this.props.columns
, r = void 0 === n ? aE : n
, i = Object(zn.a)({}, r[e]);
i.minWidth = 0,
i.maxWidth = 999999,
delete i.calculatedWidth,
this.setState({
columnMeasureInfo: {
index: e,
column: i,
onMeasureDone: t
}
})
}
,
t.prototype.focus = function(e) {
var t;
return void 0 === e && (e = !1),
!!(null === (t = this._focusZone.current) || void 0 === t ? void 0 : t.focus(e))
}
,
t.prototype._onRenderCheck = function(e) {
return l.createElement(HT, Object(zn.a)({}, e))
}
,
t.prototype._getRowDragDropOptions = function() {
var e = this.props
, t = e.item
, n = e.itemIndex
, r = e.dragDropEvents;
return {
eventMap: e.eventsToRegister,
selectionIndex: n,
context: {
data: t,
index: n
},
canDrag: r.canDrag,
canDrop: r.canDrop,
onDragStart: r.onDragStart,
updateDropState: this._updateDroppingState,
onDrop: r.onDrop,
onDragEnd: r.onDragEnd,
onDragOver: r.onDragOver
}
}
,
t
}(l.Component), (function(e) {
var t, n, r, i, o, a, l, s, c, u, d, p, h = e.theme, f = e.isSelected, b = e.canSelect, g = e.droppingClassName, m = e.anySelected, v = e.isCheckVisible, y = e.checkboxCellClassName, x = e.compact, O = e.className, j = e.cellStyleProps, k = void 0 === j ? IT : j, w = e.enableUpdateAnimations, C = e.disabled, _ = h.palette, M = h.fonts, S = _.neutralPrimary, A = _.white, T = _.neutralSecondary, E = _.neutralLighter, I = _.neutralLight, N = _.neutralDark, z = _.neutralQuaternaryAlt, D = h.semanticColors, L = D.focusBorder, R = D.linkHovered, P = Vi(ET, h), B = {
defaultHeaderText: S,
defaultMetaText: T,
defaultBackground: A,
defaultHoverHeaderText: N,
defaultHoverMetaText: S,
defaultHoverBackground: E,
selectedHeaderText: N,
selectedMetaText: S,
selectedBackground: I,
selectedHoverHeaderText: N,
selectedHoverMetaText: S,
selectedHoverBackground: z,
focusHeaderText: N,
focusMetaText: S,
focusBackground: I,
focusHoverBackground: z
}, F = [Mi(h, {
inset: -1,
borderColor: L,
outlineColor: A,
highContrastStyle: {
top: 2,
right: 2,
bottom: 2,
left: 2
}
}), P.isSelected, {
color: B.selectedMetaText,
background: B.selectedBackground,
borderBottom: "1px solid " + A,
selectors: (t = {
"&:before": {
position: "absolute",
display: "block",
top: -1,
height: 1,
bottom: 0,
left: 0,
right: 0,
content: "",
borderTop: "1px solid " + A
}
},
t["." + P.cell + " > ." + YA.root] = {
color: R
},
t["&:hover"] = {
background: B.selectedHoverBackground,
color: B.selectedHoverMetaText,
selectors: (n = {},
n["." + P.cell + " " + vi] = {
color: "HighlightText",
selectors: {
"> a": {
color: "HighlightText"
}
}
},
n["." + P.isRowHeader] = {
color: B.selectedHoverHeaderText,
selectors: (r = {},
r[vi] = {
color: "HighlightText"
},
r)
},
n[vi] = {
background: "Highlight"
},
n)
},
t["&:focus"] = {
background: B.focusBackground,
selectors: (i = {},
i["." + P.cell] = {
color: B.focusMetaText,
selectors: (o = {},
o[vi] = {
color: "HighlightText",
selectors: {
"> a": {
color: "HighlightText"
}
}
},
o)
},
i["." + P.isRowHeader] = {
color: B.focusHeaderText,
selectors: (a = {},
a[vi] = {
color: "HighlightText"
},
a)
},
i[vi] = {
background: "Highlight"
},
i)
},
t[vi] = Object(zn.a)(Object(zn.a)({
background: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
selectors: {
a: {
color: "HighlightText"
}
}
}),
t["&:focus:hover"] = {
background: B.focusHoverBackground
},
t)
}], V = [P.isContentUnselectable, {
userSelect: "none",
cursor: "default"
}], W = {
minHeight: zT.compactRowHeight,
border: 0
}, q = {
minHeight: zT.compactRowHeight,
paddingTop: zT.compactRowVerticalPadding,
paddingBottom: zT.compactRowVerticalPadding,
paddingLeft: k.cellLeftPadding + "px"
}, H = [Mi(h, {
inset: -1
}), P.cell, {
display: "inline-block",
position: "relative",
boxSizing: "border-box",
minHeight: zT.rowHeight,
verticalAlign: "top",
whiteSpace: "nowrap",
overflow: "hidden",
textOverflow: "ellipsis",
paddingTop: zT.rowVerticalPadding,
paddingBottom: zT.rowVerticalPadding,
paddingLeft: k.cellLeftPadding + "px",
selectors: (l = {
"& > button": {
maxWidth: "100%"
}
},
l["[data-is-focusable='true']"] = Mi(h, {
inset: -1,
borderColor: T,
outlineColor: A
}),
l)
}, f && {
selectors: (s = {},
s[vi] = Object(zn.a)(Object(zn.a)({
background: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
selectors: {
a: {
color: "HighlightText"
}
}
}),
s)
}, x && q, C && {
opacity: .5
}];
return {
root: [P.root, di.fadeIn400, g, h.fonts.small, v && P.isCheckVisible, Mi(h, {
borderColor: L,
outlineColor: A
}), {
borderBottom: "1px solid " + E,
background: B.defaultBackground,
color: B.defaultMetaText,
display: "inline-flex",
minWidth: "100%",
minHeight: zT.rowHeight,
whiteSpace: "nowrap",
padding: 0,
boxSizing: "border-box",
verticalAlign: "top",
textAlign: "left",
selectors: (c = {},
c["." + P.listCellFirstChild + " &:before"] = {
display: "none"
},
c["&:hover"] = {
background: B.defaultHoverBackground,
color: B.defaultHoverMetaText,
selectors: (u = {},
u["." + P.isRowHeader] = {
color: B.defaultHoverHeaderText
},
u["." + P.cell + " > ." + YA.root] = {
color: R
},
u)
},
c["&:hover ." + P.check] = {
opacity: 1
},
c[".ms-Fabric--isFocusVisible &:focus ." + P.check] = {
opacity: 1
},
c[".ms-GroupSpacer"] = {
flexShrink: 0,
flexGrow: 0
},
c)
}, f && F, !b && V, x && W, O],
cellUnpadded: {
paddingRight: k.cellRightPadding + "px"
},
cellPadded: {
paddingRight: k.cellExtraRightPadding + k.cellRightPadding + "px",
selectors: (d = {},
d["&." + P.cellCheck] = {
paddingRight: 0
},
d)
},
cell: H,
cellAnimation: w && ii.slideLeftIn40,
cellMeasurer: [P.cellMeasurer, {
overflow: "visible",
whiteSpace: "nowrap"
}],
checkCell: [H, P.cellCheck, y, {
padding: 0,
paddingTop: 1,
marginTop: -1,
flexShrink: 0
}],
checkCover: {
position: "absolute",
top: -1,
left: 0,
bottom: 0,
right: 0,
display: m ? "block" : "none"
},
fields: [P.fields, {
display: "flex",
alignItems: "stretch"
}],
isRowHeader: [P.isRowHeader, {
color: B.defaultHeaderText,
fontSize: M.medium.fontSize
}, f && {
color: B.selectedHeaderText,
fontWeight: bi.semibold,
selectors: (p = {},
p[vi] = {
color: "HighlightText"
},
p)
}],
isMultiline: [H, {
whiteSpace: "normal",
wordBreak: "break-word",
textOverflow: "clip"
}],
check: [P.check]
}
}
), void 0, {
scope: "DetailsRow"
})
, cE = "data-selection-index"
, uE = "data-selection-toggle"
, dE = "data-selection-invoke"
, pE = "data-selection-all-toggle"
, hE = function(e) {
function t(t) {
var n = e.call(this, t) || this;
n._root = l.createRef(),
n.ignoreNextFocus = function() {
n._handleNextFocus(!1)
}
,
n._onSelectionChange = function() {
var e = n.props.selection
, t = e.isModal && e.isModal();
n.setState({
isModal: t
})
}
,
n._onMouseDownCapture = function(e) {
var t = e.target;
if (document.activeElement === t || Yv(document.activeElement, t)) {
if (Yv(t, n._root.current))
for (; t !== n._root.current; ) {
if (n._hasAttribute(t, dE)) {
n.ignoreNextFocus();
break
}
t = Wb(t)
}
} else
n.ignoreNextFocus()
}
,
n._onFocus = function(e) {
var t = e.target
, r = n.props.selection
, i = n._isCtrlPressed || n._isMetaPressed
, o = n._getSelectionMode();
if (n._shouldHandleFocus && o !== MT.none) {
var a = n._hasAttribute(t, uE)
, l = n._findItemRoot(t);
if (!a && l) {
var s = n._getItemIndex(l);
i ? (r.setIndexSelected(s, r.isIndexSelected(s), !0),
n.props.enterModalOnTouch && n._isTouch && r.setModal && (r.setModal(!0),
n._setIsTouch(!1))) : n.props.isSelectedOnFocus && n._onItemSurfaceClick(e, s)
}
}
n._handleNextFocus(!1)
}
,
n._onMouseDown = function(e) {
n._updateModifiers(e);
var t = e.target
, r = n._findItemRoot(t);
if (!n._isSelectionDisabled(t))
for (; t !== n._root.current && !n._hasAttribute(t, pE); ) {
if (r) {
if (n._hasAttribute(t, uE))
break;
if (n._hasAttribute(t, dE))
break;
if (!(t !== r && !n._shouldAutoSelect(t) || n._isShiftPressed || n._isCtrlPressed || n._isMetaPressed)) {
n._onInvokeMouseDown(e, n._getItemIndex(r));
break
}
if (n.props.disableAutoSelectOnInputElements && ("A" === t.tagName || "BUTTON" === t.tagName || "INPUT" === t.tagName))
return
}
t = Wb(t)
}
}
,
n._onTouchStartCapture = function(e) {
n._setIsTouch(!0)
}
,
n._onClick = function(e) {
var t = n.props.enableTouchInvocationTarget
, r = void 0 !== t && t;
n._updateModifiers(e);
for (var i = e.target, o = n._findItemRoot(i), a = n._isSelectionDisabled(i); i !== n._root.current; ) {
if (n._hasAttribute(i, pE)) {
a || n._onToggleAllClick(e);
break
}
if (o) {
var l = n._getItemIndex(o);
if (n._hasAttribute(i, uE)) {
a || (n._isShiftPressed ? n._onItemSurfaceClick(e, l) : n._onToggleClick(e, l));
break
}
if (n._isTouch && r && n._hasAttribute(i, "data-selection-touch-invoke") || n._hasAttribute(i, dE)) {
n._onInvokeClick(e, l);
break
}
if (i === o) {
a || n._onItemSurfaceClick(e, l);
break
}
if ("A" === i.tagName || "BUTTON" === i.tagName || "INPUT" === i.tagName)
return
}
i = Wb(i)
}
}
,
n._onContextMenu = function(e) {
var t = e.target
, r = n.props
, i = r.onItemContextMenu
, o = r.selection;
if (i) {
var a = n._findItemRoot(t);
if (a) {
var l = n._getItemIndex(a);
n._onInvokeMouseDown(e, l),
i(o.getItems()[l], l, e.nativeEvent) || e.preventDefault()
}
}
}
,
n._onDoubleClick = function(e) {
var t = e.target
, r = n.props.onItemInvoked
, i = n._findItemRoot(t);
if (i && r && !n._isInputElement(t)) {
for (var o = n._getItemIndex(i); t !== n._root.current && !n._hasAttribute(t, uE) && !n._hasAttribute(t, dE); ) {
if (t === i) {
n._onInvokeClick(e, o);
break
}
t = Wb(t)
}
t = Wb(t)
}
}
,
n._onKeyDownCapture = function(e) {
n._updateModifiers(e),
n._handleNextFocus(!0)
}
,
n._onKeyDown = function(e) {
n._updateModifiers(e);
var t = e.target
, r = n._isSelectionDisabled(t)
, i = n.props.selection
, o = 65 === e.which && (n._isCtrlPressed || n._isMetaPressed)
, a = e.which === dp;
if (!n._isInputElement(t)) {
var l = n._getSelectionMode();
if (o && l === MT.multiple && !i.isAllSelected())
return r || i.setAllSelected(!0),
e.stopPropagation(),
void e.preventDefault();
if (a && i.getSelectedCount() > 0)
return r || i.setAllSelected(!1),
e.stopPropagation(),
void e.preventDefault();
var s = n._findItemRoot(t);
if (s)
for (var c = n._getItemIndex(s); t !== n._root.current && !n._hasAttribute(t, uE); ) {
if (n._shouldAutoSelect(t)) {
r || n._onInvokeMouseDown(e, c);
break
}
if (!(e.which !== cp && e.which !== pp || "BUTTON" !== t.tagName && "A" !== t.tagName && "INPUT" !== t.tagName))
return !1;
if (t === s) {
if (e.which === cp)
return n._onInvokeClick(e, c),
void e.preventDefault();
if (e.which === pp)
return r || n._onToggleClick(e, c),
void e.preventDefault();
break
}
t = Wb(t)
}
}
}
,
n._events = new rg(n),
n._async = new $b(n),
Kb(n);
var r = n.props.selection
, i = r.isModal && r.isModal();
return n.state = {
isModal: i
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
var n = e.selection.isModal && e.selection.isModal();
return Object(zn.a)(Object(zn.a)({}, t), {
isModal: n
})
}
,
t.prototype.componentDidMount = function() {
var e = ji(this._root.current);
this._events.on(e, "keydown, keyup", this._updateModifiers, !0),
this._events.on(document, "click", this._findScrollParentAndTryClearOnEmptyClick),
this._events.on(document.body, "touchstart", this._onTouchStartCapture, !0),
this._events.on(document.body, "touchend", this._onTouchStartCapture, !0),
this._events.on(this.props.selection, "change", this._onSelectionChange)
}
,
t.prototype.render = function() {
var e = this.state.isModal;
return l.createElement("div", {
className: ip("ms-SelectionZone", this.props.className, {
"ms-SelectionZone--modal": !!e
}),
ref: this._root,
onKeyDown: this._onKeyDown,
onMouseDown: this._onMouseDown,
onKeyDownCapture: this._onKeyDownCapture,
onClick: this._onClick,
role: "presentation",
onDoubleClick: this._onDoubleClick,
onContextMenu: this._onContextMenu,
onMouseDownCapture: this._onMouseDownCapture,
onFocusCapture: this._onFocus,
"data-selection-is-modal": !!e || void 0
}, this.props.children, l.createElement(bg, null))
}
,
t.prototype.componentDidUpdate = function(e) {
var t = this.props.selection;
t !== e.selection && (this._events.off(e.selection),
this._events.on(t, "change", this._onSelectionChange))
}
,
t.prototype.componentWillUnmount = function() {
this._events.dispose(),
this._async.dispose()
}
,
t.prototype._isSelectionDisabled = function(e) {
if (this._getSelectionMode() === MT.none)
return !0;
for (; e !== this._root.current; ) {
if (this._hasAttribute(e, "data-selection-disabled"))
return !0;
e = Wb(e)
}
return !1
}
,
t.prototype._onToggleAllClick = function(e) {
var t = this.props.selection;
this._getSelectionMode() === MT.multiple && (t.toggleAllSelected(),
e.stopPropagation(),
e.preventDefault())
}
,
t.prototype._onToggleClick = function(e, t) {
var n = this.props.selection
, r = this._getSelectionMode();
if (n.setChangeEvents(!1),
this.props.enterModalOnTouch && this._isTouch && !n.isIndexSelected(t) && n.setModal && (n.setModal(!0),
this._setIsTouch(!1)),
r === MT.multiple)
n.toggleIndexSelected(t);
else {
if (r !== MT.single)
return void n.setChangeEvents(!0);
var i = n.isIndexSelected(t)
, o = n.isModal && n.isModal();
n.setAllSelected(!1),
n.setIndexSelected(t, !i, !0),
o && n.setModal && n.setModal(!0)
}
n.setChangeEvents(!0),
e.stopPropagation()
}
,
t.prototype._onInvokeClick = function(e, t) {
var n = this.props
, r = n.selection
, i = n.onItemInvoked;
i && (i(r.getItems()[t], t, e.nativeEvent),
e.preventDefault(),
e.stopPropagation())
}
,
t.prototype._onItemSurfaceClick = function(e, t) {
var n = this.props.selection
, r = this._isCtrlPressed || this._isMetaPressed
, i = this._getSelectionMode();
i === MT.multiple ? this._isShiftPressed && !this._isTabPressed ? n.selectToIndex(t, !r) : r ? n.toggleIndexSelected(t) : this._clearAndSelectIndex(t) : i === MT.single && this._clearAndSelectIndex(t)
}
,
t.prototype._onInvokeMouseDown = function(e, t) {
this.props.selection.isIndexSelected(t) || this._clearAndSelectIndex(t)
}
,
t.prototype._findScrollParentAndTryClearOnEmptyClick = function(e) {
var t = Cy(this._root.current);
this._events.off(document, "click", this._findScrollParentAndTryClearOnEmptyClick),
this._events.on(t, "click", this._tryClearOnEmptyClick),
(t && e.target instanceof Node && t.contains(e.target) || t === e.target) && this._tryClearOnEmptyClick(e)
}
,
t.prototype._tryClearOnEmptyClick = function(e) {
!this.props.selectionPreservedOnEmptyClick && this._isNonHandledClick(e.target) && this.props.selection.setAllSelected(!1)
}
,
t.prototype._clearAndSelectIndex = function(e) {
var t = this.props.selection;
if (1 !== t.getSelectedCount() || !t.isIndexSelected(e)) {
var n = t.isModal && t.isModal();
t.setChangeEvents(!1),
t.setAllSelected(!1),
t.setIndexSelected(e, !0, !0),
(n || this.props.enterModalOnTouch && this._isTouch) && (t.setModal && t.setModal(!0),
this._isTouch && this._setIsTouch(!1)),
t.setChangeEvents(!0)
}
}
,
t.prototype._updateModifiers = function(e) {
this._isShiftPressed = e.shiftKey,
this._isCtrlPressed = e.ctrlKey,
this._isMetaPressed = e.metaKey;
var t = e.keyCode;
this._isTabPressed = !!t && 9 === t
}
,
t.prototype._findItemRoot = function(e) {
for (var t = this.props.selection; e !== this._root.current; ) {
var n = e.getAttribute(cE)
, r = Number(n);
if (null !== n && r >= 0 && r < t.getItems().length)
break;
e = Wb(e)
}
if (e !== this._root.current)
return e
}
,
t.prototype._getItemIndex = function(e) {
return Number(e.getAttribute(cE))
}
,
t.prototype._shouldAutoSelect = function(e) {
return this._hasAttribute(e, "data-selection-select")
}
,
t.prototype._hasAttribute = function(e, t) {
for (var n = !1; !n && e !== this._root.current; )
n = "true" === e.getAttribute(t),
e = Wb(e);
return n
}
,
t.prototype._isInputElement = function(e) {
return "INPUT" === e.tagName || "TEXTAREA" === e.tagName
}
,
t.prototype._isNonHandledClick = function(e) {
var t = ro();
if (t && e)
for (; e && e !== t.documentElement; ) {
if (ty(e))
return !1;
e = Wb(e)
}
return !0
}
,
t.prototype._handleNextFocus = function(e) {
var t = this;
this._shouldHandleFocusTimeoutId && (this._async.clearTimeout(this._shouldHandleFocusTimeoutId),
this._shouldHandleFocusTimeoutId = void 0),
this._shouldHandleFocus = e,
e && this._async.setTimeout((function() {
t._shouldHandleFocus = !1
}
), 100)
}
,
t.prototype._setIsTouch = function(e) {
var t = this;
this._isTouchTimeoutId && (this._async.clearTimeout(this._isTouchTimeoutId),
this._isTouchTimeoutId = void 0),
this._isTouch = !0,
e && this._async.setTimeout((function() {
t._isTouch = !1
}
), 300)
}
,
t.prototype._getSelectionMode = function() {
var e = this.props.selection
, t = this.props.selectionMode;
return void 0 === t ? e ? e.mode : MT.none : t
}
,
t.defaultProps = {
isSelectedOnFocus: !0,
selectionMode: MT.multiple
},
t
}(l.Component)
, fE = function() {
function e() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = e[0] || {}
, r = n.onSelectionChanged
, i = n.getKey
, o = n.canSelectItem
, a = void 0 === o ? function() {
return !0
}
: o
, l = n.items
, s = n.selectionMode
, c = void 0 === s ? MT.multiple : s;
this.mode = c,
this._getKey = i || bE,
this._changeEventSuppressionCount = 0,
this._exemptedCount = 0,
this._anchoredIndex = 0,
this._unselectableCount = 0,
this._onSelectionChanged = r,
this._canSelectItem = a,
this._isModal = !1,
this.setItems(l || [], !0),
this.count = this.getSelectedCount()
}
return e.prototype.canSelectItem = function(e, t) {
return !("number" == typeof t && t < 0) && this._canSelectItem(e, t)
}
,
e.prototype.getKey = function(e, t) {
var n = this._getKey(e, t);
return "number" == typeof n || n ? "" + n : ""
}
,
e.prototype.setChangeEvents = function(e, t) {
this._changeEventSuppressionCount += e ? -1 : 1,
0 === this._changeEventSuppressionCount && this._hasChanged && (this._hasChanged = !1,
t || this._change())
}
,
e.prototype.isModal = function() {
return this._isModal
}
,
e.prototype.setModal = function(e) {
this._isModal !== e && (this.setChangeEvents(!1),
this._isModal = e,
e || this.setAllSelected(!1),
this._change(),
this.setChangeEvents(!0))
}
,
e.prototype.setItems = function(e, t) {
void 0 === t && (t = !0);
var n = {}
, r = {}
, i = !1;
this.setChangeEvents(!1),
this._unselectableCount = 0;
for (var o = 0; o < e.length; o++) {
if (u = e[o]) {
var a = this.getKey(u, o);
a && (n[a] = o)
}
r[o] = u && !this.canSelectItem(u),
r[o] && this._unselectableCount++
}
(t || 0 === e.length) && this._setAllSelected(!1, !0);
var l = {}
, s = 0;
for (var c in this._exemptedIndices)
if (this._exemptedIndices.hasOwnProperty(c)) {
var u, d = Number(c), p = (u = this._items[d]) ? this.getKey(u, Number(d)) : void 0, h = p ? n[p] : d;
void 0 === h ? i = !0 : (l[h] = !0,
s++,
i = i || h !== d)
}
this._items && 0 === this._exemptedCount && e.length !== this._items.length && this._isAllSelected && (i = !0),
this._exemptedIndices = l,
this._exemptedCount = s,
this._keyToIndexMap = n,
this._unselectableIndices = r,
this._items = e,
this._selectedItems = null,
i && (this._updateCount(),
this._change()),
this.setChangeEvents(!0)
}
,
e.prototype.getItems = function() {
return this._items
}
,
e.prototype.getSelection = function() {
if (!this._selectedItems) {
this._selectedItems = [];
var e = this._items;
if (e)
for (var t = 0; t < e.length; t++)
this.isIndexSelected(t) && this._selectedItems.push(e[t])
}
return this._selectedItems
}
,
e.prototype.getSelectedCount = function() {
return this._isAllSelected ? this._items.length - this._exemptedCount - this._unselectableCount : this._exemptedCount
}
,
e.prototype.getSelectedIndices = function() {
if (!this._selectedIndices) {
this._selectedIndices = [];
var e = this._items;
if (e)
for (var t = 0; t < e.length; t++)
this.isIndexSelected(t) && this._selectedIndices.push(t)
}
return this._selectedIndices
}
,
e.prototype.isRangeSelected = function(e, t) {
if (0 === t)
return !1;
for (var n = e + t, r = e; r < n; r++)
if (!this.isIndexSelected(r))
return !1;
return !0
}
,
e.prototype.isAllSelected = function() {
var e = this._items.length - this._unselectableCount;
return this.mode === MT.single && (e = Math.min(e, 1)),
this.count > 0 && this._isAllSelected && 0 === this._exemptedCount || !this._isAllSelected && this._exemptedCount === e && e > 0
}
,
e.prototype.isKeySelected = function(e) {
var t = this._keyToIndexMap[e];
return this.isIndexSelected(t)
}
,
e.prototype.isIndexSelected = function(e) {
return !!(this.count > 0 && this._isAllSelected && !this._exemptedIndices[e] && !this._unselectableIndices[e] || !this._isAllSelected && this._exemptedIndices[e])
}
,
e.prototype.setAllSelected = function(e) {
if (!e || this.mode === MT.multiple) {
var t = this._items ? this._items.length - this._unselectableCount : 0;
this.setChangeEvents(!1),
t > 0 && (this._exemptedCount > 0 || e !== this._isAllSelected) && (this._exemptedIndices = {},
(e !== this._isAllSelected || this._exemptedCount > 0) && (this._exemptedCount = 0,
this._isAllSelected = e,
this._change()),
this._updateCount()),
this.setChangeEvents(!0)
}
}
,
e.prototype.setKeySelected = function(e, t, n) {
var r = this._keyToIndexMap[e];
r >= 0 && this.setIndexSelected(r, t, n)
}
,
e.prototype.setIndexSelected = function(e, t, n) {
if (this.mode !== MT.none && !((e = Math.min(Math.max(0, e), this._items.length - 1)) < 0 || e >= this._items.length)) {
this.setChangeEvents(!1);
var r = this._exemptedIndices[e];
!this._unselectableIndices[e] && (t && this.mode === MT.single && this._setAllSelected(!1, !0),
r && (t && this._isAllSelected || !t && !this._isAllSelected) && (delete this._exemptedIndices[e],
this._exemptedCount--),
!r && (t && !this._isAllSelected || !t && this._isAllSelected) && (this._exemptedIndices[e] = !0,
this._exemptedCount++),
n && (this._anchoredIndex = e)),
this._updateCount(),
this.setChangeEvents(!0)
}
}
,
e.prototype.selectToKey = function(e, t) {
this.selectToIndex(this._keyToIndexMap[e], t)
}
,
e.prototype.selectToIndex = function(e, t) {
if (this.mode !== MT.none)
if (this.mode !== MT.single) {
var n = this._anchoredIndex || 0
, r = Math.min(e, n)
, i = Math.max(e, n);
for (this.setChangeEvents(!1),
t && this._setAllSelected(!1, !0); r <= i; r++)
this.setIndexSelected(r, !0, !1);
this.setChangeEvents(!0)
} else
this.setIndexSelected(e, !0, !0)
}
,
e.prototype.toggleAllSelected = function() {
this.setAllSelected(!this.isAllSelected())
}
,
e.prototype.toggleKeySelected = function(e) {
this.setKeySelected(e, !this.isKeySelected(e), !0)
}
,
e.prototype.toggleIndexSelected = function(e) {
this.setIndexSelected(e, !this.isIndexSelected(e), !0)
}
,
e.prototype.toggleRangeSelected = function(e, t) {
if (this.mode !== MT.none) {
var n = this.isRangeSelected(e, t)
, r = e + t;
if (!(this.mode === MT.single && t > 1)) {
this.setChangeEvents(!1);
for (var i = e; i < r; i++)
this.setIndexSelected(i, !n, !1);
this.setChangeEvents(!0)
}
}
}
,
e.prototype._updateCount = function(e) {
void 0 === e && (e = !1);
var t = this.getSelectedCount();
t !== this.count && (this.count = t,
this._change()),
this.count || e || this.setModal(!1)
}
,
e.prototype._setAllSelected = function(e, t) {
if (void 0 === t && (t = !1),
!e || this.mode === MT.multiple) {
var n = this._items ? this._items.length - this._unselectableCount : 0;
this.setChangeEvents(!1),
n > 0 && (this._exemptedCount > 0 || e !== this._isAllSelected) && (this._exemptedIndices = {},
(e !== this._isAllSelected || this._exemptedCount > 0) && (this._exemptedCount = 0,
this._isAllSelected = e,
this._change()),
this._updateCount(t)),
this.setChangeEvents(!0)
}
}
,
e.prototype._change = function() {
0 === this._changeEventSuppressionCount ? (this._selectedItems = null,
this._selectedIndices = void 0,
rg.raise(this, PT),
this._onSelectionChanged && this._onSelectionChanged()) : this._hasChanged = !0
}
,
e
}();
function bE(e, t) {
var n = (e || {}).key;
return void 0 === n ? "" + t : n
}
var gE = {
root: "ms-GroupedList",
compact: "ms-GroupedList--Compact",
group: "ms-GroupedList-group",
link: "ms-Link",
listCell: "ms-List-cell"
}
, mE = {
root: "ms-GroupHeader",
compact: "ms-GroupHeader--compact",
check: "ms-GroupHeader-check",
dropIcon: "ms-GroupHeader-dropIcon",
expand: "ms-GroupHeader-expand",
isCollapsed: "is-collapsed",
title: "ms-GroupHeader-title",
isSelected: "is-selected",
iconTag: "ms-Icon--Tag",
group: "ms-GroupedList-group",
isDropping: "is-dropping"
}
, vE = "cubic-bezier(0.390, 0.575, 0.565, 1.000)"
, yE = Sg()
, xE = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._toggleCollapse = function() {
var e = n.props
, t = e.group
, r = e.onToggleCollapse
, i = e.isGroupLoading
, o = !n.state.isCollapsed
, a = !o && i && i(t);
n.setState({
isCollapsed: o,
isLoadingVisible: a
}),
r && r(t)
}
,
n._onKeyUp = function(e) {
var t = n.props
, r = t.group
, i = t.onGroupHeaderKeyUp;
if (i && i(e, r),
!e.defaultPrevented) {
var o = n.state.isCollapsed && e.which === yp(bp, n.props.theme);
(!n.state.isCollapsed && e.which === yp(hp, n.props.theme) || o) && (n._toggleCollapse(),
e.stopPropagation(),
e.preventDefault())
}
}
,
n._onToggleClick = function(e) {
n._toggleCollapse(),
e.stopPropagation(),
e.preventDefault()
}
,
n._onToggleSelectGroupClick = function(e) {
var t = n.props
, r = t.onToggleSelectGroup
, i = t.group;
r && r(i),
e.preventDefault(),
e.stopPropagation()
}
,
n._onHeaderClick = function() {
var e = n.props
, t = e.group
, r = e.onGroupHeaderClick
, i = e.onToggleSelectGroup;
r ? r(t) : i && i(t)
}
,
n._onRenderTitle = function(e) {
var t = e.group
, r = e.ariaColSpan;
return t ? l.createElement("div", {
className: n._classNames.title,
id: n._id,
role: "gridcell",
"aria-colspan": r
}, l.createElement("span", null, t.name), l.createElement("span", {
className: n._classNames.headerCount
}, "(", t.count, t.hasMoreData && "+", ")")) : null
}
,
n._id = lg("GroupHeader"),
n.state = {
isCollapsed: n.props.group && n.props.group.isCollapsed,
isLoadingVisible: !1
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
if (e.group) {
var n = e.group.isCollapsed
, r = e.isGroupLoading
, i = !n && r && r(e.group);
return Object(zn.a)(Object(zn.a)({}, t), {
isCollapsed: n || !1,
isLoadingVisible: i || !1
})
}
return t
}
,
t.prototype.render = function() {
var e = this.props
, t = e.group
, n = e.groupLevel
, r = void 0 === n ? 0 : n
, i = e.viewport
, o = e.selectionMode
, a = e.loadingText
, s = e.isSelected
, c = void 0 !== s && s
, u = e.selected
, d = void 0 !== u && u
, p = e.indentWidth
, h = e.onRenderTitle
, f = void 0 === h ? this._onRenderTitle : h
, b = e.onRenderGroupHeaderCheckbox
, g = e.isCollapsedGroupSelectVisible
, m = void 0 === g || g
, v = e.expandButtonProps
, y = e.expandButtonIcon
, x = e.selectAllButtonProps
, O = e.theme
, j = e.styles
, k = e.className
, w = e.compact
, C = e.ariaPosInSet
, _ = e.ariaSetSize
, M = e.ariaRowIndex
, S = e.useFastIcons ? this._fastDefaultCheckboxRender : this._defaultCheckboxRender
, A = b ? qg(b, S) : S
, T = this.state
, E = T.isCollapsed
, I = T.isLoadingVisible
, N = o === MT.multiple
, z = N && (m || !(t && t.isCollapsed))
, D = d || c
, L = vp(O);
return this._classNames = yE(j, {
theme: O,
className: k,
selected: D,
isCollapsed: E,
compact: w
}),
t ? l.createElement("div", {
className: this._classNames.root,
style: i ? {
minWidth: i.width
} : {},
onClick: this._onHeaderClick,
role: "row",
"aria-setsize": _,
"aria-posinset": C,
"aria-rowindex": M,
"data-is-focusable": !0,
onKeyUp: this._onKeyUp,
"aria-label": t.ariaLabel,
"aria-labelledby": t.ariaLabel ? void 0 : this._id,
"aria-expanded": !this.state.isCollapsed,
"aria-selected": N ? D : void 0,
"aria-level": r + 1
}, l.createElement("div", {
className: this._classNames.groupHeaderContainer,
role: "presentation"
}, z ? l.createElement("div", {
role: "gridcell"
}, l.createElement("button", Object(zn.a)({
"data-is-focusable": !1,
type: "button",
className: this._classNames.check,
role: "checkbox",
id: this._id + "-check",
"aria-checked": D,
"aria-labelledby": this._id + "-check " + this._id,
"data-selection-toggle": !0,
onClick: this._onToggleSelectGroupClick
}, x), A({
checked: D,
theme: O
}, A))) : o !== MT.none && l.createElement(kT, {
indentWidth: 48,
count: 1
}), l.createElement(kT, {
indentWidth: p,
count: r
}), l.createElement("div", {
className: this._classNames.dropIcon,
role: "presentation"
}, l.createElement(Pg, {
iconName: "Tag"
})), l.createElement("div", {
role: "gridcell"
}, l.createElement("button", Object(zn.a)({
"data-is-focusable": !1,
type: "button",
className: this._classNames.expand,
onClick: this._onToggleClick,
"aria-expanded": !this.state.isCollapsed
}, v), l.createElement(Pg, {
className: this._classNames.expandIsCollapsed,
iconName: y || (L ? "ChevronLeftMed" : "ChevronRightMed")
}))), f(this.props, this._onRenderTitle), I && l.createElement(tT, {
label: a
}))) : null
}
,
t.prototype._defaultCheckboxRender = function(e) {
return l.createElement(TT, {
checked: e.checked
})
}
,
t.prototype._fastDefaultCheckboxRender = function(e) {
return l.createElement(OE, {
theme: e.theme,
checked: e.checked
})
}
,
t.defaultProps = {
expandButtonProps: {
"aria-label": "expand collapse group"
}
},
t
}(l.Component)
, OE = l.memo((function(e) {
return l.createElement(TT, {
theme: e.theme,
checked: e.checked,
className: e.className,
useFastIcons: !0
})
}
))
, jE = jg(xE, (function(e) {
var t, n, r, i, o, a = e.theme, l = e.className, s = e.selected, c = e.isCollapsed, u = e.compact, d = IT.cellLeftPadding, p = u ? 40 : 48, h = a.semanticColors, f = a.palette, b = a.fonts, g = Vi(mE, a), m = [Mi(a), {
cursor: "default",
background: "none",
backgroundColor: "transparent",
border: "none",
padding: 0
}];
return {
root: [g.root, Mi(a), a.fonts.medium, {
borderBottom: "1px solid " + h.listBackground,
cursor: "default",
userSelect: "none",
selectors: (t = {
":hover": {
background: h.listItemBackgroundHovered,
color: h.actionLinkHovered
}
},
t["&:hover ." + g.check] = {
opacity: 1
},
t[".ms-Fabric--isFocusVisible &:focus ." + g.check] = {
opacity: 1
},
t[":global(." + g.group + "." + g.isDropping + ")"] = {
selectors: (n = {},
n["& > ." + g.root + " ." + g.dropIcon] = {
transition: "transform " + ri + " cubic-bezier(0.075, 0.820, 0.165, 1.000) opacity " + ei + " " + vE,
transitionDelay: ni,
opacity: 1,
transform: "rotate(0.2deg) scale(1);"
},
n["." + g.check] = {
opacity: 0
},
n)
},
t)
}, s && [g.isSelected, {
background: h.listItemBackgroundChecked,
selectors: (r = {
":hover": {
background: h.listItemBackgroundCheckedHovered
}
},
r["" + g.check] = {
opacity: 1
},
r)
}], u && [g.compact, {
border: "none"
}], l],
groupHeaderContainer: [{
display: "flex",
alignItems: "center",
height: p
}],
headerCount: [{
padding: "0px 4px"
}],
check: [g.check, m, {
display: "flex",
alignItems: "center",
justifyContent: "center",
paddingTop: 1,
marginTop: -1,
opacity: 0,
width: 48,
height: p,
selectors: (i = {},
i[".ms-Fabric--isFocusVisible &:focus"] = {
opacity: 1
},
i)
}],
expand: [g.expand, m, {
display: "flex",
alignItems: "center",
justifyContent: "center",
fontSize: b.small.fontSize,
width: 36,
height: p,
color: s ? f.neutralPrimary : f.neutralSecondary,
selectors: {
":hover": {
backgroundColor: s ? f.neutralQuaternary : f.neutralLight
},
":active": {
backgroundColor: s ? f.neutralTertiaryAlt : f.neutralQuaternaryAlt
}
}
}],
expandIsCollapsed: [c ? [g.isCollapsed, {
transform: "rotate(0deg)",
transformOrigin: "50% 50%",
transition: "transform .1s linear"
}] : {
transform: vp(a) ? "rotate(-90deg)" : "rotate(90deg)",
transformOrigin: "50% 50%",
transition: "transform .1s linear"
}],
title: [g.title, {
paddingLeft: d,
fontSize: u ? b.medium.fontSize : b.mediumPlus.fontSize,
fontWeight: c ? bi.regular : bi.semibold,
cursor: "pointer",
outline: 0,
whiteSpace: "nowrap",
textOverflow: "ellipsis"
}],
dropIcon: [g.dropIcon, {
position: "absolute",
left: -26,
fontSize: gi.large,
color: f.neutralSecondary,
transition: "transform " + ti + " cubic-bezier(0.600, -0.280, 0.735, 0.045), opacity " + ri + " " + vE,
opacity: 0,
transform: "rotate(0.2deg) scale(0.65)",
transformOrigin: "10px 10px",
selectors: (o = {},
o[":global(." + g.iconTag + ")"] = {
position: "absolute"
},
o)
}]
}
}
), void 0, {
scope: "GroupHeader"
})
, kE = {
root: "ms-GroupShowAll",
link: "ms-Link"
}
, wE = Sg()
, CE = jg((function(e) {
var t = e.group
, n = e.groupLevel
, r = e.showAllLinkText
, i = void 0 === r ? "Show All" : r
, o = e.styles
, a = e.theme
, s = e.onToggleSummarize
, c = wE(o, {
theme: a
})
, u = Object(l.useCallback)((function(e) {
s(t),
e.stopPropagation(),
e.preventDefault()
}
), [s, t]);
return t ? l.createElement("div", {
className: c.root
}, l.createElement(kT, {
count: n
}), l.createElement(QA, {
onClick: u
}, i)) : null
}
), (function(e) {
var t, n = e.theme, r = n.fonts, i = Vi(kE, n);
return {
root: [i.root, {
position: "relative",
padding: "10px 84px",
cursor: "pointer",
selectors: (t = {},
t["." + i.link] = {
fontSize: r.small.fontSize
},
t)
}]
}
}
), void 0, {
scope: "GroupShowAll"
})
, _E = {
root: "ms-groupFooter"
}
, ME = Sg()
, SE = jg((function(e) {
var t = e.group
, n = e.groupLevel
, r = e.footerText
, i = e.indentWidth
, o = e.styles
, a = e.theme
, s = ME(o, {
theme: a
});
return t && r ? l.createElement("div", {
className: s.root
}, l.createElement(kT, {
indentWidth: i,
count: n
}), r) : null
}
), (function(e) {
var t = e.theme
, n = e.className
, r = Vi(_E, t);
return {
root: [t.fonts.medium, r.root, {
position: "relative",
padding: "5px 38px"
}, n]
}
}
), void 0, {
scope: "GroupFooter"
})
, AE = {
top: -1,
bottom: -1,
left: -1,
right: -1,
width: 0,
height: 0
}
, TE = function(e) {
return e.getBoundingClientRect()
}
, EE = TE
, IE = TE
, NE = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._root = l.createRef(),
n._surface = l.createRef(),
n._pageRefs = {},
n._getDerivedStateFromProps = function(e, t) {
return e.items !== n.props.items || e.renderCount !== n.props.renderCount || e.startIndex !== n.props.startIndex || e.version !== n.props.version ? (n._resetRequiredWindows(),
n._requiredRect = null,
n._measureVersion++,
n._invalidatePageCache(),
n._updatePages(e, t)) : t
}
,
n._onRenderRoot = function(e) {
var t = e.rootRef
, n = e.surfaceElement
, r = e.divProps;
return l.createElement("div", Object(zn.a)({
ref: t
}, r), n)
}
,
n._onRenderSurface = function(e) {
var t = e.surfaceRef
, n = e.pageElements
, r = e.divProps;
return l.createElement("div", Object(zn.a)({
ref: t
}, r), n)
}
,
n._onRenderPage = function(e, t) {
for (var r = n.props, i = r.onRenderCell, o = r.role, a = e.page, s = a.items, c = void 0 === s ? [] : s, u = a.startIndex, d = Object(zn.d)(e, ["page"]), p = void 0 === o ? "listitem" : "presentation", h = [], f = 0; f < c.length; f++) {
var b = u + f
, g = c[f]
, m = n.props.getKey ? n.props.getKey(g, b) : g && g.key;
null != m || (m = b),
h.push(l.createElement("div", {
role: p,
className: "ms-List-cell",
key: m,
"data-list-index": b,
"data-automationid": "ListCell"
}, i && i(g, b, n.props.ignoreScrollingState ? void 0 : n.state.isScrolling)))
}
return l.createElement("div", Object(zn.a)({}, d), h)
}
,
Kb(n),
n.state = {
pages: [],
isScrolling: !1,
getDerivedStateFromProps: n._getDerivedStateFromProps
},
n._async = new $b(n),
n._events = new rg(n),
n._estimatedPageHeight = 0,
n._totalEstimates = 0,
n._requiredWindowsAhead = 0,
n._requiredWindowsBehind = 0,
n._measureVersion = 0,
n._onAsyncScroll = n._async.debounce(n._onAsyncScroll, 100, {
leading: !1,
maxWait: 500
}),
n._onAsyncIdle = n._async.debounce(n._onAsyncIdle, 200, {
leading: !1
}),
n._onAsyncResize = n._async.debounce(n._onAsyncResize, 16, {
leading: !1
}),
n._onScrollingDone = n._async.debounce(n._onScrollingDone, 500, {
leading: !1
}),
n._cachedPageHeights = {},
n._estimatedPageHeight = 0,
n._focusedIndex = -1,
n._pageCache = {},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
return t.getDerivedStateFromProps(e, t)
}
,
Object.defineProperty(t.prototype, "pageRefs", {
get: function() {
return this._pageRefs
},
enumerable: !1,
configurable: !0
}),
t.prototype.scrollToIndex = function(e, t, n) {
void 0 === n && (n = 0);
for (var r = this.props.startIndex, i = r + this._getRenderCount(), o = this._allowedRect, a = 0, l = 1, s = r; s < i; s += l) {
var c = this._getPageSpecification(s, o)
, u = c.height;
if (l = c.itemCount,
s <= e && s + l > e) {
if (t && this._scrollElement) {
for (var d = IE(this._scrollElement), p = {
top: this._scrollElement.scrollTop,
bottom: this._scrollElement.scrollTop + d.height
}, h = e - s, f = 0; f < h; ++f)
a += t(s + f);
var b = a + t(e);
switch (n) {
case 1:
return void (this._scrollElement.scrollTop = a);
case 2:
return void (this._scrollElement.scrollTop = b - d.height);
case 3:
return void (this._scrollElement.scrollTop = (a + b - d.height) / 2)
}
if (a >= p.top && b <= p.bottom)
return;
a < p.top || b > p.bottom && (a = b - d.height)
}
return void (this._scrollElement && (this._scrollElement.scrollTop = a))
}
a += u
}
}
,
t.prototype.getStartItemIndexInView = function(e) {
for (var t = 0, n = this.state.pages || []; t < n.length; t++) {
var r = n[t];
if (!r.isSpacer && (this._scrollTop || 0) >= r.top && (this._scrollTop || 0) <= r.top + r.height) {
if (!e) {
var i = Math.floor(r.height / r.itemCount);
return r.startIndex + Math.floor((this._scrollTop - r.top) / i)
}
for (var o = 0, a = r.startIndex; a < r.startIndex + r.itemCount; a++) {
if (i = e(a),
r.top + o <= this._scrollTop && this._scrollTop < r.top + o + i)
return a;
o += i
}
}
}
return 0
}
,
t.prototype.componentDidMount = function() {
this.setState(this._updatePages(this.props, this.state)),
this._measureVersion++,
this._scrollElement = Cy(this._root.current),
this._events.on(window, "resize", this._onAsyncResize),
this._root.current && this._events.on(this._root.current, "focus", this._onFocus, !0),
this._scrollElement && (this._events.on(this._scrollElement, "scroll", this._onScroll),
this._events.on(this._scrollElement, "scroll", this._onAsyncScroll))
}
,
t.prototype.componentDidUpdate = function(e, t) {
var n = this.props
, r = this.state;
this.state.pagesVersion !== t.pagesVersion && (n.getPageHeight ? this._onAsyncIdle() : this._updatePageMeasurements(r.pages) ? (this._materializedRect = null,
this._hasCompletedFirstRender ? this._onAsyncScroll() : (this._hasCompletedFirstRender = !0,
this.setState(this._updatePages(n, r)))) : this._onAsyncIdle(),
n.onPagesUpdated && n.onPagesUpdated(r.pages))
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose(),
delete this._scrollElement
}
,
t.prototype.shouldComponentUpdate = function(e, t) {
var n = this.state.pages
, r = t.pages
, i = !1;
if (!t.isScrolling && this.state.isScrolling)
return !0;
if (e.version !== this.props.version)
return !0;
if (e.items === this.props.items && n.length === r.length)
for (var o = 0; o < n.length; o++) {
var a = n[o]
, l = r[o];
if (a.key !== l.key || a.itemCount !== l.itemCount) {
i = !0;
break
}
}
else
i = !0;
return i
}
,
t.prototype.forceUpdate = function() {
this._invalidatePageCache(),
this._updateRenderRects(this.props, this.state, !0),
this.setState(this._updatePages(this.props, this.state)),
this._measureVersion++,
e.prototype.forceUpdate.call(this)
}
,
t.prototype.getTotalListHeight = function() {
return this._surfaceRect.height
}
,
t.prototype.render = function() {
for (var e = this.props, t = e.className, n = e.role, r = void 0 === n ? "list" : n, i = e.onRenderSurface, o = e.onRenderRoot, a = this.state.pages, l = void 0 === a ? [] : a, s = [], c = rp(this.props, np), u = 0, d = l; u < d.length; u++) {
var p = d[u];
s.push(this._renderPage(p))
}
var h = i ? qg(i, this._onRenderSurface) : this._onRenderSurface;
return (o ? qg(o, this._onRenderRoot) : this._onRenderRoot)({
rootRef: this._root,
pages: l,
surfaceElement: h({
surfaceRef: this._surface,
pages: l,
pageElements: s,
divProps: {
role: "presentation",
className: "ms-List-surface"
}
}),
divProps: Object(zn.a)(Object(zn.a)({}, c), {
className: ip("ms-List", t),
role: s.length > 0 ? r : void 0
})
})
}
,
t.prototype._shouldVirtualize = function(e) {
void 0 === e && (e = this.props);
var t = e.onShouldVirtualize;
return !t || t(e)
}
,
t.prototype._invalidatePageCache = function() {
this._pageCache = {}
}
,
t.prototype._renderPage = function(e) {
var t, n = this, r = this.props.usePageCache;
if (r && (t = this._pageCache[e.key]) && t.pageElement)
return t.pageElement;
var i = this._getPageStyle(e)
, o = this.props.onRenderPage
, a = (void 0 === o ? this._onRenderPage : o)({
page: e,
className: "ms-List-page",
key: e.key,
ref: function(t) {
n._pageRefs[e.key] = t
},
style: i,
role: "presentation"
}, this._onRenderPage);
return r && 0 === e.startIndex && (this._pageCache[e.key] = {
page: e,
pageElement: a
}),
a
}
,
t.prototype._getPageStyle = function(e) {
var t = this.props.getPageStyle;
return Object(zn.a)(Object(zn.a)({}, t ? t(e) : {}), e.items ? {} : {
height: e.height
})
}
,
t.prototype._onFocus = function(e) {
for (var t = e.target; t !== this._surface.current; ) {
var n = t.getAttribute("data-list-index");
if (n) {
this._focusedIndex = Number(n);
break
}
t = Wb(t)
}
}
,
t.prototype._onScroll = function() {
this.state.isScrolling || this.props.ignoreScrollingState || this.setState({
isScrolling: !0
}),
this._resetRequiredWindows(),
this._onScrollingDone()
}
,
t.prototype._resetRequiredWindows = function() {
this._requiredWindowsAhead = 0,
this._requiredWindowsBehind = 0
}
,
t.prototype._onAsyncScroll = function() {
var e, t;
this._updateRenderRects(this.props, this.state),
this._materializedRect && (e = this._requiredRect,
t = this._materializedRect,
e.top >= t.top && e.left >= t.left && e.bottom <= t.bottom && e.right <= t.right) || this.setState(this._updatePages(this.props, this.state))
}
,
t.prototype._onAsyncIdle = function() {
var e = this.props
, t = e.renderedWindowsAhead
, n = e.renderedWindowsBehind
, r = this._requiredWindowsAhead
, i = this._requiredWindowsBehind
, o = Math.min(t, r + 1)
, a = Math.min(n, i + 1);
o === r && a === i || (this._requiredWindowsAhead = o,
this._requiredWindowsBehind = a,
this._updateRenderRects(this.props, this.state),
this.setState(this._updatePages(this.props, this.state))),
(t > o || n > a) && this._onAsyncIdle()
}
,
t.prototype._onScrollingDone = function() {
this.props.ignoreScrollingState || this.setState({
isScrolling: !1
})
}
,
t.prototype._onAsyncResize = function() {
this.forceUpdate()
}
,
t.prototype._updatePages = function(e, t) {
this._requiredRect || this._updateRenderRects(e, t);
var n = this._buildPages(e, t)
, r = t.pages;
return this._notifyPageChanges(r, n.pages, this.props),
Object(zn.a)(Object(zn.a)(Object(zn.a)({}, t), n), {
pagesVersion: {}
})
}
,
t.prototype._notifyPageChanges = function(e, t, n) {
var r = n.onPageAdded
, i = n.onPageRemoved;
if (r || i) {
for (var o = {}, a = 0, l = e; a < l.length; a++)
(u = l[a]).items && (o[u.startIndex] = u);
for (var s = 0, c = t; s < c.length; s++) {
var u;
(u = c[s]).items && (o[u.startIndex] ? delete o[u.startIndex] : this._onPageAdded(u))
}
for (var d in o)
o.hasOwnProperty(d) && this._onPageRemoved(o[d])
}
}
,
t.prototype._updatePageMeasurements = function(e) {
var t = !1;
if (!this._shouldVirtualize())
return t;
for (var n = 0; n < e.length; n++) {
var r = e[n];
r.items && (t = this._measurePage(r) || t)
}
return t
}
,
t.prototype._measurePage = function(e) {
var t = !1
, n = this._pageRefs[e.key]
, r = this._cachedPageHeights[e.startIndex];
if (n && this._shouldVirtualize() && (!r || r.measureVersion !== this._measureVersion)) {
var i = {
width: n.clientWidth,
height: n.clientHeight
};
(i.height || i.width) && (t = e.height !== i.height,
e.height = i.height,
this._cachedPageHeights[e.startIndex] = {
height: i.height,
measureVersion: this._measureVersion
},
this._estimatedPageHeight = Math.round((this._estimatedPageHeight * this._totalEstimates + i.height) / (this._totalEstimates + 1)),
this._totalEstimates++)
}
return t
}
,
t.prototype._onPageAdded = function(e) {
var t = this.props.onPageAdded;
t && t(e)
}
,
t.prototype._onPageRemoved = function(e) {
var t = this.props.onPageRemoved;
t && t(e)
}
,
t.prototype._buildPages = function(e, t) {
var n = e.renderCount
, r = e.items
, i = e.startIndex
, o = e.getPageHeight;
n = this._getRenderCount(e);
for (var a = Object(zn.a)({}, AE), l = [], s = 1, c = 0, u = null, d = this._focusedIndex, p = i + n, h = this._shouldVirtualize(e), f = 0 === this._estimatedPageHeight && !o, b = this._allowedRect, g = function(e) {
var n = m._getPageSpecification(e, b)
, o = n.height
, g = n.data
, v = n.key;
s = n.itemCount;
var y, x, O = c + o - 1, j = Vb(t.pages, (function(t) {
return !!t.items && t.startIndex === e
}
)) > -1, k = !b || O >= b.top && c <= b.bottom, w = !m._requiredRect || O >= m._requiredRect.top && c <= m._requiredRect.bottom;
if (!f && (w || k && j) || !h || d >= e && d < e + s || e === i) {
u && (l.push(u),
u = null);
var C = Math.min(s, p - e)
, _ = m._createPage(v, r.slice(e, e + C), e, void 0, void 0, g);
_.top = c,
_.height = o,
m._visibleRect && m._visibleRect.bottom && (_.isVisible = O >= m._visibleRect.top && c <= m._visibleRect.bottom),
l.push(_),
w && m._allowedRect && (y = a,
x = {
top: c,
bottom: O,
height: o,
left: b.left,
right: b.right,
width: b.width
},
y.top = x.top < y.top || -1 === y.top ? x.top : y.top,
y.left = x.left < y.left || -1 === y.left ? x.left : y.left,
y.bottom = x.bottom > y.bottom || -1 === y.bottom ? x.bottom : y.bottom,
y.right = x.right > y.right || -1 === y.right ? x.right : y.right,
y.width = y.right - y.left + 1,
y.height = y.bottom - y.top + 1)
} else
u || (u = m._createPage("spacer-" + e, void 0, e, 0, void 0, g, !0)),
u.height = (u.height || 0) + (O - c) + 1,
u.itemCount += s;
if (c += O - c + 1,
f && h)
return "break"
}, m = this, v = i; v < p && "break" !== g(v); v += s)
;
return u && (u.key = "spacer-end",
l.push(u)),
this._materializedRect = a,
Object(zn.a)(Object(zn.a)({}, t), {
pages: l,
measureVersion: this._measureVersion
})
}
,
t.prototype._getPageSpecification = function(e, t) {
var n = this.props.getPageSpecification;
if (n) {
var r = n(e, t)
, i = r.itemCount
, o = void 0 === i ? this._getItemCountForPage(e, t) : i
, a = r.height;
return {
itemCount: o,
height: void 0 === a ? this._getPageHeight(e, t, o) : a,
data: r.data,
key: r.key
}
}
return {
itemCount: o = this._getItemCountForPage(e, t),
height: this._getPageHeight(e, t, o)
}
}
,
t.prototype._getPageHeight = function(e, t, n) {
if (this.props.getPageHeight)
return this.props.getPageHeight(e, t, n);
var r = this._cachedPageHeights[e];
return r ? r.height : this._estimatedPageHeight || 30
}
,
t.prototype._getItemCountForPage = function(e, t) {
return (this.props.getItemCountForPage ? this.props.getItemCountForPage(e, t) : 10) || 10
}
,
t.prototype._createPage = function(e, t, n, r, i, o, a) {
void 0 === n && (n = -1),
void 0 === r && (r = t ? t.length : 0),
void 0 === i && (i = {}),
e = e || "page-" + n;
var l = this._pageCache[e];
return l && l.page ? l.page : {
key: e,
startIndex: n,
itemCount: r,
items: t,
style: i,
top: 0,
height: 0,
data: o,
isSpacer: a || !1
}
}
,
t.prototype._getRenderCount = function(e) {
var t = e || this.props
, n = t.items
, r = t.startIndex
, i = t.renderCount;
return void 0 === i ? n ? n.length - r : 0 : i
}
,
t.prototype._updateRenderRects = function(e, t, n) {
var r = e.renderedWindowsAhead
, i = e.renderedWindowsBehind
, o = t.pages;
if (this._shouldVirtualize(e)) {
var a = this._surfaceRect || Object(zn.a)({}, AE)
, l = this._scrollElement && this._scrollElement.scrollHeight
, s = this._scrollElement ? this._scrollElement.scrollTop : 0;
this._surface.current && (n || !o || !this._surfaceRect || !l || l !== this._scrollHeight || Math.abs(this._scrollTop - s) > this._estimatedPageHeight / 3) && (a = this._surfaceRect = EE(this._surface.current),
this._scrollTop = s),
!n && l && l === this._scrollHeight || this._measureVersion++,
this._scrollHeight = l || 0;
var c = Math.max(0, -a.top)
, u = ji(this._root.current)
, d = {
top: c,
left: a.left,
bottom: c + u.innerHeight,
right: a.right,
width: a.width,
height: u.innerHeight
};
this._requiredRect = zE(d, this._requiredWindowsBehind, this._requiredWindowsAhead),
this._allowedRect = zE(d, i, r),
this._visibleRect = d
}
}
,
t.defaultProps = {
startIndex: 0,
onRenderCell: function(e, t, n) {
return l.createElement(l.Fragment, null, e && e.name || "")
},
renderedWindowsAhead: 2,
renderedWindowsBehind: 2
},
t
}(l.Component);
function zE(e, t, n) {
var r = e.top - t * e.height
, i = e.height + (t + n) * e.height;
return {
top: r,
bottom: r + i,
height: i,
left: e.left,
right: e.right,
width: e.width
}
}
var DE = function(e) {
function t(n) {
var r = e.call(this, n) || this;
r._root = l.createRef(),
r._list = l.createRef(),
r._subGroupRefs = {},
r._droppingClassName = "",
r._onRenderGroupHeader = function(e) {
return l.createElement(jE, Object(zn.a)({}, e))
}
,
r._onRenderGroupShowAll = function(e) {
return l.createElement(CE, Object(zn.a)({}, e))
}
,
r._onRenderGroupFooter = function(e) {
return l.createElement(SE, Object(zn.a)({}, e))
}
,
r._renderSubGroup = function(e, n) {
var i = r.props
, o = i.dragDropEvents
, a = i.dragDropHelper
, s = i.eventsToRegister
, c = i.getGroupItemLimit
, u = i.groupNestingDepth
, d = i.groupProps
, p = i.items
, h = i.headerProps
, f = i.showAllProps
, b = i.footerProps
, g = i.listProps
, m = i.onRenderCell
, v = i.selection
, y = i.selectionMode
, x = i.viewport
, O = i.onRenderGroupHeader
, j = i.onRenderGroupShowAll
, k = i.onRenderGroupFooter
, w = i.onShouldVirtualize
, C = i.group
, _ = i.compact
, M = e.level ? e.level + 1 : u;
return !e || e.count > 0 || d && d.showEmptyGroups ? l.createElement(t, {
ref: function(e) {
return r._subGroupRefs["subGroup_" + n] = e
},
key: r._getGroupKey(e, n),
dragDropEvents: o,
dragDropHelper: a,
eventsToRegister: s,
footerProps: b,
getGroupItemLimit: c,
group: e,
groupIndex: n,
groupNestingDepth: M,
groupProps: d,
headerProps: h,
items: p,
listProps: g,
onRenderCell: m,
selection: v,
selectionMode: y,
showAllProps: f,
viewport: x,
onRenderGroupHeader: O,
onRenderGroupShowAll: j,
onRenderGroupFooter: k,
onShouldVirtualize: w,
groups: C ? C.children : [],
compact: _
}) : null
}
,
r._getGroupDragDropOptions = function() {
var e = r.props
, t = e.group
, n = e.groupIndex
, i = e.dragDropEvents;
return {
eventMap: e.eventsToRegister,
selectionIndex: -1,
context: {
data: t,
index: n,
isGroup: !0
},
updateDropState: r._updateDroppingState,
canDrag: i.canDrag,
canDrop: i.canDrop,
onDrop: i.onDrop,
onDragStart: i.onDragStart,
onDragEnter: i.onDragEnter,
onDragLeave: i.onDragLeave,
onDragEnd: i.onDragEnd,
onDragOver: i.onDragOver
}
}
,
r._updateDroppingState = function(e, t) {
var n = r.state.isDropping
, i = r.props
, o = i.dragDropEvents
, a = i.group;
n !== e && (n ? o && o.onDragLeave && o.onDragLeave(a, t) : o && o.onDragEnter && (r._droppingClassName = o.onDragEnter(a, t)),
r.setState({
isDropping: e
}))
}
;
var i = n.selection
, o = n.group;
return Kb(r),
r._id = lg("GroupedListSection"),
r.state = {
isDropping: !1,
isSelected: !(!i || !o) && i.isRangeSelected(o.startIndex, o.count)
},
r._events = new rg(r),
r
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
var e = this.props
, t = e.dragDropHelper
, n = e.selection;
t && this._root.current && (this._dragDropSubscription = t.subscribe(this._root.current, this._events, this._getGroupDragDropOptions())),
n && this._events.on(n, PT, this._onSelectionChange)
}
,
t.prototype.componentWillUnmount = function() {
this._events.dispose(),
this._dragDropSubscription && this._dragDropSubscription.dispose()
}
,
t.prototype.componentDidUpdate = function(e) {
this.props.group === e.group && this.props.groupIndex === e.groupIndex && this.props.dragDropHelper === e.dragDropHelper || (this._dragDropSubscription && (this._dragDropSubscription.dispose(),
delete this._dragDropSubscription),
this.props.dragDropHelper && this._root.current && (this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getGroupDragDropOptions())))
}
,
t.prototype.render = function() {
var e = this.props
, t = e.getGroupItemLimit
, n = e.group
, r = e.groupIndex
, i = e.headerProps
, o = e.showAllProps
, a = e.footerProps
, s = e.viewport
, c = e.selectionMode
, u = e.onRenderGroupHeader
, d = void 0 === u ? this._onRenderGroupHeader : u
, p = e.onRenderGroupShowAll
, h = void 0 === p ? this._onRenderGroupShowAll : p
, f = e.onRenderGroupFooter
, b = void 0 === f ? this._onRenderGroupFooter : f
, g = e.onShouldVirtualize
, m = e.groupedListClassNames
, v = e.groups
, y = e.compact
, x = e.listProps
, O = void 0 === x ? {} : x
, j = this.state.isSelected
, k = n && t ? t(n) : 1 / 0
, w = n && !n.children && !n.isCollapsed && !n.isShowingAll && (n.count > k || n.hasMoreData)
, C = n && n.children && n.children.length > 0
, _ = O.version
, M = {
group: n,
groupIndex: r,
groupLevel: n ? n.level : 0,
isSelected: j,
selected: j,
viewport: s,
selectionMode: c,
groups: v,
compact: y
}
, S = {
groupedListId: this._id,
ariaSetSize: v ? v.length : void 0,
ariaPosInSet: void 0 !== r ? r + 1 : void 0
}
, A = Object(zn.a)(Object(zn.a)(Object(zn.a)({}, i), M), S)
, T = Object(zn.a)(Object(zn.a)({}, o), M)
, E = Object(zn.a)(Object(zn.a)({}, a), M)
, I = !!this.props.dragDropHelper && this._getGroupDragDropOptions().canDrag(n) && !!this.props.dragDropEvents.canDragGroups;
return l.createElement("div", Object(zn.a)({
ref: this._root
}, I && {
draggable: !0
}, {
className: ip(m && m.group, this._getDroppingClassName()),
role: "presentation"
}), d(A, this._onRenderGroupHeader), n && n.isCollapsed ? null : C ? l.createElement(NE, {
role: "presentation",
ref: this._list,
items: n ? n.children : [],
onRenderCell: this._renderSubGroup,
getItemCountForPage: this._returnOne,
onShouldVirtualize: g,
version: _,
id: this._id
}) : this._onRenderGroup(k), n && n.isCollapsed ? null : w && h(T, this._onRenderGroupShowAll), b(E, this._onRenderGroupFooter))
}
,
t.prototype.forceUpdate = function() {
e.prototype.forceUpdate.call(this),
this.forceListUpdate()
}
,
t.prototype.forceListUpdate = function() {
var e = this.props.group;
if (this._list.current) {
if (this._list.current.forceUpdate(),
e && e.children && e.children.length > 0)
for (var t = e.children.length, n = 0; n < t; n++) {
var r;
(r = this._list.current.pageRefs["subGroup_" + String(n)]) && r.forceListUpdate()
}
} else
(r = this._subGroupRefs["subGroup_" + String(0)]) && r.forceListUpdate()
}
,
t.prototype._onSelectionChange = function() {
var e = this.props
, t = e.group
, n = e.selection;
if (n && t) {
var r = n.isRangeSelected(t.startIndex, t.count);
r !== this.state.isSelected && this.setState({
isSelected: r
})
}
}
,
t.prototype._onRenderGroupCell = function(e, t, n) {
return function(r, i) {
return e(t, r, i, n)
}
}
,
t.prototype._onRenderGroup = function(e) {
var t = this.props
, n = t.group
, r = t.items
, i = t.onRenderCell
, o = t.listProps
, a = t.groupNestingDepth
, s = t.onShouldVirtualize
, c = t.groupProps
, u = n && !n.isShowingAll ? n.count : r.length
, d = n ? n.startIndex : 0;
return l.createElement(NE, Object(zn.a)({
role: c && c.role ? c.role : "rowgroup",
"aria-label": null == n ? void 0 : n.name,
items: r,
onRenderCell: this._onRenderGroupCell(i, a, n),
ref: this._list,
renderCount: Math.min(u, e),
startIndex: d,
onShouldVirtualize: s,
id: this._id
}, o))
}
,
t.prototype._returnOne = function() {
return 1
}
,
t.prototype._getGroupKey = function(e, t) {
return "group-" + (e && e.key ? e.key : String(e.level) + String(t))
}
,
t.prototype._getDroppingClassName = function() {
var e = this.state.isDropping
, t = this.props
, n = t.group
, r = t.groupedListClassNames;
return ip((e = !(!n || !e)) && this._droppingClassName, e && "is-dropping", e && r && r.groupIsDropping)
}
,
t
}(l.Component)
, LE = Sg()
, RE = NT.rowHeight
, PE = NT.compactRowHeight
, BE = jg(function(e) {
function t(t) {
var n = e.call(this, t) || this;
n._list = l.createRef(),
n._renderGroup = function(e, t) {
var r = n.props
, i = r.dragDropEvents
, o = r.dragDropHelper
, a = r.eventsToRegister
, s = r.groupProps
, c = r.items
, u = r.listProps
, d = r.onRenderCell
, p = r.selectionMode
, h = r.selection
, f = r.viewport
, b = r.onShouldVirtualize
, g = r.groups
, m = r.compact
, v = {
onToggleSelectGroup: n._onToggleSelectGroup,
onToggleCollapse: n._onToggleCollapse,
onToggleSummarize: n._onToggleSummarize
}
, y = Object(zn.a)(Object(zn.a)({}, s.headerProps), v)
, x = Object(zn.a)(Object(zn.a)({}, s.showAllProps), v)
, O = Object(zn.a)(Object(zn.a)({}, s.footerProps), v)
, j = n._getGroupNestingDepth();
if (!s.showEmptyGroups && e && 0 === e.count)
return null;
var k = Object(zn.a)(Object(zn.a)({}, u || {}), {
version: n.state.version
});
return l.createElement(DE, {
key: n._getGroupKey(e, t),
dragDropEvents: i,
dragDropHelper: o,
eventsToRegister: a,
footerProps: O,
getGroupItemLimit: s && s.getGroupItemLimit,
group: e,
groupIndex: t,
groupNestingDepth: j,
groupProps: s,
headerProps: y,
listProps: k,
items: c,
onRenderCell: d,
onRenderGroupHeader: s.onRenderHeader,
onRenderGroupShowAll: s.onRenderShowAll,
onRenderGroupFooter: s.onRenderFooter,
selectionMode: p,
selection: h,
showAllProps: x,
viewport: f,
onShouldVirtualize: b,
groupedListClassNames: n._classNames,
groups: g,
compact: m
})
}
,
n._getDefaultGroupItemLimit = function(e) {
return e.children && e.children.length > 0 ? e.children.length : e.count
}
,
n._getGroupItemLimit = function(e) {
var t = n.props.groupProps;
return (t && t.getGroupItemLimit ? t.getGroupItemLimit : n._getDefaultGroupItemLimit)(e)
}
,
n._getGroupHeight = function(e) {
var t = n.props.compact ? PE : RE;
return t + (e.isCollapsed ? 0 : t * n._getGroupItemLimit(e))
}
,
n._getPageHeight = function(e) {
var t = n.state.groups
, r = n.props.getGroupHeight
, i = void 0 === r ? n._getGroupHeight : r
, o = t && t[e];
return o ? i(o, e) : 0
}
,
n._onToggleCollapse = function(e) {
var t = n.props.groupProps
, r = t && t.headerProps && t.headerProps.onToggleCollapse;
e && (r && r(e),
e.isCollapsed = !e.isCollapsed,
n._updateIsSomeGroupExpanded(),
n.forceUpdate())
}
,
n._onToggleSelectGroup = function(e) {
var t = n.props
, r = t.selection
, i = t.selectionMode;
e && r && i === MT.multiple && r.toggleRangeSelected(e.startIndex, e.count)
}
,
n._isInnerZoneKeystroke = function(e) {
return e.which === yp(bp)
}
,
n._onToggleSummarize = function(e) {
var t = n.props.groupProps
, r = t && t.showAllProps && t.showAllProps.onToggleSummarize;
r ? r(e) : (e && (e.isShowingAll = !e.isShowingAll),
n.forceUpdate())
}
,
n._getPageSpecification = function(e) {
var t = n.state.groups
, r = t && t[e];
return {
key: r && r.key
}
}
,
Kb(n),
n._isSomeGroupExpanded = n._computeIsSomeGroupExpanded(t.groups);
var r = t.listProps
, i = (void 0 === r ? {} : r).version
, o = void 0 === i ? {} : i;
return n.state = {
groups: t.groups,
items: t.items,
listProps: t.listProps,
version: o
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
var n = e.groups
, r = e.selectionMode
, i = e.compact
, o = e.items
, a = e.listProps
, l = a && a.version
, s = Object(zn.a)(Object(zn.a)({}, t), {
selectionMode: r,
compact: i,
groups: n,
listProps: a
})
, c = !1;
return l === (t.listProps && t.listProps.version) && o === t.items && n === t.groups && r === t.selectionMode && i === t.compact || (c = !0),
n !== t.groups && (s = Object(zn.a)(Object(zn.a)({}, s), {
groups: n
})),
r === t.selectionMode && i === t.compact || (c = !0),
c && (s = Object(zn.a)(Object(zn.a)({}, s), {
version: {}
})),
s
}
,
t.prototype.scrollToIndex = function(e, t, n) {
this._list.current && this._list.current.scrollToIndex(e, t, n)
}
,
t.prototype.getStartItemIndexInView = function() {
return this._list.current.getStartItemIndexInView() || 0
}
,
t.prototype.componentDidMount = function() {
var e = this.props
, t = e.groupProps
, n = e.groups
, r = void 0 === n ? [] : n;
t && t.isAllGroupsCollapsed && this._setGroupsCollapsedState(r, t.isAllGroupsCollapsed)
}
,
t.prototype.render = function() {
var e = this.props
, t = e.className
, n = e.usePageCache
, r = e.onShouldVirtualize
, i = e.theme
, o = e.role
, a = void 0 === o ? "treegrid" : o
, s = e.styles
, c = e.compact
, u = e.focusZoneProps
, d = void 0 === u ? {} : u
, p = e.rootListProps
, h = void 0 === p ? {} : p
, f = this.state
, b = f.groups
, g = f.version;
this._classNames = LE(s, {
theme: i,
className: t,
compact: c
});
var m = d.shouldEnterInnerZone
, v = void 0 === m ? this._isInnerZoneKeystroke : m;
return l.createElement(Kv, Object(zn.a)({
direction: Hg.vertical,
"data-automationid": "GroupedList",
"data-is-scrollable": "false",
role: "presentation"
}, d, {
shouldEnterInnerZone: v,
className: ip(this._classNames.root, d.className)
}), b ? l.createElement(NE, Object(zn.a)({
ref: this._list,
role: a,
items: b,
onRenderCell: this._renderGroup,
getItemCountForPage: this._returnOne,
getPageHeight: this._getPageHeight,
getPageSpecification: this._getPageSpecification,
usePageCache: n,
onShouldVirtualize: r,
version: g
}, h)) : this._renderGroup(void 0, 0))
}
,
t.prototype.forceUpdate = function() {
e.prototype.forceUpdate.call(this),
this._forceListUpdates()
}
,
t.prototype.toggleCollapseAll = function(e) {
var t = this.state.groups
, n = void 0 === t ? [] : t
, r = this.props.groupProps
, i = r && r.onToggleCollapseAll;
n.length > 0 && (i && i(e),
this._setGroupsCollapsedState(n, e),
this._updateIsSomeGroupExpanded(),
this.forceUpdate())
}
,
t.prototype._setGroupsCollapsedState = function(e, t) {
for (var n = 0; n < e.length; n++)
e[n].isCollapsed = t
}
,
t.prototype._returnOne = function() {
return 1
}
,
t.prototype._getGroupKey = function(e, t) {
return "group-" + (e && e.key ? e.key : String(t))
}
,
t.prototype._getGroupNestingDepth = function() {
for (var e = 0, t = this.state.groups; t && t.length > 0; )
e++,
t = t[0].children;
return e
}
,
t.prototype._forceListUpdates = function(e) {
this.setState({
version: {}
})
}
,
t.prototype._computeIsSomeGroupExpanded = function(e) {
var t = this;
return !(!e || !e.some((function(e) {
return e.children ? t._computeIsSomeGroupExpanded(e.children) : !e.isCollapsed
}
)))
}
,
t.prototype._updateIsSomeGroupExpanded = function() {
var e = this.state.groups
, t = this.props.onGroupExpandStateChanged
, n = this._computeIsSomeGroupExpanded(e);
this._isSomeGroupExpanded !== n && (t && t(n),
this._isSomeGroupExpanded = n)
}
,
t.defaultProps = {
selectionMode: MT.multiple,
isHeaderVisible: !0,
groupProps: {},
compact: !1
},
t
}(l.Component), (function(e) {
var t, n, r = e.theme, i = e.className, o = e.compact, a = r.palette, l = Vi(gE, r);
return {
root: [l.root, r.fonts.small, {
position: "relative",
selectors: (t = {},
t["." + l.listCell] = {
minHeight: 38
},
t)
}, o && [l.compact, {
selectors: (n = {},
n["." + l.listCell] = {
minHeight: 32
},
n)
}], i],
group: [l.group, {
transition: "background-color " + ti + " cubic-bezier(0.445, 0.050, 0.550, 0.950)"
}],
groupIsDropping: {
backgroundColor: a.neutralLight
}
}
}
), void 0, {
scope: "GroupedList"
});
function FE(e) {
var t;
return e && (e === window ? t = {
left: 0,
top: 0,
width: window.innerWidth,
height: window.innerHeight,
right: window.innerWidth,
bottom: window.innerHeight
} : e.getBoundingClientRect && (t = e.getBoundingClientRect())),
t
}
function VE(e) {
return function(t) {
function n(e) {
var n = t.call(this, e) || this;
return n._root = l.createRef(),
n._registerResizeObserver = function() {
var e = ji(n._root.current);
n._viewportResizeObserver = new e.ResizeObserver(n._onAsyncResize),
n._viewportResizeObserver.observe(n._root.current)
}
,
n._unregisterResizeObserver = function() {
n._viewportResizeObserver && (n._viewportResizeObserver.disconnect(),
delete n._viewportResizeObserver)
}
,
n._updateViewport = function(e) {
var t = n.state.viewport
, r = n._root.current
, i = FE(Cy(r))
, o = FE(r);
((o && o.width) !== t.width || (i && i.height) !== t.height) && n._resizeAttempts < 3 && o && i ? (n._resizeAttempts++,
n.setState({
viewport: {
width: o.width,
height: i.height
}
}, (function() {
n._updateViewport(e)
}
))) : (n._resizeAttempts = 0,
e && n._composedComponentInstance && n._composedComponentInstance.forceUpdate())
}
,
n._async = new $b(n),
n._events = new rg(n),
n._resizeAttempts = 0,
n.state = {
viewport: {
width: 0,
height: 0
}
},
n
}
return Object(zn.c)(n, t),
n.prototype.componentDidMount = function() {
var e = this
, t = this.props
, n = t.delayFirstMeasure
, r = t.disableResizeObserver
, i = t.skipViewportMeasures
, o = ji(this._root.current);
this._onAsyncResize = this._async.debounce(this._onAsyncResize, 500, {
leading: !1
}),
i || (!r && this._isResizeObserverAvailable() ? this._registerResizeObserver() : this._events.on(o, "resize", this._onAsyncResize),
n ? this._async.setTimeout((function() {
e._updateViewport()
}
), 500) : this._updateViewport())
}
,
n.prototype.componentDidUpdate = function(e) {
var t = e.skipViewportMeasures
, n = this.props
, r = n.disableResizeObserver
, i = n.skipViewportMeasures
, o = ji(this._root.current);
i !== t && (i ? (this._unregisterResizeObserver(),
this._events.off(o, "resize", this._onAsyncResize)) : (!r && this._isResizeObserverAvailable() ? this._viewportResizeObserver || this._registerResizeObserver() : this._events.on(o, "resize", this._onAsyncResize),
this._updateViewport()))
}
,
n.prototype.componentWillUnmount = function() {
this._events.dispose(),
this._async.dispose(),
this._unregisterResizeObserver()
}
,
n.prototype.render = function() {
var t = this.state.viewport
, n = t.width > 0 && t.height > 0 ? t : void 0;
return l.createElement("div", {
className: "ms-Viewport",
ref: this._root,
style: {
minWidth: 1,
minHeight: 1
}
}, l.createElement(e, Object(zn.a)({
ref: this._updateComposedComponentRef,
viewport: n
}, this.props)))
}
,
n.prototype.forceUpdate = function() {
this._updateViewport(!0)
}
,
n.prototype._onAsyncResize = function() {
this._updateViewport()
}
,
n.prototype._isResizeObserverAvailable = function() {
var e = ji(this._root.current);
return e && e.ResizeObserver
}
,
n
}(yO)
}
var WE = Sg()
, qE = 100
, HE = function(e) {
var t = e.selection
, n = e.ariaLabelForListHeader
, r = e.ariaLabelForSelectAllCheckbox
, i = e.ariaLabelForSelectionColumn
, o = e.className
, a = e.checkboxVisibility
, s = e.compact
, c = e.constrainMode
, u = e.dragDropEvents
, d = e.groups
, p = e.groupProps
, h = e.indentWidth
, f = e.items
, b = e.isPlaceholderData
, g = e.isHeaderVisible
, m = e.layoutMode
, v = e.onItemInvoked
, y = e.onItemContextMenu
, x = e.onColumnHeaderClick
, O = e.onColumnHeaderContextMenu
, j = e.selectionMode
, k = void 0 === j ? t.mode : j
, w = e.selectionPreservedOnEmptyClick
, C = e.selectionZoneProps
, _ = e.ariaLabel
, M = e.ariaLabelForGrid
, S = e.rowElementEventMap
, A = e.shouldApplyApplicationRole
, T = void 0 !== A && A
, E = e.getKey
, I = e.listProps
, N = e.usePageCache
, z = e.onShouldVirtualize
, D = e.viewport
, L = e.minimumPixelsForDrag
, R = e.getGroupHeight
, P = e.styles
, B = e.theme
, F = e.cellStyleProps
, V = void 0 === F ? IT : F
, W = e.onRenderCheckbox
, q = e.useFastIcons
, H = e.dragDropHelper
, U = e.adjustedColumns
, X = e.isCollapsed
, G = e.isSizing
, K = e.isSomeGroupExpanded
, Y = e.version
, Q = e.rootRef
, J = e.listRef
, Z = e.focusZoneRef
, $ = e.columnReorderOptions
, ee = e.groupedListRef
, te = e.headerRef
, ne = e.onGroupExpandStateChanged
, re = e.onColumnIsSizingChanged
, ie = e.onRowDidMount
, oe = e.onRowWillUnmount
, ae = e.disableSelectionZone
, le = e.onColumnResized
, se = e.onColumnAutoResized
, ce = e.onToggleCollapse
, ue = e.onActiveRowChanged
, de = e.onBlur
, pe = e.rowElementEventMap
, he = e.onRenderMissingItem
, fe = e.onRenderItemColumn
, be = e.getCellValueKey
, ge = e.getRowAriaLabel
, me = e.getRowAriaDescribedBy
, ve = e.checkButtonAriaLabel
, ye = e.checkButtonGroupAriaLabel
, xe = e.checkboxCellClassName
, Oe = e.useReducedRowRenderer
, je = e.enableUpdateAnimations
, ke = e.enterModalSelectionOnTouch
, we = e.onRenderDefaultRow
, Ce = e.selectionZoneRef
, _e = e.focusZoneProps
, Me = "grid"
, Se = e.role ? e.role : Me
, Ae = lg("row")
, Te = function(e) {
for (var t = 0, n = e; n && n.length > 0; )
t++,
n = n[0].children;
return t
}(d)
, Ee = function(e) {
return l.useMemo((function() {
var t = {};
if (e)
for (var n = 1, r = 1, i = 0, o = e; i < o.length; i++) {
var a = o[i];
t[a.key] = {
numOfGroupHeadersBeforeItem: r,
totalRowCount: n
},
r++,
n += a.count + 1
}
return t
}
), [e])
}(d)
, Ie = l.useMemo((function() {
return Object(zn.a)({
renderedWindowsAhead: G ? 0 : 2,
renderedWindowsBehind: G ? 0 : 2,
getKey: E,
version: Y
}, I)
}
), [G, E, Y, I])
, Ne = qT.none;
if (k === MT.single && (Ne = qT.hidden),
k === MT.multiple) {
var ze = p && p.headerProps && p.headerProps.isCollapsedGroupSelectVisible;
void 0 === ze && (ze = !0),
Ne = ze || !d || K ? qT.visible : qT.hidden
}
a === vT.hidden && (Ne = qT.none);
var De = l.useCallback((function(e) {
return l.createElement(rE, Object(zn.a)({}, e))
}
), [])
, Le = l.useCallback((function() {
return null
}
), [])
, Re = e.onRenderDetailsHeader
, Pe = l.useMemo((function() {
return Re ? qg(Re, De) : De
}
), [Re, De])
, Be = e.onRenderDetailsFooter
, Fe = l.useMemo((function() {
return Be ? qg(Be, Le) : Le
}
), [Be, Le])
, Ve = l.useMemo((function() {
return {
columns: U,
groupNestingDepth: Te,
selection: t,
selectionMode: k,
viewport: D,
checkboxVisibility: a,
indentWidth: h,
cellStyleProps: V
}
}
), [U, Te, t, k, D, a, h, V])
, We = $ && $.onDragEnd
, qe = l.useCallback((function(e, t) {
var n = e.dropLocation
, r = gT.outside;
if (We) {
if (n && n !== gT.header)
r = n;
else if (Q.current) {
var i = Q.current.getBoundingClientRect();
t.clientX > i.left && t.clientX < i.right && t.clientY > i.top && t.clientY < i.bottom && (r = gT.surface)
}
We(r)
}
}
), [We, Q])
, He = l.useMemo((function() {
if ($)
return Object(zn.a)(Object(zn.a)({}, $), {
onColumnDragEnd: qe
})
}
), [$, qe])
, Ue = (g ? 1 : 0) + function(e) {
var t = 0;
if (e)
for (var n = Object(zn.e)([], e), r = void 0; n && n.length > 0; )
++t,
(r = n.pop()) && r.children && n.push.apply(n, r.children);
return t
}(d) + (f ? f.length : 0)
, Xe = (Ne !== qT.none ? 1 : 0) + (U ? U.length : 0) + (d ? 1 : 0)
, Ge = l.useMemo((function() {
return WE(P, {
theme: B,
compact: s,
isFixed: m === mT.fixedColumns,
isHorizontalConstrained: c === bT.horizontalConstrained,
className: o
})
}
), [P, B, s, m, c, o])
, Ke = p && p.onRenderFooter
, Ye = l.useMemo((function() {
return Ke ? function(e, n) {
return Ke(Object(zn.a)(Object(zn.a)({}, e), {
columns: U,
groupNestingDepth: Te,
indentWidth: h,
selection: t,
selectionMode: k,
viewport: D,
checkboxVisibility: a,
cellStyleProps: V
}), n)
}
: void 0
}
), [Ke, U, Te, h, t, k, D, a, V])
, Qe = p && p.onRenderHeader
, Je = l.useMemo((function() {
return Qe ? function(e, n) {
var r, i, o = e.groupIndex, l = void 0 !== o ? null === (i = null === (r = e.groups) || void 0 === r ? void 0 : r[o]) || void 0 === i ? void 0 : i.key : void 0, s = void 0 !== l && Ee[l] ? Ee[l].totalRowCount : 0;
return Qe(Object(zn.a)(Object(zn.a)({}, e), {
columns: U,
groupNestingDepth: Te,
indentWidth: h,
selection: t,
selectionMode: a !== vT.hidden ? k : MT.none,
viewport: D,
checkboxVisibility: a,
cellStyleProps: V,
ariaColSpan: U.length,
ariaPosInSet: void 0,
ariaSetSize: void 0,
ariaRowCount: void 0,
ariaRowIndex: void 0 !== o ? s + (g ? 1 : 0) : void 0
}), n)
}
: function(e, t) {
var n, r, i = e.groupIndex, o = void 0 !== i ? null === (r = null === (n = e.groups) || void 0 === n ? void 0 : n[i]) || void 0 === r ? void 0 : r.key : void 0, a = void 0 !== o && Ee[o] ? Ee[o].totalRowCount : 0;
return t(Object(zn.a)(Object(zn.a)({}, e), {
ariaColSpan: U.length,
ariaPosInSet: void 0,
ariaSetSize: void 0,
ariaRowCount: void 0,
ariaRowIndex: void 0 !== i ? a + (g ? 1 : 0) : void 0
}))
}
}
), [Qe, U, Te, h, g, t, k, D, a, V, Ee])
, Ze = l.useMemo((function() {
var e;
return Object(zn.a)(Object(zn.a)({}, p), {
role: Se === Me ? "rowgroup" : "presentation",
onRenderFooter: Ye,
onRenderHeader: Je,
headerProps: Object(zn.a)(Object(zn.a)({}, null == p ? void 0 : p.headerProps), {
selectAllButtonProps: Object(zn.a)({
"aria-label": ye
}, null === (e = null == p ? void 0 : p.headerProps) || void 0 === e ? void 0 : e.selectAllButtonProps)
})
})
}
), [p, Ye, Je, ye, Se])
, $e = $y((function() {
return Li((function(e) {
var t = 0;
return e.forEach((function(e) {
return t += e.calculatedWidth || e.minWidth
}
)),
t
}
))
}
))
, et = p && p.collapseAllVisibility
, tt = l.useMemo((function() {
return $e(U)
}
), [U, $e])
, nt = l.useCallback((function(n, r, i, o) {
var l = e.onRenderRow ? qg(e.onRenderRow, we) : we
, c = o ? o.key : void 0
, d = c && Ee[c] ? Ee[c].numOfGroupHeadersBeforeItem : 0
, p = {
item: r,
itemIndex: i,
flatIndexOffset: (g ? 2 : 1) + d,
compact: s,
columns: U,
groupNestingDepth: n,
id: Ae + "-" + i,
selectionMode: k,
selection: t,
onDidMount: ie,
onWillUnmount: oe,
onRenderItemColumn: fe,
getCellValueKey: be,
eventsToRegister: pe,
dragDropEvents: u,
dragDropHelper: H,
viewport: D,
checkboxVisibility: a,
collapseAllVisibility: et,
getRowAriaLabel: ge,
getRowAriaDescribedBy: me,
checkButtonAriaLabel: ve,
checkboxCellClassName: xe,
useReducedRowRenderer: Oe,
indentWidth: h,
cellStyleProps: V,
onRenderDetailsCheckbox: W,
enableUpdateAnimations: je,
rowWidth: tt,
useFastIcons: q,
role: Se === Me ? void 0 : "presentation"
};
return r ? l(p) : he ? he(i, p) : null
}
), [s, U, k, t, Ae, ie, oe, fe, be, pe, u, H, D, a, et, ge, me, g, ve, xe, Oe, h, V, W, je, q, we, he, e.onRenderRow, tt, Se, Ee])
, rt = l.useCallback((function(e) {
return function(t, n) {
return nt(e, t, n)
}
}
), [nt])
, it = l.useCallback((function(e) {
return e.which === yp(bp, B)
}
), [B])
, ot = Object(zn.a)(Object(zn.a)({}, _e), {
componentRef: Z,
className: Ge.focusZone,
direction: _e ? _e.direction : Hg.vertical,
shouldEnterInnerZone: _e && _e.shouldEnterInnerZone ? _e.shouldEnterInnerZone : it,
onActiveElementChanged: _e && _e.onActiveElementChanged ? _e.onActiveElementChanged : ue,
shouldRaiseClicksOnEnter: !1,
onBlur: _e && _e.onBlur ? _e.onBlur : de
})
, at = d ? l.createElement(BE, {
focusZoneProps: ot,
componentRef: ee,
groups: d,
groupProps: Ze,
items: f,
onRenderCell: nt,
role: "presentation",
selection: t,
selectionMode: a !== vT.hidden ? k : MT.none,
dragDropEvents: u,
dragDropHelper: H,
eventsToRegister: S,
listProps: Ie,
onGroupExpandStateChanged: ne,
usePageCache: N,
onShouldVirtualize: z,
getGroupHeight: R,
compact: s
}) : l.createElement(Kv, Object(zn.a)({}, ot), l.createElement(NE, Object(zn.a)({
ref: J,
role: "presentation",
items: f,
onRenderCell: rt(0),
usePageCache: N,
onShouldVirtualize: z
}, Ie)))
, lt = l.useCallback((function(e) {
e.which === gp && Z.current && Z.current.focus() && (0 === t.getSelectedIndices().length && t.setIndexSelected(0, !0, !1),
e.preventDefault(),
e.stopPropagation())
}
), [t, Z])
, st = l.useCallback((function(e) {
e.which !== fp || e.altKey || te.current && te.current.focus() && (e.preventDefault(),
e.stopPropagation())
}
), [te]);
return l.createElement("div", Object(zn.a)({
ref: Q,
className: Ge.root,
"data-automationid": "DetailsList",
"data-is-scrollable": "false",
"aria-label": _
}, T ? {
role: "application"
} : {}), l.createElement(bg, null), l.createElement("div", {
role: Se,
"aria-label": M,
"aria-rowcount": b ? -1 : Ue,
"aria-colcount": Xe,
"aria-readonly": "true",
"aria-busy": b
}, l.createElement("div", {
onKeyDown: lt,
role: "presentation",
className: Ge.headerWrapper
}, g && Pe({
componentRef: te,
selectionMode: k,
layoutMode: m,
selection: t,
columns: U,
onColumnClick: x,
onColumnContextMenu: O,
onColumnResized: le,
onColumnIsSizingChanged: re,
onColumnAutoResized: se,
groupNestingDepth: Te,
isAllCollapsed: X,
onToggleCollapseAll: ce,
ariaLabel: n,
ariaLabelForSelectAllCheckbox: r,
ariaLabelForSelectionColumn: i,
selectAllVisibility: Ne,
collapseAllVisibility: p && p.collapseAllVisibility,
viewport: D,
columnReorderProps: He,
minimumPixelsForDrag: L,
cellStyleProps: V,
checkboxVisibility: a,
indentWidth: h,
onRenderDetailsCheckbox: W,
rowWidth: $e(U),
useFastIcons: q
}, Pe)), l.createElement("div", {
onKeyDown: st,
role: "presentation",
className: Ge.contentWrapper
}, ae ? at : l.createElement(hE, Object(zn.a)({
ref: Ce,
selection: t,
selectionPreservedOnEmptyClick: w,
selectionMode: k,
onItemInvoked: v,
onItemContextMenu: y,
enterModalOnTouch: ke
}, C || {}), at)), Fe(Object(zn.a)({}, Ve))))
}
, UE = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._root = l.createRef(),
n._header = l.createRef(),
n._groupedList = l.createRef(),
n._list = l.createRef(),
n._focusZone = l.createRef(),
n._selectionZone = l.createRef(),
n._onRenderRow = function(e, t) {
return l.createElement(sE, Object(zn.a)({}, e))
}
,
n._getDerivedStateFromProps = function(e, t) {
var r = n.props
, i = r.checkboxVisibility
, o = r.items
, a = r.setKey
, l = r.selectionMode
, s = void 0 === l ? n._selection.mode : l
, c = r.columns
, u = r.viewport
, d = r.compact
, p = r.dragDropEvents
, h = (n.props.groupProps || {}).isAllGroupsCollapsed
, f = void 0 === h ? void 0 : h
, b = e.viewport && e.viewport.width || 0
, g = u && u.width || 0
, m = e.setKey !== a || void 0 === e.setKey
, v = !1;
e.layoutMode !== n.props.layoutMode && (v = !0);
var y = t;
return m && (n._initialFocusedIndex = e.initialFocusedIndex,
y = Object(zn.a)(Object(zn.a)({}, y), {
focusedItemIndex: void 0 !== n._initialFocusedIndex ? n._initialFocusedIndex : -1
})),
n.props.disableSelectionZone || e.items === o || n._selection.setItems(e.items, m),
e.checkboxVisibility === i && e.columns === c && b === g && e.compact === d || (v = !0),
y = Object(zn.a)(Object(zn.a)({}, y), n._adjustColumns(e, y, !0)),
e.selectionMode !== s && (v = !0),
void 0 === f && e.groupProps && void 0 !== e.groupProps.isAllGroupsCollapsed && (y = Object(zn.a)(Object(zn.a)({}, y), {
isCollapsed: e.groupProps.isAllGroupsCollapsed,
isSomeGroupExpanded: !e.groupProps.isAllGroupsCollapsed
})),
e.dragDropEvents !== p && (n._dragDropHelper && n._dragDropHelper.dispose(),
n._dragDropHelper = e.dragDropEvents ? new UT({
selection: n._selection,
minimumPixelsForDrag: e.minimumPixelsForDrag
}) : void 0,
v = !0),
v && (y = Object(zn.a)(Object(zn.a)({}, y), {
version: {}
})),
y
}
,
n._onGroupExpandStateChanged = function(e) {
n.setState({
isSomeGroupExpanded: e
})
}
,
n._onColumnIsSizingChanged = function(e, t) {
n.setState({
isSizing: t
})
}
,
n._onRowDidMount = function(e) {
var t = e.props
, r = t.item
, i = t.itemIndex
, o = n._getItemKey(r, i);
n._activeRows[o] = e,
n._setFocusToRowIfPending(e);
var a = n.props.onRowDidMount;
a && a(r, i)
}
,
n._onRowWillUnmount = function(e) {
var t = n.props.onRowWillUnmount
, r = e.props
, i = r.item
, o = r.itemIndex
, a = n._getItemKey(i, o);
delete n._activeRows[a],
t && t(i, o)
}
,
n._onToggleCollapse = function(e) {
n.setState({
isCollapsed: e
}),
n._groupedList.current && n._groupedList.current.toggleCollapseAll(e)
}
,
n._onColumnResized = function(e, t, r) {
var i = Math.max(e.minWidth || qE, t);
n.props.onColumnResize && n.props.onColumnResize(e, i, r),
n._rememberCalculatedWidth(e, i),
n.setState(Object(zn.a)(Object(zn.a)({}, n._adjustColumns(n.props, n.state, !0, r)), {
version: {}
}))
}
,
n._onColumnAutoResized = function(e, t) {
var r = 0
, i = 0
, o = Object.keys(n._activeRows).length;
for (var a in n._activeRows)
n._activeRows.hasOwnProperty(a) && n._activeRows[a].measureCell(t, (function(a) {
r = Math.max(r, a),
++i === o && n._onColumnResized(e, r, t)
}
))
}
,
n._onActiveRowChanged = function(e, t) {
var r = n.props
, i = r.items
, o = r.onActiveItemChanged;
if (e && e.getAttribute("data-item-index")) {
var a = Number(e.getAttribute("data-item-index"));
a >= 0 && (o && o(i[a], a, t),
n.setState({
focusedItemIndex: a
}))
}
}
,
n._onBlur = function(e) {
n.setState({
focusedItemIndex: -1
})
}
,
Kb(n),
n._async = new $b(n),
n._activeRows = {},
n._columnOverrides = {},
n.state = {
focusedItemIndex: -1,
lastWidth: 0,
adjustedColumns: n._getAdjustedColumns(t, void 0),
isSizing: !1,
isCollapsed: t.groupProps && t.groupProps.isAllGroupsCollapsed,
isSomeGroupExpanded: t.groupProps && !t.groupProps.isAllGroupsCollapsed,
version: {},
getDerivedStateFromProps: n._getDerivedStateFromProps
},
n._selection = t.selection || new fE({
onSelectionChanged: void 0,
getKey: t.getKey,
selectionMode: t.selectionMode
}),
n.props.disableSelectionZone || n._selection.setItems(t.items, !1),
n._dragDropHelper = t.dragDropEvents ? new UT({
selection: n._selection,
minimumPixelsForDrag: t.minimumPixelsForDrag
}) : void 0,
n._initialFocusedIndex = t.initialFocusedIndex,
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
return t.getDerivedStateFromProps(e, t)
}
,
t.prototype.scrollToIndex = function(e, t, n) {
this._list.current && this._list.current.scrollToIndex(e, t, n),
this._groupedList.current && this._groupedList.current.scrollToIndex(e, t, n)
}
,
t.prototype.focusIndex = function(e, t, n, r) {
void 0 === t && (t = !1);
var i = this.props.items[e];
if (i) {
this.scrollToIndex(e, n, r);
var o = this._getItemKey(i, e)
, a = this._activeRows[o];
a && this._setFocusToRow(a, t)
}
}
,
t.prototype.getStartItemIndexInView = function() {
return this._list && this._list.current ? this._list.current.getStartItemIndexInView() : this._groupedList && this._groupedList.current ? this._groupedList.current.getStartItemIndexInView() : 0
}
,
t.prototype.componentWillUnmount = function() {
this._dragDropHelper && this._dragDropHelper.dispose(),
this._async.dispose()
}
,
t.prototype.componentDidUpdate = function(e, t) {
if (this._notifyColumnsResized(),
void 0 !== this._initialFocusedIndex && (o = this.props.items[this._initialFocusedIndex])) {
var n = this._getItemKey(o, this._initialFocusedIndex);
(r = this._activeRows[n]) && this._setFocusToRowIfPending(r)
}
if (this.props.items !== e.items && this.props.items.length > 0 && -1 !== this.state.focusedItemIndex && !Yv(this._root.current, document.activeElement, !1)) {
var r, i = this.state.focusedItemIndex < this.props.items.length ? this.state.focusedItemIndex : this.props.items.length - 1, o = this.props.items[i];
n = this._getItemKey(o, this.state.focusedItemIndex),
(r = this._activeRows[n]) ? this._setFocusToRow(r) : this._initialFocusedIndex = i
}
this.props.onDidUpdate && this.props.onDidUpdate(this)
}
,
t.prototype.render = function() {
return l.createElement(HE, Object(zn.a)({}, this.props, this.state, {
selection: this._selection,
dragDropHelper: this._dragDropHelper,
rootRef: this._root,
listRef: this._list,
groupedListRef: this._groupedList,
focusZoneRef: this._focusZone,
headerRef: this._header,
selectionZoneRef: this._selectionZone,
onGroupExpandStateChanged: this._onGroupExpandStateChanged,
onColumnIsSizingChanged: this._onColumnIsSizingChanged,
onRowDidMount: this._onRowDidMount,
onRowWillUnmount: this._onRowWillUnmount,
onColumnResized: this._onColumnResized,
onColumnAutoResized: this._onColumnAutoResized,
onToggleCollapse: this._onToggleCollapse,
onActiveRowChanged: this._onActiveRowChanged,
onBlur: this._onBlur,
onRenderDefaultRow: this._onRenderRow
}))
}
,
t.prototype.forceUpdate = function() {
e.prototype.forceUpdate.call(this),
this._forceListUpdates()
}
,
t.prototype._getGroupNestingDepth = function() {
for (var e = 0, t = this.props.groups; t && t.length > 0; )
e++,
t = t[0].children;
return e
}
,
t.prototype._setFocusToRowIfPending = function(e) {
var t = e.props.itemIndex;
void 0 !== this._initialFocusedIndex && t === this._initialFocusedIndex && (this._setFocusToRow(e),
delete this._initialFocusedIndex)
}
,
t.prototype._setFocusToRow = function(e, t) {
void 0 === t && (t = !1),
this._selectionZone.current && this._selectionZone.current.ignoreNextFocus(),
this._async.setTimeout((function() {
e.focus(t)
}
), 0)
}
,
t.prototype._forceListUpdates = function() {
this._groupedList.current && this._groupedList.current.forceUpdate(),
this._list.current && this._list.current.forceUpdate()
}
,
t.prototype._notifyColumnsResized = function() {
this.state.adjustedColumns.forEach((function(e) {
e.onColumnResize && e.onColumnResize(e.currentWidth)
}
))
}
,
t.prototype._adjustColumns = function(e, t, n, r) {
var i = this._getAdjustedColumns(e, t, n, r)
, o = this.props.viewport
, a = o && o.width ? o.width : 0;
return Object(zn.a)(Object(zn.a)({}, t), {
adjustedColumns: i,
lastWidth: a
})
}
,
t.prototype._getAdjustedColumns = function(e, t, n, r) {
var i, o = this, a = e.items, l = e.layoutMode, s = e.selectionMode, c = e.viewport, u = c && c.width ? c.width : 0, d = e.columns, p = this.props ? this.props.columns : [], h = t ? t.lastWidth : -1, f = t ? t.lastSelectionMode : void 0;
return n || h !== u || f !== s || p && d !== p ? (d = d || function(e, t, n, r, i, o, a) {
var l = [];
if (e && e.length) {
var s = e[0];
for (var c in s)
s.hasOwnProperty(c) && l.push({
key: c,
name: c,
fieldName: c,
minWidth: qE,
maxWidth: 300,
isCollapsable: !!l.length,
isCollapsible: !!l.length,
isMultiline: !1,
isSorted: undefined === c,
isSortedDescending: !1,
isRowHeader: !1,
columnActionsMode: fT.clickable,
isResizable: true,
onColumnClick: undefined,
isGrouped: undefined === c
})
}
return l
}(a),
l === mT.fixedColumns ? (i = this._getFixedColumns(d, u, e)).forEach((function(e) {
o._rememberCalculatedWidth(e, e.calculatedWidth)
}
)) : (i = this._getJustifiedColumns(d, u, e)).forEach((function(e) {
o._getColumnOverride(e.key).currentWidth = e.calculatedWidth
}
)),
i) : d || []
}
,
t.prototype._getFixedColumns = function(e, t, n) {
var r = this
, i = this.props
, o = i.selectionMode
, a = void 0 === o ? this._selection.mode : o
, l = i.checkboxVisibility
, s = i.flexMargin
, c = i.skipViewportMeasures
, u = t - (s || 0)
, d = 0;
e.forEach((function(e) {
c || !e.flexGrow ? u -= e.maxWidth || e.minWidth || qE : (u -= e.minWidth || qE,
d += e.flexGrow),
u -= XE(e, n, !0)
}
));
var p = a !== MT.none && l !== vT.hidden ? 48 : 0
, h = 36 * this._getGroupNestingDepth()
, f = (u -= p + h) / d;
return c || e.forEach((function(e) {
var t = Object(zn.a)(Object(zn.a)({}, e), r._columnOverrides[e.key]);
if (t.flexGrow && t.maxWidth) {
var n = t.flexGrow * f + t.minWidth
, i = n - t.maxWidth;
i > 0 && (u += i,
d -= i / (n - t.minWidth) * t.flexGrow)
}
}
)),
f = u > 0 ? u / d : 0,
e.map((function(e) {
var t = Object(zn.a)(Object(zn.a)({}, e), r._columnOverrides[e.key]);
return !c && t.flexGrow && u <= 0 || t.calculatedWidth || (!c && t.flexGrow ? (t.calculatedWidth = t.minWidth + t.flexGrow * f,
t.calculatedWidth = Math.min(t.calculatedWidth, t.maxWidth || Number.MAX_VALUE)) : t.calculatedWidth = t.maxWidth || t.minWidth || qE),
t
}
))
}
,
t.prototype._getJustifiedColumns = function(e, t, n) {
var r = this
, i = n.selectionMode
, o = void 0 === i ? this._selection.mode : i
, a = n.checkboxVisibility
, l = o !== MT.none && a !== vT.hidden ? 48 : 0
, s = 36 * this._getGroupNestingDepth()
, c = 0
, u = 0
, d = t - (l + s)
, p = e.map((function(e, t) {
var i = Object(zn.a)(Object(zn.a)({}, e), {
calculatedWidth: e.minWidth || qE
})
, o = Object(zn.a)(Object(zn.a)({}, i), r._columnOverrides[e.key]);
return i.isCollapsible || i.isCollapsable || (u += XE(i, n)),
c += XE(o, n),
o
}
));
if (u > d)
return p;
for (var h = p.length - 1; h >= 0 && c > d; ) {
var f = (v = p[h]).minWidth || qE
, b = c - d;
if (v.calculatedWidth - f >= b || !v.isCollapsible && !v.isCollapsable) {
var g = v.calculatedWidth;
v.calculatedWidth = Math.max(v.calculatedWidth - b, f),
c -= g - v.calculatedWidth
} else
c -= XE(v, n),
p.splice(h, 1);
h--
}
for (var m = 0; m < p.length && c < d; m++) {
var v = p[m]
, y = m === p.length - 1
, x = this._columnOverrides[v.key];
if (!x || !x.calculatedWidth || y) {
var O = d - c
, j = void 0;
if (y)
j = O;
else {
var k = v.maxWidth;
f = v.minWidth || k || qE,
j = k ? Math.min(O, k - f) : O
}
v.calculatedWidth = v.calculatedWidth + j,
c += j
}
}
return p
}
,
t.prototype._rememberCalculatedWidth = function(e, t) {
var n = this._getColumnOverride(e.key);
n.calculatedWidth = t,
n.currentWidth = t
}
,
t.prototype._getColumnOverride = function(e) {
return this._columnOverrides[e] = this._columnOverrides[e] || {}
}
,
t.prototype._getItemKey = function(e, t) {
var n = this.props.getKey
, r = void 0;
return e && (r = e.key),
n && (r = n(e, t)),
r || (r = t),
r
}
,
t.defaultProps = {
layoutMode: mT.justified,
selectionMode: MT.multiple,
constrainMode: bT.horizontalConstrained,
checkboxVisibility: vT.onHover,
isHeaderVisible: !0,
compact: !1,
useFastIcons: !0
},
Object(zn.b)([VE], t)
}(l.Component);
function XE(e, t, n) {
var r = t.cellStyleProps
, i = void 0 === r ? IT : r;
return (n ? 0 : e.calculatedWidth) + i.cellLeftPadding + i.cellRightPadding + (e.isPadded ? i.cellExtraRightPadding : 0)
}
var GE = {
root: "ms-DetailsList",
compact: "ms-DetailsList--Compact",
contentWrapper: "ms-DetailsList-contentWrapper",
headerWrapper: "ms-DetailsList-headerWrapper",
isFixed: "is-fixed",
isHorizontalConstrained: "is-horizontalConstrained",
listCell: "ms-List-cell"
}
, KE = jg(UE, (function(e) {
var t, n, r = e.theme, i = e.className, o = e.isHorizontalConstrained, a = e.compact, l = e.isFixed, s = r.semanticColors, c = Vi(GE, r);
return {
root: [c.root, r.fonts.small, {
position: "relative",
color: s.listText,
selectors: (t = {},
t["& ." + c.listCell] = {
minHeight: 38,
wordBreak: "break-word"
},
t)
}, l && c.isFixed, a && [c.compact, {
selectors: (n = {},
n["." + c.listCell] = {
minHeight: 32
},
n)
}], o && [c.isHorizontalConstrained, {
overflowX: "auto",
overflowY: "visible",
WebkitOverflowScrolling: "touch"
}], i],
focusZone: [{
display: "inline-block",
minWidth: "100%",
minHeight: 1
}],
headerWrapper: c.headerWrapper,
contentWrapper: c.contentWrapper
}
}
), void 0, {
scope: "DetailsList"
});
function YE() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
if (e && 1 === e.length && e[0] && !e[0].subComponentStyles && !Sw(e[0]))
return e[0];
for (var n = {}, r = {}, i = 0, o = e; i < o.length; i++) {
var a = o[i];
if (a && !Sw(a))
for (var l in a)
if (a.hasOwnProperty(l)) {
if ("subComponentStyles" === l && void 0 !== a.subComponentStyles) {
var s = a.subComponentStyles;
for (var c in s)
s.hasOwnProperty(c) && (r.hasOwnProperty(c) ? r[c].push(s[c]) : r[c] = [s[c]]);
continue
}
var u = n[l]
, d = a[l];
n[l] = void 0 === u ? d : Object(zn.e)(Object(zn.e)([], Array.isArray(u) ? u : [u], !0), Array.isArray(d) ? d : [d], !0)
}
}
if (Object.keys(r).length > 0) {
n.subComponentStyles = {};
var p = n.subComponentStyles
, h = function(e) {
if (r.hasOwnProperty(e)) {
var t = r[e];
p[e] = function(e) {
return YE.apply(void 0, t.map((function(t) {
return "function" == typeof t ? t(e) : t
}
)))
}
}
};
for (var c in r)
h(c)
}
return n
}
function QE(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
for (var r = [], i = 0, o = t; i < o.length; i++) {
var a = o[i];
a && r.push("function" == typeof a ? a(e) : a)
}
return 1 === r.length ? r[0] : r.length ? YE.apply(void 0, r) : {}
}
var JE = "undefined" != typeof document && Array.isArray(document.adoptedStyleSheets) && "replace"in CSSStyleSheet.prototype;
if (JE)
try {
document.adoptedStyleSheets.push()
} catch (e) {}
var ZE, $E = {};
try {
$E = window || {}
} catch (e) {}
!function(e) {
function t(n, r) {
var i = e.call(this, n, r) || this;
return i._onAddSheetCallbacks = [],
i._sheetCounter = 0,
i._adoptableSheets = new Map,
$E.__shadow_dom_stylesheet__ = t,
i
}
Object(zn.c)(t, e),
t.getInstance = function(e) {
var n = e || Mw
, r = n.stylesheetKey || _w
, i = n.inShadow
, o = n.window || ("undefined" != typeof window ? window : void 0)
, a = o || $E
, l = o ? o.document : "undefined" != typeof document ? document : void 0
, s = (ZE = a.__stylesheet__) && !ZE.getAdoptedSheets;
if (!ZE || s || ZE._lastStyleElement && ZE._lastStyleElement.ownerDocument !== l) {
var c = (null == a ? void 0 : a.FabricConfig) || {}
, u = {
window: o,
inShadow: i,
stylesheetKey: r
};
c.mergeStyles = c.mergeStyles || {},
c.mergeStyles = Object(zn.a)(Object(zn.a)({}, u), c.mergeStyles);
var d = void 0;
s ? function(e, t, n, r) {
var i;
if (void 0 === t && (t = !1),
r) {
var o = r.querySelectorAll("[data-merge-styles]");
if (o) {
e.setConfig({
window: n,
inShadow: t,
stylesheetKey: _w
});
for (var a = 0; a < o.length; a++) {
var l = o[a];
l.setAttribute("data-merge-styles-global", "true");
for (var s = (null === (i = l.sheet) || void 0 === i ? void 0 : i.cssRules) || [], c = 0; c < s.length; c++) {
var u = s[c];
e.insertRule(u.cssText)
}
}
}
}
}(d = new t(c.mergeStyles,JSON.parse(ZE.serialize())), i, o, l) : d = new t(c.mergeStyles,c.serializedStylesheet),
ZE = d,
a.__stylesheet__ = ZE
} else
ZE.setConfig({
window: o,
inShadow: i,
stylesheetKey: r
});
return o && ZE._getAdoptableStyleSheet(r),
ZE
}
,
t.prototype.getAdoptedSheets = function() {
return this._adoptableSheets
}
,
t.prototype.onAddSheet = function(e) {
var t = this;
return this._onAddSheetCallbacks.push(e),
function() {
t._onAddSheetCallbacks = t._onAddSheetCallbacks.filter((function(t) {
return t !== e
}
))
}
}
,
t.prototype.insertRule = function(t, n) {
var r = this._config
, i = r.injectionMode
, o = r.stylesheetKey
, a = void 0 === o ? _w : o
, l = 0 !== i
, s = a === _w || !!this._adoptableSheets.has(a)
, c = void 0;
l && s && (c = this._getAdoptableStyleSheet(a)),
c && this._insertRuleIntoSheet(c, t),
e.prototype.insertRule.call(this, t, n, a)
}
,
t.prototype._getCacheKey = function(t) {
var n = this._config
, r = n.inShadow
, i = void 0 !== r && r
, o = n.stylesheetKey;
return i ? "__".concat(void 0 === o ? _w : o, "__").concat(t) : e.prototype._getCacheKey.call(this, t)
}
,
t.prototype._createStyleElement = function() {
var t = e.prototype._createStyleElement.call(this);
return this._config.stylesheetKey === _w && t.setAttribute("data-merge-styles-global", "true"),
t
}
,
t.prototype._makeCSSStyleSheet = function() {
var e = this._config.window || window
, t = void 0;
return (t = JE ? new e.CSSStyleSheet : this._createStyleElement().sheet) && (t.bucketName = "merge-styles",
t.metadata = {
stylesheetKey: this._config.stylesheetKey || _w,
sortOrder: this._sheetCounter++
}),
t
}
,
t.prototype._addAdoptableStyleSheet = function(e, t, n) {
var r = this;
if (void 0 === n && (n = !0),
!this._adoptableSheets.has(e)) {
this._adoptableSheets.set(e, t);
var i = this._config.window;
n && i && i.queueMicrotask((function() {
r._onAddSheetCallbacks.forEach((function(n) {
return n({
key: e,
sheet: t
})
}
))
}
))
}
}
,
t.prototype._getAdoptableStyleSheet = function(e) {
var t = this._adoptableSheets.get(e);
return t || (t = this._makeCSSStyleSheet(),
this._addAdoptableStyleSheet(e, t)),
t
}
}(Ew);
var eI = l.createContext({
window: "object" == typeof window ? window : void 0
})
, tI = function() {
return l.useContext(eI).window
}
, nI = l.createContext(void 0)
, rI = function() {
return l.useContext(nI)
}
, iI = function() {
return !1
}
, oI = function() {}
, aI = l.createContext({
stylesheets: new Map,
useAdoptedStylesheetEx: iI,
useAdoptedStylesheet: iI,
useShadowConfig: function() {
return Mw
},
useMergeStylesShadowRootContext: oI,
useHasMergeStylesShadowRootContext: iI,
useMergeStylesRootStylesheets: function() {
return new Map
},
useWindow: oI,
useStyled: oI
})
, lI = function() {
var e = l.useContext(aI);
return {
useAdoptedStylesheet: e.useAdoptedStylesheet,
useAdoptedStylesheetEx: e.useAdoptedStylesheetEx,
useShadowConfig: e.useShadowConfig,
useMergeStylesShadowRootContext: e.useMergeStylesShadowRootContext,
useHasMergeStylesShadowRootContext: e.useHasMergeStylesShadowRootContext,
useMergeStylesRootStylesheets: e.useMergeStylesRootStylesheets,
useWindow: e.useWindow,
useStyled: e.useStyled
}
}
, sI = 0
, cI = function() {
function e() {}
return e.getValue = function(e, t) {
var n = uI();
return void 0 === n[e] && (n[e] = "function" == typeof t ? t() : t),
n[e]
}
,
e.setValue = function(e, t) {
var n = uI()
, r = n.__callbacks__
, i = n[e];
if (t !== i) {
n[e] = t;
var o = {
oldValue: i,
value: t,
key: e
};
for (var a in r)
r.hasOwnProperty(a) && r[a](o)
}
return t
}
,
e.addChangeListener = function(e) {
var t = e.__id__
, n = dI();
t || (t = e.__id__ = String(sI++)),
n[t] = e
}
,
e.removeChangeListener = function(e) {
delete dI()[e.__id__]
}
,
e
}();
function uI() {
var e, t = ww() || {};
return t.__globalSettings__ || (t.__globalSettings__ = ((e = {}).__callbacks__ = {},
e)),
t.__globalSettings__
}
function dI() {
return uI().__callbacks__
}
var pI = {
settings: {},
scopedSettings: {},
inCustomizerContext: !1
}
, hI = cI.getValue("customizations", {
settings: {},
scopedSettings: {},
inCustomizerContext: !1
})
, fI = []
, bI = function() {
function e() {}
return e.reset = function() {
hI.settings = {},
hI.scopedSettings = {}
}
,
e.applySettings = function(t) {
hI.settings = Object(zn.a)(Object(zn.a)({}, hI.settings), t),
e._raiseChange()
}
,
e.applyScopedSettings = function(t, n) {
hI.scopedSettings[t] = Object(zn.a)(Object(zn.a)({}, hI.scopedSettings[t]), n),
e._raiseChange()
}
,
e.getSettings = function(e, t, n) {
void 0 === n && (n = pI);
for (var r = {}, i = t && n.scopedSettings[t] || {}, o = t && hI.scopedSettings[t] || {}, a = 0, l = e; a < l.length; a++) {
var s = l[a];
r[s] = i[s] || n.settings[s] || o[s] || hI.settings[s]
}
return r
}
,
e.applyBatchedUpdates = function(t, n) {
e._suppressUpdates = !0;
try {
t()
} catch (e) {}
e._suppressUpdates = !1,
n || e._raiseChange()
}
,
e.observe = function(e) {
fI.push(e)
}
,
e.unobserve = function(e) {
fI = fI.filter((function(t) {
return t !== e
}
))
}
,
e._raiseChange = function() {
e._suppressUpdates || fI.forEach((function(e) {
return e()
}
))
}
,
e
}()
, gI = l.createContext({
customizations: {
inCustomizerContext: !1,
settings: {},
scopedSettings: {}
}
});
var mI, vI = ["theme", "styles"];
function yI(e, t, n, r, i) {
var o = (r = r || {
scope: "",
fields: void 0
}).scope
, a = r.fields
, s = void 0 === a ? vI : a
, c = l.forwardRef((function(r, i) {
var a = l.useRef()
, c = function(e, t) {
var n = function() {
var e = l.useState(0)[1];
return function() {
return e((function(e) {
return ++e
}
))
}
}()
, r = l.useContext(gI).customizations
, i = r.inCustomizerContext;
return l.useEffect((function() {
return i || bI.observe(n),
function() {
i || bI.unobserve(n)
}
}
), [i]),
bI.getSettings(e, t, r)
}(s, o)
, u = c.styles
, d = (c.dir,
Object(zn.d)(c, ["styles", "dir"]))
, p = n ? n(r) : void 0
, h = lI().useStyled
, f = a.current && a.current.__cachedInputs__ || []
, b = r.styles;
if (!a.current || u !== f[1] || b !== f[2]) {
var g = function(e) {
return QE(e, t, u, b)
};
g.__cachedInputs__ = [t, u, b],
g.__noStyleOverride__ = !u && !b,
a.current = g
}
return a.current.__shadowConfig__ = h(o),
l.createElement(e, Object(zn.a)({
ref: i
}, d, p, r, {
styles: a.current
}))
}
));
c.displayName = "Styled".concat(e.displayName || e.name);
var u = i ? l.memo(c) : c;
return c.displayName && (u.displayName = c.displayName),
u
}
function xI(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = []
, i = []
, o = e;
return function e(t) {
for (var n = 0, a = t; n < a.length; n++) {
var l = a[n];
if (l && !Sw(l))
if ("string" == typeof l)
if (l.indexOf(" ") >= 0)
e(l.split(" "));
else {
var s = o.argsFromClassName(l);
s ? e(s) : -1 === r.indexOf(l) && r.push(l)
}
else
Array.isArray(l) ? e(l) : "object" == typeof l && i.push(l)
}
}(t),
{
classes: r,
objects: i
}
}
function OI(e) {
mI !== e && (mI = e)
}
function jI() {
return void 0 === mI && (mI = "undefined" != typeof document && !!document.documentElement && "rtl" === document.documentElement.getAttribute("dir")),
mI
}
function kI() {
return {
rtl: jI(),
shadowConfig: Mw
}
}
mI = jI();
var wI, CI = {};
function _I(e, t) {
var n = e[t];
"-" !== n.charAt(0) && (e[t] = CI[n] = CI[n] || n.replace(/([A-Z])/g, "-$1").toLowerCase())
}
var MI = {
"user-select": 1
};
function SI(e, t) {
var n = function() {
var e;
if (!wI) {
var t = "undefined" != typeof document ? document : void 0
, n = "undefined" != typeof navigator ? navigator : void 0
, r = null === (e = null == n ? void 0 : n.userAgent) || void 0 === e ? void 0 : e.toLowerCase();
wI = t ? {
isWebkit: !(!t || !("WebkitAppearance"in t.documentElement.style)),
isMoz: !!(r && r.indexOf("firefox") > -1),
isOpera: !!(r && r.indexOf("opera") > -1),
isMs: !(!n || !/rv:11.0/i.test(n.userAgent) && !/Edge\/\d./i.test(navigator.userAgent))
} : {
isWebkit: !0,
isMoz: !0,
isOpera: !0,
isMs: !0
}
}
return wI
}()
, r = e[t];
if (MI[r]) {
var i = e[t + 1];
MI[r] && (n.isWebkit && e.push("-webkit-" + r, i),
n.isMoz && e.push("-moz-" + r, i),
n.isMs && e.push("-ms-" + r, i),
n.isOpera && e.push("-o-" + r, i))
}
}
var AI, TI = ["column-count", "font-weight", "flex", "flex-grow", "flex-shrink", "fill-opacity", "opacity", "order", "z-index", "zoom"];
function EI(e, t) {
var n = e[t]
, r = e[t + 1];
if ("number" == typeof r) {
var i = TI.indexOf(n) > -1
, o = n.indexOf("--") > -1
, a = i || o ? "" : "px";
e[t + 1] = "".concat(r).concat(a)
}
}
var II = "left"
, NI = "right"
, zI = ((AI = {}).left = NI,
AI.right = II,
AI)
, DI = {
"w-resize": "e-resize",
"sw-resize": "se-resize",
"nw-resize": "ne-resize"
};
function LI(e, t, n) {
if (e.rtl) {
var r = t[n];
if (!r)
return;
var i = t[n + 1];
if ("string" == typeof i && i.indexOf("@noflip") >= 0)
t[n + 1] = i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g, "");
else if (r.indexOf(II) >= 0)
t[n] = r.replace(II, NI);
else if (r.indexOf(NI) >= 0)
t[n] = r.replace(NI, II);
else if (String(i).indexOf(II) >= 0)
t[n + 1] = i.replace(II, NI);
else if (String(i).indexOf(NI) >= 0)
t[n + 1] = i.replace(NI, II);
else if (zI[r])
t[n] = zI[r];
else if (DI[i])
t[n + 1] = DI[i];
else
switch (r) {
case "margin":
case "padding":
t[n + 1] = function(e) {
if ("string" == typeof e) {
var t = e.split(" ");
if (4 === t.length)
return "".concat(t[0], " ").concat(t[3], " ").concat(t[2], " ").concat(t[1])
}
return e
}(i);
break;
case "box-shadow":
t[n + 1] = function(e, t) {
var n = e.split(" ")
, r = parseInt(n[0], 10);
return n[0] = n[0].replace(String(r), String(-1 * r)),
n.join(" ")
}(i)
}
}
}
var RI = /\:global\((.+?)\)/g;
function PI(e, t) {
return e.indexOf(":global(") >= 0 ? e.replace(RI, "$1") : 0 === e.indexOf(":host(") ? e : 0 === e.indexOf(":") ? t + e : e.indexOf("&") < 0 ? t + " " + e : e
}
function BI(e, t, n, r, i) {
void 0 === t && (t = {
__order: []
}),
0 === n.indexOf("@") ? FI([r], t, n = n + "{" + e, i) : n.indexOf(",") > -1 ? function(e) {
if (!RI.test(e))
return e;
for (var t = [], n = /\:global\((.+?)\)/g, r = null; r = n.exec(e); )
r[1].indexOf(",") > -1 && t.push([r.index, r.index + r[0].length, r[1].split(",").map((function(e) {
return ":global(".concat(e.trim(), ")")
}
)).join(", ")]);
return t.reverse().reduce((function(e, t) {
var n = t[0]
, r = t[1]
, i = t[2];
return e.slice(0, n) + i + e.slice(r)
}
), e)
}(n).split(",").map((function(e) {
return e.trim()
}
)).forEach((function(n) {
return FI([r], t, PI(n, e), i)
}
)) : FI([r], t, PI(n, e), i)
}
function FI(e, t, n, r) {
void 0 === t && (t = {
__order: []
}),
void 0 === n && (n = "&");
var i = t[n];
i || (i = {},
t[n] = i,
t.__order.push(n));
for (var o = 0, a = e; o < a.length; o++) {
var l = a[o];
if ("string" == typeof l) {
var s = r.argsFromClassName(l);
s && FI(s, t, n, r)
} else if (Array.isArray(l))
FI(l, t, n, r);
else
for (var c in l)
if (l.hasOwnProperty(c)) {
var u = l[c];
if ("selectors" === c) {
var d = l.selectors;
for (var p in d)
d.hasOwnProperty(p) && BI(n, t, p, d[p], r)
} else
"object" == typeof u ? null !== u && BI(n, t, c, u, r) : void 0 !== u && ("margin" === c || "padding" === c ? VI(i, c, u) : i[c] = u)
}
}
return t
}
function VI(e, t, n) {
var r = "string" == typeof n ? function(e) {
for (var t = [], n = 0, r = 0, i = 0; i < e.length; i++)
switch (e[i]) {
case "(":
r++;
break;
case ")":
r && r--;
break;
case "\t":
case " ":
r || (i > n && t.push(e.substring(n, i)),
n = i + 1)
}
return n < e.length && t.push(e.substring(n)),
t
}(n) : [n];
0 === r.length && r.push(n),
"!important" === r[r.length - 1] && (r = r.slice(0, -1).map((function(e) {
return e + " !important"
}
))),
e[t + "Top"] = r[0],
e[t + "Right"] = r[1] || r[0],
e[t + "Bottom"] = r[2] || r[0],
e[t + "Left"] = r[3] || r[1] || r[0]
}
function WI(e, t) {
return t <= 0 ? "" : 1 === t ? e : e + WI(e, t - 1)
}
function qI(e, t) {
if (!t)
return "";
var n = [];
for (var r in t)
t.hasOwnProperty(r) && "displayName" !== r && void 0 !== t[r] && n.push(r, t[r]);
for (var i = 0; i < n.length; i += 2)
_I(n, i),
EI(n, i),
LI(e, n, i),
SI(n, i);
for (i = 1; i < n.length; i += 4)
n.splice(i, 1, ":", n[i], ";");
return n.join("")
}
function HI(e) {
for (var t, n = [], r = 1; r < arguments.length; r++)
n[r - 1] = arguments[r];
var i = null !== (t = e.stylesheet) && void 0 !== t ? t : Ew.getInstance(e.shadowConfig)
, o = FI(n, void 0, void 0, i)
, a = function(e, t) {
for (var n = [e.rtl ? "rtl" : "ltr"], r = !1, i = 0, o = t.__order; i < o.length; i++) {
var a = o[i];
n.push(a);
var l = t[a];
for (var s in l)
l.hasOwnProperty(s) && void 0 !== l[s] && (r = !0,
n.push(s, l[s]))
}
return r ? n.join("") : void 0
}(e, o);
if (a) {
var l = {
className: i.classNameFromKey(a),
key: a,
args: n
};
if (!l.className) {
l.className = i.getClassName(function(e) {
var t = e && e["&"];
return t ? t.displayName : void 0
}(o));
for (var s = [], c = 0, u = o.__order; c < u.length; c++) {
var d = u[c];
s.push(d, qI(e, o[d]))
}
l.rulesToInsert = s
}
return l
}
}
function UI(e, t, n, r) {
void 0 === t && (t = 1);
var i = null != r ? r : Ew.getInstance(n)
, o = e.className
, a = e.key
, l = e.args
, s = e.rulesToInsert;
if (s) {
for (var c = 0; c < s.length; c += 2) {
var u = s[c + 1];
if (u) {
var d = s[c];
d = d.replace(/&/g, WI(".".concat(e.className), t));
var p = "".concat(d, "{").concat(u, "}").concat(0 === d.indexOf("@") ? "}" : "");
i.insertRule(p)
}
}
i.cacheClassName(o, a, l, s)
}
}
function XI() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return function(e, t) {
var n = e instanceof Array ? e : [e]
, r = t || {};
Sw(n[0]) && (r.shadowConfig = n[0]),
r.stylesheet = Ew.getInstance(r.shadowConfig);
var i = xI(r.stylesheet, n)
, o = i.classes
, a = i.objects;
return a.length && o.push(function(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = HI.apply(void 0, Object(zn.e)([e], t, !1));
return r ? (UI(r, e.specificityMultiplier, e.shadowConfig, e.stylesheet),
r.className) : ""
}(r, a)),
o.join(" ")
}(e, kI())
}
function GI(e) {
var t = Ew.getInstance()
, n = [];
for (var r in e)
e.hasOwnProperty(r) && n.push(r, "{", qI(kI(), e[r]), "}");
var i = n.join("")
, o = t.classNameFromKey(i);
if (o)
return o;
var a = t.getClassName();
return t.insertRule("@keyframes ".concat(a, "{").concat(i, "}"), !0),
t.cacheClassName(a, i, [], ["keyframes", i]),
a
}
var KI = "cubic-bezier(.1,.9,.2,1)"
, YI = "cubic-bezier(.1,.25,.75,.9)"
, QI = "0.167s"
, JI = "0.267s"
, ZI = "0.367s"
, $I = "0.467s"
, eN = GI({
from: {
opacity: 0
},
to: {
opacity: 1
}
})
, tN = GI({
from: {
opacity: 1
},
to: {
opacity: 0,
visibility: "hidden"
}
})
, nN = NN(-10)
, rN = NN(-20)
, iN = NN(-40)
, oN = NN(-400)
, aN = NN(10)
, lN = NN(20)
, sN = NN(40)
, cN = NN(400)
, uN = zN(10)
, dN = zN(20)
, pN = zN(-10)
, hN = zN(-20)
, fN = DN(10)
, bN = DN(20)
, gN = DN(40)
, mN = DN(400)
, vN = DN(-10)
, yN = DN(-20)
, xN = DN(-40)
, ON = DN(-400)
, jN = LN(-10)
, kN = LN(-20)
, wN = LN(10)
, CN = LN(20)
, _N = GI({
from: {
transform: "scale3d(.98,.98,1)"
},
to: {
transform: "scale3d(1,1,1)"
}
})
, MN = GI({
from: {
transform: "scale3d(1,1,1)"
},
to: {
transform: "scale3d(.98,.98,1)"
}
})
, SN = GI({
from: {
transform: "scale3d(1.03,1.03,1)"
},
to: {
transform: "scale3d(1,1,1)"
}
})
, AN = GI({
from: {
transform: "scale3d(1,1,1)"
},
to: {
transform: "scale3d(1.03,1.03,1)"
}
})
, TN = GI({
from: {
transform: "rotateZ(0deg)"
},
to: {
transform: "rotateZ(90deg)"
}
})
, EN = GI({
from: {
transform: "rotateZ(0deg)"
},
to: {
transform: "rotateZ(-90deg)"
}
});
function IN(e, t, n) {
return {
animationName: e,
animationDuration: t,
animationTimingFunction: n,
animationFillMode: "both"
}
}
function NN(e) {
return GI({
from: {
transform: "translate3d(".concat(e, "px,0,0)"),
pointerEvents: "none"
},
to: {
transform: "translate3d(0,0,0)",
pointerEvents: "auto"
}
})
}
function zN(e) {
return GI({
from: {
transform: "translate3d(0,".concat(e, "px,0)"),
pointerEvents: "none"
},
to: {
transform: "translate3d(0,0,0)",
pointerEvents: "auto"
}
})
}
function DN(e) {
return GI({
from: {
transform: "translate3d(0,0,0)"
},
to: {
transform: "translate3d(".concat(e, "px,0,0)")
}
})
}
function LN(e) {
return GI({
from: {
transform: "translate3d(0,0,0)"
},
to: {
transform: "translate3d(0,".concat(e, "px,0)")
}
})
}
var RN, PN, BN, FN, VN, WN = function(e) {
var t = {}
, n = function(n) {
var r;
e.hasOwnProperty(n) && Object.defineProperty(t, n, {
get: function() {
return void 0 === r && (r = XI(e[n]).toString()),
r
},
enumerable: !0,
configurable: !0
})
};
for (var r in e)
n(r);
return t
}({
slideRightIn10: IN("".concat(eN, ",").concat(nN), ZI, KI),
slideRightIn20: IN("".concat(eN, ",").concat(rN), ZI, KI),
slideRightIn40: IN("".concat(eN, ",").concat(iN), ZI, KI),
slideRightIn400: IN("".concat(eN, ",").concat(oN), ZI, KI),
slideLeftIn10: IN("".concat(eN, ",").concat(aN), ZI, KI),
slideLeftIn20: IN("".concat(eN, ",").concat(lN), ZI, KI),
slideLeftIn40: IN("".concat(eN, ",").concat(sN), ZI, KI),
slideLeftIn400: IN("".concat(eN, ",").concat(cN), ZI, KI),
slideUpIn10: IN("".concat(eN, ",").concat(uN), ZI, KI),
slideUpIn20: IN("".concat(eN, ",").concat(dN), ZI, KI),
slideDownIn10: IN("".concat(eN, ",").concat(pN), ZI, KI),
slideDownIn20: IN("".concat(eN, ",").concat(hN), ZI, KI),
slideRightOut10: IN("".concat(tN, ",").concat(fN), ZI, KI),
slideRightOut20: IN("".concat(tN, ",").concat(bN), ZI, KI),
slideRightOut40: IN("".concat(tN, ",").concat(gN), ZI, KI),
slideRightOut400: IN("".concat(tN, ",").concat(mN), ZI, KI),
slideLeftOut10: IN("".concat(tN, ",").concat(vN), ZI, KI),
slideLeftOut20: IN("".concat(tN, ",").concat(yN), ZI, KI),
slideLeftOut40: IN("".concat(tN, ",").concat(xN), ZI, KI),
slideLeftOut400: IN("".concat(tN, ",").concat(ON), ZI, KI),
slideUpOut10: IN("".concat(tN, ",").concat(jN), ZI, KI),
slideUpOut20: IN("".concat(tN, ",").concat(kN), ZI, KI),
slideDownOut10: IN("".concat(tN, ",").concat(wN), ZI, KI),
slideDownOut20: IN("".concat(tN, ",").concat(CN), ZI, KI),
scaleUpIn100: IN("".concat(eN, ",").concat(_N), ZI, KI),
scaleDownIn100: IN("".concat(eN, ",").concat(SN), ZI, KI),
scaleUpOut103: IN("".concat(tN, ",").concat(AN), QI, YI),
scaleDownOut98: IN("".concat(tN, ",").concat(MN), QI, YI),
fadeIn100: IN(eN, QI, YI),
fadeIn200: IN(eN, JI, YI),
fadeIn400: IN(eN, ZI, YI),
fadeIn500: IN(eN, $I, YI),
fadeOut100: IN(tN, QI, YI),
fadeOut200: IN(tN, JI, YI),
fadeOut400: IN(tN, ZI, YI),
fadeOut500: IN(tN, $I, YI),
rotate90deg: IN(TN, "0.1s", YI),
rotateN90deg: IN(EN, "0.1s", YI)
});
!function(e) {
e.Arabic = "Segoe UI Web (Arabic)",
e.Cyrillic = "Segoe UI Web (Cyrillic)",
e.EastEuropean = "Segoe UI Web (East European)",
e.Greek = "Segoe UI Web (Greek)",
e.Hebrew = "Segoe UI Web (Hebrew)",
e.Thai = "Leelawadee UI Web",
e.Vietnamese = "Segoe UI Web (Vietnamese)",
e.WestEuropean = "Segoe UI Web (West European)",
e.Selawik = "Selawik Web",
e.Armenian = "Segoe UI Web (Armenian)",
e.Georgian = "Segoe UI Web (Georgian)"
}(RN || (RN = {})),
function(e) {
e.Arabic = "'".concat(RN.Arabic, "'"),
e.ChineseSimplified = "'Microsoft Yahei UI', Verdana, Simsun",
e.ChineseTraditional = "'Microsoft Jhenghei UI', Pmingliu",
e.Cyrillic = "'".concat(RN.Cyrillic, "'"),
e.EastEuropean = "'".concat(RN.EastEuropean, "'"),
e.Greek = "'".concat(RN.Greek, "'"),
e.Hebrew = "'".concat(RN.Hebrew, "'"),
e.Hindi = "'Nirmala UI'",
e.Japanese = "'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",
e.Korean = "'Malgun Gothic', Gulim",
e.Selawik = "'".concat(RN.Selawik, "'"),
e.Thai = "'Leelawadee UI Web', 'Kmer UI'",
e.Vietnamese = "'".concat(RN.Vietnamese, "'"),
e.WestEuropean = "'".concat(RN.WestEuropean, "'"),
e.Armenian = "'".concat(RN.Armenian, "'"),
e.Georgian = "'".concat(RN.Georgian, "'")
}(PN || (PN = {})),
function(e) {
e.size10 = "10px",
e.size12 = "12px",
e.size14 = "14px",
e.size16 = "16px",
e.size18 = "18px",
e.size20 = "20px",
e.size24 = "24px",
e.size28 = "28px",
e.size32 = "32px",
e.size42 = "42px",
e.size68 = "68px",
e.mini = "10px",
e.xSmall = "10px",
e.small = "12px",
e.smallPlus = "12px",
e.medium = "14px",
e.mediumPlus = "16px",
e.icon = "16px",
e.large = "18px",
e.xLarge = "20px",
e.xLargePlus = "24px",
e.xxLarge = "28px",
e.xxLargePlus = "32px",
e.superLarge = "42px",
e.mega = "68px"
}(BN || (BN = {})),
function(e) {
e.light = 100,
e.semilight = 300,
e.regular = 400,
e.semibold = 600,
e.bold = 700
}(FN || (FN = {})),
function(e) {
e.xSmall = "10px",
e.small = "12px",
e.medium = "16px",
e.large = "20px"
}(VN || (VN = {}));
var qN = {
position: "absolute",
width: 1,
height: 1,
margin: -1,
padding: 0,
border: 0,
overflow: "hidden",
whiteSpace: "nowrap"
}
, HN = !1
, UN = 0
, XN = {
empty: !0
}
, GN = {}
, KN = "undefined" == typeof WeakMap ? null : WeakMap;
function YN() {
UN++
}
function QN(e, t, n) {
if (void 0 === t && (t = 100),
void 0 === n && (n = !1),
!KN)
return e;
if (!HN) {
var r = Ew.getInstance();
r && r.onReset && Ew.getInstance().onReset(YN),
HN = !0
}
var i, o = 0, a = UN;
return function() {
for (var r = [], l = 0; l < arguments.length; l++)
r[l] = arguments[l];
var s = i;
(void 0 === i || a !== UN || t > 0 && o > t) && (i = $N(),
o = 0,
a = UN),
s = i;
for (var c = 0; c < r.length; c++) {
var u = ZN(r[c]);
s.map.has(u) || s.map.set(u, $N()),
s = s.map.get(u)
}
return s.hasOwnProperty("value") || (s.value = e.apply(void 0, r),
o++),
!n || null !== s.value && void 0 !== s.value || (s.value = e.apply(void 0, r)),
s.value
}
}
function JN(e) {
if (!KN)
return e;
var t = new KN;
return function(n) {
if (!n || "function" != typeof n && "object" != typeof n)
return e(n);
if (t.has(n))
return t.get(n);
var r = e(n);
return t.set(n, r),
r
}
}
function ZN(e) {
return e ? "object" == typeof e || "function" == typeof e ? e : (GN[e] || (GN[e] = {
val: e
}),
GN[e]) : XN
}
function $N() {
return {
map: KN ? new KN : null
}
}
var ez = QN((function(e, t) {
var n = Ew.getInstance();
return t ? Object.keys(e).reduce((function(t, r) {
return t[r] = n.getClassName(e[r]),
t
}
), {}) : e
}
));
function tz(e, t, n) {
return ez(e, void 0 !== n ? n : t.disableGlobalClassNames)
}
var nz = "@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";
function rz(e, t) {
var n = "number" == typeof e ? " and (min-width: ".concat(e, "px)") : ""
, r = "number" == typeof t ? " and (max-width: ".concat(t, "px)") : "";
return "@media only screen".concat(n).concat(r)
}
var iz, oz = "ms-Fabric--isFocusVisible", az = "ms-Fabric--isFocusHidden";
function lz(e, t) {
e && (e.classList.add(t ? oz : az),
e.classList.remove(t ? az : oz))
}
function sz(e, t, n) {
var r;
n ? n.forEach((function(t) {
return lz(t.current, e)
}
)) : lz(null === (r = ww(t)) || void 0 === r ? void 0 : r.document.body, e)
}
function cz(e, t, n, r, i, o, a, l) {
return function(e, t) {
var n, r;
void 0 === t && (t = {});
var i = t.borderRadius
, o = t.inset
, a = void 0 === o ? 0 : o
, l = t.width
, s = void 0 === l ? 1 : l
, c = t.position
, u = void 0 === c ? "relative" : c
, d = t.highContrastStyle
, p = t.borderColor
, h = void 0 === p ? e.palette.white : p
, f = t.outlineColor
, b = void 0 === f ? e.palette.neutralSecondary : f
, g = t.isFocusedOnly
, m = void 0 === g || g
, v = t.pointerEvents;
return {
outline: "transparent",
position: u,
selectors: (n = {
"::-moz-focus-inner": {
border: "0"
}
},
n[".".concat(oz, " &").concat(m ? ":focus" : "", ":after, :host(.").concat(oz, ") &").concat(m ? ":focus" : "", ":after")] = {
content: '""',
position: "absolute",
pointerEvents: v,
left: a + 1,
top: a + 1,
bottom: a + 1,
right: a + 1,
border: "".concat(s, "px solid ").concat(h),
outline: "".concat(s, "px solid ").concat(b),
zIndex: iz.FocusStyle,
borderRadius: i,
selectors: (r = {},
r[nz] = d,
r)
},
n)
}
}(e, "number" != typeof t && t ? t : {
inset: t,
position: n,
highContrastStyle: r,
borderColor: i,
outlineColor: o,
isFocusedOnly: a,
borderRadius: l
})
}
!function(e) {
e.Nav = 1,
e.ScrollablePane = 1,
e.FocusStyle = 1,
e.Coachmark = 1e3,
e.Layer = 1e6,
e.KeytipLayer = 1000001
}(iz || (iz = {}));
var uz, dz = {
themeDarker: "#004578",
themeDark: "#005a9e",
themeDarkAlt: "#106ebe",
themePrimary: "#0078d4",
themeSecondary: "#2b88d8",
themeTertiary: "#71afe5",
themeLight: "#c7e0f4",
themeLighter: "#deecf9",
themeLighterAlt: "#eff6fc",
black: "#000000",
blackTranslucent40: "rgba(0,0,0,.4)",
neutralDark: "#201f1e",
neutralPrimary: "#323130",
neutralPrimaryAlt: "#3b3a39",
neutralSecondary: "#605e5c",
neutralSecondaryAlt: "#8a8886",
neutralTertiary: "#a19f9d",
neutralTertiaryAlt: "#c8c6c4",
neutralQuaternary: "#d2d0ce",
neutralQuaternaryAlt: "#e1dfdd",
neutralLight: "#edebe9",
neutralLighter: "#f3f2f1",
neutralLighterAlt: "#faf9f8",
accent: "#0078d4",
white: "#ffffff",
whiteTranslucent40: "rgba(255,255,255,.4)",
yellowDark: "#d29200",
yellow: "#ffb900",
yellowLight: "#fff100",
orange: "#d83b01",
orangeLight: "#ea4300",
orangeLighter: "#ff8c00",
redDark: "#a4262c",
red: "#e81123",
magentaDark: "#5c005c",
magenta: "#b4009e",
magentaLight: "#e3008c",
purpleDark: "#32145a",
purple: "#5c2d91",
purpleLight: "#b4a0ff",
blueDark: "#002050",
blueMid: "#00188f",
blue: "#0078d4",
blueLight: "#00bcf2",
tealDark: "#004b50",
teal: "#008272",
tealLight: "#00b294",
greenDark: "#004b1c",
green: "#107c10",
greenLight: "#bad80a"
};
!function(e) {
e.depth0 = "0 0 0 0 transparent",
e.depth4 = "0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",
e.depth8 = "0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",
e.depth16 = "0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",
e.depth64 = "0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"
}(uz || (uz = {}));
var pz = {
elevation4: uz.depth4,
elevation8: uz.depth8,
elevation16: uz.depth16,
elevation64: uz.depth64,
roundedCorner2: "2px",
roundedCorner4: "4px",
roundedCorner6: "6px"
};
function hz(e) {
var t = Ew.getInstance()
, n = qI(kI(), e);
if (!t.classNameFromKey(n)) {
var r = t.getClassName();
t.insertRule("@font-face{".concat(n, "}"), !0),
t.cacheClassName(r, n, [], ["font-face", n])
}
}
var fz, bz = "'Segoe UI', '".concat(RN.WestEuropean, "'"), gz = {
ar: PN.Arabic,
bg: PN.Cyrillic,
cs: PN.EastEuropean,
el: PN.Greek,
et: PN.EastEuropean,
he: PN.Hebrew,
hi: PN.Hindi,
hr: PN.EastEuropean,
hu: PN.EastEuropean,
ja: PN.Japanese,
kk: PN.EastEuropean,
ko: PN.Korean,
lt: PN.EastEuropean,
lv: PN.EastEuropean,
pl: PN.EastEuropean,
ru: PN.Cyrillic,
sk: PN.EastEuropean,
"sr-latn": PN.EastEuropean,
th: PN.Thai,
tr: PN.EastEuropean,
uk: PN.Cyrillic,
vi: PN.Vietnamese,
"zh-hans": PN.ChineseSimplified,
"zh-hant": PN.ChineseTraditional,
hy: PN.Armenian,
ka: PN.Georgian
};
function mz(e, t, n) {
return {
fontFamily: n,
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontSize: e,
fontWeight: t
}
}
function vz(e) {
if (jw() && "undefined" != typeof document) {
var t = e;
return t && t.ownerDocument ? t.ownerDocument : document
}
}
function yz(e) {
var t = null;
try {
var n = ww();
t = n ? n.sessionStorage.getItem(e) : null
} catch (e) {}
return t
}
var xz = "language"
, Oz = function(e) {
var t = function(e) {
for (var t in gz)
if (gz.hasOwnProperty(t) && e && 0 === t.indexOf(e))
return gz[t];
return bz
}(e)
, n = "".concat(t, ", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");
return {
tiny: mz(BN.mini, FN.regular, n),
xSmall: mz(BN.xSmall, FN.regular, n),
small: mz(BN.small, FN.regular, n),
smallPlus: mz(BN.smallPlus, FN.regular, n),
medium: mz(BN.medium, FN.regular, n),
mediumPlus: mz(BN.mediumPlus, FN.regular, n),
large: mz(BN.large, FN.regular, n),
xLarge: mz(BN.xLarge, FN.semibold, n),
xLargePlus: mz(BN.xLargePlus, FN.semibold, n),
xxLarge: mz(BN.xxLarge, FN.semibold, n),
xxLargePlus: mz(BN.xxLargePlus, FN.semibold, n),
superLarge: mz(BN.superLarge, FN.semibold, n),
mega: mz(BN.mega, FN.semibold, n)
}
}(function(e) {
if (void 0 === e && (e = "sessionStorage"),
void 0 === fz) {
var t = vz()
, n = "localStorage" === e ? function(e) {
var t = null;
try {
var n = ww();
t = n ? n.localStorage.getItem(e) : null
} catch (e) {}
return t
}(xz) : "sessionStorage" === e ? yz(xz) : void 0;
n && (fz = n),
void 0 === fz && t && (fz = t.documentElement.getAttribute("lang")),
void 0 === fz && (fz = "en")
}
return fz
}());
function jz(e, t, n, r) {
hz({
fontFamily: e = "'".concat(e, "'"),
src: (void 0 !== r ? "local('".concat(r, "'),") : "") + "url('".concat(t, ".woff2') format('woff2'),") + "url('".concat(t, ".woff') format('woff')"),
fontWeight: n,
fontStyle: "normal",
fontDisplay: "swap"
})
}
function kz(e, t, n, r, i) {
void 0 === r && (r = "segoeui");
var o = "".concat(e, "/").concat(n, "/").concat(r);
jz(t, o + "-light", FN.light, i && i + " Light"),
jz(t, o + "-semilight", FN.semilight, i && i + " SemiLight"),
jz(t, o + "-regular", FN.regular, i),
jz(t, o + "-semibold", FN.semibold, i && i + " SemiBold"),
jz(t, o + "-bold", FN.bold, i && i + " Bold")
}
function wz(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
for (var r = 0, i = t; r < i.length; r++) {
Cz(e || {}, i[r])
}
return e
}
function Cz(e, t, n) {
for (var r in void 0 === n && (n = []),
n.push(t),
t)
if (t.hasOwnProperty(r) && "__proto__" !== r && "constructor" !== r && "prototype" !== r) {
var i = t[r];
if ("object" != typeof i || null === i || Array.isArray(i))
e[r] = i;
else {
var o = n.indexOf(i) > -1;
e[r] = o ? i : Cz(e[r] || {}, i, n)
}
}
return n.pop(),
e
}
function _z(e, t, n, r, i) {
return void 0 === i && (i = !1),
function(e, t) {
var n = "";
return !0 === t && (n = " /* @deprecated */"),
e.listTextColor = e.listText + n,
e.menuItemBackgroundChecked += n,
e.warningHighlight += n,
e.warningText = e.messageText + n,
e.successText += n,
e
}(Mz(e, t, Object(zn.a)({
primaryButtonBorder: "transparent",
errorText: r ? "#F1707B" : "#a4262c",
messageText: r ? "#F3F2F1" : "#323130",
messageLink: r ? "#6CB8F6" : "#005A9E",
messageLinkHovered: r ? "#82C7FF" : "#004578",
infoIcon: r ? "#C8C6C4" : "#605e5c",
errorIcon: r ? "#F1707B" : "#A80000",
blockingIcon: r ? "#442726" : "#FDE7E9",
warningIcon: r ? "#C8C6C4" : "#797775",
severeWarningIcon: r ? "#FCE100" : "#D83B01",
successIcon: r ? "#92C353" : "#107C10",
infoBackground: r ? "#323130" : "#f3f2f1",
errorBackground: r ? "#442726" : "#FDE7E9",
blockingBackground: r ? "#442726" : "#FDE7E9",
warningBackground: r ? "#433519" : "#FFF4CE",
severeWarningBackground: r ? "#4F2A0F" : "#FED9CC",
successBackground: r ? "#393D1B" : "#DFF6DD",
warningHighlight: r ? "#fff100" : "#ffb900",
successText: r ? "#92c353" : "#107C10"
}, n), r), i)
}
function Mz(e, t, n, r, i) {
void 0 === i && (i = !1);
var o = {}
, a = e || {}
, l = a.white
, s = a.black
, c = a.themePrimary
, u = a.themeDark
, d = a.themeDarker
, p = a.themeDarkAlt
, h = a.themeLighter
, f = a.neutralLight
, b = a.neutralLighter
, g = a.neutralDark
, m = a.neutralQuaternary
, v = a.neutralQuaternaryAlt
, y = a.neutralPrimary
, x = a.neutralSecondary
, O = a.neutralSecondaryAlt
, j = a.neutralTertiary
, k = a.neutralTertiaryAlt
, w = a.neutralLighterAlt
, C = a.accent;
return l && (o.bodyBackground = l,
o.bodyFrameBackground = l,
o.accentButtonText = l,
o.buttonBackground = l,
o.primaryButtonText = l,
o.primaryButtonTextHovered = l,
o.primaryButtonTextPressed = l,
o.inputBackground = l,
o.inputForegroundChecked = l,
o.listBackground = l,
o.menuBackground = l,
o.cardStandoutBackground = l),
s && (o.bodyTextChecked = s,
o.buttonTextCheckedHovered = s),
c && (o.link = c,
o.primaryButtonBackground = c,
o.inputBackgroundChecked = c,
o.inputIcon = c,
o.inputFocusBorderAlt = c,
o.menuIcon = c,
o.menuHeader = c,
o.accentButtonBackground = c),
u && (o.primaryButtonBackgroundPressed = u,
o.inputBackgroundCheckedHovered = u,
o.inputIconHovered = u),
d && (o.linkHovered = d),
p && (o.primaryButtonBackgroundHovered = p),
h && (o.inputPlaceholderBackgroundChecked = h),
f && (o.bodyBackgroundChecked = f,
o.bodyFrameDivider = f,
o.bodyDivider = f,
o.variantBorder = f,
o.buttonBackgroundCheckedHovered = f,
o.buttonBackgroundPressed = f,
o.listItemBackgroundChecked = f,
o.listHeaderBackgroundPressed = f,
o.menuItemBackgroundPressed = f,
o.menuItemBackgroundChecked = f),
b && (o.bodyBackgroundHovered = b,
o.buttonBackgroundHovered = b,
o.buttonBackgroundDisabled = b,
o.buttonBorderDisabled = b,
o.primaryButtonBackgroundDisabled = b,
o.disabledBackground = b,
o.listItemBackgroundHovered = b,
o.listHeaderBackgroundHovered = b,
o.menuItemBackgroundHovered = b),
m && (o.primaryButtonTextDisabled = m,
o.disabledSubtext = m),
v && (o.listItemBackgroundCheckedHovered = v),
j && (o.disabledBodyText = j,
o.variantBorderHovered = (null == n ? void 0 : n.variantBorderHovered) || j,
o.buttonTextDisabled = j,
o.inputIconDisabled = j,
o.disabledText = j),
y && (o.bodyText = y,
o.actionLink = y,
o.buttonText = y,
o.inputBorderHovered = y,
o.inputText = y,
o.listText = y,
o.menuItemText = y),
w && (o.bodyStandoutBackground = w,
o.defaultStateBackground = w),
g && (o.actionLinkHovered = g,
o.buttonTextHovered = g,
o.buttonTextChecked = g,
o.buttonTextPressed = g,
o.inputTextHovered = g,
o.menuItemTextHovered = g),
x && (o.bodySubtext = x,
o.focusBorder = x,
o.inputBorder = x,
o.smallInputBorder = x,
o.inputPlaceholderText = x),
O && (o.buttonBorder = O),
k && (o.disabledBodySubtext = k,
o.disabledBorder = k,
o.buttonBackgroundChecked = k,
o.menuDivider = k),
C && (o.accentButtonBackground = C),
(null == t ? void 0 : t.elevation4) && (o.cardShadow = t.elevation4),
!r && (null == t ? void 0 : t.elevation8) ? o.cardShadowHovered = t.elevation8 : o.variantBorderHovered && (o.cardShadowHovered = "0 0 1px " + o.variantBorderHovered),
Object(zn.a)(Object(zn.a)({}, o), n)
}
!function(e) {
if (e) {
var t = "".concat(e, "/fonts");
kz(t, RN.Thai, "leelawadeeui-thai", "leelawadeeui"),
kz(t, RN.Arabic, "segoeui-arabic"),
kz(t, RN.Cyrillic, "segoeui-cyrillic"),
kz(t, RN.EastEuropean, "segoeui-easteuropean"),
kz(t, RN.Greek, "segoeui-greek"),
kz(t, RN.Hebrew, "segoeui-hebrew"),
kz(t, RN.Vietnamese, "segoeui-vietnamese"),
kz(t, RN.WestEuropean, "segoeui-westeuropean", "segoeui", "Segoe UI"),
kz(t, PN.Selawik, "selawik", "selawik"),
kz(t, RN.Armenian, "segoeui-armenian"),
kz(t, RN.Georgian, "segoeui-georgian"),
jz("Leelawadee UI Web", "".concat(t, "/leelawadeeui-thai/leelawadeeui-semilight"), FN.light),
jz("Leelawadee UI Web", "".concat(t, "/leelawadeeui-thai/leelawadeeui-bold"), FN.semibold)
}
}(function() {
var e, t, n = null === (e = ww()) || void 0 === e ? void 0 : e.FabricConfig;
return null !== (t = null == n ? void 0 : n.fontBaseUrl) && void 0 !== t ? t : "https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"
}());
var Sz = {
s2: "4px",
s1: "8px",
m: "16px",
l1: "20px",
l2: "32px"
};
function Az(e, t) {
void 0 === e && (e = {}),
void 0 === t && (t = !1);
var n = !!e.isInverted;
return function(e, t) {
var n, r, i;
void 0 === t && (t = {});
var o = wz({}, e, t, {
semanticColors: Mz(t.palette, t.effects, t.semanticColors, void 0 === t.isInverted ? e.isInverted : t.isInverted)
});
if ((null === (n = t.palette) || void 0 === n ? void 0 : n.themePrimary) && !(null === (r = t.palette) || void 0 === r ? void 0 : r.accent) && (o.palette.accent = t.palette.themePrimary),
t.defaultFontStyle)
for (var a = 0, l = Object.keys(o.fonts); a < l.length; a++) {
var s = l[a];
o.fonts[s] = wz(o.fonts[s], t.defaultFontStyle, null === (i = null == t ? void 0 : t.fonts) || void 0 === i ? void 0 : i[s])
}
return o
}({
palette: dz,
effects: pz,
fonts: Oz,
spacing: Sz,
isInverted: n,
disableGlobalClassNames: !1,
semanticColors: _z(dz, pz, void 0, n, t),
rtl: void 0
}, e)
}
var Tz = Az({})
, Ez = [];
function Iz() {
var e, t, n, r = ww();
(null === (t = null == r ? void 0 : r.FabricConfig) || void 0 === t ? void 0 : t.legacyTheme) ? function(e, t) {
var n;
void 0 === t && (t = !1),
Tz = Az(e, t),
Object(Qi.b)(Object(zn.a)(Object(zn.a)(Object(zn.a)(Object(zn.a)({}, Tz.palette), Tz.semanticColors), Tz.effects), function(e) {
for (var t = {}, n = 0, r = Object.keys(e.fonts); n < r.length; n++)
for (var i = r[n], o = e.fonts[i], a = 0, l = Object.keys(o); a < l.length; a++) {
var s = l[a]
, c = i + s.charAt(0).toUpperCase() + s.slice(1)
, u = o[s];
"fontSize" === s && "number" == typeof u && (u += "px"),
t[c] = u
}
return t
}(Tz))),
bI.applySettings(((n = {}).theme = Tz,
n)),
Ez.forEach((function(e) {
try {
e(Tz)
} catch (e) {}
}
))
}(r.FabricConfig.legacyTheme) : bI.getSettings(["theme"]).theme || ((null === (n = null == r ? void 0 : r.FabricConfig) || void 0 === n ? void 0 : n.theme) && (Tz = Az(r.FabricConfig.theme)),
bI.applySettings(((e = {}).theme = Tz,
e)))
}
function Nz(e) {
return {
selectors: {
"::placeholder": e,
":-ms-input-placeholder": e,
"::-ms-input-placeholder": e
}
}
}
Iz();
var zz = cI.getValue("icons", {
__options: {
disableWarnings: !1,
warnOnMissingIcons: !0
},
__remapped: {}
})
, Dz = Ew.getInstance();
Dz && Dz.onReset && Dz.onReset((function() {
for (var e in zz)
zz.hasOwnProperty(e) && zz[e].subset && (zz[e].subset.className = void 0)
}
));
function Lz() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return Rz(e, kI())
}
function Rz(e, t) {
var n, r = {
subComponentStyles: {}
}, i = void 0;
Sw(e[0]) ? (i = e[0],
n = e[1]) : n = e[0],
null != i || (i = null == t ? void 0 : t.shadowConfig);
var o = Object(zn.a)(Object(zn.a)({}, t), {
shadowConfig: i
});
if (!n && e.length <= 1)
return {
subComponentStyles: {}
};
var a = Ew.getInstance(i);
o.stylesheet = a;
var l = YE.apply(void 0, e)
, s = [];
for (var c in l)
if (l.hasOwnProperty(c)) {
if ("subComponentStyles" === c) {
r.subComponentStyles = l.subComponentStyles || {};
continue
}
if ("__shadowConfig__" === c)
continue;
var u = xI(a, l[c])
, d = u.classes
, p = u.objects;
(null == p ? void 0 : p.length) ? (b = HI(o || {}, {
displayName: c
}, p)) && (s.push(b),
r[c] = d.concat([b.className]).join(" ")) : r[c] = d.join(" ")
}
for (var h = 0, f = s; h < f.length; h++) {
var b;
(b = f[h]) && UI(b, null == t ? void 0 : t.specificityMultiplier, i)
}
return r
}
var Pz = n(309);
Object(Pz.a)("@fluentui/style-utilities", "8.10.9"),
Iz();
var Bz = {
root: "ms-Pagination-container",
pageNumber: "ms-Pagination-pageNumber"
};
var Fz = function(e) {
var t = {
refs: []
};
return function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
return t.resolver && function(e, t) {
if (e.length !== t.length)
return !1;
for (var n = 0; n < e.length; n++)
if (e[n] !== t[n])
return !1;
return !0
}(t.refs, e) || (t.resolver = function(e) {
return function(t) {
for (var n = 0, r = e.refs; n < r.length; n++) {
var i = r[n];
"function" == typeof i ? i(t) : i && (i.current = t)
}
}
}(t)),
t.refs = e,
t.resolver
}
};
function Vz() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var n = [], r = 0, i = e; r < i.length; r++) {
var o = i[r];
if (o)
if ("string" == typeof o)
n.push(o);
else if (o.hasOwnProperty("toString") && "function" == typeof o.toString)
n.push(o.toString());
else
for (var a in o)
o[a] && n.push(a)
}
return n.join(" ")
}
function Wz(e) {
return e && !!e._virtual
}
function qz(e, t) {
var n, r;
if (void 0 === t && (t = !0),
!e)
return null;
var i = t && function(e) {
var t;
return e && Wz(e) && (t = e._virtual.parent),
t
}(e);
return i || ("function" != typeof e.assignedElements && (null === (n = e.assignedSlot) || void 0 === n ? void 0 : n.parentNode) ? e.assignedSlot : 11 === (null === (r = e.parentNode) || void 0 === r ? void 0 : r.nodeType) ? e.parentNode.host : e.parentNode)
}
function Hz(e, t, n) {
return null != n || (n = document),
e && e !== n.body ? t(e) ? e : Hz(qz(e), t) : null
}
var Uz = "data-portal-element";
function Xz(e, t, n) {
var r = Hz(e, (function(e) {
return t === e || e.hasAttribute(Uz)
}
), n);
return null !== r && r.hasAttribute(Uz)
}
var Gz = 13
, Kz = 18
, Yz = 27
, Qz = 32
, Jz = 38
, Zz = 40;
function $z(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return t.length < 2 ? t[0] : function() {
for (var n = [], r = 0; r < arguments.length; r++)
n[r] = arguments[r];
t.forEach((function(t) {
return t && t.apply(e, n)
}
))
}
}
function eD(e) {
!function(e, t) {
for (var n in t)
t.hasOwnProperty(n) && (e[n] = $z(e, e[n], t[n]))
}(e, {
componentDidMount: tD,
componentDidUpdate: nD,
componentWillUnmount: rD
})
}
function tD() {
iD(this.props.componentRef, this)
}
function nD(e) {
e.componentRef !== this.props.componentRef && (iD(e.componentRef, null),
iD(this.props.componentRef, this))
}
function rD() {
iD(this.props.componentRef, null)
}
function iD(e, t) {
e && ("object" == typeof e ? e.current = t : "function" == typeof e && e(t))
}
var oD = function() {
function e(e, t) {
this._timeoutIds = null,
this._immediateIds = null,
this._intervalIds = null,
this._animationFrameIds = null,
this._isDisposed = !1,
this._parent = e || null,
this._onErrorHandler = t,
this._noop = function() {}
}
return e.prototype.dispose = function() {
var e;
if (this._isDisposed = !0,
this._parent = null,
this._timeoutIds) {
for (e in this._timeoutIds)
this._timeoutIds.hasOwnProperty(e) && this.clearTimeout(parseInt(e, 10));
this._timeoutIds = null
}
if (this._immediateIds) {
for (e in this._immediateIds)
this._immediateIds.hasOwnProperty(e) && this.clearImmediate(parseInt(e, 10));
this._immediateIds = null
}
if (this._intervalIds) {
for (e in this._intervalIds)
this._intervalIds.hasOwnProperty(e) && this.clearInterval(parseInt(e, 10));
this._intervalIds = null
}
if (this._animationFrameIds) {
for (e in this._animationFrameIds)
this._animationFrameIds.hasOwnProperty(e) && this.cancelAnimationFrame(parseInt(e, 10));
this._animationFrameIds = null
}
}
,
e.prototype.setTimeout = function(e, t) {
var n = this
, r = 0;
return this._isDisposed || (this._timeoutIds || (this._timeoutIds = {}),
r = setTimeout((function() {
try {
n._timeoutIds && delete n._timeoutIds[r],
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
}
), t),
this._timeoutIds[r] = !0),
r
}
,
e.prototype.clearTimeout = function(e) {
this._timeoutIds && this._timeoutIds[e] && (clearTimeout(e),
delete this._timeoutIds[e])
}
,
e.prototype.setImmediate = function(e, t) {
var n = this
, r = 0
, i = ww(t);
return this._isDisposed || (this._immediateIds || (this._immediateIds = {}),
r = i.setTimeout((function() {
try {
n._immediateIds && delete n._immediateIds[r],
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
}
), 0),
this._immediateIds[r] = !0),
r
}
,
e.prototype.clearImmediate = function(e, t) {
var n = ww(t);
this._immediateIds && this._immediateIds[e] && (n.clearTimeout(e),
delete this._immediateIds[e])
}
,
e.prototype.setInterval = function(e, t) {
var n = this
, r = 0;
return this._isDisposed || (this._intervalIds || (this._intervalIds = {}),
r = setInterval((function() {
try {
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
}
), t),
this._intervalIds[r] = !0),
r
}
,
e.prototype.clearInterval = function(e) {
this._intervalIds && this._intervalIds[e] && (clearInterval(e),
delete this._intervalIds[e])
}
,
e.prototype.throttle = function(e, t, n) {
var r = this;
if (this._isDisposed)
return this._noop;
var i, o, a = t || 0, l = !0, s = !0, c = 0, u = null;
n && "boolean" == typeof n.leading && (l = n.leading),
n && "boolean" == typeof n.trailing && (s = n.trailing);
var d = function t(n) {
var d = Date.now()
, p = d - c
, h = l ? a - p : a;
return p >= a && (!n || l) ? (c = d,
u && (r.clearTimeout(u),
u = null),
i = e.apply(r._parent, o)) : null === u && s && (u = r.setTimeout(t, h)),
i
};
return function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return o = e,
d(!0)
}
}
,
e.prototype.debounce = function(e, t, n) {
var r = this;
if (this._isDisposed) {
var i = function() {};
return i.cancel = function() {}
,
i.flush = function() {
return null
}
,
i.pending = function() {
return !1
}
,
i
}
var o, a, l = t || 0, s = !1, c = !0, u = null, d = 0, p = Date.now(), h = null;
n && "boolean" == typeof n.leading && (s = n.leading),
n && "boolean" == typeof n.trailing && (c = n.trailing),
n && "number" == typeof n.maxWait && !isNaN(n.maxWait) && (u = n.maxWait);
var f = function(e) {
h && (r.clearTimeout(h),
h = null),
p = e
}
, b = function(t) {
f(t),
o = e.apply(r._parent, a)
}
, g = function e(t) {
var n = Date.now()
, i = !1;
t && (s && n - d >= l && (i = !0),
d = n);
var a = n - d
, f = l - a
, g = n - p
, m = !1;
return null !== u && (g >= u && h ? m = !0 : f = Math.min(f, u - g)),
a >= l || m || i ? b(n) : null !== h && t || !c || (h = r.setTimeout(e, f)),
o
}
, m = function() {
return !!h
}
, v = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return a = e,
g(!0)
};
return v.cancel = function() {
m() && f(Date.now())
}
,
v.flush = function() {
return m() && b(Date.now()),
o
}
,
v.pending = m,
v
}
,
e.prototype.requestAnimationFrame = function(e, t) {
var n = this
, r = 0
, i = ww(t);
if (!this._isDisposed) {
this._animationFrameIds || (this._animationFrameIds = {});
var o = function() {
try {
n._animationFrameIds && delete n._animationFrameIds[r],
e.apply(n._parent)
} catch (e) {
n._logError(e)
}
};
r = i.requestAnimationFrame ? i.requestAnimationFrame(o) : i.setTimeout(o, 0),
this._animationFrameIds[r] = !0
}
return r
}
,
e.prototype.cancelAnimationFrame = function(e, t) {
var n = ww(t);
this._animationFrameIds && this._animationFrameIds[e] && (n.cancelAnimationFrame ? n.cancelAnimationFrame(e) : n.clearTimeout(e),
delete this._animationFrameIds[e])
}
,
e.prototype._logError = function(e) {
this._onErrorHandler && this._onErrorHandler(e)
}
,
e
}();
function aD(e, t) {
if (!e || !t)
return !e && !t;
for (var n in e)
if (e.hasOwnProperty(n) && (!t.hasOwnProperty(n) || t[n] !== e[n]))
return !1;
for (var n in t)
if (t.hasOwnProperty(n) && !e.hasOwnProperty(n))
return !1;
return !0
}
function lD(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
return sD.apply(this, [null, e].concat(t))
}
function sD(e, t) {
for (var n = [], r = 2; r < arguments.length; r++)
n[r - 2] = arguments[r];
t = t || {};
for (var i = 0, o = n; i < o.length; i++) {
var a = o[i];
if (a)
for (var l in a)
!a.hasOwnProperty(l) || e && !e(l) || (t[l] = a[l])
}
return t
}
var cD, uD = function() {
function e(t) {
this._id = e._uniqueId++,
this._parent = t,
this._eventRecords = []
}
return e.raise = function(t, n, r, i, o) {
var a, l = null != o ? o : vz();
if (e._isElement(t)) {
if (void 0 !== l && l.createEvent) {
var s = l.createEvent("HTMLEvents");
s.initEvent(n, i || !1, !0),
lD(s, r),
a = t.dispatchEvent(s)
} else if (void 0 !== l && l.createEventObject) {
var c = l.createEventObject(r);
t.fireEvent("on" + n, c)
}
} else
for (; t && !1 !== a; ) {
var u = t.__events__
, d = u ? u[n] : null;
if (d)
for (var p in d)
if (d.hasOwnProperty(p))
for (var h = d[p], f = 0; !1 !== a && f < h.length; f++) {
var b = h[f];
b.objectCallback && (a = b.objectCallback.call(b.parent, r))
}
t = i ? t.parent : null
}
return a
}
,
e.isObserved = function(e, t) {
var n = e && e.__events__;
return !!n && !!n[t]
}
,
e.isDeclared = function(e, t) {
var n = e && e.__declaredEvents;
return !!n && !!n[t]
}
,
e.stopPropagation = function(e) {
e.stopPropagation ? e.stopPropagation() : e.cancelBubble = !0
}
,
e._isElement = function(e) {
return !!e && (!!e.addEventListener || "undefined" != typeof HTMLElement && e instanceof HTMLElement)
}
,
e.prototype.dispose = function() {
this._isDisposed || (this._isDisposed = !0,
this.off(),
this._parent = null)
}
,
e.prototype.onAll = function(e, t, n) {
for (var r in t)
t.hasOwnProperty(r) && this.on(e, r, t[r], n)
}
,
e.prototype.on = function(t, n, r, i) {
var o = this;
if (n.indexOf(",") > -1)
for (var a = n.split(/[ ,]+/), l = 0; l < a.length; l++)
this.on(t, a[l], r, i);
else {
var s = this._parent
, c = {
target: t,
eventName: n,
parent: s,
callback: r,
options: i
};
if ((a = t.__events__ = t.__events__ || {})[n] = a[n] || {
count: 0
},
a[n][this._id] = a[n][this._id] || [],
a[n][this._id].push(c),
a[n].count++,
e._isElement(t)) {
var u = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
if (!o._isDisposed) {
var n;
try {
if (!1 === (n = r.apply(s, e)) && e[0]) {
var i = e[0];
i.preventDefault && i.preventDefault(),
i.stopPropagation && i.stopPropagation(),
i.cancelBubble = !0
}
} catch (i) {}
return n
}
};
c.elementCallback = u,
t.addEventListener ? t.addEventListener(n, u, i) : t.attachEvent && t.attachEvent("on" + n, u)
} else
c.objectCallback = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
if (!o._isDisposed)
return r.apply(s, e)
}
;
this._eventRecords.push(c)
}
}
,
e.prototype.off = function(e, t, n, r) {
for (var i = 0; i < this._eventRecords.length; i++) {
var o = this._eventRecords[i];
if (!(e && e !== o.target || t && t !== o.eventName || n && n !== o.callback || "boolean" == typeof r && r !== o.options)) {
var a = o.target.__events__
, l = a[o.eventName]
, s = l ? l[this._id] : null;
s && (1 !== s.length && n ? (l.count--,
s.splice(s.indexOf(o), 1)) : (l.count -= s.length,
delete a[o.eventName][this._id]),
l.count || delete a[o.eventName]),
o.elementCallback && (o.target.removeEventListener ? o.target.removeEventListener(o.eventName, o.elementCallback, o.options) : o.target.detachEvent && o.target.detachEvent("on" + o.eventName, o.elementCallback)),
this._eventRecords.splice(i--, 1)
}
}
}
,
e.prototype.raise = function(t, n, r) {
return e.raise(this._parent, t, n, r)
}
,
e.prototype.declare = function(e) {
var t = this._parent.__declaredEvents = this._parent.__declaredEvents || {};
if ("string" == typeof e)
t[e] = !0;
else
for (var n = 0; n < e.length; n++)
t[e[n]] = !0
}
,
e._uniqueId = 0,
e
}(), dD = function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
for (var n = {}, r = 0, i = e; r < i.length; r++)
for (var o = i[r], a = 0, l = Array.isArray(o) ? o : Object.keys(o); a < l.length; a++) {
n[l[a]] = 1
}
return n
}, pD = dD(["onCopy", "onCut", "onPaste", "onCompositionEnd", "onCompositionStart", "onCompositionUpdate", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onInput", "onSubmit", "onLoad", "onError", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyUp", "onAbort", "onCanPlay", "onCanPlayThrough", "onDurationChange", "onEmptied", "onEncrypted", "onEnded", "onLoadedData", "onLoadedMetadata", "onLoadStart", "onPause", "onPlay", "onPlaying", "onProgress", "onRateChange", "onSeeked", "onSeeking", "onStalled", "onSuspend", "onTimeUpdate", "onVolumeChange", "onWaiting", "onClick", "onClickCapture", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onMouseUpCapture", "onSelect", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart", "onScroll", "onWheel", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onGotPointerCapture", "onLostPointerCapture"]), hD = dD(["accessKey", "children", "className", "contentEditable", "dir", "draggable", "hidden", "htmlFor", "id", "lang", "ref", "role", "style", "tabIndex", "title", "translate", "spellCheck", "name"]), fD = dD(hD, pD), bD = (dD(fD, ["form"]),
dD(fD, ["height", "loop", "muted", "preload", "src", "width"])), gD = (dD(bD, ["poster"]),
dD(fD, ["start"]),
dD(fD, ["value"]),
dD(fD, ["download", "href", "hrefLang", "media", "rel", "target", "type"])), mD = dD(fD, ["autoFocus", "disabled", "form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "type", "value"]), vD = dD(mD, ["accept", "alt", "autoCapitalize", "autoComplete", "checked", "dirname", "form", "height", "inputMode", "list", "max", "maxLength", "min", "minLength", "multiple", "pattern", "placeholder", "readOnly", "required", "src", "step", "size", "type", "value", "width"]), yD = (dD(mD, ["autoCapitalize", "cols", "dirname", "form", "maxLength", "minLength", "placeholder", "readOnly", "required", "rows", "wrap"]),
dD(mD, ["form", "multiple", "required"]),
dD(fD, ["selected", "value"]),
dD(fD, ["cellPadding", "cellSpacing"]),
dD(fD, ["rowSpan", "scope"]),
dD(fD, ["colSpan", "headers", "rowSpan", "scope"]),
dD(fD, ["span"]),
dD(fD, ["span"]),
dD(fD, ["acceptCharset", "action", "encType", "encType", "method", "noValidate", "target"]),
dD(fD, ["allow", "allowFullScreen", "allowPaymentRequest", "allowTransparency", "csp", "height", "importance", "referrerPolicy", "sandbox", "src", "srcDoc", "width"]),
dD(fD, ["alt", "crossOrigin", "height", "src", "srcSet", "useMap", "width"])), xD = fD;
function OD(e, t, n) {
for (var r = Array.isArray(t), i = {}, o = 0, a = Object.keys(e); o < a.length; o++) {
var l = a[o];
!(!r && t[l] || r && t.indexOf(l) >= 0 || 0 === l.indexOf("data-") || 0 === l.indexOf("aria-")) || n && -1 !== (null == n ? void 0 : n.indexOf(l)) || (i[l] = e[l])
}
return i
}
function jD(e, t, n) {
var r = e[n]
, i = t[n];
(r || i) && (e[n] = function() {
for (var e, t = [], n = 0; n < arguments.length; n++)
t[n] = arguments[n];
return i && (e = i.apply(this, t)),
r !== i && (e = r.apply(this, t)),
e
}
)
}
function kD() {
return null
}
!function(e) {
function t(n, r) {
var i = e.call(this, n, r) || this;
return function(e, t, n) {
for (var r = 0, i = n.length; r < i; r++)
jD(e, t, n[r])
}(i, t.prototype, ["componentDidMount", "shouldComponentUpdate", "getSnapshotBeforeUpdate", "render", "componentDidUpdate", "componentWillUnmount"]),
i
}
Object(zn.c)(t, e),
t.prototype.componentDidUpdate = function(e, t) {
this._updateComponentRef(e, this.props)
}
,
t.prototype.componentDidMount = function() {
this._setComponentRef(this.props.componentRef, this)
}
,
t.prototype.componentWillUnmount = function() {
if (this._setComponentRef(this.props.componentRef, null),
this.__disposables) {
for (var e = 0, t = this._disposables.length; e < t; e++) {
var n = this.__disposables[e];
n.dispose && n.dispose()
}
this.__disposables = null
}
}
,
Object.defineProperty(t.prototype, "className", {
get: function() {
if (!this.__className) {
var e = /function (.{1,})\(/.exec(this.constructor.toString());
this.__className = e && e.length > 1 ? e[1] : ""
}
return this.__className
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_disposables", {
get: function() {
return this.__disposables || (this.__disposables = []),
this.__disposables
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_async", {
get: function() {
return this.__async || (this.__async = new oD(this),
this._disposables.push(this.__async)),
this.__async
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_events", {
get: function() {
return this.__events || (this.__events = new uD(this),
this._disposables.push(this.__events)),
this.__events
},
enumerable: !1,
configurable: !0
}),
t.prototype._resolveRef = function(e) {
var t = this;
return this.__resolves || (this.__resolves = {}),
this.__resolves[e] || (this.__resolves[e] = function(n) {
return t[e] = n
}
),
this.__resolves[e]
}
,
t.prototype._updateComponentRef = function(e, t) {
void 0 === t && (t = {}),
e && t && e.componentRef !== t.componentRef && (this._setComponentRef(e.componentRef, null),
this._setComponentRef(t.componentRef, this))
}
,
t.prototype._warnDeprecations = function(e) {
this.className,
this.props
}
,
t.prototype._warnMutuallyExclusive = function(e) {
this.className,
this.props
}
,
t.prototype._warnConditionallyRequiredProps = function(e, t, n) {
this.className,
this.props
}
,
t.prototype._setComponentRef = function(e, t) {
!this._skipComponentRefResolution && e && ("function" == typeof e && e(t),
"object" == typeof e && (e.current = t))
}
}(l.Component);
var wD = ((cD = {})[Jz] = 1,
cD[Zz] = 1,
cD[37] = 1,
cD[39] = 1,
cD[36] = 1,
cD[35] = 1,
cD[9] = 1,
cD[33] = 1,
cD[34] = 1,
cD);
function CD(e) {
return !!wD[e]
}
var _D = new WeakMap
, MD = new WeakMap;
function SD(e, t) {
var n, r = _D.get(e);
return n = r ? r + t : 1,
_D.set(e, n),
n
}
var AD = l.createContext(void 0);
function TD(e) {
var t = l.useContext(AD);
l.useEffect((function() {
var n, r, i, o, a = ww(null == e ? void 0 : e.current);
if (a && !0 !== (null === (n = a.FabricConfig) || void 0 === n ? void 0 : n.disableFocusRects)) {
var l, s, c, u, d = a;
if ((null === (r = null == t ? void 0 : t.providerRef) || void 0 === r ? void 0 : r.current) && (null === (o = null === (i = null == t ? void 0 : t.providerRef) || void 0 === i ? void 0 : i.current) || void 0 === o ? void 0 : o.addEventListener)) {
d = t.providerRef.current;
var p = function(e) {
var t = MD.get(e);
return t || (t = {
onMouseDown: function(t) {
return ND(t, e.registeredProviders)
},
onPointerDown: function(t) {
return zD(t, e.registeredProviders)
},
onKeyDown: function(t) {
return DD(t, e.registeredProviders)
},
onKeyUp: function(t) {
return LD(t, e.registeredProviders)
}
},
MD.set(e, t),
t)
}(t);
l = p.onMouseDown,
s = p.onPointerDown,
c = p.onKeyDown,
u = p.onKeyUp
} else
l = ND,
s = zD,
c = DD,
u = LD;
var h = SD(d, 1);
return h <= 1 && (d.addEventListener("mousedown", l, !0),
d.addEventListener("pointerdown", s, !0),
d.addEventListener("keydown", c, !0),
d.addEventListener("keyup", u, !0)),
function() {
var e;
a && !0 !== (null === (e = a.FabricConfig) || void 0 === e ? void 0 : e.disableFocusRects) && 0 === (h = SD(d, -1)) && (d.removeEventListener("mousedown", l, !0),
d.removeEventListener("pointerdown", s, !0),
d.removeEventListener("keydown", c, !0),
d.removeEventListener("keyup", u, !0))
}
}
}
), [t, e])
}
var ED, ID = function(e) {
return TD(e.rootRef),
null
};
function ND(e, t) {
sz(!1, e.target, t)
}
function zD(e, t) {
"mouse" !== e.pointerType && sz(!1, e.target, t)
}
function DD(e, t) {
CD(e.which) && sz(!0, e.target, t)
}
function LD(e, t) {
CD(e.which) && sz(!0, e.target, t)
}
function RD() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = e.filter((function(e) {
return e
}
)).join(" ").trim();
return "" === n ? void 0 : n
}
!function(e) {
e[e.default = 0] = "default",
e[e.image = 1] = "image",
e[e.Default = 1e5] = "Default",
e[e.Image = 100001] = "Image"
}(ED || (ED = {}));
var PD, BD = "isRTL";
function FD(e) {
if (void 0 === e && (e = {}),
void 0 !== e.rtl)
return e.rtl;
if (void 0 === PD) {
var t = yz(BD);
null !== t && function(e, t) {
void 0 === t && (t = !1);
var n = vz();
n && n.documentElement.setAttribute("dir", e ? "rtl" : "ltr"),
t && function(e, t) {
var n;
try {
null === (n = ww()) || void 0 === n || n.sessionStorage.setItem(e, t)
} catch (e) {}
}(BD, e ? "1" : "0"),
OI(PD = e)
}(PD = "1" === t);
var n = vz();
void 0 === PD && n && OI(PD = "rtl" === (n.body && n.body.getAttribute("dir") || n.documentElement.getAttribute("dir")))
}
return !!PD
}
var VD, WD, qD, HD = 0, UD = Ew.getInstance();
function XD(e) {
void 0 === e && (e = {});
var t = new Map
, n = 0
, r = 0
, i = HD;
return function(o, a) {
var l;
if (void 0 === a && (a = {}),
e.useStaticStyles && "function" == typeof o && o.__noStyleOverride__)
return o(a);
r++;
var s = o ? o.__shadowConfig__ : void 0
, c = s && s.window ? s.window : "__default__";
t.has(c) || t.set(c, new Map);
var u = t.get(c)
, d = a.theme
, p = d && void 0 !== d.rtl ? d.rtl : FD()
, h = e.disableCaching;
if (i !== HD && (i = HD,
t.set(c, new Map),
u = t.get(c),
n = 0),
e.disableCaching || (u = KD(t.get(c), o),
u = KD(u, a)),
!h && u.__retval__ || (u.__retval__ = void 0 === o ? {} : Rz(["function" == typeof o ? o(a) : o], {
shadowConfig: o.__shadowConfig__,
rtl: !!p,
specificityMultiplier: e.useStaticStyles ? 5 : void 0
}),
h || n++),
n > (e.cacheSize || 50)) {
var f = ww();
(null === (l = null == f ? void 0 : f.FabricConfig) || void 0 === l ? void 0 : l.enableClassNameCacheFullWarning) && (console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n, "/").concat(r, ".")),
console.trace()),
t.get(c).clear(),
n = 0,
e.disableCaching = !0
}
return u.__retval__
}
}
function GD(e, t) {
return t = function(e) {
switch (e) {
case void 0:
return "__undefined__";
case null:
return "__null__";
default:
return e
}
}(t),
e.has(t) || e.set(t, new Map),
e.get(t)
}
function KD(e, t) {
if ("function" == typeof t)
if (t.__cachedInputs__)
for (var n = 0, r = t.__cachedInputs__; n < r.length; n++)
e = GD(e, r[n]);
else
e = GD(e, t);
else if ("object" == typeof t)
for (var i in t)
t.hasOwnProperty(i) && (e = GD(e, t[i]));
return e
}
UD && UD.onReset && UD.onReset((function() {
return HD++
}
)),
function(e) {
e[e.center = 0] = "center",
e[e.contain = 1] = "contain",
e[e.cover = 2] = "cover",
e[e.none = 3] = "none",
e[e.centerCover = 4] = "centerCover",
e[e.centerContain = 5] = "centerContain"
}(VD || (VD = {})),
function(e) {
e[e.landscape = 0] = "landscape",
e[e.portrait = 1] = "portrait"
}(WD || (WD = {})),
function(e) {
e[e.notLoaded = 0] = "notLoaded",
e[e.loaded = 1] = "loaded",
e[e.error = 2] = "error",
e[e.errorLoaded = 3] = "errorLoaded"
}(qD || (qD = {}));
var YD = jw() ? l.useLayoutEffect : l.useEffect;
function QD() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
var n = l.useCallback((function(t) {
n.current = t;
for (var r = 0, i = e; r < i.length; r++) {
var o = i[r];
"function" == typeof o ? o(t) : o && (o.current = t)
}
}
), Object(zn.e)([], e, !0));
return n
}
var JD = XD()
, ZD = /\.svg$/i
, $D = l.forwardRef((function(e, t) {
var n = l.useRef()
, r = l.useRef()
, i = function(e, t) {
var n = e.onLoadingStateChange
, r = e.onLoad
, i = e.onError
, o = e.src
, a = l.useState(qD.notLoaded)
, s = a[0]
, c = a[1];
YD((function() {
c(qD.notLoaded)
}
), [o]),
l.useEffect((function() {
s === qD.notLoaded && t.current && (o && t.current.naturalWidth > 0 && t.current.naturalHeight > 0 || t.current.complete && ZD.test(o)) && c(qD.loaded)
}
)),
l.useEffect((function() {
null == n || n(s)
}
), [s]);
var u = l.useCallback((function(e) {
null == r || r(e),
o && c(qD.loaded)
}
), [o, r])
, d = l.useCallback((function(e) {
null == i || i(e),
c(qD.error)
}
), [i]);
return [s, u, d]
}(e, r)
, o = i[0]
, a = i[1]
, s = i[2]
, c = OD(e, yD, ["width", "height"])
, u = e.src
, d = e.alt
, p = e.width
, h = e.height
, f = e.shouldFadeIn
, b = void 0 === f || f
, g = e.shouldStartVisible
, m = e.className
, v = e.imageFit
, y = e.role
, x = e.maximizeFrame
, O = e.styles
, j = e.theme
, k = e.loading
, w = function(e, t, n, r) {
var i = l.useRef(t)
, o = l.useRef();
return (void 0 === o || i.current === qD.notLoaded && t === qD.loaded) && (o.current = function(e, t, n, r) {
var i = e.imageFit
, o = e.width
, a = e.height;
if (void 0 !== e.coverStyle)
return e.coverStyle;
if (t === qD.loaded && (i === VD.cover || i === VD.contain || i === VD.centerContain || i === VD.centerCover) && n.current && r.current) {
var l;
if (l = "number" == typeof o && "number" == typeof a && i !== VD.centerContain && i !== VD.centerCover ? o / a : r.current.clientWidth / r.current.clientHeight,
n.current.naturalWidth / n.current.naturalHeight > l)
return WD.landscape
}
return WD.portrait
}(e, t, n, r)),
i.current = t,
o.current
}(e, o, r, n)
, C = JD(O, {
theme: j,
className: m,
width: p,
height: h,
maximizeFrame: x,
shouldFadeIn: b,
shouldStartVisible: g,
isLoaded: o === qD.loaded || o === qD.notLoaded && e.shouldStartVisible,
isLandscape: w === WD.landscape,
isCenter: v === VD.center,
isCenterContain: v === VD.centerContain,
isCenterCover: v === VD.centerCover,
isContain: v === VD.contain,
isCover: v === VD.cover,
isNone: v === VD.none,
isError: o === qD.error,
isNotImageFit: void 0 === v
});
return l.createElement("div", {
className: C.root,
style: {
width: p,
height: h
},
ref: n
}, l.createElement("img", Object(zn.a)({}, c, {
onLoad: a,
onError: s,
key: "fabricImage" + e.src || "",
className: C.image,
ref: QD(r, t),
src: u,
alt: d,
role: y,
loading: k
})))
}
));
$D.displayName = "ImageBase";
var eL = {
root: "ms-Image",
rootMaximizeFrame: "ms-Image--maximizeFrame",
image: "ms-Image-image",
imageCenter: "ms-Image-image--center",
imageContain: "ms-Image-image--contain",
imageCover: "ms-Image-image--cover",
imageCenterContain: "ms-Image-image--centerContain",
imageCenterCover: "ms-Image-image--centerCover",
imageNone: "ms-Image-image--none",
imageLandscape: "ms-Image-image--landscape",
imagePortrait: "ms-Image-image--portrait"
}
, tL = yI($D, (function(e) {
var t = e.className
, n = e.width
, r = e.height
, i = e.maximizeFrame
, o = e.isLoaded
, a = e.shouldFadeIn
, l = e.shouldStartVisible
, s = e.isLandscape
, c = e.isCenter
, u = e.isContain
, d = e.isCover
, p = e.isCenterContain
, h = e.isCenterCover
, f = e.isNone
, b = e.isError
, g = e.isNotImageFit
, m = e.theme
, v = tz(eL, m)
, y = {
position: "absolute",
left: "50% /* @noflip */",
top: "50%",
transform: "translate(-50%,-50%)"
}
, x = ww()
, O = void 0 !== x && void 0 === x.navigator.msMaxTouchPoints
, j = u && s || d && !s ? {
width: "100%",
height: "auto"
} : {
width: "auto",
height: "100%"
};
return {
root: [v.root, m.fonts.medium, {
overflow: "hidden"
}, i && [v.rootMaximizeFrame, {
height: "100%",
width: "100%"
}], o && a && !l && WN.fadeIn400, (c || u || d || p || h) && {
position: "relative"
}, t],
image: [v.image, {
display: "block",
opacity: 0
}, o && ["is-loaded", {
opacity: 1
}], c && [v.imageCenter, y], u && [v.imageContain, O && {
width: "100%",
height: "100%",
objectFit: "contain"
}, !O && j, !O && y], d && [v.imageCover, O && {
width: "100%",
height: "100%",
objectFit: "cover"
}, !O && j, !O && y], p && [v.imageCenterContain, s && {
maxWidth: "100%"
}, !s && {
maxHeight: "100%"
}, y], h && [v.imageCenterCover, s && {
maxHeight: "100%"
}, !s && {
maxWidth: "100%"
}, y], f && [v.imageNone, {
width: "auto",
height: "auto"
}], g && [!!n && !r && {
height: "auto",
width: "100%"
}, !n && !!r && {
height: "100%",
width: "auto"
}, !!n && !!r && {
height: "100%",
width: "100%"
}], s && v.imageLandscape, !s && v.imagePortrait, !o && "is-notLoaded", a && "is-fadeIn", b && "is-error"]
}
}
), void 0, {
scope: "Image"
}, !0);
tL.displayName = "Image";
var nL = Lz({
root: {
display: "inline-block"
},
placeholder: ["ms-Icon-placeHolder", {
width: "1em"
}],
image: ["ms-Icon-imageContainer", {
overflow: "hidden"
}]
})
, rL = "ms-Icon"
, iL = QN((function(e) {
var t = function(e) {
var t = void 0
, n = zz.__options;
if (e = e ? function(e) {
return e.toLowerCase()
}(e) : "",
e = zz.__remapped[e] || e)
if (t = zz[e]) {
var r = t.subset;
r && r.fontFace && (r.isRegistered || (hz(r.fontFace),
r.isRegistered = !0),
r.className || (r.className = XI(r.style, {
fontFamily: r.fontFace.fontFamily,
fontWeight: r.fontFace.fontWeight || "normal",
fontStyle: r.fontFace.fontStyle || "normal"
})))
} else
!n.disableWarnings && n.warnOnMissingIcons && function(e) {
console && console.warn && console.warn(e)
}('The icon "'.concat(e, '" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));
return t
}(e) || {
subset: {},
code: void 0
}
, n = t.code
, r = t.subset;
return n ? {
children: n,
iconClassName: r.className,
fontFamily: r.fontFace && r.fontFace.fontFamily,
mergeImageProps: r.mergeImageProps
} : null
}
), void 0, !0)
, oL = function(e) {
var t = e.iconName
, n = e.className
, r = e.style
, i = void 0 === r ? {} : r
, o = iL(t) || {}
, a = o.iconClassName
, s = o.children
, c = o.fontFamily
, u = o.mergeImageProps
, d = OD(e, fD)
, p = e["aria-label"] || e.title
, h = e["aria-label"] || e["aria-labelledby"] || e.title ? {
role: u ? void 0 : "img"
} : {
"aria-hidden": !0
}
, f = s;
return u && "object" == typeof s && "object" == typeof s.props && p && (f = l.cloneElement(s, {
alt: p
})),
l.createElement("i", Object(zn.a)({
"data-icon-name": t
}, h, d, u ? {
title: void 0,
"aria-label": void 0
} : {}, {
className: Vz(rL, nL.root, a, !t && nL.placeholder, n),
style: Object(zn.a)({
fontFamily: c
}, i)
}), f)
}
, aL = (QN((function(e, t, n) {
return oL({
iconName: e,
className: t,
"aria-label": n
})
}
)),
XD({
cacheSize: 100
}))
, lL = yI(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._onImageLoadingStateChange = function(e) {
n.props.imageProps && n.props.imageProps.onLoadingStateChange && n.props.imageProps.onLoadingStateChange(e),
e === qD.error && n.setState({
imageLoadError: !0
})
}
,
n.state = {
imageLoadError: !1
},
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.children
, n = e.className
, r = e.styles
, i = e.iconName
, o = e.imageErrorAs
, a = e.theme
, s = "string" == typeof i && 0 === i.length
, c = !!this.props.imageProps || this.props.iconType === ED.image || this.props.iconType === ED.Image
, u = iL(i) || {}
, d = u.iconClassName
, p = u.children
, h = u.mergeImageProps
, f = aL(r, {
theme: a,
className: n,
iconClassName: d,
isImage: c,
isPlaceholder: s
})
, b = c ? "span" : "i"
, g = OD(this.props, fD, ["aria-label"])
, m = this.state.imageLoadError
, v = Object(zn.a)(Object(zn.a)({}, this.props.imageProps), {
onLoadingStateChange: this._onImageLoadingStateChange
})
, y = m && o || tL
, x = this.props["aria-label"] || this.props.ariaLabel
, O = v.alt || x || this.props.title
, j = O || this.props["aria-labelledby"] || v["aria-label"] || v["aria-labelledby"] ? {
role: c || h ? void 0 : "img",
"aria-label": c || h ? void 0 : O
} : {
"aria-hidden": !0
}
, k = p;
return h && p && "object" == typeof p && O && (k = l.cloneElement(p, {
alt: O
})),
l.createElement(b, Object(zn.a)({
"data-icon-name": i
}, j, g, h ? {
title: void 0,
"aria-label": void 0
} : {}, {
className: f.root
}), c ? l.createElement(y, Object(zn.a)({}, v)) : t || k)
}
,
t
}(l.Component), (function(e) {
var t = e.className
, n = e.iconClassName
, r = e.isPlaceholder
, i = e.isImage
, o = e.styles;
return {
root: [r && nL.placeholder, nL.root, i && nL.image, n, t, o && o.root, o && o.imageContainer]
}
}
), void 0, {
scope: "Icon"
}, !0);
lL.displayName = "Icon";
var sL, cL = function(e) {
var t = e.className
, n = e.imageProps
, r = OD(e, fD, ["aria-label", "aria-labelledby", "title", "aria-describedby"])
, i = n.alt || e["aria-label"]
, o = i || e["aria-labelledby"] || e.title || n["aria-label"] || n["aria-labelledby"] || n.title
, a = {
"aria-labelledby": e["aria-labelledby"],
"aria-describedby": e["aria-describedby"],
title: e.title
}
, s = o ? {} : {
"aria-hidden": !0
};
return l.createElement("div", Object(zn.a)({}, s, r, {
className: Vz(rL, nL.root, nL.image, t)
}), l.createElement(tL, Object(zn.a)({}, a, n, {
alt: o ? i : ""
})))
}, uL = 7, dL = JN((function(e) {
return JN((function(t) {
var n = JN((function(e) {
return function(n) {
return t(n, e)
}
}
));
return function(r, i) {
return e(r, i ? n(i) : t)
}
}
))
}
));
!function(e) {
e[e.Normal = 0] = "Normal",
e[e.Divider = 1] = "Divider",
e[e.Header = 2] = "Header",
e[e.Section = 3] = "Section"
}(sL || (sL = {}));
var pL;
function hL(e, t, n) {
void 0 === n && (n = !0);
var r = !1;
if (e && t)
if (n)
if (e === t)
r = !0;
else
for (r = !1; t; ) {
var i = qz(t);
if (i === e) {
r = !0;
break
}
t = i
}
else
e.contains && (r = e.contains(t));
return r
}
function fL(e, t, n, r, i, o, a, l, s) {
var c;
if (!t || !a && t === e)
return null;
var u = gL(t);
if (i && u && (o || !yL(t) && !xL(t))) {
var d = fL(e, t.lastElementChild || s && (null === (c = t.shadowRoot) || void 0 === c ? void 0 : c.lastElementChild), !0, !0, !0, o, a, l, s);
if (d) {
if (l && vL(d, !0, s) || !l)
return d;
var p = fL(e, d.previousElementSibling, !0, !0, !0, o, a, l, s);
if (p)
return p;
for (var h = d.parentElement; h && h !== t; ) {
var f = fL(e, h.previousElementSibling, !0, !0, !0, o, a, l, s);
if (f)
return f;
h = h.parentElement
}
}
}
return n && u && vL(t, l, s) ? t : fL(e, t.previousElementSibling, !0, !0, !0, o, a, l, s) || (r ? null : fL(e, t.parentElement, !0, !1, !1, o, a, l, s))
}
function bL(e, t, n, r, i, o, a, l, s, c) {
var u;
if (!t || t === e && i && !a)
return null;
var d = (s ? mL : gL)(t);
if (n && d && vL(t, l, c))
return t;
if (!i && d && (o || !yL(t) && !xL(t))) {
var p = bL(e, t.firstElementChild || c && (null === (u = t.shadowRoot) || void 0 === u ? void 0 : u.firstElementChild), !0, !0, !1, o, a, l, s, c);
if (p)
return p
}
return t === e ? null : bL(e, t.nextElementSibling, !0, !0, !1, o, a, l, s, c) || (r ? null : bL(e, t.parentElement, !1, !1, !0, o, a, l, s, c))
}
function gL(e) {
if (!e || !e.getAttribute)
return !1;
var t = e.getAttribute("data-is-visible");
return null != t ? "true" === t : 0 !== e.offsetHeight || null !== e.offsetParent || !0 === e.isVisible
}
function mL(e, t) {
var n = null != t ? t : ww();
return !!e && gL(e) && !e.hidden && "hidden" !== n.getComputedStyle(e).visibility
}
function vL(e, t, n) {
if (void 0 === n && (n = !0),
!e || e.disabled)
return !1;
var r = 0
, i = null;
e && e.getAttribute && (i = e.getAttribute("tabIndex")) && (r = parseInt(i, 10));
var o = e.getAttribute ? e.getAttribute("data-is-focusable") : null
, a = null !== i && r >= 0
, l = !(!n || !e.shadowRoot || !e.shadowRoot.delegatesFocus)
, s = !!e && "false" !== o && ("A" === e.tagName || "BUTTON" === e.tagName || "INPUT" === e.tagName || "TEXTAREA" === e.tagName || "SELECT" === e.tagName || "true" === o || a || l);
return t ? -1 !== r && s : s
}
function yL(e) {
return !!(e && e.getAttribute && e.getAttribute("data-focuszone-id"))
}
function xL(e) {
return !(!e || !e.getAttribute || "true" !== e.getAttribute("data-is-sub-focuszone"))
}
function OL(e, t, n) {
return "true" !== function(e, t, n) {
var r = Hz(e, (function(e) {
return e.hasAttribute(t)
}
), n);
return r && r.getAttribute(t)
}(e, t, null != n ? n : vz())
}
!function(e) {
e[e.vertical = 0] = "vertical",
e[e.horizontal = 1] = "horizontal",
e[e.bidirectional = 2] = "bidirectional",
e[e.domOrder = 3] = "domOrder"
}(pL || (pL = {}));
var jL, kL = void 0;
function wL(e) {
if (e) {
var t = ww(e);
t && (void 0 !== kL && t.cancelAnimationFrame(kL),
kL = t.requestAnimationFrame((function() {
e && e.focus(),
kL = void 0
}
)))
}
}
XI({
overflow: "hidden !important"
});
var CL = "data-is-scrollable";
var _L, ML = "data-is-focusable", SL = "data-focuszone-id", AL = "tabindex", TL = "data-no-vertical-wrap", EL = "data-no-horizontal-wrap", IL = 999999999, NL = -999999999;
function zL(e, t) {
var n;
"function" == typeof MouseEvent ? n = new MouseEvent("click",{
ctrlKey: null == t ? void 0 : t.ctrlKey,
metaKey: null == t ? void 0 : t.metaKey,
shiftKey: null == t ? void 0 : t.shiftKey,
altKey: null == t ? void 0 : t.altKey,
bubbles: null == t ? void 0 : t.bubbles,
cancelable: null == t ? void 0 : t.cancelable
}) : (n = document.createEvent("MouseEvents")).initMouseEvent("click", !!t && t.bubbles, !!t && t.cancelable, window, 0, 0, 0, 0, 0, !!t && t.ctrlKey, !!t && t.altKey, !!t && t.shiftKey, !!t && t.metaKey, 0, null),
e.dispatchEvent(n)
}
var DL, LL = {}, RL = new Set, PL = ["text", "number", "password", "email", "tel", "url", "search", "textarea"], BL = !1, FL = function(e) {
function t(n) {
var r, i, o, a, s = this;
(s = e.call(this, n) || this)._root = l.createRef(),
s._mergedRef = Fz(),
s._onFocus = function(e) {
if (!s._portalContainsElement(e.target)) {
var t, n = s.props, r = n.onActiveElementChanged, i = n.doNotAllowFocusEventToPropagate, o = n.stopFocusPropagation, a = n.onFocusNotification, l = n.onFocus, c = n.shouldFocusInnerElementWhenReceivedFocus, u = n.defaultTabbableElement, d = s._isImmediateDescendantOfZone(e.target);
if (d)
t = e.target;
else
for (var p = e.target; p && p !== s._root.current; ) {
if (vL(p, void 0, s._inShadowRoot) && s._isImmediateDescendantOfZone(p)) {
t = p;
break
}
p = qz(p, BL)
}
if (c && e.target === s._root.current) {
var h = u && "function" == typeof u && s._root.current && u(s._root.current);
h && vL(h, void 0, s._inShadowRoot) ? (t = h,
h.focus()) : (s.focus(!0),
s._activeElement && (t = null))
}
var f = !s._activeElement;
t && t !== s._activeElement && ((d || f) && s._setFocusAlignment(t, !0, !0),
s._activeElement = t,
f && s._updateTabIndexes()),
r && r(s._activeElement, e),
(o || i) && e.stopPropagation(),
l ? l(e) : a && a()
}
}
,
s._onBlur = function() {
s._setParkedFocus(!1)
}
,
s._onMouseDown = function(e) {
if (!s._portalContainsElement(e.target) && !s.props.disabled) {
for (var t = e.target, n = []; t && t !== s._root.current; )
n.push(t),
t = qz(t, BL);
for (; n.length && ((t = n.pop()) && vL(t, void 0, s._inShadowRoot) && s._setActiveElement(t, !0),
!yL(t)); )
;
}
}
,
s._onKeyDown = function(e, t) {
if (!s._portalContainsElement(e.target)) {
var n = s.props
, r = n.direction
, i = n.disabled
, o = n.isInnerZoneKeystroke
, a = n.pagingSupportDisabled
, l = n.shouldEnterInnerZone;
if (!(i || (s.props.onKeyDown && s.props.onKeyDown(e),
e.isDefaultPrevented() || s._getDocument().activeElement === s._root.current && s._isInnerZone))) {
if ((l && l(e) || o && o(e)) && s._isImmediateDescendantOfZone(e.target)) {
var c = s._getFirstInnerZone();
if (c) {
if (!c.focus(!0))
return
} else {
if (!xL(e.target))
return;
if (!s.focusElement(bL(e.target, e.target.firstChild, !0)))
return
}
} else {
if (e.altKey)
return;
switch (e.which) {
case Qz:
if (s._shouldRaiseClicksOnSpace && s._tryInvokeClickForFocusable(e.target, e))
break;
return;
case 37:
if (r !== pL.vertical && (s._preventDefaultWhenHandled(e),
s._moveFocusLeft(t)))
break;
return;
case 39:
if (r !== pL.vertical && (s._preventDefaultWhenHandled(e),
s._moveFocusRight(t)))
break;
return;
case Jz:
if (r !== pL.horizontal && (s._preventDefaultWhenHandled(e),
s._moveFocusUp()))
break;
return;
case Zz:
if (r !== pL.horizontal && (s._preventDefaultWhenHandled(e),
s._moveFocusDown()))
break;
return;
case 34:
if (!a && s._moveFocusPaging(!0))
break;
return;
case 33:
if (!a && s._moveFocusPaging(!1))
break;
return;
case 9:
if (s.props.allowTabKey || 1 === s.props.handleTabKey || 2 === s.props.handleTabKey && s._isElementInput(e.target)) {
var u = !1;
if (s._processingTabKey = !0,
u = r !== pL.vertical && s._shouldWrapFocus(s._activeElement, EL) ? (FD(t) ? !e.shiftKey : e.shiftKey) ? s._moveFocusLeft(t) : s._moveFocusRight(t) : e.shiftKey ? s._moveFocusUp() : s._moveFocusDown(),
s._processingTabKey = !1,
u)
break;
s.props.shouldResetActiveElementWhenTabFromZone && (s._activeElement = null)
}
return;
case 36:
if (s._isContentEditableElement(e.target) || s._isElementInput(e.target) && !s._shouldInputLoseFocus(e.target, !1))
return !1;
var d = s._root.current && s._root.current.firstChild;
if (s._root.current && d && s.focusElement(bL(s._root.current, d, !0)))
break;
return;
case 35:
if (s._isContentEditableElement(e.target) || s._isElementInput(e.target) && !s._shouldInputLoseFocus(e.target, !0))
return !1;
var p = s._root.current && s._root.current.lastChild;
if (s._root.current && s.focusElement(fL(s._root.current, p, !0, !0, !0)))
break;
return;
case Gz:
if (s._shouldRaiseClicksOnEnter && s._tryInvokeClickForFocusable(e.target, e))
break;
return;
default:
return
}
}
e.preventDefault(),
e.stopPropagation()
}
}
}
,
s._getHorizontalDistanceFromCenter = function(e, t, n) {
var r = s._focusAlignment.left || s._focusAlignment.x || 0
, i = Math.floor(n.top)
, o = Math.floor(t.bottom)
, a = Math.floor(n.bottom)
, l = Math.floor(t.top);
return e && i > o || !e && a < l ? r >= n.left && r <= n.left + n.width ? 0 : Math.abs(n.left + n.width / 2 - r) : s._shouldWrapFocus(s._activeElement, TL) ? IL : NL
}
,
eD(s),
s._id = zw("FocusZone"),
s._focusAlignment = {
left: 0,
top: 0
},
s._processingTabKey = !1;
var c = null === (i = null !== (r = n.shouldRaiseClicks) && void 0 !== r ? r : t.defaultProps.shouldRaiseClicks) || void 0 === i || i;
return s._shouldRaiseClicksOnEnter = null !== (o = n.shouldRaiseClicksOnEnter) && void 0 !== o ? o : c,
s._shouldRaiseClicksOnSpace = null !== (a = n.shouldRaiseClicksOnSpace) && void 0 !== a ? a : c,
s
}
return Object(zn.c)(t, e),
t.getOuterZones = function() {
return RL.size
}
,
t._onKeyDownCapture = function(e) {
9 === e.which && RL.forEach((function(e) {
return e._updateTabIndexes()
}
))
}
,
t.prototype.componentDidMount = function() {
var e, n = this._root.current;
if (this._inShadowRoot = !!(null === (e = this.context) || void 0 === e ? void 0 : e.shadowRoot),
LL[this._id] = this,
n) {
for (var r = qz(n, BL); r && r !== this._getDocument().body && 1 === r.nodeType; ) {
if (yL(r)) {
this._isInnerZone = !0;
break
}
r = qz(r, BL)
}
this._isInnerZone || (RL.add(this),
this._root.current && this._root.current.addEventListener("keydown", t._onKeyDownCapture, !0)),
this._root.current && this._root.current.addEventListener("blur", this._onBlur, !0),
this._updateTabIndexes(),
this.props.defaultTabbableElement && "string" == typeof this.props.defaultTabbableElement ? this._activeElement = this._getDocument().querySelector(this.props.defaultTabbableElement) : this.props.defaultActiveElement && (this._activeElement = this._getDocument().querySelector(this.props.defaultActiveElement)),
this.props.shouldFocusOnMount && this.focus()
}
}
,
t.prototype.componentDidUpdate = function() {
var e, t = this._root.current, n = this._getDocument();
if (this._inShadowRoot = !!(null === (e = this.context) || void 0 === e ? void 0 : e.shadowRoot),
(this._activeElement && !hL(this._root.current, this._activeElement, BL) || this._defaultFocusElement && !hL(this._root.current, this._defaultFocusElement, BL)) && (this._activeElement = null,
this._defaultFocusElement = null,
this._updateTabIndexes()),
!this.props.preventFocusRestoration && n && this._lastIndexPath && (n.activeElement === n.body || null === n.activeElement || n.activeElement === t)) {
var r = function(e, t) {
for (var n = e, r = 0, i = t; r < i.length; r++) {
var o = i[r]
, a = n.children[Math.min(o, n.children.length - 1)];
if (!a)
break;
n = a
}
return vL(n) && gL(n) ? n : bL(e, n, !0) || fL(e, n)
}(t, this._lastIndexPath);
r ? (this._setActiveElement(r, !0),
r.focus(),
this._setParkedFocus(!1)) : this._setParkedFocus(!0)
}
}
,
t.prototype.componentWillUnmount = function() {
delete LL[this._id],
this._isInnerZone || (RL.delete(this),
this._root.current && this._root.current.removeEventListener("keydown", t._onKeyDownCapture, !0)),
this._root.current && this._root.current.removeEventListener("blur", this._onBlur, !0),
this._activeElement = null,
this._defaultFocusElement = null
}
,
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.as
, r = t.elementType
, i = t.rootProps
, o = t.ariaDescribedBy
, a = t.ariaLabelledBy
, s = t.className
, c = OD(this.props, fD)
, u = n || r || "div";
this._evaluateFocusBeforeRender();
var d, p = (void 0 === d && (d = !1),
!0 === d && (Tz = Az({}, d)),
Tz);
return l.createElement(u, Object(zn.a)({
"aria-labelledby": a,
"aria-describedby": o
}, c, i, {
className: Vz((_L || (_L = XI({
selectors: {
":focus": {
outline: "none"
}
}
}, "ms-FocusZone")),
_L), s),
ref: this._mergedRef(this.props.elementRef, this._root),
"data-focuszone-id": this._id,
onKeyDown: function(t) {
return e._onKeyDown(t, p)
},
onFocus: this._onFocus,
onMouseDownCapture: this._onMouseDown
}), this.props.children)
}
,
t.prototype.focus = function(e, t) {
if (void 0 === e && (e = !1),
void 0 === t && (t = !1),
this._root.current) {
if (!e && "true" === this._root.current.getAttribute(ML) && this._isInnerZone) {
var n = this._getOwnerZone(this._root.current);
if (n !== this._root.current) {
var r = LL[n.getAttribute(SL)];
return !!r && r.focusElement(this._root.current)
}
return !1
}
if (!e && this._activeElement && hL(this._root.current, this._activeElement) && vL(this._activeElement, void 0, this._inShadowRoot) && (!t || mL(this._activeElement)))
return this._activeElement.focus(),
!0;
var i = this._root.current.firstChild;
return this.focusElement(bL(this._root.current, i, !0, void 0, void 0, void 0, void 0, void 0, t))
}
return !1
}
,
t.prototype.focusLast = function() {
if (this._root.current) {
var e = this._root.current && this._root.current.lastChild;
return this.focusElement(fL(this._root.current, e, !0, !0, !0))
}
return !1
}
,
t.prototype.focusElement = function(e, t) {
var n = this.props
, r = n.onBeforeFocus
, i = n.shouldReceiveFocus;
return !(i && !i(e) || r && !r(e) || !e || (this._setActiveElement(e, t),
this._activeElement && this._activeElement.focus(),
0))
}
,
t.prototype.setFocusAlignment = function(e) {
this._focusAlignment = e
}
,
Object.defineProperty(t.prototype, "defaultFocusElement", {
get: function() {
return this._defaultFocusElement
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "activeElement", {
get: function() {
return this._activeElement
},
enumerable: !1,
configurable: !0
}),
t.prototype._evaluateFocusBeforeRender = function() {
var e = this._root.current
, t = this._getDocument();
if (t) {
var n = t.activeElement;
if (n !== e) {
var r = hL(e, n, !1);
this._lastIndexPath = r ? function(e, t) {
for (var n = []; t && e && t !== e; ) {
var r = qz(t, !0);
if (null === r)
return [];
n.unshift(Array.prototype.indexOf.call(r.children, t)),
t = r
}
return n
}(e, n) : void 0
}
}
}
,
t.prototype._setParkedFocus = function(e) {
var t = this._root.current;
t && this._isParked !== e && (this._isParked = e,
e ? (this.props.allowFocusRoot || (this._parkedTabIndex = t.getAttribute("tabindex"),
t.setAttribute("tabindex", "-1")),
t.focus()) : this.props.allowFocusRoot || (this._parkedTabIndex ? (t.setAttribute("tabindex", this._parkedTabIndex),
this._parkedTabIndex = void 0) : t.removeAttribute("tabindex")))
}
,
t.prototype._setActiveElement = function(e, t) {
var n = this._activeElement;
this._activeElement = e,
n && (yL(n) && this._updateTabIndexes(n),
n.tabIndex = -1),
this._activeElement && (this._focusAlignment && !t || this._setFocusAlignment(e, !0, !0),
this._activeElement.tabIndex = 0)
}
,
t.prototype._preventDefaultWhenHandled = function(e) {
this.props.preventDefaultWhenHandled && e.preventDefault()
}
,
t.prototype._tryInvokeClickForFocusable = function(e, t) {
var n = e;
if (n === this._root.current)
return !1;
do {
if ("BUTTON" === n.tagName || "A" === n.tagName || "INPUT" === n.tagName || "TEXTAREA" === n.tagName || "SUMMARY" === n.tagName)
return !1;
if (this._isImmediateDescendantOfZone(n) && "true" === n.getAttribute(ML) && "true" !== n.getAttribute("data-disable-click-on-enter"))
return zL(n, t),
!0;
n = qz(n, BL)
} while (n !== this._root.current);
return !1
}
,
t.prototype._getFirstInnerZone = function(e) {
if (!(e = e || this._activeElement || this._root.current))
return null;
if (yL(e))
return LL[e.getAttribute(SL)];
for (var t = e.firstElementChild; t; ) {
if (yL(t))
return LL[t.getAttribute(SL)];
var n = this._getFirstInnerZone(t);
if (n)
return n;
t = t.nextElementSibling
}
return null
}
,
t.prototype._moveFocus = function(e, t, n, r) {
void 0 === r && (r = !0);
var i = this._activeElement
, o = -1
, a = void 0
, l = !1
, s = this.props.direction === pL.bidirectional;
if (!i || !this._root.current)
return !1;
if (this._isElementInput(i) && !this._shouldInputLoseFocus(i, e))
return !1;
var c = s ? i.getBoundingClientRect() : null;
do {
if (i = e ? bL(this._root.current, i) : fL(this._root.current, i),
!s) {
a = i;
break
}
if (i) {
var u = t(c, i.getBoundingClientRect());
if (-1 === u && -1 === o) {
a = i;
break
}
if (u > -1 && (-1 === o || u < o) && (o = u,
a = i),
o >= 0 && u < 0)
break
}
} while (i);
if (a && a !== this._activeElement)
l = !0,
this.focusElement(a);
else if (this.props.isCircularNavigation && r)
return e ? this.focusElement(bL(this._root.current, this._root.current.firstElementChild, !0)) : this.focusElement(fL(this._root.current, this._root.current.lastElementChild, !0, !0, !0));
return l
}
,
t.prototype._moveFocusDown = function() {
var e = this
, t = -1
, n = this._focusAlignment.left || this._focusAlignment.x || 0;
return !!this._moveFocus(!0, (function(r, i) {
var o = -1
, a = Math.floor(i.top)
, l = Math.floor(r.bottom);
return a < l ? e._shouldWrapFocus(e._activeElement, TL) ? IL : NL : ((-1 === t && a >= l || a === t) && (t = a,
o = n >= i.left && n <= i.left + i.width ? 0 : Math.abs(i.left + i.width / 2 - n)),
o)
}
)) && (this._setFocusAlignment(this._activeElement, !1, !0),
!0)
}
,
t.prototype._moveFocusUp = function() {
var e = this
, t = -1
, n = this._focusAlignment.left || this._focusAlignment.x || 0;
return !!this._moveFocus(!1, (function(r, i) {
var o = -1
, a = Math.floor(i.bottom)
, l = Math.floor(i.top)
, s = Math.floor(r.top);
return a > s ? e._shouldWrapFocus(e._activeElement, TL) ? IL : NL : ((-1 === t && a <= s || l === t) && (t = l,
o = n >= i.left && n <= i.left + i.width ? 0 : Math.abs(i.left + i.width / 2 - n)),
o)
}
)) && (this._setFocusAlignment(this._activeElement, !1, !0),
!0)
}
,
t.prototype._moveFocusLeft = function(e) {
var t = this
, n = this._shouldWrapFocus(this._activeElement, EL);
return !!this._moveFocus(FD(e), (function(r, i) {
var o = -1;
return (FD(e) ? parseFloat(i.top.toFixed(3)) < parseFloat(r.bottom.toFixed(3)) : parseFloat(i.bottom.toFixed(3)) > parseFloat(r.top.toFixed(3))) && i.right <= r.right && t.props.direction !== pL.vertical ? o = r.right - i.right : n || (o = NL),
o
}
), void 0, n) && (this._setFocusAlignment(this._activeElement, !0, !1),
!0)
}
,
t.prototype._moveFocusRight = function(e) {
var t = this
, n = this._shouldWrapFocus(this._activeElement, EL);
return !!this._moveFocus(!FD(e), (function(r, i) {
var o = -1;
return (FD(e) ? parseFloat(i.bottom.toFixed(3)) > parseFloat(r.top.toFixed(3)) : parseFloat(i.top.toFixed(3)) < parseFloat(r.bottom.toFixed(3))) && i.left >= r.left && t.props.direction !== pL.vertical ? o = i.left - r.left : n || (o = NL),
o
}
), void 0, n) && (this._setFocusAlignment(this._activeElement, !0, !1),
!0)
}
,
t.prototype._moveFocusPaging = function(e, t) {
void 0 === t && (t = !0);
var n = this._activeElement;
if (!n || !this._root.current)
return !1;
if (this._isElementInput(n) && !this._shouldInputLoseFocus(n, e))
return !1;
var r = function(e) {
for (var t = e, n = vz(e); t && t !== n.body; ) {
if ("true" === t.getAttribute(CL))
return t;
t = t.parentElement
}
for (t = e; t && t !== n.body; ) {
if ("false" !== t.getAttribute(CL)) {
var r = getComputedStyle(t)
, i = r ? r.getPropertyValue("overflow-y") : "";
if (i && ("scroll" === i || "auto" === i))
return t
}
t = t.parentElement
}
return t && t !== n.body || (t = ww(e)),
t
}(n);
if (!r)
return !1;
var i = -1
, o = void 0
, a = -1
, l = -1
, s = r.clientHeight
, c = n.getBoundingClientRect();
do {
if (n = e ? bL(this._root.current, n) : fL(this._root.current, n)) {
var u = n.getBoundingClientRect()
, d = Math.floor(u.top)
, p = Math.floor(c.bottom)
, h = Math.floor(u.bottom)
, f = Math.floor(c.top)
, b = this._getHorizontalDistanceFromCenter(e, c, u);
if (e && d > p + s || !e && h < f - s)
break;
b > -1 && (e && d > a ? (a = d,
i = b,
o = n) : !e && h < l ? (l = h,
i = b,
o = n) : (-1 === i || b <= i) && (i = b,
o = n))
}
} while (n);
var g = !1;
if (o && o !== this._activeElement)
g = !0,
this.focusElement(o),
this._setFocusAlignment(o, !1, !0);
else if (this.props.isCircularNavigation && t)
return e ? this.focusElement(bL(this._root.current, this._root.current.firstElementChild, !0)) : this.focusElement(fL(this._root.current, this._root.current.lastElementChild, !0, !0, !0));
return g
}
,
t.prototype._setFocusAlignment = function(e, t, n) {
if (this.props.direction === pL.bidirectional && (!this._focusAlignment || t || n)) {
var r = e.getBoundingClientRect()
, i = r.left + r.width / 2
, o = r.top + r.height / 2;
this._focusAlignment || (this._focusAlignment = {
left: i,
top: o
}),
t && (this._focusAlignment.left = i),
n && (this._focusAlignment.top = o)
}
}
,
t.prototype._isImmediateDescendantOfZone = function(e) {
return this._getOwnerZone(e) === this._root.current
}
,
t.prototype._getOwnerZone = function(e) {
for (var t = qz(e, BL); t && t !== this._root.current && t !== this._getDocument().body; ) {
if (yL(t))
return t;
t = qz(t, BL)
}
return t
}
,
t.prototype._updateTabIndexes = function(e) {
!this._activeElement && this.props.defaultTabbableElement && "function" == typeof this.props.defaultTabbableElement && (this._activeElement = this.props.defaultTabbableElement(this._root.current)),
!e && this._root.current && (this._defaultFocusElement = null,
e = this._root.current,
this._activeElement && !hL(e, this._activeElement) && (this._activeElement = null)),
this._activeElement && !vL(this._activeElement, void 0, this._inShadowRoot) && (this._activeElement = null);
for (var t = e && e.children, n = 0; t && n < t.length; n++) {
var r = t[n];
yL(r) ? "true" === r.getAttribute(ML) && (this._isInnerZone || (this._activeElement || this._defaultFocusElement) && this._activeElement !== r ? "-1" !== r.getAttribute(AL) && r.setAttribute(AL, "-1") : (this._defaultFocusElement = r,
"0" !== r.getAttribute(AL) && r.setAttribute(AL, "0"))) : (r.getAttribute && "false" === r.getAttribute(ML) && r.setAttribute(AL, "-1"),
vL(r, void 0, this._inShadowRoot) ? this.props.disabled ? r.setAttribute(AL, "-1") : this._isInnerZone || (this._activeElement || this._defaultFocusElement) && this._activeElement !== r ? "-1" !== r.getAttribute(AL) && r.setAttribute(AL, "-1") : (this._defaultFocusElement = r,
"0" !== r.getAttribute(AL) && r.setAttribute(AL, "0")) : "svg" === r.tagName && "false" !== r.getAttribute("focusable") && r.setAttribute("focusable", "false")),
this._updateTabIndexes(r)
}
}
,
t.prototype._isContentEditableElement = function(e) {
return e && "true" === e.getAttribute("contenteditable")
}
,
t.prototype._isElementInput = function(e) {
return !(!e || !e.tagName || "input" !== e.tagName.toLowerCase() && "textarea" !== e.tagName.toLowerCase())
}
,
t.prototype._shouldInputLoseFocus = function(e, t) {
if (!this._processingTabKey && e && e.type && PL.indexOf(e.type.toLowerCase()) > -1) {
var n = e.selectionStart
, r = n !== e.selectionEnd
, i = e.value
, o = e.readOnly;
if (r || n > 0 && !t && !o || n !== i.length && t && !o || this.props.handleTabKey && (!this.props.shouldInputLoseFocusOnArrowKey || !this.props.shouldInputLoseFocusOnArrowKey(e)))
return !1
}
return !0
}
,
t.prototype._shouldWrapFocus = function(e, t) {
return !this.props.checkForNoWrap || OL(e, t)
}
,
t.prototype._portalContainsElement = function(e) {
return e && !!this._root.current && Xz(e, this._root.current)
}
,
t.prototype._getDocument = function() {
return vz(this._root.current)
}
,
t.contextType = nI,
t.defaultProps = {
isCircularNavigation: !1,
direction: pL.bidirectional,
shouldRaiseClicks: !0,
"data-tabster": '{"uncontrolled": {}}'
},
t
}(l.Component);
function VL(e) {
var t;
if (void 0 === DL || e) {
var n = ww()
, r = null === (t = null == n ? void 0 : n.navigator) || void 0 === t ? void 0 : t.userAgent;
DL = !!r && -1 !== r.indexOf("Macintosh")
}
return !!DL
}
var WL = function() {
return !!(window && window.navigator && window.navigator.userAgent) && /iPad|iPhone|iPod/i.test(window.navigator.userAgent)
};
function qL(e, t) {
for (var n = Object(zn.a)({}, t), r = 0, i = Object.keys(e); r < i.length; r++) {
var o = i[r];
void 0 === n[o] && (n[o] = e[o])
}
return n
}
var HL, UL, XL = JN((function(e) {
var t = e;
return JN((function(n) {
if (e === n)
throw new Error("Attempted to compose a component with itself.");
var r = n
, i = JN((function(e) {
return function(t) {
return l.createElement(r, Object(zn.a)({}, t, {
defaultRender: e
}))
}
}
));
return function(e) {
var n = e.defaultRender;
return l.createElement(t, Object(zn.a)({}, e, {
defaultRender: n ? i(n) : r
}))
}
}
))
}
));
function GL(e, t) {
return XL(e)(t)
}
function KL(e) {
return e.canCheck ? !(!e.isChecked && !e.checked) : "boolean" == typeof e.isChecked ? e.isChecked : "boolean" == typeof e.checked ? e.checked : null
}
function YL(e) {
return !(!e.subMenuProps && !e.items)
}
function QL(e) {
return !(!e.isDisabled && !e.disabled)
}
function JL(e) {
return null !== KL(e) ? "menuitemcheckbox" : "menuitem"
}
function ZL(e, t, n, r) {
return e.addEventListener(t, n, r),
function() {
return e.removeEventListener(t, n, r)
}
}
!function(e) {
e[e.top = 1] = "top",
e[e.bottom = -1] = "bottom",
e[e.left = 2] = "left",
e[e.right = -2] = "right"
}(HL || (HL = {})),
function(e) {
e[e.top = 0] = "top",
e[e.bottom = 1] = "bottom",
e[e.start = 2] = "start",
e[e.end = 3] = "end"
}(UL || (UL = {}));
var $L, eR = function() {
function e(e, t, n, r) {
void 0 === e && (e = 0),
void 0 === t && (t = 0),
void 0 === n && (n = 0),
void 0 === r && (r = 0),
this.top = n,
this.bottom = r,
this.left = e,
this.right = t
}
return Object.defineProperty(e.prototype, "width", {
get: function() {
return this.right - this.left
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(e.prototype, "height", {
get: function() {
return this.bottom - this.top
},
enumerable: !1,
configurable: !0
}),
e.prototype.equals = function(e) {
return parseFloat(this.top.toFixed(4)) === parseFloat(e.top.toFixed(4)) && parseFloat(this.bottom.toFixed(4)) === parseFloat(e.bottom.toFixed(4)) && parseFloat(this.left.toFixed(4)) === parseFloat(e.left.toFixed(4)) && parseFloat(this.right.toFixed(4)) === parseFloat(e.right.toFixed(4))
}
,
e
}();
function tR(e, t, n) {
return {
targetEdge: e,
alignmentEdge: t,
isAuto: n
}
}
var nR = (($L = {})[0] = tR(HL.top, HL.left),
$L[1] = tR(HL.top),
$L[2] = tR(HL.top, HL.right),
$L[3] = tR(HL.top, void 0, !0),
$L[4] = tR(HL.bottom, HL.left),
$L[5] = tR(HL.bottom),
$L[6] = tR(HL.bottom, HL.right),
$L[uL] = tR(HL.bottom, void 0, !0),
$L[8] = tR(HL.left, HL.top),
$L[9] = tR(HL.left),
$L[10] = tR(HL.left, HL.bottom),
$L[11] = tR(HL.right, HL.top),
$L[12] = tR(HL.right),
$L[13] = tR(HL.right, HL.bottom),
$L);
function rR(e, t) {
return !(e.top < t.top || e.bottom > t.bottom || e.left < t.left || e.right > t.right)
}
function iR(e, t) {
var n = [];
return e.top < t.top && n.push(HL.top),
e.bottom > t.bottom && n.push(HL.bottom),
e.left < t.left && n.push(HL.left),
e.right > t.right && n.push(HL.right),
n
}
function oR(e, t) {
return e[HL[t]]
}
function aR(e, t, n) {
return e[HL[t]] = n,
e
}
function lR(e, t) {
var n = yR(t);
return (oR(e, n.positiveEdge) + oR(e, n.negativeEdge)) / 2
}
function sR(e, t) {
return e > 0 ? t : -1 * t
}
function cR(e, t) {
return sR(e, oR(t, e))
}
function uR(e, t, n) {
return sR(n, oR(e, n) - oR(t, n))
}
function dR(e, t, n, r) {
void 0 === r && (r = !0);
var i = oR(e, t) - n
, o = aR(e, t, n);
return r && (o = aR(e, -1 * t, oR(e, -1 * t) - i)),
o
}
function pR(e, t, n, r) {
return void 0 === r && (r = 0),
dR(e, n, oR(t, n) + sR(n, r))
}
function hR(e, t, n) {
return cR(n, e) > cR(n, t)
}
function fR(e, t) {
for (var n = 0, r = 0, i = iR(e, t); r < i.length; r++) {
var o = i[r];
n += Math.pow(uR(e, t, o), 2)
}
return n
}
function bR(e, t, n, r) {
return void 0 === r && (r = 200),
(n === HL.bottom || n === HL.top) && uR(e, t, n) >= r
}
function gR(e, t, n, r) {
for (var i = 0, o = e; i < o.length; i++) {
var a = o[i]
, l = void 0;
r && r === -1 * a ? (l = dR(t.elementRectangle, a, oR(n, a), !1),
t.forcedInBounds = !0) : hR(l = pR(t.elementRectangle, n, a), n, -1 * a) || (l = dR(l, -1 * a, oR(n, -1 * a), !1),
t.forcedInBounds = !0),
t.elementRectangle = l
}
return t
}
function mR(e, t, n) {
var r = yR(t).positiveEdge;
return dR(e, r, n - (lR(e, t) - oR(e, r)))
}
function vR(e, t, n, r, i) {
void 0 === r && (r = 0);
var o = new eR(e.left,e.right,e.top,e.bottom)
, a = n.alignmentEdge
, l = n.targetEdge
, s = i ? l : -1 * l;
return o = i ? pR(o, t, l, r) : function(e, t, n, r) {
void 0 === r && (r = 0);
var i = sR(-1 * n, r);
return dR(e, -1 * n, oR(t, n) + i)
}(o, t, l, r),
o = a ? pR(o, t, a) : mR(o, s, lR(t, l))
}
function yR(e) {
return e === HL.top || e === HL.bottom ? {
positiveEdge: HL.left,
negativeEdge: HL.right
} : {
positiveEdge: HL.top,
negativeEdge: HL.bottom
}
}
function xR(e, t, n) {
return n && Math.abs(uR(e, n, t)) > Math.abs(uR(e, n, -1 * t)) ? -1 * t : t
}
function OR(e, t, n, r, i, o, a, l) {
var s, c = {}, u = wR(t), d = o ? n : -1 * n, p = i || yR(n).positiveEdge;
return a && !function(e, t, n) {
return void 0 !== n && oR(e, t) === oR(n, t)
}(e, (s = p,
-1 * s), r) || (p = xR(e, p, r)),
c[HL[d]] = uR(e, u, d),
c[HL[p]] = uR(e, u, p),
l && (c[HL[-1 * d]] = uR(e, u, -1 * d),
c[HL[-1 * p]] = uR(e, u, -1 * p)),
c
}
function jR(e, t, n) {
var r = lR(t, e)
, i = lR(n, e)
, o = yR(e)
, a = o.positiveEdge
, l = o.negativeEdge;
return r <= i ? a : l
}
function kR(e, t, n, r, i, o, a, l, s) {
void 0 === o && (o = !1);
var c = vR(e, t, r, i, s);
return rR(c, n) ? {
elementRectangle: c,
targetEdge: r.targetEdge,
alignmentEdge: r.alignmentEdge
} : function(e, t, n, r, i, o, a, l, s) {
void 0 === i && (i = !1),
void 0 === a && (a = 0);
var c = r.alignmentEdge
, u = r.alignTargetEdge
, d = {
elementRectangle: e,
targetEdge: r.targetEdge,
alignmentEdge: c
};
l || s || (d = function(e, t, n, r, i, o, a) {
void 0 === i && (i = !1),
void 0 === a && (a = 0);
var l = [HL.left, HL.right, HL.bottom, HL.top];
FD() && (l[0] *= -1,
l[1] *= -1);
for (var s, c = e, u = r.targetEdge, d = r.alignmentEdge, p = u, h = d, f = 0; f < 4; f++) {
if (hR(c, n, u))
return {
elementRectangle: c,
targetEdge: u,
alignmentEdge: d
};
if (i && bR(t, n, u, o)) {
switch (u) {
case HL.bottom:
c.bottom = n.bottom;
break;
case HL.top:
c.top = n.top
}
return {
elementRectangle: c,
targetEdge: u,
alignmentEdge: d,
forcedInBounds: !0
}
}
var b = fR(c, n);
(!s || b < s) && (s = b,
p = u,
h = d),
l.splice(l.indexOf(u), 1),
l.length > 0 && (l.indexOf(-1 * u) > -1 ? u *= -1 : (d = u,
u = l.slice(-1)[0]),
c = vR(e, t, {
targetEdge: u,
alignmentEdge: d
}, a))
}
return {
elementRectangle: c = vR(e, t, {
targetEdge: p,
alignmentEdge: h
}, a),
targetEdge: p,
alignmentEdge: h
}
}(e, t, n, r, i, o, a));
var p = iR(d.elementRectangle, n)
, h = l ? -d.targetEdge : void 0;
if (p.length > 0)
if (u)
if (d.alignmentEdge && p.indexOf(-1 * d.alignmentEdge) > -1) {
var f = function(e, t, n, r) {
var i = e.alignmentEdge
, o = e.targetEdge
, a = -1 * i;
return {
elementRectangle: vR(e.elementRectangle, t, {
targetEdge: o,
alignmentEdge: a
}, n, r),
targetEdge: o,
alignmentEdge: a
}
}(d, t, a, s);
if (rR(f.elementRectangle, n))
return f;
d = gR(iR(f.elementRectangle, n), d, n, h)
} else
d = gR(p, d, n, h);
else
d = gR(p, d, n, h);
return d
}(c, t, n, r, o, a, i, l, s)
}
function wR(e) {
var t = e.getBoundingClientRect();
return new eR(t.left,t.right,t.top,t.bottom)
}
function CR(e, t, n, r, i, o) {
void 0 === i && (i = !1);
var a = e.gapSpace ? e.gapSpace : 0
, l = function(e, t) {
var n;
if (t) {
if (t.preventDefault) {
var r = t;
n = new eR(r.clientX,r.clientX,r.clientY,r.clientY)
} else if (t.getBoundingClientRect)
n = wR(t);
else {
var i = t
, o = i.left || i.x
, a = i.top || i.y
, l = i.right || o
, s = i.bottom || a;
n = new eR(o,l,a,s)
}
if (!rR(n, e))
for (var c = 0, u = iR(n, e); c < u.length; c++) {
var d = u[c];
n[HL[d]] = e[HL[d]]
}
} else
n = new eR(0,0,0,0);
return n
}(n, e.target)
, s = function(e, t, n, r, i) {
return e.isAuto && (e.alignmentEdge = jR(e.targetEdge, t, n)),
e.alignTargetEdge = i,
e
}(function(e, t, n) {
if (void 0 === e && (e = uL),
n)
return {
alignmentEdge: n.alignmentEdge,
isAuto: n.isAuto,
targetEdge: n.targetEdge
};
var r = Object(zn.a)({}, nR[e]);
return FD() ? (r.alignmentEdge && r.alignmentEdge % 2 == 0 && (r.alignmentEdge = -1 * r.alignmentEdge),
void 0 !== t ? nR[t] : r) : r
}(e.directionalHint, e.directionalHintForRTL, r), l, n, e.coverTarget, e.alignTargetEdge)
, c = kR(wR(t), l, n, s, a, i, o, e.directionalHintFixed, e.coverTarget);
return Object(zn.a)(Object(zn.a)({}, c), {
targetRectangle: l
})
}
function _R(e, t, n) {
return void 0 === t && (t = 0),
void 0 === n && (n = 0),
function(e) {
return Math.sqrt(e * e * 2)
}(e ? t : 0) / 2 + n
}
function MR(e, t, n, r, i, o, a, l) {
void 0 === i && (i = !1);
var s = null != l ? l : ww()
, c = e.isBeakVisible && e.beakWidth || 0
, u = _R(e.isBeakVisible, e.beakWidth, e.gapSpace)
, d = e;
d.gapSpace = u;
var p = e.bounds ? function(e) {
return new eR(e.left,e.right,e.top,e.bottom)
}(e.bounds) : new eR(0,s.innerWidth - function(e) {
if (void 0 === jL) {
var t = null != e ? e : vz()
, n = t.createElement("div");
n.style.setProperty("width", "100px"),
n.style.setProperty("height", "100px"),
n.style.setProperty("overflow", "scroll"),
n.style.setProperty("position", "absolute"),
n.style.setProperty("top", "-9999px"),
t.body.appendChild(n),
jL = n.offsetWidth - n.clientWidth,
t.body.removeChild(n)
}
return jL
}(),0,s.innerHeight)
, h = CR(d, n, p, r, i, o)
, f = function(e, t, n) {
var r = -1 * e.targetEdge
, i = new eR(0,e.elementRectangle.width,0,e.elementRectangle.height)
, o = {}
, a = xR(e.elementRectangle, e.alignmentEdge ? e.alignmentEdge : yR(r).positiveEdge, n)
, l = uR(e.elementRectangle, e.targetRectangle, r) > Math.abs(oR(t, r));
return o[HL[r]] = oR(t, r),
o[HL[a]] = uR(t, i, a),
{
elementPosition: Object(zn.a)({}, o),
closestEdge: jR(e.targetEdge, t, i),
targetEdge: r,
hideBeak: !l
}
}(h, function(e, t) {
var n = t.targetRectangle
, r = yR(t.targetEdge)
, i = r.positiveEdge
, o = r.negativeEdge
, a = lR(n, t.targetEdge)
, l = new eR(e / 2,t.elementRectangle.width - e / 2,e / 2,t.elementRectangle.height - e / 2)
, s = new eR(0,e,0,e);
return hR(s = mR(s = dR(s, -1 * t.targetEdge, -e / 2), -1 * t.targetEdge, a - cR(i, t.elementRectangle)), l, i) ? hR(s, l, o) || (s = pR(s, l, o)) : s = pR(s, l, i),
s
}(c, h), p);
return Object(zn.a)(Object(zn.a)({}, function(e, t, n, r, i) {
return {
elementPosition: OR(e.elementRectangle, t, e.targetEdge, n, e.alignmentEdge, r, i, e.forcedInBounds),
targetEdge: e.targetEdge,
alignmentEdge: e.alignmentEdge
}
}(h, t, p, e.coverTarget, a)), {
beakPosition: f
})
}
var SR = ["TEMPLATE", "STYLE", "SCRIPT"];
function AR() {
var e = l.useRef();
return e.current || (e.current = new oD),
l.useEffect((function() {
return function() {
var t;
null === (t = e.current) || void 0 === t || t.dispose(),
e.current = void 0
}
}
), []),
e.current
}
function TR(e, t, n, r) {
var i = l.useRef(n);
i.current = n,
l.useEffect((function() {
var n = e && "current"in e ? e.current : e;
if (n && n.addEventListener)
return ZL(n, t, (function(e) {
return i.current(e)
}
), r)
}
), [e, t, r])
}
function ER(e) {
var t = e.originalElement
, n = e.containsFocus;
t && n && t !== ww() && setTimeout((function() {
var e;
null === (e = t.focus) || void 0 === e || e.call(t)
}
), 0)
}
var IR = l.forwardRef((function(e, t) {
var n = qL({
shouldRestoreFocus: !0,
enableAriaHiddenSiblings: !0
}, e)
, r = l.useRef()
, i = QD(r, t);
(function(e, t) {
var n = "true" === String(e["aria-modal"]).toLowerCase() && e.enableAriaHiddenSiblings;
l.useEffect((function() {
if (n && t.current)
return function(e) {
var t = vz(e);
if (!t)
return function() {}
;
for (var n = []; e !== t.body && e.parentElement; ) {
for (var r = 0, i = e.parentElement.children; r < i.length; r++) {
var o = i[r]
, a = o.getAttribute("aria-hidden");
o !== e && "true" !== (null == a ? void 0 : a.toLowerCase()) && -1 === SR.indexOf(o.tagName) && n.push([o, a])
}
e = e.parentElement
}
return n.forEach((function(e) {
e[0].setAttribute("aria-hidden", "true")
}
)),
function() {
!function(e) {
e.forEach((function(e) {
var t = e[0]
, n = e[1];
n ? t.setAttribute("aria-hidden", n) : t.removeAttribute("aria-hidden")
}
))
}(n),
n = []
}
}(t.current)
}
), [t, n])
}
)(n, r),
function(e, t) {
var n = e.onRestoreFocus
, r = void 0 === n ? ER : n
, i = l.useRef()
, o = l.useRef(!1);
l.useEffect((function() {
return i.current = vz().activeElement,
function(e) {
var t = vz(e)
, n = t && t.activeElement;
return !(!n || !hL(e, n))
}(t.current) && (o.current = !0),
function() {
var e;
null == r || r({
originalElement: i.current,
containsFocus: o.current,
documentContainsFocus: (null === (e = vz()) || void 0 === e ? void 0 : e.hasFocus()) || !1
}),
i.current = void 0
}
}
), []),
TR(t, "focus", l.useCallback((function() {
o.current = !0
}
), []), !0),
TR(t, "blur", l.useCallback((function(e) {
t.current && e.relatedTarget && !t.current.contains(e.relatedTarget) && (o.current = !1)
}
), []), !0)
}(n, r);
var o = n.role
, a = n.className
, s = n.ariaLabel
, c = n.ariaLabelledBy
, u = n.ariaDescribedBy
, d = n.style
, p = n.children
, h = n.onDismiss
, f = function(e, t) {
var n = AR()
, r = l.useState(!1)
, i = r[0]
, o = r[1];
return l.useEffect((function() {
return n.requestAnimationFrame((function() {
var n;
if (!e.style || !e.style.overflowY) {
var r = !1;
if (t && t.current && (null === (n = t.current) || void 0 === n ? void 0 : n.firstElementChild)) {
var a = t.current.clientHeight
, l = t.current.firstElementChild.clientHeight;
a > 0 && l > a && (r = l - a > 1)
}
i !== r && o(r)
}
}
)),
function() {
return n.dispose()
}
}
)),
i
}(n, r)
, b = l.useCallback((function(e) {
e.which === Yz && h && (h(e),
e.preventDefault(),
e.stopPropagation())
}
), [h]);
return TR(tI(), "keydown", b),
l.createElement("div", Object(zn.a)({
ref: i
}, OD(n, xD), {
className: a,
role: o,
"aria-label": s,
"aria-labelledby": c,
"aria-describedby": u,
onKeyDown: b,
style: Object(zn.a)({
overflowY: f ? "scroll" : void 0,
outline: "none"
}, d)
}), p)
}
));
function NR(e, t) {
var n, r, i, o = l.useRef(), a = l.useRef(null), s = tI();
if (!e || e !== o.current || "string" == typeof e) {
var c = null == t ? void 0 : t.current;
if (e)
if ("string" == typeof e)
if (null === (n = null == c ? void 0 : c.getRootNode()) || void 0 === n ? void 0 : n.host)
a.current = null !== (i = null === (r = null == c ? void 0 : c.getRootNode()) || void 0 === r ? void 0 : r.querySelector(e)) && void 0 !== i ? i : null;
else {
var u = vz(c);
a.current = u ? u.querySelector(e) : null
}
else
a.current = "stopPropagation"in e || "getBoundingClientRect"in e ? e : "current"in e ? e.current : e;
o.current = e
}
return [a, s]
}
IR.displayName = "Popup";
var zR, DR = function(e) {
var t, n;
return (null !== (n = null === (t = null == e ? void 0 : e.window) || void 0 === t ? void 0 : t.document) && void 0 !== n ? n : "undefined" != typeof document) ? document : void 0
}, LR = ((zR = {})[HL.top] = WN.slideUpIn10,
zR[HL.bottom] = WN.slideDownIn10,
zR[HL.left] = WN.slideLeftIn10,
zR[HL.right] = WN.slideRightIn10,
zR), RR = {
opacity: 0,
filter: "opacity(0)",
pointerEvents: "none"
}, PR = ["role", "aria-roledescription"], BR = {
preventDismissOnLostFocus: !1,
preventDismissOnScroll: !1,
preventDismissOnResize: !1,
isBeakVisible: !0,
beakWidth: 16,
gapSpace: 0,
minPagePadding: 8,
directionalHint: uL
}, FR = XD({
disableCaching: !0
});
function VR(e, t, n, r) {
var i, o = e.calloutMaxHeight, a = e.finalHeight, s = e.directionalHint, c = e.directionalHintFixed, u = e.hidden, d = e.gapSpace, p = e.beakWidth, h = e.isBeakVisible, f = e.coverTarget, b = l.useState(), g = b[0], m = b[1], v = null !== (i = null == r ? void 0 : r.elementPosition) && void 0 !== i ? i : {}, y = v.top, x = v.bottom, O = (null == n ? void 0 : n.current) ? function(e) {
var t, n, r, i, o = e, a = e, l = e, s = null !== (t = l.left) && void 0 !== t ? t : l.x, c = null !== (n = l.top) && void 0 !== n ? n : l.y, u = null !== (r = l.right) && void 0 !== r ? r : s, d = null !== (i = l.bottom) && void 0 !== i ? i : c;
return o.stopPropagation ? new eR(o.clientX,o.clientX,o.clientY,o.clientY) : void 0 !== s && void 0 !== c ? new eR(s,u,c,d) : wR(a)
}(n.current) : void 0;
return l.useEffect((function() {
var e, n, i = null !== (e = t()) && void 0 !== e ? e : {}, a = i.top, l = i.bottom;
(null == r ? void 0 : r.targetEdge) === HL.top && (null == O ? void 0 : O.top) && !f && (l = O.top - function(e, t, n) {
return _R(e, t, n)
}(h, p, d)),
"number" == typeof y && l ? n = l - y : "number" == typeof x && "number" == typeof a && l && (n = l - a - x),
m(!o && !u || o && n && o > n ? n : o || void 0)
}
), [x, o, a, s, c, t, u, r, y, d, p, h, O, f]),
g
}
function WR(e, t, n, r, i, o) {
var a, s = l.useState(), c = s[0], u = s[1], d = l.useRef(0), p = l.useRef(), h = AR(), f = e.hidden, b = e.target, g = e.finalHeight, m = e.calloutMaxHeight, v = e.onPositioned, y = e.directionalHint, x = e.hideOverflow, O = e.preferScrollResizePositioning, j = function() {
var e;
return (null !== (e = tI()) && void 0 !== e ? e : "undefined" != typeof window) ? window : void 0
}(), k = l.useRef();
k.current !== o.current && (k.current = o.current,
a = o.current ? null == j ? void 0 : j.getComputedStyle(o.current) : void 0);
var w = null == a ? void 0 : a.overflowY;
return l.useEffect((function() {
if (!f) {
var o = h.requestAnimationFrame((function() {
var o, a, l, s;
if (t.current && n) {
var h = Object(zn.a)(Object(zn.a)({}, e), {
target: r.current,
bounds: i()
})
, f = n.cloneNode(!0);
f.style.maxHeight = m ? "".concat(m) : "",
f.style.visibility = "hidden",
null === (o = n.parentElement) || void 0 === o || o.appendChild(f);
var y = p.current === b ? c : void 0
, k = O && !(x || "clip" === w || "hidden" === w)
, C = g ? function(e, t, n, r, i) {
return function(e, t, n, r, i) {
return MR(e, t, n, r, !1, void 0, !0, null != i ? i : ww())
}(e, t, n, r, i)
}(h, t.current, f, y, j) : function(e, t, n, r, i, o, a) {
return MR(e, t, n, r, i, void 0, void 0, a)
}(h, t.current, f, y, k, 0, j);
null === (a = n.parentElement) || void 0 === a || a.removeChild(f),
!c && C || c && C && (s = C,
!UR((l = c).elementPosition, s.elementPosition) || !UR(l.beakPosition.elementPosition, s.beakPosition.elementPosition)) && d.current < 5 ? (d.current++,
u(C)) : d.current > 0 && (d.current = 0,
null == v || v(c))
}
}
), n);
return p.current = b,
function() {
h.cancelAnimationFrame(o),
p.current = void 0
}
}
u(void 0),
d.current = 0
}
), [f, y, h, n, m, t, r, g, i, v, c, e, b, x, O, w, j]),
c
}
var qR = l.memo(l.forwardRef((function(e, t) {
var n = qL(BR, e)
, r = n.styles
, i = n.style
, o = n.ariaLabel
, a = n.ariaDescribedBy
, s = n.ariaLabelledBy
, c = n.className
, u = n.isBeakVisible
, d = n.children
, p = n.beakWidth
, h = n.calloutWidth
, f = n.calloutMaxWidth
, b = n.calloutMinWidth
, g = n.doNotLayer
, m = n.finalHeight
, v = n.hideOverflow
, y = void 0 === v ? !!m : v
, x = n.backgroundColor
, O = n.calloutMaxHeight
, j = n.onScroll
, k = n.shouldRestoreFocus
, w = void 0 === k || k
, C = n.target
, _ = n.hidden
, M = n.onLayerMounted
, S = n.popupProps
, A = l.useRef(null)
, T = QD(l.useRef(null), null == S ? void 0 : S.ref)
, E = l.useState(null)
, I = E[0]
, N = E[1]
, z = l.useCallback((function(e) {
N(e)
}
), [])
, D = QD(A, t)
, L = NR(n.target, {
current: I
})
, R = L[0]
, P = L[1]
, B = function(e, t, n) {
var r = e.bounds
, i = e.minPagePadding
, o = void 0 === i ? BR.minPagePadding : i
, a = e.target
, s = l.useState(!1)
, c = s[0]
, u = s[1]
, d = l.useRef()
, p = l.useCallback((function() {
if (!d.current || c) {
var e = "function" == typeof r ? n ? r(a, n) : void 0 : r;
!e && n && (e = function(e, t) {
return function(e, t) {
var n = void 0;
if (t.getWindowSegments && (n = t.getWindowSegments()),
void 0 === n || n.length <= 1)
return {
top: 0,
left: 0,
right: t.innerWidth,
bottom: t.innerHeight,
width: t.innerWidth,
height: t.innerHeight
};
var r = 0
, i = 0;
if (null !== e && e.getBoundingClientRect) {
var o = e.getBoundingClientRect();
r = (o.left + o.right) / 2,
i = (o.top + o.bottom) / 2
} else
null !== e && (r = e.left || e.x,
i = e.top || e.y);
for (var a = {
top: 0,
left: 0,
right: 0,
bottom: 0,
width: 0,
height: 0
}, l = 0, s = n; l < s.length; l++) {
var c = s[l];
r && c.left <= r && c.right >= r && i && c.top <= i && c.bottom >= i && (a = {
top: c.top,
left: c.left,
right: c.right,
bottom: c.bottom,
width: c.width,
height: c.height
})
}
return a
}(e, t)
}(t.current, n),
e = {
top: e.top + o,
left: e.left + o,
right: e.right - o,
bottom: e.bottom - o,
width: e.width - 2 * o,
height: e.height - 2 * o
}),
d.current = e,
c && u(!1)
}
return d.current
}
), [r, o, a, t, n, c])
, h = AR();
return TR(n, "resize", h.debounce((function() {
u(!0)
}
), 500, {
leading: !0
})),
p
}(n, R, P)
, F = WR(n, A, I, R, B, T)
, V = VR(n, B, R, F)
, W = function(e, t, n, r, i) {
var o = e.hidden
, a = e.onDismiss
, s = e.preventDismissOnScroll
, c = e.preventDismissOnResize
, u = e.preventDismissOnLostFocus
, d = e.dismissOnTargetClick
, p = e.shouldDismissOnWindowFocus
, h = e.preventDismissOnEvent
, f = l.useRef(!1)
, b = AR()
, g = wk([function() {
f.current = !0
}
, function() {
f.current = !1
}
])
, m = !!t;
return l.useEffect((function() {
var e = function(e) {
m && !s && g(e)
}
, t = function(e) {
c || h && h(e) || null == a || a(e)
}
, l = function(e) {
u || g(e)
}
, g = function(e) {
var t = e.composedPath ? e.composedPath() : []
, o = t.length > 0 ? t[0] : e.target
, l = n.current && !hL(n.current, o);
if (l && f.current)
f.current = !1;
else if (!r.current && l || e.target !== i && l && (!r.current || "stopPropagation"in r.current || d || o !== r.current && !hL(r.current, o))) {
if (h && h(e))
return;
null == a || a(e)
}
}
, v = function(e) {
p && ((!h || h(e)) && (h || u) || (null == i ? void 0 : i.document.hasFocus()) || null !== e.relatedTarget || null == a || a(e))
}
, y = new Promise((function(n) {
b.setTimeout((function() {
if (!o && i) {
var r = [ZL(i, "scroll", e, !0), ZL(i, "resize", t, !0), ZL(i.document.documentElement, "focus", l, !0), ZL(i.document.documentElement, "click", l, !0), ZL(i, "blur", v, !0)];
n((function() {
r.forEach((function(e) {
return e()
}
))
}
))
}
}
), 0)
}
));
return function() {
y.then((function(e) {
return e()
}
))
}
}
), [o, b, n, r, i, a, p, d, u, c, s, m, h]),
g
}(n, F, A, R, P)
, q = W[0]
, H = W[1]
, U = (null == F ? void 0 : F.elementPosition.top) && (null == F ? void 0 : F.elementPosition.bottom)
, X = Object(zn.a)(Object(zn.a)({}, null == F ? void 0 : F.elementPosition), {
maxHeight: V
});
if (U && (X.bottom = void 0),
function(e, t, n) {
var r = e.hidden
, i = e.setInitialFocus
, o = AR()
, a = !!t;
l.useEffect((function() {
if (!r && i && a && n) {
var e = o.requestAnimationFrame((function() {
return function(e, t, n) {
var r = bL(e, e, !0, !1, !1, !0, void 0, void 0, void 0, void 0);
return !!r && (wL(r),
!0)
}(n)
}
), n);
return function() {
return o.cancelAnimationFrame(e)
}
}
}
), [r, a, o, n, i])
}(n, F, I),
l.useEffect((function() {
_ || null == M || M()
}
), [_]),
!P)
return null;
var G = y
, K = u && !!C
, Y = FR(r, {
theme: n.theme,
className: c,
overflowYHidden: G,
calloutWidth: h,
positions: F,
beakWidth: p,
backgroundColor: x,
calloutMaxWidth: f,
calloutMinWidth: b,
doNotLayer: g
})
, Q = Object(zn.a)(Object(zn.a)({
maxHeight: O || "100%"
}, i), G && {
overflowY: "hidden"
})
, J = n.hidden ? {
visibility: "hidden"
} : void 0;
return l.createElement("div", {
ref: D,
className: Y.container,
style: J
}, l.createElement("div", Object(zn.a)({}, OD(n, xD, PR), {
className: Vz(Y.root, F && F.targetEdge && LR[F.targetEdge]),
style: F ? Object(zn.a)({}, X) : RR,
tabIndex: -1,
ref: z
}), K && l.createElement("div", {
className: Y.beak,
style: HR(F)
}), K && l.createElement("div", {
className: Y.beakCurtain
}), l.createElement(IR, Object(zn.a)({
role: n.role,
"aria-roledescription": n["aria-roledescription"],
ariaDescribedBy: a,
ariaLabel: o,
ariaLabelledBy: s,
className: Y.calloutMain,
onDismiss: n.onDismiss,
onMouseDown: q,
onMouseUp: H,
onRestoreFocus: n.onRestoreFocus,
onScroll: j,
shouldRestoreFocus: w,
style: Q
}, S, {
ref: T
}), d)))
}
)), (function(e, t) {
return !(t.shouldUpdateWhenHidden || !e.hidden || !t.hidden) || aD(e, t)
}
));
function HR(e) {
var t, n, r = Object(zn.a)(Object(zn.a)({}, null === (t = null == e ? void 0 : e.beakPosition) || void 0 === t ? void 0 : t.elementPosition), {
display: (null === (n = null == e ? void 0 : e.beakPosition) || void 0 === n ? void 0 : n.hideBeak) ? "none" : void 0
});
return r.top || r.bottom || r.left || r.right || (r.left = 0,
r.top = 0),
r
}
function UR(e, t) {
for (var n in t)
if (t.hasOwnProperty(n)) {
var r = e[n]
, i = t[n];
if (void 0 === r || void 0 === i)
return !1;
if (r.toFixed(2) !== i.toFixed(2))
return !1
}
return !0
}
function XR(e) {
return {
height: e,
width: e
}
}
qR.displayName = "CalloutContentBase";
var GR = {
container: "ms-Callout-container",
root: "ms-Callout",
beak: "ms-Callout-beak",
beakCurtain: "ms-Callout-beakCurtain",
calloutMain: "ms-Callout-main"
}
, KR = yI(qR, (function(e) {
var t, n = e.theme, r = e.className, i = e.overflowYHidden, o = e.calloutWidth, a = e.beakWidth, l = e.backgroundColor, s = e.calloutMaxWidth, c = e.calloutMinWidth, u = e.doNotLayer, d = tz(GR, n), p = n.semanticColors, h = n.effects;
return {
container: [d.container, {
position: "relative"
}],
root: [d.root, n.fonts.medium, {
position: "absolute",
display: "flex",
zIndex: u ? iz.Layer : void 0,
boxSizing: "border-box",
borderRadius: h.roundedCorner2,
boxShadow: h.elevation16,
selectors: (t = {},
t[nz] = {
borderWidth: 1,
borderStyle: "solid",
borderColor: "WindowText"
},
t)
}, {
selectors: {
"&::-moz-focus-inner": {
border: 0
},
"&": {
outline: "transparent"
}
}
}, r, !!o && {
width: o
}, !!s && {
maxWidth: s
}, !!c && {
minWidth: c
}],
beak: [d.beak, {
position: "absolute",
backgroundColor: p.menuBackground,
boxShadow: "inherit",
border: "inherit",
boxSizing: "border-box",
transform: "rotate(45deg)"
}, XR(a), l && {
backgroundColor: l
}],
beakCurtain: [d.beakCurtain, {
position: "absolute",
top: 0,
right: 0,
bottom: 0,
left: 0,
backgroundColor: p.menuBackground,
borderRadius: h.roundedCorner2
}],
calloutMain: [d.calloutMain, {
backgroundColor: p.menuBackground,
overflowX: "hidden",
overflowY: "auto",
position: "relative",
width: "100%",
borderRadius: h.roundedCorner2
}, i && {
overflowY: "hidden"
}, l && {
backgroundColor: l
}]
}
}
), void 0, {
scope: "CalloutContent"
})
, YR = l.createContext(void 0)
, QR = function() {
return function() {}
};
YR.Provider;
var JR = function(e) {
var t = e.providerRef
, n = e.layerRoot
, r = l.useState([])[0]
, i = l.useContext(AD)
, o = void 0 !== i && !n
, a = l.useMemo((function() {
return o ? void 0 : {
providerRef: t,
registeredProviders: r,
registerProvider: function(e) {
r.push(e),
null == i || i.registerProvider(e)
},
unregisterProvider: function(e) {
null == i || i.unregisterProvider(e);
var t = r.indexOf(e);
t >= 0 && r.splice(t, 1)
}
}
}
), [t, r, i, o]);
return l.useEffect((function() {
if (a)
return a.registerProvider(a.providerRef),
function() {
return a.unregisterProvider(a.providerRef)
}
}
), [a]),
a ? l.createElement(AD.Provider, {
value: a
}, e.children) : l.createElement(l.Fragment, null, e.children)
};
function ZR(e, t) {
void 0 === e && (e = {});
var n = eP(t) ? t : function(e) {
return function(t) {
return e ? Object(zn.a)(Object(zn.a)({}, t), e) : t
}
}(t);
return n(e)
}
function $R(e, t) {
return void 0 === e && (e = {}),
(eP(t) ? t : function(e) {
return void 0 === e && (e = {}),
function(t) {
var n = Object(zn.a)({}, t);
for (var r in e)
e.hasOwnProperty(r) && (n[r] = Object(zn.a)(Object(zn.a)({}, t[r]), e[r]));
return n
}
}(t))(e)
}
function eP(e) {
return "function" == typeof e
}
var tP = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._onCustomizationChange = function() {
return t.forceUpdate()
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
bI.observe(this._onCustomizationChange)
}
,
t.prototype.componentWillUnmount = function() {
bI.unobserve(this._onCustomizationChange)
}
,
t.prototype.render = function() {
var e = this
, t = this.props.contextTransform;
return l.createElement(gI.Consumer, null, (function(n) {
var r = function(e, t) {
var n = (t || {}).customizations
, r = void 0 === n ? {
settings: {},
scopedSettings: {}
} : n;
return {
customizations: {
settings: ZR(r.settings, e.settings),
scopedSettings: $R(r.scopedSettings, e.scopedSettings),
inCustomizerContext: !0
}
}
}(e.props, n);
return t && (r = t(r)),
l.createElement(gI.Provider, {
value: r
}, e.props.children)
}
))
}
,
t
}(l.Component)
, nP = XD()
, rP = QN((function(e, t) {
return Az(Object(zn.a)(Object(zn.a)({}, e), {
rtl: t
}))
}
))
, iP = l.forwardRef((function(e, t) {
var n = e.className
, r = e.theme
, i = e.applyTheme
, o = e.applyThemeToBody
, a = e.styles
, s = nP(a, {
theme: r,
applyTheme: i,
className: n
})
, c = l.useRef(null);
return function(e, t, n) {
var r = t.bodyThemed;
l.useEffect((function() {
if (e) {
var t = vz(n.current);
if (t)
return t.body.classList.add(r),
function() {
t.body.classList.remove(r)
}
}
}
), [r, e, n])
}(o, s, c),
l.createElement(l.Fragment, null, function(e, t, n, r) {
var i = t.root
, o = e.as
, a = void 0 === o ? "div" : o
, s = e.dir
, c = e.theme
, u = OD(e, xD, ["dir"])
, d = function(e) {
var t = e.theme
, n = e.dir
, r = FD(t) ? "rtl" : "ltr"
, i = FD() ? "rtl" : "ltr"
, o = n || r;
return {
rootDir: o !== r || o !== i ? o : n,
needsTheme: o !== r
}
}(e)
, p = d.rootDir
, h = d.needsTheme
, f = l.createElement(JR, {
providerRef: n
}, l.createElement(a, Object(zn.a)({
dir: p
}, u, {
className: i,
ref: QD(n, r)
})));
return h && (f = l.createElement(tP, {
settings: {
theme: rP(c, "rtl" === s)
}
}, f)),
f
}(e, s, c, t))
}
));
iP.displayName = "FabricBase";
var oP, aP = {
fontFamily: "inherit"
}, lP = {
root: "ms-Fabric",
bodyThemed: "ms-Fabric-bodyThemed"
}, sP = yI(iP, (function(e) {
var t = e.applyTheme
, n = e.className
, r = e.preventBlanketFontInheritance
, i = e.theme;
return {
root: [tz(lP, i).root, i.fonts.medium, {
color: i.palette.neutralPrimary
}, !r && {
"& button": aP,
"& input": aP,
"& textarea": aP
}, t && {
color: i.semanticColors.bodyText,
backgroundColor: i.semanticColors.bodyBackground
}, n],
bodyThemed: [{
backgroundColor: i.semanticColors.bodyBackground
}]
}
}
), void 0, {
scope: "Fabric"
}), cP = {}, uP = {}, dP = "fluent-default-layer-host", pP = "#".concat(dP), hP = XD(), fP = l.forwardRef((function(e, t) {
var n = function() {
var e;
return null !== (e = l.useContext(YR)) && void 0 !== e ? e : QR
}()
, r = l.useRef(null)
, i = QD(r, t)
, o = l.useRef()
, a = l.useRef(null)
, s = l.useContext(AD)
, u = l.useState(!1)
, d = u[0]
, p = u[1]
, h = l.useCallback((function(e) {
var t, n = !!(null === (t = null == s ? void 0 : s.providerRef) || void 0 === t ? void 0 : t.current) && t.current.classList.contains(oz);
e && n && e.classList.add(oz)
}
), [s])
, f = e.children
, b = e.className
, g = e.eventBubblingEnabled
, m = e.fabricProps
, v = e.hostId
, y = e.insertFirst
, x = e.onLayerDidMount
, O = void 0 === x ? function() {}
: x
, j = e.onLayerMounted
, k = void 0 === j ? function() {}
: j
, w = e.onLayerWillUnmount
, C = e.styles
, _ = e.theme
, M = QD(a, null == m ? void 0 : m.ref, h)
, S = hP(C, {
theme: _,
className: b,
isNotHost: !v
})
, A = function() {
null == w || w();
var e = o.current;
o.current = void 0,
e && e.parentNode && e.parentNode.removeChild(e)
}
, T = function() {
var e, t, n, i, a = vz(r.current), l = (null === (t = null === (e = r.current) || void 0 === e ? void 0 : e.getRootNode()) || void 0 === t ? void 0 : t.host) ? null === (n = null == r ? void 0 : r.current) || void 0 === n ? void 0 : n.getRootNode() : void 0;
if (a && (a || l)) {
var s = function(e, t) {
var n, r;
void 0 === t && (t = null);
var i = null != t ? t : e;
if (v) {
var o = function(e) {
var t = uP[e];
return t && t[0] || void 0
}(v);
return o ? null !== (n = o.rootRef.current) && void 0 !== n ? n : null : null !== (r = i.getElementById(v)) && void 0 !== r ? r : null
}
var a = pP
, l = a ? i.querySelector(a) : null;
return l || (l = function(e, t) {
void 0 === t && (t = null);
var n = e.createElement("div");
return n.setAttribute("id", dP),
n.style.cssText = "position:fixed;z-index:1000000",
t ? t.appendChild(n) : null == e || e.body.appendChild(n),
n
}(e, t)),
l
}(a, l);
if (s) {
s.__tabsterElementFlags || (s.__tabsterElementFlags = {}),
s.__tabsterElementFlags.noDirectAriaHidden = !0,
A();
var c = (null !== (i = s.ownerDocument) && void 0 !== i ? i : a).createElement("div");
c.className = S.root,
c.setAttribute(Uz, "true"),
function(e, t) {
var n = e
, r = t;
n._virtual || (n._virtual = {
children: []
});
var i = n._virtual.parent;
if (i && i !== t) {
var o = i._virtual.children.indexOf(n);
o > -1 && i._virtual.children.splice(o, 1)
}
n._virtual.parent = r || void 0,
r && (r._virtual || (r._virtual = {
children: []
}),
r._virtual.children.push(n))
}(c, r.current),
y ? s.insertBefore(c, s.firstChild) : s.appendChild(c),
o.current = c,
p(!0)
}
}
};
return YD((function() {
T(),
v && function(e, t) {
cP[e] || (cP[e] = []),
cP[e].push(t);
var n = uP[e];
if (n)
for (var r = 0, i = n; r < i.length; r++)
i[r].notifyLayersChanged()
}(v, T);
var e = o.current ? n(o.current) : void 0;
return function() {
e && e(),
A(),
v && function(e, t) {
var n = cP[e];
if (n) {
var r = n.indexOf(t);
r >= 0 && (n.splice(r, 1),
0 === n.length && delete cP[e])
}
var i = uP[e];
if (i)
for (var o = 0, a = i; o < a.length; o++)
a[o].notifyLayersChanged()
}(v, T)
}
}
), [v]),
l.useEffect((function() {
o.current && d && (null == k || k(),
null == O || O(),
p(!1))
}
), [d, k, O]),
l.createElement("span", {
className: "ms-layer",
ref: i
}, o.current && c.createPortal(l.createElement(JR, {
layerRoot: !0,
providerRef: M
}, l.createElement(sP, Object(zn.a)({}, !g && (oP || (oP = {},
["onClick", "onContextMenu", "onDoubleClick", "onDrag", "onDragEnd", "onDragEnter", "onDragExit", "onDragLeave", "onDragOver", "onDragStart", "onDrop", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOver", "onMouseOut", "onMouseUp", "onTouchMove", "onTouchStart", "onTouchCancel", "onTouchEnd", "onKeyDown", "onKeyPress", "onKeyUp", "onFocus", "onBlur", "onChange", "onInput", "onInvalid", "onSubmit"].forEach((function(e) {
return oP[e] = bP
}
))),
oP), m, {
className: Vz(S.content, null == m ? void 0 : m.className),
ref: M
}), f)), o.current))
}
));
fP.displayName = "LayerBase";
var bP = function(e) {
e.eventPhase === Event.BUBBLING_PHASE && "mouseenter" !== e.type && "mouseleave" !== e.type && "touchstart" !== e.type && "touchend" !== e.type && e.stopPropagation()
}
, gP = {
root: "ms-Layer",
rootNoHost: "ms-Layer--fixed",
content: "ms-Layer-content"
}
, mP = yI(fP, (function(e) {
var t = e.className
, n = e.isNotHost
, r = e.theme
, i = tz(gP, r);
return {
root: [i.root, r.fonts.medium, n && [i.rootNoHost, {
position: "fixed",
zIndex: iz.Layer,
top: 0,
left: 0,
bottom: 0,
right: 0,
visibility: "hidden"
}], t],
content: [i.content, {
visibility: "visible"
}]
}
}
), void 0, {
scope: "Layer",
fields: ["hostId", "theme", "styles"]
})
, vP = l.forwardRef((function(e, t) {
var n = e.layerProps
, r = e.doNotLayer
, i = Object(zn.d)(e, ["layerProps", "doNotLayer"])
, o = l.createElement(KR, Object(zn.a)({}, i, {
doNotLayer: r,
ref: t
}));
return r ? o : l.createElement(mP, Object(zn.a)({}, n), o)
}
));
vP.displayName = "Callout";
var yP, xP = function(e) {
var t = e.item
, n = e.classNames
, r = t.iconProps;
return l.createElement(lL, Object(zn.a)({}, r, {
className: n.icon
}))
}, OP = function(e) {
var t = e.item;
return e.hasIcons ? t.onRenderIcon ? t.onRenderIcon(e, xP) : xP(e) : null
}, jP = function(e) {
var t = e.onCheckmarkClick
, n = e.item
, r = e.classNames
, i = KL(n);
return t ? l.createElement(lL, {
iconName: !1 !== n.canCheck && i ? "CheckMark" : "",
className: r.checkmarkIcon,
onClick: function(e) {
return t(n, e)
}
}) : null
}, kP = function(e) {
var t = e.item
, n = e.classNames;
return t.text || t.name ? l.createElement("span", {
className: n.label
}, t.text || t.name) : null
}, wP = function(e) {
var t = e.item
, n = e.classNames;
return t.secondaryText ? l.createElement("span", {
className: n.secondaryText
}, t.secondaryText) : null
}, CP = function(e) {
var t = e.item
, n = e.classNames
, r = e.theme;
return YL(t) ? l.createElement(lL, Object(zn.a)({
iconName: FD(r) ? "ChevronLeft" : "ChevronRight"
}, t.submenuIconProps, {
className: n.subMenuIcon
})) : null
}, _P = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n.openSubMenu = function() {
var e = n.props
, t = e.item
, r = e.openSubMenu
, i = e.getSubmenuTarget;
if (i) {
var o = i();
YL(t) && r && o && r(t, o)
}
}
,
n.dismissSubMenu = function() {
var e = n.props
, t = e.item
, r = e.dismissSubMenu;
YL(t) && r && r()
}
,
n.dismissMenu = function(e) {
var t = n.props.dismissMenu;
t && t(void 0, e)
}
,
eD(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.item
, n = e.classNames
, r = t.onRenderContent || this._renderLayout;
return l.createElement("div", {
className: t.split ? n.linkContentMenu : n.linkContent
}, r(this.props, {
renderCheckMarkIcon: jP,
renderItemIcon: OP,
renderItemName: kP,
renderSecondaryText: wP,
renderSubMenuIcon: CP
}))
}
,
t.prototype._renderLayout = function(e, t) {
return l.createElement(l.Fragment, null, t.renderCheckMarkIcon(e), t.renderItemIcon(e), t.renderItemName(e), t.renderSecondaryText(e), t.renderSubMenuIcon(e))
}
,
t
}(l.Component), MP = QN((function(e) {
return Lz({
wrapper: {
display: "inline-flex",
height: "100%",
alignItems: "center"
},
divider: {
width: 1,
height: "100%",
backgroundColor: e.palette.neutralTertiaryAlt
}
})
}
)), SP = 36, AP = rz(0, 639), TP = QN((function(e) {
var t, n, r, i, o, a = e.semanticColors, l = e.fonts, s = e.palette, c = a.menuItemBackgroundHovered, u = a.menuItemTextHovered, d = a.menuItemBackgroundPressed, p = a.bodyDivider;
return YE({
item: [l.medium, {
color: a.bodyText,
position: "relative",
boxSizing: "border-box"
}],
divider: {
display: "block",
height: "1px",
backgroundColor: p,
position: "relative"
},
root: [cz(e), l.medium, {
color: a.bodyText,
backgroundColor: "transparent",
border: "none",
width: "100%",
height: SP,
lineHeight: SP,
display: "block",
cursor: "pointer",
padding: "0px 8px 0 4px",
textAlign: "left"
}],
rootDisabled: {
color: a.disabledBodyText,
cursor: "default",
pointerEvents: "none",
selectors: (t = {},
t[nz] = {
color: "GrayText",
opacity: 1
},
t)
},
rootHovered: {
backgroundColor: c,
color: u,
selectors: {
".ms-ContextualMenu-icon": {
color: s.themeDarkAlt
},
".ms-ContextualMenu-submenuIcon": {
color: s.neutralPrimary
}
}
},
rootFocused: {
backgroundColor: s.white
},
rootChecked: {
selectors: {
".ms-ContextualMenu-checkmarkIcon": {
color: s.neutralPrimary
}
}
},
rootPressed: {
backgroundColor: d,
selectors: {
".ms-ContextualMenu-icon": {
color: s.themeDark
},
".ms-ContextualMenu-submenuIcon": {
color: s.neutralPrimary
}
}
},
rootExpanded: {
backgroundColor: d,
color: a.bodyTextChecked,
selectors: (n = {
".ms-ContextualMenu-submenuIcon": (r = {},
r[nz] = {
color: "inherit"
},
r)
},
n[nz] = Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
n)
},
linkContent: {
whiteSpace: "nowrap",
height: "inherit",
display: "flex",
alignItems: "center",
maxWidth: "100%"
},
anchorLink: {
padding: "0px 8px 0 4px",
textRendering: "auto",
color: "inherit",
letterSpacing: "normal",
wordSpacing: "normal",
textTransform: "none",
textIndent: "0px",
textShadow: "none",
textDecoration: "none",
boxSizing: "border-box"
},
label: {
margin: "0 4px",
verticalAlign: "middle",
display: "inline-block",
flexGrow: "1",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
overflow: "hidden"
},
secondaryText: {
color: e.palette.neutralSecondary,
paddingLeft: "20px",
textAlign: "right"
},
icon: {
display: "inline-block",
minHeight: "1px",
maxHeight: SP,
fontSize: VN.medium,
width: VN.medium,
margin: "0 4px",
verticalAlign: "middle",
flexShrink: "0",
selectors: (i = {},
i[AP] = {
fontSize: VN.large,
width: VN.large
},
i)
},
iconColor: {
color: a.menuIcon
},
iconDisabled: {
color: a.disabledBodyText
},
checkmarkIcon: {
color: a.bodySubtext
},
subMenuIcon: {
height: SP,
lineHeight: SP,
color: s.neutralSecondary,
textAlign: "center",
display: "inline-block",
verticalAlign: "middle",
flexShrink: "0",
fontSize: VN.small,
selectors: (o = {
":hover": {
color: s.neutralPrimary
},
":active": {
color: s.neutralPrimary
}
},
o[AP] = {
fontSize: VN.medium
},
o)
},
splitButtonFlexContainer: [cz(e), {
display: "flex",
height: SP,
flexWrap: "nowrap",
justifyContent: "center",
alignItems: "flex-start"
}]
})
}
)), EP = "28px", IP = rz(0, 639), NP = QN((function(e) {
var t;
return Lz(MP(e), {
wrapper: {
position: "absolute",
right: 28,
selectors: (t = {},
t[IP] = {
right: 32
},
t)
},
divider: {
height: 16,
width: 1
}
})
}
)), zP = {
item: "ms-ContextualMenu-item",
divider: "ms-ContextualMenu-divider",
root: "ms-ContextualMenu-link",
isChecked: "is-checked",
isExpanded: "is-expanded",
isDisabled: "is-disabled",
linkContent: "ms-ContextualMenu-linkContent",
linkContentMenu: "ms-ContextualMenu-linkContent",
icon: "ms-ContextualMenu-icon",
iconColor: "ms-ContextualMenu-iconColor",
checkmarkIcon: "ms-ContextualMenu-checkmarkIcon",
subMenuIcon: "ms-ContextualMenu-submenuIcon",
label: "ms-ContextualMenu-itemText",
secondaryText: "ms-ContextualMenu-secondaryText",
splitMenu: "ms-ContextualMenu-splitMenu",
screenReaderText: "ms-ContextualMenu-screenReaderText"
}, DP = QN((function(e, t, n, r, i, o, a, l, s, c, u, d) {
var p, h, f, b, g = TP(e), m = tz(zP, e);
return Lz({
item: [m.item, g.item, a],
divider: [m.divider, g.divider, l],
root: [m.root, g.root, r && [m.isChecked, g.rootChecked], i && g.anchorLink, n && [m.isExpanded, g.rootExpanded], t && [m.isDisabled, g.rootDisabled], !t && !n && [{
selectors: (p = {
":hover": g.rootHovered,
":active": g.rootPressed
},
p[".".concat(oz, " &:focus, .").concat(oz, " &:focus:hover, :host(.").concat(oz, ") &:focus, :host(.").concat(oz, ") &:focus:hover")] = g.rootFocused,
p[".".concat(oz, " &:hover, :host(.").concat(oz, ") &:hover")] = {
background: "inherit;"
},
p)
}], d],
splitPrimary: [g.root, {
width: "calc(100% - ".concat(EP, ")")
}, r && ["is-checked", g.rootChecked], (t || u) && ["is-disabled", g.rootDisabled], !(t || u) && !r && [{
selectors: (h = {
":hover": g.rootHovered
},
h[":hover ~ .".concat(m.splitMenu)] = g.rootHovered,
h[":active"] = g.rootPressed,
h[".".concat(oz, " &:focus, .").concat(oz, " &:focus:hover, :host(.").concat(oz, ") &:focus, :host(.").concat(oz, ") &:focus:hover")] = g.rootFocused,
h[".".concat(oz, " &:hover, :host(.").concat(oz, ") &:hover")] = {
background: "inherit;"
},
h)
}]],
splitMenu: [m.splitMenu, g.root, {
flexBasis: "0",
padding: "0 8px",
minWidth: EP
}, n && ["is-expanded", g.rootExpanded], t && ["is-disabled", g.rootDisabled], !t && !n && [{
selectors: (f = {
":hover": g.rootHovered,
":active": g.rootPressed
},
f[".".concat(oz, " &:focus, .").concat(oz, " &:focus:hover, :host(.").concat(oz, ") &:focus, :host(.").concat(oz, ") &:focus:hover")] = g.rootFocused,
f[".".concat(oz, " &:hover, :host(.").concat(oz, ") &:hover")] = {
background: "inherit;"
},
f)
}]],
anchorLink: g.anchorLink,
linkContent: [m.linkContent, g.linkContent],
linkContentMenu: [m.linkContentMenu, g.linkContent, {
justifyContent: "center"
}],
icon: [m.icon, o && g.iconColor, g.icon, s, t && [m.isDisabled, g.iconDisabled]],
iconColor: g.iconColor,
checkmarkIcon: [m.checkmarkIcon, o && g.checkmarkIcon, g.icon, s],
subMenuIcon: [m.subMenuIcon, g.subMenuIcon, c, n && {
color: e.palette.neutralPrimary
}, t && [g.iconDisabled]],
label: [m.label, g.label],
secondaryText: [m.secondaryText, g.secondaryText],
splitContainer: [g.splitButtonFlexContainer, !t && !r && [{
selectors: (b = {},
b[".".concat(oz, " &:focus, .").concat(oz, " &:focus:hover, :host(.").concat(oz, ") &:focus, :host(.").concat(oz, ") &:focus:hover")] = g.rootFocused,
b)
}]],
screenReaderText: [m.screenReaderText, g.screenReaderText, qN, {
visibility: "hidden"
}]
})
}
)), LP = function(e) {
var t = e.theme
, n = e.disabled
, r = e.expanded
, i = e.checked
, o = e.isAnchorLink
, a = e.knownIcon
, l = e.itemClassName
, s = e.dividerClassName
, c = e.iconClassName
, u = e.subMenuClassName
, d = e.primaryDisabled
, p = e.className;
return DP(t, n, r, i, o, a, l, s, c, u, d, p)
}, RP = yI(_P, LP, void 0, {
scope: "ContextualMenuItem"
}), PP = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._onItemMouseEnter = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseEnter;
i && i(r, e, e.currentTarget)
}
,
n._onItemClick = function(e) {
var t = n.props
, r = t.item
, i = t.onItemClickBase;
i && i(r, e, e.currentTarget)
}
,
n._onItemMouseLeave = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseLeave;
i && i(r, e)
}
,
n._onItemKeyDown = function(e) {
var t = n.props
, r = t.item
, i = t.onItemKeyDown;
i && i(r, e)
}
,
n._onItemMouseMove = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseMove;
i && i(r, e, e.currentTarget)
}
,
n._getSubmenuTarget = function() {}
,
eD(n),
n
}
return Object(zn.c)(t, e),
t.prototype.shouldComponentUpdate = function(e) {
return !aD(e, this.props)
}
,
t
}(l.Component);
function BP(e) {
var t = Object(l.useRef)();
return Object(l.useEffect)((function() {
t.current = e
}
)),
t.current
}
!function(e) {
e.KEYTIP_ADDED = "keytipAdded",
e.KEYTIP_REMOVED = "keytipRemoved",
e.KEYTIP_UPDATED = "keytipUpdated",
e.PERSISTED_KEYTIP_ADDED = "persistedKeytipAdded",
e.PERSISTED_KEYTIP_REMOVED = "persistedKeytipRemoved",
e.PERSISTED_KEYTIP_EXECUTE = "persistedKeytipExecute",
e.ENTER_KEYTIP_MODE = "enterKeytipMode",
e.EXIT_KEYTIP_MODE = "exitKeytipMode"
}(yP || (yP = {}));
var FP = function() {
function e() {
this.keytips = {},
this.persistedKeytips = {},
this.sequenceMapping = {},
this.inKeytipMode = !1,
this.shouldEnterKeytipMode = !0,
this.delayUpdatingKeytipChange = !1
}
return e.getInstance = function() {
return this._instance
}
,
e.prototype.init = function(e) {
this.delayUpdatingKeytipChange = e
}
,
e.prototype.register = function(e, t) {
void 0 === t && (t = !1);
var n = e;
t || (n = this.addParentOverflow(e),
this.sequenceMapping[n.keySequences.toString()] = n);
var r = this._getUniqueKtp(n);
if (t ? this.persistedKeytips[r.uniqueID] = r : this.keytips[r.uniqueID] = r,
this.inKeytipMode || !this.delayUpdatingKeytipChange) {
var i = t ? yP.PERSISTED_KEYTIP_ADDED : yP.KEYTIP_ADDED;
uD.raise(this, i, {
keytip: n,
uniqueID: r.uniqueID
})
}
return r.uniqueID
}
,
e.prototype.update = function(e, t) {
var n = this.addParentOverflow(e)
, r = this._getUniqueKtp(n, t)
, i = this.keytips[t];
i && (r.keytip.visible = i.keytip.visible,
this.keytips[t] = r,
delete this.sequenceMapping[i.keytip.keySequences.toString()],
this.sequenceMapping[r.keytip.keySequences.toString()] = r.keytip,
!this.inKeytipMode && this.delayUpdatingKeytipChange || uD.raise(this, yP.KEYTIP_UPDATED, {
keytip: r.keytip,
uniqueID: r.uniqueID
}))
}
,
e.prototype.unregister = function(e, t, n) {
void 0 === n && (n = !1),
n ? delete this.persistedKeytips[t] : delete this.keytips[t],
!n && delete this.sequenceMapping[e.keySequences.toString()];
var r = n ? yP.PERSISTED_KEYTIP_REMOVED : yP.KEYTIP_REMOVED;
!this.inKeytipMode && this.delayUpdatingKeytipChange || uD.raise(this, r, {
keytip: e,
uniqueID: t
})
}
,
e.prototype.enterKeytipMode = function() {
uD.raise(this, yP.ENTER_KEYTIP_MODE)
}
,
e.prototype.exitKeytipMode = function() {
uD.raise(this, yP.EXIT_KEYTIP_MODE)
}
,
e.prototype.getKeytips = function() {
var e = this;
return Object.keys(this.keytips).map((function(t) {
return e.keytips[t].keytip
}
))
}
,
e.prototype.addParentOverflow = function(e) {
var t = Object(zn.e)([], e.keySequences, !0);
if (t.pop(),
0 !== t.length) {
var n = this.sequenceMapping[t.toString()];
if (n && n.overflowSetSequence)
return Object(zn.a)(Object(zn.a)({}, e), {
overflowSetSequence: n.overflowSetSequence
})
}
return e
}
,
e.prototype.menuExecute = function(e, t) {
uD.raise(this, yP.PERSISTED_KEYTIP_EXECUTE, {
overflowButtonSequences: e,
keytipSequences: t
})
}
,
e.prototype._getUniqueKtp = function(e, t) {
return void 0 === t && (t = zw()),
{
keytip: Object(zn.a)({}, e),
uniqueID: t
}
}
,
e._instance = new e,
e
}();
function VP(e) {
return e.reduce((function(e, t) {
return e + "-" + t.split("").join("-")
}
), "ktp")
}
var WP = function(e) {
var t, n = e.children, r = function(e) {
var t = l.useRef()
, n = e.keytipProps ? Object(zn.a)({
disabled: e.disabled
}, e.keytipProps) : void 0
, r = wk(FP.getInstance())
, i = BP(e);
YD((function() {
t.current && n && ((null == i ? void 0 : i.keytipProps) !== e.keytipProps || (null == i ? void 0 : i.disabled) !== e.disabled) && r.update(n, t.current)
}
)),
YD((function() {
return n && (t.current = r.register(n)),
function() {
n && r.unregister(n, t.current)
}
}
), []);
var o = {
ariaDescribedBy: void 0,
keytipId: void 0
};
return n && (o = function(e, t, n) {
var r = e.addParentOverflow(t)
, i = RD(n, function(e) {
var t = " ktp-layer-id";
return e.length ? t + " " + VP(e) : t
}(r.keySequences))
, o = Object(zn.e)([], r.keySequences, !0);
return r.overflowSetSequence && (o = function(e, t) {
var n = t.length
, r = Object(zn.e)([], t, !0).pop();
return function(e, t, n) {
var r = e.slice();
return r.splice(t, 0, n),
r
}(Object(zn.e)([], e, !0), n - 1, r)
}(o, r.overflowSetSequence)),
{
ariaDescribedBy: i,
keytipId: VP(o)
}
}(r, n, e.ariaDescribedBy)),
o
}(Object(zn.d)(e, ["children"])), i = r.keytipId, o = r.ariaDescribedBy;
return n(((t = {})["data-ktp-target"] = i,
t["data-ktp-execute-target"] = i,
t["aria-describedby"] = o,
t))
}
, qP = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._anchor = l.createRef(),
t._getMemoizedMenuButtonKeytipProps = QN((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
t._getSubmenuTarget = function() {
return t._anchor.current ? t._anchor.current : void 0
}
,
t._onItemClick = function(e) {
var n = t.props
, r = n.item
, i = n.onItemClick;
i && i(r, e)
}
,
t._renderAriaDescription = function(e, n) {
return e ? l.createElement("span", {
id: t._ariaDescriptionId,
className: n
}, e) : null
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.item
, r = t.classNames
, i = t.index
, o = t.focusableElementIndex
, a = t.totalItemCount
, s = t.hasCheckmarks
, c = t.hasIcons
, u = t.expandedMenuItemKey
, d = t.onItemClick
, p = t.openSubMenu
, h = t.dismissSubMenu
, f = t.dismissMenu
, b = RP;
this.props.item.contextualMenuItemAs && (b = GL(this.props.item.contextualMenuItemAs, b)),
this.props.contextualMenuItemAs && (b = GL(this.props.contextualMenuItemAs, b));
var g = n.rel;
n.target && "_blank" === n.target.toLowerCase() && (g = g || "nofollow noopener noreferrer");
var m = YL(n)
, v = OD(n, gD)
, y = QL(n)
, x = n.itemProps
, O = n.ariaDescription
, j = n.keytipProps;
j && m && (j = this._getMemoizedMenuButtonKeytipProps(j)),
O && (this._ariaDescriptionId = zw());
var k = RD(n.ariaDescribedBy, O ? this._ariaDescriptionId : void 0, v["aria-describedby"])
, w = {
"aria-describedby": k
};
return l.createElement("div", null, l.createElement(WP, {
keytipProps: n.keytipProps,
ariaDescribedBy: k,
disabled: y
}, (function(t) {
return l.createElement("a", Object(zn.a)({}, w, v, t, {
ref: e._anchor,
href: n.href,
target: n.target,
rel: g,
className: r.root,
role: "menuitem",
"aria-haspopup": m || void 0,
"aria-expanded": m ? n.key === u : void 0,
"aria-posinset": o + 1,
"aria-setsize": a,
"aria-disabled": QL(n),
style: n.style,
onClick: e._onItemClick,
onMouseEnter: e._onItemMouseEnter,
onMouseLeave: e._onItemMouseLeave,
onMouseMove: e._onItemMouseMove,
onKeyDown: m ? e._onItemKeyDown : void 0
}), l.createElement(b, Object(zn.a)({
componentRef: n.componentRef,
item: n,
classNames: r,
index: i,
onCheckmarkClick: s && d ? d : void 0,
hasIcons: c,
openSubMenu: p,
dismissSubMenu: h,
dismissMenu: f,
getSubmenuTarget: e._getSubmenuTarget
}, x)), e._renderAriaDescription(O, r.screenReaderText))
}
)))
}
,
t
}(PP)
, HP = XD()
, UP = l.forwardRef((function(e, t) {
var n = e.styles
, r = e.theme
, i = e.getClassNames
, o = e.className
, a = HP(n, {
theme: r,
getClassNames: i,
className: o
});
return l.createElement("span", {
className: a.wrapper,
ref: t
}, l.createElement("span", {
className: a.divider
}))
}
));
UP.displayName = "VerticalDividerBase";
var XP, GP = yI(UP, (function(e) {
var t = e.theme
, n = e.getClassNames
, r = e.className;
if (!t)
throw new Error("Theme is undefined or null.");
if (n) {
var i = n(t);
return {
wrapper: [i.wrapper],
divider: [i.divider]
}
}
return {
wrapper: [{
display: "inline-flex",
height: "100%",
alignItems: "center"
}, r],
divider: [{
width: 1,
height: "100%",
backgroundColor: t.palette.neutralTertiaryAlt
}]
}
}
), void 0, {
scope: "VerticalDivider"
}), KP = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._getMemoizedMenuButtonKeytipProps = QN((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
n._onItemKeyDown = function(e) {
var t = n.props
, r = t.item
, i = t.onItemKeyDown;
e.which === Gz ? (n._executeItemClick(e),
e.preventDefault(),
e.stopPropagation()) : i && i(r, e)
}
,
n._getSubmenuTarget = function() {
return n._splitButton
}
,
n._renderAriaDescription = function(e, t) {
return e ? l.createElement("span", {
id: n._ariaDescriptionId,
className: t
}, e) : null
}
,
n._onItemMouseEnterPrimary = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseEnter;
i && i(Object(zn.a)(Object(zn.a)({}, r), {
subMenuProps: void 0,
items: void 0
}), e, n._splitButton)
}
,
n._onItemMouseEnterIcon = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseEnter;
i && i(r, e, n._splitButton)
}
,
n._onItemMouseMovePrimary = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseMove;
i && i(Object(zn.a)(Object(zn.a)({}, r), {
subMenuProps: void 0,
items: void 0
}), e, n._splitButton)
}
,
n._onItemMouseMoveIcon = function(e) {
var t = n.props
, r = t.item
, i = t.onItemMouseMove;
i && i(r, e, n._splitButton)
}
,
n._onIconItemClick = function(e) {
var t = n.props
, r = t.item
, i = t.onItemClickBase;
i && i(r, e, n._splitButton ? n._splitButton : e.currentTarget)
}
,
n._executeItemClick = function(e) {
var t = n.props
, r = t.item
, i = t.executeItemClick
, o = t.onItemClick;
if (!r.disabled && !r.isDisabled)
return n._processingTouch && !r.canCheck && o ? o(r, e) : void (i && i(r, e))
}
,
n._onTouchStart = function(e) {
n._splitButton && !("onpointerdown"in n._splitButton) && n._handleTouchAndPointerEvent(e)
}
,
n._onPointerDown = function(e) {
"touch" === e.pointerType && (n._handleTouchAndPointerEvent(e),
e.preventDefault(),
e.stopImmediatePropagation())
}
,
n._async = new oD(n),
n._events = new uD(n),
n._dismissLabelId = zw(),
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
this._splitButton && "onpointerdown"in this._splitButton && this._events.on(this._splitButton, "pointerdown", this._onPointerDown, !0)
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.render = function() {
var e, t = this, n = this.props, r = n.item, i = n.classNames, o = n.index, a = n.focusableElementIndex, s = n.totalItemCount, c = n.hasCheckmarks, u = n.hasIcons, d = n.onItemMouseLeave, p = n.expandedMenuItemKey, h = YL(r), f = r.keytipProps;
f && (f = this._getMemoizedMenuButtonKeytipProps(f));
var b = r.ariaDescription;
b && (this._ariaDescriptionId = zw());
var g = null !== (e = KL(r)) && void 0 !== e ? e : void 0;
return l.createElement(WP, {
keytipProps: f,
disabled: QL(r)
}, (function(e) {
return l.createElement("div", {
"data-ktp-target": e["data-ktp-target"],
ref: function(e) {
return t._splitButton = e
},
role: JL(r),
"aria-label": r.ariaLabel,
className: i.splitContainer,
"aria-disabled": QL(r),
"aria-expanded": h ? r.key === p : void 0,
"aria-haspopup": !0,
"aria-describedby": RD(r.ariaDescribedBy, b ? t._ariaDescriptionId : void 0, e["aria-describedby"]),
"aria-checked": g,
"aria-posinset": a + 1,
"aria-setsize": s,
onMouseEnter: t._onItemMouseEnterPrimary,
onMouseLeave: d ? d.bind(t, Object(zn.a)(Object(zn.a)({}, r), {
subMenuProps: null,
items: null
})) : void 0,
onMouseMove: t._onItemMouseMovePrimary,
onKeyDown: t._onItemKeyDown,
onClick: t._executeItemClick,
onTouchStart: t._onTouchStart,
tabIndex: 0,
"data-is-focusable": !0,
"aria-roledescription": r["aria-roledescription"]
}, t._renderSplitPrimaryButton(r, i, o, c, u), t._renderSplitDivider(r), t._renderSplitIconButton(r, i, o, e), t._renderAriaDescription(b, i.screenReaderText))
}
))
}
,
t.prototype._renderSplitPrimaryButton = function(e, t, n, r, i) {
var o = this.props
, a = o.contextualMenuItemAs
, s = void 0 === a ? RP : a
, c = o.onItemClick
, u = {
key: e.key,
disabled: QL(e) || e.primaryDisabled,
name: e.name,
text: e.text || e.name,
secondaryText: e.secondaryText,
className: t.splitPrimary,
canCheck: e.canCheck,
isChecked: e.isChecked,
checked: e.checked,
iconProps: e.iconProps,
id: this._dismissLabelId,
onRenderIcon: e.onRenderIcon,
data: e.data,
"data-is-focusable": !1
}
, d = e.itemProps;
return l.createElement("button", Object(zn.a)({}, OD(u, mD)), l.createElement(s, Object(zn.a)({
"data-is-focusable": !1,
item: u,
classNames: t,
index: n,
onCheckmarkClick: r && c ? c : void 0,
hasIcons: i
}, d)))
}
,
t.prototype._renderSplitDivider = function(e) {
var t = e.getSplitButtonVerticalDividerClassNames || NP;
return l.createElement(GP, {
getClassNames: t
})
}
,
t.prototype._renderSplitIconButton = function(e, t, n, r) {
var i = this.props
, o = i.onItemMouseLeave
, a = i.onItemMouseDown
, s = i.openSubMenu
, c = i.dismissSubMenu
, u = i.dismissMenu
, d = RP;
this.props.item.contextualMenuItemAs && (d = GL(this.props.item.contextualMenuItemAs, d)),
this.props.contextualMenuItemAs && (d = GL(this.props.contextualMenuItemAs, d));
var p = {
onClick: this._onIconItemClick,
disabled: QL(e),
className: t.splitMenu,
subMenuProps: e.subMenuProps,
submenuIconProps: e.submenuIconProps,
split: !0,
key: e.key,
"aria-labelledby": this._dismissLabelId
}
, h = Object(zn.a)(Object(zn.a)({}, OD(p, mD)), {
onMouseEnter: this._onItemMouseEnterIcon,
onMouseLeave: o ? o.bind(this, e) : void 0,
onMouseDown: function(t) {
return a ? a(e, t) : void 0
},
onMouseMove: this._onItemMouseMoveIcon,
"data-is-focusable": !1,
"data-ktp-execute-target": r["data-ktp-execute-target"],
"aria-haspopup": !0
})
, f = e.itemProps;
return l.createElement("button", Object(zn.a)({}, h), l.createElement(d, Object(zn.a)({
componentRef: e.componentRef,
item: p,
classNames: t,
index: n,
hasIcons: !1,
openSubMenu: s,
dismissSubMenu: c,
dismissMenu: u,
getSubmenuTarget: this._getSubmenuTarget
}, f)))
}
,
t.prototype._handleTouchAndPointerEvent = function(e) {
var t = this
, n = this.props.onTap;
n && n(e),
this._lastTouchTimeoutId && (this._async.clearTimeout(this._lastTouchTimeoutId),
this._lastTouchTimeoutId = void 0),
this._processingTouch = !0,
this._lastTouchTimeoutId = this._async.setTimeout((function() {
t._processingTouch = !1,
t._lastTouchTimeoutId = void 0
}
), 500)
}
,
t
}(PP), YP = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._btn = l.createRef(),
t._getMemoizedMenuButtonKeytipProps = QN((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
t._renderAriaDescription = function(e, n) {
return e ? l.createElement("span", {
id: t._ariaDescriptionId,
className: n
}, e) : null
}
,
t._getSubmenuTarget = function() {
return t._btn.current ? t._btn.current : void 0
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this
, t = this.props
, n = t.item
, r = t.classNames
, i = t.index
, o = t.focusableElementIndex
, a = t.totalItemCount
, s = t.hasCheckmarks
, c = t.hasIcons
, u = t.contextualMenuItemAs
, d = t.expandedMenuItemKey
, p = t.onItemMouseDown
, h = t.onItemClick
, f = t.openSubMenu
, b = t.dismissSubMenu
, g = t.dismissMenu
, m = RP;
n.contextualMenuItemAs && (m = GL(n.contextualMenuItemAs, m)),
u && (m = GL(u, m));
var v = KL(n)
, y = null !== v
, x = JL(n)
, O = YL(n)
, j = n.itemProps
, k = n.ariaLabel
, w = n.ariaDescription
, C = OD(n, mD);
delete C.disabled;
var _ = n.role || x;
w && (this._ariaDescriptionId = zw());
var M = RD(n.ariaDescribedBy, w ? this._ariaDescriptionId : void 0, C["aria-describedby"])
, S = {
className: r.root,
onClick: this._onItemClick,
onKeyDown: O ? this._onItemKeyDown : void 0,
onMouseEnter: this._onItemMouseEnter,
onMouseLeave: this._onItemMouseLeave,
onMouseDown: function(e) {
return p ? p(n, e) : void 0
},
onMouseMove: this._onItemMouseMove,
href: n.href,
title: n.title,
"aria-label": k,
"aria-describedby": M,
"aria-haspopup": O || void 0,
"aria-expanded": O ? n.key === d : void 0,
"aria-posinset": o + 1,
"aria-setsize": a,
"aria-disabled": QL(n),
"aria-checked": "menuitemcheckbox" !== _ && "menuitemradio" !== _ || !y ? void 0 : !!v,
"aria-selected": "menuitem" === _ && y ? !!v : void 0,
role: _,
style: n.style
}
, A = n.keytipProps;
return A && O && (A = this._getMemoizedMenuButtonKeytipProps(A)),
l.createElement(WP, {
keytipProps: A,
ariaDescribedBy: M,
disabled: QL(n)
}, (function(t) {
return l.createElement("button", Object(zn.a)({
ref: e._btn
}, C, S, t), l.createElement(m, Object(zn.a)({
componentRef: n.componentRef,
item: n,
classNames: r,
index: i,
onCheckmarkClick: s && h ? h : void 0,
hasIcons: c,
openSubMenu: f,
dismissSubMenu: b,
dismissMenu: g,
getSubmenuTarget: e._getSubmenuTarget
}, j)), e._renderAriaDescription(w, r.screenReaderText))
}
))
}
,
t
}(PP), QP = ["setState", "render", "componentWillMount", "UNSAFE_componentWillMount", "componentDidMount", "componentWillReceiveProps", "UNSAFE_componentWillReceiveProps", "shouldComponentUpdate", "componentWillUpdate", "getSnapshotBeforeUpdate", "UNSAFE_componentWillUpdate", "componentDidUpdate", "componentWillUnmount"];
!function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._updateComposedComponentRef = n._updateComposedComponentRef.bind(n),
n
}
Object(zn.c)(t, e),
t.prototype._updateComposedComponentRef = function(e) {
var t;
this._composedComponentInstance = e,
e ? this._hoisted = function(e, t, n) {
void 0 === n && (n = QP);
var r = []
, i = function(i) {
"function" != typeof t[i] || void 0 !== e[i] || n && -1 !== n.indexOf(i) || (r.push(i),
e[i] = function() {
for (var e = [], n = 0; n < arguments.length; n++)
e[n] = arguments[n];
t[i].apply(t, e)
}
)
};
for (var o in t)
i(o);
return r
}(this, e) : this._hoisted && (t = this,
this._hoisted.forEach((function(e) {
return delete t[e]
}
)))
}
}(l.Component),
function(e) {
e[e.small = 0] = "small",
e[e.medium = 1] = "medium",
e[e.large = 2] = "large",
e[e.xLarge = 3] = "xLarge",
e[e.xxLarge = 4] = "xxLarge",
e[e.xxxLarge = 5] = "xxxLarge",
e[e.unknown = 999] = "unknown"
}(XP || (XP = {}));
var JP, ZP, $P = [479, 639, 1023, 1365, 1919, 99999999];
function eB() {
var e;
return null !== (e = null != JP ? JP : ZP) && void 0 !== e ? e : XP.large
}
function tB(e) {
try {
return e.document.documentElement.clientWidth
} catch (t) {
return e.innerWidth
}
}
var nB = l.createContext({})
, rB = XD()
, iB = XD()
, oB = {
items: [],
shouldFocusOnMount: !0,
gapSpace: 0,
directionalHint: uL,
beakWidth: 16
};
function aB(e) {
for (var t = 0, n = 0, r = e; n < r.length; n++) {
var i = r[n];
i.itemType !== sL.Divider && i.itemType !== sL.Header && (t += i.customOnRenderListLength ? i.customOnRenderListLength : 1)
}
return t
}
function lB(e, t) {
var n = null == t ? void 0 : t.target
, r = e.subMenuProps ? e.subMenuProps.items : e.items;
if (r) {
for (var i = [], o = 0, a = r; o < a.length; o++) {
var l = a[o];
if (l.preferMenuTargetAsEventTarget) {
var s = l.onClick
, c = Object(zn.d)(l, ["onClick"]);
i.push(Object(zn.a)(Object(zn.a)({}, c), {
onClick: gB(s, n)
}))
} else
i.push(l)
}
return i
}
}
var sB = "ContextualMenu"
, cB = QN((function() {
for (var e = [], t = 0; t < arguments.length; t++)
e[t] = arguments[t];
return function(t) {
return QE.apply(void 0, Object(zn.e)([t, LP], e, !1))
}
}
));
function uB(e, t) {
var n = e.hidden
, r = e.items
, i = e.theme
, o = e.className
, a = e.id
, s = e.target
, c = l.useState()
, u = c[0]
, d = c[1]
, p = l.useState()
, h = p[0]
, f = p[1]
, b = l.useState()
, g = b[0]
, m = b[1]
, v = Lw(sB, a)
, y = l.useCallback((function() {
m(void 0),
d(void 0),
f(void 0)
}
), [])
, x = l.useCallback((function(e, t, n) {
var r = e.key;
u !== r && (t.focus(),
m(n),
d(r),
f(t))
}
), [u]);
l.useEffect((function() {
n && y()
}
), [n, y]);
var O = function(e, t) {
var n = l.useRef(!1);
return l.useEffect((function() {
return n.current = !0,
function() {
n.current = !1
}
}
), []),
function(r, i) {
i ? e(r, i) : n.current && t()
}
}(t, y);
return [u, x, function() {
var e = bB(u, r)
, t = null;
if (e && (t = {
items: lB(e, {
target: s
}),
target: h,
onDismiss: O,
isSubMenu: !0,
id: v,
shouldFocusOnMount: !0,
shouldFocusOnContainer: g,
directionalHint: FD(i) ? 8 : 11,
className: o,
gapSpace: 0,
isBeakVisible: !1
},
e.subMenuProps && lD(t, e.subMenuProps),
e.preferMenuTargetAsEventTarget)) {
var n = e.onItemClick;
t.onItemClick = gB(n, s)
}
return t
}
, O]
}
var dB = l.memo(l.forwardRef((function(e, t) {
var n, r = qL(oB, e), i = (r.ref,
Object(zn.d)(r, ["ref"])), o = l.useRef(null), a = AR(), s = Lw(sB, i.id), c = function(e, t) {
var n;
return null === (n = i.onDismiss) || void 0 === n ? void 0 : n.call(i, e, t)
}, u = NR(i.target, o), d = u[0], p = u[1], h = function(e, t, n) {
var r = e.hidden
, i = e.onRestoreFocus
, o = l.useRef()
, a = l.useCallback((function(e) {
var t, n;
i ? i(e) : (null == e ? void 0 : e.documentContainsFocus) && (null === (n = null === (t = o.current) || void 0 === t ? void 0 : t.focus) || void 0 === n || n.call(t))
}
), [i]);
return YD((function() {
var e, i;
if (r)
o.current && (a({
originalElement: o.current,
containsFocus: !0,
documentContainsFocus: (null === (i = vz()) || void 0 === i ? void 0 : i.hasFocus()) || !1
}),
o.current = void 0);
else {
var l = null == t ? void 0 : t.document.activeElement;
(null === (e = n.current) || void 0 === e ? void 0 : e.contains(l)) || "BODY" === l.tagName || (o.current = l)
}
}
), [r, null == t ? void 0 : t.document.activeElement, a, n]),
[a]
}(i, p, o)[0], f = uB(i, c), b = f[0], g = f[1], m = f[2], v = f[3], y = function(e) {
var t = e.delayUpdateFocusOnHover
, n = e.hidden
, r = l.useRef(!t)
, i = l.useRef(!1);
l.useEffect((function() {
r.current = !t,
i.current = !n && !t && i.current
}
), [t, n]);
var o = l.useCallback((function() {
t && (r.current = !1)
}
), [t]);
return [r, i, o]
}(i), x = y[0], O = y[1], j = y[2], k = function(e) {
var t = l.useRef(!0)
, n = l.useRef();
return [function() {
t.current || void 0 === n.current ? t.current = !1 : (e.clearTimeout(n.current),
n.current = void 0),
n.current = e.setTimeout((function() {
t.current = !0
}
), 250)
}
, t]
}(a), w = k[0], C = k[1], _ = function(e, t) {
var n = e.subMenuHoverDelay
, r = void 0 === n ? 250 : n
, i = l.useRef(void 0)
, o = function() {
void 0 !== i.current && (t.clearTimeout(i.current),
i.current = void 0)
};
return [o, function(e) {
i.current = t.setTimeout((function() {
e(),
o()
}
), r)
}
, i]
}(i, a), M = _[0], S = _[1], A = _[2], T = function(e, t) {
var n = l.useState(eB())
, r = n[0]
, i = n[1]
, o = l.useCallback((function() {
var t = function(e) {
var t = XP.small;
if (e) {
try {
for (; tB(e) > $P[t]; )
t++
} catch (e) {
t = eB()
}
ZP = t
} else {
if (void 0 === JP)
throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");
t = JP
}
return t
}(ww(e.current));
r !== t && i(t)
}
), [e, r]);
return TR(tI(), "resize", o),
l.useEffect((function() {
void 0 === t && o()
}
), [t]),
null != t ? t : r
}(o, i.responsiveMode);
!function(e, t) {
var n = e.hidden
, r = void 0 !== n && n
, i = e.onMenuDismissed
, o = e.onMenuOpened
, a = BP(r)
, s = l.useRef(o)
, c = l.useRef(i)
, u = l.useRef(e);
s.current = o,
c.current = i,
u.current = e,
l.useEffect((function() {
var e, t;
r && !1 === a ? null === (e = c.current) || void 0 === e || e.call(c, u.current) : r || !1 === a || null === (t = s.current) || void 0 === t || t.call(s, u.current)
}
), [r, a]),
l.useEffect((function() {
return function() {
var e;
return null === (e = c.current) || void 0 === e ? void 0 : e.call(c, u.current)
}
}
), [])
}(i);
var E, I = function(e, t, n, r) {
var i = e.theme
, o = e.isSubMenu
, a = e.focusZoneProps
, s = void 0 === a ? {} : a
, c = s.checkForNoWrap
, u = s.direction
, d = void 0 === u ? pL.vertical : u
, p = l.useRef()
, h = function(e, n, r) {
var i = !1;
return n(e) && (t(e, r),
e.preventDefault(),
e.stopPropagation(),
i = !0),
i
}
, f = function(e) {
return e.which === Yz || function(e) {
var t = FD(i) ? 39 : 37;
return !(e.which !== t || !o || d !== pL.vertical && (!c || OL(e.target, "data-no-horizontal-wrap")))
}(e) || e.which === Jz && (e.altKey || e.metaKey)
}
, b = function(e) {
p.current = pB(e);
var t = e.which === Yz && (VL() || WL());
return h(e, f, t)
}
, g = function(e) {
var t = p.current && pB(e);
return p.current = !1,
!!t && !(WL() || VL())
};
return [b, function(e) {
return h(e, g, !0)
}
, function(e) {
if (!b(e) && n.current) {
var t = !(!e.altKey && !e.metaKey)
, r = e.which === Jz
, i = e.which === Zz;
if (!t && (r || i)) {
var o = r ? fL(n.current, n.current.lastChild, !0, !1, !0, !0, void 0, void 0, void 0) : function(e, t, n, r) {
return bL(e, t, !0, !1, !1, !0, void 0, void 0, void 0, void 0)
}(n.current, n.current.firstChild);
o && (o.focus(),
e.preventDefault(),
e.stopPropagation())
}
}
}
, function(e, t) {
var n = FD(i) ? 37 : 39;
e.disabled || t.which !== n && t.which !== Gz && (t.which !== Zz || !t.altKey && !t.metaKey) || (r(e, t.currentTarget),
t.preventDefault())
}
]
}(i, c, o, g), N = I[0], z = I[1], D = I[2], L = I[3], R = function(e, t, n, r, i, o, a, l, s, c, u, d, p) {
var h = e.target
, f = function() {
return !t.current || !o.current
}
, b = function(e, t, n) {
var r = n || t.currentTarget;
e.key !== a && (c(),
void 0 === a && r.focus(),
YL(e) ? (t.stopPropagation(),
s((function() {
r.focus(),
u(e, r, !0)
}
))) : s((function() {
d(t),
r.focus()
}
)))
}
, g = function(t, n, r) {
var i = lB(t, {
target: h
});
if (c(),
YL(t) || i && i.length) {
if (t.key !== a) {
var o = "boolean" == typeof e.shouldFocusOnContainer ? e.shouldFocusOnContainer : "mouse" === n.nativeEvent.pointerType;
u(t, r, o)
}
} else
m(t, n);
n.stopPropagation(),
n.preventDefault()
}
, m = function(t, n) {
if (!t.disabled && !t.isDisabled) {
t.preferMenuTargetAsEventTarget && mB(n, h);
var r = !1;
t.onClick ? r = !!t.onClick(n, t) : e.onItemClick && (r = !!e.onItemClick(n, t)),
!r && n.defaultPrevented || p(n, !0)
}
};
return [function(e, t, n) {
i.current && (o.current = !0),
f() || b(e, t, n)
}
, function(e, a, l) {
var s = a.currentTarget;
i.current && (o.current = !0,
t.current && void 0 === n.current && s !== (null == r ? void 0 : r.document.activeElement) && b(e, a, l))
}
, function(e, t) {
var n;
if (!f() && (c(),
void 0 === a))
if (l.current.setActive)
try {
l.current.setActive()
} catch (e) {}
else
null === (n = l.current) || void 0 === n || n.focus()
}
, function(e, t) {
g(e, t, t.currentTarget)
}
, function(e, t) {
m(e, t),
t.stopPropagation()
}
, m, g]
}(i, C, A, p, x, O, b, o, S, M, g, v, c), P = R[0], B = R[1], F = R[2], V = R[3], W = R[4], q = R[5], H = R[6], U = function(e, t, n) {
var r = 0
, i = e.items
, o = e.totalItemCount
, a = e.hasCheckmarks
, s = e.hasIcons;
return l.createElement("ul", {
className: t.list,
onKeyDown: N,
onKeyUp: z,
role: "presentation"
}, i.map((function(e, n) {
var i = X(e, n, r, o, a, s, t);
if (e.itemType !== sL.Divider && e.itemType !== sL.Header) {
var l = e.customOnRenderListLength ? e.customOnRenderListLength : 1;
r += l
}
return i
}
)))
}, X = function(e, t, n, r, o, a, s) {
var c, u, d = [], p = e.iconProps || {
iconName: "None"
}, h = e.getItemClassNames, f = e.itemProps, g = f ? f.styles : void 0, m = e.itemType === sL.Divider ? e.className : void 0, v = e.submenuIconProps ? e.submenuIconProps.className : "";
if (h)
u = h(i.theme, QL(e), b === e.key, !!KL(e), !!e.href, "None" !== p.iconName, e.className, m, p.className, v, e.primaryDisabled);
else {
var y = {
theme: i.theme,
disabled: QL(e),
expanded: b === e.key,
checked: !!KL(e),
isAnchorLink: !!e.href,
knownIcon: "None" !== p.iconName,
itemClassName: e.className,
dividerClassName: m,
iconClassName: p.className,
subMenuClassName: v,
primaryDisabled: e.primaryDisabled
};
u = iB(cB(null === (c = s.subComponentStyles) || void 0 === c ? void 0 : c.menuItem, g), y)
}
switch ("-" !== e.text && "-" !== e.name || (e.itemType = sL.Divider),
e.itemType) {
case sL.Divider:
d.push(Y(t, u));
break;
case sL.Header:
d.push(Y(t, u));
var x = J(e, u, s, t, o, a);
d.push(K(x, e.key || t, u, e.title));
break;
case sL.Section:
d.push(G(e, u, s, t, o, a));
break;
default:
var O = function() {
return Q(e, u, t, n, r, o, a)
}
, j = i.onRenderContextualMenuItem ? i.onRenderContextualMenuItem(e, O) : O();
d.push(K(j, e.key || t, u, e.title))
}
return l.createElement(l.Fragment, {
key: e.key
}, d)
}, G = function(e, t, n, r, i, o) {
var a = e.sectionProps;
if (a) {
var c, u;
if (a.title) {
var d = void 0
, p = "";
if ("string" == typeof a.title) {
var h = s + a.title.replace(/\s/g, "");
d = {
key: "section-".concat(a.title, "-title"),
itemType: sL.Header,
text: a.title,
id: h
},
p = h
} else {
var f = a.title.id || s + a.title.key.replace(/\s/g, "");
d = Object(zn.a)(Object(zn.a)({}, a.title), {
id: f
}),
p = f
}
d && (u = {
role: "group",
"aria-labelledby": p
},
c = J(d, t, n, r, i, o))
}
if (a.items && a.items.length > 0) {
var b = 0;
return l.createElement("li", {
role: "presentation",
key: a.key || e.key || "section-".concat(r)
}, l.createElement("div", Object(zn.a)({}, u), l.createElement("ul", {
className: n.list,
role: "presentation"
}, a.topDivider && Y(r, t, !0, !0), c && K(c, e.key || r, t, e.title), a.items.map((function(e, t) {
var r = X(e, t, b, aB(a.items), i, o, n);
if (e.itemType !== sL.Divider && e.itemType !== sL.Header) {
var l = e.customOnRenderListLength ? e.customOnRenderListLength : 1;
b += l
}
return r
}
)), a.bottomDivider && Y(r, t, !1, !0))))
}
}
}, K = function(e, t, n, r) {
return l.createElement("li", {
role: "presentation",
title: r,
key: t,
className: n.item
}, e)
}, Y = function(e, t, n, r) {
return r || e > 0 ? l.createElement("li", {
role: "separator",
key: "separator-" + e + (void 0 === n ? "" : n ? "-top" : "-bottom"),
className: t.divider,
"aria-hidden": "true"
}) : null
}, Q = function(e, t, n, r, o, a, s) {
if (e.onRender)
return e.onRender(Object(zn.a)({
"aria-posinset": r + 1,
"aria-setsize": o
}, e), c);
var u = {
item: e,
classNames: t,
index: n,
focusableElementIndex: r,
totalItemCount: o,
hasCheckmarks: a,
hasIcons: s,
contextualMenuItemAs: i.contextualMenuItemAs,
onItemMouseEnter: P,
onItemMouseLeave: F,
onItemMouseMove: B,
onItemMouseDown: hB,
executeItemClick: q,
onItemKeyDown: L,
expandedMenuItemKey: b,
openSubMenu: g,
dismissSubMenu: v,
dismissMenu: c
};
if (e.href) {
var d = qP;
return e.contextualMenuItemWrapperAs && (d = GL(e.contextualMenuItemWrapperAs, d)),
l.createElement(d, Object(zn.a)({}, u, {
onItemClick: W
}))
}
if (e.split && YL(e)) {
var p = KP;
return e.contextualMenuItemWrapperAs && (p = GL(e.contextualMenuItemWrapperAs, p)),
l.createElement(p, Object(zn.a)({}, u, {
onItemClick: V,
onItemClickBase: H,
onTap: M
}))
}
var h = YP;
return e.contextualMenuItemWrapperAs && (h = GL(e.contextualMenuItemWrapperAs, h)),
l.createElement(h, Object(zn.a)({}, u, {
onItemClick: V,
onItemClickBase: H
}))
}, J = function(e, t, n, r, o, a) {
var s = RP;
e.contextualMenuItemAs && (s = GL(e.contextualMenuItemAs, s)),
i.contextualMenuItemAs && (s = GL(i.contextualMenuItemAs, s));
var c = e.itemProps
, u = e.id
, d = c && OD(c, xD);
return l.createElement("div", Object(zn.a)({
id: u,
className: n.header
}, d, {
style: e.style
}), l.createElement(s, Object(zn.a)({
item: e,
classNames: t,
index: r,
onCheckmarkClick: o ? V : void 0,
hasIcons: a
}, c)))
}, Z = i.isBeakVisible, $ = i.items, ee = i.labelElementId, te = i.id, ne = i.className, re = i.beakWidth, ie = i.directionalHint, oe = i.directionalHintForRTL, ae = i.alignTargetEdge, le = i.gapSpace, se = i.coverTarget, ce = i.ariaLabel, ue = i.doNotLayer, de = i.target, pe = i.bounds, he = i.useTargetWidth, fe = i.useTargetAsMinWidth, be = i.directionalHintFixed, ge = i.shouldFocusOnMount, me = i.shouldFocusOnContainer, ve = i.title, ye = i.styles, xe = i.theme, Oe = i.calloutProps, je = i.onRenderSubMenu, ke = void 0 === je ? fB : je, we = i.onRenderMenuList, Ce = void 0 === we ? function(e, t) {
return U(e, Se)
}
: we, _e = i.focusZoneProps, Me = i.getMenuClassNames, Se = Me ? Me(xe, ne) : rB(ye, {
theme: xe,
className: ne
}), Ae = function e(t) {
for (var n = 0, r = t; n < r.length; n++) {
var i = r[n];
if (i.iconProps)
return !0;
if (i.itemType === sL.Section && i.sectionProps && e(i.sectionProps.items))
return !0
}
return !1
}($), Te = Object(zn.a)(Object(zn.a)({
direction: pL.vertical,
handleTabKey: 1,
isCircularNavigation: !0
}, _e), {
className: Vz(Se.root, null === (n = i.focusZoneProps) || void 0 === n ? void 0 : n.className)
}), Ee = function(e) {
return e.some((function(e) {
return !!e.canCheck || !(!e.sectionProps || !e.sectionProps.items.some((function(e) {
return !0 === e.canCheck
}
)))
}
))
}($), Ie = b && !0 !== i.hidden ? m() : null;
Z = void 0 === Z ? T <= XP.medium : Z;
var Ne = d.current;
if ((he || fe) && Ne && Ne.offsetWidth) {
var ze = Ne.getBoundingClientRect().width - 2;
he ? E = {
width: ze
} : fe && (E = {
minWidth: ze
})
}
if ($ && $.length > 0) {
var De = aB($)
, Le = Se.subComponentStyles ? Se.subComponentStyles.callout : void 0;
return l.createElement(nB.Consumer, null, (function(e) {
return l.createElement(vP, Object(zn.a)({
styles: Le,
onRestoreFocus: h
}, Oe, {
target: de || e.target,
isBeakVisible: Z,
beakWidth: re,
directionalHint: ie,
directionalHintForRTL: oe,
gapSpace: le,
coverTarget: se,
doNotLayer: ue,
className: Vz("ms-ContextualMenu-Callout", Oe && Oe.className),
setInitialFocus: ge,
onDismiss: i.onDismiss || e.onDismiss,
onScroll: w,
bounds: pe,
directionalHintFixed: be,
alignTargetEdge: ae,
hidden: i.hidden || e.hidden,
ref: t
}), l.createElement("div", {
style: E,
ref: o,
id: te,
className: Se.container,
tabIndex: me ? 0 : -1,
onKeyDown: D,
onKeyUp: z,
onFocusCapture: j,
"aria-label": ce,
"aria-labelledby": ee,
role: "menu"
}, ve && l.createElement("div", {
className: Se.title
}, " ", ve, " "), $ && $.length ? function(e, t) {
var n = i.focusZoneAs
, r = void 0 === n ? FL : n;
return l.createElement(r, Object(zn.a)({}, t), e)
}(Ce({
ariaLabel: ce,
items: $,
totalItemCount: De,
hasCheckmarks: Ee,
hasIcons: Ae,
defaultMenuItemRenderer: function(e) {
return function(e, t) {
var n = e.index
, r = e.focusableElementIndex
, i = e.totalItemCount
, o = e.hasCheckmarks
, a = e.hasIcons;
return X(e, n, r, i, o, a, t)
}(e, Se)
},
labelElementId: ee
}, (function(e, t) {
return U(e, Se)
}
)), Te) : null, Ie && ke(Ie, fB)), l.createElement(ID, null))
}
))
}
return null
}
)), (function(e, t) {
return !(t.shouldUpdateWhenHidden || !e.hidden || !t.hidden) || aD(e, t)
}
));
function pB(e) {
return e.which === Kz || "Meta" === e.key
}
function hB(e, t) {
var n;
null === (n = e.onMouseDown) || void 0 === n || n.call(e, e, t)
}
function fB(e, t) {
throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")
}
function bB(e, t) {
for (var n = 0, r = t; n < r.length; n++) {
var i = r[n];
if (i.itemType === sL.Section && i.sectionProps) {
var o = bB(e, i.sectionProps.items);
if (o)
return o
} else if (i.key && i.key === e)
return i
}
}
function gB(e, t) {
return e ? function(n, r) {
return mB(n, t),
e(n, r)
}
: e
}
function mB(e, t) {
e && t && (e.persist(),
t instanceof Event ? e.target = t.target : t instanceof Element && (e.target = t))
}
dB.displayName = "ContextualMenuBase";
var vB = {
root: "ms-ContextualMenu",
container: "ms-ContextualMenu-container",
list: "ms-ContextualMenu-list",
header: "ms-ContextualMenu-header",
title: "ms-ContextualMenu-title",
isopen: "is-open"
};
function yB(e) {
return l.createElement(xB, Object(zn.a)({}, e))
}
var xB = yI(dB, (function(e) {
var t = e.className
, n = e.theme
, r = tz(vB, n)
, i = n.fonts
, o = n.semanticColors
, a = n.effects;
return {
root: [n.fonts.medium, r.root, r.isopen, {
backgroundColor: o.menuBackground,
minWidth: "180px"
}, t],
container: [r.container, {
selectors: {
":focus": {
outline: 0
}
}
}],
list: [r.list, r.isopen, {
listStyleType: "none",
margin: "0",
padding: "0"
}],
header: [r.header, i.small, {
fontWeight: FN.semibold,
color: o.menuHeader,
background: "none",
backgroundColor: "transparent",
border: "none",
height: SP,
lineHeight: SP,
cursor: "default",
padding: "0px 6px",
userSelect: "none",
textAlign: "left"
}],
title: [r.title, {
fontSize: i.mediumPlus.fontSize,
paddingRight: "14px",
paddingLeft: "14px",
paddingBottom: "5px",
paddingTop: "5px",
backgroundColor: o.menuItemBackgroundPressed
}],
subComponentStyles: {
callout: {
root: {
boxShadow: a.elevation8
}
},
menuItem: {}
}
}
}
), (function(e) {
return {
onRenderSubMenu: e.onRenderSubMenu ? (t = e.onRenderSubMenu,
n = yB,
dL(t)(n)) : yB
};
var t, n
}
), {
scope: "ContextualMenu"
})
, OB = xB;
OB.displayName = "ContextualMenu";
var jB = {
msButton: "ms-Button",
msButtonHasMenu: "ms-Button--hasMenu",
msButtonIcon: "ms-Button-icon",
msButtonMenuIcon: "ms-Button-menuIcon",
msButtonLabel: "ms-Button-label",
msButtonDescription: "ms-Button-description",
msButtonScreenReaderText: "ms-Button-screenReaderText",
msButtonFlexContainer: "ms-Button-flexContainer",
msButtonTextContainer: "ms-Button-textContainer"
}
, kB = QN((function(e, t, n, r, i, o, a, l, s, c, u) {
var d, p, h = tz(jB, e || {}), f = c && !u;
return Lz(t.__shadowConfig__, {
root: [h.msButton, t.root, r, s && ["is-checked", t.rootChecked], f && ["is-expanded", t.rootExpanded, (d = {},
d[":hover .".concat(h.msButtonIcon)] = t.iconExpandedHovered,
d[":hover .".concat(h.msButtonMenuIcon)] = t.menuIconExpandedHovered || t.rootExpandedHovered,
d[":hover"] = t.rootExpandedHovered,
d)], l && [jB.msButtonHasMenu, t.rootHasMenu], a && ["is-disabled", t.rootDisabled], !a && !f && !s && (p = {
":hover": t.rootHovered
},
p[":hover .".concat(h.msButtonLabel)] = t.labelHovered,
p[":hover .".concat(h.msButtonIcon)] = t.iconHovered,
p[":hover .".concat(h.msButtonDescription)] = t.descriptionHovered,
p[":hover .".concat(h.msButtonMenuIcon)] = t.menuIconHovered,
p[":focus"] = t.rootFocused,
p[":active"] = t.rootPressed,
p[":active .".concat(h.msButtonIcon)] = t.iconPressed,
p[":active .".concat(h.msButtonDescription)] = t.descriptionPressed,
p[":active .".concat(h.msButtonMenuIcon)] = t.menuIconPressed,
p), a && s && [t.rootCheckedDisabled], !a && s && {
":hover": t.rootCheckedHovered,
":active": t.rootCheckedPressed
}, n],
flexContainer: [h.msButtonFlexContainer, t.flexContainer],
textContainer: [h.msButtonTextContainer, t.textContainer],
icon: [h.msButtonIcon, i, t.icon, f && t.iconExpanded, s && t.iconChecked, a && t.iconDisabled],
label: [h.msButtonLabel, t.label, s && t.labelChecked, a && t.labelDisabled],
menuIcon: [h.msButtonMenuIcon, o, t.menuIcon, s && t.menuIconChecked, a && !u && t.menuIconDisabled, !a && !f && !s && {
":hover": t.menuIconHovered,
":active": t.menuIconPressed
}, f && ["is-expanded", t.menuIconExpanded]],
description: [h.msButtonDescription, t.description, s && t.descriptionChecked, a && t.descriptionDisabled],
screenReaderText: [h.msButtonScreenReaderText, t.screenReaderText]
})
}
))
, wB = QN((function(e, t, n, r, i) {
return {
root: XI(e.splitButtonMenuButton, n && [e.splitButtonMenuButtonExpanded], t && [e.splitButtonMenuButtonDisabled], r && !t && [e.splitButtonMenuButtonChecked], i && !t && [{
":focus": e.splitButtonMenuFocused
}]),
splitButtonContainer: XI(e.splitButtonContainer, !t && r && [e.splitButtonContainerChecked, {
":hover": e.splitButtonContainerCheckedHovered
}], !t && !r && [{
":hover": e.splitButtonContainerHovered,
":focus": e.splitButtonContainerFocused
}], t && e.splitButtonContainerDisabled),
icon: XI(e.splitButtonMenuIcon, t && e.splitButtonMenuIconDisabled, !t && i && e.splitButtonMenuIcon),
flexContainer: XI(e.splitButtonFlexContainer),
divider: XI("ms-SplitButton-divider", e.splitButtonDivider, (i || t) && e.splitButtonDividerDisabled)
}
}
))
, CB = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._buttonElement = l.createRef(),
n._splitButtonContainer = l.createRef(),
n._mergedRef = Fz(),
n._renderedVisibleMenu = !1,
n._getMemoizedMenuButtonKeytipProps = QN((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
hasMenu: !0
})
}
)),
n._onRenderIcon = function(e, t) {
var r = n.props.iconProps;
if (r && (void 0 !== r.iconName || r.imageProps)) {
var i = r.className
, o = r.imageProps
, a = Object(zn.d)(r, ["className", "imageProps"]);
if (r.styles)
return l.createElement(lL, Object(zn.a)({
className: Vz(n._classNames.icon, i),
imageProps: o
}, a));
if (r.iconName)
return l.createElement(oL, Object(zn.a)({
className: Vz(n._classNames.icon, i)
}, a));
if (o)
return l.createElement(cL, Object(zn.a)({
className: Vz(n._classNames.icon, i),
imageProps: o
}, a))
}
return null
}
,
n._onRenderTextContents = function() {
var e = n.props
, t = e.text
, r = e.children
, i = e.secondaryText
, o = void 0 === i ? n.props.description : i
, a = e.onRenderText
, s = void 0 === a ? n._onRenderText : a
, c = e.onRenderDescription
, u = void 0 === c ? n._onRenderDescription : c;
return t || "string" == typeof r || o ? l.createElement("span", {
className: n._classNames.textContainer
}, s(n.props, n._onRenderText), u(n.props, n._onRenderDescription)) : [s(n.props, n._onRenderText), u(n.props, n._onRenderDescription)]
}
,
n._onRenderText = function() {
var e = n.props.text
, t = n.props.children;
return void 0 === e && "string" == typeof t && (e = t),
n._hasText() ? l.createElement("span", {
key: n._labelId,
className: n._classNames.label,
id: n._labelId
}, e) : null
}
,
n._onRenderChildren = function() {
var e = n.props.children;
return "string" == typeof e ? null : e
}
,
n._onRenderDescription = function(e) {
var t = e.secondaryText
, r = void 0 === t ? n.props.description : t;
return r ? l.createElement("span", {
key: n._descriptionId,
className: n._classNames.description,
id: n._descriptionId
}, r) : null
}
,
n._onRenderAriaDescription = function() {
var e = n.props.ariaDescription;
return e ? l.createElement("span", {
className: n._classNames.screenReaderText,
id: n._ariaDescriptionId
}, e) : null
}
,
n._onRenderMenuIcon = function(e) {
var t = n.props.menuIconProps;
return l.createElement(oL, Object(zn.a)({
iconName: "ChevronDown"
}, t, {
className: n._classNames.menuIcon
}))
}
,
n._onRenderMenu = function(e) {
var t = n.props.menuAs ? GL(n.props.menuAs, OB) : OB;
return l.createElement(t, Object(zn.a)({}, e))
}
,
n._onDismissMenu = function(e) {
var t = n.props.menuProps;
t && t.onDismiss && t.onDismiss(e),
e && e.defaultPrevented || n._dismissMenu()
}
,
n._dismissMenu = function() {
n._menuShouldFocusOnMount = void 0,
n._menuShouldFocusOnContainer = void 0,
n.setState({
menuHidden: !0
})
}
,
n._openMenu = function(e, t) {
void 0 === t && (t = !0),
n.props.menuProps && (n._menuShouldFocusOnContainer = e,
n._menuShouldFocusOnMount = t,
n._renderedVisibleMenu = !0,
n.setState({
menuHidden: !1
}))
}
,
n._onToggleMenu = function(e) {
var t = !0;
n.props.menuProps && !1 === n.props.menuProps.shouldFocusOnMount && (t = !1),
n.state.menuHidden ? n._openMenu(e, t) : n._dismissMenu()
}
,
n._onSplitContainerFocusCapture = function(e) {
var t = n._splitButtonContainer.current;
!t || e.target && Xz(e.target, t) || t.focus()
}
,
n._onSplitButtonPrimaryClick = function(e) {
n.state.menuHidden || n._dismissMenu();
var t = n._processingTouch && !n.props.toggle;
!t && n.props.onClick ? n.props.onClick(e) : t && n._onMenuClick(e)
}
,
n._onKeyDown = function(e) {
!n.props.disabled || e.which !== Gz && e.which !== Qz ? n.props.disabled || (n.props.menuProps ? n._onMenuKeyDown(e) : void 0 !== n.props.onKeyDown && n.props.onKeyDown(e)) : (e.preventDefault(),
e.stopPropagation())
}
,
n._onKeyUp = function(e) {
n.props.disabled || void 0 === n.props.onKeyUp || n.props.onKeyUp(e)
}
,
n._onKeyPress = function(e) {
n.props.disabled || void 0 === n.props.onKeyPress || n.props.onKeyPress(e)
}
,
n._onMouseUp = function(e) {
n.props.disabled || void 0 === n.props.onMouseUp || n.props.onMouseUp(e)
}
,
n._onMouseDown = function(e) {
n.props.disabled || void 0 === n.props.onMouseDown || n.props.onMouseDown(e)
}
,
n._onClick = function(e) {
n.props.disabled || (n.props.menuProps ? n._onMenuClick(e) : void 0 !== n.props.onClick && n.props.onClick(e))
}
,
n._onSplitButtonContainerKeyDown = function(e) {
e.which === Gz || e.which === Qz ? n._buttonElement.current && (n._buttonElement.current.click(),
e.preventDefault(),
e.stopPropagation()) : n._onMenuKeyDown(e)
}
,
n._onMenuKeyDown = function(e) {
var t;
if (!n.props.disabled) {
n.props.onKeyDown && n.props.onKeyDown(e);
var r = e.which === Jz
, i = e.which === Zz;
if (!e.defaultPrevented && n._isValidMenuOpenKey(e)) {
var o = n.props.onMenuClick;
o && o(e, n.props),
n._onToggleMenu(!1),
e.preventDefault(),
e.stopPropagation()
}
e.which !== Gz && e.which !== Qz || sz(!0, e.target, null === (t = n.context) || void 0 === t ? void 0 : t.registeredProviders),
e.altKey || e.metaKey || !r && !i || !n.state.menuHidden && n.props.menuProps && ((void 0 !== n._menuShouldFocusOnMount ? n._menuShouldFocusOnMount : n.props.menuProps.shouldFocusOnMount) || (e.preventDefault(),
e.stopPropagation(),
n._menuShouldFocusOnMount = !0,
n.forceUpdate()))
}
}
,
n._onTouchStart = function() {
n._isSplitButton && n._splitButtonContainer.current && !("onpointerdown"in n._splitButtonContainer.current) && n._handleTouchAndPointerEvent()
}
,
n._onMenuClick = function(e) {
var t = n.props
, r = t.onMenuClick
, i = t.menuProps;
r && r(e, n.props);
var o = "boolean" == typeof (null == i ? void 0 : i.shouldFocusOnContainer) ? i.shouldFocusOnContainer : "mouse" === e.nativeEvent.pointerType;
e.defaultPrevented || (n._onToggleMenu(o),
e.preventDefault(),
e.stopPropagation())
}
,
eD(n),
n._async = new oD(n),
n._events = new uD(n),
n.props.split,
n._labelId = zw(),
n._descriptionId = zw(),
n._ariaDescriptionId = zw(),
n.state = {
menuHidden: !0
},
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "_isSplitButton", {
get: function() {
return !!this.props.menuProps && !!this.props.onClick && !0 === this.props.split
},
enumerable: !1,
configurable: !0
}),
t.prototype.render = function() {
var e, t = this.props, n = t.ariaDescription, r = t.ariaLabel, i = t.ariaHidden, o = t.className, a = t.disabled, l = t.allowDisabledFocus, s = t.primaryDisabled, c = t.secondaryText, u = void 0 === c ? this.props.description : c, d = t.href, p = t.iconProps, h = t.menuIconProps, f = t.styles, b = t.checked, g = t.variantClassName, m = t.theme, v = t.toggle, y = t.getClassNames, x = t.role, O = this.state.menuHidden, j = a || s;
this._classNames = y ? y(m, o, g, p && p.className, h && h.className, j, b, !O, !!this.props.menuProps, this.props.split, !!l) : kB(m, f, o, g, p && p.className, h && h.className, j, !!this.props.menuProps, b, !O, this.props.split);
var k = this
, w = k._ariaDescriptionId
, C = k._labelId
, _ = k._descriptionId
, M = !j && !!d
, S = M ? "a" : "button"
, A = OD(lD(M ? {} : {
type: "button"
}, this.props.rootProps, this.props), M ? gD : mD, ["disabled"])
, T = r || A["aria-label"]
, E = void 0;
n ? E = w : u && this.props.onRenderDescription !== kD ? E = _ : A["aria-describedby"] && (E = A["aria-describedby"]);
var I = void 0;
A["aria-labelledby"] ? I = A["aria-labelledby"] : E && !T && (I = this._hasText() ? C : void 0);
var N = !(!1 === this.props["data-is-focusable"] || a && !l || this._isSplitButton)
, z = "menuitemcheckbox" === x || "checkbox" === x
, D = z || !0 === v ? !!b : void 0
, L = lD(A, ((e = {
className: this._classNames.root,
ref: this._mergedRef(this.props.elementRef, this._buttonElement),
disabled: j && !l,
onKeyDown: this._onKeyDown,
onKeyPress: this._onKeyPress,
onKeyUp: this._onKeyUp,
onMouseDown: this._onMouseDown,
onMouseUp: this._onMouseUp,
onClick: this._onClick,
"aria-label": T,
"aria-labelledby": I,
"aria-describedby": E,
"aria-disabled": j,
"data-is-focusable": N
})[z ? "aria-checked" : "aria-pressed"] = D,
e));
if (i && (L["aria-hidden"] = !0),
this._isSplitButton)
return this._onRenderSplitButtonContent(S, L);
if (this.props.menuProps) {
var R = this.props.menuProps.id
, P = void 0 === R ? "".concat(this._labelId, "-menu") : R;
lD(L, {
"aria-expanded": !O,
"aria-controls": O ? null : P,
"aria-haspopup": !0
})
}
return this._onRenderContent(S, L)
}
,
t.prototype.componentDidMount = function() {
this._isSplitButton && this._splitButtonContainer.current && ("onpointerdown"in this._splitButtonContainer.current && this._events.on(this._splitButtonContainer.current, "pointerdown", this._onPointerDown, !0),
"onpointerup"in this._splitButtonContainer.current && this.props.onPointerUp && this._events.on(this._splitButtonContainer.current, "pointerup", this.props.onPointerUp, !0))
}
,
t.prototype.componentDidUpdate = function(e, t) {
this.props.onAfterMenuDismiss && !t.menuHidden && this.state.menuHidden && this.props.onAfterMenuDismiss()
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.focus = function() {
var e, t;
this._isSplitButton && this._splitButtonContainer.current ? (sz(!0, void 0, null === (e = this.context) || void 0 === e ? void 0 : e.registeredProviders),
this._splitButtonContainer.current.focus()) : this._buttonElement.current && (sz(!0, void 0, null === (t = this.context) || void 0 === t ? void 0 : t.registeredProviders),
this._buttonElement.current.focus())
}
,
t.prototype.dismissMenu = function() {
this._dismissMenu()
}
,
t.prototype.openMenu = function(e, t) {
this._openMenu(e, t)
}
,
t.prototype._onRenderContent = function(e, t) {
var n = this
, r = this.props
, i = e
, o = r.menuIconProps
, a = r.menuProps
, s = r.onRenderIcon
, c = void 0 === s ? this._onRenderIcon : s
, u = r.onRenderAriaDescription
, d = void 0 === u ? this._onRenderAriaDescription : u
, p = r.onRenderChildren
, h = void 0 === p ? this._onRenderChildren : p
, f = r.onRenderMenu
, b = void 0 === f ? this._onRenderMenu : f
, g = r.onRenderMenuIcon
, m = void 0 === g ? this._onRenderMenuIcon : g
, v = r.disabled
, y = r.keytipProps;
y && a && (y = this._getMemoizedMenuButtonKeytipProps(y));
var x = function(e) {
return l.createElement(i, Object(zn.a)({}, t, e), l.createElement("span", {
className: n._classNames.flexContainer,
"data-automationid": "splitbuttonprimary"
}, c(r, n._onRenderIcon), n._onRenderTextContents(), d(r, n._onRenderAriaDescription), h(r, n._onRenderChildren), !n._isSplitButton && (a || o || n.props.onRenderMenuIcon) && m(n.props, n._onRenderMenuIcon), a && !a.doNotLayer && n._shouldRenderMenu() && b(n._getMenuProps(a), n._onRenderMenu)))
}
, O = y ? l.createElement(WP, {
keytipProps: this._isSplitButton ? void 0 : y,
ariaDescribedBy: t["aria-describedby"],
disabled: v
}, (function(e) {
return x(e)
}
)) : x();
return a && a.doNotLayer ? l.createElement(l.Fragment, null, O, this._shouldRenderMenu() && b(this._getMenuProps(a), this._onRenderMenu)) : l.createElement(l.Fragment, null, O, l.createElement(ID, null))
}
,
t.prototype._shouldRenderMenu = function() {
var e = this.state.menuHidden
, t = this.props
, n = t.persistMenu
, r = t.renderPersistedMenuHiddenOnMount;
return !e || !(!n || !this._renderedVisibleMenu && !r)
}
,
t.prototype._hasText = function() {
return null !== this.props.text && (void 0 !== this.props.text || "string" == typeof this.props.children)
}
,
t.prototype._getMenuProps = function(e) {
var t = this.props.persistMenu
, n = this.state.menuHidden;
return e.ariaLabel || e.labelElementId || !this._hasText() || (e = Object(zn.a)(Object(zn.a)({}, e), {
labelElementId: this._labelId
})),
Object(zn.a)(Object(zn.a)({
id: this._labelId + "-menu",
directionalHint: 4
}, e), {
shouldFocusOnContainer: this._menuShouldFocusOnContainer,
shouldFocusOnMount: this._menuShouldFocusOnMount,
hidden: t ? n : void 0,
className: Vz("ms-BaseButton-menuhost", e.className),
target: this._isSplitButton ? this._splitButtonContainer.current : this._buttonElement.current,
onDismiss: this._onDismissMenu
})
}
,
t.prototype._onRenderSplitButtonContent = function(e, t) {
var n = this
, r = this.props
, i = r.styles
, o = void 0 === i ? {} : i
, a = r.disabled
, s = r.allowDisabledFocus
, c = r.checked
, u = r.getSplitButtonClassNames
, d = r.primaryDisabled
, p = r.menuProps
, h = r.toggle
, f = r.role
, b = r.primaryActionButtonProps
, g = this.props.keytipProps
, m = this.state.menuHidden
, v = u ? u(!!a, !m, !!c, !!s) : o && wB(o, !!a, !m, !!c, !!d);
lD(t, {
onClick: void 0,
onPointerDown: void 0,
onPointerUp: void 0,
tabIndex: -1,
"data-is-focusable": !1
}),
g && p && (g = this._getMemoizedMenuButtonKeytipProps(g));
var y = OD(t, [], ["disabled"]);
b && lD(t, b);
var x = function(r) {
return l.createElement("div", Object(zn.a)({}, y, {
"data-ktp-target": r ? r["data-ktp-target"] : void 0,
role: f || "button",
"aria-disabled": a,
"aria-haspopup": !0,
"aria-expanded": !m,
"aria-pressed": h ? !!c : void 0,
"aria-describedby": RD(t["aria-describedby"], r ? r["aria-describedby"] : void 0),
className: v && v.splitButtonContainer,
onKeyDown: n._onSplitButtonContainerKeyDown,
onTouchStart: n._onTouchStart,
ref: n._splitButtonContainer,
"data-is-focusable": !0,
onClick: a || d ? void 0 : n._onSplitButtonPrimaryClick,
tabIndex: !a && !d || s ? 0 : void 0,
"aria-roledescription": t["aria-roledescription"],
onFocusCapture: n._onSplitContainerFocusCapture
}), l.createElement("span", {
style: {
display: "flex",
width: "100%"
}
}, n._onRenderContent(e, t), n._onRenderSplitButtonMenuButton(v, r), n._onRenderSplitButtonDivider(v)))
};
return g ? l.createElement(WP, {
keytipProps: g,
disabled: a
}, (function(e) {
return x(e)
}
)) : x()
}
,
t.prototype._onRenderSplitButtonDivider = function(e) {
return e && e.divider ? l.createElement("span", {
className: e.divider,
"aria-hidden": !0,
onClick: function(e) {
e.stopPropagation()
}
}) : null
}
,
t.prototype._onRenderSplitButtonMenuButton = function(e, n) {
var r = this.props
, i = r.allowDisabledFocus
, o = r.checked
, a = r.disabled
, s = r.splitButtonMenuProps
, c = r.splitButtonAriaLabel
, u = r.primaryDisabled
, d = this.state.menuHidden
, p = this.props.menuIconProps;
void 0 === p && (p = {
iconName: "ChevronDown"
});
var h = Object(zn.a)(Object(zn.a)({}, s), {
styles: e,
checked: o,
disabled: a,
allowDisabledFocus: i,
onClick: this._onMenuClick,
menuProps: void 0,
iconProps: Object(zn.a)(Object(zn.a)({}, p), {
className: this._classNames.menuIcon
}),
ariaLabel: c,
"aria-haspopup": !0,
"aria-expanded": !d,
"data-is-focusable": !1
});
return l.createElement(t, Object(zn.a)({}, h, {
"data-ktp-execute-target": n ? n["data-ktp-execute-target"] : n,
onMouseDown: this._onMouseDown,
tabIndex: u && !i ? 0 : -1
}))
}
,
t.prototype._onPointerDown = function(e) {
var t = this.props.onPointerDown;
t && t(e),
"touch" === e.pointerType && (this._handleTouchAndPointerEvent(),
e.preventDefault(),
e.stopImmediatePropagation())
}
,
t.prototype._handleTouchAndPointerEvent = function() {
var e = this;
void 0 !== this._lastTouchTimeoutId && (this._async.clearTimeout(this._lastTouchTimeoutId),
this._lastTouchTimeoutId = void 0),
this._processingTouch = !0,
this._lastTouchTimeoutId = this._async.setTimeout((function() {
e._processingTouch = !1,
e._lastTouchTimeoutId = void 0,
e.state.menuHidden && e.focus()
}
), 500)
}
,
t.prototype._isValidMenuOpenKey = function(e) {
return this.props.menuTriggerKeyCode ? e.which === this.props.menuTriggerKeyCode : !!this.props.menuProps && e.which === Zz && (e.altKey || e.metaKey)
}
,
t.defaultProps = {
baseClassName: "ms-Button",
styles: {},
split: !1
},
t.contextType = AD,
t
}(l.Component)
, _B = function(e) {
var t = e.stylesheetKey
, n = e.children
, r = lI()
, i = r.useAdoptedStylesheetEx
, o = r.useMergeStylesRootStylesheets
, a = r.useWindow
, l = rI()
, s = o()
, c = a();
return i(_w, l, s, c),
i(t, l, s, c),
n(!!l)
}
, MB = QN((function(e, t, n) {
return {
stylesheetKey: e,
inShadow: t,
window: n,
__isShadowConfig__: !0
}
}
))
, SB = QN((function(e, t, n) {
return Object(zn.a)(Object(zn.a)(Object(zn.a)({}, e), t), {
__shadowConfig__: n
})
}
));
function AB(e, t, n) {
return function(r) {
var i, o = ((i = function(i) {
function o(e) {
var t = i.call(this, e) || this;
return t._styleCache = {},
t._onSettingChanged = t._onSettingChanged.bind(t),
t
}
return Object(zn.c)(o, i),
o.prototype.componentDidMount = function() {
bI.observe(this._onSettingChanged)
}
,
o.prototype.componentWillUnmount = function() {
bI.unobserve(this._onSettingChanged)
}
,
o.prototype.render = function() {
var i = this;
return l.createElement(_B, {
stylesheetKey: e
}, (function(o) {
return l.createElement(gI.Consumer, null, (function(a) {
var s, c = bI.getSettings(t, e, a.customizations), u = null !== (s = i.context.window) && void 0 !== s ? s : ww(), d = MB(e, o, u), p = i.props;
if (c.styles && "function" == typeof c.styles && (c.styles = c.styles(Object(zn.a)(Object(zn.a)({}, c), p))),
n && c.styles) {
if (i._styleCache.default !== c.styles || i._styleCache.component !== p.styles) {
var h = YE(c.styles, p.styles);
h.__shadowConfig__ = d,
i._styleCache.default = c.styles,
i._styleCache.component = p.styles,
i._styleCache.merged = h
}
return l.createElement(r, Object(zn.a)({}, c, p, {
styles: i._styleCache.merged
}))
}
var f = SB(c.styles, p.styles, d);
return l.createElement(r, Object(zn.a)({}, c, p, {
styles: f
}))
}
))
}
))
}
,
o.prototype._onSettingChanged = function() {
this.forceUpdate()
}
,
o
}(l.Component)).displayName = "Customized" + e,
i.contextType = eI,
i);
return function(e, t) {
for (var n in e)
e.hasOwnProperty(n) && (t[n] = e[n]);
return t
}(r, o)
}
}
var TB = {
outline: 0
}
, EB = function(e) {
return {
fontSize: e,
margin: "0 4px",
height: "16px",
lineHeight: "16px",
textAlign: "center",
flexShrink: 0
}
}
, IB = QN((function(e) {
var t, n, r = e.semanticColors, i = e.effects, o = e.fonts, a = r.buttonBorder, l = r.disabledBackground, s = r.disabledText, c = {
left: -2,
top: -2,
bottom: -2,
right: -2,
outlineColor: "ButtonText"
};
return {
root: [cz(e, {
inset: 1,
highContrastStyle: c,
borderColor: "transparent"
}), e.fonts.medium, {
border: "1px solid " + a,
borderRadius: i.roundedCorner2,
boxSizing: "border-box",
cursor: "pointer",
display: "inline-block",
padding: "0 16px",
textDecoration: "none",
textAlign: "center",
userSelect: "none",
":active > span": {
position: "relative",
left: 0,
top: 0
}
}],
rootDisabled: [cz(e, {
inset: 1,
highContrastStyle: c,
borderColor: "transparent"
}), {
backgroundColor: l,
borderColor: l,
color: s,
cursor: "default",
":hover": TB,
":focus": TB
}],
iconDisabled: (t = {
color: s
},
t[nz] = {
color: "GrayText"
},
t),
menuIconDisabled: (n = {
color: s
},
n[nz] = {
color: "GrayText"
},
n),
flexContainer: {
display: "flex",
height: "100%",
flexWrap: "nowrap",
justifyContent: "center",
alignItems: "center"
},
description: {
display: "block"
},
textContainer: {
flexGrow: 1,
display: "block"
},
icon: EB(o.mediumPlus.fontSize),
menuIcon: EB(o.small.fontSize),
label: {
margin: "0 4px",
lineHeight: "100%",
display: "block"
},
screenReaderText: qN
}
}
))
, NB = QN((function(e, t) {
var n, r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v = e.effects, y = e.palette, x = e.semanticColors, O = {
left: -2,
top: -2,
bottom: -2,
right: -2,
border: "none"
}, j = {
position: "absolute",
width: 1,
right: 31,
top: 8,
bottom: 8
};
return YE({
splitButtonContainer: [cz(e, {
highContrastStyle: O,
inset: 2,
pointerEvents: "none"
}), {
display: "inline-flex",
".ms-Button--default": {
borderTopRightRadius: "0",
borderBottomRightRadius: "0",
borderRight: "none",
flexGrow: "1"
},
".ms-Button--primary": (n = {
borderTopRightRadius: "0",
borderBottomRightRadius: "0",
border: "none",
flexGrow: "1",
":hover": {
border: "none"
},
":active": {
border: "none"
}
},
n[nz] = Object(zn.a)(Object(zn.a)({
color: "WindowText",
backgroundColor: "Window",
border: "1px solid WindowText",
borderRightWidth: "0"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
":hover": {
backgroundColor: "Highlight",
border: "1px solid Highlight",
borderRightWidth: "0",
color: "HighlightText"
},
":active": {
border: "1px solid Highlight"
}
}),
n),
".ms-Button--default + .ms-Button": (r = {},
r[nz] = {
border: "1px solid WindowText",
borderLeftWidth: "0",
":hover": {
backgroundColor: "HighlightText",
borderColor: "Highlight",
color: "Highlight",
".ms-Button-menuIcon": Object(zn.a)({
backgroundColor: "HighlightText",
color: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
})
}
},
r),
'.ms-Button--default + .ms-Button[aria-expanded="true"]': (i = {},
i[nz] = {
backgroundColor: "HighlightText",
borderColor: "Highlight",
color: "Highlight",
".ms-Button-menuIcon": Object(zn.a)({
backgroundColor: "HighlightText",
color: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
})
},
i),
".ms-Button--primary + .ms-Button": (o = {
border: "none"
},
o[nz] = {
border: "1px solid WindowText",
borderLeftWidth: "0",
":hover": {
borderLeftWidth: "0",
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText",
".ms-Button-menuIcon": Object(zn.a)(Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
color: "HighlightText"
})
}
},
o),
'.ms-Button--primary + .ms-Button[aria-expanded="true"]': Object(zn.a)(Object(zn.a)({
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
".ms-Button-menuIcon": {
color: "HighlightText"
}
}),
".ms-Button.is-disabled": (a = {},
a[nz] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
a)
}],
splitButtonContainerHovered: {
".ms-Button--default.is-disabled": (l = {
backgroundColor: x.buttonBackgroundDisabled,
color: x.buttonTextDisabled
},
l[nz] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
l),
".ms-Button--primary.is-disabled": (s = {
backgroundColor: x.primaryButtonBackgroundDisabled,
color: x.primaryButtonTextDisabled
},
s[nz] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
s)
},
splitButtonContainerChecked: {
".ms-Button--primary": (c = {},
c[nz] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
c)
},
splitButtonContainerCheckedHovered: {
".ms-Button--primary": (u = {},
u[nz] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
u)
},
splitButtonContainerFocused: {
outline: "none!important"
},
splitButtonMenuButton: (d = {
padding: 6,
height: "auto",
boxSizing: "border-box",
borderRadius: 0,
borderTopRightRadius: v.roundedCorner2,
borderBottomRightRadius: v.roundedCorner2,
border: "1px solid ".concat(y.neutralSecondaryAlt),
borderLeft: "none",
outline: "transparent",
userSelect: "none",
display: "inline-block",
textDecoration: "none",
textAlign: "center",
cursor: "pointer",
verticalAlign: "top",
width: 32,
marginLeft: -1,
marginTop: 0,
marginRight: 0,
marginBottom: 0
},
d[nz] = {
".ms-Button-menuIcon": {
color: "WindowText"
}
},
d),
splitButtonDivider: Object(zn.a)(Object(zn.a)({}, j), (p = {},
p[nz] = {
backgroundColor: "WindowText"
},
p)),
splitButtonDividerDisabled: Object(zn.a)(Object(zn.a)({}, j), (h = {},
h[nz] = {
backgroundColor: "GrayText"
},
h)),
splitButtonMenuButtonDisabled: (f = {
pointerEvents: "none",
border: "none",
":hover": {
cursor: "default"
},
".ms-Button--primary": (b = {},
b[nz] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
b),
".ms-Button-menuIcon": (g = {},
g[nz] = {
color: "GrayText"
},
g)
},
f[nz] = {
color: "GrayText",
border: "1px solid GrayText",
backgroundColor: "Window"
},
f),
splitButtonFlexContainer: {
display: "flex",
height: "100%",
flexWrap: "nowrap",
justifyContent: "center",
alignItems: "center"
},
splitButtonContainerDisabled: (m = {
outline: "none",
border: "none"
},
m[nz] = Object(zn.a)({
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
m),
splitButtonMenuFocused: Object(zn.a)({}, cz(e, {
highContrastStyle: O,
inset: 2
}))
}, t)
}
))
, zB = QN((function(e, t) {
var n, r = IB(e), i = NB(e), o = e.palette;
return YE(r, {
root: {
padding: "0 4px",
width: "32px",
height: "32px",
backgroundColor: "transparent",
border: "none",
color: e.semanticColors.link
},
rootHovered: (n = {
color: o.themeDarkAlt,
backgroundColor: o.neutralLighter
},
n[nz] = {
borderColor: "Highlight",
color: "Highlight"
},
n),
rootHasMenu: {
width: "auto"
},
rootPressed: {
color: o.themeDark,
backgroundColor: o.neutralLight
},
rootExpanded: {
color: o.themeDark,
backgroundColor: o.neutralLight
},
rootChecked: {
color: o.themeDark,
backgroundColor: o.neutralLight
},
rootCheckedHovered: {
color: o.themeDark,
backgroundColor: o.neutralQuaternaryAlt
},
rootDisabled: {
color: o.neutralTertiaryAlt
}
}, i, t)
}
))
, DB = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.styles
, n = e.theme;
return l.createElement(CB, Object(zn.a)({}, this.props, {
variantClassName: "ms-Button--icon",
styles: zB(n, t),
onRenderText: kD,
onRenderDescription: kD
}))
}
,
Object(zn.b)([AB("IconButton", ["theme", "styles"], !0)], t)
}(l.Component)
, LB = QN((function(e, t, n) {
var r = IB(e)
, i = NB(e);
return YE(r, {
root: {
minWidth: "80px",
height: "32px"
},
label: {
fontWeight: FN.semibold
}
}, n ? function(e) {
var t, n, r, i, o, a, l, s, c, u = e.palette, d = e.semanticColors;
return {
root: (t = {
backgroundColor: d.primaryButtonBackground,
border: "1px solid ".concat(d.primaryButtonBackground),
color: d.primaryButtonText
},
t[nz] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText",
borderColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t[".".concat(oz, " &:focus, :host(.").concat(oz, ") &:focus")] = {
":after": {
border: "none",
outlineColor: u.white
}
},
t),
rootHovered: (n = {
backgroundColor: d.primaryButtonBackgroundHovered,
border: "1px solid ".concat(d.primaryButtonBackgroundHovered),
color: d.primaryButtonTextHovered
},
n[nz] = {
color: "Window",
backgroundColor: "Highlight",
borderColor: "Highlight"
},
n),
rootPressed: (r = {
backgroundColor: d.primaryButtonBackgroundPressed,
border: "1px solid ".concat(d.primaryButtonBackgroundPressed),
color: d.primaryButtonTextPressed
},
r[nz] = Object(zn.a)({
color: "Window",
backgroundColor: "WindowText",
borderColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
r),
rootExpanded: {
backgroundColor: d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed
},
rootChecked: {
backgroundColor: d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed
},
rootCheckedHovered: {
backgroundColor: d.primaryButtonBackgroundPressed,
color: d.primaryButtonTextPressed
},
rootDisabled: (i = {
color: d.primaryButtonTextDisabled,
backgroundColor: d.primaryButtonBackgroundDisabled
},
i[nz] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
i),
splitButtonContainer: (o = {},
o[nz] = {
border: "none"
},
o),
splitButtonDivider: Object(zn.a)(Object(zn.a)({}, {
position: "absolute",
width: 1,
right: 31,
top: 8,
bottom: 8
}), (a = {
backgroundColor: u.white
},
a[nz] = {
backgroundColor: "Window"
},
a)),
splitButtonMenuButton: (l = {
backgroundColor: d.primaryButtonBackground,
color: d.primaryButtonText
},
l[nz] = {
backgroundColor: "Canvas"
},
l[":hover"] = (s = {
backgroundColor: d.primaryButtonBackgroundHovered
},
s[nz] = {
color: "Highlight"
},
s),
l),
splitButtonMenuButtonDisabled: {
backgroundColor: d.primaryButtonBackgroundDisabled,
":hover": {
backgroundColor: d.primaryButtonBackgroundDisabled
}
},
splitButtonMenuButtonChecked: {
backgroundColor: d.primaryButtonBackgroundPressed,
":hover": {
backgroundColor: d.primaryButtonBackgroundPressed
}
},
splitButtonMenuButtonExpanded: {
backgroundColor: d.primaryButtonBackgroundPressed,
":hover": {
backgroundColor: d.primaryButtonBackgroundPressed
}
},
splitButtonMenuIcon: {
color: d.primaryButtonText
},
splitButtonMenuIconDisabled: (c = {
color: u.neutralTertiary
},
c[nz] = {
color: "GrayText"
},
c)
}
}(e) : function(e) {
var t, n, r, i, o, a = e.semanticColors, l = e.palette, s = a.buttonBackground, c = a.buttonBackgroundPressed, u = a.buttonBackgroundHovered, d = a.buttonBackgroundDisabled, p = a.buttonText, h = a.buttonTextHovered, f = a.buttonTextDisabled, b = a.buttonTextChecked, g = a.buttonTextCheckedHovered;
return {
root: {
backgroundColor: s,
color: p
},
rootHovered: (t = {
backgroundColor: u,
color: h
},
t[nz] = {
borderColor: "Highlight",
color: "Highlight"
},
t),
rootPressed: {
backgroundColor: c,
color: b
},
rootExpanded: {
backgroundColor: c,
color: b
},
rootChecked: {
backgroundColor: c,
color: b
},
rootCheckedHovered: {
backgroundColor: c,
color: g
},
rootDisabled: (n = {
color: f,
backgroundColor: d
},
n[nz] = {
color: "GrayText",
borderColor: "GrayText",
backgroundColor: "Window"
},
n),
splitButtonContainer: (r = {},
r[nz] = {
border: "none"
},
r),
splitButtonMenuButton: {
color: l.white,
backgroundColor: "transparent",
":hover": (i = {
backgroundColor: l.neutralLight
},
i[nz] = {
color: "Highlight"
},
i)
},
splitButtonMenuButtonDisabled: {
backgroundColor: a.buttonBackgroundDisabled,
":hover": {
backgroundColor: a.buttonBackgroundDisabled
}
},
splitButtonDivider: Object(zn.a)(Object(zn.a)({}, {
position: "absolute",
width: 1,
right: 31,
top: 8,
bottom: 8
}), (o = {
backgroundColor: l.neutralTertiaryAlt
},
o[nz] = {
backgroundColor: "WindowText"
},
o)),
splitButtonDividerDisabled: {
backgroundColor: e.palette.neutralTertiaryAlt
},
splitButtonMenuButtonChecked: {
backgroundColor: l.neutralQuaternaryAlt,
":hover": {
backgroundColor: l.neutralQuaternaryAlt
}
},
splitButtonMenuButtonExpanded: {
backgroundColor: l.neutralQuaternaryAlt,
":hover": {
backgroundColor: l.neutralQuaternaryAlt
}
},
splitButtonMenuIcon: {
color: a.buttonText
},
splitButtonMenuIconDisabled: {
color: a.buttonTextDisabled
}
}
}(e), i, t)
}
))
, RB = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.primary
, n = void 0 !== t && t
, r = e.styles
, i = e.theme;
return l.createElement(CB, Object(zn.a)({}, this.props, {
variantClassName: n ? "ms-Button--primary" : "ms-Button--default",
styles: LB(i, r, n),
onRenderDescription: kD
}))
}
,
Object(zn.b)([AB("DefaultButton", ["theme", "styles"], !0)], t)
}(l.Component)
, PB = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._onClick = function() {
n.props.onClick(n.props.page - 1)
}
,
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.ariaLabel
, n = e.page
, r = e.selected
, i = e.className;
return l.createElement(RB, {
key: n,
onClick: this._onClick,
"aria-checked": r,
"aria-label": t,
styles: {
root: i
},
role: "radio"
}, n)
}
,
t
}(l.Component)
, BB = function() {
var e, t = ww();
return !!(null === (e = null == t ? void 0 : t.navigator) || void 0 === e ? void 0 : e.userAgent) && t.navigator.userAgent.indexOf("rv:11.0") > -1
}
, FB = "backward"
, VB = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._inputElement = l.createRef(),
n._autoFillEnabled = !0,
n._onCompositionStart = function(e) {
n.setState({
isComposing: !0
}),
n._autoFillEnabled = !1
}
,
n._onCompositionUpdate = function() {
BB() && n._updateValue(n._getCurrentInputValue(), !0)
}
,
n._onCompositionEnd = function(e) {
var t = n._getCurrentInputValue();
n._tryEnableAutofill(t, n.value, !1, !0),
n.setState({
isComposing: !1
}),
n._async.setTimeout((function() {
n._updateValue(n._getCurrentInputValue(), !1)
}
), 0)
}
,
n._onClick = function() {
n.value && "" !== n.value && n._autoFillEnabled && (n._autoFillEnabled = !1)
}
,
n._onKeyDown = function(e) {
if (n.props.onKeyDown && n.props.onKeyDown(e),
!e.nativeEvent.isComposing)
switch (e.which) {
case 8:
n._autoFillEnabled = !1;
break;
case 37:
case 39:
n._autoFillEnabled && (n.setState((function(e) {
return {
inputValue: n.props.suggestedDisplayValue || e.inputValue
}
}
)),
n._autoFillEnabled = !1);
break;
default:
n._autoFillEnabled || -1 !== n.props.enableAutofillOnKeyPress.indexOf(e.which) && (n._autoFillEnabled = !0)
}
}
,
n._onInputChanged = function(e) {
var t = n._getCurrentInputValue(e);
if (n.state.isComposing || n._tryEnableAutofill(t, n.value, e.nativeEvent.isComposing),
!BB() || !n.state.isComposing) {
var r = e.nativeEvent.isComposing
, i = void 0 === r ? n.state.isComposing : r;
n._updateValue(t, i)
}
}
,
n._onChanged = function() {}
,
n._updateValue = function(e, t) {
if (e || e !== n.value) {
var r = n.props
, i = r.onInputChange
, o = r.onInputValueChange;
i && (e = (null == i ? void 0 : i(e, t)) || ""),
n.setState({
inputValue: e
}, (function() {
return null == o ? void 0 : o(e, t)
}
))
}
}
,
eD(n),
n._async = new oD(n),
n.state = {
inputValue: t.defaultVisibleValue || "",
isComposing: !1
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
if (e.updateValueInWillReceiveProps) {
var n = e.updateValueInWillReceiveProps();
if (null !== n && n !== t.inputValue && !t.isComposing)
return Object(zn.a)(Object(zn.a)({}, t), {
inputValue: n
})
}
return null
}
,
Object.defineProperty(t.prototype, "cursorLocation", {
get: function() {
if (this._inputElement.current) {
var e = this._inputElement.current;
return "forward" !== e.selectionDirection ? e.selectionEnd : e.selectionStart
}
return -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "isValueSelected", {
get: function() {
return Boolean(this.inputElement && this.inputElement.selectionStart !== this.inputElement.selectionEnd)
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "value", {
get: function() {
return this._getControlledValue() || this.state.inputValue || ""
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "selectionStart", {
get: function() {
return this._inputElement.current ? this._inputElement.current.selectionStart : -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "selectionEnd", {
get: function() {
return this._inputElement.current ? this._inputElement.current.selectionEnd : -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "inputElement", {
get: function() {
return this._inputElement.current
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidUpdate = function(e, t, n) {
var r, i = this.props, o = i.suggestedDisplayValue, a = i.shouldSelectFullInputValueInComponentDidUpdate, l = 0;
if (!i.preventValueSelection) {
var s = (null === (r = this.context) || void 0 === r ? void 0 : r.window.document) || vz(this._inputElement.current);
if (this._inputElement.current && this._inputElement.current === (null == s ? void 0 : s.activeElement) && this._autoFillEnabled && this.value && o && WB(o, this.value)) {
var c = !1;
if (a && (c = a()),
c)
this._inputElement.current.setSelectionRange(0, o.length, FB);
else {
for (; l < this.value.length && this.value[l].toLocaleLowerCase() === o[l].toLocaleLowerCase(); )
l++;
l > 0 && this._inputElement.current.setSelectionRange(l, o.length, FB)
}
} else
this._inputElement.current && (null === n || this._autoFillEnabled || this.state.isComposing || this._inputElement.current.setSelectionRange(n.start, n.end, n.dir))
}
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose()
}
,
t.prototype.render = function() {
var e = OD(this.props, vD)
, t = Object(zn.a)(Object(zn.a)({}, this.props.style), {
fontFamily: "inherit"
});
return l.createElement("input", Object(zn.a)({
autoCapitalize: "off",
autoComplete: "off",
"aria-autocomplete": "both"
}, e, {
style: t,
ref: this._inputElement,
value: this._getDisplayValue(),
onCompositionStart: this._onCompositionStart,
onCompositionUpdate: this._onCompositionUpdate,
onCompositionEnd: this._onCompositionEnd,
onChange: this._onChanged,
onInput: this._onInputChanged,
onKeyDown: this._onKeyDown,
onClick: this.props.onClick ? this.props.onClick : this._onClick,
"data-lpignore": !0
}))
}
,
t.prototype.focus = function() {
this._inputElement.current && this._inputElement.current.focus()
}
,
t.prototype.clear = function() {
this._autoFillEnabled = !0,
this._updateValue("", !1),
this._inputElement.current && this._inputElement.current.setSelectionRange(0, 0)
}
,
t.prototype.getSnapshotBeforeUpdate = function() {
var e, t, n = this._inputElement.current;
return n && n.selectionStart !== this.value.length ? {
start: null !== (e = n.selectionStart) && void 0 !== e ? e : n.value.length,
end: null !== (t = n.selectionEnd) && void 0 !== t ? t : n.value.length,
dir: n.selectionDirection || "backward"
} : null
}
,
t.prototype._getCurrentInputValue = function(e) {
return e && e.target && e.target.value ? e.target.value : this.inputElement && this.inputElement.value ? this.inputElement.value : ""
}
,
t.prototype._tryEnableAutofill = function(e, t, n, r) {
!n && e && this._inputElement.current && this._inputElement.current.selectionStart === e.length && !this._autoFillEnabled && (e.length > t.length || r) && (this._autoFillEnabled = !0)
}
,
t.prototype._getDisplayValue = function() {
return this._autoFillEnabled ? function(e, t) {
var n = e;
return t && e && WB(t, n) && (n = t),
n
}(this.value, this.props.suggestedDisplayValue) : this.value
}
,
t.prototype._getControlledValue = function() {
var e = this.props.value;
return void 0 === e || "string" == typeof e ? e : (console.warn("props.value of Autofill should be a string, but it is ".concat(e, " with type of ").concat(typeof e)),
e.toString())
}
,
t.defaultProps = {
enableAutofillOnKeyPress: [Zz, Jz]
},
t.contextType = eI,
t
}(l.Component);
function WB(e, t) {
return !(!e || !t) && 0 === e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())
}
function qB(e, t, n) {
var r = l.useState(t)
, i = r[0]
, o = r[1]
, a = wk(void 0 !== e)
, s = a ? e : i
, c = l.useRef(s)
, u = l.useRef(n);
l.useEffect((function() {
c.current = s,
u.current = n
}
));
var d = wk((function() {
return function(e, t) {
var n = "function" == typeof e ? e(c.current) : e;
u.current && u.current(t, n),
a || o(n)
}
}
));
return [s, d]
}
var HB = XD()
, UB = l.forwardRef((function(e, t) {
var n = e.disabled
, r = e.required
, i = e.inputProps
, o = e.name
, a = e.ariaLabel
, s = e.ariaLabelledBy
, c = e.ariaDescribedBy
, u = e.ariaPositionInSet
, d = e.ariaSetSize
, p = e.title
, h = e.checkmarkIconProps
, f = e.styles
, b = e.theme
, g = e.className
, m = e.boxSide
, v = void 0 === m ? "start" : m
, y = Lw("checkbox-", e.id)
, x = l.useRef(null)
, O = QD(x, t)
, j = l.useRef(null)
, k = qB(e.checked, e.defaultChecked, e.onChange)
, w = k[0]
, C = k[1]
, _ = qB(e.indeterminate, e.defaultIndeterminate)
, M = _[0]
, S = _[1];
TD(x);
var A = HB(f, {
theme: b,
className: g,
disabled: n,
indeterminate: M,
checked: w,
reversed: "start" !== v,
isUsingCustomLabelRender: !!e.onRenderLabel
})
, T = l.useCallback((function(e) {
M ? (C(!!w, e),
S(!1)) : C(!w, e)
}
), [C, S, M, w])
, E = l.useCallback((function(e) {
return e && e.label ? l.createElement("span", {
className: A.text,
title: e.title
}, e.label) : null
}
), [A.text])
, I = l.useCallback((function(e) {
if (j.current) {
var t = !!e;
j.current.indeterminate = t,
S(t)
}
}
), [S]);
!function(e, t, n, r, i) {
l.useImperativeHandle(e.componentRef, (function() {
return {
get checked() {
return !!t
},
get indeterminate() {
return !!n
},
set indeterminate(e) {
r(e)
},
focus: function() {
i.current && i.current.focus()
}
}
}
), [i, t, n, r])
}(e, w, M, I, j),
l.useEffect((function() {
return I(M)
}
), [I, M]);
var N = e.onRenderLabel || E
, z = M ? "mixed" : void 0
, D = Object(zn.a)(Object(zn.a)({
className: A.input,
type: "checkbox"
}, i), {
checked: !!w,
disabled: n,
required: r,
name: o,
id: y,
title: p,
onChange: T,
"aria-disabled": n,
"aria-label": a,
"aria-labelledby": s,
"aria-describedby": c,
"aria-posinset": u,
"aria-setsize": d,
"aria-checked": z
});
return l.createElement("div", {
className: A.root,
title: p,
ref: O
}, l.createElement("input", Object(zn.a)({}, D, {
ref: j,
title: p,
"data-ktp-execute-target": !0
})), l.createElement("label", {
className: A.label,
htmlFor: y
}, l.createElement("div", {
className: A.checkbox,
"data-ktp-target": !0
}, l.createElement(lL, Object(zn.a)({
iconName: "CheckMark"
}, h, {
className: A.checkmark
}))), N(e, E)))
}
));
UB.displayName = "CheckboxBase";
var XB, GB, KB, YB = {
root: "ms-Checkbox",
label: "ms-Checkbox-label",
checkbox: "ms-Checkbox-checkbox",
checkmark: "ms-Checkbox-checkmark",
text: "ms-Checkbox-text"
}, QB = "20px", JB = "200ms", ZB = "cubic-bezier(.4, 0, .23, 1)", $B = yI(UB, (function(e) {
var t, n, r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y = e.className, x = e.theme, O = e.reversed, j = e.checked, k = e.disabled, w = e.isUsingCustomLabelRender, C = e.indeterminate, _ = x.semanticColors, M = x.effects, S = x.palette, A = x.fonts, T = tz(YB, x), E = _.inputForegroundChecked, I = S.neutralSecondary, N = S.neutralPrimary, z = _.inputBackgroundChecked, D = _.inputBackgroundChecked, L = _.disabledBodySubtext, R = _.inputBorderHovered, P = _.inputBackgroundCheckedHovered, B = _.inputBackgroundChecked, F = _.inputBackgroundCheckedHovered, V = _.inputBackgroundCheckedHovered, W = _.inputTextHovered, q = _.disabledBodySubtext, H = _.bodyText, U = _.disabledText, X = [(t = {
content: '""',
borderRadius: M.roundedCorner2,
position: "absolute",
width: 10,
height: 10,
top: 4,
left: 4,
boxSizing: "border-box",
borderWidth: 5,
borderStyle: "solid",
borderColor: k ? L : z,
transitionProperty: "border-width, border, border-color",
transitionDuration: JB,
transitionTimingFunction: ZB
},
t[nz] = {
borderColor: "WindowText"
},
t)];
return {
root: [T.root, {
position: "relative",
display: "flex"
}, O && "reversed", j && "is-checked", !k && "is-enabled", k && "is-disabled", !k && [!j && (n = {},
n[":hover .".concat(T.checkbox)] = (r = {
borderColor: R
},
r[nz] = {
borderColor: "Highlight"
},
r),
n[":focus .".concat(T.checkbox)] = {
borderColor: R
},
n[":hover .".concat(T.checkmark)] = (i = {
color: I,
opacity: "1"
},
i[nz] = {
color: "Highlight"
},
i),
n), j && !C && (o = {},
o[":hover .".concat(T.checkbox)] = {
background: F,
borderColor: V
},
o[":focus .".concat(T.checkbox)] = {
background: F,
borderColor: V
},
o[nz] = (a = {},
a[":hover .".concat(T.checkbox)] = {
background: "Highlight",
borderColor: "Highlight"
},
a[":focus .".concat(T.checkbox)] = {
background: "Highlight"
},
a[":focus:hover .".concat(T.checkbox)] = {
background: "Highlight"
},
a[":focus:hover .".concat(T.checkmark)] = {
color: "Window"
},
a[":hover .".concat(T.checkmark)] = {
color: "Window"
},
a),
o), C && (l = {},
l[":hover .".concat(T.checkbox, ", :hover .").concat(T.checkbox, ":after")] = (s = {
borderColor: P
},
s[nz] = {
borderColor: "WindowText"
},
s),
l[":focus .".concat(T.checkbox)] = {
borderColor: P
},
l[":hover .".concat(T.checkmark)] = {
opacity: "0"
},
l), (c = {},
c[":hover .".concat(T.text, ", :focus .").concat(T.text)] = (u = {
color: W
},
u[nz] = {
color: k ? "GrayText" : "WindowText"
},
u),
c)], y],
input: (d = {
position: "absolute",
background: "none",
opacity: 0
},
d[".".concat(oz, " &:focus + label::before, :host(.").concat(oz, ") &:focus + label::before")] = (p = {
outline: "1px solid " + x.palette.neutralSecondary,
outlineOffset: "2px"
},
p[nz] = {
outline: "1px solid WindowText"
},
p),
d),
label: [T.label, x.fonts.medium, {
display: "flex",
alignItems: w ? "center" : "flex-start",
cursor: k ? "default" : "pointer",
position: "relative",
userSelect: "none"
}, O && {
flexDirection: "row-reverse",
justifyContent: "flex-end"
}, {
"&::before": {
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0,
content: '""',
pointerEvents: "none"
}
}],
checkbox: [T.checkbox, (h = {
position: "relative",
display: "flex",
flexShrink: 0,
alignItems: "center",
justifyContent: "center",
height: QB,
width: QB,
border: "1px solid ".concat(N),
borderRadius: M.roundedCorner2,
boxSizing: "border-box",
transitionProperty: "background, border, border-color",
transitionDuration: JB,
transitionTimingFunction: ZB,
overflow: "hidden",
":after": C ? X : null
},
h[nz] = Object(zn.a)({
borderColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
h), C && {
borderColor: z
}, O ? {
marginLeft: 4
} : {
marginRight: 4
}, !k && !C && j && (f = {
background: B,
borderColor: D
},
f[nz] = {
background: "Highlight",
borderColor: "Highlight"
},
f), k && (b = {
borderColor: L
},
b[nz] = {
borderColor: "GrayText"
},
b), j && k && (g = {
background: q,
borderColor: L
},
g[nz] = {
background: "Window"
},
g)],
checkmark: [T.checkmark, (m = {
opacity: j && !C ? "1" : "0",
color: E
},
m[nz] = Object(zn.a)({
color: k ? "GrayText" : "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
m)],
text: [T.text, (v = {
color: k ? U : H,
fontSize: A.medium.fontSize,
lineHeight: "20px"
},
v[nz] = Object(zn.a)({
color: k ? "GrayText" : "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
v), O ? {
marginRight: 4
} : {
marginLeft: 4
}]
}
}
), void 0, {
scope: "Checkbox"
}), eF = QN((function(e) {
var t, n = e.semanticColors;
return {
backgroundColor: n.disabledBackground,
color: n.disabledText,
cursor: "default",
selectors: (t = {
":after": {
borderColor: n.disabledBackground
}
},
t[nz] = {
color: "GrayText",
selectors: {
":after": {
borderColor: "GrayText"
}
}
},
t)
}
}
)), tF = {
selectors: (XB = {},
XB[nz] = Object(zn.a)({
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
XB)
}, nF = {
selectors: (GB = {},
GB[nz] = Object(zn.a)({
color: "WindowText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
GB)
}, rF = QN((function(e, t, n, r, i, o) {
var a, l = e.palette, s = e.semanticColors, c = {
textHoveredColor: s.menuItemTextHovered,
textSelectedColor: l.neutralDark,
textDisabledColor: s.disabledText,
backgroundHoveredColor: s.menuItemBackgroundHovered,
backgroundPressedColor: s.menuItemBackgroundPressed
};
return YE({
root: [e.fonts.medium, {
backgroundColor: r ? c.backgroundHoveredColor : "transparent",
boxSizing: "border-box",
cursor: "pointer",
display: i ? "none" : "block",
width: "100%",
height: "auto",
minHeight: 36,
lineHeight: "20px",
padding: "0 8px",
position: "relative",
borderWidth: "1px",
borderStyle: "solid",
borderColor: "transparent",
borderRadius: 0,
wordWrap: "break-word",
overflowWrap: "break-word",
textAlign: "left",
selectors: Object(zn.a)(Object(zn.a)((a = {},
a[nz] = {
border: "none",
borderColor: "Background"
},
a), !i && {
"&.ms-Checkbox": {
display: "flex",
alignItems: "center"
}
}), {
"&.ms-Button--command:hover:active": {
backgroundColor: c.backgroundPressedColor
},
".ms-Checkbox-label": {
width: "100%"
}
})
}, o ? [{
backgroundColor: "transparent",
color: c.textSelectedColor,
selectors: {
":hover": [{
backgroundColor: c.backgroundHoveredColor
}, tF]
}
}, cz(e, {
inset: -1,
isFocusedOnly: !1
}), tF] : []],
rootHovered: {
backgroundColor: c.backgroundHoveredColor,
color: c.textHoveredColor
},
rootFocused: {
backgroundColor: c.backgroundHoveredColor
},
rootDisabled: {
color: c.textDisabledColor,
cursor: "default"
},
optionText: {
overflow: "hidden",
whiteSpace: "nowrap",
textOverflow: "ellipsis",
minWidth: "0px",
maxWidth: "100%",
wordWrap: "break-word",
overflowWrap: "break-word",
display: "inline-block"
},
optionTextWrapper: {
maxWidth: "100%",
display: "flex",
alignItems: "center"
}
}, t, n)
}
)), iF = QN((function(e, t) {
var n, r, i = e.semanticColors, o = e.fonts, a = {
buttonTextColor: i.bodySubtext,
buttonTextHoveredCheckedColor: i.buttonTextChecked,
buttonBackgroundHoveredColor: i.listItemBackgroundHovered,
buttonBackgroundCheckedColor: i.listItemBackgroundChecked,
buttonBackgroundCheckedHoveredColor: i.listItemBackgroundCheckedHovered
}, l = {
selectors: (n = {},
n[nz] = Object(zn.a)({
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
n)
};
return YE({
root: {
color: a.buttonTextColor,
fontSize: o.small.fontSize,
position: "absolute",
top: 0,
height: "100%",
lineHeight: 30,
width: 32,
textAlign: "center",
cursor: "default",
selectors: (r = {},
r[nz] = Object(zn.a)({
backgroundColor: "ButtonFace",
borderColor: "ButtonText",
color: "ButtonText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
r)
},
icon: {
fontSize: o.small.fontSize
},
rootHovered: [{
backgroundColor: a.buttonBackgroundHoveredColor,
color: a.buttonTextHoveredCheckedColor,
cursor: "pointer"
}, l],
rootPressed: [{
backgroundColor: a.buttonBackgroundCheckedColor,
color: a.buttonTextHoveredCheckedColor
}, l],
rootChecked: [{
backgroundColor: a.buttonBackgroundCheckedColor,
color: a.buttonTextHoveredCheckedColor
}, l],
rootCheckedHovered: [{
backgroundColor: a.buttonBackgroundCheckedHoveredColor,
color: a.buttonTextHoveredCheckedColor
}, l],
rootDisabled: [eF(e), {
position: "absolute"
}]
}, t)
}
)), oF = QN((function(e, t, n) {
var r, i, o, a, l, s, c = e.semanticColors, u = e.fonts, d = e.effects, p = {
textColor: c.inputText,
borderColor: c.inputBorder,
borderHoveredColor: c.inputBorderHovered,
borderPressedColor: c.inputFocusBorderAlt,
borderFocusedColor: c.inputFocusBorderAlt,
backgroundColor: c.inputBackground,
erroredColor: c.errorText
}, h = {
headerTextColor: c.menuHeader,
dividerBorderColor: c.bodyDivider
}, f = {
selectors: (r = {},
r[nz] = {
color: "GrayText"
},
r)
}, b = [{
color: c.inputPlaceholderText
}, f], g = [{
color: c.inputTextHovered
}, f], m = [{
color: c.disabledText
}, f], v = Object(zn.a)(Object(zn.a)({
color: "HighlightText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
selectors: {
":after": {
borderColor: "Highlight"
}
}
}), y = function(e, t, n, r) {
var i, o, a;
void 0 === n && (n = "border"),
void 0 === r && (r = -1);
var l = "borderBottom" === n;
return {
borderColor: e,
selectors: {
":after": (i = {
pointerEvents: "none",
content: "''",
position: "absolute",
left: l ? 0 : r,
top: r,
bottom: r,
right: l ? 0 : r
},
i[n] = "2px solid ".concat(e),
i.borderRadius = t,
i.width = "borderBottom" === n ? "100%" : void 0,
i.selectors = (o = {},
o[nz] = (a = {},
a["border" === n ? "borderColor" : "borderBottomColor"] = "Highlight",
a),
o),
i)
}
}
}(p.borderPressedColor, d.roundedCorner2, "border", 0);
return YE({
container: {},
label: {},
labelDisabled: {},
root: [e.fonts.medium, {
boxShadow: "none",
marginLeft: "0",
paddingRight: 32,
paddingLeft: 9,
color: p.textColor,
position: "relative",
outline: "0",
userSelect: "none",
backgroundColor: p.backgroundColor,
cursor: "text",
display: "block",
height: 32,
whiteSpace: "nowrap",
textOverflow: "ellipsis",
boxSizing: "border-box",
selectors: {
".ms-Label": {
display: "inline-block",
marginBottom: "8px"
},
"&.is-open": {
selectors: (i = {},
i[nz] = v,
i)
},
":after": {
pointerEvents: "none",
content: "''",
position: "absolute",
left: 0,
top: 0,
bottom: 0,
right: 0,
borderWidth: "1px",
borderStyle: "solid",
borderColor: p.borderColor,
borderRadius: d.roundedCorner2
}
}
}],
rootHovered: {
selectors: (o = {
":after": {
borderColor: p.borderHoveredColor
},
".ms-ComboBox-Input": [{
color: c.inputTextHovered
}, Nz(g), nF]
},
o[nz] = Object(zn.a)(Object(zn.a)({
color: "HighlightText",
backgroundColor: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
selectors: {
":after": {
borderColor: "Highlight"
}
}
}),
o)
},
rootPressed: [{
position: "relative",
selectors: (a = {},
a[nz] = v,
a)
}],
rootFocused: [{
selectors: (l = {
".ms-ComboBox-Input": [{
color: c.inputTextHovered
}, nF]
},
l[nz] = v,
l)
}, y],
rootDisabled: eF(e),
rootError: {
selectors: {
":after": {
borderColor: p.erroredColor
},
":hover:after": {
borderColor: c.inputBorderHovered
}
}
},
rootDisallowFreeForm: {},
input: [Nz(b), {
backgroundColor: p.backgroundColor,
color: p.textColor,
boxSizing: "border-box",
width: "100%",
height: "100%",
borderStyle: "none",
outline: "none",
font: "inherit",
textOverflow: "ellipsis",
padding: "0",
selectors: {
"::-ms-clear": {
display: "none"
}
}
}, nF],
inputDisabled: [eF(e), Nz(m)],
errorMessage: [e.fonts.small, {
color: p.erroredColor,
marginTop: "5px"
}],
callout: {
boxShadow: d.elevation8
},
optionsContainerWrapper: {
width: n
},
optionsContainer: {
display: "block"
},
screenReaderText: qN,
header: [u.medium, {
fontWeight: FN.semibold,
color: h.headerTextColor,
backgroundColor: "none",
borderStyle: "none",
height: 36,
lineHeight: 36,
cursor: "default",
padding: "0 8px",
userSelect: "none",
textAlign: "left",
selectors: (s = {},
s[nz] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
s)
}],
divider: {
height: 1,
backgroundColor: h.dividerBorderColor
}
}, t)
}
)), aF = QN((function(e, t, n, r, i, o, a, l) {
return {
container: XI(e.__shadowConfig__, "ms-ComboBox-container", t, e.container),
label: XI(e.__shadowConfig__, e.label, r && e.labelDisabled),
root: XI(e.__shadowConfig__, "ms-ComboBox", l ? e.rootError : n && "is-open", i && "is-required", e.root, !a && e.rootDisallowFreeForm, l && !o ? e.rootError : !r && o && e.rootFocused, !r && {
selectors: {
":hover": l ? e.rootError : !n && !o && e.rootHovered,
":active": l ? e.rootError : e.rootPressed,
":focus": l ? e.rootError : e.rootFocused
}
}, r && ["is-disabled", e.rootDisabled]),
input: XI(e.__shadowConfig__, "ms-ComboBox-Input", e.input, r && e.inputDisabled),
errorMessage: XI(e.__shadowConfig__, e.errorMessage),
callout: XI(e.__shadowConfig__, "ms-ComboBox-callout", e.callout),
optionsContainerWrapper: XI(e.__shadowConfig__, "ms-ComboBox-optionsContainerWrapper", e.optionsContainerWrapper),
optionsContainer: XI(e.__shadowConfig__, "ms-ComboBox-optionsContainer", e.optionsContainer),
header: XI(e.__shadowConfig__, "ms-ComboBox-header", e.header),
divider: XI(e.__shadowConfig__, "ms-ComboBox-divider", e.divider),
screenReaderText: XI(e.__shadowConfig__, e.screenReaderText)
}
}
)), lF = QN((function(e) {
return {
optionText: XI(e.__shadowConfig__, "ms-ComboBox-optionText", e.optionText),
root: XI(e.__shadowConfig__, "ms-ComboBox-option", e.root, {
selectors: {
":hover": e.rootHovered,
":focus": e.rootFocused,
":active": e.rootPressed
}
}),
optionTextWrapper: XI(e.__shadowConfig__, e.optionTextWrapper)
}
}
)), sF = XD({
cacheSize: 100
}), cF = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.as
, n = void 0 === t ? "label" : t
, r = e.children
, i = e.className
, o = e.disabled
, a = e.styles
, s = e.required
, c = e.theme
, u = sF(a, {
className: i,
disabled: o,
required: s,
theme: c
});
return l.createElement(n, Object(zn.a)({}, OD(this.props, xD), {
className: u.root
}), r)
}
,
t
}(l.Component), uF = yI(cF, (function(e) {
var t, n = e.theme, r = e.className, i = e.disabled, o = e.required, a = n.semanticColors, l = FN.semibold, s = a.bodyText, c = a.disabledBodyText, u = a.errorText;
return {
root: ["ms-Label", n.fonts.medium, {
fontWeight: l,
color: s,
boxSizing: "border-box",
boxShadow: "none",
margin: 0,
display: "block",
padding: "5px 0",
wordWrap: "break-word",
overflowWrap: "break-word"
}, i && {
color: c,
selectors: (t = {},
t[nz] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
}, o && {
selectors: {
"::after": {
content: "' *'",
color: u,
paddingRight: 12
}
}
}, r]
}
}
), void 0, {
scope: "Label"
});
!function(e) {
e[e.Normal = 0] = "Normal",
e[e.Divider = 1] = "Divider",
e[e.Header = 2] = "Header",
e[e.SelectAll = 3] = "SelectAll"
}(KB || (KB = {}));
var dF, pF, hF = QN((function(e, t) {
var n, r, i;
return YE(IB(e), {
root: (n = {
padding: "0 4px",
height: "40px",
color: e.palette.neutralPrimary,
backgroundColor: "transparent",
border: "1px solid transparent"
},
n[nz] = {
borderColor: "Window"
},
n),
rootHovered: (r = {
color: e.palette.themePrimary
},
r[nz] = {
color: "Highlight"
},
r),
iconHovered: {
color: e.palette.themePrimary
},
rootPressed: {
color: e.palette.black
},
rootExpanded: {
color: e.palette.themePrimary
},
iconPressed: {
color: e.palette.themeDarker
},
rootDisabled: (i = {
color: e.palette.neutralTertiary,
backgroundColor: "transparent",
borderColor: "transparent"
},
i[nz] = {
color: "GrayText"
},
i),
rootChecked: {
color: e.palette.black
},
iconChecked: {
color: e.palette.themeDarker
},
flexContainer: {
justifyContent: "flex-start"
},
icon: {
color: e.palette.themeDarkAlt
},
iconDisabled: {
color: "inherit"
},
menuIcon: {
color: e.palette.neutralSecondary
},
textContainer: {
flexGrow: 0
}
}, t)
}
)), fF = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.styles
, n = e.theme;
return l.createElement(CB, Object(zn.a)({}, this.props, {
variantClassName: "ms-Button--action ms-Button--command",
styles: hF(n, t),
onRenderDescription: kD
}))
}
,
Object(zn.b)([AB("ActionButton", ["theme", "styles"], !0)], t)
}(l.Component), bF = fF;
!function(e) {
e[e.backward = -1] = "backward",
e[e.none = 0] = "none",
e[e.forward = 1] = "forward"
}(dF || (dF = {})),
function(e) {
e[e.clearAll = -2] = "clearAll",
e[e.default = -1] = "default"
}(pF || (pF = {}));
var gF = l.memo((function(e) {
return (0,
e.render)()
}
), (function(e, t) {
e.render;
var n = Object(zn.d)(e, ["render"]);
return t.render,
aD(n, Object(zn.d)(t, ["render"]))
}
))
, mF = {
options: [],
allowFreeform: !1,
autoComplete: "on",
buttonIconProps: {
iconName: "ChevronDown"
}
};
var vF = l.forwardRef((function(e, t) {
var n = qL(mF, e)
, r = (n.ref,
Object(zn.d)(n, ["ref"]))
, i = l.useRef(null)
, o = QD(i, t)
, a = function(e) {
var t = e.options
, n = e.defaultSelectedKey
, r = e.selectedKey
, i = l.useState((function() {
return jF(t, function(e, t) {
var n = kF(e);
return n.length ? n : kF(t)
}(n, r))
}
))
, o = i[0]
, a = i[1]
, s = l.useState(t)
, c = s[0]
, u = s[1]
, d = l.useState()
, p = d[0]
, h = d[1];
return l.useEffect((function() {
if (void 0 !== r) {
var e = kF(r)
, n = jF(t, e);
a(n)
}
u(t)
}
), [t, r]),
l.useEffect((function() {
null === r && h(void 0)
}
), [r]),
[o, a, c, u, p, h]
}(r)
, s = a[0]
, c = a[1]
, u = a[2]
, d = a[3]
, p = a[4]
, h = a[5];
return l.createElement(OF, Object(zn.a)({}, r, {
hoisted: {
mergedRootRef: o,
rootRef: i,
selectedIndices: s,
setSelectedIndices: c,
currentOptions: u,
setCurrentOptions: d,
suggestedDisplayValue: p,
setSuggestedDisplayValue: h
}
}))
}
));
function yF(e, t) {
for (var n = function(e, t) {
void 0 === t && (t = !0);
var n = [];
if (e) {
for (var r = 0; r < e.children.length; r++)
n.push(e.children.item(r));
t && Wz(e) && n.push.apply(n, e._virtual.children)
}
return n
}(e), r = 0; r < n.length; r++) {
var i = n[r];
if (t(i))
return i;
var o = yF(i, t);
if (o)
return o
}
return null
}
vF.displayName = "ComboBox";
var xF, OF = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._autofill = l.createRef(),
n._comboBoxWrapper = l.createRef(),
n._comboBoxMenu = l.createRef(),
n._selectedElement = l.createRef(),
n._overrideScrollDismiss = !1,
n.focus = function(e, t) {
n.props.disabled || (n._autofill.current && (t ? wL(n._autofill.current) : n._autofill.current.focus(),
e && n.setState({
isOpen: !0
})),
n._hasFocus() || n.setState({
focusState: "focused"
}))
}
,
n.dismissMenu = function() {
n.state.isOpen && n.setState({
isOpen: !1
})
}
,
n._onUpdateValueInAutofillWillReceiveProps = function() {
var e = n._autofill.current;
return e ? null === e.value || void 0 === e.value ? null : wF(n._currentVisibleValue) : null
}
,
n._renderComboBoxWrapper = function(e, t) {
var r = n.props
, i = r.label
, o = r.disabled
, a = r.ariaLabel
, s = r.ariaDescribedBy
, c = void 0 === s ? n.props["aria-describedby"] : s
, u = r.required
, d = r.errorMessage
, p = r.buttonIconProps
, h = r.isButtonAriaHidden
, f = r.title
, b = r.placeholder
, g = r.tabIndex
, m = r.autofill
, v = r.iconButtonProps
, y = r.hoisted.suggestedDisplayValue
, x = n.state
, O = x.ariaActiveDescendantValue
, j = x.isOpen
, k = n._hasFocus() && n.props.multiSelect && e ? e : b
, w = {
"aria-labelledby": [n.props["aria-labelledby"], i && n._id + "-label"].join(" ").trim() || void 0,
"aria-label": a && !i ? a : void 0
};
return l.createElement("div", {
"data-ktp-target": !0,
ref: n._comboBoxWrapper,
id: n._id + "wrapper",
className: n._classNames.root,
"aria-owns": j ? n._id + "-list" : void 0
}, l.createElement(VB, Object(zn.a)({
"data-ktp-execute-target": !0,
"data-is-interactable": !o,
componentRef: n._autofill,
id: n._id + "-input",
className: n._classNames.input,
type: "text",
onFocus: n._onFocus,
onBlur: n._onBlur,
onKeyDown: n._onInputKeyDown,
onKeyUp: n._onInputKeyUp,
onClick: n._onAutofillClick,
onTouchStart: n._onTouchStart,
onInputValueChange: n._onInputChange,
"aria-expanded": j,
"aria-autocomplete": n._getAriaAutoCompleteValue(),
role: "combobox",
readOnly: o
}, w, {
"aria-describedby": void 0 !== d ? RD(c, t) : c,
"aria-activedescendant": O,
"aria-required": u,
"aria-disabled": o,
"aria-controls": j ? n._id + "-list" : void 0,
spellCheck: !1,
defaultVisibleValue: n._currentVisibleValue,
suggestedDisplayValue: y,
updateValueInWillReceiveProps: n._onUpdateValueInAutofillWillReceiveProps,
shouldSelectFullInputValueInComponentDidUpdate: n._onShouldSelectFullInputValueInAutofillComponentDidUpdate,
title: f,
preventValueSelection: !n._hasFocus(),
placeholder: k,
tabIndex: o ? -1 : g
}, m)), l.createElement(DB, Object(zn.a)({
className: "ms-ComboBox-CaretDown-button",
styles: n._getCaretButtonStyles(),
role: h ? "presentation" : void 0,
"aria-hidden": h
}, h ? void 0 : w, {
"data-is-focusable": !1,
tabIndex: -1,
onClick: n._onComboBoxClick,
onBlur: n._onBlur,
iconProps: p,
disabled: o,
checked: j
}, v)))
}
,
n._onShouldSelectFullInputValueInAutofillComponentDidUpdate = function() {
return n._currentVisibleValue === n.props.hoisted.suggestedDisplayValue
}
,
n._getVisibleValue = function() {
var e = n.props
, t = e.text
, r = e.allowFreeform
, i = e.allowFreeInput
, o = e.autoComplete
, a = e.hoisted
, l = a.suggestedDisplayValue
, s = a.selectedIndices
, c = a.currentOptions
, u = n.state
, d = u.currentPendingValueValidIndex
, p = u.currentPendingValue
, h = u.isOpen
, f = CF(c, d);
if ((!h || !f) && (t || "" === t) && null == p)
return t;
if (n.props.multiSelect) {
if (n._hasFocus()) {
var b = -1;
return "on" === o && f && (b = d),
n._getPendingString(p, c, b)
}
return n._getMultiselectDisplayString(s, c, l)
}
return b = n._getFirstSelectedIndex(),
r || i ? ("on" === o && f && (b = d),
n._getPendingString(p, c, b)) : f && "on" === o ? (b = d,
wF(p)) : !n.state.isOpen && p ? CF(c, b) ? p : wF(l) : CF(c, b) ? SF(c[b]) : wF(l)
}
,
n._onInputChange = function(e) {
n.props.disabled ? n._handleInputWhenDisabled(null) : (n.props.onInputValueChange && n.props.onInputValueChange(e),
n.props.allowFreeform || n.props.allowFreeInput ? n._processInputChangeWithFreeform(e) : n._processInputChangeWithoutFreeform(e))
}
,
n._onFocus = function() {
var e, t;
null === (t = null === (e = n._autofill.current) || void 0 === e ? void 0 : e.inputElement) || void 0 === t || t.select(),
n._hasFocus() || n.setState({
focusState: "focusing"
})
}
,
n._onResolveOptions = function() {
if (n.props.onResolveOptions) {
var e = n.props.onResolveOptions(Object(zn.e)([], n.props.hoisted.currentOptions, !0));
Array.isArray(e) ? n.props.hoisted.setCurrentOptions(e) : e && e.then && (n._currentPromise = e,
e.then((function(t) {
e === n._currentPromise && n.props.hoisted.setCurrentOptions(t)
}
)))
}
}
,
n._onBlur = function(e) {
var t, r, i = DR(n.context), o = e.relatedTarget;
if (null === e.relatedTarget && (o = null == i ? void 0 : i.activeElement),
o) {
var a = null === (t = n.props.hoisted.rootRef.current) || void 0 === t ? void 0 : t.contains(o)
, l = null === (r = n._comboBoxMenu.current) || void 0 === r ? void 0 : r.contains(o)
, s = n._comboBoxMenu.current && Hz(n._comboBoxMenu.current, (function(e) {
return e === o
}
), i);
if (a || l || s)
return s && n._hasFocus() && (!n.props.multiSelect || n.props.allowFreeform) && n._submitPendingValue(e),
e.preventDefault(),
void e.stopPropagation()
}
n._hasFocus() && (n.setState({
focusState: "none"
}),
n.props.multiSelect && !n.props.allowFreeform || n._submitPendingValue(e))
}
,
n._onRenderContainer = function(e, t) {
var r = e.onRenderList
, i = e.calloutProps
, o = e.dropdownWidth
, a = e.dropdownMaxWidth
, s = e.onRenderUpperContent
, c = void 0 === s ? n._onRenderUpperContent : s
, u = e.onRenderLowerContent
, d = void 0 === u ? n._onRenderLowerContent : u
, p = e.useComboBoxAsMenuWidth
, h = e.persistMenu
, f = e.shouldRestoreFocus
, b = void 0 === f || f
, g = n.state.isOpen
, m = n._id
, v = p && n._comboBoxWrapper.current ? n._comboBoxWrapper.current.clientWidth + 2 : void 0;
return l.createElement(vP, Object(zn.a)({
isBeakVisible: !1,
gapSpace: 0,
doNotLayer: !1,
directionalHint: 4,
directionalHintFixed: !1
}, i, {
onLayerMounted: n._onLayerMounted,
className: Vz(n._classNames.callout, null == i ? void 0 : i.className),
target: n._comboBoxWrapper.current,
onDismiss: n._onDismiss,
onMouseDown: n._onCalloutMouseDown,
onScroll: n._onScroll,
setInitialFocus: !1,
calloutWidth: p && n._comboBoxWrapper.current ? v && v : o,
calloutMaxWidth: a || v,
hidden: h ? !g : void 0,
shouldRestoreFocus: b,
preventDismissOnEvent: function(e) {
return n._preventDismissOnScrollOrResize(e)
}
}), c(n.props, n._onRenderUpperContent), l.createElement("div", {
className: n._classNames.optionsContainerWrapper,
ref: n._comboBoxMenu
}, null == r ? void 0 : r(Object(zn.a)(Object(zn.a)({}, e), {
id: m
}), n._onRenderList)), d(n.props, n._onRenderLowerContent))
}
,
n._onLayerMounted = function() {
n._onCalloutLayerMounted(),
n._async.setTimeout((function() {
n._scrollIntoView()
}
), 0),
n.props.calloutProps && n.props.calloutProps.onLayerMounted && n.props.calloutProps.onLayerMounted()
}
,
n._onRenderLabel = function(e) {
var t = e.props
, r = t.label
, i = t.disabled
, o = t.required;
return r ? l.createElement(uF, {
id: n._id + "-label",
disabled: i,
required: o,
className: n._classNames.label
}, r, e.multiselectAccessibleText && l.createElement("span", {
className: n._classNames.screenReaderText
}, e.multiselectAccessibleText)) : null
}
,
n._onRenderList = function(e) {
var t = e.onRenderItem
, r = void 0 === t ? n._onRenderItem : t
, i = e.label
, o = e.ariaLabel
, a = e.multiSelect
, s = {
items: []
}
, c = []
, u = function() {
var e = s.id ? [l.createElement("div", {
role: "group",
key: s.id,
"aria-labelledby": s.id
}, s.items)] : s.items;
c = Object(zn.e)(Object(zn.e)([], c, !0), e, !0),
s = {
items: []
}
};
e.options.forEach((function(e, t) {
!function(e, t) {
switch (e.itemType) {
case KB.Header:
s.items.length > 0 && u();
var i = n._id + e.key;
s.items.push(r(Object(zn.a)(Object(zn.a)({
id: i
}, e), {
index: t
}), n._onRenderItem)),
s.id = i;
break;
case KB.Divider:
t > 0 && s.items.push(r(Object(zn.a)(Object(zn.a)({}, e), {
index: t
}), n._onRenderItem)),
s.items.length > 0 && u();
break;
default:
s.items.push(r(Object(zn.a)(Object(zn.a)({}, e), {
index: t
}), n._onRenderItem))
}
}(e, t)
}
)),
s.items.length > 0 && u();
var d = n._id;
return l.createElement("div", {
id: d + "-list",
className: n._classNames.optionsContainer,
"aria-labelledby": i && d + "-label",
"aria-label": o && !i ? o : void 0,
"aria-multiselectable": a ? "true" : void 0,
role: "listbox"
}, c)
}
,
n._onRenderItem = function(e) {
switch (e.itemType) {
case KB.Divider:
return n._renderSeparator(e);
case KB.Header:
return n._renderHeader(e);
default:
return n._renderOption(e)
}
}
,
n._onRenderLowerContent = function() {
return null
}
,
n._onRenderUpperContent = function() {
return null
}
,
n._renderOption = function(e) {
var t, r = n.props.onRenderOption, i = void 0 === r ? n._onRenderOptionContent : r, o = null !== (t = e.id) && void 0 !== t ? t : n._id + "-list" + e.index, a = n._isOptionSelected(e.index), s = n._isOptionChecked(e.index), c = n._isOptionIndeterminate(e.index), u = n._getCurrentOptionStyles(e), d = lF(u), p = e.title;
return l.createElement(gF, {
key: e.key,
index: e.index,
disabled: e.disabled,
isSelected: a,
isChecked: s,
isIndeterminate: c,
text: e.text,
render: function() {
return n.props.multiSelect ? l.createElement($B, {
id: o,
ariaLabel: e.ariaLabel,
ariaLabelledBy: e.ariaLabel ? void 0 : o + "-label",
key: e.key,
styles: u,
className: "ms-ComboBox-option",
onChange: n._onItemClick(e),
label: e.text,
checked: s,
indeterminate: c,
title: p,
disabled: e.disabled,
onRenderLabel: n._renderCheckboxLabel.bind(n, Object(zn.a)(Object(zn.a)({}, e), {
id: o + "-label"
})),
inputProps: Object(zn.a)({
"aria-selected": s ? "true" : "false",
role: "option"
}, {
"data-index": e.index,
"data-is-focusable": !0
})
}) : l.createElement(bF, {
id: o,
key: e.key,
"data-index": e.index,
styles: u,
checked: a,
className: "ms-ComboBox-option",
onClick: n._onItemClick(e),
onMouseEnter: n._onOptionMouseEnter.bind(n, e.index),
onMouseMove: n._onOptionMouseMove.bind(n, e.index),
onMouseLeave: n._onOptionMouseLeave,
role: "option",
"aria-selected": a ? "true" : "false",
ariaLabel: e.ariaLabel,
disabled: e.disabled,
title: p
}, l.createElement("span", {
className: d.optionTextWrapper,
ref: a ? n._selectedElement : void 0
}, i(e, n._onRenderOptionContent)))
},
data: e.data
})
}
,
n._onCalloutMouseDown = function(e) {
e.preventDefault()
}
,
n._onScroll = function() {
var e;
n._isScrollIdle || void 0 === n._scrollIdleTimeoutId ? n._isScrollIdle = !1 : (n._async.clearTimeout(n._scrollIdleTimeoutId),
n._scrollIdleTimeoutId = void 0),
(null === (e = n.props.calloutProps) || void 0 === e ? void 0 : e.onScroll) && n.props.calloutProps.onScroll(),
n._scrollIdleTimeoutId = n._async.setTimeout((function() {
n._isScrollIdle = !0
}
), 250)
}
,
n._onRenderOptionContent = function(e) {
var t = lF(n._getCurrentOptionStyles(e));
return l.createElement("span", {
className: t.optionText
}, e.text)
}
,
n._onRenderMultiselectOptionContent = function(e) {
var t = lF(n._getCurrentOptionStyles(e));
return l.createElement("span", {
id: e.id,
"aria-hidden": "true",
className: t.optionText
}, e.text)
}
,
n._onDismiss = function() {
var e = n.props.onMenuDismiss;
e && e(),
n.props.persistMenu && n._onCalloutLayerMounted(),
n._setOpenStateAndFocusOnClose(!1, !1),
n._resetSelectedIndex()
}
,
n._onAfterClearPendingInfo = function() {
n._processingClearPendingInfo = !1
}
,
n._onInputKeyDown = function(e) {
var t = n.props
, r = t.disabled
, i = t.allowFreeform
, o = t.allowFreeInput
, a = t.autoComplete
, l = t.hoisted.currentOptions
, s = n.state
, c = s.isOpen
, u = s.currentPendingValueValidIndexOnHover;
if (n._lastKeyDownWasAltOrMeta = AF(e),
r)
n._handleInputWhenDisabled(e);
else {
var d = n._getPendingSelectedIndex(!1);
switch (e.which) {
case Gz:
n._autofill.current && n._autofill.current.inputElement && n._autofill.current.inputElement.select(),
n._submitPendingValue(e),
n.props.multiSelect && c ? n.setState({
currentPendingValueValidIndex: d
}) : (c || (!i || void 0 === n.state.currentPendingValue || null === n.state.currentPendingValue || n.state.currentPendingValue.length <= 0) && n.state.currentPendingValueValidIndex < 0) && n.setState({
isOpen: !c
});
break;
case 9:
return n.props.multiSelect || n._submitPendingValue(e),
void (c && n._setOpenStateAndFocusOnClose(!c, !1));
case Yz:
if (n._resetSelectedIndex(),
!c)
return;
n.setState({
isOpen: !1
});
break;
case Jz:
if (u === pF.clearAll && (d = n.props.hoisted.currentOptions.length),
e.altKey || e.metaKey) {
if (c) {
n._setOpenStateAndFocusOnClose(!c, !0);
break
}
return
}
e.preventDefault(),
n._setPendingInfoFromIndexAndDirection(d, dF.backward);
break;
case Zz:
e.altKey || e.metaKey ? n._setOpenStateAndFocusOnClose(!0, !0) : (u === pF.clearAll && (d = -1),
e.preventDefault(),
n._setPendingInfoFromIndexAndDirection(d, dF.forward));
break;
case 36:
case 35:
if (i || o)
return;
d = -1;
var p = dF.forward;
35 === e.which && (d = l.length,
p = dF.backward),
n._setPendingInfoFromIndexAndDirection(d, p);
break;
case Qz:
if (!i && !o && "off" === a)
break;
default:
if (e.which >= 112 && e.which <= 123)
return;
if (e.keyCode === Kz || "Meta" === e.key)
return;
if (!i && !o && "on" === a) {
n._onInputChange(e.key);
break
}
return
}
e.stopPropagation(),
e.preventDefault()
}
}
,
n._onInputKeyUp = function(e) {
var t = n.props
, r = t.disabled
, i = t.allowFreeform
, o = t.allowFreeInput
, a = t.autoComplete
, l = n.state.isOpen
, s = n._lastKeyDownWasAltOrMeta && AF(e);
n._lastKeyDownWasAltOrMeta = !1;
var c = s && !(VL() || WL());
r ? n._handleInputWhenDisabled(e) : e.which !== Qz ? c && l ? n._setOpenStateAndFocusOnClose(!l, !0) : ("focusing" === n.state.focusState && n.props.openOnKeyboardFocus && n.setState({
isOpen: !0
}),
"focused" !== n.state.focusState && n.setState({
focusState: "focused"
})) : i || o || "off" !== a || n._setOpenStateAndFocusOnClose(!l, !!l)
}
,
n._onOptionMouseLeave = function() {
n._shouldIgnoreMouseEvent() || n.props.persistMenu && !n.state.isOpen || n.setState({
currentPendingValueValidIndexOnHover: pF.clearAll
})
}
,
n._onComboBoxClick = function() {
var e = n.props.disabled
, t = n.state.isOpen;
e || (n._setOpenStateAndFocusOnClose(!t, !1),
n.setState({
focusState: "focused"
}))
}
,
n._onAutofillClick = function() {
var e = n.props
, t = e.disabled;
e.allowFreeform && !t ? n.focus(n.state.isOpen || n._processingTouch) : n._onComboBoxClick()
}
,
n._onTouchStart = function() {
n._comboBoxWrapper.current && !("onpointerdown"in n._comboBoxWrapper) && n._handleTouchAndPointerEvent()
}
,
n._onPointerDown = function(e) {
"touch" === e.pointerType && (n._handleTouchAndPointerEvent(),
e.preventDefault(),
e.stopImmediatePropagation())
}
,
eD(n),
n._async = new oD(n),
n._events = new uD(n),
n._id = t.id || zw("ComboBox"),
n._isScrollIdle = !0,
n._processingTouch = !1,
n._gotMouseMove = !1,
n._processingClearPendingInfo = !1,
n.state = {
isOpen: !1,
focusState: "none",
currentPendingValueValidIndex: -1,
currentPendingValue: void 0,
currentPendingValueValidIndexOnHover: pF.default
},
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "selectedOptions", {
get: function() {
var e = this.props.hoisted;
return function(e, t) {
for (var n = [], r = 0, i = t; r < i.length; r++) {
var o = e[i[r]];
o && n.push(o)
}
return n
}(e.currentOptions, e.selectedIndices)
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidMount = function() {
this._comboBoxWrapper.current && !this.props.disabled && (this._events.on(this._comboBoxWrapper.current, "focus", this._onResolveOptions, !0),
"onpointerdown"in this._comboBoxWrapper.current && this._events.on(this._comboBoxWrapper.current, "pointerdown", this._onPointerDown, !0))
}
,
t.prototype.componentDidUpdate = function(e, t) {
var n, r, i, o = this, a = this.props, l = a.allowFreeform, s = a.allowFreeInput, c = a.text, u = a.onMenuOpen, d = a.onMenuDismissed, p = a.hoisted, h = p.currentOptions, f = p.selectedIndices, b = this.state, g = b.currentPendingValue, m = b.currentPendingValueValidIndex, v = b.isOpen;
!v || t.isOpen && t.currentPendingValueValidIndex === m || this._async.setTimeout((function() {
return o._scrollIntoView()
}
), 0);
var y = DR(this.context);
this._hasFocus() && (v || t.isOpen && !v && this._focusInputAfterClose && this._autofill.current && (null == y ? void 0 : y.activeElement) !== this._autofill.current.inputElement) && this.focus(void 0, !0),
this._focusInputAfterClose && (t.isOpen && !v || this._hasFocus() && (!v && !this.props.multiSelect && e.hoisted.selectedIndices && f && e.hoisted.selectedIndices[0] !== f[0] || !l && !s || c !== e.text)) && this._onFocus(),
this._notifyPendingValueChanged(t),
v && !t.isOpen && (this._overrideScrollDismiss = !0,
this._async.clearTimeout(this._overrideScrollDimissTimeout),
this._overrideScrollDimissTimeout = this._async.setTimeout((function() {
o._overrideScrollDismiss = !1
}
), 100),
null == u || u()),
!v && t.isOpen && d && d();
var x = m
, O = h.map((function(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
index: t
})
}
));
!aD(e.hoisted.currentOptions, h) && g && (x = this.props.allowFreeform || this.props.allowFreeInput ? this._processInputChangeWithFreeform(g) : this._updateAutocompleteIndexWithoutFreeform(g));
var j = void 0;
v && this._hasFocus() && -1 !== x ? j = null !== (n = O[x].id) && void 0 !== n ? n : this._id + "-list" + x : v && f.length && (j = null !== (i = null === (r = O[f[0]]) || void 0 === r ? void 0 : r.id) && void 0 !== i ? i : this._id + "-list" + f[0]),
j !== this.state.ariaActiveDescendantValue && this.setState({
ariaActiveDescendantValue: j
})
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose(),
this._events.dispose()
}
,
t.prototype.render = function() {
var e = this._id + "-error"
, t = this.props
, n = t.className
, r = t.disabled
, i = t.required
, o = t.errorMessage
, a = t.onRenderContainer
, s = void 0 === a ? this._onRenderContainer : a
, c = t.onRenderLabel
, u = void 0 === c ? this._onRenderLabel : c
, d = t.onRenderList
, p = void 0 === d ? this._onRenderList : d
, h = t.onRenderItem
, f = void 0 === h ? this._onRenderItem : h
, b = t.onRenderOption
, g = void 0 === b ? this._onRenderOptionContent : b
, m = t.allowFreeform
, v = t.styles
, y = t.theme
, x = t.persistMenu
, O = t.multiSelect
, j = t.hoisted
, k = j.suggestedDisplayValue
, w = j.selectedIndices
, C = j.currentOptions
, _ = this.state.isOpen;
this._currentVisibleValue = this._getVisibleValue();
var M = O ? this._getMultiselectDisplayString(w, C, k) : void 0
, S = OD(this.props, xD, ["onChange", "value", "aria-describedby", "aria-labelledby"])
, A = !!(o && o.length > 0);
this._classNames = this.props.getClassNames ? this.props.getClassNames(y, !!_, !!r, !!i, !!this._hasFocus(), !!m, !!A, n) : aF(oF(y, v), n, !!_, !!r, !!i, !!this._hasFocus(), !!m, !!A);
var T = this._renderComboBoxWrapper(M, e);
return l.createElement("div", Object(zn.a)({}, S, {
ref: this.props.hoisted.mergedRootRef,
className: this._classNames.container
}), u({
props: this.props,
multiselectAccessibleText: M
}, this._onRenderLabel), T, (x || _) && s(Object(zn.a)(Object(zn.a)({}, this.props), {
onRenderList: p,
onRenderItem: f,
onRenderOption: g,
options: C.map((function(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
index: t
})
}
)),
onDismiss: this._onDismiss
}), this._onRenderContainer), A && l.createElement("div", {
role: "alert",
id: e,
className: this._classNames.errorMessage
}, o))
}
,
t.prototype._getPendingString = function(e, t, n) {
return null != e ? e : CF(t, n) ? SF(t[n]) : ""
}
,
t.prototype._getMultiselectDisplayString = function(e, t, n) {
for (var r = [], i = 0; e && i < e.length; i++) {
var o = e[i];
t[o].itemType !== KB.SelectAll && r.push(CF(t, o) ? t[o].text : wF(n))
}
var a = this.props.multiSelectDelimiter
, l = void 0 === a ? ", " : a;
return r.join(l)
}
,
t.prototype._preventDismissOnScrollOrResize = function(e) {
var t = this.props.calloutProps;
return (null == t ? void 0 : t.preventDismissOnEvent) ? t.preventDismissOnEvent(e) : !(!this._overrideScrollDismiss || "scroll" !== e.type && "resize" !== e.type)
}
,
t.prototype._processInputChangeWithFreeform = function(e) {
var t = this
, n = this.props.hoisted.currentOptions
, r = -1;
if ("" === e)
return 1 === (o = n.map((function(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
index: t
})
}
)).filter((function(t) {
return _F(t) && !t.disabled && SF(t) === e
}
))).length && (r = o[0].index),
this._setPendingInfo(e, r, e),
r;
var i = e;
e = this._adjustForCaseSensitivity(e);
var o, a = "";
if ("on" === this.props.autoComplete) {
if ((o = n.map((function(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
index: t
})
}
)).filter((function(n) {
return _F(n) && !n.disabled && 0 === t._adjustForCaseSensitivity(SF(n)).indexOf(e)
}
))).length > 0) {
var l = SF(o[0]);
a = this._adjustForCaseSensitivity(l) !== e ? l : "",
r = o[0].index
}
} else
1 === (o = n.map((function(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
index: t
})
}
)).filter((function(n) {
return _F(n) && !n.disabled && t._adjustForCaseSensitivity(SF(n)) === e
}
))).length && (r = o[0].index);
return this._setPendingInfo(i, r, a),
r
}
,
t.prototype._processInputChangeWithoutFreeform = function(e) {
var t = this
, n = this.state
, r = n.currentPendingValue
, i = n.currentPendingValueValidIndex;
if ("on" === this.props.autoComplete && "" !== e) {
this._autoCompleteTimeout && (this._async.clearTimeout(this._autoCompleteTimeout),
this._autoCompleteTimeout = void 0,
e = wF(r) + e);
var o = this._updateAutocompleteIndexWithoutFreeform(e);
return this._autoCompleteTimeout = this._async.setTimeout((function() {
t._autoCompleteTimeout = void 0
}
), 1e3),
o
}
var a = i >= 0 ? i : this._getFirstSelectedIndex();
return this._setPendingInfoFromIndex(a),
a
}
,
t.prototype._updateAutocompleteIndexWithoutFreeform = function(e) {
var t = this
, n = this.props.hoisted.currentOptions
, r = e;
e = this._adjustForCaseSensitivity(e);
var i = n.map((function(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
index: t
})
}
)).filter((function(n) {
return _F(n) && !n.disabled && 0 === t._adjustForCaseSensitivity(n.text).indexOf(e)
}
));
return i.length > 0 ? (this._setPendingInfo(r, i[0].index, SF(i[0])),
i[0].index) : -1
}
,
t.prototype._getFirstSelectedIndex = function() {
var e = this.props.hoisted.selectedIndices;
return (null == e ? void 0 : e.length) ? e[0] : -1
}
,
t.prototype._getNextSelectableIndex = function(e, t) {
var n = this.props.hoisted.currentOptions
, r = e + t;
if (!CF(n, r = Math.max(0, Math.min(n.length - 1, r))))
return -1;
var i = n[r];
if (!MF(i) || !0 === i.hidden) {
if (t === dF.none || !(r > 0 && t < dF.none || r >= 0 && r < n.length && t > dF.none))
return e;
r = this._getNextSelectableIndex(r, t)
}
return r
}
,
t.prototype._setSelectedIndex = function(e, t, n) {
void 0 === n && (n = dF.none);
var r = this.props
, i = r.onChange
, o = r.onPendingValueChanged
, a = r.hoisted
, l = a.selectedIndices
, s = a.currentOptions
, c = l ? l.slice() : []
, u = s.slice();
if (CF(s, e = this._getNextSelectableIndex(e, n))) {
if (this.props.multiSelect || c.length < 1 || 1 === c.length && c[0] !== e) {
var d = Object(zn.a)({}, s[e]);
if (!d || d.disabled)
return;
if (this.props.multiSelect)
if (d.selected = void 0 !== d.selected ? !d.selected : c.indexOf(e) < 0,
d.itemType === KB.SelectAll)
c = [],
d.selected ? s.forEach((function(e, t) {
!e.disabled && MF(e) && (c.push(t),
u[t] = Object(zn.a)(Object(zn.a)({}, e), {
selected: !0
}))
}
)) : u = s.map((function(e) {
return Object(zn.a)(Object(zn.a)({}, e), {
selected: !1
})
}
));
else {
d.selected && c.indexOf(e) < 0 ? c.push(e) : !d.selected && c.indexOf(e) >= 0 && (c = c.filter((function(t) {
return t !== e
}
))),
u[e] = d;
var p = u.filter((function(e) {
return e.itemType === KB.SelectAll
}
))[0];
if (p) {
var h = this._isSelectAllChecked(c)
, f = u.indexOf(p);
h ? (c.push(f),
u[f] = Object(zn.a)(Object(zn.a)({}, p), {
selected: !0
})) : (c = c.filter((function(e) {
return e !== f
}
)),
u[f] = Object(zn.a)(Object(zn.a)({}, p), {
selected: !1
}))
}
}
else
c[0] = e;
t.persist(),
this.props.selectedKey || null === this.props.selectedKey || (this.props.hoisted.setSelectedIndices(c),
this.props.hoisted.setCurrentOptions(u)),
this._hasPendingValue && o && (o(),
this._hasPendingValue = !1),
i && i(t, d, e, SF(d))
}
this.props.multiSelect && this.state.isOpen || this._clearPendingInfo()
}
}
,
t.prototype._submitPendingValue = function(e) {
var t, n = this.props, r = n.onChange, i = n.allowFreeform, o = n.autoComplete, a = n.multiSelect, l = n.hoisted, s = l.currentOptions, c = this.state, u = c.currentPendingValue, d = c.currentPendingValueValidIndex, p = c.currentPendingValueValidIndexOnHover, h = this.props.hoisted.selectedIndices;
if (!this._processingClearPendingInfo) {
if (i) {
if (null == u)
return void (p >= 0 && (this._setSelectedIndex(p, e),
this._clearPendingInfo()));
if (CF(s, d)) {
var f = this._adjustForCaseSensitivity(SF(s[d]))
, b = this._autofill.current
, g = this._adjustForCaseSensitivity(u);
if (g === f || o && 0 === f.indexOf(g) && (null == b ? void 0 : b.isValueSelected) && u.length + (b.selectionEnd - b.selectionStart) === f.length || void 0 !== (null === (t = null == b ? void 0 : b.inputElement) || void 0 === t ? void 0 : t.value) && this._adjustForCaseSensitivity(b.inputElement.value) === f) {
if (this._setSelectedIndex(d, e),
a && this.state.isOpen)
return;
return void this._clearPendingInfo()
}
}
if (r)
r && r(e, void 0, void 0, u);
else {
var m = {
key: u || zw(),
text: wF(u)
};
a && (m.selected = !0);
var v = s.concat([m]);
h && (a || (h = []),
h.push(v.length - 1)),
l.setCurrentOptions(v),
l.setSelectedIndices(h)
}
} else
d >= 0 ? this._setSelectedIndex(d, e) : p >= 0 && this._setSelectedIndex(p, e);
this._clearPendingInfo()
}
}
,
t.prototype._onCalloutLayerMounted = function() {
this._gotMouseMove = !1
}
,
t.prototype._renderSeparator = function(e) {
var t = e.index
, n = e.key;
return t && t > 0 ? l.createElement("div", {
role: "presentation",
key: n,
className: this._classNames.divider
}) : null
}
,
t.prototype._renderHeader = function(e) {
var t = this.props.onRenderOption
, n = void 0 === t ? this._onRenderOptionContent : t;
return l.createElement("div", {
id: e.id,
key: e.key,
className: this._classNames.header
}, n(e, this._onRenderOptionContent))
}
,
t.prototype._renderCheckboxLabel = function(e) {
var t = this.props.onRenderOption;
return (void 0 === t ? this._onRenderMultiselectOptionContent : t)(e, this._onRenderMultiselectOptionContent)
}
,
t.prototype._isOptionHighlighted = function(e) {
var t = this.state.currentPendingValueValidIndexOnHover;
return t !== pF.clearAll && (t >= 0 ? t === e : this._isOptionSelected(e))
}
,
t.prototype._isOptionSelected = function(e) {
return this._getPendingSelectedIndex(!0) === e
}
,
t.prototype._isOptionChecked = function(e) {
return !(!this.props.multiSelect || void 0 === e || !this.props.hoisted.selectedIndices) && this.props.hoisted.selectedIndices.indexOf(e) >= 0
}
,
t.prototype._isOptionIndeterminate = function(e) {
var t = this.props
, n = t.multiSelect
, r = t.hoisted;
if (n && void 0 !== e && r.selectedIndices && r.currentOptions) {
var i = r.currentOptions[e];
if (i && i.itemType === KB.SelectAll)
return r.selectedIndices.length > 0 && !this._isSelectAllChecked()
}
return !1
}
,
t.prototype._isSelectAllChecked = function(e) {
var t = this.props
, n = t.multiSelect
, r = t.hoisted
, i = r.currentOptions.find((function(e) {
return e.itemType === KB.SelectAll
}
))
, o = e || r.selectedIndices;
if (!n || !o || !i)
return !1;
var a = r.currentOptions.indexOf(i)
, l = o.filter((function(e) {
return e !== a
}
))
, s = r.currentOptions.filter((function(e) {
return !e.disabled && e.itemType !== KB.SelectAll && MF(e)
}
));
return l.length === s.length
}
,
t.prototype._getPendingSelectedIndex = function(e) {
var t = this.state
, n = t.currentPendingValueValidIndex
, r = t.currentPendingValue;
return n >= 0 || e && null != r ? n : this.props.multiSelect ? -1 : this._getFirstSelectedIndex()
}
,
t.prototype._scrollIntoView = function() {
var e = this.props
, t = e.onScrollToItem
, n = e.scrollSelectedToTop
, r = this._getPendingSelectedIndex(!0);
if (t)
t(r >= 0 ? r : this._getFirstSelectedIndex());
else {
var i = this._selectedElement.current;
if (this.props.multiSelect && this._comboBoxMenu.current && (i = yF(this._comboBoxMenu.current, (function(e) {
var t;
return (null === (t = e.dataset) || void 0 === t ? void 0 : t.index) === r.toString()
}
))),
i && i.offsetParent) {
var o = !0;
if (this._comboBoxMenu.current && this._comboBoxMenu.current.offsetParent) {
var a = this._comboBoxMenu.current.offsetParent
, l = i.offsetParent
, s = l.offsetHeight
, c = l.offsetTop
, u = a
, d = u.offsetHeight
, p = u.scrollTop
, h = c + s > p + d;
c < p || n ? (o = !1,
a.scrollTo(0, c)) : h && a.scrollTo(0, c - d + s)
} else
i.offsetParent.scrollIntoView(o)
}
}
}
,
t.prototype._onItemClick = function(e) {
var t = this
, n = this.props.onItemClick
, r = e.index;
return function(i) {
t.props.multiSelect || (t._autofill.current && t._autofill.current.focus(),
t.setState({
isOpen: !1
})),
n && n(i, e, r),
t._setSelectedIndex(r, i)
}
}
,
t.prototype._resetSelectedIndex = function() {
var e = this.props.hoisted.currentOptions;
this._clearPendingInfo();
var t = this._getFirstSelectedIndex();
t > 0 && t < e.length ? this.props.hoisted.setSuggestedDisplayValue(e[t].text) : this.props.text && this.props.hoisted.setSuggestedDisplayValue(this.props.text)
}
,
t.prototype._clearPendingInfo = function() {
this._processingClearPendingInfo = !0,
this.props.hoisted.setSuggestedDisplayValue(void 0),
this.setState({
currentPendingValue: void 0,
currentPendingValueValidIndex: -1,
currentPendingValueValidIndexOnHover: pF.default
}, this._onAfterClearPendingInfo)
}
,
t.prototype._setPendingInfo = function(e, t, n) {
void 0 === t && (t = -1),
this._processingClearPendingInfo || (this.props.hoisted.setSuggestedDisplayValue(n),
this.setState({
currentPendingValue: wF(e),
currentPendingValueValidIndex: t,
currentPendingValueValidIndexOnHover: pF.default
}))
}
,
t.prototype._setPendingInfoFromIndex = function(e) {
var t = this.props.hoisted.currentOptions;
if (e >= 0 && e < t.length) {
var n = t[e];
this._setPendingInfo(SF(n), e, SF(n))
} else
this._clearPendingInfo()
}
,
t.prototype._setPendingInfoFromIndexAndDirection = function(e, t) {
var n = this.props.hoisted.currentOptions;
t === dF.forward && e >= n.length - 1 ? e = -1 : t === dF.backward && e <= 0 && (e = n.length);
var r = this._getNextSelectableIndex(e, t);
e === r ? t === dF.forward ? e = this._getNextSelectableIndex(-1, t) : t === dF.backward && (e = this._getNextSelectableIndex(n.length, t)) : e = r,
CF(n, e) && this._setPendingInfoFromIndex(e)
}
,
t.prototype._notifyPendingValueChanged = function(e) {
var t = this.props.onPendingValueChanged;
if (t) {
var n = this.props.hoisted.currentOptions
, r = this.state
, i = r.currentPendingValue
, o = r.currentPendingValueValidIndex
, a = r.currentPendingValueValidIndexOnHover
, l = void 0
, s = void 0;
a !== e.currentPendingValueValidIndexOnHover && CF(n, a) ? l = a : o !== e.currentPendingValueValidIndex && CF(n, o) ? l = o : i !== e.currentPendingValue && (s = i),
(void 0 !== l || void 0 !== s || this._hasPendingValue) && (t(void 0 !== l ? n[l] : void 0, l, s),
this._hasPendingValue = void 0 !== l || void 0 !== s)
}
}
,
t.prototype._setOpenStateAndFocusOnClose = function(e, t) {
this._focusInputAfterClose = t,
this.setState({
isOpen: e
})
}
,
t.prototype._onOptionMouseEnter = function(e) {
this._shouldIgnoreMouseEvent() || this.setState({
currentPendingValueValidIndexOnHover: e
})
}
,
t.prototype._onOptionMouseMove = function(e) {
this._gotMouseMove = !0,
this._isScrollIdle && this.state.currentPendingValueValidIndexOnHover !== e && this.setState({
currentPendingValueValidIndexOnHover: e
})
}
,
t.prototype._shouldIgnoreMouseEvent = function() {
return !this._isScrollIdle || !this._gotMouseMove
}
,
t.prototype._handleInputWhenDisabled = function(e) {
this.props.disabled && (this.state.isOpen && this.setState({
isOpen: !1
}),
null !== e && 9 !== e.which && e.which !== Yz && (e.which < 112 || e.which > 123) && (e.stopPropagation(),
e.preventDefault()))
}
,
t.prototype._handleTouchAndPointerEvent = function() {
var e = this;
void 0 !== this._lastTouchTimeoutId && (this._async.clearTimeout(this._lastTouchTimeoutId),
this._lastTouchTimeoutId = void 0),
this._processingTouch = !0,
this._lastTouchTimeoutId = this._async.setTimeout((function() {
e._processingTouch = !1,
e._lastTouchTimeoutId = void 0
}
), 500)
}
,
t.prototype._getCaretButtonStyles = function() {
var e = this.props.caretDownButtonStyles;
return iF(this.props.theme, e)
}
,
t.prototype._getCurrentOptionStyles = function(e) {
var t, n = this.props.comboBoxOptionStyles, r = e.styles, i = rF(this.props.theme, n, r, this._isPendingOption(e), e.hidden, this._isOptionHighlighted(e.index));
return i.__shadowConfig__ = null === (t = this.props.styles) || void 0 === t ? void 0 : t.__shadowConfig__,
i
}
,
t.prototype._getAriaAutoCompleteValue = function() {
return this.props.disabled || "on" !== this.props.autoComplete ? "list" : this.props.allowFreeform ? "inline" : "both"
}
,
t.prototype._isPendingOption = function(e) {
return e && e.index === this.state.currentPendingValueValidIndex
}
,
t.prototype._hasFocus = function() {
return "none" !== this.state.focusState
}
,
t.prototype._adjustForCaseSensitivity = function(e) {
return this.props.caseSensitive ? e : e.toLowerCase()
}
,
t.contextType = eI,
Object(zn.b)([AB("ComboBox", ["theme", "styles"], !0)], t)
}(l.Component);
function jF(e, t) {
if (!e || !t)
return [];
var n = {};
e.forEach((function(e, t) {
e.selected && (n[t] = !0)
}
));
for (var r = function(t) {
var r = function(e, t, n) {
void 0 === n && (n = 0);
for (var r = -1, i = n; e && i < e.length; i++)
if (t(e[i], i)) {
r = i;
break
}
return r
}(e, (function(e) {
return e.key === t
}
));
r > -1 && (n[r] = !0)
}, i = 0, o = t; i < o.length; i++)
r(o[i]);
return Object.keys(n).map(Number).sort()
}
function kF(e) {
return void 0 === e ? [] : e instanceof Array ? e : [e]
}
function wF(e) {
return e || ""
}
function CF(e, t) {
return !!e && t >= 0 && t < e.length
}
function _F(e) {
return e.itemType !== KB.Header && e.itemType !== KB.Divider && e.itemType !== KB.SelectAll
}
function MF(e) {
return e.itemType !== KB.Header && e.itemType !== KB.Divider
}
function SF(e) {
return e.useAriaLabelAsText && e.ariaLabel ? e.ariaLabel : e.text
}
function AF(e) {
return e.which === Kz || "Meta" === e.key
}
!function(e) {
e[e.Parent = 0] = "Parent",
e[e.Self = 1] = "Self"
}(xF || (xF = {}));
var TF, EF = XD(), IF = function(e) {
function t() {
var t = null !== e && e.apply(this, arguments) || this;
return t._onRenderContent = function(e) {
return "string" == typeof e.content ? l.createElement("p", {
className: t._classNames.subText
}, e.content) : l.createElement("div", {
className: t._classNames.subText
}, e.content)
}
,
t
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.className
, n = e.calloutProps
, r = e.directionalHint
, i = e.directionalHintForRTL
, o = e.styles
, a = e.id
, s = e.maxWidth
, c = e.onRenderContent
, u = void 0 === c ? this._onRenderContent : c
, d = e.targetElement
, p = e.theme;
return this._classNames = EF(o, {
theme: p,
className: t || n && n.className,
beakWidth: n && n.isBeakVisible ? n.beakWidth : 0,
gapSpace: n && n.gapSpace,
maxWidth: s
}),
l.createElement(vP, Object(zn.a)({
target: d,
directionalHint: r,
directionalHintForRTL: i
}, n, OD(this.props, xD, ["id"]), {
className: this._classNames.root
}), l.createElement("div", {
className: this._classNames.content,
id: a,
onFocus: this.props.onFocus,
onMouseEnter: this.props.onMouseEnter,
onMouseLeave: this.props.onMouseLeave
}, u(this.props, this._onRenderContent)))
}
,
t.defaultProps = {
directionalHint: 1,
maxWidth: "364px",
calloutProps: {
isBeakVisible: !0,
beakWidth: 16,
gapSpace: 0,
setInitialFocus: !0,
doNotLayer: !1
}
},
t
}(l.Component), NF = yI(IF, (function(e) {
var t = e.className
, n = e.beakWidth
, r = void 0 === n ? 16 : n
, i = e.gapSpace
, o = void 0 === i ? 0 : i
, a = e.maxWidth
, l = e.theme
, s = l.semanticColors
, c = l.fonts
, u = l.effects
, d = -(Math.sqrt(r * r / 2) + o) + 1 / window.devicePixelRatio;
return {
root: ["ms-Tooltip", l.fonts.medium, WN.fadeIn200, {
background: s.menuBackground,
boxShadow: u.elevation8,
padding: "8px",
maxWidth: a,
selectors: {
":after": {
content: "''",
position: "absolute",
bottom: d,
left: d,
right: d,
top: d,
zIndex: 0
}
}
}, t],
content: ["ms-Tooltip-content", c.small, {
position: "relative",
zIndex: 1,
color: s.menuItemText,
wordWrap: "break-word",
overflowWrap: "break-word",
overflow: "hidden"
}],
subText: ["ms-Tooltip-subtext", {
fontSize: "inherit",
fontWeight: "inherit",
color: "inherit",
margin: 0
}]
}
}
), void 0, {
scope: "Tooltip"
});
!function(e) {
e[e.zero = 0] = "zero",
e[e.medium = 1] = "medium",
e[e.long = 2] = "long"
}(TF || (TF = {}));
var zF = XD()
, DF = function(e) {
function t(n) {
var r = e.call(this, n) || this;
return r._tooltipHost = l.createRef(),
r._defaultTooltipId = zw("tooltip"),
r.show = function() {
r._toggleTooltip(!0)
}
,
r.dismiss = function() {
r._hideTooltip()
}
,
r._getTargetElement = function() {
if (r._tooltipHost.current) {
var e = r.props.overflowMode;
if (void 0 !== e)
switch (e) {
case xF.Parent:
return r._tooltipHost.current.parentElement;
case xF.Self:
return r._tooltipHost.current
}
return r._tooltipHost.current
}
}
,
r._onTooltipFocus = function(e) {
r._ignoreNextFocusEvent ? r._ignoreNextFocusEvent = !1 : r._onTooltipMouseEnter(e)
}
,
r._onTooltipContentFocus = function(e) {
t._currentVisibleTooltip && t._currentVisibleTooltip !== r && t._currentVisibleTooltip.dismiss(),
t._currentVisibleTooltip = r,
r._clearDismissTimer(),
r._clearOpenTimer()
}
,
r._onTooltipBlur = function(e) {
var t;
r._ignoreNextFocusEvent = (null === (t = DR(r.context)) || void 0 === t ? void 0 : t.activeElement) === e.target,
r._dismissTimerId = r._async.setTimeout((function() {
r._hideTooltip()
}
), 0)
}
,
r._onTooltipMouseEnter = function(e) {
var n, i = r.props, o = i.overflowMode, a = i.delay, l = DR(r.context);
if (t._currentVisibleTooltip && t._currentVisibleTooltip !== r && t._currentVisibleTooltip.dismiss(),
t._currentVisibleTooltip = r,
void 0 !== o) {
var s = r._getTargetElement();
if (s && !function(e) {
return e.clientWidth < e.scrollWidth
}(n = s) && !function(e) {
return e.clientHeight < e.scrollHeight
}(n))
return
}
if (!e.target || !Xz(e.target, r._getTargetElement(), l))
if (r._clearDismissTimer(),
r._clearOpenTimer(),
a !== TF.zero) {
var c = r._getDelayTime(a);
r._openTimerId = r._async.setTimeout((function() {
r._toggleTooltip(!0)
}
), c)
} else
r._toggleTooltip(!0)
}
,
r._onTooltipMouseLeave = function(e) {
var n = r.props.closeDelay;
r._clearDismissTimer(),
r._clearOpenTimer(),
n ? r._dismissTimerId = r._async.setTimeout((function() {
r._toggleTooltip(!1)
}
), n) : r._toggleTooltip(!1),
t._currentVisibleTooltip === r && (t._currentVisibleTooltip = void 0)
}
,
r._onTooltipKeyDown = function(e) {
(e.which === Yz || e.ctrlKey) && r.state.isTooltipVisible && (r._hideTooltip(),
e.stopPropagation())
}
,
r._clearDismissTimer = function() {
r._async.clearTimeout(r._dismissTimerId)
}
,
r._clearOpenTimer = function() {
r._async.clearTimeout(r._openTimerId)
}
,
r._hideTooltip = function() {
r._clearOpenTimer(),
r._clearDismissTimer(),
r._toggleTooltip(!1)
}
,
r._toggleTooltip = function(e) {
r.state.isTooltipVisible !== e && r.setState({
isTooltipVisible: e
}, (function() {
return r.props.onTooltipToggle && r.props.onTooltipToggle(e)
}
))
}
,
r._getDelayTime = function(e) {
switch (e) {
case TF.medium:
return 300;
case TF.long:
return 500;
default:
return 0
}
}
,
eD(r),
r.state = {
isAriaPlaceholderRendered: !1,
isTooltipVisible: !1
},
r
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.calloutProps
, n = e.children
, r = e.content
, i = e.directionalHint
, o = e.directionalHintForRTL
, a = e.hostClassName
, s = e.id
, c = e.setAriaDescribedBy
, u = void 0 === c || c
, d = e.tooltipProps
, p = e.styles
, h = e.theme;
this._classNames = zF(p, {
theme: h,
className: a
});
var f = this.state.isTooltipVisible
, b = s || this._defaultTooltipId
, g = Object(zn.a)(Object(zn.a)({
id: "".concat(b, "--tooltip"),
content: r,
targetElement: this._getTargetElement(),
directionalHint: i,
directionalHintForRTL: o,
calloutProps: lD({}, t, {
onDismiss: this._hideTooltip,
onFocus: this._onTooltipContentFocus,
onMouseEnter: this._onTooltipMouseEnter,
onMouseLeave: this._onTooltipMouseLeave
}),
onMouseEnter: this._onTooltipMouseEnter,
onMouseLeave: this._onTooltipMouseLeave
}, OD(this.props, xD, ["id"])), d)
, m = (null == d ? void 0 : d.onRenderContent) ? d.onRenderContent(g, (function(e) {
return (null == e ? void 0 : e.content) ? l.createElement(l.Fragment, null, e.content) : null
}
)) : r
, v = f && !!m
, y = u && f && m ? b : void 0;
return l.createElement("div", Object(zn.a)({
className: this._classNames.root,
ref: this._tooltipHost
}, {
onFocusCapture: this._onTooltipFocus
}, {
onBlurCapture: this._onTooltipBlur
}, {
onMouseEnter: this._onTooltipMouseEnter,
onMouseLeave: this._onTooltipMouseLeave,
onKeyDown: this._onTooltipKeyDown,
role: "none",
"aria-describedby": y
}), n, v && l.createElement(NF, Object(zn.a)({}, g)), l.createElement("div", {
hidden: !0,
id: b,
style: qN
}, m))
}
,
t.prototype.componentDidMount = function() {
this._async = new oD(this)
}
,
t.prototype.componentWillUnmount = function() {
t._currentVisibleTooltip && t._currentVisibleTooltip === this && (t._currentVisibleTooltip = void 0),
this._async.dispose()
}
,
t.defaultProps = {
delay: TF.medium
},
t.contextType = eI,
t
}(l.Component)
, LF = {
root: "ms-TooltipHost",
ariaPlaceholder: "ms-TooltipHost-aria-placeholder"
}
, RF = yI(DF, (function(e) {
var t = e.className
, n = e.theme;
return {
root: [tz(LF, n).root, {
display: "inline"
}, t]
}
}
), void 0, {
scope: "TooltipHost"
})
, PF = XD()
, BF = {
of: "of",
divider: "-"
}
, FF = yI(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._handleFirstPage = function() {
n._handleSelectedPage(0)
}
,
n._handleLastPage = function() {
n._handleSelectedPage(n.props.pageCount - 1)
}
,
n._onComboBoxChange = function(e, t, r) {
void 0 !== t && n._handleSelectedPage(r)
}
,
n._handleSelectedPage = function(e) {
var t = n.props
, r = t.selectedPageIndex
, i = t.onPageChange;
e !== r && i && i(e)
}
,
n._handlePreviousPage = function() {
n._handleSelectedPage(n.props.selectedPageIndex - 1)
}
,
n._handleNextPage = function() {
n._handleSelectedPage(n.props.selectedPageIndex + 1)
}
,
n._renderVisibleItemLabel = function(e) {
if (e.onRenderVisibleItemLabel)
return l.createElement("div", {
className: n._classNames.visibleItemLabel
}, e.onRenderVisibleItemLabel(e));
if (e.itemsPerPage && e.totalItemCount) {
var t = e.selectedPageIndex * e.itemsPerPage + 1
, r = Math.min((e.selectedPageIndex + 1) * e.itemsPerPage, e.totalItemCount)
, i = "".concat(t, " ").concat(e.strings.divider, " ").concat(r, " ").concat(e.strings.of, " ").concat(e.totalItemCount);
return l.createElement("div", {
className: n._classNames.visibleItemLabel,
"aria-label": i
}, i)
}
return null
}
,
eD(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.comboBoxAriaLabel
, n = e.firstPageAriaLabel
, r = e.previousPageAriaLabel
, i = e.nextPageAriaLabel
, o = e.lastPageAriaLabel
, a = e.firstPageIconProps
, s = e.previousPageIconProps
, c = e.nextPageIconProps
, u = e.lastPageIconProps
, d = e.pageAriaLabel
, p = e.pageCount
, h = e.selectedPageIndex
, f = e.onRenderVisibleItemLabel
, b = void 0 === f ? this._renderVisibleItemLabel : f
, g = e.format
, m = e.styles
, v = e.theme;
this._classNames = PF(m, {
theme: v,
format: g
});
var y = h > 0
, x = h + 1 < p
, O = 0 !== h
, j = h !== p - 1;
if ("comboBox" === g) {
for (var k = [], w = 0; w < this.props.pageCount; w++)
k.push({
key: "".concat(w),
text: "".concat(w + 1)
});
return l.createElement("div", {
className: this._classNames.root
}, l.createElement(DB, {
iconProps: a,
onClick: this._handleFirstPage,
disabled: !O,
"aria-label": n
}), l.createElement(DB, {
iconProps: s,
onClick: this._handlePreviousPage,
disabled: !y,
"aria-label": r
}), l.createElement(vF, {
ariaLabel: t,
selectedKey: "".concat(h),
options: k,
onChange: this._onComboBoxChange,
styles: {
container: this._classNames.comboBox
}
}), l.createElement(DB, {
iconProps: c,
onClick: this._handleNextPage,
disabled: !x,
"aria-label": i
}), l.createElement(DB, {
iconProps: u,
onClick: this._handleLastPage,
disabled: !j,
"aria-label": o
}))
}
return l.createElement("div", {
className: this._classNames.root
}, l.createElement("div", {
role: "radiogroup"
}, l.createElement(RF, {
content: n,
directionalHint: 5
}, l.createElement(DB, {
iconProps: this.props.firstPageIconProps,
onClick: this._handleFirstPage,
disabled: !O,
"aria-label": n,
styles: {
icon: this._classNames.previousNextPage,
rootDisabled: this._classNames.previousNextPageDisabled
}
})), l.createElement(RF, {
content: r,
directionalHint: 5
}, l.createElement(DB, {
iconProps: this.props.previousPageIconProps,
onClick: this._handlePreviousPage,
disabled: !y,
"aria-label": r,
styles: {
icon: this._classNames.previousNextPage,
rootDisabled: this._classNames.previousNextPageDisabled
}
})), this._pageList(), l.createElement(RF, {
content: i,
directionalHint: 5
}, l.createElement(DB, {
iconProps: this.props.nextPageIconProps,
onClick: this._handleNextPage,
disabled: !x,
"aria-label": i,
styles: {
icon: this._classNames.previousNextPage,
rootDisabled: this._classNames.previousNextPageDisabled
}
})), l.createElement(RF, {
content: "".concat(d ? d + " " : "").concat(p),
directionalHint: 5
}, l.createElement(DB, {
iconProps: this.props.lastPageIconProps,
onClick: this._handleLastPage,
disabled: !j,
"aria-label": o,
styles: {
icon: this._classNames.previousNextPage,
rootDisabled: this._classNames.previousNextPageDisabled
}
}))), b(this.props, this._renderVisibleItemLabel))
}
,
t.prototype._pageElement = function(e) {
var t = this.props
, n = t.pageAriaLabel
, r = t.pageCount
, i = t.selectedPageIndex
, o = t.selectedAriaLabel
, a = t.strings
, s = e === i
, c = n && "".concat(n, " ").concat(e + 1, " ").concat(a.of, " ").concat(r);
return s && (c = c + " " + o),
l.createElement(PB, {
key: e + 1,
page: e + 1,
ariaLabel: c,
selected: s,
onClick: this._handleSelectedPage,
className: this._classNames.pageNumber
})
}
,
t.prototype._pageList = function() {
var e = this.props
, t = e.numberOfPageButton
, n = e.pageCount
, r = e.selectedPageIndex
, i = [];
if (n <= t)
for (var o = 0; o < n; o++)
i.push(this._pageElement(o));
else {
var a = Math.floor((t - 1) / 2)
, l = r - a
, s = r + (t - 1 - a);
for (s > n - 1 ? l = (s = n - 1) - t + 1 : l < 0 && (l = 0,
s = t - 1),
o = l; o <= s; o++)
i.push(this._pageElement(o))
}
return i
}
,
t.defaultProps = {
selectedPageIndex: 0,
format: "comboBox",
numberOfPageButton: 5,
previousPageIconProps: {
iconName: "CaretSolidLeft"
},
nextPageIconProps: {
iconName: "CaretSolidRight"
},
firstPageIconProps: {
iconName: "Previous"
},
lastPageIconProps: {
iconName: "Next"
},
strings: BF
},
t
}(l.Component), (function(e) {
var t = e.theme
, n = e.format
, r = t.palette
, i = tz(Bz, t);
return {
root: [i.root, "buttons" === n && {
listStyle: "none",
display: "flex",
flexDirection: "column",
alignItems: "center"
}],
previousNextPage: [{
color: r.themePrimary
}],
previousNextPageDisabled: [{
cursor: "default",
backgroundColor: "transparent"
}],
pageNumber: [i.pageNumber, {
cursor: "pointer",
border: "none",
backgroundColor: "transparent"
}, {
verticalAlign: "middle",
minWidth: "32px",
minHeight: "32px",
color: r.black,
selectors: {
"&[aria-selected=true]": {
color: r.blue,
cursor: "default",
fontWeight: "bold",
textDecoration: "underline"
},
"&:hover[aria-selected=true]": {
color: r.blue,
backgroundColor: "transparent"
},
":active": {
backgroundColor: "transparent"
}
}
}],
visibleItemLabel: [{
color: r.neutralSecondary
}],
comboBox: {
maxWidth: "70px",
display: "inline-block",
verticalAlign: "middle"
}
}
}
), void 0, {
scope: "Pagination"
})
, VF = n.p + "static/media/android_logo.6ad30f2e.png"
, WF = n.p + "static/media/ios_logo.440b0d23.png"
, qF = window.app_builder.api_url
, HF = "".concat(qF, "app-builder/v1/upgrader")
, UF = Do({
textDisable: {
display: "block",
textAlign: "center",
padding: "30px"
},
textEmpty: {
textAlign: "center"
},
containerPagination: {
marginTop: 20,
alignItems: "end",
"& > div:first-child": {
display: "flex",
alignItems: "center"
}
},
headerTableCenter: {
".ms-DetailsHeader-cellTitle": {
justifyContent: "center !important",
textAlign: "center"
}
},
blockTableCenter: {
alignItems: "center !important"
},
text: {
fontSize: "12px !important",
color: "rgb(133, 137, 168) !important",
display: "flex !important",
flexDirection: "column",
justifyContent: "center"
},
badgeText: {
fontSize: "12px !important",
color: "rgb(133, 137, 168) !important",
fontWeight: 600,
padding: "3px 12px",
backgroundColor: "#f4f4f4",
borderRadius: 4
},
badgeSuccessText: {
fontSize: "12px !important",
color: "white !important",
fontWeight: 600,
padding: "3px 12px",
backgroundColor: "rgb(48,173,98)",
borderRadius: 4
},
badgeButton: {
cursor: "pointer",
display: "flex",
alignItems: "center",
gap: 8,
"& > i": {
fontSize: 10
}
},
logoPlatform: {
height: 20,
objectFit: "contain"
},
toggle: {
margin: 0
}
})
, XF = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
Object(St.a)(this, n),
(r = t.call(this, e))._onColumnClick = function(e, t) {
var n = r.state.columns.slice()
, i = n.filter((function(e) {
return t.key === e.key
}
))[0];
n.forEach((function(e) {
e === i ? (i.isSortedDescending = !i.isSortedDescending,
i.isSorted = !0) : (e.isSorted = !1,
e.isSortedDescending = !0)
}
)),
r.setState({
columns: n,
order: i.isSortedDescending ? "asc" : "desc"
})
}
;
var i = [{
key: "column1",
name: "App name",
fieldName: "title",
minWidth: 100,
maxWidth: 200,
isRowHeader: !0,
isResizable: !0,
isSorted: !0,
isSortedDescending: !0,
sortAscendingAriaLabel: "Sorted A to Z",
sortDescendingAriaLabel: "Sorted Z to A",
onColumnClick: r._onColumnClick,
data: "string",
onRender: function(e) {
var t, n;
return Object(Ip.jsx)("span", {
children: null !== (t = null === (n = e.title) || void 0 === n ? void 0 : n.rendered) && void 0 !== t ? t : ""
})
},
className: UF.text
}, {
key: "column2",
name: "App version",
fieldName: "app_version",
minWidth: 80,
maxWidth: 120,
isResizable: !0,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)("span", {
className: UF.badgeText,
children: e.app_version
})
},
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}, {
key: "column3",
name: "Platform",
fieldName: "platform",
minWidth: 70,
maxWidth: 120,
isResizable: !0,
isCollapsible: !0,
data: "string",
onRender: function(e) {
switch (e.platform) {
case "android":
return Object(Ip.jsx)("img", {
width: 25,
src: VF,
alt: "Android logo",
className: UF.logoPlatform
});
case "ios":
return Object(Ip.jsx)("img", {
src: WF,
alt: "iOS logo",
className: UF.logoPlatform
});
default:
return Object(Ip.jsx)("span", {
children: e.platform
})
}
},
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}, {
key: "column4",
name: "Environment",
fieldName: "envoirment",
minWidth: 100,
maxWidth: 150,
isResizable: !0,
isCollapsible: !0,
data: "string",
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}, {
key: "column5",
name: "Force upgrade?",
fieldName: "forceUpgrade",
minWidth: 120,
maxWidth: 160,
isResizable: !0,
isCollapsible: !0,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(YF, {
item: e,
onCallback: r.onCallback
})
},
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}, {
key: "column6",
name: "Status",
fieldName: "status",
minWidth: 70,
maxWidth: 120,
isResizable: !0,
isCollapsible: !0,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(GF, {
item: e,
onCallback: r.onCallback
})
},
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}, {
key: "column7",
name: "Update date",
fieldName: "updated_date",
minWidth: 120,
maxWidth: 150,
isResizable: !0,
isCollapsible: !0,
data: "string",
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}, {
key: "column8",
name: "Actions",
fieldName: "action",
minWidth: 70,
maxWidth: 100,
isResizable: !0,
isCollapsible: !0,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(KF, {
item: e,
onCallback: r.onCallback
})
},
headerClassName: UF.headerTableCenter,
className: "".concat(UF.text, " ").concat(UF.blockTableCenter)
}];
return r.state = {
columns: i,
data: [],
loading: !1,
length: 0,
page: 0,
order: "asc"
},
r.onCallback = r.onCallback.bind(Object(yT.a)(r)),
r.getUpgraders = r.getUpgraders.bind(Object(yT.a)(r)),
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.getUpgraders(this.state.page + 1)
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
this.state.page === t.page && this.state.order === t.order || this.getUpgraders(this.state.page + 1)
}
}, {
key: "onCallback",
value: function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var r, i, o, a, l;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
r = this.state,
i = r.data,
o = r.page,
e.t0 = t,
e.next = "update" === e.t0 ? 4 : "delete" === e.t0 ? 7 : 10;
break;
case 4:
return a = i.map((function(e) {
return e.id === n.id ? n : e
}
)),
this.setState({
data: a
}),
e.abrupt("break", 10);
case 7:
return l = i.length < 2 ? o - 1 > 0 ? o - 1 : 0 : o,
o !== l ? this.setState({
page: l
}) : this.getUpgraders(l + 1),
e.abrupt("break", 10);
case 10:
case "end":
return e.stop()
}
}
), e, this)
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}()
}, {
key: "getUpgraders",
value: function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t) {
var n, r, i, o;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
this.setState({
loading: !0
}),
n = this.state.order,
e.next = 5,
Cc({
per_page: 10,
page: t,
orderby: "title",
order: n,
status: "any",
"app-builder-decode": !0
}, null);
case 5:
r = e.sent,
i = Number(r.headers["x-wp-total"]),
o = r.data,
this.setState({
loading: !1,
data: o,
length: Number.isInteger(i) ? i : 0
}),
e.next = 14;
break;
case 11:
e.prev = 11,
e.t0 = e.catch(0),
this.setState({
loading: !1
});
case 14:
case "end":
return e.stop()
}
}
), e, this, [[0, 11]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "render",
value: function() {
var e = this
, t = this.state
, n = t.columns
, r = t.data
, i = t.loading
, o = t.length
, a = t.page
, l = OT()(o / 10);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(Ep, {
block: !0,
children: [Object(Ip.jsx)("strong", {
children: "Appcast:"
}), " ", Object(Ip.jsx)("a", {
href: HF,
target: "_blank",
children: HF
})]
}), Object(Ip.jsx)(KE, {
items: r,
columns: n,
selectionMode: MT.none,
getKey: this._getKey,
setKey: "none",
layoutMode: mT.justified,
isHeaderVisible: !0
}), i && r.length < 1 && Object(Ip.jsx)(tT, {
size: GA.large
}), !i && r.length < 1 && Object(Ip.jsx)(Ep, {
block: !0,
className: UF.textEmpty,
children: "No upgraders"
}), l > 1 && Object(Ip.jsx)(FF, {
selectedPageIndex: a,
pageCount: l,
itemsPerPage: 10,
totalItemCount: o,
format: "buttons",
previousPageAriaLabel: "previous page",
nextPageAriaLabel: "next page",
firstPageAriaLabel: "first page",
lastPageAriaLabel: "last page",
pageAriaLabel: "page",
selectedAriaLabel: "selected",
onPageChange: function(t) {
a !== t && e.setState({
page: t
})
},
styles: {
root: UF.containerPagination,
visibleItemLabel: {
display: "none"
}
}
})]
})
}
}, {
key: "_getKey",
value: function(e) {
return "".concat(e.id)
}
}]),
n
}(l.Component);
function GF(e) {
var t = e.item
, n = e.onCallback
, r = l.useRef(null)
, i = l.useState(!1)
, o = Object(ss.a)(i, 2)
, a = o[0]
, s = o[1]
, c = l.useState(!1)
, u = Object(ss.a)(c, 2)
, d = u[0]
, p = u[1]
, h = l.useCallback((function(e) {
e.preventDefault(),
s(!0)
}
), [])
, f = l.useCallback((function() {
return s(!1)
}
), [])
, b = l.useMemo((function() {
return "draft" === t.status || "pending" === t.status ? t.status : "publish"
}
), [t])
, g = l.useCallback(function() {
var e = Object(Mt.a)(Nt.a.mark((function e(r) {
var i;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (r === b) {
e.next = 15;
break
}
return e.prev = 1,
p(!0),
e.next = 5,
Sc(t.id, {
status: r
});
case 5:
i = e.sent,
n("update", i),
Pp.success("Update status successfully."),
p(!1),
e.next = 15;
break;
case 11:
e.prev = 11,
e.t0 = e.catch(1),
Pp.error(e.t0.message),
p(!1);
case 15:
case "end":
return e.stop()
}
}
), e, null, [[1, 11]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}(), [b, t, n])
, m = ""
, v = UF.badgeButton;
switch (b) {
case "draft":
m = "Draft",
v = v + " " + UF.badgeText;
break;
case "pending":
m = "Pending",
v = v + " " + UF.badgeText;
break;
default:
m = "Publish",
v = v + " " + UF.badgeSuccessText
}
return d ? Object(Ip.jsx)(tT, {
size: GA.small
}) : Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("a", {
className: v,
ref: r,
onClick: h,
children: [m, " ", Object(Ip.jsx)(lp, {
iconName: "ChevronDown"
})]
}), Object(Ip.jsx)(GO, {
items: [{
key: "publish",
text: "Publish",
onClick: function() {
g("publish")
},
canCheck: !0,
checked: "publish" === b,
inactive: !1
}, {
key: "draft",
text: "Draft",
onClick: function() {
g("draft")
},
canCheck: !0,
checked: "draft" === b
}, {
key: "pending",
text: "Pending",
onClick: function() {
g("pending")
},
canCheck: !0,
checked: "pending" === b
}],
hidden: !a,
target: r,
onItemClick: f,
onDismiss: f
})]
})
}
function KF(e) {
var t = e.item
, n = e.onCallback
, r = kn()
, i = l.useState(!1)
, o = Object(ss.a)(i, 2)
, a = o[0]
, s = o[1]
, c = l.useMemo((function() {
return t.id
}
), [t])
, u = l.useCallback(Object(Mt.a)(Nt.a.mark((function e() {
var t;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
s(!0),
e.next = 4,
Ac(c);
case 4:
t = e.sent,
n("delete", t),
Pp.success("Delete upgrader successfully."),
s(!1),
e.next = 14;
break;
case 10:
e.prev = 10,
e.t0 = e.catch(0),
Pp.error(e.t0.message),
s(!1);
case 14:
case "end":
return e.stop()
}
}
), e, null, [[0, 10]])
}
))), [c, n])
, d = {
shouldFocusOnMount: !0,
items: [{
key: "edit",
iconProps: {
iconName: "Edit"
},
text: "Edit",
onClick: l.useCallback((function() {
r.push("/features/form?key=app_builder_upgrader_settings&id=".concat(c))
}
), [c, r])
}, {
key: "delete",
onClick: function() {
u()
},
iconProps: {
iconName: "Delete",
style: {
color: "salmon"
}
},
text: "Delete",
title: "Delete"
}]
};
return a ? Object(Ip.jsx)(tT, {}) : Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "MoreVertical"
},
title: "MoreVertical",
ariaLabel: "MoreVertical",
menuProps: d,
onRenderMenuIcon: function() {
return Object(Ip.jsx)("div", {})
}
})
}
function YF(e) {
var t = e.item
, n = e.onCallback
, r = l.useState(!1)
, i = Object(ss.a)(r, 2)
, o = i[0]
, a = i[1]
, s = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(r, i) {
var l;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (o) {
e.next = 15;
break
}
return e.prev = 1,
a(!0),
e.next = 5,
Sc(t.id, {
force_upgrade: !0 === i ? "1" : "0"
});
case 5:
l = e.sent,
n("update", l),
Pp.success("Update force upgrade successfully."),
a(!1),
e.next = 15;
break;
case 11:
e.prev = 11,
e.t0 = e.catch(1),
Pp.error(e.t0.message),
a(!1);
case 15:
case "end":
return e.stop()
}
}
), e, null, [[1, 11]])
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}();
return Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
tokens: {
childrenGap: 8
},
children: [Object(Ip.jsx)(TA, {
checked: "1" === t.force_upgrade,
onChange: s,
styles: {
root: UF.toggle
}
}), o && Object(Ip.jsx)(tT, {})]
})
}
function QF() {
var e = Ca(Tb);
return l.useMemo((function() {
var t, n;
return null !== (t = null == e || null === (n = e.app_builder_upgrader_settings) || void 0 === n ? void 0 : n.status) && void 0 !== t && t
}
), [e]) ? Object(Ip.jsx)(XF, {}) : Object(Ip.jsxs)("span", {
className: UF.textDisable,
children: ["Upgraders is being disabled. Please ", Object(Ip.jsx)("b", {
children: "Enable"
}), " it in ", Object(Ip.jsx)("b", {
children: "Settings"
})]
})
}
var JF, ZF, $F, eV, tV, nV, rV, iV, oV, aV, lV, sV, cV, uV = n(72), dV = n.n(uV), pV = function(e, t) {
var n = null != e ? e : new Date;
return dV()(n).format(t)
}, hV = function(e, t) {
if ("" !== e)
return dV()(e, t).toDate()
}, fV = ["id"], bV = Mu.b.div(JF || (JF = _u(["\n padding: 20px 0px;\n text-align: center;\n"]))), gV = Mu.b.form(ZF || (ZF = _u(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"]))), mV = Mu.b.div($F || ($F = _u(["\n padding: 0 0 5px 0;\n"]))), vV = function(e, t) {
if (!e) {
if ("" === t)
return "Fill field.";
if (!function(e) {
return !!e && /^(?:(?:http|https|ftp):\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=%]+$/i.test(e)
}(t))
return "Invalid url."
}
}, yV = function(e) {
var t = hV(e, "MMM DD, YYYY");
return t ? pV(t, "YYYY-MM-DD") : ""
};
function xV() {
var e = wn().search
, t = new URLSearchParams(e).get("id")
, n = s.a.useState(void 0)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1]
, a = s.a.useState(!!t)
, l = Object(ss.a)(a, 2)
, c = l[0]
, u = l[1]
, d = s.a.useState(void 0)
, p = Object(ss.a)(d, 2)
, h = p[0]
, f = p[1];
return s.a.useEffect((function() {
function e() {
return (e = Object(Mt.a)(Nt.a.mark((function e() {
var n, r, i, a, l;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
_c(t);
case 3:
l = e.sent,
o(_t(_t({}, l), {}, {
title: null !== (n = null == l || null === (r = l.title) || void 0 === r ? void 0 : r.rendered) && void 0 !== n ? n : "",
content: null !== (i = null == l || null === (a = l.content) || void 0 === a ? void 0 : a.rendered) && void 0 !== i ? i : ""
})),
u(!1),
e.next = 12;
break;
case 8:
e.prev = 8,
e.t0 = e.catch(0),
f(e.t0.message),
u(!1);
case 12:
case "end":
return e.stop()
}
}
), e, null, [[0, 8]])
}
)))).apply(this, arguments)
}
return t && function() {
e.apply(this, arguments)
}(),
function() {}
}
), [t]),
c ? Object(Ip.jsx)(bV, {
children: Object(Ip.jsx)(tT, {
size: GA.large
})
}) : !c && h && "" !== h ? Object(Ip.jsx)(bV, {
children: Object(Ip.jsx)(Ep, {
block: !0,
children: h
})
}) : Object(Ip.jsx)(OV, {
data: i
})
}
function OV(e) {
var t, n, r, i, o = e.data, a = s.a.useState(_t({
platform: "android",
envoirment: "production",
status: "draft",
force_upgrade: "0",
sync: "0"
}, null != o ? o : {})), l = Object(ss.a)(a, 2), c = l[0], u = l[1], d = s.a.useState(void 0), p = Object(ss.a)(d, 2), h = p[0], f = p[1], b = s.a.useState(void 0), g = Object(ss.a)(b, 2), m = g[0], v = g[1], y = s.a.useState(!1), x = Object(ss.a)(y, 2), O = x[0], j = x[1], k = s.a.useCallback((function(e, t) {
u(_t(_t({}, c), {}, Object(wt.a)({}, e, t)))
}
), [c]), w = s.a.useMemo((function() {
return "1" === c.sync
}
), [c]), C = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t) {
var n, r, i, o, a, l;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t.preventDefault(),
O) {
e.next = 25;
break
}
if (s = null !== (n = null == c ? void 0 : c.app_version) && void 0 !== n ? n : "",
i = "" === s ? "Fill field." : function(e) {
if (!e)
return !1;
var t = e.split(".");
return 3 === t.length && !!/^[1-9][0-9]*$/.test(t[0]) && !!/^[0-9]+$/.test(t[1]) && /^[0-9]+$/.test(t[2])
}(s) ? void 0 : "Invalid version.",
o = vV(w, null !== (r = null == c ? void 0 : c.url_download) && void 0 !== r ? r : ""),
f(i),
v(o),
i || o) {
e.next = 25;
break
}
if (e.prev = 7,
j(!0),
a = c.id,
l = Su(c, fV),
!a) {
e.next = 15;
break
}
return e.next = 13,
Sc(a, _t({}, l));
case 13:
e.next = 17;
break;
case 15:
return e.next = 17,
Mc(_t({}, l));
case 17:
Pp.success("Save successfully."),
j(!1),
e.next = 25;
break;
case 21:
e.prev = 21,
e.t0 = e.catch(7),
Pp.error(e.t0.message),
j(!1);
case 25:
case "end":
return e.stop()
}
var s
}
), e, null, [[7, 21]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}();
return Object(Ip.jsxs)(gV, {
onSubmit: C,
children: [Object(Ip.jsx)(jV, {
label: "Title",
children: Object(Ip.jsx)(jk, {
value: null !== (t = null == c ? void 0 : c.title) && void 0 !== t ? t : "",
onChange: function(e, t) {
return k("title", null != t ? t : "")
}
})
}), Object(Ip.jsx)(jV, {
label: "Changelog",
children: Object(Ip.jsx)(jk, {
value: null !== (n = null == c ? void 0 : c.content) && void 0 !== n ? n : "",
onChange: function(e, t) {
return k("content", null != t ? t : "")
},
multiline: !0,
rows: 10
})
}), Object(Ip.jsx)(jV, {
label: "App Version",
children: Object(Ip.jsx)(jk, {
value: null !== (r = null == c ? void 0 : c.app_version) && void 0 !== r ? r : "",
onChange: function(e, t) {
return k("app_version", null != t ? t : "")
},
placeholder: "1.0.0",
errorMessage: h
})
}), Object(Ip.jsx)(jV, {
label: "Platform",
children: Object(Ip.jsx)(pM, {
selectedKey: null == c ? void 0 : c.platform,
options: [{
key: "android",
text: "Android"
}, {
key: "ios",
text: "iOS"
}],
onChange: function(e, t, n) {
var r;
return k("platform", null !== (r = null == t ? void 0 : t.key) && void 0 !== r ? r : "android")
}
})
}), Object(Ip.jsx)(jV, {
label: "Environment",
children: Object(Ip.jsx)(pM, {
selectedKey: null == c ? void 0 : c.envoirment,
options: [{
key: "production",
text: "Production"
}],
onChange: function(e, t, n) {
var r;
return k("envoirment", null !== (r = null == t ? void 0 : t.key) && void 0 !== r ? r : "production")
}
})
}), Object(Ip.jsx)($_, {
checked: "1" === (null == c ? void 0 : c.force_upgrade),
onRenderLabel: function() {
return Object(Ip.jsx)(qA, {
label: "Force upgrade?"
})
},
onChange: function(e, t) {
return k("force_upgrade", !0 === t ? "1" : "0")
}
}), Object(Ip.jsx)(jV, {
label: "Update date",
children: Object(Ip.jsx)(jk, {
value: yV(null !== (i = null == c ? void 0 : c.updated_date) && void 0 !== i ? i : ""),
type: "date",
onChange: function(e, t) {
k("updated_date", function(e) {
var t = hV(e, "YYYY-MM-DD");
return t ? pV(t, "MMM DD, YYYY") : ""
}(null != t ? t : ""))
}
})
}), !w && Object(Ip.jsx)(jV, {
label: "Url download",
children: Object(Ip.jsx)(jk, {
value: null == c ? void 0 : c.url_download,
onChange: function(e, t) {
return k("url_download", null != t ? t : "")
},
errorMessage: m
})
}), Object(Ip.jsx)(jV, {
label: "Status",
children: Object(Ip.jsx)(pM, {
selectedKey: null == c ? void 0 : c.status,
options: [{
key: "publish",
text: "Publish"
}, {
key: "draft",
text: "Draft"
}, {
key: "pending",
text: "Pending"
}],
onChange: function(e, t, n) {
var r;
return k("status", null !== (r = null == t ? void 0 : t.key) && void 0 !== r ? r : "draft")
}
})
}), Object(Ip.jsx)(yj, {
horizontal: !0,
horizontalAlign: "end",
children: Object(Ip.jsx)(zk, {
type: "submit",
className: O ? "progress" : "",
typebtn: "primary",
onClick: C,
children: "Save"
})
})]
})
}
function jV(e) {
var t = e.label
, n = e.info
, r = e.children;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(mV, {
children: Object(Ip.jsx)(qA, {
label: t,
info: n
})
}), r]
})
}
var kV, wV = Mu.b.div(eV || (eV = _u(["\n display: flex;\n flex-direction: column;\n gap: 20px;\n"]))), CV = Mu.b.div(tV || (tV = _u(["\n border: 1px solid rgba(126, 130, 164, 0.2);\n background: #fff;\n margin-top: -1px;\n"]))), _V = Mu.b.a(nV || (nV = _u(["\n padding: 14px 16px;\n display: flex;\n align-items: center;\n cursor: pointer;\n gap: 18px;\n"]))), MV = Mu.b.span(rV || (rV = _u(["\n font-weight: bold;\n display: block;\n flex: 1;\n"]))), SV = Object(Mu.b)(Pg)(iV || (iV = _u(["\n font-size: 12px;\n"]))), AV = Mu.b.div(oV || (oV = _u(["\n border-top: 1px solid rgba(126, 130, 164, 0.2);\n padding: 16px;\n padding-top: 20px;\n display: flex;\n flex-direction: column;\n gap: 12px;\n"]))), TV = Mu.b.div(aV || (aV = _u(["\n padding: 0 0 5px 0;\n"]))), EV = Object(Mu.b)(TV)(lV || (lV = _u(["\n display: flex;\n align-items: center;\n & *:first-child {\n flex: 1;\n }\n"]))), IV = Object(Mu.b)(TA)(sV || (sV = _u(["\n margin-bottom: 0;\n"]))), NV = Mu.b.div(cV || (cV = _u(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"])));
function zV(e) {
var t = e.field
, n = e.value
, r = e.onChange
, i = "string" == typeof (null == t ? void 0 : t.type) ? t.type : "text"
, o = "string" == typeof (null == t ? void 0 : t.name) ? t.name : ""
, a = "string" == typeof (null == t ? void 0 : t.label) ? t.label : ""
, l = "string" == typeof (null == t ? void 0 : t.placeholder) ? t.placeholder : ""
, s = "string" == typeof (null == t ? void 0 : t.hint) ? t.hint : "";
if ("switch" === i)
return Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
verticalAlign: "center",
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
children: Object(Ip.jsx)(qA, {
label: a,
info: s
})
}), Object(Ip.jsx)(IV, {
checked: "boolean" == typeof n && n,
onChange: function(e, t) {
return r(o, null != t && t)
}
})]
});
var c = "bundle_id" === o || "application_id" === o ? Object(Ip.jsxs)(EV, {
children: [Object(Ip.jsx)(qA, {
label: a,
info: s
}), "bundle_id" === o ? Object(Ip.jsx)(oT, {
onSelectBundleId: function(e) {
return r(o, null != e ? e : "")
}
}) : Object(Ip.jsx)(hT, {})]
}) : Object(Ip.jsx)(TV, {
children: Object(Ip.jsx)(qA, {
label: a,
info: s
})
});
switch (i) {
case "textarea":
return Object(Ip.jsxs)("div", {
children: [c, Object(Ip.jsx)(jk, {
name: o,
placeholder: l,
value: "string" == typeof n ? n : "",
onChange: function(e, t) {
return r(o, null != t ? t : "")
},
multiline: !0,
rows: 5
})]
});
case "number":
return Object(Ip.jsxs)("div", {
children: [c, Object(Ip.jsx)(jk, {
type: "number",
placeholder: l,
min: 1,
value: "number" == typeof n ? "".concat(n) : "",
onChange: function(e, t) {
var n = null != t ? t : "";
"" === n ? r(o, void 0) : n.length < 6 && r(o, Number(n))
},
onKeyDown: function(e) {
"Backspace" === e.key || /[0-9]/.test(e.key) || e.preventDefault()
}
})]
});
case "select":
var u = Array.isArray(null == t ? void 0 : t.options) ? null == t ? void 0 : t.options.map((function(e) {
var t, n;
return {
key: null !== (t = null == e ? void 0 : e.value) && void 0 !== t ? t : "",
text: null !== (n = null == e ? void 0 : e.label) && void 0 !== n ? n : ""
}
}
)) : [];
return Object(Ip.jsxs)("div", {
children: [c, Object(Ip.jsx)(pM, {
selectedKey: "string" == typeof n ? n : "",
onChange: function(e, t, n) {
var i;
return r(o, "".concat(null !== (i = null == t ? void 0 : t.key) && void 0 !== i ? i : ""))
},
placeholder: l,
options: u
})]
});
case "list_upgrader":
return Object(Ip.jsx)(QF, {});
case "form_upgrader":
return Object(Ip.jsx)(xV, {});
default:
return Object(Ip.jsxs)("div", {
children: [c, Object(Ip.jsx)(jk, {
name: o,
placeholder: l,
value: "string" == typeof n ? n : "",
onChange: function(e, t) {
return r(o, null != t ? t : "")
}
})]
})
}
}
function DV(e) {
var t, n = e.item, r = e.data, i = e.onChange, o = e.defaultShow, a = s.a.useState(null == o || o), l = Object(ss.a)(a, 2), c = l[0], u = l[1], d = s.a.useCallback((function() {
return u((function(e) {
return !e
}
))
}
), []), p = n && null != n && n.title ? n.title : "", h = n && null != n && n.fields && Array.isArray(null == n ? void 0 : n.fields) ? n.fields : [];
return Boolean(null === (t = null == n ? void 0 : n.show_panel) || void 0 === t || t) ? Object(Ip.jsxs)(CV, {
children: [Object(Ip.jsxs)(_V, {
onClick: d,
children: [Object(Ip.jsx)(MV, {
children: p
}), Object(Ip.jsx)(SV, {
iconName: c ? "ChevronDown" : "ChevronRight"
})]
}), c && Object(Ip.jsx)(AV, {
children: h.map((function(e) {
var t = "string" == typeof (null == e ? void 0 : e.name) ? e.name : "";
return Object(Ip.jsx)(zV, {
field: e,
value: r[t],
onChange: i
}, t)
}
))
})]
}) : Object(Ip.jsx)(NV, {
children: h.map((function(e) {
var t = "string" == typeof (null == e ? void 0 : e.name) ? e.name : "";
return Object(Ip.jsx)(zV, {
field: e,
value: r[t],
onChange: i
}, t)
}
))
})
}
function LV(e) {
var t = e.groups
, n = e.data
, r = e.onChange;
return Object(Ip.jsx)(wV, {
children: t.map((function(e, t) {
return Object(Ip.jsx)(DV, {
item: e,
data: n,
onChange: r
}, t)
}
))
})
}
var RV, PV, BV, FV, VV, WV, qV, HV, UV = Mu.b.div(kV || (kV = _u(["\n text-align: right;\n margin-top: 20px;\n"])));
function XV(e) {
var t, n = e.keyFeature, r = e.groups, i = ja(), o = Ca(Tb), a = s.a.useState(function(e, t) {
var n = {};
if (!Rt()(e) && !Rt()(t))
for (var r = function() {
var r = o[i];
a = !1;
var l, s = Object(jA.a)(t);
try {
for (s.s(); !(l = s.n()).done; ) {
var c, u, d = (null !== (c = null === (u = l.value) || void 0 === u ? void 0 : u.fields) && void 0 !== c ? c : []).find((function(e) {
return e.name === r
}
));
if (d && CA.includes(d.type)) {
a = !0;
break
}
}
} catch (e) {
s.e(e)
} finally {
s.f()
}
a && (n[r] = e[r])
}, i = 0, o = Object.keys(e); i < o.length; i++) {
var a;
r()
}
return n
}(null !== (t = o[n]) && void 0 !== t ? t : {}, r)), l = Object(ss.a)(a, 2), c = l[0], u = l[1], d = s.a.useState(!1), p = Object(ss.a)(d, 2), h = p[0], f = p[1], b = s.a.useCallback((function(e, t) {
var n = Il(c, (function(n) {
n[e] = t
}
));
u(n)
}
), [c]), g = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t) {
var r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (t.preventDefault(),
h) {
e.next = 15;
break
}
return e.prev = 2,
f(!0),
e.next = 6,
Tc(Object(wt.a)({}, n, c));
case 6:
i(Ab({
key: n,
data: _t(_t({}, null !== (r = o[n]) && void 0 !== r ? r : {}), c)
})),
Pp.success("Save successfully."),
f(!1),
e.next = 15;
break;
case 11:
e.prev = 11,
e.t0 = e.catch(2),
Pp.error(e.t0.message),
f(!1);
case 15:
case "end":
return e.stop()
}
}
), e, null, [[2, 11]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}();
return wA()(r, (function(e) {
var t, n;
return !!Rt()(null !== (t = e.fields) && void 0 !== t ? t : []) || wA()(null !== (n = e.fields) && void 0 !== n ? n : [], (function(e) {
return CA.includes(e.type)
}
))
}
)) ? Object(Ip.jsxs)("form", {
onSubmit: g,
children: [Object(Ip.jsx)(LV, {
groups: r,
data: c,
onChange: b
}), Object(Ip.jsx)(UV, {
children: Object(Ip.jsx)(zk, {
type: "submit",
className: h ? "progress" : "",
typebtn: "primary",
onClick: g,
children: "Save"
})
})]
}) : Object(Ip.jsx)(LV, {
groups: r,
data: c,
onChange: b
})
}
var GV = null === (RV = window.app_builder_settings) || void 0 === RV ? void 0 : RV.features
, KV = {
app_builder_upgrader_settings: "Upgrader",
app_builder_custom_icon_settings: "Custom Icons"
}
, YV = Do({
contentLeft: {
flex: 1,
margin: 0,
padding: 0
},
linkBreadcrumb: {
textDecoration: "none"
}
})
, QV = Mu.b.div(PV || (PV = _u(["\n margin: 0px auto;\n max-width: 1366px;\n padding: 40px 30px;\n width: 100%;\n display: flex;\n flex-direction: row;\n gap: 30px;\n @media (max-width: 768px) {\n flex-direction: column;\n }\n"])))
, JV = Mu.b.ul(BV || (BV = _u(["\n list-style: none;\n padding: 0;\n margin: 0;\n @media (min-width: 768px) {\n flex: 0 0 250px;\n }\n"])))
, ZV = Mu.b.div(FV || (FV = _u(["\n @media (min-width: 768px) {\n flex: 1;\n flex-grow: 1;\n width: calc(100% - 280px);\n }\n"])))
, $V = Object(Mu.b)(Tn)(VV || (VV = _u(["\n display: block;\n cursor: pointer;\n padding: 8px 15px;\n border-left: 2px solid transparent;\n text-decoration: none;\n color: rgb(33, 36, 61);\n &.active {\n border-left-color: rgb(48, 173, 98);\n font-weight: 700;\n }\n &.active:hover {\n background-color: #f4f4f4;\n }\n :not(.active):hover {\n background-color: #f4f4f4;\n font-weight: 600;\n }\n"])))
, eW = Mu.b.div(WV || (WV = _u(["\n display: flex;\n align-items: center;\n margin-bottom: 20px;\n"])))
, tW = Mu.b.div(qV || (qV = _u(["\n margin-left: 12px;\n display: inline-block;\n"])))
, nW = Mu.b.div(HV || (HV = _u(["\n display: flex;\n align-items: center;\n gap: 10px;\n"])));
function rW(e) {
var t = e.item
, n = e.keySelected
, r = null == t ? void 0 : t.key;
return Object(Ip.jsx)("li", {
children: Object(Ip.jsx)($V, {
to: "/features?key=".concat(r),
className: r === n ? "active" : "",
children: t.title
})
})
}
function iW(e) {
if (KV[e])
return KV[e];
var t = e;
return t.startsWith("app_builder_") && (t = t.replace("app_builder_", "")),
t.endsWith("_settings") && (t = t.replace("_settings", "")),
OA()(t.replaceAll("_", " "))
}
function oW(e) {
var t = e.keyFeature
, n = e.page
, r = e.searchParams
, i = kn()
, o = r.get("id");
if (kb()(GV) && !yh()(GV) && !Rt()(GV)) {
var a, l, s = "" !== t && Object.keys(GV).includes(t) ? t : Object.keys(GV)[0], c = Object.keys(GV).map((function(e) {
return {
key: e,
title: iW(e)
}
}
)), u = Cu()(GV, s, []), d = yA()(u, (function(e) {
var t;
return null !== (t = e.page) && void 0 !== t ? t : "index"
}
)), p = "form" === n ? o ? "Edit" : "Add" : "setting" === n ? "Settings" : iW(s), h = "index" !== n ? {
path: "/features?key=".concat(s),
label: iW(s)
} : void 0, f = "index" !== n || Rt()(null !== (a = d.form) && void 0 !== a ? a : []) ? void 0 : Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "Add"
},
onClick: function() {
return i.push("/features/form?key=".concat(s))
}
}), b = "index" !== n || Rt()(null !== (l = d.settings) && void 0 !== l ? l : []) ? void 0 : Object(Ip.jsx)(kk, {
onClick: function() {
return i.push("/features/setting?key=".concat(s))
},
children: "Settings"
});
return Object(Ip.jsxs)(QV, {
children: [Object(Ip.jsx)(JV, {
children: c.map((function(e) {
return Object(Ip.jsx)(rW, {
item: e,
keySelected: s
}, e.key)
}
))
}), Object(Ip.jsxs)(ZV, {
children: [Object(Ip.jsx)(aW, {
label: p,
parentRoute: h,
trailing: f,
actions: b
}), !!d[n] && !Rt()(d[n]) && Object(Ip.jsx)(XV, {
keyFeature: s,
groups: d[n]
}, "feature-content-page=".concat(n, "-key=").concat(s).concat(o && !Rt()(o) ? "-id=".concat(o) : ""))]
})]
})
}
return Object(Ip.jsx)("div", {})
}
function aW(e) {
var t = e.label
, n = e.parentRoute
, r = e.trailing
, i = e.actions
, o = {
root: [{
color: Po.palette.neutralPrimaryAlt
}]
}
, a = {
root: [{
display: "flex",
alignItems: "center",
color: Po.palette.themePrimary
}]
};
return Object(Ip.jsxs)(eW, {
children: [n ? Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
className: YV.contentLeft,
children: [Object(Ip.jsx)(Tn, {
to: n.path,
className: YV.linkBreadcrumb,
children: Object(Ip.jsxs)(Ep, {
block: !0,
variant: "medium",
styles: a,
children: [Object(Ip.jsx)(Ek, {
children: Object(Ip.jsx)(lp, {
iconName: "Back"
})
}), " ", " ", n.label]
})
}), Object(Ip.jsx)(yw, {
margin: "0 16px !important",
children: Object(Ip.jsx)(Ep, {
variant: "xSmall",
children: Object(Ip.jsx)(lp, {
iconName: "ChevronRight"
})
})
}), Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
styles: o,
children: t
}), r && Object(Ip.jsx)(tW, {
children: r
})]
}) : Object(Ip.jsxs)(Ep, {
block: !0,
variant: "xLarge",
className: YV.contentLeft,
children: [t, r && Object(Ip.jsx)(tW, {
children: r
})]
}), i && Object(Ip.jsx)(nW, {
children: i
})]
})
}
function lW() {
var e, t = wn().search, n = new URLSearchParams(t), r = null !== (e = n.get("key")) && void 0 !== e ? e : "";
return Object(Ip.jsx)(oW, {
keyFeature: r,
page: "index",
searchParams: n
})
}
function sW() {
var e, t = wn().search, n = new URLSearchParams(t), r = null !== (e = n.get("key")) && void 0 !== e ? e : "";
return Object(Ip.jsx)(oW, {
keyFeature: r,
page: "settings",
searchParams: n
})
}
function cW() {
var e, t = wn().search, n = new URLSearchParams(t), r = null !== (e = n.get("key")) && void 0 !== e ? e : "";
return Object(Ip.jsx)(oW, {
keyFeature: r,
page: "form",
searchParams: n
})
}
var uW = n(133)
, dW = n.n(uW);
function pW(e) {
var t, n = e.item;
return Object(Ip.jsx)(Lg, {
src: "string" == typeof (null == n || null === (t = n.setting) || void 0 === t ? void 0 : t.icon) && "" !== n.setting.icon ? n.setting.icon : Zp.NoImage,
width: 70,
height: 70,
style: {
borderRadius: 16
}
})
}
var hW = Do({
titleText: {
fontWeight: 600,
whiteSpace: "pre-line !important"
},
descriptionText: {
marginTop: "4px !important",
textOverflow: "ellipsis",
wordWrap: "break-word",
overflow: "hidden",
display: "-webkit-box",
WebkitBoxOrient: "vertical",
whiteSpace: "pre-line !important"
}
});
function fW(e) {
var t, n, r, i, o = e.item;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(Ep, {
block: !0,
className: hW.titleText,
children: [Object(Ip.jsx)(QA, {
href: null == o || null === (t = o.setting) || void 0 === t ? void 0 : t.url,
target: "_blank",
children: null == o || null === (n = o.setting) || void 0 === n ? void 0 : n.title
}), " ", Object(Ip.jsxs)(Ep, {
variant: "small",
children: ["By ", null == o || null === (r = o.setting) || void 0 === r ? void 0 : r.author]
})]
}), Object(Ip.jsx)(Ep, {
variant: "small",
className: hW.descriptionText,
style: {
WebkitLineClamp: 2
},
children: null == o || null === (i = o.setting) || void 0 === i ? void 0 : i.description
})]
})
}
function bW(e) {
var t = function(e) {
var t, n;
if ("string" == typeof (null == e || null === (t = e.setting) || void 0 === t ? void 0 : t.category))
return e.setting.category;
if (yh()(null == e || null === (n = e.setting) || void 0 === n ? void 0 : n.category) && Rt()(e.setting.category)) {
var r, i = [], o = Object(jA.a)(e.setting.category);
try {
for (o.s(); !(r = o.n()).done; ) {
var a = r.value;
"string" == typeof a && (i = [].concat(Object(wd.a)(i), [a]))
}
} catch (e) {
o.e(e)
} finally {
o.f()
}
return i.join(", ")
}
return ""
}(e.item);
return "" === t ? Object(Ip.jsx)(Ep, {
variant: "small",
children: "No category"
}) : Object(Ip.jsx)(Ep, {
variant: "small",
styles: {
root: {
whiteSpace: "pre-line",
textAlign: "center"
}
},
children: t
})
}
var gW = Do({
status: {
fontWeight: 500,
display: "inline-block",
padding: "2px 8px",
backgroundColor: Po.palette.neutralLight,
borderRadius: 4
},
statusActive: {
fontWeight: 500,
display: "inline-block",
padding: "2px 8px",
backgroundColor: Po.palette.themePrimary,
color: Po.palette.white,
borderRadius: 4
}
});
function mW(e) {
var t, n, r, i, o = e.item, a = !0 === (null == o || null === (t = o.value) || void 0 === t ? void 0 : t.enable) || 1 === (null == o || null === (n = o.value) || void 0 === n ? void 0 : n.enable) || "true" === (null == o || null === (r = o.value) || void 0 === r ? void 0 : r.enable) || "1" === (null == o || null === (i = o.value) || void 0 === i ? void 0 : i.enable);
return Object(Ip.jsx)(Ep, {
block: !0,
variant: "small",
className: a ? gW.statusActive : gW.status,
children: a ? "Active" : "Inactive"
})
}
var vW = n(294)
, yW = n.n(vW);
function xW(e) {
var t, n, r, i, o = e.item, a = e.onChangeIntegration, l = s.a.useState(!1), c = Object(ss.a)(l, 2), u = c[0], d = c[1], p = !0 === (null == o || null === (t = o.value) || void 0 === t ? void 0 : t.enable) || 1 === (null == o || null === (n = o.value) || void 0 === n ? void 0 : n.enable) || "true" === (null == o || null === (r = o.value) || void 0 === r ? void 0 : r.enable) || "1" === (null == o || null === (i = o.value) || void 0 === i ? void 0 : i.enable), h = function() {
var e = Object(Mt.a)(Nt.a.mark((function e() {
var t, n, r;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (u) {
e.next = 15;
break
}
return e.prev = 1,
d(!0),
n = _t(_t({}, null !== (t = null == o ? void 0 : o.value) && void 0 !== t ? t : {}), {}, {
enable: p ? 0 : 1
}),
e.next = 6,
Xs.post("app-builder/v1/integrations?app-builder-decode=true", {
integrations: Object(wt.a)({}, o.key, n)
});
case 6:
r = _t({}, o),
yW()(r, "value", (function() {
return n
}
)),
a(r),
d(!1),
e.next = 15;
break;
case 12:
e.prev = 12,
e.t0 = e.catch(1),
d(!1);
case 15:
case "end":
return e.stop()
}
}
), e, null, [[1, 12]])
}
)));
return function() {
return e.apply(this, arguments)
}
}();
return Object(Ip.jsx)(aj, {
onClick: h,
children: u ? Object(Ip.jsx)(tT, {
size: GA.small
}) : p ? "Deactivate" : "Activate"
})
}
var OW, jW, kW, wW, CW, _W = Do({
buttonDocument: {
width: 30,
minWidth: "auto"
}
});
function MW(e) {
var t, n = e.item;
return Object(Ip.jsx)(aj, {
as: "a",
iconProps: {
iconName: "ClipboardList"
},
styles: {
root: _W.buttonDocument
},
href: null == n || null === (t = n.setting) || void 0 === t ? void 0 : t.documentation,
target: "_blank"
})
}
var SW, AW, TW, EW, IW = Do({
table: {
maxWidth: "calc(100vw - 48px)"
},
blockTable: {
display: "flex !important",
flexDirection: "column",
justifyContent: "center",
alignItems: "start"
},
blockTableCenter: {
display: "flex !important",
flexDirection: "column",
justifyContent: "center",
alignItems: "center"
},
headerTableCenter: {
".ms-DetailsHeader-cellTitle": {
justifyContent: "center !important",
textAlign: "center"
}
},
dropdownStatus: {
width: 140
}
}), NW = Mu.b.h3(OW || (OW = _u(["\n margin: 0px;\n margin-bottom: 30px;\n"]))), zW = Mu.b.div(jW || (jW = _u(["\n width: 100%;\n max-width: 948px;\n margin: 0 auto;\n padding: 30px 24px;\n"]))), DW = Object(Mu.b)(yj)(kW || (kW = _u([""]))), LW = Mu.b.div(wW || (wW = _u([""]))), RW = Mu.b.div(CW || (CW = _u(["\n display: flex;\n align-items: center;\n ", " {\n flex-grow: 1;\n }\n ", " {\n width: 200px;\n }\n @media (max-width: 500px) {\n display: block;\n ", " {\n width: auto;\n margin-top: 10px;\n }\n }\n"])), DW, LW, LW), PW = function(e, t) {
var n, r, i, o;
if ("all" === t)
return !0;
var a = !0 === (null == e || null === (n = e.value) || void 0 === n ? void 0 : n.enable) || 1 === (null == e || null === (r = e.value) || void 0 === r ? void 0 : r.enable) || "true" === (null == e || null === (i = e.value) || void 0 === i ? void 0 : i.enable) || "1" === (null == e || null === (o = e.value) || void 0 === o ? void 0 : o.enable);
return a && "1" === t || !a && "0" === t
}, BW = function(e, t) {
var n, r, i, o;
if ("" === t)
return !0;
var a = dW()(null !== (n = null == e || null === (r = e.setting) || void 0 === r ? void 0 : r.title) && void 0 !== n ? n : "")
, l = dW()(null !== (i = null == e || null === (o = e.setting) || void 0 === o ? void 0 : o.author) && void 0 !== i ? i : "");
return a.includes(dW()(t)) || l.includes(dW()(t))
}, FW = function() {
var e = ja()
, t = Ca(Db)
, n = s.a.useState("all")
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1]
, a = s.a.useState("")
, l = Object(ss.a)(a, 2)
, c = l[0]
, u = l[1]
, d = [{
key: "column1",
name: "",
fieldName: "image",
minWidth: 50,
maxWidth: 70,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(pW, {
item: e
})
}
}, {
key: "column2",
name: "Title",
fieldName: "title",
minWidth: 100,
maxWidth: 300,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(fW, {
item: e
})
},
className: IW.blockTable
}, {
key: "column3",
name: "Categories",
fieldName: "categories",
minWidth: 70,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(bW, {
item: e
})
},
headerClassName: IW.headerTableCenter,
className: IW.blockTableCenter
}, {
key: "column4",
name: "Status",
fieldName: "status",
minWidth: 70,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(mW, {
item: e
})
},
headerClassName: IW.headerTableCenter,
className: IW.blockTableCenter
}, {
key: "column5",
name: "Integrate",
fieldName: "integrate",
minWidth: 120,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(xW, {
item: e,
onChangeIntegration: p
})
},
headerClassName: IW.headerTableCenter,
className: IW.blockTableCenter
}, {
key: "column6",
name: "Document",
fieldName: "document",
minWidth: 90,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)(MW, {
item: e
})
},
headerClassName: IW.headerTableCenter,
className: IW.blockTableCenter
}]
, p = function(n) {
var r = Il(t, (function(e) {
var t = e.findIndex((function(e) {
return e.key === n.key
}
));
t > -1 && (e[t] = n)
}
));
e(zb(r))
}
, h = s.a.useMemo((function() {
if (t.length < 1)
return [];
var e, n = [], r = Object(jA.a)(t);
try {
for (r.s(); !(e = r.n()).done; ) {
var o = e.value;
PW(o, i) && BW(o, c) && n.push(o)
}
} catch (e) {
r.e(e)
} finally {
r.f()
}
return n
}
), [t, c, i]);
return Object(Ip.jsxs)(zW, {
children: [Object(Ip.jsx)(NW, {
children: "Ingegrations"
}), Object(Ip.jsxs)(RW, {
children: [Object(Ip.jsx)(DW, {
horizontal: !0,
wrap: !0,
children: Object(Ip.jsx)(pM, {
selectedKey: i,
onChange: function(e, t) {
null != t && t.key && o("".concat(t.key))
},
options: [{
key: "all",
text: "Select a status"
}, {
key: "1",
text: "Active"
}, {
key: "0",
text: "Inactive"
}],
styles: {
root: IW.dropdownStatus
}
})
}), Object(Ip.jsx)(LW, {
children: Object(Ip.jsx)(jk, {
placeholder: "Search by title or author",
value: c,
onChange: function(e, t) {
return u(null != t ? t : "")
}
})
})]
}), Object(Ip.jsx)(KE, {
items: h,
columns: d,
selectionMode: MT.none,
getKey: function(e) {
return "".concat(e.key)
},
setKey: "none",
layoutMode: mT.justified,
isHeaderVisible: !0,
styles: {
root: IW.table
}
})]
})
}, VW = (n(507),
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAABICAYAAABrwUllAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABJkSURBVHgB7Z1Pkty2FcY/chRXUknKrROYOkFaJzC1zsIj/6vKyhzJi+w0PoE4J9BondjTWrliW5rRImvRJ1DnBKJuMJZdqYqkIYJHkN0kmyBBEmR3S+9XRamHDRIgm3x4+PAAAAzDMMx4zM+D2fwsmIFhGGZCHEwIGTok7rHM9Z7881JmHy4//fYRGIZhJmAygzd/fCeQuT2AwKxSghhvk9vLLxdLMAzDjMjoBm/+49c+DsR9COG3JF3ATU6WtxcxGIZhRmA0gyebr55svj6QHw87HZjgBL8lp8ujxSUYhmEsYt3glXS6avPVFGrmsr7HMIxlrBo8rU63yk1EEI5f2CO9OEGdF159etb3GIaxhwsLkE43f3L3mfx4VmvshIgcR2p4jjiqfHO5/OzsBq4SuV/Em8fBw4H7XBrSs7SJzDAMM4BBHl67Tie9N4Hj5ednjwrpXxQSxMvPvruRfUeG8p78PtRmyPoewzAD6OXhpYHDj++EEO5z1Bo7aqYmIV6JG7mxa0P2zl7K7QSvEzKAC9SX9j4+lB7fk7tfgWEYpiOdPbxWnQ64kEbrm+XfNsNLmjy8jbQ/BHMcOOes7zEMYwtjg9caT0c6nYvw+adnP2vP0cHgrY75IQik4buvNXwcv8cwjCGtBq+rTmdwrk4GLzuO9T2GYQaj1fDG0On6wvoewzA2qPXwhuh0TfT18DbOw/oewzA9KBk8GzpdE7YM3up8e6Dvpc3xt9fm2gTi7SUb5s5QRTxHP+Js23fo+nOHhGScsZ+h6j2PsIdco3/WOl1yKL26Gsx1uimRhmIhy34hy6fT9wK5P5j/eGd7+h7dVzcJ9AlcKtN1MF2gF+8Z+kP3XD43oOc5wu7hy01W5KmReSq3sCbNgywdsZDbEcaFZK2z7HMst96OyjZxd0Wn60snfe9fQbeJDAaSjQ4JWpLN5j8GPpgpIUMSQBlNKY3Aw+7gQZXLhzLsZPhYl7YEdVrc12h1UqcTN5efLU72oeeT9ETZPD7CVXJTP0zNuYcpSVzfKJ3r8gO9PagSJAPTt4lsG79m36QV9buMfqSFIx+Ag56znWyTA3cOx9mNcquZnU045CnvB+FB6dEmG8kH1PyLK8c/w254enHNPg61soTe4O3ZwP3WCQymLg/dM2HsNczw5wP28qaBjMcCSoMKC/vpmRmiC9oikttp4e9YbidgrGAylpaE/xdS+A930QshwyKN8rnsGHhmMKvydCTu/Y4HcLNlesiQhIW/PQDTyh71fAPVtL2ZbTEYK9QZvIUm5U4F9poFRqc9cdvBqdViGtI7fhpfyEwNGb1iSMeuVDwU+kXl4uasRTYMXqvwL8Ri/uTOi22+nGlgtEjj+Ro7XKSX9RBbYP7T3cP0XtUi9A/wgfsJmG2wKHz2gT3Urhkjapu0FAi7ixNzmk40Ko327a6jQKziCL3hSkCjWHRG7xjMNnha+fsvYN5JGjU8CuyFKz0lNwk1SSbR99p1OgqMFsHy87NbfUeB2KI59k7Eyy/OnkpjHWkO55i87RCDeS+41paAAnvlfyfz74NH+CAV4oONRErf+0p6X1YX3lktCCRSIbnGoFLzUJziFR7uTKxgY+ydE6X/XUmP4kCjFbkuXWuEEZmf/93D27feaodwLpdf/mOJEUl/yze/86T3u/4dr71dZs/Xtnkfm7B0zR7K1z62ZuihHPoz5pC44vWtrqvV4OVkTcQjqd09rB24n2pWqb4X2hi4r3S6dPjMrH64W6rTfbPVpmsdarW2ehKhOlF+l1xIw3imSeWTt9zFgM/P796T5958aZPk5+UXi0ilySoPitpPXntV317+bjR8kMr1aPnFPyO05ik13KRec5SSwiqMYjU+O5Ge+cFVpXyu1DvvLOE6p1teoa6qR7+sSRPI7aPsM7UiIvTDQ3nkRF3IiS+3j7PP9BzY1KKpor0HaDvVYqhrO4Edz9eHul7KV1exRFA6qukzEGD9W5Acsazkdx+b1xfL7ZaxwcvJDNkN7cD9tb7Xa+B+aQKDOsMxcAKDMVFjkrWxd5f4TaRlJq9m/uSouoJbTh6TZ/6QJ4IMmbex303HF0epcRJu8xAqkQ23cpPA6Ld741Jgeqj59iQ1sFfOKZzkK20FQFCAu8gqyu0tzVk0QDHqX3RK42efQwwzeGHh7zqD93EhTQw7Bs+HGgvrtaSj7wMoA0VlO0U/vCw/3yCtn20hVEjORUv64m8RQxk8en7Poc/Pk9tl71XLbOt7+6TTaWmOvbsoeW2O2/Cj2ovJSyuQxH2u7zWuhXrBnw3qiZfHw3HMQ5jyCIDHdx5gWnyUZZoQ7x4h6keS5E3KKNuKrQp6Zx9kW1fouaFwMb8lv2or0IMyWiG64WnyK0LvW3+DR9iYmHOXJhodTEPsnew9XpT3XOmvxV5MnvTCkjP0IffUe3SizH86WnQYZVLlmHr/MQ1UxmJeMcybVftCCNXEKxJBGQcaZkeBzbey7Xq2f1FIS60HMnqmEks+k83MID/6TLaj6kXeRzejR+m97PNldqxX2HxkXrKVdWmNBu7L2jszakVmJvF0+zCBQUvsXVz1SlOxnhYm12EnJu+wo2e3ieuedw496uLZ1ROM7OnRsxai7PXEUC/hu0SAsrGjd8iHuk5dK4n2H0EZojjbR0bPpALzoDy0WSG/oCW/GKoZW8wPqNfh6vCx9tAX2XmoKf6ysK00184aXhMG+l7VqM32TafT0hR7l/fObkI1m6/5jh6yE2wf0uLoIb6JaTmW3uXTvNOlBbqPphWih/LkmUSEzQkF9h0PZWMXQxme2OzwVfpnNefSUfS0kB2/hBkx1DP2vHAO8r5vtBwXZP9Tk/WoJa0dD6+Kgb6nYQ90uhra5r3bbM7mX8hODH0Q8hgxeQsKzMar5Lr0yB36XxtcXsRx5r2HFMrKCyI5dn7veJQnbWkZdBJIOV/T8cgkhQSGm4+ysaOKpYsh2BeqHVkhul9jLLfbhml9bGqhpsYuh96FotHyYDYXYAzlJbYyisEjKvpeW68L9kanq6Mx9m6zOZuTNmtFw4uvYvIsIA2alBtIdqCy5PIA/U+VUzqqprVyEiE6k4RUeS0/Xzx8/tdvX+Z70zKQBJI+Gw3GlrTM8QOxc43Kw7sDGfRii2OB/tokGa3QIF3xWY3Rv3USodwDHhgcE8LQmI9m8FZ84PpGA+kdN8Af9/Sha5z3zlmgiSR52vCtP3wEi/SaX4tbbXGRaeXUZPSkFtjN+EhjJ7XXphRpDKUsW6PRMzP61KQNDTdKGxWO9aCMXl0v5r5CHq9X+HuoNNIWFjNDucMxxDCK5fXRHhhu3Bq0quEVaY2nqzIwfm9btMTeQXoxjTUraVRZ0G/dj9o9Jq+KEKFpcDYZvfmTI18TH0jGh7yGqPVENISuxdit8pRlk4b0CK6jm4vORztkxF6iGx5Ucyks/E36URfdaVf5uPCZriXGMKhFEEH/W1T3D5WjqvefrkfnGETocH3WDV77gkCtbH/hnS40xt5Jz+XA9ec/3EEzQv7AGiOjYvL6GrxLak52OuJKSE9PVxZDD0h0q+HbjP7Nf9/9qNgktkQM5UnQi5SHUeTBqySe7/Zz10yxAo5gB5KlfM13xckW6L7FGEZ+Di/7m67naUNaY6w1aQ3j6U4rO6mwC9SXbD8W1m5srjvSa5U9TW2bcPTnGBKTJ0R3T+Vao3djVo5E/AddadAyxX+TftdvBl1vUZj3sBuTgA6heL9seasvDfOjSkNY2LzCOT191lsweMbz07kbnsrlPsy/p6M59s4ifWPyHKfzw54N5o81X3swOUefcdSuE2u/c9yBOmYrETaDbcfOcypi2KHJsOzNvRrUpO067lUXwDr2+NzRcMRU3mffmLz9aZa9Eb9Ib3ebkNYaZJ/pBW7SjRg9l7D/3Fk7Xy8Pb6xxr7sy/54JmfE+xDT0jcnz0AdHW2MbPXi9fpuD1ewX2yJC+fp2rkXREw/jU7xvF1DBwjY3oxg7EzoZvCnGvdoYnzsJpmvO2qJPTJ4QnV/abLW1meZ8MUz4Uw9j4eh1TMdNYkzDFB7xFLMpx4XPthyDpnLvTUVhbPBMdTpb415Nx+duTd9zJhe2u8fk0QiJrp5h0mBYnQadrUjHhcWVkdWvOCd+6dEJsrtM8azGI+TXdJ6iZuthh2k1eNteR2IX19dQ88s1PACyOU9DqbpusinfNF6139q15sOzlOFxGiLbRTaBaTtBp0qoKbRH9jRPFJrkofyyxi1p++JjfKLCZ1uyi9/wXVG2mmGaa+yFttOiPZ6OdDocTzUUjPQ9WSb5wol7slxhTZLp4veavCAKuu1/T142TAyKXjF56fCsO+Hyi+/CpmTphJ00h13TIuZvhHlA6bV0lpVbbR1MqUTSNHzIcUyN7FD8yt9Vr7L4PHnon4eH8akaIKooh7ynAZrLTR7eJdbNZ8ovwjB82IshXLHh4e3y/HQ7o+81x95FGHTuholB+44tlfekyQNOe9tF6yShi04efCo5uM/mT76uDalJn7MnR6dom4WjZaSKJTyUy7HEZvxaXPhM3msfbczY2x5IhLKxCDFMyzMp92nhc4BhXl4AFQxOEprV93jTw1M63U6vI2G6vgYOUi/UKir2Tni677Uzoxhz9UgavVDrabkuhUtE6I7ygB/fvVAjO1JmpPNBJO3D/14n3cNi0t8huUjXrXAKvaDUQUEdKqLtJZSe+jTPWnXygNOaNBSicpx9zgfndzHGdKyP6Tgp5OdBGa0+vZ0hzLxSankU4xfP0G/Eioe1gfWy/K1Vepsa3i6v91rBQN8bUqvV0xh7p58ZxRQV+Ns4QuIYgxDktYfZdtzUWbAmCQf97k7qER2v8lVxmy2/jfw9X1tdvKYOD8qTKLZkFqh/wfJmW04I8+apj/VU6QtMQ4RyxZjf/y6EWBufuCUt3Ztipeih+4QMdccEsEhLp8V+zE/Xf/69brTH3g1szua8dZpqtA4xeWK4jikrO9OJAOzlK4+/El0qV5I4PMONjC/9hmSAqusgxNAHeNM1FT0/D+0vNBn1MEuXn39sI17kCJuzCJsYIfr+HGVjZ/IMnKJ8j+ZZfibNUr+mbCGGT0RQomGkRULrve781Oo5lfVz6WE+hG1aYu+GN2czaBlHIa9B5wWpnteo9TyQgr8QTu8p12ks7q/CdALI4nFHMs9z9EIau0R0XebzGYYToX3WYzJWAdYvJf1PEtAiO/4llGGk/fSyF9dTjjH9FPIxyrMWEz5UmSOoIGHqnMk7HDwo41TUKOm7WzD31KjZfB1rI+dB3Z8QKr+fsR6NQd99BPWu+pXzUPqOFW07eg/PcQ/x4YGNdRUmI+1p/MANjObf60Nj7N3w5mxONjFoU+fF3DAmbyZ1TGrKXKAzssL7VdzqU+E5fziQnhPJDF2hiUplnmbTutuCri+E2azHl5p0AdRLTYaFvMbcO6oauxjTE6N+yisfyhvLy6xCz8rzz9GxN9G93AE2m88eVLP6HOX7dIqysbvEiMsbuPs6cL+KUWD0G9HjJczO3xZ7Z6s5m5M09k6axuTN055tqb2q5r7BSImVXrv4prd3/7/Ek8cvWmc0Xmea9/zfHLqAuyExlIGiF0uWsdPLFUMZkIVB2tyY9jEaNomzMrR5sDk2yk33VB9NUZ/nIstztGa/k3/QDtxfM3jgfhbb96Kwi0ZT3MAAShMY1LGPCwJ1RBp7uqdezVdk7K6v0n0f0HRVfjr7iiNmqlKTD1o6giJZOo4Tmd6n+Q+ygjkoLXG4RjhS910vqH3zydHHsmV9KPOcI6Ge4XSLZbpl1mx+ui/SSQUPqrfWx7pJSNdBRjuC6tndxevKy5w3XWmjMscoN3Nt4WX5fVLIb4b1oucRJrpXTvGPtElIukN9YK8iQe/AXpsGbx0YrdPqpg2M3iYNBg/pYj1j5NnB4DHMrlDS8PZh4P47tXA3wzCTUttLaxrYK/W9EG+T2xPpLplOl4YT7HRgNMMwu0njBKC7MjFn14lGGYZh6jCaHmpbE3OONdEowzDvJ8bz4U2p77FOxzDMGHRe02JsfY91OoZhxqL3Ij629T3W6RiGGZvByzR20ffwZnMEBOt0DMNMhZV1aY31vWtudZD3jHU6hmGmYtC6tFUM9L2qh8c6nQUcRwSYmqskcq7VT0UvXiXv0qI7zDvEKMOOcgzG55ZhnY5hmBEZ1eARRuNz36NxrwzDbI/RDV5OOlPHB+lyfMF6L+l0giYafbins2UwDLNHTGbwctK59ZS+t5SdHKzTMQzDMAzDMAzDMD35PypFuP6NhbB2AAAAAElFTkSuQmCC"), WW = n(173), qW = n.n(WW), HW = null !== (SW = null === (AW = window) || void 0 === AW || null === (TW = AW.app_builder) || void 0 === TW ? void 0 : TW.roles) && void 0 !== SW ? SW : [Jp], UW = Mu.b.nav(EW || (EW = _u(["\n ul {\n padding: 0;\n\n li {\n list-style: none;\n display: inline-block;\n\n &:not(:last-child) {\n margin-right: 2rem;\n }\n\n a {\n text-decoration: none;\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n }\n }\n }\n"])), (function(e) {
return e.color
}
), (function(e) {
return e.colorHover
}
)), XW = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).toggleHover = function() {
r.setState({
hover: !r.state.hover
})
}
,
r.state = {
hover: !1
},
r
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = yo();
return Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
children: Object(Ip.jsx)(UW, {
color: e.palette.neutralPrimary,
colorHover: e.palette.themePrimary,
onMouseEnter: this.toggleHover,
onMouseLeave: this.toggleHover,
children: Object(Ip.jsxs)("ul", {
children: [Object(Ip.jsx)("li", {
children: Object(Ip.jsx)(Tn, {
to: Rs,
children: Kp
})
}), qW()(HW, Qp) && Object(Ip.jsx)("li", {
children: Object(Ip.jsx)(Tn, {
to: Ts,
children: "Features"
})
}), qW()(HW, Qp) && Object(Ip.jsx)("li", {
children: Object(Ip.jsx)(Tn, {
to: Es,
children: "Integrations"
})
}), qW()(HW, Qp) && Object(Ip.jsx)("li", {
children: Object(Ip.jsx)(Tn, {
to: Ls,
children: Yp
})
}), Object(Ip.jsx)("li", {
children: Object(Ip.jsxs)(Tn, {
to: "/",
children: [" ", Object(Ip.jsx)(aj, {
text: "Exit App",
onClick: function() {
return window.history.back()
}
})]
})
})]
})
})
})
}
}]),
n
}(l.Component), GW = Sg(), KW = {
imageSize: {
width: 32,
height: 32
}
}, YW = function(e) {
var t = hy(Object(zn.a)(Object(zn.a)({}, KW), {
key: e.itemKey
}), e)
, n = t.ariaLabel
, r = t.focused
, i = t.required
, o = t.theme
, a = t.iconProps
, s = t.imageSrc
, c = t.imageSize
, u = t.disabled
, d = t.checked
, p = t.id
, h = t.styles
, f = t.name
, b = Object(zn.d)(t, ["ariaLabel", "focused", "required", "theme", "iconProps", "imageSrc", "imageSize", "disabled", "checked", "id", "styles", "name"])
, g = GW(h, {
theme: o,
hasIcon: !!a,
hasImage: !!s,
checked: d,
disabled: u,
imageIsLarge: !!s && (c.width > 71 || c.height > 71),
imageSize: c,
focused: r
})
, m = rp(b, qd)
, v = m.className
, y = Object(zn.d)(m, ["className"])
, x = function() {
return l.createElement("span", {
id: t.labelId,
className: "ms-ChoiceFieldLabel"
}, t.text)
}
, O = function() {
var e = t.imageAlt
, n = void 0 === e ? "" : e
, r = t.selectedImageSrc
, i = (t.onRenderLabel ? qg(t.onRenderLabel, x) : x)(t);
return l.createElement("label", {
htmlFor: p,
className: g.field
}, s && l.createElement("div", {
className: g.innerField
}, l.createElement("div", {
className: g.imageWrapper
}, l.createElement(Lg, Object(zn.a)({
src: s,
alt: n
}, c))), l.createElement("div", {
className: g.selectedImageWrapper
}, l.createElement(Lg, Object(zn.a)({
src: r,
alt: n
}, c)))), a && l.createElement("div", {
className: g.innerField
}, l.createElement("div", {
className: g.iconWrapper
}, l.createElement(Pg, Object(zn.a)({}, a)))), s || a ? l.createElement("div", {
className: g.labelWrapper
}, i) : i)
}
, j = t.onRenderField
, k = void 0 === j ? O : j;
return l.createElement("div", {
className: g.root
}, l.createElement("div", {
className: g.choiceFieldWrapper
}, l.createElement("input", Object(zn.a)({
"aria-label": n,
id: p,
className: ip(g.input, v),
type: "radio",
name: f,
disabled: u,
checked: d,
required: i
}, y, {
onChange: function(e) {
var n;
null === (n = t.onChange) || void 0 === n || n.call(t, e, t)
},
onFocus: function(e) {
var n;
null === (n = t.onFocus) || void 0 === n || n.call(t, e, t)
},
onBlur: function(e) {
var n;
null === (n = t.onBlur) || void 0 === n || n.call(t, e)
}
})), k(t, O)))
};
YW.displayName = "ChoiceGroupOption";
var QW = {
root: "ms-ChoiceField",
choiceFieldWrapper: "ms-ChoiceField-wrapper",
input: "ms-ChoiceField-input",
field: "ms-ChoiceField-field",
innerField: "ms-ChoiceField-innerField",
imageWrapper: "ms-ChoiceField-imageWrapper",
iconWrapper: "ms-ChoiceField-iconWrapper",
labelWrapper: "ms-ChoiceField-labelWrapper",
checked: "is-checked"
}
, JW = "200ms"
, ZW = "cubic-bezier(.4, 0, .23, 1)";
function $W(e, t) {
var n, r;
return ["is-inFocus", {
selectors: (n = {},
n[".ms-Fabric--isFocusVisible &"] = {
position: "relative",
outline: "transparent",
selectors: {
"::-moz-focus-inner": {
border: 0
},
":after": {
content: '""',
top: -2,
right: -2,
bottom: -2,
left: -2,
pointerEvents: "none",
border: "1px solid " + e,
position: "absolute",
selectors: (r = {},
r[vi] = {
borderColor: "WindowText",
borderWidth: t ? 1 : 2
},
r)
}
}
},
n)
}]
}
function eq(e, t, n) {
return [t, {
paddingBottom: 2,
transitionProperty: "opacity",
transitionDuration: JW,
transitionTimingFunction: "ease",
selectors: {
".ms-Image": {
display: "inline-block",
borderStyle: "none"
}
}
}, (n ? !e : e) && ["is-hidden", {
position: "absolute",
left: 0,
top: 0,
width: "100%",
height: "100%",
overflow: "hidden",
opacity: 0
}]]
}
var tq = jg(YW, (function(e) {
var t, n, r, i, o, a = e.theme, l = e.hasIcon, s = e.hasImage, c = e.checked, u = e.disabled, d = e.imageIsLarge, p = e.focused, h = e.imageSize, f = a.palette, b = a.semanticColors, g = a.fonts, m = Vi(QW, a), v = f.neutralPrimary, y = b.inputBorderHovered, x = b.inputBackgroundChecked, O = f.themeDark, j = b.disabledBodySubtext, k = b.bodyBackground, w = f.neutralSecondary, C = b.inputBackgroundChecked, _ = f.themeDark, M = b.disabledBodySubtext, S = f.neutralDark, A = b.focusBorder, T = b.inputBorderHovered, E = b.inputBackgroundChecked, I = f.themeDark, N = f.neutralLighter, z = {
selectors: {
".ms-ChoiceFieldLabel": {
color: S
},
":before": {
borderColor: c ? O : y
},
":after": [!l && !s && !c && {
content: '""',
transitionProperty: "background-color",
left: 5,
top: 5,
width: 10,
height: 10,
backgroundColor: w
}, c && {
borderColor: _,
background: _
}]
}
}, D = {
borderColor: c ? I : T,
selectors: {
":before": {
opacity: 1,
borderColor: c ? O : y
}
}
}, L = [{
content: '""',
display: "inline-block",
backgroundColor: k,
borderWidth: 1,
borderStyle: "solid",
borderColor: v,
width: 20,
height: 20,
fontWeight: "normal",
position: "absolute",
top: 0,
left: 0,
boxSizing: "border-box",
transitionProperty: "border-color",
transitionDuration: JW,
transitionTimingFunction: ZW,
borderRadius: "50%"
}, u && {
borderColor: j,
selectors: (t = {},
t[vi] = Object(zn.a)({
borderColor: "GrayText",
background: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
}, c && {
borderColor: u ? j : x,
selectors: (n = {},
n[vi] = {
borderColor: "Highlight",
background: "Window",
forcedColorAdjust: "none"
},
n)
}, (l || s) && {
top: 3,
right: 3,
left: "auto",
opacity: c ? 1 : 0
}], R = [{
content: '""',
width: 0,
height: 0,
borderRadius: "50%",
position: "absolute",
left: 10,
right: 0,
transitionProperty: "border-width",
transitionDuration: JW,
transitionTimingFunction: ZW,
boxSizing: "border-box"
}, c && {
borderWidth: 5,
borderStyle: "solid",
borderColor: u ? M : C,
background: C,
left: 5,
top: 5,
width: 10,
height: 10,
selectors: (r = {},
r[vi] = {
borderColor: "Highlight",
forcedColorAdjust: "none"
},
r)
}, c && (l || s) && {
top: 8,
right: 8,
left: "auto"
}];
return {
root: [m.root, a.fonts.medium, {
display: "flex",
alignItems: "center",
boxSizing: "border-box",
color: b.bodyText,
minHeight: 26,
border: "none",
position: "relative",
marginTop: 8,
selectors: {
".ms-ChoiceFieldLabel": {
display: "inline-block"
}
}
}, !l && !s && {
selectors: {
".ms-ChoiceFieldLabel": {
paddingLeft: "26px"
}
}
}, s && "ms-ChoiceField--image", l && "ms-ChoiceField--icon", (l || s) && {
display: "inline-flex",
fontSize: 0,
margin: "0 4px 4px 0",
paddingLeft: 0,
backgroundColor: N,
height: "100%"
}],
choiceFieldWrapper: [m.choiceFieldWrapper, p && $W(A, l || s)],
input: [m.input, {
position: "absolute",
opacity: 0,
top: 0,
right: 0,
width: "100%",
height: "100%",
margin: 0
}, u && "is-disabled"],
field: [m.field, c && m.checked, {
display: "inline-block",
cursor: "pointer",
marginTop: 0,
position: "relative",
verticalAlign: "top",
userSelect: "none",
minHeight: 20,
selectors: {
":hover": !u && z,
":focus": !u && z,
":before": L,
":after": R
}
}, l && "ms-ChoiceField--icon", s && "ms-ChoiceField-field--image", (l || s) && {
boxSizing: "content-box",
cursor: "pointer",
paddingTop: 22,
margin: 0,
textAlign: "center",
transitionProperty: "all",
transitionDuration: JW,
transitionTimingFunction: "ease",
border: "1px solid transparent",
justifyContent: "center",
alignItems: "center",
display: "flex",
flexDirection: "column"
}, c && {
borderColor: E
}, (l || s) && !u && {
selectors: {
":hover": D,
":focus": D
}
}, u && {
cursor: "default",
selectors: {
".ms-ChoiceFieldLabel": {
color: b.disabledBodyText,
selectors: (i = {},
i[vi] = Object(zn.a)({
color: "GrayText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
}
}
}, c && u && {
borderColor: N
}],
innerField: [m.innerField, s && {
height: h.height,
width: h.width
}, (l || s) && {
position: "relative",
display: "inline-block",
paddingLeft: 30,
paddingRight: 30
}, (l || s) && d && {
paddingLeft: 24,
paddingRight: 24
}, (l || s) && u && {
opacity: .25,
selectors: (o = {},
o[vi] = {
color: "GrayText",
opacity: 1
},
o)
}],
imageWrapper: eq(!1, m.imageWrapper, c),
selectedImageWrapper: eq(!0, m.imageWrapper, c),
iconWrapper: [m.iconWrapper, {
fontSize: 32,
lineHeight: 32,
height: 32
}],
labelWrapper: [m.labelWrapper, g.medium, (l || s) && {
display: "block",
position: "relative",
margin: "4px 8px 2px 8px",
height: 32,
lineHeight: 15,
maxWidth: 2 * h.width,
overflow: "hidden",
whiteSpace: "pre-wrap"
}]
}
}
), void 0, {
scope: "ChoiceGroupOption"
})
, nq = Sg()
, rq = function(e, t) {
return t + "-" + e.key
}
, iq = function(e, t) {
return void 0 === t ? void 0 : function(e, t) {
var n = Vb(e, t);
if (!(n < 0))
return e[n]
}(e, (function(e) {
return e.key === t
}
))
}
, oq = function(e, t, n) {
var r = iq(e, t) || e.filter((function(e) {
return !e.disabled
}
))[0]
, i = r && document.getElementById(rq(r, n));
i && (i.focus(),
_i(!0, i))
}
, aq = l.forwardRef((function(e, t) {
var n = e.className
, r = e.theme
, i = e.styles
, o = e.options
, a = void 0 === o ? [] : o
, s = e.label
, c = e.required
, u = e.disabled
, d = e.name
, p = e.defaultSelectedKey
, h = e.componentRef
, f = e.onChange
, b = gO("ChoiceGroup")
, g = gO("ChoiceGroupLabel")
, m = rp(e, np, ["onChange", "className", "required"])
, v = nq(i, {
theme: r,
className: n,
optionsContainIconOrImage: a.some((function(e) {
return !(!e.iconProps && !e.imageSrc)
}
))
})
, y = e.ariaLabelledBy || (s ? g : e["aria-labelledby"])
, x = _C(e.selectedKey, p)
, O = x[0]
, j = x[1]
, k = l.useState()
, w = k[0]
, C = k[1]
, _ = l.useRef(null)
, M = Eg(_, t);
!function(e, t, n, r) {
l.useImperativeHandle(r, (function() {
return {
get checkedOption() {
return iq(e, t)
},
focus: function() {
oq(e, t, n)
}
}
}
), [e, t, n])
}(a, O, b, h),
fg(_);
var S = l.useCallback((function(e, t) {
var n;
t && (C(t.itemKey),
null === (n = t.onFocus) || void 0 === n || n.call(t, e))
}
), [])
, A = l.useCallback((function(e, t) {
var n;
C(void 0),
null === (n = null == t ? void 0 : t.onBlur) || void 0 === n || n.call(t, e)
}
), [])
, T = l.useCallback((function(e, t) {
var n;
t && (j(t.itemKey),
null === (n = t.onChange) || void 0 === n || n.call(t, e),
null == f || f(e, iq(a, t.itemKey)))
}
), [f, a, j])
, E = l.useCallback((function(e) {
(function(e) {
return !(!e.relatedTarget || Yv(e.currentTarget, e.relatedTarget))
}
)(e) && oq(a, O, b)
}
), [a, O, b]);
return l.createElement("div", Object(zn.a)({
className: v.root
}, m, {
ref: M
}), l.createElement("div", Object(zn.a)({
role: "radiogroup"
}, y && {
"aria-labelledby": y
}, {
onFocus: E
}), s && l.createElement(ok, {
className: v.label,
required: c,
id: g,
disabled: u
}, s), l.createElement("div", {
className: v.flexContainer
}, a.map((function(e) {
return l.createElement(tq, Object(zn.a)({
itemKey: e.key
}, e, {
key: e.key,
onBlur: A,
onFocus: S,
onChange: T,
focused: e.key === w,
checked: e.key === O,
disabled: e.disabled || u,
id: rq(e, b),
labelId: e.labelId || g + "-" + e.key,
name: d || b,
required: c
}))
}
)))))
}
));
aq.displayName = "ChoiceGroup";
var lq, sq, cq, uq, dq, pq, hq, fq, bq, gq, mq, vq, yq, xq, Oq = {
root: "ms-ChoiceFieldGroup",
flexContainer: "ms-ChoiceFieldGroup-flexContainer"
}, jq = jg(aq, (function(e) {
var t = e.className
, n = e.optionsContainIconOrImage
, r = e.theme
, i = Vi(Oq, r);
return {
root: [t, i.root, r.fonts.medium, {
display: "block"
}],
flexContainer: [i.flexContainer, n && {
display: "flex",
flexDirection: "row",
flexWrap: "wrap"
}]
}
}
), void 0, {
scope: "ChoiceGroup"
}), kq = [{
key: "tab",
text: "Tab"
}, {
key: "screen",
text: "Screen"
}], wq = {
main: {
maxWidth: 450
}
}, Cq = (ej.normal,
{
type: ej.normal,
title: "Add new screen",
closeButtonAriaLabel: "Close"
}), _q = va((function(e) {
return {
templateActive: ob(e),
changed: e.widget.past.length > 0 || e.widget.future.length > 0,
screenActive: lb(e),
currentWidgetConfig: hu(e)
}
}
), {
updateScreenData: Jf,
selectScreenKey: Zf,
clearHistory: cs.ActionCreators.clearHistory,
restoreScreenData: uu,
selectWidget: Bc,
addScreen: eb,
deleteScreen: tb
})((function(e) {
var t = e.screenActive
, n = e.templateActive
, r = e.addScreen
, i = e.deleteScreen
, o = e.changed
, a = e.clearHistory
, s = e.selectScreenKey
, c = e.restoreScreenData
, u = e.currentWidgetConfig
, d = e.updateScreenData
, p = e.selectWidget
, h = Ck(!0)
, f = Object(ss.a)(h, 2)
, b = f[0]
, g = f[1].toggle
, m = l.useState("")
, v = Object(ss.a)(m, 2)
, y = v[0]
, x = v[1]
, O = l.useState("screen")
, j = Object(ss.a)(O, 2)
, k = j[0]
, w = j[1]
, C = l.useMemo((function() {
return {
isBlocking: !0,
styles: wq
}
}
), [])
, _ = l.useCallback((function() {
y && (r({
name: y,
action: {
type: k,
route: "tab" === k ? "/" : "/custom"
}
}),
g())
}
), [y, k, r, g])
, M = function(e, n) {
e !== t && e && n && (s(e),
c(n),
a(),
o && d({
data: Object.assign({}, u, {
fieldId: void 0
}),
key: t
}),
n.widgetIds && n.widgetIds.length > 0 && p(n.widgetIds[0]))
}
, S = Cu()(n, ["data", "screens"])
, A = Cu()(n, ["data", "settings"])
, T = Cu()(n, ["data", "extraScreens"])
, E = {
items: [{
key: "main_screen",
itemType: Bg.Section,
sectionProps: {
bottomDivider: !0,
title: "Main Screen",
items: S ? Object.keys(S).map((function(e) {
return {
key: "screens_".concat(e),
text: S[e].configs.name,
data: S[e],
onClick: function() {
var t = S[e].widgets ? S[e] : Cu()(Gf, ["screens", e], {});
M("screens_".concat(e), t)
}
}
}
)) : []
}
}, {
key: "setting_screen",
itemType: Bg.Section,
sectionProps: {
title: "Settings",
bottomDivider: !0,
items: A ? Object.keys(A).map((function(e) {
return {
key: "settings_".concat(e),
text: A[e].configs.name,
data: A[e],
onClick: function() {
return M("settings_".concat(e), A[e])
}
}
}
)) : []
}
}, {
key: "extra_screen",
itemType: Bg.Section,
sectionProps: {
title: "Custom Screen",
items: T ? Object.keys(T).map((function(e) {
return {
key: "extraScreens_".concat(e),
text: T[e].configs.name,
split: !0,
onClick: function() {
return M("extraScreens_".concat(e), T[e])
},
subMenuProps: {
directionalHint: 12,
styles: {
container: {
width: 90
}
},
items: [{
key: "extraScreens_".concat(e, "_delete"),
text: "Delete",
iconProps: {
iconName: "Delete"
},
onClick: function() {
return function(e) {
e && (a(),
i({
key: e
}))
}(e)
}
}]
}
}
}
)) : []
}
}, {
key: "actions",
itemType: Bg.Section,
sectionProps: {
topDivider: !0,
items: [{
key: "actions_new_screen",
onClick: function() {
return g()
},
iconProps: {
iconName: "Add"
},
text: "New"
}]
}
}]
}
, I = Dt()(t, "_")
, N = 2 === I.length && n && n.data ? n.data[I[0]][I[1]].configs.name : "Menu";
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(aj, {
text: "".concat(N),
menuProps: E
}), Object(Ip.jsxs)(tk, {
hidden: b,
onDismiss: g,
dialogContentProps: Cq,
modalProps: C,
children: [Object(Ip.jsx)(jk, {
label: "Name",
onChange: function(e, t) {
return x(t || "")
}
}), Object(Ip.jsx)(jq, {
defaultSelectedKey: k,
options: kq,
onChange: function(e, t) {
return w((null == t ? void 0 : t.key) || "screen")
},
label: "Screen Type"
}), Object(Ip.jsx)(Hj, {
children: Object(Ip.jsx)(aj, {
onClick: _,
text: "Save"
})
})]
})]
})
}
)), Mq = {
textDecoration: "none"
}, Sq = {
root: {
height: 70
}
}, Aq = Mu.b.header(lq || (lq = _u(["\n border-bottom: 1px solid transparent;\n border-bottom-color: ", ";\n padding: 0 20px;\n width: 100%;\n"])), (function(e) {
return e.color
}
)), Tq = Mu.b.header(sq || (sq = _u(["\n margin-left: 70px;\n"]))), Eq = {
title: {
height: 28,
lineHeight: 28,
border: "none",
":active": {
border: "none"
},
":focus": {
border: "none"
}
},
dropdown: {
width: "auto",
border: "none",
":focus": {
"::after": {
display: "none"
}
}
}
}, Iq = {
root: {
display: "inline-block",
marginRight: 8
},
image: {}
}, Nq = [{
key: "light",
text: "Light",
data: {
icon: "Lightbulb"
}
}, {
key: "dark",
text: "Dark",
data: {
icon: "DefectSolid"
}
}], zq = {
marginRight: "4px"
}, Dq = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r = e.props.changeLanguage;
null != n && n.key && r(null == n ? void 0 : n.key.toString())
}
,
e.onRenderOption = function(e) {
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(Lg, {
src: e.data.country_flag_url,
styles: Iq
}), Object(Ip.jsx)("span", {
children: e.data.native_name
})]
})
}
,
e.onRenderTitle = function(e) {
var t = e[0];
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(Lg, {
src: t.data.country_flag_url,
styles: Iq
}), Object(Ip.jsx)("span", {
children: t.data.native_name
})]
})
}
,
e._onChangeDarkMode = function(t, n) {
null != n && n.key && e.props.switchDarkMode("dark" === (null == n ? void 0 : n.key.toString()))
}
,
e._onRenderTitleMode = function(e) {
var t = e[0];
return Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [t.data && t.data.icon && Object(Ip.jsx)(Pg, {
style: zq,
iconName: t.data.icon,
"aria-hidden": "true",
title: t.data.icon
}), Object(Ip.jsx)("span", {
children: t.text
})]
})
}
,
e._onRenderOptionMode = function(e) {
return Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [e.data && e.data.icon && Object(Ip.jsx)(Pg, {
style: zq,
iconName: e.data.icon,
"aria-hidden": "true",
title: e.data.icon
}), Object(Ip.jsx)("span", {
children: e.text
})]
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = yo()
, t = this.props
, n = t.location
, r = t.name
, i = t.language
, o = t.languages
, a = t.darkMode
, l = n.pathname === Ds
, s = {
root: [{
color: e.palette.neutralPrimaryAlt
}]
}
, c = {
root: [{
display: "flex",
alignItems: "center",
color: e.palette.themePrimary
}]
};
return Object(Ip.jsx)(Aq, {
color: e.palette.neutralLighter,
children: Object(Ip.jsx)("div", {
className: "ms-Grid w-100",
children: Object(Ip.jsxs)(yj, {
className: "ms-Grid-row",
horizontal: !0,
verticalAlign: "center",
styles: Sq,
children: [Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-xl6 ms-xxl6",
children: Object(Ip.jsx)(yj, {
horizontal: !0,
verticalAlign: "center",
children: l ? Object(Ip.jsx)(Tq, {
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
children: [Object(Ip.jsx)(Tn, {
to: Rs,
style: Mq,
children: Object(Ip.jsxs)(Ep, {
block: !0,
variant: "medium",
styles: c,
children: [Object(Ip.jsx)(Ek, {
children: Object(Ip.jsx)(lp, {
iconName: "Back"
})
}), " Home"]
})
}), Object(Ip.jsx)(yw, {
margin: "0 16px !important",
children: Object(Ip.jsx)(Ep, {
variant: "xSmall",
children: Object(Ip.jsx)(lp, {
iconName: "ChevronRight"
})
})
}), Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
styles: s,
children: r
}), Object(Ip.jsx)(yw, {
margin: "0 16px !important",
children: Object(Ip.jsx)(Ep, {
variant: "xSmall",
children: Object(Ip.jsx)(lp, {
iconName: "ChevronRight"
})
})
}), Object(Ip.jsx)(_q, {})]
})
}) : Object(Ip.jsx)(Tn, {
to: Rs,
children: Object(Ip.jsx)(Lg, {
src: VW,
className: "App-logo",
width: 187,
alt: "App Builder"
})
})
})
}), Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm6 ms-xl6 ms-xxl6",
children: Object(Ip.jsx)(yj, {
horizontal: !0,
verticalAlign: "center",
horizontalAlign: "end",
children: l ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(yw, {
padding: "0 24px 0 0",
children: Object(Ip.jsx)(pM, {
placeholder: "Select theme",
selectedKey: a ? "dark" : "light",
options: Nq,
styles: Eq,
onChange: this._onChangeDarkMode,
onRenderTitle: this._onRenderTitleMode,
onRenderOption: this._onRenderOptionMode
})
}), o.length > 0 && Object(Ip.jsx)(yw, {
padding: "0 24px 0 0",
children: Object(Ip.jsx)(pM, {
onRenderOption: this.onRenderOption,
onRenderTitle: this.onRenderTitle,
placeholder: "Select language",
selectedKey: i,
options: o,
styles: Eq,
onChange: this._onChange
})
})]
}) : Object(Ip.jsx)(XW, {})
})
})]
})
})
})
}
}]),
n
}(l.Component), Lq = On(va((function(e) {
var t, n;
return {
name: null !== (t = null === (n = ob(e)) || void 0 === n ? void 0 : n.name) && void 0 !== t ? t : "",
language: Kc(e),
darkMode: Xc(e),
languages: Yc(e)
}
}
), {
changeLanguage: Vc,
switchDarkMode: Wc
})(Dq)), Rq = window.app_builder.version, Pq = function(e) {
var t = Bb()
, n = Cu()(t, [Bs[0]]);
return Object(Ip.jsx)(Ip.Fragment, {
children: n ? e.children : null
})
}, Bq = function(e) {
var t = Bb()
, n = kn()
, r = Cu()(t, [Bs[0]]);
return s.a.useEffect((function() {
if (!r) {
var e = ["/", "l", "i", "c", "e", "n", "s", "e"].join("");
n.push(e)
}
}
), [r, n]),
Object(Ip.jsx)(Ip.Fragment, {
children: r ? e.children : null
})
}, Fq = function(e) {
return Object(Ip.jsx)(Ip.Fragment, {
children: "5.3.0" === Rq ? e.children : null
})
}, Vq = function(e) {
var t = Bb()
, n = Cu()(t, ["settings", "btn", "save"]);
return Object(Ip.jsx)(Ip.Fragment, {
children: n ? e.children : null
})
}, Wq = {
isBlocking: !1
}, qq = {
type: ej.largeHeader,
title: "Screenshot"
}, Hq = Mu.b.div(cq || (cq = _u(["\n max-width: 395px;\n margin: 15px auto 0;\n padding-left: 70px;\n"]))), Uq = {
root: {}
}, Xq = {
root: {
alignItems: "center",
display: "flex",
justifyContent: "flex-end"
}
}, Gq = {
childrenGap: 5,
padding: "15px 0 20px"
}, Kq = {
root: {
marginRight: 20,
marginBottom: 0
}
}, Yq = va((function(e) {
return {
canUndo: e.widget.past.length > 0,
canRedo: e.widget.future.length > 0,
preview: Uc(e)
}
}
), {
onUndo: cs.ActionCreators.undo,
onRedo: cs.ActionCreators.redo,
switchPreview: Fc
})((function(e) {
var t = e.onUndo
, n = e.onRedo
, r = e.canUndo
, i = e.canRedo
, o = e.saveTemplate
, a = e.switchPreview
, c = e.preview
, u = e.pending
, d = e.updateMedia
, p = e.data
, h = e.savePreset
, f = e.addPresetLoading
, b = Object(l.useState)(!1)
, g = Object(ss.a)(b, 2)
, m = g[0]
, v = g[1]
, y = Object(l.useState)("")
, x = Object(ss.a)(y, 2)
, O = x[0]
, j = x[1]
, k = Ck(!0)
, w = Object(ss.a)(k, 2)
, C = w[0]
, _ = w[1].toggle
, M = function() {
var e = Object(Mt.a)(Nt.a.mark((function e() {
var t;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
v(!0),
e.next = 4,
ps.a.post(Js, p);
case 4:
t = e.sent,
j(t.data.downloadUrl),
_(),
e.next = 12;
break;
case 9:
e.prev = 9,
e.t0 = e.catch(0),
console.log(e.t0);
case 12:
return e.prev = 12,
v(!1),
e.finish(12);
case 15:
case "end":
return e.stop()
}
}
), e, null, [[0, 9, 12, 15]])
}
)));
return function() {
return e.apply(this, arguments)
}
}()
, S = s.a.useMemo((function() {
return {
className: u ? "progress" : ""
}
}
), [u])
, A = Object(l.useContext)(Rb);
return Object(Ip.jsxs)(Vq, {
children: [Object(Ip.jsx)(Hq, {
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: Uq,
tokens: Gq,
horizontalAlign: "space-between",
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
children: [Object(Ip.jsx)(yw, {
padding: "0 8px 0 0",
inlineblock: !0,
children: Object(Ip.jsx)(Ik, {
disabled: !r,
onClick: t,
children: Object(Ip.jsx)(lp, {
iconName: "ChromeBack"
})
})
}), Object(Ip.jsx)(Bq, {
children: Object(Ip.jsx)(Ik, {
disabled: !i,
onClick: n,
children: Object(Ip.jsx)(lp, {
iconName: "ChromeBackMirrored"
})
})
})]
})
}), Object(Ip.jsxs)(yj.Item, {
grow: 1,
styles: Xq,
children: [Object(Ip.jsx)(TA, {
checked: c,
label: c ? "App" : "Design",
inlineLabel: !0,
styles: Kq,
onChange: function(e, t) {
return a(!!t)
}
}), Object(Ip.jsx)(Lk, {
onClick: M,
style: {
marginRight: 8
},
children: m ? Object(Ip.jsx)(tT, {
size: GA.small
}) : Object(Ip.jsx)(lp, {
iconName: "Camera"
})
}), window.location.hostname.includes("appcheap.io") || window.location.hostname.includes("localhost") ? Object(Ip.jsx)(Lk, {
className: f ? "progress" : "",
onClick: h,
style: {
marginRight: 8
},
children: Object(Ip.jsx)(lp, {
iconName: "ColorSolid"
})
}) : null, A.settings.btn.save && Object(Ip.jsx)(zk, {
className: u ? A.settings.btn.className : "",
typebtn: "primary",
onClick: A.settings.btn.save ? o : function() {}
,
children: A.settings.btn.txt
})]
})]
})
}), Object(Ip.jsx)(tk, {
maxWidth: 425,
hidden: C,
onDismiss: _,
dialogContentProps: qq,
modalProps: Wq,
children: Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)("a", {
href: O,
download: !0,
children: Object(Ip.jsx)("img", {
src: O,
alt: "App Screenshot"
})
}), Object(Ip.jsx)(zk, _t(_t({}, S), {}, {
typebtn: "primary",
onClick: function() {
return d(O)
},
children: "Save"
})), Object(Ip.jsx)(aj, {
onClick: _,
text: "Close"
})]
})
})]
})
}
)), Qq = function(e, t) {
var n = (null == e ? void 0 : e["".concat(t, "Left")]) || 0
, r = (null == e ? void 0 : e["".concat(t, "Right")]) || 0
, i = (null == e ? void 0 : e["".concat(t, "Top")]) || 0
, o = (null == e ? void 0 : e["".concat(t, "Bottom")]) || 0;
return "".concat(i, "px ").concat(r, "px ").concat(o, "px ").concat(n, "px")
}, Jq = Mu.b.div(uq || (uq = _u(["\n margin: ", ";\n padding: ", ";\n"])), (function(e) {
return e.margin ? function(e) {
var t = (null == e ? void 0 : e.marginLeft) || 0
, n = (null == e ? void 0 : e.marginRight) || 0
, r = (null == e ? void 0 : e.marginTop) || 0
, i = (null == e ? void 0 : e.marginBottom) || 0;
return "".concat(r, "px ").concat(n, "px ").concat(i, "px ").concat(t, "px")
}(e.margin) : "0px"
}
), (function(e) {
return e.padding ? function(e) {
var t = (null == e ? void 0 : e.paddingLeft) || 0
, n = (null == e ? void 0 : e.paddingRight) || 0
, r = (null == e ? void 0 : e.paddingTop) || 0
, i = (null == e ? void 0 : e.paddingBottom) || 0;
return "".concat(r, "px ").concat(n, "px ").concat(i, "px ").concat(t, "px")
}(e.padding) : "0px"
}
)), Zq = Mu.b.div(dq || (dq = _u(["\n background-color: ", ";\n border-radius: ", "px;\n overflow: hidden;\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.radius
}
)), $q = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.data, i = n.translate, o = n.language, a = n.width, l = n.height, s = n.background, c = n.radius, u = null != r && r.image ? "string" == typeof (null == r ? void 0 : r.image) ? null == r ? void 0 : r.image : i ? null == r || null === (e = r.image) || void 0 === e ? void 0 : e[o] : null == r || null === (t = r.image) || void 0 === t ? void 0 : t.src : "";
return Object(Ip.jsx)(Zq, {
background: null != s ? s : "transparent",
radius: null != c ? c : 0,
children: Object(Ip.jsx)(Lg, {
src: u || Zp.NoImage,
width: a,
height: l
})
})
}
}]),
n
}(l.Component), eH = $q, tH = n(26), nH = n.n(tH), rH = function(e) {
return "rgba(".concat(e.r, ", ").concat(e.g, ", ").concat(e.b, ", ").concat(e.a, ")")
}, iH = n(295), oH = n.n(iH), aH = n.p + "static/media/bg_layout.cae9ec88.png", lH = Mu.b.div(pq || (pq = _u(["\n width: ", ";;\n height: ", ";;\n background-image: url(", ");\n background-repeat: no-repeat;\n background-position: ", ";\n margin: ", ";\n"])), (function(e) {
return "".concat(e.width, "px")
}
), (function(e) {
return "".concat(e.height, "px")
}
), aH, (function(e) {
return "".concat(e.left, "px ").concat(e.top, "px")
}
), (function(e) {
return e.marginbottom ? "auto" : "auto auto 16px auto"
}
)), sH = function(e) {
var t = e.top
, n = e.left
, r = e.width
, i = void 0 === r ? 88 : r
, o = e.height
, a = void 0 === o ? 62 : o
, l = e.marginbottom
, s = void 0 === l || l;
return Object(Ip.jsx)(lH, {
top: t,
left: n,
width: i,
height: a,
marginbottom: s
})
}, cH = {
childrenGap: 20
}, uH = Mu.b.div(hq || (hq = _u(["\n width: calc(50% - 24px);\n max-width: calc(50% - 24px);\n border: 1px solid ", ";\n border-radius: 4px;\n padding-top: 24px;\n padding-bottom: 24px;\n text-align: center;\n position: relative;\n background: ", ";\n cursor: pointer;\n\n &:hover {\n box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.05) !important;\n background: ", " !important;\n }\n"])), (function(e) {
return e.borderColor
}
), (function(e) {
return e.background
}
), Po.palette.neutralLighter), dH = Mu.b.div(fq || (fq = _u(["\n position: absolute;\n top: 6px;\n right: 6px;\n width: 18px;\n height: 18px;\n border-radius: 50%;\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), (function(e) {
return e.color
}
)), pH = Mu.b.div(bq || (bq = _u(["\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), hH = Mu.b.div(gq || (gq = _u(["\n width: 88px;\n height: 63px;\n overflow: hidden;\n margin: auto;\n word-break: break-word;\n"]))), fH = function(e) {
var t = e.layoutIcon;
if ("string" == typeof t)
return Object(Ip.jsx)("img", {
src: t,
alt: t,
width: 88,
height: 63
});
if ("object" == typeof t && null !== t.top)
return Object(Ip.jsx)(sH, {
left: t.left,
top: t.top
});
var n = t;
return Object(Ip.jsx)(hH, {
children: Object(Ip.jsx)(n, {})
})
}, bH = function(e) {
var t, n = yo(), r = e.layout, i = e.type, o = e.widgetId, a = null !== (t = e.value) && void 0 !== t ? t : r.defaultValue;
return Object(Ip.jsxs)("div", {
style: {
padding: 20
},
children: [Object(Ip.jsx)("div", {
style: {
marginBottom: 20
},
children: "Select layout"
}), Object(Ip.jsx)(yj, {
horizontal: !0,
wrap: !0,
tokens: cH,
children: r.options.map((function(t) {
var l = t.id
, s = t.name
, c = Cu()(Yfe, [i, l], Hp);
return Object(Ip.jsxs)(uH, {
background: a === l ? "#ffffff" : "transparent",
borderColor: a === l ? n.palette.themePrimary : n.palette.neutralQuaternaryAlt,
onClick: function() {
return function(t) {
return e.onChange({
id: o,
value: null != t ? t : r.defaultValue
})
}(l)
},
children: [Object(Ip.jsx)(fH, {
layoutIcon: c
}), Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: s
}), a === l && Object(Ip.jsx)(dH, {
color: n.palette.themePrimary,
children: Object(Ip.jsx)(pH, {
color: n.palette.themePrimary
})
})]
}, o + l)
}
))
})]
})
}, gH = Mu.b.div(mq || (mq = _u(["\n font-family: ", ";\n font-size: 40px;\n line-height: 1.10909;\n"])), (function(e) {
return e.fontFamily
}
)), mH = Object(Mu.b)(uH)(vq || (vq = _u(["\n height: 258px;\n margin: 0 10px 30px;\n padding: 24px;\n cursor: pointer;\n width: calc(100% - 20px);\n max-width: calc(100% - 20px);\n text-align: left;\n box-sizing: border-box;\n display: block;\n"]))), vH = Mu.b.span(yq || (yq = _u(["\n color: #7e82a4;\n display: block;\n margin: 8px 0 24px 0;\n"]))), yH = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : Gp
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 400
, n = "https://fonts.googleapis.com/css2?family=".concat(oH()(e, " ", "+"), ":wght@").concat(t || 400);
if (e && null === document.querySelector('[href*="' + n + '"]')) {
var r = document.head || document.getElementsByTagName("head")[0]
, i = document.createElement("link");
i.href = n,
i.rel = "stylesheet",
r.appendChild(i)
}
}, xH = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
r = t.call(this, e),
yH(e.item.family),
r
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.valueFont;
return Object(Ip.jsxs)(mH, {
borderColor: t.family === n ? Po.palette.themePrimary : Po.palette.neutralQuaternaryAlt,
background: t.family === n ? Po.palette.neutralLighter : Po.palette.white,
children: [Object(Ip.jsx)(Ep, {
variant: "mediumPlus",
block: !0,
children: t.family
}), Object(Ip.jsx)(vH, {
children: Object(Ip.jsxs)(Ep, {
variant: "small",
children: [t.variants.length, " ", t.variants.length > 1 ? "Items" : "Item"]
})
}), Object(Ip.jsx)(gH, {
fontFamily: t.family,
children: "Almost before we knew it, we had left the ground."
}), t.family === n && Object(Ip.jsx)(dH, {
color: Po.palette.themePrimary,
children: Object(Ip.jsx)(pH, {
color: Po.palette.themePrimary
})
})]
})
}
}]),
n
}(l.Component), OH = ["value", "label", "isStyle", "isTranslate", "defaultValue", "props", "info"], jH = {
root: {}
}, kH = {
root: {
alignItems: "center",
display: "flex",
justifyContent: "center"
}
}, wH = {
childrenGap: 5,
padding: 0
}, CH = Mu.b.div(xq || (xq = _u(["\n"]))), _H = function(e) {
return null == e || -1 === e || "" === e || "-1" === e
}, MH = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r = e.props
, i = r.onChange
, o = r.value
, a = r.defaultValue;
i && i(_t(_t({}, o || a), {}, Object(wt.a)({}, t, n)))
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e._check = function(t) {
var n, r, i, o, a, l, s = e.props, c = s.value, u = s.defaultValue, d = "width" === t ? 1 : null !== (n = null == c ? void 0 : c.width) && void 0 !== n ? n : null == u ? void 0 : u.width, p = "height" === t ? 1 : null !== (r = null == c ? void 0 : c.height) && void 0 !== r ? r : null == u ? void 0 : u.height, h = "left" === t ? 1 : null !== (i = null == c ? void 0 : c.left) && void 0 !== i ? i : null == u ? void 0 : u.left, f = "top" === t ? 1 : null !== (o = null == c ? void 0 : c.top) && void 0 !== o ? o : null == u ? void 0 : u.top, b = "right" === t ? 1 : null !== (a = null == c ? void 0 : c.right) && void 0 !== a ? a : null == u ? void 0 : u.right, g = "bottom" === t ? 1 : null !== (l = null == c ? void 0 : c.bottom) && void 0 !== l ? l : null == u ? void 0 : u.bottom;
return "left" === t || "width" === t || "right" === t ? _H(h) || _H(d) || _H(b) : _H(f) || _H(g) || _H(p)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a = this, l = this.props, s = l.value, c = l.label, u = (l.isStyle,
l.isTranslate,
l.defaultValue), d = l.props, p = l.info, h = Su(l, OH), f = null !== (e = null == s ? void 0 : s.width) && void 0 !== e ? e : null == u ? void 0 : u.width, b = null !== (t = null == s ? void 0 : s.height) && void 0 !== t ? t : null == u ? void 0 : u.height, g = null !== (n = null == s ? void 0 : s.left) && void 0 !== n ? n : null == u ? void 0 : u.left, m = null !== (r = null == s ? void 0 : s.top) && void 0 !== r ? r : null == u ? void 0 : u.top, v = null !== (i = null == s ? void 0 : s.right) && void 0 !== i ? i : null == u ? void 0 : u.right, y = null !== (o = null == s ? void 0 : s.bottom) && void 0 !== o ? o : null == u ? void 0 : u.bottom, x = this._check("left"), O = this._check("right"), j = this._check("top"), k = this._check("bottom"), w = this._check("width"), C = this._check("height");
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: c,
info: p
}), Object(Ip.jsxs)(CH, {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: jH,
tokens: wH,
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: kH,
children: Object(Ip.jsx)(jk, _t(_t(_t({}, d), h), {}, {
styles: uS,
value: f || "",
onChange: function(e, t) {
return a._onChange("width", t)
},
onBlur: this._onBlur,
placeholder: "Width",
type: "number",
description: "Width",
disabled: !w
}))
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: kH,
children: Object(Ip.jsx)(jk, _t(_t(_t({}, d), h), {}, {
styles: uS,
value: b || "",
onChange: function(e, t) {
return a._onChange("height", t)
},
onBlur: this._onBlur,
placeholder: "Height",
type: "number",
description: "Height",
disabled: !C
}))
})]
}), Object(Ip.jsx)("div", {
style: {
height: 10
}
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: jH,
tokens: wH,
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: kH,
children: Object(Ip.jsx)(jk, _t(_t(_t({}, d), h), {}, {
styles: uS,
value: g || "",
onChange: function(e, t) {
return a._onChange("left", t)
},
onBlur: this._onBlur,
placeholder: "Left",
type: "number",
description: "Left",
disabled: !x
}))
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: kH,
children: Object(Ip.jsx)(jk, _t(_t(_t({}, d), h), {}, {
styles: uS,
value: m || "",
onChange: function(e, t) {
return a._onChange("top", t)
},
onBlur: this._onBlur,
placeholder: "Top",
type: "number",
description: "Top",
disabled: !j
}))
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: kH,
children: Object(Ip.jsx)(jk, _t(_t(_t({}, d), h), {}, {
styles: uS,
value: v || "",
onChange: function(e, t) {
return a._onChange("right", t)
},
onBlur: this._onBlur,
placeholder: "Right",
type: "number",
description: "Right",
disabled: !O
}))
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: kH,
children: Object(Ip.jsx)(jk, _t(_t(_t({}, d), h), {}, {
styles: uS,
value: y || "",
onChange: function(e, t) {
return a._onChange("bottom", t)
},
onBlur: this._onBlur,
placeholder: "Bottom",
type: "number",
description: "Bottom",
disabled: !k
}))
})]
})]
})]
})
}
}]),
n
}(l.Component);
MH.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var SH, AH, TH, EH, IH, NH, zH, DH, LH, RH, PH, BH, FH, VH, WH, qH, HH, UH, XH, GH, KH, YH, QH, JH, ZH, $H, eU, tU, nU, rU, iU, oU, aU, lU, sU, cU, uU, dU = MH, pU = Mu.b.span(SH || (SH = _u(["\n text-align: left;\n font-family: ", " !important;\n font-weight: ", " !important;\n font-size: ", "px !important;\n color: ", " !important;\n background-color: ", " !important;\n letter-spacing: ", " !important;\n line-height: ", " !important;\n text-decoration: ", " !important;\n"])), (function(e) {
return null != e && e.dataStyle && null != e && e.dataStyle.fontFamily ? (yH(null == e ? void 0 : e.dataStyle.fontFamily, null == e ? void 0 : e.dataStyle.fontWeight),
null == e ? void 0 : e.dataStyle.fontFamily) : Gp
}
), (function(e) {
return null != e && e.dataStyle.fontWeight ? null == e ? void 0 : e.dataStyle.fontWeight : 400
}
), (function(e) {
return null != e && e.dataStyle.fontSize ? null == e ? void 0 : e.dataStyle.fontSize : 16
}
), (function(e) {
var t;
return rH(Cu()(e.dataStyle, ["color", null !== (t = null == e ? void 0 : e.darkModeKey) && void 0 !== t ? t : "value"], ec.black))
}
), (function(e) {
var t;
return rH(Cu()(e.dataStyle, ["backgroundColor", null !== (t = null == e ? void 0 : e.darkModeKey) && void 0 !== t ? t : "value"], ec.transparent))
}
), (function(e) {
return null != e && e.dataStyle.letterSpacing ? (null == e ? void 0 : e.dataStyle.letterSpacing) + "px" : "normal"
}
), (function(e) {
return null != e && e.dataStyle.height ? null == e ? void 0 : e.dataStyle.height : "normal"
}
), (function(e) {
return null != e && e.dataStyle.textDecoration ? null == e ? void 0 : e.dataStyle.textDecoration : "none"
}
)), hU = Mu.b.div(AH || (AH = _u(["\n position: absolute;\n width: ", ";\n height: ", ";\n left: ", ";\n top: ", ";\n right: ", ";\n bottom: ", ";\n z-index: 1;\n border: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"])), (function(e) {
return _H(null == e ? void 0 : e.position.width) ? null : "".concat(null == e ? void 0 : e.position.width, "px")
}
), (function(e) {
return _H(null == e ? void 0 : e.position.height) ? null : "".concat(null == e ? void 0 : e.position.height, "px")
}
), (function(e) {
return _H(null == e ? void 0 : e.position.left) ? null : "".concat(null == e ? void 0 : e.position.left, "px")
}
), (function(e) {
return _H(null == e ? void 0 : e.position.top) ? null : "".concat(null == e ? void 0 : e.position.top, "px")
}
), (function(e) {
return _H(null == e ? void 0 : e.position.right) ? null : "".concat(null == e ? void 0 : e.position.right, "px")
}
), (function(e) {
return _H(null == e ? void 0 : e.position.bottom) ? null : "".concat(null == e ? void 0 : e.position.bottom, "px")
}
), (function(e) {
return null != e && e.active ? "1px dotted #000" : "none"
}
)), fU = Mu.b.div(TH || (TH = _u(["\n display: flex;\n align-items: center;\n justify-content: center;\n border-style: solid;\n width: ", ";\n height: ", ";\n background-color: ", " !important;\n border-color: ", " !important;\n border-width: ", ";\n border-radius: ", ";\n"])), (function(e) {
return _H(null == e ? void 0 : e.size.width) ? null : "".concat(null == e ? void 0 : e.size.width, "px")
}
), (function(e) {
return _H(null == e ? void 0 : e.size.height) ? null : "".concat(null == e ? void 0 : e.size.height, "px")
}
), (function(e) {
var t;
return rH(Cu()(e.backgroundColor, [null !== (t = null == e ? void 0 : e.darkModeKey) && void 0 !== t ? t : "value"], ec.transparent))
}
), (function(e) {
var t;
return rH(Cu()(e, ["borderColor", null !== (t = null == e ? void 0 : e.darkModeKey) && void 0 !== t ? t : "value"], ec.transparent))
}
), (function(e) {
return null != e && e.borderWidth ? "".concat(null == e ? void 0 : e.borderWidth, "px") : 0
}
), (function(e) {
return null != e && e.borderRadius ? "".concat(null == e ? void 0 : e.borderRadius, "px") : null
}
)), bU = Mu.b.div(EH || (EH = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n word-break: break-all;\n overflow: hidden;\n"]))), gU = Mu.b.div(IH || (IH = _u(["\n flex: 1;\n margin: 16px 16px;\n"]))), mU = Object(Mu.b)(pU)(NH || (NH = _u(["\n margin-bottom: 3px;\n display: inline-block;\n"]))), vU = Object(Mu.b)(pU)(zH || (zH = _u(["\n display: inline-block;\n"]))), yU = Object(Mu.b)(pU)(DH || (DH = _u(["\n margin: 0px;\n margin-bottom: 16px;\n padding: 5px 20px;\n display: block;\n"]))), xU = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = Cu()(t, ["text2"], {})
, d = Cu()(t, ["enableButton"], !0)
, p = Cu()(t, ["textButton"], {})
, h = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, f = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, b = i ? Cu()(p, [o], "") : Cu()(p, ["text"], "")
, g = {
color: {
value: ec.primaryText,
dark: ec.primaryTextDarkMode
},
fontSize: 18
}
, m = {
fontSize: 12,
color: {
value: ec.primaryText,
dark: ec.primaryTextDarkMode
}
}
, v = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12,
backgroundColor: {
value: ec.primaryText,
dark: ec.primaryText
}
}
, y = nH()(g, Cu()(c, ["style"], {}))
, x = nH()(m, Cu()(u, ["style"], {}))
, O = nH()(v, Cu()(p, ["style"], {}))
, j = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, k = "url(".concat(j || Zp.NoImage, ")");
return Object(Ip.jsxs)(bU, {
style: {
width: n,
height: r,
backgroundImage: k,
borderRadius: null != l ? l : 0
},
children: [Object(Ip.jsxs)(gU, {
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(mU, {
dataStyle: y,
darkModeKey: a,
children: h
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(vU, {
dataStyle: x,
darkModeKey: a,
children: f
})
})]
}), d && Object(Ip.jsx)(yU, {
dataStyle: O,
darkModeKey: a,
children: b
})]
})
}
}]),
n
}(l.Component), OU = xU, jU = Mu.b.div(LH || (LH = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: center;\n word-break: break-all;\n overflow: hidden;\n"]))), kU = Object(Mu.b)(pU)(RH || (RH = _u(["\n margin: 10px 20px;\n text-align: center;\n display: block;\n"]))), wU = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 20
}
, d = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, p = nH()(u, Cu()(c, ["style"], {}))
, h = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, f = "url(".concat(h || Zp.NoImage, ")");
return Object(Ip.jsx)(jU, {
style: {
width: n,
height: r,
backgroundImage: f,
borderRadius: null != l ? l : 0
},
children: Object(Ip.jsx)(kU, {
dataStyle: p,
darkModeKey: a,
children: d
})
})
}
}]),
n
}(l.Component), CU = wU, _U = Mu.b.div(PH || (PH = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n overflow: hidden;\n text-align: left;\n"]))), MU = Mu.b.div(BH || (BH = _u(["\n max-width: 50%;\n margin-left: 12px;\n word-break: break-all;\n"]))), SU = Object(Mu.b)(pU)(FH || (FH = _u(["\n display: inline-block;\n margin-top: 2px;\n"]))), AU = Object(Mu.b)(pU)(VH || (VH = _u(["\n padding: 0px 10px;\n display: inline-block;\n"]))), TU = Object(Mu.b)(pU)(WH || (WH = _u(["\n padding: 3px 12px;\n display: inline-block;\n margin-top: 1px;\n"]))), EU = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["enableButton"], !0)
, u = Cu()(t, ["text1"], {})
, d = Cu()(t, ["text2"], {})
, p = Cu()(t, ["textButton"], {})
, h = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, f = i ? Cu()(d, [o], "") : Cu()(d, ["text"], "")
, b = i ? Cu()(p, [o], "") : Cu()(p, ["text"], "")
, g = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 40
}
, m = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 14
}
, v = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12,
backgroundColor: {
value: {
r: 255,
g: 162,
b: 0,
a: 1
},
dark: {
r: 255,
g: 162,
b: 0,
a: 1
}
}
}
, y = nH()(g, Cu()(u, ["style"], {}))
, x = nH()(m, Cu()(d, ["style"], {}))
, O = nH()(v, Cu()(p, ["style"], {}))
, j = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, k = "url(".concat(j || Zp.NoImage, ")");
return Object(Ip.jsxs)(_U, {
style: {
width: n,
height: r,
backgroundImage: k,
borderRadius: null != l ? l : 0
},
children: [Object(Ip.jsxs)(MU, {
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(AU, {
dataStyle: x,
darkModeKey: a,
children: f
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(SU, {
dataStyle: y,
darkModeKey: a,
children: h
})
})]
}), c && Object(Ip.jsx)(MU, {
children: Object(Ip.jsx)(TU, {
dataStyle: O,
darkModeKey: a,
children: b
})
})]
})
}
}]),
n
}(l.Component), IU = EU, NU = Mu.b.div(qH || (qH = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n"]))), zU = Mu.b.div(HH || (HH = _u(["\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n word-break: break-all;\n"]))), DU = Object(Mu.b)(pU)(UH || (UH = _u(["\n display: block;\n margin: ", "px 20px;\n"])), (function(e) {
return e.margin
}
)), LU = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = Cu()(t, ["text2"], {})
, d = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, p = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, h = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 14
}
, f = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 14
}
, b = nH()(h, Cu()(c, ["style"], {}))
, g = nH()(f, Cu()(u, ["style"], {}))
, m = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, v = "url(".concat(m || Zp.NoImage, ")")
, y = r ? r / 10 : 0;
return Object(Ip.jsx)(NU, {
style: {
width: n,
height: r,
backgroundImage: v,
borderRadius: null != l ? l : 0
},
children: Object(Ip.jsxs)(zU, {
style: {
paddingTop: y,
paddingBottom: y
},
children: [Object(Ip.jsx)(DU, {
dataStyle: b,
margin: y,
darkModeKey: a,
children: d
}), Object(Ip.jsx)(DU, {
dataStyle: g,
margin: y,
darkModeKey: a,
children: p
})]
})
})
}
}]),
n
}(l.Component), RU = LU, PU = Mu.b.div(XH || (XH = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n word-break: break-all;\n overflow: hidden;\n"]))), BU = Object(Mu.b)(pU)(GH || (GH = _u(["\n display: block;\n margin: 0px 20px;\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.marginTop) && void 0 !== t ? t : 0
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.marginBottom) && void 0 !== t ? t : 0
}
)), FU = Object(Mu.b)(pU)(KH || (KH = _u(["\n display: block;\n margin: 0px 20px;\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.marginTop) && void 0 !== t ? t : 0
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.marginBottom) && void 0 !== t ? t : 0
}
)), VU = Object(Mu.b)(pU)(YH || (YH = _u(["\n padding: 2px 15px;\n display: block;\n margin: 0px 20px;\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.marginTop) && void 0 !== t ? t : 0
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.marginBottom) && void 0 !== t ? t : 0
}
)), WU = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = Cu()(t, ["text2"], {})
, d = Cu()(t, ["text3"], {})
, p = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, h = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, f = i ? Cu()(d, [o], "") : Cu()(d, ["text"], "")
, b = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 35
}
, g = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 12
}
, m = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 10,
backgroundColor: {
value: ec.redColor,
dark: ec.redColor
}
}
, v = nH()(b, Cu()(c, ["style"], {}))
, y = nH()(g, Cu()(u, ["style"], {}))
, x = nH()(m, Cu()(d, ["style"], {}))
, O = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, j = "url(".concat(O || Zp.NoImage, ")");
return Object(Ip.jsxs)(PU, {
style: {
width: n,
height: r,
backgroundImage: j,
borderRadius: l
},
children: [Object(Ip.jsx)(VU, {
marginTop: 20,
marginBottom: null != t && t.text1 || null != t && t.text2 ? 10 : 20,
dataStyle: x,
darkModeKey: a,
children: f
}), Object(Ip.jsx)(BU, {
marginTop: null != t && t.text3 ? 0 : 20,
marginBottom: null != t && t.text2 ? 7 : 20,
dataStyle: v,
darkModeKey: a,
children: p
}), Object(Ip.jsx)(FU, {
marginTop: null != t && t.text1 || null != t && t.text3 ? 0 : 20,
marginBottom: 20,
dataStyle: y,
darkModeKey: a,
children: h
})]
})
}
}]),
n
}(l.Component), qU = WU, HU = Mu.b.div(QH || (QH = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n word-break: break-all;\n overflow: hidden;\n"]))), UU = Mu.b.div(JH || (JH = _u(["\n width: calc(100% - 14px);\n height: calc(100% - 14px);\n margin: 7px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: flex-end;\n word-break: break-all;\n"]))), XU = Mu.b.div(ZH || (ZH = _u(["\n margin: 10px 20px;\n width: calc(100% - 40px);\n"]))), GU = Object(Mu.b)(pU)($H || ($H = _u(["\n display: inline-block;\n text-align: center;\n"]))), KU = Object(Mu.b)(pU)(eU || (eU = _u(["\n padding: 3px 12px;\n border-radius: 4px;\n display: block;\n"]))), YU = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = Cu()(t, ["text2"], {})
, d = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, p = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, h = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 16
}
, f = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 10,
backgroundColor: {
value: ec.redColor,
dark: ec.redColor
}
}
, b = nH()(h, Cu()(c, ["style"], {}))
, g = nH()(f, Cu()(u, ["style"], {}))
, m = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, v = "url(".concat(m || Zp.NoImage, ")");
return Object(Ip.jsx)(HU, {
style: {
width: n,
height: r,
backgroundImage: v,
borderRadius: l
},
children: Object(Ip.jsxs)(UU, {
children: [Object(Ip.jsx)(KU, {
dataStyle: g,
darkModeKey: a,
children: p
}), Object(Ip.jsx)(XU, {
children: Object(Ip.jsx)(GU, {
dataStyle: b,
darkModeKey: a,
children: d
})
})]
})
})
}
}]),
n
}(l.Component), QU = YU, JU = Mu.b.div(tU || (tU = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n word-break: break-all;\n overflow: hidden;\n"]))), ZU = Object(Mu.b)(pU)(nU || (nU = _u(["\n display: block;\n margin: 20px 20px;\n"]))), $U = Object(Mu.b)(pU)(rU || (rU = _u(["\n display: block;\n margin: 0px 20px 30px 20px;\n"]))), eX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = Cu()(t, ["text2"], {})
, d = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, p = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, h = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 18
}
, f = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 18
}
, b = nH()(h, Cu()(c, ["style"], {}))
, g = nH()(f, Cu()(u, ["style"], {}))
, m = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, v = "url(".concat(m || Zp.NoImage, ")");
return Object(Ip.jsxs)(JU, {
style: {
width: n,
height: r,
backgroundImage: v,
borderRadius: l
},
children: [Object(Ip.jsx)(ZU, {
dataStyle: b,
darkModeKey: a,
children: d
}), Object(Ip.jsx)($U, {
dataStyle: g,
darkModeKey: a,
children: p
})]
})
}
}]),
n
}(l.Component), tX = eX, nX = Mu.b.div(iU || (iU = _u(["\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n text-align: left;\n // position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n word-break: break-all;\n overflow: hidden;\n"]))), rX = Object(Mu.b)(pU)(oU || (oU = _u(["\n display: block;\n margin: 0px 15px;\n"]))), iX = Mu.b.div(aU || (aU = _u(["\n width: 100%;\n"]))), oX = Object(Mu.b)(pU)(lU || (lU = _u(["\n display: block;\n text-align: right;\n float: right;\n margin: 0px 15px;\n margin-bottom: 10px;\n"]))), aX = Object(Mu.b)(pU)(sU || (sU = _u(["\n display: block;\n margin: 0px 15px;\n"]))), lX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.radius
, s = Cu()(t, ["image"], {})
, c = Cu()(t, ["text1"], {})
, u = Cu()(t, ["text2"], {})
, d = Cu()(t, ["text3"], {})
, p = i ? Cu()(u, [o], "") : Cu()(u, ["text"], "")
, h = i ? Cu()(c, [o], "") : Cu()(c, ["text"], "")
, f = i ? Cu()(d, [o], "") : Cu()(d, ["text"], "")
, b = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12
}
, g = {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12
}
, m = nH()({
color: {
value: {
r: 242,
g: 113,
b: 28,
a: 1
},
dark: {
r: 242,
g: 113,
b: 28,
a: 1
}
},
fontSize: 35
}, Cu()(u, ["style"], {}))
, v = nH()(b, Cu()(c, ["style"], {}))
, y = nH()(g, Cu()(d, ["style"], {}))
, x = "string" == typeof s ? s : i ? Cu()(s, [o], "") : Cu()(s, ["src"], "")
, O = "url(".concat(x || Zp.NoImage, ")");
return Object(Ip.jsxs)(nX, {
style: {
width: n,
height: r,
backgroundImage: O,
borderRadius: l
},
children: [Object(Ip.jsx)(aX, {
dataStyle: v,
darkModeKey: a,
children: h
}), Object(Ip.jsx)(rX, {
dataStyle: m,
darkModeKey: a,
children: p
}), Object(Ip.jsx)(iX, {
children: Object(Ip.jsx)(oX, {
dataStyle: y,
darkModeKey: a,
children: f
})
})]
})
}
}]),
n
}(l.Component), sX = lX, cX = Mu.b.div(cU || (cU = _u(["\n overflow: hidden;\n"]))), uX = Object(Mu.b)(pU)(uU || (uU = _u(["\n display: inline-block;\n text-align: center;\n margin-top: 8px;\n"]))), dX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.data
, n = e.width
, r = e.height
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = e.background
, s = e.radius
, c = Cu()(t, ["image"], {})
, u = Cu()(t, ["enableRoundImage"], !0)
, d = parseFloat(Cu()(t, ["radiusImage"], "0"))
, p = Cu()(t, ["text1"], {})
, h = i ? Cu()(p, [o], "") : Cu()(p, ["text"], "")
, f = {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 14,
fontWeight: "500"
}
, b = nH()(f, Cu()(p, ["style"], {}))
, g = "string" == typeof c ? c : i ? Cu()(c, [o], "") : Cu()(c, ["src"], "");
return Object(Ip.jsxs)(cX, {
style: {
width: n,
backgroundColor: l,
borderRadius: s
},
children: [Object(Ip.jsx)(Lg, {
src: g || Zp.NoImage,
width: n,
height: r,
style: {
borderRadius: u ? "50%" : d
}
}), Object(Ip.jsx)(uX, {
dataStyle: b,
darkModeKey: a,
children: h
})]
})
}
}]),
n
}(l.Component), pX = dX, hX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.items
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = e.widthField
, a = e.heightField
, l = n
, s = l * a / o;
return Object(Ip.jsx)("div", {
className: "122121212",
children: t.map((function(e, n) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: n < t.length - 1 ? r : 0
},
children: i(e.data, e.template, l, s)
}, n)
}
))
})
}
}]),
n
}(l.Component);
hX.defaultProps = {
pad: 0
};
var fX = hX
, bX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.items
, n = e.widthField
, r = e.heightField
, i = e.pad
, o = e.renderItem;
return Object(Ip.jsx)("div", {
style: {
display: "flex",
whiteSpace: "nowrap",
overflowX: "auto"
},
children: t.map((function(e, a) {
return Object(Ip.jsx)("div", {
style: {
marginRight: a < t.length - 1 ? i : 0
},
children: o(e.data, e.template, n, r)
}, a)
}
))
})
}
}]),
n
}(l.Component);
bX.defaultProps = {
pad: 0
};
var gX, mX = bX, vX = Mu.b.div(gX || (gX = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), yX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.widthView
, l = o.pad
, s = o.renderItem
, c = o.widthField
, u = (a - l) / 2
, d = u * o.heightField / c
, p = d;
return n % 2 === r && (p = .8 * d),
Object(Ip.jsx)("div", {
style: {
marginBottom: i
},
children: s(t.data, t.template, u, p)
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.items, r = t.pad, i = [], o = [], a = 0; a < n.length; a++)
a % 2 == 0 ? i = i.concat(a) : o = o.concat(a);
return Object(Ip.jsxs)(vX, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: i.map((function(t, o) {
return e._renderItem(n[t], o, 0, o < i.length - 1 ? r : 0)
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: o.map((function(t, i) {
return e._renderItem(n[t], i, 1, i < o.length - 1 ? r : 0)
}
))
})]
})
}
}]),
n
}(l.Component);
yX.defaultProps = {
pad: 0
};
var xX, OX, jX, kX = yX, wX = Mu.b.div(xX || (xX = _u(["\n position: relative;\n"]))), CX = Mu.b.div(OX || (OX = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), _X = Mu.b.div(jX || (jX = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), MX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(_X, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.items
, n = e.widthView
, r = e.renderItem
, i = e.widthField
, o = e.heightField
, a = e.indicatorColor
, l = e.indicatorActiveColor
, s = n
, c = s * o / i
, u = t.length > 0 ? t[0] : null;
return null === u ? null : Object(Ip.jsxs)(wX, {
children: [r(u.data, u.template, s, c), Object(Ip.jsx)(CX, {
children: this._renderDots(t.length, 0, a, l)
})]
})
}
}]),
n
}(l.Component);
MX.defaultProps = {
pad: 0
};
var SX, AX, TX = MX, EX = Mu.b.div(SX || (SX = _u(["\n display: flex;\n flex-wrap: wrap;\n margin: ", "px;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.margin) && void 0 !== t ? t : 0
}
)), IX = Mu.b.div(AX || (AX = _u(["\n height: ", "px;\n margin: ", "px;\n overflow: hidden;\n"])), (function(e) {
return e.height
}
), (function(e) {
var t;
return null !== (t = e.margin) && void 0 !== t ? t : 0
}
)), NX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.items
, n = e.widthView
, r = e.widthField
, i = e.heightField
, o = e.pad
, a = e.renderItem
, l = e.col
, s = e.ratio
, c = o / 2
, u = (n - (l - 1) * o) / l
, d = u / s
, p = u * i / r;
return Object(Ip.jsx)(EX, {
margin: -c,
children: t.map((function(e, t) {
return Object(Ip.jsx)(IX, {
margin: c,
height: d,
children: a(e.data, e.template, u, p)
}, t)
}
))
})
}
}]),
n
}(l.Component);
NX.defaultProps = {
pad: 0
};
var zX, DX, LX = NX, RX = Mu.b.div(zX || (zX = _u(["\n display: flex;\n margin: ", "px;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.margin) && void 0 !== t ? t : 0
}
)), PX = Mu.b.div(DX || (DX = _u(["\n flex: 1;\n margin: ", "px;\n overflow: hidden;\n"])), (function(e) {
var t;
return null !== (t = e.margin) && void 0 !== t ? t : 0
}
)), BX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.items
, n = e.widthView
, r = e.widthField
, i = e.heightField
, o = e.pad
, a = e.renderItem
, l = o / 2
, s = t.length;
if (s < 1)
return null;
var c = (n - (s - 1) * o) / s
, u = c * i / r;
return Object(Ip.jsx)(RX, {
margin: -l,
children: t.map((function(e, t) {
return Object(Ip.jsx)(PX, {
margin: l,
children: a(e.data, e.template, c, u)
}, t)
}
))
})
}
}]),
n
}(l.Component);
BX.defaultProps = {
pad: 0
};
var FX = function(e, t, n) {
var r, i, o, a;
return e - (parseInt(null !== (r = null == t ? void 0 : t.paddingLeft) && void 0 !== r ? r : "") || 0) - (parseInt(null !== (i = null == t ? void 0 : t.paddingRight) && void 0 !== i ? i : "") || 0) - (parseInt(null !== (o = null == n ? void 0 : n.marginLeft) && void 0 !== o ? o : "") || 0) - (parseInt(null !== (a = null == n ? void 0 : n.marginRight) && void 0 !== a ? a : "") || 0)
}
, VX = {
default: eH,
style1: OU,
style2: CU,
style3: IU,
style4: RU,
style5: qU,
style6: QU,
style7: tX,
style8: sX,
style9: pX
}
, WX = {
list: fX,
carousel: mX,
masonry: kX,
slideshow: TX,
grid: LX,
multi: BX
}
, qX = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i, o) {
var a, l = e.props, s = l.translate, c = l.language, u = l.darkModeKey, d = null !== (a = VX[n]) && void 0 !== a ? a : VX.default, p = parseFloat(Cu()(o, ["radius"], 0)) || 0, h = rH(Cu()(o, ["backgroundColorItem", u], ec.transparent));
return Object(Ip.jsx)(d, {
data: t,
translate: s,
language: c,
width: r,
height: i,
radius: p,
background: h,
darkModeKey: u
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this, r = this.props, i = r.widget, o = i.fields, a = i.layout, l = i.styles, s = r.width, c = r.darkModeKey, u = null !== (e = WX[a]) && void 0 !== e ? e : WX.list, d = rH(Cu()(l, ["background", c], ec.transparent)), p = Cu()(l, ["backgroundImage"], ""), h = parseInt(Cu()(l, ["pad"], 0)) || 0, f = parseFloat(Cu()(l, ["height"], 300)) || 300, b = parseInt(Cu()(l, ["col"], 2)) || 2, g = parseFloat(Cu()(l, ["ratio"], 1)) || 1, m = rH(Cu()(l, ["indicatorColor", c], ec.borderLightMode)), v = rH(Cu()(l, ["indicatorActiveColor", c], ec.tertiaryText)), y = Cu()(o, ["size", "width"], 375), x = Cu()(o, ["size", "height"], 330), O = Number(y) > 0 ? Number(y) : 375, j = Number(x) > 0 ? Number(x) : 330, k = FX(s, null == l ? void 0 : l.padding, null == l ? void 0 : l.margin);
return Object(Ip.jsx)(Jq, {
padding: null == l ? void 0 : l.padding,
margin: null == l ? void 0 : l.margin,
style: {
backgroundColor: d,
backgroundImage: p ? "url(".concat(p, ")") : "",
backgroundSize: "cover",
height: "carousel" === a ? f : "auto",
overflow: "hidden"
},
children: (null == o || null === (t = o.items) || void 0 === t ? void 0 : t.length) > 0 ? Object(Ip.jsx)(u, {
items: o.items,
widthField: O,
heightField: j,
widthView: k,
pad: h,
col: b,
ratio: g,
indicatorColor: m,
indicatorActiveColor: v,
renderItem: function(e, t, r, i) {
return n._renderItem(e, t, r, i, l)
}
}) : null
})
}
}]),
n
}(l.Component)
, HX = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(qX)
, UX = ["icon"]
, XX = ["icon", "type", "onChange"]
, GX = feather.icons
, KX = window.app_builder_custom_icons;
function YX(e) {
var t, n, r = e.icon, i = Su(e, UX);
if (!r)
return null;
var o, a = r.type, l = r.name;
if (!a && !l)
return null;
if ("awesome" === a && l && l.length > 3) {
var s = l.substring(0, 3) + " fa" + l.substring(3);
return Object(Ip.jsx)("i", _t(_t({
style: {
fontSize: 18
}
}, i), {}, {
className: s
}))
}
if ("feather" === a)
return Object(Ip.jsx)("svg", _t({
viewBox: "0 0 24 24",
width: 24,
height: 24,
stroke: "currentColor",
strokeWidth: 2,
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
dangerouslySetInnerHTML: {
__html: GX ? null === (o = GX[l]) || void 0 === o ? void 0 : o.contents : ""
}
}, i));
var c = yh()(KX) && !Rt()(KX) ? KX.find((function(e) {
return e.fontName === a
}
)) : void 0
, u = null == c || null === (t = c.icons) || void 0 === t ? void 0 : t[l];
return Object(Ip.jsx)("i", {
className: null == u ? void 0 : u.className,
style: {
fontSize: 24
},
children: null !== (n = null == u ? void 0 : u.content) && void 0 !== n ? n : ""
})
}
var QX, JX, ZX = function(e) {
var t = e.icon
, n = e.type
, r = e.onChange
, i = Su(e, XX);
return t ? Object(Ip.jsx)("div", {
onClick: function() {
return r(t)
},
style: {
textAlign: "center"
},
children: Object(Ip.jsx)(YX, _t({
icon: _t(_t({}, t), {}, {
type: n
})
}, i))
}) : null
}, $X = Mu.b.div(QX || (QX = _u(["\n padding: 0px 20px;\n height: ", "px;\n border: ", ";\n border-radius: ", "px;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n word-break: break-word;\n svg {\n margin-top: 1.5px;\n }\n"])), (function(e) {
return e.height
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.border) && void 0 !== t ? t : "none"
}
), (function(e) {
return e.radius
}
), (function(e) {
return e.background
}
)), eG = Object(Mu.b)(pU)(JX || (JX = _u(["\n display: block;\n padding: 0px 4px;\n"]))), tG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.widget, r = n.fields, i = n.styles, o = t.translate, a = t.language, l = t.darkModeKey, s = rH(Cu()(i, ["background", l], ec.transparent)), c = Number(Cu()(i, ["height"], 48)), u = rH(Cu()(i, ["backgroundItem", l], ec.primaryColor)), d = rH(Cu()(i, ["borderColorItem", l], ec.transparent)), p = Number(Cu()(i, ["borderWidgetItem"], 0)), h = Number(Cu()(i, ["radiusItem"], 8)), f = Cu()(i, "autoIconItem", !1), b = Number(Cu()(i, ["iconSizeItem"], 14)), g = rH(Cu()(i, ["iconColorItem", l], ec.white)), m = Cu()(r, ["enableFullWidth"], !0), v = Cu()(r, ["enableIcon"], !0), y = Cu()(r, ["enableIconLeft"], !0), x = {
fontSize: 14,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.white
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
}
}, O = o ? Cu()(r, ["title", a], "") : Cu()(r, ["title", "text"], ""), j = nH()(x, Cu()(r, ["title", "style"], {})), k = Cu()(r, ["icon"], {
name: "settings",
type: "feather"
}), w = null !== (e = null == j ? void 0 : j.fontSize) && void 0 !== e ? e : 14, C = rH(Cu()(j, ["color", l], ec.white)), _ = f ? b : w, M = Object(Ip.jsx)(YX, {
icon: k,
width: _,
height: _,
style: {
color: f ? g : C,
fontSize: _,
marginLeft: 4,
marginRight: 4
}
});
return Object(Ip.jsx)(Ip.Fragment, {
children: Object(Ip.jsx)(Jq, {
margin: null == i ? void 0 : i.margin,
padding: null == i ? void 0 : i.padding,
style: {
backgroundColor: s
},
children: Object(Ip.jsx)("div", {
style: {
display: m ? "block" : "inline-block"
},
children: Object(Ip.jsxs)($X, {
radius: h,
background: u,
height: c,
border: "".concat(p, "px solid ").concat(d),
children: [v && y && M, Object(Ip.jsx)(eG, {
dataStyle: j,
darkModeKey: l,
children: O
}), v && !y && M]
})
})
})
})
}
}]),
n
}(l.Component), nG = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(tG), rG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.pad
, r = e.renderItem
, i = e.height
, o = e.template;
return Object(Ip.jsx)("div", {
style: {
display: "flex",
whiteSpace: "nowrap",
overflowX: "auto",
flexWrap: "nowrap"
},
children: t.map((function(e, a) {
return Object(Ip.jsx)("div", {
style: {
marginRight: a < t.length - 1 ? n : 0
},
children: r(e, o, null, i)
}, a)
}
))
})
}
}]),
n
}(l.Component);
rG.defaultProps = {
pad: 0
};
var iG, oG, aG = rG, lG = Mu.b.div(iG || (iG = _u(["\n display: flex;\n flex-wrap: wrap;\n margin: ", "px;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.margin) && void 0 !== t ? t : 0
}
)), sG = Mu.b.div(oG || (oG = _u(["\n height: ", "px;\n margin: ", "px;\n overflow: hidden;\n"])), (function(e) {
return e.height
}
), (function(e) {
var t;
return null !== (t = e.margin) && void 0 !== t ? t : 0
}
)), cG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = e.col
, a = e.ratio
, l = e.template
, s = r / 2
, c = (n - (o - 1) * r) / o
, u = c / a;
return Object(Ip.jsx)(lG, {
margin: -s,
children: t.map((function(e, t) {
return Object(Ip.jsx)(sG, {
margin: s,
height: u + 2 * r,
children: i(e, l, c, u)
}, t)
}
))
})
}
}]),
n
}(l.Component);
cG.defaultProps = {
pad: 0
};
var uG, dG = cG, pG = Mu.b.div(uG || (uG = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), hG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.widthView
, l = o.pad
, s = o.renderItem
, c = o.template
, u = (a - l) / 2
, d = u;
return n % 2 === r && (d = .8 * u),
Object(Ip.jsx)("div", {
style: {
marginBottom: i
},
children: s(t, c, u, d)
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.categories, r = t.pad, i = [], o = [], a = 0; a < n.length; a++)
a % 2 == 0 ? i = i.concat(a) : o = o.concat(a);
return Object(Ip.jsxs)(pG, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: i.map((function(t, o) {
return Object(Ip.jsx)("div", {
children: e._renderItem(n[t], o, 0, o < i.length - 1 ? r : 0)
}, o)
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: o.map((function(t, i) {
return Object(Ip.jsx)("div", {
children: e._renderItem(n[t], i, 1, i < o.length - 1 ? r : 0)
}, i)
}
))
})]
})
}
}]),
n
}(l.Component);
hG.defaultProps = {
pad: 0
};
var fG, bG, gG, mG = hG, vG = Mu.b.div(fG || (fG = _u(["\n position: relative;\n overflow: hidden;\n"]))), yG = Mu.b.div(bG || (bG = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), xG = Mu.b.div(gG || (gG = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), OG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(xG, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.widthView
, r = e.renderItem
, i = e.indicatorColor
, o = e.indicatorActiveColor
, a = e.template
, l = n
, s = t.length > 0 ? t[0] : null;
return null === s ? null : Object(Ip.jsxs)(vG, {
style: {
height: "auto"
},
children: [r(s, a, l, l), Object(Ip.jsx)(yG, {
children: this._renderDots(t.length, 0, i, o)
})]
})
}
}]),
n
}(l.Component);
OG.defaultProps = {
pad: 0
};
var jG = OG
, kG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = e.template;
return Object(Ip.jsx)("div", {
className: "122121212",
children: t.map((function(e, a) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: a < t.length - 1 ? r : 0
},
children: i(e, o, n, null)
}, a)
}
))
})
}
}]),
n
}(l.Component);
kG.defaultProps = {
pad: 0
};
var wG = kG
, CG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = e.template;
return Object(Ip.jsx)("div", {
className: "122121212",
children: t.map((function(e, a) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: a < t.length - 1 ? r : 0
},
children: i(e, 0 === a ? {
template: "overlay",
data: {
enableName: !0,
enableNumber: !0,
alignment: "left",
opacityColor: {
value: ec.black,
dark: ec.black
},
opacity: .5
}
} : o, n, null)
}, a)
}
))
})
}
}]),
n
}(l.Component);
CG.defaultProps = {
pad: 0
};
var _G, MG, SG, AG, TG, EG = CG, IG = Mu.b.div(_G || (_G = _u(["\n overflow: hidden;\n"]))), NG = Mu.b.img(MG || (MG = _u(["\n object-fit: ", ";\n"])), (function(e) {
return (null == e ? void 0 : e.objectFit) || "cover"
}
)), zG = Mu.b.span(SG || (SG = _u(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n"]))), DG = Object(Mu.b)(zG)(AG || (AG = _u(["\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n"]))), LG = Object(Mu.b)(zG)(TG || (TG = _u(["\n font-size: 12px;\n line-height: 17px;\n color: ", ";\n"])), (function(e) {
return e.color
}
)), RG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r = this.props, i = r.category, o = r.width, a = r.height, l = r.background, s = r.radius, c = r.radiusImage, u = r.dataTemplate, d = r.textColor, p = r.subTextColor, h = r.darkModeKey, f = null != o ? o : 200, b = null != a ? a : f, g = Cu()(u, ["enableRoundImage"], !0), m = Cu()(u, ["enableName"], !0), v = Cu()(u, ["enableNumber"], !0), y = Cu()(u, ["alignment"], "center"), x = Cu()(u, ["borderStyle"], "dotted"), O = rH(Cu()(u, ["borderColor", h], ec.borderLightMode)), j = "none" === x ? 0 : null !== (e = Number(Cu()(u, ["pad"], 0))) && void 0 !== e ? e : 0, k = f - 2 * j, w = b - 2 * j;
return i ? Object(Ip.jsxs)("div", {
style: {
width: f,
backgroundColor: l,
borderRadius: s,
lineHeight: 0
},
children: [Object(Ip.jsx)("div", {
style: {
padding: j,
borderRadius: g ? "50%" : c,
borderWidth: 1,
borderColor: O,
borderStyle: x
},
children: Object(Ip.jsx)(IG, {
style: {
borderRadius: g ? "50%" : c
},
children: Object(Ip.jsx)(NG, {
src: (null == i || null === (t = i.image) || void 0 === t ? void 0 : t.src) || Zp.NoImage,
width: k,
height: w
})
})
}), (m || v) && Object(Ip.jsxs)("div", {
style: {
marginTop: 8,
textAlign: y
},
children: [m && Object(Ip.jsx)(DG, {
style: {
color: d
},
children: js()(null !== (n = null == i ? void 0 : i.name) && void 0 !== n ? n : "")
}), v && Object(Ip.jsx)(LG, {
color: p,
children: (null == i ? void 0 : i.count) > 0 ? "".concat(null == i ? void 0 : i.count, " items") : "0 item"
})]
})]
}) : null
}
}]),
n
}(l.Component);
RG.defaultProps = {
radius: 8,
radiusImage: 8,
dataTemplate: {},
darkModeKey: "value"
};
var PG, BG, FG, VG, WG, qG, HG = RG, UG = Mu.b.div(PG || (PG = _u(["\n display: flex;\n align-items: center;\n word-break: break-word;\n background-color: ", ";\n text-align: left;\n overflow: hidden;\n"])), (function(e) {
return e.color
}
)), XG = Mu.b.div(BG || (BG = _u(["\n flex: 1;\n margin-left: 12px;\n"]))), GG = Mu.b.img(FG || (FG = _u(["\n object-fit: ", ";\n"])), (function(e) {
return (null == e ? void 0 : e.objectFit) || "fill"
}
)), KG = Mu.b.span(VG || (VG = _u(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n"]))), YG = Object(Mu.b)(KG)(WG || (WG = _u(["\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n"]))), QG = Object(Mu.b)(KG)(qG || (qG = _u(["\n font-size: 12px;\n line-height: 17px;\n color: ", ";\n"])), (function(e) {
return e.color
}
)), JG = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.category, i = n.width, o = n.height, a = n.background, l = n.radius, s = n.radiusImage, c = n.dataTemplate, u = n.textColor, d = n.subTextColor;
if (!r)
return null;
var p = null != i ? i : 335
, h = null != o ? o : 92
, f = h < 92 ? h : 92
, b = (h - f) / 2
, g = Cu()(c, ["enableName"], !0)
, m = Cu()(c, ["enableNumber"], !0);
return Object(Ip.jsxs)(UG, {
color: a,
style: {
width: p,
borderRadius: l,
padding: "".concat(b, "px 0px")
},
children: [Object(Ip.jsxs)(XG, {
children: [g && Object(Ip.jsx)(YG, {
style: {
color: u
},
children: js()(null !== (e = null == r ? void 0 : r.name) && void 0 !== e ? e : "")
}), m && Object(Ip.jsx)(QG, {
color: d,
children: (null == r ? void 0 : r.count) > 0 ? "".concat(null == r ? void 0 : r.count, " items") : "0 item"
})]
}), Object(Ip.jsx)(GG, {
src: (null == r || null === (t = r.image) || void 0 === t ? void 0 : t.src) || Zp.NoImage,
width: f,
height: f,
style: {
borderRadius: s
}
})]
})
}
}]),
n
}(l.Component);
JG.defaultProps = {};
var ZG, $G, eK, tK, nK, rK = JG, iK = Mu.b.div(ZG || (ZG = _u(["\n position: relative;\n overflow: hidden;\n & > #background-opacity-category {\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n }\n & > #content-opacity-category {\n position: absolute;\n top: 12px;\n bottom: 12px;\n left: 16px;\n right: 16px;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n }\n"]))), oK = Mu.b.img($G || ($G = _u(["\n object-fit: ", ";\n"])), (function(e) {
return (null == e ? void 0 : e.objectFit) || "fill"
}
)), aK = Mu.b.span(eK || (eK = _u(["\n display: block;\n color: #fff;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n"]))), lK = Object(Mu.b)(aK)(tK || (tK = _u(["\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n"]))), sK = Object(Mu.b)(aK)(nK || (nK = _u(["\n font-size: 12px;\n line-height: 17px;\n color: ", ";\n"])), (function(e) {
return e.color
}
)), cK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r = this.props, i = r.category, o = r.width, a = r.height, l = r.radius, s = r.dataTemplate, c = r.textColor, u = r.subTextColor, d = r.darkModeKey;
if (!i)
return null;
var p = null != o ? o : 160
, h = null != a ? a : p
, f = Cu()(s, ["enableName"], !0)
, b = Cu()(s, ["enableNumber"], !0)
, g = Cu()(s, ["alignment"], "center")
, m = null !== (e = Number(Cu()(s, ["opacity"], .5))) && void 0 !== e ? e : .5
, v = rH(Cu()(s, ["opacityColor", d], ec.black));
return Object(Ip.jsxs)(iK, {
style: {
borderRadius: l
},
children: [Object(Ip.jsx)(oK, {
src: (null == i || null === (t = i.image) || void 0 === t ? void 0 : t.src) || Zp.NoImage,
width: p,
height: h
}), Object(Ip.jsx)("div", {
id: "background-opacity-category",
style: {
backgroundColor: v,
opacity: m
}
}), (f || b) && Object(Ip.jsxs)("div", {
id: "content-opacity-category",
style: {
textAlign: g
},
children: [f && Object(Ip.jsx)(lK, {
style: {
color: c
},
children: js()(null !== (n = null == i ? void 0 : i.name) && void 0 !== n ? n : "")
}), b && Object(Ip.jsx)(sK, {
color: u,
children: (null == i ? void 0 : i.count) > 0 ? "".concat(null == i ? void 0 : i.count, " items") : "0 item"
})]
})]
})
}
}]),
n
}(l.Component);
cK.defaultProps = {};
var uK, dK, pK, hK, fK, bK = cK, gK = Mu.b.div(uK || (uK = _u(["\n display: flex;\n align-items: center;\n text-align: left;\n"]))), mK = Mu.b.img(dK || (dK = _u(["\n object-fit: ", ";\n"])), (function(e) {
return (null == e ? void 0 : e.objectFit) || "fill"
}
)), vK = Mu.b.span(pK || (pK = _u(["\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n"]))), yK = Object(Mu.b)(vK)(hK || (hK = _u(["\n font-size: 14px;\n line-height: 19px;\n font-weight: 500;\n"]))), xK = Object(Mu.b)(vK)(fK || (fK = _u(["\n font-size: 12px;\n line-height: 17px;\n color: ", ";\n"])), (function(e) {
return e.color
}
)), OK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.category, i = n.width, o = n.height, a = n.background, l = n.radius, s = n.radiusImage, c = n.dataTemplate, u = n.textColor, d = n.subTextColor, p = null != i ? i : 335, h = null != o ? o : 92, f = h < 60 ? h : 60, b = (h - f) / 2, g = Cu()(c, ["enableRoundImage"], !0), m = Cu()(c, ["enableName"], !0), v = Cu()(c, ["enableNumber"], !0);
return r ? Object(Ip.jsx)("div", {
style: {
width: p,
backgroundColor: a,
borderRadius: l
},
children: Object(Ip.jsxs)(gK, {
style: {
padding: "".concat(b, "px 16px")
},
children: [Object(Ip.jsx)(mK, {
src: (null == r || null === (e = r.image) || void 0 === e ? void 0 : e.src) || Zp.NoImage,
width: f,
height: f,
style: {
borderRadius: g ? "50%" : s
}
}), Object(Ip.jsx)("div", {
style: {
flex: 1,
margin: "0px 16px "
},
children: m && Object(Ip.jsx)(yK, {
style: {
color: u
},
children: js()(null !== (t = null == r ? void 0 : r.name) && void 0 !== t ? t : "")
})
}), v && Object(Ip.jsx)(xK, {
color: d,
children: (null == r ? void 0 : r.count) > 0 ? "".concat(null == r ? void 0 : r.count, " items") : "0 item"
})]
})
}) : null
}
}]),
n
}(l.Component);
OK.defaultProps = {};
var jK = OK
, kK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).renderText = function(e, t, n) {
var r = "".concat(t + 1, "%")
, i = "".concat("center" === n ? (100 - t) / 2 : 100 - t, "%");
return "left" === n ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: e,
width: r
}, {
type: _k.gap,
height: e,
width: i
}]
}) : "right" === n ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: e,
width: i
}, {
type: _k.line,
height: e,
width: r
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: e,
width: i
}, {
type: _k.line,
height: e,
width: r
}, {
type: _k.gap,
height: e,
width: i
}]
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.width
, n = e.height
, r = e.radius
, i = e.dataTemplate
, o = e.background
, a = e.radiusImage
, l = null != t ? t : 109
, s = null != n ? n : l
, c = Cu()(i, ["enableRoundImage"], !0)
, u = Cu()(i, ["enableName"], !0)
, d = Cu()(i, ["enableNumber"], !0)
, p = Cu()(i, ["alignment"], "center")
, h = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: c ? "50%" : a
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
backgroundColor: o,
width: l,
borderRadius: r,
overflow: "hidden"
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: s,
width: "100%"
}]
})
}),
width: "100%",
styles: h
}), (u || d) && Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), u && this.renderText(19, 85, p), d && this.renderText(17, 55, p)]
}),
width: "100%",
styles: hS
})]
})
}
}]),
n
}(l.Component);
kK.defaultProps = {
radius: 8,
radiusImage: 8
};
var wK, CK = kK, _K = Mu.b.div(wK || (wK = _u(["\n display: flex;\n align-items: center;\n"]))), MK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.width
, n = e.height
, r = e.radius
, i = e.dataTemplate
, o = e.background
, a = e.radiusImage
, l = null != t ? t : 335
, s = null != n ? n : 92
, c = s < 92 ? s : 92
, u = (s - c) / 2
, d = Cu()(i, ["enableName"], !0)
, p = Cu()(i, ["enableNumber"], !0)
, h = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: a
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsx)("div", {
style: {
backgroundColor: o,
borderRadius: r,
width: l
},
children: Object(Ip.jsxs)(_K, {
children: [Object(Ip.jsx)("div", {
style: {
flex: 1,
margin: "".concat(u, "px 16px")
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [d && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 19,
width: "100%"
}]
}), p && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 2,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 10,
width: "50%"
}]
})]
})]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: c,
width: "100%"
}]
})
}),
width: c,
styles: h
})]
})
})
}
}]),
n
}(l.Component);
MK.defaultProps = {};
var SK, AK = MK, TK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.width
, n = e.height
, r = null != t ? t : 160
, i = null != n ? n : r
, o = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: e.radius
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsx)("div", {
style: {
width: r
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: i,
width: "100%"
}]
}),
width: "100%",
styles: o
})
})
}
}]),
n
}(l.Component), EK = TK, IK = Mu.b.div(SK || (SK = _u(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n"]))), NK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.width
, n = e.height
, r = e.dataTemplate
, i = e.radius
, o = e.background
, a = e.radiusImage
, l = null != t ? t : 335
, s = null != n ? n : 92
, c = s < 60 ? s : 60
, u = (s - c) / 2
, d = Cu()(r, ["enableRoundImage"], !0)
, p = Cu()(r, ["enableName"], !0)
, h = Cu()(r, ["enableNumber"], !0)
, f = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: d ? "50%" : a
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsx)("div", {
style: {
width: l,
borderRadius: i,
backgroundColor: o
},
children: Object(Ip.jsxs)(IK, {
style: {
padding: "".concat(u, "px 16px")
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: c,
width: "100%"
}],
backgroundColor: o
})
}),
width: c,
styles: f
}), Object(Ip.jsx)("div", {
style: {
flex: 1,
padding: "0px 16px"
},
children: p && Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 19,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}), h && Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 19,
width: "100%"
}]
})
}),
width: 60,
styles: hS
})]
})
})
}
}]),
n
}(l.Component);
NK.defaultProps = {};
var zK, DK, LK = function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
if (!t.length || !n.length)
return t;
var r = [];
return t.forEach((function(t) {
var i = e(t.categories, n);
n.includes(t.id) ? r.push({
id: t.id,
count: t.count,
image: t.image,
name: t.name,
parent: t.parent,
categories: i
}) : r.concat.apply(r, Object(wd.a)(i))
}
)),
r
}, RK = function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
if (!t.length || !n.length)
return t;
var r = [];
return t.forEach((function(t) {
n.includes(t.id) || r.push({
id: t.id,
count: t.count,
image: t.image,
name: t.name,
parent: t.parent,
categories: e(t.categories, n)
})
}
)),
r
}, PK = function e(t) {
if (!t.length)
return t;
var n = [];
return t.forEach((function(t) {
n = fs()(n, {
id: t.id,
count: t.count,
image: t.image,
name: t.name,
parent: t.parent,
categories: []
}, e(t.categories))
}
)),
n
}, BK = {
carousel: aG,
grid: dG,
masonry: mG,
slideshow: jG,
"big-first": EG,
list: wG
}, FK = {
default: HG,
overlay: bK,
wrap: jK,
horizontal: rK
}, VK = {
default: CK,
overlay: EK,
wrap: NK,
horizontal: AK
}, WK = ps.a.CancelToken, qK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
categories: [],
loading: !0
},
e.source = WK.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
mc(e.source.token);
case 3:
n = t.sent,
yh()(n) ? e.setState({
categories: n,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
))),
e._renderItem = function(e, t, n, r, i, o) {
var a, l, s, c = Cu()(r, ["template"], "default"), u = Cu()(r, ["data"], {}), d = rH(Cu()(i, ["backgroundItem", o], ec.transparent)), p = null !== (a = Number(Cu()(i, ["radius"], 8))) && void 0 !== a ? a : 8, h = null !== (l = Number(Cu()(i, ["radiusImage"], 8))) && void 0 !== l ? l : 8;
if (!e) {
var f, b = null !== (f = null == VK ? void 0 : VK[c]) && void 0 !== f ? f : VK.default;
return Object(Ip.jsx)(b, {
width: t,
height: n,
dataTemplate: u,
background: d,
radius: p,
radiusImage: h
})
}
var g = rH(Cu()(i, ["textColor", o], ec.black))
, m = rH(Cu()(i, ["subTextColor", o], ec.secondaryText))
, v = null !== (s = null == FK ? void 0 : FK[c]) && void 0 !== s ? s : FK.default;
return Object(Ip.jsx)(v, {
category: e,
width: t,
height: n,
background: d,
radius: p,
radiusImage: h,
textColor: g,
subTextColor: m,
dataTemplate: u,
darkModeKey: o,
imageFit: "cover"
})
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t, n, r = this, i = this.props, o = i.widget, a = o.fields, l = o.layout, s = o.styles, c = i.width, u = i.darkModeKey, d = this.state, p = d.categories, h = d.loading, f = null !== (e = BK[l]) && void 0 !== e ? e : BK.list, b = rH(Cu()(s, ["background", u], ec.transparent)), g = null !== (t = Number(Cu()(s, ["pad"], 16))) && void 0 !== t ? t : 16, m = null !== (n = Number(Cu()(s, ["height"], 300))) && void 0 !== n ? n : 300, v = parseInt(Cu()(s, ["col"], 2)) || 2, y = parseFloat(Cu()(s, ["ratio"], 1)) || 1, x = rH(Cu()(s, ["indicatorColor", u], ec.borderLightMode)), O = rH(Cu()(s, ["indicatorActiveColor", u], ec.tertiaryText)), j = Cu()(a, "includeCategory", []), k = Cu()(a, "excludeCategory", []), w = j.map((function(e) {
return parseInt(e.key)
}
)), C = k.map((function(e) {
return parseInt(e.key)
}
)), _ = Number(Cu()(a, ["limit"], 4)) || 4, M = Cu()(a, ["showHierarchy"], !0), S = Cu()(a, ["template"], {}), A = FX(c, null == s ? void 0 : s.padding, null == s ? void 0 : s.margin), T = RK(LK(M ? p : PK(p), w), C).slice(0, _), E = new Array(_).fill(null);
return Object(Ip.jsx)(Jq, {
margin: null == s ? void 0 : s.margin,
padding: null == s ? void 0 : s.padding,
style: {
backgroundColor: b,
height: "auto",
overflow: "hidden"
},
children: Object(Ip.jsx)(f, {
categories: h ? E : T,
template: S,
width: c,
widthView: A,
height: m,
pad: g,
col: v,
ratio: y,
indicatorColor: x,
indicatorActiveColor: O,
renderItem: function(e, t, n, i) {
return r._renderItem(e, n, i, t, s, u)
}
})
})
}
}]),
n
}(l.Component), HK = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(qK), UK = Mu.b.div(zK || (zK = _u(["\n width: 100%;\n border: 0;\n"]))), XK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.darkModeKey
, o = rH(Cu()(r, ["background", i], ec.transparent))
, a = rH(Cu()(r, ["color", i], ec.black))
, l = Number(Cu()(n, ["height"], 1))
, s = Cu()(n, ["type"], "solid");
return Object(Ip.jsx)(Jq, {
padding: null == r ? void 0 : r.padding,
margin: null == r ? void 0 : r.margin,
style: {
backgroundColor: o
},
children: Object(Ip.jsx)(UK, {
style: {
borderTopWidth: l,
borderTopColor: a,
borderStyle: s
}
})
})
}
}]),
n
}(l.Component), GK = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(XK), KK = Mu.b.span(DK || (DK = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), YK = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.width
, i = e.renderItem
, o = e.dividerWidth
, a = e.dividerColor
, l = e.enableLoadMore
, s = new Array(t).fill(0);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [s.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
marginBottom: t < s.length - 1 ? n : 0
},
children: [i(t, r, null, t % 2 == 1), o > 0 && Object(Ip.jsx)("div", {
style: {
height: o,
backgroundColor: a,
marginTop: n
}
})]
}, t)
}
)), l && Object(Ip.jsx)(KK, {
style: {
marginTop: n
},
children: "Load More"
})]
})
}
}]),
n
}(l.Component);
YK.defaultProps = {};
var QK, JK = YK, ZK = Mu.b.div(QK || (QK = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n"]))), $K = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.renderItem
, r = e.pad
, i = e.dividerWidth
, o = e.dividerColor
, a = new Array(t).fill(0);
return Object(Ip.jsx)(ZK, {
children: a.map((function(e, t) {
var l = t < a.length - 1 ? i > 0 ? {
borderRight: "".concat(i, "px solid ").concat(o),
paddingRight: r,
marginRight: r
} : {
marginRight: r
} : {};
return Object(Ip.jsx)("div", {
style: l,
children: n(t, null, null, t % 2 == 1)
}, t)
}
))
})
}
}]),
n
}(l.Component);
$K.defaultProps = {
pad: 0
};
var eY, tY, nY = $K, rY = Mu.b.div(eY || (eY = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), iY = Mu.b.span(tY || (tY = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), oY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.width
, l = o.pad
, s = o.renderItem
, c = o.dividerColor
, u = o.dividerWidth
, d = ((null != a ? a : 300) - l) / 2
, p = 1;
n % 2 === r && (p = .8);
var h = i ? 0 : l;
return Object(Ip.jsxs)("div", {
style: {
width: d
},
children: [s(t, d, p, n % 2 == 1), u > 0 ? Object(Ip.jsx)("div", {
style: {
height: u,
backgroundColor: c,
marginTop: l,
marginBottom: h
}
}) : Object(Ip.jsx)("div", {
style: {
height: h
}
})]
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.length, r = t.pad, i = t.enableLoadMore, o = Array.from({
length: null != n ? n : 0
}, (function(e, t) {
return t
}
)), a = [], l = [], s = 0; s < o.length; s++)
s % 2 == 0 ? a = a.concat(s) : l = l.concat(s);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(rY, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: a.map((function(t, n) {
return e._renderItem(o[t], n, 0, !(n < a.length - 1))
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: l.map((function(t, n) {
return e._renderItem(o[t], n, 1, !(n < l.length - 1))
}
))
})]
}), i ? Object(Ip.jsx)(iY, {
style: {
marginTop: r
},
children: "Load More"
}) : null]
})
}
}]),
n
}(l.Component);
oY.defaultProps = {
pad: 0
};
var aY, lY = oY, sY = Mu.b.span(aY || (aY = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), cY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.width
, r = e.pad
, i = e.renderItem
, o = e.dividerWidth
, a = e.dividerColor
, l = e.enableLoadMore
, s = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsxs)("div", {
className: "122121212",
children: [s.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
width: null != n ? n : "auto",
marginBottom: t < s.length - 1 ? r : 0
},
children: [i(t, n, null, t % 2 == 0), o > 0 ? Object(Ip.jsx)("div", {
style: {
height: o,
backgroundColor: a,
marginTop: r
}
}) : null]
}, t)
}
)), l ? Object(Ip.jsx)(sY, {
style: {
marginTop: r
},
children: "Load More"
}) : null]
})
}
}]),
n
}(l.Component);
cY.defaultProps = {
pad: 0
};
var uY, dY, pY, hY = cY, fY = Mu.b.div(uY || (uY = _u(["\n position: relative;\n height: 100%;\n"]))), bY = Mu.b.div(dY || (dY = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), gY = Mu.b.div(pY || (pY = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), mY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(gY, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.width
, r = e.renderItem
, i = e.indicatorColor
, o = e.indicatorActiveColor
, a = new Array(null != t ? t : 0).fill(0);
return null === (a.length > 0 ? a[0] : null) ? null : Object(Ip.jsxs)(fY, {
children: [r(0, n, null, !1), Object(Ip.jsx)(bY, {
children: this._renderDots(a.length, 0, i, o)
})]
})
}
}]),
n
}(l.Component);
mY.defaultProps = {
pad: 0
};
var vY, yY = mY, xY = Mu.b.div(vY || (vY = _u(["\n margin: 8px -8px 0px -8px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .bottom-view {\n padding: 0px 8px;\n flex-shrink: 1;\n }\n"]))), OY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.templateData, d = c.width, p = c.maxHeight, h = c.ratioHeight, f = c.background, b = c.shadow, g = c.radius, m = c.imageRadius, v = c.padding, y = null !== (e = Number(Cu()(u, ["size", "width"], 335))) && void 0 !== e ? e : 335, x = null !== (t = Number(Cu()(u, ["size", "height"], 260))) && void 0 !== t ? t : 260, O = null === (n = null == u ? void 0 : u.enableImage) || void 0 === n || n, j = null === (r = null == u ? void 0 : u.enableDate) || void 0 === r || r, k = null === (i = null == u ? void 0 : u.enableAuthor) || void 0 === i || i, w = null === (o = null == u ? void 0 : u.enableComments) || void 0 === o || o, C = null !== (a = null == u ? void 0 : u.nameFieldAboveName) && void 0 !== a ? a : "", _ = null !== (l = null == u ? void 0 : u.nameFieldBottomLeft) && void 0 !== l ? l : "", M = null !== (s = null == u ? void 0 : u.nameFieldBottomRight) && void 0 !== s ? s : "", S = null != d ? d : y, A = S, T = A * x * h / y, E = null != p && p < T ? p : T, I = Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "100%"
}]
}),
width: "80px",
styles: hS
});
return Object(Ip.jsxs)("div", {
style: {
width: S,
backgroundColor: f,
borderRadius: g,
boxShadow: b,
textAlign: "left",
overflow: "hidden"
},
children: [O && Object(Ip.jsx)("div", {
style: {
width: A,
height: E,
borderRadius: m,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: E,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsxs)("div", {
style: {
padding: v
},
children: [C.length > 0 ? Object(Ip.jsx)("div", {
style: {
marginBottom: 5
},
children: I
}) : null, Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}]
}),
width: "100%",
styles: hS
}), j || w || k ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "50%"
}, {
type: _k.gap,
height: 14,
width: "50%"
}]
}),
width: "100%",
styles: hS
})]
}) : null, _.length > 0 || M > 0 ? Object(Ip.jsxs)(xY, {
children: [_.length > 0 ? Object(Ip.jsx)("div", {
className: "bottom-view",
children: I
}) : null, M.length > 0 ? Object(Ip.jsx)("div", {
className: "bottom-view",
children: I
}) : null]
}) : null]
})]
})
}
}]),
n
}(l.Component);
OY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var jY = OY
, kY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.templateData, c = l.width, u = l.maxHeight, d = l.ratioHeight, p = l.background, h = l.shadow, f = l.radius, b = l.imageRadius, g = l.padding, m = null !== (e = Number(Cu()(s, ["size", "width"], 335))) && void 0 !== e ? e : 335, v = null !== (t = Number(Cu()(s, ["size", "height"], 260))) && void 0 !== t ? t : 260, y = null === (n = null == s ? void 0 : s.enableImage) || void 0 === n || n, x = null === (r = null == s ? void 0 : s.enableDate) || void 0 === r || r, O = null === (i = null == s ? void 0 : s.enableAuthor) || void 0 === i || i, j = null === (o = null == s ? void 0 : s.enableComments) || void 0 === o || o, k = null === (a = null == s ? void 0 : s.enableCategory) || void 0 === a || a, w = null != c ? c : m, C = w, _ = C * v * d / m, M = null != u && u < _ ? u : _;
return Object(Ip.jsxs)("div", {
style: {
width: w,
backgroundColor: p,
borderRadius: f,
boxShadow: h,
textAlign: "left",
overflow: "hidden"
},
children: [y && Object(Ip.jsx)("div", {
style: {
width: C,
height: M,
borderRadius: b,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: M,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsxs)("div", {
style: {
padding: g
},
children: [k ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "40%"
}, {
type: _k.gap,
height: 16,
width: "60%"
}]
}),
width: "100%",
styles: hS
}), Object(Ip.jsx)("div", {
style: {
height: 8
}
})]
}) : null, Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}]
}),
width: "100%",
styles: hS
}), x || j || O ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "50%"
}, {
type: _k.gap,
height: 14,
width: "50%"
}]
}),
width: "100%",
styles: hS
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
kY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var wY = kY
, CY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.width, h = u.maxHeight, f = u.ratioHeight, b = u.background, g = u.shadow, m = u.radius, v = u.imageRadius, y = u.padding, x = u.rightVisitImage, O = null !== (e = Number(Cu()(d, ["size", "width"], 335))) && void 0 !== e ? e : 335, j = null !== (t = Number(Cu()(d, ["size", "height"], 260))) && void 0 !== t ? t : 260, k = null === (n = null == d ? void 0 : d.enableImage) || void 0 === n || n, w = null === (r = null == d ? void 0 : d.enableDate) || void 0 === r || r, C = null === (i = null == d ? void 0 : d.enableAuthor) || void 0 === i || i, _ = null === (o = null == d ? void 0 : d.enableComments) || void 0 === o || o, M = null === (a = null == d ? void 0 : d.enableCategory) || void 0 === a || a, S = null != p ? p : 335, A = S / 3 > 120 ? 120 : S / 3, T = A * j * f / O, E = null != h && h < T ? h : T, I = Object(Ip.jsx)("div", {
style: {
width: A,
height: E,
borderRadius: v,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: E,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
}), N = null !== (l = null == d ? void 0 : d.nameFieldAbove) && void 0 !== l ? l : "", z = null !== (s = null == d ? void 0 : d.nameFieldBelow) && void 0 !== s ? s : "", D = null !== (c = null == d ? void 0 : d.nameFieldBelowName) && void 0 !== c ? c : "", L = Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "100%"
}]
}),
width: "100%",
styles: hS
});
return Object(Ip.jsxs)("div", {
style: {
width: S,
backgroundColor: b,
borderRadius: m,
boxShadow: g,
padding: y,
textAlign: "left",
overflow: "hidden",
display: "flex"
},
children: [k && !x && I, Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginLeft: k && !x ? 16 : 0,
marginRight: k && x ? 16 : 0
},
children: [N.length > 0 ? Object(Ip.jsx)("div", {
style: {
marginBottom: 8
},
children: L
}) : null, M ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "40%"
}, {
type: _k.gap,
height: 16,
width: "60%"
}]
}),
width: "100%",
styles: hS
}), Object(Ip.jsx)("div", {
style: {
height: 16
}
})]
}) : null, Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}]
}),
width: "100%",
styles: hS
}), D.length > 0 ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: L
}) : null, w ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "25%"
}, {
type: _k.gap,
height: 16,
width: "75%"
}]
}),
width: "100%",
styles: hS
})]
}) : null, C || _ ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "50%"
}, {
type: _k.gap,
height: 14,
width: "50%"
}]
}),
width: "100%",
styles: hS
})]
}) : null, z.length > 0 ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: L
}) : null]
}), k && x && I]
})
}
}]),
n
}(l.Component);
CY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1,
rightVisitImage: !1
};
var _Y, MY, SY = CY, AY = Mu.b.span(_Y || (_Y = _u(["\n text-align: left;\n overflow: hidden;\n display: flex;\n"]))), TY = Mu.b.span(MY || (MY = _u(["\n display: block;\n width: 72px;\n font-size: 45px;\n font-weight: 600;\n overflow: hidden;\n color: transparent;\n -webkit-text-stroke-width: 1px;\n -webkit-text-stroke-color: #0686f8;\n"]))), EY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i = this.props, o = i.number, a = i.templateData, l = i.width, s = i.background, c = i.shadow, u = i.radius, d = i.padding, p = null === (e = null == a ? void 0 : a.enableDate) || void 0 === e || e, h = null === (t = null == a ? void 0 : a.enableAuthor) || void 0 === t || t, f = null === (n = null == a ? void 0 : a.enableComments) || void 0 === n || n, b = null === (r = null == a ? void 0 : a.enableCategory) || void 0 === r || r, g = null != l ? l : 335, m = o > 9 ? "".concat(o) : "0".concat(o);
return Object(Ip.jsxs)(AY, {
style: {
width: g,
backgroundColor: s,
borderRadius: u,
boxShadow: c,
padding: d
},
children: [Object(Ip.jsx)(TY, {
children: m
}), Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginLeft: 16
},
children: [b || p ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: b && p ? [{
type: _k.line,
height: 16,
width: "50%"
}, {
type: _k.gap,
height: 16,
width: "30%"
}, {
type: _k.line,
height: 16,
width: "20%"
}] : b ? [{
type: _k.line,
height: 16,
width: "50%"
}, {
type: _k.gap,
height: 16,
width: "50%"
}] : [{
type: _k.gap,
height: 16,
width: "80%"
}, {
type: _k.line,
height: 16,
width: "20%"
}]
}),
width: "100%",
styles: hS
}), Object(Ip.jsx)("div", {
style: {
height: 16
}
})]
}) : null, Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}]
}),
width: "100%",
styles: hS
}), h || f ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "60%"
}]
}),
width: "100%",
styles: hS
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
EY.defaultProps = {
number: 1,
width: 247,
radius: 0,
template: {}
};
var IY = EY
, NY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.templateData, i = n.width, o = n.maxHeight, a = n.ratioHeight, l = n.background, s = n.shadow, c = n.radius, u = n.imageRadius, d = null !== (e = Number(Cu()(r, ["size", "width"], 247))) && void 0 !== e ? e : 247, p = null != i ? i : d, h = p, f = h * (null !== (t = Number(Cu()(r, ["size", "height"], 192))) && void 0 !== t ? t : 192) * a / d, b = null != o && o < f ? o : f;
return Object(Ip.jsx)("div", {
style: {
width: p,
backgroundColor: l,
borderRadius: c,
boxShadow: s,
overflow: "hidden"
},
children: Object(Ip.jsx)("div", {
style: {
width: h,
height: b,
borderRadius: u,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: b,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
})
})
}
}]),
n
}(l.Component);
NY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var zY = NY
, DY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.templateData, c = l.width, u = l.maxHeight, d = l.ratioHeight, p = l.background, h = l.shadow, f = l.radius, b = l.imageRadius, g = l.padding, m = null !== (e = Number(Cu()(s, ["size", "width"], 335))) && void 0 !== e ? e : 335, v = null !== (t = Number(Cu()(s, ["size", "height"], 260))) && void 0 !== t ? t : 260, y = null === (n = null == s ? void 0 : s.enableImage) || void 0 === n || n, x = null === (r = null == s ? void 0 : s.enableDate) || void 0 === r || r, O = null === (i = null == s ? void 0 : s.enableAuthor) || void 0 === i || i, j = null === (o = null == s ? void 0 : s.enableComments) || void 0 === o || o, k = null === (a = null == s ? void 0 : s.enableCategory) || void 0 === a || a, w = null != c ? c : m, C = w, _ = C * v * d / m, M = null != u && u < _ ? u : _;
return Object(Ip.jsxs)("div", {
style: {
width: w,
backgroundColor: p,
borderRadius: f,
boxShadow: h,
textAlign: "left",
overflow: "hidden"
},
children: [y && Object(Ip.jsx)("div", {
style: {
width: C,
height: M,
borderRadius: b,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: M,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsxs)("div", {
style: {
padding: g
},
children: [k && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 16,
width: "30%"
}, {
type: _k.line,
height: 16,
width: "40%"
}, {
type: _k.gap,
height: 16,
width: "30%"
}]
}),
width: "100%",
styles: hS
}), Object(Ip.jsx)("div", {
style: {
height: 16
}
})]
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 20,
width: "12.5%"
}, {
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "12.5%"
}]
}),
width: "100%",
styles: hS
}), x ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 14,
width: "40%"
}, {
type: _k.line,
height: 14,
width: "20%"
}, {
type: _k.gap,
height: 14,
width: "40%"
}]
}),
width: "100%",
styles: hS
})]
}) : null, j || O ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 14,
width: "25%"
}, {
type: _k.line,
height: 14,
width: "50%"
}, {
type: _k.gap,
height: 14,
width: "25%"
}]
}),
width: "100%",
styles: hS
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
DY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var LY = DY
, RY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p = this.props, h = p.templateData, f = p.width, b = p.maxHeight, g = p.ratioHeight, m = p.background, v = p.shadow, y = p.radius, x = p.imageRadius, O = p.padding, j = null !== (e = Number(Cu()(h, ["size", "width"], 335))) && void 0 !== e ? e : 335, k = null !== (t = Number(Cu()(h, ["size", "height"], 260))) && void 0 !== t ? t : 260, w = null === (n = null == h ? void 0 : h.enableImage) || void 0 === n || n, C = null === (r = null == h ? void 0 : h.enableDate) || void 0 === r || r, _ = null === (i = null == h ? void 0 : h.enableAuthor) || void 0 === i || i, M = null === (o = null == h ? void 0 : h.enableComments) || void 0 === o || o, S = null === (a = null == h ? void 0 : h.enableCategory) || void 0 === a || a, A = null === (l = null == h ? void 0 : h.enableExcerpt) || void 0 === l || l, T = Dt()(O, "px"), E = null !== (s = Number(null !== (c = T[1]) && void 0 !== c ? c : 0)) && void 0 !== s ? s : 0, I = null !== (u = Number(null !== (d = T[3]) && void 0 !== d ? d : 0)) && void 0 !== u ? u : 0, N = null != f ? f : j + E + I, z = N - E - I, D = z * k * g / j, L = null != b && b < D ? b : D;
return Object(Ip.jsxs)("div", {
style: {
width: N,
backgroundColor: m,
padding: O,
borderRadius: y,
boxShadow: v,
textAlign: "left",
overflow: "hidden",
boxSizing: "border-box"
},
children: [S && Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "40%"
}, {
type: _k.gap,
height: 16,
width: "60%"
}]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}]
}),
width: "100%",
styles: hS
}), w && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsx)("div", {
style: {
width: z,
height: L,
borderRadius: x,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: L,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
})]
}), C || M || _ ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "50%"
}, {
type: _k.gap,
height: 14,
width: "50%"
}]
}),
width: "100%",
styles: hS
})]
}) : null, A ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 28,
width: "80%"
}, {
type: _k.gap,
height: 28,
width: "20%"
}]
}),
width: "100%",
styles: hS
})]
}) : null]
})
}
}]),
n
}(l.Component);
RY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var PY = RY
, BY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderShimmer",
value: function(e, t, n, r) {
return Object(Ip.jsx)("div", {
style: {
width: e,
marginTop: n,
marginBottom: r
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: t,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
})
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.templateData, c = l.width, u = l.maxHeight, d = l.ratioHeight, p = l.background, h = l.shadow, f = l.radius, b = l.imageRadius, g = l.padding, m = null !== (e = Number(Cu()(s, ["size", "width"], 335))) && void 0 !== e ? e : 335, v = null !== (t = Number(Cu()(s, ["size", "height"], 260))) && void 0 !== t ? t : 260, y = null === (n = null == s ? void 0 : s.enableImage) || void 0 === n || n, x = null === (r = null == s ? void 0 : s.enableDate) || void 0 === r || r, O = null === (i = null == s ? void 0 : s.enableAuthor) || void 0 === i || i, j = null === (o = null == s ? void 0 : s.enableComments) || void 0 === o || o, k = null === (a = null == s ? void 0 : s.enableCategory) || void 0 === a || a, w = null != c ? c : m, C = w, _ = C * v * d / m, M = null != u && u < _ ? u : _, S = y ? {
margin: "0px 16px",
position: "relative",
zIndex: 200,
marginTop: -(M - 43 > 4 ? 43 : M / 4),
padding: g,
backgroundColor: p,
borderRadius: f,
boxShadow: h,
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
alignItems: "center"
} : {
padding: g,
backgroundColor: p,
borderRadius: f,
boxShadow: h,
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
alignItems: "center"
};
return Object(Ip.jsxs)("div", {
style: {
width: w,
position: "relative"
},
children: [y && Object(Ip.jsx)("div", {
style: {
width: C,
height: M,
backgroundColor: "#E0E0E0",
borderRadius: b,
overflow: "hidden",
zIndex: 100
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: M,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsxs)("div", {
style: S,
children: [k && this._renderShimmer("40%", 16, 0, 16), this._renderShimmer("70%", 20, 0, 0), x || j || O ? this._renderShimmer("50%", 16, 16, 0) : null]
})]
})
}
}]),
n
}(l.Component);
BY.defaultProps = {
width: 247,
radius: 0,
template: {},
ratioHeight: 1
};
var FY = BY
, VY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.templateData, i = n.width, o = n.maxHeight, a = n.ratioHeight, l = n.background, s = n.shadow, c = n.radius, u = null !== (e = Number(Cu()(r, ["size", "width"], 247))) && void 0 !== e ? e : 247, d = null != i ? i : u, p = d, h = p * (null !== (t = Number(Cu()(r, ["size", "height"], 192))) && void 0 !== t ? t : 192) * a / u, f = null != o && o < h ? o : h;
return Object(Ip.jsx)("div", {
style: {
width: d,
backgroundColor: l,
borderRadius: c,
boxShadow: s,
overflow: "hidden"
},
children: Object(Ip.jsx)("div", {
style: {
width: p,
height: f,
borderRadius: 0,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: f,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
})
})
}
}]),
n
}(l.Component);
VY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var WY = VY
, qY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.templateData, c = l.width, u = l.maxHeight, d = l.ratioHeight, p = l.background, h = l.shadow, f = l.radius, b = l.imageRadius, g = l.padding, m = null !== (e = Number(Cu()(s, ["size", "width"], 335))) && void 0 !== e ? e : 335, v = null !== (t = Number(Cu()(s, ["size", "height"], 260))) && void 0 !== t ? t : 260, y = null === (n = null == s ? void 0 : s.enableImage) || void 0 === n || n, x = Dt()(g, "px"), O = null != c ? c : 353, j = O - (null !== (r = Number(null !== (i = x[1]) && void 0 !== i ? i : 0)) && void 0 !== r ? r : 0) - (null !== (o = Number(null !== (a = x[3]) && void 0 !== a ? a : 0)) && void 0 !== o ? o : 0) - 74, k = j * v * d / m, w = null != u && u < k ? u : k;
return Object(Ip.jsxs)("div", {
style: {
width: O,
textAlign: "left"
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 24,
width: "40%"
}, {
type: _k.gap,
height: 24,
width: "60%"
}]
}),
width: "100%",
styles: hS
}), Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsxs)("div", {
style: {
width: 74,
paddingLeft: 12,
boxSizing: "border-box"
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 80,
width: "100%"
}]
}),
width: 24,
styles: hS
}), Object(Ip.jsx)("div", {
style: {
marginTop: 30,
marginLeft: 12,
width: 1,
height: 102,
backgroundColor: "#dee2e6"
}
})]
}), Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: Object(Ip.jsxs)("div", {
style: {
backgroundColor: p,
padding: g,
borderRadius: f,
boxShadow: h,
overflow: "hidden",
boxSizing: "border-box"
},
children: [y && Object(Ip.jsx)("div", {
style: {
width: j,
height: w,
borderRadius: b,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: w,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: y ? 16 : 0,
width: "70%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "100%"
}]
}),
width: "100%",
styles: hS
})
})]
})
})]
})]
})
}
}]),
n
}(l.Component);
qY.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var HY, UY, XY, GY = qY, KY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.post
, n = e.width
, r = e.height
, i = e.radius
, o = e.fit
, a = "string" == typeof (null == t ? void 0 : t.thumb_medium) && "" !== (null == t ? void 0 : t.thumb_medium) ? null == t ? void 0 : t.thumb_medium : Zp.NoImage;
return Object(Ip.jsx)("div", {
style: {
width: n,
height: r,
borderRadius: i,
overflow: "hidden"
},
children: Object(Ip.jsx)("img", {
src: a,
alt: a,
width: n,
height: r,
style: {
objectFit: o
}
})
})
}
}]),
n
}(l.Component), YY = KY, QY = Mu.b.span(HY || (HY = _u(["\n font-size: 16px;\n font-weight: 600;\n"]))), JY = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.post, i = n.color;
return "" === (null !== (e = null == r ? void 0 : r.post_title) && void 0 !== e ? e : "") ? Object(Ip.jsx)("div", {
style: {
height: 18
}
}) : Object(Ip.jsx)(QY, {
style: {
color: i
},
children: null !== (t = null == r ? void 0 : r.post_title) && void 0 !== t ? t : ""
})
}
}]),
n
}(l.Component), ZY = JY, $Y = Mu.b.div(UY || (UY = _u(["\n display: flex;\n flex-wrap: wrap;\n margin: -2px -4px;\n"]))), eQ = Mu.b.span(XY || (XY = _u(["\n display: block;\n margin: 2px 4px;\n padding: 0px 8px;\n font-size: 10px;\n line-height: 19px;\n"]))), tQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.post
, n = e.background
, r = e.color
, i = e.radius
, o = e.justifyContent
, a = Cu()(t, ["post_categories"], []).map((function(e) {
return e.name
}
));
return Object(Ip.jsx)($Y, {
style: {
justifyContent: o
},
children: a.map((function(e, t) {
return Object(Ip.jsx)(eQ, {
style: {
backgroundColor: n,
color: r,
borderRadius: i
},
children: e
}, t)
}
))
})
}
}]),
n
}(l.Component);
tQ.defaultProps = {
justifyContent: "flex-start"
};
var nQ, rQ, iQ = tQ, oQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.post
, n = e.color;
return Object(Ip.jsx)("span", {
style: {
color: n,
fontSize: 12
},
children: pV(null != t && t.date ? new Date(null == t ? void 0 : t.date) : new Date, "MMMM DD, YYYY")
})
}
}]),
n
}(l.Component), aQ = oQ, lQ = Mu.b.div(nQ || (nQ = _u(["\n display: flex;\n align-items: center;\n font-size: 12px;\n"]))), sQ = Mu.b.span(rQ || (rQ = _u(["\n display: inline-block;\n margin-left: 8px;\n"]))), cQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.post, i = n.color, o = n.type;
if ("avatar" === o) {
var a = Cu()(r, ["post_author_avatar_urls", "48"], Zp.NoImage);
return Object(Ip.jsx)("div", {
style: {
width: 40,
height: 40,
borderRadius: "50%",
overflow: "hidden"
},
children: Object(Ip.jsx)("img", {
src: a,
alt: a,
style: {
width: 40,
height: 40
}
})
})
}
return "name" === o ? Object(Ip.jsx)(sQ, {
style: {
margin: 0
},
children: null !== (t = null == r ? void 0 : r.post_author) && void 0 !== t ? t : "Admin"
}) : Object(Ip.jsxs)(lQ, {
style: {
color: i
},
children: [Object(Ip.jsx)(YX, {
icon: {
name: "calendar",
type: "feather"
},
style: {
width: 14,
height: 14,
fontSize: 16
}
}), Object(Ip.jsx)(sQ, {
children: null !== (e = null == r ? void 0 : r.post_author) && void 0 !== e ? e : "Admin"
})]
})
}
}]),
n
}(l.Component);
cQ.defaultProps = {
type: "default"
};
var uQ, dQ, pQ = cQ, hQ = Mu.b.div(uQ || (uQ = _u(["\n display: flex;\n align-items: center;\n font-size: 12px;\n"]))), fQ = Mu.b.span(dQ || (dQ = _u(["\n display: inline-block;\n margin-left: 8px;\n"]))), bQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.post, r = t.color, i = t.size;
return Object(Ip.jsxs)(hQ, {
style: {
color: r
},
children: [Object(Ip.jsx)(YX, {
icon: {
name: "message-circle",
type: "feather"
},
style: {
width: i,
height: i,
fontSize: i
}
}), Object(Ip.jsx)(fQ, {
children: null !== (e = null == n ? void 0 : n.post_comment_count) && void 0 !== e ? e : "0"
})]
})
}
}]),
n
}(l.Component);
bQ.defaultProps = {
size: 14
};
var gQ, mQ = bQ, vQ = Mu.b.div(gQ || (gQ = _u(["\n width: 100%;\n height: 6px;\n background-color: #deecee;\n .percent {\n background-color: #0686f8;\n height: 100%;\n }\n"]))), yQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.field
, n = e.color
, r = Cu()(t, "type", "")
, i = Cu()(t, "value", "");
if ("text" === r)
return Object(Ip.jsx)("div", {
style: {
color: n
},
children: i
});
if ("progress-indicator" === r) {
var o;
if (null == i || Cb()(i) && i.length < 1)
return Object(Ip.jsx)("div", {});
var a = null !== (o = parseFloat(i)) && void 0 !== o ? o : 0
, l = a > 100 ? 100 : a < 0 ? 0 : a;
return Object(Ip.jsx)(vQ, {
style: {
color: n
},
children: Object(Ip.jsx)("div", {
className: "percent",
style: {
width: "".concat(l, "%")
}
})
})
}
return Object(Ip.jsx)("div", {
style: {
color: n
},
children: Cu()(t, "name", "")
})
}
}]),
n
}(l.Component);
yQ.defaultProps = {};
var xQ, OQ, jQ, kQ = yQ, wQ = function(e, t) {
if (kb()(e) && t.length > 0) {
var n = Cu()(e, ["afc_fields", t], null);
return kb()(n) ? n : null
}
return null
}, CQ = Mu.b.div(xQ || (xQ = _u(["\n position: relative;\n"]))), _Q = Mu.b.div(OQ || (OQ = _u(["\n position: absolute;\n top: 16px;\n left: 16px;\n right: 16px;\n bottom: 16px;\n .view-above-image {\n display: flex;\n align-items: flex-start;\n margin: 0px -8px;\n &-row {\n flex-grow: 1;\n padding: 0px 8px;\n }\n .right {\n text-align: right;\n }\n }\n"]))), MQ = Mu.b.div(jQ || (jQ = _u(["\n margin: 8px -8px 0px -8px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n .bottom-view {\n padding: 0px 8px;\n flex-shrink: 1;\n }\n"]))), SQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p = this.props, h = p.post, f = p.templateData, b = p.width, g = p.maxHeight, m = p.ratioHeight, v = p.background, y = p.textColor, x = p.subTextColor, O = p.labelColor, j = p.labelTextColor, k = p.labelRadius, w = p.shadow, C = p.radius, _ = p.imageRadius, M = p.padding, S = null !== (e = Number(Cu()(f, ["size", "width"], 335))) && void 0 !== e ? e : 335, A = null !== (t = Number(Cu()(f, ["size", "height"], 260))) && void 0 !== t ? t : 260, T = null === (n = null == f ? void 0 : f.enableImage) || void 0 === n || n, E = null === (r = null == f ? void 0 : f.enableCategory) || void 0 === r || r, I = null === (i = null == f ? void 0 : f.enableDate) || void 0 === i || i, N = null === (o = null == f ? void 0 : f.enableAuthor) || void 0 === o || o, z = null === (a = null == f ? void 0 : f.enableComments) || void 0 === a || a, D = Cu()(f, "imageSize", "cover"), L = null != b ? b : S, R = L, P = R * A * m / S, B = null != g && g < P ? g : P, F = null !== (l = null == f ? void 0 : f.nameFieldTopLeftImage) && void 0 !== l ? l : "", V = null !== (s = null == f ? void 0 : f.nameFieldTopRightImage) && void 0 !== s ? s : "", W = null !== (c = null == f ? void 0 : f.nameFieldAboveName) && void 0 !== c ? c : "", q = null !== (u = null == f ? void 0 : f.nameFieldBottomLeft) && void 0 !== u ? u : "", H = null !== (d = null == f ? void 0 : f.nameFieldBottomRight) && void 0 !== d ? d : "";
return Object(Ip.jsxs)("div", {
style: {
width: L,
backgroundColor: v,
borderRadius: C,
boxShadow: w,
textAlign: "left",
overflow: "hidden"
},
children: [T && Object(Ip.jsxs)(CQ, {
children: [Object(Ip.jsx)(YY, {
post: h,
width: R,
height: B,
radius: _,
fit: D
}), E || null != wQ(h, F) || null != wQ(h, V) ? Object(Ip.jsx)(_Q, {
children: Object(Ip.jsxs)("div", {
className: "view-above-image",
children: [Object(Ip.jsxs)("div", {
className: "view-above-image-row",
children: [E && Object(Ip.jsx)("div", {
style: {
marginBottom: 8
},
children: Object(Ip.jsx)(iQ, {
post: h,
background: O,
color: j,
radius: k
})
}), null != wQ(h, F) ? Object(Ip.jsx)(kQ, {
field: wQ(h, F),
color: x
}) : null]
}), null != wQ(h, V) ? Object(Ip.jsx)("div", {
className: "view-above-image-row right",
children: Object(Ip.jsx)(kQ, {
field: wQ(h, H),
color: x
})
}) : null]
})
}) : null]
}), Object(Ip.jsxs)("div", {
style: {
padding: M
},
children: [null != wQ(h, W) ? Object(Ip.jsx)("div", {
style: {
marginBottom: 5
},
children: Object(Ip.jsx)(kQ, {
field: wQ(h, W),
color: x
})
}) : null, Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: h,
color: y
})
}), I || N || z ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 8
},
children: [I && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(aQ, {
post: h,
color: x
})
}), N && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: h,
color: x
})
}), z && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: h,
color: x
})
})]
}) : null, null != wQ(h, q) || null != wQ(h, H) ? Object(Ip.jsxs)(MQ, {
children: [null != wQ(h, q) ? Object(Ip.jsx)("div", {
className: "bottom-view",
children: Object(Ip.jsx)(kQ, {
field: wQ(h, q),
color: x
})
}) : null, null != wQ(h, H) ? Object(Ip.jsx)("div", {
className: "bottom-view",
children: Object(Ip.jsx)(kQ, {
field: wQ(h, H),
color: x
})
}) : null]
}) : null]
})]
})
}
}]),
n
}(l.Component);
SQ.defaultProps = {};
var AQ = SQ
, TQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.post, c = l.templateData, u = l.width, d = l.maxHeight, p = l.ratioHeight, h = l.background, f = l.textColor, b = l.subTextColor, g = l.labelColor, m = l.labelTextColor, v = l.labelRadius, y = l.shadow, x = l.radius, O = l.imageRadius, j = l.padding, k = null !== (e = Number(Cu()(c, ["size", "width"], 335))) && void 0 !== e ? e : 335, w = null !== (t = Number(Cu()(c, ["size", "height"], 260))) && void 0 !== t ? t : 260, C = null === (n = null == c ? void 0 : c.enableImage) || void 0 === n || n, _ = null === (r = null == c ? void 0 : c.enableCategory) || void 0 === r || r, M = null === (i = null == c ? void 0 : c.enableDate) || void 0 === i || i, S = null === (o = null == c ? void 0 : c.enableAuthor) || void 0 === o || o, A = null === (a = null == c ? void 0 : c.enableComments) || void 0 === a || a, T = Cu()(c, "imageSize", "cover"), E = null != u ? u : k, I = E, N = I * w * p / k, z = null != d && d < N ? d : N;
return Object(Ip.jsxs)("div", {
style: {
width: E,
backgroundColor: h,
borderRadius: x,
boxShadow: y,
textAlign: "left",
overflow: "hidden"
},
children: [C && Object(Ip.jsx)(YY, {
post: s,
width: I,
height: z,
radius: O,
fit: T
}), Object(Ip.jsxs)("div", {
style: {
padding: j
},
children: [_ ? Object(Ip.jsx)("div", {
style: {
marginBottom: 8
},
children: Object(Ip.jsx)(iQ, {
post: s,
background: g,
color: m,
radius: v
})
}) : null, Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: s,
color: f
})
}), M || S || A ? Object(Ip.jsxs)("div", {
style: {
marginTop: 8,
display: "flex",
flexWrap: "wrap",
margin: "0px -8px"
},
children: [M && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(aQ, {
post: s,
color: b
})
}), S && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: s,
color: b
})
}), A && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: s,
color: b
})
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
TQ.defaultProps = {};
var EQ = TQ
, IQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.post, p = u.templateData, h = u.width, f = u.maxHeight, b = u.ratioHeight, g = u.background, m = u.textColor, v = u.subTextColor, y = u.labelColor, x = u.labelTextColor, O = u.labelRadius, j = u.shadow, k = u.radius, w = u.imageRadius, C = u.padding, _ = u.rightVisitImage, M = null !== (e = Number(Cu()(p, ["size", "width"], 335))) && void 0 !== e ? e : 335, S = null !== (t = Number(Cu()(p, ["size", "height"], 260))) && void 0 !== t ? t : 260, A = null === (n = null == p ? void 0 : p.enableImage) || void 0 === n || n, T = null === (r = null == p ? void 0 : p.enableCategory) || void 0 === r || r, E = null === (i = null == p ? void 0 : p.enableDate) || void 0 === i || i, I = null === (o = null == p ? void 0 : p.enableAuthor) || void 0 === o || o, N = null === (a = null == p ? void 0 : p.enableComments) || void 0 === a || a, z = Cu()(p, "imageSize", "cover"), D = null != h ? h : 335, L = D / 3 > 120 ? 120 : D / 3, R = L * S * b / M, P = null != f && f < R ? f : R, B = Object(Ip.jsx)("div", {
style: {
width: L,
height: P,
borderRadius: w,
overflow: "hidden"
},
children: Object(Ip.jsx)(YY, {
post: d,
width: L,
height: P,
radius: w,
fit: z
})
}), F = null !== (l = null == p ? void 0 : p.nameFieldAbove) && void 0 !== l ? l : "", V = null !== (s = null == p ? void 0 : p.nameFieldBelow) && void 0 !== s ? s : "", W = null !== (c = null == p ? void 0 : p.nameFieldBelowName) && void 0 !== c ? c : "";
return Object(Ip.jsxs)("div", {
style: {
width: D,
backgroundColor: g,
padding: C,
borderRadius: k,
boxShadow: j,
display: "flex",
textAlign: "left",
overflow: "hidden"
},
children: [A && !_ && B, Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginLeft: A && !_ ? 16 : 0,
marginRight: A && _ ? 16 : 0
},
children: [null != wQ(d, F) ? Object(Ip.jsx)("div", {
style: {
marginBottom: 8
},
children: Object(Ip.jsx)(kQ, {
field: wQ(d, F),
color: v
})
}) : null, T && Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(iQ, {
post: d,
background: y,
color: x,
radius: O
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: d,
color: m
})
}), null != wQ(d, W) ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(kQ, {
field: wQ(d, W),
color: v
})
}) : null, E && Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(aQ, {
post: d,
color: v
})
}), I || N ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 16
},
children: [I && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: d,
color: v
})
}), N && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: d,
color: v
})
})]
}) : null, null != wQ(d, V) ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(kQ, {
field: wQ(d, V),
color: v
})
}) : null]
}), A && _ && B]
})
}
}]),
n
}(l.Component);
IQ.defaultProps = {
rightVisitImage: !1
};
var NQ, zQ, DQ = IQ, LQ = Mu.b.div(NQ || (NQ = _u(["\n text-align: left;\n overflow: hidden;\n display: flex;\n"]))), RQ = Mu.b.span(zQ || (zQ = _u(["\n display: block;\n width: 72px;\n font-size: 45px;\n font-weight: 600;\n overflow: hidden;\n color: transparent;\n -webkit-text-stroke-width: 1px;\n -webkit-text-stroke-color: #0686f8;\n"]))), PQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i = this.props, o = i.post, a = i.number, l = i.templateData, s = i.width, c = i.background, u = i.textColor, d = i.subTextColor, p = i.labelColor, h = i.labelTextColor, f = i.labelRadius, b = i.shadow, g = i.radius, m = i.padding, v = null === (e = null == l ? void 0 : l.enableDate) || void 0 === e || e, y = null === (t = null == l ? void 0 : l.enableAuthor) || void 0 === t || t, x = null === (n = null == l ? void 0 : l.enableComments) || void 0 === n || n, O = null === (r = null == l ? void 0 : l.enableCategory) || void 0 === r || r, j = null != s ? s : 335, k = a > 9 ? "".concat(a) : "0".concat(a);
return Object(Ip.jsxs)(LQ, {
style: {
width: j,
backgroundColor: c,
borderRadius: g,
boxShadow: b,
padding: m
},
children: [Object(Ip.jsx)(RQ, {
children: k
}), Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginLeft: 16,
overflow: "hidden"
},
children: [O || v ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: O && Object(Ip.jsx)(iQ, {
post: o,
background: p,
color: h,
radius: f
})
}), v ? Object(Ip.jsx)("div", {
style: {
marginLeft: 16
},
children: Object(Ip.jsx)(aQ, {
post: o,
color: d
})
}) : null]
}), Object(Ip.jsx)("div", {
style: {
height: 16
}
})]
}) : null, Object(Ip.jsx)(ZY, {
post: o,
color: u
}), y || x ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
margin: "0px -4px"
},
children: [y && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: o,
color: d
})
}), x && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: o,
color: d
})
})]
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
PQ.defaultProps = {
number: 1,
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var BQ, FQ, VQ, WQ, qQ = PQ, HQ = Mu.b.span(BQ || (BQ = _u(["\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n line-clamp: 2; \n -webkit-box-orient: vertical;\n white-space: break-spaces;\n"]))), UQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.post, i = n.color, o = (null !== (e = null === (t = r.excerpt) || void 0 === t ? void 0 : t.rendered) && void 0 !== e ? e : "").replace(/<[^>]*>|&[^;]+;/g, " ");
return Object(Ip.jsx)(HQ, {
style: {
color: i
},
children: o
})
}
}]),
n
}(l.Component), XQ = UQ, GQ = Mu.b.div(FQ || (FQ = _u(["\n position: relative;\n text-align: left;\n overflow: hidden,\n"]))), KQ = Mu.b.div(VQ || (VQ = _u(["\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n box-sizing: border-box;\n"]))), YQ = Mu.b.div(WQ || (WQ = _u(["\n width: 50px;\n height: 2px;\n margin: 24px 0px;\n"]))), QQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s = this.props, c = s.post, u = s.templateData, d = s.width, p = s.maxHeight, h = s.ratioHeight, f = s.background, b = s.textColor, g = s.subTextColor, m = s.labelColor, v = s.labelTextColor, y = s.labelRadius, x = s.shadow, O = s.radius, j = s.imageRadius, k = s.padding, w = s.darkModeKey, C = null !== (e = Number(Cu()(u, ["size", "width"], 247))) && void 0 !== e ? e : 247, _ = null !== (t = Number(Cu()(u, ["size", "height"], 192))) && void 0 !== t ? t : 192, M = null === (n = null == u ? void 0 : u.enableCategory) || void 0 === n || n, S = null === (r = null == u ? void 0 : u.enableDate) || void 0 === r || r, A = null === (i = null == u ? void 0 : u.enableAuthor) || void 0 === i || i, T = null === (o = null == u ? void 0 : u.enableComments) || void 0 === o || o, E = null === (a = null == u ? void 0 : u.enableExcerpt) || void 0 === a || a, I = Cu()(u, "imageSize", "cover"), N = rH(Cu()(u, ["color", w], ec.black)), z = null !== (l = Number(Cu()(u, "opacity", .5))) && void 0 !== l ? l : .5, D = rH(Cu()(u, ["colorLine", w], ec.borderLightMode)), L = null != d ? d : C, R = L, P = R * _ * h / C, B = null != p && p < P ? p : P;
return Object(Ip.jsxs)(GQ, {
style: {
width: L,
height: B,
backgroundColor: f,
borderRadius: O,
boxShadow: x
},
children: [Object(Ip.jsx)(YY, {
post: c,
width: R,
height: B,
radius: j,
fit: I
}), Object(Ip.jsx)(KQ, {
style: {
borderRadius: j,
backgroundColor: N,
opacity: z
}
}), Object(Ip.jsxs)(KQ, {
style: {
padding: k,
display: "flex",
flexDirection: "column",
overflow: "hidden"
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1
},
children: [M && Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(iQ, {
post: c,
background: m,
color: v,
radius: y
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: c,
color: b
})
})]
}), Object(Ip.jsx)(YQ, {
style: {
backgroundColor: D
}
}), E && Object(Ip.jsx)(XQ, {
post: c,
color: g
}), S || A || T ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 16
},
children: [S && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(aQ, {
post: c,
color: g
})
}), A && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: c,
color: g
})
}), T && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: c,
color: g
})
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
QQ.defaultProps = {};
var JQ = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(QQ)
, ZQ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.post, c = l.templateData, u = l.width, d = l.maxHeight, p = l.ratioHeight, h = l.background, f = l.textColor, b = l.subTextColor, g = l.labelColor, m = l.labelTextColor, v = l.labelRadius, y = l.shadow, x = l.radius, O = l.imageRadius, j = l.padding, k = null !== (e = Number(Cu()(c, ["size", "width"], 335))) && void 0 !== e ? e : 335, w = null !== (t = Number(Cu()(c, ["size", "height"], 260))) && void 0 !== t ? t : 260, C = null === (n = null == c ? void 0 : c.enableImage) || void 0 === n || n, _ = null === (r = null == c ? void 0 : c.enableCategory) || void 0 === r || r, M = null === (i = null == c ? void 0 : c.enableDate) || void 0 === i || i, S = null === (o = null == c ? void 0 : c.enableAuthor) || void 0 === o || o, A = null === (a = null == c ? void 0 : c.enableComments) || void 0 === a || a, T = Cu()(c, "imageSize", "cover"), E = null != u ? u : k, I = E, N = I * w * p / k, z = null != d && d < N ? d : N;
return Object(Ip.jsxs)("div", {
style: {
width: E,
backgroundColor: h,
borderRadius: x,
boxShadow: y,
textAlign: "center",
overflow: "hidden"
},
children: [C && Object(Ip.jsx)(YY, {
post: s,
width: I,
height: z,
radius: O,
fit: T
}), Object(Ip.jsxs)("div", {
style: {
padding: j
},
children: [_ && Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(iQ, {
post: s,
background: g,
color: m,
radius: v,
justifyContent: "center"
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: s,
color: f
})
}), M && Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(aQ, {
post: s,
color: b
})
}), S || A ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
justifyContent: "center",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 8
},
children: [S && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: s,
color: b
})
}), A && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: s,
color: b
})
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
ZQ.defaultProps = {};
var $Q = ZQ
, eJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p = this.props, h = p.post, f = p.templateData, b = p.width, g = p.maxHeight, m = p.ratioHeight, v = p.background, y = p.textColor, x = p.subTextColor, O = p.labelColor, j = p.labelTextColor, k = p.labelRadius, w = p.shadow, C = p.radius, _ = p.imageRadius, M = p.padding, S = null !== (e = Number(Cu()(f, ["size", "width"], 335))) && void 0 !== e ? e : 335, A = null !== (t = Number(Cu()(f, ["size", "height"], 260))) && void 0 !== t ? t : 260, T = null === (n = null == f ? void 0 : f.enableImage) || void 0 === n || n, E = null === (r = null == f ? void 0 : f.enableDate) || void 0 === r || r, I = null === (i = null == f ? void 0 : f.enableAuthor) || void 0 === i || i, N = null === (o = null == f ? void 0 : f.enableComments) || void 0 === o || o, z = null === (a = null == f ? void 0 : f.enableCategory) || void 0 === a || a, D = null === (l = null == f ? void 0 : f.enableExcerpt) || void 0 === l || l, L = Cu()(f, "imageSize", "cover"), R = Dt()(M, "px"), P = null !== (s = Number(null !== (c = R[1]) && void 0 !== c ? c : 0)) && void 0 !== s ? s : 0, B = null !== (u = Number(null !== (d = R[3]) && void 0 !== d ? d : 0)) && void 0 !== u ? u : 0, F = null != b ? b : S + P + B, V = F - P - B, W = V * A * m / S, q = null != g && g < W ? g : W;
return Object(Ip.jsxs)("div", {
style: {
width: F,
padding: M,
backgroundColor: v,
borderRadius: C,
boxShadow: w,
textAlign: "left",
overflow: "hidden",
boxSizing: "border-box"
},
children: [z ? Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(iQ, {
post: h,
background: O,
color: j,
radius: k
})
}) : null, Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: h,
color: y
})
}), T && Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(YY, {
post: h,
width: V,
height: q,
radius: _,
fit: L
})
}), E || I || N ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 16
},
children: [E && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(aQ, {
post: h,
color: x
})
}), I && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: h,
color: x
})
}), N && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: h,
color: x
})
})]
}) : null, D && Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(XQ, {
post: h,
color: x
})
})]
})
}
}]),
n
}(l.Component);
eJ.defaultProps = {};
var tJ = eJ
, nJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.post, c = l.templateData, u = l.width, d = l.maxHeight, p = l.ratioHeight, h = l.background, f = l.textColor, b = l.subTextColor, g = l.labelColor, m = l.labelTextColor, v = l.labelRadius, y = l.shadow, x = l.radius, O = l.imageRadius, j = l.padding, k = null !== (e = Number(Cu()(c, ["size", "width"], 335))) && void 0 !== e ? e : 335, w = null !== (t = Number(Cu()(c, ["size", "height"], 260))) && void 0 !== t ? t : 260, C = null === (n = null == c ? void 0 : c.enableImage) || void 0 === n || n, _ = null === (r = null == c ? void 0 : c.enableCategory) || void 0 === r || r, M = null === (i = null == c ? void 0 : c.enableDate) || void 0 === i || i, S = null === (o = null == c ? void 0 : c.enableAuthor) || void 0 === o || o, A = null === (a = null == c ? void 0 : c.enableComments) || void 0 === a || a, T = Cu()(c, "imageSize", "cover"), E = null != u ? u : k, I = E, N = I * w * p / k, z = null != d && d < N ? d : N, D = z - 43 > 4 ? 43 : z / 4;
return Object(Ip.jsxs)("div", {
style: {
width: E,
position: "relative"
},
children: [C && Object(Ip.jsx)(YY, {
post: s,
width: I,
height: z,
radius: O,
fit: T
}), Object(Ip.jsx)("div", {
style: C ? {
margin: "0px 16px",
marginTop: -D,
position: "relative"
} : void 0,
children: Object(Ip.jsxs)("div", {
style: {
padding: j,
backgroundColor: h,
borderRadius: x,
boxShadow: y,
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
alignItems: "center",
textAlign: "center"
},
children: [_ && Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(iQ, {
post: s,
background: g,
color: m,
radius: v,
justifyContent: "center"
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: s,
color: f
})
}), M || S || A ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
justifyContent: "center",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 16
},
children: [M && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(aQ, {
post: s,
color: b
})
}), S && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: s,
color: b
})
}), A && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: s,
color: b
})
})]
}) : null]
})
})]
})
}
}]),
n
}(l.Component);
nJ.defaultProps = {};
var rJ, iJ, oJ = nJ, aJ = Mu.b.div(rJ || (rJ = _u(["\n position: relative;\n text-align: left;\n overflow: hidden,\n"]))), lJ = Mu.b.div(iJ || (iJ = _u(["\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n box-sizing: border-box;\n"]))), sJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.post, c = l.templateData, u = l.width, d = l.maxHeight, p = l.ratioHeight, h = l.background, f = l.textColor, b = l.subTextColor, g = l.labelColor, m = l.labelTextColor, v = l.labelRadius, y = l.shadow, x = l.radius, O = l.imageRadius, j = l.padding, k = l.darkModeKey, w = null !== (e = Number(Cu()(c, ["size", "width"], 247))) && void 0 !== e ? e : 247, C = null !== (t = Number(Cu()(c, ["size", "height"], 192))) && void 0 !== t ? t : 192, _ = null === (n = null == c ? void 0 : c.enableCategory) || void 0 === n || n, M = null === (r = null == c ? void 0 : c.enableDate) || void 0 === r || r, S = null === (i = null == c ? void 0 : c.enableAuthor) || void 0 === i || i, A = null === (o = null == c ? void 0 : c.enableComments) || void 0 === o || o, T = Cu()(c, "imageSize", "cover"), E = null !== (a = Number(Cu()(c, "opacity", .9))) && void 0 !== a ? a : .9, I = rH(Cu()(c, ["colorBegin", k], ec.transparent)), N = rH(Cu()(c, ["colorEnd", k], ec.black)), z = null != u ? u : w, D = z, L = D * C * p / w, R = null != d && d < L ? d : L;
return Object(Ip.jsxs)(aJ, {
style: {
width: z,
height: R,
backgroundColor: h,
borderRadius: x,
boxShadow: y
},
children: [Object(Ip.jsx)(YY, {
post: s,
width: D,
height: R,
radius: O,
fit: T
}), Object(Ip.jsx)(lJ, {
style: {
borderRadius: O,
background: "linear-gradient(".concat(I, ", ").concat(N, ")"),
opacity: E
}
}), Object(Ip.jsxs)(lJ, {
style: {
padding: j,
display: "flex",
flexDirection: "column",
justifyContent: "flex-end",
overflow: "hidden"
},
children: [_ && Object(Ip.jsx)("div", {
style: {
marginBottom: 16
},
children: Object(Ip.jsx)(iQ, {
post: s,
background: g,
color: m,
radius: v
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(ZY, {
post: s,
color: f
})
}), M || S || A ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
flexWrap: "wrap",
margin: "0px -8px",
marginTop: 16
},
children: [M && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(aQ, {
post: s,
color: b
})
}), S && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(pQ, {
post: s,
color: b
})
}), A && Object(Ip.jsx)("div", {
style: {
margin: "0px 8px"
},
children: Object(Ip.jsx)(mQ, {
post: s,
color: b
})
})]
}) : null]
})]
})
}
}]),
n
}(l.Component);
sJ.defaultProps = {};
var cJ = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(sJ)
, uJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d = this.props, p = d.post, h = d.templateData, f = d.width, b = d.maxHeight, g = d.ratioHeight, m = d.background, v = d.labelColor, y = d.labelTextColor, x = d.labelRadius, O = d.subTextColor, j = d.textColor, k = d.shadow, w = d.radius, C = d.imageRadius, _ = d.padding, M = null !== (e = Number(Cu()(h, ["size", "width"], 335))) && void 0 !== e ? e : 335, S = null !== (t = Number(Cu()(h, ["size", "height"], 260))) && void 0 !== t ? t : 260, A = null === (n = null == h ? void 0 : h.enableImage) || void 0 === n || n, T = null === (r = null == h ? void 0 : h.enableCategory) || void 0 === r || r, E = null === (i = null == h ? void 0 : h.enableDate) || void 0 === i || i, I = null === (o = null == h ? void 0 : h.enableAuthor) || void 0 === o || o, N = null === (a = null == h ? void 0 : h.enableComments) || void 0 === a || a, z = Cu()(h, "imageSize", "cover"), D = Dt()(_, "px"), L = null != f ? f : 353, R = L - (null !== (l = Number(null !== (s = D[1]) && void 0 !== s ? s : 0)) && void 0 !== l ? l : 0) - (null !== (c = Number(null !== (u = D[3]) && void 0 !== u ? u : 0)) && void 0 !== c ? c : 0) - 74, P = R * S * g / M, B = null != b && b < P ? b : P;
return Object(Ip.jsxs)("div", {
style: {
width: L,
textAlign: "left"
},
children: [Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [I && Object(Ip.jsx)("div", {
style: {
marginRight: 8
},
children: Object(Ip.jsx)(pQ, {
post: p,
color: j,
type: "avatar"
})
}), Object(Ip.jsxs)("div", {
style: {
flex: 1
},
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(pQ, {
post: p,
color: j,
type: "name"
})
}), E && Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(aQ, {
post: p,
color: O
})
})]
}), T ? Object(Ip.jsx)("div", {
style: {
maxWidth: "40%",
overflow: "hidden",
marginLeft: 8
},
children: Object(Ip.jsx)(iQ, {
color: y,
background: v,
post: p,
radius: x
})
}) : null]
}), Object(Ip.jsx)("div", {
style: {
height: 16
}
}), Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsxs)("div", {
style: {
width: 74,
paddingLeft: 12,
boxSizing: "border-box"
},
children: [N ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(mQ, {
post: p,
color: O,
size: 20
})
}) : null, Object(Ip.jsx)("div", {
style: {
marginTop: 24
},
children: Object(Ip.jsx)(YX, {
icon: {
name: "calendar",
type: "bookmark"
},
style: {
width: 20,
height: 20,
fontSize: 20,
color: O
}
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 24
},
children: Object(Ip.jsx)(YX, {
icon: {
name: "calendar",
type: "upload"
},
style: {
width: 20,
height: 20,
fontSize: 20,
color: O
}
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 30,
marginLeft: 12,
width: 1,
height: 102,
backgroundColor: "#dee2e6"
}
})]
}), Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: Object(Ip.jsxs)("div", {
style: {
backgroundColor: m,
padding: _,
borderRadius: w,
boxShadow: k,
overflow: "hidden",
boxSizing: "border-box"
},
children: [A && Object(Ip.jsx)(YY, {
post: p,
width: R,
height: B,
radius: C,
fit: z
}), Object(Ip.jsx)("div", {
style: {
marginTop: A ? 16 : 0
},
children: Object(Ip.jsx)(ZY, {
post: p,
color: j
})
})]
})
})]
})]
})
}
}]),
n
}(l.Component);
uJ.defaultProps = {
width: 247,
height: 192,
radius: 0,
template: {},
ratioHeight: 1
};
var dJ, pJ, hJ, fJ, bJ = {
list: JK,
carousel: nY,
masonry: lY,
"big-first": hY,
slideshow: yY
}, gJ = {
default: jY,
vertical: wY,
horizontal: SY,
number: IY,
overlay: zY,
verticalCenter: LY,
topName: PY,
emerge: FY,
gradient: WY,
timeLine: GY
}, mJ = {
default: AQ,
vertical: EQ,
horizontal: DQ,
number: qQ,
overlay: JQ,
verticalCenter: $Q,
topName: tJ,
emerge: oJ,
gradient: cJ,
timeLine: uJ
}, vJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d = this.props, p = d.loading, h = d.posts, f = d.limit, b = d.layout, g = d.template, m = d.enableLoadMore, v = d.width, y = d.styles, x = d.darkModeKey, O = rH(Cu()(y, ["background", x], ec.transparent)), j = null !== (e = Number(Cu()(y, "height", 300))) && void 0 !== e ? e : 300, k = null !== (t = Number(Cu()(y, "maxHeightImage", 300))) && void 0 !== t ? t : 300, w = null !== (n = Number(Cu()(y, "pad", 12))) && void 0 !== n ? n : 12, C = null !== (r = Number(Cu()(y, "dividerWidth", 1))) && void 0 !== r ? r : 1, _ = rH(Cu()(y, ["dividerColor", x], ec.borderLightMode)), M = rH(Cu()(y, ["indicatorColor", x], ec.borderLightMode)), S = rH(Cu()(y, ["indicatorActiveColor", x], ec.tertiaryText)), A = rH(Cu()(y, ["backgroundColorItem", x], ec.transparent)), T = rH(Cu()(y, ["textColor", x], ec.black)), E = rH(Cu()(y, ["subTextColor", x], ec.tertiaryText)), I = rH(Cu()(y, ["labelColor", x], ec.greenColor)), N = rH(Cu()(y, ["labelTextColor", x], ec.white)), z = null !== (i = Number(Cu()(y, "labelRadius", 12))) && void 0 !== i ? i : 12, D = null !== (o = Number(Cu()(y, "radiusImage", 8))) && void 0 !== o ? o : 8, L = Qq(Cu()(y, "paddingContent", {}), "paddingContent"), R = function(e) {
var t = (null == e ? void 0 : e.topLeft) || 0
, n = (null == e ? void 0 : e.topRight) || 0
, r = (null == e ? void 0 : e.bottomRight) || 0
, i = (null == e ? void 0 : e.bottomLeft) || 0;
return "".concat(t, "px ").concat(n, "px ").concat(r, "px ").concat(i, "px")
}(Cu()(y, "radius", {})), P = rH(Cu()(y, ["shadowColor", x], ec.transparent)), B = null !== (a = Number(Cu()(y, ["offsetX"], 0))) && void 0 !== a ? a : 0, F = null !== (l = Number(Cu()(y, ["offsetY"], 4))) && void 0 !== l ? l : 4, V = null !== (s = Number(Cu()(y, ["blurRadius"], 24))) && void 0 !== s ? s : 24, W = null !== (c = Number(Cu()(y, ["spreadRadius"], 0))) && void 0 !== c ? c : 0, q = FX(v, y.padding, y.margin), H = "".concat(B, "px ").concat(F, "px ").concat(V, "px ").concat(W, "px ").concat(P), U = Cu()(g, "template", "default"), X = Cu()(g, "data", {}), G = Cu()(X, "alignment", "left"), K = null !== (u = bJ[b]) && void 0 !== u ? u : bJ.list, Y = p ? f : h.length;
return Object(Ip.jsx)(Jq, {
margin: null == y ? void 0 : y.margin,
padding: null == y ? void 0 : y.padding,
style: {
backgroundColor: O,
height: "carousel" === b || "slideshow" === b ? j : "auto",
boxSizing: "border-box",
overflow: "hidden"
},
children: Object(Ip.jsx)(K, {
length: Y,
width: q,
pad: w,
dividerWidth: C,
dividerColor: _,
indicatorColor: M,
indicatorActiveColor: S,
enableLoadMore: m && (p || h.length >= f),
renderItem: function(e, t, n, r) {
var i, o = "big-first" === b && 0 === e ? "default" : U, a = "big-first" === b && 0 === e ? 8 : D, l = "big-first" === b && 0 === e ? "none" : R, s = "big-first" === b && 0 === e ? "8px 0px 0px 0px" : L, c = "big-first" === b && 0 === e ? _t(_t({}, X), {}, {
size: {
width: 335,
height: 260
}
}) : X;
if (p) {
var u, d = null !== (u = gJ[o]) && void 0 !== u ? u : gJ.default;
return Object(Ip.jsx)(d, {
number: e + 1,
templateData: c,
width: t,
maxHeight: "slideshow" === b ? k : null,
ratioHeight: null != n ? n : 1,
background: A,
padding: s,
radius: l,
imageRadius: a,
labelRadius: z,
shadow: H,
rightVisitImage: "right" === G || "zigzag" === G && r
})
}
var f = null !== (i = mJ[o]) && void 0 !== i ? i : mJ.default;
return Object(Ip.jsx)(f, {
number: e + 1,
post: h[e],
templateData: c,
width: t,
maxHeight: "slideshow" === b ? k : null,
ratioHeight: null != n ? n : 1,
background: A,
textColor: T,
subTextColor: E,
labelColor: I,
labelTextColor: N,
padding: s,
radius: l,
imageRadius: a,
labelRadius: z,
shadow: H,
rightVisitImage: "right" === G || "zigzag" === G && r
})
}
})
})
}
}]),
n
}(l.Component), yJ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(vJ), xJ = ps.a.CancelToken, OJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
posts: [],
loading: !0
},
e.source = xJ.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y, x;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
a = e.props,
l = a.widget.fields,
s = a.language,
c = a.translate,
u = c ? s : "text",
d = c ? s : "en",
p = null !== (n = Number(null !== (r = null == l ? void 0 : l.page) && void 0 !== r ? r : 1)) && void 0 !== n ? n : 1,
h = null !== (i = Number(null !== (o = null == l ? void 0 : l.perPage) && void 0 !== o ? o : 10)) && void 0 !== i ? i : 10,
f = Cu()(l, ["search", u], ""),
b = Cu()(l, ["tags"], []),
g = Cu()(l, ["categories"], []),
m = Cu()(l, ["post"], []),
v = Cu()(l, ["postType"], "posts"),
y = {
lang: d,
per_page: h,
page: p,
status: "publish",
search: f,
tags: b.map((function(e) {
return e.key
}
)),
categories: g.map((function(e) {
return e.key
}
)),
include: m.map((function(e) {
return e.key
}
))
},
t.next = 14,
uc(v, y, e.source.token);
case 14:
x = t.sent,
yh()(x) ? e.setState({
posts: x,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 21;
break;
case 18:
t.prev = 18,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 21:
case "end":
return t.stop()
}
}
), t, null, [[0, 18]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch post canceled by the user.")
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y, x, O, j, k, w, C, _;
(null == e ? void 0 : e.language) === this.props.language && mh()(null === (r = e.widget.fields) || void 0 === r ? void 0 : r.perPage, null === (i = this.props.widget) || void 0 === i || null === (o = i.fields) || void 0 === o ? void 0 : o.perPage) && mh()(null === (a = e.widget.fields) || void 0 === a ? void 0 : a.page, null === (l = this.props.widget) || void 0 === l || null === (s = l.fields) || void 0 === s ? void 0 : s.page) && mh()(null === (c = e.widget.fields) || void 0 === c ? void 0 : c.search, null === (u = this.props.widget) || void 0 === u || null === (d = u.fields) || void 0 === d ? void 0 : d.search) && mh()(null === (p = e.widget.fields) || void 0 === p ? void 0 : p.tags, null === (h = this.props.widget) || void 0 === h || null === (f = h.fields) || void 0 === f ? void 0 : f.tags) && mh()(null === (b = e.widget.fields) || void 0 === b ? void 0 : b.categories, null === (g = this.props.widget) || void 0 === g || null === (m = g.fields) || void 0 === m ? void 0 : m.categories) && mh()(null === (v = e.widget.fields) || void 0 === v ? void 0 : v.includePost, null === (y = this.props.widget) || void 0 === y || null === (x = y.fields) || void 0 === x ? void 0 : x.includePost) && mh()(null === (O = e.widget.fields) || void 0 === O ? void 0 : O.post, null === (j = this.props.widget) || void 0 === j || null === (k = j.fields) || void 0 === k ? void 0 : k.post) && mh()(null === (w = e.widget.fields) || void 0 === w ? void 0 : w.postType, null === (C = this.props.widget) || void 0 === C || null === (_ = C.fields) || void 0 === _ ? void 0 : _.postType) || this.setState({
loading: !0
}, this._fetchData)
}
}, {
key: "render",
value: function() {
var e, t, n = this.props, r = n.widget, i = r.fields, o = r.layout, a = r.styles, l = n.width, s = this.state, c = s.posts, u = s.loading, d = null !== (e = Number(Cu()(i, ["perPage"], "10"))) && void 0 !== e ? e : 10, p = Cu()(i, ["template"], {}), h = null !== (t = null == i ? void 0 : i.enableLoadMore) && void 0 !== t && t;
return Object(Ip.jsx)(yJ, {
posts: c,
loading: u,
styles: a,
template: p,
limit: d,
layout: o,
width: l,
enableLoadMore: h
})
}
}]),
n
}(l.Component), jJ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(OJ), kJ = Mu.b.span(dJ || (dJ = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), wJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.dividerWidth
, i = e.dividerColor
, o = e.renderItem
, a = e.widthView
, l = e.enableLoadMore
, s = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [s.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
marginBottom: t < s.length - 1 ? n : 0
},
children: [o(t, a, null, 1), t < s.length - 1 && r > 0 ? Object(Ip.jsx)("div", {
style: {
height: r,
backgroundColor: i,
marginTop: n
}
}) : null]
}, t)
}
)), l ? Object(Ip.jsxs)(Ip.Fragment, {
children: [r > 0 ? Object(Ip.jsx)("div", {
style: {
height: r,
backgroundColor: i,
margin: "".concat(n, "px 0px")
}
}) : Object(Ip.jsx)("div", {
style: {
height: n
}
}), Object(Ip.jsx)(kJ, {
children: "Load More"
})]
}) : null]
})
}
}]),
n
}(l.Component), CJ = wJ, _J = Mu.b.div(pJ || (pJ = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n // flex-wrap: wrap;\n"]))), MJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.dividerWidth
, i = e.dividerColor
, o = e.renderItem
, a = e.heightView
, l = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)(_J, {
children: l.map((function(e, t) {
var s = t < l.length - 1 ? r > 0 ? {
borderRight: "".concat(r, "px solid ").concat(i),
paddingRight: n,
marginRight: n
} : {
marginRight: n
} : {};
return Object(Ip.jsx)("div", {
style: s,
children: o(t, null, a, 1)
}, t)
}
))
})
}
}]),
n
}(l.Component), SJ = MJ, AJ = Mu.b.div(hJ || (hJ = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), TJ = Mu.b.span(fJ || (fJ = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), EJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.widthView
, l = o.pad
, s = o.renderItem
, c = o.dividerColor
, u = o.dividerWidth
, d = ((null != a ? a : 300) - l) / 2
, p = d
, h = 1;
n % 2 === r && (p = d * (h = .8));
var f = i ? 0 : l;
return Object(Ip.jsxs)("div", {
style: {
width: d
},
children: [s(t, d, p, h), u > 0 ? Object(Ip.jsx)("div", {
style: {
height: u,
backgroundColor: c,
marginTop: l,
marginBottom: l
}
}) : Object(Ip.jsx)("div", {
style: {
height: f
}
})]
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.length, r = t.pad, i = t.enableLoadMore, o = Array.from({
length: null != n ? n : 0
}, (function(e, t) {
return t
}
)), a = [], l = [], s = 0; s < o.length; s++)
s % 2 == 0 ? a = a.concat(s) : l = l.concat(s);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(AJ, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: a.map((function(t, n) {
return e._renderItem(o[t], n, 0, !(n < a.length - 1))
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: l.map((function(t, n) {
return e._renderItem(o[t], n, 1, !(n < l.length - 1))
}
))
})]
}), i ? Object(Ip.jsx)(TJ, {
children: "Load More"
}) : null]
})
}
}]),
n
}(l.Component);
EJ.defaultProps = {
pad: 0
};
var IJ, NJ = EJ, zJ = Mu.b.span(IJ || (IJ = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), DJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = e.dividerWidth
, a = e.dividerColor
, l = e.enableLoadMore
, s = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsxs)("div", {
className: "122121212",
children: [s.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
width: null != n ? n : "auto",
marginBottom: r
},
children: [i(t, n, null, 1), o > 0 ? Object(Ip.jsx)("div", {
style: {
height: o,
backgroundColor: a,
marginTop: r
}
}) : null]
}, t)
}
)), l ? Object(Ip.jsx)(zJ, {
children: "Load More"
}) : null]
})
}
}]),
n
}(l.Component);
DJ.defaultProps = {
pad: 0
};
var LJ, RJ, PJ, BJ = DJ, FJ = Mu.b.div(LJ || (LJ = _u(["\n position: relative;\n height: 100%;\n"]))), VJ = Mu.b.div(RJ || (RJ = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), WJ = Mu.b.div(PJ || (PJ = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), qJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(WJ, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.renderItem
, i = e.heightView
, o = e.indicatorColor
, a = e.indicatorActiveColor
, l = new Array(null != t ? t : 0).fill(0);
return null === (l.length > 0 ? l[0] : null) ? null : Object(Ip.jsxs)(FJ, {
children: [r(0, n, null != i ? i : 300, 1), Object(Ip.jsx)(VJ, {
children: this._renderDots(l.length, 0, o, a)
})]
})
}
}]),
n
}(l.Component);
qJ.defaultProps = {
pad: 0
};
var HJ, UJ, XJ = qJ, GJ = Mu.b.div(HJ || (HJ = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), KJ = Mu.b.span(UJ || (UJ = _u(["\n color: white;\n font-size: 14px;\n font-weight: 500;\n line-height: 34px;\n height: 34px;\n background-color: #0686f8;\n padding: 0px 16px;\n display: inline-block;\n border-radius: 8px;\n"]))), YJ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.col
, i = e.ratio
, o = e.widthView
, a = e.dividerWidth
, l = e.dividerColor
, s = e.renderItem
, c = e.enableLoadMore
, u = Array.from({
length: null != t ? t : 0
}, (function(e, t) {
return t
}
))
, d = (o - n * (r - 1)) / r
, p = d / i;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(GJ, {
style: {
margin: "0px -".concat(n / 2, "px")
},
children: u.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
width: d,
margin: "0px ".concat(n / 2, "px")
},
children: [Object(Ip.jsx)("div", {
style: {
height: p,
overflow: "hidden"
},
children: s(t, d, p, 1)
}), a > 0 ? Object(Ip.jsx)("div", {
style: {
height: a,
backgroundColor: l,
margin: "".concat(n, "px 0px")
}
}) : Object(Ip.jsx)("div", {
style: {
height: n
}
})]
}, t)
}
))
}), c ? Object(Ip.jsx)(KJ, {
children: "Load More"
}) : null]
})
}
}]),
n
}(l.Component);
YJ.defaultProps = {
pad: 0,
col: 2,
ratio: 1
};
var QJ = YJ
, JJ = n(296)
, ZJ = n.n(JJ)
, $J = n(297)
, eZ = n.n($J)
, tZ = function(e) {
return yh()(e) || kb()(e) ? JSON.stringify(e, void 0, 2) : void 0 === e ? "null" : "".concat(e)
}
, nZ = function(e) {
return yh()(e) || kb()(e) || null == e ? null : "".concat(e)
}
, rZ = function(e) {
switch (e) {
case "list_map":
return "List - map";
case "list_filter":
return "List - where";
case "list_get":
return "List - firstWhere";
case "list_getByIndex":
return "List - elementAt";
case "list_index":
return "List - indexWhere";
case "list_join":
return "List - join";
case "map_keys":
return "Map - keys";
case "map_values":
return "Map - values";
case "map_getKey":
return "Map - get";
case "string_replace":
return "String - replaceFirst";
case "string_replaceAll":
return "String - replaceAll";
case "string_split":
return "String - split";
default:
return "Method"
}
}
, iZ = function(e, t, n, r) {
var i = Cu()(e, t);
return Cb()(i) ? i : Cu()(i, n, r)
}
, oZ = function(e, t) {
var n = Cu()(e, "type", "text")
, r = iZ(e, "text", t, "{data}")
, i = iZ(e, "defaultText", t, "")
, o = Cu()(e, "enableTextEmpty", !0);
return Cu()(e, "methods", []).length > 0 && (!o && "" !== i || "image" === n || "text" === n && "" !== r)
}
, aZ = function(e, t) {
var n = Cu()(t, "methods", [])
, r = [e]
, i = e;
if (n.length > 0)
for (var o = 0; o < n.length; o++)
i = lZ(i, n[o]),
r = [].concat(Object(wd.a)(r), [i]);
return r
}
, lZ = function(e, t) {
var n = Cu()(t, "method", "")
, r = Cu()(t, "field", "")
, i = Cu()(t, "operator", "is_equal_to")
, o = Cu()(t, "value", "")
, a = Cu()(t, "value1", "")
, l = Cu()(t, "value2", "");
switch (n) {
case "list_map":
return sZ(e, r);
case "list_filter":
return cZ(e, r, i, o);
case "list_get":
return uZ(e, r, i, o);
case "list_getByIndex":
return dZ(e, r);
case "list_index":
return pZ(e, r, i, o);
case "list_join":
return hZ(e, o);
case "map_keys":
return fZ(e);
case "map_values":
return bZ(e);
case "map_getKey":
return gZ(e, r);
case "string_replace":
return mZ(nZ(e), a, l);
case "string_replaceAll":
return vZ(nZ(e), a, l);
case "string_split":
return yZ(nZ(e), o);
default:
return null
}
}
, sZ = function(e, t) {
return yh()(e) ? e.map((function(e) {
return t.length > 0 ? Cu()(e, t) : e
}
)) : null
}
, cZ = function(e, t, n, r) {
return yh()(e) ? e.filter((function(e) {
var i = t.length > 0 ? Cu()(e, [t]) : e;
return xZ(n, OZ(i), r)
}
)) : null
}
, uZ = function(e, t, n, r) {
return yh()(e) ? e.find((function(e) {
var i = t.length > 0 ? Cu()(e, [t]) : e;
return xZ(n, OZ(i), r)
}
)) : null
}
, dZ = function(e, t) {
if (yh()(e)) {
var n = (parseInt(t) || 0) - 1;
return n >= 0 && n < e.length ? e[n] : null
}
return null
}
, pZ = function(e, t, n, r) {
return yh()(e) ? e.findIndex((function(e) {
var i = t.length > 0 ? Cu()(e, [t]) : e;
return xZ(n, OZ(i), r)
}
)) + 1 : null
}
, hZ = function(e, t) {
return yh()(e) ? e.join(t) : null
}
, fZ = function(e) {
return !yh()(e) && kb()(e) ? Object.keys(e) : null
}
, bZ = function(e) {
return !yh()(e) && kb()(e) ? Object.values(e) : null
}
, gZ = function(e, t) {
return !yh()(e) && kb()(e) ? t.length > 0 ? Cu()(e, t) : e : null
}
, mZ = function(e, t, n) {
return Cb()(e) ? e.replace(t, n) : null
}
, vZ = function(e, t, n) {
return Cb()(e) ? e.replaceAll(t, n) : null
}
, yZ = function(e, t) {
return Cb()(e) ? e.split(t) : null
}
, xZ = function(e, t, n) {
switch (e) {
case "is_equal_to":
return t === n;
case "is_not_equal_to":
return t !== n;
case "is_empty":
return null === t || "" === t || "true" === "".concat(Rt()(t));
case "is_not_empty":
return null !== t && "" !== t && "true" === "".concat(Rt()(t));
case "contains":
return (Cb()(t) || yh()(t)) && Cb()(n) && t.includes(n);
case "does_not_contain":
return (Cb()(t) || yh()(t)) && Cb()(n) && !t.includes(n);
case "match_regular_expressions":
return t.match(RegExp(n));
case "is_less_than":
return t < n;
case "is_less_or_equal_to":
return t <= n;
case "is_greater_than":
return t > n;
case "is_greater_or_equal_to":
return t >= n;
default:
return !1
}
}
, OZ = function(e) {
return Cb()(e) ? e : ZJ()(e) || eZ()(e) ? "".concat(e) : yh()(e) ? e.map((function(e) {
return "".concat(e)
}
)) : e
}
, jZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "customAboveName"), M = Cu()(d, "customAbovePrice"), S = Cu()(d, "customAboveRating"), A = oZ(_, O), T = oZ(M, O), E = oZ(S, O), I = Cu()(_, "type", "text"), N = Cu()(M, "type", "text"), z = Cu()(S, "type", "text"), D = null !== (i = Number(Cu()(_, "width", 100))) && void 0 !== i ? i : 100, L = null !== (o = Number(Cu()(_, "height", 100))) && void 0 !== o ? o : 100, R = null !== (a = Number(Cu()(M, "width", 100))) && void 0 !== a ? a : 100, P = null !== (l = Number(Cu()(M, "height", 100))) && void 0 !== l ? l : 100, B = null !== (s = Number(Cu()(S, "width", 100))) && void 0 !== s ? s : 100, F = null !== (c = Number(Cu()(S, "height", 100))) && void 0 !== c ? c : 100, V = null != p ? p : j, W = V * k / j * m, q = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: V,
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
boxShadow: v
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: W,
width: "100%"
}]
})
}),
width: V,
styles: q
}), Object(Ip.jsx)("div", {
style: {
marginTop: 8,
padding: g,
textAlign: "left"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [A && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === I ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: L,
width: D
}, {
type: _k.gap,
height: L,
width: "calc(100% - ".concat(D, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "60%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "30%"
}]
}), T && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === N ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: P,
width: R
}, {
type: _k.gap,
height: P,
width: "calc(100% - ".concat(R, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "25%"
}, {
type: _k.gap,
height: 14,
width: "75%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 15,
width: "15%"
}, {
type: _k.gap,
height: 15,
width: "85%"
}]
}), (w || E) && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: F,
width: B
}, {
type: _k.gap,
height: F,
width: "calc(100% - ".concat(B, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "70%"
}]
})
}), w && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "40%"
}, {
type: _k.gap,
height: 12,
width: "60%"
}]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 12,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "25%"
}, {
type: _k.gap,
height: 34,
width: "75%"
}]
})]
}) : null]
}),
width: "100%",
styles: hS
})
})]
})
}
}]),
n
}(l.Component);
jZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var kZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(jZ)
, wZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "enableAddCart", !0), M = Cu()(d, "customAboveName"), S = Cu()(d, "customAbovePrice"), A = Cu()(d, "customAboveRating"), T = oZ(M, O), E = oZ(S, O), I = oZ(A, O), N = Cu()(M, "type", "text"), z = Cu()(S, "type", "text"), D = Cu()(A, "type", "text"), L = null !== (i = Number(Cu()(M, "width", 100))) && void 0 !== i ? i : 100, R = null !== (o = Number(Cu()(M, "height", 100))) && void 0 !== o ? o : 100, P = null !== (a = Number(Cu()(S, "width", 100))) && void 0 !== a ? a : 100, B = null !== (l = Number(Cu()(S, "height", 100))) && void 0 !== l ? l : 100, F = null !== (s = Number(Cu()(A, "width", 100))) && void 0 !== s ? s : 100, V = null !== (c = Number(Cu()(A, "height", 100))) && void 0 !== c ? c : 100, W = 86 * k / j * m, q = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: null != p ? p : "auto",
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
padding: g,
display: "flex",
boxShadow: v
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: W,
width: "100%"
}]
})
}),
width: 86,
styles: q
}), null != p ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
marginLeft: 16,
flex: 1
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "30%"
}, {
type: _k.gap,
height: 16,
width: "70%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 12,
width: "100%"
}]
}), T && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === N ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: R,
width: L
}, {
type: _k.gap,
height: R,
width: "calc(100% - ".concat(L, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "60%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "30%"
}]
}), E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: B,
width: P
}, {
type: _k.gap,
height: B,
width: "calc(100% - ".concat(P, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "70%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 15,
width: "15%"
}, {
type: _k.gap,
height: 15,
width: "85%"
}]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "35%"
}, {
type: _k.gap,
height: 34,
width: "65%"
}]
})]
}) : null, w || I ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), I && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === D ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: V,
width: F
}, {
type: _k.gap,
height: V,
width: "calc(100% - ".concat(F, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "70%"
}]
})
}), w && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "40%"
}, {
type: _k.gap,
height: 12,
width: "60%"
}]
})]
}) : null]
}),
width: "100%",
styles: hS
})
}), _ && Object(Ip.jsx)("div", {
style: {
marginLeft: 16
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "100%"
}]
})
}),
width: 34,
styles: hS
})
})]
}) : null]
})
}
}]),
n
}(l.Component);
wZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var CZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(wZ)
, _Z = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "enableAddCart", !0), M = Cu()(d, "enableCategory", !0), S = Cu()(d, "customAboveName"), A = Cu()(d, "customAbovePrice"), T = Cu()(d, "customAboveRating"), E = oZ(S, O), I = oZ(A, O), N = oZ(T, O), z = Cu()(S, "type", "text"), D = Cu()(A, "type", "text"), L = Cu()(T, "type", "text"), R = null !== (i = Number(Cu()(S, "width", 100))) && void 0 !== i ? i : 100, P = null !== (o = Number(Cu()(S, "height", 100))) && void 0 !== o ? o : 100, B = null !== (a = Number(Cu()(A, "width", 100))) && void 0 !== a ? a : 100, F = null !== (l = Number(Cu()(A, "height", 100))) && void 0 !== l ? l : 100, V = null !== (s = Number(Cu()(T, "width", 100))) && void 0 !== s ? s : 100, W = null !== (c = Number(Cu()(T, "height", 100))) && void 0 !== c ? c : 100, q = null != p ? p : j, H = q * k / j * m, U = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: q,
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
boxShadow: v
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: H,
width: "100%"
}]
})
}),
width: q,
styles: U
}), Object(Ip.jsx)("div", {
style: {
marginTop: -17,
padding: "0px 8px",
display: "flex",
justifyContent: "flex-end"
},
children: _ ? Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "100%"
}]
})
}),
width: 34,
styles: hS
}) : Object(Ip.jsx)("div", {
style: {
height: 34,
width: 34
}
})
}), Object(Ip.jsx)("div", {
style: {
padding: g,
textAlign: "left"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [(w || N) && Object(Ip.jsxs)(Ip.Fragment, {
children: [N && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === L ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: W,
width: V
}, {
type: _k.gap,
height: W,
width: "calc(100% - ".concat(V, "px)")
}]
})]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "35%"
}, {
type: _k.gap,
height: 14,
width: "65%"
}]
})
}), w && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "65%"
}, {
type: _k.gap,
height: 12,
width: "35%"
}]
})]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 5,
width: "100%"
}]
}), M ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "30%"
}, {
type: _k.gap,
height: 16,
width: "70%"
}]
}) : null, E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: P,
width: R
}, {
type: _k.gap,
height: P,
width: "calc(100% - ".concat(R, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "60%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "30%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), I && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === D ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: F,
width: B
}, {
type: _k.gap,
height: F,
width: "calc(100% - ".concat(B, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "70%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 15,
width: "15%"
}, {
type: _k.gap,
height: 15,
width: "85%"
}]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "25%"
}, {
type: _k.gap,
height: 34,
width: "75%"
}]
})]
}) : null]
}),
width: "100%",
styles: hS
})
})]
})
}
}]),
n
}(l.Component);
_Z.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var MZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(_Z)
, SZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "enableCategory", !0), M = Cu()(d, "customAboveName"), S = Cu()(d, "customAbovePrice"), A = Cu()(d, "customAboveRating"), T = oZ(M, O), E = oZ(S, O), I = oZ(A, O), N = Cu()(M, "type", "text"), z = Cu()(S, "type", "text"), D = Cu()(A, "type", "text"), L = null !== (i = Number(Cu()(M, "width", 100))) && void 0 !== i ? i : 100, R = null !== (o = Number(Cu()(M, "height", 100))) && void 0 !== o ? o : 100, P = null !== (a = Number(Cu()(S, "width", 100))) && void 0 !== a ? a : 100, B = null !== (l = Number(Cu()(S, "height", 100))) && void 0 !== l ? l : 100, F = null !== (s = Number(Cu()(A, "width", 100))) && void 0 !== s ? s : 100, V = null !== (c = Number(Cu()(A, "height", 100))) && void 0 !== c ? c : 100, W = null != p ? p : j, q = W * k / j * m, H = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: W,
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
boxShadow: v
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: q,
width: "100%"
}]
})
}),
width: W,
styles: H
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16,
padding: g,
textAlign: "left"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [I && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === D ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: V,
width: F
}, {
type: _k.gap,
height: V,
width: "calc(100% - ".concat(F, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "35%"
}, {
type: _k.gap,
height: 14,
width: "65%"
}]
})
}), w ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "40%"
}, {
type: _k.gap,
height: 12,
width: "60%"
}]
}) : null, Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 5,
width: "100%"
}]
}), _ ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "30%"
}, {
type: _k.gap,
height: 16,
width: "70%"
}]
}) : null, T && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === N ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: R,
width: L
}, {
type: _k.gap,
height: R,
width: "calc(100% - ".concat(L, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "45%"
}, {
type: _k.gap,
height: 14,
width: "55%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "30%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: B,
width: P
}, {
type: _k.gap,
height: B,
width: "calc(100% - ".concat(P, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "70%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 15,
width: "15%"
}, {
type: _k.gap,
height: 15,
width: "calc(85% - 40px)"
}, {
type: _k.line,
height: 15,
width: "40px"
}]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "25%"
}, {
type: _k.gap,
height: 34,
width: "75%"
}]
})]
}) : null]
}),
width: "100%",
styles: hS
})
})]
})
}
}]),
n
}(l.Component);
SZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var AZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(SZ)
, TZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "enableAddCart", !0), M = Cu()(d, "enableCategory", !0), S = Cu()(d, "customAboveName"), A = Cu()(d, "customAbovePrice"), T = Cu()(d, "customAboveRating"), E = oZ(S, O), I = oZ(A, O), N = oZ(T, O), z = Cu()(S, "type", "text"), D = Cu()(A, "type", "text"), L = Cu()(T, "type", "text"), R = null !== (i = Number(Cu()(S, "width", 100))) && void 0 !== i ? i : 100, P = null !== (o = Number(Cu()(S, "height", 100))) && void 0 !== o ? o : 100, B = null !== (a = Number(Cu()(A, "width", 100))) && void 0 !== a ? a : 100, F = null !== (l = Number(Cu()(A, "height", 100))) && void 0 !== l ? l : 100, V = null !== (s = Number(Cu()(T, "width", 100))) && void 0 !== s ? s : 100, W = null !== (c = Number(Cu()(T, "height", 100))) && void 0 !== c ? c : 100, q = null != p ? p : j, H = q * k / j * m, U = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: q,
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
boxShadow: v
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: H,
width: "100%"
}]
})
}),
width: q,
styles: U
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16,
padding: g,
textAlign: "left"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [(w || N) && Object(Ip.jsxs)(Ip.Fragment, {
children: [N && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === L ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: W,
width: "calc(50% - ".concat(V / 2, "px)")
}, {
type: _k.line,
height: W,
width: V
}, {
type: _k.gap,
height: W,
width: "calc(50% - ".concat(V / 2, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 12,
width: "23%"
}, {
type: _k.line,
height: 12,
width: "54%"
}, {
type: _k.gap,
height: 12,
width: "23%"
}]
})
}), w && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 14,
width: "30%"
}, {
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "30%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
})]
}), M ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 16,
width: "35%"
}, {
type: _k.line,
height: 16,
width: "30%"
}, {
type: _k.gap,
height: 16,
width: "35%"
}]
}) : null, E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: P,
width: "calc(50% - ".concat(R / 2, "px)")
}, {
type: _k.line,
height: P,
width: R
}, {
type: _k.gap,
height: P,
width: "calc(50% - ".concat(R / 2, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 14,
width: "30%"
}, {
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "30%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 20,
width: "15%"
}, {
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "15%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), I && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === D ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: F,
width: "calc(50% - ".concat(B / 2, "px)")
}, {
type: _k.line,
height: P,
width: F
}, {
type: _k.gap,
height: F,
width: "calc(50% - ".concat(B / 2, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 14,
width: "35%"
}, {
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "35%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 15,
width: "42.5%"
}, {
type: _k.line,
height: 15,
width: "15%"
}, {
type: _k.gap,
height: 15,
width: "42.5%"
}]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 13,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 34,
width: "37.5%"
}, {
type: _k.line,
height: 34,
width: "25%"
}, {
type: _k.gap,
height: 34,
width: "37.5%"
}]
})]
}) : null, _ && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 34,
width: "32.5%"
}, {
type: _k.line,
height: 34,
width: "35%"
}, {
type: _k.gap,
height: 34,
width: "32.5%"
}]
})]
})]
}),
width: "100%",
styles: hS
})
})]
})
}
}]),
n
}(l.Component);
TZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var EZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(TZ)
, IZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "enableCategory", !0), M = Cu()(d, "enableAddCart", !0), S = Cu()(d, "customAboveName"), A = Cu()(d, "customAbovePrice"), T = Cu()(d, "customAboveRating"), E = oZ(S, O), I = oZ(A, O), N = oZ(T, O), z = Cu()(S, "type", "text"), D = Cu()(A, "type", "text"), L = Cu()(T, "type", "text"), R = null !== (i = Number(Cu()(S, "width", 100))) && void 0 !== i ? i : 100, P = null !== (o = Number(Cu()(S, "height", 100))) && void 0 !== o ? o : 100, B = null !== (a = Number(Cu()(A, "width", 100))) && void 0 !== a ? a : 100, F = null !== (l = Number(Cu()(A, "height", 100))) && void 0 !== l ? l : 100, V = null !== (s = Number(Cu()(T, "width", 100))) && void 0 !== s ? s : 100, W = null !== (c = Number(Cu()(T, "height", 100))) && void 0 !== c ? c : 100, q = null != p ? p : j, H = q * k / j * m, U = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: q,
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
boxShadow: v
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: H,
width: "100%"
}]
})
}),
width: q,
styles: U
}), Object(Ip.jsx)("div", {
style: {
padding: g,
textAlign: "left"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [_ ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 16,
width: "40%"
}, {
type: _k.gap,
height: 16,
width: "60%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
})]
}) : null, (E || I) && Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "end",
justifyContent: "space-between"
},
children: [E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: P,
width: "100%"
}],
width: "".concat(R, "px")
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "100%"
}],
width: "30%"
})
}), I && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === D ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: F,
width: "100%"
}],
width: "".concat(B, "px")
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "100%"
}],
width: "30%"
})
})]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "20%"
}, {
type: _k.line,
height: 20,
width: "10%"
}]
}), (w || E) && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), N && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === L ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: W,
width: "100%"
}],
width: "".concat(V, "px")
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "35%"
}, {
type: _k.gap,
height: 14,
width: "65%"
}]
})
}), w && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "40%"
}, {
type: _k.gap,
height: 12,
width: "60%"
}]
})]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 24,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "25%"
}, {
type: _k.gap,
height: 34,
width: "75%"
}]
})]
}) : null, Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 12,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "100%"
}]
}), M && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 16,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 24,
width: "calc(100% - 24px)"
}, {
type: _k.line,
height: 24,
width: "24px"
}]
})]
}),
width: "100%",
styles: hS
})
})]
})
}
}]),
n
}(l.Component);
IZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var NZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(IZ)
, zZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.templateData, p = u.widthView, h = u.background, f = u.radius, b = u.radiusImage, g = u.paddingItem, m = u.ratioHeight, v = u.shadow, y = u.translate, x = u.language, O = y ? x : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, j = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, k = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, w = Cu()(d, "enableRating", !0), C = Cu()(d, "enableQuantity", !0), _ = Cu()(d, "enableAddCart", !0), M = Cu()(d, "customAboveName"), S = Cu()(d, "customAbovePrice"), A = Cu()(d, "customAboveRating"), T = oZ(M, O), E = oZ(S, O), I = oZ(A, O), N = Cu()(M, "type", "text"), z = Cu()(S, "type", "text"), D = Cu()(A, "type", "text"), L = null !== (i = Number(Cu()(M, "width", 100))) && void 0 !== i ? i : 100, R = null !== (o = Number(Cu()(M, "height", 100))) && void 0 !== o ? o : 100, P = null !== (a = Number(Cu()(S, "width", 100))) && void 0 !== a ? a : 100, B = null !== (l = Number(Cu()(S, "height", 100))) && void 0 !== l ? l : 100, F = null !== (s = Number(Cu()(A, "width", 100))) && void 0 !== s ? s : 100, V = null !== (c = Number(Cu()(A, "height", 100))) && void 0 !== c ? c : 100, W = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(b, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
}, q = Dt()(g, "px"), H = q.length > 2 ? parseInt(q[1]) : 0, U = null != p ? p : j, X = U - (q.length > 4 ? parseInt(q[3]) : 0) - H, G = X * k / j * m;
return Object(Ip.jsxs)("div", {
style: {
width: U,
position: "relative"
},
children: [Object(Ip.jsx)("div", {
style: {
width: U,
backgroundColor: h,
borderRadius: f,
overflow: "hidden",
padding: g,
boxSizing: "border-box",
boxShadow: v
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: G,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), T && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === N ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: R,
width: L
}, {
type: _k.gap,
height: R,
width: "calc(100% - ".concat(L, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "60%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "70%"
}, {
type: _k.gap,
height: 20,
width: "30%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 4,
width: "100%"
}]
}), E && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === z ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: B,
width: P
}, {
type: _k.gap,
height: B,
width: "calc(100% - ".concat(P, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "30%"
}, {
type: _k.gap,
height: 14,
width: "70%"
}]
})
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 15,
width: "15%"
}, {
type: _k.gap,
height: 15,
width: "85%"
}]
}), (w || I) && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), I && Object(Ip.jsx)(Ip.Fragment, {
children: "image" === D ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: V,
width: F
}, {
type: _k.gap,
height: V,
width: "calc(100% - ".concat(F, "px)")
}]
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "40%"
}, {
type: _k.gap,
height: 14,
width: "60%"
}]
})
}), w && Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "10%"
}, {
type: _k.gap,
height: 12,
width: "90%"
}]
})]
}), C ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 12,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "25%"
}, {
type: _k.gap,
height: 34,
width: "75%"
}]
})]
}) : null]
}),
width: X,
styles: W
})
}), _ && Object(Ip.jsx)("div", {
style: {
position: "absolute",
right: 0,
bottom: 0
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 34,
width: "100%"
}]
})
}),
width: 34,
styles: hS
})
})]
})
}
}]),
n
}(l.Component);
zZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var DZ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(zZ)
, LZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.templateData, i = n.widthView, o = n.background, a = n.radius, l = n.radiusImage, s = n.ratioHeight, c = n.shadow, u = null !== (e = Number(Cu()(r, "size.width", 100))) && void 0 !== e ? e : 100, d = null !== (t = Number(Cu()(r, "size.height", 100))) && void 0 !== t ? t : 100, p = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "".concat(l, "px")
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
}, h = null != i ? i : u, f = h * d / u * s;
return Object(Ip.jsx)("div", {
style: {
width: h,
backgroundColor: o,
borderRadius: a,
overflow: "hidden",
boxShadow: c
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: f,
width: "100%"
}]
})
}),
width: h,
styles: p
})
})
}
}]),
n
}(l.Component);
LZ.defaultProps = {
ratioHeight: 1,
shadow: "none"
};
var RZ = LZ
, PZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this.props, t = e.count, n = e.size, r = e.initValue, i = new Array(0), o = 0; o < t; o++) {
var a = o + 1 <= r ? "FavoriteStarFill" : "FavoriteStar"
, l = o + 1 <= r ? "#FFA200" : "#9FADC0"
, s = o < t - 1 ? 2 : 0;
i = fs()(i, Object(Ip.jsx)(lp, {
iconName: a,
style: {
fontSize: n,
color: l,
marginRight: s
}
}, o))
}
return Object(Ip.jsx)("div", {
style: {
display: "flex"
},
children: i.map((function(e) {
return e
}
))
})
}
}]),
n
}(l.Component);
PZ.defaultProps = {
size: 12,
count: 5,
initValue: 0
};
var BZ, FZ, VZ = PZ, WZ = Mu.b.span(BZ || (BZ = _u(["\n display: inline-block;\n margin-left: 4px;\n font-size: 10px;\n font-weight: 500;\n"]))), qZ = Mu.b.span(FZ || (FZ = _u(["\n display: inline-block;\n font-size: 14px;\n font-weight: 500;\n"]))), HZ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.rating
, n = e.count
, r = e.color;
return e.enableBasic ? Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsx)(qZ, {
style: {
color: r
},
children: t
}), Object(Ip.jsx)(lp, {
iconName: "FavoriteStarFill",
style: {
fontSize: 12,
color: "#FFA200",
marginLeft: 4
}
}), Object(Ip.jsxs)(WZ, {
style: {
color: r
},
children: ["(", n, ")"]
})]
}) : Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsx)(VZ, {
initValue: t
}), Object(Ip.jsxs)(WZ, {
style: {
color: r
},
children: ["(", n, ")"]
})]
})
}
}]),
n
}(l.Component);
HZ.defaultProps = {
enableBasic: !1
};
var UZ, XZ, GZ, KZ, YZ, QZ, JZ, ZZ, $Z, e$, t$ = HZ, n$ = Mu.b.span(UZ || (UZ = _u(["\n display: inline-block;\n font-size: 14px;\n font-weight: 500;\n"]))), r$ = Mu.b.span(XZ || (XZ = _u(["\n display: inline-block;\n font-size: 12px;\n span {\n font-size: 14px;\n font-weight: 500;\n }\n"]))), i$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.product, i = n.priceColor, o = n.regularColor, a = n.saleColor, l = n.color, s = null !== (e = null == r ? void 0 : r.type) && void 0 !== e ? e : "simple", c = null !== (t = null == r ? void 0 : r.on_sale) && void 0 !== t && t, u = "string" == typeof (null == r ? void 0 : r.regular_price) && "" !== (null == r ? void 0 : r.regular_price) ? r.regular_price : "string" == typeof r.price && "" !== r.price ? r.price : "0", d = "string" == typeof r.sale_price && "" !== r.sale_price ? r.sale_price : "0";
return "grouped" === s || "variable" === s ? Object(Ip.jsxs)(r$, {
style: {
color: l
},
children: ["From ", Object(Ip.jsxs)("span", {
style: {
color: i
},
children: ["$", u]
})]
}) : c ? Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(n$, {
style: {
color: o,
textDecorationLine: "line-through"
},
children: ["$", u]
}), Object(Ip.jsxs)(n$, {
style: {
color: a,
marginLeft: 8
},
children: ["$", d]
})]
}) : Object(Ip.jsxs)(n$, {
style: {
color: i
},
children: ["$", u]
})
}
}]),
n
}(l.Component), o$ = i$, a$ = Mu.b.div(GZ || (GZ = _u(["\n height: 34px;\n border: 1px solid #deece6;\n border-radius: 8px;\n display: inline-flex;\n align-items: center;\n span {\n display: inline-block;\n }\n"]))), l$ = Mu.b.span(KZ || (KZ = _u(["\n margin: 0px 14px;\n font-size: 20px;\n"]))), s$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsxs)(a$, {
children: [Object(Ip.jsx)(l$, {
children: "-"
}), Object(Ip.jsx)("span", {
children: "1"
}), Object(Ip.jsx)(l$, {
children: "+"
})]
})
}
}]),
n
}(l.Component), c$ = s$, u$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.image
, n = e.width
, r = e.height
, i = e.radius
, o = e.imageSize;
return Object(Ip.jsx)("div", {
style: {
display: "inline-block",
borderRadius: i,
overflow: "hidden",
width: n,
height: r
},
children: Object(Ip.jsx)("img", {
src: t,
alt: t,
width: "100%",
height: "100%",
style: {
objectFit: o || "cover"
}
})
})
}
}]),
n
}(l.Component), d$ = u$, p$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)(YX, {
icon: {
type: "feather",
name: "heart"
},
style: {
width: 16,
height: 16,
fontSize: 16,
color: this.props.color
}
})
}
}]),
n
}(l.Component), h$ = p$, f$ = Mu.b.div(YZ || (YZ = _u(["\n display: flex;\n"]))), b$ = Mu.b.span(QZ || (QZ = _u(["\n display: inline-block;\n padding: 0px 8px;\n height: 16px;\n font-size: 10px;\n font-weight: 500;\n line-height: 16px;\n"]))), g$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderSale",
value: function() {
var e, t, n = this.props, r = n.product, i = n.labelSaleColor, o = n.labelSaleTextColor, a = n.radiusLabelSale, l = null !== (e = null == r ? void 0 : r.type) && void 0 !== e ? e : "simple", s = null !== (t = null == r ? void 0 : r.on_sale) && void 0 !== t && t;
if ("grouped" === l || "variable" === l)
return Object(Ip.jsx)(b$, {
style: {
backgroundColor: i,
color: o,
borderRadius: a
},
children: "SALE"
});
if (s) {
var c, u, d = "string" == typeof (null == r ? void 0 : r.regular_price) && "" !== (null == r ? void 0 : r.regular_price) ? r.regular_price : "string" == typeof r.price && "" !== r.price ? r.price : "0", p = "string" == typeof r.sale_price && "" !== r.sale_price ? r.sale_price : "0", h = null !== (c = Number(null != d ? d : 0)) && void 0 !== c ? c : 0, f = null !== (u = Number(null != p ? p : 0)) && void 0 !== u ? u : 0, b = h > 0 ? 100 * (h - f) / h : 0;
return Object(Ip.jsxs)(b$, {
style: {
backgroundColor: i,
color: o,
borderRadius: a
},
children: ["-", b.toFixed(0), "%"]
})
}
return null
}
}, {
key: "render",
value: function() {
var e, t, n = this.props, r = n.product, i = n.enableNew, o = n.enableSale, a = n.labelNewColor, l = n.labelNewTextColor, s = n.radiusLabelNew, c = (t = null !== (e = null == r ? void 0 : r.date_created) && void 0 !== e ? e : (new Date).toString(),
30,
dV.a.duration(dV()(t).diff(dV()(new Date))).asDays() > -30);
return Object(Ip.jsxs)(f$, {
children: [i && c ? Object(Ip.jsx)(b$, {
style: {
backgroundColor: a,
color: l,
borderRadius: s
},
children: "NEW"
}) : null, o && i && c ? Object(Ip.jsx)("div", {
style: {
width: 8
}
}) : null, o ? this._renderSale() : null]
})
}
}]),
n
}(l.Component), m$ = g$, v$ = Mu.b.div(JZ || (JZ = _u(["\n min-width: 34px;\n height: 34px;\n \n"]))), y$ = Mu.b.div(ZZ || (ZZ = _u(["\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0;\n height: 100%;\n"]))), x$ = Mu.b.div($Z || ($Z = _u(["\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0px 16px;\n height: 100%;\n"]))), O$ = Mu.b.span(e$ || (e$ = _u(["\n display: inline-block;\n font-size: 12px;\n font-weight: 500;\n"]))), j$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.icon
, n = e.type
, r = e.radius
, i = e.text
, o = e.enableIcon
, a = e.enableAllRadius
, l = "elevated" === n ? rH(ec.primaryColor) : "rgba(6, 134, 248, 0.1)"
, s = rH("elevated" === n ? ec.white : ec.primaryColor)
, c = "elevated" === n ? "none" : "1px dashed ".concat(rH(ec.primaryColor))
, u = a ? r : "".concat(r, "px 0px");
return Object(Ip.jsx)(v$, {
style: {
backgroundColor: l,
color: s,
border: c,
borderRadius: u
},
children: "string" == typeof i && i.length > 0 ? Object(Ip.jsxs)(x$, {
children: [o ? Object(Ip.jsx)("div", {
style: {
marginRight: 8
},
children: Object(Ip.jsx)(YX, {
icon: t,
style: {
width: 14,
height: 14,
fontSize: 14
}
})
}) : null, Object(Ip.jsx)(O$, {
children: i
})]
}) : Object(Ip.jsx)(y$, {
children: Object(Ip.jsx)(YX, {
icon: t,
style: {
width: 14,
height: 14,
fontSize: 14
}
})
})
})
}
}]),
n
}(l.Component);
j$.defaultProps = {
type: "elevated",
icon: {
type: "feather",
name: "plus"
},
enableIcon: !0,
enableAllRadius: !0
};
var k$, w$, C$, _$, M$, S$ = j$, A$ = n(131), T$ = n.n(A$), E$ = Mu.b.span(k$ || (k$ = _u(["\n font-size: 12px;\n font-weight: 400;\n"]))), I$ = function(e) {
var t = e.product
, n = e.query
, r = e.languageKey
, i = e.color
, o = e.textCenter
, a = void 0 !== o && o
, l = oZ(n, r)
, c = Cu()(n, "type", "text")
, u = s.a.useMemo((function() {
var e = iZ(n, "text", r, "{data}")
, i = Cu()(n, "enableTextEmpty", !0)
, o = iZ(n, "defaultText", r, "")
, a = aZ(t, n)
, l = nZ(T$()(a));
return i || l ? "image" === c ? l : "" !== e && Cb()(l) ? e.replace("{data}", l) : null : o.length > 0 ? o : null
}
), [t, n, c, r]);
if (l && u) {
if ("image" === c) {
var d, p, h = null !== (d = Number(Cu()(n, "width", 100))) && void 0 !== d ? d : 100, f = null !== (p = Number(Cu()(n, "height", 100))) && void 0 !== p ? p : 100;
return Object(Ip.jsx)("div", {
style: {
display: "inline-block",
overflow: "hidden",
width: h,
height: f
},
children: Object(Ip.jsx)("img", {
src: u,
alt: u,
width: "100%",
height: "100%",
style: {
objectFit: "cover"
}
})
})
}
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(E$, {
style: {
color: i,
textAlign: a ? "center" : "start"
},
children: u
})
})
}
return null
}, N$ = Mu.b.div(w$ || (w$ = _u(["\n overflow: hidden;\n text-align: left;\n"]))), z$ = Mu.b.div(C$ || (C$ = _u(["\n position: relative;\n"]))), D$ = Mu.b.div(_$ || (_$ = _u(["\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n bottom: 8px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]))), L$ = Mu.b.span(M$ || (M$ = _u(["\n"]))), R$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.product, d = c.templateData, p = c.widthView, h = c.ratioHeight, f = c.background, b = c.radius, g = c.radiusImage, m = c.paddingItem, v = c.textColor, y = c.subTextColor, x = c.priceColor, O = c.salePriceColor, j = c.regularPriceColor, k = c.wishlistColor, w = c.labelNewColor, C = c.labelNewTextColor, _ = c.radiusLabelNew, M = c.labelSaleColor, S = c.labelSaleTextColor, A = c.radiusLabelSale, T = c.iconCart, E = c.typeCart, I = c.radiusCart, N = c.shadow, z = c.translate, D = c.language, L = z ? D : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, R = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, P = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, B = Cu()(d, "enableRating", !0), F = Cu()(d, "enableQuantity", !0), V = Cu()(d, "enableLabelNew", !0), W = Cu()(d, "enableLabelSale", !0), q = Cu()(d, "enableAddCart", !0), H = Cu()(d, "thumbSizes", "shop_catalog"), U = Cu()(d, "imageSize", "cover"), X = Cu()(d, "customAboveName"), G = Cu()(d, "customAbovePrice"), K = Cu()(d, "customAboveRating"), Y = null != p ? p : R, Q = Y * P / R * h, J = oZ(K, L), Z = null !== (i = Number(null !== (o = null == u ? void 0 : u.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, $ = null !== (a = Number(null !== (l = null == u ? void 0 : u.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, ee = Cu()(u, ["images", 0, H], Zp.NoImage);
return Object(Ip.jsxs)(N$, {
style: {
width: Y,
backgroundColor: f,
borderRadius: b,
boxShadow: N
},
children: [Object(Ip.jsxs)(z$, {
children: [Object(Ip.jsx)(d$, {
image: ee,
width: Y,
height: Q,
radius: g,
imageSize: U
}), Object(Ip.jsxs)(D$, {
children: [Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: V || W ? Object(Ip.jsx)(m$, {
product: u,
enableNew: V,
enableSale: W,
labelNewColor: w,
labelNewTextColor: C,
radiusLabelNew: _,
labelSaleColor: M,
labelSaleTextColor: S,
radiusLabelSale: A
}) : null
}), Object(Ip.jsx)(h$, {
color: k
})]
}), q && Object(Ip.jsx)("div", {
children: Object(Ip.jsx)("div", {
style: {
float: "right"
},
children: Object(Ip.jsx)(S$, {
icon: T,
type: E,
radius: I
})
})
})]
})]
}), Object(Ip.jsxs)("div", {
style: {
padding: m,
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: X,
color: y,
languageKey: L
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(L$, {
style: {
color: v
},
children: js()(null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "")
})
}), Object(Ip.jsx)(I$, {
product: u,
query: G,
color: y,
languageKey: L
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(o$, {
product: u,
priceColor: x,
regularColor: j,
saleColor: O,
color: y
})
}), (B || J) && Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: K,
color: y,
languageKey: L
}), Object(Ip.jsx)(t$, {
rating: Z,
count: $,
color: y
})]
}), F ? Object(Ip.jsx)("div", {
style: {
marginTop: 12
},
children: Object(Ip.jsx)(c$, {})
}) : null]
})]
})
}
}]),
n
}(l.Component);
R$.defaultProps = {
background: "transparent",
radius: 0,
radiusImage: 8,
paddingItem: "0px 0px 0px 0px",
subTextColor: "#9fadc0",
salePriceColor: "#f01f0e",
wishlistColor: "#000",
labelNewColor: "#21ba45",
labelNewTextColor: "#fff",
radiusLabelNew: 8,
labelSaleColor: "#f01f0e",
labelSaleTextColor: "#fff",
radiusLabelSale: 8,
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
shadow: "none"
};
var P$, B$, F$ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(R$), V$ = Mu.b.div(P$ || (P$ = _u(["\n overflow: hidden;\n text-align: left;\n display: flex;\n"]))), W$ = Mu.b.span(B$ || (B$ = _u(["\n"]))), q$ = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.product, d = c.templateData, p = c.widthView, h = c.ratioHeight, f = c.background, b = c.radius, g = c.radiusImage, m = c.paddingItem, v = c.textColor, y = c.subTextColor, x = c.priceColor, O = c.salePriceColor, j = c.regularPriceColor, k = c.labelNewColor, w = c.labelNewTextColor, C = c.radiusLabelNew, _ = c.labelSaleColor, M = c.labelSaleTextColor, S = c.radiusLabelSale, A = c.iconCart, T = c.typeCart, E = c.radiusCart, I = c.shadow, N = c.translate, z = c.language, D = N ? z : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, L = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, R = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, P = Cu()(d, "enableRating", !0), B = Cu()(d, "enableQuantity", !0), F = Cu()(d, "enableAddCart", !0), V = Cu()(d, "enableLabelNew", !0), W = Cu()(d, "enableLabelSale", !0), q = Cu()(d, "thumbSizes", "shop_catalog"), H = Cu()(d, "imageSize", "cover"), U = Cu()(d, "customAboveName"), X = Cu()(d, "customAbovePrice"), G = Cu()(d, "customAboveRating"), K = 86 * R / L * h, Y = null !== (i = Number(null !== (o = null == u ? void 0 : u.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, Q = null !== (a = Number(null !== (l = null == u ? void 0 : u.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, J = Cu()(u, ["images", 0, q], Zp.NoImage), Z = oZ(G, D);
return Object(Ip.jsxs)(V$, {
style: {
width: null != p ? p : "auto",
backgroundColor: f,
borderRadius: b,
padding: m,
boxSizing: "border-box",
boxShadow: I
},
children: [Object(Ip.jsx)(d$, {
image: J,
width: 86,
height: K,
radius: g,
imageSize: H
}), null != p ? Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginLeft: 16,
overflow: "hidden"
},
children: [Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
overflow: "hidden"
},
children: [V || W ? Object(Ip.jsx)("div", {
style: {
marginBottom: 12
},
children: Object(Ip.jsx)(m$, {
product: u,
enableNew: V,
enableSale: W,
labelNewColor: k,
labelNewTextColor: w,
radiusLabelNew: C,
labelSaleColor: _,
labelSaleTextColor: M,
radiusLabelSale: S
})
}) : null, Object(Ip.jsx)(I$, {
product: u,
query: U,
color: y,
languageKey: D
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(W$, {
style: {
color: v
},
children: js()(null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "")
})
}), Object(Ip.jsx)(I$, {
product: u,
query: X,
color: y,
languageKey: D
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(o$, {
product: u,
priceColor: x,
regularColor: j,
saleColor: O,
color: y
})
})]
}), F && Object(Ip.jsx)("div", {
style: {
marginLeft: 10
},
children: Object(Ip.jsx)(S$, {
icon: A,
type: T,
radius: E
})
})]
}), B ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(c$, {})
}) : null, (P || Z) && Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Z && Object(Ip.jsx)(I$, {
product: u,
query: G,
color: y,
languageKey: D
}), P && Object(Ip.jsx)(t$, {
rating: Y,
count: Q,
color: y
})]
})]
}) : null]
})
}
}]),
n
}(l.Component);
q$.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
shadow: "none"
};
var H$, U$, X$, G$, K$, Y$, Q$ = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(q$), J$ = n(92), Z$ = n.n(J$), $$ = Mu.b.span(H$ || (H$ = _u(["\n font-size: 12px;\n font-weight: 400;\n"]))), e0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.product, r = t.color, i = null !== (e = n.categories) && void 0 !== e ? e : [], o = Z$()(i.map((function(e) {
return e.name
}
)), " | ");
return Object(Ip.jsx)($$, {
style: {
color: r
},
children: o
})
}
}]),
n
}(l.Component), t0 = e0, n0 = Mu.b.div(U$ || (U$ = _u(["\n overflow: hidden;\n text-align: left;\n"]))), r0 = Mu.b.div(X$ || (X$ = _u(["\n position: relative;\n z-index: 100;\n"]))), i0 = Mu.b.div(G$ || (G$ = _u(["\n position: relative;\n z-index: 200;\n float: right;\n margin: -19px 8px 0px 8px;\n"]))), o0 = Mu.b.div(K$ || (K$ = _u(["\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n"]))), a0 = Mu.b.span(Y$ || (Y$ = _u(["\n font-size: 16px;\n font-weight: 500;\n"]))), l0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.product, d = c.templateData, p = c.widthView, h = c.ratioHeight, f = c.background, b = c.radius, g = c.radiusImage, m = c.paddingItem, v = c.textColor, y = c.subTextColor, x = c.priceColor, O = c.salePriceColor, j = c.regularPriceColor, k = c.wishlistColor, w = c.labelNewColor, C = c.labelNewTextColor, _ = c.radiusLabelNew, M = c.labelSaleColor, S = c.labelSaleTextColor, A = c.radiusLabelSale, T = c.iconCart, E = c.typeCart, I = c.radiusCart, N = c.shadow, z = c.translate, D = c.language, L = z ? D : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, R = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, P = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, B = Cu()(d, "enableRating", !0), F = Cu()(d, "enableQuantity", !0), V = Cu()(d, "enableAddCart", !0), W = Cu()(d, "enableCategory", !0), q = Cu()(d, "enableLabelNew", !0), H = Cu()(d, "enableLabelSale", !0), U = Cu()(d, "thumbSizes", "shop_catalog"), X = Cu()(d, "imageSize", "cover"), G = Cu()(d, "customAboveName"), K = Cu()(d, "customAbovePrice"), Y = Cu()(d, "customAboveRating"), Q = null != p ? p : R, J = Q * P / R * h, Z = null !== (i = Number(null !== (o = null == u ? void 0 : u.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, $ = null !== (a = Number(null !== (l = null == u ? void 0 : u.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, ee = Cu()(u, ["images", 0, U], Zp.NoImage);
return Object(Ip.jsxs)(n0, {
style: {
width: Q,
backgroundColor: f,
borderRadius: b,
boxShadow: N
},
children: [Object(Ip.jsxs)(r0, {
children: [Object(Ip.jsx)(d$, {
image: ee,
width: Q,
height: J,
radius: g,
imageSize: X
}), Object(Ip.jsx)(o0, {
children: q || H ? Object(Ip.jsx)(m$, {
product: u,
enableNew: q,
enableSale: H,
labelNewColor: w,
labelNewTextColor: C,
radiusLabelNew: _,
labelSaleColor: M,
labelSaleTextColor: S,
radiusLabelSale: A
}) : null
})]
}), Object(Ip.jsx)(i0, {
children: V ? Object(Ip.jsx)(S$, {
icon: T,
type: E,
radius: I
}) : Object(Ip.jsx)("div", {
style: {
height: 34,
width: 34
}
})
}), Object(Ip.jsxs)("div", {
style: {
padding: m,
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: Y,
color: y,
languageKey: L
}), B ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(t$, {
rating: Z,
count: $,
color: y
})
}) : null, Object(Ip.jsxs)("div", {
style: {
marginTop: 8,
display: "flex"
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginRight: 5
},
children: [W ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(t0, {
product: u,
color: y
})
}) : null, Object(Ip.jsx)(I$, {
product: u,
query: G,
color: y,
languageKey: L
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(a0, {
style: {
color: v
},
children: js()(null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "")
})
}), Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: K,
color: y,
languageKey: L
}), Object(Ip.jsx)(o$, {
product: u,
priceColor: x,
regularColor: j,
saleColor: O,
color: y
})]
})]
}), Object(Ip.jsx)(h$, {
color: k
})]
}), F ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(c$, {})
}) : null]
})]
})
}
}]),
n
}(l.Component);
l0.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
shadow: "none"
};
var s0, c0, u0, d0, p0, h0, f0 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(l0), b0 = Mu.b.div(s0 || (s0 = _u(["\n display: flex;\n margin: 0px -4px;\n"]))), g0 = Mu.b.div(c0 || (c0 = _u(["\n width: 8px;\n height: 8px;\n border-radius: 50%;\n margin: 0px 4px;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.color) && void 0 !== t ? t : "black"
}
)), m0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsxs)(b0, {
children: [Object(Ip.jsx)(g0, {
color: "#20C997"
}), Object(Ip.jsx)(g0, {
color: "#DD4B39"
}), Object(Ip.jsx)(g0, {
color: "#FFA200"
})]
})
}
}]),
n
}(l.Component), v0 = m0, y0 = Mu.b.div(u0 || (u0 = _u(["\n overflow: hidden;\n text-align: left;\n"]))), x0 = Mu.b.div(d0 || (d0 = _u(["\n position: relative;\n z-index: 100;\n"]))), O0 = Mu.b.div(p0 || (p0 = _u(["\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n display: flex;\n"]))), j0 = Mu.b.span(h0 || (h0 = _u(["\n font-size: 16px;\n font-weight: 500;\n"]))), k0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.product, d = c.templateData, p = c.widthView, h = c.ratioHeight, f = c.background, b = c.radius, g = c.radiusImage, m = c.paddingItem, v = c.textColor, y = c.subTextColor, x = c.priceColor, O = c.salePriceColor, j = c.regularPriceColor, k = c.wishlistColor, w = c.labelNewColor, C = c.labelNewTextColor, _ = c.radiusLabelNew, M = c.labelSaleColor, S = c.labelSaleTextColor, A = c.radiusLabelSale, T = c.iconCart, E = c.typeCart, I = c.radiusCart, N = c.shadow, z = c.translate, D = c.language, L = z ? D : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, R = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, P = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, B = Cu()(d, "enableRating", !0), F = Cu()(d, "enableQuantity", !0), V = Cu()(d, "enableAddCart", !0), W = Cu()(d, "enableCategory", !0), q = Cu()(d, "enableLabelNew", !0), H = Cu()(d, "enableLabelSale", !0), U = Cu()(d, "thumbSizes", "shop_catalog"), X = Cu()(d, "imageSize", "cover"), G = Cu()(d, "customAboveName"), K = Cu()(d, "customAbovePrice"), Y = Cu()(d, "customAboveRating"), Q = null != p ? p : R, J = Q * P / R * h, Z = null !== (i = Number(null !== (o = null == u ? void 0 : u.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, $ = null !== (a = Number(null !== (l = null == u ? void 0 : u.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, ee = Cu()(u, ["images", 0, U], Zp.NoImage);
return Object(Ip.jsxs)(y0, {
style: {
width: Q,
backgroundColor: f,
borderRadius: b,
boxShadow: N
},
children: [Object(Ip.jsxs)(x0, {
children: [Object(Ip.jsx)(d$, {
image: ee,
width: Q,
height: J,
radius: g,
imageSize: X
}), Object(Ip.jsxs)(O0, {
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: q || H ? Object(Ip.jsx)(m$, {
product: u,
enableNew: q,
enableSale: H,
labelNewColor: w,
labelNewTextColor: C,
radiusLabelNew: _,
labelSaleColor: M,
labelSaleTextColor: S,
radiusLabelSale: A
}) : null
}), V && Object(Ip.jsx)(S$, {
icon: T,
type: E,
radius: I
})]
})]
}), Object(Ip.jsxs)("div", {
style: {
padding: m,
marginTop: 16
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: Y,
color: y,
languageKey: L
}), Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "flex-start"
},
children: [Object(Ip.jsx)("div", {
style: {
flex: 1,
marginRight: 5
},
children: B ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(t$, {
rating: Z,
count: $,
color: y
})
}) : null
}), Object(Ip.jsx)(h$, {
color: k
})]
}), W ? Object(Ip.jsx)("div", {
style: {
marginTop: 5
},
children: Object(Ip.jsx)(t0, {
product: u,
color: y
})
}) : null, Object(Ip.jsx)(I$, {
product: u,
query: G,
color: y,
languageKey: L
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(j0, {
style: {
color: v
},
children: js()(null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "")
})
}), Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: K,
color: y,
languageKey: L
}), Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: Object(Ip.jsx)(o$, {
product: u,
priceColor: x,
regularColor: j,
saleColor: O,
color: y
})
}), Object(Ip.jsx)(v0, {})]
})]
}), F ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(c$, {})
}) : null]
})]
})
}
}]),
n
}(l.Component);
k0.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
shadow: "none"
};
var w0, C0, _0, M0, S0 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(k0), A0 = Mu.b.div(w0 || (w0 = _u(["\n overflow: hidden;\n text-align: left;\n"]))), T0 = Mu.b.div(C0 || (C0 = _u(["\n position: relative;\n"]))), E0 = Mu.b.div(_0 || (_0 = _u(["\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n bottom: 8px;\n display: flex;\n"]))), I0 = Mu.b.span(M0 || (M0 = _u(["\n font-size: 16px;\n font-weight: 500;\n"]))), N0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.product, d = c.templateData, p = c.widthView, h = c.ratioHeight, f = c.background, b = c.radius, g = c.radiusImage, m = c.paddingItem, v = c.textColor, y = c.subTextColor, x = c.priceColor, O = c.salePriceColor, j = c.regularPriceColor, k = c.wishlistColor, w = c.labelNewColor, C = c.labelNewTextColor, _ = c.radiusLabelNew, M = c.labelSaleColor, S = c.labelSaleTextColor, A = c.radiusLabelSale, T = c.iconCart, E = c.typeCart, I = c.radiusCart, N = c.enableIconCart, z = c.shadow, D = c.translate, L = c.language, R = D ? L : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, P = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, B = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, F = Cu()(d, "enableRating", !0), V = Cu()(d, "enableQuantity", !0), W = Cu()(d, "enableAddCart", !0), q = Cu()(d, "enableCategory", !0), H = Cu()(d, "enableLabelNew", !0), U = Cu()(d, "enableLabelSale", !0), X = Cu()(d, "thumbSizes", "shop_catalog"), G = Cu()(d, "imageSize", "cover"), K = Cu()(d, "customAboveName"), Y = Cu()(d, "customAbovePrice"), Q = Cu()(d, "customAboveRating"), J = null != p ? p : P, Z = J * B / P * h, $ = null !== (i = Number(null !== (o = null == u ? void 0 : u.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, ee = null !== (a = Number(null !== (l = null == u ? void 0 : u.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, te = Cu()(u, ["images", 0, X], Zp.NoImage), ne = oZ(Q, R);
return Object(Ip.jsxs)(A0, {
style: {
width: J,
backgroundColor: f,
borderRadius: b,
boxShadow: z
},
children: [Object(Ip.jsxs)(T0, {
children: [Object(Ip.jsx)(d$, {
image: te,
width: J,
height: Z,
radius: g,
imageSize: G
}), Object(Ip.jsxs)(E0, {
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: H || U ? Object(Ip.jsx)(m$, {
product: u,
enableNew: H,
enableSale: U,
labelNewColor: w,
labelNewTextColor: C,
radiusLabelNew: _,
labelSaleColor: M,
labelSaleTextColor: S,
radiusLabelSale: A
}) : null
}), Object(Ip.jsx)(h$, {
color: k
})]
})]
}), Object(Ip.jsxs)("div", {
style: {
padding: m,
marginTop: 16,
display: "flex",
flexDirection: "column",
alignItems: "center",
textAlign: "center"
},
children: [(F || ne) && Object(Ip.jsxs)("div", {
style: {
marginBottom: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: Q,
color: y,
languageKey: R,
textCenter: !0
}), F && Object(Ip.jsx)(t$, {
rating: $,
count: ee,
color: y
})]
}), q ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(t0, {
product: u,
color: y
})
}) : null, Object(Ip.jsxs)("div", {
style: {
marginBottom: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: K,
color: y,
languageKey: R,
textCenter: !0
}), Object(Ip.jsx)(I0, {
style: {
color: v
},
children: js()(null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "")
})]
}), Object(Ip.jsxs)("div", {
style: {
marginBottom: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: Y,
color: y,
languageKey: R,
textCenter: !0
}), Object(Ip.jsx)(o$, {
product: u,
priceColor: x,
regularColor: j,
saleColor: O,
color: y
})]
}), Object(Ip.jsx)(v0, {}), V ? Object(Ip.jsx)("div", {
style: {
marginTop: 13
},
children: Object(Ip.jsx)(c$, {})
}) : null, W && Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(S$, {
type: E,
icon: T,
radius: I,
text: "Add to Cart",
enableIcon: N
})
})]
})]
})
}
}]),
n
}(l.Component);
N0.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
enableIconCart: !0,
shadow: "none"
};
var z0, D0, L0 = N0, R0 = Mu.b.div(z0 || (z0 = _u(["\n overflow: hidden;\n text-align: left;\n"]))), P0 = Mu.b.span(D0 || (D0 = _u(["\n font-size: 16px;\n font-weight: 500;\n"]))), B0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d = this.props, p = d.product, h = d.templateData, f = d.widthView, b = d.ratioHeight, g = d.background, m = d.radius, v = d.radiusImage, y = d.paddingItem, x = d.textColor, O = d.subTextColor, j = d.priceColor, k = d.salePriceColor, w = d.regularPriceColor, C = d.wishlistColor, _ = d.iconCart, M = d.typeCart, S = d.radiusCart, A = d.enableIconCart, T = d.shadow, E = d.translate, I = d.language, N = E ? I : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, z = null !== (n = Number(Cu()(h, "size.width", 100))) && void 0 !== n ? n : 100, D = null !== (r = Number(Cu()(h, "size.height", 100))) && void 0 !== r ? r : 100, L = Cu()(h, "imageSize", "cover"), R = Cu()(h, "enableRating", !0), P = Cu()(h, "enableQuantity", !0), B = Cu()(h, "enableAddCart", !0), F = Cu()(h, "enableCategory", !0), V = Cu()(h, "thumbSizes", "shop_catalog"), W = Cu()(h, "customAboveName"), q = Cu()(h, "customAbovePrice"), H = Cu()(h, "customAboveRating"), U = oZ(H, N), X = null != f ? f : z, G = X * D / z * b, K = null !== (i = Number(null !== (o = null == p ? void 0 : p.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, Y = null !== (a = Number(null !== (l = null == p ? void 0 : p.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, Q = Cu()(p, ["images", 0, V], Zp.NoImage);
return Object(Ip.jsxs)(R0, {
style: {
width: X,
backgroundColor: g,
borderRadius: m,
boxShadow: T
},
children: [Object(Ip.jsx)(d$, {
image: Q,
width: X,
height: G,
radius: v,
imageSize: L
}), Object(Ip.jsxs)("div", {
style: {
padding: y
},
children: [F ? Object(Ip.jsx)("div", {
style: {
marginBottom: 8
},
children: Object(Ip.jsx)(t0, {
product: p,
color: O
})
}) : null, Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "end",
justifyContent: "space-between"
},
children: [null !== (s = Object(Ip.jsx)(I$, {
product: p,
query: W,
color: O,
languageKey: N
})) && void 0 !== s ? s : Object(Ip.jsx)("div", {}), null !== (c = Object(Ip.jsx)(I$, {
product: p,
query: q,
color: O,
languageKey: N
})) && void 0 !== c ? c : Object(Ip.jsx)("div", {})]
}), Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "flex-start"
},
children: [Object(Ip.jsx)("div", {
style: {
flex: 1,
marginRight: 5
},
children: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(P0, {
style: {
color: x
},
children: js()(null !== (u = null == p ? void 0 : p.name) && void 0 !== u ? u : "")
})
})
}), Object(Ip.jsx)(o$, {
product: p,
priceColor: j,
regularColor: w,
saleColor: k,
color: O
})]
}), (R || U) && Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: p,
query: H,
color: O,
languageKey: N
}), R && Object(Ip.jsx)(t$, {
rating: K,
count: Y,
color: O
})]
}), P ? Object(Ip.jsx)("div", {
style: {
marginTop: 24
},
children: Object(Ip.jsx)(c$, {})
}) : null, B && Object(Ip.jsx)("div", {
style: {
marginTop: P ? 12 : 24
},
children: Object(Ip.jsx)(S$, {
type: M,
radius: S,
icon: _,
text: "BUY PRODUCT",
enableIcon: A
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16,
float: "right"
},
children: Object(Ip.jsx)(h$, {
color: C
})
})]
})]
})
}
}]),
n
}(l.Component);
B0.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
enableIconCart: !0,
shadow: "none"
};
var F0, V0, W0, q0 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(B0), H0 = Mu.b.div(F0 || (F0 = _u(["\n overflow: hidden;\n text-align: left;\n position: relative;\n"]))), U0 = Mu.b.div(V0 || (V0 = _u(["\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px; \n"]))), X0 = Mu.b.span(W0 || (W0 = _u(["\n font-size: 14px;\n font-weight: 500;\n"]))), G0 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a = this.props, l = a.product, s = a.templateData, c = a.widthView, u = a.ratioHeight, d = a.background, p = a.radius, h = a.radiusImage, f = a.paddingItem, b = a.textColor, g = a.subTextColor, m = a.priceColor, v = a.salePriceColor, y = a.regularPriceColor, x = a.wishlistColor, O = a.labelNewColor, j = a.labelNewTextColor, k = a.radiusLabelNew, w = a.labelSaleColor, C = a.labelSaleTextColor, _ = a.radiusLabelSale, M = a.iconCart, S = a.typeCart, A = a.radiusCart, T = a.darkModeKey, E = a.enableIconCart, I = a.shadow, N = a.translate, z = a.language, D = N ? z : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, L = null !== (n = Number(Cu()(s, "size.width", 100))) && void 0 !== n ? n : 100, R = null !== (r = Number(Cu()(s, "size.height", 100))) && void 0 !== r ? r : 100, P = Cu()(s, "imageSize", "cover"), B = Cu()(s, "enableQuantity", !0), F = Cu()(s, "enableAddCart", !0), V = Cu()(s, "enablePrice", !0), W = Cu()(s, "enableCategory", !0), q = Cu()(s, "enableLabelNew", !0), H = Cu()(s, "enableLabelSale", !0), U = Cu()(s, "thumbSizes", "shop_catalog"), X = null !== (i = Number(Cu()(s, "opacity", .6))) && void 0 !== i ? i : .6, G = rH(Cu()(s, ["opacityColor", T], ec.black)), K = Cu()(s, "customAboveName"), Y = Cu()(s, "customAbovePrice"), Q = null != c ? c : L, J = Q * R / L * u, Z = Cu()(l, ["images", 0, U], Zp.NoImage);
return Object(Ip.jsxs)(H0, {
style: {
width: Q,
backgroundColor: d,
borderRadius: p,
boxShadow: I
},
children: [Object(Ip.jsx)(d$, {
image: Z,
width: Q,
height: J,
radius: h,
imageSize: P
}), Object(Ip.jsx)(U0, {
style: {
backgroundColor: G,
opacity: X,
borderRadius: h
}
}), Object(Ip.jsxs)(U0, {
style: {
padding: f,
boxSizing: "border-box",
display: "flex",
flexDirection: "column"
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1
},
children: [Object(Ip.jsxs)("div", {
style: {
display: "flex",
marginBottom: 8
},
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: W ? Object(Ip.jsx)("div", {
style: {
marginTop: 5
},
children: Object(Ip.jsx)(t0, {
product: l,
color: g
})
}) : null
}), q || H ? Object(Ip.jsx)(m$, {
product: l,
enableNew: q,
enableSale: H,
labelNewColor: O,
labelNewTextColor: j,
radiusLabelNew: k,
labelSaleColor: w,
labelSaleTextColor: C,
radiusLabelSale: _
}) : null]
}), Object(Ip.jsx)(I$, {
product: l,
query: K,
color: g,
languageKey: D
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(X0, {
style: {
color: b
},
children: js()(null !== (o = null == l ? void 0 : l.name) && void 0 !== o ? o : "")
})
}), Object(Ip.jsx)(I$, {
product: l,
query: Y,
color: g,
languageKey: D
}), V ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(o$, {
product: l,
priceColor: m,
regularColor: y,
saleColor: v,
color: g
})
}) : null, B ? Object(Ip.jsx)("div", {
style: {
marginTop: 4
},
children: Object(Ip.jsx)(c$, {})
}) : null]
}), Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [F && Object(Ip.jsx)("div", {
style: {
flex: 1,
display: "flex"
},
children: Object(Ip.jsx)(S$, {
icon: M,
type: S,
radius: A,
text: "BUY PRODUCT",
enableIcon: E
})
}), Object(Ip.jsx)(h$, {
color: x
})]
})]
})]
})
}
}]),
n
}(l.Component);
G0.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
enableIconCart: !0,
shadow: "none"
};
var K0, Y0, Q0, J0, Z0 = va((function(e) {
return {
darkModeKey: Gc(e),
language: Kc(e),
translate: Qc(e)
}
}
))(G0), $0 = Mu.b.div(K0 || (K0 = _u(["\n position: relative;\n"]))), e1 = Mu.b.div(Y0 || (Y0 = _u(["\n position: absolute;\n top: 8px;\n left: 8px;\n right: 8px;\n display: flex;\n"]))), t1 = Mu.b.div(Q0 || (Q0 = _u(["\n position: absolute;\n right: 0px;\n bottom: 0px\n"]))), n1 = Mu.b.span(J0 || (J0 = _u(["\n"]))), r1 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.product, d = c.templateData, p = c.widthView, h = c.ratioHeight, f = c.background, b = c.radius, g = c.radiusImage, m = c.paddingItem, v = c.textColor, y = c.subTextColor, x = c.priceColor, O = c.salePriceColor, j = c.regularPriceColor, k = c.wishlistColor, w = c.labelNewColor, C = c.labelNewTextColor, _ = c.radiusLabelNew, M = c.labelSaleColor, S = c.labelSaleTextColor, A = c.radiusLabelSale, T = c.iconCart, E = c.typeCart, I = c.radiusCart, N = c.shadow, z = c.translate, D = c.language, L = z ? D : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language, R = null !== (n = Number(Cu()(d, "size.width", 100))) && void 0 !== n ? n : 100, P = null !== (r = Number(Cu()(d, "size.height", 100))) && void 0 !== r ? r : 100, B = Cu()(d, "enableRating", !0), F = Cu()(d, "enableQuantity", !0), V = Cu()(d, "enableAddCart", !0), W = Cu()(d, "enableLabelNew", !0), q = Cu()(d, "enableLabelSale", !0), H = Cu()(d, "thumbSizes", "shop_catalog"), U = Cu()(d, "imageSize", "cover"), X = Cu()(d, "customAboveName"), G = Cu()(d, "customAbovePrice"), K = Cu()(d, "customAboveRating"), Y = Dt()(m, "px"), Q = Y.length > 2 ? parseInt(Y[1]) : 0, J = null != p ? p : R, Z = J - (Y.length > 4 ? parseInt(Y[3]) : 0) - Q, $ = Z * P / R * h, ee = null !== (i = Number(null !== (o = null == u ? void 0 : u.average_rating) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, te = null !== (a = Number(null !== (l = null == u ? void 0 : u.rating_count) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, ne = Cu()(u, ["images", 0, H], Zp.NoImage), re = oZ(K, L);
return Object(Ip.jsxs)("div", {
style: {
width: J,
position: "relative",
textAlign: "left"
},
children: [Object(Ip.jsxs)("div", {
style: {
padding: m,
boxSizing: "border-box",
backgroundColor: f,
borderRadius: b,
overflow: "hidden",
boxShadow: N
},
children: [Object(Ip.jsxs)($0, {
children: [Object(Ip.jsx)(d$, {
image: ne,
width: Z,
height: $,
radius: g,
imageSize: U
}), Object(Ip.jsxs)(e1, {
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: W || q ? Object(Ip.jsx)(m$, {
product: u,
enableNew: W,
enableSale: q,
labelNewColor: w,
labelNewTextColor: C,
radiusLabelNew: _,
labelSaleColor: M,
labelSaleTextColor: S,
radiusLabelSale: A
}) : null
}), Object(Ip.jsx)(h$, {
color: k
})]
})]
}), Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: X,
color: y,
languageKey: L
}), Object(Ip.jsx)(n1, {
style: {
color: v
},
children: js()(null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "")
})]
}), Object(Ip.jsxs)("div", {
style: {
marginTop: 4
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: G,
color: y,
languageKey: L
}), Object(Ip.jsx)(o$, {
product: u,
priceColor: x,
regularColor: j,
saleColor: O,
color: y
})]
}), (B || re) && Object(Ip.jsxs)("div", {
style: {
marginTop: 8
},
children: [Object(Ip.jsx)(I$, {
product: u,
query: K,
color: y,
languageKey: L
}), B && Object(Ip.jsx)(t$, {
rating: ee,
count: te,
color: y,
enableBasic: !0
})]
}), F ? Object(Ip.jsx)("div", {
style: {
marginTop: 12
},
children: Object(Ip.jsx)(c$, {})
}) : null]
}), V && Object(Ip.jsx)(t1, {
children: Object(Ip.jsx)(S$, {
icon: T,
type: E,
radius: I,
enableAllRadius: !1
})
})]
})
}
}]),
n
}(l.Component);
r1.defaultProps = {
ratioHeight: 1,
typeCart: "elevated",
iconCart: {
type: "feather",
name: "plus"
},
radiusCart: 8,
shadow: "none"
};
var i1, o1, a1, l1, s1, c1 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(r1), u1 = {
list: CJ,
carousel: SJ,
masonry: NJ,
"big-first": BJ,
slideshow: XJ,
grid: QJ
}, d1 = {
contained: kZ,
horizontal: CZ,
emerge: MZ,
vertical: AZ,
"vertical-center": EZ,
"card-vertical": NZ,
"card-horizontal": RZ,
curve: DZ
}, p1 = {
contained: F$,
horizontal: Q$,
emerge: f0,
vertical: S0,
"vertical-center": L0,
"card-vertical": q0,
"card-horizontal": Z0,
curve: c1
}, h1 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p, h, f, b, g, m = this.props, v = m.widget, y = v.fields, x = v.styles, O = v.layout, j = m.width, k = m.darkModeKey, w = m.products, C = m.loading, _ = null !== (e = u1[O]) && void 0 !== e ? e : u1.list, M = null !== (t = Number(Cu()(x, ["pad"], 12))) && void 0 !== t ? t : 12, S = null !== (n = Number(Cu()(x, ["dividerWidth"], 1))) && void 0 !== n ? n : 1, A = rH(Cu()(x, ["dividerColor", k], ec.borderLightMode)), T = rH(Cu()(x, ["indicatorColor", k], ec.borderLightMode)), E = rH(Cu()(x, ["indicatorActiveColor", k], ec.tertiaryText)), I = null !== (r = Number(Cu()(x, ["col"], 2))) && void 0 !== r ? r : 2, N = null !== (i = Number(Cu()(x, ["ratio"], 1))) && void 0 !== i ? i : 1, z = rH(Cu()(x, ["backgroundColorItem", k], ec.transparent)), D = null !== (o = Number(Cu()(x, "radius", 0))) && void 0 !== o ? o : 0, L = null !== (a = Number(Cu()(x, "radiusImage", 0))) && void 0 !== a ? a : 0, R = Qq(Cu()(x, "paddingItem", {}), "paddingItem"), P = rH(Cu()(x, ["textColor", k], ec.black)), B = rH(Cu()(x, ["subTextColor", k], ec.tertiaryText)), F = rH(Cu()(x, ["priceColor", k], ec.black)), V = rH(Cu()(x, ["salePriceColor", k], ec.redColor)), W = rH(Cu()(x, ["regularPriceColor", k], ec.secondaryText)), q = rH(Cu()(x, ["wishlistColor", k], ec.black)), H = rH(Cu()(x, ["labelNewColor", k], ec.greenColor)), U = rH(Cu()(x, ["labelNewTextColor", k], ec.white)), X = null !== (l = Number(Cu()(x, ["radiusLabelNew"], 8))) && void 0 !== l ? l : 8, G = rH(Cu()(x, ["labelSaleColor", k], ec.redColor)), K = rH(Cu()(x, ["labelSaleTextColor", k], ec.white)), Y = null !== (s = Number(Cu()(x, ["radiusLabelSale"], 8))) && void 0 !== s ? s : 8, Q = Cu()(x, ["typeCart"], "elevated"), J = Cu()(x, ["enableIconCart"], !0), Z = Cu()(x, ["iconCart"], {
type: "feather",
name: "plus"
}), $ = null !== (c = Number(Cu()(x, ["radiusCart"], 8))) && void 0 !== c ? c : 8, ee = rH(Cu()(x, ["shadowColor", k], ec.transparent)), te = null !== (u = Number(Cu()(x, ["offsetX"], 0))) && void 0 !== u ? u : 0, ne = null !== (d = Number(Cu()(x, ["offsetY"], 4))) && void 0 !== d ? d : 4, re = null !== (p = Number(Cu()(x, ["blurRadius"], 24))) && void 0 !== p ? p : 24, ie = null !== (h = Number(Cu()(x, ["spreadRadius"], 0))) && void 0 !== h ? h : 0, oe = null !== (f = Number(null !== (b = null == y ? void 0 : y.limit) && void 0 !== b ? b : 4)) && void 0 !== f ? f : 4, ae = null !== (g = null == y ? void 0 : y.enableLoadMore) && void 0 !== g && g, le = Cu()(y, ["template", "template"], "emerge"), se = Cu()(y, ["template", "data"], {}), ce = "".concat(te, "px ").concat(ne, "px ").concat(re, "px ").concat(ie, "px ").concat(ee);
return Object(Ip.jsx)(_, {
length: C ? oe : w.length,
pad: M,
dividerWidth: S,
dividerColor: A,
widthView: j,
col: I,
ratio: N,
indicatorColor: T,
indicatorActiveColor: E,
enableLoadMore: ae && (C || w.length === oe),
renderItem: function(e, t, n, r) {
var i;
if (C) {
var o;
if ("big-first" === O && 0 === e)
return Object(Ip.jsx)(kZ, {
templateData: _t(_t({}, se), {}, {
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0
}),
paddingItem: "",
radiusImage: 8,
widthView: t,
background: "transparent",
heightView: n,
radius: 0
});
var a = null !== (o = d1[le]) && void 0 !== o ? o : d1.contained;
return Object(Ip.jsx)(a, {
templateData: se,
widthView: t,
heightView: n,
background: z,
radius: D,
radiusImage: L,
paddingItem: R,
ratioHeight: r,
shadow: ce
})
}
if ("big-first" === O && 0 === e)
return Object(Ip.jsx)(F$, {
heightView: n,
regularPriceColor: rH("dark" === k ? ec.secondaryTextDarkMode : ec.secondaryText),
templateData: _t(_t({}, se), {}, {
thumbSizes: "shop_catalog",
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0,
enableQuantity: !0
}),
textColor: rH("dark" === k ? ec.white : ec.black),
product: w[e],
priceColor: rH("dark" === k ? ec.white : ec.black),
widthView: t
});
var l = null !== (i = p1[le]) && void 0 !== i ? i : p1.contained;
return Object(Ip.jsx)(l, {
product: w[e],
templateData: se,
widthView: t,
heightView: n,
ratioHeight: r,
background: z,
radius: D,
radiusImage: L,
paddingItem: R,
textColor: P,
subTextColor: B,
priceColor: F,
regularPriceColor: W,
salePriceColor: V,
wishlistColor: q,
labelNewColor: H,
labelNewTextColor: U,
radiusLabelNew: X,
labelSaleColor: G,
labelSaleTextColor: K,
radiusLabelSale: Y,
typeCart: Q,
enableIconCart: J,
iconCart: Z,
radiusCart: $,
shadow: ce
})
}
})
}
}]),
n
}(l.Component), f1 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(h1), b1 = ps.a.CancelToken, g1 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = b1.source(),
e.fetchData = function() {
var t, n, r = e.props, i = r.widget.fields, o = r.translate, a = r.language, l = Number((null == i ? void 0 : i.limit) || "4") > 0 ? Number((null == i ? void 0 : i.limit) || "4") : 4, s = null !== (t = null == i ? void 0 : i.categories) && void 0 !== t ? t : [], c = null !== (n = null == i ? void 0 : i.excludeProduct) && void 0 !== n ? n : [], u = {
lang: o ? a : "en",
per_page: l,
status: "publish",
orderby: "date",
order: "desc",
category: s.length > 0 ? s.map((function(e) {
return e.key
}
)).join(",") : null,
exclude: c.map((function(e) {
return e.key
}
))
};
e.getDataTag(u)
}
,
e.getDataTag = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f, b, g, m;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.categories, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.categories) && mh()(null == e || null === (h = e.widget) || void 0 === h || null === (f = h.fields) || void 0 === f ? void 0 : f.excludeProduct, null === (b = this.props) || void 0 === b || null === (g = b.widget) || void 0 === g || null === (m = g.fields) || void 0 === m ? void 0 : m.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), m1 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(g1), v1 = Mu.b.div(i1 || (i1 = _u(["\n text-align: start;\n"]))), y1 = Mu.b.div(o1 || (o1 = _u(["\n height: 24px;\n margin: 0px 20px;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n"]))), x1 = Mu.b.div(a1 || (a1 = _u(["\n margin-right: 16px;\n display: flex;\n align-items: center;\n"]))), O1 = Mu.b.div(l1 || (l1 = _u(["\n width: 6px;\n height: 6px;\n border-radius: 3px;\n background-color: ", ";\n margin-right: 8px;\n"])), (function(e) {
return e.color
}
)), j1 = Object(Mu.b)(O1)(s1 || (s1 = _u(["\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), k1 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.width, r = t.height, i = t.widthView, o = t.isPagination, a = t.item, l = t.renderItem, s = t.colorPagination, c = t.colorPaginationActive, u = i, d = u * r / n;
return a ? Object(Ip.jsxs)(v1, {
children: [Object(Ip.jsx)("div", {
style: {
width: u,
height: d,
position: "relative"
},
children: l && l(null == a ? void 0 : a.data, null !== (e = null == a ? void 0 : a.template) && void 0 !== e ? e : "default", u)
}), o ? Object(Ip.jsx)(y1, {
children: Object(Ip.jsxs)(x1, {
children: [Object(Ip.jsx)(O1, {
color: s
}), Object(Ip.jsx)(j1, {
color: c
}), Object(Ip.jsx)(O1, {
color: s
})]
})
}) : null]
}) : null
}
}]),
n
}(l.Component);
k1.defaultProps = {
widthView: 362,
width: 375,
height: 330,
isPagination: !1
};
var w1, C1, _1, M1, S1, A1, T1, E1, I1 = k1, N1 = Mu.b.div(w1 || (w1 = _u(["\n text-align: start;\n"]))), z1 = Mu.b.div(C1 || (C1 = _u(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n"]))), D1 = Mu.b.div(_1 || (_1 = _u(["\n width: 16px;\n background-color: rgb(126, 130, 164, 0.5);\n opacity: 0.5;\n"]))), L1 = Object(Mu.b)(D1)(M1 || (M1 = _u(["\n border-top-right-radius: 6px;\n border-bottom-right-radius: 6px;\n"]))), R1 = Object(Mu.b)(D1)(S1 || (S1 = _u(["\n border-top-left-radius: 6px;\n border-bottom-left-radius: 6px;\n"]))), P1 = Mu.b.div(A1 || (A1 = _u(["\n margin-top: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), B1 = Mu.b.div(T1 || (T1 = _u(["\n width: 6px;\n height: 6px;\n border-radius: 3px;\n background-color: ", ";\n margin-right: 8px;\n"])), (function(e) {
return e.color
}
)), F1 = Object(Mu.b)(B1)(E1 || (E1 = _u(["\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), V1 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.width, r = t.height, i = t.widthView, o = t.isPagination, a = t.item, l = t.renderItem, s = t.colorPagination, c = t.colorPaginationActive, u = i - 64, d = u * r / n;
return a ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(N1, {
children: Object(Ip.jsxs)(z1, {
children: [Object(Ip.jsx)(L1, {
style: {
height: .78 * d
}
}), Object(Ip.jsx)("div", {
style: {
width: u,
height: d,
borderRadius: 8,
overflow: "hidden",
position: "relative"
},
children: l && l(null == a ? void 0 : a.data, null !== (e = null == a ? void 0 : a.template) && void 0 !== e ? e : "default", u)
}), Object(Ip.jsx)(R1, {
style: {
height: .78 * d
}
})]
})
}), o ? Object(Ip.jsxs)(P1, {
children: [Object(Ip.jsx)(B1, {
color: s
}), Object(Ip.jsx)(F1, {
color: c
}), Object(Ip.jsx)(B1, {
color: s
})]
}) : null]
}) : null
}
}]),
n
}(l.Component);
V1.defaultProps = {
widthView: 362,
width: 375,
height: 330,
isPagination: !1
};
var W1, q1, H1, U1, X1, G1, K1 = V1, Y1 = Mu.b.div(W1 || (W1 = _u(["\n display: flex;\n"]))), Q1 = Mu.b.div(q1 || (q1 = _u(["\n flex: 1;\n height: ", "px;\n border-radius: 8px;\n overflow: hidden;\n position: relative;\n"])), (function(e) {
return e.height
}
)), J1 = Mu.b.div(H1 || (H1 = _u(["\n width: 7px;\n background-color: rgb(126, 130, 164, 0.5);\n margin: ", "px 0px;\n border-top-left-radius: 3px;\n border-bottom-left-radius: 3px;\n opacity: ", ";\n"])), (function(e) {
return e.margin
}
), (function(e) {
return e.opacity
}
)), Z1 = Mu.b.div(U1 || (U1 = _u(["\n margin-top: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), $1 = Mu.b.div(X1 || (X1 = _u(["\n width: 6px;\n height: 6px;\n border-radius: 3px;\n background-color: ", ";\n margin-right: 8px;\n"])), (function(e) {
return e.color
}
)), e2 = Object(Mu.b)($1)(G1 || (G1 = _u(["\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), t2 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderHiddenItem = function(e, t) {
var n = 7 * (e - t)
, r = function(e, t) {
var n = 0;
return e > 1 && (n = .4 * t / (e - 1)),
.3 + n
}(e, t);
return Object(Ip.jsx)(J1, {
margin: n,
opacity: r
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this, n = this.props, r = n.width, i = n.height, o = n.widthView, a = n.isPagination, l = n.item, s = n.items, c = n.renderItem, u = n.colorPagination, d = n.colorPaginationActive, p = Array(s.length - 1 > 0 ? s.length - 1 : 0).fill(0), h = o - 7 * p.length, f = h * i / r;
return l ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(Y1, {
children: [p.length > 0 && p.map((function(e, n) {
return t._renderHiddenItem(p.length, n)
}
)), Object(Ip.jsx)(Q1, {
height: f,
children: c && c(null == l ? void 0 : l.data, null !== (e = null == l ? void 0 : l.template) && void 0 !== e ? e : "default", h)
})]
}), a ? Object(Ip.jsxs)(Z1, {
children: [Object(Ip.jsx)($1, {
color: u
}), Object(Ip.jsx)(e2, {
color: d
}), Object(Ip.jsx)($1, {
color: u
})]
}) : null]
}) : null
}
}]),
n
}(l.Component);
t2.defaultProps = {
widthView: 362,
width: 375,
height: 330,
isPagination: !1
};
var n2, r2, i2, o2, a2, l2 = t2, s2 = Mu.b.div(n2 || (n2 = _u(["\n height: ", "px;\n border-radius: 8px;\n overflow: hidden;\n position: relative;\n"])), (function(e) {
return e.height
}
)), c2 = Mu.b.div(r2 || (r2 = _u(["\n height: 7px;\n background-color: rgb(126, 130, 164, 0.5);\n margin: 0px ", "px;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n opacity: ", ";\n"])), (function(e) {
return e.margin
}
), (function(e) {
return e.opacity
}
)), u2 = Mu.b.div(i2 || (i2 = _u(["\n margin-top: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), d2 = Mu.b.div(o2 || (o2 = _u(["\n width: 6px;\n height: 6px;\n border-radius: 3px;\n background-color: ", ";\n margin-right: 8px;\n"])), (function(e) {
return e.color
}
)), p2 = Object(Mu.b)(d2)(a2 || (a2 = _u(["\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), h2 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderHiddenItem = function(e, t) {
var n = 7 * (t + 1)
, r = function(e, t) {
var n = 0;
return e > 1 && (n = .4 * t / (e - 1)),
.7 - n
}(e, t);
return Object(Ip.jsx)(c2, {
margin: n,
opacity: r
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this, n = this.props, r = n.width, i = n.height, o = n.widthView, a = n.isPagination, l = n.items, s = n.item, c = n.renderItem, u = n.colorPagination, d = n.colorPaginationActive, p = Array(l.length - 1 > 0 ? l.length - 1 : 0).fill(0), h = o, f = h * i / r;
return s ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(s2, {
height: f,
children: c && c(null == s ? void 0 : s.data, null !== (e = null == s ? void 0 : s.template) && void 0 !== e ? e : "default", h)
}), p.length > 0 && p.map((function(e, n) {
return t._renderHiddenItem(p.length, n)
}
))]
}), a ? Object(Ip.jsxs)(u2, {
children: [Object(Ip.jsx)(d2, {
color: u
}), Object(Ip.jsx)(p2, {
color: d
}), Object(Ip.jsx)(d2, {
color: u
})]
}) : null]
}) : null
}
}]),
n
}(l.Component);
h2.defaultProps = {
widthView: 362,
width: 375,
height: 330,
isPagination: !1
};
var f2, b2, g2, m2, v2, y2, x2 = h2, O2 = Mu.b.div(f2 || (f2 = _u(["\n display: flex;\n"]))), j2 = Mu.b.div(b2 || (b2 = _u(["\n flex: 1;\n height: ", "px;\n border-radius: 8px;\n overflow: hidden;\n position: relative;\n"])), (function(e) {
return e.height
}
)), k2 = Mu.b.div(g2 || (g2 = _u(["\n width: 25px;\n overflow: hidden;\n div {\n width: 19px;\n height: 100%;\n background-color: rgb(126, 130, 164, 0.5);\n opacity: 0.5;\n border-radius: 3px;\n }\n &.slideshow-rotate-left {\n div {\n transform: rotate(-15deg);\n margin-left: -36px;\n }\n }\n &.slideshow-rotate-right {\n div {\n transform: rotate(15deg);\n margin-left: 42px;\n }\n }\n"]))), w2 = Mu.b.div(m2 || (m2 = _u(["\n margin-top: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), C2 = Mu.b.div(v2 || (v2 = _u(["\n width: 6px;\n height: 6px;\n border-radius: 3px;\n background-color: ", ";\n margin-right: 8px;\n"])), (function(e) {
return e.color
}
)), _2 = Object(Mu.b)(C2)(y2 || (y2 = _u(["\n width: 10px;\n height: 10px;\n border-radius: 5px;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), M2 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.width, r = t.height, i = t.widthView, o = t.isPagination, a = t.item, l = t.renderItem, s = t.colorPagination, c = t.colorPaginationActive, u = i - 50, d = u * r / n;
return a ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(O2, {
children: [Object(Ip.jsx)(k2, {
className: "slideshow-rotate-left",
children: Object(Ip.jsx)("div", {})
}), Object(Ip.jsx)(j2, {
height: d,
children: l && l(null == a ? void 0 : a.data, null !== (e = null == a ? void 0 : a.template) && void 0 !== e ? e : "default", u)
}), Object(Ip.jsx)(k2, {
className: "slideshow-rotate-right",
children: Object(Ip.jsx)("div", {})
})]
}), o ? Object(Ip.jsxs)(w2, {
children: [Object(Ip.jsx)(C2, {
color: s
}), Object(Ip.jsx)(_2, {
color: c
}), Object(Ip.jsx)(C2, {
color: s
})]
}) : null]
}) : null
}
}]),
n
}(l.Component);
M2.defaultProps = {
widthView: 362,
width: 375,
height: 330,
isPagination: !1
};
var S2, A2 = M2, T2 = Mu.b.img(S2 || (S2 = _u(["\n object-fit: ", ";\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.objectFit) && void 0 !== t ? t : "fill"
}
)), E2 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.language
, r = e.translate
, i = e.darkModeKey
, o = e.widthSize;
if (!t)
return null;
var a = Cu()(t, ["image"], "")
, l = Cu()(t, ["imageSize"], {
width: 375,
height: 300
})
, s = Cu()(t, ["layer"], [])
, c = a ? "string" == typeof a ? a : r ? null == a ? void 0 : a[n] : null == a ? void 0 : a.src : ""
, u = parseFloat(l.width) > 0 ? parseFloat(l.width) : 375
, d = parseFloat(l.height) > 0 ? parseFloat(l.height) : 300
, p = null != o ? o : 300;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(T2, {
src: c || Zp.NoImage,
width: o,
height: p * d / u,
objectFit: "fill"
}), s.map((function(e, t) {
return Object(Ip.jsx)(o6, {
item: e,
language: n,
translate: r,
darkModeKey: i
}, t)
}
))]
})
}
}]),
n
}(l.Component);
E2.defaultProps = {
widthSize: 300
};
var I2, N2, z2, D2, L2, R2, P2, B2, F2, V2, W2, q2, H2, U2, X2, G2, K2, Y2, Q2, J2, Z2, $2, e3, t3, n3, r3, i3, o3, a3, l3, s3, c3, u3, d3, p3, h3, f3, b3, g3, m3, v3, y3, x3, O3, j3, k3, w3, C3, _3, M3, S3, A3, T3, E3, I3, N3, z3, D3, L3, R3, P3, B3, F3, V3, W3, q3, H3, U3, X3, G3, K3, Y3, Q3, J3, Z3, $3, e4, t4, n4, r4, i4, o4, a4, l4, s4, c4, u4, d4, p4, h4, f4, b4, g4, m4, v4, y4, x4, O4, j4, k4, w4, C4, _4, M4, S4, A4, T4, E4, I4, N4, z4, D4, L4, R4, P4, B4, F4, V4, W4, q4, H4, U4, X4, G4, K4, Y4, Q4, J4, Z4, $4, e5, t5, n5, r5, i5, o5, a5, l5, s5, c5, u5, d5, p5, h5, f5, b5, g5, m5, v5, y5, x5, O5, j5, k5, w5, C5, _5, M5, S5, A5, T5, E5, I5, N5, z5, D5, L5, R5, P5, B5, F5, V5, W5, q5, H5, U5, X5, G5, K5, Y5, Q5, J5, Z5, $5, e6, t6, n6, r6, i6, o6 = function(e) {
var t, n = e.item, r = e.language, i = e.translate, o = e.darkModeKey, a = Cu()(n, ["value"], {}), l = Cu()(n, ["active"], !1), s = Cu()(a, ["type"], ""), c = Cu()(a, ["text"], {}), u = Cu()(a, ["position"], {}), d = i ? Cu()(c, [r], "") : Cu()(c, ["text"], ""), p = Object(Ip.jsx)(pU, {
dataStyle: null !== (t = null == c ? void 0 : c.style) && void 0 !== t ? t : {},
darkModeKey: o,
children: null != d ? d : ""
});
if ("icon" === s) {
var h, f, b = null !== (h = null == a ? void 0 : a.iconSize) && void 0 !== h ? h : 14, g = rH(Cu()(a, ["iconColor", o], ec.black));
return Object(Ip.jsx)(hU, {
position: u,
active: l,
children: Object(Ip.jsx)(YX, {
icon: null !== (f = null == a ? void 0 : a.icon) && void 0 !== f ? f : {
type: "feather",
name: "settings"
},
width: b,
height: b,
style: {
color: g,
fontSize: b
}
})
})
}
if ("image" === s) {
var m = Cu()(a, ["imageSize"], {
width: 32,
height: 32
})
, v = Cu()(a, ["image", "src"], "");
return Object(Ip.jsx)(hU, {
position: u,
active: l,
children: Object(Ip.jsx)("img", {
width: m.width,
height: m.height,
src: v,
alt: d
})
})
}
if ("button" === s) {
var y = Cu()(a, ["buttonSize"], {})
, x = Cu()(a, ["buttonBg"], {})
, O = Cu()(a, ["buttonBorderColor"], {})
, j = Cu()(a, ["buttonBorderRadius"], 0)
, k = Cu()(a, ["buttonBorderWidth"], 0);
return Object(Ip.jsx)(hU, {
position: u,
active: l,
children: Object(Ip.jsx)(fU, {
darkModeKey: o,
backgroundColor: x,
size: y,
borderRadius: j,
borderWidth: k,
borderColor: O,
children: p
})
})
}
return Object(Ip.jsx)(hU, {
position: u,
active: l,
children: p
})
}, a6 = E2, l6 = {
basic: I1,
center_mode: K1,
stack: l2,
tinder: x2,
rotate: A2
}, s6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r) {
var i = e.props
, o = i.translate
, a = i.language
, l = i.darkModeKey;
return Object(Ip.jsx)(a6, {
item: t,
widthSize: r,
translate: o,
language: a,
darkModeKey: l
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.layout
, i = t.styles
, o = e.width
, a = e.darkModeKey
, l = Cu()(l6, [r], l6.basic)
, s = Cu()(n, ["size", "width"], 375)
, c = Cu()(n, ["size", "height"], 330)
, u = Cu()(n, ["items"], [])
, d = rH(Cu()(i, ["background", a], ec.transparent))
, p = rH(Cu()(i, ["indicatorColor", a], ec.borderLightMode))
, h = rH(Cu()(i, ["indicatorActiveColor", a], ec.tertiaryText))
, f = parseFloat(s) > 0 ? parseFloat(s) : 375
, b = parseFloat(c) > 0 ? parseFloat(c) : 330
, g = FX(o, null == i ? void 0 : i.padding, null == i ? void 0 : i.margin)
, m = u.find((function(e) {
return e.active
}
)) || u[0];
return Object(Ip.jsx)(Jq, {
margin: null == i ? void 0 : i.margin,
padding: null == i ? void 0 : i.padding,
style: {
backgroundColor: d
},
children: Object(Ip.jsx)(l, {
widthView: g,
width: f,
height: b,
items: u,
item: m,
renderItem: this._renderItem,
isPagination: null == n ? void 0 : n.enableIndicator,
colorPagination: p,
colorPaginationActive: h
})
})
}
}]),
n
}(l.Component), c6 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(s6), u6 = Mu.b.div(I2 || (I2 = _u(["\n width: 310px;\n background-color: ", ";\n padding: 16px 0px;\n border-radius: ", "px;\n display: flex;\n align-items: center;\n"])), (function(e) {
return null == e ? void 0 : e.color
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.radius) && void 0 !== t ? t : 8
}
)), d6 = Mu.b.div(N2 || (N2 = _u(["\n margin: 0px 16px;\n"]))), p6 = Mu.b.div(z2 || (z2 = _u(["\n margin-right: 16px;\n text-align: start;\n white-space: normal;\n"]))), h6 = Object(Mu.b)(pU)(D2 || (D2 = _u(["\n display: inline-block;\n margin-bottom: 8px;\n"]))), f6 = Object(Mu.b)(pU)(L2 || (L2 = _u(["\n display: inline-block;\n"]))), b6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.backgroundColor
, r = e.translate
, i = e.radius
, o = e.language
, a = e.darkModeKey;
if (!t)
return null;
var l = r ? Cu()(t, ["image", o], "") : Cu()(t, ["image", "src"], "")
, s = r ? Cu()(t, ["title", o], "") : Cu()(t, ["title", "text"])
, c = r ? Cu()(t, ["description", o], "") : Cu()(t, ["description", "text"])
, u = {
fontSize: 14,
fontWeight: "500",
color: {
value: ec.black,
dark: ec.white
}
}
, d = {
fontSize: 12,
fontWeight: "400",
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
, p = nH()(u, Cu()(t, ["title", "style"], {}))
, h = nH()(d, Cu()(t, ["description", "style"], {}));
return Object(Ip.jsxs)(u6, {
color: n,
radius: i,
children: [Object(Ip.jsx)(d6, {
children: Object(Ip.jsx)("img", {
src: l || Zp.NoImage,
width: 72,
height: 72,
alt: "Test"
})
}), Object(Ip.jsxs)(p6, {
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(h6, {
dataStyle: p,
darkModeKey: a,
children: s
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(f6, {
dataStyle: h,
darkModeKey: a,
children: c
})
})]
})]
})
}
}]),
n
}(l.Component), g6 = b6, m6 = Mu.b.div(R2 || (R2 = _u(["\n width: 310px;\n background-color: ", ";\n padding: 24px 0px;\n border-radius: ", "px;\n white-space: normal;\n text-align: start;\n"])), (function(e) {
return null == e ? void 0 : e.color
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.radius) && void 0 !== t ? t : 8
}
)), v6 = Mu.b.div(P2 || (P2 = _u(["\n margin: 0px 24px;\n"]))), y6 = Object(Mu.b)(pU)(B2 || (B2 = _u(["\n display: inline-block;\n margin-bottom: 24px;\n"]))), x6 = Mu.b.div(F2 || (F2 = _u(["\n display: flex;\n"]))), O6 = Mu.b.div(V2 || (V2 = _u(["\n flex: 1;\n margin-left: 16px;\n"]))), j6 = Object(Mu.b)(pU)(W2 || (W2 = _u(["\n display: inline-block;\n"]))), k6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.backgroundColor
, r = e.radius
, i = e.translate
, o = e.language
, a = e.darkModeKey;
if (!t)
return null;
var l = i ? Cu()(t, ["image", o], "") : Cu()(t, ["image", "src"], "")
, s = i ? Cu()(t, ["title", o], "") : Cu()(t, ["title", "text"])
, c = i ? Cu()(t, ["subtitle", o], "") : Cu()(t, ["subtitle", "text"])
, u = i ? Cu()(t, ["description", o], "") : Cu()(t, ["description", "text"])
, d = {
fontSize: 16,
fontWeight: "500",
color: {
value: ec.black,
dark: ec.white
}
}
, p = {
fontSize: 12,
fontWeight: "400",
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
, h = {
fontSize: 14,
color: {
value: ec.black,
dark: ec.white
}
}
, f = nH()(d, Cu()(t, ["title", "style"], {}))
, b = nH()(p, Cu()(t, ["subtitle", "style"], {}))
, g = nH()(h, Cu()(t, ["description", "style"], {}))
, m = Cu()(t, ["enableRating"], !0)
, v = Number(Cu()(t, ["rating"], 0));
return Object(Ip.jsx)(m6, {
color: n,
radius: r,
children: Object(Ip.jsxs)(v6, {
children: [Object(Ip.jsx)(y6, {
dataStyle: g,
darkModeKey: a,
children: u
}), m && Object(Ip.jsx)("div", {
style: {
marginBottom: 24
},
children: Object(Ip.jsx)(VZ, {
initValue: v
})
}), Object(Ip.jsxs)(x6, {
children: [Object(Ip.jsx)(Lg, {
src: l || Zp.NoImage,
width: 60,
height: 60,
style: {
borderRadius: 30
}
}), Object(Ip.jsxs)(O6, {
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(j6, {
dataStyle: f,
darkModeKey: a,
children: s
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(j6, {
dataStyle: b,
darkModeKey: a,
children: c
})
})]
})]
})]
})
})
}
}]),
n
}(l.Component), w6 = k6, C6 = {
default: g6,
style2: w6
}, _6 = Mu.b.div(q2 || (q2 = _u(["\n display: flex;\n overflow-x: auto;\n white-space: nowrap;\n"]))), M6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = rH(Cu()(r, ["background", a], ec.transparent))
, s = rH(Cu()(n, ["backgroundItem", a], ec.white))
, c = Number(Cu()(n, ["radius"], 0))
, u = Number(Cu()(n, ["pad"], 0))
, d = Cu()(n, ["items"], [0]);
return Object(Ip.jsx)(Jq, {
margin: null == r ? void 0 : r.margin,
padding: null == r ? void 0 : r.padding,
style: {
backgroundColor: l
},
children: Object(Ip.jsx)(_6, {
children: d.map((function(e, t) {
var n, r, l = null !== (n = null == e ? void 0 : e.template) && void 0 !== n ? n : "default", p = Cu()(e, ["data"], {}), h = null !== (r = null == C6 ? void 0 : C6[l]) && void 0 !== r ? r : C6.default;
return Object(Ip.jsx)("div", {
style: {
marginRight: t < d.length - 1 ? u : 0
},
children: Object(Ip.jsx)(h, {
item: p,
backgroundColor: s,
radius: c,
translate: i,
language: o,
darkModeKey: a
})
}, t)
}
))
})
})
}
}]),
n
}(l.Component), S6 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(M6), A6 = function(e) {
if (e.includes("{first_name}") || e.includes("{last_name}") || e.includes("{email}")) {
var t = e;
return e.includes("{first_name}") && (t = t.replaceAll("{first_name}", "_")),
e.includes("{last_name}") && (t = t.replaceAll("{last_name}", "_")),
e.includes("{email}") && (t = t.replaceAll("{email}", "_")),
t
}
return e
}, T6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = rH(Cu()(r, ["background", a], ec.grayColor))
, s = {
color: {
value: ec.primaryText,
dark: ec.primaryTextDarkMode
},
fontSize: 14
}
, c = i ? Cu()(n, ["title", o], "") : Cu()(n, ["title", "text"], "")
, u = Cu()(n, ["title", "style"], {});
return Object(Ip.jsx)(Jq, {
padding: null == r ? void 0 : r.padding,
margin: null == r ? void 0 : r.margin,
style: {
backgroundColor: l,
textAlign: n.alignment || "center"
},
children: Object(Ip.jsx)(pU, {
dataStyle: nH()(s, u),
darkModeKey: a,
children: A6(c)
})
})
}
}]),
n
}(l.Component), E6 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(T6), I6 = Mu.b.div(H2 || (H2 = _u(["\n width: 34px;\n height: 34px;\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.borderColor
}
), (function(e) {
return e.radius
}
)), N6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.icon
, n = e.backgroundIcon
, r = e.colorIcon
, i = e.enableRound ? 17 : 4
, o = e.enableOutLine ? "#DEE2E6" : n;
return Object(Ip.jsx)(I6, {
radius: i,
borderColor: o,
background: n,
children: Object(Ip.jsx)(YX, {
icon: t,
width: 14,
height: 14,
style: {
color: r,
fontSize: 14
}
})
})
}
}]),
n
}(l.Component), z6 = N6, D6 = Mu.b.div(U2 || (U2 = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), L6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.darkModeKey
, o = rH(Cu()(r, ["background", i], ec.transparent))
, a = Cu()(n, ["alignment"], "center")
, l = Number(Cu()(n, ["pad"], "0"))
, s = Cu()(n, ["socials"], [])
, c = "left" === a ? "flex-start" : "right" === a ? "flex-end" : "center"
, u = l / 2;
return Object(Ip.jsx)(Jq, {
padding: null == r ? void 0 : r.padding,
margin: null == r ? void 0 : r.margin,
style: {
backgroundColor: o,
overflow: "hidden"
},
children: Object(Ip.jsx)(D6, {
style: {
justifyContent: c,
margin: -u
},
children: s.map((function(e, t) {
var n = Cu()(e, ["data", "icon"], {
name: "fab-facebook",
type: "awesome"
})
, r = rH(Cu()(e, ["data", "backgroundColor", i], ec.transparent))
, o = rH(Cu()(e, ["data", "iconColor", i], ec.primaryColor))
, a = Cu()(e, ["data", "enableRound"], !0)
, l = Cu()(e, ["data", "enableOutLine"], !0);
return Object(Ip.jsx)("div", {
style: {
padding: u
},
children: Object(Ip.jsx)(z6, {
icon: n,
backgroundIcon: r,
colorIcon: o,
enableRound: a,
enableOutLine: l
})
}, t)
}
))
})
})
}
}]),
n
}(l.Component), R6 = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(L6), P6 = Mu.b.ul(X2 || (X2 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n li {\n border-top: 4px solid transparent;\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n margin:0;\n &.active {\n border-top-color: ", ";\n a {\n color: ", ";\n }\n }\n a {\n text-decoration: none;\n position: relative;\n display: block;\n color: ", ";\n span {\n display: block;\n text-align: center;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_top" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), B6 = Mu.b.span(G2 || (G2 = _u(["\n font-size: 22px;\n"]))), F6 = Mu.b.span(K2 || (K2 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), V6 = Mu.b.span(Y2 || (Y2 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:8px;\n margin:0 !important;\n"]))), W6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor));
return Object(Ip.jsx)(P6, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(B6, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(V6, {
children: "0"
}) : null]
}), Object(Ip.jsx)(F6, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), q6 = W6, H6 = Mu.b.ul(Q2 || (Q2 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n li {\n border-bottom: 4px solid transparent;\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n margin:0;\n &.active{\n border-bottom-color: ", ";\n a {\n color: ", ";\n }\n }\n a {\n text-decoration: none;\n position: relative;\n display: block;\n color: ", ";\n span {\n display: block;\n text-align: center;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_bottom" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), U6 = Mu.b.span(J2 || (J2 = _u(["\n font-size: 22px;\n"]))), X6 = Mu.b.span(Z2 || (Z2 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), G6 = Mu.b.span($2 || ($2 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:8px;\n margin:0 !important;\n"]))), K6 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor));
return Object(Ip.jsx)(H6, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(U6, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(G6, {
children: "0"
}) : null]
}), Object(Ip.jsx)(X6, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), Y6 = K6, Q6 = Mu.b.ul(e3 || (e3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n margin:0;\n &.active {\n flex:2;\n a {\n background: ", ";\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);\n span{\n line-height: 1;\n >span{\n right:-8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), J6 = Mu.b.span(t3 || (t3 = _u(["\n font-size: 22px;\n"]))), Z6 = Mu.b.span(n3 || (n3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), $6 = Mu.b.div(r3 || (r3 = _u(["\n position: relative;\n"]))), e8 = Mu.b.span(i3 || (i3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:8px;\n margin:0 !important;\n"]))), t8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)($6, {
children: Object(Ip.jsx)(Q6, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(J6, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(e8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(Z6, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
})
}
}]),
n
}(l.Component), n8 = t8, r8 = Mu.b.ul(o3 || (o3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n position: relative;\n margin: 0;\n &.active {\n border-top-color: ", ";\n\n a {\n color: ", ";\n }\n }\n\n a {\n display: block;\n text-decoration: none;\n color: ", ";\n\n span {\n display: block;\n text-align: center;\n position: relative;\n\n &:nth-child(2) {\n margin-top: ", "px;\n }\n }\n\n svg {\n width: 22px;\n height: 22px;\n }\n }\n\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_top" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), i8 = Mu.b.span(a3 || (a3 = _u(["\n font-size: 22px;\n"]))), o8 = Mu.b.span(l3 || (l3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), a8 = Mu.b.span(s3 || (s3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color: white;\n font-size: 10px;\n line-height: 16px !important;\n text-align: center;\n position: absolute !important;\n top: 0;\n right: 8px;\n margin: 0 !important;\n"]))), l8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor));
return Object(Ip.jsx)(r8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(i8, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(a8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(o8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), s8 = l8, c8 = Mu.b.ul(c3 || (c3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n margin:0;\n &.active {\n border-top-color: ", ";\n a {\n color: ", ';\n position: relative;\n &:before{\n content:"";\n width: 5px;\n height: 5px;\n border-radius: 50%;\n background-color: ', ";\n bottom:-8px;\n left: 50%;\n margin-left: -2.5px;\n position: absolute;\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n display: inline-block;\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_top" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), u8 = Mu.b.span(u3 || (u3 = _u(["\n font-size: 22px;\n"]))), d8 = Mu.b.span(d3 || (d3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), p8 = Mu.b.span(p3 || (p3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:-4px;\n margin:0 !important;\n"]))), h8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor));
return Object(Ip.jsx)(c8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(u8, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(p8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(d8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), f8 = h8, b8 = Mu.b.ul(h3 || (h3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n margin:0 32px 32px;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right:10px;\n overflow: hidden;\n margin:0;\n &.active {\n border-top-color: ", ";\n a {\n color: ", ";\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.radius
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_top" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), g8 = Mu.b.span(f3 || (f3 = _u(["\n font-size: 22px;\n"]))), m8 = Mu.b.span(b3 || (b3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), v8 = Mu.b.span(g3 || (g3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), y8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor));
return Object(Ip.jsx)(b8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(g8, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(v8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(m8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), x8 = y8, O8 = Mu.b.ul(m3 || (m3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n &.radiusleft{\n border-top-left-radius:0;\n }\n &.radiusright{\n border-top-right-radius:0;\n }\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n position: relative;\n margin:0;\n &.active {\n flex: 2;\n a {\n background: ", ";\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-", "px);\n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.padTop + 6
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), j8 = Mu.b.span(v3 || (v3 = _u(["\n font-size: 22px;\n"]))), k8 = Mu.b.span(y3 || (y3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), w8 = Mu.b.div(x3 || (x3 = _u(["\n position: absolute;\n top: 0px;\n left: 0;\n left: 50%;\n transform: translateX(-50%) translateY(-16px);\n z-index: 0;\n svg{\n width: 100px !important;\n height: auto !important\n }\n"]))), C8 = Mu.b.span(O3 || (O3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), _8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor))
, h = n.items.length - 1;
return Object(Ip.jsx)(O8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
className: 0 === s ? "radiusleft" : s === h ? "radiusright" : "",
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsxs)("li", {
className: s === t ? "active" : "",
children: [s === t ? Object(Ip.jsx)(w8, {
children: Object(Ip.jsxs)("svg", {
width: "120",
height: "78",
viewBox: "0 0 120 78",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [Object(Ip.jsx)("circle", {
cx: "60",
cy: "39",
r: "38.5",
fill: u,
stroke: u
}), Object(Ip.jsx)("path", {
d: "M40 5.5C31.5909 14.3235 15.9773 21.1176 0 22H37L40 5.5Z",
fill: u
}), Object(Ip.jsx)("path", {
d: "M80 5.5C88.4091 14.3235 104.023 21.1176 120 22H83L80 5.5Z",
fill: u
})]
})
}) : null, Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(j8, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(C8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(k8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})]
}, t)
}
))
})
}
}]),
n
}(l.Component), M8 = _8, S8 = Mu.b.ul(j3 || (j3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n &.radiusleft{\n border-top-left-radius:0;\n }\n &.radiusright{\n border-top-right-radius:0;\n }\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n position: relative;\n margin:0;\n &.active {\n flex: 2;\n a {\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-", "px);\n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.padTop + 6
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), A8 = Mu.b.span(k3 || (k3 = _u(["\n font-size: 22px;\n .hexagon{\n width: 49px;\n height: 49px;\n position: absolute;\n top:-12px;\n left:-13px;\n z-index: -1;\n }\n"]))), T8 = Mu.b.span(w3 || (w3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), E8 = Mu.b.div(C3 || (C3 = _u(["\n position: absolute;\n top: 0px;\n left: 0;\n left: 50%;\n transform: translateX(-50%) translateY(-16px);\n z-index: 0;\n svg{\n width: 70px !important;\n height: auto !important\n }\n"]))), I8 = Mu.b.span(_3 || (_3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), N8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor))
, h = n.items.length - 1;
return Object(Ip.jsx)(S8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
className: 0 === s ? "radiusleft" : s === h ? "radiusright" : "",
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsxs)("li", {
className: s === t ? "active" : "",
children: [s === t ? Object(Ip.jsx)(E8, {
children: Object(Ip.jsx)("svg", {
width: "106",
height: "95",
viewBox: "0 0 106 95",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M8.7283 22.5883L45.7283 3.71017C49.2941 1.89081 51.077 0.981134 53 0.981134C54.923 0.981134 56.7059 1.89081 60.2717 3.71017L97.2717 22.5883C101.52 24.756 103.645 25.8399 104.822 27.7629C106 29.686 106 32.0708 106 36.8404V83.2007C106 88.1635 106 90.6449 104.743 92.6139C103.486 94.583 101.234 95.6271 96.7324 97.7153L59.7324 114.877C56.4208 116.413 54.765 117.181 53 117.181C51.235 117.181 49.5792 116.413 46.2676 114.877L46.2676 114.877L9.26758 97.7153C4.76551 95.6271 2.51448 94.583 1.25724 92.6139C0 90.6449 0 88.1635 0 83.2007V36.8404C0 32.0708 0 29.686 1.17773 27.7629C2.35545 25.8399 4.47973 24.756 8.7283 22.5883Z",
fill: u
})
})
}) : null, Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(A8, {
children: [s === t ? Object(Ip.jsx)("svg", {
className: "hexagon",
width: "46",
height: "49",
viewBox: "0 0 46 49",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M9.72607 6.77523L15.7261 3.71273C19.2929 1.89214 21.0764 0.981849 23 0.981849C24.9236 0.981849 26.7071 1.89214 30.2739 3.71274L36.2739 6.77523C40.5214 8.94324 42.6452 10.0272 43.8226 11.9501C45 13.873 45 16.2574 45 21.0262V28.5773C45 33.5394 45 36.0204 43.7431 37.9893C42.4862 39.9581 40.2356 41.0024 35.7346 43.091L29.7346 45.8751C26.422 47.4122 24.7656 48.1807 23 48.1807C21.2344 48.1807 19.5781 47.4122 16.2655 45.8751L10.2654 43.091C5.76438 41.0024 3.51384 39.9581 2.25692 37.9893C1 36.0204 1 33.5394 1 28.5773V21.0262C1 16.2574 1 13.873 2.1774 11.9501C3.3548 10.0272 5.47856 8.94324 9.72607 6.77523Z",
fill: d,
stroke: d
})
}) : null, Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(I8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(T8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})]
}, t)
}
))
})
}
}]),
n
}(l.Component), z8 = N8, D8 = Mu.b.ul(M3 || (M3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n &.radiusleft{\n border-top-left-radius:0;\n }\n &.radiusright{\n border-top-right-radius:0;\n }\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", 'px;\n position: relative;\n margin:0;\n &.active {\n padding-top: 0;\n flex: 2;\n position: relative;\n &:before{\n content:"";\n box-shadow:inset 0 -3px 3px rgba(0,0,0,0.2);\n position: absolute;\n top:0;\n width: 64px;\n height: 35px;\n border-bottom-left-radius: 32px;\n border-bottom-right-radius: 32px;\n background-color: #fff;\n left: 50%;\n transform: translateX(-50%);\n }\n a {\n background: ', ";\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-19px);\n \n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), L8 = Mu.b.span(S3 || (S3 = _u(["\n font-size: 22px;\n"]))), R8 = Mu.b.span(A3 || (A3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), P8 = Mu.b.span(T3 || (T3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), B8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor))
, h = n.items.length - 1;
return Object(Ip.jsx)(D8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
className: 0 === s ? "radiusleft" : s === h ? "radiusright" : "",
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(L8, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(P8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(R8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), F8 = B8, V8 = Mu.b.ul(E3 || (E3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n margin:0;\n &.active {\n border-top-color: ", ";\n flex : 2;\n a {\n background :", ";\n border-radius:30px;\n color:", ";\n span {\n &:nth-child(2){\n display: block;\n }\n }\n }\n }\n a {\n text-decoration: none;\n display:flex;\n justify-content: center;\n align-items: center;\n padding: 4px;\n color: ", ";\n span {\n display: block;\n text-align: center;\n margin:0 2px;\n position: relative;\n &:nth-child(2){\n display: none;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_top" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
)), W8 = Mu.b.span(I3 || (I3 = _u(["\n font-size: 22px;\n"]))), q8 = Mu.b.span(N3 || (N3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), H8 = Mu.b.span(z3 || (z3 = _u(["\n display: inline-block;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px;\n text-align:center;\n position: absolute !important;\n top:0;\n right:-8px;\n"]))), U8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)(V8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(W8, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(H8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(q8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), X8 = U8, G8 = Mu.b.ul(D3 || (D3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n position: relative;\n margin:0;\n &.active {\n padding-top: 0;\n flex: 2;\n position: relative;\n a {\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-19px);\n \n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), K8 = Mu.b.span(L3 || (L3 = _u(["\n font-size: 22px;\n .hexagon{\n width: 49px;\n height: 49px;\n position: absolute;\n top:-12px;\n left:-13px;\n z-index: -1;\n }\n"]))), Y8 = Mu.b.span(R3 || (R3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), Q8 = Mu.b.span(P3 || (P3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), J8 = Mu.b.div(B3 || (B3 = _u(["\n position: absolute;\n top: -10px;\n left: 0;\n left: 50%;\n transform: translateX(-50%) translateY(-16px);\n z-index: 0;\n svg{\n width: 70px !important;\n height: auto !important;\n }\n"]))), Z8 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)(G8, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsxs)("li", {
className: s === t ? "active" : "",
children: [s === t ? Object(Ip.jsx)(J8, {
children: Object(Ip.jsx)("svg", {
width: "86",
height: "95",
viewBox: "0 0 106 138",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M8.7283 22.5883L45.7283 3.71017C49.2941 1.89081 51.077 0.981134 53 0.981134C54.923 0.981134 56.7059 1.89081 60.2717 3.71017L97.2717 22.5883C101.52 24.756 103.645 25.8399 104.822 27.7629C106 29.686 106 32.0708 106 36.8404V83.2007C106 88.1635 106 90.6449 104.743 92.6139C103.486 94.583 101.234 95.6271 96.7324 97.7153L59.7324 114.877C56.4208 116.413 54.765 117.181 53 117.181C51.235 117.181 49.5792 116.413 46.2676 114.877L46.2676 114.877L9.26758 97.7153C4.76551 95.6271 2.51448 94.583 1.25724 92.6139C0 90.6449 0 88.1635 0 83.2007V36.8404C0 32.0708 0 29.686 1.17773 27.7629C2.35545 25.8399 4.47973 24.756 8.7283 22.5883Z",
fill: "#fff"
})
})
}) : null, Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(K8, {
children: [s === t ? Object(Ip.jsx)("svg", {
className: "hexagon",
width: "46",
height: "49",
viewBox: "0 0 46 49",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M9.72607 6.77523L15.7261 3.71273C19.2929 1.89214 21.0764 0.981849 23 0.981849C24.9236 0.981849 26.7071 1.89214 30.2739 3.71274L36.2739 6.77523C40.5214 8.94324 42.6452 10.0272 43.8226 11.9501C45 13.873 45 16.2574 45 21.0262V28.5773C45 33.5394 45 36.0204 43.7431 37.9893C42.4862 39.9581 40.2356 41.0024 35.7346 43.091L29.7346 45.8751C26.422 47.4122 24.7656 48.1807 23 48.1807C21.2344 48.1807 19.5781 47.4122 16.2655 45.8751L10.2654 43.091C5.76438 41.0024 3.51384 39.9581 2.25692 37.9893C1 36.0204 1 33.5394 1 28.5773V21.0262C1 16.2574 1 13.873 2.1774 11.9501C3.3548 10.0272 5.47856 8.94324 9.72607 6.77523Z",
fill: d,
stroke: d
})
}) : null, Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(Q8, {
children: "0"
}) : null]
}), Object(Ip.jsx)(Y8, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})]
}, t)
}
))
})
}
}]),
n
}(l.Component), $8 = Z8, e7 = Mu.b.ul(F3 || (F3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n position: relative;\n margin:0;\n &.active {\n padding-top: 0;\n flex: 2;\n position: relative;\n a {\n background: ", ";\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-22px);\n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), t7 = Mu.b.span(V3 || (V3 = _u(["\n font-size: 22px;\n"]))), n7 = Mu.b.span(W3 || (W3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), r7 = Mu.b.span(q3 || (q3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), i7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)(e7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(t7, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(r7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(n7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), o7 = i7, a7 = Mu.b.ul(H3 || (H3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", "px;\n position: relative;\n margin:0;\n &.active {\n padding-top: 0;\n flex: 2;\n position: relative;\n a {\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-22px);\n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), l7 = Mu.b.span(U3 || (U3 = _u(["\n font-size: 22px;\n .hexagon{\n width: 49px;\n height: 49px;\n position: absolute;\n top:-12px;\n left:-13px;\n z-index: -1;\n }\n"]))), s7 = Mu.b.span(X3 || (X3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), c7 = Mu.b.span(G3 || (G3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), u7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)(a7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(l7, {
children: [s === t ? Object(Ip.jsx)("svg", {
className: "hexagon",
width: "46",
height: "49",
viewBox: "0 0 46 49",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M9.72607 6.77523L15.7261 3.71273C19.2929 1.89214 21.0764 0.981849 23 0.981849C24.9236 0.981849 26.7071 1.89214 30.2739 3.71274L36.2739 6.77523C40.5214 8.94324 42.6452 10.0272 43.8226 11.9501C45 13.873 45 16.2574 45 21.0262V28.5773C45 33.5394 45 36.0204 43.7431 37.9893C42.4862 39.9581 40.2356 41.0024 35.7346 43.091L29.7346 45.8751C26.422 47.4122 24.7656 48.1807 23 48.1807C21.2344 48.1807 19.5781 47.4122 16.2655 45.8751L10.2654 43.091C5.76438 41.0024 3.51384 39.9581 2.25692 37.9893C1 36.0204 1 33.5394 1 28.5773V21.0262C1 16.2574 1 13.873 2.1774 11.9501C3.3548 10.0272 5.47856 8.94324 9.72607 6.77523Z",
fill: d,
stroke: d
})
}) : null, Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(c7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(s7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), d7 = u7, p7 = Mu.b.ul(K3 || (K3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n margin:0;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n &.active {\n flex:2;\n a {\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n //box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2);\n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n position: relative;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), h7 = Mu.b.span(Y3 || (Y3 = _u(["\n font-size: 22px;\n .hexagon{\n width: 49px;\n height: 49px;\n position: absolute;\n top:-12px;\n left:-13px;\n z-index: 0;\n }\n"]))), f7 = Mu.b.span(Q3 || (Q3 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), b7 = Mu.b.div(J3 || (J3 = _u(["\n position: relative;\n"]))), g7 = Mu.b.span(Z3 || (Z3 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:8px;\n margin:0 !important;\n"]))), m7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)(b7, {
children: Object(Ip.jsx)(p7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(h7, {
children: [s === t ? Object(Ip.jsx)("svg", {
className: "hexagon",
width: "46",
height: "49",
viewBox: "0 0 46 49",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M9.72607 6.77523L15.7261 3.71273C19.2929 1.89214 21.0764 0.981849 23 0.981849C24.9236 0.981849 26.7071 1.89214 30.2739 3.71274L36.2739 6.77523C40.5214 8.94324 42.6452 10.0272 43.8226 11.9501C45 13.873 45 16.2574 45 21.0262V28.5773C45 33.5394 45 36.0204 43.7431 37.9893C42.4862 39.9581 40.2356 41.0024 35.7346 43.091L29.7346 45.8751C26.422 47.4122 24.7656 48.1807 23 48.1807C21.2344 48.1807 19.5781 47.4122 16.2655 45.8751L10.2654 43.091C5.76438 41.0024 3.51384 39.9581 2.25692 37.9893C1 36.0204 1 33.5394 1 28.5773V21.0262C1 16.2574 1 13.873 2.1774 11.9501C3.3548 10.0272 5.47856 8.94324 9.72607 6.77523Z",
fill: d,
stroke: d
})
}) : null, Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(g7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(f7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
})
}
}]),
n
}(l.Component), v7 = m7, y7 = Mu.b.ul($3 || ($3 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n margin:0;\n &.active {\n border-top-color: ", ";\n a {\n color: ", ';\n position: relative;\n &:before{\n content:"";\n width: 22px;\n height: 4px;\n border-radius: 0;\n background-color: ', ";\n bottom:-8px;\n left: 50%;\n margin-left: -11px;\n position: absolute;\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n display: inline-block;\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return "border_top" === (null == e ? void 0 : e.layout) ? e.activeColor : "transparent"
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), x7 = Mu.b.span(e4 || (e4 = _u(["\n font-size: 22px;\n"]))), O7 = Mu.b.span(t4 || (t4 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), j7 = Mu.b.span(n4 || (n4 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:-4px;\n margin:0 !important;\n"]))), k7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor));
return Object(Ip.jsx)(y7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(x7, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(j7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(O7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), w7 = k7, C7 = Mu.b.ul(r4 || (r4 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n overflow: hidden;\n li {\n flex: 1;\n list-style: none;\n padding-top: ", "px;\n padding-bottom: ", "px;\n padding-left: 10px;\n padding-right: 10px;\n overflow: hidden;\n position: relative;\n margin:0;\n &.active{\n background-color: ", ";\n a {\n color: ", ";\n }\n }\n a {\n display: block;\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), _7 = Mu.b.span(i4 || (i4 = _u(["\n font-size: 22px;\n"]))), M7 = Mu.b.span(o4 || (o4 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), S7 = Mu.b.span(a4 || (a4 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:8px;\n margin:0 !important;\n"]))), A7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor));
return Object(Ip.jsx)(C7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return console.log(o.enableCount),
Object(Ip.jsx)("li", {
className: s === t ? "active" : "",
children: Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(_7, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(S7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(M7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})
}, t)
}
))
})
}
}]),
n
}(l.Component), T7 = A7, E7 = Mu.b.ul(l4 || (l4 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n &.radiusleft{\n border-top-left-radius:0;\n }\n &.radiusright{\n border-top-right-radius:0;\n }\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", 'px;\n position: relative;\n margin:0;\n &.active {\n padding-top: 0;\n flex: 3;\n position: relative;\n &:before{\n content:"";\n box-shadow:inset 0 -3px 3px rgba(0,0,0,0.2);\n position: absolute;\n top:0;\n width: 64px;\n height: 35px;\n border-bottom-left-radius: 32px;\n border-bottom-right-radius: 32px;\n background-color: #fff;\n left: 50%;\n transform: translateX(-50%);\n display: none;\n }\n\n a {\n background: ', ";\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-22px);\n \n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), I7 = Mu.b.span(s4 || (s4 = _u(["\n font-size: 22px;\n"]))), N7 = Mu.b.span(c4 || (c4 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), z7 = Mu.b.span(u4 || (u4 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), D7 = Mu.b.div(d4 || (d4 = _u(["\n position: absolute;\n top: -10px;\n left: 0;\n left: 50%;\n transform: translateX(-50%) translateY(-16px);\n z-index: 0;\n width: 100%;\n height: 100%;\n svg{\n width: 200px !important;\n height: auto !important;\n position: absolute;\n left:50%;\n transform: translateX(-50%);\n top:24px;\n }\n"]))), L7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor))
, h = n.items.length - 1;
return Object(Ip.jsx)(E7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
className: 0 === s ? "radiusleft" : s === h ? "radiusright" : "",
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsxs)("li", {
className: s === t ? "active" : "",
children: [s === t ? Object(Ip.jsx)(D7, {
children: Object(Ip.jsx)("svg", {
width: "201",
height: "38",
viewBox: "0 0 201 38",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: Object(Ip.jsx)("path", {
d: "M201 1H0.5C74 1 69.9 37.5 101.5 37.5C130 37.5 126.5 1 201 1Z",
fill: "white",
stroke: "#F4F6FC"
})
})
}) : null, Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(I7, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(z7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(N7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})]
}, t)
}
))
})
}
}]),
n
}(l.Component), R7 = L7, P7 = Mu.b.ul(p4 || (p4 = _u(["\n padding: 0;\n margin: 0;\n background-color: ", ";\n display: flex;\n align-items: flex-start;\n justify-content: center;\n border-top-left-radius: ", "px;\n border-top-right-radius: ", "px;\n font-weight: 500;\n word-break: break-word;\n &.radiusleft{\n border-top-left-radius:0;\n }\n &.radiusright{\n border-top-right-radius:0;\n }\n li {\n flex: 1;\n list-style: none;\n padding-left: 10px;\n padding-right: 10px;\n padding-top: ", "px;\n padding-bottom: ", 'px;\n position: relative;\n margin:0;\n &.active {\n padding-top: 0;\n flex: 3;\n position: relative;\n &:before{\n content:"";\n box-shadow:inset 0 -3px 3px rgba(0,0,0,0.2);\n position: absolute;\n top:0;\n width: 64px;\n height: 35px;\n border-bottom-left-radius: 32px;\n border-bottom-right-radius: 32px;\n background-color: #fff;\n left: 50%;\n transform: translateX(-50%);\n display: none;\n }\n\n a {\n background: ', ";\n color:", ";\n display: inline-block;\n height: 48px;\n width: 48px;\n border-radius:50%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin:0 auto;\n transform: translateY(-22px);\n \n span{\n line-height: 1;\n margin-top: 0 !important;\n >span{\n right: -8px;\n }\n &:nth-child(2){\n display: none;\n }\n }\n }\n }\n a {\n text-decoration: none;\n color: ", ";\n span {\n display: block;\n text-align: center;\n position: relative;\n &:nth-child(2){\n margin-top: ", "px;\n }\n }\n svg {\n width: 22px;\n height: 22px;\n }\n }\n \n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return "border_top" !== (null == e ? void 0 : e.layout) ? e.radius : 0
}
), (function(e) {
return e.padTop
}
), (function(e) {
return e.padBottom
}
), (function(e) {
return e.activeColor
}
), (function(e) {
return e.onactiveColor
}
), (function(e) {
return e.textColor
}
), (function(e) {
return e.pad
}
)), B7 = Mu.b.span(h4 || (h4 = _u(["\n font-size: 22px;\n"]))), F7 = Mu.b.span(f4 || (f4 = _u(["\n white-space: nowrap;\n font-size: 12px;\n text-overflow: ellipsis;\n"]))), V7 = Mu.b.span(b4 || (b4 = _u(["\n display: inline-block !important;\n width: 16px !important;\n height: 16px !important;\n border-radius: 50%;\n background-color: #F01F0E;\n color:white;\n font-size: 10px;\n line-height: 16px !important;\n text-align:center;\n position: absolute !important;\n top:0;\n right:4px;\n margin:0 !important;\n"]))), W7 = Mu.b.div(g4 || (g4 = _u(["\n position: absolute;\n top: -10px;\n left: 0;\n left: 50%;\n transform: translateX(-50%) translateY(-16px);\n z-index: 0;\n width: 100%;\n height: 100%;\n svg{\n width: 130px !important;\n height: auto !important;\n position: absolute;\n left:50%;\n transform: translateX(-50%);\n top:24px;\n }\n"]))), q7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = e.translate
, l = e.language
, s = e.indexActive
, c = rH(Cu()(r, ["color", o], ec.secondaryText))
, u = rH(Cu()(r, ["background", o], ec.white))
, d = rH(Cu()(r, ["colorActive", o], ec.primaryColor))
, p = rH(Cu()(r, ["colorOnActive", o], ec.primaryColor))
, h = n.items.length - 1;
return Object(Ip.jsx)(P7, {
background: u,
pad: Number((null == r ? void 0 : r.pad) || "") || 0,
padTop: Number((null == r ? void 0 : r.padTop) || "") || 20,
padBottom: Number((null == r ? void 0 : r.padBottom) || "") || 20,
radius: "two" !== i ? Number((null == r ? void 0 : r.radius) || "") : 0,
textColor: c,
activeColor: d,
onactiveColor: p,
style: null != r && r.enableShadow ? {
boxShadow: "0px -4px 20px rgba(0, 0, 0, 0.06)"
} : {},
layout: i,
className: 0 === s ? "radiusleft" : s === h ? "radiusright" : "",
children: null == n ? void 0 : n.items.map((function(e, t) {
var n, r, i;
if ("object" != typeof e)
return null;
var o = e.data;
return Object(Ip.jsxs)("li", {
className: s === t ? "active" : "",
children: [s === t ? Object(Ip.jsx)(W7, {
children: Object(Ip.jsxs)("svg", {
width: "131",
height: "39",
viewBox: "0 0 131 39",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [Object(Ip.jsx)("path", {
d: "M0 1.00001H128.515C129.001 0.993433 129.496 0.993374 130 1.00001H128.515C92.4007 1.48901 106.915 38 65.4863 38C23.5 38 42.5 1.00001 0 1.00001Z",
fill: "white"
}), Object(Ip.jsx)("path", {
d: "M0 1.00001H130C92 0.5 107.473 38 65.4863 38C23.5 38 42.5 1.00001 0 1.00001Z",
stroke: "#F4F6FC"
})]
})
}) : null, Object(Ip.jsxs)("a", {
href: "#".concat(t + 1),
children: [Object(Ip.jsxs)(B7, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (n = null == o ? void 0 : o.icon) && void 0 !== n ? n : {
type: "feather",
name: "home"
},
width: 24,
height: 24,
style: {
fontSize: 24
}
}), o.enableCount ? Object(Ip.jsx)(V7, {
children: "0"
}) : null]
}), Object(Ip.jsx)(F7, {
children: a ? null == o || null === (r = o.title) || void 0 === r ? void 0 : r[l] : null == o || null === (i = o.title) || void 0 === i ? void 0 : i.text
})]
})]
}, t)
}
))
})
}
}]),
n
}(l.Component), H7 = q7, U7 = Mu.b.div(m4 || (m4 = _u(["\n height: 668px;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n overflow: hidden;\n"]))), X7 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._buildLayout = function(e, t) {
switch (e.widget.layout) {
case "border_top":
return Object(Ip.jsx)(q6, _t(_t({}, e), {}, {
indexActive: t
}));
case "border_bottom":
return Object(Ip.jsx)(Y6, _t(_t({}, e), {}, {
indexActive: t
}));
case "salomon":
return Object(Ip.jsx)(X8, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_inside":
return Object(Ip.jsx)(M8, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_inside_hexagon":
return Object(Ip.jsx)(z8, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_outside":
return Object(Ip.jsx)(F8, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_outside_hexagon":
return Object(Ip.jsx)($8, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_outside_deep":
return Object(Ip.jsx)(R7, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_outside_radius":
return Object(Ip.jsx)(H7, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_curve":
return Object(Ip.jsx)(o7, _t(_t({}, e), {}, {
indexActive: t
}));
case "inspired_curve_hexagon":
return Object(Ip.jsx)(d7, _t(_t({}, e), {}, {
indexActive: t
}));
case "creative":
return Object(Ip.jsx)(n8, _t(_t({}, e), {}, {
indexActive: t
}));
case "creative_hexagon":
return Object(Ip.jsx)(v7, _t(_t({}, e), {}, {
indexActive: t
}));
case "fancy":
return Object(Ip.jsx)(f8, _t(_t({}, e), {}, {
indexActive: t
}));
case "fancy_border":
return Object(Ip.jsx)(w7, _t(_t({}, e), {}, {
indexActive: t
}));
case "floating":
return Object(Ip.jsx)(x8, _t(_t({}, e), {}, {
indexActive: t
}));
case "default_bg":
return Object(Ip.jsx)(T7, _t(_t({}, e), {}, {
indexActive: t
}));
default:
return Object(Ip.jsx)(s8, _t(_t({}, e), {}, {
indexActive: t
}))
}
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props.widget.fields;
if ((null == t || null === (e = t.items) || void 0 === e ? void 0 : e.length) < 1)
return null;
var n = t.items.findIndex((function(e) {
return e.active
}
))
, r = -1 === n ? 0 : n;
return Object(Ip.jsx)(U7, {
children: this._buildLayout(this.props, r)
})
}
}]),
n
}(l.Component), G7 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(X7), K7 = n(298), Y7 = n.n(K7), Q7 = Mu.b.ul(v4 || (v4 = _u(["\n padding: 0;\n margin: 0;\n li {\n list-style: none;\n }\n"]))), J7 = n.p + "static/media/home.2851123f.jpg", Z7 = Mu.b.div(y4 || (y4 = _u(["\n //background-color:rgba(0,0,0,0.5);\n"]))), $7 = Mu.b.div(x4 || (x4 = _u(["\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n z-index: 9;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n"]))), e9 = Mu.b.div(O4 || (O4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n width: 75%;\n position: relative;\n z-index: 10;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), t9 = Mu.b.div(j4 || (j4 = _u(["\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n z-index: 8;\n"]))), n9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(Z7, {
children: [Object(Ip.jsx)(e9, {
background: t || "#fff",
image: r,
children: n
}), Object(Ip.jsx)($7, {}), Object(Ip.jsx)(t9, {
children: Object(Ip.jsx)(Lg, {
src: J7
})
})]
})
}
}]),
n
}(l.Component), r9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(n9), i9 = Mu.b.div(k4 || (k4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), o9 = Mu.b.div(w4 || (w4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding-right: 30%;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), a9 = Mu.b.div(C4 || (C4 = _u(["\n position: absolute;\n right: -73%;\n z-index: 8;\n top: 50%;\n transform: translateY(-50%) scale(0.85);\n border-radius: 20px;\n img {\n border-radius: 20px;\n }\n"]))), l9 = Mu.b.div(_4 || (_4 = _u(["\n background: #ffffff;\n opacity: 0.9;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 16px;\n left: -16px;\n z-index: -1;\n bottom: 16px;\n"]))), s9 = Mu.b.div(M4 || (M4 = _u(["\n background: #ffffff;\n opacity: 0.3;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 32px;\n left: -32px;\n z-index: -1;\n bottom: 32px;\n"]))), c9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(i9, {
children: [Object(Ip.jsx)(o9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsxs)(a9, {
children: [Object(Ip.jsx)(Lg, {
src: J7
}), Object(Ip.jsx)(l9, {}), Object(Ip.jsx)(s9, {})]
})]
})
}
}]),
n
}(l.Component), u9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(c9), d9 = Mu.b.div(S4 || (S4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), p9 = Mu.b.div(A4 || (A4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding-right: 28%;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), h9 = Mu.b.div(T4 || (T4 = _u(["\n position: absolute;\n right: -80%;\n z-index: 8;\n top: 50%;\n transform: translateY(-50%) rotate(-10deg) scale(0.85);\n border-radius: 20px;\n img {\n border-radius: 20px;\n }\n"]))), f9 = Mu.b.div(E4 || (E4 = _u(["\n background: #ffffff;\n opacity: 0.9;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 16px;\n left: -16px;\n z-index: -1;\n bottom: 16px;\n"]))), b9 = Mu.b.div(I4 || (I4 = _u(["\n background: #ffffff;\n opacity: 0.3;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 32px;\n left: -32px;\n z-index: -1;\n bottom: 32px;\n"]))), g9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(d9, {
children: [Object(Ip.jsx)(p9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsxs)(h9, {
children: [Object(Ip.jsx)(Lg, {
src: J7
}), Object(Ip.jsx)(f9, {}), Object(Ip.jsx)(b9, {})]
})]
})
}
}]),
n
}(l.Component), m9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(g9), v9 = Mu.b.div(N4 || (N4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), y9 = Mu.b.div(z4 || (z4 = _u(["\n background-color: ", ";\n padding-right: 24%;\n background-image: url(", ');\n background-size: cover;\n background-position: 60% center;\n background-repeat: no-repeat;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), x9 = Mu.b.div(D4 || (D4 = _u(["\n position: absolute;\n right: -79%;\n z-index: 8;\n top: 0;\n"]))), O9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(v9, {
children: [Object(Ip.jsx)(y9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsx)(x9, {
children: Object(Ip.jsx)(Lg, {
src: J7
})
})]
})
}
}]),
n
}(l.Component), j9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(O9), k9 = Mu.b.div(L4 || (L4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), w9 = Mu.b.div(R4 || (R4 = _u(["\n background-color: ", ";\n padding-right: 24%;\n background-image: url(", ');\n background-size: cover;\n background-position: 60% center;\n background-repeat: no-repeat;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), C9 = Mu.b.div(P4 || (P4 = _u(["\n position: absolute;\n right: -79%;\n z-index: 8;\n top: 0;\n"]))), _9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(k9, {
children: [Object(Ip.jsx)(w9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsx)(C9, {
children: Object(Ip.jsx)(Lg, {
src: J7
})
})]
})
}
}]),
n
}(l.Component), M9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(_9), S9 = Mu.b.div(B4 || (B4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), A9 = Mu.b.div(F4 || (F4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding-right: 30%;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), T9 = Mu.b.div(V4 || (V4 = _u(["\n position: absolute;\n right: -73%;\n z-index: 8;\n top: 15%;\n border-radius: 20px;\n transform: scale(0.85);\n img {\n border-radius: 20px;\n }\n"]))), E9 = Mu.b.div(W4 || (W4 = _u(["\n background: #ffffff;\n opacity: 0.9;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 16px;\n left: -16px;\n z-index: -1;\n bottom: 16px;\n"]))), I9 = Mu.b.div(q4 || (q4 = _u(["\n background: #ffffff;\n opacity: 0.3;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 32px;\n left: -32px;\n z-index: -1;\n bottom: 32px;\n"]))), N9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(S9, {
children: [Object(Ip.jsx)(A9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsxs)(T9, {
children: [Object(Ip.jsx)(Lg, {
src: J7
}), Object(Ip.jsx)(E9, {}), Object(Ip.jsx)(I9, {})]
})]
})
}
}]),
n
}(l.Component), z9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(N9), D9 = Mu.b.div(H4 || (H4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), L9 = Mu.b.div(U4 || (U4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding-right: 30%;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), R9 = Mu.b.div(X4 || (X4 = _u(["\n position: absolute;\n right: -73%;\n z-index: 8;\n top: -15%;\n border-radius: 20px;\n transform: scale(0.85);\n img {\n border-radius: 20px;\n }\n"]))), P9 = Mu.b.div(G4 || (G4 = _u(["\n background: #ffffff;\n opacity: 0.9;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 16px;\n left: -16px;\n z-index: -1;\n bottom: 16px;\n"]))), B9 = Mu.b.div(K4 || (K4 = _u(["\n background: #ffffff;\n opacity: 0.3;\n border-radius: 20px;\n position: absolute;\n width: 100%;\n top: 32px;\n left: -32px;\n z-index: -1;\n bottom: 32px;\n"]))), F9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(D9, {
children: [Object(Ip.jsx)(L9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsxs)(R9, {
children: [Object(Ip.jsx)(Lg, {
src: J7
}), Object(Ip.jsx)(P9, {}), Object(Ip.jsx)(B9, {})]
})]
})
}
}]),
n
}(l.Component), V9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(F9), W9 = Mu.b.div(Y4 || (Y4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), q9 = Mu.b.div(Q4 || (Q4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding-right: 28%;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), H9 = Mu.b.div(J4 || (J4 = _u(["\n position: absolute;\n right: -76%;\n z-index: 8;\n top: 0;\n bottom: 0;\n transform-origin: 0% 50%;\n transform: perspective(400px) rotateX(0deg) rotateY(-45deg) rotateZ(0deg)\n scale(0.8);\n"]))), U9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(W9, {
children: [Object(Ip.jsx)(q9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsx)(H9, {
children: Object(Ip.jsx)(Lg, {
src: J7
})
})]
})
}
}]),
n
}(l.Component), X9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(U9), G9 = Mu.b.div(Z4 || (Z4 = _u(["\n overflow: hidden;\n position: relative;\n"]))), K9 = Mu.b.div($4 || ($4 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding-right: 28%;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), Y9 = Mu.b.div(e5 || (e5 = _u(["\n position: absolute;\n right: -76%;\n z-index: 8;\n top: 0;\n bottom: 0;\n transform-origin: 0% 50%;\n transform: perspective(400px) rotateX(0deg) rotateY(45deg) rotateZ(0deg)\n scale(0.9);\n"]))), Q9 = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(G9, {
children: [Object(Ip.jsx)(K9, {
background: t || "#ffffff",
image: r,
children: n
}), Object(Ip.jsx)(Y9, {
children: Object(Ip.jsx)(Lg, {
src: J7
})
})]
})
}
}]),
n
}(l.Component), J9 = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(Q9), Z9 = Mu.b.div(t5 || (t5 = _u(["\n overflow: hidden;\n position: relative;\n"]))), $9 = Mu.b.div(n5 || (n5 = _u(["\n background-color: ", ";\n background-image: url(", ');\n background-size: cover;\n background-position: center center;\n background-repeat: no-repeat;\n padding: 0;\n text-align: center;\n &:before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background: #000;\n opacity: 0.7;\n display: ', ";\n }\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.image
}
), (function(e) {
return null != e && e.image ? "block" : "none"
}
)), eee = dr({
fontSize: 16,
height: 16,
width: 16,
color: "white",
position: "absolute",
zIndex: 10,
top: 24,
right: 24
}), tee = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.backgroundColor
, n = e.children
, r = e.imageBg;
return Object(Ip.jsxs)(Z9, {
children: [Object(Ip.jsx)(lp, {
iconName: "ChromeClose",
className: eee
}), Object(Ip.jsx)($9, {
background: t || "#ffffff",
image: r,
children: n
})]
})
}
}]),
n
}(l.Component), nee = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(tee), ree = Mu.b.div(r5 || (r5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), iee = Mu.b.div(i5 || (i5 = _u(["\n background: #21243d;\n opacity: 0.2;\n width: 100%;\n"]))), oee = Mu.b.div(o5 || (o5 = _u(["\n width: 50%;\n padding: 5px;\n position: absolute;\n background: white;\n z-index: 10;\n top: 0;\n bottom: 0;\n"]))), aee = Object(Mu.c)(a5 || (a5 = _u(["\n from {\n transform: translateX(-100%);\n }\n\n to {\n transform: translateX(0);\n }\n"]))), lee = Mu.b.div(l5 || (l5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), oee, aee), see = Mu.b.div(s5 || (s5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), cee = Mu.b.div(c5 || (c5 = _u(["\n background: #fff;\n width: 60%;\n transform: scaleX(0.9) scaleY(0.8) translateX(10px);\n border-radius: 5px;\n"]))), uee = Mu.b.div(u5 || (u5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), dee = Object(Mu.c)(d5 || (d5 = _u(["\n from {\n transform: scale(1.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), pee = Object(Mu.c)(p5 || (p5 = _u(["\n from {\n transform: scaleX(1) scaleY(1) translateX(0);\n }\n\n to {\n transform: scaleX(0.9) scaleY(0.8) translateX(10px);\n }\n"]))), hee = Mu.b.div(h5 || (h5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), uee, dee, cee, pee), fee = Mu.b.div(f5 || (f5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), bee = Mu.b.div(b5 || (b5 = _u(["\n background: #fff;\n width: 60%;\n transform: scaleX(0.9) scaleY(0.8) translateX(15px) rotate(-15deg);\n border-radius: 5px;\n"]))), gee = Mu.b.div(g5 || (g5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), mee = Object(Mu.c)(m5 || (m5 = _u(["\n from {\n transform: scale(1.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), vee = Object(Mu.c)(v5 || (v5 = _u(["\n from {\n transform: scaleX(1) scaleY(1) translateX(0);\n }\n\n to {\n transform: scaleX(0.9) scaleY(0.8) translateX(15px) rotate(-15deg);\n }\n"]))), yee = Mu.b.div(y5 || (y5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), gee, mee, bee, vee), xee = Mu.b.div(x5 || (x5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), Oee = Mu.b.div(O5 || (O5 = _u(["\n background: #fff;\n width: 40%;\n border-radius: 0px;\n"]))), jee = Mu.b.div(j5 || (j5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), kee = Object(Mu.c)(k5 || (k5 = _u(["\n from {\n transform: translateX(-100%);\n }\n\n to {\n transform:translateX(0);\n }\n"]))), wee = Mu.b.div(w5 || (w5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.4s ease-out forwards;\n }\n ", " {\n animation: ", " 0.4s ease-out forwards;\n }\n }\n"])), jee, kee, Oee, kee), Cee = Mu.b.div(C5 || (C5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n position: relative;\n"]))), _ee = Mu.b.div(_5 || (_5 = _u(["\n background: #fff;\n width: 100%;\n border-radius: 0px;\n position: absolute;\n z-index: 10;\n top: 0;\n right: -65%;\n bottom: 0;\n"]))), Mee = Mu.b.div(M5 || (M5 = _u(["\n width: 50%;\n padding: 5px;\n"]))), See = Object(Mu.c)(S5 || (S5 = _u(["\n from {\n transform: translateX(-150%);\n right:0;\n }\n\n to {\n transform:translateX(0);\n right:-65%;\n }\n"]))), Aee = Mu.b.div(A5 || (A5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), _ee, See), Tee = Mu.b.div(T5 || (T5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), Eee = Mu.b.div(E5 || (E5 = _u(["\n background: #fff;\n width: 60%;\n transform: scaleX(0.9) scaleY(0.8) translateY(15px) translateX(15px);\n border-radius: 5px;\n"]))), Iee = Mu.b.div(I5 || (I5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), Nee = Object(Mu.c)(N5 || (N5 = _u(["\n from {\n transform: scale(1.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), zee = Object(Mu.c)(z5 || (z5 = _u(["\n from {\n transform: scaleX(1) scaleY(1) translateY(0);\n }\n\n to {\n transform: scaleX(0.9) scaleY(0.8) translateY(15px) translateX(15px) ;\n }\n"]))), Dee = Mu.b.div(D5 || (D5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), Iee, Nee, Eee, zee), Lee = Mu.b.div(L5 || (L5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), Ree = Mu.b.div(R5 || (R5 = _u(["\n background: #fff;\n width: 60%;\n transform: scaleX(0.9) scaleY(0.8) translateY(-15px) translateX(15px);\n border-radius: 5px;\n"]))), Pee = Mu.b.div(P5 || (P5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), Bee = Object(Mu.c)(B5 || (B5 = _u(["\n from {\n transform: scale(1.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), Fee = Object(Mu.c)(F5 || (F5 = _u(["\n from {\n transform: scaleX(1) scaleY(1) translateY(0);\n }\n\n to {\n transform: scaleX(0.9) scaleY(0.8) translateY(-15px) translateX(15px) ;\n }\n"]))), Vee = Mu.b.div(V5 || (V5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), Pee, Bee, Ree, Fee), Wee = Mu.b.div(W5 || (W5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), qee = Mu.b.div(q5 || (q5 = _u(["\n background: #fff;\n width: 60%;\n transform: perspective(100px) rotateX(0deg) rotateY(-45deg) rotateZ(0deg)\n scale(0.9);\n transform-origin: 100% 50%;\n"]))), Hee = Mu.b.div(H5 || (H5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), Uee = Object(Mu.c)(U5 || (U5 = _u(["\n from {\n transform: scale(1.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), Xee = Object(Mu.c)(X5 || (X5 = _u(["\n from {\n transform: perspective(100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.9);\n }\n\n to {\n transform: perspective(100px) rotateX(0deg) rotateY(-45deg) rotateZ(0deg) scale(0.9); \n }\n"]))), Gee = Mu.b.div(G5 || (G5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), Hee, Uee, qee, Xee), Kee = Mu.b.div(K5 || (K5 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), Yee = Mu.b.div(Y5 || (Y5 = _u(["\n background: #fff;\n width: 60%;\n transform: perspective(100px) rotateX(0deg) rotateY(45deg) rotateZ(0deg)\n scale(0.9) translateX(10px);\n transform-origin: 0% 50%;\n"]))), Qee = Mu.b.div(Q5 || (Q5 = _u(["\n width: 60%;\n padding: 5px;\n"]))), Jee = Object(Mu.c)(J5 || (J5 = _u(["\n from {\n transform: scale(1.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), Zee = Object(Mu.c)(Z5 || (Z5 = _u(["\n from {\n transform: perspective(100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(0.9) translateX(10px);\n }\n\n to {\n transform: perspective(100px) rotateX(0deg) rotateY(45deg) rotateZ(0deg) scale(0.9) translateX(10px); \n }\n"]))), $ee = Mu.b.div($5 || ($5 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), Qee, Jee, Yee, Zee), ete = Mu.b.div(e6 || (e6 = _u(["\n background: #21243d;\n opacity: 0.2;\n height: 3px;\n margin: 5px 0;\n"]))), tte = Mu.b.div(t6 || (t6 = _u(["\n width: 60%;\n padding: 5px;\n margin: 0 auto;\n"]))), nte = Object(Mu.c)(n6 || (n6 = _u(["\n from {\n transform: scale(0.3);\n opacity:0;\n }\n\n to {\n transform: scale(1);\n opacity:1;\n }\n"]))), rte = Mu.b.div(r6 || (r6 = _u(["\n display: flex;\n position: relative;\n width: 100%;\n height: 100%;\n background: rgba(172, 175, 201, 0.3);\n &:hover {\n ", " {\n animation: ", " 0.5s ease-out forwards;\n }\n }\n"])), tte, nte), ite = Mu.b.ul(i6 || (i6 = _u(["\n overflow: hidden;\n overflow-x: auto;\n white-space: nowrap;\n list-style: none;\n padding: 0;\n margin: 0px 0px 8px;\n\n li {\n width: 100%;\n display:flex;\n justify-content:", ";\n > div {\n width: ", ";\n display: flex;\n align-items: center;\n padding: 18px 0;\n text-decoration: none;\n color: ", ";\n border-bottom: 1px solid ", ";\n i {\n font-size: 12px;\n margin-left: 8px;\n cursor: pointer;\n }\n }\n\n ul {\n margin-left: 16px;\n }\n }\n"])), (function(e) {
return e.align
}
), (function(e) {
return "center" === e.align ? "auto" : "100%"
}
), (function(e) {
return e.Color
}
), (function(e) {
return e.borderColor
}
));
function ote(e) {
return 0 === e.categories.length ? null : Object(Ip.jsx)(ite, {
borderColor: e.borderColor,
Color: e.Color,
align: e.align,
children: e.categories.map((function(t, n) {
return Object(Ip.jsx)(bre, {
category: t,
maxDepth: e.maxDepth,
level: e.level,
buildCategoryName: e.buildCategoryName,
buildCategoryCount: e.buildCategoryCount,
buildCategoryImage: e.buildCategoryImage,
borderColor: e.borderColor,
Color: e.Color,
align: e.align
}, t.id)
}
))
})
}
var ate, lte, ste, cte, ute, dte, pte, hte, fte, bte, gte, mte, vte, yte, xte, Ote, jte, kte, wte, Cte, _te, Mte, Ste, Ate, Tte, Ete, Ite, Nte, zte, Dte, Lte, Rte, Pte, Bte, Fte, Vte, Wte, qte, Hte, Ute, Xte, Gte, Kte, Yte, Qte, Jte, Zte, $te, ene, tne, nne, rne, ine, one, ane, lne, sne, cne, une, dne, pne, hne, fne, bne, gne, mne, vne, yne, xne, One, jne, kne, wne, Cne, _ne, Mne, Sne, Ane, Tne, Ene, Ine, Nne, zne, Dne, Lne, Rne, Pne, Bne, Fne, Vne, Wne, qne, Hne, Une, Xne, Gne, Kne, Yne, Qne, Jne, Zne, $ne, ere, tre, nre, rre, ire, ore, are, lre, sre, cre, ure, dre, pre, hre, fre, bre = function(e) {
var t = e.category
, n = e.maxDepth
, r = e.level
, i = e.buildCategoryName
, o = e.borderColor
, a = e.buildCategoryCount
, l = e.buildCategoryImage
, s = e.Color
, c = e.align
, u = Ck(!1)
, d = Object(ss.a)(u, 2)
, p = d[0]
, h = d[1].toggle;
return Object(Ip.jsxs)("li", {
children: [Object(Ip.jsxs)("div", {
children: [l(t), i(t), a(t), t.categories.length > 0 && r < n && Object(Ip.jsx)(lp, {
onClick: h,
iconName: p ? "ChevronDownMed" : "ChevronRightMed"
})]
}), p && r < n && Object(Ip.jsx)(ote, {
categories: t.categories,
maxDepth: n,
level: r + 1,
buildCategoryName: i,
buildCategoryCount: a,
buildCategoryImage: l,
borderColor: o,
Color: s,
align: c
})]
}, t.id)
}, gre = {
default: r9,
style1: u9,
style2: m9,
style3: j9,
style4: M9,
style5: z9,
style6: V9,
style7: X9,
style8: J9,
style9: nee
}, mre = {
default: function() {
return Object(Ip.jsxs)(lee, {
children: [Object(Ip.jsxs)(oee, {
children: [Object(Ip.jsx)(ree, {}), Object(Ip.jsx)(ree, {}), Object(Ip.jsx)(ree, {}), Object(Ip.jsx)(ree, {}), Object(Ip.jsx)(ree, {}), Object(Ip.jsx)(ree, {})]
}), Object(Ip.jsx)(iee, {})]
})
},
style1: function() {
return Object(Ip.jsxs)(hee, {
children: [Object(Ip.jsxs)(uee, {
children: [Object(Ip.jsx)(see, {}), Object(Ip.jsx)(see, {}), Object(Ip.jsx)(see, {}), Object(Ip.jsx)(see, {}), Object(Ip.jsx)(see, {}), Object(Ip.jsx)(see, {})]
}), Object(Ip.jsx)(cee, {})]
})
},
style2: function() {
return Object(Ip.jsxs)(yee, {
children: [Object(Ip.jsxs)(gee, {
children: [Object(Ip.jsx)(fee, {}), Object(Ip.jsx)(fee, {}), Object(Ip.jsx)(fee, {}), Object(Ip.jsx)(fee, {}), Object(Ip.jsx)(fee, {}), Object(Ip.jsx)(fee, {})]
}), Object(Ip.jsx)(bee, {})]
})
},
style3: function() {
return Object(Ip.jsxs)(wee, {
children: [Object(Ip.jsxs)(jee, {
children: [Object(Ip.jsx)(xee, {}), Object(Ip.jsx)(xee, {}), Object(Ip.jsx)(xee, {}), Object(Ip.jsx)(xee, {}), Object(Ip.jsx)(xee, {}), Object(Ip.jsx)(xee, {})]
}), Object(Ip.jsx)(Oee, {})]
})
},
style4: function() {
return Object(Ip.jsxs)(Aee, {
children: [Object(Ip.jsxs)(Mee, {
children: [Object(Ip.jsx)(Cee, {}), Object(Ip.jsx)(Cee, {}), Object(Ip.jsx)(Cee, {}), Object(Ip.jsx)(Cee, {}), Object(Ip.jsx)(Cee, {}), Object(Ip.jsx)(Cee, {})]
}), Object(Ip.jsx)(_ee, {})]
})
},
style5: function() {
return Object(Ip.jsxs)(Dee, {
children: [Object(Ip.jsxs)(Iee, {
children: [Object(Ip.jsx)(Tee, {}), Object(Ip.jsx)(Tee, {}), Object(Ip.jsx)(Tee, {}), Object(Ip.jsx)(Tee, {}), Object(Ip.jsx)(Tee, {}), Object(Ip.jsx)(Tee, {})]
}), Object(Ip.jsx)(Eee, {})]
})
},
style6: function() {
return Object(Ip.jsxs)(Vee, {
children: [Object(Ip.jsxs)(Pee, {
children: [Object(Ip.jsx)(Lee, {}), Object(Ip.jsx)(Lee, {}), Object(Ip.jsx)(Lee, {}), Object(Ip.jsx)(Lee, {}), Object(Ip.jsx)(Lee, {}), Object(Ip.jsx)(Lee, {})]
}), Object(Ip.jsx)(Ree, {})]
})
},
style7: function() {
return Object(Ip.jsxs)(Gee, {
children: [Object(Ip.jsxs)(Hee, {
children: [Object(Ip.jsx)(Wee, {}), Object(Ip.jsx)(Wee, {}), Object(Ip.jsx)(Wee, {}), Object(Ip.jsx)(Wee, {}), Object(Ip.jsx)(Wee, {}), Object(Ip.jsx)(Wee, {})]
}), Object(Ip.jsx)(qee, {})]
})
},
style8: function() {
return Object(Ip.jsxs)($ee, {
children: [Object(Ip.jsxs)(Qee, {
children: [Object(Ip.jsx)(Kee, {}), Object(Ip.jsx)(Kee, {}), Object(Ip.jsx)(Kee, {}), Object(Ip.jsx)(Kee, {}), Object(Ip.jsx)(Kee, {}), Object(Ip.jsx)(Kee, {})]
}), Object(Ip.jsx)(Yee, {})]
})
},
style9: function() {
return Object(Ip.jsx)(rte, {
children: Object(Ip.jsxs)(tte, {
children: [Object(Ip.jsx)(ete, {}), Object(Ip.jsx)(ete, {}), Object(Ip.jsx)(ete, {}), Object(Ip.jsx)(ete, {}), Object(Ip.jsx)(ete, {}), Object(Ip.jsx)(ete, {})]
})
})
}
}, vre = Mu.b.div(ate || (ate = _u(["\n font-size: 14px;\n font-weight: 500;\n word-break: break-word;\n flex-direction: column;\n text-align: left;\n min-height: 668px;\n position: relative;\n\n a {\n color: ", ";\n\n .ms-Image {\n img {\n border-radius: 50%;\n }\n }\n }\n"])), (function(e) {
return (null == e ? void 0 : e.color) || "#ffffff"
}
)), yre = Mu.b.div(lte || (lte = _u(['\n [class*="scroll_scrollbarContainer"] {\n display: none;\n }\n']))), xre = Mu.b.div(ste || (ste = _u(["\n padding: 24px;\n background-color: ", ";\n color: ", ";\n text-align: ", ";\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.color
}
), (function(e) {
return e.align
}
)), Ore = Mu.b.div(cte || (cte = _u(["\n overflow: hidden;\n border-radius: ", ";\n display: inline-block;\n margin-bottom: 8px;\n"])), (function(e) {
return "".concat(e.borderRadius, "px")
}
)), jre = Mu.b.div(ute || (ute = _u(["\n padding: 40px 24px 0 24px;\n text-align: ", ";\n"])), (function(e) {
return e.align
}
)), kre = Mu.b.div(dte || (dte = _u(["\n padding: 40px 24px 0 24px;\n text-align: ", ";\n"])), (function(e) {
return e.align
}
)), wre = Object(Mu.b)(Q7)(pte || (pte = _u(["\n li {\n border-bottom: 1px solid ", ";\n\n a {\n pointer-events: none;\n display: flex;\n justify-content: ", ";\n padding: 18px 0;\n text-decoration: none;\n align-items: center;\n span {\n display: block;\n flex: ", ";\n }\n }\n }\n"])), (function(e) {
return e.borderColor
}
), (function(e) {
return e.align
}
), (function(e) {
return e.align ? "inherit" : 1
}
)), Cre = Mu.b.div(hte || (hte = _u(["\n margin-right: 8px;\n"]))), _re = Mu.b.span(fte || (fte = _u(["\n display: block;\n flex: 1;\n white-space: break-spaces;\n word-break: break-word;\n"]))), Mre = Mu.b.span(bte || (bte = _u(["\n font-size: 12px;\n margin-left: 8px;\n"]))), Sre = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._buildCategoryName = function(e) {
return Object(Ip.jsx)(_re, {
children: e.name
})
}
,
e._buildCategoryCount = function(e, t) {
return t ? Object(Ip.jsx)(Mre, {
children: e.count
}) : null
}
,
e._buildCategoryImage = function(e, t) {
var n, r;
if (!t)
return null;
var i = {
imageFit: kg.cover,
width: 24,
height: 24
};
return Object(Ip.jsx)(Cre, {
children: Object(Ip.jsx)(Lg, _t(_t({}, i), {}, {
src: null !== (n = null == e || null === (r = e.image) || void 0 === r ? void 0 : r.src) && void 0 !== n ? n : Gw.noImage,
alt: e.name,
style: {
borderRadius: "50%"
}
}))
})
}
,
e._renderCustomize = function(t, n) {
var r, i, o, a = e.props, l = a.widget.fields, s = a.translate, c = a.language;
if (!t)
return null;
var u = t.data;
return Object(Ip.jsx)("li", {
children: Object(Ip.jsxs)("a", {
href: "#".concat(n + 1),
children: [!0 === (null == l ? void 0 : l.enableIconCustomize) && Object(Ip.jsx)(YX, {
icon: null !== (r = null == u ? void 0 : u.icon) && void 0 !== r ? r : {
name: "book",
type: "feather"
},
width: 18,
height: 18,
style: {
marginRight: 16,
fontSize: 18
}
}), Object(Ip.jsx)("span", {
children: s ? null == u || null === (i = u.title) || void 0 === i ? void 0 : i[c] : null == u || null === (o = u.title) || void 0 === o ? void 0 : o.text
})]
})
}, n)
}
,
e
}
return Object(At.a)(n, [{
key: "hierarchy",
value: function(e) {
var t = this.props.widget.fields;
return Cu()(t, "showHierarchy", !0) ? e : PK(e)
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o = this, a = this.props, l = a.widget, s = l.styles, c = l.fields, u = l.layout, d = a.translate, p = a.language, h = a.categories, f = a.user, b = a.darkModeKey, g = gre[u] || gre.default, m = c.alignHeader, v = c.alignCategory, y = c.alignCustomize, x = y, O = c.alignHeader;
O = "left" === O ? "start" : "right" === O ? "flex-end" : "center",
x = "left" === x ? "start" : "right" === x ? "flex-end" : "center";
var j = Cu()(c, "includeCategory", [])
, k = Cu()(c, "excludeCategory", [])
, w = j.map((function(e) {
return parseInt(e.key)
}
))
, C = k.map((function(e) {
return parseInt(e.key)
}
))
, _ = Cu()(c, "enableCount", !0)
, M = Cu()(c, "enableImageCategory", !0)
, S = parseInt(Cu()(c, "depth", 3))
, A = RK(LK(this.hierarchy(h), w), C)
, T = rH(Cu()(s, ["color", b], ec.black))
, E = rH(Cu()(s, ["background", b], ec.white))
, I = rH(Cu()(s, ["borderColor", b], ec.black));
return Object(Ip.jsx)(g, {
backgroundColor: E,
imageBg: null != s && s.enableImageBg ? s.imageBg : "",
children: Object(Ip.jsx)(yre, {
children: Object(Ip.jsx)(cA, {
style: {
height: 668
},
children: Object(Ip.jsxs)(vre, {
color: T,
children: [!0 === (null == c ? void 0 : c.enableHeaderSidebar) && Object(Ip.jsxs)(xre, {
color: T,
align: m,
children: [Object(Ip.jsx)(Ore, {
borderRadius: 50,
children: Object(Ip.jsx)(Lg, {
src: Zp.NoImage,
width: 70,
height: 70
})
}), Object(Ip.jsx)(Ep, {
variant: "mediumPlus",
block: !0,
style: {
color: T
},
children: Y7()(f.display_name)
}), Object(Ip.jsx)(Ep, {
variant: "medium",
block: !0,
style: {
color: T
},
children: f.user_email
}), Object(Ip.jsx)(yw, {
padding: "16px 0 0",
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
horizontalAlign: O,
children: [Object(Ip.jsx)(lp, {
iconName: "SignOut"
}), Object(Ip.jsx)(yw, {
padding: "0 8px",
children: Object(Ip.jsx)(Ep, {
variant: "medium",
style: {
color: T
},
children: "SIGN OUT"
})
})]
})
})]
}), (null == c ? void 0 : c.enableCategory) && Object(Ip.jsxs)(jre, {
align: v,
dir: "right" === v ? "rtl" : "ltr",
children: [Object(Ip.jsx)(yw, {
padding: "0 0 8px 0",
children: Object(Ip.jsx)(Ep, {
variant: "large",
style: {
color: T
},
children: d ? null == c || null === (e = c.titleCategory) || void 0 === e ? void 0 : e[p] : null == c || null === (t = c.titleCategory) || void 0 === t ? void 0 : t.text
})
}), Object(Ip.jsx)(ote, {
categories: A,
maxDepth: S,
level: 1,
buildCategoryName: this._buildCategoryName,
buildCategoryCount: function(e) {
return o._buildCategoryCount(e, _)
},
buildCategoryImage: function(e) {
return o._buildCategoryImage(e, M)
},
borderColor: I,
Color: T,
align: v
})]
}), (null == c ? void 0 : c.enableCustomize) && Object(Ip.jsxs)(kre, {
align: y,
children: [Object(Ip.jsx)(yw, {
padding: "0 0 8px 0",
children: Object(Ip.jsx)(Ep, {
variant: "large",
style: {
color: T
},
children: d ? null == c || null === (n = c.titleCustomize) || void 0 === n ? void 0 : n[p] : null == c || null === (r = c.titleCustomize) || void 0 === r ? void 0 : r.text
})
}), Object(Ip.jsx)(wre, {
borderColor: I,
align: x,
children: (null == c || null === (i = c.itemsCustomize) || void 0 === i ? void 0 : i.length) > 0 && (null == c ? void 0 : c.itemsCustomize.map((function(e, t) {
return o._renderCustomize(e, t)
}
)))
})]
})]
})
})
})
})
}
}]),
n
}(l.Component), Are = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
categories: Jc(e),
user: Zc(e),
darkModeKey: Gc(e)
}
}
))(Sre), Tre = Mu.b.div(gte || (gte = _u(["\n text-align: left;\n padding: 30px;\n > span {\n margin-bottom: 20px;\n display: block;\n }\n"]))), Ere = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)(Tre, {
children: "Setting General"
})
}
}]),
n
}(l.Component), Ire = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(Ere), Nre = Mu.b.div(mte || (mte = _u(["\n text-align: left;\n padding: 30px;\n > span {\n margin-bottom: 20px;\n display: block;\n }\n"]))), zre = Mu.b.span(vte || (vte = _u(["\n font-weight: 500;\n"]))), Dre = Mu.b.div(yte || (yte = _u(["\n width: 45px;\n height: 45px;\n border-radius: 50%;\n background: ", ";\n border: 1px solid #ddd;\n display: inline-block;\n margin-right: 10px;\n"])), (function(e) {
return e.background
}
)), Lre = Mu.b.div(xte || (xte = _u(["\n padding: 20px 0;\n border-top: 1px solid #ddd;\n margin-bottom: 20px;\n"]))), Rre = Mu.b.div(Ote || (Ote = _u(["\n border-radius: 8px;\n padding: 16px 24px;\n background: ", ";\n color: ", ";\n display: inline-block;\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.color
}
)), Pre = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props.widget.fields;
return Object(Ip.jsxs)(Nre, {
children: [Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "96",
height: "120%",
color: e.headingColorText,
fontWeight: "300",
letterSpacing: "-1.5"
},
children: "H1"
}), Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "60",
height: "120%",
color: e.headingColorText,
fontWeight: "300",
letterSpacing: "-0.5"
},
children: "H2"
}), Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "48",
height: "120%",
color: e.headingColorText,
fontWeight: "400"
},
children: "H3"
}), Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "34",
height: "54px",
color: e.headingColorText,
fontWeight: "500"
},
children: "H4"
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "28",
height: "42px",
color: e.headingColorText,
fontWeight: "500"
},
children: [" ", "H5", " "]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "22",
height: "33px",
color: e.headingColorText,
fontWeight: "500"
},
children: [" ", "H6", " "]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "16",
height: "24px",
color: e.headingColorText,
fontWeight: "500"
},
children: [" ", "Subtitle 1"]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "14",
height: "21px",
color: e.headingColorText,
fontWeight: "500"
},
children: [" ", "Subtitle 2"]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "14",
height: "26px",
color: e.headingColorBody,
fontWeight: "400"
},
children: [" ", "Body 1"]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "13",
height: "22px",
color: e.headingColorBody,
fontWeight: "400"
},
children: [" ", "Body 2"]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "14",
height: "22px",
color: e.headingColorText,
fontWeight: "500"
},
children: [" ", "Button"]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "12",
height: "18px",
color: e.headingColorBody
},
children: [" ", "Caption"]
}), Object(Ip.jsxs)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "10",
height: "15px",
color: e.headingColorSecondBody
},
children: [" ", "Overline"]
}), Object(Ip.jsxs)(Lre, {
children: [Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "14",
height: "21px",
color: "#000"
},
style: {
display: "block"
},
children: Object(Ip.jsx)(zre, {
children: "Color"
})
}), Object(Ip.jsx)("br", {}), Object(Ip.jsx)(Dre, {
background: e.primaryColor
}), Object(Ip.jsx)(Dre, {
background: e.secondaryColor
}), Object(Ip.jsx)(Dre, {
background: e.background
}), Object(Ip.jsx)(Dre, {
background: e.secondaryBackground
}), Object(Ip.jsx)(Dre, {
background: e.borderColor
})]
}), Object(Ip.jsxs)(Lre, {
children: [Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "14",
height: "21px",
color: "#000"
},
style: {
display: "block"
},
children: "Label"
}), Object(Ip.jsx)("br", {}), Object(Ip.jsx)(Dre, {
background: e.successfulColor
}), Object(Ip.jsx)(Dre, {
background: e.errorColor
}), Object(Ip.jsx)(Dre, {
background: e.warningColor
})]
}), Object(Ip.jsxs)(Lre, {
children: [Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "14",
height: "21px",
color: "#000"
},
style: {
display: "block"
},
children: "Colors Text"
}), Object(Ip.jsx)("br", {}), Object(Ip.jsx)(Dre, {
background: e.headingColorText
}), Object(Ip.jsx)(Dre, {
background: e.headingColorBody
}), Object(Ip.jsx)(Dre, {
background: e.headingColorSecondBody
})]
}), Object(Ip.jsxs)(Lre, {
children: [Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamilyBody,
fontSize: "14",
height: "21px",
color: "#000"
},
style: {
display: "block"
},
children: "Button Primary"
}), Object(Ip.jsx)("br", {}), Object(Ip.jsx)(Rre, {
background: e.primaryColorButton,
color: e.primaryColorTextButton,
children: Object(Ip.jsx)(pU, {
dataStyle: {
fontFamily: e.fontFamily,
fontSize: "14",
height: "21px",
color: e.primaryColorTextButton
},
children: Object(Ip.jsx)(zre, {
children: " Button Primary "
})
})
})]
})]
})
}
}]),
n
}(l.Component), Bre = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(Pre), Fre = Mu.b.div(jte || (jte = _u(["\n padding: 11px 0px;\n background-color: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.color
}
)), Vre = Mu.b.div(kte || (kte = _u(["\n flex: 1;\n padding: 10px 16px;\n"]))), Wre = Object(Mu.b)(Vre)(wte || (wte = _u(["\n display: flex;\n flex-direction: column;\n"]))), qre = Object(Mu.b)(Vre)(Cte || (Cte = _u(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n"]))), Hre = Mu.b.div(_te || (_te = _u(["\n flex: 3.5;\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]))), Ure = Mu.b.div(Mte || (Mte = _u(["\n min-width: 12px;\n height: 22px;\n font-size: 12px;\n color: #fff;\n line-height: 22px;\n padding: 0px 5px;\n border-radius: 11px;\n background-color: #f01f0e;\n"]))), Xre = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r = this.props.widget, i = r.fields, o = r.styles, a = "left" === (null == i ? void 0 : i.alignmentLogo) ? "flex-start" : "right" === (null == i ? void 0 : i.alignmentLogo) ? "flex-end" : "center";
return Object(Ip.jsxs)(Fre, {
background: null != i && i.enableTransparentHeader ? "transparent" : (null == o ? void 0 : o.background) || "#fff",
color: (null == o ? void 0 : o.color) || "#000",
style: null != o && o.enableShadow ? {
boxShadow: "0px 4px 20px rgba(0, 0, 0, 0.06)"
} : {},
children: [Object(Ip.jsx)(Wre, {
children: (null == i ? void 0 : i.enableSidebar) && Object(Ip.jsx)(YX, {
icon: null !== (e = null == i ? void 0 : i.iconSideBar) && void 0 !== e ? e : {
type: "feather",
name: "menu"
},
width: 20,
height: 20,
style: {
fontSize: 20
}
})
}), Object(Ip.jsx)(Hre, {
style: {
alignItems: a
},
children: Object(Ip.jsx)("img", {
width: null !== (t = null == i ? void 0 : i.widthLogo) && void 0 !== t ? t : 122,
src: VW,
alt: "Logo"
})
}), Object(Ip.jsxs)(qre, {
children: [(null == i ? void 0 : i.enableNumber) && Object(Ip.jsx)(Ure, {
children: "3"
}), (null == i ? void 0 : i.enableCart) && Object(Ip.jsx)(YX, {
icon: null !== (n = null == i ? void 0 : i.iconCart) && void 0 !== n ? n : {
type: "feather",
name: "shopping-cart"
},
width: 20,
height: 20,
style: {
fontSize: 20
}
})]
})]
})
}
}]),
n
}(l.Component), Gre = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(Xre), Kre = Mu.b.ul(Ste || (Ste = _u(["\n display: flex;\n overflow: hidden;\n overflow-x: auto;\n white-space: nowrap;\n list-style: none;\n padding: 0;\n margin: 16px 0 24px;\n\n li {\n display: inline-block;\n margin-right: 32px;\n font-weight: 600;\n padding-bottom: 4px;\n\n &.active {\n color: #0686f8;\n border-bottom: 2px solid #0686f8;\n }\n }\n"]))), Yre = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.children;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [this.buildTabs(t), n && n]
})
}
}, {
key: "buildTabs",
value: function(e) {
var t = this.props
, n = t.onChange
, r = t.active;
return Object(Ip.jsx)(Kre, {
children: e.map((function(e, t) {
var i;
return Object(Ip.jsx)("li", {
className: t === r ? "active" : "",
onClick: function() {
return n(t)
},
children: js()(null !== (i = null == e ? void 0 : e.name) && void 0 !== i ? i : "")
}, e.id)
}
))
})
}
}]),
n
}(l.Component), Qre = Yre, Jre = Mu.b.div(Ate || (Ate = _u(["\n display: flex;\n"]))), Zre = Mu.b.ul(Tte || (Tte = _u(["\n list-style: none;\n text-align: left;\n padding: 0;\n width: 108px;\n margin: 0;\n\n li {\n padding: 16px;\n border-left: 2px solid transparent;\n font-weight: 600;\n white-space: break-spaces;\n word-break: break-word;\n &.active {\n background-color: ", ";\n color: #0686f8;\n border-left-color: #0686f8;\n }\n }\n"])), (function(e) {
return e.color
}
)), $re = Mu.b.div(Ete || (Ete = _u(["\n flex: 1;\n padding: 16px;\n overflow: scroll;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), eie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.categories
, n = e.children
, r = e.background;
return Object(Ip.jsxs)(Jre, {
children: [this.buildTabs(t), Object(Ip.jsx)($re, {
color: r,
children: n && n
})]
})
}
}, {
key: "buildTabs",
value: function(e) {
var t = this.props
, n = t.onChange
, r = t.active
, i = t.background;
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(Zre, {
color: i,
children: e.map((function(e, t) {
var i;
return Object(Ip.jsx)("li", {
className: t === r ? "active" : "",
onClick: function() {
return n(t)
},
children: js()(null !== (i = null == e ? void 0 : e.name) && void 0 !== i ? i : "")
}, e.id)
}
))
})
})
}
}]),
n
}(l.Component), tie = eie, nie = function(e) {
var t = Object(l.createRef)()
, n = Object(l.useState)(362)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1]
, a = e.categories
, s = e.buildItem
, c = e.columnGrid
, u = e.childAspectRatio
, d = e.view
, p = e.pad;
return Object(l.useEffect)((function() {
var e, n;
null != t && t.current && o(null !== (e = null == t || null === (n = t.current) || void 0 === n ? void 0 : n.offsetWidth) && void 0 !== e ? e : 362)
}
), [t]),
Object(Ip.jsx)("div", {
ref: t,
children: "list" === d ? Object(Ip.jsx)("div", {
children: a.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: t < a.length - 1 ? p : 0
},
children: s(e, i, "auto")
}, e.id)
}
))
}) : function() {
var e = (i - (c - 1) * p) / c
, t = e * u
, n = 12 / c;
return Object(Ip.jsx)("div", {
className: "ms-Grid",
dir: "ltr",
style: {
padding: 0
},
children: Object(Ip.jsx)("div", {
className: "ms-Grid-row",
style: {
margin: -p / 2
},
children: a.map((function(r) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm".concat(n, " ms-md").concat(n, " ms-lg").concat(n),
style: {
padding: p / 2
},
children: s(r, e, t)
}, r.id)
}
))
})
})
}()
})
}, rie = Mu.b.div(Ite || (Ite = _u(["\n background: #f4f4f4;\n border: 1px solid #dee2e6;\n border-radius: 8px;\n display: flex;\n align-items: center;\n padding: 10px 8px;\n margin-top: 16px;\n"]))), iie = Object(Mu.b)(lp)(Nte || (Nte = _u(["\n margin: 0px 8px;\n color: black;\n font-size: 16px;\n"]))), oie = Mu.b.span(zte || (zte = _u(["\n margin: 0px 8px;\n display: block;\n flex: 1;\n color: #647c9c;\n font-size: 14px;\n text-align: start;\n"]))), aie = function() {
return Object(Ip.jsxs)(rie, {
children: [Object(Ip.jsx)(iie, {
iconName: "Search"
}), Object(Ip.jsx)(oie, {
children: "Search Products"
})]
})
}, lie = Mu.b.div(Dte || (Dte = _u(["\n margin: 16px 0px;\n background-color: white;\n display: flex;\n align-items: center;\n justify-content: center;\n"]))), sie = function() {
var e = {
src: Gw.noImage,
imageFit: kg.cover
};
return Object(Ip.jsx)(lie, {
children: Object(Ip.jsx)(Lg, _t(_t({}, e), {}, {
alt: "Banner",
height: 80,
width: "100%"
}))
})
}, cie = Mu.b.div(Lte || (Lte = _u(["\n background: ", ";\n border-radius: 8px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n overflow: hidden;\n text-align: left;\n box-shadow: ", ";\n border: ", ";\n height: ", ";\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.background) && void 0 !== t ? t : "#F4F4F4"
}
), (function(e) {
return null != e && e.isShadow ? "0px 4px 24px rgba(0, 0, 0, 0.08)" : "none"
}
), (function(e) {
var t;
return null != e && e.isBorder ? "1px solid ".concat(null !== (t = null == e ? void 0 : e.borderColor) && void 0 !== t ? t : "#ffffff") : "none"
}
), (function(e) {
return "number" == typeof (null == e ? void 0 : e.height) ? "".concat(null == e ? void 0 : e.height, "px") : e.height
}
)), uie = Mu.b.div(Rte || (Rte = _u(["\n color: #000;\n font-size: ", ";\n font-weight: 500;\n white-space: break-spaces;\n word-break: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), (function(e) {
return "".concat(e.fontsize ? e.fontsize : "16", "px")
}
)), die = Mu.b.div(Pte || (Pte = _u(["\n font-size: 12px;\n color: #647c9c;\n margin-top: 4px;\n"]))), pie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r = this.props, i = r.category, o = r.isImage, a = r.isCountItem, l = r.background, s = r.fontSize, c = r.isShadow, u = r.isBorder, d = r.borderColor, p = r.height, h = r.isChangeName, f = r.textChangeName, b = {
src: null != i && null !== (e = i.image) && void 0 !== e && e.src ? null == i || null === (t = i.image) || void 0 === t ? void 0 : t.src : Zp.NoImage,
imageFit: kg.cover
}, g = h ? f : i.name;
return Object(Ip.jsxs)(cie, {
background: l,
isShadow: c,
isBorder: u,
borderColor: d,
height: p,
children: [Object(Ip.jsxs)(yw, {
padding: "16px",
style: {
flex: 1
},
children: [Object(Ip.jsx)(uie, {
fontsize: s ? s.toString() : "16",
children: js()(g)
}), a && Object(Ip.jsxs)(die, {
children: [null !== (n = null == i ? void 0 : i.count) && void 0 !== n ? n : 0, " items"]
})]
}), o && Object(Ip.jsx)(Lg, _t(_t({}, b), {}, {
alt: "Banner",
height: 92,
width: 92
}))]
})
}
}]),
n
}(l.Component), hie = pie, fie = Mu.b.div(Bte || (Bte = _u(["\n background: ", ";\n border-radius: 8px;\n display: flex;\n align-items: center;\n overflow: hidden;\n padding: ", " 16px;\n box-shadow: ", ";\n border: ", ";\n height: ", ";\n text-align: left;\n img {\n border-radius: 50%;\n }\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.background) && void 0 !== t ? t : "#F4F4F4"
}
), (function(e) {
return "auto" === e.height ? "16px" : "0px"
}
), (function(e) {
return null != e && e.isShadow ? "0px 4px 24px rgba(0, 0, 0, 0.08)" : "none"
}
), (function(e) {
var t;
return null != e && e.isBorder ? "1px solid ".concat(null !== (t = null == e ? void 0 : e.borderColor) && void 0 !== t ? t : "#ffffff") : "none"
}
), (function(e) {
return "number" == typeof (null == e ? void 0 : e.height) ? "".concat(null == e ? void 0 : e.height, "px") : e.height
}
)), bie = Mu.b.div(Fte || (Fte = _u(["\n margin-right: 16px;\n"]))), gie = Mu.b.div(Vte || (Vte = _u(["\n color: #000;\n font-size: ", ";\n font-weight: 500;\n white-space: break-spaces;\n word-break: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), (function(e) {
return "".concat(e.fontsize ? e.fontsize : "16", "px")
}
)), mie = Mu.b.div(Wte || (Wte = _u(["\n font-size: 12px;\n color: #647c9c;\n margin-left: 16px;\n"]))), vie = Mu.b.div(qte || (qte = _u(["\n flex: 1;\n"]))), yie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.category, i = n.isImage, o = n.isCountItem, a = n.background, l = n.fontSize, s = n.isShadow, c = n.isBorder, u = n.borderColor, d = n.height, p = n.isChangeName, h = n.textChangeName, f = {
src: null !== (e = null == r || null === (t = r.image) || void 0 === t ? void 0 : t.src) && void 0 !== e ? e : Zp.NoImage,
imageFit: kg.cover
}, b = p ? h : r.name;
return Object(Ip.jsxs)(fie, {
background: a,
isShadow: s,
isBorder: c,
borderColor: u,
height: d,
children: [i && Object(Ip.jsx)(bie, {
children: Object(Ip.jsx)(Lg, _t(_t({}, f), {}, {
alt: "Banner",
height: 60,
width: 60
}))
}), Object(Ip.jsx)(vie, {
children: Object(Ip.jsx)(gie, {
fontsize: l ? l.toString() : "16",
children: js()(b)
})
}), o && Object(Ip.jsxs)(mie, {
children: [r.count, " items"]
})]
})
}
}]),
n
}(l.Component), xie = yie, Oie = Mu.b.div(Hte || (Hte = _u(["\n background-color: ", ";\n position: relative;\n border-radius: 8px;\n .ms-Image {\n opacity: ", " !important;\n }\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.background) && void 0 !== t ? t : "#000"
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.opacity) && void 0 !== t ? t : .6
}
)), jie = Mu.b.div(Ute || (Ute = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n text-align: center;\n color: ", ";\n font-size: ", "px;\n font-weight: 500;\n white-space: break-spaces;\n word-break: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.textColor) && void 0 !== t ? t : "#fff"
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.fontsize) && void 0 !== t ? t : 16
}
)), kie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.category, i = n.width, o = n.background, a = n.opacity, l = n.textColor, s = n.textSize, c = n.height, u = n.isChangeName, d = n.textChangeName, p = {
src: null !== (e = null == r || null === (t = r.image) || void 0 === t ? void 0 : t.src) && void 0 !== e ? e : Zp.NoImage,
imageFit: kg.cover
}, h = u ? d : r.name;
return Object(Ip.jsxs)(Oie, {
background: o,
opacity: a,
children: [Object(Ip.jsx)(Lg, _t(_t({}, p), {}, {
alt: "Banner",
height: "auto" !== c ? c : i,
width: i
})), Object(Ip.jsx)(jie, {
fontsize: s,
textColor: l,
children: js()(h)
})]
})
}
}]),
n
}(l.Component), wie = kie, Cie = Mu.b.div(Xte || (Xte = _u(["\n width: ", "px;\n height: ", ";\n &.flex-item-contained {\n display: flex;\n flex-direction: column;\n > .flex-image {\n flex: 1;\n }\n }\n .flex-image {\n margin-bottom: 8px;\n border-radius: 8px;\n overflow: hidden;\n }\n .image-round {\n border-radius: 50% !important;\n }\n .image-border {\n border: 1px solid #dee2e6;\n }\n"])), (function(e) {
return e.width
}
), (function(e) {
return "number" == typeof (null == e ? void 0 : e.height) ? "".concat(null == e ? void 0 : e.height, "px") : e.height
}
)), _ie = Mu.b.div(Gte || (Gte = _u(["\n font-size: ", "px;\n white-space: break-spaces;\n word-break: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.fontsize) && void 0 !== t ? t : 12
}
)), Mie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderImage = function() {
var t, n, r = e.props, i = r.category, o = r.width, a = r.height, l = r.isImage, s = r.isBorderImage, c = r.isRoundImage;
if (!l)
return null;
var u = {
src: null !== (t = null == i || null === (n = i.image) || void 0 === n ? void 0 : n.src) && void 0 !== t ? t : Zp.NoImage,
imageFit: kg.cover
}
, d = s ? o - 2 : o
, p = "flex-image";
return s && (p += " image-border"),
c && (p += " image-round"),
Object(Ip.jsx)("div", {
className: p,
children: Object(Ip.jsx)(Lg, _t(_t({}, u), {}, {
alt: "Banner",
height: "auto" !== a ? "100%" : d,
width: d
}))
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.category
, n = e.width
, r = e.height
, i = e.fontSize
, o = e.isChangeName
, a = e.textChangeName
, l = o ? a : t.name;
return Object(Ip.jsxs)(Cie, {
width: n,
height: r,
className: "auto" !== r ? "flex-item-contained" : "",
children: [this._renderImage(), Object(Ip.jsx)(_ie, {
fontsize: i,
children: js()(l)
})]
})
}
}]),
n
}(l.Component), Sie = Mie, Aie = Mu.b.div(Kte || (Kte = _u(["\n padding: 24px 16px;\n border-radius: 8px;\n overflow: hidden;\n"]))), Tie = Mu.b.div(Yte || (Yte = _u(["\n display: flex;\n text-align: left;\n"]))), Eie = Mu.b.div(Qte || (Qte = _u(["\n flex: 1;\n margin-right: 12px;\n font-size: ", "px;\n font-weight: 500;\n white-space: break-spaces;\n word-break: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), (function(e) {
return e.fontSize
}
)), Iie = Mu.b.div(Jte || (Jte = _u(["\n font-size: 12px;\n font-weight: 400;\n color: #9fadc0;\n"]))), Nie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.category
, n = e.background
, r = e.height
, i = e.enableChildren
, o = e.sizeName
, a = e.sizeNameChildren
, l = e.maxCountChildren
, s = e.columnGrid
, c = e.isChangeName
, u = e.textChangeName
, d = t.categories.slice(0, null != l ? l : 12)
, p = c ? u : t.name;
return Object(Ip.jsxs)(Aie, {
style: {
background: n && "" !== n ? n : "#fff",
height: r
},
children: [Object(Ip.jsxs)(Tie, {
children: [Object(Ip.jsx)(Eie, {
fontSize: null != o ? o : 16,
children: js()(p)
}), Object(Ip.jsx)(Iie, {
children: "View all"
})]
}), i && d.length > 0 && Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(nie, {
categories: d,
buildItem: function(e, t, n) {
return Object(Ip.jsx)(Sie, {
category: e,
width: t,
height: "auto",
isImage: !0,
fontSize: null != a ? a : 12,
isBorderImage: !0,
isRoundImage: !1,
isChangeName: !1,
textChangeName: ""
})
},
view: "grid",
columnGrid: null != s ? s : 3,
childAspectRatio: 1,
layout: "",
pad: 24
})
})]
})
}
}]),
n
}(l.Component), zie = Nie, Die = Mu.b.div(Zte || (Zte = _u(["\n border-radius: 8px;\n display: flex;\n align-items: center;\n border-bottom: ", ";\n height: ", ";\n text-align: left;\n i {\n margin-left: 16px;\n font-size: 12px;\n }\n"])), (function(e) {
return null != e && e.isBorder ? "1px solid rgba(222, 226, 230, 0.5)" : "none"
}
), (function(e) {
return "number" == typeof (null == e ? void 0 : e.height) ? "".concat(null == e ? void 0 : e.height, "px") : "58px"
}
)), Lie = Mu.b.span($te || ($te = _u(["\n flex: 1;\n font-size: ", "px;\n font-weight: 500;\n white-space: break-spaces;\n word-break: break-word;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])), (function(e) {
return e.fontSize
}
)), Rie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.category
, n = e.height
, r = e.isBorder
, i = e.isIcon
, o = e.fontSize
, a = e.isChangeName
, l = e.textChangeName
, s = a ? l : t.name;
return Object(Ip.jsxs)(Die, {
height: n,
isBorder: r,
children: [Object(Ip.jsx)(Lie, {
fontSize: null != o ? o : 14,
children: js()(s)
}), i && Object(Ip.jsx)(lp, {
iconName: "ChevronRight"
})]
})
}
}]),
n
}(l.Component), Pie = Rie, Bie = {
horizontal: Qre,
vertical: tie
}, Fie = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
index: 0
},
e._onChange = function(t) {
e.setState({
index: t
})
}
,
e._buildItem = function(t, n, r, i, o) {
var a, l, s, c, u, d, p, h, f, b, g, m, v, y, x, O, j, k, w, C, _, M, S, A, T, E, I, N, z, D, L, R, P, B, F, V, W, q, H, U, X, G, K, Y, Q, J, Z, $, ee, te, ne, re, ie, oe, ae, le, se, ce, ue, de, pe, he, fe, be, ge, me, ve, ye, xe, Oe = e.props.widget.fields, je = null !== (a = null == Oe || null === (l = Oe.template) || void 0 === l ? void 0 : l.template) && void 0 !== a ? a : "default", ke = null === (s = null == Oe ? void 0 : Oe.enableImage) || void 0 === s || s, we = null === (c = null == Oe ? void 0 : Oe.enableItems) || void 0 === c || c;
switch (je) {
case "card":
return Object(Ip.jsx)(xie, {
category: t,
isImage: ke,
isCountItem: we,
background: null == Oe || null === (u = Oe.template) || void 0 === u || null === (d = u.data) || void 0 === d ? void 0 : d.background,
fontSize: Number(null !== (p = null == Oe || null === (h = Oe.template) || void 0 === h || null === (f = h.data) || void 0 === f ? void 0 : f.sizeName) && void 0 !== p ? p : "16"),
isShadow: null == Oe || null === (b = Oe.template) || void 0 === b || null === (g = b.data) || void 0 === g ? void 0 : g.enableShadow,
isBorder: null == Oe || null === (m = Oe.template) || void 0 === m || null === (v = m.data) || void 0 === v ? void 0 : v.enableBorder,
borderColor: null == Oe || null === (y = Oe.template) || void 0 === y || null === (x = y.data) || void 0 === x ? void 0 : x.borderColor,
height: r,
isChangeName: i,
textChangeName: o
});
case "overlay":
return Object(Ip.jsx)(wie, {
category: t,
width: n,
background: null == Oe || null === (O = Oe.template) || void 0 === O || null === (j = O.data) || void 0 === j ? void 0 : j.background,
opacity: Number(null !== (k = null == Oe || null === (w = Oe.template) || void 0 === w || null === (C = w.data) || void 0 === C ? void 0 : C.opacity) && void 0 !== k ? k : "0.6"),
textColor: null == Oe || null === (_ = Oe.template) || void 0 === _ || null === (M = _.data) || void 0 === M ? void 0 : M.nameColor,
textSize: Number(null !== (S = null == Oe || null === (A = Oe.template) || void 0 === A || null === (T = A.data) || void 0 === T ? void 0 : T.sizeName) && void 0 !== S ? S : "16"),
height: r,
isChangeName: i,
textChangeName: o
});
case "contained":
return Object(Ip.jsx)(Sie, {
category: t,
width: n,
height: r,
isImage: ke,
fontSize: Number(null !== (E = null == Oe || null === (I = Oe.template) || void 0 === I || null === (N = I.data) || void 0 === N ? void 0 : N.sizeName) && void 0 !== E ? E : "12"),
isBorderImage: null == Oe || null === (z = Oe.template) || void 0 === z || null === (D = z.data) || void 0 === D ? void 0 : D.enableBorderImage,
isRoundImage: null == Oe || null === (L = Oe.template) || void 0 === L || null === (R = L.data) || void 0 === R ? void 0 : R.enableRoundImage,
isChangeName: i,
textChangeName: o
});
case "grid":
return Object(Ip.jsx)(zie, {
category: t,
height: r,
background: null !== (P = null == Oe || null === (B = Oe.template) || void 0 === B || null === (F = B.data) || void 0 === F ? void 0 : F.background) && void 0 !== P ? P : "#fff",
enableChildren: null == Oe || null === (V = Oe.template) || void 0 === V || null === (W = V.data) || void 0 === W ? void 0 : W.enableChildren,
sizeName: Number(null !== (q = null == Oe || null === (H = Oe.template) || void 0 === H || null === (U = H.data) || void 0 === U ? void 0 : U.sizeName) && void 0 !== q ? q : "16"),
sizeNameChildren: Number(null !== (X = null == Oe || null === (G = Oe.template) || void 0 === G || null === (K = G.data) || void 0 === K ? void 0 : K.sizeNameChildren) && void 0 !== X ? X : "12"),
maxCountChildren: Number(null !== (Y = null == Oe || null === (Q = Oe.template) || void 0 === Q || null === (J = Q.data) || void 0 === J ? void 0 : J.maxCountChildren) && void 0 !== Y ? Y : "6"),
columnGrid: Number(null !== (Z = null == Oe || null === ($ = Oe.template) || void 0 === $ || null === (ee = $.data) || void 0 === ee ? void 0 : ee.columnGrid) && void 0 !== Z ? Z : "3"),
isChangeName: i,
textChangeName: o
});
case "basic":
return Object(Ip.jsx)(Pie, {
category: t,
fontSize: Number(null !== (te = null == Oe || null === (ne = Oe.template) || void 0 === ne || null === (re = ne.data) || void 0 === re ? void 0 : re.sizeName) && void 0 !== te ? te : "14"),
isIcon: null === (ie = null == Oe || null === (oe = Oe.template) || void 0 === oe || null === (ae = oe.data) || void 0 === ae ? void 0 : ae.enableIcon) || void 0 === ie || ie,
isBorder: null === (le = null == Oe || null === (se = Oe.template) || void 0 === se || null === (ce = se.data) || void 0 === ce ? void 0 : ce.enableBorder) || void 0 === le || le,
height: r,
isChangeName: i,
textChangeName: o
});
default:
return Object(Ip.jsx)(hie, {
category: t,
isImage: ke,
isCountItem: we,
background: null == Oe || null === (ue = Oe.template) || void 0 === ue || null === (de = ue.data) || void 0 === de ? void 0 : de.background,
fontSize: Number(null !== (pe = null == Oe || null === (he = Oe.template) || void 0 === he || null === (fe = he.data) || void 0 === fe ? void 0 : fe.sizeName) && void 0 !== pe ? pe : "16"),
isShadow: null == Oe || null === (be = Oe.template) || void 0 === be || null === (ge = be.data) || void 0 === ge ? void 0 : ge.enableShadow,
isBorder: null == Oe || null === (me = Oe.template) || void 0 === me || null === (ve = me.data) || void 0 === ve ? void 0 : ve.enableBorder,
borderColor: null == Oe || null === (ye = Oe.template) || void 0 === ye || null === (xe = ye.data) || void 0 === xe ? void 0 : xe.borderColor,
height: r,
isChangeName: i,
textChangeName: o
})
}
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this, n = this.props, r = n.widget, i = r.fields, o = r.layout, a = r.styles, l = n.categories, s = n.translate, c = n.language, u = Cu()(i, ["includeCategory"], []).map((function(e) {
return parseInt(e.key)
}
)), d = Cu()(i, ["excludeCategory"], []).map((function(e) {
return parseInt(e.key)
}
)), p = RK(LK(l, u), d), h = null !== (e = Bie[o]) && void 0 !== e ? e : Bie.horizontal, f = Cu()(i, ["styleView"], "list"), b = parseInt(Cu()(i, ["columnGrid"], 2)), g = parseFloat(Cu()(i, ["childAspectRatio"], 1)), m = parseInt(Cu()(i, ["padItem"], 0)), v = Cu()(i, ["positionShowAll"], "start"), y = Cu()(i, ["enableShowAll"], !0), x = Cu()(i, ["enableChangeNameShowAll"], !0), O = s ? Cu()(i, ["textShowAll", c], "") : Cu()(i, ["textShowAll", "text"], ""), j = p[this.state.index];
if ("default" === o)
return Object(Ip.jsxs)(Jq, {
margin: null == a ? void 0 : a.margin,
padding: null == a ? void 0 : a.padding,
children: [Object(Ip.jsx)(aie, {}), Object(Ip.jsx)(sie, {}), Object(Ip.jsx)(nie, {
categories: l,
view: f,
buildItem: function(e, n, r) {
return Object(Ip.jsx)("div", {
style: {
height: r
},
children: t._buildItem(e, n, r, !1, O)
})
},
columnGrid: b,
childAspectRatio: g,
layout: o,
pad: m
})]
});
if (j) {
var k = j.categories;
return y && ("start" === v && (k = fs()([j], k)),
"end" === v && (k = fs()(k, j))),
Object(Ip.jsxs)(Jq, {
margin: null == a ? void 0 : a.margin,
padding: null == a ? void 0 : a.padding,
children: [Object(Ip.jsx)(aie, {}), Object(Ip.jsx)(sie, {}), Object(Ip.jsx)(h, {
categories: p,
onChange: this._onChange,
active: this.state.index,
background: a.backgroundItems,
children: Object(Ip.jsx)(nie, {
categories: k,
view: f,
buildItem: function(e, n, r) {
return Object(Ip.jsx)("div", {
style: {
height: r
},
children: t._buildItem(e, n, r, x && e.id === j.id, O)
})
},
columnGrid: b,
childAspectRatio: g,
layout: o,
pad: m
})
})]
})
}
return Object(Ip.jsxs)(Jq, {
margin: null == a ? void 0 : a.margin,
padding: null == a ? void 0 : a.padding,
children: [Object(Ip.jsx)(aie, {}), Object(Ip.jsx)(sie, {})]
})
}
}]),
n
}(l.Component), Vie = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
categories: Jc(e)
}
}
))(Fie), Wie = Mu.b.div(ene || (ene = _u(["\n background: #7E82A4;\n height: 26px;\n"]))), qie = Mu.b.div(tne || (tne = _u(["\n background: #7E82A4;\n height: 5px;\n border-radius: 4px;\n"]))), Hie = Mu.b.div(nne || (nne = _u(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n position: relative;\n width: 100%;\n height: 100%;\n opacity: 0.3;\n"]))), Uie = Mu.b.svg(rne || (rne = _u(["\n & * {\n fill: #7E82A4;\n }\n"]))), Xie = Mu.b.div(ine || (ine = _u(["\n background: #7E82A4;\n height: 5px;\n border-radius: 4px;\n"]))), Gie = Mu.b.div(one || (one = _u(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n position: relative;\n width: 100%;\n height: 100%;\n opacity: 0.3;\n"]))), Kie = Mu.b.svg(ane || (ane = _u(["\n & * {\n fill: #7E82A4;\n }\n"]))), Yie = Mu.b.div(lne || (lne = _u(["\n background: #7E82A4;\n height: 5px;\n border-radius: 4px;\n"]))), Qie = Mu.b.div(sne || (sne = _u(["\n display: flex;\n flex-direction: column;\n align-items: stretch;\n justify-content: space-between;\n position: relative;\n width: 100%;\n height: 100%;\n opacity: 0.3;\n"]))), Jie = Mu.b.div(cne || (cne = _u(["\n background: #7E82A4;\n height: 26px;\n"]))), Zie = Mu.b.div(une || (une = _u(["\n display: flex;\n gap: 4px;\n margin: 7px;\n overflow: hidden;\n"]))), $ie = Mu.b.div(dne || (dne = _u(["\n height: 2px;\n background: #7E82A4;\n"]))), eoe = Mu.b.div(pne || (pne = _u(["\n min-width: 20px;\n height: 20px;\n background: #7E82A4;\n"]))), toe = Mu.b.div(hne || (hne = _u(["\n position: relative;\n width: 100%;\n height: 100%;\n opacity: 0.3;\n overflow: hidden;\n"]))), noe = {
style1: function() {
return Object(Ip.jsxs)(Hie, {
children: [Object(Ip.jsx)(Wie, {}), Object(Ip.jsx)(qie, {}), Object(Ip.jsx)(qie, {}), Object(Ip.jsx)(qie, {})]
})
},
style2: function() {
return Object(Ip.jsxs)(Gie, {
children: [Object(Ip.jsx)(Uie, {
height: "26",
width: "88",
children: Object(Ip.jsx)("path", {
d: "M0 0 L 0 26 Q0 16 10 16 L 78 16 Q88 16 88 26 L 88 0 Z"
})
}), Object(Ip.jsx)(Xie, {}), Object(Ip.jsx)(Xie, {}), Object(Ip.jsx)(Xie, {})]
})
},
style3: function() {
return Object(Ip.jsxs)(Qie, {
children: [Object(Ip.jsxs)(Kie, {
height: "26",
width: "100%",
children: [Object(Ip.jsx)("rect", {
width: "100%",
height: "18"
}), Object(Ip.jsx)("ellipse", {
cx: "50%",
cy: "18",
rx: "50%",
ry: "8"
})]
}), Object(Ip.jsx)(Yie, {}), Object(Ip.jsx)(Yie, {}), Object(Ip.jsx)(Yie, {})]
})
},
style4: function() {
return Object(Ip.jsxs)(toe, {
children: [Object(Ip.jsx)(Jie, {}), Object(Ip.jsxs)(Zie, {
children: [Object(Ip.jsx)(eoe, {}), Object(Ip.jsx)(eoe, {}), Object(Ip.jsx)(eoe, {})]
}), Object(Ip.jsx)($ie, {})]
})
}
}, roe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props.widget.styles;
return Object(Ip.jsx)(Jq, {
margin: null == e ? void 0 : e.margin,
padding: null == e ? void 0 : e.padding,
children: Object(Ip.jsx)("div", {
children: "Profile"
})
})
}
}]),
n
}(l.Component), ioe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(roe), ooe = n.p + "static/media/map.79cf53d4.jpg", aoe = Mu.b.div(fne || (fne = _u(["\n padding: 20px 0 20px 20px;\n position: absolute;\n bottom: 0;\n left: 0;\n background: linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.2) 98.77%\n );\n right: 0;\n display: flex;\n"]))), loe = Mu.b.div(bne || (bne = _u(["\n background: #fff;\n padding: 24px;\n border-radius: 8px;\n text-align: left;\n display: inline-flex;\n margin-right: 16px;\n min-width: 65%;\n flex-direction: column;\n"]))), soe = Mu.b.div(gne || (gne = _u(["\n font-weight: 500;\n font-size: 22px;\n margin-bottom: 24px;\n display: flex;\n"]))), coe = dr({
fontSize: 14,
height: 34,
width: 34,
border: "1px solid #0686F8",
borderRadius: 8,
textAlign: "center",
lineHeight: 34,
color: "#0686F8",
flex: "0 0 34px",
marginLeft: "auto"
}), uoe = Mu.b.div(mne || (mne = _u(["\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background: #0686f8;\n color: #fff;\n top: -48px;\n right: 20px;\n line-height: 48px;\n"]))), doe = Mu.b.div(vne || (vne = _u(["\n margin-bottom: 4px;\n line-height: 24px;\n &:last-child {\n margin-bottom: 0;\n }\n svg {\n color: #9fadc0;\n margin-bottom: -3px;\n }\n"]))), poe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderCustomize = function(t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f = e.props, b = f.enableDirectMap, g = f.translate, m = f.language;
if (!t)
return null;
var v = t.data;
return Object(Ip.jsxs)(loe, {
children: [Object(Ip.jsxs)(soe, {
children: [Object(Ip.jsx)("span", {
children: g ? null == v || null === (r = v.titleHeading) || void 0 === r ? void 0 : r[m] : null == v || null === (i = v.titleHeading) || void 0 === i ? void 0 : i.text
}), b && Object(Ip.jsx)(lp, {
iconName: "TurnRight",
className: coe
})]
}), Object(Ip.jsxs)(doe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (o = null == v ? void 0 : v.iconPhone) && void 0 !== o ? o : {
type: "feather",
name: "phone"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), g ? null == v || null === (a = v.titlePhone) || void 0 === a ? void 0 : a[m] : null == v || null === (l = v.titlePhone) || void 0 === l ? void 0 : l.text]
}), Object(Ip.jsxs)(doe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (s = null == v ? void 0 : v.iconMail) && void 0 !== s ? s : {
type: "feather",
name: "mail"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), g ? null == v || null === (c = v.titleEmail) || void 0 === c ? void 0 : c[m] : null == v || null === (u = v.titleEmail) || void 0 === u ? void 0 : u.text]
}), Object(Ip.jsxs)(doe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (d = null == v ? void 0 : v.iconAddress) && void 0 !== d ? d : {
type: "feather",
name: "map-pin"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), g ? null == v || null === (p = v.titleAddress) || void 0 === p ? void 0 : p[m] : null == v || null === (h = v.titleAddress) || void 0 === h ? void 0 : h.text]
})]
}, n)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.items
, r = t.enableFeedback;
return Object(Ip.jsxs)(aoe, {
children: [r && Object(Ip.jsx)(uoe, {
children: Object(Ip.jsx)(lp, {
iconName: "Mail"
})
}), n.map((function(t, n) {
return e._renderCustomize(t, n)
}
))]
})
}
}]),
n
}(l.Component), hoe = poe, foe = Mu.b.div(yne || (yne = _u(['\n padding: 24px 0px 0px 0px;\n position: absolute;\n bottom: 0;\n left: 0;\n background: white;\n right: 0;\n height: 50%;\n &:before {\n content: "";\n width: 59px;\n height: 4px;\n background: #f4f4f4;\n border-radius: 5px;\n top: 8px;\n left: 50%;\n transform: translateX(-50%);\n position: absolute;\n }\n']))), boe = Mu.b.div(xne || (xne = _u(["\n background: #fff;\n border-radius: 8px;\n text-align: left;\n display: inline-flex;\n flex-direction: column;\n margin-bottom: 40px;\n padding: 0 20px;\n"]))), goe = Mu.b.div(One || (One = _u(["\n font-weight: 500;\n font-size: 22px;\n margin-bottom: 16px;\n display: flex;\n"]))), moe = dr({
fontSize: 14,
height: 34,
width: 34,
border: "1px solid #0686F8",
borderRadius: 8,
textAlign: "center",
lineHeight: 34,
color: "#0686F8",
flex: "0 0 34px",
marginLeft: "auto"
}), voe = Mu.b.div(jne || (jne = _u(["\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background: #0686f8;\n color: #fff;\n top: -64px;\n right: 20px;\n line-height: 48px;\n"]))), yoe = Mu.b.div(kne || (kne = _u(["\n border: 1px solid #ddd;\n padding: 16px;\n border-radius: 8px;\n"]))), xoe = Mu.b.div(wne || (wne = _u(["\n margin-bottom: 4px;\n line-height: 24px;\n &:last-child {\n margin-bottom: 0;\n }\n svg {\n color: #9fadc0;\n margin-bottom: -3px;\n }\n"]))), Ooe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderCustomize = function(t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f = e.props, b = f.enableDirectMap, g = f.translate, m = f.language;
if (!t)
return null;
var v = t.data;
return Object(Ip.jsxs)(boe, {
children: [Object(Ip.jsxs)(goe, {
children: [Object(Ip.jsx)("span", {
children: g ? null == v || null === (r = v.titleHeading) || void 0 === r ? void 0 : r[m] : null == v || null === (i = v.titleHeading) || void 0 === i ? void 0 : i.text
}), b && Object(Ip.jsx)(lp, {
iconName: "TurnRight",
className: moe
})]
}), Object(Ip.jsxs)(yoe, {
children: [Object(Ip.jsxs)(xoe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (o = null == v ? void 0 : v.iconPhone) && void 0 !== o ? o : {
type: "feather",
name: "phone"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), g ? null == v || null === (a = v.titlePhone) || void 0 === a ? void 0 : a[m] : null == v || null === (l = v.titlePhone) || void 0 === l ? void 0 : l.text]
}), Object(Ip.jsxs)(xoe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (s = null == v ? void 0 : v.iconMail) && void 0 !== s ? s : {
type: "feather",
name: "mail"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), g ? null == v || null === (c = v.titleEmail) || void 0 === c ? void 0 : c[m] : null == v || null === (u = v.titleEmail) || void 0 === u ? void 0 : u.text]
}), Object(Ip.jsxs)(xoe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (d = null == v ? void 0 : v.iconAddress) && void 0 !== d ? d : {
type: "feather",
name: "map-pin"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), g ? null == v || null === (p = v.titleAddress) || void 0 === p ? void 0 : p[m] : null == v || null === (h = v.titleAddress) || void 0 === h ? void 0 : h.text]
})]
})]
}, n)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.items
, r = t.enableFeedback;
return Object(Ip.jsxs)(foe, {
children: [r && Object(Ip.jsx)(voe, {
children: Object(Ip.jsx)(lp, {
iconName: "Mail"
})
}), Object(Ip.jsx)(cA, {
style: {
height: 300
},
children: n.map((function(t, n) {
return e._renderCustomize(t, n)
}
))
})]
})
}
}]),
n
}(l.Component), joe = Ooe, koe = Mu.b.div(Cne || (Cne = _u(["\n height: 668px;\n position: relative;\n overflow: hidden;\n"]))), woe = Mu.b.div(_ne || (_ne = _u(["\n text-align: center;\n font-weight: 500;\n font-size: 16px;\n color: black;\n padding: 24px 0;\n background-color: #fff;\n"]))), Coe = Mu.b.div(Mne || (Mne = _u(["\n height: 197px;\n margin-bottom: 40px;\n img {\n object-fit: cover;\n width: 100%;\n height: 100%;\n }\n"]))), _oe = Mu.b.div(Sne || (Sne = _u(["\n font-weight: 500;\n font-size: 22px;\n margin-bottom: 16px;\n display: flex;\n"]))), Moe = Mu.b.div(Ane || (Ane = _u(["\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 50%;\n background: #0686f8;\n color: #fff;\n bottom: 32px;\n right: 20px;\n line-height: 48px;\n"]))), Soe = Mu.b.div(Tne || (Tne = _u(["\n border: 1px solid #ddd;\n padding: 16px;\n border-radius: 8px;\n text-align: start;\n box-shadow: 0px 5px 2px rgba(0, 0, 0, 0.08)\n"]))), Aoe = Mu.b.div(Ene || (Ene = _u(["\n margin-bottom: 4px;\n line-height: 24px;\n &:last-child {\n margin-bottom: 0;\n }\n svg {\n color: #9fadc0;\n margin-bottom: -3px;\n }\n"]))), Toe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderCustomize = function(t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f = e.props, b = f.translate, g = f.language;
if (!t)
return null;
var m = t.data;
return Object(Ip.jsxs)(Soe, {
children: [Object(Ip.jsx)(_oe, {
children: Object(Ip.jsx)("span", {
children: b ? null == m || null === (r = m.titleHeading) || void 0 === r ? void 0 : r[g] : null == m || null === (i = m.titleHeading) || void 0 === i ? void 0 : i.text
})
}), Object(Ip.jsxs)(Aoe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (o = null == m ? void 0 : m.iconPhone) && void 0 !== o ? o : {
type: "feather",
name: "phone"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), b ? null == m || null === (a = m.titlePhone) || void 0 === a ? void 0 : a[g] : null == m || null === (l = m.titlePhone) || void 0 === l ? void 0 : l.text]
}), Object(Ip.jsxs)(Aoe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (s = null == m ? void 0 : m.iconMail) && void 0 !== s ? s : {
type: "feather",
name: "mail"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), b ? null == m || null === (c = m.titleEmail) || void 0 === c ? void 0 : c[g] : null == m || null === (u = m.titleEmail) || void 0 === u ? void 0 : u.text]
}), Object(Ip.jsxs)(Aoe, {
children: [Object(Ip.jsx)(YX, {
icon: null !== (d = null == m ? void 0 : m.iconAddress) && void 0 !== d ? d : {
type: "feather",
name: "map-pin"
},
width: 16,
height: 16,
style: {
marginRight: 16,
fontSize: 16
}
}), b ? null == m || null === (p = m.titleAddress) || void 0 === p ? void 0 : p[g] : null == m || null === (h = m.titleAddress) || void 0 === h ? void 0 : h.text]
})]
}, n)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.items
, r = t.enableFeedback
, i = t.image;
return Object(Ip.jsxs)(koe, {
children: [r && Object(Ip.jsx)(Moe, {
children: Object(Ip.jsx)(lp, {
iconName: "Mail"
})
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(woe, {
children: "Contact"
}), Object(Ip.jsx)(cA, {
style: {
height: "100%"
},
children: Object(Ip.jsxs)("div", {
style: {
padding: "0px 20px 25px 20px"
},
children: [Object(Ip.jsx)(Coe, {
children: Object(Ip.jsx)("img", {
src: null != i ? i : "",
alt: i
})
}), n.map((function(t, n) {
return e._renderCustomize(t, n)
}
))]
})
})]
})]
})
}
}]),
n
}(l.Component), Eoe = Toe, Ioe = Mu.b.div(Ine || (Ine = _u(["\n height: 668px;\n position: relative;\n background-image: url(", ");\n background-size: cover;\n overflow: hidden;\n"])), (function(e) {
return e.bg
}
)), Noe = Mu.b.div(Nne || (Nne = _u(["\n text-align: center;\n font-weight: 500;\n font-size: 16px;\n color: black;\n padding: 24px 0;\n background-color: #fff;\n"]))), zoe = Mu.b.div(zne || (zne = _u(["\n position: absolute;\n top: ", ";\n left: 50%;\n transform: translate(-50%, -50%);\n"])), (function(e) {
return e.top
}
)), Doe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.layout
, i = e.language
, o = e.translate;
if ("default" === r) {
var a = Cu()(n, ["image", o ? i : "src"], Zp.NoImage);
return Object(Ip.jsx)(Eoe, {
items: null == n ? void 0 : n.itemsCustomize,
language: i,
translate: o,
enableFeedback: null == n ? void 0 : n.enableFeedback,
image: a
})
}
return Object(Ip.jsxs)(Ioe, {
bg: ooe,
children: [Object(Ip.jsx)(Noe, {
children: "Contact us"
}), (null == n ? void 0 : n.enablePinMap) && Object(Ip.jsx)(zoe, {
top: "horizontal" === r ? "50%" : "30%",
children: Object(Ip.jsxs)("svg", {
width: "50",
height: "50",
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: [Object(Ip.jsxs)("g", {
clipPath: "url(#clip0)",
fill: "#F30000",
children: [Object(Ip.jsx)("path", {
d: "M25 35.323c7.35 0 13.307-5.958 13.307-13.307 0-7.35-5.958-13.308-13.307-13.308-7.35 0-13.307 5.958-13.307 13.308 0 7.349 5.958 13.307 13.307 13.307z"
}), Object(Ip.jsx)("path", {
d: "M40.637 6.477A21.969 21.969 0 0025 0C19.093 0 13.54 2.3 9.364 6.477a21.97 21.97 0 00-6.477 15.636c0 10.421 7.285 19.418 17.405 21.61L25 50l4.708-6.277c10.12-2.192 17.406-11.189 17.406-21.61 0-5.906-2.3-11.46-6.477-15.636zM25 5.773c8.956 0 16.243 7.287 16.243 16.243S33.956 38.258 25 38.258 8.757 30.972 8.757 22.016C8.757 13.06 16.044 5.773 25 5.773z"
})]
}), Object(Ip.jsx)("defs", {
children: Object(Ip.jsx)("clipPath", {
id: "clip0",
children: Object(Ip.jsx)("path", {
fill: "#fff",
d: "M0 0h50v50H0z"
})
})
})]
})
}), "horizontal" === r ? Object(Ip.jsx)(hoe, {
items: null == n ? void 0 : n.itemsCustomize,
enableDirectMap: null == n ? void 0 : n.enableDirectMap,
language: i,
translate: o,
enableFeedback: null == n ? void 0 : n.enableFeedback
}) : Object(Ip.jsx)(joe, {
items: null == n ? void 0 : n.itemsCustomize,
enableDirectMap: null == n ? void 0 : n.enableDirectMap,
language: i,
translate: o,
enableFeedback: null == n ? void 0 : n.enableFeedback
})]
})
}
}]),
n
}(l.Component), Loe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(Doe), Roe = Mu.b.div(Dne || (Dne = _u(["\n text-align: left;\n"]))), Poe = Mu.b.div(Lne || (Lne = _u(["\n margin: 48px 20px;\n"]))), Boe = Mu.b.span(Rne || (Rne = _u(["\n margin-bottom: 8px;\n display: block;\n color: ", ";\n font-size: ", "px;\n font-weight: 500;\n"])), (function(e) {
return e.color
}
), (function(e) {
var t;
return null !== (t = e.size) && void 0 !== t ? t : 28
}
)), Foe = Mu.b.span(Pne || (Pne = _u(["\n display: block;\n color: ", ";\n font-size: ", "px;\n"])), (function(e) {
return e.color
}
), (function(e) {
var t;
return null !== (t = e.size) && void 0 !== t ? t : 28
}
)), Voe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.translate
, r = e.language
, i = e.titleColor
, o = e.subtitleColor
, a = e.titleSize
, l = e.subtitleSize
, s = n ? Cu()(t, "image.".concat(r), "") : Cu()(t, "image.src", "")
, c = n ? Cu()(t, "title.".concat(r), "") : Cu()(t, "title.text", "")
, u = n ? Cu()(t, "subTitle.".concat(r), "") : Cu()(t, "subTitle.text", "");
return Object(Ip.jsxs)(Roe, {
children: [Object(Ip.jsx)(Lg, {
src: "" !== s ? s : Gw.noImage,
width: "100%"
}), Object(Ip.jsxs)(Poe, {
children: ["" !== c && Object(Ip.jsx)(Boe, {
size: a,
color: i,
children: c
}), Object(Ip.jsx)(Foe, {
size: l,
color: o,
children: u
})]
})]
})
}
}]),
n
}(l.Component), Woe = Voe, qoe = Mu.b.div(Bne || (Bne = _u(["\n text-align: left;\n width: 100%;\n height: 100%;\n position: relative;\n"]))), Hoe = Mu.b.span(Fne || (Fne = _u(["\n display: block;\n color: ", ";\n font-size: ", "px;\n font-weight: 500;\n"])), (function(e) {
return e.color
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.size) && void 0 !== t ? t : 28
}
)), Uoe = Mu.b.span(Vne || (Vne = _u(["\n display: block;\n color: ", ";\n font-size: ", "px;\n"])), (function(e) {
return e.color
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.size) && void 0 !== t ? t : 14
}
)), Xoe = Mu.b.div(Wne || (Wne = _u(["\n width: 50px;\n height: 2px;\n background-color: ", ";\n margin: 16px 0px;\n"])), (function(e) {
return e.background
}
)), Goe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.item, r = t.titleColor, i = t.subtitleColor, o = t.titleSize, a = t.subtitleSize, l = t.opacity, s = t.gradientFrom, c = t.gradientTo, u = t.dividerColor, d = t.translate, p = t.language, h = d ? Cu()(n, "image.".concat(p), "") : Cu()(n, "image.src", ""), f = d ? Cu()(n, "title.".concat(p), "") : Cu()(n, "title.text", ""), b = d ? Cu()(n, "subTitle.".concat(p), "") : Cu()(n, "subTitle.text", "");
return Object(Ip.jsxs)(qoe, {
children: [Object(Ip.jsx)(Lg, {
src: "" !== h ? h : Gw.noImage,
width: "100%",
height: "100%",
imageFit: kg.cover
}), Object(Ip.jsx)("div", {
style: {
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
background: "linear-gradient(180deg, ".concat(null != s ? s : "transparent", " 0%, ").concat(null != c ? c : "#210B01", " 100%)"),
opacity: null != l ? l : .9
}
}), Object(Ip.jsxs)("div", {
style: {
position: "absolute",
left: 20,
right: 20,
bottom: 160
},
children: ["" !== f && Object(Ip.jsx)(Hoe, {
size: o,
color: r,
children: null == n || null === (e = n.title) || void 0 === e ? void 0 : e.text
}), Object(Ip.jsx)(Xoe, {
background: u
}), Object(Ip.jsx)(Uoe, {
size: a,
color: i,
children: b
})]
})]
})
}
}]),
n
}(l.Component), Koe = Goe, Yoe = Mu.b.div(qne || (qne = _u(["\n height: 668px;\n width: 100%;\n background-color: ", ";\n position: relative;\n text-align: left;\n"])), (function(e) {
return e.backgound
}
)), Qoe = Mu.b.div(Hne || (Hne = _u(["\n position: absolute;\n height: 144px;\n bottom: 0px;\n left: 20px;\n right: 20px;\n display: flex;\n align-items: center;\n"]))), Joe = Mu.b.div(Une || (Une = _u(["\n flex: 1;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n margin: 0px -4px;\n"]))), Zoe = Mu.b.span(Xne || (Xne = _u(["\n display: block;\n font-size: 12px;\n padding: 0px 24px;\n"]))), $oe = Mu.b.div(Gne || (Gne = _u(["\n display: block;\n font-size: 14px;\n color: #fff;\n padding: 16px 24px;\n border-radius: 8px;\n background-color: #0686f8;\n display: flex;\n align-items: flex-end;\n"]))), eae = Mu.b.div(Kne || (Kne = _u(["\n width: ", "px;\n height: ", "px;\n border-radius: 50%;\n background-color: ", ";\n margin: 0px 4px;\n"])), (function(e) {
var t;
return null !== (t = e.size) && void 0 !== t ? t : 6
}
), (function(e) {
var t;
return null !== (t = e.size) && void 0 !== t ? t : 6
}
), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.color) && void 0 !== t ? t : "#dee2e6"
}
)), tae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(e, t, n, r, i, o) {
var a = rH(Cu()(n, ["titleColor", o], ec.black))
, l = rH(Cu()(n, ["subtitleColor", o], ec.secondaryText))
, s = Number(Cu()(n, ["titleSize"], 28))
, c = Number(Cu()(n, ["subtitleSize"], 14))
, u = Cu()(e, "data", {});
if ("overlay" === t) {
var d = Number(Cu()(n, ["opacity"], .9))
, p = rH(Cu()(n, ["gradientFrom", o], ec.transparent))
, h = rH(Cu()(n, ["gradientTo", o], {
r: 33,
g: 11,
b: 1,
a: 1
}))
, f = rH(Cu()(n, ["dividerColor", o], {
r: 255,
g: 255,
b: 255,
a: .2
}));
return Object(Ip.jsx)(Koe, {
item: u,
language: i,
translate: r,
titleSize: s,
titleColor: a,
subtitleSize: c,
subtitleColor: l,
opacity: d,
gradientFrom: p,
gradientTo: h,
dividerColor: f
})
}
return Object(Ip.jsx)(Woe, {
item: u,
language: i,
translate: r,
titleSize: s,
titleColor: a,
subtitleSize: c,
subtitleColor: l
})
}
,
e._renderPagination = function(e, t, n, r, i) {
var o = Array(e).fill(2);
return t ? o.map((function(e, t) {
var o = n === t ? 10 : 6
, a = n === t ? i : r;
return Object(Ip.jsx)(eae, {
size: o,
color: a
}, t)
}
)) : null
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.widget, i = r.styles, o = r.fields, a = r.layout, l = n.language, s = n.translate, c = n.darkModeKey, u = rH(Cu()(i, ["backgroundItem", c], ec.white)), d = rH(Cu()(i, ["indicatorColor", c], ec.borderLightMode)), p = rH(Cu()(i, ["indicatorActiveColor", c], ec.tertiaryText)), h = rH(Cu()(i, ["skipColor", c], ec.secondaryText)), f = Cu()(o, "enablePagination", !0), b = Cu()(o, ["items"], []), g = b.find((function(e) {
return e.active
}
)) || b[0];
if (null === g)
return Object(Ip.jsx)(Yoe, {
backgound: u
});
var m = b.indexOf(g);
return Object(Ip.jsxs)(Yoe, {
backgound: u,
children: [this._renderItem(g, a, i, s, l, c), Object(Ip.jsxs)(Qoe, {
children: [Object(Ip.jsx)(Joe, {
children: this._renderPagination(null !== (e = null == o || null === (t = o.items) || void 0 === t ? void 0 : t.length) && void 0 !== e ? e : 1, f, m, d, p)
}), Object(Ip.jsx)(Zoe, {
style: {
color: h
},
children: "Skip"
}), Object(Ip.jsxs)($oe, {
children: [Object(Ip.jsx)("span", {
children: m === b.length - 1 ? "Get Start" : "Next"
}), Object(Ip.jsx)("div", {
style: {
width: 8
}
}), Object(Ip.jsx)(lp, {
iconName: "ChromeBackMirrored"
})]
})]
})]
})
}
}]),
n
}(l.Component), nae = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(tae), rae = function() {
return Object(Ip.jsx)("div", {
style: {
textAlign: "center",
marginTop: "24px"
},
children: 'Preview available only "App mode" feature.'
})
}, iae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), oae = iae, aae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), lae = aae, sae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "Product Detail"
})
}
}]),
n
}(l.Component), cae = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(sae), uae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), dae = uae, pae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), hae = pae, fae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), bae = fae, gae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), mae = gae, vae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), yae = vae, xae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(rae, {})
})
}
}]),
n
}(l.Component), Oae = xae, jae = n(91), kae = n.n(jae), wae = n(215), Cae = n.n(wae), _ae = Mu.b.div(Yne || (Yne = _u(["\n display: flex;\n align-items: center;\n"]))), Mae = Mu.b.div(Qne || (Qne = _u(["\n flex: 1;\n"]))), Sae = Mu.b.div(Jne || (Jne = _u(["\n display: flex;\n flex-direction: column;\n"]))), Aae = Mu.b.div(Zne || (Zne = _u(["\n display: flex;\n align-items: center;\n justify-content: ", ";\n"])), (function(e) {
return e.justifyContent
}
)), Tae = Mu.b.div($ne || ($ne = _u(["\n min-width: 48px;\n span {\n text-align: center;\n display: block;\n padding: 2px 8px;\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n border: 1px solid ", ";\n border-radius: 4px;\n background-color: ", ";\n color: ", ";\n }\n"])), (function(e) {
return e.borderColor
}
), (function(e) {
return e.background
}
), (function(e) {
return e.color
}
)), Eae = Mu.b.div(ere || (ere = _u(["\n font-size: 14px;\n line-height: 21px;\n font-weight: 500;\n min-width: ", "px; \n color: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), (function(e) {
return e.width
}
), (function(e) {
return e.color
}
)), Iae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.styles
, n = e.fields
, r = e.data
, i = e.darkModeKey
, o = Cu()(n, ["alignment"], "left")
, a = "center" === o ? "center" : "right" === o ? "flex-end" : "flex-start"
, l = rH(Cu()(t, ["backgroundTime", i], ec.primaryColor))
, s = rH(Cu()(t, ["borderTime", i], ec.primaryColor))
, c = rH(Cu()(t, ["textColor", i], ec.white))
, u = rH(Cu()(t, ["separatorColor", i], ec.secondaryText))
, d = Number(Cu()(t, ["padTime"], 12))
, p = Cu()(n, ["enableDay"], !0)
, h = Cu()(n, ["enableHour"], !0)
, f = Cu()(n, ["enableMinute"], !0)
, b = Cu()(n, ["enableSecond"], !0)
, g = Cu()(n, ["enableSeparator"], !0)
, m = [];
return p && (m = m.concat("".concat((null == r ? void 0 : r.days) || 0, "d"))),
h && (m = m.concat("".concat((null == r ? void 0 : r.hours) || 0, "h"))),
f && (m = m.concat("".concat((null == r ? void 0 : r.minutes) || 0, "m"))),
b && (m = m.concat("".concat((null == r ? void 0 : r.seconds) || 0, "s"))),
Object(Ip.jsx)(Aae, {
justifyContent: a,
children: m.map((function(e, t) {
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(Tae, {
background: l,
borderColor: s,
color: c,
children: Object(Ip.jsx)("span", {
children: e
})
}), t < m.length - 1 ? Object(Ip.jsx)(Eae, {
width: d,
color: u,
children: g ? ":" : ""
}) : null]
})
}
))
})
}
}]),
n
}(l.Component), Nae = Iae, zae = Object(Mu.b)(pU)(tre || (tre = _u(["\n display: block;\n word-break: break-word;\n text-align: ", ";\n"])), (function(e) {
return e.textAlign
}
)), Dae = {
horizontal: function(e) {
var t = e.renderLabel
, n = e.renderTime
, r = e.pad;
return Object(Ip.jsxs)(_ae, {
children: [Object(Ip.jsx)(Mae, {
style: {
marginRight: null != r ? r : 0
},
children: t
}), Object(Ip.jsx)("div", {
children: n
})]
})
},
vertical: function(e) {
var t = e.renderLabel
, n = e.renderTime
, r = e.pad
, i = e.alignment
, o = "left" === i ? "flex-start" : "right" === i ? "flex-end" : "center"
, a = "left" === i ? "left" : "right" === i ? "right" : "center";
return Object(Ip.jsxs)(Sae, {
style: {
justifyContent: o,
textAlign: a
},
children: [t, Object(Ip.jsx)("div", {
style: {
height: r
}
}), Object(Ip.jsx)("div", {
children: n
})]
})
}
}, Lae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).countDown = null,
e.state = {
days: 0,
hours: 0,
minutes: 0,
seconds: 0
},
e.callDate = function(t) {
var n = t && null != t && t.expireDate && new Date(null == t ? void 0 : t.expireDate) ? new Date(null == t ? void 0 : t.expireDate) : new Date
, r = "YYYY-MM-DD HH:mm:ss"
, i = kae()().utcOffset("+07:00").format(r)
, o = kae()(n).utcOffset("+07:00").format(r)
, a = kae()(o).diff(i, "milliseconds", !0)
, l = kae.a.duration(a);
e.countDown = setInterval((function() {
l.asMilliseconds() > 0 ? (l = kae.a.duration(l.asMilliseconds() - 1e3),
e.setState({
days: Cae()(l.asDays()) ? Cae()(l.asDays()) : 0,
hours: l.hours() ? l.hours() : 0,
minutes: l.minutes() ? l.minutes() : 0,
seconds: l.seconds() ? l.seconds() : 0
})) : clearInterval(e.countDown)
}
), 1e3)
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
var e, t;
this.callDate(null === (e = this.props) || void 0 === e || null === (t = e.widget) || void 0 === t ? void 0 : t.fields)
}
}, {
key: "componentWillUnmount",
value: function() {
this.countDown && clearInterval(this.countDown)
}
}, {
key: "componentDidUpdate",
value: function(e, t) {
var n, r, i, o, a;
mh()(null == e || null === (n = e.widget) || void 0 === n ? void 0 : n.fields, null === (r = this.props) || void 0 === r || null === (i = r.widget) || void 0 === i ? void 0 : i.fields) || (this.countDown && clearInterval(this.countDown),
this.callDate(null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a ? void 0 : a.fields))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.translate
, a = e.language
, l = e.darkModeKey
, s = {
fontSize: 22,
color: {
dark: ec.white,
value: ec.black
},
fontWeight: "500"
}
, c = rH(Cu()(r, ["background", l], ec.transparent))
, u = Number(Cu()(r, ["pad"], "0"))
, d = o ? Cu()(n, ["title", a], "") : Cu()(n, ["title", "text"], "")
, p = Cu()(n, ["title", "style"], s)
, h = (null == n ? void 0 : n.alignment) || "left"
, f = Dae[i] || Dae.horizontal;
return Object(Ip.jsx)(Jq, {
margin: null == r ? void 0 : r.margin,
padding: null == r ? void 0 : r.padding,
style: {
backgroundColor: c
},
children: Object(Ip.jsx)(f, {
renderLabel: Object(Ip.jsx)(zae, {
dataStyle: nH()(s, p),
textAlign: h,
children: d
}),
renderTime: Object(Ip.jsx)(Nae, {
styles: r,
fields: n,
data: this.state,
darkModeKey: l
}),
alignment: h,
pad: u
})
})
}
}]),
n
}(l.Component), Rae = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Lae), Pae = Mu.b.div(nre || (nre = _u(["\n width: 100%;\n border: 0;\n"]))), Bae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.darkModeKey
, o = rH(Cu()(r, ["backgroundColor", i], ec.transparent))
, a = Number(Cu()(n, ["height"], 20));
return Object(Ip.jsx)(Jq, {
padding: null == r ? void 0 : r.padding,
margin: null == r ? void 0 : r.margin,
style: {
backgroundColor: o
},
children: Object(Ip.jsx)(Pae, {
style: {
height: a
}
})
})
}
}]),
n
}(l.Component), Fae = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(Bae), Vae = Mu.b.div(rre || (rre = _u(["\n display: flex;\n align-items: center;\n"]))), Wae = Mu.b.div(ire || (ire = _u(["\n flex: 1;\n"]))), qae = Mu.b.div(ore || (ore = _u(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]))), Hae = Mu.b.div(are || (are = _u(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n"]))), Uae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.iconLeading
, n = e.leading
, r = e.iconTrailing
, i = e.trailing;
return Object(Ip.jsxs)(Vae, {
children: [t && Object(Ip.jsx)(qae, {
style: {
marginRight: 8
},
children: t
}), Object(Ip.jsx)(Wae, {
children: n
}), (i || r) && Object(Ip.jsxs)(Hae, {
children: [i && i, i && r && Object(Ip.jsx)("div", {
style: {
width: 4
}
}), Object(Ip.jsx)(qae, {
children: r
})]
})]
})
}
}]),
n
}(l.Component), Xae = Uae, Gae = Mu.b.div(lre || (lre = _u(["\n display: flex;\n align-items: center;\n"]))), Kae = Mu.b.div(sre || (sre = _u(["\n word-break: break-all;\n"]))), Yae = Mu.b.div(cre || (cre = _u(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"]))), Qae = Mu.b.div(ure || (ure = _u(["\n display: flex;\n align-items: center;\n margin-left: 8px;\n"]))), Jae = Mu.b.div(dre || (dre = _u(["\n flex-grow: 1;\n height: 1px;\n min-width: 80px;\n margin-left: 11px;\n"]))), Zae = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.iconLeading
, n = e.leading
, r = e.iconTrailing
, i = e.trailing
, o = e.colorDivider;
return Object(Ip.jsxs)(Gae, {
children: [t && Object(Ip.jsx)(Yae, {
style: {
marginRight: 8
},
children: t
}), Object(Ip.jsx)(Kae, {
children: n
}), Object(Ip.jsx)(Jae, {
style: {
backgroundColor: o
}
}), (i || r) && Object(Ip.jsxs)(Qae, {
children: [i && i, i && r && Object(Ip.jsx)("div", {
style: {
width: 4
}
}), Object(Ip.jsx)(Yae, {
children: r
})]
})]
})
}
}]),
n
}(l.Component), $ae = Zae, ele = Object(Mu.b)(pU)(pre || (pre = _u(["\n display: block;\n"]))), tle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.styles
, r = t.layout
, i = e.darkModeKey
, o = rH(Cu()(n, ["background", i], ec.transparent))
, a = rH(Cu()(n, ["dividerColor", i], ec.black));
return Object(Ip.jsx)(Jq, {
margin: n.margin,
padding: n.padding,
style: {
backgroundColor: o,
textAlign: "left"
},
children: this._renderLayout(r, a)
})
}
}, {
key: "_renderLayout",
value: function(e, t) {
return "divider" === e ? Object(Ip.jsx)($ae, {
leading: this._renderLeading(),
trailing: this._renderTrailing(),
iconLeading: this._renderIconLeading(),
iconTrailing: this._renderIconTrailing(),
colorDivider: t
}) : Object(Ip.jsx)(Xae, {
leading: this._renderLeading(),
trailing: this._renderTrailing(),
iconLeading: this._renderIconLeading(),
iconTrailing: this._renderIconTrailing()
})
}
}, {
key: "_renderLeading",
value: function() {
var e = this.props
, t = e.widget.fields
, n = e.darkModeKey
, r = e.translate
, i = e.language
, o = r ? Cu()(t, ["title", i], "") : Cu()(t, ["title", "text"], "")
, a = Cu()(t, ["title", "style"], {});
return Object(Ip.jsx)(ele, {
dataStyle: a,
darkModeKey: n,
children: o
})
}
}, {
key: "_renderTrailing",
value: function() {
var e = this.props
, t = e.widget.fields
, n = e.darkModeKey
, r = e.translate
, i = e.language
, o = r ? Cu()(t, ["actionTitle", i], "") : Cu()(t, ["actionTitle", "text"], "")
, a = Cu()(t, ["actionTitle", "style"], {});
return Object(Ip.jsx)(ele, {
dataStyle: a,
darkModeKey: n,
children: o
})
}
}, {
key: "_renderIconLeading",
value: function() {
var e, t, n = this.props, r = n.widget.fields, i = n.darkModeKey, o = null !== (e = null == r ? void 0 : r.enableIcon) && void 0 !== e && e, a = rH(Cu()(r, ["iconColor", i], ec.black));
return o ? Object(Ip.jsx)(YX, {
icon: null !== (t = null == r ? void 0 : r.icon) && void 0 !== t ? t : {
type: "feather",
name: "home"
},
width: 16,
height: 16,
style: {
color: a,
fontSize: 16
}
}) : null
}
}, {
key: "_renderIconTrailing",
value: function() {
var e, t, n = this.props, r = n.widget.fields, i = n.darkModeKey, o = null !== (e = null == r ? void 0 : r.enableIconAction) && void 0 !== e && e, a = rH(Cu()(r, ["actionIconColor", i], ec.secondaryText));
return o ? Object(Ip.jsx)(YX, {
icon: null !== (t = null == r ? void 0 : r.iconAction) && void 0 !== t ? t : {
type: "feather",
name: "chevron-right"
},
width: 16,
height: 16,
style: {
color: a,
fontSize: 16
}
}) : null
}
}]),
n
}(l.Component), nle = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(tle), rle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("span", {
children: "Form"
})
}
}]),
n
}(l.Component), ile = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(rle), ole = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "Video"
})
}
}]),
n
}(l.Component), ale = ole, lle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "Video"
})
}
}]),
n
}(l.Component), sle = lle, cle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = e.widthView
, o = new Array(null != t ? t : 0).fill(0);
return o.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: t < o.length - 1 ? n : 0
},
children: r(t, i, null)
}, t)
}
))
}
}]),
n
}(l.Component), ule = cle, dle = Mu.b.div(hre || (hre = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n // flex-wrap: wrap;\n"]))), ple = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = e.heightView
, o = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)(dle, {
children: o.map((function(e, o) {
return Object(Ip.jsx)("div", {
style: {
marginRight: o < t - 1 ? n : 0
},
children: r(o, null, i)
}, o)
}
))
})
}
}]),
n
}(l.Component), hle = ple, fle = Mu.b.div(fre || (fre = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), ble = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.widthView
, l = o.pad
, s = o.renderItem
, c = ((null != a ? a : 300) - l) / 2
, u = c;
n % 2 === r && (u = .8 * c);
var d = i ? 0 : l;
return Object(Ip.jsxs)("div", {
style: {
width: c
},
children: [s(t, c, u), i ? null : Object(Ip.jsx)("div", {
style: {
height: d
}
})]
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.length, r = t.pad, i = Array.from({
length: null != n ? n : 0
}, (function(e, t) {
return t
}
)), o = [], a = [], l = 0; l < i.length; l++)
l % 2 == 0 ? o = o.concat(l) : a = a.concat(l);
return Object(Ip.jsxs)(fle, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: o.map((function(t, n) {
return e._renderItem(i[t], n, 0, !(n < o.length - 1))
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: a.map((function(t, n) {
return e._renderItem(i[t], n, 1, !(n < a.length - 1))
}
))
})]
})
}
}]),
n
}(l.Component);
ble.defaultProps = {
pad: 0
};
var gle, mle, vle, yle = ble, xle = Mu.b.div(gle || (gle = _u(["\n position: relative;\n height: 100%;\n"]))), Ole = Mu.b.div(mle || (mle = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), jle = Mu.b.div(vle || (vle = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), kle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(jle, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.renderItem
, i = e.heightView
, o = e.indicatorColor
, a = e.indicatorActiveColor
, l = new Array(null != t ? t : 0).fill(0);
return null === (l.length > 0 ? l[0] : null) ? null : Object(Ip.jsxs)(xle, {
children: [r(0, n, null != i ? i : 300), Object(Ip.jsx)(Ole, {
children: this._renderDots(l.length, 0, o, a)
})]
})
}
}]),
n
}(l.Component);
kle.defaultProps = {
pad: 0
};
var wle, Cle = kle, _le = Mu.b.div(wle || (wle = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), Mle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.col
, i = e.ratio
, o = e.widthView
, a = e.renderItem
, l = Array.from({
length: null != t ? t : 0
}, (function(e, t) {
return t
}
))
, s = (o - n * (r - 1)) / r
, c = s / i;
return Object(Ip.jsx)(_le, {
style: {
margin: -n / 2
},
children: l.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
width: s,
margin: n / 2
},
children: a(t, s, c)
}, t)
}
))
})
}
}]),
n
}(l.Component);
Mle.defaultProps = {
pad: 0,
col: 2,
ratio: 1
};
var Sle, Ale = Mle, Tle = Mu.b.div(Sle || (Sle = _u(["\n display: flex;\n flex-direction: column;\n word-break: break-all;\n white-space: break-spaces;\n box-sizing: border-box;\n padding: 24px;\n overflow: hidden;\n"]))), Ele = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.templateData
, n = e.icon
, r = e.width
, i = e.height
, o = e.background
, a = e.borderColor
, l = e.radius
, s = e.shadow
, c = e.translate
, u = e.language
, d = e.darkModeKey
, p = {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
, h = {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
, f = c ? Cu()(t, ["title", u], "") : Cu()(t, ["title", "text"], "")
, b = nH()(p, Cu()(t, ["title", "style"], {}))
, g = c ? Cu()(t, ["description", u], "") : Cu()(t, ["description", "text"], "")
, m = nH()(h, Cu()(t, ["description", "style"], {}))
, v = Cu()(t, "alignment", "left")
, y = "right" === v ? "flex-end" : "center" === v ? "center" : "flex-start";
return Object(Ip.jsxs)(Tle, {
style: {
backgroundColor: o,
border: "1px solid ".concat(a),
borderRadius: l,
boxShadow: s,
textAlign: v,
alignItems: y,
height: null !== i ? i : "auto",
width: r
},
children: [Object(Ip.jsx)("div", {
children: n
}), Object(Ip.jsx)("div", {
style: {
marginTop: 24
},
children: Object(Ip.jsx)(pU, {
dataStyle: b,
darkModeKey: d,
children: f
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(pU, {
dataStyle: m,
darkModeKey: d,
children: g
})
})]
})
}
}]),
n
}(l.Component);
Ele.defaultProps = {
templateData: {},
background: "transparent",
borderColor: "transparent",
radius: 0,
shadow: "none"
};
var Ile, Nle = Ele, zle = Mu.b.div(Ile || (Ile = _u(["\n display: flex;\n word-break: break-all;\n white-space: break-spaces;\n box-sizing: border-box;\n padding: 24px;\n overflow: hidden;\n"]))), Dle = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.templateData
, n = e.icon
, r = e.width
, i = e.height
, o = e.background
, a = e.borderColor
, l = e.radius
, s = e.shadow
, c = e.translate
, u = e.language
, d = e.darkModeKey
, p = {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
, h = {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
, f = c ? Cu()(t, ["title", u], "") : Cu()(t, ["title", "text"], "")
, b = nH()(p, Cu()(t, ["title", "style"], {}))
, g = c ? Cu()(t, ["description", u], "") : Cu()(t, ["description", "text"], "")
, m = nH()(h, Cu()(t, ["description", "style"], {}));
return Object(Ip.jsxs)(zle, {
style: {
backgroundColor: o,
border: "1px solid ".concat(a),
borderRadius: l,
boxShadow: s,
height: null !== i ? i : "auto",
width: r
},
children: [Object(Ip.jsx)("div", {
children: n
}), Object(Ip.jsxs)("div", {
style: {
flexGrow: 1,
marginLeft: 24
},
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(pU, {
dataStyle: b,
darkModeKey: d,
children: f
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(pU, {
dataStyle: m,
darkModeKey: d,
children: g
})
})]
})]
})
}
}]),
n
}(l.Component);
Dle.defaultProps = {
templateData: {},
background: "transparent",
borderColor: "transparent",
radius: 0,
shadow: "none"
};
var Lle, Rle = Dle, Ple = Mu.b.div(Lle || (Lle = _u(["\n display: flex;\n flex-direction: column;\n word-break: break-all;\n white-space: break-spaces;\n box-sizing: border-box;\n padding: 24px;\n overflow: hidden;\n"]))), Ble = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.templateData
, n = e.icon
, r = e.width
, i = e.height
, o = e.background
, a = e.borderColor
, l = e.radius
, s = e.shadow
, c = e.translate
, u = e.language
, d = e.darkModeKey
, p = {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
, h = {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
, f = c ? Cu()(t, ["title", u], "") : Cu()(t, ["title", "text"], "")
, b = nH()(p, Cu()(t, ["title", "style"], {}))
, g = c ? Cu()(t, ["description", u], "") : Cu()(t, ["description", "text"], "")
, m = nH()(h, Cu()(t, ["description", "style"], {}));
return Object(Ip.jsxs)(Ple, {
style: {
backgroundColor: o,
border: "1px solid ".concat(a),
borderRadius: l,
boxShadow: s,
height: null !== i ? i : "auto",
width: r
},
children: [Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsx)("div", {
children: n
}), Object(Ip.jsx)("div", {
style: {
marginLeft: 24
},
children: Object(Ip.jsx)(pU, {
dataStyle: b,
darkModeKey: d,
children: f
})
})]
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(pU, {
dataStyle: m,
darkModeKey: d,
children: g
})
})]
})
}
}]),
n
}(l.Component);
Ble.defaultProps = {
templateData: {},
background: "transparent",
borderColor: "transparent",
radius: 0,
shadow: "none"
};
var Fle, Vle, Wle, qle, Hle, Ule, Xle, Gle, Kle, Yle, Qle = {
list: ule,
carousel: hle,
masonry: yle,
slideshow: Cle,
grid: Ale
}, Jle = {
default: Nle,
contained: Rle,
group: Ble
}, Zle = Mu.b.div(Fle || (Fle = _u(["\n border-radius: 50%;\n border: 1px solid;\n display: flex;\n justify-content: center;\n align-items: center;\n"]))), $le = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderIcon",
value: function(e, t, n, r, i, o, a) {
var l = Object(Ip.jsx)(YX, {
icon: e,
size: n,
style: {
width: n,
height: n,
fontSize: n,
color: i
}
});
return t ? Object(Ip.jsx)(Zle, {
style: {
backgroundColor: o,
borderColor: a,
width: r,
height: r
},
children: l
}) : l
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p, h = this, f = this.props, b = f.widget, g = b.layout, m = b.fields, v = b.styles, y = f.width, x = f.darkModeKey, O = f.translate, j = f.language, k = null !== (e = Qle[g]) && void 0 !== e ? e : Qle.list, w = rH(Cu()(v, ["background", x], ec.transparent)), C = null !== (t = Number(Cu()(v, ["height"], 300))) && void 0 !== t ? t : 300, _ = null !== (n = Number(Cu()(v, ["width"], 300))) && void 0 !== n ? n : 300, M = null !== (r = Number(Cu()(v, ["pad"], 12))) && void 0 !== r ? r : 12, S = rH(Cu()(v, ["indicatorColor", x], ec.borderLightMode)), A = rH(Cu()(v, ["indicatorActiveColor", x], ec.tertiaryText)), T = null !== (i = Number(Cu()(v, ["col"], 2))) && void 0 !== i ? i : 2, E = null !== (o = Number(Cu()(v, ["radius"], 0))) && void 0 !== o ? o : 0, I = rH(Cu()(v, ["backgroundColorItem", x], ec.transparent)), N = rH(Cu()(v, ["borderColor", x], ec.transparent)), z = null !== (a = Number(Cu()(v, ["ratio"], 1))) && void 0 !== a ? a : 1, D = rH(Cu()(v, ["shadowColor", x], ec.transparent)), L = null !== (l = Number(Cu()(v, ["offsetX"], 0))) && void 0 !== l ? l : 0, R = null !== (s = Number(Cu()(v, ["offsetY"], 4))) && void 0 !== s ? s : 4, P = null !== (c = Number(Cu()(v, ["blurRadius"], 24))) && void 0 !== c ? c : 24, B = null !== (u = Number(Cu()(v, ["spreadRadius"], 0))) && void 0 !== u ? u : 0, F = Cu()(v, "enableBoxIcon", !1), V = null !== (d = Number(Cu()(v, ["sizeIcon"], 36))) && void 0 !== d ? d : 36, W = null !== (p = Number(Cu()(v, ["sizeBoxIcon"], 54))) && void 0 !== p ? p : 54, q = rH(Cu()(v, ["iconColor", x], ec.primaryColor)), H = rH(Cu()(v, ["iconBoxColor", x], ec.transparent)), U = rH(Cu()(v, ["iconBorder", x], ec.transparent)), X = "".concat(L, "px ").concat(R, "px ").concat(P, "px ").concat(B, "px ").concat(D), G = Cu()(m, "items", []), K = FX(y, null == v ? void 0 : v.padding, null == v ? void 0 : v.margin);
return Object(Ip.jsx)(Jq, {
margin: null == v ? void 0 : v.margin,
padding: null == v ? void 0 : v.padding,
style: {
backgroundColor: w,
height: "carousel" === g || "slideshow" === g ? C : "auto",
overflow: "hidden",
boxSizing: "border-box",
textAlign: "left"
},
children: G.length > 0 ? Object(Ip.jsx)(k, {
length: G.length,
pad: M,
widthView: K,
heightView: C,
col: T,
ratio: z,
indicatorColor: S,
indicatorActiveColor: A,
renderItem: function(e, t, n) {
var r = G[e]
, i = Cu()(r, "template", "default")
, o = Cu()(r, "data", {})
, a = Cu()(o, ["icon"], {
name: "settings",
type: "feather"
})
, l = Jle[i] || Jle.default;
return Object(Ip.jsx)(l, {
templateData: o,
icon: h._renderIcon(a, F, V, W, q, H, U),
width: null != t ? t : _,
height: n,
background: I,
borderColor: N,
radius: E,
shadow: X,
darkModeKey: x,
translate: O,
language: j
})
}
}) : null
})
}
}]),
n
}(l.Component), ese = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))($le), tse = Object(Mu.b)(Jq)(Vle || (Vle = _u(["\n background-color: ", ";\n display: flex;\n align-items: ", ";\n text-align: left;\n"])), (function(e) {
var t;
return null !== (t = null == e ? void 0 : e.color) && void 0 !== t ? t : "transparent"
}
), (function(e) {
return "center" !== e.position ? "flex-start" : "center"
}
)), nse = Mu.b.div(Wle || (Wle = _u(["\n width: 48px;\n height: 48px;\n background-color: rgba(6,134,248,0.1);\n border-radius: 8px;\n margin: ", ";\n margin-right: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n svg {\n color: rgba(6,134,248,1);\n }\n"])), (function(e) {
return "padding" === e.position ? "16px 0px" : "0px"
}
)), rse = Mu.b.div(qle || (qle = _u(["\n flex: 1;\n"]))), ise = Mu.b.div(Hle || (Hle = _u(["\n padding: 16px 0px;\n border-bottom: 1px solid rgba(222,226,230,0.5);\n"]))), ose = Object(Mu.b)(ise)(Ule || (Ule = _u(["\n display: flex;\n align-items: center;\n"]))), ase = Mu.b.span(Xle || (Xle = _u(["\n display: block;\n flex-shrink: 1;\n font-size: 14px;\n font-weight: 500;\n"]))), lse = Mu.b.span(Gle || (Gle = _u(["\n display: block;\n margin-left: 8px;\n font-size: 12px;\n"]))), sse = ps.a.CancelToken, cse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
archives: [],
loading: !0
},
e.source = sse.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
jc(e.source.token);
case 3:
n = t.sent,
yh()(n) ? e.setState({
archives: n,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t, n = this, r = this.props, i = r.widget, o = i.styles, a = i.fields, l = r.darkModeKey, s = this.state, c = s.archives, u = s.loading, d = rH(Cu()(o, ["background", l], ec.transparent)), p = null === (e = null == a ? void 0 : a.enableIconArchives) || void 0 === e || e, h = null === (t = null == a ? void 0 : a.enableCount) || void 0 === t || t, f = c.length > 1 || u ? "padding" : "center";
return Object(Ip.jsxs)(tse, {
margin: o.margin,
padding: o.padding,
style: {
backgroundColor: d
},
position: f,
children: [p && Object(Ip.jsx)(nse, {
position: f,
children: Object(Ip.jsx)(YX, {
icon: {
name: "calendar",
type: "feather"
},
width: 20,
height: 20,
style: {
fontSize: 20
}
})
}), Object(Ip.jsx)(rse, {
children: u ? this._renderLoading() : c.map((function(e, t) {
var r;
return Object(Ip.jsxs)(ose, {
children: [Object(Ip.jsx)(ase, {
children: n._getMonth(e)
}), h && Object(Ip.jsx)(lse, {
children: "(".concat(null !== (r = null == e ? void 0 : e.posts) && void 0 !== r ? r : 0, ")")
})]
}, t)
}
))
})]
})
}
}, {
key: "_renderLoading",
value: function() {
return new Array(4).fill(0).map((function(e, t) {
return Object(Ip.jsx)(ise, {
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
style: {
width: "100%"
},
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 17,
width: "100%"
}]
})
}),
width: "40%",
styles: hS
})
}, t)
}
))
}
}, {
key: "_getMonth",
value: function(e) {
var t, n = new Date, r = Number(null !== (t = null == e ? void 0 : e.year) && void 0 !== t ? t : n.getFullYear()), i = null != e && e.month ? Number(null == e ? void 0 : e.month) - 1 : n.getMonth(), o = new Date(r,i,17);
return pV(o, "MMMM YYYY")
}
}]),
n
}(l.Component), use = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(cse), dse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = e.widthView
, o = new Array(null != t ? t : 0).fill(0);
return o.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: t < o.length - 1 ? n : 0
},
children: r(t, i, null, null)
}, t)
}
))
}
}]),
n
}(l.Component), pse = dse, hse = Mu.b.div(Kle || (Kle = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n"]))), fse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.heightView
, i = e.renderItem
, o = e.heightImage
, a = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)(hse, {
children: a.map((function(e, a) {
return Object(Ip.jsx)("div", {
style: {
marginRight: a < t - 1 ? n : 0
},
children: i(a, null, r, o)
}, a)
}
))
})
}
}]),
n
}(l.Component), bse = fse, gse = Mu.b.div(Yle || (Yle = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), mse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.widthView
, l = o.pad
, s = o.renderItem
, c = ((null != a ? a : 300) - l) / 2
, u = c;
n % 2 === r && (u = .8 * c);
var d = i ? 0 : l;
return Object(Ip.jsxs)("div", {
style: {
width: c
},
children: [s(t, c, null, u), i ? null : Object(Ip.jsx)("div", {
style: {
height: d
}
})]
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.length, r = t.pad, i = Array.from({
length: null != n ? n : 0
}, (function(e, t) {
return t
}
)), o = [], a = [], l = 0; l < i.length; l++)
l % 2 == 0 ? o = o.concat(l) : a = a.concat(l);
return Object(Ip.jsxs)(gse, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: o.map((function(t, n) {
return e._renderItem(i[t], n, 0, !(n < o.length - 1))
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: a.map((function(t, n) {
return e._renderItem(i[t], n, 1, !(n < a.length - 1))
}
))
})]
})
}
}]),
n
}(l.Component);
mse.defaultProps = {
pad: 0
};
var vse = mse
, yse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)("div", {
className: "122121212",
children: o.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
width: null != n ? n : "auto",
marginBottom: t < o.length - 1 ? r : 0
},
children: i(t, n, null, null)
}, t)
}
))
})
}
}]),
n
}(l.Component);
yse.defaultProps = {
pad: 0
};
var xse, Ose, jse, kse = yse, wse = Mu.b.div(xse || (xse = _u(["\n position: relative;\n height: 100%;\n"]))), Cse = Mu.b.div(Ose || (Ose = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), _se = Mu.b.div(jse || (jse = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), Mse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(_se, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.heightView
, i = e.renderItem
, o = e.heightImage
, a = e.indicatorColor
, l = e.indicatorActiveColor
, s = new Array(null != t ? t : 0).fill(0);
return null === (s.length > 0 ? s[0] : null) ? null : Object(Ip.jsxs)(wse, {
children: [i(0, n, r, o), Object(Ip.jsx)(Cse, {
children: this._renderDots(s.length, 0, a, l)
})]
})
}
}]),
n
}(l.Component);
Mse.defaultProps = {
pad: 0
};
var Sse, Ase = Mse, Tse = Mu.b.div(Sse || (Sse = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), Ese = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.col
, i = e.ratio
, o = e.widthView
, a = e.renderItem
, l = Array.from({
length: null != t ? t : 0
}, (function(e, t) {
return t
}
))
, s = (o - n * (r - 1)) / r
, c = s / i;
return Object(Ip.jsx)(Tse, {
style: {
margin: -n / 2
},
children: l.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
width: s,
margin: n / 2
},
children: a(t, s, c, null)
}, t)
}
))
})
}
}]),
n
}(l.Component);
Ese.defaultProps = {
pad: 0,
col: 2,
ratio: 1
};
var Ise, Nse, zse, Dse, Lse, Rse = Ese, Pse = Mu.b.div(Ise || (Ise = _u(["\n overflow: hidden;\n position: relative;\n"]))), Bse = Mu.b.span(Nse || (Nse = _u(["\n display: block;\n margin-top: 8px;\n text-align: center;\n font-size: 14px;\n font-weight: 500;\n"]))), Fse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.item, i = n.widthItem, o = n.heightItem, a = n.heightImage, l = n.templateData, s = n.background, c = n.textColor, u = n.radius, d = n.imageRadius, p = n.count, h = a || (null != i ? i : 109), f = i || h, b = Cu()(l, "enableCount", !0), g = Cu()(l, "enableRoundImage", !0), m = Cu()(r, ["acf", "image"], Zp.NoImage);
return Object(Ip.jsxs)(Pse, {
style: {
width: f,
height: null != o ? o : "auto",
backgroundColor: s,
borderRadius: u
},
children: [Object(Ip.jsx)("div", {
style: {
width: f,
height: h,
borderRadius: g ? "50%" : d,
overflow: "hidden"
},
children: Object(Ip.jsx)("img", {
src: m,
width: f,
height: h,
alt: m
})
}), Object(Ip.jsx)(Bse, {
style: {
color: c
},
children: null !== (e = null == r ? void 0 : r.name) && void 0 !== e ? e : ""
}), b ? Object(Ip.jsx)("div", {
style: {
position: "absolute",
right: 0,
top: 0
},
children: p(null !== (t = null == r ? void 0 : r.count) && void 0 !== t ? t : 0, 19)
}) : null]
})
}
}]),
n
}(l.Component), Vse = Fse, Wse = Mu.b.div(zse || (zse = _u(["\n overflow: hidden;\n position: relative;\n"]))), qse = Mu.b.div(Dse || (Dse = _u(["\n position: absolute;\n top: 0px;\n bottom: 0px;\n right: 0px;\n left: 0px;\n"]))), Hse = Mu.b.div(Lse || (Lse = _u(["\n // flex-grow: 1;\n span {\n font-size: 14px;\n font-weight: 500;\n display: block;\n word-break: break-all;\n white-space: break-spaces;\n }\n"]))), Use = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r = this.props, i = r.item, o = r.widthItem, a = r.heightItem, l = r.templateData, s = r.heightImage, c = r.imageRadius, u = r.background, d = r.textColor, p = r.radius, h = r.count, f = r.darkModeKey, b = s || a || (o ? 109 * o / 245 : 245), g = o || 245 * b / 109, m = Cu()(l, "enableCount", !0), v = null !== (e = Number(Cu()(l, "opacity", .9))) && void 0 !== e ? e : .9, y = rH(Cu()(l, ["colorBegin", f], ec.transparent)), x = rH(Cu()(l, ["colorEnd", f], ec.black)), O = Cu()(i, ["acf", "image"], Zp.NoImage);
return Object(Ip.jsxs)(Wse, {
style: {
width: g,
height: b,
backgroundColor: u,
borderRadius: p
},
children: [Object(Ip.jsx)("div", {
style: {
width: g,
height: b,
borderRadius: c,
overflow: "hidden"
},
children: Object(Ip.jsx)("img", {
src: O,
alt: O,
width: g,
height: b,
style: {
objectFit: "cover"
}
})
}), Object(Ip.jsx)(qse, {
style: {
opacity: v,
background: "linear-gradient(".concat(y, ", ").concat(x, ")")
}
}), Object(Ip.jsx)(qse, {
style: {
padding: 16,
boxSizing: "border-box",
display: "flex",
flexDirection: "column",
justifyContent: "flex-end"
},
children: Object(Ip.jsxs)("div", {
style: {
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsx)(Hse, {
children: Object(Ip.jsx)("span", {
style: {
color: d
},
children: null !== (t = null == i ? void 0 : i.name) && void 0 !== t ? t : ""
})
}), m ? Object(Ip.jsx)("div", {
style: {
marginLeft: 8,
flexGrow: 1,
display: "flex"
},
children: h(null !== (n = null == i ? void 0 : i.count) && void 0 !== n ? n : 0, 26)
}) : null]
})
})]
})
}
}]),
n
}(l.Component);
Use.defaultProps = {
background: "transparent",
textColor: "white",
labelRadius: 8,
radius: 8,
imageRadius: 0
};
var Xse, Gse, Kse = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(Use), Yse = Mu.b.div(Xse || (Xse = _u(["\n display: flex;\n padding: 16px;\n align-items: center;\n overflow: hidden;\n box-sizing: border-box;\n"]))), Qse = Mu.b.span(Gse || (Gse = _u(["\n display: block;\n flex: 1;\n margin-left:16px;\n font-size: 14px;\n font-weight: 500;\n word-break: break-word;\n white-space: break-spaces;\n"]))), Jse = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.item, r = t.widthItem, i = t.heightItem, o = t.heightImage, a = t.templateData, l = t.background, s = t.textColor, c = t.radius, u = t.imageRadius, d = t.count, p = null != r ? r : 335, h = i && i > 0 ? i : "auto", f = (p - 32) / 3 > 70 ? 70 : (p - 32) / 3, b = o || ("auto" === h || h - 32 >= f ? f : h - 32), g = Cu()(a, "enableCount", !0), m = Cu()(n, ["acf", "image"], Zp.NoImage);
return Object(Ip.jsxs)(Yse, {
style: {
width: p,
height: h,
backgroundColor: l,
borderRadius: c
},
children: [Object(Ip.jsx)("div", {
style: {
width: f,
height: b,
borderRadius: u,
overflow: "hidden"
},
children: Object(Ip.jsx)("img", {
src: m,
alt: m,
width: f,
height: b
})
}), Object(Ip.jsx)(Qse, {
style: {
color: s
},
children: null == n ? void 0 : n.name
}), g && Object(Ip.jsx)("div", {
style: {
marginLeft: 8
},
children: d(null !== (e = null == n ? void 0 : n.count) && void 0 !== e ? e : 0, 26)
})]
})
}
}]),
n
}(l.Component), Zse = Jse, $se = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widthItem
, n = e.heightItem
, r = e.heightImage
, i = e.templateData
, o = e.background
, a = e.radius
, l = e.imageRadius
, s = e.labelRadius
, c = r || (null != t ? t : 109)
, u = t || c
, d = Cu()(i, "enableCount", !0)
, p = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: Cu()(i, "enableRoundImage", !0) ? "50%" : l
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
}
, h = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: s
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsxs)("div", {
style: {
width: u,
height: null != n ? n : "auto",
backgroundColor: o,
borderRadius: a,
overflow: "hidden"
},
children: [Object(Ip.jsxs)("div", {
style: {
width: "100%"
},
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: c,
width: "100%"
}]
}),
width: "100%",
styles: p
}), Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 18,
width: "15%"
}, {
type: _k.line,
height: 18,
width: "70%"
}, {
type: _k.gap,
height: 18,
width: "15%"
}]
})
}),
width: "100%",
styles: hS
})]
}), d ? Object(Ip.jsx)("div", {
style: {
position: "absolute",
top: 0,
right: 0
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 19,
width: "100%"
}]
}),
width: 19,
styles: h
})
}) : null]
})
}
}]),
n
}(l.Component), ece = $se, tce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widthItem
, n = e.heightItem
, r = e.heightImage
, i = e.imageRadius
, o = e.background
, a = e.radius
, l = n || r || (t ? 109 * t / 245 : 245)
, s = t || 245 * l / 109
, c = {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: i
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
};
return Object(Ip.jsx)("div", {
style: {
width: s,
height: l,
backgroundColor: o,
borderRadius: a,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: l,
width: "100%"
}]
}),
width: "100%",
styles: c
})
})
}
}]),
n
}(l.Component);
tce.defaultProps = {
background: "transparent",
labelRadius: 8,
radius: 8,
imageRadius: 0
};
var nce, rce, ice, oce, ace, lce, sce, cce, uce, dce, pce, hce, fce, bce, gce, mce, vce, yce = tce, xce = Mu.b.div(nce || (nce = _u(["\n display: flex;\n padding: 16px;\n align-items: center;\n overflow: hidden;\n box-sizing: border-box;\n"]))), Oce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widthItem
, n = e.heightItem
, r = e.heightImage
, i = e.templateData
, o = e.background
, a = e.radius
, l = e.imageRadius
, s = e.labelRadius
, c = null != t ? t : 335
, u = n && n > 0 ? n : "auto"
, d = (c - 32) / 3 > 70 ? 70 : (c - 32) / 3
, p = r || ("auto" === u || u - 32 >= d ? d : u - 32)
, h = Cu()(i, "enableCount", !0);
return Object(Ip.jsxs)(xce, {
style: {
width: c,
height: u,
backgroundColor: o,
borderRadius: a
},
children: [Object(Ip.jsx)("div", {
style: {
borderRadius: l,
overflow: "hidden"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: p,
width: "100%"
}]
})
}),
width: d,
styles: hS
})
}), Object(Ip.jsx)("div", {
style: {
flex: 1,
marginLeft: 16
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 18,
width: "75%"
}, {
type: _k.gap,
height: 18,
width: "25%"
}]
})
}),
width: "100%",
styles: hS
})
}), h ? Object(Ip.jsx)("div", {
style: {
borderRadius: s,
overflow: "hidden",
marginLeft: 8
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 19,
width: "100%"
}]
})
}),
width: 19,
styles: hS
})
}) : null]
})
}
}]),
n
}(l.Component), jce = Oce, kce = Mu.b.div(rce || (rce = _u(["\n min-width: ", "px;\n height: ", "px;\n font-size: 10px;\n line-height: ", "px;\n padding: 0px 4px;\n text-align: center;\n box-sizing: border-box;\n"])), (function(e) {
return e.size
}
), (function(e) {
return e.size
}
), (function(e) {
return e.size
}
)), wce = {
list: pse,
carousel: bse,
masonry: vse,
"big-first": kse,
slideshow: Ase,
grid: Rse
}, Cce = {
contained: ece,
horizontal: jce,
gradient: yce
}, _ce = {
contained: Vse,
horizontal: Zse,
gradient: Kse
}, Mce = ps.a.CancelToken, Sce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
categories: [],
loading: !0
},
e.source = Mce.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, i, o, a, l, s, c, u, d, p;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
o = e.props,
a = o.widget.fields,
l = o.language,
s = o.translate,
c = null !== (n = Number(null !== (r = null == a ? void 0 : a.limit) && void 0 !== r ? r : "4")) && void 0 !== n ? n : 4,
u = null !== (i = null == a ? void 0 : a.taxonomy) && void 0 !== i ? i : "categories",
d = {
per_page: c,
lang: s ? l : ""
},
t.next = 7,
pc(u, d, e.source.token);
case 7:
p = t.sent,
yh()(p) ? e.setState({
categories: p,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 14;
break;
case 11:
t.prev = 11,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 14:
case "end":
return t.stop()
}
}
), t, null, [[0, 11]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s = this;
(null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && e.translate === this.props.translate && e.language === this.props.language || this.setState({
loading: !0
}, (function() {
return s._fetchData()
}
))
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d = this, p = this.state, h = p.loading, f = p.categories, b = this.props, g = b.widget, m = g.styles, v = g.fields, y = g.layout, x = b.width, O = b.darkModeKey, j = rH(Cu()(m, ["background", O], ec.transparent)), k = null !== (e = Number(Cu()(m, "pad", 16))) && void 0 !== e ? e : 16, w = null !== (t = Number(Cu()(m, "height", 200))) && void 0 !== t ? t : 200, C = null !== (n = Number(Cu()(m, "heightImage", 200))) && void 0 !== n ? n : 200, _ = rH(Cu()(m, ["indicatorColor", O], ec.borderLightMode)), M = rH(Cu()(m, ["indicatorActiveColor", O], ec.tertiaryText)), S = null !== (r = Number(Cu()(m, ["col"], 2))) && void 0 !== r ? r : 2, A = null !== (i = Number(Cu()(m, ["ratio"], 1))) && void 0 !== i ? i : 1, T = rH(Cu()(m, ["backgroundItem", O], ec.transparent)), E = rH(Cu()(m, ["textColor", O], ec.black)), I = rH(Cu()(m, ["labelColor", O], ec.black)), N = rH(Cu()(m, ["labelTextColor", O], ec.white)), z = null !== (o = Number(Cu()(m, "labelRadius", 13))) && void 0 !== o ? o : 13, D = null !== (a = Number(Cu()(m, "radius", 8))) && void 0 !== a ? a : 8, L = null !== (l = Number(Cu()(m, "radiusImage", 8))) && void 0 !== l ? l : 8, R = null !== (s = Number(null !== (c = null == v ? void 0 : v.limit) && void 0 !== c ? c : "4")) && void 0 !== s ? s : 4, P = Cu()(v, ["template", "template"], "contained"), B = Cu()(v, ["template", "data"], {}), F = FX(x, null == m ? void 0 : m.padding, null == m ? void 0 : m.margin), V = null !== (u = wce[y]) && void 0 !== u ? u : wce.list, W = h ? R : f.length;
return Object(Ip.jsx)(Jq, {
margin: null == m ? void 0 : m.margin,
padding: null == m ? void 0 : m.padding,
style: {
backgroundColor: j,
textAlign: "left",
boxSizing: "border-box",
overflow: "hidden",
height: "carousel" === y || "slideshow" === y ? w : "auto"
},
children: Object(Ip.jsx)(V, {
length: W,
pad: k,
widthView: F,
heightView: w,
heightImage: C,
indicatorColor: _,
indicatorActiveColor: M,
col: S,
ratio: A,
renderItem: function(e, t, n, r) {
var i;
if (h) {
var o;
if ("big-first" === y && 0 === e)
return Object(Ip.jsx)(yce, {
widthItem: t,
heightItem: n,
heightImage: r,
templateData: B
});
var a = null !== (o = Cce[P]) && void 0 !== o ? o : Cce.contained;
return Object(Ip.jsx)(a, {
widthItem: t,
heightItem: n,
heightImage: r,
templateData: B,
background: T,
labelRadius: z,
radius: D,
imageRadius: L
})
}
if ("big-first" === y && 0 === e)
return Object(Ip.jsx)(Kse, {
item: f[e],
widthItem: t,
heightItem: n,
heightImage: r,
templateData: B,
count: function(e, t) {
return d._renderCount(e, "black", "white", t, 13)
}
});
var l = null !== (i = _ce[P]) && void 0 !== i ? i : _ce.contained;
return Object(Ip.jsx)(l, {
item: f[e],
widthItem: t,
heightItem: n,
heightImage: r,
templateData: B,
background: T,
textColor: E,
radius: D,
imageRadius: L,
count: function(e, t) {
return d._renderCount(e, N, I, t, z)
}
})
}
})
})
}
}, {
key: "_renderCount",
value: function(e, t, n, r, i) {
return Object(Ip.jsx)(kce, {
size: r,
style: {
borderRadius: i,
backgroundColor: n,
color: t
},
children: Object(Ip.jsx)("span", {
style: {
display: "block"
},
children: e
})
})
}
}]),
n
}(l.Component), Ace = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Sce), Tce = Mu.b.div(ice || (ice = _u(["\n padding: 16px 0px;\n border-bottom: 1px solid rgba(222,226,230,0.5);\n display: flex;\n text-align: left;\n"]))), Ece = Mu.b.div(oce || (oce = _u(["\n margin-right: 16px;\n"]))), Ice = Mu.b.div(ace || (ace = _u(["\n flex: 1;\n"]))), Nce = Mu.b.div(lce || (lce = _u(["\n display: flex;\n"]))), zce = Mu.b.div(sce || (sce = _u(["\n flex: 1;\n span {\n font-size: 14px;\n font-weight: 500;\n &.on {\n color: #647C9C;\n }\n &.post {\n display: inline-block;\n color: #0686F8;\n }\n }\n"]))), Dce = Mu.b.div(cce || (cce = _u(["\n margin-left: 12px;\n span {\n font-size: 12px;\n color: #9FADC0;\n }\n"]))), Lce = Mu.b.div(uce || (uce = _u(["\n color: #647C9C;\n font-size: 12px;\n margin-top: 14px;\n"]))), Rce = ps.a.CancelToken, Pce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
comments: [],
loading: !0
},
e.source = Rce.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, i, o, a, l, s;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
n = e.props,
r = n.widget.fields,
i = n.translate,
o = n.language,
a = Number(Cu()(r, ["limit"], 4)),
l = {
per_page: a,
lang: i ? o : "en",
order: "desc",
orderby: "date"
},
t.next = 6,
dc(l, e.source.token);
case 6:
s = t.sent,
yh()(s) ? e.setState({
comments: s,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 13;
break;
case 10:
t.prev = 10,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 13:
case "end":
return t.stop()
}
}
), t, null, [[0, 10]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.darkModeKey
, o = this.state
, a = o.comments
, l = o.loading
, s = rH(Cu()(r, ["background", i], ec.transparent))
, c = Number(Cu()(n, ["limit"], 4))
, u = Cu()(n, ["enableAvatar"], !0)
, d = Cu()(n, ["enableDate"], !0)
, p = Cu()(n, ["enableExcerpt"], !0);
return Object(Ip.jsx)(Jq, {
margin: r.margin,
padding: r.padding,
style: {
backgroundColor: s
},
children: l ? this._renderLoading(c, u, p) : this._renderData(a, u, d, p)
})
}
}, {
key: "_renderLoading",
value: function(e, t, n) {
return new Array(e).fill(0).map((function(e, r) {
return Object(Ip.jsxs)(Tce, {
children: [t && Object(Ip.jsx)(Ece, {
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.circle,
height: 48,
width: "100%"
}]
})
}),
width: 48,
styles: hS
})
}), Object(Ip.jsx)(Ice, {
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 26,
width: "100%"
}]
}), n && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}]
}), Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 8,
width: "80%"
}, {
type: _k.gap,
height: 8,
width: "20%"
}]
})]
})]
}),
width: "100%",
styles: hS
})
})]
}, r)
}
))
}
}, {
key: "_renderData",
value: function(e, t, n, r) {
var i = this;
return e.map((function(e, o) {
var a, l, s, c, u;
return Object(Ip.jsxs)(Tce, {
children: [t && Object(Ip.jsx)(Ece, {
children: Object(Ip.jsx)(Lg, {
src: (null == e || null === (a = e.author_avatar_urls) || void 0 === a ? void 0 : a[48]) || Zp.NoImage,
width: 48,
height: 48,
styles: {
root: {
borderRadius: 24
}
}
})
}), Object(Ip.jsxs)(Ice, {
children: [Object(Ip.jsxs)(Nce, {
children: [Object(Ip.jsxs)(zce, {
children: [Object(Ip.jsx)("span", {
children: e.author_name
}), Object(Ip.jsx)("span", {
className: "on",
children: " on "
}), Object(Ip.jsx)("span", {
className: "post",
children: null !== (l = null == e || null === (s = e.post_data) || void 0 === s ? void 0 : s.post_title) && void 0 !== l ? l : ""
})]
}), n && Object(Ip.jsx)(Dce, {
children: Object(Ip.jsx)("span", {
children: i._getDate(e.date)
})
})]
}), r && Object(Ip.jsx)(Lce, {
dangerouslySetInnerHTML: {
__html: null !== (c = null == e || null === (u = e.content) || void 0 === u ? void 0 : u.rendered) && void 0 !== c ? c : ""
}
})]
})]
}, o)
}
))
}
}, {
key: "_getDate",
value: function(e) {
return pV(e ? new Date(e) : new Date, "MM/DD/YYYY")
}
}]),
n
}(l.Component), Bce = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Pce), Fce = Mu.b.ul(dce || (dce = _u(["\n display: flex;\n overflow: hidden;\n overflow-x: auto;\n white-space: nowrap;\n list-style: none;\n padding: 0px;\n margin: 0px;\n li {\n display: inline-block;\n margin-right: 32px;\n font-weight: 600;\n padding-bottom: 4px;\n\n &.active {\n color: #0686f8;\n border-bottom: 2px solid #0686f8;\n }\n }\n"]))), Vce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
active: 0
},
e
}
return Object(At.a)(n, [{
key: "onChange",
value: function(e) {
this.state.active !== e && this.setState({
active: e
})
}
}, {
key: "buildWidgetProduct",
value: function(e, t, n) {
var r = Cu()(t, "layoutItem", "list");
return {
widgets: {
id: e.id,
type: e.type,
layout: r,
value: e.value,
fields: t,
styles: _t(_t({}, e.styles), {}, {
padding: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
margin: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
background: {
dark: ec.transparent,
value: ec.transparent
}
})
},
width: n
}
}
}, {
key: "render",
value: function() {
var e, t = this, n = this.state.active, r = this.props, i = r.widget, o = i.styles, a = i.fields, l = r.width, s = r.darkModeKey, c = r.translate, u = r.language, d = rH(Cu()(o, ["background", s], ec.transparent)), p = Cu()(a, "items", []), h = null !== (e = Number(Cu()(a, "pad", 12))) && void 0 !== e ? e : 12, f = FX(l, null == o ? void 0 : o.padding, null == o ? void 0 : o.margin), b = c ? u : "text", g = this.buildWidgetProduct(this.props.widget, Cu()(p, [n, "data"], {}), f);
return Object(Ip.jsx)(Jq, {
margin: null == o ? void 0 : o.margin,
padding: null == o ? void 0 : o.padding,
style: {
backgroundColor: d
},
children: p.length > 0 ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(Fce, {
style: {
paddingBottom: h
},
children: p.map((function(e, r) {
var i = Cu()(e, ["data"], {})
, o = Cu()(i, ["name", b], "Latest");
return Object(Ip.jsx)("li", {
className: r === n ? "active" : "",
onClick: function() {
return t.onChange(r)
},
children: o
}, r)
}
))
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(jJ, {
widget: g.widgets,
width: f
})
})]
}) : null
})
}
}]),
n
}(l.Component), Wce = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Vce), qce = Mu.b.div(pce || (pce = _u(["\n width: 100%;\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: 8px;\n text-align: left;\n"])), (function(e) {
return e.background
}
), (function(e) {
return e.borderColor
}
)), Hce = Mu.b.div(hce || (hce = _u(["\n display: flex;\n align-items: center;\n padding: 16px 8px;\n min-height: 17px;\n"]))), Uce = Mu.b.div(fce || (fce = _u(["\n flex: 1;\n margin: 0px 8px;\n"]))), Xce = Object(Mu.b)(pU)(bce || (bce = _u(["\n display: inline-block;\n text-align: start;\n"]))), Gce = Mu.b.div(gce || (gce = _u(["\n margin: 0px 8px;\n"]))), Kce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = rH(Cu()(r, ["background", a], ec.transparent))
, s = rH(Cu()(r, ["backgroundColorInput", a], ec.grayColor))
, c = rH(Cu()(r, ["borderColorInput", a], ec.borderLightMode))
, u = rH(Cu()(r, ["iconColorInput", a], ec.black))
, d = Cu()(n, ["icon"], {
name: "search",
type: "feather"
})
, p = Cu()(n, ["enableIcon"], !0)
, h = Cu()(n, ["enableIconLeft"], !0)
, f = Cu()(n, ["enableScan"], !1)
, b = Cu()(n, ["enableScanLeft"], !0)
, g = {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
, m = i ? Cu()(n, ["placeholder", o], "") : Cu()(n, ["placeholder", "text"], "")
, v = nH()(g, Cu()(n, ["placeholder", "style"], {}));
return Object(Ip.jsx)(Jq, {
margin: null == r ? void 0 : r.margin,
padding: null == r ? void 0 : r.padding,
style: {
backgroundColor: l
},
children: Object(Ip.jsx)(qce, {
background: s,
borderColor: c,
children: Object(Ip.jsxs)(Hce, {
children: [f && b && Object(Ip.jsx)(Gce, {
children: Object(Ip.jsx)(YX, {
icon: {
type: "awesome",
name: "fas-qrcode"
},
width: 24,
height: 24,
style: {
width: 24,
height: 24,
fontSize: 24,
color: u
}
})
}), p && h && Object(Ip.jsx)(Gce, {
children: Object(Ip.jsx)(YX, {
icon: d,
width: 16,
height: 16,
style: {
width: 16,
height: 16,
fontSize: 16,
color: u
}
})
}), Object(Ip.jsx)(Uce, {
children: Object(Ip.jsx)(Xce, {
dataStyle: v,
darkModeKey: a,
children: m
})
}), p && !h && Object(Ip.jsx)(Gce, {
children: Object(Ip.jsx)(YX, {
icon: d,
width: 16,
height: 16,
style: {
width: 16,
height: 16,
fontSize: 16,
color: u
}
})
}), f && !b && Object(Ip.jsx)(Gce, {
children: Object(Ip.jsx)(YX, {
icon: {
type: "awesome",
name: "fas-qrcode"
}
})
})]
})
})
})
}
}]),
n
}(l.Component), Yce = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Kce), Qce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = e.width;
return Object(Ip.jsx)(Yce, {
widget: t,
width: n
})
}
}]),
n
}(l.Component), Jce = Qce, Zce = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = e.widthView
, o = new Array(null != t ? t : 0).fill(0);
return o.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: t < o.length - 1 ? n : 0
},
children: r(t, i)
}, t)
}
))
}
}]),
n
}(l.Component), $ce = Zce, eue = Mu.b.div(mce || (mce = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n"]))), tue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = e.widthItem
, o = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)(eue, {
children: o.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
marginRight: t < o.length - 1 ? n : 0
},
children: r(t, i)
}, t)
}
))
})
}
}]),
n
}(l.Component), nue = tue, rue = Mu.b.div(vce || (vce = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), iue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.col
, i = e.ratio
, o = e.widthView
, a = e.renderItem
, l = Array.from({
length: null != t ? t : 0
}, (function(e, t) {
return t
}
))
, s = (o - n * (r - 1)) / r
, c = s / i;
return Object(Ip.jsx)(rue, {
style: {
margin: "0px -".concat(n / 2, "px")
},
children: l.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
width: s,
margin: "0px ".concat(n / 2, "px")
},
children: Object(Ip.jsx)("div", {
style: {
height: c,
overflow: "hidden"
},
children: a(t, s)
})
}, t)
}
))
})
}
}]),
n
}(l.Component);
iue.defaultProps = {
pad: 0,
col: 2,
ratio: 1
};
var oue, aue, lue, sue, cue, uue, due, pue, hue, fue, bue, gue, mue, vue, yue = iue, xue = Mu.b.div(oue || (oue = _u(["\n overflow: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n box-sizing: border-box;\n"]))), Oue = Mu.b.div(aue || (aue = _u(["\n border-radius: 50%;\n overflow: hidden;\n margin-bottom: 16px;\n"]))), jue = Mu.b.span(lue || (lue = _u(["\n display: block;\n text-align: center;\n"]))), kue = Object(Mu.b)(jue)(sue || (sue = _u(["\n font-size: 16px;\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n white-space: break-spaces;\n word-break: break-all;\n"]))), wue = Object(Mu.b)(jue)(cue || (cue = _u(["\n font-size: 10px;\n white-space: break-spaces;\n word-break: break-all;\n text-transform: uppercase;\n"]))), Cue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderLoading",
value: function(e, t, n) {
return Object(Ip.jsxs)(Ip.Fragment, {
children: [t && Object(Ip.jsx)(Oue, {
style: {
width: e,
height: e
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: e,
width: "100%"
}]
})
}),
width: e,
styles: hS
})
}), Object(Ip.jsx)("div", {
style: {
width: "70%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 18,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}), n && Object(Ip.jsx)("div", {
style: {
marginTop: 4,
width: "40%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
})]
})
}
}, {
key: "_renderData",
value: function(e, t, n, r, i, o) {
var a, l, s, c = Cu()(e, ["avatar_urls", "48"], Gw.noImage), u = null !== (a = Number(null !== (l = null == e ? void 0 : e.count_posts) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, d = "".concat(u, u > 1 ? " articles" : " article");
return Object(Ip.jsxs)(Ip.Fragment, {
children: [i && Object(Ip.jsx)(Oue, {
style: {
width: t,
height: t
},
children: Object(Ip.jsx)("img", {
src: c,
alt: c,
width: t,
height: t
})
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(kue, {
style: {
color: n
},
children: null !== (s = null == e ? void 0 : e.name) && void 0 !== s ? s : ""
})
}), o && Object(Ip.jsx)("div", {
style: {
marginTop: 4
},
children: Object(Ip.jsx)(wue, {
style: {
color: r
},
children: d
})
})]
})
}
}, {
key: "render",
value: function() {
var e, t, n = this.props, r = n.author, i = n.width, o = n.templateData, a = n.background, l = n.textColor, s = n.subTextColor, c = n.radius, u = n.shadow, d = i - 70 >= 0 ? 70 : i, p = i - d >= 48 ? 24 : i - d > 0 ? (i - d) / 2 : 0, h = null === (e = null == o ? void 0 : o.enableAvatar) || void 0 === e || e, f = null === (t = null == o ? void 0 : o.enableCount) || void 0 === t || t;
return Object(Ip.jsx)(xue, {
style: {
width: i,
backgroundColor: a,
padding: "16px ".concat(p, "px"),
borderRadius: c,
boxShadow: u
},
children: null != r && "object" == typeof r ? this._renderData(r, d, l, s, h, f) : this._renderLoading(d, h, f)
})
}
}]),
n
}(l.Component), _ue = Cue, Mue = Mu.b.div(uue || (uue = _u(["\n padding: 16px;\n overflow: hidden;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n text-align: left;\n"]))), Sue = Mu.b.div(due || (due = _u(["\n border-radius: 50%;\n overflow: hidden;\n margin-right: 16px;\n"]))), Aue = Mu.b.span(pue || (pue = _u(["\n display: block;\n"]))), Tue = Object(Mu.b)(Aue)(hue || (hue = _u(["\n font-size: 16px;\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n white-space: break-spaces;\n word-break: break-all;\n"]))), Eue = Object(Mu.b)(Aue)(fue || (fue = _u(["\n font-size: 10px;\n white-space: break-spaces;\n word-break: break-all;\n text-transform: uppercase;\n"]))), Iue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderLoading",
value: function(e, t, n) {
return Object(Ip.jsxs)(Ip.Fragment, {
children: [t && Object(Ip.jsx)(Sue, {
style: {
width: e,
height: e
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: e,
width: "100%"
}]
})
}),
width: e,
styles: hS
})
}), Object(Ip.jsxs)("div", {
style: {
flex: 1
},
children: [Object(Ip.jsx)("div", {
style: {
width: "70%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 18,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}), n && Object(Ip.jsx)("div", {
style: {
marginTop: 4,
width: "40%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 14,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
})]
})]
})
}
}, {
key: "_renderData",
value: function(e, t, n, r, i, o) {
var a, l, s, c = Cu()(e, ["avatar_urls", "48"], Gw.noImage), u = null !== (a = Number(null !== (l = null == e ? void 0 : e.count_posts) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, d = "".concat(u, u > 1 ? " articles" : " article");
return Object(Ip.jsxs)(Ip.Fragment, {
children: [i && Object(Ip.jsx)(Sue, {
style: {
width: t,
height: t
},
children: Object(Ip.jsx)("img", {
src: c,
alt: c,
width: t,
height: t
})
}), Object(Ip.jsxs)("div", {
style: {
flex: 1
},
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(Tue, {
style: {
color: n
},
children: null !== (s = null == e ? void 0 : e.name) && void 0 !== s ? s : ""
})
}), o && Object(Ip.jsx)("div", {
style: {
marginTop: 4
},
children: Object(Ip.jsx)(Eue, {
style: {
color: r
},
children: d
})
})]
})]
})
}
}, {
key: "render",
value: function() {
var e, t, n = this.props, r = n.author, i = n.width, o = n.templateData, a = n.background, l = n.textColor, s = n.subTextColor, c = n.radius, u = n.shadow, d = i - 48 >= 140 ? 70 : (i - 48) / 2, p = null === (e = null == o ? void 0 : o.enableAvatar) || void 0 === e || e, h = null === (t = null == o ? void 0 : o.enableCount) || void 0 === t || t;
return Object(Ip.jsx)(Mue, {
style: {
width: i,
backgroundColor: a,
borderRadius: c,
boxShadow: u
},
children: null != r && "object" == typeof r ? this._renderData(r, d, l, s, p, h) : this._renderLoading(d, p, h)
})
}
}]),
n
}(l.Component), Nue = {
list: $ce,
carousel: nue,
grid: yue
}, zue = {
vertical: _ue,
contained: Iue
}, Due = ps.a.CancelToken, Lue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
authors: [],
loading: !0
},
e.source = Due.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, i, o, a, l, s, c, u, d;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
i = e.props,
o = i.widget.fields,
a = i.language,
l = i.translate,
s = l ? a : "en",
c = null !== (n = Number(null !== (r = null == o ? void 0 : o.limit) && void 0 !== r ? r : 4)) && void 0 !== n ? n : 4,
u = {
lang: s,
per_page: c
},
t.next = 7,
fc(u, e.source.token);
case 7:
d = t.sent,
yh()(d) ? e.setState({
authors: d,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 14;
break;
case 11:
t.prev = 11,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 14:
case "end":
return t.stop()
}
}
), t, null, [[0, 11]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch post author canceled by the user.")
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o;
(null == e ? void 0 : e.language) === this.props.language && mh()(null === (r = e.widget.fields) || void 0 === r ? void 0 : r.limit, null === (i = this.props.widget) || void 0 === i || null === (o = i.fields) || void 0 === o ? void 0 : o.limit) || this.setState({
loading: !0
}, this._fetchData)
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p, h = this.state, f = h.authors, b = h.loading, g = this.props, m = g.widget, v = m.styles, y = m.fields, x = m.layout, O = g.width, j = g.darkModeKey, k = rH(Cu()(v, ["background", j], ec.transparent)), w = null !== (e = Number(Cu()(v, "height", 300))) && void 0 !== e ? e : 300, C = null !== (t = Number(Cu()(v, "width", 300))) && void 0 !== t ? t : 300, _ = null !== (n = Number(Cu()(v, ["col"], 2))) && void 0 !== n ? n : 2, M = null !== (r = Number(Cu()(v, ["ratio"], 1))) && void 0 !== r ? r : 1, S = null !== (i = Number(Cu()(v, ["pad"], 12))) && void 0 !== i ? i : 12, A = rH(Cu()(v, ["backgroundItem", j], ec.grayColor)), T = rH(Cu()(v, ["textColor", j], ec.black)), E = rH(Cu()(v, ["subTextColor", j], ec.tertiaryText)), I = null !== (o = Number(Cu()(v, ["radiusItem"], 8))) && void 0 !== o ? o : 8, N = rH(Cu()(v, ["shadowColor", j], ec.transparent)), z = null !== (a = Number(Cu()(v, ["offsetX"], 0))) && void 0 !== a ? a : 0, D = null !== (l = Number(Cu()(v, ["offsetY"], 4))) && void 0 !== l ? l : 4, L = null !== (s = Number(Cu()(v, ["blurRadius"], 24))) && void 0 !== s ? s : 24, R = null !== (c = Number(Cu()(v, ["spreadRadius"], 0))) && void 0 !== c ? c : 0, P = null !== (u = Number(null !== (d = null == y ? void 0 : y.limit) && void 0 !== d ? d : 4)) && void 0 !== u ? u : 4, B = Cu()(y, ["template", "template"], "vertical"), F = Cu()(y, ["template", "data"], {}), V = FX(O, v.padding, v.margin), W = "".concat(z, "px ").concat(D, "px ").concat(L, "px ").concat(R, "px ").concat(N), q = null !== (p = Nue[x]) && void 0 !== p ? p : Nue.list, H = b ? P : f.length;
return Object(Ip.jsx)(Jq, {
margin: null == v ? void 0 : v.margin,
padding: null == v ? void 0 : v.padding,
style: {
backgroundColor: k,
height: "carousel" === x ? w : "auto",
boxSizing: "border-box",
overflow: "hidden"
},
children: Object(Ip.jsx)(q, {
length: H,
widthView: V,
widthItem: C,
pad: S,
col: _,
ratio: M,
renderItem: function(e, t) {
var n, r = null !== (n = zue[B]) && void 0 !== n ? n : zue.vertical;
return Object(Ip.jsx)(r, {
author: b ? null : f[e],
width: t,
templateData: F,
background: A,
textColor: T,
subTextColor: E,
radius: I,
shadow: W
})
}
})
})
}
}]),
n
}(l.Component), Rue = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Lue), Pue = Mu.b.div(bue || (bue = _u(["\n display: flex;\n flex-wrap: wrap;\n margin: ", "px;\n"])), (function(e) {
return e.margin
}
)), Bue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = new Array(t).fill(0)
, o = n / 2;
return Object(Ip.jsx)(Pue, {
margin: -o,
children: i.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
padding: o
},
children: r(t)
}, t)
}
))
})
}
}]),
n
}(l.Component), Fue = Bue, Vue = Mu.b.div(gue || (gue = _u(["\n display: flex;\n flex-wrap: nowrap;\n margin: 0px ", "px;\n"])), (function(e) {
return e.margin
}
)), Wue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = new Array(t).fill(0)
, o = n / 2;
return Object(Ip.jsx)(Vue, {
margin: -o,
children: i.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
paddingLeft: o,
paddingRight: o
},
children: r(t)
}, t)
}
))
})
}
}]),
n
}(l.Component), que = Wue, Hue = Mu.b.div(mue || (mue = _u(["\n padding: 0px 24px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items; center;\n border: 1px solid;\n"]))), Uue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.item, r = t.height, i = t.radius, o = t.color, a = t.borderColor, l = t.backgroundColor;
return Object(Ip.jsxs)(Hue, {
style: {
height: r,
color: o,
backgroundColor: l,
borderColor: a,
borderRadius: i
},
children: ["#", null !== (e = null == n ? void 0 : n.name) && void 0 !== e ? e : ""]
})
}
}]),
n
}(l.Component), Xue = Uue, Gue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props.height;
return Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: e,
width: "100&"
}]
}),
width: 80,
styles: hS
})
}
}]),
n
}(l.Component), Kue = Gue, Yue = ps.a.CancelToken, Que = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
tags: [],
loading: !0
},
e.source = Yue.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, i, o, a, l, s;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
n = e.props,
r = n.widget.fields,
i = n.translate,
o = n.language,
a = Number(Cu()(r, ["limit"], 4)),
l = {
per_page: a,
lang: i ? o : "en"
},
t.next = 6,
hc(l, e.source.token);
case 6:
s = t.sent,
yh()(s) ? e.setState({
tags: s,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 13;
break;
case 10:
t.prev = 10,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 13:
case "end":
return t.stop()
}
}
), t, null, [[0, 10]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = t.layout
, o = e.darkModeKey
, a = this.state
, l = a.tags
, s = a.loading
, c = rH(Cu()(r, ["background", o], ec.transparent))
, u = Number(Cu()(n, ["limit"], 4))
, d = Number(Cu()(n, ["height"], 34))
, p = Number(Cu()(n, ["borderRadius"], 5))
, h = Number(Cu()(n, ["pad"], 8))
, f = rH(Cu()(r, ["itemColor", o], ec.black))
, b = rH(Cu()(r, ["itemBackground", o], ec.transparent))
, g = rH(Cu()(r, ["itemBorderColor", o], ec.borderLightMode));
return Object(Ip.jsx)(Jq, {
margin: r.margin,
padding: r.padding,
style: {
backgroundColor: c,
overflow: "hidden"
},
children: s ? this._renderLayout(i, u, h, (function(e) {
return Object(Ip.jsx)(Kue, {
height: d
})
}
)) : this._renderLayout(i, l.length, h, (function(e) {
return Object(Ip.jsx)(Xue, {
item: l[e],
height: d,
radius: p,
color: f,
borderColor: g,
backgroundColor: b
})
}
))
})
}
}, {
key: "_renderLayout",
value: function(e, t, n, r) {
return "carousel" === e ? Object(Ip.jsx)(que, {
length: t,
pad: n,
renderItem: r
}) : Object(Ip.jsx)(Fue, {
length: t,
pad: n,
renderItem: r
})
}
}]),
n
}(l.Component), Jue = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Que), Zue = ps.a.CancelToken, $ue = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = Zue.source(),
e.fetchData = function() {
var t, n = e.props, r = n.widget.fields, i = n.translate, o = n.language, a = {
lang: i ? o : "en",
per_page: Number((null == r ? void 0 : r.limit) || "4") > 0 ? Number((null == r ? void 0 : r.limit) || "4") : 4,
status: "publish",
orderby: "popularity",
order: "desc",
exclude: (null !== (t = null == r ? void 0 : r.excludeProduct) && void 0 !== t ? t : []).map((function(e) {
return e.key
}
))
};
e.getData(a)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.excludeProduct, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), ede = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))($ue), tde = ps.a.CancelToken, nde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = tde.source(),
e.fetchData = function() {
var t, n = e.props, r = n.widget.fields, i = n.translate, o = n.language, a = {
lang: i ? o : "en",
per_page: Number((null == r ? void 0 : r.limit) || "4") > 0 ? Number((null == r ? void 0 : r.limit) || "4") : 4,
status: "publish",
exclude: (null !== (t = null == r ? void 0 : r.excludeProduct) && void 0 !== t ? t : []).map((function(e) {
return e.key
}
))
};
e.getData(a)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.excludeProduct, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), rde = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(nde), ide = ps.a.CancelToken, ode = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = ide.source(),
e.fetchData = function() {
var t, n = e.props, r = n.widget.fields, i = n.translate, o = n.language, a = {
lang: i ? o : "en",
per_page: Number((null == r ? void 0 : r.limit) || "4") > 0 ? Number((null == r ? void 0 : r.limit) || "4") : 4,
status: "publish",
orderby: "rating",
order: "desc",
exclude: (null !== (t = null == r ? void 0 : r.excludeProduct) && void 0 !== t ? t : []).map((function(e) {
return e.key
}
))
};
e.getData(a)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.excludeProduct, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), ade = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(ode), lde = ps.a.CancelToken, sde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = lde.source(),
e.fetchData = function() {
var t, n = e.props, r = n.widget.fields, i = n.translate, o = n.language, a = {
lang: i ? o : "en",
per_page: Number((null == r ? void 0 : r.limit) || "4") > 0 ? Number((null == r ? void 0 : r.limit) || "4") : 4,
status: "publish",
on_sale: !0,
exclude: (null !== (t = null == r ? void 0 : r.excludeProduct) && void 0 !== t ? t : []).map((function(e) {
return e.key
}
))
};
e.getData(a)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.excludeProduct, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), cde = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(sde), ude = ps.a.CancelToken, dde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = ude.source(),
e.fetchData = function() {
var t, n, r = e.props, i = r.widget.fields, o = r.translate, a = r.language, l = Number((null == i ? void 0 : i.limit) || "4") > 0 ? Number((null == i ? void 0 : i.limit) || "4") : 4, s = null !== (t = null == i ? void 0 : i.excludeProduct) && void 0 !== t ? t : [], c = {
lang: o ? a : "en",
per_page: l,
status: "publish",
orderby: "date",
order: "desc",
tag: (null !== (n = null == i ? void 0 : i.tags) && void 0 !== n ? n : []).map((function(e) {
return e.key
}
)),
exclude: s.map((function(e) {
return e.key
}
))
};
e.getData(c)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f, b, g, m;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.tags, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.tags) && mh()(null == e || null === (h = e.widget) || void 0 === h || null === (f = h.fields) || void 0 === f ? void 0 : f.excludeProduct, null === (b = this.props) || void 0 === b || null === (g = b.widget) || void 0 === g || null === (m = g.fields) || void 0 === m ? void 0 : m.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), pde = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(dde), hde = ps.a.CancelToken, fde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = hde.source(),
e.fetchData = function() {
var t, n = e.props, r = n.widget.fields, i = n.translate, o = n.language, a = {
lang: i ? o : "en",
per_page: Number((null == r ? void 0 : r.limit) || "4") > 0 ? Number((null == r ? void 0 : r.limit) || "4") : 4,
status: "publish",
include: (null !== (t = null == r ? void 0 : r.product) && void 0 !== t ? t : []).map((function(e) {
return e.key
}
))
};
e.getData(a)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.product, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.product) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), bde = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(fde), gde = ps.a.CancelToken, mde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = gde.source(),
e.fetchData = function() {
var t = e.props
, n = t.widget.fields
, r = t.translate
, i = t.language
, o = {
lang: r ? i : "en",
per_page: Number((null == n ? void 0 : n.limit) || "4") > 0 ? Number((null == n ? void 0 : n.limit) || "4") : 4,
status: "publish"
};
e.getData(o)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.product, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.product) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), vde = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(mde), yde = ps.a.CancelToken, xde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = yde.source(),
e.fetchData = function() {
var t, n = e.props, r = n.widget.fields, i = n.translate, o = n.language, a = {
lang: i ? o : "en",
per_page: Number((null == r ? void 0 : r.limit) || "4") > 0 ? Number((null == r ? void 0 : r.limit) || "4") : 4,
status: "publish",
featured: !0,
exclude: (null !== (t = null == r ? void 0 : r.excludeProduct) && void 0 !== t ? t : []).map((function(e) {
return e.key
}
))
};
e.getData(a)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.excludeProduct, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.excludeProduct) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = i.darkModeKey, u = rH(Cu()(a, ["background", c], ec.transparent)), d = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, p = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
backgroundColor: u,
height: "carousel" === l || "slideshow" === l ? d : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: p,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), Ode = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(xde), jde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = e.width;
return Object(Ip.jsx)(Yce, {
widget: t,
width: n
})
}
}]),
n
}(l.Component), kde = jde, wde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.renderItem
, i = e.widthView
, o = new Array(null != t ? t : 0).fill(0);
return o.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
marginBottom: t < o.length - 1 ? n : 0
},
children: r(t, i)
}, t)
}
))
}
}]),
n
}(l.Component), Cde = wde, _de = Mu.b.div(vue || (vue = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n"]))), Mde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.renderItem
, r = e.pad
, i = e.widthItem
, o = new Array(t).fill(0);
return Object(Ip.jsx)(_de, {
children: o.map((function(e, t) {
var a = t < o.length - 1 ? {
marginRight: r
} : {};
return Object(Ip.jsx)("div", {
style: a,
children: n(t, i)
}, t)
}
))
})
}
}]),
n
}(l.Component);
Mde.defaultProps = {
pad: 0
};
var Sde, Ade = Mde, Tde = Mu.b.div(Sde || (Sde = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), Ede = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.col
, i = e.ratio
, o = e.widthView
, a = e.renderItem
, l = Array.from({
length: null != t ? t : 0
}, (function(e, t) {
return t
}
))
, s = (o - n * (r - 1)) / r
, c = s / i;
return Object(Ip.jsx)(Tde, {
style: {
margin: -n / 2
},
children: l.map((function(e, t) {
return Object(Ip.jsx)("div", {
style: {
width: s,
margin: n / 2
},
children: Object(Ip.jsx)("div", {
style: {
height: c,
overflow: "hidden"
},
children: a(t, s)
})
}, t)
}
))
})
}
}]),
n
}(l.Component);
Ede.defaultProps = {
pad: 0,
col: 2,
ratio: 1
};
var Ide, Nde, zde, Dde, Lde, Rde = Ede, Pde = Mu.b.div(Ide || (Ide = _u(["\n height: 60px;\n border-radius: 50%;\n overflow: hidden;\n border: 1px solid #dee2e6;\n"]))), Bde = Mu.b.div(Nde || (Nde = _u(["\n position: absolute;\n top: 0px;\n right: 0px;\n height: 24px;\n width: 24px;\n background-color: #21BA45;\n border-radius: 50%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"]))), Fde = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.item, r = t.width, i = null !== (e = n.gravatar) && void 0 !== e ? e : "";
return Object(Ip.jsxs)("div", {
style: {
width: r,
position: "relative"
},
children: [Object(Ip.jsx)(Pde, {
style: {
width: r
},
children: Object(Ip.jsx)("img", {
src: i.length > 0 ? i : Gw.noImage,
alt: n.gravatar,
width: r,
height: 60
})
}), n.featured && Object(Ip.jsx)(Bde, {
children: Object(Ip.jsx)(YX, {
icon: {
type: "feather",
name: "award"
},
style: {
width: 14,
height: 14,
color: "white"
}
})
})]
})
}
}]),
n
}(l.Component), Vde = Fde, Wde = Mu.b.div(zde || (zde = _u(["\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n margin: -2px;\n"]))), qde = Mu.b.span(Dde || (Dde = _u(["\n display: inline-block;\n color: #0686f8;\n font-size: 14px;\n font-weight: 500;\n margin: 2px;\n"]))), Hde = Mu.b.span(Lde || (Lde = _u(["\n display: inline-block;\n font-size: 10px;\n margin: 2px;\n"]))), Ude = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i = this.props, o = i.item, a = i.color, l = i.enableBasic, s = Number(null !== (e = null === (t = o.rating) || void 0 === t ? void 0 : t.avg) && void 0 !== e ? e : 0), c = Number(null !== (n = null === (r = o.rating) || void 0 === r ? void 0 : r.count) && void 0 !== n ? n : 0);
return Object(Ip.jsxs)(Wde, {
children: [Object(Ip.jsx)("div", {
style: {
margin: 2
},
children: l ? Object(Ip.jsx)(lp, {
iconName: "FavoriteStarFill",
style: {
fontSize: 12,
color: "#FFA200"
}
}) : Object(Ip.jsx)(VZ, {
initValue: s
})
}), Object(Ip.jsx)(qde, {
children: s.toFixed(1)
}), Object(Ip.jsxs)(Hde, {
style: {
color: a
},
children: ["(", c, ")"]
})]
})
}
}]),
n
}(l.Component);
Ude.defaultProps = {
enableBasic: !0
};
var Xde, Gde, Kde, Yde, Qde, Jde, Zde, $de, epe, tpe, npe, rpe, ipe, ope, ape, lpe, spe, cpe, upe = Ude, dpe = Mu.b.div(Xde || (Xde = _u(["\n padding: 24px;\n overflow: hidden;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n"]))), ppe = Mu.b.div(Gde || (Gde = _u(["\n height: 60px;\n border-radius: 50%;\n overflow: hidden;\n"]))), hpe = Mu.b.span(Kde || (Kde = _u(["\n font-size: 16px;\n font-weight: 500px;\n"]))), fpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderLoading",
value: function(e) {
var t = this.props.enableRating;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ppe, {
style: {
width: e
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 60,
width: "100%"
}]
})
}),
width: e,
styles: hS
})
}), Object(Ip.jsx)("div", {
style: {
width: "70%",
marginTop: 16
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 18,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}), t ? Object(Ip.jsx)("div", {
style: {
width: "40%",
marginTop: 8
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}) : null]
})
}
}, {
key: "_renderData",
value: function(e) {
var t, n = this.props, r = n.item, i = n.textColor, o = n.subTextColor, a = n.enableRating;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(Vde, {
item: r,
width: e
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(hpe, {
style: {
color: i
},
children: null !== (t = r.store_name) && void 0 !== t ? t : ""
})
}), a ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(upe, {
item: r,
color: o
})
}) : null]
})
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.widthItem
, r = e.background
, i = e.radius
, o = e.shadow
, a = n - 48 > 0 && n - 48 < 60 ? n - 48 : 60;
return Object(Ip.jsx)(dpe, {
style: {
width: n,
backgroundColor: r,
borderRadius: i,
boxShadow: o
},
children: null != t && "object" == typeof t ? this._renderData(a) : this._renderLoading(a)
})
}
}]),
n
}(l.Component), bpe = fpe, gpe = Mu.b.div(Yde || (Yde = _u(["\n padding: 24px;\n overflow: hidden;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n text-align: left;\n"]))), mpe = Mu.b.div(Qde || (Qde = _u(["\n height: 60px;\n border-radius: 50%;\n overflow: hidden;\n"]))), vpe = Mu.b.span(Jde || (Jde = _u(["\n font-size: 16px;\n font-weight: 500px;\n"]))), ype = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderLoading",
value: function(e) {
var t = this.props.enableRating;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginRight: 12
},
children: [Object(Ip.jsx)("div", {
style: {
width: "70%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 18,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}), t ? Object(Ip.jsx)("div", {
style: {
width: "40%",
marginTop: 8
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}) : null]
}), Object(Ip.jsx)(mpe, {
style: {
width: e
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 60,
width: "100%"
}]
})
}),
width: e,
styles: hS
})
})]
})
}
}, {
key: "_renderData",
value: function(e) {
var t, n = this.props, r = n.item, i = n.textColor, o = n.subTextColor, a = n.enableRating;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginRight: 12
},
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(vpe, {
style: {
color: i
},
children: null !== (t = r.store_name) && void 0 !== t ? t : ""
})
}), a ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(upe, {
item: r,
enableBasic: !1,
color: o
})
}) : null]
}), Object(Ip.jsx)(Vde, {
item: r,
width: e
})]
})
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.item
, n = e.widthItem
, r = e.background
, i = e.radius
, o = e.shadow
, a = n - 48 > 0 && n - 48 < 60 ? n - 48 : 60;
return Object(Ip.jsx)(gpe, {
style: {
width: n,
backgroundColor: r,
borderRadius: i,
boxShadow: o
},
children: null != t && "object" == typeof t ? this._renderData(a) : this._renderLoading(a)
})
}
}]),
n
}(l.Component), xpe = ype, Ope = Mu.b.div(Zde || (Zde = _u(["\n overflow: hidden;\n box-sizing: border-box;\n text-align: left;\n"]))), jpe = Mu.b.div($de || ($de = _u(["\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n display: flex;\n align-items: center;\n padding: 24px;\n margin-top: -11px;\n"]))), kpe = Mu.b.div(epe || (epe = _u(["\n height: 60px;\n border-radius: 50%;\n overflow: hidden;\n"]))), wpe = Mu.b.span(tpe || (tpe = _u(["\n font-size: 16px;\n font-weight: 500px;\n"]))), Cpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderLoading",
value: function(e, t, n) {
var r = this.props
, i = r.radius
, o = r.background
, a = r.shadow
, l = r.enableRating;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: n,
width: "heightBanner%"
}]
})
}),
width: "100%",
styles: hS
}), Object(Ip.jsxs)(jpe, {
style: {
backgroundColor: o,
borderRadius: i,
boxShadow: a
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginRight: 12
},
children: [Object(Ip.jsx)("div", {
style: {
width: "70%"
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 18,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}), l ? Object(Ip.jsx)("div", {
style: {
width: "40%",
marginTop: 8
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 12,
width: "100%"
}]
})
}),
width: "100%",
styles: hS
})
}) : null]
}), Object(Ip.jsx)(kpe, {
style: {
width: e
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 60,
width: "100%"
}]
})
}),
width: e,
styles: hS
})
})]
})]
})
}
}, {
key: "_renderData",
value: function(e, t, n) {
var r, i, o = this.props, a = o.item, l = o.background, s = o.textColor, c = o.subTextColor, u = o.radius, d = o.shadow, p = o.enableRating, h = null !== (r = null == a ? void 0 : a.banner) && void 0 !== r ? r : "";
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
width: t,
height: n
},
children: Object(Ip.jsx)("img", {
src: h.length > 0 ? h : Gw.noImage,
alt: h,
width: t,
height: n
})
}), Object(Ip.jsxs)(jpe, {
style: {
backgroundColor: l,
borderRadius: u,
boxShadow: d
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginRight: 12
},
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(wpe, {
style: {
color: s
},
children: null !== (i = a.store_name) && void 0 !== i ? i : ""
})
}), p ? Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(upe, {
item: a,
enableBasic: !1,
color: c
})
}) : null]
}), Object(Ip.jsx)(Vde, {
item: a,
width: e
})]
})]
})
}
}, {
key: "render",
value: function() {
var e, t, n = this.props, r = n.item, i = n.templateData, o = n.widthItem, a = n.background, l = n.radius, s = n.shadow, c = o - 48 > 0 && o - 48 < 60 ? o - 48 : 60, u = null !== (e = Number(Cu()(i, ["sizeBanner", "width"], 334))) && void 0 !== e ? e : 334, d = o, p = d * (null !== (t = Number(Cu()(i, ["sizeBanner", "height"], 174))) && void 0 !== t ? t : 174) / u;
return Object(Ip.jsx)(Ope, {
style: {
width: o,
backgroundColor: a,
borderRadius: l,
boxShadow: s
},
children: null != r && "object" == typeof r ? this._renderData(c, d, p) : this._renderLoading(c, d, p)
})
}
}]),
n
}(l.Component), _pe = Cpe, Mpe = Mu.b.div(npe || (npe = _u(["\n overflow: hidden;\n box-sizing: border-box;\n position: relative;\n text-align: left;\n"]))), Spe = Mu.b.div(rpe || (rpe = _u(["\n position: absolute;\n top: 0px;\n bottom: 0px;\n left: 0px;\n right: 0px;\n box-sizing: border-box;\n"]))), Ape = Mu.b.span(ipe || (ipe = _u(["\n font-size: 16px;\n font-weight: 500px;\n"]))), Tpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderLoading",
value: function(e, t) {
return Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: t,
width: "heightBanner%"
}]
})
}),
width: "100%",
styles: hS
})
}
}, {
key: "_renderData",
value: function(e, t) {
var n, r, i = this.props, o = i.item, a = i.templateData, l = i.textColor, s = i.subTextColor, c = i.darkModeKey, u = i.enableRating, d = rH(Cu()(a, ["colorBegin", c], ec.transparent)), p = rH(Cu()(a, ["colorEnd", c], ec.black)), h = null !== (n = null == o ? void 0 : o.banner) && void 0 !== n ? n : "";
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
width: e,
height: t
},
children: Object(Ip.jsx)("img", {
src: h.length > 0 ? h : Gw.noImage,
alt: h,
width: e,
height: t
})
}), Object(Ip.jsx)(Spe, {
style: {
background: "linear-gradient(".concat(d, ", ").concat(p, ")")
}
}), Object(Ip.jsxs)(Spe, {
style: {
padding: "16px 22px",
top: "auto",
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsxs)("div", {
style: {
flex: 1,
marginRight: 16
},
children: [Object(Ip.jsx)("div", {
style: {
marginBottom: 11
},
children: Object(Ip.jsx)(Ape, {
style: {
color: l
},
children: null !== (r = o.store_name) && void 0 !== r ? r : ""
})
}), u ? Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(upe, {
item: o,
enableBasic: !1,
color: s
})
}) : null]
}), Object(Ip.jsx)(Vde, {
item: o,
width: 60
})]
})]
})
}
}, {
key: "render",
value: function() {
var e, t, n = this.props, r = n.item, i = n.templateData, o = n.widthItem, a = n.background, l = n.radius, s = n.shadow, c = null !== (e = Number(Cu()(i, ["sizeBanner", "width"], 334))) && void 0 !== e ? e : 334, u = o, d = u * (null !== (t = Number(Cu()(i, ["sizeBanner", "height"], 174))) && void 0 !== t ? t : 174) / c;
return Object(Ip.jsx)(Mpe, {
style: {
width: o,
backgroundColor: a,
borderRadius: l,
boxShadow: s
},
children: null != r && "object" == typeof r ? this._renderData(u, d) : this._renderLoading(u, d)
})
}
}]),
n
}(l.Component), Epe = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(Tpe), Ipe = {
list: Cde,
carousel: Ade,
grid: Rde
}, Npe = {
contained: bpe,
horizontal: xpe,
emerge: _pe,
gradient: Epe
}, zpe = ps.a.CancelToken, Dpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
vendors: [],
loading: !0
},
e.source = zpe.source(),
e._fetchData = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y, x;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return l = e.props,
s = l.widget.fields,
c = l.language,
u = l.translate,
d = l.orderby,
p = u ? c : "en",
h = null !== (n = Number(null !== (r = null == s ? void 0 : s.limit) && void 0 !== r ? r : 4)) && void 0 !== n ? n : 4,
f = Cu()(s, ["search", u ? c : "text"], ""),
b = null !== (i = null == s ? void 0 : s.categories) && void 0 !== i ? i : [],
g = null !== (o = null == s ? void 0 : s.includes) && void 0 !== o ? o : [],
m = null !== (a = null == s ? void 0 : s.excludes) && void 0 !== a ? a : [],
t.prev = 7,
v = {
lang: p,
per_page: h,
order: "asc",
orderby: d,
search: f,
category: b.length > 0 ? Z$()(b.map((function(e, t) {
return e.key
}
)), ",") : null,
include: g.length > 0 ? Z$()(g.map((function(e, t) {
return e.key
}
)), ",") : null,
exclude: m.length > 0 ? Z$()(m.map((function(e, t) {
return e.key
}
)), ",") : null
},
t.next = 11,
wc(v, e.source.token);
case 11:
y = t.sent,
yh()(y) ? e.setState({
vendors: y,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 19;
break;
case 15:
t.prev = 15,
t.t0 = t.catch(7),
x = Array.from({
length: h
}, (function(e, t) {
return {
store_name: "Vendor ".concat(t + 1),
banner: Zp.NoImage,
gravatar: Zp.NoImage,
featured: !1,
rating: {
rating: 0,
count: 0,
avg: 0
}
}
}
)),
ps.a.isCancel(t.t0) || e.setState({
loading: !1,
vendors: x
});
case 19:
case "end":
return t.stop()
}
}
), t, null, [[7, 15]])
}
))),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetchData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch vendor canceled by the user.")
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y, x, O, j, k;
(null == e ? void 0 : e.language) === this.props.language && mh()(null === (r = e.widget.fields) || void 0 === r ? void 0 : r.limit, null === (i = this.props.widget) || void 0 === i || null === (o = i.fields) || void 0 === o ? void 0 : o.limit) && mh()(null === (a = e.widget.fields) || void 0 === a ? void 0 : a.search, null === (l = this.props.widget) || void 0 === l || null === (s = l.fields) || void 0 === s ? void 0 : s.search) && mh()(null == e || null === (c = e.widget) || void 0 === c || null === (u = c.fields) || void 0 === u ? void 0 : u.categories, null === (d = this.props) || void 0 === d || null === (p = d.widget) || void 0 === p || null === (h = p.fields) || void 0 === h ? void 0 : h.categories) && mh()(null == e || null === (f = e.widget) || void 0 === f || null === (b = f.fields) || void 0 === b ? void 0 : b.includes, null === (g = this.props) || void 0 === g || null === (m = g.widget) || void 0 === m || null === (v = m.fields) || void 0 === v ? void 0 : v.includes) && mh()(null == e || null === (y = e.widget) || void 0 === y || null === (x = y.fields) || void 0 === x ? void 0 : x.exludes, null === (O = this.props) || void 0 === O || null === (j = O.widget) || void 0 === j || null === (k = j.fields) || void 0 === k ? void 0 : k.exludes) || this.setState({
loading: !0
}, this._fetchData)
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p, h = this.state, f = h.vendors, b = h.loading, g = this.props, m = g.widget, v = m.styles, y = m.fields, x = m.layout, O = g.width, j = g.darkModeKey, k = rH(Cu()(v, ["background", j], ec.transparent)), w = null !== (e = Number(Cu()(v, "height", 300))) && void 0 !== e ? e : 300, C = null !== (t = Number(Cu()(v, "widthItem", 250))) && void 0 !== t ? t : 250, _ = null !== (n = Number(Cu()(v, ["pad"], 12))) && void 0 !== n ? n : 12, M = null !== (r = Number(Cu()(v, ["col"], 2))) && void 0 !== r ? r : 2, S = null !== (i = Number(Cu()(v, ["ratio"], 1))) && void 0 !== i ? i : 1, A = rH(Cu()(v, ["backgroundColorItem", j], ec.grayColor)), T = rH(Cu()(v, ["textColor", j], ec.black)), E = rH(Cu()(v, ["subTextColor", j], ec.tertiaryText)), I = null !== (o = Number(Cu()(v, "radius", 8))) && void 0 !== o ? o : 8, N = rH(Cu()(v, ["shadowColor", j], ec.transparent)), z = null !== (a = Number(Cu()(v, ["offsetX"], 0))) && void 0 !== a ? a : 0, D = null !== (l = Number(Cu()(v, ["offsetY"], 4))) && void 0 !== l ? l : 4, L = null !== (s = Number(Cu()(v, ["blurRadius"], 24))) && void 0 !== s ? s : 24, R = null !== (c = Number(Cu()(v, ["spreadRadius"], 0))) && void 0 !== c ? c : 0, P = null !== (u = Number(null !== (d = null == y ? void 0 : y.limit) && void 0 !== d ? d : 4)) && void 0 !== u ? u : 4, B = Cu()(y, ["template", "template"], "contained"), F = Cu()(y, ["template", "data"], {}), V = Cu()(y, ["enableRating"], !0), W = null !== (p = Ipe[x]) && void 0 !== p ? p : Ipe.list, q = FX(O, null == v ? void 0 : v.padding, null == v ? void 0 : v.margin), H = "".concat(z, "px ").concat(D, "px ").concat(L, "px ").concat(R, "px ").concat(N), U = b ? P : f.length;
return Object(Ip.jsx)(Jq, {
margin: null == v ? void 0 : v.margin,
padding: null == v ? void 0 : v.padding,
style: {
backgroundColor: k,
height: "carousel" === x ? w : "auto",
boxSizing: "border-box",
overflow: "hidden"
},
children: Object(Ip.jsx)(W, {
length: U,
pad: _,
col: M,
ratio: S,
widthView: q,
widthItem: C,
renderItem: function(e, t) {
var n, r = null !== (n = Npe[B]) && void 0 !== n ? n : Npe.contained;
return Object(Ip.jsx)(r, {
item: b ? null : f[e],
widthItem: t,
templateData: F,
background: A,
textColor: T,
subTextColor: E,
radius: I,
shadow: H,
enableRating: V
})
}
})
})
}
}]),
n
}(l.Component), Lpe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Dpe), Rpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)(Lpe, _t(_t({}, this.props), {}, {
orderby: "selling"
}))
}
}]),
n
}(l.Component), Ppe = Rpe, Bpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)(Lpe, _t(_t({}, this.props), {}, {
orderby: "rating"
}))
}
}]),
n
}(l.Component), Fpe = Bpe, Vpe = ps.a.CancelToken, Wpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
products: [],
loading: !0
},
e.source = Vpe.source(),
e.fetchData = function() {
var t, n, r = e.props, i = r.widget.fields, o = r.translate, a = r.language, l = o ? a : "text", s = Number((null == i ? void 0 : i.limit) || "4") > 0 ? Number((null == i ? void 0 : i.limit) || "4") : 4, c = Cu()(i, ["search", l], ""), u = null !== (t = null == i ? void 0 : i.categories) && void 0 !== t ? t : [], d = null !== (n = null == i ? void 0 : i.tags) && void 0 !== n ? n : [], p = {
lang: o ? a : "en",
per_page: s,
status: "publish",
orderby: "date",
order: "desc",
search: c,
category: u.length > 0 ? u.map((function(e) {
return e.key
}
)).join(",") : null,
tag: d.map((function(e) {
return e.key
}
))
};
e.getData(p)
}
,
e.getData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
t.next = 3,
bc(n, e.source.token);
case 3:
r = t.sent,
yh()(r) ? e.setState({
products: r,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 10;
break;
case 7:
t.prev = 7,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 10:
case "end":
return t.stop()
}
}
), t, null, [[0, 7]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.fetchData()
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r, i, o, a, l, s, c, u, d, p, h, f, b, g, m, v, y, x, O, j;
(null == e ? void 0 : e.language) === this.props.language && (null == e || null === (r = e.widget) || void 0 === r || null === (i = r.fields) || void 0 === i ? void 0 : i.limit) === (null === (o = this.props) || void 0 === o || null === (a = o.widget) || void 0 === a || null === (l = a.fields) || void 0 === l ? void 0 : l.limit) && mh()(null == e || null === (s = e.widget) || void 0 === s || null === (c = s.fields) || void 0 === c ? void 0 : c.search, null === (u = this.props) || void 0 === u || null === (d = u.widget) || void 0 === d || null === (p = d.fields) || void 0 === p ? void 0 : p.search) && mh()(null == e || null === (h = e.widget) || void 0 === h || null === (f = h.fields) || void 0 === f ? void 0 : f.tags, null === (b = this.props) || void 0 === b || null === (g = b.widget) || void 0 === g || null === (m = g.fields) || void 0 === m ? void 0 : m.tags) && mh()(null == e || null === (v = e.widget) || void 0 === v || null === (y = v.fields) || void 0 === y ? void 0 : y.categories, null === (x = this.props) || void 0 === x || null === (O = x.widget) || void 0 === O || null === (j = O.fields) || void 0 === j ? void 0 : j.categories) || this.setState({
loading: !0,
products: []
}, this.fetchData)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t = this.state, n = t.products, r = t.loading, i = this.props, o = i.widget, a = o.styles, l = o.layout, s = i.width, c = null !== (e = Number(Cu()(a, ["height"], 300))) && void 0 !== e ? e : 300, u = FX(s, null == a ? void 0 : a.padding, null == a ? void 0 : a.margin);
return Object(Ip.jsx)(Jq, {
padding: null == a ? void 0 : a.padding,
margin: null == a ? void 0 : a.margin,
style: {
height: "carousel" === l || "slideshow" === l ? c : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(f1, {
widget: this.props.widget,
width: u,
products: n,
loading: r
})
})
}
}]),
n
}(l.Component), qpe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(Wpe), Hpe = Mu.b.ul(ope || (ope = _u(["\n display: flex;\n overflow: hidden;\n overflow-x: auto;\n white-space: nowrap;\n list-style: none;\n padding: 0px;\n margin: 0px;\n li {\n display: inline-block;\n margin-right: 32px;\n font-weight: 600;\n padding-bottom: 4px;\n\n &.active {\n color: #0686f8;\n border-bottom: 2px solid #0686f8;\n }\n }\n"]))), Upe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
active: 0
},
e
}
return Object(At.a)(n, [{
key: "onChange",
value: function(e) {
this.state.active !== e && this.setState({
active: e
})
}
}, {
key: "buildWidgetProduct",
value: function(e, t, n) {
var r = Cu()(t, "layoutItem", "list");
return {
widgets: {
id: e.id,
type: e.type,
layout: r,
value: e.value,
fields: t,
styles: _t(_t({}, e.styles), {}, {
padding: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
margin: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
}
})
},
width: n
}
}
}, {
key: "render",
value: function() {
var e, t = this, n = this.state.active, r = this.props, i = r.widget, o = i.styles, a = i.fields, l = r.width, s = r.darkModeKey, c = r.language, u = r.translate, d = rH(Cu()(o, ["background", s], ec.transparent)), p = Cu()(a, "items", []), h = null !== (e = Number(Cu()(a, "pad", 12))) && void 0 !== e ? e : 12, f = FX(l, null == o ? void 0 : o.padding, null == o ? void 0 : o.margin), b = u ? c : "text", g = this.buildWidgetProduct(this.props.widget, Cu()(p, [n, "data"], {}), f);
return Object(Ip.jsx)(Jq, {
margin: null == o ? void 0 : o.margin,
padding: null == o ? void 0 : o.padding,
style: {
backgroundColor: d,
textAlign: "left"
},
children: p.length > 0 ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(Hpe, {
style: {
paddingBottom: h
},
children: p.map((function(e, r) {
var i = Cu()(e, ["data"], {})
, o = Cu()(i, ["name", b], "Latest");
return Object(Ip.jsx)("li", {
className: r === n ? "active" : "",
onClick: function() {
return t.onChange(r)
},
children: o
}, r)
}
))
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(qpe, {
widget: g.widgets,
width: f
})
})]
}) : null
})
}
}]),
n
}(l.Component), Xpe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Upe), Gpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = t.fields
, r = t.styles
, i = e.translate
, o = e.language
, a = e.darkModeKey
, l = rH(Cu()(r, ["background", a], ec.grayColor))
, s = i ? o : "text";
return Object(Ip.jsx)(Jq, {
padding: null == r ? void 0 : r.padding,
margin: null == r ? void 0 : r.margin,
style: {
backgroundColor: l,
textAlign: n.alignment || "center"
},
children: Object(Ip.jsx)("div", {
dangerouslySetInnerHTML: {
__html: Cu()(n, ["html", s])
}
})
})
}
}]),
n
}(l.Component), Kpe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Gpe), Ype = Mu.b.div(ape || (ape = _u(["\n min-height: 48px;\n border-radius: 8px;\n text-align: left;\n padding: 0px 16px;\n border: 1px solid;\n span {\n line-height: 48px;\n font-size: 14px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n }\n"]))), Qpe = Mu.b.div(lpe || (lpe = _u(["\n min-height: 48px;\n border-radius: 8px;\n padding: 0px 16px;\n span {\n line-height: 48px;\n font-size: 12px;\n font-weight: 500;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n }\n"]))), Jpe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.widget, r = n.styles, i = n.fields, o = t.darkModeKey, a = t.language, l = t.translate ? a : "text", s = rH(Cu()(r, ["background", o], ec.transparent)), c = Cu()(r, ["image", "src"], null), u = null !== (e = Number(Cu()(r, "sizeIcon", 20))) && void 0 !== e ? e : 20, d = rH(Cu()(r, ["colorIcon", o], ec.black)), p = rH(Cu()(r, ["backgroundInput", o], ec.transparent)), h = rH(Cu()(r, ["colorPlaceholder", o], ec.secondaryText)), f = rH(Cu()(r, ["borderInput", o], ec.borderLightMode)), b = rH(Cu()(r, ["backgroundButton", o], ec.primaryColor)), g = rH(Cu()(r, ["colorButton", o], ec.white)), m = {
fontSize: 22,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.black
}
}, v = {
fontSize: 22,
color: {
dark: ec.white,
value: ec.black
}
}, y = Cu()(i, ["title", l], ""), x = nH()(m, Cu()(i, ["title", "style"], {})), O = Cu()(i, ["description", l], ""), j = nH()(v, Cu()(i, ["description", "style"], {})), k = Cu()(i, ["placeholder", l], ""), w = Cu()(i, ["txtButton", l], "");
return Object(Ip.jsxs)(Jq, {
margin: null == r ? void 0 : r.margin,
padding: null == r ? void 0 : r.padding,
style: {
backgroundColor: s,
backgroundImage: null !== c ? "url(".concat(c, ")") : "",
backgroundSize: "cover",
boxSizing: "border-box",
textAlign: "center"
},
children: [Object(Ip.jsx)(YX, {
icon: {
type: "feather",
name: "email"
},
style: {
width: u,
height: u,
color: d
}
}), Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(pU, {
dataStyle: x,
darkModeKey: o,
children: y
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 8
},
children: Object(Ip.jsx)(pU, {
dataStyle: j,
darkModeKey: o,
children: O
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(Ype, {
style: {
backgroundColor: p,
borderColor: f
},
children: Object(Ip.jsx)("span", {
style: {
color: h
},
children: k
})
})
}), Object(Ip.jsx)("div", {
style: {
marginTop: 16
},
children: Object(Ip.jsx)(Qpe, {
style: {
backgroundColor: b
},
children: Object(Ip.jsx)("span", {
style: {
color: g
},
children: w
})
})
})]
})
}
}]),
n
}(l.Component), Zpe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(Jpe), $pe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.widget, r = n.styles, i = n.fields, o = t.darkModeKey, a = t.language, l = t.translate, s = rH(Cu()(r, ["background", o], ec.transparent)), c = null !== (e = Number(Cu()(i, ["height"], 200))) && void 0 !== e ? e : 200, u = l ? Cu()(i, ["url", a], "") : Cu()(i, ["url", "text"], "");
return Object(Ip.jsx)(Jq, {
padding: null == r ? void 0 : r.padding,
margin: null == r ? void 0 : r.margin,
style: {
backgroundColor: s,
height: u.length < 1 ? "auto" : c > 0 ? c : 668,
overflow: "hidden"
},
children: u.length > 0 && Object(Ip.jsx)("iframe", {
src: u,
title: u,
style: {
width: "100%",
height: "100%",
borderWidth: 0
}
})
})
}
}]),
n
}(l.Component), ehe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))($pe), the = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "PageBlock"
})
}
}]),
n
}(l.Component), nhe = the, rhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "PostBlock"
})
}
}]),
n
}(l.Component), ihe = rhe, ohe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "Product Quick View"
})
}
}]),
n
}(l.Component), ahe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(ohe), lhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.dividerWidth
, i = e.dividerColor
, o = e.renderItem
, a = e.widthView
, l = new Array(null != t ? t : 0).fill(0);
return l.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
marginBottom: t < l.length - 1 ? n : 0
},
children: [o(t, a, null), t < l.length - 1 && r > 0 ? Object(Ip.jsx)("div", {
style: {
height: r,
backgroundColor: i,
marginTop: n
}
}) : null]
}, t)
}
))
}
}]),
n
}(l.Component), she = lhe, che = Mu.b.div(spe || (spe = _u(["\n display: flex;\n white-space: nowrap;\n overflow-x: auto;\n // flex-wrap: wrap;\n"]))), uhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.dividerWidth
, i = e.dividerColor
, o = e.renderItem
, a = e.heightView
, l = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)(che, {
children: l.map((function(e, t) {
var s = t < l.length - 1 ? r > 0 ? {
borderRight: "".concat(r, "px solid ").concat(i),
paddingRight: n,
marginRight: n
} : {
marginRight: n
} : {};
return Object(Ip.jsx)("div", {
style: s,
children: o(t, null, a)
}, t)
}
))
})
}
}]),
n
}(l.Component), dhe = uhe, phe = Mu.b.div(cpe || (cpe = _u(["\n display: flex;\n .information-column {\n flex: 1;\n }\n"]))), hhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._renderItem = function(t, n, r, i) {
var o = e.props
, a = o.widthView
, l = o.pad
, s = o.renderItem
, c = o.dividerColor
, u = o.dividerWidth
, d = ((null != a ? a : 300) - l) / 2
, p = d;
n % 2 === r && (p = .8 * d);
var h = i ? 0 : l;
return Object(Ip.jsxs)("div", {
style: {
width: d
},
children: [s(t, d, p), !i && u > 0 ? Object(Ip.jsx)("div", {
style: {
height: u,
backgroundColor: c,
marginTop: l,
marginBottom: l
}
}) : Object(Ip.jsx)("div", {
style: {
height: h
}
})]
}, t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
for (var e = this, t = this.props, n = t.length, r = t.pad, i = Array.from({
length: null != n ? n : 0
}, (function(e, t) {
return t
}
)), o = [], a = [], l = 0; l < i.length; l++)
l % 2 == 0 ? o = o.concat(l) : a = a.concat(l);
return Object(Ip.jsxs)(phe, {
style: {
margin: "0px -".concat(r / 2, "px")
},
children: [Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: o.map((function(t, n) {
return e._renderItem(i[t], n, 0, !(n < o.length - 1))
}
))
}), Object(Ip.jsx)("div", {
className: "information-column",
style: {
margin: "0px ".concat(r / 2, "px")
},
children: a.map((function(t, n) {
return e._renderItem(i[t], n, 1, !(n < a.length - 1))
}
))
})]
})
}
}]),
n
}(l.Component);
hhe.defaultProps = {
pad: 0
};
var fhe = hhe
, bhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.pad
, i = e.renderItem
, o = e.dividerWidth
, a = e.dividerColor
, l = new Array(null != t ? t : 0).fill(0);
return Object(Ip.jsx)("div", {
className: "122121212",
children: l.map((function(e, t) {
return Object(Ip.jsxs)("div", {
style: {
width: null != n ? n : "auto",
marginBottom: t < l.length - 1 ? r : 0
},
children: [i(t, n, null), o > 0 && t < l.length - 1 ? Object(Ip.jsx)("div", {
style: {
height: o,
backgroundColor: a,
marginTop: r
}
}) : null]
}, t)
}
))
})
}
}]),
n
}(l.Component);
bhe.defaultProps = {
pad: 0
};
var ghe, mhe, vhe, yhe = bhe, xhe = Mu.b.div(ghe || (ghe = _u(["\n position: relative;\n"]))), Ohe = Mu.b.div(mhe || (mhe = _u(["\n position: absolute;\n bottom: 16px;\n left: 16px;\n right: 16px;\n margin: 0px -4px;\n display: flex;\n justify-content: center;\n"]))), jhe = Mu.b.div(vhe || (vhe = _u(["\n margin: 0px 4px;\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.background) && void 0 !== t ? t : "gray"
}
)), khe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "_renderDots",
value: function(e, t, n, r) {
for (var i = [], o = 0; o < e; o++)
i = i.concat(Object(Ip.jsx)(jhe, {
background: o === t ? r : n
}, o));
return i.map((function(e) {
return e
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.widthView
, r = e.renderItem
, i = e.heightView
, o = e.indicatorColor
, a = e.indicatorActiveColor
, l = new Array(null != t ? t : 0).fill(0);
return null === (l.length > 0 ? l[0] : null) ? null : Object(Ip.jsxs)(xhe, {
children: [r(0, n, null != i ? i : 300), Object(Ip.jsx)(Ohe, {
children: this._renderDots(l.length, 0, o, a)
})]
})
}
}]),
n
}(l.Component);
khe.defaultProps = {
pad: 0
};
var whe, Che = khe, _he = Mu.b.div(whe || (whe = _u(["\n display: flex;\n flex-wrap: wrap;\n"]))), Mhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.length
, n = e.pad
, r = e.col
, i = e.ratio
, o = e.widthView
, a = e.dividerWidth
, l = e.dividerColor
, s = e.renderItem
, c = Array.from({
length: null != t ? t : 0
}, (function(e, t) {
return t
}
))
, u = (o - n * (r - 1)) / r
, d = u / i
, p = OT()(c.length / r);
return Object(Ip.jsx)(_he, {
style: {
margin: "0px -".concat(n / 2, "px")
},
children: c.map((function(e, t) {
var i = OT()((t + 1) / r);
return Object(Ip.jsxs)("div", {
style: {
width: u,
margin: "0px ".concat(n / 2, "px")
},
children: [s(t, u, d), a > 0 ? Object(Ip.jsx)("div", {
style: {
height: a,
backgroundColor: l,
margin: "".concat(n, i === p ? "px 0px 0px 0px" : "px 0px")
}
}) : Object(Ip.jsx)("div", {
style: {
height: n
}
})]
}, t)
}
))
})
}
}]),
n
}(l.Component);
Mhe.defaultProps = {
pad: 0,
col: 2,
ratio: 1
};
var She, Ahe, The, Ehe, Ihe, Nhe, zhe, Dhe, Lhe = Mhe, Rhe = Mu.b.span(She || (She = _u(["\n display: block;\n font-size: 14px;\n font-weight: 500;\n text-align: ", ";\n color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.textAlign) && void 0 !== t ? t : "left"
}
), (function(e) {
var t;
return null !== (t = e.color) && void 0 !== t ? t : "black"
}
)), Phe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d, p, h, f = this.props, b = f.brand, g = f.width, m = f.height, v = f.backgroundColor, y = f.dataTemplate, x = f.padding, O = f.textColor, j = f.radius, k = f.shadow, w = null != g ? g : 109, C = Qq(x, "paddingContent"), _ = null !== (e = Number(null !== (t = x.paddingContentLeft) && void 0 !== t ? t : 0)) && void 0 !== e ? e : 0, M = null !== (n = Number(null !== (r = x.paddingContentRight) && void 0 !== r ? r : 0)) && void 0 !== n ? n : 0, S = null !== (i = Number(null !== (o = x.paddingContentTop) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, A = null !== (a = Number(null !== (l = x.paddingContentBottom) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, T = null != m ? m - S - A : "auto", E = w - _ - M, I = "number" != typeof m ? 46 * E / 90 : T, N = null === (s = y.enableImage) || void 0 === s || s, z = null === (c = y.enableName) || void 0 === c || c, D = null !== (u = y.alignment) && void 0 !== u ? u : "left", L = null !== (d = y.imageSize) && void 0 !== d ? d : "cover";
if (!N && !z)
return Object(Ip.jsx)("div", {
style: {
backgroundColor: v,
width: E,
height: T,
padding: C,
borderRadius: j,
overflow: "hidden",
boxShadow: k
}
});
var R = (null == b || null === (p = b.image) || void 0 === p ? void 0 : p.src) || Zp.NoImage;
return Object(Ip.jsxs)("div", {
style: {
backgroundColor: v,
width: E,
padding: C,
height: T,
borderRadius: j,
overflow: "hidden",
boxShadow: k,
display: "flex",
flexDirection: "column"
},
children: [N ? Object(Ip.jsx)("div", {
style: null != m ? {
flex: 1,
overflow: "hidden"
} : {},
children: Object(Ip.jsx)("img", {
src: R,
width: E,
height: null != m ? "100%" : I,
style: {
objectFit: L
},
alt: R
})
}) : null, z ? Object(Ip.jsx)("div", {
style: N ? {
marginTop: 8
} : {},
children: Object(Ip.jsx)(Rhe, {
color: O,
textAlign: D,
children: null !== (h = null == b ? void 0 : b.name) && void 0 !== h ? h : "Brand"
})
}) : null]
})
}
}]),
n
}(l.Component), Bhe = Phe, Fhe = Mu.b.div(Ahe || (Ahe = _u(["\n overflow: hidden;\n position: relative;\n"]))), Vhe = Mu.b.div(The || (The = _u(["\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n"]))), Whe = Mu.b.span(Ehe || (Ehe = _u(["\n display: block;\n font-size: 14px;\n font-weight: 500;\n text-align: ", ";\n color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.textAlign) && void 0 !== t ? t : "left"
}
), (function(e) {
var t;
return null !== (t = e.color) && void 0 !== t ? t : "white"
}
)), qhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l = this.props, s = l.brand, c = l.width, u = l.height, d = l.backgroundColor, p = l.dataTemplate, h = l.padding, f = l.textColor, b = l.radius, g = l.shadow, m = l.darkModeKey, v = null != c ? c : 109, y = null != u ? u : v, x = rH(Cu()(p, ["opacityColor", m], ec.black)), O = null !== (e = Number(null !== (t = null == p ? void 0 : p.opacity) && void 0 !== t ? t : .5)) && void 0 !== e ? e : .5, j = null === (n = p.enableName) || void 0 === n || n, k = null !== (r = p.alignment) && void 0 !== r ? r : "left", w = null !== (i = p.imageSize) && void 0 !== i ? i : "cover", C = Qq(h, "paddingContent"), _ = (null == s || null === (o = s.image) || void 0 === o ? void 0 : o.src) || Zp.NoImage;
return Object(Ip.jsxs)(Fhe, {
style: {
backgroundColor: d,
width: v,
height: y,
borderRadius: b,
overflow: "hidden",
boxShadow: g,
position: "relative"
},
children: [Object(Ip.jsx)("img", {
src: _,
width: "100%",
height: "100%",
style: {
objectFit: w
},
alt: _
}), Object(Ip.jsx)(Vhe, {
style: {
backgroundColor: x,
opacity: O
}
}), j ? Object(Ip.jsx)(Vhe, {
style: {
display: "flex",
flexDirection: "column",
justifyContent: "flex-end"
},
children: Object(Ip.jsx)(Whe, {
color: f,
textAlign: k,
style: {
padding: C
},
children: null !== (a = null == s ? void 0 : s.name) && void 0 !== a ? a : "Brand"
})
}) : null]
})
}
}]),
n
}(l.Component), Hhe = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(qhe), Uhe = Mu.b.div(Ihe || (Ihe = _u(["\n display: flex;\n align-items: center;\n"]))), Xhe = Mu.b.img(Nhe || (Nhe = _u(["\n border-radius: 50%;\n"]))), Ghe = Mu.b.div(zhe || (zhe = _u(["\n flex: 1;\n text-align: left;\n"]))), Khe = Mu.b.span(Dhe || (Dhe = _u(["\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.color) && void 0 !== t ? t : "black"
}
)), Yhe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c = this.props, u = c.brand, d = c.width, p = c.height, h = c.backgroundColor, f = c.textColor, b = c.padding, g = c.radius, m = c.shadow, v = c.dataTemplate, y = null != d ? d : 300, x = null != p ? p : "auto", O = Qq(b, "paddingContent"), j = y - (null !== (e = Number(null !== (t = b.paddingContentLeft) && void 0 !== t ? t : 0)) && void 0 !== e ? e : 0) - (null !== (n = Number(null !== (r = b.paddingContentRight) && void 0 !== r ? r : 0)) && void 0 !== n ? n : 0), k = null == p ? j < 60 && j > 0 ? j : 60 : p < y && p < 60 && p > 0 ? p : 60, w = k, C = null === (i = v.enableImage) || void 0 === i || i, _ = null === (o = v.enableName) || void 0 === o || o, M = null !== (a = v.imageSize) && void 0 !== a ? a : "cover";
if (!C && !_)
return Object(Ip.jsx)("div", {
style: {
backgroundColor: h,
width: y,
height: x,
borderRadius: g,
overflow: "hidden",
boxShadow: m
}
});
var S = (null == u || null === (l = u.image) || void 0 === l ? void 0 : l.src) || Zp.NoImage;
return Object(Ip.jsx)("div", {
style: {
backgroundColor: h,
width: y,
height: x,
borderRadius: g,
overflow: "hidden",
boxShadow: m
},
children: Object(Ip.jsxs)(Uhe, {
style: {
padding: O
},
children: [C ? Object(Ip.jsx)(Xhe, {
src: S,
width: k,
height: w,
style: {
objectFit: M
}
}) : null, _ ? Object(Ip.jsx)(Ghe, {
style: C ? {
marginLeft: 16
} : {},
children: Object(Ip.jsx)(Khe, {
color: f,
children: null !== (s = null == u ? void 0 : u.name) && void 0 !== s ? s : "Brand"
})
}) : null]
})
})
}
}]),
n
}(l.Component);
Yhe.defaultProps = {
radius: 0
};
var Qhe, Jhe, Zhe = Yhe, $he = Mu.b.div(Qhe || (Qhe = _u(["\n flex: 1;\n text-align: left;\n"]))), efe = Mu.b.span(Jhe || (Jhe = _u(["\n font-size: 14px;\n font-weight: 500;\n color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.color) && void 0 !== t ? t : "black"
}
)), tfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r = this.props, i = r.brand, o = r.width, a = r.height, l = r.backgroundColor, s = r.textColor, c = r.padding, u = r.radius, d = r.shadow, p = r.dataTemplate, h = null != o ? o : 300, f = null != a ? a : "auto", b = Qq(c, "paddingContent"), g = null == a ? h < 92 && h > 0 ? h : 92 : a < h && a < 92 && h > 0 ? a : 92, m = g, v = null !== (e = p.imageSize) && void 0 !== e ? e : "cover", y = (null == i || null === (t = i.image) || void 0 === t ? void 0 : t.src) || Zp.NoImage;
return Object(Ip.jsxs)("div", {
style: {
backgroundColor: l,
width: h,
height: f,
borderRadius: u,
overflow: "hidden",
boxShadow: d,
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsx)($he, {
style: {
padding: b
},
children: Object(Ip.jsx)(efe, {
color: s,
children: null !== (n = null == i ? void 0 : i.name) && void 0 !== n ? n : "Brand"
})
}), Object(Ip.jsx)("img", {
src: y,
width: g,
height: m,
style: {
objectFit: v
},
alt: y
})]
})
}
}]),
n
}(l.Component);
tfe.defaultProps = {
radius: 0
};
var nfe = tfe
, rfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).renderText = function(e, t, n, r) {
var i = "".concat(t + 1, "%")
, o = "".concat("center" === n ? (100 - t) / 2 : 100 - t, "%");
return "left" === n ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: e,
width: i
}, {
type: _k.gap,
height: e,
width: o
}],
backgroundColor: r
}) : "right" === n ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: e,
width: o
}, {
type: _k.line,
height: e,
width: i
}],
backgroundColor: r
}) : Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: e,
width: o
}, {
type: _k.line,
height: e,
width: i
}, {
type: _k.gap,
height: e,
width: o
}],
backgroundColor: r
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d = this.props, p = d.width, h = d.height, f = d.backgroundColor, b = d.padding, g = d.radius, m = d.shadow, v = d.dataTemplate, y = null != p ? p : 109, x = Qq(b, "paddingContent"), O = null !== (e = Number(null !== (t = b.paddingContentLeft) && void 0 !== t ? t : 0)) && void 0 !== e ? e : 0, j = null !== (n = Number(null !== (r = b.paddingContentRight) && void 0 !== r ? r : 0)) && void 0 !== n ? n : 0, k = null !== (i = Number(null !== (o = b.paddingContentTop) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, w = null !== (a = Number(null !== (l = b.paddingContentBottom) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, C = null != h ? h - k - w : "auto", _ = y - O - j, M = "number" != typeof h ? 46 * _ / 90 : C, S = null === (s = v.enableImage) || void 0 === s || s, A = null === (c = v.enableName) || void 0 === c || c, T = null !== (u = v.alignment) && void 0 !== u ? u : "left";
return S || A ? Object(Ip.jsxs)("div", {
style: {
backgroundColor: f,
width: _,
padding: x,
height: C,
borderRadius: g,
overflow: "hidden",
boxShadow: m,
display: "flex",
flexDirection: "column"
},
children: [S ? Object(Ip.jsx)("div", {
style: null != h ? {
flex: 1,
overflow: "hidden"
} : {},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: null != M ? M : 200,
width: "100%"
}],
backgroundColor: f
})
}),
width: _,
styles: hS
})
}) : null, A ? Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsxs)("div", {
children: [S ? Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.gap,
height: 8,
width: "100%"
}],
backgroundColor: f
}) : null, this.renderText(19, 60, T, f)]
}),
width: _,
styles: hS
}) : null]
}) : Object(Ip.jsx)("div", {
style: {
backgroundColor: f,
width: _,
height: C,
padding: x,
borderRadius: g,
overflow: "hidden",
boxShadow: m
}
})
}
}]),
n
}(l.Component);
rfe.defaultProps = {
radius: 0
};
var ife = rfe
, ofe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.width
, n = e.height
, r = e.backgroundColor
, i = e.radius
, o = e.shadow
, a = null != t ? t : 109
, l = null != n ? n : a;
return Object(Ip.jsx)("div", {
style: {
backgroundColor: r,
width: a,
height: l,
borderRadius: i,
overflow: "hidden",
boxShadow: o
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: l,
width: "100%"
}],
backgroundColor: r
})
}),
width: a,
styles: hS
})
})
}
}]),
n
}(l.Component);
ofe.defaultProps = {
radius: 0
};
var afe = ofe
, lfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u = this.props, d = u.width, p = u.height, h = u.backgroundColor, f = u.padding, b = u.radius, g = u.shadow, m = u.dataTemplate, v = null != d ? d : 300, y = Qq(f, "paddingContent"), x = null !== (e = Number(null !== (t = f.paddingContentLeft) && void 0 !== t ? t : 0)) && void 0 !== e ? e : 0, O = null !== (n = Number(null !== (r = f.paddingContentRight) && void 0 !== r ? r : 0)) && void 0 !== n ? n : 0, j = null !== (i = Number(null !== (o = f.paddingContentTop) && void 0 !== o ? o : 0)) && void 0 !== i ? i : 0, k = null !== (a = Number(null !== (l = f.paddingContentBottom) && void 0 !== l ? l : 0)) && void 0 !== a ? a : 0, w = v - x - O, C = null != p ? p - j - k : "auto", _ = null == p ? w < 60 && w > 0 ? w : 60 : p < v && p < 60 && p > 0 ? p : 60, M = _, S = null === (s = m.enableImage) || void 0 === s || s, A = null === (c = m.enableName) || void 0 === c || c;
return S || A ? Object(Ip.jsxs)("div", {
style: {
backgroundColor: h,
width: w,
height: C,
padding: y,
borderRadius: b,
overflow: "hidden",
boxShadow: g,
display: "flex",
alignItems: "center"
},
children: [S ? Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: M,
width: "100%"
}],
backgroundColor: h
})
}),
width: _,
styles: {
shimmerWrapper: [{
backgroundColor: "#E0E0E0",
borderRadius: "50%"
}],
shimmerGradient: [{
backgroundColor: "#E0E0E0",
backgroundImage: "linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgb(235, 236, 240) 50%, rgba(255, 255, 255, 0) 100%)"
}]
}
}) : null, A ? Object(Ip.jsx)("div", {
style: {
marginLeft: S ? 16 : 0,
flex: 1
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}],
backgroundColor: h
})
}),
width: "100%",
styles: hS
})
}) : null]
}) : Object(Ip.jsx)("div", {
style: {
backgroundColor: h,
width: v,
height: null != p ? p : 92,
borderRadius: b,
overflow: "hidden",
boxShadow: g
}
})
}
}]),
n
}(l.Component);
lfe.defaultProps = {
radius: 0
};
var sfe = lfe
, cfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.width, i = n.height, o = n.backgroundColor, a = n.padding, l = n.radius, s = n.shadow, c = n.dataTemplate, u = null != r ? r : 300, d = Qq(a, "paddingContent"), p = u, h = null != i ? i : "auto", f = null == i ? u < 92 && u > 0 ? u : 92 : i < u && i < 92 && u > 0 ? i : 92, b = f, g = null === (e = c.enableImage) || void 0 === e || e, m = null === (t = c.enableName) || void 0 === t || t;
return g || m ? Object(Ip.jsxs)("div", {
style: {
backgroundColor: o,
width: p,
height: h,
borderRadius: l,
overflow: "hidden",
boxShadow: s,
display: "flex",
alignItems: "center"
},
children: [Object(Ip.jsx)("div", {
style: {
padding: d,
flex: 1
},
children: Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: 20,
width: "75%"
}, {
type: _k.gap,
height: 20,
width: "25%"
}],
backgroundColor: o
})
}),
width: "100%",
styles: hS
})
}), Object(Ip.jsx)(uw, {
customElementsGroup: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)($k, {
shimmerElements: [{
type: _k.line,
height: b,
width: "100%"
}],
backgroundColor: o
})
}),
width: f,
styles: hS
})]
}) : Object(Ip.jsx)("div", {
style: {
backgroundColor: o,
width: p,
height: null != i ? i : 92,
borderRadius: l,
overflow: "hidden",
boxShadow: s
}
})
}
}]),
n
}(l.Component);
cfe.defaultProps = {
radius: 0
};
var ufe, dfe, pfe = {
default: Bhe,
overlay: Hhe,
wrap: Zhe,
horizontal: nfe
}, hfe = {
default: ife,
overlay: afe,
wrap: sfe,
horizontal: cfe
}, ffe = {
list: she,
carousel: dhe,
masonry: fhe,
"big-first": yhe,
slideshow: Che,
grid: Lhe
}, bfe = ps.a.CancelToken, gfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
brands: [],
loading: !0
},
e.source = bfe.source(),
e._fetchData = function() {
var t = Object(Mt.a)(Nt.a.mark((function t(n) {
var r, i;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
r = {
per_page: n
},
t.next = 4,
gc(r, e.source.token);
case 4:
i = t.sent,
yh()(i) ? e.setState({
brands: i,
loading: !1
}) : e.setState({
loading: !1
}),
t.next = 11;
break;
case 8:
t.prev = 8,
t.t0 = t.catch(0),
ps.a.isCancel(t.t0) || e.setState({
loading: !1
});
case 11:
case "end":
return t.stop()
}
}
), t, null, [[0, 8]])
}
)));
return function(e) {
return t.apply(this, arguments)
}
}(),
e._buildItem = function(e, t, n, r, i, o, a) {
var l, s, c, u, d, p, h, f, b, g, m, v, y = rH(Cu()(o, ["backgroundItem", a], ec.grayColor)), x = null !== (l = Number(null !== (s = o.radius) && void 0 !== s ? s : 0)) && void 0 !== l ? l : 0, O = null !== (c = Number(null !== (u = o.offsetX) && void 0 !== u ? u : 0)) && void 0 !== c ? c : 0, j = null !== (d = Number(null !== (p = o.offsetY) && void 0 !== p ? p : 4)) && void 0 !== d ? d : 4, k = null !== (h = Number(null !== (f = o.spreadRadius) && void 0 !== f ? f : 0)) && void 0 !== h ? h : 0, w = null !== (b = Number(null !== (g = o.blurRadius) && void 0 !== g ? g : 24)) && void 0 !== b ? b : 24, C = rH(Cu()(o, ["shadowColor", a], ec.transparent)), _ = rH(Cu()(o, ["textItem", a], ec.black)), M = "".concat(O, "px ").concat(j, "px ").concat(w, "px ").concat(k, "px ").concat(C);
if (null != e) {
var S, A, T = null !== (S = pfe[r]) && void 0 !== S ? S : pfe.default;
return Object(Ip.jsx)(T, {
brand: e,
width: t,
height: n,
dataTemplate: i,
textColor: _,
backgroundColor: y,
padding: null !== (A = null == o ? void 0 : o.paddingContent) && void 0 !== A ? A : {},
radius: x,
shadow: M
})
}
var E = null !== (m = hfe[r]) && void 0 !== m ? m : hfe.default;
return Object(Ip.jsx)(E, {
width: t,
height: n,
dataTemplate: i,
backgroundColor: y,
padding: null !== (v = null == o ? void 0 : o.paddingContent) && void 0 !== v ? v : {},
radius: x,
shadow: M
})
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
var e, t, n = this.props.widget.fields, r = null !== (e = Number(null !== (t = null == n ? void 0 : n.limit) && void 0 !== t ? t : 4)) && void 0 !== e ? e : 4;
this._fetchData(r)
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t, n, r, i, o, a, l, s, c, u, d = this, p = this.state, h = p.brands, f = p.loading, b = this.props, g = b.widget, m = g.layout, v = g.fields, y = g.styles, x = b.width, O = b.darkModeKey, j = null !== (e = ffe[m]) && void 0 !== e ? e : ffe.list, k = rH(Cu()(y, ["background", O], ec.transparent)), w = null !== (t = Number(Cu()(y, ["width"], 200))) && void 0 !== t ? t : 200, C = null !== (n = Number(Cu()(y, ["height"], 300))) && void 0 !== n ? n : 300, _ = null !== (r = Number(Cu()(y, ["pad"], 12))) && void 0 !== r ? r : 12, M = null !== (i = Number(Cu()(y, ["dividerWidth"], 1))) && void 0 !== i ? i : 1, S = rH(Cu()(y, ["dividerColor", O], ec.borderLightMode)), A = rH(Cu()(y, ["indicatorColor", O], ec.borderLightMode)), T = rH(Cu()(y, ["indicatorActiveColor", O], ec.tertiaryText)), E = null !== (o = Number(Cu()(y, ["col"], 2))) && void 0 !== o ? o : 2, I = null !== (a = Number(Cu()(y, ["ratio"], 1))) && void 0 !== a ? a : 1, N = Cu()(v, ["template", "template"], {}), z = Cu()(v, ["template", "data"], {}), D = null !== (l = Number(null !== (s = null == v ? void 0 : v.limit) && void 0 !== s ? s : 4)) && void 0 !== l ? l : 4, L = FX(x, null == y ? void 0 : y.padding, null == y ? void 0 : y.margin), R = f ? D : h.length, P = null !== (c = Number(Cu()(y, ["padding", "paddingTop"]))) && void 0 !== c ? c : 0, B = null !== (u = Number(Cu()(y, ["padding", "paddingBottom"]))) && void 0 !== u ? u : 0;
return Object(Ip.jsx)(Jq, {
margin: null == y ? void 0 : y.margin,
padding: null == y ? void 0 : y.padding,
style: {
backgroundColor: k,
height: "carousel" === m || "slideshow" === m ? C : "auto",
overflow: "hidden",
boxSizing: "border-box"
},
children: Object(Ip.jsx)(j, {
length: R,
pad: _,
col: E,
ratio: I,
dividerWidth: M,
dividerColor: S,
indicatorColor: A,
indicatorActiveColor: T,
widthView: L,
heightView: "carousel" === m ? C : "slideshow" === m ? C - P - B : null,
renderItem: function(e, t, n) {
return d._buildItem(f ? null : h[e], null != t ? t : w, n, N, z, y, O)
}
})
})
}
}]),
n
}(l.Component), mfe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(gfe), vfe = Mu.b.ul(ufe || (ufe = _u(["\n display: flex;\n overflow: hidden;\n overflow-x: auto;\n white-space: nowrap;\n list-style: none;\n padding: 0px;\n margin: 0px;\n li {\n display: inline-block;\n margin-right: 32px;\n font-weight: 600;\n padding-bottom: 4px;\n\n &.active {\n color: #0686f8;\n border-bottom: 2px solid #0686f8;\n }\n }\n"]))), yfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
active: 0
},
e
}
return Object(At.a)(n, [{
key: "onChange",
value: function(e) {
this.state.active !== e && this.setState({
active: e
})
}
}, {
key: "render",
value: function() {
var e, t = this, n = this.state.active, r = this.props, i = r.widget, o = i.styles, a = i.fields, l = r.darkModeKey, s = r.language, c = r.translate ? s : "text", u = rH(Cu()(o, ["background", l], ec.transparent)), d = rH(Cu()(o, ["tabColor", l], ec.tertiaryText)), p = rH(Cu()(o, ["selectTabColor", l], ec.blue)), h = null !== (e = Number(Cu()(o, ["contentHeight"], 300))) && void 0 !== e ? e : 300, f = rH(Cu()(o, ["contentTextColor", l], ec.black)), b = Cu()(a, "items", []), g = Cu()(b[n], ["data", "content", c], "");
return Object(Ip.jsx)(Jq, {
margin: null == o ? void 0 : o.margin,
padding: null == o ? void 0 : o.padding,
style: {
backgroundColor: u
},
children: b.length > 0 ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(vfe, {
style: {
paddingBottom: 12
},
children: b.map((function(e, r) {
var i = Cu()(e, ["data"], {})
, o = Cu()(i, ["title", c], "Item");
return Object(Ip.jsx)("li", {
style: r === n ? {
color: p,
borderBottom: "2px solid ".concat(p)
} : {
color: d
},
onClick: function() {
return t.onChange(r)
},
children: o
})
}
))
}), Object(Ip.jsx)("div", {
style: {
height: h,
overflow: "hidden",
textAlign: "left"
},
children: Object(Ip.jsx)("span", {
style: {
color: f
},
children: g
})
})]
}) : null
})
}
}]),
n
}(l.Component), xfe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(yfe), Ofe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return Object(Ip.jsx)("div", {
children: "Video Shopping"
})
}
}]),
n
}(l.Component), jfe = Ofe, kfe = Mu.b.div(dfe || (dfe = _u(["\n padding: 0 20px;\n height: 48px;\n border-radius: 10px;\n background-color: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n word-break: break-word;\n span {\n display: block;\n font-size: 14px;\n font-weight: 500;\n color: #fff;\n }\n"])), (function(e) {
return e.background
}
)), wfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget.styles
, n = e.darkModeKey
, r = rH(Cu()(t, ["background", n], ec.transparent));
return Object(Ip.jsx)(Jq, {
padding: null == t ? void 0 : t.padding,
margin: null == t ? void 0 : t.margin,
style: {
backgroundColor: r
},
children: Object(Ip.jsx)(kfe, {
background: rH(ec.primaryColor),
children: Object(Ip.jsx)("span", {
children: "Chat GPT"
})
})
})
}
}]),
n
}(l.Component), Cfe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
darkModeKey: Gc(e)
}
}
))(wfe), _fe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props.widget.fields;
return Object(Ip.jsxs)("div", {
children: ["Custom - ", null !== (e = null == t ? void 0 : t.key) && void 0 !== e ? e : ""]
})
}
}]),
n
}(l.Component), Mfe = _fe, Sfe = {
id: "banner",
name: "Banners",
content: "Content 1",
group: Bp.base,
icon: "PhotoCollection",
fields: {
size: {
id: "size",
input: "size",
defaultValue: {
width: "375",
height: "330"
},
label: "Width x Height"
},
enableScaleWidth: {
id: "enableScaleWidth",
input: "switch",
defaultValue: !0,
label: "Enable Scale Width"
},
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
image: {
src: ""
},
imageSize: "cover",
action: $p.none
}
}],
label: "Content Block",
props: {
preview: "banner",
templates: {
default: {
template: "default",
name: "Template Default",
data: {
image: {
src: ""
},
imageSize: "cover",
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
label: "Choose image"
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style1: {
template: "style1",
name: "Template 1",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryTextDarkMode
},
fontSize: 18
}
},
text2: {
text: "Subtitle",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryTextDarkMode
},
fontSize: 12
}
},
enableButton: !0,
textButton: {
text: "Shop now",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12,
backgroundColor: {
value: ec.primaryText,
dark: ec.primaryText
}
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
defaultValue: {
text: "",
style: {}
},
isTranslate: !0,
label: "Text 1"
},
text2: {
id: "text2",
input: "text",
isStyle: !0,
defaultValue: {
text: "",
style: {}
},
isTranslate: !0,
label: "Text 2"
},
enableButton: {
id: "enableButton",
input: "switch",
defaultValue: !0,
label: "Enable button"
},
textButton: {
id: "textButton",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text Button"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style2: {
template: "style2",
name: "Template 2",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 20
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 1"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style3: {
template: "style3",
name: "Template 3",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 40
}
},
text2: {
text: "Subtitle",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 14
}
},
enableButton: !0,
textButton: {
text: "Shop now",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12,
backgroundColor: {
value: {
r: 255,
g: 162,
b: 0,
a: 1
},
dark: {
r: 255,
g: 162,
b: 0,
a: 1
}
}
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
defaultValue: {
text: "",
style: {}
},
isTranslate: !0,
label: "Text 1"
},
text2: {
id: "text2",
input: "text",
isStyle: !0,
defaultValue: {
text: "",
style: {}
},
isTranslate: !0,
label: "Text 2"
},
enableButton: {
id: "enableButton",
input: "switch",
defaultValue: !0,
label: "Enable button"
},
textButton: {
id: "textButton",
input: "text",
defaultValue: {
text: "Shop Now",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text Button"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style4: {
template: "style4",
name: "Template 4",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 14
}
},
text2: {
text: "SubTitle",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 14
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 1"
},
text2: {
id: "text2",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 2"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style5: {
template: "style5",
name: "Template 5",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 35
}
},
text2: {
text: "SubTitle",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 12
}
},
text3: {
text: "Heading",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 10,
backgroundColor: {
value: ec.redColor,
dark: ec.redColor
}
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 1"
},
text2: {
id: "text2",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 2"
},
text3: {
id: "text3",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text 3"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style6: {
template: "style6",
name: "Template 6",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 16
}
},
text2: {
text: "Sub",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 10,
backgroundColor: {
value: ec.redColor,
dark: ec.redColor
}
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 1"
},
text2: {
id: "text2",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 2"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style7: {
template: "style7",
name: "Template 7",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 18
}
},
text2: {
text: "SubTitle",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryText
},
fontSize: 18
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 1"
},
text2: {
id: "subTitle",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 2"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style8: {
template: "style8",
name: "Template 8",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Heading",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12
}
},
text2: {
text: "Title",
style: {
color: {
value: {
r: 242,
g: 113,
b: 28,
a: 1
},
dark: {
r: 242,
g: 113,
b: 28,
a: 1
}
},
fontSize: 35
}
},
text3: {
text: "Sub",
style: {
color: {
value: ec.white,
dark: ec.white
},
fontSize: 12
}
},
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text 1"
},
text2: {
id: "text2",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 2"
},
text3: {
id: "text3",
input: "text",
isStyle: !0,
isTranslate: !0,
defaultValue: {
text: "",
style: {}
},
label: "Text 3"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
style9: {
template: "style9",
name: "Template 9",
data: {
image: {
src: ""
},
imageSize: "cover",
text1: {
text: "Title",
style: {
color: {
value: ec.black,
dark: ec.white
},
fontSize: 14,
fontWeight: "500"
}
},
radiusImage: 8,
enableRoundImage: !0,
action: $p.none
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
label: "Choose image",
isTranslate: !0
},
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
text1: {
id: "text1",
input: "text",
isStyle: !0,
defaultValue: {
text: "",
style: {}
},
isTranslate: !0,
label: "Text 1"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "center",
label: "Alignment"
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius Image",
props: {
max: 30
}
},
enableRoundImage: {
id: "enableRoundImage",
input: "switch",
defaultValue: !0,
label: "Enable Round Image"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
}
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
backgroundImage: {
id: "backgroundImage",
input: "image",
defaultValue: {
src: ""
},
label: "Background Image"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Padding Item"
},
height: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Height",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "carousel"
}
},
info: "Only use in layout carousel"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout = grid",
props: {
min: 2,
max: 8,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout = grid",
props: {
min: .1,
max: 5,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
label: "Indicator color",
info: "Only use with layout slideshow",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
}
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Indicator Active color",
info: "Only use with layout slideshow",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item Banner"
},
backgroundColorItem: {
id: "backgroundColorItem",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 0,
label: "Border Radius",
props: {
max: 30
}
}
},
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "slideshow",
name: "Slideshow"
}, {
id: "grid",
name: "Grid"
}, {
id: "multi",
name: "Multi Columns"
}]
}
}, Afe = {
id: "button",
name: "Button",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: "Submit",
style: {
fontSize: 14,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.white
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
}
}
},
isStyle: !0,
isTranslate: !0,
label: "Title Button"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
},
enableFullWidth: {
id: "enableFullWidth",
input: "switch",
defaultValue: !0,
label: "Fullwidth"
},
enableIcon: {
id: "enableIcon",
input: "switch",
defaultValue: !1,
label: "Enable Icon"
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Change Icon"
},
enableIconLeft: {
id: "enableIconLeft",
input: "switch",
defaultValue: !1,
label: "Icon Left"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
height: {
id: "height",
input: "input-number",
defaultValue: 48,
label: "Height input",
props: {
min: 20,
max: 300
}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color Section"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Button"
},
backgroundItem: {
id: "backgroundItem",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Background Color"
},
borderWidgetItem: {
id: "borderWidgetItem",
input: "slider",
defaultValue: 0,
label: "Border width",
props: {
max: 20
}
},
borderColorItem: {
id: "borderColorItem",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Border color"
},
radiusItem: {
id: "radiusItem",
input: "slider",
defaultValue: 8,
label: "Border Radius"
},
autoIconItem: {
id: "autoIconItem",
input: "switch",
defaultValue: !1,
label: "Enable auto style icon",
info: "If value = false, icon color have color by text color"
},
iconSizeItem: {
id: "iconSizeItem",
input: "input-number",
defaultValue: 14,
label: "Icon size",
props: {
min: 1,
relationship: {
paths: ["styles", "autoIconItem"],
operator: "==",
value: !0
}
}
},
iconColorItem: {
id: "iconColorItem",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "Icon color",
props: {
relationship: {
paths: ["styles", "autoIconItem"],
operator: "==",
value: !0
}
}
}
}
}, Tfe = {
id: "product-category",
name: "Categories",
content: "Content 1",
group: Bp.woocommerce,
icon: "FolderList",
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "big-first",
name: "Big first"
}, {
id: "slideshow",
name: "Slideshow"
}, {
id: "grid",
name: "Grid"
}]
},
fields: {
limit: {
id: "pad",
input: "slider",
defaultValue: 4,
label: "Limit Item",
props: {
max: 100
}
},
includeCategory: {
id: "includeCategory",
input: "picker",
defaultValue: [],
label: "Include Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
excludeCategory: {
id: "excludeCategory",
input: "picker",
defaultValue: [],
label: "Exclude Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
showHierarchy: {
id: "showHierarchy",
input: "switch",
defaultValue: !0,
label: "Show hierarchy"
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "default",
data: {
enableName: !0,
enableNumber: !1,
alignment: "center",
enableRoundImage: !0,
pad: 10,
borderColor: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
borderStyle: "dotted"
}
},
label: "Select template",
props: {
preview: "product-category",
templates: {
default: {
template: "default",
name: "Default",
data: {
enableName: !0,
enableNumber: !1,
alignment: "center",
thumbSizes: "shop_catalog",
enableRoundImage: !0,
pad: 10,
borderColor: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
borderStyle: "dotted"
},
fields: {
enableName: {
id: "enableName",
input: "switch",
defaultValue: !0,
label: "Disable Name"
},
enableNumber: {
id: "enableNumber",
input: "switch",
defaultValue: !1,
label: "Disable Number Items"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "center",
label: "Align Name"
},
thumbSizes: _h,
enableRoundImage: {
id: "enableRoundImage",
input: "switch",
defaultValue: !0,
label: "Round image"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 10,
label: "Padding image",
info: "Only use when borderStyle != none",
props: {
max: 20
}
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Border Color"
},
borderStyle: {
id: "borderStyle",
input: "select",
defaultValue: "dotted",
label: "Border Style",
props: {
options: ih
}
}
}
},
overlay: {
template: "overlay",
name: "Overlay",
data: {
enableName: !0,
enableNumber: !0,
alignment: "left",
thumbSizes: "shop_catalog",
opacityColor: {
value: ec.black,
dark: ec.black
},
opacity: .5
},
fields: {
enableName: {
id: "enableName",
input: "switch",
defaultValue: !0,
label: "Enable name"
},
enableNumber: {
id: "enableNumber",
input: "switch",
defaultValue: !0,
label: "Enable count product"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "left",
label: "Align Name"
},
thumbSizes: _h,
opacityColor: {
id: "opacityColor",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.black
},
label: "Opacity color"
},
opacity: {
id: "opacity",
input: "input-number",
defaultValue: "0.5",
label: "Opacity",
props: {
max: 1,
step: .1
}
}
}
},
wrap: {
template: "wrap",
name: "Background Wrap",
data: {
enableName: !0,
enableNumber: !0,
thumbSizes: "shop_catalog",
enableRoundImage: !0
},
fields: {
enableName: {
id: "enableName",
input: "switch",
defaultValue: !0,
label: "Disable Name"
},
enableNumber: {
id: "enableNumber",
input: "switch",
defaultValue: !0,
label: "Disable Number Items"
},
thumbSizes: _h,
enableRoundImage: {
id: "enableRoundImage",
input: "switch",
defaultValue: !0,
label: "Round image"
}
}
},
horizontal: {
template: "horizontal",
name: "Image & Text Horizontal",
data: {
enableNumber: !0,
thumbSizes: "shop_catalog",
isRoundImage: !0
},
fields: {
enableNumber: {
id: "enableNumber",
input: "switch",
defaultValue: !0,
label: "Disable Number Items"
},
thumbSizes: _h,
enableRoundImage: {
id: "enableRoundImage",
input: "switch",
defaultValue: !0,
label: "Round image"
}
}
}
},
single: !0
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 16,
label: "Padding Item"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout = grid",
props: {
min: 2,
max: 8,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout = grid",
props: {
min: .1,
max: 5,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
height: {
id: "height",
input: "input-number",
defaultValue: 200,
label: "Height",
info: "Only use when layout is carousel or slideshow",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "include",
value: ["carousel", "slideshow"]
}
}
},
maxHeightImage: {
id: "maxHeightImage",
input: "input-number",
defaultValue: 200,
label: "Height image",
info: "Only use when layout is carousel or slideshow",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "include",
value: ["carousel", "slideshow"]
}
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator color",
info: "Only use with slideshow layout"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator Active color",
info: "Only use with slideshow layout"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundItem: {
id: "backgroundColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Item"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text Color"
},
fontSize: {
id: "sizeText",
input: "input-number",
defaultValue: "16",
label: "Font size",
props: {
min: 1,
max: 200
}
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.secondaryTextDarkMode,
value: ec.secondaryText
},
label: "Sub Text Color"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 8,
label: "Border Radius"
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius Image"
}
}
}, Efe = {
id: "divider",
name: "Divider",
content: "Content 1",
group: Bp.base,
icon: "CalculatorSubtract",
fields: {
height: {
id: "height",
input: "input-number",
defaultValue: "1",
label: "Height",
props: {
max: 30
}
},
type: {
id: "type",
input: "select",
defaultValue: "solid",
label: "Type Divider",
props: {
options: ih
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 20,
paddingTop: 20
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
color: {
id: "color",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Color"
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
}
}
}, Ife = {
id: "product-by-category",
name: "Product Category",
content: "Content 1",
group: Bp.woocommerce,
icon: "VisualsFolder",
layout: Zh,
fields: Yh,
styles: Jh
}, Nfe = [{
active: !1,
value: {
type: "text",
position: {
width: "",
height: "",
left: "0",
top: "0",
right: "",
bottom: ""
}
}
}], zfe = {
id: "slideshow",
name: "Slideshows",
content: "Content 1",
group: Bp.base,
icon: "StackIndicator",
layout: {
defaultValue: "basic",
options: [{
id: "basic",
name: "Basic"
}, {
id: "center_mode",
name: "Center Mode"
}, {
id: "stack",
name: "Stack"
}, {
id: "tinder",
name: "Tinder"
}, {
id: "rotate",
name: "Rotate"
}]
},
fields: {
autoPlay: {
id: "autoPlay",
input: "switch",
defaultValue: !1,
label: "Auto play Swiper"
},
enableIndicator: {
id: "enableIndicator",
input: "switch",
defaultValue: !0,
label: "Indicators"
},
autoPlayDelay: {
id: "autoPlayDelay",
input: "input-number",
defaultValue: "3000",
label: "Auto play delay(ms)"
},
autoPlayInterval: {
id: "autoPlayInterval",
input: "input-number",
defaultValue: "500",
label: "Auto play interval(ms)"
},
size: {
id: "size",
input: "size",
defaultValue: {
width: "375",
height: "330"
},
label: "Width x Height"
},
scrollDirection: {
id: "scrollDirection",
input: "select",
defaultValue: 0,
label: "Direction",
props: {
options: [{
key: 0,
text: "Horizontal"
}, {
key: 1,
text: "Vertical"
}]
}
},
items: {
id: "items",
input: "items",
active: 0,
toggle: !0,
defaultValue: [{
template: "default",
active: !0,
data: {
image: {
src: ""
},
layer: Nfe
}
}],
label: "Slideshows",
props: {
preview: "slideshow",
templates: {
default: {
template: "default",
name: "Default",
data: {
image: {
src: ""
},
layer: [{
active: !1,
value: {
type: "text"
}
}]
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
label: "Choose image"
},
imageSize: {
id: "imageSize",
input: "size",
defaultValue: {
width: "375",
height: "300"
},
label: "Image Size"
},
fit: {
id: "fit",
input: "select",
defaultValue: "cover",
label: "Box Fit",
props: {
options: rh
}
},
layer: {
id: "layer",
input: "list",
active: 0,
toggle: !0,
defaultValue: Nfe,
props: {
keyItem: "text",
textItem: "Layer",
numberItem: !0,
fields: {
type: {
id: "type",
input: "button-group",
defaultValue: "text",
label: "Type",
props: {
options: [{
key: "text",
text: "Text"
}, {
key: "button",
text: "Button"
}, {
key: "image",
text: "Image"
}, {
key: "icon",
text: "Icon"
}]
}
},
position: {
id: "position",
input: "position",
defaultValue: {
width: "",
height: "",
left: "",
top: "",
right: "",
bottom: ""
},
label: "Position",
props: {
min: 0
}
},
text: {
id: "text",
input: "text",
defaultValue: {
text: "Text",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Text"
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "icon"
}
},
label: "Icon"
},
buttonBg: {
id: "buttonBg",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "button"
}
},
label: "Button Background Color"
},
buttonBorderColor: {
id: "buttonBorderColor",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "button"
}
},
label: "Button Border Color"
},
buttonBorderWidth: {
id: "buttonBorderWidth",
input: "input-number",
defaultValue: "0",
props: {
min: 0,
relationship: {
paths: ["type"],
operator: "==",
value: "button"
}
},
label: "Button Border Width"
},
buttonSize: {
id: "buttonSize",
input: "size",
defaultValue: {
width: "80",
height: "32"
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "button"
}
},
label: "Button Size"
},
buttonBorderRadius: {
id: "buttonBorderRadius",
input: "input-number",
defaultValue: "0",
props: {
min: 0,
relationship: {
paths: ["type"],
operator: "==",
value: "button"
}
},
label: "Button Border Radius"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "icon"
}
},
label: "Icon Color"
},
iconSize: {
id: "iconSize",
input: "input-number",
defaultValue: "14",
props: {
min: 1,
relationship: {
paths: ["type"],
operator: "==",
value: "icon"
}
},
label: "Icon Size"
},
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "image"
}
},
label: "Image"
},
imageSize: {
id: "imageSize",
input: "size",
defaultValue: {
width: "32",
height: "32"
},
props: {
relationship: {
paths: ["type"],
operator: "==",
value: "image"
}
},
label: "Image Size"
},
action: {
id: "action",
input: "action",
defaultValue: $p.home,
isTranslate: !0,
label: "Action"
}
}
},
label: "Layer"
}
}
}
},
keyItem: "text1"
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Section"
},
borderRadius: {
id: "borderRadius",
input: "input-number",
defaultValue: "0",
label: "Border Radius",
props: {
min: 0,
max: 100
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Indicator"
},
indicatorAlignment: {
id: "indicatorAlignment",
input: "select",
defaultValue: "bottom-start",
label: "Alignment",
props: {
options: ah
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
label: "Color"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Active color"
},
indicatorMargin: {
id: "indicatorMargin",
input: "spacing",
defaultValue: {
indicatorMarginLeft: 0,
indicatorMarginRight: 0,
indicatorMarginBottom: 0,
indicatorMarginTop: 0
},
label: "Margin",
props: {}
},
indicatorSize: {
id: "indicatorSize",
input: "input-number",
defaultValue: "6",
label: "Size"
},
activeIndicatorSize: {
id: "activeIndicatorSize",
input: "input-number",
defaultValue: "10",
label: "Active size"
},
indicatorSpace: {
id: "activeIndicatorSize",
input: "input-number",
defaultValue: "4",
label: "Space"
}
}
}, Dfe = {
id: "testimonial",
name: "Testimonial",
content: "Content 1",
group: Bp.base,
icon: "CommentActive",
fields: {
backgroundItem: {
id: "backgroundItem",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Background color Item"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 8,
label: "Border radius Item"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 16,
label: "Padding Item"
},
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
image: {
src: ""
},
title: {
text: "Title",
style: {
fontSize: 14,
fontWeight: "500",
color: {
value: ec.black,
dark: ec.white
}
}
},
description: {
text: "Description",
style: {
fontSize: 12,
fontWeight: "400",
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
}
}
}],
label: "Items",
props: {
preview: "testimonial",
templates: {
default: {
template: "default",
name: "Default",
data: {
image: {
src: ""
},
title: {
text: "Title",
style: {
fontSize: 14,
fontWeight: "500",
color: {
value: ec.black,
dark: ec.white
}
}
},
description: {
text: "Description",
style: {
fontSize: 12,
fontWeight: "400",
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
}
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
label: "Choose image"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Title"
},
description: {
id: "description",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Description"
}
}
},
style2: {
template: "style2",
name: "Style 2",
data: {
image: {
src: ""
},
title: {
text: "Title",
style: {
fontSize: 16,
fontWeight: "500",
color: {
value: ec.black,
dark: ec.white
}
}
},
description: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.black,
dark: ec.white
}
}
},
subtitle: {
text: "Subtitle",
style: {
fontSize: 12,
fontWeight: "400",
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
rating: 0
},
fields: {
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !0,
label: "Choose image"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Title"
},
description: {
id: "description",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Description"
},
subtitle: {
id: "subtitle",
input: "text",
defaultValue: {
text: "",
style: {}
},
isStyle: !0,
isTranslate: !0,
label: "Subtitle"
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable rating"
},
rating: {
id: "rating",
input: "slider",
defaultValue: "0",
label: "Rating",
info: "Only use with enableRating = true",
props: {
max: 5
}
}
}
}
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
}
}
}, Lfe = {
id: "text",
name: "Text",
content: "Content 1",
group: Bp.base,
icon: "TextField",
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: "Free Shipping & Free Return",
style: {
color: {
value: ec.primaryText,
dark: ec.primaryTextDarkMode
},
fontSize: 14,
fontFamily: Gp,
fontWeight: "600"
}
},
isTranslate: !0,
isStyle: !0,
label: "Title",
info: 'You can get "first_name", "last_name" or "email" of user by {}. EX: Hello, {first_name} {last_name}'
},
alignment: {
id: "alignment",
input: "select",
defaultValue: "center",
label: "Alignment",
props: {
options: [{
key: "left",
text: "Left"
}, {
key: "right",
text: "Right"
}, {
key: "center",
text: "Center"
}, {
key: "justify",
text: "Justify"
}, {
key: "start",
text: "Start"
}, {
key: "end",
text: "End"
}]
}
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 12,
paddingRight: 12,
paddingBottom: 12,
paddingTop: 12
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Background Color Section"
}
}
}, Rfe = {
id: "social",
name: "Socials",
content: "Content 1",
group: Bp.base,
icon: "SocialListeningLogo",
fields: {
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "center",
label: "Alignment"
},
pad: {
id: "pad",
input: "slider",
defaultValue: "16",
label: "Padding item",
props: {
max: 50
}
},
socials: {
id: "socials",
input: "items",
defaultValue: [{
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}, {
template: "default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
}
}],
label: "Socials",
active: -1,
toggle: !0,
props: {
textItem: "Social",
numberItem: !0,
preview: "social-profile",
templates: {
default: {
template: "default",
name: "Item Default",
data: {
icon: {
name: "fab-facebook",
type: "awesome"
},
backgroundColor: {
dark: ec.transparent,
value: ec.transparent
},
iconColor: {
dark: ec.primaryColor,
value: ec.primaryColor
},
linkSocial: {
text: ""
},
enableRound: !1,
enableOutLine: !0
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "fab-facebook-square",
type: "awesome"
},
label: "Change Icon"
},
backgroundColor: {
id: "backgroundColor",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
dark: ec.primaryColor,
value: ec.primaryColor
},
label: "Icon color"
},
linkSocial: {
id: "linkSocial",
input: "text",
defaultValue: {
text: ""
},
label: "Link social",
isTranslate: !0,
props: {
placeholder: "https://"
}
},
enableRound: {
id: "enableRound",
input: "switch",
defaultValue: !1,
label: "Enable Button Round"
},
enableOutLine: {
id: "enableOutLine",
input: "switch",
defaultValue: !0,
label: "Enable Button Out Line"
}
}
}
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
}
}
}, Pfe = {
id: "header",
name: "Header",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
hidden: !0,
fields: {
lineAnimated: {
id: "lineAnimated",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerSidebar: {
id: "headerSidebar",
input: "heading",
defaultValue: "",
label: "Left Sidebar"
},
enableSidebar: {
id: "enableSidebar",
input: "switch",
defaultValue: !0,
label: "Drawer (Sidebar)"
},
iconSideBar: {
id: "iconSideBar",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Icon Sidebar"
},
lineSidebar: {
id: "lineSidebar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerCart: {
id: "headerCart",
input: "heading",
defaultValue: "",
label: "Cart"
},
enableCart: {
id: "enableCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
},
enableNumber: {
id: "enableNumber",
input: "switch",
defaultValue: !0,
label: "Enable Number"
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Cart Icon"
},
lineCart: {
id: "lineCart",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerLogo: {
id: "headerLogo",
input: "heading",
defaultValue: "",
label: "Logo"
},
enableLogo: {
id: "enableLogo",
input: "switch",
defaultValue: !0,
label: "Enable Logo"
},
alignmentLogo: {
id: "alignmentLogo",
input: "alignment",
defaultValue: "center",
label: "Alignment Logo"
},
widthLogo: {
id: "widthLogo",
input: "slider",
defaultValue: 122,
label: "Width Logo",
props: {
min: 50,
max: 150
}
},
lineLogo: {
id: "lineLogo",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerTitle: {
id: "headerTitle",
input: "heading",
defaultValue: "",
label: "Title"
},
enableTitle: {
id: "enableTitle",
input: "switch",
defaultValue: !0,
label: "Enable Title"
}
},
styles: {
background: {
id: "background",
input: "color",
defaultValue: "#fff",
label: "Background Header"
},
color: {
id: "color",
input: "color",
defaultValue: "#000",
label: "Color"
},
enableShadow: {
id: "enableShadow",
input: "switch",
defaultValue: !1,
label: "Shadow Header"
}
}
}, Bfe = dV()(new Date).add(10, "days").toISOString(), Ffe = {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Input search"
},
backgroundColorInput: {
id: "backgroundColorInput",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Background Color"
},
borderColorInput: {
id: "borderColorInput",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Border color"
},
iconColorInput: {
id: "iconColorInput",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
label: "Icon Color"
}
}, Vfe = {
categories: {
id: "categories",
input: "picker",
defaultValue: [],
label: "Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
search: {
id: "search",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "Keyword",
info: "Search vendor by keyword"
},
includes: {
id: "includes",
input: "picker",
defaultValue: [],
label: "Includes",
props: {
query: {
post_type: [],
taxonomy: [],
roles: ["wcfm_vendor", "seller", "administrator", "dc_vendor"]
}
}
},
excludes: {
id: "excludes",
input: "picker",
defaultValue: [],
label: "Excluses",
props: {
query: {
post_type: [],
taxonomy: [],
roles: ["wcfm_vendor", "seller", "administrator", "dc_vendor"]
}
}
},
limit: {
id: "limit",
input: "slider",
defaultValue: 4,
label: "Limit Item",
props: {
min: 1,
max: 100
}
},
enableRating: {
id: "enableRating",
input: "switch",
defaultValue: !0,
label: "Enable Rating"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "contained",
data: {}
},
label: "Select template",
props: {
preview: "vendor-list",
templates: {
contained: {
template: "contained",
name: "Item Contained",
data: {},
fields: {}
},
horizontal: {
template: "horizontal",
name: "Item Horizontal",
data: {},
fields: {}
},
emerge: {
template: "emerge",
name: "Item Emerge",
data: {
sizeBanner: {
width: 334,
height: 174
}
},
fields: {
sizeBanner: {
id: "sizeBanner",
input: "size",
defaultValue: {
width: "334",
height: "174"
},
label: "Width x Height Banner"
}
}
},
gradient: {
template: "gradient",
name: "Item gradient",
data: {
sizeBanner: {
width: 334,
height: 180
},
colorBegin: {
dark: ec.transparent,
value: ec.transparent
},
colorEnd: {
dark: ec.black,
value: ec.black
},
begin: "top-center",
end: "bottom-center"
},
fields: {
sizeBanner: {
id: "sizeBanner",
input: "size",
defaultValue: {
width: "334",
height: "180"
},
label: "Width x Height Banner"
},
colorBegin: {
id: "colorBegin",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Color Begin Gradient"
},
colorEnd: {
id: "colorEnd",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Color End Gradient"
},
begin: {
id: "begin",
input: "select",
defaultValue: "top-center",
label: "Begin alignment Gradient",
props: {
options: ah
}
},
end: {
id: "end",
input: "select",
defaultValue: "bottom-center",
label: "End alignment Gradient",
props: {
options: ah
}
}
}
}
},
single: !0
}
}
}, Wfe = {
__headerSection: {
id: "__headerSection",
input: "heading",
defaultValue: "",
label: "Config Section"
},
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Pad Item"
},
height: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Height",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "carousel"
}
},
info: "Only use in layout carousel"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout grid",
props: {
min: 2,
max: 8,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout grid",
props: {
min: .1,
max: 5,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
widthItem: {
id: "widthItem",
input: "input-number",
defaultValue: 250,
label: "Width",
props: {
min: 50,
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "carousel"
}
},
info: "Only use in layout carousel"
},
backgroundColorItem: {
id: "backgroundColorItem",
input: "color",
defaultValue: {
dark: ec.secondaryDarkMode,
value: ec.grayColor
},
label: "Background color"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.secondaryTextDarkMode,
value: ec.tertiaryText
},
label: "Sub text color"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 8,
label: "Border Radius",
props: {
max: 30
}
},
__lineShadow: {
id: "__lineShadow",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerShadow: {
id: "__headerShadow",
input: "heading",
defaultValue: "",
label: "Box Shadow"
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}, qfe = {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "grid",
name: "Grid"
}]
}, Hfe = {
slideshow: zfe,
banner: Sfe,
divider: Efe,
spacer: {
id: "spacer",
name: "Spacer",
content: "Content 1",
group: Bp.base,
icon: "Spacer",
fields: {
height: {
id: "height",
input: "input-number",
defaultValue: "20",
label: "Height",
props: {
min: 1,
max: 500
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
backgroundColor: {
id: "backgroundColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
}
}
},
text: Lfe,
heading: {
id: "heading",
name: "Heading",
content: "Content 1",
group: Bp.base,
icon: "InsertTextBox",
fields: {
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Leading"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "Latest",
style: {
fontSize: 22,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.black
}
}
},
isTranslate: !0,
isStyle: !0,
label: "Text"
},
centerTitle: {
id: "centerTitle",
input: "switch",
defaultValue: !1,
label: "Center Title"
},
enableIcon: {
id: "enableIcon",
input: "switch",
defaultValue: !0,
label: "Enable icon"
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "home",
type: "feather"
},
label: "Icon Sidebar"
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__header2: {
id: "__header2",
input: "heading",
defaultValue: "",
label: "Action"
},
actionTitle: {
id: "actionTitle",
input: "text",
defaultValue: {
text: "Show all",
style: {
fontSize: 16,
fontWeight: "400",
color: {
dark: ec.white,
value: ec.black
}
}
},
isTranslate: !0,
isStyle: !0,
label: "Action text"
},
enableIconAction: {
id: "enableIconAction",
input: "switch",
defaultValue: !0,
label: "Enable icon action"
},
iconAction: {
id: "iconAction",
input: "icon",
defaultValue: {
name: "chevron-right",
type: "feather"
},
label: "Icon"
},
action: {
id: "action",
input: "action",
defaultValue: $p.home,
isTranslate: !0,
label: "Action"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
secondBackground: {
id: "secondBackground",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "corner"
}
},
label: "Background Second color"
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Divider color"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Icon color"
},
actionIconColor: {
id: "actionIconColor",
input: "color",
defaultValue: {
dark: ec.secondaryText,
value: ec.secondaryTextDarkMode
},
label: "Action icon color"
},
dividerHeight: {
id: "dividerHeight",
input: "input-number",
defaultValue: "0",
label: "Divider Height",
props: {
min: 0
}
},
borderRadiusTopLeft: {
id: "borderRadiusTopLeft",
input: "slider",
defaultValue: 0,
label: "Border Radius Top Left",
props: {
min: 0,
max: 100
}
},
borderRadiusTopRight: {
id: "borderRadiusTopRight",
input: "slider",
defaultValue: 0,
label: "Border Radius Top Right",
props: {
min: 0,
max: 100
}
},
borderRadiusBottomRight: {
id: "borderRadiusBottomRight",
input: "slider",
defaultValue: 0,
label: "Border Radius Bottom Right",
props: {
min: 0,
max: 100
}
},
borderRadiusBottomLeft: {
id: "borderRadiusBottomLeft",
input: "slider",
defaultValue: 0,
label: "Border Radius Bottom Left",
props: {
min: 0,
max: 100
}
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}, {
id: "divider",
name: "Divider"
}, {
id: "corner",
name: "Corner"
}, {
id: "vertical",
name: "Vertical"
}]
}
},
button: Afe,
video: {
id: "video",
name: "Video",
content: "Content 1",
group: Bp.base,
icon: "MSNVideos",
fields: {
width: {
id: "width",
input: "input-number",
defaultValue: "600",
label: "Width",
props: {
min: 1,
max: 3e3
}
},
height: {
id: "height",
input: "input-number",
defaultValue: "200",
label: "Height",
props: {
min: 1,
max: 3e3
}
},
url: {
id: "url",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "URL"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
}
}
},
"video-youtube": {
id: "video-youtube",
name: "Video Youtube",
content: "Content 1",
group: Bp.base,
icon: "MSNVideosSolid",
fields: {
width: {
id: "width",
input: "input-number",
defaultValue: "600",
label: "Width",
props: {
min: 1,
max: 3e3
}
},
height: {
id: "height",
input: "input-number",
defaultValue: "200",
label: "Height",
props: {
min: 1,
max: 3e3
}
},
url: {
id: "url",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "URL"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
}
}
},
testimonial: Dfe,
"icon-box": {
id: "icon-box",
name: "Icon Box",
content: "Content 1",
group: Bp.base,
icon: "GlobalNavButtonActive",
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "slideshow",
name: "Slideshow"
}, {
id: "grid",
name: "Grid"
}]
},
fields: {
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
icon: {
name: "settings",
type: "feather"
},
title: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
description: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
action: $p.none
}
}],
label: "Items",
props: {
preview: "icon-box",
templates: {
default: {
template: "default",
name: "Item default",
data: {
icon: {
name: "settings",
type: "feather"
},
title: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
description: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
action: $p.none
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Icon"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
isTranslate: !0,
isStyle: !0,
label: "Title"
},
description: {
id: "description",
input: "text",
defaultValue: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
isStyle: !0,
isTranslate: !0,
label: "Description"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "left",
label: "Alignment"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
contained: {
template: "contained",
name: "Item contained",
data: {
icon: {
name: "settings",
type: "feather"
},
title: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
description: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
action: $p.none
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Icon"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
isTranslate: !0,
isStyle: !0,
label: "Title"
},
description: {
id: "description",
input: "text",
defaultValue: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
isStyle: !0,
isTranslate: !0,
label: "Description"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
},
group: {
template: "group",
name: "Item group",
data: {
icon: {
name: "settings",
type: "feather"
},
title: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
description: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
action: $p.none
},
fields: {
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Icon"
},
title: {
id: "title",
input: "text",
defaultValue: {
text: "Title",
style: {
fontSize: 16,
color: {
value: ec.black,
dark: ec.white
},
fontWeight: "500"
}
},
isTranslate: !0,
isStyle: !0,
label: "Title"
},
description: {
id: "description",
input: "text",
defaultValue: {
text: "Description",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
isStyle: !0,
isTranslate: !0,
label: "Description"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
}
}
}
}
}
}
},
styles: {
__headerSection: {
id: "__headerSection",
input: "heading",
defaultValue: "",
label: "Config Section"
},
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Pad Item"
},
height: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Height",
props: {
max: 1e3
},
info: "Only use in carousel or slideshow layout"
},
width: {
id: "width",
input: "input-number",
defaultValue: 300,
label: "Width",
props: {
max: 1e3
},
info: "Only use in carousel layout"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when grid layout",
props: {
min: 2,
max: 8
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when grid layout",
props: {
min: .1,
max: 5,
step: .1
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
label: "Indicator color",
info: "Only use with slideshow layout"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
label: "Indicator Active color",
info: "Only use with slideshow layout"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundColorItem: {
id: "backgroundColorItem",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
borderColor: {
id: "borderColor",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Border color"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 0,
label: "Border Radius",
props: {
max: 30
}
},
__lineIcon: {
id: "__lineIcon",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerIcon: {
id: "__headerIcon",
input: "heading",
defaultValue: "",
label: "Config Icon"
},
enableBoxIcon: {
id: "enableBoxIcon",
input: "switch",
defaultValue: !1,
label: "Enable box icon"
},
iconColor: {
id: "iconColor",
input: "color",
defaultValue: {
dark: ec.primaryColor,
value: ec.primaryColor
},
label: "Color icon"
},
sizeIcon: {
id: "sizeIcon",
input: "input-number",
defaultValue: 36,
label: "Size icon"
},
sizeBoxIcon: {
id: "sizeBoxIcon",
input: "input-number",
defaultValue: 54,
label: "Size box icon",
props: {
max: 100
}
},
iconBoxColor: {
id: "iconBoxColor",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Box color icon"
},
iconBorder: {
id: "iconBorder",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Border color icon"
},
__lineShadow: {
id: "__lineShadow",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerShadow: {
id: "__headerShadow",
input: "heading",
defaultValue: "",
label: "Box Shadow"
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}
},
countdown: {
id: "countdown",
name: "Count Down",
content: "Content 1",
group: Bp.base,
icon: "BufferTimeBefore",
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: "Deal Today",
style: {
fontSize: 22,
color: {
dark: ec.white,
value: ec.black
},
fontWeight: "500"
}
},
isStyle: !0,
isTranslate: !0,
label: "Title"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Choose Action"
},
expireDate: {
id: "expireDate",
input: "input-datetime",
defaultValue: Bfe,
label: "Due Date"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "left",
label: "Alignment",
info: "Only use in layout vertical",
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "vertical"
}
}
},
line1: {
id: "line1",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
enableDay: {
id: "enableDay",
input: "switch",
defaultValue: !0,
label: "Days"
},
enableHour: {
id: "enableHour",
input: "switch",
defaultValue: !0,
label: "Hours"
},
enableMinute: {
id: "enableMinute",
input: "switch",
defaultValue: !0,
label: "Minutes"
},
enableSecond: {
id: "enableSecond",
input: "switch",
defaultValue: !0,
label: "Seconds"
},
enableSeparator: {
id: "enableSeparator",
input: "switch",
defaultValue: !0,
label: "Separator"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color Section"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 16,
label: "Padding Content"
},
line: {
id: "line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
header: {
id: "header",
input: "heading",
defaultValue: "",
label: "Config Time"
},
backgroundTime: {
id: "backgroundTime",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Background Time"
},
borderTime: {
id: "borderTime",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Border Time"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "Color Time"
},
separatorColor: {
id: "separatorColor",
input: "color",
defaultValue: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
label: "Separator Color Time"
},
padTime: {
id: "padTime",
input: "slider",
defaultValue: 12,
label: "Padding Separator"
}
},
layout: {
defaultValue: "horizontal",
options: [{
id: "horizontal",
name: "Horizontal"
}, {
id: "vertical",
name: "Vertical"
}]
}
},
"post-archive": {
id: "post-archive",
name: "Archives",
content: "Content 1",
group: Bp.post,
icon: "Calendar",
fields: {
enableIconArchives: {
id: "enableIconArchives",
input: "switch",
defaultValue: !1,
label: "Show icon archives"
},
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !1,
label: "Show post counts"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
}
}
},
"post-category": {
id: "post-category",
name: "Categories Post",
content: "Content 1",
group: Bp.post,
icon: "GroupedList",
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "big-first",
name: "Big first"
}, {
id: "slideshow",
name: "Slideshow"
}, {
id: "grid",
name: "Grid"
}]
},
fields: {
taxonomy: {
id: "taxonomy",
input: "text",
defaultValue: "categories",
isTranslate: !1,
isStyle: !1,
label: "Taxonomy"
},
limit: {
id: "limit",
input: "slider",
defaultValue: 4,
label: "Limit Item",
props: {
max: 10
}
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "contained",
data: {
enableCount: !0,
enableRoundImage: !0
}
},
label: "Select template",
props: {
preview: "post-category",
templates: {
contained: {
template: "contained",
name: "Contained",
data: {
enableCount: !0,
enableRoundImage: !0
},
fields: {
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !1,
label: "Enable count"
},
enableRoundImage: {
id: "enableRoundImage",
input: "switch",
defaultValue: !1,
label: "Enable Round image"
}
}
},
horizontal: {
template: "horizontal",
name: "Horizontal",
data: {
enableCount: !0
},
fields: {
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !1,
label: "Enable count"
}
}
},
gradient: {
template: "gradient",
name: "Gradient",
data: {
enableCount: !0,
colorBegin: {
dark: ec.transparent,
value: ec.transparent
},
colorEnd: {
dark: ec.black,
value: ec.black
},
begin: "top-center",
end: "bottom-center",
opacity: .9
},
fields: {
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !1,
label: "Enable count"
},
colorBegin: {
id: "colorBegin",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Color Begin Gradient"
},
colorEnd: {
id: "colorEnd",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.black
},
label: "Color End Gradient"
},
begin: {
id: "begin",
input: "select",
defaultValue: "top-center",
label: "Begin alignment Gradient",
props: {
options: ah
}
},
end: {
id: "end",
input: "select",
defaultValue: "bottom-center",
label: "End alignment Gradient",
props: {
options: ah
}
},
opacity: {
id: "opacity",
input: "slider",
defaultValue: .9,
label: "Opacity",
props: {
max: 1,
step: .01
}
}
}
}
},
single: !0
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 16,
label: "Padding Item"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout = grid",
props: {
min: 2,
max: 8,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout = grid",
props: {
min: .1,
max: 5,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
height: {
id: "height",
input: "input-number",
defaultValue: 200,
label: "Height",
info: "Only use when layout is carousel or slideshow",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "include",
value: ["carousel", "slideshow"]
}
}
},
heightImage: {
id: "heightImage",
input: "input-number",
defaultValue: 200,
label: "Height image",
info: "Only use when layout is carousel or slideshow",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "include",
value: ["carousel", "slideshow"]
}
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator color",
info: "Only use with slideshow layout posts"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator Active color",
info: "Only use with slideshow layout posts"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundItem: {
id: "backgroundColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Item"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text Color"
},
labelColor: {
id: "labelColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Label Color"
},
labelTextColor: {
id: "labelTextColor",
input: "color",
defaultValue: {
dark: ec.black,
value: ec.white
},
label: "Label Text Color"
},
labelRadius: {
id: "labelRadius",
input: "slider",
defaultValue: 13,
label: "Border radius label",
props: {
max: 26
}
},
radius: {
id: "radius",
input: "slider",
defaultValue: 8,
label: "Border Radius"
},
radiusImage: {
id: "radiusImage",
input: "slider",
defaultValue: 8,
label: "Border Radius Image"
}
}
},
contactPage: pf,
"post-comment": {
id: "post-comment",
name: "Post Comments",
content: "Content 1",
group: Bp.post,
icon: "Chat",
fields: {
enableAvatar: {
id: "enableAvatar",
input: "switch",
defaultValue: !0,
label: "Display avatar"
},
enableDate: {
id: "enableDate",
input: "switch",
defaultValue: !0,
label: "Display date"
},
enableExcerpt: {
id: "enableExcerpt",
input: "switch",
defaultValue: !0,
label: "Display excerpt"
},
limit: {
id: "limit",
input: "input-number",
defaultValue: "5",
label: "Limit",
props: {
max: 100,
min: 1
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
}
}
},
post: Of,
"post-tag": {
id: "post-tag",
name: "Tag Could",
content: "Content 1",
group: Bp.post,
icon: "Tag",
layout: {
defaultValue: "wrap",
options: [{
id: "wrap",
name: "Wrap"
}, {
id: "carousel",
name: "Carousel"
}]
},
fields: {
limit: {
id: "limit",
input: "input-number",
defaultValue: "5",
label: "Limit",
props: {
max: 100,
min: 1
}
},
height: {
id: "height",
input: "input-number",
defaultValue: "34",
label: "Height",
props: {
max: 100,
min: 1
}
},
borderRadius: {
id: "borderRadius",
input: "input-number",
defaultValue: "5",
label: "Border radius",
props: {
max: 100,
min: 0
}
},
pad: {
id: "pad",
input: "input-number",
defaultValue: "8",
label: "Pad",
props: {
max: 50
},
info: "Distance two item"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
itemColor: {
id: "itemColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
itemBackground: {
id: "itemBackground",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
itemBorderColor: {
id: "itemBorderColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Border color"
}
}
},
"post-tab": {
id: "post-tab",
name: "Post Tabs",
content: "Content 1",
group: Bp.post,
icon: "Tag",
layout: {
defaultValue: "horizontal",
options: [{
id: "horizontal",
name: "Horizontal"
}]
},
fields: {
enableDrawer: {
id: "enableDrawer",
input: "switch",
defaultValue: !1,
label: "Enable drawer"
},
pad: {
id: "pad",
input: "input-number",
defaultValue: "12",
label: "Pad Tab",
props: {
max: 50
}
},
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
name: {
text: "Latest"
},
layoutItem: "list",
search: {
text: ""
},
tags: [],
categories: [],
post: [],
limit: 4,
template: {
template: "default",
data: {
size: {
width: 247,
height: 192
},
imageSize: "fill",
enableDescription: !1,
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0
}
}
}
}],
label: "Items",
props: {
preview: "post-tab",
templates: {
default: {
template: "default",
name: "Item Default",
data: {
name: {
text: "Latest"
},
layoutItem: "list",
search: {
text: ""
},
tags: [],
categories: [],
post: [],
page: 1,
perPage: 10,
template: {
template: "default",
data: {
size: {
width: 247,
height: 192
},
imageSize: "fill",
enableDescription: !1,
enableCategory: !0,
enableDate: !0,
enableAuthor: !0,
enableComments: !0
}
}
},
fields: yf
}
},
keyItem: "name"
}
}
},
styles: xf
},
"post-search": {
id: "post-search",
name: "Post Search",
content: "Content 1",
group: Bp.post,
icon: "Search",
fields: {
placeholder: {
id: "placeholder",
input: "text",
defaultValue: {
text: "Search Posts",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
isTranslate: !0,
isStyle: !0,
label: "Placeholder"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Icon"
},
enableIcon: {
id: "enableIcon",
input: "switch",
defaultValue: !0,
label: "Enable Icon"
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "search",
type: "feather"
},
label: "Icon"
},
enableIconLeft: {
id: "enableIconLeft",
input: "switch",
defaultValue: !0,
label: "Icon Left"
}
},
styles: Ffe
},
"post-author": {
id: "post-author",
name: "Author",
content: "Content 1",
group: Bp.post,
icon: "People",
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "grid",
name: "Grid"
}]
},
fields: {
limit: {
id: "limit",
input: "slider",
defaultValue: 4,
label: "Limit Item",
props: {
min: 1,
max: 100
}
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "vertical",
data: {
enableAvatar: !0,
enableCount: !0
}
},
label: "Template",
props: {
preview: "post-author",
templates: {
vertical: {
template: "vertical",
name: "Vertical",
data: {
enableAvatar: !0,
enableCount: !0
},
fields: {
enableAvatar: {
id: "enableAvatar",
input: "switch",
defaultValue: !0,
label: "Enable avatar"
},
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !0,
label: "Enable count article"
}
}
},
contained: {
template: "contained",
name: "Contained",
data: {
enableAvatar: !0,
enableCount: !0
},
fields: {
enableAvatar: {
id: "enableAvatar",
input: "switch",
defaultValue: !0,
label: "Enable avatar"
},
enableCount: {
id: "enableCount",
input: "switch",
defaultValue: !0,
label: "Enable count article"
}
}
}
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
height: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Height",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "carousel"
}
},
info: "Only use in layout carousel"
},
width: {
id: "width",
input: "input-number",
defaultValue: 300,
label: "Width",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "carousel"
}
},
info: "Only use in layout carousel"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout = grid",
props: {
min: 2,
max: 8,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout = grid",
props: {
min: .1,
max: 5,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Pad Item"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundItem: {
id: "backgroundItem",
input: "color",
defaultValue: {
dark: ec.secondaryDarkMode,
value: ec.grayColor
},
label: "Background color"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Text color"
},
subTextColor: {
id: "subTextColor",
input: "color",
defaultValue: {
dark: ec.tertiaryText,
value: ec.tertiaryText
},
label: "Sub text color"
},
radiusItem: {
id: "radiusItem",
input: "slider",
defaultValue: 8,
label: "Border Radius Item",
props: {
max: 30
}
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}
},
"product-category": Tfe,
"product-by-category": Ife,
"product-best-seller": {
id: "product-best-seller",
name: "Best Seller Products",
content: "Content 1",
group: Bp.woocommerce,
icon: "Market",
layout: Zh,
fields: Hh,
styles: Jh
},
"product-newest": {
id: "product-newest",
name: "Newest Products",
content: "Content 1",
group: Bp.woocommerce,
icon: "12PointStar",
layout: Zh,
fields: Xh,
styles: Jh
},
"product-top-rated": {
id: "product-top-rated",
name: "Top Rated Products",
content: "Content 1",
group: Bp.woocommerce,
icon: "Like",
layout: Zh,
fields: Hh,
styles: Jh
},
"product-sale": {
id: "product-sale",
name: "On Sale Products",
content: "Content 1",
group: Bp.woocommerce,
icon: "CalculatorPercentage",
layout: Zh,
fields: Hh,
styles: Jh
},
"product-tag": {
id: "product-tag",
name: "Product by Tag",
content: "Content 1",
group: Bp.woocommerce,
icon: "Tag",
layout: Zh,
fields: Kh,
styles: Jh
},
"product-hand-picked": {
id: "product-hand-picked",
name: "Hand-picked Products",
content: "Content 1",
group: Bp.woocommerce,
icon: "AppIconDefaultAdd",
layout: Zh,
fields: Gh,
styles: Jh
},
"product-recently": {
id: "product-recently",
name: "Recently Products",
content: "Content 1",
group: Bp.woocommerce,
icon: "AzureAPIManagement",
layout: Zh,
fields: qh,
styles: Jh
},
"product-featured": {
id: "product-featured",
name: "Featured Product",
content: "Content 1",
group: Bp.woocommerce,
icon: "FavoriteStar",
layout: Zh,
fields: Qh,
styles: Jh
},
"product-tab": {
id: "product-tab",
name: "Product Tabs",
content: "Content 1",
group: Bp.woocommerce,
icon: "Tag",
layout: {
defaultValue: "horizontal",
options: [{
id: "horizontal",
name: "Horizontal"
}]
},
fields: {
pad: {
id: "pad",
input: "input-number",
defaultValue: "12",
label: "Pad Tab",
props: {
max: 50
}
},
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
name: {
text: "Latest"
},
layoutItem: "list",
search: {
text: ""
},
tags: [],
categories: [],
limit: 4,
template: {
template: "contained",
data: {
size: {
width: 160,
height: 190
},
imageSize: "cover",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0
}
}
}
}],
label: "Items",
props: {
preview: "product-tab",
templates: {
default: {
template: "default",
name: "Item Default",
data: {
name: {
text: "Latest"
},
layoutItem: "list",
search: {
text: ""
},
tags: [],
categories: [],
limit: 4,
template: {
template: "contained",
data: {
size: {
width: 160,
height: 190
},
imageSize: "fill",
enableLabelNew: !0,
enableLabelSale: !0,
enableRating: !0
}
}
},
fields: Uh
}
},
keyItem: "name"
}
}
},
styles: Jh
},
"product-search": {
id: "product-search",
name: "Product Search",
content: "Content 1",
group: Bp.woocommerce,
icon: "Search",
fields: {
placeholder: {
id: "placeholder",
input: "text",
defaultValue: {
text: "Search Products",
style: {
fontSize: 14,
color: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
}
}
},
isTranslate: !0,
isStyle: !0,
label: "Placeholder"
},
__line_icon: {
id: "__line_icon",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_icon: {
id: "__header_icon",
input: "heading",
defaultValue: "",
label: "Icon"
},
enableIcon: {
id: "enableIcon",
input: "switch",
defaultValue: !0,
label: "Enable Icon"
},
icon: {
id: "icon",
input: "icon",
defaultValue: {
name: "search",
type: "feather"
},
label: "Icon"
},
enableIconLeft: {
id: "enableIconLeft",
input: "switch",
defaultValue: !0,
label: "Icon Left"
},
__line_scan: {
id: "__line_scan",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_scan: {
id: "__header_scan",
input: "heading",
defaultValue: "",
label: "Icon scan"
},
enableScan: {
id: "enableScan",
input: "switch",
defaultValue: !1,
label: "Enable Icon Scan"
},
enableScanLeft: {
id: "enableScanLeft",
input: "switch",
defaultValue: !0,
label: "Scan left"
}
},
styles: Ffe
},
brand: {
id: "brand",
name: "Brands",
content: "Content 1",
group: Bp.woocommerce,
icon: "FolderList",
layout: {
defaultValue: "list",
options: [{
id: "list",
name: "List"
}, {
id: "carousel",
name: "Carousel"
}, {
id: "masonry",
name: "Masonry"
}, {
id: "big-first",
name: "Big first"
}, {
id: "slideshow",
name: "Slideshow"
}, {
id: "grid",
name: "Grid"
}]
},
fields: {
limit: {
id: "pad",
input: "slider",
defaultValue: 4,
label: "Limit Item",
props: {
max: 100
}
},
template: {
id: "template",
input: "template",
defaultValue: {
template: "default",
data: {
imageSize: "cover",
enableImage: !0,
enableName: !0
}
},
label: "Select template",
props: {
preview: "brand",
templates: {
default: {
template: "default",
name: "Default",
data: {
enableImage: !0,
enableName: !0,
imageSize: "cover",
alignment: "left"
},
fields: {
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable Image"
},
enableName: {
id: "enableName",
input: "switch",
defaultValue: !0,
label: "Enable Name"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "left",
label: "Align Name"
}
}
},
overlay: {
template: "overlay",
name: "Overlay",
data: {
imageSize: "cover",
enableName: !0,
alignment: "left",
opacityColor: {
value: ec.black,
dark: ec.black
},
opacity: .5
},
fields: {
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableName: {
id: "enableName",
input: "switch",
defaultValue: !0,
label: "Enable Name"
},
alignment: {
id: "alignment",
input: "alignment",
defaultValue: "center",
label: "Align Name"
},
opacityColor: {
id: "opacityColor",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.black
},
label: "Opacity color"
},
opacity: {
id: "opacity",
input: "input-number",
defaultValue: "0.5",
label: "Opacity",
props: {
max: 1,
step: .1
}
}
}
},
wrap: {
template: "wrap",
name: "Background Wrap",
data: {
imageSize: "cover",
enableImage: !0,
enableName: !0
},
fields: {
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
},
enableImage: {
id: "enableImage",
input: "switch",
defaultValue: !0,
label: "Enable Image"
},
enableName: {
id: "enableName",
input: "switch",
defaultValue: !0,
label: "Enable Name"
}
}
},
horizontal: {
template: "horizontal",
name: "Image & Text Horizontal",
data: {
imageSize: "cover"
},
fields: {
imageSize: {
id: "imageSize",
input: "select",
defaultValue: "cover",
label: "Image Size",
props: {
options: rh
}
}
}
}
},
single: !0
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
},
pad: {
id: "pad",
input: "slider",
defaultValue: 12,
label: "Padding Item"
},
dividerWidth: {
id: "dividerWidth",
input: "slider",
defaultValue: 1,
label: "Divider width",
props: {
max: 20
}
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
dark: ec.borderDarkMode,
value: ec.borderLightMode
},
label: "Divider color"
},
col: {
id: "col",
input: "input-number",
defaultValue: 2,
label: "Column",
info: "Only use when layout = grid",
props: {
min: 2,
max: 8,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
ratio: {
id: "ratio",
input: "input-number",
defaultValue: 1,
label: "Ratio",
info: "Only use when layout = grid",
props: {
min: .1,
max: 5,
step: .1,
relationship: {
paths: ["layout"],
operator: "==",
value: "grid"
}
}
},
width: {
id: "width",
input: "input-number",
defaultValue: 300,
label: "Width",
info: "Only use when layout is carousel",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "==",
value: "carousel"
}
}
},
height: {
id: "height",
input: "input-number",
defaultValue: 200,
label: "Height",
info: "Only use when layout is carousel or slideshow",
props: {
max: 1e3,
relationship: {
paths: ["layout"],
operator: "include",
value: ["carousel", "slideshow"]
}
}
},
indicatorColor: {
id: "indicatorColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.primaryTextDarkMode
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator color",
info: "Only use with slideshow layout"
},
indicatorActiveColor: {
id: "indicatorActiveColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.white
},
props: {
relationship: {
paths: ["layout"],
operator: "==",
value: "slideshow"
}
},
label: "Indicator Active color",
info: "Only use with slideshow layout"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
backgroundItem: {
id: "backgroundItem",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Background Item"
},
textItem: {
id: "textItem",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
label: "Text Item"
},
paddingContent: {
id: "paddingContent",
input: "spacing",
defaultValue: {
paddingContentLeft: 7,
paddingContentRight: 7,
paddingContentBottom: 16,
paddingContentTop: 16
},
label: "Padding Content"
},
radius: {
id: "radius",
input: "slider",
defaultValue: 0,
label: "Border Radius",
props: {
max: 30
}
},
__lineShadow: {
id: "__lineShadow",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerShadow: {
id: "__headerShadow",
input: "heading",
defaultValue: "",
label: "Box Shadow"
},
shadowColor: {
id: "shadowColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Shadow color"
},
offsetX: {
id: "offsetX",
input: "slider",
defaultValue: 0,
label: "Offset X"
},
offsetY: {
id: "offsetY",
input: "slider",
defaultValue: 4,
label: "Offset Y"
},
blurRadius: {
id: "blurRadius",
input: "slider",
defaultValue: 24,
label: "Blur radius"
},
spreadRadius: {
id: "spreadRadius",
input: "slider",
defaultValue: 0,
label: "Spread radius"
}
}
},
"video-shopping": {
id: "video-shopping",
name: "Video Shopping",
content: "Video Shopping",
group: Bp.woocommerce,
icon: "MSNVideosSolid",
fields: {
search: {
id: "search",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "Keyword",
info: "Search product by keyword"
},
tags: {
id: "tags",
input: "picker",
defaultValue: [],
label: "Tags",
props: {
query: {
post_type: [],
taxonomy: ["product_tag"]
}
}
},
categories: {
id: "categories",
input: "picker",
defaultValue: [],
label: "Categories",
props: {
query: {
post_type: [],
taxonomy: ["product_cat"]
}
}
},
includeProduct: {
id: "includeProduct",
input: "picker",
defaultValue: [],
label: "Include Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
excludeProduct: {
id: "excludeProduct",
input: "picker",
defaultValue: [],
label: "Exclude Products",
props: {
query: {
post_type: ["product"],
taxonomy: []
}
}
},
enableGeoSearch: {
id: "enableGeoSearch",
input: "switch",
defaultValue: !0,
label: "Enable Geo search",
info: 'Will be used when enable "Enable allow location screen" of "General"'
},
limit: {
id: "limit",
input: "slider",
defaultValue: 4,
label: "Preview load items",
props: {
min: 1,
max: 100
}
},
enableLike: {
id: "enableLike",
input: "switch",
defaultValue: !0,
label: "Enable like button"
},
enableShare: {
id: "enableShare",
input: "switch",
defaultValue: !0,
label: "Enable share button"
},
enableView: {
id: "enableView",
input: "switch",
defaultValue: !0,
label: "Enable view button"
},
enableAddCart: {
id: "enableAddCart",
input: "switch",
defaultValue: !0,
label: "Enable add cart button"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line",
relationship: {
paths: ["fields", "enableLike"],
operator: "!=",
value: !1
}
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Button like",
props: {
relationship: {
paths: ["fields", "enableLike"],
operator: "!=",
value: !1
}
}
},
enableGuessLike: {
id: "enableGuessLike",
input: "switch",
defaultValue: !0,
label: "Enable guest like video",
props: {
relationship: {
paths: ["fields", "enableLike"],
operator: "!=",
value: !1
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Actions"
},
actionsAlignment: {
id: "actionsAlignment",
input: "select",
defaultValue: "bottom-end",
label: "Alignment",
props: {
options: ah
}
}
}
},
"vendor-best-selling": {
id: "vendor-best-selling",
name: "Best Selling Vendors",
content: "Content 1",
group: Bp.vendor,
icon: "UserEvent",
fields: Vfe,
styles: Wfe,
layout: qfe
},
"vendor-top-rated": {
id: "vendor-top-rated",
name: "Top Rated Vendors",
content: "Content 1",
group: Bp.vendor,
icon: "ContactHeart",
fields: Vfe,
styles: Wfe,
layout: qfe
},
tabs: qp,
sidebar: th,
general: hh,
theme: bh,
header: Pfe,
categoryPage: Sh,
onBoardingPage: Th,
profilePage: Nh,
login: ff,
register: gf,
html: {
id: "html",
name: "Html",
content: "Content 1",
group: Bp.base,
icon: "FileHTML",
fields: {
html: {
id: "html",
input: "html",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Html"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 12,
paddingRight: 12,
paddingBottom: 12,
paddingTop: 12
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Background Color Section"
}
}
},
productDetailPage: Vh,
productListPage: tf,
postList: kf,
postDetailPage: Ef,
postCategoryPage: Nf,
postWishlistPage: Df,
vendorListPage: Rf,
vendorDetailPage: Bf,
subscribe: {
id: "subscribe",
name: "Subscribe Form",
content: "Content 1",
group: Bp.base,
icon: "InsertTextBox",
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: "Stay in touch",
style: {
fontSize: 22,
fontWeight: "500",
color: {
dark: ec.white,
value: ec.black
}
}
},
isTranslate: !0,
isStyle: !0,
label: "Text heading"
},
description: {
id: "description",
input: "text",
defaultValue: {
text: "Get notified about exclusive offers every week!",
style: {
fontSize: 22,
color: {
dark: ec.white,
value: ec.black
}
}
},
isTranslate: !0,
isStyle: !0,
label: "Text description"
},
__line1: {
id: "__line1",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__header1: {
id: "__header1",
input: "heading",
defaultValue: "",
label: "Input"
},
placeholder: {
id: "placeholder",
input: "text",
defaultValue: {
text: "Your Email"
},
isTranslate: !0,
isStyle: !1,
label: "Placeholder"
},
name: {
id: "name",
input: "text",
defaultValue: "your-email",
isTranslate: !1,
isStyle: !1,
label: "Field name"
},
formId: {
id: "formId",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Form Id",
info: "Contact Form 7 ID"
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__header2: {
id: "__header2",
input: "heading",
defaultValue: "",
label: "Bottom"
},
txtButton: {
id: "txtButton",
input: "text",
defaultValue: {
text: "Subscribe"
},
isTranslate: !0,
isStyle: !1,
label: "Button text"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background color"
},
image: {
id: "image",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Background Image "
},
__line_icon: {
id: "__line_icon",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_icon: {
id: "__header_icon",
input: "heading",
defaultValue: "",
label: "Config Icon"
},
sizeIcon: {
id: "sizeIcon",
input: "input-number",
defaultValue: 20,
label: "Size",
props: {
max: 1e3
}
},
colorIcon: {
id: "colorIcon",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Color"
},
__line_input: {
id: "__line_input",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_input: {
id: "__header_input",
input: "heading",
defaultValue: "",
label: "Config Text Input"
},
backgroundInput: {
id: "backgroundInput",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background"
},
colorInput: {
id: "colorInput",
input: "color",
defaultValue: {
dark: ec.white,
value: ec.black
},
label: "Color"
},
colorPlaceholder: {
id: "colorIcon",
input: "color",
defaultValue: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
label: "Placeholder"
},
borderInput: {
id: "borderInput",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Border"
},
__line_button: {
id: "__line_button",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_button: {
id: "__header_button",
input: "heading",
defaultValue: "",
label: "Config button"
},
backgroundButton: {
id: "backgroundButton",
input: "color",
defaultValue: {
value: ec.primaryColor,
dark: ec.primaryColor
},
label: "Background"
},
colorButton: {
id: "colorButton",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
label: "Color"
}
},
layout: {
defaultValue: "default",
options: [{
id: "default",
name: "Default"
}]
}
},
social: Rfe,
webview: {
id: "webview",
name: "Webview",
content: "Content 1",
group: Bp.base,
icon: "PreviewLink",
fields: {
height: {
id: "height",
input: "input-number",
defaultValue: "200",
label: "Height",
props: {
min: 0
}
},
url: {
id: "url",
input: "text",
defaultValue: {
text: ""
},
isTranslate: !0,
isStyle: !1,
label: "URL"
},
syncAuth: {
id: "syncAuth",
input: "switch",
defaultValue: !1,
label: "Sync login App => Webview"
},
syncAuthWebToApp: {
id: "syncAuthWebToApp",
input: "switch",
defaultValue: !1,
label: "Sync login Webview => App"
},
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
condition: "no_condition",
value: "",
action: $p.none
}
}],
label: "Handle redirect URL",
props: {
preview: "banner",
templates: {
default: {
template: "default",
name: "Template Default",
data: {
condition: "",
valueCondition: "no_condition",
action: $p.none
},
fields: {
condition: {
id: "condition",
input: "select",
defaultValue: {
src: ""
},
label: "Condition",
props: {
options: [{
key: "no_condition",
text: "No condition"
}, {
key: "url_start",
text: "Url start with"
}, {
key: "url_end",
text: "Url end with"
}, {
key: "url_contain",
text: "Url contain"
}, {
key: "equal_to",
text: "Equal to"
}]
}
},
value: {
id: "value",
input: "text",
defaultValue: "",
label: "Value"
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Navigate to"
}
}
}
},
keyItem: "value"
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
}
}
},
"page-block": {
id: "page-block",
name: "Page Blocks",
content: "Content 1",
group: Bp.base,
icon: "PreviewLink",
fields: {
page: {
id: "page",
input: "picker-single",
defaultValue: {},
label: "Select page",
props: {
query: {
post_type: ["page"],
taxonomy: []
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
}
}
},
"post-block": {
id: "post-block",
name: "Post Blocks",
content: "Content 1",
group: Bp.base,
icon: "PreviewLink",
fields: {
post: {
id: "post",
input: "picker-single",
defaultValue: {},
label: "Select post",
props: {
query: {
post_type: ["post"],
taxonomy: []
}
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background color"
}
}
},
productQuickView: Vf,
"tab-basic": {
id: "tab-basic",
name: "Tabs",
content: "Content 1",
group: Bp.base,
icon: "ButtonControl",
fields: {
items: {
id: "items",
input: "items",
defaultValue: [{
template: "default",
data: {
title: {
text: "Item"
},
content: {
text: "Content"
}
}
}],
label: "Items",
props: {
preview: "tab-basic",
templates: {
default: {
template: "default",
name: "Default",
data: {
title: {
text: "Item"
},
content: {
text: "Content"
}
},
fields: {
title: {
id: "title",
input: "text",
defaultValue: {
text: "Item"
},
isTranslate: !0,
label: "Title"
},
content: {
id: "content",
input: "text",
isTranslate: !0,
defaultValue: {
text: "Content"
},
label: "Content",
props: {
multiline: !0,
rows: 5
}
}
}
}
},
keyItem: "title"
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
},
__lineTab: {
id: "__lineTab",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerTab: {
id: "__headerTab",
input: "heading",
defaultValue: "",
label: "Config Tab"
},
tabColor: {
id: "tabColor",
input: "color",
defaultValue: {
value: ec.tertiaryText,
dark: ec.secondaryTextDarkMode
},
label: "Tab Color"
},
selectTabColor: {
id: "selectTabColor",
input: "color",
defaultValue: {
value: ec.blue,
dark: ec.blue
},
label: "Select tab color"
},
__lineContent: {
id: "__lineContent",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__headerContent: {
id: "__headerTab",
input: "heading",
defaultValue: "",
label: "Config Content"
},
contentHeight: {
id: "height",
input: "input-number",
defaultValue: 300,
label: "Content Height",
props: {
max: 1e3
}
},
contentTextColor: {
id: "contentTextColor",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
label: "Content text Color"
}
}
},
brandListPage: qf,
cartPage: Uf,
chatGPT: {
id: "chatGPT",
name: "Chat GPT",
content: "Content 1",
group: Bp.base,
icon: "ChatBot",
fields: {
__header_info: {
id: "__header_info",
input: "heading",
defaultValue: "",
label: "BOT Chat Information"
},
nameInformation: {
id: "nameInformation",
input: "text",
defaultValue: "BOT UI",
isTranslate: !1,
isStyle: !1,
label: "First Name"
},
avatarInformation: {
id: "avatarInformation",
input: "image",
defaultValue: {
src: ""
},
label: "Avatar"
},
__line_setting: {
id: "__line_setting",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_setting: {
id: "__header_setting",
input: "heading",
defaultValue: "",
label: "Chat GTP API params"
},
modelSetting: {
id: "modelSetting",
input: "select",
defaultValue: "text-davinci-003",
label: "Model",
props: {
options: [{
key: "text-embedding-3-small",
text: "text-embedding-3-small"
}, {
key: "gpt-4-0125-preview",
text: "gpt-4-0125-preview"
}, {
key: "text-embedding-ada-002",
text: "text-embedding-ada-002"
}, {
key: "whisper-1",
text: "whisper-1"
}, {
key: "dall-e-2",
text: "dall-e-2"
}, {
key: "gpt-4o-mini",
text: "gpt-4o-mini"
}, {
key: "tts-1-hd-1106",
text: "tts-1-hd-1106"
}, {
key: "tts-1-1106",
text: "tts-1-1106"
}, {
key: "tts-1-hd",
text: "tts-1-hd"
}, {
key: "dall-e-3",
text: "dall-e-3"
}, {
key: "gpt-4-turbo-preview",
text: "gpt-4-turbo-preview"
}, {
key: "gpt-4-1106-preview",
text: "gpt-4-1106-preview"
}, {
key: "babbage-002",
text: "babbage-002"
}, {
key: "gpt-4o-2024-05-13",
text: "gpt-4o-2024-05-13"
}, {
key: "gpt-3.5-turbo",
text: "gpt-3.5-turbo"
}, {
key: "gpt-3.5-turbo-1106",
text: "gpt-3.5-turbo-1106"
}, {
key: "gpt-4",
text: "gpt-4"
}, {
key: "gpt-3.5-turbo-16k",
text: "gpt-3.5-turbo-16k"
}, {
key: "chatgpt-4o-latest",
text: "chatgpt-4o-latest"
}, {
key: "gpt-3.5-turbo-instruct-0914",
text: "gpt-3.5-turbo-instruct-0914"
}, {
key: "gpt-3.5-turbo-0125",
text: "gpt-3.5-turbo-0125"
}, {
key: "gpt-4-0613",
text: "gpt-4-0613"
}, {
key: "text-embedding-3-large",
text: "text-embedding-3-large"
}, {
key: "gpt-3.5-turbo-instruct",
text: "gpt-3.5-turbo-instruct"
}, {
key: "gpt-4o",
text: "gpt-4o"
}, {
key: "tts-1",
text: "tts-1"
}, {
key: "gpt-4-turbo-2024-04-09",
text: "gpt-4-turbo-2024-04-09"
}, {
key: "davinci-002",
text: "davinci-002"
}, {
key: "gpt-4-turbo",
text: "gpt-4-turbo"
}, {
key: "gpt-4o-mini-2024-07-18",
text: "gpt-4o-mini-2024-07-18"
}, {
key: "gpt-4o-2024-08-06",
text: "gpt-4o-2024-08-06"
}]
}
},
temperatureSetting: {
id: "temperature",
input: "input-number",
defaultValue: .7,
label: "Temperature",
props: {
min: 0,
max: 1,
step: .01
}
},
maxTokensSetting: {
id: "maxTokensSetting",
input: "input-number",
defaultValue: 256,
label: "Maximum Length",
props: {
min: 1,
max: 4e3
}
},
stopSetting: {
id: "stopSetting",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Stop Sequences",
info: "Use ',' to split. Ex: text1,text2"
},
topPSetting: {
id: "topPSetting",
input: "input-number",
defaultValue: 1,
label: "Top P",
props: {
min: 0,
max: 1,
step: .01
}
},
frequencyPenaltySetting: {
id: "frequencyPenaltySetting",
input: "input-number",
defaultValue: 0,
label: "Frequency Penalty",
props: {
min: 0,
max: 2,
step: .01
}
},
presencePenaltySetting: {
id: "presencePenaltySetting",
input: "input-number",
defaultValue: 0,
label: "Presence Penalty",
props: {
min: 0,
max: 2,
step: .01
}
},
bestOfSetting: {
id: "bestOfSetting",
input: "input-number",
defaultValue: 1,
label: "Best Of",
props: {
min: 1,
max: 20,
step: 1
}
},
nSetting: {
id: "presencePenaltySetting",
input: "input-number",
defaultValue: 1,
label: "N",
props: {
min: 0
}
},
streamSetting: {
id: "streamSetting",
input: "switch",
defaultValue: !1,
label: "Stream"
},
logprobsSetting: {
id: "logprobsSetting",
input: "text",
defaultValue: "",
isTranslate: !1,
isStyle: !1,
label: "Log Probabilities",
info: "Must fill is number"
},
echoSetting: {
id: "echoSetting",
input: "switch",
defaultValue: !1,
label: "Echo"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
dark: ec.transparent,
value: ec.transparent
},
label: "Background Color"
}
}
},
custom: {
id: "custom",
name: "Custom",
content: "Content 1",
group: Bp.base,
icon: "CustomizeToolbar",
fields: {
key: {
id: "key",
input: "text",
defaultValue: "",
label: "Key",
info: 'Default supported keys: "buddypress_members", "buddypress_groups" and "buddypress_activities"'
},
dataJson: {
id: "dataJson",
input: "text",
defaultValue: "",
label: "Data Json",
info: 'Value must is json data. Ex: {"perPage": 5}\nValues with key "buddypress_members": {"perPage": 4, "page": 1, "loadMore": false, "search": false, "enableSelf": true}\nValues with key "buddypress_groups": {"perPage": 4, "page": 1, "loadMore": false, "search": false}\nValues with key "buddypress_activities": {"perPage": 4, "page": 1, "loadMore": false, "search": false}',
props: {
multiline: !0,
rows: 7
}
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
backgroundColor: {
id: "backgroundColor",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header: {
id: "__header",
input: "heading",
defaultValue: "",
label: "Config Item"
},
textColor: {
id: "textColor",
input: "color",
defaultValue: {
value: ec.primaryText,
dark: ec.white
},
label: "Text Color"
},
subtextColor: {
id: "subtextColor",
input: "color",
defaultValue: {
value: ec.secondaryText,
dark: ec.secondaryTextDarkMode
},
label: "Subtext Color"
},
dividerColor: {
id: "dividerColor",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Divider Color"
},
__line_2: {
id: "__line_2",
input: "heading",
defaultValue: "",
label: "Line",
props: {
type: "line"
}
},
__header_2: {
id: "__header_2",
input: "heading",
defaultValue: "",
label: "Config Input"
},
backgroundColorInput: {
id: "backgroundColorInput",
input: "color",
defaultValue: {
value: ec.grayColor,
dark: ec.secondaryDarkMode
},
label: "Background Color"
},
borderColorInput: {
id: "borderColorInput",
input: "color",
defaultValue: {
value: ec.borderLightMode,
dark: ec.borderDarkMode
},
label: "Border color"
},
iconColorInput: {
id: "iconColorInput",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
label: "Icon Color"
}
}
},
form: {
id: "form",
name: "Dynamic Form",
content: "Content 1",
group: Bp.base,
icon: "OfficeFormsLogo",
fields: {
form: {
id: "form",
input: "html",
defaultValue: {
text: ""
},
isTranslate: !0,
label: "Form",
props: {
rows: 10
}
},
action: {
id: "action",
input: "action",
defaultValue: $p.none,
isTranslate: !0,
label: "Action Submit"
}
},
styles: {
padding: {
id: "padding",
input: "spacing",
defaultValue: {
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
paddingTop: 0
},
label: "Padding",
props: {}
},
margin: {
id: "margin",
input: "spacing",
defaultValue: {
marginLeft: 0,
marginRight: 0,
marginBottom: 0,
marginTop: 0
},
label: "Margin",
props: {}
},
background: {
id: "background",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Color"
}
}
}
}, Ufe = {
banner: HX,
button: nG,
"product-category": HK,
divider: GK,
post: jJ,
"product-by-category": m1,
slideshow: c6,
testimonial: S6,
text: E6,
social: R6,
tabs: G7,
sidebar: Are,
general: Ire,
theme: Bre,
header: Gre,
categoryPage: Vie,
profilePage: ioe,
contactPage: Loe,
onBoardingPage: nae,
login: oae,
register: lae,
productDetailPage: cae,
productListPage: function() {
return Object(Ip.jsx)(rae, {})
},
postListPage: dae,
postDetailPage: hae,
postCategoryPage: bae,
postWishlistPage: mae,
vendorListPage: yae,
vendorDetailPage: Oae,
countdown: Rae,
spacer: Fae,
heading: nle,
video: ale,
"video-youtube": sle,
"icon-box": ese,
"post-archive": use,
"post-category": Ace,
"post-comment": Bce,
"post-tag": Jue,
"post-search": Jce,
"post-author": Rue,
"post-tab": Wce,
"product-best-seller": ede,
"product-newest": rde,
"product-top-rated": ade,
"product-sale": cde,
"product-tag": pde,
"product-hand-picked": bde,
"product-recently": vde,
"product-featured": Ode,
"product-tab": Xpe,
"product-search": kde,
"vendor-best-selling": Ppe,
"vendor-top-rated": Fpe,
html: Kpe,
subscribe: Zpe,
webview: ehe,
"page-block": nhe,
"post-block": ihe,
productQuickView: ahe,
brand: mfe,
"video-shopping": jfe,
"tab-basic": xfe,
brandListPage: function() {
return Object(Ip.jsx)(rae, {})
},
cartPage: function() {
return Object(Ip.jsx)(rae, {})
},
chatGPT: Cfe,
custom: Mfe,
form: ile
}, Xfe = {
banner: {
default: {
left: -24,
top: -459
},
style1: {
left: -202,
top: -459
},
style2: {
left: -380,
top: -459
},
style3: {
left: -558,
top: -459
},
style4: {
left: -736,
top: -459
},
style5: {
left: -914,
top: -459
},
style6: {
left: -202,
top: -667
},
style7: {
left: -380,
top: -667
},
style8: {
left: -558,
top: -667
},
style9: {
left: -24,
top: -667
}
},
"product-list": {
contained: {
left: -380,
top: -1707
},
horizontal: {
left: -914,
top: -1707
},
emerge: {
left: -558,
top: -1707
},
vertical: {
left: -24,
top: -1915
},
"vertical-center": {
left: -736,
top: -1707
},
"card-horizontal": {
left: -24,
top: -1915
},
"card-vertical": {
left: -24,
top: -1915
},
curve: {
left: -24,
top: -1915
}
},
"product-category": {
default: {
left: -202,
top: -1915
},
overlay: {
left: -380,
top: -1915
},
wrap: {
left: -558,
top: -1499
},
horizontal: {
left: -380,
top: -1499
}
},
brand: {
default: {
left: -202,
top: -1915
},
overlay: {
left: -380,
top: -1915
},
wrap: {
left: -558,
top: -1499
},
horizontal: {
left: -380,
top: -1499
}
},
"post-category": {
contained: {
left: -736,
top: -667
},
horizontal: {
left: -914,
top: -667
},
gradient: {
left: -914,
top: -875
}
},
post: {
default: {
left: -24,
top: -1083
},
vertical: {
left: -380,
top: -1083
},
horizontal: {
left: -736,
top: -1083
},
number: {
left: -914,
top: -1083
},
overlay: {
left: -558,
top: -1083
},
timeLine: {
left: -558,
top: -1291
},
verticalCenter: {
left: -202,
top: -1083
},
topName: {
left: -380,
top: -1291
},
emerge: {
left: -202,
top: -1291
},
gradient: {
left: -24,
top: -1291
}
},
"post-author": {
vertical: {
left: -736,
top: -1291
},
contained: {
left: -914,
top: -1291
}
},
"icon-box": {
default: {
left: -380,
top: -875
},
contained: {
left: -558,
top: -875
},
group: {
left: -736,
top: -875
}
},
testimonial: {
default: {
left: -24,
top: -875
},
style2: {
left: -202,
top: -875
}
},
categoryPage: {
horizontal: {
left: -380,
top: -1499
},
"horizontal-emerge": {
left: -380,
top: -1499
},
card: {
left: -558,
top: -1499
},
overlay: {
left: -24,
top: -1499
},
contained: {
left: -202,
top: -1499
},
grid: {
left: -914,
top: -1499
},
basic: {
left: -736,
top: -1499
}
},
onBoardingPage: {
default: {
left: -699,
top: -111
},
overlay: {
left: -811,
top: -111
}
},
"vendor-list": {
contained: {
left: -558,
top: -1915
},
horizontal: {
left: -736,
top: -1707
},
emerge: {
left: -914,
top: -1707
},
gradient: {
left: -24,
top: -2123
}
},
"tab-basic": {
default: {
left: -558,
top: -1915
}
},
form: {
text: {
left: -24,
top: -667
},
email: {
left: -24,
top: -667
},
url: {
left: -24,
top: -667
},
tel: {
left: -24,
top: -667
},
number: {
left: -24,
top: -667
},
date: {
left: -24,
top: -667
},
textarea: {
left: -24,
top: -667
},
select: {
left: -24,
top: -667
},
checkbox: {
left: -24,
top: -667
},
radio: {
left: -24,
top: -667
},
acceptance: {
left: -24,
top: -667
},
quiz: {
left: -24,
top: -667
},
file: {
left: -24,
top: -667
},
submit: {
left: -24,
top: -667
}
},
"form-option": {
default: {
left: -24,
top: -667
}
}
}, Gfe = {
carousel: {
left: -474,
top: -198
},
list: {
left: -24,
top: -198
},
masonry: {
left: -136,
top: -198
},
"big-first": {
left: -586,
top: -198
},
slideshow: {
left: -698,
top: -198
}
}, Kfe = _t(_t({}, Gfe), {}, {
grid: {
left: -249,
top: -198
}
}), Yfe = {
banner: {
carousel: {
left: -474,
top: -198
},
list: {
left: -24,
top: -198
},
masonry: {
left: -136,
top: -198
},
slideshow: {
left: -698,
top: -198
},
grid: {
left: -249,
top: -198
},
multi: {
left: -811,
top: -198
}
},
heading: {
default: {
left: -24,
top: -111
},
divider: {
left: -136,
top: -111
},
corner: {
left: -249,
top: -111
},
vertical: {
left: -361,
top: -111
}
},
"product-by-category": Kfe,
"product-best-seller": Kfe,
"product-newest": Kfe,
"product-sale": Kfe,
"product-top-rated": Kfe,
"product-featured": Kfe,
"product-hand-picked": Kfe,
"product-recently": Kfe,
"product-tag": Kfe,
"product-category": Kfe,
"post-category": Kfe,
"vendor-best-selling": Kfe,
"vendor-top-rated": Kfe,
brand: Kfe,
post: Gfe,
"post-tab": {
horizontal: {
left: -586,
top: -285
}
},
"product-tab": {
horizontal: {
left: -586,
top: -285
}
},
"post-author": {
carousel: {
left: -474,
top: -198
},
list: {
left: -24,
top: -198
},
grid: {
left: -249,
top: -198
}
},
countdown: {
horizontal: {
left: -474,
top: -111
},
vertical: {
left: -586,
top: -111
}
},
"icon-box": {
carousel: {
left: -474,
top: -198
},
list: {
left: -24,
top: -198
},
masonry: {
left: -136,
top: -198
},
slideshow: {
left: -698,
top: -198
},
grid: {
left: -249,
top: -198
}
},
subscribe: {
default: {
left: -24,
top: -24
}
},
"post-tag": {
wrap: {
left: -361,
top: -198
},
carousel: {
left: -474,
top: -198
}
},
slideshow: {
basic: {
left: -24,
top: -24
},
center_mode: {
left: -136,
top: -24
},
stack: {
left: -249,
top: -24
},
tinder: {
left: -361,
top: -24
},
rotate: {
left: -474,
top: -24
}
},
tabs: {
default: {
left: -811,
top: -24
},
default_bg: {
left: -1036,
top: -285
},
border_top: {
left: -924,
top: -24
},
border_bottom: {
left: -1374,
top: -24
},
salomon: {
left: -1036,
top: -24
},
inspired_inside: {
left: -1486,
top: -111
},
inspired_inside_hexagon: {
left: -1599,
top: -111
},
inspired_outside: {
left: -1149,
top: -111
},
inspired_outside_hexagon: {
left: -1374,
top: -111
},
inspired_outside_deep: {
left: -1486,
top: -24
},
inspired_outside_radius: {
left: -1149,
top: -111
},
inspired_curve: {
left: -1149,
top: -24
},
inspired_curve_hexagon: {
left: -1261,
top: -24
},
creative: {
left: -1036,
top: -111
},
creative_hexagon: {
left: -1261,
top: -111
},
fancy: {
left: -1036,
top: -198
},
fancy_border: {
left: -1261,
top: -198
},
floating: {
left: -1149,
top: -198
}
},
categoryPage: {
default: {
left: -24,
top: -198
},
horizontal: {
left: -586,
top: -24
},
vertical: {
left: -699,
top: -24
}
},
postDetailPage: {
default: {
left: -24,
top: -372
},
overlay: {
left: -136,
top: -372
},
curve_top: {
left: -249,
top: -372
},
curve_bottom: {
left: -361,
top: -372
},
gradient: {
left: -474,
top: -372
},
stack: {
left: -586,
top: -372
},
layer: {
left: -699,
top: -372
}
},
postCategoryPage: {
default: {
left: -24,
top: -194
}
},
postWishlistPage: {
default: {
left: -24,
top: -194
}
},
postList: {
default: {
left: -24,
top: -198
}
},
sidebar: mre,
productDetailPage: {
default: {
left: -24,
top: -24
},
zoom: {
left: -361,
top: -285
},
scroll: {
left: -474,
top: -285
}
},
productListPage: {
default: {
left: -249,
top: -198
}
},
login: {
default: {
left: -586,
top: -285
},
logo_top: {
left: -699,
top: -285
},
image_header_top: {
left: -811,
top: -285
},
image_header_corner: {
left: -924,
top: -285
}
},
register: {
default: {
left: -586,
top: -285
},
logo_top: {
left: -699,
top: -285
},
image_header_top: {
left: -811,
top: -285
},
image_header_corner: {
left: -924,
top: -285
}
},
contactPage: {
horizontal: {
left: -474,
top: -198
},
vertical: {
left: -24,
top: -198
},
default: {
left: -924,
top: -111
}
},
vendorListPage: {
default: {
left: -474,
top: -198
},
map: {
left: -24,
top: -198
}
},
onBoardingPage: {
default: {
left: -699,
top: -111
},
overlay: {
left: -811,
top: -111
}
},
profilePage: noe
}, Qfe = ["value", "label", "isStyle", "isTranslate", "defaultValue", "props"], Jfe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r = e.props.onChange;
r && r(n)
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.value
, n = e.label
, r = (e.isStyle,
e.isTranslate,
e.defaultValue)
, i = e.props
, o = Su(e, Qfe);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: n,
info: this.props.info
}), Object(Ip.jsx)(jk, _t(_t(_t({}, i), o), {}, {
styles: uS,
value: null == t ? r : t,
onChange: this._onChange,
onBlur: this._onBlur
}))]
})
}
}]),
n
}(l.Component);
Jfe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var Zfe = Jfe
, $fe = n(20)
, ebe = n.n($fe)
, tbe = {}
, nbe = function(e, t, n, r) {
var i = e + "-" + t + "-" + n + (r ? "-server" : "");
if (tbe[i])
return tbe[i];
var o = function(e, t, n, r) {
if ("undefined" == typeof document && !r)
return null;
var i = r ? new r : document.createElement("canvas");
i.width = 2 * n,
i.height = 2 * n;
var o = i.getContext("2d");
return o ? (o.fillStyle = e,
o.fillRect(0, 0, i.width, i.height),
o.fillStyle = t,
o.fillRect(0, 0, n, n),
o.translate(n, n),
o.fillRect(0, 0, n, n),
i.toDataURL()) : null
}(e, t, n, r);
return tbe[i] = o,
o
}
, rbe = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, ibe = function(e) {
var t = e.white
, n = e.grey
, r = e.size
, i = e.renderers
, o = e.borderRadius
, a = e.boxShadow
, c = e.children
, u = ebe()({
default: {
grid: {
borderRadius: o,
boxShadow: a,
absolute: "0px 0px 0px 0px",
background: "url(" + nbe(t, n, r, i.canvas) + ") center left"
}
}
});
return Object(l.isValidElement)(c) ? s.a.cloneElement(c, rbe({}, c.props, {
style: rbe({}, c.props.style, u.grid)
})) : s.a.createElement("div", {
style: u.grid
})
};
ibe.defaultProps = {
size: 8,
white: "transparent",
grey: "rgba(0,0,0,.08)",
renderers: {}
};
var obe = ibe
, abe = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, lbe = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}();
function sbe(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}
var cbe = function(e) {
function t() {
var e, n, r;
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
for (var i = arguments.length, o = Array(i), a = 0; a < i; a++)
o[a] = arguments[a];
return n = r = sbe(this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply(e, [this].concat(o))),
r.handleChange = function(e) {
var t = function(e, t, n, r, i) {
var o, a, l = i.clientWidth, s = i.clientHeight, c = "number" == typeof e.pageX ? e.pageX : e.touches[0].pageX, u = "number" == typeof e.pageY ? e.pageY : e.touches[0].pageY, d = c - (i.getBoundingClientRect().left + window.pageXOffset), p = u - (i.getBoundingClientRect().top + window.pageYOffset);
if ("vertical" === n) {
if (o = p < 0 ? 0 : p > s ? 1 : Math.round(100 * p / s) / 100,
t.a !== o)
return {
h: t.h,
s: t.s,
l: t.l,
a: o,
source: "rgb"
}
} else if (r !== (a = d < 0 ? 0 : d > l ? 1 : Math.round(100 * d / l) / 100))
return {
h: t.h,
s: t.s,
l: t.l,
a: a,
source: "rgb"
};
return null
}(e, r.props.hsl, r.props.direction, r.props.a, r.container);
t && "function" == typeof r.props.onChange && r.props.onChange(t, e)
}
,
r.handleMouseDown = function(e) {
r.handleChange(e),
window.addEventListener("mousemove", r.handleChange),
window.addEventListener("mouseup", r.handleMouseUp)
}
,
r.handleMouseUp = function() {
r.unbindEventListeners()
}
,
r.unbindEventListeners = function() {
window.removeEventListener("mousemove", r.handleChange),
window.removeEventListener("mouseup", r.handleMouseUp)
}
,
sbe(r, n)
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
lbe(t, [{
key: "componentWillUnmount",
value: function() {
this.unbindEventListeners()
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props.rgb
, n = ebe()({
default: {
alpha: {
absolute: "0px 0px 0px 0px",
borderRadius: this.props.radius
},
checkboard: {
absolute: "0px 0px 0px 0px",
overflow: "hidden",
borderRadius: this.props.radius
},
gradient: {
absolute: "0px 0px 0px 0px",
background: "linear-gradient(to right, rgba(" + t.r + "," + t.g + "," + t.b + ", 0) 0%,\n rgba(" + t.r + "," + t.g + "," + t.b + ", 1) 100%)",
boxShadow: this.props.shadow,
borderRadius: this.props.radius
},
container: {
position: "relative",
height: "100%",
margin: "0 3px"
},
pointer: {
position: "absolute",
left: 100 * t.a + "%"
},
slider: {
width: "4px",
borderRadius: "1px",
height: "8px",
boxShadow: "0 0 2px rgba(0, 0, 0, .6)",
background: "#fff",
marginTop: "1px",
transform: "translateX(-2px)"
}
},
vertical: {
gradient: {
background: "linear-gradient(to bottom, rgba(" + t.r + "," + t.g + "," + t.b + ", 0) 0%,\n rgba(" + t.r + "," + t.g + "," + t.b + ", 1) 100%)"
},
pointer: {
left: 0,
top: 100 * t.a + "%"
}
},
overwrite: abe({}, this.props.style)
}, {
vertical: "vertical" === this.props.direction,
overwrite: !0
});
return s.a.createElement("div", {
style: n.alpha
}, s.a.createElement("div", {
style: n.checkboard
}, s.a.createElement(obe, {
renderers: this.props.renderers
})), s.a.createElement("div", {
style: n.gradient
}), s.a.createElement("div", {
style: n.container,
ref: function(t) {
return e.container = t
},
onMouseDown: this.handleMouseDown,
onTouchMove: this.handleChange,
onTouchStart: this.handleChange
}, s.a.createElement("div", {
style: n.pointer
}, this.props.pointer ? s.a.createElement(this.props.pointer, this.props) : s.a.createElement("div", {
style: n.slider
}))))
}
}]),
t
}(l.PureComponent || l.Component)
, ube = cbe
, dbe = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, pbe = [38, 40]
, hbe = 1
, fbe = function(e) {
function t(e) {
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
var n = function(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));
return n.handleBlur = function() {
n.state.blurValue && n.setState({
value: n.state.blurValue,
blurValue: null
})
}
,
n.handleChange = function(e) {
n.setUpdatedValue(e.target.value, e)
}
,
n.handleKeyDown = function(e) {
var t, r = function(e) {
return Number(String(e).replace(/%/g, ""))
}(e.target.value);
if (!isNaN(r) && (t = e.keyCode,
pbe.indexOf(t) > -1)) {
var i = n.getArrowOffset()
, o = 38 === e.keyCode ? r + i : r - i;
n.setUpdatedValue(o, e)
}
}
,
n.handleDrag = function(e) {
if (n.props.dragLabel) {
var t = Math.round(n.props.value + e.movementX);
t >= 0 && t <= n.props.dragMax && n.props.onChange && n.props.onChange(n.getValueObjectWithLabel(t), e)
}
}
,
n.handleMouseDown = function(e) {
n.props.dragLabel && (e.preventDefault(),
n.handleDrag(e),
window.addEventListener("mousemove", n.handleDrag),
window.addEventListener("mouseup", n.handleMouseUp))
}
,
n.handleMouseUp = function() {
n.unbindEventListeners()
}
,
n.unbindEventListeners = function() {
window.removeEventListener("mousemove", n.handleDrag),
window.removeEventListener("mouseup", n.handleMouseUp)
}
,
n.state = {
value: String(e.value).toUpperCase(),
blurValue: String(e.value).toUpperCase()
},
n.inputId = "rc-editable-input-" + hbe++,
n
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
dbe(t, [{
key: "componentDidUpdate",
value: function(e, t) {
this.props.value === this.state.value || e.value === this.props.value && t.value === this.state.value || (this.input === document.activeElement ? this.setState({
blurValue: String(this.props.value).toUpperCase()
}) : this.setState({
value: String(this.props.value).toUpperCase(),
blurValue: !this.state.blurValue && String(this.props.value).toUpperCase()
}))
}
}, {
key: "componentWillUnmount",
value: function() {
this.unbindEventListeners()
}
}, {
key: "getValueObjectWithLabel",
value: function(e) {
return function(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n,
e
}({}, this.props.label, e)
}
}, {
key: "getArrowOffset",
value: function() {
return this.props.arrowOffset || 1
}
}, {
key: "setUpdatedValue",
value: function(e, t) {
var n = this.props.label ? this.getValueObjectWithLabel(e) : e;
this.props.onChange && this.props.onChange(n, t),
this.setState({
value: e
})
}
}, {
key: "render",
value: function() {
var e = this
, t = ebe()({
default: {
wrap: {
position: "relative"
}
},
"user-override": {
wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {},
input: this.props.style && this.props.style.input ? this.props.style.input : {},
label: this.props.style && this.props.style.label ? this.props.style.label : {}
},
"dragLabel-true": {
label: {
cursor: "ew-resize"
}
}
}, {
"user-override": !0
}, this.props);
return s.a.createElement("div", {
style: t.wrap
}, s.a.createElement("input", {
id: this.inputId,
style: t.input,
ref: function(t) {
return e.input = t
},
value: this.state.value,
onKeyDown: this.handleKeyDown,
onChange: this.handleChange,
onBlur: this.handleBlur,
placeholder: this.props.placeholder,
spellCheck: "false"
}), this.props.label && !this.props.hideLabel ? s.a.createElement("label", {
htmlFor: this.inputId,
style: t.label,
onMouseDown: this.handleMouseDown
}, this.props.label) : null)
}
}]),
t
}(l.PureComponent || l.Component)
, bbe = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}();
function gbe(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}
var mbe = function(e) {
function t() {
var e, n, r;
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
for (var i = arguments.length, o = Array(i), a = 0; a < i; a++)
o[a] = arguments[a];
return n = r = gbe(this, (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply(e, [this].concat(o))),
r.handleChange = function(e) {
var t = function(e, t, n, r) {
var i = r.clientWidth
, o = r.clientHeight
, a = "number" == typeof e.pageX ? e.pageX : e.touches[0].pageX
, l = "number" == typeof e.pageY ? e.pageY : e.touches[0].pageY
, s = a - (r.getBoundingClientRect().left + window.pageXOffset)
, c = l - (r.getBoundingClientRect().top + window.pageYOffset);
if ("vertical" === t) {
var u = void 0;
if (u = c < 0 ? 359 : c > o ? 0 : 360 * (-100 * c / o + 100) / 100,
n.h !== u)
return {
h: u,
s: n.s,
l: n.l,
a: n.a,
source: "hsl"
}
} else {
var d = void 0;
if (d = s < 0 ? 0 : s > i ? 359 : 100 * s / i * 360 / 100,
n.h !== d)
return {
h: d,
s: n.s,
l: n.l,
a: n.a,
source: "hsl"
}
}
return null
}(e, r.props.direction, r.props.hsl, r.container);
t && "function" == typeof r.props.onChange && r.props.onChange(t, e)
}
,
r.handleMouseDown = function(e) {
r.handleChange(e),
window.addEventListener("mousemove", r.handleChange),
window.addEventListener("mouseup", r.handleMouseUp)
}
,
r.handleMouseUp = function() {
r.unbindEventListeners()
}
,
gbe(r, n)
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
bbe(t, [{
key: "componentWillUnmount",
value: function() {
this.unbindEventListeners()
}
}, {
key: "unbindEventListeners",
value: function() {
window.removeEventListener("mousemove", this.handleChange),
window.removeEventListener("mouseup", this.handleMouseUp)
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props.direction
, n = void 0 === t ? "horizontal" : t
, r = ebe()({
default: {
hue: {
absolute: "0px 0px 0px 0px",
borderRadius: this.props.radius,
boxShadow: this.props.shadow
},
container: {
padding: "0 2px",
position: "relative",
height: "100%",
borderRadius: this.props.radius
},
pointer: {
position: "absolute",
left: 100 * this.props.hsl.h / 360 + "%"
},
slider: {
marginTop: "1px",
width: "4px",
borderRadius: "1px",
height: "8px",
boxShadow: "0 0 2px rgba(0, 0, 0, .6)",
background: "#fff",
transform: "translateX(-2px)"
}
},
vertical: {
pointer: {
left: "0px",
top: -100 * this.props.hsl.h / 360 + 100 + "%"
}
}
}, {
vertical: "vertical" === n
});
return s.a.createElement("div", {
style: r.hue
}, s.a.createElement("div", {
className: "hue-" + n,
style: r.container,
ref: function(t) {
return e.container = t
},
onMouseDown: this.handleMouseDown,
onTouchMove: this.handleChange,
onTouchStart: this.handleChange
}, s.a.createElement("style", null, "\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "), s.a.createElement("div", {
style: r.pointer
}, this.props.pointer ? s.a.createElement(this.props.pointer, this.props) : s.a.createElement("div", {
style: r.slider
}))))
}
}]),
t
}(l.PureComponent || l.Component)
, vbe = mbe
, ybe = n(18)
, xbe = n.n(ybe)
, Obe = function(e, t) {
return e === t || e != e && t != t
}
, jbe = function(e, t) {
for (var n = e.length; n--; )
if (Obe(e[n][0], t))
return n;
return -1
}
, kbe = Array.prototype.splice;
function wbe(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1])
}
}
wbe.prototype.clear = function() {
this.__data__ = [],
this.size = 0
}
,
wbe.prototype.delete = function(e) {
var t = this.__data__
, n = jbe(t, e);
return !(n < 0 || (n == t.length - 1 ? t.pop() : kbe.call(t, n, 1),
--this.size,
0))
}
,
wbe.prototype.get = function(e) {
var t = this.__data__
, n = jbe(t, e);
return n < 0 ? void 0 : t[n][1]
}
,
wbe.prototype.has = function(e) {
return jbe(this.__data__, e) > -1
}
,
wbe.prototype.set = function(e, t) {
var n = this.__data__
, r = jbe(n, e);
return r < 0 ? (++this.size,
n.push([e, t])) : n[r][1] = t,
this
}
;
var Cbe = wbe
, _be = n(47)
, Mbe = _be.a.Symbol
, Sbe = Object.prototype
, Abe = Sbe.hasOwnProperty
, Tbe = Sbe.toString
, Ebe = Mbe ? Mbe.toStringTag : void 0
, Ibe = Object.prototype.toString
, Nbe = Mbe ? Mbe.toStringTag : void 0
, zbe = function(e) {
return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : Nbe && Nbe in Object(e) ? function(e) {
var t = Abe.call(e, Ebe)
, n = e[Ebe];
try {
e[Ebe] = void 0;
var r = !0
} catch (e) {}
var i = Tbe.call(e);
return r && (t ? e[Ebe] = n : delete e[Ebe]),
i
}(e) : function(e) {
return Ibe.call(e)
}(e)
}
, Dbe = function(e) {
var t = typeof e;
return null != e && ("object" == t || "function" == t)
}
, Lbe = function(e) {
if (!Dbe(e))
return !1;
var t = zbe(e);
return "[object Function]" == t || "[object GeneratorFunction]" == t || "[object AsyncFunction]" == t || "[object Proxy]" == t
}
, Rbe = _be.a["__core-js_shared__"]
, Pbe = function() {
var e = /[^.]+$/.exec(Rbe && Rbe.keys && Rbe.keys.IE_PROTO || "");
return e ? "Symbol(src)_1." + e : ""
}()
, Bbe = Function.prototype.toString
, Fbe = function(e) {
if (null != e) {
try {
return Bbe.call(e)
} catch (e) {}
try {
return e + ""
} catch (e) {}
}
return ""
}
, Vbe = /^\[object .+?Constructor\]$/
, Wbe = Function.prototype
, qbe = Object.prototype
, Hbe = Wbe.toString
, Ube = qbe.hasOwnProperty
, Xbe = RegExp("^" + Hbe.call(Ube).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$")
, Gbe = function(e) {
return !(!Dbe(e) || function(e) {
return !!Pbe && Pbe in e
}(e)) && (Lbe(e) ? Xbe : Vbe).test(Fbe(e))
}
, Kbe = function(e, t) {
var n = function(e, t) {
return null == e ? void 0 : e[t]
}(e, t);
return Gbe(n) ? n : void 0
}
, Ybe = Kbe(_be.a, "Map")
, Qbe = Kbe(Object, "create")
, Jbe = Object.prototype.hasOwnProperty
, Zbe = Object.prototype.hasOwnProperty;
function $be(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1])
}
}
$be.prototype.clear = function() {
this.__data__ = Qbe ? Qbe(null) : {},
this.size = 0
}
,
$be.prototype.delete = function(e) {
var t = this.has(e) && delete this.__data__[e];
return this.size -= t ? 1 : 0,
t
}
,
$be.prototype.get = function(e) {
var t = this.__data__;
if (Qbe) {
var n = t[e];
return "__lodash_hash_undefined__" === n ? void 0 : n
}
return Jbe.call(t, e) ? t[e] : void 0
}
,
$be.prototype.has = function(e) {
var t = this.__data__;
return Qbe ? void 0 !== t[e] : Zbe.call(t, e)
}
,
$be.prototype.set = function(e, t) {
var n = this.__data__;
return this.size += this.has(e) ? 0 : 1,
n[e] = Qbe && void 0 === t ? "__lodash_hash_undefined__" : t,
this
}
;
var ege = $be
, tge = function(e, t) {
var n = e.__data__;
return function(e) {
var t = typeof e;
return "string" == t || "number" == t || "symbol" == t || "boolean" == t ? "__proto__" !== e : null === e
}(t) ? n["string" == typeof t ? "string" : "hash"] : n.map
};
function nge(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.clear(); ++t < n; ) {
var r = e[t];
this.set(r[0], r[1])
}
}
nge.prototype.clear = function() {
this.size = 0,
this.__data__ = {
hash: new ege,
map: new (Ybe || Cbe),
string: new ege
}
}
,
nge.prototype.delete = function(e) {
var t = tge(this, e).delete(e);
return this.size -= t ? 1 : 0,
t
}
,
nge.prototype.get = function(e) {
return tge(this, e).get(e)
}
,
nge.prototype.has = function(e) {
return tge(this, e).has(e)
}
,
nge.prototype.set = function(e, t) {
var n = tge(this, e)
, r = n.size;
return n.set(e, t),
this.size += n.size == r ? 0 : 1,
this
}
;
var rge = nge;
function ige(e) {
var t = this.__data__ = new Cbe(e);
this.size = t.size
}
ige.prototype.clear = function() {
this.__data__ = new Cbe,
this.size = 0
}
,
ige.prototype.delete = function(e) {
var t = this.__data__
, n = t.delete(e);
return this.size = t.size,
n
}
,
ige.prototype.get = function(e) {
return this.__data__.get(e)
}
,
ige.prototype.has = function(e) {
return this.__data__.has(e)
}
,
ige.prototype.set = function(e, t) {
var n = this.__data__;
if (n instanceof Cbe) {
var r = n.__data__;
if (!Ybe || r.length < 199)
return r.push([e, t]),
this.size = ++n.size,
this;
n = this.__data__ = new rge(r)
}
return n.set(e, t),
this.size = n.size,
this
}
;
var oge = ige
, age = function() {
try {
var e = Kbe(Object, "defineProperty");
return e({}, "", {}),
e
} catch (e) {}
}()
, lge = function(e, t, n) {
"__proto__" == t && age ? age(e, t, {
configurable: !0,
enumerable: !0,
value: n,
writable: !0
}) : e[t] = n
}
, sge = function(e, t, n) {
(void 0 !== n && !Obe(e[t], n) || void 0 === n && !(t in e)) && lge(e, t, n)
}
, cge = function(e, t, n) {
for (var r = -1, i = Object(e), o = n(e), a = o.length; a--; ) {
var l = o[++r];
if (!1 === t(i[l], l, i))
break
}
return e
}
, uge = n(300)
, dge = _be.a.Uint8Array
, pge = function(e, t) {
var n = t ? function(e) {
var t = new e.constructor(e.byteLength);
return new dge(t).set(new dge(e)),
t
}(e.buffer) : e.buffer;
return new e.constructor(n,e.byteOffset,e.length)
}
, hge = Object.create
, fge = function() {
function e() {}
return function(t) {
if (!Dbe(t))
return {};
if (hge)
return hge(t);
e.prototype = t;
var n = new e;
return e.prototype = void 0,
n
}
}()
, bge = function(e, t) {
return function(n) {
return e(t(n))
}
}
, gge = bge(Object.getPrototypeOf, Object)
, mge = Object.prototype
, vge = function(e) {
var t = e && e.constructor;
return e === ("function" == typeof t && t.prototype || mge)
}
, yge = function(e) {
return null != e && "object" == typeof e
}
, xge = function(e) {
return yge(e) && "[object Arguments]" == zbe(e)
}
, Oge = Object.prototype
, jge = Oge.hasOwnProperty
, kge = Oge.propertyIsEnumerable
, wge = xge(function() {
return arguments
}()) ? xge : function(e) {
return yge(e) && jge.call(e, "callee") && !kge.call(e, "callee")
}
, Cge = wge
, _ge = Array.isArray
, Mge = function(e) {
return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991
}
, Sge = function(e) {
return null != e && Mge(e.length) && !Lbe(e)
}
, Age = n(102)
, Tge = Function.prototype
, Ege = Object.prototype
, Ige = Tge.toString
, Nge = Ege.hasOwnProperty
, zge = Ige.call(Object)
, Dge = {};
Dge["[object Float32Array]"] = Dge["[object Float64Array]"] = Dge["[object Int8Array]"] = Dge["[object Int16Array]"] = Dge["[object Int32Array]"] = Dge["[object Uint8Array]"] = Dge["[object Uint8ClampedArray]"] = Dge["[object Uint16Array]"] = Dge["[object Uint32Array]"] = !0,
Dge["[object Arguments]"] = Dge["[object Array]"] = Dge["[object ArrayBuffer]"] = Dge["[object Boolean]"] = Dge["[object DataView]"] = Dge["[object Date]"] = Dge["[object Error]"] = Dge["[object Function]"] = Dge["[object Map]"] = Dge["[object Number]"] = Dge["[object Object]"] = Dge["[object RegExp]"] = Dge["[object Set]"] = Dge["[object String]"] = Dge["[object WeakMap]"] = !1;
var Lge = n(216)
, Rge = Lge.a && Lge.a.isTypedArray
, Pge = Rge ? function(e) {
return function(t) {
return e(t)
}
}(Rge) : function(e) {
return yge(e) && Mge(e.length) && !!Dge[zbe(e)]
}
, Bge = function(e, t) {
if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t)
return e[t]
}
, Fge = Object.prototype.hasOwnProperty
, Vge = function(e, t, n) {
var r = e[t];
Fge.call(e, t) && Obe(r, n) && (void 0 !== n || t in e) || lge(e, t, n)
}
, Wge = /^(?:0|[1-9]\d*)$/
, qge = function(e, t) {
var n = typeof e;
return !!(t = null == t ? 9007199254740991 : t) && ("number" == n || "symbol" != n && Wge.test(e)) && e > -1 && e % 1 == 0 && e < t
}
, Hge = Object.prototype.hasOwnProperty
, Uge = function(e, t) {
var n = _ge(e)
, r = !n && Cge(e)
, i = !n && !r && Object(Age.a)(e)
, o = !n && !r && !i && Pge(e)
, a = n || r || i || o
, l = a ? function(e, t) {
for (var n = -1, r = Array(e); ++n < e; )
r[n] = t(n);
return r
}(e.length, String) : []
, s = l.length;
for (var c in e)
!t && !Hge.call(e, c) || a && ("length" == c || i && ("offset" == c || "parent" == c) || o && ("buffer" == c || "byteLength" == c || "byteOffset" == c) || qge(c, s)) || l.push(c);
return l
}
, Xge = Object.prototype.hasOwnProperty
, Gge = function(e) {
if (!Dbe(e))
return function(e) {
var t = [];
if (null != e)
for (var n in Object(e))
t.push(n);
return t
}(e);
var t = vge(e)
, n = [];
for (var r in e)
("constructor" != r || !t && Xge.call(e, r)) && n.push(r);
return n
}
, Kge = function(e) {
return Sge(e) ? Uge(e, !0) : Gge(e)
}
, Yge = function(e) {
return function(e, t, n, r) {
var i = !n;
n || (n = {});
for (var o = -1, a = t.length; ++o < a; ) {
var l = t[o]
, s = r ? r(n[l], e[l], l, n, e) : void 0;
void 0 === s && (s = e[l]),
i ? lge(n, l, s) : Vge(n, l, s)
}
return n
}(e, Kge(e))
}
, Qge = function(e, t, n, r, i, o, a) {
var l = Bge(e, n)
, s = Bge(t, n)
, c = a.get(s);
if (c)
sge(e, n, c);
else {
var u = o ? o(l, s, n + "", e, t, a) : void 0
, d = void 0 === u;
if (d) {
var p = _ge(s)
, h = !p && Object(Age.a)(s)
, f = !p && !h && Pge(s);
u = s,
p || h || f ? _ge(l) ? u = l : function(e) {
return yge(e) && Sge(e)
}(l) ? u = function(e, t) {
var n = -1
, r = e.length;
for (t || (t = Array(r)); ++n < r; )
t[n] = e[n];
return t
}(l) : h ? (d = !1,
u = Object(uge.a)(s, !0)) : f ? (d = !1,
u = pge(s, !0)) : u = [] : function(e) {
if (!yge(e) || "[object Object]" != zbe(e))
return !1;
var t = gge(e);
if (null === t)
return !0;
var n = Nge.call(t, "constructor") && t.constructor;
return "function" == typeof n && n instanceof n && Ige.call(n) == zge
}(s) || Cge(s) ? (u = l,
Cge(l) ? u = Yge(l) : Dbe(l) && !Lbe(l) || (u = function(e) {
return "function" != typeof e.constructor || vge(e) ? {} : fge(gge(e))
}(s))) : d = !1
}
d && (a.set(s, u),
i(u, s, r, o, a),
a.delete(s)),
sge(e, n, u)
}
}
, Jge = function e(t, n, r, i, o) {
t !== n && cge(n, (function(a, l) {
if (o || (o = new oge),
Dbe(a))
Qge(t, n, l, r, e, i, o);
else {
var s = i ? i(Bge(t, l), a, l + "", t, n, o) : void 0;
void 0 === s && (s = a),
sge(t, l, s)
}
}
), Kge)
}
, Zge = function(e) {
return e
}
, $ge = Math.max
, eme = function(e) {
return function() {
return e
}
}
, tme = age ? function(e, t) {
return age(e, "toString", {
configurable: !0,
enumerable: !1,
value: eme(t),
writable: !0
})
}
: Zge
, nme = Date.now
, rme = function(e) {
var t = 0
, n = 0;
return function() {
var r = nme()
, i = 16 - (r - n);
if (n = r,
i > 0) {
if (++t >= 800)
return arguments[0]
} else
t = 0;
return e.apply(void 0, arguments)
}
}(tme)
, ime = function(e, t) {
return rme(function(e, t, n) {
return t = $ge(void 0 === t ? e.length - 1 : t, 0),
function() {
for (var r = arguments, i = -1, o = $ge(r.length - t, 0), a = Array(o); ++i < o; )
a[i] = r[t + i];
i = -1;
for (var l = Array(t + 1); ++i < t; )
l[i] = r[i];
return l[t] = n(a),
function(e, t, n) {
switch (n.length) {
case 0:
return e.call(t);
case 1:
return e.call(t, n[0]);
case 2:
return e.call(t, n[0], n[1]);
case 3:
return e.call(t, n[0], n[1], n[2])
}
return e.apply(t, n)
}(e, this, l)
}
}(e, t, Zge), e + "")
}
, ome = function(e) {
return ime((function(t, n) {
var r = -1
, i = n.length
, o = i > 1 ? n[i - 1] : void 0
, a = i > 2 ? n[2] : void 0;
for (o = e.length > 3 && "function" == typeof o ? (i--,
o) : void 0,
a && function(e, t, n) {
if (!Dbe(n))
return !1;
var r = typeof t;
return !!("number" == r ? Sge(n) && qge(t, n.length) : "string" == r && t in n) && Obe(n[t], e)
}(n[0], n[1], a) && (o = i < 3 ? void 0 : o,
i = 1),
t = Object(t); ++r < i; ) {
var l = n[r];
l && e(t, l, r)
}
return t
}
))
}((function(e, t, n) {
Jge(e, t, n)
}
))
, ame = function(e) {
var t = e.zDepth
, n = e.radius
, r = e.background
, i = e.children
, o = e.styles
, a = void 0 === o ? {} : o
, l = ebe()(ome({
default: {
wrap: {
position: "relative",
display: "inline-block"
},
content: {
position: "relative"
},
bg: {
absolute: "0px 0px 0px 0px",
boxShadow: "0 " + t + "px " + 4 * t + "px rgba(0,0,0,.24)",
borderRadius: n,
background: r
}
},
"zDepth-0": {
bg: {
boxShadow: "none"
}
},
"zDepth-1": {
bg: {
boxShadow: "0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"
}
},
"zDepth-2": {
bg: {
boxShadow: "0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"
}
},
"zDepth-3": {
bg: {
boxShadow: "0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"
}
},
"zDepth-4": {
bg: {
boxShadow: "0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"
}
},
"zDepth-5": {
bg: {
boxShadow: "0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"
}
},
square: {
bg: {
borderRadius: "0"
}
},
circle: {
bg: {
borderRadius: "50%"
}
}
}, a), {
"zDepth-1": 1 === t
});
return s.a.createElement("div", {
style: l.wrap
}, s.a.createElement("div", {
style: l.bg
}), s.a.createElement("div", {
style: l.content
}, i))
};
ame.propTypes = {
background: xbe.a.string,
zDepth: xbe.a.oneOf([0, 1, 2, 3, 4, 5]),
radius: xbe.a.number,
styles: xbe.a.object
},
ame.defaultProps = {
background: "#fff",
zDepth: 1,
radius: 2,
styles: {}
};
var lme = ame
, sme = function() {
return _be.a.Date.now()
}
, cme = /\s/
, ume = /^\s+/
, dme = function(e) {
return e ? e.slice(0, function(e) {
for (var t = e.length; t-- && cme.test(e.charAt(t)); )
;
return t
}(e) + 1).replace(ume, "") : e
}
, pme = function(e) {
return "symbol" == typeof e || yge(e) && "[object Symbol]" == zbe(e)
}
, hme = /^[-+]0x[0-9a-f]+$/i
, fme = /^0b[01]+$/i
, bme = /^0o[0-7]+$/i
, gme = parseInt
, mme = function(e) {
if ("number" == typeof e)
return e;
if (pme(e))
return NaN;
if (Dbe(e)) {
var t = "function" == typeof e.valueOf ? e.valueOf() : e;
e = Dbe(t) ? t + "" : t
}
if ("string" != typeof e)
return 0 === e ? e : +e;
e = dme(e);
var n = fme.test(e);
return n || bme.test(e) ? gme(e.slice(2), n ? 2 : 8) : hme.test(e) ? NaN : +e
}
, vme = Math.max
, yme = Math.min
, xme = function(e, t, n) {
var r, i, o, a, l, s, c = 0, u = !1, d = !1, p = !0;
if ("function" != typeof e)
throw new TypeError("Expected a function");
function h(t) {
var n = r
, o = i;
return r = i = void 0,
c = t,
a = e.apply(o, n)
}
function f(e) {
var n = e - s;
return void 0 === s || n >= t || n < 0 || d && e - c >= o
}
function b() {
var e = sme();
if (f(e))
return g(e);
l = setTimeout(b, function(e) {
var n = t - (e - s);
return d ? yme(n, o - (e - c)) : n
}(e))
}
function g(e) {
return l = void 0,
p && r ? h(e) : (r = i = void 0,
a)
}
function m() {
var e = sme()
, n = f(e);
if (r = arguments,
i = this,
s = e,
n) {
if (void 0 === l)
return function(e) {
return c = e,
l = setTimeout(b, t),
u ? h(e) : a
}(s);
if (d)
return clearTimeout(l),
l = setTimeout(b, t),
h(s)
}
return void 0 === l && (l = setTimeout(b, t)),
a
}
return t = mme(t) || 0,
Dbe(n) && (u = !!n.leading,
o = (d = "maxWait"in n) ? vme(mme(n.maxWait) || 0, t) : o,
p = "trailing"in n ? !!n.trailing : p),
m.cancel = function() {
void 0 !== l && clearTimeout(l),
c = 0,
r = s = i = l = void 0
}
,
m.flush = function() {
return void 0 === l ? a : g(sme())
}
,
m
}
, Ome = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, jme = function(e) {
function t(e) {
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
var n = function(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this, e));
return n.handleChange = function(e) {
"function" == typeof n.props.onChange && n.throttle(n.props.onChange, function(e, t, n) {
var r = n.getBoundingClientRect()
, i = r.width
, o = r.height
, a = "number" == typeof e.pageX ? e.pageX : e.touches[0].pageX
, l = "number" == typeof e.pageY ? e.pageY : e.touches[0].pageY
, s = a - (n.getBoundingClientRect().left + window.pageXOffset)
, c = l - (n.getBoundingClientRect().top + window.pageYOffset);
s < 0 ? s = 0 : s > i && (s = i),
c < 0 ? c = 0 : c > o && (c = o);
var u = s / i
, d = 1 - c / o;
return {
h: t.h,
s: u,
v: d,
a: t.a,
source: "hsv"
}
}(e, n.props.hsl, n.container), e)
}
,
n.handleMouseDown = function(e) {
n.handleChange(e);
var t = n.getContainerRenderWindow();
t.addEventListener("mousemove", n.handleChange),
t.addEventListener("mouseup", n.handleMouseUp)
}
,
n.handleMouseUp = function() {
n.unbindEventListeners()
}
,
n.throttle = function(e, t, n) {
var r = !0
, i = !0;
if ("function" != typeof e)
throw new TypeError("Expected a function");
return Dbe(n) && (r = "leading"in n ? !!n.leading : r,
i = "trailing"in n ? !!n.trailing : i),
xme(e, t, {
leading: r,
maxWait: t,
trailing: i
})
}((function(e, t, n) {
e(t, n)
}
), 50),
n
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
Ome(t, [{
key: "componentWillUnmount",
value: function() {
this.throttle.cancel(),
this.unbindEventListeners()
}
}, {
key: "getContainerRenderWindow",
value: function() {
for (var e = this.container, t = window; !t.document.contains(e) && t.parent !== t; )
t = t.parent;
return t
}
}, {
key: "unbindEventListeners",
value: function() {
var e = this.getContainerRenderWindow();
e.removeEventListener("mousemove", this.handleChange),
e.removeEventListener("mouseup", this.handleMouseUp)
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props.style || {}
, n = t.color
, r = t.white
, i = t.black
, o = t.pointer
, a = t.circle
, l = ebe()({
default: {
color: {
absolute: "0px 0px 0px 0px",
background: "hsl(" + this.props.hsl.h + ",100%, 50%)",
borderRadius: this.props.radius
},
white: {
absolute: "0px 0px 0px 0px",
borderRadius: this.props.radius
},
black: {
absolute: "0px 0px 0px 0px",
boxShadow: this.props.shadow,
borderRadius: this.props.radius
},
pointer: {
position: "absolute",
top: -100 * this.props.hsv.v + 100 + "%",
left: 100 * this.props.hsv.s + "%",
cursor: "default"
},
circle: {
width: "4px",
height: "4px",
boxShadow: "0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",
borderRadius: "50%",
cursor: "hand",
transform: "translate(-2px, -2px)"
}
},
custom: {
color: n,
white: r,
black: i,
pointer: o,
circle: a
}
}, {
custom: !!this.props.style
});
return s.a.createElement("div", {
style: l.color,
ref: function(t) {
return e.container = t
},
onMouseDown: this.handleMouseDown,
onTouchMove: this.handleChange,
onTouchStart: this.handleChange
}, s.a.createElement("style", null, "\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "), s.a.createElement("div", {
style: l.white,
className: "saturation-white"
}, s.a.createElement("div", {
style: l.black,
className: "saturation-black"
}), s.a.createElement("div", {
style: l.pointer
}, this.props.pointer ? s.a.createElement(this.props.pointer, this.props) : s.a.createElement("div", {
style: l.circle
}))))
}
}]),
t
}(l.PureComponent || l.Component)
, kme = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length; ++n < r && !1 !== t(e[n], n, e); )
;
return e
}
, wme = bge(Object.keys, Object)
, Cme = Object.prototype.hasOwnProperty
, _me = function(e) {
return Sge(e) ? Uge(e) : function(e) {
if (!vge(e))
return wme(e);
var t = [];
for (var n in Object(e))
Cme.call(e, n) && "constructor" != n && t.push(n);
return t
}(e)
}
, Mme = function(e, t) {
if (null == e)
return e;
if (!Sge(e))
return function(e, t) {
return e && cge(e, t, _me)
}(e, t);
for (var n = e.length, r = -1, i = Object(e); ++r < n && !1 !== t(i[r], r, i); )
;
return e
}
, Sme = function(e, t) {
return (_ge(e) ? kme : Mme)(e, function(e) {
return "function" == typeof e ? e : Zge
}(t))
}
, Ame = n(134)
, Tme = n.n(Ame)
, Eme = function(e) {
var t = 0
, n = 0;
return Sme(["r", "g", "b", "a", "h", "s", "l", "v"], (function(r) {
e[r] && (t += 1,
isNaN(e[r]) || (n += 1),
"s" === r || "l" === r) && /^\d+%$/.test(e[r]) && (n += 1)
}
)),
t === n && e
}
, Ime = function(e, t) {
var n = e.hex ? Tme()(e.hex) : Tme()(e)
, r = n.toHsl()
, i = n.toHsv()
, o = n.toRgb()
, a = n.toHex();
return 0 === r.s && (r.h = t || 0,
i.h = t || 0),
{
hsl: r,
hex: "000000" === a && 0 === o.a ? "transparent" : "#" + a,
rgb: o,
hsv: i,
oldHue: e.h || t || r.h,
source: e.source
}
}
, Nme = function(e) {
if ("transparent" === e)
return !0;
var t = "#" === String(e).charAt(0) ? 1 : 0;
return e.length !== 4 + t && e.length < 7 + t && Tme()(e).isValid()
}
, zme = function(e) {
if (!e)
return "#fff";
var t = Ime(e);
return "transparent" === t.hex ? "rgba(0,0,0,0.4)" : (299 * t.rgb.r + 587 * t.rgb.g + 114 * t.rgb.b) / 1e3 >= 128 ? "#000" : "#fff"
}
, Dme = function(e, t) {
var n = e.replace("°", "");
return Tme()(t + " (" + n + ")")._ok
}
, Lme = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, Rme = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, Pme = function(e) {
var t = function(t) {
function n(e) {
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, n);
var t = function(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this));
return t.handleChange = function(e, n) {
if (Eme(e)) {
var r = Ime(e, e.h || t.state.oldHue);
t.setState(r),
t.props.onChangeComplete && t.debounce(t.props.onChangeComplete, r, n),
t.props.onChange && t.props.onChange(r, n)
}
}
,
t.handleSwatchHover = function(e, n) {
if (Eme(e)) {
var r = Ime(e, e.h || t.state.oldHue);
t.props.onSwatchHover && t.props.onSwatchHover(r, n)
}
}
,
t.state = Lme({}, Ime(e.color, 0)),
t.debounce = xme((function(e, t, n) {
e(t, n)
}
), 100),
t
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(n, t),
Rme(n, [{
key: "render",
value: function() {
var t = {};
return this.props.onSwatchHover && (t.onSwatchHover = this.handleSwatchHover),
s.a.createElement(e, Lme({}, this.props, this.state, {
onChange: this.handleChange
}, t))
}
}], [{
key: "getDerivedStateFromProps",
value: function(e, t) {
return Lme({}, Ime(e.color, t.oldHue))
}
}]),
n
}(l.PureComponent || l.Component);
return t.propTypes = Lme({}, e.propTypes),
t.defaultProps = Lme({}, e.defaultProps, {
color: {
h: 250,
s: .5,
l: .2,
a: 1
}
}),
t
}
, Bme = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, Fme = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}();
function Vme(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}
var Wme = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, qme = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "span";
return function(n) {
function r() {
var e, t, n;
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, r);
for (var i = arguments.length, o = Array(i), a = 0; a < i; a++)
o[a] = arguments[a];
return t = n = Vme(this, (e = r.__proto__ || Object.getPrototypeOf(r)).call.apply(e, [this].concat(o))),
n.state = {
focus: !1
},
n.handleFocus = function() {
return n.setState({
focus: !0
})
}
,
n.handleBlur = function() {
return n.setState({
focus: !1
})
}
,
Vme(n, t)
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(r, n),
Fme(r, [{
key: "render",
value: function() {
return s.a.createElement(t, {
onFocus: this.handleFocus,
onBlur: this.handleBlur
}, s.a.createElement(e, Bme({}, this.props, this.state)))
}
}]),
r
}(s.a.Component)
}((function(e) {
var t = e.color
, n = e.style
, r = e.onClick
, i = void 0 === r ? function() {}
: r
, o = e.onHover
, a = e.title
, l = void 0 === a ? t : a
, c = e.children
, u = e.focus
, d = e.focusStyle
, p = void 0 === d ? {} : d
, h = "transparent" === t
, f = ebe()({
default: {
swatch: Wme({
background: t,
height: "100%",
width: "100%",
cursor: "pointer",
position: "relative",
outline: "none"
}, n, u ? p : {})
}
})
, b = {};
return o && (b.onMouseOver = function(e) {
return o(t, e)
}
),
s.a.createElement("div", Wme({
style: f.swatch,
onClick: function(e) {
return i(t, e)
},
title: l,
tabIndex: 0,
onKeyDown: function(e) {
return 13 === e.keyCode && i(t, e)
}
}, b), c, h && s.a.createElement(obe, {
borderRadius: f.swatch.borderRadius,
boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.1)"
}))
}
))
, Hme = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, Ume = function(e) {
var t = e.rgb
, n = e.hsl
, r = e.width
, i = e.height
, o = e.onChange
, a = e.direction
, l = e.style
, c = e.renderers
, u = e.pointer
, d = e.className
, p = void 0 === d ? "" : d
, h = ebe()({
default: {
picker: {
position: "relative",
width: r,
height: i
},
alpha: {
radius: "2px",
style: l
}
}
});
return s.a.createElement("div", {
style: h.picker,
className: "alpha-picker " + p
}, s.a.createElement(ube, Hme({}, h.alpha, {
rgb: t,
hsl: n,
pointer: u,
renderers: c,
onChange: o,
direction: a
})))
};
Ume.defaultProps = {
width: "316px",
height: "16px",
direction: "horizontal",
pointer: function(e) {
var t = e.direction
, n = ebe()({
default: {
picker: {
width: "18px",
height: "18px",
borderRadius: "50%",
transform: "translate(-9px, -1px)",
backgroundColor: "rgb(248, 248, 248)",
boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
}
},
vertical: {
picker: {
transform: "translate(-3px, -9px)"
}
}
}, {
vertical: "vertical" === t
});
return s.a.createElement("div", {
style: n.picker
})
}
},
Pme(Ume);
var Xme = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; )
i[n] = t(e[n], n, e);
return i
};
function Gme(e) {
var t = -1
, n = null == e ? 0 : e.length;
for (this.__data__ = new rge; ++t < n; )
this.add(e[t])
}
Gme.prototype.add = Gme.prototype.push = function(e) {
return this.__data__.set(e, "__lodash_hash_undefined__"),
this
}
,
Gme.prototype.has = function(e) {
return this.__data__.has(e)
}
;
var Kme = Gme
, Yme = function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length; ++n < r; )
if (t(e[n], n, e))
return !0;
return !1
}
, Qme = function(e, t) {
return e.has(t)
}
, Jme = function(e, t, n, r, i, o) {
var a = 1 & n
, l = e.length
, s = t.length;
if (l != s && !(a && s > l))
return !1;
var c = o.get(e)
, u = o.get(t);
if (c && u)
return c == t && u == e;
var d = -1
, p = !0
, h = 2 & n ? new Kme : void 0;
for (o.set(e, t),
o.set(t, e); ++d < l; ) {
var f = e[d]
, b = t[d];
if (r)
var g = a ? r(b, f, d, t, e, o) : r(f, b, d, e, t, o);
if (void 0 !== g) {
if (g)
continue;
p = !1;
break
}
if (h) {
if (!Yme(t, (function(e, t) {
if (!Qme(h, t) && (f === e || i(f, e, n, r, o)))
return h.push(t)
}
))) {
p = !1;
break
}
} else if (f !== b && !i(f, b, n, r, o)) {
p = !1;
break
}
}
return o.delete(e),
o.delete(t),
p
}
, Zme = function(e) {
var t = -1
, n = Array(e.size);
return e.forEach((function(e, r) {
n[++t] = [r, e]
}
)),
n
}
, $me = function(e) {
var t = -1
, n = Array(e.size);
return e.forEach((function(e) {
n[++t] = e
}
)),
n
}
, eve = Mbe ? Mbe.prototype : void 0
, tve = eve ? eve.valueOf : void 0
, nve = Object.prototype.propertyIsEnumerable
, rve = Object.getOwnPropertySymbols
, ive = rve ? function(e) {
return null == e ? [] : (e = Object(e),
function(e, t) {
for (var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; ++n < r; ) {
var a = e[n];
t(a, n, e) && (o[i++] = a)
}
return o
}(rve(e), (function(t) {
return nve.call(e, t)
}
)))
}
: function() {
return []
}
, ove = function(e) {
return function(e, t, n) {
var r = t(e);
return _ge(e) ? r : function(e, t) {
for (var n = -1, r = t.length, i = e.length; ++n < r; )
e[i + n] = t[n];
return e
}(r, n(e))
}(e, _me, ive)
}
, ave = Object.prototype.hasOwnProperty
, lve = Kbe(_be.a, "DataView")
, sve = Kbe(_be.a, "Promise")
, cve = Kbe(_be.a, "Set")
, uve = Kbe(_be.a, "WeakMap")
, dve = "[object Map]"
, pve = "[object Promise]"
, hve = "[object Set]"
, fve = "[object WeakMap]"
, bve = "[object DataView]"
, gve = Fbe(lve)
, mve = Fbe(Ybe)
, vve = Fbe(sve)
, yve = Fbe(cve)
, xve = Fbe(uve)
, Ove = zbe;
(lve && Ove(new lve(new ArrayBuffer(1))) != bve || Ybe && Ove(new Ybe) != dve || sve && Ove(sve.resolve()) != pve || cve && Ove(new cve) != hve || uve && Ove(new uve) != fve) && (Ove = function(e) {
var t = zbe(e)
, n = "[object Object]" == t ? e.constructor : void 0
, r = n ? Fbe(n) : "";
if (r)
switch (r) {
case gve:
return bve;
case mve:
return dve;
case vve:
return pve;
case yve:
return hve;
case xve:
return fve
}
return t
}
);
var jve = Ove
, kve = "[object Arguments]"
, wve = "[object Array]"
, Cve = "[object Object]"
, _ve = Object.prototype.hasOwnProperty
, Mve = function(e, t, n, r, i, o) {
var a = _ge(e)
, l = _ge(t)
, s = a ? wve : jve(e)
, c = l ? wve : jve(t)
, u = (s = s == kve ? Cve : s) == Cve
, d = (c = c == kve ? Cve : c) == Cve
, p = s == c;
if (p && Object(Age.a)(e)) {
if (!Object(Age.a)(t))
return !1;
a = !0,
u = !1
}
if (p && !u)
return o || (o = new oge),
a || Pge(e) ? Jme(e, t, n, r, i, o) : function(e, t, n, r, i, o, a) {
switch (n) {
case "[object DataView]":
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
return !1;
e = e.buffer,
t = t.buffer;
case "[object ArrayBuffer]":
return !(e.byteLength != t.byteLength || !o(new dge(e), new dge(t)));
case "[object Boolean]":
case "[object Date]":
case "[object Number]":
return Obe(+e, +t);
case "[object Error]":
return e.name == t.name && e.message == t.message;
case "[object RegExp]":
case "[object String]":
return e == t + "";
case "[object Map]":
var l = Zme;
case "[object Set]":
var s = 1 & r;
if (l || (l = $me),
e.size != t.size && !s)
return !1;
var c = a.get(e);
if (c)
return c == t;
r |= 2,
a.set(e, t);
var u = Jme(l(e), l(t), r, i, o, a);
return a.delete(e),
u;
case "[object Symbol]":
if (tve)
return tve.call(e) == tve.call(t)
}
return !1
}(e, t, s, n, r, i, o);
if (!(1 & n)) {
var h = u && _ve.call(e, "__wrapped__")
, f = d && _ve.call(t, "__wrapped__");
if (h || f) {
var b = h ? e.value() : e
, g = f ? t.value() : t;
return o || (o = new oge),
i(b, g, n, r, o)
}
}
return !!p && (o || (o = new oge),
function(e, t, n, r, i, o) {
var a = 1 & n
, l = ove(e)
, s = l.length;
if (s != ove(t).length && !a)
return !1;
for (var c = s; c--; ) {
var u = l[c];
if (!(a ? u in t : ave.call(t, u)))
return !1
}
var d = o.get(e)
, p = o.get(t);
if (d && p)
return d == t && p == e;
var h = !0;
o.set(e, t),
o.set(t, e);
for (var f = a; ++c < s; ) {
var b = e[u = l[c]]
, g = t[u];
if (r)
var m = a ? r(g, b, u, t, e, o) : r(b, g, u, e, t, o);
if (!(void 0 === m ? b === g || i(b, g, n, r, o) : m)) {
h = !1;
break
}
f || (f = "constructor" == u)
}
if (h && !f) {
var v = e.constructor
, y = t.constructor;
v == y || !("constructor"in e) || !("constructor"in t) || "function" == typeof v && v instanceof v && "function" == typeof y && y instanceof y || (h = !1)
}
return o.delete(e),
o.delete(t),
h
}(e, t, n, r, i, o))
}
, Sve = function e(t, n, r, i, o) {
return t === n || (null == t || null == n || !yge(t) && !yge(n) ? t != t && n != n : Mve(t, n, r, i, e, o))
}
, Ave = function(e) {
return e == e && !Dbe(e)
}
, Tve = function(e, t) {
return function(n) {
return null != n && n[e] === t && (void 0 !== t || e in Object(n))
}
}
, Eve = function(e) {
var t = function(e) {
for (var t = _me(e), n = t.length; n--; ) {
var r = t[n]
, i = e[r];
t[n] = [r, i, Ave(i)]
}
return t
}(e);
return 1 == t.length && t[0][2] ? Tve(t[0][0], t[0][1]) : function(n) {
return n === e || function(e, t, n, r) {
var i = n.length
, o = i
, a = !r;
if (null == e)
return !o;
for (e = Object(e); i--; ) {
var l = n[i];
if (a && l[2] ? l[1] !== e[l[0]] : !(l[0]in e))
return !1
}
for (; ++i < o; ) {
var s = (l = n[i])[0]
, c = e[s]
, u = l[1];
if (a && l[2]) {
if (void 0 === c && !(s in e))
return !1
} else {
var d = new oge;
if (r)
var p = r(c, u, s, e, t, d);
if (!(void 0 === p ? Sve(u, c, 3, r, d) : p))
return !1
}
}
return !0
}(n, e, t)
}
}
, Ive = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/
, Nve = /^\w*$/
, zve = function(e, t) {
if (_ge(e))
return !1;
var n = typeof e;
return !("number" != n && "symbol" != n && "boolean" != n && null != e && !pme(e)) || Nve.test(e) || !Ive.test(e) || null != t && e in Object(t)
};
function Dve(e, t) {
if ("function" != typeof e || null != t && "function" != typeof t)
throw new TypeError("Expected a function");
var n = function n() {
var r = arguments
, i = t ? t.apply(this, r) : r[0]
, o = n.cache;
if (o.has(i))
return o.get(i);
var a = e.apply(this, r);
return n.cache = o.set(i, a) || o,
a
};
return n.cache = new (Dve.Cache || rge),
n
}
Dve.Cache = rge;
var Lve = Dve
, Rve = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g
, Pve = /\\(\\)?/g
, Bve = function(e) {
var t = Lve((function(e) {
var t = [];
return 46 === e.charCodeAt(0) && t.push(""),
e.replace(Rve, (function(e, n, r, i) {
t.push(r ? i.replace(Pve, "$1") : n || e)
}
)),
t
}
), (function(e) {
return 500 === n.size && n.clear(),
e
}
))
, n = t.cache;
return t
}()
, Fve = Mbe ? Mbe.prototype : void 0
, Vve = Fve ? Fve.toString : void 0
, Wve = function e(t) {
if ("string" == typeof t)
return t;
if (_ge(t))
return Xme(t, e) + "";
if (pme(t))
return Vve ? Vve.call(t) : "";
var n = t + "";
return "0" == n && 1 / t == -1 / 0 ? "-0" : n
}
, qve = function(e) {
return null == e ? "" : Wve(e)
}
, Hve = function(e, t) {
return _ge(e) ? e : zve(e, t) ? [e] : Bve(qve(e))
}
, Uve = function(e) {
if ("string" == typeof e || pme(e))
return e;
var t = e + "";
return "0" == t && 1 / e == -1 / 0 ? "-0" : t
}
, Xve = function(e, t) {
for (var n = 0, r = (t = Hve(t, e)).length; null != e && n < r; )
e = e[Uve(t[n++])];
return n && n == r ? e : void 0
}
, Gve = function(e, t) {
return null != e && t in Object(e)
}
, Kve = function(e, t) {
return null != e && function(e, t, n) {
for (var r = -1, i = (t = Hve(t, e)).length, o = !1; ++r < i; ) {
var a = Uve(t[r]);
if (!(o = null != e && n(e, a)))
break;
e = e[a]
}
return o || ++r != i ? o : !!(i = null == e ? 0 : e.length) && Mge(i) && qge(a, i) && (_ge(e) || Cge(e))
}(e, t, Gve)
}
, Yve = function(e, t) {
return zve(e) && Ave(t) ? Tve(Uve(e), t) : function(n) {
var r = function(e, t, n) {
var r = null == e ? void 0 : Xve(e, t);
return void 0 === r ? n : r
}(n, e);
return void 0 === r && r === t ? Kve(n, e) : Sve(t, r, 3)
}
}
, Qve = function(e) {
return zve(e) ? function(e) {
return function(t) {
return null == t ? void 0 : t[e]
}
}(Uve(e)) : function(e) {
return function(t) {
return Xve(t, e)
}
}(e)
}
, Jve = function(e, t) {
var n = -1
, r = Sge(e) ? Array(e.length) : [];
return Mme(e, (function(e, i, o) {
r[++n] = t(e, i, o)
}
)),
r
}
, Zve = function(e, t) {
return (_ge(e) ? Xme : Jve)(e, function(e) {
return "function" == typeof e ? e : null == e ? Zge : "object" == typeof e ? _ge(e) ? Yve(e[0], e[1]) : Eve(e) : Qve(e)
}(t))
}
, $ve = function(e) {
var t = e.colors
, n = e.onClick
, r = e.onSwatchHover
, i = ebe()({
default: {
swatches: {
marginRight: "-10px"
},
swatch: {
width: "22px",
height: "22px",
float: "left",
marginRight: "10px",
marginBottom: "10px",
borderRadius: "4px"
},
clear: {
clear: "both"
}
}
});
return s.a.createElement("div", {
style: i.swatches
}, Zve(t, (function(e) {
return s.a.createElement(qme, {
key: e,
color: e,
style: i.swatch,
onClick: n,
onHover: r,
focusStyle: {
boxShadow: "0 0 4px " + e
}
})
}
)), s.a.createElement("div", {
style: i.clear
}))
}
, eye = function(e) {
var t = e.onChange
, n = e.onSwatchHover
, r = e.hex
, i = e.colors
, o = e.width
, a = e.triangle
, l = e.styles
, c = void 0 === l ? {} : l
, u = e.className
, d = void 0 === u ? "" : u
, p = "transparent" === r
, h = function(e, n) {
Nme(e) && t({
hex: e,
source: "hex"
}, n)
}
, f = ebe()(ome({
default: {
card: {
width: o,
background: "#fff",
boxShadow: "0 1px rgba(0,0,0,.1)",
borderRadius: "6px",
position: "relative"
},
head: {
height: "110px",
background: r,
borderRadius: "6px 6px 0 0",
display: "flex",
alignItems: "center",
justifyContent: "center",
position: "relative"
},
body: {
padding: "10px"
},
label: {
fontSize: "18px",
color: zme(r),
position: "relative"
},
triangle: {
width: "0px",
height: "0px",
borderStyle: "solid",
borderWidth: "0 10px 10px 10px",
borderColor: "transparent transparent " + r + " transparent",
position: "absolute",
top: "-10px",
left: "50%",
marginLeft: "-10px"
},
input: {
width: "100%",
fontSize: "12px",
color: "#666",
border: "0px",
outline: "none",
height: "22px",
boxShadow: "inset 0 0 0 1px #ddd",
borderRadius: "4px",
padding: "0 7px",
boxSizing: "border-box"
}
},
"hide-triangle": {
triangle: {
display: "none"
}
}
}, c), {
"hide-triangle": "hide" === a
});
return s.a.createElement("div", {
style: f.card,
className: "block-picker " + d
}, s.a.createElement("div", {
style: f.triangle
}), s.a.createElement("div", {
style: f.head
}, p && s.a.createElement(obe, {
borderRadius: "6px 6px 0 0"
}), s.a.createElement("div", {
style: f.label
}, r)), s.a.createElement("div", {
style: f.body
}, s.a.createElement($ve, {
colors: i,
onClick: h,
onSwatchHover: n
}), s.a.createElement(fbe, {
style: {
input: f.input
},
value: r,
onChange: h
})))
};
eye.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
colors: xbe.a.arrayOf(xbe.a.string),
triangle: xbe.a.oneOf(["top", "hide"]),
styles: xbe.a.object
},
eye.defaultProps = {
width: 170,
colors: ["#D9E3F0", "#F47373", "#697689", "#37D67A", "#2CCCE4", "#555555", "#dce775", "#ff8a65", "#ba68c8"],
triangle: "top",
styles: {}
},
Pme(eye);
var tye = "#ffcdd2"
, nye = "#e57373"
, rye = "#f44336"
, iye = "#d32f2f"
, oye = "#b71c1c"
, aye = "#f8bbd0"
, lye = "#f06292"
, sye = "#e91e63"
, cye = "#c2185b"
, uye = "#880e4f"
, dye = "#e1bee7"
, pye = "#ba68c8"
, hye = "#9c27b0"
, fye = "#7b1fa2"
, bye = "#4a148c"
, gye = "#d1c4e9"
, mye = "#9575cd"
, vye = "#673ab7"
, yye = "#512da8"
, xye = "#311b92"
, Oye = "#c5cae9"
, jye = "#7986cb"
, kye = "#3f51b5"
, wye = "#303f9f"
, Cye = "#1a237e"
, _ye = "#bbdefb"
, Mye = "#64b5f6"
, Sye = "#2196f3"
, Aye = "#1976d2"
, Tye = "#0d47a1"
, Eye = "#b3e5fc"
, Iye = "#4fc3f7"
, Nye = "#03a9f4"
, zye = "#0288d1"
, Dye = "#01579b"
, Lye = "#b2ebf2"
, Rye = "#4dd0e1"
, Pye = "#00bcd4"
, Bye = "#0097a7"
, Fye = "#006064"
, Vye = "#b2dfdb"
, Wye = "#4db6ac"
, qye = "#009688"
, Hye = "#00796b"
, Uye = "#004d40"
, Xye = "#c8e6c9"
, Gye = "#81c784"
, Kye = "#4caf50"
, Yye = "#388e3c"
, Qye = "#dcedc8"
, Jye = "#aed581"
, Zye = "#8bc34a"
, $ye = "#689f38"
, exe = "#33691e"
, txe = "#f0f4c3"
, nxe = "#dce775"
, rxe = "#cddc39"
, ixe = "#afb42b"
, oxe = "#827717"
, axe = "#fff9c4"
, lxe = "#fff176"
, sxe = "#ffeb3b"
, cxe = "#fbc02d"
, uxe = "#f57f17"
, dxe = "#ffecb3"
, pxe = "#ffd54f"
, hxe = "#ffc107"
, fxe = "#ffa000"
, bxe = "#ff6f00"
, gxe = "#ffe0b2"
, mxe = "#ffb74d"
, vxe = "#ff9800"
, yxe = "#f57c00"
, xxe = "#e65100"
, Oxe = "#ffccbc"
, jxe = "#ff8a65"
, kxe = "#ff5722"
, wxe = "#e64a19"
, Cxe = "#bf360c"
, _xe = "#d7ccc8"
, Mxe = "#a1887f"
, Sxe = "#795548"
, Axe = "#5d4037"
, Txe = "#3e2723"
, Exe = "#cfd8dc"
, Ixe = "#90a4ae"
, Nxe = "#607d8b"
, zxe = "#455a64"
, Dxe = "#263238"
, Lxe = function(e) {
var t = e.color
, n = e.onClick
, r = e.onSwatchHover
, i = e.hover
, o = e.active
, a = e.circleSize
, l = e.circleSpacing
, c = ebe()({
default: {
swatch: {
width: a,
height: a,
marginRight: l,
marginBottom: l,
transform: "scale(1)",
transition: "100ms transform ease"
},
Swatch: {
borderRadius: "50%",
background: "transparent",
boxShadow: "inset 0 0 0 " + (a / 2 + 1) + "px " + t,
transition: "100ms box-shadow ease"
}
},
hover: {
swatch: {
transform: "scale(1.2)"
}
},
active: {
Swatch: {
boxShadow: "inset 0 0 0 3px " + t
}
}
}, {
hover: i,
active: o
});
return s.a.createElement("div", {
style: c.swatch
}, s.a.createElement(qme, {
style: c.Swatch,
color: t,
onClick: n,
onHover: r,
focusStyle: {
boxShadow: c.Swatch.boxShadow + ", 0 0 5px " + t
}
}))
};
Lxe.defaultProps = {
circleSize: 28,
circleSpacing: 14
};
var Rxe = Object($fe.handleHover)(Lxe)
, Pxe = function(e) {
var t = e.width
, n = e.onChange
, r = e.onSwatchHover
, i = e.colors
, o = e.hex
, a = e.circleSize
, l = e.styles
, c = void 0 === l ? {} : l
, u = e.circleSpacing
, d = e.className
, p = void 0 === d ? "" : d
, h = ebe()(ome({
default: {
card: {
width: t,
display: "flex",
flexWrap: "wrap",
marginRight: -u,
marginBottom: -u
}
}
}, c))
, f = function(e, t) {
return n({
hex: e,
source: "hex"
}, t)
};
return s.a.createElement("div", {
style: h.card,
className: "circle-picker " + p
}, Zve(i, (function(e) {
return s.a.createElement(Rxe, {
key: e,
color: e,
onClick: f,
onSwatchHover: r,
active: o === e.toLowerCase(),
circleSize: a,
circleSpacing: u
})
}
)))
};
Pxe.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
circleSize: xbe.a.number,
circleSpacing: xbe.a.number,
styles: xbe.a.object
},
Pxe.defaultProps = {
width: 252,
circleSize: 28,
circleSpacing: 14,
colors: [rye, sye, hye, vye, kye, Sye, Nye, Pye, qye, Kye, Zye, rxe, sxe, hxe, vxe, kxe, Sxe, Nxe],
styles: {}
},
Pme(Pxe);
var Bxe = function(e) {
return void 0 === e
}
, Fxe = n(301)
, Vxe = n.n(Fxe)
, Wxe = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, qxe = function(e) {
function t(e) {
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
var n = function(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));
return n.toggleViews = function() {
"hex" === n.state.view ? n.setState({
view: "rgb"
}) : "rgb" === n.state.view ? n.setState({
view: "hsl"
}) : "hsl" === n.state.view && (1 === n.props.hsl.a ? n.setState({
view: "hex"
}) : n.setState({
view: "rgb"
}))
}
,
n.handleChange = function(e, t) {
e.hex ? Nme(e.hex) && n.props.onChange({
hex: e.hex,
source: "hex"
}, t) : e.r || e.g || e.b ? n.props.onChange({
r: e.r || n.props.rgb.r,
g: e.g || n.props.rgb.g,
b: e.b || n.props.rgb.b,
source: "rgb"
}, t) : e.a ? (e.a < 0 ? e.a = 0 : e.a > 1 && (e.a = 1),
n.props.onChange({
h: n.props.hsl.h,
s: n.props.hsl.s,
l: n.props.hsl.l,
a: Math.round(100 * e.a) / 100,
source: "rgb"
}, t)) : (e.h || e.s || e.l) && ("string" == typeof e.s && e.s.includes("%") && (e.s = e.s.replace("%", "")),
"string" == typeof e.l && e.l.includes("%") && (e.l = e.l.replace("%", "")),
1 == e.s ? e.s = .01 : 1 == e.l && (e.l = .01),
n.props.onChange({
h: e.h || n.props.hsl.h,
s: Number(Bxe(e.s) ? n.props.hsl.s : e.s),
l: Number(Bxe(e.l) ? n.props.hsl.l : e.l),
source: "hsl"
}, t))
}
,
n.showHighlight = function(e) {
e.currentTarget.style.background = "#eee"
}
,
n.hideHighlight = function(e) {
e.currentTarget.style.background = "transparent"
}
,
1 !== e.hsl.a && "hex" === e.view ? n.state = {
view: "rgb"
} : n.state = {
view: e.view
},
n
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
Wxe(t, [{
key: "render",
value: function() {
var e = this
, t = ebe()({
default: {
wrap: {
paddingTop: "16px",
display: "flex"
},
fields: {
flex: "1",
display: "flex",
marginLeft: "-6px"
},
field: {
paddingLeft: "6px",
width: "100%"
},
alpha: {
paddingLeft: "6px",
width: "100%"
},
toggle: {
width: "32px",
textAlign: "right",
position: "relative"
},
icon: {
marginRight: "-4px",
marginTop: "12px",
cursor: "pointer",
position: "relative"
},
iconHighlight: {
position: "absolute",
width: "24px",
height: "28px",
background: "#eee",
borderRadius: "4px",
top: "10px",
left: "12px",
display: "none"
},
input: {
fontSize: "11px",
color: "#333",
width: "100%",
borderRadius: "2px",
border: "none",
boxShadow: "inset 0 0 0 1px #dadada",
height: "21px",
textAlign: "center"
},
label: {
textTransform: "uppercase",
fontSize: "11px",
lineHeight: "11px",
color: "#969696",
textAlign: "center",
display: "block",
marginTop: "12px"
},
svg: {
fill: "#333",
width: "24px",
height: "24px",
border: "1px transparent solid",
borderRadius: "5px"
}
},
disableAlpha: {
alpha: {
display: "none"
}
}
}, this.props, this.state)
, n = void 0;
return "hex" === this.state.view ? n = s.a.createElement("div", {
style: t.fields,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "hex",
value: this.props.hex,
onChange: this.handleChange
}))) : "rgb" === this.state.view ? n = s.a.createElement("div", {
style: t.fields,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "r",
value: this.props.rgb.r,
onChange: this.handleChange
})), s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "g",
value: this.props.rgb.g,
onChange: this.handleChange
})), s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "b",
value: this.props.rgb.b,
onChange: this.handleChange
})), s.a.createElement("div", {
style: t.alpha
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "a",
value: this.props.rgb.a,
arrowOffset: .01,
onChange: this.handleChange
}))) : "hsl" === this.state.view && (n = s.a.createElement("div", {
style: t.fields,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "h",
value: Math.round(this.props.hsl.h),
onChange: this.handleChange
})), s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "s",
value: Math.round(100 * this.props.hsl.s) + "%",
onChange: this.handleChange
})), s.a.createElement("div", {
style: t.field
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "l",
value: Math.round(100 * this.props.hsl.l) + "%",
onChange: this.handleChange
})), s.a.createElement("div", {
style: t.alpha
}, s.a.createElement(fbe, {
style: {
input: t.input,
label: t.label
},
label: "a",
value: this.props.hsl.a,
arrowOffset: .01,
onChange: this.handleChange
})))),
s.a.createElement("div", {
style: t.wrap,
className: "flexbox-fix"
}, n, s.a.createElement("div", {
style: t.toggle
}, s.a.createElement("div", {
style: t.icon,
onClick: this.toggleViews,
ref: function(t) {
return e.icon = t
}
}, s.a.createElement(Vxe.a, {
style: t.svg,
onMouseOver: this.showHighlight,
onMouseEnter: this.showHighlight,
onMouseOut: this.hideHighlight
}))))
}
}], [{
key: "getDerivedStateFromProps",
value: function(e, t) {
return 1 !== e.hsl.a && "hex" === t.view ? {
view: "rgb"
} : null
}
}]),
t
}(s.a.Component);
qxe.defaultProps = {
view: "hex"
};
var Hxe = qxe
, Uxe = function() {
var e = ebe()({
default: {
picker: {
width: "12px",
height: "12px",
borderRadius: "6px",
transform: "translate(-6px, -1px)",
backgroundColor: "rgb(248, 248, 248)",
boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
}
}
});
return s.a.createElement("div", {
style: e.picker
})
}
, Xxe = function() {
var e = ebe()({
default: {
picker: {
width: "12px",
height: "12px",
borderRadius: "6px",
boxShadow: "inset 0 0 0 1px #fff",
transform: "translate(-6px, -6px)"
}
}
});
return s.a.createElement("div", {
style: e.picker
})
}
, Gxe = function(e) {
var t = e.width
, n = e.onChange
, r = e.disableAlpha
, i = e.rgb
, o = e.hsl
, a = e.hsv
, l = e.hex
, c = e.renderers
, u = e.styles
, d = void 0 === u ? {} : u
, p = e.className
, h = void 0 === p ? "" : p
, f = e.defaultView
, b = ebe()(ome({
default: {
picker: {
width: t,
background: "#fff",
borderRadius: "2px",
boxShadow: "0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",
boxSizing: "initial",
fontFamily: "Menlo"
},
saturation: {
width: "100%",
paddingBottom: "55%",
position: "relative",
borderRadius: "2px 2px 0 0",
overflow: "hidden"
},
Saturation: {
radius: "2px 2px 0 0"
},
body: {
padding: "16px 16px 12px"
},
controls: {
display: "flex"
},
color: {
width: "32px"
},
swatch: {
marginTop: "6px",
width: "16px",
height: "16px",
borderRadius: "8px",
position: "relative",
overflow: "hidden"
},
active: {
absolute: "0px 0px 0px 0px",
borderRadius: "8px",
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.1)",
background: "rgba(" + i.r + ", " + i.g + ", " + i.b + ", " + i.a + ")",
zIndex: "2"
},
toggles: {
flex: "1"
},
hue: {
height: "10px",
position: "relative",
marginBottom: "8px"
},
Hue: {
radius: "2px"
},
alpha: {
height: "10px",
position: "relative"
},
Alpha: {
radius: "2px"
}
},
disableAlpha: {
color: {
width: "22px"
},
alpha: {
display: "none"
},
hue: {
marginBottom: "0px"
},
swatch: {
width: "10px",
height: "10px",
marginTop: "0px"
}
}
}, d), {
disableAlpha: r
});
return s.a.createElement("div", {
style: b.picker,
className: "chrome-picker " + h
}, s.a.createElement("div", {
style: b.saturation
}, s.a.createElement(jme, {
style: b.Saturation,
hsl: o,
hsv: a,
pointer: Xxe,
onChange: n
})), s.a.createElement("div", {
style: b.body
}, s.a.createElement("div", {
style: b.controls,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: b.color
}, s.a.createElement("div", {
style: b.swatch
}, s.a.createElement("div", {
style: b.active
}), s.a.createElement(obe, {
renderers: c
}))), s.a.createElement("div", {
style: b.toggles
}, s.a.createElement("div", {
style: b.hue
}, s.a.createElement(vbe, {
style: b.Hue,
hsl: o,
pointer: Uxe,
onChange: n
})), s.a.createElement("div", {
style: b.alpha
}, s.a.createElement(ube, {
style: b.Alpha,
rgb: i,
hsl: o,
pointer: Uxe,
renderers: c,
onChange: n
})))), s.a.createElement(Hxe, {
rgb: i,
hsl: o,
hex: l,
view: f,
onChange: n,
disableAlpha: r
})))
};
Gxe.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
disableAlpha: xbe.a.bool,
styles: xbe.a.object,
defaultView: xbe.a.oneOf(["hex", "rgb", "hsl"])
},
Gxe.defaultProps = {
width: 225,
disableAlpha: !1,
styles: {}
},
Pme(Gxe);
var Kxe = function(e) {
var t = e.color
, n = e.onClick
, r = void 0 === n ? function() {}
: n
, i = e.onSwatchHover
, o = e.active
, a = ebe()({
default: {
color: {
background: t,
width: "15px",
height: "15px",
float: "left",
marginRight: "5px",
marginBottom: "5px",
position: "relative",
cursor: "pointer"
},
dot: {
absolute: "5px 5px 5px 5px",
background: zme(t),
borderRadius: "50%",
opacity: "0"
}
},
active: {
dot: {
opacity: "1"
}
},
"color-#FFFFFF": {
color: {
boxShadow: "inset 0 0 0 1px #ddd"
},
dot: {
background: "#000"
}
},
transparent: {
dot: {
background: "#000"
}
}
}, {
active: o,
"color-#FFFFFF": "#FFFFFF" === t,
transparent: "transparent" === t
});
return s.a.createElement(qme, {
style: a.color,
color: t,
onClick: r,
onHover: i,
focusStyle: {
boxShadow: "0 0 4px " + t
}
}, s.a.createElement("div", {
style: a.dot
}))
}
, Yxe = function(e) {
var t = e.hex
, n = e.rgb
, r = e.onChange
, i = ebe()({
default: {
fields: {
display: "flex",
paddingBottom: "6px",
paddingRight: "5px",
position: "relative"
},
active: {
position: "absolute",
top: "6px",
left: "5px",
height: "9px",
width: "9px",
background: t
},
HEXwrap: {
flex: "6",
position: "relative"
},
HEXinput: {
width: "80%",
padding: "0px",
paddingLeft: "20%",
border: "none",
outline: "none",
background: "none",
fontSize: "12px",
color: "#333",
height: "16px"
},
HEXlabel: {
display: "none"
},
RGBwrap: {
flex: "3",
position: "relative"
},
RGBinput: {
width: "70%",
padding: "0px",
paddingLeft: "30%",
border: "none",
outline: "none",
background: "none",
fontSize: "12px",
color: "#333",
height: "16px"
},
RGBlabel: {
position: "absolute",
top: "3px",
left: "0px",
lineHeight: "16px",
textTransform: "uppercase",
fontSize: "12px",
color: "#999"
}
}
})
, o = function(e, t) {
e.r || e.g || e.b ? r({
r: e.r || n.r,
g: e.g || n.g,
b: e.b || n.b,
source: "rgb"
}, t) : r({
hex: e.hex,
source: "hex"
}, t)
};
return s.a.createElement("div", {
style: i.fields,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: i.active
}), s.a.createElement(fbe, {
style: {
wrap: i.HEXwrap,
input: i.HEXinput,
label: i.HEXlabel
},
label: "hex",
value: t,
onChange: o
}), s.a.createElement(fbe, {
style: {
wrap: i.RGBwrap,
input: i.RGBinput,
label: i.RGBlabel
},
label: "r",
value: n.r,
onChange: o
}), s.a.createElement(fbe, {
style: {
wrap: i.RGBwrap,
input: i.RGBinput,
label: i.RGBlabel
},
label: "g",
value: n.g,
onChange: o
}), s.a.createElement(fbe, {
style: {
wrap: i.RGBwrap,
input: i.RGBinput,
label: i.RGBlabel
},
label: "b",
value: n.b,
onChange: o
}))
}
, Qxe = function(e) {
var t = e.onChange
, n = e.onSwatchHover
, r = e.colors
, i = e.hex
, o = e.rgb
, a = e.styles
, l = void 0 === a ? {} : a
, c = e.className
, u = void 0 === c ? "" : c
, d = ebe()(ome({
default: {
Compact: {
background: "#f6f6f6",
radius: "4px"
},
compact: {
paddingTop: "5px",
paddingLeft: "5px",
boxSizing: "initial",
width: "240px"
},
clear: {
clear: "both"
}
}
}, l))
, p = function(e, n) {
e.hex ? Nme(e.hex) && t({
hex: e.hex,
source: "hex"
}, n) : t(e, n)
};
return s.a.createElement(lme, {
style: d.Compact,
styles: l
}, s.a.createElement("div", {
style: d.compact,
className: "compact-picker " + u
}, s.a.createElement("div", null, Zve(r, (function(e) {
return s.a.createElement(Kxe, {
key: e,
color: e,
active: e.toLowerCase() === i,
onClick: p,
onSwatchHover: n
})
}
)), s.a.createElement("div", {
style: d.clear
})), s.a.createElement(Yxe, {
hex: i,
rgb: o,
onChange: p
})))
};
Qxe.propTypes = {
colors: xbe.a.arrayOf(xbe.a.string),
styles: xbe.a.object
},
Qxe.defaultProps = {
colors: ["#4D4D4D", "#999999", "#FFFFFF", "#F44E3B", "#FE9200", "#FCDC00", "#DBDF00", "#A4DD00", "#68CCCA", "#73D8FF", "#AEA1FF", "#FDA1FF", "#333333", "#808080", "#cccccc", "#D33115", "#E27300", "#FCC400", "#B0BC00", "#68BC00", "#16A5A5", "#009CE0", "#7B64FF", "#FA28FF", "#000000", "#666666", "#B3B3B3", "#9F0500", "#C45100", "#FB9E00", "#808900", "#194D33", "#0C797D", "#0062B1", "#653294", "#AB149E"],
styles: {}
},
Pme(Qxe);
var Jxe = Object($fe.handleHover)((function(e) {
var t = e.hover
, n = e.color
, r = e.onClick
, i = e.onSwatchHover
, o = {
position: "relative",
zIndex: "2",
outline: "2px solid #fff",
boxShadow: "0 0 5px 2px rgba(0,0,0,0.25)"
}
, a = ebe()({
default: {
swatch: {
width: "25px",
height: "25px",
fontSize: "0"
}
},
hover: {
swatch: o
}
}, {
hover: t
});
return s.a.createElement("div", {
style: a.swatch
}, s.a.createElement(qme, {
color: n,
onClick: r,
onHover: i,
focusStyle: o
}))
}
))
, Zxe = function(e) {
var t = e.width
, n = e.colors
, r = e.onChange
, i = e.onSwatchHover
, o = e.triangle
, a = e.styles
, l = void 0 === a ? {} : a
, c = e.className
, u = void 0 === c ? "" : c
, d = ebe()(ome({
default: {
card: {
width: t,
background: "#fff",
border: "1px solid rgba(0,0,0,0.2)",
boxShadow: "0 3px 12px rgba(0,0,0,0.15)",
borderRadius: "4px",
position: "relative",
padding: "5px",
display: "flex",
flexWrap: "wrap"
},
triangle: {
position: "absolute",
border: "7px solid transparent",
borderBottomColor: "#fff"
},
triangleShadow: {
position: "absolute",
border: "8px solid transparent",
borderBottomColor: "rgba(0,0,0,0.15)"
}
},
"hide-triangle": {
triangle: {
display: "none"
},
triangleShadow: {
display: "none"
}
},
"top-left-triangle": {
triangle: {
top: "-14px",
left: "10px"
},
triangleShadow: {
top: "-16px",
left: "9px"
}
},
"top-right-triangle": {
triangle: {
top: "-14px",
right: "10px"
},
triangleShadow: {
top: "-16px",
right: "9px"
}
},
"bottom-left-triangle": {
triangle: {
top: "35px",
left: "10px",
transform: "rotate(180deg)"
},
triangleShadow: {
top: "37px",
left: "9px",
transform: "rotate(180deg)"
}
},
"bottom-right-triangle": {
triangle: {
top: "35px",
right: "10px",
transform: "rotate(180deg)"
},
triangleShadow: {
top: "37px",
right: "9px",
transform: "rotate(180deg)"
}
}
}, l), {
"hide-triangle": "hide" === o,
"top-left-triangle": "top-left" === o,
"top-right-triangle": "top-right" === o,
"bottom-left-triangle": "bottom-left" === o,
"bottom-right-triangle": "bottom-right" === o
})
, p = function(e, t) {
return r({
hex: e,
source: "hex"
}, t)
};
return s.a.createElement("div", {
style: d.card,
className: "github-picker " + u
}, s.a.createElement("div", {
style: d.triangleShadow
}), s.a.createElement("div", {
style: d.triangle
}), Zve(n, (function(e) {
return s.a.createElement(Jxe, {
color: e,
key: e,
onClick: p,
onSwatchHover: i
})
}
)))
};
Zxe.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
colors: xbe.a.arrayOf(xbe.a.string),
triangle: xbe.a.oneOf(["hide", "top-left", "top-right", "bottom-left", "bottom-right"]),
styles: xbe.a.object
},
Zxe.defaultProps = {
width: 200,
colors: ["#B80000", "#DB3E00", "#FCCB00", "#008B02", "#006B76", "#1273DE", "#004DCF", "#5300EB", "#EB9694", "#FAD0C3", "#FEF3BD", "#C1E1C5", "#BEDADC", "#C4DEF6", "#BED3F3", "#D4C4FB"],
triangle: "top-left",
styles: {}
},
Pme(Zxe);
var $xe = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, eOe = function(e) {
var t = e.width
, n = e.height
, r = e.onChange
, i = e.hsl
, o = e.direction
, a = e.pointer
, l = e.styles
, c = void 0 === l ? {} : l
, u = e.className
, d = void 0 === u ? "" : u
, p = ebe()(ome({
default: {
picker: {
position: "relative",
width: t,
height: n
},
hue: {
radius: "2px"
}
}
}, c));
return s.a.createElement("div", {
style: p.picker,
className: "hue-picker " + d
}, s.a.createElement(vbe, $xe({}, p.hue, {
hsl: i,
pointer: a,
onChange: function(e) {
return r({
a: 1,
h: e.h,
l: .5,
s: 1
})
},
direction: o
})))
};
eOe.propTypes = {
styles: xbe.a.object
},
eOe.defaultProps = {
width: "316px",
height: "16px",
direction: "horizontal",
pointer: function(e) {
var t = e.direction
, n = ebe()({
default: {
picker: {
width: "18px",
height: "18px",
borderRadius: "50%",
transform: "translate(-9px, -1px)",
backgroundColor: "rgb(248, 248, 248)",
boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
}
},
vertical: {
picker: {
transform: "translate(-3px, -9px)"
}
}
}, {
vertical: "vertical" === t
});
return s.a.createElement("div", {
style: n.picker
})
},
styles: {}
},
Pme(eOe),
Pme((function(e) {
var t = e.onChange
, n = e.hex
, r = e.rgb
, i = e.styles
, o = void 0 === i ? {} : i
, a = e.className
, l = void 0 === a ? "" : a
, c = ebe()(ome({
default: {
material: {
width: "98px",
height: "98px",
padding: "16px",
fontFamily: "Roboto"
},
HEXwrap: {
position: "relative"
},
HEXinput: {
width: "100%",
marginTop: "12px",
fontSize: "15px",
color: "#333",
padding: "0px",
border: "0px",
borderBottom: "2px solid " + n,
outline: "none",
height: "30px"
},
HEXlabel: {
position: "absolute",
top: "0px",
left: "0px",
fontSize: "11px",
color: "#999999",
textTransform: "capitalize"
},
Hex: {
style: {}
},
RGBwrap: {
position: "relative"
},
RGBinput: {
width: "100%",
marginTop: "12px",
fontSize: "15px",
color: "#333",
padding: "0px",
border: "0px",
borderBottom: "1px solid #eee",
outline: "none",
height: "30px"
},
RGBlabel: {
position: "absolute",
top: "0px",
left: "0px",
fontSize: "11px",
color: "#999999",
textTransform: "capitalize"
},
split: {
display: "flex",
marginRight: "-10px",
paddingTop: "11px"
},
third: {
flex: "1",
paddingRight: "10px"
}
}
}, o))
, u = function(e, n) {
e.hex ? Nme(e.hex) && t({
hex: e.hex,
source: "hex"
}, n) : (e.r || e.g || e.b) && t({
r: e.r || r.r,
g: e.g || r.g,
b: e.b || r.b,
source: "rgb"
}, n)
};
return s.a.createElement(lme, {
styles: o
}, s.a.createElement("div", {
style: c.material,
className: "material-picker " + l
}, s.a.createElement(fbe, {
style: {
wrap: c.HEXwrap,
input: c.HEXinput,
label: c.HEXlabel
},
label: "hex",
value: n,
onChange: u
}), s.a.createElement("div", {
style: c.split,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: c.third
}, s.a.createElement(fbe, {
style: {
wrap: c.RGBwrap,
input: c.RGBinput,
label: c.RGBlabel
},
label: "r",
value: r.r,
onChange: u
})), s.a.createElement("div", {
style: c.third
}, s.a.createElement(fbe, {
style: {
wrap: c.RGBwrap,
input: c.RGBinput,
label: c.RGBlabel
},
label: "g",
value: r.g,
onChange: u
})), s.a.createElement("div", {
style: c.third
}, s.a.createElement(fbe, {
style: {
wrap: c.RGBwrap,
input: c.RGBinput,
label: c.RGBlabel
},
label: "b",
value: r.b,
onChange: u
})))))
}
));
var tOe = function(e) {
var t = e.onChange
, n = e.rgb
, r = e.hsv
, i = e.hex
, o = ebe()({
default: {
fields: {
paddingTop: "5px",
paddingBottom: "9px",
width: "80px",
position: "relative"
},
divider: {
height: "5px"
},
RGBwrap: {
position: "relative"
},
RGBinput: {
marginLeft: "40%",
width: "40%",
height: "18px",
border: "1px solid #888888",
boxShadow: "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
marginBottom: "5px",
fontSize: "13px",
paddingLeft: "3px",
marginRight: "10px"
},
RGBlabel: {
left: "0px",
top: "0px",
width: "34px",
textTransform: "uppercase",
fontSize: "13px",
height: "18px",
lineHeight: "22px",
position: "absolute"
},
HEXwrap: {
position: "relative"
},
HEXinput: {
marginLeft: "20%",
width: "80%",
height: "18px",
border: "1px solid #888888",
boxShadow: "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
marginBottom: "6px",
fontSize: "13px",
paddingLeft: "3px"
},
HEXlabel: {
position: "absolute",
top: "0px",
left: "0px",
width: "14px",
textTransform: "uppercase",
fontSize: "13px",
height: "18px",
lineHeight: "22px"
},
fieldSymbols: {
position: "absolute",
top: "5px",
right: "-7px",
fontSize: "13px"
},
symbol: {
height: "20px",
lineHeight: "22px",
paddingBottom: "7px"
}
}
})
, a = function(e, i) {
e["#"] ? Nme(e["#"]) && t({
hex: e["#"],
source: "hex"
}, i) : e.r || e.g || e.b ? t({
r: e.r || n.r,
g: e.g || n.g,
b: e.b || n.b,
source: "rgb"
}, i) : (e.h || e.s || e.v) && t({
h: e.h || r.h,
s: e.s || r.s,
v: e.v || r.v,
source: "hsv"
}, i)
};
return s.a.createElement("div", {
style: o.fields
}, s.a.createElement(fbe, {
style: {
wrap: o.RGBwrap,
input: o.RGBinput,
label: o.RGBlabel
},
label: "h",
value: Math.round(r.h),
onChange: a
}), s.a.createElement(fbe, {
style: {
wrap: o.RGBwrap,
input: o.RGBinput,
label: o.RGBlabel
},
label: "s",
value: Math.round(100 * r.s),
onChange: a
}), s.a.createElement(fbe, {
style: {
wrap: o.RGBwrap,
input: o.RGBinput,
label: o.RGBlabel
},
label: "v",
value: Math.round(100 * r.v),
onChange: a
}), s.a.createElement("div", {
style: o.divider
}), s.a.createElement(fbe, {
style: {
wrap: o.RGBwrap,
input: o.RGBinput,
label: o.RGBlabel
},
label: "r",
value: n.r,
onChange: a
}), s.a.createElement(fbe, {
style: {
wrap: o.RGBwrap,
input: o.RGBinput,
label: o.RGBlabel
},
label: "g",
value: n.g,
onChange: a
}), s.a.createElement(fbe, {
style: {
wrap: o.RGBwrap,
input: o.RGBinput,
label: o.RGBlabel
},
label: "b",
value: n.b,
onChange: a
}), s.a.createElement("div", {
style: o.divider
}), s.a.createElement(fbe, {
style: {
wrap: o.HEXwrap,
input: o.HEXinput,
label: o.HEXlabel
},
label: "#",
value: i.replace("#", ""),
onChange: a
}), s.a.createElement("div", {
style: o.fieldSymbols
}, s.a.createElement("div", {
style: o.symbol
}, "°"), s.a.createElement("div", {
style: o.symbol
}, "%"), s.a.createElement("div", {
style: o.symbol
}, "%")))
}
, nOe = function(e) {
var t = e.hsl
, n = ebe()({
default: {
picker: {
width: "12px",
height: "12px",
borderRadius: "6px",
boxShadow: "inset 0 0 0 1px #fff",
transform: "translate(-6px, -6px)"
}
},
"black-outline": {
picker: {
boxShadow: "inset 0 0 0 1px #000"
}
}
}, {
"black-outline": t.l > .5
});
return s.a.createElement("div", {
style: n.picker
})
}
, rOe = function() {
var e = ebe()({
default: {
triangle: {
width: 0,
height: 0,
borderStyle: "solid",
borderWidth: "4px 0 4px 6px",
borderColor: "transparent transparent transparent #fff",
position: "absolute",
top: "1px",
left: "1px"
},
triangleBorder: {
width: 0,
height: 0,
borderStyle: "solid",
borderWidth: "5px 0 5px 8px",
borderColor: "transparent transparent transparent #555"
},
left: {
Extend: "triangleBorder",
transform: "translate(-13px, -4px)"
},
leftInside: {
Extend: "triangle",
transform: "translate(-8px, -5px)"
},
right: {
Extend: "triangleBorder",
transform: "translate(20px, -14px) rotate(180deg)"
},
rightInside: {
Extend: "triangle",
transform: "translate(-8px, -5px)"
}
}
});
return s.a.createElement("div", {
style: e.pointer
}, s.a.createElement("div", {
style: e.left
}, s.a.createElement("div", {
style: e.leftInside
})), s.a.createElement("div", {
style: e.right
}, s.a.createElement("div", {
style: e.rightInside
})))
}
, iOe = function(e) {
var t = e.onClick
, n = e.label
, r = e.children
, i = e.active
, o = ebe()({
default: {
button: {
backgroundImage: "linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",
border: "1px solid #878787",
borderRadius: "2px",
height: "20px",
boxShadow: "0 1px 0 0 #EAEAEA",
fontSize: "14px",
color: "#000",
lineHeight: "20px",
textAlign: "center",
marginBottom: "10px",
cursor: "pointer"
}
},
active: {
button: {
boxShadow: "0 0 0 1px #878787"
}
}
}, {
active: i
});
return s.a.createElement("div", {
style: o.button,
onClick: t
}, n || r)
}
, oOe = function(e) {
var t = e.rgb
, n = e.currentColor
, r = ebe()({
default: {
swatches: {
border: "1px solid #B3B3B3",
borderBottom: "1px solid #F0F0F0",
marginBottom: "2px",
marginTop: "1px"
},
new: {
height: "34px",
background: "rgb(" + t.r + "," + t.g + ", " + t.b + ")",
boxShadow: "inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"
},
current: {
height: "34px",
background: n,
boxShadow: "inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"
},
label: {
fontSize: "14px",
color: "#000",
textAlign: "center"
}
}
});
return s.a.createElement("div", null, s.a.createElement("div", {
style: r.label
}, "new"), s.a.createElement("div", {
style: r.swatches
}, s.a.createElement("div", {
style: r.new
}), s.a.createElement("div", {
style: r.current
})), s.a.createElement("div", {
style: r.label
}, "current"))
}
, aOe = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, lOe = function(e) {
function t(e) {
!function(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}(this, t);
var n = function(e, t) {
if (!e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !t || "object" != typeof t && "function" != typeof t ? e : t
}(this, (t.__proto__ || Object.getPrototypeOf(t)).call(this));
return n.state = {
currentColor: e.hex
},
n
}
return function(e, t) {
if ("function" != typeof t && null !== t)
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
enumerable: !1,
writable: !0,
configurable: !0
}
}),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
}(t, e),
aOe(t, [{
key: "render",
value: function() {
var e = this.props
, t = e.styles
, n = void 0 === t ? {} : t
, r = e.className
, i = void 0 === r ? "" : r
, o = ebe()(ome({
default: {
picker: {
background: "#DCDCDC",
borderRadius: "4px",
boxShadow: "0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",
boxSizing: "initial",
width: "513px"
},
head: {
backgroundImage: "linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",
borderBottom: "1px solid #B1B1B1",
boxShadow: "inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",
height: "23px",
lineHeight: "24px",
borderRadius: "4px 4px 0 0",
fontSize: "13px",
color: "#4D4D4D",
textAlign: "center"
},
body: {
padding: "15px 15px 0",
display: "flex"
},
saturation: {
width: "256px",
height: "256px",
position: "relative",
border: "2px solid #B3B3B3",
borderBottom: "2px solid #F0F0F0",
overflow: "hidden"
},
hue: {
position: "relative",
height: "256px",
width: "19px",
marginLeft: "10px",
border: "2px solid #B3B3B3",
borderBottom: "2px solid #F0F0F0"
},
controls: {
width: "180px",
marginLeft: "10px"
},
top: {
display: "flex"
},
previews: {
width: "60px"
},
actions: {
flex: "1",
marginLeft: "20px"
}
}
}, n));
return s.a.createElement("div", {
style: o.picker,
className: "photoshop-picker " + i
}, s.a.createElement("div", {
style: o.head
}, this.props.header), s.a.createElement("div", {
style: o.body,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: o.saturation
}, s.a.createElement(jme, {
hsl: this.props.hsl,
hsv: this.props.hsv,
pointer: nOe,
onChange: this.props.onChange
})), s.a.createElement("div", {
style: o.hue
}, s.a.createElement(vbe, {
direction: "vertical",
hsl: this.props.hsl,
pointer: rOe,
onChange: this.props.onChange
})), s.a.createElement("div", {
style: o.controls
}, s.a.createElement("div", {
style: o.top,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: o.previews
}, s.a.createElement(oOe, {
rgb: this.props.rgb,
currentColor: this.state.currentColor
})), s.a.createElement("div", {
style: o.actions
}, s.a.createElement(iOe, {
label: "OK",
onClick: this.props.onAccept,
active: !0
}), s.a.createElement(iOe, {
label: "Cancel",
onClick: this.props.onCancel
}), s.a.createElement(tOe, {
onChange: this.props.onChange,
rgb: this.props.rgb,
hsv: this.props.hsv,
hex: this.props.hex
}))))))
}
}]),
t
}(s.a.Component);
lOe.propTypes = {
header: xbe.a.string,
styles: xbe.a.object
},
lOe.defaultProps = {
header: "Color Picker",
styles: {}
},
Pme(lOe);
var sOe = function(e) {
var t = e.onChange
, n = e.rgb
, r = e.hsl
, i = e.hex
, o = e.disableAlpha
, a = ebe()({
default: {
fields: {
display: "flex",
paddingTop: "4px"
},
single: {
flex: "1",
paddingLeft: "6px"
},
alpha: {
flex: "1",
paddingLeft: "6px"
},
double: {
flex: "2"
},
input: {
width: "80%",
padding: "4px 10% 3px",
border: "none",
boxShadow: "inset 0 0 0 1px #ccc",
fontSize: "11px"
},
label: {
display: "block",
textAlign: "center",
fontSize: "11px",
color: "#222",
paddingTop: "3px",
paddingBottom: "4px",
textTransform: "capitalize"
}
},
disableAlpha: {
alpha: {
display: "none"
}
}
}, {
disableAlpha: o
})
, l = function(e, i) {
e.hex ? Nme(e.hex) && t({
hex: e.hex,
source: "hex"
}, i) : e.r || e.g || e.b ? t({
r: e.r || n.r,
g: e.g || n.g,
b: e.b || n.b,
a: n.a,
source: "rgb"
}, i) : e.a && (e.a < 0 ? e.a = 0 : e.a > 100 && (e.a = 100),
e.a /= 100,
t({
h: r.h,
s: r.s,
l: r.l,
a: e.a,
source: "rgb"
}, i))
};
return s.a.createElement("div", {
style: a.fields,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: a.double
}, s.a.createElement(fbe, {
style: {
input: a.input,
label: a.label
},
label: "hex",
value: i.replace("#", ""),
onChange: l
})), s.a.createElement("div", {
style: a.single
}, s.a.createElement(fbe, {
style: {
input: a.input,
label: a.label
},
label: "r",
value: n.r,
onChange: l,
dragLabel: "true",
dragMax: "255"
})), s.a.createElement("div", {
style: a.single
}, s.a.createElement(fbe, {
style: {
input: a.input,
label: a.label
},
label: "g",
value: n.g,
onChange: l,
dragLabel: "true",
dragMax: "255"
})), s.a.createElement("div", {
style: a.single
}, s.a.createElement(fbe, {
style: {
input: a.input,
label: a.label
},
label: "b",
value: n.b,
onChange: l,
dragLabel: "true",
dragMax: "255"
})), s.a.createElement("div", {
style: a.alpha
}, s.a.createElement(fbe, {
style: {
input: a.input,
label: a.label
},
label: "a",
value: Math.round(100 * n.a),
onChange: l,
dragLabel: "true",
dragMax: "100"
})))
}
, cOe = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, uOe = function(e) {
var t = e.colors
, n = e.onClick
, r = void 0 === n ? function() {}
: n
, i = e.onSwatchHover
, o = ebe()({
default: {
colors: {
margin: "0 -10px",
padding: "10px 0 0 10px",
borderTop: "1px solid #eee",
display: "flex",
flexWrap: "wrap",
position: "relative"
},
swatchWrap: {
width: "16px",
height: "16px",
margin: "0 10px 10px 0"
},
swatch: {
borderRadius: "3px",
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15)"
}
},
"no-presets": {
colors: {
display: "none"
}
}
}, {
"no-presets": !t || !t.length
})
, a = function(e, t) {
r({
hex: e,
source: "hex"
}, t)
};
return s.a.createElement("div", {
style: o.colors,
className: "flexbox-fix"
}, t.map((function(e) {
var t = "string" == typeof e ? {
color: e
} : e
, n = "" + t.color + (t.title || "");
return s.a.createElement("div", {
key: n,
style: o.swatchWrap
}, s.a.createElement(qme, cOe({}, t, {
style: o.swatch,
onClick: a,
onHover: i,
focusStyle: {
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px " + t.color
}
})))
}
)))
};
uOe.propTypes = {
colors: xbe.a.arrayOf(xbe.a.oneOfType([xbe.a.string, xbe.a.shape({
color: xbe.a.string,
title: xbe.a.string
})])).isRequired
};
var dOe = uOe
, pOe = Object.assign || function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}
, hOe = function(e) {
var t = e.width
, n = e.rgb
, r = e.hex
, i = e.hsv
, o = e.hsl
, a = e.onChange
, l = e.onSwatchHover
, c = e.disableAlpha
, u = e.presetColors
, d = e.renderers
, p = e.styles
, h = void 0 === p ? {} : p
, f = e.className
, b = void 0 === f ? "" : f
, g = ebe()(ome({
default: pOe({
picker: {
width: t,
padding: "10px 10px 0",
boxSizing: "initial",
background: "#fff",
borderRadius: "4px",
boxShadow: "0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"
},
saturation: {
width: "100%",
paddingBottom: "75%",
position: "relative",
overflow: "hidden"
},
Saturation: {
radius: "3px",
shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
},
controls: {
display: "flex"
},
sliders: {
padding: "4px 0",
flex: "1"
},
color: {
width: "24px",
height: "24px",
position: "relative",
marginTop: "4px",
marginLeft: "4px",
borderRadius: "3px"
},
activeColor: {
absolute: "0px 0px 0px 0px",
borderRadius: "2px",
background: "rgba(" + n.r + "," + n.g + "," + n.b + "," + n.a + ")",
boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
},
hue: {
position: "relative",
height: "10px",
overflow: "hidden"
},
Hue: {
radius: "2px",
shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
},
alpha: {
position: "relative",
height: "10px",
marginTop: "4px",
overflow: "hidden"
},
Alpha: {
radius: "2px",
shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
}
}, h),
disableAlpha: {
color: {
height: "10px"
},
hue: {
height: "10px"
},
alpha: {
display: "none"
}
}
}, h), {
disableAlpha: c
});
return s.a.createElement("div", {
style: g.picker,
className: "sketch-picker " + b
}, s.a.createElement("div", {
style: g.saturation
}, s.a.createElement(jme, {
style: g.Saturation,
hsl: o,
hsv: i,
onChange: a
})), s.a.createElement("div", {
style: g.controls,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: g.sliders
}, s.a.createElement("div", {
style: g.hue
}, s.a.createElement(vbe, {
style: g.Hue,
hsl: o,
onChange: a
})), s.a.createElement("div", {
style: g.alpha
}, s.a.createElement(ube, {
style: g.Alpha,
rgb: n,
hsl: o,
renderers: d,
onChange: a
}))), s.a.createElement("div", {
style: g.color
}, s.a.createElement(obe, null), s.a.createElement("div", {
style: g.activeColor
}))), s.a.createElement(sOe, {
rgb: n,
hsl: o,
hex: r,
onChange: a,
disableAlpha: c
}), s.a.createElement(dOe, {
colors: u,
onClick: a,
onSwatchHover: l
}))
};
hOe.propTypes = {
disableAlpha: xbe.a.bool,
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
styles: xbe.a.object
},
hOe.defaultProps = {
disableAlpha: !1,
width: 200,
styles: {},
presetColors: ["#D0021B", "#F5A623", "#F8E71C", "#8B572A", "#7ED321", "#417505", "#BD10E0", "#9013FE", "#4A90E2", "#50E3C2", "#B8E986", "#000000", "#4A4A4A", "#9B9B9B", "#FFFFFF"]
};
var fOe = Pme(hOe)
, bOe = function(e) {
var t = e.hsl
, n = e.offset
, r = e.onClick
, i = void 0 === r ? function() {}
: r
, o = e.active
, a = e.first
, l = e.last
, c = ebe()({
default: {
swatch: {
height: "12px",
background: "hsl(" + t.h + ", 50%, " + 100 * n + "%)",
cursor: "pointer"
}
},
first: {
swatch: {
borderRadius: "2px 0 0 2px"
}
},
last: {
swatch: {
borderRadius: "0 2px 2px 0"
}
},
active: {
swatch: {
transform: "scaleY(1.8)",
borderRadius: "3.6px/2px"
}
}
}, {
active: o,
first: a,
last: l
});
return s.a.createElement("div", {
style: c.swatch,
onClick: function(e) {
return i({
h: t.h,
s: .5,
l: n,
source: "hsl"
}, e)
}
})
}
, gOe = function(e) {
var t = e.onClick
, n = e.hsl
, r = ebe()({
default: {
swatches: {
marginTop: "20px"
},
swatch: {
boxSizing: "border-box",
width: "20%",
paddingRight: "1px",
float: "left"
},
clear: {
clear: "both"
}
}
})
, i = .1;
return s.a.createElement("div", {
style: r.swatches
}, s.a.createElement("div", {
style: r.swatch
}, s.a.createElement(bOe, {
hsl: n,
offset: ".80",
active: Math.abs(n.l - .8) < i && Math.abs(n.s - .5) < i,
onClick: t,
first: !0
})), s.a.createElement("div", {
style: r.swatch
}, s.a.createElement(bOe, {
hsl: n,
offset: ".65",
active: Math.abs(n.l - .65) < i && Math.abs(n.s - .5) < i,
onClick: t
})), s.a.createElement("div", {
style: r.swatch
}, s.a.createElement(bOe, {
hsl: n,
offset: ".50",
active: Math.abs(n.l - .5) < i && Math.abs(n.s - .5) < i,
onClick: t
})), s.a.createElement("div", {
style: r.swatch
}, s.a.createElement(bOe, {
hsl: n,
offset: ".35",
active: Math.abs(n.l - .35) < i && Math.abs(n.s - .5) < i,
onClick: t
})), s.a.createElement("div", {
style: r.swatch
}, s.a.createElement(bOe, {
hsl: n,
offset: ".20",
active: Math.abs(n.l - .2) < i && Math.abs(n.s - .5) < i,
onClick: t,
last: !0
})), s.a.createElement("div", {
style: r.clear
}))
}
, mOe = function(e) {
var t = e.hsl
, n = e.onChange
, r = e.pointer
, i = e.styles
, o = void 0 === i ? {} : i
, a = e.className
, l = void 0 === a ? "" : a
, c = ebe()(ome({
default: {
hue: {
height: "12px",
position: "relative"
},
Hue: {
radius: "2px"
}
}
}, o));
return s.a.createElement("div", {
style: c.wrap || {},
className: "slider-picker " + l
}, s.a.createElement("div", {
style: c.hue
}, s.a.createElement(vbe, {
style: c.Hue,
hsl: t,
pointer: r,
onChange: n
})), s.a.createElement("div", {
style: c.swatches
}, s.a.createElement(gOe, {
hsl: t,
onClick: n
})))
};
mOe.propTypes = {
styles: xbe.a.object
},
mOe.defaultProps = {
pointer: function() {
var e = ebe()({
default: {
picker: {
width: "14px",
height: "14px",
borderRadius: "6px",
transform: "translate(-7px, -1px)",
backgroundColor: "rgb(248, 248, 248)",
boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
}
}
});
return s.a.createElement("div", {
style: e.picker
})
},
styles: {}
},
Pme(mOe);
var vOe = n(302)
, yOe = n.n(vOe)
, xOe = function(e) {
var t = e.color
, n = e.onClick
, r = void 0 === n ? function() {}
: n
, i = e.onSwatchHover
, o = e.first
, a = e.last
, l = e.active
, c = ebe()({
default: {
color: {
width: "40px",
height: "24px",
cursor: "pointer",
background: t,
marginBottom: "1px"
},
check: {
color: zme(t),
marginLeft: "8px",
display: "none"
}
},
first: {
color: {
overflow: "hidden",
borderRadius: "2px 2px 0 0"
}
},
last: {
color: {
overflow: "hidden",
borderRadius: "0 0 2px 2px"
}
},
active: {
check: {
display: "block"
}
},
"color-#FFFFFF": {
color: {
boxShadow: "inset 0 0 0 1px #ddd"
},
check: {
color: "#333"
}
},
transparent: {
check: {
color: "#333"
}
}
}, {
first: o,
last: a,
active: l,
"color-#FFFFFF": "#FFFFFF" === t,
transparent: "transparent" === t
});
return s.a.createElement(qme, {
color: t,
style: c.color,
onClick: r,
onHover: i,
focusStyle: {
boxShadow: "0 0 4px " + t
}
}, s.a.createElement("div", {
style: c.check
}, s.a.createElement(yOe.a, null)))
}
, OOe = function(e) {
var t = e.onClick
, n = e.onSwatchHover
, r = e.group
, i = e.active
, o = ebe()({
default: {
group: {
paddingBottom: "10px",
width: "40px",
float: "left",
marginRight: "10px"
}
}
});
return s.a.createElement("div", {
style: o.group
}, Zve(r, (function(e, o) {
return s.a.createElement(xOe, {
key: e,
color: e,
active: e.toLowerCase() === i,
first: 0 === o,
last: o === r.length - 1,
onClick: t,
onSwatchHover: n
})
}
)))
}
, jOe = function(e) {
var t = e.width
, n = e.height
, r = e.onChange
, i = e.onSwatchHover
, o = e.colors
, a = e.hex
, l = e.styles
, c = void 0 === l ? {} : l
, u = e.className
, d = void 0 === u ? "" : u
, p = ebe()(ome({
default: {
picker: {
width: t,
height: n
},
overflow: {
height: n,
overflowY: "scroll"
},
body: {
padding: "16px 0 6px 16px"
},
clear: {
clear: "both"
}
}
}, c))
, h = function(e, t) {
return r({
hex: e,
source: "hex"
}, t)
};
return s.a.createElement("div", {
style: p.picker,
className: "swatches-picker " + d
}, s.a.createElement(lme, null, s.a.createElement("div", {
style: p.overflow
}, s.a.createElement("div", {
style: p.body
}, Zve(o, (function(e) {
return s.a.createElement(OOe, {
key: e.toString(),
group: e,
active: a,
onClick: h,
onSwatchHover: i
})
}
)), s.a.createElement("div", {
style: p.clear
})))))
};
jOe.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
height: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
colors: xbe.a.arrayOf(xbe.a.arrayOf(xbe.a.string)),
styles: xbe.a.object
},
jOe.defaultProps = {
width: 320,
height: 240,
colors: [[oye, iye, rye, nye, tye], [uye, cye, sye, lye, aye], [bye, fye, hye, pye, dye], [xye, yye, vye, mye, gye], [Cye, wye, kye, jye, Oye], [Tye, Aye, Sye, Mye, _ye], [Dye, zye, Nye, Iye, Eye], [Fye, Bye, Pye, Rye, Lye], [Uye, Hye, qye, Wye, Vye], ["#194D33", Yye, Kye, Gye, Xye], [exe, $ye, Zye, Jye, Qye], [oxe, ixe, rxe, nxe, txe], [uxe, cxe, sxe, lxe, axe], [bxe, fxe, hxe, pxe, dxe], [xxe, yxe, vxe, mxe, gxe], [Cxe, wxe, kxe, jxe, Oxe], [Txe, Axe, Sxe, Mxe, _xe], [Dxe, zxe, Nxe, Ixe, Exe], ["#000000", "#525252", "#969696", "#D9D9D9", "#FFFFFF"]],
styles: {}
},
Pme(jOe);
var kOe = function(e) {
var t = e.onChange
, n = e.onSwatchHover
, r = e.hex
, i = e.colors
, o = e.width
, a = e.triangle
, l = e.styles
, c = void 0 === l ? {} : l
, u = e.className
, d = void 0 === u ? "" : u
, p = ebe()(ome({
default: {
card: {
width: o,
background: "#fff",
border: "0 solid rgba(0,0,0,0.25)",
boxShadow: "0 1px 4px rgba(0,0,0,0.25)",
borderRadius: "4px",
position: "relative"
},
body: {
padding: "15px 9px 9px 15px"
},
label: {
fontSize: "18px",
color: "#fff"
},
triangle: {
width: "0px",
height: "0px",
borderStyle: "solid",
borderWidth: "0 9px 10px 9px",
borderColor: "transparent transparent #fff transparent",
position: "absolute"
},
triangleShadow: {
width: "0px",
height: "0px",
borderStyle: "solid",
borderWidth: "0 9px 10px 9px",
borderColor: "transparent transparent rgba(0,0,0,.1) transparent",
position: "absolute"
},
hash: {
background: "#F0F0F0",
height: "30px",
width: "30px",
borderRadius: "4px 0 0 4px",
float: "left",
color: "#98A1A4",
display: "flex",
alignItems: "center",
justifyContent: "center"
},
input: {
width: "100px",
fontSize: "14px",
color: "#666",
border: "0px",
outline: "none",
height: "28px",
boxShadow: "inset 0 0 0 1px #F0F0F0",
boxSizing: "content-box",
borderRadius: "0 4px 4px 0",
float: "left",
paddingLeft: "8px"
},
swatch: {
width: "30px",
height: "30px",
float: "left",
borderRadius: "4px",
margin: "0 6px 6px 0"
},
clear: {
clear: "both"
}
},
"hide-triangle": {
triangle: {
display: "none"
},
triangleShadow: {
display: "none"
}
},
"top-left-triangle": {
triangle: {
top: "-10px",
left: "12px"
},
triangleShadow: {
top: "-11px",
left: "12px"
}
},
"top-right-triangle": {
triangle: {
top: "-10px",
right: "12px"
},
triangleShadow: {
top: "-11px",
right: "12px"
}
}
}, c), {
"hide-triangle": "hide" === a,
"top-left-triangle": "top-left" === a,
"top-right-triangle": "top-right" === a
})
, h = function(e, n) {
Nme(e) && t({
hex: e,
source: "hex"
}, n)
};
return s.a.createElement("div", {
style: p.card,
className: "twitter-picker " + d
}, s.a.createElement("div", {
style: p.triangleShadow
}), s.a.createElement("div", {
style: p.triangle
}), s.a.createElement("div", {
style: p.body
}, Zve(i, (function(e, t) {
return s.a.createElement(qme, {
key: t,
color: e,
hex: e,
style: p.swatch,
onClick: h,
onHover: n,
focusStyle: {
boxShadow: "0 0 4px " + e
}
})
}
)), s.a.createElement("div", {
style: p.hash
}, "#"), s.a.createElement(fbe, {
label: null,
style: {
input: p.input
},
value: r.replace("#", ""),
onChange: h
}), s.a.createElement("div", {
style: p.clear
})))
};
kOe.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
triangle: xbe.a.oneOf(["hide", "top-left", "top-right"]),
colors: xbe.a.arrayOf(xbe.a.string),
styles: xbe.a.object
},
kOe.defaultProps = {
width: 276,
colors: ["#FF6900", "#FCB900", "#7BDCB5", "#00D084", "#8ED1FC", "#0693E3", "#ABB8C3", "#EB144C", "#F78DA7", "#9900EF"],
triangle: "top-left",
styles: {}
},
Pme(kOe);
var wOe = function(e) {
var t = ebe()({
default: {
picker: {
width: "20px",
height: "20px",
borderRadius: "22px",
border: "2px #fff solid",
transform: "translate(-12px, -13px)",
background: "hsl(" + Math.round(e.hsl.h) + ", " + Math.round(100 * e.hsl.s) + "%, " + Math.round(100 * e.hsl.l) + "%)"
}
}
});
return s.a.createElement("div", {
style: t.picker
})
};
wOe.propTypes = {
hsl: xbe.a.shape({
h: xbe.a.number,
s: xbe.a.number,
l: xbe.a.number,
a: xbe.a.number
})
},
wOe.defaultProps = {
hsl: {
a: 1,
h: 249.94,
l: .2,
s: .5
}
};
var COe = wOe
, _Oe = function(e) {
var t = ebe()({
default: {
picker: {
width: "20px",
height: "20px",
borderRadius: "22px",
transform: "translate(-10px, -7px)",
background: "hsl(" + Math.round(e.hsl.h) + ", 100%, 50%)",
border: "2px white solid"
}
}
});
return s.a.createElement("div", {
style: t.picker
})
};
_Oe.propTypes = {
hsl: xbe.a.shape({
h: xbe.a.number,
s: xbe.a.number,
l: xbe.a.number,
a: xbe.a.number
})
},
_Oe.defaultProps = {
hsl: {
a: 1,
h: 249.94,
l: .2,
s: .5
}
};
var MOe = _Oe
, SOe = function(e) {
var t = e.onChange
, n = e.rgb
, r = e.hsl
, i = e.hex
, o = e.hsv
, a = function(e, n) {
if (e.hex)
Nme(e.hex) && t({
hex: e.hex,
source: "hex"
}, n);
else if (e.rgb) {
var r = e.rgb.split(",");
Dme(e.rgb, "rgb") && t({
r: r[0],
g: r[1],
b: r[2],
a: 1,
source: "rgb"
}, n)
} else if (e.hsv) {
var i = e.hsv.split(",");
Dme(e.hsv, "hsv") && (i[2] = i[2].replace("%", ""),
i[1] = i[1].replace("%", ""),
i[0] = i[0].replace("°", ""),
1 == i[1] ? i[1] = .01 : 1 == i[2] && (i[2] = .01),
t({
h: Number(i[0]),
s: Number(i[1]),
v: Number(i[2]),
source: "hsv"
}, n))
} else if (e.hsl) {
var o = e.hsl.split(",");
Dme(e.hsl, "hsl") && (o[2] = o[2].replace("%", ""),
o[1] = o[1].replace("%", ""),
o[0] = o[0].replace("°", ""),
1 == d[1] ? d[1] = .01 : 1 == d[2] && (d[2] = .01),
t({
h: Number(o[0]),
s: Number(o[1]),
v: Number(o[2]),
source: "hsl"
}, n))
}
}
, l = ebe()({
default: {
wrap: {
display: "flex",
height: "100px",
marginTop: "4px"
},
fields: {
width: "100%"
},
column: {
paddingTop: "10px",
display: "flex",
justifyContent: "space-between"
},
double: {
padding: "0px 4.4px",
boxSizing: "border-box"
},
input: {
width: "100%",
height: "38px",
boxSizing: "border-box",
padding: "4px 10% 3px",
textAlign: "center",
border: "1px solid #dadce0",
fontSize: "11px",
textTransform: "lowercase",
borderRadius: "5px",
outline: "none",
fontFamily: "Roboto,Arial,sans-serif"
},
input2: {
height: "38px",
width: "100%",
border: "1px solid #dadce0",
boxSizing: "border-box",
fontSize: "11px",
textTransform: "lowercase",
borderRadius: "5px",
outline: "none",
paddingLeft: "10px",
fontFamily: "Roboto,Arial,sans-serif"
},
label: {
textAlign: "center",
fontSize: "12px",
background: "#fff",
position: "absolute",
textTransform: "uppercase",
color: "#3c4043",
width: "35px",
top: "-6px",
left: "0",
right: "0",
marginLeft: "auto",
marginRight: "auto",
fontFamily: "Roboto,Arial,sans-serif"
},
label2: {
left: "10px",
textAlign: "center",
fontSize: "12px",
background: "#fff",
position: "absolute",
textTransform: "uppercase",
color: "#3c4043",
width: "32px",
top: "-6px",
fontFamily: "Roboto,Arial,sans-serif"
},
single: {
flexGrow: "1",
margin: "0px 4.4px"
}
}
})
, c = n.r + ", " + n.g + ", " + n.b
, u = Math.round(r.h) + "°, " + Math.round(100 * r.s) + "%, " + Math.round(100 * r.l) + "%"
, d = Math.round(o.h) + "°, " + Math.round(100 * o.s) + "%, " + Math.round(100 * o.v) + "%";
return s.a.createElement("div", {
style: l.wrap,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: l.fields
}, s.a.createElement("div", {
style: l.double
}, s.a.createElement(fbe, {
style: {
input: l.input,
label: l.label
},
label: "hex",
value: i,
onChange: a
})), s.a.createElement("div", {
style: l.column
}, s.a.createElement("div", {
style: l.single
}, s.a.createElement(fbe, {
style: {
input: l.input2,
label: l.label2
},
label: "rgb",
value: c,
onChange: a
})), s.a.createElement("div", {
style: l.single
}, s.a.createElement(fbe, {
style: {
input: l.input2,
label: l.label2
},
label: "hsv",
value: d,
onChange: a
})), s.a.createElement("div", {
style: l.single
}, s.a.createElement(fbe, {
style: {
input: l.input2,
label: l.label2
},
label: "hsl",
value: u,
onChange: a
})))))
}
, AOe = function(e) {
var t = e.width
, n = e.onChange
, r = e.rgb
, i = e.hsl
, o = e.hsv
, a = e.hex
, l = e.header
, c = e.styles
, u = void 0 === c ? {} : c
, d = e.className
, p = void 0 === d ? "" : d
, h = ebe()(ome({
default: {
picker: {
width: t,
background: "#fff",
border: "1px solid #dfe1e5",
boxSizing: "initial",
display: "flex",
flexWrap: "wrap",
borderRadius: "8px 8px 0px 0px"
},
head: {
height: "57px",
width: "100%",
paddingTop: "16px",
paddingBottom: "16px",
paddingLeft: "16px",
fontSize: "20px",
boxSizing: "border-box",
fontFamily: "Roboto-Regular,HelveticaNeue,Arial,sans-serif"
},
saturation: {
width: "70%",
padding: "0px",
position: "relative",
overflow: "hidden"
},
swatch: {
width: "30%",
height: "228px",
padding: "0px",
background: "rgba(" + r.r + ", " + r.g + ", " + r.b + ", 1)",
position: "relative",
overflow: "hidden"
},
body: {
margin: "auto",
width: "95%"
},
controls: {
display: "flex",
boxSizing: "border-box",
height: "52px",
paddingTop: "22px"
},
color: {
width: "32px"
},
hue: {
height: "8px",
position: "relative",
margin: "0px 16px 0px 16px",
width: "100%"
},
Hue: {
radius: "2px"
}
}
}, u));
return s.a.createElement("div", {
style: h.picker,
className: "google-picker " + p
}, s.a.createElement("div", {
style: h.head
}, l), s.a.createElement("div", {
style: h.swatch
}), s.a.createElement("div", {
style: h.saturation
}, s.a.createElement(jme, {
hsl: i,
hsv: o,
pointer: COe,
onChange: n
})), s.a.createElement("div", {
style: h.body
}, s.a.createElement("div", {
style: h.controls,
className: "flexbox-fix"
}, s.a.createElement("div", {
style: h.hue
}, s.a.createElement(vbe, {
style: h.Hue,
hsl: i,
radius: "4px",
pointer: MOe,
onChange: n
}))), s.a.createElement(SOe, {
rgb: r,
hsl: i,
hex: a,
hsv: o,
onChange: n
})))
};
AOe.propTypes = {
width: xbe.a.oneOfType([xbe.a.string, xbe.a.number]),
styles: xbe.a.object,
header: xbe.a.string
},
AOe.defaultProps = {
width: 652,
styles: {},
header: "Color picker"
},
Pme(AOe);
var TOe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).handleChangeComplete = function(e, t) {
var n = r.props.onChange;
n && n(e.rgb)
}
,
r.handleChange = function(e) {
r.setState({
color: e.rgb
})
}
,
r.handleClick = function() {
r.setState({
displayColorPicker: !r.state.displayColorPicker
})
}
,
r.handleClose = function() {
r.setState({
displayColorPicker: !1
})
}
,
r.state = {
displayColorPicker: !1,
color: "object" == typeof e.color && e.color.r >= 0 ? e.color : ec.white,
position: "bottom"
},
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
var e, t = this.props.id, n = document.getElementById("color-widget-".concat(t));
n && n.offsetParent && (null === (e = n.offsetParent) || void 0 === e ? void 0 : e.scrollHeight) - 300 - n.offsetTop < 0 && this.setState({
position: "top"
})
}
}, {
key: "componentDidUpdate",
value: function(e, t, n) {
var r = this.props.color;
e.color !== this.props.color && this.setState({
color: "object" == typeof r && r.r >= 0 ? r : ec.white
})
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.id
, n = e.style
, r = this.state
, i = r.displayColorPicker
, o = r.color
, a = r.position
, l = {
color: {
width: "36px",
height: "14px",
borderRadius: "2px",
background: rH(o)
},
swatch: {
padding: "5px",
background: "#fff",
borderRadius: "1px",
boxShadow: "0 0 0 1px rgba(0,0,0,.1)",
display: "inline-block",
cursor: "pointer"
}
};
return Object(Ip.jsxs)("div", {
style: _t({
position: "relative"
}, n),
id: "color-widget-".concat(t),
children: [Object(Ip.jsx)("div", {
style: l.swatch,
onClick: this.handleClick,
children: Object(Ip.jsx)("div", {
style: l.color
})
}), i ? Object(Ip.jsxs)("div", {
style: "bottom" === a ? {
position: "absolute",
zIndex: 2,
right: 0,
top: "35px"
} : {
position: "absolute",
zIndex: 2,
right: 0,
bottom: "35px"
},
children: [Object(Ip.jsx)("div", {
style: {
position: "fixed",
top: 0,
right: 0,
bottom: 0,
left: 0
},
onClick: this.handleClose
}), Object(Ip.jsx)(fOe, {
color: this.state.color,
onChange: this.handleChange,
onChangeComplete: this.handleChangeComplete
})]
}) : null]
})
}
}]),
n
}(l.Component);
TOe.defaultProps = {
onChange: function(e) {
return console.log(e)
},
style: {}
};
var EOe = TOe
, IOe = 100
, NOe = 100
, zOe = 255
, DOe = 100
, LOe = /^[\da-f]{0,6}$/i
, ROe = /^\d{0,3}$/;
function POe(e, t, n) {
var r = []
, i = (n /= 100) * (t /= 100)
, o = e / 60
, a = i * (1 - Math.abs(o % 2 - 1))
, l = n - i;
switch (Math.floor(o)) {
case 0:
r = [i, a, 0];
break;
case 1:
r = [a, i, 0];
break;
case 2:
r = [0, i, a];
break;
case 3:
r = [0, a, i];
break;
case 4:
r = [a, 0, i];
break;
case 5:
r = [i, 0, a]
}
return {
r: Math.round(zOe * (r[0] + l)),
g: Math.round(zOe * (r[1] + l)),
b: Math.round(zOe * (r[2] + l))
}
}
function BOe(e) {
if (e) {
var t = e.match(/^rgb(a?)\(([\d., ]+)\)$/);
if (t) {
var n = !!t[1]
, r = n ? 4 : 3
, i = t[2].split(/ *, */).map(Number);
if (i.length === r)
return {
r: i[0],
g: i[1],
b: i[2],
a: n ? 100 * i[3] : DOe
}
}
}
}
function FOe(e, t, n) {
return void 0 === n && (n = 0),
e < n ? n : e > t ? t : e
}
function VOe(e, t, n) {
return [WOe(e), WOe(t), WOe(n)].join("")
}
function WOe(e) {
var t = (e = FOe(e, zOe)).toString(16);
return 1 === t.length ? "0" + t : t
}
function qOe(e, t, n, r, i) {
return r === DOe || "number" != typeof r ? "#" + i : "rgba(" + e + ", " + t + ", " + n + ", " + r / DOe + ")"
}
function HOe(e) {
var t = e.a
, n = void 0 === t ? DOe : t
, r = e.b
, i = e.g
, o = e.r
, a = function(e, t, n) {
var r = NaN
, i = Math.max(e, t, n)
, o = i - Math.min(e, t, n);
return 0 === o ? r = 0 : e === i ? r = (t - n) / o % 6 : t === i ? r = (n - e) / o + 2 : n === i && (r = (e - t) / o + 4),
(r = Math.round(60 * r)) < 0 && (r += 360),
{
h: r,
s: Math.round(100 * (0 === i ? 0 : o / i)),
v: Math.round(i / zOe * 100)
}
}(o, i, r)
, l = a.h
, s = a.s
, c = a.v
, u = VOe(o, i, r);
return {
a: n,
b: r,
g: i,
h: l,
hex: u,
r: o,
s: s,
str: qOe(o, i, r, n, u),
v: c,
t: DOe - n
}
}
function UOe(e) {
var t = function(e) {
if (e) {
var t = BOe(e) || function(e) {
if ("#" === e[0] && 7 === e.length && /^#[\da-fA-F]{6}$/.test(e))
return {
r: parseInt(e.slice(1, 3), 16),
g: parseInt(e.slice(3, 5), 16),
b: parseInt(e.slice(5, 7), 16),
a: DOe
}
}(e) || function(e) {
if ("#" === e[0] && 4 === e.length && /^#[\da-fA-F]{3}$/.test(e))
return {
r: parseInt(e[1] + e[1], 16),
g: parseInt(e[2] + e[2], 16),
b: parseInt(e[3] + e[3], 16),
a: DOe
}
}(e) || function(e) {
var t = e.match(/^hsl(a?)\(([\d., ]+)\)$/);
if (t) {
var n = !!t[1]
, r = n ? 4 : 3
, i = t[2].split(/ *, */).map(Number);
if (i.length === r) {
var o = function(e, t, n) {
var r = function(e, t, n) {
var r = n + (t *= (n < 50 ? n : 100 - n) / 100);
return {
h: e,
s: 0 === r ? 0 : 2 * t / r * 100,
v: r
}
}(e, t, n);
return POe(r.h, r.s, r.v)
}(i[0], i[1], i[2]);
return o.a = n ? 100 * i[3] : DOe,
o
}
}
}(e);
return t || function(e) {
if ("undefined" != typeof document) {
var t = document.createElement("div");
t.style.backgroundColor = e,
t.style.position = "absolute",
t.style.top = "-9999px",
t.style.left = "-9999px",
t.style.height = "1px",
t.style.width = "1px",
document.body.appendChild(t);
var n = getComputedStyle(t)
, r = n && n.backgroundColor;
if (document.body.removeChild(t),
"rgba(0, 0, 0, 0)" !== r && "transparent" !== r)
return BOe(r);
switch (e.trim()) {
case "transparent":
case "#0000":
case "#00000000":
return {
r: 0,
g: 0,
b: 0,
a: 0
}
}
}
}(e)
}
}(e);
if (t)
return Object(zn.a)(Object(zn.a)({}, HOe(t)), {
str: e
})
}
function XOe(e) {
return "#" + function(e, t, n) {
var r = POe(e, 100, 100);
return VOe(r.r, r.g, r.b)
}(e.h)
}
function GOe(e, t, n) {
var r = POe(e.h, t, n)
, i = r.r
, o = r.g
, a = r.b
, l = VOe(i, o, a);
return Object(zn.a)(Object(zn.a)({}, e), {
s: t,
v: n,
r: i,
g: o,
b: a,
hex: l,
str: qOe(i, o, a, e.a, l)
})
}
var KOe = Sg()
, YOe = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._disposables = [],
n._root = l.createRef(),
n._isAdjustingSaturation = !0,
n._descriptionId = lg("ColorRectangle-description"),
n._onKeyDown = function(e) {
var t = n.state.color
, r = t.s
, i = t.v
, o = e.shiftKey ? 10 : 1;
switch (e.which) {
case fp:
n._isAdjustingSaturation = !1,
i += o;
break;
case gp:
n._isAdjustingSaturation = !1,
i -= o;
break;
case hp:
n._isAdjustingSaturation = !0,
r -= o;
break;
case bp:
n._isAdjustingSaturation = !0,
r += o;
break;
default:
return
}
n._updateColor(e, GOe(t, FOe(r, IOe), FOe(i, NOe)))
}
,
n._onMouseDown = function(e) {
n._disposables.push(vy(window, "mousemove", n._onMouseMove, !0), vy(window, "mouseup", n._disposeListeners, !0)),
n._onMouseMove(e)
}
,
n._onMouseMove = function(e) {
if (n._root.current) {
var t = function(e, t, n) {
var r = n.getBoundingClientRect()
, i = (e.clientX - r.left) / r.width
, o = (e.clientY - r.top) / r.height;
return GOe(t, FOe(Math.round(i * IOe), IOe), FOe(Math.round(NOe - o * NOe), NOe))
}(e, n.state.color, n._root.current);
t && n._updateColor(e, t)
}
}
,
n._disposeListeners = function() {
n._disposables.forEach((function(e) {
return e()
}
)),
n._disposables = []
}
,
Kb(n),
n.state = {
color: t.color
},
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "color", {
get: function() {
return this.state.color
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidUpdate = function(e, t) {
e !== this.props && this.props.color && this.setState({
color: this.props.color
})
}
,
t.prototype.componentWillUnmount = function() {
this._disposeListeners()
}
,
t.prototype.render = function() {
var e = this.props
, t = e.minSize
, n = e.theme
, r = e.className
, i = e.styles
, o = e.ariaValueFormat
, a = e.ariaLabel
, s = e.ariaDescription
, c = this.state.color
, u = KOe(i, {
theme: n,
className: r,
minSize: t
})
, d = o.replace("{0}", String(c.s)).replace("{1}", String(c.v));
return l.createElement("div", {
ref: this._root,
tabIndex: 0,
className: u.root,
style: {
backgroundColor: XOe(c)
},
onMouseDown: this._onMouseDown,
onKeyDown: this._onKeyDown,
role: "slider",
"aria-valuetext": d,
"aria-valuenow": this._isAdjustingSaturation ? c.s : c.v,
"aria-valuemin": 0,
"aria-valuemax": NOe,
"aria-label": a,
"aria-describedby": this._descriptionId,
"data-is-focusable": !0
}, l.createElement("div", {
className: u.description,
id: this._descriptionId
}, s), l.createElement("div", {
className: u.light
}), l.createElement("div", {
className: u.dark
}), l.createElement("div", {
className: u.thumb,
style: {
left: c.s + "%",
top: NOe - c.v + "%",
backgroundColor: c.str
}
}))
}
,
t.prototype._updateColor = function(e, t) {
var n = this.props.onChange
, r = this.state.color;
t.s === r.s && t.v === r.v || (n && n(e, t),
e.defaultPrevented || (this.setState({
color: t
}),
e.preventDefault()))
}
,
t.defaultProps = {
minSize: 220,
ariaLabel: "Saturation and brightness",
ariaValueFormat: "Saturation {0} brightness {1}",
ariaDescription: "Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."
},
t
}(l.Component)
, QOe = jg(YOe, (function(e) {
var t, n, r = e.className, i = e.theme, o = e.minSize, a = i.palette, l = i.effects;
return {
root: ["ms-ColorPicker-colorRect", {
position: "relative",
marginBottom: 8,
border: "1px solid " + a.neutralLighter,
borderRadius: l.roundedCorner2,
minWidth: o,
minHeight: o,
outline: "none",
selectors: (t = {},
t[vi] = Object(zn.a)({}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t[".ms-Fabric--isFocusVisible &:focus"] = (n = {
outline: "1px solid " + a.neutralSecondary
},
n["" + vi] = {
outline: "2px solid CanvasText"
},
n),
t)
}, r],
light: ["ms-ColorPicker-light", {
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0,
background: "linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"
}],
dark: ["ms-ColorPicker-dark", {
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0,
background: "linear-gradient(to bottom, transparent 0, #000 100%)"
}],
thumb: ["ms-ColorPicker-thumb", {
position: "absolute",
width: 20,
height: 20,
background: "white",
border: "1px solid " + a.neutralSecondaryAlt,
borderRadius: "50%",
boxShadow: l.elevation8,
transform: "translate(-50%, -50%)",
selectors: {
":before": {
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0,
border: "2px solid " + a.white,
borderRadius: "50%",
boxSizing: "border-box",
content: '""'
}
}
}],
description: Ai
}
}
), void 0, {
scope: "ColorRectangle"
})
, JOe = Sg()
, ZOe = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._disposables = [],
n._root = l.createRef(),
n._onKeyDown = function(e) {
var t = n.value
, r = n._maxValue
, i = e.shiftKey ? 10 : 1;
switch (e.which) {
case hp:
t -= i;
break;
case bp:
t += i;
break;
case 36:
t = 0;
break;
case 35:
t = r;
break;
default:
return
}
n._updateValue(e, FOe(t, r))
}
,
n._onMouseDown = function(e) {
var t = ji(n);
t && n._disposables.push(vy(t, "mousemove", n._onMouseMove, !0), vy(t, "mouseup", n._disposeListeners, !0)),
n._onMouseMove(e)
}
,
n._onMouseMove = function(e) {
if (n._root.current) {
var t = n._maxValue
, r = n._root.current.getBoundingClientRect()
, i = (e.clientX - r.left) / r.width
, o = FOe(Math.round(i * t), t);
n._updateValue(e, o)
}
}
,
n._disposeListeners = function() {
n._disposables.forEach((function(e) {
return e()
}
)),
n._disposables = []
}
,
Kb(n),
"hue" === n._type || t.overlayColor || t.overlayStyle || wo("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),
n.state = {
currentValue: t.value || 0
},
n
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "value", {
get: function() {
return this.state.currentValue
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidUpdate = function(e, t) {
e !== this.props && void 0 !== this.props.value && this.setState({
currentValue: this.props.value
})
}
,
t.prototype.componentWillUnmount = function() {
this._disposeListeners()
}
,
t.prototype.render = function() {
var e = this._type
, t = this._maxValue
, n = this.props
, r = n.overlayStyle
, i = n.overlayColor
, o = n.theme
, a = n.className
, s = n.styles
, c = n.ariaLabel
, u = void 0 === c ? e : c
, d = this.value
, p = JOe(s, {
theme: o,
className: a,
type: e
})
, h = 100 * d / t;
return l.createElement("div", {
ref: this._root,
className: p.root,
tabIndex: 0,
onKeyDown: this._onKeyDown,
onMouseDown: this._onMouseDown,
role: "slider",
"aria-valuenow": d,
"aria-valuetext": String(d),
"aria-valuemin": 0,
"aria-valuemax": t,
"aria-label": u,
"data-is-focusable": !0
}, !(!i && !r) && l.createElement("div", {
className: p.sliderOverlay,
style: i ? {
background: "transparency" === e ? "linear-gradient(to right, #" + i + ", transparent)" : "linear-gradient(to right, transparent, #" + i + ")"
} : r
}), l.createElement("div", {
className: p.sliderThumb,
style: {
left: h + "%"
}
}))
}
,
Object.defineProperty(t.prototype, "_type", {
get: function() {
var e = this.props
, t = e.isAlpha
, n = e.type;
return void 0 === n ? t ? "alpha" : "hue" : n
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "_maxValue", {
get: function() {
return "hue" === this._type ? 359 : DOe
},
enumerable: !1,
configurable: !0
}),
t.prototype._updateValue = function(e, t) {
if (t !== this.value) {
var n = this.props.onChange;
n && n(e, t),
e.defaultPrevented || (this.setState({
currentValue: t
}),
e.preventDefault())
}
}
,
t.defaultProps = {
value: 0
},
t
}(l.Component)
, $Oe = {
background: "linear-gradient(" + ["to left", "red 0", "#f09 10%", "#cd00ff 20%", "#3200ff 30%", "#06f 40%", "#00fffd 50%", "#0f6 60%", "#35ff00 70%", "#cdff00 80%", "#f90 90%", "red 100%"].join(",") + ")"
}
, eje = {
backgroundImage: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"
}
, tje = jg(ZOe, (function(e) {
var t, n, r = e.theme, i = e.className, o = e.type, a = void 0 === o ? "hue" : o, l = e.isAlpha, s = void 0 === l ? "hue" !== a : l, c = r.palette, u = r.effects;
return {
root: ["ms-ColorPicker-slider", {
position: "relative",
height: 20,
marginBottom: 8,
border: "1px solid " + c.neutralLight,
borderRadius: u.roundedCorner2,
boxSizing: "border-box",
outline: "none",
forcedColorAdjust: "none",
selectors: (t = {},
t[".ms-Fabric--isFocusVisible &:focus"] = (n = {
outline: "1px solid " + c.neutralSecondary
},
n["" + vi] = {
outline: "2px solid CanvasText"
},
n),
t)
}, s ? eje : $Oe, i],
sliderOverlay: ["ms-ColorPicker-sliderOverlay", {
content: "",
position: "absolute",
left: 0,
right: 0,
top: 0,
bottom: 0
}],
sliderThumb: ["ms-ColorPicker-thumb", "is-slider", {
position: "absolute",
width: 20,
height: 20,
background: "white",
border: "1px solid " + c.neutralSecondaryAlt,
borderRadius: "50%",
boxShadow: u.elevation8,
transform: "translate(-50%, -50%)",
top: "50%",
forcedColorAdjust: "auto"
}]
}
}
), void 0, {
scope: "ColorSlider"
});
function nje(e, t) {
return Object(zn.a)(Object(zn.a)({}, e), {
a: t,
t: DOe - t,
str: qOe(e.r, e.g, e.b, t, e.hex)
})
}
function rje(e, t) {
var n = DOe - t;
return Object(zn.a)(Object(zn.a)({}, e), {
t: t,
a: n,
str: qOe(e.r, e.g, e.b, n, e.hex)
})
}
var ije = Sg()
, oje = ["hex", "r", "g", "b", "a", "t"]
, aje = {
hex: "hexError",
r: "redError",
g: "greenError",
b: "blueError",
a: "alphaError",
t: "transparencyError"
};
function lje(e) {
var t = e.color;
return "string" == typeof t ? UOe(t) : t
}
var sje, cje, uje, dje = jg(function(e) {
function t(n) {
var r = e.call(this, n) || this;
r._onSVChanged = function(e, t) {
r._updateColor(e, t)
}
,
r._onHChanged = function(e, t) {
r._updateColor(e, function(e, t) {
var n = POe(t, e.s, e.v)
, r = n.r
, i = n.g
, o = n.b
, a = VOe(r, i, o);
return Object(zn.a)(Object(zn.a)({}, e), {
h: t,
r: r,
g: i,
b: o,
hex: a,
str: qOe(r, i, o, e.a, a)
})
}(r.state.color, t))
}
,
r._onATChanged = function(e, t) {
var n = "transparency" === r.props.alphaType ? rje : nje;
r._updateColor(e, n(r.state.color, Math.round(t)))
}
,
r._onBlur = function(e) {
var t, n = r.state, i = n.color, o = n.editingColor;
if (o) {
var a, l = o.value, s = o.component, c = "hex" === s, u = "a" === s, d = "t" === s, p = c ? 3 : 1;
if (l.length >= p && (c || !isNaN(Number(l)))) {
var h = void 0;
h = c ? UOe("#" + (!(a = l) || a.length < 3 ? "ffffff" : a.length >= 6 ? a.substring(0, 6) : a.substring(0, 3))) : u || d ? (u ? nje : rje)(i, FOe(Number(l), DOe)) : HOe(function(e) {
return {
r: FOe(e.r, zOe),
g: FOe(e.g, zOe),
b: FOe(e.b, zOe),
a: "number" == typeof e.a ? FOe(e.a, DOe) : e.a
}
}(Object(zn.a)(Object(zn.a)({}, i), ((t = {})[s] = Number(l),
t)))),
r._updateColor(e, h)
} else
r.setState({
editingColor: void 0
})
}
}
,
Kb(r);
var i = n.strings;
i.hue && wo("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),
r.state = {
color: lje(n) || UOe("#ffffff")
},
r._textChangeHandlers = {};
for (var o = 0, a = oje; o < a.length; o++) {
var l = a[o];
r._textChangeHandlers[l] = r._onTextChange.bind(r, l)
}
var s = t.defaultProps.strings;
return r._textLabels = {
r: n.redLabel || i.red || s.red,
g: n.greenLabel || i.green || s.green,
b: n.blueLabel || i.blue || s.blue,
a: n.alphaLabel || i.alpha || s.alpha,
hex: n.hexLabel || i.hex || s.hex,
t: i.transparency || s.transparency
},
r._strings = Object(zn.a)(Object(zn.a)(Object(zn.a)({}, s), {
alphaAriaLabel: r._textLabels.a,
transparencyAriaLabel: r._textLabels.t
}), i),
r
}
return Object(zn.c)(t, e),
Object.defineProperty(t.prototype, "color", {
get: function() {
return this.state.color
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidUpdate = function(e, t) {
if (e !== this.props) {
var n = lje(this.props);
n && this._updateColor(void 0, n)
}
}
,
t.prototype.render = function() {
var e = this
, t = this.props
, n = this._strings
, r = this._textLabels
, i = t.theme
, o = t.className
, a = t.styles
, s = t.alphaType
, c = t.alphaSliderHidden
, u = void 0 === c ? "none" === s : c
, d = t.tooltipProps
, p = this.state.color
, h = "transparency" === s
, f = ["hex", "r", "g", "b", h ? "t" : "a"]
, b = h ? p.t : p.a
, g = h ? r.t : r.a
, m = ije(a, {
theme: i,
className: o,
alphaType: s
})
, v = [r.r, p.r, r.g, p.g, r.b, p.b];
u || "number" != typeof b || v.push(g, b + "%");
var y = n.rootAriaLabelFormat.replace("{0}", v.join(" "));
return l.createElement("div", {
className: m.root,
role: "group",
"aria-label": y
}, l.createElement("div", {
className: m.panel
}, l.createElement(QOe, {
color: p,
onChange: this._onSVChanged,
ariaLabel: n.svAriaLabel,
ariaDescription: n.svAriaDescription,
ariaValueFormat: n.svAriaValueFormat,
className: m.colorRectangle
}), l.createElement("div", {
className: m.flexContainer
}, l.createElement("div", {
className: m.flexSlider
}, l.createElement(tje, {
className: "is-hue",
type: "hue",
ariaLabel: n.hue || n.hueAriaLabel,
value: p.h,
onChange: this._onHChanged
}), !u && l.createElement(tje, {
className: "is-alpha",
type: s,
ariaLabel: h ? n.transparencyAriaLabel : n.alphaAriaLabel,
overlayColor: p.hex,
value: b,
onChange: this._onATChanged
})), t.showPreview && l.createElement("div", {
className: m.flexPreviewBox
}, l.createElement("div", {
className: m.colorSquare + " is-preview",
style: {
backgroundColor: p.str
}
}))), l.createElement("table", {
className: m.table,
role: "group",
cellPadding: "0",
cellSpacing: "0"
}, l.createElement("thead", null, l.createElement("tr", {
className: m.tableHeader
}, l.createElement("td", {
className: m.tableHexCell
}, r.hex), l.createElement("td", null, r.r), l.createElement("td", null, r.g), l.createElement("td", null, r.b), !u && l.createElement("td", {
className: m.tableAlphaCell
}, g))), l.createElement("tbody", null, l.createElement("tr", null, f.map((function(t) {
if (("a" === t || "t" === t) && u)
return null;
var n = e._getTooltipValue(t);
return l.createElement("td", {
key: t
}, l.createElement(BA, Object(zn.a)({
content: n,
directionalHint: 5,
role: "alert"
}, d), l.createElement(jk, {
className: m.input,
onChange: e._textChangeHandlers[t],
onBlur: e._onBlur,
value: e._getDisplayValue(t),
spellCheck: !1,
ariaLabel: r[t],
autoComplete: "off",
invalid: !!n
})))
}
)))))))
}
,
t.prototype._getDisplayValue = function(e) {
var t = this.state
, n = t.color
, r = t.editingColor;
return r && r.component === e ? r.value : "hex" === e ? n[e] || "" : "number" != typeof n[e] || isNaN(n[e]) ? "" : String(n[e])
}
,
t.prototype._getTooltipValue = function(e) {
var t = this.state.editingColor;
if (t && t.component === e) {
var n = t.value;
if (!("hex" === e && n.length >= 3 && n.length <= 6)) {
var r = aje[e];
return this._strings[r]
}
}
}
,
t.prototype._onTextChange = function(e, t, n) {
var r, i = this.state.color, o = "hex" === e, a = "a" === e, l = "t" === e;
if (n = (n || "").substr(0, o ? 6 : 3),
(o ? LOe : ROe).test(n))
if ("" !== n && (o ? 6 === n.length : a || l ? Number(n) <= DOe : Number(n) <= zOe))
if (String(i[e]) === n)
this.state.editingColor && this.setState({
editingColor: void 0
});
else {
var s = o ? UOe("#" + n) : l ? rje(i, Number(n)) : HOe(Object(zn.a)(Object(zn.a)({}, i), ((r = {})[e] = Number(n),
r)));
this._updateColor(t, s)
}
else
this.setState({
editingColor: {
component: e,
value: n
}
})
}
,
t.prototype._updateColor = function(e, t) {
if (t) {
var n = this.state
, r = n.color
, i = n.editingColor;
if (t.h !== r.h || t.str !== r.str || i) {
if (e && this.props.onChange && (this.props.onChange(e, t),
e.defaultPrevented))
return;
this.setState({
color: t,
editingColor: void 0
})
}
}
}
,
t.defaultProps = {
alphaType: "alpha",
strings: {
rootAriaLabelFormat: "Color picker, {0} selected.",
hex: "Hex",
red: "Red",
green: "Green",
blue: "Blue",
alpha: "Alpha",
transparency: "Transparency",
hueAriaLabel: "Hue",
svAriaLabel: YOe.defaultProps.ariaLabel,
svAriaValueFormat: YOe.defaultProps.ariaValueFormat,
svAriaDescription: YOe.defaultProps.ariaDescription,
hexError: "Hex values must be between 3 and 6 characters long",
alphaError: "Alpha must be between 0 and 100",
transparencyError: "Transparency must be between 0 and 100",
redError: "Red must be between 0 and 255",
greenError: "Green must be between 0 and 255",
blueError: "Blue must be between 0 and 255"
}
},
t
}(l.Component), (function(e) {
var t = e.className
, n = e.theme
, r = e.alphaType;
return {
root: ["ms-ColorPicker", n.fonts.medium, {
position: "relative",
maxWidth: 300
}, t],
panel: ["ms-ColorPicker-panel", {
padding: "16px"
}],
table: ["ms-ColorPicker-table", {
tableLayout: "fixed",
width: "100%",
selectors: {
"tbody td:last-of-type .ms-ColorPicker-input": {
paddingRight: 0
}
}
}],
tableHeader: [n.fonts.small, {
selectors: {
td: {
paddingBottom: 4
}
}
}],
tableHexCell: {
width: "25%"
},
tableAlphaCell: "transparency" === r && {
width: "22%"
},
colorSquare: ["ms-ColorPicker-colorSquare", {
width: 48,
height: 48,
margin: "0 0 0 8px",
border: "1px solid #c8c6c4"
}],
flexContainer: {
display: "flex"
},
flexSlider: {
flexGrow: "1"
},
flexPreviewBox: {
flexGrow: "0"
},
input: ["ms-ColorPicker-input", {
width: "100%",
border: "none",
boxSizing: "border-box",
height: 30,
selectors: {
"&.ms-TextField": {
paddingRight: 4
},
"& .ms-TextField-field": {
minWidth: "auto",
padding: 5,
textOverflow: "clip"
}
}
}]
}
}
), void 0, {
scope: "ColorPicker"
}), pje = Mu.b.div(sje || (sje = _u(["\n display: inline-flex;\n padding: 5px;\n background-color: white;\n box-shadow: rgb(0 0 0 / 10%) 0 0 0 1px;\n border-radius: 1px;\n margin-right: 1px;\n"]))), hje = Mu.b.span(cje || (cje = _u(["\n margin: 0;\n padding: 0;\n height: 14px;\n width: 36px;\n line-height: 14px;\n vertical-align: top;\n display: inline-block;\n cursor: pointer;\n background-color: #fff;\n"]))), fje = Object(Mu.b)(Bx)(uje || (uje = _u(["\n max-width: 300px;\n"]))), bje = UOe("#ffffff"), gje = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e))._onChange = function() {
var e = r.props.onChange
, t = r.state.color;
if (t) {
var n = {
r: t.r,
g: t.g,
b: t.b,
a: "number" == typeof t.a ? t.a / 100 : 1
};
r.props.color && rH(n) === rH(r.props.color) || t && e && e(n)
}
}
,
r._handleChange = function(e, t) {
r.setState({
color: t
})
}
,
r.state = {
isCalloutVisible: !1,
color: e.color ? UOe(rH(e.color)) : bje
},
r
}
return Object(At.a)(n, [{
key: "componentWillUnmount",
value: function() {
this._onChange()
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.id
, r = t.style
, i = this.state
, o = i.isCalloutVisible
, a = i.color
, l = "color-widget-".concat(n);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(pje, {
children: Object(Ip.jsx)(hje, {
className: l,
onClick: function() {
return e.setState({
isCalloutVisible: !o
})
},
style: _t(_t({}, r), {}, {
backgroundColor: a ? a.str : "#fff"
})
})
}), o && Object(Ip.jsx)(fje, {
role: "alertdialog",
gapSpace: 0,
target: ".".concat(l),
onDismiss: function() {
e.setState({
isCalloutVisible: !o
}),
e._onChange()
},
setInitialFocus: !0,
children: Object(Ip.jsx)(dje, {
color: a || bje,
onChange: this._handleChange,
alphaType: "alpha",
showPreview: !0,
strings: {
alphaAriaLabel: "Alpha slider: Use left and right arrow keys to change value, hold shift for a larger jump",
transparencyAriaLabel: "Transparency slider: Use left and right arrow keys to change value, hold shift for a larger jump",
hueAriaLabel: "Hue slider: Use left and right arrow keys to change value, hold shift for a larger jump"
}
})
})]
})
}
}]),
n
}(l.Component);
gje.defaultProps = {
onChange: function(e) {
return console.log(e)
},
style: {}
};
var mje, vje = gje, yje = Mu.b.div(mje || (mje = _u(["\n display: flex;\n align-items: center;\n"]))), xje = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t) {
var n = e.props
, r = n.darkModeKey
, i = n.onChange
, o = n.value
, a = n.defaultValue
, l = Il("object" == typeof o ? o : a, (function(e) {
e[r] = t
}
));
i && i(l)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.id
, n = e.label
, r = e.info
, i = e.darkModeKey
, o = e.defaultValue
, a = e.value
, l = e.props;
return Object(Ip.jsx)(Ip.Fragment, {
children: Object(Ip.jsxs)(yje, {
children: [Object(Ip.jsx)(qA, {
label: n,
info: r
}), l && "fluentui" === l.type ? Object(Ip.jsx)(vje, {
id: t,
color: Cu()("object" == typeof a ? a : o, [i]),
onChange: this._onChange
}) : Object(Ip.jsx)(EOe, {
id: t,
color: Cu()("object" == typeof a ? a : o, [i]),
onChange: this._onChange
})]
})
})
}
}]),
n
}(l.Component);
xje.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var Oje = va((function(e) {
return {
darkModeKey: Gc(e)
}
}
))(xje)
, jje = "SearchBox"
, kje = {
root: {
height: "auto"
},
icon: {
fontSize: "12px"
}
}
, wje = {
iconName: "Clear"
}
, Cje = {
ariaLabel: "Clear text"
}
, _je = Sg()
, Mje = l.forwardRef((function(e, t) {
var n = e.ariaLabel
, r = e.className
, i = e.defaultValue
, o = void 0 === i ? "" : i
, a = e.disabled
, s = e.underlined
, c = e.styles
, u = e.labelText
, d = e.placeholder
, p = void 0 === d ? u : d
, h = e.theme
, f = e.clearButtonProps
, b = void 0 === f ? Cje : f
, g = e.disableAnimation
, m = void 0 !== g && g
, v = e.showIcon
, y = void 0 !== v && v
, x = e.onClear
, O = e.onBlur
, j = e.onEscape
, k = e.onSearch
, w = e.onKeyDown
, C = e.iconProps
, _ = e.role
, M = e.onChange
, S = e.onChanged
, A = l.useState(!1)
, T = A[0]
, E = A[1]
, I = _C(e.value, o, l.useCallback((function(e) {
null == M || M(e, null == e ? void 0 : e.target.value),
null == S || S(null == e ? void 0 : e.target.value)
}
), [M, S]))
, N = I[0]
, z = I[1]
, D = String(N)
, L = l.useRef(null)
, R = l.useRef(null)
, P = Eg(L, t)
, B = gO(jje, e.id)
, F = b.onClick
, V = _je(c, {
theme: h,
className: r,
underlined: s,
hasFocus: T,
disabled: a,
hasInput: D.length > 0,
disableAnimation: m,
showIcon: y
})
, W = rp(e, qd, ["className", "placeholder", "onFocus", "onBlur", "value", "role"])
, q = l.useCallback((function(e) {
var t;
null == x || x(e),
e.defaultPrevented || (z(""),
null === (t = R.current) || void 0 === t || t.focus(),
e.stopPropagation(),
e.preventDefault())
}
), [x, z])
, H = l.useCallback((function(e) {
null == F || F(e),
e.defaultPrevented || q(e)
}
), [F, q])
, U = l.useCallback((function(e) {
E(!1),
null == O || O(e)
}
), [O])
, X = function(e) {
z(e.target.value, e)
};
return function(e, t, n) {
l.useImperativeHandle(e, (function() {
return {
focus: function() {
var e;
return null === (e = t.current) || void 0 === e ? void 0 : e.focus()
},
hasFocus: function() {
return n
}
}
}
), [t, n])
}(e.componentRef, R, T),
l.createElement("div", {
role: _,
ref: P,
className: V.root,
onFocusCapture: function(t) {
var n;
E(!0),
null === (n = e.onFocus) || void 0 === n || n.call(e, t)
}
}, l.createElement("div", {
className: V.iconContainer,
onClick: function() {
R.current && (R.current.focus(),
R.current.selectionStart = R.current.selectionEnd = 0)
},
"aria-hidden": !0
}, l.createElement(Pg, Object(zn.a)({
iconName: "Search"
}, C, {
className: V.icon
}))), l.createElement("input", Object(zn.a)({}, W, {
id: B,
className: V.field,
placeholder: p,
onChange: X,
onInput: X,
onBlur: U,
onKeyDown: function(e) {
switch (e.which) {
case dp:
null == j || j(e),
D && !e.defaultPrevented && q(e);
break;
case cp:
k && (k(D),
e.preventDefault(),
e.stopPropagation());
break;
default:
null == w || w(e),
e.defaultPrevented && e.stopPropagation()
}
},
value: D,
disabled: a,
role: "searchbox",
"aria-label": n,
ref: R
})), D.length > 0 && l.createElement("div", {
className: V.clearButton
}, l.createElement(Fj, Object(zn.a)({
onBlur: U,
styles: kje,
iconProps: wje
}, b, {
onClick: H
}))))
}
));
Mje.displayName = jje;
var Sje, Aje, Tje, Eje, Ije = {
root: "ms-SearchBox",
iconContainer: "ms-SearchBox-iconContainer",
icon: "ms-SearchBox-icon",
clearButton: "ms-SearchBox-clearButton",
field: "ms-SearchBox-field"
}, Nje = jg(Mje, (function(e) {
var t, n, r, i, o, a = e.theme, l = e.underlined, s = e.disabled, c = e.hasFocus, u = e.className, d = e.hasInput, p = e.disableAnimation, h = e.showIcon, f = a.palette, b = a.fonts, g = a.semanticColors, m = a.effects, v = Vi(Ije, a), y = {
color: g.inputPlaceholderText,
opacity: 1
}, x = f.neutralSecondary, O = f.neutralPrimary, j = f.neutralLighter, k = f.neutralLighter, w = f.neutralLighter;
return {
root: [v.root, b.medium, Oo, {
color: g.inputText,
backgroundColor: g.inputBackground,
display: "flex",
flexDirection: "row",
flexWrap: "nowrap",
alignItems: "stretch",
padding: "1px 0 1px 4px",
borderRadius: m.roundedCorner2,
border: "1px solid " + g.inputBorder,
height: 32,
selectors: (t = {},
t[vi] = {
borderColor: "WindowText"
},
t[":hover"] = {
borderColor: g.inputBorderHovered,
selectors: (n = {},
n[vi] = {
borderColor: "Highlight"
},
n)
},
t[":hover ." + v.iconContainer] = {
color: g.inputIconHovered
},
t)
}, !c && d && {
selectors: (r = {},
r[":hover ." + v.iconContainer] = {
width: 4
},
r[":hover ." + v.icon] = {
opacity: 0,
pointerEvents: "none"
},
r)
}, c && ["is-active", {
position: "relative"
}, Si(g.inputFocusBorderAlt, l ? 0 : m.roundedCorner2, l ? "borderBottom" : "border")], h && [{
selectors: (i = {},
i[":hover ." + v.iconContainer] = {
width: 32
},
i[":hover ." + v.icon] = {
opacity: 1
},
i)
}], s && ["is-disabled", {
borderColor: j,
backgroundColor: w,
pointerEvents: "none",
cursor: "default",
selectors: (o = {},
o[vi] = {
borderColor: "GrayText"
},
o)
}], l && ["is-underlined", {
borderWidth: "0 0 1px 0",
borderRadius: 0,
padding: "1px 0 1px 8px"
}], l && s && {
backgroundColor: "transparent"
}, d && "can-clear", u],
iconContainer: [v.iconContainer, {
display: "flex",
flexDirection: "column",
justifyContent: "center",
flexShrink: 0,
fontSize: 16,
width: 32,
textAlign: "center",
color: g.inputIcon,
cursor: "text"
}, c && {
width: 4
}, s && {
color: g.inputIconDisabled
}, !p && {
transition: "width " + ei
}, h && c && {
width: 32
}],
icon: [v.icon, {
opacity: 1
}, c && {
opacity: 0,
pointerEvents: "none"
}, !p && {
transition: "opacity " + ei + " 0s"
}, h && c && {
opacity: 1
}],
clearButton: [v.clearButton, {
display: "flex",
flexDirection: "row",
alignItems: "stretch",
cursor: "pointer",
flexBasis: "32px",
flexShrink: 0,
padding: 0,
margin: "-1px 0px",
selectors: {
"&:hover .ms-Button": {
backgroundColor: k
},
"&:hover .ms-Button-icon": {
color: O
},
".ms-Button": {
borderRadius: vp(a) ? "1px 0 0 1px" : "0 1px 1px 0"
},
".ms-Button-icon": {
color: x
}
}
}],
field: [v.field, Oo, ko(y), {
backgroundColor: "transparent",
border: "none",
outline: "none",
fontWeight: "inherit",
fontFamily: "inherit",
fontSize: "inherit",
color: g.inputText,
flex: "1 1 0px",
minWidth: "0px",
overflow: "hidden",
textOverflow: "ellipsis",
paddingBottom: .5,
selectors: {
"::-ms-clear": {
display: "none"
}
}
}, s && {
color: g.disabledText
}]
}
}
), void 0, {
scope: "SearchBox"
}), zje = n(303), Dje = n.n(zje), Lje = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).scrollParentRef = void 0,
e.state = {
fonts: fs()([], gs()(e.props.items, 0, 20)),
hasMore: e.props.items.length > 20
},
e._loadFunc = function(t) {
var n = e.props.items
, r = e.state.fonts
, i = 20 * t
, o = gs()(n, i, i + 20);
e.setState({
fonts: fs()(r, o),
hasMore: 20 === o.length
})
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidUpdate",
value: function(e, t, n) {
e.items.length === this.props.items.length && mh()(e.items, this.props.items) || this.setState({
fonts: fs()([], gs()(this.props.items, 0, 20)),
hasMore: this.props.items.length > 20
})
}
}, {
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.onChange
, r = t.valueFont
, i = t.height
, o = this.state
, a = o.fonts
, l = o.hasMore;
return Object(Ip.jsx)("div", {
dir: "ltr",
id: "select-fonts",
style: {
position: "relative",
height: i,
overflow: "auto"
},
ref: function(t) {
return e.scrollParentRef = t
},
children: Object(Ip.jsx)(Dje.a, {
pageStart: 0,
loadMore: this._loadFunc,
hasMore: l,
loader: Object(Ip.jsx)("div", {
className: "loader",
children: "Loading ..."
}, 0),
useWindow: !1,
getScrollParent: function() {
return e.scrollParentRef
},
children: a.map((function(e, t) {
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm3",
onClick: function() {
return n && n(e)
},
children: Object(Ip.jsx)(xH, {
item: e,
valueFont: r
})
}, t)
}
))
})
})
}
}]),
n
}(l.Component), Rje = Lje, Pje = n(304), Bje = n.n(Pje), Fje = ps.a.CancelToken, Vje = Mu.b.span(Sje || (Sje = _u(["\n display: -webkit-box;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n word-break: break-word;\n text-align: left;\n margin-right: 16px;\n"]))), Wje = Mu.b.div(Aje || (Aje = _u(["\n align-self: flex-start;\n flex-grow: 1;\n padding: 0 44px;\n display: flex;\n align-items: center;\n margin-bottom: 24px;\n"]))), qje = Mu.b.div(Tje || (Tje = _u(["\n display: flex;\n padding:20px;\n justify-content: flex-end;\n position:sticky;\n bottom:0;\n background:#fff;\n"]))), Hje = Object(Mu.b)(Ek)(Eje || (Eje = _u(["\n margin-left: 16px;\n"]))), Uje = ["100", "200", "300", "400", "regular", "500", "600", "700", "800", "900"], Xje = {
100: "Thin",
200: "ExtraLight",
300: "Light",
400: "Regular",
500: "Medium",
600: "SemiBold",
700: "Bold",
800: "ExtraBold",
900: "Black"
}, Gje = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).updateHeight = function() {
var e = window.innerHeight - 56 - 72;
r.setState({
height: e
})
}
,
r.source = Fje.source(),
r._fetData = Object(Mt.a)(Nt.a.mark((function e() {
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
yc(r.source.token).then((function(e) {
r.setState({
items: e,
fonts: gs()(e, 0, 20)
})
}
), (function(e) {
console.log(e)
}
));
case 1:
case "end":
return e.stop()
}
}
), e)
}
))),
r._openPanel = function() {
r.setState({
isOpen: !0
})
}
,
r._dismissPanel = function() {
var e = r.props.valueFont;
r.setState({
isOpen: !1,
value: e
})
}
,
r._onChangeFont = function(e) {
null != e && e.family && r.setState({
value: null == e ? void 0 : e.family
})
}
,
r._onChangeFontWeight = function(e, t, n) {
var i = r.props.onChange;
null != t && t.key && i && i({
fontWeight: null == t ? void 0 : t.key.toString()
})
}
,
r._saveChangeFont = function() {
var e = r.props
, t = e.onChange
, n = e.isFontWeight
, i = r.state.value;
i && (t && t(n ? {
fontFamily: i,
fontWeight: ""
} : i),
r.setState({
isOpen: !1
}))
}
,
r.state = {
isOpen: !1,
items: [],
search: "",
value: r.props.valueFont,
height: 768
},
window.addEventListener("resize", (function(e) {
r.updateHeight(),
e.preventDefault()
}
)),
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._fetData(),
this.updateHeight()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch fonts canceled by the user.")
}
}, {
key: "render",
value: function() {
var e, t, n = this, r = this.props, i = r.label, o = r.info, a = r.valueFontWeight, l = r.isFontWeight, s = this.state, c = s.isOpen, u = s.items, d = s.search, p = s.value, h = (null !== (e = null === (t = u.find((function(e) {
return e.family === p
}
))) || void 0 === t ? void 0 : t.variants) && void 0 !== e ? e : []).filter((function(e) {
return Uje.includes(e)
}
)).map((function(e) {
var t = "regular" === e ? "400" : e;
return {
key: t,
text: Xje[t]
}
}
));
return Object(Ip.jsxs)("div", {
id: "fonts-parent",
children: [Object(Ip.jsx)(qA, {
label: i,
info: o
}), Object(Ip.jsxs)(Tk, {
onClick: this._openPanel,
children: [Object(Ip.jsx)(Vje, {
children: null != p ? p : ""
}), " ", Object(Ip.jsx)(lp, {
iconName: "ChromeBackMirrored"
})]
}), l && h.length > 0 ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
height: 15
}
}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Font Weight"
}), Object(Ip.jsx)(pM, {
options: h,
placeholder: "Select Font Weight",
styles: dS,
selectedKey: a,
onChange: this._onChangeFontWeight
})]
}) : null, Object(Ip.jsx)(CC, {
isOpen: c,
onDismiss: this._dismissPanel,
type: Uw.smallFluid,
closeButtonAriaLabel: "Close",
headerText: "Select Font Family",
onRenderHeader: function() {
return Object(Ip.jsxs)(Wje, {
children: [Object(Ip.jsx)(Ep, {
variant: "xLarge",
className: "ms-Grid-col ms-sm6 ms-md4 ms-lg4",
children: "Select Font Family"
}), Object(Ip.jsx)(Nje, {
placeholder: "Search",
className: "ms-Grid-col ms-sm6 ms-md4 ms-lg4",
onSearch: function(e) {
return n.setState({
search: e
})
},
onChange: function(e, t) {
return n.setState({
search: t
})
}
})]
})
},
onRenderFooter: function() {
return Object(Ip.jsxs)(qje, {
children: [Object(Ip.jsx)(Hje, {
typebtn: "primary",
onClick: n._saveChangeFont,
children: " Save "
}), Object(Ip.jsx)(Hje, {
typebtn: "error",
onClick: n._dismissPanel,
children: "Cancel"
})]
})
},
children: Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(Rje, {
height: this.state.height,
valueFont: p,
items: Bje()(u, (function(e) {
var t;
return (null == e || null === (t = e.family) || void 0 === t ? void 0 : t.toLowerCase().indexOf(d ? d.toLowerCase() : "")) >= 0
}
)),
onChange: this._onChangeFont
})
})
})]
})
}
}]),
n
}(l.Component), Kje = Gje, Yje = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n, r) {
var i = e.props.onChange;
"string" != typeof (null == n ? void 0 : n.key) && "number" != typeof (null == n ? void 0 : n.key) || i && i(n.key)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.label
, r = t.value
, i = t.defaultValue
, o = t.props;
return Object(Ip.jsx)(pM, _t(_t({
onRenderLabel: function() {
return Object(Ip.jsx)(qA, {
label: n,
info: e.props.info
})
},
styles: dS,
label: n,
options: [],
placeholder: "Select"
}, o), {}, {
selectedKey: null == r ? i : r,
onChange: this._onChange
}))
}
}]),
n
}(l.Component);
Yje.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var Qje, Jje, Zje, $je = Yje, eke = Mu.b.a(Qje || (Qje = _u([""]))), tke = Object(Mu.b)(Bx)(Jje || (Jje = _u(["\n width: 300px;\n padding: 20px;\n"]))), nke = Mu.b.div(Zje || (Zje = _u(["\n height: 20px;\n"]))), rke = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
isCalloutVisible: !1
},
e._onChange = function(t, n) {
var r = t.target.name
, i = e.props
, o = i.onChange
, a = i.value;
o && o(_t(_t({}, a), {}, Object(wt.a)({}, r, Number(n) > 0 ? Number(n) : void 0)))
}
,
e._onChangeKey = function(t, n) {
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "none"
, i = e.props
, o = i.onChange
, a = i.value;
o && o(_t(_t({}, a), {}, Object(wt.a)({}, t, n || r)))
}
,
e._onChangeColor = function(t, n) {
var r = e.props
, i = r.onChange
, o = r.value;
i && i(_t(_t({}, o), {}, Object(wt.a)({}, t, n)))
}
,
e._onChangeFont = function(t) {
var n = e.props
, r = n.onChange
, i = n.value;
t && r && r(_t(_t({}, i), t))
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.id
, r = t.value
, i = this.state.isCalloutVisible
, o = "style-".concat(n);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(eke, {
className: o,
onClick: function() {
return e.setState({
isCalloutVisible: !i
})
},
children: Object(Ip.jsx)(lp, {
iconName: "Settings"
})
}), i && Object(Ip.jsxs)(tke, {
role: "alertdialog",
gapSpace: 0,
target: ".".concat(o),
onDismiss: function() {
return e.setState({
isCalloutVisible: !i
})
},
setInitialFocus: !0,
children: [Object(Ip.jsx)(Oje, {
id: "".concat(n, "-backgroundColor"),
label: "Background Color",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
value: null == r ? void 0 : r.backgroundColor,
onChange: function(t) {
return e._onChangeColor("backgroundColor", t)
},
onBlur: function() {},
props: {
type: "fluentui"
}
}), Object(Ip.jsx)(nke, {}), Object(Ip.jsx)(Oje, {
id: "".concat(n, "-color"),
label: "Color",
input: "color",
defaultValue: {
value: ec.black,
dark: ec.white
},
value: null == r ? void 0 : r.color,
onChange: function(t) {
return e._onChangeColor("color", t)
},
onBlur: function() {},
props: {
type: "fluentui"
}
}), Object(Ip.jsx)(nke, {}), Object(Ip.jsx)(Kje, {
valueFont: null == r ? void 0 : r.fontFamily,
valueFontWeight: null == r ? void 0 : r.fontWeight,
onChange: this._onChangeFont,
isFontWeight: !0
}), Object(Ip.jsx)(nke, {}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Font Size"
}), Object(Ip.jsx)(jk, {
name: "fontSize",
defaultValue: null != r && r.fontSize ? r.fontSize.toString() : "",
onChange: this._onChange,
styles: uS
}), Object(Ip.jsx)(nke, {}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Letter Spacing"
}), Object(Ip.jsx)(jk, {
name: "letterSpacing",
defaultValue: null != r && r.letterSpacing ? r.letterSpacing.toString() : "",
onChange: this._onChange,
styles: uS
}), Object(Ip.jsx)(nke, {}), Object(Ip.jsx)(ok, {
styles: sS,
children: "Line Height"
}), Object(Ip.jsx)(jk, {
name: "height",
defaultValue: null != r && r.height ? r.height.toString() : "",
onChange: this._onChange,
styles: uS
}), Object(Ip.jsx)(nke, {}), Object(Ip.jsx)($je, {
input: "textDecoration",
id: "textDecoration",
label: "Text Decoration",
onBlur: function() {},
onChange: function(t) {
return e._onChangeKey("textDecoration", t)
},
defaultValue: null != r && r.textDecoration ? r.textDecoration : "none",
props: {
options: oh
}
})]
})]
})
}
}]),
n
}(l.Component);
rke.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var ike, oke, ake = rke, lke = ["id", "value", "label", "isStyle", "isTranslate", "translate", "language", "languages", "defaultValue", "props"], ske = Mu.b.div(ike || (ike = _u(["\n display: flex;\n align-items: flex-start;\n word-break: break-word;\n color: ", ";\n .language-ms {\n display: inline-block;\n font-size: 12px;\n line-height: 15px;\n text-transform: uppercase;\n margin-left: 10px;\n padding: 5px 0px;\n }\n a {\n color: ", ";\n }\n"])), (function(e) {
return e.color
}
), (function(e) {
return e.color
}
)), cke = Mu.b.div(oke || (oke = _u(["\n padding: 5px 0px;\n cursor: pointer;\n margin-left: 10px;\n"]))), uke = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e._onChangeStyle = function(t) {
var n, r = e.props, i = r.onChange, o = r.value, a = r.defaultValue, l = null !== (n = null != o ? o : a) && void 0 !== n ? n : {};
i && i(_t(_t({}, l), {}, {
style: t
}))
}
,
e._onChangeText = function(t, n) {
var r, i = e.props, o = i.onChange, a = i.value, l = i.defaultValue, s = i.translate, c = i.language, u = i.isTranslate, d = null !== (r = null != a ? a : l) && void 0 !== r ? r : {};
o && o(_t(_t({}, d), {}, s && u ? Object(wt.a)({}, c, n) : {
text: n
}))
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o, a = yo(), l = this.props, s = l.id, c = l.value, u = l.label, d = l.isStyle, p = l.isTranslate, h = l.translate, f = l.language, b = (l.languages,
l.defaultValue), g = l.props, m = Su(l, lke);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(ske, {
color: a.palette.neutralPrimaryAlt,
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: Object(Ip.jsx)(qA, {
label: u,
info: this.props.info
})
}), p && Object(Ip.jsx)("span", {
className: "language-ms",
children: h ? f : null === (e = window) || void 0 === e || null === (t = e.app_builder) || void 0 === t ? void 0 : t.language
}), d && Object(Ip.jsx)(cke, {
children: Object(Ip.jsx)(ake, {
id: s,
value: null !== (n = null !== (r = null == c ? void 0 : c.style) && void 0 !== r ? r : null == b ? void 0 : b.style) && void 0 !== n ? n : {},
onChange: this._onChangeStyle
})
})]
}), Object(Ip.jsx)(jk, _t(_t(_t({}, g), m), {}, {
styles: uS,
value: h && p ? null !== (i = null == c ? void 0 : c[f]) && void 0 !== i ? i : "" : null !== (o = null == c ? void 0 : c.text) && void 0 !== o ? o : "",
onChange: this._onChangeText,
onBlur: this._onBlur
}))]
})
}
}]),
n
}(l.Component);
uke.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var dke = va((function(e) {
return {
language: Kc(e),
languages: Yc(e),
translate: Qc(e)
}
}
))(uke)
, pke = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.isStyle
, n = e.isTranslate;
return t || n ? Object(Ip.jsx)(dke, _t({}, this.props)) : Object(Ip.jsx)(Zfe, _t({}, this.props))
}
}]),
n
}(l.Component);
pke.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var hke = pke;
function fke(e, t) {
var n = Object(l.useState)((function() {
return {
inputs: t,
result: e()
}
}
))[0]
, r = Object(l.useRef)(!0)
, i = Object(l.useRef)(n)
, o = r.current || Boolean(t && i.current.inputs && function(e, t) {
if (e.length !== t.length)
return !1;
for (var n = 0; n < e.length; n++)
if (e[n] !== t[n])
return !1;
return !0
}(t, i.current.inputs)) ? i.current : {
inputs: t,
result: e()
};
return Object(l.useEffect)((function() {
r.current = !1,
i.current = o
}
), [o]),
o.result
}
var bke = fke
, gke = function(e, t) {
return fke((function() {
return e
}
), t)
}
, mke = function(e) {
var t = e.top
, n = e.right
, r = e.bottom
, i = e.left;
return {
top: t,
right: n,
bottom: r,
left: i,
width: n - i,
height: r - t,
x: i,
y: t,
center: {
x: (n + i) / 2,
y: (r + t) / 2
}
}
}
, vke = function(e, t) {
return {
top: e.top - t.top,
left: e.left - t.left,
bottom: e.bottom + t.bottom,
right: e.right + t.right
}
}
, yke = function(e, t) {
return {
top: e.top + t.top,
left: e.left + t.left,
bottom: e.bottom - t.bottom,
right: e.right - t.right
}
}
, xke = {
top: 0,
right: 0,
bottom: 0,
left: 0
}
, Oke = function(e) {
var t = e.borderBox
, n = e.margin
, r = void 0 === n ? xke : n
, i = e.border
, o = void 0 === i ? xke : i
, a = e.padding
, l = void 0 === a ? xke : a
, s = mke(vke(t, r))
, c = mke(yke(t, o))
, u = mke(yke(c, l));
return {
marginBox: s,
borderBox: mke(t),
paddingBox: c,
contentBox: u,
margin: r,
border: o,
padding: l
}
}
, jke = function(e) {
var t = e.slice(0, -2);
if ("px" !== e.slice(-2))
return 0;
var n = Number(t);
return isNaN(n) && Kt(!1),
n
}
, kke = function(e, t) {
var n, r, i = e.borderBox, o = e.border, a = e.margin, l = e.padding, s = (r = t,
{
top: (n = i).top + r.y,
left: n.left + r.x,
bottom: n.bottom + r.y,
right: n.right + r.x
});
return Oke({
borderBox: s,
border: o,
margin: a,
padding: l
})
}
, wke = function(e, t) {
return void 0 === t && (t = {
x: window.pageXOffset,
y: window.pageYOffset
}),
kke(e, t)
}
, Cke = function(e, t) {
var n = {
top: jke(t.marginTop),
right: jke(t.marginRight),
bottom: jke(t.marginBottom),
left: jke(t.marginLeft)
}
, r = {
top: jke(t.paddingTop),
right: jke(t.paddingRight),
bottom: jke(t.paddingBottom),
left: jke(t.paddingLeft)
}
, i = {
top: jke(t.borderTopWidth),
right: jke(t.borderRightWidth),
bottom: jke(t.borderBottomWidth),
left: jke(t.borderLeftWidth)
};
return Oke({
borderBox: e,
margin: n,
padding: r,
border: i
})
}
, _ke = function(e) {
var t = e.getBoundingClientRect()
, n = window.getComputedStyle(e);
return Cke(t, n)
}
, Mke = Number.isNaN || function(e) {
return "number" == typeof e && e != e
}
;
function Ske(e, t) {
if (e.length !== t.length)
return !1;
for (var n = 0; n < e.length; n++)
if (!((r = e[n]) === (i = t[n]) || Mke(r) && Mke(i)))
return !1;
var r, i;
return !0
}
var Ake = function(e, t) {
var n;
void 0 === t && (t = Ske);
var r, i = [], o = !1;
return function() {
for (var a = [], l = 0; l < arguments.length; l++)
a[l] = arguments[l];
return o && n === this && t(a, i) || (r = e.apply(this, a),
o = !0,
n = this,
i = a),
r
}
}
, Tke = function(e) {
var t = []
, n = null
, r = function() {
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
t = i,
n || (n = requestAnimationFrame((function() {
n = null,
e.apply(void 0, t)
}
)))
};
return r.cancel = function() {
n && (cancelAnimationFrame(n),
n = null)
}
,
r
};
function Eke(e, t) {}
function Ike() {}
function Nke(e, t, n) {
var r = t.map((function(t) {
var r = Vt({}, n, {}, t.options);
return e.addEventListener(t.eventName, t.fn, r),
function() {
e.removeEventListener(t.eventName, t.fn, r)
}
}
));
return function() {
r.forEach((function(e) {
e()
}
))
}
}
Eke.bind(null, "warn"),
Eke.bind(null, "error");
var zke = "Invariant failed";
function Dke(e) {
this.message = e
}
function Lke(e, t) {
if (!e)
throw new Dke(zke)
}
Dke.prototype.toString = function() {
return this.message
}
;
var Rke = function(e) {
function t() {
for (var t, n = arguments.length, r = new Array(n), i = 0; i < n; i++)
r[i] = arguments[i];
return (t = e.call.apply(e, [this].concat(r)) || this).callbacks = null,
t.unbind = Ike,
t.onWindowError = function(e) {
var n = t.getCallbacks();
n.isDragging() && n.tryAbort(),
e.error instanceof Dke && e.preventDefault()
}
,
t.getCallbacks = function() {
if (!t.callbacks)
throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");
return t.callbacks
}
,
t.setCallbacks = function(e) {
t.callbacks = e
}
,
t
}
Object(Ft.a)(t, e);
var n = t.prototype;
return n.componentDidMount = function() {
this.unbind = Nke(window, [{
eventName: "error",
fn: this.onWindowError
}])
}
,
n.componentDidCatch = function(e) {
if (!(e instanceof Dke))
throw e;
this.setState({})
}
,
n.componentWillUnmount = function() {
this.unbind()
}
,
n.render = function() {
return this.props.children(this.setCallbacks)
}
,
t
}(s.a.Component)
, Pke = function(e) {
return e + 1
}
, Bke = function(e, t) {
var n = e.droppableId === t.droppableId
, r = Pke(e.index)
, i = Pke(t.index);
return n ? "\n You have moved the item from position " + r + "\n to position " + i + "\n " : "\n You have moved the item from position " + r + "\n in list " + e.droppableId + "\n to list " + t.droppableId + "\n in position " + i + "\n "
}
, Fke = function(e, t, n) {
return t.droppableId === n.droppableId ? "\n The item " + e + "\n has been combined with " + n.draggableId : "\n The item " + e + "\n in list " + t.droppableId + "\n has been combined with " + n.draggableId + "\n in list " + n.droppableId + "\n "
}
, Vke = function(e) {
return "\n The item has returned to its starting position\n of " + Pke(e.index) + "\n"
}
, Wke = function(e) {
return "\n You have lifted an item in position " + Pke(e.source.index) + "\n"
}
, qke = function(e) {
var t = e.destination;
if (t)
return Bke(e.source, t);
var n = e.combine;
return n ? Fke(e.draggableId, e.source, n) : "You are over an area that cannot be dropped on"
}
, Hke = function(e) {
if ("CANCEL" === e.reason)
return "\n Movement cancelled.\n " + Vke(e.source) + "\n ";
var t = e.destination
, n = e.combine;
return t ? "\n You have dropped the item.\n " + Bke(e.source, t) + "\n " : n ? "\n You have dropped the item.\n " + Fke(e.draggableId, e.source, n) + "\n " : "\n The item has been dropped while not over a drop area.\n " + Vke(e.source) + "\n "
}
, Uke = {
x: 0,
y: 0
}
, Xke = function(e, t) {
return {
x: e.x + t.x,
y: e.y + t.y
}
}
, Gke = function(e, t) {
return {
x: e.x - t.x,
y: e.y - t.y
}
}
, Kke = function(e, t) {
return e.x === t.x && e.y === t.y
}
, Yke = function(e) {
return {
x: 0 !== e.x ? -e.x : 0,
y: 0 !== e.y ? -e.y : 0
}
}
, Qke = function(e, t, n) {
var r;
return void 0 === n && (n = 0),
(r = {})[e] = t,
r["x" === e ? "y" : "x"] = n,
r
}
, Jke = function(e, t) {
return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2))
}
, Zke = function(e, t) {
return Math.min.apply(Math, t.map((function(t) {
return Jke(e, t)
}
)))
}
, $ke = function(e) {
return function(t) {
return {
x: e(t.x),
y: e(t.y)
}
}
}
, ewe = function(e, t) {
return {
top: e.top + t.y,
left: e.left + t.x,
bottom: e.bottom + t.y,
right: e.right + t.x
}
}
, twe = function(e) {
return [{
x: e.left,
y: e.top
}, {
x: e.right,
y: e.top
}, {
x: e.left,
y: e.bottom
}, {
x: e.right,
y: e.bottom
}]
}
, nwe = function(e, t) {
return t && t.shouldClipSubject ? function(e, t) {
var n = mke({
top: Math.max(t.top, e.top),
right: Math.min(t.right, e.right),
bottom: Math.min(t.bottom, e.bottom),
left: Math.max(t.left, e.left)
});
return n.width <= 0 || n.height <= 0 ? null : n
}(t.pageMarginBox, e) : mke(e)
}
, rwe = function(e) {
var t = e.page
, n = e.withPlaceholder
, r = e.axis
, i = e.frame
, o = function(e, t) {
return t ? ewe(e, t.scroll.diff.displacement) : e
}(t.marginBox, i)
, a = function(e, t, n) {
var r;
return n && n.increasedBy ? Vt({}, e, ((r = {})[t.end] = e[t.end] + n.increasedBy[t.line],
r)) : e
}(o, r, n);
return {
page: t,
withPlaceholder: n,
active: nwe(a, i)
}
}
, iwe = function(e, t) {
e.frame || Lke(!1);
var n = e.frame
, r = Gke(t, n.scroll.initial)
, i = Yke(r)
, o = Vt({}, n, {
scroll: {
initial: n.scroll.initial,
current: t,
diff: {
value: r,
displacement: i
},
max: n.scroll.max
}
});
return Vt({}, e, {
frame: o,
subject: rwe({
page: e.subject.page,
withPlaceholder: e.subject.withPlaceholder,
axis: e.axis,
frame: o
})
})
};
function owe(e) {
return Object.values ? Object.values(e) : Object.keys(e).map((function(t) {
return e[t]
}
))
}
function awe(e, t) {
if (e.findIndex)
return e.findIndex(t);
for (var n = 0; n < e.length; n++)
if (t(e[n]))
return n;
return -1
}
function lwe(e, t) {
if (e.find)
return e.find(t);
var n = awe(e, t);
return -1 !== n ? e[n] : void 0
}
function swe(e) {
return Array.prototype.slice.call(e)
}
var cwe = Ake((function(e) {
return e.reduce((function(e, t) {
return e[t.descriptor.id] = t,
e
}
), {})
}
))
, uwe = Ake((function(e) {
return e.reduce((function(e, t) {
return e[t.descriptor.id] = t,
e
}
), {})
}
))
, dwe = Ake((function(e) {
return owe(e)
}
))
, pwe = Ake((function(e) {
return owe(e)
}
))
, hwe = Ake((function(e, t) {
return pwe(t).filter((function(t) {
return e === t.descriptor.droppableId
}
)).sort((function(e, t) {
return e.descriptor.index - t.descriptor.index
}
))
}
));
function fwe(e) {
return e.at && "REORDER" === e.at.type ? e.at.destination : null
}
function bwe(e) {
return e.at && "COMBINE" === e.at.type ? e.at.combine : null
}
var gwe = Ake((function(e, t) {
return t.filter((function(t) {
return t.descriptor.id !== e.descriptor.id
}
))
}
))
, mwe = function(e, t) {
return e.descriptor.droppableId === t.descriptor.id
}
, vwe = {
point: Uke,
value: 0
}
, ywe = {
invisible: {},
visible: {},
all: []
}
, xwe = {
displaced: ywe,
displacedBy: vwe,
at: null
}
, Owe = function(e, t) {
return function(n) {
return e <= n && n <= t
}
}
, jwe = function(e) {
var t = Owe(e.top, e.bottom)
, n = Owe(e.left, e.right);
return function(r) {
if (t(r.top) && t(r.bottom) && n(r.left) && n(r.right))
return !0;
var i = t(r.top) || t(r.bottom)
, o = n(r.left) || n(r.right);
if (i && o)
return !0;
var a = r.top < e.top && r.bottom > e.bottom
, l = r.left < e.left && r.right > e.right;
return !(!a || !l) || a && o || l && i
}
}
, kwe = function(e) {
var t = Owe(e.top, e.bottom)
, n = Owe(e.left, e.right);
return function(e) {
return t(e.top) && t(e.bottom) && n(e.left) && n(e.right)
}
}
, wwe = {
direction: "vertical",
line: "y",
crossAxisLine: "x",
start: "top",
end: "bottom",
size: "height",
crossAxisStart: "left",
crossAxisEnd: "right",
crossAxisSize: "width"
}
, Cwe = {
direction: "horizontal",
line: "x",
crossAxisLine: "y",
start: "left",
end: "right",
size: "width",
crossAxisStart: "top",
crossAxisEnd: "bottom",
crossAxisSize: "height"
}
, _we = function(e) {
var t = e.target
, n = e.destination
, r = e.viewport
, i = e.withDroppableDisplacement
, o = e.isVisibleThroughFrameFn
, a = i ? function(e, t) {
var n = t.frame ? t.frame.scroll.diff.displacement : Uke;
return ewe(e, n)
}(t, n) : t;
return function(e, t, n) {
return !!t.subject.active && n(t.subject.active)(e)
}(a, n, o) && function(e, t, n) {
return n(t)(e)
}(a, r, o)
}
, Mwe = function(e) {
return _we(Vt({}, e, {
isVisibleThroughFrameFn: kwe
}))
};
function Swe(e) {
var t = e.afterDragging
, n = e.destination
, r = e.displacedBy
, i = e.viewport
, o = e.forceShouldAnimate
, a = e.last;
return t.reduce((function(e, t) {
var l = function(e, t) {
var n = e.page.marginBox
, r = {
top: t.point.y,
right: 0,
bottom: 0,
left: t.point.x
};
return mke(vke(n, r))
}(t, r)
, s = t.descriptor.id;
if (e.all.push(s),
!_we(Vt({}, {
target: l,
destination: n,
viewport: i,
withDroppableDisplacement: !0
}, {
isVisibleThroughFrameFn: jwe
})))
return e.invisible[t.descriptor.id] = !0,
e;
var c = function(e, t, n) {
if ("boolean" == typeof n)
return n;
if (!t)
return !0;
var r = t.invisible
, i = t.visible;
if (r[e])
return !1;
var o = i[e];
return !o || o.shouldAnimate
}(s, a, o)
, u = {
draggableId: s,
shouldAnimate: c
};
return e.visible[s] = u,
e
}
), {
all: [],
visible: {},
invisible: {}
})
}
function Awe(e) {
var t = e.insideDestination
, n = e.inHomeList
, r = e.displacedBy
, i = e.destination
, o = function(e, t) {
if (!e.length)
return 0;
var n = e[e.length - 1].descriptor.index;
return t.inHomeList ? n : n + 1
}(t, {
inHomeList: n
});
return {
displaced: ywe,
displacedBy: r,
at: {
type: "REORDER",
destination: {
droppableId: i.descriptor.id,
index: o
}
}
}
}
function Twe(e) {
var t = e.draggable
, n = e.insideDestination
, r = e.destination
, i = e.viewport
, o = e.displacedBy
, a = e.last
, l = e.index
, s = e.forceShouldAnimate
, c = mwe(t, r);
if (null == l)
return Awe({
insideDestination: n,
inHomeList: c,
displacedBy: o,
destination: r
});
var u = lwe(n, (function(e) {
return e.descriptor.index === l
}
));
if (!u)
return Awe({
insideDestination: n,
inHomeList: c,
displacedBy: o,
destination: r
});
var d = gwe(t, n)
, p = n.indexOf(u);
return {
displaced: Swe({
afterDragging: d.slice(p),
destination: r,
displacedBy: o,
last: a,
viewport: i.frame,
forceShouldAnimate: s
}),
displacedBy: o,
at: {
type: "REORDER",
destination: {
droppableId: r.descriptor.id,
index: l
}
}
}
}
function Ewe(e, t) {
return Boolean(t.effected[e])
}
var Iwe = function(e, t) {
return t.margin[e.start] + t.borderBox[e.size] / 2
}
, Nwe = function(e, t, n) {
return t[e.crossAxisStart] + n.margin[e.crossAxisStart] + n.borderBox[e.crossAxisSize] / 2
}
, zwe = function(e) {
var t = e.axis
, n = e.moveRelativeTo
, r = e.isMoving;
return Qke(t.line, n.marginBox[t.end] + Iwe(t, r), Nwe(t, n.marginBox, r))
}
, Dwe = function(e) {
var t = e.axis
, n = e.moveRelativeTo
, r = e.isMoving;
return Qke(t.line, n.marginBox[t.start] - function(e, t) {
return t.margin[e.end] + t.borderBox[e.size] / 2
}(t, r), Nwe(t, n.marginBox, r))
}
, Lwe = function(e, t) {
var n = e.frame;
return n ? Xke(t, n.scroll.diff.displacement) : t
}
, Rwe = function(e) {
var t = function(e) {
var t = e.impact
, n = e.draggable
, r = e.droppable
, i = e.draggables
, o = e.afterCritical
, a = n.page.borderBox.center
, l = t.at;
return r && l ? "REORDER" === l.type ? function(e) {
var t = e.impact
, n = e.draggable
, r = e.draggables
, i = e.droppable
, o = e.afterCritical
, a = hwe(i.descriptor.id, r)
, l = n.page
, s = i.axis;
if (!a.length)
return function(e) {
var t = e.axis
, n = e.moveInto
, r = e.isMoving;
return Qke(t.line, n.contentBox[t.start] + Iwe(t, r), Nwe(t, n.contentBox, r))
}({
axis: s,
moveInto: i.page,
isMoving: l
});
var c = t.displaced
, u = t.displacedBy
, d = c.all[0];
if (d) {
var p = r[d];
if (Ewe(d, o))
return Dwe({
axis: s,
moveRelativeTo: p.page,
isMoving: l
});
var h = kke(p.page, u.point);
return Dwe({
axis: s,
moveRelativeTo: h,
isMoving: l
})
}
var f = a[a.length - 1];
if (f.descriptor.id === n.descriptor.id)
return l.borderBox.center;
if (Ewe(f.descriptor.id, o)) {
var b = kke(f.page, Yke(o.displacedBy.point));
return zwe({
axis: s,
moveRelativeTo: b,
isMoving: l
})
}
return zwe({
axis: s,
moveRelativeTo: f.page,
isMoving: l
})
}({
impact: t,
draggable: n,
draggables: i,
droppable: r,
afterCritical: o
}) : function(e) {
var t = e.afterCritical
, n = e.impact
, r = e.draggables
, i = bwe(n);
i || Lke(!1);
var o = i.draggableId
, a = r[o].page.borderBox.center
, l = function(e) {
var t = e.displaced
, n = e.afterCritical
, r = e.combineWith
, i = e.displacedBy
, o = Boolean(t.visible[r] || t.invisible[r]);
return Ewe(r, n) ? o ? Uke : Yke(i.point) : o ? i.point : Uke
}({
displaced: n.displaced,
afterCritical: t,
combineWith: o,
displacedBy: n.displacedBy
});
return Xke(a, l)
}({
impact: t,
draggables: i,
afterCritical: o
}) : a
}(e)
, n = e.droppable;
return n ? Lwe(n, t) : t
}
, Pwe = function(e, t) {
var n = Gke(t, e.scroll.initial)
, r = Yke(n);
return {
frame: mke({
top: t.y,
bottom: t.y + e.frame.height,
left: t.x,
right: t.x + e.frame.width
}),
scroll: {
initial: e.scroll.initial,
max: e.scroll.max,
current: t,
diff: {
value: n,
displacement: r
}
}
}
};
function Bwe(e, t) {
return e.map((function(e) {
return t[e]
}
))
}
var Fwe = function(e) {
var t = e.pageBorderBoxCenter
, n = e.draggable
, r = function(e, t) {
return Xke(e.scroll.diff.displacement, t)
}(e.viewport, t)
, i = Gke(r, n.page.borderBox.center);
return Xke(n.client.borderBox.center, i)
}
, Vwe = function(e) {
var t = e.draggable
, n = e.destination
, r = e.newPageBorderBoxCenter
, i = e.viewport
, o = e.withDroppableDisplacement
, a = e.onlyOnMainAxis
, l = void 0 !== a && a
, s = Gke(r, t.page.borderBox.center)
, c = {
target: ewe(t.page.borderBox, s),
destination: n,
withDroppableDisplacement: o,
viewport: i
};
return l ? function(e) {
return _we(Vt({}, e, {
isVisibleThroughFrameFn: (t = e.destination.axis,
function(e) {
var n = Owe(e.top, e.bottom)
, r = Owe(e.left, e.right);
return function(e) {
return t === wwe ? n(e.top) && n(e.bottom) : r(e.left) && r(e.right)
}
}
)
}));
var t
}(c) : Mwe(c)
}
, Wwe = function(e) {
var t = e.isMovingForward
, n = e.draggable
, r = e.destination
, i = e.draggables
, o = e.previousImpact
, a = e.viewport
, l = e.previousPageBorderBoxCenter
, s = e.previousClientSelection
, c = e.afterCritical;
if (!r.isEnabled)
return null;
var u = hwe(r.descriptor.id, i)
, d = mwe(n, r)
, p = function(e) {
var t = e.isMovingForward
, n = e.draggable
, r = e.destination
, i = e.insideDestination
, o = e.previousImpact;
if (!r.isCombineEnabled)
return null;
if (!fwe(o))
return null;
function a(e) {
var t = {
type: "COMBINE",
combine: {
draggableId: e,
droppableId: r.descriptor.id
}
};
return Vt({}, o, {
at: t
})
}
var l = o.displaced.all
, s = l.length ? l[0] : null;
if (t)
return s ? a(s) : null;
var c = gwe(n, i);
if (!s)
return c.length ? a(c[c.length - 1].descriptor.id) : null;
var u = awe(c, (function(e) {
return e.descriptor.id === s
}
));
-1 === u && Lke(!1);
var d = u - 1;
return d < 0 ? null : a(c[d].descriptor.id)
}({
isMovingForward: t,
draggable: n,
destination: r,
insideDestination: u,
previousImpact: o
}) || function(e) {
var t = e.isMovingForward
, n = e.isInHomeList
, r = e.draggable
, i = e.draggables
, o = e.destination
, a = e.insideDestination
, l = e.previousImpact
, s = e.viewport
, c = e.afterCritical
, u = l.at;
if (u || Lke(!1),
"REORDER" === u.type) {
var d = function(e) {
var t = e.isMovingForward
, n = e.isInHomeList
, r = e.insideDestination
, i = e.location;
if (!r.length)
return null;
var o = i.index
, a = t ? o + 1 : o - 1
, l = r[0].descriptor.index
, s = r[r.length - 1].descriptor.index;
return a < l || a > (n ? s : s + 1) ? null : a
}({
isMovingForward: t,
isInHomeList: n,
location: u.destination,
insideDestination: a
});
return null == d ? null : Twe({
draggable: r,
insideDestination: a,
destination: o,
viewport: s,
last: l.displaced,
displacedBy: l.displacedBy,
index: d
})
}
var p = function(e) {
var t = e.isMovingForward
, n = e.draggables
, r = e.combine
, i = e.afterCritical;
if (!e.destination.isCombineEnabled)
return null;
var o = r.draggableId
, a = n[o].descriptor.index;
return Ewe(o, i) ? t ? a : a - 1 : t ? a + 1 : a
}({
isMovingForward: t,
destination: o,
displaced: l.displaced,
draggables: i,
combine: u.combine,
afterCritical: c
});
return null == p ? null : Twe({
draggable: r,
insideDestination: a,
destination: o,
viewport: s,
last: l.displaced,
displacedBy: l.displacedBy,
index: p
})
}({
isMovingForward: t,
isInHomeList: d,
draggable: n,
draggables: i,
destination: r,
insideDestination: u,
previousImpact: o,
viewport: a,
afterCritical: c
});
if (!p)
return null;
var h = Rwe({
impact: p,
draggable: n,
droppable: r,
draggables: i,
afterCritical: c
});
if (Vwe({
draggable: n,
destination: r,
newPageBorderBoxCenter: h,
viewport: a.frame,
withDroppableDisplacement: !1,
onlyOnMainAxis: !0
}))
return {
clientSelection: Fwe({
pageBorderBoxCenter: h,
draggable: n,
viewport: a
}),
impact: p,
scrollJumpRequest: null
};
var f = Gke(h, l)
, b = function(e) {
var t = e.impact
, n = e.viewport
, r = e.destination
, i = e.draggables
, o = e.maxScrollChange
, a = Pwe(n, Xke(n.scroll.current, o))
, l = r.frame ? iwe(r, Xke(r.frame.scroll.current, o)) : r
, s = t.displaced
, c = Swe({
afterDragging: Bwe(s.all, i),
destination: r,
displacedBy: t.displacedBy,
viewport: a.frame,
last: s,
forceShouldAnimate: !1
})
, u = Swe({
afterDragging: Bwe(s.all, i),
destination: l,
displacedBy: t.displacedBy,
viewport: n.frame,
last: s,
forceShouldAnimate: !1
})
, d = {}
, p = {}
, h = [s, c, u];
return s.all.forEach((function(e) {
var t = function(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n].visible[e];
if (r)
return r
}
return null
}(e, h);
t ? p[e] = t : d[e] = !0
}
)),
Vt({}, t, {
displaced: {
all: s.all,
invisible: d,
visible: p
}
})
}({
impact: p,
viewport: a,
destination: r,
draggables: i,
maxScrollChange: f
});
return {
clientSelection: s,
impact: b,
scrollJumpRequest: f
}
}
, qwe = function(e) {
var t = e.subject.active;
return t || Lke(!1),
t
}
, Hwe = function(e, t) {
var n = e.page.borderBox.center;
return Ewe(e.descriptor.id, t) ? Gke(n, t.displacedBy.point) : n
}
, Uwe = function(e, t) {
var n = e.page.borderBox;
return Ewe(e.descriptor.id, t) ? ewe(n, Yke(t.displacedBy.point)) : n
}
, Xwe = Ake((function(e, t) {
var n = t[e.line];
return {
value: n,
point: Qke(e.line, n)
}
}
))
, Gwe = function(e, t) {
return Vt({}, e, {
scroll: Vt({}, e.scroll, {
max: t
})
})
}
, Kwe = function(e, t, n) {
var r = e.frame;
mwe(t, e) && Lke(!1),
e.subject.withPlaceholder && Lke(!1);
var i = Xwe(e.axis, t.displaceBy).point
, o = function(e, t, n) {
var r = e.axis;
if ("virtual" === e.descriptor.mode)
return Qke(r.line, t[r.line]);
var i = e.subject.page.contentBox[r.size]
, o = hwe(e.descriptor.id, n).reduce((function(e, t) {
return e + t.client.marginBox[r.size]
}
), 0) + t[r.line] - i;
return o <= 0 ? null : Qke(r.line, o)
}(e, i, n)
, a = {
placeholderSize: i,
increasedBy: o,
oldFrameMaxScroll: e.frame ? e.frame.scroll.max : null
};
if (!r)
return Vt({}, e, {
subject: rwe({
page: e.subject.page,
withPlaceholder: a,
axis: e.axis,
frame: e.frame
})
});
var l = o ? Xke(r.scroll.max, o) : r.scroll.max
, s = Gwe(r, l);
return Vt({}, e, {
subject: rwe({
page: e.subject.page,
withPlaceholder: a,
axis: e.axis,
frame: s
}),
frame: s
})
}
, Ywe = function(e) {
var t = e.at;
return t ? "REORDER" === t.type ? t.destination.droppableId : t.combine.droppableId : null
}
, Qwe = function(e) {
var t = e.state
, n = e.type
, r = function(e, t) {
var n = Ywe(e);
return n ? t[n] : null
}(t.impact, t.dimensions.droppables)
, i = Boolean(r)
, o = t.dimensions.droppables[t.critical.droppable.id]
, a = r || o
, l = a.axis.direction
, s = "vertical" === l && ("MOVE_UP" === n || "MOVE_DOWN" === n) || "horizontal" === l && ("MOVE_LEFT" === n || "MOVE_RIGHT" === n);
if (s && !i)
return null;
var c = "MOVE_DOWN" === n || "MOVE_RIGHT" === n
, u = t.dimensions.draggables[t.critical.draggable.id]
, d = t.current.page.borderBoxCenter
, p = t.dimensions
, h = p.draggables
, f = p.droppables;
return s ? Wwe({
isMovingForward: c,
previousPageBorderBoxCenter: d,
draggable: u,
destination: a,
draggables: h,
viewport: t.viewport,
previousClientSelection: t.current.client.selection,
previousImpact: t.impact,
afterCritical: t.afterCritical
}) : function(e) {
var t = e.isMovingForward
, n = e.previousPageBorderBoxCenter
, r = e.draggable
, i = e.isOver
, o = e.draggables
, a = e.droppables
, l = e.viewport
, s = e.afterCritical
, c = function(e) {
var t = e.isMovingForward
, n = e.pageBorderBoxCenter
, r = e.source
, i = e.droppables
, o = e.viewport
, a = r.subject.active;
if (!a)
return null;
var l = r.axis
, s = Owe(a[l.start], a[l.end])
, c = dwe(i).filter((function(e) {
return e !== r
}
)).filter((function(e) {
return e.isEnabled
}
)).filter((function(e) {
return Boolean(e.subject.active)
}
)).filter((function(e) {
return jwe(o.frame)(qwe(e))
}
)).filter((function(e) {
var n = qwe(e);
return t ? a[l.crossAxisEnd] < n[l.crossAxisEnd] : n[l.crossAxisStart] < a[l.crossAxisStart]
}
)).filter((function(e) {
var t = qwe(e)
, n = Owe(t[l.start], t[l.end]);
return s(t[l.start]) || s(t[l.end]) || n(a[l.start]) || n(a[l.end])
}
)).sort((function(e, n) {
var r = qwe(e)[l.crossAxisStart]
, i = qwe(n)[l.crossAxisStart];
return t ? r - i : i - r
}
)).filter((function(e, t, n) {
return qwe(e)[l.crossAxisStart] === qwe(n[0])[l.crossAxisStart]
}
));
if (!c.length)
return null;
if (1 === c.length)
return c[0];
var u = c.filter((function(e) {
return Owe(qwe(e)[l.start], qwe(e)[l.end])(n[l.line])
}
));
return 1 === u.length ? u[0] : u.length > 1 ? u.sort((function(e, t) {
return qwe(e)[l.start] - qwe(t)[l.start]
}
))[0] : c.sort((function(e, t) {
var r = Zke(n, twe(qwe(e)))
, i = Zke(n, twe(qwe(t)));
return r !== i ? r - i : qwe(e)[l.start] - qwe(t)[l.start]
}
))[0]
}({
isMovingForward: t,
pageBorderBoxCenter: n,
source: i,
droppables: a,
viewport: l
});
if (!c)
return null;
var u = hwe(c.descriptor.id, o)
, d = function(e) {
var t = e.pageBorderBoxCenter
, n = e.viewport
, r = e.destination
, i = e.afterCritical;
return e.insideDestination.filter((function(e) {
return Mwe({
target: Uwe(e, i),
destination: r,
viewport: n.frame,
withDroppableDisplacement: !0
})
}
)).sort((function(e, n) {
var o = Jke(t, Lwe(r, Hwe(e, i)))
, a = Jke(t, Lwe(r, Hwe(n, i)));
return o < a ? -1 : a < o ? 1 : e.descriptor.index - n.descriptor.index
}
))[0] || null
}({
pageBorderBoxCenter: n,
viewport: l,
destination: c,
insideDestination: u,
afterCritical: s
})
, p = function(e) {
var t = e.previousPageBorderBoxCenter
, n = e.moveRelativeTo
, r = e.insideDestination
, i = e.draggable
, o = e.draggables
, a = e.destination
, l = e.viewport
, s = e.afterCritical;
if (!n) {
if (r.length)
return null;
var c = {
displaced: ywe,
displacedBy: vwe,
at: {
type: "REORDER",
destination: {
droppableId: a.descriptor.id,
index: 0
}
}
}
, u = Rwe({
impact: c,
draggable: i,
droppable: a,
draggables: o,
afterCritical: s
})
, d = mwe(i, a) ? a : Kwe(a, i, o);
return Vwe({
draggable: i,
destination: d,
newPageBorderBoxCenter: u,
viewport: l.frame,
withDroppableDisplacement: !1,
onlyOnMainAxis: !0
}) ? c : null
}
var p = Boolean(t[a.axis.line] <= n.page.borderBox.center[a.axis.line])
, h = function() {
var e = n.descriptor.index;
return n.descriptor.id === i.descriptor.id || p ? e : e + 1
}()
, f = Xwe(a.axis, i.displaceBy);
return Twe({
draggable: i,
insideDestination: r,
destination: a,
viewport: l,
displacedBy: f,
last: ywe,
index: h
})
}({
previousPageBorderBoxCenter: n,
destination: c,
draggable: r,
draggables: o,
moveRelativeTo: d,
insideDestination: u,
viewport: l,
afterCritical: s
});
if (!p)
return null;
var h = Rwe({
impact: p,
draggable: r,
droppable: c,
draggables: o,
afterCritical: s
});
return {
clientSelection: Fwe({
pageBorderBoxCenter: h,
draggable: r,
viewport: l
}),
impact: p,
scrollJumpRequest: null
}
}({
isMovingForward: c,
previousPageBorderBoxCenter: d,
draggable: u,
isOver: a,
draggables: h,
droppables: f,
viewport: t.viewport,
afterCritical: t.afterCritical
})
};
function Jwe(e) {
return "DRAGGING" === e.phase || "COLLECTING" === e.phase
}
function Zwe(e) {
var t = Owe(e.top, e.bottom)
, n = Owe(e.left, e.right);
return function(e) {
return t(e.y) && n(e.x)
}
}
var $we = function(e, t) {
return mke(ewe(e, t))
};
function eCe(e) {
var t = e.displaced
, n = e.id;
return Boolean(t.visible[n] || t.invisible[n])
}
var tCe = function(e) {
var t = e.pageOffset
, n = e.draggable
, r = e.draggables
, i = e.droppables
, o = e.previousImpact
, a = e.viewport
, l = e.afterCritical
, s = $we(n.page.borderBox, t)
, c = function(e) {
var t = e.pageBorderBox
, n = e.draggable
, r = e.droppables
, i = dwe(r).filter((function(e) {
if (!e.isEnabled)
return !1;
var n, r, i = e.subject.active;
if (!i)
return !1;
if (r = i,
!((n = t).left < r.right && n.right > r.left && n.top < r.bottom && n.bottom > r.top))
return !1;
if (Zwe(i)(t.center))
return !0;
var o = e.axis
, a = i.center[o.crossAxisLine]
, l = t[o.crossAxisStart]
, s = t[o.crossAxisEnd]
, c = Owe(i[o.crossAxisStart], i[o.crossAxisEnd])
, u = c(l)
, d = c(s);
return !u && !d || (u ? l < a : s > a)
}
));
return i.length ? 1 === i.length ? i[0].descriptor.id : function(e) {
var t = e.pageBorderBox
, n = e.candidates
, r = e.draggable.page.borderBox.center
, i = n.map((function(e) {
var n = e.axis
, i = Qke(e.axis.line, t.center[n.line], e.page.borderBox.center[n.crossAxisLine]);
return {
id: e.descriptor.id,
distance: Jke(r, i)
}
}
)).sort((function(e, t) {
return t.distance - e.distance
}
));
return i[0] ? i[0].id : null
}({
pageBorderBox: t,
draggable: n,
candidates: i
}) : null
}({
pageBorderBox: s,
draggable: n,
droppables: i
});
if (!c)
return xwe;
var u = i[c]
, d = hwe(u.descriptor.id, r)
, p = function(e, t) {
var n = e.frame;
return n ? $we(t, n.scroll.diff.value) : t
}(u, s);
return function(e) {
var t = e.draggable
, n = e.pageBorderBoxWithDroppableScroll
, r = e.previousImpact
, i = e.destination
, o = e.insideDestination
, a = e.afterCritical;
if (!i.isCombineEnabled)
return null;
var l = i.axis
, s = Xwe(i.axis, t.displaceBy)
, c = s.value
, u = n[l.start]
, d = n[l.end]
, p = lwe(gwe(t, o), (function(e) {
var t = e.descriptor.id
, n = e.page.borderBox
, i = n[l.size] / 4
, o = Ewe(t, a)
, s = eCe({
displaced: r.displaced,
id: t
});
return o ? s ? d > n[l.start] + i && d < n[l.end] - i : u > n[l.start] - c + i && u < n[l.end] - c - i : s ? d > n[l.start] + c + i && d < n[l.end] + c - i : u > n[l.start] + i && u < n[l.end] - i
}
));
return p ? {
displacedBy: s,
displaced: r.displaced,
at: {
type: "COMBINE",
combine: {
draggableId: p.descriptor.id,
droppableId: i.descriptor.id
}
}
} : null
}({
pageBorderBoxWithDroppableScroll: p,
draggable: n,
previousImpact: o,
destination: u,
insideDestination: d,
afterCritical: l
}) || function(e) {
var t = e.pageBorderBoxWithDroppableScroll
, n = e.draggable
, r = e.destination
, i = e.insideDestination
, o = e.last
, a = e.viewport
, l = e.afterCritical
, s = r.axis
, c = Xwe(r.axis, n.displaceBy)
, u = c.value
, d = t[s.start]
, p = t[s.end]
, h = function(e) {
var t = e.draggable
, n = e.closest;
return n ? e.inHomeList && n.descriptor.index > t.descriptor.index ? n.descriptor.index - 1 : n.descriptor.index : null
}({
draggable: n,
closest: lwe(gwe(n, i), (function(e) {
var t = e.descriptor.id
, n = e.page.borderBox.center[s.line]
, r = Ewe(t, l)
, i = eCe({
displaced: o,
id: t
});
return r ? i ? p <= n : d < n - u : i ? p <= n + u : d < n
}
)),
inHomeList: mwe(n, r)
});
return Twe({
draggable: n,
insideDestination: i,
destination: r,
viewport: a,
last: o,
displacedBy: c,
index: h
})
}({
pageBorderBoxWithDroppableScroll: p,
draggable: n,
destination: u,
insideDestination: d,
last: o.displaced,
viewport: a,
afterCritical: l
})
}
, nCe = function(e, t) {
var n;
return Vt({}, e, ((n = {})[t.descriptor.id] = t,
n))
}
, rCe = function(e) {
var t = e.state
, n = e.clientSelection
, r = e.dimensions
, i = e.viewport
, o = e.impact
, a = e.scrollJumpRequest
, l = i || t.viewport
, s = r || t.dimensions
, c = n || t.current.client.selection
, u = Gke(c, t.initial.client.selection)
, d = {
offset: u,
selection: c,
borderBoxCenter: Xke(t.initial.client.borderBoxCenter, u)
}
, p = {
selection: Xke(d.selection, l.scroll.current),
borderBoxCenter: Xke(d.borderBoxCenter, l.scroll.current),
offset: Xke(d.offset, l.scroll.diff.value)
}
, h = {
client: d,
page: p
};
if ("COLLECTING" === t.phase)
return Vt({
phase: "COLLECTING"
}, t, {
dimensions: s,
viewport: l,
current: h
});
var f = s.draggables[t.critical.draggable.id]
, b = o || tCe({
pageOffset: p.offset,
draggable: f,
draggables: s.draggables,
droppables: s.droppables,
previousImpact: t.impact,
viewport: l,
afterCritical: t.afterCritical
})
, g = function(e) {
var t = e.draggable
, n = e.draggables
, r = e.droppables
, i = e.impact
, o = function(e) {
var t = e.previousImpact
, n = e.impact
, r = e.droppables
, i = Ywe(t)
, o = Ywe(n);
if (!i)
return r;
if (i === o)
return r;
var a = r[i];
if (!a.subject.withPlaceholder)
return r;
var l = function(e) {
var t = e.subject.withPlaceholder;
t || Lke(!1);
var n = e.frame;
if (!n)
return Vt({}, e, {
subject: rwe({
page: e.subject.page,
axis: e.axis,
frame: null,
withPlaceholder: null
})
});
var r = t.oldFrameMaxScroll;
r || Lke(!1);
var i = Gwe(n, r);
return Vt({}, e, {
subject: rwe({
page: e.subject.page,
axis: e.axis,
frame: i,
withPlaceholder: null
}),
frame: i
})
}(a);
return nCe(r, l)
}({
previousImpact: e.previousImpact,
impact: i,
droppables: r
})
, a = Ywe(i);
if (!a)
return o;
var l = r[a];
if (mwe(t, l))
return o;
if (l.subject.withPlaceholder)
return o;
var s = Kwe(l, t, n);
return nCe(o, s)
}({
draggable: f,
impact: b,
previousImpact: t.impact,
draggables: s.draggables,
droppables: s.droppables
});
return Vt({}, t, {
current: h,
dimensions: {
draggables: s.draggables,
droppables: g
},
impact: b,
viewport: l,
scrollJumpRequest: a || null,
forceShouldAnimate: !a && null
})
}
, iCe = function(e) {
var t = e.impact
, n = e.viewport
, r = e.draggables
, i = e.destination
, o = e.forceShouldAnimate
, a = t.displaced
, l = function(e, t) {
return e.map((function(e) {
return t[e]
}
))
}(a.all, r);
return Vt({}, t, {
displaced: Swe({
afterDragging: l,
destination: i,
displacedBy: t.displacedBy,
viewport: n.frame,
forceShouldAnimate: o,
last: a
})
})
}
, oCe = function(e) {
var t = e.impact
, n = e.draggable
, r = e.droppable
, i = e.draggables
, o = e.viewport
, a = e.afterCritical
, l = Rwe({
impact: t,
draggable: n,
draggables: i,
droppable: r,
afterCritical: a
});
return Fwe({
pageBorderBoxCenter: l,
draggable: n,
viewport: o
})
}
, aCe = function(e) {
var t = e.state
, n = e.dimensions
, r = e.viewport;
"SNAP" !== t.movementMode && Lke(!1);
var i = t.impact
, o = r || t.viewport
, a = n || t.dimensions
, l = a.draggables
, s = a.droppables
, c = l[t.critical.draggable.id]
, u = Ywe(i);
u || Lke(!1);
var d = s[u]
, p = iCe({
impact: i,
viewport: o,
destination: d,
draggables: l
})
, h = oCe({
impact: p,
draggable: c,
droppable: d,
draggables: l,
viewport: o,
afterCritical: t.afterCritical
});
return rCe({
impact: p,
clientSelection: h,
state: t,
dimensions: a,
viewport: o
})
}
, lCe = function(e) {
var t = e.draggable
, n = e.home
, r = e.draggables
, i = e.viewport
, o = Xwe(n.axis, t.displaceBy)
, a = hwe(n.descriptor.id, r)
, l = a.indexOf(t);
-1 === l && Lke(!1);
var s, c = a.slice(l + 1), u = c.reduce((function(e, t) {
return e[t.descriptor.id] = !0,
e
}
), {}), d = {
inVirtualList: "virtual" === n.descriptor.mode,
displacedBy: o,
effected: u
};
return {
impact: {
displaced: Swe({
afterDragging: c,
destination: n,
displacedBy: o,
last: null,
viewport: i.frame,
forceShouldAnimate: !1
}),
displacedBy: o,
at: {
type: "REORDER",
destination: (s = t.descriptor,
{
index: s.index,
droppableId: s.droppableId
})
}
},
afterCritical: d
}
}
, sCe = function(e) {
return "SNAP" === e.movementMode
}
, cCe = function(e, t, n) {
var r = function(e, t) {
return {
draggables: e.draggables,
droppables: nCe(e.droppables, t)
}
}(e.dimensions, t);
return !sCe(e) || n ? rCe({
state: e,
dimensions: r
}) : aCe({
state: e,
dimensions: r
})
};
function uCe(e) {
return e.isDragging && "SNAP" === e.movementMode ? Vt({
phase: "DRAGGING"
}, e, {
scrollJumpRequest: null
}) : e
}
var dCe = {
phase: "IDLE",
completed: null,
shouldFlush: !1
}
, pCe = function(e, t) {
if (void 0 === e && (e = dCe),
"FLUSH" === t.type)
return Vt({}, dCe, {
shouldFlush: !0
});
if ("INITIAL_PUBLISH" === t.type) {
"IDLE" !== e.phase && Lke(!1);
var n = t.payload
, r = n.critical
, i = n.clientSelection
, o = n.viewport
, a = n.dimensions
, l = n.movementMode
, s = a.draggables[r.draggable.id]
, c = a.droppables[r.droppable.id]
, u = {
selection: i,
borderBoxCenter: s.client.borderBox.center,
offset: Uke
}
, d = {
client: u,
page: {
selection: Xke(u.selection, o.scroll.initial),
borderBoxCenter: Xke(u.selection, o.scroll.initial),
offset: Xke(u.selection, o.scroll.diff.value)
}
}
, p = dwe(a.droppables).every((function(e) {
return !e.isFixedOnPage
}
))
, h = lCe({
draggable: s,
home: c,
draggables: a.draggables,
viewport: o
})
, f = h.impact;
return {
phase: "DRAGGING",
isDragging: !0,
critical: r,
movementMode: l,
dimensions: a,
initial: d,
current: d,
isWindowScrollAllowed: p,
impact: f,
afterCritical: h.afterCritical,
onLiftImpact: f,
viewport: o,
scrollJumpRequest: null,
forceShouldAnimate: null
}
}
if ("COLLECTION_STARTING" === t.type)
return "COLLECTING" === e.phase || "DROP_PENDING" === e.phase ? e : ("DRAGGING" !== e.phase && Lke(!1),
Vt({
phase: "COLLECTING"
}, e, {
phase: "COLLECTING"
}));
if ("PUBLISH_WHILE_DRAGGING" === t.type)
return "COLLECTING" !== e.phase && "DROP_PENDING" !== e.phase && Lke(!1),
function(e) {
var t = e.state
, n = e.published
, r = n.modified.map((function(e) {
var n = t.dimensions.droppables[e.droppableId];
return iwe(n, e.scroll)
}
))
, i = Vt({}, t.dimensions.droppables, {}, cwe(r))
, o = uwe(function(e) {
var t = e.additions
, n = e.updatedDroppables
, r = e.viewport
, i = r.scroll.diff.value;
return t.map((function(e) {
var t = e.descriptor.droppableId
, o = function(e) {
var t = e.frame;
return t || Lke(!1),
t
}(n[t]).scroll.diff.value
, a = function(e) {
var t = e.draggable
, n = e.offset
, r = e.initialWindowScroll
, i = kke(t.client, n)
, o = wke(i, r);
return Vt({}, t, {
placeholder: Vt({}, t.placeholder, {
client: i
}),
client: i,
page: o
})
}({
draggable: e,
offset: Xke(i, o),
initialWindowScroll: r.scroll.initial
});
return a
}
))
}({
additions: n.additions,
updatedDroppables: i,
viewport: t.viewport
}))
, a = Vt({}, t.dimensions.draggables, {}, o);
n.removals.forEach((function(e) {
delete a[e]
}
));
var l = {
droppables: i,
draggables: a
}
, s = Ywe(t.impact)
, c = s ? l.droppables[s] : null
, u = l.draggables[t.critical.draggable.id]
, d = l.droppables[t.critical.droppable.id]
, p = lCe({
draggable: u,
home: d,
draggables: a,
viewport: t.viewport
})
, h = p.impact
, f = p.afterCritical
, b = c && c.isCombineEnabled ? t.impact : h
, g = tCe({
pageOffset: t.current.page.offset,
draggable: l.draggables[t.critical.draggable.id],
draggables: l.draggables,
droppables: l.droppables,
previousImpact: b,
viewport: t.viewport,
afterCritical: f
})
, m = Vt({
phase: "DRAGGING"
}, t, {
phase: "DRAGGING",
impact: g,
onLiftImpact: h,
dimensions: l,
afterCritical: f,
forceShouldAnimate: !1
});
return "COLLECTING" === t.phase ? m : Vt({
phase: "DROP_PENDING"
}, m, {
phase: "DROP_PENDING",
reason: t.reason,
isWaiting: !1
})
}({
state: e,
published: t.payload
});
if ("MOVE" === t.type) {
if ("DROP_PENDING" === e.phase)
return e;
Jwe(e) || Lke(!1);
var b = t.payload.client;
return Kke(b, e.current.client.selection) ? e : rCe({
state: e,
clientSelection: b,
impact: sCe(e) ? e.impact : null
})
}
if ("UPDATE_DROPPABLE_SCROLL" === t.type) {
if ("DROP_PENDING" === e.phase)
return uCe(e);
if ("COLLECTING" === e.phase)
return uCe(e);
Jwe(e) || Lke(!1);
var g = t.payload
, m = g.id
, v = g.newScroll
, y = e.dimensions.droppables[m];
if (!y)
return e;
var x = iwe(y, v);
return cCe(e, x, !1)
}
if ("UPDATE_DROPPABLE_IS_ENABLED" === t.type) {
if ("DROP_PENDING" === e.phase)
return e;
Jwe(e) || Lke(!1);
var O = t.payload
, j = O.id
, k = O.isEnabled
, w = e.dimensions.droppables[j];
w || Lke(!1),
w.isEnabled === k && Lke(!1);
var C = Vt({}, w, {
isEnabled: k
});
return cCe(e, C, !0)
}
if ("UPDATE_DROPPABLE_IS_COMBINE_ENABLED" === t.type) {
if ("DROP_PENDING" === e.phase)
return e;
Jwe(e) || Lke(!1);
var _ = t.payload
, M = _.id
, S = _.isCombineEnabled
, A = e.dimensions.droppables[M];
A || Lke(!1),
A.isCombineEnabled === S && Lke(!1);
var T = Vt({}, A, {
isCombineEnabled: S
});
return cCe(e, T, !0)
}
if ("MOVE_BY_WINDOW_SCROLL" === t.type) {
if ("DROP_PENDING" === e.phase || "DROP_ANIMATING" === e.phase)
return e;
Jwe(e) || Lke(!1),
e.isWindowScrollAllowed || Lke(!1);
var E = t.payload.newScroll;
if (Kke(e.viewport.scroll.current, E))
return uCe(e);
var I = Pwe(e.viewport, E);
return sCe(e) ? aCe({
state: e,
viewport: I
}) : rCe({
state: e,
viewport: I
})
}
if ("UPDATE_VIEWPORT_MAX_SCROLL" === t.type) {
if (!Jwe(e))
return e;
var N = t.payload.maxScroll;
if (Kke(N, e.viewport.scroll.max))
return e;
var z = Vt({}, e.viewport, {
scroll: Vt({}, e.viewport.scroll, {
max: N
})
});
return Vt({
phase: "DRAGGING"
}, e, {
viewport: z
})
}
if ("MOVE_UP" === t.type || "MOVE_DOWN" === t.type || "MOVE_LEFT" === t.type || "MOVE_RIGHT" === t.type) {
if ("COLLECTING" === e.phase || "DROP_PENDING" === e.phase)
return e;
"DRAGGING" !== e.phase && Lke(!1);
var D = Qwe({
state: e,
type: t.type
});
return D ? rCe({
state: e,
impact: D.impact,
clientSelection: D.clientSelection,
scrollJumpRequest: D.scrollJumpRequest
}) : e
}
if ("DROP_PENDING" === t.type) {
var L = t.payload.reason;
return "COLLECTING" !== e.phase && Lke(!1),
Vt({
phase: "DROP_PENDING"
}, e, {
phase: "DROP_PENDING",
isWaiting: !0,
reason: L
})
}
if ("DROP_ANIMATE" === t.type) {
var R = t.payload
, P = R.completed
, B = R.dropDuration
, F = R.newHomeClientOffset;
return "DRAGGING" !== e.phase && "DROP_PENDING" !== e.phase && Lke(!1),
{
phase: "DROP_ANIMATING",
completed: P,
dropDuration: B,
newHomeClientOffset: F,
dimensions: e.dimensions
}
}
return "DROP_COMPLETE" === t.type ? {
phase: "IDLE",
completed: t.payload.completed,
shouldFlush: !1
} : e
}
, hCe = function(e) {
return {
type: "PUBLISH_WHILE_DRAGGING",
payload: e
}
}
, fCe = function() {
return {
type: "COLLECTION_STARTING",
payload: null
}
}
, bCe = function(e) {
return {
type: "UPDATE_DROPPABLE_SCROLL",
payload: e
}
}
, gCe = function(e) {
return {
type: "UPDATE_DROPPABLE_IS_ENABLED",
payload: e
}
}
, mCe = function(e) {
return {
type: "UPDATE_DROPPABLE_IS_COMBINE_ENABLED",
payload: e
}
}
, vCe = function(e) {
return {
type: "MOVE",
payload: e
}
}
, yCe = function() {
return {
type: "MOVE_UP",
payload: null
}
}
, xCe = function() {
return {
type: "MOVE_DOWN",
payload: null
}
}
, OCe = function() {
return {
type: "MOVE_RIGHT",
payload: null
}
}
, jCe = function() {
return {
type: "MOVE_LEFT",
payload: null
}
}
, kCe = function(e) {
return {
type: "DROP_COMPLETE",
payload: e
}
}
, wCe = function(e) {
return {
type: "DROP",
payload: e
}
}
, CCe = "cubic-bezier(.2,1,.1,1)"
, _Ce = 0
, MCe = .7
, SCe = .75
, ACe = "0.2s cubic-bezier(0.2, 0, 0, 1)"
, TCe = {
fluid: "opacity " + ACe,
snap: "transform " + ACe + ", opacity " + ACe,
drop: function(e) {
var t = e + "s " + CCe;
return "transform " + t + ", opacity " + t
},
outOfTheWay: "transform " + ACe,
placeholder: "height " + ACe + ", width " + ACe + ", margin " + ACe
}
, ECe = function(e) {
return Kke(e, Uke) ? null : "translate(" + e.x + "px, " + e.y + "px)"
}
, ICe = ECe
, NCe = .33
, zCe = function(e) {
var t = e.getState
, n = e.dispatch;
return function(e) {
return function(r) {
if ("DROP" === r.type) {
var i = t()
, o = r.payload.reason;
if ("COLLECTING" !== i.phase) {
if ("IDLE" !== i.phase) {
"DROP_PENDING" === i.phase && i.isWaiting && Lke(!1),
"DRAGGING" !== i.phase && "DROP_PENDING" !== i.phase && Lke(!1);
var a = i.critical
, l = i.dimensions
, s = l.draggables[i.critical.draggable.id]
, c = function(e) {
var t = e.draggables
, n = e.reason
, r = e.lastImpact
, i = e.home
, o = e.viewport
, a = e.onLiftImpact;
return r.at && "DROP" === n ? "REORDER" === r.at.type ? {
impact: r,
didDropInsideDroppable: !0
} : {
impact: Vt({}, r, {
displaced: ywe
}),
didDropInsideDroppable: !0
} : {
impact: iCe({
draggables: t,
impact: a,
destination: i,
viewport: o,
forceShouldAnimate: !0
}),
didDropInsideDroppable: !1
}
}({
reason: o,
lastImpact: i.impact,
afterCritical: i.afterCritical,
onLiftImpact: i.onLiftImpact,
home: i.dimensions.droppables[i.critical.droppable.id],
viewport: i.viewport,
draggables: i.dimensions.draggables
})
, u = c.impact
, d = c.didDropInsideDroppable
, p = d ? fwe(u) : null
, h = d ? bwe(u) : null
, f = {
index: a.draggable.index,
droppableId: a.droppable.id
}
, b = {
draggableId: s.descriptor.id,
type: s.descriptor.type,
source: f,
reason: o,
mode: i.movementMode,
destination: p,
combine: h
}
, g = function(e) {
var t = e.impact
, n = e.draggable
, r = e.dimensions
, i = e.viewport
, o = e.afterCritical
, a = r.draggables
, l = r.droppables
, s = Ywe(t)
, c = s ? l[s] : null
, u = l[n.descriptor.droppableId]
, d = oCe({
impact: t,
draggable: n,
draggables: a,
afterCritical: o,
droppable: c || u,
viewport: i
});
return Gke(d, n.client.borderBox.center)
}({
impact: u,
draggable: s,
dimensions: l,
viewport: i.viewport,
afterCritical: i.afterCritical
})
, m = {
critical: i.critical,
afterCritical: i.afterCritical,
result: b,
impact: u
};
if (!Kke(i.current.client.offset, g) || Boolean(b.combine)) {
var v = function(e) {
var t = e.reason
, n = Jke(e.current, e.destination);
if (n <= 0)
return NCe;
if (n >= 1500)
return .55;
var r = NCe + n / 1500 * .22000000000000003;
return Number(("CANCEL" === t ? .6 * r : r).toFixed(2))
}({
current: i.current.client.offset,
destination: g,
reason: o
});
n(function(e) {
return {
type: "DROP_ANIMATE",
payload: e
}
}({
newHomeClientOffset: g,
dropDuration: v,
completed: m
}))
} else
n(kCe({
completed: m
}))
}
} else
n(function(e) {
return {
type: "DROP_PENDING",
payload: e
}
}({
reason: o
}))
} else
e(r)
}
}
}
, DCe = function() {
return {
x: window.pageXOffset,
y: window.pageYOffset
}
};
var LCe = function(e) {
var t = function(e) {
var t, n = e.onWindowScroll, r = Tke((function() {
n(DCe())
}
)), i = (t = r,
{
eventName: "scroll",
options: {
passive: !0,
capture: !1
},
fn: function(e) {
e.target !== window && e.target !== window.document || t()
}
}), o = Ike;
function a() {
return o !== Ike
}
return {
start: function() {
a() && Lke(!1),
o = Nke(window, [i])
},
stop: function() {
a() || Lke(!1),
r.cancel(),
o(),
o = Ike
},
isActive: a
}
}({
onWindowScroll: function(t) {
e.dispatch({
type: "MOVE_BY_WINDOW_SCROLL",
payload: {
newScroll: t
}
})
}
});
return function(e) {
return function(n) {
t.isActive() || "INITIAL_PUBLISH" !== n.type || t.start(),
t.isActive() && function(e) {
return "DROP_COMPLETE" === e.type || "DROP_ANIMATE" === e.type || "FLUSH" === e.type
}(n) && t.stop(),
e(n)
}
}
}
, RCe = function(e, t) {
t()
}
, PCe = function(e, t) {
return {
draggableId: e.draggable.id,
type: e.droppable.type,
source: {
droppableId: e.droppable.id,
index: e.draggable.index
},
mode: t
}
}
, BCe = function(e, t, n, r) {
if (e) {
var i = function(e) {
var t = !1
, n = !1
, r = setTimeout((function() {
n = !0
}
))
, i = function(i) {
t || n || (t = !0,
e(i),
clearTimeout(r))
};
return i.wasCalled = function() {
return t
}
,
i
}(n);
e(t, {
announce: i
}),
i.wasCalled() || n(r(t))
} else
n(r(t))
}
, FCe = function(e, t) {
var n = function(e, t) {
var n = function() {
var e = [];
return {
add: function(t) {
var n = setTimeout((function() {
return function(t) {
var n = awe(e, (function(e) {
return e.timerId === t
}
));
-1 === n && Lke(!1),
e.splice(n, 1)[0].callback()
}(n)
}
))
, r = {
timerId: n,
callback: t
};
e.push(r)
},
flush: function() {
if (e.length) {
var t = [].concat(e);
e.length = 0,
t.forEach((function(e) {
clearTimeout(e.timerId),
e.callback()
}
))
}
}
}
}()
, r = null
, i = function(n) {
r || Lke(!1),
r = null,
RCe(0, (function() {
return BCe(e().onDragEnd, n, t, Hke)
}
))
};
return {
beforeCapture: function(t, n) {
r && Lke(!1),
RCe(0, (function() {
var r = e().onBeforeCapture;
r && r({
draggableId: t,
mode: n
})
}
))
},
beforeStart: function(t, n) {
r && Lke(!1),
RCe(0, (function() {
var r = e().onBeforeDragStart;
r && r(PCe(t, n))
}
))
},
start: function(i, o) {
r && Lke(!1);
var a = PCe(i, o);
r = {
mode: o,
lastCritical: i,
lastLocation: a.source,
lastCombine: null
},
n.add((function() {
RCe(0, (function() {
return BCe(e().onDragStart, a, t, Wke)
}
))
}
))
},
update: function(i, o) {
var a = fwe(o)
, l = bwe(o);
r || Lke(!1);
var s = !function(e, t) {
if (e === t)
return !0;
var n = e.draggable.id === t.draggable.id && e.draggable.droppableId === t.draggable.droppableId && e.draggable.type === t.draggable.type && e.draggable.index === t.draggable.index
, r = e.droppable.id === t.droppable.id && e.droppable.type === t.droppable.type;
return n && r
}(i, r.lastCritical);
s && (r.lastCritical = i);
var c, u, d = (u = a,
!(null == (c = r.lastLocation) && null == u || null != c && null != u && c.droppableId === u.droppableId && c.index === u.index));
d && (r.lastLocation = a);
var p = !function(e, t) {
return null == e && null == t || null != e && null != t && e.draggableId === t.draggableId && e.droppableId === t.droppableId
}(r.lastCombine, l);
if (p && (r.lastCombine = l),
s || d || p) {
var h = Vt({}, PCe(i, r.mode), {
combine: l,
destination: a
});
n.add((function() {
RCe(0, (function() {
return BCe(e().onDragUpdate, h, t, qke)
}
))
}
))
}
},
flush: function() {
r || Lke(!1),
n.flush()
},
drop: i,
abort: function() {
if (r) {
var e = Vt({}, PCe(r.lastCritical, r.mode), {
combine: null,
destination: null,
reason: "CANCEL"
});
i(e)
}
}
}
}(e, t);
return function(e) {
return function(t) {
return function(r) {
if ("BEFORE_INITIAL_CAPTURE" !== r.type) {
if ("INITIAL_PUBLISH" === r.type) {
var i = r.payload.critical;
return n.beforeStart(i, r.payload.movementMode),
t(r),
void n.start(i, r.payload.movementMode)
}
if ("DROP_COMPLETE" === r.type) {
var o = r.payload.completed.result;
return n.flush(),
t(r),
void n.drop(o)
}
if (t(r),
"FLUSH" !== r.type) {
var a = e.getState();
"DRAGGING" === a.phase && n.update(a.critical, a.impact)
} else
n.abort()
} else
n.beforeCapture(r.payload.draggableId, r.payload.movementMode)
}
}
}
}
, VCe = function(e) {
return function(t) {
return function(n) {
if ("DROP_ANIMATION_FINISHED" === n.type) {
var r = e.getState();
"DROP_ANIMATING" !== r.phase && Lke(!1),
e.dispatch(kCe({
completed: r.completed
}))
} else
t(n)
}
}
}
, WCe = function(e) {
var t = null
, n = null;
return function(r) {
return function(i) {
if ("FLUSH" !== i.type && "DROP_COMPLETE" !== i.type && "DROP_ANIMATION_FINISHED" !== i.type || (n && (cancelAnimationFrame(n),
n = null),
t && (t(),
t = null)),
r(i),
"DROP_ANIMATE" === i.type) {
var o = {
eventName: "scroll",
options: {
capture: !0,
passive: !1,
once: !0
},
fn: function() {
"DROP_ANIMATING" === e.getState().phase && e.dispatch({
type: "DROP_ANIMATION_FINISHED",
payload: null
})
}
};
n = requestAnimationFrame((function() {
n = null,
t = Nke(window, [o])
}
))
}
}
}
}
, qCe = function(e) {
return function(t) {
return function(n) {
if (t(n),
"PUBLISH_WHILE_DRAGGING" === n.type) {
var r = e.getState();
"DROP_PENDING" === r.phase && (r.isWaiting || e.dispatch(wCe({
reason: r.reason
})))
}
}
}
}
, HCe = za
, UCe = function(e) {
var t, n = e.dimensionMarshal, r = e.focusMarshal, i = e.styleMarshal, o = e.getResponders, a = e.announce, l = e.autoScroller;
return Ta(pCe, HCe(Da((t = i,
function() {
return function(e) {
return function(n) {
"INITIAL_PUBLISH" === n.type && t.dragging(),
"DROP_ANIMATE" === n.type && t.dropping(n.payload.completed.result.reason),
"FLUSH" !== n.type && "DROP_COMPLETE" !== n.type || t.resting(),
e(n)
}
}
}
), function(e) {
return function() {
return function(t) {
return function(n) {
"DROP_COMPLETE" !== n.type && "FLUSH" !== n.type && "DROP_ANIMATE" !== n.type || e.stopPublishing(),
t(n)
}
}
}
}(n), function(e) {
return function(t) {
var n = t.getState
, r = t.dispatch;
return function(t) {
return function(i) {
if ("LIFT" === i.type) {
var o = i.payload
, a = o.id
, l = o.clientSelection
, s = o.movementMode
, c = n();
"DROP_ANIMATING" === c.phase && r(kCe({
completed: c.completed
})),
"IDLE" !== n().phase && Lke(!1),
r({
type: "FLUSH",
payload: null
}),
r({
type: "BEFORE_INITIAL_CAPTURE",
payload: {
draggableId: a,
movementMode: s
}
});
var u = {
draggableId: a,
scrollOptions: {
shouldPublishImmediately: "SNAP" === s
}
}
, d = e.startPublishing(u)
, p = d.critical
, h = d.dimensions
, f = d.viewport;
r({
type: "INITIAL_PUBLISH",
payload: {
critical: p,
dimensions: h,
clientSelection: l,
movementMode: s,
viewport: f
}
})
} else
t(i)
}
}
}
}(n), zCe, VCe, WCe, qCe, function(e) {
return function(t) {
return function(n) {
return function(r) {
if (function(e) {
return "DROP_COMPLETE" === e.type || "DROP_ANIMATE" === e.type || "FLUSH" === e.type
}(r))
return e.stop(),
void n(r);
if ("INITIAL_PUBLISH" === r.type) {
n(r);
var i = t.getState();
return "DRAGGING" !== i.phase && Lke(!1),
void e.start(i)
}
n(r),
e.scroll(t.getState())
}
}
}
}(l), LCe, function(e) {
var t = !1;
return function() {
return function(n) {
return function(r) {
if ("INITIAL_PUBLISH" === r.type)
return t = !0,
e.tryRecordFocus(r.payload.critical.draggable.id),
n(r),
void e.tryRestoreFocusRecorded();
if (n(r),
t) {
if ("FLUSH" === r.type)
return t = !1,
void e.tryRestoreFocusRecorded();
if ("DROP_COMPLETE" === r.type) {
t = !1;
var i = r.payload.completed.result;
i.combine && e.tryShiftRecord(i.draggableId, i.combine.draggableId),
e.tryRestoreFocusRecorded()
}
}
}
}
}
}(r), FCe(o, a))))
}
, XCe = function(e) {
var t = e.scrollHeight
, n = e.scrollWidth
, r = e.height
, i = e.width
, o = Gke({
x: n,
y: t
}, {
x: i,
y: r
});
return {
x: Math.max(0, o.x),
y: Math.max(0, o.y)
}
}
, GCe = function() {
var e = document.documentElement;
return e || Lke(!1),
e
}
, KCe = function() {
var e = GCe();
return XCe({
scrollHeight: e.scrollHeight,
scrollWidth: e.scrollWidth,
width: e.clientWidth,
height: e.clientHeight
})
};
function YCe(e, t, n) {
return n.descriptor.id !== t.id && n.descriptor.type === t.type && "virtual" === e.droppable.getById(n.descriptor.droppableId).descriptor.mode
}
var QCe = function(e, t) {
var n = null
, r = function(e) {
var t = e.registry
, n = e.callbacks
, r = {
additions: {},
removals: {},
modified: {}
}
, i = null
, o = function() {
i || (n.collectionStarting(),
i = requestAnimationFrame((function() {
i = null;
var e = r
, o = e.additions
, a = e.removals
, l = e.modified
, s = Object.keys(o).map((function(e) {
return t.draggable.getById(e).getDimension(Uke)
}
)).sort((function(e, t) {
return e.descriptor.index - t.descriptor.index
}
))
, c = Object.keys(l).map((function(e) {
return {
droppableId: e,
scroll: t.droppable.getById(e).callbacks.getScrollWhileDragging()
}
}
))
, u = {
additions: s,
removals: Object.keys(a),
modified: c
};
r = {
additions: {},
removals: {},
modified: {}
},
n.publish(u)
}
)))
};
return {
add: function(e) {
var t = e.descriptor.id;
r.additions[t] = e,
r.modified[e.descriptor.droppableId] = !0,
r.removals[t] && delete r.removals[t],
o()
},
remove: function(e) {
var t = e.descriptor;
r.removals[t.id] = !0,
r.modified[t.droppableId] = !0,
r.additions[t.id] && delete r.additions[t.id],
o()
},
stop: function() {
i && (cancelAnimationFrame(i),
i = null,
r = {
additions: {},
removals: {},
modified: {}
})
}
}
}({
callbacks: {
publish: t.publishWhileDragging,
collectionStarting: t.collectionStarting
},
registry: e
})
, i = function(t) {
n || Lke(!1);
var i = n.critical.draggable;
"ADDITION" === t.type && YCe(e, i, t.value) && r.add(t.value),
"REMOVAL" === t.type && YCe(e, i, t.value) && r.remove(t.value)
};
return {
updateDroppableIsEnabled: function(r, i) {
e.droppable.exists(r) || Lke(!1),
n && t.updateDroppableIsEnabled({
id: r,
isEnabled: i
})
},
updateDroppableIsCombineEnabled: function(r, i) {
n && (e.droppable.exists(r) || Lke(!1),
t.updateDroppableIsCombineEnabled({
id: r,
isCombineEnabled: i
}))
},
scrollDroppable: function(t, r) {
n && e.droppable.getById(t).callbacks.scroll(r)
},
updateDroppableScroll: function(r, i) {
n && (e.droppable.exists(r) || Lke(!1),
t.updateDroppableScroll({
id: r,
newScroll: i
}))
},
startPublishing: function(t) {
n && Lke(!1);
var r = e.draggable.getById(t.draggableId)
, o = e.droppable.getById(r.descriptor.droppableId)
, a = {
draggable: r.descriptor,
droppable: o.descriptor
}
, l = e.subscribe(i);
return n = {
critical: a,
unsubscribe: l
},
function(e) {
var t = e.critical
, n = e.scrollOptions
, r = e.registry
, i = function() {
var e = DCe()
, t = KCe()
, n = e.y
, r = e.x
, i = GCe()
, o = i.clientWidth
, a = i.clientHeight;
return {
frame: mke({
top: n,
left: r,
right: r + o,
bottom: n + a
}),
scroll: {
initial: e,
current: e,
max: t,
diff: {
value: Uke,
displacement: Uke
}
}
}
}()
, o = i.scroll.current
, a = t.droppable
, l = r.droppable.getAllByType(a.type).map((function(e) {
return e.callbacks.getDimensionAndWatchScroll(o, n)
}
))
, s = r.draggable.getAllByType(t.draggable.type).map((function(e) {
return e.getDimension(o)
}
));
return {
dimensions: {
draggables: uwe(s),
droppables: cwe(l)
},
critical: t,
viewport: i
}
}({
critical: a,
registry: e,
scrollOptions: t.scrollOptions
})
},
stopPublishing: function() {
if (n) {
r.stop();
var t = n.critical.droppable;
e.droppable.getAllByType(t.type).forEach((function(e) {
return e.callbacks.dragStopped()
}
)),
n.unsubscribe(),
n = null
}
}
}
}
, JCe = function(e, t) {
return "IDLE" === e.phase || "DROP_ANIMATING" === e.phase && e.completed.result.draggableId !== t && "DROP" === e.completed.result.reason
}
, ZCe = function(e) {
window.scrollBy(e.x, e.y)
}
, $Ce = Ake((function(e) {
return dwe(e).filter((function(e) {
return !!e.isEnabled && !!e.frame
}
))
}
))
, e_e = function(e) {
return Math.pow(e, 2)
}
, t_e = function(e) {
var t = e.startOfRange
, n = e.endOfRange
, r = e.current
, i = n - t;
return 0 === i ? 0 : (r - t) / i
}
, n_e = 360
, r_e = 1200
, i_e = function(e) {
var t = e.distanceToEdge
, n = e.thresholds
, r = e.dragStartTime
, i = e.shouldUseTimeDampening
, o = function(e, t) {
if (e > t.startScrollingFrom)
return 0;
if (e <= t.maxScrollValueAt)
return 28;
if (e === t.startScrollingFrom)
return 1;
var n = t_e({
startOfRange: t.maxScrollValueAt,
endOfRange: t.startScrollingFrom,
current: e
})
, r = 28 * e_e(1 - n);
return Math.ceil(r)
}(t, n);
return 0 === o ? 0 : i ? Math.max(function(e, t) {
var n = t
, r = r_e
, i = Date.now() - n;
if (i >= r_e)
return e;
if (i < n_e)
return 1;
var o = t_e({
startOfRange: n_e,
endOfRange: r,
current: i
})
, a = e * e_e(o);
return Math.ceil(a)
}(o, r), 1) : o
}
, o_e = function(e) {
var t = e.container
, n = e.distanceToEdges
, r = e.dragStartTime
, i = e.axis
, o = e.shouldUseTimeDampening
, a = function(e, t) {
return {
startScrollingFrom: .25 * e[t.size],
maxScrollValueAt: .05 * e[t.size]
}
}(t, i);
return n[i.end] < n[i.start] ? i_e({
distanceToEdge: n[i.end],
thresholds: a,
dragStartTime: r,
shouldUseTimeDampening: o
}) : -1 * i_e({
distanceToEdge: n[i.start],
thresholds: a,
dragStartTime: r,
shouldUseTimeDampening: o
})
}
, a_e = $ke((function(e) {
return 0 === e ? 0 : e
}
))
, l_e = function(e) {
var t = e.dragStartTime
, n = e.container
, r = e.subject
, i = e.center
, o = e.shouldUseTimeDampening
, a = {
top: i.y - n.top,
right: n.right - i.x,
bottom: n.bottom - i.y,
left: i.x - n.left
}
, l = o_e({
container: n,
distanceToEdges: a,
dragStartTime: t,
axis: wwe,
shouldUseTimeDampening: o
})
, s = o_e({
container: n,
distanceToEdges: a,
dragStartTime: t,
axis: Cwe,
shouldUseTimeDampening: o
})
, c = a_e({
x: s,
y: l
});
if (Kke(c, Uke))
return null;
var u = function(e) {
var t = e.container
, n = e.subject
, r = e.proposedScroll
, i = n.height > t.height
, o = n.width > t.width;
return o || i ? o && i ? null : {
x: o ? 0 : r.x,
y: i ? 0 : r.y
} : r
}({
container: n,
subject: r,
proposedScroll: c
});
return u ? Kke(u, Uke) ? null : u : null
}
, s_e = $ke((function(e) {
return 0 === e ? 0 : e > 0 ? 1 : -1
}
))
, c_e = function() {
var e = function(e, t) {
return e < 0 ? e : e > t ? e - t : 0
};
return function(t) {
var n = t.current
, r = t.max
, i = t.change
, o = Xke(n, i)
, a = {
x: e(o.x, r.x),
y: e(o.y, r.y)
};
return Kke(a, Uke) ? null : a
}
}()
, u_e = function(e) {
var t = e.max
, n = e.current
, r = e.change
, i = {
x: Math.max(n.x, t.x),
y: Math.max(n.y, t.y)
}
, o = s_e(r)
, a = c_e({
max: i,
current: n,
change: o
});
return !a || 0 !== o.x && 0 === a.x || 0 !== o.y && 0 === a.y
}
, d_e = function(e, t) {
return u_e({
current: e.scroll.current,
max: e.scroll.max,
change: t
})
}
, p_e = function(e, t) {
var n = e.frame;
return !!n && u_e({
current: n.scroll.current,
max: n.scroll.max,
change: t
})
}
, h_e = function(e) {
var t = e.state
, n = e.dragStartTime
, r = e.shouldUseTimeDampening
, i = e.scrollWindow
, o = e.scrollDroppable
, a = t.current.page.borderBoxCenter
, l = t.dimensions.draggables[t.critical.draggable.id].page.marginBox;
if (t.isWindowScrollAllowed) {
var s = function(e) {
var t = e.viewport
, n = e.subject
, r = e.center
, i = e.shouldUseTimeDampening
, o = l_e({
dragStartTime: e.dragStartTime,
container: t.frame,
subject: n,
center: r,
shouldUseTimeDampening: i
});
return o && d_e(t, o) ? o : null
}({
dragStartTime: n,
viewport: t.viewport,
subject: l,
center: a,
shouldUseTimeDampening: r
});
if (s)
return void i(s)
}
var c = function(e) {
var t = e.center
, n = e.destination
, r = e.droppables;
if (n) {
var i = r[n];
return i.frame ? i : null
}
var o = function(e, t) {
return lwe($Ce(t), (function(t) {
return t.frame || Lke(!1),
Zwe(t.frame.pageMarginBox)(e)
}
))
}(t, r);
return o
}({
center: a,
destination: Ywe(t.impact),
droppables: t.dimensions.droppables
});
if (c) {
var u = function(e) {
var t = e.droppable
, n = e.subject
, r = e.center
, i = e.dragStartTime
, o = e.shouldUseTimeDampening
, a = t.frame;
if (!a)
return null;
var l = l_e({
dragStartTime: i,
container: a.pageMarginBox,
subject: n,
center: r,
shouldUseTimeDampening: o
});
return l && p_e(t, l) ? l : null
}({
dragStartTime: n,
droppable: c,
subject: l,
center: a,
shouldUseTimeDampening: r
});
u && o(c.descriptor.id, u)
}
}
, f_e = function(e) {
var t = e.scrollDroppable
, n = e.scrollWindow
, r = e.move
, i = function(e) {
var t = e.scrollDroppable
, n = Tke(e.scrollWindow)
, r = Tke(t)
, i = null
, o = function(e) {
i || Lke(!1);
var t = i
, o = t.shouldUseTimeDampening
, a = t.dragStartTime;
h_e({
state: e,
scrollWindow: n,
scrollDroppable: r,
dragStartTime: a,
shouldUseTimeDampening: o
})
};
return {
start: function(e) {
i && Lke(!1);
var t = Date.now()
, n = !1
, r = function() {
n = !0
};
h_e({
state: e,
dragStartTime: 0,
shouldUseTimeDampening: !1,
scrollWindow: r,
scrollDroppable: r
}),
i = {
dragStartTime: t,
shouldUseTimeDampening: n
},
n && o(e)
},
stop: function() {
i && (n.cancel(),
r.cancel(),
i = null)
},
scroll: o
}
}({
scrollWindow: n,
scrollDroppable: t
})
, o = function(e) {
var t = e.move
, n = e.scrollDroppable
, r = e.scrollWindow
, i = function(e, t) {
if (!p_e(e, t))
return t;
var r = function(e, t) {
var n = e.frame;
return n && p_e(e, t) ? c_e({
current: n.scroll.current,
max: n.scroll.max,
change: t
}) : null
}(e, t);
if (!r)
return n(e.descriptor.id, t),
null;
var i = Gke(t, r);
return n(e.descriptor.id, i),
Gke(t, i)
}
, o = function(e, t, n) {
if (!e)
return n;
if (!d_e(t, n))
return n;
var i = function(e, t) {
if (!d_e(e, t))
return null;
var n = e.scroll.max
, r = e.scroll.current;
return c_e({
current: r,
max: n,
change: t
})
}(t, n);
if (!i)
return r(n),
null;
var o = Gke(n, i);
return r(o),
Gke(n, o)
};
return function(e) {
var n = e.scrollJumpRequest;
if (n) {
var r = Ywe(e.impact);
r || Lke(!1);
var a = i(e.dimensions.droppables[r], n);
if (a) {
var l = e.viewport
, s = o(e.isWindowScrollAllowed, l, a);
s && function(e, n) {
var r = Xke(e.current.client.selection, n);
t({
client: r
})
}(e, s)
}
}
}
}({
move: r,
scrollWindow: n,
scrollDroppable: t
});
return {
scroll: function(e) {
"DRAGGING" === e.phase && ("FLUID" !== e.movementMode ? e.scrollJumpRequest && o(e) : i.scroll(e))
},
start: i.start,
stop: i.stop
}
}
, b_e = function() {
var e = "data-rbd-drag-handle";
return {
base: e,
draggableId: e + "-draggable-id",
contextId: e + "-context-id"
}
}()
, g_e = function() {
var e = "data-rbd-draggable";
return {
base: e,
contextId: e + "-context-id",
id: e + "-id"
}
}()
, m_e = function() {
var e = "data-rbd-droppable";
return {
base: e,
contextId: e + "-context-id",
id: e + "-id"
}
}()
, v_e = "data-rbd-scroll-container-context-id"
, y_e = function(e, t) {
return e.map((function(e) {
var n = e.styles[t];
return n ? e.selector + " { " + n + " }" : ""
}
)).join(" ")
}
, x_e = "undefined" != typeof window && void 0 !== window.document && void 0 !== window.document.createElement ? l.useLayoutEffect : l.useEffect
, O_e = function() {
var e = document.querySelector("head");
return e || Lke(!1),
e
}
, j_e = function(e) {
var t = document.createElement("style");
return e && t.setAttribute("nonce", e),
t.type = "text/css",
t
};
var k_e = function(e) {
return e && e.ownerDocument ? e.ownerDocument.defaultView : window
};
function w_e(e) {
return e instanceof k_e(e).HTMLElement
}
function C_e() {
var e = {
draggables: {},
droppables: {}
}
, t = [];
function n(e) {
t.length && t.forEach((function(t) {
return t(e)
}
))
}
function r(t) {
return e.draggables[t] || null
}
function i(t) {
return e.droppables[t] || null
}
return {
draggable: {
register: function(t) {
e.draggables[t.descriptor.id] = t,
n({
type: "ADDITION",
value: t
})
},
update: function(t, n) {
var r = e.draggables[n.descriptor.id];
r && r.uniqueId === t.uniqueId && (delete e.draggables[n.descriptor.id],
e.draggables[t.descriptor.id] = t)
},
unregister: function(t) {
var i = t.descriptor.id
, o = r(i);
o && t.uniqueId === o.uniqueId && (delete e.draggables[i],
n({
type: "REMOVAL",
value: t
}))
},
getById: function(e) {
var t = r(e);
return t || Lke(!1),
t
},
findById: r,
exists: function(e) {
return Boolean(r(e))
},
getAllByType: function(t) {
return owe(e.draggables).filter((function(e) {
return e.descriptor.type === t
}
))
}
},
droppable: {
register: function(t) {
e.droppables[t.descriptor.id] = t
},
unregister: function(t) {
var n = i(t.descriptor.id);
n && t.uniqueId === n.uniqueId && delete e.droppables[t.descriptor.id]
},
getById: function(e) {
var t = i(e);
return t || Lke(!1),
t
},
findById: i,
exists: function(e) {
return Boolean(i(e))
},
getAllByType: function(t) {
return owe(e.droppables).filter((function(e) {
return e.descriptor.type === t
}
))
}
},
subscribe: function(e) {
return t.push(e),
function() {
var n = t.indexOf(e);
-1 !== n && t.splice(n, 1)
}
},
clean: function() {
e.draggables = {},
e.droppables = {},
t.length = 0
}
}
}
var __e = s.a.createContext(null)
, M_e = function() {
var e = document.body;
return e || Lke(!1),
e
}
, S_e = {
position: "absolute",
width: "1px",
height: "1px",
margin: "-1px",
border: "0",
padding: "0",
overflow: "hidden",
clip: "rect(0 0 0 0)",
"clip-path": "inset(100%)"
}
, A_e = 0
, T_e = {
separator: "::"
};
function E_e(e, t) {
return void 0 === t && (t = T_e),
bke((function() {
return "" + e + t.separator + A_e++
}
), [t.separator, e])
}
var I_e = s.a.createContext(null);
function N_e(e) {
var t = Object(l.useRef)(e);
return Object(l.useEffect)((function() {
t.current = e
}
)),
t
}
var z_e, D_e, L_e = ((z_e = {})[13] = !0,
z_e[9] = !0,
z_e), R_e = function(e) {
L_e[e.keyCode] && e.preventDefault()
}, P_e = function() {
var e = "visibilitychange";
return "undefined" == typeof document ? e : lwe([e, "ms" + e, "webkit" + e, "moz" + e, "o" + e], (function(e) {
return "on" + e in document
}
)) || e
}(), B_e = {
type: "IDLE"
};
function F_e() {}
var V_e = ((D_e = {})[34] = !0,
D_e[33] = !0,
D_e[36] = !0,
D_e[35] = !0,
D_e);
var W_e = {
type: "IDLE"
}
, q_e = {
input: !0,
button: !0,
textarea: !0,
select: !0,
option: !0,
optgroup: !0,
video: !0,
audio: !0
};
function H_e(e, t) {
if (null == t)
return !1;
if (Boolean(q_e[t.tagName.toLowerCase()]))
return !0;
var n = t.getAttribute("contenteditable");
return "true" === n || "" === n || t !== e && H_e(e, t.parentElement)
}
function U_e(e, t) {
var n = t.target;
return !!w_e(n) && H_e(e, n)
}
var X_e = function(e) {
return mke(e.getBoundingClientRect()).center
}
, G_e = function() {
var e = "matches";
return "undefined" == typeof document ? e : lwe([e, "msMatchesSelector", "webkitMatchesSelector"], (function(e) {
return e in Element.prototype
}
)) || e
}();
function K_e(e, t) {
return null == e ? null : e[G_e](t) ? e : K_e(e.parentElement, t)
}
function Y_e(e, t) {
return e.closest ? e.closest(t) : K_e(e, t)
}
function Q_e(e) {
e.preventDefault()
}
function J_e(e) {
var t = e.expected
, n = e.phase
, r = e.isLockActive;
return e.shouldWarn,
!!r() && t === n
}
function Z_e(e) {
var t = e.lockAPI
, n = e.store
, r = e.registry
, i = e.draggableId;
if (t.isClaimed())
return !1;
var o = r.draggable.findById(i);
return !!o && !!o.options.isEnabled && !!JCe(n.getState(), i)
}
var $_e = [function(e) {
var t = Object(l.useRef)(B_e)
, n = Object(l.useRef)(Ike)
, r = bke((function() {
return {
eventName: "mousedown",
fn: function(t) {
if (!t.defaultPrevented && 0 === t.button && !(t.ctrlKey || t.metaKey || t.shiftKey || t.altKey)) {
var r = e.findClosestDraggableId(t);
if (r) {
var i = e.tryGetLock(r, a, {
sourceEvent: t
});
if (i) {
t.preventDefault();
var o = {
x: t.clientX,
y: t.clientY
};
n.current(),
u(i, o)
}
}
}
}
}
}
), [e])
, i = bke((function() {
return {
eventName: "webkitmouseforcewillbegin",
fn: function(t) {
if (!t.defaultPrevented) {
var n = e.findClosestDraggableId(t);
if (n) {
var r = e.findOptionsForDraggable(n);
r && (r.shouldRespectForcePress || e.canGetLock(n) && t.preventDefault())
}
}
}
}
}
), [e])
, o = gke((function() {
n.current = Nke(window, [i, r], {
passive: !1,
capture: !0
})
}
), [i, r])
, a = gke((function() {
"IDLE" !== t.current.type && (t.current = B_e,
n.current(),
o())
}
), [o])
, s = gke((function() {
var e = t.current;
a(),
"DRAGGING" === e.type && e.actions.cancel({
shouldBlockNextClick: !0
}),
"PENDING" === e.type && e.actions.abort()
}
), [a])
, c = gke((function() {
var e = function(e) {
var t = e.cancel
, n = e.completed
, r = e.getPhase
, i = e.setPhase;
return [{
eventName: "mousemove",
fn: function(e) {
var t = e.button
, n = e.clientX
, o = e.clientY;
if (0 === t) {
var a = {
x: n,
y: o
}
, l = r();
if ("DRAGGING" === l.type)
return e.preventDefault(),
void l.actions.move(a);
if ("PENDING" !== l.type && Lke(!1),
s = l.point,
c = a,
Math.abs(c.x - s.x) >= 5 || Math.abs(c.y - s.y) >= 5) {
var s, c;
e.preventDefault();
var u = l.actions.fluidLift(a);
i({
type: "DRAGGING",
actions: u
})
}
}
}
}, {
eventName: "mouseup",
fn: function(e) {
var i = r();
"DRAGGING" === i.type ? (e.preventDefault(),
i.actions.drop({
shouldBlockNextClick: !0
}),
n()) : t()
}
}, {
eventName: "mousedown",
fn: function(e) {
"DRAGGING" === r().type && e.preventDefault(),
t()
}
}, {
eventName: "keydown",
fn: function(e) {
if ("PENDING" !== r().type)
return 27 === e.keyCode ? (e.preventDefault(),
void t()) : void R_e(e);
t()
}
}, {
eventName: "resize",
fn: t
}, {
eventName: "scroll",
options: {
passive: !0,
capture: !1
},
fn: function() {
"PENDING" === r().type && t()
}
}, {
eventName: "webkitmouseforcedown",
fn: function(e) {
var n = r();
"IDLE" === n.type && Lke(!1),
n.actions.shouldRespectForcePress() ? t() : e.preventDefault()
}
}, {
eventName: P_e,
fn: t
}]
}({
cancel: s,
completed: a,
getPhase: function() {
return t.current
},
setPhase: function(e) {
t.current = e
}
});
n.current = Nke(window, e, {
capture: !0,
passive: !1
})
}
), [s, a])
, u = gke((function(e, n) {
"IDLE" !== t.current.type && Lke(!1),
t.current = {
type: "PENDING",
point: n,
actions: e
},
c()
}
), [c]);
x_e((function() {
return o(),
function() {
n.current()
}
}
), [o])
}
, function(e) {
var t = Object(l.useRef)(F_e)
, n = bke((function() {
return {
eventName: "keydown",
fn: function(n) {
if (!n.defaultPrevented && 32 === n.keyCode) {
var i = e.findClosestDraggableId(n);
if (i) {
var o = e.tryGetLock(i, s, {
sourceEvent: n
});
if (o) {
n.preventDefault();
var a = !0
, l = o.snapLift();
t.current(),
t.current = Nke(window, function(e, t) {
function n() {
t(),
e.cancel()
}
return [{
eventName: "keydown",
fn: function(r) {
return 27 === r.keyCode ? (r.preventDefault(),
void n()) : 32 === r.keyCode ? (r.preventDefault(),
t(),
void e.drop()) : 40 === r.keyCode ? (r.preventDefault(),
void e.moveDown()) : 38 === r.keyCode ? (r.preventDefault(),
void e.moveUp()) : 39 === r.keyCode ? (r.preventDefault(),
void e.moveRight()) : 37 === r.keyCode ? (r.preventDefault(),
void e.moveLeft()) : void (V_e[r.keyCode] ? r.preventDefault() : R_e(r))
}
}, {
eventName: "mousedown",
fn: n
}, {
eventName: "mouseup",
fn: n
}, {
eventName: "click",
fn: n
}, {
eventName: "touchstart",
fn: n
}, {
eventName: "resize",
fn: n
}, {
eventName: "wheel",
fn: n,
options: {
passive: !0
}
}, {
eventName: P_e,
fn: n
}]
}(l, s), {
capture: !0,
passive: !1
})
}
}
}
function s() {
a || Lke(!1),
a = !1,
t.current(),
r()
}
}
}
}
), [e])
, r = gke((function() {
t.current = Nke(window, [n], {
passive: !1,
capture: !0
})
}
), [n]);
x_e((function() {
return r(),
function() {
t.current()
}
}
), [r])
}
, function(e) {
var t = Object(l.useRef)(W_e)
, n = Object(l.useRef)(Ike)
, r = gke((function() {
return t.current
}
), [])
, i = gke((function(e) {
t.current = e
}
), [])
, o = bke((function() {
return {
eventName: "touchstart",
fn: function(t) {
if (!t.defaultPrevented) {
var r = e.findClosestDraggableId(t);
if (r) {
var i = e.tryGetLock(r, s, {
sourceEvent: t
});
if (i) {
var o = t.touches[0]
, a = {
x: o.clientX,
y: o.clientY
};
n.current(),
p(i, a)
}
}
}
}
}
}
), [e])
, a = gke((function() {
n.current = Nke(window, [o], {
capture: !0,
passive: !1
})
}
), [o])
, s = gke((function() {
var e = t.current;
"IDLE" !== e.type && ("PENDING" === e.type && clearTimeout(e.longPressTimerId),
i(W_e),
n.current(),
a())
}
), [a, i])
, c = gke((function() {
var e = t.current;
s(),
"DRAGGING" === e.type && e.actions.cancel({
shouldBlockNextClick: !0
}),
"PENDING" === e.type && e.actions.abort()
}
), [s])
, u = gke((function() {
var e = {
capture: !0,
passive: !1
}
, t = {
cancel: c,
completed: s,
getPhase: r
}
, i = Nke(window, function(e) {
var t = e.cancel
, n = e.completed
, r = e.getPhase;
return [{
eventName: "touchmove",
options: {
capture: !1
},
fn: function(e) {
var n = r();
if ("DRAGGING" === n.type) {
n.hasMoved = !0;
var i = e.touches[0]
, o = {
x: i.clientX,
y: i.clientY
};
e.preventDefault(),
n.actions.move(o)
} else
t()
}
}, {
eventName: "touchend",
fn: function(e) {
var i = r();
"DRAGGING" === i.type ? (e.preventDefault(),
i.actions.drop({
shouldBlockNextClick: !0
}),
n()) : t()
}
}, {
eventName: "touchcancel",
fn: function(e) {
"DRAGGING" === r().type ? (e.preventDefault(),
t()) : t()
}
}, {
eventName: "touchforcechange",
fn: function(e) {
var n = r();
"IDLE" === n.type && Lke(!1);
var i = e.touches[0];
if (i && i.force >= .15) {
var o = n.actions.shouldRespectForcePress();
if ("PENDING" !== n.type)
return o ? n.hasMoved ? void e.preventDefault() : void t() : void e.preventDefault();
o && t()
}
}
}, {
eventName: P_e,
fn: t
}]
}(t), e)
, o = Nke(window, function(e) {
var t = e.cancel
, n = e.getPhase;
return [{
eventName: "orientationchange",
fn: t
}, {
eventName: "resize",
fn: t
}, {
eventName: "contextmenu",
fn: function(e) {
e.preventDefault()
}
}, {
eventName: "keydown",
fn: function(e) {
"DRAGGING" === n().type ? (27 === e.keyCode && e.preventDefault(),
t()) : t()
}
}, {
eventName: P_e,
fn: t
}]
}(t), e);
n.current = function() {
i(),
o()
}
}
), [c, r, s])
, d = gke((function() {
var e = r();
"PENDING" !== e.type && Lke(!1);
var t = e.actions.fluidLift(e.point);
i({
type: "DRAGGING",
actions: t,
hasMoved: !1
})
}
), [r, i])
, p = gke((function(e, t) {
"IDLE" !== r().type && Lke(!1);
var n = setTimeout(d, 120);
i({
type: "PENDING",
point: t,
actions: e,
longPressTimerId: n
}),
u()
}
), [u, r, i, d]);
x_e((function() {
return a(),
function() {
n.current();
var e = r();
"PENDING" === e.type && (clearTimeout(e.longPressTimerId),
i(W_e))
}
}
), [r, a, i]),
x_e((function() {
return Nke(window, [{
eventName: "touchmove",
fn: function() {},
options: {
capture: !1,
passive: !1
}
}])
}
), [])
}
];
function eMe(e) {
var t = e.contextId
, n = e.store
, r = e.registry
, i = e.customSensors
, o = e.enableDefaultSensors
, a = [].concat(o ? $_e : [], i || [])
, s = Object(l.useState)((function() {
return function() {
var e = null;
function t() {
e || Lke(!1),
e = null
}
return {
isClaimed: function() {
return Boolean(e)
},
isActive: function(t) {
return t === e
},
claim: function(t) {
e && Lke(!1);
var n = {
abandon: t
};
return e = n,
n
},
release: t,
tryAbandon: function() {
e && (e.abandon(),
t())
}
}
}()
}
))[0]
, c = gke((function(e, t) {
e.isDragging && !t.isDragging && s.tryAbandon()
}
), [s]);
x_e((function() {
var e = n.getState();
return n.subscribe((function() {
var t = n.getState();
c(e, t),
e = t
}
))
}
), [s, n, c]),
x_e((function() {
return s.tryAbandon
}
), [s.tryAbandon]);
for (var u = gke((function(e) {
return Z_e({
lockAPI: s,
registry: r,
store: n,
draggableId: e
})
}
), [s, r, n]), d = gke((function(e, i, o) {
return function(e) {
var t = e.lockAPI
, n = e.contextId
, r = e.store
, i = e.registry
, o = e.draggableId
, a = e.forceSensorStop
, l = e.sourceEvent;
if (!Z_e({
lockAPI: t,
store: r,
registry: i,
draggableId: o
}))
return null;
var s = i.draggable.getById(o)
, c = function(e, t) {
var n = "[" + g_e.contextId + '="' + e + '"]'
, r = lwe(swe(document.querySelectorAll(n)), (function(e) {
return e.getAttribute(g_e.id) === t
}
));
return r && w_e(r) ? r : null
}(n, s.descriptor.id);
if (!c)
return null;
if (l && !s.options.canDragInteractiveElements && U_e(c, l))
return null;
var u = t.claim(a || Ike)
, d = "PRE_DRAG";
function p() {
return s.options.shouldRespectForcePress
}
function h() {
return t.isActive(u)
}
var f = function(e, t) {
J_e({
expected: e,
phase: d,
isLockActive: h,
shouldWarn: !0
}) && r.dispatch(t())
}
.bind(null, "DRAGGING");
function b(e) {
function n() {
t.release(),
d = "COMPLETED"
}
function i(t, i) {
if (void 0 === i && (i = {
shouldBlockNextClick: !1
}),
e.cleanup(),
i.shouldBlockNextClick) {
var o = Nke(window, [{
eventName: "click",
fn: Q_e,
options: {
once: !0,
passive: !1,
capture: !0
}
}]);
setTimeout(o)
}
n(),
r.dispatch(wCe({
reason: t
}))
}
return "PRE_DRAG" !== d && (n(),
"PRE_DRAG" !== d && Lke(!1)),
r.dispatch(function(e) {
return {
type: "LIFT",
payload: e
}
}(e.liftActionArgs)),
d = "DRAGGING",
Vt({
isActive: function() {
return J_e({
expected: "DRAGGING",
phase: d,
isLockActive: h,
shouldWarn: !1
})
},
shouldRespectForcePress: p,
drop: function(e) {
return i("DROP", e)
},
cancel: function(e) {
return i("CANCEL", e)
}
}, e.actions)
}
return {
isActive: function() {
return J_e({
expected: "PRE_DRAG",
phase: d,
isLockActive: h,
shouldWarn: !1
})
},
shouldRespectForcePress: p,
fluidLift: function(e) {
var t = Tke((function(e) {
f((function() {
return vCe({
client: e
})
}
))
}
));
return Vt({}, b({
liftActionArgs: {
id: o,
clientSelection: e,
movementMode: "FLUID"
},
cleanup: function() {
return t.cancel()
},
actions: {
move: t
}
}), {
move: t
})
},
snapLift: function() {
var e = {
moveUp: function() {
return f(yCe)
},
moveRight: function() {
return f(OCe)
},
moveDown: function() {
return f(xCe)
},
moveLeft: function() {
return f(jCe)
}
};
return b({
liftActionArgs: {
id: o,
clientSelection: X_e(c),
movementMode: "SNAP"
},
cleanup: Ike,
actions: e
})
},
abort: function() {
J_e({
expected: "PRE_DRAG",
phase: d,
isLockActive: h,
shouldWarn: !0
}) && t.release()
}
}
}({
lockAPI: s,
registry: r,
contextId: t,
store: n,
draggableId: e,
forceSensorStop: i,
sourceEvent: o && o.sourceEvent ? o.sourceEvent : null
})
}
), [t, s, r, n]), p = gke((function(e) {
return function(e, t) {
var n = function(e, t) {
var n, r = t.target;
if (!((n = r)instanceof k_e(n).Element))
return null;
var i = function(e) {
return "[" + b_e.contextId + '="' + e + '"]'
}(e)
, o = Y_e(r, i);
return o && w_e(o) ? o : null
}(e, t);
return n ? n.getAttribute(b_e.draggableId) : null
}(t, e)
}
), [t]), h = gke((function(e) {
var t = r.draggable.findById(e);
return t ? t.options : null
}
), [r.draggable]), f = gke((function() {
s.isClaimed() && (s.tryAbandon(),
"IDLE" !== n.getState().phase && n.dispatch({
type: "FLUSH",
payload: null
}))
}
), [s, n]), b = gke(s.isClaimed, [s]), g = bke((function() {
return {
canGetLock: u,
tryGetLock: d,
findClosestDraggableId: p,
findOptionsForDraggable: h,
tryReleaseLock: f,
isLockClaimed: b
}
}
), [u, d, p, h, f, b]), m = 0; m < a.length; m++)
a[m](g)
}
function tMe(e) {
return e.current || Lke(!1),
e.current
}
function nMe(e) {
var t = e.contextId
, n = e.setCallbacks
, r = e.sensors
, i = e.nonce
, o = e.dragHandleUsageInstructions
, a = Object(l.useRef)(null)
, c = N_e(e)
, u = gke((function() {
return function(e) {
return {
onBeforeCapture: e.onBeforeCapture,
onBeforeDragStart: e.onBeforeDragStart,
onDragStart: e.onDragStart,
onDragEnd: e.onDragEnd,
onDragUpdate: e.onDragUpdate
}
}(c.current)
}
), [c])
, d = function(e) {
var t = bke((function() {
return function(e) {
return "rbd-announcement-" + e
}(e)
}
), [e])
, n = Object(l.useRef)(null);
return Object(l.useEffect)((function() {
var e = document.createElement("div");
return n.current = e,
e.id = t,
e.setAttribute("aria-live", "assertive"),
e.setAttribute("aria-atomic", "true"),
Vt(e.style, S_e),
M_e().appendChild(e),
function() {
setTimeout((function() {
var t = M_e();
t.contains(e) && t.removeChild(e),
e === n.current && (n.current = null)
}
))
}
}
), [t]),
gke((function(e) {
var t = n.current;
t && (t.textContent = e)
}
), [])
}(t)
, p = function(e) {
var t = e.contextId
, n = e.text
, r = E_e("hidden-text", {
separator: "-"
})
, i = bke((function() {
return "rbd-hidden-text-" + (e = {
contextId: t,
uniqueId: r
}).contextId + "-" + e.uniqueId;
var e
}
), [r, t]);
return Object(l.useEffect)((function() {
var e = document.createElement("div");
return e.id = i,
e.textContent = n,
e.style.display = "none",
M_e().appendChild(e),
function() {
var t = M_e();
t.contains(e) && t.removeChild(e)
}
}
), [i, n]),
i
}({
contextId: t,
text: o
})
, h = function(e, t) {
var n = bke((function() {
return function(e) {
var t, n = (t = e,
function(e) {
return "[" + e + '="' + t + '"]'
}
), r = function() {
var e = "\n cursor: -webkit-grab;\n cursor: grab;\n ";
return {
selector: n(b_e.contextId),
styles: {
always: "\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",
resting: e,
dragging: "pointer-events: none;",
dropAnimating: e
}
}
}(), i = [function() {
var e = "\n transition: " + TCe.outOfTheWay + ";\n ";
return {
selector: n(g_e.contextId),
styles: {
dragging: e,
dropAnimating: e,
userCancel: e
}
}
}(), r, {
selector: n(m_e.contextId),
styles: {
always: "overflow-anchor: none;"
}
}, {
selector: "body",
styles: {
dragging: "\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "
}
}];
return {
always: y_e(i, "always"),
resting: y_e(i, "resting"),
dragging: y_e(i, "dragging"),
dropAnimating: y_e(i, "dropAnimating"),
userCancel: y_e(i, "userCancel")
}
}(e)
}
), [e])
, r = Object(l.useRef)(null)
, i = Object(l.useRef)(null)
, o = gke(Ake((function(e) {
var t = i.current;
t || Lke(!1),
t.textContent = e
}
)), [])
, a = gke((function(e) {
var t = r.current;
t || Lke(!1),
t.textContent = e
}
), []);
x_e((function() {
(r.current || i.current) && Lke(!1);
var l = j_e(t)
, s = j_e(t);
return r.current = l,
i.current = s,
l.setAttribute("data-rbd-always", e),
s.setAttribute("data-rbd-dynamic", e),
O_e().appendChild(l),
O_e().appendChild(s),
a(n.always),
o(n.resting),
function() {
var e = function(e) {
var t = e.current;
t || Lke(!1),
O_e().removeChild(t),
e.current = null
};
e(r),
e(i)
}
}
), [t, a, o, n.always, n.resting, e]);
var s = gke((function() {
return o(n.dragging)
}
), [o, n.dragging])
, c = gke((function(e) {
o("DROP" !== e ? n.userCancel : n.dropAnimating)
}
), [o, n.dropAnimating, n.userCancel])
, u = gke((function() {
i.current && o(n.resting)
}
), [o, n.resting]);
return bke((function() {
return {
dragging: s,
dropping: c,
resting: u
}
}
), [s, c, u])
}(t, i)
, f = gke((function(e) {
tMe(a).dispatch(e)
}
), [])
, b = bke((function() {
return Na({
publishWhileDragging: hCe,
updateDroppableScroll: bCe,
updateDroppableIsEnabled: gCe,
updateDroppableIsCombineEnabled: mCe,
collectionStarting: fCe
}, f)
}
), [f])
, g = function() {
var e = bke(C_e, []);
return Object(l.useEffect)((function() {
return function() {
requestAnimationFrame(e.clean)
}
}
), [e]),
e
}()
, m = bke((function() {
return QCe(g, b)
}
), [g, b])
, v = bke((function() {
return f_e(Vt({
scrollWindow: ZCe,
scrollDroppable: m.scrollDroppable
}, Na({
move: vCe
}, f)))
}
), [m.scrollDroppable, f])
, y = function(e) {
var t = Object(l.useRef)({})
, n = Object(l.useRef)(null)
, r = Object(l.useRef)(null)
, i = Object(l.useRef)(!1)
, o = gke((function(e, n) {
var r = {
id: e,
focus: n
};
return t.current[e] = r,
function() {
var n = t.current;
n[e] !== r && delete n[e]
}
}
), [])
, a = gke((function(t) {
var n = function(e, t) {
var n = "[" + b_e.contextId + '="' + e + '"]'
, r = swe(document.querySelectorAll(n));
if (!r.length)
return null;
var i = lwe(r, (function(e) {
return e.getAttribute(b_e.draggableId) === t
}
));
return i && w_e(i) ? i : null
}(e, t);
n && n !== document.activeElement && n.focus()
}
), [e])
, s = gke((function(e, t) {
n.current === e && (n.current = t)
}
), [])
, c = gke((function() {
r.current || i.current && (r.current = requestAnimationFrame((function() {
r.current = null;
var e = n.current;
e && a(e)
}
)))
}
), [a])
, u = gke((function(e) {
n.current = null;
var t = document.activeElement;
t && t.getAttribute(b_e.draggableId) === e && (n.current = e)
}
), []);
return x_e((function() {
return i.current = !0,
function() {
i.current = !1;
var e = r.current;
e && cancelAnimationFrame(e)
}
}
), []),
bke((function() {
return {
register: o,
tryRecordFocus: u,
tryRestoreFocusRecorded: c,
tryShiftRecord: s
}
}
), [o, u, c, s])
}(t)
, x = bke((function() {
return UCe({
announce: d,
autoScroller: v,
dimensionMarshal: m,
focusMarshal: y,
getResponders: u,
styleMarshal: h
})
}
), [d, v, m, y, u, h]);
a.current = x;
var O = gke((function() {
var e = tMe(a);
"IDLE" !== e.getState().phase && e.dispatch({
type: "FLUSH",
payload: null
})
}
), [])
, j = gke((function() {
var e = tMe(a).getState();
return e.isDragging || "DROP_ANIMATING" === e.phase
}
), []);
n(bke((function() {
return {
isDragging: j,
tryAbort: O
}
}
), [j, O]));
var k = gke((function(e) {
return JCe(tMe(a).getState(), e)
}
), [])
, w = gke((function() {
return Jwe(tMe(a).getState())
}
), [])
, C = bke((function() {
return {
marshal: m,
focus: y,
contextId: t,
canLift: k,
isMovementAllowed: w,
dragHandleUsageInstructionsId: p,
registry: g
}
}
), [t, m, p, y, k, w, g]);
return eMe({
contextId: t,
store: x,
registry: g,
customSensors: r,
enableDefaultSensors: !1 !== e.enableDefaultSensors
}),
Object(l.useEffect)((function() {
return O
}
), [O]),
s.a.createElement(I_e.Provider, {
value: C
}, s.a.createElement(Ho, {
context: __e,
store: x
}, e.children))
}
var rMe = 0;
function iMe(e) {
var t = bke((function() {
return "" + rMe++
}
), [])
, n = e.dragHandleUsageInstructions || "\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n";
return s.a.createElement(Rke, null, (function(r) {
return s.a.createElement(nMe, {
nonce: e.nonce,
contextId: t,
setCallbacks: r,
dragHandleUsageInstructions: n,
enableDefaultSensors: e.enableDefaultSensors,
sensors: e.sensors,
onBeforeCapture: e.onBeforeCapture,
onBeforeDragStart: e.onBeforeDragStart,
onDragStart: e.onDragStart,
onDragUpdate: e.onDragUpdate,
onDragEnd: e.onDragEnd
}, e.children)
}
))
}
var oMe = function(e) {
return function(t) {
return e === t
}
}
, aMe = oMe("scroll")
, lMe = oMe("auto")
, sMe = (oMe("visible"),
function(e, t) {
return t(e.overflowX) || t(e.overflowY)
}
)
, cMe = function e(t) {
return null == t || t === document.body || t === document.documentElement ? null : function(e) {
var t = window.getComputedStyle(e)
, n = {
overflowX: t.overflowX,
overflowY: t.overflowY
};
return sMe(n, aMe) || sMe(n, lMe)
}(t) ? t : e(t.parentElement)
}
, uMe = function(e) {
return {
x: e.scrollLeft,
y: e.scrollTop
}
}
, dMe = function e(t) {
return !!t && ("fixed" === window.getComputedStyle(t).position || e(t.parentElement))
}
, pMe = {
passive: !1
}
, hMe = {
passive: !0
}
, fMe = function(e) {
return e.shouldPublishImmediately ? pMe : hMe
};
function bMe(e) {
var t = Object(l.useContext)(e);
return t || Lke(!1),
t
}
var gMe = function(e) {
return e && e.env.closestScrollable || null
};
function mMe() {}
var vMe = {
width: 0,
height: 0,
margin: {
top: 0,
right: 0,
bottom: 0,
left: 0
}
}
, yMe = s.a.memo((function(e) {
var t = Object(l.useRef)(null)
, n = gke((function() {
t.current && (clearTimeout(t.current),
t.current = null)
}
), [])
, r = e.animate
, i = e.onTransitionEnd
, o = e.onClose
, a = e.contextId
, c = Object(l.useState)("open" === e.animate)
, u = c[0]
, d = c[1];
Object(l.useEffect)((function() {
return u ? "open" !== r ? (n(),
d(!1),
mMe) : t.current ? mMe : (t.current = setTimeout((function() {
t.current = null,
d(!1)
}
)),
n) : mMe
}
), [r, u, n]);
var p = gke((function(e) {
"height" === e.propertyName && (i(),
"close" === r && o())
}
), [r, o, i])
, h = function(e) {
var t = e.isAnimatingOpenOnMount
, n = e.placeholder
, r = e.animate
, i = function(e) {
var t = e.placeholder;
return e.isAnimatingOpenOnMount || "close" === e.animate ? vMe : {
height: t.client.borderBox.height,
width: t.client.borderBox.width,
margin: t.client.margin
}
}({
isAnimatingOpenOnMount: t,
placeholder: n,
animate: r
});
return {
display: n.display,
boxSizing: "border-box",
width: i.width,
height: i.height,
marginTop: i.margin.top,
marginRight: i.margin.right,
marginBottom: i.margin.bottom,
marginLeft: i.margin.left,
flexShrink: "0",
flexGrow: "0",
pointerEvents: "none",
transition: "none" !== r ? TCe.placeholder : null
}
}({
isAnimatingOpenOnMount: u,
animate: e.animate,
placeholder: e.placeholder
});
return s.a.createElement(e.placeholder.tagName, {
style: h,
"data-rbd-placeholder-context-id": a,
onTransitionEnd: p,
ref: e.innerRef
})
}
))
, xMe = s.a.createContext(null)
, OMe = function(e) {
function t() {
for (var t, n = arguments.length, r = new Array(n), i = 0; i < n; i++)
r[i] = arguments[i];
return (t = e.call.apply(e, [this].concat(r)) || this).state = {
isVisible: Boolean(t.props.on),
data: t.props.on,
animate: t.props.shouldAnimate && t.props.on ? "open" : "none"
},
t.onClose = function() {
"close" === t.state.animate && t.setState({
isVisible: !1
})
}
,
t
}
return Object(Ft.a)(t, e),
t.getDerivedStateFromProps = function(e, t) {
return e.shouldAnimate ? e.on ? {
isVisible: !0,
data: e.on,
animate: "open"
} : t.isVisible ? {
isVisible: !0,
data: t.data,
animate: "close"
} : {
isVisible: !1,
animate: "close",
data: null
} : {
isVisible: Boolean(e.on),
data: e.on,
animate: "none"
}
}
,
t.prototype.render = function() {
if (!this.state.isVisible)
return null;
var e = {
onClose: this.onClose,
data: this.state.data,
animate: this.state.animate
};
return this.props.children(e)
}
,
t
}(s.a.PureComponent)
, jMe = function(e, t) {
return t ? TCe.drop(t.duration) : e ? TCe.snap : TCe.fluid
}
, kMe = function(e, t) {
return e ? t ? _Ce : MCe : null
};
function wMe(e) {
return "DRAGGING" === e.type ? function(e) {
var t = e.dimension.client
, n = e.offset
, r = e.combineWith
, i = e.dropping
, o = Boolean(r)
, a = function(e) {
return null != e.forceShouldAnimate ? e.forceShouldAnimate : "SNAP" === e.mode
}(e)
, l = Boolean(i)
, s = l ? function(e, t) {
var n = ECe(e);
return n ? t ? n + " scale(" + SCe + ")" : n : null
}(n, o) : ICe(n);
return {
position: "fixed",
top: t.marginBox.top,
left: t.marginBox.left,
boxSizing: "border-box",
width: t.borderBox.width,
height: t.borderBox.height,
transition: jMe(a, i),
transform: s,
opacity: kMe(o, l),
zIndex: l ? 4500 : 5e3,
pointerEvents: "none"
}
}(e) : {
transform: ICe((t = e).offset),
transition: t.shouldAnimateDisplacement ? null : "none"
};
var t
}
function CMe(e) {
e.preventDefault()
}
var _Me = function(e, t) {
return e === t
}
, MMe = function(e) {
var t = e.combine
, n = e.destination;
return n ? n.droppableId : t ? t.droppableId : null
};
function SMe(e) {
return {
isDragging: !1,
isDropAnimating: !1,
isClone: !1,
dropAnimation: null,
mode: null,
draggingOver: null,
combineTargetFor: e,
combineWith: null
}
}
var AMe = {
mapped: {
type: "SECONDARY",
offset: Uke,
combineTargetFor: null,
shouldAnimateDisplacement: !0,
snapshot: SMe(null)
}
}
, TMe = va((function() {
var e = function() {
var e = Ake((function(e, t) {
return {
x: e,
y: t
}
}
))
, t = Ake((function(e, t, n, r, i) {
return {
isDragging: !0,
isClone: t,
isDropAnimating: Boolean(i),
dropAnimation: i,
mode: e,
draggingOver: n,
combineWith: r,
combineTargetFor: null
}
}
))
, n = Ake((function(e, n, r, i, o, a, l) {
return {
mapped: {
type: "DRAGGING",
dropping: null,
draggingOver: o,
combineWith: a,
mode: n,
offset: e,
dimension: r,
forceShouldAnimate: l,
snapshot: t(n, i, o, a, null)
}
}
}
));
return function(r, i) {
if (r.isDragging) {
if (r.critical.draggable.id !== i.draggableId)
return null;
var o = r.current.client.offset
, a = r.dimensions.draggables[i.draggableId]
, l = Ywe(r.impact)
, s = (u = r.impact).at && "COMBINE" === u.at.type ? u.at.combine.draggableId : null
, c = r.forceShouldAnimate;
return n(e(o.x, o.y), r.movementMode, a, i.isClone, l, s, c)
}
var u;
if ("DROP_ANIMATING" === r.phase) {
var d = r.completed;
if (d.result.draggableId !== i.draggableId)
return null;
var p = i.isClone
, h = r.dimensions.draggables[i.draggableId]
, f = d.result
, b = f.mode
, g = MMe(f)
, m = function(e) {
return e.combine ? e.combine.draggableId : null
}(f)
, v = {
duration: r.dropDuration,
curve: CCe,
moveTo: r.newHomeClientOffset,
opacity: m ? _Ce : null,
scale: m ? SCe : null
};
return {
mapped: {
type: "DRAGGING",
offset: r.newHomeClientOffset,
dimension: h,
dropping: v,
draggingOver: g,
combineWith: m,
mode: b,
forceShouldAnimate: null,
snapshot: t(b, p, g, m, v)
}
}
}
return null
}
}()
, t = function() {
var e = Ake((function(e, t) {
return {
x: e,
y: t
}
}
))
, t = Ake(SMe)
, n = Ake((function(e, n, r) {
return void 0 === n && (n = null),
{
mapped: {
type: "SECONDARY",
offset: e,
combineTargetFor: n,
shouldAnimateDisplacement: r,
snapshot: t(n)
}
}
}
))
, r = function(e) {
return e ? n(Uke, e, !0) : null
}
, i = function(t, i, o, a) {
var l = o.displaced.visible[t]
, s = Boolean(a.inVirtualList && a.effected[t])
, c = bwe(o)
, u = c && c.draggableId === t ? i : null;
if (!l) {
if (!s)
return r(u);
if (o.displaced.invisible[t])
return null;
var d = Yke(a.displacedBy.point)
, p = e(d.x, d.y);
return n(p, u, !0)
}
if (s)
return r(u);
var h = o.displacedBy.point
, f = e(h.x, h.y);
return n(f, u, l.shouldAnimate)
};
return function(e, t) {
if (e.isDragging)
return e.critical.draggable.id === t.draggableId ? null : i(t.draggableId, e.critical.draggable.id, e.impact, e.afterCritical);
if ("DROP_ANIMATING" === e.phase) {
var n = e.completed;
return n.result.draggableId === t.draggableId ? null : i(t.draggableId, n.result.draggableId, n.impact, n.afterCritical)
}
return null
}
}();
return function(n, r) {
return e(n, r) || t(n, r) || AMe
}
}
), {
dropAnimationFinished: function() {
return {
type: "DROP_ANIMATION_FINISHED",
payload: null
}
}
}, null, {
context: __e,
pure: !0,
areStatePropsEqual: _Me
})((function(e) {
var t = Object(l.useRef)(null)
, n = gke((function(e) {
t.current = e
}
), [])
, r = gke((function() {
return t.current
}
), [])
, i = bMe(I_e)
, o = i.contextId
, a = i.dragHandleUsageInstructionsId
, s = i.registry
, c = bMe(xMe)
, u = c.type
, d = c.droppableId
, p = bke((function() {
return {
id: e.draggableId,
index: e.index,
type: u,
droppableId: d
}
}
), [e.draggableId, e.index, u, d])
, h = e.children
, f = e.draggableId
, b = e.isEnabled
, g = e.shouldRespectForcePress
, m = e.canDragInteractiveElements
, v = e.isClone
, y = e.mapped
, x = e.dropAnimationFinished;
v || function(e) {
var t = E_e("draggable")
, n = e.descriptor
, r = e.registry
, i = e.getDraggableRef
, o = e.canDragInteractiveElements
, a = e.shouldRespectForcePress
, s = e.isEnabled
, c = bke((function() {
return {
canDragInteractiveElements: o,
shouldRespectForcePress: a,
isEnabled: s
}
}
), [o, s, a])
, u = gke((function(e) {
var t = i();
return t || Lke(!1),
function(e, t, n) {
void 0 === n && (n = Uke);
var r = window.getComputedStyle(t)
, i = t.getBoundingClientRect()
, o = Cke(i, r)
, a = wke(o, n);
return {
descriptor: e,
placeholder: {
client: o,
tagName: t.tagName.toLowerCase(),
display: r.display
},
displaceBy: {
x: o.marginBox.width,
y: o.marginBox.height
},
client: o,
page: a
}
}(n, t, e)
}
), [n, i])
, d = bke((function() {
return {
uniqueId: t,
descriptor: n,
options: c,
getDimension: u
}
}
), [n, u, c, t])
, p = Object(l.useRef)(d)
, h = Object(l.useRef)(!0);
x_e((function() {
return r.draggable.register(p.current),
function() {
return r.draggable.unregister(p.current)
}
}
), [r.draggable]),
x_e((function() {
if (h.current)
h.current = !1;
else {
var e = p.current;
p.current = d,
r.draggable.update(d, e)
}
}
), [d, r.draggable])
}(bke((function() {
return {
descriptor: p,
registry: s,
getDraggableRef: r,
canDragInteractiveElements: m,
shouldRespectForcePress: g,
isEnabled: b
}
}
), [p, s, r, m, g, b]));
var O = bke((function() {
return b ? {
tabIndex: 0,
role: "button",
"aria-describedby": a,
"data-rbd-drag-handle-draggable-id": f,
"data-rbd-drag-handle-context-id": o,
draggable: !1,
onDragStart: CMe
} : null
}
), [o, a, f, b])
, j = gke((function(e) {
"DRAGGING" === y.type && y.dropping && "transform" === e.propertyName && x()
}
), [x, y])
, k = bke((function() {
var e = wMe(y)
, t = "DRAGGING" === y.type && y.dropping ? j : null;
return {
innerRef: n,
draggableProps: {
"data-rbd-draggable-context-id": o,
"data-rbd-draggable-id": f,
style: e,
onTransitionEnd: t
},
dragHandleProps: O
}
}
), [o, O, f, y, j, n])
, w = bke((function() {
return {
draggableId: p.id,
type: p.type,
source: {
index: p.index,
droppableId: p.droppableId
}
}
}
), [p.droppableId, p.id, p.index, p.type]);
return h(k, y.snapshot, w)
}
));
function EMe(e) {
return bMe(xMe).isUsingCloneFor !== e.draggableId || e.isClone ? s.a.createElement(TMe, e) : null
}
function IMe(e) {
var t = "boolean" != typeof e.isDragDisabled || !e.isDragDisabled
, n = Boolean(e.disableInteractiveElementBlocking)
, r = Boolean(e.shouldRespectForcePress);
return s.a.createElement(EMe, Vt({}, e, {
isClone: !1,
isEnabled: t,
canDragInteractiveElements: n,
shouldRespectForcePress: r
}))
}
var NMe = function(e, t) {
return e === t.droppable.type
}
, zMe = function(e, t) {
return t.draggables[e.draggable.id]
}
, DMe = {
mode: "standard",
type: "DEFAULT",
direction: "vertical",
isDropDisabled: !1,
isCombineEnabled: !1,
ignoreContainerClipping: !1,
renderClone: null,
getContainerForClone: function() {
return document.body || Lke(!1),
document.body
}
}
, LMe = va((function() {
var e = {
placeholder: null,
shouldAnimatePlaceholder: !0,
snapshot: {
isDraggingOver: !1,
draggingOverWith: null,
draggingFromThisWith: null,
isUsingPlaceholder: !1
},
useClone: null
}
, t = Vt({}, e, {
shouldAnimatePlaceholder: !1
})
, n = Ake((function(e) {
return {
draggableId: e.id,
type: e.type,
source: {
index: e.index,
droppableId: e.droppableId
}
}
}
))
, r = Ake((function(r, i, o, a, l, s) {
var c = l.descriptor.id;
if (l.descriptor.droppableId === r) {
var u = s ? {
render: s,
dragging: n(l.descriptor)
} : null
, d = {
isDraggingOver: o,
draggingOverWith: o ? c : null,
draggingFromThisWith: c,
isUsingPlaceholder: !0
};
return {
placeholder: l.placeholder,
shouldAnimatePlaceholder: !1,
snapshot: d,
useClone: u
}
}
if (!i)
return t;
if (!a)
return e;
var p = {
isDraggingOver: o,
draggingOverWith: c,
draggingFromThisWith: null,
isUsingPlaceholder: !0
};
return {
placeholder: l.placeholder,
shouldAnimatePlaceholder: !0,
snapshot: p,
useClone: null
}
}
));
return function(n, i) {
var o = i.droppableId
, a = i.type
, l = !i.isDropDisabled
, s = i.renderClone;
if (n.isDragging) {
var c = n.critical;
if (!NMe(a, c))
return t;
var u = zMe(c, n.dimensions)
, d = Ywe(n.impact) === o;
return r(o, l, d, d, u, s)
}
if ("DROP_ANIMATING" === n.phase) {
var p = n.completed;
if (!NMe(a, p.critical))
return t;
var h = zMe(p.critical, n.dimensions);
return r(o, l, MMe(p.result) === o, Ywe(p.impact) === o, h, s)
}
if ("IDLE" === n.phase && n.completed && !n.shouldFlush) {
var f = n.completed;
if (!NMe(a, f.critical))
return t;
var b = Ywe(f.impact) === o
, g = Boolean(f.impact.at && "COMBINE" === f.impact.at.type)
, m = f.critical.droppable.id === o;
return b ? g ? e : t : m ? e : t
}
return t
}
}
), {
updateViewportMaxScroll: function(e) {
return {
type: "UPDATE_VIEWPORT_MAX_SCROLL",
payload: e
}
}
}, null, {
context: __e,
pure: !0,
areStatePropsEqual: _Me
})((function(e) {
var t = Object(l.useContext)(I_e);
t || Lke(!1);
var n = t.contextId
, r = t.isMovementAllowed
, i = Object(l.useRef)(null)
, o = Object(l.useRef)(null)
, a = e.children
, c = e.droppableId
, d = e.type
, p = e.mode
, h = e.direction
, f = e.ignoreContainerClipping
, b = e.isDropDisabled
, g = e.isCombineEnabled
, m = e.snapshot
, v = e.useClone
, y = e.updateViewportMaxScroll
, x = e.getContainerForClone
, O = gke((function() {
return i.current
}
), [])
, j = gke((function(e) {
i.current = e
}
), [])
, k = (gke((function() {
return o.current
}
), []),
gke((function(e) {
o.current = e
}
), []))
, w = gke((function() {
r() && y({
maxScroll: KCe()
})
}
), [r, y]);
!function(e) {
var t = Object(l.useRef)(null)
, n = bMe(I_e)
, r = E_e("droppable")
, i = n.registry
, o = n.marshal
, a = N_e(e)
, s = bke((function() {
return {
id: e.droppableId,
type: e.type,
mode: e.mode
}
}
), [e.droppableId, e.mode, e.type])
, c = Object(l.useRef)(s)
, u = bke((function() {
return Ake((function(e, n) {
t.current || Lke(!1);
var r = {
x: e,
y: n
};
o.updateDroppableScroll(s.id, r)
}
))
}
), [s.id, o])
, d = gke((function() {
var e = t.current;
return e && e.env.closestScrollable ? uMe(e.env.closestScrollable) : Uke
}
), [])
, p = gke((function() {
var e = d();
u(e.x, e.y)
}
), [d, u])
, h = bke((function() {
return Tke(p)
}
), [p])
, f = gke((function() {
var e = t.current
, n = gMe(e);
e && n || Lke(!1),
e.scrollOptions.shouldPublishImmediately ? p() : h()
}
), [h, p])
, b = gke((function(e, r) {
t.current && Lke(!1);
var i = a.current
, o = i.getDroppableRef();
o || Lke(!1);
var l = function(e) {
return {
closestScrollable: cMe(e),
isFixedOnPage: dMe(e)
}
}(o)
, c = {
ref: o,
descriptor: s,
env: l,
scrollOptions: r
};
t.current = c;
var u = function(e) {
var t = e.ref
, n = e.descriptor
, r = e.env
, i = e.windowScroll
, o = e.direction
, a = e.isDropDisabled
, l = e.isCombineEnabled
, s = e.shouldClipSubject
, c = r.closestScrollable
, u = function(e, t) {
var n = _ke(e);
if (!t)
return n;
if (e !== t)
return n;
var r = n.paddingBox.top - t.scrollTop
, i = n.paddingBox.left - t.scrollLeft
, o = r + t.scrollHeight
, a = i + t.scrollWidth
, l = vke({
top: r,
right: a,
bottom: o,
left: i
}, n.border);
return Oke({
borderBox: l,
margin: n.margin,
border: n.border,
padding: n.padding
})
}(t, c)
, d = wke(u, i)
, p = function() {
if (!c)
return null;
var e = _ke(c)
, t = {
scrollHeight: c.scrollHeight,
scrollWidth: c.scrollWidth
};
return {
client: e,
page: wke(e, i),
scroll: uMe(c),
scrollSize: t,
shouldClipSubject: s
}
}()
, h = function(e) {
var t = e.descriptor
, n = e.isEnabled
, r = e.isCombineEnabled
, i = e.isFixedOnPage
, o = e.direction
, a = e.client
, l = e.page
, s = e.closest
, c = function() {
if (!s)
return null;
var e = s.scrollSize
, t = s.client
, n = XCe({
scrollHeight: e.scrollHeight,
scrollWidth: e.scrollWidth,
height: t.paddingBox.height,
width: t.paddingBox.width
});
return {
pageMarginBox: s.page.marginBox,
frameClient: t,
scrollSize: e,
shouldClipSubject: s.shouldClipSubject,
scroll: {
initial: s.scroll,
current: s.scroll,
max: n,
diff: {
value: Uke,
displacement: Uke
}
}
}
}()
, u = "vertical" === o ? wwe : Cwe;
return {
descriptor: t,
isCombineEnabled: r,
isFixedOnPage: i,
axis: u,
isEnabled: n,
client: a,
page: l,
frame: c,
subject: rwe({
page: l,
withPlaceholder: null,
axis: u,
frame: c
})
}
}({
descriptor: n,
isEnabled: !a,
isCombineEnabled: l,
isFixedOnPage: r.isFixedOnPage,
direction: o,
client: u,
page: d,
closest: p
});
return h
}({
ref: o,
descriptor: s,
env: l,
windowScroll: e,
direction: i.direction,
isDropDisabled: i.isDropDisabled,
isCombineEnabled: i.isCombineEnabled,
shouldClipSubject: !i.ignoreContainerClipping
})
, d = l.closestScrollable;
return d && (d.setAttribute(v_e, n.contextId),
d.addEventListener("scroll", f, fMe(c.scrollOptions))),
u
}
), [n.contextId, s, f, a])
, g = gke((function() {
var e = t.current
, n = gMe(e);
return e && n || Lke(!1),
uMe(n)
}
), [])
, m = gke((function() {
var e = t.current;
e || Lke(!1);
var n = gMe(e);
t.current = null,
n && (h.cancel(),
n.removeAttribute(v_e),
n.removeEventListener("scroll", f, fMe(e.scrollOptions)))
}
), [f, h])
, v = gke((function(e) {
var n = t.current;
n || Lke(!1);
var r = gMe(n);
r || Lke(!1),
r.scrollTop += e.y,
r.scrollLeft += e.x
}
), [])
, y = bke((function() {
return {
getDimensionAndWatchScroll: b,
getScrollWhileDragging: g,
dragStopped: m,
scroll: v
}
}
), [m, b, g, v])
, x = bke((function() {
return {
uniqueId: r,
descriptor: s,
callbacks: y
}
}
), [y, s, r]);
x_e((function() {
return c.current = x.descriptor,
i.droppable.register(x),
function() {
t.current && m(),
i.droppable.unregister(x)
}
}
), [y, s, m, x, o, i.droppable]),
x_e((function() {
t.current && o.updateDroppableIsEnabled(c.current.id, !e.isDropDisabled)
}
), [e.isDropDisabled, o]),
x_e((function() {
t.current && o.updateDroppableIsCombineEnabled(c.current.id, e.isCombineEnabled)
}
), [e.isCombineEnabled, o])
}({
droppableId: c,
type: d,
mode: p,
direction: h,
isDropDisabled: b,
isCombineEnabled: g,
ignoreContainerClipping: f,
getDroppableRef: O
});
var C = s.a.createElement(OMe, {
on: e.placeholder,
shouldAnimate: e.shouldAnimatePlaceholder
}, (function(e) {
var t = e.onClose
, r = e.data
, i = e.animate;
return s.a.createElement(yMe, {
placeholder: r,
onClose: t,
innerRef: k,
animate: i,
contextId: n,
onTransitionEnd: w
})
}
))
, _ = bke((function() {
return {
innerRef: j,
placeholder: C,
droppableProps: {
"data-rbd-droppable-id": c,
"data-rbd-droppable-context-id": n
}
}
}
), [n, c, C, j])
, M = v ? v.dragging.draggableId : null
, S = bke((function() {
return {
droppableId: c,
type: d,
isUsingCloneFor: M
}
}
), [c, M, d]);
return s.a.createElement(xMe.Provider, {
value: S
}, a(_, m), function() {
if (!v)
return null;
var e = v.dragging
, t = v.render
, n = s.a.createElement(EMe, {
draggableId: e.draggableId,
index: e.source.index,
isClone: !0,
isEnabled: !0,
shouldRespectForcePress: !1,
canDragInteractiveElements: !0
}, (function(n, r) {
return t(n, r, e)
}
));
return u.a.createPortal(n, x())
}())
}
));
LMe.defaultProps = DMe;
var RMe, PMe, BMe, FMe, VMe, WMe, qMe, HMe, UMe, XMe, GMe, KMe, YMe, QMe, JMe, ZMe = n(209), $Me = n.n(ZMe), eSe = Mu.b.div(RMe || (RMe = _u(["\n position: relative;\n border: 1px solid ", ";\n background-color: ", ";\n margin: 0 0px 30px;\n border-radius: 4px;\n padding: 14px;\n padding-top: 35px;\n cursor: pointer;\n"])), (function(e) {
return e.borderColor
}
), (function(e) {
return e.backgroundColor
}
)), tSe = Object(Mu.b)(Lg)(PMe || (PMe = _u(["\n border-radius: 4px;\n // object-fit: contain;\n"]))), nSe = Mu.b.span(BMe || (BMe = _u(["\n margin-top: 15px;\n display: inline-block;\n"]))), rSe = Mu.b.div(FMe || (FMe = _u(["\n position: absolute;\n top: 6px;\n right: 6px;\n width: 18px;\n height: 18px;\n border-radius: 50%;\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n"])), (function(e) {
return e.color
}
)), iSe = Mu.b.div(VMe || (VMe = _u(["\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: ", ";\n"])), (function(e) {
return e.color
}
)), oSe = Mu.b.div(WMe || (WMe = _u(["\n display: flex;\n justify-content: end;\n padding:10px 0;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);\n width:100%;\n position: sticky;\n bottom:0;\n"]))), aSe = function(e) {
var t = e.templateIcon;
return "object" == typeof t && null !== t.top ? Object(Ip.jsx)(sH, {
left: t.left,
top: t.top,
width: 154,
height: 184,
marginbottom: !1
}) : Object(Ip.jsx)(tSe, {
src: null != t ? t : Zp.NoImage,
height: 230,
width: "100%",
imageFit: kg.contain
})
}, lSe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e, r, i;
Object(St.a)(this, n);
for (var o = arguments.length, a = new Array(o), l = 0; l < o; l++)
a[l] = arguments[l];
return (i = t.call.apply(t, [this].concat(a))).state = {
isOpen: !1,
template: null !== (e = null === (r = i.props.value) || void 0 === r ? void 0 : r.template) && void 0 !== e ? e : ""
},
i._openPanel = function() {
i.setState({
isOpen: !0
})
}
,
i._dismissPanel = function() {
var e, t;
i.setState({
isOpen: !1,
template: null !== (e = null === (t = i.props.value) || void 0 === t ? void 0 : t.template) && void 0 !== e ? e : ""
})
}
,
i._onChange = function(e, t) {
var n = i.props
, r = n.onChange
, o = n.value
, a = Il(o, (function(n) {
n.data[e] = t
}
));
r && r(a)
}
,
i._onBlur = function() {
var e = i.props.onBlur;
e && e()
}
,
i._selectTemplate = function(e) {
i.setState({
template: e
})
}
,
i._choseTemplate = function() {
var e, t = i.state.template, n = i.props, r = n.onChange, o = n.value, a = n.props, l = null !== (e = null == a ? void 0 : a.templates) && void 0 !== e ? e : {};
if (t !== (null == o ? void 0 : o.template)) {
var s = Il(o, (function(e) {
var n;
e.template = t,
e.data = null == l || null === (n = l[t]) || void 0 === n ? void 0 : n.data
}
));
r && r(s)
}
i.setState({
isOpen: !1
})
}
,
i
}
return Object(At.a)(n, [{
key: "componentDidUpdate",
value: function(e, t, n) {
e.value.template !== this.props.value.template && this.setState({
template: this.props.value.template
})
}
}, {
key: "render",
value: function() {
var e, t, n, r = this, i = yo(), o = this.state, a = o.isOpen, l = o.template, s = this.props, c = s.value, u = s.label, d = s.props, p = null !== (e = null == d ? void 0 : d.templates) && void 0 !== e ? e : {}, h = null !== (t = null == p || null === (n = p[l]) || void 0 === n ? void 0 : n.fields) && void 0 !== t ? t : {}, f = Object.keys(p).length;
return Object(Ip.jsxs)("div", {
style: null != d && d.single ? {
backgroundColor: "#fff",
padding: 10
} : {},
children: [f > 1 && Object(Ip.jsxs)(yw, {
padding: "0 0 20px 0",
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: u
}), Object(Ip.jsxs)(Tk, {
onClick: this._openPanel,
children: [p[l] && "".concat(p[l].name), Object(Ip.jsx)(lp, {
iconName: "ChromeBackMirrored"
})]
})]
}), h ? Object(Ip.jsx)("div", {
style: null != d && d.single ? {
padding: 8
} : {},
children: Object(Ip.jsx)(SRe, {
fields: h,
value: c.data,
onChange: this._onChange,
onBlur: this._onBlur,
type: "fields"
})
}) : null, Object(Ip.jsx)(CC, {
isOpen: a,
onDismiss: this._dismissPanel,
type: Uw.medium,
closeButtonAriaLabel: "Close",
headerText: "Pick One Template",
isFooterAtBottom: !0,
onRenderFooter: function() {
return Object(Ip.jsx)(oSe, {
children: Object(Ip.jsxs)(yw, {
padding: "0px 20px",
children: [Object(Ip.jsx)(Lk, {
onClick: r._choseTemplate,
typebtn: "primary",
children: "Save"
}), Object(Ip.jsx)(yw, {
inlineblock: !0,
padding: "0 0 0 10px",
children: Object(Ip.jsx)(Lk, {
typebtn: "error",
onClick: r._dismissPanel,
children: "Cancel"
})
})]
})
})
},
children: Object(Ip.jsx)(yw, {
padding: "30px 0",
children: Object(Ip.jsx)("div", {
className: "ms-Grid",
dir: "ltr",
children: Object(Ip.jsx)("div", {
className: "ms-Grid-row",
style: {
padding: 0
},
children: Object.keys(p).map((function(e) {
var t, n, o;
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm12 ms-md6 ms-lg4 ms-xl4 ms-xxl4",
children: Object(Ip.jsxs)(eSe, {
backgroundColor: e === l ? "#F4F6FC" : "transparent",
borderColor: e === l ? i.palette.themePrimary : i.palette.neutralQuaternaryAlt,
onClick: function() {
return r._selectTemplate(e)
},
children: [Object(Ip.jsx)(aSe, {
templateIcon: null == Xfe || null === (t = Xfe[null == d ? void 0 : d.preview]) || void 0 === t ? void 0 : t[e]
}), Object(Ip.jsx)(nSe, {
children: Object(Ip.jsx)(Ep, {
variant: "mediumPlus",
children: null !== (n = null == p || null === (o = p[e]) || void 0 === o ? void 0 : o.name) && void 0 !== n ? n : ""
})
}), e === l && Object(Ip.jsx)(rSe, {
color: i.palette.themePrimary,
children: Object(Ip.jsx)(iSe, {
color: i.palette.themePrimary
})
})]
})
}, e)
}
))
})
})
})
})]
})
}
}]),
n
}(l.Component), sSe = lSe, cSe = Mu.b.div(qMe || (qMe = _u(["\n border: 1px solid rgba(126, 130, 164, 0.2);\n background: #fff;\n margin-top: -1px;\n"]))), uSe = Mu.b.a(HMe || (HMe = _u(["\n padding: 14px 16px;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]))), dSe = Mu.b.span(UMe || (UMe = _u(["\n font-weight: bold;\n display: block;\n flex: 1;\n margin: 0px 18px;\n"]))), pSe = Object(Mu.b)(Pg)(XMe || (XMe = _u(["\n font-size: 12px;\n"]))), hSe = Object(Mu.b)(Pg)(GMe || (GMe = _u(["\n color: #7e82a4;\n cursor: move !important;\n"]))), fSe = Mu.b.div(KMe || (KMe = _u(["\n border-top: 1px solid rgba(126, 130, 164, 0.2);\n padding: 16px;\n padding-top: 20px;\n"]))), bSe = Mu.b.div(YMe || (YMe = _u(["\n border-top: 1px solid rgba(126, 130, 164, 0.2);\n display: flex;\n justify-content: flex-end;\n padding: 20px;\n"]))), gSe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
isShow: !0
},
e.textItem = function() {
var t, n, r, i, o, a, l, s, c, u, d, p, h = e.props, f = h.item, b = h.index, g = h.props, m = null !== (t = null == f ? void 0 : f.data) && void 0 !== t ? t : {}, v = null !== (n = null == g ? void 0 : g.keyItem) && void 0 !== n ? n : "", y = null !== (r = null == g ? void 0 : g.textItem) && void 0 !== r ? r : "Item", x = null !== (i = null == g ? void 0 : g.numberItem) && void 0 !== i && i;
if (null !== (o = null == g ? void 0 : g.collect) && void 0 !== o && o) {
var O = Cu()(m, ["columns"]);
if (!O)
return "Row";
var j = Z$()($Me()(O, "value.type"), ", ");
return null != j ? j : "Row"
}
return v && (null != f && null !== (a = f.data) && void 0 !== a && a[v] || null != f && null !== (l = f.data) && void 0 !== l && null !== (s = l[v]) && void 0 !== s && s.text) ? "string" == typeof (null == f || null === (c = f.data) || void 0 === c ? void 0 : c[v]) ? null == f || null === (u = f.data) || void 0 === u ? void 0 : u[v] : null == f || null === (d = f.data) || void 0 === d || null === (p = d[v]) || void 0 === p ? void 0 : p.text : x ? "".concat(y, " ").concat(b + 1) : y
}
,
e._setActive = function() {
var t = e.props
, n = t.index
, r = t.setActive
, i = t.toggle
, o = t.active;
if (i)
r(n === o ? -1 : n);
else {
var a = e.state.isShow;
e.setState({
isShow: !a
})
}
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.item
, r = t.index
, i = t.props
, o = t.onBlur
, a = t.onChange
, l = t.deleteItem
, s = t.duplicateItem
, c = t.toggle
, u = t.active
, d = c ? u === r : this.state.isShow;
return Object(Ip.jsx)(IMe, {
draggableId: "".concat(r),
index: r,
children: function(t) {
return Object(Ip.jsxs)(cSe, _t(_t({
ref: t.innerRef
}, t.draggableProps), {}, {
children: [Object(Ip.jsxs)(uSe, {
onClick: e._setActive,
children: [Object(Ip.jsx)(pSe, {
iconName: d ? "ChevronDown" : "ChevronRight"
}), Object(Ip.jsx)(dSe, {
children: e.textItem()
}), Object(Ip.jsx)(hSe, _t(_t({}, t.dragHandleProps), {}, {
iconName: "Waffle"
}))]
}), d && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(fSe, {
"data-selection-index": r,
children: Object(Ip.jsx)(sSe, {
label: "",
id: "group-".concat(r),
defaultValue: n,
value: n,
onChange: function(e) {
return a(r, e)
},
onBlur: o,
props: i,
input: "template"
})
}), Object(Ip.jsxs)(bSe, {
children: [Object(Ip.jsx)(Ak, {
typebtn: "success",
onClick: function() {
return s(r)
},
children: "Duplicate"
}), Object(Ip.jsx)(yw, {
inlineblock: !0,
padding: "0 6px"
}), Object(Ip.jsx)(Ak, {
typebtn: "error",
onClick: function() {
return l(r)
},
children: "Remove"
})]
})]
})]
}))
}
})
}
}]),
n
}(l.Component), mSe = gSe, vSe = Mu.b.div(QMe || (QMe = _u(["\n margin-bottom: 10px;\n"]))), ySe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e, r, i;
Object(St.a)(this, n);
for (var o = arguments.length, a = new Array(o), l = 0; l < o; l++)
a[l] = arguments[l];
return (i = t.call.apply(t, [this].concat(a))).state = {
active: null !== (e = null === (r = i.props) || void 0 === r ? void 0 : r.active) && void 0 !== e ? e : 0,
value: i.props.value
},
i._setActive = function(e) {
var t = i.props
, n = t.value
, r = t.onChange
, o = t.defaultValue
, a = Il(null != n ? n : o, (function(t) {
t.map((function(t, n) {
var r;
return void 0 === (null === (r = o[0]) || void 0 === r ? void 0 : r.active) && void 0 === (null == t ? void 0 : t.active) || (t.active = n === e),
t
}
))
}
));
i.setState({
active: e
}),
r && r(a)
}
,
i._onChange = function(e, t) {
var n = i.props
, r = n.value
, o = n.onChange
, a = n.defaultValue
, l = Il(null != r ? r : a, (function(n) {
n[e] = t
}
));
o && o(l)
}
,
i._addItem = function() {
var e = i.props
, t = e.value
, n = e.defaultValue
, r = e.onChange
, o = Il(null != t ? t : n, (function(e) {
e.push(n[0])
}
));
r && r(o)
}
,
i._deleteItem = function(e) {
var t = i.props
, n = t.value
, r = t.onChange
, o = t.defaultValue
, a = Il(null != n ? n : o, (function(t) {
t.splice(e, 1)
}
));
r && r(a)
}
,
i._duplicateItem = function(e) {
var t = i.props
, n = t.value
, r = t.onChange
, o = t.defaultValue
, a = Il(null != n ? n : o, (function(t) {
t.push(n[e])
}
));
r && r(a)
}
,
i._onDragEnd = function(e) {
var t = e.source
, n = e.destination;
if (n) {
var r = i.props
, o = r.value
, a = r.onChange
, l = r.defaultValue
, s = Il(null != o ? o : l, (function(e) {
var r = e.splice(t.index, 1)
, i = Object(ss.a)(r, 1)[0];
e.splice(n.index, 0, i)
}
));
a && a(s)
}
}
,
i
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.value
, r = t.label
, i = t.props
, o = t.onBlur
, a = t.toggle
, l = t.defaultValue
, s = null != n ? n : l;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: r
}), Object(Ip.jsx)(vSe, {
children: Object(Ip.jsx)(iMe, {
onDragEnd: this._onDragEnd,
children: Object(Ip.jsx)(LMe, {
droppableId: "drop-input-item",
children: function(t, n) {
return Object(Ip.jsxs)("div", _t(_t({
ref: t.innerRef
}, t.droppableProps), {}, {
style: (n.isDraggingOver,
{
background: "#fff"
}),
children: [s.map((function(t, n) {
return Object(Ip.jsx)(mSe, {
item: t,
index: n,
onBlur: o,
props: i,
onChange: e._onChange,
deleteItem: e._deleteItem,
duplicateItem: e._duplicateItem,
toggle: a,
active: e.state.active,
setActive: e._setActive
}, n)
}
)), t.placeholder]
}))
}
})
})
}), Object(Ip.jsxs)(Lk, {
onClick: this._addItem,
children: [Object(Ip.jsx)(lp, {
iconName: "CirclePlus"
}), " ", Object(Ip.jsxs)(yw, {
margin: "0 0 0 6px",
children: ["Add ", null != i && i.numberItem ? null == i ? void 0 : i.textItem : "Item"]
})]
})]
})
}
}]),
n
}(l.Component), xSe = ySe, OSe = Mu.b.div(JMe || (JMe = _u(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n .ms-Toggle {\n margin-bottom: 0;\n }\n"]))), jSe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r = e.props.onChange;
r && r(n)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.value
, r = e.info
, i = e.defaultValue
, o = e.props;
return Object(Ip.jsx)(Ip.Fragment, {
children: Object(Ip.jsxs)(OSe, {
children: [Object(Ip.jsx)(qA, {
label: t,
info: r
}), Object(Ip.jsx)(TA, _t(_t({}, o), {}, {
checked: null == n ? !!i : !!n,
onChange: this._onChange
}))]
})
})
}
}]),
n
}(l.Component);
jSe.defaultProps = {
onChange: function(e) {
return console.log(e)
},
defaultValue: !1
};
var kSe, wSe, CSe, _Se, MSe = jSe, SSe = Mu.b.div(kSe || (kSe = _u(["\n display: flex;\n align-items: center;\n"]))), ASe = Mu.b.p(wSe || (wSe = _u(["\n margin: 0px;\n flex: 1;\n"]))), TSe = Mu.b.a(CSe || (CSe = _u(["\n height: 28px;\n margin-left: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: default;\n"]))), ESe = Object(Mu.b)(lp)(_Se || (_Se = _u(["\n font-size: 16px;\n margin: 1px;\n cursor: pointer;\n"]))), ISe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t) {
var n = e.props.onChange;
n && n(t.key)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this, n = yo(), r = this.props, i = r.label, o = r.value, a = r.defaultValue, l = r.props, s = null !== (e = null == l ? void 0 : l.lists) && void 0 !== e ? e : [{
key: "left",
icon: "AlignLeft"
}, {
key: "center",
icon: "AlignCenter"
}, {
key: "right",
icon: "AlignRight"
}], c = null == o ? a : o;
return Object(Ip.jsxs)(SSe, {
children: [Object(Ip.jsx)(ASe, {
children: Object(Ip.jsx)(ok, {
styles: sS,
children: i
})
}), s.map((function(e, r) {
return Object(Ip.jsx)(TSe, {
style: c === e.key ? {
backgroundColor: n.palette.themePrimary,
color: "white",
width: 28,
borderRadius: 2,
textAlign: "center"
} : {},
onClick: function() {
return t._onChange(e)
},
children: Object(Ip.jsx)(ESe, {
iconName: e.icon
})
}, r)
}
))]
})
}
}]),
n
}(l.Component);
ISe.defaultProps = {
onChange: function(e) {
return console.log(e)
},
defaultValue: "left"
};
var NSe, zSe, DSe, LSe = ISe, RSe = Mu.b.div(NSe || (NSe = _u(["\n position: relative;\n display: block;\n overflow: hidden;\n border-radius: 4px;\n background-color: #e0e0e0;\n border: 1px solid ", ";\n img {\n object-fit: cover;\n }\n"])), (function(e) {
return e.color
}
)), PSe = Mu.b.a(zSe || (zSe = _u(["\n position: relative;\n display: block;\n overflow: hidden;\n border-radius: 4px;\n background-color: #fff;\n border: 1px solid ", ";\n"])), (function(e) {
return e.color
}
)), BSe = Mu.b.div(DSe || (DSe = _u(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(32, 33, 36, 0.4);\n display: flex;\n justify-content: center;\n align-items: center;\n & > div {\n margin: 0 5px;\n }\n"]))), FSe = {
imageFit: kg.centerContain
}, VSe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).onChange = function(t) {
var n = e.props
, r = n.onChange
, i = n.value
, o = n.isTranslate
, a = n.translate
, l = n.language
, s = o && a ? l : "src";
r && r(_t(_t({}, i), {}, Object(wt.a)({}, s, t)))
}
,
e.onSelectImage = function() {
e.openMedia()
}
,
e.openMedia = function() {
var t = wp.media({
title: "Select or Upload Media Of Your Chosen Persuasion",
button: {
text: "Use this media"
},
multiple: !1
});
t.open(),
t.on("select", (function() {
var n = t.state().get("selection").first().toJSON();
e.onChange(n.url)
}
))
}
,
e.renderImage = function(t) {
var n = yo();
return t ? Object(Ip.jsxs)(RSe, {
color: n.palette.neutralLighter,
children: [Object(Ip.jsx)(Lg, {
src: t,
alt: "Choose Image",
width: "100%",
height: 100
}), Object(Ip.jsxs)(BSe, {
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(kk, {
iconProps: {
iconName: "Edit"
},
onClick: e.onSelectImage
})
}), Object(Ip.jsx)(kk, {
iconProps: {
iconName: "Delete"
},
onClick: function() {
return e.onChange("")
},
styles: {
root: {
backgroundColor: "rgb(228, 0, 0)",
borderColor: "rgb(228, 0, 0)"
},
rootFocused: {
backgroundColor: "rgb(228, 0, 0)",
borderColor: "rgb(228, 0, 0)"
},
rootHovered: {
backgroundColor: "rgb(204, 0, 0)",
borderColor: "rgb(204, 0, 0)"
},
rootPressed: {
backgroundColor: "rgb(153, 0, 0)",
borderColor: "rgb(153, 0, 0)"
}
}
})]
})]
}) : Object(Ip.jsx)(PSe, {
color: n.palette.neutralLighter,
onClick: e.onSelectImage,
children: Object(Ip.jsx)(Lg, _t({
src: Zp.NoImage,
alt: "Example with no image fit value and no height or width is specified.",
width: "100%",
height: 100
}, FSe))
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.value
, r = e.language
, i = e.translate
, o = e.isTranslate;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: t
}), this.renderImage(o && i ? null == n ? void 0 : n[r] : null == n ? void 0 : n.src)]
})
}
}]),
n
}(l.Component);
VSe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var WSe, qSe = va((function(e) {
return {
language: Kc(e),
languages: Yc(e),
translate: Qc(e)
}
}
))(VSe);
!function(e) {
e[e.valid = 0] = "valid",
e[e.warning = 1] = "warning",
e[e.invalid = 2] = "invalid"
}(WSe || (WSe = {}));
var HSe = /[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g
, USe = /[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g
, XSe = /^\d+[\d\s]*(:?ext|x|)\s*\d+$/i
, GSe = /\s+/g
, KSe = /[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;
function YSe(e, t, n) {
return e ? (e = function(e) {
return (e = (e = (e = e.replace(HSe, "")).replace(USe, "")).replace(GSe, " ")).trim()
}(e),
KSe.test(e) || !n && XSe.test(e) ? "" : function(e, t) {
var n = ""
, r = e.split(" ");
return 2 === r.length ? (n += r[0].charAt(0).toUpperCase(),
n += r[1].charAt(0).toUpperCase()) : 3 === r.length ? (n += r[0].charAt(0).toUpperCase(),
n += r[2].charAt(0).toUpperCase()) : 0 !== r.length && (n += r[0].charAt(0).toUpperCase()),
t && n.length > 1 ? n.charAt(1) + n.charAt(0) : n
}(e, t)) : ""
}
var QSe = /[\{\}]/g
, JSe = /\{\d+\}/g;
function ZSe(e) {
for (var t = [], n = 1; n < arguments.length; n++)
t[n - 1] = arguments[n];
var r = t;
return e.replace(JSe, (function(e) {
var t = r[e.replace(QSe, "")];
return null != t || (t = ""),
t
}
))
}
var $Se, eAe = Sg(), tAe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.message
, n = e.styles
, r = e.as
, i = void 0 === r ? "div" : r
, o = e.className
, a = eAe(n, {
className: o
});
return l.createElement(i, Object(zn.a)({
role: "status",
className: a.root
}, rp(this.props, np, ["className"])), l.createElement(ak, null, l.createElement("div", {
className: a.screenReaderText
}, t)))
}
,
t.defaultProps = {
"aria-live": "polite"
},
t
}(l.Component), nAe = jg(tAe, (function(e) {
return {
root: e.className,
screenReaderText: Ai
}
}
));
!function(e) {
e[e.none = 0] = "none",
e[e.forceResolve = 1] = "forceResolve",
e[e.searchMore = 2] = "searchMore"
}($Se || ($Se = {})),
Object(Qi.a)([{
rawString: ".root_2f55324e{min-width:260px}.suggestionsItem_2f55324e{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_2f55324e:hover{background:"
}, {
theme: "neutralLighter",
defaultValue: "#f3f2f1"
}, {
rawString: "}.suggestionsItem_2f55324e:hover .closeButton_2f55324e{display:block}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e{background:"
}, {
theme: "neutralLight",
defaultValue: "#edebe9"
}, {
rawString: "}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e:hover{background:"
}, {
theme: "neutralTertiaryAlt",
defaultValue: "#c8c6c4"
}, {
rawString: "}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e .closeButton_2f55324e:hover{background:"
}, {
theme: "neutralTertiary",
defaultValue: "#a19f9d"
}, {
rawString: ";color:"
}, {
theme: "neutralPrimary",
defaultValue: "#323130"
}, {
rawString: "}@media screen and (-ms-high-contrast:active){.suggestionsItem_2f55324e.suggestionsItemIsSuggested_2f55324e .itemButton_2f55324e{color:HighlightText}}.suggestionsItem_2f55324e .closeButton_2f55324e{display:none;color:"
}, {
theme: "neutralSecondary",
defaultValue: "#605e5c"
}, {
rawString: "}.suggestionsItem_2f55324e .closeButton_2f55324e:hover{background:"
}, {
theme: "neutralLight",
defaultValue: "#edebe9"
}, {
rawString: "}.actionButton_2f55324e{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "
}, {
theme: "neutralLight",
defaultValue: "#edebe9"
}, {
rawString: ";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_2f55324e{padding-left:8px}[dir=rtl] .actionButton_2f55324e{padding-right:8px}html[dir=ltr] .actionButton_2f55324e{text-align:left}html[dir=rtl] .actionButton_2f55324e{text-align:right}.actionButton_2f55324e:hover{background-color:"
}, {
theme: "neutralLight",
defaultValue: "#edebe9"
}, {
rawString: ";cursor:pointer}.actionButton_2f55324e:active,.actionButton_2f55324e:focus{background-color:"
}, {
theme: "themeLight",
defaultValue: "#c7e0f4"
}, {
rawString: "}.actionButton_2f55324e .ms-Button-icon{font-size:16px;width:25px}.actionButton_2f55324e .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_2f55324e .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_2f55324e{background-color:"
}, {
theme: "themeLight",
defaultValue: "#c7e0f4"
}, {
rawString: "}.suggestionsTitle_2f55324e{padding:0 12px;color:"
}, {
theme: "themePrimary",
defaultValue: "#0078d4"
}, {
rawString: ";font-size:12px;line-height:40px;border-bottom:1px solid "
}, {
theme: "neutralLight",
defaultValue: "#edebe9"
}, {
rawString: "}.suggestionsContainer_2f55324e{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "
}, {
theme: "neutralLight",
defaultValue: "#edebe9"
}, {
rawString: "}.suggestionsNone_2f55324e{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_2f55324e{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_2f55324e{padding-left:14px}html[dir=rtl] .suggestionsSpinner_2f55324e{padding-right:14px}html[dir=ltr] .suggestionsSpinner_2f55324e{text-align:left}html[dir=rtl] .suggestionsSpinner_2f55324e{text-align:right}.suggestionsSpinner_2f55324e .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_2f55324e .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_2f55324e .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_2f55324e.itemButton_2f55324e{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active){.itemButton_2f55324e.itemButton_2f55324e{color:WindowText}}.itemButton_2f55324e.itemButton_2f55324e:hover{color:"
}, {
theme: "neutralDark",
defaultValue: "#201f1e"
}, {
rawString: "}.closeButton_2f55324e.closeButton_2f55324e{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active){.closeButton_2f55324e.closeButton_2f55324e{color:WindowText}}.closeButton_2f55324e.closeButton_2f55324e:hover{background:"
}, {
theme: "neutralTertiaryAlt",
defaultValue: "#c8c6c4"
}, {
rawString: ";color:"
}, {
theme: "neutralDark",
defaultValue: "#201f1e"
}, {
rawString: "}.suggestionsAvailable_2f55324e{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"
}]);
var rAe = "root_2f55324e"
, iAe = "suggestionsItem_2f55324e"
, oAe = "closeButton_2f55324e"
, aAe = "suggestionsItemIsSuggested_2f55324e"
, lAe = "itemButton_2f55324e"
, sAe = "actionButton_2f55324e"
, cAe = "buttonSelected_2f55324e"
, uAe = "suggestionsTitle_2f55324e"
, dAe = "suggestionsContainer_2f55324e"
, pAe = "suggestionsNone_2f55324e"
, hAe = "suggestionsSpinner_2f55324e"
, fAe = "suggestionsAvailable_2f55324e"
, bAe = o
, gAe = Sg()
, mAe = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return Kb(n),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e, t = this.props, n = t.suggestionModel, r = t.RenderSuggestion, i = t.onClick, o = t.className, a = t.id, s = t.onRemoveItem, c = t.isSelectedOverride, u = t.removeButtonAriaLabel, d = t.styles, p = t.theme, h = t.removeButtonIconProps, f = d ? gAe(d, {
theme: p,
className: o,
suggested: n.selected || c
}) : {
root: ip("ms-Suggestions-item", bAe.suggestionsItem, (e = {},
e["is-suggested " + bAe.suggestionsItemIsSuggested] = n.selected || c,
e), o),
itemButton: ip("ms-Suggestions-itemButton", bAe.itemButton),
closeButton: ip("ms-Suggestions-closeButton", bAe.closeButton)
};
return l.createElement("div", {
className: f.root,
role: "presentation"
}, l.createElement(AC, {
onClick: i,
className: f.itemButton,
id: a,
"aria-selected": n.selected,
role: "option",
"aria-label": n.ariaLabel
}, r(n.item, this.props)), this.props.showRemoveButton ? l.createElement(Fj, {
iconProps: null != h ? h : {
iconName: "Cancel"
},
styles: {
icon: {
fontSize: "12px"
}
},
title: u,
ariaLabel: u,
onClick: s,
className: f.closeButton
}) : null)
}
,
t
}(l.Component)
, vAe = {
root: "ms-Suggestions-item",
itemButton: "ms-Suggestions-itemButton",
closeButton: "ms-Suggestions-closeButton",
isSuggested: "is-suggested"
}
, yAe = o
, xAe = Sg()
, OAe = jg(mAe, (function(e) {
var t, n, r, i, o, a, l = e.className, s = e.theme, c = e.suggested, u = s.palette, d = s.semanticColors, p = Vi(vAe, s);
return {
root: [p.root, {
display: "flex",
alignItems: "stretch",
boxSizing: "border-box",
width: "100%",
position: "relative",
selectors: {
"&:hover": {
background: d.menuItemBackgroundHovered
},
"&:hover .ms-Suggestions-closeButton": {
display: "block"
}
}
}, c && {
selectors: (t = {},
t[".ms-Fabric--isFocusVisible &"] = {
selectors: (n = {},
n["." + p.closeButton] = {
display: "block",
background: d.menuItemBackgroundPressed
},
n)
},
t[":after"] = {
pointerEvents: "none",
content: '""',
position: "absolute",
left: 0,
top: 0,
bottom: 0,
right: 0,
border: "1px solid " + s.semanticColors.focusBorder
},
t)
}, l],
itemButton: [p.itemButton, {
width: "100%",
padding: 0,
border: "none",
height: "100%",
minWidth: 0,
overflow: "hidden",
selectors: (r = {},
r[vi] = {
color: "WindowText",
selectors: {
":hover": Object(zn.a)({
background: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
})
}
},
r[":hover"] = {
color: d.menuItemTextHovered
},
r)
}, c && [p.isSuggested, {
background: d.menuItemBackgroundPressed,
selectors: (i = {
":hover": {
background: d.menuDivider
}
},
i[vi] = Object(zn.a)({
background: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
}]],
closeButton: [p.closeButton, {
display: "none",
color: u.neutralSecondary,
padding: "0 4px",
height: "auto",
width: 32,
selectors: (o = {
":hover, :active": {
background: u.neutralTertiaryAlt,
color: u.neutralDark
}
},
o[vi] = {
color: "WindowText"
},
o)
}, c && (a = {},
a[".ms-Fabric--isFocusVisible &"] = {
selectors: {
":hover, :active": {
background: u.neutralTertiary
}
}
},
a.selectors = {
":hover, :active": {
background: u.neutralTertiary,
color: u.neutralPrimary
}
},
a)]
}
}
), void 0, {
scope: "SuggestionItem"
})
, jAe = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._forceResolveButton = l.createRef(),
n._searchForMoreButton = l.createRef(),
n._selectedElement = l.createRef(),
n._scrollContainer = l.createRef(),
n.tryHandleKeyDown = function(e, t) {
var r = !1
, i = null
, o = n.state.selectedActionType
, a = n.props.suggestions.length;
if (e === gp)
switch (o) {
case $Se.forceResolve:
a > 0 ? (n._refocusOnSuggestions(e),
i = $Se.none) : i = n._searchForMoreButton.current ? $Se.searchMore : $Se.forceResolve;
break;
case $Se.searchMore:
n._forceResolveButton.current ? i = $Se.forceResolve : a > 0 ? (n._refocusOnSuggestions(e),
i = $Se.none) : i = $Se.searchMore;
break;
case $Se.none:
-1 === t && n._forceResolveButton.current && (i = $Se.forceResolve)
}
else if (e === fp)
switch (o) {
case $Se.forceResolve:
n._searchForMoreButton.current ? i = $Se.searchMore : a > 0 && (n._refocusOnSuggestions(e),
i = $Se.none);
break;
case $Se.searchMore:
a > 0 ? (n._refocusOnSuggestions(e),
i = $Se.none) : n._forceResolveButton.current && (i = $Se.forceResolve);
break;
case $Se.none:
-1 === t && n._searchForMoreButton.current && (i = $Se.searchMore)
}
return null !== i && (n.setState({
selectedActionType: i
}),
r = !0),
r
}
,
n._getAlertText = function() {
var e = n.props
, t = e.isLoading
, r = e.isSearching
, i = e.suggestions
, o = e.suggestionsAvailableAlertText
, a = e.noResultsFoundText;
if (!t && !r) {
if (i.length > 0)
return o || "";
if (a)
return a
}
return ""
}
,
n._getMoreResults = function() {
n.props.onGetMoreResults && (n.props.onGetMoreResults(),
n.setState({
selectedActionType: $Se.none
}))
}
,
n._forceResolve = function() {
n.props.createGenericItem && n.props.createGenericItem()
}
,
n._shouldShowForceResolve = function() {
return !!n.props.showForceResolve && n.props.showForceResolve()
}
,
n._onClickTypedSuggestionsItem = function(e, t) {
return function(r) {
n.props.onSuggestionClick(r, e, t)
}
}
,
n._refocusOnSuggestions = function(e) {
"function" == typeof n.props.refocusSuggestions && n.props.refocusSuggestions(e)
}
,
n._onRemoveTypedSuggestionsItem = function(e, t) {
return function(r) {
(0,
n.props.onSuggestionRemove)(r, e, t),
r.stopPropagation()
}
}
,
Kb(n),
n.state = {
selectedActionType: $Se.none
},
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
this.scrollSelected(),
this.activeSelectedElement = this._selectedElement ? this._selectedElement.current : null
}
,
t.prototype.componentDidUpdate = function() {
this._selectedElement.current && this.activeSelectedElement !== this._selectedElement.current && (this.scrollSelected(),
this.activeSelectedElement = this._selectedElement.current)
}
,
t.prototype.render = function() {
var e, t, n = this, r = this.props, i = r.forceResolveText, o = r.mostRecentlyUsedHeaderText, a = r.searchForMoreIcon, s = r.searchForMoreText, c = r.className, u = r.moreSuggestionsAvailable, d = r.noResultsFoundText, p = r.suggestions, h = r.isLoading, f = r.isSearching, b = r.loadingText, g = r.onRenderNoResultFound, m = r.searchingText, v = r.isMostRecentlyUsedVisible, y = r.resultsMaximumNumber, x = r.resultsFooterFull, O = r.resultsFooter, j = r.isResultsFooterVisible, k = void 0 === j || j, w = r.suggestionsHeaderText, C = r.suggestionsClassName, _ = r.theme, M = r.styles, S = r.suggestionsListId;
this._classNames = M ? xAe(M, {
theme: _,
className: c,
suggestionsClassName: C,
forceResolveButtonSelected: this.state.selectedActionType === $Se.forceResolve,
searchForMoreButtonSelected: this.state.selectedActionType === $Se.searchMore
}) : {
root: ip("ms-Suggestions", c, yAe.root),
title: ip("ms-Suggestions-title", yAe.suggestionsTitle),
searchForMoreButton: ip("ms-SearchMore-button", yAe.actionButton, (e = {},
e["is-selected " + yAe.buttonSelected] = this.state.selectedActionType === $Se.searchMore,
e)),
forceResolveButton: ip("ms-forceResolve-button", yAe.actionButton, (t = {},
t["is-selected " + yAe.buttonSelected] = this.state.selectedActionType === $Se.forceResolve,
t)),
suggestionsAvailable: ip("ms-Suggestions-suggestionsAvailable", yAe.suggestionsAvailable),
suggestionsContainer: ip("ms-Suggestions-container", yAe.suggestionsContainer, C),
noSuggestions: ip("ms-Suggestions-none", yAe.suggestionsNone)
};
var A = this._classNames.subComponentStyles ? this._classNames.subComponentStyles.spinner : void 0
, T = M ? {
styles: A
} : {
className: ip("ms-Suggestions-spinner", yAe.suggestionsSpinner)
}
, E = w;
v && o && (E = o);
var I = void 0;
k && (I = p.length >= y ? x : O);
var N = !(p && p.length || h)
, z = N || h ? {
role: "listbox",
id: S
} : {}
, D = this.state.selectedActionType === $Se.forceResolve ? "sug-selectedAction" : void 0
, L = this.state.selectedActionType === $Se.searchMore ? "sug-selectedAction" : void 0;
return l.createElement("div", Object(zn.a)({
className: this._classNames.root
}, z), l.createElement(nAe, {
message: this._getAlertText(),
"aria-live": "polite"
}), E ? l.createElement("div", {
className: this._classNames.title
}, E) : null, i && this._shouldShowForceResolve() && l.createElement(AC, {
componentRef: this._forceResolveButton,
className: this._classNames.forceResolveButton,
id: D,
onClick: this._forceResolve,
"data-automationid": "sug-forceResolve"
}, i), h && l.createElement(tT, Object(zn.a)({}, T, {
label: b
})), N ? function e() {
return l.createElement("div", {
id: "sug-noResultsFound",
role: "option"
}, g ? g(void 0, e) : l.createElement("div", {
className: n._classNames.noSuggestions
}, d))
}() : this._renderSuggestions(), s && u && l.createElement(AC, {
componentRef: this._searchForMoreButton,
className: this._classNames.searchForMoreButton,
iconProps: a || {
iconName: "Search"
},
id: L,
onClick: this._getMoreResults,
"data-automationid": "sug-searchForMore"
}, s), f ? l.createElement(tT, Object(zn.a)({}, T, {
label: m
})) : null, !I || u || v || f ? null : l.createElement("div", {
className: this._classNames.title
}, I(this.props)))
}
,
t.prototype.hasSuggestedAction = function() {
return !!this._searchForMoreButton.current || !!this._forceResolveButton.current
}
,
t.prototype.hasSuggestedActionSelected = function() {
return this.state.selectedActionType !== $Se.none
}
,
t.prototype.executeSelectedAction = function() {
switch (this.state.selectedActionType) {
case $Se.forceResolve:
this._forceResolve();
break;
case $Se.searchMore:
this._getMoreResults()
}
}
,
t.prototype.focusAboveSuggestions = function() {
this._forceResolveButton.current ? this.setState({
selectedActionType: $Se.forceResolve
}) : this._searchForMoreButton.current && this.setState({
selectedActionType: $Se.searchMore
})
}
,
t.prototype.focusBelowSuggestions = function() {
this._searchForMoreButton.current ? this.setState({
selectedActionType: $Se.searchMore
}) : this._forceResolveButton.current && this.setState({
selectedActionType: $Se.forceResolve
})
}
,
t.prototype.focusSearchForMoreButton = function() {
this._searchForMoreButton.current && this._searchForMoreButton.current.focus()
}
,
t.prototype.scrollSelected = function() {
if (this._selectedElement.current && this._scrollContainer.current && void 0 !== this._scrollContainer.current.scrollTo) {
var e = this._selectedElement.current
, t = e.offsetHeight
, n = e.offsetTop
, r = this._scrollContainer.current
, i = r.offsetHeight
, o = r.scrollTop
, a = n + t > o + i;
n < o ? this._scrollContainer.current.scrollTo(0, n) : a && this._scrollContainer.current.scrollTo(0, n - i + t)
}
}
,
t.prototype._renderSuggestions = function() {
var e = this
, t = this.props
, n = t.isMostRecentlyUsedVisible
, r = t.mostRecentlyUsedHeaderText
, i = t.onRenderSuggestion
, o = t.removeSuggestionAriaLabel
, a = t.suggestionsItemClassName
, s = t.resultsMaximumNumber
, c = t.showRemoveButtons
, u = t.suggestionsContainerAriaLabel
, d = t.suggestionsHeaderText
, p = t.suggestionsListId
, h = t.removeButtonIconProps
, f = this.props.suggestions
, b = OAe
, g = -1;
if (f.some((function(e, t) {
return !!e.selected && (g = t,
!0)
}
)),
s && (f = g >= s ? f.slice(g - s + 1, g + 1) : f.slice(0, s)),
0 === f.length)
return null;
var m = d;
return n && r && (m = r),
l.createElement("div", {
className: this._classNames.suggestionsContainer,
id: p,
ref: this._scrollContainer,
role: "listbox",
"aria-label": u || m
}, f.map((function(t, n) {
return l.createElement("div", {
ref: t.selected ? e._selectedElement : void 0,
key: t.item.key ? t.item.key : n,
role: "presentation"
}, l.createElement(b, {
suggestionModel: t,
RenderSuggestion: i,
onClick: e._onClickTypedSuggestionsItem(t.item, n),
className: a,
showRemoveButton: c,
removeButtonAriaLabel: o,
onRemoveItem: e._onRemoveTypedSuggestionsItem(t.item, n),
id: "sug-" + n,
removeButtonIconProps: h
}))
}
)))
}
,
t
}(l.Component)
, kAe = {
root: "ms-Suggestions",
suggestionsContainer: "ms-Suggestions-container",
title: "ms-Suggestions-title",
forceResolveButton: "ms-forceResolve-button",
searchForMoreButton: "ms-SearchMore-button",
spinner: "ms-Suggestions-spinner",
noSuggestions: "ms-Suggestions-none",
suggestionsAvailable: "ms-Suggestions-suggestionsAvailable",
isSelected: "is-selected"
};
function wAe(e) {
var t, n = e.className, r = e.suggestionsClassName, i = e.theme, o = e.forceResolveButtonSelected, a = e.searchForMoreButtonSelected, l = i.palette, s = i.semanticColors, c = i.fonts, u = Vi(kAe, i), d = {
backgroundColor: "transparent",
border: 0,
cursor: "pointer",
margin: 0,
paddingLeft: 8,
position: "relative",
borderTop: "1px solid " + l.neutralLight,
height: 40,
textAlign: "left",
width: "100%",
fontSize: c.small.fontSize,
selectors: {
":hover": {
backgroundColor: s.menuItemBackgroundPressed,
cursor: "pointer"
},
":focus, :active": {
backgroundColor: l.themeLight
},
".ms-Button-icon": {
fontSize: c.mediumPlus.fontSize,
width: 25
},
".ms-Button-label": {
margin: "0 4px 0 9px"
}
}
}, p = {
backgroundColor: l.themeLight,
selectors: (t = {},
t[vi] = Object(zn.a)({
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
};
return {
root: [u.root, {
minWidth: 260
}, n],
suggestionsContainer: [u.suggestionsContainer, {
overflowY: "auto",
overflowX: "hidden",
maxHeight: 300,
transform: "translate3d(0,0,0)"
}, r],
title: [u.title, {
padding: "0 12px",
fontSize: c.small.fontSize,
color: l.themePrimary,
lineHeight: 40,
borderBottom: "1px solid " + s.menuItemBackgroundPressed
}],
forceResolveButton: [u.forceResolveButton, d, o && [u.isSelected, p]],
searchForMoreButton: [u.searchForMoreButton, d, a && [u.isSelected, p]],
noSuggestions: [u.noSuggestions, {
textAlign: "center",
color: l.neutralSecondary,
fontSize: c.small.fontSize,
lineHeight: 30
}],
suggestionsAvailable: [u.suggestionsAvailable, Ai],
subComponentStyles: {
spinner: {
root: [u.spinner, {
margin: "5px 0",
paddingLeft: 14,
textAlign: "left",
whiteSpace: "nowrap",
lineHeight: 20,
fontSize: c.small.fontSize
}],
circle: {
display: "inline-block",
verticalAlign: "middle"
},
label: {
display: "inline-block",
verticalAlign: "middle",
margin: "0 10px 0 16px"
}
}
}
}
}
var CAe = function() {
function e() {
var e = this;
this._isSuggestionModel = function(e) {
return void 0 !== e.item
}
,
this._ensureSuggestionModel = function(t) {
return e._isSuggestionModel(t) ? t : {
item: t,
selected: !1,
ariaLabel: t.name || t.primaryText
}
}
,
this.suggestions = [],
this.currentIndex = -1
}
return e.prototype.updateSuggestions = function(e, t) {
e && e.length > 0 ? (this.suggestions = this.convertSuggestionsToSuggestionItems(e),
this.currentIndex = t || 0,
-1 === t ? this.currentSuggestion = void 0 : void 0 !== t && (this.suggestions[t].selected = !0,
this.currentSuggestion = this.suggestions[t])) : (this.suggestions = [],
this.currentIndex = -1,
this.currentSuggestion = void 0)
}
,
e.prototype.nextSuggestion = function() {
if (this.suggestions && this.suggestions.length) {
if (this.currentIndex < this.suggestions.length - 1)
return this.setSelectedSuggestion(this.currentIndex + 1),
!0;
if (this.currentIndex === this.suggestions.length - 1)
return this.setSelectedSuggestion(0),
!0
}
return !1
}
,
e.prototype.previousSuggestion = function() {
if (this.suggestions && this.suggestions.length) {
if (this.currentIndex > 0)
return this.setSelectedSuggestion(this.currentIndex - 1),
!0;
if (0 === this.currentIndex)
return this.setSelectedSuggestion(this.suggestions.length - 1),
!0
}
return !1
}
,
e.prototype.getSuggestions = function() {
return this.suggestions
}
,
e.prototype.getCurrentItem = function() {
return this.currentSuggestion
}
,
e.prototype.getSuggestionAtIndex = function(e) {
return this.suggestions[e]
}
,
e.prototype.hasSelectedSuggestion = function() {
return !!this.currentSuggestion
}
,
e.prototype.removeSuggestion = function(e) {
this.suggestions.splice(e, 1)
}
,
e.prototype.createGenericSuggestion = function(e) {
var t = this.convertSuggestionsToSuggestionItems([e])[0];
this.currentSuggestion = t
}
,
e.prototype.convertSuggestionsToSuggestionItems = function(e) {
return Array.isArray(e) ? e.map(this._ensureSuggestionModel) : []
}
,
e.prototype.deselectAllSuggestions = function() {
this.currentIndex > -1 && (this.suggestions[this.currentIndex].selected = !1,
this.currentIndex = -1)
}
,
e.prototype.setSelectedSuggestion = function(e) {
e > this.suggestions.length - 1 || e < 0 ? (this.currentIndex = 0,
this.currentSuggestion.selected = !1,
this.currentSuggestion = this.suggestions[0],
this.currentSuggestion.selected = !0) : (this.currentIndex > -1 && (this.suggestions[this.currentIndex].selected = !1),
this.suggestions[e].selected = !0,
this.currentIndex = e,
this.currentSuggestion = this.suggestions[e])
}
,
e
}()
, _Ae = "backward"
, MAe = function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._inputElement = l.createRef(),
n._autoFillEnabled = !0,
n._onCompositionStart = function(e) {
n.setState({
isComposing: !0
}),
n._autoFillEnabled = !1
}
,
n._onCompositionUpdate = function() {
lk() && n._updateValue(n._getCurrentInputValue(), !0)
}
,
n._onCompositionEnd = function(e) {
var t = n._getCurrentInputValue();
n._tryEnableAutofill(t, n.value, !1, !0),
n.setState({
isComposing: !1
}),
n._async.setTimeout((function() {
n._updateValue(n._getCurrentInputValue(), !1)
}
), 0)
}
,
n._onClick = function() {
n.value && "" !== n.value && n._autoFillEnabled && (n._autoFillEnabled = !1)
}
,
n._onKeyDown = function(e) {
if (n.props.onKeyDown && n.props.onKeyDown(e),
!e.nativeEvent.isComposing)
switch (e.which) {
case 8:
n._autoFillEnabled = !1;
break;
case hp:
case bp:
n._autoFillEnabled && (n.setState({
inputValue: n.props.suggestedDisplayValue || ""
}),
n._autoFillEnabled = !1);
break;
default:
n._autoFillEnabled || -1 !== n.props.enableAutofillOnKeyPress.indexOf(e.which) && (n._autoFillEnabled = !0)
}
}
,
n._onInputChanged = function(e) {
var t = n._getCurrentInputValue(e);
if (n.state.isComposing || n._tryEnableAutofill(t, n.value, e.nativeEvent.isComposing),
!lk() || !n.state.isComposing) {
var r = e.nativeEvent.isComposing
, i = void 0 === r ? n.state.isComposing : r;
n._updateValue(t, i)
}
}
,
n._onChanged = function() {}
,
n._updateValue = function(e, t) {
if (e || e !== n.value) {
var r = n.props
, i = r.onInputChange
, o = r.onInputValueChange;
i && (e = (null == i ? void 0 : i(e, t)) || ""),
n.setState({
inputValue: e
}, (function() {
return null == o ? void 0 : o(e, t)
}
))
}
}
,
Kb(n),
n._async = new $b(n),
n.state = {
inputValue: t.defaultVisibleValue || "",
isComposing: !1
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e, t) {
if (e.updateValueInWillReceiveProps) {
var n = e.updateValueInWillReceiveProps();
if (null !== n && n !== t.inputValue && !t.isComposing)
return Object(zn.a)(Object(zn.a)({}, t), {
inputValue: n
})
}
return null
}
,
Object.defineProperty(t.prototype, "cursorLocation", {
get: function() {
if (this._inputElement.current) {
var e = this._inputElement.current;
return "forward" !== e.selectionDirection ? e.selectionEnd : e.selectionStart
}
return -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "isValueSelected", {
get: function() {
return Boolean(this.inputElement && this.inputElement.selectionStart !== this.inputElement.selectionEnd)
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "value", {
get: function() {
return this._getControlledValue() || this.state.inputValue || ""
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "selectionStart", {
get: function() {
return this._inputElement.current ? this._inputElement.current.selectionStart : -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "selectionEnd", {
get: function() {
return this._inputElement.current ? this._inputElement.current.selectionEnd : -1
},
enumerable: !1,
configurable: !0
}),
Object.defineProperty(t.prototype, "inputElement", {
get: function() {
return this._inputElement.current
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidUpdate = function(e, t, n) {
var r = this.props
, i = r.suggestedDisplayValue
, o = r.shouldSelectFullInputValueInComponentDidUpdate
, a = 0;
if (!r.preventValueSelection)
if (this._autoFillEnabled && this.value && i && SAe(i, this.value)) {
var l = !1;
if (o && (l = o()),
l && this._inputElement.current)
this._inputElement.current.setSelectionRange(0, i.length, _Ae);
else {
for (; a < this.value.length && this.value[a].toLocaleLowerCase() === i[a].toLocaleLowerCase(); )
a++;
a > 0 && this._inputElement.current && this._inputElement.current.setSelectionRange(a, i.length, _Ae)
}
} else
this._inputElement.current && (null === n || this._autoFillEnabled || this.state.isComposing || this._inputElement.current.setSelectionRange(n.start, n.end, n.dir))
}
,
t.prototype.componentWillUnmount = function() {
this._async.dispose()
}
,
t.prototype.render = function() {
var e = rp(this.props, qd)
, t = Object(zn.a)(Object(zn.a)({}, this.props.style), {
fontFamily: "inherit"
});
return l.createElement("input", Object(zn.a)({
autoCapitalize: "off",
autoComplete: "off",
"aria-autocomplete": "both"
}, e, {
style: t,
ref: this._inputElement,
value: this._getDisplayValue(),
onCompositionStart: this._onCompositionStart,
onCompositionUpdate: this._onCompositionUpdate,
onCompositionEnd: this._onCompositionEnd,
onChange: this._onChanged,
onInput: this._onInputChanged,
onKeyDown: this._onKeyDown,
onClick: this.props.onClick ? this.props.onClick : this._onClick,
"data-lpignore": !0
}))
}
,
t.prototype.focus = function() {
this._inputElement.current && this._inputElement.current.focus()
}
,
t.prototype.clear = function() {
this._autoFillEnabled = !0,
this._updateValue("", !1),
this._inputElement.current && this._inputElement.current.setSelectionRange(0, 0)
}
,
t.prototype.getSnapshotBeforeUpdate = function() {
var e, t, n = this._inputElement.current;
return n && n.selectionStart !== this.value.length ? {
start: null !== (e = n.selectionStart) && void 0 !== e ? e : n.value.length,
end: null !== (t = n.selectionEnd) && void 0 !== t ? t : n.value.length,
dir: n.selectionDirection || "backward"
} : null
}
,
t.prototype._getCurrentInputValue = function(e) {
return e && e.target && e.target.value ? e.target.value : this.inputElement && this.inputElement.value ? this.inputElement.value : ""
}
,
t.prototype._tryEnableAutofill = function(e, t, n, r) {
!n && e && this._inputElement.current && this._inputElement.current.selectionStart === e.length && !this._autoFillEnabled && (e.length > t.length || r) && (this._autoFillEnabled = !0)
}
,
t.prototype._getDisplayValue = function() {
return this._autoFillEnabled ? function(e, t) {
var n = e;
return t && e && SAe(t, n) && (n = t),
n
}(this.value, this.props.suggestedDisplayValue) : this.value
}
,
t.prototype._getControlledValue = function() {
var e = this.props.value;
return void 0 === e || "string" == typeof e ? e : (console.warn("props.value of Autofill should be a string, but it is " + e + " with type of " + typeof e),
e.toString())
}
,
t.defaultProps = {
enableAutofillOnKeyPress: [gp, fp]
},
t
}(l.Component);
function SAe(e, t) {
return !(!e || !t) && 0 === e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())
}
Object(Qi.a)([{
rawString: ".pickerText_15a92175{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "
}, {
theme: "neutralTertiary",
defaultValue: "#a19f9d"
}, {
rawString: ";min-width:180px;min-height:30px}.pickerText_15a92175:hover{border-color:"
}, {
theme: "inputBorderHovered",
defaultValue: "#323130"
}, {
rawString: "}.pickerText_15a92175.inputFocused_15a92175{position:relative;border-color:"
}, {
theme: "inputFocusBorderAlt",
defaultValue: "#0078d4"
}, {
rawString: "}.pickerText_15a92175.inputFocused_15a92175:after{pointer-events:none;content:'';position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid "
}, {
theme: "inputFocusBorderAlt",
defaultValue: "#0078d4"
}, {
rawString: "}@media screen and (-ms-high-contrast:active){.pickerText_15a92175.inputDisabled_15a92175{position:relative;border-color:GrayText}.pickerText_15a92175.inputDisabled_15a92175:after{pointer-events:none;content:'';position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_15a92175{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_15a92175{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_15a92175{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"
}]);
var AAe, TAe, EAe, IAe, NAe, zAe, DAe = "pickerText_15a92175", LAe = "inputFocused_15a92175", RAe = "inputDisabled_15a92175", PAe = "pickerInput_15a92175", BAe = "pickerItems_15a92175", FAe = "screenReaderOnly_15a92175", VAe = a, WAe = Sg(), qAe = function(e) {
function t(t) {
var n = e.call(this, t) || this;
n.root = l.createRef(),
n.input = l.createRef(),
n.suggestionElement = l.createRef(),
n.SuggestionOfProperType = jAe,
n._styledSuggestions = jg(n.SuggestionOfProperType, wAe, void 0, {
scope: "Suggestions"
}),
n.dismissSuggestions = function(e) {
var t = function() {
var t = !0;
n.props.onDismiss && (t = n.props.onDismiss(e, n.suggestionStore.currentSuggestion ? n.suggestionStore.currentSuggestion.item : void 0)),
(!e || e && !e.defaultPrevented) && !1 !== t && n.canAddItems() && n.suggestionStore.hasSelectedSuggestion() && n.state.suggestedDisplayValue && n.addItemByIndex(0)
};
n.currentPromise ? n.currentPromise.then((function() {
return t()
}
)) : t(),
n.setState({
suggestionsVisible: !1
})
}
,
n.refocusSuggestions = function(e) {
n.resetFocus(),
n.suggestionStore.suggestions && n.suggestionStore.suggestions.length > 0 && (e === fp ? n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length - 1) : e === gp && n.suggestionStore.setSelectedSuggestion(0))
}
,
n.onInputChange = function(e) {
n.updateValue(e),
n.setState({
moreSuggestionsAvailable: !0,
isMostRecentlyUsedVisible: !1
})
}
,
n.onSuggestionClick = function(e, t, r) {
n.addItemByIndex(r)
}
,
n.onSuggestionRemove = function(e, t, r) {
n.props.onRemoveSuggestion && n.props.onRemoveSuggestion(t),
n.suggestionStore.removeSuggestion(r)
}
,
n.onInputFocus = function(e) {
n.selection.setAllSelected(!1),
n.state.isFocused || (n._userTriggeredSuggestions(),
n.props.inputProps && n.props.inputProps.onFocus && n.props.inputProps.onFocus(e))
}
,
n.onInputBlur = function(e) {
n.props.inputProps && n.props.inputProps.onBlur && n.props.inputProps.onBlur(e)
}
,
n.onBlur = function(e) {
if (n.state.isFocused) {
var t = e.relatedTarget;
null === e.relatedTarget && (t = document.activeElement),
t && !Yv(n.root.current, t) && (n.setState({
isFocused: !1
}),
n.props.onBlur && n.props.onBlur(e))
}
}
,
n.onClick = function(e) {
void 0 !== n.props.inputProps && void 0 !== n.props.inputProps.onClick && n.props.inputProps.onClick(e),
0 === e.button && n._userTriggeredSuggestions()
}
,
n.onFocus = function() {
n.state.isFocused || n.setState({
isFocused: !0
})
}
,
n.onKeyDown = function(e) {
var t = e.which;
switch (t) {
case dp:
n.state.suggestionsVisible && (n.setState({
suggestionsVisible: !1
}),
e.preventDefault(),
e.stopPropagation());
break;
case 9:
case cp:
n.suggestionElement.current && n.suggestionElement.current.hasSuggestedActionSelected() ? n.suggestionElement.current.executeSelectedAction() : !e.shiftKey && n.suggestionStore.hasSelectedSuggestion() && n.state.suggestionsVisible ? (n.completeSuggestion(),
e.preventDefault(),
e.stopPropagation()) : n._completeGenericSuggestion();
break;
case 8:
n.props.disabled || n.onBackspace(e),
e.stopPropagation();
break;
case 46:
n.props.disabled || (n.input.current && e.target === n.input.current.inputElement && n.state.suggestionsVisible && -1 !== n.suggestionStore.currentIndex ? (n.props.onRemoveSuggestion && n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),
n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),
n.forceUpdate()) : n.onBackspace(e)),
e.stopPropagation();
break;
case fp:
n.input.current && e.target === n.input.current.inputElement && n.state.suggestionsVisible && (n.suggestionElement.current && n.suggestionElement.current.tryHandleKeyDown(t, n.suggestionStore.currentIndex) ? (e.preventDefault(),
e.stopPropagation(),
n.forceUpdate()) : n.suggestionElement.current && n.suggestionElement.current.hasSuggestedAction() && 0 === n.suggestionStore.currentIndex ? (e.preventDefault(),
e.stopPropagation(),
n.suggestionElement.current.focusAboveSuggestions(),
n.suggestionStore.deselectAllSuggestions(),
n.forceUpdate()) : n.suggestionStore.previousSuggestion() && (e.preventDefault(),
e.stopPropagation(),
n.onSuggestionSelect()));
break;
case gp:
n.input.current && e.target === n.input.current.inputElement && n.state.suggestionsVisible && (n.suggestionElement.current && n.suggestionElement.current.tryHandleKeyDown(t, n.suggestionStore.currentIndex) ? (e.preventDefault(),
e.stopPropagation(),
n.forceUpdate()) : n.suggestionElement.current && n.suggestionElement.current.hasSuggestedAction() && n.suggestionStore.currentIndex + 1 === n.suggestionStore.suggestions.length ? (e.preventDefault(),
e.stopPropagation(),
n.suggestionElement.current.focusBelowSuggestions(),
n.suggestionStore.deselectAllSuggestions(),
n.forceUpdate()) : n.suggestionStore.nextSuggestion() && (e.preventDefault(),
e.stopPropagation(),
n.onSuggestionSelect()))
}
}
,
n.onItemChange = function(e, t) {
var r = n.state.items;
if (t >= 0) {
var i = r;
i[t] = e,
n._updateSelectedItems(i)
}
}
,
n.onGetMoreResults = function() {
n.setState({
isSearching: !0
}, (function() {
if (n.props.onGetMoreResults && n.input.current) {
var e = n.props.onGetMoreResults(n.input.current.value, n.state.items)
, t = e
, r = e;
Array.isArray(t) ? (n.updateSuggestions(t),
n.setState({
isSearching: !1
})) : r.then && r.then((function(e) {
n.updateSuggestions(e),
n.setState({
isSearching: !1
})
}
))
} else
n.setState({
isSearching: !1
});
n.input.current && n.input.current.focus(),
n.setState({
moreSuggestionsAvailable: !1,
isResultsFooterVisible: !0
})
}
))
}
,
n.completeSelection = function(e) {
n.addItem(e),
n.updateValue(""),
n.input.current && n.input.current.clear(),
n.setState({
suggestionsVisible: !1
})
}
,
n.addItemByIndex = function(e) {
n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)
}
,
n.addItem = function(e) {
var t = n.props.onItemSelected ? n.props.onItemSelected(e) : e;
if (null !== t) {
var r = t
, i = t;
if (i && i.then)
i.then((function(e) {
var t = n.state.items.concat([e]);
n._updateSelectedItems(t)
}
));
else {
var o = n.state.items.concat([r]);
n._updateSelectedItems(o)
}
n.setState({
suggestedDisplayValue: "",
selectionRemoved: void 0
})
}
}
,
n.removeItem = function(e) {
var t = n.state.items
, r = t.indexOf(e);
if (r >= 0) {
var i = t.slice(0, r).concat(t.slice(r + 1));
n.setState({
selectionRemoved: e
}),
n._updateSelectedItems(i)
}
}
,
n.removeItems = function(e) {
var t = n.state.items.filter((function(t) {
return -1 === e.indexOf(t)
}
));
n._updateSelectedItems(t)
}
,
n._shouldFocusZoneEnterInnerZone = function(e) {
if (n.state.suggestionsVisible)
switch (e.which) {
case fp:
case gp:
return !0
}
return e.which === cp
}
,
n._onResolveSuggestions = function(e) {
var t = n.props.onResolveSuggestions(e, n.state.items);
null !== t && n.updateSuggestionsList(t, e)
}
,
n._completeGenericSuggestion = function() {
if (n.props.onValidateInput && n.input.current && n.props.onValidateInput(n.input.current.value) !== WSe.invalid && n.props.createGenericItem) {
var e = n.props.createGenericItem(n.input.current.value, n.props.onValidateInput(n.input.current.value));
n.suggestionStore.createGenericSuggestion(e),
n.completeSuggestion()
}
}
,
n._userTriggeredSuggestions = function() {
if (!n.state.suggestionsVisible) {
var e = n.input.current ? n.input.current.value : "";
e ? 0 === n.suggestionStore.suggestions.length ? n._onResolveSuggestions(e) : n.setState({
isMostRecentlyUsedVisible: !1,
suggestionsVisible: !0
}) : n.onEmptyInputFocus()
}
}
,
Kb(n),
n._async = new $b(n);
var r = t.selectedItems || t.defaultSelectedItems || [];
return n._id = lg(),
n._ariaMap = {
selectedItems: "selected-items-" + n._id,
selectedSuggestionAlert: "selected-suggestion-alert-" + n._id,
suggestionList: "suggestion-list-" + n._id,
combobox: "combobox-" + n._id
},
n.suggestionStore = new CAe,
n.selection = new fE({
onSelectionChanged: function() {
return n.onSelectionChange()
}
}),
n.selection.setItems(r),
n.state = {
items: r,
suggestedDisplayValue: "",
isMostRecentlyUsedVisible: !1,
moreSuggestionsAvailable: !1,
isFocused: !1,
isSearching: !1,
selectedIndices: [],
selectionRemoved: void 0
},
n
}
return Object(zn.c)(t, e),
t.getDerivedStateFromProps = function(e) {
return e.selectedItems ? {
items: e.selectedItems
} : null
}
,
Object.defineProperty(t.prototype, "items", {
get: function() {
return this.state.items
},
enumerable: !1,
configurable: !0
}),
t.prototype.componentDidMount = function() {
this.selection.setItems(this.state.items),
this._onResolveSuggestions = this._async.debounce(this._onResolveSuggestions, this.props.resolveDelay)
}
,
t.prototype.componentDidUpdate = function(e, t) {
if (this.state.items && this.state.items !== t.items) {
var n = this.selection.getSelectedIndices()[0];
this.selection.setItems(this.state.items),
this.state.isFocused && (this.state.items.length < t.items.length ? (this.selection.setIndexSelected(n, !1, !0),
this.resetFocus(n)) : this.state.items.length > t.items.length && !this.canAddItems() && this.resetFocus(this.state.items.length - 1))
}
}
,
t.prototype.componentWillUnmount = function() {
this.currentPromise && (this.currentPromise = void 0),
this._async.dispose()
}
,
t.prototype.focus = function() {
this.input.current && this.input.current.focus()
}
,
t.prototype.focusInput = function() {
this.input.current && this.input.current.focus()
}
,
t.prototype.completeSuggestion = function(e) {
this.suggestionStore.hasSelectedSuggestion() && this.input.current ? this.completeSelection(this.suggestionStore.currentSuggestion.item) : e && this._completeGenericSuggestion()
}
,
t.prototype.render = function() {
var e = this.state
, t = e.suggestedDisplayValue
, n = e.isFocused
, r = e.items
, i = this.props
, o = i.className
, a = i.inputProps
, s = i.disabled
, c = i.selectionAriaLabel
, u = i.selectionRole
, d = void 0 === u ? "list" : u
, p = i.theme
, h = i.styles
, f = this.state.suggestionsVisible ? this._ariaMap.suggestionList : ""
, b = h ? WAe(h, {
theme: p,
className: o,
isFocused: n,
disabled: s,
inputClassName: a && a.className
}) : {
root: ip("ms-BasePicker", o || ""),
text: ip("ms-BasePicker-text", VAe.pickerText, this.state.isFocused && VAe.inputFocused),
itemsWrapper: VAe.pickerItems,
input: ip("ms-BasePicker-input", VAe.pickerInput, a && a.className),
screenReaderText: VAe.screenReaderOnly
}
, g = this.props["aria-label"] || (null == a ? void 0 : a["aria-label"]);
return l.createElement("div", {
ref: this.root,
className: b.root,
onKeyDown: this.onKeyDown,
onFocus: this.onFocus,
onBlur: this.onBlur
}, this.renderCustomAlert(b.screenReaderText), l.createElement("span", {
id: this._ariaMap.selectedItems + "-label",
hidden: !0
}, c || g), l.createElement(hE, {
selection: this.selection,
selectionMode: MT.multiple
}, l.createElement("div", {
className: b.text,
"aria-owns": f
}, r.length > 0 && l.createElement("span", {
id: this._ariaMap.selectedItems,
className: b.itemsWrapper,
role: d,
"aria-labelledby": this._ariaMap.selectedItems + "-label"
}, this.renderItems()), this.canAddItems() && l.createElement(MAe, Object(zn.a)({
spellCheck: !1
}, a, {
className: b.input,
componentRef: this.input,
id: (null == a ? void 0 : a.id) ? a.id : this._ariaMap.combobox,
onClick: this.onClick,
onFocus: this.onInputFocus,
onBlur: this.onInputBlur,
onInputValueChange: this.onInputChange,
suggestedDisplayValue: t,
"aria-activedescendant": this.getActiveDescendant(),
"aria-controls": f,
"aria-describedby": r.length > 0 ? this._ariaMap.selectedItems : void 0,
"aria-expanded": !!this.state.suggestionsVisible,
"aria-haspopup": "listbox",
"aria-label": g,
role: "combobox",
disabled: s,
onInputChange: this.props.onInputChange
})))), this.renderSuggestions())
}
,
t.prototype.canAddItems = function() {
var e = this.state.items
, t = this.props.itemLimit;
return void 0 === t || e.length < t
}
,
t.prototype.renderSuggestions = function() {
var e = this._styledSuggestions;
return this.state.suggestionsVisible && this.input ? l.createElement(Bx, Object(zn.a)({
isBeakVisible: !1,
gapSpace: 5,
target: this.input.current ? this.input.current.inputElement : void 0,
onDismiss: this.dismissSuggestions,
directionalHint: 4,
directionalHintForRTL: 6
}, this.props.pickerCalloutProps), l.createElement(e, Object(zn.a)({
onRenderSuggestion: this.props.onRenderSuggestionsItem,
onSuggestionClick: this.onSuggestionClick,
onSuggestionRemove: this.onSuggestionRemove,
suggestions: this.suggestionStore.getSuggestions(),
componentRef: this.suggestionElement,
onGetMoreResults: this.onGetMoreResults,
moreSuggestionsAvailable: this.state.moreSuggestionsAvailable,
isLoading: this.state.suggestionsLoading,
isSearching: this.state.isSearching,
isMostRecentlyUsedVisible: this.state.isMostRecentlyUsedVisible,
isResultsFooterVisible: this.state.isResultsFooterVisible,
refocusSuggestions: this.refocusSuggestions,
removeSuggestionAriaLabel: this.props.removeButtonAriaLabel,
suggestionsListId: this._ariaMap.suggestionList,
createGenericItem: this._completeGenericSuggestion
}, this.props.pickerSuggestionsProps))) : null
}
,
t.prototype.renderItems = function() {
var e = this
, t = this.props
, n = t.disabled
, r = t.removeButtonAriaLabel
, i = t.removeButtonIconProps
, o = this.props.onRenderItem
, a = this.state
, l = a.items
, s = a.selectedIndices;
return l.map((function(t, a) {
return o({
item: t,
index: a,
key: t.key ? t.key : a,
selected: -1 !== s.indexOf(a),
onRemoveItem: function() {
return e.removeItem(t)
},
disabled: n,
onItemChange: e.onItemChange,
removeButtonAriaLabel: r,
removeButtonIconProps: i
})
}
))
}
,
t.prototype.resetFocus = function(e) {
var t = this.state.items;
if (t.length && e >= 0) {
var n = this.root.current && this.root.current.querySelectorAll("[data-selection-index]")[Math.min(e, t.length - 1)];
n && n.focus()
} else
this.canAddItems() ? this.input.current && this.input.current.focus() : this.resetFocus(t.length - 1)
}
,
t.prototype.onSuggestionSelect = function() {
if (this.suggestionStore.currentSuggestion) {
var e = this.input.current ? this.input.current.value : ""
, t = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, e);
this.setState({
suggestedDisplayValue: t
})
}
}
,
t.prototype.onSelectionChange = function() {
this.setState({
selectedIndices: this.selection.getSelectedIndices()
})
}
,
t.prototype.updateSuggestions = function(e) {
this.suggestionStore.updateSuggestions(e, 0),
this.forceUpdate()
}
,
t.prototype.onEmptyInputFocus = function() {
var e = this.props.onEmptyResolveSuggestions ? this.props.onEmptyResolveSuggestions : this.props.onEmptyInputFocus;
if (e) {
var t = e(this.state.items);
this.updateSuggestionsList(t),
this.setState({
isMostRecentlyUsedVisible: !0,
suggestionsVisible: !0,
moreSuggestionsAvailable: !1
})
}
}
,
t.prototype.updateValue = function(e) {
this._onResolveSuggestions(e)
}
,
t.prototype.updateSuggestionsList = function(e, t) {
var n = this;
Array.isArray(e) ? this._updateAndResolveValue(t, e) : e && e.then && (this.setState({
suggestionsLoading: !0
}),
this.suggestionStore.updateSuggestions([]),
void 0 !== t ? this.setState({
suggestionsVisible: this._getShowSuggestions()
}) : this.setState({
suggestionsVisible: this.input.current && this.input.current.inputElement === document.activeElement
}),
this.currentPromise = e,
e.then((function(r) {
e === n.currentPromise && n._updateAndResolveValue(t, r)
}
)))
}
,
t.prototype.resolveNewValue = function(e, t) {
var n = this;
this.updateSuggestions(t);
var r = void 0;
this.suggestionStore.currentSuggestion && (r = this._getTextFromItem(this.suggestionStore.currentSuggestion.item, e)),
this.setState({
suggestedDisplayValue: r,
suggestionsVisible: this._getShowSuggestions()
}, (function() {
return n.setState({
suggestionsLoading: !1
})
}
))
}
,
t.prototype.onChange = function(e) {
this.props.onChange && this.props.onChange(e)
}
,
t.prototype.onBackspace = function(e) {
(this.state.items.length && !this.input.current || this.input.current && !this.input.current.isValueSelected && 0 === this.input.current.cursorLocation) && (this.selection.getSelectedCount() > 0 ? this.removeItems(this.selection.getSelection()) : this.removeItem(this.state.items[this.state.items.length - 1]))
}
,
t.prototype.getActiveDescendant = function() {
var e;
if (!this.state.suggestionsLoading) {
var t = this.suggestionStore.currentIndex;
return t < 0 ? (null === (e = this.suggestionElement.current) || void 0 === e ? void 0 : e.hasSuggestedAction()) ? "sug-selectedAction" : 0 === this.suggestionStore.suggestions.length ? "sug-noResultsFound" : void 0 : "sug-" + t
}
}
,
t.prototype.getSuggestionsAlert = function(e) {
void 0 === e && (e = VAe.screenReaderOnly);
var t = this.suggestionStore.currentIndex;
if (this.props.enableSelectedSuggestionAlert) {
var n = t > -1 ? this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex) : void 0
, r = n ? n.ariaLabel : void 0;
return l.createElement("div", {
id: this._ariaMap.selectedSuggestionAlert,
className: e
}, r + " ")
}
}
,
t.prototype.renderCustomAlert = function(e) {
void 0 === e && (e = VAe.screenReaderOnly);
var t = this.props.suggestionRemovedText
, n = void 0 === t ? "removed {0}" : t
, r = "";
return this.state.selectionRemoved && (r = ZSe(n, this._getTextFromItem(this.state.selectionRemoved, ""))),
l.createElement("div", {
className: e,
id: this._ariaMap.selectedSuggestionAlert,
"aria-live": "assertive"
}, this.getSuggestionsAlert(e), r)
}
,
t.prototype._updateAndResolveValue = function(e, t) {
void 0 !== e ? this.resolveNewValue(e, t) : (this.suggestionStore.updateSuggestions(t, -1),
this.state.suggestionsLoading && this.setState({
suggestionsLoading: !1
}))
}
,
t.prototype._updateSelectedItems = function(e) {
var t = this;
this.props.selectedItems ? this.onChange(e) : this.setState({
items: e
}, (function() {
t._onSelectedItemsUpdated(e)
}
))
}
,
t.prototype._onSelectedItemsUpdated = function(e) {
this.onChange(e)
}
,
t.prototype._getShowSuggestions = function() {
return void 0 !== this.input.current && null !== this.input.current && this.input.current.inputElement === document.activeElement && "" !== this.input.current.value
}
,
t.prototype._getTextFromItem = function(e, t) {
return this.props.getTextFromItem ? this.props.getTextFromItem(e, t) : ""
}
,
t
}(l.Component), HAe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.state
, t = e.suggestedDisplayValue
, n = e.isFocused
, r = this.props
, i = r.className
, o = r.inputProps
, a = r.disabled
, s = r.selectionAriaLabel
, c = r.selectionRole
, u = void 0 === c ? "list" : c
, d = r.theme
, p = r.styles
, h = this.state.suggestionsVisible ? this._ariaMap.suggestionList : ""
, f = p ? WAe(p, {
theme: d,
className: i,
isFocused: n,
inputClassName: o && o.className
}) : {
root: ip("ms-BasePicker", i || ""),
text: ip("ms-BasePicker-text", VAe.pickerText, this.state.isFocused && VAe.inputFocused, a && VAe.inputDisabled),
itemsWrapper: VAe.pickerItems,
input: ip("ms-BasePicker-input", VAe.pickerInput, o && o.className),
screenReaderText: VAe.screenReaderOnly
}
, b = this.props["aria-label"] || (null == o ? void 0 : o["aria-label"]);
return l.createElement("div", {
ref: this.root,
onBlur: this.onBlur,
onFocus: this.onFocus
}, l.createElement("div", {
className: f.root,
onKeyDown: this.onKeyDown
}, this.renderCustomAlert(f.screenReaderText), l.createElement("div", {
className: f.text,
"aria-owns": h || void 0
}, l.createElement(MAe, Object(zn.a)({}, o, {
className: f.input,
componentRef: this.input,
onFocus: this.onInputFocus,
onBlur: this.onInputBlur,
onClick: this.onClick,
onInputValueChange: this.onInputChange,
suggestedDisplayValue: t,
"aria-activedescendant": this.getActiveDescendant(),
"aria-controls": h || void 0,
"aria-expanded": !!this.state.suggestionsVisible,
"aria-haspopup": "listbox",
"aria-label": b,
role: "combobox",
id: (null == o ? void 0 : o.id) ? o.id : this._ariaMap.combobox,
disabled: a,
onInputChange: this.props.onInputChange
})))), this.renderSuggestions(), l.createElement(hE, {
selection: this.selection,
selectionMode: MT.single
}, l.createElement("div", {
id: this._ariaMap.selectedItems,
className: "ms-BasePicker-selectedItems",
role: u,
"aria-label": s || b
}, this.renderItems())))
}
,
t.prototype.onBackspace = function(e) {}
,
t
}(qAe);
!function(e) {
e[e.tiny = 0] = "tiny",
e[e.extraExtraSmall = 1] = "extraExtraSmall",
e[e.extraSmall = 2] = "extraSmall",
e[e.small = 3] = "small",
e[e.regular = 4] = "regular",
e[e.large = 5] = "large",
e[e.extraLarge = 6] = "extraLarge",
e[e.size8 = 17] = "size8",
e[e.size10 = 9] = "size10",
e[e.size16 = 8] = "size16",
e[e.size24 = 10] = "size24",
e[e.size28 = 7] = "size28",
e[e.size32 = 11] = "size32",
e[e.size40 = 12] = "size40",
e[e.size48 = 13] = "size48",
e[e.size56 = 16] = "size56",
e[e.size72 = 14] = "size72",
e[e.size100 = 15] = "size100",
e[e.size120 = 18] = "size120"
}(AAe || (AAe = {})),
function(e) {
e[e.none = 0] = "none",
e[e.offline = 1] = "offline",
e[e.online = 2] = "online",
e[e.away = 3] = "away",
e[e.dnd = 4] = "dnd",
e[e.blocked = 5] = "blocked",
e[e.busy = 6] = "busy"
}(TAe || (TAe = {})),
function(e) {
e[e.lightBlue = 0] = "lightBlue",
e[e.blue = 1] = "blue",
e[e.darkBlue = 2] = "darkBlue",
e[e.teal = 3] = "teal",
e[e.lightGreen = 4] = "lightGreen",
e[e.green = 5] = "green",
e[e.darkGreen = 6] = "darkGreen",
e[e.lightPink = 7] = "lightPink",
e[e.pink = 8] = "pink",
e[e.magenta = 9] = "magenta",
e[e.purple = 10] = "purple",
e[e.black = 11] = "black",
e[e.orange = 12] = "orange",
e[e.red = 13] = "red",
e[e.darkRed = 14] = "darkRed",
e[e.transparent = 15] = "transparent",
e[e.violet = 16] = "violet",
e[e.lightRed = 17] = "lightRed",
e[e.gold = 18] = "gold",
e[e.burgundy = 19] = "burgundy",
e[e.warmGray = 20] = "warmGray",
e[e.coolGray = 21] = "coolGray",
e[e.gray = 22] = "gray",
e[e.cyan = 23] = "cyan",
e[e.rust = 24] = "rust"
}(EAe || (EAe = {})),
function(e) {
e.size8 = "20px",
e.size10 = "20px",
e.size16 = "16px",
e.size24 = "24px",
e.size28 = "28px",
e.size32 = "32px",
e.size40 = "40px",
e.size48 = "48px",
e.size56 = "56px",
e.size72 = "72px",
e.size100 = "100px",
e.size120 = "120px"
}(NAe || (NAe = {})),
function(e) {
e.size6 = "6px",
e.size8 = "8px",
e.size12 = "12px",
e.size16 = "16px",
e.size20 = "20px",
e.size28 = "28px",
e.size32 = "32px",
e.border = "2px"
}(zAe || (zAe = {}));
var UAe = function(e) {
return {
isSize8: e === AAe.size8,
isSize10: e === AAe.size10 || e === AAe.tiny,
isSize16: e === AAe.size16,
isSize24: e === AAe.size24 || e === AAe.extraExtraSmall,
isSize28: e === AAe.size28 || e === AAe.extraSmall,
isSize32: e === AAe.size32,
isSize40: e === AAe.size40 || e === AAe.small,
isSize48: e === AAe.size48 || e === AAe.regular,
isSize56: e === AAe.size56,
isSize72: e === AAe.size72 || e === AAe.large,
isSize100: e === AAe.size100 || e === AAe.extraLarge,
isSize120: e === AAe.size120
}
}
, XAe = ((IAe = {})[AAe.tiny] = 10,
IAe[AAe.extraExtraSmall] = 24,
IAe[AAe.extraSmall] = 28,
IAe[AAe.small] = 40,
IAe[AAe.regular] = 48,
IAe[AAe.large] = 72,
IAe[AAe.extraLarge] = 100,
IAe[AAe.size8] = 8,
IAe[AAe.size10] = 10,
IAe[AAe.size16] = 16,
IAe[AAe.size24] = 24,
IAe[AAe.size28] = 28,
IAe[AAe.size32] = 32,
IAe[AAe.size40] = 40,
IAe[AAe.size48] = 48,
IAe[AAe.size56] = 56,
IAe[AAe.size72] = 72,
IAe[AAe.size100] = 100,
IAe[AAe.size120] = 120,
IAe)
, GAe = function(e) {
return {
isAvailable: e === TAe.online,
isAway: e === TAe.away,
isBlocked: e === TAe.blocked,
isBusy: e === TAe.busy,
isDoNotDisturb: e === TAe.dnd,
isOffline: e === TAe.offline
}
}
, KAe = Sg({
cacheSize: 100
})
, YAe = l.forwardRef((function(e, t) {
var n = e.coinSize
, r = e.isOutOfOffice
, i = e.styles
, o = e.presence
, a = e.theme
, s = e.presenceTitle
, c = e.presenceColors
, u = Eg(t, l.useRef(null))
, d = UAe(e.size)
, p = !(d.isSize8 || d.isSize10 || d.isSize16 || d.isSize24 || d.isSize28 || d.isSize32) && (!n || n > 32)
, h = n ? n / 3 < 40 ? n / 3 + "px" : "40px" : ""
, f = n ? {
fontSize: n ? n / 6 < 20 ? n / 6 + "px" : "20px" : "",
lineHeight: h
} : void 0
, b = n ? {
width: h,
height: h
} : void 0
, g = KAe(i, {
theme: a,
presence: o,
size: e.size,
isOutOfOffice: r,
presenceColors: c
});
return o === TAe.none ? null : l.createElement("div", {
role: "presentation",
className: g.presence,
style: b,
title: s,
ref: u
}, p && l.createElement(Pg, {
className: g.presenceIcon,
iconName: QAe(e.presence, e.isOutOfOffice),
style: f
}))
}
));
function QAe(e, t) {
if (e) {
var n = "SkypeArrow";
switch (TAe[e]) {
case "online":
return "SkypeCheck";
case "away":
return t ? n : "SkypeClock";
case "dnd":
return "SkypeMinus";
case "offline":
return t ? n : ""
}
return ""
}
}
YAe.displayName = "PersonaPresenceBase";
var JAe = {
presence: "ms-Persona-presence",
presenceIcon: "ms-Persona-presenceIcon"
};
function ZAe(e) {
return {
color: e,
borderColor: e
}
}
function $Ae(e, t) {
return {
selectors: {
":before": {
border: e + " solid " + t
}
}
}
}
function eTe(e) {
return {
height: e,
width: e
}
}
function tTe(e) {
return {
backgroundColor: e
}
}
var nTe = jg(YAe, (function(e) {
var t, n, r, i, o, a, l = e.theme, s = e.presenceColors, c = l.semanticColors, u = l.fonts, d = Vi(JAe, l), p = UAe(e.size), h = GAe(e.presence), f = s && s.available || "#6BB700", b = s && s.away || "#FFAA44", g = s && s.busy || "#C43148", m = s && s.dnd || "#C50F1F", v = s && s.offline || "#8A8886", y = s && s.oof || "#B4009E", x = s && s.background || c.bodyBackground, O = h.isOffline || e.isOutOfOffice && (h.isAvailable || h.isBusy || h.isAway || h.isDoNotDisturb), j = p.isSize72 || p.isSize100 ? "2px" : "1px";
return {
presence: [d.presence, Object(zn.a)(Object(zn.a)({
position: "absolute",
height: zAe.size12,
width: zAe.size12,
borderRadius: "50%",
top: "auto",
right: "-2px",
bottom: "-2px",
border: "2px solid " + x,
textAlign: "center",
boxSizing: "content-box",
backgroundClip: "border-box"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
selectors: (t = {},
t[vi] = {
borderColor: "Window",
backgroundColor: "WindowText"
},
t)
}), (p.isSize8 || p.isSize10) && {
right: "auto",
top: "7px",
left: 0,
border: 0,
selectors: (n = {},
n[vi] = {
top: "9px",
border: "1px solid WindowText"
},
n)
}, (p.isSize8 || p.isSize10 || p.isSize24 || p.isSize28 || p.isSize32) && eTe(zAe.size8), (p.isSize40 || p.isSize48) && eTe(zAe.size12), p.isSize16 && {
height: zAe.size6,
width: zAe.size6,
borderWidth: "1.5px"
}, p.isSize56 && eTe(zAe.size16), p.isSize72 && eTe(zAe.size20), p.isSize100 && eTe(zAe.size28), p.isSize120 && eTe(zAe.size32), h.isAvailable && {
backgroundColor: f,
selectors: (r = {},
r[vi] = tTe("Highlight"),
r)
}, h.isAway && tTe(b), h.isBlocked && [{
selectors: (i = {
":after": p.isSize40 || p.isSize48 || p.isSize72 || p.isSize100 ? {
content: '""',
width: "100%",
height: j,
backgroundColor: g,
transform: "translateY(-50%) rotate(-45deg)",
position: "absolute",
top: "50%",
left: 0
} : void 0
},
i[vi] = {
selectors: {
":after": {
width: "calc(100% - 4px)",
left: "2px",
backgroundColor: "Window"
}
}
},
i)
}], h.isBusy && tTe(g), h.isDoNotDisturb && tTe(m), h.isOffline && tTe(v), (O || h.isBlocked) && [{
backgroundColor: x,
selectors: (o = {
":before": {
content: '""',
width: "100%",
height: "100%",
position: "absolute",
top: 0,
left: 0,
border: j + " solid " + g,
borderRadius: "50%",
boxSizing: "border-box"
}
},
o[vi] = {
backgroundColor: "WindowText",
selectors: {
":before": {
width: "calc(100% - 2px)",
height: "calc(100% - 2px)",
top: "1px",
left: "1px",
borderColor: "Window"
}
}
},
o)
}], O && h.isAvailable && $Ae(j, f), O && h.isBusy && $Ae(j, g), O && h.isAway && $Ae(j, y), O && h.isDoNotDisturb && $Ae(j, m), O && h.isOffline && $Ae(j, v), O && h.isOffline && e.isOutOfOffice && $Ae(j, y)],
presenceIcon: [d.presenceIcon, {
color: x,
fontSize: "6px",
lineHeight: zAe.size12,
verticalAlign: "top",
selectors: (a = {},
a[vi] = {
color: "Window"
},
a)
}, p.isSize56 && {
fontSize: "8px",
lineHeight: zAe.size16
}, p.isSize72 && {
fontSize: u.small.fontSize,
lineHeight: zAe.size20
}, p.isSize100 && {
fontSize: u.medium.fontSize,
lineHeight: zAe.size28
}, p.isSize120 && {
fontSize: u.medium.fontSize,
lineHeight: zAe.size32
}, h.isAway && {
position: "relative",
left: O ? void 0 : "1px"
}, O && h.isAvailable && ZAe(f), O && h.isBusy && ZAe(g), O && h.isAway && ZAe(y), O && h.isDoNotDisturb && ZAe(m), O && h.isOffline && ZAe(v), O && h.isOffline && e.isOutOfOffice && ZAe(y)]
}
}
), void 0, {
scope: "PersonaPresence"
})
, rTe = [EAe.lightBlue, EAe.blue, EAe.darkBlue, EAe.teal, EAe.green, EAe.darkGreen, EAe.lightPink, EAe.pink, EAe.magenta, EAe.purple, EAe.orange, EAe.lightRed, EAe.darkRed, EAe.violet, EAe.gold, EAe.burgundy, EAe.warmGray, EAe.cyan, EAe.rust, EAe.coolGray]
, iTe = rTe.length;
function oTe(e) {
var t = e.primaryText
, n = e.text
, r = e.initialsColor;
return "string" == typeof r ? r : function(e) {
switch (e) {
case EAe.lightBlue:
return "#4F6BED";
case EAe.blue:
return "#0078D4";
case EAe.darkBlue:
return "#004E8C";
case EAe.teal:
return "#038387";
case EAe.lightGreen:
case EAe.green:
return "#498205";
case EAe.darkGreen:
return "#0B6A0B";
case EAe.lightPink:
return "#C239B3";
case EAe.pink:
return "#E3008C";
case EAe.magenta:
return "#881798";
case EAe.purple:
return "#5C2E91";
case EAe.orange:
return "#CA5010";
case EAe.red:
return "#EE1111";
case EAe.lightRed:
return "#D13438";
case EAe.darkRed:
return "#A4262C";
case EAe.transparent:
return "transparent";
case EAe.violet:
return "#8764B8";
case EAe.gold:
return "#986F0B";
case EAe.burgundy:
return "#750B1C";
case EAe.warmGray:
return "#7A7574";
case EAe.cyan:
return "#005B70";
case EAe.rust:
return "#8E562E";
case EAe.coolGray:
return "#69797E";
case EAe.black:
return "#1D1D1D";
case EAe.gray:
return "#393939"
}
}(r = void 0 !== r ? r : function(e) {
var t = EAe.blue;
if (!e)
return t;
for (var n = 0, r = e.length - 1; r >= 0; r--) {
var i = e.charCodeAt(r)
, o = r % 8;
n ^= (i << o) + (i >> 8 - o)
}
return rTe[n % iTe]
}(n || t))
}
var aTe = Sg({
cacheSize: 100
})
, lTe = Li((function(e, t, n, r, i, o) {
return dr(e, !o && {
backgroundColor: oTe({
text: r,
initialsColor: t,
primaryText: i
}),
color: n
})
}
))
, sTe = {
size: AAe.size48,
presence: TAe.none,
imageAlt: ""
}
, cTe = l.forwardRef((function(e, t) {
var n = hy(sTe, e)
, r = function(e) {
var t = e.onPhotoLoadingStateChange
, n = e.imageUrl
, r = l.useState(Cg.notLoaded)
, i = r[0]
, o = r[1];
return l.useEffect((function() {
o(Cg.notLoaded)
}
), [n]),
[i, function(e) {
o(e),
null == t || t(e)
}
]
}(n)
, i = r[0]
, o = r[1]
, a = uTe(o)
, s = n.className
, c = n.coinProps
, u = n.showUnknownPersonaCoin
, d = n.coinSize
, p = n.styles
, h = n.imageUrl
, f = n.initialsColor
, b = n.initialsTextColor
, g = n.isOutOfOffice
, m = n.onRenderCoin
, v = void 0 === m ? a : m
, y = n.onRenderPersonaCoin
, x = void 0 === y ? v : y
, O = n.onRenderInitials
, j = void 0 === O ? dTe : O
, k = n.presence
, w = n.presenceTitle
, C = n.presenceColors
, _ = n.primaryText
, M = n.showInitialsUntilImageLoads
, S = n.text
, A = n.theme
, T = n.size
, E = rp(n, np)
, I = rp(c || {}, np)
, N = d ? {
width: d,
height: d
} : void 0
, z = u
, D = {
coinSize: d,
isOutOfOffice: g,
presence: k,
presenceTitle: w,
presenceColors: C,
size: T,
theme: A
}
, L = aTe(p, {
theme: A,
className: c && c.className ? c.className : s,
size: T,
coinSize: d,
showUnknownPersonaCoin: u
})
, R = Boolean(i !== Cg.loaded && (M && h || !h || i === Cg.error || z));
return l.createElement("div", Object(zn.a)({
role: "presentation"
}, E, {
className: L.coin,
ref: t
}), T !== AAe.size8 && T !== AAe.size10 && T !== AAe.tiny ? l.createElement("div", Object(zn.a)({
role: "presentation"
}, I, {
className: L.imageArea,
style: N
}), R && l.createElement("div", {
className: lTe(L.initials, f, b, S, _, u),
style: N,
"aria-hidden": "true"
}, j(n, dTe)), !z && x(n, a), l.createElement(nTe, Object(zn.a)({}, D))) : n.presence ? l.createElement(nTe, Object(zn.a)({}, D)) : l.createElement(Pg, {
iconName: "Contact",
className: L.size10WithoutPresenceIcon
}), n.children)
}
));
cTe.displayName = "PersonaCoinBase";
var uTe = function(e) {
return function(t) {
var n = t.coinSize
, r = t.styles
, i = t.imageUrl
, o = t.imageAlt
, a = t.imageShouldFadeIn
, s = t.imageShouldStartVisible
, c = t.theme
, u = t.showUnknownPersonaCoin
, d = t.size
, p = void 0 === d ? sTe.size : d;
if (!i)
return null;
var h = aTe(r, {
theme: c,
size: p,
showUnknownPersonaCoin: u
})
, f = n || XAe[p];
return l.createElement(Lg, {
className: h.image,
imageFit: kg.cover,
src: i,
width: f,
height: f,
alt: o,
shouldFadeIn: a,
shouldStartVisible: s,
onLoadingStateChange: e
})
}
}
, dTe = function(e) {
var t = e.imageInitials
, n = e.allowPhoneInitials
, r = e.showUnknownPersonaCoin
, i = e.text
, o = e.primaryText
, a = e.theme;
if (r)
return l.createElement(Pg, {
iconName: "Help"
});
var s = vp(a);
return "" !== (t = t || YSe(i || o || "", s, n)) ? l.createElement("span", null, t) : l.createElement(Pg, {
iconName: "Contact"
})
}
, pTe = {
coin: "ms-Persona-coin",
imageArea: "ms-Persona-imageArea",
image: "ms-Persona-image",
initials: "ms-Persona-initials",
size8: "ms-Persona--size8",
size10: "ms-Persona--size10",
size16: "ms-Persona--size16",
size24: "ms-Persona--size24",
size28: "ms-Persona--size28",
size32: "ms-Persona--size32",
size40: "ms-Persona--size40",
size48: "ms-Persona--size48",
size56: "ms-Persona--size56",
size72: "ms-Persona--size72",
size100: "ms-Persona--size100",
size120: "ms-Persona--size120"
}
, hTe = jg(cTe, (function(e) {
var t, n = e.className, r = e.theme, i = e.coinSize, o = r.palette, a = r.fonts, l = UAe(e.size), s = Vi(pTe, r), c = i || e.size && XAe[e.size] || 48;
return {
coin: [s.coin, a.medium, l.isSize8 && s.size8, l.isSize10 && s.size10, l.isSize16 && s.size16, l.isSize24 && s.size24, l.isSize28 && s.size28, l.isSize32 && s.size32, l.isSize40 && s.size40, l.isSize48 && s.size48, l.isSize56 && s.size56, l.isSize72 && s.size72, l.isSize100 && s.size100, l.isSize120 && s.size120, n],
size10WithoutPresenceIcon: {
fontSize: a.xSmall.fontSize,
position: "absolute",
top: "5px",
right: "auto",
left: 0
},
imageArea: [s.imageArea, {
position: "relative",
textAlign: "center",
flex: "0 0 auto",
height: c,
width: c
}, c <= 10 && {
overflow: "visible",
background: "transparent",
height: 0,
width: 0
}],
image: [s.image, {
marginRight: "10px",
position: "absolute",
top: 0,
left: 0,
width: "100%",
height: "100%",
border: 0,
borderRadius: "50%",
perspective: "1px"
}, c <= 10 && {
overflow: "visible",
background: "transparent",
height: 0,
width: 0
}, c > 10 && {
height: c,
width: c
}],
initials: [s.initials, {
borderRadius: "50%",
color: e.showUnknownPersonaCoin ? "rgb(168, 0, 0)" : o.white,
fontSize: a.large.fontSize,
fontWeight: bi.semibold,
lineHeight: 48 === c ? 46 : c,
height: c,
selectors: (t = {},
t[vi] = Object(zn.a)(Object(zn.a)({
border: "1px solid WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}), {
color: "WindowText",
boxSizing: "border-box",
backgroundColor: "Window !important"
}),
t.i = {
fontWeight: bi.semibold
},
t)
}, e.showUnknownPersonaCoin && {
backgroundColor: "rgb(234, 234, 234)"
}, c < 32 && {
fontSize: a.xSmall.fontSize
}, c >= 32 && c < 40 && {
fontSize: a.medium.fontSize
}, c >= 40 && c < 56 && {
fontSize: a.mediumPlus.fontSize
}, c >= 56 && c < 72 && {
fontSize: a.xLarge.fontSize
}, c >= 72 && c < 100 && {
fontSize: a.xxLarge.fontSize
}, c >= 100 && {
fontSize: a.superLarge.fontSize
}]
}
}
), void 0, {
scope: "PersonaCoin"
})
, fTe = Sg()
, bTe = {
size: AAe.size48,
presence: TAe.none,
imageAlt: "",
showOverflowTooltip: !0
}
, gTe = l.forwardRef((function(e, t) {
var n = hy(bTe, e)
, r = Eg(t, l.useRef(null))
, i = function() {
return n.text || n.primaryText || ""
}
, o = function(e, t, r) {
return l.createElement("div", {
dir: "auto",
className: e
}, t && t(n, r))
}
, a = function(e, t) {
return void 0 === t && (t = !0),
e ? t ? function() {
return l.createElement(BA, {
content: e,
overflowMode: SA.Parent,
directionalHint: 0
}, e)
}
: function() {
return l.createElement(l.Fragment, null, e)
}
: void 0
}
, s = a(i(), n.showOverflowTooltip)
, c = a(n.secondaryText, n.showOverflowTooltip)
, u = a(n.tertiaryText, n.showOverflowTooltip)
, d = a(n.optionalText, n.showOverflowTooltip)
, p = n.hidePersonaDetails
, h = n.onRenderOptionalText
, f = void 0 === h ? d : h
, b = n.onRenderPrimaryText
, g = void 0 === b ? s : b
, m = n.onRenderSecondaryText
, v = void 0 === m ? c : m
, y = n.onRenderTertiaryText
, x = void 0 === y ? u : y
, O = n.onRenderPersonaCoin
, j = void 0 === O ? function(e) {
return l.createElement(hTe, Object(zn.a)({}, e))
}
: O
, k = n.size
, w = n.allowPhoneInitials
, C = n.className
, _ = n.coinProps
, M = n.showUnknownPersonaCoin
, S = n.coinSize
, A = n.styles
, T = n.imageAlt
, E = n.imageInitials
, I = n.imageShouldFadeIn
, N = n.imageShouldStartVisible
, z = n.imageUrl
, D = n.initialsColor
, L = n.initialsTextColor
, R = n.isOutOfOffice
, P = n.onPhotoLoadingStateChange
, B = n.onRenderCoin
, F = n.onRenderInitials
, V = n.presence
, W = n.presenceTitle
, q = n.presenceColors
, H = n.showInitialsUntilImageLoads
, U = n.showSecondaryText
, X = n.theme
, G = Object(zn.a)({
allowPhoneInitials: w,
showUnknownPersonaCoin: M,
coinSize: S,
imageAlt: T,
imageInitials: E,
imageShouldFadeIn: I,
imageShouldStartVisible: N,
imageUrl: z,
initialsColor: D,
initialsTextColor: L,
onPhotoLoadingStateChange: P,
onRenderCoin: B,
onRenderInitials: F,
presence: V,
presenceTitle: W,
showInitialsUntilImageLoads: H,
size: k,
text: i(),
isOutOfOffice: R,
presenceColors: q
}, _)
, K = fTe(A, {
theme: X,
className: C,
showSecondaryText: U,
presence: V,
size: k
})
, Y = rp(n, np)
, Q = l.createElement("div", {
className: K.details
}, o(K.primaryText, g, s), o(K.secondaryText, v, c), o(K.tertiaryText, x, u), o(K.optionalText, f, d), n.children);
return l.createElement("div", Object(zn.a)({}, Y, {
ref: r,
className: K.root,
style: S ? {
height: S,
minWidth: S
} : void 0
}), j(G, j), (!p || k === AAe.size8 || k === AAe.size10 || k === AAe.tiny) && Q)
}
));
gTe.displayName = "PersonaBase";
var mTe = {
root: "ms-Persona",
size8: "ms-Persona--size8",
size10: "ms-Persona--size10",
size16: "ms-Persona--size16",
size24: "ms-Persona--size24",
size28: "ms-Persona--size28",
size32: "ms-Persona--size32",
size40: "ms-Persona--size40",
size48: "ms-Persona--size48",
size56: "ms-Persona--size56",
size72: "ms-Persona--size72",
size100: "ms-Persona--size100",
size120: "ms-Persona--size120",
available: "ms-Persona--online",
away: "ms-Persona--away",
blocked: "ms-Persona--blocked",
busy: "ms-Persona--busy",
doNotDisturb: "ms-Persona--donotdisturb",
offline: "ms-Persona--offline",
details: "ms-Persona-details",
primaryText: "ms-Persona-primaryText",
secondaryText: "ms-Persona-secondaryText",
tertiaryText: "ms-Persona-tertiaryText",
optionalText: "ms-Persona-optionalText",
textContent: "ms-Persona-textContent"
}
, vTe = jg(gTe, (function(e) {
var t = e.className
, n = e.showSecondaryText
, r = e.theme
, i = r.semanticColors
, o = r.fonts
, a = Vi(mTe, r)
, l = UAe(e.size)
, s = GAe(e.presence)
, c = "16px"
, u = {
color: i.bodySubtext,
fontWeight: bi.regular,
fontSize: o.small.fontSize
};
return {
root: [a.root, r.fonts.medium, Oo, {
color: i.bodyText,
position: "relative",
height: NAe.size48,
minWidth: NAe.size48,
display: "flex",
alignItems: "center",
selectors: {
".contextualHost": {
display: "none"
}
}
}, l.isSize8 && [a.size8, {
height: NAe.size8,
minWidth: NAe.size8
}], l.isSize10 && [a.size10, {
height: NAe.size10,
minWidth: NAe.size10
}], l.isSize16 && [a.size16, {
height: NAe.size16,
minWidth: NAe.size16
}], l.isSize24 && [a.size24, {
height: NAe.size24,
minWidth: NAe.size24
}], l.isSize24 && n && {
height: "36px"
}, l.isSize28 && [a.size28, {
height: NAe.size28,
minWidth: NAe.size28
}], l.isSize28 && n && {
height: "32px"
}, l.isSize32 && [a.size32, {
height: NAe.size32,
minWidth: NAe.size32
}], l.isSize40 && [a.size40, {
height: NAe.size40,
minWidth: NAe.size40
}], l.isSize48 && a.size48, l.isSize56 && [a.size56, {
height: NAe.size56,
minWidth: NAe.size56
}], l.isSize72 && [a.size72, {
height: NAe.size72,
minWidth: NAe.size72
}], l.isSize100 && [a.size100, {
height: NAe.size100,
minWidth: NAe.size100
}], l.isSize120 && [a.size120, {
height: NAe.size120,
minWidth: NAe.size120
}], s.isAvailable && a.available, s.isAway && a.away, s.isBlocked && a.blocked, s.isBusy && a.busy, s.isDoNotDisturb && a.doNotDisturb, s.isOffline && a.offline, t],
details: [a.details, {
padding: "0 24px 0 16px",
minWidth: 0,
width: "100%",
textAlign: "left",
display: "flex",
flexDirection: "column",
justifyContent: "space-around"
}, (l.isSize8 || l.isSize10) && {
paddingLeft: 17
}, (l.isSize24 || l.isSize28 || l.isSize32) && {
padding: "0 8px"
}, (l.isSize40 || l.isSize48) && {
padding: "0 12px"
}],
primaryText: [a.primaryText, jo, {
color: i.bodyText,
fontWeight: bi.regular,
fontSize: o.medium.fontSize,
selectors: {
":hover": {
color: i.inputTextHovered
}
}
}, n && {
height: c,
lineHeight: c,
overflowX: "hidden"
}, (l.isSize8 || l.isSize10) && {
fontSize: o.small.fontSize,
lineHeight: NAe.size8
}, l.isSize16 && {
lineHeight: NAe.size28
}, (l.isSize24 || l.isSize28 || l.isSize32 || l.isSize40 || l.isSize48) && n && {
height: 18
}, (l.isSize56 || l.isSize72 || l.isSize100 || l.isSize120) && {
fontSize: o.xLarge.fontSize
}, (l.isSize56 || l.isSize72 || l.isSize100 || l.isSize120) && n && {
height: 22
}],
secondaryText: [a.secondaryText, jo, u, (l.isSize8 || l.isSize10 || l.isSize16 || l.isSize24 || l.isSize28 || l.isSize32) && {
display: "none"
}, n && {
display: "block",
height: c,
lineHeight: c,
overflowX: "hidden"
}, l.isSize24 && n && {
height: 18
}, (l.isSize56 || l.isSize72 || l.isSize100 || l.isSize120) && {
fontSize: o.medium.fontSize
}, (l.isSize56 || l.isSize72 || l.isSize100 || l.isSize120) && n && {
height: 18
}],
tertiaryText: [a.tertiaryText, jo, u, {
display: "none",
fontSize: o.medium.fontSize
}, (l.isSize72 || l.isSize100 || l.isSize120) && {
display: "block"
}],
optionalText: [a.optionalText, jo, u, {
display: "none",
fontSize: o.medium.fontSize
}, (l.isSize100 || l.isSize120) && {
display: "block"
}],
textContent: [a.textContent, jo]
}
}
), void 0, {
scope: "Persona"
})
, yTe = {
root: "ms-PickerPersona-container",
itemContent: "ms-PickerItem-content",
removeButton: "ms-PickerItem-removeButton",
isSelected: "is-selected",
isInvalid: "is-invalid"
}
, xTe = Sg()
, OTe = jg((function(e) {
var t = e.item
, n = e.onRemoveItem
, r = e.index
, i = e.selected
, o = e.removeButtonAriaLabel
, a = e.styles
, s = e.theme
, c = e.className
, u = e.disabled
, d = e.removeButtonIconProps
, p = lg()
, h = xTe(a, {
theme: s,
className: c,
selected: i,
disabled: u,
invalid: t.ValidationState === WSe.warning
})
, f = h.subComponentStyles ? h.subComponentStyles.persona : void 0
, b = h.subComponentStyles ? h.subComponentStyles.personaCoin : void 0;
return l.createElement("div", {
className: h.root,
role: "listitem"
}, l.createElement("div", {
className: h.itemContent,
id: "selectedItemPersona-" + p
}, l.createElement(vTe, Object(zn.a)({
size: AAe.size24,
styles: f,
coinProps: {
styles: b
}
}, t))), l.createElement(Fj, {
id: p,
onClick: n,
disabled: u,
iconProps: null != d ? d : {
iconName: "Cancel"
},
styles: {
icon: {
fontSize: "12px"
}
},
className: h.removeButton,
ariaLabel: o,
"aria-labelledby": p + " selectedItemPersona-" + p,
"data-selection-index": r
}))
}
), (function(e) {
var t, n, r, i, o, a, l, s = e.className, c = e.theme, u = e.selected, d = e.invalid, p = e.disabled, h = c.palette, f = c.semanticColors, b = c.fonts, g = Vi(yTe, c), m = [u && !d && !p && {
color: h.white,
selectors: (t = {
":hover": {
color: h.white
}
},
t[vi] = {
color: "HighlightText"
},
t)
}, (d && !u || d && u && p) && {
color: h.redDark,
borderBottom: "2px dotted " + h.redDark,
selectors: (n = {},
n["." + g.root + ":hover &"] = {
color: h.redDark
},
n)
}, d && u && !p && {
color: h.white,
borderBottom: "2px dotted " + h.white
}, p && {
selectors: (r = {},
r[vi] = {
color: "GrayText"
},
r)
}], v = [d && {
fontSize: b.xLarge.fontSize
}];
return {
root: [g.root, Mi(c, {
inset: -2
}), {
borderRadius: 15,
display: "inline-flex",
alignItems: "center",
background: h.neutralLighter,
margin: "1px 2px",
cursor: "default",
userSelect: "none",
maxWidth: 300,
verticalAlign: "middle",
minWidth: 0,
selectors: (i = {
":hover": {
background: u || p ? "" : h.neutralLight
}
},
i[vi] = [{
border: "1px solid WindowText"
}, p && {
borderColor: "GrayText"
}],
i)
}, u && !p && [g.isSelected, {
background: h.themePrimary,
selectors: (o = {},
o[vi] = Object(zn.a)({
borderColor: "HighLight",
background: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
o)
}], d && [g.isInvalid], d && u && !p && {
background: h.redDark
}, s],
itemContent: [g.itemContent, {
flex: "0 1 auto",
minWidth: 0,
maxWidth: "100%",
overflow: "hidden"
}],
removeButton: [g.removeButton, {
borderRadius: 15,
color: h.neutralPrimary,
flex: "0 0 auto",
width: 24,
height: 24,
selectors: {
":hover": {
background: h.neutralTertiaryAlt,
color: h.neutralDark
}
}
}, u && [{
color: h.white,
selectors: (a = {
":hover": {
color: h.white,
background: h.themeDark
},
":active": {
color: h.white,
background: h.themeDarker
}
},
a[vi] = {
color: "HighlightText"
},
a)
}, d && {
selectors: {
":hover": {
background: h.red
},
":active": {
background: h.redDark
}
}
}], p && {
selectors: (l = {},
l["." + KO.msButtonIcon] = {
color: f.buttonText
},
l)
}],
subComponentStyles: {
persona: {
primaryText: m
},
personaCoin: {
initials: v
}
}
}
}
), void 0, {
scope: "PeoplePickerItem"
})
, jTe = {
root: "ms-PeoplePicker-personaContent",
personaWrapper: "ms-PeoplePicker-Persona"
}
, kTe = Sg()
, wTe = jg((function(e) {
var t = e.personaProps
, n = e.suggestionsProps
, r = e.compact
, i = e.styles
, o = e.theme
, a = e.className
, s = kTe(i, {
theme: o,
className: n && n.suggestionsItemClassName || a
})
, c = s.subComponentStyles && s.subComponentStyles.persona ? s.subComponentStyles.persona : void 0;
return l.createElement("div", {
className: s.root
}, l.createElement(vTe, Object(zn.a)({
size: AAe.size24,
styles: c,
className: s.personaWrapper,
showSecondaryText: !r,
showOverflowTooltip: !1
}, t)))
}
), (function(e) {
var t, n, r, i = e.className, o = e.theme, a = Vi(jTe, o), l = {
selectors: (t = {},
t["." + vAe.isSuggested + " &"] = {
selectors: (n = {},
n[vi] = {
color: "HighlightText"
},
n)
},
t["." + a.root + ":hover &"] = {
selectors: (r = {},
r[vi] = {
color: "HighlightText"
},
r)
},
t)
};
return {
root: [a.root, {
width: "100%",
padding: "4px 12px"
}, i],
personaWrapper: [a.personaWrapper, {
width: 180
}],
subComponentStyles: {
persona: {
primaryText: l,
secondaryText: l
}
}
}
}
), void 0, {
scope: "PeoplePickerItemSuggestion"
})
, CTe = {
root: "ms-BasePicker",
text: "ms-BasePicker-text",
itemsWrapper: "ms-BasePicker-itemsWrapper",
input: "ms-BasePicker-input"
};
function _Te(e) {
var t, n, r, i = e.className, o = e.theme, a = e.isFocused, l = e.inputClassName, s = e.disabled;
if (!o)
throw new Error("theme is undefined or null in base BasePicker getStyles function.");
var c = o.semanticColors
, u = o.effects
, d = o.fonts
, p = c.inputBorder
, h = c.inputBorderHovered
, f = c.inputFocusBorderAlt
, b = Vi(CTe, o)
, g = [d.medium, {
color: c.inputPlaceholderText,
opacity: 1,
selectors: (t = {},
t[vi] = {
color: "GrayText"
},
t)
}]
, m = {
color: c.disabledText,
selectors: (n = {},
n[vi] = {
color: "GrayText"
},
n)
}
, v = "rgba(218, 218, 218, 0.29)";
return {
root: [b.root, i],
text: [b.text, {
display: "flex",
position: "relative",
flexWrap: "wrap",
alignItems: "center",
boxSizing: "border-box",
minWidth: 180,
minHeight: 30,
border: "1px solid " + p,
borderRadius: u.roundedCorner2
}, !a && !s && {
selectors: {
":hover": {
borderColor: h
}
}
}, a && !s && Si(f, u.roundedCorner2), s && {
borderColor: v,
selectors: (r = {
":after": {
content: '""',
position: "absolute",
top: 0,
right: 0,
bottom: 0,
left: 0,
background: v
}
},
r[vi] = {
borderColor: "GrayText",
selectors: {
":after": {
background: "none"
}
}
},
r)
}],
itemsWrapper: [b.itemsWrapper, {
display: "flex",
flexWrap: "wrap",
maxWidth: "100%"
}],
input: [b.input, d.medium, {
height: 30,
border: "none",
flexGrow: 1,
outline: "none",
padding: "0 6px 0",
alignSelf: "flex-end",
borderRadius: u.roundedCorner2,
backgroundColor: "transparent",
color: c.inputText,
selectors: {
"::-ms-clear": {
display: "none"
}
}
}, ko(g), s && ko(m), l],
screenReaderText: Ai
}
}
var MTe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t
}(qAe)
, STe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t
}(HAe)
, ATe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.defaultProps = {
onRenderItem: function(e) {
return l.createElement(OTe, Object(zn.a)({}, e))
},
onRenderSuggestionsItem: function(e, t) {
return l.createElement(wTe, {
personaProps: e,
suggestionsProps: t
})
},
createGenericItem: ITe
},
t
}(MTe)
, TTe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.defaultProps = {
onRenderItem: function(e) {
return l.createElement(OTe, Object(zn.a)({}, e))
},
onRenderSuggestionsItem: function(e, t) {
return l.createElement(wTe, {
personaProps: e,
suggestionsProps: t,
compact: !0
})
},
createGenericItem: ITe
},
t
}(MTe)
, ETe = function(e) {
function t() {
return null !== e && e.apply(this, arguments) || this
}
return Object(zn.c)(t, e),
t.defaultProps = {
onRenderItem: function(e) {
return l.createElement(OTe, Object(zn.a)({}, e))
},
onRenderSuggestionsItem: function(e, t) {
return l.createElement(wTe, {
personaProps: e,
suggestionsProps: t
})
},
createGenericItem: ITe
},
t
}(STe);
function ITe(e, t) {
var n = {
key: e,
primaryText: e,
imageInitials: "!",
ValidationState: t
};
return t !== WSe.warning && (n.imageInitials = YSe(e, vp())),
n
}
var NTe = jg(ATe, _Te, void 0, {
scope: "NormalPeoplePicker"
})
, zTe = jg(TTe, _Te, void 0, {
scope: "CompactPeoplePicker"
})
, DTe = (jg(ETe, _Te, void 0, {
scope: "ListPeoplePickerBase"
}),
{
suggestionsHeaderText: "Suggested Data",
mostRecentlyUsedHeaderText: "Suggested Contacts",
noResultsFoundText: "No results found",
loadingText: "Loading",
showRemoveButtons: !0,
suggestionsAvailableAlertText: "People Picker Suggestions available",
suggestionsContainerAriaLabel: "Suggested contacts"
});
function LTe(e) {
return -1 !== e.indexOf("@") ? WSe.valid : e.length > 1 ? WSe.warning : WSe.invalid
}
function RTe(e) {
var t = /<.*>/g.exec(e);
return t && t[0] ? t[0].substring(1, t[0].length - 1) : e
}
function PTe(e) {
return e.text
}
var BTe = ps.a.CancelToken
, FTe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).picker = void 0,
r.source = void 0,
r.prepareData = function(e) {
return e.map((function(e) {
var t, n, r, i, o;
return {
id: null == e || null === (t = e.id) || void 0 === t ? void 0 : t.toString(),
text: js()(null !== (n = null == e ? void 0 : e.name) && void 0 !== n ? n : ""),
imageUrl: null !== (r = null == e || null === (i = e.images) || void 0 === i || null === (o = i[0]) || void 0 === o ? void 0 : o.src) && void 0 !== r ? r : Zp.NoImage
}
}
))
}
,
r.getData = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var i;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
r.fetchData(t, n);
case 3:
return i = e.sent,
r.setState({
mostRecentlyUsed: r.prepareData(i)
}),
e.abrupt("return", r.prepareData(i));
case 8:
return e.prev = 8,
e.t0 = e.catch(0),
e.abrupt("return", []);
case 11:
case "end":
return e.stop()
}
}
), e, null, [[0, 8]])
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}(),
r.fetchData = function(e, t) {
var n = r.props
, i = n.language
, o = n.isTranslate
, a = n.translate;
return bc({
lang: o && a ? i : "en",
search: e,
exclude: t,
per_page: 10,
status: "publish"
}, r.source.token)
}
,
r.onFilterChanged = function(e, t) {
return e ? r.getData(e) : r.state.mostRecentlyUsed
}
,
r.returnMostRecentlyUsed = function(e) {
if (r.state.mostRecentlyUsed.length > 0)
return r.state.mostRecentlyUsed;
var t = e ? e.map((function(e) {
return e.id
}
)) : [];
return r.getData("", t)
}
,
r.onRemoveSuggestion = function(e) {
var t = r.state.mostRecentlyUsed
, n = t.findIndex((function(t) {
return t.id === e.id
}
));
if (n) {
var i = t.slice(0, n).concat(t.slice(n + 1));
r.setState({
mostRecentlyUsed: i
})
}
}
,
r.onChangeValue = function(e) {
var t = r.props.onChange
, n = r.state.mostRecentlyUsed;
if (e) {
t && t(e);
var i = n.filter((function(t) {
return e.findIndex((function(e) {
return e.id === t.id
}
)) < 0
}
));
r.setState({
mostRecentlyUsed: i
})
}
}
,
r.picker = s.a.createRef(),
r.state = {
mostRecentlyUsed: []
},
r.source = BTe.source(),
r
}
return Object(At.a)(n, [{
key: "componentDidUpdate",
value: function(e, t, n) {
this.props.isTranslate && this.props.language !== e.language && this.getData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e = this.props.value;
return Object(Ip.jsx)(zTe, {
onResolveSuggestions: this.onFilterChanged,
onEmptyInputFocus: this.returnMostRecentlyUsed,
getTextFromItem: PTe,
pickerSuggestionsProps: DTe,
className: "ms-PeoplePicker",
selectedItems: e,
onChange: this.onChangeValue,
onRemoveSuggestion: this.onRemoveSuggestion,
onValidateInput: LTe,
removeButtonAriaLabel: "Remove",
inputProps: {
onBlur: function(e) {
return console.log("onBlur called")
},
onFocus: function(e) {
return console.log("onFocus called")
},
"aria-label": "Data Picker"
},
componentRef: this.picker,
onInputChange: RTe,
resolveDelay: 300
}, "normal")
}
}]),
n
}(l.Component)
, VTe = FTe
, WTe = {
suggestionsHeaderText: "Suggested Data",
mostRecentlyUsedHeaderText: "Suggested Contacts",
noResultsFoundText: "No results found",
loadingText: "Loading",
showRemoveButtons: !0,
suggestionsAvailableAlertText: "People Picker Suggestions available",
suggestionsContainerAriaLabel: "Suggested contacts"
};
function qTe(e) {
return -1 !== e.indexOf("@") ? WSe.valid : e.length > 1 ? WSe.warning : WSe.invalid
}
function HTe(e) {
var t = /<.*>/g.exec(e);
return t && t[0] ? t[0].substring(1, t[0].length - 1) : e
}
function UTe(e) {
return e.text
}
var XTe, GTe = ps.a.CancelToken, KTe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).picker = void 0,
r.source = void 0,
r.prepareData = function(e) {
return e.map((function(e) {
var t, n, r, i;
return {
id: null == e || null === (t = e.id) || void 0 === t ? void 0 : t.toString(),
text: js()(null !== (n = null == e || null === (r = e.title) || void 0 === r ? void 0 : r.rendered) && void 0 !== n ? n : ""),
imageUrl: null !== (i = null == e ? void 0 : e.rnlab_featured_media_url) && void 0 !== i ? i : Zp.NoImage
}
}
))
}
,
r.getData = function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t, n) {
var i;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return e.prev = 0,
e.next = 3,
r.fetchData(t, n);
case 3:
return i = e.sent,
r.setState({
mostRecentlyUsed: r.prepareData(i)
}),
e.abrupt("return", r.prepareData(i));
case 8:
return e.prev = 8,
e.t0 = e.catch(0),
e.abrupt("return", []);
case 11:
case "end":
return e.stop()
}
}
), e, null, [[0, 8]])
}
)));
return function(t, n) {
return e.apply(this, arguments)
}
}(),
r.fetchData = function(e, t) {
var n = r.props
, i = n.language
, o = n.isTranslate
, a = n.translate;
return cc({
lang: o && a ? i : "en",
search: e,
exclude: t,
per_page: 10,
status: "publish"
}, r.source.token)
}
,
r.onFilterChanged = function(e, t) {
return e ? r.getData(e) : []
}
,
r.returnMostRecentlyUsed = function(e) {
if (r.state.mostRecentlyUsed.length > 0)
return r.state.mostRecentlyUsed;
var t = e ? e.map((function(e) {
return e.id
}
)) : [];
return r.getData("", t)
}
,
r.onRemoveSuggestion = function(e) {
var t = r.state.mostRecentlyUsed
, n = t.findIndex((function(t) {
return t.id === e.id
}
));
if (n) {
var i = t.slice(0, n).concat(t.slice(n + 1));
r.setState({
mostRecentlyUsed: i
})
}
}
,
r.onChangeValue = function(e) {
var t = r.props.onChange
, n = r.state.mostRecentlyUsed;
if (e) {
t && t(e);
var i = n.filter((function(t) {
return e.findIndex((function(e) {
return e.id === t.id
}
)) < 0
}
));
r.setState({
mostRecentlyUsed: i
})
}
}
,
r.picker = s.a.createRef(),
r.state = {
mostRecentlyUsed: []
},
r.source = GTe.source(),
r
}
return Object(At.a)(n, [{
key: "componentDidUpdate",
value: function(e, t, n) {
this.props.isTranslate && this.props.language !== e.language && this.getData()
}
}, {
key: "componentWillUnmount",
value: function() {
this.source.cancel("Operation fetch product canceled by the user.")
}
}, {
key: "render",
value: function() {
var e = this.props.value;
return Object(Ip.jsx)(zTe, {
onResolveSuggestions: this.onFilterChanged,
onEmptyInputFocus: this.returnMostRecentlyUsed,
getTextFromItem: UTe,
pickerSuggestionsProps: WTe,
className: "ms-PeoplePicker",
selectedItems: e,
onChange: this.onChangeValue,
onRemoveSuggestion: this.onRemoveSuggestion,
onValidateInput: qTe,
removeButtonAriaLabel: "Remove",
inputProps: {
onBlur: function(e) {
return console.log("onBlur called")
},
onFocus: function(e) {
return console.log("onFocus called")
},
"aria-label": "Data Picker"
},
componentRef: this.picker,
onInputChange: HTe,
resolveDelay: 300
}, "normal")
}
}]),
n
}(l.Component), YTe = KTe, QTe = Mu.b.div(XTe || (XTe = _u(["\n margin-top: 20px;\n"]))), JTe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChangeType = function(t, n, r) {
var i, o, a = e.props, l = a.onChange, s = a.props, c = null !== (i = null == s ? void 0 : s.hiddenId) && void 0 !== i ? i : [], u = null !== (o = null == s ? void 0 : s.listInfo) && void 0 !== o ? o : [];
if (null != n && n.key) {
var d = n.key.toString();
if (c.indexOf(d) > -1)
l && l({
type: d
});
else {
var p = u.find((function(e) {
return (null == e ? void 0 : e.key) === d
}
))
, h = "product" === (null == p ? void 0 : p.data) || "post" === (null == p ? void 0 : p.data) ? [] : "";
l && l({
type: d,
data: h
})
}
}
}
,
e._onChangeId = function(t) {
var n = e.props
, r = n.onChange
, i = n.value
, o = n.isTranslate
, a = n.translate
, l = n.language
, s = null != i ? i : {};
if (o) {
var c = _t(_t({}, s), {}, a ? Object(wt.a)({}, l, t) : {
data: t
});
r && r(c)
} else
r && r(_t(_t({}, s), {}, {
data: t
}))
}
,
e.renderId = function(t) {
var n, r, i, o, a, l, s = e.props, c = s.id, u = s.value, d = s.onBlur, p = s.props, h = s.isTranslate, f = s.translate, b = s.language, g = null !== (n = null == p ? void 0 : p.hiddenId) && void 0 !== n ? n : [], m = null !== (r = null == p ? void 0 : p.listInfo) && void 0 !== r ? r : [], v = null !== (i = null == p ? void 0 : p.idLabel) && void 0 !== i ? i : "Id";
if (g.indexOf(t) > -1)
return null;
var y, x, O, j, k = m.find((function(e) {
return (null == e ? void 0 : e.key) === t
}
));
return "product" === (null == k ? void 0 : k.data) || "post" === (null == k ? void 0 : k.data) ? "product" === (null == k ? void 0 : k.data) ? Object(Ip.jsxs)(QTe, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: v
}), Object(Ip.jsx)(VTe, {
value: h && f ? null !== (O = null == u ? void 0 : u[b]) && void 0 !== O ? O : [] : null !== (j = null == u ? void 0 : u.data) && void 0 !== j ? j : [],
onChange: e._onChangeId,
isTranslate: h,
translate: f,
language: b
})]
}) : Object(Ip.jsxs)(QTe, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: v
}), Object(Ip.jsx)(YTe, {
value: h && f ? null !== (y = null == u ? void 0 : u[b]) && void 0 !== y ? y : [] : null !== (x = null == u ? void 0 : u.data) && void 0 !== x ? x : [],
onChange: e._onChangeId,
isTranslate: h,
translate: f,
language: b
})]
}) : Object(Ip.jsxs)(QTe, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: v
}), Object(Ip.jsx)(hke, {
id: "text-type-id-".concat(c),
defaultValue: h && f ? null !== (o = null == u ? void 0 : u[b]) && void 0 !== o ? o : "" : null !== (a = null == u ? void 0 : u.data) && void 0 !== a ? a : "",
input: "text",
label: "",
onChange: e._onChangeId,
onBlur: d,
props: {
placeholder: null !== (l = null == p ? void 0 : p.idPlaceholder) && void 0 !== l ? l : "Id"
}
})]
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.label, i = n.value, o = n.props, a = null !== (e = null == o ? void 0 : o.options) && void 0 !== e ? e : [], l = null != i && i.type ? i.type : "";
return Object(Ip.jsxs)(Ip.Fragment, {
children: [r && Object(Ip.jsx)(ok, {
styles: sS,
children: r
}), Object(Ip.jsx)(pM, {
options: a,
placeholder: null !== (t = null == o ? void 0 : o.typePlaceholder) && void 0 !== t ? t : "Type ...",
defaultSelectedKey: l,
onChange: this._onChangeType
}), this.renderId(l)]
})
}
}]),
n
}(l.Component);
JTe.defaultProps = {
onChange: function(e) {
return console.log(e)
},
defaultValue: !1
};
var ZTe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))(JTe)
, $Te = Sg()
, eEe = function(e) {
return function(t) {
var n;
return (n = {})[e] = t + "%",
n
}
}
, tEe = function(e, t, n) {
return n === t ? 0 : (e - t) / (n - t) * 100
}
, nEe = l.forwardRef((function(e, t) {
var n = function(e, t) {
var n = e.step
, r = void 0 === n ? 1 : n
, i = e.className
, o = e.disabled
, a = void 0 !== o && o
, s = e.label
, c = e.max
, u = void 0 === c ? 10 : c
, d = e.min
, p = void 0 === d ? 0 : d
, h = e.showValue
, f = void 0 === h || h
, b = e.buttonProps
, g = void 0 === b ? {} : b
, m = e.vertical
, v = void 0 !== m && m
, y = e.snapToStep
, x = e.valueFormat
, O = e.styles
, j = e.theme
, k = e.originFromZero
, w = e["aria-labelledby"]
, C = e["aria-label"]
, _ = e.ranged
, M = e.onChange
, S = e.onChanged
, A = l.useRef([])
, T = Ij()
, E = T.setTimeout
, I = T.clearTimeout
, N = l.useRef(null)
, z = _C(e.value, e.defaultValue, (function(e, t) {
return null == M ? void 0 : M(t, _ ? [W.latestLowerValue, t] : void 0, e)
}
))
, D = z[0]
, L = z[1]
, R = _C(e.lowerValue, e.defaultLowerValue, (function(e, t) {
return null == M ? void 0 : M(W.latestValue, [t, W.latestValue], e)
}
))
, P = R[0]
, B = R[1]
, F = Math.max(p, Math.min(u, D || 0))
, V = Math.max(p, Math.min(F, P || 0))
, W = $y({
onKeyDownTimer: -1,
isAdjustingLowerValue: !1,
latestValue: F,
latestLowerValue: V
});
W.latestValue = F,
W.latestLowerValue = V;
var q = gO("Slider", e.id || (null == g ? void 0 : g.id))
, H = $Te(O, {
className: i,
disabled: a,
vertical: v,
showTransitions: !y && !W.isBetweenSteps,
showValue: f,
ranged: _,
theme: j
})
, U = (u - p) / r
, X = function() {
I(W.onKeyDownTimer),
W.onKeyDownTimer = -1
}
, G = function(e) {
X(),
S && (W.onKeyDownTimer = E((function() {
S(e, W.latestValue, _ ? [W.latestLowerValue, W.latestValue] : void 0)
}
), 1e3))
}
, K = function(t) {
var n = e.ariaValueText;
if (void 0 !== t)
return n ? n(t) : t.toString()
}
, Y = function(e, t, n) {
t = Math.min(u, Math.max(p, t)),
n = void 0 !== n ? Math.min(u, Math.max(p, n)) : void 0;
var i = 0;
if (isFinite(r))
for (; Math.round(r * Math.pow(10, i)) / Math.pow(10, i) !== r; )
i++;
var o = parseFloat(t.toFixed(i));
W.isBetweenSteps = void 0 !== n && n !== o,
_ ? W.isAdjustingLowerValue && (k ? o <= 0 : o <= W.latestValue) ? B(o, e) : !W.isAdjustingLowerValue && (k ? o >= 0 : o >= W.latestLowerValue) && L(o, e) : L(o, e)
}
, Q = function(e, t) {
var n = 0;
switch (e.type) {
case "mousedown":
case "mousemove":
n = t ? e.clientY : e.clientX;
break;
case "touchstart":
case "touchmove":
n = t ? e.touches[0].clientY : e.touches[0].clientX
}
return n
}
, J = function(t) {
var n, r = N.current.getBoundingClientRect(), i = (e.vertical ? r.height : r.width) / U;
if (e.vertical) {
var o = Q(t, e.vertical);
n = (r.bottom - o) / i
} else {
var a = Q(t, e.vertical);
n = (vp(e.theme) ? r.right - a : a - r.left) / i
}
return n
}
, Z = function(e, t) {
var n = J(e)
, i = p + r * n
, o = p + r * Math.round(n);
Y(e, o, i),
t || (e.preventDefault(),
e.stopPropagation())
}
, $ = function(e) {
if (_) {
var t = J(e)
, n = p + r * t;
W.isAdjustingLowerValue = n <= W.latestLowerValue || n - W.latestLowerValue <= W.latestValue - n
}
"mousedown" === e.type ? A.current.push(vy(window, "mousemove", Z, !0), vy(window, "mouseup", ee, !0)) : "touchstart" === e.type && A.current.push(vy(window, "touchmove", Z, !0), vy(window, "touchend", ee, !0)),
Z(e, !0)
}
, ee = function(e) {
W.isBetweenSteps = void 0,
null == S || S(e, W.latestValue, _ ? [W.latestLowerValue, W.latestValue] : void 0),
te()
}
, te = function() {
A.current.forEach((function(e) {
return e()
}
)),
A.current = []
}
, ne = l.useRef(null)
, re = l.useRef(null);
!function(e, t, n, r) {
l.useImperativeHandle(e.componentRef, (function() {
return {
get value() {
return n
},
get range() {
return r
},
focus: function() {
t.current && t.current.focus()
}
}
}
), [t, n, r])
}(e, _ && !v ? ne : re, F, _ ? [V, F] : void 0);
var ie = eEe(v ? "bottom" : vp(e.theme) ? "right" : "left")
, oe = eEe(v ? "height" : "width")
, ae = k ? 0 : p
, le = tEe(F, p, u)
, se = tEe(V, p, u)
, ce = tEe(ae, p, u)
, ue = _ ? le - se : Math.abs(ce - le)
, de = Math.min(100 - le, 100 - ce)
, pe = _ ? se : Math.min(le, ce)
, he = {
className: H.root,
ref: t
}
, fe = {
className: H.titleLabel,
children: s,
disabled: a,
htmlFor: C ? void 0 : q
}
, be = f ? {
className: H.valueLabel,
children: x ? x(F) : F,
disabled: a,
htmlFor: a ? q : void 0
} : void 0
, ge = _ && f ? {
className: H.valueLabel,
children: x ? x(V) : V,
disabled: a
} : void 0
, me = k ? {
className: H.zeroTick,
style: ie(ce)
} : void 0
, ve = {
className: ip(H.lineContainer, H.activeSection),
style: oe(ue)
}
, ye = {
className: ip(H.lineContainer, H.inactiveSection),
style: oe(de)
}
, xe = {
className: ip(H.lineContainer, H.inactiveSection),
style: oe(pe)
}
, Oe = Object(zn.a)({
"aria-disabled": a,
role: "slider",
tabIndex: a ? void 0 : 0
}, {
"data-is-focusable": !a
})
, je = Object(zn.a)(Object(zn.a)(Object(zn.a)({
id: q,
className: ip(H.slideBox, g.className)
}, !a && {
onMouseDown: $,
onTouchStart: $,
onKeyDown: function(t) {
var n = W.isAdjustingLowerValue ? W.latestLowerValue : W.latestValue
, i = 0;
switch (t.which) {
case yp(hp, e.theme):
case gp:
i = -r,
X(),
G(t);
break;
case yp(bp, e.theme):
case fp:
i = r,
X(),
G(t);
break;
case 36:
n = p,
X(),
G(t);
break;
case 35:
n = u,
X(),
G(t);
break;
default:
return
}
Y(t, n + i),
t.preventDefault(),
t.stopPropagation()
}
}), g && rp(g, np, ["id", "className"])), !_ && Object(zn.a)(Object(zn.a)({}, Oe), {
"aria-valuemin": p,
"aria-valuemax": u,
"aria-valuenow": F,
"aria-valuetext": K(F),
"aria-label": C || s,
"aria-labelledby": w
}))
, ke = a ? {} : {
onFocus: function(e) {
W.isAdjustingLowerValue = e.target === ne.current
}
}
, we = Object(zn.a)({
ref: re,
className: H.thumb,
style: ie(le)
}, _ && Object(zn.a)(Object(zn.a)(Object(zn.a)({}, Oe), ke), {
id: "max-" + q,
"aria-valuemin": V,
"aria-valuemax": u,
"aria-valuenow": F,
"aria-valuetext": K(F),
"aria-label": "max " + (C || s)
}))
, Ce = _ ? Object(zn.a)(Object(zn.a)(Object(zn.a)({
ref: ne,
className: H.thumb,
style: ie(se)
}, Oe), ke), {
id: "min-" + q,
"aria-valuemin": p,
"aria-valuemax": F,
"aria-valuenow": V,
"aria-valuetext": K(V),
"aria-label": "min " + (C || s)
}) : void 0;
return {
root: he,
label: fe,
sliderBox: je,
container: {
className: H.container
},
valueLabel: be,
lowerValueLabel: ge,
thumb: we,
lowerValueThumb: Ce,
zeroTick: me,
activeTrack: ve,
topInactiveTrack: ye,
bottomInactiveTrack: xe,
sliderLine: {
ref: N,
className: H.line
}
}
}(e, t);
return l.createElement("div", Object(zn.a)({}, n.root), n && l.createElement(ok, Object(zn.a)({}, n.label)), l.createElement("div", Object(zn.a)({}, n.container), e.ranged && (e.vertical ? n.valueLabel && l.createElement(ok, Object(zn.a)({}, n.valueLabel)) : n.lowerValueLabel && l.createElement(ok, Object(zn.a)({}, n.lowerValueLabel))), l.createElement("div", Object(zn.a)({}, n.sliderBox), l.createElement("div", Object(zn.a)({}, n.sliderLine), e.ranged && l.createElement("span", Object(zn.a)({}, n.lowerValueThumb)), l.createElement("span", Object(zn.a)({}, n.thumb)), n.zeroTick && l.createElement("span", Object(zn.a)({}, n.zeroTick)), l.createElement("span", Object(zn.a)({}, n.bottomInactiveTrack)), l.createElement("span", Object(zn.a)({}, n.activeTrack)), l.createElement("span", Object(zn.a)({}, n.topInactiveTrack)))), e.ranged && e.vertical ? n.lowerValueLabel && l.createElement(ok, Object(zn.a)({}, n.lowerValueLabel)) : n.valueLabel && l.createElement(ok, Object(zn.a)({}, n.valueLabel))), l.createElement(bg, null))
}
));
nEe.displayName = "SliderBase";
var rEe = {
root: "ms-Slider",
enabled: "ms-Slider-enabled",
disabled: "ms-Slider-disabled",
row: "ms-Slider-row",
column: "ms-Slider-column",
container: "ms-Slider-container",
slideBox: "ms-Slider-slideBox",
line: "ms-Slider-line",
thumb: "ms-Slider-thumb",
activeSection: "ms-Slider-active",
inactiveSection: "ms-Slider-inactive",
valueLabel: "ms-Slider-value",
showValue: "ms-Slider-showValue",
showTransitions: "ms-Slider-showTransitions",
zeroTick: "ms-Slider-zeroTick"
}
, iEe = jg(nEe, (function(e) {
var t, n, r, i, o, a, l, s, c, u, d, p, h, f = e.className, b = e.titleLabelClassName, g = e.theme, m = e.vertical, v = e.disabled, y = e.showTransitions, x = e.showValue, O = e.ranged, j = g.semanticColors, k = Vi(rEe, g), w = j.inputBackgroundCheckedHovered, C = j.inputBackgroundChecked, _ = j.inputPlaceholderBackgroundChecked, M = j.smallInputBorder, S = j.disabledBorder, A = j.disabledText, T = j.disabledBackground, E = j.inputBackground, I = j.smallInputBorder, N = j.disabledBorder, z = !v && {
backgroundColor: w,
selectors: (t = {},
t[vi] = {
backgroundColor: "Highlight"
},
t)
}, D = !v && {
backgroundColor: _,
selectors: (n = {},
n[vi] = {
borderColor: "Highlight"
},
n)
}, L = !v && {
backgroundColor: C,
selectors: (r = {},
r[vi] = {
backgroundColor: "Highlight"
},
r)
}, R = !v && {
border: "2px solid " + w,
selectors: (i = {},
i[vi] = {
borderColor: "Highlight"
},
i)
}, P = !e.disabled && {
backgroundColor: j.inputPlaceholderBackgroundChecked,
selectors: (o = {},
o[vi] = {
backgroundColor: "Highlight"
},
o)
};
return {
root: Object(zn.e)(Object(zn.e)(Object(zn.e)(Object(zn.e)(Object(zn.e)([k.root, g.fonts.medium, {
userSelect: "none"
}, m && {
marginRight: 8
}], [v ? void 0 : k.enabled]), [v ? k.disabled : void 0]), [m ? void 0 : k.row]), [m ? k.column : void 0]), [f]),
titleLabel: [{
padding: 0
}, b],
container: [k.container, {
display: "flex",
flexWrap: "nowrap",
alignItems: "center"
}, m && {
flexDirection: "column",
height: "100%",
textAlign: "center",
margin: "8px 0"
}],
slideBox: Object(zn.e)(Object(zn.e)([k.slideBox, !O && Mi(g), {
background: "transparent",
border: "none",
flexGrow: 1,
lineHeight: 28,
display: "flex",
alignItems: "center",
selectors: (a = {},
a[":active ." + k.activeSection] = z,
a[":hover ." + k.activeSection] = L,
a[":active ." + k.inactiveSection] = D,
a[":hover ." + k.inactiveSection] = D,
a[":active ." + k.thumb] = R,
a[":hover ." + k.thumb] = R,
a[":active ." + k.zeroTick] = P,
a[":hover ." + k.zeroTick] = P,
a[vi] = {
forcedColorAdjust: "none"
},
a)
}, m ? {
height: "100%",
width: 28,
padding: "8px 0"
} : {
height: 28,
width: "auto",
padding: "0 8px"
}], [x ? k.showValue : void 0]), [y ? k.showTransitions : void 0]),
thumb: [k.thumb, O && Mi(g, {
inset: -4
}), {
borderWidth: 2,
borderStyle: "solid",
borderColor: I,
borderRadius: 10,
boxSizing: "border-box",
background: E,
display: "block",
width: 16,
height: 16,
position: "absolute"
}, m ? {
left: -6,
margin: "0 auto",
transform: "translateY(8px)"
} : {
top: -6,
transform: vp(g) ? "translateX(50%)" : "translateX(-50%)"
}, y && {
transition: "left " + ni + " " + Zr
}, v && {
borderColor: N,
selectors: (l = {},
l[vi] = {
borderColor: "GrayText"
},
l)
}],
line: [k.line, {
display: "flex",
position: "relative"
}, m ? {
height: "100%",
width: 4,
margin: "0 auto",
flexDirection: "column-reverse"
} : {
width: "100%"
}],
lineContainer: [{
borderRadius: 4,
boxSizing: "border-box"
}, m ? {
width: 4,
height: "100%"
} : {
height: 4,
width: "100%"
}],
activeSection: [k.activeSection, {
background: M,
selectors: (s = {},
s[vi] = {
backgroundColor: "WindowText"
},
s)
}, y && {
transition: "width " + ni + " " + Zr
}, v && {
background: A,
selectors: (c = {},
c[vi] = {
backgroundColor: "GrayText",
borderColor: "GrayText"
},
c)
}],
inactiveSection: [k.inactiveSection, {
background: S,
selectors: (u = {},
u[vi] = {
border: "1px solid WindowText"
},
u)
}, y && {
transition: "width " + ni + " " + Zr
}, v && {
background: T,
selectors: (d = {},
d[vi] = {
borderColor: "GrayText"
},
d)
}],
zeroTick: [k.zeroTick, {
position: "absolute",
background: j.disabledBorder,
selectors: (p = {},
p[vi] = {
backgroundColor: "WindowText"
},
p)
}, e.disabled && {
background: j.disabledBackground,
selectors: (h = {},
h[vi] = {
backgroundColor: "GrayText"
},
h)
}, e.vertical ? {
width: "16px",
height: "1px",
transform: vp(g) ? "translateX(6px)" : "translateX(-6px)"
} : {
width: "1px",
height: "16px",
transform: "translateY(-6px)"
}],
valueLabel: [k.valueLabel, {
flexShrink: 1,
width: 30,
lineHeight: "1"
}, m ? {
margin: "0 auto",
whiteSpace: "nowrap",
width: 40
} : {
margin: "0 8px",
whiteSpace: "nowrap",
width: 40
}]
}
}
), void 0, {
scope: "Slider"
})
, oEe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t) {
var n = e.props.onChange;
n && n(t)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.info
, r = e.value
, i = e.defaultValue
, o = e.props;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: t,
info: n
}), Object(Ip.jsx)(iEe, _t(_t({
min: 0,
max: 50,
step: 1,
showValue: !0
}, o), {}, {
value: null != r ? r : i,
onChange: this._onChange,
styles: cS
}))]
})
}
}]),
n
}(l.Component);
oEe.defaultProps = {
onChange: function(e) {
return console.log(e)
},
defaultValue: 0
};
var aEe = oEe
, lEe = Sg()
, sEe = jg(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._onRenderShimmerPlaceholder = function(e, t) {
var r = n.props.onRenderCustomPlaceholder
, i = r ? r(t, e, n._renderDefaultShimmerPlaceholder) : n._renderDefaultShimmerPlaceholder(t);
return l.createElement(uw, {
customElementsGroup: i
})
}
,
n._renderDefaultShimmerPlaceholder = function(e) {
var t = e.columns
, n = e.compact
, r = e.selectionMode
, i = e.checkboxVisibility
, o = e.cellStyleProps
, a = void 0 === o ? IT : o
, s = n ? NT.compactRowHeight : NT.rowHeight + 1
, c = [];
return r !== MT.none && i !== vT.hidden && c.push(l.createElement($k, {
key: "checkboxGap",
shimmerElements: [{
type: _k.gap,
width: "40px",
height: s
}]
})),
t.forEach((function(e, t) {
var n = []
, r = a.cellLeftPadding + a.cellRightPadding + e.calculatedWidth + (e.isPadded ? a.cellExtraRightPadding : 0);
n.push({
type: _k.gap,
width: a.cellLeftPadding,
height: s
}),
e.isIconOnly ? (n.push({
type: _k.line,
width: e.calculatedWidth,
height: e.calculatedWidth
}),
n.push({
type: _k.gap,
width: a.cellRightPadding,
height: s
})) : (n.push({
type: _k.line,
width: .95 * e.calculatedWidth,
height: 7
}),
n.push({
type: _k.gap,
width: a.cellRightPadding + (e.calculatedWidth - .95 * e.calculatedWidth) + (e.isPadded ? a.cellExtraRightPadding : 0),
height: s
})),
c.push(l.createElement($k, {
key: t,
width: r + "px",
shimmerElements: n
}))
}
)),
c.push(l.createElement($k, {
key: "endGap",
width: "100%",
shimmerElements: [{
type: _k.gap,
width: "100%",
height: s
}]
})),
l.createElement("div", {
style: {
display: "flex"
}
}, c)
}
,
n._shimmerItems = t.shimmerLines ? new Array(t.shimmerLines) : new Array(10),
n
}
return Object(zn.c)(t, e),
t.prototype.render = function() {
var e = this.props
, t = e.detailsListStyles
, n = e.enableShimmer
, r = e.items
, i = e.listProps
, o = (e.onRenderCustomPlaceholder,
e.removeFadingOverlay)
, a = (e.shimmerLines,
e.styles)
, s = e.theme
, c = e.ariaLabelForGrid
, u = e.ariaLabelForShimmer
, d = Object(zn.d)(e, ["detailsListStyles", "enableShimmer", "items", "listProps", "onRenderCustomPlaceholder", "removeFadingOverlay", "shimmerLines", "styles", "theme", "ariaLabelForGrid", "ariaLabelForShimmer"])
, p = i && i.className;
this._classNames = lEe(a, {
theme: s
});
var h = Object(zn.a)(Object(zn.a)({}, i), {
className: n && !o ? ip(this._classNames.root, p) : p
});
return l.createElement(KE, Object(zn.a)({}, d, {
styles: t,
items: n ? this._shimmerItems : r,
isPlaceholderData: n,
ariaLabelForGrid: n && u || c,
onRenderMissingItem: this._onRenderShimmerPlaceholder,
listProps: h
}))
}
,
t
}(l.Component), (function(e) {
var t = e.theme.palette;
return {
root: {
position: "relative",
selectors: {
":after": {
content: '""',
position: "absolute",
top: 0,
right: 0,
bottom: 0,
left: 0,
backgroundImage: "linear-gradient(to bottom, transparent 30%, " + t.whiteTranslucent40 + " 65%," + t.white + " 100%)"
}
}
}
}
}
), void 0, {
scope: "ShimmeredDetailsList"
})
, cEe = 100
, uEe = function() {
function e(e) {
this._events = new rg(this),
this._scrollableParent = Cy(e),
this._incrementScroll = this._incrementScroll.bind(this),
this._scrollRect = FE(this._scrollableParent),
this._scrollableParent === window && (this._scrollableParent = document.body),
this._scrollableParent && (this._events.on(window, "mousemove", this._onMouseMove, !0),
this._events.on(window, "touchmove", this._onTouchMove, !0))
}
return e.prototype.dispose = function() {
this._events.dispose(),
this._stopScroll()
}
,
e.prototype._onMouseMove = function(e) {
this._computeScrollVelocity(e)
}
,
e.prototype._onTouchMove = function(e) {
e.touches.length > 0 && this._computeScrollVelocity(e)
}
,
e.prototype._computeScrollVelocity = function(e) {
if (this._scrollRect) {
var t, n;
"clientX"in e ? (t = e.clientX,
n = e.clientY) : (t = e.touches[0].clientX,
n = e.touches[0].clientY);
var r, i, o, a = this._scrollRect.top, l = this._scrollRect.left, s = a + this._scrollRect.height - cEe, c = l + this._scrollRect.width - cEe;
n < a + cEe || n > s ? (i = n,
r = a,
o = s,
this._isVerticalScroll = !0) : (i = t,
r = l,
o = c,
this._isVerticalScroll = !1),
this._scrollVelocity = i < r + cEe ? Math.max(-15, (cEe - (i - r)) / cEe * -15) : i > o ? Math.min(15, (i - o) / cEe * 15) : 0,
this._scrollVelocity ? this._startScroll() : this._stopScroll()
}
}
,
e.prototype._startScroll = function() {
this._timeoutId || this._incrementScroll()
}
,
e.prototype._incrementScroll = function() {
this._scrollableParent && (this._isVerticalScroll ? this._scrollableParent.scrollTop += Math.round(this._scrollVelocity) : this._scrollableParent.scrollLeft += Math.round(this._scrollVelocity)),
this._timeoutId = setTimeout(this._incrementScroll, 16)
}
,
e.prototype._stopScroll = function() {
this._timeoutId && (clearTimeout(this._timeoutId),
delete this._timeoutId)
}
,
e
}();
function dEe(e, t, n) {
void 0 === n && (n = 10);
var r = Math.pow(n, t);
return Math.round(e * r) / r
}
var pEe = Sg()
, hEe = jg(function(e) {
function t(t) {
var n = e.call(this, t) || this;
return n._root = l.createRef(),
n._onMouseDown = function(e) {
var t = n.props
, r = t.isEnabled
, i = t.onShouldStartSelection;
n._isMouseEventOnScrollbar(e) || n._isInSelectionToggle(e) || n._isTouch || !r || n._isDragStartInSelection(e) || i && !i(e) || n._scrollableSurface && 0 === e.button && n._root.current && (n._selectedIndicies = {},
n._preservedIndicies = void 0,
n._events.on(window, "mousemove", n._onAsyncMouseMove, !0),
n._events.on(n._scrollableParent, "scroll", n._onAsyncMouseMove),
n._events.on(window, "click", n._onMouseUp, !0),
n._autoScroll = new uEe(n._root.current),
n._scrollTop = n._scrollableSurface.scrollTop,
n._scrollLeft = n._scrollableSurface.scrollLeft,
n._rootRect = n._root.current.getBoundingClientRect(),
n._onMouseMove(e))
}
,
n._onTouchStart = function(e) {
n._isTouch = !0,
n._async.setTimeout((function() {
n._isTouch = !1
}
), 0)
}
,
n._onPointerDown = function(e) {
"touch" === e.pointerType && (n._isTouch = !0,
n._async.setTimeout((function() {
n._isTouch = !1
}
), 0))
}
,
Kb(n),
n._async = new $b(n),
n._events = new rg(n),
n.state = {
dragRect: void 0
},
n
}
return Object(zn.c)(t, e),
t.prototype.componentDidMount = function() {
this._scrollableParent = Cy(this._root.current),
this._scrollableSurface = this._scrollableParent === window ? document.body : this._scrollableParent;
var e = this.props.isDraggingConstrainedToRoot ? this._root.current : this._scrollableSurface;
this._events.on(e, "mousedown", this._onMouseDown),
this._events.on(e, "touchstart", this._onTouchStart, !0),
this._events.on(e, "pointerdown", this._onPointerDown, !0)
}
,
t.prototype.componentWillUnmount = function() {
this._autoScroll && this._autoScroll.dispose(),
delete this._scrollableParent,
delete this._scrollableSurface,
this._events.dispose(),
this._async.dispose()
}
,
t.prototype.render = function() {
var e = this.props
, t = e.rootProps
, n = e.children
, r = e.theme
, i = e.className
, o = e.styles
, a = this.state.dragRect
, s = pEe(o, {
theme: r,
className: i
});
return l.createElement("div", Object(zn.a)({}, t, {
className: s.root,
ref: this._root
}), n, a && l.createElement("div", {
className: s.dragMask
}), a && l.createElement("div", {
className: s.box,
style: a
}, l.createElement("div", {
className: s.boxFill
})))
}
,
t.prototype._isMouseEventOnScrollbar = function(e) {
var t = e.target
, n = t.offsetWidth - t.clientWidth
, r = t.offsetHeight - t.clientHeight;
if (n || r) {
var i = t.getBoundingClientRect();
if (vp(this.props.theme)) {
if (e.clientX < i.left + n)
return !0
} else if (e.clientX > i.left + t.clientWidth)
return !0;
if (e.clientY > i.top + t.clientHeight)
return !0
}
return !1
}
,
t.prototype._getRootRect = function() {
return {
left: this._rootRect.left + (this._scrollableSurface ? this._scrollLeft - this._scrollableSurface.scrollLeft : this._scrollLeft),
top: this._rootRect.top + (this._scrollableSurface ? this._scrollTop - this._scrollableSurface.scrollTop : this._scrollTop),
width: this._rootRect.width,
height: this._rootRect.height
}
}
,
t.prototype._onAsyncMouseMove = function(e) {
var t = this;
this._async.requestAnimationFrame((function() {
t._onMouseMove(e)
}
)),
e.stopPropagation(),
e.preventDefault()
}
,
t.prototype._onMouseMove = function(e) {
if (this._autoScroll) {
void 0 !== e.clientX && (this._lastMouseEvent = e);
var t = this._getRootRect()
, n = {
left: e.clientX - t.left,
top: e.clientY - t.top
};
if (this._dragOrigin || (this._dragOrigin = n),
void 0 !== e.buttons && 0 === e.buttons)
this._onMouseUp(e);
else if (this.state.dragRect || function(e, t) {
var n = e.left || e.x || 0
, r = e.top || e.y || 0
, i = t.left || t.x || 0
, o = t.top || t.y || 0;
return Math.sqrt(Math.pow(n - i, 2) + Math.pow(r - o, 2))
}(this._dragOrigin, n) > 5) {
if (!this.state.dragRect) {
var r = this.props.selection;
e.shiftKey || r.setAllSelected(!1),
this._preservedIndicies = r && r.getSelectedIndices && r.getSelectedIndices()
}
var i = this.props.isDraggingConstrainedToRoot ? {
left: Math.max(0, Math.min(t.width, this._lastMouseEvent.clientX - t.left)),
top: Math.max(0, Math.min(t.height, this._lastMouseEvent.clientY - t.top))
} : {
left: this._lastMouseEvent.clientX - t.left,
top: this._lastMouseEvent.clientY - t.top
}
, o = {
left: Math.min(this._dragOrigin.left || 0, i.left),
top: Math.min(this._dragOrigin.top || 0, i.top),
width: Math.abs(i.left - (this._dragOrigin.left || 0)),
height: Math.abs(i.top - (this._dragOrigin.top || 0))
};
this._evaluateSelection(o, t),
this.setState({
dragRect: o
})
}
return !1
}
}
,
t.prototype._onMouseUp = function(e) {
this._events.off(window),
this._events.off(this._scrollableParent, "scroll"),
this._autoScroll && this._autoScroll.dispose(),
this._autoScroll = this._dragOrigin = this._lastMouseEvent = void 0,
this._selectedIndicies = this._itemRectCache = void 0,
this.state.dragRect && (this.setState({
dragRect: void 0
}),
e.preventDefault(),
e.stopPropagation())
}
,
t.prototype._isPointInRectangle = function(e, t) {
return !!t.top && e.top < t.top && e.bottom > t.top && !!t.left && e.left < t.left && e.right > t.left
}
,
t.prototype._isDragStartInSelection = function(e) {
var t = this.props.selection;
if (!this._root.current || t && 0 === t.getSelectedCount())
return !1;
for (var n = this._root.current.querySelectorAll("[data-selection-index]"), r = 0; r < n.length; r++) {
var i = n[r]
, o = Number(i.getAttribute("data-selection-index"));
if (t.isIndexSelected(o)) {
var a = i.getBoundingClientRect();
if (this._isPointInRectangle(a, {
left: e.clientX,
top: e.clientY
}))
return !0
}
}
return !1
}
,
t.prototype._isInSelectionToggle = function(e) {
for (var t = e.target; t && t !== this._root.current; ) {
if ("true" === t.getAttribute("data-selection-toggle"))
return !0;
t = t.parentElement
}
return !1
}
,
t.prototype._evaluateSelection = function(e, t) {
if (e && this._root.current) {
var n = this.props.selection
, r = this._root.current.querySelectorAll("[data-selection-index]");
this._itemRectCache || (this._itemRectCache = {});
for (var i = 0; i < r.length; i++) {
var o = r[i]
, a = o.getAttribute("data-selection-index")
, l = this._itemRectCache[a];
l || (l = {
left: (l = o.getBoundingClientRect()).left - t.left,
top: l.top - t.top,
width: l.width,
height: l.height,
right: l.left - t.left + l.width,
bottom: l.top - t.top + l.height
}).width > 0 && l.height > 0 && (this._itemRectCache[a] = l),
l.top < e.top + e.height && l.bottom > e.top && l.left < e.left + e.width && l.right > e.left ? this._selectedIndicies[a] = !0 : delete this._selectedIndicies[a]
}
var s = this._allSelectedIndices || {};
for (var a in this._allSelectedIndices = {},
this._selectedIndicies)
this._selectedIndicies.hasOwnProperty(a) && (this._allSelectedIndices[a] = !0);
if (this._preservedIndicies)
for (var c = 0, u = this._preservedIndicies; c < u.length; c++)
a = u[c],
this._allSelectedIndices[a] = !0;
var d = !1;
for (var a in this._allSelectedIndices)
if (this._allSelectedIndices[a] !== s[a]) {
d = !0;
break
}
if (!d)
for (var a in s)
if (this._allSelectedIndices[a] !== s[a]) {
d = !0;
break
}
if (d) {
n.setChangeEvents(!1),
n.setAllSelected(!1);
for (var p = 0, h = Object.keys(this._allSelectedIndices); p < h.length; p++)
a = h[p],
n.setIndexSelected(Number(a), !0, !1);
n.setChangeEvents(!0)
}
}
}
,
t.defaultProps = {
rootTagName: "div",
rootProps: {},
isEnabled: !0
},
t
}(l.Component), (function(e) {
var t, n, r, i = e.theme, o = e.className, a = i.palette;
return {
root: [o, {
position: "relative",
cursor: "default"
}],
dragMask: [{
position: "absolute",
background: "rgba(255, 0, 0, 0)",
left: 0,
top: 0,
right: 0,
bottom: 0,
selectors: (t = {},
t[vi] = {
background: "none",
backgroundColor: "transparent"
},
t)
}],
box: [{
position: "absolute",
boxSizing: "border-box",
border: "1px solid " + a.themePrimary,
pointerEvents: "none",
zIndex: 10,
selectors: (n = {},
n[vi] = {
borderColor: "Highlight"
},
n)
}],
boxFill: [{
position: "absolute",
boxSizing: "border-box",
backgroundColor: a.themePrimary,
opacity: .1,
left: 0,
top: 0,
right: 0,
bottom: 0,
selectors: (r = {},
r[vi] = {
background: "none",
backgroundColor: "transparent"
},
r)
}]
}
}
), void 0, {
scope: "MarqueeSelection"
})
, fEe = Do({
fileIconHeaderIcon: {
padding: 0,
fontSize: "16px"
},
fileIconCell: {
textAlign: "center",
selectors: {
"&:before": {
content: ".",
display: "inline-block",
verticalAlign: "middle",
height: "100%",
width: "0px",
visibility: "hidden"
}
}
},
controlWrapper: {
display: "flex",
flexWrap: "wrap"
},
selectionDetails: {
marginBottom: "20px"
}
})
, bEe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
Object(St.a)(this, n),
(r = t.call(this, e))._selection = void 0,
r._source = void 0,
r._onColumnClick = function(e, t) {
var n = r.state
, i = n.columns
, o = n.items
, a = i.slice()
, l = a.filter((function(e) {
return t.key === e.key
}
))[0];
a.forEach((function(e) {
e === l ? (l.isSortedDescending = !l.isSortedDescending,
l.isSorted = !0,
r.setState({
announcedMessage: "".concat(l.name, " is sorted ").concat(l.isSortedDescending ? "descending" : "ascending")
})) : (e.isSorted = !1,
e.isSortedDescending = !0)
}
));
var s = function(e, t, n) {
var r = t;
return e.slice(0).sort((function(e, t) {
return (n ? e[r] < t[r] : e[r] > t[r]) ? 1 : -1
}
))
}(o, l.fieldName, l.isSortedDescending);
r.setState({
columns: a,
items: s
})
}
,
r._search = r._search.bind(Object(yT.a)(r));
var i = [{
key: "column1",
name: "Name",
fieldName: "name",
minWidth: 100,
maxWidth: 150,
isRowHeader: !0,
isResizable: !0,
isSorted: !0,
isSortedDescending: !1,
sortAscendingAriaLabel: "Sorted A to Z",
sortDescendingAriaLabel: "Sorted Z to A",
onColumnClick: r._onColumnClick,
data: "string",
isPadded: !0
}, {
key: "column2",
name: "Type",
fieldName: "action",
minWidth: 100,
maxWidth: 150,
isResizable: !0,
data: "string",
onRender: function(e) {
return Object(Ip.jsx)("span", {
children: e.type
})
},
isPadded: !0
}];
return r._selection = new fE({
onSelectionChanged: function() {
r.setState({
selectionDetails: r._getSelectionDetails()
})
}
}),
r.state = {
items: gEe(e.actions),
items2: [],
columns: i,
selectionDetails: r._getSelectionDetails(),
isModalSelection: !1,
isCompactMode: !1,
announcedMessage: void 0,
loading: !1
},
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.props.preFetch && this._search("")
}
}, {
key: "shouldComponentUpdate",
value: function(e, t, n) {
return e.search && e.search !== this.props.search && this._search(e.search),
!0
}
}, {
key: "_search",
value: function() {
var e = Object(Mt.a)(Nt.a.mark((function e(t) {
var n, r, i, o;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
return this.setState({
loading: !0
}),
this._source && (null === (n = this._source) || void 0 === n || n.cancel("Cancel search")),
r = ps.a.CancelToken,
i = r.source(),
this._source = i,
e.prev = 5,
e.next = 8,
kc(_t(_t({}, this.props.query), {}, {
search: t
}), i.token);
case 8:
o = e.sent,
this.setState({
loading: !1,
items2: mEe(o)
}),
e.next = 15;
break;
case 12:
e.prev = 12,
e.t0 = e.catch(5);
case 15:
case "end":
return e.stop()
}
}
), e, this, [[5, 12]])
}
)));
return function(t) {
return e.apply(this, arguments)
}
}()
}, {
key: "render",
value: function() {
var e, t = this, n = this.state, r = n.columns, i = n.items, o = n.items2, a = n.selectionDetails, l = n.loading, s = this.props, c = s.toggleHideDialog, u = s.onChange, d = s.search, p = !this.props.mode || this.props.mode === MT.single, h = p ? Object(Ip.jsx)(lp, {
iconName: "SkypeCircleCheck",
style: {
color: "rgb(48, 173, 98)",
fontSize: 16
}
}) : Object(Ip.jsx)(lp, {
iconName: "BoxCheckmarkSolid",
style: {
color: "rgb(48, 173, 98)",
fontSize: 16
}
}), f = Object(Ip.jsx)(sEe, {
enableShimmer: p ? !!d && l : l,
items: d || this.props.preFetch ? o : i,
compact: !1,
columns: r,
selectionMode: null !== (e = this.props.mode) && void 0 !== e ? e : MT.single,
getKey: this._getKey,
setKey: "multiple",
layoutMode: mT.justified,
isHeaderVisible: !0,
selection: this._selection,
selectionPreservedOnEmptyClick: !0,
onItemInvoked: this._onItemInvoked,
enterModalSelectionOnTouch: !0,
onRenderCheckbox: function() {
return h
}
});
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("div", {
"data-is-scrollable": "true",
style: {
height: 450,
overflow: "scroll",
margin: "30px 0"
},
children: [Object(Ip.jsx)("div", {
className: fEe.selectionDetails,
children: a
}), this.props.mode && this.props.mode !== MT.single ? Object(Ip.jsx)(hEe, {
selection: this._selection,
children: f
}) : f]
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(kk, {
onClick: function() {
var e, n = t._selection.getSelection();
t.props.mode && t.props.mode !== MT.single ? u(n.map((function(e, t) {
var r;
return null === (r = n[t]) || void 0 === r ? void 0 : r.action
}
))) : u(null === (e = n[0]) || void 0 === e ? void 0 : e.action),
c()
},
text: "Select"
}), Object(Ip.jsx)(aj, {
onClick: c,
text: "Cancel"
})]
})]
})
}
}, {
key: "componentDidUpdate",
value: function(e, t) {
t.isModalSelection === this.state.isModalSelection || this.state.isModalSelection || this._selection.setAllSelected(!1)
}
}, {
key: "_getKey",
value: function(e, t) {
return null == e ? void 0 : e.key
}
}, {
key: "_onItemInvoked",
value: function(e) {
alert("Item invoked: ".concat(e.name))
}
}, {
key: "_getSelectionDetails",
value: function() {
var e = this._selection.getSelectedCount();
switch (e) {
case 0:
return "No action selected";
case 1:
return "Action: " + this._selection.getSelection()[0].name;
default:
return "".concat(e, " items selected")
}
}
}]),
n
}(l.Component);
function gEe(e) {
for (var t = [], n = 0; n < e.length; n++) {
var r = e[n].action;
if (!Rt()(r)) {
var i = Cu()(e, [n, "configs", "name"], "")
, o = Cu()(e, [n, "action", "type"], "screen")
, a = Cu()(r, ["args", "key"], "");
t.push({
key: a,
name: i,
type: o,
action: {
type: r.type,
route: r.route,
args: {
name: i,
key: a
}
}
})
}
}
return t
}
function mEe(e) {
for (var t = [], n = 0; n < e.length; n++) {
var r = e[n]
, i = r.type
, o = "screens_".concat(r.type);
switch (r.type) {
case "product_cat":
i = "product_list",
o = "screens_products";
break;
case "category":
i = "post_list",
o = "screens_posts";
break;
default:
i = r.type
}
t.push({
key: "".concat(r.type, "-").concat(r.id),
name: r.title,
action: {
type: "screen",
route: "/".concat(i),
args: {
key: o,
id: r.id,
name: r.title
}
},
type: r.type
})
}
return t
}
n(207);
var vEe, yEe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
Object(St.a)(this, n),
(r = t.call(this, e))._onChange = function(e, t) {
r.setState({
url: null != t ? t : ""
})
}
;
var i = "launcher" === Cu()(e.value, "type", "") ? Cu()(e.value, "args.url") : "";
return r.state = {
url: i
},
r
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.state.url
, t = this.props
, n = t.toggleHideDialog
, r = t.onChange;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("div", {
"data-is-scrollable": "true",
style: {
height: 450,
overflow: "scroll",
margin: "30px 0"
},
children: [Object(Ip.jsx)(jk, {
value: e,
onChange: this._onChange,
label: "URL"
}), Object(Ip.jsxs)("div", {
id: "app-builder-launcher",
children: [Object(Ip.jsx)("h4", {
children: "Example:"
}), Object(Ip.jsxs)("table", {
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: "Scheme"
}), Object(Ip.jsx)("th", {
children: "Action"
})]
})
}), Object(Ip.jsxs)("tbody", {
children: [Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsxs)("td", {
children: [Object(Ip.jsx)("code", {
children: "http:<URL>"
}), " , ", Object(Ip.jsx)("code", {
children: "https:<URL>"
}), ", e.g. ", Object(Ip.jsx)("code", {
children: "https://appcheap.io"
})]
}), Object(Ip.jsx)("td", {
children: "Open URL in the default browser"
})]
}), Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsxs)("td", {
children: [Object(Ip.jsx)("code", {
children: "mailto:<email address>?subject=<subject>&body=<body>"
}), ", e.g. ", Object(Ip.jsx)("code", {
children: "mailto:smith@example.org?subject=News&body=New%20plugin"
})]
}), Object(Ip.jsx)("td", {
children: "Create email to"
})]
}), Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsxs)("td", {
children: [Object(Ip.jsx)("code", {
children: "tel:<phone number>"
}), ", e.g. ", Object(Ip.jsx)("code", {
children: "tel:+1 555 010 999"
})]
}), Object(Ip.jsx)("td", {
children: "Make a phone call to"
})]
}), Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsxs)("td", {
children: [Object(Ip.jsx)("code", {
children: "sms:<phone number>"
}), ", e.g. ", Object(Ip.jsx)("code", {
children: "sms:5550101234"
})]
}), Object(Ip.jsx)("td", {
children: "Send an SMS message to"
})]
})]
})]
})]
})]
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(kk, {
onClick: function() {
r({
type: "launcher",
route: "/launcher",
args: {
name: e,
url: e
}
}),
n()
},
text: "Select"
}), Object(Ip.jsx)(aj, {
onClick: n,
text: "Cancel"
})]
})]
})
}
}]),
n
}(l.Component), xEe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
Object(St.a)(this, n),
(r = t.call(this, e))._onChange = function(e, t) {
r.setState({
content: null != t ? t : ""
})
}
,
r._onChangeSubject = function(e, t) {
r.setState({
subject: null != t ? t : ""
})
}
;
var i = Cu()(e.value, "type", "")
, o = "share" === i ? Cu()(e.value, "args.content") : ""
, a = "share" === i ? Cu()(e.value, "args.subject") : "";
return r.state = {
content: o,
subject: a
},
r
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.state
, t = e.content
, n = e.subject
, r = this.props
, i = r.toggleHideDialog
, o = r.onChange;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("div", {
"data-is-scrollable": "true",
style: {
height: 450,
overflow: "scroll",
margin: "30px 0"
},
children: [Object(Ip.jsx)(jk, {
value: t,
onChange: this._onChange,
label: "Share content"
}), Object(Ip.jsx)(jk, {
value: n,
onChange: this._onChangeSubject,
label: "Share subject"
}), Object(Ip.jsxs)("div", {
id: "app-builder-launcher",
children: [Object(Ip.jsx)("h4", {
children: "Example:"
}), Object(Ip.jsxs)("table", {
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: "Data"
}), Object(Ip.jsx)("th", {
children: "Action"
})]
})
}), Object(Ip.jsxs)("tbody", {
children: [Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)("code", {
children: "Check out my website https://example.com"
})
}), Object(Ip.jsx)("td", {
children: "Share without subject"
})]
}), Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsxs)("td", {
children: [Object(Ip.jsx)("code", {
children: "Check out my website https://example.com"
}), " ", Object(Ip.jsx)("br", {}), Object(Ip.jsx)("code", {
children: "Look what I made!"
})]
}), Object(Ip.jsx)("td", {
children: "Share with subject"
})]
})]
})]
})]
})]
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(kk, {
onClick: function() {
o({
type: "share",
route: "/share",
args: {
name: n || t,
content: t,
subject: n
}
}),
i()
},
text: "Select"
}), Object(Ip.jsx)(aj, {
onClick: i,
text: "Cancel"
})]
})]
})
}
}]),
n
}(l.Component), OEe = Mu.b.div(vEe || (vEe = _u(["\n float: left;\n"]))), jEe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
Object(St.a)(this, n),
(r = t.call(this, e))._onChange = function(e, t) {
r.setState({
type: null != t ? t : ""
})
}
,
r._onChangeRoute = function(e, t) {
r.setState({
route: null != t ? t : ""
})
}
,
r._onChangeKeyAddData = function(e, t) {
r.setState({
keyAdd: null != t ? t : ""
})
}
,
r._onChangeValueAddData = function(e, t) {
r.setState({
valueAdd: null != t ? t : ""
})
}
,
r._onChangeKeyData = function(e, t) {
var n = r.state.data;
r.setState({
data: n.map((function(n, r) {
return r !== t ? n : {
key: e,
value: n.data
}
}
))
})
}
,
r._onChangeValueData = function(e, t) {
var n = r.state.data;
r.setState({
data: n.map((function(n, r) {
return r !== t ? n : {
key: n.key,
value: e
}
}
))
})
}
,
r._clickAddData = function() {
var e = r.state
, t = e.keyAdd
, n = e.valueAdd
, i = e.data
, o = "";
t.length < 1 && (o = "Not null"),
i.find((function(e) {
return e.key === t
}
)) && (o = "Not duplicate with other key"),
"" === o ? r.setState({
data: i.concat({
key: t,
value: n
}),
keyAdd: "",
valueAdd: "",
errorKeyAdd: o
}) : r.setState({
errorKeyAdd: o
})
}
,
r._clickDeleteData = function(e) {
var t = r.state.data;
r.setState({
data: t.filter((function(t, n) {
return n !== e
}
))
})
}
;
var i = e.value
, o = Cu()(i, "type", "")
, a = Cu()(i, "route", "")
, l = kb()(Cu()(i, "args", "")) ? Object.keys(Cu()(i, "args", "")).map((function(e) {
return {
key: e,
value: Cu()(i, ["args", e], "")
}
}
)) : [];
return r.state = {
type: o,
route: a,
data: l,
keyAdd: "",
valueAdd: "",
errorKeyAdd: ""
},
r
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.state
, n = t.type
, r = t.route
, i = t.data
, o = t.keyAdd
, a = t.valueAdd
, l = t.errorKeyAdd
, s = this.props
, c = s.toggleHideDialog
, u = s.onChange;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("div", {
"data-is-scrollable": "true",
style: {
height: 450,
overflow: "scroll",
margin: "30px 0"
},
children: [Object(Ip.jsx)(jk, {
value: n,
onChange: this._onChange,
label: "Type"
}), Object(Ip.jsx)(jk, {
value: r,
onChange: this._onChangeRoute,
label: "Route"
}), Object(Ip.jsx)(ok, {
children: "Data"
}), i.map((function(t, n) {
return Object(Ip.jsxs)("div", {
className: "ms-Grid-row",
style: {
marginBottom: 12
},
children: [Object(Ip.jsx)(OEe, {
className: "ms-Grid-col ms-sm5 ms-md3 ms-lg2",
children: Object(Ip.jsx)(jk, {
value: t.key,
onChange: function(t, r) {
return e._onChangeKeyData(null != r ? r : "", n)
},
placeholder: "Key"
})
}), Object(Ip.jsx)(OEe, {
className: "ms-Grid-col ms-sm5 ms-md7 ms-lg8",
children: Object(Ip.jsx)(jk, {
value: t.value,
onChange: function(t, r) {
return e._onChangeValueData(null != r ? r : "", n)
},
placeholder: "Value"
})
}), Object(Ip.jsx)(OEe, {
className: "ms-Grid-col ms-sm2 ms-md2 ms-lg2",
children: Object(Ip.jsx)(aj, {
text: "Delete",
iconProps: {
iconName: "Delete"
},
onClick: function() {
return e._clickDeleteData(n)
},
style: {
width: "100%"
}
})
})]
}, n)
}
)), Object(Ip.jsxs)("div", {
className: "ms-Grid-row",
children: [Object(Ip.jsx)(OEe, {
className: "ms-Grid-col ms-sm5 ms-md3 ms-lg2",
children: Object(Ip.jsx)(jk, {
value: o,
onChange: this._onChangeKeyAddData,
placeholder: "Key",
errorMessage: l
})
}), Object(Ip.jsx)(OEe, {
className: "ms-Grid-col ms-sm5 ms-md7 ms-lg8",
children: Object(Ip.jsx)(jk, {
value: a,
onChange: this._onChangeValueAddData,
placeholder: "Value"
})
}), Object(Ip.jsx)(OEe, {
className: "ms-Grid-col ms-sm2 ms-md2 ms-lg2",
children: Object(Ip.jsx)(aj, {
text: "Add",
iconProps: {
iconName: "Add"
},
onClick: this._clickAddData,
style: {
width: "100%"
}
})
})]
}), Object(Ip.jsx)("p", {
children: "This for developer custom router"
})]
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(kk, {
onClick: function() {
var e = {};
i.map((function(t) {
return e = _t(_t({}, e), {}, Object(wt.a)({}, t.key, t.value)),
t
}
)),
u({
type: n,
route: r,
args: e
}),
c()
},
text: "Select"
}), Object(Ip.jsx)(aj, {
onClick: c,
text: "Cancel"
})]
})]
})
}
}]),
n
}(l.Component), kEe = n(305), wEe = n.n(kEe);
function CEe(e) {
var t = e.params
, n = e.onChange
, r = s.a.useCallback((function() {
n([].concat(Object(wd.a)(t), [{
key: "",
value: ""
}]))
}
), [t, n])
, i = s.a.useCallback((function(e, r) {
var i;
i = r ? t.map((function(t, n) {
return n === e ? r : t
}
)) : t.filter((function(t, n) {
return n !== e
}
)),
n(i)
}
), [t, n]);
return Object(Ip.jsxs)("table", {
className: "rest_api_table",
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Key"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Value"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)("button", {
className: "add",
onClick: r,
children: Object(Ip.jsx)(Pg, {
iconName: "CircleAdditionSolid"
})
})
})]
})
}), Object(Ip.jsx)("tbody", {
children: !Rt()(t) && t.map((function(e, t) {
return Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: null == e ? void 0 : e.key,
onChange: function(n, r) {
return i(t, _t(_t({}, e), {}, {
key: r
}))
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: null == e ? void 0 : e.value,
onChange: function(n, r) {
return i(t, _t(_t({}, e), {}, {
value: r
}))
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)("button", {
className: "delete",
onClick: function() {
return i(t)
},
children: Object(Ip.jsx)(Pg, {
iconName: "Delete"
})
})
})]
}, t)
}
))
})]
})
}
function _Ee(e) {
var t = e.type
, n = e.headers
, r = e.onChange
, i = s.a.useCallback((function() {
r([].concat(Object(wd.a)(n), [{
key: "",
value: ""
}]))
}
), [n, r])
, o = s.a.useCallback((function(e, t) {
var i;
i = t ? n.map((function(n, r) {
return r === e ? t : n
}
)) : n.filter((function(t, n) {
return n !== e
}
)),
r(i)
}
), [n, r]);
return Object(Ip.jsxs)("table", {
className: "rest_api_table",
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Key"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Value"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)("button", {
className: "add",
onClick: i,
children: Object(Ip.jsx)(Pg, {
iconName: "CircleAdditionSolid"
})
})
})]
})
}), Object(Ip.jsxs)("tbody", {
children: ["none" !== t && Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: "Content-Type",
readOnly: !0,
disabled: !0
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: "form-data" === t ? "multipart/form-data" : "application/x-www-form-urlencoded",
readOnly: !0,
disabled: !0
})
}), Object(Ip.jsx)("td", {})]
}), !Rt()(n) && n.map((function(e, t) {
return Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: null == e ? void 0 : e.key,
onChange: function(n, r) {
return o(t, _t(_t({}, e), {}, {
key: r
}))
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: null == e ? void 0 : e.value,
onChange: function(n, r) {
return o(t, _t(_t({}, e), {}, {
value: r
}))
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)("button", {
className: "delete",
onClick: function() {
return o(t)
},
children: Object(Ip.jsx)(Pg, {
iconName: "Delete"
})
})
})]
}, t)
}
))]
})]
})
}
n(208);
var MEe = [{
key: "none",
text: "none"
}, {
key: "form-data",
text: "form-data"
}, {
key: "x-www-form-urlencoded",
text: "x-www-form-urlencoded"
}];
function SEe(e) {
var t = e.type
, n = e.body
, r = e.onChangeType
, i = e.onChange
, o = s.a.useCallback((function() {
i([].concat(Object(wd.a)(n), [{
key: "",
value: ""
}]))
}
), [n, i])
, a = s.a.useCallback((function(e, t) {
var r;
r = t ? n.map((function(n, r) {
return r === e ? t : n
}
)) : n.filter((function(t, n) {
return n !== e
}
)),
i(r)
}
), [n, i]);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(jq, {
defaultSelectedKey: t,
options: MEe,
onChange: function(e, n) {
var i;
(null == n ? void 0 : n.key) !== t && r(null !== (i = null == n ? void 0 : n.key) && void 0 !== i ? i : "none")
},
styles: {
root: {
marginBottom: 12
},
flexContainer: {
display: "flex",
flexDirection: "row",
gap: 16
}
}
}), "none" !== t && Object(Ip.jsxs)("table", {
className: "rest_api_table",
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Key"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Value"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)("button", {
className: "add",
onClick: o,
children: Object(Ip.jsx)(Pg, {
iconName: "CircleAdditionSolid"
})
})
})]
})
}), Object(Ip.jsx)("tbody", {
children: !Rt()(n) && n.map((function(e, t) {
return Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: null == e ? void 0 : e.key,
onChange: function(n, r) {
return a(t, _t(_t({}, e), {}, {
key: r
}))
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: null == e ? void 0 : e.value,
onChange: function(n, r) {
return a(t, _t(_t({}, e), {}, {
value: r
}))
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)("button", {
className: "delete",
onClick: function() {
return a(t)
},
children: Object(Ip.jsx)(Pg, {
iconName: "Delete"
})
})
})]
}, t)
}
))
})]
})]
})
}
var AEe = Sg()
, TEe = jg(l.forwardRef((function(e, t) {
var n = e.styles
, r = e.theme
, i = e.className
, o = e.vertical
, a = e.alignContent
, s = e.children
, c = AEe(n, {
theme: r,
className: i,
alignContent: a,
vertical: o
});
return l.createElement("div", {
className: c.root,
ref: t
}, l.createElement("div", {
className: c.content,
role: "separator",
"aria-orientation": o ? "vertical" : "horizontal"
}, s))
}
)), (function(e) {
var t, n, r = e.theme, i = e.alignContent, o = e.vertical, a = e.className, l = "start" === i, s = "center" === i, c = "end" === i;
return {
root: [r.fonts.medium, {
position: "relative"
}, i && {
textAlign: i
}, !i && {
textAlign: "center"
}, o && (s || !i) && {
verticalAlign: "middle"
}, o && l && {
verticalAlign: "top"
}, o && c && {
verticalAlign: "bottom"
}, o && {
padding: "0 4px",
height: "inherit",
display: "table-cell",
zIndex: 1,
selectors: {
":after": (t = {
backgroundColor: r.palette.neutralLighter,
width: "1px",
content: '""',
position: "absolute",
top: "0",
bottom: "0",
left: "50%",
right: "0",
zIndex: -1
},
t[vi] = {
backgroundColor: "WindowText"
},
t)
}
}, !o && {
padding: "4px 0",
selectors: {
":before": (n = {
backgroundColor: r.palette.neutralLighter,
height: "1px",
content: '""',
display: "block",
position: "absolute",
top: "50%",
bottom: "0",
left: "0",
right: "0"
},
n[vi] = {
backgroundColor: "WindowText"
},
n)
}
}, a],
content: [{
position: "relative",
display: "inline-block",
padding: "0 12px",
color: r.semanticColors.bodyText,
background: r.semanticColors.bodyBackground
}, o && {
padding: "12px 0"
}]
}
}
), void 0, {
scope: "Separator"
});
TEe.displayName = "Separator",
n(280);
var EEe = ["statusCode", "data", "data."]
, IEe = [{
key: "success",
text: "Success"
}, {
key: "error",
text: "Error"
}]
, NEe = {
gapSpace: 0
}
, zEe = {
root: {
display: "inline-block"
}
}
, DEe = Po.palette.neutralQuaternaryAlt
, LEe = {
childrenGap: 30
}
, REe = {
root: {
margin: "0px !important"
}
}
, PEe = {
padding: 0
}
, BEe = {
root: {
width: "100%",
height: 50
},
icon: {
fontSize: 20
}
}
, FEe = {
root: {
width: "100%",
height: 55
},
icon: {
fontSize: 19,
color: "#ff1a1a"
}
};
function VEe(e) {
var t = e.messages
, n = e.onChange
, r = function(e, r, i) {
var o = Il(null != t ? t : [], (function(t) {
t[e][r] = i
}
));
n(o)
}
, i = function(e, t, n, i, o, a, l) {
if (a !== l) {
var s = Il(null != i ? i : [], (function(e) {
e[t][n][o] = l
}
));
r(e, "conditional", s)
}
};
return Object(Ip.jsxs)(yj, {
children: [Object(Ip.jsx)(yj.Item, {
style: {
marginBottom: 16
},
children: Object(Ip.jsxs)(Ep, {
block: !0,
variant: "medium",
children: [" You may use these variables: ", EEe.map((function(e) {
var t = "{".concat(e, "}");
return Object(Ip.jsx)(WEe, {
text: t
}, e)
}
))]
})
}), !Rt()(t) && Object(Ip.jsx)(yj, {
tokens: {
childrenGap: 12
},
style: {
marginBottom: 16
},
children: t.map((function(e, o) {
var a, l, s, c = null !== (a = null == e ? void 0 : e.conditional) && void 0 !== a ? a : [], u = null !== (l = null == e ? void 0 : e.typeMessage) && void 0 !== l ? l : "success", d = null !== (s = null == e ? void 0 : e.message) && void 0 !== s ? s : "";
return Object(Ip.jsxs)(yj, {
className: "rest_message",
children: [Object(Ip.jsxs)(yj, {
tokens: LEe,
styles: REe,
children: [!Rt()(c) && c.map((function(e, t) {
return Object(Ip.jsxs)(yj.Item, {
styles: REe,
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "mediumPlus",
style: {
marginBottom: 10
},
children: "Conditional"
}), Object(Ip.jsxs)("table", {
className: "table-conditional",
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Merge Tag"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Operator"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Value"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Action"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "Delete"
},
"aria-label": "Delete",
styles: FEe,
onClick: function() {
return function(e, t, n) {
var i = Il(null != n ? n : [], (function(e) {
e.splice(t, 1)
}
));
r(e, "conditional", i)
}(o, t, c)
}
})
})]
})
}), yh()(e) && !Rt()(e) && e.map((function(e, n) {
var a = Cu()(e, ["value1"], "")
, l = Cu()(e, ["operator"], "")
, s = Cu()(e, ["value2"], "");
return Object(Ip.jsx)("tbody", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: a,
onChange: function(e, r) {
return i(o, t, n, c, "value1", a, r)
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(pM, {
placeholder: "Select...",
selectedKey: l,
options: ch,
onChange: function(e, r) {
return i(o, t, n, c, "operator", l, null == r ? void 0 : r.key)
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: s,
onChange: function(e, r) {
return i(o, t, n, c, "value2", s, r)
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(aj, {
onClick: function() {
return function(e, t, n, i) {
var o = Il(i, (function(e) {
e[t].splice(n, 1)
}
));
r(e, "conditional", o)
}(o, t, n, c)
},
text: "Delete"
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)("div", {
className: "center",
children: "&"
})
})]
})
}, "conditional-".concat(n))
}
)), Object(Ip.jsx)("tfoot", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "CircleAdditionSolid"
},
"aria-label": "CircleAdditionSolid",
styles: BEe,
onClick: function() {
return function(e, t, n) {
var i = Il(n, (function(e) {
e[t].push({
value1: "",
operator: "is_equal_to",
value2: ""
})
}
));
r(e, "conditional", i)
}(o, t, c)
}
})
})]
})
})]
}), Object(Ip.jsx)("div", {
className: "divider-line",
children: Object(Ip.jsx)(TEe, {
vertical: !0,
styles: {
root: {
height: 63,
padding: "0px",
"::after": {
backgroundColor: DEe
}
},
content: {
padding: "0px"
}
},
children: Object(Ip.jsx)(Ep, {
children: "OR"
})
})
})]
}, "message-".concat(t))
}
)), Object(Ip.jsx)(yj, {
horizontal: !0,
tokens: PEe,
styles: REe,
children: Object(Ip.jsx)(kk, {
onClick: function() {
return function(e, t) {
var n = Il(null != t ? t : [], (function(e) {
e.push([{
value1: "",
operator: "is_equal_to",
value2: ""
}])
}
));
r(e, "conditional", n)
}(o, c)
},
text: "Add Conditional"
})
})]
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "mediumPlus",
style: {
marginBottom: 10
},
children: "Message"
}), Object(Ip.jsx)(jq, {
defaultSelectedKey: u,
options: IEe,
onChange: function(e, t) {
(null == t ? void 0 : t.key) !== u && r(o, "typeMessage", null == t ? void 0 : t.key)
},
styles: {
root: {
marginBottom: 12
},
flexContainer: {
display: "flex",
flexDirection: "row",
gap: 16
}
}
}), Object(Ip.jsx)(jk, {
value: d,
onChange: function(e, t) {
return r(o, "message", t)
},
placeholder: "Content message"
})]
}), Object(Ip.jsx)(yj, {
horizontal: !0,
horizontalAlign: "end",
children: Object(Ip.jsx)(kk, {
onClick: function() {
return function(e) {
var r = Il(null != t ? t : [], (function(t) {
t.splice(e, 1)
}
));
n(r)
}(o)
},
children: "Delete"
})
})]
}, o)
}
))
}), Object(Ip.jsx)(yj, {
horizontal: !0,
children: Object(Ip.jsx)(kk, {
onClick: function() {
var e = Il(null != t ? t : [], (function(e) {
e.push({
conditional: [[{
value1: "",
operator: "is_equal_to",
value2: ""
}]],
typeMessage: "success",
message: ""
})
}
));
n(e)
},
text: "Add Message"
})
})]
})
}
var WEe = function(e) {
var t = e.text
, n = Ck(!0)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1].toggle
, a = Lw("tooltip-variable-".concat(t));
return Object(Ip.jsx)(BA, {
content: "Copied",
id: a,
calloutProps: NEe,
styles: zEe,
hidden: i,
children: Object(Ip.jsx)(kk, {
"aria-describedby": a,
onClick: function() {
navigator.clipboard.writeText(null != t ? t : ""),
o(),
setTimeout((function() {
o()
}
), 1e3)
},
styles: {
root: {
padding: "2px 12px",
margin: "3px 5px 3px 0px",
height: "auto",
maxWidth: "auto",
borderRadius: "3px",
border: "none",
backgroundColor: Po.palette.neutralLighterAlt,
boxShadow: "none"
},
rootHovered: {
backgroundColor: Po.palette.neutralLight,
border: "none"
},
rootPressed: {
backgroundColor: Po.palette.neutralLight,
border: "none"
},
textContainer: {
padding: "0px"
}
},
children: Object(Ip.jsx)(Ep, {
variant: "medium",
children: t
})
})
})
}
, qEe = [{
key: "GET",
text: "GET"
}, {
key: "POST",
text: "POST"
}, {
key: "PUT",
text: "PUT"
}, {
key: "PATCH",
text: "PATCH"
}, {
key: "DELETE",
text: "DELETE"
}];
function HEe(e) {
try {
var t = JSON.parse(e);
return yh()(t)
} catch (e) {
return !1
}
}
function UEe(e) {
var t = e.value
, n = e.onChange
, r = e.toggleHideDialog
, i = Cu()(t, "type", "")
, o = "rest-api" === i ? Cu()(t, "args.url", "") : ""
, a = "rest-api" === i ? Cu()(t, "args.method", "GET") : "GET"
, s = "rest-api" === i ? Cu()(t, "args.typeBody", "none") : "none"
, c = "rest-api" === i ? Cu()(t, "args.headers", "") : ""
, u = "rest-api" === i ? Cu()(t, "args.body", "") : ""
, d = "rest-api" === i ? Cu()(t, "args.messages", "") : ""
, p = l.useState(o)
, h = Object(ss.a)(p, 2)
, f = h[0]
, b = h[1]
, g = l.useState(wEe()(a))
, m = Object(ss.a)(g, 2)
, v = m[0]
, y = m[1]
, x = l.useState(HEe(c) ? JSON.parse(c) : [])
, O = Object(ss.a)(x, 2)
, j = O[0]
, k = O[1]
, w = l.useState(s)
, C = Object(ss.a)(w, 2)
, _ = C[0]
, M = C[1]
, S = l.useState(HEe(u) ? JSON.parse(u) : [])
, A = Object(ss.a)(S, 2)
, T = A[0]
, E = A[1]
, I = l.useState(HEe(d) ? JSON.parse(d) : [])
, N = Object(ss.a)(I, 2)
, z = N[0]
, D = N[1]
, L = l.useMemo((function() {
var e, t, n = null !== (e = null === (t = Ks.a.parseUrl(f)) || void 0 === t ? void 0 : t.query) && void 0 !== e ? e : {};
return Rt()(n) ? [] : function(e) {
return e.split("&").map((function(e) {
var t, n, r = e.split("=");
return {
key: null !== (t = r[0]) && void 0 !== t ? t : "",
value: null !== (n = r[1]) && void 0 !== n ? n : ""
}
}
))
}(Ks.a.extract(f))
}
), [f])
, R = l.useCallback((function(e) {
var t, n, r = null !== (t = null === (n = Ks.a.parseUrl(f)) || void 0 === n ? void 0 : n.url) && void 0 !== t ? t : "";
b("".concat(r).concat(function(e) {
if (Rt()(e))
return "";
var t = e.map((function(e) {
var t, n;
return "".concat(null !== (t = null == e ? void 0 : e.key) && void 0 !== t ? t : "", "=").concat(null !== (n = e.value) && void 0 !== n ? n : "")
}
));
return "?".concat(t.join("&"))
}(e)))
}
), [f, b]);
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)("div", {
"data-is-scrollable": "true",
style: {
height: 450,
overflow: "scroll",
margin: "30px 0"
},
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
tokens: {
childrenGap: 12
},
styles: {
root: {
marginBottom: 10
}
},
children: [Object(Ip.jsx)(yj.Item, {
children: Object(Ip.jsx)(pM, {
selectedKey: v,
options: qEe,
placeholder: "Method",
onChange: function(e, t, n) {
var r;
return y("".concat(null !== (r = null == t ? void 0 : t.key) && void 0 !== r ? r : "GET"))
},
styles: {
root: {
width: 100
}
}
})
}), Object(Ip.jsx)(yj.Item, {
grow: !0,
children: Object(Ip.jsx)(jk, {
value: f,
onChange: function(e, t) {
return b(null != t ? t : "")
},
placeholder: "Enter URL",
multiline: !0,
rows: 1,
styles: {
fieldGroup: {
minHeight: "auto"
}
},
autoAdjustHeight: !0,
resizable: !1
})
})]
}), Object(Ip.jsxs)(QC, {
"aria-label": "Rest API",
children: [Object(Ip.jsx)(EC, {
headerText: "Params",
style: {
marginTop: 20,
marginBottom: 30
},
children: Object(Ip.jsx)(CEe, {
params: L,
onChange: R
})
}), Object(Ip.jsx)(EC, {
headerText: "Headers",
style: {
marginTop: 20,
marginBottom: 30
},
children: Object(Ip.jsx)(_Ee, {
type: _,
headers: j,
onChange: function(e) {
return k(e)
}
})
}), Object(Ip.jsx)(EC, {
headerText: "Body",
style: {
marginTop: 12,
marginBottom: 30
},
children: Object(Ip.jsx)(SEe, {
type: _,
body: T,
onChangeType: function(e) {
return M(e)
},
onChange: function(e) {
return E(e)
}
})
}), Object(Ip.jsx)(EC, {
headerText: "Messages",
style: {
marginTop: 12,
marginBottom: 30
},
children: Object(Ip.jsx)(VEe, {
messages: z,
onChange: function(e) {
return D(e)
}
})
})]
})]
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(kk, {
onClick: function() {
n({
type: "rest-api",
route: "/rest-api",
args: {
name: "HTTP Request",
url: f,
method: v,
typeBody: _,
headers: JSON.stringify(j),
body: JSON.stringify(T),
messages: JSON.stringify(z)
}
}),
r()
},
text: "Select"
}), Object(Ip.jsx)(aj, {
onClick: r,
text: "Cancel"
})]
})]
})
}
var XEe = {
moveMenuItemText: "Move",
closeMenuItemText: "Close",
menu: GO
}
, GEe = {
main: {
maxWidth: 450,
minHeight: 726
}
}
, KEe = {
type: ej.largeHeader,
title: "Select action"
}
, YEe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e),
actions: hb(e)
}
}
))((function(e) {
var t, n, r = Ck(!0), i = Object(ss.a)(r, 2), o = i[0], a = i[1].toggle, c = Object(l.useState)(""), u = Object(ss.a)(c, 2), d = u[0], p = u[1], h = e.actions, f = e.label, b = e.info, g = e.value, m = e.defaultValue, v = e.language, y = e.translate, x = function(t) {
t && (y ? e.onChange(Object.assign({}, g, Object(wt.a)({}, v, t))) : e.onChange(t))
}, O = yo(), j = s.a.useMemo((function() {
if (y) {
var e, t, n = null !== (e = m[v]) && void 0 !== e ? e : m;
return g && null !== (t = g[v]) && void 0 !== t ? t : n
}
return null != g ? g : m
}
), [g, m, y, v]), k = s.a.useMemo((function() {
var e = Cu()(j, "type", "screen");
return "none" === Cu()(j, "route", "none") ? "navigate" : "launcher" === e ? "launcher" : "share" === e ? "share" : "rest-api" === e ? "rest-api" : "advanced"
}
), [j]);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("div", {
style: {
textAlign: "right",
color: O.palette.neutralPrimaryAlt,
padding: "5px 0"
},
children: Object(Ip.jsx)("span", {
style: {
textTransform: "uppercase"
},
children: null != v ? v : null === (t = window) || void 0 === t || null === (n = t.app_builder) || void 0 === n ? void 0 : n.language
})
}), Object(Ip.jsxs)("div", {
style: {
display: "flex"
},
children: [Object(Ip.jsx)(qA, {
label: f,
info: b
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(aj, {
onClick: a,
text: Cu()(j, "args.name", "Action"),
children: Object(Ip.jsx)(lp, {
iconName: "PageLink"
})
})
})]
}), Object(Ip.jsx)(tk, {
minWidth: 768,
hidden: o,
onDismiss: a,
dialogContentProps: KEe,
modalProps: {
isBlocking: !0,
styles: GEe,
dragOptions: XEe
},
children: Object(Ip.jsxs)(QC, {
"aria-label": "Action",
defaultSelectedKey: k,
children: [Object(Ip.jsxs)(EC, {
itemKey: "navigate",
headerText: "Navigate",
children: [Object(Ip.jsx)("br", {}), Object(Ip.jsx)(Nje, {
placeholder: "Search term",
onChange: function(e, t) {
return p(t || "")
}
}), Object(Ip.jsx)(bEe, {
actions: h,
query: {
post_type: ["page", "product", "post"],
taxonomy: ["category", "product_cat"]
},
search: d,
onChange: function(e) {
x(e),
p("")
},
toggleHideDialog: a
})]
}), Object(Ip.jsx)(EC, {
itemKey: "launcher",
headerText: "Launcher",
children: Object(Ip.jsx)(yEe, {
value: j,
onChange: function(e) {
x(e)
},
toggleHideDialog: a
})
}), Object(Ip.jsx)(EC, {
itemKey: "share",
headerText: "Share",
children: Object(Ip.jsx)(xEe, {
value: j,
onChange: function(e) {
x(e)
},
toggleHideDialog: a
})
}), Object(Ip.jsx)(EC, {
itemKey: "rest-api",
headerText: "HTTP Request",
children: Object(Ip.jsx)(UEe, {
value: j,
onChange: function(e) {
x(e)
},
toggleHideDialog: a
})
}), Object(Ip.jsx)(EC, {
itemKey: "advanced",
headerText: "Advanced",
children: Object(Ip.jsx)(jEe, {
value: j,
onChange: function(e) {
x(e)
},
toggleHideDialog: a
})
})]
})
})]
})
}
))
, QEe = {
root: {
padding: 0
}
}
, JEe = {
childrenGap: 0,
padding: 0
}
, ZEe = {
root: {
marginLeft: "-1px !important"
}
}
, $Ee = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r, i = e.props, o = i.onChange, a = i.value, l = i.defaultValue, s = _t(_t({}, null !== (r = null != a ? a : l) && void 0 !== r ? r : {}), {}, Object(wt.a)({}, t, parseInt(null != n ? n : "") || 0));
o && o(s)
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o = this, a = this.props, l = a.id, s = a.value, c = a.label, u = a.defaultValue, d = null !== (e = null != s ? s : u) && void 0 !== e ? e : {}, p = {
root: {
color: yo().palette.neutralPrimaryAlt
}
};
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: c
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: QEe,
tokens: JEe,
children: [Object(Ip.jsxs)(yj.Item, {
grow: !0,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (t = null == d ? void 0 : d["".concat(l, "Left")]) && void 0 !== t ? t : "",
onChange: function(e, t) {
return o._onChange("".concat(l, "Left"), t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Left"
})]
}), Object(Ip.jsxs)(yj.Item, {
grow: !0,
styles: ZEe,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (n = null == d ? void 0 : d["".concat(l, "Top")]) && void 0 !== n ? n : "",
onChange: function(e, t) {
return o._onChange("".concat(l, "Top"), t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Top"
})]
}), Object(Ip.jsxs)(yj.Item, {
grow: !0,
styles: ZEe,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (r = null == d ? void 0 : d["".concat(l, "Right")]) && void 0 !== r ? r : "",
onChange: function(e, t) {
return o._onChange("".concat(l, "Right"), t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Right"
})]
}), Object(Ip.jsxs)(yj.Item, {
grow: !0,
styles: ZEe,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (i = null == d ? void 0 : d["".concat(l, "Bottom")]) && void 0 !== i ? i : "",
onChange: function(e, t) {
return o._onChange("".concat(l, "Bottom"), t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Bottom"
})]
})]
})]
})
}
}]),
n
}(l.Component);
$Ee.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var eIe, tIe = $Ee, nIe = Li((function(e) {
var t, n = e.semanticColors, r = n.disabledText, i = n.disabledBackground;
return {
backgroundColor: i,
pointerEvents: "none",
cursor: "default",
color: r,
selectors: (t = {
":after": {
borderColor: i
}
},
t[vi] = {
color: "GrayText"
},
t)
}
}
)), rIe = Li((function(e, t, n) {
var r, i, o, a = e.palette, l = e.semanticColors, s = e.effects, c = a.neutralSecondary, u = l.buttonText, d = l.buttonText, p = l.buttonBackgroundHovered, h = l.buttonBackgroundPressed;
return No({
root: {
outline: "none",
display: "block",
height: "50%",
width: 23,
padding: 0,
backgroundColor: "transparent",
textAlign: "center",
cursor: "default",
color: c,
selectors: {
"&.ms-DownButton": {
borderRadius: "0 0 " + s.roundedCorner2 + " 0"
},
"&.ms-UpButton": {
borderRadius: "0 " + s.roundedCorner2 + " 0 0"
}
}
},
rootHovered: {
backgroundColor: p,
color: u
},
rootChecked: {
backgroundColor: h,
color: d,
selectors: (r = {},
r[vi] = {
backgroundColor: "Highlight",
color: "HighlightText"
},
r)
},
rootPressed: {
backgroundColor: h,
color: d,
selectors: (i = {},
i[vi] = {
backgroundColor: "Highlight",
color: "HighlightText"
},
i)
},
rootDisabled: {
opacity: .5,
selectors: (o = {},
o[vi] = {
color: "GrayText",
opacity: 1
},
o)
},
icon: {
fontSize: 8,
marginTop: 0,
marginRight: 0,
marginBottom: 0,
marginLeft: 0
}
}, {}, n)
}
));
!function(e) {
e[e.down = -1] = "down",
e[e.notSpinning = 0] = "notSpinning",
e[e.up = 1] = "up"
}(eIe || (eIe = {}));
var iIe = Sg()
, oIe = {
disabled: !1,
label: "",
step: 1,
labelPosition: cy.start,
incrementButtonIcon: {
iconName: "ChevronUpSmall"
},
decrementButtonIcon: {
iconName: "ChevronDownSmall"
}
}
, aIe = function() {}
, lIe = function(e, t) {
var n = t.min
, r = t.max;
return "number" == typeof r && (e = Math.min(e, r)),
"number" == typeof n && (e = Math.max(e, n)),
e
}
, sIe = l.forwardRef((function(e, t) {
var n = hy(oIe, e)
, r = n.disabled
, i = n.label
, o = n.min
, a = n.max
, s = n.step
, c = n.defaultValue
, u = n.value
, d = n.precision
, p = n.labelPosition
, h = n.iconProps
, f = n.incrementButtonIcon
, b = n.incrementButtonAriaLabel
, g = n.decrementButtonIcon
, m = n.decrementButtonAriaLabel
, v = n.ariaLabel
, y = n.ariaDescribedBy
, x = n.upArrowButtonStyles
, O = n.downArrowButtonStyles
, j = n.theme
, k = n.ariaPositionInSet
, w = n.ariaSetSize
, C = n.ariaValueNow
, _ = n.ariaValueText
, M = n.className
, S = n.inputProps
, A = n.onDecrement
, T = n.onIncrement
, E = n.iconButtonProps
, I = n.onValidate
, N = n.onChange
, z = n.styles
, D = l.useRef(null)
, L = gO("input")
, R = gO("Label")
, P = l.useState(!1)
, B = P[0]
, F = P[1]
, V = l.useState(eIe.notSpinning)
, W = V[0]
, q = V[1]
, H = ex()
, U = l.useMemo((function() {
return null != d ? d : Math.max(function(e) {
var t = /[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));
return t ? t[1] ? -t[1].length : t[2] ? t[2].length : 0 : 0
}(s), 0)
}
), [d, s])
, X = _C(u, null != c ? c : String(o || 0), N)
, G = X[0]
, K = X[1]
, Y = l.useState()
, Q = Y[0]
, J = Y[1]
, Z = l.useRef({
stepTimeoutHandle: -1,
latestValue: void 0,
latestIntermediateValue: void 0
}).current;
Z.latestValue = G,
Z.latestIntermediateValue = Q;
var $ = aO(u);
l.useEffect((function() {
u !== $ && void 0 !== Q && J(void 0)
}
), [u, $, Q]);
var ee = iIe(z, {
theme: j,
disabled: r,
isFocused: B,
keyboardSpinDirection: W,
labelPosition: p,
className: M
})
, te = rp(n, np, ["onBlur", "onFocus", "className", "onChange"])
, ne = l.useCallback((function(e) {
var t = Z.latestIntermediateValue;
if (void 0 !== t && t !== Z.latestValue) {
var n = void 0;
I ? n = I(t, e) : t && t.trim().length && !isNaN(Number(t)) && (n = String(lIe(Number(t), {
min: o,
max: a
}))),
void 0 !== n && n !== Z.latestValue && K(n, e)
}
J(void 0)
}
), [Z, a, o, I, K])
, re = l.useCallback((function() {
Z.stepTimeoutHandle >= 0 && (H.clearTimeout(Z.stepTimeoutHandle),
Z.stepTimeoutHandle = -1),
(Z.spinningByMouse || W !== eIe.notSpinning) && (Z.spinningByMouse = !1,
q(eIe.notSpinning))
}
), [Z, W, H])
, ie = l.useCallback((function(e, t) {
if (t.persist(),
void 0 !== Z.latestIntermediateValue)
return "keydown" === t.type && ne(t),
void H.requestAnimationFrame((function() {
ie(e, t)
}
));
var n = e(Z.latestValue || "", t);
void 0 !== n && n !== Z.latestValue && K(n, t);
var r = Z.spinningByMouse;
Z.spinningByMouse = "mousedown" === t.type,
Z.spinningByMouse && (Z.stepTimeoutHandle = H.setTimeout((function() {
ie(e, t)
}
), r ? 75 : 400))
}
), [Z, H, ne, K])
, oe = l.useCallback((function(e) {
if (T)
return T(e);
var t = lIe(Number(e) + Number(s), {
max: a
});
return t = dEe(t, U),
String(t)
}
), [U, a, T, s])
, ae = l.useCallback((function(e) {
if (A)
return A(e);
var t = lIe(Number(e) - Number(s), {
min: o
});
return t = dEe(t, U),
String(t)
}
), [U, o, A, s])
, le = l.useCallback((function(e) {
(r || e.which === fp || e.which === gp) && re()
}
), [r, re])
, se = l.useCallback((function(e) {
ie(oe, e)
}
), [oe, ie])
, ce = l.useCallback((function(e) {
ie(ae, e)
}
), [ae, ie]);
!function(e, t, n) {
l.useImperativeHandle(e.componentRef, (function() {
return {
get value() {
return n
},
focus: function() {
t.current && t.current.focus()
}
}
}
), [t, n])
}(n, D, G),
cIe(n);
var ue = !!G && !isNaN(Number(G))
, de = (h || i) && l.createElement("div", {
className: ee.labelWrapper
}, h && l.createElement(Pg, Object(zn.a)({}, h, {
className: ee.icon,
"aria-hidden": "true"
})), i && l.createElement(ok, {
id: R,
htmlFor: L,
className: ee.label,
disabled: r
}, i));
return l.createElement("div", {
className: ee.root,
ref: t
}, p !== cy.bottom && de, l.createElement("div", Object(zn.a)({}, te, {
className: ee.spinButtonWrapper,
"aria-label": v && v,
"aria-posinset": k,
"aria-setsize": w,
"data-ktp-target": !0
}), l.createElement("input", Object(zn.a)({
value: null != Q ? Q : G,
id: L,
onChange: aIe,
onInput: function(e) {
J(e.target.value)
},
className: ee.input,
type: "text",
autoComplete: "off",
role: "spinbutton",
"aria-labelledby": i && R,
"aria-valuenow": null != C ? C : ue ? Number(G) : void 0,
"aria-valuetext": null != _ ? _ : ue ? void 0 : G,
"aria-valuemin": o,
"aria-valuemax": a,
"aria-describedby": y,
onBlur: function(e) {
var t;
ne(e),
F(!1),
null === (t = n.onBlur) || void 0 === t || t.call(n, e)
},
ref: D,
onFocus: function(e) {
var t;
D.current && ((Z.spinningByMouse || W !== eIe.notSpinning) && re(),
D.current.select(),
F(!0),
null === (t = n.onFocus) || void 0 === t || t.call(n, e))
},
onKeyDown: function(e) {
if (e.which !== fp && e.which !== gp && e.which !== cp || (e.preventDefault(),
e.stopPropagation()),
r)
re();
else {
var t = eIe.notSpinning;
switch (e.which) {
case fp:
t = eIe.up,
ie(oe, e);
break;
case gp:
t = eIe.down,
ie(ae, e);
break;
case cp:
ne(e);
break;
case dp:
J(void 0)
}
W !== t && q(t)
}
},
onKeyUp: le,
disabled: r,
"aria-disabled": r,
"data-lpignore": !0,
"data-ktp-execute-target": !0
}, S)), l.createElement("span", {
className: ee.arrowButtonsContainer
}, l.createElement(Fj, Object(zn.a)({
styles: rIe(j, !0, x),
className: "ms-UpButton",
checked: W === eIe.up,
disabled: r,
iconProps: f,
onMouseDown: se,
onMouseLeave: re,
onMouseUp: re,
tabIndex: -1,
ariaLabel: b,
"data-is-focusable": !1
}, E)), l.createElement(Fj, Object(zn.a)({
styles: rIe(j, !1, O),
className: "ms-DownButton",
checked: W === eIe.down,
disabled: r,
iconProps: g,
onMouseDown: ce,
onMouseLeave: re,
onMouseUp: re,
tabIndex: -1,
ariaLabel: m,
"data-is-focusable": !1
}, E)))), p === cy.bottom && de)
}
));
sIe.displayName = "SpinButton";
var cIe = function(e) {}
, uIe = jg(sIe, (function(e) {
var t, n, r = e.theme, i = e.className, o = e.labelPosition, a = e.disabled, l = e.isFocused, s = r.palette, c = r.semanticColors, u = r.effects, d = r.fonts, p = c.inputBorder, h = c.inputBackground, f = c.inputBorderHovered, b = c.inputFocusBorderAlt, g = c.inputText, m = s.white, v = c.inputBackgroundChecked, y = c.disabledText;
return {
root: [d.medium, {
outline: "none",
width: "100%",
minWidth: 86
}, i],
labelWrapper: [{
display: "inline-flex",
alignItems: "center"
}, o === cy.start && {
height: 32,
float: "left",
marginRight: 10
}, o === cy.end && {
height: 32,
float: "right",
marginLeft: 10
}, o === cy.top && {
marginBottom: -1
}],
icon: [{
padding: "0 5px",
fontSize: gi.large
}, a && {
color: y
}],
label: {
pointerEvents: "none",
lineHeight: gi.large
},
spinButtonWrapper: [{
display: "flex",
position: "relative",
boxSizing: "border-box",
height: 32,
minWidth: 86,
selectors: {
":after": {
pointerEvents: "none",
content: "''",
position: "absolute",
left: 0,
top: 0,
bottom: 0,
right: 0,
borderWidth: "1px",
borderStyle: "solid",
borderColor: p,
borderRadius: u.roundedCorner2
}
}
}, (o === cy.top || o === cy.bottom) && {
width: "100%"
}, !a && [{
selectors: {
":hover": {
selectors: (t = {
":after": {
borderColor: f
}
},
t[vi] = {
selectors: {
":after": {
borderColor: "Highlight"
}
}
},
t)
}
}
}, l && {
selectors: {
"&&": Si(b, u.roundedCorner2)
}
}], a && nIe(r)],
input: ["ms-spinButton-input", {
boxSizing: "border-box",
boxShadow: "none",
borderStyle: "none",
flex: 1,
margin: 0,
fontSize: d.medium.fontSize,
fontFamily: "inherit",
color: g,
backgroundColor: h,
height: "100%",
padding: "0 8px 0 9px",
outline: 0,
display: "block",
minWidth: 61,
whiteSpace: "nowrap",
textOverflow: "ellipsis",
overflow: "hidden",
cursor: "text",
userSelect: "text",
borderRadius: u.roundedCorner2 + " 0 0 " + u.roundedCorner2
}, !a && {
selectors: {
"::selection": {
backgroundColor: v,
color: m,
selectors: (n = {},
n[vi] = {
backgroundColor: "Highlight",
borderColor: "Highlight",
color: "HighlightText"
},
n)
}
}
}, a && nIe(r)],
arrowButtonsContainer: [{
display: "block",
height: "100%",
cursor: "default"
}, a && nIe(r)]
}
}
), void 0, {
scope: "SpinButton"
})
, dIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).getPrecision = function(e, t) {
var n = Dt()(e.toString(), ".")
, r = Dt()(t.toString(), ".")
, i = n[1] ? n[1].length : 0
, o = r[1] ? r[1].length : 0;
return i > o ? i : o
}
,
e._onChangeIncrement = function(t, n) {
var r, i, o = e.props, a = o.onChange, l = o.props, s = null !== (r = null == l ? void 0 : l.max) && void 0 !== r ? r : null, c = null !== (i = null == l ? void 0 : l.step) && void 0 !== i ? i : 1, u = Number(t), d = e.getPrecision(u, c), p = (u + c).toFixed(d);
if (!s || s && p <= s) {
var h = String(p);
a && a(h)
}
}
,
e._onChangeDecrement = function(t, n) {
var r, i, o = e.props, a = o.onChange, l = o.props, s = null !== (r = null == l ? void 0 : l.min) && void 0 !== r ? r : 0, c = null !== (i = null == l ? void 0 : l.step) && void 0 !== i ? i : 1, u = Number(t), d = e.getPrecision(u, c), p = (u - c).toFixed(d);
if (u - c >= s) {
var h = String(p);
a && a(h)
}
}
,
e._onValidate = function(t, n) {
var r, i = e.props, o = i.props, a = i.onChange, l = null !== (r = null == o ? void 0 : o.min) && void 0 !== r ? r : 0, s = null == o ? void 0 : o.max, c = Number(t);
t.length === c.toString().length && l <= c && (!s || s && s >= c) && a(t)
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.label, i = n.value, o = n.defaultValue, a = n.info, l = n.props, s = null !== (e = null != o ? o : null == l ? void 0 : l.min) && void 0 !== e ? e : 0;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: r,
info: a
}), Object(Ip.jsx)(uIe, _t(_t({}, l), {}, {
styles: pS,
step: 1,
min: null !== (t = null == l ? void 0 : l.min) && void 0 !== t ? t : 0,
value: null != i ? i : s,
onIncrement: this._onChangeIncrement,
onDecrement: this._onChangeDecrement,
onBlur: this._onBlur,
onValidate: this._onValidate
}))]
})
}
}]),
n
}(l.Component);
dIe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var pIe = dIe;
function hIe(e) {
return Array.isArray ? Array.isArray(e) : "[object Array]" === yIe(e)
}
function fIe(e) {
return "string" == typeof e
}
function bIe(e) {
return "number" == typeof e
}
function gIe(e) {
return "object" == typeof e
}
function mIe(e) {
return null != e
}
function vIe(e) {
return !e.trim().length
}
function yIe(e) {
return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e)
}
var xIe = Object.prototype.hasOwnProperty
, OIe = function() {
function e(t) {
var n = this;
Object(St.a)(this, e),
this._keys = [],
this._keyMap = {};
var r = 0;
t.forEach((function(e) {
var t = jIe(e);
r += t.weight,
n._keys.push(t),
n._keyMap[t.id] = t,
r += t.weight
}
)),
this._keys.forEach((function(e) {
e.weight /= r
}
))
}
return Object(At.a)(e, [{
key: "get",
value: function(e) {
return this._keyMap[e]
}
}, {
key: "keys",
value: function() {
return this._keys
}
}, {
key: "toJSON",
value: function() {
return JSON.stringify(this._keys)
}
}]),
e
}();
function jIe(e) {
var t = null
, n = null
, r = null
, i = 1;
if (fIe(e) || hIe(e))
r = e,
t = kIe(e),
n = wIe(e);
else {
if (!xIe.call(e, "name"))
throw new Error("Missing ".concat("name", " property in key"));
var o = e.name;
if (r = o,
xIe.call(e, "weight") && (i = e.weight) <= 0)
throw new Error(function(e) {
return "Property 'weight' in key '".concat(e, "' must be a positive integer")
}(o));
t = kIe(o),
n = wIe(o)
}
return {
path: t,
id: n,
weight: i,
src: r
}
}
function kIe(e) {
return hIe(e) ? e : e.split(".")
}
function wIe(e) {
return hIe(e) ? e.join(".") : e
}
var CIe = {
useExtendedSearch: !1,
getFn: function(e, t) {
var n = []
, r = !1;
return function e(t, i, o) {
if (mIe(t))
if (i[o]) {
var a = t[i[o]];
if (!mIe(a))
return;
if (o === i.length - 1 && (fIe(a) || bIe(a) || function(e) {
return !0 === e || !1 === e || function(e) {
return gIe(e) && null !== e
}(e) && "[object Boolean]" == yIe(e)
}(a)))
n.push(function(e) {
return null == e ? "" : function(e) {
if ("string" == typeof e)
return e;
var t = e + "";
return "0" == t && 1 / e == -1 / 0 ? "-0" : t
}(e)
}(a));
else if (hIe(a)) {
r = !0;
for (var l = 0, s = a.length; l < s; l += 1)
e(a[l], i, o + 1)
} else
i.length && e(a, i, o + 1)
} else
n.push(t)
}(e, fIe(t) ? t.split(".") : t, 0),
r ? n : n[0]
},
ignoreLocation: !1,
ignoreFieldNorm: !1,
fieldNormWeight: 1
}
, _Ie = _t(_t(_t(_t({}, {
isCaseSensitive: !1,
includeScore: !1,
keys: [],
shouldSort: !0,
sortFn: function(e, t) {
return e.score === t.score ? e.idx < t.idx ? -1 : 1 : e.score < t.score ? -1 : 1
}
}), {
includeMatches: !1,
findAllMatches: !1,
minMatchCharLength: 1
}), {
location: 0,
threshold: .6,
distance: 100
}), CIe)
, MIe = /[^ ]+/g;
var SIe = function() {
function e() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
, n = t.getFn
, r = void 0 === n ? _Ie.getFn : n
, i = t.fieldNormWeight
, o = void 0 === i ? _Ie.fieldNormWeight : i;
Object(St.a)(this, e),
this.norm = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 3
, n = new Map
, r = Math.pow(10, t);
return {
get: function(t) {
var i = t.match(MIe).length;
if (n.has(i))
return n.get(i);
var o = 1 / Math.pow(i, .5 * e)
, a = parseFloat(Math.round(o * r) / r);
return n.set(i, a),
a
},
clear: function() {
n.clear()
}
}
}(o, 3),
this.getFn = r,
this.isCreated = !1,
this.setIndexRecords()
}
return Object(At.a)(e, [{
key: "setSources",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
this.docs = e
}
}, {
key: "setIndexRecords",
value: function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
this.records = e
}
}, {
key: "setKeys",
value: function() {
var e = this
, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
this.keys = t,
this._keysMap = {},
t.forEach((function(t, n) {
e._keysMap[t.id] = n
}
))
}
}, {
key: "create",
value: function() {
var e = this;
!this.isCreated && this.docs.length && (this.isCreated = !0,
fIe(this.docs[0]) ? this.docs.forEach((function(t, n) {
e._addString(t, n)
}
)) : this.docs.forEach((function(t, n) {
e._addObject(t, n)
}
)),
this.norm.clear())
}
}, {
key: "add",
value: function(e) {
var t = this.size();
fIe(e) ? this._addString(e, t) : this._addObject(e, t)
}
}, {
key: "removeAt",
value: function(e) {
this.records.splice(e, 1);
for (var t = e, n = this.size(); t < n; t += 1)
this.records[t].i -= 1
}
}, {
key: "getValueForItemAtKeyId",
value: function(e, t) {
return e[this._keysMap[t]]
}
}, {
key: "size",
value: function() {
return this.records.length
}
}, {
key: "_addString",
value: function(e, t) {
if (mIe(e) && !vIe(e)) {
var n = {
v: e,
i: t,
n: this.norm.get(e)
};
this.records.push(n)
}
}
}, {
key: "_addObject",
value: function(e, t) {
var n = this
, r = {
i: t,
$: {}
};
this.keys.forEach((function(t, i) {
var o = n.getFn(e, t.path);
if (mIe(o))
if (hIe(o))
!function() {
for (var e = [], t = [{
nestedArrIndex: -1,
value: o
}]; t.length; ) {
var a = t.pop()
, l = a.nestedArrIndex
, s = a.value;
if (mIe(s))
if (fIe(s) && !vIe(s)) {
var c = {
v: s,
i: l,
n: n.norm.get(s)
};
e.push(c)
} else
hIe(s) && s.forEach((function(e, n) {
t.push({
nestedArrIndex: n,
value: e
})
}
))
}
r.$[i] = e
}();
else if (!vIe(o)) {
var a = {
v: o,
n: n.norm.get(o)
};
r.$[i] = a
}
}
)),
this.records.push(r)
}
}, {
key: "toJSON",
value: function() {
return {
keys: this.keys,
records: this.records
}
}
}]),
e
}();
function AIe(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}
, r = n.getFn
, i = void 0 === r ? _Ie.getFn : r
, o = n.fieldNormWeight
, a = void 0 === o ? _Ie.fieldNormWeight : o
, l = new SIe({
getFn: i,
fieldNormWeight: a
});
return l.setKeys(e.map(jIe)),
l.setSources(t),
l.create(),
l
}
function TIe(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
, n = t.errors
, r = void 0 === n ? 0 : n
, i = t.currentLocation
, o = void 0 === i ? 0 : i
, a = t.expectedLocation
, l = void 0 === a ? 0 : a
, s = t.distance
, c = void 0 === s ? _Ie.distance : s
, u = t.ignoreLocation
, d = void 0 === u ? _Ie.ignoreLocation : u
, p = r / e.length;
if (d)
return p;
var h = Math.abs(l - o);
return c ? p + h / c : h ? 1 : p
}
var EIe = 32;
function IIe(e) {
for (var t = {}, n = 0, r = e.length; n < r; n += 1) {
var i = e.charAt(n);
t[i] = (t[i] || 0) | 1 << r - n - 1
}
return t
}
var NIe = function() {
function e(t) {
var n = this
, r = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
, i = r.location
, o = void 0 === i ? _Ie.location : i
, a = r.threshold
, l = void 0 === a ? _Ie.threshold : a
, s = r.distance
, c = void 0 === s ? _Ie.distance : s
, u = r.includeMatches
, d = void 0 === u ? _Ie.includeMatches : u
, p = r.findAllMatches
, h = void 0 === p ? _Ie.findAllMatches : p
, f = r.minMatchCharLength
, b = void 0 === f ? _Ie.minMatchCharLength : f
, g = r.isCaseSensitive
, m = void 0 === g ? _Ie.isCaseSensitive : g
, v = r.ignoreLocation
, y = void 0 === v ? _Ie.ignoreLocation : v;
if (Object(St.a)(this, e),
this.options = {
location: o,
threshold: l,
distance: c,
includeMatches: d,
findAllMatches: h,
minMatchCharLength: b,
isCaseSensitive: m,
ignoreLocation: y
},
this.pattern = m ? t : t.toLowerCase(),
this.chunks = [],
this.pattern.length) {
var x = function(e, t) {
n.chunks.push({
pattern: e,
alphabet: IIe(e),
startIndex: t
})
}
, O = this.pattern.length;
if (O > EIe) {
for (var j = 0, k = O % EIe, w = O - k; j < w; )
x(this.pattern.substr(j, EIe), j),
j += EIe;
if (k) {
var C = O - EIe;
x(this.pattern.substr(C), C)
}
} else
x(this.pattern, 0)
}
}
return Object(At.a)(e, [{
key: "searchIn",
value: function(e) {
var t = this.options
, n = t.isCaseSensitive
, r = t.includeMatches;
if (n || (e = e.toLowerCase()),
this.pattern === e) {
var i = {
isMatch: !0,
score: 0
};
return r && (i.indices = [[0, e.length - 1]]),
i
}
var o = this.options
, a = o.location
, l = o.distance
, s = o.threshold
, c = o.findAllMatches
, u = o.minMatchCharLength
, d = o.ignoreLocation
, p = []
, h = 0
, f = !1;
this.chunks.forEach((function(t) {
var n = t.pattern
, i = t.alphabet
, o = t.startIndex
, b = function(e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {}
, i = r.location
, o = void 0 === i ? _Ie.location : i
, a = r.distance
, l = void 0 === a ? _Ie.distance : a
, s = r.threshold
, c = void 0 === s ? _Ie.threshold : s
, u = r.findAllMatches
, d = void 0 === u ? _Ie.findAllMatches : u
, p = r.minMatchCharLength
, h = void 0 === p ? _Ie.minMatchCharLength : p
, f = r.includeMatches
, b = void 0 === f ? _Ie.includeMatches : f
, g = r.ignoreLocation
, m = void 0 === g ? _Ie.ignoreLocation : g;
if (t.length > EIe)
throw new Error(function(e) {
return "Pattern length exceeds max of ".concat(e, ".")
}(EIe));
for (var v, y = t.length, x = e.length, O = Math.max(0, Math.min(o, x)), j = c, k = O, w = h > 1 || b, C = w ? Array(x) : []; (v = e.indexOf(t, k)) > -1; ) {
var _ = TIe(t, {
currentLocation: v,
expectedLocation: O,
distance: l,
ignoreLocation: m
});
if (j = Math.min(_, j),
k = v + y,
w)
for (var M = 0; M < y; )
C[v + M] = 1,
M += 1
}
k = -1;
for (var S = [], A = 1, T = y + x, E = 1 << y - 1, I = 0; I < y; I += 1) {
for (var N = 0, z = T; N < z; )
TIe(t, {
errors: I,
currentLocation: O + z,
expectedLocation: O,
distance: l,
ignoreLocation: m
}) <= j ? N = z : T = z,
z = Math.floor((T - N) / 2 + N);
T = z;
var D = Math.max(1, O - z + 1)
, L = d ? x : Math.min(O + z, x) + y
, R = Array(L + 2);
R[L + 1] = (1 << I) - 1;
for (var P = L; P >= D; P -= 1) {
var B = P - 1
, F = n[e.charAt(B)];
if (w && (C[B] = +!!F),
R[P] = (R[P + 1] << 1 | 1) & F,
I && (R[P] |= (S[P + 1] | S[P]) << 1 | 1 | S[P + 1]),
R[P] & E && (A = TIe(t, {
errors: I,
currentLocation: B,
expectedLocation: O,
distance: l,
ignoreLocation: m
})) <= j) {
if (j = A,
(k = B) <= O)
break;
D = Math.max(1, 2 * O - k)
}
}
if (TIe(t, {
errors: I + 1,
currentLocation: O,
expectedLocation: O,
distance: l,
ignoreLocation: m
}) > j)
break;
S = R
}
var V = {
isMatch: k >= 0,
score: Math.max(.001, A)
};
if (w) {
var W = function() {
for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : _Ie.minMatchCharLength, n = [], r = -1, i = -1, o = 0, a = e.length; o < a; o += 1) {
var l = e[o];
l && -1 === r ? r = o : l || -1 === r || ((i = o - 1) - r + 1 >= t && n.push([r, i]),
r = -1)
}
return e[o - 1] && o - r >= t && n.push([r, o - 1]),
n
}(C, h);
W.length ? b && (V.indices = W) : V.isMatch = !1
}
return V
}(e, n, i, {
location: a + o,
distance: l,
threshold: s,
findAllMatches: c,
minMatchCharLength: u,
includeMatches: r,
ignoreLocation: d
})
, g = b.isMatch
, m = b.score
, v = b.indices;
g && (f = !0),
h += m,
g && v && (p = [].concat(Object(wd.a)(p), Object(wd.a)(v)))
}
));
var b = {
isMatch: f,
score: f ? h / this.chunks.length : 1
};
return f && r && (b.indices = p),
b
}
}]),
e
}()
, zIe = function() {
function e(t) {
Object(St.a)(this, e),
this.pattern = t
}
return Object(At.a)(e, [{
key: "search",
value: function() {}
}], [{
key: "isMultiMatch",
value: function(e) {
return DIe(e, this.multiRegex)
}
}, {
key: "isSingleMatch",
value: function(e) {
return DIe(e, this.singleRegex)
}
}]),
e
}();
function DIe(e, t) {
var n = e.match(t);
return n ? n[1] : null
}
var LIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
var t = e === this.pattern;
return {
isMatch: t,
score: t ? 0 : 1,
indices: [0, this.pattern.length - 1]
}
}
}], [{
key: "type",
get: function() {
return "exact"
}
}, {
key: "multiRegex",
get: function() {
return /^="(.*)"$/
}
}, {
key: "singleRegex",
get: function() {
return /^=(.*)$/
}
}]),
n
}(zIe)
, RIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
var t = -1 === e.indexOf(this.pattern);
return {
isMatch: t,
score: t ? 0 : 1,
indices: [0, e.length - 1]
}
}
}], [{
key: "type",
get: function() {
return "inverse-exact"
}
}, {
key: "multiRegex",
get: function() {
return /^!"(.*)"$/
}
}, {
key: "singleRegex",
get: function() {
return /^!(.*)$/
}
}]),
n
}(zIe)
, PIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
var t = e.startsWith(this.pattern);
return {
isMatch: t,
score: t ? 0 : 1,
indices: [0, this.pattern.length - 1]
}
}
}], [{
key: "type",
get: function() {
return "prefix-exact"
}
}, {
key: "multiRegex",
get: function() {
return /^\^"(.*)"$/
}
}, {
key: "singleRegex",
get: function() {
return /^\^(.*)$/
}
}]),
n
}(zIe)
, BIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
var t = !e.startsWith(this.pattern);
return {
isMatch: t,
score: t ? 0 : 1,
indices: [0, e.length - 1]
}
}
}], [{
key: "type",
get: function() {
return "inverse-prefix-exact"
}
}, {
key: "multiRegex",
get: function() {
return /^!\^"(.*)"$/
}
}, {
key: "singleRegex",
get: function() {
return /^!\^(.*)$/
}
}]),
n
}(zIe)
, FIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
var t = e.endsWith(this.pattern);
return {
isMatch: t,
score: t ? 0 : 1,
indices: [e.length - this.pattern.length, e.length - 1]
}
}
}], [{
key: "type",
get: function() {
return "suffix-exact"
}
}, {
key: "multiRegex",
get: function() {
return /^"(.*)"\$$/
}
}, {
key: "singleRegex",
get: function() {
return /^(.*)\$$/
}
}]),
n
}(zIe)
, VIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
var t = !e.endsWith(this.pattern);
return {
isMatch: t,
score: t ? 0 : 1,
indices: [0, e.length - 1]
}
}
}], [{
key: "type",
get: function() {
return "inverse-suffix-exact"
}
}, {
key: "multiRegex",
get: function() {
return /^!"(.*)"\$$/
}
}, {
key: "singleRegex",
get: function() {
return /^!(.*)\$$/
}
}]),
n
}(zIe)
, WIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r, i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, o = i.location, a = void 0 === o ? _Ie.location : o, l = i.threshold, s = void 0 === l ? _Ie.threshold : l, c = i.distance, u = void 0 === c ? _Ie.distance : c, d = i.includeMatches, p = void 0 === d ? _Ie.includeMatches : d, h = i.findAllMatches, f = void 0 === h ? _Ie.findAllMatches : h, b = i.minMatchCharLength, g = void 0 === b ? _Ie.minMatchCharLength : b, m = i.isCaseSensitive, v = void 0 === m ? _Ie.isCaseSensitive : m, y = i.ignoreLocation, x = void 0 === y ? _Ie.ignoreLocation : y;
return Object(St.a)(this, n),
(r = t.call(this, e))._bitapSearch = new NIe(e,{
location: a,
threshold: s,
distance: u,
includeMatches: p,
findAllMatches: f,
minMatchCharLength: g,
isCaseSensitive: v,
ignoreLocation: x
}),
r
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
return this._bitapSearch.searchIn(e)
}
}], [{
key: "type",
get: function() {
return "fuzzy"
}
}, {
key: "multiRegex",
get: function() {
return /^"(.*)"$/
}
}, {
key: "singleRegex",
get: function() {
return /^(.*)$/
}
}]),
n
}(zIe)
, qIe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
return Object(St.a)(this, n),
t.call(this, e)
}
return Object(At.a)(n, [{
key: "search",
value: function(e) {
for (var t, n = 0, r = [], i = this.pattern.length; (t = e.indexOf(this.pattern, n)) > -1; )
n = t + i,
r.push([t, n - 1]);
var o = !!r.length;
return {
isMatch: o,
score: o ? 0 : 1,
indices: r
}
}
}], [{
key: "type",
get: function() {
return "include"
}
}, {
key: "multiRegex",
get: function() {
return /^'"(.*)"$/
}
}, {
key: "singleRegex",
get: function() {
return /^'(.*)$/
}
}]),
n
}(zIe)
, HIe = [LIe, qIe, PIe, BIe, VIe, FIe, RIe, WIe]
, UIe = HIe.length
, XIe = / +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;
var GIe = new Set([WIe.type, qIe.type])
, KIe = function() {
function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
, r = n.isCaseSensitive
, i = void 0 === r ? _Ie.isCaseSensitive : r
, o = n.includeMatches
, a = void 0 === o ? _Ie.includeMatches : o
, l = n.minMatchCharLength
, s = void 0 === l ? _Ie.minMatchCharLength : l
, c = n.ignoreLocation
, u = void 0 === c ? _Ie.ignoreLocation : c
, d = n.findAllMatches
, p = void 0 === d ? _Ie.findAllMatches : d
, h = n.location
, f = void 0 === h ? _Ie.location : h
, b = n.threshold
, g = void 0 === b ? _Ie.threshold : b
, m = n.distance
, v = void 0 === m ? _Ie.distance : m;
Object(St.a)(this, e),
this.query = null,
this.options = {
isCaseSensitive: i,
includeMatches: a,
minMatchCharLength: s,
findAllMatches: p,
ignoreLocation: u,
location: f,
threshold: g,
distance: v
},
this.pattern = i ? t : t.toLowerCase(),
this.query = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
return e.split("|").map((function(e) {
for (var n = e.trim().split(XIe).filter((function(e) {
return e && !!e.trim()
}
)), r = [], i = 0, o = n.length; i < o; i += 1) {
for (var a = n[i], l = !1, s = -1; !l && ++s < UIe; ) {
var c = HIe[s]
, u = c.isMultiMatch(a);
u && (r.push(new c(u,t)),
l = !0)
}
if (!l)
for (s = -1; ++s < UIe; ) {
var d = HIe[s]
, p = d.isSingleMatch(a);
if (p) {
r.push(new d(p,t));
break
}
}
}
return r
}
))
}(this.pattern, this.options)
}
return Object(At.a)(e, [{
key: "searchIn",
value: function(e) {
var t = this.query;
if (!t)
return {
isMatch: !1,
score: 1
};
var n = this.options
, r = n.includeMatches;
e = n.isCaseSensitive ? e : e.toLowerCase();
for (var i = 0, o = [], a = 0, l = 0, s = t.length; l < s; l += 1) {
var c = t[l];
o.length = 0,
i = 0;
for (var u = 0, d = c.length; u < d; u += 1) {
var p = c[u]
, h = p.search(e)
, f = h.isMatch
, b = h.indices
, g = h.score;
if (!f) {
a = 0,
i = 0,
o.length = 0;
break
}
if (i += 1,
a += g,
r) {
var m = p.constructor.type;
GIe.has(m) ? o = [].concat(Object(wd.a)(o), Object(wd.a)(b)) : o.push(b)
}
}
if (i) {
var v = {
isMatch: !0,
score: a / i
};
return r && (v.indices = o),
v
}
}
return {
isMatch: !1,
score: 1
}
}
}], [{
key: "condition",
value: function(e, t) {
return t.useExtendedSearch
}
}]),
e
}()
, YIe = [];
function QIe(e, t) {
for (var n = 0, r = YIe.length; n < r; n += 1) {
var i = YIe[n];
if (i.condition(e, t))
return new i(e,t)
}
return new NIe(e,t)
}
var JIe = "$and"
, ZIe = "$path"
, $Ie = function(e) {
return !(!e[JIe] && !e.$or)
}
, eNe = function(e) {
return Object(wt.a)({}, JIe, Object.keys(e).map((function(t) {
return Object(wt.a)({}, t, e[t])
}
)))
};
function tNe(e, t) {
var n = (arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}).auto
, r = void 0 === n || n;
return $Ie(e) || (e = eNe(e)),
function e(n) {
var i = Object.keys(n)
, o = function(e) {
return !!e[ZIe]
}(n);
if (!o && i.length > 1 && !$Ie(n))
return e(eNe(n));
if (function(e) {
return !hIe(e) && gIe(e) && !$Ie(e)
}(n)) {
var a = o ? n[ZIe] : i[0]
, l = o ? n.$val : n[a];
if (!fIe(l))
throw new Error(function(e) {
return "Invalid value for key ".concat(e)
}(a));
var s = {
keyId: wIe(a),
pattern: l
};
return r && (s.searcher = QIe(l, t)),
s
}
var c = {
children: [],
operator: i[0]
};
return i.forEach((function(t) {
var r = n[t];
hIe(r) && r.forEach((function(t) {
c.children.push(e(t))
}
))
}
)),
c
}(e)
}
function nNe(e, t) {
var n = e.matches;
t.matches = [],
mIe(n) && n.forEach((function(e) {
if (mIe(e.indices) && e.indices.length) {
var n = {
indices: e.indices,
value: e.value
};
e.key && (n.key = e.key.src),
e.idx > -1 && (n.refIndex = e.idx),
t.matches.push(n)
}
}
))
}
function rNe(e, t) {
t.score = e.score
}
var iNe, oNe = function() {
function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
, r = arguments.length > 2 ? arguments[2] : void 0;
Object(St.a)(this, e),
this.options = _t(_t({}, _Ie), n),
this.options.useExtendedSearch,
this._keyStore = new OIe(this.options.keys),
this.setCollection(t, r)
}
return Object(At.a)(e, [{
key: "setCollection",
value: function(e, t) {
if (this._docs = e,
t && !(t instanceof SIe))
throw new Error("Incorrect 'index' type");
this._myIndex = t || AIe(this.options.keys, this._docs, {
getFn: this.options.getFn,
fieldNormWeight: this.options.fieldNormWeight
})
}
}, {
key: "add",
value: function(e) {
mIe(e) && (this._docs.push(e),
this._myIndex.add(e))
}
}, {
key: "remove",
value: function() {
for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : function() {
return !1
}
, t = [], n = 0, r = this._docs.length; n < r; n += 1) {
var i = this._docs[n];
e(i, n) && (this.removeAt(n),
n -= 1,
r -= 1,
t.push(i))
}
return t
}
}, {
key: "removeAt",
value: function(e) {
this._docs.splice(e, 1),
this._myIndex.removeAt(e)
}
}, {
key: "getIndex",
value: function() {
return this._myIndex
}
}, {
key: "search",
value: function(e) {
var t = (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}).limit
, n = void 0 === t ? -1 : t
, r = this.options
, i = r.includeMatches
, o = r.includeScore
, a = r.shouldSort
, l = r.sortFn
, s = r.ignoreFieldNorm
, c = fIe(e) ? fIe(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
return function(e, t) {
var n = t.ignoreFieldNorm
, r = void 0 === n ? _Ie.ignoreFieldNorm : n;
e.forEach((function(e) {
var t = 1;
e.matches.forEach((function(e) {
var n = e.key
, i = e.norm
, o = e.score
, a = n ? n.weight : null;
t *= Math.pow(0 === o && a ? Number.EPSILON : o, (a || 1) * (r ? 1 : i))
}
)),
e.score = t
}
))
}(c, {
ignoreFieldNorm: s
}),
a && c.sort(l),
bIe(n) && n > -1 && (c = c.slice(0, n)),
function(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}
, r = n.includeMatches
, i = void 0 === r ? _Ie.includeMatches : r
, o = n.includeScore
, a = void 0 === o ? _Ie.includeScore : o
, l = [];
return i && l.push(nNe),
a && l.push(rNe),
e.map((function(e) {
var n = e.idx
, r = {
item: t[n],
refIndex: n
};
return l.length && l.forEach((function(t) {
t(e, r)
}
)),
r
}
))
}(c, this._docs, {
includeMatches: i,
includeScore: o
})
}
}, {
key: "_searchStringList",
value: function(e) {
var t = QIe(e, this.options)
, n = this._myIndex.records
, r = [];
return n.forEach((function(e) {
var n = e.v
, i = e.i
, o = e.n;
if (mIe(n)) {
var a = t.searchIn(n)
, l = a.isMatch
, s = a.score
, c = a.indices;
l && r.push({
item: n,
idx: i,
matches: [{
score: s,
value: n,
norm: o,
indices: c
}]
})
}
}
)),
r
}
}, {
key: "_searchLogical",
value: function(e) {
var t = this
, n = tNe(e, this.options)
, r = function e(n, r, i) {
if (!n.children) {
var o = n.keyId
, a = n.searcher
, l = t._findMatches({
key: t._keyStore.get(o),
value: t._myIndex.getValueForItemAtKeyId(r, o),
searcher: a
});
return l && l.length ? [{
idx: i,
item: r,
matches: l
}] : []
}
for (var s = [], c = 0, u = n.children.length; c < u; c += 1) {
var d = e(n.children[c], r, i);
if (d.length)
s.push.apply(s, Object(wd.a)(d));
else if (n.operator === JIe)
return []
}
return s
}
, i = this._myIndex.records
, o = {}
, a = [];
return i.forEach((function(e) {
var t = e.$
, i = e.i;
if (mIe(t)) {
var l = r(n, t, i);
l.length && (o[i] || (o[i] = {
idx: i,
item: t,
matches: []
},
a.push(o[i])),
l.forEach((function(e) {
var t, n = e.matches;
(t = o[i].matches).push.apply(t, Object(wd.a)(n))
}
)))
}
}
)),
a
}
}, {
key: "_searchObjectList",
value: function(e) {
var t = this
, n = QIe(e, this.options)
, r = this._myIndex
, i = r.keys
, o = r.records
, a = [];
return o.forEach((function(e) {
var r = e.$
, o = e.i;
if (mIe(r)) {
var l = [];
i.forEach((function(e, i) {
l.push.apply(l, Object(wd.a)(t._findMatches({
key: e,
value: r[i],
searcher: n
})))
}
)),
l.length && a.push({
idx: o,
item: r,
matches: l
})
}
}
)),
a
}
}, {
key: "_findMatches",
value: function(e) {
var t = e.key
, n = e.value
, r = e.searcher;
if (!mIe(n))
return [];
var i = [];
if (hIe(n))
n.forEach((function(e) {
var n = e.v
, o = e.i
, a = e.n;
if (mIe(n)) {
var l = r.searchIn(n)
, s = l.isMatch
, c = l.score
, u = l.indices;
s && i.push({
score: c,
key: t,
value: n,
idx: o,
norm: a,
indices: u
})
}
}
));
else {
var o = n.v
, a = n.n
, l = r.searchIn(o)
, s = l.isMatch
, c = l.score
, u = l.indices;
s && i.push({
score: c,
key: t,
value: o,
norm: a,
indices: u
})
}
return i
}
}]),
e
}();
oNe.version = "6.5.3",
oNe.createIndex = AIe,
oNe.parseIndex = function(e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
, n = t.getFn
, r = void 0 === n ? _Ie.getFn : n
, i = t.fieldNormWeight
, o = void 0 === i ? _Ie.fieldNormWeight : i
, a = e.keys
, l = e.records
, s = new SIe({
getFn: r,
fieldNormWeight: o
});
return s.setKeys(a),
s.setIndexRecords(l),
s
}
,
oNe.config = _Ie,
oNe.parseQuery = tNe,
function() {
YIe.push.apply(YIe, arguments)
}(KIe);
var aNe = Object(Mu.b)(uH)(iNe || (iNe = _u(["\n margin: 0 10px 30px;\n padding: 24px 16px 16px 16px;\n cursor: pointer;\n width: calc(100% - 20px);\n max-width: calc(100% - 20px);\n text-align: center;\n box-sizing: border-box;\n display: flex;\n height: 150px;\n justify-content: space-between;\n flex-direction: column;\n"])));
function lNe(e) {
var t = e.results
, n = e.value
, r = e.name
, i = e.type
, o = e.onChange
, a = function(e) {
var t;
return o && o({
name: null !== (t = null == e ? void 0 : e.name) && void 0 !== t ? t : "",
type: i
})
};
return Object(Ip.jsx)(yw, {
padding: "0 24px",
children: Object(Ip.jsx)("div", {
className: "ms-Grid",
dir: "ltr",
children: Object(Ip.jsxs)("div", {
className: "ms-Grid-row",
children: [Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm12",
style: {
marginLeft: 10,
marginBottom: 20
},
children: Object(Ip.jsxs)(Ep, {
variant: "large",
children: [null == t ? void 0 : t.length, " ", r]
})
}), t.map((function(e) {
var t, r = null !== (t = null == e ? void 0 : e.item) && void 0 !== t ? t : e;
if (r) {
var o = !!n && r.name === n.name && n.type === i;
return Object(Ip.jsx)("div", {
className: "ms-Grid-col ms-sm12 ms-md6 ms-lg4 ms-xl3 ms-xxl2 ms-xxxl1",
children: Object(Ip.jsxs)(aNe, {
borderColor: o ? Po.palette.themePrimary : Po.palette.neutralQuaternaryAlt,
background: o ? Po.palette.neutralLighter : Po.palette.white,
onClick: function() {
return a(r)
},
children: [Object(Ip.jsx)(ZX, {
onChange: a,
icon: r,
type: i
}), Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
children: r.label || r.name
}), o && Object(Ip.jsx)(dH, {
color: Po.palette.themePrimary,
children: Object(Ip.jsx)(pH, {
color: Po.palette.themePrimary
})
})]
})
}, e.name || e.item.name)
}
return null
}
))]
})
})
})
}
var sNe = window.app_builder_awesome_icons
, cNe = new oNe(sNe,{
threshold: .2,
keys: ["name", "label", "tags"]
});
function uNe(e) {
var t = e.search
, n = e.value
, r = e.onChange
, i = s.a.useState(sNe)
, o = Object(ss.a)(i, 2)
, a = o[0]
, l = o[1];
return s.a.useEffect((function() {
t.trim() ? l(cNe.search(t.trim())) : l(sNe)
}
), [t]),
Object(Ip.jsx)(lNe, {
onChange: r,
value: n,
results: a,
type: "awesome",
name: "Awesome icons"
})
}
var dNe = Object.values(feather.icons)
, pNe = new oNe(dNe,{
threshold: .2,
keys: ["name", "tags"]
});
function hNe(e) {
var t = e.search
, n = e.value
, r = e.onChange
, i = s.a.useState(dNe)
, o = Object(ss.a)(i, 2)
, a = o[0]
, l = o[1];
return s.a.useEffect((function() {
t.trim() ? l(pNe.search(t.trim())) : l(dNe)
}
), [t]),
Object(Ip.jsx)(lNe, {
onChange: r,
value: n,
results: a,
type: "feather",
name: "Feather icons"
})
}
function fNe(e) {
var t = e.search
, n = e.value
, r = e.onChange
, i = e.data
, o = function(e) {
var t = [];
if (null != e && e.icons)
if (yh()(e.icons))
t = Object(wd.a)(e.icons);
else if (kb()(e.icons) && !Rt()(e.icons))
for (var n in e.icons)
t.push(_t({
name: n,
tags: []
}, e.icons[n]));
return t
}(i)
, a = s.a.useState(o)
, l = Object(ss.a)(a, 2)
, c = l[0]
, u = l[1]
, d = new oNe(o,{
threshold: .2,
keys: ["name", "tags"]
});
s.a.useEffect((function() {
t.trim() ? u(d.search(t.trim())) : u(o)
}
), [t]);
var p = s.a.useMemo((function() {
var e;
return null !== (e = null == i ? void 0 : i.fontName) && void 0 !== e ? e : ""
}
), [i]);
return Object(Ip.jsx)(lNe, {
onChange: r,
value: n,
results: c,
type: p,
name: p
})
}
var bNe = window.app_builder_custom_icons;
function gNe(e) {
var t = s.a.useRef(null)
, n = e.search
, r = e.value
, i = e.onChange;
return Object(Ip.jsx)("div", {
id: "select-fonts",
style: {
position: "relative",
height: "100%",
overflow: "auto",
marginLeft: -20,
marginRight: -20
},
ref: t,
children: Object(Ip.jsxs)(cA, {
style: {
height: "100%"
},
children: [yh()(bNe) && !Rt()(bNe) && bNe.map((function(e, t) {
return Object(Ip.jsx)(fNe, {
data: e,
onChange: i,
value: r,
search: n
}, t)
}
)), Object(Ip.jsx)(hNe, {
onChange: i,
value: r,
search: n
}), Object(Ip.jsx)(uNe, {
onChange: i,
value: r,
search: n
})]
})
})
}
gNe.defaultProps = {
type: "feather"
};
var mNe, vNe, yNe, xNe, ONe, jNe, kNe, wNe = gNe, CNe = Mu.b.div(mNe || (mNe = _u(["\n display: flex;\n justify-content: space-between;\n"]))), _Ne = dr({
fontSize: 16,
height: 16,
width: 16
}), MNe = Mu.b.div(vNe || (vNe = _u(["\n align-self: flex-start;\n flex-grow: 1;\n padding: 0 44px;\n display: flex;\n align-items: center;\n margin-bottom: 24px;\n"]))), SNe = Mu.b.div(yNe || (yNe = _u(["\n display: flex;\n padding: 20px;\n justify-content: flex-end;\n position: sticky;\n bottom: 0;\n left: 0;\n right: 0;\n background: #fff;\n z-index: 10;\n"]))), ANe = Object(Mu.b)(Ek)(xNe || (xNe = _u(["\n margin-left: 16px;\n"]))), TNe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
isOpen: !1,
search: "",
value: e.props.value || e.props.defaultValue
},
e._openPanel = function() {
e.setState({
isOpen: !0
})
}
,
e._dismissPanel = function() {
var t = e.props.value;
e.setState({
isOpen: !1,
value: t
})
}
,
e._onChange = function(t) {
var n = t.name
, r = t.type;
console.log(n, r);
var i = e.props.value;
if (n && r) {
var o = i || {};
e.setState({
value: _t(_t({}, o), {}, {
name: n,
type: r
})
})
}
}
,
e.saveOnChange = function() {
var t = e.props.onChange
, n = e.state.value;
n && (t && t(n),
e.setState({
isOpen: !1
}))
}
,
e
}
return Object(At.a)(n, [{
key: "componentDidUpdate",
value: function(e, t, n) {
mh()(e.value, this.props.value) || this.setState({
value: this.props.value || this.props.defaultValue
})
}
}, {
key: "render",
value: function() {
var e = this
, t = this.state
, n = t.isOpen
, r = t.search
, i = t.value
, o = this.props.label;
return Object(Ip.jsxs)(CNe, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: o || "Select Font"
}), Object(Ip.jsx)(Ik, {
typebtn: "outline",
onClick: this._openPanel,
children: Object(Ip.jsx)(YX, {
className: _Ne,
icon: i
})
}), Object(Ip.jsx)(CC, {
styles: {
scrollableContent: {
".ms-Panel-content": {
height: "auto"
}
}
},
isOpen: n,
onDismiss: this._dismissPanel,
type: Uw.smallFluid,
closeButtonAriaLabel: "Close",
headerText: "Fonts",
onRenderHeader: function() {
return Object(Ip.jsxs)(MNe, {
children: [Object(Ip.jsx)(Ep, {
variant: "xLarge",
className: "ms-Grid-col ms-sm6 ms-md4 ms-lg4",
children: "Select Icon"
}), Object(Ip.jsx)(Nje, {
value: r,
placeholder: "Search",
className: "ms-Grid-col ms-sm6 ms-md4 ms-lg4",
onChange: function(t, n) {
return e.setState({
search: n || ""
})
}
})]
})
},
onRenderFooter: function() {
return Object(Ip.jsxs)(SNe, {
children: [Object(Ip.jsx)(ANe, {
typebtn: "primary",
onClick: e.saveOnChange,
children: " Save "
}), Object(Ip.jsx)(ANe, {
typebtn: "error",
onClick: e._dismissPanel,
children: "Cancel"
})]
})
},
isFooterAtBottom: !0,
children: Object(Ip.jsxs)("div", {
id: "select-icons",
style: {
position: "relative",
overflow: "auto"
},
children: [Object(Ip.jsx)("div", {
style: {
marginBottom: 24
}
}), Object(Ip.jsx)(cA, {
style: {
height: "100%"
},
children: Object(Ip.jsx)(wNe, {
search: r,
onChange: this._onChange,
value: i
})
})]
})
})]
})
}
}]),
n
}(l.Component), ENe = TNe, INe = Mu.b.div(ONe || (ONe = _u(["\n border-bottom: 1px dashed #acafc9;\n margin: 20px 0;\n"]))), NNe = Mu.b.span(jNe || (jNe = _u(["\n display: block;\n font-size: 14px;\n color: #000;\n"]))), zNe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.props;
return "line" === (null == n ? void 0 : n.type) ? Object(Ip.jsx)(INe, {}) : Object(Ip.jsx)(NNe, {
children: t
})
}
}]),
n
}(l.Component), DNe = zNe, LNe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.value
, n = e.label
, r = e.info
, i = e.onChange;
return Object(Ip.jsx)(Kje, {
label: n,
info: r,
valueFont: t,
onChange: i
})
}
}]),
n
}(l.Component), RNe = LNe, PNe = ["value", "label", "isStyle", "isTranslate", "defaultValue", "info", "props"], BNe = Mu.b.div(kNe || (kNe = _u(["\n display: flex;\n margin: 0px -6px;\n & > div {\n flex: 1;\n margin: 0px 6px;\n }\n"]))), FNe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r = e.props
, i = r.onChange
, o = r.value
, a = r.defaultValue;
i && i(_t(_t({}, o || a), {}, Object(wt.a)({}, t, n)))
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this, r = this.props, i = r.value, o = r.label, a = (r.isStyle,
r.isTranslate,
r.defaultValue), l = r.info, s = r.props, c = Su(r, PNe), u = null !== (e = null == i ? void 0 : i.width) && void 0 !== e ? e : null == a ? void 0 : a.width, d = null !== (t = null == i ? void 0 : i.height) && void 0 !== t ? t : null == a ? void 0 : a.height;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: o,
info: l
}), Object(Ip.jsxs)(BNe, {
children: [Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(jk, _t(_t(_t({}, s), c), {}, {
styles: uS,
value: u || "",
onChange: function(e, t) {
return n._onChange("width", t)
},
onBlur: this._onBlur,
placeholder: "Width",
type: "number"
}))
}), Object(Ip.jsx)("div", {
children: Object(Ip.jsx)(jk, _t(_t(_t({}, s), c), {}, {
styles: uS,
value: d || "",
onChange: function(e, t) {
return n._onChange("height", t)
},
onBlur: this._onBlur,
placeholder: "Height",
type: "number"
}))
})]
})]
})
}
}]),
n
}(l.Component);
FNe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var VNe, WNe, qNe, HNe, UNe = FNe;
!function(e) {
e[e.Sunday = 0] = "Sunday",
e[e.Monday = 1] = "Monday",
e[e.Tuesday = 2] = "Tuesday",
e[e.Wednesday = 3] = "Wednesday",
e[e.Thursday = 4] = "Thursday",
e[e.Friday = 5] = "Friday",
e[e.Saturday = 6] = "Saturday"
}(VNe || (VNe = {})),
function(e) {
e[e.January = 0] = "January",
e[e.February = 1] = "February",
e[e.March = 2] = "March",
e[e.April = 3] = "April",
e[e.May = 4] = "May",
e[e.June = 5] = "June",
e[e.July = 6] = "July",
e[e.August = 7] = "August",
e[e.September = 8] = "September",
e[e.October = 9] = "October",
e[e.November = 10] = "November",
e[e.December = 11] = "December"
}(WNe || (WNe = {})),
function(e) {
e[e.FirstDay = 0] = "FirstDay",
e[e.FirstFullWeek = 1] = "FirstFullWeek",
e[e.FirstFourDayWeek = 2] = "FirstFourDayWeek"
}(qNe || (qNe = {})),
function(e) {
e[e.Day = 0] = "Day",
e[e.Week = 1] = "Week",
e[e.Month = 2] = "Month",
e[e.WorkWeek = 3] = "WorkWeek"
}(HNe || (HNe = {}));
var XNe = {
formatDay: function(e) {
return e.getDate().toString()
},
formatMonth: function(e, t) {
return t.months[e.getMonth()]
},
formatYear: function(e) {
return e.getFullYear().toString()
},
formatMonthDayYear: function(e, t) {
return t.months[e.getMonth()] + " " + e.getDate() + ", " + e.getFullYear()
},
formatMonthYear: function(e, t) {
return t.months[e.getMonth()] + " " + e.getFullYear()
}
}
, GNe = Object(zn.a)(Object(zn.a)({}, {
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays: ["S", "M", "T", "W", "T", "F", "S"]
}), {
goToToday: "Go to today",
weekNumberFormatString: "Week number {0}",
prevMonthAriaLabel: "Previous month",
nextMonthAriaLabel: "Next month",
prevYearAriaLabel: "Previous year",
nextYearAriaLabel: "Next year",
prevYearRangeAriaLabel: "Previous year range",
nextYearRangeAriaLabel: "Next year range",
closeButtonAriaLabel: "Close",
selectedDateFormatString: "Selected date {0}",
todayDateFormatString: "Today's date {0}",
monthPickerHeaderAriaLabel: "{0}, change year",
yearPickerHeaderAriaLabel: "{0}, change month",
dayMarkedAriaLabel: "marked"
})
, KNe = 7
, YNe = 12;
function QNe(e, t) {
var n = new Date(e.getTime());
return n.setDate(n.getDate() + t),
n
}
function JNe(e, t) {
return QNe(e, t * KNe)
}
function ZNe(e, t) {
var n = new Date(e.getTime())
, r = n.getMonth() + t;
return n.setMonth(r),
n.getMonth() !== (r % YNe + YNe) % YNe && (n = QNe(n, -n.getDate())),
n
}
function $Ne(e, t) {
var n = new Date(e.getTime());
return n.setFullYear(e.getFullYear() + t),
n.getMonth() !== (e.getMonth() % YNe + YNe) % YNe && (n = QNe(n, -n.getDate())),
n
}
function eze(e) {
return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)
}
function tze(e) {
return new Date(e.getFullYear(),e.getMonth() + 1,0,0,0,0,0)
}
function nze(e, t) {
return ZNe(e, t - e.getMonth())
}
function rze(e, t) {
return !e && !t || !(!e || !t) && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate()
}
function ize(e, t) {
return cze(e) - cze(t)
}
function oze(e, t, n, r, i) {
void 0 === i && (i = 1);
var o, a = [], l = null;
switch (r || (r = [VNe.Monday, VNe.Tuesday, VNe.Wednesday, VNe.Thursday, VNe.Friday]),
i = Math.max(i, 1),
t) {
case HNe.Day:
l = QNe(o = sze(e), i);
break;
case HNe.Week:
case HNe.WorkWeek:
o = function(e, t) {
var n = t - e.getDay();
return n > 0 && (n -= KNe),
QNe(e, n)
}(sze(e), n),
l = QNe(o, KNe);
break;
case HNe.Month:
l = ZNe(o = new Date(e.getFullYear(),e.getMonth(),1), 1);
break;
default:
throw new Error("Unexpected object: " + t)
}
var s = o;
do {
(t !== HNe.WorkWeek || -1 !== r.indexOf(s.getDay())) && a.push(s),
s = QNe(s, 1)
} while (!rze(s, l));
return a
}
function aze(e, t) {
for (var n = 0, r = t; n < r.length; n++)
if (rze(e, r[n]))
return !0;
return !1
}
function lze(e, t, n) {
switch (n) {
case qNe.FirstFullWeek:
return uze(e, t, KNe);
case qNe.FirstFourDayWeek:
return uze(e, t, 4);
default:
return function(e, t) {
var n = dze(e) - 1
, r = (e.getDay() - n % KNe - t + 2 * KNe) % KNe;
return Math.floor((n + r) / KNe + 1)
}(e, t)
}
}
function sze(e) {
return new Date(e.getFullYear(),e.getMonth(),e.getDate())
}
function cze(e) {
return e.getDate() + (e.getMonth() << 5) + (e.getFullYear() << 9)
}
function uze(e, t, n) {
var r = dze(e) - 1
, i = e.getDay() - r % KNe
, o = dze(new Date(e.getFullYear() - 1,WNe.December,31)) - 1
, a = (t - i + 2 * KNe) % KNe;
0 !== a && a >= n && (a -= KNe);
var l = r - a;
return l < 0 && (0 != (a = (t - (i -= o % KNe) + 2 * KNe) % KNe) && a + 1 >= n && (a -= KNe),
l = o - a),
Math.floor(l / KNe + 1)
}
function dze(e) {
for (var t = e.getMonth(), n = e.getFullYear(), r = 0, i = 0; i < t; i++)
r += pze(i + 1, n);
return r + e.getDate()
}
function pze(e, t) {
return new Date(t,e,0).getDate()
}
var hze = function(e, t, n) {
var r = Object(zn.f)(e);
return t && (r = r.filter((function(e) {
return ize(e, t) >= 0
}
))),
n && (r = r.filter((function(e) {
return ize(e, n) <= 0
}
))),
r
}
, fze = function(e, t) {
var n = t.minDate;
return !!n && ize(n, e) >= 1
}
, bze = function(e, t) {
var n = t.maxDate;
return !!n && ize(e, n) >= 1
}
, gze = function(e, t) {
var n = t.restrictedDates
, r = t.minDate
, i = t.maxDate;
return !!(n || r || i) && (n && n.some((function(t) {
return rze(t, e)
}
)) || fze(e, t) || bze(e, t))
}
, mze = function(e) {
var t = e.showWeekNumbers
, n = e.strings
, r = e.firstDayOfWeek
, i = e.allFocusable
, o = e.weeksToShow
, a = e.weeks
, s = e.classNames
, c = n.shortDays.slice()
, u = Vb(a[1], (function(e) {
return 1 === e.originalDate.getDate()
}
));
return 1 === o && u >= 0 && (c[(u + r) % 7] = n.shortMonths[a[1][u].originalDate.getMonth()]),
l.createElement("tr", null, t && l.createElement("th", {
className: s.dayCell
}), c.map((function(e, t) {
var o = (t + r) % 7
, a = t === u ? n.days[o] + " " + c[o] : n.days[o];
return l.createElement("th", {
className: ip(s.dayCell, s.weekDayLabelCell),
scope: "col",
key: c[o] + " " + t,
title: a,
"aria-label": a,
"data-is-focusable": !!i || void 0
}, c[o])
}
)))
}
, vze = function(e) {
var t = e.targetDate
, n = e.initialDate
, r = e.direction
, i = Object(zn.d)(e, ["targetDate", "initialDate", "direction"])
, o = t;
if (!gze(t, i))
return t;
for (; 0 !== ize(n, o) && gze(o, i) && !bze(o, i) && !fze(o, i); )
o = QNe(o, r);
return 0 === ize(n, o) || gze(o, i) ? void 0 : o
}
, yze = function(e) {
var t, n = e.navigatedDate, r = e.dateTimeFormatter, i = e.allFocusable, o = e.strings, a = e.activeDescendantId, s = e.navigatedDayRef, c = e.calculateRoundedStyles, u = e.weeks, d = e.classNames, p = e.day, h = e.dayIndex, f = e.weekIndex, b = e.weekCorners, g = e.ariaHidden, m = e.customDayCellRef, v = e.dateRangeType, y = e.daysToSelectInDayView, x = e.onSelectDate, O = e.restrictedDates, j = e.minDate, k = e.maxDate, w = e.onNavigateDate, C = e.getDayInfosInRangeOfDay, _ = e.getRefsFromDayInfos, M = null !== (t = null == b ? void 0 : b[f + "_" + h]) && void 0 !== t ? t : "", S = rze(n, p.originalDate), A = p.originalDate.getDate() + ", " + o.months[p.originalDate.getMonth()] + ", " + p.originalDate.getFullYear();
return p.isMarked && (A = A + ", " + o.dayMarkedAriaLabel),
l.createElement("td", {
className: ip(d.dayCell, b && M, p.isSelected && d.daySelected, p.isSelected && "ms-CalendarDay-daySelected", !p.isInBounds && d.dayOutsideBounds, !p.isInMonth && d.dayOutsideNavigatedMonth),
ref: function(e) {
null == m || m(e, p.originalDate, d),
p.setRef(e)
},
"aria-hidden": g,
"aria-disabled": !g && !p.isInBounds,
onClick: p.isInBounds && !g ? p.onSelected : void 0,
onMouseOver: g ? void 0 : function(e) {
var t = C(p)
, n = _(t);
n.forEach((function(e, r) {
var i;
if (e && (e.classList.add("ms-CalendarDay-hoverStyle"),
!t[r].isSelected && v === HNe.Day && y && y > 1)) {
e.classList.remove(d.bottomLeftCornerDate, d.bottomRightCornerDate, d.topLeftCornerDate, d.topRightCornerDate);
var o = c(d, !1, !1, r > 0, r < n.length - 1).trim();
o && (i = e.classList).add.apply(i, o.split(" "))
}
}
))
}
,
onMouseDown: g ? void 0 : function(e) {
var t = C(p);
_(t).forEach((function(e) {
e && e.classList.add("ms-CalendarDay-pressedStyle")
}
))
}
,
onMouseUp: g ? void 0 : function(e) {
var t = C(p);
_(t).forEach((function(e) {
e && e.classList.remove("ms-CalendarDay-pressedStyle")
}
))
}
,
onMouseOut: g ? void 0 : function(e) {
var t = C(p)
, n = _(t);
n.forEach((function(e, r) {
var i;
if (e && (e.classList.remove("ms-CalendarDay-hoverStyle"),
e.classList.remove("ms-CalendarDay-pressedStyle"),
!t[r].isSelected && v === HNe.Day && y && y > 1)) {
var o = c(d, !1, !1, r > 0, r < n.length - 1).trim();
o && (i = e.classList).remove.apply(i, o.split(" "))
}
}
))
}
,
onKeyDown: g ? void 0 : function(e) {
e.which === cp ? null == x || x(p.originalDate) : function(e, t) {
var n = void 0
, r = 1;
if (e.which === fp ? (n = JNe(t, -1),
r = -1) : e.which === gp ? n = JNe(t, 1) : e.which === yp(hp) ? (n = QNe(t, -1),
r = -1) : e.which === yp(bp) && (n = QNe(t, 1)),
n) {
var i = {
initialDate: t,
targetDate: n,
direction: r,
restrictedDates: O,
minDate: j,
maxDate: k
}
, o = vze(i);
o || (i.direction = -r,
o = vze(i)),
u && o && u.slice(1, u.length - 1).some((function(e) {
return e.some((function(e) {
return rze(e.originalDate, o)
}
))
}
)) || o && (w(o, !0),
e.preventDefault())
}
}(e, p.originalDate)
}
,
role: "gridcell",
tabIndex: S ? 0 : void 0,
"aria-readonly": "true",
"aria-current": p.isSelected ? "date" : void 0,
"aria-selected": p.isInBounds ? p.isSelected : void 0,
"data-is-focusable": !g && (i || !!p.isInBounds || void 0)
}, l.createElement("button", {
key: p.key + "button",
"aria-hidden": g,
className: ip(d.dayButton, p.isToday && d.dayIsToday, p.isToday && "ms-CalendarDay-dayIsToday"),
"aria-label": A,
id: S ? a : void 0,
ref: S ? s : void 0,
disabled: !g && !p.isInBounds,
type: "button",
tabIndex: -1,
"data-is-focusable": "false"
}, l.createElement("span", {
"aria-hidden": "true"
}, r.formatDay(p.originalDate)), p.isMarked && l.createElement("div", {
"aria-hidden": "true",
className: d.dayMarker
})))
}
, xze = function(e) {
var t = e.classNames
, n = e.week
, r = e.weeks
, i = e.weekIndex
, o = e.rowClassName
, a = e.ariaRole
, s = e.showWeekNumbers
, c = e.firstDayOfWeek
, u = e.firstWeekOfYear
, d = e.navigatedDate
, p = e.strings
, h = s ? function(e, t, n, r) {
var i = r.getFullYear()
, o = r.getMonth()
, a = 1
, l = new Date(i,o,a)
, s = a + (t + KNe - 1) - function(e, t) {
return e !== VNe.Sunday && t < e ? t + KNe : t
}(t, l.getDay())
, c = new Date(i,o,s);
a = c.getDate();
for (var u = [], d = 0; d < e; d++)
u.push(lze(c, t, n)),
a += KNe,
c = new Date(i,o,a);
return u
}(r.length, c, u, d) : null
, f = h ? p.weekNumberFormatString && ZSe(p.weekNumberFormatString, h[i]) : "";
return l.createElement("tr", {
role: a,
className: o,
key: i + "_" + n[0].key
}, s && h && l.createElement("th", {
className: t.weekNumberCell,
key: i,
title: f,
"aria-label": f,
scope: "row"
}, l.createElement("span", null, h[i])), n.map((function(t, n) {
return l.createElement(yze, Object(zn.a)({}, e, {
key: t.key,
day: t,
dayIndex: n
}))
}
)))
}
, Oze = Sg();
function jze(e, t, n) {
return l.useMemo((function() {
for (var r, i = function(e) {
var t, n = e.selectedDate, r = e.dateRangeType, i = e.firstDayOfWeek, o = e.today, a = e.minDate, l = e.maxDate, s = e.weeksToShow, c = e.workWeekDays, u = e.daysToSelectInDayView, d = e.restrictedDates, p = e.markedDays, h = {
minDate: a,
maxDate: l,
restrictedDates: d
}, f = o || new Date, b = e.navigatedDate ? e.navigatedDate : f;
t = s && s <= 4 ? new Date(b.getFullYear(),b.getMonth(),b.getDate()) : new Date(b.getFullYear(),b.getMonth(),1);
for (var g = []; t.getDay() !== i; )
t.setDate(t.getDate() - 1);
t = QNe(t, -7);
var m = !1
, v = function(e, t, n) {
return !t || e !== HNe.WorkWeek || function(e, t, n) {
for (var r = new Set(e), i = 0, o = 0, a = e; o < a.length; o++) {
var l = (a[o] + 1) % 7;
(!r.has(l) || n === l) && i++
}
return i < 2
}(t, 0, n) && 0 !== t.length ? e : HNe.Week
}(r, c, i)
, y = [];
n && (y = oze(n, v, i, c, u),
y = hze(y, a, l));
for (var x = !0, O = 0; x; O++) {
var j = [];
m = !0;
for (var k = function(e) {
var n = new Date(t.getTime())
, r = {
key: t.toString(),
date: t.getDate().toString(),
originalDate: n,
isInMonth: t.getMonth() === b.getMonth(),
isToday: rze(f, t),
isSelected: aze(t, y),
isInBounds: !gze(t, h),
isMarked: (null == p ? void 0 : p.some((function(e) {
return rze(n, e)
}
))) || !1
};
j.push(r),
r.isInMonth && (m = !1),
t.setDate(t.getDate() + 1)
}, w = 0; w < 7; w++)
k();
x = s ? O < s + 1 : !m || 0 === O,
g.push(j)
}
return g
}(e), o = i[1][0].originalDate, a = i[i.length - 1][6].originalDate, l = (null === (r = e.getMarkedDays) || void 0 === r ? void 0 : r.call(e, o, a)) || [], s = [], c = 0; c < i.length; c++) {
for (var u = [], d = function(e) {
var r = i[c][e]
, o = Object(zn.a)(Object(zn.a)({
onSelected: function() {
return t(r.originalDate)
},
setRef: n(r.key)
}, r), {
isMarked: r.isMarked || (null == l ? void 0 : l.some((function(e) {
return rze(r.originalDate, e)
}
)))
});
u.push(o)
}, p = 0; p < 7; p++)
d(p);
s.push(u)
}
return s
}
), [e])
}
var kze, wze = function(e) {
var t = l.useRef(null)
, n = gO()
, r = function() {
var e = l.useRef({});
return [e, function(t) {
return function(n) {
null === n ? delete e.current[t] : e.current[t] = n
}
}
]
}()
, i = r[0]
, o = r[1]
, a = jze(e, (function(t) {
var n, r, i = e.firstDayOfWeek, o = e.minDate, a = e.maxDate, l = e.workWeekDays, s = e.daysToSelectInDayView, c = {
minDate: o,
maxDate: a,
restrictedDates: e.restrictedDates
}, u = oze(t, b, i, l, s);
u = (u = hze(u, o, a)).filter((function(e) {
return !gze(e, c)
}
)),
null === (n = e.onSelectDate) || void 0 === n || n.call(e, t, u),
null === (r = e.onNavigateDate) || void 0 === r || r.call(e, t, !0)
}
), o)
, s = function(e) {
var t = aO(e[0][0].originalDate);
return t && t.getTime() !== e[0][0].originalDate.getTime() ? !(t <= e[0][0].originalDate) : void 0
}(a)
, c = function(e) {
var t = function(e, t, n, r, i) {
var o = []
, a = !t && !i
, l = !n && !r
, s = !n && !i;
return !t && !r && o.push(vp() ? e.topRightCornerDate : e.topLeftCornerDate),
a && o.push(vp() ? e.topLeftCornerDate : e.topRightCornerDate),
l && o.push(vp() ? e.bottomRightCornerDate : e.bottomLeftCornerDate),
s && o.push(vp() ? e.bottomLeftCornerDate : e.bottomRightCornerDate),
o.join(" ")
}
, n = function(t, n, r, i) {
var o = e.dateRangeType
, a = e.firstDayOfWeek
, l = e.workWeekDays
, s = oze(t, o === HNe.WorkWeek ? HNe.Week : o, a, l);
return r === i && (!(!r || !i) || s.filter((function(e) {
return e.getTime() === n.getTime()
}
)).length > 0)
};
return [function(e, r) {
var i = {}
, o = r.slice(1, r.length - 1);
return o.forEach((function(r, a) {
r.forEach((function(r, l) {
var s = o[a - 1] && o[a - 1][l] && n(o[a - 1][l].originalDate, r.originalDate, o[a - 1][l].isSelected, r.isSelected)
, c = o[a + 1] && o[a + 1][l] && n(o[a + 1][l].originalDate, r.originalDate, o[a + 1][l].isSelected, r.isSelected)
, u = o[a][l - 1] && n(o[a][l - 1].originalDate, r.originalDate, o[a][l - 1].isSelected, r.isSelected)
, d = o[a][l + 1] && n(o[a][l + 1].originalDate, r.originalDate, o[a][l + 1].isSelected, r.isSelected)
, p = [];
p.push(t(e, s, c, u, d)),
p.push(function(e, t, n, r, i) {
var o = [];
return t || o.push(e.datesAbove),
n || o.push(e.datesBelow),
r || o.push(vp() ? e.datesRight : e.datesLeft),
i || o.push(vp() ? e.datesLeft : e.datesRight),
o.join(" ")
}(e, s, c, u, d)),
i[a + "_" + l] = p.join(" ")
}
))
}
)),
i
}
, t]
}(e)
, u = c[0]
, d = c[1];
l.useImperativeHandle(e.componentRef, (function() {
return {
focus: function() {
var e, n;
null === (n = null === (e = t.current) || void 0 === e ? void 0 : e.focus) || void 0 === n || n.call(e)
}
}
}
), []);
var p = e.styles
, h = e.theme
, f = e.className
, b = e.dateRangeType
, g = e.showWeekNumbers
, m = e.labelledBy
, v = e.lightenDaysOutsideNavigatedMonth
, y = e.animationDirection
, x = Oze(p, {
theme: h,
className: f,
dateRangeType: b,
showWeekNumbers: g,
lightenDaysOutsideNavigatedMonth: void 0 === v || v,
animationDirection: y,
animateBackwards: s
})
, O = u(x, a)
, j = {
weeks: a,
navigatedDayRef: t,
calculateRoundedStyles: d,
activeDescendantId: n,
classNames: x,
weekCorners: O,
getDayInfosInRangeOfDay: function(t) {
var n = function(e, t) {
if (t && e === HNe.WorkWeek) {
for (var n = t.slice().sort(), r = !0, i = 1; i < n.length; i++)
if (n[i] !== n[i - 1] + 1) {
r = !1;
break
}
if (!r || 0 === t.length)
return HNe.Week
}
return e
}(e.dateRangeType, e.workWeekDays)
, r = oze(t.originalDate, n, e.firstDayOfWeek, e.workWeekDays, e.daysToSelectInDayView).map((function(e) {
return e.getTime()
}
));
return a.reduce((function(e, t) {
return e.concat(t.filter((function(e) {
return -1 !== r.indexOf(e.originalDate.getTime())
}
)))
}
), [])
},
getRefsFromDayInfos: function(e) {
return e.map((function(e) {
return i.current[e.key]
}
))
}
};
return l.createElement(Kv, {
className: x.wrapper
}, l.createElement("table", {
className: x.table,
"aria-multiselectable": "false",
"aria-labelledby": m,
"aria-activedescendant": n,
role: "grid"
}, l.createElement("tbody", null, l.createElement(mze, Object(zn.a)({}, e, {
classNames: x,
weeks: a
})), l.createElement(xze, Object(zn.a)({}, e, j, {
week: a[0],
weekIndex: -1,
rowClassName: x.firstTransitionWeek,
ariaRole: "presentation",
ariaHidden: !0
})), a.slice(1, a.length - 1).map((function(t, n) {
return l.createElement(xze, Object(zn.a)({}, e, j, {
key: n,
week: t,
weekIndex: n,
rowClassName: x.weekRow
}))
}
)), l.createElement(xze, Object(zn.a)({}, e, j, {
week: a[a.length - 1],
weekIndex: -2,
rowClassName: x.lastTransitionWeek,
ariaRole: "presentation",
ariaHidden: !0
})))))
};
wze.displayName = "CalendarDayGridBase",
function(e) {
e[e.Horizontal = 0] = "Horizontal",
e[e.Vertical = 1] = "Vertical"
}(kze || (kze = {}));
var Cze = {
hoverStyle: "ms-CalendarDay-hoverStyle",
pressedStyle: "ms-CalendarDay-pressedStyle",
dayIsTodayStyle: "ms-CalendarDay-dayIsToday",
daySelectedStyle: "ms-CalendarDay-daySelected"
}
, _ze = hr({
"100%": {
width: 0,
height: 0,
overflow: "hidden"
},
"99.9%": {
width: "100%",
height: 28,
overflow: "visible"
},
"0%": {
width: "100%",
height: 28,
overflow: "visible"
}
})
, Mze = jg(wze, (function(e) {
var t, n, r, i, o, a, l, s, c, u, d = e.theme, p = e.dateRangeType, h = e.showWeekNumbers, f = e.lightenDaysOutsideNavigatedMonth, b = e.animateBackwards, g = e.animationDirection, m = d.palette, v = Vi(Cze, d), y = {};
void 0 !== b && (y = g === kze.Horizontal ? b ? ii.slideRightIn20 : ii.slideLeftIn20 : b ? ii.slideDownIn20 : ii.slideUpIn20);
var x = {}
, O = {};
void 0 !== b && g !== kze.Horizontal && (x = b ? {
animationName: ""
} : ii.slideUpOut20,
O = b ? ii.slideDownOut20 : {
animationName: ""
});
var j = {
selectors: {
"&, &:disabled, & button": {
color: m.neutralTertiaryAlt,
pointerEvents: "none"
}
}
};
return {
wrapper: {
paddingBottom: 10
},
table: [{
textAlign: "center",
borderCollapse: "collapse",
borderSpacing: "0",
tableLayout: "fixed",
fontSize: "inherit",
marginTop: 4,
width: 196,
position: "relative",
paddingBottom: 10
}, h && {
width: 226
}],
dayCell: {
margin: 0,
padding: 0,
width: 28,
height: 28,
lineHeight: 28,
fontSize: fi.small,
fontWeight: bi.regular,
color: m.neutralPrimary,
cursor: "pointer",
position: "relative",
selectors: (t = {},
t[vi] = Object(zn.a)({
color: "WindowText",
backgroundColor: "Window",
zIndex: 0
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t["&." + v.hoverStyle] = {
backgroundColor: m.neutralLighter,
selectors: (n = {},
n[vi] = {
zIndex: 3,
backgroundColor: "Window",
outline: "1px solid Highlight"
},
n)
},
t["&." + v.pressedStyle] = {
backgroundColor: m.neutralLight,
selectors: (r = {},
r[vi] = {
borderColor: "Highlight",
color: "Highlight",
backgroundColor: "Window"
},
r)
},
t["&." + v.pressedStyle + "." + v.hoverStyle] = {
selectors: (i = {},
i[vi] = {
backgroundColor: "Window",
outline: "1px solid Highlight"
},
i)
},
t)
},
daySelected: [p !== HNe.Month && {
backgroundColor: m.neutralLight + "!important",
selectors: (o = {
"&:after": {
content: '""',
position: "absolute",
top: 0,
bottom: 0,
left: 0,
right: 0
}
},
o["&:hover, &." + v.hoverStyle + ", &." + v.pressedStyle] = (a = {
backgroundColor: m.neutralLight + "!important"
},
a[vi] = {
color: "HighlightText!important",
background: "Highlight!important"
},
a),
o[vi] = Object(zn.a)({
background: "Highlight!important",
color: "HighlightText!important",
borderColor: "Highlight!important"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
o)
}],
weekRow: y,
weekDayLabelCell: ii.fadeIn200,
weekNumberCell: {
margin: 0,
padding: 0,
borderRight: "1px solid",
borderColor: m.neutralLight,
backgroundColor: m.neutralLighterAlt,
color: m.neutralSecondary,
boxSizing: "border-box",
width: 28,
height: 28,
fontWeight: bi.regular,
fontSize: fi.small
},
dayOutsideBounds: j,
dayOutsideNavigatedMonth: f && {
color: m.neutralSecondary,
fontWeight: bi.regular
},
dayButton: [Mi(d, {
inset: -3
}), {
width: 24,
height: 24,
lineHeight: 24,
fontSize: fi.small,
fontWeight: "inherit",
borderRadius: 2,
border: "none",
padding: 0,
color: "inherit",
backgroundColor: "transparent",
cursor: "pointer",
overflow: "visible",
selectors: {
span: {
height: "inherit",
lineHeight: "inherit"
}
}
}],
dayIsToday: {
backgroundColor: m.themePrimary + "!important",
borderRadius: "100%",
color: m.white + "!important",
fontWeight: bi.semibold + "!important",
selectors: (l = {},
l[vi] = Object(zn.a)({
background: "WindowText!important",
color: "Window!important",
borderColor: "WindowText!important"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
l)
},
firstTransitionWeek: Object(zn.a)(Object(zn.a)({
position: "absolute",
opacity: 0,
width: 0,
height: 0,
overflow: "hidden"
}, x), {
animationName: x.animationName + "," + _ze
}),
lastTransitionWeek: Object(zn.a)(Object(zn.a)({
position: "absolute",
opacity: 0,
width: 0,
height: 0,
overflow: "hidden",
marginTop: -28
}, O), {
animationName: O.animationName + "," + _ze
}),
dayMarker: {
width: 4,
height: 4,
backgroundColor: m.neutralSecondary,
borderRadius: "100%",
bottom: 1,
left: 0,
right: 0,
position: "absolute",
margin: "auto",
selectors: (s = {},
s["." + v.dayIsTodayStyle + " &"] = {
backgroundColor: m.white,
selectors: (c = {},
c[vi] = {
backgroundColor: "Window"
},
c)
},
s["." + v.daySelectedStyle + " &"] = {
selectors: (u = {},
u[vi] = {
backgroundColor: "HighlightText"
},
u)
},
s[vi] = Object(zn.a)({
backgroundColor: "WindowText"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
s)
},
topRightCornerDate: {
borderTopRightRadius: "2px"
},
topLeftCornerDate: {
borderTopLeftRadius: "2px"
},
bottomRightCornerDate: {
borderBottomRightRadius: "2px"
},
bottomLeftCornerDate: {
borderBottomLeftRadius: "2px"
},
datesAbove: {
"&:after": {
borderTop: "1px solid " + m.neutralSecondary
}
},
datesBelow: {
"&:after": {
borderBottom: "1px solid " + m.neutralSecondary
}
},
datesLeft: {
"&:after": {
borderLeft: "1px solid " + m.neutralSecondary
}
},
datesRight: {
"&:after": {
borderRight: "1px solid " + m.neutralSecondary
}
}
}
}
), void 0, {
scope: "CalendarDayGrid"
})
, Sze = Sg()
, Aze = function(e) {
var t = l.useRef(null);
l.useImperativeHandle(e.componentRef, (function() {
return {
focus: function() {
var e, n;
null === (n = null === (e = t.current) || void 0 === e ? void 0 : e.focus) || void 0 === n || n.call(e)
}
}
}
), []);
var n = e.strings
, r = e.navigatedDate
, i = e.dateTimeFormatter
, o = e.styles
, a = e.theme
, s = e.className
, c = e.onHeaderSelect
, u = e.showSixWeeksByDefault
, d = e.minDate
, p = e.maxDate
, h = e.restrictedDates
, f = e.onNavigateDate
, b = e.showWeekNumbers
, g = e.dateRangeType
, m = e.animationDirection
, v = gO()
, y = Sze(o, {
theme: a,
className: s,
headerIsClickable: !!c,
showWeekNumbers: b,
animationDirection: m
})
, x = i.formatMonthYear(r, n)
, O = c ? "button" : "div"
, j = n.yearPickerHeaderAriaLabel ? ZSe(n.yearPickerHeaderAriaLabel, x) : x;
return l.createElement("div", {
className: y.root
}, l.createElement("div", {
className: y.header
}, l.createElement(O, {
"aria-live": "polite",
"aria-atomic": "true",
"aria-label": c ? j : void 0,
key: x,
className: y.monthAndYear,
onClick: c,
"data-is-focusable": !!c,
tabIndex: c ? 0 : -1,
onKeyDown: Eze(c),
type: "button"
}, l.createElement("span", {
id: v
}, x)), l.createElement(Tze, Object(zn.a)({}, e, {
classNames: y
}))), l.createElement(Mze, Object(zn.a)({}, e, {
styles: o,
componentRef: t,
strings: n,
navigatedDate: r,
weeksToShow: u ? 6 : void 0,
dateTimeFormatter: i,
minDate: d,
maxDate: p,
restrictedDates: h,
onNavigateDate: f,
labelledBy: v,
dateRangeType: g
})))
};
Aze.displayName = "CalendarDayBase";
var Tze = function(e) {
var t, n, r = e.minDate, i = e.maxDate, o = e.navigatedDate, a = e.allFocusable, s = e.strings, c = e.navigationIcons, u = e.showCloseButton, d = e.classNames, p = e.onNavigateDate, h = e.onDismiss, f = function() {
p(ZNe(o, 1), !1)
}, b = function() {
p(ZNe(o, -1), !1)
}, g = c.leftNavigation, m = c.rightNavigation, v = c.closeIcon, y = !r || ize(r, eze(o)) < 0, x = !i || ize(tze(o), i) < 0;
return l.createElement("div", {
className: d.monthComponents
}, l.createElement("button", {
className: ip(d.headerIconButton, (t = {},
t[d.disabledStyle] = !y,
t)),
tabIndex: y ? void 0 : a ? 0 : -1,
"aria-disabled": !y,
onClick: y ? b : void 0,
onKeyDown: y ? Eze(b) : void 0,
title: s.prevMonthAriaLabel ? s.prevMonthAriaLabel + " " + s.months[ZNe(o, -1).getMonth()] : void 0,
type: "button"
}, l.createElement(Pg, {
iconName: g
})), l.createElement("button", {
className: ip(d.headerIconButton, (n = {},
n[d.disabledStyle] = !x,
n)),
tabIndex: x ? void 0 : a ? 0 : -1,
"aria-disabled": !x,
onClick: x ? f : void 0,
onKeyDown: x ? Eze(f) : void 0,
title: s.nextMonthAriaLabel ? s.nextMonthAriaLabel + " " + s.months[ZNe(o, 1).getMonth()] : void 0,
type: "button"
}, l.createElement(Pg, {
iconName: m
})), u && l.createElement("button", {
className: ip(d.headerIconButton),
onClick: h,
onKeyDown: Eze(h),
title: s.closeButtonAriaLabel,
type: "button"
}, l.createElement(Pg, {
iconName: v
})))
};
Tze.displayName = "CalendarDayNavigationButtons";
var Eze = function(e) {
return function(t) {
t.which === cp && (null == e || e())
}
}
, Ize = jg(Aze, (function(e) {
var t, n = e.className, r = e.theme, i = e.headerIsClickable, o = e.showWeekNumbers, a = r.palette, l = {
selectors: (t = {
"&, &:disabled, & button": {
color: a.neutralTertiaryAlt,
pointerEvents: "none"
}
},
t[vi] = {
color: "GrayText",
forcedColorAdjust: "none"
},
t)
};
return {
root: [Oo, {
width: 196,
padding: 12,
boxSizing: "content-box"
}, o && {
width: 226
}, n],
header: {
position: "relative",
display: "inline-flex",
height: 28,
lineHeight: 44,
width: "100%"
},
monthAndYear: [Mi(r, {
inset: 1
}), Object(zn.a)(Object(zn.a)({}, ii.fadeIn200), {
alignItems: "center",
fontSize: fi.medium,
fontFamily: "inherit",
color: a.neutralPrimary,
display: "inline-block",
flexGrow: 1,
fontWeight: bi.semibold,
padding: "0 4px 0 10px",
border: "none",
backgroundColor: "transparent",
borderRadius: 2,
lineHeight: 28,
overflow: "hidden",
whiteSpace: "nowrap",
textAlign: "left",
textOverflow: "ellipsis"
}), i && {
selectors: {
"&:hover": {
cursor: "pointer",
background: a.neutralLight,
color: a.black
}
}
}],
monthComponents: {
display: "inline-flex",
alignSelf: "flex-end"
},
headerIconButton: [Mi(r, {
inset: -1
}), {
width: 28,
height: 28,
display: "block",
textAlign: "center",
lineHeight: 28,
fontSize: fi.small,
fontFamily: "inherit",
color: a.neutralPrimary,
borderRadius: 2,
position: "relative",
backgroundColor: "transparent",
border: "none",
padding: 0,
overflow: "visible",
selectors: {
"&:hover": {
color: a.neutralDark,
backgroundColor: a.neutralLight,
cursor: "pointer",
outline: "1px solid transparent"
}
}
}],
disabledStyle: l
}
}
), void 0, {
scope: "CalendarDay"
})
, Nze = function(e) {
var t, n, r, i, o, a, l, s = e.className, c = e.theme, u = e.hasHeaderClickCallback, d = e.highlightCurrent, p = e.highlightSelected, h = e.animateBackwards, f = e.animationDirection, b = c.palette, g = {};
void 0 !== h && (g = f === kze.Horizontal ? h ? ii.slideRightIn20 : ii.slideLeftIn20 : h ? ii.slideDownIn20 : ii.slideUpIn20);
var m = void 0 !== h ? ii.fadeIn200 : {};
return {
root: [Oo, {
width: 196,
padding: 12,
boxSizing: "content-box",
overflow: "hidden"
}, s],
headerContainer: {
display: "flex"
},
currentItemButton: [Mi(c, {
inset: -1
}), Object(zn.a)(Object(zn.a)({}, m), {
fontSize: fi.medium,
fontWeight: bi.semibold,
fontFamily: "inherit",
textAlign: "left",
backgroundColor: "transparent",
flexGrow: 1,
padding: "0 4px 0 10px",
border: "none",
overflow: "visible"
}), u && {
selectors: {
"&:hover, &:active": {
cursor: u ? "pointer" : "default",
color: b.neutralDark,
outline: "1px solid transparent",
backgroundColor: b.neutralLight
}
}
}],
navigationButtonsContainer: {
display: "flex",
alignItems: "center"
},
navigationButton: [Mi(c, {
inset: -1
}), {
fontFamily: "inherit",
width: 28,
minWidth: 28,
height: 28,
minHeight: 28,
display: "block",
textAlign: "center",
lineHeight: 28,
fontSize: fi.small,
color: b.neutralPrimary,
borderRadius: 2,
position: "relative",
backgroundColor: "transparent",
border: "none",
padding: 0,
overflow: "visible",
selectors: {
"&:hover": {
color: b.neutralDark,
cursor: "pointer",
outline: "1px solid transparent",
backgroundColor: b.neutralLight
}
}
}],
gridContainer: {
marginTop: 4
},
buttonRow: Object(zn.a)(Object(zn.a)({}, g), {
marginBottom: 16,
selectors: {
"&:nth-child(n + 3)": {
marginBottom: 0
}
}
}),
itemButton: [Mi(c, {
inset: -1
}), {
width: 40,
height: 40,
minWidth: 40,
minHeight: 40,
lineHeight: 40,
fontSize: fi.small,
fontFamily: "inherit",
padding: 0,
margin: "0 12px 0 0",
color: b.neutralPrimary,
backgroundColor: "transparent",
border: "none",
borderRadius: 2,
overflow: "visible",
selectors: {
"&:nth-child(4n + 4)": {
marginRight: 0
},
"&:nth-child(n + 9)": {
marginBottom: 0
},
"& div": {
fontWeight: bi.regular
},
"&:hover": {
color: b.neutralDark,
backgroundColor: b.neutralLight,
cursor: "pointer",
outline: "1px solid transparent",
selectors: (t = {},
t[vi] = Object(zn.a)({
background: "Window",
color: "WindowText",
outline: "1px solid Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
t)
},
"&:active": {
backgroundColor: b.themeLight,
selectors: (n = {},
n[vi] = Object(zn.a)({
background: "Window",
color: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
n)
}
}
}],
current: d ? {
color: b.white,
backgroundColor: b.themePrimary,
selectors: (r = {
"& div": {
fontWeight: bi.semibold
},
"&:hover": {
backgroundColor: b.themePrimary,
selectors: (i = {},
i[vi] = Object(zn.a)({
backgroundColor: "WindowText",
color: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
i)
}
},
r[vi] = Object(zn.a)({
backgroundColor: "WindowText",
color: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
r)
} : {},
selected: p ? {
color: b.neutralPrimary,
backgroundColor: b.themeLight,
fontWeight: bi.semibold,
selectors: (o = {
"& div": {
fontWeight: bi.semibold
},
"&:hover, &:active": {
backgroundColor: b.themeLight,
selectors: (a = {},
a[vi] = Object(zn.a)({
color: "Window",
background: "Highlight"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
a)
}
},
o[vi] = Object(zn.a)({
background: "Highlight",
color: "Window"
}, {
forcedColorAdjust: "none",
MsHighContrastAdjust: "none"
}),
o)
} : {},
disabled: {
selectors: (l = {
"&, &:disabled, & button": {
color: b.neutralTertiaryAlt,
pointerEvents: "none"
}
},
l[vi] = {
color: "GrayText",
forcedColorAdjust: "none"
},
l)
}
}
}
, zze = function(e) {
return Nze(e)
}
, Dze = GNe
, Lze = {
leftNavigation: "Up",
rightNavigation: "Down",
closeIcon: "CalculatorMultiply"
}
, Rze = Sg()
, Pze = {
prevRangeAriaLabel: void 0,
nextRangeAriaLabel: void 0
}
, Bze = function(e) {
var t, n, r = e.styles, i = e.theme, o = e.className, a = e.highlightCurrentYear, s = e.highlightSelectedYear, c = e.year, u = e.selected, d = e.disabled, p = e.componentRef, h = e.onSelectYear, f = e.onRenderYear, b = l.useRef(null);
l.useImperativeHandle(p, (function() {
return {
focus: function() {
var e, t;
null === (t = null === (e = b.current) || void 0 === e ? void 0 : e.focus) || void 0 === t || t.call(e)
}
}
}
), []);
var g = Rze(r, {
theme: i,
className: o,
highlightCurrent: a,
highlightSelected: s
});
return l.createElement("button", {
className: ip(g.itemButton, (t = {},
t[g.selected] = u,
t[g.disabled] = d,
t)),
type: "button",
role: "gridcell",
onClick: d ? void 0 : function() {
null == h || h(c)
}
,
onKeyDown: d ? void 0 : function(e) {
e.which === cp && (null == h || h(c))
}
,
disabled: d,
"aria-selected": u,
ref: b
}, null !== (n = null == f ? void 0 : f(c)) && void 0 !== n ? n : c)
};
Bze.displayName = "CalendarYearGridCell";
var Fze, Vze = function(e) {
var t = e.styles
, n = e.theme
, r = e.className
, i = e.fromYear
, o = e.toYear
, a = e.animationDirection
, s = e.animateBackwards
, c = e.minYear
, u = e.maxYear
, d = e.onSelectYear
, p = e.selectedYear
, h = e.componentRef
, f = l.useRef(null)
, b = l.useRef(null);
l.useImperativeHandle(h, (function() {
return {
focus: function() {
var e, t;
null === (t = null === (e = f.current || b.current) || void 0 === e ? void 0 : e.focus) || void 0 === t || t.call(e)
}
}
}
), []);
for (var g = function(t) {
var r = t === p
, i = void 0 !== c && t < c || void 0 !== u && t > u
, o = t === (new Date).getFullYear();
return l.createElement(Bze, Object(zn.a)({}, e, {
key: t,
year: t,
selected: r,
current: o,
disabled: i,
onSelectYear: d,
componentRef: r ? f : o ? b : void 0,
theme: n
}))
}, m = Rze(t, {
theme: n,
className: r,
animateBackwards: s,
animationDirection: a
}), v = function(t) {
var n, r;
return null !== (r = null === (n = e.onRenderYear) || void 0 === n ? void 0 : n.call(e, t)) && void 0 !== r ? r : t
}, y = v(i) + " - " + v(o), x = i, O = [], j = 0; j < (o - i + 1) / 4; j++) {
O.push([]);
for (var k = 0; k < 4; k++)
O[j].push(g(x)),
x++
}
return l.createElement(Kv, null, l.createElement("div", {
className: m.gridContainer,
role: "grid",
"aria-label": y
}, O.map((function(e, t) {
return l.createElement("div", {
key: "yearPickerRow_" + t + "_" + i,
role: "row",
className: m.buttonRow
}, e)
}
))))
};
Vze.displayName = "CalendarYearGrid",
function(e) {
e[e.Previous = 0] = "Previous",
e[e.Next = 1] = "Next"
}(Fze || (Fze = {}));
var Wze = function(e) {
var t, n = e.styles, r = e.theme, i = e.className, o = e.navigationIcons, a = void 0 === o ? Lze : o, s = e.strings, c = void 0 === s ? Pze : s, u = e.direction, d = e.onSelectPrev, p = e.onSelectNext, h = e.fromYear, f = e.toYear, b = e.maxYear, g = e.minYear, m = Rze(n, {
theme: r,
className: i
}), v = u === Fze.Previous ? c.prevRangeAriaLabel : c.nextRangeAriaLabel, y = u === Fze.Previous ? -12 : 12, x = v ? "string" == typeof v ? v : v({
fromYear: h + y,
toYear: f + y
}) : void 0, O = u === Fze.Previous ? void 0 !== g && h < g : void 0 !== b && e.fromYear + 12 > b, j = function() {
u === Fze.Previous ? null == d || d() : null == p || p()
}, k = vp() ? u === Fze.Next : u === Fze.Previous;
return l.createElement("button", {
className: ip(m.navigationButton, (t = {},
t[m.disabled] = O,
t)),
onClick: O ? void 0 : j,
onKeyDown: O ? void 0 : function(e) {
e.which === cp && j()
}
,
type: "button",
title: x,
disabled: O
}, l.createElement(Pg, {
iconName: k ? a.leftNavigation : a.rightNavigation
}))
};
Wze.displayName = "CalendarYearNavArrow";
var qze = function(e) {
var t = e.styles
, n = e.theme
, r = e.className
, i = Rze(t, {
theme: n,
className: r
});
return l.createElement("div", {
className: i.navigationButtonsContainer
}, l.createElement(Wze, Object(zn.a)({}, e, {
direction: Fze.Previous
})), l.createElement(Wze, Object(zn.a)({}, e, {
direction: Fze.Next
})))
};
qze.displayName = "CalendarYearNav";
var Hze = function(e) {
var t = e.styles
, n = e.theme
, r = e.className
, i = e.fromYear
, o = e.toYear
, a = e.strings
, s = void 0 === a ? Pze : a
, c = e.animateBackwards
, u = e.animationDirection
, d = function() {
var t;
null === (t = e.onHeaderSelect) || void 0 === t || t.call(e, !0)
}
, p = function(t) {
var n, r;
return null !== (r = null === (n = e.onRenderYear) || void 0 === n ? void 0 : n.call(e, t)) && void 0 !== r ? r : t
}
, h = Rze(t, {
theme: n,
className: r,
hasHeaderClickCallback: !!e.onHeaderSelect,
animateBackwards: c,
animationDirection: u
});
if (e.onHeaderSelect) {
var f = s.rangeAriaLabel
, b = s.headerAriaLabelFormatString
, g = f ? "string" == typeof f ? f : f(e) : void 0
, m = b ? ZSe(b, g) : g;
return l.createElement("button", {
className: h.currentItemButton,
onClick: d,
onKeyDown: function(e) {
e.which !== cp && e.which !== pp || d()
},
"aria-label": m,
role: "button",
type: "button",
"aria-atomic": !0,
"aria-live": "polite"
}, p(i), " - ", p(o))
}
return l.createElement("div", {
className: h.current
}, p(i), " - ", p(o))
};
Hze.displayName = "CalendarYearTitle";
var Uze, Xze = function(e) {
var t, n = e.styles, r = e.theme, i = e.className, o = e.animateBackwards, a = e.animationDirection, s = e.onRenderTitle, c = Rze(n, {
theme: r,
className: i,
hasHeaderClickCallback: !!e.onHeaderSelect,
animateBackwards: o,
animationDirection: a
});
return l.createElement("div", {
className: c.headerContainer
}, null !== (t = null == s ? void 0 : s(e)) && void 0 !== t ? t : l.createElement(Hze, Object(zn.a)({}, e)), l.createElement(qze, Object(zn.a)({}, e)))
};
Xze.displayName = "CalendarYearHeader",
function(e) {
e[e.Previous = 0] = "Previous",
e[e.Next = 1] = "Next"
}(Uze || (Uze = {}));
var Gze = function(e) {
var t = function(e) {
var t = e.selectedYear
, n = e.navigatedYear
, r = t || n || (new Date).getFullYear()
, i = 10 * Math.floor(r / 10)
, o = aO(i);
return o && o !== i ? o > i : void 0
}(e)
, n = function(e) {
var t = e.selectedYear
, n = e.navigatedYear
, r = l.useReducer((function(e, t) {
return e + (t === Uze.Next ? 12 : -12)
}
), void 0, (function() {
var e = t || n || (new Date).getFullYear();
return 10 * Math.floor(e / 10)
}
))
, i = r[0]
, o = r[1];
return [i, i + 12 - 1, function() {
return o(Uze.Next)
}
, function() {
return o(Uze.Previous)
}
]
}(e)
, r = n[0]
, i = n[1]
, o = n[2]
, a = n[3]
, s = l.useRef(null);
l.useImperativeHandle(e.componentRef, (function() {
return {
focus: function() {
var e, t;
null === (t = null === (e = s.current) || void 0 === e ? void 0 : e.focus) || void 0 === t || t.call(e)
}
}
}
));
var c = e.styles
, u = e.theme
, d = e.className
, p = Rze(c, {
theme: u,
className: d
});
return l.createElement("div", {
className: p.root
}, l.createElement(Xze, Object(zn.a)({}, e, {
fromYear: r,
toYear: i,
onSelectPrev: a,
onSelectNext: o,
animateBackwards: t
})), l.createElement(Vze, Object(zn.a)({}, e, {
fromYear: r,
toYear: i,
animateBackwards: t,
componentRef: s
})))
};
Gze.displayName = "CalendarYearBase";
var Kze = jg(Gze, (function(e) {
return Nze(e)
}
), void 0, {
scope: "CalendarYear"
})
, Yze = Sg()
, Qze = {
styles: zze,
strings: void 0,
navigationIcons: Lze,
dateTimeFormatter: XNe,
yearPickerHidden: !1
}
, Jze = function(e) {
var t, n, r = hy(Qze, e), i = function(e) {
var t = e.componentRef
, n = l.useRef(null)
, r = l.useRef(null)
, i = l.useRef(!1)
, o = l.useCallback((function() {
r.current ? r.current.focus() : n.current && n.current.focus()
}
), []);
return l.useImperativeHandle(t, (function() {
return {
focus: o
}
}
), [o]),
l.useEffect((function() {
i.current && (o(),
i.current = !1)
}
)),
[n, r, function() {
i.current = !0
}
]
}(r), o = i[0], a = i[1], s = i[2], c = l.useState(!1), u = c[0], d = c[1], p = function(e) {
var t = e.navigatedDate.getFullYear()
, n = aO(t);
return void 0 === n || n === t ? void 0 : n > t
}(r), h = r.navigatedDate, f = r.selectedDate, b = r.strings, g = r.today, m = void 0 === g ? new Date : g, v = r.navigationIcons, y = r.dateTimeFormatter, x = r.minDate, O = r.maxDate, j = r.theme, k = r.styles, w = r.className, C = r.allFocusable, _ = r.highlightCurrentMonth, M = r.highlightSelectedMonth, S = r.animationDirection, A = r.yearPickerHidden, T = r.onNavigateDate, E = function(e) {
return function() {
return z(e)
}
}, I = function() {
T($Ne(h, 1), !1)
}, N = function() {
T($Ne(h, -1), !1)
}, z = function(e) {
var t;
null === (t = r.onHeaderSelect) || void 0 === t || t.call(r),
T(nze(h, e), !0)
}, D = function() {
var e;
A ? null === (e = r.onHeaderSelect) || void 0 === e || e.call(r) : (s(),
d(!0))
}, L = v.leftNavigation, R = v.rightNavigation, P = y, B = !x || ize(x, new Date(h.getFullYear(),0,1,0,0,0,0)) < 0, F = !O || ize(function(e) {
return new Date(e.getFullYear() + 1,0,0,0,0,0,0)
}(h), O) < 0, V = Yze(k, {
theme: j,
className: w,
hasHeaderClickCallback: !!r.onHeaderSelect || !A,
highlightCurrent: _,
highlightSelected: M,
animateBackwards: p,
animationDirection: S
});
if (u) {
var W = function(e) {
var t = e.strings
, n = e.navigatedDate
, r = e.dateTimeFormatter
, i = function(e) {
if (r) {
var t = new Date(n.getTime());
return t.setFullYear(e),
r.formatYear(t)
}
return String(e)
}
, o = function(e) {
return i(e.fromYear) + " - " + i(e.toYear)
};
return [i, {
rangeAriaLabel: o,
prevRangeAriaLabel: function(e) {
return t.prevYearRangeAriaLabel ? t.prevYearRangeAriaLabel + " " + o(e) : ""
},
nextRangeAriaLabel: function(e) {
return t.nextYearRangeAriaLabel ? t.nextYearRangeAriaLabel + " " + o(e) : ""
},
headerAriaLabelFormatString: t.yearPickerHeaderAriaLabel
}]
}(r)
, q = W[0]
, H = W[1];
return l.createElement(Kze, {
key: "calendarYear",
minYear: x ? x.getFullYear() : void 0,
maxYear: O ? O.getFullYear() : void 0,
onSelectYear: function(e) {
if (s(),
h.getFullYear() !== e) {
var t = new Date(h.getTime());
t.setFullYear(e),
O && t > O ? t = nze(t, O.getMonth()) : x && t < x && (t = nze(t, x.getMonth())),
T(t, !0)
}
d(!1)
},
navigationIcons: v,
onHeaderSelect: function(e) {
s(),
d(!1)
},
selectedYear: f ? f.getFullYear() : h ? h.getFullYear() : void 0,
onRenderYear: q,
strings: H,
componentRef: a,
styles: k,
highlightCurrentYear: _,
highlightSelectedYear: M,
animationDirection: S
})
}
for (var U = [], X = 0; X < b.shortMonths.length / 4; X++)
U.push(X);
var G = P.formatYear(h)
, K = b.monthPickerHeaderAriaLabel ? ZSe(b.monthPickerHeaderAriaLabel, G) : G;
return l.createElement("div", {
className: V.root
}, l.createElement("div", {
className: V.headerContainer
}, l.createElement("button", {
className: V.currentItemButton,
onClick: D,
onKeyDown: $ze(D),
"aria-label": K,
"data-is-focusable": !!r.onHeaderSelect || !A,
tabIndex: r.onHeaderSelect || !A ? 0 : -1,
type: "button",
"aria-atomic": !0,
"aria-live": "polite"
}, G), l.createElement("div", {
className: V.navigationButtonsContainer
}, l.createElement("button", {
className: ip(V.navigationButton, (t = {},
t[V.disabled] = !B,
t)),
"aria-disabled": !B,
tabIndex: B ? void 0 : C ? 0 : -1,
onClick: B ? N : void 0,
onKeyDown: B ? $ze(N) : void 0,
title: b.prevYearAriaLabel ? b.prevYearAriaLabel + " " + P.formatYear($Ne(h, -1)) : void 0,
type: "button"
}, l.createElement(Pg, {
iconName: vp() ? R : L
})), l.createElement("button", {
className: ip(V.navigationButton, (n = {},
n[V.disabled] = !F,
n)),
"aria-disabled": !F,
tabIndex: F ? void 0 : C ? 0 : -1,
onClick: F ? I : void 0,
onKeyDown: F ? $ze(I) : void 0,
title: b.nextYearAriaLabel ? b.nextYearAriaLabel + " " + P.formatYear($Ne(h, 1)) : void 0,
type: "button"
}, l.createElement(Pg, {
iconName: vp() ? L : R
})))), l.createElement(Kv, null, l.createElement("div", {
className: V.gridContainer,
role: "grid",
"aria-label": G
}, U.map((function(e) {
var t = b.shortMonths.slice(4 * e, 4 * (e + 1));
return l.createElement("div", {
key: "monthRow_" + e + h.getFullYear(),
role: "row",
className: V.buttonRow
}, t.map((function(t, n) {
var r, i = 4 * e + n, a = nze(h, i), s = h.getMonth() === i, c = f.getMonth() === i, u = f.getFullYear() === h.getFullYear(), d = (!x || ize(x, tze(a)) < 1) && (!O || ize(eze(a), O) < 1);
return l.createElement("button", {
ref: s ? o : void 0,
role: "gridcell",
className: ip(V.itemButton, (r = {},
r[V.current] = _ && Zze(i, h.getFullYear(), m),
r[V.selected] = M && c && u,
r[V.disabled] = !d,
r)),
disabled: !C && !d,
key: i,
onClick: d ? E(i) : void 0,
onKeyDown: d ? $ze(E(i)) : void 0,
"aria-label": P.formatMonth(a, b),
"aria-selected": s,
"data-is-focusable": !!d || void 0,
type: "button"
}, t)
}
)))
}
)))))
};
function Zze(e, t, n) {
return n.getFullYear() === t && n.getMonth() === e
}
function $ze(e) {
return function(t) {
t.which === cp && e()
}
}
Jze.displayName = "CalendarMonthBase";
var eDe = jg(Jze, zze, void 0, {
scope: "CalendarMonth"
})
, tDe = Sg()
, nDe = [VNe.Monday, VNe.Tuesday, VNe.Wednesday, VNe.Thursday, VNe.Friday]
, rDe = {
isMonthPickerVisible: !0,
isDayPickerVisible: !0,
showMonthPickerAsOverlay: !1,
today: new Date,
firstDayOfWeek: VNe.Sunday,
dateRangeType: HNe.Day,
showGoToToday: !0,
strings: GNe,
highlightCurrentMonth: !1,
highlightSelectedMonth: !1,
navigationIcons: Lze,
showWeekNumbers: !1,
firstWeekOfYear: qNe.FirstDay,
dateTimeFormatter: XNe,
showSixWeeksByDefault: !1,
workWeekDays: nDe,
showCloseButton: !1,
allFocusable: !1
}
, iDe = l.forwardRef((function(e, t) {
var n = hy(rDe, e)
, r = function(e) {
var t = e.value
, n = e.today
, r = void 0 === n ? new Date : n
, i = e.onSelectDate
, o = _C(t, r)
, a = o[0]
, s = void 0 === a ? r : a
, c = o[1]
, u = l.useState(t)
, d = u[0]
, p = void 0 === d ? r : d
, h = u[1]
, f = l.useState(t)
, b = f[0]
, g = void 0 === b ? r : b
, m = f[1]
, v = l.useState(t)
, y = v[0]
, x = void 0 === y ? r : y
, O = v[1];
return t && x.valueOf() !== t.valueOf() && (h(t),
m(t),
O(t)),
[s, p, g, function(e, t) {
m(e),
h(e),
c(e),
null == i || i(e, t)
}
, function(e) {
m(e),
h(e)
}
, function(e) {
m(e)
}
]
}(n)
, i = r[0]
, o = r[1]
, a = r[2]
, s = r[3]
, c = r[4]
, u = r[5]
, d = function(e) {
var t = _C(oDe(e) ? void 0 : e.isMonthPickerVisible, !1)
, n = t[0]
, r = void 0 === n || n
, i = t[1]
, o = _C(oDe(e) ? void 0 : e.isDayPickerVisible, !0)
, a = o[0]
, l = void 0 === a || a
, s = o[1];
return [r, l, function() {
i(!r),
s(!l)
}
]
}(n)
, p = d[0]
, h = d[1]
, f = d[2]
, b = function(e, t, n) {
var r = e.componentRef
, i = l.useRef(null)
, o = l.useRef(null)
, a = l.useRef(!1)
, s = l.useCallback((function() {
t && i.current ? ay(i.current) : n && o.current && ay(o.current)
}
), [t, n]);
return l.useImperativeHandle(r, (function() {
return {
focus: s
}
}
), [s]),
l.useEffect((function() {
a.current && (s(),
a.current = !1)
}
)),
[i, o, function() {
a.current = !0
}
]
}(n, h, p)
, g = b[0]
, m = b[1]
, v = b[2]
, y = function() {
var e = _;
return e && q && (e = o.getFullYear() !== q.getFullYear() || o.getMonth() !== q.getMonth() || a.getFullYear() !== q.getFullYear() || a.getMonth() !== q.getMonth()),
_ && l.createElement("button", {
className: ip("js-goToday", G.goTodayButton),
onClick: O,
onKeyDown: j(O),
type: "button",
disabled: !e
}, C.goToToday)
}
, x = oDe(n) ? function() {
f(),
v()
}
: void 0
, O = function() {
c(q),
v()
}
, j = function(e) {
return function(t) {
switch (t.which) {
case cp:
case pp:
e()
}
}
}
, k = n.firstDayOfWeek
, w = n.dateRangeType
, C = n.strings
, _ = n.showGoToToday
, M = n.highlightCurrentMonth
, S = n.highlightSelectedMonth
, A = n.navigationIcons
, T = n.minDate
, E = n.maxDate
, I = n.restrictedDates
, N = n.className
, z = n.showCloseButton
, D = n.allFocusable
, L = n.styles
, R = n.showWeekNumbers
, P = n.theme
, B = n.calendarDayProps
, F = n.calendarMonthProps
, V = n.dateTimeFormatter
, W = n.today
, q = void 0 === W ? new Date : W
, H = oDe(n)
, U = !H && !h
, X = H && _
, G = tDe(L, {
theme: P,
className: N,
isMonthPickerVisible: p,
isDayPickerVisible: h,
monthPickerOnly: U,
showMonthPickerAsOverlay: H,
overlaidWithButton: X,
overlayedWithButton: X,
showGoToToday: _,
showWeekNumbers: R
})
, K = ""
, Y = "";
V && C.todayDateFormatString && (K = ZSe(C.todayDateFormatString, V.formatMonthDayYear(q, C))),
V && C.selectedDateFormatString && (Y = ZSe(C.selectedDateFormatString, V.formatMonthDayYear(i, C)));
var Q = Y + ", " + K;
return l.createElement("div", {
ref: t,
role: "group",
"aria-label": Q,
className: ip("ms-DatePicker", G.root, N, "ms-slideDownIn10"),
onKeyDown: function(e) {
var t;
switch (e.which) {
case cp:
case 8:
e.preventDefault();
break;
case dp:
null === (t = n.onDismiss) || void 0 === t || t.call(n);
break;
case 33:
e.ctrlKey ? c($Ne(o, 1)) : c(ZNe(o, 1)),
e.preventDefault();
break;
case 34:
e.ctrlKey ? c($Ne(o, -1)) : c(ZNe(o, -1)),
e.preventDefault()
}
}
}, l.createElement("div", {
className: G.liveRegion,
"aria-live": "polite",
"aria-atomic": "true"
}, l.createElement("span", null, Y)), h && l.createElement(Ize, Object(zn.a)({
selectedDate: i,
navigatedDate: o,
today: n.today,
onSelectDate: s,
onNavigateDate: function(e, t) {
c(e),
t && v()
},
onDismiss: n.onDismiss,
firstDayOfWeek: k,
dateRangeType: w,
strings: C,
onHeaderSelect: x,
navigationIcons: A,
showWeekNumbers: n.showWeekNumbers,
firstWeekOfYear: n.firstWeekOfYear,
dateTimeFormatter: n.dateTimeFormatter,
showSixWeeksByDefault: n.showSixWeeksByDefault,
minDate: T,
maxDate: E,
restrictedDates: I,
workWeekDays: n.workWeekDays,
componentRef: g,
showCloseButton: z,
allFocusable: D
}, B)), h && p && l.createElement("div", {
className: G.divider
}), p ? l.createElement("div", {
className: G.monthPickerWrapper
}, l.createElement(eDe, Object(zn.a)({
navigatedDate: a,
selectedDate: o,
strings: C,
onNavigateDate: function(e, t) {
t && v(),
t ? (U && s(e),
c(e)) : u(e)
},
today: n.today,
highlightCurrentMonth: M,
highlightSelectedMonth: S,
onHeaderSelect: x,
navigationIcons: A,
dateTimeFormatter: n.dateTimeFormatter,
minDate: T,
maxDate: E,
componentRef: m
}, F)), y()) : y(), l.createElement(bg, null))
}
));
function oDe(e) {
var t = ji();
return e.showMonthPickerAsOverlay || t && t.innerWidth <= 440
}
iDe.displayName = "CalendarBase";
var aDe = jg(iDe, (function(e) {
var t = e.className
, n = e.theme
, r = e.isDayPickerVisible
, i = e.isMonthPickerVisible
, o = e.showWeekNumbers
, a = n.palette
, l = r && i ? 440 : 220;
return o && r && (l += 30),
{
root: [Oo, {
display: "flex",
width: l
}, !i && {
flexDirection: "column"
}, t],
divider: {
top: 0,
borderRight: "1px solid",
borderColor: a.neutralLight
},
monthPickerWrapper: [{
display: "flex",
flexDirection: "column"
}],
goTodayButton: [Mi(n, {
inset: -1
}), {
bottom: 0,
color: a.neutralPrimary,
height: 30,
lineHeight: 30,
backgroundColor: "transparent",
border: "none",
boxSizing: "content-box",
padding: "0 4px",
alignSelf: "flex-end",
marginRight: 16,
marginTop: 3,
fontSize: fi.small,
fontFamily: "inherit",
overflow: "visible",
selectors: {
"& div": {
fontSize: fi.small
},
"&:hover": {
color: a.themePrimary,
backgroundColor: "transparent",
cursor: "pointer"
},
"&:active": {
color: a.themeDark
},
"&:disabled": {
color: a.neutralTertiaryAlt,
pointerEvents: "none"
}
}
}],
liveRegion: {
border: 0,
height: "1px",
margin: "-1px",
overflow: "hidden",
padding: 0,
width: "1px",
position: "absolute"
}
}
}
), void 0, {
scope: "Calendar"
})
, lDe = Object(zn.a)(Object(zn.a)({}, Dze), {
prevMonthAriaLabel: "Go to previous month",
nextMonthAriaLabel: "Go to next month",
prevYearAriaLabel: "Go to previous year",
nextYearAriaLabel: "Go to next year",
closeButtonAriaLabel: "Close date picker",
isRequiredErrorMessage: "Field is required",
invalidInputErrorMessage: "Invalid date format",
isResetStatusMessage: 'Invalid entry "{0}", date reset to "{1}"'
})
, sDe = Sg()
, cDe = {
allowTextInput: !1,
formatDate: function(e) {
return e ? e.toDateString() : ""
},
parseDateFromString: function(e) {
var t = Date.parse(e);
return t ? new Date(t) : null
},
firstDayOfWeek: VNe.Sunday,
initialPickerDate: new Date,
isRequired: !1,
isMonthPickerVisible: !0,
showMonthPickerAsOverlay: !1,
strings: lDe,
highlightCurrentMonth: !1,
highlightSelectedMonth: !1,
borderless: !1,
pickerAriaLabel: "Calendar",
showWeekNumbers: !1,
firstWeekOfYear: qNe.FirstDay,
showGoToToday: !0,
showCloseButton: !1,
underlined: !1,
allFocusable: !1
}
, uDe = l.forwardRef((function(e, t) {
var n = hy(cDe, e)
, r = n.firstDayOfWeek
, i = n.strings
, o = n.label
, a = n.theme
, s = n.className
, c = n.styles
, u = n.initialPickerDate
, d = n.isRequired
, p = n.disabled
, h = n.ariaLabel
, f = n.pickerAriaLabel
, b = n.placeholder
, g = n.allowTextInput
, m = n.borderless
, v = n.minDate
, y = n.maxDate
, x = n.showCloseButton
, O = n.calendarProps
, j = n.calloutProps
, k = n.textField
, w = n.underlined
, C = n.allFocusable
, _ = n.calendarAs
, M = void 0 === _ ? aDe : _
, S = n.tabIndex
, A = n.disableAutoFocus
, T = void 0 === A || A
, E = gO("DatePicker", n.id)
, I = gO("DatePicker-Callout")
, N = l.useRef(null)
, z = l.useRef(null)
, D = function() {
var e = l.useRef(null)
, t = l.useRef(!1);
return [e, function() {
var t, n;
null === (n = null === (t = e.current) || void 0 === t ? void 0 : t.focus) || void 0 === n || n.call(t)
}
, t, function() {
t.current = !0
}
]
}()
, L = D[0]
, R = D[1]
, P = D[2]
, B = D[3]
, F = function(e, t) {
var n = e.allowTextInput
, r = e.onAfterMenuDismiss
, i = l.useState(!1)
, o = i[0]
, a = i[1]
, s = l.useRef(!1)
, c = ex();
return l.useEffect((function() {
s.current && !o && (n && c.requestAnimationFrame(t),
null == r || r()),
s.current = !0
}
), [o]),
[o, a]
}(n, R)
, V = F[0]
, W = F[1]
, q = function(e) {
var t = e.formatDate
, n = e.value
, r = e.onSelectDate
, i = _C(n, void 0, (function(e, t) {
return null == r ? void 0 : r(t)
}
))
, o = i[0]
, a = i[1]
, s = l.useState((function() {
return n && t ? t(n) : ""
}
))
, c = s[0]
, u = s[1];
return l.useEffect((function() {
u(n && t ? t(n) : "")
}
), [t, n]),
[o, c, function(e) {
a(e),
u(e && t ? t(e) : "")
}
, u]
}(n)
, H = q[0]
, U = q[1]
, X = q[2]
, G = q[3]
, K = function(e, t, n, r, i) {
var o = e.isRequired
, a = e.allowTextInput
, s = e.strings
, c = e.parseDateFromString
, u = e.onSelectDate
, d = e.formatDate
, p = e.minDate
, h = e.maxDate
, f = l.useState()
, b = f[0]
, g = f[1]
, m = l.useState()
, v = m[0]
, y = m[1];
return l.useEffect((function() {
o && !t ? g(s.isRequiredErrorMessage || " ") : t && dDe(t, p, h) ? g(s.isOutOfBoundsErrorMessage || " ") : g(void 0)
}
), [p && cze(p), h && cze(h), t && cze(t), o]),
[i ? void 0 : b, function(e) {
if (void 0 === e && (e = null),
a)
if (r || e) {
if (t && !b && d && d(null != e ? e : t) === r)
return;
if (!(e = e || c(r)) || isNaN(e.getTime())) {
n(t);
var i = d ? d(t) : ""
, l = s.isResetStatusMessage ? ZSe(s.isResetStatusMessage, r, i) : s.invalidInputErrorMessage || "";
y(l)
} else
dDe(e, p, h) ? g(s.isOutOfBoundsErrorMessage || " ") : (n(e),
g(void 0),
y(void 0))
} else
g(o ? s.isRequiredErrorMessage || " " : void 0),
null == u || u(e);
else
o && !r ? g(s.isRequiredErrorMessage || " ") : (g(void 0),
y(void 0))
}
, g, i ? void 0 : v, y]
}(n, H, X, U, V)
, Y = K[0]
, Q = K[1]
, J = K[2]
, Z = K[3]
, $ = K[4]
, ee = l.useCallback((function() {
V || (B(),
W(!0))
}
), [V, B, W]);
l.useImperativeHandle(n.componentRef, (function() {
return {
focus: R,
reset: function() {
W(!1),
X(void 0),
J(void 0),
$(void 0)
},
showDatePickerPopup: ee
}
}
), [R, J, W, X, $, ee]);
var te = function(e) {
V && (W(!1),
Q(e),
!g && e && X(e))
}
, ne = function(e) {
B(),
te(e)
}
, re = sDe(c, {
theme: a,
className: s,
disabled: p,
underlined: w,
label: !!o,
isDatePickerShown: V
})
, ie = rp(n, np, ["value"])
, oe = k && k.iconProps
, ae = k && k.id && k.id !== E ? k.id : E + "-label"
, le = !g && !p;
return l.createElement("div", Object(zn.a)({}, ie, {
className: re.root,
ref: t
}), l.createElement("div", {
ref: z,
"aria-owns": V ? I : void 0,
className: re.wrapper
}, l.createElement(jk, Object(zn.a)({
role: "combobox",
label: o,
"aria-expanded": V,
ariaLabel: h,
"aria-haspopup": "dialog",
"aria-controls": V ? I : void 0,
required: d,
disabled: p,
errorMessage: Y,
placeholder: b,
borderless: m,
value: U,
componentRef: L,
underlined: w,
tabIndex: S,
readOnly: !g
}, k, {
id: ae,
className: ip(re.textField, k && k.className),
iconProps: Object(zn.a)(Object(zn.a)({
iconName: "Calendar"
}, oe), {
className: ip(re.icon, oe && oe.className),
onClick: function(e) {
e.stopPropagation(),
V || n.disabled ? n.allowTextInput && te() : ee()
}
}),
onRenderDescription: function(e, t) {
return l.createElement(l.Fragment, null, e.description ? t(e) : null, l.createElement("div", {
"aria-live": "assertive",
className: re.statusMessage
}, Z))
},
onKeyDown: function(e) {
switch (e.which) {
case cp:
e.preventDefault(),
e.stopPropagation(),
V ? n.allowTextInput && te() : (Q(),
ee());
break;
case dp:
!function(e) {
e.stopPropagation(),
ne()
}(e);
break;
case gp:
e.altKey && !V && ee()
}
},
onFocus: function() {
T || g || (P.current || ee(),
P.current = !1)
},
onBlur: function(e) {
Q()
},
onClick: function(e) {
!n.openOnClick && n.disableAutoFocus || V || n.disabled ? n.allowTextInput && te() : ee()
},
onChange: function(e, t) {
var r, i = n.textField;
g && (V && te(),
G(t)),
null === (r = null == i ? void 0 : i.onChange) || void 0 === r || r.call(i, e, t)
},
onRenderInput: le ? function(e) {
var t = rp(e, np);
return l.createElement("div", Object(zn.a)({}, t, {
className: ip(t.className, re.readOnlyTextField),
tabIndex: S || 0
}), U || l.createElement("span", {
className: re.readOnlyPlaceholder
}, b))
}
: void 0
}))), V && l.createElement(Bx, Object(zn.a)({
id: I,
role: "dialog",
ariaLabel: f,
isBeakVisible: !1,
gapSpace: 0,
doNotLayer: !1,
target: z.current,
directionalHint: 4
}, j, {
className: ip(re.callout, j && j.className),
onDismiss: function(e) {
ne()
},
onPositioned: function() {
var e = !0;
n.calloutProps && void 0 !== n.calloutProps.setInitialFocus && (e = n.calloutProps.setInitialFocus),
N.current && e && N.current.focus()
}
}), l.createElement(xj, {
isClickableOutsideFocusTrap: !0,
disableFirstFocus: T
}, l.createElement(M, Object(zn.a)({}, O, {
onSelectDate: function(e) {
n.calendarProps && n.calendarProps.onSelectDate && n.calendarProps.onSelectDate(e),
ne(e)
},
onDismiss: ne,
isMonthPickerVisible: n.isMonthPickerVisible,
showMonthPickerAsOverlay: n.showMonthPickerAsOverlay,
today: n.today,
value: H || u,
firstDayOfWeek: r,
strings: i,
highlightCurrentMonth: n.highlightCurrentMonth,
highlightSelectedMonth: n.highlightSelectedMonth,
showWeekNumbers: n.showWeekNumbers,
firstWeekOfYear: n.firstWeekOfYear,
showGoToToday: n.showGoToToday,
dateTimeFormatter: n.dateTimeFormatter,
minDate: v,
maxDate: y,
componentRef: N,
showCloseButton: x,
allFocusable: C
})))))
}
));
function dDe(e, t, n) {
return !!t && ize(t, e) > 0 || !!n && ize(n, e) < 0
}
uDe.displayName = "DatePickerBase";
var pDe = {
root: "ms-DatePicker",
callout: "ms-DatePicker-callout",
withLabel: "ms-DatePicker-event--with-label",
withoutLabel: "ms-DatePicker-event--without-label",
disabled: "msDatePickerDisabled "
}
, hDe = jg(uDe, (function(e) {
var t, n = e.className, r = e.theme, i = e.disabled, o = e.underlined, a = e.label, l = e.isDatePickerShown, s = r.palette, c = r.semanticColors, u = r.fonts, d = Vi(pDe, r), p = {
color: s.neutralSecondary,
fontSize: fi.icon,
lineHeight: "18px",
pointerEvents: "none",
position: "absolute",
right: "4px",
padding: "5px"
};
return {
root: [d.root, r.fonts.large, l && "is-open", Oo, n],
textField: [{
position: "relative",
selectors: {
"& input[readonly]": {
cursor: "pointer"
},
input: {
selectors: {
"::-ms-clear": {
display: "none"
}
}
}
}
}, i && {
selectors: {
"& input[readonly]": {
cursor: "default"
}
}
}],
callout: [d.callout],
icon: [p, a ? d.withLabel : d.withoutLabel, {
paddingTop: "7px"
}, !i && [d.disabled, {
pointerEvents: "initial",
cursor: "pointer"
}], i && {
color: c.disabledText,
cursor: "default"
}],
statusMessage: [u.small, {
color: c.errorText,
marginTop: 5
}],
readOnlyTextField: [{
cursor: "pointer",
height: 32,
lineHeight: 30,
overflow: "hidden",
textOverflow: "ellipsis"
}, o && {
lineHeight: 34
}],
readOnlyPlaceholder: (t = {
color: c.inputPlaceholderText
},
t[vi] = {
color: "GrayText"
},
t)
}
}
), void 0, {
scope: "DatePicker"
})
, fDe = {
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
shortDays: ["S", "M", "T", "W", "T", "F", "S"],
goToToday: "Go to today",
prevMonthAriaLabel: "Go to previous month",
nextMonthAriaLabel: "Go to next month",
prevYearAriaLabel: "Go to previous year",
nextYearAriaLabel: "Go to next year",
closeButtonAriaLabel: "Close date picker",
monthPickerHeaderAriaLabel: "{0}, select to change the year",
yearPickerHeaderAriaLabel: "{0}, select to change the month",
isRequiredErrorMessage: "Start date is required.",
invalidInputErrorMessage: "Invalid date format."
}
, bDe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t) {
var n = e.props.onChange;
n && t && n(t.toISOString())
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.value
, r = e.defaultValue
, i = VNe.Sunday
, o = n || r
, a = o ? new Date(o) : new Date;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: t
}), Object(Ip.jsx)(hDe, {
isRequired: !1,
allowTextInput: !0,
ariaLabel: "This field is required. One of the support input formats is year dash month dash day.",
firstDayOfWeek: i,
strings: fDe,
value: a,
onSelectDate: this._onChange,
minDate: dV()(new Date).toDate(),
formatDate: function(e) {
return pV(null != e ? e : new Date, "YYYY/MM/DD HH:mm")
}
})]
})
}
}]),
n
}(l.Component)
, gDe = bDe
, mDe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n, r) {
var i = e.props.onChange;
"string" != typeof (null == n ? void 0 : n.key) && "number" != typeof (null == n ? void 0 : n.key) || i && i(n.data)
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.value
, r = e.defaultValue
, i = e.props
, o = e.screens.filter((function(e) {
return e.action && ("tab" === e.action.type || "/post_list" === e.action.route)
}
)).map((function(e, t) {
return {
key: e.action.args.key,
text: e.configs.name,
data: _t(_t({}, e.action), {}, {
type: "tab"
})
}
}
))
, a = Cu()(n || r, ["args", "key"]);
return Object(Ip.jsx)(pM, _t(_t({}, i), {}, {
styles: dS,
label: t,
options: o,
placeholder: "Select",
selectedKey: a,
onChange: this._onChange
}))
}
}]),
n
}(l.Component);
mDe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var vDe = va((function(e) {
return {
screens: pb(e)
}
}
))(mDe)
, yDe = n(169)
, xDe = n.n(yDe)
, ODe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e))._onChange = function() {
var e = r.props.id;
wp && wp.editor && r._handleChange(wp.editor.getContent("editor-".concat(e)))
}
,
r._handleChange = function(e) {
var t = r.props
, n = t.isTranslate
, i = t.translate
, o = t.language
, a = t.onChange
, l = t.value;
a && a(n ? _t(_t({}, l), {}, i ? Object(wt.a)({}, o, e) : {
text: e
}) : e)
}
,
r.state = {
isModalOpen: !1
},
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
var e = this
, t = this.props.id;
if (wp && wp.editor) {
var n = xDe()(wp.editor.getDefaultSettings(), {
tinymce: {
setup: function(t) {
t.on("change", (function(n) {
e._handleChange(t.getContent())
}
))
}
}
});
wp.editor.initialize("editor-".concat(t), n)
}
}
}, {
key: "componentWillUnmount",
value: function() {
var e = this.props.id;
wp && wp.editor && wp.editor.remove("editor-".concat(e))
}
}, {
key: "render",
value: function() {
var e, t, n, r, i = this.props, o = i.label, a = i.value, l = i.defaultValue, s = i.info, c = i.id, u = i.isTranslate, d = i.translate, p = i.language, h = i.props, f = u ? d ? null !== (e = null !== (t = null == a ? void 0 : a[p]) && void 0 !== t ? t : l[p]) && void 0 !== e ? e : "" : null !== (n = null !== (r = null == a ? void 0 : a.text) && void 0 !== r ? r : null == l ? void 0 : l.text) && void 0 !== n ? n : "" : null != a ? a : l;
return Object(Ip.jsx)(Ip.Fragment, {
children: Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
children: [Object(Ip.jsx)(qA, {
label: o,
info: s
}), u && Object(Ip.jsx)("span", {
className: "language-ms",
children: d ? p : "en"
})]
}), Object(Ip.jsx)("textarea", _t({
onChange: this._onChange,
id: "editor-".concat(c),
defaultValue: f,
style: {
width: "100%"
}
}, h))]
})
})
}
}]),
n
}(l.Component)
, jDe = va((function(e) {
return {
language: Kc(e),
languages: Yc(e),
translate: Qc(e)
}
}
))(ODe)
, kDe = n(306)
, wDe = n.n(kDe)
, CDe = {
moveMenuItemText: "Move",
closeMenuItemText: "Close",
menu: GO
}
, _De = {
main: {
maxWidth: 450
}
}
, MDe = {
type: ej.largeHeader,
title: "Search"
}
, SDe = {
suggestionsHeaderText: "Suggested",
mostRecentlyUsedHeaderText: "Suggested",
noResultsFoundText: "No results found",
loadingText: "Loading",
showRemoveButtons: !0,
suggestionsAvailableAlertText: "Picker Suggestions available",
suggestionsContainerAriaLabel: "Suggested"
}
, ADe = {
moveMenuItemText: "Move",
closeMenuItemText: "Close",
menu: GO
}
, TDe = {
main: {
maxWidth: 450
}
}
, EDe = {
type: ej.largeHeader,
title: "Search"
}
, IDe = {
suggestionsHeaderText: "Suggested",
mostRecentlyUsedHeaderText: "Suggested",
noResultsFoundText: "No results found",
loadingText: "Loading",
showRemoveButtons: !0,
suggestionsAvailableAlertText: "Picker Suggestions available",
suggestionsContainerAriaLabel: "Suggested"
}
, NDe = {
root: {
padding: 0
}
}
, zDe = {
childrenGap: 0,
padding: 0
}
, DDe = {
root: {
marginLeft: "-1px !important"
}
}
, LDe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r, i = e.props, o = i.onChange, a = i.value, l = i.defaultValue, s = _t(_t({}, null !== (r = null != a ? a : l) && void 0 !== r ? r : {}), {}, Object(wt.a)({}, t, parseInt(null != n ? n : "") || 0));
o && o(s)
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o = this, a = this.props, l = a.id, s = a.value, c = a.label, u = a.defaultValue, d = null !== (e = null != s ? s : u) && void 0 !== e ? e : {}, p = {
root: {
color: yo().palette.neutralPrimaryAlt
}
};
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ok, {
id: l,
styles: sS,
children: c
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: NDe,
tokens: zDe,
children: [Object(Ip.jsxs)(yj.Item, {
grow: !0,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (t = null == d ? void 0 : d.topLeft) && void 0 !== t ? t : "",
onChange: function(e, t) {
return o._onChange("topLeft", t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Top left"
})]
}), Object(Ip.jsxs)(yj.Item, {
grow: !0,
styles: DDe,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (n = null == d ? void 0 : d.topRight) && void 0 !== n ? n : "",
onChange: function(e, t) {
return o._onChange("topRight", t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Top right"
})]
})]
}), Object(Ip.jsx)("div", {
style: {
height: 8
}
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: NDe,
tokens: zDe,
children: [Object(Ip.jsxs)(yj.Item, {
grow: !0,
styles: DDe,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (r = null == d ? void 0 : d.bottomLeft) && void 0 !== r ? r : "",
onChange: function(e, t) {
return o._onChange("bottomLeft", t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Bottom left"
})]
}), Object(Ip.jsxs)(yj.Item, {
grow: !0,
styles: DDe,
children: [Object(Ip.jsx)(jk, {
styles: uS,
value: null !== (i = null == d ? void 0 : d.bottomRight) && void 0 !== i ? i : "",
onChange: function(e, t) {
return o._onChange("bottomRight", t)
},
onBlur: this._onBlur
}), Object(Ip.jsx)(Ep, {
variant: "small",
styles: p,
children: "Bottom right"
})]
})]
})]
})
}
}]),
n
}(l.Component);
LDe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var RDe, PDe, BDe, FDe, VDe, WDe, qDe, HDe = LDe, UDe = Mu.b.div(RDe || (RDe = _u(["\n border: 1px solid rgba(126, 130, 164, 0.2);\n border-left:2px solid #30AD62;\n background: #fff;\n margin-top: -1px;\n"]))), XDe = Mu.b.a(PDe || (PDe = _u(["\n padding: 14px 16px;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]))), GDe = Mu.b.span(BDe || (BDe = _u(["\n font-weight: bold;\n display: block;\n flex: 1;\n margin: 0px 18px;\n"]))), KDe = Object(Mu.b)(Pg)(FDe || (FDe = _u(["\n font-size: 12px;\n"]))), YDe = Object(Mu.b)(Pg)(VDe || (VDe = _u(["\n color: #7e82a4;\n"]))), QDe = Mu.b.div(WDe || (WDe = _u(["\n border-top: 1px solid rgba(126, 130, 164, 0.2);\n padding: 16px;\n padding-top: 20px;\n"]))), JDe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
isShow: !0
},
e.textItem = function() {
var t, n, r, i, o, a, l, s, c, u, d = e.props, p = d.item, h = d.index, f = d.props, b = null !== (t = null == f ? void 0 : f.keyItem) && void 0 !== t ? t : "", g = null !== (n = null == f ? void 0 : f.textItem) && void 0 !== n ? n : "Item", m = null !== (r = null == f ? void 0 : f.numberItem) && void 0 !== r && r;
return b && (null != p && null !== (i = p.value) && void 0 !== i && i[b] || null != p && null !== (o = p.value) && void 0 !== o && null !== (a = o[b]) && void 0 !== a && a.text) ? "string" == typeof (null == p || null === (l = p.value) || void 0 === l ? void 0 : l[b]) ? null == p || null === (s = p.value) || void 0 === s ? void 0 : s[b] : null == p || null === (c = p.value) || void 0 === c || null === (u = c[b]) || void 0 === u ? void 0 : u.text : m ? "".concat(g, " ").concat(h + 1) : g
}
,
e._setActive = function() {
var t = e.props
, n = t.index
, r = t.setActive
, i = t.toggle
, o = t.active;
if (i)
r(n === o ? -1 : n);
else {
var a = e.state.isShow;
e.setState({
isShow: !a
})
}
}
,
e._onChange = function(t, n) {
var r = e.props
, i = r.onChange
, o = r.item
, a = r.index
, l = Il(o, (function(e) {
e.value[t] = n
}
));
i && i(a, l)
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.item, i = n.index, o = n.props, a = n.deleteItem, l = n.duplicateItem, s = n.toggle, c = n.active, u = n.moveItem, d = s ? c === i : this.state.isShow;
return Object(Ip.jsxs)(UDe, {
children: [Object(Ip.jsxs)(XDe, {
children: [Object(Ip.jsx)(KDe, {
onClick: this._setActive,
iconName: d ? "ChevronDown" : "ChevronRight"
}), Object(Ip.jsx)(GDe, {
onClick: this._setActive,
children: this.textItem()
}), Object(Ip.jsx)(YDe, {
style: {
marginRight: 15,
marginLeft: 15
},
onClick: function() {
return u(i - 1, i)
},
iconName: "ChevronUpMed"
}), Object(Ip.jsx)(YDe, {
onClick: function() {
return u(i + 1, i)
},
iconName: "ChevronDownMed"
}), Object(Ip.jsx)(YDe, {
style: {
marginRight: 15,
marginLeft: 15
},
onClick: function() {
return l(i)
},
iconName: "Copy"
}), Object(Ip.jsx)(YDe, {
onClick: function() {
return a(i)
},
iconName: "Delete"
})]
}), d && Object(Ip.jsx)(QDe, {
children: Object(Ip.jsx)(SRe, {
fields: null !== (e = null == o ? void 0 : o.fields) && void 0 !== e ? e : {},
value: null !== (t = null == r ? void 0 : r.value) && void 0 !== t ? t : {},
onChange: this._onChange,
onBlur: this._onBlur,
type: "fields"
})
})]
})
}
}]),
n
}(l.Component), ZDe = JDe, $De = Mu.b.div(qDe || (qDe = _u(["\n margin-bottom: 10px;\n"]))), eLe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e, r, i;
Object(St.a)(this, n);
for (var o = arguments.length, a = new Array(o), l = 0; l < o; l++)
a[l] = arguments[l];
return (i = t.call.apply(t, [this].concat(a))).state = {
active: null !== (e = null === (r = i.props) || void 0 === r ? void 0 : r.active) && void 0 !== e ? e : 0,
value: i.props.value
},
i._setActive = function(e) {
var t = i.props
, n = t.value
, r = t.onChange
, o = Il(n, (function(t) {
t.map((function(t, n) {
return void 0 !== t.active && (t.active = n === e),
t
}
))
}
));
i.setState({
active: e
}),
r && r(o)
}
,
i._onChange = function(e, t) {
var n = i.props
, r = n.value
, o = n.onChange
, a = Il(r, (function(n) {
n[e] = t
}
));
o && o(a)
}
,
i._addItem = function() {
var e = i.props
, t = e.value
, n = e.defaultValue
, r = e.onChange
, o = Il(t, (function(e) {
e.push(n[0])
}
));
r && r(o)
}
,
i._deleteItem = function(e) {
var t = i.props
, n = t.value
, r = t.onChange
, o = Il(n, (function(t) {
t.splice(e, 1)
}
));
r && r(o)
}
,
i._duplicateItem = function(e) {
var t = i.props
, n = t.value
, r = t.onChange
, o = Il(n, (function(t) {
t.push(n[e])
}
));
r && r(o)
}
,
i._moveItem = function(e, t) {
var n = i.props
, r = n.value
, o = n.onChange
, a = e;
e >= r.length && (a = 0),
a < 0 && (a = r.length - 1);
var l = Il(r, (function(e) {
var n = e.splice(t, 1)
, r = Object(ss.a)(n, 1)[0];
e.splice(a, 0, r)
}
));
o && o(l)
}
,
i
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.value
, r = t.label
, i = t.props
, o = t.onBlur
, a = t.toggle;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(ok, {
styles: sS,
children: r
}), Object(Ip.jsx)($De, {
children: Object(Ip.jsx)("div", {
children: n.map((function(t, n) {
return Object(Ip.jsx)(ZDe, {
item: t,
index: n,
onBlur: o,
props: i,
onChange: e._onChange,
deleteItem: e._deleteItem,
duplicateItem: e._duplicateItem,
moveItem: e._moveItem,
toggle: a,
active: e.state.active,
setActive: e._setActive
}, n)
}
))
})
}), Object(Ip.jsx)("div", {
style: {
float: "right"
},
children: Object(Ip.jsx)(Lk, {
onClick: this._addItem,
children: Object(Ip.jsxs)(yw, {
margin: "0 0 0 6px",
children: ["Add ", null != i && i.numberItem ? null == i ? void 0 : i.textItem : "Item"]
})
})
}), Object(Ip.jsx)("div", {
style: {
clear: "both"
}
})]
})
}
}]),
n
}(l.Component), tLe = eLe, nLe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i)))._onChange = function(t, n) {
var r = e.props
, i = r.onChange
, o = r.value
, a = Il(o, (function(e) {
e[t] = n
}
));
i && i(a)
}
,
e._onBlur = function() {
var t = e.props.onBlur;
t && t()
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t = this.props, n = t.value, r = t.props, i = null !== (e = null == r ? void 0 : r.fields) && void 0 !== e ? e : {};
return Object(Ip.jsx)("div", {
style: null != r && r.single ? {
backgroundColor: "#fff",
padding: 10
} : {},
children: i ? Object(Ip.jsx)("div", {
style: null != r && r.single ? {
padding: 8
} : {},
children: Object(Ip.jsx)(SRe, {
fields: i,
value: n,
onChange: this._onChange,
onBlur: this._onBlur,
type: "fields"
})
}) : null
})
}
}]),
n
}(l.Component), rLe = nLe, iLe = {
root: {
alignItems: "center",
display: "flex",
border: "1px solid #BDBDBD",
height: 32,
justifyContent: "center",
cursor: "pointer"
}
}, oLe = {
childrenGap: -1,
padding: 0
}, aLe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.label
, n = e.info
, r = e.value
, i = e.defaultValue
, o = e.props
, a = e.onChange
, l = null != r ? r : i;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: t,
info: n
}), Object(Ip.jsx)(yj, {
horizontal: !0,
tokens: oLe,
children: null == o ? void 0 : o.options.map((function(e) {
return Object(Ip.jsx)(yj.Item, {
onClick: function() {
return a(e.key)
},
grow: 1,
styles: e.key === l ? xDe()({}, iLe, {
root: {
background: "#30AD62",
color: "#fff"
}
}) : iLe,
children: null == e ? void 0 : e.text
}, e.key)
}
))
})]
})
}
}]),
n
}(l.Component);
aLe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var lLe = aLe
, sLe = {
suggestionsHeaderText: "Suggested country",
mostRecentlyUsedHeaderText: "Suggested countries",
noResultsFoundText: "No results found",
loadingText: "Loading",
showRemoveButtons: !0,
suggestionsAvailableAlertText: "Country picker suggestions available",
suggestionsContainerAriaLabel: "Suggested countries"
};
function cLe(e) {
return e ? uLe(nh.filter((function(t) {
return t.key && e.includes("".concat(t.key))
}
))) : []
}
function uLe(e) {
return e.map((function(e) {
return _t(_t({}, e), {}, {
initialsColor: "#fff"
})
}
))
}
function dLe(e, t) {
return "+" !== t && 0 === e.toLowerCase().indexOf(t.toLowerCase())
}
function pLe(e, t) {
return t ? e.filter((function(e) {
return !function(e, t) {
return !(!t || !t.length || 0 === t.length) && t.filter((function(t) {
return t.text === e.text
}
)).length > 0
}(e, t)
}
)) : e
}
function hLe(e) {
return e.text
}
function fLe(e) {
return -1 !== e.indexOf("@") ? WSe.valid : e.length > 1 ? WSe.warning : WSe.invalid
}
function bLe(e) {
var t = /<.*>/g.exec(e);
return t && t[0] ? t[0].substring(1, t[0].length - 1) : e
}
var gLe, mLe, vLe, yLe, xLe = n(307), OLe = n.n(xLe), jLe = ["id", "name", "slug", "type", "status", "sku", "stock_status", "isLogin", "categories"], kLe = {
gapSpace: 0
}, wLe = {
root: {
display: "inline-block"
}
}, CLe = Po.palette.neutralQuaternaryAlt, _Le = {
childrenGap: 30
}, MLe = {
root: {
margin: "0px !important"
}
}, SLe = {
padding: 0
}, ALe = {
root: {
width: "100%",
height: 50
},
icon: {
fontSize: 20
}
}, TLe = {
root: {
width: "100%",
height: 55
},
icon: {
fontSize: 19,
color: "#ff1a1a"
}
}, ELe = function(e) {
var t = Ck(!0)
, n = Object(ss.a)(t, 2)
, r = n[0]
, i = n[1].toggle
, o = e.text
, a = Lw("tooltip-variable-".concat(o));
return Object(Ip.jsx)(BA, {
content: "Copied",
id: a,
calloutProps: kLe,
styles: wLe,
hidden: r,
children: Object(Ip.jsx)(kk, {
"aria-describedby": a,
onClick: function() {
navigator.clipboard.writeText(null != o ? o : ""),
i(),
setTimeout((function() {
i()
}
), 1e3)
},
styles: {
root: {
padding: "2px 8px",
margin: "3px 5px 3px 0px",
height: "auto",
maxWidth: "auto",
borderRadius: "3px",
border: "none",
backgroundColor: Po.palette.neutralLighterAlt,
boxShadow: "none"
},
rootHovered: {
backgroundColor: Po.palette.neutralLight,
border: "none"
},
rootPressed: {
backgroundColor: Po.palette.neutralLight,
border: "none"
},
textContainer: {
padding: "0px"
}
},
children: Object(Ip.jsx)(Ep, {
variant: "medium",
children: o
})
})
})
}, ILe = function(e) {
var t, n = e.value, r = e.onChange, i = Object(l.useState)(null != n ? n : []), o = Object(ss.a)(i, 2), a = o[0], s = o[1], c = function(e, t, n, r, i) {
if (r !== i) {
var o = Il(null != a ? a : [], (function(r) {
r[e][t][n] = i
}
));
s(o)
}
}, u = null !== (t = e.keyVariables) && void 0 !== t ? t : jLe;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(Ep, {
block: !0,
variant: "medium",
children: [" You may use these variables: ", u.map((function(e) {
var t = "{".concat(e, "}");
return Object(Ip.jsx)(ELe, {
text: t
}, e)
}
))]
}), Object(Ip.jsx)("br", {}), Object(Ip.jsxs)(yj, {
tokens: _Le,
styles: MLe,
children: [!Rt()(a) && a.map((function(e, t) {
return Object(Ip.jsxs)(yj.Item, {
styles: MLe,
children: [Object(Ip.jsxs)("table", {
className: "table-conditional",
children: [Object(Ip.jsx)("thead", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Merge Tag"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Operator"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Value"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Ep, {
children: "Action"
})
}), Object(Ip.jsx)("th", {
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "Delete"
},
"aria-label": "Delete",
styles: TLe,
onClick: function() {
return function(e) {
var t = Il(null != a ? a : [], (function(t) {
t.splice(e, 1)
}
));
s(t)
}(t)
}
})
})]
})
}), yh()(e) && !Rt()(e) && e.map((function(e, n) {
var r = Cu()(e, ["value1"], "")
, i = Cu()(e, ["operator"], "")
, o = Cu()(e, ["value2"], "");
return Object(Ip.jsx)("tbody", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: r,
onChange: function(e, i) {
return c(t, n, "value1", r, i)
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(pM, {
placeholder: "Select...",
selectedKey: i,
options: ch,
onChange: function(e, r) {
return c(t, n, "operator", i, null == r ? void 0 : r.key)
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(jk, {
value: o,
onChange: function(e, r) {
return c(t, n, "value2", o, r)
}
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(aj, {
onClick: function() {
return function(e, t) {
var n = Il(a, (function(n) {
n[e].splice(t, 1)
}
));
s(n)
}(t, n)
},
text: "Delete"
})
}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)("div", {
className: "center",
children: "&"
})
})]
})
}, "conditional-".concat(n))
}
)), Object(Ip.jsx)("tfoot", {
children: Object(Ip.jsxs)("tr", {
children: [Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {}), Object(Ip.jsx)("td", {
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "CircleAdditionSolid"
},
"aria-label": "CircleAdditionSolid",
styles: ALe,
onClick: function() {
return function(e) {
var t = Il(a, (function(t) {
t[e].push({
value1: "",
operator: "is_equal_to",
value2: ""
})
}
));
s(t)
}(t)
}
})
})]
})
})]
}), Object(Ip.jsx)("div", {
className: "divider-line",
children: Object(Ip.jsx)(TEe, {
vertical: !0,
styles: {
root: {
height: 63,
padding: "0px",
"::after": {
backgroundColor: CLe
}
},
content: {
padding: "0px"
}
},
children: Object(Ip.jsx)(Ep, {
children: "OR"
})
})
})]
}, t)
}
)), Object(Ip.jsx)(yj, {
horizontal: !0,
tokens: SLe,
styles: MLe,
children: Object(Ip.jsx)(kk, {
onClick: function() {
var e = Il(null != a ? a : [], (function(e) {
e.push([{
value1: "",
operator: "is_equal_to",
value2: ""
}])
}
));
s(e)
},
text: "Add Conditional"
})
})]
}), Object(Ip.jsxs)(Hj, {
children: [Object(Ip.jsx)(kk, {
onClick: function() {
return r(a)
},
text: "Save"
}), Object(Ip.jsx)(aj, {
onClick: function() {
return r(null)
},
text: "Cancel"
})]
})]
})
}, NLe = {
moveMenuItemText: "Move",
closeMenuItemText: "Close",
menu: GO
}, zLe = {
main: {
maxWidth: 450,
maxHeight: 726
}
}, DLe = {
type: ej.largeHeader,
title: "Conditionals",
topButtonsProps: []
}, LLe = Mu.b.div(gLe || (gLe = _u(["\n float: left;\n"]))), RLe = Mu.b.div(mLe || (mLe = _u(["\n display: flex;\n"]))), PLe = Mu.b.div(vLe || (vLe = _u(["\n flex: 1;\n margin-right: 8px;\n"]))), BLe = Mu.b.div(yLe || (yLe = _u(["\n border: 1px solid rgba(126, 130, 164, 0.2);\n background: #fff;\n padding: 16px;\n"]))), FLe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
Object(St.a)(this, n),
(r = t.call(this, e))._onChangeKeyData = function(e, t) {
var n = r.state.data.map((function(n, r) {
return r !== t ? n : _t(_t({}, n), {}, {
key: e
})
}
));
r.setState({
data: n
}, (function() {
return r._changeData()
}
))
}
,
r._onChangeValueData = function(e, t) {
var n = r.state.data.map((function(n, r) {
return r !== t ? n : _t(_t({}, n), {}, {
value: e
})
}
));
r.setState({
data: n
}, (function() {
return r._changeData()
}
))
}
,
r._clickAddData = function() {
var e = r.state
, t = e.data
, n = e.keyAdd
, i = e.valueAdd
, o = "";
if (n.length < 1 && (o = "Not null"),
t.find((function(e) {
return e.key === n
}
)) && (o = "Not duplicate with other key"),
"" === o) {
var a = t.concat({
key: n,
value: i
});
r.setState({
data: a,
keyAdd: "",
valueAdd: "",
errorKeyAdd: o
}, (function() {
return r._changeData()
}
))
} else
r.setState({
errorKeyAdd: o
})
}
,
r._clickDeleteData = function(e) {
var t = r.state.data.filter((function(t, n) {
return n !== e
}
));
r.setState({
data: t
}, (function() {
return r._changeData()
}
))
}
,
r._changeData = function() {
(0,
r.props.onChange)(r.state.data.reduce((function(e, t) {
return _t(_t({}, e), {}, Object(wt.a)({}, t.key, t.value))
}
), {}))
}
;
var i = e.value
, o = kb()(i) ? Object.keys(i).map((function(e) {
return {
key: e,
value: Cu()(i, e, "")
}
}
)) : [];
return r.state = {
data: o,
keyAdd: "",
valueAdd: "",
errorKeyAdd: ""
},
r
}
return Object(At.a)(n, [{
key: "componentDidUpdate",
value: function(e, t, n) {
var r = this;
if (!mh()(e.value, this.props.value)) {
var i = kb()(this.props.value) ? Object.keys(this.props.value).map((function(e) {
return {
key: e,
value: Cu()(r.props.value, e, "")
}
}
)) : [];
mh()(eA()(i, [function(e) {
return e.key
}
]), eA()(this.state.data, [function(e) {
return e.key
}
])) || this.setState({
data: i,
keyAdd: "",
valueAdd: "",
errorKeyAdd: ""
})
}
}
}, {
key: "render",
value: function() {
var e = this
, t = this.state
, n = t.data
, r = t.keyAdd
, i = t.valueAdd
, o = t.errorKeyAdd;
return Object(Ip.jsxs)(BLe, {
children: [!Rt()(n) && n.map((function(t, n) {
return Object(Ip.jsxs)(RLe, {
style: {
marginBottom: 12
},
children: [Object(Ip.jsxs)(PLe, {
className: "ms-Grid-row",
children: [Object(Ip.jsx)(LLe, {
className: "ms-Grid-col ms-sm6 ms-md5 ms-lg4",
children: Object(Ip.jsx)(jk, {
value: t.key,
onChange: function(t, r) {
return e._onChangeKeyData(null != r ? r : "", n)
},
placeholder: "Key"
})
}), Object(Ip.jsx)(LLe, {
className: "ms-Grid-col ms-sm6 ms-md7 ms-lg8",
children: Object(Ip.jsx)(jk, {
value: t.value,
onChange: function(t, r) {
return e._onChangeValueData(null != r ? r : "", n)
},
placeholder: "Value"
})
})]
}, n), Object(Ip.jsx)(LLe, {
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "Delete"
},
onClick: function() {
return e._clickDeleteData(n)
},
checked: !0
})
})]
}, n)
}
)), Object(Ip.jsxs)(RLe, {
children: [Object(Ip.jsxs)(PLe, {
className: "ms-Grid-row",
children: [Object(Ip.jsx)(LLe, {
className: "ms-Grid-col ms-sm6 ms-md5 ms-lg4",
children: Object(Ip.jsx)(jk, {
value: r,
onChange: function(t, n) {
return e.setState({
keyAdd: null != n ? n : ""
})
},
placeholder: "Key",
errorMessage: o
})
}), Object(Ip.jsx)(LLe, {
className: "ms-Grid-col ms-sm6 ms-md7 ms-lg8",
children: Object(Ip.jsx)(jk, {
value: i,
onChange: function(t, n) {
return e.setState({
valueAdd: null != n ? n : ""
})
},
placeholder: "Value"
})
})]
}), Object(Ip.jsx)(LLe, {
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "Add"
},
onClick: this._clickAddData,
checked: !0
})
})]
})]
})
}
}]),
n
}(s.a.Component), VLe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.value
, n = e.defaultValue
, r = e.label
, i = e.info
, o = e.onChange
, a = null != t ? t : n;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(qA, {
label: r,
info: i
}), Object(Ip.jsx)(FLe, {
value: kb()(a) ? a : {},
onChange: function(e) {
return o(e)
}
})]
})
}
}]),
n
}(l.Component);
VLe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var WLe, qLe = VLe, HLe = Mu.b.div(WLe || (WLe = _u(["\n display: flex;\n align-items: flex-start;\n word-break: break-word;\n color: ", ";\n .language-ms {\n display: inline-block;\n font-size: 12px;\n line-height: 15px;\n text-transform: uppercase;\n margin-left: 10px;\n padding: 5px 0;\n }\n a {\n color: ", ";\n }\n"])), (function(e) {
return e.color
}
), (function(e) {
return e.color
}
)), ULe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n, r, i, o = yo(), a = this.props, l = a.value, s = a.defaultValue, c = a.label, u = a.info, d = a.isTranslate, p = a.translate, h = a.language, f = a.onChange, b = null !== (e = null != l ? l : s) && void 0 !== e ? e : {}, g = p && d ? null !== (t = null == b ? void 0 : b[h]) && void 0 !== t ? t : {} : null !== (n = null == b ? void 0 : b.value) && void 0 !== n ? n : {};
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(HLe, {
color: o.palette.neutralPrimaryAlt,
children: [Object(Ip.jsx)("div", {
style: {
flex: 1
},
children: Object(Ip.jsx)(qA, {
label: c,
info: u
})
}), d && Object(Ip.jsx)("span", {
className: "language-ms",
children: p ? h : null === (r = window) || void 0 === r || null === (i = r.app_builder) || void 0 === i ? void 0 : i.language
})]
}), Object(Ip.jsx)(FLe, {
value: kb()(g) ? g : {},
onChange: function(e) {
return f(_t(_t({}, b), {}, p && d ? Object(wt.a)({}, h, e) : {
value: e
}))
}
})]
})
}
}]),
n
}(l.Component);
ULe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var XLe = va((function(e) {
return {
language: Kc(e),
languages: Yc(e),
translate: Qc(e)
}
}
))(ULe)
, GLe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
return this.props.isTranslate ? Object(Ip.jsx)(XLe, _t({}, this.props)) : Object(Ip.jsx)(qLe, _t({}, this.props))
}
}]),
n
}(l.Component);
GLe.defaultProps = {
onChange: function(e) {
return console.log(e)
}
};
var KLe = GLe
, YLe = {
moveMenuItemText: "Move",
closeMenuItemText: "Close",
menu: GO
}
, QLe = {
main: {
maxWidth: 450
}
}
, JLe = {
type: ej.largeHeader,
title: "Search"
};
function ZLe(e) {
var t, n = e.value, r = e.query, i = e.textButton, o = e.onChange, a = Ck(!0), c = Object(ss.a)(a, 2), u = c[0], d = c[1].toggle, p = Object(l.useState)(""), h = Object(ss.a)(p, 2), f = h[0], b = h[1], g = s.a.useState(kb()(n) && null !== Cu()(n, "key", null) ? [n] : []), m = Object(ss.a)(g, 2), v = m[0], y = m[1];
return Object(l.useEffect)((function() {
y(kb()(n) && null !== Cu()(n, "key", null) ? [n] : [])
}
), [n]),
Object(Ip.jsxs)("div", {
children: [null != n && n.key ? Object(Ip.jsxs)(yj, {
horizontal: !0,
className: "custom-form-preview-search",
verticalAlign: "center",
tokens: {
childrenGap: 12
},
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
style: {
flex: 1
},
children: Object(Ip.jsx)(Ep, {
block: !0,
className: "custom-form-preview-search-text",
children: null !== (t = null == n ? void 0 : n.text) && void 0 !== t ? t : "Product"
})
}), Object(Ip.jsx)(kk, {
text: i,
onClick: d
})]
}) : Object(Ip.jsx)(yj, {
className: "custom-form-preview-search",
verticalAlign: "center",
horizontalAlign: "center",
children: Object(Ip.jsx)(tT, {
size: GA.small
})
}), Object(Ip.jsxs)(tk, {
minWidth: 600,
hidden: u,
onDismiss: d,
dialogContentProps: JLe,
modalProps: {
isBlocking: !0,
styles: QLe,
dragOptions: YLe
},
children: [Object(Ip.jsx)(Nje, {
placeholder: "Search",
onChange: function(e, t) {
return b(t || "")
}
}), Object(Ip.jsx)(bEe, {
preFetch: !0,
mode: MT.single,
actions: [],
query: null != r ? r : {
post_type: [],
taxonomy: []
},
search: f,
onChange: function(e) {
var t = e.args;
if (!v.find((function(e) {
return e.key === t.id
}
))) {
var n = [{
key: t.id,
text: t.name
}];
y(n),
o(n[0])
}
},
toggleHideDialog: d
})]
})]
})
}
var $Le = function(e) {
return "post" === e ? cc : bc
}
, eRe = function(e) {
return "post" === e ? {
post_type: ["post"],
taxonomy: []
} : {
post_type: ["product"],
taxonomy: []
}
}
, tRe = ps.a.CancelToken;
function nRe(e) {
var t, n = e.data, r = e.type, i = void 0 === r ? "product" : r, o = e.languageKey, a = s.a.useState(null), l = Object(ss.a)(a, 2), c = l[0], u = l[1], d = s.a.useState(null), p = Object(ss.a)(d, 2), h = p[0], f = p[1], b = s.a.useState(!1), g = Object(ss.a)(b, 2), m = g[0], v = g[1];
s.a.useEffect((function() {
var e = tRe.source()
, t = function() {
var t = Object(Mt.a)(Nt.a.mark((function t() {
var n, r, o;
return Nt.a.wrap((function(t) {
for (; ; )
switch (t.prev = t.next) {
case 0:
return t.prev = 0,
v(!0),
n = {
per_page: 1,
include: null != c && c.key ? [null == c ? void 0 : c.key] : []
},
r = $Le(i),
t.next = 6,
r(n, e.token);
case 6:
o = t.sent,
yh()(o) && !Rt()(o) ? f(o[0]) : f(null),
v(!1),
t.next = 14;
break;
case 11:
t.prev = 11,
t.t0 = t.catch(0),
v(!1);
case 14:
case "end":
return t.stop()
}
}
), t, null, [[0, 11]])
}
)));
return function() {
return t.apply(this, arguments)
}
}();
return t(),
function() {}
}
), [c, i]);
var y = s.a.useMemo((function() {
return aZ(h, n)
}
), [h, n])
, x = s.a.useMemo((function() {
var e = Cu()(n, "type", "text")
, t = iZ(n, "text", o, "{data}")
, r = Cu()(n, "enableTextEmpty", !0)
, i = iZ(n, "defaultText", o, "")
, a = nZ(T$()(y));
return r || a ? "image" === e ? a : "" !== t && Cb()(a) ? t.replace("{data}", a) : null : i.length > 0 ? i : null
}
), [y, n, o])
, O = null !== (t = n.methods) && void 0 !== t ? t : []
, j = "post" === i ? "Post data" : "Product data"
, k = "post" === i ? "Change post" : "Change product";
return Object(Ip.jsxs)(yj, {
tokens: {
childrenGap: 16
},
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "mediumPlus",
children: "Preview"
}), Object(Ip.jsx)(ZLe, {
value: null != c ? c : {
key: null == h ? void 0 : h.id,
text: null == h ? void 0 : h.name
},
onChange: function(e) {
return u(e)
},
query: eRe(i),
textButton: k
}), m ? Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)("div", {
className: "custom-form-box-container-secondary custom-form-preview-box",
children: [Object(Ip.jsxs)(ok, {
children: [j, ":"]
}), Object(Ip.jsx)("div", {
className: "custom-form-preview-container-code custom-form-preview-container-code-loading",
children: Object(Ip.jsx)(tT, {})
})]
}), Object(Ip.jsxs)("div", {
className: "custom-form-box-container-secondary custom-form-preview-box",
children: [Object(Ip.jsx)(ok, {
children: "Output data:"
}), Object(Ip.jsx)("div", {
className: "custom-form-preview-container-code custom-form-preview-container-code-loading",
children: Object(Ip.jsx)(tT, {})
})]
}), Object(Ip.jsxs)(ok, {
className: "custom-form-preview-label-loading",
children: ["Output text: ", Object(Ip.jsx)(tT, {
size: GA.xSmall
})]
})]
}) : Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)("div", {
className: "custom-form-box-container-secondary custom-form-preview-box",
children: [Object(Ip.jsxs)(ok, {
children: [j, ":"]
}), Object(Ip.jsx)(gRe, {
content: tZ(h)
})]
}), O.length > 0 && y.length === O.length + 1 && Object(Ip.jsxs)("div", {
className: "custom-form-box-container-third custom-form-preview-box",
children: [Object(Ip.jsx)(ok, {
children: "Methods:"
}), O.map((function(e, t) {
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(Ep, {
variant: "small",
children: rZ(null == e ? void 0 : e.method)
}), Object(Ip.jsx)(gRe, {
content: tZ(y[t + 1])
}), t < O.length - 1 && Object(Ip.jsx)(yj, {
horizontalAlign: "center",
children: Object(Ip.jsx)(Pg, {
className: "custom-form-arrow",
iconName: "SortDown"
})
})]
}, t)
}
))]
}), Object(Ip.jsxs)("div", {
className: "custom-form-box-container-secondary custom-form-preview-box",
children: [Object(Ip.jsx)(ok, {
children: "Output data:"
}), Object(Ip.jsx)(gRe, {
content: tZ(T$()(y))
})]
}), Object(Ip.jsxs)(ok, {
children: ["Output text: ", Object(Ip.jsxs)(Ep, {
variant: "small",
children: ['"', x, '"']
})]
})]
})]
})
}
var rRe, iRe, oRe, aRe, lRe, sRe, cRe, uRe, dRe, pRe, hRe, fRe, bRe, gRe = function(e) {
var t = e.content;
return Object(Ip.jsx)("div", {
className: "custom-form-preview-container-code",
children: Object(Ip.jsx)(cA, {
style: {
height: 200
},
children: Object(Ip.jsx)("pre", {
className: "custom-form-preview-code",
children: Object(Ip.jsx)("code", {
children: t
})
})
})
})
}, mRe = [{
key: "listType",
text: "List",
itemType: S_.Header
}, {
key: "list_map",
text: "map",
data: {
enableField: !0,
enableOperator: !1,
enableValue: !1,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "list_filter",
text: "where",
data: {
enableField: !0,
enableOperator: !0,
enableValue: !0,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "list_get",
text: "firstWhere",
data: {
enableField: !0,
enableOperator: !0,
enableValue: !0,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "list_getByIndex",
text: "elementAt",
data: {
enableField: !0,
enableOperator: !1,
enableValue: !1,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "list_index",
text: "indexWhere",
data: {
enableField: !0,
enableOperator: !0,
enableValue: !0,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "list_join",
text: "join",
data: {
enableField: !1,
enableOperator: !1,
enableValue: !0,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "divider_1",
text: "-",
itemType: S_.Divider
}, {
key: "mapType",
text: "Map",
itemType: S_.Header
}, {
key: "map_keys",
text: "keys",
data: {
enableField: !1,
enableOperator: !1,
enableValue: !1,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "map_values",
text: "values",
data: {
enableField: !1,
enableOperator: !1,
enableValue: !1,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "map_getKey",
text: "get",
data: {
enableField: !0,
enableOperator: !1,
enableValue: !1,
enableValue1: !1,
enableValue2: !1
}
}, {
key: "divider_2",
text: "-",
itemType: S_.Divider
}, {
key: "stringType",
text: "String",
itemType: S_.Header
}, {
key: "string_replace",
text: "replaceFirst",
data: {
enableField: !1,
enableOperator: !1,
enableValue: !1,
enableValue1: !0,
enableValue2: !0
}
}, {
key: "string_replaceAll",
text: "replaceAll",
data: {
enableField: !1,
enableOperator: !1,
enableValue: !1,
enableValue1: !0,
enableValue2: !0
}
}, {
key: "string_split",
text: "split",
data: {
enableField: !1,
enableOperator: !1,
enableValue: !0,
enableValue1: !1,
enableValue2: !1
}
}], vRe = va((function(e) {
return {
language: Kc(e),
translate: Qc(e)
}
}
))((function(e) {
var t, n, r, i, o, a, l, c, u, d, p, h, f, b, g, m, v, y, x, O, j, k = e.value, w = e.onSave, C = e.type, _ = e.isTranslate, M = e.translate, S = e.language, A = !0 !== _ ? null !== (t = null == k ? void 0 : k.text) && void 0 !== t ? t : "{data}" : M ? null !== (n = null == k || null === (r = k.text) || void 0 === r ? void 0 : r[S]) && void 0 !== n ? n : "{data}" : null !== (i = null == k || null === (o = k.text) || void 0 === o ? void 0 : o.text) && void 0 !== i ? i : "{data}", T = !0 !== _ ? null !== (a = null == k ? void 0 : k.defaultText) && void 0 !== a ? a : "" : M ? null !== (l = null == k || null === (c = k.defaultText) || void 0 === c ? void 0 : c[S]) && void 0 !== l ? l : "" : null !== (u = null == k || null === (d = k.defaultText) || void 0 === d ? void 0 : d.text) && void 0 !== u ? u : "", E = s.a.useState(null !== (p = null == k ? void 0 : k.type) && void 0 !== p ? p : "text"), I = Object(ss.a)(E, 2), N = I[0], z = I[1], D = s.a.useState(A), L = Object(ss.a)(D, 2), R = L[0], P = L[1], B = s.a.useState("".concat(null !== (h = null == k ? void 0 : k.width) && void 0 !== h ? h : 100)), F = Object(ss.a)(B, 2), V = F[0], W = F[1], q = s.a.useState("".concat(null !== (f = null == k ? void 0 : k.height) && void 0 !== f ? f : 100)), H = Object(ss.a)(q, 2), U = H[0], X = H[1], G = s.a.useState(null !== (b = null == k ? void 0 : k.methods) && void 0 !== b ? b : []), K = Object(ss.a)(G, 2), Y = K[0], Q = K[1], J = s.a.useState(null === (g = null == k ? void 0 : k.enableTextEmpty) || void 0 === g || g), Z = Object(ss.a)(J, 2), $ = Z[0], ee = Z[1], te = s.a.useState(T), ne = Object(ss.a)(te, 2), re = ne[0], ie = ne[1], oe = function(e, t, n) {
var r = Il(Y, (function(r) {
r[e][t] = n
}
));
Q(r)
};
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
tokens: {
childrenGap: 20
},
children: [Object(Ip.jsxs)(yj, {
className: "custom-form-column",
horizontalAlign: "center",
children: [Object(Ip.jsxs)(yj, {
className: "custom-form-box-container custom-form-box-container-third",
children: [Object(Ip.jsx)(Ep, {
className: "custom-form-title-method",
variant: "mediumPlus",
children: "Methods"
}), Y.length > 0 && Y.map((function(e, t) {
var n, r = null == e ? void 0 : e.method, i = null == e ? void 0 : e.field, o = null !== (n = null == e ? void 0 : e.operator) && void 0 !== n ? n : "is_equal_to", a = null == e ? void 0 : e.value, l = null == e ? void 0 : e.value1, s = null == e ? void 0 : e.value2, c = mRe.find((function(e) {
return e.key === r
}
)), u = Cu()(null == c ? void 0 : c.data, "enableField", !0), d = Cu()(null == c ? void 0 : c.data, "enableOperator", !0), p = Cu()(null == c ? void 0 : c.data, "enableValue", !0), h = Cu()(null == c ? void 0 : c.data, "enableValue1", !0), f = Cu()(null == c ? void 0 : c.data, "enableValue2", !0);
return Object(Ip.jsxs)(yj, {
horizontalAlign: "center",
children: [Object(Ip.jsxs)(yj, {
className: "custom-form-box-method custom-form-box-method-content",
tokens: {
childrenGap: 12
},
children: [Object(Ip.jsx)(pM, {
label: "Method type",
placeholder: "Select...",
options: mRe,
selectedKey: r,
onChange: function(e, n) {
var r;
null != n && n.key && oe(t, "method", null === (r = n.key) || void 0 === r ? void 0 : r.toString())
}
}), u && Object(Ip.jsx)(jk, {
label: "Field name",
value: i,
onChange: function(e, n) {
return oe(t, "field", null != n ? n : "")
}
}), d && Object(Ip.jsx)(pM, {
label: "Operator",
placeholder: "Select...",
selectedKey: o,
options: ch,
onChange: function(e, n) {
var r;
return oe(t, "operator", (null !== (r = null == n ? void 0 : n.key) && void 0 !== r ? r : "").toString())
}
}), p && Object(Ip.jsx)(jk, {
label: "Value",
value: a,
onChange: function(e, n) {
return oe(t, "value", null != n ? n : "")
}
}), h && Object(Ip.jsx)(jk, {
label: "Value 1",
value: l,
onChange: function(e, n) {
return oe(t, "value1", null != n ? n : "")
}
}), f && Object(Ip.jsx)(jk, {
label: "Value 2",
value: s,
onChange: function(e, n) {
return oe(t, "value2", null != n ? n : "")
}
}), Object(Ip.jsx)(yj, {
horizontal: !0,
horizontalAlign: "end",
children: Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "Delete"
},
title: "Delete",
ariaLabel: "Delete",
onClick: function() {
return function(e) {
var t = Il(Y, (function(t) {
t.splice(e, 1)
}
));
Q(t)
}(t)
}
})
})]
}), Object(Ip.jsx)(Pg, {
className: "custom-form-arrow",
iconName: "SortDown"
})]
}, t)
}
)), Object(Ip.jsx)(yj, {
horizontalAlign: "center",
children: Object(Ip.jsx)(kk, {
onClick: function() {
return function() {
var e = Il(Y, (function(e) {
e.push({
method: "map_getKey",
field: "",
operator: "is_equal_to",
value: "",
value1: "",
value2: ""
})
}
));
Q(e)
}()
},
iconProps: {
iconName: "CalculatorAddition"
},
text: "Add Method"
})
})]
}), Object(Ip.jsx)(Pg, {
className: "custom-form-arrow",
iconName: "SortDown"
}), Object(Ip.jsxs)(yj, {
className: "custom-form-box-container",
tokens: {
childrenGap: 12
},
children: [Object(Ip.jsx)(Ep, {
variant: "mediumPlus",
children: "Display"
}), Object(Ip.jsx)(pM, {
label: "Type",
placeholder: "Select...",
options: [{
key: "text",
text: "Text"
}, {
key: "image",
text: "Image"
}],
selectedKey: N,
onChange: function(e, t) {
var n;
null != t && t.key && (null == t ? void 0 : t.key.toString()) !== N && z(null === (n = t.key) || void 0 === n ? void 0 : n.toString())
}
}), "text" === N && Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
verticalAlign: "center",
style: {
width: "100%"
},
children: [Object(Ip.jsx)(ok, {
children: "Text"
}), _ && Object(Ip.jsx)("span", {
className: "language-ms",
children: M ? S : null === (m = window) || void 0 === m || null === (v = m.app_builder) || void 0 === v ? void 0 : v.language
})]
}), Object(Ip.jsx)(jk, {
value: R,
onChange: function(e, t) {
return P(null != t ? t : [])
},
styles: {
root: {
width: "100%",
marginBottom: 16
}
},
description: 'You should use "{data}" to show text field data. EX: A, {data}'
})]
}), "image" === N && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(uIe, {
label: "Width",
labelPosition: cy.top,
value: V,
min: 0,
max: 4e3,
step: 1,
onChange: function(e, t) {
return W(null != t ? t : "")
}
}), Object(Ip.jsx)(uIe, {
label: "Height",
labelPosition: cy.top,
value: U,
min: 0,
max: 4e3,
step: 1,
onChange: function(e, t) {
return X(null != t ? t : "")
}
})]
}), Object(Ip.jsx)($_, {
checked: $,
label: "Hide empty data",
onChange: function(e, t) {
return ee(t)
}
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsxs)(yj, {
horizontal: !0,
horizontalAlign: "space-between",
verticalAlign: "center",
style: {
width: "100%"
},
children: [Object(Ip.jsx)(ok, {
children: "Default data"
}), _ && Object(Ip.jsx)("span", {
className: "language-ms",
children: M ? S : null === (y = window) || void 0 === y || null === (x = y.app_builder) || void 0 === x ? void 0 : x.language
})]
}), Object(Ip.jsx)(jk, {
value: re,
onChange: function(e, t) {
return ie(null != t ? t : [])
},
styles: {
root: {
width: "100%",
marginBottom: 16
}
},
description: "Used when Required data = true "
})]
})]
})]
}), Object(Ip.jsx)(yj, {
className: "custom-form-column",
horizontalAlign: "stretch",
children: Object(Ip.jsx)(nRe, {
data: {
type: N,
text: R,
methods: Y,
enableTextEmpty: $,
defaultText: re
},
type: C,
languageKey: M ? S : null === (O = window) || void 0 === O || null === (j = O.app_builder) || void 0 === j ? void 0 : j.language
})
})]
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
verticalAlign: "center",
horizontalAlign: "space-between",
style: {
marginTop: 32
},
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
children: Object(Ip.jsx)(QA, {
href: "#",
children: "Doc"
})
}), Object(Ip.jsxs)(yj, {
horizontal: !0,
tokens: {
childrenGap: 8
},
children: [Object(Ip.jsx)(kk, {
onClick: function() {
var e = !0 !== _ ? R : _t(_t({}, null == k ? void 0 : k.text), {}, Object(wt.a)({}, M ? S : "text", R))
, t = !0 !== _ ? re : _t(_t({}, null == k ? void 0 : k.defaultText), {}, Object(wt.a)({}, M ? S : "text", re));
w({
methods: Y,
type: N,
text: e,
width: V,
height: U,
enableTextEmpty: $,
defaultText: t
})
},
text: "Save"
}), Object(Ip.jsx)(aj, {
onClick: function() {
return w()
},
text: "Cancel"
})]
})]
})]
})
}
)), yRe = (n(538),
Mu.b.div(rRe || (rRe = _u(["\n display: flex;\n align-items: center;\n"])))), xRe = Mu.b.p(iRe || (iRe = _u(["\n margin: 0px;\n flex: 1;\n"]))), ORe = {
moveMenuItemText: "Move",
closeMenuItemText: "Close",
menu: GO
}, jRe = {
main: {
maxWidth: 800,
maxHeight: 726
}
}, kRe = {
main: {
width: "100vw !important",
height: "100vh !important",
maxWidth: "100vw !important",
maxHeight: "auto !important",
minWidth: "auto !important",
minHeight: "auto !important"
}
}, wRe = {
text: hke,
items: xSe,
template: sSe,
switch: MSe,
select: $je,
alignment: LSe,
color: Oje,
image: qSe,
type: ZTe,
slider: aEe,
action: YEe,
spacing: tIe,
"input-number": pIe,
icon: ENe,
heading: DNe,
font: RNe,
size: UNe,
"input-datetime": gDe,
"select-tab": vDe,
html: jDe,
picker: function(e) {
var t, n, r = Ck(!0), i = Object(ss.a)(r, 2), o = i[0], a = i[1].toggle, c = Object(l.useState)(""), u = Object(ss.a)(c, 2), d = u[0], p = u[1], h = s.a.useState(yh()(e.value) ? e.value : []), f = Object(ss.a)(h, 2), b = f[0], g = f[1];
Object(l.useEffect)((function() {
g(yh()(e.value) ? e.value : [])
}
), [e.value]);
var m = s.a.useRef(null)
, v = e.label
, y = e.info
, x = e.onChange
, O = null !== (t = null == e || null === (n = e.props) || void 0 === n ? void 0 : n.query) && void 0 !== t ? t : {
post_type: [],
taxonomy: []
};
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(qA, {
label: v,
info: y
}), Object(Ip.jsx)(NTe, {
pickerSuggestionsProps: SDe,
resolveDelay: 3e3,
className: "ms-PeoplePicker",
selectedItems: b,
onChange: function(e) {
g(e),
x(e)
},
inputProps: {
onClick: function() {
return a()
}
},
componentRef: m,
disabled: !1,
itemLimit: 100,
onRemoveSuggestion: function(e) {
return console.log(e)
},
styles: {
root: {
backgroundColor: "#fff"
}
}
}, "controlled"), Object(Ip.jsxs)(tk, {
minWidth: 600,
hidden: o,
onDismiss: a,
dialogContentProps: MDe,
modalProps: {
isBlocking: !0,
styles: _De,
dragOptions: CDe
},
children: [Object(Ip.jsx)(Nje, {
placeholder: "Search",
onChange: function(e, t) {
return p(t || "")
}
}), Object(Ip.jsx)(bEe, {
preFetch: !0,
mode: MT.multiple,
actions: [],
query: O,
search: d,
onChange: function(e) {
if (yh()(e)) {
var t = e.map((function(e) {
return {
key: e.args.id,
text: e.args.name
}
}
))
, n = wDe()(b.concat(t), "key");
g(n),
x(n)
} else {
var r = e.args;
if (!b.find((function(e) {
return e.key === r.id
}
))) {
var i = b.concat([{
key: r.id,
text: r.name
}]);
g(i),
x(i)
}
}
},
toggleHideDialog: a
})]
})]
})
},
"picker-single": function(e) {
var t, n, r = Ck(!0), i = Object(ss.a)(r, 2), o = i[0], a = i[1].toggle, c = Object(l.useState)(""), u = Object(ss.a)(c, 2), d = u[0], p = u[1], h = s.a.useState(kb()(e.value) && null !== Cu()(e.value, "key", null) ? [e.value] : []), f = Object(ss.a)(h, 2), b = f[0], g = f[1];
Object(l.useEffect)((function() {
g(kb()(e.value) && null !== Cu()(e.value, "key", null) ? [e.value] : [])
}
), [e.value]);
var m = s.a.useRef(null)
, v = e.label
, y = e.info
, x = e.onChange
, O = null !== (t = null == e || null === (n = e.props) || void 0 === n ? void 0 : n.query) && void 0 !== t ? t : {
post_type: [],
taxonomy: []
};
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(qA, {
label: v,
info: y
}), Object(Ip.jsx)(NTe, {
pickerSuggestionsProps: IDe,
resolveDelay: 3e3,
className: "ms-PeoplePicker",
selectedItems: b,
onChange: function(e) {
e.length < 2 && (g(e),
x(1 === e.length ? e[0] : {}))
},
inputProps: {
onClick: function() {
return a()
}
},
componentRef: m,
disabled: !1,
itemLimit: 100,
onRemoveSuggestion: function(e) {
return console.log(e)
},
styles: {
root: {
backgroundColor: "#fff"
}
}
}, "controlled"), Object(Ip.jsxs)(tk, {
minWidth: 600,
hidden: o,
onDismiss: a,
dialogContentProps: EDe,
modalProps: {
isBlocking: !0,
styles: TDe,
dragOptions: ADe
},
children: [Object(Ip.jsx)(Nje, {
placeholder: "Search",
onChange: function(e, t) {
return p(t || "")
}
}), Object(Ip.jsx)(bEe, {
preFetch: !0,
mode: MT.single,
actions: [],
query: O,
search: d,
onChange: function(e) {
var t = e.args;
if (!b.find((function(e) {
return e.key === t.id
}
))) {
var n = [{
key: t.id,
text: t.name
}];
g(n),
x(n[0])
}
},
toggleHideDialog: a
})]
})]
})
},
corner: HDe,
list: tLe,
fields: rLe,
"button-group": lLe,
position: dU,
"picker-country-number": function(e) {
var t = e.id
, n = e.label
, r = e.info
, i = e.onChange
, o = e.value
, a = l.useRef(null);
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(qA, {
label: n,
info: r
}), Object(Ip.jsx)(NTe, {
onResolveSuggestions: function(e, t) {
if (e) {
var n = function(e) {
return nh.filter((function(t) {
return dLe(t.text, e) || dLe(t.secondaryText, e)
}
))
}(e);
return uLe(n = pLe(n, t))
}
return []
},
onEmptyInputFocus: function(e) {
return uLe(pLe(nh.slice(0, 10), e))
},
getTextFromItem: hLe,
pickerSuggestionsProps: sLe,
className: "ms-PeoplePicker app-builder-input-number",
onValidateInput: fLe,
selectionAriaLabel: "Selected countries",
removeButtonAriaLabel: "Remove",
styles: {
root: {
backgroundColor: "#fff"
}
},
selectedItems: cLe(o),
onChange: function(e) {
return i(e ? e.map((function(e) {
return e.key
}
)) : [])
},
componentRef: a,
onInputChange: bLe,
disabled: !1
}, t + "normal")]
})
},
conditional: function(e) {
var t, n = Ck(!0), r = Object(ss.a)(n, 2), i = r[0], o = r[1].toggle, a = e.value, l = e.defaultValue, s = e.label, c = e.info, u = e.onChange, d = null != a ? a : l, p = function(e, t) {
return OLe()(t, (function(t) {
return t.key === e
}
)) > -1 ? e : Cu()(t, "0.key", null)
}(Cu()(d, "when_conditionals", ""), sh), h = Cu()(d, "conditionals", []), f = function(e, t) {
u(_t(_t({}, null != d ? d : {}), {}, Object(wt.a)({}, e, t)))
};
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(qA, {
label: s,
info: c
}), Object(Ip.jsx)(pM, {
placeholder: "Select...",
selectedKey: p,
options: sh,
onChange: function(e, t) {
return f("when_conditionals", null == t ? void 0 : t.key)
}
}), p && "always" !== p && Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)("br", {}), Object(Ip.jsx)(kk, {
onClick: o,
text: "Setting Conditionals"
})]
}), Object(Ip.jsx)(tk, {
minWidth: 768,
hidden: i,
onDismiss: o,
dialogContentProps: DLe,
modalProps: {
isBlocking: !0,
styles: zLe,
dragOptions: NLe
},
children: Object(Ip.jsx)(ILe, {
keyVariables: null === (t = e.props) || void 0 === t ? void 0 : t.keyVariables,
value: h,
onChange: function(e) {
o(),
yh()(e) && f("conditionals", e)
}
})
})]
})
},
query: KLe,
"query-data-selector": function(e) {
var t, n, r = s.a.useState(!0), i = Object(ss.a)(r, 2), o = i[0], a = i[1], l = s.a.useState(!0), c = Object(ss.a)(l, 2), u = c[0], d = c[1], p = e.label, h = e.value, f = e.defaultValue, b = e.isTranslate, g = e.onChange, m = s.a.useCallback((function() {
return a((function(e) {
return !e
}
))
}
), []), v = s.a.useCallback((function() {
return d((function(e) {
return !e
}
))
}
), []);
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsxs)(yRe, {
children: [Object(Ip.jsx)(xRe, {
children: Object(Ip.jsx)(ok, {
styles: sS,
children: p
})
}), Object(Ip.jsx)(kk, {
onClick: m,
children: "Query"
})]
}), Object(Ip.jsx)(tk, {
minWidth: 768,
hidden: o,
onDismiss: m,
dialogContentProps: {
type: ej.largeHeader,
title: "Query data selector",
topButtonsProps: [{
iconProps: {
iconName: u ? "FullScreen" : "BackToWindow"
},
onClick: function() {
return v()
}
}, {
iconProps: {
iconName: "ChromeClose"
},
onClick: function() {
return m()
}
}],
showCloseButton: !1
},
modalProps: {
isBlocking: !0,
styles: u ? jRe : kRe,
dragOptions: ORe
},
children: Object(Ip.jsx)(vRe, {
value: null != h ? h : f,
onSave: function(e) {
e && g(e),
m()
},
isTranslate: b,
type: null !== (t = null === (n = e.props) || void 0 === n ? void 0 : n.type) && void 0 !== t ? t : "product"
})
})]
})
}
}, CRe = function(e) {
var t = e.field
, n = e.value
, r = e.onChange
, i = e.onBlur
, o = wRe[t.input];
return Object(Ip.jsx)(o, _t(_t({}, t), {}, {
onChange: r,
onBlur: i,
value: n
}))
}, _Re = Mu.b.div(oRe || (oRe = _u([""]))), MRe = Mu.b.div(aRe || (aRe = _u(["\n margin-bottom: 16px;\n"]))), SRe = function(e) {
var t = e.fields
, n = e.value
, r = e.onChange
, i = e.onBlur
, o = e.type
, a = Ca(mu)
, l = Ca(gu)
, s = a;
return "configs" === o && (s = l),
"fields" === o && (s = n),
Object(Ip.jsx)(_Re, {
children: Object.keys(t).map((function(e) {
var o = Cu()(t[e], ["props", "relationship"])
, a = Cu()(t[e], ["props", "relationship2"]);
return o && !wh(Cu()(s, o.paths), o.value, o.operator) || a && !wh(Cu()(s, a.paths), a.value, a.operator) ? null : Object(Ip.jsx)(MRe, {
children: Object(Ip.jsx)(CRe, {
field: t[e],
value: n[e],
onChange: function(t) {
return r(e, t)
},
onBlur: i
})
}, e)
}
))
})
}, ARe = Mu.b.div(lRe || (lRe = _u(["\n display: flex;\n flex-flow: row;\n height: 100%;\n width: 100%;\n position: relative;\n"]))), TRe = Mu.b.div(sRe || (sRe = _u(["\n flex: 0 1 auto;\n"]))), ERe = Mu.b.div(cRe || (cRe = _u(["\n flex: 1 1 auto;\n //margin-top: -83px;\n"]))), IRe = Mu.b.div(uRe || (uRe = _u(["\n //margin-top: 20px;\n text-align: center;\n"]))), NRe = (Mu.b.div(dRe || (dRe = _u(["\n background-color: #f4f6fc;\n"]))),
Mu.b.div(pRe || (pRe = _u(["\n width: 360px;\n position: absolute;\n top: 0;\n right: ", ";\n height: calc(100% + 70px);\n overflow: hidden;\n background-color: #f4f6fc;\n z-index: 9998;\n border-left: 1px solid #eaecf2;\n transition: all 100ms;\n"])), (function(e) {
return e.collapsible ? "-360px" : "0"
}
))), zRe = Mu.b.div(hRe || (hRe = _u(["\n width: 30px;\n height: 80px;\n position: absolute;\n background-color: #f4f6fc;\n font-size: 16px;\n top: 100px;\n right: ", ";\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-radius: 2px 0 0 2px;\n z-index: 9999;\n transition: all 100ms;\n"])), (function(e) {
return e.collapsible ? "0" : "360px"
}
)), DRe = Mu.b.div(fRe || (fRe = _u([""]))), LRe = Mu.b.div(bRe || (bRe = _u(["\n padding: 20px;\n"]))), RRe = {
linkInMenu: void 0,
overflowMenuButton: void 0,
root: {
padding: "10px 20px"
},
link: {},
linkContent: {},
linkIsSelected: {},
text: {},
count: {},
icon: {},
itemContainer: {}
}, PRe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e, r) {
var i;
return Object(St.a)(this, n),
(i = t.call(this, e, r)).state = {
height: 768,
collapsible: !1
},
i.updateHeight = function() {
var e, t = document.getElementById("app-builder-sidebar-left"), n = (null !== (e = null == t ? void 0 : t.clientHeight) && void 0 !== e ? e : 768) - 120;
i.setState({
height: n
})
}
,
i._collapsible = function() {
i.setState({
collapsible: !i.state.collapsible
})
}
,
window.addEventListener("resize", (function(e) {
i.updateHeight(),
e.preventDefault()
}
)),
i
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this.updateHeight()
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.activeWidget
, n = e.updateGeneral
, r = e.updateStyles
, i = e.onBlurInput
, o = e.updateLayout;
if (!t)
return null;
var a = Hfe[t.type]
, l = a.fields
, s = a.layout
, c = a.styles
, u = this.state.height;
return Object(Ip.jsxs)(Fq, {
children: [Object(Ip.jsx)(NRe, {
collapsible: this.state.collapsible,
children: Object(Ip.jsx)(DRe, {
children: Object(Ip.jsxs)(QC, {
styles: RRe,
children: [l ? Object(Ip.jsx)(EC, {
headerText: "General",
itemIcon: "CubeShape",
children: Object(Ip.jsx)(cA, {
style: {
height: u
},
children: Object(Ip.jsx)(LRe, {
children: Object(Ip.jsx)(SRe, {
fields: l,
value: t.fields,
onChange: function(e, r) {
return n({
widgetId: t.id,
fieldId: e,
value: r
})
},
onBlur: i
})
})
})
}) : null, c ? Object(Ip.jsx)(EC, {
headerText: "Style",
itemIcon: "EditCreate",
children: Object(Ip.jsx)(cA, {
style: {
height: u
},
children: Object(Ip.jsx)(LRe, {
children: Object(Ip.jsx)(SRe, {
fields: c,
value: t.styles,
onChange: function(e, n) {
return r({
widgetId: t.id,
fieldId: e,
value: n
})
},
onBlur: i
})
})
})
}) : null, s ? Object(Ip.jsx)(EC, {
headerText: "Layout",
itemIcon: "LargeGrid",
children: Object(Ip.jsx)(cA, {
style: {
height: u
},
children: Object(Ip.jsx)(bH, {
widgetId: t.id,
type: t.type,
layout: s,
value: t.layout,
onChange: o
})
})
}) : null]
})
})
}), Object(Ip.jsx)(zRe, {
onClick: this._collapsible,
collapsible: this.state.collapsible,
children: Object(Ip.jsx)(lp, {
iconName: this.state.collapsible ? "DoubleChevronLeft" : "DoubleChevronRight12"
})
})]
})
}
}]),
n
}(l.Component), BRe = va((function(e) {
return {
activeWidget: mu(e)
}
}
), {
updateLayout: ou,
updateGeneral: au,
updateStyles: lu,
onBlurInput: cu
})(PRe), FRe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.props
, t = e.widget
, n = e.width
, r = Ufe[t.type];
return r ? Object(Ip.jsx)(r, {
widget: t,
width: n
}) : t.type
}
}]),
n
}(l.Component);
FRe.defaultProps = {
width: 362
};
var VRe = FRe;
function WRe(e) {
var t = Math.random().toString(36).substring(7)
, n = +new Date;
return "".concat(e, "_").concat(n, "_").concat(t)
}
var qRe, HRe, URe, XRe, GRe, KRe, YRe, QRe, JRe, ZRe, $Re, ePe, tPe, nPe, rPe = Mu.b.div(qRe || (qRe = _u(["\n position: fixed;\n top: ", "px;\n left: ", "px;\n //left: calc(100% + 30px);\n //top: calc(50% - 96px);\n //top: 100%;\n z-index: 9998;\n"])), (function(e) {
return e.top
}
), (function(e) {
return e.left
}
)), iPe = Mu.b.div(HRe || (HRe = _u(["\n border: 1px solid #e0e0e0;\n border-radius: 3px;\n width: 32px;\n"]))), oPe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e))._onScroll = function(e) {
if (r.props.widget && r.props.widget.id) {
var t, n, i, o = document.getElementById(r.props.widget.id), a = 60 + (null !== (t = null == o ? void 0 : o.offsetTop) && void 0 !== t ? t : 0) + (null !== (n = null == o ? void 0 : o.offsetHeight) && void 0 !== n ? n : 0) / 2 - 91;
r.setState({
position: a > 669 ? 669 : a,
left: (null !== (i = null == o ? void 0 : o.offsetLeft) && void 0 !== i ? i : 0) + 395
})
}
}
,
r._up = function() {
var e = r.props
, t = e.reorderWidget
, n = e.index;
t({
source: n,
destination: n - 1
})
}
,
r._down = function() {
var e = r.props
, t = e.reorderWidget
, n = e.index;
t({
source: n,
destination: n + 1
})
}
,
r._duplicate = function() {
var e = r.props
, t = e.index
, n = e.widget
, i = e.addWidget
, o = WRe(n.type);
i({
index: t + 1,
id: o,
widget: _t(_t({}, n), {}, {
id: o
})
})
}
,
r.state = {
position: 0,
left: 0
},
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
var e = this;
this._onScroll(),
window.addEventListener("resize", (function(t) {
e._onScroll(),
t.preventDefault()
}
))
}
}, {
key: "render",
value: function() {
var e = this.props
, t = e.deleteWidget
, n = e.index
, r = e.lastIndex
, i = this.state
, o = i.position
, a = i.left;
return Object(Ip.jsxs)(rPe, {
top: o,
left: a,
children: [Object(Ip.jsx)(yw, {
padding: "0 0 10px 0",
children: Object(Ip.jsx)(Ek, {
typebtn: "primary",
title: "Duplicate",
onClick: this._duplicate,
children: Object(Ip.jsx)(lp, {
iconName: "Copy"
})
})
}), Object(Ip.jsxs)(iPe, {
children: [Object(Ip.jsx)(Fj, {
disabled: 0 === n,
iconProps: {
iconName: "ChevronUp"
},
title: "Move Up",
ariaLabel: "Move Up",
onClick: this._up
}), Object(Ip.jsx)(Fj, {
iconProps: {
iconName: "InfoSolid"
},
title: "Document",
ariaLabel: "Document"
}), Object(Ip.jsx)(Fj, {
disabled: n === r - 1,
iconProps: {
iconName: "ChevronDown"
},
title: "Move Down",
ariaLabel: "Delete",
onClick: this._down
})]
}), Object(Ip.jsx)(yw, {
padding: "10px 0 0 0",
children: Object(Ip.jsx)(Ek, {
typebtn: "errorprimary",
title: "Delete",
onClick: function() {
return t({
index: n
})
},
children: Object(Ip.jsx)(lp, {
iconName: "StatusErrorFull"
})
})
})]
})
}
}]),
n
}(l.Component), aPe = va((function(e) {
return {}
}
), {
deleteWidget: iu,
reorderWidget: ru,
addWidget: nu
})(oPe), lPe = Mu.b.div(URe || (URe = _u(["\n position: relative;\n opacity: ", ';\n &:before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: ', ";\n z-index: 9998;\n display: ", ";\n }\n &:hover{\n .widget-edit {\n display: block;\n }\n }\n"])), (function(e) {
return e.disable ? .5 : 1
}
), (function(e) {
return e.active ? "1px dashed #000" : "none"
}
), (function(e) {
return e.active ? "block" : "none"
}
)), sPe = Mu.b.span(XRe || (XRe = _u(["\n width: 30px;\n height: 30px;\n position: absolute;\n left: 5px;\n top: 5px;\n cursor: pointer;\n border-radius: 30px;\n display: ", ";\n text-align: center;\n border: 1px solid #21BA45;\n border: ", ";\n span {\n margin: 3px;\n width: 25px;\n height: 25px;\n font-size: 10px;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 100%;\n background-color: #21BA45;\n color: white;\n }\n"])), (function(e) {
return e.active ? "block" : "none"
}
), (function(e) {
return e.active ? "1px solid #000001" : "1px solid #dee2e6"
}
)), cPe = Mu.b.div(GRe || (GRe = _u(["\n position: relative;\n background: ", ";\n"])), (function(e) {
return e.active ? "#F4F6FC" : "white"
}
)), uPe = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam"], dPe = Mu.b.div(KRe || (KRe = _u(["\n width: 395px;\n display: inline-block;\n margin-left: 70px;\n"]))), pPe = Mu.b.div(YRe || (YRe = _u(["\n height: 700px;\n overflow: auto;\n scroll-behavior: auto;\n"]))), hPe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e, t, n = this.props, r = n.widgetIds, i = n.widgets, o = n.selectWidget, a = n.activeWidget, l = n.canSelect, s = n.language, c = n.isDragDisabled, u = document.getElementById("app-builder-preview-customer"), d = null !== (e = null == u ? void 0 : u.clientWidth) && void 0 !== e ? e : 395;
return Object(Ip.jsx)(pPe, {
id: "app-builder-preview-root",
dir: (t = s,
t ? uPe.includes(t) ? "rtl" : "ltr" : "auto"),
children: Object(Ip.jsx)(dPe, {
id: "app-builder-preview-inside",
children: Object(Ip.jsx)(LMe, {
droppableId: "droppable2",
isDropDisabled: c,
children: function(e, t) {
return Object(Ip.jsxs)("div", _t(_t({
id: "app-builder-preview-customer",
ref: e.innerRef
}, e.droppableProps), {}, {
style: _t(_t({}, (n = t.isDraggingOver,
{
background: n ? "lightblue" : "#fff"
})), {}, {
minHeight: 668,
borderRadius: 4,
padding: 16.5,
boxShadow: "inset 0px 0px 0px 16.5px #E3E4E8"
}),
children: [r.map((function(e, t) {
var n = a && a.id === e && l;
return Object(Ip.jsx)(IMe, {
draggableId: e,
index: t,
isDragDisabled: c,
children: function(a) {
return Object(Ip.jsxs)("div", {
id: e,
style: {
position: "relative"
},
children: [n && Object(Ip.jsx)(aPe, {
widget: i[e],
index: t,
lastIndex: r.length
}), Object(Ip.jsx)("div", _t(_t(_t({
ref: a.innerRef
}, a.draggableProps), a.dragHandleProps), {}, {
children: Object(Ip.jsxs)(lPe, {
onClick: function() {
return c ? {} : o(e)
},
active: n,
disable: i[e].disable,
children: [Object(Ip.jsx)(VRe, {
widget: i[e],
width: d - 33
}, e), Object(Ip.jsx)(sPe, {
className: "widget-edit",
onClick: function() {
return c ? {} : o(e)
},
active: n,
disable: i[e].disable,
children: Object(Ip.jsx)("span", {
children: Object(Ip.jsx)(lp, {
iconName: "Edit"
})
})
})]
})
}))]
})
}
}, e)
}
)), e.placeholder]
}));
var n
}
})
})
})
}
}]),
n
}(l.Component), fPe = va((function(e) {
return {
activeWidget: mu(e),
canSelect: ub(e),
language: Kc(e)
}
}
), {
selectWidget: Bc
})(hPe), bPe = Object(Mu.b)(Pg)(QRe || (QRe = _u(["\n font-size: 20px;\n margin-bottom: 10px;\n"]))), gPe = Mu.b.div(JRe || (JRe = _u(["\n font-size: 12px;\n line-height: 20px;\n min-height: 40px;\n"])));
function mPe(e) {
var t;
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)("div", {
style: {
color: null !== (t = e.color) && void 0 !== t ? t : "inherit"
},
children: Object(Ip.jsx)(bPe, {
iconName: e.icon
})
}), Object(Ip.jsx)(gPe, {
children: e.name
})]
})
}
var vPe, yPe = Mu.b.div(ZRe || (ZRe = _u(["\n border-color: rgb(126, 130, 164, 0.1);\n border-bottom-width: 1px;\n border-bottom-style: solid;\n"]))), xPe = Mu.b.div($Re || ($Re = _u(["\n margin: 0px -5px;\n margin-bottom: 4px;\n display: flex;\n flex-wrap: wrap;\n"]))), OPe = Mu.b.div(ePe || (ePe = _u(["\n display: inline-block;\n flex: 0 0 calc(50% - 10px);\n max-width: calc(50% - 10px);\n position: relative;\n background-color: #fff;\n margin: 5px 5px 10px;\n text-align: center;\n border-radius: 4px;\n"]))), jPe = Mu.b.div(tPe || (tPe = _u(["\n padding: 14px 0;\n display: flex;\n align-items: center;\n cursor: pointer;\n"]))), kPe = Mu.b.div(nPe || (nPe = _u(["\n margin: 0;\n flex: 1;\n display: flex;\n color: ", ";\n"])), (function(e) {
var t;
return null !== (t = e.color) && void 0 !== t ? t : "#000"
}
)), wPe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).state = {
isShow: !0
},
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.title
, r = t.items
, i = t.style
, o = t.isDragDisabled
, a = t.group
, l = this.state.isShow;
return Object(Ip.jsxs)(yPe, {
style: i && i,
children: [Object(Ip.jsxs)(jPe, {
onClick: function() {
return e.setState({
isShow: !l
})
},
children: [Object(Ip.jsxs)(kPe, {
color: a ? a.color : "#ccc",
children: [n, a && a.icon ? Object(Ip.jsx)(Lg, {
style: {
marginLeft: 10
},
src: a.icon,
decoding: "auto"
}) : null]
}), Object(Ip.jsx)(Pg, {
iconName: l && !o ? "ChevronDown" : "ChevronRight"
})]
}), l && !o && Object(Ip.jsx)(xPe, {
children: r.filter((function(e) {
return !e.hidden
}
)).map((function(e) {
return Object(Ip.jsx)(IMe, {
draggableId: e.id,
index: Object.keys(Hfe).findIndex((function(t) {
return t === e.id
}
)),
isDragDisabled: o,
children: function(t, n) {
var r, i, l, s, c, u, d, p, h, f;
return Object(Ip.jsxs)(OPe, {
style: {
boxShadow: mi.elevation4,
opacity: o ? .5 : 1
},
children: [Object(Ip.jsx)("div", _t(_t(_t({
ref: t.innerRef
}, t.draggableProps), t.dragHandleProps), {}, {
style: (h = n.isDragging,
f = t.draggableProps.style,
_t(_t({
userSelect: "none",
padding: 16,
background: h ? "#fff" : "transparent"
}, f), {}, {
transform: h ? f.transform : null,
border: h ? "1px dashed #000" : "none",
width: h ? "362px" : "auto",
borderRadius: 4
})),
children: Object(Ip.jsx)(mPe, {
name: null !== (r = null === (i = Hfe[e.id]) || void 0 === i ? void 0 : i.name) && void 0 !== r ? r : e.id,
icon: null !== (l = null === (s = Hfe[e.id]) || void 0 === s ? void 0 : s.icon) && void 0 !== l ? l : "Error",
color: a ? a.color : ""
}, e.id)
})), n.isDragging && Object(Ip.jsx)("div", {
style: {
padding: 16
},
children: Object(Ip.jsx)(mPe, {
name: null !== (c = null === (u = Hfe[e.id]) || void 0 === u ? void 0 : u.name) && void 0 !== c ? c : e.id,
icon: null !== (d = null === (p = Hfe[e.id]) || void 0 === p ? void 0 : p.icon) && void 0 !== d ? d : "Error",
color: a ? a.color : ""
}, e.id)
})]
})
}
}, e.id)
}
))
})]
})
}
}]),
n
}(l.Component), CPe = wPe, _Pe = Mu.b.div(vPe || (vPe = _u(["\n width: 360px;\n display: block;\n background-color: #f4f6fc;\n color: #7e82a4;\n padding: 10px 0;\n height: calc(", " - 71px);\n border-left: 1px solid rgba(0, 0, 0, 0.1);\n border-right: 1px solid rgba(0, 0, 0, 0.1);\n text-align: left;\n position: absolute;\n top: 70px;\n left: 70px;\n"])), (function(e) {
return e.height + "px"
}
)), MPe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = window.screen.height;
return Object(Ip.jsx)("div", {
className: "ms-motion-slideRightIn",
children: Object(Ip.jsx)(_Pe, {
height: e,
children: this.props.children
})
})
}
}]),
n
}(l.Component), SPe = MPe, APe = {
screens_home: {
name: {
id: "name",
input: "text",
defaultValue: "Home",
label: "Screen Name",
props: {
placeholder: "Home Page",
disabled: !0
}
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading: {
id: "__heading",
input: "heading",
defaultValue: "",
label: "Screen Layout"
},
extendBody: {
id: "extendBody",
input: "switch",
defaultValue: !0,
label: "Extend Body",
info: "The content body will be visible through the bottom tabs"
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
props: {
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
},
label: "Extend Body Behind AppBar",
info: "The Body will aligned with the top of the Appbar,working only with Fixed App style"
},
enableStackLayout: {
id: "enableStackLayout",
input: "switch",
defaultValue: !1,
label: "Stack Layout"
},
initialChildSize: {
id: "initialChildSize",
input: "slider",
defaultValue: .5,
label: "Initial Child Size",
info: "Work only with Enable stack layout",
props: {
min: 0,
step: .1,
max: 1,
relationship: {
paths: ["enableStackLayout"],
operator: "==",
value: !0
}
}
},
minHeightStack: {
id: "minHeightStack",
input: "slider",
defaultValue: .5,
label: "Min first element distance to top.",
info: "Work only with Enable stack layout",
props: {
min: 0,
step: .1,
max: 1,
relationship: {
paths: ["enableStackLayout"],
operator: "==",
value: !0
}
}
},
maxHeightStack: {
id: "maxHeightStack",
input: "slider",
defaultValue: 1,
label: "Max first element distance to top.",
info: "Work only with Enable stack layout",
props: {
min: 0,
step: .1,
max: 1,
relationship: {
paths: ["enableStackLayout"],
operator: "==",
value: !0
}
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableAppbar: {
id: "enableAppbar",
input: "switch",
defaultValue: !0,
label: "Enable Appbar"
},
appBarType: {
id: "appBarType",
input: "select",
defaultValue: "floating",
label: "Type Appbar",
props: {
options: [{
key: "floating",
text: "Floating"
}, {
key: "fixed",
text: "Fixed"
}, {
key: "scroll",
text: "Scroll"
}]
}
},
appbarColorOnTop: {
id: "appbarColorOnTop",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
info: "This config working only fixed layout helpful when make the transparent appbar or change color when scroll content on top",
label: "Appbar Color on Top",
props: {
type: "fluentui",
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
}
},
iconAppbarColorOnTop: {
id: "iconAppbarColorOnTop",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
info: "This config working only fixed layout helpful when make the transparent appbar or change color when scroll content on top",
label: "Icon Appbar Color on Top",
props: {
type: "fluentui",
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
}
},
__line3: {
id: "__line3",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading3: {
id: "__heading3",
input: "heading",
defaultValue: "",
label: "Sidebar"
},
enableSidebar: {
id: "enableSidebar",
input: "switch",
defaultValue: !0,
label: "Drawer (Sidebar)"
},
iconSideBar: {
id: "iconSideBar",
input: "icon",
defaultValue: {
name: "menu",
type: "feather"
},
label: "Icon Sidebar"
},
imageSidebar: {
id: "imageSidebar",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Sidebar Icon Image"
},
enableShadowSideBar: {
id: "enableShadowSideBar",
input: "switch",
defaultValue: !1,
label: "Enable Shadow Sidebar",
info: "Used when no select 'Sidebar Icon Image'"
},
__line4: {
id: "__line4",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading4: {
id: "__heading4",
input: "heading",
defaultValue: "",
label: "Appbar Title"
},
typeTitle: {
id: "typeTitle",
input: "select",
defaultValue: "image",
label: "Type",
props: {
options: [{
key: "image",
text: "Image"
}, {
key: "text",
text: "Text"
}, {
key: "location",
text: "Location"
}, {
key: "none",
text: "None"
}]
}
},
centerLogo: {
id: "centerLogo",
input: "switch",
defaultValue: !0,
label: "Center Logo",
props: {
relationship: {
paths: ["typeTitle"],
operator: "!=",
value: "location"
}
}
},
logoText: {
id: "logoText",
input: "text",
isStyle: !1,
defaultValue: {
text: "Home",
style: {}
},
isTranslate: !0,
label: "Logo Text",
props: {
relationship: {
paths: ["typeTitle"],
operator: "==",
value: "text"
}
},
info: 'You can get "first_name", "last_name" or "email" of user by {}. EX: Hello, {first_name} {last_name}'
},
logoWidth: {
id: "logoWidth",
input: "slider",
defaultValue: 122,
label: "Logo Width",
props: {
min: 50,
max: 300,
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
logoHeight: {
id: "logoHeight",
input: "slider",
defaultValue: 50,
label: "Logo Height",
props: {
min: 20,
max: 150,
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
imageLogo: {
id: "imageLogo",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Logo",
props: {
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
imageLogoDark: {
id: "imageLogoDark",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Logo Dark Mode",
props: {
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
__line5: {
id: "__line5",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading5: {
id: "__heading5",
input: "heading",
defaultValue: "",
label: "Appbar Actions"
},
enableBlogSearch: {
id: "enableBlogSearch",
input: "switch",
defaultValue: !1,
label: "Enable Blog Search"
},
enableBlogWishlist: {
id: "enableBlogWishlist",
input: "switch",
defaultValue: !1,
label: "Enable Blog Wishlist"
},
enableProductSearch: {
id: "enableProductSearch",
input: "switch",
defaultValue: !1,
label: "Enable Product Search"
},
enableProductWishlist: {
id: "enableProductWishlist",
input: "switch",
defaultValue: !1,
label: "Enable Product Wishlist"
},
enableNotification: {
id: "enableNotification",
input: "switch",
defaultValue: !1,
label: "Enable Notification"
},
enableCart: {
id: "enableCart",
input: "switch",
defaultValue: !1,
label: "Enable Cart"
},
enableNumberCart: {
id: "enableNumberCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart Count",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "shopping-cart",
type: "feather"
},
label: "Cart Icon",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
imageCart: {
id: "imageCart",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Cart Icon Image ",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
}
},
screens_product: {
name: {
id: "name",
input: "text",
defaultValue: "Product detail",
label: "Screen Name",
props: {
placeholder: "Product detail Page",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableAppbar: {
id: "enableAppbar",
input: "switch",
defaultValue: !0,
label: "Enable Appbar"
},
appBarType: {
id: "appBarType",
input: "select",
defaultValue: "floating",
label: "Type Appbar",
props: {
options: [{
key: "floating",
text: "Floating"
}, {
key: "fixed",
text: "Fixed"
}, {
key: "scroll",
text: "Scroll"
}]
}
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
props: {
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
},
label: "Extend Body Behind AppBar",
info: "The Body will aligned with the top of the Appbar,working only with Fixed App style"
},
__line1: {
id: "__line1",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
enableAppbarSearch: {
id: "enableAppbarSearch",
input: "switch",
defaultValue: !1,
label: "Enable Navigate to Search"
},
enableAppbarHome: {
id: "enableAppbarHome",
input: "switch",
defaultValue: !1,
label: "Enable Navigate to Home"
},
enableAppbarShare: {
id: "enableAppbarShare",
input: "switch",
defaultValue: !0,
label: "Enable Share"
},
enableAppbarWishList: {
id: "enableAppbarWishList",
input: "switch",
defaultValue: !0,
label: "Enable Wishlist"
},
enableAppbarCart: {
id: "enableAppbarCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
},
__line3: {
id: "__line3",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading3: {
id: "__heading3",
input: "heading",
defaultValue: "",
label: "Add To Cart Icon"
},
enableCartIcon: {
id: "enableCartIcon",
input: "switch",
defaultValue: !1,
label: "Enable Cart Icon"
},
cartIconType: {
id: "cartIconType",
input: "select",
defaultValue: "pinned",
label: "Type",
props: {
options: [{
key: "pinned",
text: "Pinned"
}, {
key: "floating",
text: "Floating"
}]
}
},
floatingActionButtonLocation: {
id: "floatingActionButtonLocation",
input: "select",
defaultValue: "centerDocked",
label: "Floating Cart Icon Location",
props: {
relationship: {
paths: ["cartIconType"],
operator: "==",
value: "floating"
},
options: [{
key: "centerDocked",
text: "Center Docked"
}, {
key: "centerFloat",
text: "Center Float"
}, {
key: "centerTop",
text: "Center Top"
}, {
key: "endDocked",
text: "End Docked"
}, {
key: "endFloat",
text: "End Float"
}, {
key: "endTop",
text: "End Top"
}, {
key: "miniCenterDocked",
text: "Mini Center Docked"
}, {
key: "miniCenterFloat",
text: "Mini Center Float"
}, {
key: "miniCenterTop",
text: "Mini Center Top"
}, {
key: "miniEndDocked",
text: "Mini End Docked"
}, {
key: "miniEndFloat",
text: "Mini End Float"
}, {
key: "miniEndTop",
text: "Mini End Top"
}, {
key: "miniStartDocked",
text: "Mini Start Docked"
}, {
key: "miniStartFloat",
text: "Mini Start Float"
}, {
key: "miniStartTop",
text: "Mini Start Top"
}, {
key: "startDocked",
text: "Start Docked"
}, {
key: "startFloat",
text: "Start Float"
}, {
key: "startTop",
text: "Start Top"
}]
}
},
__line4: {
id: "__line4",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading4: {
id: "__heading4",
input: "heading",
defaultValue: "",
label: "Bottom Bar"
},
enableBottomBar: {
id: "enableBottomBar",
input: "switch",
defaultValue: !1,
label: "Enable Bottom Bar"
},
enableBottomBarSearch: {
id: "enableBottomBarSearch",
input: "switch",
defaultValue: !1,
label: "Enable Navigate to Search"
},
enableBottomBarHome: {
id: "enableBottomBarHome",
input: "switch",
defaultValue: !1,
label: "Enable Navigate to Home"
},
enableBottomBarShare: {
id: "enableBottomBarShare",
input: "switch",
defaultValue: !0,
label: "Enable Share"
},
enableBottomBarWishList: {
id: "enableBottomBarWishList",
input: "switch",
defaultValue: !0,
label: "Enable Wishlist"
},
enableBottomBarCart: {
id: "enableBottomBarShare",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
},
enableBottomBarAddToCart: {
id: "enableBottomBarAddToCart",
input: "switch",
defaultValue: !0,
label: "Add To Cart Button"
},
enableBuyNow: {
id: "enableBuyNow",
input: "switch",
defaultValue: !1,
label: "Buy Now Button"
},
expressCheckoutButton: {
id: "expressCheckoutButton",
input: "switch",
defaultValue: "false",
label: "Enable Express Checkout Button"
},
enableBottomBarQty: {
id: "enableBottomBarQty",
input: "switch",
defaultValue: !1,
label: "Add Quantity"
}
},
screens_products: {
name: {
id: "name",
input: "text",
defaultValue: "Product List",
label: "Screen Name",
props: {
placeholder: "Product List Page",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
appBarType: {
id: "appBarType",
input: "select",
defaultValue: "floating",
label: "Type Appbar",
props: {
options: [{
key: "floating",
text: "Floating"
}, {
key: "fixed",
text: "Fixed"
}, {
key: "scroll",
text: "Scroll"
}]
}
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
props: {
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
},
label: "Extend Body Behind AppBar",
info: "The Body will aligned with the top of the Appbar,working only with Fixed App style"
},
enableCenterTitle: {
id: "enableCenterTitle",
input: "switch",
defaultValue: !0,
label: "Enable center title"
},
enableAppbarCountProduct: {
id: "enableAppbarCountProduct",
input: "switch",
defaultValue: !0,
label: "Enable count product item"
},
enableAppbarCart: {
id: "enableAppbarCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
},
enableAppbarSearch: {
id: "enableAppbarSearch",
input: "switch",
defaultValue: !1,
label: "Enable search"
}
},
screens_category: {
name: {
id: "name",
input: "text",
defaultValue: "Category Page",
label: "Screen Name",
props: {
placeholder: "Category Page",
disabled: !0
}
},
__lineAppbar: {
id: "__lineAppbar",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headingAppbar: {
id: "__headingAppbar",
input: "heading",
defaultValue: "",
label: "Appbar"
},
appBarType: {
id: "appBarType",
input: "select",
defaultValue: "floating",
label: "Type Appbar",
props: {
options: [{
key: "floating",
text: "Floating"
}, {
key: "fixed",
text: "Fixed"
}, {
key: "scroll",
text: "Scroll"
}]
}
},
appbarColorOnTop: {
id: "appbarColorOnTop",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
info: "This config working only fixed layout helpful when make the transparent appbar or change color when scroll content on top",
label: "Appbar Color on Top",
props: {
type: "fluentui",
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
}
},
iconAppbarColorOnTop: {
id: "iconAppbarColorOnTop",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
info: "This config working only fixed layout helpful when make the transparent appbar or change color when scroll content on top",
label: "Icon Appbar Color on Top",
props: {
type: "fluentui",
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
}
},
enableSearch: {
id: "enableSearch",
input: "switch",
defaultValue: !0,
label: "Enable search"
},
enableCart: {
id: "enableCart",
input: "switch",
defaultValue: !0,
label: "Enable cart"
},
__lineBanner: {
id: "__lineBanner",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__headingBanner: {
id: "__headingBanner",
input: "heading",
defaultValue: "",
label: "Banner"
},
enableBanner: {
id: "enableBanner",
input: "switch",
defaultValue: !0,
label: "Enable Banner"
},
widthBanner: {
id: "widthBanner",
input: "slider",
defaultValue: 335,
label: "Width Banner",
props: {
min: 50,
max: 500
}
},
heightBanner: {
id: "heightBanner",
input: "slider",
defaultValue: 80,
label: "Height Banner",
props: {
min: 20,
max: 300
}
},
radiusBanner: {
id: "radiusBanner",
input: "slider",
defaultValue: 8,
label: "Border radius Banner"
},
enableScaleWidthBanner: {
id: "enableScaleWidthBanner",
input: "switch",
defaultValue: !0,
label: "Enable Scale Width Banner"
},
backgroundBanner: {
id: "radiusBanner",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
label: "Background Banner"
},
imageBanner: {
id: "imageBanner",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Banner"
}
},
screens_contact: {
name: {
id: "name",
input: "text",
defaultValue: "Category",
label: "Screen Name",
props: {
placeholder: "New Page",
disabled: !0
}
},
headerConfig: {
id: "headerConfig",
input: "heading",
defaultValue: "",
label: "Header"
},
enableHeader: {
id: "enableHeader",
input: "switch",
defaultValue: !0,
label: "Enable Header"
},
enableHeaderTransparent: {
id: "enableHeaderTransparent",
input: "switch",
defaultValue: !1,
label: "Header Transparent"
},
enableFloatingAnimated: {
id: "enableFloatingAnimated",
input: "switch",
defaultValue: !1,
label: "Floating Animated"
},
enablePinnedAnimated: {
id: "enablePinnedAnimated",
input: "switch",
defaultValue: !1,
label: "Pinned Animated"
},
enableSnapAnimated: {
id: "enableSnapAnimated",
input: "switch",
defaultValue: !1,
label: "Snap Animated"
},
lineConfig: {
id: "lineConfig",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
headerCart: {
id: "headerCart",
input: "heading",
defaultValue: "",
label: "Cart"
},
enableCart: {
id: "enableCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
},
enableNumberCart: {
id: "enableNumberCart",
input: "switch",
defaultValue: !0,
label: "Enable Number"
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "settings",
type: "feather"
},
label: "Cart Icon"
}
},
screens_profile: {
name: {
id: "name",
input: "text",
defaultValue: "Profile",
label: "Screen Name",
props: {
placeholder: "Profile Page",
disabled: !0
}
},
__line5: {
id: "__line5",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading5: {
id: "__heading5",
input: "heading",
defaultValue: "",
label: "Appbar Actions"
},
enableBlogSearch: {
id: "enableBlogSearch",
input: "switch",
defaultValue: !1,
label: "Enable Blog Search"
},
enableBlogWishlist: {
id: "enableBlogWishlist",
input: "switch",
defaultValue: !1,
label: "Enable Blog Wishlist"
},
enableProductSearch: {
id: "enableProductSearch",
input: "switch",
defaultValue: !1,
label: "Enable Product Search"
},
enableProductWishlist: {
id: "enableProductWishlist",
input: "switch",
defaultValue: !1,
label: "Enable Product Wishlist"
},
enableNotification: {
id: "enableNotification",
input: "switch",
defaultValue: !0,
label: "Enable Notification"
},
enableCart: {
id: "enableCart",
input: "switch",
defaultValue: !1,
label: "Enable Cart"
},
enableNumberCart: {
id: "enableNumberCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart Count",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "shopping-cart",
type: "feather"
},
label: "Cart Icon",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
imageCart: {
id: "imageCart",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Cart Icon Image ",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
}
},
screens_login: {
name: {
id: "name",
input: "text",
defaultValue: "Category",
label: "Screen Name",
props: {
placeholder: "New Page",
disabled: !0
}
},
__headerConfig: {
id: "__headerConfig",
input: "heading",
defaultValue: "",
label: "Appbar"
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
label: "Extend Body Behind AppBar",
info: "Extent body which extends the height of the body to the bottom of the scaffold."
},
shadowAppBar: {
id: "shadowAppBar",
input: "switch",
defaultValue: !0,
label: "Appbar Shadow"
},
appbarColor: {
id: "appbarColor",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.black
},
label: "Appbar Color",
props: {
type: "fluentui"
}
}
},
screens_register: {
name: {
id: "name",
input: "text",
defaultValue: "Register",
label: "Screen Name",
props: {
placeholder: "New Page",
disabled: !0
}
},
__headerConfig: {
id: "__headerConfig",
input: "heading",
defaultValue: "",
label: "Appbar"
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
label: "Extend Body Behind AppBar",
info: "Extent body which extends the height of the body to the bottom of the scaffold."
},
shadowAppBar: {
id: "shadowAppBar",
input: "switch",
defaultValue: !0,
label: "Appbar Shadow"
},
appbarColor: {
id: "appbarColor",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.black
},
label: "Appbar Color",
props: {
type: "fluentui"
}
}
},
screens_postList: {
name: {
id: "name",
input: "text",
defaultValue: "Post List",
label: "Screen Name",
props: {
placeholder: "Post List Page",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
appBarType: {
id: "appBarType",
input: "select",
defaultValue: "floating",
label: "Type Appbar",
props: {
options: [{
key: "floating",
text: "Floating"
}, {
key: "fixed",
text: "Fixed"
}, {
key: "scroll",
text: "Scroll"
}]
}
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
props: {
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
},
label: "Extend Body Behind AppBar",
info: "The Body will aligned with the top of the Appbar,working only with Fixed App style"
},
enableCenterTitle: {
id: "enableCenterTitle",
input: "switch",
defaultValue: !0,
label: "Enable center title"
},
enableAppbarSearch: {
id: "enableAppbarSearch",
input: "switch",
defaultValue: !0,
label: "Enable Search"
}
},
screens_postDetail: {
name: {
id: "name",
input: "text",
defaultValue: "Post detail",
label: "Screen Name",
props: {
placeholder: "Post detail",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableAppbarComment: {
id: "enableAppbarComment",
input: "switch",
defaultValue: !0,
label: "Enable Navigate to Comment"
},
enableAppbarWishList: {
id: "enableAppbarWishList",
input: "switch",
defaultValue: !0,
label: "Enable Post Wishlist"
},
enableAppbarShare: {
id: "enableAppbarShare",
input: "switch",
defaultValue: !0,
label: "Enable Share"
}
},
screens_vendorList: {
name: {
id: "name",
input: "text",
defaultValue: "Vendor List",
label: "Screen Name",
props: {
placeholder: "Vendor List Page",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableCenterTitle: {
id: "enableCenterTitle",
input: "switch",
defaultValue: !0,
label: "Enable center title"
}
},
screens_vendorDetail: {
name: {
id: "name",
input: "text",
defaultValue: "Store detail",
label: "Screen Name",
props: {
placeholder: "Vendor List Page",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableCenterTitle: {
id: "enableCenterTitle",
input: "switch",
defaultValue: !0,
label: "Enable center title"
}
},
screens_productQuickView: {
name: {
id: "name",
input: "text",
defaultValue: "Product quick view",
label: "Screen Name",
props: {
placeholder: "Product quick view",
disabled: !0
}
},
__line4: {
id: "__line4",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading4: {
id: "__heading4",
input: "heading",
defaultValue: "",
label: "Bottom Bar"
},
enableBottomBar: {
id: "enableBottomBar",
input: "switch",
defaultValue: !1,
label: "Enable Bottom Bar"
},
enableBottomBarWishList: {
id: "enableBottomBarWishList",
input: "switch",
defaultValue: !0,
label: "Enable Wishlist"
},
enableBottomBarCart: {
id: "enableBottomBarShare",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
},
enableBottomBarAddToCart: {
id: "enableBottomBarAddToCart",
input: "switch",
defaultValue: !0,
label: "Add To Cart Button"
},
enableBuyNow: {
id: "enableBuyNow",
input: "switch",
defaultValue: !1,
label: "Buy Now Button"
},
enableBottomBarQty: {
id: "enableBottomBarQty",
input: "switch",
defaultValue: !1,
label: "Add Quantity"
}
},
screens_brands: {
name: {
id: "name",
input: "text",
defaultValue: "Brand List",
label: "Screen Name",
props: {
placeholder: "Brand List Page",
disabled: !0
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableCenterTitle: {
id: "enableCenterTitle",
input: "switch",
defaultValue: !0,
label: "Enable center title"
},
enableAppbarCart: {
id: "enableAppbarCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart"
}
},
extraScreens_custom: {
name: {
id: "name",
input: "text",
defaultValue: "Home",
label: "Screen Name",
props: {
placeholder: "Home Page",
disabled: !0
}
},
overrideScreen: {
id: "name",
input: "text",
defaultValue: "",
label: "Override screen",
info: "Use to override custom tab when want screen in the tab. No use screen home '/'"
},
__line: {
id: "__line",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading: {
id: "__heading",
input: "heading",
defaultValue: "",
label: "Screen Layout"
},
extendBody: {
id: "extendBody",
input: "switch",
defaultValue: !0,
label: "Extend Body",
info: "The content body will be visible through the bottom tabs"
},
extendBodyBehindAppBar: {
id: "extendBodyBehindAppBar",
input: "switch",
defaultValue: !0,
props: {
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
},
label: "Extend Body Behind AppBar",
info: "The Body will aligned with the top of the Appbar,working only with Fixed App style"
},
enableStackLayout: {
id: "enableStackLayout",
input: "switch",
defaultValue: !1,
label: "Stack Layout"
},
initialChildSize: {
id: "initialChildSize",
input: "slider",
defaultValue: .5,
label: "Initial Child Size",
info: "Work only with Enable stack layout",
props: {
min: 0,
step: .1,
max: 1,
relationship: {
paths: ["enableStackLayout"],
operator: "==",
value: !0
}
}
},
minHeightStack: {
id: "minHeightStack",
input: "slider",
defaultValue: .5,
label: "Min first element distance to top.",
info: "Work only with Enable stack layout",
props: {
min: 0,
step: .1,
max: 1,
relationship: {
paths: ["enableStackLayout"],
operator: "==",
value: !0
}
}
},
maxHeightStack: {
id: "maxHeightStack",
input: "slider",
defaultValue: 1,
label: "Max first element distance to top.",
info: "Work only with Enable stack layout",
props: {
min: 0,
step: .1,
max: 1,
relationship: {
paths: ["enableStackLayout"],
operator: "==",
value: !0
}
}
},
__line2: {
id: "__line2",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading2: {
id: "__heading2",
input: "heading",
defaultValue: "",
label: "Appbar"
},
enableAppbar: {
id: "enableAppbar",
input: "switch",
defaultValue: !0,
label: "Enable Appbar"
},
appBarType: {
id: "appBarType",
input: "select",
defaultValue: "floating",
label: "Type Appbar",
props: {
options: [{
key: "floating",
text: "Floating"
}, {
key: "fixed",
text: "Fixed"
}, {
key: "scroll",
text: "Scroll"
}]
}
},
appbarColorOnTop: {
id: "appbarColorOnTop",
input: "color",
defaultValue: {
value: ec.transparent,
dark: ec.transparent
},
info: "This config working only fixed layout helpful when make the transparent appbar or change color when scroll content on top",
label: "Appbar Color on Top",
props: {
type: "fluentui",
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
}
},
iconAppbarColorOnTop: {
id: "iconAppbarColorOnTop",
input: "color",
defaultValue: {
value: ec.white,
dark: ec.white
},
info: "This config working only fixed layout helpful when make the transparent appbar or change color when scroll content on top",
label: "Icon Appbar Color on Top",
props: {
type: "fluentui",
relationship: {
paths: ["appBarType"],
operator: "==",
value: "fixed"
}
}
},
__line3: {
id: "__line3",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading3: {
id: "__heading3",
input: "heading",
defaultValue: "",
label: "Sidebar"
},
enableSidebar: {
id: "enableSidebar",
input: "switch",
defaultValue: !0,
label: "Drawer (Sidebar)"
},
iconSideBar: {
id: "iconSideBar",
input: "icon",
defaultValue: {
name: "menu",
type: "feather"
},
label: "Icon Sidebar"
},
imageSidebar: {
id: "imageSidebar",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Sidebar Icon Image"
},
enableShadowSideBar: {
id: "enableShadowSideBar",
input: "switch",
defaultValue: !1,
label: "Enable Shadow Sidebar",
info: "Used when no select 'Sidebar Icon Image'"
},
__line4: {
id: "__line4",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading4: {
id: "__heading4",
input: "heading",
defaultValue: "",
label: "Appbar Title"
},
typeTitle: {
id: "typeTitle",
input: "select",
defaultValue: "image",
label: "Type",
props: {
options: [{
key: "image",
text: "Image"
}, {
key: "text",
text: "Text"
}, {
key: "location",
text: "Location"
}, {
key: "none",
text: "None"
}]
}
},
centerLogo: {
id: "centerLogo",
input: "switch",
defaultValue: !0,
label: "Center Logo",
props: {
relationship: {
paths: ["typeTitle"],
operator: "!=",
value: "location"
}
}
},
logoText: {
id: "logoText",
input: "text",
isStyle: !1,
defaultValue: {
text: "Home",
style: {}
},
isTranslate: !0,
label: "Logo Text",
props: {
relationship: {
paths: ["typeTitle"],
operator: "==",
value: "text"
}
},
info: 'You can get "first_name", "last_name" or "email" of user by {}. EX: Hello, {first_name} {last_name}'
},
logoWidth: {
id: "logoWidth",
input: "slider",
defaultValue: 122,
label: "Logo Width",
props: {
min: 50,
max: 300,
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
logoHeight: {
id: "logoHeight",
input: "slider",
defaultValue: 50,
label: "Logo Height",
props: {
min: 20,
max: 150,
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
imageLogo: {
id: "imageLogo",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Logo",
props: {
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
imageLogoDark: {
id: "imageLogoDark",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Logo Dark Mode",
props: {
relationship: {
paths: ["typeTitle"],
operator: "exclude",
value: ["text", "location"]
}
}
},
__line5: {
id: "__line5",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading5: {
id: "__heading5",
input: "heading",
defaultValue: "",
label: "Appbar Actions"
},
enableBlogSearch: {
id: "enableBlogSearch",
input: "switch",
defaultValue: !1,
label: "Enable Blog Search"
},
enableBlogWishlist: {
id: "enableBlogWishlist",
input: "switch",
defaultValue: !1,
label: "Enable Blog Wishlist"
},
enableProductSearch: {
id: "enableProductSearch",
input: "switch",
defaultValue: !1,
label: "Enable Product Search"
},
enableProductWishlist: {
id: "enableProductWishlist",
input: "switch",
defaultValue: !1,
label: "Enable Product Wishlist"
},
enableNotification: {
id: "enableNotification",
input: "switch",
defaultValue: !1,
label: "Enable Notification"
},
enableCart: {
id: "enableCart",
input: "switch",
defaultValue: !1,
label: "Enable Cart"
},
enableNumberCart: {
id: "enableNumberCart",
input: "switch",
defaultValue: !0,
label: "Enable Cart Count",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
iconCart: {
id: "iconCart",
input: "icon",
defaultValue: {
name: "shopping-cart",
type: "feather"
},
label: "Cart Icon",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
imageCart: {
id: "imageCart",
input: "image",
defaultValue: {
src: ""
},
isTranslate: !1,
label: "Cart Icon Image ",
props: {
relationship: {
paths: ["enableCart"],
operator: "==",
value: !0
}
}
},
__line6: {
id: "__line6",
input: "heading",
defaultValue: "",
label: "",
props: {
type: "line"
}
},
__heading6: {
id: "__heading6",
input: "heading",
defaultValue: "",
label: "Custom Data"
},
dataJson: {
id: "dataJson",
input: "text",
defaultValue: "",
label: "Data Json",
info: 'Value must is json data. Ex: {"enableActivity": false}',
props: {
multiline: !0,
rows: 7
}
}
}
}, TPe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e, r) {
var i;
return Object(St.a)(this, n),
(i = t.call(this, e, r)).state = {
height: 768
},
i._resize = function(e) {
i._updateHeight(),
e.preventDefault()
}
,
i._updateHeight = function() {
var e, t = i.props.parent, n = document.getElementById(t), r = (null !== (e = null == n ? void 0 : n.clientHeight) && void 0 !== e ? e : 768) - 120;
i.setState({
height: r
})
}
,
window.addEventListener("resize", i._resize),
i
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
this._updateHeight()
}
}, {
key: "componentWillUnmount",
value: function() {
window.removeEventListener("resize", this._resize)
}
}, {
key: "render",
value: function() {
var e = this.state.height;
return Object(Ip.jsx)(cA, {
style: {
height: e
},
children: this.props.children
})
}
}]),
n
}(l.Component);
TPe.defaultProps = {
parent: "app-builder-sidebar-left"
};
var EPe, IPe, NPe, zPe = TPe, DPe = Mu.b.div(EPe || (EPe = _u(["\n box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.132), 0 0.3px 0.9px rgba(0, 0, 0, 0.108);\n border-radius: 4px;\n background: #FFFFFF;\n margin-bottom: 24px;\n overflow: hidden;\n"]))), LPe = va((function(e) {
return {
screenKey: lb(e)
}
}
), {
handleAddPreset: pu
})((function(e) {
var t = e.screenKey
, n = e.handleAddPreset
, r = Object(l.useState)([])
, i = Object(ss.a)(r, 2)
, o = i[0]
, a = i[1]
, s = Ck(!1)
, c = Object(ss.a)(s, 2)
, u = c[0]
, d = c[1]
, p = d.setTrue
, h = d.setFalse;
return Object(l.useEffect)((function() {
p(),
function(e, t) {
return ps.a.get("".concat(Ys, "wp/v2/app-builder-presets?screen=").concat(e), {
cancelToken: t
}).then((function(e) {
return e.data
}
))
}(t, null).then((function(e) {
a(e),
h()
}
))
}
), [t, h, p]),
Object(Ip.jsx)(zPe, {
children: Object(Ip.jsx)("div", {
style: {
padding: 20
},
children: u ? Object(Ip.jsx)("div", {
children: "Loading..."
}) : o.map((function(e) {
return Object(Ip.jsxs)(DPe, {
children: [Object(Ip.jsx)("img", {
src: null == e ? void 0 : e.image,
alt: null == e ? void 0 : e.name,
style: {
width: "100%"
}
}), Object(Ip.jsxs)(yw, {
padding: "16px 0",
style: {
textAlign: "center"
},
children: [Object(Ip.jsx)(Ep, {
variant: "mediumPlus",
block: !0,
children: null == e ? void 0 : e.name
}), Object(Ip.jsx)(yw, {
padding: "16px 0 0",
children: Object(Ip.jsx)(Lk, {
onClick: function() {
return e.data ? n(e.data) : {}
},
children: "Insert preset"
})
})]
})]
}, e.id)
}
))
})
})
}
)), RPe = Mu.b.div(IPe || (IPe = _u(["\n text-align: start;\n"]))), PPe = Mu.b.div(NPe || (NPe = _u(["\n padding: 0 20px;\n"]))), BPe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this.context.settings.groups
, t = yA()(Hfe, (function(e) {
return e.group.id
}
))
, n = this.props
, r = n.isDragDisabled
, i = n.screenKey
, o = n.configsScreen
, a = n.updateConfig
, l = i.startsWith("extraScreens_") ? "extraScreens_custom" : i;
return Object(Ip.jsx)(SPe, {
children: Object(Ip.jsx)(yw, {
children: Object(Ip.jsxs)(QC, {
children: [Object(Ip.jsx)(EC, {
headerText: "Widgets",
itemIcon: "MapLayers",
children: Object(Ip.jsx)(zPe, {
children: Object(Ip.jsx)(PPe, {
children: Object(Ip.jsx)(LMe, {
droppableId: "droppable",
isDropDisabled: !0,
children: function(n, i) {
return Object(Ip.jsxs)(RPe, _t(_t({
ref: n.innerRef
}, n.droppableProps), {}, {
style: (i.isDraggingOver,
{
marginTop: 40
}),
children: [Object.keys(t).map((function(n, i) {
return Object(Ip.jsx)(CPe, {
isDragDisabled: r,
title: e[n] ? e[n].title : "Default Title",
group: e[n],
items: t[n],
style: 0 === i ? {
borderTopWidth: 1,
borderTopStyle: "solid"
} : {}
}, n)
}
)), n.placeholder]
}))
}
})
})
})
}), Object(Ip.jsx)(EC, {
headerText: "Presets",
itemIcon: "Completed",
children: Object(Ip.jsx)(LPe, {})
}), l && APe[l] && Object(Ip.jsx)(EC, {
headerText: "Configs",
itemIcon: "Settings",
children: Object(Ip.jsx)(zPe, {
children: Object(Ip.jsxs)(PPe, {
children: [Object(Ip.jsxs)("p", {
children: [Object(Ip.jsx)("strong", {
children: "Key: "
}), i]
}), Object(Ip.jsx)(SRe, {
fields: APe[l],
value: o,
onChange: function(e, t) {
return a({
fieldId: e,
value: t
})
},
onBlur: cu,
type: "configs"
})]
})
})
})]
})
})
})
}
}]),
n
}(l.Component);
BPe.contextType = Rb;
var FPe, VPe, WPe, qPe, HPe, UPe, XPe, GPe, KPe = va((function(e) {
return {
screenKey: lb(e),
configsScreen: gu(e)
}
}
), {
updateConfig: su,
onBlurInput: cu
})(BPe), YPe = {
root: {
color: Po.palette.neutralPrimary,
fontWeight: "bold"
}
}, QPe = Mu.b.ul(FPe || (FPe = _u(["\n padding: 0;\n margin: 0;\n"]))), JPe = Mu.b.li(VPe || (VPe = _u(["\n list-style: none;\n display: block;\n font-size: 14px;\n line-height: 22px;\n padding: 9px 20px;\n cursor: pointer;\n\n span {\n text-decoration: none;\n display: block;\n color: #7e82a4;\n box-shadow: none;\n }\n\n &.selected {\n background-color: #fff;\n\n span {\n color: #30ad62;\n font-weight: 600;\n }\n }\n"]))), ZPe = va((function(e) {
return {
screenActive: lb(e),
currentWidgetConfig: hu(e),
changed: e.widget.past.length > 0 || e.widget.future.length > 0,
settings: db(e)
}
}
), {
updateScreenData: Jf,
selectScreenKey: Zf,
clearHistory: cs.ActionCreators.clearHistory,
restoreScreenData: uu,
selectWidget: Bc
})((function(e) {
var t = e.screenActive
, n = e.updateScreenData
, r = e.restoreScreenData
, i = e.selectScreenKey
, o = e.clearHistory
, a = e.currentWidgetConfig
, l = e.settings
, s = e.changed
, c = e.selectWidget;
return Object(Ip.jsxs)(SPe, {
children: [Object(Ip.jsx)(yw, {
padding: "10px 20px 20px",
children: Object(Ip.jsxs)(Ep, {
variant: "mediumPlus",
styles: YPe,
children: ["Settings General", " "]
})
}), Object(Ip.jsx)(QPe, {
children: Object.keys(l).map((function(e) {
return Object(Ip.jsx)(JPe, {
className: t === "settings_".concat(e) ? "selected" : "",
children: Object(Ip.jsx)("span", {
onClick: function() {
return function(e, l) {
e !== t && e && l && (i(e),
r(l),
o(),
s && n({
data: Object.assign({}, a, {
fieldId: void 0
}),
key: t
}),
l.widgetIds && l.widgetIds.length > 0 && c(l.widgetIds[0]))
}("settings_".concat(e), l[e])
},
children: l[e].configs.name
})
}, e)
}
))
})]
})
}
)), $Pe = {
iconName: "Cancel"
}, eBe = {
iconName: "Add"
}, tBe = Mu.b.div(WPe || (WPe = _u(["\n margin: 0 20px;\n text-align: center;\n"]))), nBe = yo(), rBe = Do({
container: {},
header: [{
flex: "1 1 auto",
borderTop: "4px solid ".concat(nBe.palette.themePrimary),
color: nBe.palette.neutralPrimary,
display: "flex",
alignItems: "center",
fontWeight: bi.semibold,
padding: "20px 20px 0px 20px"
}],
list: {
padding: "0 20px"
},
title: {
fontWeight: bi.semibold,
padding: "10px 5px"
},
item: {
width: "150px",
display: "inline-block",
textAlign: "center",
margin: 5,
paddingTop: 20,
boxShadow: mi.elevation4,
cursor: "pointer"
},
footer: {
padding: 20,
float: "right"
}
}), iBe = {
root: {
color: nBe.palette.neutralPrimary,
marginLeft: "auto",
marginTop: "4px",
marginRight: "2px"
},
rootHovered: {
color: nBe.palette.neutralDark
}
}, oBe = va((function(e) {
return {
widgetIds: bu(e)
}
}
), {
addWidget: nu
})((function(e) {
var t = Object(l.useState)("")
, n = Object(ss.a)(t, 2)
, r = n[0]
, i = n[1]
, o = Ck(!1)
, a = Object(ss.a)(o, 2)
, s = a[0]
, c = a[1]
, u = c.setTrue
, d = c.setFalse
, p = Lw("title")
, h = yA()(Hfe, (function(e) {
return e.group.id
}
));
return Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(tBe, {
children: Object(Ip.jsx)(kk, {
text: "Add widget",
onClick: u,
iconProps: eBe
})
}), Object(Ip.jsxs)(Pj, {
titleAriaId: p,
isOpen: s,
onDismiss: d,
isBlocking: !1,
containerClassName: rBe.container,
children: [Object(Ip.jsxs)("div", {
className: rBe.header,
children: [Object(Ip.jsx)("span", {
id: p,
children: "Widgets"
}), Object(Ip.jsx)(Fj, {
styles: iBe,
iconProps: $Pe,
ariaLabel: "Widgets",
onClick: d
})]
}), Object(Ip.jsx)("div", {
children: Object.keys(h).map((function(e) {
return Object(Ip.jsxs)("div", {
className: rBe.list,
children: [Object(Ip.jsx)("div", {
className: rBe.title,
children: Bp[e].title
}), Object(Ip.jsx)("div", {
children: h[e].filter((function(e) {
return !e.hidden
}
)).map((function(t) {
var n, o, a, l;
return Object(Ip.jsx)("div", {
style: {
color: t.id === r ? "white" : "inherit",
backgroundColor: t.id === r ? "rgb(48, 173, 98)" : "inherit"
},
className: rBe.item,
onClick: function() {
return i(t.id)
},
children: Object(Ip.jsx)(mPe, {
name: null !== (n = null === (o = Hfe[t.id]) || void 0 === o ? void 0 : o.name) && void 0 !== n ? n : t.id,
icon: null !== (a = null === (l = Hfe[t.id]) || void 0 === l ? void 0 : l.icon) && void 0 !== a ? a : "Error",
color: Bp[e].color
}, t.id)
}, t.id)
}
))
})]
}, e)
}
))
}), Object(Ip.jsx)("div", {
className: rBe.footer,
children: Object(Ip.jsx)(kk, {
text: "Select",
onClick: function() {
var t;
if (r) {
var n = Hfe[r]
, i = WRe(n.id)
, o = {};
if (n.fields)
for (var a = 0, l = Object.entries(n.fields); a < l.length; a++) {
var s = Object(ss.a)(l[a], 2)
, c = s[0]
, u = s[1];
o[c] = u.defaultValue
}
var p = {};
if (n.styles)
for (var h = 0, f = Object.entries(n.styles); h < f.length; h++) {
var b = Object(ss.a)(f[h], 2)
, g = b[0]
, m = b[1];
p[g] = m.defaultValue
}
e.addWidget({
index: e.widgetIds.length,
id: i,
widget: {
id: i,
type: r,
fields: o,
layout: null === (t = n.layout) || void 0 === t ? void 0 : t.defaultValue,
styles: p,
disable: !1
}
}),
d()
}
},
iconProps: eBe
})
})]
})]
})
}
)), aBe = {
root: {
border: " 1px solid rgba(126,130,164,0.3)",
marginTop: "-1px",
position: "relative",
":hover": {
background: "#f9f9f9"
}
}
}, lBe = {
root: {
alignItems: "center",
display: "flex",
height: 40
}
}, sBe = {
childrenGap: 5,
padding: "13px 16px"
}, cBe = {
root: {
color: Po.palette.neutralPrimary,
fontWeight: "bold"
}
}, uBe = {
root: {
textTransform: "capitalize",
color: Po.palette.neutralPrimary,
maxWidth: 100,
width: 100,
textOverflow: "ellipsis",
whiteSpace: "nowrap",
overflow: "hidden"
}
}, dBe = dr({
fontSize: 16,
height: 36,
width: 36,
margin: "0 10px 0 0",
border: "1px solid #E0E0E0",
borderRadius: 4,
textAlign: "center",
lineHeight: 36,
background: "#F4F6FC"
}), pBe = dr({
width: 24,
textAlign: "center",
height: 32,
lineHeight: 32,
cursor: "pointer",
borderRadius: 4,
background: "transparent",
":hover": {
background: "#f1f1f1"
},
":active": {
background: "#f1f1f1"
},
":focus": {
background: "#f1f1f1"
}
}), hBe = {
root: {
cursor: "move"
}
}, fBe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
var e;
Object(St.a)(this, n);
for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++)
i[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(i))).selectWidget = function(t) {
var n;
(0,
e.props.selectWidget)(t);
var r = document.getElementById(t)
, i = null !== (n = null == r ? void 0 : r.offsetTop) && void 0 !== n ? n : 0
, o = document.getElementById("app-builder-preview-root");
o && (o.style.scrollBehavior = "smooth",
o.scrollTop = i - 100,
setTimeout((function() {
o.style.scrollBehavior = "auto"
}
), 300))
}
,
e.duplicate = function(t, n) {
var r = e.props.addWidget
, i = WRe(n.type);
r({
index: t + 1,
id: i,
widget: _t(_t({}, n), {}, {
id: i
})
})
}
,
e
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.props
, n = t.widgetIds
, r = t.widgets
, i = t.activeWidget
, o = t.canSelect
, a = t.disableWidget
, l = t.deleteWidget;
return Object(Ip.jsxs)(SPe, {
children: [Object(Ip.jsx)(yw, {
padding: "10px 20px 15px",
children: Object(Ip.jsx)(Ep, {
variant: "mediumPlus",
styles: cBe,
children: "Manager Section"
})
}), Object(Ip.jsx)(zPe, {
children: Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(LMe, {
droppableId: "droppable3",
type: "DESIGN_WIDGET",
children: function(t, s) {
return Object(Ip.jsxs)("div", _t(_t({
ref: t.innerRef
}, t.droppableProps), {}, {
style: _t(_t({}, (c = s.isDraggingOver,
{
background: c ? "lightblue" : "#EBECF0"
})), {}, {
padding: 0 === n.length ? 150 : 20,
borderRadius: 0,
background: "transparent"
}),
children: [n.map((function(t, n) {
var s = i && i.id === t && o
, c = Hfe[r[t].type].icon
, u = Hfe[r[t].type].hidden;
return Object(Ip.jsx)(IMe, {
draggableId: "id".concat(t),
index: n,
isDragDisabled: !!u,
children: function(i) {
return Object(Ip.jsx)("div", _t(_t(_t({
ref: i.innerRef
}, i.draggableProps), i.dragHandleProps), {}, {
children: Object(Ip.jsx)(cPe, {
onClick: function() {
return e.selectWidget(t)
},
active: s,
children: Object(Ip.jsxs)(yj, {
horizontal: !0,
styles: aBe,
tokens: sBe,
children: [Object(Ip.jsxs)(yj.Item, {
grow: 6,
styles: lBe,
children: [Object(Ip.jsx)(Pg, {
iconName: c,
className: dBe
}), Object(Ip.jsxs)("div", {
children: [Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
style: {
color: r[t].disable ? "#7E82A4" : "#21243D"
},
styles: uBe,
children: r[t].type
}), r[t].disable && Object(Ip.jsx)(Ep, {
block: !0,
variant: "small",
style: {
color: "#F94E2B"
},
children: "Hidden"
})]
})]
}), u ? null : Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: lBe,
children: Object(Ip.jsx)(Pg, {
iconName: "Delete",
className: pBe,
onClick: function(e) {
return l({
index: n
})
},
style: {
cursor: "pointer"
}
})
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: lBe,
children: Object(Ip.jsx)(Pg, {
iconName: r[t].disable ? "Hide2" : "RedEye",
className: pBe,
onClick: function(e) {
a({
widgetId: t,
value: !r[t].disable
}),
e.stopPropagation()
},
style: {
cursor: "pointer"
}
})
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: lBe,
children: Object(Ip.jsx)(Pg, {
iconName: "Copy",
className: pBe,
onClick: function(i) {
e.duplicate(n, r[t]),
i.stopPropagation()
},
style: {
cursor: "pointer"
}
})
}), Object(Ip.jsx)(yj.Item, {
grow: 1,
styles: lBe,
children: Object(Ip.jsx)(Pg, {
iconName: "Waffle",
className: pBe,
styles: hBe
})
})]
})]
})
})
}))
}
}, "key".concat(t))
}
)), t.placeholder]
}));
var c
}
}), o ? Object(Ip.jsx)(oBe, {}) : null]
})
})]
})
}
}]),
n
}(l.Component), bBe = va((function(e) {
return {
activeWidget: mu(e),
canSelect: ub(e),
widgets: fu(e),
widgetIds: bu(e)
}
}
), {
selectWidget: Bc,
disableWidget: du,
deleteWidget: iu,
addWidget: nu
})(fBe), gBe = Mu.b.div(qPe || (qPe = _u(["\n width: 70px;\n display: inline-block;\n background-color: #f4f6fc;\n border-right: 1px solid #eaecf2;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n z-index: 9999;\n"]))), mBe = Mu.b.ul(HPe || (HPe = _u(['\n list-style: none;\n padding: 0;\n margin: 0;\n > li {\n position: relative;\n > span,\n a {\n padding: 20px 0;\n display: block;\n text-align: center;\n cursor: pointer;\n }\n &.active {\n background-color: #fff;\n &::before {\n content: "";\n position: absolute;\n left: 0;\n top: 0;\n height: 100%;\n width: 3px;\n background-color: #30ad62;\n }\n }\n }\n']))), vBe = function(e) {
return {
color: e ? "#30ad62" : "#7E82A4",
fontSize: 18
}
}, yBe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).state = {
active: 1
},
r
}
return Object(At.a)(n, [{
key: "render",
value: function() {
var e = this
, t = this.state.active
, n = this.props.isDragDisabled;
return Object(Ip.jsx)(Pq, {
children: Object(Ip.jsxs)(gBe, {
id: "app-builder-sidebar-left",
children: [1 === t && Object(Ip.jsx)(KPe, {
isDragDisabled: n
}), 2 === t && Object(Ip.jsx)(bBe, {}), 3 === t && Object(Ip.jsx)(ZPe, {}), Object(Ip.jsxs)(mBe, {
children: [Object(Ip.jsx)("li", {
style: {
height: 70
},
children: Object(Ip.jsx)(Tn, {
to: "/",
children: Object(Ip.jsx)("img", {
width: 30,
height: 36,
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAlCAYAAAC6TzLyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALoSURBVHgB1VfBldowEB0p5BxKYFOB6QBSAclmzxgoAFLB4jQAm3sW5xw2lAAVJO4AOsgWkLXyJQvbYFmWDZed93iAPdYfzf8zHhG9RvM2k6m3Gd/TBcaopnk//R4xvsCTnr50IMbm0afvP6imOYN7G79DMVvhkZ7ZQ+yIi1H0MTzQtcAB2ibiU4pprkGeEcQDcdIpj0dYBr9ZRz8SEo8DlyC4HXgCUL5PgYUAqLiJ7h7nR5/oNgSY6Kt7ifl4ZuuiB+POC7wKpFSIILoLd6nP01gk4I8sCxbUvLA5NDDUl6x6YKc7PedVHCgGjzlQG3h6b+0PALrIqDDrgWlQM6+teIkHnslgNvDMx/dteuA2XsuAXa1KDy2kdYbv9jGy6PNqRlc0vcsZMiW/QQV19EaD1pmvD6cexbGR5yamxMtl6ql3fi9XanGgBCYj40jN03ilBNgUFDry1qNQrpUIWOqIvpjBOVJ+u7qBA4IgybXkZy/5qROEApWcSh2pklOggdbR0gyuTTUQHnchkqQ2JT9SJL8mw0rg9WQA3z+a07bqD1x0y8TbMi2iReJjF3M0jQ124GGhEFTMTXrIeBU9dcHQlEzWst3UQXRP6jXRQ5gCS17Tjqb6A0BXS3Iw7uIk67Wgh6NV8GqzFtUwyR12LcEXp3fYQ/5lc3VwW73C7hHUsG5/qEx7db3K93mz/sCtoA71atSDY38wgtetVxVEg/5wwnnTek0DqNkfMvAYkwunQfKnXr2WBGHtD9LyaR80rdfSIGz9gQqlxsIm9Vpl7C0F4oXe4edxVlBTEIdI+qlIkpf+3uUl4mrQUV/8Y781sADWFvx/UEGlTo5DX+pfMcMZhlGMamKcF11x8qwY+qrADcPoXwTxzTSMFt/nFxwCzoZRmeIl1npf1h+YfbHyQ0B+54ZDxhafr1X9wemgaNRDxuXO5ZDRGDwNoqgHbdWHjIvBVQAJFTNkYprgQhtvxMUHjNpBKK5fq/0Hfus81pcWTo4AAAAASUVORK5CYII=",
alt: "Logo"
})
})
}), Object(Ip.jsx)("li", {
className: 1 === t ? "active" : void 0,
children: Object(Ip.jsx)("span", {
onClick: function() {
return e.setState({
active: 1 === t ? 0 : 1
})
},
children: Object(Ip.jsx)(Pg, {
iconName: "WebAppBuilderFragmentCreate",
style: vBe(1 === t)
})
})
}), Object(Ip.jsx)("li", {
className: 2 === t ? "active" : void 0,
children: Object(Ip.jsx)("span", {
onClick: function() {
return e.setState({
active: 2 === t ? 0 : 2
})
},
children: Object(Ip.jsx)(Pg, {
iconName: "Design",
style: vBe(2 === t)
})
})
}), Object(Ip.jsx)("li", {
className: 3 === t ? "active" : void 0,
children: Object(Ip.jsx)("span", {
onClick: function() {
return e.setState({
active: 3 === t ? 0 : 3
})
},
children: Object(Ip.jsx)(Pg, {
iconName: "Settings",
style: vBe(3 === t)
})
})
})]
})]
})
})
}
}]),
n
}(l.Component), xBe = window.app_builder, OBe = xBe.api_url, jBe = xBe.preview_url, kBe = xBe.api_nonce, wBe = Mu.b.div(UPe || (UPe = _u(["\n margin-left: 70px;\n position: relative;\n overflow: hidden;\n"]))), CBe = Mu.b.div(XPe || (XPe = _u(["\n background-color: rgb(235, 236, 240);\n display: inline-block;\n width: 395px;\n height: 700px;\n box-shadow: rgb(227 228 232) 0 0 0 16.5px inset;\n border-radius: 4px;\n padding-top: 16.5px;\n overflow: hidden;\n"]))), _Be = Mu.b.div(GPe || (GPe = _u(["\n position: absolute;\n top: 16.5px;\n left: 0;\n right: 0;\n background-color: #1b1a19;\n width: 362px;\n height: 683px;\n margin: auto;\n"]))), MBe = function(e) {
var t = e.templateActiveId
, n = Ck(!0)
, r = Object(ss.a)(n, 2)
, i = r[0]
, o = r[1].setFalse;
return Object(Ip.jsx)(wBe, {
children: Object(Ip.jsxs)(CBe, {
children: [Object(Ip.jsx)("iframe", {
title: "Cirilla App",
id: "app_cheap_iframe",
frameBorder: "0",
src: "".concat(jBe, "/index.html?id=").concat(t || 0, "&url=").concat(OBe, "&token=").concat(kBe),
width: "362",
height: "683",
onLoad: function() {
return o()
}
}), i ? Object(Ip.jsx)(_Be, {}) : null]
})
})
}, SBe = window.app_builder.api_url, ABe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r, i;
return Object(St.a)(this, n),
(i = t.call(this, e)).update = function(e) {
var t = i.props
, n = t.updateTemplate
, r = t.templateActive
, o = t.screenActive
, a = t.content
, l = Dt()(o, "_");
if (r && 2 === l.length) {
var s = Il(r.data, (function(e) {
e[l[0]][[l[1]]] = a
}
));
n({
id: null == r ? void 0 : r.id,
data: _t(_t({}, e), {}, {
content: JSON.stringify(s)
}),
cb: function() {
return i.setState({
loading: !1
})
}
})
}
}
,
i.onDragEnd = function(e) {
var t = i.props
, n = t.addWidget
, r = t.reorderWidget
, o = e.source
, a = e.destination;
if (a) {
var l = Object.keys(Hfe)
, s = l[o.index]
, c = Hfe[l[o.index]];
if (o.droppableId === a.droppableId)
r({
source: o.index,
destination: a.index
});
else {
var u, d = WRe(c.id), p = {};
if (c.fields)
for (var h = 0, f = Object.entries(c.fields); h < f.length; h++) {
var b = Object(ss.a)(f[h], 2)
, g = b[0]
, m = b[1];
p[g] = m.defaultValue
}
var v = {};
if (c.styles)
for (var y = 0, x = Object.entries(c.styles); y < x.length; y++) {
var O = Object(ss.a)(x[y], 2)
, j = O[0]
, k = O[1];
v[j] = k.defaultValue
}
n({
index: a.index,
id: d,
widget: {
id: d,
type: s,
fields: p,
layout: null === (u = c.layout) || void 0 === u ? void 0 : u.defaultValue,
styles: v,
disable: !1
}
})
}
}
}
,
i.state = {
loading: !1,
addPresetLoading: !1,
featuredMedia: null == e || null === (r = e.templateActive) || void 0 === r ? void 0 : r.featured_media
},
i.saveTemplate = i.saveTemplate.bind(Object(yT.a)(i)),
i.updateMedia = i.updateMedia.bind(Object(yT.a)(i)),
i.savePreset = i.savePreset.bind(Object(yT.a)(i)),
i
}
return Object(At.a)(n, [{
key: "updateMedia",
value: function(e) {
var t = this;
this.setState({
loading: !0
});
var n = this.props.templateActive
, r = this.state.featuredMedia;
ps()({
url: e,
method: "GET",
responseType: "blob"
}).then((function(e) {
var i = new Blob([e.data],{
type: "image/png"
})
, o = new FormData;
o.append("file", i, "".concat(Ou()(null == n ? void 0 : n.name), ".png")),
r && function(e) {
return Xs.delete("wp/v2/media/".concat(e, "?app-builder-decode=true&force=true"))
}(r).then((function(e) {
console.log(e)
}
)),
function(e) {
return Xs.post("wp/v2/media?app-builder-decode=true", e, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
})
}(o).then((function(e) {
t.update({
featured_media: e.id
}),
t.setState({
featuredMedia: e.id
})
}
))
}
)).catch((function(e) {
t.setState({
loading: !1
}),
console.log(e)
}
))
}
}, {
key: "savePreset",
value: function() {
var e = this;
this.setState({
addPresetLoading: !0
});
var t = this.props
, n = t.content;
(0,
t.handleCreatePreset)({
data: {
title: t.screenActive,
status: "publish",
content: n
},
cb: function() {
return e.setState({
addPresetLoading: !1
})
}
})
}
}, {
key: "saveTemplate",
value: function() {
this.setState({
loading: !0
}),
this.update({})
}
}, {
key: "componentWillUnmount",
value: function() {
this.props.switchPreview(!1)
}
}, {
key: "render",
value: function() {
var e, t = this.props, n = t.widgetIds, r = t.widgets, i = t.activeWidget, o = t.preview, a = t.canSelect, l = t.screenActive, s = t.templateActive;
return Object(Ip.jsxs)(ARe, {
children: [Object(Ip.jsxs)(ERe, {
children: [Object(Ip.jsx)(TRe, {
children: Object(Ip.jsx)(Yq, {
data: {
id: null == s ? void 0 : s.id,
url: SBe,
name: Ou()(null == s ? void 0 : s.name)
},
pending: this.state.loading,
addPresetLoading: this.state.addPresetLoading,
saveTemplate: this.saveTemplate,
updateMedia: this.updateMedia,
savePreset: this.savePreset
})
}), Object(Ip.jsx)(IRe, {
children: Object(Ip.jsxs)(iMe, {
onDragEnd: this.onDragEnd,
children: [Object(Ip.jsx)(yBe, {
isDragDisabled: o || !a
}), o ? Object(Ip.jsx)(MBe, {
templateActiveId: null !== (e = null == s ? void 0 : s.id) && void 0 !== e ? e : 0
}) : l ? Object(Ip.jsx)(fPe, {
widgetIds: n,
widgets: r,
isDragDisabled: !a
}) : null]
})
})]
}), i ? Object(Ip.jsx)(BRe, {}) : null]
})
}
}]),
n
}(l.Component), TBe = va((function(e) {
return {
templateName: sb(e),
content: hu(e),
widgets: fu(e),
widgetIds: bu(e),
activeWidget: mu(e),
preview: Uc(e),
canSelect: ub(e),
updatePending: cb(e).update,
screenActive: lb(e),
templateActive: ob(e)
}
}
), {
addWidget: nu,
reorderWidget: ru,
selectWidget: Bc,
updateTemplate: af,
handleCreatePreset: cf,
switchPreview: Fc
})(ABe), EBe = n(217), IBe = n.n(EBe), NBe = n(218), zBe = n.n(NBe);
function DBe(e) {
var t = zBe.a.decrypt(e, VW.slice(VW.length - 16, VW.length));
return JSON.parse(t.toString(IBe.a))
}
var LBe = window.app_builder.version
, RBe = {
root: [{
backgroundColor: "#F4F6FC",
padding: 25,
textAlign: "center",
width: "100%"
}]
}
, PBe = (new Date).getFullYear()
, BBe = function() {
var e, t, n = Object(l.useContext)(Rb), r = n.settings;
r.name,
r.url;
return Object(Ip.jsx)(Ep, {
block: !0,
variant: "medium",
styles: RBe,
children: null != n && null !== (e = n.profile) && void 0 !== e && e.copyright ? Object(Ip.jsx)("div", {
dangerouslySetInnerHTML: {
__html: null == n || null === (t = n.profile) || void 0 === t ? void 0 : t.copyright
}
}) : Object(Ip.jsxs)(Ip.Fragment, {
children: [
"© ",
PBe,
" ",
Object(Ip.jsx)(QA, {
href: "#",
children: "App Builder"
}),
" v",
null != LBe ? LBe : "",
" ",
""
]
})
})
}
, FBe = {
root: {
height: "100vh"
}
}
, VBe = {
root: {
height: "100vh",
overflow: "scroll"
}
}
, WBe = {
root: {
alignItems: "stretch",
display: "flex",
zIndex: 10
}
}
, qBe = {
root: {
alignItems: "stretch",
display: "flex",
height: 70
}
}
, HBe = {
root: {
alignItems: "stretch",
display: "flex",
height: 70,
zIndex: 9
}
}
, UBe = function(e) {
e.isAuthenticated;
var t = wn()
, n = t.pathname === Rs || t.pathname === zs || t.pathname === Ns || t.pathname === Es || t.pathname.includes(Ts);
return Object(Ip.jsxs)(yj, {
styles: n ? VBe : FBe,
children: [Object(Ip.jsx)(yj.Item, {
styles: qBe,
children: Object(Ip.jsx)(Lq, {})
}), Object(Ip.jsx)(yj.Item, {
grow: !0,
styles: WBe,
children: Object(Ip.jsxs)(xn, {
children: [Object(Ip.jsx)(yn, {
path: Ms,
children: Object(Ip.jsx)(uj, {})
}), Object(Ip.jsx)(yn, {
path: Ss,
children: Object(Ip.jsx)(AS, {})
}), Object(Ip.jsx)(yn, {
path: As,
children: Object(Ip.jsx)(mA, {})
}), Object(Ip.jsx)(yn, {
path: Ls,
children: Object(Ip.jsx)(bA, {})
}), Object(Ip.jsx)(yn, {
path: Ts,
exact: !0,
children: Object(Ip.jsx)(lW, {})
}), Object(Ip.jsx)(yn, {
path: "/features/setting",
exact: !0,
children: Object(Ip.jsx)(sW, {})
}), Object(Ip.jsx)(yn, {
path: "/features/form",
exact: !0,
children: Object(Ip.jsx)(cW, {})
}), Object(Ip.jsx)(yn, {
path: Es,
children: Object(Ip.jsx)(FW, {})
}), Object(Ip.jsx)(yn, {
path: Is,
children: Object(Ip.jsx)(ES, {})
}), Object(Ip.jsx)(Fb, {
path: Ds,
children: Object(Ip.jsx)(TBe, {})
}), Object(Ip.jsx)(yn, {
path: Ns,
children: Object(Ip.jsx)(lS, {})
}), Object(Ip.jsx)(yn, {
path: zs,
children: Object(Ip.jsx)(rS, {})
}), Object(Ip.jsx)(yn, {
path: Rs,
children: Object(Ip.jsx)(H_, {})
})]
})
}), Object(Ip.jsx)(yj.Item, {
styles: HBe,
children: Object(Ip.jsx)(BBe, {})
})]
})
}
, XBe = n(78);
XBe.a.registerVersion("firebase", "9.6.2", "app-compat"),
n(545);
var GBe = n(113)
, KBe = n(21)
, YBe = n(14)
, QBe = n(55);
function JBe(e, t) {
if (void 0 === t)
return {
merge: !1
};
if (void 0 !== t.mergeFields && void 0 !== t.merge)
throw new KBe.g("invalid-argument","Invalid options passed to function ".concat(e, "(): You cannot ") + 'specify both "merge" and "mergeFields".');
return t
}
function ZBe() {
if ("undefined" == typeof Uint8Array)
throw new KBe.g("unimplemented","Uint8Arrays are not available in this environment.")
}
function $Be() {
if (!Object(KBe.r)())
throw new KBe.g("unimplemented","Blobs are unavailable in Firestore in this environment.")
}
var eFe = function() {
function e(t) {
Object(St.a)(this, e),
this._delegate = t
}
return Object(At.a)(e, [{
key: "toBase64",
value: function() {
return $Be(),
this._delegate.toBase64()
}
}, {
key: "toUint8Array",
value: function() {
return ZBe(),
this._delegate.toUint8Array()
}
}, {
key: "isEqual",
value: function(e) {
return this._delegate.isEqual(e._delegate)
}
}, {
key: "toString",
value: function() {
return "Blob(base64: " + this.toBase64() + ")"
}
}], [{
key: "fromBase64String",
value: function(t) {
return $Be(),
new e(KBe.b.fromBase64String(t))
}
}, {
key: "fromUint8Array",
value: function(t) {
return ZBe(),
new e(KBe.b.fromUint8Array(t))
}
}]),
e
}();
function tFe(e) {
return function(e, t) {
if ("object" != typeof e || null === e)
return !1;
var n, r = e, i = Object(jA.a)(["next", "error", "complete"]);
try {
for (i.s(); !(n = i.n()).done; ) {
var o = n.value;
if (o in r && "function" == typeof r[o])
return !0
}
} catch (e) {
i.e(e)
} finally {
i.f()
}
return !1
}(e)
}
var nFe = function() {
function e() {
Object(St.a)(this, e)
}
return Object(At.a)(e, [{
key: "enableIndexedDbPersistence",
value: function(e, t) {
return Object(KBe.F)(e._delegate, {
forceOwnership: t
})
}
}, {
key: "enableMultiTabIndexedDbPersistence",
value: function(e) {
return Object(KBe.G)(e._delegate)
}
}, {
key: "clearIndexedDbPersistence",
value: function(e) {
return Object(KBe.x)(e._delegate)
}
}]),
e
}()
, rFe = function() {
function e(t, n, r) {
var i = this;
Object(St.a)(this, e),
this._delegate = n,
this._persistenceProvider = r,
this.INTERNAL = {
delete: function() {
return i.terminate()
}
},
t instanceof KBe.m || (this._appCompat = t)
}
return Object(At.a)(e, [{
key: "_databaseId",
get: function() {
return this._delegate._databaseId
}
}, {
key: "settings",
value: function(e) {
var t = this._delegate._getSettings();
e.merge || t.host === e.host || Object(KBe.s)("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),
e.merge && delete (e = Object.assign(Object.assign({}, t), e)).merge,
this._delegate._setSettings(e)
}
}, {
key: "useEmulator",
value: function(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
Object(KBe.A)(this._delegate, e, t, n)
}
}, {
key: "enableNetwork",
value: function() {
return Object(KBe.H)(this._delegate)
}
}, {
key: "disableNetwork",
value: function() {
return Object(KBe.D)(this._delegate)
}
}, {
key: "enablePersistence",
value: function(e) {
var t = !1
, n = !1;
return e && (t = !!e.synchronizeTabs,
n = !!e.experimentalForceOwningTab,
Object(KBe.t)("synchronizeTabs", t, "experimentalForceOwningTab", n)),
t ? this._persistenceProvider.enableMultiTabIndexedDbPersistence(this) : this._persistenceProvider.enableIndexedDbPersistence(this, n)
}
}, {
key: "clearPersistence",
value: function() {
return this._persistenceProvider.clearIndexedDbPersistence(this)
}
}, {
key: "terminate",
value: function() {
return this._appCompat && (this._appCompat._removeServiceInstance("firestore-compat"),
this._appCompat._removeServiceInstance("firestore")),
this._delegate._delete()
}
}, {
key: "waitForPendingWrites",
value: function() {
return Object(KBe.lb)(this._delegate)
}
}, {
key: "onSnapshotsInSync",
value: function(e) {
return Object(KBe.Y)(this._delegate, e)
}
}, {
key: "app",
get: function() {
if (!this._appCompat)
throw new KBe.g("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");
return this._appCompat
}
}, {
key: "collection",
value: function(e) {
try {
return new mFe(this,Object(KBe.y)(this._delegate, e))
} catch (e) {
throw cFe(e, "collection()", "Firestore.collection()")
}
}
}, {
key: "doc",
value: function(e) {
try {
return new sFe(this,Object(KBe.E)(this._delegate, e))
} catch (e) {
throw cFe(e, "doc()", "Firestore.doc()")
}
}
}, {
key: "collectionGroup",
value: function(e) {
try {
return new fFe(this,Object(KBe.z)(this._delegate, e))
} catch (e) {
throw cFe(e, "collectionGroup()", "Firestore.collectionGroup()")
}
}
}, {
key: "runTransaction",
value: function(e) {
var t = this;
return Object(KBe.db)(this._delegate, (function(n) {
return e(new oFe(t,n))
}
))
}
}, {
key: "batch",
value: function() {
var e = this;
return Object(KBe.K)(this._delegate),
new aFe(new KBe.l(this._delegate,(function(t) {
return Object(KBe.L)(e._delegate, t)
}
)))
}
}, {
key: "loadBundle",
value: function(e) {
return Object(KBe.V)(this._delegate, e)
}
}, {
key: "namedQuery",
value: function(e) {
var t = this;
return Object(KBe.W)(this._delegate, e).then((function(e) {
return e ? new fFe(t,e) : null
}
))
}
}]),
e
}()
, iFe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this)).firestore = e,
r
}
return Object(At.a)(n, [{
key: "convertBytes",
value: function(e) {
return new eFe(new KBe.b(e))
}
}, {
key: "convertReference",
value: function(e) {
var t = this.convertDocumentKey(e, this.firestore._databaseId);
return sFe.forKey(t, this.firestore, null)
}
}]),
n
}(KBe.a)
, oFe = function() {
function e(t, n) {
Object(St.a)(this, e),
this._firestore = t,
this._delegate = n,
this._userDataWriter = new iFe(t)
}
return Object(At.a)(e, [{
key: "get",
value: function(e) {
var t = this
, n = vFe(e);
return this._delegate.get(n).then((function(e) {
return new pFe(t._firestore,new KBe.e(t._firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,n.converter))
}
))
}
}, {
key: "set",
value: function(e, t, n) {
var r = vFe(e);
return n ? (JBe("Transaction.set", n),
this._delegate.set(r, t, n)) : this._delegate.set(r, t),
this
}
}, {
key: "update",
value: function(e, t, n) {
for (var r = arguments.length, i = new Array(r > 3 ? r - 3 : 0), o = 3; o < r; o++)
i[o - 3] = arguments[o];
var a, l = vFe(e);
return 2 === arguments.length ? this._delegate.update(l, t) : (a = this._delegate).update.apply(a, [l, t, n].concat(i)),
this
}
}, {
key: "delete",
value: function(e) {
var t = vFe(e);
return this._delegate.delete(t),
this
}
}]),
e
}()
, aFe = function() {
function e(t) {
Object(St.a)(this, e),
this._delegate = t
}
return Object(At.a)(e, [{
key: "set",
value: function(e, t, n) {
var r = vFe(e);
return n ? (JBe("WriteBatch.set", n),
this._delegate.set(r, t, n)) : this._delegate.set(r, t),
this
}
}, {
key: "update",
value: function(e, t, n) {
for (var r = arguments.length, i = new Array(r > 3 ? r - 3 : 0), o = 3; o < r; o++)
i[o - 3] = arguments[o];
var a, l = vFe(e);
return 2 === arguments.length ? this._delegate.update(l, t) : (a = this._delegate).update.apply(a, [l, t, n].concat(i)),
this
}
}, {
key: "delete",
value: function(e) {
var t = vFe(e);
return this._delegate.delete(t),
this
}
}, {
key: "commit",
value: function() {
return this._delegate.commit()
}
}]),
e
}()
, lFe = function() {
function e(t, n, r) {
Object(St.a)(this, e),
this._firestore = t,
this._userDataWriter = n,
this._delegate = r
}
return Object(At.a)(e, [{
key: "fromFirestore",
value: function(e, t) {
var n = new KBe.i(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);
return this._delegate.fromFirestore(new hFe(this._firestore,n), null != t ? t : {})
}
}, {
key: "toFirestore",
value: function(e, t) {
return t ? this._delegate.toFirestore(e, t) : this._delegate.toFirestore(e)
}
}], [{
key: "getInstance",
value: function(t, n) {
var r = e.INSTANCES
, i = r.get(t);
i || (i = new WeakMap,
r.set(t, i));
var o = i.get(n);
return o || (o = new e(t,new iFe(t),n),
i.set(n, o)),
o
}
}]),
e
}();
lFe.INSTANCES = new WeakMap;
var sFe = function() {
function e(t, n) {
Object(St.a)(this, e),
this.firestore = t,
this._delegate = n,
this._userDataWriter = new iFe(t)
}
return Object(At.a)(e, [{
key: "id",
get: function() {
return this._delegate.id
}
}, {
key: "parent",
get: function() {
return new mFe(this.firestore,this._delegate.parent)
}
}, {
key: "path",
get: function() {
return this._delegate.path
}
}, {
key: "collection",
value: function(e) {
try {
return new mFe(this.firestore,Object(KBe.y)(this._delegate, e))
} catch (e) {
throw cFe(e, "collection()", "DocumentReference.collection()")
}
}
}, {
key: "isEqual",
value: function(e) {
return (e = Object(YBe.k)(e))instanceof KBe.d && Object(KBe.cb)(this._delegate, e)
}
}, {
key: "set",
value: function(e, t) {
t = JBe("DocumentReference.set", t);
try {
return t ? Object(KBe.fb)(this._delegate, e, t) : Object(KBe.fb)(this._delegate, e)
} catch (e) {
throw cFe(e, "setDoc()", "DocumentReference.set()")
}
}
}, {
key: "update",
value: function(e, t) {
for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
r[i - 2] = arguments[i];
try {
return 1 === arguments.length ? Object(KBe.kb)(this._delegate, e) : KBe.kb.apply(void 0, [this._delegate, e, t].concat(r))
} catch (e) {
throw cFe(e, "updateDoc()", "DocumentReference.update()")
}
}
}, {
key: "delete",
value: function() {
return Object(KBe.B)(this._delegate)
}
}, {
key: "onSnapshot",
value: function() {
for (var e = this, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
var i = uFe(n)
, o = dFe(n, (function(t) {
return new pFe(e.firestore,new KBe.e(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))
}
));
return Object(KBe.X)(this._delegate, i, o)
}
}, {
key: "get",
value: function(e) {
var t = this;
return ("cache" === (null == e ? void 0 : e.source) ? Object(KBe.N)(this._delegate) : "server" === (null == e ? void 0 : e.source) ? Object(KBe.O)(this._delegate) : Object(KBe.M)(this._delegate)).then((function(e) {
return new pFe(t.firestore,new KBe.e(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))
}
))
}
}, {
key: "withConverter",
value: function(t) {
return new e(this.firestore,t ? this._delegate.withConverter(lFe.getInstance(this.firestore, t)) : this._delegate.withConverter(null))
}
}], [{
key: "forPath",
value: function(t, n, r) {
if (t.length % 2 != 0)
throw new KBe.g("invalid-argument","Invalid document reference. Document references must have an even number of segments, but " + "".concat(t.canonicalString(), " has ").concat(t.length));
return new e(n,new KBe.d(n._delegate,r,new KBe.n(t)))
}
}, {
key: "forKey",
value: function(t, n, r) {
return new e(n,new KBe.d(n._delegate,r,t))
}
}]),
e
}();
function cFe(e, t, n) {
return e.message = e.message.replace(t, n),
e
}
function uFe(e) {
var t, n = Object(jA.a)(e);
try {
for (n.s(); !(t = n.n()).done; ) {
var r = t.value;
if ("object" == typeof r && !tFe(r))
return r
}
} catch (e) {
n.e(e)
} finally {
n.f()
}
return {}
}
function dFe(e, t) {
var n, r, i;
return {
next: function(e) {
i.next && i.next(t(e))
},
error: null === (n = (i = tFe(e[0]) ? e[0] : tFe(e[1]) ? e[1] : "function" == typeof e[0] ? {
next: e[0],
error: e[1],
complete: e[2]
} : {
next: e[1],
error: e[2],
complete: e[3]
}).error) || void 0 === n ? void 0 : n.bind(i),
complete: null === (r = i.complete) || void 0 === r ? void 0 : r.bind(i)
}
}
var pFe = function() {
function e(t, n) {
Object(St.a)(this, e),
this._firestore = t,
this._delegate = n
}
return Object(At.a)(e, [{
key: "ref",
get: function() {
return new sFe(this._firestore,this._delegate.ref)
}
}, {
key: "id",
get: function() {
return this._delegate.id
}
}, {
key: "metadata",
get: function() {
return this._delegate.metadata
}
}, {
key: "exists",
get: function() {
return this._delegate.exists()
}
}, {
key: "data",
value: function(e) {
return this._delegate.data(e)
}
}, {
key: "get",
value: function(e, t) {
return this._delegate.get(e, t)
}
}, {
key: "isEqual",
value: function(e) {
return Object(KBe.hb)(this._delegate, e._delegate)
}
}]),
e
}()
, hFe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n() {
return Object(St.a)(this, n),
t.apply(this, arguments)
}
return Object(At.a)(n, [{
key: "data",
value: function(e) {
var t = this._delegate.data(e);
return Object(KBe.q)(void 0 !== t, "Document in a QueryDocumentSnapshot should exist"),
t
}
}]),
n
}(pFe)
, fFe = function() {
function e(t, n) {
Object(St.a)(this, e),
this.firestore = t,
this._delegate = n,
this._userDataWriter = new iFe(t)
}
return Object(At.a)(e, [{
key: "where",
value: function(t, n, r) {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, Object(KBe.mb)(t, n, r)))
} catch (e) {
throw cFe(e, /(orderBy|where)\(\)/, "Query.$1()")
}
}
}, {
key: "orderBy",
value: function(t, n) {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, Object(KBe.Z)(t, n)))
} catch (e) {
throw cFe(e, /(orderBy|where)\(\)/, "Query.$1()")
}
}
}, {
key: "limit",
value: function(t) {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, Object(KBe.T)(t)))
} catch (e) {
throw cFe(e, "limit()", "Query.limit()")
}
}
}, {
key: "limitToLast",
value: function(t) {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, Object(KBe.U)(t)))
} catch (e) {
throw cFe(e, "limitToLast()", "Query.limitToLast()")
}
}
}, {
key: "startAt",
value: function() {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, KBe.jb.apply(void 0, arguments)))
} catch (e) {
throw cFe(e, "startAt()", "Query.startAt()")
}
}
}, {
key: "startAfter",
value: function() {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, KBe.ib.apply(void 0, arguments)))
} catch (e) {
throw cFe(e, "startAfter()", "Query.startAfter()")
}
}
}, {
key: "endBefore",
value: function() {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, KBe.J.apply(void 0, arguments)))
} catch (e) {
throw cFe(e, "endBefore()", "Query.endBefore()")
}
}
}, {
key: "endAt",
value: function() {
try {
return new e(this.firestore,Object(KBe.ab)(this._delegate, KBe.I.apply(void 0, arguments)))
} catch (e) {
throw cFe(e, "endAt()", "Query.endAt()")
}
}
}, {
key: "isEqual",
value: function(e) {
return Object(KBe.bb)(this._delegate, e._delegate)
}
}, {
key: "get",
value: function(e) {
var t = this;
return ("cache" === (null == e ? void 0 : e.source) ? Object(KBe.Q)(this._delegate) : "server" === (null == e ? void 0 : e.source) ? Object(KBe.R)(this._delegate) : Object(KBe.P)(this._delegate)).then((function(e) {
return new gFe(t.firestore,new KBe.j(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))
}
))
}
}, {
key: "onSnapshot",
value: function() {
for (var e = this, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
var i = uFe(n)
, o = dFe(n, (function(t) {
return new gFe(e.firestore,new KBe.j(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))
}
));
return Object(KBe.X)(this._delegate, i, o)
}
}, {
key: "withConverter",
value: function(t) {
return new e(this.firestore,t ? this._delegate.withConverter(lFe.getInstance(this.firestore, t)) : this._delegate.withConverter(null))
}
}]),
e
}()
, bFe = function() {
function e(t, n) {
Object(St.a)(this, e),
this._firestore = t,
this._delegate = n
}
return Object(At.a)(e, [{
key: "type",
get: function() {
return this._delegate.type
}
}, {
key: "doc",
get: function() {
return new hFe(this._firestore,this._delegate.doc)
}
}, {
key: "oldIndex",
get: function() {
return this._delegate.oldIndex
}
}, {
key: "newIndex",
get: function() {
return this._delegate.newIndex
}
}]),
e
}()
, gFe = function() {
function e(t, n) {
Object(St.a)(this, e),
this._firestore = t,
this._delegate = n
}
return Object(At.a)(e, [{
key: "query",
get: function() {
return new fFe(this._firestore,this._delegate.query)
}
}, {
key: "metadata",
get: function() {
return this._delegate.metadata
}
}, {
key: "size",
get: function() {
return this._delegate.size
}
}, {
key: "empty",
get: function() {
return this._delegate.empty
}
}, {
key: "docs",
get: function() {
var e = this;
return this._delegate.docs.map((function(t) {
return new hFe(e._firestore,t)
}
))
}
}, {
key: "docChanges",
value: function(e) {
var t = this;
return this._delegate.docChanges(e).map((function(e) {
return new bFe(t._firestore,e)
}
))
}
}, {
key: "forEach",
value: function(e, t) {
var n = this;
this._delegate.forEach((function(r) {
e.call(t, new hFe(n._firestore,r))
}
))
}
}, {
key: "isEqual",
value: function(e) {
return Object(KBe.hb)(this._delegate, e._delegate)
}
}]),
e
}()
, mFe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e, r) {
var i;
return Object(St.a)(this, n),
(i = t.call(this, e, r)).firestore = e,
i._delegate = r,
i
}
return Object(At.a)(n, [{
key: "id",
get: function() {
return this._delegate.id
}
}, {
key: "path",
get: function() {
return this._delegate.path
}
}, {
key: "parent",
get: function() {
var e = this._delegate.parent;
return e ? new sFe(this.firestore,e) : null
}
}, {
key: "doc",
value: function(e) {
try {
return new sFe(this.firestore,void 0 === e ? Object(KBe.E)(this._delegate) : Object(KBe.E)(this._delegate, e))
} catch (e) {
throw cFe(e, "doc()", "CollectionReference.doc()")
}
}
}, {
key: "add",
value: function(e) {
var t = this;
return Object(KBe.u)(this._delegate, e).then((function(e) {
return new sFe(t.firestore,e)
}
))
}
}, {
key: "isEqual",
value: function(e) {
return Object(KBe.cb)(this._delegate, e._delegate)
}
}, {
key: "withConverter",
value: function(e) {
return new n(this.firestore,e ? this._delegate.withConverter(lFe.getInstance(this.firestore, e)) : this._delegate.withConverter(null))
}
}]),
n
}(fFe);
function vFe(e) {
return Object(KBe.p)(e, KBe.d)
}
var yFe, xFe = function() {
function e() {
Object(St.a)(this, e);
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
n[r] = arguments[r];
this._delegate = Object(GBe.a)(KBe.f, n)
}
return Object(At.a)(e, [{
key: "isEqual",
value: function(e) {
return (e = Object(YBe.k)(e))instanceof KBe.f && this._delegate._internalPath.isEqual(e._internalPath)
}
}], [{
key: "documentId",
value: function() {
return new e(KBe.o.keyField().canonicalString())
}
}]),
e
}(), OFe = function() {
function e(t) {
Object(St.a)(this, e),
this._delegate = t
}
return Object(At.a)(e, [{
key: "isEqual",
value: function(e) {
return this._delegate.isEqual(e._delegate)
}
}], [{
key: "serverTimestamp",
value: function() {
var t = Object(KBe.eb)();
return t._methodName = "FieldValue.serverTimestamp",
new e(t)
}
}, {
key: "delete",
value: function() {
var t = Object(KBe.C)();
return t._methodName = "FieldValue.delete",
new e(t)
}
}, {
key: "arrayUnion",
value: function() {
var t = KBe.w.apply(void 0, arguments);
return t._methodName = "FieldValue.arrayUnion",
new e(t)
}
}, {
key: "arrayRemove",
value: function() {
var t = KBe.v.apply(void 0, arguments);
return t._methodName = "FieldValue.arrayRemove",
new e(t)
}
}, {
key: "increment",
value: function(t) {
var n = Object(KBe.S)(t);
return n._methodName = "FieldValue.increment",
new e(n)
}
}]),
e
}(), jFe = {
Firestore: rFe,
GeoPoint: KBe.h,
Timestamp: KBe.k,
Blob: eFe,
Transaction: oFe,
WriteBatch: aFe,
DocumentReference: sFe,
DocumentSnapshot: pFe,
Query: fFe,
QueryDocumentSnapshot: hFe,
QuerySnapshot: gFe,
CollectionReference: mFe,
FieldPath: xFe,
FieldValue: OFe,
setLogLevel: function(e) {
Object(KBe.gb)(e)
},
CACHE_SIZE_UNLIMITED: KBe.c
};
!function(e) {
var t;
t = function(e, t) {
return new rFe(e,t,new nFe)
}
,
e.INTERNAL.registerComponent(new QBe.a("firestore-compat",(function(e) {
var n = e.getProvider("app-compat").getImmediate()
, r = e.getProvider("firestore").getImmediate();
return t(n, r)
}
),"PUBLIC").setServiceProps(Object.assign({}, jFe))),
e.registerVersion("@firebase/firestore-compat", "0.1.11")
}(XBe.a);
var kFe = (yFe = {},
Object(wt.a)(yFe, _s("3231ljXavx"), _s("3040IHd@`I^&RGE4Z(PqNMSI6zpWZ&/Y8iVCcU]ssA")),
Object(wt.a)(yFe, _s("1131waxz`I}hpx"), _s("2121yxm5nnejue|jbf~5))8:),bjl}fg|,nne")),
Object(wt.a)(yFe, _s("4431]YIjex|xhxm"), _s("3241oqx5qvlidnlhvy5""&9"/hlzev~n/ssd**$isccf")),
Object(wt.a)(yFe, _s("4121lQzmjhxbn"), _s("0311$$+;$7x|tnfik7ppb")),
Object(wt.a)(yFe, _s("3211m|ojiP|bxrmv"), _s("2120enn,|gf}ljb,):8))5ennunxz5mxy")),
Object(wt.a)(yFe, _s("1240oliidmv{mHl{zlhBz"), _s("01005+656%;$$">%")),
Object(wt.a)(yFe, _s("2411tKppb"), _s("4131m|j144+xxj--|;+j</'/xm7|jf7+*4--;+/'/!'71")),
Object(wt.a)(yFe, _s("4320yjeugbjyj`zAl"), _s("0000E7@E^^M@ZXX^")),
yFe);
XBe.a.initializeApp(kFe),
XBe.a.firestore();
var wFe, CFe, _Fe, MFe, SFe = XBe.a, AFe = (n(546),
function() {
return Object(Ip.jsxs)("div", {
className: "lds-ripple",
children: [Object(Ip.jsx)("div", {}), Object(Ip.jsx)("div", {})]
})
}
), TFe = Object(Mu.a)(wFe || (wFe = _u(["\n html, body, #app-builder {\n min-height: 100%;\n height: 100%;\n }\n\n #app-builder {\n z-index: 99999;\n height: 100%;\n background-color: #fff;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n }\n\n // Overwrite tag focus on Wordpress\n a:focus {\n box-shadow: none;\n }\n\n .ms-TextField-field {\n border: none;\n border-radius: 0;\n }\n\n .ms-TextField-field:focus {\n border: none;\n outline: none;\n border-radius: 0;\n }\n\n .mce-toolbar div.wp-link-input {\n max-width: 200px;\n }\n\n .mce-toolbar div.wp-link-input input {\n width: 195px;\n }\n"]))), EFe = window.app_builder.license;
function IFe(e) {
var t = document.getElementById("app_cheap_iframe");
t && t.contentWindow.postMessage(JSON.stringify(e), "*")
}
xo(Po),
// void 0 === CFe && (CFe = "https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/"),
void 0 === CFe && (CFe = "https://res.cdn.office.net/files/fabric-cdn-prod_20240129.001/assets/icons/"),
[function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons"',
src: "url('" + e + "fabric-icons-a13498cf.woff') format('woff')"
},
icons: {
GlobalNavButton: "",
ChevronDown: "",
ChevronUp: "",
Edit: "",
Add: "",
Cancel: "",
More: "",
Settings: "",
Mail: "",
Filter: "",
Search: "",
Share: "",
BlockedSite: "",
FavoriteStar: "",
FavoriteStarFill: "",
CheckMark: "",
Delete: "",
ChevronLeft: "",
ChevronRight: "",
Calendar: "",
Megaphone: "",
Undo: "",
Flag: "",
Page: "",
Pinned: "",
View: "",
Clear: "",
Download: "",
Upload: "",
Folder: "",
Sort: "",
AlignRight: "",
AlignLeft: "",
Tag: "",
AddFriend: "",
Info: "",
SortLines: "",
List: "",
CircleRing: "",
Heart: "",
HeartFill: "",
Tiles: "",
Embed: "",
Glimmer: "",
Ascending: "",
Descending: "",
SortUp: "",
SortDown: "",
SyncToPC: "",
LargeGrid: "",
SkypeCheck: "",
SkypeClock: "",
SkypeMinus: "",
ClearFilter: "",
Flow: "",
StatusCircleCheckmark: "",
MoreVertical: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-0"',
src: "url('" + e + "fabric-icons-0-467ee27f.woff') format('woff')"
},
icons: {
PageLink: "",
CommentSolid: "",
ChangeEntitlements: "",
Installation: "",
WebAppBuilderModule: "",
WebAppBuilderFragment: "",
WebAppBuilderSlot: "",
BullseyeTargetEdit: "",
WebAppBuilderFragmentCreate: "",
PageData: "",
PageHeaderEdit: "",
ProductList: "",
UnpublishContent: "",
DependencyAdd: "",
DependencyRemove: "",
EntitlementPolicy: "",
EntitlementRedemption: "",
SchoolDataSyncLogo: "",
PinSolid12: "",
PinSolidOff12: "",
AddLink: "",
SharepointAppIcon16: "",
DataflowsLink: "",
TimePicker: "",
UserWarning: "",
ComplianceAudit: "",
InternetSharing: "",
Brightness: "",
MapPin: "",
Airplane: "",
Tablet: "",
QuickNote: "",
Video: "",
People: "",
Phone: "",
Pin: "",
Shop: "",
Stop: "",
Link: "",
AllApps: "",
Zoom: "",
ZoomOut: "",
Microphone: "",
Camera: "",
Attach: "",
Send: "",
FavoriteList: "",
PageSolid: "",
Forward: "",
Back: "",
Refresh: "",
Lock: "",
ReportHacked: "",
EMI: "",
MiniLink: "",
Blocked: "",
ReadingMode: "",
Favicon: "",
Remove: "",
Checkbox: "",
CheckboxComposite: "",
CheckboxFill: "",
CheckboxIndeterminate: "",
CheckboxCompositeReversed: "",
BackToWindow: "",
FullScreen: "",
Print: "",
Up: "",
Down: "",
OEM: "",
Save: "",
ReturnKey: "",
Cloud: "",
Flashlight: "",
CommandPrompt: "",
Sad: "",
RealEstate: "",
SIPMove: "",
EraseTool: "",
GripperTool: "",
Dialpad: "",
PageLeft: "",
PageRight: "",
MultiSelect: "",
KeyboardClassic: "",
Play: "",
Pause: "",
InkingTool: "",
Emoji2: "",
GripperBarHorizontal: "",
System: "",
Personalize: "",
SearchAndApps: "",
Globe: "",
EaseOfAccess: "",
ContactInfo: "",
Unpin: "",
Contact: "",
Memo: "",
IncomingCall: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-1"',
src: "url('" + e + "fabric-icons-1-4d521695.woff') format('woff')"
},
icons: {
Paste: "",
WindowsLogo: "",
Error: "",
GripperBarVertical: "",
Unlock: "",
Slideshow: "",
Trim: "",
AutoEnhanceOn: "",
AutoEnhanceOff: "",
Color: "",
SaveAs: "",
Light: "",
Filters: "",
AspectRatio: "",
Contrast: "",
Redo: "",
Crop: "",
PhotoCollection: "",
Album: "",
Rotate: "",
PanoIndicator: "",
Translate: "",
RedEye: "",
ViewOriginal: "",
ThumbnailView: "",
Package: "",
Telemarketer: "",
Warning: "",
Financial: "",
Education: "",
ShoppingCart: "",
Train: "",
Move: "",
TouchPointer: "",
Merge: "",
TurnRight: "",
Ferry: "",
Highlight: "",
PowerButton: "",
Tab: "",
Admin: "",
TVMonitor: "",
Speakers: "",
Game: "",
HorizontalTabKey: "",
UnstackSelected: "",
StackIndicator: "",
Nav2DMapView: "",
StreetsideSplitMinimize: "",
Car: "",
Bus: "",
EatDrink: "",
SeeDo: "",
LocationCircle: "",
Home: "",
SwitcherStartEnd: "",
ParkingLocation: "",
IncidentTriangle: "",
Touch: "",
MapDirections: "",
CaretHollow: "",
CaretSolid: "",
History: "",
Location: "",
MapLayers: "",
SearchNearby: "",
Work: "",
Recent: "",
Hotel: "",
Bank: "",
LocationDot: "",
Dictionary: "",
ChromeBack: "",
FolderOpen: "",
PinnedFill: "",
RevToggleKey: "",
USB: "",
Previous: "",
Next: "",
Sync: "",
Help: "",
Emoji: "",
MailForward: "",
ClosePane: "",
OpenPane: "",
PreviewLink: "",
ZoomIn: "",
Bookmarks: "",
Document: "",
ProtectedDocument: "",
OpenInNewWindow: "",
MailFill: "",
ViewAll: "",
Switch: "",
Rename: "",
Go: "",
Remote: "",
SelectAll: "",
Orientation: "",
Import: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-2"',
src: "url('" + e + "fabric-icons-2-63c99abf.woff') format('woff')"
},
icons: {
Picture: "",
ChromeClose: "",
ShowResults: "",
Message: "",
CalendarDay: "",
CalendarWeek: "",
MailReplyAll: "",
Read: "",
Cut: "",
PaymentCard: "",
Copy: "",
Important: "",
MailReply: "",
GotoToday: "",
Font: "",
FontColor: "",
FolderFill: "",
Permissions: "",
DisableUpdates: "",
Unfavorite: "",
Italic: "",
Underline: "",
Bold: "",
MoveToFolder: "",
Dislike: "",
Like: "",
AlignCenter: "",
OpenFile: "",
ClearSelection: "",
FontDecrease: "",
FontIncrease: "",
FontSize: "",
CellPhone: "",
RepeatOne: "",
RepeatAll: "",
Calculator: "",
Library: "",
PostUpdate: "",
NewFolder: "",
CalendarReply: "",
UnsyncFolder: "",
SyncFolder: "",
BlockContact: "",
Accept: "",
BulletedList: "",
Preview: "",
News: "",
Chat: "",
Group: "",
World: "",
Comment: "",
DockLeft: "",
DockRight: "",
Repair: "",
Accounts: "",
Street: "",
RadioBullet: "",
Stopwatch: "",
Clock: "",
WorldClock: "",
AlarmClock: "",
Photo: "",
ActionCenter: "",
Hospital: "",
Timer: "",
FullCircleMask: "",
LocationFill: "",
ChromeMinimize: "",
ChromeRestore: "",
Annotation: "",
Fingerprint: "",
Handwriting: "",
ChromeFullScreen: "",
Completed: "",
Label: "",
FlickDown: "",
FlickUp: "",
FlickLeft: "",
FlickRight: "",
MiniExpand: "",
MiniContract: "",
Streaming: "",
MusicInCollection: "",
OneDriveLogo: "",
CompassNW: "",
Code: "",
LightningBolt: "",
CalculatorMultiply: "",
CalculatorAddition: "",
CalculatorSubtract: "",
CalculatorPercentage: "",
CalculatorEqualTo: "",
PrintfaxPrinterFile: "",
StorageOptical: "",
Communications: "",
Headset: "",
Health: "",
Webcam2: "",
FrontCamera: "",
ChevronUpSmall: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-3"',
src: "url('" + e + "fabric-icons-3-089e217a.woff') format('woff')"
},
icons: {
ChevronDownSmall: "",
ChevronLeftSmall: "",
ChevronRightSmall: "",
ChevronUpMed: "",
ChevronDownMed: "",
ChevronLeftMed: "",
ChevronRightMed: "",
Devices2: "",
PC1: "",
PresenceChickletVideo: "",
Reply: "",
HalfAlpha: "",
ConstructionCone: "",
DoubleChevronLeftMed: "",
Volume0: "",
Volume1: "",
Volume2: "",
Volume3: "",
Chart: "",
Robot: "",
Manufacturing: "",
LockSolid: "",
FitPage: "",
FitWidth: "",
BidiLtr: "",
BidiRtl: "",
RightDoubleQuote: "",
Sunny: "",
CloudWeather: "",
Cloudy: "",
PartlyCloudyDay: "",
PartlyCloudyNight: "",
ClearNight: "",
RainShowersDay: "",
Rain: "",
Thunderstorms: "",
RainSnow: "",
Snow: "",
BlowingSnow: "",
Frigid: "",
Fog: "",
Squalls: "",
Duststorm: "",
Unknown: "",
Precipitation: "",
Ribbon: "",
AreaChart: "",
Assign: "",
FlowChart: "",
CheckList: "",
Diagnostic: "",
Generate: "",
LineChart: "",
Equalizer: "",
BarChartHorizontal: "",
BarChartVertical: "",
Freezing: "",
FunnelChart: "",
Processing: "",
Quantity: "",
ReportDocument: "",
StackColumnChart: "",
SnowShowerDay: "",
HailDay: "",
WorkFlow: "",
HourGlass: "",
StoreLogoMed20: "",
TimeSheet: "",
TriangleSolid: "",
UpgradeAnalysis: "",
VideoSolid: "",
RainShowersNight: "",
SnowShowerNight: "",
Teamwork: "",
HailNight: "",
PeopleAdd: "",
Glasses: "",
DateTime2: "",
Shield: "",
Header1: "",
PageAdd: "",
NumberedList: "",
PowerBILogo: "",
Info2: "",
MusicInCollectionFill: "",
Asterisk: "",
ErrorBadge: "",
CircleFill: "",
Record2: "",
AllAppsMirrored: "",
BookmarksMirrored: "",
BulletedListMirrored: "",
CaretHollowMirrored: "",
CaretSolidMirrored: "",
ChromeBackMirrored: "",
ClearSelectionMirrored: "",
ClosePaneMirrored: "",
DockLeftMirrored: "",
DoubleChevronLeftMedMirrored: "",
GoMirrored: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-4"',
src: "url('" + e + "fabric-icons-4-a656cc0a.woff') format('woff')"
},
icons: {
HelpMirrored: "",
ImportMirrored: "",
ImportAllMirrored: "",
ListMirrored: "",
MailForwardMirrored: "",
MailReplyMirrored: "",
MailReplyAllMirrored: "",
MiniContractMirrored: "",
MiniExpandMirrored: "",
OpenPaneMirrored: "",
ParkingLocationMirrored: "",
SendMirrored: "",
ShowResultsMirrored: "",
ThumbnailViewMirrored: "",
Media: "",
Devices3: "",
Focus: "",
VideoLightOff: "",
Lightbulb: "",
StatusTriangle: "",
VolumeDisabled: "",
Puzzle: "",
EmojiNeutral: "",
EmojiDisappointed: "",
HomeSolid: "",
Ringer: "",
PDF: "",
HeartBroken: "",
StoreLogo16: "",
MultiSelectMirrored: "",
Broom: "",
AddToShoppingList: "",
Cocktails: "",
Wines: "",
Articles: "",
Cycling: "",
DietPlanNotebook: "",
Pill: "",
ExerciseTracker: "",
HandsFree: "",
Medical: "",
Running: "",
Weights: "",
Trackers: "",
AddNotes: "",
AllCurrency: "",
BarChart4: "",
CirclePlus: "",
Coffee: "",
Cotton: "",
Market: "",
Money: "",
PieDouble: "",
PieSingle: "",
RemoveFilter: "",
Savings: "",
Sell: "",
StockDown: "",
StockUp: "",
Lamp: "",
Source: "",
MSNVideos: "",
Cricket: "",
Golf: "",
Baseball: "",
Soccer: "",
MoreSports: "",
AutoRacing: "",
CollegeHoops: "",
CollegeFootball: "",
ProFootball: "",
ProHockey: "",
Rugby: "",
SubstitutionsIn: "",
Tennis: "",
Arrivals: "",
Design: "",
Website: "",
Drop: "",
HistoricalWeather: "",
SkiResorts: "",
Snowflake: "",
BusSolid: "",
FerrySolid: "",
AirplaneSolid: "",
TrainSolid: "",
Ticket: "",
WifiWarning4: "",
Devices4: "",
AzureLogo: "",
BingLogo: "",
MSNLogo: "",
OutlookLogoInverse: "",
OfficeLogo: "",
SkypeLogo: "",
Door: "",
EditMirrored: "",
GiftCard: "",
DoubleBookmark: "",
StatusErrorFull: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-5"',
src: "url('" + e + "fabric-icons-5-f95ba260.woff') format('woff')"
},
icons: {
Certificate: "",
FastForward: "",
Rewind: "",
Photo2: "",
OpenSource: "",
Movers: "",
CloudDownload: "",
Family: "",
WindDirection: "",
Bug: "",
SiteScan: "",
BrowserScreenShot: "",
F12DevTools: "",
CSS: "",
JS: "",
DeliveryTruck: "",
ReminderPerson: "",
ReminderGroup: "",
ReminderTime: "",
TabletMode: "",
Umbrella: "",
NetworkTower: "",
CityNext: "",
CityNext2: "",
Section: "",
OneNoteLogoInverse: "",
ToggleFilled: "",
ToggleBorder: "",
SliderThumb: "",
ToggleThumb: "",
Documentation: "",
Badge: "",
Giftbox: "",
VisualStudioLogo: "",
HomeGroup: "",
ExcelLogoInverse: "",
WordLogoInverse: "",
PowerPointLogoInverse: "",
Cafe: "",
SpeedHigh: "",
Commitments: "",
ThisPC: "",
MusicNote: "",
MicOff: "",
PlaybackRate1x: "",
EdgeLogo: "",
CompletedSolid: "",
AlbumRemove: "",
MessageFill: "",
TabletSelected: "",
MobileSelected: "",
LaptopSelected: "",
TVMonitorSelected: "",
DeveloperTools: "",
Shapes: "",
InsertTextBox: "",
LowerBrightness: "",
WebComponents: "",
OfflineStorage: "",
DOM: "",
CloudUpload: "",
ScrollUpDown: "",
DateTime: "",
Event: "",
Cake: "",
Org: "",
PartyLeader: "",
DRM: "",
CloudAdd: "",
AppIconDefault: "",
Photo2Add: "",
Photo2Remove: "",
Calories: "",
POI: "",
AddTo: "",
RadioBtnOff: "",
RadioBtnOn: "",
ExploreContent: "",
Product: "",
ProgressLoopInner: "",
ProgressLoopOuter: "",
Blocked2: "",
FangBody: "",
Toolbox: "",
PageHeader: "",
ChatInviteFriend: "",
Brush: "",
Shirt: "",
Crown: "",
Diamond: "",
ScaleUp: "",
QRCode: "",
Feedback: "",
SharepointLogoInverse: "",
YammerLogo: "",
Hide: "",
Uneditable: "",
ReturnToSession: "",
OpenFolderHorizontal: "",
CalendarMirrored: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-6"',
src: "url('" + e + "fabric-icons-6-ef6fd590.woff') format('woff')"
},
icons: {
SwayLogoInverse: "",
OutOfOffice: "",
Trophy: "",
ReopenPages: "",
EmojiTabSymbols: "",
AADLogo: "",
AccessLogo: "",
AdminALogoInverse32: "",
AdminCLogoInverse32: "",
AdminDLogoInverse32: "",
AdminELogoInverse32: "",
AdminLLogoInverse32: "",
AdminMLogoInverse32: "",
AdminOLogoInverse32: "",
AdminPLogoInverse32: "",
AdminSLogoInverse32: "",
AdminYLogoInverse32: "",
DelveLogoInverse: "",
ExchangeLogoInverse: "",
LyncLogo: "",
OfficeVideoLogoInverse: "",
SocialListeningLogo: "",
VisioLogoInverse: "",
Balloons: "",
Cat: "",
MailAlert: "",
MailCheck: "",
MailLowImportance: "",
MailPause: "",
MailRepeat: "",
SecurityGroup: "",
Table: "",
VoicemailForward: "",
VoicemailReply: "",
Waffle: "",
RemoveEvent: "",
EventInfo: "",
ForwardEvent: "",
WipePhone: "",
AddOnlineMeeting: "",
JoinOnlineMeeting: "",
RemoveLink: "",
PeopleBlock: "",
PeopleRepeat: "",
PeopleAlert: "",
PeoplePause: "",
TransferCall: "",
AddPhone: "",
UnknownCall: "",
NoteReply: "",
NoteForward: "",
NotePinned: "",
RemoveOccurrence: "",
Timeline: "",
EditNote: "",
CircleHalfFull: "",
Room: "",
Unsubscribe: "",
Subscribe: "",
HardDrive: "",
RecurringTask: "",
TaskManager: "",
TaskManagerMirrored: "",
Combine: "",
Split: "",
DoubleChevronUp: "",
DoubleChevronLeft: "",
DoubleChevronRight: "",
TextBox: "",
TextField: "",
NumberField: "",
Dropdown: "",
PenWorkspace: "",
BookingsLogo: "",
ClassNotebookLogoInverse: "",
DelveAnalyticsLogo: "",
DocsLogoInverse: "",
Dynamics365Logo: "",
DynamicSMBLogo: "",
OfficeAssistantLogo: "",
OfficeStoreLogo: "",
OneNoteEduLogoInverse: "",
PlannerLogo: "",
PowerApps: "",
Suitcase: "",
ProjectLogoInverse: "",
CaretLeft8: "",
CaretRight8: "",
CaretUp8: "",
CaretDown8: "",
CaretLeftSolid8: "",
CaretRightSolid8: "",
CaretUpSolid8: "",
CaretDownSolid8: "",
ClearFormatting: "",
Superscript: "",
Subscript: "",
Strikethrough: "",
Export: "",
ExportMirrored: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-7"',
src: "url('" + e + "fabric-icons-7-2b97bb99.woff') format('woff')"
},
icons: {
SingleBookmark: "",
SingleBookmarkSolid: "",
DoubleChevronDown: "",
FollowUser: "",
ReplyAll: "",
WorkforceManagement: "",
RecruitmentManagement: "",
Questionnaire: "",
ManagerSelfService: "",
ProductionFloorManagement: "",
ProductRelease: "",
ProductVariant: "",
ReplyMirrored: "",
ReplyAllMirrored: "",
Medal: "",
AddGroup: "",
QuestionnaireMirrored: "",
CloudImportExport: "",
TemporaryUser: "",
CaretSolid16: "",
GroupedDescending: "",
GroupedAscending: "",
AwayStatus: "",
MyMoviesTV: "",
GenericScan: "",
AustralianRules: "",
WifiEthernet: "",
TrackersMirrored: "",
DateTimeMirrored: "",
StopSolid: "",
DoubleChevronUp12: "",
DoubleChevronDown12: "",
DoubleChevronLeft12: "",
DoubleChevronRight12: "",
CalendarAgenda: "",
ConnectVirtualMachine: "",
AddEvent: "",
AssetLibrary: "",
DataConnectionLibrary: "",
DocLibrary: "",
FormLibrary: "",
FormLibraryMirrored: "",
ReportLibrary: "",
ReportLibraryMirrored: "",
ContactCard: "",
CustomList: "",
CustomListMirrored: "",
IssueTracking: "",
IssueTrackingMirrored: "",
PictureLibrary: "",
OfficeAddinsLogo: "",
OfflineOneDriveParachute: "",
OfflineOneDriveParachuteDisabled: "",
TriangleSolidUp12: "",
TriangleSolidDown12: "",
TriangleSolidLeft12: "",
TriangleSolidRight12: "",
TriangleUp12: "",
TriangleDown12: "",
TriangleLeft12: "",
TriangleRight12: "",
ArrowUpRight8: "",
ArrowDownRight8: "",
DocumentSet: "",
GoToDashboard: "",
DelveAnalytics: "",
ArrowUpRightMirrored8: "",
ArrowDownRightMirrored8: "",
CompanyDirectory: "",
OpenEnrollment: "",
CompanyDirectoryMirrored: "",
OneDriveAdd: "",
ProfileSearch: "",
Header2: "",
Header3: "",
Header4: "",
RingerSolid: "",
Eyedropper: "",
MarketDown: "",
CalendarWorkWeek: "",
SidePanel: "",
GlobeFavorite: "",
CaretTopLeftSolid8: "",
CaretTopRightSolid8: "",
ViewAll2: "",
DocumentReply: "",
PlayerSettings: "",
ReceiptForward: "",
ReceiptReply: "",
ReceiptCheck: "",
Fax: "",
RecurringEvent: "",
ReplyAlt: "",
ReplyAllAlt: "",
EditStyle: "",
EditMail: "",
Lifesaver: "",
LifesaverLock: "",
InboxCheck: "",
FolderSearch: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-8"',
src: "url('" + e + "fabric-icons-8-6fdf1528.woff') format('woff')"
},
icons: {
CollapseMenu: "",
ExpandMenu: "",
Boards: "",
SunAdd: "",
SunQuestionMark: "",
LandscapeOrientation: "",
DocumentSearch: "",
PublicCalendar: "",
PublicContactCard: "",
PublicEmail: "",
PublicFolder: "",
WordDocument: "",
PowerPointDocument: "",
ExcelDocument: "",
GroupedList: "",
ClassroomLogo: "",
Sections: "",
EditPhoto: "",
Starburst: "",
ShareiOS: "",
AirTickets: "",
PencilReply: "",
Tiles2: "",
SkypeCircleCheck: "",
SkypeCircleClock: "",
SkypeCircleMinus: "",
SkypeMessage: "",
ClosedCaption: "",
ATPLogo: "",
OfficeFormsLogoInverse: "",
RecycleBin: "",
EmptyRecycleBin: "",
Hide2: "",
Breadcrumb: "",
BirthdayCake: "",
TimeEntry: "",
CRMProcesses: "",
PageEdit: "",
PageArrowRight: "",
PageRemove: "",
Database: "",
DataManagementSettings: "",
CRMServices: "",
EditContact: "",
ConnectContacts: "",
AppIconDefaultAdd: "",
AppIconDefaultList: "",
ActivateOrders: "",
DeactivateOrders: "",
ProductCatalog: "",
ScatterChart: "",
AccountActivity: "",
DocumentManagement: "",
CRMReport: "",
KnowledgeArticle: "",
Relationship: "",
HomeVerify: "",
ZipFolder: "",
SurveyQuestions: "",
TextDocument: "",
TextDocumentShared: "",
PageCheckedOut: "",
PageShared: "",
SaveAndClose: "",
Script: "",
Archive: "",
ActivityFeed: "",
Compare: "",
EventDate: "",
ArrowUpRight: "",
CaretRight: "",
SetAction: "",
ChatBot: "",
CaretSolidLeft: "",
CaretSolidDown: "",
CaretSolidRight: "",
CaretSolidUp: "",
PowerAppsLogo: "",
PowerApps2Logo: "",
SearchIssue: "",
SearchIssueMirrored: "",
FabricAssetLibrary: "",
FabricDataConnectionLibrary: "",
FabricDocLibrary: "",
FabricFormLibrary: "",
FabricFormLibraryMirrored: "",
FabricReportLibrary: "",
FabricReportLibraryMirrored: "",
FabricPublicFolder: "",
FabricFolderSearch: "",
FabricMovetoFolder: "",
FabricUnsyncFolder: "",
FabricSyncFolder: "",
FabricOpenFolderHorizontal: "",
FabricFolder: "",
FabricFolderFill: "",
FabricNewFolder: "",
FabricPictureLibrary: "",
PhotoVideoMedia: "",
AddFavorite: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-9"',
src: "url('" + e + "fabric-icons-9-c6162b42.woff') format('woff')"
},
icons: {
AddFavoriteFill: "",
BufferTimeBefore: "",
BufferTimeAfter: "",
BufferTimeBoth: "",
PublishContent: "",
ClipboardList: "",
ClipboardListMirrored: "",
CannedChat: "",
SkypeForBusinessLogo: "",
TabCenter: "",
PageCheckedin: "",
PageList: "",
ReadOutLoud: "",
CaretBottomLeftSolid8: "",
CaretBottomRightSolid8: "",
FolderHorizontal: "",
MicrosoftStaffhubLogo: "",
GiftboxOpen: "",
StatusCircleOuter: "",
StatusCircleInner: "",
StatusCircleRing: "",
StatusTriangleOuter: "",
StatusTriangleInner: "",
StatusTriangleExclamation: "",
StatusCircleExclamation: "",
StatusCircleErrorX: "",
StatusCircleInfo: "",
StatusCircleBlock: "",
StatusCircleBlock2: "",
StatusCircleQuestionMark: "",
StatusCircleSync: "",
Toll: "",
ExploreContentSingle: "",
CollapseContent: "",
CollapseContentSingle: "",
InfoSolid: "",
GroupList: "",
ProgressRingDots: "",
CaloriesAdd: "",
BranchFork: "",
MuteChat: "",
AddHome: "",
AddWork: "",
MobileReport: "",
ScaleVolume: "",
HardDriveGroup: "",
FastMode: "",
ToggleLeft: "",
ToggleRight: "",
TriangleShape: "",
RectangleShape: "",
CubeShape: "",
Trophy2: "",
BucketColor: "",
BucketColorFill: "",
Taskboard: "",
SingleColumn: "",
DoubleColumn: "",
TripleColumn: "",
ColumnLeftTwoThirds: "",
ColumnRightTwoThirds: "",
AccessLogoFill: "",
AnalyticsLogo: "",
AnalyticsQuery: "",
NewAnalyticsQuery: "",
AnalyticsReport: "",
WordLogo: "",
WordLogoFill: "",
ExcelLogo: "",
ExcelLogoFill: "",
OneNoteLogo: "",
OneNoteLogoFill: "",
OutlookLogo: "",
OutlookLogoFill: "",
PowerPointLogo: "",
PowerPointLogoFill: "",
PublisherLogo: "",
PublisherLogoFill: "",
ScheduleEventAction: "",
FlameSolid: "",
ServerProcesses: "",
Server: "",
SaveAll: "",
LinkedInLogo: "",
Decimals: "",
SidePanelMirrored: "",
ProtectRestrict: "",
Blog: "",
UnknownMirrored: "",
PublicContactCardMirrored: "",
GridViewSmall: "",
GridViewMedium: "",
GridViewLarge: "",
Step: "",
StepInsert: "",
StepShared: "",
StepSharedAdd: "",
StepSharedInsert: "",
ViewDashboard: "",
ViewList: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-10"',
src: "url('" + e + "fabric-icons-10-c4ded8e4.woff') format('woff')"
},
icons: {
ViewListGroup: "",
ViewListTree: "",
TriggerAuto: "",
TriggerUser: "",
PivotChart: "",
StackedBarChart: "",
StackedLineChart: "",
BuildQueue: "",
BuildQueueNew: "",
UserFollowed: "",
ContactLink: "",
Stack: "",
Bullseye: "",
VennDiagram: "",
FiveTileGrid: "",
FocalPoint: "",
Insert: "",
RingerRemove: "",
TeamsLogoInverse: "",
TeamsLogo: "",
TeamsLogoFill: "",
SkypeForBusinessLogoFill: "",
SharepointLogo: "",
SharepointLogoFill: "",
DelveLogo: "",
DelveLogoFill: "",
OfficeVideoLogo: "",
OfficeVideoLogoFill: "",
ExchangeLogo: "",
ExchangeLogoFill: "",
Signin: "",
DocumentApproval: "",
CloneToDesktop: "",
InstallToDrive: "",
Blur: "",
Build: "",
ProcessMetaTask: "",
BranchFork2: "",
BranchLocked: "",
BranchCommit: "",
BranchCompare: "",
BranchMerge: "",
BranchPullRequest: "",
BranchSearch: "",
BranchShelveset: "",
RawSource: "",
MergeDuplicate: "",
RowsGroup: "",
RowsChild: "",
Deploy: "",
Redeploy: "",
ServerEnviroment: "",
VisioDiagram: "",
HighlightMappedShapes: "",
TextCallout: "",
IconSetsFlag: "",
VisioLogo: "",
VisioLogoFill: "",
VisioDocument: "",
TimelineProgress: "",
TimelineDelivery: "",
Backlog: "",
TeamFavorite: "",
TaskGroup: "",
TaskGroupMirrored: "",
ScopeTemplate: "",
AssessmentGroupTemplate: "",
NewTeamProject: "",
CommentAdd: "",
CommentNext: "",
CommentPrevious: "",
ShopServer: "",
LocaleLanguage: "",
QueryList: "",
UserSync: "",
UserPause: "",
StreamingOff: "",
ArrowTallUpLeft: "",
ArrowTallUpRight: "",
ArrowTallDownLeft: "",
ArrowTallDownRight: "",
FieldEmpty: "",
FieldFilled: "",
FieldChanged: "",
FieldNotChanged: "",
RingerOff: "",
PlayResume: "",
BulletedList2: "",
BulletedList2Mirrored: "",
ImageCrosshair: "",
GitGraph: "",
Repo: "",
RepoSolid: "",
FolderQuery: "",
FolderList: "",
FolderListMirrored: "",
LocationOutline: "",
POISolid: "",
CalculatorNotEqualTo: "",
BoxSubtractSolid: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-11"',
src: "url('" + e + "fabric-icons-11-2a8393d6.woff') format('woff')"
},
icons: {
BoxAdditionSolid: "",
BoxMultiplySolid: "",
BoxPlaySolid: "",
BoxCheckmarkSolid: "",
CirclePauseSolid: "",
CirclePause: "",
MSNVideosSolid: "",
CircleStopSolid: "",
CircleStop: "",
NavigateBack: "",
NavigateBackMirrored: "",
NavigateForward: "",
NavigateForwardMirrored: "",
UnknownSolid: "",
UnknownMirroredSolid: "",
CircleAddition: "",
CircleAdditionSolid: "",
FilePDB: "",
FileTemplate: "",
FileSQL: "",
FileJAVA: "",
FileASPX: "",
FileCSS: "",
FileSass: "",
FileLess: "",
FileHTML: "",
JavaScriptLanguage: "",
CSharpLanguage: "",
CSharp: "",
VisualBasicLanguage: "",
VB: "",
CPlusPlusLanguage: "",
CPlusPlus: "",
FSharpLanguage: "",
FSharp: "",
TypeScriptLanguage: "",
PythonLanguage: "",
PY: "",
CoffeeScript: "",
MarkDownLanguage: "",
FullWidth: "",
FullWidthEdit: "",
Plug: "",
PlugSolid: "",
PlugConnected: "",
PlugDisconnected: "",
UnlockSolid: "",
Variable: "",
Parameter: "",
CommentUrgent: "",
Storyboard: "",
DiffInline: "",
DiffSideBySide: "",
ImageDiff: "",
ImagePixel: "",
FileBug: "",
FileCode: "",
FileComment: "",
BusinessHoursSign: "",
FileImage: "",
FileSymlink: "",
AutoFillTemplate: "",
WorkItem: "",
WorkItemBug: "",
LogRemove: "",
ColumnOptions: "",
Packages: "",
BuildIssue: "",
AssessmentGroup: "",
VariableGroup: "",
FullHistory: "",
Wheelchair: "",
SingleColumnEdit: "",
DoubleColumnEdit: "",
TripleColumnEdit: "",
ColumnLeftTwoThirdsEdit: "",
ColumnRightTwoThirdsEdit: "",
StreamLogo: "",
PassiveAuthentication: "",
AlertSolid: "",
MegaphoneSolid: "",
TaskSolid: "",
ConfigurationSolid: "",
BugSolid: "",
CrownSolid: "",
Trophy2Solid: "",
QuickNoteSolid: "",
ConstructionConeSolid: "",
PageListSolid: "",
PageListMirroredSolid: "",
StarburstSolid: "",
ReadingModeSolid: "",
SadSolid: "",
HealthSolid: "",
ShieldSolid: "",
GiftBoxSolid: "",
ShoppingCartSolid: "",
MailSolid: "",
ChatSolid: "",
RibbonSolid: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-12"',
src: "url('" + e + "fabric-icons-12-7e945a1e.woff') format('woff')"
},
icons: {
FinancialSolid: "",
FinancialMirroredSolid: "",
HeadsetSolid: "",
PermissionsSolid: "",
ParkingSolid: "",
ParkingMirroredSolid: "",
DiamondSolid: "",
AsteriskSolid: "",
OfflineStorageSolid: "",
BankSolid: "",
DecisionSolid: "",
Parachute: "",
ParachuteSolid: "",
FiltersSolid: "",
ColorSolid: "",
ReviewSolid: "",
ReviewRequestSolid: "",
ReviewRequestMirroredSolid: "",
ReviewResponseSolid: "",
FeedbackRequestSolid: "",
FeedbackRequestMirroredSolid: "",
FeedbackResponseSolid: "",
WorkItemBar: "",
WorkItemBarSolid: "",
Separator: "",
NavigateExternalInline: "",
PlanView: "",
TimelineMatrixView: "",
EngineeringGroup: "",
ProjectCollection: "",
CaretBottomRightCenter8: "",
CaretBottomLeftCenter8: "",
CaretTopRightCenter8: "",
CaretTopLeftCenter8: "",
DonutChart: "",
ChevronUnfold10: "",
ChevronFold10: "",
DoubleChevronDown8: "",
DoubleChevronUp8: "",
DoubleChevronLeft8: "",
DoubleChevronRight8: "",
ChevronDownEnd6: "",
ChevronUpEnd6: "",
ChevronLeftEnd6: "",
ChevronRightEnd6: "",
ContextMenu: "",
AzureAPIManagement: "",
AzureServiceEndpoint: "",
VSTSLogo: "",
VSTSAltLogo1: "",
VSTSAltLogo2: "",
FileTypeSolution: "",
WordLogoInverse16: "",
WordLogo16: "",
WordLogoFill16: "",
PowerPointLogoInverse16: "",
PowerPointLogo16: "",
PowerPointLogoFill16: "",
ExcelLogoInverse16: "",
ExcelLogo16: "",
ExcelLogoFill16: "",
OneNoteLogoInverse16: "",
OneNoteLogo16: "",
OneNoteLogoFill16: "",
OutlookLogoInverse16: "",
OutlookLogo16: "",
OutlookLogoFill16: "",
PublisherLogoInverse16: "",
PublisherLogo16: "",
PublisherLogoFill16: "",
VisioLogoInverse16: "",
VisioLogo16: "",
VisioLogoFill16: "",
TestBeaker: "",
TestBeakerSolid: "",
TestExploreSolid: "",
TestAutoSolid: "",
TestUserSolid: "",
TestImpactSolid: "",
TestPlan: "",
TestStep: "",
TestParameter: "",
TestSuite: "",
TestCase: "",
Sprint: "",
SignOut: "",
TriggerApproval: "",
Rocket: "",
AzureKeyVault: "",
Onboarding: "",
Transition: "",
LikeSolid: "",
DislikeSolid: "",
CRMCustomerInsightsApp: "",
EditCreate: "",
PlayReverseResume: "",
PlayReverse: "",
SearchData: "",
UnSetColor: "",
DeclineCall: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-13"',
src: "url('" + e + "fabric-icons-13-c3989a02.woff') format('woff')"
},
icons: {
RectangularClipping: "",
TeamsLogo16: "",
TeamsLogoFill16: "",
Spacer: "",
SkypeLogo16: "",
SkypeForBusinessLogo16: "",
SkypeForBusinessLogoFill16: "",
FilterSolid: "",
MailUndelivered: "",
MailTentative: "",
MailTentativeMirrored: "",
MailReminder: "",
ReceiptUndelivered: "",
ReceiptTentative: "",
ReceiptTentativeMirrored: "",
Inbox: "",
IRMReply: "",
IRMReplyMirrored: "",
IRMForward: "",
IRMForwardMirrored: "",
VoicemailIRM: "",
EventAccepted: "",
EventTentative: "",
EventTentativeMirrored: "",
EventDeclined: "",
IDBadge: "",
BackgroundColor: "",
OfficeFormsLogoInverse16: "",
OfficeFormsLogo: "",
OfficeFormsLogoFill: "",
OfficeFormsLogo16: "",
OfficeFormsLogoFill16: "",
OfficeFormsLogoInverse24: "",
OfficeFormsLogo24: "",
OfficeFormsLogoFill24: "",
PageLock: "",
NotExecuted: "",
NotImpactedSolid: "",
FieldReadOnly: "",
FieldRequired: "",
BacklogBoard: "",
ExternalBuild: "",
ExternalTFVC: "",
ExternalXAML: "",
IssueSolid: "",
DefectSolid: "",
LadybugSolid: "",
NugetLogo: "",
TFVCLogo: "",
ProjectLogo32: "",
ProjectLogoFill32: "",
ProjectLogo16: "",
ProjectLogoFill16: "",
SwayLogo32: "",
SwayLogoFill32: "",
SwayLogo16: "",
SwayLogoFill16: "",
ClassNotebookLogo32: "",
ClassNotebookLogoFill32: "",
ClassNotebookLogo16: "",
ClassNotebookLogoFill16: "",
ClassNotebookLogoInverse32: "",
ClassNotebookLogoInverse16: "",
StaffNotebookLogo32: "",
StaffNotebookLogoFill32: "",
StaffNotebookLogo16: "",
StaffNotebookLogoFill16: "",
StaffNotebookLogoInverted32: "",
StaffNotebookLogoInverted16: "",
KaizalaLogo: "",
TaskLogo: "",
ProtectionCenterLogo32: "",
GallatinLogo: "",
Globe2: "",
Guitar: "",
Breakfast: "",
Brunch: "",
BeerMug: "",
Vacation: "",
Teeth: "",
Taxi: "",
Chopsticks: "",
SyncOccurence: "",
UnsyncOccurence: "",
GIF: "",
PrimaryCalendar: "",
SearchCalendar: "",
VideoOff: "",
MicrosoftFlowLogo: "",
BusinessCenterLogo: "",
ToDoLogoBottom: "",
ToDoLogoTop: "",
EditSolid12: "",
EditSolidMirrored12: "",
UneditableSolid12: "",
UneditableSolidMirrored12: "",
UneditableMirrored: "",
AdminALogo32: "",
AdminALogoFill32: "",
ToDoLogoInverse: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-14"',
src: "url('" + e + "fabric-icons-14-5cf58db8.woff') format('woff')"
},
icons: {
Snooze: "",
WaffleOffice365: "",
ImageSearch: "",
NewsSearch: "",
VideoSearch: "",
R: "",
FontColorA: "",
FontColorSwatch: "",
LightWeight: "",
NormalWeight: "",
SemiboldWeight: "",
GroupObject: "",
UngroupObject: "",
AlignHorizontalLeft: "",
AlignHorizontalCenter: "",
AlignHorizontalRight: "",
AlignVerticalTop: "",
AlignVerticalCenter: "",
AlignVerticalBottom: "",
HorizontalDistributeCenter: "",
VerticalDistributeCenter: "",
Ellipse: "",
Line: "",
Octagon: "",
Hexagon: "",
Pentagon: "",
RightTriangle: "",
HalfCircle: "",
QuarterCircle: "",
ThreeQuarterCircle: "",
"6PointStar": "",
"12PointStar": "",
ArrangeBringToFront: "",
ArrangeSendToBack: "",
ArrangeSendBackward: "",
ArrangeBringForward: "",
BorderDash: "",
BorderDot: "",
LineStyle: "",
LineThickness: "",
WindowEdit: "",
HintText: "",
MediaAdd: "",
AnchorLock: "",
AutoHeight: "",
ChartSeries: "",
ChartXAngle: "",
ChartYAngle: "",
Combobox: "",
LineSpacing: "",
Padding: "",
PaddingTop: "",
PaddingBottom: "",
PaddingLeft: "",
PaddingRight: "",
NavigationFlipper: "",
AlignJustify: "",
TextOverflow: "",
VisualsFolder: "",
VisualsStore: "",
PictureCenter: "",
PictureFill: "",
PicturePosition: "",
PictureStretch: "",
PictureTile: "",
Slider: "",
SliderHandleSize: "",
DefaultRatio: "",
NumberSequence: "",
GUID: "",
ReportAdd: "",
DashboardAdd: "",
MapPinSolid: "",
WebPublish: "",
PieSingleSolid: "",
BlockedSolid: "",
DrillDown: "",
DrillDownSolid: "",
DrillExpand: "",
DrillShow: "",
SpecialEvent: "",
OneDriveFolder16: "",
FunctionalManagerDashboard: "",
BIDashboard: "",
CodeEdit: "",
RenewalCurrent: "",
RenewalFuture: "",
SplitObject: "",
BulkUpload: "",
DownloadDocument: "",
GreetingCard: "",
Flower: "",
WaitlistConfirm: "",
WaitlistConfirmMirrored: "",
LaptopSecure: "",
DragObject: "",
EntryView: "",
EntryDecline: "",
ContactCardSettings: "",
ContactCardSettingsMirrored: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-15"',
src: "url('" + e + "fabric-icons-15-3807251b.woff') format('woff')"
},
icons: {
CalendarSettings: "",
CalendarSettingsMirrored: "",
HardDriveLock: "",
HardDriveUnlock: "",
AccountManagement: "",
ReportWarning: "",
TransitionPop: "",
TransitionPush: "",
TransitionEffect: "",
LookupEntities: "",
ExploreData: "",
AddBookmark: "",
SearchBookmark: "",
DrillThrough: "",
MasterDatabase: "",
CertifiedDatabase: "",
MaximumValue: "",
MinimumValue: "",
VisualStudioIDELogo32: "",
PasteAsText: "",
PasteAsCode: "",
BrowserTab: "",
BrowserTabScreenshot: "",
DesktopScreenshot: "",
FileYML: "",
ClipboardSolid: "",
FabricUserFolder: "",
FabricNetworkFolder: "",
BullseyeTarget: "",
AnalyticsView: "",
Video360Generic: "",
Untag: "",
Leave: "",
Trending12: "",
Blocked12: "",
Warning12: "",
CheckedOutByOther12: "",
CheckedOutByYou12: "",
CircleShapeSolid: "",
SquareShapeSolid: "",
TriangleShapeSolid: "",
DropShapeSolid: "",
RectangleShapeSolid: "",
ZoomToFit: "",
InsertColumnsLeft: "",
InsertColumnsRight: "",
InsertRowsAbove: "",
InsertRowsBelow: "",
DeleteColumns: "",
DeleteRows: "",
DeleteRowsMirrored: "",
DeleteTable: "",
AccountBrowser: "",
VersionControlPush: "",
StackedColumnChart2: "",
TripleColumnWide: "",
QuadColumn: "",
WhiteBoardApp16: "",
WhiteBoardApp32: "",
PinnedSolid: "",
InsertSignatureLine: "",
ArrangeByFrom: "",
Phishing: "",
CreateMailRule: "",
PublishCourse: "",
DictionaryRemove: "",
UserRemove: "",
UserEvent: "",
Encryption: "",
PasswordField: "",
OpenInNewTab: "",
Hide3: "",
VerifiedBrandSolid: "",
MarkAsProtected: "",
AuthenticatorApp: "",
WebTemplate: "",
DefenderTVM: "",
MedalSolid: "",
D365TalentLearn: "",
D365TalentInsight: "",
D365TalentHRCore: "",
BacklogList: "",
ButtonControl: "",
TableGroup: "",
MountainClimbing: "",
TagUnknown: "",
TagUnknownMirror: "",
TagUnknown12: "",
TagUnknown12Mirror: "",
Link12: "",
Presentation: "",
Presentation12: "",
Lock12: "",
BuildDefinition: "",
ReleaseDefinition: "",
SaveTemplate: "",
UserGauge: "",
BlockedSiteSolid12: "",
TagSolid: "",
OfficeChat: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-16"',
src: "url('" + e + "fabric-icons-16-9cf93f3b.woff') format('woff')"
},
icons: {
OfficeChatSolid: "",
MailSchedule: "",
WarningSolid: "",
Blocked2Solid: "",
SkypeCircleArrow: "",
SkypeArrow: "",
SyncStatus: "",
SyncStatusSolid: "",
ProjectDocument: "",
ToDoLogoOutline: "",
VisioOnlineLogoFill32: "",
VisioOnlineLogo32: "",
VisioOnlineLogoCloud32: "",
VisioDiagramSync: "",
Event12: "",
EventDateMissed12: "",
UserOptional: "",
ResponsesMenu: "",
DoubleDownArrow: "",
DistributeDown: "",
BookmarkReport: "",
FilterSettings: "",
GripperDotsVertical: "",
MailAttached: "",
AddIn: "",
LinkedDatabase: "",
TableLink: "",
PromotedDatabase: "",
BarChartVerticalFilter: "",
BarChartVerticalFilterSolid: "",
MicOff2: "",
MicrosoftTranslatorLogo: "",
ShowTimeAs: "",
FileRequest: "",
WorkItemAlert: "",
PowerBILogo16: "",
PowerBILogoBackplate16: "",
BulletedListText: "",
BulletedListBullet: "",
BulletedListTextMirrored: "",
BulletedListBulletMirrored: "",
NumberedListText: "",
NumberedListNumber: "",
NumberedListTextMirrored: "",
NumberedListNumberMirrored: "",
RemoveLinkChain: "",
RemoveLinkX: "",
FabricTextHighlight: "",
ClearFormattingA: "",
ClearFormattingEraser: "",
Photo2Fill: "",
IncreaseIndentText: "",
IncreaseIndentArrow: "",
DecreaseIndentText: "",
DecreaseIndentArrow: "",
IncreaseIndentTextMirrored: "",
IncreaseIndentArrowMirrored: "",
DecreaseIndentTextMirrored: "",
DecreaseIndentArrowMirrored: "",
CheckListText: "",
CheckListCheck: "",
CheckListTextMirrored: "",
CheckListCheckMirrored: "",
NumberSymbol: "",
Coupon: "",
VerifiedBrand: "",
ReleaseGate: "",
ReleaseGateCheck: "",
ReleaseGateError: "",
M365InvoicingLogo: "",
RemoveFromShoppingList: "",
ShieldAlert: "",
FabricTextHighlightComposite: "",
Dataflows: "",
GenericScanFilled: "",
DiagnosticDataBarTooltip: "",
SaveToMobile: "",
Orientation2: "",
ScreenCast: "",
ShowGrid: "",
SnapToGrid: "",
ContactList: "",
NewMail: "",
EyeShadow: "",
FabricFolderConfirm: "",
InformationBarriers: "",
CommentActive: "",
ColumnVerticalSectionEdit: "",
WavingHand: "",
ShakeDevice: "",
SmartGlassRemote: "",
Rotate90Clockwise: "",
Rotate90CounterClockwise: "",
CampaignTemplate: "",
ChartTemplate: "",
PageListFilter: "",
SecondaryNav: "",
ColumnVerticalSection: "",
SkypeCircleSlash: "",
SkypeSlash: ""
}
}, t)
}
, function(e, t) {
void 0 === e && (e = ""),
So({
style: {
MozOsxFontSmoothing: "grayscale",
WebkitFontSmoothing: "antialiased",
fontStyle: "normal",
fontWeight: "normal",
speak: "none"
},
fontFace: {
fontFamily: '"FabricMDL2Icons-17"',
src: "url('" + e + "fabric-icons-17-0c4ed701.woff') format('woff')"
},
icons: {
CustomizeToolbar: "",
DuplicateRow: "",
RemoveFromTrash: "",
MailOptions: "",
Childof: "",
Footer: "",
Header: "",
BarChartVerticalFill: "",
StackedColumnChart2Fill: "",
PlainText: "",
AccessibiltyChecker: "",
DatabaseSync: "",
ReservationOrders: "",
TabOneColumn: "",
TabTwoColumn: "",
TabThreeColumn: "",
BulletedTreeList: "",
MicrosoftTranslatorLogoGreen: "",
MicrosoftTranslatorLogoBlue: "",
InternalInvestigation: "",
AddReaction: "",
ContactHeart: "",
VisuallyImpaired: "",
EventToDoLogo: "",
Variable2: "",
ModelingView: "",
DisconnectVirtualMachine: "",
ReportLock: "",
Uneditable2: "",
Uneditable2Mirrored: "",
BarChartVerticalEdit: "",
GlobalNavButtonActive: "",
PollResults: "",
Rerun: "",
QandA: "",
QandAMirror: "",
BookAnswers: "",
AlertSettings: "",
TrimStart: "",
TrimEnd: "",
TableComputed: "",
DecreaseIndentLegacy: "",
IncreaseIndentLegacy: "",
SizeLegacy: ""
}
}, t)
}
].forEach((function(e) {
return e(CFe, undefined)
}
)),
Ao("trash", "delete"),
Ao("onedrive", "onedrivelogo"),
Ao("alertsolid12", "eventdatemissed12"),
Ao("sixpointstar", "6pointstar"),
Ao("twelvepointstar", "12pointstar"),
Ao("toggleon", "toggleleft"),
Ao("toggleoff", "toggleright"),
Lb.subscribe((function() {
var e = MFe
, t = Lb.getState()
, n = hu(t);
if (_Fe = lb(t),
MFe = JSON.stringify(n),
_Fe && MFe !== e && n && n.widgetIds.length > 0) {
var r = Dt()(_Fe.toString().trim(), "_");
2 === r.length && IFe({
type: "update",
payload: n,
typeScreen: r[0],
screen: r[1]
})
}
var i = Hc(t);
null !== i && "" !== i && void 0 !== i && IFe({
type: "__select_widget__",
payload: i
})
}
));
var NFe = function(e) {
Object(Tt.a)(n, e);
var t = Object(Et.a)(n);
function n(e) {
var r;
return Object(St.a)(this, n),
(r = t.call(this, e)).unsubscribe = void 0,
r.userSubs = void 0,
r.dataSubs = void 0,
r.verify = Object(Mt.a)(Nt.a.mark((function e() {
var t;
return Nt.a.wrap((function(e) {
for (; ; )
switch (e.prev = e.next) {
case 0:
if (!EFe) {
e.next = 7;
break
}
return e.next = 3,
Us(EFe);
case 3:
if ((t = e.sent) && !t.error && t.verify) {
e.next = 6;
break
}
return e.abrupt("return");
case 6:
t.token && r.login(t.token);
case 7:
case "end":
return e.stop()
}
}
), e)
}
))),
r.logout = function() {
SFe.auth().signOut().then((function() {
return r.setState({
isAuthenticated: !0
})
}
)).catch((function(e) {
console.log(e)
}
))
}
,
r.login = function(e) {
SFe.auth().signInWithCustomToken(e).then((function() {
return r.setState({
isAuthenticated: !0
})
}
)).catch((function(e) {
console.log(e)
}
))
}
,
r.state = {
isAuthenticated: !0,
loading: !0,
logout: r.logout,
login: r.login,
user: {
uid: void 0
},
profile: {
copyright: ""
},
settings: {
btn: {
save: !0,
className: "",
progress: "",
typebtn: "",
txt: "Save"
},
groups: {},
name: "U2FsdGVkX1+LwbZOnMQUXGgHEA8gGM9sfj82CbDwKHI=",
url: "U2FsdGVkX18daNeSAMJmytyS+8rCBLrSPdjypsbR47XD0fqSUee/T2QsgZsCj1HB"
}
},
r
}
return Object(At.a)(n, [{
key: "componentDidMount",
value: function() {
var e = this;
this.unsubscribe = SFe.auth().onAuthStateChanged((function(t) {
if (t) {
e.setState({
isAuthenticated: !0,
user: {
uid: t.uid
}
});
var n = SFe.firestore().collection("users").doc(t.uid);
e.userSubs = n.onSnapshot((function(t) {
if (t.exists) {
var n = t.data();
e.setState({
profile: {
copyright: null == n ? void 0 : n.copyright
}
})
}
}
), (function(e) {
console.log("Error get data")
}
));
var r = SFe.firestore().collection("settings").doc("pro");
e.dataSubs = r.onSnapshot((function(t) {
if (t.exists) {
var n = t.data()
, r = DBe("".concat(null == n ? void 0 : n.bs))
, i = DBe("".concat(null == n ? void 0 : n.groups));
e.setState({
settings: {
btn: r,
groups: i,
name: "".concat(null == n ? void 0 : n.name),
url: "".concat(null == n ? void 0 : n.url)
}
})
}
}
), (function(e) {
console.log("Error get data")
}
))
} else
e.setState({
isAuthenticated: !0
}),
e.verify().then((function(e) {
return console.log("verify error!")
}
));
e.setState({
loading: !1
})
}
)),
window.addEventListener("message", this.handleMessage)
}
}, {
key: "handleMessage",
value: function(e) {
if ("fetch-settings" === e.data) {
var t, n, r = Lb.getState(), i = lb(r), o = null !== (t = null === (n = ob(r)) || void 0 === n ? void 0 : n.data) && void 0 !== t ? t : {}, a = hu(r), l = Dt()(i.toString().trim(), "_");
if (!Rt()(o) && 2 === l.length) {
var s = Il(o, (function(e) {
e[l[0]][[l[1]]] = a
}
));
IFe({
type: "settings",
payload: _t(_t({}, window.app_builder), {}, {
data: s
})
})
}
} else if (void 0 !== e.data && Bt()(e.data, "__select_widget__")) {
var c = e.data.replace("__select_widget__", "");
Lb.dispatch(Bc(c))
}
}
}, {
key: "componentWillUnmount",
value: function() {
this.unsubscribe && this.unsubscribe(),
this.userSubs && this.userSubs(),
this.dataSubs && this.dataSubs(),
window.removeEventListener("message", this.handleMessage)
}
}, {
key: "render",
value: function() {
var e = this.state
, t = e.loading
, n = e.isAuthenticated;
return Object(Ip.jsxs)(Ip.Fragment, {
children: [Object(Ip.jsx)(TFe, {}), t ? Object(Ip.jsx)(AFe, {}) : Object(Ip.jsx)(Rb.Provider, {
value: this.state,
children: Object(Ip.jsx)(Ho, {
store: Lb,
children: Object(Ip.jsx)(un, {
initialEntries: ["/", "/editor", "/contact", "/about", "/analytic"],
initialIndex: 0,
children: Object(Ip.jsx)(UBe, {
isAuthenticated: n
})
})
})
})]
})
}
}]),
n
}(s.a.Component);
!function(e) {
e._metadata = e._metadata || {},
e._metadata.sdk = e._metadata.sdk || {
name: "sentry.javascript.react",
packages: [{
name: "npm:@sentry/react",
version: d
}],
version: d
},
function(e) {
if (void 0 === e && (e = {}),
void 0 === e.defaultIntegrations && (e.defaultIntegrations = Xe),
void 0 === e.release) {
var t = Object(T.a)();
t.SENTRY_RELEASE && t.SENTRY_RELEASE.id && (e.release = t.SENTRY_RELEASE.id)
}
void 0 === e.autoSessionTracking && (e.autoSessionTracking = !0),
void 0 === e.sendClientReports && (e.sendClientReports = !0),
function(e, t) {
var n;
!0 === t.debug && C.b.enable();
var r = Object(w.b)();
null === (n = r.getScope()) || void 0 === n || n.update(t.initialScope);
var i = new e(t);
r.bindClient(i)
}(Re, e),
e.autoSessionTracking && function() {
if (void 0 !== Object(T.a)().document) {
var e = Object(w.b)();
"function" == typeof e.startSession && "function" == typeof e.captureSession && (e.startSession({
ignoreDuration: !0
}),
e.captureSession(),
Object(I.a)({
callback: function(t) {
var n = t.from
, r = t.to;
void 0 !== n && n !== r && (e.startSession({
ignoreDuration: !0
}),
e.captureSession())
},
type: "history"
}))
} else
C.b.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")
}()
}(e)
}({
enabled: !0,
dsn: "https://c18e12d0301b487084d1ff8ffe365764@o561787.ingest.sentry.io/5699576",
integrations: [new i.BrowserTracing],
tracesSampleRate: 1
}),
u.a.render(Object(Ip.jsx)(s.a.StrictMode, {
children: Object(Ip.jsx)(NFe, {})
}), document.getElementById("app-builder"))
}
, function(e, t, n) {
"use strict";
var r;
n.d(t, "a", (function() {
return r
}
)),
function(e) {
e.BeforeSend = "before_send",
e.EventProcessor = "event_processor",
e.NetworkError = "network_error",
e.QueueOverflow = "queue_overflow",
e.RateLimitBackoff = "ratelimit_backoff",
e.SampleRate = "sample_rate"
}(r || (r = {}))
}
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , function(e, t, n) {
"use strict";
var r, i;
n.d(t, "a", (function() {
return r
}
)),
function(e) {
e.Ok = "ok",
e.Exited = "exited",
e.Crashed = "crashed",
e.Abnormal = "abnormal"
}(r || (r = {})),
function(e) {
e.Ok = "ok",
e.Errored = "errored",
e.Crashed = "crashed"
}(i || (i = {}))
}
]);