@uxland/primary-shell 7.36.5 → 7.37.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-7bqKJyj2.js → component-TkztHTPe.js} +2 -2
- package/dist/{component-7bqKJyj2.js.map → component-TkztHTPe.js.map} +1 -1
- package/dist/{index-DLCb2LJy.js → index-DT9s-B7p.js} +345 -334
- package/dist/index-DT9s-B7p.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +36 -36
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/api/ecap-event-manager/ecap-event-manager.d.ts +9 -5
- package/dist/primary/shell/src/api/ecap-event-manager/typings.d.ts +2 -1
- package/package.json +1 -1
- package/src/api/api.ts +1 -1
- package/src/api/ecap-event-manager/ecap-event-manager.test.ts +57 -12
- package/src/api/ecap-event-manager/ecap-event-manager.ts +27 -8
- package/src/api/ecap-event-manager/typings.ts +2 -1
- package/dist/index-DLCb2LJy.js.map +0 -1
|
@@ -68,7 +68,7 @@ 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 :
|
|
71
|
+
}, fe = Object.getPrototypeOf(Function), be = typeof Map == "function" && typeof Map.prototype.entries == "function" ? Map : Zt(), 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 = Ft(), we = zt(_e);
|
|
72
72
|
function Se(it, nt, vt, St) {
|
|
73
73
|
if (Ue(vt)) {
|
|
74
74
|
if (!It(it))
|
|
@@ -119,7 +119,7 @@ function require_Reflect() {
|
|
|
119
119
|
function Fe(it, nt, vt) {
|
|
120
120
|
if (!Ve(nt))
|
|
121
121
|
throw new TypeError();
|
|
122
|
-
return Ue(vt) || (vt = kt(vt)),
|
|
122
|
+
return Ue(vt) || (vt = kt(vt)), Ze(it, nt, vt);
|
|
123
123
|
}
|
|
124
124
|
X("getMetadata", Fe);
|
|
125
125
|
function He(it, nt, vt) {
|
|
@@ -131,7 +131,7 @@ function require_Reflect() {
|
|
|
131
131
|
function Ie(it, nt) {
|
|
132
132
|
if (!Ve(it))
|
|
133
133
|
throw new TypeError();
|
|
134
|
-
return Ue(nt) || (nt = kt(nt)),
|
|
134
|
+
return Ue(nt) || (nt = kt(nt)), Ke(it, nt);
|
|
135
135
|
}
|
|
136
136
|
X("getMetadataKeys", Ie);
|
|
137
137
|
function Ae(it, nt) {
|
|
@@ -193,13 +193,13 @@ function require_Reflect() {
|
|
|
193
193
|
);
|
|
194
194
|
return Ue(St) ? !1 : ot(St.OrdinaryHasOwnMetadata(it, nt, vt));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ze(it, nt, vt) {
|
|
197
197
|
var St = Ge(it, nt, vt);
|
|
198
198
|
if (St)
|
|
199
199
|
return ft(it, nt, vt);
|
|
200
200
|
var Pt = $t(nt);
|
|
201
201
|
if (!Je(Pt))
|
|
202
|
-
return
|
|
202
|
+
return Ze(it, Pt, vt);
|
|
203
203
|
}
|
|
204
204
|
function ft(it, nt, vt) {
|
|
205
205
|
var St = ds(
|
|
@@ -220,11 +220,11 @@ function require_Reflect() {
|
|
|
220
220
|
);
|
|
221
221
|
Pt.OrdinaryDefineOwnMetadata(it, nt, vt, St);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Ke(it, nt) {
|
|
224
224
|
var vt = Me(it, nt), St = $t(it);
|
|
225
225
|
if (St === null)
|
|
226
226
|
return vt;
|
|
227
|
-
var Pt =
|
|
227
|
+
var Pt = Ke(St, nt);
|
|
228
228
|
if (Pt.length <= 0)
|
|
229
229
|
return vt;
|
|
230
230
|
if (vt.length <= 0)
|
|
@@ -597,7 +597,7 @@ function require_Reflect() {
|
|
|
597
597
|
throw new Error("Illegal state.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Zt() {
|
|
601
601
|
var it = {}, nt = [], vt = (
|
|
602
602
|
/** @class */
|
|
603
603
|
(function() {
|
|
@@ -3483,13 +3483,24 @@ const createDynamicRequestHandler = (J) => {
|
|
|
3483
3483
|
}
|
|
3484
3484
|
}`
|
|
3485
3485
|
)(J);
|
|
3486
|
-
}, createBroker = () => new Broker()
|
|
3486
|
+
}, createBroker = () => new Broker(), LAST_WORKED_DIAGNOSTICS_KEY = "lastWorkedDiagnostics", EVENTS_WITH_DIAGNOSTICS = [
|
|
3487
|
+
"PROVES_ORDRES_CLINIQUES_CONSULTAR",
|
|
3488
|
+
"RESULT_OC",
|
|
3489
|
+
"LABORATORI_SEROTECA_PETICIO_CONSULTA",
|
|
3490
|
+
"ORDRE_TRACTAMENT",
|
|
3491
|
+
"PRESCRIPCIO_ACTIVA",
|
|
3492
|
+
"REV_IT",
|
|
3493
|
+
"OC_EXPRES"
|
|
3494
|
+
];
|
|
3487
3495
|
class EcapEventManager {
|
|
3488
3496
|
}
|
|
3489
3497
|
class EcapEventManagerImpl {
|
|
3498
|
+
constructor(W) {
|
|
3499
|
+
this.globalStateManager = W;
|
|
3500
|
+
}
|
|
3490
3501
|
publish(W, X, te) {
|
|
3491
3502
|
const re = this.createEcapEvent(W, X, te ?? {});
|
|
3492
|
-
this.raiseEcapEvent(re);
|
|
3503
|
+
EVENTS_WITH_DIAGNOSTICS.includes(W) && (re.diagnostics = this.globalStateManager.getData(LAST_WORKED_DIAGNOSTICS_KEY) ?? []), this.raiseEcapEvent(re);
|
|
3493
3504
|
}
|
|
3494
3505
|
createEcapEvent(W, X, te) {
|
|
3495
3506
|
return {
|
|
@@ -3502,7 +3513,7 @@ class EcapEventManagerImpl {
|
|
|
3502
3513
|
window.parent && window.parent.postMessage(JSON.stringify(W), "*"), console.log("method", JSON.stringify(W));
|
|
3503
3514
|
}
|
|
3504
3515
|
}
|
|
3505
|
-
const
|
|
3516
|
+
const createEcapEventManager = (J) => new EcapEventManagerImpl(J);
|
|
3506
3517
|
class PrimariaGlobalStateManagerImpl {
|
|
3507
3518
|
constructor(W) {
|
|
3508
3519
|
this.broker = W, this.state = {};
|
|
@@ -4793,7 +4804,7 @@ const resolveConfig = (J) => {
|
|
|
4793
4804
|
}
|
|
4794
4805
|
}
|
|
4795
4806
|
utils$1.isString(He) || (He = He ? "include" : "omit");
|
|
4796
|
-
const Ge = oe && "credentials" in X.prototype,
|
|
4807
|
+
const Ge = oe && "credentials" in X.prototype, Ze = {
|
|
4797
4808
|
...Ie,
|
|
4798
4809
|
signal: qe,
|
|
4799
4810
|
method: ve.toUpperCase(),
|
|
@@ -4802,8 +4813,8 @@ const resolveConfig = (J) => {
|
|
|
4802
4813
|
duplex: "half",
|
|
4803
4814
|
credentials: Ge ? He : void 0
|
|
4804
4815
|
};
|
|
4805
|
-
Pe = oe && new X(ge,
|
|
4806
|
-
let ft = await (oe ? Ae(Pe, Ie) : Ae(ge,
|
|
4816
|
+
Pe = oe && new X(ge, Ze);
|
|
4817
|
+
let ft = await (oe ? Ae(Pe, Ie) : Ae(ge, Ze));
|
|
4807
4818
|
const Qe = he && (De === "stream" || De === "response");
|
|
4808
4819
|
if (he && (Ce || Qe && ze)) {
|
|
4809
4820
|
const Me = {};
|
|
@@ -4822,10 +4833,10 @@ const resolveConfig = (J) => {
|
|
|
4822
4833
|
);
|
|
4823
4834
|
}
|
|
4824
4835
|
De = De || "text";
|
|
4825
|
-
let
|
|
4836
|
+
let Ke = await pe[utils$1.findKey(pe, De) || "text"](ft, me);
|
|
4826
4837
|
return !Qe && ze && ze(), await new Promise((Me, Be) => {
|
|
4827
4838
|
settle(Me, Be, {
|
|
4828
|
-
data:
|
|
4839
|
+
data: Ke,
|
|
4829
4840
|
headers: AxiosHeaders$1.from(ft.headers),
|
|
4830
4841
|
status: ft.status,
|
|
4831
4842
|
statusText: ft.statusText,
|
|
@@ -5898,7 +5909,7 @@ function peg$parse(J, W) {
|
|
|
5898
5909
|
return vs.push("numberArgStyle"), !0;
|
|
5899
5910
|
}, We = function(Oe) {
|
|
5900
5911
|
return vs.pop(), Oe.replace(/\s*$/, "");
|
|
5901
|
-
}, Ge = ",",
|
|
5912
|
+
}, Ge = ",", Ze = us(",", !1), ft = "number", Qe = us("number", !1), Ke = function(Oe, je, tt) {
|
|
5902
5913
|
return __assign$4({ type: je === "number" ? TYPE.number : je === "date" ? TYPE.date : TYPE.time, style: tt && tt[2], value: Oe }, _s());
|
|
5903
5914
|
}, Me = "'", Be = us("'", !1), Ue = /^[^']/, Je = $s(["'"], !0, !1), Xe = /^[^a-zA-Z'{}]/, Ve = $s([["a", "z"], ["A", "Z"], "'", "{", "}"], !0, !1), Ye = /^[a-zA-Z]/, rt = $s([["a", "z"], ["A", "Z"]], !1, !1), ot = function(Oe) {
|
|
5904
5915
|
return __assign$4({ type: 1, pattern: Oe }, _s());
|
|
@@ -5922,7 +5933,7 @@ function peg$parse(J, W) {
|
|
|
5922
5933
|
}, {}) }, _s());
|
|
5923
5934
|
}, zt = "=", cs = us("=", !1), ds = function(Oe) {
|
|
5924
5935
|
return vs.push("select"), !0;
|
|
5925
|
-
},
|
|
5936
|
+
}, Zt = function(Oe, je) {
|
|
5926
5937
|
return vs.pop(), __assign$4({
|
|
5927
5938
|
id: Oe,
|
|
5928
5939
|
value: je
|
|
@@ -6087,13 +6098,13 @@ function peg$parse(J, W) {
|
|
|
6087
6098
|
je = X;
|
|
6088
6099
|
return je !== X && (Gt = Oe, je = Ie(je)), Oe = je, Oe;
|
|
6089
6100
|
}
|
|
6090
|
-
function
|
|
6101
|
+
function Ki() {
|
|
6091
6102
|
var Oe, je, tt;
|
|
6092
6103
|
return Oe = Ne, J.substr(Ne, 2) === Ae ? (je = Ae, Ne += 2) : (je = X, yt === 0 && Et(qe)), je !== X ? (tt = Gi(), tt !== X ? (Gt = Oe, je = Pe(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe === X && (Oe = Ne, Gt = Ne, je = ze(), je ? je = void 0 : je = X, je !== X ? (tt = Ls(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)), Oe;
|
|
6093
6104
|
}
|
|
6094
|
-
function
|
|
6095
|
-
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as,
|
|
6096
|
-
return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(
|
|
6105
|
+
function Zi() {
|
|
6106
|
+
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss;
|
|
6107
|
+
return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X ? (es = jt(), es !== X ? (J.substr(Ne, 6) === ft ? (Bt = ft, Ne += 6) : (Bt = X, yt === 0 && Et(Qe)), Bt !== X ? (fs = jt(), fs !== X ? (Wt = Ne, J.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = X, yt === 0 && Et(Ze)), as !== X ? (Kt = jt(), Kt !== X ? (ss = Ki(), ss !== X ? (as = [as, Kt, ss], Wt = as) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Ne) === 125 ? (Kt = be, Ne++) : (Kt = X, yt === 0 && Et(me)), Kt !== X ? (Gt = Oe, je = Ke(bt, Bt, Wt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
|
|
6097
6108
|
}
|
|
6098
6109
|
function bi() {
|
|
6099
6110
|
var Oe, je, tt, bt;
|
|
@@ -6137,33 +6148,33 @@ function peg$parse(J, W) {
|
|
|
6137
6148
|
return Oe = Ne, J.substr(Ne, 2) === Ae ? (je = Ae, Ne += 2) : (je = X, yt === 0 && Et(qe)), je !== X ? (tt = Yi(), tt !== X ? (Gt = Oe, je = Pe(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe === X && (Oe = Ne, Gt = Ne, je = _t(), je ? je = void 0 : je = X, je !== X ? (tt = Ls(), tt !== X ? (Gt = Oe, je = We(tt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)), Oe;
|
|
6138
6149
|
}
|
|
6139
6150
|
function Ji() {
|
|
6140
|
-
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as,
|
|
6141
|
-
return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(
|
|
6151
|
+
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss;
|
|
6152
|
+
return Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X ? (tt = jt(), tt !== X ? (bt = Ss(), bt !== X ? (wt = jt(), wt !== X ? (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X ? (es = jt(), es !== X ? (J.substr(Ne, 4) === kt ? (Bt = kt, Ne += 4) : (Bt = X, yt === 0 && Et(It)), Bt === X && (J.substr(Ne, 4) === qt ? (Bt = qt, Ne += 4) : (Bt = X, yt === 0 && Et(Nt))), Bt !== X ? (fs = jt(), fs !== X ? (Wt = Ne, J.charCodeAt(Ne) === 44 ? (as = Ge, Ne++) : (as = X, yt === 0 && Et(Ze)), as !== X ? (Kt = jt(), Kt !== X ? (ss = Qi(), ss !== X ? (as = [as, Kt, ss], Wt = as) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X)) : (Ne = Wt, Wt = X), Wt === X && (Wt = null), Wt !== X ? (as = jt(), as !== X ? (J.charCodeAt(Ne) === 125 ? (Kt = be, Ne++) : (Kt = X, yt === 0 && Et(me)), Kt !== X ? (Gt = Oe, je = Ke(bt, Bt, Wt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
|
|
6142
6153
|
}
|
|
6143
6154
|
function Xi() {
|
|
6144
6155
|
var Oe;
|
|
6145
|
-
return Oe =
|
|
6156
|
+
return Oe = Zi(), Oe === X && (Oe = Ji()), Oe;
|
|
6146
6157
|
}
|
|
6147
6158
|
function sr() {
|
|
6148
|
-
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as,
|
|
6159
|
+
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss, gs, ys, Ms;
|
|
6149
6160
|
if (Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X)
|
|
6150
6161
|
if (tt = jt(), tt !== X)
|
|
6151
6162
|
if (bt = Ss(), bt !== X)
|
|
6152
6163
|
if (wt = jt(), wt !== X)
|
|
6153
|
-
if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(
|
|
6164
|
+
if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X)
|
|
6154
6165
|
if (es = jt(), es !== X)
|
|
6155
6166
|
if (J.substr(Ne, 6) === Vt ? (Bt = Vt, Ne += 6) : (Bt = X, yt === 0 && Et(rs)), Bt === X && (J.substr(Ne, 13) === Yt ? (Bt = Yt, Ne += 13) : (Bt = X, yt === 0 && Et(gt))), Bt !== X)
|
|
6156
6167
|
if (fs = jt(), fs !== X)
|
|
6157
|
-
if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(
|
|
6168
|
+
if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(Ze)), Wt !== X)
|
|
6158
6169
|
if (as = jt(), as !== X)
|
|
6159
|
-
if (
|
|
6170
|
+
if (Kt = Ne, J.substr(Ne, 7) === mt ? (ss = mt, Ne += 7) : (ss = X, yt === 0 && Et(xt)), ss !== X ? (gs = jt(), gs !== X ? (ys = yi(), ys !== X ? (ss = [ss, gs, ys], Kt = ss) : (Ne = Kt, Kt = X)) : (Ne = Kt, Kt = X)) : (Ne = Kt, Kt = X), Kt === X && (Kt = null), Kt !== X)
|
|
6160
6171
|
if (ss = jt(), ss !== X) {
|
|
6161
6172
|
if (gs = [], ys = vi(), ys !== X)
|
|
6162
6173
|
for (; ys !== X; )
|
|
6163
6174
|
gs.push(ys), ys = vi();
|
|
6164
6175
|
else
|
|
6165
6176
|
gs = X;
|
|
6166
|
-
gs !== X ? (ys = jt(), ys !== X ? (J.charCodeAt(Ne) === 125 ? (Ms = be, Ne++) : (Ms = X, yt === 0 && Et(me)), Ms !== X ? (Gt = Oe, je = Ct(bt, Bt,
|
|
6177
|
+
gs !== X ? (ys = jt(), ys !== X ? (J.charCodeAt(Ne) === 125 ? (Ms = be, Ne++) : (Ms = X, yt === 0 && Et(me)), Ms !== X ? (Gt = Oe, je = Ct(bt, Bt, Kt, gs), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X);
|
|
6167
6178
|
} else
|
|
6168
6179
|
Ne = Oe, Oe = X;
|
|
6169
6180
|
else
|
|
@@ -6191,23 +6202,23 @@ function peg$parse(J, W) {
|
|
|
6191
6202
|
return Oe;
|
|
6192
6203
|
}
|
|
6193
6204
|
function ir() {
|
|
6194
|
-
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as,
|
|
6205
|
+
var Oe, je, tt, bt, wt, Lt, es, Bt, fs, Wt, as, Kt, ss, gs;
|
|
6195
6206
|
if (Oe = Ne, J.charCodeAt(Ne) === 123 ? (je = pe, Ne++) : (je = X, yt === 0 && Et(fe)), je !== X)
|
|
6196
6207
|
if (tt = jt(), tt !== X)
|
|
6197
6208
|
if (bt = Ss(), bt !== X)
|
|
6198
6209
|
if (wt = jt(), wt !== X)
|
|
6199
|
-
if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(
|
|
6210
|
+
if (J.charCodeAt(Ne) === 44 ? (Lt = Ge, Ne++) : (Lt = X, yt === 0 && Et(Ze)), Lt !== X)
|
|
6200
6211
|
if (es = jt(), es !== X)
|
|
6201
6212
|
if (J.substr(Ne, 6) === $t ? (Bt = $t, Ne += 6) : (Bt = X, yt === 0 && Et(Mt)), Bt !== X)
|
|
6202
6213
|
if (fs = jt(), fs !== X)
|
|
6203
|
-
if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(
|
|
6214
|
+
if (J.charCodeAt(Ne) === 44 ? (Wt = Ge, Ne++) : (Wt = X, yt === 0 && Et(Ze)), Wt !== X)
|
|
6204
6215
|
if (as = jt(), as !== X) {
|
|
6205
|
-
if (
|
|
6216
|
+
if (Kt = [], ss = mi(), ss !== X)
|
|
6206
6217
|
for (; ss !== X; )
|
|
6207
|
-
|
|
6218
|
+
Kt.push(ss), ss = mi();
|
|
6208
6219
|
else
|
|
6209
|
-
|
|
6210
|
-
|
|
6220
|
+
Kt = X;
|
|
6221
|
+
Kt !== X ? (ss = jt(), ss !== X ? (J.charCodeAt(Ne) === 125 ? (gs = be, Ne++) : (gs = X, yt === 0 && Et(me)), gs !== X ? (Gt = Oe, je = Ft(bt, Kt), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X);
|
|
6211
6222
|
} else
|
|
6212
6223
|
Ne = Oe, Oe = X;
|
|
6213
6224
|
else
|
|
@@ -6236,7 +6247,7 @@ function peg$parse(J, W) {
|
|
|
6236
6247
|
}
|
|
6237
6248
|
function mi() {
|
|
6238
6249
|
var Oe, je, tt, bt, wt, Lt, es, Bt;
|
|
6239
|
-
return Oe = Ne, je = jt(), je !== X ? (tt = Fs(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = X, yt === 0 && Et(fe)), wt !== X ? (Gt = Ne, Lt = ds(), Lt ? Lt = void 0 : Lt = X, Lt !== X ? (es = Ps(), es !== X ? (J.charCodeAt(Ne) === 125 ? (Bt = be, Ne++) : (Bt = X, yt === 0 && Et(me)), Bt !== X ? (Gt = Oe, je =
|
|
6250
|
+
return Oe = Ne, je = jt(), je !== X ? (tt = Fs(), tt !== X ? (bt = jt(), bt !== X ? (J.charCodeAt(Ne) === 123 ? (wt = pe, Ne++) : (wt = X, yt === 0 && Et(fe)), wt !== X ? (Gt = Ne, Lt = ds(), Lt ? Lt = void 0 : Lt = X, Lt !== X ? (es = Ps(), es !== X ? (J.charCodeAt(Ne) === 125 ? (Bt = be, Ne++) : (Bt = X, yt === 0 && Et(me)), Bt !== X ? (Gt = Oe, je = Zt(tt, es), Oe = je) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X)) : (Ne = Oe, Oe = X), Oe;
|
|
6240
6251
|
}
|
|
6241
6252
|
function vi() {
|
|
6242
6253
|
var Oe, je, tt, bt, wt, Lt, es, Bt;
|
|
@@ -9678,7 +9689,7 @@ class ImportDataManagerImpl {
|
|
|
9678
9689
|
async import(W) {
|
|
9679
9690
|
this.currentImporterId = W, this.selectedItems = {}, this.pluginTexts = {};
|
|
9680
9691
|
try {
|
|
9681
|
-
const { ImportDataManagerModal: X } = await import("./component-
|
|
9692
|
+
const { ImportDataManagerModal: X } = await import("./component-TkztHTPe.js"), { confirmed: te } = await this.interactionService.confirm(
|
|
9682
9693
|
void 0,
|
|
9683
9694
|
{ component: X },
|
|
9684
9695
|
{
|
|
@@ -9736,7 +9747,7 @@ class PrimariaContextManagerImpl {
|
|
|
9736
9747
|
}
|
|
9737
9748
|
}
|
|
9738
9749
|
let contextManager$1;
|
|
9739
|
-
const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$r("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), quickActionBusyManager = new QuickActionBusyManagerImpl(broker$1), interactionService = new ParimariaInteractionServiceImpl(), notificationService = new PrimariaNotificationServiceImpl(), ecapEventManager = createEcapEventManager(), pdfViewerManager = createPdfViewerManager(broker$1, notificationService), importDataManager = new ImportDataManagerImpl(interactionService), primariaApiFactory = (J) => {
|
|
9750
|
+
const createContextManager = () => contextManager$1 || (contextManager$1 = new PrimariaContextManagerImpl(), contextManager$1), broker$1 = createBroker(), regionManager = f$r("primaria"), PrimariaRegionHost = v$m(regionManager), tokenManager = createTokenManager(), userManager = createUserManager(tokenManager), globalStateManager = createGlobalStateManager(broker$1), contextManager = createContextManager(), pluginBusyManager = new PluginBusyManagerImpl(), 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) => {
|
|
9740
9751
|
const W = createRegionManagerProxy(J, regionManager, broker$1);
|
|
9741
9752
|
return {
|
|
9742
9753
|
pluginInfo: J,
|
|
@@ -17902,10 +17913,10 @@ function flip(J) {
|
|
|
17902
17913
|
rootBoundary: pe,
|
|
17903
17914
|
altBoundary: fe,
|
|
17904
17915
|
padding: ue
|
|
17905
|
-
}),
|
|
17906
|
-
Ce[We] > Le[We] && (
|
|
17907
|
-
var ft = getOppositePlacement(
|
|
17908
|
-
if (oe && Qe.push(Ge[qe] <= 0), de && Qe.push(Ge[
|
|
17916
|
+
}), Ze = ze ? Pe ? right : left : Pe ? bottom : top;
|
|
17917
|
+
Ce[We] > Le[We] && (Ze = getOppositePlacement(Ze));
|
|
17918
|
+
var ft = getOppositePlacement(Ze), Qe = [];
|
|
17919
|
+
if (oe && Qe.push(Ge[qe] <= 0), de && Qe.push(Ge[Ze] <= 0, Ge[ft] <= 0), Qe.every(function(Je) {
|
|
17909
17920
|
return Je;
|
|
17910
17921
|
})) {
|
|
17911
17922
|
He = Ae, Fe = !1;
|
|
@@ -17914,7 +17925,7 @@ function flip(J) {
|
|
|
17914
17925
|
De.set(Ae, Qe);
|
|
17915
17926
|
}
|
|
17916
17927
|
if (Fe)
|
|
17917
|
-
for (var
|
|
17928
|
+
for (var Ke = me ? 3 : 1, Me = function(Xe) {
|
|
17918
17929
|
var Ve = ye.find(function(Ye) {
|
|
17919
17930
|
var rt = De.get(Ye);
|
|
17920
17931
|
if (rt)
|
|
@@ -17924,7 +17935,7 @@ function flip(J) {
|
|
|
17924
17935
|
});
|
|
17925
17936
|
if (Ve)
|
|
17926
17937
|
return He = Ve, "break";
|
|
17927
|
-
}, Be =
|
|
17938
|
+
}, Be = Ke; Be > 0; Be--) {
|
|
17928
17939
|
var Ue = Me(Be);
|
|
17929
17940
|
if (Ue === "break") break;
|
|
17930
17941
|
}
|
|
@@ -18043,15 +18054,15 @@ function preventOverflow(J) {
|
|
|
18043
18054
|
};
|
|
18044
18055
|
if (Le) {
|
|
18045
18056
|
if (oe) {
|
|
18046
|
-
var Pe, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width",
|
|
18057
|
+
var Pe, ze = ye === "y" ? top : left, We = ye === "y" ? bottom : right, Ge = ye === "y" ? "height" : "width", Ze = Le[ye], ft = Ze + ve[ze], Qe = Ze - ve[We], Ke = be ? -Fe[Ge] / 2 : 0, Me = we === start ? De[Ge] : Fe[Ge], Be = we === start ? -Fe[Ge] : -De[Ge], Ue = W.elements.arrow, Je = be && Ue ? getLayoutRect(Ue) : {
|
|
18047
18058
|
width: 0,
|
|
18048
18059
|
height: 0
|
|
18049
|
-
}, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Xe[ze], Ye = Xe[We], rt = within(0, De[Ge], Je[Ge]), ot = Se ? De[Ge] / 2 -
|
|
18050
|
-
Le[ye] = rs, qe[ye] = rs -
|
|
18060
|
+
}, Xe = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), Ve = Xe[ze], Ye = Xe[We], rt = within(0, De[Ge], Je[Ge]), ot = Se ? De[Ge] / 2 - Ke - rt - Ve - Ie.mainAxis : Me - rt - Ve - Ie.mainAxis, _t = Se ? -De[Ge] / 2 + Ke + rt + Ye + Ie.mainAxis : Be + rt + Ye + Ie.mainAxis, kt = W.elements.arrow && getOffsetParent(W.elements.arrow), It = kt ? ye === "y" ? kt.clientTop || 0 : kt.clientLeft || 0 : 0, qt = (Pe = Ae?.[ye]) != null ? Pe : 0, Nt = Ze + ot - qt - It, Vt = Ze + _t - qt, rs = within(be ? min(ft, Nt) : ft, Ze, be ? max(Qe, Vt) : Qe);
|
|
18061
|
+
Le[ye] = rs, qe[ye] = rs - Ze;
|
|
18051
18062
|
}
|
|
18052
18063
|
if (de) {
|
|
18053
|
-
var Yt, gt = ye === "x" ? top : left, mt = ye === "x" ? bottom : right, xt = Le[Ce], Ct = Ce === "y" ? "height" : "width", $t = xt + ve[gt], Mt = xt - ve[mt], Ft = [top, left].indexOf(_e) !== -1, zt = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Ft ? $t : xt - De[Ct] - Fe[Ct] - zt + Ie.altAxis, ds = Ft ? xt + De[Ct] + Fe[Ct] - zt - Ie.altAxis : Mt,
|
|
18054
|
-
Le[Ce] =
|
|
18064
|
+
var Yt, gt = ye === "x" ? top : left, mt = ye === "x" ? bottom : right, xt = Le[Ce], Ct = Ce === "y" ? "height" : "width", $t = xt + ve[gt], Mt = xt - ve[mt], Ft = [top, left].indexOf(_e) !== -1, zt = (Yt = Ae?.[Ce]) != null ? Yt : 0, cs = Ft ? $t : xt - De[Ct] - Fe[Ct] - zt + Ie.altAxis, ds = Ft ? xt + De[Ct] + Fe[Ct] - zt - Ie.altAxis : Mt, Zt = be && Ft ? withinMaxClamp(cs, xt, ds) : within(be ? cs : $t, xt, be ? ds : Mt);
|
|
18065
|
+
Le[Ce] = Zt, qe[Ce] = Zt - xt;
|
|
18055
18066
|
}
|
|
18056
18067
|
W.modifiersData[te] = qe;
|
|
18057
18068
|
}
|
|
@@ -21632,7 +21643,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
|
|
|
21632
21643
|
var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Se, ye, Ce, Le, De, Fe, He, Ie, Ae, qe, Pe, ze, We;
|
|
21633
21644
|
const Ge = {
|
|
21634
21645
|
"dss-datepicker-range--sm": J.inputSize !== "lg"
|
|
21635
|
-
},
|
|
21646
|
+
}, Ze = {
|
|
21636
21647
|
"dss-datepicker-range-help--invalid": J._invalid || !((W = J._inputRangeStart) != null && W.validity.valid) && ((X = J._inputRangeStart) == null ? void 0 : X.value) !== "" || !((te = J._inputRangeEnd) != null && te.validity.valid) && ((re = J._inputRangeEnd) == null ? void 0 : re.value) !== "",
|
|
21637
21648
|
"dss-datepicker-range-help--disabled": ((oe = J._inputRangeStart) == null ? void 0 : oe.disabled) && ((ne = J._inputRangeEnd) == null ? void 0 : ne.disabled)
|
|
21638
21649
|
}, ft = {
|
|
@@ -21645,7 +21656,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
|
|
|
21645
21656
|
"dss-input-wrapper--required": (ue = J._inputRangeEnd) == null ? void 0 : ue.required,
|
|
21646
21657
|
"dss-input-wrapper--disabled": (he = J._inputRangeEnd) == null ? void 0 : he.disabled,
|
|
21647
21658
|
[`dss-input-wrapper--${J.inputSize}`]: !!J.inputSize
|
|
21648
|
-
},
|
|
21659
|
+
}, Ke = {
|
|
21649
21660
|
"dss-input-group": !0,
|
|
21650
21661
|
[`dss-input-group--${J.inputSize}`]: !!J.inputSize,
|
|
21651
21662
|
"dss-input-group--invalid": J._invalid || !((pe = J._inputRangeStart) != null && pe.validity.valid) && ((fe = J._inputRangeStart) == null ? void 0 : fe.value) !== "",
|
|
@@ -21687,7 +21698,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
|
|
|
21687
21698
|
<slot name="label-range-start"></slot>
|
|
21688
21699
|
</div>
|
|
21689
21700
|
` : D$5}
|
|
21690
|
-
<div class="${Rt(
|
|
21701
|
+
<div class="${Rt(Ke)}">
|
|
21691
21702
|
${J._iconRangeStart && J._iconRangeStart !== "" ? ke`
|
|
21692
21703
|
<${s$r} icon="${J._iconRangeStart}" class="dss-input-icon"></${s$r}>
|
|
21693
21704
|
` : D$5}
|
|
@@ -21752,7 +21763,7 @@ const P$1 = er`dss-calendar${tr(f$q())}`, s$r = er`dss-icon${tr(f$q())}`, r$z =
|
|
|
21752
21763
|
</div>
|
|
21753
21764
|
|
|
21754
21765
|
${J._helpText ? ke`
|
|
21755
|
-
<div class="dss-datepicker-range-help ${Rt(
|
|
21766
|
+
<div class="dss-datepicker-range-help ${Rt(Ze)}">
|
|
21756
21767
|
${J._helpText}
|
|
21757
21768
|
</div>
|
|
21758
21769
|
` : null}
|
|
@@ -38049,7 +38060,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
38049
38060
|
var W, X, te, re, oe, ne, de, ce, ue, he, pe, fe, be, me, ge, ve, _e, we, Se, ye, Ce, Le, De, Fe, He, Ie, Ae, qe, Pe, ze, We;
|
|
38050
38061
|
const Ge = {
|
|
38051
38062
|
"dss-datepicker-range--sm": J.size !== "lg"
|
|
38052
|
-
},
|
|
38063
|
+
}, Ze = {
|
|
38053
38064
|
"dss-datepicker-range-help--invalid": J.invalid || !((W = J._inputRangeStart) != null && W.validity.valid) && ((X = J._inputRangeStart) == null ? void 0 : X.value) !== "" || !((te = J._inputRangeEnd) != null && te.validity.valid) && ((re = J._inputRangeEnd) == null ? void 0 : re.value) !== "",
|
|
38054
38065
|
"dss-datepicker-range-help--disabled": ((oe = J._inputRangeStart) == null ? void 0 : oe.disabled) && ((ne = J._inputRangeEnd) == null ? void 0 : ne.disabled)
|
|
38055
38066
|
}, ft = {
|
|
@@ -38062,7 +38073,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
38062
38073
|
"dss-input-wrapper--required": (ue = J._inputRangeEnd) == null ? void 0 : ue.required,
|
|
38063
38074
|
"dss-input-wrapper--disabled": (he = J._inputRangeEnd) == null ? void 0 : he.disabled,
|
|
38064
38075
|
[`dss-input-wrapper--${J.size}`]: !!J.size
|
|
38065
|
-
},
|
|
38076
|
+
}, Ke = {
|
|
38066
38077
|
"dss-input-group": !0,
|
|
38067
38078
|
[`dss-input-group--${J.size}`]: !!J.size,
|
|
38068
38079
|
"dss-input-group--invalid": J.invalid || !((pe = J._inputRangeStart) != null && pe.validity.valid) && ((fe = J._inputRangeStart) == null ? void 0 : fe.value) !== "",
|
|
@@ -38111,7 +38122,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
38111
38122
|
<label class="dss-label dss-label--start" for="${J._getEffectiveStartId()}">${J.labelRangeStart}</label>
|
|
38112
38123
|
</div>
|
|
38113
38124
|
` : D$5}
|
|
38114
|
-
<div class="${Rt(
|
|
38125
|
+
<div class="${Rt(Ke)}">
|
|
38115
38126
|
${J.iconRangeStart && J.iconRangeStart !== "" ? ke`
|
|
38116
38127
|
<${i$9} icon="${J.iconRangeStart}" class="dss-input-icon"></${i$9}>
|
|
38117
38128
|
` : D$5}
|
|
@@ -38210,7 +38221,7 @@ const s$5 = ':host{max-width:100%}.dss-input-wrapper{display:flex;flex-direction
|
|
|
38210
38221
|
</div>
|
|
38211
38222
|
|
|
38212
38223
|
${J._helpText ? ke`
|
|
38213
|
-
<div class="dss-datepicker-range-help ${Rt(
|
|
38224
|
+
<div class="dss-datepicker-range-help ${Rt(Ze)}">
|
|
38214
38225
|
${J._helpText}
|
|
38215
38226
|
</div>
|
|
38216
38227
|
` : null}
|
|
@@ -42840,7 +42851,7 @@ var __defProp$a = Object.defineProperty, __decorateClass$a = (J, W, X, te) => {
|
|
|
42840
42851
|
(ne = J[oe]) && (re = ne(W, X, re) || re);
|
|
42841
42852
|
return re && __defProp$a(W, X, re), re;
|
|
42842
42853
|
};
|
|
42843
|
-
const
|
|
42854
|
+
const Ks = class Ks extends PrimariaRegionHost(h$p) {
|
|
42844
42855
|
constructor(W, X) {
|
|
42845
42856
|
super(), this.showText = !1, this.icon = "", this.label = "", this.icon = W, this.label = X;
|
|
42846
42857
|
}
|
|
@@ -42860,10 +42871,10 @@ const Zs = class Zs extends PrimariaRegionHost(h$p) {
|
|
|
42860
42871
|
return ke$1`${template$8(this)}`;
|
|
42861
42872
|
}
|
|
42862
42873
|
};
|
|
42863
|
-
|
|
42874
|
+
Ks.styles = i$S`
|
|
42864
42875
|
${r$O(styles$8)}
|
|
42865
42876
|
`;
|
|
42866
|
-
let CommunicationActionMenu =
|
|
42877
|
+
let CommunicationActionMenu = Ks;
|
|
42867
42878
|
__decorateClass$a([
|
|
42868
42879
|
r$L()
|
|
42869
42880
|
], CommunicationActionMenu.prototype, "showText");
|
|
@@ -42896,7 +42907,7 @@ var __defProp$9 = Object.defineProperty, __decorateClass$9 = (J, W, X, te) => {
|
|
|
42896
42907
|
(ne = J[oe]) && (re = ne(W, X, re) || re);
|
|
42897
42908
|
return re && __defProp$9(W, X, re), re;
|
|
42898
42909
|
};
|
|
42899
|
-
const
|
|
42910
|
+
const Zs = class Zs extends PrimariaRegionHost(h$p) {
|
|
42900
42911
|
constructor(W, X) {
|
|
42901
42912
|
super(), this.showText = !1, this.icon = "", this.label = "", this.icon = W, this.label = X;
|
|
42902
42913
|
}
|
|
@@ -42916,10 +42927,10 @@ const Ks = class Ks extends PrimariaRegionHost(h$p) {
|
|
|
42916
42927
|
return ke$1`${template$7(this)}`;
|
|
42917
42928
|
}
|
|
42918
42929
|
};
|
|
42919
|
-
|
|
42930
|
+
Zs.styles = i$S`
|
|
42920
42931
|
${r$O(styles$7)}
|
|
42921
42932
|
`;
|
|
42922
|
-
let ClinicalPathwaysActionMenu =
|
|
42933
|
+
let ClinicalPathwaysActionMenu = Zs;
|
|
42923
42934
|
__decorateClass$9([
|
|
42924
42935
|
r$L()
|
|
42925
42936
|
], ClinicalPathwaysActionMenu.prototype, "showText");
|
|
@@ -43630,8 +43641,8 @@ function requireQuill() {
|
|
|
43630
43641
|
} else {
|
|
43631
43642
|
if ("value" in We)
|
|
43632
43643
|
return We.value;
|
|
43633
|
-
var
|
|
43634
|
-
return
|
|
43644
|
+
var Ze = We.get;
|
|
43645
|
+
return Ze === void 0 ? void 0 : Ze.call(ze);
|
|
43635
43646
|
}
|
|
43636
43647
|
}, de = re(3), ce = Se(de), ue = re(2), he = Se(ue), pe = re(0), fe = Se(pe), be = re(16), me = Se(be), ge = re(6), ve = Se(ge), _e = re(7), we = Se(_e);
|
|
43637
43648
|
function Se(Ae) {
|
|
@@ -43674,16 +43685,16 @@ function requireQuill() {
|
|
|
43674
43685
|
}
|
|
43675
43686
|
}, {
|
|
43676
43687
|
key: "formatAt",
|
|
43677
|
-
value: function(ze, We, Ge,
|
|
43678
|
-
this.format(Ge,
|
|
43688
|
+
value: function(ze, We, Ge, Ze) {
|
|
43689
|
+
this.format(Ge, Ze);
|
|
43679
43690
|
}
|
|
43680
43691
|
}, {
|
|
43681
43692
|
key: "insertAt",
|
|
43682
43693
|
value: function(ze, We, Ge) {
|
|
43683
43694
|
if (typeof We == "string" && We.endsWith(`
|
|
43684
43695
|
`)) {
|
|
43685
|
-
var
|
|
43686
|
-
this.parent.insertBefore(
|
|
43696
|
+
var Ze = fe.default.create(He.blotName);
|
|
43697
|
+
this.parent.insertBefore(Ze, ze === 0 ? this : this.next), Ze.insertAt(0, We.slice(0, -1));
|
|
43687
43698
|
} else
|
|
43688
43699
|
ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, ze, We, Ge);
|
|
43689
43700
|
}
|
|
@@ -43712,20 +43723,20 @@ function requireQuill() {
|
|
|
43712
43723
|
}
|
|
43713
43724
|
}, {
|
|
43714
43725
|
key: "formatAt",
|
|
43715
|
-
value: function(ze, We, Ge,
|
|
43716
|
-
We <= 0 || (fe.default.query(Ge, fe.default.Scope.BLOCK) ? ze + We === this.length() && this.format(Ge,
|
|
43726
|
+
value: function(ze, We, Ge, Ze) {
|
|
43727
|
+
We <= 0 || (fe.default.query(Ge, fe.default.Scope.BLOCK) ? ze + We === this.length() && this.format(Ge, Ze) : ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "formatAt", this).call(this, ze, Math.min(We, this.length() - ze - 1), Ge, Ze), this.cache = {});
|
|
43717
43728
|
}
|
|
43718
43729
|
}, {
|
|
43719
43730
|
key: "insertAt",
|
|
43720
43731
|
value: function(ze, We, Ge) {
|
|
43721
43732
|
if (Ge != null) return ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, ze, We, Ge);
|
|
43722
43733
|
if (We.length !== 0) {
|
|
43723
|
-
var
|
|
43724
|
-
`), ft =
|
|
43734
|
+
var Ze = We.split(`
|
|
43735
|
+
`), ft = Ze.shift();
|
|
43725
43736
|
ft.length > 0 && (ze < this.length() - 1 || this.children.tail == null ? ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "insertAt", this).call(this, Math.min(ze, this.length() - 1), ft) : this.children.tail.insertAt(this.children.tail.length(), ft), this.cache = {});
|
|
43726
43737
|
var Qe = this;
|
|
43727
|
-
|
|
43728
|
-
return Qe = Qe.split(
|
|
43738
|
+
Ze.reduce(function(Ke, Me) {
|
|
43739
|
+
return Qe = Qe.split(Ke, !0), Qe.insertAt(0, Me), Me.length;
|
|
43729
43740
|
}, ze + ft.length);
|
|
43730
43741
|
}
|
|
43731
43742
|
}
|
|
@@ -43768,8 +43779,8 @@ function requireQuill() {
|
|
|
43768
43779
|
var Ge = this.clone();
|
|
43769
43780
|
return ze === 0 ? (this.parent.insertBefore(Ge, this), this) : (this.parent.insertBefore(Ge, this.next), Ge);
|
|
43770
43781
|
} else {
|
|
43771
|
-
var
|
|
43772
|
-
return this.cache = {},
|
|
43782
|
+
var Ze = ne(qe.prototype.__proto__ || Object.getPrototypeOf(qe.prototype), "split", this).call(this, ze, We);
|
|
43783
|
+
return this.cache = {}, Ze;
|
|
43773
43784
|
}
|
|
43774
43785
|
}
|
|
43775
43786
|
}]), qe;
|
|
@@ -43792,10 +43803,10 @@ function requireQuill() {
|
|
|
43792
43803
|
} : function(Qe) {
|
|
43793
43804
|
return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
|
|
43794
43805
|
}, ne = /* @__PURE__ */ (function() {
|
|
43795
|
-
function Qe(
|
|
43806
|
+
function Qe(Ke, Me) {
|
|
43796
43807
|
var Be = [], Ue = !0, Je = !1, Xe = void 0;
|
|
43797
43808
|
try {
|
|
43798
|
-
for (var Ve =
|
|
43809
|
+
for (var Ve = Ke[Symbol.iterator](), Ye; !(Ue = (Ye = Ve.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ue = !0)
|
|
43799
43810
|
;
|
|
43800
43811
|
} catch (rt) {
|
|
43801
43812
|
Je = !0, Xe = rt;
|
|
@@ -43808,22 +43819,22 @@ function requireQuill() {
|
|
|
43808
43819
|
}
|
|
43809
43820
|
return Be;
|
|
43810
43821
|
}
|
|
43811
|
-
return function(
|
|
43812
|
-
if (Array.isArray(
|
|
43813
|
-
return
|
|
43814
|
-
if (Symbol.iterator in Object(
|
|
43815
|
-
return Qe(
|
|
43822
|
+
return function(Ke, Me) {
|
|
43823
|
+
if (Array.isArray(Ke))
|
|
43824
|
+
return Ke;
|
|
43825
|
+
if (Symbol.iterator in Object(Ke))
|
|
43826
|
+
return Qe(Ke, Me);
|
|
43816
43827
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
43817
43828
|
};
|
|
43818
43829
|
})(), de = /* @__PURE__ */ (function() {
|
|
43819
|
-
function Qe(
|
|
43830
|
+
function Qe(Ke, Me) {
|
|
43820
43831
|
for (var Be = 0; Be < Me.length; Be++) {
|
|
43821
43832
|
var Ue = Me[Be];
|
|
43822
|
-
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(
|
|
43833
|
+
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ke, Ue.key, Ue);
|
|
43823
43834
|
}
|
|
43824
43835
|
}
|
|
43825
|
-
return function(
|
|
43826
|
-
return Me && Qe(
|
|
43836
|
+
return function(Ke, Me, Be) {
|
|
43837
|
+
return Me && Qe(Ke.prototype, Me), Be && Qe(Ke, Be), Ke;
|
|
43827
43838
|
};
|
|
43828
43839
|
})();
|
|
43829
43840
|
re(51);
|
|
@@ -43831,11 +43842,11 @@ function requireQuill() {
|
|
|
43831
43842
|
function Ie(Qe) {
|
|
43832
43843
|
return Qe && Qe.__esModule ? Qe : { default: Qe };
|
|
43833
43844
|
}
|
|
43834
|
-
function Ae(Qe,
|
|
43835
|
-
return
|
|
43845
|
+
function Ae(Qe, Ke, Me) {
|
|
43846
|
+
return Ke in Qe ? Object.defineProperty(Qe, Ke, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ke] = Me, Qe;
|
|
43836
43847
|
}
|
|
43837
|
-
function qe(Qe,
|
|
43838
|
-
if (!(Qe instanceof
|
|
43848
|
+
function qe(Qe, Ke) {
|
|
43849
|
+
if (!(Qe instanceof Ke))
|
|
43839
43850
|
throw new TypeError("Cannot call a class as a function");
|
|
43840
43851
|
}
|
|
43841
43852
|
var Pe = (0, De.default)("quill"), ze = (function() {
|
|
@@ -43867,10 +43878,10 @@ function requireQuill() {
|
|
|
43867
43878
|
this.imports[Me] != null && !Je && Pe.warn("Overwriting " + Me + " with", Be), this.imports[Me] = Be, (Me.startsWith("blots/") || Me.startsWith("formats/")) && Be.blotName !== "abstract" ? _e.default.register(Be) : Me.startsWith("modules") && typeof Be.register == "function" && Be.register();
|
|
43868
43879
|
}
|
|
43869
43880
|
}]);
|
|
43870
|
-
function Qe(
|
|
43881
|
+
function Qe(Ke) {
|
|
43871
43882
|
var Me = this, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
43872
|
-
if (qe(this, Qe), this.options = We(
|
|
43873
|
-
return Pe.error("Invalid Quill container",
|
|
43883
|
+
if (qe(this, Qe), this.options = We(Ke, Be), this.container = this.options.container, this.container == null)
|
|
43884
|
+
return Pe.error("Invalid Quill container", Ke);
|
|
43874
43885
|
this.options.debug && Qe.debug(this.options.debug);
|
|
43875
43886
|
var Ue = this.container.innerHTML.trim();
|
|
43876
43887
|
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, {
|
|
@@ -43905,7 +43916,7 @@ function requireQuill() {
|
|
|
43905
43916
|
}, {
|
|
43906
43917
|
key: "deleteText",
|
|
43907
43918
|
value: function(Me, Be, Ue) {
|
|
43908
|
-
var Je = this, Xe =
|
|
43919
|
+
var Je = this, Xe = Ze(Me, Be, Ue), Ve = ne(Xe, 4);
|
|
43909
43920
|
return Me = Ve[0], Be = Ve[1], Ue = Ve[3], Ge.call(this, function() {
|
|
43910
43921
|
return Je.editor.deleteText(Me, Be);
|
|
43911
43922
|
}, Ue, Me, -1 * Be);
|
|
@@ -43948,7 +43959,7 @@ function requireQuill() {
|
|
|
43948
43959
|
}, {
|
|
43949
43960
|
key: "formatLine",
|
|
43950
43961
|
value: function(Me, Be, Ue, Je, Xe) {
|
|
43951
|
-
var Ve = this, Ye = void 0, rt =
|
|
43962
|
+
var Ve = this, Ye = void 0, rt = Ze(Me, Be, Ue, Je, Xe), ot = ne(rt, 4);
|
|
43952
43963
|
return Me = ot[0], Be = ot[1], Ye = ot[2], Xe = ot[3], Ge.call(this, function() {
|
|
43953
43964
|
return Ve.editor.formatLine(Me, Be, Ye);
|
|
43954
43965
|
}, Xe, Me, 0);
|
|
@@ -43956,7 +43967,7 @@ function requireQuill() {
|
|
|
43956
43967
|
}, {
|
|
43957
43968
|
key: "formatText",
|
|
43958
43969
|
value: function(Me, Be, Ue, Je, Xe) {
|
|
43959
|
-
var Ve = this, Ye = void 0, rt =
|
|
43970
|
+
var Ve = this, Ye = void 0, rt = Ze(Me, Be, Ue, Je, Xe), ot = ne(rt, 4);
|
|
43960
43971
|
return Me = ot[0], Be = ot[1], Ye = ot[2], Xe = ot[3], Ge.call(this, function() {
|
|
43961
43972
|
return Ve.editor.formatText(Me, Be, Ye);
|
|
43962
43973
|
}, Xe, Me, 0);
|
|
@@ -43979,7 +43990,7 @@ function requireQuill() {
|
|
|
43979
43990
|
}, {
|
|
43980
43991
|
key: "getContents",
|
|
43981
43992
|
value: function() {
|
|
43982
|
-
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue =
|
|
43993
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue = Ze(Me, Be), Je = ne(Ue, 2);
|
|
43983
43994
|
return Me = Je[0], Be = Je[1], this.editor.getContents(Me, Be);
|
|
43984
43995
|
}
|
|
43985
43996
|
}, {
|
|
@@ -44028,7 +44039,7 @@ function requireQuill() {
|
|
|
44028
44039
|
}, {
|
|
44029
44040
|
key: "getText",
|
|
44030
44041
|
value: function() {
|
|
44031
|
-
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue =
|
|
44042
|
+
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - Me, Ue = Ze(Me, Be), Je = ne(Ue, 2);
|
|
44032
44043
|
return Me = Je[0], Be = Je[1], this.editor.getText(Me, Be);
|
|
44033
44044
|
}
|
|
44034
44045
|
}, {
|
|
@@ -44047,7 +44058,7 @@ function requireQuill() {
|
|
|
44047
44058
|
}, {
|
|
44048
44059
|
key: "insertText",
|
|
44049
44060
|
value: function(Me, Be, Ue, Je, Xe) {
|
|
44050
|
-
var Ve = this, Ye = void 0, rt =
|
|
44061
|
+
var Ve = this, Ye = void 0, rt = Ze(Me, 0, Ue, Je, Xe), ot = ne(rt, 4);
|
|
44051
44062
|
return Me = ot[0], Ye = ot[2], Xe = ot[3], Ge.call(this, function() {
|
|
44052
44063
|
return Ve.editor.insertText(Me, Be, Ye);
|
|
44053
44064
|
}, Xe, Me, Be.length);
|
|
@@ -44080,7 +44091,7 @@ function requireQuill() {
|
|
|
44080
44091
|
}, {
|
|
44081
44092
|
key: "removeFormat",
|
|
44082
44093
|
value: function(Me, Be, Ue) {
|
|
44083
|
-
var Je = this, Xe =
|
|
44094
|
+
var Je = this, Xe = Ze(Me, Be, Ue), Ve = ne(Xe, 4);
|
|
44084
44095
|
return Me = Ve[0], Be = Ve[1], Ue = Ve[3], Ge.call(this, function() {
|
|
44085
44096
|
return Je.editor.removeFormat(Me, Be);
|
|
44086
44097
|
}, Ue, Me);
|
|
@@ -44109,7 +44120,7 @@ function requireQuill() {
|
|
|
44109
44120
|
if (Me == null)
|
|
44110
44121
|
this.selection.setRange(null, Be || Qe.sources.API);
|
|
44111
44122
|
else {
|
|
44112
|
-
var Je =
|
|
44123
|
+
var Je = Ze(Me, Be, Ue), Xe = ne(Je, 4);
|
|
44113
44124
|
Me = Xe[0], Be = Xe[1], Ue = Xe[3], this.selection.setRange(new we.Range(Me, Be), Ue), Ue !== be.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
44114
44125
|
}
|
|
44115
44126
|
}
|
|
@@ -44150,70 +44161,70 @@ function requireQuill() {
|
|
|
44150
44161
|
"core/module": ge.default,
|
|
44151
44162
|
"core/theme": He.default
|
|
44152
44163
|
};
|
|
44153
|
-
function We(Qe,
|
|
44154
|
-
if (
|
|
44164
|
+
function We(Qe, Ke) {
|
|
44165
|
+
if (Ke = (0, Ce.default)(!0, {
|
|
44155
44166
|
container: Qe,
|
|
44156
44167
|
modules: {
|
|
44157
44168
|
clipboard: !0,
|
|
44158
44169
|
keyboard: !0,
|
|
44159
44170
|
history: !0
|
|
44160
44171
|
}
|
|
44161
|
-
},
|
|
44162
|
-
|
|
44163
|
-
else if (
|
|
44164
|
-
throw new Error("Invalid theme " +
|
|
44165
|
-
var Me = (0, Ce.default)(!0, {},
|
|
44166
|
-
[Me,
|
|
44172
|
+
}, Ke), !Ke.theme || Ke.theme === ze.DEFAULTS.theme)
|
|
44173
|
+
Ke.theme = He.default;
|
|
44174
|
+
else if (Ke.theme = ze.import("themes/" + Ke.theme), Ke.theme == null)
|
|
44175
|
+
throw new Error("Invalid theme " + Ke.theme + ". Did you register it?");
|
|
44176
|
+
var Me = (0, Ce.default)(!0, {}, Ke.theme.DEFAULTS);
|
|
44177
|
+
[Me, Ke].forEach(function(Je) {
|
|
44167
44178
|
Je.modules = Je.modules || {}, Object.keys(Je.modules).forEach(function(Xe) {
|
|
44168
44179
|
Je.modules[Xe] === !0 && (Je.modules[Xe] = {});
|
|
44169
44180
|
});
|
|
44170
44181
|
});
|
|
44171
|
-
var Be = Object.keys(Me.modules).concat(Object.keys(
|
|
44182
|
+
var Be = Object.keys(Me.modules).concat(Object.keys(Ke.modules)), Ue = Be.reduce(function(Je, Xe) {
|
|
44172
44183
|
var Ve = ze.import("modules/" + Xe);
|
|
44173
44184
|
return Ve == null ? Pe.error("Cannot load " + Xe + " module. Are you sure you registered it?") : Je[Xe] = Ve.DEFAULTS || {}, Je;
|
|
44174
44185
|
}, {});
|
|
44175
|
-
return
|
|
44176
|
-
container:
|
|
44177
|
-
}),
|
|
44178
|
-
typeof
|
|
44179
|
-
}),
|
|
44180
|
-
return
|
|
44181
|
-
}, {}),
|
|
44182
|
-
}
|
|
44183
|
-
function Ge(Qe,
|
|
44184
|
-
if (this.options.strict && !this.isEnabled() &&
|
|
44186
|
+
return Ke.modules != null && Ke.modules.toolbar && Ke.modules.toolbar.constructor !== Object && (Ke.modules.toolbar = {
|
|
44187
|
+
container: Ke.modules.toolbar
|
|
44188
|
+
}), Ke = (0, Ce.default)(!0, {}, ze.DEFAULTS, { modules: Ue }, Me, Ke), ["bounds", "container", "scrollingContainer"].forEach(function(Je) {
|
|
44189
|
+
typeof Ke[Je] == "string" && (Ke[Je] = document.querySelector(Ke[Je]));
|
|
44190
|
+
}), Ke.modules = Object.keys(Ke.modules).reduce(function(Je, Xe) {
|
|
44191
|
+
return Ke.modules[Xe] && (Je[Xe] = Ke.modules[Xe]), Je;
|
|
44192
|
+
}, {}), Ke;
|
|
44193
|
+
}
|
|
44194
|
+
function Ge(Qe, Ke, Me, Be) {
|
|
44195
|
+
if (this.options.strict && !this.isEnabled() && Ke === be.default.sources.USER)
|
|
44185
44196
|
return new ue.default();
|
|
44186
44197
|
var Ue = Me == null ? null : this.getSelection(), Je = this.editor.delta, Xe = Qe();
|
|
44187
|
-
if (Ue != null && (Me === !0 && (Me = Ue.index), Be == null ? Ue = ft(Ue, Xe,
|
|
44188
|
-
var Ve, Ye = [be.default.events.TEXT_CHANGE, Xe, Je,
|
|
44189
|
-
if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ye)),
|
|
44198
|
+
if (Ue != null && (Me === !0 && (Me = Ue.index), Be == null ? Ue = ft(Ue, Xe, Ke) : Be !== 0 && (Ue = ft(Ue, Me, Be, Ke)), this.setSelection(Ue, be.default.sources.SILENT)), Xe.length() > 0) {
|
|
44199
|
+
var Ve, Ye = [be.default.events.TEXT_CHANGE, Xe, Je, Ke];
|
|
44200
|
+
if ((Ve = this.emitter).emit.apply(Ve, [be.default.events.EDITOR_CHANGE].concat(Ye)), Ke !== be.default.sources.SILENT) {
|
|
44190
44201
|
var rt;
|
|
44191
44202
|
(rt = this.emitter).emit.apply(rt, Ye);
|
|
44192
44203
|
}
|
|
44193
44204
|
}
|
|
44194
44205
|
return Xe;
|
|
44195
44206
|
}
|
|
44196
|
-
function
|
|
44207
|
+
function Ze(Qe, Ke, Me, Be, Ue) {
|
|
44197
44208
|
var Je = {};
|
|
44198
|
-
return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof
|
|
44209
|
+
return typeof Qe.index == "number" && typeof Qe.length == "number" ? typeof Ke != "number" ? (Ue = Be, Be = Me, Me = Ke, Ke = Qe.length, Qe = Qe.index) : (Ke = Qe.length, Qe = Qe.index) : typeof Ke != "number" && (Ue = Be, Be = Me, Me = Ke, Ke = 0), (typeof Me > "u" ? "undefined" : oe(Me)) === "object" ? (Je = Me, Ue = Be) : typeof Me == "string" && (Be != null ? Je[Me] = Be : Ue = Me), Ue = Ue || be.default.sources.API, [Qe, Ke, Je, Ue];
|
|
44199
44210
|
}
|
|
44200
|
-
function ft(Qe,
|
|
44211
|
+
function ft(Qe, Ke, Me, Be) {
|
|
44201
44212
|
if (Qe == null) return null;
|
|
44202
44213
|
var Ue = void 0, Je = void 0;
|
|
44203
|
-
if (
|
|
44214
|
+
if (Ke instanceof ue.default) {
|
|
44204
44215
|
var Xe = [Qe.index, Qe.index + Qe.length].map(function(ot) {
|
|
44205
|
-
return
|
|
44216
|
+
return Ke.transformPosition(ot, Be !== be.default.sources.USER);
|
|
44206
44217
|
}), Ve = ne(Xe, 2);
|
|
44207
44218
|
Ue = Ve[0], Je = Ve[1];
|
|
44208
44219
|
} else {
|
|
44209
44220
|
var Ye = [Qe.index, Qe.index + Qe.length].map(function(ot) {
|
|
44210
|
-
return ot <
|
|
44221
|
+
return ot < Ke || ot === Ke && Be === be.default.sources.USER ? ot : Me >= 0 ? ot + Me : Math.max(Ke, ot + Me);
|
|
44211
44222
|
}), rt = ne(Ye, 2);
|
|
44212
44223
|
Ue = rt[0], Je = rt[1];
|
|
44213
44224
|
}
|
|
44214
44225
|
return new we.Range(Ue, Je - Ue);
|
|
44215
44226
|
}
|
|
44216
|
-
te.expandConfig = We, te.overload =
|
|
44227
|
+
te.expandConfig = We, te.overload = Ze, te.default = ze;
|
|
44217
44228
|
}),
|
|
44218
44229
|
/* 6 */
|
|
44219
44230
|
/***/
|
|
@@ -44415,10 +44426,10 @@ function requireQuill() {
|
|
|
44415
44426
|
if (!Se || Ge.getRootNode() === document)
|
|
44416
44427
|
return We.contains(Ge);
|
|
44417
44428
|
for (; !We.contains(Ge); ) {
|
|
44418
|
-
var
|
|
44419
|
-
if (!
|
|
44429
|
+
var Ze = Ge.getRootNode();
|
|
44430
|
+
if (!Ze || !Ze.host)
|
|
44420
44431
|
return !1;
|
|
44421
|
-
Ge =
|
|
44432
|
+
Ge = Ze.host;
|
|
44422
44433
|
}
|
|
44423
44434
|
return !0;
|
|
44424
44435
|
};
|
|
@@ -44567,8 +44578,8 @@ function requireQuill() {
|
|
|
44567
44578
|
try {
|
|
44568
44579
|
for (var We = He[Symbol.iterator](), Ge; !(qe = (Ge = We.next()).done) && (Ae.push(Ge.value), !(Ie && Ae.length === Ie)); qe = !0)
|
|
44569
44580
|
;
|
|
44570
|
-
} catch (
|
|
44571
|
-
Pe = !0, ze =
|
|
44581
|
+
} catch (Ze) {
|
|
44582
|
+
Pe = !0, ze = Ze;
|
|
44572
44583
|
} finally {
|
|
44573
44584
|
try {
|
|
44574
44585
|
!qe && We.return && We.return();
|
|
@@ -44663,8 +44674,8 @@ function requireQuill() {
|
|
|
44663
44674
|
if (qe !== 0 && !(pe.default.query(Pe, pe.default.Scope.BLOCK) == null || Pe === this.statics.blotName && ze === this.statics.formats(this.domNode))) {
|
|
44664
44675
|
var We = this.newlineIndex(Ae);
|
|
44665
44676
|
if (!(We < 0 || We >= Ae + qe)) {
|
|
44666
|
-
var Ge = this.newlineIndex(Ae, !0) + 1,
|
|
44667
|
-
ft.format(Pe, ze), Qe instanceof He && Qe.formatAt(0, Ae - Ge + qe -
|
|
44677
|
+
var Ge = this.newlineIndex(Ae, !0) + 1, Ze = We - Ge + 1, ft = this.isolate(Ge, Ze), Qe = ft.next;
|
|
44678
|
+
ft.format(Pe, ze), Qe instanceof He && Qe.formatAt(0, Ae - Ge + qe - Ze, Pe, ze);
|
|
44668
44679
|
}
|
|
44669
44680
|
}
|
|
44670
44681
|
}
|
|
@@ -44672,8 +44683,8 @@ function requireQuill() {
|
|
|
44672
44683
|
key: "insertAt",
|
|
44673
44684
|
value: function(Ae, qe, Pe) {
|
|
44674
44685
|
if (Pe == null) {
|
|
44675
|
-
var ze = this.descendant(_e.default, Ae), We = oe(ze, 2), Ge = We[0],
|
|
44676
|
-
Ge.insertAt(
|
|
44686
|
+
var ze = this.descendant(_e.default, Ae), We = oe(ze, 2), Ge = We[0], Ze = We[1];
|
|
44687
|
+
Ge.insertAt(Ze, qe);
|
|
44677
44688
|
}
|
|
44678
44689
|
}
|
|
44679
44690
|
}, {
|
|
@@ -44737,10 +44748,10 @@ function requireQuill() {
|
|
|
44737
44748
|
} : function(Qe) {
|
|
44738
44749
|
return Qe && typeof Symbol == "function" && Qe.constructor === Symbol && Qe !== Symbol.prototype ? "symbol" : typeof Qe;
|
|
44739
44750
|
}, ne = /* @__PURE__ */ (function() {
|
|
44740
|
-
function Qe(
|
|
44751
|
+
function Qe(Ke, Me) {
|
|
44741
44752
|
var Be = [], Ue = !0, Je = !1, Xe = void 0;
|
|
44742
44753
|
try {
|
|
44743
|
-
for (var Ve =
|
|
44754
|
+
for (var Ve = Ke[Symbol.iterator](), Ye; !(Ue = (Ye = Ve.next()).done) && (Be.push(Ye.value), !(Me && Be.length === Me)); Ue = !0)
|
|
44744
44755
|
;
|
|
44745
44756
|
} catch (rt) {
|
|
44746
44757
|
Je = !0, Xe = rt;
|
|
@@ -44753,37 +44764,37 @@ function requireQuill() {
|
|
|
44753
44764
|
}
|
|
44754
44765
|
return Be;
|
|
44755
44766
|
}
|
|
44756
|
-
return function(
|
|
44757
|
-
if (Array.isArray(
|
|
44758
|
-
return
|
|
44759
|
-
if (Symbol.iterator in Object(
|
|
44760
|
-
return Qe(
|
|
44767
|
+
return function(Ke, Me) {
|
|
44768
|
+
if (Array.isArray(Ke))
|
|
44769
|
+
return Ke;
|
|
44770
|
+
if (Symbol.iterator in Object(Ke))
|
|
44771
|
+
return Qe(Ke, Me);
|
|
44761
44772
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
44762
44773
|
};
|
|
44763
44774
|
})(), de = /* @__PURE__ */ (function() {
|
|
44764
|
-
function Qe(
|
|
44775
|
+
function Qe(Ke, Me) {
|
|
44765
44776
|
for (var Be = 0; Be < Me.length; Be++) {
|
|
44766
44777
|
var Ue = Me[Be];
|
|
44767
|
-
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(
|
|
44778
|
+
Ue.enumerable = Ue.enumerable || !1, Ue.configurable = !0, "value" in Ue && (Ue.writable = !0), Object.defineProperty(Ke, Ue.key, Ue);
|
|
44768
44779
|
}
|
|
44769
44780
|
}
|
|
44770
|
-
return function(
|
|
44771
|
-
return Me && Qe(
|
|
44781
|
+
return function(Ke, Me, Be) {
|
|
44782
|
+
return Me && Qe(Ke.prototype, Me), Be && Qe(Ke, Be), Ke;
|
|
44772
44783
|
};
|
|
44773
44784
|
})(), ce = re(2), ue = qe(ce), he = re(20), pe = qe(he), fe = re(0), be = qe(fe), me = re(13), ge = qe(me), ve = re(24), _e = qe(ve), we = re(4), Se = qe(we), ye = re(16), Ce = qe(ye), Le = re(21), De = qe(Le), Fe = re(11), He = qe(Fe), Ie = re(3), Ae = qe(Ie);
|
|
44774
44785
|
function qe(Qe) {
|
|
44775
44786
|
return Qe && Qe.__esModule ? Qe : { default: Qe };
|
|
44776
44787
|
}
|
|
44777
|
-
function Pe(Qe,
|
|
44778
|
-
return
|
|
44788
|
+
function Pe(Qe, Ke, Me) {
|
|
44789
|
+
return Ke in Qe ? Object.defineProperty(Qe, Ke, { value: Me, enumerable: !0, configurable: !0, writable: !0 }) : Qe[Ke] = Me, Qe;
|
|
44779
44790
|
}
|
|
44780
|
-
function ze(Qe,
|
|
44781
|
-
if (!(Qe instanceof
|
|
44791
|
+
function ze(Qe, Ke) {
|
|
44792
|
+
if (!(Qe instanceof Ke))
|
|
44782
44793
|
throw new TypeError("Cannot call a class as a function");
|
|
44783
44794
|
}
|
|
44784
44795
|
var We = /^[ -~]*$/, Ge = (function() {
|
|
44785
|
-
function Qe(
|
|
44786
|
-
ze(this, Qe), this.scroll =
|
|
44796
|
+
function Qe(Ke) {
|
|
44797
|
+
ze(this, Qe), this.scroll = Ke, this.delta = this.getDelta();
|
|
44787
44798
|
}
|
|
44788
44799
|
return de(Qe, [{
|
|
44789
44800
|
key: "applyDelta",
|
|
@@ -44877,7 +44888,7 @@ function requireQuill() {
|
|
|
44877
44888
|
for (var Ye = (0, we.bubbleFormats)(Ve.shift()); Object.keys(Ye).length > 0; ) {
|
|
44878
44889
|
var rt = Ve.shift();
|
|
44879
44890
|
if (rt == null) return Ye;
|
|
44880
|
-
Ye =
|
|
44891
|
+
Ye = Ze((0, we.bubbleFormats)(rt), Ye);
|
|
44881
44892
|
}
|
|
44882
44893
|
return Ye;
|
|
44883
44894
|
});
|
|
@@ -44939,24 +44950,24 @@ function requireQuill() {
|
|
|
44939
44950
|
}
|
|
44940
44951
|
}]), Qe;
|
|
44941
44952
|
})();
|
|
44942
|
-
function
|
|
44943
|
-
return Object.keys(
|
|
44944
|
-
return Qe[Be] == null || (
|
|
44953
|
+
function Ze(Qe, Ke) {
|
|
44954
|
+
return Object.keys(Ke).reduce(function(Me, Be) {
|
|
44955
|
+
return Qe[Be] == null || (Ke[Be] === Qe[Be] ? Me[Be] = Ke[Be] : Array.isArray(Ke[Be]) ? Ke[Be].indexOf(Qe[Be]) < 0 && (Me[Be] = Ke[Be].concat([Qe[Be]])) : Me[Be] = [Ke[Be], Qe[Be]]), Me;
|
|
44945
44956
|
}, {});
|
|
44946
44957
|
}
|
|
44947
44958
|
function ft(Qe) {
|
|
44948
|
-
return Qe.reduce(function(
|
|
44959
|
+
return Qe.reduce(function(Ke, Me) {
|
|
44949
44960
|
if (Me.insert === 1) {
|
|
44950
44961
|
var Be = (0, De.default)(Me.attributes);
|
|
44951
|
-
return delete Be.image,
|
|
44962
|
+
return delete Be.image, Ke.insert({ image: Me.attributes.image }, Be);
|
|
44952
44963
|
}
|
|
44953
44964
|
if (Me.attributes != null && (Me.attributes.list === !0 || Me.attributes.bullet === !0) && (Me = (0, De.default)(Me), Me.attributes.list ? Me.attributes.list = "ordered" : (Me.attributes.list = "bullet", delete Me.attributes.bullet)), typeof Me.insert == "string") {
|
|
44954
44965
|
var Ue = Me.insert.replace(/\r\n/g, `
|
|
44955
44966
|
`).replace(/\r/g, `
|
|
44956
44967
|
`);
|
|
44957
|
-
return
|
|
44968
|
+
return Ke.insert(Ue, Me.attributes);
|
|
44958
44969
|
}
|
|
44959
|
-
return
|
|
44970
|
+
return Ke.push(Me);
|
|
44960
44971
|
}, new ue.default());
|
|
44961
44972
|
}
|
|
44962
44973
|
te.default = Ge;
|
|
@@ -44971,7 +44982,7 @@ function requireQuill() {
|
|
|
44971
44982
|
function He(Ie, Ae) {
|
|
44972
44983
|
var qe = [], Pe = !0, ze = !1, We = void 0;
|
|
44973
44984
|
try {
|
|
44974
|
-
for (var Ge = Ie[Symbol.iterator](),
|
|
44985
|
+
for (var Ge = Ie[Symbol.iterator](), Ze; !(Pe = (Ze = Ge.next()).done) && (qe.push(Ze.value), !(Ae && qe.length === Ae)); Pe = !0)
|
|
44975
44986
|
;
|
|
44976
44987
|
} catch (ft) {
|
|
44977
44988
|
ze = !0, We = ft;
|
|
@@ -45039,8 +45050,8 @@ function requireQuill() {
|
|
|
45039
45050
|
}
|
|
45040
45051
|
}), this.emitter.on(me.default.events.SCROLL_OPTIMIZE, function(Pe, ze) {
|
|
45041
45052
|
if (ze.range) {
|
|
45042
|
-
var We = ze.range, Ge = We.startNode,
|
|
45043
|
-
qe.setNativeRange(Ge,
|
|
45053
|
+
var We = ze.range, Ge = We.startNode, Ze = We.startOffset, ft = We.endNode, Qe = We.endOffset;
|
|
45054
|
+
qe.setNativeRange(Ge, Ze, ft, Qe);
|
|
45044
45055
|
}
|
|
45045
45056
|
}), this.update(me.default.sources.SILENT);
|
|
45046
45057
|
}
|
|
@@ -45101,20 +45112,20 @@ function requireQuill() {
|
|
|
45101
45112
|
value: function(Ae) {
|
|
45102
45113
|
var qe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Pe = this.scroll.length();
|
|
45103
45114
|
Ae = Math.min(Ae, Pe - 1), qe = Math.min(Ae + qe, Pe - 1) - Ae;
|
|
45104
|
-
var ze = void 0, We = this.scroll.leaf(Ae), Ge = oe(We, 2),
|
|
45105
|
-
if (
|
|
45106
|
-
var Qe =
|
|
45107
|
-
ze =
|
|
45115
|
+
var ze = void 0, We = this.scroll.leaf(Ae), Ge = oe(We, 2), Ze = Ge[0], ft = Ge[1];
|
|
45116
|
+
if (Ze == null) return null;
|
|
45117
|
+
var Qe = Ze.position(ft, !0), Ke = oe(Qe, 2);
|
|
45118
|
+
ze = Ke[0], ft = Ke[1];
|
|
45108
45119
|
var Me = document.createRange();
|
|
45109
45120
|
if (qe > 0) {
|
|
45110
45121
|
Me.setStart(ze, ft);
|
|
45111
45122
|
var Be = this.scroll.leaf(Ae + qe), Ue = oe(Be, 2);
|
|
45112
|
-
if (
|
|
45113
|
-
var Je =
|
|
45123
|
+
if (Ze = Ue[0], ft = Ue[1], Ze == null) return null;
|
|
45124
|
+
var Je = Ze.position(ft, !0), Xe = oe(Je, 2);
|
|
45114
45125
|
return ze = Xe[0], ft = Xe[1], Me.setEnd(ze, ft), Me.getBoundingClientRect();
|
|
45115
45126
|
} else {
|
|
45116
45127
|
var Ve = "left", Ye = void 0;
|
|
45117
|
-
return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Ve = "right"), Ye = Me.getBoundingClientRect()) : (Ye =
|
|
45128
|
+
return ze instanceof Text ? (ft < ze.data.length ? (Me.setStart(ze, ft), Me.setEnd(ze, ft + 1)) : (Me.setStart(ze, ft - 1), Me.setEnd(ze, ft), Ve = "right"), Ye = Me.getBoundingClientRect()) : (Ye = Ze.domNode.getBoundingClientRect(), ft > 0 && (Ve = "right")), {
|
|
45118
45129
|
bottom: Ye.top + Ye.height,
|
|
45119
45130
|
height: Ye.height,
|
|
45120
45131
|
left: Ye[Ve],
|
|
@@ -45150,9 +45161,9 @@ function requireQuill() {
|
|
|
45150
45161
|
value: function(Ae) {
|
|
45151
45162
|
var qe = this, Pe = [[Ae.start.node, Ae.start.offset]];
|
|
45152
45163
|
Ae.native.collapsed || Pe.push([Ae.end.node, Ae.end.offset]);
|
|
45153
|
-
var ze = Pe.map(function(
|
|
45154
|
-
var ft = oe(
|
|
45155
|
-
return
|
|
45164
|
+
var ze = Pe.map(function(Ze) {
|
|
45165
|
+
var ft = oe(Ze, 2), Qe = ft[0], Ke = ft[1], Me = ce.default.find(Qe, !0), Be = Me.offset(qe.scroll);
|
|
45166
|
+
return Ke === 0 ? Be : Me instanceof ce.default.Container ? Be + Me.length() : Be + Me.index(Qe, Ke);
|
|
45156
45167
|
}), We = Math.min(Math.max.apply(Math, Se(ze)), this.scroll.length() - 1), Ge = Math.min.apply(Math, [We].concat(Se(ze)));
|
|
45157
45168
|
return new Le(Ge, We - Ge);
|
|
45158
45169
|
}
|
|
@@ -45181,9 +45192,9 @@ function requireQuill() {
|
|
|
45181
45192
|
key: "rangeToNative",
|
|
45182
45193
|
value: function(Ae) {
|
|
45183
45194
|
var qe = this, Pe = Ae.collapsed ? [Ae.index] : [Ae.index, Ae.index + Ae.length], ze = [], We = this.scroll.length();
|
|
45184
|
-
return Pe.forEach(function(Ge,
|
|
45195
|
+
return Pe.forEach(function(Ge, Ze) {
|
|
45185
45196
|
Ge = Math.min(We - 1, Ge);
|
|
45186
|
-
var ft = void 0, Qe = qe.scroll.leaf(Ge),
|
|
45197
|
+
var ft = void 0, Qe = qe.scroll.leaf(Ge), Ke = oe(Qe, 2), Me = Ke[0], Be = Ke[1], Ue = Me.position(Be, Ze !== 0), Je = oe(Ue, 2);
|
|
45187
45198
|
ft = Je[0], Be = Je[1], ze.push(ft, Be);
|
|
45188
45199
|
}), ze.length < 2 && (ze = ze.concat(ze)), ze;
|
|
45189
45200
|
}
|
|
@@ -45194,12 +45205,12 @@ function requireQuill() {
|
|
|
45194
45205
|
if (qe != null) {
|
|
45195
45206
|
var Pe = this.getBounds(qe.index, qe.length);
|
|
45196
45207
|
if (Pe != null) {
|
|
45197
|
-
var ze = this.scroll.length() - 1, We = this.scroll.line(Math.min(qe.index, ze)), Ge = oe(We, 1),
|
|
45208
|
+
var ze = this.scroll.length() - 1, We = this.scroll.line(Math.min(qe.index, ze)), Ge = oe(We, 1), Ze = Ge[0], ft = Ze;
|
|
45198
45209
|
if (qe.length > 0) {
|
|
45199
|
-
var Qe = this.scroll.line(Math.min(qe.index + qe.length, ze)),
|
|
45200
|
-
ft =
|
|
45210
|
+
var Qe = this.scroll.line(Math.min(qe.index + qe.length, ze)), Ke = oe(Qe, 1);
|
|
45211
|
+
ft = Ke[0];
|
|
45201
45212
|
}
|
|
45202
|
-
if (!(
|
|
45213
|
+
if (!(Ze == null || ft == null)) {
|
|
45203
45214
|
var Me = Ae.getBoundingClientRect();
|
|
45204
45215
|
Pe.top < Me.top ? Ae.scrollTop -= Me.top - Pe.top : Pe.bottom > Me.bottom && (Ae.scrollTop += Pe.bottom - Me.bottom);
|
|
45205
45216
|
}
|
|
@@ -45215,8 +45226,8 @@ function requireQuill() {
|
|
|
45215
45226
|
if (Ge != null)
|
|
45216
45227
|
if (Ae != null) {
|
|
45217
45228
|
this.hasFocus() || this.root.focus();
|
|
45218
|
-
var
|
|
45219
|
-
if (
|
|
45229
|
+
var Ze = (this.getNativeRange() || {}).native;
|
|
45230
|
+
if (Ze == null || We || Ae !== Ze.startContainer || qe !== Ze.startOffset || Pe !== Ze.endContainer || ze !== Ze.endOffset) {
|
|
45220
45231
|
Ae.tagName == "BR" && (qe = [].indexOf.call(Ae.parentNode.childNodes, Ae), Ae = Ae.parentNode), Pe.tagName == "BR" && (ze = [].indexOf.call(Pe.parentNode.childNodes, Pe), Pe = Pe.parentNode);
|
|
45221
45232
|
var ft = document.createRange();
|
|
45222
45233
|
ft.setStart(Ae, qe), ft.setEnd(Pe, ze), Ge.removeAllRanges(), Ge.addRange(ft);
|
|
@@ -45241,10 +45252,10 @@ function requireQuill() {
|
|
|
45241
45252
|
value: function() {
|
|
45242
45253
|
var Ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : me.default.sources.USER, qe = this.lastRange, Pe = this.getRange(), ze = oe(Pe, 2), We = ze[0], Ge = ze[1];
|
|
45243
45254
|
if (this.lastRange = We, this.lastRange != null && (this.savedRange = this.lastRange), !(0, fe.default)(qe, this.lastRange)) {
|
|
45244
|
-
var
|
|
45255
|
+
var Ze;
|
|
45245
45256
|
!this.composing && Ge != null && Ge.native.collapsed && Ge.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
45246
45257
|
var ft = [me.default.events.SELECTION_CHANGE, (0, he.default)(this.lastRange), (0, he.default)(qe), Ae];
|
|
45247
|
-
if ((
|
|
45258
|
+
if ((Ze = this.emitter).emit.apply(Ze, [me.default.events.EDITOR_CHANGE].concat(ft)), Ae !== me.default.sources.SILENT) {
|
|
45248
45259
|
var Qe;
|
|
45249
45260
|
(Qe = this.emitter).emit.apply(Qe, ft);
|
|
45250
45261
|
}
|
|
@@ -45699,9 +45710,9 @@ function requireQuill() {
|
|
|
45699
45710
|
else if (oe(Fe, de))
|
|
45700
45711
|
Ie = new de();
|
|
45701
45712
|
else if (oe(Fe, ce))
|
|
45702
|
-
Ie = new ce(function(
|
|
45713
|
+
Ie = new ce(function(Ke, Me) {
|
|
45703
45714
|
Fe.then(function(Be) {
|
|
45704
|
-
|
|
45715
|
+
Ke(De(Be, He - 1));
|
|
45705
45716
|
}, function(Be) {
|
|
45706
45717
|
Me(De(Be, He - 1));
|
|
45707
45718
|
});
|
|
@@ -45723,11 +45734,11 @@ function requireQuill() {
|
|
|
45723
45734
|
return Ce[qe];
|
|
45724
45735
|
ye.push(Fe), Ce.push(Ie);
|
|
45725
45736
|
}
|
|
45726
|
-
oe(Fe, ne) && Fe.forEach(function(
|
|
45727
|
-
var Be = De(Me, He - 1), Ue = De(
|
|
45737
|
+
oe(Fe, ne) && Fe.forEach(function(Ke, Me) {
|
|
45738
|
+
var Be = De(Me, He - 1), Ue = De(Ke, He - 1);
|
|
45728
45739
|
Ie.set(Be, Ue);
|
|
45729
|
-
}), oe(Fe, de) && Fe.forEach(function(
|
|
45730
|
-
var Me = De(
|
|
45740
|
+
}), oe(Fe, de) && Fe.forEach(function(Ke) {
|
|
45741
|
+
var Me = De(Ke, He - 1);
|
|
45731
45742
|
Ie.add(Me);
|
|
45732
45743
|
});
|
|
45733
45744
|
for (var Pe in Fe) {
|
|
@@ -45736,15 +45747,15 @@ function requireQuill() {
|
|
|
45736
45747
|
}
|
|
45737
45748
|
if (Object.getOwnPropertySymbols)
|
|
45738
45749
|
for (var We = Object.getOwnPropertySymbols(Fe), Pe = 0; Pe < We.length; Pe++) {
|
|
45739
|
-
var Ge = We[Pe],
|
|
45740
|
-
|
|
45750
|
+
var Ge = We[Pe], Ze = Object.getOwnPropertyDescriptor(Fe, Ge);
|
|
45751
|
+
Ze && !Ze.enumerable && !Se || (Ie[Ge] = De(Fe[Ge], He - 1), Ze.enumerable || Object.defineProperty(Ie, Ge, {
|
|
45741
45752
|
enumerable: !1
|
|
45742
45753
|
}));
|
|
45743
45754
|
}
|
|
45744
45755
|
if (Se)
|
|
45745
45756
|
for (var ft = Object.getOwnPropertyNames(Fe), Pe = 0; Pe < ft.length; Pe++) {
|
|
45746
|
-
var Qe = ft[Pe],
|
|
45747
|
-
|
|
45757
|
+
var Qe = ft[Pe], Ze = Object.getOwnPropertyDescriptor(Fe, Qe);
|
|
45758
|
+
Ze && Ze.enumerable || (Ie[Qe] = De(Fe[Qe], He - 1), Object.defineProperty(Ie, Qe, {
|
|
45748
45759
|
enumerable: !1
|
|
45749
45760
|
}));
|
|
45750
45761
|
}
|
|
@@ -45793,13 +45804,13 @@ function requireQuill() {
|
|
|
45793
45804
|
function Ie(Ae, qe) {
|
|
45794
45805
|
var Pe = [], ze = !0, We = !1, Ge = void 0;
|
|
45795
45806
|
try {
|
|
45796
|
-
for (var
|
|
45807
|
+
for (var Ze = Ae[Symbol.iterator](), ft; !(ze = (ft = Ze.next()).done) && (Pe.push(ft.value), !(qe && Pe.length === qe)); ze = !0)
|
|
45797
45808
|
;
|
|
45798
45809
|
} catch (Qe) {
|
|
45799
45810
|
We = !0, Ge = Qe;
|
|
45800
45811
|
} finally {
|
|
45801
45812
|
try {
|
|
45802
|
-
!ze &&
|
|
45813
|
+
!ze && Ze.return && Ze.return();
|
|
45803
45814
|
} finally {
|
|
45804
45815
|
if (We) throw Ge;
|
|
45805
45816
|
}
|
|
@@ -45879,15 +45890,15 @@ function requireQuill() {
|
|
|
45879
45890
|
}, {
|
|
45880
45891
|
key: "deleteAt",
|
|
45881
45892
|
value: function(Pe, ze) {
|
|
45882
|
-
var We = this.line(Pe), Ge = oe(We, 2),
|
|
45883
|
-
if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Pe, ze), Me != null &&
|
|
45884
|
-
if (
|
|
45893
|
+
var We = this.line(Pe), Ge = oe(We, 2), Ze = Ge[0], ft = Ge[1], Qe = this.line(Pe + ze), Ke = oe(Qe, 1), Me = Ke[0];
|
|
45894
|
+
if (de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "deleteAt", this).call(this, Pe, ze), Me != null && Ze !== Me && ft > 0) {
|
|
45895
|
+
if (Ze instanceof fe.BlockEmbed || Me instanceof fe.BlockEmbed) {
|
|
45885
45896
|
this.optimize();
|
|
45886
45897
|
return;
|
|
45887
45898
|
}
|
|
45888
|
-
if (
|
|
45889
|
-
var Be =
|
|
45890
|
-
if (Be > -1 && (
|
|
45899
|
+
if (Ze instanceof _e.default) {
|
|
45900
|
+
var Be = Ze.newlineIndex(Ze.length(), !0);
|
|
45901
|
+
if (Be > -1 && (Ze = Ze.split(Be + 1), Ze === Me)) {
|
|
45891
45902
|
this.optimize();
|
|
45892
45903
|
return;
|
|
45893
45904
|
}
|
|
@@ -45896,7 +45907,7 @@ function requireQuill() {
|
|
|
45896
45907
|
Ue > -1 && Me.split(Ue + 1);
|
|
45897
45908
|
}
|
|
45898
45909
|
var Je = Me.children.head instanceof ge.default ? null : Me.children.head;
|
|
45899
|
-
|
|
45910
|
+
Ze.moveChildren(Me, Je), Ze.remove();
|
|
45900
45911
|
}
|
|
45901
45912
|
this.optimize();
|
|
45902
45913
|
}
|
|
@@ -45921,8 +45932,8 @@ function requireQuill() {
|
|
|
45921
45932
|
this.appendChild(Ge), We == null && ze.endsWith(`
|
|
45922
45933
|
`) && (ze = ze.slice(0, -1)), Ge.insertAt(0, ze, We);
|
|
45923
45934
|
} else {
|
|
45924
|
-
var
|
|
45925
|
-
this.appendChild(
|
|
45935
|
+
var Ze = ue.default.create(ze, We);
|
|
45936
|
+
this.appendChild(Ze);
|
|
45926
45937
|
}
|
|
45927
45938
|
else
|
|
45928
45939
|
de(Ae.prototype.__proto__ || Object.getPrototypeOf(Ae.prototype), "insertAt", this).call(this, Pe, ze, We);
|
|
@@ -45951,11 +45962,11 @@ function requireQuill() {
|
|
|
45951
45962
|
}, {
|
|
45952
45963
|
key: "lines",
|
|
45953
45964
|
value: function() {
|
|
45954
|
-
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(
|
|
45955
|
-
var
|
|
45956
|
-
return
|
|
45957
|
-
Fe(Be) ?
|
|
45958
|
-
}),
|
|
45965
|
+
var Pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, ze = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, We = function Ge(Ze, ft, Qe) {
|
|
45966
|
+
var Ke = [], Me = Qe;
|
|
45967
|
+
return Ze.children.forEachAt(ft, Qe, function(Be, Ue, Je) {
|
|
45968
|
+
Fe(Be) ? Ke.push(Be) : Be instanceof ue.default.Container && (Ke = Ke.concat(Ge(Be, Ue, Me))), Me -= Je;
|
|
45969
|
+
}), Ke;
|
|
45959
45970
|
};
|
|
45960
45971
|
return We(this, Pe, ze);
|
|
45961
45972
|
}
|
|
@@ -46047,7 +46058,7 @@ function requireQuill() {
|
|
|
46047
46058
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ye);
|
|
46048
46059
|
Ve.prototype = Object.create(Ye && Ye.prototype, { constructor: { value: Ve, enumerable: !1, writable: !0, configurable: !0 } }), Ye && (Object.setPrototypeOf ? Object.setPrototypeOf(Ve, Ye) : Ve.__proto__ = Ye);
|
|
46049
46060
|
}
|
|
46050
|
-
var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey",
|
|
46061
|
+
var We = (0, De.default)("quill:keyboard"), Ge = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", Ze = (function(Ve) {
|
|
46051
46062
|
ze(Ye, Ve), de(Ye, null, [{
|
|
46052
46063
|
key: "match",
|
|
46053
46064
|
value: function(ot, _t) {
|
|
@@ -46062,7 +46073,7 @@ function requireQuill() {
|
|
|
46062
46073
|
return _t.bindings = {}, Object.keys(_t.options.bindings).forEach(function(kt) {
|
|
46063
46074
|
kt === "list autofill" && rt.scroll.whitelist != null && !rt.scroll.whitelist.list || _t.options.bindings[kt] && _t.addBinding(_t.options.bindings[kt]);
|
|
46064
46075
|
}), _t.addBinding({ key: Ye.keys.ENTER, shiftKey: null }, Be), _t.addBinding({ key: Ye.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
46065
|
-
}), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 },
|
|
46076
|
+
}), /Firefox/i.test(navigator.userAgent) ? (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0 }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0 }, Ke)) : (_t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, Qe), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, Ke)), _t.addBinding({ key: Ye.keys.BACKSPACE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.DELETE }, { collapsed: !1 }, Me), _t.addBinding({ key: Ye.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, Qe), _t.listen(), _t;
|
|
46066
46077
|
}
|
|
46067
46078
|
return de(Ye, [{
|
|
46068
46079
|
key: "addBinding",
|
|
@@ -46084,7 +46095,7 @@ function requireQuill() {
|
|
|
46084
46095
|
if (It.length !== 0) {
|
|
46085
46096
|
var qt = ot.quill.getSelection();
|
|
46086
46097
|
if (!(qt == null || !ot.quill.hasFocus())) {
|
|
46087
|
-
var Nt = ot.quill.getLine(qt.index), Vt = ne(Nt, 2), rs = Vt[0], Yt = Vt[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = qt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(qt.index + qt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "",
|
|
46098
|
+
var Nt = ot.quill.getLine(qt.index), Vt = ne(Nt, 2), rs = Vt[0], Yt = Vt[1], gt = ot.quill.getLeaf(qt.index), mt = ne(gt, 2), xt = mt[0], Ct = mt[1], $t = qt.length === 0 ? [xt, Ct] : ot.quill.getLeaf(qt.index + qt.length), Mt = ne($t, 2), Ft = Mt[0], zt = Mt[1], cs = xt instanceof Se.default.Text ? xt.value().slice(0, Ct) : "", ds = Ft instanceof Se.default.Text ? Ft.value().slice(zt) : "", Zt = {
|
|
46088
46099
|
collapsed: qt.length === 0,
|
|
46089
46100
|
empty: qt.length === 0 && rs.length() <= 1,
|
|
46090
46101
|
format: ot.quill.getFormat(qt),
|
|
@@ -46092,17 +46103,17 @@ function requireQuill() {
|
|
|
46092
46103
|
prefix: cs,
|
|
46093
46104
|
suffix: ds
|
|
46094
46105
|
}, ks = It.some(function(ts) {
|
|
46095
|
-
if (ts.collapsed != null && ts.collapsed !==
|
|
46106
|
+
if (ts.collapsed != null && ts.collapsed !== Zt.collapsed || ts.empty != null && ts.empty !== Zt.empty || ts.offset != null && ts.offset !== Zt.offset) return !1;
|
|
46096
46107
|
if (Array.isArray(ts.format)) {
|
|
46097
46108
|
if (ts.format.every(function(hs) {
|
|
46098
|
-
return
|
|
46109
|
+
return Zt.format[hs] == null;
|
|
46099
46110
|
}))
|
|
46100
46111
|
return !1;
|
|
46101
46112
|
} else if (oe(ts.format) === "object" && !Object.keys(ts.format).every(function(hs) {
|
|
46102
|
-
return ts.format[hs] === !0 ?
|
|
46113
|
+
return ts.format[hs] === !0 ? Zt.format[hs] != null : ts.format[hs] === !1 ? Zt.format[hs] == null : (0, pe.default)(ts.format[hs], Zt.format[hs]);
|
|
46103
46114
|
}))
|
|
46104
46115
|
return !1;
|
|
46105
|
-
return ts.prefix != null && !ts.prefix.test(
|
|
46116
|
+
return ts.prefix != null && !ts.prefix.test(Zt.prefix) || ts.suffix != null && !ts.suffix.test(Zt.suffix) ? !1 : ts.handler.call(ot, qt, Zt) !== !0;
|
|
46106
46117
|
});
|
|
46107
46118
|
ks && _t.preventDefault();
|
|
46108
46119
|
}
|
|
@@ -46112,7 +46123,7 @@ function requireQuill() {
|
|
|
46112
46123
|
}
|
|
46113
46124
|
}]), Ye;
|
|
46114
46125
|
})(He.default);
|
|
46115
|
-
|
|
46126
|
+
Ze.keys = {
|
|
46116
46127
|
BACKSPACE: 8,
|
|
46117
46128
|
TAB: 9,
|
|
46118
46129
|
ENTER: 13,
|
|
@@ -46122,14 +46133,14 @@ function requireQuill() {
|
|
|
46122
46133
|
RIGHT: 39,
|
|
46123
46134
|
DOWN: 40,
|
|
46124
46135
|
DELETE: 46
|
|
46125
|
-
},
|
|
46136
|
+
}, Ze.DEFAULTS = {
|
|
46126
46137
|
bindings: {
|
|
46127
46138
|
bold: Je("bold"),
|
|
46128
46139
|
italic: Je("italic"),
|
|
46129
46140
|
underline: Je("underline"),
|
|
46130
46141
|
indent: {
|
|
46131
46142
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
46132
|
-
key:
|
|
46143
|
+
key: Ze.keys.TAB,
|
|
46133
46144
|
format: ["blockquote", "indent", "list"],
|
|
46134
46145
|
handler: function(Ye, rt) {
|
|
46135
46146
|
if (rt.collapsed && rt.offset !== 0) return !0;
|
|
@@ -46137,7 +46148,7 @@ function requireQuill() {
|
|
|
46137
46148
|
}
|
|
46138
46149
|
},
|
|
46139
46150
|
outdent: {
|
|
46140
|
-
key:
|
|
46151
|
+
key: Ze.keys.TAB,
|
|
46141
46152
|
shiftKey: !0,
|
|
46142
46153
|
format: ["blockquote", "indent", "list"],
|
|
46143
46154
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
@@ -46147,7 +46158,7 @@ function requireQuill() {
|
|
|
46147
46158
|
}
|
|
46148
46159
|
},
|
|
46149
46160
|
"outdent backspace": {
|
|
46150
|
-
key:
|
|
46161
|
+
key: Ze.keys.BACKSPACE,
|
|
46151
46162
|
collapsed: !0,
|
|
46152
46163
|
shiftKey: null,
|
|
46153
46164
|
metaKey: null,
|
|
@@ -46162,7 +46173,7 @@ function requireQuill() {
|
|
|
46162
46173
|
"indent code-block": Ue(!0),
|
|
46163
46174
|
"outdent code-block": Ue(!1),
|
|
46164
46175
|
"remove tab": {
|
|
46165
|
-
key:
|
|
46176
|
+
key: Ze.keys.TAB,
|
|
46166
46177
|
shiftKey: !0,
|
|
46167
46178
|
collapsed: !0,
|
|
46168
46179
|
prefix: /\t$/,
|
|
@@ -46171,7 +46182,7 @@ function requireQuill() {
|
|
|
46171
46182
|
}
|
|
46172
46183
|
},
|
|
46173
46184
|
tab: {
|
|
46174
|
-
key:
|
|
46185
|
+
key: Ze.keys.TAB,
|
|
46175
46186
|
handler: function(Ye) {
|
|
46176
46187
|
this.quill.history.cutoff();
|
|
46177
46188
|
var rt = new ge.default().retain(Ye.index).delete(Ye.length).insert(" ");
|
|
@@ -46179,7 +46190,7 @@ function requireQuill() {
|
|
|
46179
46190
|
}
|
|
46180
46191
|
},
|
|
46181
46192
|
"list empty enter": {
|
|
46182
|
-
key:
|
|
46193
|
+
key: Ze.keys.ENTER,
|
|
46183
46194
|
collapsed: !0,
|
|
46184
46195
|
format: ["list"],
|
|
46185
46196
|
empty: !0,
|
|
@@ -46188,7 +46199,7 @@ function requireQuill() {
|
|
|
46188
46199
|
}
|
|
46189
46200
|
},
|
|
46190
46201
|
"checklist enter": {
|
|
46191
|
-
key:
|
|
46202
|
+
key: Ze.keys.ENTER,
|
|
46192
46203
|
collapsed: !0,
|
|
46193
46204
|
format: { list: "checked" },
|
|
46194
46205
|
handler: function(Ye) {
|
|
@@ -46198,7 +46209,7 @@ function requireQuill() {
|
|
|
46198
46209
|
}
|
|
46199
46210
|
},
|
|
46200
46211
|
"header enter": {
|
|
46201
|
-
key:
|
|
46212
|
+
key: Ze.keys.ENTER,
|
|
46202
46213
|
collapsed: !0,
|
|
46203
46214
|
format: ["header"],
|
|
46204
46215
|
suffix: /^$/,
|
|
@@ -46238,7 +46249,7 @@ function requireQuill() {
|
|
|
46238
46249
|
}
|
|
46239
46250
|
},
|
|
46240
46251
|
"code exit": {
|
|
46241
|
-
key:
|
|
46252
|
+
key: Ze.keys.ENTER,
|
|
46242
46253
|
collapsed: !0,
|
|
46243
46254
|
format: ["code-block"],
|
|
46244
46255
|
prefix: /\n\n$/,
|
|
@@ -46248,23 +46259,23 @@ function requireQuill() {
|
|
|
46248
46259
|
this.quill.updateContents(It, Ce.default.sources.USER);
|
|
46249
46260
|
}
|
|
46250
46261
|
},
|
|
46251
|
-
"embed left": ft(
|
|
46252
|
-
"embed left shift": ft(
|
|
46253
|
-
"embed right": ft(
|
|
46254
|
-
"embed right shift": ft(
|
|
46262
|
+
"embed left": ft(Ze.keys.LEFT, !1),
|
|
46263
|
+
"embed left shift": ft(Ze.keys.LEFT, !0),
|
|
46264
|
+
"embed right": ft(Ze.keys.RIGHT, !1),
|
|
46265
|
+
"embed right shift": ft(Ze.keys.RIGHT, !0)
|
|
46255
46266
|
}
|
|
46256
46267
|
};
|
|
46257
46268
|
function ft(Ve, Ye) {
|
|
46258
|
-
var rt, ot = Ve ===
|
|
46269
|
+
var rt, ot = Ve === Ze.keys.LEFT ? "prefix" : "suffix";
|
|
46259
46270
|
return rt = {
|
|
46260
46271
|
key: Ve,
|
|
46261
46272
|
shiftKey: Ye,
|
|
46262
46273
|
altKey: null
|
|
46263
46274
|
}, Ae(rt, ot, /^$/), Ae(rt, "handler", function(kt) {
|
|
46264
46275
|
var It = kt.index;
|
|
46265
|
-
Ve ===
|
|
46276
|
+
Ve === Ze.keys.RIGHT && (It += kt.length + 1);
|
|
46266
46277
|
var qt = this.quill.getLeaf(It), Nt = ne(qt, 1), Vt = Nt[0];
|
|
46267
|
-
return Vt instanceof Se.default.Embed ? (Ve ===
|
|
46278
|
+
return Vt instanceof Se.default.Embed ? (Ve === Ze.keys.LEFT ? Ye ? this.quill.setSelection(kt.index - 1, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index - 1, Ce.default.sources.USER) : Ye ? this.quill.setSelection(kt.index, kt.length + 1, Ce.default.sources.USER) : this.quill.setSelection(kt.index + kt.length + 1, Ce.default.sources.USER), !1) : !0;
|
|
46268
46279
|
}), rt;
|
|
46269
46280
|
}
|
|
46270
46281
|
function Qe(Ve, Ye) {
|
|
@@ -46281,7 +46292,7 @@ function requireQuill() {
|
|
|
46281
46292
|
this.quill.deleteText(Ve.index - Yt, Yt, Ce.default.sources.USER), Object.keys(kt).length > 0 && this.quill.formatLine(Ve.index - Yt, Yt, kt, Ce.default.sources.USER), this.quill.focus();
|
|
46282
46293
|
}
|
|
46283
46294
|
}
|
|
46284
|
-
function
|
|
46295
|
+
function Ke(Ve, Ye) {
|
|
46285
46296
|
var rt = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Ye.suffix) ? 2 : 1;
|
|
46286
46297
|
if (!(Ve.index >= this.quill.getLength() - rt)) {
|
|
46287
46298
|
var ot = {}, _t = 0, kt = this.quill.getLine(Ve.index), It = ne(kt, 1), qt = It[0];
|
|
@@ -46316,7 +46327,7 @@ function requireQuill() {
|
|
|
46316
46327
|
}
|
|
46317
46328
|
function Ue(Ve) {
|
|
46318
46329
|
return {
|
|
46319
|
-
key:
|
|
46330
|
+
key: Ze.keys.TAB,
|
|
46320
46331
|
shiftKey: !Ve,
|
|
46321
46332
|
format: { "code-block": !0 },
|
|
46322
46333
|
handler: function(rt) {
|
|
@@ -46344,15 +46355,15 @@ function requireQuill() {
|
|
|
46344
46355
|
if (typeof Ve == "string" || typeof Ve == "number")
|
|
46345
46356
|
return Xe({ key: Ve });
|
|
46346
46357
|
if ((typeof Ve > "u" ? "undefined" : oe(Ve)) === "object" && (Ve = (0, ue.default)(Ve, !1)), typeof Ve.key == "string")
|
|
46347
|
-
if (
|
|
46348
|
-
Ve.key =
|
|
46358
|
+
if (Ze.keys[Ve.key.toUpperCase()] != null)
|
|
46359
|
+
Ve.key = Ze.keys[Ve.key.toUpperCase()];
|
|
46349
46360
|
else if (Ve.key.length === 1)
|
|
46350
46361
|
Ve.key = Ve.key.toUpperCase().charCodeAt(0);
|
|
46351
46362
|
else
|
|
46352
46363
|
return null;
|
|
46353
46364
|
return Ve.shortKey && (Ve[Ge] = Ve.shortKey, delete Ve.shortKey), Ve;
|
|
46354
46365
|
}
|
|
46355
|
-
te.default =
|
|
46366
|
+
te.default = Ze, te.SHORTKEY = Ge;
|
|
46356
46367
|
}),
|
|
46357
46368
|
/* 24 */
|
|
46358
46369
|
/***/
|
|
@@ -47201,18 +47212,18 @@ function requireQuill() {
|
|
|
47201
47212
|
};
|
|
47202
47213
|
if (!(qe.type === "Caret" || qe.type === "Range"))
|
|
47203
47214
|
throw new TypeError("unexpected type: " + qe.type);
|
|
47204
|
-
var Ge = be(qe, Ie, !0),
|
|
47205
|
-
if (qe.type === "Range" && (
|
|
47215
|
+
var Ge = be(qe, Ie, !0), Ze = void 0, ft = void 0;
|
|
47216
|
+
if (qe.type === "Range" && (Ze = be(qe, Ie, !1), ft = we(qe, Ge, Ze)), qe.type === "Caret") {
|
|
47206
47217
|
qe.extend(Ge, 0);
|
|
47207
47218
|
var Qe = We();
|
|
47208
47219
|
return qe.collapseToEnd(), Ae.setStart(Ge, Qe), Ae.setEnd(Ge, Qe), { range: Ae, mode: "caret" };
|
|
47209
47220
|
} else if (ft === void 0) {
|
|
47210
47221
|
if (qe.type !== "Range")
|
|
47211
47222
|
throw new TypeError("unexpected type: " + qe.type);
|
|
47212
|
-
return Ae.setStart(Ge, 0), Ae.setEnd(
|
|
47223
|
+
return Ae.setStart(Ge, 0), Ae.setEnd(Ze, Ze.length), { range: Ae, mode: "all" };
|
|
47213
47224
|
}
|
|
47214
|
-
var
|
|
47215
|
-
return ft ? (qe.extend(Ge, 0), Me = We() + ye(Ge), qe.extend(
|
|
47225
|
+
var Ke = We(), Me = void 0, Be = void 0, Ue = Ze.length - Ce(Ze);
|
|
47226
|
+
return ft ? (qe.extend(Ge, 0), Me = We() + ye(Ge), qe.extend(Ze, Ue), Be = Ue - (We() - Ke), qe.extend(Ze, Be)) : (qe.extend(Ze, Ue), Be = Ue - We(), qe.extend(Ge, 0), Me = We() - Ke + ye(Ge), qe.extend(Ge, Me)), Ae.setStart(Ge, Me), Ae.setEnd(Ze, Be), {
|
|
47216
47227
|
mode: ft ? "right" : "left",
|
|
47217
47228
|
range: Ae
|
|
47218
47229
|
};
|
|
@@ -47716,7 +47727,7 @@ function requireQuill() {
|
|
|
47716
47727
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ue);
|
|
47717
47728
|
Be.prototype = Object.create(Ue && Ue.prototype, { constructor: { value: Be, enumerable: !1, writable: !0, configurable: !0 } }), Ue && (Object.setPrototypeOf ? Object.setPrototypeOf(Be, Ue) : Be.__proto__ = Ue);
|
|
47718
47729
|
}
|
|
47719
|
-
var Pe = [!1, "center", "right", "justify"], ze = ["#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],
|
|
47730
|
+
var Pe = [!1, "center", "right", "justify"], ze = ["#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], Ze = ["petita", !1, "gran", "enorme"], ft = (function(Be) {
|
|
47720
47731
|
qe(Ue, Be);
|
|
47721
47732
|
function Ue(Je, Xe) {
|
|
47722
47733
|
Ie(this, Ue);
|
|
@@ -47764,7 +47775,7 @@ function requireQuill() {
|
|
|
47764
47775
|
var _t = ot.classList.contains("ql-background") ? "background" : "color";
|
|
47765
47776
|
return ot.querySelector("option") == null && Me(ot, ze, _t === "background" ? "#ffffff" : "#000000"), new we.default(ot, Ve[_t]);
|
|
47766
47777
|
} else
|
|
47767
|
-
return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot,
|
|
47778
|
+
return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Me(ot, We) : ot.classList.contains("ql-header") ? Me(ot, Ge) : ot.classList.contains("ql-size") && Me(ot, Ze)), new Le.default(ot);
|
|
47768
47779
|
});
|
|
47769
47780
|
var rt = function() {
|
|
47770
47781
|
Ye.pickers.forEach(function(_t) {
|
|
@@ -47844,7 +47855,7 @@ function requireQuill() {
|
|
|
47844
47855
|
break;
|
|
47845
47856
|
}
|
|
47846
47857
|
case "video":
|
|
47847
|
-
Xe =
|
|
47858
|
+
Xe = Ke(Xe);
|
|
47848
47859
|
// eslint-disable-next-line no-fallthrough
|
|
47849
47860
|
case "formula": {
|
|
47850
47861
|
if (!Xe) break;
|
|
@@ -47860,7 +47871,7 @@ function requireQuill() {
|
|
|
47860
47871
|
}
|
|
47861
47872
|
}]), Ue;
|
|
47862
47873
|
})(Fe.default);
|
|
47863
|
-
function
|
|
47874
|
+
function Ke(Be) {
|
|
47864
47875
|
var Ue = Be.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || Be.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
47865
47876
|
return Ue ? (Ue[1] || "https") + "://www.youtube.com/embed/" + Ue[2] + "?showinfo=0" : (Ue = Be.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ue[1] || "https") + "://player.vimeo.com/video/" + Ue[2] + "/" : Be;
|
|
47866
47877
|
}
|
|
@@ -48293,8 +48304,8 @@ function requireQuill() {
|
|
|
48293
48304
|
return [[re, ye], [oe, Ce]];
|
|
48294
48305
|
var Ie = be(ye, Ce);
|
|
48295
48306
|
if (Ie) {
|
|
48296
|
-
var Ae = Ie[0], qe = Ie[1], Pe = Ie[2], ze = Ie[3], We = Ie[4], Ge = de(Ae, Pe),
|
|
48297
|
-
return Ge.concat([[ne, We]],
|
|
48307
|
+
var Ae = Ie[0], qe = Ie[1], Pe = Ie[2], ze = Ie[3], We = Ie[4], Ge = de(Ae, Pe), Ze = de(qe, ze);
|
|
48308
|
+
return Ge.concat([[ne, We]], Ze);
|
|
48298
48309
|
}
|
|
48299
48310
|
return ue(ye, Ce);
|
|
48300
48311
|
}
|
|
@@ -48302,14 +48313,14 @@ function requireQuill() {
|
|
|
48302
48313
|
for (var Le = ye.length, De = Ce.length, Fe = Math.ceil((Le + De) / 2), He = Fe, Ie = 2 * Fe, Ae = new Array(Ie), qe = new Array(Ie), Pe = 0; Pe < Ie; Pe++)
|
|
48303
48314
|
Ae[Pe] = -1, qe[Pe] = -1;
|
|
48304
48315
|
Ae[He + 1] = 0, qe[He + 1] = 0;
|
|
48305
|
-
for (var ze = Le - De, We = ze % 2 != 0, Ge = 0,
|
|
48306
|
-
for (var Me = -
|
|
48316
|
+
for (var ze = Le - De, We = ze % 2 != 0, Ge = 0, Ze = 0, ft = 0, Qe = 0, Ke = 0; Ke < Fe; Ke++) {
|
|
48317
|
+
for (var Me = -Ke + Ge; Me <= Ke - Ze; Me += 2) {
|
|
48307
48318
|
var Be = He + Me, Ue;
|
|
48308
|
-
Me == -
|
|
48319
|
+
Me == -Ke || Me != Ke && Ae[Be - 1] < Ae[Be + 1] ? Ue = Ae[Be + 1] : Ue = Ae[Be - 1] + 1;
|
|
48309
48320
|
for (var Je = Ue - Me; Ue < Le && Je < De && ye.charAt(Ue) == Ce.charAt(Je); )
|
|
48310
48321
|
Ue++, Je++;
|
|
48311
48322
|
if (Ae[Be] = Ue, Ue > Le)
|
|
48312
|
-
|
|
48323
|
+
Ze += 2;
|
|
48313
48324
|
else if (Je > De)
|
|
48314
48325
|
Ge += 2;
|
|
48315
48326
|
else if (We) {
|
|
@@ -48321,9 +48332,9 @@ function requireQuill() {
|
|
|
48321
48332
|
}
|
|
48322
48333
|
}
|
|
48323
48334
|
}
|
|
48324
|
-
for (var Ye = -
|
|
48335
|
+
for (var Ye = -Ke + ft; Ye <= Ke - Qe; Ye += 2) {
|
|
48325
48336
|
var Xe = He + Ye, Ve;
|
|
48326
|
-
Ye == -
|
|
48337
|
+
Ye == -Ke || Ye != Ke && qe[Xe - 1] < qe[Xe + 1] ? Ve = qe[Xe + 1] : Ve = qe[Xe - 1] + 1;
|
|
48327
48338
|
for (var rt = Ve - Ye; Ve < Le && rt < De && ye.charAt(Le - Ve - 1) == Ce.charAt(De - rt - 1); )
|
|
48328
48339
|
Ve++, rt++;
|
|
48329
48340
|
if (qe[Xe] = Ve, Ve > Le)
|
|
@@ -48364,18 +48375,18 @@ function requireQuill() {
|
|
|
48364
48375
|
var Le = ye.length > Ce.length ? ye : Ce, De = ye.length > Ce.length ? Ce : ye;
|
|
48365
48376
|
if (Le.length < 4 || De.length * 2 < Le.length)
|
|
48366
48377
|
return null;
|
|
48367
|
-
function Fe(
|
|
48368
|
-
for (var
|
|
48378
|
+
function Fe(Ze, ft, Qe) {
|
|
48379
|
+
for (var Ke = Ze.substring(Qe, Qe + Math.floor(Ze.length / 4)), Me = -1, Be = "", Ue, Je, Xe, Ve; (Me = ft.indexOf(Ke, Me + 1)) != -1; ) {
|
|
48369
48380
|
var Ye = pe(
|
|
48370
|
-
|
|
48381
|
+
Ze.substring(Qe),
|
|
48371
48382
|
ft.substring(Me)
|
|
48372
48383
|
), rt = fe(
|
|
48373
|
-
|
|
48384
|
+
Ze.substring(0, Qe),
|
|
48374
48385
|
ft.substring(0, Me)
|
|
48375
48386
|
);
|
|
48376
|
-
Be.length < rt + Ye && (Be = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ye), Ue =
|
|
48387
|
+
Be.length < rt + Ye && (Be = ft.substring(Me - rt, Me) + ft.substring(Me, Me + Ye), Ue = Ze.substring(0, Qe - rt), Je = Ze.substring(Qe + Ye), Xe = ft.substring(0, Me - rt), Ve = ft.substring(Me + Ye));
|
|
48377
48388
|
}
|
|
48378
|
-
return Be.length * 2 >=
|
|
48389
|
+
return Be.length * 2 >= Ze.length ? [
|
|
48379
48390
|
Ue,
|
|
48380
48391
|
Je,
|
|
48381
48392
|
Xe,
|
|
@@ -48683,7 +48694,7 @@ function requireQuill() {
|
|
|
48683
48694
|
throw new TypeError("Super expression must either be null or a function, not " + typeof mt);
|
|
48684
48695
|
gt.prototype = Object.create(mt && mt.prototype, { constructor: { value: gt, enumerable: !1, writable: !0, configurable: !0 } }), mt && (Object.setPrototypeOf ? Object.setPrototypeOf(gt, mt) : gt.__proto__ = mt);
|
|
48685
48696
|
}
|
|
48686
|
-
var
|
|
48697
|
+
var Ze = (0, _e.default)("quill:clipboard"), ft = "__ql-matcher", Qe = [[Node.TEXT_NODE, Yt], [Node.TEXT_NODE, Nt], ["br", kt], [Node.ELEMENT_NODE, Nt], [Node.ELEMENT_NODE, _t], [Node.ELEMENT_NODE, Vt], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, rs], ["li", qt], ["b", rt.bind(rt, "bold")], ["i", rt.bind(rt, "italic")], ["style", It]], Ke = [ye.AlignAttribute, He.DirectionAttribute].reduce(function(gt, mt) {
|
|
48687
48698
|
return gt[mt.keyName] = mt, gt;
|
|
48688
48699
|
}, {}), Me = [ye.AlignStyle, Ce.BackgroundStyle, Fe.ColorStyle, He.DirectionStyle, Ie.FontStyle, Ae.SizeStyle].reduce(function(gt, mt) {
|
|
48689
48700
|
return gt[mt.keyName] = mt, gt;
|
|
@@ -48712,9 +48723,9 @@ function requireQuill() {
|
|
|
48712
48723
|
var Mt = this.container.innerText;
|
|
48713
48724
|
return this.container.innerHTML = "", new pe.default().insert(Mt, Pe({}, De.default.blotName, $t[De.default.blotName]));
|
|
48714
48725
|
}
|
|
48715
|
-
var Ft = this.prepareMatching(), zt = ne(Ft, 2), cs = zt[0], ds = zt[1],
|
|
48716
|
-
return Xe(
|
|
48717
|
-
`) &&
|
|
48726
|
+
var Ft = this.prepareMatching(), zt = ne(Ft, 2), cs = zt[0], ds = zt[1], Zt = Ye(this.container, cs, ds);
|
|
48727
|
+
return Xe(Zt, `
|
|
48728
|
+
`) && Zt.ops[Zt.ops.length - 1].attributes == null && (Zt = Zt.compose(new pe.default().retain(Zt.length() - 1).delete(1))), Ze.log("convert", this.container.innerHTML, Zt), this.container.innerHTML = "", Zt;
|
|
48718
48729
|
}
|
|
48719
48730
|
}, {
|
|
48720
48731
|
key: "dangerouslyPasteHTML",
|
|
@@ -48752,8 +48763,8 @@ function requireQuill() {
|
|
|
48752
48763
|
$t.push(ds);
|
|
48753
48764
|
break;
|
|
48754
48765
|
default:
|
|
48755
|
-
[].forEach.call(Ct.container.querySelectorAll(cs), function(
|
|
48756
|
-
|
|
48766
|
+
[].forEach.call(Ct.container.querySelectorAll(cs), function(Zt) {
|
|
48767
|
+
Zt[ft] = Zt[ft] || [], Zt[ft].push(ds);
|
|
48757
48768
|
});
|
|
48758
48769
|
break;
|
|
48759
48770
|
}
|
|
@@ -48809,7 +48820,7 @@ function requireQuill() {
|
|
|
48809
48820
|
var xt = be.default.Attributor.Attribute.keys(gt), Ct = be.default.Attributor.Class.keys(gt), $t = be.default.Attributor.Style.keys(gt), Mt = {};
|
|
48810
48821
|
return xt.concat(Ct).concat($t).forEach(function(Ft) {
|
|
48811
48822
|
var zt = be.default.query(Ft, be.default.Scope.ATTRIBUTE);
|
|
48812
|
-
zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt =
|
|
48823
|
+
zt != null && (Mt[zt.attrName] = zt.value(gt), Mt[zt.attrName]) || (zt = Ke[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (Mt[zt.attrName] = zt.value(gt) || void 0), zt = Me[Ft], zt != null && (zt.attrName === Ft || zt.keyName === Ft) && (zt = Me[Ft], Mt[zt.attrName] = zt.value(gt) || void 0));
|
|
48813
48824
|
}), Object.keys(Mt).length > 0 && (mt = Ue(mt, Mt)), mt;
|
|
48814
48825
|
}
|
|
48815
48826
|
function _t(gt, mt) {
|
|
@@ -48951,17 +48962,17 @@ function requireQuill() {
|
|
|
48951
48962
|
}), te.addControls = te.default = void 0;
|
|
48952
48963
|
var oe = /* @__PURE__ */ (function() {
|
|
48953
48964
|
function qe(Pe, ze) {
|
|
48954
|
-
var We = [], Ge = !0,
|
|
48965
|
+
var We = [], Ge = !0, Ze = !1, ft = void 0;
|
|
48955
48966
|
try {
|
|
48956
|
-
for (var Qe = Pe[Symbol.iterator](),
|
|
48967
|
+
for (var Qe = Pe[Symbol.iterator](), Ke; !(Ge = (Ke = Qe.next()).done) && (We.push(Ke.value), !(ze && We.length === ze)); Ge = !0)
|
|
48957
48968
|
;
|
|
48958
48969
|
} catch (Me) {
|
|
48959
|
-
|
|
48970
|
+
Ze = !0, ft = Me;
|
|
48960
48971
|
} finally {
|
|
48961
48972
|
try {
|
|
48962
48973
|
!Ge && Qe.return && Qe.return();
|
|
48963
48974
|
} finally {
|
|
48964
|
-
if (
|
|
48975
|
+
if (Ze) throw ft;
|
|
48965
48976
|
}
|
|
48966
48977
|
}
|
|
48967
48978
|
return We;
|
|
@@ -49010,8 +49021,8 @@ function requireQuill() {
|
|
|
49010
49021
|
Se(this, Pe);
|
|
49011
49022
|
var Ge = ye(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, ze, We));
|
|
49012
49023
|
if (Array.isArray(Ge.options.container)) {
|
|
49013
|
-
var
|
|
49014
|
-
Ie(
|
|
49024
|
+
var Ze = document.createElement("div");
|
|
49025
|
+
Ie(Ze, Ge.options.container), ze.container.parentNode.insertBefore(Ze, ze.container), Ge.container = Ze;
|
|
49015
49026
|
} else if (typeof Ge.options.container == "string") {
|
|
49016
49027
|
var ft = Le ? ze.container.getRootNode() : document;
|
|
49017
49028
|
Ge.container = ft.querySelector(Ge.options.container);
|
|
@@ -49021,14 +49032,14 @@ function requireQuill() {
|
|
|
49021
49032
|
var Qe;
|
|
49022
49033
|
return Qe = De.error("Container required for toolbar", Ge.options), ye(Ge, Qe);
|
|
49023
49034
|
}
|
|
49024
|
-
return Ge.container.classList.add("ql-toolbar"), Ge.controls = [], Ge.handlers = {}, Object.keys(Ge.options.handlers).forEach(function(
|
|
49025
|
-
Ge.addHandler(
|
|
49026
|
-
}), [].forEach.call(Ge.container.querySelectorAll("button, select"), function(
|
|
49027
|
-
Ge.attach(
|
|
49028
|
-
}), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(
|
|
49029
|
-
|
|
49035
|
+
return Ge.container.classList.add("ql-toolbar"), Ge.controls = [], Ge.handlers = {}, Object.keys(Ge.options.handlers).forEach(function(Ke) {
|
|
49036
|
+
Ge.addHandler(Ke, Ge.options.handlers[Ke]);
|
|
49037
|
+
}), [].forEach.call(Ge.container.querySelectorAll("button, select"), function(Ke) {
|
|
49038
|
+
Ge.attach(Ke);
|
|
49039
|
+
}), Ge.quill.on(fe.default.events.EDITOR_CHANGE, function(Ke, Me) {
|
|
49040
|
+
Ke === fe.default.events.SELECTION_CHANGE && Ge.update(Me);
|
|
49030
49041
|
}), Ge.quill.on(fe.default.events.SCROLL_OPTIMIZE, function() {
|
|
49031
|
-
var
|
|
49042
|
+
var Ke = Ge.quill.selection.getRange(), Me = oe(Ke, 1), Be = Me[0];
|
|
49032
49043
|
Ge.update(Be);
|
|
49033
49044
|
}), Ge;
|
|
49034
49045
|
}
|
|
@@ -49040,66 +49051,66 @@ function requireQuill() {
|
|
|
49040
49051
|
}, {
|
|
49041
49052
|
key: "attach",
|
|
49042
49053
|
value: function(We) {
|
|
49043
|
-
var Ge = this,
|
|
49054
|
+
var Ge = this, Ze = [].find.call(We.classList, function(Qe) {
|
|
49044
49055
|
return Qe.indexOf("ql-") === 0;
|
|
49045
49056
|
});
|
|
49046
|
-
if (
|
|
49047
|
-
if (
|
|
49048
|
-
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[
|
|
49049
|
-
De.warn("ignoring attaching to disabled format",
|
|
49057
|
+
if (Ze) {
|
|
49058
|
+
if (Ze = Ze.slice(3), We.tagName === "BUTTON" && We.setAttribute("type", "button"), this.handlers[Ze] == null) {
|
|
49059
|
+
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[Ze] == null) {
|
|
49060
|
+
De.warn("ignoring attaching to disabled format", Ze, We);
|
|
49050
49061
|
return;
|
|
49051
49062
|
}
|
|
49052
|
-
if (he.default.query(
|
|
49053
|
-
De.warn("ignoring attaching to nonexistent format",
|
|
49063
|
+
if (he.default.query(Ze) == null) {
|
|
49064
|
+
De.warn("ignoring attaching to nonexistent format", Ze, We);
|
|
49054
49065
|
return;
|
|
49055
49066
|
}
|
|
49056
49067
|
}
|
|
49057
49068
|
var ft = We.tagName === "SELECT" ? "change" : "click";
|
|
49058
49069
|
We.addEventListener(ft, function(Qe) {
|
|
49059
|
-
var
|
|
49070
|
+
var Ke = void 0;
|
|
49060
49071
|
if (We.tagName === "SELECT") {
|
|
49061
49072
|
if (We.selectedIndex < 0) return;
|
|
49062
49073
|
var Me = We.options[We.selectedIndex];
|
|
49063
|
-
Me.hasAttribute("selected") ?
|
|
49074
|
+
Me.hasAttribute("selected") ? Ke = !1 : Ke = Me.value || !1;
|
|
49064
49075
|
} else
|
|
49065
|
-
We.classList.contains("ql-active") ?
|
|
49076
|
+
We.classList.contains("ql-active") ? Ke = !1 : Ke = We.value || !We.hasAttribute("value"), Qe.preventDefault();
|
|
49066
49077
|
Ge.quill.focus();
|
|
49067
49078
|
var Be = Ge.quill.selection.getRange(), Ue = oe(Be, 1), Je = Ue[0];
|
|
49068
|
-
if (Ge.handlers[
|
|
49069
|
-
Ge.handlers[
|
|
49070
|
-
else if (he.default.query(
|
|
49071
|
-
if (
|
|
49072
|
-
Ge.quill.updateContents(new ce.default().retain(Je.index).delete(Je.length).insert(we({},
|
|
49079
|
+
if (Ge.handlers[Ze] != null)
|
|
49080
|
+
Ge.handlers[Ze].call(Ge, Ke);
|
|
49081
|
+
else if (he.default.query(Ze).prototype instanceof he.default.Embed) {
|
|
49082
|
+
if (Ke = prompt("Enter " + Ze), !Ke) return;
|
|
49083
|
+
Ge.quill.updateContents(new ce.default().retain(Je.index).delete(Je.length).insert(we({}, Ze, Ke)), fe.default.sources.USER);
|
|
49073
49084
|
} else
|
|
49074
|
-
Ge.quill.format(
|
|
49085
|
+
Ge.quill.format(Ze, Ke, fe.default.sources.USER);
|
|
49075
49086
|
Ge.update(Je);
|
|
49076
|
-
}), this.controls.push([
|
|
49087
|
+
}), this.controls.push([Ze, We]);
|
|
49077
49088
|
}
|
|
49078
49089
|
}
|
|
49079
49090
|
}, {
|
|
49080
49091
|
key: "update",
|
|
49081
49092
|
value: function(We) {
|
|
49082
49093
|
var Ge = We == null ? {} : this.quill.getFormat(We);
|
|
49083
|
-
this.controls.forEach(function(
|
|
49084
|
-
var ft = oe(
|
|
49085
|
-
if (
|
|
49094
|
+
this.controls.forEach(function(Ze) {
|
|
49095
|
+
var ft = oe(Ze, 2), Qe = ft[0], Ke = ft[1];
|
|
49096
|
+
if (Ke.tagName === "SELECT") {
|
|
49086
49097
|
var Me = void 0;
|
|
49087
49098
|
if (We == null)
|
|
49088
49099
|
Me = null;
|
|
49089
49100
|
else if (Ge[Qe] == null)
|
|
49090
|
-
Me =
|
|
49101
|
+
Me = Ke.querySelector("option[selected]");
|
|
49091
49102
|
else if (!Array.isArray(Ge[Qe])) {
|
|
49092
49103
|
var Be = Ge[Qe];
|
|
49093
|
-
typeof Be == "string" && (Be = Be.replace(/\"/g, '\\"')), Me =
|
|
49104
|
+
typeof Be == "string" && (Be = Be.replace(/\"/g, '\\"')), Me = Ke.querySelector('option[value="' + Be + '"]');
|
|
49094
49105
|
}
|
|
49095
|
-
Me == null ? (
|
|
49106
|
+
Me == null ? (Ke.value = "", Ke.selectedIndex = -1) : Me.selected = !0;
|
|
49096
49107
|
} else if (We == null)
|
|
49097
|
-
|
|
49098
|
-
else if (
|
|
49099
|
-
var Ue = Ge[Qe] ===
|
|
49100
|
-
|
|
49108
|
+
Ke.classList.remove("ql-active");
|
|
49109
|
+
else if (Ke.hasAttribute("value")) {
|
|
49110
|
+
var Ue = Ge[Qe] === Ke.getAttribute("value") || Ge[Qe] != null && Ge[Qe].toString() === Ke.getAttribute("value") || Ge[Qe] == null && !Ke.getAttribute("value");
|
|
49111
|
+
Ke.classList.toggle("ql-active", Ue);
|
|
49101
49112
|
} else
|
|
49102
|
-
|
|
49113
|
+
Ke.classList.toggle("ql-active", Ge[Qe] != null);
|
|
49103
49114
|
});
|
|
49104
49115
|
}
|
|
49105
49116
|
}]), Pe;
|
|
@@ -49116,8 +49127,8 @@ function requireQuill() {
|
|
|
49116
49127
|
if (typeof Ge == "string")
|
|
49117
49128
|
He(We, Ge);
|
|
49118
49129
|
else {
|
|
49119
|
-
var
|
|
49120
|
-
Array.isArray(ft) ? Ae(We,
|
|
49130
|
+
var Ze = Object.keys(Ge)[0], ft = Ge[Ze];
|
|
49131
|
+
Array.isArray(ft) ? Ae(We, Ze, ft) : He(We, Ze, ft);
|
|
49121
49132
|
}
|
|
49122
49133
|
}), qe.appendChild(We);
|
|
49123
49134
|
});
|
|
@@ -49125,8 +49136,8 @@ function requireQuill() {
|
|
|
49125
49136
|
function Ae(qe, Pe, ze) {
|
|
49126
49137
|
var We = document.createElement("select");
|
|
49127
49138
|
We.classList.add("ql-" + Pe), ze.forEach(function(Ge) {
|
|
49128
|
-
var
|
|
49129
|
-
Ge !== !1 ?
|
|
49139
|
+
var Ze = document.createElement("option");
|
|
49140
|
+
Ge !== !1 ? Ze.setAttribute("value", Ge) : Ze.setAttribute("selected", "selected"), We.appendChild(Ze);
|
|
49130
49141
|
}), qe.appendChild(We);
|
|
49131
49142
|
}
|
|
49132
49143
|
Fe.DEFAULTS = {
|
|
@@ -49150,8 +49161,8 @@ function requireQuill() {
|
|
|
49150
49161
|
indent: function(Pe) {
|
|
49151
49162
|
var ze = this.quill.getSelection(), We = this.quill.getFormat(ze), Ge = parseInt(We.indent || 0);
|
|
49152
49163
|
if (Pe === "+1" || Pe === "-1") {
|
|
49153
|
-
var
|
|
49154
|
-
We.direction === "rtl" && (
|
|
49164
|
+
var Ze = Pe === "+1" ? 1 : -1;
|
|
49165
|
+
We.direction === "rtl" && (Ze *= -1), this.quill.format("indent", Ge + Ze, fe.default.sources.USER);
|
|
49155
49166
|
}
|
|
49156
49167
|
},
|
|
49157
49168
|
link: function(Pe) {
|
|
@@ -49369,13 +49380,13 @@ function requireQuill() {
|
|
|
49369
49380
|
function Ie(Ae, qe) {
|
|
49370
49381
|
var Pe = [], ze = !0, We = !1, Ge = void 0;
|
|
49371
49382
|
try {
|
|
49372
|
-
for (var
|
|
49383
|
+
for (var Ze = Ae[Symbol.iterator](), ft; !(ze = (ft = Ze.next()).done) && (Pe.push(ft.value), !(qe && Pe.length === qe)); ze = !0)
|
|
49373
49384
|
;
|
|
49374
49385
|
} catch (Qe) {
|
|
49375
49386
|
We = !0, Ge = Qe;
|
|
49376
49387
|
} finally {
|
|
49377
49388
|
try {
|
|
49378
|
-
!ze &&
|
|
49389
|
+
!ze && Ze.return && Ze.return();
|
|
49379
49390
|
} finally {
|
|
49380
49391
|
if (We) throw Ge;
|
|
49381
49392
|
}
|
|
@@ -49486,9 +49497,9 @@ function requireQuill() {
|
|
|
49486
49497
|
}), this.quill.on(pe.default.events.SELECTION_CHANGE, function(ze, We, Ge) {
|
|
49487
49498
|
if (ze != null) {
|
|
49488
49499
|
if (ze.length === 0 && Ge === pe.default.sources.USER) {
|
|
49489
|
-
var
|
|
49500
|
+
var Ze = Pe.quill.scroll.descendant(ge.default, ze.index), ft = oe(Ze, 2), Qe = ft[0], Ke = ft[1];
|
|
49490
49501
|
if (Qe != null) {
|
|
49491
|
-
Pe.linkRange = new ve.Range(ze.index -
|
|
49502
|
+
Pe.linkRange = new ve.Range(ze.index - Ke, Qe.length());
|
|
49492
49503
|
var Me = ge.default.formats(Qe.domNode);
|
|
49493
49504
|
Pe.preview.textContent = Me, Pe.preview.setAttribute("href", Me), Pe.show(), Pe.position(Pe.quill.getBounds(Pe.linkRange));
|
|
49494
49505
|
return;
|
|
@@ -49514,7 +49525,7 @@ function requireQuill() {
|
|
|
49514
49525
|
Object.defineProperty(te, "__esModule", {
|
|
49515
49526
|
value: !0
|
|
49516
49527
|
});
|
|
49517
|
-
var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Le = re(69), De = $t(Le), Fe = re(27), He = $t(Fe), Ie = re(70), Ae = $t(Ie), qe = re(71), Pe = $t(qe), ze = re(72), We = $t(ze), Ge = re(73),
|
|
49528
|
+
var oe = re(29), ne = $t(oe), de = re(37), ce = re(39), ue = re(65), he = re(66), pe = $t(he), fe = re(67), be = $t(fe), me = re(68), ge = $t(me), ve = re(38), _e = re(26), we = re(40), Se = re(41), ye = re(57), Ce = $t(ye), Le = re(69), De = $t(Le), Fe = re(27), He = $t(Fe), Ie = re(70), Ae = $t(Ie), qe = re(71), Pe = $t(qe), ze = re(72), We = $t(ze), Ge = re(73), Ze = $t(Ge), ft = re(74), Qe = $t(ft), Ke = re(13), Me = $t(Ke), Be = re(75), Ue = $t(Be), Je = re(76), Xe = $t(Je), Ve = re(58), Ye = $t(Ve), rt = re(42), ot = $t(rt), _t = re(28), kt = $t(_t), It = re(60), qt = $t(It), Nt = re(61), Vt = $t(Nt), rs = re(62), Yt = $t(rs), gt = re(109), mt = $t(gt), xt = re(63), Ct = $t(xt);
|
|
49518
49529
|
function $t(Mt) {
|
|
49519
49530
|
return Mt && Mt.__esModule ? Mt : { default: Mt };
|
|
49520
49531
|
}
|
|
@@ -49545,13 +49556,13 @@ function requireQuill() {
|
|
|
49545
49556
|
"formats/header": be.default,
|
|
49546
49557
|
"formats/list": ge.default,
|
|
49547
49558
|
"formats/bold": Ce.default,
|
|
49548
|
-
"formats/code":
|
|
49559
|
+
"formats/code": Ke.Code,
|
|
49549
49560
|
"formats/italic": De.default,
|
|
49550
49561
|
"formats/link": He.default,
|
|
49551
49562
|
"formats/script": Ae.default,
|
|
49552
49563
|
"formats/strike": Pe.default,
|
|
49553
49564
|
"formats/underline": We.default,
|
|
49554
|
-
"formats/image":
|
|
49565
|
+
"formats/image": Ze.default,
|
|
49555
49566
|
"formats/video": Qe.default,
|
|
49556
49567
|
"formats/list/item": me.ListItem,
|
|
49557
49568
|
"modules/formula": Ue.default,
|
|
@@ -50642,8 +50653,8 @@ function requireQuill() {
|
|
|
50642
50653
|
if (Ge.length === 1)
|
|
50643
50654
|
Ae.position(Ae.quill.getBounds(Pe));
|
|
50644
50655
|
else {
|
|
50645
|
-
var
|
|
50646
|
-
Ae.position(
|
|
50656
|
+
var Ze = Ge[Ge.length - 1], ft = Ae.quill.getIndex(Ze), Qe = Math.min(Ze.length() - 1, Pe.index + Pe.length - ft), Ke = Ae.quill.getBounds(new be.Range(ft, Qe));
|
|
50657
|
+
Ae.position(Ke);
|
|
50647
50658
|
}
|
|
50648
50659
|
} else document.activeElement !== Ae.textbox && Ae.quill.hasFocus() && Ae.hide();
|
|
50649
50660
|
}), Ae;
|
|
@@ -51786,4 +51797,4 @@ export {
|
|
|
51786
51797
|
l as y,
|
|
51787
51798
|
PrimariaInteractionService as z
|
|
51788
51799
|
};
|
|
51789
|
-
//# sourceMappingURL=index-
|
|
51800
|
+
//# sourceMappingURL=index-DT9s-B7p.js.map
|