@uxland/primary-shell 7.41.8 → 7.43.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/{component-BgR3-MlL.js → component-DCk1Rgkl.js} +2 -2
- package/dist/{component-BgR3-MlL.js.map → component-DCk1Rgkl.js.map} +1 -1
- package/dist/{index-mgf5fUfq.js → index-BPXzFbQm.js} +617 -572
- package/dist/index-BPXzFbQm.js.map +1 -0
- package/dist/index.js +12 -10
- package/dist/index.umd.cjs +6 -6
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/activity-monitor/activity-monitor.d.ts +13 -0
- package/dist/primary/shell/src/api/activity-monitor/activity-monitor.test.d.ts +1 -0
- package/dist/primary/shell/src/api/api.d.ts +2 -0
- package/dist/primary/shell/src/api/session-refresh-timer/session-refresh-timer.d.ts +20 -0
- package/dist/primary/shell/src/api/session-refresh-timer/session-refresh-timer.test.d.ts +1 -0
- package/dist/primary/shell/src/api/token-manager/token-manager.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/activity-monitor/activity-monitor.test.ts +67 -0
- package/src/api/activity-monitor/activity-monitor.ts +26 -0
- package/src/api/api.ts +4 -0
- package/src/api/ecap-event-manager/ecap-event-manager.ts +1 -0
- package/src/api/session-refresh-timer/session-refresh-timer.test.ts +151 -0
- package/src/api/session-refresh-timer/session-refresh-timer.ts +79 -0
- package/src/api/token-manager/token-manager.test.ts +26 -44
- package/src/api/token-manager/token-manager.ts +14 -19
- package/src/bootstrapper.ts +3 -2
- package/src/disposer.ts +3 -1
- package/dist/index-mgf5fUfq.js.map +0 -1
|
@@ -68,14 +68,14 @@ function require_Reflect() {
|
|
|
68
68
|
} : function(it, nt) {
|
|
69
69
|
return it[nt];
|
|
70
70
|
}
|
|
71
|
-
}, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e =
|
|
71
|
+
}, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Kt(), me = typeof Set == "function" && typeof Set.prototype.entries == "function" ? Set : ks(), ge = typeof WeakMap == "function" ? WeakMap : ts(), ve = oe ? Symbol.for("@reflect-metadata:registry") : void 0, _e = Pt(), ye = Ft(_e);
|
|
72
72
|
function Se(it, nt, vt, St) {
|
|
73
73
|
if (Ve(vt)) {
|
|
74
74
|
if (!It(it))
|
|
75
75
|
throw new TypeError();
|
|
76
76
|
if (!Nt(nt))
|
|
77
77
|
throw new TypeError();
|
|
78
|
-
return
|
|
78
|
+
return Me(it, nt);
|
|
79
79
|
} else {
|
|
80
80
|
if (!It(it))
|
|
81
81
|
throw new TypeError();
|
|
@@ -116,12 +116,12 @@ function require_Reflect() {
|
|
|
116
116
|
return Ve(vt) || (vt = kt(vt)), Ge(it, nt, vt);
|
|
117
117
|
}
|
|
118
118
|
X("hasOwnMetadata", De);
|
|
119
|
-
function
|
|
119
|
+
function Pe(it, nt, vt) {
|
|
120
120
|
if (!Be(nt))
|
|
121
121
|
throw new TypeError();
|
|
122
122
|
return Ve(vt) || (vt = kt(vt)), Ke(it, nt, vt);
|
|
123
123
|
}
|
|
124
|
-
X("getMetadata",
|
|
124
|
+
X("getMetadata", Pe);
|
|
125
125
|
function He(it, nt, vt) {
|
|
126
126
|
if (!Be(nt))
|
|
127
127
|
throw new TypeError();
|
|
@@ -155,7 +155,7 @@ function require_Reflect() {
|
|
|
155
155
|
return Ve(St) ? !1 : St.OrdinaryDeleteMetadata(it, nt, vt);
|
|
156
156
|
}
|
|
157
157
|
X("deleteMetadata", ze);
|
|
158
|
-
function
|
|
158
|
+
function Me(it, nt) {
|
|
159
159
|
for (var vt = it.length - 1; vt >= 0; --vt) {
|
|
160
160
|
var St = it[vt], qt = St(nt);
|
|
161
161
|
if (!Ve(qt) && !Qe(qt)) {
|
|
@@ -465,7 +465,7 @@ function require_Reflect() {
|
|
|
465
465
|
return !0;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function Pt() {
|
|
469
469
|
var it;
|
|
470
470
|
return !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && (it = te.Reflect[ve]), Ve(it) && (it = Lt()), !Ve(ve) && Be(te.Reflect) && Object.isExtensible(te.Reflect) && Object.defineProperty(te.Reflect, ve, {
|
|
471
471
|
enumerable: !1,
|
|
@@ -3549,6 +3549,7 @@ const createDynamicRequestHandler = (J) => {
|
|
|
3549
3549
|
"PROVES_ORDRES_CLINIQUES_CONSULTAR",
|
|
3550
3550
|
"RESULT_OC",
|
|
3551
3551
|
"LABORATORI_SEROTECA_PETICIO_CONSULTA",
|
|
3552
|
+
"LABORATORI",
|
|
3552
3553
|
"ORDRE_TRACTAMENT",
|
|
3553
3554
|
"PRESCRIPCIO_ACTIVA",
|
|
3554
3555
|
"REV_IT",
|
|
@@ -3631,7 +3632,19 @@ class PrimariaGlobalStateManagerImpl {
|
|
|
3631
3632
|
this.state = {};
|
|
3632
3633
|
}
|
|
3633
3634
|
}
|
|
3634
|
-
const createGlobalStateManager = (J) => new PrimariaGlobalStateManagerImpl(J);
|
|
3635
|
+
const createGlobalStateManager = (J) => new PrimariaGlobalStateManagerImpl(J), ACTIVITY_EVENTS = ["keydown", "click", "scroll"];
|
|
3636
|
+
class ActivityMonitorImpl {
|
|
3637
|
+
constructor() {
|
|
3638
|
+
this.lastActivityTimestamp = 0, this.activityHandler = () => {
|
|
3639
|
+
this.lastActivityTimestamp = Date.now();
|
|
3640
|
+
}, this.start = () => {
|
|
3641
|
+
for (const W of ACTIVITY_EVENTS) window.addEventListener(W, this.activityHandler);
|
|
3642
|
+
}, this.stop = () => {
|
|
3643
|
+
for (const W of ACTIVITY_EVENTS) window.removeEventListener(W, this.activityHandler);
|
|
3644
|
+
}, this.getLastActivityTimestamp = () => this.lastActivityTimestamp;
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
const createActivityMonitor = () => new ActivityMonitorImpl();
|
|
3635
3648
|
function bind(J, W) {
|
|
3636
3649
|
return function() {
|
|
3637
3650
|
return J.apply(W, arguments);
|
|
@@ -4860,24 +4873,24 @@ const resolveConfig = (J) => {
|
|
|
4860
4873
|
onDownloadProgress: Ce,
|
|
4861
4874
|
onUploadProgress: qe,
|
|
4862
4875
|
responseType: De,
|
|
4863
|
-
headers:
|
|
4876
|
+
headers: Pe,
|
|
4864
4877
|
withCredentials: He = "same-origin",
|
|
4865
4878
|
fetchOptions: Ie
|
|
4866
4879
|
} = resolveConfig(me), Ae = W || fetch;
|
|
4867
4880
|
De = De ? (De + "").toLowerCase() : "text";
|
|
4868
|
-
let ze = composeSignals([ye, Se && Se.toAbortSignal()], we),
|
|
4881
|
+
let ze = composeSignals([ye, Se && Se.toAbortSignal()], we), Me = null;
|
|
4869
4882
|
const Ne = ze && ze.unsubscribe && (() => {
|
|
4870
4883
|
ze.unsubscribe();
|
|
4871
4884
|
});
|
|
4872
4885
|
let We;
|
|
4873
4886
|
try {
|
|
4874
|
-
if (qe && ue && ve !== "get" && ve !== "head" && (We = await be(
|
|
4887
|
+
if (qe && ue && ve !== "get" && ve !== "head" && (We = await be(Pe, _e)) !== 0) {
|
|
4875
4888
|
let Le = new X(ge, {
|
|
4876
4889
|
method: "POST",
|
|
4877
4890
|
body: _e,
|
|
4878
4891
|
duplex: "half"
|
|
4879
4892
|
}), Ue;
|
|
4880
|
-
if (utils$1.isFormData(_e) && (Ue = Le.headers.get("content-type")) &&
|
|
4893
|
+
if (utils$1.isFormData(_e) && (Ue = Le.headers.get("content-type")) && Pe.setContentType(Ue), Le.body) {
|
|
4881
4894
|
const [Ve, Qe] = progressEventDecorator(
|
|
4882
4895
|
We,
|
|
4883
4896
|
progressEventReducer(asyncDecorator(qe))
|
|
@@ -4890,13 +4903,13 @@ const resolveConfig = (J) => {
|
|
|
4890
4903
|
...Ie,
|
|
4891
4904
|
signal: ze,
|
|
4892
4905
|
method: ve.toUpperCase(),
|
|
4893
|
-
headers:
|
|
4906
|
+
headers: Pe.normalize().toJSON(),
|
|
4894
4907
|
body: _e,
|
|
4895
4908
|
duplex: "half",
|
|
4896
4909
|
credentials: Ge ? He : void 0
|
|
4897
4910
|
};
|
|
4898
|
-
|
|
4899
|
-
let ft = await (oe ? Ae(
|
|
4911
|
+
Me = oe && new X(ge, Ke);
|
|
4912
|
+
let ft = await (oe ? Ae(Me, Ie) : Ae(ge, Ke));
|
|
4900
4913
|
const Je = he && (De === "stream" || De === "response");
|
|
4901
4914
|
if (he && (Ce || Je && Ne)) {
|
|
4902
4915
|
const Le = {};
|
|
@@ -4923,16 +4936,16 @@ const resolveConfig = (J) => {
|
|
|
4923
4936
|
status: ft.status,
|
|
4924
4937
|
statusText: ft.statusText,
|
|
4925
4938
|
config: me,
|
|
4926
|
-
request:
|
|
4939
|
+
request: Me
|
|
4927
4940
|
});
|
|
4928
4941
|
});
|
|
4929
4942
|
} catch (Ge) {
|
|
4930
4943
|
throw Ne && Ne(), Ge && Ge.name === "TypeError" && /Load failed|fetch/i.test(Ge.message) ? Object.assign(
|
|
4931
|
-
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, me,
|
|
4944
|
+
new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, me, Me),
|
|
4932
4945
|
{
|
|
4933
4946
|
cause: Ge.cause || Ge
|
|
4934
4947
|
}
|
|
4935
|
-
) : AxiosError$1.from(Ge, Ge && Ge.code, me,
|
|
4948
|
+
) : AxiosError$1.from(Ge, Ge && Ge.code, me, Me);
|
|
4936
4949
|
}
|
|
4937
4950
|
};
|
|
4938
4951
|
}, seedCache = /* @__PURE__ */ new Map(), getFetch = (J) => {
|
|
@@ -5479,7 +5492,38 @@ const validateMpidHeader = (J, W) => {
|
|
|
5479
5492
|
), te;
|
|
5480
5493
|
};
|
|
5481
5494
|
let instance;
|
|
5482
|
-
const createHttpClient = (J, W) => (instance || (instance = createAxiosInstance(J, W)), { request: instance.request });
|
|
5495
|
+
const createHttpClient = (J, W) => (instance || (instance = createAxiosInstance(J, W)), { request: instance.request }), CHECK_INTERVAL_MS = 3e4, REFRESH_THRESHOLD_S = 120, ACTIVITY_WINDOW_MS = 900 * 1e3;
|
|
5496
|
+
class SessionRefreshTimerImpl {
|
|
5497
|
+
constructor(W, X, te) {
|
|
5498
|
+
this.tokenManager = W, this.activityMonitor = X, this.broker = te, this.intervalId = null, this.isRefreshing = !1, this.start = () => {
|
|
5499
|
+
this.intervalId = setInterval(this.checkAndRefresh, CHECK_INTERVAL_MS);
|
|
5500
|
+
}, this.stop = () => {
|
|
5501
|
+
this.intervalId !== null && (clearInterval(this.intervalId), this.intervalId = null);
|
|
5502
|
+
}, this.getTokenExpiry = () => {
|
|
5503
|
+
try {
|
|
5504
|
+
const { exp: re } = jwtDecode(this.tokenManager.getToken());
|
|
5505
|
+
return re ?? 0;
|
|
5506
|
+
} catch {
|
|
5507
|
+
return 0;
|
|
5508
|
+
}
|
|
5509
|
+
}, this.checkAndRefresh = async () => {
|
|
5510
|
+
const re = Date.now();
|
|
5511
|
+
if (re - this.activityMonitor.getLastActivityTimestamp() > ACTIVITY_WINDOW_MS || this.isRefreshing) return;
|
|
5512
|
+
const oe = this.getTokenExpiry();
|
|
5513
|
+
if (oe !== 0 && oe - re / 1e3 <= REFRESH_THRESHOLD_S) {
|
|
5514
|
+
this.isRefreshing = !0;
|
|
5515
|
+
try {
|
|
5516
|
+
await this.tokenManager.refreshToken();
|
|
5517
|
+
} catch {
|
|
5518
|
+
this.broker.publish(BROKER_EVENTS.shell.refreshTokenFailed, {});
|
|
5519
|
+
} finally {
|
|
5520
|
+
this.isRefreshing = !1;
|
|
5521
|
+
}
|
|
5522
|
+
}
|
|
5523
|
+
};
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5526
|
+
const createSessionRefreshTimer = (J, W, X) => new SessionRefreshTimerImpl(J, W, X);
|
|
5483
5527
|
var jsxRuntime = { exports: {} }, reactJsxRuntime_production = {};
|
|
5484
5528
|
/**
|
|
5485
5529
|
* @license React
|
|
@@ -5651,14 +5695,14 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5651
5695
|
useEffect(() => {
|
|
5652
5696
|
if (we && _e.current) {
|
|
5653
5697
|
const We = _e.current, Ge = new ce();
|
|
5654
|
-
return Ge.data = W, Ge.setResult = me, Ge.setIsValid = ve, Ge.confirm = () => ge && De(!0), Ge.confirmResult = (Ke) => ge &&
|
|
5698
|
+
return Ge.data = W, Ge.setResult = me, Ge.setIsValid = ve, Ge.confirm = () => ge && De(!0), Ge.confirmResult = (Ke) => ge && Pe(Ke), Ge.cancel = () => De(!1), We.appendChild(Ge), () => {
|
|
5655
5699
|
We.removeChild(Ge);
|
|
5656
5700
|
};
|
|
5657
5701
|
}
|
|
5658
5702
|
}, [ce, W]);
|
|
5659
5703
|
const De = (We) => {
|
|
5660
5704
|
He(be, We);
|
|
5661
|
-
},
|
|
5705
|
+
}, Pe = (We) => {
|
|
5662
5706
|
He(We, !0);
|
|
5663
5707
|
}, He = (We, Ge) => {
|
|
5664
5708
|
setTimeout(() => {
|
|
@@ -5667,14 +5711,14 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5667
5711
|
confirmed: Ge
|
|
5668
5712
|
}), document.body.removeChild(ne), document.head.removeChild(de), ue && document.head.removeChild(he), window.removeEventListener("keydown", Ce);
|
|
5669
5713
|
}, 300);
|
|
5670
|
-
}, Ie = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary", Ae = () => "secondary", ze = () => re.state === "alert" ? "warning" : re.state === "error" ? "danger" : "",
|
|
5714
|
+
}, Ie = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary", Ae = () => "secondary", ze = () => re.state === "alert" ? "warning" : re.state === "error" ? "danger" : "", Me = () => re.state === "alert" ? "error" : re.state === "error" ? "warning" : "", Ne = () => we ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: _e }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5671
5715
|
ce,
|
|
5672
5716
|
{
|
|
5673
5717
|
data: W,
|
|
5674
5718
|
setResult: me,
|
|
5675
5719
|
setIsValid: ve,
|
|
5676
5720
|
confirm: () => ge && De(!0),
|
|
5677
|
-
confirmResult: (We) => ge &&
|
|
5721
|
+
confirmResult: (We) => ge && Pe(We),
|
|
5678
5722
|
cancel: () => De(!1)
|
|
5679
5723
|
}
|
|
5680
5724
|
);
|
|
@@ -5687,7 +5731,7 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5687
5731
|
size: "xl",
|
|
5688
5732
|
fill: !0,
|
|
5689
5733
|
class: `dss-dialog-header-state--${ze()}`,
|
|
5690
|
-
icon:
|
|
5734
|
+
icon: Me()
|
|
5691
5735
|
}
|
|
5692
5736
|
),
|
|
5693
5737
|
re.title
|
|
@@ -6019,11 +6063,11 @@ function peg$parse(J, W) {
|
|
|
6019
6063
|
return __assign$4({ type: TYPE.argument, value: Oe }, _s());
|
|
6020
6064
|
}, ve = bs("numberSkeletonId"), _e = /^['\/{}]/, ye = ws(["'", "/", "{", "}"], !1, !1), Se = Ni(), we = bs("numberSkeletonTokenOption"), Ce = "/", qe = us("/", !1), De = function(Oe) {
|
|
6021
6065
|
return Oe;
|
|
6022
|
-
},
|
|
6066
|
+
}, Pe = bs("numberSkeletonToken"), He = function(Oe, je) {
|
|
6023
6067
|
return { stem: Oe, options: je };
|
|
6024
6068
|
}, Ie = function(Oe) {
|
|
6025
6069
|
return __assign$4({ type: 0, tokens: Oe }, _s());
|
|
6026
|
-
}, Ae = "::", ze = us("::", !1),
|
|
6070
|
+
}, Ae = "::", ze = us("::", !1), Me = function(Oe) {
|
|
6027
6071
|
return Oe;
|
|
6028
6072
|
}, Ne = function() {
|
|
6029
6073
|
return vs.push("numberArgStyle"), !0;
|
|
@@ -6036,18 +6080,18 @@ function peg$parse(J, W) {
|
|
|
6036
6080
|
}, _t = function() {
|
|
6037
6081
|
return vs.push("dateOrTimeArgStyle"), !0;
|
|
6038
6082
|
}, kt = "date", It = us("date", !1), zt = "time", Nt = us("time", !1), Bt = "plural", rs = us("plural", !1), Yt = "selectordinal", gt = us("selectordinal", !1), mt = "offset:", xt = us("offset:", !1), Ct = function(Oe, je, tt, bt) {
|
|
6039
|
-
return __assign$4({ type: TYPE.plural, pluralType: je === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function($t,
|
|
6040
|
-
var es =
|
|
6083
|
+
return __assign$4({ type: TYPE.plural, pluralType: je === "plural" ? "cardinal" : "ordinal", value: Oe, offset: tt ? tt[2] : 0, options: bt.reduce(function($t, Mt) {
|
|
6084
|
+
var es = Mt.id, Ut = Mt.value, fs = Mt.location;
|
|
6041
6085
|
return es in $t && ai('Duplicate option "' + es + '" in plural element: "' + ni() + '"', Is()), $t[es] = {
|
|
6042
6086
|
value: Ut,
|
|
6043
6087
|
location: fs
|
|
6044
6088
|
}, $t;
|
|
6045
6089
|
}, {}) }, _s());
|
|
6046
|
-
}, wt = "select", Lt = us("select", !1),
|
|
6090
|
+
}, wt = "select", Lt = us("select", !1), Pt = function(Oe, je) {
|
|
6047
6091
|
return __assign$4({ type: TYPE.select, value: Oe, options: je.reduce(function(tt, bt) {
|
|
6048
|
-
var $t = bt.id,
|
|
6092
|
+
var $t = bt.id, Mt = bt.value, es = bt.location;
|
|
6049
6093
|
return $t in tt && ai('Duplicate option "' + $t + '" in select element: "' + ni() + '"', Is()), tt[$t] = {
|
|
6050
|
-
value:
|
|
6094
|
+
value: Mt,
|
|
6051
6095
|
location: es
|
|
6052
6096
|
}, tt;
|
|
6053
6097
|
}, {}) }, _s());
|
|
@@ -6079,7 +6123,7 @@ function peg$parse(J, W) {
|
|
|
6079
6123
|
return Oe === "{" || Oe === "}" || xi() && Oe === "#";
|
|
6080
6124
|
}, Di = bs("argNameOrNumber"), zi = bs("argNumber"), Ri = "0", Ii = us("0", !1), qi = function() {
|
|
6081
6125
|
return 0;
|
|
6082
|
-
},
|
|
6126
|
+
}, Mi = /^[1-9]/, Pi = ws([["1", "9"]], !1, !1), ri = /^[0-9]/, oi = ws([["0", "9"]], !1, !1), Li = function(Oe) {
|
|
6083
6127
|
return parseInt(Oe.join(""), 10);
|
|
6084
6128
|
}, Fi = bs("argName"), Fe = 0, Gt = 0, As = [{ line: 1, column: 1 }], ms = 0, Rs = [], yt = 0, Ts;
|
|
6085
6129
|
if (W.startRule !== void 0) {
|
|
@@ -6162,7 +6206,7 @@ function peg$parse(J, W) {
|
|
|
6162
6206
|
var Oe;
|
|
6163
6207
|
return Oe = Ui(), Oe === X && (Oe = Wi(), Oe === X && (Oe = Xi(), Oe === X && (Oe = sr(), Oe === X && (Oe = ir(), Oe === X && (Oe = ji()))))), Oe;
|
|
6164
6208
|
}
|
|
6165
|
-
function
|
|
6209
|
+
function Ms() {
|
|
6166
6210
|
var Oe, je, tt;
|
|
6167
6211
|
if (Oe = Fe, je = [], tt = xs(), tt === X && (tt = yi(), tt === X && (tt = wi())), tt !== X)
|
|
6168
6212
|
for (; tt !== X; )
|
|
@@ -6173,15 +6217,15 @@ function peg$parse(J, W) {
|
|
|
6173
6217
|
}
|
|
6174
6218
|
function Ui() {
|
|
6175
6219
|
var Oe, je;
|
|
6176
|
-
return Oe = Fe, je =
|
|
6220
|
+
return Oe = Fe, je = Ms(), je !== X && (Gt = Oe, je = ne(je)), Oe = je, Oe;
|
|
6177
6221
|
}
|
|
6178
6222
|
function ji() {
|
|
6179
6223
|
var Oe, je;
|
|
6180
6224
|
return Oe = Fe, J.charCodeAt(Fe) === 35 ? (je = de, Fe++) : (je = X, yt === 0 && Et(ce)), je !== X && (Gt = Oe, je = ue()), Oe = je, Oe;
|
|
6181
6225
|
}
|
|
6182
6226
|
function Wi() {
|
|
6183
|
-
var Oe, je, tt, bt, $t,
|
|
6184
|
-
return yt++, Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 125 ? (
|
|
6227
|
+
var Oe, je, tt, bt, $t, Mt;
|
|
6228
|
+
return yt++, Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 125 ? (Mt = be, Fe++) : (Mt = X, yt === 0 && Et(me)), Mt !== X ? (Gt = Oe, je = ge(bt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), yt--, Oe === X && (je = X, yt === 0 && Et(he)), Oe;
|
|
6185
6229
|
}
|
|
6186
6230
|
function ui() {
|
|
6187
6231
|
var Oe, je, tt, bt, $t;
|
|
@@ -6207,7 +6251,7 @@ function peg$parse(J, W) {
|
|
|
6207
6251
|
Fe = Oe, Oe = X;
|
|
6208
6252
|
else
|
|
6209
6253
|
Fe = Oe, Oe = X;
|
|
6210
|
-
return yt--, Oe === X && (je = X, yt === 0 && Et(
|
|
6254
|
+
return yt--, Oe === X && (je = X, yt === 0 && Et(Pe)), Oe;
|
|
6211
6255
|
}
|
|
6212
6256
|
function Gi() {
|
|
6213
6257
|
var Oe, je, tt;
|
|
@@ -6220,11 +6264,11 @@ function peg$parse(J, W) {
|
|
|
6220
6264
|
}
|
|
6221
6265
|
function Zi() {
|
|
6222
6266
|
var Oe, je, tt;
|
|
6223
|
-
return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Gi(), tt !== X ? (Gt = Oe, je =
|
|
6267
|
+
return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Gi(), tt !== X ? (Gt = Oe, je = Me(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe === X && (Oe = Fe, Gt = Fe, je = Ne(), je ? je = void 0 : je = X, je !== X ? (tt = Ms(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)), Oe;
|
|
6224
6268
|
}
|
|
6225
6269
|
function Ki() {
|
|
6226
|
-
var Oe, je, tt, bt, $t,
|
|
6227
|
-
return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (
|
|
6270
|
+
var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss;
|
|
6271
|
+
return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X ? (es = jt(), es !== X ? (J.substr(Fe, 6) === ft ? (Ut = ft, Fe += 6) : (Ut = X, yt === 0 && Et(Je)), Ut !== X ? (fs = jt(), fs !== X ? (Wt = Fe, J.charCodeAt(Fe) === 44 ? (as = Ge, Fe++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Zi(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Fe) === 125 ? (Zt = be, Fe++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
|
|
6228
6272
|
}
|
|
6229
6273
|
function fi() {
|
|
6230
6274
|
var Oe, je, tt, bt;
|
|
@@ -6265,23 +6309,23 @@ function peg$parse(J, W) {
|
|
|
6265
6309
|
}
|
|
6266
6310
|
function Ji() {
|
|
6267
6311
|
var Oe, je, tt;
|
|
6268
|
-
return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Yi(), tt !== X ? (Gt = Oe, je =
|
|
6312
|
+
return Oe = Fe, J.substr(Fe, 2) === Ae ? (je = Ae, Fe += 2) : (je = X, yt === 0 && Et(ze)), je !== X ? (tt = Yi(), tt !== X ? (Gt = Oe, je = Me(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe === X && (Oe = Fe, Gt = Fe, je = _t(), je ? je = void 0 : je = X, je !== X ? (tt = Ms(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)), Oe;
|
|
6269
6313
|
}
|
|
6270
6314
|
function Qi() {
|
|
6271
|
-
var Oe, je, tt, bt, $t,
|
|
6272
|
-
return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (
|
|
6315
|
+
var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss;
|
|
6316
|
+
return Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? ($t = jt(), $t !== X ? (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X ? (es = jt(), es !== X ? (J.substr(Fe, 4) === kt ? (Ut = kt, Fe += 4) : (Ut = X, yt === 0 && Et(It)), Ut === X && (J.substr(Fe, 4) === zt ? (Ut = zt, Fe += 4) : (Ut = X, yt === 0 && Et(Nt))), Ut !== X ? (fs = jt(), fs !== X ? (Wt = Fe, J.charCodeAt(Fe) === 44 ? (as = Ge, Fe++) : (as = X, yt === 0 && Et(Ke)), as !== X ? (Zt = jt(), Zt !== X ? (ss = Ji(), ss !== X ? (as = [as, Zt, ss], Wt = as) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X)) : (Fe = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Fe) === 125 ? (Zt = be, Fe++) : (Zt = X, yt === 0 && Et(me)), Zt !== X ? (Gt = Oe, je = Ze(bt, Ut, Wt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
|
|
6273
6317
|
}
|
|
6274
6318
|
function Xi() {
|
|
6275
6319
|
var Oe;
|
|
6276
6320
|
return Oe = Ki(), Oe === X && (Oe = Qi()), Oe;
|
|
6277
6321
|
}
|
|
6278
6322
|
function sr() {
|
|
6279
|
-
var Oe, je, tt, bt, $t,
|
|
6323
|
+
var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss, gs, ys, Ls;
|
|
6280
6324
|
if (Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X)
|
|
6281
6325
|
if (tt = jt(), tt !== X)
|
|
6282
6326
|
if (bt = Ss(), bt !== X)
|
|
6283
6327
|
if ($t = jt(), $t !== X)
|
|
6284
|
-
if (J.charCodeAt(Fe) === 44 ? (
|
|
6328
|
+
if (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X)
|
|
6285
6329
|
if (es = jt(), es !== X)
|
|
6286
6330
|
if (J.substr(Fe, 6) === Bt ? (Ut = Bt, Fe += 6) : (Ut = X, yt === 0 && Et(rs)), Ut === X && (J.substr(Fe, 13) === Yt ? (Ut = Yt, Fe += 13) : (Ut = X, yt === 0 && Et(gt))), Ut !== X)
|
|
6287
6331
|
if (fs = jt(), fs !== X)
|
|
@@ -6322,12 +6366,12 @@ function peg$parse(J, W) {
|
|
|
6322
6366
|
return Oe;
|
|
6323
6367
|
}
|
|
6324
6368
|
function ir() {
|
|
6325
|
-
var Oe, je, tt, bt, $t,
|
|
6369
|
+
var Oe, je, tt, bt, $t, Mt, es, Ut, fs, Wt, as, Zt, ss, gs;
|
|
6326
6370
|
if (Oe = Fe, J.charCodeAt(Fe) === 123 ? (je = pe, Fe++) : (je = X, yt === 0 && Et(fe)), je !== X)
|
|
6327
6371
|
if (tt = jt(), tt !== X)
|
|
6328
6372
|
if (bt = Ss(), bt !== X)
|
|
6329
6373
|
if ($t = jt(), $t !== X)
|
|
6330
|
-
if (J.charCodeAt(Fe) === 44 ? (
|
|
6374
|
+
if (J.charCodeAt(Fe) === 44 ? (Mt = Ge, Fe++) : (Mt = X, yt === 0 && Et(Ke)), Mt !== X)
|
|
6331
6375
|
if (es = jt(), es !== X)
|
|
6332
6376
|
if (J.substr(Fe, 6) === wt ? (Ut = wt, Fe += 6) : (Ut = X, yt === 0 && Et(Lt)), Ut !== X)
|
|
6333
6377
|
if (fs = jt(), fs !== X)
|
|
@@ -6338,7 +6382,7 @@ function peg$parse(J, W) {
|
|
|
6338
6382
|
Zt.push(ss), ss = gi();
|
|
6339
6383
|
else
|
|
6340
6384
|
Zt = X;
|
|
6341
|
-
Zt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Fe) === 125 ? (gs = be, Fe++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je =
|
|
6385
|
+
Zt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Fe) === 125 ? (gs = be, Fe++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je = Pt(bt, Zt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X);
|
|
6342
6386
|
} else
|
|
6343
6387
|
Fe = Oe, Oe = X;
|
|
6344
6388
|
else
|
|
@@ -6363,15 +6407,15 @@ function peg$parse(J, W) {
|
|
|
6363
6407
|
}
|
|
6364
6408
|
function rr() {
|
|
6365
6409
|
var Oe, je, tt, bt;
|
|
6366
|
-
return Oe = Fe, je = Fe, J.charCodeAt(Fe) === 61 ? (tt = Ft, Fe++) : (tt = X, yt === 0 && Et(cs)), tt !== X ? (bt = _i(), bt !== X ? (tt = [tt, bt], je = tt) : (Fe = je, je = X)) : (Fe = je, je = X), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, Oe === X && (Oe =
|
|
6410
|
+
return Oe = Fe, je = Fe, J.charCodeAt(Fe) === 61 ? (tt = Ft, Fe++) : (tt = X, yt === 0 && Et(cs)), tt !== X ? (bt = _i(), bt !== X ? (tt = [tt, bt], je = tt) : (Fe = je, je = X)) : (Fe = je, je = X), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, Oe === X && (Oe = Ps()), Oe;
|
|
6367
6411
|
}
|
|
6368
6412
|
function gi() {
|
|
6369
|
-
var Oe, je, tt, bt, $t,
|
|
6370
|
-
return Oe = Fe, je = jt(), je !== X ? (tt =
|
|
6413
|
+
var Oe, je, tt, bt, $t, Mt, es, Ut;
|
|
6414
|
+
return Oe = Fe, je = jt(), je !== X ? (tt = Ps(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe, Mt = ds(), Mt ? Mt = void 0 : Mt = X, Mt !== X ? (es = qs(), es !== X ? (J.charCodeAt(Fe) === 125 ? (Ut = be, Fe++) : (Ut = X, yt === 0 && Et(me)), Ut !== X ? (Gt = Oe, je = Kt(tt, es), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
|
|
6371
6415
|
}
|
|
6372
6416
|
function mi() {
|
|
6373
|
-
var Oe, je, tt, bt, $t,
|
|
6374
|
-
return Oe = Fe, je = jt(), je !== X ? (tt = rr(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe,
|
|
6417
|
+
var Oe, je, tt, bt, $t, Mt, es, Ut;
|
|
6418
|
+
return Oe = Fe, je = jt(), je !== X ? (tt = rr(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Fe) === 123 ? ($t = pe, Fe++) : ($t = X, yt === 0 && Et(fe)), $t !== X ? (Gt = Fe, Mt = ks(), Mt ? Mt = void 0 : Mt = X, Mt !== X ? (es = qs(), es !== X ? (J.charCodeAt(Fe) === 125 ? (Ut = be, Fe++) : (Ut = X, yt === 0 && Et(me)), Ut !== X ? (Gt = Oe, je = ts(tt, es), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X), Oe;
|
|
6375
6419
|
}
|
|
6376
6420
|
function $s() {
|
|
6377
6421
|
var Oe;
|
|
@@ -6396,11 +6440,11 @@ function peg$parse(J, W) {
|
|
|
6396
6440
|
return yt++, Oe = Fe, J.substr(Fe, 2) === Ot ? (je = Ot, Fe += 2) : (je = X, yt === 0 && Et(Ht)), je !== X && (Gt = Oe, je = Xt()), Oe = je, yt--, Oe === X && (je = X, yt === 0 && Et(Dt)), Oe;
|
|
6397
6441
|
}
|
|
6398
6442
|
function yi() {
|
|
6399
|
-
var Oe, je, tt, bt, $t,
|
|
6443
|
+
var Oe, je, tt, bt, $t, Mt;
|
|
6400
6444
|
if (Oe = Fe, J.charCodeAt(Fe) === 39 ? (je = Le, Fe++) : (je = X, yt === 0 && Et(Ue)), je !== X)
|
|
6401
6445
|
if (tt = or(), tt !== X) {
|
|
6402
|
-
for (bt = Fe, $t = [], J.substr(Fe, 2) === Ot ? (
|
|
6403
|
-
$t.push(
|
|
6446
|
+
for (bt = Fe, $t = [], J.substr(Fe, 2) === Ot ? (Mt = Ot, Fe += 2) : (Mt = X, yt === 0 && Et(Ht)), Mt === X && (Ve.test(J.charAt(Fe)) ? (Mt = J.charAt(Fe), Fe++) : (Mt = X, yt === 0 && Et(Qe))); Mt !== X; )
|
|
6447
|
+
$t.push(Mt), J.substr(Fe, 2) === Ot ? (Mt = Ot, Fe += 2) : (Mt = X, yt === 0 && Et(Ht)), Mt === X && (Ve.test(J.charAt(Fe)) ? (Mt = J.charAt(Fe), Fe++) : (Mt = X, yt === 0 && Et(Qe)));
|
|
6404
6448
|
$t !== X ? bt = J.substring(bt, Fe) : bt = $t, bt !== X ? (J.charCodeAt(Fe) === 39 ? ($t = Le, Fe++) : ($t = X, yt === 0 && Et(Ue)), $t === X && ($t = null), $t !== X ? (Gt = Oe, je = ns(tt, bt), Oe = je) : (Fe = Oe, Oe = X)) : (Fe = Oe, Oe = X);
|
|
6405
6449
|
} else
|
|
6406
6450
|
Fe = Oe, Oe = X;
|
|
@@ -6418,12 +6462,12 @@ function peg$parse(J, W) {
|
|
|
6418
6462
|
}
|
|
6419
6463
|
function Ss() {
|
|
6420
6464
|
var Oe, je;
|
|
6421
|
-
return yt++, Oe = Fe, je = $i(), je === X && (je =
|
|
6465
|
+
return yt++, Oe = Fe, je = $i(), je === X && (je = Ps()), je !== X ? Oe = J.substring(Oe, Fe) : Oe = je, yt--, Oe === X && (je = X, yt === 0 && Et(Di)), Oe;
|
|
6422
6466
|
}
|
|
6423
6467
|
function $i() {
|
|
6424
6468
|
var Oe, je, tt, bt, $t;
|
|
6425
6469
|
if (yt++, Oe = Fe, J.charCodeAt(Fe) === 48 ? (je = Ri, Fe++) : (je = X, yt === 0 && Et(Ii)), je !== X && (Gt = Oe, je = qi()), Oe = je, Oe === X) {
|
|
6426
|
-
if (Oe = Fe, je = Fe,
|
|
6470
|
+
if (Oe = Fe, je = Fe, Mi.test(J.charAt(Fe)) ? (tt = J.charAt(Fe), Fe++) : (tt = X, yt === 0 && Et(Pi)), tt !== X) {
|
|
6427
6471
|
for (bt = [], ri.test(J.charAt(Fe)) ? ($t = J.charAt(Fe), Fe++) : ($t = X, yt === 0 && Et(oi)); $t !== X; )
|
|
6428
6472
|
bt.push($t), ri.test(J.charAt(Fe)) ? ($t = J.charAt(Fe), Fe++) : ($t = X, yt === 0 && Et(oi));
|
|
6429
6473
|
bt !== X ? (tt = [tt, bt], je = tt) : (Fe = je, je = X);
|
|
@@ -6433,7 +6477,7 @@ function peg$parse(J, W) {
|
|
|
6433
6477
|
}
|
|
6434
6478
|
return yt--, Oe === X && (je = X, yt === 0 && Et(zi)), Oe;
|
|
6435
6479
|
}
|
|
6436
|
-
function
|
|
6480
|
+
function Ps() {
|
|
6437
6481
|
var Oe, je, tt, bt, $t;
|
|
6438
6482
|
if (yt++, Oe = Fe, je = [], tt = Fe, bt = Fe, yt++, $t = $s(), $t === X && ($t = vi()), yt--, $t === X ? bt = void 0 : (Fe = bt, bt = X), bt !== X ? (J.length > Fe ? ($t = J.charAt(Fe), Fe++) : ($t = X, yt === 0 && Et(Se)), $t !== X ? (bt = [bt, $t], tt = bt) : (Fe = tt, tt = X)) : (Fe = tt, tt = X), tt !== X)
|
|
6439
6483
|
for (; tt !== X; )
|
|
@@ -9736,20 +9780,17 @@ let token, refreshToken, tokenInitialized = !1;
|
|
|
9736
9780
|
class TokenManagerImpl {
|
|
9737
9781
|
constructor() {
|
|
9738
9782
|
this.getUrlParams = () => new URLSearchParams(window.location.search), this.initToken = () => {
|
|
9739
|
-
if (tokenInitialized)
|
|
9740
|
-
throw new Error("Token already initialized");
|
|
9783
|
+
if (tokenInitialized) throw new Error("Token already initialized");
|
|
9741
9784
|
tokenInitialized = !0;
|
|
9742
9785
|
const W = this.getUrlParams();
|
|
9743
9786
|
return token = W.get("access_token") || "", refreshToken = W.get("refresh_token") || "", token;
|
|
9744
9787
|
}, this.setInitialTokens = (W, X) => {
|
|
9745
|
-
if (tokenInitialized)
|
|
9746
|
-
throw new Error("Token already initialized");
|
|
9788
|
+
if (tokenInitialized) throw new Error("Token already initialized");
|
|
9747
9789
|
token = W, refreshToken = X, tokenInitialized = !0;
|
|
9748
9790
|
}, this.getToken = () => (tokenInitialized || this.initToken(), token), this.refreshToken = async () => {
|
|
9749
9791
|
tokenInitialized || this.initToken();
|
|
9750
9792
|
const W = await axios.post("/api/token/refresh", { token: refreshToken }), { access_token: X, refresh_token: te } = W.data;
|
|
9751
|
-
if (!X)
|
|
9752
|
-
throw new Error("Invalid refresh token response");
|
|
9793
|
+
if (!X) throw new Error("Invalid refresh token response");
|
|
9753
9794
|
return token = X, refreshToken = te, token;
|
|
9754
9795
|
};
|
|
9755
9796
|
}
|
|
@@ -9789,7 +9830,7 @@ class ImportDataManagerImpl {
|
|
|
9789
9830
|
async import(W, X) {
|
|
9790
9831
|
this.currentImporterId = W, this.currentImportParams = X, this.selectedItems = {}, this.pluginTexts = {};
|
|
9791
9832
|
try {
|
|
9792
|
-
const { ImportDataManagerModal: te } = await import("./component-
|
|
9833
|
+
const { ImportDataManagerModal: te } = await import("./component-DCk1Rgkl.js"), { confirmed: re } = await this.interactionService.confirm(
|
|
9793
9834
|
void 0,
|
|
9794
9835
|
{ component: te },
|
|
9795
9836
|
{
|
|
@@ -9850,7 +9891,7 @@ class PrimariaContextManagerImpl {
|
|
|
9850
9891
|
}
|
|
9851
9892
|
}
|
|
9852
9893
|
let contextManager$1;
|
|
9853
|
-
const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$k(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), exitGuardManager = new ExitGuardManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
|
|
9894
|
+
const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$p("primaria"), PrimariaRegionHost = v$k(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), activityMonitor = createActivityMonitor(), sessionRefreshTimer = createSessionRefreshTimer(tokenManager, activityMonitor, broker$1), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), exitGuardManager = new ExitGuardManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(globalStateManager), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
|
|
9854
9895
|
const W = createRegionManagerProxy(J, regionManager, broker$1);
|
|
9855
9896
|
return {
|
|
9856
9897
|
pluginInfo: J,
|
|
@@ -9874,7 +9915,9 @@ const createContextManager = () => contextManager$1 || (contextManager$1 = new P
|
|
|
9874
9915
|
}, shellApi = primariaApiFactory({ pluginId: primariaShellId }), api = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9875
9916
|
__proto__: null,
|
|
9876
9917
|
PrimariaRegionHost,
|
|
9918
|
+
activityMonitor,
|
|
9877
9919
|
primariaApiFactory,
|
|
9920
|
+
sessionRefreshTimer,
|
|
9878
9921
|
shellApi
|
|
9879
9922
|
}, Symbol.toStringTag, { value: "Module" })), registerRequest$1 = (J, W) => (X, te) => {
|
|
9880
9923
|
W.bind(te).to(te).inTransientScope(), injectable()(te);
|
|
@@ -10982,10 +11025,10 @@ function buildCreateSlice({
|
|
|
10982
11025
|
function Ce(qe = pe) {
|
|
10983
11026
|
const De = getOrInsertComputed(fe, Se, () => /* @__PURE__ */ new WeakMap());
|
|
10984
11027
|
return getOrInsertComputed(De, qe, () => {
|
|
10985
|
-
const
|
|
11028
|
+
const Pe = {};
|
|
10986
11029
|
for (const [He, Ie] of Object.entries(te.selectors ?? {}))
|
|
10987
|
-
|
|
10988
|
-
return
|
|
11030
|
+
Pe[He] = wrapSelector(Ie, qe, ge, Se);
|
|
11031
|
+
return Pe;
|
|
10989
11032
|
});
|
|
10990
11033
|
}
|
|
10991
11034
|
return {
|
|
@@ -17513,7 +17556,7 @@ const useGetUserInfo = (J) => {
|
|
|
17513
17556
|
}, disposeFeatures = (J) => {
|
|
17514
17557
|
disposeGetUserInfo(), disposeExitShell(), container$1.unbindAll(), J.regionManager._destroy(), mediatorSettings.resolver.clear();
|
|
17515
17558
|
}, disposeShell = () => {
|
|
17516
|
-
disposeFeatures(shellApi), shellApi.interactionService.dispose();
|
|
17559
|
+
disposeFeatures(shellApi), shellApi.interactionService.dispose(), sessionRefreshTimer.stop(), activityMonitor.stop();
|
|
17517
17560
|
}, raiseCloseEvent = () => {
|
|
17518
17561
|
shellApi.ecapEventManager.publish("CLOSE_FORM", "", {});
|
|
17519
17562
|
}, raiseCustomCloseEvent = (J) => {
|
|
@@ -18691,8 +18734,8 @@ var toPaddingObject = function(W, X) {
|
|
|
18691
18734
|
function arrow(J) {
|
|
18692
18735
|
var W, X = J.state, te = J.name, re = J.options, oe = X.elements.arrow, ne = X.modifiersData.popperOffsets, de = getBasePlacement(X.placement), ce = getMainAxisFromPlacement(de), ue = [left, right].indexOf(de) >= 0, he = ue ? "height" : "width";
|
|
18693
18736
|
if (!(!oe || !ne)) {
|
|
18694
|
-
var pe = toPaddingObject(re.padding, X), fe = getLayoutRect(oe), be = ce === "y" ? top : left, me = ce === "y" ? bottom : right, ge = X.rects.reference[he] + X.rects.reference[ce] - ne[ce] - X.rects.popper[he], ve = ne[ce] - X.rects.reference[ce], _e = getOffsetParent(oe), ye = _e ? ce === "y" ? _e.clientHeight || 0 : _e.clientWidth || 0 : 0, Se = ge / 2 - ve / 2, we = pe[be], Ce = ye - fe[he] - pe[me], qe = ye / 2 - fe[he] / 2 + Se, De = within(we, qe, Ce),
|
|
18695
|
-
X.modifiersData[te] = (W = {}, W[
|
|
18737
|
+
var pe = toPaddingObject(re.padding, X), fe = getLayoutRect(oe), be = ce === "y" ? top : left, me = ce === "y" ? bottom : right, ge = X.rects.reference[he] + X.rects.reference[ce] - ne[ce] - X.rects.popper[he], ve = ne[ce] - X.rects.reference[ce], _e = getOffsetParent(oe), ye = _e ? ce === "y" ? _e.clientHeight || 0 : _e.clientWidth || 0 : 0, Se = ge / 2 - ve / 2, we = pe[be], Ce = ye - fe[he] - pe[me], qe = ye / 2 - fe[he] / 2 + Se, De = within(we, qe, Ce), Pe = ce;
|
|
18738
|
+
X.modifiersData[te] = (W = {}, W[Pe] = De, W.centerOffset = De - qe, W);
|
|
18696
18739
|
}
|
|
18697
18740
|
}
|
|
18698
18741
|
function effect$1(J) {
|
|
@@ -18735,8 +18778,8 @@ function mapToStyles(J) {
|
|
|
18735
18778
|
be = ve.x, ge = ve.y;
|
|
18736
18779
|
var _e = ne.hasOwnProperty("x"), ye = ne.hasOwnProperty("y"), Se = left, we = top, Ce = window;
|
|
18737
18780
|
if (ue) {
|
|
18738
|
-
var qe = getOffsetParent(X), De = "clientHeight",
|
|
18739
|
-
if (qe === getWindow(X) && (qe = getDocumentElement(X), getComputedStyle(qe).position !== "static" && de === "absolute" && (De = "scrollHeight",
|
|
18781
|
+
var qe = getOffsetParent(X), De = "clientHeight", Pe = "clientWidth";
|
|
18782
|
+
if (qe === getWindow(X) && (qe = getDocumentElement(X), getComputedStyle(qe).position !== "static" && de === "absolute" && (De = "scrollHeight", Pe = "scrollWidth")), qe = qe, re === top || (re === left || re === right) && oe === end) {
|
|
18740
18783
|
we = bottom;
|
|
18741
18784
|
var He = pe && qe === Ce && Ce.visualViewport ? Ce.visualViewport.height : (
|
|
18742
18785
|
// $FlowFixMe[prop-missing]
|
|
@@ -18748,7 +18791,7 @@ function mapToStyles(J) {
|
|
|
18748
18791
|
Se = right;
|
|
18749
18792
|
var Ie = pe && qe === Ce && Ce.visualViewport ? Ce.visualViewport.width : (
|
|
18750
18793
|
// $FlowFixMe[prop-missing]
|
|
18751
|
-
qe[
|
|
18794
|
+
qe[Pe]
|
|
18752
18795
|
);
|
|
18753
18796
|
be -= Ie - te.width, be *= ce ? 1 : -1;
|
|
18754
18797
|
}
|
|
@@ -18763,8 +18806,8 @@ function mapToStyles(J) {
|
|
|
18763
18806
|
y: ge
|
|
18764
18807
|
};
|
|
18765
18808
|
if (be = ze.x, ge = ze.y, ce) {
|
|
18766
|
-
var
|
|
18767
|
-
return Object.assign({}, Ae, (
|
|
18809
|
+
var Me;
|
|
18810
|
+
return Object.assign({}, Ae, (Me = {}, Me[we] = ye ? "0" : "", Me[Se] = _e ? "0" : "", Me.transform = (Ce.devicePixelRatio || 1) <= 1 ? "translate(" + be + "px, " + ge + "px)" : "translate3d(" + be + "px, " + ge + "px, 0)", Me));
|
|
18768
18811
|
}
|
|
18769
18812
|
return Object.assign({}, Ae, (W = {}, W[we] = ye ? ge + "px" : "", W[Se] = _e ? be + "px" : "", W.transform = "", W));
|
|
18770
18813
|
}
|
|
@@ -18970,7 +19013,7 @@ function detectOverflow(J, W) {
|
|
|
18970
19013
|
reference: qe,
|
|
18971
19014
|
element: Se,
|
|
18972
19015
|
placement: re
|
|
18973
|
-
}),
|
|
19016
|
+
}), Pe = rectToClientRect(Object.assign({}, Se, De)), He = fe === popper ? Pe : qe, Ie = {
|
|
18974
19017
|
top: Ce.top - He.top + _e.top,
|
|
18975
19018
|
bottom: He.bottom - Ce.bottom + _e.bottom,
|
|
18976
19019
|
left: Ce.left - He.left + _e.left,
|
|
@@ -18978,9 +19021,9 @@ function detectOverflow(J, W) {
|
|
|
18978
19021
|
}, Ae = J.modifiersData.offset;
|
|
18979
19022
|
if (fe === popper && Ae) {
|
|
18980
19023
|
var ze = Ae[re];
|
|
18981
|
-
Object.keys(Ie).forEach(function(
|
|
18982
|
-
var Ne = [right, bottom].indexOf(
|
|
18983
|
-
Ie[
|
|
19024
|
+
Object.keys(Ie).forEach(function(Me) {
|
|
19025
|
+
var Ne = [right, bottom].indexOf(Me) >= 0 ? 1 : -1, We = [top, bottom].indexOf(Me) >= 0 ? "y" : "x";
|
|
19026
|
+
Ie[Me] += ze[We] * Ne;
|
|
18984
19027
|
});
|
|
18985
19028
|
}
|
|
18986
19029
|
return Ie;
|
|
@@ -19023,25 +19066,25 @@ function flip(J) {
|
|
|
19023
19066
|
flipVariations: me,
|
|
19024
19067
|
allowedAutoPlacements: ge
|
|
19025
19068
|
}) : Xe);
|
|
19026
|
-
}, []), Ce = W.rects.reference, qe = W.rects.popper, De = /* @__PURE__ */ new Map(),
|
|
19027
|
-
var Ae = we[Ie], ze = getBasePlacement(Ae),
|
|
19069
|
+
}, []), Ce = W.rects.reference, qe = W.rects.popper, De = /* @__PURE__ */ new Map(), Pe = !0, He = we[0], Ie = 0; Ie < we.length; Ie++) {
|
|
19070
|
+
var Ae = we[Ie], ze = getBasePlacement(Ae), Me = getVariation(Ae) === start, Ne = [top, bottom].indexOf(ze) >= 0, We = Ne ? "width" : "height", Ge = detectOverflow(W, {
|
|
19028
19071
|
placement: Ae,
|
|
19029
19072
|
boundary: he,
|
|
19030
19073
|
rootBoundary: pe,
|
|
19031
19074
|
altBoundary: fe,
|
|
19032
19075
|
padding: ue
|
|
19033
|
-
}), Ke = Ne ?
|
|
19076
|
+
}), Ke = Ne ? Me ? right : left : Me ? bottom : top;
|
|
19034
19077
|
Ce[We] > qe[We] && (Ke = getOppositePlacement(Ke));
|
|
19035
19078
|
var ft = getOppositePlacement(Ke), Je = [];
|
|
19036
19079
|
if (oe && Je.push(Ge[ze] <= 0), de && Je.push(Ge[Ke] <= 0, Ge[ft] <= 0), Je.every(function(Qe) {
|
|
19037
19080
|
return Qe;
|
|
19038
19081
|
})) {
|
|
19039
|
-
He = Ae,
|
|
19082
|
+
He = Ae, Pe = !1;
|
|
19040
19083
|
break;
|
|
19041
19084
|
}
|
|
19042
19085
|
De.set(Ae, Je);
|
|
19043
19086
|
}
|
|
19044
|
-
if (
|
|
19087
|
+
if (Pe)
|
|
19045
19088
|
for (var Ze = me ? 3 : 1, Le = function(Xe) {
|
|
19046
19089
|
var Be = we.find(function(Ye) {
|
|
19047
19090
|
var rt = De.get(Ye);
|
|
@@ -19157,7 +19200,7 @@ function preventOverflow(J) {
|
|
|
19157
19200
|
rootBoundary: ue,
|
|
19158
19201
|
padding: pe,
|
|
19159
19202
|
altBoundary: he
|
|
19160
|
-
}), _e = getBasePlacement(W.placement), ye = getVariation(W.placement), Se = !ye, we = getMainAxisFromPlacement(_e), Ce = getAltAxis(we), qe = W.modifiersData.popperOffsets, De = W.rects.reference,
|
|
19203
|
+
}), _e = getBasePlacement(W.placement), ye = getVariation(W.placement), Se = !ye, we = getMainAxisFromPlacement(_e), Ce = getAltAxis(we), qe = W.modifiersData.popperOffsets, De = W.rects.reference, Pe = W.rects.popper, He = typeof ge == "function" ? ge(Object.assign({}, W.rects, {
|
|
19161
19204
|
placement: W.placement
|
|
19162
19205
|
})) : ge, Ie = typeof He == "number" ? {
|
|
19163
19206
|
mainAxis: He,
|
|
@@ -19171,14 +19214,14 @@ function preventOverflow(J) {
|
|
|
19171
19214
|
};
|
|
19172
19215
|
if (qe) {
|
|
19173
19216
|
if (oe) {
|
|
19174
|
-
var
|
|
19217
|
+
var Me, Ne = we === "y" ? top : left, We = we === "y" ? bottom : right, Ge = we === "y" ? "height" : "width", Ke = qe[we], ft = Ke + ve[Ne], Je = Ke - ve[We], Ze = be ? -Pe[Ge] / 2 : 0, Le = ye === start ? De[Ge] : Pe[Ge], Ue = ye === start ? -Pe[Ge] : -De[Ge], Ve = W.elements.arrow, Qe = be && Ve ? getLayoutRect(Ve) : {
|
|
19175
19218
|
width: 0,
|
|
19176
19219
|
height: 0
|
|
19177
|
-
}, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = Xe[Ne], Ye = Xe[We], rt = within(0, De[Ge], Qe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Be - Ie.mainAxis : Le - rt - Be - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ue + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? we === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, zt = (
|
|
19220
|
+
}, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Be = Xe[Ne], Ye = Xe[We], rt = within(0, De[Ge], Qe[Ge]), ot = Se ? De[Ge] / 2 - Ze - rt - Be - Ie.mainAxis : Le - rt - Be - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ze + rt + Ye + Ie.mainAxis : Ue + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? we === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, zt = (Me = Ae?.[we]) != null ? Me : 0, Nt = Ke + ot - zt - It, Bt = Ke + _t - zt, rs = within(be ? min(ft, Nt) : ft, Ke, be ? max(Je, Bt) : Je);
|
|
19178
19221
|
qe[we] = rs, ze[we] = rs - Ke;
|
|
19179
19222
|
}
|
|
19180
19223
|
if (de) {
|
|
19181
|
-
var Yt, gt = we === "x" ? top : left, mt = we === "x" ? bottom : right, xt = qe[Ce], Ct = Ce === "y" ? "height" : "width", wt = xt + ve[gt], Lt = xt - ve[mt],
|
|
19224
|
+
var Yt, gt = we === "x" ? top : left, mt = we === "x" ? bottom : right, xt = qe[Ce], Ct = Ce === "y" ? "height" : "width", wt = xt + ve[gt], Lt = xt - ve[mt], Pt = [top, left].indexOf(_e) !== -1, Ft = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Pt ? wt : xt - De[Ct] - Pe[Ct] - Ft + Ie.altAxis, ds = Pt ? xt + De[Ct] + Pe[Ct] - Ft - Ie.altAxis : Lt, Kt = be && Pt ? withinMaxClamp(cs, xt, ds) : within(be ? cs : wt, xt, be ? ds : Lt);
|
|
19182
19225
|
qe[Ce] = Kt, ze[Ce] = Kt - xt;
|
|
19183
19226
|
}
|
|
19184
19227
|
W.modifiersData[te] = ze;
|
|
@@ -19331,10 +19374,10 @@ function popperGenerator(J) {
|
|
|
19331
19374
|
he.reset = !1, we = -1;
|
|
19332
19375
|
continue;
|
|
19333
19376
|
}
|
|
19334
|
-
var Ce = he.orderedModifiers[we], qe = Ce.fn, De = Ce.options,
|
|
19377
|
+
var Ce = he.orderedModifiers[we], qe = Ce.fn, De = Ce.options, Pe = De === void 0 ? {} : De, He = Ce.name;
|
|
19335
19378
|
typeof qe == "function" && (he = qe({
|
|
19336
19379
|
state: he,
|
|
19337
|
-
options:
|
|
19380
|
+
options: Pe,
|
|
19338
19381
|
name: He,
|
|
19339
19382
|
instance: be
|
|
19340
19383
|
}) || he);
|
|
@@ -22812,7 +22855,7 @@ a$k([
|
|
|
22812
22855
|
r$J()
|
|
22813
22856
|
], l$o.prototype, "_currentSortedData", 2);
|
|
22814
22857
|
const P$1 = er`dss-calendar${tr(f$o())}`, s$s = er`dss-icon${tr(f$o())}`, r$z = er`dss-icon-button${tr(f$o())}`, aa$1 = (J) => {
|
|
22815
|
-
var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De,
|
|
22858
|
+
var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De, Pe, He, Ie, Ae, ze, Me, Ne, We;
|
|
22816
22859
|
const Ge = {
|
|
22817
22860
|
"dss-datepicker-range--sm": J.inputSize !== "lg"
|
|
22818
22861
|
}, Ke = {
|
|
@@ -22848,7 +22891,7 @@ const P$1 = er`dss-calendar${tr(f$o())}`, s$s = er`dss-icon${tr(f$o())}`, r$z =
|
|
|
22848
22891
|
// 'dss-input-group--no-label': Boolean(!component._label),
|
|
22849
22892
|
}, Ue = {
|
|
22850
22893
|
"dss-calendar": !0,
|
|
22851
|
-
"dss-calendar--visible": J._showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((
|
|
22894
|
+
"dss-calendar--visible": J._showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((Pe = J._inputRangeEnd) != null && Pe.readOnly),
|
|
22852
22895
|
"dss-calendar--disabled": ((He = J._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = J._inputRangeEnd) == null ? void 0 : Ie.disabled),
|
|
22853
22896
|
"dss-calendar--sm": J.inputSize !== "lg"
|
|
22854
22897
|
};
|
|
@@ -22948,7 +22991,7 @@ const P$1 = er`dss-calendar${tr(f$o())}`, s$s = er`dss-icon${tr(f$o())}`, r$z =
|
|
|
22948
22991
|
aria-label="Datepicker Range Calendar"
|
|
22949
22992
|
id="datepicker-range-calendar"
|
|
22950
22993
|
class="${Rt(Ue)}"
|
|
22951
|
-
.selectedDate="${(
|
|
22994
|
+
.selectedDate="${(Me = J._inputRangeStart) == null ? void 0 : Me.value}"
|
|
22952
22995
|
.rangeStartDate="${(Ne = J._inputRangeStart) == null ? void 0 : Ne.value}"
|
|
22953
22996
|
.rangeEndDate="${(We = J._inputRangeEnd) == null ? void 0 : We.value}"
|
|
22954
22997
|
.customCalendar=${J.customCalendar}
|
|
@@ -39462,7 +39505,7 @@ i$a([
|
|
|
39462
39505
|
r$J()
|
|
39463
39506
|
], t$4.prototype, "defaultValue");
|
|
39464
39507
|
const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction:column;gap:var(--dss-spacing-xxs);width:100%;max-width:100%}.dss-input-wrapper--sm{gap:var(--dss-spacing-tiny)}.dss-input-icon{color:var(--color-neutral-900)}.dss-input-dropdown-wrapper{width:100%;max-width:100%}.dss-input-group{height:48px;width:100%;max-width:100%;box-sizing:border-box;padding:0 var(--dss-spacing-sm);border:var(--dss-border-width-sm) solid var(--color-neutral-100);border-radius:var(--dss-radius-sm);display:flex;align-items:center;gap:var(--dss-spacing-xs);background-color:var(--color-white);font-family:var(--font-family)}.dss-input-group--read-only{border-top-color:transparent;border-left-color:transparent;border-right-color:transparent;border-radius:0}.dss-input-group:not(.dss-input-group--read-only):focus-within{border-color:transparent;outline:var(--dss-border-width-lg) solid var(--color-blue-200)}.dss-input-group--read-only:focus-within{outline:none;position:relative}.dss-input-group--read-only:focus-within:before{pointer-events:none;content:"";position:absolute;top:100%;left:0;right:0;height:var(--dss-border-width-lg);background-color:var(--color-blue-200)}.dss-input-field{flex:1;min-width:0;display:flex;height:45px;position:relative}.dss-input-group--md{height:40px}.dss-input-group--md .dss-input-field{height:37px}.dss-input-group--sm{height:32px;padding:0 var(--dss-spacing-xs)}.dss-input-group--sm .dss-input-field{height:29px}.dss-wrapper-label label.dss-label{font-size:14px;font-weight:var(--font-semibold);line-height:24px;color:var(--color-neutral-700);background-color:transparent}.dss-wrapper-label.dss-wrapper-label--invalid label.dss-label{color:var(--color-red-500)}.dss-input-wrapper--disabled .dss-wrapper-label label.dss-label{color:var(--color-neutral-500)}.dss-input-field label.dss-label{position:absolute;top:50%;transform:translateY(-50%);left:0;font-size:14px;color:var(--color-neutral-600);transition:all .3s ease-in-out;max-height:24px;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dss-input-field:focus-within label.dss-label,.dss-input-group--focused label.dss-label{font-size:12px;top:0;transform:translateY(0)}.dss-input-group.dss-input-group--focused.dss-input-group--read-only-empty label.dss-label{font-size:14px;top:50%;transform:translateY(-50%)}.dss-input-group--md .dss-input-field:focus-within label.dss-label,.dss-input-group--md.dss-input-group--focused label.dss-label{top:0}.dss-input-field input.dss-input{border:none;height:100%;padding:0;box-sizing:border-box;color:var(--color-neutral-900);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px;width:100%;max-width:100%;background-color:transparent}.dss-input-field input.dss-input::-webkit-outer-spin-button,.dss-input-field input.dss-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dss-input-field input.dss-input[type=number]{-moz-appearance:textfield}.dss-input-field input.dss-input::-moz-placeholder{color:var(--color-neutral-700)}.dss-input-field input.dss-input::-moz-placeholder,.dss-input-field input.dss-input::-ms-input-placeholder,.dss-input-field input.dss-input::placeholder{color:var(--color-neutral-700)}.dss-input-group:not(.dss-input-group--sm) .dss-input-field input.dss-input{padding-top:var(--dss-spacing-md)!important;padding-bottom:0!important}.dss-input-field input.dss-input:-moz-placeholder-shown{border:none;outline:none;height:100%}.dss-input-field input.dss-input:focus-visible,.dss-input-field input.dss-input:placeholder-shown{border:none;outline:none;height:100%}.dss-input-field input.dss-input::-moz-placeholder{color:var(--color-neutral-600)}.dss-input-field input.dss-input::placeholder{color:var(--color-neutral-600)}.dss-input-group--disabled{cursor:not-allowed;background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-input-group--disabled .dss-input-field label.dss-label{cursor:not-allowed!important;color:var(--color-neutral-500)}.dss-input-group--disabled .dss-input-field input.dss-input{cursor:not-allowed!important;background-color:var(--color-neutral-50);color:var(--color-neutral-500)}.dss-input-help{display:flex;justify-content:space-between;font-family:var(--font-family);font-size:12px;color:var(--color-neutral-700);padding:0 var(--dss-spacing-sm)}.dss-input-help--invalid{color:var(--color-red-500)}.dss-input-help--disabled{color:var(--color-neutral-500)}.dss-input-group--invalid:not(.dss-input-group--disabled):not(.dss-input-group--read-only):not(:focus-within){background-color:var(--color-red-50);border-color:var(--color-red-500)}.dss-input-group--invalid.dss-input-group--read-only:not(.dss-input-group--disabled):not(:focus-within){border-bottom-color:var(--color-red-500)}.dss-input-group--invalid:not(.dss-input-group--disabled) .dss-input-field label.dss-label{color:var(--color-red-500)}.dss-input-group--invalid:not(.dss-input-group--disabled):not(.dss-input-group--read-only):not(:focus-within) .dss-input-field input.dss-input{background-color:var(--color-red-50)}.dss-input-wrapper--required label.dss-label:before,.dss-input-group--required label.dss-label:before{content:"*"}.dss-input-numeric-buttons{padding:0;display:flex;flex-direction:column;justify-content:center;transition:all .3s ease-in;height:100%}.dss-input-numeric-buttons .dss-icon-button{display:flex;justify-content:center;text-align:center;width:18px;height:18px;align-items:center;font-size:16px}.dss-input-group.dss-input-group--no-label .dss-input-field input.dss-input{padding-top:0!important;padding-bottom:0!important}.dss-input-wrapper--sm.dss-input-wrapper--no-label{gap:0}.dss-input-unit{font-size:14px;font-weight:var(--font-regular);color:var(--color-neutral-700);margin-top:0;transition:margin var(--animation-delay) ease-in-out}.dss-input-wrapper:not(.dss-input-wrapper--sm):not(.dss-input-wrapper--no-label) .dss-input-group--focused .dss-input-unit{margin-top:14px}.dss-input-group--disabled .dss-input-unit{color:var(--color-neutral-500)}.dss-input-inputPrefix{font-size:14px;font-weight:var(--font-regular);color:var(--color-neutral-700);padding-right:var(--dss-spacing-xxs);opacity:0;visibility:hidden;transition:opacity var(--animation-delay) ease-in-out,visibility var(--animation-delay) ease-in-out}.dss-input-wrapper.dss-input-wrapper--sm .dss-input-inputPrefix{align-self:center}.dss-input-wrapper:not(.dss-input-wrapper--sm) .dss-input-inputPrefix{align-self:flex-end}.dss-input-wrapper.dss-input-wrapper--no-label.dss-input-wrapper--lg .dss-input-inputPrefix{padding-bottom:10px!important}.dss-input-wrapper.dss-input-wrapper--no-label.dss-input-wrapper--md .dss-input-inputPrefix{padding-bottom:6px!important}.dss-input-wrapper.dss-input-wrapper--md:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{margin-bottom:-2px}.dss-input-wrapper.dss-input-wrapper--lg:not(.dss-input-wrapper--no-label) .dss-input-inputPrefix{padding-bottom:var(--dss-spacing-tiny)!important}.dss-input-wrapper .dss-input-group--focused .dss-input-inputPrefix{opacity:1;visibility:visible}.dss-input-actions{position:relative;padding-left:var(--dss-spacing-xs);display:flex;align-items:center;gap:var(--dss-spacing-xs)}.dss-input-actions:before{content:"";position:absolute;top:50%;left:0;transform:translateY(-50%);height:24px;width:var(--dss-border-width-sm);background-color:var(--color-neutral-500)}.dss-input-tooltip{display:none}.dss-input-tooltip--visible{display:block}', i$9 = ":host{display:block;width:100%;min-width:257px}.dss-datepicker-range{font-family:var(--font-family)}.dss-datepicker-range-inputs{display:grid;grid-template-columns:1fr 1fr;gap:var(--dss-spacing-md)}.dss-datepicker-range-help{font-family:var(--font-family)}.dss-datepicker-range-help{font-family:inherit;font-size:12px;color:var(--color-neutral-700);padding:var(--dss-spacing-xxs) var(--dss-spacing-sm)}.dss-datepicker-range-help--disabled{color:var(--color-neutral-500)}.dss-datepicker-range-help--invalid{color:var(--color-red-500)}.dss-calendar{z-index:999;width:-moz-fit-content;width:fit-content;opacity:0;visibility:hidden;transition:opacity var(--animation-delay) ease-out}.dss-calendar--visible{opacity:1;visibility:visible}", P = er`dss-calendar${tr(f$o())}`, i$8 = er`dss-icon${tr(f$o())}`, l$2 = er`dss-icon-button${tr(f$o())}`, aa = (J) => {
|
|
39465
|
-
var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De,
|
|
39508
|
+
var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, ye, Se, we, Ce, qe, De, Pe, He, Ie, Ae, ze, Me, Ne, We;
|
|
39466
39509
|
const Ge = {
|
|
39467
39510
|
"dss-datepicker-range--sm": J.size !== "lg"
|
|
39468
39511
|
}, Ke = {
|
|
@@ -39498,7 +39541,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
39498
39541
|
// 'dss-input-group--no-label': Boolean(!component._label),
|
|
39499
39542
|
}, Ue = {
|
|
39500
39543
|
"dss-calendar": !0,
|
|
39501
|
-
"dss-calendar--visible": J.showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((
|
|
39544
|
+
"dss-calendar--visible": J.showCalendar && !((De = J._inputRangeStart) != null && De.readOnly) && !((Pe = J._inputRangeEnd) != null && Pe.readOnly),
|
|
39502
39545
|
"dss-calendar--disabled": ((He = J._inputRangeStart) == null ? void 0 : He.disabled) && ((Ie = J._inputRangeEnd) == null ? void 0 : Ie.disabled),
|
|
39503
39546
|
"dss-calendar--sm": J.size !== "lg"
|
|
39504
39547
|
};
|
|
@@ -39639,7 +39682,7 @@ const s$6 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
39639
39682
|
aria-label="Datepicker Range Calendar"
|
|
39640
39683
|
id="datepicker-range-calendar"
|
|
39641
39684
|
class="${Rt(Ue)}"
|
|
39642
|
-
.selectedDate="${(
|
|
39685
|
+
.selectedDate="${(Me = J._inputRangeStart) == null ? void 0 : Me.value}"
|
|
39643
39686
|
.rangeStartDate="${(Ne = J._inputRangeStart) == null ? void 0 : Ne.value}"
|
|
39644
39687
|
.rangeEndDate="${(We = J._inputRangeEnd) == null ? void 0 : We.value}"
|
|
39645
39688
|
.customCalendar=${J.customCalendar}
|
|
@@ -45169,21 +45212,21 @@ function requireQuill() {
|
|
|
45169
45212
|
value: !0
|
|
45170
45213
|
}), te.default = te.BlockEmbed = te.bubbleFormats = void 0;
|
|
45171
45214
|
var oe = /* @__PURE__ */ (function() {
|
|
45172
|
-
function Ae(ze,
|
|
45173
|
-
for (var Ne = 0; Ne <
|
|
45174
|
-
var We =
|
|
45215
|
+
function Ae(ze, Me) {
|
|
45216
|
+
for (var Ne = 0; Ne < Me.length; Ne++) {
|
|
45217
|
+
var We = Me[Ne];
|
|
45175
45218
|
We.enumerable = We.enumerable || !1, We.configurable = !0, "value" in We && (We.writable = !0), Object.defineProperty(ze, We.key, We);
|
|
45176
45219
|
}
|
|
45177
45220
|
}
|
|
45178
|
-
return function(ze,
|
|
45179
|
-
return
|
|
45221
|
+
return function(ze, Me, Ne) {
|
|
45222
|
+
return Me && Ae(ze.prototype, Me), Ne && Ae(ze, Ne), ze;
|
|
45180
45223
|
};
|
|
45181
|
-
})(), ne = function Ae(ze,
|
|
45224
|
+
})(), ne = function Ae(ze, Me, Ne) {
|
|
45182
45225
|
ze === null && (ze = Function.prototype);
|
|
45183
|
-
var We = Object.getOwnPropertyDescriptor(ze,
|
|
45226
|
+
var We = Object.getOwnPropertyDescriptor(ze, Me);
|
|
45184
45227
|
if (We === void 0) {
|
|
45185
45228
|
var Ge = Object.getPrototypeOf(ze);
|
|
45186
|
-
return Ge === null ? void 0 : Ae(Ge,
|
|
45229
|
+
return Ge === null ? void 0 : Ae(Ge, Me, Ne);
|
|
45187
45230
|
} else {
|
|
45188
45231
|
if ("value" in We)
|
|
45189
45232
|
return We.value;
|
|
@@ -45208,7 +45251,7 @@ function requireQuill() {
|
|
|
45208
45251
|
throw new TypeError("Super expression must either be null or a function, not " + typeof ze);
|
|
45209
45252
|
Ae.prototype = Object.create(ze && ze.prototype, { constructor: { value: Ae, enumerable: !1, writable: !0, configurable: !0 } }), ze && (Object.setPrototypeOf ? Object.setPrototypeOf(Ae, ze) : Ae.__proto__ = ze);
|
|
45210
45253
|
}
|
|
45211
|
-
var De = 1,
|
|
45254
|
+
var De = 1, Pe = (function(Ae) {
|
|
45212
45255
|
qe(ze, Ae);
|
|
45213
45256
|
function ze() {
|
|
45214
45257
|
return we(this, ze), Ce(this, (ze.__proto__ || Object.getPrototypeOf(ze)).apply(this, arguments));
|
|
@@ -45246,12 +45289,12 @@ function requireQuill() {
|
|
|
45246
45289
|
}
|
|
45247
45290
|
}]), ze;
|
|
45248
45291
|
})(fe.default.Embed);
|
|
45249
|
-
|
|
45292
|
+
Pe.scope = fe.default.Scope.BLOCK_BLOT;
|
|
45250
45293
|
var He = (function(Ae) {
|
|
45251
45294
|
qe(ze, Ae);
|
|
45252
|
-
function ze(
|
|
45295
|
+
function ze(Me) {
|
|
45253
45296
|
we(this, ze);
|
|
45254
|
-
var Ne = Ce(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this,
|
|
45297
|
+
var Ne = Ce(this, (ze.__proto__ || Object.getPrototypeOf(ze)).call(this, Me));
|
|
45255
45298
|
return Ne.cache = {}, Ne;
|
|
45256
45299
|
}
|
|
45257
45300
|
return oe(ze, [{
|
|
@@ -45336,7 +45379,7 @@ function requireQuill() {
|
|
|
45336
45379
|
var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
45337
45380
|
return Ae == null || (typeof Ae.formats == "function" && (ze = (0, ce.default)(ze, Ae.formats())), Ae.parent == null || Ae.parent.blotName == "scroll" || Ae.parent.statics.scope !== Ae.statics.scope) ? ze : Ie(Ae.parent, ze);
|
|
45338
45381
|
}
|
|
45339
|
-
te.bubbleFormats = Ie, te.BlockEmbed =
|
|
45382
|
+
te.bubbleFormats = Ie, te.BlockEmbed = Pe, te.default = He;
|
|
45340
45383
|
}),
|
|
45341
45384
|
/* 5 */
|
|
45342
45385
|
/***/
|
|
@@ -45384,7 +45427,7 @@ function requireQuill() {
|
|
|
45384
45427
|
};
|
|
45385
45428
|
})();
|
|
45386
45429
|
re(51);
|
|
45387
|
-
var ce = re(2), ue = Ie(ce), he = re(14), pe = Ie(he), fe = re(8), be = Ie(fe), me = re(9), ge = Ie(me), ve = re(0), _e = Ie(ve), ye = re(15), Se = Ie(ye), we = re(3), Ce = Ie(we), qe = re(10), De = Ie(qe),
|
|
45430
|
+
var ce = re(2), ue = Ie(ce), he = re(14), pe = Ie(he), fe = re(8), be = Ie(fe), me = re(9), ge = Ie(me), ve = re(0), _e = Ie(ve), ye = re(15), Se = Ie(ye), we = re(3), Ce = Ie(we), qe = re(10), De = Ie(qe), Pe = re(35), He = Ie(Pe);
|
|
45388
45431
|
function Ie(Je) {
|
|
45389
45432
|
return Je && Je.__esModule ? Je : { default: Je };
|
|
45390
45433
|
}
|
|
@@ -45395,7 +45438,7 @@ function requireQuill() {
|
|
|
45395
45438
|
if (!(Je instanceof Ze))
|
|
45396
45439
|
throw new TypeError("Cannot call a class as a function");
|
|
45397
45440
|
}
|
|
45398
|
-
var
|
|
45441
|
+
var Me = (0, De.default)("quill"), Ne = (function() {
|
|
45399
45442
|
de(Je, null, [{
|
|
45400
45443
|
key: "debug",
|
|
45401
45444
|
value: function(Le) {
|
|
@@ -45409,7 +45452,7 @@ function requireQuill() {
|
|
|
45409
45452
|
}, {
|
|
45410
45453
|
key: "import",
|
|
45411
45454
|
value: function(Le) {
|
|
45412
|
-
return this.imports[Le] == null &&
|
|
45455
|
+
return this.imports[Le] == null && Me.error("Cannot import " + Le + ". Are you sure it was registered?"), this.imports[Le];
|
|
45413
45456
|
}
|
|
45414
45457
|
}, {
|
|
45415
45458
|
key: "register",
|
|
@@ -45421,13 +45464,13 @@ function requireQuill() {
|
|
|
45421
45464
|
Ve.register(Be, Le[Be], Ue);
|
|
45422
45465
|
});
|
|
45423
45466
|
} else
|
|
45424
|
-
this.imports[Le] != null && !Qe &&
|
|
45467
|
+
this.imports[Le] != null && !Qe && Me.warn("Overwriting " + Le + " with", Ue), this.imports[Le] = Ue, (Le.startsWith("blots/") || Le.startsWith("formats/")) && Ue.blotName !== "abstract" ? _e.default.register(Ue) : Le.startsWith("modules") && typeof Ue.register == "function" && Ue.register();
|
|
45425
45468
|
}
|
|
45426
45469
|
}]);
|
|
45427
45470
|
function Je(Ze) {
|
|
45428
45471
|
var Le = this, Ue = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
45429
45472
|
if (ze(this, Je), this.options = We(Ze, Ue), this.container = this.options.container, this.container == null)
|
|
45430
|
-
return
|
|
45473
|
+
return Me.error("Invalid Quill container", Ze);
|
|
45431
45474
|
this.options.debug && Je.debug(this.options.debug);
|
|
45432
45475
|
var Ve = this.container.innerHTML.trim();
|
|
45433
45476
|
this.container.classList.add("ql-container"), this.container.innerHTML = "", this.container.__quill = this, this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.root.setAttribute("data-gramm", !1), this.scrollingContainer = this.options.scrollingContainer || this.root, this.emitter = new be.default(), this.scroll = _e.default.create(this.root, {
|
|
@@ -45727,7 +45770,7 @@ function requireQuill() {
|
|
|
45727
45770
|
});
|
|
45728
45771
|
var Ue = Object.keys(Le.modules).concat(Object.keys(Ze.modules)), Ve = Ue.reduce(function(Qe, Xe) {
|
|
45729
45772
|
var Be = Ne.import("modules/" + Xe);
|
|
45730
|
-
return Be == null ?
|
|
45773
|
+
return Be == null ? Me.error("Cannot load " + Xe + " module. Are you sure you registered it?") : Qe[Xe] = Be.DEFAULTS || {}, Qe;
|
|
45731
45774
|
}, {});
|
|
45732
45775
|
return Ze.modules != null && Ze.modules.toolbar && Ze.modules.toolbar.constructor !== Object && (Ze.modules.toolbar = {
|
|
45733
45776
|
container: Ze.modules.toolbar
|
|
@@ -45903,25 +45946,25 @@ function requireQuill() {
|
|
|
45903
45946
|
});
|
|
45904
45947
|
var oe = /* @__PURE__ */ (function() {
|
|
45905
45948
|
function Ce(qe, De) {
|
|
45906
|
-
for (var
|
|
45907
|
-
var He = De[
|
|
45949
|
+
for (var Pe = 0; Pe < De.length; Pe++) {
|
|
45950
|
+
var He = De[Pe];
|
|
45908
45951
|
He.enumerable = He.enumerable || !1, He.configurable = !0, "value" in He && (He.writable = !0), Object.defineProperty(qe, He.key, He);
|
|
45909
45952
|
}
|
|
45910
45953
|
}
|
|
45911
|
-
return function(qe, De,
|
|
45912
|
-
return De && Ce(qe.prototype, De),
|
|
45954
|
+
return function(qe, De, Pe) {
|
|
45955
|
+
return De && Ce(qe.prototype, De), Pe && Ce(qe, Pe), qe;
|
|
45913
45956
|
};
|
|
45914
|
-
})(), ne = function Ce(qe, De,
|
|
45957
|
+
})(), ne = function Ce(qe, De, Pe) {
|
|
45915
45958
|
qe === null && (qe = Function.prototype);
|
|
45916
45959
|
var He = Object.getOwnPropertyDescriptor(qe, De);
|
|
45917
45960
|
if (He === void 0) {
|
|
45918
45961
|
var Ie = Object.getPrototypeOf(qe);
|
|
45919
|
-
return Ie === null ? void 0 : Ce(Ie, De,
|
|
45962
|
+
return Ie === null ? void 0 : Ce(Ie, De, Pe);
|
|
45920
45963
|
} else {
|
|
45921
45964
|
if ("value" in He)
|
|
45922
45965
|
return He.value;
|
|
45923
45966
|
var Ae = He.get;
|
|
45924
|
-
return Ae === void 0 ? void 0 : Ae.call(
|
|
45967
|
+
return Ae === void 0 ? void 0 : Ae.call(Pe);
|
|
45925
45968
|
}
|
|
45926
45969
|
}, de = re(55), ce = fe(de), ue = re(10), he = fe(ue), pe = re(34);
|
|
45927
45970
|
function fe(Ce) {
|
|
@@ -45944,8 +45987,8 @@ function requireQuill() {
|
|
|
45944
45987
|
var ve = (0, he.default)("quill:events"), _e = [pe.SHADOW_SELECTIONCHANGE, "mousedown", "mouseup", "click"], ye = [], Se = "getRootNode" in document;
|
|
45945
45988
|
_e.forEach(function(Ce) {
|
|
45946
45989
|
document.addEventListener(Ce, function() {
|
|
45947
|
-
for (var qe = arguments.length, De = Array(qe),
|
|
45948
|
-
De[
|
|
45990
|
+
for (var qe = arguments.length, De = Array(qe), Pe = 0; Pe < qe; Pe++)
|
|
45991
|
+
De[Pe] = arguments[Pe];
|
|
45949
45992
|
ye.forEach(function(He) {
|
|
45950
45993
|
He.handleDOM.apply(He, De);
|
|
45951
45994
|
});
|
|
@@ -45965,10 +46008,10 @@ function requireQuill() {
|
|
|
45965
46008
|
}
|
|
45966
46009
|
}, {
|
|
45967
46010
|
key: "handleDOM",
|
|
45968
|
-
value: function(
|
|
46011
|
+
value: function(Pe) {
|
|
45969
46012
|
for (var He = arguments.length, Ie = Array(He > 1 ? He - 1 : 0), Ae = 1; Ae < He; Ae++)
|
|
45970
46013
|
Ie[Ae - 1] = arguments[Ae];
|
|
45971
|
-
var ze =
|
|
46014
|
+
var ze = Pe.composedPath ? Pe.composedPath()[0] : Pe.target, Me = function(We, Ge) {
|
|
45972
46015
|
if (!Se || Ge.getRootNode() === document)
|
|
45973
46016
|
return We.contains(Ge);
|
|
45974
46017
|
for (; !We.contains(Ge); ) {
|
|
@@ -45979,15 +46022,15 @@ function requireQuill() {
|
|
|
45979
46022
|
}
|
|
45980
46023
|
return !0;
|
|
45981
46024
|
};
|
|
45982
|
-
(this.listeners[
|
|
46025
|
+
(this.listeners[Pe.type] || []).forEach(function(Ne) {
|
|
45983
46026
|
var We = Ne.node, Ge = Ne.handler;
|
|
45984
|
-
(ze === We ||
|
|
46027
|
+
(ze === We || Me(We, ze)) && Ge.apply(void 0, [Pe].concat(Ie));
|
|
45985
46028
|
});
|
|
45986
46029
|
}
|
|
45987
46030
|
}, {
|
|
45988
46031
|
key: "listenDOM",
|
|
45989
|
-
value: function(
|
|
45990
|
-
this.listeners[
|
|
46032
|
+
value: function(Pe, He, Ie) {
|
|
46033
|
+
this.listeners[Pe] || (this.listeners[Pe] = []), this.listeners[Pe].push({ node: He, handler: Ie });
|
|
45991
46034
|
}
|
|
45992
46035
|
}]), qe;
|
|
45993
46036
|
})(ce.default);
|
|
@@ -46119,18 +46162,18 @@ function requireQuill() {
|
|
|
46119
46162
|
value: !0
|
|
46120
46163
|
}), te.default = te.Code = void 0;
|
|
46121
46164
|
var oe = /* @__PURE__ */ (function() {
|
|
46122
|
-
function
|
|
46123
|
-
var Ae = [], ze = !0,
|
|
46165
|
+
function Pe(He, Ie) {
|
|
46166
|
+
var Ae = [], ze = !0, Me = !1, Ne = void 0;
|
|
46124
46167
|
try {
|
|
46125
46168
|
for (var We = He[Symbol.iterator](), Ge; !(ze = (Ge = We.next()).done) && (Ae.push(Ge.value), !(Ie && Ae.length === Ie)); ze = !0)
|
|
46126
46169
|
;
|
|
46127
46170
|
} catch (Ke) {
|
|
46128
|
-
|
|
46171
|
+
Me = !0, Ne = Ke;
|
|
46129
46172
|
} finally {
|
|
46130
46173
|
try {
|
|
46131
46174
|
!ze && We.return && We.return();
|
|
46132
46175
|
} finally {
|
|
46133
|
-
if (
|
|
46176
|
+
if (Me) throw Ne;
|
|
46134
46177
|
}
|
|
46135
46178
|
}
|
|
46136
46179
|
return Ae;
|
|
@@ -46139,25 +46182,25 @@ function requireQuill() {
|
|
|
46139
46182
|
if (Array.isArray(He))
|
|
46140
46183
|
return He;
|
|
46141
46184
|
if (Symbol.iterator in Object(He))
|
|
46142
|
-
return
|
|
46185
|
+
return Pe(He, Ie);
|
|
46143
46186
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
46144
46187
|
};
|
|
46145
46188
|
})(), ne = /* @__PURE__ */ (function() {
|
|
46146
|
-
function
|
|
46189
|
+
function Pe(He, Ie) {
|
|
46147
46190
|
for (var Ae = 0; Ae < Ie.length; Ae++) {
|
|
46148
46191
|
var ze = Ie[Ae];
|
|
46149
46192
|
ze.enumerable = ze.enumerable || !1, ze.configurable = !0, "value" in ze && (ze.writable = !0), Object.defineProperty(He, ze.key, ze);
|
|
46150
46193
|
}
|
|
46151
46194
|
}
|
|
46152
46195
|
return function(He, Ie, Ae) {
|
|
46153
|
-
return Ie &&
|
|
46196
|
+
return Ie && Pe(He.prototype, Ie), Ae && Pe(He, Ae), He;
|
|
46154
46197
|
};
|
|
46155
|
-
})(), de = function
|
|
46198
|
+
})(), de = function Pe(He, Ie, Ae) {
|
|
46156
46199
|
He === null && (He = Function.prototype);
|
|
46157
46200
|
var ze = Object.getOwnPropertyDescriptor(He, Ie);
|
|
46158
46201
|
if (ze === void 0) {
|
|
46159
|
-
var
|
|
46160
|
-
return
|
|
46202
|
+
var Me = Object.getPrototypeOf(He);
|
|
46203
|
+
return Me === null ? void 0 : Pe(Me, Ie, Ae);
|
|
46161
46204
|
} else {
|
|
46162
46205
|
if ("value" in ze)
|
|
46163
46206
|
return ze.value;
|
|
@@ -46165,33 +46208,33 @@ function requireQuill() {
|
|
|
46165
46208
|
return Ne === void 0 ? void 0 : Ne.call(Ae);
|
|
46166
46209
|
}
|
|
46167
46210
|
}, ce = re(2), ue = ye(ce), he = re(0), pe = ye(he), fe = re(4), be = ye(fe), me = re(6), ge = ye(me), ve = re(7), _e = ye(ve);
|
|
46168
|
-
function ye(
|
|
46169
|
-
return
|
|
46211
|
+
function ye(Pe) {
|
|
46212
|
+
return Pe && Pe.__esModule ? Pe : { default: Pe };
|
|
46170
46213
|
}
|
|
46171
|
-
function Se(
|
|
46172
|
-
if (!(
|
|
46214
|
+
function Se(Pe, He) {
|
|
46215
|
+
if (!(Pe instanceof He))
|
|
46173
46216
|
throw new TypeError("Cannot call a class as a function");
|
|
46174
46217
|
}
|
|
46175
|
-
function we(
|
|
46176
|
-
if (!
|
|
46218
|
+
function we(Pe, He) {
|
|
46219
|
+
if (!Pe)
|
|
46177
46220
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
46178
|
-
return He && (typeof He == "object" || typeof He == "function") ? He :
|
|
46221
|
+
return He && (typeof He == "object" || typeof He == "function") ? He : Pe;
|
|
46179
46222
|
}
|
|
46180
|
-
function Ce(
|
|
46223
|
+
function Ce(Pe, He) {
|
|
46181
46224
|
if (typeof He != "function" && He !== null)
|
|
46182
46225
|
throw new TypeError("Super expression must either be null or a function, not " + typeof He);
|
|
46183
|
-
|
|
46226
|
+
Pe.prototype = Object.create(He && He.prototype, { constructor: { value: Pe, enumerable: !1, writable: !0, configurable: !0 } }), He && (Object.setPrototypeOf ? Object.setPrototypeOf(Pe, He) : Pe.__proto__ = He);
|
|
46184
46227
|
}
|
|
46185
|
-
var qe = (function(
|
|
46186
|
-
Ce(He,
|
|
46228
|
+
var qe = (function(Pe) {
|
|
46229
|
+
Ce(He, Pe);
|
|
46187
46230
|
function He() {
|
|
46188
46231
|
return Se(this, He), we(this, (He.__proto__ || Object.getPrototypeOf(He)).apply(this, arguments));
|
|
46189
46232
|
}
|
|
46190
46233
|
return He;
|
|
46191
46234
|
})(ge.default);
|
|
46192
46235
|
qe.blotName = "code", qe.tagName = "CODE";
|
|
46193
|
-
var De = (function(
|
|
46194
|
-
Ce(He,
|
|
46236
|
+
var De = (function(Pe) {
|
|
46237
|
+
Ce(He, Pe);
|
|
46195
46238
|
function He() {
|
|
46196
46239
|
return Se(this, He), we(this, (He.__proto__ || Object.getPrototypeOf(He)).apply(this, arguments));
|
|
46197
46240
|
}
|
|
@@ -46201,8 +46244,8 @@ function requireQuill() {
|
|
|
46201
46244
|
var Ae = this, ze = this.domNode.textContent;
|
|
46202
46245
|
return ze.endsWith(`
|
|
46203
46246
|
`) && (ze = ze.slice(0, -1)), ze.split(`
|
|
46204
|
-
`).reduce(function(
|
|
46205
|
-
return
|
|
46247
|
+
`).reduce(function(Me, Ne) {
|
|
46248
|
+
return Me.insert(Ne).insert(`
|
|
46206
46249
|
`, Ae.formats());
|
|
46207
46250
|
}, new ue.default());
|
|
46208
46251
|
}
|
|
@@ -46210,25 +46253,25 @@ function requireQuill() {
|
|
|
46210
46253
|
key: "format",
|
|
46211
46254
|
value: function(Ae, ze) {
|
|
46212
46255
|
if (!(Ae === this.statics.blotName && ze)) {
|
|
46213
|
-
var
|
|
46256
|
+
var Me = this.descendant(_e.default, this.length() - 1), Ne = oe(Me, 1), We = Ne[0];
|
|
46214
46257
|
We?.deleteAt(We.length() - 1, 1), de(He.prototype.__proto__ || Object.getPrototypeOf(He.prototype), "format", this).call(this, Ae, ze);
|
|
46215
46258
|
}
|
|
46216
46259
|
}
|
|
46217
46260
|
}, {
|
|
46218
46261
|
key: "formatAt",
|
|
46219
|
-
value: function(Ae, ze,
|
|
46220
|
-
if (ze !== 0 && !(pe.default.query(
|
|
46262
|
+
value: function(Ae, ze, Me, Ne) {
|
|
46263
|
+
if (ze !== 0 && !(pe.default.query(Me, pe.default.Scope.BLOCK) == null || Me === this.statics.blotName && Ne === this.statics.formats(this.domNode))) {
|
|
46221
46264
|
var We = this.newlineIndex(Ae);
|
|
46222
46265
|
if (!(We < 0 || We >= Ae + ze)) {
|
|
46223
46266
|
var Ge = this.newlineIndex(Ae, !0) + 1, Ke = We - Ge + 1, ft = this.isolate(Ge, Ke), Je = ft.next;
|
|
46224
|
-
ft.format(
|
|
46267
|
+
ft.format(Me, Ne), Je instanceof He && Je.formatAt(0, Ae - Ge + ze - Ke, Me, Ne);
|
|
46225
46268
|
}
|
|
46226
46269
|
}
|
|
46227
46270
|
}
|
|
46228
46271
|
}, {
|
|
46229
46272
|
key: "insertAt",
|
|
46230
|
-
value: function(Ae, ze,
|
|
46231
|
-
if (
|
|
46273
|
+
value: function(Ae, ze, Me) {
|
|
46274
|
+
if (Me == null) {
|
|
46232
46275
|
var Ne = this.descendant(_e.default, Ae), We = oe(Ne, 2), Ge = We[0], Ke = We[1];
|
|
46233
46276
|
Ge.insertAt(Ke, ze);
|
|
46234
46277
|
}
|
|
@@ -46247,9 +46290,9 @@ function requireQuill() {
|
|
|
46247
46290
|
if (ze)
|
|
46248
46291
|
return this.domNode.textContent.slice(0, Ae).lastIndexOf(`
|
|
46249
46292
|
`);
|
|
46250
|
-
var
|
|
46293
|
+
var Me = this.domNode.textContent.slice(Ae).indexOf(`
|
|
46251
46294
|
`);
|
|
46252
|
-
return
|
|
46295
|
+
return Me > -1 ? Ae + Me : -1;
|
|
46253
46296
|
}
|
|
46254
46297
|
}, {
|
|
46255
46298
|
key: "optimize",
|
|
@@ -46264,8 +46307,8 @@ function requireQuill() {
|
|
|
46264
46307
|
key: "replace",
|
|
46265
46308
|
value: function(Ae) {
|
|
46266
46309
|
de(He.prototype.__proto__ || Object.getPrototypeOf(He.prototype), "replace", this).call(this, Ae), [].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ze) {
|
|
46267
|
-
var
|
|
46268
|
-
|
|
46310
|
+
var Me = pe.default.find(ze);
|
|
46311
|
+
Me == null ? ze.parentNode.removeChild(ze) : Me instanceof pe.default.Embed ? Me.remove() : Me.unwrap();
|
|
46269
46312
|
});
|
|
46270
46313
|
}
|
|
46271
46314
|
}], [{
|
|
@@ -46327,11 +46370,11 @@ function requireQuill() {
|
|
|
46327
46370
|
return function(Ze, Le, Ue) {
|
|
46328
46371
|
return Le && Je(Ze.prototype, Le), Ue && Je(Ze, Ue), Ze;
|
|
46329
46372
|
};
|
|
46330
|
-
})(), ce = re(2), ue = ze(ce), he = re(20), pe = ze(he), fe = re(0), be = ze(fe), me = re(13), ge = ze(me), ve = re(24), _e = ze(ve), ye = re(4), Se = ze(ye), we = re(16), Ce = ze(we), qe = re(21), De = ze(qe),
|
|
46373
|
+
})(), ce = re(2), ue = ze(ce), he = re(20), pe = ze(he), fe = re(0), be = ze(fe), me = re(13), ge = ze(me), ve = re(24), _e = ze(ve), ye = re(4), Se = ze(ye), we = re(16), Ce = ze(we), qe = re(21), De = ze(qe), Pe = re(11), He = ze(Pe), Ie = re(3), Ae = ze(Ie);
|
|
46331
46374
|
function ze(Je) {
|
|
46332
46375
|
return Je && Je.__esModule ? Je : { default: Je };
|
|
46333
46376
|
}
|
|
46334
|
-
function
|
|
46377
|
+
function Me(Je, Ze, Le) {
|
|
46335
46378
|
return Ze in Je ? Object.defineProperty(Je, Ze, { value: Le, enumerable: !0, configurable: !0, writable: !0 }) : Je[Ze] = Le, Je;
|
|
46336
46379
|
}
|
|
46337
46380
|
function Ne(Je, Ze) {
|
|
@@ -46452,7 +46495,7 @@ function requireQuill() {
|
|
|
46452
46495
|
}, {
|
|
46453
46496
|
key: "insertEmbed",
|
|
46454
46497
|
value: function(Le, Ue, Ve) {
|
|
46455
|
-
return this.scroll.insertAt(Le, Ue, Ve), this.update(new ue.default().retain(Le).insert(
|
|
46498
|
+
return this.scroll.insertAt(Le, Ue, Ve), this.update(new ue.default().retain(Le).insert(Me({}, Ue, Ve)));
|
|
46456
46499
|
}
|
|
46457
46500
|
}, {
|
|
46458
46501
|
key: "insertText",
|
|
@@ -46526,15 +46569,15 @@ function requireQuill() {
|
|
|
46526
46569
|
}), te.default = te.Range = void 0;
|
|
46527
46570
|
var oe = /* @__PURE__ */ (function() {
|
|
46528
46571
|
function He(Ie, Ae) {
|
|
46529
|
-
var ze = [],
|
|
46572
|
+
var ze = [], Me = !0, Ne = !1, We = void 0;
|
|
46530
46573
|
try {
|
|
46531
|
-
for (var Ge = Ie[Symbol.iterator](), Ke; !(
|
|
46574
|
+
for (var Ge = Ie[Symbol.iterator](), Ke; !(Me = (Ke = Ge.next()).done) && (ze.push(Ke.value), !(Ae && ze.length === Ae)); Me = !0)
|
|
46532
46575
|
;
|
|
46533
46576
|
} catch (ft) {
|
|
46534
46577
|
Ne = !0, We = ft;
|
|
46535
46578
|
} finally {
|
|
46536
46579
|
try {
|
|
46537
|
-
!
|
|
46580
|
+
!Me && Ge.return && Ge.return();
|
|
46538
46581
|
} finally {
|
|
46539
46582
|
if (Ne) throw We;
|
|
46540
46583
|
}
|
|
@@ -46551,8 +46594,8 @@ function requireQuill() {
|
|
|
46551
46594
|
})(), ne = /* @__PURE__ */ (function() {
|
|
46552
46595
|
function He(Ie, Ae) {
|
|
46553
46596
|
for (var ze = 0; ze < Ae.length; ze++) {
|
|
46554
|
-
var
|
|
46555
|
-
|
|
46597
|
+
var Me = Ae[ze];
|
|
46598
|
+
Me.enumerable = Me.enumerable || !1, Me.configurable = !0, "value" in Me && (Me.writable = !0), Object.defineProperty(Ie, Me.key, Me);
|
|
46556
46599
|
}
|
|
46557
46600
|
}
|
|
46558
46601
|
return function(Ie, Ae, ze) {
|
|
@@ -46582,19 +46625,19 @@ function requireQuill() {
|
|
|
46582
46625
|
var ze = this;
|
|
46583
46626
|
we(this, He), this.emitter = Ae, this.scroll = Ie, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = ce.default.create("cursor", this), this.lastRange = this.savedRange = new qe(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM(_e.SHADOW_SELECTIONCHANGE, document, function() {
|
|
46584
46627
|
ze.mouseDown || setTimeout(ze.update.bind(ze, me.default.sources.USER), 1);
|
|
46585
|
-
}), this.emitter.on(me.default.events.EDITOR_CHANGE, function(
|
|
46586
|
-
|
|
46628
|
+
}), this.emitter.on(me.default.events.EDITOR_CHANGE, function(Me, Ne) {
|
|
46629
|
+
Me === me.default.events.TEXT_CHANGE && Ne.length() > 0 && ze.update(me.default.sources.SILENT);
|
|
46587
46630
|
}), this.emitter.on(me.default.events.SCROLL_BEFORE_UPDATE, function() {
|
|
46588
46631
|
if (ze.hasFocus()) {
|
|
46589
|
-
var
|
|
46590
|
-
|
|
46632
|
+
var Me = ze.getNativeRange();
|
|
46633
|
+
Me != null && Me.start.node !== ze.cursor.textNode && ze.emitter.once(me.default.events.SCROLL_UPDATE, function() {
|
|
46591
46634
|
try {
|
|
46592
|
-
ze.setNativeRange(
|
|
46635
|
+
ze.setNativeRange(Me.start.node, Me.start.offset, Me.end.node, Me.end.offset);
|
|
46593
46636
|
} catch {
|
|
46594
46637
|
}
|
|
46595
46638
|
});
|
|
46596
46639
|
}
|
|
46597
|
-
}), this.emitter.on(me.default.events.SCROLL_OPTIMIZE, function(
|
|
46640
|
+
}), this.emitter.on(me.default.events.SCROLL_OPTIMIZE, function(Me, Ne) {
|
|
46598
46641
|
if (Ne.range) {
|
|
46599
46642
|
var We = Ne.range, Ge = We.startNode, Ke = We.startOffset, ft = We.endNode, Je = We.endOffset;
|
|
46600
46643
|
ze.setNativeRange(Ge, Ke, ft, Je);
|
|
@@ -46637,16 +46680,16 @@ function requireQuill() {
|
|
|
46637
46680
|
value: function(Ae, ze) {
|
|
46638
46681
|
if (!(this.scroll.whitelist != null && !this.scroll.whitelist[Ae])) {
|
|
46639
46682
|
this.scroll.update();
|
|
46640
|
-
var
|
|
46641
|
-
if (!(
|
|
46642
|
-
if (
|
|
46643
|
-
var Ne = ce.default.find(
|
|
46683
|
+
var Me = this.getNativeRange();
|
|
46684
|
+
if (!(Me == null || !Me.native.collapsed || ce.default.query(Ae, ce.default.Scope.BLOCK))) {
|
|
46685
|
+
if (Me.start.node !== this.cursor.textNode) {
|
|
46686
|
+
var Ne = ce.default.find(Me.start.node, !1);
|
|
46644
46687
|
if (Ne == null) return;
|
|
46645
46688
|
if (Ne instanceof ce.default.Leaf) {
|
|
46646
|
-
var We = Ne.split(
|
|
46689
|
+
var We = Ne.split(Me.start.offset);
|
|
46647
46690
|
Ne.parent.insertBefore(this.cursor, We);
|
|
46648
46691
|
} else
|
|
46649
|
-
Ne.insertBefore(this.cursor,
|
|
46692
|
+
Ne.insertBefore(this.cursor, Me.start.node);
|
|
46650
46693
|
this.cursor.attach();
|
|
46651
46694
|
}
|
|
46652
46695
|
this.cursor.format(Ae, ze), this.scroll.optimize(), this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length), this.update();
|
|
@@ -46656,8 +46699,8 @@ function requireQuill() {
|
|
|
46656
46699
|
}, {
|
|
46657
46700
|
key: "getBounds",
|
|
46658
46701
|
value: function(Ae) {
|
|
46659
|
-
var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0,
|
|
46660
|
-
Ae = Math.min(Ae,
|
|
46702
|
+
var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Me = this.scroll.length();
|
|
46703
|
+
Ae = Math.min(Ae, Me - 1), ze = Math.min(Ae + ze, Me - 1) - Ae;
|
|
46661
46704
|
var Ne = void 0, We = this.scroll.leaf(Ae), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1];
|
|
46662
46705
|
if (Ke == null) return null;
|
|
46663
46706
|
var Je = Ke.position(ft, !0), Ze = oe(Je, 2);
|
|
@@ -46705,9 +46748,9 @@ function requireQuill() {
|
|
|
46705
46748
|
}, {
|
|
46706
46749
|
key: "normalizedToRange",
|
|
46707
46750
|
value: function(Ae) {
|
|
46708
|
-
var ze = this,
|
|
46709
|
-
Ae.native.collapsed ||
|
|
46710
|
-
var Ne =
|
|
46751
|
+
var ze = this, Me = [[Ae.start.node, Ae.start.offset]];
|
|
46752
|
+
Ae.native.collapsed || Me.push([Ae.end.node, Ae.end.offset]);
|
|
46753
|
+
var Ne = Me.map(function(Ke) {
|
|
46711
46754
|
var ft = oe(Ke, 2), Je = ft[0], Ze = ft[1], Le = ce.default.find(Je, !0), Ue = Le.offset(ze.scroll);
|
|
46712
46755
|
return Ze === 0 ? Ue : Le instanceof ce.default.Container ? Ue + Le.length() : Ue + Le.index(Je, Ze);
|
|
46713
46756
|
}), We = Math.min(Math.max.apply(Math, Se(Ne)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Se(Ne)));
|
|
@@ -46716,29 +46759,29 @@ function requireQuill() {
|
|
|
46716
46759
|
}, {
|
|
46717
46760
|
key: "normalizeNative",
|
|
46718
46761
|
value: function(Ae) {
|
|
46719
|
-
if (!
|
|
46762
|
+
if (!Pe(this.root, Ae.startContainer) || !Ae.collapsed && !Pe(this.root, Ae.endContainer))
|
|
46720
46763
|
return null;
|
|
46721
46764
|
var ze = {
|
|
46722
46765
|
start: { node: Ae.startContainer, offset: Ae.startOffset },
|
|
46723
46766
|
end: { node: Ae.endContainer, offset: Ae.endOffset },
|
|
46724
46767
|
native: Ae
|
|
46725
46768
|
};
|
|
46726
|
-
return [ze.start, ze.end].forEach(function(
|
|
46727
|
-
for (var Ne =
|
|
46769
|
+
return [ze.start, ze.end].forEach(function(Me) {
|
|
46770
|
+
for (var Ne = Me.node, We = Me.offset; !(Ne instanceof Text) && Ne.childNodes.length > 0; )
|
|
46728
46771
|
if (Ne.childNodes.length > We)
|
|
46729
46772
|
Ne = Ne.childNodes[We], We = 0;
|
|
46730
46773
|
else if (Ne.childNodes.length === We)
|
|
46731
46774
|
Ne = Ne.lastChild, We = Ne instanceof Text ? Ne.data.length : Ne.childNodes.length + 1;
|
|
46732
46775
|
else
|
|
46733
46776
|
break;
|
|
46734
|
-
|
|
46777
|
+
Me.node = Ne, Me.offset = We;
|
|
46735
46778
|
}), ze;
|
|
46736
46779
|
}
|
|
46737
46780
|
}, {
|
|
46738
46781
|
key: "rangeToNative",
|
|
46739
46782
|
value: function(Ae) {
|
|
46740
|
-
var ze = this,
|
|
46741
|
-
return
|
|
46783
|
+
var ze = this, Me = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], Ne = [], We = this.scroll.length();
|
|
46784
|
+
return Me.forEach(function(Ge, Ke) {
|
|
46742
46785
|
Ge = Math.min(We - 1, Ge);
|
|
46743
46786
|
var ft = void 0, Je = ze.scroll.leaf(Ge), Ze = oe(Je, 2), Le = Ze[0], Ue = Ze[1], Ve = Le.position(Ue, Ke !== 0), Qe = oe(Ve, 2);
|
|
46744
46787
|
ft = Qe[0], Ue = Qe[1], Ne.push(ft, Ue);
|
|
@@ -46749,8 +46792,8 @@ function requireQuill() {
|
|
|
46749
46792
|
value: function(Ae) {
|
|
46750
46793
|
var ze = this.lastRange;
|
|
46751
46794
|
if (ze != null) {
|
|
46752
|
-
var
|
|
46753
|
-
if (
|
|
46795
|
+
var Me = this.getBounds(ze.index, ze.length);
|
|
46796
|
+
if (Me != null) {
|
|
46754
46797
|
var Ne = this.scroll.length() - 1, We = this.scroll.line(Math.min(ze.index, Ne)), Ge = oe(We, 1), Ke = Ge[0], ft = Ke;
|
|
46755
46798
|
if (ze.length > 0) {
|
|
46756
46799
|
var Je = this.scroll.line(Math.min(ze.index + ze.length, Ne)), Ze = oe(Je, 1);
|
|
@@ -46758,7 +46801,7 @@ function requireQuill() {
|
|
|
46758
46801
|
}
|
|
46759
46802
|
if (!(Ke == null || ft == null)) {
|
|
46760
46803
|
var Le = Ae.getBoundingClientRect();
|
|
46761
|
-
|
|
46804
|
+
Me.top < Le.top ? Ae.scrollTop -= Le.top - Me.top : Me.bottom > Le.bottom && (Ae.scrollTop += Me.bottom - Le.bottom);
|
|
46762
46805
|
}
|
|
46763
46806
|
}
|
|
46764
46807
|
}
|
|
@@ -46766,17 +46809,17 @@ function requireQuill() {
|
|
|
46766
46809
|
}, {
|
|
46767
46810
|
key: "setNativeRange",
|
|
46768
46811
|
value: function(Ae, ze) {
|
|
46769
|
-
var
|
|
46770
|
-
if (Ce.info("setNativeRange", Ae, ze,
|
|
46812
|
+
var Me = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ae, Ne = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ze, We = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
46813
|
+
if (Ce.info("setNativeRange", Ae, ze, Me, Ne), !(Ae != null && (this.root.parentNode == null || Ae.parentNode == null || Me.parentNode == null))) {
|
|
46771
46814
|
var Ge = typeof this.rootDocument.getSelection == "function" ? this.rootDocument.getSelection() : document.getSelection();
|
|
46772
46815
|
if (Ge != null)
|
|
46773
46816
|
if (Ae != null) {
|
|
46774
46817
|
this.hasFocus() || this.root.focus();
|
|
46775
46818
|
var Ke = (this.getNativeRange() || {}).native;
|
|
46776
|
-
if (Ke == null || We || Ae !== Ke.startContainer || ze !== Ke.startOffset ||
|
|
46777
|
-
Ae.tagName == "BR" && (ze = [].indexOf.call(Ae.parentNode.childNodes, Ae), Ae = Ae.parentNode),
|
|
46819
|
+
if (Ke == null || We || Ae !== Ke.startContainer || ze !== Ke.startOffset || Me !== Ke.endContainer || Ne !== Ke.endOffset) {
|
|
46820
|
+
Ae.tagName == "BR" && (ze = [].indexOf.call(Ae.parentNode.childNodes, Ae), Ae = Ae.parentNode), Me.tagName == "BR" && (Ne = [].indexOf.call(Me.parentNode.childNodes, Me), Me = Me.parentNode);
|
|
46778
46821
|
var ft = document.createRange();
|
|
46779
|
-
ft.setStart(Ae, ze), ft.setEnd(
|
|
46822
|
+
ft.setStart(Ae, ze), ft.setEnd(Me, Ne), Ge.removeAllRanges(), Ge.addRange(ft);
|
|
46780
46823
|
}
|
|
46781
46824
|
} else
|
|
46782
46825
|
Ge.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
@@ -46785,18 +46828,18 @@ function requireQuill() {
|
|
|
46785
46828
|
}, {
|
|
46786
46829
|
key: "setRange",
|
|
46787
46830
|
value: function(Ae) {
|
|
46788
|
-
var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
|
|
46789
|
-
if (typeof ze == "string" && (
|
|
46831
|
+
var ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, Me = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : me.default.sources.API;
|
|
46832
|
+
if (typeof ze == "string" && (Me = ze, ze = !1), Ce.info("setRange", Ae), Ae != null) {
|
|
46790
46833
|
var Ne = this.rangeToNative(Ae);
|
|
46791
46834
|
this.setNativeRange.apply(this, Se(Ne).concat([ze]));
|
|
46792
46835
|
} else
|
|
46793
46836
|
this.setNativeRange(null);
|
|
46794
|
-
this.update(
|
|
46837
|
+
this.update(Me);
|
|
46795
46838
|
}
|
|
46796
46839
|
}, {
|
|
46797
46840
|
key: "update",
|
|
46798
46841
|
value: function() {
|
|
46799
|
-
var Ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.default.sources.USER, ze = this.lastRange,
|
|
46842
|
+
var Ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.default.sources.USER, ze = this.lastRange, Me = this.getRange(), Ne = oe(Me, 2), We = Ne[0], Ge = Ne[1];
|
|
46800
46843
|
if (this.lastRange = We, this.lastRange != null && (this.savedRange = this.lastRange), !(0, fe.default)(ze, this.lastRange)) {
|
|
46801
46844
|
var Ke;
|
|
46802
46845
|
!this.composing && Ge != null && Ge.native.collapsed && Ge.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
@@ -46809,7 +46852,7 @@ function requireQuill() {
|
|
|
46809
46852
|
}
|
|
46810
46853
|
}]), He;
|
|
46811
46854
|
})();
|
|
46812
|
-
function
|
|
46855
|
+
function Pe(He, Ie) {
|
|
46813
46856
|
try {
|
|
46814
46857
|
Ie.parentNode;
|
|
46815
46858
|
} catch {
|
|
@@ -47243,65 +47286,65 @@ function requireQuill() {
|
|
|
47243
47286
|
typeof ve == "object" && (_e = ve.depth, ye = ve.prototype, Se = ve.includeNonEnumerable, ve = ve.circular);
|
|
47244
47287
|
var we = [], Ce = [], qe = typeof Buffer < "u";
|
|
47245
47288
|
typeof ve > "u" && (ve = !0), typeof _e > "u" && (_e = 1 / 0);
|
|
47246
|
-
function De(
|
|
47247
|
-
if (
|
|
47289
|
+
function De(Pe, He) {
|
|
47290
|
+
if (Pe === null)
|
|
47248
47291
|
return null;
|
|
47249
47292
|
if (He === 0)
|
|
47250
|
-
return
|
|
47293
|
+
return Pe;
|
|
47251
47294
|
var Ie, Ae;
|
|
47252
|
-
if (typeof
|
|
47253
|
-
return
|
|
47254
|
-
if (oe(
|
|
47295
|
+
if (typeof Pe != "object")
|
|
47296
|
+
return Pe;
|
|
47297
|
+
if (oe(Pe, ne))
|
|
47255
47298
|
Ie = new ne();
|
|
47256
|
-
else if (oe(
|
|
47299
|
+
else if (oe(Pe, de))
|
|
47257
47300
|
Ie = new de();
|
|
47258
|
-
else if (oe(
|
|
47301
|
+
else if (oe(Pe, ce))
|
|
47259
47302
|
Ie = new ce(function(Ze, Le) {
|
|
47260
|
-
|
|
47303
|
+
Pe.then(function(Ue) {
|
|
47261
47304
|
Ze(De(Ue, He - 1));
|
|
47262
47305
|
}, function(Ue) {
|
|
47263
47306
|
Le(De(Ue, He - 1));
|
|
47264
47307
|
});
|
|
47265
47308
|
});
|
|
47266
|
-
else if (ue.__isArray(
|
|
47309
|
+
else if (ue.__isArray(Pe))
|
|
47267
47310
|
Ie = [];
|
|
47268
|
-
else if (ue.__isRegExp(
|
|
47269
|
-
Ie = new RegExp(
|
|
47270
|
-
else if (ue.__isDate(
|
|
47271
|
-
Ie = new Date(
|
|
47311
|
+
else if (ue.__isRegExp(Pe))
|
|
47312
|
+
Ie = new RegExp(Pe.source, me(Pe)), Pe.lastIndex && (Ie.lastIndex = Pe.lastIndex);
|
|
47313
|
+
else if (ue.__isDate(Pe))
|
|
47314
|
+
Ie = new Date(Pe.getTime());
|
|
47272
47315
|
else {
|
|
47273
|
-
if (qe && Buffer.isBuffer(
|
|
47274
|
-
return Buffer.allocUnsafe ? Ie = Buffer.allocUnsafe(
|
|
47275
|
-
oe(
|
|
47316
|
+
if (qe && Buffer.isBuffer(Pe))
|
|
47317
|
+
return Buffer.allocUnsafe ? Ie = Buffer.allocUnsafe(Pe.length) : Ie = new Buffer(Pe.length), Pe.copy(Ie), Ie;
|
|
47318
|
+
oe(Pe, Error) ? Ie = Object.create(Pe) : typeof ye > "u" ? (Ae = Object.getPrototypeOf(Pe), Ie = Object.create(Ae)) : (Ie = Object.create(ye), Ae = ye);
|
|
47276
47319
|
}
|
|
47277
47320
|
if (ve) {
|
|
47278
|
-
var ze = we.indexOf(
|
|
47321
|
+
var ze = we.indexOf(Pe);
|
|
47279
47322
|
if (ze != -1)
|
|
47280
47323
|
return Ce[ze];
|
|
47281
|
-
we.push(
|
|
47324
|
+
we.push(Pe), Ce.push(Ie);
|
|
47282
47325
|
}
|
|
47283
|
-
oe(
|
|
47326
|
+
oe(Pe, ne) && Pe.forEach(function(Ze, Le) {
|
|
47284
47327
|
var Ue = De(Le, He - 1), Ve = De(Ze, He - 1);
|
|
47285
47328
|
Ie.set(Ue, Ve);
|
|
47286
|
-
}), oe(
|
|
47329
|
+
}), oe(Pe, de) && Pe.forEach(function(Ze) {
|
|
47287
47330
|
var Le = De(Ze, He - 1);
|
|
47288
47331
|
Ie.add(Le);
|
|
47289
47332
|
});
|
|
47290
|
-
for (var
|
|
47333
|
+
for (var Me in Pe) {
|
|
47291
47334
|
var Ne;
|
|
47292
|
-
Ae && (Ne = Object.getOwnPropertyDescriptor(Ae,
|
|
47335
|
+
Ae && (Ne = Object.getOwnPropertyDescriptor(Ae, Me)), !(Ne && Ne.set == null) && (Ie[Me] = De(Pe[Me], He - 1));
|
|
47293
47336
|
}
|
|
47294
47337
|
if (Object.getOwnPropertySymbols)
|
|
47295
|
-
for (var We = Object.getOwnPropertySymbols(
|
|
47296
|
-
var Ge = We[
|
|
47297
|
-
Ke && !Ke.enumerable && !Se || (Ie[Ge] = De(
|
|
47338
|
+
for (var We = Object.getOwnPropertySymbols(Pe), Me = 0; Me < We.length; Me++) {
|
|
47339
|
+
var Ge = We[Me], Ke = Object.getOwnPropertyDescriptor(Pe, Ge);
|
|
47340
|
+
Ke && !Ke.enumerable && !Se || (Ie[Ge] = De(Pe[Ge], He - 1), Ke.enumerable || Object.defineProperty(Ie, Ge, {
|
|
47298
47341
|
enumerable: !1
|
|
47299
47342
|
}));
|
|
47300
47343
|
}
|
|
47301
47344
|
if (Se)
|
|
47302
|
-
for (var ft = Object.getOwnPropertyNames(
|
|
47303
|
-
var Je = ft[
|
|
47304
|
-
Ke && Ke.enumerable || (Ie[Je] = De(
|
|
47345
|
+
for (var ft = Object.getOwnPropertyNames(Pe), Me = 0; Me < ft.length; Me++) {
|
|
47346
|
+
var Je = ft[Me], Ke = Object.getOwnPropertyDescriptor(Pe, Je);
|
|
47347
|
+
Ke && Ke.enumerable || (Ie[Je] = De(Pe[Je], He - 1), Object.defineProperty(Ie, Je, {
|
|
47305
47348
|
enumerable: !1
|
|
47306
47349
|
}));
|
|
47307
47350
|
}
|
|
@@ -47348,9 +47391,9 @@ function requireQuill() {
|
|
|
47348
47391
|
});
|
|
47349
47392
|
var oe = /* @__PURE__ */ (function() {
|
|
47350
47393
|
function Ie(Ae, ze) {
|
|
47351
|
-
var
|
|
47394
|
+
var Me = [], Ne = !0, We = !1, Ge = void 0;
|
|
47352
47395
|
try {
|
|
47353
|
-
for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (
|
|
47396
|
+
for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (Me.push(ft.value), !(ze && Me.length === ze)); Ne = !0)
|
|
47354
47397
|
;
|
|
47355
47398
|
} catch (Je) {
|
|
47356
47399
|
We = !0, Ge = Je;
|
|
@@ -47361,7 +47404,7 @@ function requireQuill() {
|
|
|
47361
47404
|
if (We) throw Ge;
|
|
47362
47405
|
}
|
|
47363
47406
|
}
|
|
47364
|
-
return
|
|
47407
|
+
return Me;
|
|
47365
47408
|
}
|
|
47366
47409
|
return function(Ae, ze) {
|
|
47367
47410
|
if (Array.isArray(Ae))
|
|
@@ -47372,25 +47415,25 @@ function requireQuill() {
|
|
|
47372
47415
|
};
|
|
47373
47416
|
})(), ne = /* @__PURE__ */ (function() {
|
|
47374
47417
|
function Ie(Ae, ze) {
|
|
47375
|
-
for (var
|
|
47376
|
-
var Ne = ze[
|
|
47418
|
+
for (var Me = 0; Me < ze.length; Me++) {
|
|
47419
|
+
var Ne = ze[Me];
|
|
47377
47420
|
Ne.enumerable = Ne.enumerable || !1, Ne.configurable = !0, "value" in Ne && (Ne.writable = !0), Object.defineProperty(Ae, Ne.key, Ne);
|
|
47378
47421
|
}
|
|
47379
47422
|
}
|
|
47380
|
-
return function(Ae, ze,
|
|
47381
|
-
return ze && Ie(Ae.prototype, ze),
|
|
47423
|
+
return function(Ae, ze, Me) {
|
|
47424
|
+
return ze && Ie(Ae.prototype, ze), Me && Ie(Ae, Me), Ae;
|
|
47382
47425
|
};
|
|
47383
|
-
})(), de = function Ie(Ae, ze,
|
|
47426
|
+
})(), de = function Ie(Ae, ze, Me) {
|
|
47384
47427
|
Ae === null && (Ae = Function.prototype);
|
|
47385
47428
|
var Ne = Object.getOwnPropertyDescriptor(Ae, ze);
|
|
47386
47429
|
if (Ne === void 0) {
|
|
47387
47430
|
var We = Object.getPrototypeOf(Ae);
|
|
47388
|
-
return We === null ? void 0 : Ie(We, ze,
|
|
47431
|
+
return We === null ? void 0 : Ie(We, ze, Me);
|
|
47389
47432
|
} else {
|
|
47390
47433
|
if ("value" in Ne)
|
|
47391
47434
|
return Ne.value;
|
|
47392
47435
|
var Ge = Ne.get;
|
|
47393
|
-
return Ge === void 0 ? void 0 : Ge.call(
|
|
47436
|
+
return Ge === void 0 ? void 0 : Ge.call(Me);
|
|
47394
47437
|
}
|
|
47395
47438
|
}, ce = re(0), ue = we(ce), he = re(8), pe = we(he), fe = re(4), be = we(fe), me = re(16), ge = we(me), ve = re(13), _e = we(ve), ye = re(25), Se = we(ye);
|
|
47396
47439
|
function we(Ie) {
|
|
@@ -47410,15 +47453,15 @@ function requireQuill() {
|
|
|
47410
47453
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
|
|
47411
47454
|
Ie.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, Ae) : Ie.__proto__ = Ae);
|
|
47412
47455
|
}
|
|
47413
|
-
function
|
|
47456
|
+
function Pe(Ie) {
|
|
47414
47457
|
return Ie instanceof be.default || Ie instanceof fe.BlockEmbed;
|
|
47415
47458
|
}
|
|
47416
47459
|
var He = (function(Ie) {
|
|
47417
47460
|
De(Ae, Ie);
|
|
47418
|
-
function Ae(ze,
|
|
47461
|
+
function Ae(ze, Me) {
|
|
47419
47462
|
Ce(this, Ae);
|
|
47420
47463
|
var Ne = qe(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze));
|
|
47421
|
-
return Ne.emitter =
|
|
47464
|
+
return Ne.emitter = Me.emitter, Array.isArray(Me.whitelist) && (Ne.whitelist = Me.whitelist.reduce(function(We, Ge) {
|
|
47422
47465
|
return We[Ge] = !0, We;
|
|
47423
47466
|
}, {})), Ne.domNode.addEventListener("DOMNodeInserted", function() {
|
|
47424
47467
|
}), Ne.optimize(), Ne.enable(), Ne;
|
|
@@ -47435,9 +47478,9 @@ function requireQuill() {
|
|
|
47435
47478
|
}
|
|
47436
47479
|
}, {
|
|
47437
47480
|
key: "deleteAt",
|
|
47438
|
-
value: function(
|
|
47439
|
-
var We = this.line(
|
|
47440
|
-
if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this,
|
|
47481
|
+
value: function(Me, Ne) {
|
|
47482
|
+
var We = this.line(Me), Ge = oe(We, 2), Ke = Ge[0], ft = Ge[1], Je = this.line(Me + Ne), Ze = oe(Je, 1), Le = Ze[0];
|
|
47483
|
+
if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Me, Ne), Le != null && Ke !== Le && ft > 0) {
|
|
47441
47484
|
if (Ke instanceof fe.BlockEmbed || Le instanceof fe.BlockEmbed) {
|
|
47442
47485
|
this.optimize();
|
|
47443
47486
|
return;
|
|
@@ -47460,19 +47503,19 @@ function requireQuill() {
|
|
|
47460
47503
|
}, {
|
|
47461
47504
|
key: "enable",
|
|
47462
47505
|
value: function() {
|
|
47463
|
-
var
|
|
47464
|
-
this.domNode.setAttribute("contenteditable",
|
|
47506
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
47507
|
+
this.domNode.setAttribute("contenteditable", Me);
|
|
47465
47508
|
}
|
|
47466
47509
|
}, {
|
|
47467
47510
|
key: "formatAt",
|
|
47468
|
-
value: function(
|
|
47469
|
-
this.whitelist != null && !this.whitelist[We] || (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "formatAt", this).call(this,
|
|
47511
|
+
value: function(Me, Ne, We, Ge) {
|
|
47512
|
+
this.whitelist != null && !this.whitelist[We] || (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "formatAt", this).call(this, Me, Ne, We, Ge), this.optimize());
|
|
47470
47513
|
}
|
|
47471
47514
|
}, {
|
|
47472
47515
|
key: "insertAt",
|
|
47473
|
-
value: function(
|
|
47516
|
+
value: function(Me, Ne, We) {
|
|
47474
47517
|
if (!(We != null && this.whitelist != null && !this.whitelist[Ne])) {
|
|
47475
|
-
if (
|
|
47518
|
+
if (Me >= this.length())
|
|
47476
47519
|
if (We == null || ue.default.query(Ne, ue.default.Scope.BLOCK) == null) {
|
|
47477
47520
|
var Ge = ue.default.create(this.statics.defaultChild);
|
|
47478
47521
|
this.appendChild(Ge), We == null && Ne.endsWith(`
|
|
@@ -47482,57 +47525,57 @@ function requireQuill() {
|
|
|
47482
47525
|
this.appendChild(Ke);
|
|
47483
47526
|
}
|
|
47484
47527
|
else
|
|
47485
|
-
de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertAt", this).call(this,
|
|
47528
|
+
de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertAt", this).call(this, Me, Ne, We);
|
|
47486
47529
|
this.optimize();
|
|
47487
47530
|
}
|
|
47488
47531
|
}
|
|
47489
47532
|
}, {
|
|
47490
47533
|
key: "insertBefore",
|
|
47491
|
-
value: function(
|
|
47492
|
-
if (
|
|
47534
|
+
value: function(Me, Ne) {
|
|
47535
|
+
if (Me.statics.scope === ue.default.Scope.INLINE_BLOT) {
|
|
47493
47536
|
var We = ue.default.create(this.statics.defaultChild);
|
|
47494
|
-
We.appendChild(
|
|
47537
|
+
We.appendChild(Me), Me = We;
|
|
47495
47538
|
}
|
|
47496
|
-
de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertBefore", this).call(this,
|
|
47539
|
+
de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertBefore", this).call(this, Me, Ne);
|
|
47497
47540
|
}
|
|
47498
47541
|
}, {
|
|
47499
47542
|
key: "leaf",
|
|
47500
|
-
value: function(
|
|
47501
|
-
return this.path(
|
|
47543
|
+
value: function(Me) {
|
|
47544
|
+
return this.path(Me).pop() || [null, -1];
|
|
47502
47545
|
}
|
|
47503
47546
|
}, {
|
|
47504
47547
|
key: "line",
|
|
47505
|
-
value: function(
|
|
47506
|
-
return
|
|
47548
|
+
value: function(Me) {
|
|
47549
|
+
return Me === this.length() ? this.line(Me - 1) : this.descendant(Pe, Me);
|
|
47507
47550
|
}
|
|
47508
47551
|
}, {
|
|
47509
47552
|
key: "lines",
|
|
47510
47553
|
value: function() {
|
|
47511
|
-
var
|
|
47554
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ke, ft, Je) {
|
|
47512
47555
|
var Ze = [], Le = Je;
|
|
47513
47556
|
return Ke.children.forEachAt(ft, Je, function(Ue, Ve, Qe) {
|
|
47514
|
-
|
|
47557
|
+
Pe(Ue) ? Ze.push(Ue) : Ue instanceof ue.default.Container && (Ze = Ze.concat(Ge(Ue, Ve, Le))), Le -= Qe;
|
|
47515
47558
|
}), Ze;
|
|
47516
47559
|
};
|
|
47517
|
-
return We(this,
|
|
47560
|
+
return We(this, Me, Ne);
|
|
47518
47561
|
}
|
|
47519
47562
|
}, {
|
|
47520
47563
|
key: "optimize",
|
|
47521
47564
|
value: function() {
|
|
47522
|
-
var
|
|
47523
|
-
this.batch !== !0 && (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "optimize", this).call(this,
|
|
47565
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
47566
|
+
this.batch !== !0 && (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "optimize", this).call(this, Me, Ne), Me.length > 0 && this.emitter.emit(pe.default.events.SCROLL_OPTIMIZE, Me, Ne));
|
|
47524
47567
|
}
|
|
47525
47568
|
}, {
|
|
47526
47569
|
key: "path",
|
|
47527
|
-
value: function(
|
|
47528
|
-
return de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "path", this).call(this,
|
|
47570
|
+
value: function(Me) {
|
|
47571
|
+
return de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "path", this).call(this, Me).slice(1);
|
|
47529
47572
|
}
|
|
47530
47573
|
}, {
|
|
47531
47574
|
key: "update",
|
|
47532
|
-
value: function(
|
|
47575
|
+
value: function(Me) {
|
|
47533
47576
|
if (this.batch !== !0) {
|
|
47534
47577
|
var Ne = pe.default.sources.USER;
|
|
47535
|
-
typeof
|
|
47578
|
+
typeof Me == "string" && (Ne = Me), Array.isArray(Me) || (Me = this.observer.takeRecords()), Me.length > 0 && this.emitter.emit(pe.default.events.SCROLL_BEFORE_UPDATE, Ne, Me), de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "update", this).call(this, Me.concat([])), Me.length > 0 && this.emitter.emit(pe.default.events.SCROLL_UPDATE, Ne, Me);
|
|
47536
47579
|
}
|
|
47537
47580
|
}
|
|
47538
47581
|
}]), Ae;
|
|
@@ -47583,7 +47626,7 @@ function requireQuill() {
|
|
|
47583
47626
|
return function(Ye, rt, ot) {
|
|
47584
47627
|
return rt && Be(Ye.prototype, rt), ot && Be(Ye, ot), Ye;
|
|
47585
47628
|
};
|
|
47586
|
-
})(), ce = re(21), ue = Ie(ce), he = re(11), pe = Ie(he), fe = re(3), be = Ie(fe), me = re(2), ge = Ie(me), ve = re(20), _e = Ie(ve), ye = re(0), Se = Ie(ye), we = re(5), Ce = Ie(we), qe = re(10), De = Ie(qe),
|
|
47629
|
+
})(), ce = re(21), ue = Ie(ce), he = re(11), pe = Ie(he), fe = re(3), be = Ie(fe), me = re(2), ge = Ie(me), ve = re(20), _e = Ie(ve), ye = re(0), Se = Ie(ye), we = re(5), Ce = Ie(we), qe = re(10), De = Ie(qe), Pe = re(9), He = Ie(Pe);
|
|
47587
47630
|
function Ie(Be) {
|
|
47588
47631
|
return Be && Be.__esModule ? Be : { default: Be };
|
|
47589
47632
|
}
|
|
@@ -47594,7 +47637,7 @@ function requireQuill() {
|
|
|
47594
47637
|
if (!(Be instanceof Ye))
|
|
47595
47638
|
throw new TypeError("Cannot call a class as a function");
|
|
47596
47639
|
}
|
|
47597
|
-
function
|
|
47640
|
+
function Me(Be, Ye) {
|
|
47598
47641
|
if (!Be)
|
|
47599
47642
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
47600
47643
|
return Ye && (typeof Ye == "object" || typeof Ye == "function") ? Ye : Be;
|
|
@@ -47615,7 +47658,7 @@ function requireQuill() {
|
|
|
47615
47658
|
}]);
|
|
47616
47659
|
function Ye(rt, ot) {
|
|
47617
47660
|
ze(this, Ye);
|
|
47618
|
-
var _t =
|
|
47661
|
+
var _t = Me(this, (Ye.__proto__ || Object.getPrototypeOf(Ye)).call(this, rt, ot));
|
|
47619
47662
|
return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
|
|
47620
47663
|
kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
|
|
47621
47664
|
}), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Ue), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
@@ -47641,7 +47684,7 @@ function requireQuill() {
|
|
|
47641
47684
|
if (It.length !== 0) {
|
|
47642
47685
|
var zt = ot.quill.getSelection();
|
|
47643
47686
|
if (!(zt == null || !ot.quill.hasFocus())) {
|
|
47644
|
-
var Nt = ot.quill.getLine(zt.index), Bt = ne(Nt, 2), rs = Bt[0], Yt = Bt[1], gt = ot.quill.getLeaf(zt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], wt = zt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(zt.index + zt.length), Lt = ne(wt, 2),
|
|
47687
|
+
var Nt = ot.quill.getLine(zt.index), Bt = ne(Nt, 2), rs = Bt[0], Yt = Bt[1], gt = ot.quill.getLeaf(zt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], wt = zt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(zt.index + zt.length), Lt = ne(wt, 2), Pt = Lt[0], Ft = Lt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Pt instanceof Se.default.Text ? Pt.value().slice(Ft) : "", Kt = {
|
|
47645
47688
|
collapsed: zt.length === 0,
|
|
47646
47689
|
empty: zt.length === 0 && rs.length() <= 1,
|
|
47647
47690
|
format: ot.quill.getFormat(zt),
|
|
@@ -47921,13 +47964,13 @@ function requireQuill() {
|
|
|
47921
47964
|
function _e(ye, Se) {
|
|
47922
47965
|
var we = [], Ce = !0, qe = !1, De = void 0;
|
|
47923
47966
|
try {
|
|
47924
|
-
for (var
|
|
47967
|
+
for (var Pe = ye[Symbol.iterator](), He; !(Ce = (He = Pe.next()).done) && (we.push(He.value), !(Se && we.length === Se)); Ce = !0)
|
|
47925
47968
|
;
|
|
47926
47969
|
} catch (Ie) {
|
|
47927
47970
|
qe = !0, De = Ie;
|
|
47928
47971
|
} finally {
|
|
47929
47972
|
try {
|
|
47930
|
-
!Ce &&
|
|
47973
|
+
!Ce && Pe.return && Pe.return();
|
|
47931
47974
|
} finally {
|
|
47932
47975
|
if (qe) throw De;
|
|
47933
47976
|
}
|
|
@@ -48030,10 +48073,10 @@ function requireQuill() {
|
|
|
48030
48073
|
key: "restore",
|
|
48031
48074
|
value: function() {
|
|
48032
48075
|
if (!(this.selection.composing || this.parent == null)) {
|
|
48033
|
-
var we = this.textNode, Ce = this.selection.getNativeRange(), qe = void 0, De = void 0,
|
|
48076
|
+
var we = this.textNode, Ce = this.selection.getNativeRange(), qe = void 0, De = void 0, Pe = void 0;
|
|
48034
48077
|
if (Ce != null && Ce.start.node === we && Ce.end.node === we) {
|
|
48035
48078
|
var He = [we, Ce.start.offset, Ce.end.offset];
|
|
48036
|
-
qe = He[0], De = He[1],
|
|
48079
|
+
qe = He[0], De = He[1], Pe = He[2];
|
|
48037
48080
|
}
|
|
48038
48081
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
48039
48082
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
@@ -48042,14 +48085,14 @@ function requireQuill() {
|
|
|
48042
48085
|
this.next instanceof pe.default ? (qe = this.next.domNode, this.next.insertAt(0, Ie), this.textNode.data = ye.CONTENTS) : (this.textNode.data = Ie, this.parent.insertBefore(ue.default.create(this.textNode), this), this.textNode = document.createTextNode(ye.CONTENTS), this.domNode.appendChild(this.textNode));
|
|
48043
48086
|
}
|
|
48044
48087
|
if (this.remove(), De != null) {
|
|
48045
|
-
var Ae = [De,
|
|
48046
|
-
return Math.max(0, Math.min(qe.data.length,
|
|
48088
|
+
var Ae = [De, Pe].map(function(Me) {
|
|
48089
|
+
return Math.max(0, Math.min(qe.data.length, Me - 1));
|
|
48047
48090
|
}), ze = oe(Ae, 2);
|
|
48048
|
-
return De = ze[0],
|
|
48091
|
+
return De = ze[0], Pe = ze[1], {
|
|
48049
48092
|
startNode: qe,
|
|
48050
48093
|
startOffset: De,
|
|
48051
48094
|
endNode: qe,
|
|
48052
|
-
endOffset:
|
|
48095
|
+
endOffset: Pe
|
|
48053
48096
|
};
|
|
48054
48097
|
}
|
|
48055
48098
|
}
|
|
@@ -48058,8 +48101,8 @@ function requireQuill() {
|
|
|
48058
48101
|
key: "update",
|
|
48059
48102
|
value: function(we, Ce) {
|
|
48060
48103
|
var qe = this;
|
|
48061
|
-
if (we.some(function(
|
|
48062
|
-
return
|
|
48104
|
+
if (we.some(function(Pe) {
|
|
48105
|
+
return Pe.type === "characterData" && Pe.target === qe.textNode;
|
|
48063
48106
|
})) {
|
|
48064
48107
|
var De = this.restore();
|
|
48065
48108
|
De && (Ce.range = De);
|
|
@@ -48404,7 +48447,7 @@ function requireQuill() {
|
|
|
48404
48447
|
Object.defineProperty(te, "__esModule", {
|
|
48405
48448
|
value: !0
|
|
48406
48449
|
});
|
|
48407
|
-
var oe = re(0), ne = We(oe), de = re(5), ce = We(de), ue = re(4), he = We(ue), pe = re(16), fe = We(pe), be = re(25), me = We(be), ge = re(24), ve = We(ge), _e = re(36), ye = We(_e), Se = re(6), we = We(Se), Ce = re(22), qe = We(Ce), De = re(7),
|
|
48450
|
+
var oe = re(0), ne = We(oe), de = re(5), ce = We(de), ue = re(4), he = We(ue), pe = re(16), fe = We(pe), be = re(25), me = We(be), ge = re(24), ve = We(ge), _e = re(36), ye = We(_e), Se = re(6), we = We(Se), Ce = re(22), qe = We(Ce), De = re(7), Pe = We(De), He = re(56), Ie = We(He), Ae = re(43), ze = We(Ae), Me = re(23), Ne = We(Me);
|
|
48408
48451
|
function We(Ge) {
|
|
48409
48452
|
return Ge && Ge.__esModule ? Ge : { default: Ge };
|
|
48410
48453
|
}
|
|
@@ -48417,11 +48460,11 @@ function requireQuill() {
|
|
|
48417
48460
|
"blots/embed": ye.default,
|
|
48418
48461
|
"blots/inline": we.default,
|
|
48419
48462
|
"blots/scroll": qe.default,
|
|
48420
|
-
"blots/text":
|
|
48463
|
+
"blots/text": Pe.default,
|
|
48421
48464
|
"modules/clipboard": Ie.default,
|
|
48422
48465
|
"modules/history": ze.default,
|
|
48423
48466
|
"modules/keyboard": Ne.default
|
|
48424
|
-
}), ne.default.register(he.default, fe.default, ve.default, we.default, qe.default,
|
|
48467
|
+
}), ne.default.register(he.default, fe.default, ve.default, we.default, qe.default, Pe.default), te.default = ce.default;
|
|
48425
48468
|
}),
|
|
48426
48469
|
/* 30 */
|
|
48427
48470
|
/***/
|
|
@@ -48649,11 +48692,11 @@ function requireQuill() {
|
|
|
48649
48692
|
return pe.includes(Ie.nodeType);
|
|
48650
48693
|
}
|
|
48651
48694
|
function be(Ie, Ae, ze) {
|
|
48652
|
-
var
|
|
48653
|
-
if (!
|
|
48695
|
+
var Me = Ae.childNodes || Ae.children;
|
|
48696
|
+
if (!Me)
|
|
48654
48697
|
return Ae;
|
|
48655
|
-
for (var Ne = 0; Ne <
|
|
48656
|
-
var We = ze ? Ne :
|
|
48698
|
+
for (var Ne = 0; Ne < Me.length; ++Ne) {
|
|
48699
|
+
var We = ze ? Ne : Me.length - 1 - Ne, Ge = Me[We];
|
|
48657
48700
|
if (fe(Ge) && Ie.containsNode(Ge, !0))
|
|
48658
48701
|
return Ie.containsNode(Ge, !1) ? Ge : be(Ie, Ge, ze);
|
|
48659
48702
|
}
|
|
@@ -48669,8 +48712,8 @@ function requireQuill() {
|
|
|
48669
48712
|
return document.addEventListener("selectionchange", function(ze) {
|
|
48670
48713
|
Ie || (document.dispatchEvent(new CustomEvent(oe)), Ie = !0, window.setTimeout(function() {
|
|
48671
48714
|
Ie = !1;
|
|
48672
|
-
}, 2), Ae.forEach(function(
|
|
48673
|
-
return
|
|
48715
|
+
}, 2), Ae.forEach(function(Me) {
|
|
48716
|
+
return Me(ze);
|
|
48674
48717
|
}));
|
|
48675
48718
|
}), function(ze) {
|
|
48676
48719
|
return Ae.push(ze);
|
|
@@ -48683,25 +48726,25 @@ function requireQuill() {
|
|
|
48683
48726
|
}));
|
|
48684
48727
|
});
|
|
48685
48728
|
function _e(Ie, Ae, ze) {
|
|
48686
|
-
for (var
|
|
48729
|
+
for (var Me = Ae; (Ae = Se(Ae, ze)) && Ae.contains(Me); )
|
|
48687
48730
|
;
|
|
48688
48731
|
return Ae ? Ae instanceof Element && Ie.containsNode(Ae, !0) : !1;
|
|
48689
48732
|
}
|
|
48690
48733
|
function ye(Ie, Ae, ze) {
|
|
48691
48734
|
if (Ie.type === "Range") {
|
|
48692
|
-
var
|
|
48735
|
+
var Me = function() {
|
|
48693
48736
|
return Ie.toString().length;
|
|
48694
|
-
}, Ne =
|
|
48737
|
+
}, Ne = Me();
|
|
48695
48738
|
if (Ne === 1 && ge && Ae === ze) {
|
|
48696
48739
|
Ie.extend(Ae, 0), Ie.collapseToEnd();
|
|
48697
48740
|
return;
|
|
48698
48741
|
}
|
|
48699
48742
|
var We = void 0;
|
|
48700
|
-
if (Ie.modify("extend", "forward", "character"), We =
|
|
48743
|
+
if (Ie.modify("extend", "forward", "character"), We = Me(), We > Ne || _e(Ie, ze, !0))
|
|
48701
48744
|
return Ie.modify("extend", "backward", "character"), !0;
|
|
48702
48745
|
if (We < Ne || !Ie.containsNode(Ae))
|
|
48703
48746
|
return Ie.modify("extend", "backward", "character"), !1;
|
|
48704
|
-
if (Ie.modify("extend", "backward", "character"), We =
|
|
48747
|
+
if (Ie.modify("extend", "backward", "character"), We = Me(), We > Ne || _e(Ie, Ae, !1))
|
|
48705
48748
|
return Ie.modify("extend", "forward", "character"), !1;
|
|
48706
48749
|
if (We < Ne || !Ie.containsNode(ze))
|
|
48707
48750
|
return Ie.modify("extend", "forward", "character"), !0;
|
|
@@ -48735,23 +48778,23 @@ function requireQuill() {
|
|
|
48735
48778
|
var ze = qe.get(Ie);
|
|
48736
48779
|
if (ze)
|
|
48737
48780
|
return ze;
|
|
48738
|
-
var
|
|
48739
|
-
return qe.set(Ie,
|
|
48781
|
+
var Me = He(Ie);
|
|
48782
|
+
return qe.set(Ie, Me.range), window.setTimeout(function() {
|
|
48740
48783
|
qe.delete(Ie);
|
|
48741
|
-
}, 0),
|
|
48784
|
+
}, 0), Me.range;
|
|
48742
48785
|
}
|
|
48743
|
-
var
|
|
48786
|
+
var Pe = document.createTextNode("");
|
|
48744
48787
|
function He(Ie) {
|
|
48745
48788
|
var Ae = document.createRange(), ze = window.getSelection();
|
|
48746
48789
|
if (!ze.containsNode(Ie.host, !0))
|
|
48747
48790
|
return { range: null, mode: "none" };
|
|
48748
|
-
Ie.insertBefore(
|
|
48749
|
-
var
|
|
48750
|
-
if (
|
|
48791
|
+
Ie.insertBefore(Pe, Ie.childNodes[0]);
|
|
48792
|
+
var Me = ze.containsNode(Pe);
|
|
48793
|
+
if (Pe.remove(), Me)
|
|
48751
48794
|
return { range: null, mode: "outside-before" };
|
|
48752
|
-
Ie.appendChild(
|
|
48753
|
-
var Ne = ze.containsNode(
|
|
48754
|
-
if (
|
|
48795
|
+
Ie.appendChild(Pe);
|
|
48796
|
+
var Ne = ze.containsNode(Pe);
|
|
48797
|
+
if (Pe.remove(), Ne)
|
|
48755
48798
|
return { range: null, mode: "outside-after" };
|
|
48756
48799
|
var We = function() {
|
|
48757
48800
|
return ze.toString().length;
|
|
@@ -48888,10 +48931,10 @@ function requireQuill() {
|
|
|
48888
48931
|
var Ce = void 0, qe = void 0, De = we.data.split(ge).join("");
|
|
48889
48932
|
if (we === this.leftGuard)
|
|
48890
48933
|
if (this.prev instanceof he.default) {
|
|
48891
|
-
var
|
|
48892
|
-
this.prev.insertAt(
|
|
48934
|
+
var Pe = this.prev.length();
|
|
48935
|
+
this.prev.insertAt(Pe, De), Ce = {
|
|
48893
48936
|
startNode: this.prev.domNode,
|
|
48894
|
-
startOffset:
|
|
48937
|
+
startOffset: Pe + De.length
|
|
48895
48938
|
};
|
|
48896
48939
|
} else
|
|
48897
48940
|
qe = document.createTextNode(De), this.parent.insertBefore(ce.default.create(qe), this), Ce = {
|
|
@@ -48913,8 +48956,8 @@ function requireQuill() {
|
|
|
48913
48956
|
var qe = this;
|
|
48914
48957
|
we.forEach(function(De) {
|
|
48915
48958
|
if (De.type === "characterData" && (De.target === qe.leftGuard || De.target === qe.rightGuard)) {
|
|
48916
|
-
var
|
|
48917
|
-
|
|
48959
|
+
var Pe = qe.restore(De.target);
|
|
48960
|
+
Pe && (Ce.range = Pe);
|
|
48918
48961
|
}
|
|
48919
48962
|
});
|
|
48920
48963
|
}
|
|
@@ -49145,17 +49188,17 @@ function requireQuill() {
|
|
|
49145
49188
|
function we(Ce, qe) {
|
|
49146
49189
|
be(this, we);
|
|
49147
49190
|
var De = me(this, (we.__proto__ || Object.getPrototypeOf(we)).call(this, Ce, qe));
|
|
49148
|
-
return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ue.default.events.EDITOR_CHANGE, function(
|
|
49149
|
-
|
|
49191
|
+
return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ue.default.events.EDITOR_CHANGE, function(Pe, He, Ie, Ae) {
|
|
49192
|
+
Pe !== ue.default.events.TEXT_CHANGE || De.ignoreChange || (!De.options.userOnly || Ae === ue.default.sources.USER ? De.record(He, Ie) : De.transform(He));
|
|
49150
49193
|
}), De.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, De.undo.bind(De)), De.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, De.redo.bind(De)), /Win/i.test(navigator.platform) && De.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, De.redo.bind(De)), De;
|
|
49151
49194
|
}
|
|
49152
49195
|
return oe(we, [{
|
|
49153
49196
|
key: "change",
|
|
49154
49197
|
value: function(qe, De) {
|
|
49155
49198
|
if (this.stack[qe].length !== 0) {
|
|
49156
|
-
var
|
|
49157
|
-
this.stack[De].push(
|
|
49158
|
-
var He = ye(
|
|
49199
|
+
var Pe = this.stack[qe].pop();
|
|
49200
|
+
this.stack[De].push(Pe), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Pe[qe], ue.default.sources.USER), this.ignoreChange = !1;
|
|
49201
|
+
var He = ye(Pe[qe]);
|
|
49159
49202
|
this.quill.setSelection(He);
|
|
49160
49203
|
}
|
|
49161
49204
|
}
|
|
@@ -49174,15 +49217,15 @@ function requireQuill() {
|
|
|
49174
49217
|
value: function(qe, De) {
|
|
49175
49218
|
if (qe.ops.length !== 0) {
|
|
49176
49219
|
this.stack.redo = [];
|
|
49177
|
-
var
|
|
49220
|
+
var Pe = this.quill.getContents().diff(De), He = Date.now();
|
|
49178
49221
|
if (this.lastRecorded + this.options.delay > He && this.stack.undo.length > 0) {
|
|
49179
49222
|
var Ie = this.stack.undo.pop();
|
|
49180
|
-
|
|
49223
|
+
Pe = Pe.compose(Ie.undo), qe = Ie.redo.compose(qe);
|
|
49181
49224
|
} else
|
|
49182
49225
|
this.lastRecorded = He;
|
|
49183
49226
|
this.stack.undo.push({
|
|
49184
49227
|
redo: qe,
|
|
49185
|
-
undo:
|
|
49228
|
+
undo: Pe
|
|
49186
49229
|
}), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
|
|
49187
49230
|
}
|
|
49188
49231
|
}
|
|
@@ -49255,7 +49298,7 @@ function requireQuill() {
|
|
|
49255
49298
|
var rt = Be.get;
|
|
49256
49299
|
return rt === void 0 ? void 0 : rt.call(Xe);
|
|
49257
49300
|
}
|
|
49258
|
-
}, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), ye = He(_e), Se = re(61), we = He(Se), Ce = re(28), qe = He(Ce), De = re(62),
|
|
49301
|
+
}, de = re(3), ce = He(de), ue = re(2), he = He(ue), pe = re(8), fe = He(pe), be = re(23), me = He(be), ge = re(35), ve = He(ge), _e = re(60), ye = He(_e), Se = re(61), we = He(Se), Ce = re(28), qe = He(Ce), De = re(62), Pe = He(De);
|
|
49259
49302
|
function He(Ue) {
|
|
49260
49303
|
return Ue && Ue.__esModule ? Ue : { default: Ue };
|
|
49261
49304
|
}
|
|
@@ -49273,7 +49316,7 @@ function requireQuill() {
|
|
|
49273
49316
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ve);
|
|
49274
49317
|
Ue.prototype = Object.create(Ve && Ve.prototype, { constructor: { value: Ue, enumerable: !1, writable: !0, configurable: !0 } }), Ve && (Object.setPrototypeOf ? Object.setPrototypeOf(Ue, Ve) : Ue.__proto__ = Ve);
|
|
49275
49318
|
}
|
|
49276
|
-
var
|
|
49319
|
+
var Me = [!1, "center", "right", "justify"], Ne = ["#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"], We = [!1, "serif", "monospace"], Ge = ["1", "2", "3", !1], Ke = ["petita", !1, "gran", "enorme"], ft = (function(Ue) {
|
|
49277
49320
|
ze(Ve, Ue);
|
|
49278
49321
|
function Ve(Qe, Xe) {
|
|
49279
49322
|
Ie(this, Ve);
|
|
@@ -49316,7 +49359,7 @@ function requireQuill() {
|
|
|
49316
49359
|
var Ye = this;
|
|
49317
49360
|
this.pickers = Xe.map(function(ot) {
|
|
49318
49361
|
if (ot.classList.contains("ql-align"))
|
|
49319
|
-
return ot.querySelector("option") == null && Le(ot,
|
|
49362
|
+
return ot.querySelector("option") == null && Le(ot, Me), new we.default(ot, Be.align);
|
|
49320
49363
|
if (ot.classList.contains("ql-background") || ot.classList.contains("ql-color")) {
|
|
49321
49364
|
var _t = ot.classList.contains("ql-background") ? "background" : "color";
|
|
49322
49365
|
return ot.querySelector("option") == null && Le(ot, Ne, _t === "background" ? "#ffffff" : "#000000"), new ye.default(ot, Be[_t]);
|
|
@@ -49416,7 +49459,7 @@ function requireQuill() {
|
|
|
49416
49459
|
this.textbox.value = "", this.hide();
|
|
49417
49460
|
}
|
|
49418
49461
|
}]), Ve;
|
|
49419
|
-
})(
|
|
49462
|
+
})(Pe.default);
|
|
49420
49463
|
function Ze(Ue) {
|
|
49421
49464
|
var Ve = Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Ue.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
49422
49465
|
return Ve ? (Ve[1] || "https") + "://www.youtube.com/embed/" + Ve[2] + "?showinfo=0" : (Ve = Ue.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ve[1] || "https") + "://player.vimeo.com/video/" + Ve[2] + "/" : Ue;
|
|
@@ -49557,8 +49600,8 @@ function requireQuill() {
|
|
|
49557
49600
|
for (Se.forEach(function(Ce) {
|
|
49558
49601
|
var qe = de.find(Ce.target, !0);
|
|
49559
49602
|
qe != null && (qe.domNode === Ce.target && (Ce.type === "childList" ? (_e(de.find(Ce.previousSibling, !1)), [].forEach.call(Ce.addedNodes, function(De) {
|
|
49560
|
-
var
|
|
49561
|
-
_e(
|
|
49603
|
+
var Pe = de.find(De, !1);
|
|
49604
|
+
_e(Pe, !1), Pe instanceof ne.default && Pe.children.forEach(function(He) {
|
|
49562
49605
|
_e(He, !1);
|
|
49563
49606
|
});
|
|
49564
49607
|
})) : Ce.type === "attributes" && _e(qe.prev)), _e(qe));
|
|
@@ -49826,12 +49869,12 @@ function requireQuill() {
|
|
|
49826
49869
|
if (we == Ce)
|
|
49827
49870
|
return we ? [[ne, we]] : [];
|
|
49828
49871
|
(qe < 0 || we.length < qe) && (qe = null);
|
|
49829
|
-
var De = pe(we, Ce),
|
|
49872
|
+
var De = pe(we, Ce), Pe = we.substring(0, De);
|
|
49830
49873
|
we = we.substring(De), Ce = Ce.substring(De), De = fe(we, Ce);
|
|
49831
49874
|
var He = we.substring(we.length - De);
|
|
49832
49875
|
we = we.substring(0, we.length - De), Ce = Ce.substring(0, Ce.length - De);
|
|
49833
49876
|
var Ie = ce(we, Ce);
|
|
49834
|
-
return
|
|
49877
|
+
return Pe && Ie.unshift([ne, Pe]), He && Ie.push([ne, He]), me(Ie), qe != null && (Ie = _e(Ie, qe)), Ie = ye(Ie), Ie;
|
|
49835
49878
|
}
|
|
49836
49879
|
function ce(we, Ce) {
|
|
49837
49880
|
var qe;
|
|
@@ -49839,27 +49882,27 @@ function requireQuill() {
|
|
|
49839
49882
|
return [[oe, Ce]];
|
|
49840
49883
|
if (!Ce)
|
|
49841
49884
|
return [[re, we]];
|
|
49842
|
-
var De = we.length > Ce.length ? we : Ce,
|
|
49885
|
+
var De = we.length > Ce.length ? we : Ce, Pe = we.length > Ce.length ? Ce : we, He = De.indexOf(Pe);
|
|
49843
49886
|
if (He != -1)
|
|
49844
49887
|
return qe = [
|
|
49845
49888
|
[oe, De.substring(0, He)],
|
|
49846
|
-
[ne,
|
|
49847
|
-
[oe, De.substring(He +
|
|
49889
|
+
[ne, Pe],
|
|
49890
|
+
[oe, De.substring(He + Pe.length)]
|
|
49848
49891
|
], we.length > Ce.length && (qe[0][0] = qe[2][0] = re), qe;
|
|
49849
|
-
if (
|
|
49892
|
+
if (Pe.length == 1)
|
|
49850
49893
|
return [[re, we], [oe, Ce]];
|
|
49851
49894
|
var Ie = be(we, Ce);
|
|
49852
49895
|
if (Ie) {
|
|
49853
|
-
var Ae = Ie[0], ze = Ie[1],
|
|
49896
|
+
var Ae = Ie[0], ze = Ie[1], Me = Ie[2], Ne = Ie[3], We = Ie[4], Ge = de(Ae, Me), Ke = de(ze, Ne);
|
|
49854
49897
|
return Ge.concat([[ne, We]], Ke);
|
|
49855
49898
|
}
|
|
49856
49899
|
return ue(we, Ce);
|
|
49857
49900
|
}
|
|
49858
49901
|
function ue(we, Ce) {
|
|
49859
|
-
for (var qe = we.length, De = Ce.length,
|
|
49860
|
-
Ae[
|
|
49902
|
+
for (var qe = we.length, De = Ce.length, Pe = Math.ceil((qe + De) / 2), He = Pe, Ie = 2 * Pe, Ae = new Array(Ie), ze = new Array(Ie), Me = 0; Me < Ie; Me++)
|
|
49903
|
+
Ae[Me] = -1, ze[Me] = -1;
|
|
49861
49904
|
Ae[He + 1] = 0, ze[He + 1] = 0;
|
|
49862
|
-
for (var Ne = qe - De, We = Ne % 2 != 0, Ge = 0, Ke = 0, ft = 0, Je = 0, Ze = 0; Ze <
|
|
49905
|
+
for (var Ne = qe - De, We = Ne % 2 != 0, Ge = 0, Ke = 0, ft = 0, Je = 0, Ze = 0; Ze < Pe; Ze++) {
|
|
49863
49906
|
for (var Le = -Ze + Ge; Le <= Ze - Ke; Le += 2) {
|
|
49864
49907
|
var Ue = He + Le, Ve;
|
|
49865
49908
|
Le == -Ze || Le != Ze && Ae[Ue - 1] < Ae[Ue + 1] ? Ve = Ae[Ue + 1] : Ve = Ae[Ue - 1] + 1;
|
|
@@ -49900,28 +49943,28 @@ function requireQuill() {
|
|
|
49900
49943
|
return [[re, we], [oe, Ce]];
|
|
49901
49944
|
}
|
|
49902
49945
|
function he(we, Ce, qe, De) {
|
|
49903
|
-
var
|
|
49904
|
-
return ze.concat(
|
|
49946
|
+
var Pe = we.substring(0, qe), He = Ce.substring(0, De), Ie = we.substring(qe), Ae = Ce.substring(De), ze = de(Pe, He), Me = de(Ie, Ae);
|
|
49947
|
+
return ze.concat(Me);
|
|
49905
49948
|
}
|
|
49906
49949
|
function pe(we, Ce) {
|
|
49907
49950
|
if (!we || !Ce || we.charAt(0) != Ce.charAt(0))
|
|
49908
49951
|
return 0;
|
|
49909
|
-
for (var qe = 0, De = Math.min(we.length, Ce.length),
|
|
49910
|
-
we.substring(He,
|
|
49911
|
-
return
|
|
49952
|
+
for (var qe = 0, De = Math.min(we.length, Ce.length), Pe = De, He = 0; qe < Pe; )
|
|
49953
|
+
we.substring(He, Pe) == Ce.substring(He, Pe) ? (qe = Pe, He = qe) : De = Pe, Pe = Math.floor((De - qe) / 2 + qe);
|
|
49954
|
+
return Pe;
|
|
49912
49955
|
}
|
|
49913
49956
|
function fe(we, Ce) {
|
|
49914
49957
|
if (!we || !Ce || we.charAt(we.length - 1) != Ce.charAt(Ce.length - 1))
|
|
49915
49958
|
return 0;
|
|
49916
|
-
for (var qe = 0, De = Math.min(we.length, Ce.length),
|
|
49917
|
-
we.substring(we.length -
|
|
49918
|
-
return
|
|
49959
|
+
for (var qe = 0, De = Math.min(we.length, Ce.length), Pe = De, He = 0; qe < Pe; )
|
|
49960
|
+
we.substring(we.length - Pe, we.length - He) == Ce.substring(Ce.length - Pe, Ce.length - He) ? (qe = Pe, He = qe) : De = Pe, Pe = Math.floor((De - qe) / 2 + qe);
|
|
49961
|
+
return Pe;
|
|
49919
49962
|
}
|
|
49920
49963
|
function be(we, Ce) {
|
|
49921
49964
|
var qe = we.length > Ce.length ? we : Ce, De = we.length > Ce.length ? Ce : we;
|
|
49922
49965
|
if (qe.length < 4 || De.length * 2 < qe.length)
|
|
49923
49966
|
return null;
|
|
49924
|
-
function
|
|
49967
|
+
function Pe(Ke, ft, Je) {
|
|
49925
49968
|
for (var Ze = Ke.substring(Je, Je + Math.floor(Ke.length / 4)), Le = -1, Ue = "", Ve, Qe, Xe, Be; (Le = ft.indexOf(Ze, Le + 1)) != -1; ) {
|
|
49926
49969
|
var Ye = pe(
|
|
49927
49970
|
Ke.substring(Je),
|
|
@@ -49940,11 +49983,11 @@ function requireQuill() {
|
|
|
49940
49983
|
Ue
|
|
49941
49984
|
] : null;
|
|
49942
49985
|
}
|
|
49943
|
-
var He =
|
|
49986
|
+
var He = Pe(
|
|
49944
49987
|
qe,
|
|
49945
49988
|
De,
|
|
49946
49989
|
Math.ceil(qe.length / 4)
|
|
49947
|
-
), Ie =
|
|
49990
|
+
), Ie = Pe(
|
|
49948
49991
|
qe,
|
|
49949
49992
|
De,
|
|
49950
49993
|
Math.ceil(qe.length / 2)
|
|
@@ -49952,39 +49995,39 @@ function requireQuill() {
|
|
|
49952
49995
|
if (!He && !Ie)
|
|
49953
49996
|
return null;
|
|
49954
49997
|
Ie ? He ? Ae = He[4].length > Ie[4].length ? He : Ie : Ae = Ie : Ae = He;
|
|
49955
|
-
var ze,
|
|
49956
|
-
we.length > Ce.length ? (ze = Ae[0],
|
|
49998
|
+
var ze, Me, Ne, We;
|
|
49999
|
+
we.length > Ce.length ? (ze = Ae[0], Me = Ae[1], Ne = Ae[2], We = Ae[3]) : (Ne = Ae[0], We = Ae[1], ze = Ae[2], Me = Ae[3]);
|
|
49957
50000
|
var Ge = Ae[4];
|
|
49958
|
-
return [ze,
|
|
50001
|
+
return [ze, Me, Ne, We, Ge];
|
|
49959
50002
|
}
|
|
49960
50003
|
function me(we) {
|
|
49961
50004
|
we.push([ne, ""]);
|
|
49962
|
-
for (var Ce = 0, qe = 0, De = 0,
|
|
50005
|
+
for (var Ce = 0, qe = 0, De = 0, Pe = "", He = "", Ie; Ce < we.length; )
|
|
49963
50006
|
switch (we[Ce][0]) {
|
|
49964
50007
|
case oe:
|
|
49965
50008
|
De++, He += we[Ce][1], Ce++;
|
|
49966
50009
|
break;
|
|
49967
50010
|
case re:
|
|
49968
|
-
qe++,
|
|
50011
|
+
qe++, Pe += we[Ce][1], Ce++;
|
|
49969
50012
|
break;
|
|
49970
50013
|
case ne:
|
|
49971
|
-
qe + De > 1 ? (qe !== 0 && De !== 0 && (Ie = pe(He,
|
|
50014
|
+
qe + De > 1 ? (qe !== 0 && De !== 0 && (Ie = pe(He, Pe), Ie !== 0 && (Ce - qe - De > 0 && we[Ce - qe - De - 1][0] == ne ? we[Ce - qe - De - 1][1] += He.substring(0, Ie) : (we.splice(0, 0, [
|
|
49972
50015
|
ne,
|
|
49973
50016
|
He.substring(0, Ie)
|
|
49974
|
-
]), Ce++), He = He.substring(Ie),
|
|
50017
|
+
]), Ce++), He = He.substring(Ie), Pe = Pe.substring(Ie)), Ie = fe(He, Pe), Ie !== 0 && (we[Ce][1] = He.substring(He.length - Ie) + we[Ce][1], He = He.substring(0, He.length - Ie), Pe = Pe.substring(0, Pe.length - Ie))), qe === 0 ? we.splice(
|
|
49975
50018
|
Ce - De,
|
|
49976
50019
|
qe + De,
|
|
49977
50020
|
[oe, He]
|
|
49978
50021
|
) : De === 0 ? we.splice(
|
|
49979
50022
|
Ce - qe,
|
|
49980
50023
|
qe + De,
|
|
49981
|
-
[re,
|
|
50024
|
+
[re, Pe]
|
|
49982
50025
|
) : we.splice(
|
|
49983
50026
|
Ce - qe - De,
|
|
49984
50027
|
qe + De,
|
|
49985
|
-
[re,
|
|
50028
|
+
[re, Pe],
|
|
49986
50029
|
[oe, He]
|
|
49987
|
-
), Ce = Ce - qe - De + (qe ? 1 : 0) + (De ? 1 : 0) + 1) : Ce !== 0 && we[Ce - 1][0] == ne ? (we[Ce - 1][1] += we[Ce][1], we.splice(Ce, 1)) : Ce++, De = 0, qe = 0,
|
|
50030
|
+
), Ce = Ce - qe - De + (qe ? 1 : 0) + (De ? 1 : 0) + 1) : Ce !== 0 && we[Ce - 1][0] == ne ? (we[Ce - 1][1] += we[Ce][1], we.splice(Ce, 1)) : Ce++, De = 0, qe = 0, Pe = "", He = "";
|
|
49988
50031
|
break;
|
|
49989
50032
|
}
|
|
49990
50033
|
we[we.length - 1][1] === "" && we.pop();
|
|
@@ -49999,14 +50042,14 @@ function requireQuill() {
|
|
|
49999
50042
|
if (Ce === 0)
|
|
50000
50043
|
return [ne, we];
|
|
50001
50044
|
for (var qe = 0, De = 0; De < we.length; De++) {
|
|
50002
|
-
var
|
|
50003
|
-
if (
|
|
50004
|
-
var He = qe +
|
|
50045
|
+
var Pe = we[De];
|
|
50046
|
+
if (Pe[0] === re || Pe[0] === ne) {
|
|
50047
|
+
var He = qe + Pe[1].length;
|
|
50005
50048
|
if (Ce === He)
|
|
50006
50049
|
return [De + 1, we];
|
|
50007
50050
|
if (Ce < He) {
|
|
50008
50051
|
we = we.slice();
|
|
50009
|
-
var Ie = Ce - qe, Ae = [
|
|
50052
|
+
var Ie = Ce - qe, Ae = [Pe[0], Pe[1].slice(0, Ie)], ze = [Pe[0], Pe[1].slice(Ie)];
|
|
50010
50053
|
return we.splice(De, 1, Ae, ze), [De + 1, we];
|
|
50011
50054
|
} else
|
|
50012
50055
|
qe = He;
|
|
@@ -50015,17 +50058,17 @@ function requireQuill() {
|
|
|
50015
50058
|
throw new Error("cursor_pos is out of bounds!");
|
|
50016
50059
|
}
|
|
50017
50060
|
function _e(we, Ce) {
|
|
50018
|
-
var qe = ve(we, Ce), De = qe[1],
|
|
50061
|
+
var qe = ve(we, Ce), De = qe[1], Pe = qe[0], He = De[Pe], Ie = De[Pe + 1];
|
|
50019
50062
|
if (He == null)
|
|
50020
50063
|
return we;
|
|
50021
50064
|
if (He[0] !== ne)
|
|
50022
50065
|
return we;
|
|
50023
50066
|
if (Ie != null && He[1] + Ie[1] === Ie[1] + He[1])
|
|
50024
|
-
return De.splice(
|
|
50067
|
+
return De.splice(Pe, 2, Ie, He), Se(De, Pe, 2);
|
|
50025
50068
|
if (Ie != null && Ie[1].indexOf(He[1]) === 0) {
|
|
50026
|
-
De.splice(
|
|
50069
|
+
De.splice(Pe, 2, [Ie[0], He[1]], [0, He[1]]);
|
|
50027
50070
|
var Ae = Ie[1].slice(He[1].length);
|
|
50028
|
-
return Ae.length > 0 && De.splice(
|
|
50071
|
+
return Ae.length > 0 && De.splice(Pe + 2, 0, [Ie[0], Ae]), Se(De, Pe, 3);
|
|
50029
50072
|
} else
|
|
50030
50073
|
return we;
|
|
50031
50074
|
}
|
|
@@ -50034,19 +50077,19 @@ function requireQuill() {
|
|
|
50034
50077
|
return Ie.charCodeAt(0) >= 56320 && Ie.charCodeAt(0) <= 57343;
|
|
50035
50078
|
}, De = function(Ie) {
|
|
50036
50079
|
return Ie.charCodeAt(Ie.length - 1) >= 55296 && Ie.charCodeAt(Ie.length - 1) <= 56319;
|
|
50037
|
-
},
|
|
50038
|
-
we[
|
|
50080
|
+
}, Pe = 2; Pe < we.length; Pe += 1)
|
|
50081
|
+
we[Pe - 2][0] === ne && De(we[Pe - 2][1]) && we[Pe - 1][0] === re && qe(we[Pe - 1][1]) && we[Pe][0] === oe && qe(we[Pe][1]) && (Ce = !0, we[Pe - 1][1] = we[Pe - 2][1].slice(-1) + we[Pe - 1][1], we[Pe][1] = we[Pe - 2][1].slice(-1) + we[Pe][1], we[Pe - 2][1] = we[Pe - 2][1].slice(0, -1));
|
|
50039
50082
|
if (!Ce)
|
|
50040
50083
|
return we;
|
|
50041
|
-
for (var He = [],
|
|
50042
|
-
we[
|
|
50084
|
+
for (var He = [], Pe = 0; Pe < we.length; Pe += 1)
|
|
50085
|
+
we[Pe][1].length > 0 && He.push(we[Pe]);
|
|
50043
50086
|
return He;
|
|
50044
50087
|
}
|
|
50045
50088
|
function Se(we, Ce, qe) {
|
|
50046
50089
|
for (var De = Ce + qe - 1; De >= 0 && De >= Ce - 1; De--)
|
|
50047
50090
|
if (De + 1 < we.length) {
|
|
50048
|
-
var
|
|
50049
|
-
|
|
50091
|
+
var Pe = we[De], He = we[De + 1];
|
|
50092
|
+
Pe[0] === He[1] && we.splice(De, 2, [Pe[0], Pe[1] + He[1]]);
|
|
50050
50093
|
}
|
|
50051
50094
|
return we;
|
|
50052
50095
|
}
|
|
@@ -50187,17 +50230,17 @@ function requireQuill() {
|
|
|
50187
50230
|
return gt && typeof Symbol == "function" && gt.constructor === Symbol && gt !== Symbol.prototype ? "symbol" : typeof gt;
|
|
50188
50231
|
}, ne = /* @__PURE__ */ (function() {
|
|
50189
50232
|
function gt(mt, xt) {
|
|
50190
|
-
var Ct = [], wt = !0, Lt = !1,
|
|
50233
|
+
var Ct = [], wt = !0, Lt = !1, Pt = void 0;
|
|
50191
50234
|
try {
|
|
50192
50235
|
for (var Ft = mt[Symbol.iterator](), cs; !(wt = (cs = Ft.next()).done) && (Ct.push(cs.value), !(xt && Ct.length === xt)); wt = !0)
|
|
50193
50236
|
;
|
|
50194
50237
|
} catch (ds) {
|
|
50195
|
-
Lt = !0,
|
|
50238
|
+
Lt = !0, Pt = ds;
|
|
50196
50239
|
} finally {
|
|
50197
50240
|
try {
|
|
50198
50241
|
!wt && Ft.return && Ft.return();
|
|
50199
50242
|
} finally {
|
|
50200
|
-
if (Lt) throw
|
|
50243
|
+
if (Lt) throw Pt;
|
|
50201
50244
|
}
|
|
50202
50245
|
}
|
|
50203
50246
|
return Ct;
|
|
@@ -50219,11 +50262,11 @@ function requireQuill() {
|
|
|
50219
50262
|
return function(mt, xt, Ct) {
|
|
50220
50263
|
return xt && gt(mt.prototype, xt), Ct && gt(mt, Ct), mt;
|
|
50221
50264
|
};
|
|
50222
|
-
})(), ce = re(3), ue = ze(ce), he = re(2), pe = ze(he), fe = re(0), be = ze(fe), me = re(5), ge = ze(me), ve = re(10), _e = ze(ve), ye = re(9), Se = ze(ye), we = re(37), Ce = re(38), qe = re(13), De = ze(qe),
|
|
50265
|
+
})(), ce = re(3), ue = ze(ce), he = re(2), pe = ze(he), fe = re(0), be = ze(fe), me = re(5), ge = ze(me), ve = re(10), _e = ze(ve), ye = re(9), Se = ze(ye), we = re(37), Ce = re(38), qe = re(13), De = ze(qe), Pe = re(26), He = re(39), Ie = re(40), Ae = re(41);
|
|
50223
50266
|
function ze(gt) {
|
|
50224
50267
|
return gt && gt.__esModule ? gt : { default: gt };
|
|
50225
50268
|
}
|
|
50226
|
-
function
|
|
50269
|
+
function Me(gt, mt, xt) {
|
|
50227
50270
|
return mt in gt ? Object.defineProperty(gt, mt, { value: xt, enumerable: !0, configurable: !0, writable: !0 }) : gt[mt] = xt, gt;
|
|
50228
50271
|
}
|
|
50229
50272
|
function Ne(gt, mt) {
|
|
@@ -50242,7 +50285,7 @@ function requireQuill() {
|
|
|
50242
50285
|
}
|
|
50243
50286
|
var Ke = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Je = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Bt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", zt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ze = [we.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
|
|
50244
50287
|
return gt[mt.keyName] = mt, gt;
|
|
50245
|
-
}, {}), Le = [we.AlignStyle, Ce.BackgroundStyle,
|
|
50288
|
+
}, {}), Le = [we.AlignStyle, Ce.BackgroundStyle, Pe.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
|
|
50246
50289
|
return gt[mt.keyName] = mt, gt;
|
|
50247
50290
|
}, {}), Ue = (function(gt) {
|
|
50248
50291
|
Ge(mt, gt);
|
|
@@ -50250,7 +50293,7 @@ function requireQuill() {
|
|
|
50250
50293
|
Ne(this, mt);
|
|
50251
50294
|
var wt = We(this, (mt.__proto__ || Object.getPrototypeOf(mt)).call(this, xt, Ct));
|
|
50252
50295
|
return wt.quill.root.addEventListener("paste", wt.onPaste.bind(wt)), wt.container = wt.quill.addContainer("ql-clipboard"), wt.container.setAttribute("contenteditable", !0), wt.container.setAttribute("tabindex", -1), wt.matchers = [], Je.concat(wt.options.matchers).forEach(function(Lt) {
|
|
50253
|
-
var
|
|
50296
|
+
var Pt = ne(Lt, 2), Ft = Pt[0], cs = Pt[1];
|
|
50254
50297
|
!Ct.matchVisual && cs === Bt || wt.addMatcher(Ft, cs);
|
|
50255
50298
|
}), wt;
|
|
50256
50299
|
}
|
|
@@ -50267,9 +50310,9 @@ function requireQuill() {
|
|
|
50267
50310
|
var wt = this.quill.getFormat(this.quill.selection.savedRange.index);
|
|
50268
50311
|
if (wt[De.default.blotName]) {
|
|
50269
50312
|
var Lt = this.container.innerText;
|
|
50270
|
-
return this.container.innerHTML = "", new pe.default().insert(Lt,
|
|
50313
|
+
return this.container.innerHTML = "", new pe.default().insert(Lt, Me({}, De.default.blotName, wt[De.default.blotName]));
|
|
50271
50314
|
}
|
|
50272
|
-
var
|
|
50315
|
+
var Pt = this.prepareMatching(), Ft = ne(Pt, 2), cs = Ft[0], ds = Ft[1], Kt = Ye(this.container, cs, ds);
|
|
50273
50316
|
return Xe(Kt, `
|
|
50274
50317
|
`) && Kt.ops[Kt.ops.length - 1].attributes == null && (Kt = Kt.compose(new pe.default().retain(Kt.length() - 1).delete(1))), Ke.log("convert", this.container.innerHTML, Kt), this.container.innerHTML = "", Kt;
|
|
50275
50318
|
}
|
|
@@ -50280,8 +50323,8 @@ function requireQuill() {
|
|
|
50280
50323
|
if (typeof Ct == "string")
|
|
50281
50324
|
this.quill.setContents(this.convert(Ct), wt), this.quill.setSelection(0, ge.default.sources.SILENT);
|
|
50282
50325
|
else {
|
|
50283
|
-
var
|
|
50284
|
-
this.quill.updateContents(new pe.default().retain(Ct).concat(
|
|
50326
|
+
var Pt = this.convert(wt);
|
|
50327
|
+
this.quill.updateContents(new pe.default().retain(Ct).concat(Pt), Lt), this.quill.setSelection(Ct + Pt.length(), ge.default.sources.SILENT);
|
|
50285
50328
|
}
|
|
50286
50329
|
}
|
|
50287
50330
|
}, {
|
|
@@ -50289,9 +50332,9 @@ function requireQuill() {
|
|
|
50289
50332
|
value: function(Ct) {
|
|
50290
50333
|
var wt = this;
|
|
50291
50334
|
if (!(Ct.defaultPrevented || !this.quill.isEnabled())) {
|
|
50292
|
-
var Lt = this.quill.getSelection(),
|
|
50335
|
+
var Lt = this.quill.getSelection(), Pt = new pe.default().retain(Lt.index), Ft = this.quill.scrollingContainer.scrollTop;
|
|
50293
50336
|
this.container.focus(), this.quill.selection.update(ge.default.sources.SILENT), setTimeout(function() {
|
|
50294
|
-
|
|
50337
|
+
Pt = Pt.concat(wt.convert()).delete(Lt.length), wt.quill.updateContents(Pt, ge.default.sources.USER), wt.quill.setSelection(Pt.length() - Lt.length, ge.default.sources.SILENT), wt.quill.scrollingContainer.scrollTop = Ft, wt.quill.focus();
|
|
50295
50338
|
}, 1);
|
|
50296
50339
|
}
|
|
50297
50340
|
}
|
|
@@ -50299,8 +50342,8 @@ function requireQuill() {
|
|
|
50299
50342
|
key: "prepareMatching",
|
|
50300
50343
|
value: function() {
|
|
50301
50344
|
var Ct = this, wt = [], Lt = [];
|
|
50302
|
-
return this.matchers.forEach(function(
|
|
50303
|
-
var Ft = ne(
|
|
50345
|
+
return this.matchers.forEach(function(Pt) {
|
|
50346
|
+
var Ft = ne(Pt, 2), cs = Ft[0], ds = Ft[1];
|
|
50304
50347
|
switch (cs) {
|
|
50305
50348
|
case Node.TEXT_NODE:
|
|
50306
50349
|
Lt.push(ds);
|
|
@@ -50326,7 +50369,7 @@ function requireQuill() {
|
|
|
50326
50369
|
return (typeof mt > "u" ? "undefined" : oe(mt)) === "object" ? Object.keys(mt).reduce(function(Ct, wt) {
|
|
50327
50370
|
return Ve(Ct, wt, mt[wt]);
|
|
50328
50371
|
}, gt) : gt.reduce(function(Ct, wt) {
|
|
50329
|
-
return wt.attributes && wt.attributes[mt] ? Ct.push(wt) : Ct.insert(wt.insert, (0, ue.default)({},
|
|
50372
|
+
return wt.attributes && wt.attributes[mt] ? Ct.push(wt) : Ct.insert(wt.insert, (0, ue.default)({}, Me({}, mt, xt), wt.attributes));
|
|
50330
50373
|
}, new pe.default());
|
|
50331
50374
|
}
|
|
50332
50375
|
function Qe(gt) {
|
|
@@ -50352,10 +50395,10 @@ function requireQuill() {
|
|
|
50352
50395
|
return wt(gt, Ct);
|
|
50353
50396
|
}, new pe.default()) : gt.nodeType === gt.ELEMENT_NODE ? [].reduce.call(gt.childNodes || [], function(Ct, wt) {
|
|
50354
50397
|
var Lt = Ye(wt, mt, xt);
|
|
50355
|
-
return wt.nodeType === gt.ELEMENT_NODE && (Lt = mt.reduce(function(
|
|
50356
|
-
return Ft(wt,
|
|
50357
|
-
}, Lt), Lt = (wt[ft] || []).reduce(function(
|
|
50358
|
-
return Ft(wt,
|
|
50398
|
+
return wt.nodeType === gt.ELEMENT_NODE && (Lt = mt.reduce(function(Pt, Ft) {
|
|
50399
|
+
return Ft(wt, Pt);
|
|
50400
|
+
}, Lt), Lt = (wt[ft] || []).reduce(function(Pt, Ft) {
|
|
50401
|
+
return Ft(wt, Pt);
|
|
50359
50402
|
}, Lt)), Ct.concat(Lt);
|
|
50360
50403
|
}, new pe.default()) : new pe.default();
|
|
50361
50404
|
}
|
|
@@ -50364,9 +50407,9 @@ function requireQuill() {
|
|
|
50364
50407
|
}
|
|
50365
50408
|
function ot(gt, mt) {
|
|
50366
50409
|
var xt = be.default.Attributor.Attribute.keys(gt), Ct = be.default.Attributor.Class.keys(gt), wt = be.default.Attributor.Style.keys(gt), Lt = {};
|
|
50367
|
-
return xt.concat(Ct).concat(wt).forEach(function(
|
|
50368
|
-
var Ft = be.default.query(
|
|
50369
|
-
Ft != null && (Lt[Ft.attrName] = Ft.value(gt), Lt[Ft.attrName]) || (Ft = Ze[
|
|
50410
|
+
return xt.concat(Ct).concat(wt).forEach(function(Pt) {
|
|
50411
|
+
var Ft = be.default.query(Pt, be.default.Scope.ATTRIBUTE);
|
|
50412
|
+
Ft != null && (Lt[Ft.attrName] = Ft.value(gt), Lt[Ft.attrName]) || (Ft = Ze[Pt], Ft != null && (Ft.attrName === Pt || Ft.keyName === Pt) && (Lt[Ft.attrName] = Ft.value(gt) || void 0), Ft = Le[Pt], Ft != null && (Ft.attrName === Pt || Ft.keyName === Pt) && (Ft = Le[Pt], Lt[Ft.attrName] = Ft.value(gt) || void 0));
|
|
50370
50413
|
}), Object.keys(Lt).length > 0 && (mt = Ve(mt, Lt)), mt;
|
|
50371
50414
|
}
|
|
50372
50415
|
function _t(gt, mt) {
|
|
@@ -50421,8 +50464,8 @@ function requireQuill() {
|
|
|
50421
50464
|
if (xt.trim().length === 0 && gt.parentNode.classList.contains("ql-clipboard"))
|
|
50422
50465
|
return mt;
|
|
50423
50466
|
if (!Qe(gt.parentNode).whiteSpace.startsWith("pre")) {
|
|
50424
|
-
var Ct = function(Lt,
|
|
50425
|
-
return
|
|
50467
|
+
var Ct = function(Lt, Pt) {
|
|
50468
|
+
return Pt = Pt.replace(/[^\u00a0]/g, ""), Pt.length < 1 && Lt ? " " : Pt;
|
|
50426
50469
|
};
|
|
50427
50470
|
xt = xt.replace(/\r\n/g, " ").replace(/\n/g, " "), xt = xt.replace(/\s\s+/g, Ct.bind(Ct, !0)), (gt.previousSibling == null && Be(gt.parentNode) || gt.previousSibling != null && Be(gt.previousSibling)) && (xt = xt.replace(/^\s+/, Ct.bind(Ct, !1))), (gt.nextSibling == null && Be(gt.parentNode) || gt.nextSibling != null && Be(gt.nextSibling)) && (xt = xt.replace(/\s+$/, Ct.bind(Ct, !1)));
|
|
50428
50471
|
}
|
|
@@ -50507,10 +50550,10 @@ function requireQuill() {
|
|
|
50507
50550
|
value: !0
|
|
50508
50551
|
}), te.addControls = te.default = void 0;
|
|
50509
50552
|
var oe = /* @__PURE__ */ (function() {
|
|
50510
|
-
function ze(
|
|
50553
|
+
function ze(Me, Ne) {
|
|
50511
50554
|
var We = [], Ge = !0, Ke = !1, ft = void 0;
|
|
50512
50555
|
try {
|
|
50513
|
-
for (var Je =
|
|
50556
|
+
for (var Je = Me[Symbol.iterator](), Ze; !(Ge = (Ze = Je.next()).done) && (We.push(Ze.value), !(Ne && We.length === Ne)); Ge = !0)
|
|
50514
50557
|
;
|
|
50515
50558
|
} catch (Le) {
|
|
50516
50559
|
Ke = !0, ft = Le;
|
|
@@ -50523,49 +50566,49 @@ function requireQuill() {
|
|
|
50523
50566
|
}
|
|
50524
50567
|
return We;
|
|
50525
50568
|
}
|
|
50526
|
-
return function(
|
|
50527
|
-
if (Array.isArray(
|
|
50528
|
-
return
|
|
50529
|
-
if (Symbol.iterator in Object(
|
|
50530
|
-
return ze(
|
|
50569
|
+
return function(Me, Ne) {
|
|
50570
|
+
if (Array.isArray(Me))
|
|
50571
|
+
return Me;
|
|
50572
|
+
if (Symbol.iterator in Object(Me))
|
|
50573
|
+
return ze(Me, Ne);
|
|
50531
50574
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
50532
50575
|
};
|
|
50533
50576
|
})(), ne = /* @__PURE__ */ (function() {
|
|
50534
|
-
function ze(
|
|
50577
|
+
function ze(Me, Ne) {
|
|
50535
50578
|
for (var We = 0; We < Ne.length; We++) {
|
|
50536
50579
|
var Ge = Ne[We];
|
|
50537
|
-
Ge.enumerable = Ge.enumerable || !1, Ge.configurable = !0, "value" in Ge && (Ge.writable = !0), Object.defineProperty(
|
|
50580
|
+
Ge.enumerable = Ge.enumerable || !1, Ge.configurable = !0, "value" in Ge && (Ge.writable = !0), Object.defineProperty(Me, Ge.key, Ge);
|
|
50538
50581
|
}
|
|
50539
50582
|
}
|
|
50540
|
-
return function(
|
|
50541
|
-
return Ne && ze(
|
|
50583
|
+
return function(Me, Ne, We) {
|
|
50584
|
+
return Ne && ze(Me.prototype, Ne), We && ze(Me, We), Me;
|
|
50542
50585
|
};
|
|
50543
50586
|
})(), de = re(2), ce = _e(de), ue = re(0), he = _e(ue), pe = re(5), fe = _e(pe), be = re(10), me = _e(be), ge = re(9), ve = _e(ge);
|
|
50544
50587
|
function _e(ze) {
|
|
50545
50588
|
return ze && ze.__esModule ? ze : { default: ze };
|
|
50546
50589
|
}
|
|
50547
|
-
function ye(ze,
|
|
50548
|
-
return
|
|
50590
|
+
function ye(ze, Me, Ne) {
|
|
50591
|
+
return Me in ze ? Object.defineProperty(ze, Me, { value: Ne, enumerable: !0, configurable: !0, writable: !0 }) : ze[Me] = Ne, ze;
|
|
50549
50592
|
}
|
|
50550
|
-
function Se(ze,
|
|
50551
|
-
if (!(ze instanceof
|
|
50593
|
+
function Se(ze, Me) {
|
|
50594
|
+
if (!(ze instanceof Me))
|
|
50552
50595
|
throw new TypeError("Cannot call a class as a function");
|
|
50553
50596
|
}
|
|
50554
|
-
function we(ze,
|
|
50597
|
+
function we(ze, Me) {
|
|
50555
50598
|
if (!ze)
|
|
50556
50599
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
50557
|
-
return
|
|
50600
|
+
return Me && (typeof Me == "object" || typeof Me == "function") ? Me : ze;
|
|
50558
50601
|
}
|
|
50559
|
-
function Ce(ze,
|
|
50560
|
-
if (typeof
|
|
50561
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
50562
|
-
ze.prototype = Object.create(
|
|
50602
|
+
function Ce(ze, Me) {
|
|
50603
|
+
if (typeof Me != "function" && Me !== null)
|
|
50604
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Me);
|
|
50605
|
+
ze.prototype = Object.create(Me && Me.prototype, { constructor: { value: ze, enumerable: !1, writable: !0, configurable: !0 } }), Me && (Object.setPrototypeOf ? Object.setPrototypeOf(ze, Me) : ze.__proto__ = Me);
|
|
50563
50606
|
}
|
|
50564
|
-
var qe = "getRootNode" in document, De = (0, me.default)("quill:toolbar"),
|
|
50565
|
-
Ce(
|
|
50566
|
-
function
|
|
50567
|
-
Se(this,
|
|
50568
|
-
var Ge = we(this, (
|
|
50607
|
+
var qe = "getRootNode" in document, De = (0, me.default)("quill:toolbar"), Pe = (function(ze) {
|
|
50608
|
+
Ce(Me, ze);
|
|
50609
|
+
function Me(Ne, We) {
|
|
50610
|
+
Se(this, Me);
|
|
50611
|
+
var Ge = we(this, (Me.__proto__ || Object.getPrototypeOf(Me)).call(this, Ne, We));
|
|
50569
50612
|
if (Array.isArray(Ge.options.container)) {
|
|
50570
50613
|
var Ke = document.createElement("div");
|
|
50571
50614
|
Ie(Ke, Ge.options.container), Ne.container.parentNode.insertBefore(Ke, Ne.container), Ge.container = Ke;
|
|
@@ -50589,7 +50632,7 @@ function requireQuill() {
|
|
|
50589
50632
|
Ge.update(Ue);
|
|
50590
50633
|
}), Ge;
|
|
50591
50634
|
}
|
|
50592
|
-
return ne(
|
|
50635
|
+
return ne(Me, [{
|
|
50593
50636
|
key: "addHandler",
|
|
50594
50637
|
value: function(We, Ge) {
|
|
50595
50638
|
this.handlers[We] = Ge;
|
|
@@ -50659,15 +50702,15 @@ function requireQuill() {
|
|
|
50659
50702
|
Ze.classList.toggle("ql-active", Ge[Je] != null);
|
|
50660
50703
|
});
|
|
50661
50704
|
}
|
|
50662
|
-
}]),
|
|
50705
|
+
}]), Me;
|
|
50663
50706
|
})(ve.default);
|
|
50664
|
-
|
|
50665
|
-
function He(ze,
|
|
50707
|
+
Pe.DEFAULTS = {};
|
|
50708
|
+
function He(ze, Me, Ne) {
|
|
50666
50709
|
var We = document.createElement("button");
|
|
50667
|
-
We.setAttribute("type", "button"), We.classList.add("ql-" +
|
|
50710
|
+
We.setAttribute("type", "button"), We.classList.add("ql-" + Me), Ne != null && (We.value = Ne), ze.appendChild(We);
|
|
50668
50711
|
}
|
|
50669
|
-
function Ie(ze,
|
|
50670
|
-
Array.isArray(
|
|
50712
|
+
function Ie(ze, Me) {
|
|
50713
|
+
Array.isArray(Me[0]) || (Me = [Me]), Me.forEach(function(Ne) {
|
|
50671
50714
|
var We = document.createElement("span");
|
|
50672
50715
|
We.classList.add("ql-formats"), Ne.forEach(function(Ge) {
|
|
50673
50716
|
if (typeof Ge == "string")
|
|
@@ -50679,47 +50722,47 @@ function requireQuill() {
|
|
|
50679
50722
|
}), ze.appendChild(We);
|
|
50680
50723
|
});
|
|
50681
50724
|
}
|
|
50682
|
-
function Ae(ze,
|
|
50725
|
+
function Ae(ze, Me, Ne) {
|
|
50683
50726
|
var We = document.createElement("select");
|
|
50684
|
-
We.classList.add("ql-" +
|
|
50727
|
+
We.classList.add("ql-" + Me), Ne.forEach(function(Ge) {
|
|
50685
50728
|
var Ke = document.createElement("option");
|
|
50686
50729
|
Ge !== !1 ? Ke.setAttribute("value", Ge) : Ke.setAttribute("selected", "selected"), We.appendChild(Ke);
|
|
50687
50730
|
}), ze.appendChild(We);
|
|
50688
50731
|
}
|
|
50689
|
-
|
|
50732
|
+
Pe.DEFAULTS = {
|
|
50690
50733
|
container: null,
|
|
50691
50734
|
handlers: {
|
|
50692
50735
|
clean: function() {
|
|
50693
|
-
var
|
|
50736
|
+
var Me = this, Ne = this.quill.getSelection();
|
|
50694
50737
|
if (Ne != null)
|
|
50695
50738
|
if (Ne.length == 0) {
|
|
50696
50739
|
var We = this.quill.getFormat();
|
|
50697
50740
|
Object.keys(We).forEach(function(Ge) {
|
|
50698
|
-
he.default.query(Ge, he.default.Scope.INLINE) != null &&
|
|
50741
|
+
he.default.query(Ge, he.default.Scope.INLINE) != null && Me.quill.format(Ge, !1);
|
|
50699
50742
|
});
|
|
50700
50743
|
} else
|
|
50701
50744
|
this.quill.removeFormat(Ne, fe.default.sources.USER);
|
|
50702
50745
|
},
|
|
50703
|
-
direction: function(
|
|
50746
|
+
direction: function(Me) {
|
|
50704
50747
|
var Ne = this.quill.getFormat().align;
|
|
50705
|
-
|
|
50748
|
+
Me === "rtl" && Ne == null ? this.quill.format("align", "right", fe.default.sources.USER) : !Me && Ne === "right" && this.quill.format("align", !1, fe.default.sources.USER), this.quill.format("direction", Me, fe.default.sources.USER);
|
|
50706
50749
|
},
|
|
50707
|
-
indent: function(
|
|
50750
|
+
indent: function(Me) {
|
|
50708
50751
|
var Ne = this.quill.getSelection(), We = this.quill.getFormat(Ne), Ge = parseInt(We.indent || 0);
|
|
50709
|
-
if (
|
|
50710
|
-
var Ke =
|
|
50752
|
+
if (Me === "+1" || Me === "-1") {
|
|
50753
|
+
var Ke = Me === "+1" ? 1 : -1;
|
|
50711
50754
|
We.direction === "rtl" && (Ke *= -1), this.quill.format("indent", Ge + Ke, fe.default.sources.USER);
|
|
50712
50755
|
}
|
|
50713
50756
|
},
|
|
50714
|
-
link: function(
|
|
50715
|
-
|
|
50757
|
+
link: function(Me) {
|
|
50758
|
+
Me === !0 && (Me = prompt("Enter link URL:")), this.quill.format("link", Me, fe.default.sources.USER);
|
|
50716
50759
|
},
|
|
50717
|
-
list: function(
|
|
50760
|
+
list: function(Me) {
|
|
50718
50761
|
var Ne = this.quill.getSelection(), We = this.quill.getFormat(Ne);
|
|
50719
|
-
|
|
50762
|
+
Me === "check" ? We.list === "checked" || We.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);
|
|
50720
50763
|
}
|
|
50721
50764
|
}
|
|
50722
|
-
}, te.default =
|
|
50765
|
+
}, te.default = Pe, te.addControls = Ie;
|
|
50723
50766
|
}),
|
|
50724
50767
|
/* 59 */
|
|
50725
50768
|
/***/
|
|
@@ -50924,9 +50967,9 @@ function requireQuill() {
|
|
|
50924
50967
|
});
|
|
50925
50968
|
var oe = /* @__PURE__ */ (function() {
|
|
50926
50969
|
function Ie(Ae, ze) {
|
|
50927
|
-
var
|
|
50970
|
+
var Me = [], Ne = !0, We = !1, Ge = void 0;
|
|
50928
50971
|
try {
|
|
50929
|
-
for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (
|
|
50972
|
+
for (var Ke = Ae[Symbol.iterator](), ft; !(Ne = (ft = Ke.next()).done) && (Me.push(ft.value), !(ze && Me.length === ze)); Ne = !0)
|
|
50930
50973
|
;
|
|
50931
50974
|
} catch (Je) {
|
|
50932
50975
|
We = !0, Ge = Je;
|
|
@@ -50937,7 +50980,7 @@ function requireQuill() {
|
|
|
50937
50980
|
if (We) throw Ge;
|
|
50938
50981
|
}
|
|
50939
50982
|
}
|
|
50940
|
-
return
|
|
50983
|
+
return Me;
|
|
50941
50984
|
}
|
|
50942
50985
|
return function(Ae, ze) {
|
|
50943
50986
|
if (Array.isArray(Ae))
|
|
@@ -50946,27 +50989,27 @@ function requireQuill() {
|
|
|
50946
50989
|
return Ie(Ae, ze);
|
|
50947
50990
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
50948
50991
|
};
|
|
50949
|
-
})(), ne = function Ie(Ae, ze,
|
|
50992
|
+
})(), ne = function Ie(Ae, ze, Me) {
|
|
50950
50993
|
Ae === null && (Ae = Function.prototype);
|
|
50951
50994
|
var Ne = Object.getOwnPropertyDescriptor(Ae, ze);
|
|
50952
50995
|
if (Ne === void 0) {
|
|
50953
50996
|
var We = Object.getPrototypeOf(Ae);
|
|
50954
|
-
return We === null ? void 0 : Ie(We, ze,
|
|
50997
|
+
return We === null ? void 0 : Ie(We, ze, Me);
|
|
50955
50998
|
} else {
|
|
50956
50999
|
if ("value" in Ne)
|
|
50957
51000
|
return Ne.value;
|
|
50958
51001
|
var Ge = Ne.get;
|
|
50959
|
-
return Ge === void 0 ? void 0 : Ge.call(
|
|
51002
|
+
return Ge === void 0 ? void 0 : Ge.call(Me);
|
|
50960
51003
|
}
|
|
50961
51004
|
}, de = /* @__PURE__ */ (function() {
|
|
50962
51005
|
function Ie(Ae, ze) {
|
|
50963
|
-
for (var
|
|
50964
|
-
var Ne = ze[
|
|
51006
|
+
for (var Me = 0; Me < ze.length; Me++) {
|
|
51007
|
+
var Ne = ze[Me];
|
|
50965
51008
|
Ne.enumerable = Ne.enumerable || !1, Ne.configurable = !0, "value" in Ne && (Ne.writable = !0), Object.defineProperty(Ae, Ne.key, Ne);
|
|
50966
51009
|
}
|
|
50967
51010
|
}
|
|
50968
|
-
return function(Ae, ze,
|
|
50969
|
-
return ze && Ie(Ae.prototype, ze),
|
|
51011
|
+
return function(Ae, ze, Me) {
|
|
51012
|
+
return ze && Ie(Ae.prototype, ze), Me && Ie(Ae, Me), Ae;
|
|
50970
51013
|
};
|
|
50971
51014
|
})(), ce = re(3), ue = Se(ce), he = re(8), pe = Se(he), fe = re(44), be = Se(fe), me = re(27), ge = Se(me), ve = re(15), _e = re(42), ye = Se(_e);
|
|
50972
51015
|
function Se(Ie) {
|
|
@@ -50986,23 +51029,23 @@ function requireQuill() {
|
|
|
50986
51029
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
|
|
50987
51030
|
Ie.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, Ae) : Ie.__proto__ = Ae);
|
|
50988
51031
|
}
|
|
50989
|
-
var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]],
|
|
51032
|
+
var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Pe = (function(Ie) {
|
|
50990
51033
|
qe(Ae, Ie);
|
|
50991
|
-
function Ae(ze,
|
|
50992
|
-
we(this, Ae),
|
|
50993
|
-
var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze,
|
|
51034
|
+
function Ae(ze, Me) {
|
|
51035
|
+
we(this, Ae), Me.modules.toolbar != null && Me.modules.toolbar.container == null && (Me.modules.toolbar.container = De);
|
|
51036
|
+
var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze, Me));
|
|
50994
51037
|
return Ne.quill.container.classList.add("ql-snow"), Ne;
|
|
50995
51038
|
}
|
|
50996
51039
|
return de(Ae, [{
|
|
50997
51040
|
key: "extendToolbar",
|
|
50998
|
-
value: function(
|
|
50999
|
-
|
|
51000
|
-
|
|
51041
|
+
value: function(Me) {
|
|
51042
|
+
Me.container.classList.add("ql-snow"), this.buildButtons([].slice.call(Me.container.querySelectorAll("button")), ye.default), this.buildPickers([].slice.call(Me.container.querySelectorAll("select")), ye.default), this.tooltip = new He(this.quill, this.options.bounds), Me.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({ key: "K", shortKey: !0 }, function(Ne, We) {
|
|
51043
|
+
Me.handlers.link.call(Me, !We.format.link);
|
|
51001
51044
|
});
|
|
51002
51045
|
}
|
|
51003
51046
|
}]), Ae;
|
|
51004
51047
|
})(be.default);
|
|
51005
|
-
|
|
51048
|
+
Pe.DEFAULTS = (0, ue.default)(!0, {}, be.default.DEFAULTS, {
|
|
51006
51049
|
modules: {
|
|
51007
51050
|
toolbar: {
|
|
51008
51051
|
handlers: {
|
|
@@ -51010,10 +51053,10 @@ function requireQuill() {
|
|
|
51010
51053
|
if (Ae) {
|
|
51011
51054
|
var ze = this.quill.getSelection();
|
|
51012
51055
|
if (ze == null || ze.length == 0) return;
|
|
51013
|
-
var
|
|
51014
|
-
/^\S+@\S+\.\S+$/.test(
|
|
51056
|
+
var Me = this.quill.getText(ze);
|
|
51057
|
+
/^\S+@\S+\.\S+$/.test(Me) && Me.indexOf("mailto:") !== 0 && (Me = "mailto:" + Me);
|
|
51015
51058
|
var Ne = this.quill.theme.tooltip;
|
|
51016
|
-
Ne.edit("link",
|
|
51059
|
+
Ne.edit("link", Me);
|
|
51017
51060
|
} else
|
|
51018
51061
|
this.quill.format("link", !1);
|
|
51019
51062
|
}
|
|
@@ -51023,36 +51066,36 @@ function requireQuill() {
|
|
|
51023
51066
|
});
|
|
51024
51067
|
var He = (function(Ie) {
|
|
51025
51068
|
qe(Ae, Ie);
|
|
51026
|
-
function Ae(ze,
|
|
51069
|
+
function Ae(ze, Me) {
|
|
51027
51070
|
we(this, Ae);
|
|
51028
|
-
var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze,
|
|
51071
|
+
var Ne = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, ze, Me));
|
|
51029
51072
|
return Ne.preview = Ne.root.querySelector("a.ql-preview"), Ne;
|
|
51030
51073
|
}
|
|
51031
51074
|
return de(Ae, [{
|
|
51032
51075
|
key: "listen",
|
|
51033
51076
|
value: function() {
|
|
51034
|
-
var
|
|
51077
|
+
var Me = this;
|
|
51035
51078
|
ne(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "listen", this).call(this), this.root.querySelector("a.ql-action").addEventListener("click", function(Ne) {
|
|
51036
|
-
|
|
51079
|
+
Me.root.classList.contains("ql-editing") ? Me.save() : Me.edit("link", Me.preview.textContent), Ne.preventDefault();
|
|
51037
51080
|
}), this.root.querySelector("a.ql-remove").addEventListener("click", function(Ne) {
|
|
51038
|
-
if (
|
|
51039
|
-
var We =
|
|
51040
|
-
|
|
51081
|
+
if (Me.linkRange != null) {
|
|
51082
|
+
var We = Me.linkRange;
|
|
51083
|
+
Me.restoreFocus(), Me.quill.formatText(We, "link", !1, pe.default.sources.USER), delete Me.linkRange;
|
|
51041
51084
|
}
|
|
51042
|
-
Ne.preventDefault(),
|
|
51085
|
+
Ne.preventDefault(), Me.hide();
|
|
51043
51086
|
}), this.quill.on(pe.default.events.SELECTION_CHANGE, function(Ne, We, Ge) {
|
|
51044
51087
|
if (Ne != null) {
|
|
51045
51088
|
if (Ne.length === 0 && Ge === pe.default.sources.USER) {
|
|
51046
|
-
var Ke =
|
|
51089
|
+
var Ke = Me.quill.scroll.descendant(ge.default, Ne.index), ft = oe(Ke, 2), Je = ft[0], Ze = ft[1];
|
|
51047
51090
|
if (Je != null) {
|
|
51048
|
-
|
|
51091
|
+
Me.linkRange = new ve.Range(Ne.index - Ze, Je.length());
|
|
51049
51092
|
var Le = ge.default.formats(Je.domNode);
|
|
51050
|
-
|
|
51093
|
+
Me.preview.textContent = Le, Me.preview.setAttribute("href", Le), Me.show(), Me.position(Me.quill.getBounds(Me.linkRange));
|
|
51051
51094
|
return;
|
|
51052
51095
|
}
|
|
51053
51096
|
} else
|
|
51054
|
-
delete
|
|
51055
|
-
|
|
51097
|
+
delete Me.linkRange;
|
|
51098
|
+
Me.hide();
|
|
51056
51099
|
}
|
|
51057
51100
|
});
|
|
51058
51101
|
}
|
|
@@ -51063,7 +51106,7 @@ function requireQuill() {
|
|
|
51063
51106
|
}
|
|
51064
51107
|
}]), Ae;
|
|
51065
51108
|
})(fe.BaseTooltip);
|
|
51066
|
-
He.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), te.default =
|
|
51109
|
+
He.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), te.default = Pe;
|
|
51067
51110
|
}),
|
|
51068
51111
|
/* 64 */
|
|
51069
51112
|
/***/
|
|
@@ -51071,7 +51114,7 @@ function requireQuill() {
|
|
|
51071
51114
|
Object.defineProperty(te, "__esModule", {
|
|
51072
51115
|
value: !0
|
|
51073
51116
|
});
|
|
51074
|
-
var oe = re(29), ne = wt(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = wt(he), fe = re(67), be = wt(fe), me = re(68), ge = wt(me), ve = re(38), _e = re(26), ye = re(40), Se = re(41), we = re(57), Ce = wt(we), qe = re(69), De = wt(qe),
|
|
51117
|
+
var oe = re(29), ne = wt(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = wt(he), fe = re(67), be = wt(fe), me = re(68), ge = wt(me), ve = re(38), _e = re(26), ye = re(40), Se = re(41), we = re(57), Ce = wt(we), qe = re(69), De = wt(qe), Pe = re(27), He = wt(Pe), Ie = re(70), Ae = wt(Ie), ze = re(71), Me = wt(ze), Ne = re(72), We = wt(Ne), Ge = re(73), Ke = wt(Ge), ft = re(74), Je = wt(ft), Ze = re(13), Le = wt(Ze), Ue = re(75), Ve = wt(Ue), Qe = re(76), Xe = wt(Qe), Be = re(58), Ye = wt(Be), rt = re(42), ot = wt(rt), _t = re(28), kt = wt(_t), It = re(60), zt = wt(It), Nt = re(61), Bt = wt(Nt), rs = re(62), Yt = wt(rs), gt = re(109), mt = wt(gt), xt = re(63), Ct = wt(xt);
|
|
51075
51118
|
function wt(Lt) {
|
|
51076
51119
|
return Lt && Lt.__esModule ? Lt : { default: Lt };
|
|
51077
51120
|
}
|
|
@@ -51106,7 +51149,7 @@ function requireQuill() {
|
|
|
51106
51149
|
"formats/italic": De.default,
|
|
51107
51150
|
"formats/link": He.default,
|
|
51108
51151
|
"formats/script": Ae.default,
|
|
51109
|
-
"formats/strike":
|
|
51152
|
+
"formats/strike": Me.default,
|
|
51110
51153
|
"formats/underline": We.default,
|
|
51111
51154
|
"formats/image": Ke.default,
|
|
51112
51155
|
"formats/video": Je.default,
|
|
@@ -51290,8 +51333,8 @@ function requireQuill() {
|
|
|
51290
51333
|
var oe = /* @__PURE__ */ (function() {
|
|
51291
51334
|
function we(Ce, qe) {
|
|
51292
51335
|
for (var De = 0; De < qe.length; De++) {
|
|
51293
|
-
var
|
|
51294
|
-
|
|
51336
|
+
var Pe = qe[De];
|
|
51337
|
+
Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(Ce, Pe.key, Pe);
|
|
51295
51338
|
}
|
|
51296
51339
|
}
|
|
51297
51340
|
return function(Ce, qe, De) {
|
|
@@ -51299,14 +51342,14 @@ function requireQuill() {
|
|
|
51299
51342
|
};
|
|
51300
51343
|
})(), ne = function we(Ce, qe, De) {
|
|
51301
51344
|
Ce === null && (Ce = Function.prototype);
|
|
51302
|
-
var
|
|
51303
|
-
if (
|
|
51345
|
+
var Pe = Object.getOwnPropertyDescriptor(Ce, qe);
|
|
51346
|
+
if (Pe === void 0) {
|
|
51304
51347
|
var He = Object.getPrototypeOf(Ce);
|
|
51305
51348
|
return He === null ? void 0 : we(He, qe, De);
|
|
51306
51349
|
} else {
|
|
51307
|
-
if ("value" in
|
|
51308
|
-
return
|
|
51309
|
-
var Ie =
|
|
51350
|
+
if ("value" in Pe)
|
|
51351
|
+
return Pe.value;
|
|
51352
|
+
var Ie = Pe.get;
|
|
51310
51353
|
return Ie === void 0 ? void 0 : Ie.call(De);
|
|
51311
51354
|
}
|
|
51312
51355
|
}, de = re(0), ce = be(de), ue = re(4), he = be(ue), pe = re(25), fe = be(pe);
|
|
@@ -51337,8 +51380,8 @@ function requireQuill() {
|
|
|
51337
51380
|
}
|
|
51338
51381
|
return oe(Ce, [{
|
|
51339
51382
|
key: "format",
|
|
51340
|
-
value: function(De,
|
|
51341
|
-
De === Se.blotName && !
|
|
51383
|
+
value: function(De, Pe) {
|
|
51384
|
+
De === Se.blotName && !Pe ? this.replaceWith(ce.default.create(this.statics.scope)) : ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "format", this).call(this, De, Pe);
|
|
51342
51385
|
}
|
|
51343
51386
|
}, {
|
|
51344
51387
|
key: "remove",
|
|
@@ -51347,8 +51390,8 @@ function requireQuill() {
|
|
|
51347
51390
|
}
|
|
51348
51391
|
}, {
|
|
51349
51392
|
key: "replaceWith",
|
|
51350
|
-
value: function(De,
|
|
51351
|
-
return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De,
|
|
51393
|
+
value: function(De, Pe) {
|
|
51394
|
+
return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De, Pe), this) : (this.parent.unwrap(), ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replaceWith", this).call(this, De, Pe));
|
|
51352
51395
|
}
|
|
51353
51396
|
}], [{
|
|
51354
51397
|
key: "formats",
|
|
@@ -51362,7 +51405,7 @@ function requireQuill() {
|
|
|
51362
51405
|
_e(Ce, we), oe(Ce, null, [{
|
|
51363
51406
|
key: "create",
|
|
51364
51407
|
value: function(De) {
|
|
51365
|
-
var
|
|
51408
|
+
var Pe = De === "ordered" ? "OL" : "UL", He = ne(Ce.__proto__ || Object.getPrototypeOf(Ce), "create", this).call(this, Pe);
|
|
51366
51409
|
return (De === "checked" || De === "unchecked") && He.setAttribute("data-checked", De === "checked"), He;
|
|
51367
51410
|
}
|
|
51368
51411
|
}, {
|
|
@@ -51375,18 +51418,18 @@ function requireQuill() {
|
|
|
51375
51418
|
}]);
|
|
51376
51419
|
function Ce(qe) {
|
|
51377
51420
|
ge(this, Ce);
|
|
51378
|
-
var De = ve(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this, qe)),
|
|
51421
|
+
var De = ve(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this, qe)), Pe = function(Ie) {
|
|
51379
51422
|
if (Ie.target.parentNode === qe) {
|
|
51380
51423
|
var Ae = De.statics.formats(qe), ze = ce.default.find(Ie.target);
|
|
51381
51424
|
Ae === "checked" ? ze.format("list", "unchecked") : Ae === "unchecked" && ze.format("list", "checked");
|
|
51382
51425
|
}
|
|
51383
51426
|
};
|
|
51384
|
-
return qe.addEventListener("touchstart",
|
|
51427
|
+
return qe.addEventListener("touchstart", Pe), qe.addEventListener("mousedown", Pe), De;
|
|
51385
51428
|
}
|
|
51386
51429
|
return oe(Ce, [{
|
|
51387
51430
|
key: "format",
|
|
51388
|
-
value: function(De,
|
|
51389
|
-
this.children.length > 0 && this.children.tail.format(De,
|
|
51431
|
+
value: function(De, Pe) {
|
|
51432
|
+
this.children.length > 0 && this.children.tail.format(De, Pe);
|
|
51390
51433
|
}
|
|
51391
51434
|
}, {
|
|
51392
51435
|
key: "formats",
|
|
@@ -51395,11 +51438,11 @@ function requireQuill() {
|
|
|
51395
51438
|
}
|
|
51396
51439
|
}, {
|
|
51397
51440
|
key: "insertBefore",
|
|
51398
|
-
value: function(De,
|
|
51441
|
+
value: function(De, Pe) {
|
|
51399
51442
|
if (De instanceof ye)
|
|
51400
|
-
ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, De,
|
|
51443
|
+
ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, De, Pe);
|
|
51401
51444
|
else {
|
|
51402
|
-
var He =
|
|
51445
|
+
var He = Pe == null ? this.length() : Pe.offset(this), Ie = this.split(He);
|
|
51403
51446
|
Ie.parent.insertBefore(De, Ie);
|
|
51404
51447
|
}
|
|
51405
51448
|
}
|
|
@@ -51407,15 +51450,15 @@ function requireQuill() {
|
|
|
51407
51450
|
key: "optimize",
|
|
51408
51451
|
value: function(De) {
|
|
51409
51452
|
ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "optimize", this).call(this, De);
|
|
51410
|
-
var
|
|
51411
|
-
|
|
51453
|
+
var Pe = this.next;
|
|
51454
|
+
Pe != null && Pe.prev === this && Pe.statics.blotName === this.statics.blotName && Pe.domNode.tagName === this.domNode.tagName && Pe.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (Pe.moveChildren(this), Pe.remove());
|
|
51412
51455
|
}
|
|
51413
51456
|
}, {
|
|
51414
51457
|
key: "replace",
|
|
51415
51458
|
value: function(De) {
|
|
51416
51459
|
if (De.statics.blotName !== this.statics.blotName) {
|
|
51417
|
-
var
|
|
51418
|
-
De.moveChildren(
|
|
51460
|
+
var Pe = ce.default.create(this.statics.defaultChild);
|
|
51461
|
+
De.moveChildren(Pe), this.appendChild(Pe);
|
|
51419
51462
|
}
|
|
51420
51463
|
ne(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replace", this).call(this, De);
|
|
51421
51464
|
}
|
|
@@ -51779,8 +51822,8 @@ function requireQuill() {
|
|
|
51779
51822
|
we === null && (we = Function.prototype);
|
|
51780
51823
|
var De = Object.getOwnPropertyDescriptor(we, Ce);
|
|
51781
51824
|
if (De === void 0) {
|
|
51782
|
-
var
|
|
51783
|
-
return
|
|
51825
|
+
var Pe = Object.getPrototypeOf(we);
|
|
51826
|
+
return Pe === null ? void 0 : Se(Pe, Ce, qe);
|
|
51784
51827
|
} else {
|
|
51785
51828
|
if ("value" in De)
|
|
51786
51829
|
return De.value;
|
|
@@ -51852,21 +51895,21 @@ function requireQuill() {
|
|
|
51852
51895
|
value: !0
|
|
51853
51896
|
}), te.default = te.CodeToken = te.CodeBlock = void 0;
|
|
51854
51897
|
var oe = /* @__PURE__ */ (function() {
|
|
51855
|
-
function qe(De,
|
|
51856
|
-
for (var He = 0; He <
|
|
51857
|
-
var Ie =
|
|
51898
|
+
function qe(De, Pe) {
|
|
51899
|
+
for (var He = 0; He < Pe.length; He++) {
|
|
51900
|
+
var Ie = Pe[He];
|
|
51858
51901
|
Ie.enumerable = Ie.enumerable || !1, Ie.configurable = !0, "value" in Ie && (Ie.writable = !0), Object.defineProperty(De, Ie.key, Ie);
|
|
51859
51902
|
}
|
|
51860
51903
|
}
|
|
51861
|
-
return function(De,
|
|
51862
|
-
return
|
|
51904
|
+
return function(De, Pe, He) {
|
|
51905
|
+
return Pe && qe(De.prototype, Pe), He && qe(De, He), De;
|
|
51863
51906
|
};
|
|
51864
|
-
})(), ne = function qe(De,
|
|
51907
|
+
})(), ne = function qe(De, Pe, He) {
|
|
51865
51908
|
De === null && (De = Function.prototype);
|
|
51866
|
-
var Ie = Object.getOwnPropertyDescriptor(De,
|
|
51909
|
+
var Ie = Object.getOwnPropertyDescriptor(De, Pe);
|
|
51867
51910
|
if (Ie === void 0) {
|
|
51868
51911
|
var Ae = Object.getPrototypeOf(De);
|
|
51869
|
-
return Ae === null ? void 0 : qe(Ae,
|
|
51912
|
+
return Ae === null ? void 0 : qe(Ae, Pe, He);
|
|
51870
51913
|
} else {
|
|
51871
51914
|
if ("value" in Ie)
|
|
51872
51915
|
return Ie.value;
|
|
@@ -51919,9 +51962,9 @@ function requireQuill() {
|
|
|
51919
51962
|
he.default.register(we, !0), he.default.register(Se, !0);
|
|
51920
51963
|
}
|
|
51921
51964
|
}]);
|
|
51922
|
-
function De(
|
|
51965
|
+
function De(Pe, He) {
|
|
51923
51966
|
ve(this, De);
|
|
51924
|
-
var Ie = _e(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this,
|
|
51967
|
+
var Ie = _e(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this, Pe, He));
|
|
51925
51968
|
if (typeof Ie.options.highlight != "function")
|
|
51926
51969
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
51927
51970
|
var Ae = null;
|
|
@@ -52121,95 +52164,95 @@ function requireQuill() {
|
|
|
52121
52164
|
Object.defineProperty(te, "__esModule", {
|
|
52122
52165
|
value: !0
|
|
52123
52166
|
}), te.default = te.BubbleTooltip = void 0;
|
|
52124
|
-
var oe = function De(
|
|
52125
|
-
|
|
52126
|
-
var Ae = Object.getOwnPropertyDescriptor(
|
|
52167
|
+
var oe = function De(Pe, He, Ie) {
|
|
52168
|
+
Pe === null && (Pe = Function.prototype);
|
|
52169
|
+
var Ae = Object.getOwnPropertyDescriptor(Pe, He);
|
|
52127
52170
|
if (Ae === void 0) {
|
|
52128
|
-
var ze = Object.getPrototypeOf(
|
|
52171
|
+
var ze = Object.getPrototypeOf(Pe);
|
|
52129
52172
|
return ze === null ? void 0 : De(ze, He, Ie);
|
|
52130
52173
|
} else {
|
|
52131
52174
|
if ("value" in Ae)
|
|
52132
52175
|
return Ae.value;
|
|
52133
|
-
var
|
|
52134
|
-
return
|
|
52176
|
+
var Me = Ae.get;
|
|
52177
|
+
return Me === void 0 ? void 0 : Me.call(Ie);
|
|
52135
52178
|
}
|
|
52136
52179
|
}, ne = /* @__PURE__ */ (function() {
|
|
52137
|
-
function De(
|
|
52180
|
+
function De(Pe, He) {
|
|
52138
52181
|
for (var Ie = 0; Ie < He.length; Ie++) {
|
|
52139
52182
|
var Ae = He[Ie];
|
|
52140
|
-
Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(
|
|
52183
|
+
Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(Pe, Ae.key, Ae);
|
|
52141
52184
|
}
|
|
52142
52185
|
}
|
|
52143
|
-
return function(
|
|
52144
|
-
return He && De(
|
|
52186
|
+
return function(Pe, He, Ie) {
|
|
52187
|
+
return He && De(Pe.prototype, He), Ie && De(Pe, Ie), Pe;
|
|
52145
52188
|
};
|
|
52146
52189
|
})(), de = re(3), ce = ve(de), ue = re(8), he = ve(ue), pe = re(44), fe = ve(pe), be = re(15), me = re(42), ge = ve(me);
|
|
52147
52190
|
function ve(De) {
|
|
52148
52191
|
return De && De.__esModule ? De : { default: De };
|
|
52149
52192
|
}
|
|
52150
|
-
function _e(De,
|
|
52151
|
-
if (!(De instanceof
|
|
52193
|
+
function _e(De, Pe) {
|
|
52194
|
+
if (!(De instanceof Pe))
|
|
52152
52195
|
throw new TypeError("Cannot call a class as a function");
|
|
52153
52196
|
}
|
|
52154
|
-
function ye(De,
|
|
52197
|
+
function ye(De, Pe) {
|
|
52155
52198
|
if (!De)
|
|
52156
52199
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
52157
|
-
return
|
|
52200
|
+
return Pe && (typeof Pe == "object" || typeof Pe == "function") ? Pe : De;
|
|
52158
52201
|
}
|
|
52159
|
-
function Se(De,
|
|
52160
|
-
if (typeof
|
|
52161
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
52162
|
-
De.prototype = Object.create(
|
|
52202
|
+
function Se(De, Pe) {
|
|
52203
|
+
if (typeof Pe != "function" && Pe !== null)
|
|
52204
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Pe);
|
|
52205
|
+
De.prototype = Object.create(Pe && Pe.prototype, { constructor: { value: De, enumerable: !1, writable: !0, configurable: !0 } }), Pe && (Object.setPrototypeOf ? Object.setPrototypeOf(De, Pe) : De.__proto__ = Pe);
|
|
52163
52206
|
}
|
|
52164
52207
|
var we = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Ce = (function(De) {
|
|
52165
|
-
Se(
|
|
52166
|
-
function
|
|
52167
|
-
_e(this,
|
|
52168
|
-
var Ae = ye(this, (
|
|
52208
|
+
Se(Pe, De);
|
|
52209
|
+
function Pe(He, Ie) {
|
|
52210
|
+
_e(this, Pe), Ie.modules.toolbar != null && Ie.modules.toolbar.container == null && (Ie.modules.toolbar.container = we);
|
|
52211
|
+
var Ae = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, He, Ie));
|
|
52169
52212
|
return Ae.quill.container.classList.add("ql-bubble"), Ae;
|
|
52170
52213
|
}
|
|
52171
|
-
return ne(
|
|
52214
|
+
return ne(Pe, [{
|
|
52172
52215
|
key: "extendToolbar",
|
|
52173
52216
|
value: function(Ie) {
|
|
52174
52217
|
this.tooltip = new qe(this.quill, this.options.bounds), this.tooltip.root.appendChild(Ie.container), this.buildButtons([].slice.call(Ie.container.querySelectorAll("button")), ge.default), this.buildPickers([].slice.call(Ie.container.querySelectorAll("select")), ge.default);
|
|
52175
52218
|
}
|
|
52176
|
-
}]),
|
|
52219
|
+
}]), Pe;
|
|
52177
52220
|
})(fe.default);
|
|
52178
52221
|
Ce.DEFAULTS = (0, ce.default)(!0, {}, fe.default.DEFAULTS, {
|
|
52179
52222
|
modules: {
|
|
52180
52223
|
toolbar: {
|
|
52181
52224
|
handlers: {
|
|
52182
|
-
link: function(
|
|
52183
|
-
|
|
52225
|
+
link: function(Pe) {
|
|
52226
|
+
Pe ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
|
|
52184
52227
|
}
|
|
52185
52228
|
}
|
|
52186
52229
|
}
|
|
52187
52230
|
}
|
|
52188
52231
|
});
|
|
52189
52232
|
var qe = (function(De) {
|
|
52190
|
-
Se(
|
|
52191
|
-
function
|
|
52192
|
-
_e(this,
|
|
52193
|
-
var Ae = ye(this, (
|
|
52194
|
-
return Ae.quill.on(he.default.events.EDITOR_CHANGE, function(ze,
|
|
52233
|
+
Se(Pe, De);
|
|
52234
|
+
function Pe(He, Ie) {
|
|
52235
|
+
_e(this, Pe);
|
|
52236
|
+
var Ae = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, He, Ie));
|
|
52237
|
+
return Ae.quill.on(he.default.events.EDITOR_CHANGE, function(ze, Me, Ne, We) {
|
|
52195
52238
|
if (ze === he.default.events.SELECTION_CHANGE)
|
|
52196
|
-
if (
|
|
52239
|
+
if (Me != null && Me.length > 0 && We === he.default.sources.USER) {
|
|
52197
52240
|
Ae.show(), Ae.root.style.left = "0px", Ae.root.style.width = "", Ae.root.style.width = Ae.root.offsetWidth + "px";
|
|
52198
|
-
var Ge = Ae.quill.getLines(
|
|
52241
|
+
var Ge = Ae.quill.getLines(Me.index, Me.length);
|
|
52199
52242
|
if (Ge.length === 1)
|
|
52200
|
-
Ae.position(Ae.quill.getBounds(
|
|
52243
|
+
Ae.position(Ae.quill.getBounds(Me));
|
|
52201
52244
|
else {
|
|
52202
|
-
var Ke = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ke), Je = Math.min(Ke.length() - 1,
|
|
52245
|
+
var Ke = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ke), Je = Math.min(Ke.length() - 1, Me.index + Me.length - ft), Ze = Ae.quill.getBounds(new be.Range(ft, Je));
|
|
52203
52246
|
Ae.position(Ze);
|
|
52204
52247
|
}
|
|
52205
52248
|
} else document.activeElement !== Ae.textbox && Ae.quill.hasFocus() && Ae.hide();
|
|
52206
52249
|
}), Ae;
|
|
52207
52250
|
}
|
|
52208
|
-
return ne(
|
|
52251
|
+
return ne(Pe, [{
|
|
52209
52252
|
key: "listen",
|
|
52210
52253
|
value: function() {
|
|
52211
52254
|
var Ie = this;
|
|
52212
|
-
oe(
|
|
52255
|
+
oe(Pe.prototype.__proto__ || Object.getPrototypeOf(Pe.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
|
|
52213
52256
|
Ie.root.classList.remove("ql-editing");
|
|
52214
52257
|
}), this.quill.on(he.default.events.SCROLL_OPTIMIZE, function() {
|
|
52215
52258
|
setTimeout(function() {
|
|
@@ -52228,11 +52271,11 @@ function requireQuill() {
|
|
|
52228
52271
|
}, {
|
|
52229
52272
|
key: "position",
|
|
52230
52273
|
value: function(Ie) {
|
|
52231
|
-
var Ae = oe(
|
|
52274
|
+
var Ae = oe(Pe.prototype.__proto__ || Object.getPrototypeOf(Pe.prototype), "position", this).call(this, Ie), ze = this.root.querySelector(".ql-tooltip-arrow");
|
|
52232
52275
|
if (ze.style.marginLeft = "", Ae === 0) return Ae;
|
|
52233
52276
|
ze.style.marginLeft = -1 * Ae - ze.offsetWidth / 2 + "px";
|
|
52234
52277
|
}
|
|
52235
|
-
}]),
|
|
52278
|
+
}]), Pe;
|
|
52236
52279
|
})(pe.BaseTooltip);
|
|
52237
52280
|
qe.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), te.BubbleTooltip = qe, te.default = Ce;
|
|
52238
52281
|
}),
|
|
@@ -53316,7 +53359,7 @@ const commonNavMenuItems = [
|
|
|
53316
53359
|
d$z
|
|
53317
53360
|
), useSharedUI(), useComponents(), useInternalViews();
|
|
53318
53361
|
}, initializeShell = (J, W) => {
|
|
53319
|
-
W && shellApi.contextManager.initializeContext(W), useLocalization(shellApi), useUI(), useFeatures(shellApi);
|
|
53362
|
+
W && shellApi.contextManager.initializeContext(W), activityMonitor.start(), sessionRefreshTimer.start(), useLocalization(shellApi), useUI(), useFeatures(shellApi);
|
|
53320
53363
|
const X = new PrimariaShell();
|
|
53321
53364
|
J.appendChild(X);
|
|
53322
53365
|
};
|
|
@@ -53345,6 +53388,8 @@ if (typeof document < "u") {
|
|
|
53345
53388
|
` + dssCSS, document.head.appendChild(J);
|
|
53346
53389
|
}
|
|
53347
53390
|
export {
|
|
53391
|
+
l as A,
|
|
53392
|
+
PrimariaInteractionService as B,
|
|
53348
53393
|
EcapEventManager as E,
|
|
53349
53394
|
PrimariaNavItem as P,
|
|
53350
53395
|
QuickActionItem as Q,
|
|
@@ -53370,9 +53415,9 @@ export {
|
|
|
53370
53415
|
translate$1 as t,
|
|
53371
53416
|
disposePlugins as u,
|
|
53372
53417
|
PrimariaRegionHost as v,
|
|
53373
|
-
|
|
53374
|
-
|
|
53375
|
-
|
|
53376
|
-
|
|
53418
|
+
activityMonitor as w,
|
|
53419
|
+
sessionRefreshTimer as x,
|
|
53420
|
+
primariaApiFactory as y,
|
|
53421
|
+
PrimariaContentSwitcher as z
|
|
53377
53422
|
};
|
|
53378
|
-
//# sourceMappingURL=index-
|
|
53423
|
+
//# sourceMappingURL=index-BPXzFbQm.js.map
|