@uxland/primary-shell 4.3.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1183 -1237
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +117 -125
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/UI/components/primaria-shell/primaria-shell.d.ts +3 -0
- package/dist/primary/shell/src/UI/components/quick-actions-menu/quick-actions-menu.d.ts +1 -0
- package/dist/primary/shell/src/UI/shared-components/index.d.ts +0 -1
- package/dist/primary/shell/src/api/api.d.ts +4 -2
- package/dist/primary/shell/src/api/http-client/http-client.d.ts +7 -1
- package/dist/primary/shell/src/api/interaction-service/confirmation-message.d.ts +3 -0
- package/dist/primary/shell/src/api/interaction-service/index.d.ts +1 -0
- package/dist/primary/shell/src/api/interaction-service/interaction-service-impl.d.ts +7 -0
- package/dist/primary/shell/src/api/interaction-service/interaction-service.d.ts +32 -0
- package/dist/primary/shell/src/api/notification-service/notification-service.d.ts +6 -0
- package/dist/primary/shell/src/api/notification-service/notification.service-impl.d.ts +9 -0
- package/dist/primary/shell/src/api/plugin-busy-manager/plugin-busy-list/component.d.ts +2 -4
- package/dist/primary/shell/src/api/region-manager/region-manager.d.ts +1 -0
- package/dist/primary/shell/src/events.d.ts +1 -0
- package/dist/primary/shell/src/features/bootstrapper.d.ts +1 -1
- package/dist/primary/shell/src/index.d.ts +1 -2
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/export-pdf-modal.d.ts +1 -5
- package/dist/primary/shell/src/internal-plugins/activity-history/localization.d.ts +0 -1
- package/dist/primary/shell/src/locales.d.ts +4 -0
- package/package.json +4 -1
- package/src/UI/components/primaria-shell/primaria-shell.ts +24 -7
- package/src/UI/components/quick-actions-menu/quick-actions-menu.ts +13 -3
- package/src/UI/shared-components/index.ts +0 -1
- package/src/api/api.ts +11 -8
- package/src/api/http-client/http-client.test.ts +188 -76
- package/src/api/http-client/http-client.ts +62 -11
- package/src/api/interaction-service/confirmation-message.tsx +5 -0
- package/src/api/interaction-service/index.ts +1 -0
- package/src/api/interaction-service/interaction-service-impl.tsx +225 -0
- package/src/api/interaction-service/interaction-service.ts +46 -0
- package/src/api/notification-service/notification-service.ts +6 -0
- package/src/api/notification-service/notification.service-impl.ts +45 -0
- package/src/api/plugin-busy-manager/plugin-busy-list/component.ts +3 -4
- package/src/api/plugin-busy-manager/plugin-busy-list/template.ts +1 -1
- package/src/api/region-manager/region-manager.ts +5 -0
- package/src/disposer.ts +1 -1
- package/src/events.ts +1 -0
- package/src/features/bootstrapper.ts +6 -3
- package/src/features/exit/handler.ts +8 -11
- package/src/features/get-user-info/handler.ts +3 -4
- package/src/index.ts +1 -2
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/export-pdf-modal.ts +1 -10
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/export-pdf-modal/template.ts +0 -7
- package/src/internal-plugins/activity-history/activity-history-item/export-to-pdf/handler.ts +8 -8
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/main-view/template.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/search/handler.ts +5 -3
- package/src/internal-plugins/activity-history/localization.ts +0 -1
- package/src/locales.ts +5 -0
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/components/dialog-component.d.ts +0 -19
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/components/notifier-component.d.ts +0 -12
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/confirm-mixin.d.ts +0 -11
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/confirm.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/index.d.ts +0 -5
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/notify.d.ts +0 -4
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/open-dialog.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/shared.d.ts +0 -3
- package/dist/primary/shell/src/UI/shared-components/primaria-interaction/typings.d.ts +0 -40
- package/dist/primary/shell/src/api/interaction-manager/interaction.d.ts +0 -9
- package/src/UI/shared-components/primaria-interaction/components/dialog-component-styles.css +0 -104
- package/src/UI/shared-components/primaria-interaction/components/dialog-component.ts +0 -138
- package/src/UI/shared-components/primaria-interaction/components/notifier-component-styles.css +0 -136
- package/src/UI/shared-components/primaria-interaction/components/notifier-component.ts +0 -69
- package/src/UI/shared-components/primaria-interaction/confirm-mixin.ts +0 -35
- package/src/UI/shared-components/primaria-interaction/confirm.ts +0 -9
- package/src/UI/shared-components/primaria-interaction/index.ts +0 -5
- package/src/UI/shared-components/primaria-interaction/notify.ts +0 -153
- package/src/UI/shared-components/primaria-interaction/open-dialog.ts +0 -8
- package/src/UI/shared-components/primaria-interaction/shared.ts +0 -29
- package/src/UI/shared-components/primaria-interaction/typings.ts +0 -46
- package/src/api/interaction-manager/interaction.ts +0 -26
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Bi = Object.defineProperty;
|
|
2
2
|
var Hi = (X, W, J) => W in X ? Bi(X, W, { enumerable: !0, configurable: !0, writable: !0, value: J }) : X[W] = J;
|
|
3
3
|
var Tt = (X, W, J) => Hi(X, typeof W != "symbol" ? W + "" : W, J);
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import c$s, { useState, useRef, useEffect } from "react";
|
|
5
|
+
import r$P, { createRoot } from "react-dom/client";
|
|
6
6
|
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7
7
|
function getDefaultExportFromCjs(X) {
|
|
8
8
|
return X && X.__esModule && Object.prototype.hasOwnProperty.call(X, "default") ? X.default : X;
|
|
@@ -69,13 +69,13 @@ var Reflect$1;
|
|
|
69
69
|
}, pe = Object.getPrototypeOf(Function), fe = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : pr(), ge = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : Zt(), me = typeof WeakMap == "function" ? WeakMap : Sr(), ve = re ? Symbol.for("@reflect-metadata:registry") : void 0, be = Ft(), ye = Nt(be);
|
|
70
70
|
function we(rt, ot, _t, kt) {
|
|
71
71
|
if (Ue(_t)) {
|
|
72
|
-
if (!
|
|
72
|
+
if (!Ct(rt))
|
|
73
73
|
throw new TypeError();
|
|
74
74
|
if (!Lt(ot))
|
|
75
75
|
throw new TypeError();
|
|
76
76
|
return De(rt, ot);
|
|
77
77
|
} else {
|
|
78
|
-
if (!
|
|
78
|
+
if (!Ct(rt))
|
|
79
79
|
throw new TypeError();
|
|
80
80
|
if (!Ze(ot))
|
|
81
81
|
throw new TypeError();
|
|
@@ -114,12 +114,12 @@ var Reflect$1;
|
|
|
114
114
|
return Ue(_t) || (_t = bt(_t)), Ve(rt, ot, _t);
|
|
115
115
|
}
|
|
116
116
|
W("hasOwnMetadata", Le);
|
|
117
|
-
function
|
|
117
|
+
function Pe(rt, ot, _t) {
|
|
118
118
|
if (!Ze(ot))
|
|
119
119
|
throw new TypeError();
|
|
120
120
|
return Ue(_t) || (_t = bt(_t)), Ye(rt, ot, _t);
|
|
121
121
|
}
|
|
122
|
-
W("getMetadata",
|
|
122
|
+
W("getMetadata", Pe);
|
|
123
123
|
function Ie(rt, ot, _t) {
|
|
124
124
|
if (!Ze(ot))
|
|
125
125
|
throw new TypeError();
|
|
@@ -132,12 +132,12 @@ var Reflect$1;
|
|
|
132
132
|
return Ue(ot) || (ot = bt(ot)), Xe(rt, ot);
|
|
133
133
|
}
|
|
134
134
|
W("getMetadataKeys", ze);
|
|
135
|
-
function
|
|
135
|
+
function qe(rt, ot) {
|
|
136
136
|
if (!Ze(rt))
|
|
137
137
|
throw new TypeError();
|
|
138
138
|
return Ue(ot) || (ot = bt(ot)), Ge(rt, ot);
|
|
139
139
|
}
|
|
140
|
-
W("getOwnMetadataKeys",
|
|
140
|
+
W("getOwnMetadataKeys", qe);
|
|
141
141
|
function Ae(rt, ot, _t) {
|
|
142
142
|
if (!Ze(ot))
|
|
143
143
|
throw new TypeError();
|
|
@@ -330,7 +330,7 @@ var Reflect$1;
|
|
|
330
330
|
var ot = je(rt);
|
|
331
331
|
return Qe(ot) ? ot : nt(ot);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Ct(rt) {
|
|
334
334
|
return Array.isArray ? Array.isArray(rt) : rt instanceof Object ? rt instanceof Array : Object.prototype.toString.call(rt) === "[object Array]";
|
|
335
335
|
}
|
|
336
336
|
function Dt(rt) {
|
|
@@ -1415,9 +1415,9 @@ let c$r = class {
|
|
|
1415
1415
|
this.behaviors.some((J) => J === W) || this.registry.push(W);
|
|
1416
1416
|
}
|
|
1417
1417
|
};
|
|
1418
|
-
const e$
|
|
1419
|
-
e$
|
|
1420
|
-
const a$t = e$
|
|
1418
|
+
const e$O = new s$y();
|
|
1419
|
+
e$O.register(c$r);
|
|
1420
|
+
const a$t = e$O;
|
|
1421
1421
|
let l$v = class {
|
|
1422
1422
|
constructor(W) {
|
|
1423
1423
|
this.host = W;
|
|
@@ -1443,13 +1443,13 @@ let l$v = class {
|
|
|
1443
1443
|
this.host.removeChild(W), this.host.uxlRegion.viewRemovedFromDom(W.view);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
|
-
const e$
|
|
1446
|
+
const e$N = (X, W) => !X.sortHint && !W.sortHint || !W.sortHint ? -1 : X.sortHint ? X.sortHint.localeCompare(W.sortHint) : 1;
|
|
1447
1447
|
let s$x = class extends l$v {
|
|
1448
1448
|
async viewAdded(W) {
|
|
1449
1449
|
await this.host.uxlRegion.activate(W);
|
|
1450
1450
|
}
|
|
1451
1451
|
addViewToHost(W) {
|
|
1452
|
-
const J = this.host.uxlRegion.currentActiveViews.sort(e$
|
|
1452
|
+
const J = this.host.uxlRegion.currentActiveViews.sort(e$N).indexOf(W.view);
|
|
1453
1453
|
J >= this.host.children.length ? super.addViewToHost(W) : this.host.insertBefore(W, this.host.children[J]);
|
|
1454
1454
|
}
|
|
1455
1455
|
};
|
|
@@ -1565,7 +1565,7 @@ let y$j = class {
|
|
|
1565
1565
|
throw new Error(`region ${this.name} doest not contain this view`);
|
|
1566
1566
|
}
|
|
1567
1567
|
};
|
|
1568
|
-
const e$
|
|
1568
|
+
const e$M = "default", r$O = "dynamic";
|
|
1569
1569
|
let y$i = class {
|
|
1570
1570
|
constructor() {
|
|
1571
1571
|
this.adapterRegistry = /* @__PURE__ */ new Map(), this.adapterRegistry.set(r$O, []);
|
|
@@ -1583,10 +1583,10 @@ let y$i = class {
|
|
|
1583
1583
|
return this.dynamicFactories.reduce((J, te) => J || te(W), null);
|
|
1584
1584
|
}
|
|
1585
1585
|
getAdapterFactory(W) {
|
|
1586
|
-
return this.getDynamicFactory(W) || (this.adapterRegistry.has(W.constructor) ? this.adapterRegistry.get(W.constructor) : this.adapterRegistry.has(W.localName) ? this.adapterRegistry.get(W.localName) : this.adapterRegistry.has(W.tagName) ? this.adapterRegistry.get(W.tagName) : this.adapterRegistry.has(e$
|
|
1586
|
+
return this.getDynamicFactory(W) || (this.adapterRegistry.has(W.constructor) ? this.adapterRegistry.get(W.constructor) : this.adapterRegistry.has(W.localName) ? this.adapterRegistry.get(W.localName) : this.adapterRegistry.has(W.tagName) ? this.adapterRegistry.get(W.tagName) : this.adapterRegistry.has(e$M) ? this.adapterRegistry.get(e$M) : null);
|
|
1587
1587
|
}
|
|
1588
1588
|
registerDefaultAdapterFactory(W) {
|
|
1589
|
-
this.adapterRegistry.set(e$
|
|
1589
|
+
this.adapterRegistry.set(e$M, W);
|
|
1590
1590
|
}
|
|
1591
1591
|
};
|
|
1592
1592
|
const p$h = new y$i(), o$R = "__uxl_regions__", s$w = (X) => (W, J) => {
|
|
@@ -1657,7 +1657,7 @@ function d$s(X) {
|
|
|
1657
1657
|
* Copyright 2019 Google LLC
|
|
1658
1658
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1659
1659
|
*/
|
|
1660
|
-
const t$n = window, e$
|
|
1660
|
+
const t$n = window, e$L = t$n.ShadowRoot && (t$n.ShadyCSS === void 0 || t$n.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$v = Symbol(), n$E = /* @__PURE__ */ new WeakMap();
|
|
1661
1661
|
let o$Q = class {
|
|
1662
1662
|
constructor(W, J, te) {
|
|
1663
1663
|
if (this._$cssResult$ = !0, te !== s$v) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -1666,7 +1666,7 @@ let o$Q = class {
|
|
|
1666
1666
|
get styleSheet() {
|
|
1667
1667
|
let W = this.o;
|
|
1668
1668
|
const J = this.t;
|
|
1669
|
-
if (e$
|
|
1669
|
+
if (e$L && W === void 0) {
|
|
1670
1670
|
const te = J !== void 0 && J.length === 1;
|
|
1671
1671
|
te && (W = n$E.get(J)), W === void 0 && ((this.o = W = new CSSStyleSheet()).replaceSync(this.cssText), te && n$E.set(J, W));
|
|
1672
1672
|
}
|
|
@@ -1677,11 +1677,11 @@ let o$Q = class {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
};
|
|
1679
1679
|
const r$M = (X) => new o$Q(typeof X == "string" ? X : X + "", void 0, s$v), S$d = (X, W) => {
|
|
1680
|
-
e$
|
|
1680
|
+
e$L ? X.adoptedStyleSheets = W.map((J) => J instanceof CSSStyleSheet ? J : J.styleSheet) : W.forEach((J) => {
|
|
1681
1681
|
const te = document.createElement("style"), re = t$n.litNonce;
|
|
1682
1682
|
re !== void 0 && te.setAttribute("nonce", re), te.textContent = J.cssText, X.appendChild(te);
|
|
1683
1683
|
});
|
|
1684
|
-
}, c$q = e$
|
|
1684
|
+
}, c$q = e$L ? (X) => X : (X) => X instanceof CSSStyleSheet ? ((W) => {
|
|
1685
1685
|
let J = "";
|
|
1686
1686
|
for (const te of W.cssRules) J += te.cssText;
|
|
1687
1687
|
return r$M(J);
|
|
@@ -1692,7 +1692,7 @@ const r$M = (X) => new o$Q(typeof X == "string" ? X : X + "", void 0, s$v), S$d
|
|
|
1692
1692
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1693
1693
|
*/
|
|
1694
1694
|
var s$u;
|
|
1695
|
-
const e$
|
|
1695
|
+
const e$K = window, r$L = e$K.trustedTypes, h$r = r$L ? r$L.emptyScript : "", o$P = e$K.reactiveElementPolyfillSupport, n$D = { toAttribute(X, W) {
|
|
1696
1696
|
switch (W) {
|
|
1697
1697
|
case Boolean:
|
|
1698
1698
|
X = X ? h$r : null;
|
|
@@ -1895,19 +1895,19 @@ let u$w = class extends HTMLElement {
|
|
|
1895
1895
|
firstUpdated(W) {
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
|
-
u$w[d$r] = !0, u$w.elementProperties = /* @__PURE__ */ new Map(), u$w.elementStyles = [], u$w.shadowRootOptions = { mode: "open" }, o$P == null || o$P({ ReactiveElement: u$w }), ((s$u = e$
|
|
1898
|
+
u$w[d$r] = !0, u$w.elementProperties = /* @__PURE__ */ new Map(), u$w.elementStyles = [], u$w.shadowRootOptions = { mode: "open" }, o$P == null || o$P({ ReactiveElement: u$w }), ((s$u = e$K.reactiveElementVersions) !== null && s$u !== void 0 ? s$u : e$K.reactiveElementVersions = []).push("1.6.3");
|
|
1899
1899
|
/**
|
|
1900
1900
|
* @license
|
|
1901
1901
|
* Copyright 2017 Google LLC
|
|
1902
1902
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1903
1903
|
*/
|
|
1904
1904
|
var t$m;
|
|
1905
|
-
const i$y = window, s$t = i$y.trustedTypes, e$
|
|
1905
|
+
const i$y = window, s$t = i$y.trustedTypes, e$J = s$t ? s$t.createPolicy("lit-html", { createHTML: (X) => X }) : void 0, o$O = "$lit$", n$C = `lit$${(Math.random() + "").slice(9)}$`, l$t = "?" + n$C, h$q = `<${l$t}>`, r$K = document, u$v = () => r$K.createComment(""), d$q = (X) => X === null || typeof X != "object" && typeof X != "function", c$p = Array.isArray, v$c = (X) => c$p(X) || typeof (X == null ? void 0 : X[Symbol.iterator]) == "function", a$q = `[
|
|
1906
1906
|
\f\r]`, f$l = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$h = /-->/g, m$f = />/g, p$f = RegExp(`>|${a$q}(?:([^\\s"'>=/]+)(${a$q}*=${a$q}*(?:[^
|
|
1907
1907
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), g$l = /'/g, $$c = /"/g, y$h = /^(?:script|style|textarea|title)$/i, T$4 = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), E$5 = /* @__PURE__ */ new WeakMap(), C$a = r$K.createTreeWalker(r$K, 129, null, !1);
|
|
1908
1908
|
function P$2(X, W) {
|
|
1909
1909
|
if (!Array.isArray(X) || !X.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
1910
|
-
return e$
|
|
1910
|
+
return e$J !== void 0 ? e$J.createHTML(W) : W;
|
|
1911
1911
|
}
|
|
1912
1912
|
const V$4 = (X, W) => {
|
|
1913
1913
|
const J = X.length - 1, te = [];
|
|
@@ -2294,11 +2294,11 @@ const i$x = (X, W) => W.kind === "method" && W.descriptor && !("value" in W.desc
|
|
|
2294
2294
|
typeof W.initializer == "function" && (this[W.key] = W.initializer.call(this));
|
|
2295
2295
|
}, finisher(J) {
|
|
2296
2296
|
J.createProperty(W.key, X);
|
|
2297
|
-
} }, e$
|
|
2297
|
+
} }, e$I = (X, W, J) => {
|
|
2298
2298
|
W.constructor.createProperty(J, X);
|
|
2299
2299
|
};
|
|
2300
2300
|
function n$A(X) {
|
|
2301
|
-
return (W, J) => J !== void 0 ? e$
|
|
2301
|
+
return (W, J) => J !== void 0 ? e$I(X, W, J) : i$x(X, W);
|
|
2302
2302
|
}
|
|
2303
2303
|
/**
|
|
2304
2304
|
* @license
|
|
@@ -2328,7 +2328,7 @@ function k$4(X) {
|
|
|
2328
2328
|
* Copyright 2019 Google LLC
|
|
2329
2329
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2330
2330
|
*/
|
|
2331
|
-
const t$l = globalThis, e$
|
|
2331
|
+
const t$l = globalThis, e$H = t$l.ShadowRoot && (t$l.ShadyCSS === void 0 || t$l.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$q = Symbol(), o$M = /* @__PURE__ */ new WeakMap();
|
|
2332
2332
|
let n$y = class {
|
|
2333
2333
|
constructor(W, J, te) {
|
|
2334
2334
|
if (this._$cssResult$ = !0, te !== s$q) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -2337,7 +2337,7 @@ let n$y = class {
|
|
|
2337
2337
|
get styleSheet() {
|
|
2338
2338
|
let W = this.o;
|
|
2339
2339
|
const J = this.t;
|
|
2340
|
-
if (e$
|
|
2340
|
+
if (e$H && W === void 0) {
|
|
2341
2341
|
const te = J !== void 0 && J.length === 1;
|
|
2342
2342
|
te && (W = o$M.get(J)), W === void 0 && ((this.o = W = new CSSStyleSheet()).replaceSync(this.cssText), te && o$M.set(J, W));
|
|
2343
2343
|
}
|
|
@@ -2355,12 +2355,12 @@ const r$J = (X) => new n$y(typeof X == "string" ? X : X + "", void 0, s$q), i$w
|
|
|
2355
2355
|
})(re) + X[ne + 1], X[0]);
|
|
2356
2356
|
return new n$y(J, X, s$q);
|
|
2357
2357
|
}, S$b = (X, W) => {
|
|
2358
|
-
if (e$
|
|
2358
|
+
if (e$H) X.adoptedStyleSheets = W.map((J) => J instanceof CSSStyleSheet ? J : J.styleSheet);
|
|
2359
2359
|
else for (const J of W) {
|
|
2360
2360
|
const te = document.createElement("style"), re = t$l.litNonce;
|
|
2361
2361
|
re !== void 0 && te.setAttribute("nonce", re), te.textContent = J.cssText, X.appendChild(te);
|
|
2362
2362
|
}
|
|
2363
|
-
}, c$o = e$
|
|
2363
|
+
}, c$o = e$H ? (X) => X : (X) => X instanceof CSSStyleSheet ? ((W) => {
|
|
2364
2364
|
let J = "";
|
|
2365
2365
|
for (const te of W.cssRules) J += te.cssText;
|
|
2366
2366
|
return r$J(J);
|
|
@@ -2370,7 +2370,7 @@ const r$J = (X) => new n$y(typeof X == "string" ? X : X + "", void 0, s$q), i$w
|
|
|
2370
2370
|
* Copyright 2017 Google LLC
|
|
2371
2371
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2372
2372
|
*/
|
|
2373
|
-
const { is: i$v, defineProperty: e$
|
|
2373
|
+
const { is: i$v, defineProperty: e$G, getOwnPropertyDescriptor: r$I, getOwnPropertyNames: h$p, getOwnPropertySymbols: o$L, getPrototypeOf: n$x } = Object, a$o = globalThis, c$n = a$o.trustedTypes, l$o = c$n ? c$n.emptyScript : "", p$e = a$o.reactiveElementPolyfillSupport, d$o = (X, W) => X, u$s = { toAttribute(X, W) {
|
|
2374
2374
|
switch (W) {
|
|
2375
2375
|
case Boolean:
|
|
2376
2376
|
X = X ? l$o : null;
|
|
@@ -2410,7 +2410,7 @@ let b$n = class extends HTMLElement {
|
|
|
2410
2410
|
static createProperty(W, J = y$g) {
|
|
2411
2411
|
if (J.state && (J.attribute = !1), this._$Ei(), this.elementProperties.set(W, J), !J.noAccessor) {
|
|
2412
2412
|
const te = Symbol(), re = this.getPropertyDescriptor(W, te, J);
|
|
2413
|
-
re !== void 0 && e$
|
|
2413
|
+
re !== void 0 && e$G(this.prototype, W, re);
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
2416
|
static getPropertyDescriptor(W, J, te) {
|
|
@@ -2918,29 +2918,7 @@ function n$v(X) {
|
|
|
2918
2918
|
function r$G(X) {
|
|
2919
2919
|
return n$v({ ...X, state: !0, attribute: !1 });
|
|
2920
2920
|
}
|
|
2921
|
-
|
|
2922
|
-
* @license
|
|
2923
|
-
* Copyright 2017 Google LLC
|
|
2924
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2925
|
-
*/
|
|
2926
|
-
const e$H = (X, W, J) => (J.configurable = !0, J.enumerable = !0, Reflect.decorate && typeof W != "object" && Object.defineProperty(X, W, J), J);
|
|
2927
|
-
/**
|
|
2928
|
-
* @license
|
|
2929
|
-
* Copyright 2017 Google LLC
|
|
2930
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
2931
|
-
*/
|
|
2932
|
-
function e$G(X, W) {
|
|
2933
|
-
return (J, te, re) => {
|
|
2934
|
-
const ne = (oe) => {
|
|
2935
|
-
var de;
|
|
2936
|
-
return ((de = oe.renderRoot) == null ? void 0 : de.querySelector(X)) ?? null;
|
|
2937
|
-
};
|
|
2938
|
-
return e$H(J, te, { get() {
|
|
2939
|
-
return ne(this);
|
|
2940
|
-
} });
|
|
2941
|
-
};
|
|
2942
|
-
}
|
|
2943
|
-
const styles$i = ":host{width:100%;height:100%;min-height:1px;display:flex}.container{width:100%;min-height:1px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#60a8f0}svg{width:45px;height:45px;fill:#d36262}h1{color:#fff}", template$h = (X) => {
|
|
2921
|
+
const styles$g = ":host{width:100%;height:100%;min-height:1px;display:flex}.container{width:100%;min-height:1px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#60a8f0}svg{width:45px;height:45px;fill:#d36262}h1{color:#fff}", template$h = (X) => {
|
|
2944
2922
|
var W;
|
|
2945
2923
|
return ke$1`
|
|
2946
2924
|
<div class="container">
|
|
@@ -2949,10 +2927,10 @@ const styles$i = ":host{width:100%;height:100%;min-height:1px;display:flex}.cont
|
|
|
2949
2927
|
</div>
|
|
2950
2928
|
`;
|
|
2951
2929
|
};
|
|
2952
|
-
var __defProp$
|
|
2953
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
2930
|
+
var __defProp$o = Object.defineProperty, __getOwnPropDesc$o = Object.getOwnPropertyDescriptor, __decorateClass$o = (X, W, J, te) => {
|
|
2931
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$o(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
2954
2932
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
2955
|
-
return te && re && __defProp$
|
|
2933
|
+
return te && re && __defProp$o(W, J, re), re;
|
|
2956
2934
|
};
|
|
2957
2935
|
let PrimariaErrorView = class extends h$n {
|
|
2958
2936
|
render() {
|
|
@@ -2960,12 +2938,12 @@ let PrimariaErrorView = class extends h$n {
|
|
|
2960
2938
|
}
|
|
2961
2939
|
};
|
|
2962
2940
|
PrimariaErrorView.styles = i$w`
|
|
2963
|
-
${r$J(styles$
|
|
2941
|
+
${r$J(styles$g)}
|
|
2964
2942
|
`;
|
|
2965
|
-
__decorateClass$
|
|
2943
|
+
__decorateClass$o([
|
|
2966
2944
|
n$v()
|
|
2967
2945
|
], PrimariaErrorView.prototype, "error", 2);
|
|
2968
|
-
PrimariaErrorView = __decorateClass$
|
|
2946
|
+
PrimariaErrorView = __decorateClass$o([
|
|
2969
2947
|
t$k("primaria-error-view")
|
|
2970
2948
|
], PrimariaErrorView);
|
|
2971
2949
|
const y$f = (X) => j$2(X, p$h);
|
|
@@ -3081,7 +3059,8 @@ const x$5 = (X) => new h$m(X), c$l = (X) => X.importer(), l$n = (X) => async (W,
|
|
|
3081
3059
|
openClinicalMonitoringRequested: "openClinicalMonitoringRequested",
|
|
3082
3060
|
appCrashed: "appCrashed",
|
|
3083
3061
|
mainViewChanged: "mainViewChanged",
|
|
3084
|
-
refreshTokenFailed: "refreshTokenFailed"
|
|
3062
|
+
refreshTokenFailed: "refreshTokenFailed",
|
|
3063
|
+
mpidHeaderInvalid: "mpidHeaderInvalid"
|
|
3085
3064
|
};
|
|
3086
3065
|
class RegionManagerProxy {
|
|
3087
3066
|
constructor(W, J, te) {
|
|
@@ -3193,6 +3172,9 @@ class RegionManagerProxy {
|
|
|
3193
3172
|
_notifyMainViewChanged(W) {
|
|
3194
3173
|
this.broker.publish(shellEvents.mainViewChanged, { viewId: W });
|
|
3195
3174
|
}
|
|
3175
|
+
_destroy() {
|
|
3176
|
+
this.regionManager.destroy();
|
|
3177
|
+
}
|
|
3196
3178
|
}
|
|
3197
3179
|
const createRegionManagerProxy = (X, W, J) => new RegionManagerProxy(X, W, J);
|
|
3198
3180
|
var __extends$2 = /* @__PURE__ */ function() {
|
|
@@ -4691,10 +4673,10 @@ const resolveConfig = (X) => {
|
|
|
4691
4673
|
config: X,
|
|
4692
4674
|
request: be
|
|
4693
4675
|
};
|
|
4694
|
-
settle(function(
|
|
4695
|
-
J(
|
|
4696
|
-
}, function(
|
|
4697
|
-
te(
|
|
4676
|
+
settle(function(Pe) {
|
|
4677
|
+
J(Pe), ve();
|
|
4678
|
+
}, function(Pe) {
|
|
4679
|
+
te(Pe), ve();
|
|
4698
4680
|
}, Ce), be = null;
|
|
4699
4681
|
}
|
|
4700
4682
|
"onloadend" in be ? be.onloadend = ye : be.onreadystatechange = function() {
|
|
@@ -4876,11 +4858,11 @@ const getBodyLength = async (X) => {
|
|
|
4876
4858
|
duplex: "half"
|
|
4877
4859
|
}), Le;
|
|
4878
4860
|
if (utils$1.isFormData(te) && (Le = Ce.headers.get("content-type")) && ce.setContentType(Le), Ce.body) {
|
|
4879
|
-
const [
|
|
4861
|
+
const [Pe, Ie] = progressEventDecorator(
|
|
4880
4862
|
be,
|
|
4881
4863
|
progressEventReducer(asyncDecorator(he))
|
|
4882
4864
|
);
|
|
4883
|
-
te = trackStream(Ce.body, DEFAULT_CHUNK_SIZE,
|
|
4865
|
+
te = trackStream(Ce.body, DEFAULT_CHUNK_SIZE, Pe, Ie);
|
|
4884
4866
|
}
|
|
4885
4867
|
}
|
|
4886
4868
|
utils$1.isString(pe) || (pe = pe ? "include" : "omit");
|
|
@@ -4901,12 +4883,12 @@ const getBodyLength = async (X) => {
|
|
|
4901
4883
|
["status", "statusText", "headers"].forEach((ze) => {
|
|
4902
4884
|
Ce[ze] = we[ze];
|
|
4903
4885
|
});
|
|
4904
|
-
const Le = utils$1.toFiniteNumber(we.headers.get("content-length")), [
|
|
4886
|
+
const Le = utils$1.toFiniteNumber(we.headers.get("content-length")), [Pe, Ie] = de && progressEventDecorator(
|
|
4905
4887
|
Le,
|
|
4906
4888
|
progressEventReducer(asyncDecorator(de), !0)
|
|
4907
4889
|
) || [];
|
|
4908
4890
|
we = new Response(
|
|
4909
|
-
trackStream(we.body, DEFAULT_CHUNK_SIZE,
|
|
4891
|
+
trackStream(we.body, DEFAULT_CHUNK_SIZE, Pe, () => {
|
|
4910
4892
|
Ie && Ie(), ve && ve();
|
|
4911
4893
|
}),
|
|
4912
4894
|
Ce
|
|
@@ -5341,304 +5323,107 @@ axios.formToJSON = (X) => formDataToJSON(utils$1.isHTMLForm(X) ? new FormData(X)
|
|
|
5341
5323
|
axios.getAdapter = adapters.getAdapter;
|
|
5342
5324
|
axios.HttpStatusCode = HttpStatusCode;
|
|
5343
5325
|
axios.default = axios;
|
|
5344
|
-
|
|
5345
|
-
const J = axios.create();
|
|
5346
|
-
return J.interceptors.request.use((te) => (te.headers.Authorization = `Bearer ${X.getToken()}`, te)), J.interceptors.response.use(
|
|
5347
|
-
(te) => te,
|
|
5348
|
-
async (te) => {
|
|
5349
|
-
const re = te.config;
|
|
5350
|
-
if (te.response.status === 401 && !re._retry) {
|
|
5351
|
-
re._retry = !0;
|
|
5352
|
-
try {
|
|
5353
|
-
const ne = await X.refreshToken();
|
|
5354
|
-
return re.headers.Authorization = `Bearer ${ne}`, J(re);
|
|
5355
|
-
} catch (ne) {
|
|
5356
|
-
return console.error("Error refreshing token:", ne), W.publish(shellEvents.refreshTokenFailed, { request: re }), Promise.reject(te);
|
|
5357
|
-
}
|
|
5358
|
-
}
|
|
5359
|
-
return Promise.reject(te);
|
|
5360
|
-
}
|
|
5361
|
-
), J;
|
|
5362
|
-
};
|
|
5363
|
-
let instance;
|
|
5364
|
-
const createHttpClient = (X, W) => (instance || (instance = createAxiosInstance(X, W)), { request: instance.request });
|
|
5365
|
-
/**
|
|
5366
|
-
* @license
|
|
5367
|
-
* Copyright 2021 Google LLC
|
|
5368
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5369
|
-
*/
|
|
5370
|
-
function nn(X, W, J) {
|
|
5371
|
-
return X ? W(X) : J == null ? void 0 : J(X);
|
|
5372
|
-
}
|
|
5373
|
-
const styles$h = "*[hidden]{display:none!important}.modal{font-family:Open Sans;display:none;position:fixed;z-index:400;left:0;top:0;width:100%;height:100%;background-color:#000000a6}.modal .dialog{display:flex;flex-direction:column;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:21;background:#fff;border-radius:16px;width:auto;height:auto;max-height:95%;min-width:400px;box-shadow:0 0 14px #00000040,0 1px 10px #00000038}.modal .dialog .dialog__header{display:flex;flex-direction:row;justify-content:center;padding:24px;border-top-left-radius:8px;border-top-right-radius:8px;align-items:center}.modal .dialog .dialog__header.with-close{justify-content:space-between}.modal .dialog .dialog__header h2{color:var(--color-neutral-900);padding:0;margin:0;font-weight:700;font-size:1.286rem;line-height:30px}.modal .dialog .dialog__content{display:flex;flex-direction:column;flex:1;align-items:center;min-height:1px;height:100%;padding-inline:24px;padding-bottom:24px;font-weight:400;font-size:16px;line-height:24px;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.modal .dialog .dialog__content>*{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.modal .dialog .dialog__actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;padding:24px 16px}@-webkit-keyframes fadein{0%{opacity:0}to{opacity:1}}@keyframes fadein{0%{opacity:0}to{opacity:1}}";
|
|
5374
|
-
var __defProp$q = Object.defineProperty, __getOwnPropDesc$p = Object.getOwnPropertyDescriptor, __decorateClass$q = (X, W, J, te) => {
|
|
5375
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$p(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
5376
|
-
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
5377
|
-
return te && re && __defProp$q(W, J, re), re;
|
|
5378
|
-
};
|
|
5379
|
-
const dssToConfirmType = (X) => X === "danger" ? "error" : X, renderActions = (X) => {
|
|
5380
|
-
if (!X.options.acceptLabel && !X.options.cancelLabel) return D$1;
|
|
5381
|
-
const W = dssToConfirmType(X.options.type);
|
|
5382
|
-
return ke$1`
|
|
5383
|
-
<div class="dialog__actions">
|
|
5384
|
-
<dss-button label=${X.options.cancelLabel} size="lg" variant="secondary" @click="${X._cancel}" ?hidden=${!X.options.cancelLabel} id="cancel-btn"></dss-button>
|
|
5385
|
-
<dss-button label=${X.options.acceptLabel} size="lg" variant=${W} @click="${X._accept}" ?hidden=${!X.options.acceptLabel} id="accept-btn"></dss-button>
|
|
5386
|
-
</div>
|
|
5387
|
-
`;
|
|
5388
|
-
}, renderMessage = (X) => ke$1`<div id="message">${X.message || ""}</div>`;
|
|
5389
|
-
function renderCustomContent(X) {
|
|
5390
|
-
if (X.options.componentConstructor) {
|
|
5391
|
-
const W = new X.options.componentConstructor();
|
|
5392
|
-
return W.setAttribute("id", "__custom-element__"), W.addEventListener("closed", X.componentCloseRequest.bind(X)), ke$1`${W}`;
|
|
5393
|
-
}
|
|
5394
|
-
return D$1;
|
|
5326
|
+
class InvalidTokenError extends Error {
|
|
5395
5327
|
}
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
return
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
W,
|
|
5403
|
-
() => ke$1`<dss-icon-button size="md" icon="close" @click="${X._cancel}"></dss-icon-button>`,
|
|
5404
|
-
() => D$1
|
|
5405
|
-
)}
|
|
5406
|
-
</div>
|
|
5407
|
-
<div class="dialog__content">
|
|
5408
|
-
${nn(
|
|
5409
|
-
X.options.message,
|
|
5410
|
-
() => renderMessage(X.options),
|
|
5411
|
-
() => renderCustomContent(X)
|
|
5412
|
-
)}
|
|
5413
|
-
</div>
|
|
5414
|
-
${renderActions(X)}
|
|
5415
|
-
`;
|
|
5328
|
+
InvalidTokenError.prototype.name = "InvalidTokenError";
|
|
5329
|
+
function b64DecodeUnicode(X) {
|
|
5330
|
+
return decodeURIComponent(atob(X).replace(/(.)/g, (W, J) => {
|
|
5331
|
+
let te = J.charCodeAt(0).toString(16).toUpperCase();
|
|
5332
|
+
return te.length < 2 && (te = "0" + te), "%" + te;
|
|
5333
|
+
}));
|
|
5416
5334
|
}
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
`;
|
|
5431
|
-
}
|
|
5432
|
-
_cancel(X) {
|
|
5433
|
-
this.close({ confirmed: !1 });
|
|
5434
|
-
}
|
|
5435
|
-
_accept(X) {
|
|
5436
|
-
this.close({ confirmed: !0 });
|
|
5437
|
-
}
|
|
5438
|
-
componentCloseRequest(X) {
|
|
5439
|
-
this.close(X.detail);
|
|
5440
|
-
}
|
|
5441
|
-
async close(X) {
|
|
5442
|
-
let W = X;
|
|
5443
|
-
if (W != null && W.confirmed) {
|
|
5444
|
-
const J = this.getCustomComponent();
|
|
5445
|
-
if (J != null && J.canAccept && !await J.canAccept())
|
|
5446
|
-
return;
|
|
5447
|
-
J != null && J.accept && (W = await J.accept(W));
|
|
5448
|
-
}
|
|
5449
|
-
this.dispatchEvent(new CustomEvent("closed", { detail: W })), this.modal.style.display = "none";
|
|
5450
|
-
}
|
|
5451
|
-
getCustomComponent() {
|
|
5452
|
-
var X;
|
|
5453
|
-
return (X = this.shadowRoot) == null ? void 0 : X.querySelector("#__custom-element__");
|
|
5335
|
+
function base64UrlDecode(X) {
|
|
5336
|
+
let W = X.replace(/-/g, "+").replace(/_/g, "/");
|
|
5337
|
+
switch (W.length % 4) {
|
|
5338
|
+
case 0:
|
|
5339
|
+
break;
|
|
5340
|
+
case 2:
|
|
5341
|
+
W += "==";
|
|
5342
|
+
break;
|
|
5343
|
+
case 3:
|
|
5344
|
+
W += "=";
|
|
5345
|
+
break;
|
|
5346
|
+
default:
|
|
5347
|
+
throw new Error("base64 string is not of the correct length");
|
|
5454
5348
|
}
|
|
5455
|
-
|
|
5456
|
-
|
|
5349
|
+
try {
|
|
5350
|
+
return b64DecodeUnicode(W);
|
|
5351
|
+
} catch {
|
|
5352
|
+
return atob(W);
|
|
5457
5353
|
}
|
|
5458
|
-
};
|
|
5459
|
-
__decorateClass$q([
|
|
5460
|
-
n$v()
|
|
5461
|
-
], DialogComponent.prototype, "options", 2);
|
|
5462
|
-
__decorateClass$q([
|
|
5463
|
-
e$G(".modal")
|
|
5464
|
-
], DialogComponent.prototype, "modal", 2);
|
|
5465
|
-
__decorateClass$q([
|
|
5466
|
-
e$G("#accept-btn")
|
|
5467
|
-
], DialogComponent.prototype, "acceptButton", 2);
|
|
5468
|
-
__decorateClass$q([
|
|
5469
|
-
e$G("#actions")
|
|
5470
|
-
], DialogComponent.prototype, "actionsContainer", 2);
|
|
5471
|
-
__decorateClass$q([
|
|
5472
|
-
e$G("#header")
|
|
5473
|
-
], DialogComponent.prototype, "header", 2);
|
|
5474
|
-
__decorateClass$q([
|
|
5475
|
-
e$G("#content")
|
|
5476
|
-
], DialogComponent.prototype, "content", 2);
|
|
5477
|
-
DialogComponent = __decorateClass$q([
|
|
5478
|
-
t$k("dialog-component")
|
|
5479
|
-
], DialogComponent);
|
|
5480
|
-
const buildDialogComponent = (X) => {
|
|
5481
|
-
if (!X.message && !X.componentConstructor)
|
|
5482
|
-
throw new Error("message, componentConstructor options properties are required");
|
|
5483
|
-
return new Promise((W) => {
|
|
5484
|
-
const J = document.body.appendChild(document.createElement("dialog-component"));
|
|
5485
|
-
J.options = X, J.updateComplete.then(() => {
|
|
5486
|
-
if (X.componentConstructor) {
|
|
5487
|
-
const ne = J.shadowRoot.querySelector("#__custom-element__");
|
|
5488
|
-
ne.model = X.model;
|
|
5489
|
-
}
|
|
5490
|
-
J.addEventListener("closed", re), J.options && J.show();
|
|
5491
|
-
});
|
|
5492
|
-
function re(ne) {
|
|
5493
|
-
J.remove(), W(ne.detail);
|
|
5494
|
-
}
|
|
5495
|
-
});
|
|
5496
|
-
}, confirm = async (X) => buildDialogComponent(X);
|
|
5497
|
-
/**
|
|
5498
|
-
* @license
|
|
5499
|
-
* Copyright 2018 Google LLC
|
|
5500
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5501
|
-
*/
|
|
5502
|
-
const to = (X) => X ?? D$1, styles$g = ".snackbar{display:flex;align-items:center;flex-direction:row;justify-content:space-between;gap:10px;visibility:hidden;min-width:250px;width:417px;height:56px;background-color:#333;color:#fff;text-align:center;border-radius:10px;font-weight:500;padding:12px 16px;position:fixed;z-index:500;left:24px;box-shadow:0 0 2px #00000029,0 0 5px #0000003b;border:2px solid;border-color:transparent;@-webkit-keyframes fadein{0%{bottom:0;opacity:0}to{opacity:1}}@keyframes fadein{0%{bottom:0;opacity:0}to{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{0%{opacity:1}to{bottom:0;opacity:0}}}.snackbar .snackbar__message{text-align:left;margin-right:24px;flex:1}.snackbar.show{visibility:visible}.snackbar.success{background-color:var(--color-green-500);color:#fff;box-shadow:#43a0474d 0 0 2px,#43a04738 0 0 5px}.snackbar.error{background-color:var(--color-red-500);color:#fff;box-shadow:#e539354d 0 0 2px,#e5393538 0 0 5px}.snackbar.warning{background-color:var(--color-yellow-500);color:#000;box-shadow:#fb8c004d 0 0 2px,#fb8c0038 0 0 5px}.snackbar.info{background-color:var(--color-primary-500);color:#fff;box-shadow:#0e508a4d 0 0 2px,#0e508a38 0 0 5px}.snackbar.notification-1{-webkit-animation:fadein .3s,fadeout .55s 6s;animation:fadein .3s,fadeout .55s 6s;bottom:72px}.snackbar.notification-2{-webkit-animation:fadein .3s,fadeout .55s 6s;animation:fadein .3s,fadeout .55s 6s;bottom:132px}.snackbar.notification-3{-webkit-animation:fadein .3s,fadeout .55s 6s;animation:fadein .3s,fadeout .55s 6s;bottom:192px}.snackbar #close-btn{cursor:pointer}";
|
|
5503
|
-
var __defProp$p = Object.defineProperty, __getOwnPropDesc$o = Object.getOwnPropertyDescriptor, __decorateClass$p = (X, W, J, te) => {
|
|
5504
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$o(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
5505
|
-
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
5506
|
-
return te && re && __defProp$p(W, J, re), re;
|
|
5507
|
-
};
|
|
5508
|
-
function getIcon(X) {
|
|
5509
|
-
return X ? (/* @__PURE__ */ new Map([
|
|
5510
|
-
["error", "error"],
|
|
5511
|
-
["info", "info"],
|
|
5512
|
-
["warning", "warning"],
|
|
5513
|
-
["success", "check_circle"]
|
|
5514
|
-
])).get(X) : void 0;
|
|
5515
5354
|
}
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
static get styles() {
|
|
5529
|
-
return i$w`
|
|
5530
|
-
${r$J(styles$g)}
|
|
5531
|
-
`;
|
|
5355
|
+
function jwtDecode(X, W) {
|
|
5356
|
+
if (typeof X != "string")
|
|
5357
|
+
throw new InvalidTokenError("Invalid token specified: must be a string");
|
|
5358
|
+
W || (W = {});
|
|
5359
|
+
const J = W.header === !0 ? 0 : 1, te = X.split(".")[J];
|
|
5360
|
+
if (typeof te != "string")
|
|
5361
|
+
throw new InvalidTokenError(`Invalid token specified: missing part #${J + 1}`);
|
|
5362
|
+
let re;
|
|
5363
|
+
try {
|
|
5364
|
+
re = base64UrlDecode(te);
|
|
5365
|
+
} catch (ne) {
|
|
5366
|
+
throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${J + 1} (${ne.message})`);
|
|
5532
5367
|
}
|
|
5533
|
-
|
|
5534
|
-
|
|
5368
|
+
try {
|
|
5369
|
+
return JSON.parse(re);
|
|
5370
|
+
} catch (ne) {
|
|
5371
|
+
throw new InvalidTokenError(`Invalid token specified: invalid json for part #${J + 1} (${ne.message})`);
|
|
5535
5372
|
}
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5373
|
+
}
|
|
5374
|
+
const mpidHeader = "x-catsalut-mpid", obtainMpid = (X) => {
|
|
5375
|
+
var J;
|
|
5376
|
+
return (J = jwtDecode(X).access_info) == null ? void 0 : J.mpi_patient_id;
|
|
5377
|
+
};
|
|
5378
|
+
class MissingMpidHeaderError extends Error {
|
|
5379
|
+
constructor(W) {
|
|
5380
|
+
super(W), this.name = "MissingMpidHeaderError";
|
|
5541
5381
|
}
|
|
5542
|
-
|
|
5543
|
-
|
|
5382
|
+
}
|
|
5383
|
+
class InvalidMpidHeaderError extends Error {
|
|
5384
|
+
constructor(W) {
|
|
5385
|
+
super(W), this.name = "InvalidMpidHeaderError";
|
|
5544
5386
|
}
|
|
5545
|
-
}
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
}
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
},
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
W && W.clearAndUpdateOrder(X.order);
|
|
5581
|
-
}
|
|
5582
|
-
}, setNewDisplayNotification = () => {
|
|
5583
|
-
const X = displayNotifications.length - 1, W = displayNotifications[X];
|
|
5584
|
-
if (!W) return;
|
|
5585
|
-
const J = getComponentById(W.id);
|
|
5586
|
-
J && showAndSetTimeOutClose(J, timeToCloseNotification);
|
|
5587
|
-
}, closeAndUpdateStack = (X) => {
|
|
5588
|
-
removeCurrentComponent(X), removeFromStackAndAddToDisplay(), updateNotificationOptsOrder(), refreshAllComponentsOrder(), setNewDisplayNotification();
|
|
5589
|
-
}, createNotifyComponent = (X, W) => {
|
|
5590
|
-
const te = document.body.appendChild(
|
|
5591
|
-
document.createElement("notifier-component")
|
|
5592
|
-
);
|
|
5593
|
-
return te.options = X, te.id = W, te;
|
|
5594
|
-
}, notify = (X) => {
|
|
5595
|
-
const W = `${generateId$1()}`, J = { ...X, id: W };
|
|
5596
|
-
if (displayNotifications.length < stackLimit ? displayNotifications.push(J) : notificationStack.push(J), !X.message) throw new Error("message is required");
|
|
5597
|
-
const te = createNotifyComponent(X, W);
|
|
5598
|
-
te.addEventListener("closed", () => closeAndUpdateStack(W)), te.updateComplete.then(() => {
|
|
5599
|
-
var ne;
|
|
5600
|
-
if (!notificationStack.length && displayNotifications.length <= stackLimit) {
|
|
5601
|
-
updateNotificationOptsOrder();
|
|
5602
|
-
const oe = (ne = displayNotifications.find((de) => de.id === W)) == null ? void 0 : ne.order;
|
|
5603
|
-
if (!oe) return;
|
|
5604
|
-
te.clearAndUpdateOrder(oe), showAndSetTimeOutClose(te, timeToCloseNotification);
|
|
5387
|
+
}
|
|
5388
|
+
const validateMpidHeader = (X, W) => {
|
|
5389
|
+
const J = X.headers[mpidHeader];
|
|
5390
|
+
if (!J)
|
|
5391
|
+
throw new MissingMpidHeaderError("Mpid header is missing");
|
|
5392
|
+
if (J !== obtainMpid(W.getToken()))
|
|
5393
|
+
throw new InvalidMpidHeaderError("Mpid header value is invalid");
|
|
5394
|
+
return !0;
|
|
5395
|
+
}, createAxiosInstance = (X, W, J = !1) => {
|
|
5396
|
+
const te = axios.create();
|
|
5397
|
+
return te.interceptors.request.use((re) => (re.headers.Authorization = `Bearer ${X.getToken()}`, re)), te.interceptors.response.use(
|
|
5398
|
+
(re) => {
|
|
5399
|
+
try {
|
|
5400
|
+
return J && validateMpidHeader(re, X), re;
|
|
5401
|
+
} catch (ne) {
|
|
5402
|
+
return ne instanceof InvalidMpidHeaderError && W.publish(shellEvents.mpidHeaderInvalid, {
|
|
5403
|
+
request: re.config
|
|
5404
|
+
}), Promise.reject(ne);
|
|
5405
|
+
}
|
|
5406
|
+
},
|
|
5407
|
+
async (re) => {
|
|
5408
|
+
var oe;
|
|
5409
|
+
const ne = re.config;
|
|
5410
|
+
if (((oe = re.response) == null ? void 0 : oe.status) === 401 && !ne._retry) {
|
|
5411
|
+
ne._retry = !0;
|
|
5412
|
+
try {
|
|
5413
|
+
const de = await X.refreshToken();
|
|
5414
|
+
return ne.headers.Authorization = `Bearer ${de}`, te(ne);
|
|
5415
|
+
} catch (de) {
|
|
5416
|
+
return console.error("Error refreshing token:", de), W.publish(shellEvents.refreshTokenFailed, {
|
|
5417
|
+
request: ne
|
|
5418
|
+
}), Promise.reject(re);
|
|
5419
|
+
}
|
|
5420
|
+
}
|
|
5421
|
+
return Promise.reject(re);
|
|
5605
5422
|
}
|
|
5606
|
-
|
|
5607
|
-
}, openDialog = (X) => {
|
|
5608
|
-
X.showCloseButton = "showCloseButton" in X ? X.showCloseButton : !0, buildDialogComponent(X);
|
|
5423
|
+
), te;
|
|
5609
5424
|
};
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
(oe = X[ne]) && (re = oe(W, J, re) || re);
|
|
5613
|
-
return re && __defProp$o(W, J, re), re;
|
|
5614
|
-
};
|
|
5615
|
-
const ConfirmMixin = d$s((X) => {
|
|
5616
|
-
class W extends X {
|
|
5617
|
-
close(te) {
|
|
5618
|
-
this.dispatchEvent(new CustomEvent("closed", { detail: te }));
|
|
5619
|
-
}
|
|
5620
|
-
canAccept() {
|
|
5621
|
-
return Promise.resolve(!0);
|
|
5622
|
-
}
|
|
5623
|
-
accept(te) {
|
|
5624
|
-
return Promise.resolve(te);
|
|
5625
|
-
}
|
|
5626
|
-
}
|
|
5627
|
-
return __decorateClass$o([
|
|
5628
|
-
n$v()
|
|
5629
|
-
], W.prototype, "model"), __decorateClass$o([
|
|
5630
|
-
n$v()
|
|
5631
|
-
], W.prototype, "outputModel"), W;
|
|
5632
|
-
});
|
|
5633
|
-
function confirmMixin(X) {
|
|
5634
|
-
return ConfirmMixin(X);
|
|
5635
|
-
}
|
|
5636
|
-
const createInteractionManager = () => ({
|
|
5637
|
-
notify: (X) => notify(X),
|
|
5638
|
-
confirm: (X) => confirm(X),
|
|
5639
|
-
customConfirm: (X) => confirm(X),
|
|
5640
|
-
openDialog: (X) => openDialog(X)
|
|
5641
|
-
});
|
|
5425
|
+
let instance;
|
|
5426
|
+
const createHttpClient = (X, W) => (instance || (instance = createAxiosInstance(X, W)), { request: instance.request });
|
|
5642
5427
|
function _concat(X, W) {
|
|
5643
5428
|
X = X || [], W = W || [];
|
|
5644
5429
|
var J, te = X.length, re = W.length, ne = [];
|
|
@@ -6479,11 +6264,11 @@ function peg$parse(X, W) {
|
|
|
6479
6264
|
return __assign$4({ type: TYPE.pound }, yr());
|
|
6480
6265
|
}, ce = vr("argumentElement"), pe = "{", fe = hr("{", !1), ge = "}", me = hr("}", !1), ve = function(Oe) {
|
|
6481
6266
|
return __assign$4({ type: TYPE.argument, value: Oe }, yr());
|
|
6482
|
-
}, be = vr("numberSkeletonId"), ye = /^['\/{}]/, we = wr(["'", "/", "{", "}"], !1, !1), Se = xi(), _e = vr("numberSkeletonTokenOption"), Ce = "/", Le = hr("/", !1),
|
|
6267
|
+
}, be = vr("numberSkeletonId"), ye = /^['\/{}]/, we = wr(["'", "/", "{", "}"], !1, !1), Se = xi(), _e = vr("numberSkeletonTokenOption"), Ce = "/", Le = hr("/", !1), Pe = function(Oe) {
|
|
6483
6268
|
return Oe;
|
|
6484
6269
|
}, Ie = vr("numberSkeletonToken"), ze = function(Oe, He) {
|
|
6485
6270
|
return { stem: Oe, options: He };
|
|
6486
|
-
},
|
|
6271
|
+
}, qe = function(Oe) {
|
|
6487
6272
|
return __assign$4({ type: 0, tokens: Oe }, yr());
|
|
6488
6273
|
}, Ae = "::", De = hr("::", !1), Me = function(Oe) {
|
|
6489
6274
|
return Oe;
|
|
@@ -6497,7 +6282,7 @@ function peg$parse(X, W) {
|
|
|
6497
6282
|
return __assign$4({ type: 1, pattern: Oe }, yr());
|
|
6498
6283
|
}, bt = function() {
|
|
6499
6284
|
return _r.push("dateOrTimeArgStyle"), !0;
|
|
6500
|
-
},
|
|
6285
|
+
}, Ct = "date", Dt = hr("date", !1), Lt = "time", Bt = hr("time", !1), jt = "plural", dr = hr("plural", !1), rr = "selectordinal", gt = hr("selectordinal", !1), mt = "offset:", xt = hr("offset:", !1), St = function(Oe, He, tt, ft) {
|
|
6501
6286
|
return __assign$4({ type: TYPE.plural, pluralType: He === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: ft.reduce(function(wt, Mt) {
|
|
6502
6287
|
var nr = Mt.id, Vt = Mt.value, gr = Mt.location;
|
|
6503
6288
|
return nr in wt && Hr('Duplicate option "' + nr + '" in plural element: "' + Br() + '"', Ir()), wt[nr] = {
|
|
@@ -6601,13 +6386,13 @@ function peg$parse(X, W) {
|
|
|
6601
6386
|
}
|
|
6602
6387
|
};
|
|
6603
6388
|
}
|
|
6604
|
-
function
|
|
6389
|
+
function Et(Oe) {
|
|
6605
6390
|
Fe < br || (Fe > br && (br = Fe, Rr = []), Rr.push(Oe));
|
|
6606
6391
|
}
|
|
6607
6392
|
function Si(Oe, He) {
|
|
6608
6393
|
return new SyntaxError(Oe, [], "", He);
|
|
6609
6394
|
}
|
|
6610
|
-
function
|
|
6395
|
+
function Ei(Oe, He, tt) {
|
|
6611
6396
|
return new SyntaxError(SyntaxError.buildMessage(Oe, He), Oe, He, tt);
|
|
6612
6397
|
}
|
|
6613
6398
|
function Vr() {
|
|
@@ -6622,7 +6407,7 @@ function peg$parse(X, W) {
|
|
|
6622
6407
|
}
|
|
6623
6408
|
function Gr() {
|
|
6624
6409
|
var Oe;
|
|
6625
|
-
return Oe =
|
|
6410
|
+
return Oe = Ci(), Oe === J && (Oe = Oi(), Oe === J && (Oe = Li(), Oe === J && (Oe = Mi(), Oe === J && (Oe = Ni(), Oe === J && (Oe = Ai()))))), Oe;
|
|
6626
6411
|
}
|
|
6627
6412
|
function Mr() {
|
|
6628
6413
|
var Oe, He, tt;
|
|
@@ -6633,30 +6418,30 @@ function peg$parse(X, W) {
|
|
|
6633
6418
|
He = J;
|
|
6634
6419
|
return He !== J && (Yt = Oe, He = ne(He)), Oe = He, Oe;
|
|
6635
6420
|
}
|
|
6636
|
-
function
|
|
6421
|
+
function Ci() {
|
|
6637
6422
|
var Oe, He;
|
|
6638
6423
|
return Oe = Fe, He = Mr(), He !== J && (Yt = Oe, He = oe(He)), Oe = He, Oe;
|
|
6639
6424
|
}
|
|
6640
6425
|
function Ai() {
|
|
6641
6426
|
var Oe, He;
|
|
6642
|
-
return Oe = Fe, X.charCodeAt(Fe) === 35 ? (He = de, Fe++) : (He = J, yt === 0 &&
|
|
6427
|
+
return Oe = Fe, X.charCodeAt(Fe) === 35 ? (He = de, Fe++) : (He = J, yt === 0 && Et(he)), He !== J && (Yt = Oe, He = ue()), Oe = He, Oe;
|
|
6643
6428
|
}
|
|
6644
6429
|
function Oi() {
|
|
6645
6430
|
var Oe, He, tt, ft, wt, Mt;
|
|
6646
|
-
return yt++, Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 &&
|
|
6431
|
+
return yt++, Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 && Et(fe)), He !== J ? (tt = Gt(), tt !== J ? (ft = Er(), ft !== J ? (wt = Gt(), wt !== J ? (X.charCodeAt(Fe) === 125 ? (Mt = ge, Fe++) : (Mt = J, yt === 0 && Et(me)), Mt !== J ? (Yt = Oe, He = ve(ft), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), yt--, Oe === J && (He = J, yt === 0 && Et(ce)), Oe;
|
|
6647
6432
|
}
|
|
6648
6433
|
function Wr() {
|
|
6649
6434
|
var Oe, He, tt, ft, wt;
|
|
6650
|
-
if (yt++, Oe = Fe, He = [], tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (ye.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 &&
|
|
6435
|
+
if (yt++, Oe = Fe, He = [], tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (ye.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(we))), yt--, wt === J ? ft = void 0 : (Fe = ft, ft = J), ft !== J ? (X.length > Fe ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(Se)), wt !== J ? (ft = [ft, wt], tt = ft) : (Fe = tt, tt = J)) : (Fe = tt, tt = J), tt !== J)
|
|
6651
6436
|
for (; tt !== J; )
|
|
6652
|
-
He.push(tt), tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (ye.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 &&
|
|
6437
|
+
He.push(tt), tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (ye.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(we))), yt--, wt === J ? ft = void 0 : (Fe = ft, ft = J), ft !== J ? (X.length > Fe ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(Se)), wt !== J ? (ft = [ft, wt], tt = ft) : (Fe = tt, tt = J)) : (Fe = tt, tt = J);
|
|
6653
6438
|
else
|
|
6654
6439
|
He = J;
|
|
6655
|
-
return He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 &&
|
|
6440
|
+
return He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 && Et(be)), Oe;
|
|
6656
6441
|
}
|
|
6657
6442
|
function Yr() {
|
|
6658
6443
|
var Oe, He, tt;
|
|
6659
|
-
return yt++, Oe = Fe, X.charCodeAt(Fe) === 47 ? (He = Ce, Fe++) : (He = J, yt === 0 &&
|
|
6444
|
+
return yt++, Oe = Fe, X.charCodeAt(Fe) === 47 ? (He = Ce, Fe++) : (He = J, yt === 0 && Et(Le)), He !== J ? (tt = Wr(), tt !== J ? (Yt = Oe, He = Pe(tt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), yt--, Oe === J && (He = J, yt === 0 && Et(_e)), Oe;
|
|
6660
6445
|
}
|
|
6661
6446
|
function Jr() {
|
|
6662
6447
|
var Oe, He, tt, ft, wt;
|
|
@@ -6669,7 +6454,7 @@ function peg$parse(X, W) {
|
|
|
6669
6454
|
Fe = Oe, Oe = J;
|
|
6670
6455
|
else
|
|
6671
6456
|
Fe = Oe, Oe = J;
|
|
6672
|
-
return yt--, Oe === J && (He = J, yt === 0 &&
|
|
6457
|
+
return yt--, Oe === J && (He = J, yt === 0 && Et(Ie)), Oe;
|
|
6673
6458
|
}
|
|
6674
6459
|
function Ti() {
|
|
6675
6460
|
var Oe, He, tt;
|
|
@@ -6678,40 +6463,40 @@ function peg$parse(X, W) {
|
|
|
6678
6463
|
He.push(tt), tt = Jr();
|
|
6679
6464
|
else
|
|
6680
6465
|
He = J;
|
|
6681
|
-
return He !== J && (Yt = Oe, He =
|
|
6466
|
+
return He !== J && (Yt = Oe, He = qe(He)), Oe = He, Oe;
|
|
6682
6467
|
}
|
|
6683
6468
|
function qi() {
|
|
6684
6469
|
var Oe, He, tt;
|
|
6685
|
-
return Oe = Fe, X.substr(Fe, 2) === Ae ? (He = Ae, Fe += 2) : (He = J, yt === 0 &&
|
|
6470
|
+
return Oe = Fe, X.substr(Fe, 2) === Ae ? (He = Ae, Fe += 2) : (He = J, yt === 0 && Et(De)), He !== J ? (tt = Ti(), tt !== J ? (Yt = Oe, He = Me(tt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), Oe === J && (Oe = Fe, Yt = Fe, He = Be(), He ? He = void 0 : He = J, He !== J ? (tt = Mr(), tt !== J ? (Yt = Oe, He = Ve(tt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)), Oe;
|
|
6686
6471
|
}
|
|
6687
6472
|
function Pi() {
|
|
6688
6473
|
var Oe, He, tt, ft, wt, Mt, nr, Vt, gr, Wt, lr, Kt, sr;
|
|
6689
|
-
return Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 &&
|
|
6474
|
+
return Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 && Et(fe)), He !== J ? (tt = Gt(), tt !== J ? (ft = Er(), ft !== J ? (wt = Gt(), wt !== J ? (X.charCodeAt(Fe) === 44 ? (Mt = Ye, Fe++) : (Mt = J, yt === 0 && Et(Je)), Mt !== J ? (nr = Gt(), nr !== J ? (X.substr(Fe, 6) === vt ? (Vt = vt, Fe += 6) : (Vt = J, yt === 0 && Et(Xe)), Vt !== J ? (gr = Gt(), gr !== J ? (Wt = Fe, X.charCodeAt(Fe) === 44 ? (lr = Ye, Fe++) : (lr = J, yt === 0 && Et(Je)), lr !== J ? (Kt = Gt(), Kt !== J ? (sr = qi(), sr !== J ? (lr = [lr, Kt, sr], Wt = lr) : (Fe = Wt, Wt = J)) : (Fe = Wt, Wt = J)) : (Fe = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (lr = Gt(), lr !== J ? (X.charCodeAt(Fe) === 125 ? (Kt = ge, Fe++) : (Kt = J, yt === 0 && Et(me)), Kt !== J ? (Yt = Oe, He = Ge(ft, Vt, Wt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), Oe;
|
|
6690
6475
|
}
|
|
6691
6476
|
function Kr() {
|
|
6692
6477
|
var Oe, He, tt, ft;
|
|
6693
|
-
if (Oe = Fe, X.charCodeAt(Fe) === 39 ? (He = Ne, Fe++) : (He = J, yt === 0 &&
|
|
6694
|
-
if (tt = [], ft = kr(), ft === J && (We.test(X.charAt(Fe)) ? (ft = X.charAt(Fe), Fe++) : (ft = J, yt === 0 &&
|
|
6478
|
+
if (Oe = Fe, X.charCodeAt(Fe) === 39 ? (He = Ne, Fe++) : (He = J, yt === 0 && Et(Ue)), He !== J) {
|
|
6479
|
+
if (tt = [], ft = kr(), ft === J && (We.test(X.charAt(Fe)) ? (ft = X.charAt(Fe), Fe++) : (ft = J, yt === 0 && Et(Qe))), ft !== J)
|
|
6695
6480
|
for (; ft !== J; )
|
|
6696
|
-
tt.push(ft), ft = kr(), ft === J && (We.test(X.charAt(Fe)) ? (ft = X.charAt(Fe), Fe++) : (ft = J, yt === 0 &&
|
|
6481
|
+
tt.push(ft), ft = kr(), ft === J && (We.test(X.charAt(Fe)) ? (ft = X.charAt(Fe), Fe++) : (ft = J, yt === 0 && Et(Qe)));
|
|
6697
6482
|
else
|
|
6698
6483
|
tt = J;
|
|
6699
|
-
tt !== J ? (X.charCodeAt(Fe) === 39 ? (ft = Ne, Fe++) : (ft = J, yt === 0 &&
|
|
6484
|
+
tt !== J ? (X.charCodeAt(Fe) === 39 ? (ft = Ne, Fe++) : (ft = J, yt === 0 && Et(Ue)), ft !== J ? (He = [He, tt, ft], Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J);
|
|
6700
6485
|
} else
|
|
6701
6486
|
Fe = Oe, Oe = J;
|
|
6702
6487
|
if (Oe === J)
|
|
6703
|
-
if (Oe = [], He = kr(), He === J && (Ze.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 &&
|
|
6488
|
+
if (Oe = [], He = kr(), He === J && (Ze.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 && Et(je))), He !== J)
|
|
6704
6489
|
for (; He !== J; )
|
|
6705
|
-
Oe.push(He), He = kr(), He === J && (Ze.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 &&
|
|
6490
|
+
Oe.push(He), He = kr(), He === J && (Ze.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 && Et(je)));
|
|
6706
6491
|
else
|
|
6707
6492
|
Oe = J;
|
|
6708
6493
|
return Oe;
|
|
6709
6494
|
}
|
|
6710
6495
|
function Zr() {
|
|
6711
6496
|
var Oe, He;
|
|
6712
|
-
if (Oe = [], Ke.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 &&
|
|
6497
|
+
if (Oe = [], Ke.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 && Et(it)), He !== J)
|
|
6713
6498
|
for (; He !== J; )
|
|
6714
|
-
Oe.push(He), Ke.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 &&
|
|
6499
|
+
Oe.push(He), Ke.test(X.charAt(Fe)) ? (He = X.charAt(Fe), Fe++) : (He = J, yt === 0 && Et(it));
|
|
6715
6500
|
else
|
|
6716
6501
|
Oe = J;
|
|
6717
6502
|
return Oe;
|
|
@@ -6727,11 +6512,11 @@ function peg$parse(X, W) {
|
|
|
6727
6512
|
}
|
|
6728
6513
|
function Ri() {
|
|
6729
6514
|
var Oe, He, tt;
|
|
6730
|
-
return Oe = Fe, X.substr(Fe, 2) === Ae ? (He = Ae, Fe += 2) : (He = J, yt === 0 &&
|
|
6515
|
+
return Oe = Fe, X.substr(Fe, 2) === Ae ? (He = Ae, Fe += 2) : (He = J, yt === 0 && Et(De)), He !== J ? (tt = Di(), tt !== J ? (Yt = Oe, He = Me(tt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), Oe === J && (Oe = Fe, Yt = Fe, He = bt(), He ? He = void 0 : He = J, He !== J ? (tt = Mr(), tt !== J ? (Yt = Oe, He = Ve(tt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)), Oe;
|
|
6731
6516
|
}
|
|
6732
6517
|
function Ii() {
|
|
6733
6518
|
var Oe, He, tt, ft, wt, Mt, nr, Vt, gr, Wt, lr, Kt, sr;
|
|
6734
|
-
return Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 &&
|
|
6519
|
+
return Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 && Et(fe)), He !== J ? (tt = Gt(), tt !== J ? (ft = Er(), ft !== J ? (wt = Gt(), wt !== J ? (X.charCodeAt(Fe) === 44 ? (Mt = Ye, Fe++) : (Mt = J, yt === 0 && Et(Je)), Mt !== J ? (nr = Gt(), nr !== J ? (X.substr(Fe, 4) === Ct ? (Vt = Ct, Fe += 4) : (Vt = J, yt === 0 && Et(Dt)), Vt === J && (X.substr(Fe, 4) === Lt ? (Vt = Lt, Fe += 4) : (Vt = J, yt === 0 && Et(Bt))), Vt !== J ? (gr = Gt(), gr !== J ? (Wt = Fe, X.charCodeAt(Fe) === 44 ? (lr = Ye, Fe++) : (lr = J, yt === 0 && Et(Je)), lr !== J ? (Kt = Gt(), Kt !== J ? (sr = Ri(), sr !== J ? (lr = [lr, Kt, sr], Wt = lr) : (Fe = Wt, Wt = J)) : (Fe = Wt, Wt = J)) : (Fe = Wt, Wt = J), Wt === J && (Wt = null), Wt !== J ? (lr = Gt(), lr !== J ? (X.charCodeAt(Fe) === 125 ? (Kt = ge, Fe++) : (Kt = J, yt === 0 && Et(me)), Kt !== J ? (Yt = Oe, He = Ge(ft, Vt, Wt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), Oe;
|
|
6735
6520
|
}
|
|
6736
6521
|
function Li() {
|
|
6737
6522
|
var Oe;
|
|
@@ -6739,24 +6524,24 @@ function peg$parse(X, W) {
|
|
|
6739
6524
|
}
|
|
6740
6525
|
function Mi() {
|
|
6741
6526
|
var Oe, He, tt, ft, wt, Mt, nr, Vt, gr, Wt, lr, Kt, sr, mr, $r, Fr;
|
|
6742
|
-
if (Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 &&
|
|
6527
|
+
if (Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 && Et(fe)), He !== J)
|
|
6743
6528
|
if (tt = Gt(), tt !== J)
|
|
6744
|
-
if (ft =
|
|
6529
|
+
if (ft = Er(), ft !== J)
|
|
6745
6530
|
if (wt = Gt(), wt !== J)
|
|
6746
|
-
if (X.charCodeAt(Fe) === 44 ? (Mt = Ye, Fe++) : (Mt = J, yt === 0 &&
|
|
6531
|
+
if (X.charCodeAt(Fe) === 44 ? (Mt = Ye, Fe++) : (Mt = J, yt === 0 && Et(Je)), Mt !== J)
|
|
6747
6532
|
if (nr = Gt(), nr !== J)
|
|
6748
|
-
if (X.substr(Fe, 6) === jt ? (Vt = jt, Fe += 6) : (Vt = J, yt === 0 &&
|
|
6533
|
+
if (X.substr(Fe, 6) === jt ? (Vt = jt, Fe += 6) : (Vt = J, yt === 0 && Et(dr)), Vt === J && (X.substr(Fe, 13) === rr ? (Vt = rr, Fe += 13) : (Vt = J, yt === 0 && Et(gt))), Vt !== J)
|
|
6749
6534
|
if (gr = Gt(), gr !== J)
|
|
6750
|
-
if (X.charCodeAt(Fe) === 44 ? (Wt = Ye, Fe++) : (Wt = J, yt === 0 &&
|
|
6535
|
+
if (X.charCodeAt(Fe) === 44 ? (Wt = Ye, Fe++) : (Wt = J, yt === 0 && Et(Je)), Wt !== J)
|
|
6751
6536
|
if (lr = Gt(), lr !== J)
|
|
6752
|
-
if (Kt = Fe, X.substr(Fe, 7) === mt ? (sr = mt, Fe += 7) : (sr = J, yt === 0 &&
|
|
6537
|
+
if (Kt = Fe, X.substr(Fe, 7) === mt ? (sr = mt, Fe += 7) : (sr = J, yt === 0 && Et(xt)), sr !== J ? (mr = Gt(), mr !== J ? ($r = ti(), $r !== J ? (sr = [sr, mr, $r], Kt = sr) : (Fe = Kt, Kt = J)) : (Fe = Kt, Kt = J)) : (Fe = Kt, Kt = J), Kt === J && (Kt = null), Kt !== J)
|
|
6753
6538
|
if (sr = Gt(), sr !== J) {
|
|
6754
6539
|
if (mr = [], $r = Qr(), $r !== J)
|
|
6755
6540
|
for (; $r !== J; )
|
|
6756
6541
|
mr.push($r), $r = Qr();
|
|
6757
6542
|
else
|
|
6758
6543
|
mr = J;
|
|
6759
|
-
mr !== J ? ($r = Gt(), $r !== J ? (X.charCodeAt(Fe) === 125 ? (Fr = ge, Fe++) : (Fr = J, yt === 0 &&
|
|
6544
|
+
mr !== J ? ($r = Gt(), $r !== J ? (X.charCodeAt(Fe) === 125 ? (Fr = ge, Fe++) : (Fr = J, yt === 0 && Et(me)), Fr !== J ? (Yt = Oe, He = St(ft, Vt, Kt, mr), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J);
|
|
6760
6545
|
} else
|
|
6761
6546
|
Fe = Oe, Oe = J;
|
|
6762
6547
|
else
|
|
@@ -6785,22 +6570,22 @@ function peg$parse(X, W) {
|
|
|
6785
6570
|
}
|
|
6786
6571
|
function Ni() {
|
|
6787
6572
|
var Oe, He, tt, ft, wt, Mt, nr, Vt, gr, Wt, lr, Kt, sr, mr;
|
|
6788
|
-
if (Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 &&
|
|
6573
|
+
if (Oe = Fe, X.charCodeAt(Fe) === 123 ? (He = pe, Fe++) : (He = J, yt === 0 && Et(fe)), He !== J)
|
|
6789
6574
|
if (tt = Gt(), tt !== J)
|
|
6790
|
-
if (ft =
|
|
6575
|
+
if (ft = Er(), ft !== J)
|
|
6791
6576
|
if (wt = Gt(), wt !== J)
|
|
6792
|
-
if (X.charCodeAt(Fe) === 44 ? (Mt = Ye, Fe++) : (Mt = J, yt === 0 &&
|
|
6577
|
+
if (X.charCodeAt(Fe) === 44 ? (Mt = Ye, Fe++) : (Mt = J, yt === 0 && Et(Je)), Mt !== J)
|
|
6793
6578
|
if (nr = Gt(), nr !== J)
|
|
6794
|
-
if (X.substr(Fe, 6) === $t ? (Vt = $t, Fe += 6) : (Vt = J, yt === 0 &&
|
|
6579
|
+
if (X.substr(Fe, 6) === $t ? (Vt = $t, Fe += 6) : (Vt = J, yt === 0 && Et(Ft)), Vt !== J)
|
|
6795
6580
|
if (gr = Gt(), gr !== J)
|
|
6796
|
-
if (X.charCodeAt(Fe) === 44 ? (Wt = Ye, Fe++) : (Wt = J, yt === 0 &&
|
|
6581
|
+
if (X.charCodeAt(Fe) === 44 ? (Wt = Ye, Fe++) : (Wt = J, yt === 0 && Et(Je)), Wt !== J)
|
|
6797
6582
|
if (lr = Gt(), lr !== J) {
|
|
6798
6583
|
if (Kt = [], sr = Xr(), sr !== J)
|
|
6799
6584
|
for (; sr !== J; )
|
|
6800
6585
|
Kt.push(sr), sr = Xr();
|
|
6801
6586
|
else
|
|
6802
6587
|
Kt = J;
|
|
6803
|
-
Kt !== J ? (sr = Gt(), sr !== J ? (X.charCodeAt(Fe) === 125 ? (mr = ge, Fe++) : (mr = J, yt === 0 &&
|
|
6588
|
+
Kt !== J ? (sr = Gt(), sr !== J ? (X.charCodeAt(Fe) === 125 ? (mr = ge, Fe++) : (mr = J, yt === 0 && Et(me)), mr !== J ? (Yt = Oe, He = Nt(ft, Kt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J);
|
|
6804
6589
|
} else
|
|
6805
6590
|
Fe = Oe, Oe = J;
|
|
6806
6591
|
else
|
|
@@ -6825,45 +6610,45 @@ function peg$parse(X, W) {
|
|
|
6825
6610
|
}
|
|
6826
6611
|
function Fi() {
|
|
6827
6612
|
var Oe, He, tt, ft;
|
|
6828
|
-
return Oe = Fe, He = Fe, X.charCodeAt(Fe) === 61 ? (tt = zt, Fe++) : (tt = J, yt === 0 &&
|
|
6613
|
+
return Oe = Fe, He = Fe, X.charCodeAt(Fe) === 61 ? (tt = zt, Fe++) : (tt = J, yt === 0 && Et(or)), tt !== J ? (ft = ti(), ft !== J ? (tt = [tt, ft], He = tt) : (Fe = He, He = J)) : (Fe = He, He = J), He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, Oe === J && (Oe = Nr()), Oe;
|
|
6829
6614
|
}
|
|
6830
6615
|
function Xr() {
|
|
6831
6616
|
var Oe, He, tt, ft, wt, Mt, nr, Vt;
|
|
6832
|
-
return Oe = Fe, He = Gt(), He !== J ? (tt = Nr(), tt !== J ? (ft = Gt(), ft !== J ? (X.charCodeAt(Fe) === 123 ? (wt = pe, Fe++) : (wt = J, yt === 0 &&
|
|
6617
|
+
return Oe = Fe, He = Gt(), He !== J ? (tt = Nr(), tt !== J ? (ft = Gt(), ft !== J ? (X.charCodeAt(Fe) === 123 ? (wt = pe, Fe++) : (wt = J, yt === 0 && Et(fe)), wt !== J ? (Yt = Fe, Mt = pr(), Mt ? Mt = void 0 : Mt = J, Mt !== J ? (nr = Lr(), nr !== J ? (X.charCodeAt(Fe) === 125 ? (Vt = ge, Fe++) : (Vt = J, yt === 0 && Et(me)), Vt !== J ? (Yt = Oe, He = Zt(tt, nr), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), Oe;
|
|
6833
6618
|
}
|
|
6834
6619
|
function Qr() {
|
|
6835
6620
|
var Oe, He, tt, ft, wt, Mt, nr, Vt;
|
|
6836
|
-
return Oe = Fe, He = Gt(), He !== J ? (tt = Fi(), tt !== J ? (ft = Gt(), ft !== J ? (X.charCodeAt(Fe) === 123 ? (wt = pe, Fe++) : (wt = J, yt === 0 &&
|
|
6621
|
+
return Oe = Fe, He = Gt(), He !== J ? (tt = Fi(), tt !== J ? (ft = Gt(), ft !== J ? (X.charCodeAt(Fe) === 123 ? (wt = pe, Fe++) : (wt = J, yt === 0 && Et(fe)), wt !== J ? (Yt = Fe, Mt = Sr(), Mt ? Mt = void 0 : Mt = J, Mt !== J ? (nr = Lr(), nr !== J ? (X.charCodeAt(Fe) === 125 ? (Vt = ge, Fe++) : (Vt = J, yt === 0 && Et(me)), Vt !== J ? (Yt = Oe, He = ir(tt, nr), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), Oe;
|
|
6837
6622
|
}
|
|
6838
6623
|
function xr() {
|
|
6839
6624
|
var Oe;
|
|
6840
|
-
return yt++, ot.test(X.charAt(Fe)) ? (Oe = X.charAt(Fe), Fe++) : (Oe = J, yt === 0 &&
|
|
6625
|
+
return yt++, ot.test(X.charAt(Fe)) ? (Oe = X.charAt(Fe), Fe++) : (Oe = J, yt === 0 && Et(_t)), yt--, Oe === J && yt === 0 && Et(rt), Oe;
|
|
6841
6626
|
}
|
|
6842
6627
|
function ei() {
|
|
6843
6628
|
var Oe;
|
|
6844
|
-
return yt++, It.test(X.charAt(Fe)) ? (Oe = X.charAt(Fe), Fe++) : (Oe = J, yt === 0 &&
|
|
6629
|
+
return yt++, It.test(X.charAt(Fe)) ? (Oe = X.charAt(Fe), Fe++) : (Oe = J, yt === 0 && Et(ur)), yt--, Oe === J && yt === 0 && Et(kt), Oe;
|
|
6845
6630
|
}
|
|
6846
6631
|
function Gt() {
|
|
6847
6632
|
var Oe, He, tt;
|
|
6848
6633
|
for (yt++, Oe = Fe, He = [], tt = xr(); tt !== J; )
|
|
6849
6634
|
He.push(tt), tt = xr();
|
|
6850
|
-
return He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 &&
|
|
6635
|
+
return He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 && Et(cr)), Oe;
|
|
6851
6636
|
}
|
|
6852
6637
|
function ti() {
|
|
6853
6638
|
var Oe, He, tt;
|
|
6854
|
-
return yt++, Oe = Fe, X.charCodeAt(Fe) === 45 ? (He = At, Fe++) : (He = J, yt === 0 &&
|
|
6639
|
+
return yt++, Oe = Fe, X.charCodeAt(Fe) === 45 ? (He = At, Fe++) : (He = J, yt === 0 && Et(Ot)), He === J && (He = null), He !== J ? (tt = ni(), tt !== J ? (Yt = Oe, He = qt(He, tt), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J), yt--, Oe === J && (He = J, yt === 0 && Et(Ht)), Oe;
|
|
6855
6640
|
}
|
|
6856
6641
|
function kr() {
|
|
6857
6642
|
var Oe, He;
|
|
6858
|
-
return yt++, Oe = Fe, X.substr(Fe, 2) === Ut ? (He = Ut, Fe += 2) : (He = J, yt === 0 &&
|
|
6643
|
+
return yt++, Oe = Fe, X.substr(Fe, 2) === Ut ? (He = Ut, Fe += 2) : (He = J, yt === 0 && Et(Xt)), He !== J && (Yt = Oe, He = ar()), Oe = He, yt--, Oe === J && (He = J, yt === 0 && Et(Pt)), Oe;
|
|
6859
6644
|
}
|
|
6860
6645
|
function ri() {
|
|
6861
6646
|
var Oe, He, tt, ft, wt, Mt;
|
|
6862
|
-
if (Oe = Fe, X.charCodeAt(Fe) === 39 ? (He = Ne, Fe++) : (He = J, yt === 0 &&
|
|
6647
|
+
if (Oe = Fe, X.charCodeAt(Fe) === 39 ? (He = Ne, Fe++) : (He = J, yt === 0 && Et(Ue)), He !== J)
|
|
6863
6648
|
if (tt = zi(), tt !== J) {
|
|
6864
|
-
for (ft = Fe, wt = [], X.substr(Fe, 2) === Ut ? (Mt = Ut, Fe += 2) : (Mt = J, yt === 0 &&
|
|
6865
|
-
wt.push(Mt), X.substr(Fe, 2) === Ut ? (Mt = Ut, Fe += 2) : (Mt = J, yt === 0 &&
|
|
6866
|
-
wt !== J ? ft = X.substring(ft, Fe) : ft = wt, ft !== J ? (X.charCodeAt(Fe) === 39 ? (wt = Ne, Fe++) : (wt = J, yt === 0 &&
|
|
6649
|
+
for (ft = Fe, wt = [], X.substr(Fe, 2) === Ut ? (Mt = Ut, Fe += 2) : (Mt = J, yt === 0 && Et(Xt)), Mt === J && (We.test(X.charAt(Fe)) ? (Mt = X.charAt(Fe), Fe++) : (Mt = J, yt === 0 && Et(Qe))); Mt !== J; )
|
|
6650
|
+
wt.push(Mt), X.substr(Fe, 2) === Ut ? (Mt = Ut, Fe += 2) : (Mt = J, yt === 0 && Et(Xt)), Mt === J && (We.test(X.charAt(Fe)) ? (Mt = X.charAt(Fe), Fe++) : (Mt = J, yt === 0 && Et(Qe)));
|
|
6651
|
+
wt !== J ? ft = X.substring(ft, Fe) : ft = wt, ft !== J ? (X.charCodeAt(Fe) === 39 ? (wt = Ne, Fe++) : (wt = J, yt === 0 && Et(Ue)), wt === J && (wt = null), wt !== J ? (Yt = Oe, He = fr(tt, ft), Oe = He) : (Fe = Oe, Oe = J)) : (Fe = Oe, Oe = J);
|
|
6867
6652
|
} else
|
|
6868
6653
|
Fe = Oe, Oe = J;
|
|
6869
6654
|
else
|
|
@@ -6872,37 +6657,37 @@ function peg$parse(X, W) {
|
|
|
6872
6657
|
}
|
|
6873
6658
|
function ii() {
|
|
6874
6659
|
var Oe, He, tt, ft;
|
|
6875
|
-
return Oe = Fe, He = Fe, X.length > Fe ? (tt = X.charAt(Fe), Fe++) : (tt = J, yt === 0 &&
|
|
6660
|
+
return Oe = Fe, He = Fe, X.length > Fe ? (tt = X.charAt(Fe), Fe++) : (tt = J, yt === 0 && Et(Se)), tt !== J ? (Yt = Fe, ft = Ar(tt), ft ? ft = void 0 : ft = J, ft !== J ? (tt = [tt, ft], He = tt) : (Fe = He, He = J)) : (Fe = He, He = J), He === J && (X.charCodeAt(Fe) === 10 ? (He = Pr, Fe++) : (He = J, yt === 0 && Et(Dr))), He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, Oe;
|
|
6876
6661
|
}
|
|
6877
6662
|
function zi() {
|
|
6878
6663
|
var Oe, He, tt, ft;
|
|
6879
|
-
return Oe = Fe, He = Fe, X.length > Fe ? (tt = X.charAt(Fe), Fe++) : (tt = J, yt === 0 &&
|
|
6664
|
+
return Oe = Fe, He = Fe, X.length > Fe ? (tt = X.charAt(Fe), Fe++) : (tt = J, yt === 0 && Et(Se)), tt !== J ? (Yt = Fe, ft = pi(tt), ft ? ft = void 0 : ft = J, ft !== J ? (tt = [tt, ft], He = tt) : (Fe = He, He = J)) : (Fe = He, He = J), He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, Oe;
|
|
6880
6665
|
}
|
|
6881
|
-
function
|
|
6666
|
+
function Er() {
|
|
6882
6667
|
var Oe, He;
|
|
6883
|
-
return yt++, Oe = Fe, He = ni(), He === J && (He = Nr()), He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 &&
|
|
6668
|
+
return yt++, Oe = Fe, He = ni(), He === J && (He = Nr()), He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 && Et(fi)), Oe;
|
|
6884
6669
|
}
|
|
6885
6670
|
function ni() {
|
|
6886
6671
|
var Oe, He, tt, ft, wt;
|
|
6887
|
-
if (yt++, Oe = Fe, X.charCodeAt(Fe) === 48 ? (He = vi, Fe++) : (He = J, yt === 0 &&
|
|
6888
|
-
if (Oe = Fe, He = Fe, _i.test(X.charAt(Fe)) ? (tt = X.charAt(Fe), Fe++) : (tt = J, yt === 0 &&
|
|
6889
|
-
for (ft = [], zr.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 &&
|
|
6890
|
-
ft.push(wt), zr.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 &&
|
|
6672
|
+
if (yt++, Oe = Fe, X.charCodeAt(Fe) === 48 ? (He = vi, Fe++) : (He = J, yt === 0 && Et(mi)), He !== J && (Yt = Oe, He = bi()), Oe = He, Oe === J) {
|
|
6673
|
+
if (Oe = Fe, He = Fe, _i.test(X.charAt(Fe)) ? (tt = X.charAt(Fe), Fe++) : (tt = J, yt === 0 && Et(yi)), tt !== J) {
|
|
6674
|
+
for (ft = [], zr.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(Ur)); wt !== J; )
|
|
6675
|
+
ft.push(wt), zr.test(X.charAt(Fe)) ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(Ur));
|
|
6891
6676
|
ft !== J ? (tt = [tt, ft], He = tt) : (Fe = He, He = J);
|
|
6892
6677
|
} else
|
|
6893
6678
|
Fe = He, He = J;
|
|
6894
6679
|
He !== J && (Yt = Oe, He = $i(He)), Oe = He;
|
|
6895
6680
|
}
|
|
6896
|
-
return yt--, Oe === J && (He = J, yt === 0 &&
|
|
6681
|
+
return yt--, Oe === J && (He = J, yt === 0 && Et(gi)), Oe;
|
|
6897
6682
|
}
|
|
6898
6683
|
function Nr() {
|
|
6899
6684
|
var Oe, He, tt, ft, wt;
|
|
6900
|
-
if (yt++, Oe = Fe, He = [], tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (wt = ei()), yt--, wt === J ? ft = void 0 : (Fe = ft, ft = J), ft !== J ? (X.length > Fe ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 &&
|
|
6685
|
+
if (yt++, Oe = Fe, He = [], tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (wt = ei()), yt--, wt === J ? ft = void 0 : (Fe = ft, ft = J), ft !== J ? (X.length > Fe ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(Se)), wt !== J ? (ft = [ft, wt], tt = ft) : (Fe = tt, tt = J)) : (Fe = tt, tt = J), tt !== J)
|
|
6901
6686
|
for (; tt !== J; )
|
|
6902
|
-
He.push(tt), tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (wt = ei()), yt--, wt === J ? ft = void 0 : (Fe = ft, ft = J), ft !== J ? (X.length > Fe ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 &&
|
|
6687
|
+
He.push(tt), tt = Fe, ft = Fe, yt++, wt = xr(), wt === J && (wt = ei()), yt--, wt === J ? ft = void 0 : (Fe = ft, ft = J), ft !== J ? (X.length > Fe ? (wt = X.charAt(Fe), Fe++) : (wt = J, yt === 0 && Et(Se)), wt !== J ? (ft = [ft, wt], tt = ft) : (Fe = tt, tt = J)) : (Fe = tt, tt = J);
|
|
6903
6688
|
else
|
|
6904
6689
|
He = J;
|
|
6905
|
-
return He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 &&
|
|
6690
|
+
return He !== J ? Oe = X.substring(Oe, Fe) : Oe = He, yt--, Oe === J && (He = J, yt === 0 && Et(wi)), Oe;
|
|
6906
6691
|
}
|
|
6907
6692
|
var _r = ["root"];
|
|
6908
6693
|
function Ui() {
|
|
@@ -6918,7 +6703,7 @@ function peg$parse(X, W) {
|
|
|
6918
6703
|
}
|
|
6919
6704
|
if (Tr = re(), Tr !== J && Fe === X.length)
|
|
6920
6705
|
return Tr;
|
|
6921
|
-
throw Tr !== J && Fe < X.length &&
|
|
6706
|
+
throw Tr !== J && Fe < X.length && Et(ki()), Ei(Rr, br < X.length ? X.charAt(br) : null, br < X.length ? qr(br, br + 1) : qr(br, br));
|
|
6922
6707
|
}
|
|
6923
6708
|
var pegParse = peg$parse, __spreadArrays$2 = function() {
|
|
6924
6709
|
for (var X = 0, W = 0, J = arguments.length; W < J; W++) X += arguments[W].length;
|
|
@@ -7627,17 +7412,211 @@ class PluginBusyManagerImpl {
|
|
|
7627
7412
|
return this.busyPluginTasks;
|
|
7628
7413
|
}
|
|
7629
7414
|
}
|
|
7630
|
-
|
|
7415
|
+
var jsxRuntime = { exports: {} }, reactJsxRuntime_production = {};
|
|
7416
|
+
/**
|
|
7417
|
+
* @license React
|
|
7418
|
+
* react-jsx-runtime.production.js
|
|
7419
|
+
*
|
|
7420
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7421
|
+
*
|
|
7422
|
+
* This source code is licensed under the MIT license found in the
|
|
7423
|
+
* LICENSE file in the root directory of this source tree.
|
|
7424
|
+
*/
|
|
7425
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
7426
|
+
function jsxProd(X, W, J) {
|
|
7427
|
+
var te = null;
|
|
7428
|
+
if (J !== void 0 && (te = "" + J), W.key !== void 0 && (te = "" + W.key), "key" in W) {
|
|
7429
|
+
J = {};
|
|
7430
|
+
for (var re in W)
|
|
7431
|
+
re !== "key" && (J[re] = W[re]);
|
|
7432
|
+
} else J = W;
|
|
7433
|
+
return W = J.ref, {
|
|
7434
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
7435
|
+
type: X,
|
|
7436
|
+
key: te,
|
|
7437
|
+
ref: W !== void 0 ? W : null,
|
|
7438
|
+
props: J
|
|
7439
|
+
};
|
|
7440
|
+
}
|
|
7441
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
7442
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
7443
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
7444
|
+
jsxRuntime.exports = reactJsxRuntime_production;
|
|
7445
|
+
var jsxRuntimeExports = jsxRuntime.exports;
|
|
7446
|
+
class PrimariaInteractionService {
|
|
7447
|
+
}
|
|
7448
|
+
const ConfirmationMessage = ({ data: X }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: X }), defaultOptions$1 = {
|
|
7449
|
+
title: "Confirmació",
|
|
7450
|
+
showConfirmButton: !0,
|
|
7451
|
+
showCancelButton: !0,
|
|
7452
|
+
confirmButtonText: "Acceptar",
|
|
7453
|
+
cancelButtonText: "Cancel·lar",
|
|
7454
|
+
showCloseButton: !0,
|
|
7455
|
+
fullWidth: !1,
|
|
7456
|
+
fullCustomization: !1
|
|
7457
|
+
};
|
|
7458
|
+
class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
7459
|
+
confirm(W, J, te) {
|
|
7460
|
+
const re = { ...defaultOptions$1, ...te || {} };
|
|
7461
|
+
return new Promise((ne) => {
|
|
7462
|
+
const oe = document.createElement("div"), de = oe.attachShadow({ mode: "open" });
|
|
7463
|
+
document.body.appendChild(oe);
|
|
7464
|
+
const he = () => {
|
|
7465
|
+
const [pe, fe] = useState(!0), [ge, me] = useState(), [ve, be] = useState(!0), ye = useRef(null), we = useRef(null), Se = typeof J == "function" && J.prototype instanceof HTMLElement;
|
|
7466
|
+
useEffect(() => {
|
|
7467
|
+
const qe = ye.current, Ae = (De) => {
|
|
7468
|
+
De.preventDefault(), _e(!1);
|
|
7469
|
+
};
|
|
7470
|
+
return qe == null || qe.addEventListener("onModalClosed", Ae), () => {
|
|
7471
|
+
document.body.removeChild(oe);
|
|
7472
|
+
};
|
|
7473
|
+
}, []), useEffect(() => {
|
|
7474
|
+
if (Se && we.current) {
|
|
7475
|
+
const qe = we.current, Ae = new J();
|
|
7476
|
+
return Ae.data = W, Ae.setResult = me, Ae.setIsValid = be, Ae.confirm = () => ve && _e(!0), Ae.confirmResult = (De) => ve && Ce(De), Ae.cancel = () => _e(!1), qe.appendChild(Ae), () => {
|
|
7477
|
+
qe.removeChild(Ae);
|
|
7478
|
+
};
|
|
7479
|
+
}
|
|
7480
|
+
}, [J, W]);
|
|
7481
|
+
const _e = (qe) => {
|
|
7482
|
+
Le(ge, qe);
|
|
7483
|
+
}, Ce = (qe) => {
|
|
7484
|
+
Le(qe, !0);
|
|
7485
|
+
}, Le = (qe, Ae) => {
|
|
7486
|
+
fe(!1), setTimeout(() => {
|
|
7487
|
+
ne({
|
|
7488
|
+
result: Ae ? qe : void 0,
|
|
7489
|
+
confirmed: Ae
|
|
7490
|
+
}), document.body.removeChild(oe);
|
|
7491
|
+
}, 300);
|
|
7492
|
+
}, Pe = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary", Ie = () => re.state ? "alternative-dark" : "secondary", ze = () => Se ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: we }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7493
|
+
J,
|
|
7494
|
+
{
|
|
7495
|
+
data: W,
|
|
7496
|
+
setResult: me,
|
|
7497
|
+
setIsValid: be,
|
|
7498
|
+
confirm: () => ve && _e(!0),
|
|
7499
|
+
cancel: () => _e(!1)
|
|
7500
|
+
}
|
|
7501
|
+
);
|
|
7502
|
+
return re.fullCustomization ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal", hidden: !pe, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "dialog", children: ze() }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
7503
|
+
"dss-modal",
|
|
7504
|
+
{
|
|
7505
|
+
modalTitle: re.title,
|
|
7506
|
+
open: pe,
|
|
7507
|
+
fullWidth: re.fullWidth,
|
|
7508
|
+
ref: ye,
|
|
7509
|
+
hideCloseIcon: !re.showCloseButton,
|
|
7510
|
+
modalStyle: "padding:0px;",
|
|
7511
|
+
children: [
|
|
7512
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { slot: "body", children: ze() }),
|
|
7513
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
7514
|
+
"div",
|
|
7515
|
+
{
|
|
7516
|
+
className: "dss-modal-footer",
|
|
7517
|
+
slot: "footer",
|
|
7518
|
+
hidden: !re.showCancelButton && !re.showConfirmButton,
|
|
7519
|
+
children: [
|
|
7520
|
+
re.showCancelButton && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7521
|
+
"dss-button",
|
|
7522
|
+
{
|
|
7523
|
+
label: re.cancelButtonText,
|
|
7524
|
+
onClick: () => _e(!1),
|
|
7525
|
+
size: "md",
|
|
7526
|
+
variant: Ie()
|
|
7527
|
+
}
|
|
7528
|
+
),
|
|
7529
|
+
re.showConfirmButton && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
7530
|
+
"dss-button",
|
|
7531
|
+
{
|
|
7532
|
+
onClick: () => ve && _e(!0),
|
|
7533
|
+
label: re.confirmButtonText,
|
|
7534
|
+
disabled: !ve,
|
|
7535
|
+
size: "md",
|
|
7536
|
+
variant: Pe()
|
|
7537
|
+
}
|
|
7538
|
+
)
|
|
7539
|
+
]
|
|
7540
|
+
}
|
|
7541
|
+
)
|
|
7542
|
+
]
|
|
7543
|
+
}
|
|
7544
|
+
);
|
|
7545
|
+
}, ue = document.createElement("style");
|
|
7546
|
+
ue.textContent = `
|
|
7547
|
+
.modal {
|
|
7548
|
+
font-family: "Open Sans";
|
|
7549
|
+
display: block;
|
|
7550
|
+
position: fixed;
|
|
7551
|
+
z-index: 400;
|
|
7552
|
+
left: 0;
|
|
7553
|
+
top: 0;
|
|
7554
|
+
width: 100%;
|
|
7555
|
+
height: 100%;
|
|
7556
|
+
background-color: rgba(0, 0, 0, 0.65);
|
|
7557
|
+
|
|
7558
|
+
.dialog {
|
|
7559
|
+
display: flex;
|
|
7560
|
+
flex-direction: column;
|
|
7561
|
+
position: absolute;
|
|
7562
|
+
top: 50%;
|
|
7563
|
+
left: 50%;
|
|
7564
|
+
transform: translate(-50%, -50%);
|
|
7565
|
+
z-index: 21;
|
|
7566
|
+
background: #fff;
|
|
7567
|
+
border-radius: 16px;
|
|
7568
|
+
width: auto;
|
|
7569
|
+
height: auto;
|
|
7570
|
+
max-height: 95%;
|
|
7571
|
+
min-width: 400px;
|
|
7572
|
+
box-shadow:
|
|
7573
|
+
0px 0px 14px rgb(0 0 0 / 25%),
|
|
7574
|
+
0px 1px 10px rgb(0 0 0 / 22%);
|
|
7575
|
+
}
|
|
7576
|
+
}
|
|
7577
|
+
`, de.appendChild(ue), createRoot(de).render(/* @__PURE__ */ jsxRuntimeExports.jsx(he, {}));
|
|
7578
|
+
});
|
|
7579
|
+
}
|
|
7580
|
+
confirmMessage(W, J) {
|
|
7581
|
+
return this.confirm(W, ConfirmationMessage, J);
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7584
|
+
class PrimariaNotificationService {
|
|
7585
|
+
}
|
|
7586
|
+
class PrimariaNotificationServiceImpl extends PrimariaNotificationService {
|
|
7587
|
+
notify(W, J, te = 3e3) {
|
|
7588
|
+
const re = document.createElement("dss-toast");
|
|
7589
|
+
re.setAttribute("isshow", "true"), re.setAttribute("state", J), re.setAttribute("position", "bottom-left"), re.setAttribute("text", W), re.setAttribute("hasicon", "true"), re.setAttribute("duration", te.toString()), document.body.appendChild(re), setTimeout(() => {
|
|
7590
|
+
re.setAttribute("isshow", "false"), setTimeout(() => {
|
|
7591
|
+
re.remove();
|
|
7592
|
+
}, 300);
|
|
7593
|
+
}, te);
|
|
7594
|
+
}
|
|
7595
|
+
info(W, J) {
|
|
7596
|
+
this.notify(W, "info", J);
|
|
7597
|
+
}
|
|
7598
|
+
warning(W, J) {
|
|
7599
|
+
this.notify(W, "warning", J);
|
|
7600
|
+
}
|
|
7601
|
+
error(W, J) {
|
|
7602
|
+
this.notify(W, "error", J);
|
|
7603
|
+
}
|
|
7604
|
+
success(W, J) {
|
|
7605
|
+
this.notify(W, "success", J);
|
|
7606
|
+
}
|
|
7607
|
+
}
|
|
7608
|
+
const broker$1 = createBroker(), regionManager = x$5("primaria"), PrimariaRegionHost = y$f(regionManager), tokenManager = createTokenManager(), globalStateManager = createGlobalStateManager(broker$1), pluginBusyManager = new PluginBusyManagerImpl(), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), primariaApiFactory = (X) => ({
|
|
7631
7609
|
pluginInfo: X,
|
|
7632
7610
|
regionManager: createRegionManagerProxy(X, regionManager, broker$1),
|
|
7633
7611
|
httpClient: createHttpClient(tokenManager, broker$1),
|
|
7634
|
-
interactionManager: { ...createInteractionManager() },
|
|
7635
7612
|
broker: broker$1,
|
|
7636
7613
|
createLocaleManager: createLocaleManager(X.pluginId),
|
|
7637
7614
|
globalStateManager,
|
|
7638
7615
|
tokenManager,
|
|
7639
7616
|
ecapEventManager: createEcapEventManager(),
|
|
7640
|
-
pluginBusyManager
|
|
7617
|
+
pluginBusyManager,
|
|
7618
|
+
interactionService,
|
|
7619
|
+
notificationService
|
|
7641
7620
|
}), shellApi = primariaApiFactory({ pluginId: "primaria-shell" }), styles$f = ":host{width:100%;overflow:hidden}#main-switcher{display:inherit}.container{width:100%;height:100%;display:flex;flex-direction:column;background:#fff}.main-container{min-height:1px;height:100%;display:flex}.main-container .sidebar{padding-inline:16px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:var(--color-primary-700);width:40px;height:100%;color:#fff}.main-container .sidebar .top-content{padding-top:24px;padding-bottom:24px;border-radius:8px}.main-container .sidebar .icon{margin-left:8px}.main-container .sidebar #menu-region-container{min-height:1px;height:100%;width:100%;display:flex;flex-direction:column;gap:4px}.main-container .sidebar .bottom-content{display:flex;flex-direction:column;gap:24px;width:100%}.main-container .sidebar .bottom-content .bottom-content-first{display:flex;flex-direction:column;gap:4px}.main-container .sidebar #quick-actions-region-container{width:100%}.main-container .sidebar[expanded]{width:252px;align-items:flex-start}.main-container .sidebar .create-button-closed{cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;width:40px;height:40px;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:background-color .3s ease}.main-container .sidebar .create-button-closed:hover{background-color:var(--color-primary-900);color:#fff}.main-container .sidebar .create-button-opened{padding:1px;cursor:pointer;background-color:#f0f0f0;color:var(--color-primary-700);border-radius:8px;gap:8px;font-weight:600;width:220px;height:40px;display:flex;flex-direction:row;align-items:center;transition:background-color .3s ease}.main-container .sidebar .create-button-opened:hover{background-color:var(--color-primary-900);color:#fff}.main-container .content{display:flex;height:100%;width:100%}.main-container #main-region-container{min-height:1px;height:100%;flex:1}.main-container #floating-region-container{position:fixed;z-index:300}.footer{display:flex;height:48px;padding:12px 24px}.footer .footer-logo{align-self:center;display:flex;gap:16px}.divider-opened{width:220px}.divider-closed{width:40px}.toggle-button{margin-bottom:24px}";
|
|
7642
7621
|
let t$h = "";
|
|
7643
7622
|
function f$h() {
|
|
@@ -8714,8 +8693,8 @@ var toPaddingObject = function(W, J) {
|
|
|
8714
8693
|
function arrow(X) {
|
|
8715
8694
|
var W, J = X.state, te = X.name, re = X.options, ne = J.elements.arrow, oe = J.modifiersData.popperOffsets, de = getBasePlacement(J.placement), he = getMainAxisFromPlacement(de), ue = [left, right].indexOf(de) >= 0, ce = ue ? "height" : "width";
|
|
8716
8695
|
if (!(!ne || !oe)) {
|
|
8717
|
-
var pe = toPaddingObject(re.padding, J), fe = getLayoutRect(ne), ge = he === "y" ? top : left, me = he === "y" ? bottom : right, ve = J.rects.reference[ce] + J.rects.reference[he] - oe[he] - J.rects.popper[ce], be = oe[he] - J.rects.reference[he], ye = getOffsetParent(ne), we = ye ? he === "y" ? ye.clientHeight || 0 : ye.clientWidth || 0 : 0, Se = ve / 2 - be / 2, _e = pe[ge], Ce = we - fe[ce] - pe[me], Le = we / 2 - fe[ce] / 2 + Se,
|
|
8718
|
-
J.modifiersData[te] = (W = {}, W[Ie] =
|
|
8696
|
+
var pe = toPaddingObject(re.padding, J), fe = getLayoutRect(ne), ge = he === "y" ? top : left, me = he === "y" ? bottom : right, ve = J.rects.reference[ce] + J.rects.reference[he] - oe[he] - J.rects.popper[ce], be = oe[he] - J.rects.reference[he], ye = getOffsetParent(ne), we = ye ? he === "y" ? ye.clientHeight || 0 : ye.clientWidth || 0 : 0, Se = ve / 2 - be / 2, _e = pe[ge], Ce = we - fe[ce] - pe[me], Le = we / 2 - fe[ce] / 2 + Se, Pe = within(_e, Le, Ce), Ie = he;
|
|
8697
|
+
J.modifiersData[te] = (W = {}, W[Ie] = Pe, W.centerOffset = Pe - Le, W);
|
|
8719
8698
|
}
|
|
8720
8699
|
}
|
|
8721
8700
|
function effect$1(X) {
|
|
@@ -8758,22 +8737,22 @@ function mapToStyles(X) {
|
|
|
8758
8737
|
ge = be.x, ve = be.y;
|
|
8759
8738
|
var ye = oe.hasOwnProperty("x"), we = oe.hasOwnProperty("y"), Se = left, _e = top, Ce = window;
|
|
8760
8739
|
if (ue) {
|
|
8761
|
-
var Le = getOffsetParent(J),
|
|
8762
|
-
if (Le === getWindow(J) && (Le = getDocumentElement(J), getComputedStyle(Le).position !== "static" && de === "absolute" && (
|
|
8740
|
+
var Le = getOffsetParent(J), Pe = "clientHeight", Ie = "clientWidth";
|
|
8741
|
+
if (Le === getWindow(J) && (Le = getDocumentElement(J), getComputedStyle(Le).position !== "static" && de === "absolute" && (Pe = "scrollHeight", Ie = "scrollWidth")), Le = Le, re === top || (re === left || re === right) && ne === end) {
|
|
8763
8742
|
_e = bottom;
|
|
8764
8743
|
var ze = pe && Le === Ce && Ce.visualViewport ? Ce.visualViewport.height : (
|
|
8765
8744
|
// $FlowFixMe[prop-missing]
|
|
8766
|
-
Le[
|
|
8745
|
+
Le[Pe]
|
|
8767
8746
|
);
|
|
8768
8747
|
ve -= ze - te.height, ve *= he ? 1 : -1;
|
|
8769
8748
|
}
|
|
8770
8749
|
if (re === left || (re === top || re === bottom) && ne === end) {
|
|
8771
8750
|
Se = right;
|
|
8772
|
-
var
|
|
8751
|
+
var qe = pe && Le === Ce && Ce.visualViewport ? Ce.visualViewport.width : (
|
|
8773
8752
|
// $FlowFixMe[prop-missing]
|
|
8774
8753
|
Le[Ie]
|
|
8775
8754
|
);
|
|
8776
|
-
ge -=
|
|
8755
|
+
ge -= qe - te.width, ge *= he ? 1 : -1;
|
|
8777
8756
|
}
|
|
8778
8757
|
}
|
|
8779
8758
|
var Ae = Object.assign({
|
|
@@ -8989,12 +8968,12 @@ function computeOffsets(X) {
|
|
|
8989
8968
|
}
|
|
8990
8969
|
function detectOverflow(X, W) {
|
|
8991
8970
|
W === void 0 && (W = {});
|
|
8992
|
-
var J = W, te = J.placement, re = te === void 0 ? X.placement : te, ne = J.strategy, oe = ne === void 0 ? X.strategy : ne, de = J.boundary, he = de === void 0 ? clippingParents : de, ue = J.rootBoundary, ce = ue === void 0 ? viewport : ue, pe = J.elementContext, fe = pe === void 0 ? popper : pe, ge = J.altBoundary, me = ge === void 0 ? !1 : ge, ve = J.padding, be = ve === void 0 ? 0 : ve, ye = mergePaddingObject(typeof be != "number" ? be : expandToHashMap(be, basePlacements)), we = fe === popper ? reference : popper, Se = X.rects.popper, _e = X.elements[me ? we : fe], Ce = getClippingRect(isElement(_e) ? _e : _e.contextElement || getDocumentElement(X.elements.popper), he, ce, oe), Le = getBoundingClientRect(X.elements.reference),
|
|
8971
|
+
var J = W, te = J.placement, re = te === void 0 ? X.placement : te, ne = J.strategy, oe = ne === void 0 ? X.strategy : ne, de = J.boundary, he = de === void 0 ? clippingParents : de, ue = J.rootBoundary, ce = ue === void 0 ? viewport : ue, pe = J.elementContext, fe = pe === void 0 ? popper : pe, ge = J.altBoundary, me = ge === void 0 ? !1 : ge, ve = J.padding, be = ve === void 0 ? 0 : ve, ye = mergePaddingObject(typeof be != "number" ? be : expandToHashMap(be, basePlacements)), we = fe === popper ? reference : popper, Se = X.rects.popper, _e = X.elements[me ? we : fe], Ce = getClippingRect(isElement(_e) ? _e : _e.contextElement || getDocumentElement(X.elements.popper), he, ce, oe), Le = getBoundingClientRect(X.elements.reference), Pe = computeOffsets({
|
|
8993
8972
|
reference: Le,
|
|
8994
8973
|
element: Se,
|
|
8995
8974
|
strategy: "absolute",
|
|
8996
8975
|
placement: re
|
|
8997
|
-
}), Ie = rectToClientRect(Object.assign({}, Se,
|
|
8976
|
+
}), Ie = rectToClientRect(Object.assign({}, Se, Pe)), ze = fe === popper ? Ie : Le, qe = {
|
|
8998
8977
|
top: Ce.top - ze.top + ye.top,
|
|
8999
8978
|
bottom: ze.bottom - Ce.bottom + ye.bottom,
|
|
9000
8979
|
left: Ce.left - ze.left + ye.left,
|
|
@@ -9002,12 +8981,12 @@ function detectOverflow(X, W) {
|
|
|
9002
8981
|
}, Ae = X.modifiersData.offset;
|
|
9003
8982
|
if (fe === popper && Ae) {
|
|
9004
8983
|
var De = Ae[re];
|
|
9005
|
-
Object.keys(
|
|
8984
|
+
Object.keys(qe).forEach(function(Me) {
|
|
9006
8985
|
var Be = [right, bottom].indexOf(Me) >= 0 ? 1 : -1, Ve = [top, bottom].indexOf(Me) >= 0 ? "y" : "x";
|
|
9007
|
-
|
|
8986
|
+
qe[Me] += De[Ve] * Be;
|
|
9008
8987
|
});
|
|
9009
8988
|
}
|
|
9010
|
-
return
|
|
8989
|
+
return qe;
|
|
9011
8990
|
}
|
|
9012
8991
|
function computeAutoPlacement(X, W) {
|
|
9013
8992
|
W === void 0 && (W = {});
|
|
@@ -9047,8 +9026,8 @@ function flip(X) {
|
|
|
9047
9026
|
flipVariations: me,
|
|
9048
9027
|
allowedAutoPlacements: ve
|
|
9049
9028
|
}) : Ze);
|
|
9050
|
-
}, []), Ce = W.rects.reference, Le = W.rects.popper,
|
|
9051
|
-
var Ae = _e[
|
|
9029
|
+
}, []), Ce = W.rects.reference, Le = W.rects.popper, Pe = /* @__PURE__ */ new Map(), Ie = !0, ze = _e[0], qe = 0; qe < _e.length; qe++) {
|
|
9030
|
+
var Ae = _e[qe], De = getBasePlacement(Ae), Me = getVariation(Ae) === start, Be = [top, bottom].indexOf(De) >= 0, Ve = Be ? "width" : "height", Ye = detectOverflow(W, {
|
|
9052
9031
|
placement: Ae,
|
|
9053
9032
|
boundary: ce,
|
|
9054
9033
|
rootBoundary: pe,
|
|
@@ -9063,12 +9042,12 @@ function flip(X) {
|
|
|
9063
9042
|
ze = Ae, Ie = !1;
|
|
9064
9043
|
break;
|
|
9065
9044
|
}
|
|
9066
|
-
|
|
9045
|
+
Pe.set(Ae, Xe);
|
|
9067
9046
|
}
|
|
9068
9047
|
if (Ie)
|
|
9069
9048
|
for (var Ge = me ? 3 : 1, Ne = function(Ze) {
|
|
9070
9049
|
var je = _e.find(function(Ke) {
|
|
9071
|
-
var it =
|
|
9050
|
+
var it = Pe.get(Ke);
|
|
9072
9051
|
if (it)
|
|
9073
9052
|
return it.slice(0, Ze).every(function(nt) {
|
|
9074
9053
|
return nt;
|
|
@@ -9182,9 +9161,9 @@ function preventOverflow(X) {
|
|
|
9182
9161
|
rootBoundary: ue,
|
|
9183
9162
|
padding: pe,
|
|
9184
9163
|
altBoundary: ce
|
|
9185
|
-
}), ye = getBasePlacement(W.placement), we = getVariation(W.placement), Se = !we, _e = getMainAxisFromPlacement(ye), Ce = getAltAxis(_e), Le = W.modifiersData.popperOffsets,
|
|
9164
|
+
}), ye = getBasePlacement(W.placement), we = getVariation(W.placement), Se = !we, _e = getMainAxisFromPlacement(ye), Ce = getAltAxis(_e), Le = W.modifiersData.popperOffsets, Pe = W.rects.reference, Ie = W.rects.popper, ze = typeof ve == "function" ? ve(Object.assign({}, W.rects, {
|
|
9186
9165
|
placement: W.placement
|
|
9187
|
-
})) : ve,
|
|
9166
|
+
})) : ve, qe = typeof ze == "number" ? {
|
|
9188
9167
|
mainAxis: ze,
|
|
9189
9168
|
altAxis: ze
|
|
9190
9169
|
} : Object.assign({
|
|
@@ -9196,14 +9175,14 @@ function preventOverflow(X) {
|
|
|
9196
9175
|
};
|
|
9197
9176
|
if (Le) {
|
|
9198
9177
|
if (ne) {
|
|
9199
|
-
var Me, Be = _e === "y" ? top : left, Ve = _e === "y" ? bottom : right, Ye = _e === "y" ? "height" : "width", Je = Le[_e], vt = Je + be[Be], Xe = Je - be[Ve], Ge = ge ? -Ie[Ye] / 2 : 0, Ne = we === start ?
|
|
9178
|
+
var Me, Be = _e === "y" ? top : left, Ve = _e === "y" ? bottom : right, Ye = _e === "y" ? "height" : "width", Je = Le[_e], vt = Je + be[Be], Xe = Je - be[Ve], Ge = ge ? -Ie[Ye] / 2 : 0, Ne = we === start ? Pe[Ye] : Ie[Ye], Ue = we === start ? -Ie[Ye] : -Pe[Ye], We = W.elements.arrow, Qe = ge && We ? getLayoutRect(We) : {
|
|
9200
9179
|
width: 0,
|
|
9201
9180
|
height: 0
|
|
9202
|
-
}, Ze = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), je = Ze[Be], Ke = Ze[Ve], it = within(0,
|
|
9181
|
+
}, Ze = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), je = Ze[Be], Ke = Ze[Ve], it = within(0, Pe[Ye], Qe[Ye]), nt = Se ? Pe[Ye] / 2 - Ge - it - je - qe.mainAxis : Ne - it - je - qe.mainAxis, bt = Se ? -Pe[Ye] / 2 + Ge + it + Ke + qe.mainAxis : Ue + it + Ke + qe.mainAxis, Ct = W.elements.arrow && getOffsetParent(W.elements.arrow), Dt = Ct ? _e === "y" ? Ct.clientTop || 0 : Ct.clientLeft || 0 : 0, Lt = (Me = Ae == null ? void 0 : Ae[_e]) != null ? Me : 0, Bt = Je + nt - Lt - Dt, jt = Je + bt - Lt, dr = within(ge ? min(vt, Bt) : vt, Je, ge ? max(Xe, jt) : Xe);
|
|
9203
9182
|
Le[_e] = dr, De[_e] = dr - Je;
|
|
9204
9183
|
}
|
|
9205
9184
|
if (de) {
|
|
9206
|
-
var rr, gt = _e === "x" ? top : left, mt = _e === "x" ? bottom : right, xt = Le[Ce], St = Ce === "y" ? "height" : "width", $t = xt + be[gt], Ft = xt - be[mt], Nt = [top, left].indexOf(ye) !== -1, zt = (rr = Ae == null ? void 0 : Ae[Ce]) != null ? rr : 0, or = Nt ? $t : xt -
|
|
9185
|
+
var rr, gt = _e === "x" ? top : left, mt = _e === "x" ? bottom : right, xt = Le[Ce], St = Ce === "y" ? "height" : "width", $t = xt + be[gt], Ft = xt - be[mt], Nt = [top, left].indexOf(ye) !== -1, zt = (rr = Ae == null ? void 0 : Ae[Ce]) != null ? rr : 0, or = Nt ? $t : xt - Pe[St] - Ie[St] - zt + qe.altAxis, pr = Nt ? xt + Pe[St] + Ie[St] - zt - qe.altAxis : Ft, Zt = ge && Nt ? withinMaxClamp(or, xt, pr) : within(ge ? or : $t, xt, ge ? pr : Ft);
|
|
9207
9186
|
Le[Ce] = Zt, De[Ce] = Zt - xt;
|
|
9208
9187
|
}
|
|
9209
9188
|
W.modifiersData[te] = De;
|
|
@@ -9348,15 +9327,15 @@ function popperGenerator(X) {
|
|
|
9348
9327
|
ce.rects = {
|
|
9349
9328
|
reference: getCompositeRect(we, getOffsetParent(Se), ce.options.strategy === "fixed"),
|
|
9350
9329
|
popper: getLayoutRect(Se)
|
|
9351
|
-
}, ce.reset = !1, ce.placement = ce.options.placement, ce.orderedModifiers.forEach(function(
|
|
9352
|
-
return ce.modifiersData[
|
|
9330
|
+
}, ce.reset = !1, ce.placement = ce.options.placement, ce.orderedModifiers.forEach(function(qe) {
|
|
9331
|
+
return ce.modifiersData[qe.name] = Object.assign({}, qe.data);
|
|
9353
9332
|
});
|
|
9354
9333
|
for (var _e = 0; _e < ce.orderedModifiers.length; _e++) {
|
|
9355
9334
|
if (ce.reset === !0) {
|
|
9356
9335
|
ce.reset = !1, _e = -1;
|
|
9357
9336
|
continue;
|
|
9358
9337
|
}
|
|
9359
|
-
var Ce = ce.orderedModifiers[_e], Le = Ce.fn,
|
|
9338
|
+
var Ce = ce.orderedModifiers[_e], Le = Ce.fn, Pe = Ce.options, Ie = Pe === void 0 ? {} : Pe, ze = Ce.name;
|
|
9360
9339
|
typeof Le == "function" && (ce = Le({
|
|
9361
9340
|
state: ce,
|
|
9362
9341
|
options: Ie,
|
|
@@ -9940,6 +9919,14 @@ function* oo(X, W) {
|
|
|
9940
9919
|
for (const te of X) yield W(te, J++);
|
|
9941
9920
|
}
|
|
9942
9921
|
}
|
|
9922
|
+
/**
|
|
9923
|
+
* @license
|
|
9924
|
+
* Copyright 2021 Google LLC
|
|
9925
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9926
|
+
*/
|
|
9927
|
+
function nn(X, W, J) {
|
|
9928
|
+
return X ? W(X) : J == null ? void 0 : J(X);
|
|
9929
|
+
}
|
|
9943
9930
|
const i$o = er`dss-icon${tr(f$h())}`, u$n = (X) => ke`
|
|
9944
9931
|
<div class="dss-breadcrumb" role="navigation" aria-label="Ruta de pàgina">
|
|
9945
9932
|
${oo(
|
|
@@ -12802,15 +12789,15 @@ function parse(X, W, J, te) {
|
|
|
12802
12789
|
`The format string mustn't contain \`${Se}\` and any other token at the same time`
|
|
12803
12790
|
);
|
|
12804
12791
|
pe.push({ token: _e, fullToken: Se });
|
|
12805
|
-
const
|
|
12792
|
+
const Pe = Ce.run(
|
|
12806
12793
|
X,
|
|
12807
12794
|
Se,
|
|
12808
12795
|
ne.match,
|
|
12809
12796
|
he
|
|
12810
12797
|
);
|
|
12811
|
-
if (!
|
|
12798
|
+
if (!Pe)
|
|
12812
12799
|
return constructFrom(J, NaN);
|
|
12813
|
-
ue.push(
|
|
12800
|
+
ue.push(Pe.setter), X = Pe.rest;
|
|
12814
12801
|
} else {
|
|
12815
12802
|
if (_e.match(unescapedLatinCharacterRegExp))
|
|
12816
12803
|
throw new RangeError(
|
|
@@ -14013,6 +14000,12 @@ s$e([
|
|
|
14013
14000
|
s$e([
|
|
14014
14001
|
r$G()
|
|
14015
14002
|
], l$i.prototype, "tabSelected");
|
|
14003
|
+
/**
|
|
14004
|
+
* @license
|
|
14005
|
+
* Copyright 2018 Google LLC
|
|
14006
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
14007
|
+
*/
|
|
14008
|
+
const to = (X) => X ?? D$1;
|
|
14016
14009
|
function n$p(X) {
|
|
14017
14010
|
X && X.focus();
|
|
14018
14011
|
}
|
|
@@ -14799,7 +14792,7 @@ l$h([
|
|
|
14799
14792
|
n$v({ type: String })
|
|
14800
14793
|
], o$v.prototype, "tableInfo", 2);
|
|
14801
14794
|
const O$1 = er`dss-calendar${tr(f$h())}`, e$s = er`dss-icon${tr(f$h())}`, Z = (X) => {
|
|
14802
|
-
var W, J, te, re, ne, oe, de, he, ue, ce, pe, fe, ge, me, ve, be, ye, we, Se, _e, Ce, Le,
|
|
14795
|
+
var W, J, te, re, ne, oe, de, he, ue, ce, pe, fe, ge, me, ve, be, ye, we, Se, _e, Ce, Le, Pe, Ie, ze, qe, Ae, De, Me;
|
|
14803
14796
|
const Be = {
|
|
14804
14797
|
"dss-datepicker-range--sm": X.inputSize !== "lg"
|
|
14805
14798
|
}, Ve = {
|
|
@@ -14835,8 +14828,8 @@ const O$1 = er`dss-calendar${tr(f$h())}`, e$s = er`dss-icon${tr(f$h())}`, Z = (X
|
|
|
14835
14828
|
// 'dss-input-group--no-label': Boolean(!component._label),
|
|
14836
14829
|
}, Ge = {
|
|
14837
14830
|
"dss-calendar": !0,
|
|
14838
|
-
"dss-calendar--visible": X._showCalendar && !((
|
|
14839
|
-
"dss-calendar--disabled": ((ze = X._inputRangeStart) == null ? void 0 : ze.disabled) && ((
|
|
14831
|
+
"dss-calendar--visible": X._showCalendar && !((Pe = X._inputRangeStart) != null && Pe.readOnly) && !((Ie = X._inputRangeEnd) != null && Ie.readOnly),
|
|
14832
|
+
"dss-calendar--disabled": ((ze = X._inputRangeStart) == null ? void 0 : ze.disabled) && ((qe = X._inputRangeEnd) == null ? void 0 : qe.disabled),
|
|
14840
14833
|
"dss-calendar--sm": X.inputSize !== "lg"
|
|
14841
14834
|
};
|
|
14842
14835
|
return ke`
|
|
@@ -19932,14 +19925,14 @@ let d$8 = class extends h$n {
|
|
|
19932
19925
|
></span>`, me = (Se) => {
|
|
19933
19926
|
this._manuallySelect(Se, J.value);
|
|
19934
19927
|
}, ve = (Se) => {
|
|
19935
|
-
var _e, Ce, Le,
|
|
19928
|
+
var _e, Ce, Le, Pe;
|
|
19936
19929
|
if (Se.key === "Enter" || Se.key === " ")
|
|
19937
19930
|
this._manuallySelect(Se, J.value);
|
|
19938
19931
|
else if (Se.key === "ArrowUp") {
|
|
19939
19932
|
const Ie = Se.target, ze = (Ce = (_e = Ie == null ? void 0 : Ie.closest(".dss-form-field")) == null ? void 0 : _e.previousElementSibling) == null ? void 0 : Ce.querySelector("input");
|
|
19940
19933
|
ze == null || ze.focus();
|
|
19941
19934
|
} else if (Se.key === "ArrowDown") {
|
|
19942
|
-
const Ie = Se.target, ze = (
|
|
19935
|
+
const Ie = Se.target, ze = (Pe = (Le = Ie == null ? void 0 : Ie.closest(".dss-form-field")) == null ? void 0 : Le.nextElementSibling) == null ? void 0 : Pe.querySelector("input");
|
|
19943
19936
|
ze == null || ze.focus();
|
|
19944
19937
|
}
|
|
19945
19938
|
}, [be, ye] = this._getIndexSubtext(J.label);
|
|
@@ -28858,6 +28851,10 @@ const initializeLocalization$1 = async (X) => {
|
|
|
28858
28851
|
clinicalMonitoring: {
|
|
28859
28852
|
title: "Seguiment clínic"
|
|
28860
28853
|
},
|
|
28854
|
+
errors: {
|
|
28855
|
+
session: "Hi ha hagut un error amb la sessió. Siusplau, tanca i torna a obrir l'aplicació.",
|
|
28856
|
+
invalidPatient: "El pacient actual no és vàlid. Siusplau, tanca i torna a obrir l'aplicació."
|
|
28857
|
+
},
|
|
28861
28858
|
header: {
|
|
28862
28859
|
workCenter: "Centre treball",
|
|
28863
28860
|
role: "Rol",
|
|
@@ -29406,78 +29403,6 @@ const getPatientCip = async () => await shellApi.broker.send("get_patient_cip"),
|
|
|
29406
29403
|
}, activateDefaultView = () => {
|
|
29407
29404
|
shellApi.regionManager.activateMainView(clinicalMonitoringId);
|
|
29408
29405
|
};
|
|
29409
|
-
var __defProp$i = Object.defineProperty, __getOwnPropDesc$i = Object.getOwnPropertyDescriptor, __decorateClass$i = (X, W, J, te) => {
|
|
29410
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$i(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
29411
|
-
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
29412
|
-
return te && re && __defProp$i(W, J, re), re;
|
|
29413
|
-
};
|
|
29414
|
-
let PrimariaShell = class extends PrimariaRegionHost(h$n) {
|
|
29415
|
-
constructor() {
|
|
29416
|
-
super(...arguments), this.sidebarExpanded = !1, this.viewSelected = shellViews.shell, this.subscriptions = [];
|
|
29417
|
-
}
|
|
29418
|
-
render() {
|
|
29419
|
-
return ke$1`${template$g(this)}`;
|
|
29420
|
-
}
|
|
29421
|
-
connectedCallback() {
|
|
29422
|
-
super.connectedCallback(), this._subscribeEvents();
|
|
29423
|
-
}
|
|
29424
|
-
disconnectedCallback() {
|
|
29425
|
-
super.disconnectedCallback(), this._unsubscribeEvents();
|
|
29426
|
-
}
|
|
29427
|
-
firstUpdated() {
|
|
29428
|
-
super.firstUpdated(), setTimeout(() => {
|
|
29429
|
-
activateDefaultView();
|
|
29430
|
-
}, 300);
|
|
29431
|
-
}
|
|
29432
|
-
_toggleSidebar() {
|
|
29433
|
-
this.sidebarExpanded = !this.sidebarExpanded;
|
|
29434
|
-
}
|
|
29435
|
-
_subscribeEvents() {
|
|
29436
|
-
const X = shellApi.broker.subscribe(
|
|
29437
|
-
shellEvents.appCrashed,
|
|
29438
|
-
(W) => {
|
|
29439
|
-
this.viewSelected = shellViews.error, this.error = W;
|
|
29440
|
-
}
|
|
29441
|
-
);
|
|
29442
|
-
this.subscriptions.push(X);
|
|
29443
|
-
}
|
|
29444
|
-
_unsubscribeEvents() {
|
|
29445
|
-
this.subscriptions.forEach((X) => X.dispose());
|
|
29446
|
-
}
|
|
29447
|
-
};
|
|
29448
|
-
PrimariaShell.styles = i$w`
|
|
29449
|
-
${r$J(styles$f)}
|
|
29450
|
-
`;
|
|
29451
|
-
__decorateClass$i([
|
|
29452
|
-
s$w({ targetId: "menu-region-container", name: shellRegions.navigationMenu })
|
|
29453
|
-
], PrimariaShell.prototype, "navigationMenuRegion", 2);
|
|
29454
|
-
__decorateClass$i([
|
|
29455
|
-
s$w({ targetId: "main-region-container", name: shellRegions.main })
|
|
29456
|
-
], PrimariaShell.prototype, "mainRegion", 2);
|
|
29457
|
-
__decorateClass$i([
|
|
29458
|
-
s$w({ targetId: "quick-actions-region-container", name: shellRegions.quickActions })
|
|
29459
|
-
], PrimariaShell.prototype, "quickActionsRegion", 2);
|
|
29460
|
-
__decorateClass$i([
|
|
29461
|
-
s$w({ targetId: "floating-region-container", name: shellRegions.floating })
|
|
29462
|
-
], PrimariaShell.prototype, "floatingRegion", 2);
|
|
29463
|
-
__decorateClass$i([
|
|
29464
|
-
s$w({
|
|
29465
|
-
targetId: "navigation-menu-lower-region-container",
|
|
29466
|
-
name: shellRegions.navigationLowerLeftMenu
|
|
29467
|
-
})
|
|
29468
|
-
], PrimariaShell.prototype, "navLowerLeftMenu", 2);
|
|
29469
|
-
__decorateClass$i([
|
|
29470
|
-
r$G()
|
|
29471
|
-
], PrimariaShell.prototype, "sidebarExpanded", 2);
|
|
29472
|
-
__decorateClass$i([
|
|
29473
|
-
r$G()
|
|
29474
|
-
], PrimariaShell.prototype, "viewSelected", 2);
|
|
29475
|
-
__decorateClass$i([
|
|
29476
|
-
r$G()
|
|
29477
|
-
], PrimariaShell.prototype, "error", 2);
|
|
29478
|
-
PrimariaShell = __decorateClass$i([
|
|
29479
|
-
t$k("primaria-shell")
|
|
29480
|
-
], PrimariaShell);
|
|
29481
29406
|
var NAMED_TAG = "named", NAME_TAG = "name", UNMANAGED_TAG = "unmanaged", OPTIONAL_TAG = "optional", INJECT_TAG = "inject", MULTI_INJECT_TAG = "multi_inject", TAGGED = "inversify:tagged", TAGGED_PROP = "inversify:tagged_props", PARAM_TYPES = "inversify:paramtypes", DESIGN_PARAM_TYPES = "design:paramtypes", POST_CONSTRUCT = "post_construct", PRE_DESTROY = "pre_destroy";
|
|
29482
29407
|
function getNonCustomTagKeys() {
|
|
29483
29408
|
return [
|
|
@@ -31488,10 +31413,6 @@ const container$1 = new Container(), registerDep = (X) => {
|
|
|
31488
31413
|
W.isBound(te) && W.unbind(te), re.dispose();
|
|
31489
31414
|
}
|
|
31490
31415
|
};
|
|
31491
|
-
}, disposeShell = () => {
|
|
31492
|
-
teardownFeatures();
|
|
31493
|
-
}, raiseCloseEvent = () => {
|
|
31494
|
-
shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
|
|
31495
31416
|
}, registerRequest = (X, W) => (J, te) => {
|
|
31496
31417
|
W.bind(te).to(te).inTransientScope(), injectable()(te);
|
|
31497
31418
|
const re = X.broker.registerRequest(J, (ne) => W.get(te).handle(ne));
|
|
@@ -32329,18 +32250,18 @@ function createAction(X, W) {
|
|
|
32329
32250
|
}
|
|
32330
32251
|
return J.toString = () => `${X}`, J.type = X, J.match = (te) => isAction(te) && te.type === X, J;
|
|
32331
32252
|
}
|
|
32332
|
-
var Tuple = class
|
|
32253
|
+
var Tuple = class Cr extends Array {
|
|
32333
32254
|
constructor(...W) {
|
|
32334
|
-
super(...W), Object.setPrototypeOf(this,
|
|
32255
|
+
super(...W), Object.setPrototypeOf(this, Cr.prototype);
|
|
32335
32256
|
}
|
|
32336
32257
|
static get [Symbol.species]() {
|
|
32337
|
-
return
|
|
32258
|
+
return Cr;
|
|
32338
32259
|
}
|
|
32339
32260
|
concat(...W) {
|
|
32340
32261
|
return super.concat.apply(this, W);
|
|
32341
32262
|
}
|
|
32342
32263
|
prepend(...W) {
|
|
32343
|
-
return W.length === 1 && Array.isArray(W[0]) ? new
|
|
32264
|
+
return W.length === 1 && Array.isArray(W[0]) ? new Cr(...W[0].concat(this)) : new Cr(...W.concat(this));
|
|
32344
32265
|
}
|
|
32345
32266
|
};
|
|
32346
32267
|
function freezeDraftable(X) {
|
|
@@ -32551,14 +32472,14 @@ function buildCreateSlice({
|
|
|
32551
32472
|
...Se,
|
|
32552
32473
|
...ue.sliceCaseReducersByType
|
|
32553
32474
|
};
|
|
32554
|
-
return createReducer(re.initialState, (
|
|
32475
|
+
return createReducer(re.initialState, (Pe) => {
|
|
32555
32476
|
for (let Ie in Le)
|
|
32556
|
-
|
|
32477
|
+
Pe.addCase(Ie, Le[Ie]);
|
|
32557
32478
|
for (let Ie of ue.sliceMatchers)
|
|
32558
|
-
|
|
32479
|
+
Pe.addMatcher(Ie.matcher, Ie.reducer);
|
|
32559
32480
|
for (let Ie of _e)
|
|
32560
|
-
|
|
32561
|
-
Ce &&
|
|
32481
|
+
Pe.addMatcher(Ie.matcher, Ie.reducer);
|
|
32482
|
+
Ce && Pe.addDefaultCase(Ce);
|
|
32562
32483
|
});
|
|
32563
32484
|
}
|
|
32564
32485
|
const fe = (Se) => Se, ge = /* @__PURE__ */ new Map();
|
|
@@ -32570,16 +32491,16 @@ function buildCreateSlice({
|
|
|
32570
32491
|
return me || (me = pe()), me.getInitialState();
|
|
32571
32492
|
}
|
|
32572
32493
|
function ye(Se, _e = !1) {
|
|
32573
|
-
function Ce(
|
|
32574
|
-
let Ie =
|
|
32494
|
+
function Ce(Pe) {
|
|
32495
|
+
let Ie = Pe[Se];
|
|
32575
32496
|
return typeof Ie > "u" && _e && (Ie = be()), Ie;
|
|
32576
32497
|
}
|
|
32577
|
-
function Le(
|
|
32498
|
+
function Le(Pe = fe) {
|
|
32578
32499
|
const Ie = getOrInsertComputed(ge, _e, () => /* @__PURE__ */ new WeakMap());
|
|
32579
|
-
return getOrInsertComputed(Ie,
|
|
32500
|
+
return getOrInsertComputed(Ie, Pe, () => {
|
|
32580
32501
|
const ze = {};
|
|
32581
|
-
for (const [
|
|
32582
|
-
ze[
|
|
32502
|
+
for (const [qe, Ae] of Object.entries(re.selectors ?? {}))
|
|
32503
|
+
ze[qe] = wrapSelector(Ae, Pe, be, _e);
|
|
32583
32504
|
return ze;
|
|
32584
32505
|
});
|
|
32585
32506
|
}
|
|
@@ -32924,17 +32845,17 @@ const container = new Container(), { lazyInject } = getDecorators(container), bi
|
|
|
32924
32845
|
}, unbindDeps = () => {
|
|
32925
32846
|
container.unbind(TYPES.primaryApi), container.unbind(TYPES.store);
|
|
32926
32847
|
}, addAsyncHistoryItemsCommand = "inject_async_history_items_request";
|
|
32927
|
-
var __defProp$
|
|
32928
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
32848
|
+
var __defProp$i = Object.defineProperty, __getOwnPropDesc$i = Object.getOwnPropertyDescriptor, __decorateClass$i = (X, W, J, te) => {
|
|
32849
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$i(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
32929
32850
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
32930
|
-
return te && re && __defProp$
|
|
32851
|
+
return te && re && __defProp$i(W, J, re), re;
|
|
32931
32852
|
}, __decorateParam$3 = (X, W) => (J, te) => W(J, te, X);
|
|
32932
32853
|
let StoreBaseHandler = class {
|
|
32933
32854
|
constructor(X) {
|
|
32934
32855
|
this.store = X;
|
|
32935
32856
|
}
|
|
32936
32857
|
};
|
|
32937
|
-
StoreBaseHandler = __decorateClass$
|
|
32858
|
+
StoreBaseHandler = __decorateClass$i([
|
|
32938
32859
|
injectable(),
|
|
32939
32860
|
__decorateParam$3(0, inject(TYPES.store))
|
|
32940
32861
|
], StoreBaseHandler);
|
|
@@ -32943,7 +32864,7 @@ let ApiBaseHandler = class {
|
|
|
32943
32864
|
this.api = X;
|
|
32944
32865
|
}
|
|
32945
32866
|
};
|
|
32946
|
-
ApiBaseHandler = __decorateClass$
|
|
32867
|
+
ApiBaseHandler = __decorateClass$i([
|
|
32947
32868
|
injectable(),
|
|
32948
32869
|
__decorateParam$3(0, inject(TYPES.primaryApi))
|
|
32949
32870
|
], ApiBaseHandler);
|
|
@@ -32952,7 +32873,7 @@ let BaseHandler = class {
|
|
|
32952
32873
|
this.store = X, this.api = W;
|
|
32953
32874
|
}
|
|
32954
32875
|
};
|
|
32955
|
-
BaseHandler = __decorateClass$
|
|
32876
|
+
BaseHandler = __decorateClass$i([
|
|
32956
32877
|
injectable(),
|
|
32957
32878
|
__decorateParam$3(0, inject(TYPES.store)),
|
|
32958
32879
|
__decorateParam$3(1, inject(TYPES.primaryApi))
|
|
@@ -33040,7 +32961,7 @@ const bootstrapAddHistoryItem = (X) => {
|
|
|
33040
32961
|
request$a = X.registerRequest(addHistoryItemCommand, AddHistoryItemHandler);
|
|
33041
32962
|
}, teardownAddHistoryItem = () => {
|
|
33042
32963
|
request$a == null || request$a.dispose();
|
|
33043
|
-
}
|
|
32964
|
+
};
|
|
33044
32965
|
let pluginLocaleManager;
|
|
33045
32966
|
const initializeLocalization = async (X) => {
|
|
33046
32967
|
pluginLocaleManager = await X.createLocaleManager(locales);
|
|
@@ -33059,7 +32980,6 @@ const initializeLocalization = async (X) => {
|
|
|
33059
32980
|
actions: {
|
|
33060
32981
|
cronogram: "Cronograma",
|
|
33061
32982
|
exportPdf: "Exportar PDF",
|
|
33062
|
-
noteLegend: "Llegenda notes",
|
|
33063
32983
|
moreOptions: "Més opcions",
|
|
33064
32984
|
entryLegend: "Llegenda entrades",
|
|
33065
32985
|
maximizeButton: "Botó maximitzar",
|
|
@@ -33104,7 +33024,7 @@ const initializeLocalization = async (X) => {
|
|
|
33104
33024
|
}
|
|
33105
33025
|
}
|
|
33106
33026
|
}
|
|
33107
|
-
}, template$c = (X) => {
|
|
33027
|
+
}, styles$b = ".wrapper{display:flex;flex-direction:column;align-items:center;gap:24px;width:484px;height:auto}.wrapper .content-options{display:flex;flex-direction:column;align-items:center;gap:16px}.wrapper .selector-options{display:flex;flex-direction:row;gap:16px}.wrapper .content-date{display:flex;flex-direction:column;align-items:center;gap:16px;height:124px}.wrapper .datepicker-canvas{display:flex;flex-direction:row;justify-content:center;align-content:center;gap:16px}.wrapper .actions{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px}dss-datepicker{width:234px;height:48px;border-radius:var(--dss-radius-sm);border:var(--dss-border-width-sm);padding:var(--dss-spacing-sm);gap:var(--dss-spacing-xs);color:var(--color-neutral-100)}", template$c = (X) => {
|
|
33108
33028
|
const { arrayElements: W, text: J } = X;
|
|
33109
33029
|
return ke$1`
|
|
33110
33030
|
<div class="wrapper">
|
|
@@ -33116,7 +33036,6 @@ const initializeLocalization = async (X) => {
|
|
|
33116
33036
|
<input id="dropdown1" slot="input" type="text" class="dss-input" />
|
|
33117
33037
|
</dss-input-dropdown> -->
|
|
33118
33038
|
<div class="content-options">
|
|
33119
|
-
<span>${translate("modal.selectExportOption")}</span>
|
|
33120
33039
|
<div class="selector-options">
|
|
33121
33040
|
<dss-radio-button>
|
|
33122
33041
|
<input slot="input" id="radioButton1" type="radio" name="exportOption" @change=${() => {
|
|
@@ -33145,20 +33064,14 @@ const initializeLocalization = async (X) => {
|
|
|
33145
33064
|
</dss-datepicker-range>
|
|
33146
33065
|
</div>
|
|
33147
33066
|
</div>` : D$1}
|
|
33148
|
-
<div class="actions">
|
|
33149
|
-
<dss-button @click="${X._cancel}" id="cancel-btn" label="${translate("modal.cancel")}" size="md" variant="secondary"></dss-button>
|
|
33150
|
-
<dss-button @click="${X._accept}" ?disabled="${!X.selectedRadioOption}" id="accept-btn" label="${translate("modal.export")}" size="md"></dss-button>
|
|
33151
|
-
</div>
|
|
33152
|
-
<!-- Button to test
|
|
33153
|
-
<button @click=${() => X.handleTest()}>Console log</button> -->
|
|
33154
33067
|
</div>`;
|
|
33155
33068
|
};
|
|
33156
|
-
var __defProp$
|
|
33157
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33069
|
+
var __defProp$h = Object.defineProperty, __getOwnPropDesc$h = Object.getOwnPropertyDescriptor, __decorateClass$h = (X, W, J, te) => {
|
|
33070
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$h(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33158
33071
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33159
|
-
return te && re && __defProp$
|
|
33072
|
+
return te && re && __defProp$h(W, J, re), re;
|
|
33160
33073
|
};
|
|
33161
|
-
let ExportPdfModal = class extends
|
|
33074
|
+
let ExportPdfModal = class extends h$n {
|
|
33162
33075
|
constructor() {
|
|
33163
33076
|
super(...arguments), this.arrayElements = [
|
|
33164
33077
|
{ label: "Element 1", value: "1" },
|
|
@@ -33177,12 +33090,6 @@ let ExportPdfModal = class extends confirmMixin(h$n) {
|
|
|
33177
33090
|
${r$J(styles$b)}
|
|
33178
33091
|
`;
|
|
33179
33092
|
}
|
|
33180
|
-
_accept() {
|
|
33181
|
-
this.close({ confirmed: !0, outputModel: this.outputModel });
|
|
33182
|
-
}
|
|
33183
|
-
_cancel() {
|
|
33184
|
-
this.close({ confirmed: !1, outputModel: this.outputModel });
|
|
33185
|
-
}
|
|
33186
33093
|
handleTest() {
|
|
33187
33094
|
console.log(
|
|
33188
33095
|
// this.selectedVisibilityLevelElement,
|
|
@@ -33190,41 +33097,40 @@ let ExportPdfModal = class extends confirmMixin(h$n) {
|
|
|
33190
33097
|
);
|
|
33191
33098
|
}
|
|
33192
33099
|
};
|
|
33193
|
-
__decorateClass$
|
|
33100
|
+
__decorateClass$h([
|
|
33194
33101
|
n$v()
|
|
33195
33102
|
], ExportPdfModal.prototype, "selectedRadioOption", 2);
|
|
33196
|
-
__decorateClass$
|
|
33103
|
+
__decorateClass$h([
|
|
33197
33104
|
n$v()
|
|
33198
33105
|
], ExportPdfModal.prototype, "text", 2);
|
|
33199
|
-
__decorateClass$
|
|
33106
|
+
__decorateClass$h([
|
|
33200
33107
|
n$v()
|
|
33201
33108
|
], ExportPdfModal.prototype, "selectedVisibilityLevelElement", 2);
|
|
33202
|
-
__decorateClass$
|
|
33109
|
+
__decorateClass$h([
|
|
33203
33110
|
n$v()
|
|
33204
33111
|
], ExportPdfModal.prototype, "selectedPeriodDate", 2);
|
|
33205
|
-
__decorateClass$
|
|
33112
|
+
__decorateClass$h([
|
|
33206
33113
|
n$v({ type: Array })
|
|
33207
33114
|
], ExportPdfModal.prototype, "arrayElements", 2);
|
|
33208
|
-
ExportPdfModal = __decorateClass$
|
|
33115
|
+
ExportPdfModal = __decorateClass$h([
|
|
33209
33116
|
t$k("export-pdf-modal")
|
|
33210
33117
|
], ExportPdfModal);
|
|
33211
33118
|
class ExportToPdfHandler extends ApiBaseHandler {
|
|
33212
33119
|
async handle() {
|
|
33213
33120
|
try {
|
|
33214
|
-
this.api.
|
|
33215
|
-
title: "
|
|
33216
|
-
|
|
33217
|
-
|
|
33121
|
+
this.api.interactionService.confirm(void 0, ExportPdfModal, {
|
|
33122
|
+
title: translate("modal.selectExportOption"),
|
|
33123
|
+
confirmButtonText: "Exportar",
|
|
33124
|
+
cancelButtonText: "Cancelar"
|
|
33218
33125
|
});
|
|
33219
33126
|
} catch (W) {
|
|
33220
33127
|
this._notifyError(W.message);
|
|
33221
33128
|
}
|
|
33222
33129
|
}
|
|
33223
33130
|
_notifyError(W) {
|
|
33224
|
-
this.api.
|
|
33225
|
-
|
|
33226
|
-
|
|
33227
|
-
});
|
|
33131
|
+
this.api.notificationService.error(
|
|
33132
|
+
W || "actions.delete.error"
|
|
33133
|
+
);
|
|
33228
33134
|
}
|
|
33229
33135
|
}
|
|
33230
33136
|
class ExportPdf {
|
|
@@ -33579,10 +33485,10 @@ const activityHistoryFiltersSelector = (X) => X.activityHistoryFilters.filters,
|
|
|
33579
33485
|
)}
|
|
33580
33486
|
</div>
|
|
33581
33487
|
`;
|
|
33582
|
-
var __defProp$
|
|
33583
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33488
|
+
var __defProp$g = Object.defineProperty, __getOwnPropDesc$g = Object.getOwnPropertyDescriptor, __decorateClass$g = (X, W, J, te) => {
|
|
33489
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$g(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33584
33490
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33585
|
-
return te && re && __defProp$
|
|
33491
|
+
return te && re && __defProp$g(W, J, re), re;
|
|
33586
33492
|
};
|
|
33587
33493
|
let ActivityHistoryTimeline = class extends h$n {
|
|
33588
33494
|
constructor() {
|
|
@@ -33632,19 +33538,19 @@ let ActivityHistoryTimeline = class extends h$n {
|
|
|
33632
33538
|
ActivityHistoryTimeline.styles = i$w`
|
|
33633
33539
|
${r$J(styles$a)}
|
|
33634
33540
|
`;
|
|
33635
|
-
__decorateClass$
|
|
33541
|
+
__decorateClass$g([
|
|
33636
33542
|
connectedProperty(activityHistoryGroupedItems)
|
|
33637
33543
|
], ActivityHistoryTimeline.prototype, "historyGroups", 2);
|
|
33638
|
-
__decorateClass$
|
|
33544
|
+
__decorateClass$g([
|
|
33639
33545
|
connectedProperty(isAnyCollectionLoadingWithoutAnyLoaded)
|
|
33640
33546
|
], ActivityHistoryTimeline.prototype, "isAnyCollectionLoadingWithoutAnyLoaded", 2);
|
|
33641
|
-
__decorateClass$
|
|
33547
|
+
__decorateClass$g([
|
|
33642
33548
|
connectedProperty(isSomeCollectionLoadedAndOtherLoading)
|
|
33643
33549
|
], ActivityHistoryTimeline.prototype, "isSomeCollectionLoadedAndOtherLoading", 2);
|
|
33644
|
-
__decorateClass$
|
|
33550
|
+
__decorateClass$g([
|
|
33645
33551
|
connectedProperty(activityHistorySearchStringSelector)
|
|
33646
33552
|
], ActivityHistoryTimeline.prototype, "searchString", 2);
|
|
33647
|
-
ActivityHistoryTimeline = __decorateClass$
|
|
33553
|
+
ActivityHistoryTimeline = __decorateClass$g([
|
|
33648
33554
|
t$k("activity-history-timeline")
|
|
33649
33555
|
], ActivityHistoryTimeline);
|
|
33650
33556
|
const template$a = (X) => !X.areCustomFiltersActive && !X.areCommonFiltersActive && X.searchString.length < 1 ? D$1 : ke$1`
|
|
@@ -33653,10 +33559,10 @@ const template$a = (X) => !X.areCustomFiltersActive && !X.areCommonFiltersActive
|
|
|
33653
33559
|
${nn(X.searchString.length > 1, () => ke$1`<activity-history-search-results searchQuery=${X.searchString}></activity-history-search-results>`)}
|
|
33654
33560
|
</div>
|
|
33655
33561
|
`, styles$9 = ".active-filters-header{display:flex;flex-direction:column;border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;padding:var(--dss-spacing-sm) var(--dss-spacing-md);gap:var(--dss-spacing-xs);font-size:14px;line-height:24px}";
|
|
33656
|
-
var __defProp$
|
|
33657
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33562
|
+
var __defProp$f = Object.defineProperty, __getOwnPropDesc$f = Object.getOwnPropertyDescriptor, __decorateClass$f = (X, W, J, te) => {
|
|
33563
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$f(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33658
33564
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33659
|
-
return te && re && __defProp$
|
|
33565
|
+
return te && re && __defProp$f(W, J, re), re;
|
|
33660
33566
|
};
|
|
33661
33567
|
let ActiveFiltersHeader = class extends h$n {
|
|
33662
33568
|
render() {
|
|
@@ -33666,16 +33572,16 @@ let ActiveFiltersHeader = class extends h$n {
|
|
|
33666
33572
|
ActiveFiltersHeader.styles = i$w`
|
|
33667
33573
|
${r$J(styles$9)}
|
|
33668
33574
|
`;
|
|
33669
|
-
__decorateClass$
|
|
33575
|
+
__decorateClass$f([
|
|
33670
33576
|
connectedProperty(activityHistorySearchStringSelector)
|
|
33671
33577
|
], ActiveFiltersHeader.prototype, "searchString", 2);
|
|
33672
|
-
__decorateClass$
|
|
33578
|
+
__decorateClass$f([
|
|
33673
33579
|
connectedProperty(areCustomFiltersActive)
|
|
33674
33580
|
], ActiveFiltersHeader.prototype, "areCustomFiltersActive", 2);
|
|
33675
|
-
__decorateClass$
|
|
33581
|
+
__decorateClass$f([
|
|
33676
33582
|
connectedProperty(areCommonFiltersActive)
|
|
33677
33583
|
], ActiveFiltersHeader.prototype, "areCommonFiltersActive", 2);
|
|
33678
|
-
ActiveFiltersHeader = __decorateClass$
|
|
33584
|
+
ActiveFiltersHeader = __decorateClass$f([
|
|
33679
33585
|
t$k("active-filters-header")
|
|
33680
33586
|
], ActiveFiltersHeader);
|
|
33681
33587
|
const styles$8 = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(189,189,189);width:56px;height:100%;box-sizing:border-box;display:flex;flex-direction:column}.filters-sidebar dss-icon-button{align-self:center}.filters-sidebar[expanded]{width:296px}.filters-sidebar[expanded] .filters-sidebar-opened{display:flex;align-items:center;justify-content:space-between;padding-inline:8px;color:var(--color-neutral-900);font-weight:700;font-size:16px;line-height:24px}.filter-container{display:flex;flex-direction:column;padding:16px 8px 8px;overflow:auto}.filter-container .filter{padding:8px 0;border-bottom:1px solid var(--color-neutral-200)}.filter-group{display:flex;flex-direction:column;padding-top:12px}.filter-group .custom-filter{display:flex;flex-direction:column;padding:6px 8px 6px var(--dss-spacing-xl)}.filter-group .custom-filter .custom-filter-content{display:flex;flex-direction:column}", filterTemplates = {
|
|
@@ -33738,10 +33644,10 @@ class SetCustomFilterValue {
|
|
|
33738
33644
|
this.payload = W;
|
|
33739
33645
|
}
|
|
33740
33646
|
}
|
|
33741
|
-
var __defProp$
|
|
33742
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33647
|
+
var __defProp$e = Object.defineProperty, __getOwnPropDesc$e = Object.getOwnPropertyDescriptor, __decorateClass$e = (X, W, J, te) => {
|
|
33648
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$e(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33743
33649
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33744
|
-
return te && re && __defProp$
|
|
33650
|
+
return te && re && __defProp$e(W, J, re), re;
|
|
33745
33651
|
};
|
|
33746
33652
|
let ActivityHistoryFilters = class extends h$n {
|
|
33747
33653
|
constructor() {
|
|
@@ -33776,22 +33682,22 @@ let ActivityHistoryFilters = class extends h$n {
|
|
|
33776
33682
|
ActivityHistoryFilters.styles = i$w`
|
|
33777
33683
|
${r$J(styles$8)}
|
|
33778
33684
|
`;
|
|
33779
|
-
__decorateClass$
|
|
33685
|
+
__decorateClass$e([
|
|
33780
33686
|
connectedProperty(activityHistoryCommonFiltersSelector)
|
|
33781
33687
|
], ActivityHistoryFilters.prototype, "commonFilters", 2);
|
|
33782
|
-
__decorateClass$
|
|
33688
|
+
__decorateClass$e([
|
|
33783
33689
|
connectedProperty(customFilterGroupsWithOptionsSelector)
|
|
33784
33690
|
], ActivityHistoryFilters.prototype, "customFilterGroups", 2);
|
|
33785
|
-
__decorateClass$
|
|
33691
|
+
__decorateClass$e([
|
|
33786
33692
|
lazyInject(TYPES.primaryApi)
|
|
33787
33693
|
], ActivityHistoryFilters.prototype, "api", 2);
|
|
33788
|
-
__decorateClass$
|
|
33694
|
+
__decorateClass$e([
|
|
33789
33695
|
r$G()
|
|
33790
33696
|
], ActivityHistoryFilters.prototype, "filtersExpanded", 2);
|
|
33791
|
-
__decorateClass$
|
|
33697
|
+
__decorateClass$e([
|
|
33792
33698
|
n$v({ type: Boolean })
|
|
33793
33699
|
], ActivityHistoryFilters.prototype, "wrapperMaximized", 2);
|
|
33794
|
-
ActivityHistoryFilters = __decorateClass$
|
|
33700
|
+
ActivityHistoryFilters = __decorateClass$e([
|
|
33795
33701
|
t$k("activity-history-filters")
|
|
33796
33702
|
], ActivityHistoryFilters);
|
|
33797
33703
|
const { setCommonFilterValue } = activityHistoryFiltersSlice.actions;
|
|
@@ -33864,9 +33770,11 @@ const bootstrapSetCustomFilterValue = (X) => {
|
|
|
33864
33770
|
class SearchItemsHandler extends BaseHandler {
|
|
33865
33771
|
async handle(W) {
|
|
33866
33772
|
try {
|
|
33867
|
-
this.store.dispatch(setSearchString(W.searchString)),
|
|
33868
|
-
|
|
33869
|
-
|
|
33773
|
+
this.store.dispatch(setSearchString(W.searchString)), setTimeout(() => {
|
|
33774
|
+
this.api.broker.publish(events.activityHistorySearched, {
|
|
33775
|
+
searchQuery: W.searchString
|
|
33776
|
+
});
|
|
33777
|
+
}, 300);
|
|
33870
33778
|
} catch (J) {
|
|
33871
33779
|
console.log(J.message);
|
|
33872
33780
|
}
|
|
@@ -33880,10 +33788,10 @@ class SearchActivityHistoryItems {
|
|
|
33880
33788
|
const styles$7 = ".search-header{color:var(--color-neutral-900);font-weight:600}", template$8 = (X) => ke$1`<div class="search-header">
|
|
33881
33789
|
${translate("searchBarResults")} “${X.searchQuery}”
|
|
33882
33790
|
</div>`;
|
|
33883
|
-
var __defProp$
|
|
33884
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33791
|
+
var __defProp$d = Object.defineProperty, __getOwnPropDesc$d = Object.getOwnPropertyDescriptor, __decorateClass$d = (X, W, J, te) => {
|
|
33792
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$d(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33885
33793
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33886
|
-
return te && re && __defProp$
|
|
33794
|
+
return te && re && __defProp$d(W, J, re), re;
|
|
33887
33795
|
};
|
|
33888
33796
|
let ActivityHistorySearchResults = class extends h$n {
|
|
33889
33797
|
constructor() {
|
|
@@ -33896,20 +33804,20 @@ let ActivityHistorySearchResults = class extends h$n {
|
|
|
33896
33804
|
ActivityHistorySearchResults.styles = i$w`
|
|
33897
33805
|
${r$J(styles$7)}
|
|
33898
33806
|
`;
|
|
33899
|
-
__decorateClass$
|
|
33807
|
+
__decorateClass$d([
|
|
33900
33808
|
n$v()
|
|
33901
33809
|
], ActivityHistorySearchResults.prototype, "searchQuery", 2);
|
|
33902
|
-
ActivityHistorySearchResults = __decorateClass$
|
|
33810
|
+
ActivityHistorySearchResults = __decorateClass$d([
|
|
33903
33811
|
t$k("activity-history-search-results")
|
|
33904
33812
|
], ActivityHistorySearchResults);
|
|
33905
33813
|
const styles$6 = ".search-header{padding-inline:16px;padding-top:12px;padding-bottom:12px;gap:var(--dss-spacing-xs);border-width:0px 0px 1px 0px;border-style:solid;border-color:#d8d8d8;background-color:#fff;color:var(--color-neutral-900);font-weight:600;font-size:14px;line-height:24px}", template$7 = (X) => ke$1`<dss-search-bar dropdownStyle=${"display: none"} @onSearchChange=${X._handleSearchChange} icon="search" inputsize="md" threshold="2" recentsearchestext="" emptydropdowntext="">
|
|
33906
33814
|
<label slot="label" for="searchbar1" aria-hidden="false"></label>
|
|
33907
33815
|
<input slot="input" id="searchbar1" type="text" value=${X.searchQuery} @input=${(W) => X._handleSearchChange({ detail: [W.target.value] })}>
|
|
33908
33816
|
</dss-search-bar>`;
|
|
33909
|
-
var __defProp$
|
|
33910
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33817
|
+
var __defProp$c = Object.defineProperty, __getOwnPropDesc$c = Object.getOwnPropertyDescriptor, __decorateClass$c = (X, W, J, te) => {
|
|
33818
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$c(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33911
33819
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33912
|
-
return te && re && __defProp$
|
|
33820
|
+
return te && re && __defProp$c(W, J, re), re;
|
|
33913
33821
|
};
|
|
33914
33822
|
let ActivityHistorySearchBar = class extends h$n {
|
|
33915
33823
|
constructor() {
|
|
@@ -33926,10 +33834,10 @@ let ActivityHistorySearchBar = class extends h$n {
|
|
|
33926
33834
|
ActivityHistorySearchBar.styles = i$w`
|
|
33927
33835
|
${r$J(styles$6)}
|
|
33928
33836
|
`;
|
|
33929
|
-
__decorateClass$
|
|
33837
|
+
__decorateClass$c([
|
|
33930
33838
|
n$v()
|
|
33931
33839
|
], ActivityHistorySearchBar.prototype, "searchQuery", 2);
|
|
33932
|
-
ActivityHistorySearchBar = __decorateClass$
|
|
33840
|
+
ActivityHistorySearchBar = __decorateClass$c([
|
|
33933
33841
|
t$k("activity-history-search-bar")
|
|
33934
33842
|
], ActivityHistorySearchBar);
|
|
33935
33843
|
const formatShowFilterTitle = (X) => {
|
|
@@ -33990,10 +33898,10 @@ const formatShowFilterTitle = (X) => {
|
|
|
33990
33898
|
</div>
|
|
33991
33899
|
`;
|
|
33992
33900
|
}, styles$5 = ".filters-container{display:flex;gap:var(--dss-spacing-md)}.filters-header{font-weight:700}.filter-groups{display:flex;gap:var(--dss-spacing-xs)}.filter-group{display:flex;gap:var(--dss-spacing-xs);color:var(--color-neutral-600);font-weight:600}.popover-content{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--dss-spacing-xs);padding:10px;max-width:368px;max-height:336px;overflow:auto}";
|
|
33993
|
-
var __defProp$
|
|
33994
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33901
|
+
var __defProp$b = Object.defineProperty, __getOwnPropDesc$b = Object.getOwnPropertyDescriptor, __decorateClass$b = (X, W, J, te) => {
|
|
33902
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$b(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
33995
33903
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
33996
|
-
return te && re && __defProp$
|
|
33904
|
+
return te && re && __defProp$b(W, J, re), re;
|
|
33997
33905
|
};
|
|
33998
33906
|
let ActiveFiltersBadges = class extends h$n {
|
|
33999
33907
|
render() {
|
|
@@ -34016,16 +33924,16 @@ let ActiveFiltersBadges = class extends h$n {
|
|
|
34016
33924
|
ActiveFiltersBadges.styles = i$w`
|
|
34017
33925
|
${r$J(styles$5)}
|
|
34018
33926
|
`;
|
|
34019
|
-
__decorateClass$
|
|
33927
|
+
__decorateClass$b([
|
|
34020
33928
|
lazyInject(TYPES.primaryApi)
|
|
34021
33929
|
], ActiveFiltersBadges.prototype, "api", 2);
|
|
34022
|
-
__decorateClass$
|
|
33930
|
+
__decorateClass$b([
|
|
34023
33931
|
connectedProperty(activityHistoryEnabledCommonFiltersSelector)
|
|
34024
33932
|
], ActiveFiltersBadges.prototype, "enabledCommonFilters", 2);
|
|
34025
|
-
__decorateClass$
|
|
33933
|
+
__decorateClass$b([
|
|
34026
33934
|
connectedProperty(activeGroupsWithEnabledFilters)
|
|
34027
33935
|
], ActiveFiltersBadges.prototype, "enabledFilters", 2);
|
|
34028
|
-
ActiveFiltersBadges = __decorateClass$
|
|
33936
|
+
ActiveFiltersBadges = __decorateClass$b([
|
|
34029
33937
|
t$k("active-filters-badges")
|
|
34030
33938
|
], ActiveFiltersBadges);
|
|
34031
33939
|
let request$2;
|
|
@@ -34034,10 +33942,10 @@ const bootstrapSearchItems = (X) => {
|
|
|
34034
33942
|
}, teardownSearchItems = () => {
|
|
34035
33943
|
request$2 == null || request$2.dispose();
|
|
34036
33944
|
}, styles$4 = ".spinner-container{display:flex;flex-direction:row;align-items:center;gap:24px;justify-content:center;padding-top:16px}.spinner-full-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center}", template$5 = (X) => X.isAnyCollectionLoadingWithoutAnyLoaded ? ke$1`<div class="spinner-full-container"><dss-spinner></dss-spinner></div>` : X.isSomeCollectionLoadedAndOtherLoading ? ke$1`<div class="spinner-container"><dss-spinner size="sm"></dss-spinner><div class="busy-description">${translate("busyEntriesLoading")}</div></div>` : D$1;
|
|
34037
|
-
var __defProp$
|
|
34038
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
33945
|
+
var __defProp$a = Object.defineProperty, __getOwnPropDesc$a = Object.getOwnPropertyDescriptor, __decorateClass$a = (X, W, J, te) => {
|
|
33946
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$a(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34039
33947
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34040
|
-
return te && re && __defProp$
|
|
33948
|
+
return te && re && __defProp$a(W, J, re), re;
|
|
34041
33949
|
};
|
|
34042
33950
|
let ActivityHistoryBusy = class extends h$n {
|
|
34043
33951
|
render() {
|
|
@@ -34047,13 +33955,13 @@ let ActivityHistoryBusy = class extends h$n {
|
|
|
34047
33955
|
ActivityHistoryBusy.styles = i$w`
|
|
34048
33956
|
${r$J(styles$4)}
|
|
34049
33957
|
`;
|
|
34050
|
-
__decorateClass$
|
|
33958
|
+
__decorateClass$a([
|
|
34051
33959
|
connectedProperty(isAnyCollectionLoadingWithoutAnyLoaded)
|
|
34052
33960
|
], ActivityHistoryBusy.prototype, "isAnyCollectionLoadingWithoutAnyLoaded", 2);
|
|
34053
|
-
__decorateClass$
|
|
33961
|
+
__decorateClass$a([
|
|
34054
33962
|
connectedProperty(isSomeCollectionLoadedAndOtherLoading)
|
|
34055
33963
|
], ActivityHistoryBusy.prototype, "isSomeCollectionLoadedAndOtherLoading", 2);
|
|
34056
|
-
ActivityHistoryBusy = __decorateClass$
|
|
33964
|
+
ActivityHistoryBusy = __decorateClass$a([
|
|
34057
33965
|
t$k("activity-history-busy")
|
|
34058
33966
|
], ActivityHistoryBusy);
|
|
34059
33967
|
let broker;
|
|
@@ -34079,7 +33987,7 @@ const bootstrapActivityHistoryItem = (X) => {
|
|
|
34079
33987
|
<dss-action-menu position="bottom-start">
|
|
34080
33988
|
<dss-action-menu-item lefticon="view_timeline" label=${translate("actions.cronogram")} @click=${X._raiseEcapCronogramEvent}></dss-action-menu-item>
|
|
34081
33989
|
<dss-action-menu-item lefticon="file_download" label=${translate("actions.exportPdf")} @click=${() => X.api.broker.send(new ExportPdf())}></dss-action-menu-item>
|
|
34082
|
-
<dss-action-menu-item label=${translate("actions.
|
|
33990
|
+
<dss-action-menu-item lefticon="info" label=${translate("actions.entryLegend")}></dss-action-menu-item>
|
|
34083
33991
|
</dss-action-menu>
|
|
34084
33992
|
</div>
|
|
34085
33993
|
</div>`}
|
|
@@ -34115,10 +34023,10 @@ const bootstrapActivityHistoryItem = (X) => {
|
|
|
34115
34023
|
</div>
|
|
34116
34024
|
</div>
|
|
34117
34025
|
`;
|
|
34118
|
-
var __defProp$
|
|
34119
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
34026
|
+
var __defProp$9 = Object.defineProperty, __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor, __decorateClass$9 = (X, W, J, te) => {
|
|
34027
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$9(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34120
34028
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34121
|
-
return te && re && __defProp$
|
|
34029
|
+
return te && re && __defProp$9(W, J, re), re;
|
|
34122
34030
|
};
|
|
34123
34031
|
let ActivityHistoryMain = class extends PrimariaRegionHost(h$n) {
|
|
34124
34032
|
constructor() {
|
|
@@ -34172,19 +34080,19 @@ let ActivityHistoryMain = class extends PrimariaRegionHost(h$n) {
|
|
|
34172
34080
|
ActivityHistoryMain.styles = i$w`
|
|
34173
34081
|
${r$J(styles$3)}
|
|
34174
34082
|
`;
|
|
34175
|
-
__decorateClass$
|
|
34083
|
+
__decorateClass$9([
|
|
34176
34084
|
n$v({ type: Boolean })
|
|
34177
34085
|
], ActivityHistoryMain.prototype, "maximized", 2);
|
|
34178
|
-
__decorateClass$
|
|
34086
|
+
__decorateClass$9([
|
|
34179
34087
|
lazyInject(TYPES.primaryApi)
|
|
34180
34088
|
], ActivityHistoryMain.prototype, "api", 2);
|
|
34181
|
-
__decorateClass$
|
|
34089
|
+
__decorateClass$9([
|
|
34182
34090
|
connectedProperty(activityHistoryCollectionsSelector)
|
|
34183
34091
|
], ActivityHistoryMain.prototype, "historyItems", 2);
|
|
34184
|
-
__decorateClass$
|
|
34092
|
+
__decorateClass$9([
|
|
34185
34093
|
n$v()
|
|
34186
34094
|
], ActivityHistoryMain.prototype, "searchQuery", 2);
|
|
34187
|
-
ActivityHistoryMain = __decorateClass$
|
|
34095
|
+
ActivityHistoryMain = __decorateClass$9([
|
|
34188
34096
|
t$k("activity-history-main")
|
|
34189
34097
|
], ActivityHistoryMain);
|
|
34190
34098
|
const registerViews = (X) => {
|
|
@@ -34218,17 +34126,17 @@ const internalPlugins = [
|
|
|
34218
34126
|
<div class="container">
|
|
34219
34127
|
<div class="title">${translate$1("busyManager.title")}</div>
|
|
34220
34128
|
<div class="list">
|
|
34221
|
-
${(J = (W = X.
|
|
34129
|
+
${(J = (W = X.data) == null ? void 0 : W.busyTasks) == null ? void 0 : J.map((te) => ke$1`<div class="plugin-busy-item">${te.taskDescription}</div>`)}
|
|
34222
34130
|
</div>
|
|
34223
34131
|
</div>
|
|
34224
34132
|
`;
|
|
34225
34133
|
};
|
|
34226
|
-
var __defProp$
|
|
34227
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
34134
|
+
var __defProp$8 = Object.defineProperty, __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor, __decorateClass$8 = (X, W, J, te) => {
|
|
34135
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$8(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34228
34136
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34229
|
-
return te && re && __defProp$
|
|
34137
|
+
return te && re && __defProp$8(W, J, re), re;
|
|
34230
34138
|
};
|
|
34231
|
-
let PluginBusyList = class extends
|
|
34139
|
+
let PluginBusyList = class extends h$n {
|
|
34232
34140
|
render() {
|
|
34233
34141
|
return ke$1`${template$3(this)}`;
|
|
34234
34142
|
}
|
|
@@ -34236,13 +34144,13 @@ let PluginBusyList = class extends confirmMixin(h$n) {
|
|
|
34236
34144
|
PluginBusyList.styles = i$w`
|
|
34237
34145
|
${r$J(styles$2)}
|
|
34238
34146
|
`;
|
|
34239
|
-
PluginBusyList = __decorateClass$
|
|
34147
|
+
PluginBusyList = __decorateClass$8([
|
|
34240
34148
|
t$k("plugin-busy-list")
|
|
34241
34149
|
], PluginBusyList);
|
|
34242
|
-
var __defProp$
|
|
34243
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
34150
|
+
var __defProp$7 = Object.defineProperty, __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor, __decorateClass$7 = (X, W, J, te) => {
|
|
34151
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$7(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34244
34152
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34245
|
-
return te && re && __defProp$
|
|
34153
|
+
return te && re && __defProp$7(W, J, re), re;
|
|
34246
34154
|
}, __decorateParam$2 = (X, W) => (J, te) => W(J, te, X);
|
|
34247
34155
|
let ExitShellHandler = class {
|
|
34248
34156
|
constructor(X) {
|
|
@@ -34262,27 +34170,24 @@ let ExitShellHandler = class {
|
|
|
34262
34170
|
// Si passen 5s, es segueix amb l'execució
|
|
34263
34171
|
]), raiseCloseEvent();
|
|
34264
34172
|
} catch (W) {
|
|
34265
|
-
this.api.
|
|
34266
|
-
|
|
34267
|
-
|
|
34268
|
-
});
|
|
34173
|
+
this.api.notificationService.error(
|
|
34174
|
+
W.message
|
|
34175
|
+
);
|
|
34269
34176
|
}
|
|
34270
34177
|
}
|
|
34271
34178
|
askForClose(X) {
|
|
34272
|
-
return this.api.
|
|
34179
|
+
return this.api.interactionService.confirm({ busyTasks: X }, PluginBusyList, {
|
|
34273
34180
|
title: translate$1("actions.askExit"),
|
|
34274
|
-
|
|
34275
|
-
|
|
34276
|
-
|
|
34277
|
-
acceptLabel: "Si",
|
|
34278
|
-
cancelLabel: "No"
|
|
34181
|
+
state: "error",
|
|
34182
|
+
confirmButtonText: "Sí",
|
|
34183
|
+
cancelButtonText: "No"
|
|
34279
34184
|
});
|
|
34280
34185
|
}
|
|
34281
34186
|
timeout(X) {
|
|
34282
34187
|
return new Promise((W) => setTimeout(W, X));
|
|
34283
34188
|
}
|
|
34284
34189
|
};
|
|
34285
|
-
ExitShellHandler = __decorateClass$
|
|
34190
|
+
ExitShellHandler = __decorateClass$7([
|
|
34286
34191
|
__decorateParam$2(0, inject(TYPES$1.primaryApi))
|
|
34287
34192
|
], ExitShellHandler);
|
|
34288
34193
|
let request$1;
|
|
@@ -34291,58 +34196,10 @@ const bootstrapExitShell = () => {
|
|
|
34291
34196
|
}, teardownExitShell = () => {
|
|
34292
34197
|
request$1 == null || request$1.dispose();
|
|
34293
34198
|
};
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
InvalidTokenError.prototype.name = "InvalidTokenError";
|
|
34297
|
-
function b64DecodeUnicode(X) {
|
|
34298
|
-
return decodeURIComponent(atob(X).replace(/(.)/g, (W, J) => {
|
|
34299
|
-
let te = J.charCodeAt(0).toString(16).toUpperCase();
|
|
34300
|
-
return te.length < 2 && (te = "0" + te), "%" + te;
|
|
34301
|
-
}));
|
|
34302
|
-
}
|
|
34303
|
-
function base64UrlDecode(X) {
|
|
34304
|
-
let W = X.replace(/-/g, "+").replace(/_/g, "/");
|
|
34305
|
-
switch (W.length % 4) {
|
|
34306
|
-
case 0:
|
|
34307
|
-
break;
|
|
34308
|
-
case 2:
|
|
34309
|
-
W += "==";
|
|
34310
|
-
break;
|
|
34311
|
-
case 3:
|
|
34312
|
-
W += "=";
|
|
34313
|
-
break;
|
|
34314
|
-
default:
|
|
34315
|
-
throw new Error("base64 string is not of the correct length");
|
|
34316
|
-
}
|
|
34317
|
-
try {
|
|
34318
|
-
return b64DecodeUnicode(W);
|
|
34319
|
-
} catch {
|
|
34320
|
-
return atob(W);
|
|
34321
|
-
}
|
|
34322
|
-
}
|
|
34323
|
-
function jwtDecode(X, W) {
|
|
34324
|
-
if (typeof X != "string")
|
|
34325
|
-
throw new InvalidTokenError("Invalid token specified: must be a string");
|
|
34326
|
-
W || (W = {});
|
|
34327
|
-
const J = W.header === !0 ? 0 : 1, te = X.split(".")[J];
|
|
34328
|
-
if (typeof te != "string")
|
|
34329
|
-
throw new InvalidTokenError(`Invalid token specified: missing part #${J + 1}`);
|
|
34330
|
-
let re;
|
|
34331
|
-
try {
|
|
34332
|
-
re = base64UrlDecode(te);
|
|
34333
|
-
} catch (ne) {
|
|
34334
|
-
throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${J + 1} (${ne.message})`);
|
|
34335
|
-
}
|
|
34336
|
-
try {
|
|
34337
|
-
return JSON.parse(re);
|
|
34338
|
-
} catch (ne) {
|
|
34339
|
-
throw new InvalidTokenError(`Invalid token specified: invalid json for part #${J + 1} (${ne.message})`);
|
|
34340
|
-
}
|
|
34341
|
-
}
|
|
34342
|
-
var __defProp$5 = Object.defineProperty, __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor, __decorateClass$5 = (X, W, J, te) => {
|
|
34343
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$5(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34199
|
+
var __defProp$6 = Object.defineProperty, __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor, __decorateClass$6 = (X, W, J, te) => {
|
|
34200
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$6(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34344
34201
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34345
|
-
return te && re && __defProp$
|
|
34202
|
+
return te && re && __defProp$6(W, J, re), re;
|
|
34346
34203
|
}, __decorateParam$1 = (X, W) => (J, te) => W(J, te, X);
|
|
34347
34204
|
let GetUserInfoBackendAdapter = class {
|
|
34348
34205
|
constructor(X) {
|
|
@@ -34365,14 +34222,14 @@ let GetUserInfoBackendAdapter = class {
|
|
|
34365
34222
|
return Promise.resolve(W);
|
|
34366
34223
|
}
|
|
34367
34224
|
};
|
|
34368
|
-
GetUserInfoBackendAdapter = __decorateClass$
|
|
34225
|
+
GetUserInfoBackendAdapter = __decorateClass$6([
|
|
34369
34226
|
injectable(),
|
|
34370
34227
|
__decorateParam$1(0, inject(TYPES$1.primaryApi))
|
|
34371
34228
|
], GetUserInfoBackendAdapter);
|
|
34372
|
-
var __defProp$
|
|
34373
|
-
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$
|
|
34229
|
+
var __defProp$5 = Object.defineProperty, __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor, __decorateClass$5 = (X, W, J, te) => {
|
|
34230
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$5(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34374
34231
|
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34375
|
-
return te && re && __defProp$
|
|
34232
|
+
return te && re && __defProp$5(W, J, re), re;
|
|
34376
34233
|
}, __decorateParam = (X, W) => (J, te) => W(J, te, X);
|
|
34377
34234
|
let GetUserInfoHandler = class {
|
|
34378
34235
|
constructor(X, W) {
|
|
@@ -34383,14 +34240,13 @@ let GetUserInfoHandler = class {
|
|
|
34383
34240
|
const W = await this.backendAdapter.getUserInfo();
|
|
34384
34241
|
return this.api.globalStateManager.setData("userInfo", W), W;
|
|
34385
34242
|
} catch (W) {
|
|
34386
|
-
this.api.
|
|
34387
|
-
|
|
34388
|
-
|
|
34389
|
-
});
|
|
34243
|
+
this.api.notificationService.error(
|
|
34244
|
+
W.message
|
|
34245
|
+
);
|
|
34390
34246
|
}
|
|
34391
34247
|
}
|
|
34392
34248
|
};
|
|
34393
|
-
GetUserInfoHandler = __decorateClass$
|
|
34249
|
+
GetUserInfoHandler = __decorateClass$5([
|
|
34394
34250
|
__decorateParam(0, inject(TYPES$1.primaryApi)),
|
|
34395
34251
|
__decorateParam(1, inject(GetUserInfoBackendAdapter))
|
|
34396
34252
|
], GetUserInfoHandler);
|
|
@@ -34402,10 +34258,96 @@ const bootstrapGetUserInfo = () => {
|
|
|
34402
34258
|
}, teardownGetUserInfo = () => {
|
|
34403
34259
|
request == null || request.dispose(), unregisterDep(GetUserInfoBackendAdapter);
|
|
34404
34260
|
}, bootstrapFeatures = (X) => {
|
|
34405
|
-
container$1.bind(TYPES$1.primaryApi).toConstantValue(X), bootstrapGetUserInfo(), bootstrapExitShell(),
|
|
34406
|
-
}, teardownFeatures = () => {
|
|
34407
|
-
teardownGetUserInfo(), teardownExitShell(), container$1.unbindAll();
|
|
34408
|
-
},
|
|
34261
|
+
container$1.bind(TYPES$1.primaryApi).toConstantValue(X), bootstrapGetUserInfo(), bootstrapExitShell(), X.broker.send(new GetUserInfo());
|
|
34262
|
+
}, teardownFeatures = (X) => {
|
|
34263
|
+
teardownGetUserInfo(), teardownExitShell(), container$1.unbindAll(), X.regionManager._destroy(), mediatorSettings.resolver.clear();
|
|
34264
|
+
}, disposeShell = () => {
|
|
34265
|
+
teardownFeatures(shellApi);
|
|
34266
|
+
}, raiseCloseEvent = () => {
|
|
34267
|
+
shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
|
|
34268
|
+
};
|
|
34269
|
+
var __defProp$4 = Object.defineProperty, __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor, __decorateClass$4 = (X, W, J, te) => {
|
|
34270
|
+
for (var re = te > 1 ? void 0 : te ? __getOwnPropDesc$4(W, J) : W, ne = X.length - 1, oe; ne >= 0; ne--)
|
|
34271
|
+
(oe = X[ne]) && (re = (te ? oe(W, J, re) : oe(re)) || re);
|
|
34272
|
+
return te && re && __defProp$4(W, J, re), re;
|
|
34273
|
+
};
|
|
34274
|
+
let PrimariaShell = class extends PrimariaRegionHost(h$n) {
|
|
34275
|
+
constructor() {
|
|
34276
|
+
super(...arguments), this.sidebarExpanded = !1, this.viewSelected = shellViews.shell, this.subscriptions = [];
|
|
34277
|
+
}
|
|
34278
|
+
render() {
|
|
34279
|
+
return ke$1`${template$g(this)}`;
|
|
34280
|
+
}
|
|
34281
|
+
connectedCallback() {
|
|
34282
|
+
super.connectedCallback(), this._subscribeEvents();
|
|
34283
|
+
}
|
|
34284
|
+
disconnectedCallback() {
|
|
34285
|
+
super.disconnectedCallback(), this._unsubscribeEvents();
|
|
34286
|
+
}
|
|
34287
|
+
firstUpdated() {
|
|
34288
|
+
super.firstUpdated(), setTimeout(() => {
|
|
34289
|
+
activateDefaultView();
|
|
34290
|
+
}, 300);
|
|
34291
|
+
}
|
|
34292
|
+
_toggleSidebar() {
|
|
34293
|
+
this.sidebarExpanded = !this.sidebarExpanded;
|
|
34294
|
+
}
|
|
34295
|
+
_subscribeEvents() {
|
|
34296
|
+
this.subscriptions.push(
|
|
34297
|
+
shellApi.broker.subscribe(shellEvents.appCrashed, (X) => {
|
|
34298
|
+
this._handleError(X);
|
|
34299
|
+
})
|
|
34300
|
+
), this.subscriptions.push(
|
|
34301
|
+
shellApi.broker.subscribe(shellEvents.refreshTokenFailed, (X) => {
|
|
34302
|
+
this._handleError({ message: translate$1("errors.session") });
|
|
34303
|
+
})
|
|
34304
|
+
), this.subscriptions.push(
|
|
34305
|
+
shellApi.broker.subscribe(shellEvents.mpidHeaderInvalid, (X) => {
|
|
34306
|
+
this._handleError({ message: translate$1("errors.invalidPatient") });
|
|
34307
|
+
})
|
|
34308
|
+
);
|
|
34309
|
+
}
|
|
34310
|
+
_handleError(X) {
|
|
34311
|
+
this.viewSelected = shellViews.error, this.error = X, disposeShell();
|
|
34312
|
+
}
|
|
34313
|
+
_unsubscribeEvents() {
|
|
34314
|
+
this.subscriptions.forEach((X) => X.dispose());
|
|
34315
|
+
}
|
|
34316
|
+
};
|
|
34317
|
+
PrimariaShell.styles = i$w`
|
|
34318
|
+
${r$J(styles$f)}
|
|
34319
|
+
`;
|
|
34320
|
+
__decorateClass$4([
|
|
34321
|
+
s$w({ targetId: "menu-region-container", name: shellRegions.navigationMenu })
|
|
34322
|
+
], PrimariaShell.prototype, "navigationMenuRegion", 2);
|
|
34323
|
+
__decorateClass$4([
|
|
34324
|
+
s$w({ targetId: "main-region-container", name: shellRegions.main })
|
|
34325
|
+
], PrimariaShell.prototype, "mainRegion", 2);
|
|
34326
|
+
__decorateClass$4([
|
|
34327
|
+
s$w({ targetId: "quick-actions-region-container", name: shellRegions.quickActions })
|
|
34328
|
+
], PrimariaShell.prototype, "quickActionsRegion", 2);
|
|
34329
|
+
__decorateClass$4([
|
|
34330
|
+
s$w({ targetId: "floating-region-container", name: shellRegions.floating })
|
|
34331
|
+
], PrimariaShell.prototype, "floatingRegion", 2);
|
|
34332
|
+
__decorateClass$4([
|
|
34333
|
+
s$w({
|
|
34334
|
+
targetId: "navigation-menu-lower-region-container",
|
|
34335
|
+
name: shellRegions.navigationLowerLeftMenu
|
|
34336
|
+
})
|
|
34337
|
+
], PrimariaShell.prototype, "navLowerLeftMenu", 2);
|
|
34338
|
+
__decorateClass$4([
|
|
34339
|
+
r$G()
|
|
34340
|
+
], PrimariaShell.prototype, "sidebarExpanded", 2);
|
|
34341
|
+
__decorateClass$4([
|
|
34342
|
+
r$G()
|
|
34343
|
+
], PrimariaShell.prototype, "viewSelected", 2);
|
|
34344
|
+
__decorateClass$4([
|
|
34345
|
+
r$G()
|
|
34346
|
+
], PrimariaShell.prototype, "error", 2);
|
|
34347
|
+
PrimariaShell = __decorateClass$4([
|
|
34348
|
+
t$k("primaria-shell")
|
|
34349
|
+
], PrimariaShell);
|
|
34350
|
+
const initializeShell = (X) => {
|
|
34409
34351
|
initializeLocalization$1(shellApi), p$h.registerAdapterFactory("primaria-content-switcher", d$t);
|
|
34410
34352
|
const W = new PrimariaShell();
|
|
34411
34353
|
X.appendChild(W), registerInternalViews(), bootstrapFeatures(shellApi);
|
|
@@ -34745,8 +34687,8 @@ var quill = { exports: {} };
|
|
|
34745
34687
|
typeof Se.retain == "number" ? Ce.retain = we : Ce.insert = Se.insert;
|
|
34746
34688
|
var Le = he.attributes.compose(Se.attributes, _e.attributes, typeof Se.retain == "number");
|
|
34747
34689
|
if (Le && (Ce.attributes = Le), ye.push(Ce), !ge.hasNext() && oe(ye.ops[ye.ops.length - 1], Ce)) {
|
|
34748
|
-
var
|
|
34749
|
-
return ye.concat(
|
|
34690
|
+
var Pe = new ce(fe.rest());
|
|
34691
|
+
return ye.concat(Pe).chop();
|
|
34750
34692
|
}
|
|
34751
34693
|
} else typeof _e.delete == "number" && typeof Se.retain == "number" && ye.push(_e);
|
|
34752
34694
|
}
|
|
@@ -34914,7 +34856,7 @@ var quill = { exports: {} };
|
|
|
34914
34856
|
throw new TypeError("Super expression must either be null or a function, not " + typeof De);
|
|
34915
34857
|
Ae.prototype = Object.create(De && De.prototype, { constructor: { value: Ae, enumerable: !1, writable: !0, configurable: !0 } }), De && (Object.setPrototypeOf ? Object.setPrototypeOf(Ae, De) : Ae.__proto__ = De);
|
|
34916
34858
|
}
|
|
34917
|
-
var
|
|
34859
|
+
var Pe = 1, Ie = function(Ae) {
|
|
34918
34860
|
Le(De, Ae);
|
|
34919
34861
|
function De() {
|
|
34920
34862
|
return _e(this, De), Ce(this, (De.__proto__ || Object.getPrototypeOf(De)).apply(this, arguments));
|
|
@@ -34964,9 +34906,9 @@ var quill = { exports: {} };
|
|
|
34964
34906
|
key: "delta",
|
|
34965
34907
|
value: function() {
|
|
34966
34908
|
return this.cache.delta == null && (this.cache.delta = this.descendants(fe.default.Leaf).reduce(function(Be, Ve) {
|
|
34967
|
-
return Ve.length() === 0 ? Be : Be.insert(Ve.value(),
|
|
34909
|
+
return Ve.length() === 0 ? Be : Be.insert(Ve.value(), qe(Ve));
|
|
34968
34910
|
}, new ce.default()).insert(`
|
|
34969
|
-
`,
|
|
34911
|
+
`, qe(this))), this.cache.delta;
|
|
34970
34912
|
}
|
|
34971
34913
|
}, {
|
|
34972
34914
|
key: "deleteAt",
|
|
@@ -35001,7 +34943,7 @@ var quill = { exports: {} };
|
|
|
35001
34943
|
}, {
|
|
35002
34944
|
key: "length",
|
|
35003
34945
|
value: function() {
|
|
35004
|
-
return this.cache.length == null && (this.cache.length = oe(De.prototype.__proto__ || Object.getPrototypeOf(De.prototype), "length", this).call(this) +
|
|
34946
|
+
return this.cache.length == null && (this.cache.length = oe(De.prototype.__proto__ || Object.getPrototypeOf(De.prototype), "length", this).call(this) + Pe), this.cache.length;
|
|
35005
34947
|
}
|
|
35006
34948
|
}, {
|
|
35007
34949
|
key: "moveChildren",
|
|
@@ -35027,7 +34969,7 @@ var quill = { exports: {} };
|
|
|
35027
34969
|
key: "split",
|
|
35028
34970
|
value: function(Be) {
|
|
35029
34971
|
var Ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
35030
|
-
if (Ve && (Be === 0 || Be >= this.length() -
|
|
34972
|
+
if (Ve && (Be === 0 || Be >= this.length() - Pe)) {
|
|
35031
34973
|
var Ye = this.clone();
|
|
35032
34974
|
return Be === 0 ? (this.parent.insertBefore(Ye, this), this) : (this.parent.insertBefore(Ye, this.next), Ye);
|
|
35033
34975
|
} else {
|
|
@@ -35038,11 +34980,11 @@ var quill = { exports: {} };
|
|
|
35038
34980
|
}]), De;
|
|
35039
34981
|
}(fe.default.Block);
|
|
35040
34982
|
ze.blotName = "block", ze.tagName = "P", ze.defaultChild = "break", ze.allowedChildren = [be.default, fe.default.Embed, we.default];
|
|
35041
|
-
function
|
|
34983
|
+
function qe(Ae) {
|
|
35042
34984
|
var De = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
35043
|
-
return Ae == null || (typeof Ae.formats == "function" && (De = (0, he.default)(De, Ae.formats())), Ae.parent == null || Ae.parent.blotName == "scroll" || Ae.parent.statics.scope !== Ae.statics.scope) ? De :
|
|
34985
|
+
return Ae == null || (typeof Ae.formats == "function" && (De = (0, he.default)(De, Ae.formats())), Ae.parent == null || Ae.parent.blotName == "scroll" || Ae.parent.statics.scope !== Ae.statics.scope) ? De : qe(Ae.parent, De);
|
|
35044
34986
|
}
|
|
35045
|
-
te.bubbleFormats =
|
|
34987
|
+
te.bubbleFormats = qe, te.BlockEmbed = Ie, te.default = ze;
|
|
35046
34988
|
},
|
|
35047
34989
|
/* 5 */
|
|
35048
34990
|
/***/
|
|
@@ -35090,8 +35032,8 @@ var quill = { exports: {} };
|
|
|
35090
35032
|
};
|
|
35091
35033
|
}();
|
|
35092
35034
|
re(51);
|
|
35093
|
-
var he = re(2), ue =
|
|
35094
|
-
function
|
|
35035
|
+
var he = re(2), ue = qe(he), ce = re(14), pe = qe(ce), fe = re(8), ge = qe(fe), me = re(9), ve = qe(me), be = re(0), ye = qe(be), we = re(15), Se = qe(we), _e = re(3), Ce = qe(_e), Le = re(10), Pe = qe(Le), Ie = re(35), ze = qe(Ie);
|
|
35036
|
+
function qe(Xe) {
|
|
35095
35037
|
return Xe && Xe.__esModule ? Xe : { default: Xe };
|
|
35096
35038
|
}
|
|
35097
35039
|
function Ae(Xe, Ge, Ne) {
|
|
@@ -35101,11 +35043,11 @@ var quill = { exports: {} };
|
|
|
35101
35043
|
if (!(Xe instanceof Ge))
|
|
35102
35044
|
throw new TypeError("Cannot call a class as a function");
|
|
35103
35045
|
}
|
|
35104
|
-
var Me = (0,
|
|
35046
|
+
var Me = (0, Pe.default)("quill"), Be = function() {
|
|
35105
35047
|
de(Xe, null, [{
|
|
35106
35048
|
key: "debug",
|
|
35107
35049
|
value: function(Ne) {
|
|
35108
|
-
Ne === !0 && (Ne = "log"),
|
|
35050
|
+
Ne === !0 && (Ne = "log"), Pe.default.level(Ne);
|
|
35109
35051
|
}
|
|
35110
35052
|
}, {
|
|
35111
35053
|
key: "find",
|
|
@@ -35533,8 +35475,8 @@ var quill = { exports: {} };
|
|
|
35533
35475
|
key: "formatAt",
|
|
35534
35476
|
value: function(Se, _e, Ce, Le) {
|
|
35535
35477
|
if (ye.compare(this.statics.blotName, Ce) < 0 && ce.default.query(Ce, ce.default.Scope.BLOT)) {
|
|
35536
|
-
var
|
|
35537
|
-
Le &&
|
|
35478
|
+
var Pe = this.isolate(Se, _e);
|
|
35479
|
+
Le && Pe.wrap(Ce, Le);
|
|
35538
35480
|
} else
|
|
35539
35481
|
oe(ye.prototype.__proto__ || Object.getPrototypeOf(ye.prototype), "formatAt", this).call(this, Se, _e, Ce, Le);
|
|
35540
35482
|
}
|
|
@@ -35608,21 +35550,21 @@ var quill = { exports: {} };
|
|
|
35608
35550
|
value: !0
|
|
35609
35551
|
});
|
|
35610
35552
|
var ne = /* @__PURE__ */ function() {
|
|
35611
|
-
function Ce(Le,
|
|
35612
|
-
for (var Ie = 0; Ie <
|
|
35613
|
-
var ze =
|
|
35553
|
+
function Ce(Le, Pe) {
|
|
35554
|
+
for (var Ie = 0; Ie < Pe.length; Ie++) {
|
|
35555
|
+
var ze = Pe[Ie];
|
|
35614
35556
|
ze.enumerable = ze.enumerable || !1, ze.configurable = !0, "value" in ze && (ze.writable = !0), Object.defineProperty(Le, ze.key, ze);
|
|
35615
35557
|
}
|
|
35616
35558
|
}
|
|
35617
|
-
return function(Le,
|
|
35618
|
-
return
|
|
35559
|
+
return function(Le, Pe, Ie) {
|
|
35560
|
+
return Pe && Ce(Le.prototype, Pe), Ie && Ce(Le, Ie), Le;
|
|
35619
35561
|
};
|
|
35620
|
-
}(), oe = function Ce(Le,
|
|
35562
|
+
}(), oe = function Ce(Le, Pe, Ie) {
|
|
35621
35563
|
Le === null && (Le = Function.prototype);
|
|
35622
|
-
var ze = Object.getOwnPropertyDescriptor(Le,
|
|
35564
|
+
var ze = Object.getOwnPropertyDescriptor(Le, Pe);
|
|
35623
35565
|
if (ze === void 0) {
|
|
35624
|
-
var
|
|
35625
|
-
return
|
|
35566
|
+
var qe = Object.getPrototypeOf(Le);
|
|
35567
|
+
return qe === null ? void 0 : Ce(qe, Pe, Ie);
|
|
35626
35568
|
} else {
|
|
35627
35569
|
if ("value" in ze)
|
|
35628
35570
|
return ze.value;
|
|
@@ -35650,10 +35592,10 @@ var quill = { exports: {} };
|
|
|
35650
35592
|
var be = (0, ce.default)("quill:events"), ye = [pe.SHADOW_SELECTIONCHANGE, "mousedown", "mouseup", "click"], we = [], Se = "getRootNode" in document;
|
|
35651
35593
|
ye.forEach(function(Ce) {
|
|
35652
35594
|
document.addEventListener(Ce, function() {
|
|
35653
|
-
for (var Le = arguments.length,
|
|
35654
|
-
|
|
35595
|
+
for (var Le = arguments.length, Pe = Array(Le), Ie = 0; Ie < Le; Ie++)
|
|
35596
|
+
Pe[Ie] = arguments[Ie];
|
|
35655
35597
|
we.forEach(function(ze) {
|
|
35656
|
-
ze.handleDOM.apply(ze,
|
|
35598
|
+
ze.handleDOM.apply(ze, Pe);
|
|
35657
35599
|
});
|
|
35658
35600
|
});
|
|
35659
35601
|
});
|
|
@@ -35661,8 +35603,8 @@ var quill = { exports: {} };
|
|
|
35661
35603
|
ve(Le, Ce);
|
|
35662
35604
|
function Le() {
|
|
35663
35605
|
ge(this, Le);
|
|
35664
|
-
var
|
|
35665
|
-
return
|
|
35606
|
+
var Pe = me(this, (Le.__proto__ || Object.getPrototypeOf(Le)).call(this));
|
|
35607
|
+
return Pe.listeners = {}, we.push(Pe), Pe.on("error", be.error), Pe;
|
|
35666
35608
|
}
|
|
35667
35609
|
return ne(Le, [{
|
|
35668
35610
|
key: "emit",
|
|
@@ -35672,8 +35614,8 @@ var quill = { exports: {} };
|
|
|
35672
35614
|
}, {
|
|
35673
35615
|
key: "handleDOM",
|
|
35674
35616
|
value: function(Ie) {
|
|
35675
|
-
for (var ze = arguments.length,
|
|
35676
|
-
|
|
35617
|
+
for (var ze = arguments.length, qe = Array(ze > 1 ? ze - 1 : 0), Ae = 1; Ae < ze; Ae++)
|
|
35618
|
+
qe[Ae - 1] = arguments[Ae];
|
|
35677
35619
|
var De = Ie.composedPath ? Ie.composedPath()[0] : Ie.target, Me = function(Ve, Ye) {
|
|
35678
35620
|
if (!Se || Ye.getRootNode() === document)
|
|
35679
35621
|
return Ve.contains(Ye);
|
|
@@ -35687,13 +35629,13 @@ var quill = { exports: {} };
|
|
|
35687
35629
|
};
|
|
35688
35630
|
(this.listeners[Ie.type] || []).forEach(function(Be) {
|
|
35689
35631
|
var Ve = Be.node, Ye = Be.handler;
|
|
35690
|
-
(De === Ve || Me(Ve, De)) && Ye.apply(void 0, [Ie].concat(
|
|
35632
|
+
(De === Ve || Me(Ve, De)) && Ye.apply(void 0, [Ie].concat(qe));
|
|
35691
35633
|
});
|
|
35692
35634
|
}
|
|
35693
35635
|
}, {
|
|
35694
35636
|
key: "listenDOM",
|
|
35695
|
-
value: function(Ie, ze,
|
|
35696
|
-
this.listeners[Ie] || (this.listeners[Ie] = []), this.listeners[Ie].push({ node: ze, handler:
|
|
35637
|
+
value: function(Ie, ze, qe) {
|
|
35638
|
+
this.listeners[Ie] || (this.listeners[Ie] = []), this.listeners[Ie].push({ node: ze, handler: qe });
|
|
35697
35639
|
}
|
|
35698
35640
|
}]), Le;
|
|
35699
35641
|
}(he.default);
|
|
@@ -35825,10 +35767,10 @@ var quill = { exports: {} };
|
|
|
35825
35767
|
value: !0
|
|
35826
35768
|
}), te.default = te.Code = void 0;
|
|
35827
35769
|
var ne = /* @__PURE__ */ function() {
|
|
35828
|
-
function Ie(ze,
|
|
35770
|
+
function Ie(ze, qe) {
|
|
35829
35771
|
var Ae = [], De = !0, Me = !1, Be = void 0;
|
|
35830
35772
|
try {
|
|
35831
|
-
for (var Ve = ze[Symbol.iterator](), Ye; !(De = (Ye = Ve.next()).done) && (Ae.push(Ye.value), !(
|
|
35773
|
+
for (var Ve = ze[Symbol.iterator](), Ye; !(De = (Ye = Ve.next()).done) && (Ae.push(Ye.value), !(qe && Ae.length === qe)); De = !0)
|
|
35832
35774
|
;
|
|
35833
35775
|
} catch (Je) {
|
|
35834
35776
|
Me = !0, Be = Je;
|
|
@@ -35841,29 +35783,29 @@ var quill = { exports: {} };
|
|
|
35841
35783
|
}
|
|
35842
35784
|
return Ae;
|
|
35843
35785
|
}
|
|
35844
|
-
return function(ze,
|
|
35786
|
+
return function(ze, qe) {
|
|
35845
35787
|
if (Array.isArray(ze))
|
|
35846
35788
|
return ze;
|
|
35847
35789
|
if (Symbol.iterator in Object(ze))
|
|
35848
|
-
return Ie(ze,
|
|
35790
|
+
return Ie(ze, qe);
|
|
35849
35791
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
35850
35792
|
};
|
|
35851
35793
|
}(), oe = /* @__PURE__ */ function() {
|
|
35852
|
-
function Ie(ze,
|
|
35853
|
-
for (var Ae = 0; Ae <
|
|
35854
|
-
var De =
|
|
35794
|
+
function Ie(ze, qe) {
|
|
35795
|
+
for (var Ae = 0; Ae < qe.length; Ae++) {
|
|
35796
|
+
var De = qe[Ae];
|
|
35855
35797
|
De.enumerable = De.enumerable || !1, De.configurable = !0, "value" in De && (De.writable = !0), Object.defineProperty(ze, De.key, De);
|
|
35856
35798
|
}
|
|
35857
35799
|
}
|
|
35858
|
-
return function(ze,
|
|
35859
|
-
return
|
|
35800
|
+
return function(ze, qe, Ae) {
|
|
35801
|
+
return qe && Ie(ze.prototype, qe), Ae && Ie(ze, Ae), ze;
|
|
35860
35802
|
};
|
|
35861
|
-
}(), de = function Ie(ze,
|
|
35803
|
+
}(), de = function Ie(ze, qe, Ae) {
|
|
35862
35804
|
ze === null && (ze = Function.prototype);
|
|
35863
|
-
var De = Object.getOwnPropertyDescriptor(ze,
|
|
35805
|
+
var De = Object.getOwnPropertyDescriptor(ze, qe);
|
|
35864
35806
|
if (De === void 0) {
|
|
35865
35807
|
var Me = Object.getPrototypeOf(ze);
|
|
35866
|
-
return Me === null ? void 0 : Ie(Me,
|
|
35808
|
+
return Me === null ? void 0 : Ie(Me, qe, Ae);
|
|
35867
35809
|
} else {
|
|
35868
35810
|
if ("value" in De)
|
|
35869
35811
|
return De.value;
|
|
@@ -35896,7 +35838,7 @@ var quill = { exports: {} };
|
|
|
35896
35838
|
return ze;
|
|
35897
35839
|
}(ve.default);
|
|
35898
35840
|
Le.blotName = "code", Le.tagName = "CODE";
|
|
35899
|
-
var
|
|
35841
|
+
var Pe = function(Ie) {
|
|
35900
35842
|
Ce(ze, Ie);
|
|
35901
35843
|
function ze() {
|
|
35902
35844
|
return Se(this, ze), _e(this, (ze.__proto__ || Object.getPrototypeOf(ze)).apply(this, arguments));
|
|
@@ -35987,7 +35929,7 @@ var quill = { exports: {} };
|
|
|
35987
35929
|
}
|
|
35988
35930
|
}]), ze;
|
|
35989
35931
|
}(ge.default);
|
|
35990
|
-
|
|
35932
|
+
Pe.blotName = "code-block", Pe.tagName = "PRE", Pe.TAB = " ", te.Code = Le, te.default = Pe;
|
|
35991
35933
|
},
|
|
35992
35934
|
/* 14 */
|
|
35993
35935
|
/***/
|
|
@@ -36033,7 +35975,7 @@ var quill = { exports: {} };
|
|
|
36033
35975
|
return function(Ge, Ne, Ue) {
|
|
36034
35976
|
return Ne && Xe(Ge.prototype, Ne), Ue && Xe(Ge, Ue), Ge;
|
|
36035
35977
|
};
|
|
36036
|
-
}(), he = re(2), ue = De(he), ce = re(20), pe = De(ce), fe = re(0), ge = De(fe), me = re(13), ve = De(me), be = re(24), ye = De(be), we = re(4), Se = De(we), _e = re(16), Ce = De(_e), Le = re(21),
|
|
35978
|
+
}(), he = re(2), ue = De(he), ce = re(20), pe = De(ce), fe = re(0), ge = De(fe), me = re(13), ve = De(me), be = re(24), ye = De(be), we = re(4), Se = De(we), _e = re(16), Ce = De(_e), Le = re(21), Pe = De(Le), Ie = re(11), ze = De(Ie), qe = re(3), Ae = De(qe);
|
|
36037
35979
|
function De(Xe) {
|
|
36038
35980
|
return Xe && Xe.__esModule ? Xe : { default: Xe };
|
|
36039
35981
|
}
|
|
@@ -36062,7 +36004,7 @@ var quill = { exports: {} };
|
|
|
36062
36004
|
nt.endsWith(`
|
|
36063
36005
|
`) && We && (We = !1, nt = nt.slice(0, -1)), Ze >= Qe && !nt.endsWith(`
|
|
36064
36006
|
`) && (We = !0), Ue.scroll.insertAt(Ze, nt);
|
|
36065
|
-
var bt = Ue.scroll.line(Ze),
|
|
36007
|
+
var bt = Ue.scroll.line(Ze), Ct = oe(bt, 2), Dt = Ct[0], Lt = Ct[1], Bt = (0, Ae.default)({}, (0, we.bubbleFormats)(Dt));
|
|
36066
36008
|
if (Dt instanceof Se.default) {
|
|
36067
36009
|
var jt = Dt.descendant(ge.default.Leaf, Lt), dr = oe(jt, 1), rr = dr[0];
|
|
36068
36010
|
Bt = (0, Ae.default)(Bt, (0, we.bubbleFormats)(rr));
|
|
@@ -36099,13 +36041,13 @@ var quill = { exports: {} };
|
|
|
36099
36041
|
if (!(it instanceof ve.default))
|
|
36100
36042
|
it.format(Ze, Qe[Ze]);
|
|
36101
36043
|
else {
|
|
36102
|
-
var bt = Ne - it.offset(We.scroll),
|
|
36103
|
-
it.formatAt(bt,
|
|
36044
|
+
var bt = Ne - it.offset(We.scroll), Ct = it.newlineIndex(bt + Ke) - bt + 1;
|
|
36045
|
+
it.formatAt(bt, Ct, Ze, Qe[Ze]);
|
|
36104
36046
|
}
|
|
36105
36047
|
Ke -= nt;
|
|
36106
36048
|
});
|
|
36107
36049
|
}
|
|
36108
|
-
}), this.scroll.optimize(), this.update(new ue.default().retain(Ne).retain(Ue, (0,
|
|
36050
|
+
}), this.scroll.optimize(), this.update(new ue.default().retain(Ne).retain(Ue, (0, Pe.default)(Qe)));
|
|
36109
36051
|
}
|
|
36110
36052
|
}, {
|
|
36111
36053
|
key: "formatText",
|
|
@@ -36113,7 +36055,7 @@ var quill = { exports: {} };
|
|
|
36113
36055
|
var We = this, Qe = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
36114
36056
|
return Object.keys(Qe).forEach(function(Ze) {
|
|
36115
36057
|
We.scroll.formatAt(Ne, Ue, Ze, Qe[Ze]);
|
|
36116
|
-
}), this.update(new ue.default().retain(Ne).retain(Ue, (0,
|
|
36058
|
+
}), this.update(new ue.default().retain(Ne).retain(Ue, (0, Pe.default)(Qe)));
|
|
36117
36059
|
}
|
|
36118
36060
|
}, {
|
|
36119
36061
|
key: "getContents",
|
|
@@ -36168,7 +36110,7 @@ var quill = { exports: {} };
|
|
|
36168
36110
|
`).replace(/\r/g, `
|
|
36169
36111
|
`), this.scroll.insertAt(Ne, Ue), Object.keys(Qe).forEach(function(Ze) {
|
|
36170
36112
|
We.scroll.formatAt(Ne, Ue.length, Ze, Qe[Ze]);
|
|
36171
|
-
}), this.update(new ue.default().retain(Ne).insert(Ue, (0,
|
|
36113
|
+
}), this.update(new ue.default().retain(Ne).insert(Ue, (0, Pe.default)(Qe)));
|
|
36172
36114
|
}
|
|
36173
36115
|
}, {
|
|
36174
36116
|
key: "isBlank",
|
|
@@ -36184,7 +36126,7 @@ var quill = { exports: {} };
|
|
|
36184
36126
|
var We = this.getText(Ne, Ue), Qe = this.scroll.line(Ne + Ue), Ze = oe(Qe, 2), je = Ze[0], Ke = Ze[1], it = 0, nt = new ue.default();
|
|
36185
36127
|
je != null && (je instanceof ve.default ? it = je.newlineIndex(Ke) - Ke + 1 : it = je.length() - Ke, nt = je.delta().slice(Ke, Ke + it - 1).insert(`
|
|
36186
36128
|
`));
|
|
36187
|
-
var bt = this.getContents(Ne, Ue + it),
|
|
36129
|
+
var bt = this.getContents(Ne, Ue + it), Ct = bt.diff(new ue.default().insert(We).concat(nt)), Dt = new ue.default().retain(Ne).concat(Ct);
|
|
36188
36130
|
return this.applyDelta(Dt);
|
|
36189
36131
|
}
|
|
36190
36132
|
}, {
|
|
@@ -36192,8 +36134,8 @@ var quill = { exports: {} };
|
|
|
36192
36134
|
value: function(Ne) {
|
|
36193
36135
|
var Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], We = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Qe = this.delta;
|
|
36194
36136
|
if (Ue.length === 1 && Ue[0].type === "characterData" && Ue[0].target.data.match(Ve) && ge.default.find(Ue[0].target)) {
|
|
36195
|
-
var Ze = ge.default.find(Ue[0].target), je = (0, we.bubbleFormats)(Ze), Ke = Ze.offset(this.scroll), it = Ue[0].oldValue.replace(ye.default.CONTENTS, ""), nt = new ue.default().insert(it), bt = new ue.default().insert(Ze.value()),
|
|
36196
|
-
Ne =
|
|
36137
|
+
var Ze = ge.default.find(Ue[0].target), je = (0, we.bubbleFormats)(Ze), Ke = Ze.offset(this.scroll), it = Ue[0].oldValue.replace(ye.default.CONTENTS, ""), nt = new ue.default().insert(it), bt = new ue.default().insert(Ze.value()), Ct = new ue.default().retain(Ke).concat(nt.diff(bt, We));
|
|
36138
|
+
Ne = Ct.reduce(function(Dt, Lt) {
|
|
36197
36139
|
return Lt.insert ? Dt.insert(Lt.insert, je) : Dt.push(Lt);
|
|
36198
36140
|
}, new ue.default()), this.delta = Qe.compose(Ne);
|
|
36199
36141
|
} else
|
|
@@ -36210,10 +36152,10 @@ var quill = { exports: {} };
|
|
|
36210
36152
|
function vt(Xe) {
|
|
36211
36153
|
return Xe.reduce(function(Ge, Ne) {
|
|
36212
36154
|
if (Ne.insert === 1) {
|
|
36213
|
-
var Ue = (0,
|
|
36155
|
+
var Ue = (0, Pe.default)(Ne.attributes);
|
|
36214
36156
|
return delete Ue.image, Ge.insert({ image: Ne.attributes.image }, Ue);
|
|
36215
36157
|
}
|
|
36216
|
-
if (Ne.attributes != null && (Ne.attributes.list === !0 || Ne.attributes.bullet === !0) && (Ne = (0,
|
|
36158
|
+
if (Ne.attributes != null && (Ne.attributes.list === !0 || Ne.attributes.bullet === !0) && (Ne = (0, Pe.default)(Ne), Ne.attributes.list ? Ne.attributes.list = "ordered" : (Ne.attributes.list = "bullet", delete Ne.attributes.bullet)), typeof Ne.insert == "string") {
|
|
36217
36159
|
var We = Ne.insert.replace(/\r\n/g, `
|
|
36218
36160
|
`).replace(/\r/g, `
|
|
36219
36161
|
`);
|
|
@@ -36231,10 +36173,10 @@ var quill = { exports: {} };
|
|
|
36231
36173
|
value: !0
|
|
36232
36174
|
}), te.default = te.Range = void 0;
|
|
36233
36175
|
var ne = /* @__PURE__ */ function() {
|
|
36234
|
-
function ze(
|
|
36176
|
+
function ze(qe, Ae) {
|
|
36235
36177
|
var De = [], Me = !0, Be = !1, Ve = void 0;
|
|
36236
36178
|
try {
|
|
36237
|
-
for (var Ye =
|
|
36179
|
+
for (var Ye = qe[Symbol.iterator](), Je; !(Me = (Je = Ye.next()).done) && (De.push(Je.value), !(Ae && De.length === Ae)); Me = !0)
|
|
36238
36180
|
;
|
|
36239
36181
|
} catch (vt) {
|
|
36240
36182
|
Be = !0, Ve = vt;
|
|
@@ -36247,22 +36189,22 @@ var quill = { exports: {} };
|
|
|
36247
36189
|
}
|
|
36248
36190
|
return De;
|
|
36249
36191
|
}
|
|
36250
|
-
return function(
|
|
36251
|
-
if (Array.isArray(
|
|
36252
|
-
return
|
|
36253
|
-
if (Symbol.iterator in Object(
|
|
36254
|
-
return ze(
|
|
36192
|
+
return function(qe, Ae) {
|
|
36193
|
+
if (Array.isArray(qe))
|
|
36194
|
+
return qe;
|
|
36195
|
+
if (Symbol.iterator in Object(qe))
|
|
36196
|
+
return ze(qe, Ae);
|
|
36255
36197
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
36256
36198
|
};
|
|
36257
36199
|
}(), oe = /* @__PURE__ */ function() {
|
|
36258
|
-
function ze(
|
|
36200
|
+
function ze(qe, Ae) {
|
|
36259
36201
|
for (var De = 0; De < Ae.length; De++) {
|
|
36260
36202
|
var Me = Ae[De];
|
|
36261
|
-
Me.enumerable = Me.enumerable || !1, Me.configurable = !0, "value" in Me && (Me.writable = !0), Object.defineProperty(
|
|
36203
|
+
Me.enumerable = Me.enumerable || !1, Me.configurable = !0, "value" in Me && (Me.writable = !0), Object.defineProperty(qe, Me.key, Me);
|
|
36262
36204
|
}
|
|
36263
36205
|
}
|
|
36264
|
-
return function(
|
|
36265
|
-
return Ae && ze(
|
|
36206
|
+
return function(qe, Ae, De) {
|
|
36207
|
+
return Ae && ze(qe.prototype, Ae), De && ze(qe, De), qe;
|
|
36266
36208
|
};
|
|
36267
36209
|
}(), de = re(0), he = we(de), ue = re(21), ce = we(ue), pe = re(11), fe = we(pe), ge = re(8), me = we(ge), ve = re(10), be = we(ve), ye = re(34);
|
|
36268
36210
|
function we(ze) {
|
|
@@ -36270,23 +36212,23 @@ var quill = { exports: {} };
|
|
|
36270
36212
|
}
|
|
36271
36213
|
function Se(ze) {
|
|
36272
36214
|
if (Array.isArray(ze)) {
|
|
36273
|
-
for (var
|
|
36274
|
-
Ae[
|
|
36215
|
+
for (var qe = 0, Ae = Array(ze.length); qe < ze.length; qe++)
|
|
36216
|
+
Ae[qe] = ze[qe];
|
|
36275
36217
|
return Ae;
|
|
36276
36218
|
} else
|
|
36277
36219
|
return Array.from(ze);
|
|
36278
36220
|
}
|
|
36279
|
-
function _e(ze,
|
|
36280
|
-
if (!(ze instanceof
|
|
36221
|
+
function _e(ze, qe) {
|
|
36222
|
+
if (!(ze instanceof qe))
|
|
36281
36223
|
throw new TypeError("Cannot call a class as a function");
|
|
36282
36224
|
}
|
|
36283
|
-
var Ce = (0, be.default)("quill:selection"), Le = function ze(
|
|
36225
|
+
var Ce = (0, be.default)("quill:selection"), Le = function ze(qe) {
|
|
36284
36226
|
var Ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
36285
|
-
_e(this, ze), this.index =
|
|
36286
|
-
},
|
|
36287
|
-
function ze(
|
|
36227
|
+
_e(this, ze), this.index = qe, this.length = Ae;
|
|
36228
|
+
}, Pe = function() {
|
|
36229
|
+
function ze(qe, Ae) {
|
|
36288
36230
|
var De = this;
|
|
36289
|
-
_e(this, ze), this.emitter = Ae, this.scroll =
|
|
36231
|
+
_e(this, ze), this.emitter = Ae, this.scroll = qe, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = he.default.create("cursor", this), this.lastRange = this.savedRange = new Le(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM(ye.SHADOW_SELECTIONCHANGE, document, function() {
|
|
36290
36232
|
De.mouseDown || setTimeout(De.update.bind(De, me.default.sources.USER), 1);
|
|
36291
36233
|
}), this.emitter.on(me.default.events.EDITOR_CHANGE, function(Me, Be) {
|
|
36292
36234
|
Me === me.default.events.TEXT_CHANGE && Be.length() > 0 && De.update(me.default.sources.SILENT);
|
|
@@ -36515,15 +36457,15 @@ var quill = { exports: {} };
|
|
|
36515
36457
|
}
|
|
36516
36458
|
}]), ze;
|
|
36517
36459
|
}();
|
|
36518
|
-
function Ie(ze,
|
|
36460
|
+
function Ie(ze, qe) {
|
|
36519
36461
|
try {
|
|
36520
|
-
|
|
36462
|
+
qe.parentNode;
|
|
36521
36463
|
} catch {
|
|
36522
36464
|
return !1;
|
|
36523
36465
|
}
|
|
36524
|
-
return
|
|
36466
|
+
return qe instanceof Text && (qe = qe.parentNode), ze.contains(qe);
|
|
36525
36467
|
}
|
|
36526
|
-
te.Range = Le, te.default =
|
|
36468
|
+
te.Range = Le, te.default = Pe;
|
|
36527
36469
|
},
|
|
36528
36470
|
/* 16 */
|
|
36529
36471
|
/***/
|
|
@@ -36949,71 +36891,71 @@ var quill = { exports: {} };
|
|
|
36949
36891
|
typeof be == "object" && (ye = be.depth, we = be.prototype, Se = be.includeNonEnumerable, be = be.circular);
|
|
36950
36892
|
var _e = [], Ce = [], Le = typeof Buffer < "u";
|
|
36951
36893
|
typeof be > "u" && (be = !0), typeof ye > "u" && (ye = 1 / 0);
|
|
36952
|
-
function
|
|
36894
|
+
function Pe(Ie, ze) {
|
|
36953
36895
|
if (Ie === null)
|
|
36954
36896
|
return null;
|
|
36955
36897
|
if (ze === 0)
|
|
36956
36898
|
return Ie;
|
|
36957
|
-
var
|
|
36899
|
+
var qe, Ae;
|
|
36958
36900
|
if (typeof Ie != "object")
|
|
36959
36901
|
return Ie;
|
|
36960
36902
|
if (ne(Ie, oe))
|
|
36961
|
-
|
|
36903
|
+
qe = new oe();
|
|
36962
36904
|
else if (ne(Ie, de))
|
|
36963
|
-
|
|
36905
|
+
qe = new de();
|
|
36964
36906
|
else if (ne(Ie, he))
|
|
36965
|
-
|
|
36907
|
+
qe = new he(function(Ge, Ne) {
|
|
36966
36908
|
Ie.then(function(Ue) {
|
|
36967
|
-
Ge(
|
|
36909
|
+
Ge(Pe(Ue, ze - 1));
|
|
36968
36910
|
}, function(Ue) {
|
|
36969
|
-
Ne(
|
|
36911
|
+
Ne(Pe(Ue, ze - 1));
|
|
36970
36912
|
});
|
|
36971
36913
|
});
|
|
36972
36914
|
else if (ue.__isArray(Ie))
|
|
36973
|
-
|
|
36915
|
+
qe = [];
|
|
36974
36916
|
else if (ue.__isRegExp(Ie))
|
|
36975
|
-
|
|
36917
|
+
qe = new RegExp(Ie.source, me(Ie)), Ie.lastIndex && (qe.lastIndex = Ie.lastIndex);
|
|
36976
36918
|
else if (ue.__isDate(Ie))
|
|
36977
|
-
|
|
36919
|
+
qe = new Date(Ie.getTime());
|
|
36978
36920
|
else {
|
|
36979
36921
|
if (Le && Buffer.isBuffer(Ie))
|
|
36980
|
-
return Buffer.allocUnsafe ?
|
|
36981
|
-
ne(Ie, Error) ?
|
|
36922
|
+
return Buffer.allocUnsafe ? qe = Buffer.allocUnsafe(Ie.length) : qe = new Buffer(Ie.length), Ie.copy(qe), qe;
|
|
36923
|
+
ne(Ie, Error) ? qe = Object.create(Ie) : typeof we > "u" ? (Ae = Object.getPrototypeOf(Ie), qe = Object.create(Ae)) : (qe = Object.create(we), Ae = we);
|
|
36982
36924
|
}
|
|
36983
36925
|
if (be) {
|
|
36984
36926
|
var De = _e.indexOf(Ie);
|
|
36985
36927
|
if (De != -1)
|
|
36986
36928
|
return Ce[De];
|
|
36987
|
-
_e.push(Ie), Ce.push(
|
|
36929
|
+
_e.push(Ie), Ce.push(qe);
|
|
36988
36930
|
}
|
|
36989
36931
|
ne(Ie, oe) && Ie.forEach(function(Ge, Ne) {
|
|
36990
|
-
var Ue =
|
|
36991
|
-
|
|
36932
|
+
var Ue = Pe(Ne, ze - 1), We = Pe(Ge, ze - 1);
|
|
36933
|
+
qe.set(Ue, We);
|
|
36992
36934
|
}), ne(Ie, de) && Ie.forEach(function(Ge) {
|
|
36993
|
-
var Ne =
|
|
36994
|
-
|
|
36935
|
+
var Ne = Pe(Ge, ze - 1);
|
|
36936
|
+
qe.add(Ne);
|
|
36995
36937
|
});
|
|
36996
36938
|
for (var Me in Ie) {
|
|
36997
36939
|
var Be;
|
|
36998
|
-
Ae && (Be = Object.getOwnPropertyDescriptor(Ae, Me)), !(Be && Be.set == null) && (
|
|
36940
|
+
Ae && (Be = Object.getOwnPropertyDescriptor(Ae, Me)), !(Be && Be.set == null) && (qe[Me] = Pe(Ie[Me], ze - 1));
|
|
36999
36941
|
}
|
|
37000
36942
|
if (Object.getOwnPropertySymbols)
|
|
37001
36943
|
for (var Ve = Object.getOwnPropertySymbols(Ie), Me = 0; Me < Ve.length; Me++) {
|
|
37002
36944
|
var Ye = Ve[Me], Je = Object.getOwnPropertyDescriptor(Ie, Ye);
|
|
37003
|
-
Je && !Je.enumerable && !Se || (
|
|
36945
|
+
Je && !Je.enumerable && !Se || (qe[Ye] = Pe(Ie[Ye], ze - 1), Je.enumerable || Object.defineProperty(qe, Ye, {
|
|
37004
36946
|
enumerable: !1
|
|
37005
36947
|
}));
|
|
37006
36948
|
}
|
|
37007
36949
|
if (Se)
|
|
37008
36950
|
for (var vt = Object.getOwnPropertyNames(Ie), Me = 0; Me < vt.length; Me++) {
|
|
37009
36951
|
var Xe = vt[Me], Je = Object.getOwnPropertyDescriptor(Ie, Xe);
|
|
37010
|
-
Je && Je.enumerable || (
|
|
36952
|
+
Je && Je.enumerable || (qe[Xe] = Pe(Ie[Xe], ze - 1), Object.defineProperty(qe, Xe, {
|
|
37011
36953
|
enumerable: !1
|
|
37012
36954
|
}));
|
|
37013
36955
|
}
|
|
37014
|
-
return
|
|
36956
|
+
return qe;
|
|
37015
36957
|
}
|
|
37016
|
-
return
|
|
36958
|
+
return Pe(ve, ye);
|
|
37017
36959
|
}
|
|
37018
36960
|
ue.clonePrototype = function(be) {
|
|
37019
36961
|
if (be === null)
|
|
@@ -37053,7 +36995,7 @@ var quill = { exports: {} };
|
|
|
37053
36995
|
value: !0
|
|
37054
36996
|
});
|
|
37055
36997
|
var ne = /* @__PURE__ */ function() {
|
|
37056
|
-
function
|
|
36998
|
+
function qe(Ae, De) {
|
|
37057
36999
|
var Me = [], Be = !0, Ve = !1, Ye = void 0;
|
|
37058
37000
|
try {
|
|
37059
37001
|
for (var Je = Ae[Symbol.iterator](), vt; !(Be = (vt = Je.next()).done) && (Me.push(vt.value), !(De && Me.length === De)); Be = !0)
|
|
@@ -37073,25 +37015,25 @@ var quill = { exports: {} };
|
|
|
37073
37015
|
if (Array.isArray(Ae))
|
|
37074
37016
|
return Ae;
|
|
37075
37017
|
if (Symbol.iterator in Object(Ae))
|
|
37076
|
-
return
|
|
37018
|
+
return qe(Ae, De);
|
|
37077
37019
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
37078
37020
|
};
|
|
37079
37021
|
}(), oe = /* @__PURE__ */ function() {
|
|
37080
|
-
function
|
|
37022
|
+
function qe(Ae, De) {
|
|
37081
37023
|
for (var Me = 0; Me < De.length; Me++) {
|
|
37082
37024
|
var Be = De[Me];
|
|
37083
37025
|
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ae, Be.key, Be);
|
|
37084
37026
|
}
|
|
37085
37027
|
}
|
|
37086
37028
|
return function(Ae, De, Me) {
|
|
37087
|
-
return De &&
|
|
37029
|
+
return De && qe(Ae.prototype, De), Me && qe(Ae, Me), Ae;
|
|
37088
37030
|
};
|
|
37089
|
-
}(), de = function
|
|
37031
|
+
}(), de = function qe(Ae, De, Me) {
|
|
37090
37032
|
Ae === null && (Ae = Function.prototype);
|
|
37091
37033
|
var Be = Object.getOwnPropertyDescriptor(Ae, De);
|
|
37092
37034
|
if (Be === void 0) {
|
|
37093
37035
|
var Ve = Object.getPrototypeOf(Ae);
|
|
37094
|
-
return Ve === null ? void 0 :
|
|
37036
|
+
return Ve === null ? void 0 : qe(Ve, De, Me);
|
|
37095
37037
|
} else {
|
|
37096
37038
|
if ("value" in Be)
|
|
37097
37039
|
return Be.value;
|
|
@@ -37099,28 +37041,28 @@ var quill = { exports: {} };
|
|
|
37099
37041
|
return Ye === void 0 ? void 0 : Ye.call(Me);
|
|
37100
37042
|
}
|
|
37101
37043
|
}, he = re(0), ue = _e(he), ce = re(8), pe = _e(ce), fe = re(4), ge = _e(fe), me = re(16), ve = _e(me), be = re(13), ye = _e(be), we = re(25), Se = _e(we);
|
|
37102
|
-
function _e(
|
|
37103
|
-
return
|
|
37044
|
+
function _e(qe) {
|
|
37045
|
+
return qe && qe.__esModule ? qe : { default: qe };
|
|
37104
37046
|
}
|
|
37105
|
-
function Ce(
|
|
37106
|
-
if (!(
|
|
37047
|
+
function Ce(qe, Ae) {
|
|
37048
|
+
if (!(qe instanceof Ae))
|
|
37107
37049
|
throw new TypeError("Cannot call a class as a function");
|
|
37108
37050
|
}
|
|
37109
|
-
function Le(
|
|
37110
|
-
if (!
|
|
37051
|
+
function Le(qe, Ae) {
|
|
37052
|
+
if (!qe)
|
|
37111
37053
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
37112
|
-
return Ae && (typeof Ae == "object" || typeof Ae == "function") ? Ae :
|
|
37054
|
+
return Ae && (typeof Ae == "object" || typeof Ae == "function") ? Ae : qe;
|
|
37113
37055
|
}
|
|
37114
|
-
function qe
|
|
37056
|
+
function Pe(qe, Ae) {
|
|
37115
37057
|
if (typeof Ae != "function" && Ae !== null)
|
|
37116
37058
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
|
|
37117
|
-
|
|
37059
|
+
qe.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: qe, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(qe, Ae) : qe.__proto__ = Ae);
|
|
37118
37060
|
}
|
|
37119
|
-
function Ie(
|
|
37120
|
-
return
|
|
37061
|
+
function Ie(qe) {
|
|
37062
|
+
return qe instanceof ge.default || qe instanceof fe.BlockEmbed;
|
|
37121
37063
|
}
|
|
37122
|
-
var ze = function(
|
|
37123
|
-
|
|
37064
|
+
var ze = function(qe) {
|
|
37065
|
+
Pe(Ae, qe);
|
|
37124
37066
|
function Ae(De, Me) {
|
|
37125
37067
|
Ce(this, Ae);
|
|
37126
37068
|
var Be = Le(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, De));
|
|
@@ -37257,17 +37199,17 @@ var quill = { exports: {} };
|
|
|
37257
37199
|
return je && typeof Symbol == "function" && je.constructor === Symbol && je !== Symbol.prototype ? "symbol" : typeof je;
|
|
37258
37200
|
}, oe = /* @__PURE__ */ function() {
|
|
37259
37201
|
function je(Ke, it) {
|
|
37260
|
-
var nt = [], bt = !0,
|
|
37202
|
+
var nt = [], bt = !0, Ct = !1, Dt = void 0;
|
|
37261
37203
|
try {
|
|
37262
37204
|
for (var Lt = Ke[Symbol.iterator](), Bt; !(bt = (Bt = Lt.next()).done) && (nt.push(Bt.value), !(it && nt.length === it)); bt = !0)
|
|
37263
37205
|
;
|
|
37264
37206
|
} catch (jt) {
|
|
37265
|
-
|
|
37207
|
+
Ct = !0, Dt = jt;
|
|
37266
37208
|
} finally {
|
|
37267
37209
|
try {
|
|
37268
37210
|
!bt && Lt.return && Lt.return();
|
|
37269
37211
|
} finally {
|
|
37270
|
-
if (
|
|
37212
|
+
if (Ct) throw Dt;
|
|
37271
37213
|
}
|
|
37272
37214
|
}
|
|
37273
37215
|
return nt;
|
|
@@ -37289,8 +37231,8 @@ var quill = { exports: {} };
|
|
|
37289
37231
|
return function(Ke, it, nt) {
|
|
37290
37232
|
return it && je(Ke.prototype, it), nt && je(Ke, nt), Ke;
|
|
37291
37233
|
};
|
|
37292
|
-
}(), he = re(21), ue =
|
|
37293
|
-
function
|
|
37234
|
+
}(), he = re(21), ue = qe(he), ce = re(11), pe = qe(ce), fe = re(3), ge = qe(fe), me = re(2), ve = qe(me), be = re(20), ye = qe(be), we = re(0), Se = qe(we), _e = re(5), Ce = qe(_e), Le = re(10), Pe = qe(Le), Ie = re(9), ze = qe(Ie);
|
|
37235
|
+
function qe(je) {
|
|
37294
37236
|
return je && je.__esModule ? je : { default: je };
|
|
37295
37237
|
}
|
|
37296
37238
|
function Ae(je, Ke, it) {
|
|
@@ -37310,30 +37252,30 @@ var quill = { exports: {} };
|
|
|
37310
37252
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ke);
|
|
37311
37253
|
je.prototype = Object.create(Ke && Ke.prototype, { constructor: { value: je, enumerable: !1, writable: !0, configurable: !0 } }), Ke && (Object.setPrototypeOf ? Object.setPrototypeOf(je, Ke) : je.__proto__ = Ke);
|
|
37312
37254
|
}
|
|
37313
|
-
var Ve = (0,
|
|
37255
|
+
var Ve = (0, Pe.default)("quill:keyboard"), Ye = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Je = function(je) {
|
|
37314
37256
|
Be(Ke, je), de(Ke, null, [{
|
|
37315
37257
|
key: "match",
|
|
37316
37258
|
value: function(nt, bt) {
|
|
37317
|
-
return bt = Ze(bt), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(
|
|
37318
|
-
return !!bt[
|
|
37259
|
+
return bt = Ze(bt), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(Ct) {
|
|
37260
|
+
return !!bt[Ct] !== nt[Ct] && bt[Ct] !== null;
|
|
37319
37261
|
}) ? !1 : bt.key === (nt.which || nt.keyCode);
|
|
37320
37262
|
}
|
|
37321
37263
|
}]);
|
|
37322
37264
|
function Ke(it, nt) {
|
|
37323
37265
|
De(this, Ke);
|
|
37324
37266
|
var bt = Me(this, (Ke.__proto__ || Object.getPrototypeOf(Ke)).call(this, it, nt));
|
|
37325
|
-
return bt.bindings = {}, Object.keys(bt.options.bindings).forEach(function(
|
|
37326
|
-
|
|
37267
|
+
return bt.bindings = {}, Object.keys(bt.options.bindings).forEach(function(Ct) {
|
|
37268
|
+
Ct === "list autofill" && it.scroll.whitelist != null && !it.scroll.whitelist.list || bt.options.bindings[Ct] && bt.addBinding(bt.options.bindings[Ct]);
|
|
37327
37269
|
}), bt.addBinding({ key: Ke.keys.ENTER, shiftKey: null }, Ue), bt.addBinding({ key: Ke.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
37328
37270
|
}), /Firefox/i.test(navigator.userAgent) ? (bt.addBinding({ key: Ke.keys.BACKSPACE }, { collapsed: !0 }, Xe), bt.addBinding({ key: Ke.keys.DELETE }, { collapsed: !0 }, Ge)) : (bt.addBinding({ key: Ke.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Xe), bt.addBinding({ key: Ke.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ge)), bt.addBinding({ key: Ke.keys.BACKSPACE }, { collapsed: !1 }, Ne), bt.addBinding({ key: Ke.keys.DELETE }, { collapsed: !1 }, Ne), bt.addBinding({ key: Ke.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Xe), bt.listen(), bt;
|
|
37329
37271
|
}
|
|
37330
37272
|
return de(Ke, [{
|
|
37331
37273
|
key: "addBinding",
|
|
37332
37274
|
value: function(nt) {
|
|
37333
|
-
var bt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
37275
|
+
var bt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ct = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, Dt = Ze(nt);
|
|
37334
37276
|
if (Dt == null || Dt.key == null)
|
|
37335
37277
|
return Ve.warn("Attempted to add invalid keyboard binding", Dt);
|
|
37336
|
-
typeof bt == "function" && (bt = { handler: bt }), typeof
|
|
37278
|
+
typeof bt == "function" && (bt = { handler: bt }), typeof Ct == "function" && (Ct = { handler: Ct }), Dt = (0, ge.default)(Dt, bt, Ct), this.bindings[Dt.key] = this.bindings[Dt.key] || [], this.bindings[Dt.key].push(Dt);
|
|
37337
37279
|
}
|
|
37338
37280
|
}, {
|
|
37339
37281
|
key: "listen",
|
|
@@ -37341,7 +37283,7 @@ var quill = { exports: {} };
|
|
|
37341
37283
|
var nt = this;
|
|
37342
37284
|
this.quill.root.addEventListener("keydown", function(bt) {
|
|
37343
37285
|
if (!bt.defaultPrevented) {
|
|
37344
|
-
var
|
|
37286
|
+
var Ct = bt.which || bt.keyCode, Dt = (nt.bindings[Ct] || []).filter(function(ir) {
|
|
37345
37287
|
return Ke.match(bt, ir);
|
|
37346
37288
|
});
|
|
37347
37289
|
if (Dt.length !== 0) {
|
|
@@ -37455,8 +37397,8 @@ var quill = { exports: {} };
|
|
|
37455
37397
|
collapsed: !0,
|
|
37456
37398
|
format: { list: "checked" },
|
|
37457
37399
|
handler: function(Ke) {
|
|
37458
|
-
var it = this.quill.getLine(Ke.index), nt = oe(it, 2), bt = nt[0],
|
|
37459
|
-
`, Dt).retain(bt.length() -
|
|
37400
|
+
var it = this.quill.getLine(Ke.index), nt = oe(it, 2), bt = nt[0], Ct = nt[1], Dt = (0, ge.default)({}, bt.formats(), { list: "checked" }), Lt = new ve.default().retain(Ke.index).insert(`
|
|
37401
|
+
`, Dt).retain(bt.length() - Ct - 1).retain(1, { list: "unchecked" });
|
|
37460
37402
|
this.quill.updateContents(Lt, Ce.default.sources.USER), this.quill.setSelection(Ke.index + 1, Ce.default.sources.SILENT), this.quill.scrollIntoView();
|
|
37461
37403
|
}
|
|
37462
37404
|
},
|
|
@@ -37466,8 +37408,8 @@ var quill = { exports: {} };
|
|
|
37466
37408
|
format: ["header"],
|
|
37467
37409
|
suffix: /^$/,
|
|
37468
37410
|
handler: function(Ke, it) {
|
|
37469
|
-
var nt = this.quill.getLine(Ke.index), bt = oe(nt, 2),
|
|
37470
|
-
`, it.format).retain(
|
|
37411
|
+
var nt = this.quill.getLine(Ke.index), bt = oe(nt, 2), Ct = bt[0], Dt = bt[1], Lt = new ve.default().retain(Ke.index).insert(`
|
|
37412
|
+
`, it.format).retain(Ct.length() - Dt - 1).retain(1, { header: null });
|
|
37471
37413
|
this.quill.updateContents(Lt, Ce.default.sources.USER), this.quill.setSelection(Ke.index + 1, Ce.default.sources.SILENT), this.quill.scrollIntoView();
|
|
37472
37414
|
}
|
|
37473
37415
|
},
|
|
@@ -37477,7 +37419,7 @@ var quill = { exports: {} };
|
|
|
37477
37419
|
format: { list: !1 },
|
|
37478
37420
|
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
37479
37421
|
handler: function(Ke, it) {
|
|
37480
|
-
var nt = it.prefix.length, bt = this.quill.getLine(Ke.index),
|
|
37422
|
+
var nt = it.prefix.length, bt = this.quill.getLine(Ke.index), Ct = oe(bt, 2), Dt = Ct[0], Lt = Ct[1];
|
|
37481
37423
|
if (Lt > nt) return !0;
|
|
37482
37424
|
var Bt = void 0;
|
|
37483
37425
|
switch (it.prefix.trim()) {
|
|
@@ -37507,7 +37449,7 @@ var quill = { exports: {} };
|
|
|
37507
37449
|
prefix: /\n\n$/,
|
|
37508
37450
|
suffix: /^\s+$/,
|
|
37509
37451
|
handler: function(Ke) {
|
|
37510
|
-
var it = this.quill.getLine(Ke.index), nt = oe(it, 2), bt = nt[0],
|
|
37452
|
+
var it = this.quill.getLine(Ke.index), nt = oe(it, 2), bt = nt[0], Ct = nt[1], Dt = new ve.default().retain(Ke.index + bt.length() - Ct - 2).retain(1, { "code-block": null }).delete(1);
|
|
37511
37453
|
this.quill.updateContents(Dt, Ce.default.sources.USER);
|
|
37512
37454
|
}
|
|
37513
37455
|
},
|
|
@@ -37523,31 +37465,31 @@ var quill = { exports: {} };
|
|
|
37523
37465
|
key: je,
|
|
37524
37466
|
shiftKey: Ke,
|
|
37525
37467
|
altKey: null
|
|
37526
|
-
}, Ae(it, nt, /^$/), Ae(it, "handler", function(
|
|
37527
|
-
var Dt =
|
|
37528
|
-
je === Je.keys.RIGHT && (Dt +=
|
|
37468
|
+
}, Ae(it, nt, /^$/), Ae(it, "handler", function(Ct) {
|
|
37469
|
+
var Dt = Ct.index;
|
|
37470
|
+
je === Je.keys.RIGHT && (Dt += Ct.length + 1);
|
|
37529
37471
|
var Lt = this.quill.getLeaf(Dt), Bt = oe(Lt, 1), jt = Bt[0];
|
|
37530
|
-
return jt instanceof Se.default.Embed ? (je === Je.keys.LEFT ? Ke ? this.quill.setSelection(
|
|
37472
|
+
return jt instanceof Se.default.Embed ? (je === Je.keys.LEFT ? Ke ? this.quill.setSelection(Ct.index - 1, Ct.length + 1, Ce.default.sources.USER) : this.quill.setSelection(Ct.index - 1, Ce.default.sources.USER) : Ke ? this.quill.setSelection(Ct.index, Ct.length + 1, Ce.default.sources.USER) : this.quill.setSelection(Ct.index + Ct.length + 1, Ce.default.sources.USER), !1) : !0;
|
|
37531
37473
|
}), it;
|
|
37532
37474
|
}
|
|
37533
37475
|
function Xe(je, Ke) {
|
|
37534
37476
|
if (!(je.index === 0 || this.quill.getLength() <= 1)) {
|
|
37535
|
-
var it = this.quill.getLine(je.index), nt = oe(it, 1), bt = nt[0],
|
|
37477
|
+
var it = this.quill.getLine(je.index), nt = oe(it, 1), bt = nt[0], Ct = {};
|
|
37536
37478
|
if (Ke.offset === 0) {
|
|
37537
37479
|
var Dt = this.quill.getLine(je.index - 1), Lt = oe(Dt, 1), Bt = Lt[0];
|
|
37538
37480
|
if (Bt != null && Bt.length() > 1) {
|
|
37539
37481
|
var jt = bt.formats(), dr = this.quill.getFormat(je.index - 1, 1);
|
|
37540
|
-
|
|
37482
|
+
Ct = ye.default.attributes.diff(jt, dr) || {};
|
|
37541
37483
|
}
|
|
37542
37484
|
}
|
|
37543
37485
|
var rr = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Ke.prefix) ? 2 : 1;
|
|
37544
|
-
this.quill.deleteText(je.index - rr, rr, Ce.default.sources.USER), Object.keys(
|
|
37486
|
+
this.quill.deleteText(je.index - rr, rr, Ce.default.sources.USER), Object.keys(Ct).length > 0 && this.quill.formatLine(je.index - rr, rr, Ct, Ce.default.sources.USER), this.quill.focus();
|
|
37545
37487
|
}
|
|
37546
37488
|
}
|
|
37547
37489
|
function Ge(je, Ke) {
|
|
37548
37490
|
var it = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ke.suffix) ? 2 : 1;
|
|
37549
37491
|
if (!(je.index >= this.quill.getLength() - it)) {
|
|
37550
|
-
var nt = {}, bt = 0,
|
|
37492
|
+
var nt = {}, bt = 0, Ct = this.quill.getLine(je.index), Dt = oe(Ct, 1), Lt = Dt[0];
|
|
37551
37493
|
if (Ke.offset >= Lt.length() - 1) {
|
|
37552
37494
|
var Bt = this.quill.getLine(je.index + 1), jt = oe(Bt, 1), dr = jt[0];
|
|
37553
37495
|
if (dr) {
|
|
@@ -37569,8 +37511,8 @@ var quill = { exports: {} };
|
|
|
37569
37511
|
function Ue(je, Ke) {
|
|
37570
37512
|
var it = this;
|
|
37571
37513
|
je.length > 0 && this.quill.scroll.deleteAt(je.index, je.length);
|
|
37572
|
-
var nt = Object.keys(Ke.format).reduce(function(bt,
|
|
37573
|
-
return Se.default.query(
|
|
37514
|
+
var nt = Object.keys(Ke.format).reduce(function(bt, Ct) {
|
|
37515
|
+
return Se.default.query(Ct, Se.default.Scope.BLOCK) && !Array.isArray(Ke.format[Ct]) && (bt[Ct] = Ke.format[Ct]), bt;
|
|
37574
37516
|
}, {});
|
|
37575
37517
|
this.quill.insertText(je.index, `
|
|
37576
37518
|
`, nt, Ce.default.sources.USER), this.quill.setSelection(je.index + 1, Ce.default.sources.SILENT), this.quill.focus(), Object.keys(Ke.format).forEach(function(bt) {
|
|
@@ -37583,13 +37525,13 @@ var quill = { exports: {} };
|
|
|
37583
37525
|
shiftKey: !je,
|
|
37584
37526
|
format: { "code-block": !0 },
|
|
37585
37527
|
handler: function(it) {
|
|
37586
|
-
var nt = Se.default.query("code-block"), bt = it.index,
|
|
37528
|
+
var nt = Se.default.query("code-block"), bt = it.index, Ct = it.length, Dt = this.quill.scroll.descendant(nt, bt), Lt = oe(Dt, 2), Bt = Lt[0], jt = Lt[1];
|
|
37587
37529
|
if (Bt != null) {
|
|
37588
|
-
var dr = this.quill.getIndex(Bt), rr = Bt.newlineIndex(jt, !0) + 1, gt = Bt.newlineIndex(dr + jt +
|
|
37530
|
+
var dr = this.quill.getIndex(Bt), rr = Bt.newlineIndex(jt, !0) + 1, gt = Bt.newlineIndex(dr + jt + Ct), mt = Bt.domNode.textContent.slice(rr, gt).split(`
|
|
37589
37531
|
`);
|
|
37590
37532
|
jt = 0, mt.forEach(function(xt, St) {
|
|
37591
|
-
je ? (Bt.insertAt(rr + jt, nt.TAB), jt += nt.TAB.length, St === 0 ? bt += nt.TAB.length :
|
|
37592
|
-
}), this.quill.update(Ce.default.sources.USER), this.quill.setSelection(bt,
|
|
37533
|
+
je ? (Bt.insertAt(rr + jt, nt.TAB), jt += nt.TAB.length, St === 0 ? bt += nt.TAB.length : Ct += nt.TAB.length) : xt.startsWith(nt.TAB) && (Bt.deleteAt(rr + jt, nt.TAB.length), jt -= nt.TAB.length, St === 0 ? bt -= nt.TAB.length : Ct -= nt.TAB.length), jt += xt.length + 1;
|
|
37534
|
+
}), this.quill.update(Ce.default.sources.USER), this.quill.setSelection(bt, Ct, Ce.default.sources.SILENT);
|
|
37593
37535
|
}
|
|
37594
37536
|
}
|
|
37595
37537
|
};
|
|
@@ -37625,17 +37567,17 @@ var quill = { exports: {} };
|
|
|
37625
37567
|
});
|
|
37626
37568
|
var ne = /* @__PURE__ */ function() {
|
|
37627
37569
|
function ye(we, Se) {
|
|
37628
|
-
var _e = [], Ce = !0, Le = !1,
|
|
37570
|
+
var _e = [], Ce = !0, Le = !1, Pe = void 0;
|
|
37629
37571
|
try {
|
|
37630
37572
|
for (var Ie = we[Symbol.iterator](), ze; !(Ce = (ze = Ie.next()).done) && (_e.push(ze.value), !(Se && _e.length === Se)); Ce = !0)
|
|
37631
37573
|
;
|
|
37632
|
-
} catch (
|
|
37633
|
-
Le = !0,
|
|
37574
|
+
} catch (qe) {
|
|
37575
|
+
Le = !0, Pe = qe;
|
|
37634
37576
|
} finally {
|
|
37635
37577
|
try {
|
|
37636
37578
|
!Ce && Ie.return && Ie.return();
|
|
37637
37579
|
} finally {
|
|
37638
|
-
if (Le) throw
|
|
37580
|
+
if (Le) throw Pe;
|
|
37639
37581
|
}
|
|
37640
37582
|
}
|
|
37641
37583
|
return _e;
|
|
@@ -37656,8 +37598,8 @@ var quill = { exports: {} };
|
|
|
37656
37598
|
} else {
|
|
37657
37599
|
if ("value" in Ce)
|
|
37658
37600
|
return Ce.value;
|
|
37659
|
-
var
|
|
37660
|
-
return
|
|
37601
|
+
var Pe = Ce.get;
|
|
37602
|
+
return Pe === void 0 ? void 0 : Pe.call(_e);
|
|
37661
37603
|
}
|
|
37662
37604
|
}, de = /* @__PURE__ */ function() {
|
|
37663
37605
|
function ye(we, Se) {
|
|
@@ -37708,9 +37650,9 @@ var quill = { exports: {} };
|
|
|
37708
37650
|
value: function(_e, Ce) {
|
|
37709
37651
|
if (this._length !== 0)
|
|
37710
37652
|
return oe(we.prototype.__proto__ || Object.getPrototypeOf(we.prototype), "format", this).call(this, _e, Ce);
|
|
37711
|
-
for (var Le = this,
|
|
37712
|
-
|
|
37713
|
-
Le != null && (this._length = we.CONTENTS.length, Le.optimize(), Le.formatAt(
|
|
37653
|
+
for (var Le = this, Pe = 0; Le != null && Le.statics.scope !== ue.default.Scope.BLOCK_BLOT; )
|
|
37654
|
+
Pe += Le.offset(Le.parent), Le = Le.parent;
|
|
37655
|
+
Le != null && (this._length = we.CONTENTS.length, Le.optimize(), Le.formatAt(Pe, we.CONTENTS.length, _e, Ce), this._length = 0);
|
|
37714
37656
|
}
|
|
37715
37657
|
}, {
|
|
37716
37658
|
key: "index",
|
|
@@ -37736,24 +37678,24 @@ var quill = { exports: {} };
|
|
|
37736
37678
|
key: "restore",
|
|
37737
37679
|
value: function() {
|
|
37738
37680
|
if (!(this.selection.composing || this.parent == null)) {
|
|
37739
|
-
var _e = this.textNode, Ce = this.selection.getNativeRange(), Le = void 0,
|
|
37681
|
+
var _e = this.textNode, Ce = this.selection.getNativeRange(), Le = void 0, Pe = void 0, Ie = void 0;
|
|
37740
37682
|
if (Ce != null && Ce.start.node === _e && Ce.end.node === _e) {
|
|
37741
37683
|
var ze = [_e, Ce.start.offset, Ce.end.offset];
|
|
37742
|
-
Le = ze[0],
|
|
37684
|
+
Le = ze[0], Pe = ze[1], Ie = ze[2];
|
|
37743
37685
|
}
|
|
37744
37686
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
37745
37687
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
37746
37688
|
if (this.textNode.data !== we.CONTENTS) {
|
|
37747
|
-
var
|
|
37748
|
-
this.next instanceof pe.default ? (Le = this.next.domNode, this.next.insertAt(0,
|
|
37689
|
+
var qe = this.textNode.data.split(we.CONTENTS).join("");
|
|
37690
|
+
this.next instanceof pe.default ? (Le = this.next.domNode, this.next.insertAt(0, qe), this.textNode.data = we.CONTENTS) : (this.textNode.data = qe, this.parent.insertBefore(ue.default.create(this.textNode), this), this.textNode = document.createTextNode(we.CONTENTS), this.domNode.appendChild(this.textNode));
|
|
37749
37691
|
}
|
|
37750
|
-
if (this.remove(),
|
|
37751
|
-
var Ae = [
|
|
37692
|
+
if (this.remove(), Pe != null) {
|
|
37693
|
+
var Ae = [Pe, Ie].map(function(Me) {
|
|
37752
37694
|
return Math.max(0, Math.min(Le.data.length, Me - 1));
|
|
37753
37695
|
}), De = ne(Ae, 2);
|
|
37754
|
-
return
|
|
37696
|
+
return Pe = De[0], Ie = De[1], {
|
|
37755
37697
|
startNode: Le,
|
|
37756
|
-
startOffset:
|
|
37698
|
+
startOffset: Pe,
|
|
37757
37699
|
endNode: Le,
|
|
37758
37700
|
endOffset: Ie
|
|
37759
37701
|
};
|
|
@@ -37767,8 +37709,8 @@ var quill = { exports: {} };
|
|
|
37767
37709
|
if (_e.some(function(Ie) {
|
|
37768
37710
|
return Ie.type === "characterData" && Ie.target === Le.textNode;
|
|
37769
37711
|
})) {
|
|
37770
|
-
var
|
|
37771
|
-
|
|
37712
|
+
var Pe = this.restore();
|
|
37713
|
+
Pe && (Ce.range = Pe);
|
|
37772
37714
|
}
|
|
37773
37715
|
}
|
|
37774
37716
|
}, {
|
|
@@ -38106,7 +38048,7 @@ var quill = { exports: {} };
|
|
|
38106
38048
|
Object.defineProperty(te, "__esModule", {
|
|
38107
38049
|
value: !0
|
|
38108
38050
|
});
|
|
38109
|
-
var ne = re(0), oe = Ve(ne), de = re(5), he = Ve(de), ue = re(4), ce = Ve(ue), pe = re(16), fe = Ve(pe), ge = re(25), me = Ve(ge), ve = re(24), be = Ve(ve), ye = re(36), we = Ve(ye), Se = re(6), _e = Ve(Se), Ce = re(22), Le = Ve(Ce),
|
|
38051
|
+
var ne = re(0), oe = Ve(ne), de = re(5), he = Ve(de), ue = re(4), ce = Ve(ue), pe = re(16), fe = Ve(pe), ge = re(25), me = Ve(ge), ve = re(24), be = Ve(ve), ye = re(36), we = Ve(ye), Se = re(6), _e = Ve(Se), Ce = re(22), Le = Ve(Ce), Pe = re(7), Ie = Ve(Pe), ze = re(56), qe = Ve(ze), Ae = re(43), De = Ve(Ae), Me = re(23), Be = Ve(Me);
|
|
38110
38052
|
function Ve(Ye) {
|
|
38111
38053
|
return Ye && Ye.__esModule ? Ye : { default: Ye };
|
|
38112
38054
|
}
|
|
@@ -38120,7 +38062,7 @@ var quill = { exports: {} };
|
|
|
38120
38062
|
"blots/inline": _e.default,
|
|
38121
38063
|
"blots/scroll": Le.default,
|
|
38122
38064
|
"blots/text": Ie.default,
|
|
38123
|
-
"modules/clipboard":
|
|
38065
|
+
"modules/clipboard": qe.default,
|
|
38124
38066
|
"modules/history": De.default,
|
|
38125
38067
|
"modules/keyboard": Be.default
|
|
38126
38068
|
}), oe.default.register(ce.default, fe.default, be.default, _e.default, Le.default, Ie.default), te.default = he.default;
|
|
@@ -38345,19 +38287,19 @@ var quill = { exports: {} };
|
|
|
38345
38287
|
function(J, te, re) {
|
|
38346
38288
|
Object.defineProperty(te, "__esModule", {
|
|
38347
38289
|
value: !0
|
|
38348
|
-
}), te.getRange =
|
|
38290
|
+
}), te.getRange = Pe, te.internalGetShadowSelection = ze;
|
|
38349
38291
|
var ne = te.SHADOW_SELECTIONCHANGE = "-shadow-selectionchange", oe = "attachShadow" in Element.prototype && "getRootNode" in Element.prototype, de = !!(oe && document.createElement("div").attachShadow({ mode: "open" }).getSelection), he = window.ShadyDOM && window.ShadyDOM.inUse, ue = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, ce = !oe || he || !de && !ue, pe = [Node.ELEMENT_NODE, Node.TEXT_NODE, Node.DOCUMENT_FRAGMENT_NODE];
|
|
38350
|
-
function fe(
|
|
38351
|
-
return pe.includes(
|
|
38292
|
+
function fe(qe) {
|
|
38293
|
+
return pe.includes(qe.nodeType);
|
|
38352
38294
|
}
|
|
38353
|
-
function ge(
|
|
38295
|
+
function ge(qe, Ae, De) {
|
|
38354
38296
|
var Me = Ae.childNodes || Ae.children;
|
|
38355
38297
|
if (!Me)
|
|
38356
38298
|
return Ae;
|
|
38357
38299
|
for (var Be = 0; Be < Me.length; ++Be) {
|
|
38358
38300
|
var Ve = De ? Be : Me.length - 1 - Be, Ye = Me[Ve];
|
|
38359
|
-
if (fe(Ye) &&
|
|
38360
|
-
return
|
|
38301
|
+
if (fe(Ye) && qe.containsNode(Ye, !0))
|
|
38302
|
+
return qe.containsNode(Ye, !1) ? Ye : ge(qe, Ye, De);
|
|
38361
38303
|
}
|
|
38362
38304
|
return Ae;
|
|
38363
38305
|
}
|
|
@@ -38367,10 +38309,10 @@ var quill = { exports: {} };
|
|
|
38367
38309
|
document.dispatchEvent(new CustomEvent(ne));
|
|
38368
38310
|
}), function() {
|
|
38369
38311
|
};
|
|
38370
|
-
var
|
|
38312
|
+
var qe = !1, Ae = [];
|
|
38371
38313
|
return document.addEventListener("selectionchange", function(De) {
|
|
38372
|
-
|
|
38373
|
-
|
|
38314
|
+
qe || (document.dispatchEvent(new CustomEvent(ne)), qe = !0, window.setTimeout(function() {
|
|
38315
|
+
qe = !1;
|
|
38374
38316
|
}, 2), Ae.forEach(function(Me) {
|
|
38375
38317
|
return Me(De);
|
|
38376
38318
|
}));
|
|
@@ -38379,79 +38321,79 @@ var quill = { exports: {} };
|
|
|
38379
38321
|
};
|
|
38380
38322
|
}(), ve = !1, be = null;
|
|
38381
38323
|
me(function() {
|
|
38382
|
-
var
|
|
38383
|
-
|
|
38324
|
+
var qe = window.getSelection();
|
|
38325
|
+
qe.type === "Caret" ? ve = !0 : ve && !be && (be = Promise.resolve(!0).then(function() {
|
|
38384
38326
|
ve = !1, be = null;
|
|
38385
38327
|
}));
|
|
38386
38328
|
});
|
|
38387
|
-
function ye(
|
|
38329
|
+
function ye(qe, Ae, De) {
|
|
38388
38330
|
for (var Me = Ae; (Ae = Se(Ae, De)) && Ae.contains(Me); )
|
|
38389
38331
|
;
|
|
38390
|
-
return Ae ? Ae instanceof Element &&
|
|
38332
|
+
return Ae ? Ae instanceof Element && qe.containsNode(Ae, !0) : !1;
|
|
38391
38333
|
}
|
|
38392
|
-
function we(
|
|
38393
|
-
if (
|
|
38334
|
+
function we(qe, Ae, De) {
|
|
38335
|
+
if (qe.type === "Range") {
|
|
38394
38336
|
var Me = function() {
|
|
38395
|
-
return
|
|
38337
|
+
return qe.toString().length;
|
|
38396
38338
|
}, Be = Me();
|
|
38397
38339
|
if (Be === 1 && ve && Ae === De) {
|
|
38398
|
-
|
|
38340
|
+
qe.extend(Ae, 0), qe.collapseToEnd();
|
|
38399
38341
|
return;
|
|
38400
38342
|
}
|
|
38401
38343
|
var Ve = void 0;
|
|
38402
|
-
if (
|
|
38403
|
-
return
|
|
38404
|
-
if (Ve < Be || !
|
|
38405
|
-
return
|
|
38406
|
-
if (
|
|
38407
|
-
return
|
|
38408
|
-
if (Ve < Be || !
|
|
38409
|
-
return
|
|
38344
|
+
if (qe.modify("extend", "forward", "character"), Ve = Me(), Ve > Be || ye(qe, De, !0))
|
|
38345
|
+
return qe.modify("extend", "backward", "character"), !0;
|
|
38346
|
+
if (Ve < Be || !qe.containsNode(Ae))
|
|
38347
|
+
return qe.modify("extend", "backward", "character"), !1;
|
|
38348
|
+
if (qe.modify("extend", "backward", "character"), Ve = Me(), Ve > Be || ye(qe, Ae, !1))
|
|
38349
|
+
return qe.modify("extend", "forward", "character"), !1;
|
|
38350
|
+
if (Ve < Be || !qe.containsNode(De))
|
|
38351
|
+
return qe.modify("extend", "forward", "character"), !0;
|
|
38410
38352
|
}
|
|
38411
38353
|
}
|
|
38412
|
-
function Se(
|
|
38354
|
+
function Se(qe, Ae) {
|
|
38413
38355
|
if (!Ae)
|
|
38414
|
-
return
|
|
38415
|
-
for (;
|
|
38416
|
-
if (
|
|
38417
|
-
return
|
|
38418
|
-
|
|
38356
|
+
return qe.previousSibling || qe.parentNode || null;
|
|
38357
|
+
for (; qe; ) {
|
|
38358
|
+
if (qe.nextSibling)
|
|
38359
|
+
return qe.nextSibling;
|
|
38360
|
+
qe = qe.parentNode;
|
|
38419
38361
|
}
|
|
38420
38362
|
return null;
|
|
38421
38363
|
}
|
|
38422
|
-
function _e(
|
|
38423
|
-
return
|
|
38364
|
+
function _e(qe) {
|
|
38365
|
+
return qe.nodeType !== Node.TEXT_NODE ? 0 : /^\s*/.exec(qe.textContent)[0].length;
|
|
38424
38366
|
}
|
|
38425
|
-
function Ce(
|
|
38426
|
-
if (
|
|
38367
|
+
function Ce(qe) {
|
|
38368
|
+
if (qe.nodeType !== Node.TEXT_NODE)
|
|
38427
38369
|
return 0;
|
|
38428
|
-
var Ae = /\s*$/.exec(
|
|
38370
|
+
var Ae = /\s*$/.exec(qe.textContent)[0].length;
|
|
38429
38371
|
return Ae ? Ae - 1 : 0;
|
|
38430
38372
|
}
|
|
38431
38373
|
var Le = /* @__PURE__ */ new Map();
|
|
38432
|
-
function qe
|
|
38374
|
+
function Pe(qe) {
|
|
38433
38375
|
if (de || ce) {
|
|
38434
|
-
var Ae = (ce ? document :
|
|
38376
|
+
var Ae = (ce ? document : qe).getSelection();
|
|
38435
38377
|
return Ae.rangeCount ? Ae.getRangeAt(0) : null;
|
|
38436
38378
|
}
|
|
38437
|
-
var De = Le.get(
|
|
38379
|
+
var De = Le.get(qe);
|
|
38438
38380
|
if (De)
|
|
38439
38381
|
return De;
|
|
38440
|
-
var Me = ze(
|
|
38441
|
-
return Le.set(
|
|
38442
|
-
Le.delete(
|
|
38382
|
+
var Me = ze(qe);
|
|
38383
|
+
return Le.set(qe, Me.range), window.setTimeout(function() {
|
|
38384
|
+
Le.delete(qe);
|
|
38443
38385
|
}, 0), Me.range;
|
|
38444
38386
|
}
|
|
38445
38387
|
var Ie = document.createTextNode("");
|
|
38446
|
-
function ze(
|
|
38388
|
+
function ze(qe) {
|
|
38447
38389
|
var Ae = document.createRange(), De = window.getSelection();
|
|
38448
|
-
if (!De.containsNode(
|
|
38390
|
+
if (!De.containsNode(qe.host, !0))
|
|
38449
38391
|
return { range: null, mode: "none" };
|
|
38450
|
-
|
|
38392
|
+
qe.insertBefore(Ie, qe.childNodes[0]);
|
|
38451
38393
|
var Me = De.containsNode(Ie);
|
|
38452
38394
|
if (Ie.remove(), Me)
|
|
38453
38395
|
return { range: null, mode: "outside-before" };
|
|
38454
|
-
|
|
38396
|
+
qe.appendChild(Ie);
|
|
38455
38397
|
var Be = De.containsNode(Ie);
|
|
38456
38398
|
if (Ie.remove(), Be)
|
|
38457
38399
|
return { range: null, mode: "outside-after" };
|
|
@@ -38460,8 +38402,8 @@ var quill = { exports: {} };
|
|
|
38460
38402
|
};
|
|
38461
38403
|
if (!(De.type === "Caret" || De.type === "Range"))
|
|
38462
38404
|
throw new TypeError("unexpected type: " + De.type);
|
|
38463
|
-
var Ye = ge(De,
|
|
38464
|
-
if (De.type === "Range" && (Je = ge(De,
|
|
38405
|
+
var Ye = ge(De, qe, !0), Je = void 0, vt = void 0;
|
|
38406
|
+
if (De.type === "Range" && (Je = ge(De, qe, !1), vt = we(De, Ye, Je)), De.type === "Caret") {
|
|
38465
38407
|
De.extend(Ye, 0);
|
|
38466
38408
|
var Xe = Ve();
|
|
38467
38409
|
return De.collapseToEnd(), Ae.setStart(Ye, Xe), Ae.setEnd(Ye, Xe), { range: Ae, mode: "caret" };
|
|
@@ -38549,8 +38491,8 @@ var quill = { exports: {} };
|
|
|
38549
38491
|
} else {
|
|
38550
38492
|
if ("value" in Ce)
|
|
38551
38493
|
return Ce.value;
|
|
38552
|
-
var
|
|
38553
|
-
return
|
|
38494
|
+
var Pe = Ce.get;
|
|
38495
|
+
return Pe === void 0 ? void 0 : Pe.call(_e);
|
|
38554
38496
|
}
|
|
38555
38497
|
}, de = re(0), he = pe(de), ue = re(7), ce = pe(ue);
|
|
38556
38498
|
function pe(ye) {
|
|
@@ -38587,25 +38529,25 @@ var quill = { exports: {} };
|
|
|
38587
38529
|
}, {
|
|
38588
38530
|
key: "restore",
|
|
38589
38531
|
value: function(_e) {
|
|
38590
|
-
var Ce = void 0, Le = void 0,
|
|
38532
|
+
var Ce = void 0, Le = void 0, Pe = _e.data.split(ve).join("");
|
|
38591
38533
|
if (_e === this.leftGuard)
|
|
38592
38534
|
if (this.prev instanceof ce.default) {
|
|
38593
38535
|
var Ie = this.prev.length();
|
|
38594
|
-
this.prev.insertAt(Ie,
|
|
38536
|
+
this.prev.insertAt(Ie, Pe), Ce = {
|
|
38595
38537
|
startNode: this.prev.domNode,
|
|
38596
|
-
startOffset: Ie +
|
|
38538
|
+
startOffset: Ie + Pe.length
|
|
38597
38539
|
};
|
|
38598
38540
|
} else
|
|
38599
|
-
Le = document.createTextNode(
|
|
38541
|
+
Le = document.createTextNode(Pe), this.parent.insertBefore(he.default.create(Le), this), Ce = {
|
|
38600
38542
|
startNode: Le,
|
|
38601
|
-
startOffset:
|
|
38543
|
+
startOffset: Pe.length
|
|
38602
38544
|
};
|
|
38603
|
-
else _e === this.rightGuard && (this.next instanceof ce.default ? (this.next.insertAt(0,
|
|
38545
|
+
else _e === this.rightGuard && (this.next instanceof ce.default ? (this.next.insertAt(0, Pe), Ce = {
|
|
38604
38546
|
startNode: this.next.domNode,
|
|
38605
|
-
startOffset:
|
|
38606
|
-
}) : (Le = document.createTextNode(
|
|
38547
|
+
startOffset: Pe.length
|
|
38548
|
+
}) : (Le = document.createTextNode(Pe), this.parent.insertBefore(he.default.create(Le), this.next), Ce = {
|
|
38607
38549
|
startNode: Le,
|
|
38608
|
-
startOffset:
|
|
38550
|
+
startOffset: Pe.length
|
|
38609
38551
|
}));
|
|
38610
38552
|
return _e.data = ve, Ce;
|
|
38611
38553
|
}
|
|
@@ -38613,9 +38555,9 @@ var quill = { exports: {} };
|
|
|
38613
38555
|
key: "update",
|
|
38614
38556
|
value: function(_e, Ce) {
|
|
38615
38557
|
var Le = this;
|
|
38616
|
-
_e.forEach(function(
|
|
38617
|
-
if (
|
|
38618
|
-
var Ie = Le.restore(
|
|
38558
|
+
_e.forEach(function(Pe) {
|
|
38559
|
+
if (Pe.type === "characterData" && (Pe.target === Le.leftGuard || Pe.target === Le.rightGuard)) {
|
|
38560
|
+
var Ie = Le.restore(Pe.target);
|
|
38619
38561
|
Ie && (Ce.range = Ie);
|
|
38620
38562
|
}
|
|
38621
38563
|
});
|
|
@@ -38698,8 +38640,8 @@ var quill = { exports: {} };
|
|
|
38698
38640
|
} else {
|
|
38699
38641
|
if ("value" in Ce)
|
|
38700
38642
|
return Ce.value;
|
|
38701
|
-
var
|
|
38702
|
-
return
|
|
38643
|
+
var Pe = Ce.get;
|
|
38644
|
+
return Pe === void 0 ? void 0 : Pe.call(_e);
|
|
38703
38645
|
}
|
|
38704
38646
|
}, de = re(0), he = ue(de);
|
|
38705
38647
|
function ue(ye) {
|
|
@@ -38817,8 +38759,8 @@ var quill = { exports: {} };
|
|
|
38817
38759
|
var ne = /* @__PURE__ */ function() {
|
|
38818
38760
|
function Se(_e, Ce) {
|
|
38819
38761
|
for (var Le = 0; Le < Ce.length; Le++) {
|
|
38820
|
-
var
|
|
38821
|
-
|
|
38762
|
+
var Pe = Ce[Le];
|
|
38763
|
+
Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(_e, Pe.key, Pe);
|
|
38822
38764
|
}
|
|
38823
38765
|
}
|
|
38824
38766
|
return function(_e, Ce, Le) {
|
|
@@ -38846,17 +38788,17 @@ var quill = { exports: {} };
|
|
|
38846
38788
|
ve(_e, Se);
|
|
38847
38789
|
function _e(Ce, Le) {
|
|
38848
38790
|
ge(this, _e);
|
|
38849
|
-
var
|
|
38850
|
-
return
|
|
38851
|
-
Ie !== ue.default.events.TEXT_CHANGE ||
|
|
38852
|
-
}),
|
|
38791
|
+
var Pe = me(this, (_e.__proto__ || Object.getPrototypeOf(_e)).call(this, Ce, Le));
|
|
38792
|
+
return Pe.lastRecorded = 0, Pe.ignoreChange = !1, Pe.clear(), Pe.quill.on(ue.default.events.EDITOR_CHANGE, function(Ie, ze, qe, Ae) {
|
|
38793
|
+
Ie !== ue.default.events.TEXT_CHANGE || Pe.ignoreChange || (!Pe.options.userOnly || Ae === ue.default.sources.USER ? Pe.record(ze, qe) : Pe.transform(ze));
|
|
38794
|
+
}), Pe.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, Pe.undo.bind(Pe)), Pe.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, Pe.redo.bind(Pe)), /Win/i.test(navigator.platform) && Pe.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, Pe.redo.bind(Pe)), Pe;
|
|
38853
38795
|
}
|
|
38854
38796
|
return ne(_e, [{
|
|
38855
38797
|
key: "change",
|
|
38856
|
-
value: function(Le,
|
|
38798
|
+
value: function(Le, Pe) {
|
|
38857
38799
|
if (this.stack[Le].length !== 0) {
|
|
38858
38800
|
var Ie = this.stack[Le].pop();
|
|
38859
|
-
this.stack[
|
|
38801
|
+
this.stack[Pe].push(Ie), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Ie[Le], ue.default.sources.USER), this.ignoreChange = !1;
|
|
38860
38802
|
var ze = we(Ie[Le]);
|
|
38861
38803
|
this.quill.setSelection(ze);
|
|
38862
38804
|
}
|
|
@@ -38873,13 +38815,13 @@ var quill = { exports: {} };
|
|
|
38873
38815
|
}
|
|
38874
38816
|
}, {
|
|
38875
38817
|
key: "record",
|
|
38876
|
-
value: function(Le,
|
|
38818
|
+
value: function(Le, Pe) {
|
|
38877
38819
|
if (Le.ops.length !== 0) {
|
|
38878
38820
|
this.stack.redo = [];
|
|
38879
|
-
var Ie = this.quill.getContents().diff(
|
|
38821
|
+
var Ie = this.quill.getContents().diff(Pe), ze = Date.now();
|
|
38880
38822
|
if (this.lastRecorded + this.options.delay > ze && this.stack.undo.length > 0) {
|
|
38881
|
-
var
|
|
38882
|
-
Ie = Ie.compose(
|
|
38823
|
+
var qe = this.stack.undo.pop();
|
|
38824
|
+
Ie = Ie.compose(qe.undo), Le = qe.redo.compose(Le);
|
|
38883
38825
|
} else
|
|
38884
38826
|
this.lastRecorded = ze;
|
|
38885
38827
|
this.stack.undo.push({
|
|
@@ -38896,10 +38838,10 @@ var quill = { exports: {} };
|
|
|
38896
38838
|
}, {
|
|
38897
38839
|
key: "transform",
|
|
38898
38840
|
value: function(Le) {
|
|
38899
|
-
this.stack.undo.forEach(function(
|
|
38900
|
-
|
|
38901
|
-
}), this.stack.redo.forEach(function(
|
|
38902
|
-
|
|
38841
|
+
this.stack.undo.forEach(function(Pe) {
|
|
38842
|
+
Pe.undo = Le.transform(Pe.undo, !0), Pe.redo = Le.transform(Pe.redo, !0);
|
|
38843
|
+
}), this.stack.redo.forEach(function(Pe) {
|
|
38844
|
+
Pe.undo = Le.transform(Pe.undo, !0), Pe.redo = Le.transform(Pe.redo, !0);
|
|
38903
38845
|
});
|
|
38904
38846
|
}
|
|
38905
38847
|
}, {
|
|
@@ -38922,8 +38864,8 @@ var quill = { exports: {} };
|
|
|
38922
38864
|
}) : !1;
|
|
38923
38865
|
}
|
|
38924
38866
|
function we(Se) {
|
|
38925
|
-
var _e = Se.reduce(function(Le,
|
|
38926
|
-
return Le +=
|
|
38867
|
+
var _e = Se.reduce(function(Le, Pe) {
|
|
38868
|
+
return Le += Pe.delete || 0, Le;
|
|
38927
38869
|
}, 0), Ce = Se.length() - _e;
|
|
38928
38870
|
return ye(Se) && (Ce -= 1), Ce;
|
|
38929
38871
|
}
|
|
@@ -38957,11 +38899,11 @@ var quill = { exports: {} };
|
|
|
38957
38899
|
var it = je.get;
|
|
38958
38900
|
return it === void 0 ? void 0 : it.call(Ze);
|
|
38959
38901
|
}
|
|
38960
|
-
}, de = re(3), he = ze(de), ue = re(2), ce = ze(ue), pe = re(8), fe = ze(pe), ge = re(23), me = ze(ge), ve = re(35), be = ze(ve), ye = re(60), we = ze(ye), Se = re(61), _e = ze(Se), Ce = re(28), Le = ze(Ce),
|
|
38902
|
+
}, de = re(3), he = ze(de), ue = re(2), ce = ze(ue), pe = re(8), fe = ze(pe), ge = re(23), me = ze(ge), ve = re(35), be = ze(ve), ye = re(60), we = ze(ye), Se = re(61), _e = ze(Se), Ce = re(28), Le = ze(Ce), Pe = re(62), Ie = ze(Pe);
|
|
38961
38903
|
function ze(Ue) {
|
|
38962
38904
|
return Ue && Ue.__esModule ? Ue : { default: Ue };
|
|
38963
38905
|
}
|
|
38964
|
-
function
|
|
38906
|
+
function qe(Ue, We) {
|
|
38965
38907
|
if (!(Ue instanceof We))
|
|
38966
38908
|
throw new TypeError("Cannot call a class as a function");
|
|
38967
38909
|
}
|
|
@@ -38978,7 +38920,7 @@ var quill = { exports: {} };
|
|
|
38978
38920
|
var Me = [!1, "center", "right", "justify"], Be = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], Ve = [!1, "serif", "monospace"], Ye = ["1", "2", "3", !1], Je = ["petita", !1, "gran", "enorme"], vt = function(Ue) {
|
|
38979
38921
|
De(We, Ue);
|
|
38980
38922
|
function We(Qe, Ze) {
|
|
38981
|
-
|
|
38923
|
+
qe(this, We);
|
|
38982
38924
|
var je = Ae(this, (We.__proto__ || Object.getPrototypeOf(We)).call(this, Qe, Ze)), Ke = function it(nt) {
|
|
38983
38925
|
if (!document.body.contains(Qe.root))
|
|
38984
38926
|
return document.body.removeEventListener("click", it);
|
|
@@ -39063,7 +39005,7 @@ var quill = { exports: {} };
|
|
|
39063
39005
|
var Xe = function(Ue) {
|
|
39064
39006
|
De(We, Ue);
|
|
39065
39007
|
function We(Qe, Ze) {
|
|
39066
|
-
|
|
39008
|
+
qe(this, We);
|
|
39067
39009
|
var je = Ae(this, (We.__proto__ || Object.getPrototypeOf(We)).call(this, Qe, Ze));
|
|
39068
39010
|
return je.textbox = je.root.querySelector('input[type="text"]'), je.listen(), je;
|
|
39069
39011
|
}
|
|
@@ -39257,8 +39199,8 @@ var quill = { exports: {} };
|
|
|
39257
39199
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
39258
39200
|
for (Se.forEach(function(Ce) {
|
|
39259
39201
|
var Le = de.find(Ce.target, !0);
|
|
39260
|
-
Le != null && (Le.domNode === Ce.target && (Ce.type === "childList" ? (ye(de.find(Ce.previousSibling, !1)), [].forEach.call(Ce.addedNodes, function(
|
|
39261
|
-
var Ie = de.find(
|
|
39202
|
+
Le != null && (Le.domNode === Ce.target && (Ce.type === "childList" ? (ye(de.find(Ce.previousSibling, !1)), [].forEach.call(Ce.addedNodes, function(Pe) {
|
|
39203
|
+
var Ie = de.find(Pe, !1);
|
|
39262
39204
|
ye(Ie, !1), Ie instanceof oe.default && Ie.children.forEach(function(ze) {
|
|
39263
39205
|
ye(ze, !1);
|
|
39264
39206
|
});
|
|
@@ -39527,12 +39469,12 @@ var quill = { exports: {} };
|
|
|
39527
39469
|
if (_e == Ce)
|
|
39528
39470
|
return _e ? [[oe, _e]] : [];
|
|
39529
39471
|
(Le < 0 || _e.length < Le) && (Le = null);
|
|
39530
|
-
var
|
|
39531
|
-
_e = _e.substring(
|
|
39532
|
-
var ze = _e.substring(_e.length -
|
|
39533
|
-
_e = _e.substring(0, _e.length -
|
|
39534
|
-
var
|
|
39535
|
-
return Ie &&
|
|
39472
|
+
var Pe = pe(_e, Ce), Ie = _e.substring(0, Pe);
|
|
39473
|
+
_e = _e.substring(Pe), Ce = Ce.substring(Pe), Pe = fe(_e, Ce);
|
|
39474
|
+
var ze = _e.substring(_e.length - Pe);
|
|
39475
|
+
_e = _e.substring(0, _e.length - Pe), Ce = Ce.substring(0, Ce.length - Pe);
|
|
39476
|
+
var qe = he(_e, Ce);
|
|
39477
|
+
return Ie && qe.unshift([oe, Ie]), ze && qe.push([oe, ze]), me(qe), Le != null && (qe = ye(qe, Le)), qe = we(qe), qe;
|
|
39536
39478
|
}
|
|
39537
39479
|
function he(_e, Ce) {
|
|
39538
39480
|
var Le;
|
|
@@ -39540,39 +39482,39 @@ var quill = { exports: {} };
|
|
|
39540
39482
|
return [[ne, Ce]];
|
|
39541
39483
|
if (!Ce)
|
|
39542
39484
|
return [[re, _e]];
|
|
39543
|
-
var
|
|
39485
|
+
var Pe = _e.length > Ce.length ? _e : Ce, Ie = _e.length > Ce.length ? Ce : _e, ze = Pe.indexOf(Ie);
|
|
39544
39486
|
if (ze != -1)
|
|
39545
39487
|
return Le = [
|
|
39546
|
-
[ne,
|
|
39488
|
+
[ne, Pe.substring(0, ze)],
|
|
39547
39489
|
[oe, Ie],
|
|
39548
|
-
[ne,
|
|
39490
|
+
[ne, Pe.substring(ze + Ie.length)]
|
|
39549
39491
|
], _e.length > Ce.length && (Le[0][0] = Le[2][0] = re), Le;
|
|
39550
39492
|
if (Ie.length == 1)
|
|
39551
39493
|
return [[re, _e], [ne, Ce]];
|
|
39552
|
-
var
|
|
39553
|
-
if (
|
|
39554
|
-
var Ae =
|
|
39494
|
+
var qe = ge(_e, Ce);
|
|
39495
|
+
if (qe) {
|
|
39496
|
+
var Ae = qe[0], De = qe[1], Me = qe[2], Be = qe[3], Ve = qe[4], Ye = de(Ae, Me), Je = de(De, Be);
|
|
39555
39497
|
return Ye.concat([[oe, Ve]], Je);
|
|
39556
39498
|
}
|
|
39557
39499
|
return ue(_e, Ce);
|
|
39558
39500
|
}
|
|
39559
39501
|
function ue(_e, Ce) {
|
|
39560
|
-
for (var Le = _e.length,
|
|
39502
|
+
for (var Le = _e.length, Pe = Ce.length, Ie = Math.ceil((Le + Pe) / 2), ze = Ie, qe = 2 * Ie, Ae = new Array(qe), De = new Array(qe), Me = 0; Me < qe; Me++)
|
|
39561
39503
|
Ae[Me] = -1, De[Me] = -1;
|
|
39562
39504
|
Ae[ze + 1] = 0, De[ze + 1] = 0;
|
|
39563
|
-
for (var Be = Le -
|
|
39505
|
+
for (var Be = Le - Pe, Ve = Be % 2 != 0, Ye = 0, Je = 0, vt = 0, Xe = 0, Ge = 0; Ge < Ie; Ge++) {
|
|
39564
39506
|
for (var Ne = -Ge + Ye; Ne <= Ge - Je; Ne += 2) {
|
|
39565
39507
|
var Ue = ze + Ne, We;
|
|
39566
39508
|
Ne == -Ge || Ne != Ge && Ae[Ue - 1] < Ae[Ue + 1] ? We = Ae[Ue + 1] : We = Ae[Ue - 1] + 1;
|
|
39567
|
-
for (var Qe = We - Ne; We < Le && Qe <
|
|
39509
|
+
for (var Qe = We - Ne; We < Le && Qe < Pe && _e.charAt(We) == Ce.charAt(Qe); )
|
|
39568
39510
|
We++, Qe++;
|
|
39569
39511
|
if (Ae[Ue] = We, We > Le)
|
|
39570
39512
|
Je += 2;
|
|
39571
|
-
else if (Qe >
|
|
39513
|
+
else if (Qe > Pe)
|
|
39572
39514
|
Ye += 2;
|
|
39573
39515
|
else if (Ve) {
|
|
39574
39516
|
var Ze = ze + Be - Ne;
|
|
39575
|
-
if (Ze >= 0 && Ze <
|
|
39517
|
+
if (Ze >= 0 && Ze < qe && De[Ze] != -1) {
|
|
39576
39518
|
var je = Le - De[Ze];
|
|
39577
39519
|
if (We >= je)
|
|
39578
39520
|
return ce(_e, Ce, We, Qe);
|
|
@@ -39582,15 +39524,15 @@ var quill = { exports: {} };
|
|
|
39582
39524
|
for (var Ke = -Ge + vt; Ke <= Ge - Xe; Ke += 2) {
|
|
39583
39525
|
var Ze = ze + Ke, je;
|
|
39584
39526
|
Ke == -Ge || Ke != Ge && De[Ze - 1] < De[Ze + 1] ? je = De[Ze + 1] : je = De[Ze - 1] + 1;
|
|
39585
|
-
for (var it = je - Ke; je < Le && it <
|
|
39527
|
+
for (var it = je - Ke; je < Le && it < Pe && _e.charAt(Le - je - 1) == Ce.charAt(Pe - it - 1); )
|
|
39586
39528
|
je++, it++;
|
|
39587
39529
|
if (De[Ze] = je, je > Le)
|
|
39588
39530
|
Xe += 2;
|
|
39589
|
-
else if (it >
|
|
39531
|
+
else if (it > Pe)
|
|
39590
39532
|
vt += 2;
|
|
39591
39533
|
else if (!Ve) {
|
|
39592
39534
|
var Ue = ze + Be - Ke;
|
|
39593
|
-
if (Ue >= 0 && Ue <
|
|
39535
|
+
if (Ue >= 0 && Ue < qe && Ae[Ue] != -1) {
|
|
39594
39536
|
var We = Ae[Ue], Qe = ze + We - Ue;
|
|
39595
39537
|
if (je = Le - je, We >= je)
|
|
39596
39538
|
return ce(_e, Ce, We, Qe);
|
|
@@ -39600,27 +39542,27 @@ var quill = { exports: {} };
|
|
|
39600
39542
|
}
|
|
39601
39543
|
return [[re, _e], [ne, Ce]];
|
|
39602
39544
|
}
|
|
39603
|
-
function ce(_e, Ce, Le,
|
|
39604
|
-
var Ie = _e.substring(0, Le), ze = Ce.substring(0,
|
|
39545
|
+
function ce(_e, Ce, Le, Pe) {
|
|
39546
|
+
var Ie = _e.substring(0, Le), ze = Ce.substring(0, Pe), qe = _e.substring(Le), Ae = Ce.substring(Pe), De = de(Ie, ze), Me = de(qe, Ae);
|
|
39605
39547
|
return De.concat(Me);
|
|
39606
39548
|
}
|
|
39607
39549
|
function pe(_e, Ce) {
|
|
39608
39550
|
if (!_e || !Ce || _e.charAt(0) != Ce.charAt(0))
|
|
39609
39551
|
return 0;
|
|
39610
|
-
for (var Le = 0,
|
|
39611
|
-
_e.substring(ze, Ie) == Ce.substring(ze, Ie) ? (Le = Ie, ze = Le) :
|
|
39552
|
+
for (var Le = 0, Pe = Math.min(_e.length, Ce.length), Ie = Pe, ze = 0; Le < Ie; )
|
|
39553
|
+
_e.substring(ze, Ie) == Ce.substring(ze, Ie) ? (Le = Ie, ze = Le) : Pe = Ie, Ie = Math.floor((Pe - Le) / 2 + Le);
|
|
39612
39554
|
return Ie;
|
|
39613
39555
|
}
|
|
39614
39556
|
function fe(_e, Ce) {
|
|
39615
39557
|
if (!_e || !Ce || _e.charAt(_e.length - 1) != Ce.charAt(Ce.length - 1))
|
|
39616
39558
|
return 0;
|
|
39617
|
-
for (var Le = 0,
|
|
39618
|
-
_e.substring(_e.length - Ie, _e.length - ze) == Ce.substring(Ce.length - Ie, Ce.length - ze) ? (Le = Ie, ze = Le) :
|
|
39559
|
+
for (var Le = 0, Pe = Math.min(_e.length, Ce.length), Ie = Pe, ze = 0; Le < Ie; )
|
|
39560
|
+
_e.substring(_e.length - Ie, _e.length - ze) == Ce.substring(Ce.length - Ie, Ce.length - ze) ? (Le = Ie, ze = Le) : Pe = Ie, Ie = Math.floor((Pe - Le) / 2 + Le);
|
|
39619
39561
|
return Ie;
|
|
39620
39562
|
}
|
|
39621
39563
|
function ge(_e, Ce) {
|
|
39622
|
-
var Le = _e.length > Ce.length ? _e : Ce,
|
|
39623
|
-
if (Le.length < 4 ||
|
|
39564
|
+
var Le = _e.length > Ce.length ? _e : Ce, Pe = _e.length > Ce.length ? Ce : _e;
|
|
39565
|
+
if (Le.length < 4 || Pe.length * 2 < Le.length)
|
|
39624
39566
|
return null;
|
|
39625
39567
|
function Ie(Je, vt, Xe) {
|
|
39626
39568
|
for (var Ge = Je.substring(Xe, Xe + Math.floor(Je.length / 4)), Ne = -1, Ue = "", We, Qe, Ze, je; (Ne = vt.indexOf(Ge, Ne + 1)) != -1; ) {
|
|
@@ -39643,16 +39585,16 @@ var quill = { exports: {} };
|
|
|
39643
39585
|
}
|
|
39644
39586
|
var ze = Ie(
|
|
39645
39587
|
Le,
|
|
39646
|
-
|
|
39588
|
+
Pe,
|
|
39647
39589
|
Math.ceil(Le.length / 4)
|
|
39648
|
-
),
|
|
39590
|
+
), qe = Ie(
|
|
39649
39591
|
Le,
|
|
39650
|
-
|
|
39592
|
+
Pe,
|
|
39651
39593
|
Math.ceil(Le.length / 2)
|
|
39652
39594
|
), Ae;
|
|
39653
|
-
if (!ze && !
|
|
39595
|
+
if (!ze && !qe)
|
|
39654
39596
|
return null;
|
|
39655
|
-
|
|
39597
|
+
qe ? ze ? Ae = ze[4].length > qe[4].length ? ze : qe : Ae = qe : Ae = ze;
|
|
39656
39598
|
var De, Me, Be, Ve;
|
|
39657
39599
|
_e.length > Ce.length ? (De = Ae[0], Me = Ae[1], Be = Ae[2], Ve = Ae[3]) : (Be = Ae[0], Ve = Ae[1], De = Ae[2], Me = Ae[3]);
|
|
39658
39600
|
var Ye = Ae[4];
|
|
@@ -39660,32 +39602,32 @@ var quill = { exports: {} };
|
|
|
39660
39602
|
}
|
|
39661
39603
|
function me(_e) {
|
|
39662
39604
|
_e.push([oe, ""]);
|
|
39663
|
-
for (var Ce = 0, Le = 0,
|
|
39605
|
+
for (var Ce = 0, Le = 0, Pe = 0, Ie = "", ze = "", qe; Ce < _e.length; )
|
|
39664
39606
|
switch (_e[Ce][0]) {
|
|
39665
39607
|
case ne:
|
|
39666
|
-
|
|
39608
|
+
Pe++, ze += _e[Ce][1], Ce++;
|
|
39667
39609
|
break;
|
|
39668
39610
|
case re:
|
|
39669
39611
|
Le++, Ie += _e[Ce][1], Ce++;
|
|
39670
39612
|
break;
|
|
39671
39613
|
case oe:
|
|
39672
|
-
Le +
|
|
39614
|
+
Le + Pe > 1 ? (Le !== 0 && Pe !== 0 && (qe = pe(ze, Ie), qe !== 0 && (Ce - Le - Pe > 0 && _e[Ce - Le - Pe - 1][0] == oe ? _e[Ce - Le - Pe - 1][1] += ze.substring(0, qe) : (_e.splice(0, 0, [
|
|
39673
39615
|
oe,
|
|
39674
|
-
ze.substring(0,
|
|
39675
|
-
]), Ce++), ze = ze.substring(
|
|
39676
|
-
Ce -
|
|
39677
|
-
Le +
|
|
39616
|
+
ze.substring(0, qe)
|
|
39617
|
+
]), Ce++), ze = ze.substring(qe), Ie = Ie.substring(qe)), qe = fe(ze, Ie), qe !== 0 && (_e[Ce][1] = ze.substring(ze.length - qe) + _e[Ce][1], ze = ze.substring(0, ze.length - qe), Ie = Ie.substring(0, Ie.length - qe))), Le === 0 ? _e.splice(
|
|
39618
|
+
Ce - Pe,
|
|
39619
|
+
Le + Pe,
|
|
39678
39620
|
[ne, ze]
|
|
39679
|
-
) :
|
|
39621
|
+
) : Pe === 0 ? _e.splice(
|
|
39680
39622
|
Ce - Le,
|
|
39681
|
-
Le +
|
|
39623
|
+
Le + Pe,
|
|
39682
39624
|
[re, Ie]
|
|
39683
39625
|
) : _e.splice(
|
|
39684
|
-
Ce - Le -
|
|
39685
|
-
Le +
|
|
39626
|
+
Ce - Le - Pe,
|
|
39627
|
+
Le + Pe,
|
|
39686
39628
|
[re, Ie],
|
|
39687
39629
|
[ne, ze]
|
|
39688
|
-
), Ce = Ce - Le -
|
|
39630
|
+
), Ce = Ce - Le - Pe + (Le ? 1 : 0) + (Pe ? 1 : 0) + 1) : Ce !== 0 && _e[Ce - 1][0] == oe ? (_e[Ce - 1][1] += _e[Ce][1], _e.splice(Ce, 1)) : Ce++, Pe = 0, Le = 0, Ie = "", ze = "";
|
|
39689
39631
|
break;
|
|
39690
39632
|
}
|
|
39691
39633
|
_e[_e.length - 1][1] === "" && _e.pop();
|
|
@@ -39699,16 +39641,16 @@ var quill = { exports: {} };
|
|
|
39699
39641
|
function be(_e, Ce) {
|
|
39700
39642
|
if (Ce === 0)
|
|
39701
39643
|
return [oe, _e];
|
|
39702
|
-
for (var Le = 0,
|
|
39703
|
-
var Ie = _e[
|
|
39644
|
+
for (var Le = 0, Pe = 0; Pe < _e.length; Pe++) {
|
|
39645
|
+
var Ie = _e[Pe];
|
|
39704
39646
|
if (Ie[0] === re || Ie[0] === oe) {
|
|
39705
39647
|
var ze = Le + Ie[1].length;
|
|
39706
39648
|
if (Ce === ze)
|
|
39707
|
-
return [
|
|
39649
|
+
return [Pe + 1, _e];
|
|
39708
39650
|
if (Ce < ze) {
|
|
39709
39651
|
_e = _e.slice();
|
|
39710
|
-
var
|
|
39711
|
-
return _e.splice(
|
|
39652
|
+
var qe = Ce - Le, Ae = [Ie[0], Ie[1].slice(0, qe)], De = [Ie[0], Ie[1].slice(qe)];
|
|
39653
|
+
return _e.splice(Pe, 1, Ae, De), [Pe + 1, _e];
|
|
39712
39654
|
} else
|
|
39713
39655
|
Le = ze;
|
|
39714
39656
|
}
|
|
@@ -39716,27 +39658,27 @@ var quill = { exports: {} };
|
|
|
39716
39658
|
throw new Error("cursor_pos is out of bounds!");
|
|
39717
39659
|
}
|
|
39718
39660
|
function ye(_e, Ce) {
|
|
39719
|
-
var Le = be(_e, Ce),
|
|
39661
|
+
var Le = be(_e, Ce), Pe = Le[1], Ie = Le[0], ze = Pe[Ie], qe = Pe[Ie + 1];
|
|
39720
39662
|
if (ze == null)
|
|
39721
39663
|
return _e;
|
|
39722
39664
|
if (ze[0] !== oe)
|
|
39723
39665
|
return _e;
|
|
39724
|
-
if (
|
|
39725
|
-
return
|
|
39726
|
-
if (
|
|
39727
|
-
|
|
39728
|
-
var Ae =
|
|
39729
|
-
return Ae.length > 0 &&
|
|
39666
|
+
if (qe != null && ze[1] + qe[1] === qe[1] + ze[1])
|
|
39667
|
+
return Pe.splice(Ie, 2, qe, ze), Se(Pe, Ie, 2);
|
|
39668
|
+
if (qe != null && qe[1].indexOf(ze[1]) === 0) {
|
|
39669
|
+
Pe.splice(Ie, 2, [qe[0], ze[1]], [0, ze[1]]);
|
|
39670
|
+
var Ae = qe[1].slice(ze[1].length);
|
|
39671
|
+
return Ae.length > 0 && Pe.splice(Ie + 2, 0, [qe[0], Ae]), Se(Pe, Ie, 3);
|
|
39730
39672
|
} else
|
|
39731
39673
|
return _e;
|
|
39732
39674
|
}
|
|
39733
39675
|
function we(_e) {
|
|
39734
|
-
for (var Ce = !1, Le = function(
|
|
39735
|
-
return
|
|
39736
|
-
},
|
|
39737
|
-
return
|
|
39676
|
+
for (var Ce = !1, Le = function(qe) {
|
|
39677
|
+
return qe.charCodeAt(0) >= 56320 && qe.charCodeAt(0) <= 57343;
|
|
39678
|
+
}, Pe = function(qe) {
|
|
39679
|
+
return qe.charCodeAt(qe.length - 1) >= 55296 && qe.charCodeAt(qe.length - 1) <= 56319;
|
|
39738
39680
|
}, Ie = 2; Ie < _e.length; Ie += 1)
|
|
39739
|
-
_e[Ie - 2][0] === oe &&
|
|
39681
|
+
_e[Ie - 2][0] === oe && Pe(_e[Ie - 2][1]) && _e[Ie - 1][0] === re && Le(_e[Ie - 1][1]) && _e[Ie][0] === ne && Le(_e[Ie][1]) && (Ce = !0, _e[Ie - 1][1] = _e[Ie - 2][1].slice(-1) + _e[Ie - 1][1], _e[Ie][1] = _e[Ie - 2][1].slice(-1) + _e[Ie][1], _e[Ie - 2][1] = _e[Ie - 2][1].slice(0, -1));
|
|
39740
39682
|
if (!Ce)
|
|
39741
39683
|
return _e;
|
|
39742
39684
|
for (var ze = [], Ie = 0; Ie < _e.length; Ie += 1)
|
|
@@ -39744,10 +39686,10 @@ var quill = { exports: {} };
|
|
|
39744
39686
|
return ze;
|
|
39745
39687
|
}
|
|
39746
39688
|
function Se(_e, Ce, Le) {
|
|
39747
|
-
for (var
|
|
39748
|
-
if (
|
|
39749
|
-
var Ie = _e[
|
|
39750
|
-
Ie[0] === ze[1] && _e.splice(
|
|
39689
|
+
for (var Pe = Ce + Le - 1; Pe >= 0 && Pe >= Ce - 1; Pe--)
|
|
39690
|
+
if (Pe + 1 < _e.length) {
|
|
39691
|
+
var Ie = _e[Pe], ze = _e[Pe + 1];
|
|
39692
|
+
Ie[0] === ze[1] && _e.splice(Pe, 2, [Ie[0], Ie[1] + ze[1]]);
|
|
39751
39693
|
}
|
|
39752
39694
|
return _e;
|
|
39753
39695
|
}
|
|
@@ -39920,7 +39862,7 @@ var quill = { exports: {} };
|
|
|
39920
39862
|
return function(mt, xt, St) {
|
|
39921
39863
|
return xt && gt(mt.prototype, xt), St && gt(mt, St), mt;
|
|
39922
39864
|
};
|
|
39923
|
-
}(), he = re(3), ue = De(he), ce = re(2), pe = De(ce), fe = re(0), ge = De(fe), me = re(5), ve = De(me), be = re(10), ye = De(be), we = re(9), Se = De(we), _e = re(37), Ce = re(38), Le = re(13),
|
|
39865
|
+
}(), he = re(3), ue = De(he), ce = re(2), pe = De(ce), fe = re(0), ge = De(fe), me = re(5), ve = De(me), be = re(10), ye = De(be), we = re(9), Se = De(we), _e = re(37), Ce = re(38), Le = re(13), Pe = De(Le), Ie = re(26), ze = re(39), qe = re(40), Ae = re(41);
|
|
39924
39866
|
function De(gt) {
|
|
39925
39867
|
return gt && gt.__esModule ? gt : { default: gt };
|
|
39926
39868
|
}
|
|
@@ -39941,9 +39883,9 @@ var quill = { exports: {} };
|
|
|
39941
39883
|
throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
|
|
39942
39884
|
gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
|
|
39943
39885
|
}
|
|
39944
|
-
var Je = (0, ye.default)("quill:clipboard"), vt = "__ql-matcher", Xe = [[Node.TEXT_NODE, rr], [Node.TEXT_NODE, Bt], ["br",
|
|
39886
|
+
var Je = (0, ye.default)("quill:clipboard"), vt = "__ql-matcher", Xe = [[Node.TEXT_NODE, rr], [Node.TEXT_NODE, Bt], ["br", Ct], [Node.ELEMENT_NODE, Bt], [Node.ELEMENT_NODE, bt], [Node.ELEMENT_NODE, jt], [Node.ELEMENT_NODE, nt], [Node.ELEMENT_NODE, dr], ["li", Lt], ["b", it.bind(it, "bold")], ["i", it.bind(it, "italic")], ["style", Dt]], Ge = [_e.AlignAttribute, ze.DirectionAttribute].reduce(function(gt, mt) {
|
|
39945
39887
|
return gt[mt.keyName] = mt, gt;
|
|
39946
|
-
}, {}), Ne = [_e.AlignStyle, Ce.BackgroundStyle, Ie.ColorStyle, ze.DirectionStyle,
|
|
39888
|
+
}, {}), Ne = [_e.AlignStyle, Ce.BackgroundStyle, Ie.ColorStyle, ze.DirectionStyle, qe.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
|
|
39947
39889
|
return gt[mt.keyName] = mt, gt;
|
|
39948
39890
|
}, {}), Ue = function(gt) {
|
|
39949
39891
|
Ye(mt, gt);
|
|
@@ -39966,9 +39908,9 @@ var quill = { exports: {} };
|
|
|
39966
39908
|
if (typeof St == "string")
|
|
39967
39909
|
return this.container.innerHTML = St.replace(/\>\r?\n +\</g, "><"), this.convert();
|
|
39968
39910
|
var $t = this.quill.getFormat(this.quill.selection.savedRange.index);
|
|
39969
|
-
if ($t[
|
|
39911
|
+
if ($t[Pe.default.blotName]) {
|
|
39970
39912
|
var Ft = this.container.innerText;
|
|
39971
|
-
return this.container.innerHTML = "", new pe.default().insert(Ft, Me({},
|
|
39913
|
+
return this.container.innerHTML = "", new pe.default().insert(Ft, Me({}, Pe.default.blotName, $t[Pe.default.blotName]));
|
|
39972
39914
|
}
|
|
39973
39915
|
var Nt = this.prepareMatching(), zt = oe(Nt, 2), or = zt[0], pr = zt[1], Zt = Ke(this.container, or, pr);
|
|
39974
39916
|
return Ze(Zt, `
|
|
@@ -40079,7 +40021,7 @@ var quill = { exports: {} };
|
|
|
40079
40021
|
} else typeof xt.formats == "function" && (mt = We(mt, xt.blotName, xt.formats(gt)));
|
|
40080
40022
|
return mt;
|
|
40081
40023
|
}
|
|
40082
|
-
function
|
|
40024
|
+
function Ct(gt, mt) {
|
|
40083
40025
|
return Ze(mt, `
|
|
40084
40026
|
`) || mt.insert(`
|
|
40085
40027
|
`), mt;
|
|
@@ -40262,14 +40204,14 @@ var quill = { exports: {} };
|
|
|
40262
40204
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Me);
|
|
40263
40205
|
De.prototype = Object.create(Me && Me.prototype, { constructor: { value: De, enumerable: !1, writable: !0, configurable: !0 } }), Me && (Object.setPrototypeOf ? Object.setPrototypeOf(De, Me) : De.__proto__ = Me);
|
|
40264
40206
|
}
|
|
40265
|
-
var Le = "getRootNode" in document,
|
|
40207
|
+
var Le = "getRootNode" in document, Pe = (0, me.default)("quill:toolbar"), Ie = function(De) {
|
|
40266
40208
|
Ce(Me, De);
|
|
40267
40209
|
function Me(Be, Ve) {
|
|
40268
40210
|
Se(this, Me);
|
|
40269
40211
|
var Ye = _e(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, Be, Ve));
|
|
40270
40212
|
if (Array.isArray(Ye.options.container)) {
|
|
40271
40213
|
var Je = document.createElement("div");
|
|
40272
|
-
|
|
40214
|
+
qe(Je, Ye.options.container), Be.container.parentNode.insertBefore(Je, Be.container), Ye.container = Je;
|
|
40273
40215
|
} else if (typeof Ye.options.container == "string") {
|
|
40274
40216
|
var vt = Le ? Be.container.getRootNode() : document;
|
|
40275
40217
|
Ye.container = vt.querySelector(Ye.options.container);
|
|
@@ -40277,7 +40219,7 @@ var quill = { exports: {} };
|
|
|
40277
40219
|
Ye.container = Ye.options.container;
|
|
40278
40220
|
if (!(Ye.container instanceof HTMLElement)) {
|
|
40279
40221
|
var Xe;
|
|
40280
|
-
return Xe =
|
|
40222
|
+
return Xe = Pe.error("Container required for toolbar", Ye.options), _e(Ye, Xe);
|
|
40281
40223
|
}
|
|
40282
40224
|
return Ye.container.classList.add("ql-toolbar"), Ye.controls = [], Ye.handlers = {}, Object.keys(Ye.options.handlers).forEach(function(Ge) {
|
|
40283
40225
|
Ye.addHandler(Ge, Ye.options.handlers[Ge]);
|
|
@@ -40304,11 +40246,11 @@ var quill = { exports: {} };
|
|
|
40304
40246
|
if (Je) {
|
|
40305
40247
|
if (Je = Je.slice(3), Ve.tagName === "BUTTON" && Ve.setAttribute("type", "button"), this.handlers[Je] == null) {
|
|
40306
40248
|
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[Je] == null) {
|
|
40307
|
-
|
|
40249
|
+
Pe.warn("ignoring attaching to disabled format", Je, Ve);
|
|
40308
40250
|
return;
|
|
40309
40251
|
}
|
|
40310
40252
|
if (ce.default.query(Je) == null) {
|
|
40311
|
-
|
|
40253
|
+
Pe.warn("ignoring attaching to nonexistent format", Je, Ve);
|
|
40312
40254
|
return;
|
|
40313
40255
|
}
|
|
40314
40256
|
}
|
|
@@ -40367,7 +40309,7 @@ var quill = { exports: {} };
|
|
|
40367
40309
|
var Ve = document.createElement("button");
|
|
40368
40310
|
Ve.setAttribute("type", "button"), Ve.classList.add("ql-" + Me), Be != null && (Ve.value = Be), De.appendChild(Ve);
|
|
40369
40311
|
}
|
|
40370
|
-
function
|
|
40312
|
+
function qe(De, Me) {
|
|
40371
40313
|
Array.isArray(Me[0]) || (Me = [Me]), Me.forEach(function(Be) {
|
|
40372
40314
|
var Ve = document.createElement("span");
|
|
40373
40315
|
Ve.classList.add("ql-formats"), Be.forEach(function(Ye) {
|
|
@@ -40420,7 +40362,7 @@ var quill = { exports: {} };
|
|
|
40420
40362
|
Me === "check" ? Ve.list === "checked" || Ve.list === "unchecked" ? this.quill.format("list", !1, fe.default.sources.USER) : this.quill.format("list", "unchecked", fe.default.sources.USER) : this.quill.format("list", Me, fe.default.sources.USER);
|
|
40421
40363
|
}
|
|
40422
40364
|
}
|
|
40423
|
-
}, te.default = Ie, te.addControls =
|
|
40365
|
+
}, te.default = Ie, te.addControls = qe;
|
|
40424
40366
|
},
|
|
40425
40367
|
/* 59 */
|
|
40426
40368
|
/***/
|
|
@@ -40624,7 +40566,7 @@ var quill = { exports: {} };
|
|
|
40624
40566
|
value: !0
|
|
40625
40567
|
});
|
|
40626
40568
|
var ne = /* @__PURE__ */ function() {
|
|
40627
|
-
function
|
|
40569
|
+
function qe(Ae, De) {
|
|
40628
40570
|
var Me = [], Be = !0, Ve = !1, Ye = void 0;
|
|
40629
40571
|
try {
|
|
40630
40572
|
for (var Je = Ae[Symbol.iterator](), vt; !(Be = (vt = Je.next()).done) && (Me.push(vt.value), !(De && Me.length === De)); Be = !0)
|
|
@@ -40644,15 +40586,15 @@ var quill = { exports: {} };
|
|
|
40644
40586
|
if (Array.isArray(Ae))
|
|
40645
40587
|
return Ae;
|
|
40646
40588
|
if (Symbol.iterator in Object(Ae))
|
|
40647
|
-
return
|
|
40589
|
+
return qe(Ae, De);
|
|
40648
40590
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
40649
40591
|
};
|
|
40650
|
-
}(), oe = function
|
|
40592
|
+
}(), oe = function qe(Ae, De, Me) {
|
|
40651
40593
|
Ae === null && (Ae = Function.prototype);
|
|
40652
40594
|
var Be = Object.getOwnPropertyDescriptor(Ae, De);
|
|
40653
40595
|
if (Be === void 0) {
|
|
40654
40596
|
var Ve = Object.getPrototypeOf(Ae);
|
|
40655
|
-
return Ve === null ? void 0 :
|
|
40597
|
+
return Ve === null ? void 0 : qe(Ve, De, Me);
|
|
40656
40598
|
} else {
|
|
40657
40599
|
if ("value" in Be)
|
|
40658
40600
|
return Be.value;
|
|
@@ -40660,37 +40602,37 @@ var quill = { exports: {} };
|
|
|
40660
40602
|
return Ye === void 0 ? void 0 : Ye.call(Me);
|
|
40661
40603
|
}
|
|
40662
40604
|
}, de = /* @__PURE__ */ function() {
|
|
40663
|
-
function
|
|
40605
|
+
function qe(Ae, De) {
|
|
40664
40606
|
for (var Me = 0; Me < De.length; Me++) {
|
|
40665
40607
|
var Be = De[Me];
|
|
40666
40608
|
Be.enumerable = Be.enumerable || !1, Be.configurable = !0, "value" in Be && (Be.writable = !0), Object.defineProperty(Ae, Be.key, Be);
|
|
40667
40609
|
}
|
|
40668
40610
|
}
|
|
40669
40611
|
return function(Ae, De, Me) {
|
|
40670
|
-
return De &&
|
|
40612
|
+
return De && qe(Ae.prototype, De), Me && qe(Ae, Me), Ae;
|
|
40671
40613
|
};
|
|
40672
40614
|
}(), he = re(3), ue = Se(he), ce = re(8), pe = Se(ce), fe = re(44), ge = Se(fe), me = re(27), ve = Se(me), be = re(15), ye = re(42), we = Se(ye);
|
|
40673
|
-
function Se(
|
|
40674
|
-
return
|
|
40615
|
+
function Se(qe) {
|
|
40616
|
+
return qe && qe.__esModule ? qe : { default: qe };
|
|
40675
40617
|
}
|
|
40676
|
-
function _e(
|
|
40677
|
-
if (!(
|
|
40618
|
+
function _e(qe, Ae) {
|
|
40619
|
+
if (!(qe instanceof Ae))
|
|
40678
40620
|
throw new TypeError("Cannot call a class as a function");
|
|
40679
40621
|
}
|
|
40680
|
-
function Ce(
|
|
40681
|
-
if (!
|
|
40622
|
+
function Ce(qe, Ae) {
|
|
40623
|
+
if (!qe)
|
|
40682
40624
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
40683
|
-
return Ae && (typeof Ae == "object" || typeof Ae == "function") ? Ae :
|
|
40625
|
+
return Ae && (typeof Ae == "object" || typeof Ae == "function") ? Ae : qe;
|
|
40684
40626
|
}
|
|
40685
|
-
function Le(
|
|
40627
|
+
function Le(qe, Ae) {
|
|
40686
40628
|
if (typeof Ae != "function" && Ae !== null)
|
|
40687
40629
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
|
|
40688
|
-
|
|
40630
|
+
qe.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: qe, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(qe, Ae) : qe.__proto__ = Ae);
|
|
40689
40631
|
}
|
|
40690
|
-
var
|
|
40691
|
-
Le(Ae,
|
|
40632
|
+
var Pe = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Ie = function(qe) {
|
|
40633
|
+
Le(Ae, qe);
|
|
40692
40634
|
function Ae(De, Me) {
|
|
40693
|
-
_e(this, Ae), Me.modules.toolbar != null && Me.modules.toolbar.container == null && (Me.modules.toolbar.container =
|
|
40635
|
+
_e(this, Ae), Me.modules.toolbar != null && Me.modules.toolbar.container == null && (Me.modules.toolbar.container = Pe);
|
|
40694
40636
|
var Be = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, De, Me));
|
|
40695
40637
|
return Be.quill.container.classList.add("ql-snow"), Be;
|
|
40696
40638
|
}
|
|
@@ -40722,8 +40664,8 @@ var quill = { exports: {} };
|
|
|
40722
40664
|
}
|
|
40723
40665
|
}
|
|
40724
40666
|
});
|
|
40725
|
-
var ze = function(
|
|
40726
|
-
Le(Ae,
|
|
40667
|
+
var ze = function(qe) {
|
|
40668
|
+
Le(Ae, qe);
|
|
40727
40669
|
function Ae(De, Me) {
|
|
40728
40670
|
_e(this, Ae);
|
|
40729
40671
|
var Be = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, De, Me));
|
|
@@ -40772,7 +40714,7 @@ var quill = { exports: {} };
|
|
|
40772
40714
|
Object.defineProperty(te, "__esModule", {
|
|
40773
40715
|
value: !0
|
|
40774
40716
|
});
|
|
40775
|
-
var ne = re(29), oe = $t(ne), de = re(37), he = re(39), ue = re(65), ce = re(66), pe = $t(ce), fe = re(67), ge = $t(fe), me = re(68), ve = $t(me), be = re(38), ye = re(26), we = re(40), Se = re(41), _e = re(57), Ce = $t(_e), Le = re(69),
|
|
40717
|
+
var ne = re(29), oe = $t(ne), de = re(37), he = re(39), ue = re(65), ce = re(66), pe = $t(ce), fe = re(67), ge = $t(fe), me = re(68), ve = $t(me), be = re(38), ye = re(26), we = re(40), Se = re(41), _e = re(57), Ce = $t(_e), Le = re(69), Pe = $t(Le), Ie = re(27), ze = $t(Ie), qe = re(70), Ae = $t(qe), De = re(71), Me = $t(De), Be = re(72), Ve = $t(Be), Ye = re(73), Je = $t(Ye), vt = re(74), Xe = $t(vt), Ge = re(13), Ne = $t(Ge), Ue = re(75), We = $t(Ue), Qe = re(76), Ze = $t(Qe), je = re(58), Ke = $t(je), it = re(42), nt = $t(it), bt = re(28), Ct = $t(bt), Dt = re(60), Lt = $t(Dt), Bt = re(61), jt = $t(Bt), dr = re(62), rr = $t(dr), gt = re(109), mt = $t(gt), xt = re(63), St = $t(xt);
|
|
40776
40718
|
function $t(Ft) {
|
|
40777
40719
|
return Ft && Ft.__esModule ? Ft : { default: Ft };
|
|
40778
40720
|
}
|
|
@@ -40804,7 +40746,7 @@ var quill = { exports: {} };
|
|
|
40804
40746
|
"formats/list": ve.default,
|
|
40805
40747
|
"formats/bold": Ce.default,
|
|
40806
40748
|
"formats/code": Ge.Code,
|
|
40807
|
-
"formats/italic":
|
|
40749
|
+
"formats/italic": Pe.default,
|
|
40808
40750
|
"formats/link": ze.default,
|
|
40809
40751
|
"formats/script": Ae.default,
|
|
40810
40752
|
"formats/strike": Me.default,
|
|
@@ -40818,7 +40760,7 @@ var quill = { exports: {} };
|
|
|
40818
40760
|
"themes/bubble": mt.default,
|
|
40819
40761
|
"themes/snow": St.default,
|
|
40820
40762
|
"ui/icons": nt.default,
|
|
40821
|
-
"ui/picker":
|
|
40763
|
+
"ui/picker": Ct.default,
|
|
40822
40764
|
"ui/icon-picker": jt.default,
|
|
40823
40765
|
"ui/color-picker": Lt.default,
|
|
40824
40766
|
"ui/tooltip": rr.default
|
|
@@ -40990,25 +40932,25 @@ var quill = { exports: {} };
|
|
|
40990
40932
|
}), te.default = te.ListItem = void 0;
|
|
40991
40933
|
var ne = /* @__PURE__ */ function() {
|
|
40992
40934
|
function _e(Ce, Le) {
|
|
40993
|
-
for (var
|
|
40994
|
-
var Ie = Le[
|
|
40935
|
+
for (var Pe = 0; Pe < Le.length; Pe++) {
|
|
40936
|
+
var Ie = Le[Pe];
|
|
40995
40937
|
Ie.enumerable = Ie.enumerable || !1, Ie.configurable = !0, "value" in Ie && (Ie.writable = !0), Object.defineProperty(Ce, Ie.key, Ie);
|
|
40996
40938
|
}
|
|
40997
40939
|
}
|
|
40998
|
-
return function(Ce, Le,
|
|
40999
|
-
return Le && _e(Ce.prototype, Le),
|
|
40940
|
+
return function(Ce, Le, Pe) {
|
|
40941
|
+
return Le && _e(Ce.prototype, Le), Pe && _e(Ce, Pe), Ce;
|
|
41000
40942
|
};
|
|
41001
|
-
}(), oe = function _e(Ce, Le,
|
|
40943
|
+
}(), oe = function _e(Ce, Le, Pe) {
|
|
41002
40944
|
Ce === null && (Ce = Function.prototype);
|
|
41003
40945
|
var Ie = Object.getOwnPropertyDescriptor(Ce, Le);
|
|
41004
40946
|
if (Ie === void 0) {
|
|
41005
40947
|
var ze = Object.getPrototypeOf(Ce);
|
|
41006
|
-
return ze === null ? void 0 : _e(ze, Le,
|
|
40948
|
+
return ze === null ? void 0 : _e(ze, Le, Pe);
|
|
41007
40949
|
} else {
|
|
41008
40950
|
if ("value" in Ie)
|
|
41009
40951
|
return Ie.value;
|
|
41010
|
-
var
|
|
41011
|
-
return
|
|
40952
|
+
var qe = Ie.get;
|
|
40953
|
+
return qe === void 0 ? void 0 : qe.call(Pe);
|
|
41012
40954
|
}
|
|
41013
40955
|
}, de = re(0), he = ge(de), ue = re(4), ce = ge(ue), pe = re(25), fe = ge(pe);
|
|
41014
40956
|
function ge(_e) {
|
|
@@ -41038,8 +40980,8 @@ var quill = { exports: {} };
|
|
|
41038
40980
|
}
|
|
41039
40981
|
return ne(Ce, [{
|
|
41040
40982
|
key: "format",
|
|
41041
|
-
value: function(
|
|
41042
|
-
|
|
40983
|
+
value: function(Pe, Ie) {
|
|
40984
|
+
Pe === Se.blotName && !Ie ? this.replaceWith(he.default.create(this.statics.scope)) : oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "format", this).call(this, Pe, Ie);
|
|
41043
40985
|
}
|
|
41044
40986
|
}, {
|
|
41045
40987
|
key: "remove",
|
|
@@ -41048,13 +40990,13 @@ var quill = { exports: {} };
|
|
|
41048
40990
|
}
|
|
41049
40991
|
}, {
|
|
41050
40992
|
key: "replaceWith",
|
|
41051
|
-
value: function(
|
|
41052
|
-
return this.parent.isolate(this.offset(this.parent), this.length()),
|
|
40993
|
+
value: function(Pe, Ie) {
|
|
40994
|
+
return this.parent.isolate(this.offset(this.parent), this.length()), Pe === this.parent.statics.blotName ? (this.parent.replaceWith(Pe, Ie), this) : (this.parent.unwrap(), oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replaceWith", this).call(this, Pe, Ie));
|
|
41053
40995
|
}
|
|
41054
40996
|
}], [{
|
|
41055
40997
|
key: "formats",
|
|
41056
|
-
value: function(
|
|
41057
|
-
return
|
|
40998
|
+
value: function(Pe) {
|
|
40999
|
+
return Pe.tagName === this.tagName ? void 0 : oe(Ce.__proto__ || Object.getPrototypeOf(Ce), "formats", this).call(this, Pe);
|
|
41058
41000
|
}
|
|
41059
41001
|
}]), Ce;
|
|
41060
41002
|
}(ce.default);
|
|
@@ -41062,32 +41004,32 @@ var quill = { exports: {} };
|
|
|
41062
41004
|
var Se = function(_e) {
|
|
41063
41005
|
ye(Ce, _e), ne(Ce, null, [{
|
|
41064
41006
|
key: "create",
|
|
41065
|
-
value: function(
|
|
41066
|
-
var Ie =
|
|
41067
|
-
return (
|
|
41007
|
+
value: function(Pe) {
|
|
41008
|
+
var Ie = Pe === "ordered" ? "OL" : "UL", ze = oe(Ce.__proto__ || Object.getPrototypeOf(Ce), "create", this).call(this, Ie);
|
|
41009
|
+
return (Pe === "checked" || Pe === "unchecked") && ze.setAttribute("data-checked", Pe === "checked"), ze;
|
|
41068
41010
|
}
|
|
41069
41011
|
}, {
|
|
41070
41012
|
key: "formats",
|
|
41071
|
-
value: function(
|
|
41072
|
-
if (
|
|
41073
|
-
if (
|
|
41074
|
-
return
|
|
41013
|
+
value: function(Pe) {
|
|
41014
|
+
if (Pe.tagName === "OL") return "ordered";
|
|
41015
|
+
if (Pe.tagName === "UL")
|
|
41016
|
+
return Pe.hasAttribute("data-checked") ? Pe.getAttribute("data-checked") === "true" ? "checked" : "unchecked" : "bullet";
|
|
41075
41017
|
}
|
|
41076
41018
|
}]);
|
|
41077
41019
|
function Ce(Le) {
|
|
41078
41020
|
ve(this, Ce);
|
|
41079
|
-
var
|
|
41080
|
-
if (
|
|
41081
|
-
var Ae =
|
|
41021
|
+
var Pe = be(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this, Le)), Ie = function(qe) {
|
|
41022
|
+
if (qe.target.parentNode === Le) {
|
|
41023
|
+
var Ae = Pe.statics.formats(Le), De = he.default.find(qe.target);
|
|
41082
41024
|
Ae === "checked" ? De.format("list", "unchecked") : Ae === "unchecked" && De.format("list", "checked");
|
|
41083
41025
|
}
|
|
41084
41026
|
};
|
|
41085
|
-
return Le.addEventListener("touchstart", Ie), Le.addEventListener("mousedown", Ie),
|
|
41027
|
+
return Le.addEventListener("touchstart", Ie), Le.addEventListener("mousedown", Ie), Pe;
|
|
41086
41028
|
}
|
|
41087
41029
|
return ne(Ce, [{
|
|
41088
41030
|
key: "format",
|
|
41089
|
-
value: function(
|
|
41090
|
-
this.children.length > 0 && this.children.tail.format(
|
|
41031
|
+
value: function(Pe, Ie) {
|
|
41032
|
+
this.children.length > 0 && this.children.tail.format(Pe, Ie);
|
|
41091
41033
|
}
|
|
41092
41034
|
}, {
|
|
41093
41035
|
key: "formats",
|
|
@@ -41096,29 +41038,29 @@ var quill = { exports: {} };
|
|
|
41096
41038
|
}
|
|
41097
41039
|
}, {
|
|
41098
41040
|
key: "insertBefore",
|
|
41099
|
-
value: function(
|
|
41100
|
-
if (
|
|
41101
|
-
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this,
|
|
41041
|
+
value: function(Pe, Ie) {
|
|
41042
|
+
if (Pe instanceof we)
|
|
41043
|
+
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, Pe, Ie);
|
|
41102
41044
|
else {
|
|
41103
|
-
var ze = Ie == null ? this.length() : Ie.offset(this),
|
|
41104
|
-
|
|
41045
|
+
var ze = Ie == null ? this.length() : Ie.offset(this), qe = this.split(ze);
|
|
41046
|
+
qe.parent.insertBefore(Pe, qe);
|
|
41105
41047
|
}
|
|
41106
41048
|
}
|
|
41107
41049
|
}, {
|
|
41108
41050
|
key: "optimize",
|
|
41109
|
-
value: function(
|
|
41110
|
-
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "optimize", this).call(this,
|
|
41051
|
+
value: function(Pe) {
|
|
41052
|
+
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "optimize", this).call(this, Pe);
|
|
41111
41053
|
var Ie = this.next;
|
|
41112
41054
|
Ie != null && Ie.prev === this && Ie.statics.blotName === this.statics.blotName && Ie.domNode.tagName === this.domNode.tagName && Ie.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (Ie.moveChildren(this), Ie.remove());
|
|
41113
41055
|
}
|
|
41114
41056
|
}, {
|
|
41115
41057
|
key: "replace",
|
|
41116
|
-
value: function(
|
|
41117
|
-
if (
|
|
41058
|
+
value: function(Pe) {
|
|
41059
|
+
if (Pe.statics.blotName !== this.statics.blotName) {
|
|
41118
41060
|
var Ie = he.default.create(this.statics.defaultChild);
|
|
41119
|
-
|
|
41061
|
+
Pe.moveChildren(Ie), this.appendChild(Ie);
|
|
41120
41062
|
}
|
|
41121
|
-
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replace", this).call(this,
|
|
41063
|
+
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replace", this).call(this, Pe);
|
|
41122
41064
|
}
|
|
41123
41065
|
}]), Ce;
|
|
41124
41066
|
}(fe.default);
|
|
@@ -41469,8 +41411,8 @@ var quill = { exports: {} };
|
|
|
41469
41411
|
var ne = /* @__PURE__ */ function() {
|
|
41470
41412
|
function Se(_e, Ce) {
|
|
41471
41413
|
for (var Le = 0; Le < Ce.length; Le++) {
|
|
41472
|
-
var
|
|
41473
|
-
|
|
41414
|
+
var Pe = Ce[Le];
|
|
41415
|
+
Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(_e, Pe.key, Pe);
|
|
41474
41416
|
}
|
|
41475
41417
|
}
|
|
41476
41418
|
return function(_e, Ce, Le) {
|
|
@@ -41478,14 +41420,14 @@ var quill = { exports: {} };
|
|
|
41478
41420
|
};
|
|
41479
41421
|
}(), oe = function Se(_e, Ce, Le) {
|
|
41480
41422
|
_e === null && (_e = Function.prototype);
|
|
41481
|
-
var
|
|
41482
|
-
if (
|
|
41423
|
+
var Pe = Object.getOwnPropertyDescriptor(_e, Ce);
|
|
41424
|
+
if (Pe === void 0) {
|
|
41483
41425
|
var Ie = Object.getPrototypeOf(_e);
|
|
41484
41426
|
return Ie === null ? void 0 : Se(Ie, Ce, Le);
|
|
41485
41427
|
} else {
|
|
41486
|
-
if ("value" in
|
|
41487
|
-
return
|
|
41488
|
-
var ze =
|
|
41428
|
+
if ("value" in Pe)
|
|
41429
|
+
return Pe.value;
|
|
41430
|
+
var ze = Pe.get;
|
|
41489
41431
|
return ze === void 0 ? void 0 : ze.call(Le);
|
|
41490
41432
|
}
|
|
41491
41433
|
}, de = re(36), he = ge(de), ue = re(5), ce = ge(ue), pe = re(9), fe = ge(pe);
|
|
@@ -41514,11 +41456,11 @@ var quill = { exports: {} };
|
|
|
41514
41456
|
return ne(_e, null, [{
|
|
41515
41457
|
key: "create",
|
|
41516
41458
|
value: function(Le) {
|
|
41517
|
-
var
|
|
41518
|
-
return typeof Le == "string" && (window.katex.render(Le,
|
|
41459
|
+
var Pe = oe(_e.__proto__ || Object.getPrototypeOf(_e), "create", this).call(this, Le);
|
|
41460
|
+
return typeof Le == "string" && (window.katex.render(Le, Pe, {
|
|
41519
41461
|
throwOnError: !1,
|
|
41520
41462
|
errorColor: "#f00"
|
|
41521
|
-
}),
|
|
41463
|
+
}), Pe.setAttribute("data-value", Le)), Pe;
|
|
41522
41464
|
}
|
|
41523
41465
|
}, {
|
|
41524
41466
|
key: "value",
|
|
@@ -41553,104 +41495,104 @@ var quill = { exports: {} };
|
|
|
41553
41495
|
value: !0
|
|
41554
41496
|
}), te.default = te.CodeToken = te.CodeBlock = void 0;
|
|
41555
41497
|
var ne = /* @__PURE__ */ function() {
|
|
41556
|
-
function Le(
|
|
41498
|
+
function Le(Pe, Ie) {
|
|
41557
41499
|
for (var ze = 0; ze < Ie.length; ze++) {
|
|
41558
|
-
var
|
|
41559
|
-
|
|
41500
|
+
var qe = Ie[ze];
|
|
41501
|
+
qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(Pe, qe.key, qe);
|
|
41560
41502
|
}
|
|
41561
41503
|
}
|
|
41562
|
-
return function(
|
|
41563
|
-
return Ie && Le(
|
|
41504
|
+
return function(Pe, Ie, ze) {
|
|
41505
|
+
return Ie && Le(Pe.prototype, Ie), ze && Le(Pe, ze), Pe;
|
|
41564
41506
|
};
|
|
41565
|
-
}(), oe = function Le(
|
|
41566
|
-
|
|
41567
|
-
var
|
|
41568
|
-
if (
|
|
41569
|
-
var Ae = Object.getPrototypeOf(
|
|
41507
|
+
}(), oe = function Le(Pe, Ie, ze) {
|
|
41508
|
+
Pe === null && (Pe = Function.prototype);
|
|
41509
|
+
var qe = Object.getOwnPropertyDescriptor(Pe, Ie);
|
|
41510
|
+
if (qe === void 0) {
|
|
41511
|
+
var Ae = Object.getPrototypeOf(Pe);
|
|
41570
41512
|
return Ae === null ? void 0 : Le(Ae, Ie, ze);
|
|
41571
41513
|
} else {
|
|
41572
|
-
if ("value" in
|
|
41573
|
-
return
|
|
41574
|
-
var De =
|
|
41514
|
+
if ("value" in qe)
|
|
41515
|
+
return qe.value;
|
|
41516
|
+
var De = qe.get;
|
|
41575
41517
|
return De === void 0 ? void 0 : De.call(ze);
|
|
41576
41518
|
}
|
|
41577
41519
|
}, de = re(0), he = ve(de), ue = re(5), ce = ve(ue), pe = re(9), fe = ve(pe), ge = re(13), me = ve(ge);
|
|
41578
41520
|
function ve(Le) {
|
|
41579
41521
|
return Le && Le.__esModule ? Le : { default: Le };
|
|
41580
41522
|
}
|
|
41581
|
-
function be(Le,
|
|
41582
|
-
if (!(Le instanceof
|
|
41523
|
+
function be(Le, Pe) {
|
|
41524
|
+
if (!(Le instanceof Pe))
|
|
41583
41525
|
throw new TypeError("Cannot call a class as a function");
|
|
41584
41526
|
}
|
|
41585
|
-
function ye(Le,
|
|
41527
|
+
function ye(Le, Pe) {
|
|
41586
41528
|
if (!Le)
|
|
41587
41529
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
41588
|
-
return
|
|
41530
|
+
return Pe && (typeof Pe == "object" || typeof Pe == "function") ? Pe : Le;
|
|
41589
41531
|
}
|
|
41590
|
-
function we(Le,
|
|
41591
|
-
if (typeof
|
|
41592
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
41593
|
-
Le.prototype = Object.create(
|
|
41532
|
+
function we(Le, Pe) {
|
|
41533
|
+
if (typeof Pe != "function" && Pe !== null)
|
|
41534
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Pe);
|
|
41535
|
+
Le.prototype = Object.create(Pe && Pe.prototype, { constructor: { value: Le, enumerable: !1, writable: !0, configurable: !0 } }), Pe && (Object.setPrototypeOf ? Object.setPrototypeOf(Le, Pe) : Le.__proto__ = Pe);
|
|
41594
41536
|
}
|
|
41595
41537
|
var Se = function(Le) {
|
|
41596
|
-
we(
|
|
41597
|
-
function
|
|
41598
|
-
return be(this,
|
|
41538
|
+
we(Pe, Le);
|
|
41539
|
+
function Pe() {
|
|
41540
|
+
return be(this, Pe), ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).apply(this, arguments));
|
|
41599
41541
|
}
|
|
41600
|
-
return ne(
|
|
41542
|
+
return ne(Pe, [{
|
|
41601
41543
|
key: "replaceWith",
|
|
41602
41544
|
value: function(ze) {
|
|
41603
|
-
this.domNode.textContent = this.domNode.textContent, this.attach(), oe(
|
|
41545
|
+
this.domNode.textContent = this.domNode.textContent, this.attach(), oe(Pe.prototype.__proto__ || Object.getPrototypeOf(Pe.prototype), "replaceWith", this).call(this, ze);
|
|
41604
41546
|
}
|
|
41605
41547
|
}, {
|
|
41606
41548
|
key: "highlight",
|
|
41607
41549
|
value: function(ze) {
|
|
41608
|
-
var
|
|
41609
|
-
this.cachedText !==
|
|
41550
|
+
var qe = this.domNode.textContent;
|
|
41551
|
+
this.cachedText !== qe && ((qe.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML = ze(qe), this.domNode.normalize(), this.attach()), this.cachedText = qe);
|
|
41610
41552
|
}
|
|
41611
|
-
}]),
|
|
41553
|
+
}]), Pe;
|
|
41612
41554
|
}(me.default);
|
|
41613
41555
|
Se.className = "ql-syntax";
|
|
41614
41556
|
var _e = new he.default.Attributor.Class("token", "hljs", {
|
|
41615
41557
|
scope: he.default.Scope.INLINE
|
|
41616
41558
|
}), Ce = function(Le) {
|
|
41617
|
-
we(
|
|
41559
|
+
we(Pe, Le), ne(Pe, null, [{
|
|
41618
41560
|
key: "register",
|
|
41619
41561
|
value: function() {
|
|
41620
41562
|
ce.default.register(_e, !0), ce.default.register(Se, !0);
|
|
41621
41563
|
}
|
|
41622
41564
|
}]);
|
|
41623
|
-
function
|
|
41624
|
-
be(this,
|
|
41625
|
-
var
|
|
41626
|
-
if (typeof
|
|
41565
|
+
function Pe(Ie, ze) {
|
|
41566
|
+
be(this, Pe);
|
|
41567
|
+
var qe = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, Ie, ze));
|
|
41568
|
+
if (typeof qe.options.highlight != "function")
|
|
41627
41569
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
41628
41570
|
var Ae = null;
|
|
41629
|
-
return
|
|
41571
|
+
return qe.quill.on(ce.default.events.SCROLL_OPTIMIZE, function() {
|
|
41630
41572
|
clearTimeout(Ae), Ae = setTimeout(function() {
|
|
41631
|
-
|
|
41632
|
-
},
|
|
41633
|
-
}),
|
|
41573
|
+
qe.highlight(), Ae = null;
|
|
41574
|
+
}, qe.options.interval);
|
|
41575
|
+
}), qe.highlight(), qe;
|
|
41634
41576
|
}
|
|
41635
|
-
return ne(
|
|
41577
|
+
return ne(Pe, [{
|
|
41636
41578
|
key: "highlight",
|
|
41637
41579
|
value: function() {
|
|
41638
41580
|
var ze = this;
|
|
41639
41581
|
if (!this.quill.selection.composing) {
|
|
41640
41582
|
this.quill.update(ce.default.sources.USER);
|
|
41641
|
-
var
|
|
41583
|
+
var qe = this.quill.getSelection();
|
|
41642
41584
|
this.quill.scroll.descendants(Se).forEach(function(Ae) {
|
|
41643
41585
|
Ae.highlight(ze.options.highlight);
|
|
41644
|
-
}), this.quill.update(ce.default.sources.SILENT),
|
|
41586
|
+
}), this.quill.update(ce.default.sources.SILENT), qe != null && this.quill.setSelection(qe, ce.default.sources.SILENT);
|
|
41645
41587
|
}
|
|
41646
41588
|
}
|
|
41647
|
-
}]),
|
|
41589
|
+
}]), Pe;
|
|
41648
41590
|
}(fe.default);
|
|
41649
41591
|
Ce.DEFAULTS = {
|
|
41650
41592
|
highlight: function() {
|
|
41651
41593
|
return window.hljs == null ? null : function(Le) {
|
|
41652
|
-
var
|
|
41653
|
-
return
|
|
41594
|
+
var Pe = window.hljs.highlightAuto(Le);
|
|
41595
|
+
return Pe.value;
|
|
41654
41596
|
};
|
|
41655
41597
|
}(),
|
|
41656
41598
|
interval: 1e3
|
|
@@ -41822,57 +41764,57 @@ var quill = { exports: {} };
|
|
|
41822
41764
|
Object.defineProperty(te, "__esModule", {
|
|
41823
41765
|
value: !0
|
|
41824
41766
|
}), te.default = te.BubbleTooltip = void 0;
|
|
41825
|
-
var ne = function
|
|
41767
|
+
var ne = function Pe(Ie, ze, qe) {
|
|
41826
41768
|
Ie === null && (Ie = Function.prototype);
|
|
41827
41769
|
var Ae = Object.getOwnPropertyDescriptor(Ie, ze);
|
|
41828
41770
|
if (Ae === void 0) {
|
|
41829
41771
|
var De = Object.getPrototypeOf(Ie);
|
|
41830
|
-
return De === null ? void 0 :
|
|
41772
|
+
return De === null ? void 0 : Pe(De, ze, qe);
|
|
41831
41773
|
} else {
|
|
41832
41774
|
if ("value" in Ae)
|
|
41833
41775
|
return Ae.value;
|
|
41834
41776
|
var Me = Ae.get;
|
|
41835
|
-
return Me === void 0 ? void 0 : Me.call(
|
|
41777
|
+
return Me === void 0 ? void 0 : Me.call(qe);
|
|
41836
41778
|
}
|
|
41837
41779
|
}, oe = /* @__PURE__ */ function() {
|
|
41838
|
-
function
|
|
41839
|
-
for (var
|
|
41840
|
-
var Ae = ze[
|
|
41780
|
+
function Pe(Ie, ze) {
|
|
41781
|
+
for (var qe = 0; qe < ze.length; qe++) {
|
|
41782
|
+
var Ae = ze[qe];
|
|
41841
41783
|
Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(Ie, Ae.key, Ae);
|
|
41842
41784
|
}
|
|
41843
41785
|
}
|
|
41844
|
-
return function(Ie, ze,
|
|
41845
|
-
return ze &&
|
|
41786
|
+
return function(Ie, ze, qe) {
|
|
41787
|
+
return ze && Pe(Ie.prototype, ze), qe && Pe(Ie, qe), Ie;
|
|
41846
41788
|
};
|
|
41847
41789
|
}(), de = re(3), he = be(de), ue = re(8), ce = be(ue), pe = re(44), fe = be(pe), ge = re(15), me = re(42), ve = be(me);
|
|
41848
|
-
function be(
|
|
41849
|
-
return
|
|
41790
|
+
function be(Pe) {
|
|
41791
|
+
return Pe && Pe.__esModule ? Pe : { default: Pe };
|
|
41850
41792
|
}
|
|
41851
|
-
function ye(
|
|
41852
|
-
if (!(
|
|
41793
|
+
function ye(Pe, Ie) {
|
|
41794
|
+
if (!(Pe instanceof Ie))
|
|
41853
41795
|
throw new TypeError("Cannot call a class as a function");
|
|
41854
41796
|
}
|
|
41855
|
-
function we(
|
|
41856
|
-
if (!
|
|
41797
|
+
function we(Pe, Ie) {
|
|
41798
|
+
if (!Pe)
|
|
41857
41799
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
41858
|
-
return Ie && (typeof Ie == "object" || typeof Ie == "function") ? Ie :
|
|
41800
|
+
return Ie && (typeof Ie == "object" || typeof Ie == "function") ? Ie : Pe;
|
|
41859
41801
|
}
|
|
41860
|
-
function Se(
|
|
41802
|
+
function Se(Pe, Ie) {
|
|
41861
41803
|
if (typeof Ie != "function" && Ie !== null)
|
|
41862
41804
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ie);
|
|
41863
|
-
|
|
41805
|
+
Pe.prototype = Object.create(Ie && Ie.prototype, { constructor: { value: Pe, enumerable: !1, writable: !0, configurable: !0 } }), Ie && (Object.setPrototypeOf ? Object.setPrototypeOf(Pe, Ie) : Pe.__proto__ = Ie);
|
|
41864
41806
|
}
|
|
41865
|
-
var _e = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Ce = function(
|
|
41866
|
-
Se(Ie,
|
|
41867
|
-
function Ie(ze,
|
|
41868
|
-
ye(this, Ie),
|
|
41869
|
-
var Ae = we(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this, ze,
|
|
41807
|
+
var _e = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Ce = function(Pe) {
|
|
41808
|
+
Se(Ie, Pe);
|
|
41809
|
+
function Ie(ze, qe) {
|
|
41810
|
+
ye(this, Ie), qe.modules.toolbar != null && qe.modules.toolbar.container == null && (qe.modules.toolbar.container = _e);
|
|
41811
|
+
var Ae = we(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this, ze, qe));
|
|
41870
41812
|
return Ae.quill.container.classList.add("ql-bubble"), Ae;
|
|
41871
41813
|
}
|
|
41872
41814
|
return oe(Ie, [{
|
|
41873
41815
|
key: "extendToolbar",
|
|
41874
|
-
value: function(
|
|
41875
|
-
this.tooltip = new Le(this.quill, this.options.bounds), this.tooltip.root.appendChild(
|
|
41816
|
+
value: function(qe) {
|
|
41817
|
+
this.tooltip = new Le(this.quill, this.options.bounds), this.tooltip.root.appendChild(qe.container), this.buildButtons([].slice.call(qe.container.querySelectorAll("button")), ve.default), this.buildPickers([].slice.call(qe.container.querySelectorAll("select")), ve.default);
|
|
41876
41818
|
}
|
|
41877
41819
|
}]), Ie;
|
|
41878
41820
|
}(fe.default);
|
|
@@ -41887,11 +41829,11 @@ var quill = { exports: {} };
|
|
|
41887
41829
|
}
|
|
41888
41830
|
}
|
|
41889
41831
|
});
|
|
41890
|
-
var Le = function(
|
|
41891
|
-
Se(Ie,
|
|
41892
|
-
function Ie(ze,
|
|
41832
|
+
var Le = function(Pe) {
|
|
41833
|
+
Se(Ie, Pe);
|
|
41834
|
+
function Ie(ze, qe) {
|
|
41893
41835
|
ye(this, Ie);
|
|
41894
|
-
var Ae = we(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this, ze,
|
|
41836
|
+
var Ae = we(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this, ze, qe));
|
|
41895
41837
|
return Ae.quill.on(ce.default.events.EDITOR_CHANGE, function(De, Me, Be, Ve) {
|
|
41896
41838
|
if (De === ce.default.events.SELECTION_CHANGE)
|
|
41897
41839
|
if (Me != null && Me.length > 0 && Ve === ce.default.sources.USER) {
|
|
@@ -41909,14 +41851,14 @@ var quill = { exports: {} };
|
|
|
41909
41851
|
return oe(Ie, [{
|
|
41910
41852
|
key: "listen",
|
|
41911
41853
|
value: function() {
|
|
41912
|
-
var
|
|
41854
|
+
var qe = this;
|
|
41913
41855
|
ne(Ie.prototype.__proto__ || Object.getPrototypeOf(Ie.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
|
|
41914
|
-
|
|
41856
|
+
qe.root.classList.remove("ql-editing");
|
|
41915
41857
|
}), this.quill.on(ce.default.events.SCROLL_OPTIMIZE, function() {
|
|
41916
41858
|
setTimeout(function() {
|
|
41917
|
-
if (!
|
|
41918
|
-
var Ae =
|
|
41919
|
-
Ae != null &&
|
|
41859
|
+
if (!qe.root.classList.contains("ql-hidden")) {
|
|
41860
|
+
var Ae = qe.quill.getSelection();
|
|
41861
|
+
Ae != null && qe.position(qe.quill.getBounds(Ae));
|
|
41920
41862
|
}
|
|
41921
41863
|
}, 1);
|
|
41922
41864
|
});
|
|
@@ -41928,8 +41870,8 @@ var quill = { exports: {} };
|
|
|
41928
41870
|
}
|
|
41929
41871
|
}, {
|
|
41930
41872
|
key: "position",
|
|
41931
|
-
value: function(
|
|
41932
|
-
var Ae = ne(Ie.prototype.__proto__ || Object.getPrototypeOf(Ie.prototype), "position", this).call(this,
|
|
41873
|
+
value: function(qe) {
|
|
41874
|
+
var Ae = ne(Ie.prototype.__proto__ || Object.getPrototypeOf(Ie.prototype), "position", this).call(this, qe), De = this.root.querySelector(".ql-tooltip-arrow");
|
|
41933
41875
|
if (De.style.marginLeft = "", Ae === 0) return Ae;
|
|
41934
41876
|
De.style.marginLeft = -1 * Ae - De.offsetWidth / 2 + "px";
|
|
41935
41877
|
}
|
|
@@ -42274,9 +42216,17 @@ let QuickActionsMenu = class extends h$n {
|
|
|
42274
42216
|
}
|
|
42275
42217
|
}
|
|
42276
42218
|
_handleOpenMenu(X) {
|
|
42277
|
-
var
|
|
42278
|
-
const W = (
|
|
42279
|
-
te &&
|
|
42219
|
+
var ne;
|
|
42220
|
+
const W = (ne = this.shadowRoot) == null ? void 0 : ne.querySelector('slot[name="content"]'), J = this.querySelector("dss-action-menu"), te = W == null ? void 0 : W.assignedElements();
|
|
42221
|
+
te[0] && this._addMenuCustomStyle(W, J);
|
|
42222
|
+
const re = te.find((oe) => oe.id === "content");
|
|
42223
|
+
re && re.show();
|
|
42224
|
+
}
|
|
42225
|
+
_addMenuCustomStyle(X, W) {
|
|
42226
|
+
var te;
|
|
42227
|
+
X.style.borderRadius = "var(--dss-radius-sm)";
|
|
42228
|
+
const J = (te = W.shadowRoot) == null ? void 0 : te.querySelector("ul");
|
|
42229
|
+
J && (J.style.overflow = "hidden");
|
|
42280
42230
|
}
|
|
42281
42231
|
};
|
|
42282
42232
|
QuickActionsMenu = __decorateClass([
|
|
@@ -42304,6 +42254,7 @@ export {
|
|
|
42304
42254
|
ActivityHistoryFilterType,
|
|
42305
42255
|
EcapEventManager,
|
|
42306
42256
|
PrimariaContentSwitcher,
|
|
42257
|
+
PrimariaInteractionService,
|
|
42307
42258
|
PrimariaNavItem,
|
|
42308
42259
|
PrimariaRegionHost,
|
|
42309
42260
|
addAsyncHistoryItemsCommand,
|
|
@@ -42311,17 +42262,12 @@ export {
|
|
|
42311
42262
|
addHistoryItemsCommand,
|
|
42312
42263
|
bootstrapPlugins,
|
|
42313
42264
|
clinicalMonitoringRegions,
|
|
42314
|
-
confirm,
|
|
42315
|
-
confirmMixin,
|
|
42316
42265
|
createEcapEventManager,
|
|
42317
42266
|
disposePlugins,
|
|
42318
42267
|
disposeShell,
|
|
42319
|
-
generateId$1 as generateId,
|
|
42320
42268
|
initializeShell,
|
|
42321
42269
|
isCommonFilterGroup,
|
|
42322
42270
|
isNotCommonFilterGroup,
|
|
42323
|
-
notify,
|
|
42324
|
-
openDialog,
|
|
42325
42271
|
primariaApiFactory,
|
|
42326
42272
|
raiseCloseEvent,
|
|
42327
42273
|
shellApi,
|