@uxland/primary-shell 5.3.9 → 5.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +532 -538
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +25 -25
- package/dist/index.umd.cjs.map +1 -1
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/are-same-diagnostics.d.ts +3 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/are-same-diagnostics.test.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.d.ts +4 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.test.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/validation/is-valid-professional.d.ts +1 -0
- package/dist/primary/shell/src/internal-plugins/activity-history/activity-history-item/domain/validation/utils.d.ts +4 -0
- package/package.json +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/domain/business-rules.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/are-same-diagnostics.test.ts +48 -0
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/are-same-diagnostics.ts +15 -0
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.test.ts +79 -0
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/diagnostics/has-valid-diagnostics.ts +20 -0
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/is-valid-basic-history-item.ts +1 -11
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/is-valid-full-history-item.ts +3 -39
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/is-valid-professional.ts +16 -0
- package/src/internal-plugins/activity-history/activity-history-item/domain/validation/utils.ts +11 -0
- package/src/internal-plugins/activity-history/activity-history-item/filter/UI/activity-history-filters/template.ts +1 -1
- package/src/internal-plugins/activity-history/activity-history-item/filter/custom-filters/add-custom-filters/reducer.ts +5 -1
- package/src/internal-plugins/activity-history/activity-history-item/list/UI/timeline/template.ts +21 -12
- package/src/internal-plugins/activity-history/activity-history-item/list/group-history-items/group-history-items.test.ts +43 -2
- package/src/internal-plugins/activity-history/activity-history-item/list/group-history-items/group-history-items.ts +42 -46
package/dist/index.js
CHANGED
|
@@ -108,24 +108,24 @@ var Reflect$1;
|
|
|
108
108
|
return He(Et) || (Et = Ct(Et)), Be(it, ft, Et);
|
|
109
109
|
}
|
|
110
110
|
W("hasMetadata", Ce);
|
|
111
|
-
function
|
|
111
|
+
function Ie(it, ft, Et) {
|
|
112
112
|
if (!Ke(ft))
|
|
113
113
|
throw new TypeError();
|
|
114
114
|
return He(Et) || (Et = Ct(Et)), Ve(it, ft, Et);
|
|
115
115
|
}
|
|
116
|
-
W("hasOwnMetadata",
|
|
116
|
+
W("hasOwnMetadata", Ie);
|
|
117
117
|
function De(it, ft, Et) {
|
|
118
118
|
if (!Ke(ft))
|
|
119
119
|
throw new TypeError();
|
|
120
120
|
return He(Et) || (Et = Ct(Et)), Je(it, ft, Et);
|
|
121
121
|
}
|
|
122
122
|
W("getMetadata", De);
|
|
123
|
-
function
|
|
123
|
+
function Le(it, ft, Et) {
|
|
124
124
|
if (!Ke(ft))
|
|
125
125
|
throw new TypeError();
|
|
126
126
|
return He(Et) || (Et = Ct(Et)), Ye(it, ft, Et);
|
|
127
127
|
}
|
|
128
|
-
W("getOwnMetadata",
|
|
128
|
+
W("getOwnMetadata", Le);
|
|
129
129
|
function ze(it, ft) {
|
|
130
130
|
if (!Ke(it))
|
|
131
131
|
throw new TypeError();
|
|
@@ -3497,7 +3497,7 @@ function isArrayBufferView(X) {
|
|
|
3497
3497
|
let W;
|
|
3498
3498
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? W = ArrayBuffer.isView(X) : W = X && X.buffer && isArrayBuffer(X.buffer), W;
|
|
3499
3499
|
}
|
|
3500
|
-
const isString = typeOfTest("string"), isFunction = typeOfTest("function"), isNumber = typeOfTest("number"), isObject = (X) => X !== null && typeof X == "object", isBoolean$1 = (X) => X === !0 || X === !1, isPlainObject$2 = (X) => {
|
|
3500
|
+
const isString$1 = typeOfTest("string"), isFunction = typeOfTest("function"), isNumber = typeOfTest("number"), isObject = (X) => X !== null && typeof X == "object", isBoolean$1 = (X) => X === !0 || X === !1, isPlainObject$2 = (X) => {
|
|
3501
3501
|
if (kindOf(X) !== "object")
|
|
3502
3502
|
return !1;
|
|
3503
3503
|
const W = getPrototypeOf$1(X);
|
|
@@ -3660,7 +3660,7 @@ const toJSONObject = (X) => {
|
|
|
3660
3660
|
isBuffer,
|
|
3661
3661
|
isFormData,
|
|
3662
3662
|
isArrayBufferView,
|
|
3663
|
-
isString,
|
|
3663
|
+
isString: isString$1,
|
|
3664
3664
|
isNumber,
|
|
3665
3665
|
isBoolean: isBoolean$1,
|
|
3666
3666
|
isObject,
|
|
@@ -4714,13 +4714,13 @@ const getBodyLength = async (X) => {
|
|
|
4714
4714
|
method: "POST",
|
|
4715
4715
|
body: te,
|
|
4716
4716
|
duplex: "half"
|
|
4717
|
-
}),
|
|
4718
|
-
if (utils$1.isFormData(te) && (
|
|
4719
|
-
const [De,
|
|
4717
|
+
}), Ie;
|
|
4718
|
+
if (utils$1.isFormData(te) && (Ie = Ce.headers.get("content-type")) && he.setContentType(Ie), Ce.body) {
|
|
4719
|
+
const [De, Le] = progressEventDecorator(
|
|
4720
4720
|
ve,
|
|
4721
4721
|
progressEventReducer(asyncDecorator(ue))
|
|
4722
4722
|
);
|
|
4723
|
-
te = trackStream(Ce.body, DEFAULT_CHUNK_SIZE, De,
|
|
4723
|
+
te = trackStream(Ce.body, DEFAULT_CHUNK_SIZE, De, Le);
|
|
4724
4724
|
}
|
|
4725
4725
|
}
|
|
4726
4726
|
utils$1.isString(pe) || (pe = pe ? "include" : "omit");
|
|
@@ -4741,21 +4741,21 @@ const getBodyLength = async (X) => {
|
|
|
4741
4741
|
["status", "statusText", "headers"].forEach((ze) => {
|
|
4742
4742
|
Ce[ze] = we[ze];
|
|
4743
4743
|
});
|
|
4744
|
-
const
|
|
4745
|
-
|
|
4744
|
+
const Ie = utils$1.toFiniteNumber(we.headers.get("content-length")), [De, Le] = de && progressEventDecorator(
|
|
4745
|
+
Ie,
|
|
4746
4746
|
progressEventReducer(asyncDecorator(de), !0)
|
|
4747
4747
|
) || [];
|
|
4748
4748
|
we = new Response(
|
|
4749
4749
|
trackStream(we.body, DEFAULT_CHUNK_SIZE, De, () => {
|
|
4750
|
-
|
|
4750
|
+
Le && Le(), me && me();
|
|
4751
4751
|
}),
|
|
4752
4752
|
Ce
|
|
4753
4753
|
);
|
|
4754
4754
|
}
|
|
4755
4755
|
ce = ce || "text";
|
|
4756
4756
|
let _e = await resolvers[utils$1.findKey(resolvers, ce) || "text"](we, X);
|
|
4757
|
-
return !Se && me && me(), await new Promise((Ce,
|
|
4758
|
-
settle(Ce,
|
|
4757
|
+
return !Se && me && me(), await new Promise((Ce, Ie) => {
|
|
4758
|
+
settle(Ce, Ie, {
|
|
4759
4759
|
data: _e,
|
|
4760
4760
|
headers: AxiosHeaders.from(we.headers),
|
|
4761
4761
|
status: we.status,
|
|
@@ -5429,17 +5429,17 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5429
5429
|
}
|
|
5430
5430
|
}, [J, W]);
|
|
5431
5431
|
const _e = (qe) => {
|
|
5432
|
-
|
|
5432
|
+
Ie(he, qe);
|
|
5433
5433
|
}, Ce = (qe) => {
|
|
5434
|
-
|
|
5435
|
-
},
|
|
5434
|
+
Ie(qe, !0);
|
|
5435
|
+
}, Ie = (qe, Ae) => {
|
|
5436
5436
|
setTimeout(() => {
|
|
5437
5437
|
ne({
|
|
5438
5438
|
result: Ae ? qe : void 0,
|
|
5439
5439
|
confirmed: Ae
|
|
5440
5440
|
}), document.body.removeChild(oe), document.head.removeChild(de), window.removeEventListener("keydown", we);
|
|
5441
5441
|
}, 300);
|
|
5442
|
-
}, De = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary",
|
|
5442
|
+
}, De = () => re.state === "error" ? "error" : re.state === "success" ? "success" : re.state === "info" ? "primary" : re.state === "alert" ? "warning" : "primary", Le = () => re.state ? "alternative-dark" : "secondary", ze = () => ye ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: be }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
5443
5443
|
J,
|
|
5444
5444
|
{
|
|
5445
5445
|
data: W,
|
|
@@ -5476,7 +5476,7 @@ class ParimariaInteractionServiceImpl extends PrimariaInteractionService {
|
|
|
5476
5476
|
label: re.cancelButtonText,
|
|
5477
5477
|
onClick: () => _e(!1),
|
|
5478
5478
|
size: "md",
|
|
5479
|
-
variant:
|
|
5479
|
+
variant: Le()
|
|
5480
5480
|
}
|
|
5481
5481
|
),
|
|
5482
5482
|
re.showConfirmButton && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -5772,9 +5772,9 @@ function peg$parse(X, W) {
|
|
|
5772
5772
|
return __assign$4({ type: TYPE.pound }, Ei());
|
|
5773
5773
|
}, he = xi("argumentElement"), pe = "{", fe = _i("{", !1), ge = "}", be = _i("}", !1), me = function(Oe) {
|
|
5774
5774
|
return __assign$4({ type: TYPE.argument, value: Oe }, Ei());
|
|
5775
|
-
}, ve = xi("numberSkeletonId"), ye = /^['\/{}]/, we = Ti(["'", "/", "{", "}"], !1, !1), Se = jr(), _e = xi("numberSkeletonTokenOption"), Ce = "/",
|
|
5775
|
+
}, ve = xi("numberSkeletonId"), ye = /^['\/{}]/, we = Ti(["'", "/", "{", "}"], !1, !1), Se = jr(), _e = xi("numberSkeletonTokenOption"), Ce = "/", Ie = _i("/", !1), De = function(Oe) {
|
|
5776
5776
|
return Oe;
|
|
5777
|
-
},
|
|
5777
|
+
}, Le = xi("numberSkeletonToken"), ze = function(Oe, Ue) {
|
|
5778
5778
|
return { stem: Oe, options: Ue };
|
|
5779
5779
|
}, qe = function(Oe) {
|
|
5780
5780
|
return __assign$4({ type: 0, tokens: Oe }, Ei());
|
|
@@ -5949,7 +5949,7 @@ function peg$parse(X, W) {
|
|
|
5949
5949
|
}
|
|
5950
5950
|
function mr() {
|
|
5951
5951
|
var Oe, Ue, tt;
|
|
5952
|
-
return At++, Oe = Ne, X.charCodeAt(Ne) === 47 ? (Ue = Ce, Ne++) : (Ue = J, At === 0 && It(
|
|
5952
|
+
return At++, Oe = Ne, X.charCodeAt(Ne) === 47 ? (Ue = Ce, Ne++) : (Ue = J, At === 0 && It(Ie)), Ue !== J ? (tt = gr(), tt !== J ? (ni = Oe, Ue = De(tt), Oe = Ue) : (Ne = Oe, Oe = J)) : (Ne = Oe, Oe = J), At--, Oe === J && (Ue = J, At === 0 && It(_e)), Oe;
|
|
5953
5953
|
}
|
|
5954
5954
|
function br() {
|
|
5955
5955
|
var Oe, Ue, tt, vt, Ot;
|
|
@@ -5962,7 +5962,7 @@ function peg$parse(X, W) {
|
|
|
5962
5962
|
Ne = Oe, Oe = J;
|
|
5963
5963
|
else
|
|
5964
5964
|
Ne = Oe, Oe = J;
|
|
5965
|
-
return At--, Oe === J && (Ue = J, At === 0 && It(
|
|
5965
|
+
return At--, Oe === J && (Ue = J, At === 0 && It(Le)), Oe;
|
|
5966
5966
|
}
|
|
5967
5967
|
function Kr() {
|
|
5968
5968
|
var Oe, Ue, tt;
|
|
@@ -10364,11 +10364,11 @@ function createSelectorCreator(X, ...W) {
|
|
|
10364
10364
|
);
|
|
10365
10365
|
}, ...ve), _e = ge(function() {
|
|
10366
10366
|
oe++;
|
|
10367
|
-
const
|
|
10367
|
+
const Ie = collectInputSelectorResults(
|
|
10368
10368
|
we,
|
|
10369
10369
|
arguments
|
|
10370
10370
|
);
|
|
10371
|
-
return de = Se.apply(null,
|
|
10371
|
+
return de = Se.apply(null, Ie), de;
|
|
10372
10372
|
}, ...ye);
|
|
10373
10373
|
return Object.assign(_e, {
|
|
10374
10374
|
resultFunc: ce,
|
|
@@ -10656,17 +10656,17 @@ function buildCreateSlice({
|
|
|
10656
10656
|
isAsyncThunkSliceReducerDefinition(_e) ? handleThunkCaseReducerDefinition(Ce, _e, he, W) : handleNormalReducerDefinition(Ce, _e, he);
|
|
10657
10657
|
});
|
|
10658
10658
|
function pe() {
|
|
10659
|
-
const [Se = {}, _e = [], Ce = void 0] = typeof re.extraReducers == "function" ? executeReducerBuilderCallback(re.extraReducers) : [re.extraReducers],
|
|
10659
|
+
const [Se = {}, _e = [], Ce = void 0] = typeof re.extraReducers == "function" ? executeReducerBuilderCallback(re.extraReducers) : [re.extraReducers], Ie = {
|
|
10660
10660
|
...Se,
|
|
10661
10661
|
...ce.sliceCaseReducersByType
|
|
10662
10662
|
};
|
|
10663
10663
|
return createReducer(re.initialState, (De) => {
|
|
10664
|
-
for (let
|
|
10665
|
-
De.addCase(
|
|
10666
|
-
for (let
|
|
10667
|
-
De.addMatcher(
|
|
10668
|
-
for (let
|
|
10669
|
-
De.addMatcher(
|
|
10664
|
+
for (let Le in Ie)
|
|
10665
|
+
De.addCase(Le, Ie[Le]);
|
|
10666
|
+
for (let Le of ce.sliceMatchers)
|
|
10667
|
+
De.addMatcher(Le.matcher, Le.reducer);
|
|
10668
|
+
for (let Le of _e)
|
|
10669
|
+
De.addMatcher(Le.matcher, Le.reducer);
|
|
10670
10670
|
Ce && De.addDefaultCase(Ce);
|
|
10671
10671
|
});
|
|
10672
10672
|
}
|
|
@@ -10680,12 +10680,12 @@ function buildCreateSlice({
|
|
|
10680
10680
|
}
|
|
10681
10681
|
function ye(Se, _e = !1) {
|
|
10682
10682
|
function Ce(De) {
|
|
10683
|
-
let
|
|
10684
|
-
return typeof
|
|
10683
|
+
let Le = De[Se];
|
|
10684
|
+
return typeof Le > "u" && _e && (Le = ve()), Le;
|
|
10685
10685
|
}
|
|
10686
|
-
function
|
|
10687
|
-
const
|
|
10688
|
-
return getOrInsertComputed(
|
|
10686
|
+
function Ie(De = fe) {
|
|
10687
|
+
const Le = getOrInsertComputed(ge, _e, () => /* @__PURE__ */ new WeakMap());
|
|
10688
|
+
return getOrInsertComputed(Le, De, () => {
|
|
10689
10689
|
const ze = {};
|
|
10690
10690
|
for (const [qe, Ae] of Object.entries(re.selectors ?? {}))
|
|
10691
10691
|
ze[qe] = wrapSelector(Ae, De, ve, _e);
|
|
@@ -10694,9 +10694,9 @@ function buildCreateSlice({
|
|
|
10694
10694
|
}
|
|
10695
10695
|
return {
|
|
10696
10696
|
reducerPath: Se,
|
|
10697
|
-
getSelectors:
|
|
10697
|
+
getSelectors: Ie,
|
|
10698
10698
|
get selectors() {
|
|
10699
|
-
return
|
|
10699
|
+
return Ie(Ce);
|
|
10700
10700
|
},
|
|
10701
10701
|
selectSlice: Ce
|
|
10702
10702
|
};
|
|
@@ -10712,13 +10712,13 @@ function buildCreateSlice({
|
|
|
10712
10712
|
reducerPath: _e,
|
|
10713
10713
|
...Ce
|
|
10714
10714
|
} = {}) {
|
|
10715
|
-
const
|
|
10715
|
+
const Ie = _e ?? oe;
|
|
10716
10716
|
return Se.inject({
|
|
10717
|
-
reducerPath:
|
|
10717
|
+
reducerPath: Ie,
|
|
10718
10718
|
reducer: me
|
|
10719
10719
|
}, Ce), {
|
|
10720
10720
|
...we,
|
|
10721
|
-
...ye(
|
|
10721
|
+
...ye(Ie, !0)
|
|
10722
10722
|
};
|
|
10723
10723
|
}
|
|
10724
10724
|
};
|
|
@@ -10973,7 +10973,7 @@ function setCommonFilterValueReducer(X, W) {
|
|
|
10973
10973
|
} : J);
|
|
10974
10974
|
}
|
|
10975
10975
|
function addCustomFiltersReducer(X, W) {
|
|
10976
|
-
X.filters = [...X.filters, W.payload];
|
|
10976
|
+
X.filters.some((te) => te.id === W.payload.id) || (X.filters = [...X.filters, W.payload]);
|
|
10977
10977
|
}
|
|
10978
10978
|
function setCustomFilterGroupValueReducer(X, W) {
|
|
10979
10979
|
X.filters = X.filters.map((J) => J.id === W.payload.id ? {
|
|
@@ -11130,15 +11130,12 @@ const bootstrapInjectAsyncHistoryItems = (X) => {
|
|
|
11130
11130
|
request$g = X.registerRequest(addAsyncHistoryItemsCommand, InjectAsyncHistoryItemsHandler);
|
|
11131
11131
|
}, teardownInjectAsyncHistoryItems = () => {
|
|
11132
11132
|
request$g == null || request$g.dispose();
|
|
11133
|
-
},
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
return X && W(X.id) && // Verifica que "id" esté informado
|
|
11140
|
-
J(X.date);
|
|
11141
|
-
}, ensureAreValidBasicActivityHistoryItems = (X) => {
|
|
11133
|
+
}, isString = (X) => typeof X == "string" && X.trim() !== "", isValidDateString = (X) => {
|
|
11134
|
+
if (typeof X != "string" || X.trim() === "") return !1;
|
|
11135
|
+
const W = new Date(X);
|
|
11136
|
+
return W instanceof Date && !Number.isNaN(W.getTime());
|
|
11137
|
+
}, isValidBasicActivityHistoryItem = (X) => X && isString(X.id) && // Verifica que "id" esté informado
|
|
11138
|
+
isValidDateString(X.date), ensureAreValidBasicActivityHistoryItems = (X) => {
|
|
11142
11139
|
if (!X.every(isValidBasicActivityHistoryItem))
|
|
11143
11140
|
throw console.error("Invalid activity history items", X), new Error("Invalid activity history items");
|
|
11144
11141
|
return X;
|
|
@@ -11555,16 +11552,40 @@ const activityHistoryFiltersSelector = (X) => X.activityHistoryFilters.filters,
|
|
|
11555
11552
|
return (de = oe.enabledValues) == null ? void 0 : de.length;
|
|
11556
11553
|
})
|
|
11557
11554
|
})).filter((W) => W.filters.length > 0)
|
|
11558
|
-
),
|
|
11559
|
-
var ne, oe, de, ue, ce, he, pe, fe, ge, be, me, ve, ye, we;
|
|
11560
|
-
const J = ((ne = X.professional) == null ? void 0 : ne.id) === ((oe = W.professional) == null ? void 0 : oe.id) && ((de = X.professional) == null ? void 0 : de.role.id) === ((ue = W.professional) == null ? void 0 : ue.role.id) && ((ce = X.professional) == null ? void 0 : ce.speciality.id) === ((he = W.professional) == null ? void 0 : he.speciality.id), te = ((pe = X.ep) == null ? void 0 : pe.id) === ((fe = W.ep) == null ? void 0 : fe.id) && ((ge = X.up) == null ? void 0 : ge.id) === ((be = W.up) == null ? void 0 : be.id) && ((me = X.center) == null ? void 0 : me.id) === ((ve = W.center) == null ? void 0 : ve.id) && ((ye = X.service) == null ? void 0 : ye.id) === ((we = W.service) == null ? void 0 : we.id), re = new Date(X.date).toDateString() === new Date(W.date).toDateString();
|
|
11561
|
-
return J && te && re;
|
|
11562
|
-
}, withinEightHours = (X, W) => Math.abs(new Date(X).getTime() - new Date(W).getTime()) <= 8 * 60 * 60 * 1e3, areSameDiagnostics = (X, W) => {
|
|
11555
|
+
), areSameDiagnostics = (X, W) => {
|
|
11563
11556
|
if (X.length !== W.length)
|
|
11564
11557
|
return !1;
|
|
11565
11558
|
const J = X.map((re) => re.codi).sort(), te = W.map((re) => re.codi).sort();
|
|
11566
11559
|
return J.every((re, ne) => re === te[ne]);
|
|
11567
|
-
},
|
|
11560
|
+
}, hasValidDiagnostic = (X) => X != null && typeof X.codi == "string" && typeof X.cataleg == "string" && typeof X.descripcio == "string", hasValidDiagnostics = (X) => X == null ? !0 : Array.isArray(X) && X.every(hasValidDiagnostic), isSameVisit = (X, W) => {
|
|
11561
|
+
var ne, oe, de, ue, ce, he, pe, fe, ge, be, me, ve, ye, we, Se, _e, Ce, Ie;
|
|
11562
|
+
const J = ((ne = X.professional) == null ? void 0 : ne.id) === ((oe = W.professional) == null ? void 0 : oe.id) && ((ue = (de = X.professional) == null ? void 0 : de.role) == null ? void 0 : ue.id) === ((he = (ce = W.professional) == null ? void 0 : ce.role) == null ? void 0 : he.id) && ((fe = (pe = X.professional) == null ? void 0 : pe.speciality) == null ? void 0 : fe.id) === ((be = (ge = W.professional) == null ? void 0 : ge.speciality) == null ? void 0 : be.id), te = ((me = X.ep) == null ? void 0 : me.id) === ((ve = W.ep) == null ? void 0 : ve.id) && ((ye = X.up) == null ? void 0 : ye.id) === ((we = W.up) == null ? void 0 : we.id) && ((Se = X.center) == null ? void 0 : Se.id) === ((_e = W.center) == null ? void 0 : _e.id) && ((Ce = X.service) == null ? void 0 : Ce.id) === ((Ie = W.service) == null ? void 0 : Ie.id), re = new Date(X.date).toDateString() === new Date(W.date).toDateString();
|
|
11563
|
+
return J && te && re;
|
|
11564
|
+
}, withinEightHours = (X, W) => Math.abs(new Date(X).getTime() - new Date(W).getTime()) <= 8 * 60 * 60 * 1e3;
|
|
11565
|
+
function groupByValidDiagnostics(X) {
|
|
11566
|
+
X.forEach((W) => {
|
|
11567
|
+
const J = [], te = [];
|
|
11568
|
+
W.items.forEach((re) => {
|
|
11569
|
+
const ne = re.diagnostics;
|
|
11570
|
+
if ((ne == null ? void 0 : ne.length) > 0 && hasValidDiagnostics(ne)) {
|
|
11571
|
+
let de = !1;
|
|
11572
|
+
for (const ue of J) {
|
|
11573
|
+
const ce = ue.items[0];
|
|
11574
|
+
if (areSameDiagnostics(ce.diagnostics, ne)) {
|
|
11575
|
+
ue.items.push(re), de = !0;
|
|
11576
|
+
break;
|
|
11577
|
+
}
|
|
11578
|
+
}
|
|
11579
|
+
de || J.push({
|
|
11580
|
+
idSubGroup: crypto.randomUUID(),
|
|
11581
|
+
items: [re]
|
|
11582
|
+
});
|
|
11583
|
+
} else
|
|
11584
|
+
te.push(re);
|
|
11585
|
+
}), W.items = te, W.subGroups = J;
|
|
11586
|
+
});
|
|
11587
|
+
}
|
|
11588
|
+
const groupActivityHistoryItems = (X) => {
|
|
11568
11589
|
const W = [];
|
|
11569
11590
|
return X == null || X.forEach((J) => {
|
|
11570
11591
|
let te = !1;
|
|
@@ -11585,31 +11606,11 @@ const activityHistoryFiltersSelector = (X) => X.activityHistoryFilters.filters,
|
|
|
11585
11606
|
}
|
|
11586
11607
|
}
|
|
11587
11608
|
te || W.push({
|
|
11588
|
-
idGroup:
|
|
11609
|
+
idGroup: crypto.randomUUID(),
|
|
11589
11610
|
items: [J],
|
|
11590
11611
|
sameVisit: !1
|
|
11591
11612
|
});
|
|
11592
|
-
}), W
|
|
11593
|
-
const te = [], re = [];
|
|
11594
|
-
J.items.forEach((ne) => {
|
|
11595
|
-
var oe;
|
|
11596
|
-
if (((oe = ne.diagnostics) == null ? void 0 : oe.length) > 0) {
|
|
11597
|
-
let de = !1;
|
|
11598
|
-
for (const ue of te) {
|
|
11599
|
-
const ce = ue.items[0];
|
|
11600
|
-
if (areSameDiagnostics(ce.diagnostics, ne.diagnostics)) {
|
|
11601
|
-
ue.items.push(ne), de = !0;
|
|
11602
|
-
break;
|
|
11603
|
-
}
|
|
11604
|
-
}
|
|
11605
|
-
de || te.push({
|
|
11606
|
-
idSubGroup: Math.random().toString(36).substr(2, 9),
|
|
11607
|
-
items: [ne]
|
|
11608
|
-
});
|
|
11609
|
-
} else
|
|
11610
|
-
re.push(ne);
|
|
11611
|
-
}), J.items = re, J.subGroups = te;
|
|
11612
|
-
}), W;
|
|
11613
|
+
}), groupByValidDiagnostics(W), W;
|
|
11613
11614
|
}, sortGroupsByMostRecentDate = (X) => {
|
|
11614
11615
|
const W = (ne) => ne.reduce((oe, de) => {
|
|
11615
11616
|
const ue = new Date(de.date);
|
|
@@ -14404,14 +14405,14 @@ function parse(X, W, J, te) {
|
|
|
14404
14405
|
isProtectedWeekYearToken(Se) && warnOrThrowProtectedError(Se, W, X), isProtectedDayOfYearToken(Se) && warnOrThrowProtectedError(Se, W, X);
|
|
14405
14406
|
const _e = Se[0], Ce = parsers[_e];
|
|
14406
14407
|
if (Ce) {
|
|
14407
|
-
const { incompatibleTokens:
|
|
14408
|
-
if (Array.isArray(
|
|
14409
|
-
const
|
|
14410
|
-
(ze) =>
|
|
14408
|
+
const { incompatibleTokens: Ie } = Ce;
|
|
14409
|
+
if (Array.isArray(Ie)) {
|
|
14410
|
+
const Le = pe.find(
|
|
14411
|
+
(ze) => Ie.includes(ze.token) || ze.token === _e
|
|
14411
14412
|
);
|
|
14412
|
-
if (
|
|
14413
|
+
if (Le)
|
|
14413
14414
|
throw new RangeError(
|
|
14414
|
-
`The format string mustn't contain \`${
|
|
14415
|
+
`The format string mustn't contain \`${Le.fullToken}\` and \`${Se}\` at the same time`
|
|
14415
14416
|
);
|
|
14416
14417
|
} else if (Ce.incompatibleTokens === "*" && pe.length > 0)
|
|
14417
14418
|
throw new RangeError(
|
|
@@ -15037,7 +15038,8 @@ class VirtualizeDirective extends $t {
|
|
|
15037
15038
|
}
|
|
15038
15039
|
const virtualize = e$J(VirtualizeDirective);
|
|
15039
15040
|
function shouldShowRole(X) {
|
|
15040
|
-
|
|
15041
|
+
var W, J;
|
|
15042
|
+
return !((J = (W = X.professional) == null ? void 0 : W.speciality) != null && J.description);
|
|
15041
15043
|
}
|
|
15042
15044
|
const hasItemDivider = (X, W) => {
|
|
15043
15045
|
var te;
|
|
@@ -15132,16 +15134,8 @@ const hasItemDivider = (X, W) => {
|
|
|
15132
15134
|
</div>
|
|
15133
15135
|
` : D$1, renderProfessionalValues = (X, W) => {
|
|
15134
15136
|
if (!W.professional) return D$1;
|
|
15135
|
-
const J = shouldShowRole(W), te = [
|
|
15136
|
-
|
|
15137
|
-
J ? X.highlighted(W.professional.role.description) : null,
|
|
15138
|
-
X.highlighted(W.up.description),
|
|
15139
|
-
X.highlighted(W.professional.speciality.description),
|
|
15140
|
-
X.highlighted(W.service.description)
|
|
15141
|
-
].filter(Boolean);
|
|
15142
|
-
return te.map(
|
|
15143
|
-
(ne, oe) => ke$1`${ne}${oe < te.length - 1 ? " | " : ""}`
|
|
15144
|
-
);
|
|
15137
|
+
const J = shouldShowRole(W), te = [];
|
|
15138
|
+
return te.push(X.highlighted(W.professional.name)), J && W.professional.role && te.push(X.highlighted(W.professional.role.description)), W.up && te.push(X.highlighted(W.up.description)), W.professional.speciality && te.push(X.highlighted(W.professional.speciality.description)), W.service && te.push(X.highlighted(W.service.description)), te.map((re, ne) => ke$1`${re}${ne < te.length - 1 ? " | " : ""}`);
|
|
15145
15139
|
}, diagnosticHeaderTemplate = (X) => X && ke$1`
|
|
15146
15140
|
<div class="diagnostics__header">
|
|
15147
15141
|
|
|
@@ -15421,7 +15415,7 @@ const styles$c = ".filters-sidebar{padding:8px 4px;border-right:1px solid rgb(18
|
|
|
15421
15415
|
<div class="filter-container">
|
|
15422
15416
|
${Qt(X.commonFilters, (J) => ke$1`<div class="filter">${getFilterTemplate(J, X._onChangeCommonFilterValue.bind(X))}</div> `)}
|
|
15423
15417
|
${X.diagnosticFilter && ke$1`<div class="filter">
|
|
15424
|
-
<dss-input-dropdown icon="" multiple dropdownFixed type="default" .elements=${(W = X.diagnosticFilter) == null ? void 0 : W.values} @onInputDropdownChange=${X._handleDiagnosticFilterChange} .selectedValue=${X.diagnosticFilterEnabledValues}>
|
|
15418
|
+
<dss-input-dropdown icon="" multiple dropdownFixed type="default" .elements=${(W = X.diagnosticFilter) == null ? void 0 : W.values} @onInputDropdownChange=${X._handleDiagnosticFilterChange} .selectedValue=${X.diagnosticFilterEnabledValues} selectorStyle=${"max-height: 450px"}>
|
|
15425
15419
|
<label slot="label" for="diagnostic-filter">${X.diagnosticFilter.title}</label>
|
|
15426
15420
|
<input id="diagnostic-filter" slot="input" type="text" class="dss-input" autocomplete="off"/>
|
|
15427
15421
|
</dss-input-dropdown>
|
|
@@ -17351,8 +17345,8 @@ var toPaddingObject = function(W, J) {
|
|
|
17351
17345
|
function arrow(X) {
|
|
17352
17346
|
var W, J = X.state, te = X.name, re = X.options, ne = J.elements.arrow, oe = J.modifiersData.popperOffsets, de = getBasePlacement(J.placement), ue = getMainAxisFromPlacement(de), ce = [left, right].indexOf(de) >= 0, he = ce ? "height" : "width";
|
|
17353
17347
|
if (!(!ne || !oe)) {
|
|
17354
|
-
var pe = toPaddingObject(re.padding, J), fe = getLayoutRect(ne), ge = ue === "y" ? top : left, be = ue === "y" ? bottom : right, me = J.rects.reference[he] + J.rects.reference[ue] - oe[ue] - J.rects.popper[he], ve = oe[ue] - J.rects.reference[ue], ye = getOffsetParent(ne), we = ye ? ue === "y" ? ye.clientHeight || 0 : ye.clientWidth || 0 : 0, Se = me / 2 - ve / 2, _e = pe[ge], Ce = we - fe[he] - pe[be],
|
|
17355
|
-
J.modifiersData[te] = (W = {}, W[
|
|
17348
|
+
var pe = toPaddingObject(re.padding, J), fe = getLayoutRect(ne), ge = ue === "y" ? top : left, be = ue === "y" ? bottom : right, me = J.rects.reference[he] + J.rects.reference[ue] - oe[ue] - J.rects.popper[he], ve = oe[ue] - J.rects.reference[ue], ye = getOffsetParent(ne), we = ye ? ue === "y" ? ye.clientHeight || 0 : ye.clientWidth || 0 : 0, Se = me / 2 - ve / 2, _e = pe[ge], Ce = we - fe[he] - pe[be], Ie = we / 2 - fe[he] / 2 + Se, De = within(_e, Ie, Ce), Le = ue;
|
|
17349
|
+
J.modifiersData[te] = (W = {}, W[Le] = De, W.centerOffset = De - Ie, W);
|
|
17356
17350
|
}
|
|
17357
17351
|
}
|
|
17358
17352
|
function effect$1(X) {
|
|
@@ -17395,20 +17389,20 @@ function mapToStyles(X) {
|
|
|
17395
17389
|
ge = ve.x, me = ve.y;
|
|
17396
17390
|
var ye = oe.hasOwnProperty("x"), we = oe.hasOwnProperty("y"), Se = left, _e = top, Ce = window;
|
|
17397
17391
|
if (ce) {
|
|
17398
|
-
var
|
|
17399
|
-
if (
|
|
17392
|
+
var Ie = getOffsetParent(J), De = "clientHeight", Le = "clientWidth";
|
|
17393
|
+
if (Ie === getWindow(J) && (Ie = getDocumentElement(J), getComputedStyle$1(Ie).position !== "static" && de === "absolute" && (De = "scrollHeight", Le = "scrollWidth")), Ie = Ie, re === top || (re === left || re === right) && ne === end) {
|
|
17400
17394
|
_e = bottom;
|
|
17401
|
-
var ze = pe &&
|
|
17395
|
+
var ze = pe && Ie === Ce && Ce.visualViewport ? Ce.visualViewport.height : (
|
|
17402
17396
|
// $FlowFixMe[prop-missing]
|
|
17403
|
-
|
|
17397
|
+
Ie[De]
|
|
17404
17398
|
);
|
|
17405
17399
|
me -= ze - te.height, me *= ue ? 1 : -1;
|
|
17406
17400
|
}
|
|
17407
17401
|
if (re === left || (re === top || re === bottom) && ne === end) {
|
|
17408
17402
|
Se = right;
|
|
17409
|
-
var qe = pe &&
|
|
17403
|
+
var qe = pe && Ie === Ce && Ce.visualViewport ? Ce.visualViewport.width : (
|
|
17410
17404
|
// $FlowFixMe[prop-missing]
|
|
17411
|
-
Le
|
|
17405
|
+
Ie[Le]
|
|
17412
17406
|
);
|
|
17413
17407
|
ge -= qe - te.width, ge *= ue ? 1 : -1;
|
|
17414
17408
|
}
|
|
@@ -17626,12 +17620,12 @@ function computeOffsets(X) {
|
|
|
17626
17620
|
}
|
|
17627
17621
|
function detectOverflow(X, W) {
|
|
17628
17622
|
W === void 0 && (W = {});
|
|
17629
|
-
var J = W, te = J.placement, re = te === void 0 ? X.placement : te, ne = J.strategy, oe = ne === void 0 ? X.strategy : ne, de = J.boundary, ue = de === void 0 ? clippingParents : de, ce = J.rootBoundary, he = ce === void 0 ? viewport : ce, pe = J.elementContext, fe = pe === void 0 ? popper : pe, ge = J.altBoundary, be = ge === void 0 ? !1 : ge, me = J.padding, ve = me === void 0 ? 0 : me, ye = mergePaddingObject(typeof ve != "number" ? ve : expandToHashMap(ve, basePlacements)), we = fe === popper ? reference : popper, Se = X.rects.popper, _e = X.elements[be ? we : fe], Ce = getClippingRect(isElement(_e) ? _e : _e.contextElement || getDocumentElement(X.elements.popper), ue, he, oe),
|
|
17630
|
-
reference:
|
|
17623
|
+
var J = W, te = J.placement, re = te === void 0 ? X.placement : te, ne = J.strategy, oe = ne === void 0 ? X.strategy : ne, de = J.boundary, ue = de === void 0 ? clippingParents : de, ce = J.rootBoundary, he = ce === void 0 ? viewport : ce, pe = J.elementContext, fe = pe === void 0 ? popper : pe, ge = J.altBoundary, be = ge === void 0 ? !1 : ge, me = J.padding, ve = me === void 0 ? 0 : me, ye = mergePaddingObject(typeof ve != "number" ? ve : expandToHashMap(ve, basePlacements)), we = fe === popper ? reference : popper, Se = X.rects.popper, _e = X.elements[be ? we : fe], Ce = getClippingRect(isElement(_e) ? _e : _e.contextElement || getDocumentElement(X.elements.popper), ue, he, oe), Ie = getBoundingClientRect(X.elements.reference), De = computeOffsets({
|
|
17624
|
+
reference: Ie,
|
|
17631
17625
|
element: Se,
|
|
17632
17626
|
strategy: "absolute",
|
|
17633
17627
|
placement: re
|
|
17634
|
-
}),
|
|
17628
|
+
}), Le = rectToClientRect(Object.assign({}, Se, De)), ze = fe === popper ? Le : Ie, qe = {
|
|
17635
17629
|
top: Ce.top - ze.top + ye.top,
|
|
17636
17630
|
bottom: ze.bottom - Ce.bottom + ye.bottom,
|
|
17637
17631
|
left: Ce.left - ze.left + ye.left,
|
|
@@ -17684,7 +17678,7 @@ function flip(X) {
|
|
|
17684
17678
|
flipVariations: be,
|
|
17685
17679
|
allowedAutoPlacements: me
|
|
17686
17680
|
}) : Ke);
|
|
17687
|
-
}, []), Ce = W.rects.reference,
|
|
17681
|
+
}, []), Ce = W.rects.reference, Ie = W.rects.popper, De = /* @__PURE__ */ new Map(), Le = !0, ze = _e[0], qe = 0; qe < _e.length; qe++) {
|
|
17688
17682
|
var Ae = _e[qe], Pe = getBasePlacement(Ae), Me = getVariation(Ae) === start, Be = [top, bottom].indexOf(Pe) >= 0, Ve = Be ? "width" : "height", Je = detectOverflow(W, {
|
|
17689
17683
|
placement: Ae,
|
|
17690
17684
|
boundary: he,
|
|
@@ -17692,17 +17686,17 @@ function flip(X) {
|
|
|
17692
17686
|
altBoundary: fe,
|
|
17693
17687
|
padding: ce
|
|
17694
17688
|
}), Ye = Be ? Me ? right : left : Me ? bottom : top;
|
|
17695
|
-
Ce[Ve] >
|
|
17689
|
+
Ce[Ve] > Ie[Ve] && (Ye = getOppositePlacement(Ye));
|
|
17696
17690
|
var kt = getOppositePlacement(Ye), Qe = [];
|
|
17697
17691
|
if (ne && Qe.push(Je[Pe] <= 0), de && Qe.push(Je[Ye] <= 0, Je[kt] <= 0), Qe.every(function(Xe) {
|
|
17698
17692
|
return Xe;
|
|
17699
17693
|
})) {
|
|
17700
|
-
ze = Ae,
|
|
17694
|
+
ze = Ae, Le = !1;
|
|
17701
17695
|
break;
|
|
17702
17696
|
}
|
|
17703
17697
|
De.set(Ae, Qe);
|
|
17704
17698
|
}
|
|
17705
|
-
if (
|
|
17699
|
+
if (Le)
|
|
17706
17700
|
for (var We = be ? 3 : 1, Fe = function(Ke) {
|
|
17707
17701
|
var je = _e.find(function(Ze) {
|
|
17708
17702
|
var nt = De.get(Ze);
|
|
@@ -17819,7 +17813,7 @@ function preventOverflow(X) {
|
|
|
17819
17813
|
rootBoundary: ce,
|
|
17820
17814
|
padding: pe,
|
|
17821
17815
|
altBoundary: he
|
|
17822
|
-
}), ye = getBasePlacement(W.placement), we = getVariation(W.placement), Se = !we, _e = getMainAxisFromPlacement(ye), Ce = getAltAxis(_e),
|
|
17816
|
+
}), ye = getBasePlacement(W.placement), we = getVariation(W.placement), Se = !we, _e = getMainAxisFromPlacement(ye), Ce = getAltAxis(_e), Ie = W.modifiersData.popperOffsets, De = W.rects.reference, Le = W.rects.popper, ze = typeof me == "function" ? me(Object.assign({}, W.rects, {
|
|
17823
17817
|
placement: W.placement
|
|
17824
17818
|
})) : me, qe = typeof ze == "number" ? {
|
|
17825
17819
|
mainAxis: ze,
|
|
@@ -17831,17 +17825,17 @@ function preventOverflow(X) {
|
|
|
17831
17825
|
x: 0,
|
|
17832
17826
|
y: 0
|
|
17833
17827
|
};
|
|
17834
|
-
if (
|
|
17828
|
+
if (Ie) {
|
|
17835
17829
|
if (ne) {
|
|
17836
|
-
var Me, Be = _e === "y" ? top : left, Ve = _e === "y" ? bottom : right, Je = _e === "y" ? "height" : "width", Ye =
|
|
17830
|
+
var Me, Be = _e === "y" ? top : left, Ve = _e === "y" ? bottom : right, Je = _e === "y" ? "height" : "width", Ye = Ie[_e], kt = Ye + ve[Be], Qe = Ye - ve[Ve], We = ge ? -Le[Je] / 2 : 0, Fe = we === start ? De[Je] : Le[Je], He = we === start ? -Le[Je] : -De[Je], Ge = W.elements.arrow, Xe = ge && Ge ? getLayoutRect(Ge) : {
|
|
17837
17831
|
width: 0,
|
|
17838
17832
|
height: 0
|
|
17839
17833
|
}, Ke = W.modifiersData["arrow#persistent"] ? W.modifiersData["arrow#persistent"].padding : getFreshSideObject(), je = Ke[Be], Ze = Ke[Ve], nt = within(0, De[Je], Xe[Je]), ot = Se ? De[Je] / 2 - We - nt - je - qe.mainAxis : Fe - nt - je - qe.mainAxis, Ct = Se ? -De[Je] / 2 + We + nt + Ze + qe.mainAxis : He + nt + Ze + qe.mainAxis, Lt = W.elements.arrow && getOffsetParent(W.elements.arrow), Bt = Lt ? _e === "y" ? Lt.clientTop || 0 : Lt.clientLeft || 0 : 0, jt = (Me = Ae == null ? void 0 : Ae[_e]) != null ? Me : 0, Kt = Ye + ot - jt - Bt, ei = Ye + Ct - jt, mi = within(ge ? min(kt, Kt) : kt, Ye, ge ? max(Qe, ei) : Qe);
|
|
17840
|
-
|
|
17834
|
+
Ie[_e] = mi, Pe[_e] = mi - Ye;
|
|
17841
17835
|
}
|
|
17842
17836
|
if (de) {
|
|
17843
|
-
var di, xt = _e === "x" ? top : left, St = _e === "x" ? bottom : right, qt =
|
|
17844
|
-
|
|
17837
|
+
var di, xt = _e === "x" ? top : left, St = _e === "x" ? bottom : right, qt = Ie[Ce], Pt = Ce === "y" ? "height" : "width", Tt = qt + ve[xt], Gt = qt - ve[St], Wt = [top, left].indexOf(ye) !== -1, Yt = (di = Ae == null ? void 0 : Ae[Ce]) != null ? di : 0, pi = Wt ? Tt : qt - De[Pt] - Le[Pt] - Yt + qe.altAxis, yi = Wt ? qt + De[Pt] + Le[Pt] - Yt - qe.altAxis : Gt, ai = ge && Wt ? withinMaxClamp(pi, qt, yi) : within(ge ? pi : Tt, qt, ge ? yi : Gt);
|
|
17838
|
+
Ie[Ce] = ai, Pe[Ce] = ai - qt;
|
|
17845
17839
|
}
|
|
17846
17840
|
W.modifiersData[te] = Pe;
|
|
17847
17841
|
}
|
|
@@ -17993,10 +17987,10 @@ function popperGenerator(X) {
|
|
|
17993
17987
|
he.reset = !1, _e = -1;
|
|
17994
17988
|
continue;
|
|
17995
17989
|
}
|
|
17996
|
-
var Ce = he.orderedModifiers[_e],
|
|
17997
|
-
typeof
|
|
17990
|
+
var Ce = he.orderedModifiers[_e], Ie = Ce.fn, De = Ce.options, Le = De === void 0 ? {} : De, ze = Ce.name;
|
|
17991
|
+
typeof Ie == "function" && (he = Ie({
|
|
17998
17992
|
state: he,
|
|
17999
|
-
options:
|
|
17993
|
+
options: Le,
|
|
18000
17994
|
name: ze,
|
|
18001
17995
|
instance: ge
|
|
18002
17996
|
}) || he);
|
|
@@ -18029,9 +18023,9 @@ function popperGenerator(X) {
|
|
|
18029
18023
|
name: ye,
|
|
18030
18024
|
instance: ge,
|
|
18031
18025
|
options: Se
|
|
18032
|
-
}),
|
|
18026
|
+
}), Ie = function() {
|
|
18033
18027
|
};
|
|
18034
|
-
pe.push(Ce ||
|
|
18028
|
+
pe.push(Ce || Ie);
|
|
18035
18029
|
}
|
|
18036
18030
|
});
|
|
18037
18031
|
}
|
|
@@ -20706,7 +20700,7 @@ l$k([
|
|
|
20706
20700
|
n$w({ type: String })
|
|
20707
20701
|
], o$v.prototype, "tableInfo", 2);
|
|
20708
20702
|
const O$1 = er`dss-calendar${tr(f$j())}`, e$x = er`dss-icon${tr(f$j())}`, Z = (X) => {
|
|
20709
|
-
var W, J, te, re, ne, oe, de, ue, ce, he, pe, fe, ge, be, me, ve, ye, we, Se, _e, Ce,
|
|
20703
|
+
var W, J, te, re, ne, oe, de, ue, ce, he, pe, fe, ge, be, me, ve, ye, we, Se, _e, Ce, Ie, De, Le, ze, qe, Ae, Pe, Me;
|
|
20710
20704
|
const Be = {
|
|
20711
20705
|
"dss-datepicker-range--sm": X.inputSize !== "lg"
|
|
20712
20706
|
}, Ve = {
|
|
@@ -20738,11 +20732,11 @@ const O$1 = er`dss-calendar${tr(f$j())}`, e$x = er`dss-icon${tr(f$j())}`, Z = (X
|
|
|
20738
20732
|
"dss-input-group--required": (Se = X._inputRangeEnd) == null ? void 0 : Se.required,
|
|
20739
20733
|
"dss-input-group--disabled": (_e = X._inputRangeEnd) == null ? void 0 : _e.disabled,
|
|
20740
20734
|
"dss-input-group--focused": ((Ce = X._inputRangeEnd) == null ? void 0 : Ce.value) || X._isEndFocused || X._copyInputRangeEndPlaceholder,
|
|
20741
|
-
"dss-input-group--read-only": (
|
|
20735
|
+
"dss-input-group--read-only": (Ie = X._inputRangeEnd) == null ? void 0 : Ie.readOnly
|
|
20742
20736
|
// 'dss-input-group--no-label': Boolean(!component._label),
|
|
20743
20737
|
}, We = {
|
|
20744
20738
|
"dss-calendar": !0,
|
|
20745
|
-
"dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((
|
|
20739
|
+
"dss-calendar--visible": X._showCalendar && !((De = X._inputRangeStart) != null && De.readOnly) && !((Le = X._inputRangeEnd) != null && Le.readOnly),
|
|
20746
20740
|
"dss-calendar--disabled": ((ze = X._inputRangeStart) == null ? void 0 : ze.disabled) && ((qe = X._inputRangeEnd) == null ? void 0 : qe.disabled),
|
|
20747
20741
|
"dss-calendar--sm": X.inputSize !== "lg"
|
|
20748
20742
|
};
|
|
@@ -25719,14 +25713,14 @@ let d$8 = class extends h$q {
|
|
|
25719
25713
|
></span>`, be = (Se) => {
|
|
25720
25714
|
this._manuallySelect(Se, J.value);
|
|
25721
25715
|
}, me = (Se) => {
|
|
25722
|
-
var _e, Ce,
|
|
25716
|
+
var _e, Ce, Ie, De;
|
|
25723
25717
|
if (Se.key === "Enter" || Se.key === " ")
|
|
25724
25718
|
this._manuallySelect(Se, J.value);
|
|
25725
25719
|
else if (Se.key === "ArrowUp") {
|
|
25726
|
-
const
|
|
25720
|
+
const Le = Se.target, ze = (Ce = (_e = Le == null ? void 0 : Le.closest(".dss-form-field")) == null ? void 0 : _e.previousElementSibling) == null ? void 0 : Ce.querySelector("input");
|
|
25727
25721
|
ze == null || ze.focus();
|
|
25728
25722
|
} else if (Se.key === "ArrowDown") {
|
|
25729
|
-
const
|
|
25723
|
+
const Le = Se.target, ze = (De = (Ie = Le == null ? void 0 : Le.closest(".dss-form-field")) == null ? void 0 : Ie.nextElementSibling) == null ? void 0 : De.querySelector("input");
|
|
25730
25724
|
ze == null || ze.focus();
|
|
25731
25725
|
}
|
|
25732
25726
|
}, [ve, ye] = this._getIndexSubtext(J.label);
|
|
@@ -34611,8 +34605,8 @@ class r extends h$q {
|
|
|
34611
34605
|
u$j(this.renderRoot, Se, ".table-header-column--clickable"), Ce = !0;
|
|
34612
34606
|
break;
|
|
34613
34607
|
case "Enter":
|
|
34614
|
-
const
|
|
34615
|
-
r$v(this.renderRoot,
|
|
34608
|
+
const Ie = we.target;
|
|
34609
|
+
r$v(this.renderRoot, Ie, ".table-header-column--clickable"), Ce = !0;
|
|
34616
34610
|
break;
|
|
34617
34611
|
}
|
|
34618
34612
|
Ce && (we.stopPropagation(), we.preventDefault());
|
|
@@ -36248,8 +36242,8 @@ var quill = { exports: {} };
|
|
|
36248
36242
|
if (typeof _e.retain == "number") {
|
|
36249
36243
|
var Ce = {};
|
|
36250
36244
|
typeof Se.retain == "number" ? Ce.retain = we : Ce.insert = Se.insert;
|
|
36251
|
-
var
|
|
36252
|
-
if (
|
|
36245
|
+
var Ie = ue.attributes.compose(Se.attributes, _e.attributes, typeof Se.retain == "number");
|
|
36246
|
+
if (Ie && (Ce.attributes = Ie), ye.push(Ce), !ge.hasNext() && oe(ye.ops[ye.ops.length - 1], Ce)) {
|
|
36253
36247
|
var De = new he(fe.rest());
|
|
36254
36248
|
return ye.concat(De).chop();
|
|
36255
36249
|
}
|
|
@@ -36282,8 +36276,8 @@ var quill = { exports: {} };
|
|
|
36282
36276
|
break;
|
|
36283
36277
|
case ne.EQUAL:
|
|
36284
36278
|
_e = Math.min(ve.peekLength(), ye.peekLength(), Se);
|
|
36285
|
-
var Ce = ve.next(_e),
|
|
36286
|
-
oe(Ce.insert,
|
|
36279
|
+
var Ce = ve.next(_e), Ie = ye.next(_e);
|
|
36280
|
+
oe(Ce.insert, Ie.insert) ? be.retain(_e, ue.attributes.diff(Ce.attributes, Ie.attributes)) : be.push(Ie).delete(_e);
|
|
36287
36281
|
break;
|
|
36288
36282
|
}
|
|
36289
36283
|
Se -= _e;
|
|
@@ -36365,11 +36359,11 @@ var quill = { exports: {} };
|
|
|
36365
36359
|
return ge[be];
|
|
36366
36360
|
};
|
|
36367
36361
|
J.exports = function fe() {
|
|
36368
|
-
var ge, be, me, ve, ye, we, Se = arguments[0], _e = 1, Ce = arguments.length,
|
|
36369
|
-
for (typeof Se == "boolean" && (
|
|
36362
|
+
var ge, be, me, ve, ye, we, Se = arguments[0], _e = 1, Ce = arguments.length, Ie = !1;
|
|
36363
|
+
for (typeof Se == "boolean" && (Ie = Se, Se = arguments[1] || {}, _e = 2), (Se == null || typeof Se != "object" && typeof Se != "function") && (Se = {}); _e < Ce; ++_e)
|
|
36370
36364
|
if (ge = arguments[_e], ge != null)
|
|
36371
36365
|
for (be in ge)
|
|
36372
|
-
me = pe(Se, be), ve = pe(ge, be), Se !== ve && (
|
|
36366
|
+
me = pe(Se, be), ve = pe(ge, be), Se !== ve && (Ie && ve && (ce(ve) || (ye = ue(ve))) ? (ye ? (ye = !1, we = me && ue(me) ? me : []) : we = me && ce(me) ? me : {}, he(Se, { name: be, newValue: fe(Ie, we, ve) })) : typeof ve < "u" && he(Se, { name: be, newValue: ve }));
|
|
36373
36367
|
return Se;
|
|
36374
36368
|
};
|
|
36375
36369
|
},
|
|
@@ -36414,13 +36408,13 @@ var quill = { exports: {} };
|
|
|
36414
36408
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
36415
36409
|
return Pe && (typeof Pe == "object" || typeof Pe == "function") ? Pe : Ae;
|
|
36416
36410
|
}
|
|
36417
|
-
function
|
|
36411
|
+
function Ie(Ae, Pe) {
|
|
36418
36412
|
if (typeof Pe != "function" && Pe !== null)
|
|
36419
36413
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Pe);
|
|
36420
36414
|
Ae.prototype = Object.create(Pe && Pe.prototype, { constructor: { value: Ae, enumerable: !1, writable: !0, configurable: !0 } }), Pe && (Object.setPrototypeOf ? Object.setPrototypeOf(Ae, Pe) : Ae.__proto__ = Pe);
|
|
36421
36415
|
}
|
|
36422
|
-
var De = 1,
|
|
36423
|
-
|
|
36416
|
+
var De = 1, Le = function(Ae) {
|
|
36417
|
+
Ie(Pe, Ae);
|
|
36424
36418
|
function Pe() {
|
|
36425
36419
|
return _e(this, Pe), Ce(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).apply(this, arguments));
|
|
36426
36420
|
}
|
|
@@ -36457,9 +36451,9 @@ var quill = { exports: {} };
|
|
|
36457
36451
|
}
|
|
36458
36452
|
}]), Pe;
|
|
36459
36453
|
}(fe.default.Embed);
|
|
36460
|
-
|
|
36454
|
+
Le.scope = fe.default.Scope.BLOCK_BLOT;
|
|
36461
36455
|
var ze = function(Ae) {
|
|
36462
|
-
|
|
36456
|
+
Ie(Pe, Ae);
|
|
36463
36457
|
function Pe(Me) {
|
|
36464
36458
|
_e(this, Pe);
|
|
36465
36459
|
var Be = Ce(this, (Pe.__proto__ || Object.getPrototypeOf(Pe)).call(this, Me));
|
|
@@ -36547,7 +36541,7 @@ var quill = { exports: {} };
|
|
|
36547
36541
|
var Pe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
36548
36542
|
return Ae == null || (typeof Ae.formats == "function" && (Pe = (0, ue.default)(Pe, Ae.formats())), Ae.parent == null || Ae.parent.blotName == "scroll" || Ae.parent.statics.scope !== Ae.statics.scope) ? Pe : qe(Ae.parent, Pe);
|
|
36549
36543
|
}
|
|
36550
|
-
te.bubbleFormats = qe, te.BlockEmbed =
|
|
36544
|
+
te.bubbleFormats = qe, te.BlockEmbed = Le, te.default = ze;
|
|
36551
36545
|
},
|
|
36552
36546
|
/* 5 */
|
|
36553
36547
|
/***/
|
|
@@ -36595,7 +36589,7 @@ var quill = { exports: {} };
|
|
|
36595
36589
|
};
|
|
36596
36590
|
}();
|
|
36597
36591
|
re(51);
|
|
36598
|
-
var ue = re(2), ce = qe(ue), he = re(14), pe = qe(he), fe = re(8), ge = qe(fe), be = re(9), me = qe(be), ve = re(0), ye = qe(ve), we = re(15), Se = qe(we), _e = re(3), Ce = qe(_e),
|
|
36592
|
+
var ue = re(2), ce = qe(ue), he = re(14), pe = qe(he), fe = re(8), ge = qe(fe), be = re(9), me = qe(be), ve = re(0), ye = qe(ve), we = re(15), Se = qe(we), _e = re(3), Ce = qe(_e), Ie = re(10), De = qe(Ie), Le = re(35), ze = qe(Le);
|
|
36599
36593
|
function qe(Qe) {
|
|
36600
36594
|
return Qe && Qe.__esModule ? Qe : { default: Qe };
|
|
36601
36595
|
}
|
|
@@ -37008,8 +37002,8 @@ var quill = { exports: {} };
|
|
|
37008
37002
|
} else {
|
|
37009
37003
|
if ("value" in _e)
|
|
37010
37004
|
return _e.value;
|
|
37011
|
-
var
|
|
37012
|
-
return
|
|
37005
|
+
var Ie = _e.get;
|
|
37006
|
+
return Ie === void 0 ? void 0 : Ie.call(Se);
|
|
37013
37007
|
}
|
|
37014
37008
|
}, de = re(7), ue = pe(de), ce = re(0), he = pe(ce);
|
|
37015
37009
|
function pe(ve) {
|
|
@@ -37036,12 +37030,12 @@ var quill = { exports: {} };
|
|
|
37036
37030
|
}
|
|
37037
37031
|
return ne(ye, [{
|
|
37038
37032
|
key: "formatAt",
|
|
37039
|
-
value: function(Se, _e, Ce,
|
|
37033
|
+
value: function(Se, _e, Ce, Ie) {
|
|
37040
37034
|
if (ye.compare(this.statics.blotName, Ce) < 0 && he.default.query(Ce, he.default.Scope.BLOT)) {
|
|
37041
37035
|
var De = this.isolate(Se, _e);
|
|
37042
|
-
|
|
37036
|
+
Ie && De.wrap(Ce, Ie);
|
|
37043
37037
|
} else
|
|
37044
|
-
oe(ye.prototype.__proto__ || Object.getPrototypeOf(ye.prototype), "formatAt", this).call(this, Se, _e, Ce,
|
|
37038
|
+
oe(ye.prototype.__proto__ || Object.getPrototypeOf(ye.prototype), "formatAt", this).call(this, Se, _e, Ce, Ie);
|
|
37045
37039
|
}
|
|
37046
37040
|
}, {
|
|
37047
37041
|
key: "optimize",
|
|
@@ -37054,8 +37048,8 @@ var quill = { exports: {} };
|
|
|
37054
37048
|
}], [{
|
|
37055
37049
|
key: "compare",
|
|
37056
37050
|
value: function(Se, _e) {
|
|
37057
|
-
var Ce = ye.order.indexOf(Se),
|
|
37058
|
-
return Ce >= 0 ||
|
|
37051
|
+
var Ce = ye.order.indexOf(Se), Ie = ye.order.indexOf(_e);
|
|
37052
|
+
return Ce >= 0 || Ie >= 0 ? Ce - Ie : Se === _e ? 0 : Se < _e ? -1 : 1;
|
|
37059
37053
|
}
|
|
37060
37054
|
}]), ye;
|
|
37061
37055
|
}(he.default.Inline);
|
|
@@ -37113,73 +37107,73 @@ var quill = { exports: {} };
|
|
|
37113
37107
|
value: !0
|
|
37114
37108
|
});
|
|
37115
37109
|
var ne = /* @__PURE__ */ function() {
|
|
37116
|
-
function Ce(
|
|
37117
|
-
for (var
|
|
37118
|
-
var ze = De[
|
|
37119
|
-
ze.enumerable = ze.enumerable || !1, ze.configurable = !0, "value" in ze && (ze.writable = !0), Object.defineProperty(
|
|
37110
|
+
function Ce(Ie, De) {
|
|
37111
|
+
for (var Le = 0; Le < De.length; Le++) {
|
|
37112
|
+
var ze = De[Le];
|
|
37113
|
+
ze.enumerable = ze.enumerable || !1, ze.configurable = !0, "value" in ze && (ze.writable = !0), Object.defineProperty(Ie, ze.key, ze);
|
|
37120
37114
|
}
|
|
37121
37115
|
}
|
|
37122
|
-
return function(
|
|
37123
|
-
return De && Ce(
|
|
37116
|
+
return function(Ie, De, Le) {
|
|
37117
|
+
return De && Ce(Ie.prototype, De), Le && Ce(Ie, Le), Ie;
|
|
37124
37118
|
};
|
|
37125
|
-
}(), oe = function Ce(
|
|
37126
|
-
|
|
37127
|
-
var ze = Object.getOwnPropertyDescriptor(
|
|
37119
|
+
}(), oe = function Ce(Ie, De, Le) {
|
|
37120
|
+
Ie === null && (Ie = Function.prototype);
|
|
37121
|
+
var ze = Object.getOwnPropertyDescriptor(Ie, De);
|
|
37128
37122
|
if (ze === void 0) {
|
|
37129
|
-
var qe = Object.getPrototypeOf(
|
|
37130
|
-
return qe === null ? void 0 : Ce(qe, De,
|
|
37123
|
+
var qe = Object.getPrototypeOf(Ie);
|
|
37124
|
+
return qe === null ? void 0 : Ce(qe, De, Le);
|
|
37131
37125
|
} else {
|
|
37132
37126
|
if ("value" in ze)
|
|
37133
37127
|
return ze.value;
|
|
37134
37128
|
var Ae = ze.get;
|
|
37135
|
-
return Ae === void 0 ? void 0 : Ae.call(
|
|
37129
|
+
return Ae === void 0 ? void 0 : Ae.call(Le);
|
|
37136
37130
|
}
|
|
37137
37131
|
}, de = re(55), ue = fe(de), ce = re(10), he = fe(ce), pe = re(34);
|
|
37138
37132
|
function fe(Ce) {
|
|
37139
37133
|
return Ce && Ce.__esModule ? Ce : { default: Ce };
|
|
37140
37134
|
}
|
|
37141
|
-
function ge(Ce,
|
|
37142
|
-
if (!(Ce instanceof
|
|
37135
|
+
function ge(Ce, Ie) {
|
|
37136
|
+
if (!(Ce instanceof Ie))
|
|
37143
37137
|
throw new TypeError("Cannot call a class as a function");
|
|
37144
37138
|
}
|
|
37145
|
-
function be(Ce,
|
|
37139
|
+
function be(Ce, Ie) {
|
|
37146
37140
|
if (!Ce)
|
|
37147
37141
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
37148
|
-
return
|
|
37142
|
+
return Ie && (typeof Ie == "object" || typeof Ie == "function") ? Ie : Ce;
|
|
37149
37143
|
}
|
|
37150
|
-
function me(Ce,
|
|
37151
|
-
if (typeof
|
|
37152
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
37153
|
-
Ce.prototype = Object.create(
|
|
37144
|
+
function me(Ce, Ie) {
|
|
37145
|
+
if (typeof Ie != "function" && Ie !== null)
|
|
37146
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Ie);
|
|
37147
|
+
Ce.prototype = Object.create(Ie && Ie.prototype, { constructor: { value: Ce, enumerable: !1, writable: !0, configurable: !0 } }), Ie && (Object.setPrototypeOf ? Object.setPrototypeOf(Ce, Ie) : Ce.__proto__ = Ie);
|
|
37154
37148
|
}
|
|
37155
37149
|
var ve = (0, he.default)("quill:events"), ye = [pe.SHADOW_SELECTIONCHANGE, "mousedown", "mouseup", "click"], we = [], Se = "getRootNode" in document;
|
|
37156
37150
|
ye.forEach(function(Ce) {
|
|
37157
37151
|
document.addEventListener(Ce, function() {
|
|
37158
|
-
for (var
|
|
37159
|
-
De[
|
|
37152
|
+
for (var Ie = arguments.length, De = Array(Ie), Le = 0; Le < Ie; Le++)
|
|
37153
|
+
De[Le] = arguments[Le];
|
|
37160
37154
|
we.forEach(function(ze) {
|
|
37161
37155
|
ze.handleDOM.apply(ze, De);
|
|
37162
37156
|
});
|
|
37163
37157
|
});
|
|
37164
37158
|
});
|
|
37165
37159
|
var _e = function(Ce) {
|
|
37166
|
-
me(
|
|
37167
|
-
function
|
|
37168
|
-
ge(this,
|
|
37169
|
-
var De = be(this, (
|
|
37160
|
+
me(Ie, Ce);
|
|
37161
|
+
function Ie() {
|
|
37162
|
+
ge(this, Ie);
|
|
37163
|
+
var De = be(this, (Ie.__proto__ || Object.getPrototypeOf(Ie)).call(this));
|
|
37170
37164
|
return De.listeners = {}, we.push(De), De.on("error", ve.error), De;
|
|
37171
37165
|
}
|
|
37172
|
-
return ne(
|
|
37166
|
+
return ne(Ie, [{
|
|
37173
37167
|
key: "emit",
|
|
37174
37168
|
value: function() {
|
|
37175
|
-
ve.log.apply(ve, arguments), oe(
|
|
37169
|
+
ve.log.apply(ve, arguments), oe(Ie.prototype.__proto__ || Object.getPrototypeOf(Ie.prototype), "emit", this).apply(this, arguments);
|
|
37176
37170
|
}
|
|
37177
37171
|
}, {
|
|
37178
37172
|
key: "handleDOM",
|
|
37179
|
-
value: function(
|
|
37173
|
+
value: function(Le) {
|
|
37180
37174
|
for (var ze = arguments.length, qe = Array(ze > 1 ? ze - 1 : 0), Ae = 1; Ae < ze; Ae++)
|
|
37181
37175
|
qe[Ae - 1] = arguments[Ae];
|
|
37182
|
-
var Pe =
|
|
37176
|
+
var Pe = Le.composedPath ? Le.composedPath()[0] : Le.target, Me = function(Ve, Je) {
|
|
37183
37177
|
if (!Se || Je.getRootNode() === document)
|
|
37184
37178
|
return Ve.contains(Je);
|
|
37185
37179
|
for (; !Ve.contains(Je); ) {
|
|
@@ -37190,17 +37184,17 @@ var quill = { exports: {} };
|
|
|
37190
37184
|
}
|
|
37191
37185
|
return !0;
|
|
37192
37186
|
};
|
|
37193
|
-
(this.listeners[
|
|
37187
|
+
(this.listeners[Le.type] || []).forEach(function(Be) {
|
|
37194
37188
|
var Ve = Be.node, Je = Be.handler;
|
|
37195
|
-
(Pe === Ve || Me(Ve, Pe)) && Je.apply(void 0, [
|
|
37189
|
+
(Pe === Ve || Me(Ve, Pe)) && Je.apply(void 0, [Le].concat(qe));
|
|
37196
37190
|
});
|
|
37197
37191
|
}
|
|
37198
37192
|
}, {
|
|
37199
37193
|
key: "listenDOM",
|
|
37200
|
-
value: function(
|
|
37201
|
-
this.listeners[
|
|
37194
|
+
value: function(Le, ze, qe) {
|
|
37195
|
+
this.listeners[Le] || (this.listeners[Le] = []), this.listeners[Le].push({ node: ze, handler: qe });
|
|
37202
37196
|
}
|
|
37203
|
-
}]),
|
|
37197
|
+
}]), Ie;
|
|
37204
37198
|
}(ue.default);
|
|
37205
37199
|
_e.events = {
|
|
37206
37200
|
EDITOR_CHANGE: "editor-change",
|
|
@@ -37330,7 +37324,7 @@ var quill = { exports: {} };
|
|
|
37330
37324
|
value: !0
|
|
37331
37325
|
}), te.default = te.Code = void 0;
|
|
37332
37326
|
var ne = /* @__PURE__ */ function() {
|
|
37333
|
-
function
|
|
37327
|
+
function Le(ze, qe) {
|
|
37334
37328
|
var Ae = [], Pe = !0, Me = !1, Be = void 0;
|
|
37335
37329
|
try {
|
|
37336
37330
|
for (var Ve = ze[Symbol.iterator](), Je; !(Pe = (Je = Ve.next()).done) && (Ae.push(Je.value), !(qe && Ae.length === qe)); Pe = !0)
|
|
@@ -37350,25 +37344,25 @@ var quill = { exports: {} };
|
|
|
37350
37344
|
if (Array.isArray(ze))
|
|
37351
37345
|
return ze;
|
|
37352
37346
|
if (Symbol.iterator in Object(ze))
|
|
37353
|
-
return
|
|
37347
|
+
return Le(ze, qe);
|
|
37354
37348
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
37355
37349
|
};
|
|
37356
37350
|
}(), oe = /* @__PURE__ */ function() {
|
|
37357
|
-
function
|
|
37351
|
+
function Le(ze, qe) {
|
|
37358
37352
|
for (var Ae = 0; Ae < qe.length; Ae++) {
|
|
37359
37353
|
var Pe = qe[Ae];
|
|
37360
37354
|
Pe.enumerable = Pe.enumerable || !1, Pe.configurable = !0, "value" in Pe && (Pe.writable = !0), Object.defineProperty(ze, Pe.key, Pe);
|
|
37361
37355
|
}
|
|
37362
37356
|
}
|
|
37363
37357
|
return function(ze, qe, Ae) {
|
|
37364
|
-
return qe &&
|
|
37358
|
+
return qe && Le(ze.prototype, qe), Ae && Le(ze, Ae), ze;
|
|
37365
37359
|
};
|
|
37366
|
-
}(), de = function
|
|
37360
|
+
}(), de = function Le(ze, qe, Ae) {
|
|
37367
37361
|
ze === null && (ze = Function.prototype);
|
|
37368
37362
|
var Pe = Object.getOwnPropertyDescriptor(ze, qe);
|
|
37369
37363
|
if (Pe === void 0) {
|
|
37370
37364
|
var Me = Object.getPrototypeOf(ze);
|
|
37371
|
-
return Me === null ? void 0 :
|
|
37365
|
+
return Me === null ? void 0 : Le(Me, qe, Ae);
|
|
37372
37366
|
} else {
|
|
37373
37367
|
if ("value" in Pe)
|
|
37374
37368
|
return Pe.value;
|
|
@@ -37376,33 +37370,33 @@ var quill = { exports: {} };
|
|
|
37376
37370
|
return Be === void 0 ? void 0 : Be.call(Ae);
|
|
37377
37371
|
}
|
|
37378
37372
|
}, ue = re(2), ce = we(ue), he = re(0), pe = we(he), fe = re(4), ge = we(fe), be = re(6), me = we(be), ve = re(7), ye = we(ve);
|
|
37379
|
-
function we(
|
|
37380
|
-
return
|
|
37373
|
+
function we(Le) {
|
|
37374
|
+
return Le && Le.__esModule ? Le : { default: Le };
|
|
37381
37375
|
}
|
|
37382
|
-
function Se(
|
|
37383
|
-
if (!(
|
|
37376
|
+
function Se(Le, ze) {
|
|
37377
|
+
if (!(Le instanceof ze))
|
|
37384
37378
|
throw new TypeError("Cannot call a class as a function");
|
|
37385
37379
|
}
|
|
37386
|
-
function _e(
|
|
37387
|
-
if (!
|
|
37380
|
+
function _e(Le, ze) {
|
|
37381
|
+
if (!Le)
|
|
37388
37382
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
37389
|
-
return ze && (typeof ze == "object" || typeof ze == "function") ? ze :
|
|
37383
|
+
return ze && (typeof ze == "object" || typeof ze == "function") ? ze : Le;
|
|
37390
37384
|
}
|
|
37391
|
-
function Ce(
|
|
37385
|
+
function Ce(Le, ze) {
|
|
37392
37386
|
if (typeof ze != "function" && ze !== null)
|
|
37393
37387
|
throw new TypeError("Super expression must either be null or a function, not " + typeof ze);
|
|
37394
|
-
|
|
37388
|
+
Le.prototype = Object.create(ze && ze.prototype, { constructor: { value: Le, enumerable: !1, writable: !0, configurable: !0 } }), ze && (Object.setPrototypeOf ? Object.setPrototypeOf(Le, ze) : Le.__proto__ = ze);
|
|
37395
37389
|
}
|
|
37396
|
-
var
|
|
37397
|
-
Ce(ze,
|
|
37390
|
+
var Ie = function(Le) {
|
|
37391
|
+
Ce(ze, Le);
|
|
37398
37392
|
function ze() {
|
|
37399
37393
|
return Se(this, ze), _e(this, (ze.__proto__ || Object.getPrototypeOf(ze)).apply(this, arguments));
|
|
37400
37394
|
}
|
|
37401
37395
|
return ze;
|
|
37402
37396
|
}(me.default);
|
|
37403
|
-
|
|
37404
|
-
var De = function(
|
|
37405
|
-
Ce(ze,
|
|
37397
|
+
Ie.blotName = "code", Ie.tagName = "CODE";
|
|
37398
|
+
var De = function(Le) {
|
|
37399
|
+
Ce(ze, Le);
|
|
37406
37400
|
function ze() {
|
|
37407
37401
|
return Se(this, ze), _e(this, (ze.__proto__ || Object.getPrototypeOf(ze)).apply(this, arguments));
|
|
37408
37402
|
}
|
|
@@ -37492,7 +37486,7 @@ var quill = { exports: {} };
|
|
|
37492
37486
|
}
|
|
37493
37487
|
}]), ze;
|
|
37494
37488
|
}(ge.default);
|
|
37495
|
-
De.blotName = "code-block", De.tagName = "PRE", De.TAB = " ", te.Code =
|
|
37489
|
+
De.blotName = "code-block", De.tagName = "PRE", De.TAB = " ", te.Code = Ie, te.default = De;
|
|
37496
37490
|
},
|
|
37497
37491
|
/* 14 */
|
|
37498
37492
|
/***/
|
|
@@ -37538,7 +37532,7 @@ var quill = { exports: {} };
|
|
|
37538
37532
|
return function(We, Fe, He) {
|
|
37539
37533
|
return Fe && Qe(We.prototype, Fe), He && Qe(We, He), We;
|
|
37540
37534
|
};
|
|
37541
|
-
}(), ue = re(2), ce = Pe(ue), he = re(20), pe = Pe(he), fe = re(0), ge = Pe(fe), be = re(13), me = Pe(be), ve = re(24), ye = Pe(ve), we = re(4), Se = Pe(we), _e = re(16), Ce = Pe(_e),
|
|
37535
|
+
}(), ue = re(2), ce = Pe(ue), he = re(20), pe = Pe(he), fe = re(0), ge = Pe(fe), be = re(13), me = Pe(be), ve = re(24), ye = Pe(ve), we = re(4), Se = Pe(we), _e = re(16), Ce = Pe(_e), Ie = re(21), De = Pe(Ie), Le = re(11), ze = Pe(Le), qe = re(3), Ae = Pe(qe);
|
|
37542
37536
|
function Pe(Qe) {
|
|
37543
37537
|
return Qe && Qe.__esModule ? Qe : { default: Qe };
|
|
37544
37538
|
}
|
|
@@ -37785,13 +37779,13 @@ var quill = { exports: {} };
|
|
|
37785
37779
|
if (!(ze instanceof qe))
|
|
37786
37780
|
throw new TypeError("Cannot call a class as a function");
|
|
37787
37781
|
}
|
|
37788
|
-
var Ce = (0, ve.default)("quill:selection"),
|
|
37782
|
+
var Ce = (0, ve.default)("quill:selection"), Ie = function ze(qe) {
|
|
37789
37783
|
var Ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
37790
37784
|
_e(this, ze), this.index = qe, this.length = Ae;
|
|
37791
37785
|
}, De = function() {
|
|
37792
37786
|
function ze(qe, Ae) {
|
|
37793
37787
|
var Pe = this;
|
|
37794
|
-
_e(this, ze), this.emitter = Ae, this.scroll = qe, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = ue.default.create("cursor", this), this.lastRange = this.savedRange = new
|
|
37788
|
+
_e(this, ze), this.emitter = Ae, this.scroll = qe, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.rootDocument = this.root.getRootNode ? this.root.getRootNode() : document, this.cursor = ue.default.create("cursor", this), this.lastRange = this.savedRange = new Ie(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM(ye.SHADOW_SELECTIONCHANGE, document, function() {
|
|
37795
37789
|
Pe.mouseDown || setTimeout(Pe.update.bind(Pe, be.default.sources.USER), 1);
|
|
37796
37790
|
}), this.emitter.on(be.default.events.EDITOR_CHANGE, function(Me, Be) {
|
|
37797
37791
|
Me === be.default.events.TEXT_CHANGE && Be.length() > 0 && Pe.update(be.default.sources.SILENT);
|
|
@@ -37922,12 +37916,12 @@ var quill = { exports: {} };
|
|
|
37922
37916
|
var kt = ne(Ye, 2), Qe = kt[0], We = kt[1], Fe = ue.default.find(Qe, !0), He = Fe.offset(Pe.scroll);
|
|
37923
37917
|
return We === 0 ? He : Fe instanceof ue.default.Container ? He + Fe.length() : He + Fe.index(Qe, We);
|
|
37924
37918
|
}), Ve = Math.min(Math.max.apply(Math, Se(Be)), this.scroll.length() - 1), Je = Math.min.apply(Math, [Ve].concat(Se(Be)));
|
|
37925
|
-
return new
|
|
37919
|
+
return new Ie(Je, Ve - Je);
|
|
37926
37920
|
}
|
|
37927
37921
|
}, {
|
|
37928
37922
|
key: "normalizeNative",
|
|
37929
37923
|
value: function(Ae) {
|
|
37930
|
-
if (!
|
|
37924
|
+
if (!Le(this.root, Ae.startContainer) || !Ae.collapsed && !Le(this.root, Ae.endContainer))
|
|
37931
37925
|
return null;
|
|
37932
37926
|
var Pe = {
|
|
37933
37927
|
start: { node: Ae.startContainer, offset: Ae.startOffset },
|
|
@@ -38020,7 +38014,7 @@ var quill = { exports: {} };
|
|
|
38020
38014
|
}
|
|
38021
38015
|
}]), ze;
|
|
38022
38016
|
}();
|
|
38023
|
-
function
|
|
38017
|
+
function Le(ze, qe) {
|
|
38024
38018
|
try {
|
|
38025
38019
|
qe.parentNode;
|
|
38026
38020
|
} catch {
|
|
@@ -38028,7 +38022,7 @@ var quill = { exports: {} };
|
|
|
38028
38022
|
}
|
|
38029
38023
|
return qe instanceof Text && (qe = qe.parentNode), ze.contains(qe);
|
|
38030
38024
|
}
|
|
38031
|
-
te.Range =
|
|
38025
|
+
te.Range = Ie, te.default = De;
|
|
38032
38026
|
},
|
|
38033
38027
|
/* 16 */
|
|
38034
38028
|
/***/
|
|
@@ -38452,67 +38446,67 @@ var quill = { exports: {} };
|
|
|
38452
38446
|
}
|
|
38453
38447
|
function ce(me, ve, ye, we, Se) {
|
|
38454
38448
|
typeof ve == "object" && (ye = ve.depth, we = ve.prototype, Se = ve.includeNonEnumerable, ve = ve.circular);
|
|
38455
|
-
var _e = [], Ce = [],
|
|
38449
|
+
var _e = [], Ce = [], Ie = typeof Buffer < "u";
|
|
38456
38450
|
typeof ve > "u" && (ve = !0), typeof ye > "u" && (ye = 1 / 0);
|
|
38457
|
-
function De(
|
|
38458
|
-
if (
|
|
38451
|
+
function De(Le, ze) {
|
|
38452
|
+
if (Le === null)
|
|
38459
38453
|
return null;
|
|
38460
38454
|
if (ze === 0)
|
|
38461
|
-
return
|
|
38455
|
+
return Le;
|
|
38462
38456
|
var qe, Ae;
|
|
38463
|
-
if (typeof
|
|
38464
|
-
return
|
|
38465
|
-
if (ne(
|
|
38457
|
+
if (typeof Le != "object")
|
|
38458
|
+
return Le;
|
|
38459
|
+
if (ne(Le, oe))
|
|
38466
38460
|
qe = new oe();
|
|
38467
|
-
else if (ne(
|
|
38461
|
+
else if (ne(Le, de))
|
|
38468
38462
|
qe = new de();
|
|
38469
|
-
else if (ne(
|
|
38463
|
+
else if (ne(Le, ue))
|
|
38470
38464
|
qe = new ue(function(We, Fe) {
|
|
38471
|
-
|
|
38465
|
+
Le.then(function(He) {
|
|
38472
38466
|
We(De(He, ze - 1));
|
|
38473
38467
|
}, function(He) {
|
|
38474
38468
|
Fe(De(He, ze - 1));
|
|
38475
38469
|
});
|
|
38476
38470
|
});
|
|
38477
|
-
else if (ce.__isArray(
|
|
38471
|
+
else if (ce.__isArray(Le))
|
|
38478
38472
|
qe = [];
|
|
38479
|
-
else if (ce.__isRegExp(
|
|
38480
|
-
qe = new RegExp(
|
|
38481
|
-
else if (ce.__isDate(
|
|
38482
|
-
qe = new Date(
|
|
38473
|
+
else if (ce.__isRegExp(Le))
|
|
38474
|
+
qe = new RegExp(Le.source, be(Le)), Le.lastIndex && (qe.lastIndex = Le.lastIndex);
|
|
38475
|
+
else if (ce.__isDate(Le))
|
|
38476
|
+
qe = new Date(Le.getTime());
|
|
38483
38477
|
else {
|
|
38484
|
-
if (
|
|
38485
|
-
return Buffer.allocUnsafe ? qe = Buffer.allocUnsafe(
|
|
38486
|
-
ne(
|
|
38478
|
+
if (Ie && Buffer.isBuffer(Le))
|
|
38479
|
+
return Buffer.allocUnsafe ? qe = Buffer.allocUnsafe(Le.length) : qe = new Buffer(Le.length), Le.copy(qe), qe;
|
|
38480
|
+
ne(Le, Error) ? qe = Object.create(Le) : typeof we > "u" ? (Ae = Object.getPrototypeOf(Le), qe = Object.create(Ae)) : (qe = Object.create(we), Ae = we);
|
|
38487
38481
|
}
|
|
38488
38482
|
if (ve) {
|
|
38489
|
-
var Pe = _e.indexOf(
|
|
38483
|
+
var Pe = _e.indexOf(Le);
|
|
38490
38484
|
if (Pe != -1)
|
|
38491
38485
|
return Ce[Pe];
|
|
38492
|
-
_e.push(
|
|
38486
|
+
_e.push(Le), Ce.push(qe);
|
|
38493
38487
|
}
|
|
38494
|
-
ne(
|
|
38488
|
+
ne(Le, oe) && Le.forEach(function(We, Fe) {
|
|
38495
38489
|
var He = De(Fe, ze - 1), Ge = De(We, ze - 1);
|
|
38496
38490
|
qe.set(He, Ge);
|
|
38497
|
-
}), ne(
|
|
38491
|
+
}), ne(Le, de) && Le.forEach(function(We) {
|
|
38498
38492
|
var Fe = De(We, ze - 1);
|
|
38499
38493
|
qe.add(Fe);
|
|
38500
38494
|
});
|
|
38501
|
-
for (var Me in
|
|
38495
|
+
for (var Me in Le) {
|
|
38502
38496
|
var Be;
|
|
38503
|
-
Ae && (Be = Object.getOwnPropertyDescriptor(Ae, Me)), !(Be && Be.set == null) && (qe[Me] = De(
|
|
38497
|
+
Ae && (Be = Object.getOwnPropertyDescriptor(Ae, Me)), !(Be && Be.set == null) && (qe[Me] = De(Le[Me], ze - 1));
|
|
38504
38498
|
}
|
|
38505
38499
|
if (Object.getOwnPropertySymbols)
|
|
38506
|
-
for (var Ve = Object.getOwnPropertySymbols(
|
|
38507
|
-
var Je = Ve[Me], Ye = Object.getOwnPropertyDescriptor(
|
|
38508
|
-
Ye && !Ye.enumerable && !Se || (qe[Je] = De(
|
|
38500
|
+
for (var Ve = Object.getOwnPropertySymbols(Le), Me = 0; Me < Ve.length; Me++) {
|
|
38501
|
+
var Je = Ve[Me], Ye = Object.getOwnPropertyDescriptor(Le, Je);
|
|
38502
|
+
Ye && !Ye.enumerable && !Se || (qe[Je] = De(Le[Je], ze - 1), Ye.enumerable || Object.defineProperty(qe, Je, {
|
|
38509
38503
|
enumerable: !1
|
|
38510
38504
|
}));
|
|
38511
38505
|
}
|
|
38512
38506
|
if (Se)
|
|
38513
|
-
for (var kt = Object.getOwnPropertyNames(
|
|
38514
|
-
var Qe = kt[Me], Ye = Object.getOwnPropertyDescriptor(
|
|
38515
|
-
Ye && Ye.enumerable || (qe[Qe] = De(
|
|
38507
|
+
for (var kt = Object.getOwnPropertyNames(Le), Me = 0; Me < kt.length; Me++) {
|
|
38508
|
+
var Qe = kt[Me], Ye = Object.getOwnPropertyDescriptor(Le, Qe);
|
|
38509
|
+
Ye && Ye.enumerable || (qe[Qe] = De(Le[Qe], ze - 1), Object.defineProperty(qe, Qe, {
|
|
38516
38510
|
enumerable: !1
|
|
38517
38511
|
}));
|
|
38518
38512
|
}
|
|
@@ -38611,7 +38605,7 @@ var quill = { exports: {} };
|
|
|
38611
38605
|
if (!(qe instanceof Ae))
|
|
38612
38606
|
throw new TypeError("Cannot call a class as a function");
|
|
38613
38607
|
}
|
|
38614
|
-
function
|
|
38608
|
+
function Ie(qe, Ae) {
|
|
38615
38609
|
if (!qe)
|
|
38616
38610
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38617
38611
|
return Ae && (typeof Ae == "object" || typeof Ae == "function") ? Ae : qe;
|
|
@@ -38621,14 +38615,14 @@ var quill = { exports: {} };
|
|
|
38621
38615
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
|
|
38622
38616
|
qe.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: qe, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(qe, Ae) : qe.__proto__ = Ae);
|
|
38623
38617
|
}
|
|
38624
|
-
function
|
|
38618
|
+
function Le(qe) {
|
|
38625
38619
|
return qe instanceof ge.default || qe instanceof fe.BlockEmbed;
|
|
38626
38620
|
}
|
|
38627
38621
|
var ze = function(qe) {
|
|
38628
38622
|
De(Ae, qe);
|
|
38629
38623
|
function Ae(Pe, Me) {
|
|
38630
38624
|
Ce(this, Ae);
|
|
38631
|
-
var Be =
|
|
38625
|
+
var Be = Ie(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, Pe));
|
|
38632
38626
|
return Be.emitter = Me.emitter, Array.isArray(Me.whitelist) && (Be.whitelist = Me.whitelist.reduce(function(Ve, Je) {
|
|
38633
38627
|
return Ve[Je] = !0, Ve;
|
|
38634
38628
|
}, {})), Be.domNode.addEventListener("DOMNodeInserted", function() {
|
|
@@ -38714,7 +38708,7 @@ var quill = { exports: {} };
|
|
|
38714
38708
|
}, {
|
|
38715
38709
|
key: "line",
|
|
38716
38710
|
value: function(Me) {
|
|
38717
|
-
return Me === this.length() ? this.line(Me - 1) : this.descendant(
|
|
38711
|
+
return Me === this.length() ? this.line(Me - 1) : this.descendant(Le, Me);
|
|
38718
38712
|
}
|
|
38719
38713
|
}, {
|
|
38720
38714
|
key: "lines",
|
|
@@ -38722,7 +38716,7 @@ var quill = { exports: {} };
|
|
|
38722
38716
|
var Me = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, Be = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, Ve = function Je(Ye, kt, Qe) {
|
|
38723
38717
|
var We = [], Fe = Qe;
|
|
38724
38718
|
return Ye.children.forEachAt(kt, Qe, function(He, Ge, Xe) {
|
|
38725
|
-
|
|
38719
|
+
Le(He) ? We.push(He) : He instanceof ce.default.Container && (We = We.concat(Je(He, Ge, Fe))), Fe -= Xe;
|
|
38726
38720
|
}), We;
|
|
38727
38721
|
};
|
|
38728
38722
|
return Ve(this, Me, Be);
|
|
@@ -38794,7 +38788,7 @@ var quill = { exports: {} };
|
|
|
38794
38788
|
return function(Ze, nt, ot) {
|
|
38795
38789
|
return nt && je(Ze.prototype, nt), ot && je(Ze, ot), Ze;
|
|
38796
38790
|
};
|
|
38797
|
-
}(), ue = re(21), ce = qe(ue), he = re(11), pe = qe(he), fe = re(3), ge = qe(fe), be = re(2), me = qe(be), ve = re(20), ye = qe(ve), we = re(0), Se = qe(we), _e = re(5), Ce = qe(_e),
|
|
38791
|
+
}(), ue = re(21), ce = qe(ue), he = re(11), pe = qe(he), fe = re(3), ge = qe(fe), be = re(2), me = qe(be), ve = re(20), ye = qe(ve), we = re(0), Se = qe(we), _e = re(5), Ce = qe(_e), Ie = re(10), De = qe(Ie), Le = re(9), ze = qe(Le);
|
|
38798
38792
|
function qe(je) {
|
|
38799
38793
|
return je && je.__esModule ? je : { default: je };
|
|
38800
38794
|
}
|
|
@@ -39130,17 +39124,17 @@ var quill = { exports: {} };
|
|
|
39130
39124
|
});
|
|
39131
39125
|
var ne = /* @__PURE__ */ function() {
|
|
39132
39126
|
function ye(we, Se) {
|
|
39133
|
-
var _e = [], Ce = !0,
|
|
39127
|
+
var _e = [], Ce = !0, Ie = !1, De = void 0;
|
|
39134
39128
|
try {
|
|
39135
|
-
for (var
|
|
39129
|
+
for (var Le = we[Symbol.iterator](), ze; !(Ce = (ze = Le.next()).done) && (_e.push(ze.value), !(Se && _e.length === Se)); Ce = !0)
|
|
39136
39130
|
;
|
|
39137
39131
|
} catch (qe) {
|
|
39138
|
-
|
|
39132
|
+
Ie = !0, De = qe;
|
|
39139
39133
|
} finally {
|
|
39140
39134
|
try {
|
|
39141
|
-
!Ce &&
|
|
39135
|
+
!Ce && Le.return && Le.return();
|
|
39142
39136
|
} finally {
|
|
39143
|
-
if (
|
|
39137
|
+
if (Ie) throw De;
|
|
39144
39138
|
}
|
|
39145
39139
|
}
|
|
39146
39140
|
return _e;
|
|
@@ -39156,8 +39150,8 @@ var quill = { exports: {} };
|
|
|
39156
39150
|
we === null && (we = Function.prototype);
|
|
39157
39151
|
var Ce = Object.getOwnPropertyDescriptor(we, Se);
|
|
39158
39152
|
if (Ce === void 0) {
|
|
39159
|
-
var
|
|
39160
|
-
return
|
|
39153
|
+
var Ie = Object.getPrototypeOf(we);
|
|
39154
|
+
return Ie === null ? void 0 : ye(Ie, Se, _e);
|
|
39161
39155
|
} else {
|
|
39162
39156
|
if ("value" in Ce)
|
|
39163
39157
|
return Ce.value;
|
|
@@ -39213,9 +39207,9 @@ var quill = { exports: {} };
|
|
|
39213
39207
|
value: function(_e, Ce) {
|
|
39214
39208
|
if (this._length !== 0)
|
|
39215
39209
|
return oe(we.prototype.__proto__ || Object.getPrototypeOf(we.prototype), "format", this).call(this, _e, Ce);
|
|
39216
|
-
for (var
|
|
39217
|
-
De +=
|
|
39218
|
-
|
|
39210
|
+
for (var Ie = this, De = 0; Ie != null && Ie.statics.scope !== ce.default.Scope.BLOCK_BLOT; )
|
|
39211
|
+
De += Ie.offset(Ie.parent), Ie = Ie.parent;
|
|
39212
|
+
Ie != null && (this._length = we.CONTENTS.length, Ie.optimize(), Ie.formatAt(De, we.CONTENTS.length, _e, Ce), this._length = 0);
|
|
39219
39213
|
}
|
|
39220
39214
|
}, {
|
|
39221
39215
|
key: "index",
|
|
@@ -39241,26 +39235,26 @@ var quill = { exports: {} };
|
|
|
39241
39235
|
key: "restore",
|
|
39242
39236
|
value: function() {
|
|
39243
39237
|
if (!(this.selection.composing || this.parent == null)) {
|
|
39244
|
-
var _e = this.textNode, Ce = this.selection.getNativeRange(),
|
|
39238
|
+
var _e = this.textNode, Ce = this.selection.getNativeRange(), Ie = void 0, De = void 0, Le = void 0;
|
|
39245
39239
|
if (Ce != null && Ce.start.node === _e && Ce.end.node === _e) {
|
|
39246
39240
|
var ze = [_e, Ce.start.offset, Ce.end.offset];
|
|
39247
|
-
|
|
39241
|
+
Ie = ze[0], De = ze[1], Le = ze[2];
|
|
39248
39242
|
}
|
|
39249
39243
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
39250
39244
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
39251
39245
|
if (this.textNode.data !== we.CONTENTS) {
|
|
39252
39246
|
var qe = this.textNode.data.split(we.CONTENTS).join("");
|
|
39253
|
-
this.next instanceof pe.default ? (
|
|
39247
|
+
this.next instanceof pe.default ? (Ie = this.next.domNode, this.next.insertAt(0, qe), this.textNode.data = we.CONTENTS) : (this.textNode.data = qe, this.parent.insertBefore(ce.default.create(this.textNode), this), this.textNode = document.createTextNode(we.CONTENTS), this.domNode.appendChild(this.textNode));
|
|
39254
39248
|
}
|
|
39255
39249
|
if (this.remove(), De != null) {
|
|
39256
|
-
var Ae = [De,
|
|
39257
|
-
return Math.max(0, Math.min(
|
|
39250
|
+
var Ae = [De, Le].map(function(Me) {
|
|
39251
|
+
return Math.max(0, Math.min(Ie.data.length, Me - 1));
|
|
39258
39252
|
}), Pe = ne(Ae, 2);
|
|
39259
|
-
return De = Pe[0],
|
|
39260
|
-
startNode:
|
|
39253
|
+
return De = Pe[0], Le = Pe[1], {
|
|
39254
|
+
startNode: Ie,
|
|
39261
39255
|
startOffset: De,
|
|
39262
|
-
endNode:
|
|
39263
|
-
endOffset:
|
|
39256
|
+
endNode: Ie,
|
|
39257
|
+
endOffset: Le
|
|
39264
39258
|
};
|
|
39265
39259
|
}
|
|
39266
39260
|
}
|
|
@@ -39268,9 +39262,9 @@ var quill = { exports: {} };
|
|
|
39268
39262
|
}, {
|
|
39269
39263
|
key: "update",
|
|
39270
39264
|
value: function(_e, Ce) {
|
|
39271
|
-
var
|
|
39272
|
-
if (_e.some(function(
|
|
39273
|
-
return
|
|
39265
|
+
var Ie = this;
|
|
39266
|
+
if (_e.some(function(Le) {
|
|
39267
|
+
return Le.type === "characterData" && Le.target === Ie.textNode;
|
|
39274
39268
|
})) {
|
|
39275
39269
|
var De = this.restore();
|
|
39276
39270
|
De && (Ce.range = De);
|
|
@@ -39343,8 +39337,8 @@ var quill = { exports: {} };
|
|
|
39343
39337
|
} else {
|
|
39344
39338
|
if ("value" in _e)
|
|
39345
39339
|
return _e.value;
|
|
39346
|
-
var
|
|
39347
|
-
return
|
|
39340
|
+
var Ie = _e.get;
|
|
39341
|
+
return Ie === void 0 ? void 0 : Ie.call(Se);
|
|
39348
39342
|
}
|
|
39349
39343
|
}, de = re(0), ue = ce(de);
|
|
39350
39344
|
function ce(ve) {
|
|
@@ -39611,7 +39605,7 @@ var quill = { exports: {} };
|
|
|
39611
39605
|
Object.defineProperty(te, "__esModule", {
|
|
39612
39606
|
value: !0
|
|
39613
39607
|
});
|
|
39614
|
-
var ne = re(0), oe = Ve(ne), de = re(5), ue = Ve(de), ce = re(4), he = Ve(ce), pe = re(16), fe = Ve(pe), ge = re(25), be = Ve(ge), me = re(24), ve = Ve(me), ye = re(36), we = Ve(ye), Se = re(6), _e = Ve(Se), Ce = re(22),
|
|
39608
|
+
var ne = re(0), oe = Ve(ne), de = re(5), ue = Ve(de), ce = re(4), he = Ve(ce), pe = re(16), fe = Ve(pe), ge = re(25), be = Ve(ge), me = re(24), ve = Ve(me), ye = re(36), we = Ve(ye), Se = re(6), _e = Ve(Se), Ce = re(22), Ie = Ve(Ce), De = re(7), Le = Ve(De), ze = re(56), qe = Ve(ze), Ae = re(43), Pe = Ve(Ae), Me = re(23), Be = Ve(Me);
|
|
39615
39609
|
function Ve(Je) {
|
|
39616
39610
|
return Je && Je.__esModule ? Je : { default: Je };
|
|
39617
39611
|
}
|
|
@@ -39623,12 +39617,12 @@ var quill = { exports: {} };
|
|
|
39623
39617
|
"blots/cursor": ve.default,
|
|
39624
39618
|
"blots/embed": we.default,
|
|
39625
39619
|
"blots/inline": _e.default,
|
|
39626
|
-
"blots/scroll":
|
|
39627
|
-
"blots/text":
|
|
39620
|
+
"blots/scroll": Ie.default,
|
|
39621
|
+
"blots/text": Le.default,
|
|
39628
39622
|
"modules/clipboard": qe.default,
|
|
39629
39623
|
"modules/history": Pe.default,
|
|
39630
39624
|
"modules/keyboard": Be.default
|
|
39631
|
-
}), oe.default.register(he.default, fe.default, ve.default, _e.default,
|
|
39625
|
+
}), oe.default.register(he.default, fe.default, ve.default, _e.default, Ie.default, Le.default), te.default = ue.default;
|
|
39632
39626
|
},
|
|
39633
39627
|
/* 30 */
|
|
39634
39628
|
/***/
|
|
@@ -39933,32 +39927,32 @@ var quill = { exports: {} };
|
|
|
39933
39927
|
var Ae = /\s*$/.exec(qe.textContent)[0].length;
|
|
39934
39928
|
return Ae ? Ae - 1 : 0;
|
|
39935
39929
|
}
|
|
39936
|
-
var
|
|
39930
|
+
var Ie = /* @__PURE__ */ new Map();
|
|
39937
39931
|
function De(qe) {
|
|
39938
39932
|
if (de || he) {
|
|
39939
39933
|
var Ae = (he ? document : qe).getSelection();
|
|
39940
39934
|
return Ae.rangeCount ? Ae.getRangeAt(0) : null;
|
|
39941
39935
|
}
|
|
39942
|
-
var Pe =
|
|
39936
|
+
var Pe = Ie.get(qe);
|
|
39943
39937
|
if (Pe)
|
|
39944
39938
|
return Pe;
|
|
39945
39939
|
var Me = ze(qe);
|
|
39946
|
-
return
|
|
39947
|
-
|
|
39940
|
+
return Ie.set(qe, Me.range), window.setTimeout(function() {
|
|
39941
|
+
Ie.delete(qe);
|
|
39948
39942
|
}, 0), Me.range;
|
|
39949
39943
|
}
|
|
39950
|
-
var
|
|
39944
|
+
var Le = document.createTextNode("");
|
|
39951
39945
|
function ze(qe) {
|
|
39952
39946
|
var Ae = document.createRange(), Pe = window.getSelection();
|
|
39953
39947
|
if (!Pe.containsNode(qe.host, !0))
|
|
39954
39948
|
return { range: null, mode: "none" };
|
|
39955
|
-
qe.insertBefore(
|
|
39956
|
-
var Me = Pe.containsNode(
|
|
39957
|
-
if (
|
|
39949
|
+
qe.insertBefore(Le, qe.childNodes[0]);
|
|
39950
|
+
var Me = Pe.containsNode(Le);
|
|
39951
|
+
if (Le.remove(), Me)
|
|
39958
39952
|
return { range: null, mode: "outside-before" };
|
|
39959
|
-
qe.appendChild(
|
|
39960
|
-
var Be = Pe.containsNode(
|
|
39961
|
-
if (
|
|
39953
|
+
qe.appendChild(Le);
|
|
39954
|
+
var Be = Pe.containsNode(Le);
|
|
39955
|
+
if (Le.remove(), Be)
|
|
39962
39956
|
return { range: null, mode: "outside-after" };
|
|
39963
39957
|
var Ve = function() {
|
|
39964
39958
|
return Pe.toString().length;
|
|
@@ -40049,8 +40043,8 @@ var quill = { exports: {} };
|
|
|
40049
40043
|
we === null && (we = Function.prototype);
|
|
40050
40044
|
var Ce = Object.getOwnPropertyDescriptor(we, Se);
|
|
40051
40045
|
if (Ce === void 0) {
|
|
40052
|
-
var
|
|
40053
|
-
return
|
|
40046
|
+
var Ie = Object.getPrototypeOf(we);
|
|
40047
|
+
return Ie === null ? void 0 : ye(Ie, Se, _e);
|
|
40054
40048
|
} else {
|
|
40055
40049
|
if ("value" in Ce)
|
|
40056
40050
|
return Ce.value;
|
|
@@ -40092,24 +40086,24 @@ var quill = { exports: {} };
|
|
|
40092
40086
|
}, {
|
|
40093
40087
|
key: "restore",
|
|
40094
40088
|
value: function(_e) {
|
|
40095
|
-
var Ce = void 0,
|
|
40089
|
+
var Ce = void 0, Ie = void 0, De = _e.data.split(me).join("");
|
|
40096
40090
|
if (_e === this.leftGuard)
|
|
40097
40091
|
if (this.prev instanceof he.default) {
|
|
40098
|
-
var
|
|
40099
|
-
this.prev.insertAt(
|
|
40092
|
+
var Le = this.prev.length();
|
|
40093
|
+
this.prev.insertAt(Le, De), Ce = {
|
|
40100
40094
|
startNode: this.prev.domNode,
|
|
40101
|
-
startOffset:
|
|
40095
|
+
startOffset: Le + De.length
|
|
40102
40096
|
};
|
|
40103
40097
|
} else
|
|
40104
|
-
|
|
40105
|
-
startNode:
|
|
40098
|
+
Ie = document.createTextNode(De), this.parent.insertBefore(ue.default.create(Ie), this), Ce = {
|
|
40099
|
+
startNode: Ie,
|
|
40106
40100
|
startOffset: De.length
|
|
40107
40101
|
};
|
|
40108
40102
|
else _e === this.rightGuard && (this.next instanceof he.default ? (this.next.insertAt(0, De), Ce = {
|
|
40109
40103
|
startNode: this.next.domNode,
|
|
40110
40104
|
startOffset: De.length
|
|
40111
|
-
}) : (
|
|
40112
|
-
startNode:
|
|
40105
|
+
}) : (Ie = document.createTextNode(De), this.parent.insertBefore(ue.default.create(Ie), this.next), Ce = {
|
|
40106
|
+
startNode: Ie,
|
|
40113
40107
|
startOffset: De.length
|
|
40114
40108
|
}));
|
|
40115
40109
|
return _e.data = me, Ce;
|
|
@@ -40117,11 +40111,11 @@ var quill = { exports: {} };
|
|
|
40117
40111
|
}, {
|
|
40118
40112
|
key: "update",
|
|
40119
40113
|
value: function(_e, Ce) {
|
|
40120
|
-
var
|
|
40114
|
+
var Ie = this;
|
|
40121
40115
|
_e.forEach(function(De) {
|
|
40122
|
-
if (De.type === "characterData" && (De.target ===
|
|
40123
|
-
var
|
|
40124
|
-
|
|
40116
|
+
if (De.type === "characterData" && (De.target === Ie.leftGuard || De.target === Ie.rightGuard)) {
|
|
40117
|
+
var Le = Ie.restore(De.target);
|
|
40118
|
+
Le && (Ce.range = Le);
|
|
40125
40119
|
}
|
|
40126
40120
|
});
|
|
40127
40121
|
}
|
|
@@ -40198,8 +40192,8 @@ var quill = { exports: {} };
|
|
|
40198
40192
|
we === null && (we = Function.prototype);
|
|
40199
40193
|
var Ce = Object.getOwnPropertyDescriptor(we, Se);
|
|
40200
40194
|
if (Ce === void 0) {
|
|
40201
|
-
var
|
|
40202
|
-
return
|
|
40195
|
+
var Ie = Object.getPrototypeOf(we);
|
|
40196
|
+
return Ie === null ? void 0 : ye(Ie, Se, _e);
|
|
40203
40197
|
} else {
|
|
40204
40198
|
if ("value" in Ce)
|
|
40205
40199
|
return Ce.value;
|
|
@@ -40321,13 +40315,13 @@ var quill = { exports: {} };
|
|
|
40321
40315
|
}), te.getLastChangeIndex = te.default = void 0;
|
|
40322
40316
|
var ne = /* @__PURE__ */ function() {
|
|
40323
40317
|
function Se(_e, Ce) {
|
|
40324
|
-
for (var
|
|
40325
|
-
var De = Ce[
|
|
40318
|
+
for (var Ie = 0; Ie < Ce.length; Ie++) {
|
|
40319
|
+
var De = Ce[Ie];
|
|
40326
40320
|
De.enumerable = De.enumerable || !1, De.configurable = !0, "value" in De && (De.writable = !0), Object.defineProperty(_e, De.key, De);
|
|
40327
40321
|
}
|
|
40328
40322
|
}
|
|
40329
|
-
return function(_e, Ce,
|
|
40330
|
-
return Ce && Se(_e.prototype, Ce),
|
|
40323
|
+
return function(_e, Ce, Ie) {
|
|
40324
|
+
return Ce && Se(_e.prototype, Ce), Ie && Se(_e, Ie), _e;
|
|
40331
40325
|
};
|
|
40332
40326
|
}(), oe = re(0), de = fe(oe), ue = re(5), ce = fe(ue), he = re(9), pe = fe(he);
|
|
40333
40327
|
function fe(Se) {
|
|
@@ -40349,20 +40343,20 @@ var quill = { exports: {} };
|
|
|
40349
40343
|
}
|
|
40350
40344
|
var ve = function(Se) {
|
|
40351
40345
|
me(_e, Se);
|
|
40352
|
-
function _e(Ce,
|
|
40346
|
+
function _e(Ce, Ie) {
|
|
40353
40347
|
ge(this, _e);
|
|
40354
|
-
var De = be(this, (_e.__proto__ || Object.getPrototypeOf(_e)).call(this, Ce,
|
|
40355
|
-
return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ce.default.events.EDITOR_CHANGE, function(
|
|
40356
|
-
|
|
40348
|
+
var De = be(this, (_e.__proto__ || Object.getPrototypeOf(_e)).call(this, Ce, Ie));
|
|
40349
|
+
return De.lastRecorded = 0, De.ignoreChange = !1, De.clear(), De.quill.on(ce.default.events.EDITOR_CHANGE, function(Le, ze, qe, Ae) {
|
|
40350
|
+
Le !== ce.default.events.TEXT_CHANGE || De.ignoreChange || (!De.options.userOnly || Ae === ce.default.sources.USER ? De.record(ze, qe) : De.transform(ze));
|
|
40357
40351
|
}), De.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, De.undo.bind(De)), De.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, De.redo.bind(De)), /Win/i.test(navigator.platform) && De.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, De.redo.bind(De)), De;
|
|
40358
40352
|
}
|
|
40359
40353
|
return ne(_e, [{
|
|
40360
40354
|
key: "change",
|
|
40361
|
-
value: function(
|
|
40362
|
-
if (this.stack[
|
|
40363
|
-
var
|
|
40364
|
-
this.stack[De].push(
|
|
40365
|
-
var ze = we(Ie
|
|
40355
|
+
value: function(Ie, De) {
|
|
40356
|
+
if (this.stack[Ie].length !== 0) {
|
|
40357
|
+
var Le = this.stack[Ie].pop();
|
|
40358
|
+
this.stack[De].push(Le), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(Le[Ie], ce.default.sources.USER), this.ignoreChange = !1;
|
|
40359
|
+
var ze = we(Le[Ie]);
|
|
40366
40360
|
this.quill.setSelection(ze);
|
|
40367
40361
|
}
|
|
40368
40362
|
}
|
|
@@ -40378,18 +40372,18 @@ var quill = { exports: {} };
|
|
|
40378
40372
|
}
|
|
40379
40373
|
}, {
|
|
40380
40374
|
key: "record",
|
|
40381
|
-
value: function(
|
|
40382
|
-
if (
|
|
40375
|
+
value: function(Ie, De) {
|
|
40376
|
+
if (Ie.ops.length !== 0) {
|
|
40383
40377
|
this.stack.redo = [];
|
|
40384
|
-
var
|
|
40378
|
+
var Le = this.quill.getContents().diff(De), ze = Date.now();
|
|
40385
40379
|
if (this.lastRecorded + this.options.delay > ze && this.stack.undo.length > 0) {
|
|
40386
40380
|
var qe = this.stack.undo.pop();
|
|
40387
|
-
|
|
40381
|
+
Le = Le.compose(qe.undo), Ie = qe.redo.compose(Ie);
|
|
40388
40382
|
} else
|
|
40389
40383
|
this.lastRecorded = ze;
|
|
40390
40384
|
this.stack.undo.push({
|
|
40391
|
-
redo:
|
|
40392
|
-
undo:
|
|
40385
|
+
redo: Ie,
|
|
40386
|
+
undo: Le
|
|
40393
40387
|
}), this.stack.undo.length > this.options.maxStack && this.stack.undo.shift();
|
|
40394
40388
|
}
|
|
40395
40389
|
}
|
|
@@ -40400,11 +40394,11 @@ var quill = { exports: {} };
|
|
|
40400
40394
|
}
|
|
40401
40395
|
}, {
|
|
40402
40396
|
key: "transform",
|
|
40403
|
-
value: function(
|
|
40397
|
+
value: function(Ie) {
|
|
40404
40398
|
this.stack.undo.forEach(function(De) {
|
|
40405
|
-
De.undo =
|
|
40399
|
+
De.undo = Ie.transform(De.undo, !0), De.redo = Ie.transform(De.redo, !0);
|
|
40406
40400
|
}), this.stack.redo.forEach(function(De) {
|
|
40407
|
-
De.undo =
|
|
40401
|
+
De.undo = Ie.transform(De.undo, !0), De.redo = Ie.transform(De.redo, !0);
|
|
40408
40402
|
});
|
|
40409
40403
|
}
|
|
40410
40404
|
}, {
|
|
@@ -40427,8 +40421,8 @@ var quill = { exports: {} };
|
|
|
40427
40421
|
}) : !1;
|
|
40428
40422
|
}
|
|
40429
40423
|
function we(Se) {
|
|
40430
|
-
var _e = Se.reduce(function(
|
|
40431
|
-
return
|
|
40424
|
+
var _e = Se.reduce(function(Ie, De) {
|
|
40425
|
+
return Ie += De.delete || 0, Ie;
|
|
40432
40426
|
}, 0), Ce = Se.length() - _e;
|
|
40433
40427
|
return ye(Se) && (Ce -= 1), Ce;
|
|
40434
40428
|
}
|
|
@@ -40462,7 +40456,7 @@ var quill = { exports: {} };
|
|
|
40462
40456
|
var nt = je.get;
|
|
40463
40457
|
return nt === void 0 ? void 0 : nt.call(Ke);
|
|
40464
40458
|
}
|
|
40465
|
-
}, de = re(3), ue = ze(de), ce = re(2), he = ze(ce), pe = re(8), fe = ze(pe), ge = re(23), be = ze(ge), me = re(35), ve = ze(me), ye = re(60), we = ze(ye), Se = re(61), _e = ze(Se), Ce = re(28),
|
|
40459
|
+
}, de = re(3), ue = ze(de), ce = re(2), he = ze(ce), pe = re(8), fe = ze(pe), ge = re(23), be = ze(ge), me = re(35), ve = ze(me), ye = re(60), we = ze(ye), Se = re(61), _e = ze(Se), Ce = re(28), Ie = ze(Ce), De = re(62), Le = ze(De);
|
|
40466
40460
|
function ze(He) {
|
|
40467
40461
|
return He && He.__esModule ? He : { default: He };
|
|
40468
40462
|
}
|
|
@@ -40528,7 +40522,7 @@ var quill = { exports: {} };
|
|
|
40528
40522
|
var Ct = ot.classList.contains("ql-background") ? "background" : "color";
|
|
40529
40523
|
return ot.querySelector("option") == null && Fe(ot, Be, Ct === "background" ? "#ffffff" : "#000000"), new we.default(ot, je[Ct]);
|
|
40530
40524
|
} else
|
|
40531
|
-
return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Fe(ot, Ve) : ot.classList.contains("ql-header") ? Fe(ot, Je) : ot.classList.contains("ql-size") && Fe(ot, Ye)), new
|
|
40525
|
+
return ot.querySelector("option") == null && (ot.classList.contains("ql-font") ? Fe(ot, Ve) : ot.classList.contains("ql-header") ? Fe(ot, Je) : ot.classList.contains("ql-size") && Fe(ot, Ye)), new Ie.default(ot);
|
|
40532
40526
|
});
|
|
40533
40527
|
var nt = function() {
|
|
40534
40528
|
Ze.pickers.forEach(function(Ct) {
|
|
@@ -40622,7 +40616,7 @@ var quill = { exports: {} };
|
|
|
40622
40616
|
this.textbox.value = "", this.hide();
|
|
40623
40617
|
}
|
|
40624
40618
|
}]), Ge;
|
|
40625
|
-
}(
|
|
40619
|
+
}(Le.default);
|
|
40626
40620
|
function We(He) {
|
|
40627
40621
|
var Ge = He.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || He.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
40628
40622
|
return Ge ? (Ge[1] || "https") + "://www.youtube.com/embed/" + Ge[2] + "?showinfo=0" : (Ge = He.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (Ge[1] || "https") + "://player.vimeo.com/video/" + Ge[2] + "/" : He;
|
|
@@ -40751,8 +40745,8 @@ var quill = { exports: {} };
|
|
|
40751
40745
|
ge === void 0 && (ge = []), be === void 0 && (be = {}), pe.prototype.optimize.call(this, be);
|
|
40752
40746
|
for (var ve = [].slice.call(this.observer.takeRecords()); ve.length > 0; )
|
|
40753
40747
|
ge.push(ve.pop());
|
|
40754
|
-
for (var ye = function(Ce,
|
|
40755
|
-
|
|
40748
|
+
for (var ye = function(Ce, Ie) {
|
|
40749
|
+
Ie === void 0 && (Ie = !0), !(Ce == null || Ce === me) && Ce.domNode.parentNode != null && (Ce.domNode[de.DATA_KEY].mutations == null && (Ce.domNode[de.DATA_KEY].mutations = []), Ie && ye(Ce.parent));
|
|
40756
40750
|
}, we = function(Ce) {
|
|
40757
40751
|
// @ts-ignore
|
|
40758
40752
|
Ce.domNode[de.DATA_KEY] == null || // @ts-ignore
|
|
@@ -40761,13 +40755,13 @@ var quill = { exports: {} };
|
|
|
40761
40755
|
if (_e >= ce)
|
|
40762
40756
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
40763
40757
|
for (Se.forEach(function(Ce) {
|
|
40764
|
-
var
|
|
40765
|
-
|
|
40766
|
-
var
|
|
40767
|
-
ye(
|
|
40758
|
+
var Ie = de.find(Ce.target, !0);
|
|
40759
|
+
Ie != null && (Ie.domNode === Ce.target && (Ce.type === "childList" ? (ye(de.find(Ce.previousSibling, !1)), [].forEach.call(Ce.addedNodes, function(De) {
|
|
40760
|
+
var Le = de.find(De, !1);
|
|
40761
|
+
ye(Le, !1), Le instanceof oe.default && Le.children.forEach(function(ze) {
|
|
40768
40762
|
ye(ze, !1);
|
|
40769
40763
|
});
|
|
40770
|
-
})) : Ce.type === "attributes" && ye(
|
|
40764
|
+
})) : Ce.type === "attributes" && ye(Ie.prev)), ye(Ie));
|
|
40771
40765
|
}), this.children.forEach(we), Se = [].slice.call(this.observer.takeRecords()), ve = Se.slice(); ve.length > 0; )
|
|
40772
40766
|
ge.push(ve.pop());
|
|
40773
40767
|
}
|
|
@@ -41028,31 +41022,31 @@ var quill = { exports: {} };
|
|
|
41028
41022
|
/***/
|
|
41029
41023
|
function(J, te) {
|
|
41030
41024
|
var re = -1, ne = 1, oe = 0;
|
|
41031
|
-
function de(_e, Ce,
|
|
41025
|
+
function de(_e, Ce, Ie) {
|
|
41032
41026
|
if (_e == Ce)
|
|
41033
41027
|
return _e ? [[oe, _e]] : [];
|
|
41034
|
-
(
|
|
41035
|
-
var De = pe(_e, Ce),
|
|
41028
|
+
(Ie < 0 || _e.length < Ie) && (Ie = null);
|
|
41029
|
+
var De = pe(_e, Ce), Le = _e.substring(0, De);
|
|
41036
41030
|
_e = _e.substring(De), Ce = Ce.substring(De), De = fe(_e, Ce);
|
|
41037
41031
|
var ze = _e.substring(_e.length - De);
|
|
41038
41032
|
_e = _e.substring(0, _e.length - De), Ce = Ce.substring(0, Ce.length - De);
|
|
41039
41033
|
var qe = ue(_e, Ce);
|
|
41040
|
-
return
|
|
41034
|
+
return Le && qe.unshift([oe, Le]), ze && qe.push([oe, ze]), be(qe), Ie != null && (qe = ye(qe, Ie)), qe = we(qe), qe;
|
|
41041
41035
|
}
|
|
41042
41036
|
function ue(_e, Ce) {
|
|
41043
|
-
var
|
|
41037
|
+
var Ie;
|
|
41044
41038
|
if (!_e)
|
|
41045
41039
|
return [[ne, Ce]];
|
|
41046
41040
|
if (!Ce)
|
|
41047
41041
|
return [[re, _e]];
|
|
41048
|
-
var De = _e.length > Ce.length ? _e : Ce,
|
|
41042
|
+
var De = _e.length > Ce.length ? _e : Ce, Le = _e.length > Ce.length ? Ce : _e, ze = De.indexOf(Le);
|
|
41049
41043
|
if (ze != -1)
|
|
41050
|
-
return
|
|
41044
|
+
return Ie = [
|
|
41051
41045
|
[ne, De.substring(0, ze)],
|
|
41052
|
-
[oe,
|
|
41053
|
-
[ne, De.substring(ze +
|
|
41054
|
-
], _e.length > Ce.length && (
|
|
41055
|
-
if (
|
|
41046
|
+
[oe, Le],
|
|
41047
|
+
[ne, De.substring(ze + Le.length)]
|
|
41048
|
+
], _e.length > Ce.length && (Ie[0][0] = Ie[2][0] = re), Ie;
|
|
41049
|
+
if (Le.length == 1)
|
|
41056
41050
|
return [[re, _e], [ne, Ce]];
|
|
41057
41051
|
var qe = ge(_e, Ce);
|
|
41058
41052
|
if (qe) {
|
|
@@ -41062,23 +41056,23 @@ var quill = { exports: {} };
|
|
|
41062
41056
|
return ce(_e, Ce);
|
|
41063
41057
|
}
|
|
41064
41058
|
function ce(_e, Ce) {
|
|
41065
|
-
for (var
|
|
41059
|
+
for (var Ie = _e.length, De = Ce.length, Le = Math.ceil((Ie + De) / 2), ze = Le, qe = 2 * Le, Ae = new Array(qe), Pe = new Array(qe), Me = 0; Me < qe; Me++)
|
|
41066
41060
|
Ae[Me] = -1, Pe[Me] = -1;
|
|
41067
41061
|
Ae[ze + 1] = 0, Pe[ze + 1] = 0;
|
|
41068
|
-
for (var Be =
|
|
41062
|
+
for (var Be = Ie - De, Ve = Be % 2 != 0, Je = 0, Ye = 0, kt = 0, Qe = 0, We = 0; We < Le; We++) {
|
|
41069
41063
|
for (var Fe = -We + Je; Fe <= We - Ye; Fe += 2) {
|
|
41070
41064
|
var He = ze + Fe, Ge;
|
|
41071
41065
|
Fe == -We || Fe != We && Ae[He - 1] < Ae[He + 1] ? Ge = Ae[He + 1] : Ge = Ae[He - 1] + 1;
|
|
41072
|
-
for (var Xe = Ge - Fe; Ge <
|
|
41066
|
+
for (var Xe = Ge - Fe; Ge < Ie && Xe < De && _e.charAt(Ge) == Ce.charAt(Xe); )
|
|
41073
41067
|
Ge++, Xe++;
|
|
41074
|
-
if (Ae[He] = Ge, Ge >
|
|
41068
|
+
if (Ae[He] = Ge, Ge > Ie)
|
|
41075
41069
|
Ye += 2;
|
|
41076
41070
|
else if (Xe > De)
|
|
41077
41071
|
Je += 2;
|
|
41078
41072
|
else if (Ve) {
|
|
41079
41073
|
var Ke = ze + Be - Fe;
|
|
41080
41074
|
if (Ke >= 0 && Ke < qe && Pe[Ke] != -1) {
|
|
41081
|
-
var je =
|
|
41075
|
+
var je = Ie - Pe[Ke];
|
|
41082
41076
|
if (Ge >= je)
|
|
41083
41077
|
return he(_e, Ce, Ge, Xe);
|
|
41084
41078
|
}
|
|
@@ -41087,9 +41081,9 @@ var quill = { exports: {} };
|
|
|
41087
41081
|
for (var Ze = -We + kt; Ze <= We - Qe; Ze += 2) {
|
|
41088
41082
|
var Ke = ze + Ze, je;
|
|
41089
41083
|
Ze == -We || Ze != We && Pe[Ke - 1] < Pe[Ke + 1] ? je = Pe[Ke + 1] : je = Pe[Ke - 1] + 1;
|
|
41090
|
-
for (var nt = je - Ze; je <
|
|
41084
|
+
for (var nt = je - Ze; je < Ie && nt < De && _e.charAt(Ie - je - 1) == Ce.charAt(De - nt - 1); )
|
|
41091
41085
|
je++, nt++;
|
|
41092
|
-
if (Pe[Ke] = je, je >
|
|
41086
|
+
if (Pe[Ke] = je, je > Ie)
|
|
41093
41087
|
Qe += 2;
|
|
41094
41088
|
else if (nt > De)
|
|
41095
41089
|
kt += 2;
|
|
@@ -41097,7 +41091,7 @@ var quill = { exports: {} };
|
|
|
41097
41091
|
var He = ze + Be - Ze;
|
|
41098
41092
|
if (He >= 0 && He < qe && Ae[He] != -1) {
|
|
41099
41093
|
var Ge = Ae[He], Xe = ze + Ge - He;
|
|
41100
|
-
if (je =
|
|
41094
|
+
if (je = Ie - je, Ge >= je)
|
|
41101
41095
|
return he(_e, Ce, Ge, Xe);
|
|
41102
41096
|
}
|
|
41103
41097
|
}
|
|
@@ -41105,29 +41099,29 @@ var quill = { exports: {} };
|
|
|
41105
41099
|
}
|
|
41106
41100
|
return [[re, _e], [ne, Ce]];
|
|
41107
41101
|
}
|
|
41108
|
-
function he(_e, Ce,
|
|
41109
|
-
var
|
|
41102
|
+
function he(_e, Ce, Ie, De) {
|
|
41103
|
+
var Le = _e.substring(0, Ie), ze = Ce.substring(0, De), qe = _e.substring(Ie), Ae = Ce.substring(De), Pe = de(Le, ze), Me = de(qe, Ae);
|
|
41110
41104
|
return Pe.concat(Me);
|
|
41111
41105
|
}
|
|
41112
41106
|
function pe(_e, Ce) {
|
|
41113
41107
|
if (!_e || !Ce || _e.charAt(0) != Ce.charAt(0))
|
|
41114
41108
|
return 0;
|
|
41115
|
-
for (var
|
|
41116
|
-
_e.substring(ze,
|
|
41117
|
-
return
|
|
41109
|
+
for (var Ie = 0, De = Math.min(_e.length, Ce.length), Le = De, ze = 0; Ie < Le; )
|
|
41110
|
+
_e.substring(ze, Le) == Ce.substring(ze, Le) ? (Ie = Le, ze = Ie) : De = Le, Le = Math.floor((De - Ie) / 2 + Ie);
|
|
41111
|
+
return Le;
|
|
41118
41112
|
}
|
|
41119
41113
|
function fe(_e, Ce) {
|
|
41120
41114
|
if (!_e || !Ce || _e.charAt(_e.length - 1) != Ce.charAt(Ce.length - 1))
|
|
41121
41115
|
return 0;
|
|
41122
|
-
for (var
|
|
41123
|
-
_e.substring(_e.length -
|
|
41124
|
-
return
|
|
41116
|
+
for (var Ie = 0, De = Math.min(_e.length, Ce.length), Le = De, ze = 0; Ie < Le; )
|
|
41117
|
+
_e.substring(_e.length - Le, _e.length - ze) == Ce.substring(Ce.length - Le, Ce.length - ze) ? (Ie = Le, ze = Ie) : De = Le, Le = Math.floor((De - Ie) / 2 + Ie);
|
|
41118
|
+
return Le;
|
|
41125
41119
|
}
|
|
41126
41120
|
function ge(_e, Ce) {
|
|
41127
|
-
var
|
|
41128
|
-
if (
|
|
41121
|
+
var Ie = _e.length > Ce.length ? _e : Ce, De = _e.length > Ce.length ? Ce : _e;
|
|
41122
|
+
if (Ie.length < 4 || De.length * 2 < Ie.length)
|
|
41129
41123
|
return null;
|
|
41130
|
-
function
|
|
41124
|
+
function Le(Ye, kt, Qe) {
|
|
41131
41125
|
for (var We = Ye.substring(Qe, Qe + Math.floor(Ye.length / 4)), Fe = -1, He = "", Ge, Xe, Ke, je; (Fe = kt.indexOf(We, Fe + 1)) != -1; ) {
|
|
41132
41126
|
var Ze = pe(
|
|
41133
41127
|
Ye.substring(Qe),
|
|
@@ -41146,14 +41140,14 @@ var quill = { exports: {} };
|
|
|
41146
41140
|
He
|
|
41147
41141
|
] : null;
|
|
41148
41142
|
}
|
|
41149
|
-
var ze =
|
|
41150
|
-
|
|
41143
|
+
var ze = Le(
|
|
41144
|
+
Ie,
|
|
41151
41145
|
De,
|
|
41152
|
-
Math.ceil(
|
|
41153
|
-
), qe =
|
|
41154
|
-
|
|
41146
|
+
Math.ceil(Ie.length / 4)
|
|
41147
|
+
), qe = Le(
|
|
41148
|
+
Ie,
|
|
41155
41149
|
De,
|
|
41156
|
-
Math.ceil(
|
|
41150
|
+
Math.ceil(Ie.length / 2)
|
|
41157
41151
|
), Ae;
|
|
41158
41152
|
if (!ze && !qe)
|
|
41159
41153
|
return null;
|
|
@@ -41165,32 +41159,32 @@ var quill = { exports: {} };
|
|
|
41165
41159
|
}
|
|
41166
41160
|
function be(_e) {
|
|
41167
41161
|
_e.push([oe, ""]);
|
|
41168
|
-
for (var Ce = 0,
|
|
41162
|
+
for (var Ce = 0, Ie = 0, De = 0, Le = "", ze = "", qe; Ce < _e.length; )
|
|
41169
41163
|
switch (_e[Ce][0]) {
|
|
41170
41164
|
case ne:
|
|
41171
41165
|
De++, ze += _e[Ce][1], Ce++;
|
|
41172
41166
|
break;
|
|
41173
41167
|
case re:
|
|
41174
|
-
|
|
41168
|
+
Ie++, Le += _e[Ce][1], Ce++;
|
|
41175
41169
|
break;
|
|
41176
41170
|
case oe:
|
|
41177
|
-
|
|
41171
|
+
Ie + De > 1 ? (Ie !== 0 && De !== 0 && (qe = pe(ze, Le), qe !== 0 && (Ce - Ie - De > 0 && _e[Ce - Ie - De - 1][0] == oe ? _e[Ce - Ie - De - 1][1] += ze.substring(0, qe) : (_e.splice(0, 0, [
|
|
41178
41172
|
oe,
|
|
41179
41173
|
ze.substring(0, qe)
|
|
41180
|
-
]), Ce++), ze = ze.substring(qe),
|
|
41174
|
+
]), Ce++), ze = ze.substring(qe), Le = Le.substring(qe)), qe = fe(ze, Le), qe !== 0 && (_e[Ce][1] = ze.substring(ze.length - qe) + _e[Ce][1], ze = ze.substring(0, ze.length - qe), Le = Le.substring(0, Le.length - qe))), Ie === 0 ? _e.splice(
|
|
41181
41175
|
Ce - De,
|
|
41182
|
-
|
|
41176
|
+
Ie + De,
|
|
41183
41177
|
[ne, ze]
|
|
41184
41178
|
) : De === 0 ? _e.splice(
|
|
41185
|
-
Ce -
|
|
41186
|
-
|
|
41187
|
-
[re,
|
|
41179
|
+
Ce - Ie,
|
|
41180
|
+
Ie + De,
|
|
41181
|
+
[re, Le]
|
|
41188
41182
|
) : _e.splice(
|
|
41189
|
-
Ce -
|
|
41190
|
-
|
|
41191
|
-
[re,
|
|
41183
|
+
Ce - Ie - De,
|
|
41184
|
+
Ie + De,
|
|
41185
|
+
[re, Le],
|
|
41192
41186
|
[ne, ze]
|
|
41193
|
-
), Ce = Ce -
|
|
41187
|
+
), Ce = Ce - Ie - De + (Ie ? 1 : 0) + (De ? 1 : 0) + 1) : Ce !== 0 && _e[Ce - 1][0] == oe ? (_e[Ce - 1][1] += _e[Ce][1], _e.splice(Ce, 1)) : Ce++, De = 0, Ie = 0, Le = "", ze = "";
|
|
41194
41188
|
break;
|
|
41195
41189
|
}
|
|
41196
41190
|
_e[_e.length - 1][1] === "" && _e.pop();
|
|
@@ -41204,55 +41198,55 @@ var quill = { exports: {} };
|
|
|
41204
41198
|
function ve(_e, Ce) {
|
|
41205
41199
|
if (Ce === 0)
|
|
41206
41200
|
return [oe, _e];
|
|
41207
|
-
for (var
|
|
41208
|
-
var
|
|
41209
|
-
if (
|
|
41210
|
-
var ze =
|
|
41201
|
+
for (var Ie = 0, De = 0; De < _e.length; De++) {
|
|
41202
|
+
var Le = _e[De];
|
|
41203
|
+
if (Le[0] === re || Le[0] === oe) {
|
|
41204
|
+
var ze = Ie + Le[1].length;
|
|
41211
41205
|
if (Ce === ze)
|
|
41212
41206
|
return [De + 1, _e];
|
|
41213
41207
|
if (Ce < ze) {
|
|
41214
41208
|
_e = _e.slice();
|
|
41215
|
-
var qe = Ce -
|
|
41209
|
+
var qe = Ce - Ie, Ae = [Le[0], Le[1].slice(0, qe)], Pe = [Le[0], Le[1].slice(qe)];
|
|
41216
41210
|
return _e.splice(De, 1, Ae, Pe), [De + 1, _e];
|
|
41217
41211
|
} else
|
|
41218
|
-
|
|
41212
|
+
Ie = ze;
|
|
41219
41213
|
}
|
|
41220
41214
|
}
|
|
41221
41215
|
throw new Error("cursor_pos is out of bounds!");
|
|
41222
41216
|
}
|
|
41223
41217
|
function ye(_e, Ce) {
|
|
41224
|
-
var
|
|
41218
|
+
var Ie = ve(_e, Ce), De = Ie[1], Le = Ie[0], ze = De[Le], qe = De[Le + 1];
|
|
41225
41219
|
if (ze == null)
|
|
41226
41220
|
return _e;
|
|
41227
41221
|
if (ze[0] !== oe)
|
|
41228
41222
|
return _e;
|
|
41229
41223
|
if (qe != null && ze[1] + qe[1] === qe[1] + ze[1])
|
|
41230
|
-
return De.splice(
|
|
41224
|
+
return De.splice(Le, 2, qe, ze), Se(De, Le, 2);
|
|
41231
41225
|
if (qe != null && qe[1].indexOf(ze[1]) === 0) {
|
|
41232
|
-
De.splice(
|
|
41226
|
+
De.splice(Le, 2, [qe[0], ze[1]], [0, ze[1]]);
|
|
41233
41227
|
var Ae = qe[1].slice(ze[1].length);
|
|
41234
|
-
return Ae.length > 0 && De.splice(
|
|
41228
|
+
return Ae.length > 0 && De.splice(Le + 2, 0, [qe[0], Ae]), Se(De, Le, 3);
|
|
41235
41229
|
} else
|
|
41236
41230
|
return _e;
|
|
41237
41231
|
}
|
|
41238
41232
|
function we(_e) {
|
|
41239
|
-
for (var Ce = !1,
|
|
41233
|
+
for (var Ce = !1, Ie = function(qe) {
|
|
41240
41234
|
return qe.charCodeAt(0) >= 56320 && qe.charCodeAt(0) <= 57343;
|
|
41241
41235
|
}, De = function(qe) {
|
|
41242
41236
|
return qe.charCodeAt(qe.length - 1) >= 55296 && qe.charCodeAt(qe.length - 1) <= 56319;
|
|
41243
|
-
},
|
|
41244
|
-
_e[
|
|
41237
|
+
}, Le = 2; Le < _e.length; Le += 1)
|
|
41238
|
+
_e[Le - 2][0] === oe && De(_e[Le - 2][1]) && _e[Le - 1][0] === re && Ie(_e[Le - 1][1]) && _e[Le][0] === ne && Ie(_e[Le][1]) && (Ce = !0, _e[Le - 1][1] = _e[Le - 2][1].slice(-1) + _e[Le - 1][1], _e[Le][1] = _e[Le - 2][1].slice(-1) + _e[Le][1], _e[Le - 2][1] = _e[Le - 2][1].slice(0, -1));
|
|
41245
41239
|
if (!Ce)
|
|
41246
41240
|
return _e;
|
|
41247
|
-
for (var ze = [],
|
|
41248
|
-
_e[
|
|
41241
|
+
for (var ze = [], Le = 0; Le < _e.length; Le += 1)
|
|
41242
|
+
_e[Le][1].length > 0 && ze.push(_e[Le]);
|
|
41249
41243
|
return ze;
|
|
41250
41244
|
}
|
|
41251
|
-
function Se(_e, Ce,
|
|
41252
|
-
for (var De = Ce +
|
|
41245
|
+
function Se(_e, Ce, Ie) {
|
|
41246
|
+
for (var De = Ce + Ie - 1; De >= 0 && De >= Ce - 1; De--)
|
|
41253
41247
|
if (De + 1 < _e.length) {
|
|
41254
|
-
var
|
|
41255
|
-
|
|
41248
|
+
var Le = _e[De], ze = _e[De + 1];
|
|
41249
|
+
Le[0] === ze[1] && _e.splice(De, 2, [Le[0], Le[1] + ze[1]]);
|
|
41256
41250
|
}
|
|
41257
41251
|
return _e;
|
|
41258
41252
|
}
|
|
@@ -41332,7 +41326,7 @@ var quill = { exports: {} };
|
|
|
41332
41326
|
Se[_e - 1] = arguments[_e];
|
|
41333
41327
|
ye.fn.apply(ye.context, Se);
|
|
41334
41328
|
} else {
|
|
41335
|
-
var Ce = ye.length,
|
|
41329
|
+
var Ce = ye.length, Ie;
|
|
41336
41330
|
for (_e = 0; _e < Ce; _e++)
|
|
41337
41331
|
switch (ye[_e].once && this.removeListener(he, ye[_e].fn, void 0, !0), we) {
|
|
41338
41332
|
case 1:
|
|
@@ -41348,8 +41342,8 @@ var quill = { exports: {} };
|
|
|
41348
41342
|
ye[_e].fn.call(ye[_e].context, pe, fe, ge);
|
|
41349
41343
|
break;
|
|
41350
41344
|
default:
|
|
41351
|
-
if (!Se) for (
|
|
41352
|
-
Se[
|
|
41345
|
+
if (!Se) for (Ie = 1, Se = new Array(we - 1); Ie < we; Ie++)
|
|
41346
|
+
Se[Ie - 1] = arguments[Ie];
|
|
41353
41347
|
ye[_e].fn.apply(ye[_e].context, Se);
|
|
41354
41348
|
}
|
|
41355
41349
|
}
|
|
@@ -41425,7 +41419,7 @@ var quill = { exports: {} };
|
|
|
41425
41419
|
return function(St, qt, Pt) {
|
|
41426
41420
|
return qt && xt(St.prototype, qt), Pt && xt(St, Pt), St;
|
|
41427
41421
|
};
|
|
41428
|
-
}(), ue = re(3), ce = Pe(ue), he = re(2), pe = Pe(he), fe = re(0), ge = Pe(fe), be = re(5), me = Pe(be), ve = re(10), ye = Pe(ve), we = re(9), Se = Pe(we), _e = re(37), Ce = re(38),
|
|
41422
|
+
}(), ue = re(3), ce = Pe(ue), he = re(2), pe = Pe(he), fe = re(0), ge = Pe(fe), be = re(5), me = Pe(be), ve = re(10), ye = Pe(ve), we = re(9), Se = Pe(we), _e = re(37), Ce = re(38), Ie = re(13), De = Pe(Ie), Le = re(26), ze = re(39), qe = re(40), Ae = re(41);
|
|
41429
41423
|
function Pe(xt) {
|
|
41430
41424
|
return xt && xt.__esModule ? xt : { default: xt };
|
|
41431
41425
|
}
|
|
@@ -41448,7 +41442,7 @@ var quill = { exports: {} };
|
|
|
41448
41442
|
}
|
|
41449
41443
|
var Ye = (0, ye.default)("quill:clipboard"), kt = "__ql-matcher", Qe = [[Node.TEXT_NODE, di], [Node.TEXT_NODE, Kt], ["br", Lt], [Node.ELEMENT_NODE, Kt], [Node.ELEMENT_NODE, Ct], [Node.ELEMENT_NODE, ei], [Node.ELEMENT_NODE, ot], [Node.ELEMENT_NODE, mi], ["li", jt], ["b", nt.bind(nt, "bold")], ["i", nt.bind(nt, "italic")], ["style", Bt]], We = [_e.AlignAttribute, ze.DirectionAttribute].reduce(function(xt, St) {
|
|
41450
41444
|
return xt[St.keyName] = St, xt;
|
|
41451
|
-
}, {}), Fe = [_e.AlignStyle, Ce.BackgroundStyle,
|
|
41445
|
+
}, {}), Fe = [_e.AlignStyle, Ce.BackgroundStyle, Le.ColorStyle, ze.DirectionStyle, qe.FontStyle, Ae.SizeStyle].reduce(function(xt, St) {
|
|
41452
41446
|
return xt[St.keyName] = St, xt;
|
|
41453
41447
|
}, {}), He = function(xt) {
|
|
41454
41448
|
Je(St, xt);
|
|
@@ -41767,7 +41761,7 @@ var quill = { exports: {} };
|
|
|
41767
41761
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Me);
|
|
41768
41762
|
Pe.prototype = Object.create(Me && Me.prototype, { constructor: { value: Pe, enumerable: !1, writable: !0, configurable: !0 } }), Me && (Object.setPrototypeOf ? Object.setPrototypeOf(Pe, Me) : Pe.__proto__ = Me);
|
|
41769
41763
|
}
|
|
41770
|
-
var
|
|
41764
|
+
var Ie = "getRootNode" in document, De = (0, be.default)("quill:toolbar"), Le = function(Pe) {
|
|
41771
41765
|
Ce(Me, Pe);
|
|
41772
41766
|
function Me(Be, Ve) {
|
|
41773
41767
|
Se(this, Me);
|
|
@@ -41776,7 +41770,7 @@ var quill = { exports: {} };
|
|
|
41776
41770
|
var Ye = document.createElement("div");
|
|
41777
41771
|
qe(Ye, Je.options.container), Be.container.parentNode.insertBefore(Ye, Be.container), Je.container = Ye;
|
|
41778
41772
|
} else if (typeof Je.options.container == "string") {
|
|
41779
|
-
var kt =
|
|
41773
|
+
var kt = Ie ? Be.container.getRootNode() : document;
|
|
41780
41774
|
Je.container = kt.querySelector(Je.options.container);
|
|
41781
41775
|
} else
|
|
41782
41776
|
Je.container = Je.options.container;
|
|
@@ -41867,7 +41861,7 @@ var quill = { exports: {} };
|
|
|
41867
41861
|
}
|
|
41868
41862
|
}]), Me;
|
|
41869
41863
|
}(ve.default);
|
|
41870
|
-
|
|
41864
|
+
Le.DEFAULTS = {};
|
|
41871
41865
|
function ze(Pe, Me, Be) {
|
|
41872
41866
|
var Ve = document.createElement("button");
|
|
41873
41867
|
Ve.setAttribute("type", "button"), Ve.classList.add("ql-" + Me), Be != null && (Ve.value = Be), Pe.appendChild(Ve);
|
|
@@ -41892,7 +41886,7 @@ var quill = { exports: {} };
|
|
|
41892
41886
|
Je !== !1 ? Ye.setAttribute("value", Je) : Ye.setAttribute("selected", "selected"), Ve.appendChild(Ye);
|
|
41893
41887
|
}), Pe.appendChild(Ve);
|
|
41894
41888
|
}
|
|
41895
|
-
|
|
41889
|
+
Le.DEFAULTS = {
|
|
41896
41890
|
container: null,
|
|
41897
41891
|
handlers: {
|
|
41898
41892
|
clean: function() {
|
|
@@ -41925,7 +41919,7 @@ var quill = { exports: {} };
|
|
|
41925
41919
|
Me === "check" ? Ve.list === "checked" || Ve.list === "unchecked" ? this.quill.format("list", !1, fe.default.sources.USER) : this.quill.format("list", "unchecked", fe.default.sources.USER) : this.quill.format("list", Me, fe.default.sources.USER);
|
|
41926
41920
|
}
|
|
41927
41921
|
}
|
|
41928
|
-
}, te.default =
|
|
41922
|
+
}, te.default = Le, te.addControls = qe;
|
|
41929
41923
|
},
|
|
41930
41924
|
/* 59 */
|
|
41931
41925
|
/***/
|
|
@@ -42187,13 +42181,13 @@ var quill = { exports: {} };
|
|
|
42187
42181
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
42188
42182
|
return Ae && (typeof Ae == "object" || typeof Ae == "function") ? Ae : qe;
|
|
42189
42183
|
}
|
|
42190
|
-
function
|
|
42184
|
+
function Ie(qe, Ae) {
|
|
42191
42185
|
if (typeof Ae != "function" && Ae !== null)
|
|
42192
42186
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Ae);
|
|
42193
42187
|
qe.prototype = Object.create(Ae && Ae.prototype, { constructor: { value: qe, enumerable: !1, writable: !0, configurable: !0 } }), Ae && (Object.setPrototypeOf ? Object.setPrototypeOf(qe, Ae) : qe.__proto__ = Ae);
|
|
42194
42188
|
}
|
|
42195
|
-
var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]],
|
|
42196
|
-
|
|
42189
|
+
var De = [[{ header: ["1", "2", "3", !1] }], ["bold", "italic", "underline", "link"], [{ list: "ordered" }, { list: "bullet" }], ["clean"]], Le = function(qe) {
|
|
42190
|
+
Ie(Ae, qe);
|
|
42197
42191
|
function Ae(Pe, Me) {
|
|
42198
42192
|
_e(this, Ae), Me.modules.toolbar != null && Me.modules.toolbar.container == null && (Me.modules.toolbar.container = De);
|
|
42199
42193
|
var Be = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, Pe, Me));
|
|
@@ -42208,7 +42202,7 @@ var quill = { exports: {} };
|
|
|
42208
42202
|
}
|
|
42209
42203
|
}]), Ae;
|
|
42210
42204
|
}(ge.default);
|
|
42211
|
-
|
|
42205
|
+
Le.DEFAULTS = (0, ce.default)(!0, {}, ge.default.DEFAULTS, {
|
|
42212
42206
|
modules: {
|
|
42213
42207
|
toolbar: {
|
|
42214
42208
|
handlers: {
|
|
@@ -42228,7 +42222,7 @@ var quill = { exports: {} };
|
|
|
42228
42222
|
}
|
|
42229
42223
|
});
|
|
42230
42224
|
var ze = function(qe) {
|
|
42231
|
-
|
|
42225
|
+
Ie(Ae, qe);
|
|
42232
42226
|
function Ae(Pe, Me) {
|
|
42233
42227
|
_e(this, Ae);
|
|
42234
42228
|
var Be = Ce(this, (Ae.__proto__ || Object.getPrototypeOf(Ae)).call(this, Pe, Me));
|
|
@@ -42269,7 +42263,7 @@ var quill = { exports: {} };
|
|
|
42269
42263
|
}
|
|
42270
42264
|
}]), Ae;
|
|
42271
42265
|
}(fe.BaseTooltip);
|
|
42272
|
-
ze.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), te.default =
|
|
42266
|
+
ze.TEMPLATE = ['<a class="ql-preview" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""), te.default = Le;
|
|
42273
42267
|
},
|
|
42274
42268
|
/* 64 */
|
|
42275
42269
|
/***/
|
|
@@ -42277,7 +42271,7 @@ var quill = { exports: {} };
|
|
|
42277
42271
|
Object.defineProperty(te, "__esModule", {
|
|
42278
42272
|
value: !0
|
|
42279
42273
|
});
|
|
42280
|
-
var ne = re(29), oe = Tt(ne), de = re(37), ue = re(39), ce = re(65), he = re(66), pe = Tt(he), fe = re(67), ge = Tt(fe), be = re(68), me = Tt(be), ve = re(38), ye = re(26), we = re(40), Se = re(41), _e = re(57), Ce = Tt(_e),
|
|
42274
|
+
var ne = re(29), oe = Tt(ne), de = re(37), ue = re(39), ce = re(65), he = re(66), pe = Tt(he), fe = re(67), ge = Tt(fe), be = re(68), me = Tt(be), ve = re(38), ye = re(26), we = re(40), Se = re(41), _e = re(57), Ce = Tt(_e), Ie = re(69), De = Tt(Ie), Le = re(27), ze = Tt(Le), qe = re(70), Ae = Tt(qe), Pe = re(71), Me = Tt(Pe), Be = re(72), Ve = Tt(Be), Je = re(73), Ye = Tt(Je), kt = re(74), Qe = Tt(kt), We = re(13), Fe = Tt(We), He = re(75), Ge = Tt(He), Xe = re(76), Ke = Tt(Xe), je = re(58), Ze = Tt(je), nt = re(42), ot = Tt(nt), Ct = re(28), Lt = Tt(Ct), Bt = re(60), jt = Tt(Bt), Kt = re(61), ei = Tt(Kt), mi = re(62), di = Tt(mi), xt = re(109), St = Tt(xt), qt = re(63), Pt = Tt(qt);
|
|
42281
42275
|
function Tt(Gt) {
|
|
42282
42276
|
return Gt && Gt.__esModule ? Gt : { default: Gt };
|
|
42283
42277
|
}
|
|
@@ -42494,33 +42488,33 @@ var quill = { exports: {} };
|
|
|
42494
42488
|
value: !0
|
|
42495
42489
|
}), te.default = te.ListItem = void 0;
|
|
42496
42490
|
var ne = /* @__PURE__ */ function() {
|
|
42497
|
-
function _e(Ce,
|
|
42498
|
-
for (var De = 0; De <
|
|
42499
|
-
var
|
|
42500
|
-
|
|
42491
|
+
function _e(Ce, Ie) {
|
|
42492
|
+
for (var De = 0; De < Ie.length; De++) {
|
|
42493
|
+
var Le = Ie[De];
|
|
42494
|
+
Le.enumerable = Le.enumerable || !1, Le.configurable = !0, "value" in Le && (Le.writable = !0), Object.defineProperty(Ce, Le.key, Le);
|
|
42501
42495
|
}
|
|
42502
42496
|
}
|
|
42503
|
-
return function(Ce,
|
|
42504
|
-
return
|
|
42497
|
+
return function(Ce, Ie, De) {
|
|
42498
|
+
return Ie && _e(Ce.prototype, Ie), De && _e(Ce, De), Ce;
|
|
42505
42499
|
};
|
|
42506
|
-
}(), oe = function _e(Ce,
|
|
42500
|
+
}(), oe = function _e(Ce, Ie, De) {
|
|
42507
42501
|
Ce === null && (Ce = Function.prototype);
|
|
42508
|
-
var
|
|
42509
|
-
if (
|
|
42502
|
+
var Le = Object.getOwnPropertyDescriptor(Ce, Ie);
|
|
42503
|
+
if (Le === void 0) {
|
|
42510
42504
|
var ze = Object.getPrototypeOf(Ce);
|
|
42511
|
-
return ze === null ? void 0 : _e(ze,
|
|
42505
|
+
return ze === null ? void 0 : _e(ze, Ie, De);
|
|
42512
42506
|
} else {
|
|
42513
|
-
if ("value" in
|
|
42514
|
-
return
|
|
42515
|
-
var qe =
|
|
42507
|
+
if ("value" in Le)
|
|
42508
|
+
return Le.value;
|
|
42509
|
+
var qe = Le.get;
|
|
42516
42510
|
return qe === void 0 ? void 0 : qe.call(De);
|
|
42517
42511
|
}
|
|
42518
42512
|
}, de = re(0), ue = ge(de), ce = re(4), he = ge(ce), pe = re(25), fe = ge(pe);
|
|
42519
42513
|
function ge(_e) {
|
|
42520
42514
|
return _e && _e.__esModule ? _e : { default: _e };
|
|
42521
42515
|
}
|
|
42522
|
-
function be(_e, Ce,
|
|
42523
|
-
return Ce in _e ? Object.defineProperty(_e, Ce, { value:
|
|
42516
|
+
function be(_e, Ce, Ie) {
|
|
42517
|
+
return Ce in _e ? Object.defineProperty(_e, Ce, { value: Ie, enumerable: !0, configurable: !0, writable: !0 }) : _e[Ce] = Ie, _e;
|
|
42524
42518
|
}
|
|
42525
42519
|
function me(_e, Ce) {
|
|
42526
42520
|
if (!(_e instanceof Ce))
|
|
@@ -42543,8 +42537,8 @@ var quill = { exports: {} };
|
|
|
42543
42537
|
}
|
|
42544
42538
|
return ne(Ce, [{
|
|
42545
42539
|
key: "format",
|
|
42546
|
-
value: function(De,
|
|
42547
|
-
De === Se.blotName && !
|
|
42540
|
+
value: function(De, Le) {
|
|
42541
|
+
De === Se.blotName && !Le ? this.replaceWith(ue.default.create(this.statics.scope)) : oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "format", this).call(this, De, Le);
|
|
42548
42542
|
}
|
|
42549
42543
|
}, {
|
|
42550
42544
|
key: "remove",
|
|
@@ -42553,8 +42547,8 @@ var quill = { exports: {} };
|
|
|
42553
42547
|
}
|
|
42554
42548
|
}, {
|
|
42555
42549
|
key: "replaceWith",
|
|
42556
|
-
value: function(De,
|
|
42557
|
-
return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De,
|
|
42550
|
+
value: function(De, Le) {
|
|
42551
|
+
return this.parent.isolate(this.offset(this.parent), this.length()), De === this.parent.statics.blotName ? (this.parent.replaceWith(De, Le), this) : (this.parent.unwrap(), oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replaceWith", this).call(this, De, Le));
|
|
42558
42552
|
}
|
|
42559
42553
|
}], [{
|
|
42560
42554
|
key: "formats",
|
|
@@ -42568,7 +42562,7 @@ var quill = { exports: {} };
|
|
|
42568
42562
|
ye(Ce, _e), ne(Ce, null, [{
|
|
42569
42563
|
key: "create",
|
|
42570
42564
|
value: function(De) {
|
|
42571
|
-
var
|
|
42565
|
+
var Le = De === "ordered" ? "OL" : "UL", ze = oe(Ce.__proto__ || Object.getPrototypeOf(Ce), "create", this).call(this, Le);
|
|
42572
42566
|
return (De === "checked" || De === "unchecked") && ze.setAttribute("data-checked", De === "checked"), ze;
|
|
42573
42567
|
}
|
|
42574
42568
|
}, {
|
|
@@ -42579,20 +42573,20 @@ var quill = { exports: {} };
|
|
|
42579
42573
|
return De.hasAttribute("data-checked") ? De.getAttribute("data-checked") === "true" ? "checked" : "unchecked" : "bullet";
|
|
42580
42574
|
}
|
|
42581
42575
|
}]);
|
|
42582
|
-
function Ce(
|
|
42576
|
+
function Ce(Ie) {
|
|
42583
42577
|
me(this, Ce);
|
|
42584
|
-
var De = ve(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this,
|
|
42585
|
-
if (qe.target.parentNode ===
|
|
42586
|
-
var Ae = De.statics.formats(
|
|
42578
|
+
var De = ve(this, (Ce.__proto__ || Object.getPrototypeOf(Ce)).call(this, Ie)), Le = function(qe) {
|
|
42579
|
+
if (qe.target.parentNode === Ie) {
|
|
42580
|
+
var Ae = De.statics.formats(Ie), Pe = ue.default.find(qe.target);
|
|
42587
42581
|
Ae === "checked" ? Pe.format("list", "unchecked") : Ae === "unchecked" && Pe.format("list", "checked");
|
|
42588
42582
|
}
|
|
42589
42583
|
};
|
|
42590
|
-
return
|
|
42584
|
+
return Ie.addEventListener("touchstart", Le), Ie.addEventListener("mousedown", Le), De;
|
|
42591
42585
|
}
|
|
42592
42586
|
return ne(Ce, [{
|
|
42593
42587
|
key: "format",
|
|
42594
|
-
value: function(De,
|
|
42595
|
-
this.children.length > 0 && this.children.tail.format(De,
|
|
42588
|
+
value: function(De, Le) {
|
|
42589
|
+
this.children.length > 0 && this.children.tail.format(De, Le);
|
|
42596
42590
|
}
|
|
42597
42591
|
}, {
|
|
42598
42592
|
key: "formats",
|
|
@@ -42601,11 +42595,11 @@ var quill = { exports: {} };
|
|
|
42601
42595
|
}
|
|
42602
42596
|
}, {
|
|
42603
42597
|
key: "insertBefore",
|
|
42604
|
-
value: function(De,
|
|
42598
|
+
value: function(De, Le) {
|
|
42605
42599
|
if (De instanceof we)
|
|
42606
|
-
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, De,
|
|
42600
|
+
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "insertBefore", this).call(this, De, Le);
|
|
42607
42601
|
else {
|
|
42608
|
-
var ze =
|
|
42602
|
+
var ze = Le == null ? this.length() : Le.offset(this), qe = this.split(ze);
|
|
42609
42603
|
qe.parent.insertBefore(De, qe);
|
|
42610
42604
|
}
|
|
42611
42605
|
}
|
|
@@ -42613,15 +42607,15 @@ var quill = { exports: {} };
|
|
|
42613
42607
|
key: "optimize",
|
|
42614
42608
|
value: function(De) {
|
|
42615
42609
|
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "optimize", this).call(this, De);
|
|
42616
|
-
var
|
|
42617
|
-
|
|
42610
|
+
var Le = this.next;
|
|
42611
|
+
Le != null && Le.prev === this && Le.statics.blotName === this.statics.blotName && Le.domNode.tagName === this.domNode.tagName && Le.domNode.getAttribute("data-checked") === this.domNode.getAttribute("data-checked") && (Le.moveChildren(this), Le.remove());
|
|
42618
42612
|
}
|
|
42619
42613
|
}, {
|
|
42620
42614
|
key: "replace",
|
|
42621
42615
|
value: function(De) {
|
|
42622
42616
|
if (De.statics.blotName !== this.statics.blotName) {
|
|
42623
|
-
var
|
|
42624
|
-
De.moveChildren(
|
|
42617
|
+
var Le = ue.default.create(this.statics.defaultChild);
|
|
42618
|
+
De.moveChildren(Le), this.appendChild(Le);
|
|
42625
42619
|
}
|
|
42626
42620
|
oe(Ce.prototype.__proto__ || Object.getPrototypeOf(Ce.prototype), "replace", this).call(this, De);
|
|
42627
42621
|
}
|
|
@@ -42819,8 +42813,8 @@ var quill = { exports: {} };
|
|
|
42819
42813
|
} else {
|
|
42820
42814
|
if ("value" in _e)
|
|
42821
42815
|
return _e.value;
|
|
42822
|
-
var
|
|
42823
|
-
return
|
|
42816
|
+
var Ie = _e.get;
|
|
42817
|
+
return Ie === void 0 ? void 0 : Ie.call(Se);
|
|
42824
42818
|
}
|
|
42825
42819
|
}, de = re(0), ue = he(de), ce = re(27);
|
|
42826
42820
|
function he(ve) {
|
|
@@ -42907,8 +42901,8 @@ var quill = { exports: {} };
|
|
|
42907
42901
|
} else {
|
|
42908
42902
|
if ("value" in _e)
|
|
42909
42903
|
return _e.value;
|
|
42910
|
-
var
|
|
42911
|
-
return
|
|
42904
|
+
var Ie = _e.get;
|
|
42905
|
+
return Ie === void 0 ? void 0 : Ie.call(Se);
|
|
42912
42906
|
}
|
|
42913
42907
|
}, de = re(4), ue = re(27), ce = he(ue);
|
|
42914
42908
|
function he(ve) {
|
|
@@ -42973,25 +42967,25 @@ var quill = { exports: {} };
|
|
|
42973
42967
|
}), te.default = te.FormulaBlot = void 0;
|
|
42974
42968
|
var ne = /* @__PURE__ */ function() {
|
|
42975
42969
|
function Se(_e, Ce) {
|
|
42976
|
-
for (var
|
|
42977
|
-
var De = Ce[
|
|
42970
|
+
for (var Ie = 0; Ie < Ce.length; Ie++) {
|
|
42971
|
+
var De = Ce[Ie];
|
|
42978
42972
|
De.enumerable = De.enumerable || !1, De.configurable = !0, "value" in De && (De.writable = !0), Object.defineProperty(_e, De.key, De);
|
|
42979
42973
|
}
|
|
42980
42974
|
}
|
|
42981
|
-
return function(_e, Ce,
|
|
42982
|
-
return Ce && Se(_e.prototype, Ce),
|
|
42975
|
+
return function(_e, Ce, Ie) {
|
|
42976
|
+
return Ce && Se(_e.prototype, Ce), Ie && Se(_e, Ie), _e;
|
|
42983
42977
|
};
|
|
42984
|
-
}(), oe = function Se(_e, Ce,
|
|
42978
|
+
}(), oe = function Se(_e, Ce, Ie) {
|
|
42985
42979
|
_e === null && (_e = Function.prototype);
|
|
42986
42980
|
var De = Object.getOwnPropertyDescriptor(_e, Ce);
|
|
42987
42981
|
if (De === void 0) {
|
|
42988
|
-
var
|
|
42989
|
-
return
|
|
42982
|
+
var Le = Object.getPrototypeOf(_e);
|
|
42983
|
+
return Le === null ? void 0 : Se(Le, Ce, Ie);
|
|
42990
42984
|
} else {
|
|
42991
42985
|
if ("value" in De)
|
|
42992
42986
|
return De.value;
|
|
42993
42987
|
var ze = De.get;
|
|
42994
|
-
return ze === void 0 ? void 0 : ze.call(
|
|
42988
|
+
return ze === void 0 ? void 0 : ze.call(Ie);
|
|
42995
42989
|
}
|
|
42996
42990
|
}, de = re(36), ue = ge(de), ce = re(5), he = ge(ce), pe = re(9), fe = ge(pe);
|
|
42997
42991
|
function ge(Se) {
|
|
@@ -43018,17 +43012,17 @@ var quill = { exports: {} };
|
|
|
43018
43012
|
}
|
|
43019
43013
|
return ne(_e, null, [{
|
|
43020
43014
|
key: "create",
|
|
43021
|
-
value: function(
|
|
43022
|
-
var De = oe(_e.__proto__ || Object.getPrototypeOf(_e), "create", this).call(this,
|
|
43023
|
-
return typeof
|
|
43015
|
+
value: function(Ie) {
|
|
43016
|
+
var De = oe(_e.__proto__ || Object.getPrototypeOf(_e), "create", this).call(this, Ie);
|
|
43017
|
+
return typeof Ie == "string" && (window.katex.render(Ie, De, {
|
|
43024
43018
|
throwOnError: !1,
|
|
43025
43019
|
errorColor: "#f00"
|
|
43026
|
-
}), De.setAttribute("data-value",
|
|
43020
|
+
}), De.setAttribute("data-value", Ie)), De;
|
|
43027
43021
|
}
|
|
43028
43022
|
}, {
|
|
43029
43023
|
key: "value",
|
|
43030
|
-
value: function(
|
|
43031
|
-
return
|
|
43024
|
+
value: function(Ie) {
|
|
43025
|
+
return Ie.getAttribute("data-value");
|
|
43032
43026
|
}
|
|
43033
43027
|
}]), _e;
|
|
43034
43028
|
}(ue.default);
|
|
@@ -43058,21 +43052,21 @@ var quill = { exports: {} };
|
|
|
43058
43052
|
value: !0
|
|
43059
43053
|
}), te.default = te.CodeToken = te.CodeBlock = void 0;
|
|
43060
43054
|
var ne = /* @__PURE__ */ function() {
|
|
43061
|
-
function
|
|
43062
|
-
for (var ze = 0; ze <
|
|
43063
|
-
var qe =
|
|
43055
|
+
function Ie(De, Le) {
|
|
43056
|
+
for (var ze = 0; ze < Le.length; ze++) {
|
|
43057
|
+
var qe = Le[ze];
|
|
43064
43058
|
qe.enumerable = qe.enumerable || !1, qe.configurable = !0, "value" in qe && (qe.writable = !0), Object.defineProperty(De, qe.key, qe);
|
|
43065
43059
|
}
|
|
43066
43060
|
}
|
|
43067
|
-
return function(De,
|
|
43068
|
-
return
|
|
43061
|
+
return function(De, Le, ze) {
|
|
43062
|
+
return Le && Ie(De.prototype, Le), ze && Ie(De, ze), De;
|
|
43069
43063
|
};
|
|
43070
|
-
}(), oe = function
|
|
43064
|
+
}(), oe = function Ie(De, Le, ze) {
|
|
43071
43065
|
De === null && (De = Function.prototype);
|
|
43072
|
-
var qe = Object.getOwnPropertyDescriptor(De,
|
|
43066
|
+
var qe = Object.getOwnPropertyDescriptor(De, Le);
|
|
43073
43067
|
if (qe === void 0) {
|
|
43074
43068
|
var Ae = Object.getPrototypeOf(De);
|
|
43075
|
-
return Ae === null ? void 0 :
|
|
43069
|
+
return Ae === null ? void 0 : Ie(Ae, Le, ze);
|
|
43076
43070
|
} else {
|
|
43077
43071
|
if ("value" in qe)
|
|
43078
43072
|
return qe.value;
|
|
@@ -43080,25 +43074,25 @@ var quill = { exports: {} };
|
|
|
43080
43074
|
return Pe === void 0 ? void 0 : Pe.call(ze);
|
|
43081
43075
|
}
|
|
43082
43076
|
}, de = re(0), ue = me(de), ce = re(5), he = me(ce), pe = re(9), fe = me(pe), ge = re(13), be = me(ge);
|
|
43083
|
-
function me(
|
|
43084
|
-
return
|
|
43077
|
+
function me(Ie) {
|
|
43078
|
+
return Ie && Ie.__esModule ? Ie : { default: Ie };
|
|
43085
43079
|
}
|
|
43086
|
-
function ve(
|
|
43087
|
-
if (!(
|
|
43080
|
+
function ve(Ie, De) {
|
|
43081
|
+
if (!(Ie instanceof De))
|
|
43088
43082
|
throw new TypeError("Cannot call a class as a function");
|
|
43089
43083
|
}
|
|
43090
|
-
function ye(
|
|
43091
|
-
if (!
|
|
43084
|
+
function ye(Ie, De) {
|
|
43085
|
+
if (!Ie)
|
|
43092
43086
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
43093
|
-
return De && (typeof De == "object" || typeof De == "function") ? De :
|
|
43087
|
+
return De && (typeof De == "object" || typeof De == "function") ? De : Ie;
|
|
43094
43088
|
}
|
|
43095
|
-
function we(
|
|
43089
|
+
function we(Ie, De) {
|
|
43096
43090
|
if (typeof De != "function" && De !== null)
|
|
43097
43091
|
throw new TypeError("Super expression must either be null or a function, not " + typeof De);
|
|
43098
|
-
|
|
43092
|
+
Ie.prototype = Object.create(De && De.prototype, { constructor: { value: Ie, enumerable: !1, writable: !0, configurable: !0 } }), De && (Object.setPrototypeOf ? Object.setPrototypeOf(Ie, De) : Ie.__proto__ = De);
|
|
43099
43093
|
}
|
|
43100
|
-
var Se = function(
|
|
43101
|
-
we(De,
|
|
43094
|
+
var Se = function(Ie) {
|
|
43095
|
+
we(De, Ie);
|
|
43102
43096
|
function De() {
|
|
43103
43097
|
return ve(this, De), ye(this, (De.__proto__ || Object.getPrototypeOf(De)).apply(this, arguments));
|
|
43104
43098
|
}
|
|
@@ -43118,16 +43112,16 @@ var quill = { exports: {} };
|
|
|
43118
43112
|
Se.className = "ql-syntax";
|
|
43119
43113
|
var _e = new ue.default.Attributor.Class("token", "hljs", {
|
|
43120
43114
|
scope: ue.default.Scope.INLINE
|
|
43121
|
-
}), Ce = function(
|
|
43122
|
-
we(De,
|
|
43115
|
+
}), Ce = function(Ie) {
|
|
43116
|
+
we(De, Ie), ne(De, null, [{
|
|
43123
43117
|
key: "register",
|
|
43124
43118
|
value: function() {
|
|
43125
43119
|
he.default.register(_e, !0), he.default.register(Se, !0);
|
|
43126
43120
|
}
|
|
43127
43121
|
}]);
|
|
43128
|
-
function De(
|
|
43122
|
+
function De(Le, ze) {
|
|
43129
43123
|
ve(this, De);
|
|
43130
|
-
var qe = ye(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this,
|
|
43124
|
+
var qe = ye(this, (De.__proto__ || Object.getPrototypeOf(De)).call(this, Le, ze));
|
|
43131
43125
|
if (typeof qe.options.highlight != "function")
|
|
43132
43126
|
throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");
|
|
43133
43127
|
var Ae = null;
|
|
@@ -43153,8 +43147,8 @@ var quill = { exports: {} };
|
|
|
43153
43147
|
}(fe.default);
|
|
43154
43148
|
Ce.DEFAULTS = {
|
|
43155
43149
|
highlight: function() {
|
|
43156
|
-
return window.hljs == null ? null : function(
|
|
43157
|
-
var De = window.hljs.highlightAuto(
|
|
43150
|
+
return window.hljs == null ? null : function(Ie) {
|
|
43151
|
+
var De = window.hljs.highlightAuto(Ie);
|
|
43158
43152
|
return De.value;
|
|
43159
43153
|
};
|
|
43160
43154
|
}(),
|
|
@@ -43327,11 +43321,11 @@ var quill = { exports: {} };
|
|
|
43327
43321
|
Object.defineProperty(te, "__esModule", {
|
|
43328
43322
|
value: !0
|
|
43329
43323
|
}), te.default = te.BubbleTooltip = void 0;
|
|
43330
|
-
var ne = function De(
|
|
43331
|
-
|
|
43332
|
-
var Ae = Object.getOwnPropertyDescriptor(
|
|
43324
|
+
var ne = function De(Le, ze, qe) {
|
|
43325
|
+
Le === null && (Le = Function.prototype);
|
|
43326
|
+
var Ae = Object.getOwnPropertyDescriptor(Le, ze);
|
|
43333
43327
|
if (Ae === void 0) {
|
|
43334
|
-
var Pe = Object.getPrototypeOf(
|
|
43328
|
+
var Pe = Object.getPrototypeOf(Le);
|
|
43335
43329
|
return Pe === null ? void 0 : De(Pe, ze, qe);
|
|
43336
43330
|
} else {
|
|
43337
43331
|
if ("value" in Ae)
|
|
@@ -43340,63 +43334,63 @@ var quill = { exports: {} };
|
|
|
43340
43334
|
return Me === void 0 ? void 0 : Me.call(qe);
|
|
43341
43335
|
}
|
|
43342
43336
|
}, oe = /* @__PURE__ */ function() {
|
|
43343
|
-
function De(
|
|
43337
|
+
function De(Le, ze) {
|
|
43344
43338
|
for (var qe = 0; qe < ze.length; qe++) {
|
|
43345
43339
|
var Ae = ze[qe];
|
|
43346
|
-
Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(
|
|
43340
|
+
Ae.enumerable = Ae.enumerable || !1, Ae.configurable = !0, "value" in Ae && (Ae.writable = !0), Object.defineProperty(Le, Ae.key, Ae);
|
|
43347
43341
|
}
|
|
43348
43342
|
}
|
|
43349
|
-
return function(
|
|
43350
|
-
return ze && De(
|
|
43343
|
+
return function(Le, ze, qe) {
|
|
43344
|
+
return ze && De(Le.prototype, ze), qe && De(Le, qe), Le;
|
|
43351
43345
|
};
|
|
43352
43346
|
}(), de = re(3), ue = ve(de), ce = re(8), he = ve(ce), pe = re(44), fe = ve(pe), ge = re(15), be = re(42), me = ve(be);
|
|
43353
43347
|
function ve(De) {
|
|
43354
43348
|
return De && De.__esModule ? De : { default: De };
|
|
43355
43349
|
}
|
|
43356
|
-
function ye(De,
|
|
43357
|
-
if (!(De instanceof
|
|
43350
|
+
function ye(De, Le) {
|
|
43351
|
+
if (!(De instanceof Le))
|
|
43358
43352
|
throw new TypeError("Cannot call a class as a function");
|
|
43359
43353
|
}
|
|
43360
|
-
function we(De,
|
|
43354
|
+
function we(De, Le) {
|
|
43361
43355
|
if (!De)
|
|
43362
43356
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
43363
|
-
return
|
|
43357
|
+
return Le && (typeof Le == "object" || typeof Le == "function") ? Le : De;
|
|
43364
43358
|
}
|
|
43365
|
-
function Se(De,
|
|
43366
|
-
if (typeof
|
|
43367
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
43368
|
-
De.prototype = Object.create(
|
|
43359
|
+
function Se(De, Le) {
|
|
43360
|
+
if (typeof Le != "function" && Le !== null)
|
|
43361
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof Le);
|
|
43362
|
+
De.prototype = Object.create(Le && Le.prototype, { constructor: { value: De, enumerable: !1, writable: !0, configurable: !0 } }), Le && (Object.setPrototypeOf ? Object.setPrototypeOf(De, Le) : De.__proto__ = Le);
|
|
43369
43363
|
}
|
|
43370
43364
|
var _e = [["bold", "italic", "link"], [{ header: 1 }, { header: 2 }, "blockquote"]], Ce = function(De) {
|
|
43371
|
-
Se(
|
|
43372
|
-
function
|
|
43373
|
-
ye(this,
|
|
43374
|
-
var Ae = we(this, (
|
|
43365
|
+
Se(Le, De);
|
|
43366
|
+
function Le(ze, qe) {
|
|
43367
|
+
ye(this, Le), qe.modules.toolbar != null && qe.modules.toolbar.container == null && (qe.modules.toolbar.container = _e);
|
|
43368
|
+
var Ae = we(this, (Le.__proto__ || Object.getPrototypeOf(Le)).call(this, ze, qe));
|
|
43375
43369
|
return Ae.quill.container.classList.add("ql-bubble"), Ae;
|
|
43376
43370
|
}
|
|
43377
|
-
return oe(
|
|
43371
|
+
return oe(Le, [{
|
|
43378
43372
|
key: "extendToolbar",
|
|
43379
43373
|
value: function(qe) {
|
|
43380
|
-
this.tooltip = new
|
|
43374
|
+
this.tooltip = new Ie(this.quill, this.options.bounds), this.tooltip.root.appendChild(qe.container), this.buildButtons([].slice.call(qe.container.querySelectorAll("button")), me.default), this.buildPickers([].slice.call(qe.container.querySelectorAll("select")), me.default);
|
|
43381
43375
|
}
|
|
43382
|
-
}]),
|
|
43376
|
+
}]), Le;
|
|
43383
43377
|
}(fe.default);
|
|
43384
43378
|
Ce.DEFAULTS = (0, ue.default)(!0, {}, fe.default.DEFAULTS, {
|
|
43385
43379
|
modules: {
|
|
43386
43380
|
toolbar: {
|
|
43387
43381
|
handlers: {
|
|
43388
|
-
link: function(
|
|
43389
|
-
|
|
43382
|
+
link: function(Le) {
|
|
43383
|
+
Le ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1);
|
|
43390
43384
|
}
|
|
43391
43385
|
}
|
|
43392
43386
|
}
|
|
43393
43387
|
}
|
|
43394
43388
|
});
|
|
43395
|
-
var
|
|
43396
|
-
Se(
|
|
43397
|
-
function
|
|
43398
|
-
ye(this,
|
|
43399
|
-
var Ae = we(this, (
|
|
43389
|
+
var Ie = function(De) {
|
|
43390
|
+
Se(Le, De);
|
|
43391
|
+
function Le(ze, qe) {
|
|
43392
|
+
ye(this, Le);
|
|
43393
|
+
var Ae = we(this, (Le.__proto__ || Object.getPrototypeOf(Le)).call(this, ze, qe));
|
|
43400
43394
|
return Ae.quill.on(he.default.events.EDITOR_CHANGE, function(Pe, Me, Be, Ve) {
|
|
43401
43395
|
if (Pe === he.default.events.SELECTION_CHANGE)
|
|
43402
43396
|
if (Me != null && Me.length > 0 && Ve === he.default.sources.USER) {
|
|
@@ -43411,11 +43405,11 @@ var quill = { exports: {} };
|
|
|
43411
43405
|
} else document.activeElement !== Ae.textbox && Ae.quill.hasFocus() && Ae.hide();
|
|
43412
43406
|
}), Ae;
|
|
43413
43407
|
}
|
|
43414
|
-
return oe(
|
|
43408
|
+
return oe(Le, [{
|
|
43415
43409
|
key: "listen",
|
|
43416
43410
|
value: function() {
|
|
43417
43411
|
var qe = this;
|
|
43418
|
-
ne(
|
|
43412
|
+
ne(Le.prototype.__proto__ || Object.getPrototypeOf(Le.prototype), "listen", this).call(this), this.root.querySelector(".ql-close").addEventListener("click", function() {
|
|
43419
43413
|
qe.root.classList.remove("ql-editing");
|
|
43420
43414
|
}), this.quill.on(he.default.events.SCROLL_OPTIMIZE, function() {
|
|
43421
43415
|
setTimeout(function() {
|
|
@@ -43434,13 +43428,13 @@ var quill = { exports: {} };
|
|
|
43434
43428
|
}, {
|
|
43435
43429
|
key: "position",
|
|
43436
43430
|
value: function(qe) {
|
|
43437
|
-
var Ae = ne(
|
|
43431
|
+
var Ae = ne(Le.prototype.__proto__ || Object.getPrototypeOf(Le.prototype), "position", this).call(this, qe), Pe = this.root.querySelector(".ql-tooltip-arrow");
|
|
43438
43432
|
if (Pe.style.marginLeft = "", Ae === 0) return Ae;
|
|
43439
43433
|
Pe.style.marginLeft = -1 * Ae - Pe.offsetWidth / 2 + "px";
|
|
43440
43434
|
}
|
|
43441
|
-
}]),
|
|
43435
|
+
}]), Le;
|
|
43442
43436
|
}(pe.BaseTooltip);
|
|
43443
|
-
|
|
43437
|
+
Ie.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""), te.BubbleTooltip = Ie, te.default = Ce;
|
|
43444
43438
|
},
|
|
43445
43439
|
/* 110 */
|
|
43446
43440
|
/***/
|