sprintify-ui 0.8.24 → 0.8.25
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/sprintify-ui.es.js +435 -426
- package/package.json +1 -1
- package/src/components/BaseTable.vue +8 -1
- package/src/components/BaseTableCell.vue +16 -10
- package/src/components/BaseTableHead.vue +4 -0
- package/src/components/BaseTableHeader.vue +14 -8
- package/src/components/BaseTableRow.vue +4 -0
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -323,7 +323,7 @@ function q0(n) {
|
|
|
323
323
|
return I0.test(n);
|
|
324
324
|
}
|
|
325
325
|
function V0() {
|
|
326
|
-
const n = Ht("colors"), t = Ht("spacing"), e = Ht("blur"), r = Ht("brightness"), i = Ht("borderColor"), o = Ht("borderRadius"), l = Ht("borderSpacing"), a = Ht("borderWidth"), s = Ht("contrast"), c = Ht("grayscale"), d = Ht("hueRotate"), f = Ht("invert"), h = Ht("gap"), p = Ht("gradientColorStops"), g = Ht("gradientColorStopPositions"), m = Ht("inset"), v = Ht("margin"), y = Ht("opacity"), b = Ht("padding"), u = Ht("saturate"), w = Ht("scale"), E = Ht("sepia"), k = Ht("skew"), _ = Ht("space"), x = Ht("translate"), T = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", Et, t], D = () => [Et, t], M = () => ["", Nr, Jr], B = () => ["auto", Pi, Et], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"],
|
|
326
|
+
const n = Ht("colors"), t = Ht("spacing"), e = Ht("blur"), r = Ht("brightness"), i = Ht("borderColor"), o = Ht("borderRadius"), l = Ht("borderSpacing"), a = Ht("borderWidth"), s = Ht("contrast"), c = Ht("grayscale"), d = Ht("hueRotate"), f = Ht("invert"), h = Ht("gap"), p = Ht("gradientColorStops"), g = Ht("gradientColorStopPositions"), m = Ht("inset"), v = Ht("margin"), y = Ht("opacity"), b = Ht("padding"), u = Ht("saturate"), w = Ht("scale"), E = Ht("sepia"), k = Ht("skew"), _ = Ht("space"), x = Ht("translate"), T = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", Et, t], D = () => [Et, t], M = () => ["", Nr, Jr], B = () => ["auto", Pi, Et], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], le = () => ["", "0", Et], F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], P = () => [Pi, da], $ = () => [Pi, Et];
|
|
327
327
|
return {
|
|
328
328
|
cacheSize: 500,
|
|
329
329
|
separator: ":",
|
|
@@ -1703,14 +1703,14 @@ function V0() {
|
|
|
1703
1703
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1704
1704
|
*/
|
|
1705
1705
|
"mix-blend": [{
|
|
1706
|
-
"mix-blend": [...
|
|
1706
|
+
"mix-blend": [...te(), "plus-lighter", "plus-darker"]
|
|
1707
1707
|
}],
|
|
1708
1708
|
/**
|
|
1709
1709
|
* Background Blend Mode
|
|
1710
1710
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1711
1711
|
*/
|
|
1712
1712
|
"bg-blend": [{
|
|
1713
|
-
"bg-blend":
|
|
1713
|
+
"bg-blend": te()
|
|
1714
1714
|
}],
|
|
1715
1715
|
// Filters
|
|
1716
1716
|
/**
|
|
@@ -4823,7 +4823,7 @@ const Mw = function(n) {
|
|
|
4823
4823
|
switch (p) {
|
|
4824
4824
|
case "bestFit": {
|
|
4825
4825
|
var S;
|
|
4826
|
-
const H = (S = x.map((V) => [V.placement, V.overflows.filter((
|
|
4826
|
+
const H = (S = x.map((V) => [V.placement, V.overflows.filter((te) => te > 0).reduce((te, pe) => te + pe, 0)]).sort((V, te) => V[1] - te[1])[0]) == null ? void 0 : S[0];
|
|
4827
4827
|
H && (B = H);
|
|
4828
4828
|
break;
|
|
4829
4829
|
}
|
|
@@ -6069,11 +6069,11 @@ const Ac = /* @__PURE__ */ new WeakMap(), cx = (n) => {
|
|
|
6069
6069
|
p("keydown", V);
|
|
6070
6070
|
}
|
|
6071
6071
|
const k = N(() => {
|
|
6072
|
-
const V = "inline-flex bg-white input-rounded border transition-colors duration-200",
|
|
6072
|
+
const V = "inline-flex bg-white input-rounded border transition-colors duration-200", te = v.value ? "border-red-500" : "border-slate-300", pe = r.disabled ? "cursor-not-allowed text-slate-300" : "", le = sn[b.value];
|
|
6073
6073
|
let F = "";
|
|
6074
6074
|
return r.visibleFocus && (v.value ? F = "focus-within:input-focus-error" : F = "focus-within:input-focus"), gt([
|
|
6075
6075
|
V,
|
|
6076
|
-
|
|
6076
|
+
te,
|
|
6077
6077
|
pe,
|
|
6078
6078
|
le.height,
|
|
6079
6079
|
le.fontSize,
|
|
@@ -6081,7 +6081,7 @@ const Ac = /* @__PURE__ */ new WeakMap(), cx = (n) => {
|
|
|
6081
6081
|
r.class
|
|
6082
6082
|
]);
|
|
6083
6083
|
}), _ = N(() => {
|
|
6084
|
-
const V = "border-none outline-none bg-transparent grow min-w-0 focus:border-none focus:outline-none focus:ring-0",
|
|
6084
|
+
const V = "border-none outline-none bg-transparent grow min-w-0 focus:border-none focus:outline-none focus:ring-0", te = sn[b.value], pe = r.disabled ? "cursor-not-allowed text-slate-300" : "", le = {
|
|
6085
6085
|
xs: [l.value ? "pl-0" : "pl-2", a.value ? "pr-0" : "pr-2"],
|
|
6086
6086
|
sm: [l.value ? "pl-0" : "pl-2.5", a.value ? "pr-0" : "pr-2.5"],
|
|
6087
6087
|
md: [l.value ? "pl-0" : "pl-3", a.value ? "pr-1" : "pr-3"],
|
|
@@ -6092,10 +6092,10 @@ const Ac = /* @__PURE__ */ new WeakMap(), cx = (n) => {
|
|
|
6092
6092
|
V,
|
|
6093
6093
|
pe,
|
|
6094
6094
|
le,
|
|
6095
|
-
|
|
6095
|
+
te.fontSize
|
|
6096
6096
|
];
|
|
6097
6097
|
}), x = N(() => {
|
|
6098
|
-
const V = "flex justify-center empty:hidden",
|
|
6098
|
+
const V = "flex justify-center empty:hidden", te = {
|
|
6099
6099
|
xs: "first:pl-0.5 last:pr-0.5 py-0.5",
|
|
6100
6100
|
sm: "first:pl-1 last:pr-1 py-1",
|
|
6101
6101
|
md: "first:pl-1 last:pr-1 py-1",
|
|
@@ -6104,17 +6104,17 @@ const Ac = /* @__PURE__ */ new WeakMap(), cx = (n) => {
|
|
|
6104
6104
|
}[b.value];
|
|
6105
6105
|
return [
|
|
6106
6106
|
V,
|
|
6107
|
-
|
|
6107
|
+
te
|
|
6108
6108
|
];
|
|
6109
6109
|
}), T = N(() => {
|
|
6110
|
-
const V = "flex items-center justify-center rounded-md",
|
|
6110
|
+
const V = "flex items-center justify-center rounded-md", te = v.value ? "text-red-800" : "text-slate-500", pe = {
|
|
6111
6111
|
xs: "p-1",
|
|
6112
6112
|
sm: "p-1.5",
|
|
6113
6113
|
md: "p-2",
|
|
6114
6114
|
lg: "p-1.5",
|
|
6115
6115
|
xl: "p-1.5"
|
|
6116
6116
|
}[b.value];
|
|
6117
|
-
return `${V} ${
|
|
6117
|
+
return `${V} ${te} ${pe}`;
|
|
6118
6118
|
}), A = N(() => [
|
|
6119
6119
|
sn[b.value].iconSize
|
|
6120
6120
|
]);
|
|
@@ -6140,7 +6140,7 @@ const Ac = /* @__PURE__ */ new WeakMap(), cx = (n) => {
|
|
|
6140
6140
|
focus: S,
|
|
6141
6141
|
blur: D,
|
|
6142
6142
|
select: M
|
|
6143
|
-
}), (V,
|
|
6143
|
+
}), (V, te) => (I(), K("div", {
|
|
6144
6144
|
class: ce(C(k))
|
|
6145
6145
|
}, [
|
|
6146
6146
|
j("div", {
|
|
@@ -7502,7 +7502,7 @@ var ug = { exports: {} };
|
|
|
7502
7502
|
}), i.d(r, "getPageScrollBarWidth", function() {
|
|
7503
7503
|
return V;
|
|
7504
7504
|
}), i.d(r, "getCurrentPageScrollBarWidth", function() {
|
|
7505
|
-
return
|
|
7505
|
+
return te;
|
|
7506
7506
|
}), i.d(r, "addScrollableTarget", function() {
|
|
7507
7507
|
return pe;
|
|
7508
7508
|
}), i.d(r, "removeScrollableTarget", function() {
|
|
@@ -7522,7 +7522,7 @@ var ug = { exports: {} };
|
|
|
7522
7522
|
}), i.d(r, "removeFillGapTarget", function() {
|
|
7523
7523
|
return z;
|
|
7524
7524
|
}), i.d(r, "addFillGapSelector", function() {
|
|
7525
|
-
return
|
|
7525
|
+
return ne;
|
|
7526
7526
|
}), i.d(r, "removeFillGapSelector", function() {
|
|
7527
7527
|
return X;
|
|
7528
7528
|
}), i.d(r, "refillGaps", function() {
|
|
@@ -7585,7 +7585,7 @@ var ug = { exports: {} };
|
|
|
7585
7585
|
}, V = function() {
|
|
7586
7586
|
var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
7587
7587
|
return B(document.body, U);
|
|
7588
|
-
},
|
|
7588
|
+
}, te = function() {
|
|
7589
7589
|
return H(document.body);
|
|
7590
7590
|
}, pe = function(U) {
|
|
7591
7591
|
if (U) {
|
|
@@ -7635,7 +7635,7 @@ var ug = { exports: {} };
|
|
|
7635
7635
|
var ae = o(U);
|
|
7636
7636
|
ae.map(function(be) {
|
|
7637
7637
|
T.lockableSelectors.push(be);
|
|
7638
|
-
}), D() || q(),
|
|
7638
|
+
}), D() || q(), ne(U);
|
|
7639
7639
|
}
|
|
7640
7640
|
}, Q = function(U) {
|
|
7641
7641
|
if (U)
|
|
@@ -7664,7 +7664,7 @@ Available fill gap methods: `).concat(ae, "."));
|
|
|
7664
7664
|
});
|
|
7665
7665
|
});
|
|
7666
7666
|
}
|
|
7667
|
-
},
|
|
7667
|
+
}, ne = function(U) {
|
|
7668
7668
|
if (U) {
|
|
7669
7669
|
var ae = o(U);
|
|
7670
7670
|
ae.map(function(be) {
|
|
@@ -7815,7 +7815,7 @@ Available fill gap methods: `).concat(ae, "."));
|
|
|
7815
7815
|
},
|
|
7816
7816
|
getCurrentWidth: function() {
|
|
7817
7817
|
return c(`"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead.
|
|
7818
|
-
https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`),
|
|
7818
|
+
https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`), te();
|
|
7819
7819
|
},
|
|
7820
7820
|
setScrollableTargets: function(U) {
|
|
7821
7821
|
c(`"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead.
|
|
@@ -7823,7 +7823,7 @@ Available fill gap methods: `).concat(ae, "."));
|
|
|
7823
7823
|
},
|
|
7824
7824
|
setFillGapSelectors: function(U) {
|
|
7825
7825
|
c(`"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead.
|
|
7826
|
-
https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`),
|
|
7826
|
+
https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`), ne(U);
|
|
7827
7827
|
},
|
|
7828
7828
|
setFillGapTargets: function(U) {
|
|
7829
7829
|
c(`"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead.
|
|
@@ -7841,14 +7841,14 @@ Available fill gap methods: `).concat(ae, "."));
|
|
|
7841
7841
|
getTargetScrollBarWidth: B,
|
|
7842
7842
|
getCurrentTargetScrollBarWidth: H,
|
|
7843
7843
|
getPageScrollBarWidth: V,
|
|
7844
|
-
getCurrentPageScrollBarWidth:
|
|
7844
|
+
getCurrentPageScrollBarWidth: te,
|
|
7845
7845
|
addScrollableSelector: F,
|
|
7846
7846
|
removeScrollableSelector: P,
|
|
7847
7847
|
addScrollableTarget: pe,
|
|
7848
7848
|
removeScrollableTarget: le,
|
|
7849
7849
|
addLockableSelector: Y,
|
|
7850
7850
|
addLockableTarget: $,
|
|
7851
|
-
addFillGapSelector:
|
|
7851
|
+
addFillGapSelector: ne,
|
|
7852
7852
|
removeFillGapSelector: X,
|
|
7853
7853
|
addFillGapTarget: re,
|
|
7854
7854
|
removeFillGapTarget: z,
|
|
@@ -8560,7 +8560,7 @@ const pg = /* @__PURE__ */ Ro(gE, [["render", wE]]), xE = { class: "relative w-f
|
|
|
8560
8560
|
},
|
|
8561
8561
|
{ immediate: !0 }
|
|
8562
8562
|
);
|
|
8563
|
-
function
|
|
8563
|
+
function te($) {
|
|
8564
8564
|
var Q;
|
|
8565
8565
|
const Y = (Q = r.select) == null ? void 0 : Q.options.find((re) => re.value == $);
|
|
8566
8566
|
r.select && r.select.onChange && r.select.onChange(Y ?? null), i("select", $), Vt(() => {
|
|
@@ -8607,7 +8607,7 @@ const pg = /* @__PURE__ */ Ro(gE, [["render", wE]]), xE = { class: "relative w-f
|
|
|
8607
8607
|
modelValue: C(V),
|
|
8608
8608
|
"onUpdate:modelValue": [
|
|
8609
8609
|
Y[0] || (Y[0] = (Q) => mr(V) ? V.value = Q : null),
|
|
8610
|
-
|
|
8610
|
+
te
|
|
8611
8611
|
],
|
|
8612
8612
|
disabled: n.disabled,
|
|
8613
8613
|
class: "rounded-r-none border-r-transparent min-w-0",
|
|
@@ -20272,12 +20272,12 @@ var Gc = { exports: {} };
|
|
|
20272
20272
|
$e[a] = oe.toString(), $e[l] = U.toString(), m(se.elements.preview, $e);
|
|
20273
20273
|
}
|
|
20274
20274
|
if (se._currentZoom = L ? L.value : se._currentZoom, oe.scale = se._currentZoom, se.elements.zoomer.setAttribute("aria-valuenow", se._currentZoom), ae(), se.options.enforceBoundary) {
|
|
20275
|
-
var be =
|
|
20275
|
+
var be = te.call(se, ue), Ie = be.translate, De = be.origin;
|
|
20276
20276
|
oe.x >= Ie.maxX && (U.x = De.minX, oe.x = Ie.maxX), oe.x <= Ie.minX && (U.x = De.maxX, oe.x = Ie.minX), oe.y >= Ie.maxY && (U.y = De.minY, oe.y = Ie.maxY), oe.y <= Ie.minY && (U.y = De.maxY, oe.y = Ie.minY);
|
|
20277
20277
|
}
|
|
20278
20278
|
ae(), P.call(se), $.call(se);
|
|
20279
20279
|
}
|
|
20280
|
-
function
|
|
20280
|
+
function te(L) {
|
|
20281
20281
|
var se = this, oe = se._currentZoom, ue = L.width, U = L.height, ae = se.elements.boundary.clientWidth / 2, be = se.elements.boundary.clientHeight / 2, Ie = se.elements.preview.getBoundingClientRect(), De = Ie.width, $e = Ie.height, Oe = ue / 2, Ze = U / 2, Be = (Oe / oe - ae) * -1, Ue = Be - (De * (1 / oe) - ue * (1 / oe)), Ne = (Ze / oe - be) * -1, We = Ne - ($e * (1 / oe) - U * (1 / oe)), Ke = 1 / oe * Oe, yt = De * (1 / oe) - Ke, Mt = 1 / oe * Ze, W = $e * (1 / oe) - Mt;
|
|
20282
20282
|
return {
|
|
20283
20283
|
translate: {
|
|
@@ -20398,7 +20398,7 @@ var Gc = { exports: {} };
|
|
|
20398
20398
|
}
|
|
20399
20399
|
function Q() {
|
|
20400
20400
|
var L = this, se = 1, oe = {}, ue = L.elements.preview, U, ae = new _(0, 0, se), be = new x(), Ie = Y.call(L);
|
|
20401
|
-
!Ie || L.data.bound || (L.data.bound = !0, oe[a] = ae.toString(), oe[l] = be.toString(), oe.opacity = 1, m(ue, oe), U = L.elements.preview.getBoundingClientRect(), L._originalImageWidth = U.width, L._originalImageHeight = U.height, L.data.orientation = D.call(L) ? T(L.elements.img) : L.data.orientation, L.options.enableZoom ? re.call(L, !0) : L._currentZoom = se, ae.scale = L._currentZoom, oe[a] = ae.toString(), m(ue, oe), L.data.points.length ? z.call(L, L.data.points) :
|
|
20401
|
+
!Ie || L.data.bound || (L.data.bound = !0, oe[a] = ae.toString(), oe[l] = be.toString(), oe.opacity = 1, m(ue, oe), U = L.elements.preview.getBoundingClientRect(), L._originalImageWidth = U.width, L._originalImageHeight = U.height, L.data.orientation = D.call(L) ? T(L.elements.img) : L.data.orientation, L.options.enableZoom ? re.call(L, !0) : L._currentZoom = se, ae.scale = L._currentZoom, oe[a] = ae.toString(), m(ue, oe), L.data.points.length ? z.call(L, L.data.points) : ne.call(L), pe.call(L), F.call(L));
|
|
20402
20402
|
}
|
|
20403
20403
|
function re(L) {
|
|
20404
20404
|
var se = this, oe = Math.max(se.options.minZoom, 0) || 0, ue = se.options.maxZoom || 1.5, U, ae, be = se.elements.zoomer, Ie = parseFloat(be.value), De = se.elements.boundary.getBoundingClientRect(), $e = E(se.elements.img, se.data.orientation), Oe = se.elements.viewport.getBoundingClientRect(), Ze, Be;
|
|
@@ -20413,7 +20413,7 @@ var Gc = { exports: {} };
|
|
|
20413
20413
|
}, be = ue.width / oe, Ie = L[1], De = L[0], $e = -1 * L[1] + ae.top, Oe = -1 * L[0] + ae.left, Ze = {};
|
|
20414
20414
|
Ze[l] = De + "px " + Ie + "px", Ze[a] = new _(Oe, $e, be).toString(), m(se.elements.preview, Ze), B.call(se, be), se._currentZoom = be;
|
|
20415
20415
|
}
|
|
20416
|
-
function
|
|
20416
|
+
function ne() {
|
|
20417
20417
|
var L = this, se = L.elements.preview.getBoundingClientRect(), oe = L.elements.viewport.getBoundingClientRect(), ue = L.elements.boundary.getBoundingClientRect(), U = oe.left - ue.left, ae = oe.top - ue.top, be = U - (se.width - oe.width) / 2, Ie = ae - (se.height - oe.height) / 2, De = new _(be, Ie, L._currentZoom);
|
|
20418
20418
|
m(L.elements.preview, a, De.toString());
|
|
20419
20419
|
}
|
|
@@ -20925,8 +20925,8 @@ const OD = {
|
|
|
20925
20925
|
});
|
|
20926
20926
|
}
|
|
20927
20927
|
function T() {
|
|
20928
|
-
var
|
|
20929
|
-
const S = ((
|
|
20928
|
+
var te;
|
|
20929
|
+
const S = ((te = e.config) == null ? void 0 : te.initialResize) ?? PD, D = h.value > S ? S : h.value, M = p.value > S ? S : p.value, B = D / h.value, H = M / p.value, V = B > H ? B : H;
|
|
20930
20930
|
return {
|
|
20931
20931
|
width: h.value * V,
|
|
20932
20932
|
height: p.value * V
|
|
@@ -20939,7 +20939,7 @@ const OD = {
|
|
|
20939
20939
|
rotateRight: k
|
|
20940
20940
|
};
|
|
20941
20941
|
return t(A), (S, D) => {
|
|
20942
|
-
var M, B, H, V,
|
|
20942
|
+
var M, B, H, V, te, pe, le, F, P, $;
|
|
20943
20943
|
return I(), K("div", {
|
|
20944
20944
|
class: "relative",
|
|
20945
20945
|
style: rt({
|
|
@@ -20958,7 +20958,7 @@ const OD = {
|
|
|
20958
20958
|
j("div", {
|
|
20959
20959
|
style: rt({
|
|
20960
20960
|
width: ((V = (H = C(m)) == null ? void 0 : H.boundary) == null ? void 0 : V.width) + "px",
|
|
20961
|
-
height: (
|
|
20961
|
+
height: (te = C(m)) != null && te.showZoomer ? (((le = (pe = C(m)) == null ? void 0 : pe.boundary) == null ? void 0 : le.height) ?? 0) + Tp + "px" : ((P = (F = C(m)) == null ? void 0 : F.boundary) == null ? void 0 : P.height) + "px"
|
|
20962
20962
|
})
|
|
20963
20963
|
}, [
|
|
20964
20964
|
j("div", {
|
|
@@ -21391,8 +21391,8 @@ var by = { exports: {} };
|
|
|
21391
21391
|
return D.dispatch(H);
|
|
21392
21392
|
});
|
|
21393
21393
|
var M = [], B = A.map(function(H) {
|
|
21394
|
-
var V = new E(),
|
|
21395
|
-
return w(k, V,
|
|
21394
|
+
var V = new E(), te = x.slice();
|
|
21395
|
+
return w(k, V, te).dispatch(H), M = M.concat(te.slice(x.length)), V.read().toString();
|
|
21396
21396
|
});
|
|
21397
21397
|
return x = x.concat(M), B.sort(), this._array(B, !1);
|
|
21398
21398
|
}, _date: function(A) {
|
|
@@ -21636,10 +21636,10 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
21636
21636
|
we || (X(q != null, "missing value"), X(typeof me == "boolean", "missing or invalid endian"), X(J != null, "missing offset"), X(J + 3 < R.length, "Trying to write beyond buffer length"), z(q, 2147483647, -2147483648)), R.length <= J || S(R, 0 <= q ? q : 4294967295 + q + 1, J, me, we);
|
|
21637
21637
|
}
|
|
21638
21638
|
function B(R, q, J, me, we) {
|
|
21639
|
-
we || (X(q != null, "missing value"), X(typeof me == "boolean", "missing or invalid endian"), X(J != null, "missing offset"), X(J + 3 < R.length, "Trying to write beyond buffer length"),
|
|
21639
|
+
we || (X(q != null, "missing value"), X(typeof me == "boolean", "missing or invalid endian"), X(J != null, "missing offset"), X(J + 3 < R.length, "Trying to write beyond buffer length"), ne(q, 34028234663852886e22, -34028234663852886e22)), R.length <= J || m.write(R, q, J, me, 23, 4);
|
|
21640
21640
|
}
|
|
21641
21641
|
function H(R, q, J, me, we) {
|
|
21642
|
-
we || (X(q != null, "missing value"), X(typeof me == "boolean", "missing or invalid endian"), X(J != null, "missing offset"), X(J + 7 < R.length, "Trying to write beyond buffer length"),
|
|
21642
|
+
we || (X(q != null, "missing value"), X(typeof me == "boolean", "missing or invalid endian"), X(J != null, "missing offset"), X(J + 7 < R.length, "Trying to write beyond buffer length"), ne(q, 17976931348623157e292, -17976931348623157e292)), R.length <= J || m.write(R, q, J, me, 52, 8);
|
|
21643
21643
|
}
|
|
21644
21644
|
i.Buffer = v, i.SlowBuffer = v, i.INSPECT_MAX_BYTES = 50, v.poolSize = 8192, v._useTypedArrays = function() {
|
|
21645
21645
|
try {
|
|
@@ -21807,7 +21807,7 @@ list should be an Array.`), R.length === 0)
|
|
|
21807
21807
|
}
|
|
21808
21808
|
}, v.prototype.slice = function(R, q) {
|
|
21809
21809
|
var J = this.length;
|
|
21810
|
-
if (R =
|
|
21810
|
+
if (R = te(R, J, 0), q = te(q, J, J), v._useTypedArrays)
|
|
21811
21811
|
return v._augment(this.subarray(R, q));
|
|
21812
21812
|
for (var me = q - R, we = new v(me, void 0, !0), Me = 0; Me < me; Me++)
|
|
21813
21813
|
we[Me] = this[Me + R];
|
|
@@ -21897,7 +21897,7 @@ list should be an Array.`), R.length === 0)
|
|
|
21897
21897
|
return R.buffer;
|
|
21898
21898
|
};
|
|
21899
21899
|
var V = v.prototype;
|
|
21900
|
-
function
|
|
21900
|
+
function te(R, q, J) {
|
|
21901
21901
|
return typeof R != "number" ? J : q <= (R = ~~R) ? q : 0 <= R || 0 <= (R += q) ? R : 0;
|
|
21902
21902
|
}
|
|
21903
21903
|
function pe(R) {
|
|
@@ -21943,7 +21943,7 @@ list should be an Array.`), R.length === 0)
|
|
|
21943
21943
|
function z(R, q, J) {
|
|
21944
21944
|
X(typeof R == "number", "cannot write a non-number as a number"), X(R <= q, "value larger than maximum allowed value"), X(J <= R, "value smaller than minimum allowed value"), X(Math.floor(R) === R, "value has a fractional component");
|
|
21945
21945
|
}
|
|
21946
|
-
function
|
|
21946
|
+
function ne(R, q, J) {
|
|
21947
21947
|
X(typeof R == "number", "cannot write a non-number as a number"), X(R <= q, "value larger than maximum allowed value"), X(J <= R, "value smaller than minimum allowed value");
|
|
21948
21948
|
}
|
|
21949
21949
|
function X(R, q) {
|
|
@@ -21976,10 +21976,10 @@ list should be an Array.`), R.length === 0)
|
|
|
21976
21976
|
return D || k("algorithm:", A, "is not yet supported"), { update: function(B) {
|
|
21977
21977
|
return g.isBuffer(B) || (B = new g(B)), M.push(B), B.length, this;
|
|
21978
21978
|
}, digest: function(B) {
|
|
21979
|
-
var H = g.concat(M), H = S ? function(V,
|
|
21980
|
-
g.isBuffer(
|
|
21979
|
+
var H = g.concat(M), H = S ? function(V, te, pe) {
|
|
21980
|
+
g.isBuffer(te) || (te = new g(te)), g.isBuffer(pe) || (pe = new g(pe)), te.length > u ? te = V(te) : te.length < u && (te = g.concat([te, w], u));
|
|
21981
21981
|
for (var le = new g(u), F = new g(u), P = 0; P < u; P++)
|
|
21982
|
-
le[P] = 54 ^
|
|
21982
|
+
le[P] = 54 ^ te[P], F[P] = 92 ^ te[P];
|
|
21983
21983
|
return pe = V(g.concat([le, pe])), V(g.concat([F, pe]));
|
|
21984
21984
|
}(D, S, H) : D(H);
|
|
21985
21985
|
return M = null, B ? H.toString(B) : H;
|
|
@@ -22057,11 +22057,11 @@ list should be an Array.`), R.length === 0)
|
|
|
22057
22057
|
function m(b, u) {
|
|
22058
22058
|
b[u >> 5] |= 128 << 24 - u % 32, b[15 + (u + 64 >> 9 << 4)] = u;
|
|
22059
22059
|
for (var w, E, k, _ = Array(80), x = 1732584193, T = -271733879, A = -1732584194, S = 271733878, D = -1009589776, M = 0; M < b.length; M += 16) {
|
|
22060
|
-
for (var B = x, H = T, V = A,
|
|
22060
|
+
for (var B = x, H = T, V = A, te = S, pe = D, le = 0; le < 80; le++) {
|
|
22061
22061
|
_[le] = le < 16 ? b[M + le] : y(_[le - 3] ^ _[le - 8] ^ _[le - 14] ^ _[le - 16], 1);
|
|
22062
22062
|
var F = v(v(y(x, 5), (F = T, E = A, k = S, (w = le) < 20 ? F & E | ~F & k : !(w < 40) && w < 60 ? F & E | F & k | E & k : F ^ E ^ k)), v(v(D, _[le]), (w = le) < 20 ? 1518500249 : w < 40 ? 1859775393 : w < 60 ? -1894007588 : -899497514)), D = S, S = A, A = y(T, 30), T = x, x = F;
|
|
22063
22063
|
}
|
|
22064
|
-
x = v(x, B), T = v(T, H), A = v(A, V), S = v(S,
|
|
22064
|
+
x = v(x, B), T = v(T, H), A = v(A, V), S = v(S, te), D = v(D, pe);
|
|
22065
22065
|
}
|
|
22066
22066
|
return Array(x, T, A, S, D);
|
|
22067
22067
|
}
|
|
@@ -22086,9 +22086,9 @@ list should be an Array.`), R.length === 0)
|
|
|
22086
22086
|
var E, k = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), _ = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), x = new Array(64);
|
|
22087
22087
|
u[w >> 5] |= 128 << 24 - w % 32, u[15 + (w + 64 >> 9 << 4)] = w;
|
|
22088
22088
|
for (var T, A, S = 0; S < u.length; S += 16) {
|
|
22089
|
-
for (var D = _[0], M = _[1], B = _[2], H = _[3], V = _[4],
|
|
22090
|
-
x[F] = F < 16 ? u[F + S] : g(g(g((A = x[F - 2], y(A, 17) ^ y(A, 19) ^ b(A, 10)), x[F - 7]), (A = x[F - 15], y(A, 7) ^ y(A, 18) ^ b(A, 3))), x[F - 16]), E = g(g(g(g(le, y(A = V, 6) ^ y(A, 11) ^ y(A, 25)), V &
|
|
22091
|
-
_[0] = g(D, _[0]), _[1] = g(M, _[1]), _[2] = g(B, _[2]), _[3] = g(H, _[3]), _[4] = g(V, _[4]), _[5] = g(
|
|
22089
|
+
for (var D = _[0], M = _[1], B = _[2], H = _[3], V = _[4], te = _[5], pe = _[6], le = _[7], F = 0; F < 64; F++)
|
|
22090
|
+
x[F] = F < 16 ? u[F + S] : g(g(g((A = x[F - 2], y(A, 17) ^ y(A, 19) ^ b(A, 10)), x[F - 7]), (A = x[F - 15], y(A, 7) ^ y(A, 18) ^ b(A, 3))), x[F - 16]), E = g(g(g(g(le, y(A = V, 6) ^ y(A, 11) ^ y(A, 25)), V & te ^ ~V & pe), k[F]), x[F]), T = g(y(T = D, 2) ^ y(T, 13) ^ y(T, 22), D & M ^ D & B ^ M & B), le = pe, pe = te, te = V, V = g(H, E), H = B, B = M, M = D, D = g(E, T);
|
|
22091
|
+
_[0] = g(D, _[0]), _[1] = g(M, _[1]), _[2] = g(B, _[2]), _[3] = g(H, _[3]), _[4] = g(V, _[4]), _[5] = g(te, _[5]), _[6] = g(pe, _[6]), _[7] = g(le, _[7]);
|
|
22092
22092
|
}
|
|
22093
22093
|
return _;
|
|
22094
22094
|
}
|
|
@@ -23056,7 +23056,7 @@ let ka = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", RO = ye({ name: "Dialog", inher
|
|
|
23056
23056
|
throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${p.value === ka ? void 0 : n.open}`);
|
|
23057
23057
|
let v = N(() => s.value && p.value ? 0 : 1), y = N(() => v.value === 0), b = N(() => f.value > 1), u = ot(Xc, null) !== null, [w, E] = Py(), { resolveContainers: k, mainTreeNodeRef: _, MainTreeNode: x } = Oy({ portals: w, defaultContainers: [N(() => {
|
|
23058
23058
|
var P;
|
|
23059
|
-
return (P =
|
|
23059
|
+
return (P = te.panelRef.value) != null ? P : g.value;
|
|
23060
23060
|
})] }), T = N(() => b.value ? "parent" : "leaf"), A = N(() => h !== null ? (h.value & Zt.Closing) === Zt.Closing : !1), S = N(() => u || A.value ? !1 : y.value), D = N(() => {
|
|
23061
23061
|
var P, $, Y;
|
|
23062
23062
|
return (Y = Array.from(($ = (P = m.value) == null ? void 0 : P.querySelectorAll("body > *")) != null ? $ : []).find((Q) => Q.id === "headlessui-portal-root" ? !1 : Q.contains(qe(_)) && Q instanceof HTMLElement)) != null ? Y : null;
|
|
@@ -23070,19 +23070,19 @@ let ka = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", RO = ye({ name: "Dialog", inher
|
|
|
23070
23070
|
if ($ === "Dialog")
|
|
23071
23071
|
return En(P, { [Qc.Add]: () => f.value += 1, [Qc.Remove]: () => f.value -= 1 });
|
|
23072
23072
|
} });
|
|
23073
|
-
let H = Ny({ name: "DialogDescription", slot: N(() => ({ open: p.value })) }), V = ee(null),
|
|
23073
|
+
let H = Ny({ name: "DialogDescription", slot: N(() => ({ open: p.value })) }), V = ee(null), te = { titleId: V, panelRef: ee(null), dialogState: v, setTitleId(P) {
|
|
23074
23074
|
V.value !== P && (V.value = P);
|
|
23075
23075
|
}, close() {
|
|
23076
23076
|
t("close", !1);
|
|
23077
23077
|
} };
|
|
23078
|
-
ft(Xc,
|
|
23078
|
+
ft(Xc, te);
|
|
23079
23079
|
let pe = N(() => !(!y.value || b.value));
|
|
23080
23080
|
xf(k, (P, $) => {
|
|
23081
|
-
|
|
23081
|
+
te.close(), Vt(() => $ == null ? void 0 : $.focus());
|
|
23082
23082
|
}, pe);
|
|
23083
23083
|
let le = N(() => !(b.value || v.value !== 0));
|
|
23084
23084
|
Cf((l = m.value) == null ? void 0 : l.defaultView, "keydown", (P) => {
|
|
23085
|
-
le.value && (P.defaultPrevented || P.key === Pt.Escape && (P.preventDefault(), P.stopPropagation(),
|
|
23085
|
+
le.value && (P.defaultPrevented || P.key === Pt.Escape && (P.preventDefault(), P.stopPropagation(), te.close()));
|
|
23086
23086
|
});
|
|
23087
23087
|
let F = N(() => !(A.value || v.value !== 0 || u));
|
|
23088
23088
|
return EO(m, F, (P) => {
|
|
@@ -23097,7 +23097,7 @@ let ka = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", RO = ye({ name: "Dialog", inher
|
|
|
23097
23097
|
let Y = new ResizeObserver((Q) => {
|
|
23098
23098
|
for (let re of Q) {
|
|
23099
23099
|
let z = re.target.getBoundingClientRect();
|
|
23100
|
-
z.x === 0 && z.y === 0 && z.width === 0 && z.height === 0 &&
|
|
23100
|
+
z.x === 0 && z.y === 0 && z.width === 0 && z.height === 0 && te.close();
|
|
23101
23101
|
}
|
|
23102
23102
|
});
|
|
23103
23103
|
Y.observe($), P(() => Y.disconnect());
|
|
@@ -23820,7 +23820,7 @@ let Yy = Ar.RenderStrategy, Ua = ye({ props: { as: { type: [Object, String], def
|
|
|
23820
23820
|
D(H), y.value = !1;
|
|
23821
23821
|
}, { immediate: !0 });
|
|
23822
23822
|
}), ft(Df, w), kf(N(() => En(v.value, { visible: Zt.Open, hidden: Zt.Closed }) | o.value)), () => {
|
|
23823
|
-
let { appear: M, show: B, enter: H, enterFrom: V, enterTo:
|
|
23823
|
+
let { appear: M, show: B, enter: H, enterFrom: V, enterTo: te, entered: pe, leave: le, leaveFrom: F, leaveTo: P, ...$ } = n, Y = { ref: d }, Q = { ...$, ...p.value && h.value && Wl.isServer ? { class: ce([e.class, $.class, ...E, ...k]) } : {} };
|
|
23824
23824
|
return Ut({ theirProps: Q, ourProps: Y, slot: {}, slots: r, attrs: e, features: Yy, visible: v.value === "visible", name: "TransitionChild" });
|
|
23825
23825
|
};
|
|
23826
23826
|
} }), nR = Ua, Ky = ye({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(n, { emit: t, attrs: e, slots: r }) {
|
|
@@ -24166,8 +24166,8 @@ const rR = { class: "grow" }, iR = {
|
|
|
24166
24166
|
return ni(1, f.value);
|
|
24167
24167
|
const A = T % 2 === 0 ? 1 : 0, S = Math.floor(T / 2), D = f.value - S + 1 + A;
|
|
24168
24168
|
if (e.modelValue > S && e.modelValue < D) {
|
|
24169
|
-
const B = f.value, H = e.modelValue - S + 2, V = e.modelValue + S - 2 - A,
|
|
24170
|
-
return [1,
|
|
24169
|
+
const B = f.value, H = e.modelValue - S + 2, V = e.modelValue + S - 2 - A, te = H - 1 === 1 + 1 ? 2 : "...", pe = V + 1 === B - 1 ? V + 1 : "...";
|
|
24170
|
+
return [1, te, ...ni(H, V), pe, f.value];
|
|
24171
24171
|
} else if (e.modelValue === S) {
|
|
24172
24172
|
const M = e.modelValue + S - 1 - A;
|
|
24173
24173
|
return [...ni(1, M), "...", f.value];
|
|
@@ -24678,14 +24678,14 @@ const rR = { class: "grow" }, iR = {
|
|
|
24678
24678
|
);
|
|
24679
24679
|
function H(De, $e) {
|
|
24680
24680
|
let Oe = Gt(_.value);
|
|
24681
|
-
Oe = Au(Oe, De, $e), Oe = Au(Oe, "page", 1),
|
|
24681
|
+
Oe = Au(Oe, De, $e), Oe = Au(Oe, "page", 1), te(Oe);
|
|
24682
24682
|
}
|
|
24683
24683
|
function V(De) {
|
|
24684
|
-
De = Au(De, "page", 1),
|
|
24684
|
+
De = Au(De, "page", 1), te(De);
|
|
24685
24685
|
}
|
|
24686
|
-
function
|
|
24686
|
+
function te(De) {
|
|
24687
24687
|
if (!r.historyMode) {
|
|
24688
|
-
_.value = De,
|
|
24688
|
+
_.value = De, ne();
|
|
24689
24689
|
return;
|
|
24690
24690
|
}
|
|
24691
24691
|
if (f.name === null)
|
|
@@ -24702,7 +24702,7 @@ const rR = { class: "grow" }, iR = {
|
|
|
24702
24702
|
h.push(Ze);
|
|
24703
24703
|
return;
|
|
24704
24704
|
}
|
|
24705
|
-
y.value || (_.value = De,
|
|
24705
|
+
y.value || (_.value = De, ne());
|
|
24706
24706
|
}
|
|
24707
24707
|
function pe(De) {
|
|
24708
24708
|
return xs(De);
|
|
@@ -24710,17 +24710,17 @@ const rR = { class: "grow" }, iR = {
|
|
|
24710
24710
|
const le = N(() => r.url);
|
|
24711
24711
|
function F(De) {
|
|
24712
24712
|
const $e = Gt(_.value);
|
|
24713
|
-
$e.page = De,
|
|
24713
|
+
$e.page = De, te($e), Le();
|
|
24714
24714
|
}
|
|
24715
24715
|
function P(De, $e) {
|
|
24716
24716
|
let Oe = De;
|
|
24717
24717
|
Oe && $e == "desc" && (Oe = "-" + Oe);
|
|
24718
24718
|
const Ze = Gt(_.value);
|
|
24719
|
-
Ze.page = 1, Ze.sort = Oe,
|
|
24719
|
+
Ze.page = 1, Ze.sort = Oe, te(Ze);
|
|
24720
24720
|
}
|
|
24721
24721
|
const $ = Bn((De) => {
|
|
24722
24722
|
const $e = Gt(_.value);
|
|
24723
|
-
$e.page = 1, $e.search = w.value,
|
|
24723
|
+
$e.page = 1, $e.search = w.value, te($e);
|
|
24724
24724
|
}, s.value == o ? 350 : 0);
|
|
24725
24725
|
at(
|
|
24726
24726
|
() => f.query,
|
|
@@ -24732,12 +24732,12 @@ const rR = { class: "grow" }, iR = {
|
|
|
24732
24732
|
), at(
|
|
24733
24733
|
() => r.url,
|
|
24734
24734
|
() => {
|
|
24735
|
-
|
|
24735
|
+
ne();
|
|
24736
24736
|
}
|
|
24737
24737
|
), at(
|
|
24738
24738
|
() => r.urlQuery,
|
|
24739
24739
|
() => {
|
|
24740
|
-
|
|
24740
|
+
ne();
|
|
24741
24741
|
}
|
|
24742
24742
|
);
|
|
24743
24743
|
function Y() {
|
|
@@ -24747,15 +24747,15 @@ const rR = { class: "grow" }, iR = {
|
|
|
24747
24747
|
if (!r.historyMode || m || f.name != p)
|
|
24748
24748
|
return;
|
|
24749
24749
|
const $e = Y(), Oe = pe($e);
|
|
24750
|
-
Oe != k && (k = Oe, _.value = $e, d.value || Qe(),
|
|
24750
|
+
Oe != k && (k = Oe, _.value = $e, d.value || Qe(), ne());
|
|
24751
24751
|
}
|
|
24752
24752
|
function re(De = !1) {
|
|
24753
|
-
|
|
24753
|
+
ne(De, !0);
|
|
24754
24754
|
}
|
|
24755
24755
|
function z(De = !1) {
|
|
24756
|
-
|
|
24756
|
+
ne(De, !1);
|
|
24757
24757
|
}
|
|
24758
|
-
function
|
|
24758
|
+
function ne(De = !1, $e = !0) {
|
|
24759
24759
|
if (m)
|
|
24760
24760
|
return;
|
|
24761
24761
|
if (le.value == null) {
|
|
@@ -24816,7 +24816,7 @@ const rR = { class: "grow" }, iR = {
|
|
|
24816
24816
|
));
|
|
24817
24817
|
let se = Gt(_.value);
|
|
24818
24818
|
const oe = Y();
|
|
24819
|
-
se = El(se, oe),
|
|
24819
|
+
se = El(se, oe), te(se), vt(() => {
|
|
24820
24820
|
Qe();
|
|
24821
24821
|
});
|
|
24822
24822
|
const ue = ee(null), U = N(() => ({
|
|
@@ -24839,7 +24839,7 @@ const rR = { class: "grow" }, iR = {
|
|
|
24839
24839
|
ue.value = null;
|
|
24840
24840
|
}
|
|
24841
24841
|
return ft("dataIterator:width", v), t({
|
|
24842
|
-
fetch: () =>
|
|
24842
|
+
fetch: () => ne(!0),
|
|
24843
24843
|
fetchWithLoading: () => re(!0),
|
|
24844
24844
|
fetchWithoutLoading: () => z(!0),
|
|
24845
24845
|
scrollIntoView: Ae,
|
|
@@ -25311,10 +25311,13 @@ const tb = /* @__PURE__ */ Ro(YR, [["render", XR]]), JR = { class: "relative" },
|
|
|
25311
25311
|
loading: { type: Boolean, default: !1 }
|
|
25312
25312
|
},
|
|
25313
25313
|
setup(n, { expose: t }) {
|
|
25314
|
-
const e = n, r = N(() =>
|
|
25315
|
-
"border-separate border-spacing-0 text-sm"
|
|
25316
|
-
e.class
|
|
25317
|
-
|
|
25314
|
+
const e = n, r = N(() => {
|
|
25315
|
+
const s = "border-separate border-spacing-0 text-sm";
|
|
25316
|
+
return e.class ? gt(
|
|
25317
|
+
s,
|
|
25318
|
+
e.class
|
|
25319
|
+
) : s;
|
|
25320
|
+
}), i = ee(!1), o = ee(null), { x: l } = hm(o);
|
|
25318
25321
|
at(l, (s) => {
|
|
25319
25322
|
i.value = s > 0;
|
|
25320
25323
|
});
|
|
@@ -25369,10 +25372,13 @@ const tb = /* @__PURE__ */ Ro(YR, [["render", XR]]), JR = { class: "relative" },
|
|
|
25369
25372
|
if (!ot("table:props"))
|
|
25370
25373
|
throw new Error("BaseTableHead must be used within a BaseTable.");
|
|
25371
25374
|
ft("tableHead:props", N(() => t));
|
|
25372
|
-
const r = N(() =>
|
|
25373
|
-
""
|
|
25374
|
-
t.class
|
|
25375
|
-
|
|
25375
|
+
const r = N(() => {
|
|
25376
|
+
const i = "";
|
|
25377
|
+
return t.class ? gt(
|
|
25378
|
+
i,
|
|
25379
|
+
t.class
|
|
25380
|
+
) : i;
|
|
25381
|
+
});
|
|
25376
25382
|
return (i, o) => (I(), K("thead", {
|
|
25377
25383
|
class: ce(C(r))
|
|
25378
25384
|
}, [
|
|
@@ -25413,18 +25419,18 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25413
25419
|
head: !0
|
|
25414
25420
|
};
|
|
25415
25421
|
}), c = ee(null), d = N(() => {
|
|
25416
|
-
const f = ib(s.value), h = "bg-white text-slate-500 border-b border-slate-300 group", p = e != null && e.value.fixedHeader ? "sticky top-0 z-[2]" : "", g = "first:border-r first:border-r-transparent", m = e != null && e.value.fixedColumn && (i != null && i.value) ? "first:sticky first:z-[3] first:left-0 first:border-r-slate-200" : "", v = e != null && e.value.flush ? "first:pl-0 last:pr-0" : ""
|
|
25417
|
-
|
|
25418
|
-
|
|
25419
|
-
|
|
25420
|
-
|
|
25421
|
-
|
|
25422
|
-
|
|
25423
|
-
|
|
25424
|
-
|
|
25425
|
-
|
|
25422
|
+
const f = ib(s.value), h = "bg-white text-slate-500 border-b border-slate-300 group", p = e != null && e.value.fixedHeader ? "sticky top-0 z-[2]" : "", g = "first:border-r first:border-r-transparent", m = e != null && e.value.fixedColumn && (i != null && i.value) ? "first:sticky first:z-[3] first:left-0 first:border-r-slate-200" : "", v = e != null && e.value.flush ? "first:pl-0 last:pr-0" : "", y = [
|
|
25423
|
+
f,
|
|
25424
|
+
h,
|
|
25425
|
+
p,
|
|
25426
|
+
g,
|
|
25427
|
+
m,
|
|
25428
|
+
v
|
|
25429
|
+
];
|
|
25430
|
+
return l.class ? gt(
|
|
25431
|
+
y,
|
|
25426
25432
|
l.class
|
|
25427
|
-
);
|
|
25433
|
+
) : y;
|
|
25428
25434
|
});
|
|
25429
25435
|
return (f, h) => (I(), K("th", {
|
|
25430
25436
|
ref_key: "thRef",
|
|
@@ -25468,10 +25474,13 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25468
25474
|
var p;
|
|
25469
25475
|
l.value = (p = o.value) == null ? void 0 : p.parentElement;
|
|
25470
25476
|
});
|
|
25471
|
-
const a = N(() =>
|
|
25472
|
-
"group/row"
|
|
25473
|
-
i.class
|
|
25474
|
-
|
|
25477
|
+
const a = N(() => {
|
|
25478
|
+
const p = "group/row";
|
|
25479
|
+
return i.class ? gt(
|
|
25480
|
+
p,
|
|
25481
|
+
i.class
|
|
25482
|
+
) : p;
|
|
25483
|
+
}), s = ee(!1), c = ee(!1);
|
|
25475
25484
|
function d(p) {
|
|
25476
25485
|
c.value = p;
|
|
25477
25486
|
}
|
|
@@ -25526,20 +25535,20 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25526
25535
|
_ && (D = "bg-slate-100"), x && (D = "bg-slate-200");
|
|
25527
25536
|
let M = "border-slate-200";
|
|
25528
25537
|
x && (M = "border-slate-300");
|
|
25529
|
-
const B = "first:border-r first:border-r-transparent", H = t != null && t.value.fixedColumn && (l != null && l.value) ? "first:sticky first:z-[1] first:left-0 first:border-r-slate-200" : "", V = t != null && t.value.flush ? "first:pl-0 last:pr-0" : ""
|
|
25530
|
-
|
|
25531
|
-
|
|
25532
|
-
|
|
25533
|
-
|
|
25534
|
-
|
|
25535
|
-
|
|
25536
|
-
|
|
25537
|
-
|
|
25538
|
-
|
|
25539
|
-
|
|
25540
|
-
|
|
25538
|
+
const B = "first:border-r first:border-r-transparent", H = t != null && t.value.fixedColumn && (l != null && l.value) ? "first:sticky first:z-[1] first:left-0 first:border-r-slate-200" : "", V = t != null && t.value.flush ? "first:pl-0 last:pr-0" : "", te = [
|
|
25539
|
+
T,
|
|
25540
|
+
A,
|
|
25541
|
+
S,
|
|
25542
|
+
D,
|
|
25543
|
+
M,
|
|
25544
|
+
B,
|
|
25545
|
+
H,
|
|
25546
|
+
V
|
|
25547
|
+
];
|
|
25548
|
+
return f.class ? gt(
|
|
25549
|
+
te,
|
|
25541
25550
|
f.class
|
|
25542
|
-
);
|
|
25551
|
+
) : te;
|
|
25543
25552
|
}), u = ee(null);
|
|
25544
25553
|
function w(_) {
|
|
25545
25554
|
var x, T;
|
|
@@ -25694,20 +25703,20 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25694
25703
|
), at(
|
|
25695
25704
|
() => r.sortField,
|
|
25696
25705
|
() => {
|
|
25697
|
-
|
|
25706
|
+
te();
|
|
25698
25707
|
}
|
|
25699
25708
|
), at(
|
|
25700
25709
|
() => r.sortDirection,
|
|
25701
25710
|
() => {
|
|
25702
|
-
|
|
25711
|
+
te();
|
|
25703
25712
|
}
|
|
25704
25713
|
), vt(() => {
|
|
25705
25714
|
Vt(() => {
|
|
25706
|
-
|
|
25715
|
+
te();
|
|
25707
25716
|
});
|
|
25708
25717
|
});
|
|
25709
|
-
function y(z,
|
|
25710
|
-
!z || !z.sortable || (
|
|
25718
|
+
function y(z, ne = !1, X = null) {
|
|
25719
|
+
!z || !z.sortable || (ne || (c.value = z === s.value ? !c.value : r.sortDirection.toLowerCase() !== "desc"), i("sort", z.field, c.value ? "asc" : "desc", X), s.value = z);
|
|
25711
25720
|
}
|
|
25712
25721
|
function b(z) {
|
|
25713
25722
|
return l.value.find((X) => {
|
|
@@ -25715,7 +25724,7 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25715
25724
|
return R == q;
|
|
25716
25725
|
}) !== void 0;
|
|
25717
25726
|
}
|
|
25718
|
-
const u = N(() => r.data.filter((
|
|
25727
|
+
const u = N(() => r.data.filter((ne) => r.isRowCheckable(ne)).length === 0), w = N(() => {
|
|
25719
25728
|
const z = r.data.filter((X) => r.isRowCheckable(X));
|
|
25720
25729
|
return z.length === 0 ? !1 : !z.some((X) => !b(X));
|
|
25721
25730
|
});
|
|
@@ -25726,8 +25735,8 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25726
25735
|
});
|
|
25727
25736
|
}
|
|
25728
25737
|
function k(z) {
|
|
25729
|
-
const
|
|
25730
|
-
|
|
25738
|
+
const ne = E(z);
|
|
25739
|
+
ne >= 0 && l.value.splice(ne, 1);
|
|
25731
25740
|
}
|
|
25732
25741
|
function _() {
|
|
25733
25742
|
w.value ? l.value = [] : r.data.forEach((z) => {
|
|
@@ -25740,16 +25749,16 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25740
25749
|
function T() {
|
|
25741
25750
|
i("check", l.value), i("check-all", l.value), i("update:checkedRows", l.value);
|
|
25742
25751
|
}
|
|
25743
|
-
function A(z,
|
|
25752
|
+
function A(z, ne, X) {
|
|
25744
25753
|
if (!r.isRowCheckable(z))
|
|
25745
25754
|
return;
|
|
25746
25755
|
const R = a.value;
|
|
25747
|
-
a.value =
|
|
25756
|
+
a.value = ne, X.shiftKey && R !== null && ne !== R ? S(z, ne, R) : b(z) ? k(z) : l.value.push(z), i("check", l.value, z), i("update:checkedRows", l.value);
|
|
25748
25757
|
}
|
|
25749
|
-
function S(z,
|
|
25758
|
+
function S(z, ne, X) {
|
|
25750
25759
|
const R = r.data.slice(
|
|
25751
|
-
Math.min(
|
|
25752
|
-
Math.max(
|
|
25760
|
+
Math.min(ne, X),
|
|
25761
|
+
Math.max(ne, X) + 1
|
|
25753
25762
|
), q = !b(z);
|
|
25754
25763
|
R.forEach((J) => {
|
|
25755
25764
|
k(J), q && r.isRowCheckable(J) && l.value.push(J);
|
|
@@ -25759,26 +25768,26 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25759
25768
|
H(z) ? (B(z), i("details-close", z)) : (M(z), i("details-open", z)), i("update:openedDetailed", o.value);
|
|
25760
25769
|
}
|
|
25761
25770
|
function M(z) {
|
|
25762
|
-
const
|
|
25763
|
-
o.value.push(
|
|
25771
|
+
const ne = Q(z);
|
|
25772
|
+
o.value.push(ne);
|
|
25764
25773
|
}
|
|
25765
25774
|
function B(z) {
|
|
25766
|
-
const
|
|
25775
|
+
const ne = Q(z), X = o.value.indexOf(ne);
|
|
25767
25776
|
X >= 0 && o.value.splice(X, 1);
|
|
25768
25777
|
}
|
|
25769
25778
|
function H(z) {
|
|
25770
|
-
const
|
|
25771
|
-
return o.value.indexOf(
|
|
25779
|
+
const ne = Q(z);
|
|
25780
|
+
return o.value.indexOf(ne) >= 0;
|
|
25772
25781
|
}
|
|
25773
25782
|
function V(z) {
|
|
25774
25783
|
return r.detailed && H(z);
|
|
25775
25784
|
}
|
|
25776
|
-
function
|
|
25777
|
-
const z = r.sortField,
|
|
25785
|
+
function te() {
|
|
25786
|
+
const z = r.sortField, ne = r.sortDirection, X = p.value.filter(
|
|
25778
25787
|
(R) => R.field === z
|
|
25779
25788
|
)[0];
|
|
25780
25789
|
if (X)
|
|
25781
|
-
s.value = X, c.value =
|
|
25790
|
+
s.value = X, c.value = ne.toLowerCase() !== "desc";
|
|
25782
25791
|
else {
|
|
25783
25792
|
s.value = null;
|
|
25784
25793
|
return;
|
|
@@ -25786,9 +25795,9 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25786
25795
|
}
|
|
25787
25796
|
function pe(z) {
|
|
25788
25797
|
d.value.push(z);
|
|
25789
|
-
const
|
|
25790
|
-
|
|
25791
|
-
const X = d.value.map((q) => `[data-id="${q.newKey}"]`).join(","), R = Array.from(
|
|
25798
|
+
const ne = h.value;
|
|
25799
|
+
ne && ne.children && Vt(() => {
|
|
25800
|
+
const X = d.value.map((q) => `[data-id="${q.newKey}"]`).join(","), R = Array.from(ne.querySelectorAll(X)).map(
|
|
25792
25801
|
(q) => q.getAttribute("data-id")
|
|
25793
25802
|
);
|
|
25794
25803
|
d.value = d.value.sort((q, J) => R.indexOf(`${q.newKey}`) - R.indexOf(`${J.newKey}`));
|
|
@@ -25796,18 +25805,18 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25796
25805
|
}
|
|
25797
25806
|
function le(z) {
|
|
25798
25807
|
d.value = d.value.filter(
|
|
25799
|
-
(
|
|
25808
|
+
(ne) => ne.newKey !== z.newKey
|
|
25800
25809
|
);
|
|
25801
25810
|
}
|
|
25802
|
-
function F(z,
|
|
25811
|
+
function F(z, ne) {
|
|
25803
25812
|
return {
|
|
25804
|
-
onClick: r.onRowClick ? (X) => r.onRowClick && r.onRowClick(z,
|
|
25813
|
+
onClick: r.onRowClick ? (X) => r.onRowClick && r.onRowClick(z, ne, X) : void 0
|
|
25805
25814
|
};
|
|
25806
25815
|
}
|
|
25807
|
-
function P(z,
|
|
25816
|
+
function P(z, ne, X, R) {
|
|
25808
25817
|
if (X.onClick)
|
|
25809
25818
|
return (q) => {
|
|
25810
|
-
X.onClick && X.onClick(z,
|
|
25819
|
+
X.onClick && X.onClick(z, ne, X, R, q);
|
|
25811
25820
|
};
|
|
25812
25821
|
}
|
|
25813
25822
|
function $() {
|
|
@@ -25824,12 +25833,12 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25824
25833
|
if (z.uuid)
|
|
25825
25834
|
return z.uuid;
|
|
25826
25835
|
Y || (console.warn("%cNo unique key found for items provided to BaseDataTable.%cPlease provide a unique key for each row (id, key or uuid) or use the row-key props to specify a unique key.", "font-weight: bold", "font-weight: normal"), Y = !0);
|
|
25827
|
-
const
|
|
25836
|
+
const ne = {};
|
|
25828
25837
|
for (const X in z) {
|
|
25829
25838
|
const R = z[X];
|
|
25830
|
-
(typeof R == "string" || typeof R == "number" || typeof R == "boolean") && (
|
|
25839
|
+
(typeof R == "string" || typeof R == "number" || typeof R == "boolean") && (ne[X] = R);
|
|
25831
25840
|
}
|
|
25832
|
-
return xs(
|
|
25841
|
+
return xs(ne);
|
|
25833
25842
|
}
|
|
25834
25843
|
ft("addColumn", pe), ft("removeColumn", le), ft("nextSequence", $);
|
|
25835
25844
|
const re = ee(null);
|
|
@@ -25840,7 +25849,7 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
25840
25849
|
var z;
|
|
25841
25850
|
(z = re.value) == null || z.scrollTop();
|
|
25842
25851
|
}
|
|
25843
|
-
}), (z,
|
|
25852
|
+
}), (z, ne) => {
|
|
25844
25853
|
const X = Kt("BaseIcon");
|
|
25845
25854
|
return I(), K("div", {
|
|
25846
25855
|
class: "relative w-full overflow-hidden",
|
|
@@ -26316,7 +26325,7 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
26316
26325
|
title: ze("sui.success"),
|
|
26317
26326
|
text: P.data.message,
|
|
26318
26327
|
color: "success"
|
|
26319
|
-
}), d("delete", F),
|
|
26328
|
+
}), d("delete", F), te();
|
|
26320
26329
|
}).catch((P) => {
|
|
26321
26330
|
var $;
|
|
26322
26331
|
o.push({
|
|
@@ -26401,7 +26410,7 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
26401
26410
|
function V(F) {
|
|
26402
26411
|
d("fetch", F);
|
|
26403
26412
|
}
|
|
26404
|
-
function
|
|
26413
|
+
function te() {
|
|
26405
26414
|
f.value && f.value.fetch();
|
|
26406
26415
|
}
|
|
26407
26416
|
function pe() {
|
|
@@ -26412,7 +26421,7 @@ const iM = ["align", "colspan"], ob = /* @__PURE__ */ ye({
|
|
|
26412
26421
|
return ((F = f.value) == null ? void 0 : F.query) ?? null;
|
|
26413
26422
|
});
|
|
26414
26423
|
return t({
|
|
26415
|
-
fetch:
|
|
26424
|
+
fetch: te,
|
|
26416
26425
|
fetchWithoutLoading: pe,
|
|
26417
26426
|
query: le
|
|
26418
26427
|
}), (F, P) => (I(), Ee(Xy, {
|
|
@@ -27082,7 +27091,7 @@ function PM(n, t) {
|
|
|
27082
27091
|
config: An(An({}, yo), an.defaultConfig),
|
|
27083
27092
|
l10n: Ml
|
|
27084
27093
|
};
|
|
27085
|
-
e.parseDate = ed({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = m, e._setHoursFromDate = h, e._positionCalendar = Se, e.changeMonth = P, e.changeYear =
|
|
27094
|
+
e.parseDate = ed({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = m, e._setHoursFromDate = h, e._positionCalendar = Se, e.changeMonth = P, e.changeYear = ne, e.clear = $, e.close = Y, e.onMouseOver = me, e._createElement = Ot, e.createDay = k, e.destroy = Q, e.isEnabled = X, e.jumpToDate = b, e.updateValue = Ke, e.open = Me, e.redraw = Ae, e.set = se, e.setDate = ue, e.toggle = $e;
|
|
27086
27095
|
function r() {
|
|
27087
27096
|
e.utils = {
|
|
27088
27097
|
getDaysInMonth: function(W, Z) {
|
|
@@ -27165,7 +27174,7 @@ function PM(n, t) {
|
|
|
27165
27174
|
}
|
|
27166
27175
|
function g(W) {
|
|
27167
27176
|
var Z = Un(W), fe = parseInt(Z.value) + (W.delta || 0);
|
|
27168
|
-
(fe / 1e3 > 1 || W.key === "Enter" && !/[^\d]/.test(fe.toString())) &&
|
|
27177
|
+
(fe / 1e3 > 1 || W.key === "Enter" && !/[^\d]/.test(fe.toString())) && ne(fe);
|
|
27169
27178
|
}
|
|
27170
27179
|
function m(W, Z, fe, _e) {
|
|
27171
27180
|
if (Z instanceof Array)
|
|
@@ -27235,7 +27244,7 @@ function PM(n, t) {
|
|
|
27235
27244
|
}
|
|
27236
27245
|
e.rContainer = Ot("div", "flatpickr-rContainer"), e.rContainer.appendChild(pe()), e.daysContainer || (e.daysContainer = Ot("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), D(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), W.appendChild(e.innerContainer);
|
|
27237
27246
|
}
|
|
27238
|
-
e.config.enableTime && W.appendChild(
|
|
27247
|
+
e.config.enableTime && W.appendChild(te()), In(e.calendarContainer, "rangeMode", e.config.mode === "range"), In(e.calendarContainer, "animate", e.config.animate === !0), In(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(W);
|
|
27239
27248
|
var je = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
|
|
27240
27249
|
if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!je && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
|
|
27241
27250
|
var Ve = Ot("div", "flatpickr-wrapper");
|
|
@@ -27344,7 +27353,7 @@ function PM(n, t) {
|
|
|
27344
27353
|
}
|
|
27345
27354
|
}), e.currentYearElement = e.yearElements[0], Ne(), e.monthNav;
|
|
27346
27355
|
}
|
|
27347
|
-
function
|
|
27356
|
+
function te() {
|
|
27348
27357
|
e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
|
|
27349
27358
|
var W = rc(e.config);
|
|
27350
27359
|
e.timeContainer = Ot("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
|
|
@@ -27471,7 +27480,7 @@ function PM(n, t) {
|
|
|
27471
27480
|
je && Ve && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && s(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
|
|
27472
27481
|
}
|
|
27473
27482
|
}
|
|
27474
|
-
function
|
|
27483
|
+
function ne(W) {
|
|
27475
27484
|
if (!(!W || e.config.minDate && W < e.config.minDate.getFullYear() || e.config.maxDate && W > e.config.maxDate.getFullYear())) {
|
|
27476
27485
|
var Z = W, fe = e.currentYear !== Z;
|
|
27477
27486
|
e.currentYear = Z || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), fe && (e.redraw(), Oe("onYearChange"), M());
|
|
@@ -27542,7 +27551,7 @@ function PM(n, t) {
|
|
|
27542
27551
|
case 40:
|
|
27543
27552
|
W.preventDefault();
|
|
27544
27553
|
var Xe = W.keyCode === 40 ? 1 : -1;
|
|
27545
|
-
e.daysContainer && Z.$i !== void 0 || Z === e.input || Z === e.altInput ? W.ctrlKey ? (W.stopPropagation(),
|
|
27554
|
+
e.daysContainer && Z.$i !== void 0 || Z === e.input || Z === e.altInput ? W.ctrlKey ? (W.stopPropagation(), ne(e.currentYear - Xe), A(x(1), 0)) : ht || A(void 0, Xe * 7) : Z === e.currentYearElement ? ne(e.currentYear - Xe) : e.config.enableTime && (!ht && e.hourElement && e.hourElement.focus(), s(W), e._debouncedChange());
|
|
27546
27555
|
break;
|
|
27547
27556
|
case 9:
|
|
27548
27557
|
if (ht) {
|
|
@@ -28558,7 +28567,7 @@ const jM = ["disabled", "placeholder"], $M = /* @__PURE__ */ ye({
|
|
|
28558
28567
|
) : new RegExp(
|
|
28559
28568
|
"^([01]?[0-9]|2[0-3]):([0-5][0-9])(:([0-5][0-9]))?$"
|
|
28560
28569
|
)), c = N(() => !e.modelValue || !s.value.test(e.modelValue) ? null : e.modelValue), d = N(() => {
|
|
28561
|
-
const M = "transition-colors duration-200 input-rounded", B = "focus:input-focus", H = o.value ? "border-red-500 focus:input-focus-error" : "border-slate-300", V = "disabled:cursor-not-allowed disabled:text-slate-300",
|
|
28570
|
+
const M = "transition-colors duration-200 input-rounded", B = "focus:input-focus", H = o.value ? "border-red-500 focus:input-focus-error" : "border-slate-300", V = "disabled:cursor-not-allowed disabled:text-slate-300", te = sn[a.value], pe = {
|
|
28562
28571
|
xs: "pl-[1.54rem] pr-5",
|
|
28563
28572
|
sm: "pl-[2.1rem] pr-6",
|
|
28564
28573
|
md: "pl-10 pr-7",
|
|
@@ -28572,8 +28581,8 @@ const jM = ["disabled", "placeholder"], $M = /* @__PURE__ */ ye({
|
|
|
28572
28581
|
V,
|
|
28573
28582
|
pe,
|
|
28574
28583
|
le,
|
|
28575
|
-
|
|
28576
|
-
|
|
28584
|
+
te.height,
|
|
28585
|
+
te.fontSize
|
|
28577
28586
|
);
|
|
28578
28587
|
}), f = N(() => {
|
|
28579
28588
|
const M = "absolute top-0 right-0 flex justify-center p-1", B = sn[a.value];
|
|
@@ -30249,8 +30258,8 @@ var ub = { exports: {} };
|
|
|
30249
30258
|
}
|
|
30250
30259
|
} else
|
|
30251
30260
|
D = B.replace(".", A);
|
|
30252
|
-
var
|
|
30253
|
-
return typeof
|
|
30261
|
+
var te = w[k], pe;
|
|
30262
|
+
return typeof te == "function" ? pe = te(_) : pe = te, w._numberFirst ? pe + x + D : D + x + pe;
|
|
30254
30263
|
}
|
|
30255
30264
|
function m(u, w) {
|
|
30256
30265
|
var E, k, _, x, T = w.units, A = w.unitMeasures, S = "largest" in w ? w.largest : 1 / 0;
|
|
@@ -30267,8 +30276,8 @@ var ub = { exports: {} };
|
|
|
30267
30276
|
for (k = 0; k < T.length; k++)
|
|
30268
30277
|
if (E = T[k], _ = D[E], _ !== 0 && (H--, H === 0)) {
|
|
30269
30278
|
for (var V = k + 1; V < T.length; V++) {
|
|
30270
|
-
var
|
|
30271
|
-
D[E] += pe * A[
|
|
30279
|
+
var te = T[V], pe = D[te];
|
|
30280
|
+
D[E] += pe * A[te] / A[E], D[te] = 0;
|
|
30272
30281
|
}
|
|
30273
30282
|
break;
|
|
30274
30283
|
}
|
|
@@ -30561,7 +30570,7 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30561
30570
|
return;
|
|
30562
30571
|
}
|
|
30563
30572
|
if (re === "Backspace" && p.value == "") {
|
|
30564
|
-
|
|
30573
|
+
te();
|
|
30565
30574
|
return;
|
|
30566
30575
|
}
|
|
30567
30576
|
}, S = (Q) => {
|
|
@@ -30597,7 +30606,7 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30597
30606
|
open: _,
|
|
30598
30607
|
close: x,
|
|
30599
30608
|
keywords: N(() => p.value)
|
|
30600
|
-
},
|
|
30609
|
+
}, te = () => {
|
|
30601
30610
|
const Q = E.value[E.value.length - 1] ?? null;
|
|
30602
30611
|
if (b.value && Q && Q.value == b.value.value) {
|
|
30603
30612
|
pe(b.value), b.value = null;
|
|
@@ -30617,8 +30626,8 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30617
30626
|
md: "min-h-control-md gap-1 p-1",
|
|
30618
30627
|
lg: "min-h-control-lg gap-1 p-1",
|
|
30619
30628
|
xl: "min-h-control-xl gap-1 p-1"
|
|
30620
|
-
}[s.value],
|
|
30621
|
-
return gt(Q, re, z,
|
|
30629
|
+
}[s.value], ne = y.value ? "input-focus border-blue-300" : "";
|
|
30630
|
+
return gt(Q, re, z, ne, i.twContainer);
|
|
30622
30631
|
}), F = N(() => ({
|
|
30623
30632
|
xs: "h-[calc(theme(spacing.control-xs)_-_theme(spacing[0.5])_-_theme(spacing[0.5])_-_2px)]",
|
|
30624
30633
|
sm: "h-[calc(theme(spacing.control-sm)_-_theme(spacing[0.5])_-_theme(spacing[0.5])_-_2px)]",
|
|
@@ -30626,14 +30635,14 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30626
30635
|
lg: "h-[calc(theme(spacing.control-lg)_-_theme(spacing.1)_-_theme(spacing.1)_-_2px)]",
|
|
30627
30636
|
xl: "h-[calc(theme(spacing.control-xl)_-_theme(spacing.1)_-_theme(spacing.1)_-_2px)]"
|
|
30628
30637
|
})[s.value]), P = N(() => {
|
|
30629
|
-
const Q = "grow min-w-[50px] py-0 border-none shadow-none outline-none bg-transparent", re = "focus:border-none focus:shadow-none focus:outline-none focus:ring-0", z = "disabled:cursor-not-allowed",
|
|
30638
|
+
const Q = "grow min-w-[50px] py-0 border-none shadow-none outline-none bg-transparent", re = "focus:border-none focus:shadow-none focus:outline-none focus:ring-0", z = "disabled:cursor-not-allowed", ne = sn[s.value], X = {
|
|
30630
30639
|
xs: "pl-1.5",
|
|
30631
30640
|
sm: "pl-2",
|
|
30632
30641
|
md: "pl-2.5",
|
|
30633
30642
|
lg: "pl-2.5",
|
|
30634
30643
|
xl: "pl-2.5"
|
|
30635
30644
|
}[s.value];
|
|
30636
|
-
return [Q, X, F.value, re, z,
|
|
30645
|
+
return [Q, X, F.value, re, z, ne.fontSize];
|
|
30637
30646
|
}), $ = (Q) => {
|
|
30638
30647
|
const re = "flex items-center rounded border overflow-hidden", z = {
|
|
30639
30648
|
xs: "text-xs",
|
|
@@ -30641,7 +30650,7 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30641
30650
|
md: "text-sm",
|
|
30642
30651
|
lg: "text-base",
|
|
30643
30652
|
xl: "text-base"
|
|
30644
|
-
}[s.value],
|
|
30653
|
+
}[s.value], ne = {
|
|
30645
30654
|
xs: "pl-2",
|
|
30646
30655
|
sm: "pl-2",
|
|
30647
30656
|
md: "pl-3",
|
|
@@ -30651,7 +30660,7 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30651
30660
|
let X = "bg-slate-200 border-slate-300";
|
|
30652
30661
|
b.value && b.value.value == Q.value && (X = "bg-red-200 border-red-300 text-red-800");
|
|
30653
30662
|
const R = i.disabled ? "cursor-not-allowed opacity-60" : "";
|
|
30654
|
-
return gt(re, F.value,
|
|
30663
|
+
return gt(re, F.value, ne, X, R, z);
|
|
30655
30664
|
}, Y = N(() => {
|
|
30656
30665
|
const Q = "flex shrink-0 appearance-none items-center justify-center border-0 bg-transparent outline-none", re = {
|
|
30657
30666
|
xs: "pl-1 pr-2",
|
|
@@ -30692,7 +30701,7 @@ const fI = /* @__PURE__ */ Do(dI), hI = { class: "text-xs text-slate-600" }, cb
|
|
|
30692
30701
|
type: "button",
|
|
30693
30702
|
tabindex: "-1",
|
|
30694
30703
|
class: ce(C(Y)),
|
|
30695
|
-
onClick: (
|
|
30704
|
+
onClick: (ne) => pe(z)
|
|
30696
30705
|
}, " ✕ ", 10, mI)
|
|
30697
30706
|
], 2))), 128))
|
|
30698
30707
|
]),
|
|
@@ -33831,9 +33840,9 @@ mt.prototype = /** @lends Sortable.prototype */
|
|
|
33831
33840
|
lo = r, wl = k;
|
|
33832
33841
|
var H = r.nextElementSibling, V = !1;
|
|
33833
33842
|
V = k === 1;
|
|
33834
|
-
var
|
|
33835
|
-
if (
|
|
33836
|
-
return (
|
|
33843
|
+
var te = Ra(Wt, e, He, i, r, o, t, V);
|
|
33844
|
+
if (te !== !1)
|
|
33845
|
+
return (te === 1 || te === -1) && (V = te === 1), od = !0, setTimeout(uB, 30), y(), V && !H ? e.appendChild(He) : r.parentNode.insertBefore(He, V ? H : r), S && bb(S, 0, D - S.scrollTop), en = He.parentNode, _ !== void 0 && !Da && (Qa = Math.abs(_ - ln(r)[A])), u(), b(!0);
|
|
33837
33846
|
}
|
|
33838
33847
|
if (e.contains(He))
|
|
33839
33848
|
return b(!1);
|
|
@@ -36113,8 +36122,8 @@ var Rb = { exports: {} };
|
|
|
36113
36122
|
} else {
|
|
36114
36123
|
if ("value" in H)
|
|
36115
36124
|
return H.value;
|
|
36116
|
-
var
|
|
36117
|
-
return
|
|
36125
|
+
var te = H.get;
|
|
36126
|
+
return te === void 0 ? void 0 : te.call(B);
|
|
36118
36127
|
}
|
|
36119
36128
|
}, a = i(3), s = u(a), c = i(2), d = u(c), f = i(0), h = u(f), p = i(16), g = u(p), m = i(6), v = u(m), y = i(7), b = u(y);
|
|
36120
36129
|
function u(S) {
|
|
@@ -36157,16 +36166,16 @@ var Rb = { exports: {} };
|
|
|
36157
36166
|
}
|
|
36158
36167
|
}, {
|
|
36159
36168
|
key: "formatAt",
|
|
36160
|
-
value: function(B, H, V,
|
|
36161
|
-
this.format(V,
|
|
36169
|
+
value: function(B, H, V, te) {
|
|
36170
|
+
this.format(V, te);
|
|
36162
36171
|
}
|
|
36163
36172
|
}, {
|
|
36164
36173
|
key: "insertAt",
|
|
36165
36174
|
value: function(B, H, V) {
|
|
36166
36175
|
if (typeof H == "string" && H.endsWith(`
|
|
36167
36176
|
`)) {
|
|
36168
|
-
var
|
|
36169
|
-
this.parent.insertBefore(
|
|
36177
|
+
var te = h.default.create(T.blotName);
|
|
36178
|
+
this.parent.insertBefore(te, B === 0 ? this : this.next), te.insertAt(0, H.slice(0, -1));
|
|
36170
36179
|
} else
|
|
36171
36180
|
l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "insertAt", this).call(this, B, H, V);
|
|
36172
36181
|
}
|
|
@@ -36195,8 +36204,8 @@ var Rb = { exports: {} };
|
|
|
36195
36204
|
}
|
|
36196
36205
|
}, {
|
|
36197
36206
|
key: "formatAt",
|
|
36198
|
-
value: function(B, H, V,
|
|
36199
|
-
H <= 0 || (h.default.query(V, h.default.Scope.BLOCK) ? B + H === this.length() && this.format(V,
|
|
36207
|
+
value: function(B, H, V, te) {
|
|
36208
|
+
H <= 0 || (h.default.query(V, h.default.Scope.BLOCK) ? B + H === this.length() && this.format(V, te) : l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "formatAt", this).call(this, B, Math.min(H, this.length() - B - 1), V, te), this.cache = {});
|
|
36200
36209
|
}
|
|
36201
36210
|
}, {
|
|
36202
36211
|
key: "insertAt",
|
|
@@ -36204,11 +36213,11 @@ var Rb = { exports: {} };
|
|
|
36204
36213
|
if (V != null)
|
|
36205
36214
|
return l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "insertAt", this).call(this, B, H, V);
|
|
36206
36215
|
if (H.length !== 0) {
|
|
36207
|
-
var
|
|
36208
|
-
`), pe =
|
|
36216
|
+
var te = H.split(`
|
|
36217
|
+
`), pe = te.shift();
|
|
36209
36218
|
pe.length > 0 && (B < this.length() - 1 || this.children.tail == null ? l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "insertAt", this).call(this, Math.min(B, this.length() - 1), pe) : this.children.tail.insertAt(this.children.tail.length(), pe), this.cache = {});
|
|
36210
36219
|
var le = this;
|
|
36211
|
-
|
|
36220
|
+
te.reduce(function(F, P) {
|
|
36212
36221
|
return le = le.split(F, !0), le.insertAt(0, P), P.length;
|
|
36213
36222
|
}, B + pe.length);
|
|
36214
36223
|
}
|
|
@@ -36252,8 +36261,8 @@ var Rb = { exports: {} };
|
|
|
36252
36261
|
var V = this.clone();
|
|
36253
36262
|
return B === 0 ? (this.parent.insertBefore(V, this), this) : (this.parent.insertBefore(V, this.next), V);
|
|
36254
36263
|
} else {
|
|
36255
|
-
var
|
|
36256
|
-
return this.cache = {},
|
|
36264
|
+
var te = l(D.prototype.__proto__ || Object.getPrototypeOf(D.prototype), "split", this).call(this, B, H);
|
|
36265
|
+
return this.cache = {}, te;
|
|
36257
36266
|
}
|
|
36258
36267
|
}
|
|
36259
36268
|
}]), D;
|
|
@@ -36279,7 +36288,7 @@ var Rb = { exports: {} };
|
|
|
36279
36288
|
function le(F, P) {
|
|
36280
36289
|
var $ = [], Y = !0, Q = !1, re = void 0;
|
|
36281
36290
|
try {
|
|
36282
|
-
for (var z = F[Symbol.iterator](),
|
|
36291
|
+
for (var z = F[Symbol.iterator](), ne; !(Y = (ne = z.next()).done) && ($.push(ne.value), !(P && $.length === P)); Y = !0)
|
|
36283
36292
|
;
|
|
36284
36293
|
} catch (X) {
|
|
36285
36294
|
Q = !0, re = X;
|
|
@@ -36364,7 +36373,7 @@ var Rb = { exports: {} };
|
|
|
36364
36373
|
}), this.editor = new f.default(this.scroll), this.selection = new u.default(this.scroll, this.emitter), this.theme = new this.options.theme(this, this.options), this.keyboard = this.theme.addModule("keyboard"), this.clipboard = this.theme.addModule("clipboard"), this.history = this.theme.addModule("history"), this.theme.init(), this.emitter.on(p.default.events.EDITOR_CHANGE, function(re) {
|
|
36365
36374
|
re === p.default.events.TEXT_CHANGE && P.root.classList.toggle("ql-blank", P.editor.isBlank());
|
|
36366
36375
|
}), this.emitter.on(p.default.events.SCROLL_UPDATE, function(re, z) {
|
|
36367
|
-
var
|
|
36376
|
+
var ne = P.selection.lastRange, X = ne && ne.length === 0 ? ne.index : void 0;
|
|
36368
36377
|
V.call(P, function() {
|
|
36369
36378
|
return P.editor.update(null, z, X);
|
|
36370
36379
|
}, re);
|
|
@@ -36390,7 +36399,7 @@ var Rb = { exports: {} };
|
|
|
36390
36399
|
}, {
|
|
36391
36400
|
key: "deleteText",
|
|
36392
36401
|
value: function(P, $, Y) {
|
|
36393
|
-
var Q = this, re =
|
|
36402
|
+
var Q = this, re = te(P, $, Y), z = l(re, 4);
|
|
36394
36403
|
return P = z[0], $ = z[1], Y = z[3], V.call(this, function() {
|
|
36395
36404
|
return Q.editor.deleteText(P, $);
|
|
36396
36405
|
}, Y, P, -1 * $);
|
|
@@ -36433,17 +36442,17 @@ var Rb = { exports: {} };
|
|
|
36433
36442
|
}, {
|
|
36434
36443
|
key: "formatLine",
|
|
36435
36444
|
value: function(P, $, Y, Q, re) {
|
|
36436
|
-
var z = this,
|
|
36437
|
-
return P = R[0], $ = R[1],
|
|
36438
|
-
return z.editor.formatLine(P, $,
|
|
36445
|
+
var z = this, ne = void 0, X = te(P, $, Y, Q, re), R = l(X, 4);
|
|
36446
|
+
return P = R[0], $ = R[1], ne = R[2], re = R[3], V.call(this, function() {
|
|
36447
|
+
return z.editor.formatLine(P, $, ne);
|
|
36439
36448
|
}, re, P, 0);
|
|
36440
36449
|
}
|
|
36441
36450
|
}, {
|
|
36442
36451
|
key: "formatText",
|
|
36443
36452
|
value: function(P, $, Y, Q, re) {
|
|
36444
|
-
var z = this,
|
|
36445
|
-
return P = R[0], $ = R[1],
|
|
36446
|
-
return z.editor.formatText(P, $,
|
|
36453
|
+
var z = this, ne = void 0, X = te(P, $, Y, Q, re), R = l(X, 4);
|
|
36454
|
+
return P = R[0], $ = R[1], ne = R[2], re = R[3], V.call(this, function() {
|
|
36455
|
+
return z.editor.formatText(P, $, ne);
|
|
36447
36456
|
}, re, P, 0);
|
|
36448
36457
|
}
|
|
36449
36458
|
}, {
|
|
@@ -36464,7 +36473,7 @@ var Rb = { exports: {} };
|
|
|
36464
36473
|
}, {
|
|
36465
36474
|
key: "getContents",
|
|
36466
36475
|
value: function() {
|
|
36467
|
-
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, Y =
|
|
36476
|
+
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, Y = te(P, $), Q = l(Y, 2);
|
|
36468
36477
|
return P = Q[0], $ = Q[1], this.editor.getContents(P, $);
|
|
36469
36478
|
}
|
|
36470
36479
|
}, {
|
|
@@ -36513,7 +36522,7 @@ var Rb = { exports: {} };
|
|
|
36513
36522
|
}, {
|
|
36514
36523
|
key: "getText",
|
|
36515
36524
|
value: function() {
|
|
36516
|
-
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, Y =
|
|
36525
|
+
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, Y = te(P, $), Q = l(Y, 2);
|
|
36517
36526
|
return P = Q[0], $ = Q[1], this.editor.getText(P, $);
|
|
36518
36527
|
}
|
|
36519
36528
|
}, {
|
|
@@ -36532,9 +36541,9 @@ var Rb = { exports: {} };
|
|
|
36532
36541
|
}, {
|
|
36533
36542
|
key: "insertText",
|
|
36534
36543
|
value: function(P, $, Y, Q, re) {
|
|
36535
|
-
var z = this,
|
|
36536
|
-
return P = R[0],
|
|
36537
|
-
return z.editor.insertText(P, $,
|
|
36544
|
+
var z = this, ne = void 0, X = te(P, 0, Y, Q, re), R = l(X, 4);
|
|
36545
|
+
return P = R[0], ne = R[2], re = R[3], V.call(this, function() {
|
|
36546
|
+
return z.editor.insertText(P, $, ne);
|
|
36538
36547
|
}, re, P, $.length);
|
|
36539
36548
|
}
|
|
36540
36549
|
}, {
|
|
@@ -36565,7 +36574,7 @@ var Rb = { exports: {} };
|
|
|
36565
36574
|
}, {
|
|
36566
36575
|
key: "removeFormat",
|
|
36567
36576
|
value: function(P, $, Y) {
|
|
36568
|
-
var Q = this, re =
|
|
36577
|
+
var Q = this, re = te(P, $, Y), z = l(re, 4);
|
|
36569
36578
|
return P = z[0], $ = z[1], Y = z[3], V.call(this, function() {
|
|
36570
36579
|
return Q.editor.removeFormat(P, $);
|
|
36571
36580
|
}, Y, P);
|
|
@@ -36581,8 +36590,8 @@ var Rb = { exports: {} };
|
|
|
36581
36590
|
var $ = this, Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : p.default.sources.API;
|
|
36582
36591
|
return V.call(this, function() {
|
|
36583
36592
|
P = new c.default(P);
|
|
36584
|
-
var Q = $.getLength(), re = $.editor.deleteText(0, Q), z = $.editor.applyDelta(P),
|
|
36585
|
-
|
|
36593
|
+
var Q = $.getLength(), re = $.editor.deleteText(0, Q), z = $.editor.applyDelta(P), ne = z.ops[z.ops.length - 1];
|
|
36594
|
+
ne != null && typeof ne.insert == "string" && ne.insert[ne.insert.length - 1] === `
|
|
36586
36595
|
` && ($.editor.deleteText($.getLength() - 1, 1), z.delete(1));
|
|
36587
36596
|
var X = re.compose(z);
|
|
36588
36597
|
return X;
|
|
@@ -36594,7 +36603,7 @@ var Rb = { exports: {} };
|
|
|
36594
36603
|
if (P == null)
|
|
36595
36604
|
this.selection.setRange(null, $ || le.sources.API);
|
|
36596
36605
|
else {
|
|
36597
|
-
var Q =
|
|
36606
|
+
var Q = te(P, $, Y), re = l(Q, 4);
|
|
36598
36607
|
P = re[0], $ = re[1], Y = re[3], this.selection.setRange(new b.Range(P, $), Y), Y !== p.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
36599
36608
|
}
|
|
36600
36609
|
}
|
|
@@ -36670,15 +36679,15 @@ var Rb = { exports: {} };
|
|
|
36670
36679
|
return new c.default();
|
|
36671
36680
|
var Y = P == null ? null : this.getSelection(), Q = this.editor.delta, re = le();
|
|
36672
36681
|
if (Y != null && (P === !0 && (P = Y.index), $ == null ? Y = pe(Y, re, F) : $ !== 0 && (Y = pe(Y, P, $, F)), this.setSelection(Y, p.default.sources.SILENT)), re.length() > 0) {
|
|
36673
|
-
var z,
|
|
36674
|
-
if ((z = this.emitter).emit.apply(z, [p.default.events.EDITOR_CHANGE].concat(
|
|
36682
|
+
var z, ne = [p.default.events.TEXT_CHANGE, re, Q, F];
|
|
36683
|
+
if ((z = this.emitter).emit.apply(z, [p.default.events.EDITOR_CHANGE].concat(ne)), F !== p.default.sources.SILENT) {
|
|
36675
36684
|
var X;
|
|
36676
|
-
(X = this.emitter).emit.apply(X,
|
|
36685
|
+
(X = this.emitter).emit.apply(X, ne);
|
|
36677
36686
|
}
|
|
36678
36687
|
}
|
|
36679
36688
|
return re;
|
|
36680
36689
|
}
|
|
36681
|
-
function
|
|
36690
|
+
function te(le, F, P, $, Y) {
|
|
36682
36691
|
var Q = {};
|
|
36683
36692
|
return typeof le.index == "number" && typeof le.length == "number" ? typeof F != "number" ? (Y = $, $ = P, P = F, F = le.length, le = le.index) : (F = le.length, le = le.index) : typeof F != "number" && (Y = $, $ = P, P = F, F = 0), (typeof P > "u" ? "undefined" : o(P)) === "object" ? (Q = P, Y = $) : typeof P == "string" && ($ != null ? Q[P] = $ : Y = P), Y = Y || p.default.sources.API, [le, F, Q, Y];
|
|
36684
36693
|
}
|
|
@@ -36692,14 +36701,14 @@ var Rb = { exports: {} };
|
|
|
36692
36701
|
}), z = l(re, 2);
|
|
36693
36702
|
Y = z[0], Q = z[1];
|
|
36694
36703
|
} else {
|
|
36695
|
-
var
|
|
36704
|
+
var ne = [le.index, le.index + le.length].map(function(R) {
|
|
36696
36705
|
return R < F || R === F && $ === p.default.sources.USER ? R : P >= 0 ? R + P : Math.max(F, R + P);
|
|
36697
|
-
}), X = l(
|
|
36706
|
+
}), X = l(ne, 2);
|
|
36698
36707
|
Y = X[0], Q = X[1];
|
|
36699
36708
|
}
|
|
36700
36709
|
return new b.Range(Y, Q - Y);
|
|
36701
36710
|
}
|
|
36702
|
-
r.expandConfig = H, r.overload =
|
|
36711
|
+
r.expandConfig = H, r.overload = te, r.default = B;
|
|
36703
36712
|
},
|
|
36704
36713
|
/* 6 */
|
|
36705
36714
|
/***/
|
|
@@ -37049,8 +37058,8 @@ var Rb = { exports: {} };
|
|
|
37049
37058
|
try {
|
|
37050
37059
|
for (var H = T[Symbol.iterator](), V; !(D = (V = H.next()).done) && (S.push(V.value), !(A && S.length === A)); D = !0)
|
|
37051
37060
|
;
|
|
37052
|
-
} catch (
|
|
37053
|
-
M = !0, B =
|
|
37061
|
+
} catch (te) {
|
|
37062
|
+
M = !0, B = te;
|
|
37054
37063
|
} finally {
|
|
37055
37064
|
try {
|
|
37056
37065
|
!D && H.return && H.return();
|
|
@@ -37146,8 +37155,8 @@ var Rb = { exports: {} };
|
|
|
37146
37155
|
if (D !== 0 && !(f.default.query(M, f.default.Scope.BLOCK) == null || M === this.statics.blotName && B === this.statics.formats(this.domNode))) {
|
|
37147
37156
|
var H = this.newlineIndex(S);
|
|
37148
37157
|
if (!(H < 0 || H >= S + D)) {
|
|
37149
|
-
var V = this.newlineIndex(S, !0) + 1,
|
|
37150
|
-
pe.format(M, B), le instanceof T && le.formatAt(0, S - V + D -
|
|
37158
|
+
var V = this.newlineIndex(S, !0) + 1, te = H - V + 1, pe = this.isolate(V, te), le = pe.next;
|
|
37159
|
+
pe.format(M, B), le instanceof T && le.formatAt(0, S - V + D - te, M, B);
|
|
37151
37160
|
}
|
|
37152
37161
|
}
|
|
37153
37162
|
}
|
|
@@ -37155,8 +37164,8 @@ var Rb = { exports: {} };
|
|
|
37155
37164
|
key: "insertAt",
|
|
37156
37165
|
value: function(S, D, M) {
|
|
37157
37166
|
if (M == null) {
|
|
37158
|
-
var B = this.descendant(y.default, S), H = o(B, 2), V = H[0],
|
|
37159
|
-
V.insertAt(
|
|
37167
|
+
var B = this.descendant(y.default, S), H = o(B, 2), V = H[0], te = H[1];
|
|
37168
|
+
V.insertAt(te, D);
|
|
37160
37169
|
}
|
|
37161
37170
|
}
|
|
37162
37171
|
}, {
|
|
@@ -37223,7 +37232,7 @@ var Rb = { exports: {} };
|
|
|
37223
37232
|
function le(F, P) {
|
|
37224
37233
|
var $ = [], Y = !0, Q = !1, re = void 0;
|
|
37225
37234
|
try {
|
|
37226
|
-
for (var z = F[Symbol.iterator](),
|
|
37235
|
+
for (var z = F[Symbol.iterator](), ne; !(Y = (ne = z.next()).done) && ($.push(ne.value), !(P && $.length === P)); Y = !0)
|
|
37227
37236
|
;
|
|
37228
37237
|
} catch (X) {
|
|
37229
37238
|
Q = !0, re = X;
|
|
@@ -37276,7 +37285,7 @@ var Rb = { exports: {} };
|
|
|
37276
37285
|
this.scroll.update();
|
|
37277
37286
|
var Q = this.scroll.length();
|
|
37278
37287
|
return this.scroll.batchStart(), P = pe(P), P.reduce(function(re, z) {
|
|
37279
|
-
var
|
|
37288
|
+
var ne = z.retain || z.delete || z.insert.length || 1, X = z.attributes || {};
|
|
37280
37289
|
if (z.insert != null) {
|
|
37281
37290
|
if (typeof z.insert == "string") {
|
|
37282
37291
|
var R = z.insert;
|
|
@@ -37295,11 +37304,11 @@ var Rb = { exports: {} };
|
|
|
37295
37304
|
return re;
|
|
37296
37305
|
$.scroll.insertAt(re, xe, z.insert[xe]);
|
|
37297
37306
|
}
|
|
37298
|
-
Q +=
|
|
37307
|
+
Q += ne;
|
|
37299
37308
|
}
|
|
37300
37309
|
return Object.keys(X).forEach(function(Se) {
|
|
37301
|
-
$.scroll.formatAt(re,
|
|
37302
|
-
}), re +
|
|
37310
|
+
$.scroll.formatAt(re, ne, Se, X[Se]);
|
|
37311
|
+
}), re + ne;
|
|
37303
37312
|
}, 0), P.reduce(function(re, z) {
|
|
37304
37313
|
return typeof z.delete == "number" ? ($.scroll.deleteAt(re, z.delete), re) : re + (z.retain || z.insert.length || 1);
|
|
37305
37314
|
}, 0), this.scroll.batchEnd(), this.update(P);
|
|
@@ -37315,16 +37324,16 @@ var Rb = { exports: {} };
|
|
|
37315
37324
|
var Y = this, Q = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
37316
37325
|
return this.scroll.update(), Object.keys(Q).forEach(function(re) {
|
|
37317
37326
|
if (!(Y.scroll.whitelist != null && !Y.scroll.whitelist[re])) {
|
|
37318
|
-
var z = Y.scroll.lines(P, Math.max($, 1)),
|
|
37327
|
+
var z = Y.scroll.lines(P, Math.max($, 1)), ne = $;
|
|
37319
37328
|
z.forEach(function(X) {
|
|
37320
37329
|
var R = X.length();
|
|
37321
37330
|
if (!(X instanceof m.default))
|
|
37322
37331
|
X.format(re, Q[re]);
|
|
37323
37332
|
else {
|
|
37324
|
-
var q = P - X.offset(Y.scroll), J = X.newlineIndex(q +
|
|
37333
|
+
var q = P - X.offset(Y.scroll), J = X.newlineIndex(q + ne) - q + 1;
|
|
37325
37334
|
X.formatAt(q, J, re, Q[re]);
|
|
37326
37335
|
}
|
|
37327
|
-
|
|
37336
|
+
ne -= R;
|
|
37328
37337
|
});
|
|
37329
37338
|
}
|
|
37330
37339
|
}), this.scroll.optimize(), this.update(new c.default().retain(P).retain($, (0, _.default)(Q)));
|
|
@@ -37354,19 +37363,19 @@ var Rb = { exports: {} };
|
|
|
37354
37363
|
value: function(P) {
|
|
37355
37364
|
var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, Y = [], Q = [];
|
|
37356
37365
|
$ === 0 ? this.scroll.path(P).forEach(function(z) {
|
|
37357
|
-
var
|
|
37366
|
+
var ne = l(z, 1), X = ne[0];
|
|
37358
37367
|
X instanceof u.default ? Y.push(X) : X instanceof p.default.Leaf && Q.push(X);
|
|
37359
37368
|
}) : (Y = this.scroll.lines(P, $), Q = this.scroll.descendants(p.default.Leaf, P, $));
|
|
37360
37369
|
var re = [Y, Q].map(function(z) {
|
|
37361
37370
|
if (z.length === 0)
|
|
37362
37371
|
return {};
|
|
37363
|
-
for (var
|
|
37372
|
+
for (var ne = (0, b.bubbleFormats)(z.shift()); Object.keys(ne).length > 0; ) {
|
|
37364
37373
|
var X = z.shift();
|
|
37365
37374
|
if (X == null)
|
|
37366
|
-
return
|
|
37367
|
-
|
|
37375
|
+
return ne;
|
|
37376
|
+
ne = te((0, b.bubbleFormats)(X), ne);
|
|
37368
37377
|
}
|
|
37369
|
-
return
|
|
37378
|
+
return ne;
|
|
37370
37379
|
});
|
|
37371
37380
|
return S.default.apply(S.default, re);
|
|
37372
37381
|
}
|
|
@@ -37407,8 +37416,8 @@ var Rb = { exports: {} };
|
|
|
37407
37416
|
}, {
|
|
37408
37417
|
key: "removeFormat",
|
|
37409
37418
|
value: function(P, $) {
|
|
37410
|
-
var Y = this.getText(P, $), Q = this.scroll.line(P + $), re = l(Q, 2), z = re[0],
|
|
37411
|
-
z != null && (z instanceof m.default ? X = z.newlineIndex(
|
|
37419
|
+
var Y = this.getText(P, $), Q = this.scroll.line(P + $), re = l(Q, 2), z = re[0], ne = re[1], X = 0, R = new c.default();
|
|
37420
|
+
z != null && (z instanceof m.default ? X = z.newlineIndex(ne) - ne + 1 : X = z.length() - ne, R = z.delta().slice(ne, ne + X - 1).insert(`
|
|
37412
37421
|
`));
|
|
37413
37422
|
var q = this.getContents(P, $ + X), J = q.diff(new c.default().insert(Y).concat(R)), me = new c.default().retain(P).concat(J);
|
|
37414
37423
|
return this.applyDelta(me);
|
|
@@ -37418,7 +37427,7 @@ var Rb = { exports: {} };
|
|
|
37418
37427
|
value: function(P) {
|
|
37419
37428
|
var $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], Y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, Q = this.delta;
|
|
37420
37429
|
if ($.length === 1 && $[0].type === "characterData" && $[0].target.data.match(H) && p.default.find($[0].target)) {
|
|
37421
|
-
var re = p.default.find($[0].target), z = (0, b.bubbleFormats)(re),
|
|
37430
|
+
var re = p.default.find($[0].target), z = (0, b.bubbleFormats)(re), ne = re.offset(this.scroll), X = $[0].oldValue.replace(y.default.CONTENTS, ""), R = new c.default().insert(X), q = new c.default().insert(re.value()), J = new c.default().retain(ne).concat(R.diff(q, Y));
|
|
37422
37431
|
P = J.reduce(function(me, we) {
|
|
37423
37432
|
return we.insert ? me.insert(we.insert, z) : me.push(we);
|
|
37424
37433
|
}, new c.default()), this.delta = Q.compose(P);
|
|
@@ -37428,7 +37437,7 @@ var Rb = { exports: {} };
|
|
|
37428
37437
|
}
|
|
37429
37438
|
}]), le;
|
|
37430
37439
|
}();
|
|
37431
|
-
function
|
|
37440
|
+
function te(le, F) {
|
|
37432
37441
|
return Object.keys(F).reduce(function(P, $) {
|
|
37433
37442
|
return le[$] == null || (F[$] === le[$] ? P[$] = F[$] : Array.isArray(F[$]) ? F[$].indexOf(le[$]) < 0 && (P[$] = F[$].concat([le[$]])) : P[$] = [F[$], le[$]]), P;
|
|
37434
37443
|
}, {});
|
|
@@ -37462,8 +37471,8 @@ var Rb = { exports: {} };
|
|
|
37462
37471
|
try {
|
|
37463
37472
|
for (var H = T[Symbol.iterator](), V; !(D = (V = H.next()).done) && (S.push(V.value), !(A && S.length === A)); D = !0)
|
|
37464
37473
|
;
|
|
37465
|
-
} catch (
|
|
37466
|
-
M = !0, B =
|
|
37474
|
+
} catch (te) {
|
|
37475
|
+
M = !0, B = te;
|
|
37467
37476
|
} finally {
|
|
37468
37477
|
try {
|
|
37469
37478
|
!D && H.return && H.return();
|
|
@@ -37529,8 +37538,8 @@ var Rb = { exports: {} };
|
|
|
37529
37538
|
}
|
|
37530
37539
|
}), this.emitter.on(g.default.events.SCROLL_OPTIMIZE, function(D, M) {
|
|
37531
37540
|
if (M.range) {
|
|
37532
|
-
var B = M.range, H = B.startNode, V = B.startOffset,
|
|
37533
|
-
S.setNativeRange(H, V,
|
|
37541
|
+
var B = M.range, H = B.startNode, V = B.startOffset, te = B.endNode, pe = B.endOffset;
|
|
37542
|
+
S.setNativeRange(H, V, te, pe);
|
|
37534
37543
|
}
|
|
37535
37544
|
}), this.update(g.default.sources.SILENT);
|
|
37536
37545
|
}
|
|
@@ -37593,22 +37602,22 @@ var Rb = { exports: {} };
|
|
|
37593
37602
|
value: function(A) {
|
|
37594
37603
|
var S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, D = this.scroll.length();
|
|
37595
37604
|
A = Math.min(A, D - 1), S = Math.min(A + S, D - 1) - A;
|
|
37596
|
-
var M = void 0, B = this.scroll.leaf(A), H = o(B, 2), V = H[0],
|
|
37605
|
+
var M = void 0, B = this.scroll.leaf(A), H = o(B, 2), V = H[0], te = H[1];
|
|
37597
37606
|
if (V == null)
|
|
37598
37607
|
return null;
|
|
37599
|
-
var pe = V.position(
|
|
37600
|
-
M = le[0],
|
|
37608
|
+
var pe = V.position(te, !0), le = o(pe, 2);
|
|
37609
|
+
M = le[0], te = le[1];
|
|
37601
37610
|
var F = document.createRange();
|
|
37602
37611
|
if (S > 0) {
|
|
37603
|
-
F.setStart(M,
|
|
37612
|
+
F.setStart(M, te);
|
|
37604
37613
|
var P = this.scroll.leaf(A + S), $ = o(P, 2);
|
|
37605
|
-
if (V = $[0],
|
|
37614
|
+
if (V = $[0], te = $[1], V == null)
|
|
37606
37615
|
return null;
|
|
37607
|
-
var Y = V.position(
|
|
37608
|
-
return M = Q[0],
|
|
37616
|
+
var Y = V.position(te, !0), Q = o(Y, 2);
|
|
37617
|
+
return M = Q[0], te = Q[1], F.setEnd(M, te), F.getBoundingClientRect();
|
|
37609
37618
|
} else {
|
|
37610
37619
|
var re = "left", z = void 0;
|
|
37611
|
-
return M instanceof Text ? (
|
|
37620
|
+
return M instanceof Text ? (te < M.data.length ? (F.setStart(M, te), F.setEnd(M, te + 1)) : (F.setStart(M, te - 1), F.setEnd(M, te), re = "right"), z = F.getBoundingClientRect()) : (z = V.domNode.getBoundingClientRect(), te > 0 && (re = "right")), {
|
|
37612
37621
|
bottom: z.top + z.height,
|
|
37613
37622
|
height: z.height,
|
|
37614
37623
|
left: z[re],
|
|
@@ -37650,7 +37659,7 @@ var Rb = { exports: {} };
|
|
|
37650
37659
|
var S = this, D = [[A.start.node, A.start.offset]];
|
|
37651
37660
|
A.native.collapsed || D.push([A.end.node, A.end.offset]);
|
|
37652
37661
|
var M = D.map(function(V) {
|
|
37653
|
-
var
|
|
37662
|
+
var te = o(V, 2), pe = te[0], le = te[1], F = s.default.find(pe, !0), P = F.offset(S.scroll);
|
|
37654
37663
|
return le === 0 ? P : F instanceof s.default.Container ? P + F.length() : P + F.index(pe, le);
|
|
37655
37664
|
}), B = Math.min(Math.max.apply(Math, b(M)), this.scroll.length() - 1), H = Math.min.apply(Math, [B].concat(b(M)));
|
|
37656
37665
|
return new E(H, B - H);
|
|
@@ -37682,8 +37691,8 @@ var Rb = { exports: {} };
|
|
|
37682
37691
|
var S = this, D = A.collapsed ? [A.index] : [A.index, A.index + A.length], M = [], B = this.scroll.length();
|
|
37683
37692
|
return D.forEach(function(H, V) {
|
|
37684
37693
|
H = Math.min(B - 1, H);
|
|
37685
|
-
var
|
|
37686
|
-
|
|
37694
|
+
var te = void 0, pe = S.scroll.leaf(H), le = o(pe, 2), F = le[0], P = le[1], $ = F.position(P, V !== 0), Y = o($, 2);
|
|
37695
|
+
te = Y[0], P = Y[1], M.push(te, P);
|
|
37687
37696
|
}), M.length < 2 && (M = M.concat(M)), M;
|
|
37688
37697
|
}
|
|
37689
37698
|
}, {
|
|
@@ -37693,12 +37702,12 @@ var Rb = { exports: {} };
|
|
|
37693
37702
|
if (S != null) {
|
|
37694
37703
|
var D = this.getBounds(S.index, S.length);
|
|
37695
37704
|
if (D != null) {
|
|
37696
|
-
var M = this.scroll.length() - 1, B = this.scroll.line(Math.min(S.index, M)), H = o(B, 1), V = H[0],
|
|
37705
|
+
var M = this.scroll.length() - 1, B = this.scroll.line(Math.min(S.index, M)), H = o(B, 1), V = H[0], te = V;
|
|
37697
37706
|
if (S.length > 0) {
|
|
37698
37707
|
var pe = this.scroll.line(Math.min(S.index + S.length, M)), le = o(pe, 1);
|
|
37699
|
-
|
|
37708
|
+
te = le[0];
|
|
37700
37709
|
}
|
|
37701
|
-
if (!(V == null ||
|
|
37710
|
+
if (!(V == null || te == null)) {
|
|
37702
37711
|
var F = A.getBoundingClientRect();
|
|
37703
37712
|
D.top < F.top ? A.scrollTop -= F.top - D.top : D.bottom > F.bottom && (A.scrollTop += D.bottom - F.bottom);
|
|
37704
37713
|
}
|
|
@@ -37717,8 +37726,8 @@ var Rb = { exports: {} };
|
|
|
37717
37726
|
var V = (this.getNativeRange() || {}).native;
|
|
37718
37727
|
if (V == null || B || A !== V.startContainer || S !== V.startOffset || D !== V.endContainer || M !== V.endOffset) {
|
|
37719
37728
|
A.tagName == "BR" && (S = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), D.tagName == "BR" && (M = [].indexOf.call(D.parentNode.childNodes, D), D = D.parentNode);
|
|
37720
|
-
var
|
|
37721
|
-
|
|
37729
|
+
var te = document.createRange();
|
|
37730
|
+
te.setStart(A, S), te.setEnd(D, M), H.removeAllRanges(), H.addRange(te);
|
|
37722
37731
|
}
|
|
37723
37732
|
} else
|
|
37724
37733
|
H.removeAllRanges(), this.root.blur(), document.body.focus();
|
|
@@ -37742,10 +37751,10 @@ var Rb = { exports: {} };
|
|
|
37742
37751
|
if (this.lastRange = B, this.lastRange != null && (this.savedRange = this.lastRange), !(0, h.default)(S, this.lastRange)) {
|
|
37743
37752
|
var V;
|
|
37744
37753
|
!this.composing && H != null && H.native.collapsed && H.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
37745
|
-
var
|
|
37746
|
-
if ((V = this.emitter).emit.apply(V, [g.default.events.EDITOR_CHANGE].concat(
|
|
37754
|
+
var te = [g.default.events.SELECTION_CHANGE, (0, d.default)(this.lastRange), (0, d.default)(S), A];
|
|
37755
|
+
if ((V = this.emitter).emit.apply(V, [g.default.events.EDITOR_CHANGE].concat(te)), A !== g.default.sources.SILENT) {
|
|
37747
37756
|
var pe;
|
|
37748
|
-
(pe = this.emitter).emit.apply(pe,
|
|
37757
|
+
(pe = this.emitter).emit.apply(pe, te);
|
|
37749
37758
|
}
|
|
37750
37759
|
}
|
|
37751
37760
|
}
|
|
@@ -38241,15 +38250,15 @@ var Rb = { exports: {} };
|
|
|
38241
38250
|
}
|
|
38242
38251
|
if (Object.getOwnPropertySymbols)
|
|
38243
38252
|
for (var H = Object.getOwnPropertySymbols(x), M = 0; M < H.length; M++) {
|
|
38244
|
-
var V = H[M],
|
|
38245
|
-
|
|
38253
|
+
var V = H[M], te = Object.getOwnPropertyDescriptor(x, V);
|
|
38254
|
+
te && !te.enumerable && !u || (A[V] = _(x[V], T - 1), te.enumerable || Object.defineProperty(A, V, {
|
|
38246
38255
|
enumerable: !1
|
|
38247
38256
|
}));
|
|
38248
38257
|
}
|
|
38249
38258
|
if (u)
|
|
38250
38259
|
for (var pe = Object.getOwnPropertyNames(x), M = 0; M < pe.length; M++) {
|
|
38251
|
-
var le = pe[M],
|
|
38252
|
-
|
|
38260
|
+
var le = pe[M], te = Object.getOwnPropertyDescriptor(x, le);
|
|
38261
|
+
te && te.enumerable || (A[le] = _(x[le], T - 1), Object.defineProperty(A, le, {
|
|
38253
38262
|
enumerable: !1
|
|
38254
38263
|
}));
|
|
38255
38264
|
}
|
|
@@ -38298,13 +38307,13 @@ var Rb = { exports: {} };
|
|
|
38298
38307
|
function A(S, D) {
|
|
38299
38308
|
var M = [], B = !0, H = !1, V = void 0;
|
|
38300
38309
|
try {
|
|
38301
|
-
for (var
|
|
38310
|
+
for (var te = S[Symbol.iterator](), pe; !(B = (pe = te.next()).done) && (M.push(pe.value), !(D && M.length === D)); B = !0)
|
|
38302
38311
|
;
|
|
38303
38312
|
} catch (le) {
|
|
38304
38313
|
H = !0, V = le;
|
|
38305
38314
|
} finally {
|
|
38306
38315
|
try {
|
|
38307
|
-
!B &&
|
|
38316
|
+
!B && te.return && te.return();
|
|
38308
38317
|
} finally {
|
|
38309
38318
|
if (H)
|
|
38310
38319
|
throw V;
|
|
@@ -38385,15 +38394,15 @@ var Rb = { exports: {} };
|
|
|
38385
38394
|
}, {
|
|
38386
38395
|
key: "deleteAt",
|
|
38387
38396
|
value: function(M, B) {
|
|
38388
|
-
var H = this.line(M), V = o(H, 2),
|
|
38389
|
-
if (a(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "deleteAt", this).call(this, M, B), P != null &&
|
|
38390
|
-
if (
|
|
38397
|
+
var H = this.line(M), V = o(H, 2), te = V[0], pe = V[1], le = this.line(M + B), F = o(le, 1), P = F[0];
|
|
38398
|
+
if (a(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "deleteAt", this).call(this, M, B), P != null && te !== P && pe > 0) {
|
|
38399
|
+
if (te instanceof h.BlockEmbed || P instanceof h.BlockEmbed) {
|
|
38391
38400
|
this.optimize();
|
|
38392
38401
|
return;
|
|
38393
38402
|
}
|
|
38394
|
-
if (
|
|
38395
|
-
var $ =
|
|
38396
|
-
if ($ > -1 && (
|
|
38403
|
+
if (te instanceof y.default) {
|
|
38404
|
+
var $ = te.newlineIndex(te.length(), !0);
|
|
38405
|
+
if ($ > -1 && (te = te.split($ + 1), te === P)) {
|
|
38397
38406
|
this.optimize();
|
|
38398
38407
|
return;
|
|
38399
38408
|
}
|
|
@@ -38402,7 +38411,7 @@ var Rb = { exports: {} };
|
|
|
38402
38411
|
Y > -1 && P.split(Y + 1);
|
|
38403
38412
|
}
|
|
38404
38413
|
var Q = P.children.head instanceof m.default ? null : P.children.head;
|
|
38405
|
-
|
|
38414
|
+
te.moveChildren(P, Q), te.remove();
|
|
38406
38415
|
}
|
|
38407
38416
|
this.optimize();
|
|
38408
38417
|
}
|
|
@@ -38427,8 +38436,8 @@ var Rb = { exports: {} };
|
|
|
38427
38436
|
this.appendChild(V), H == null && B.endsWith(`
|
|
38428
38437
|
`) && (B = B.slice(0, -1)), V.insertAt(0, B, H);
|
|
38429
38438
|
} else {
|
|
38430
|
-
var
|
|
38431
|
-
this.appendChild(
|
|
38439
|
+
var te = c.default.create(B, H);
|
|
38440
|
+
this.appendChild(te);
|
|
38432
38441
|
}
|
|
38433
38442
|
else
|
|
38434
38443
|
a(S.prototype.__proto__ || Object.getPrototypeOf(S.prototype), "insertAt", this).call(this, M, B, H);
|
|
@@ -38457,9 +38466,9 @@ var Rb = { exports: {} };
|
|
|
38457
38466
|
}, {
|
|
38458
38467
|
key: "lines",
|
|
38459
38468
|
value: function() {
|
|
38460
|
-
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, H = function V(
|
|
38469
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, H = function V(te, pe, le) {
|
|
38461
38470
|
var F = [], P = le;
|
|
38462
|
-
return
|
|
38471
|
+
return te.children.forEachAt(pe, le, function($, Y, Q) {
|
|
38463
38472
|
x($) ? F.push($) : $ instanceof c.default.Container && (F = F.concat(V($, Y, P))), P -= Q;
|
|
38464
38473
|
}), F;
|
|
38465
38474
|
};
|
|
@@ -38499,10 +38508,10 @@ var Rb = { exports: {} };
|
|
|
38499
38508
|
} : function(z) {
|
|
38500
38509
|
return z && typeof Symbol == "function" && z.constructor === Symbol && z !== Symbol.prototype ? "symbol" : typeof z;
|
|
38501
38510
|
}, l = function() {
|
|
38502
|
-
function z(
|
|
38511
|
+
function z(ne, X) {
|
|
38503
38512
|
var R = [], q = !0, J = !1, me = void 0;
|
|
38504
38513
|
try {
|
|
38505
|
-
for (var we =
|
|
38514
|
+
for (var we = ne[Symbol.iterator](), Me; !(q = (Me = we.next()).done) && (R.push(Me.value), !(X && R.length === X)); q = !0)
|
|
38506
38515
|
;
|
|
38507
38516
|
} catch (Fe) {
|
|
38508
38517
|
J = !0, me = Fe;
|
|
@@ -38516,46 +38525,46 @@ var Rb = { exports: {} };
|
|
|
38516
38525
|
}
|
|
38517
38526
|
return R;
|
|
38518
38527
|
}
|
|
38519
|
-
return function(
|
|
38520
|
-
if (Array.isArray(
|
|
38521
|
-
return
|
|
38522
|
-
if (Symbol.iterator in Object(
|
|
38523
|
-
return z(
|
|
38528
|
+
return function(ne, X) {
|
|
38529
|
+
if (Array.isArray(ne))
|
|
38530
|
+
return ne;
|
|
38531
|
+
if (Symbol.iterator in Object(ne))
|
|
38532
|
+
return z(ne, X);
|
|
38524
38533
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
38525
38534
|
};
|
|
38526
38535
|
}(), a = function() {
|
|
38527
|
-
function z(
|
|
38536
|
+
function z(ne, X) {
|
|
38528
38537
|
for (var R = 0; R < X.length; R++) {
|
|
38529
38538
|
var q = X[R];
|
|
38530
|
-
q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(
|
|
38539
|
+
q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(ne, q.key, q);
|
|
38531
38540
|
}
|
|
38532
38541
|
}
|
|
38533
|
-
return function(
|
|
38534
|
-
return X && z(
|
|
38542
|
+
return function(ne, X, R) {
|
|
38543
|
+
return X && z(ne.prototype, X), R && z(ne, R), ne;
|
|
38535
38544
|
};
|
|
38536
38545
|
}(), s = i(21), c = A(s), d = i(11), f = A(d), h = i(3), p = A(h), g = i(2), m = A(g), v = i(20), y = A(v), b = i(0), u = A(b), w = i(5), E = A(w), k = i(10), _ = A(k), x = i(9), T = A(x);
|
|
38537
38546
|
function A(z) {
|
|
38538
38547
|
return z && z.__esModule ? z : { default: z };
|
|
38539
38548
|
}
|
|
38540
|
-
function S(z,
|
|
38541
|
-
return
|
|
38549
|
+
function S(z, ne, X) {
|
|
38550
|
+
return ne in z ? Object.defineProperty(z, ne, { value: X, enumerable: !0, configurable: !0, writable: !0 }) : z[ne] = X, z;
|
|
38542
38551
|
}
|
|
38543
|
-
function D(z,
|
|
38544
|
-
if (!(z instanceof
|
|
38552
|
+
function D(z, ne) {
|
|
38553
|
+
if (!(z instanceof ne))
|
|
38545
38554
|
throw new TypeError("Cannot call a class as a function");
|
|
38546
38555
|
}
|
|
38547
|
-
function M(z,
|
|
38556
|
+
function M(z, ne) {
|
|
38548
38557
|
if (!z)
|
|
38549
38558
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
38550
|
-
return
|
|
38559
|
+
return ne && (typeof ne == "object" || typeof ne == "function") ? ne : z;
|
|
38551
38560
|
}
|
|
38552
|
-
function B(z,
|
|
38553
|
-
if (typeof
|
|
38554
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
38555
|
-
z.prototype = Object.create(
|
|
38561
|
+
function B(z, ne) {
|
|
38562
|
+
if (typeof ne != "function" && ne !== null)
|
|
38563
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof ne);
|
|
38564
|
+
z.prototype = Object.create(ne && ne.prototype, { constructor: { value: z, enumerable: !1, writable: !0, configurable: !0 } }), ne && (Object.setPrototypeOf ? Object.setPrototypeOf(z, ne) : z.__proto__ = ne);
|
|
38556
38565
|
}
|
|
38557
|
-
var H = (0, _.default)("quill:keyboard"), V = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey",
|
|
38558
|
-
B(
|
|
38566
|
+
var H = (0, _.default)("quill:keyboard"), V = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", te = function(z) {
|
|
38567
|
+
B(ne, z), a(ne, null, [{
|
|
38559
38568
|
key: "match",
|
|
38560
38569
|
value: function(R, q) {
|
|
38561
38570
|
return q = re(q), ["altKey", "ctrlKey", "metaKey", "shiftKey"].some(function(J) {
|
|
@@ -38563,15 +38572,15 @@ var Rb = { exports: {} };
|
|
|
38563
38572
|
}) ? !1 : q.key === (R.which || R.keyCode);
|
|
38564
38573
|
}
|
|
38565
38574
|
}]);
|
|
38566
|
-
function
|
|
38567
|
-
D(this,
|
|
38568
|
-
var q = M(this, (
|
|
38575
|
+
function ne(X, R) {
|
|
38576
|
+
D(this, ne);
|
|
38577
|
+
var q = M(this, (ne.__proto__ || Object.getPrototypeOf(ne)).call(this, X, R));
|
|
38569
38578
|
return q.bindings = {}, Object.keys(q.options.bindings).forEach(function(J) {
|
|
38570
38579
|
J === "list autofill" && X.scroll.whitelist != null && !X.scroll.whitelist.list || q.options.bindings[J] && q.addBinding(q.options.bindings[J]);
|
|
38571
|
-
}), q.addBinding({ key:
|
|
38572
|
-
}), /Firefox/i.test(navigator.userAgent) ? (q.addBinding({ key:
|
|
38580
|
+
}), q.addBinding({ key: ne.keys.ENTER, shiftKey: null }, $), q.addBinding({ key: ne.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function() {
|
|
38581
|
+
}), /Firefox/i.test(navigator.userAgent) ? (q.addBinding({ key: ne.keys.BACKSPACE }, { collapsed: !0 }, le), q.addBinding({ key: ne.keys.DELETE }, { collapsed: !0 }, F)) : (q.addBinding({ key: ne.keys.BACKSPACE }, { collapsed: !0, prefix: /^.?$/ }, le), q.addBinding({ key: ne.keys.DELETE }, { collapsed: !0, suffix: /^.?$/ }, F)), q.addBinding({ key: ne.keys.BACKSPACE }, { collapsed: !1 }, P), q.addBinding({ key: ne.keys.DELETE }, { collapsed: !1 }, P), q.addBinding({ key: ne.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: !0, offset: 0 }, le), q.listen(), q;
|
|
38573
38582
|
}
|
|
38574
|
-
return a(
|
|
38583
|
+
return a(ne, [{
|
|
38575
38584
|
key: "addBinding",
|
|
38576
38585
|
value: function(R) {
|
|
38577
38586
|
var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, J = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, me = re(R);
|
|
@@ -38586,7 +38595,7 @@ var Rb = { exports: {} };
|
|
|
38586
38595
|
this.quill.root.addEventListener("keydown", function(q) {
|
|
38587
38596
|
if (!q.defaultPrevented) {
|
|
38588
38597
|
var J = q.which || q.keyCode, me = (R.bindings[J] || []).filter(function(ae) {
|
|
38589
|
-
return
|
|
38598
|
+
return ne.match(q, ae);
|
|
38590
38599
|
});
|
|
38591
38600
|
if (me.length !== 0) {
|
|
38592
38601
|
var we = R.quill.getSelection();
|
|
@@ -38618,9 +38627,9 @@ var Rb = { exports: {} };
|
|
|
38618
38627
|
}
|
|
38619
38628
|
});
|
|
38620
38629
|
}
|
|
38621
|
-
}]),
|
|
38630
|
+
}]), ne;
|
|
38622
38631
|
}(T.default);
|
|
38623
|
-
|
|
38632
|
+
te.keys = {
|
|
38624
38633
|
BACKSPACE: 8,
|
|
38625
38634
|
TAB: 9,
|
|
38626
38635
|
ENTER: 13,
|
|
@@ -38630,34 +38639,34 @@ var Rb = { exports: {} };
|
|
|
38630
38639
|
RIGHT: 39,
|
|
38631
38640
|
DOWN: 40,
|
|
38632
38641
|
DELETE: 46
|
|
38633
|
-
},
|
|
38642
|
+
}, te.DEFAULTS = {
|
|
38634
38643
|
bindings: {
|
|
38635
38644
|
bold: Q("bold"),
|
|
38636
38645
|
italic: Q("italic"),
|
|
38637
38646
|
underline: Q("underline"),
|
|
38638
38647
|
indent: {
|
|
38639
38648
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
38640
|
-
key:
|
|
38649
|
+
key: te.keys.TAB,
|
|
38641
38650
|
format: ["blockquote", "indent", "list"],
|
|
38642
|
-
handler: function(
|
|
38651
|
+
handler: function(ne, X) {
|
|
38643
38652
|
if (X.collapsed && X.offset !== 0)
|
|
38644
38653
|
return !0;
|
|
38645
38654
|
this.quill.format("indent", "+1", E.default.sources.USER);
|
|
38646
38655
|
}
|
|
38647
38656
|
},
|
|
38648
38657
|
outdent: {
|
|
38649
|
-
key:
|
|
38658
|
+
key: te.keys.TAB,
|
|
38650
38659
|
shiftKey: !0,
|
|
38651
38660
|
format: ["blockquote", "indent", "list"],
|
|
38652
38661
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
38653
|
-
handler: function(
|
|
38662
|
+
handler: function(ne, X) {
|
|
38654
38663
|
if (X.collapsed && X.offset !== 0)
|
|
38655
38664
|
return !0;
|
|
38656
38665
|
this.quill.format("indent", "-1", E.default.sources.USER);
|
|
38657
38666
|
}
|
|
38658
38667
|
},
|
|
38659
38668
|
"outdent backspace": {
|
|
38660
|
-
key:
|
|
38669
|
+
key: te.keys.BACKSPACE,
|
|
38661
38670
|
collapsed: !0,
|
|
38662
38671
|
shiftKey: null,
|
|
38663
38672
|
metaKey: null,
|
|
@@ -38665,57 +38674,57 @@ var Rb = { exports: {} };
|
|
|
38665
38674
|
altKey: null,
|
|
38666
38675
|
format: ["indent", "list"],
|
|
38667
38676
|
offset: 0,
|
|
38668
|
-
handler: function(
|
|
38677
|
+
handler: function(ne, X) {
|
|
38669
38678
|
X.format.indent != null ? this.quill.format("indent", "-1", E.default.sources.USER) : X.format.list != null && this.quill.format("list", !1, E.default.sources.USER);
|
|
38670
38679
|
}
|
|
38671
38680
|
},
|
|
38672
38681
|
"indent code-block": Y(!0),
|
|
38673
38682
|
"outdent code-block": Y(!1),
|
|
38674
38683
|
"remove tab": {
|
|
38675
|
-
key:
|
|
38684
|
+
key: te.keys.TAB,
|
|
38676
38685
|
shiftKey: !0,
|
|
38677
38686
|
collapsed: !0,
|
|
38678
38687
|
prefix: /\t$/,
|
|
38679
|
-
handler: function(
|
|
38680
|
-
this.quill.deleteText(
|
|
38688
|
+
handler: function(ne) {
|
|
38689
|
+
this.quill.deleteText(ne.index - 1, 1, E.default.sources.USER);
|
|
38681
38690
|
}
|
|
38682
38691
|
},
|
|
38683
38692
|
tab: {
|
|
38684
|
-
key:
|
|
38685
|
-
handler: function(
|
|
38693
|
+
key: te.keys.TAB,
|
|
38694
|
+
handler: function(ne) {
|
|
38686
38695
|
this.quill.history.cutoff();
|
|
38687
|
-
var X = new m.default().retain(
|
|
38688
|
-
this.quill.updateContents(X, E.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(
|
|
38696
|
+
var X = new m.default().retain(ne.index).delete(ne.length).insert(" ");
|
|
38697
|
+
this.quill.updateContents(X, E.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(ne.index + 1, E.default.sources.SILENT);
|
|
38689
38698
|
}
|
|
38690
38699
|
},
|
|
38691
38700
|
"list empty enter": {
|
|
38692
|
-
key:
|
|
38701
|
+
key: te.keys.ENTER,
|
|
38693
38702
|
collapsed: !0,
|
|
38694
38703
|
format: ["list"],
|
|
38695
38704
|
empty: !0,
|
|
38696
|
-
handler: function(
|
|
38705
|
+
handler: function(ne, X) {
|
|
38697
38706
|
this.quill.format("list", !1, E.default.sources.USER), X.format.indent && this.quill.format("indent", !1, E.default.sources.USER);
|
|
38698
38707
|
}
|
|
38699
38708
|
},
|
|
38700
38709
|
"checklist enter": {
|
|
38701
|
-
key:
|
|
38710
|
+
key: te.keys.ENTER,
|
|
38702
38711
|
collapsed: !0,
|
|
38703
38712
|
format: { list: "checked" },
|
|
38704
|
-
handler: function(
|
|
38705
|
-
var X = this.quill.getLine(
|
|
38713
|
+
handler: function(ne) {
|
|
38714
|
+
var X = this.quill.getLine(ne.index), R = l(X, 2), q = R[0], J = R[1], me = (0, p.default)({}, q.formats(), { list: "checked" }), we = new m.default().retain(ne.index).insert(`
|
|
38706
38715
|
`, me).retain(q.length() - J - 1).retain(1, { list: "unchecked" });
|
|
38707
|
-
this.quill.updateContents(we, E.default.sources.USER), this.quill.setSelection(
|
|
38716
|
+
this.quill.updateContents(we, E.default.sources.USER), this.quill.setSelection(ne.index + 1, E.default.sources.SILENT), this.quill.scrollIntoView();
|
|
38708
38717
|
}
|
|
38709
38718
|
},
|
|
38710
38719
|
"header enter": {
|
|
38711
|
-
key:
|
|
38720
|
+
key: te.keys.ENTER,
|
|
38712
38721
|
collapsed: !0,
|
|
38713
38722
|
format: ["header"],
|
|
38714
38723
|
suffix: /^$/,
|
|
38715
|
-
handler: function(
|
|
38716
|
-
var R = this.quill.getLine(
|
|
38724
|
+
handler: function(ne, X) {
|
|
38725
|
+
var R = this.quill.getLine(ne.index), q = l(R, 2), J = q[0], me = q[1], we = new m.default().retain(ne.index).insert(`
|
|
38717
38726
|
`, X.format).retain(J.length() - me - 1).retain(1, { header: null });
|
|
38718
|
-
this.quill.updateContents(we, E.default.sources.USER), this.quill.setSelection(
|
|
38727
|
+
this.quill.updateContents(we, E.default.sources.USER), this.quill.setSelection(ne.index + 1, E.default.sources.SILENT), this.quill.scrollIntoView();
|
|
38719
38728
|
}
|
|
38720
38729
|
},
|
|
38721
38730
|
"list autofill": {
|
|
@@ -38723,8 +38732,8 @@ var Rb = { exports: {} };
|
|
|
38723
38732
|
collapsed: !0,
|
|
38724
38733
|
format: { list: !1 },
|
|
38725
38734
|
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
38726
|
-
handler: function(
|
|
38727
|
-
var R = X.prefix.length, q = this.quill.getLine(
|
|
38735
|
+
handler: function(ne, X) {
|
|
38736
|
+
var R = X.prefix.length, q = this.quill.getLine(ne.index), J = l(q, 2), me = J[0], we = J[1];
|
|
38728
38737
|
if (we > R)
|
|
38729
38738
|
return !0;
|
|
38730
38739
|
var Me = void 0;
|
|
@@ -38743,60 +38752,60 @@ var Rb = { exports: {} };
|
|
|
38743
38752
|
default:
|
|
38744
38753
|
Me = "ordered";
|
|
38745
38754
|
}
|
|
38746
|
-
this.quill.insertText(
|
|
38747
|
-
var Fe = new m.default().retain(
|
|
38748
|
-
this.quill.updateContents(Fe, E.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(
|
|
38755
|
+
this.quill.insertText(ne.index, " ", E.default.sources.USER), this.quill.history.cutoff();
|
|
38756
|
+
var Fe = new m.default().retain(ne.index - we).delete(R + 1).retain(me.length() - 2 - we).retain(1, { list: Me });
|
|
38757
|
+
this.quill.updateContents(Fe, E.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(ne.index - R, E.default.sources.SILENT);
|
|
38749
38758
|
}
|
|
38750
38759
|
},
|
|
38751
38760
|
"code exit": {
|
|
38752
|
-
key:
|
|
38761
|
+
key: te.keys.ENTER,
|
|
38753
38762
|
collapsed: !0,
|
|
38754
38763
|
format: ["code-block"],
|
|
38755
38764
|
prefix: /\n\n$/,
|
|
38756
38765
|
suffix: /^\s+$/,
|
|
38757
|
-
handler: function(
|
|
38758
|
-
var X = this.quill.getLine(
|
|
38766
|
+
handler: function(ne) {
|
|
38767
|
+
var X = this.quill.getLine(ne.index), R = l(X, 2), q = R[0], J = R[1], me = new m.default().retain(ne.index + q.length() - J - 2).retain(1, { "code-block": null }).delete(1);
|
|
38759
38768
|
this.quill.updateContents(me, E.default.sources.USER);
|
|
38760
38769
|
}
|
|
38761
38770
|
},
|
|
38762
|
-
"embed left": pe(
|
|
38763
|
-
"embed left shift": pe(
|
|
38764
|
-
"embed right": pe(
|
|
38765
|
-
"embed right shift": pe(
|
|
38771
|
+
"embed left": pe(te.keys.LEFT, !1),
|
|
38772
|
+
"embed left shift": pe(te.keys.LEFT, !0),
|
|
38773
|
+
"embed right": pe(te.keys.RIGHT, !1),
|
|
38774
|
+
"embed right shift": pe(te.keys.RIGHT, !0)
|
|
38766
38775
|
}
|
|
38767
38776
|
};
|
|
38768
|
-
function pe(z,
|
|
38769
|
-
var X, R = z ===
|
|
38777
|
+
function pe(z, ne) {
|
|
38778
|
+
var X, R = z === te.keys.LEFT ? "prefix" : "suffix";
|
|
38770
38779
|
return X = {
|
|
38771
38780
|
key: z,
|
|
38772
|
-
shiftKey:
|
|
38781
|
+
shiftKey: ne,
|
|
38773
38782
|
altKey: null
|
|
38774
38783
|
}, S(X, R, /^$/), S(X, "handler", function(J) {
|
|
38775
38784
|
var me = J.index;
|
|
38776
|
-
z ===
|
|
38785
|
+
z === te.keys.RIGHT && (me += J.length + 1);
|
|
38777
38786
|
var we = this.quill.getLeaf(me), Me = l(we, 1), Fe = Me[0];
|
|
38778
|
-
return Fe instanceof u.default.Embed ? (z ===
|
|
38787
|
+
return Fe instanceof u.default.Embed ? (z === te.keys.LEFT ? ne ? this.quill.setSelection(J.index - 1, J.length + 1, E.default.sources.USER) : this.quill.setSelection(J.index - 1, E.default.sources.USER) : ne ? this.quill.setSelection(J.index, J.length + 1, E.default.sources.USER) : this.quill.setSelection(J.index + J.length + 1, E.default.sources.USER), !1) : !0;
|
|
38779
38788
|
}), X;
|
|
38780
38789
|
}
|
|
38781
|
-
function le(z,
|
|
38790
|
+
function le(z, ne) {
|
|
38782
38791
|
if (!(z.index === 0 || this.quill.getLength() <= 1)) {
|
|
38783
38792
|
var X = this.quill.getLine(z.index), R = l(X, 1), q = R[0], J = {};
|
|
38784
|
-
if (
|
|
38793
|
+
if (ne.offset === 0) {
|
|
38785
38794
|
var me = this.quill.getLine(z.index - 1), we = l(me, 1), Me = we[0];
|
|
38786
38795
|
if (Me != null && Me.length() > 1) {
|
|
38787
38796
|
var Fe = q.formats(), st = this.quill.getFormat(z.index - 1, 1);
|
|
38788
38797
|
J = y.default.attributes.diff(Fe, st) || {};
|
|
38789
38798
|
}
|
|
38790
38799
|
}
|
|
38791
|
-
var ut = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(
|
|
38800
|
+
var ut = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ne.prefix) ? 2 : 1;
|
|
38792
38801
|
this.quill.deleteText(z.index - ut, ut, E.default.sources.USER), Object.keys(J).length > 0 && this.quill.formatLine(z.index - ut, ut, J, E.default.sources.USER), this.quill.focus();
|
|
38793
38802
|
}
|
|
38794
38803
|
}
|
|
38795
|
-
function F(z,
|
|
38796
|
-
var X = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(
|
|
38804
|
+
function F(z, ne) {
|
|
38805
|
+
var X = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ne.suffix) ? 2 : 1;
|
|
38797
38806
|
if (!(z.index >= this.quill.getLength() - X)) {
|
|
38798
38807
|
var R = {}, q = 0, J = this.quill.getLine(z.index), me = l(J, 1), we = me[0];
|
|
38799
|
-
if (
|
|
38808
|
+
if (ne.offset >= we.length() - 1) {
|
|
38800
38809
|
var Me = this.quill.getLine(z.index + 1), Fe = l(Me, 1), st = Fe[0];
|
|
38801
38810
|
if (st) {
|
|
38802
38811
|
var ut = we.formats(), xe = this.quill.getFormat(z.index, 1);
|
|
@@ -38807,27 +38816,27 @@ var Rb = { exports: {} };
|
|
|
38807
38816
|
}
|
|
38808
38817
|
}
|
|
38809
38818
|
function P(z) {
|
|
38810
|
-
var
|
|
38811
|
-
if (
|
|
38812
|
-
var R =
|
|
38819
|
+
var ne = this.quill.getLines(z), X = {};
|
|
38820
|
+
if (ne.length > 1) {
|
|
38821
|
+
var R = ne[0].formats(), q = ne[ne.length - 1].formats();
|
|
38813
38822
|
X = y.default.attributes.diff(q, R) || {};
|
|
38814
38823
|
}
|
|
38815
38824
|
this.quill.deleteText(z, E.default.sources.USER), Object.keys(X).length > 0 && this.quill.formatLine(z.index, 1, X, E.default.sources.USER), this.quill.setSelection(z.index, E.default.sources.SILENT), this.quill.focus();
|
|
38816
38825
|
}
|
|
38817
|
-
function $(z,
|
|
38826
|
+
function $(z, ne) {
|
|
38818
38827
|
var X = this;
|
|
38819
38828
|
z.length > 0 && this.quill.scroll.deleteAt(z.index, z.length);
|
|
38820
|
-
var R = Object.keys(
|
|
38821
|
-
return u.default.query(J, u.default.Scope.BLOCK) && !Array.isArray(
|
|
38829
|
+
var R = Object.keys(ne.format).reduce(function(q, J) {
|
|
38830
|
+
return u.default.query(J, u.default.Scope.BLOCK) && !Array.isArray(ne.format[J]) && (q[J] = ne.format[J]), q;
|
|
38822
38831
|
}, {});
|
|
38823
38832
|
this.quill.insertText(z.index, `
|
|
38824
|
-
`, R, E.default.sources.USER), this.quill.setSelection(z.index + 1, E.default.sources.SILENT), this.quill.focus(), Object.keys(
|
|
38825
|
-
R[q] == null && (Array.isArray(
|
|
38833
|
+
`, R, E.default.sources.USER), this.quill.setSelection(z.index + 1, E.default.sources.SILENT), this.quill.focus(), Object.keys(ne.format).forEach(function(q) {
|
|
38834
|
+
R[q] == null && (Array.isArray(ne.format[q]) || q !== "link" && X.quill.format(q, ne.format[q], E.default.sources.USER));
|
|
38826
38835
|
});
|
|
38827
38836
|
}
|
|
38828
38837
|
function Y(z) {
|
|
38829
38838
|
return {
|
|
38830
|
-
key:
|
|
38839
|
+
key: te.keys.TAB,
|
|
38831
38840
|
shiftKey: !z,
|
|
38832
38841
|
format: { "code-block": !0 },
|
|
38833
38842
|
handler: function(X) {
|
|
@@ -38855,15 +38864,15 @@ var Rb = { exports: {} };
|
|
|
38855
38864
|
if (typeof z == "string" || typeof z == "number")
|
|
38856
38865
|
return re({ key: z });
|
|
38857
38866
|
if ((typeof z > "u" ? "undefined" : o(z)) === "object" && (z = (0, c.default)(z, !1)), typeof z.key == "string")
|
|
38858
|
-
if (
|
|
38859
|
-
z.key =
|
|
38867
|
+
if (te.keys[z.key.toUpperCase()] != null)
|
|
38868
|
+
z.key = te.keys[z.key.toUpperCase()];
|
|
38860
38869
|
else if (z.key.length === 1)
|
|
38861
38870
|
z.key = z.key.toUpperCase().charCodeAt(0);
|
|
38862
38871
|
else
|
|
38863
38872
|
return null;
|
|
38864
38873
|
return z.shortKey && (z[V] = z.shortKey, delete z.shortKey), z;
|
|
38865
38874
|
}
|
|
38866
|
-
r.default =
|
|
38875
|
+
r.default = te, r.SHORTKEY = V;
|
|
38867
38876
|
},
|
|
38868
38877
|
/* 24 */
|
|
38869
38878
|
/***/
|
|
@@ -40065,8 +40074,8 @@ var Rb = { exports: {} };
|
|
|
40065
40074
|
Y === null && (Y = Function.prototype);
|
|
40066
40075
|
var z = Object.getOwnPropertyDescriptor(Y, Q);
|
|
40067
40076
|
if (z === void 0) {
|
|
40068
|
-
var
|
|
40069
|
-
return
|
|
40077
|
+
var ne = Object.getPrototypeOf(Y);
|
|
40078
|
+
return ne === null ? void 0 : $(ne, Q, re);
|
|
40070
40079
|
} else {
|
|
40071
40080
|
if ("value" in z)
|
|
40072
40081
|
return z.value;
|
|
@@ -40091,18 +40100,18 @@ var Rb = { exports: {} };
|
|
|
40091
40100
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Y);
|
|
40092
40101
|
$.prototype = Object.create(Y && Y.prototype, { constructor: { value: $, enumerable: !1, writable: !0, configurable: !0 } }), Y && (Object.setPrototypeOf ? Object.setPrototypeOf($, Y) : $.__proto__ = Y);
|
|
40093
40102
|
}
|
|
40094
|
-
var M = [!1, "center", "right", "justify"], B = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], H = [!1, "serif", "monospace"], V = ["1", "2", "3", !1],
|
|
40103
|
+
var M = [!1, "center", "right", "justify"], B = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], H = [!1, "serif", "monospace"], V = ["1", "2", "3", !1], te = ["small", !1, "large", "huge"], pe = function($) {
|
|
40095
40104
|
D(Y, $);
|
|
40096
40105
|
function Y(Q, re) {
|
|
40097
40106
|
A(this, Y);
|
|
40098
|
-
var z = S(this, (Y.__proto__ || Object.getPrototypeOf(Y)).call(this, Q, re)),
|
|
40107
|
+
var z = S(this, (Y.__proto__ || Object.getPrototypeOf(Y)).call(this, Q, re)), ne = function X(R) {
|
|
40099
40108
|
if (!document.body.contains(Q.root))
|
|
40100
40109
|
return document.body.removeEventListener("click", X);
|
|
40101
40110
|
z.tooltip != null && !z.tooltip.root.contains(R.target) && document.activeElement !== z.tooltip.textbox && !z.quill.hasFocus() && z.tooltip.hide(), z.pickers != null && z.pickers.forEach(function(q) {
|
|
40102
40111
|
q.container.contains(R.target) || q.close();
|
|
40103
40112
|
});
|
|
40104
40113
|
};
|
|
40105
|
-
return Q.emitter.listenDOM("click", document.body,
|
|
40114
|
+
return Q.emitter.listenDOM("click", document.body, ne), z;
|
|
40106
40115
|
}
|
|
40107
40116
|
return o(Y, [{
|
|
40108
40117
|
key: "addModule",
|
|
@@ -40113,17 +40122,17 @@ var Rb = { exports: {} };
|
|
|
40113
40122
|
}, {
|
|
40114
40123
|
key: "buildButtons",
|
|
40115
40124
|
value: function(re, z) {
|
|
40116
|
-
re.forEach(function(
|
|
40117
|
-
var X =
|
|
40125
|
+
re.forEach(function(ne) {
|
|
40126
|
+
var X = ne.getAttribute("class") || "";
|
|
40118
40127
|
X.split(/\s+/).forEach(function(R) {
|
|
40119
40128
|
if (R.startsWith("ql-") && (R = R.slice(3), z[R] != null))
|
|
40120
40129
|
if (R === "direction")
|
|
40121
|
-
|
|
40130
|
+
ne.innerHTML = z[R][""] + z[R].rtl;
|
|
40122
40131
|
else if (typeof z[R] == "string")
|
|
40123
|
-
|
|
40132
|
+
ne.innerHTML = z[R];
|
|
40124
40133
|
else {
|
|
40125
|
-
var q =
|
|
40126
|
-
q != null && z[R][q] && (
|
|
40134
|
+
var q = ne.value || "";
|
|
40135
|
+
q != null && z[R][q] && (ne.innerHTML = z[R][q]);
|
|
40127
40136
|
}
|
|
40128
40137
|
});
|
|
40129
40138
|
});
|
|
@@ -40131,7 +40140,7 @@ var Rb = { exports: {} };
|
|
|
40131
40140
|
}, {
|
|
40132
40141
|
key: "buildPickers",
|
|
40133
40142
|
value: function(re, z) {
|
|
40134
|
-
var
|
|
40143
|
+
var ne = this;
|
|
40135
40144
|
this.pickers = re.map(function(R) {
|
|
40136
40145
|
if (R.classList.contains("ql-align"))
|
|
40137
40146
|
return R.querySelector("option") == null && P(R, M), new w.default(R, z.align);
|
|
@@ -40139,10 +40148,10 @@ var Rb = { exports: {} };
|
|
|
40139
40148
|
var q = R.classList.contains("ql-background") ? "background" : "color";
|
|
40140
40149
|
return R.querySelector("option") == null && P(R, B, q === "background" ? "#ffffff" : "#000000"), new b.default(R, z[q]);
|
|
40141
40150
|
} else
|
|
40142
|
-
return R.querySelector("option") == null && (R.classList.contains("ql-font") ? P(R, H) : R.classList.contains("ql-header") ? P(R, V) : R.classList.contains("ql-size") && P(R,
|
|
40151
|
+
return R.querySelector("option") == null && (R.classList.contains("ql-font") ? P(R, H) : R.classList.contains("ql-header") ? P(R, V) : R.classList.contains("ql-size") && P(R, te)), new k.default(R);
|
|
40143
40152
|
});
|
|
40144
40153
|
var X = function() {
|
|
40145
|
-
|
|
40154
|
+
ne.pickers.forEach(function(q) {
|
|
40146
40155
|
q.update();
|
|
40147
40156
|
});
|
|
40148
40157
|
};
|
|
@@ -40163,8 +40172,8 @@ var Rb = { exports: {} };
|
|
|
40163
40172
|
if (Q.files != null && Q.files[0] != null) {
|
|
40164
40173
|
var re = new FileReader();
|
|
40165
40174
|
re.onload = function(z) {
|
|
40166
|
-
var
|
|
40167
|
-
Y.quill.updateContents(new d.default().retain(
|
|
40175
|
+
var ne = Y.quill.getSelection(!0);
|
|
40176
|
+
Y.quill.updateContents(new d.default().retain(ne.index).delete(ne.length).insert({ image: z.target.result }), h.default.sources.USER), Y.quill.setSelection(ne.index + 1, h.default.sources.SILENT), Q.value = "";
|
|
40168
40177
|
}, re.readAsDataURL(Q.files[0]);
|
|
40169
40178
|
}
|
|
40170
40179
|
}), this.container.appendChild(Q)), Q.click();
|
|
@@ -40223,9 +40232,9 @@ var Rb = { exports: {} };
|
|
|
40223
40232
|
case "formula": {
|
|
40224
40233
|
if (!re)
|
|
40225
40234
|
break;
|
|
40226
|
-
var
|
|
40227
|
-
if (
|
|
40228
|
-
var X =
|
|
40235
|
+
var ne = this.quill.getSelection(!0);
|
|
40236
|
+
if (ne != null) {
|
|
40237
|
+
var X = ne.index + ne.length;
|
|
40229
40238
|
this.quill.insertEmbed(X, this.root.getAttribute("data-mode"), re, h.default.sources.USER), this.root.getAttribute("data-mode") === "formula" && this.quill.insertText(X + 1, " ", h.default.sources.USER), this.quill.setSelection(X + 2, h.default.sources.USER);
|
|
40230
40239
|
}
|
|
40231
40240
|
break;
|
|
@@ -40673,8 +40682,8 @@ var Rb = { exports: {} };
|
|
|
40673
40682
|
return [[i, w], [o, E]];
|
|
40674
40683
|
var A = p(w, E);
|
|
40675
40684
|
if (A) {
|
|
40676
|
-
var S = A[0], D = A[1], M = A[2], B = A[3], H = A[4], V = a(S, M),
|
|
40677
|
-
return V.concat([[l, H]],
|
|
40685
|
+
var S = A[0], D = A[1], M = A[2], B = A[3], H = A[4], V = a(S, M), te = a(D, B);
|
|
40686
|
+
return V.concat([[l, H]], te);
|
|
40678
40687
|
}
|
|
40679
40688
|
return c(w, E);
|
|
40680
40689
|
}
|
|
@@ -40682,14 +40691,14 @@ var Rb = { exports: {} };
|
|
|
40682
40691
|
for (var k = w.length, _ = E.length, x = Math.ceil((k + _) / 2), T = x, A = 2 * x, S = new Array(A), D = new Array(A), M = 0; M < A; M++)
|
|
40683
40692
|
S[M] = -1, D[M] = -1;
|
|
40684
40693
|
S[T + 1] = 0, D[T + 1] = 0;
|
|
40685
|
-
for (var B = k - _, H = B % 2 != 0, V = 0,
|
|
40686
|
-
for (var P = -F + V; P <= F -
|
|
40694
|
+
for (var B = k - _, H = B % 2 != 0, V = 0, te = 0, pe = 0, le = 0, F = 0; F < x; F++) {
|
|
40695
|
+
for (var P = -F + V; P <= F - te; P += 2) {
|
|
40687
40696
|
var $ = T + P, Y;
|
|
40688
40697
|
P == -F || P != F && S[$ - 1] < S[$ + 1] ? Y = S[$ + 1] : Y = S[$ - 1] + 1;
|
|
40689
40698
|
for (var Q = Y - P; Y < k && Q < _ && w.charAt(Y) == E.charAt(Q); )
|
|
40690
40699
|
Y++, Q++;
|
|
40691
40700
|
if (S[$] = Y, Y > k)
|
|
40692
|
-
|
|
40701
|
+
te += 2;
|
|
40693
40702
|
else if (Q > _)
|
|
40694
40703
|
V += 2;
|
|
40695
40704
|
else if (H) {
|
|
@@ -40701,17 +40710,17 @@ var Rb = { exports: {} };
|
|
|
40701
40710
|
}
|
|
40702
40711
|
}
|
|
40703
40712
|
}
|
|
40704
|
-
for (var
|
|
40705
|
-
var re = T +
|
|
40706
|
-
|
|
40707
|
-
for (var X = z -
|
|
40713
|
+
for (var ne = -F + pe; ne <= F - le; ne += 2) {
|
|
40714
|
+
var re = T + ne, z;
|
|
40715
|
+
ne == -F || ne != F && D[re - 1] < D[re + 1] ? z = D[re + 1] : z = D[re - 1] + 1;
|
|
40716
|
+
for (var X = z - ne; z < k && X < _ && w.charAt(k - z - 1) == E.charAt(_ - X - 1); )
|
|
40708
40717
|
z++, X++;
|
|
40709
40718
|
if (D[re] = z, z > k)
|
|
40710
40719
|
le += 2;
|
|
40711
40720
|
else if (X > _)
|
|
40712
40721
|
pe += 2;
|
|
40713
40722
|
else if (!H) {
|
|
40714
|
-
var $ = T + B -
|
|
40723
|
+
var $ = T + B - ne;
|
|
40715
40724
|
if ($ >= 0 && $ < A && S[$] != -1) {
|
|
40716
40725
|
var Y = S[$], Q = T + Y - $;
|
|
40717
40726
|
if (z = k - z, Y >= z)
|
|
@@ -40744,18 +40753,18 @@ var Rb = { exports: {} };
|
|
|
40744
40753
|
var k = w.length > E.length ? w : E, _ = w.length > E.length ? E : w;
|
|
40745
40754
|
if (k.length < 4 || _.length * 2 < k.length)
|
|
40746
40755
|
return null;
|
|
40747
|
-
function x(
|
|
40748
|
-
for (var F =
|
|
40749
|
-
var
|
|
40750
|
-
|
|
40756
|
+
function x(te, pe, le) {
|
|
40757
|
+
for (var F = te.substring(le, le + Math.floor(te.length / 4)), P = -1, $ = "", Y, Q, re, z; (P = pe.indexOf(F, P + 1)) != -1; ) {
|
|
40758
|
+
var ne = f(
|
|
40759
|
+
te.substring(le),
|
|
40751
40760
|
pe.substring(P)
|
|
40752
40761
|
), X = h(
|
|
40753
|
-
|
|
40762
|
+
te.substring(0, le),
|
|
40754
40763
|
pe.substring(0, P)
|
|
40755
40764
|
);
|
|
40756
|
-
$.length < X +
|
|
40765
|
+
$.length < X + ne && ($ = pe.substring(P - X, P) + pe.substring(P, P + ne), Y = te.substring(0, le - X), Q = te.substring(le + ne), re = pe.substring(0, P - X), z = pe.substring(P + ne));
|
|
40757
40766
|
}
|
|
40758
|
-
return $.length * 2 >=
|
|
40767
|
+
return $.length * 2 >= te.length ? [
|
|
40759
40768
|
Y,
|
|
40760
40769
|
Q,
|
|
40761
40770
|
re,
|
|
@@ -41072,7 +41081,7 @@ var Rb = { exports: {} };
|
|
|
41072
41081
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Se);
|
|
41073
41082
|
xe.prototype = Object.create(Se && Se.prototype, { constructor: { value: xe, enumerable: !1, writable: !0, configurable: !0 } }), Se && (Object.setPrototypeOf ? Object.setPrototypeOf(xe, Se) : xe.__proto__ = Se);
|
|
41074
41083
|
}
|
|
41075
|
-
var
|
|
41084
|
+
var te = (0, y.default)("quill:clipboard"), pe = "__ql-matcher", le = [[Node.TEXT_NODE, ut], [Node.TEXT_NODE, Me], ["br", J], [Node.ELEMENT_NODE, Me], [Node.ELEMENT_NODE, q], [Node.ELEMENT_NODE, Fe], [Node.ELEMENT_NODE, R], [Node.ELEMENT_NODE, st], ["li", we], ["b", X.bind(X, "bold")], ["i", X.bind(X, "italic")], ["style", me]], F = [w.AlignAttribute, T.DirectionAttribute].reduce(function(xe, Se) {
|
|
41076
41085
|
return xe[Se.keyName] = Se, xe;
|
|
41077
41086
|
}, {}), P = [w.AlignStyle, E.BackgroundStyle, x.ColorStyle, T.DirectionStyle, A.FontStyle, S.SizeStyle].reduce(function(xe, Se) {
|
|
41078
41087
|
return xe[Se.keyName] = Se, xe;
|
|
@@ -41101,9 +41110,9 @@ var Rb = { exports: {} };
|
|
|
41101
41110
|
var Qe = this.container.innerText;
|
|
41102
41111
|
return this.container.innerHTML = "", new f.default().insert(Qe, M({}, _.default.blotName, Ae[_.default.blotName]));
|
|
41103
41112
|
}
|
|
41104
|
-
var Ye = this.prepareMatching(), L = l(Ye, 2), se = L[0], oe = L[1], ue =
|
|
41113
|
+
var Ye = this.prepareMatching(), L = l(Ye, 2), se = L[0], oe = L[1], ue = ne(this.container, se, oe);
|
|
41105
41114
|
return re(ue, `
|
|
41106
|
-
`) && ue.ops[ue.ops.length - 1].attributes == null && (ue = ue.compose(new f.default().retain(ue.length() - 1).delete(1))),
|
|
41115
|
+
`) && ue.ops[ue.ops.length - 1].attributes == null && (ue = ue.compose(new f.default().retain(ue.length() - 1).delete(1))), te.log("convert", this.container.innerHTML, ue), this.container.innerHTML = "", ue;
|
|
41107
41116
|
}
|
|
41108
41117
|
}, {
|
|
41109
41118
|
key: "dangerouslyPasteHTML",
|
|
@@ -41182,11 +41191,11 @@ var Rb = { exports: {} };
|
|
|
41182
41191
|
var Se = Q(xe);
|
|
41183
41192
|
return ["block", "list-item"].indexOf(Se.display) > -1;
|
|
41184
41193
|
}
|
|
41185
|
-
function
|
|
41194
|
+
function ne(xe, Se, Pe) {
|
|
41186
41195
|
return xe.nodeType === xe.TEXT_NODE ? Pe.reduce(function(Le, Ae) {
|
|
41187
41196
|
return Ae(xe, Le);
|
|
41188
41197
|
}, new f.default()) : xe.nodeType === xe.ELEMENT_NODE ? [].reduce.call(xe.childNodes || [], function(Le, Ae) {
|
|
41189
|
-
var Qe =
|
|
41198
|
+
var Qe = ne(Ae, Se, Pe);
|
|
41190
41199
|
return Ae.nodeType === xe.ELEMENT_NODE && (Qe = Se.reduce(function(Ye, L) {
|
|
41191
41200
|
return L(Ae, Ye);
|
|
41192
41201
|
}, Qe), Qe = (Ae[pe] || []).reduce(function(Ye, L) {
|
|
@@ -41345,18 +41354,18 @@ var Rb = { exports: {} };
|
|
|
41345
41354
|
}), r.addControls = r.default = void 0;
|
|
41346
41355
|
var o = function() {
|
|
41347
41356
|
function S(D, M) {
|
|
41348
|
-
var B = [], H = !0, V = !1,
|
|
41357
|
+
var B = [], H = !0, V = !1, te = void 0;
|
|
41349
41358
|
try {
|
|
41350
41359
|
for (var pe = D[Symbol.iterator](), le; !(H = (le = pe.next()).done) && (B.push(le.value), !(M && B.length === M)); H = !0)
|
|
41351
41360
|
;
|
|
41352
41361
|
} catch (F) {
|
|
41353
|
-
V = !0,
|
|
41362
|
+
V = !0, te = F;
|
|
41354
41363
|
} finally {
|
|
41355
41364
|
try {
|
|
41356
41365
|
!H && pe.return && pe.return();
|
|
41357
41366
|
} finally {
|
|
41358
41367
|
if (V)
|
|
41359
|
-
throw
|
|
41368
|
+
throw te;
|
|
41360
41369
|
}
|
|
41361
41370
|
}
|
|
41362
41371
|
return B;
|
|
@@ -41410,8 +41419,8 @@ var Rb = { exports: {} };
|
|
|
41410
41419
|
} else
|
|
41411
41420
|
typeof H.options.container == "string" ? H.container = document.querySelector(H.options.container) : H.container = H.options.container;
|
|
41412
41421
|
if (!(H.container instanceof HTMLElement)) {
|
|
41413
|
-
var
|
|
41414
|
-
return
|
|
41422
|
+
var te;
|
|
41423
|
+
return te = k.error("Container required for toolbar", H.options), w(H, te);
|
|
41415
41424
|
}
|
|
41416
41425
|
return H.container.classList.add("ql-toolbar"), H.controls = [], H.handlers = {}, Object.keys(H.options.handlers).forEach(function(pe) {
|
|
41417
41426
|
H.addHandler(pe, H.options.handlers[pe]);
|
|
@@ -41446,8 +41455,8 @@ var Rb = { exports: {} };
|
|
|
41446
41455
|
return;
|
|
41447
41456
|
}
|
|
41448
41457
|
}
|
|
41449
|
-
var
|
|
41450
|
-
B.addEventListener(
|
|
41458
|
+
var te = B.tagName === "SELECT" ? "change" : "click";
|
|
41459
|
+
B.addEventListener(te, function(pe) {
|
|
41451
41460
|
var le = void 0;
|
|
41452
41461
|
if (B.tagName === "SELECT") {
|
|
41453
41462
|
if (B.selectedIndex < 0)
|
|
@@ -41475,7 +41484,7 @@ var Rb = { exports: {} };
|
|
|
41475
41484
|
value: function(B) {
|
|
41476
41485
|
var H = B == null ? {} : this.quill.getFormat(B);
|
|
41477
41486
|
this.controls.forEach(function(V) {
|
|
41478
|
-
var
|
|
41487
|
+
var te = o(V, 2), pe = te[0], le = te[1];
|
|
41479
41488
|
if (le.tagName === "SELECT") {
|
|
41480
41489
|
var F = void 0;
|
|
41481
41490
|
if (B == null)
|
|
@@ -41510,8 +41519,8 @@ var Rb = { exports: {} };
|
|
|
41510
41519
|
if (typeof H == "string")
|
|
41511
41520
|
x(B, H);
|
|
41512
41521
|
else {
|
|
41513
|
-
var V = Object.keys(H)[0],
|
|
41514
|
-
Array.isArray(
|
|
41522
|
+
var V = Object.keys(H)[0], te = H[V];
|
|
41523
|
+
Array.isArray(te) ? A(B, V, te) : x(B, V, te);
|
|
41515
41524
|
}
|
|
41516
41525
|
}), S.appendChild(B);
|
|
41517
41526
|
});
|
|
@@ -41763,13 +41772,13 @@ var Rb = { exports: {} };
|
|
|
41763
41772
|
function A(S, D) {
|
|
41764
41773
|
var M = [], B = !0, H = !1, V = void 0;
|
|
41765
41774
|
try {
|
|
41766
|
-
for (var
|
|
41775
|
+
for (var te = S[Symbol.iterator](), pe; !(B = (pe = te.next()).done) && (M.push(pe.value), !(D && M.length === D)); B = !0)
|
|
41767
41776
|
;
|
|
41768
41777
|
} catch (le) {
|
|
41769
41778
|
H = !0, V = le;
|
|
41770
41779
|
} finally {
|
|
41771
41780
|
try {
|
|
41772
|
-
!B &&
|
|
41781
|
+
!B && te.return && te.return();
|
|
41773
41782
|
} finally {
|
|
41774
41783
|
if (H)
|
|
41775
41784
|
throw V;
|
|
@@ -41882,7 +41891,7 @@ var Rb = { exports: {} };
|
|
|
41882
41891
|
}), this.quill.on(f.default.events.SELECTION_CHANGE, function(B, H, V) {
|
|
41883
41892
|
if (B != null) {
|
|
41884
41893
|
if (B.length === 0 && V === f.default.sources.USER) {
|
|
41885
|
-
var
|
|
41894
|
+
var te = M.quill.scroll.descendant(m.default, B.index), pe = o(te, 2), le = pe[0], F = pe[1];
|
|
41886
41895
|
if (le != null) {
|
|
41887
41896
|
M.linkRange = new v.Range(B.index - F, le.length());
|
|
41888
41897
|
var P = m.default.formats(le.domNode);
|
|
@@ -41910,7 +41919,7 @@ var Rb = { exports: {} };
|
|
|
41910
41919
|
Object.defineProperty(r, "__esModule", {
|
|
41911
41920
|
value: !0
|
|
41912
41921
|
});
|
|
41913
|
-
var o = i(29), l = Ae(o), a = i(36), s = i(38), c = i(64), d = i(65), f = Ae(d), h = i(66), p = Ae(h), g = i(67), m = Ae(g), v = i(37), y = i(26), b = i(39), u = i(40), w = i(56), E = Ae(w), k = i(68), _ = Ae(k), x = i(27), T = Ae(x), A = i(69), S = Ae(A), D = i(70), M = Ae(D), B = i(71), H = Ae(B), V = i(72),
|
|
41922
|
+
var o = i(29), l = Ae(o), a = i(36), s = i(38), c = i(64), d = i(65), f = Ae(d), h = i(66), p = Ae(h), g = i(67), m = Ae(g), v = i(37), y = i(26), b = i(39), u = i(40), w = i(56), E = Ae(w), k = i(68), _ = Ae(k), x = i(27), T = Ae(x), A = i(69), S = Ae(A), D = i(70), M = Ae(D), B = i(71), H = Ae(B), V = i(72), te = Ae(V), pe = i(73), le = Ae(pe), F = i(13), P = Ae(F), $ = i(74), Y = Ae($), Q = i(75), re = Ae(Q), z = i(57), ne = Ae(z), X = i(41), R = Ae(X), q = i(28), J = Ae(q), me = i(59), we = Ae(me), Me = i(60), Fe = Ae(Me), st = i(61), ut = Ae(st), xe = i(108), Se = Ae(xe), Pe = i(62), Le = Ae(Pe);
|
|
41914
41923
|
function Ae(Qe) {
|
|
41915
41924
|
return Qe && Qe.__esModule ? Qe : { default: Qe };
|
|
41916
41925
|
}
|
|
@@ -41947,12 +41956,12 @@ var Rb = { exports: {} };
|
|
|
41947
41956
|
"formats/script": S.default,
|
|
41948
41957
|
"formats/strike": M.default,
|
|
41949
41958
|
"formats/underline": H.default,
|
|
41950
|
-
"formats/image":
|
|
41959
|
+
"formats/image": te.default,
|
|
41951
41960
|
"formats/video": le.default,
|
|
41952
41961
|
"formats/list/item": g.ListItem,
|
|
41953
41962
|
"modules/formula": Y.default,
|
|
41954
41963
|
"modules/syntax": re.default,
|
|
41955
|
-
"modules/toolbar":
|
|
41964
|
+
"modules/toolbar": ne.default,
|
|
41956
41965
|
"themes/bubble": Se.default,
|
|
41957
41966
|
"themes/snow": Le.default,
|
|
41958
41967
|
"ui/icons": R.default,
|
|
@@ -43041,7 +43050,7 @@ var Rb = { exports: {} };
|
|
|
43041
43050
|
if (V.length === 1)
|
|
43042
43051
|
S.position(S.quill.getBounds(M));
|
|
43043
43052
|
else {
|
|
43044
|
-
var
|
|
43053
|
+
var te = V[V.length - 1], pe = S.quill.getIndex(te), le = Math.min(te.length() - 1, M.index + M.length - pe), F = S.quill.getBounds(new p.Range(pe, le));
|
|
43045
43054
|
S.position(F);
|
|
43046
43055
|
}
|
|
43047
43056
|
} else
|
|
@@ -43353,10 +43362,10 @@ ru.EQUAL = jn;
|
|
|
43353
43362
|
var F5 = ru, Ds = { exports: {} };
|
|
43354
43363
|
Ds.exports;
|
|
43355
43364
|
(function(n, t) {
|
|
43356
|
-
var e = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", a = "[object Boolean]", s = "[object Date]", c = "[object Error]", d = "[object Function]", f = "[object GeneratorFunction]", h = "[object Map]", p = "[object Number]", g = "[object Object]", m = "[object Promise]", v = "[object RegExp]", y = "[object Set]", b = "[object String]", u = "[object Symbol]", w = "[object WeakMap]", E = "[object ArrayBuffer]", k = "[object DataView]", _ = "[object Float32Array]", x = "[object Float64Array]", T = "[object Int8Array]", A = "[object Int16Array]", S = "[object Int32Array]", D = "[object Uint8Array]", M = "[object Uint8ClampedArray]", B = "[object Uint16Array]", H = "[object Uint32Array]", V = /[\\^$.*+?()[\]{}|]/g,
|
|
43365
|
+
var e = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, o = "[object Arguments]", l = "[object Array]", a = "[object Boolean]", s = "[object Date]", c = "[object Error]", d = "[object Function]", f = "[object GeneratorFunction]", h = "[object Map]", p = "[object Number]", g = "[object Object]", m = "[object Promise]", v = "[object RegExp]", y = "[object Set]", b = "[object String]", u = "[object Symbol]", w = "[object WeakMap]", E = "[object ArrayBuffer]", k = "[object DataView]", _ = "[object Float32Array]", x = "[object Float64Array]", T = "[object Int8Array]", A = "[object Int16Array]", S = "[object Int32Array]", D = "[object Uint8Array]", M = "[object Uint8ClampedArray]", B = "[object Uint16Array]", H = "[object Uint32Array]", V = /[\\^$.*+?()[\]{}|]/g, te = /\w*$/, pe = /^\[object .+?Constructor\]$/, le = /^(?:0|[1-9]\d*)$/, F = {};
|
|
43357
43366
|
F[o] = F[l] = F[E] = F[k] = F[a] = F[s] = F[_] = F[x] = F[T] = F[A] = F[S] = F[h] = F[p] = F[g] = F[v] = F[y] = F[b] = F[u] = F[D] = F[M] = F[B] = F[H] = !0, F[c] = F[d] = F[w] = !1;
|
|
43358
43367
|
var P = typeof nn == "object" && nn && nn.Object === Object && nn, $ = typeof self == "object" && self && self.Object === Object && self, Y = P || $ || Function("return this")(), Q = t && !t.nodeType && t, re = Q && !0 && n && !n.nodeType && n, z = re && re.exports === Q;
|
|
43359
|
-
function
|
|
43368
|
+
function ne(O, G) {
|
|
43360
43369
|
return O.set(G[0], G[1]), O;
|
|
43361
43370
|
}
|
|
43362
43371
|
function X(O, G) {
|
|
@@ -43624,10 +43633,10 @@ Ds.exports;
|
|
|
43624
43633
|
}
|
|
43625
43634
|
function ea(O, G, de) {
|
|
43626
43635
|
var Te = G ? de(Fe(O), !0) : Fe(O);
|
|
43627
|
-
return J(Te,
|
|
43636
|
+
return J(Te, ne, new O.constructor());
|
|
43628
43637
|
}
|
|
43629
43638
|
function ta(O) {
|
|
43630
|
-
var G = new O.constructor(O.source,
|
|
43639
|
+
var G = new O.constructor(O.source, te.exec(O));
|
|
43631
43640
|
return G.lastIndex = O.lastIndex, G;
|
|
43632
43641
|
}
|
|
43633
43642
|
function hu(O, G, de) {
|
|
@@ -43799,9 +43808,9 @@ Ds.exports;
|
|
|
43799
43808
|
var Lb = Ds.exports, Os = { exports: {} };
|
|
43800
43809
|
Os.exports;
|
|
43801
43810
|
(function(n, t) {
|
|
43802
|
-
var e = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, l = 9007199254740991, a = "[object Arguments]", s = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", h = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", v = "[object Number]", y = "[object Null]", b = "[object Object]", u = "[object Promise]", w = "[object Proxy]", E = "[object RegExp]", k = "[object Set]", _ = "[object String]", x = "[object Symbol]", T = "[object Undefined]", A = "[object WeakMap]", S = "[object ArrayBuffer]", D = "[object DataView]", M = "[object Float32Array]", B = "[object Float64Array]", H = "[object Int8Array]", V = "[object Int16Array]",
|
|
43803
|
-
re[M] = re[B] = re[H] = re[V] = re[
|
|
43804
|
-
var z = typeof nn == "object" && nn && nn.Object === Object && nn,
|
|
43811
|
+
var e = 200, r = "__lodash_hash_undefined__", i = 1, o = 2, l = 9007199254740991, a = "[object Arguments]", s = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", h = "[object Error]", p = "[object Function]", g = "[object GeneratorFunction]", m = "[object Map]", v = "[object Number]", y = "[object Null]", b = "[object Object]", u = "[object Promise]", w = "[object Proxy]", E = "[object RegExp]", k = "[object Set]", _ = "[object String]", x = "[object Symbol]", T = "[object Undefined]", A = "[object WeakMap]", S = "[object ArrayBuffer]", D = "[object DataView]", M = "[object Float32Array]", B = "[object Float64Array]", H = "[object Int8Array]", V = "[object Int16Array]", te = "[object Int32Array]", pe = "[object Uint8Array]", le = "[object Uint8ClampedArray]", F = "[object Uint16Array]", P = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, Y = /^\[object .+?Constructor\]$/, Q = /^(?:0|[1-9]\d*)$/, re = {};
|
|
43812
|
+
re[M] = re[B] = re[H] = re[V] = re[te] = re[pe] = re[le] = re[F] = re[P] = !0, re[a] = re[s] = re[S] = re[d] = re[D] = re[f] = re[h] = re[p] = re[m] = re[v] = re[b] = re[E] = re[k] = re[_] = re[A] = !1;
|
|
43813
|
+
var z = typeof nn == "object" && nn && nn.Object === Object && nn, ne = typeof self == "object" && self && self.Object === Object && self, X = z || ne || Function("return this")(), R = t && !t.nodeType && t, q = R && !0 && n && !n.nodeType && n, J = q && q.exports === R, me = J && z.process, we = function() {
|
|
43805
43814
|
try {
|
|
43806
43815
|
return me && me.binding && me.binding("util");
|
|
43807
43816
|
} catch {
|