@bomjan133/react-crud-ui 1.2.6 → 1.2.8
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/README.md +4284 -23
- package/dist/components/book-viewer/EpubViewer.d.ts +8 -0
- package/dist/components/book-viewer/PdfViewer.d.ts +9 -0
- package/dist/components/book-viewer/constants.d.ts +23 -0
- package/dist/components/book-viewer/hooks.d.ts +6 -0
- package/dist/components/book-viewer/index.d.ts +16 -0
- package/dist/components/book-viewer/ui.d.ts +16 -0
- package/dist/components/book-viewer/utils.d.ts +12 -0
- package/dist/components/crud/CrudDetail.d.ts +86 -0
- package/dist/components/crud/CrudForm.d.ts +33 -0
- package/dist/components/crud/CrudList.d.ts +105 -0
- package/dist/components/crud/DataTable.d.ts +64 -0
- package/dist/components/crud/EmptyState.d.ts +54 -0
- package/dist/components/crud/Loading.d.ts +32 -0
- package/dist/components/crud/Modal.d.ts +75 -0
- package/dist/components/crud/Pagination.d.ts +18 -0
- package/dist/components/crud/ServerErrorPage.d.ts +7 -0
- package/dist/components/layouts/AuthLayout.d.ts +32 -0
- package/dist/components/layouts/BreadcrumbContext.d.ts +4 -0
- package/dist/components/layouts/DashboardLayout.d.ts +41 -0
- package/dist/components/layouts/DetailView.d.ts +58 -0
- package/dist/components/layouts/Header.d.ts +13 -0
- package/dist/components/layouts/HeaderSlotContext.d.ts +4 -0
- package/dist/components/layouts/LoginPage.d.ts +50 -0
- package/dist/components/layouts/Sidebar.d.ts +38 -0
- package/dist/components/layouts/SidebarContext.d.ts +18 -0
- package/dist/components/layouts/index.d.ts +8 -0
- package/dist/components/toast/ToastContainer.d.ts +4 -0
- package/dist/components/toast/useUI.d.ts +33 -0
- package/dist/components/ui/CopyableField.d.ts +12 -0
- package/dist/components/ui/DownloadableButton.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts +26 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/avatar.d.ts +4 -0
- package/dist/components/ui/badge.d.ts +8 -0
- package/dist/components/ui/button.d.ts +6 -0
- package/dist/components/ui/calendar.d.ts +16 -0
- package/dist/components/ui/card.d.ts +7 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/collapsible.d.ts +3 -0
- package/dist/components/ui/date-picker.d.ts +2 -0
- package/dist/components/ui/date-range-picker.d.ts +2 -0
- package/dist/components/ui/dialog.d.ts +25 -0
- package/dist/components/ui/dropdown-menu.d.ts +23 -0
- package/dist/components/ui/form-fields.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts +28 -0
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/label.d.ts +2 -0
- package/dist/components/ui/popover.d.ts +5 -0
- package/dist/components/ui/q-tabs.d.ts +18 -0
- package/dist/components/ui/rich-text-editor.d.ts +2 -0
- package/dist/components/ui/scroll-area.d.ts +3 -0
- package/dist/components/ui/search-select.d.ts +6 -0
- package/dist/components/ui/select.d.ts +12 -0
- package/dist/components/ui/separator.d.ts +2 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +2 -0
- package/dist/components/ui/table.d.ts +9 -0
- package/dist/components/ui/tabs.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/tiptap-editor.d.ts +2 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/{index-DEnRTqSW.cjs → index-C1SYIwJ0.cjs} +2 -2
- package/dist/{index-DEnRTqSW.cjs.map → index-C1SYIwJ0.cjs.map} +1 -1
- package/dist/{index-YVvpDXLO.js → index-C27owgN3.js} +989 -971
- package/dist/{index-YVvpDXLO.js.map → index-C27owgN3.js.map} +1 -1
- package/dist/{index-DGN44off.cjs → index-CoyU9yXi.cjs} +29 -29
- package/dist/index-CoyU9yXi.cjs.map +1 -0
- package/dist/{index-CYnVj6pv.js → index-DYnTJrkh.js} +2 -2
- package/dist/{index-CYnVj6pv.js.map → index-DYnTJrkh.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +42 -0
- package/dist/index.js +1 -1
- package/dist/lib/utils.d.ts +61 -0
- package/dist/store/createCrudStore.d.ts +11 -0
- package/dist/store/useUIStore.d.ts +5 -0
- package/package.json +1 -1
- package/dist/index-DGN44off.cjs.map +0 -1
|
@@ -357,7 +357,7 @@ const Ct = (t) => {
|
|
|
357
357
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
358
358
|
Ub.test(t) && !qb.test(t)
|
|
359
359
|
), $f = () => !1, ny = (t) => Yb.test(t), ry = (t) => jb.test(t), iy = () => {
|
|
360
|
-
const t = Ct("colors"), n = Ct("spacing"), r = Ct("blur"), i = Ct("brightness"), s = Ct("borderColor"), o = Ct("borderRadius"), l = Ct("borderSpacing"), c = Ct("borderWidth"), a = Ct("contrast"), h = Ct("grayscale"), u = Ct("hueRotate"), m = Ct("invert"), b = Ct("gap"), C = Ct("gradientColorStops"), S = Ct("gradientColorStopPositions"), E = Ct("inset"), d = Ct("margin"), f = Ct("opacity"), g = Ct("padding"), x = Ct("saturate"), p = Ct("scale"), v = Ct("sepia"), w = Ct("skew"), k = Ct("space"), N = Ct("translate"), T = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"],
|
|
360
|
+
const t = Ct("colors"), n = Ct("spacing"), r = Ct("blur"), i = Ct("brightness"), s = Ct("borderColor"), o = Ct("borderRadius"), l = Ct("borderSpacing"), c = Ct("borderWidth"), a = Ct("contrast"), h = Ct("grayscale"), u = Ct("hueRotate"), m = Ct("invert"), b = Ct("gap"), C = Ct("gradientColorStops"), S = Ct("gradientColorStopPositions"), E = Ct("inset"), d = Ct("margin"), f = Ct("opacity"), g = Ct("padding"), x = Ct("saturate"), p = Ct("scale"), v = Ct("sepia"), w = Ct("skew"), k = Ct("space"), N = Ct("translate"), T = () => ["auto", "contain", "none"], D = () => ["auto", "hidden", "clip", "visible", "scroll"], O = () => ["auto", nt, n], R = () => [nt, n], L = () => ["", ur, Tr], P = () => ["auto", Ti, nt], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], V = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], F = () => ["", "0", nt], H = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [Ti, nt];
|
|
361
361
|
return {
|
|
362
362
|
cacheSize: 500,
|
|
363
363
|
separator: ":",
|
|
@@ -369,7 +369,7 @@ const Ct = (t) => {
|
|
|
369
369
|
borderColor: [t],
|
|
370
370
|
borderRadius: ["none", "", "full", Nr, nt],
|
|
371
371
|
borderSpacing: R(),
|
|
372
|
-
borderWidth:
|
|
372
|
+
borderWidth: L(),
|
|
373
373
|
contrast: G(),
|
|
374
374
|
grayscale: F(),
|
|
375
375
|
hueRotate: G(),
|
|
@@ -377,8 +377,8 @@ const Ct = (t) => {
|
|
|
377
377
|
gap: R(),
|
|
378
378
|
gradientColorStops: [t],
|
|
379
379
|
gradientColorStopPositions: [Gb, Tr],
|
|
380
|
-
inset:
|
|
381
|
-
margin:
|
|
380
|
+
inset: O(),
|
|
381
|
+
margin: O(),
|
|
382
382
|
opacity: G(),
|
|
383
383
|
padding: R(),
|
|
384
384
|
saturate: G(),
|
|
@@ -610,7 +610,7 @@ const Ct = (t) => {
|
|
|
610
610
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
611
611
|
*/
|
|
612
612
|
basis: [{
|
|
613
|
-
basis:
|
|
613
|
+
basis: O()
|
|
614
614
|
}],
|
|
615
615
|
/**
|
|
616
616
|
* Flex Direction
|
|
@@ -1689,7 +1689,7 @@ const Ct = (t) => {
|
|
|
1689
1689
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1690
1690
|
*/
|
|
1691
1691
|
"ring-w": [{
|
|
1692
|
-
ring:
|
|
1692
|
+
ring: L()
|
|
1693
1693
|
}],
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Ring Width Inset
|
|
@@ -4894,7 +4894,7 @@ const p5 = (t) => ({
|
|
|
4894
4894
|
}, C = Hc(s), S = Fc(C), E = await l.getDimensions(h), d = C === "y", f = d ? "top" : "left", g = d ? "bottom" : "right", x = d ? "clientHeight" : "clientWidth", p = o.reference[S] + o.reference[C] - b[C] - o.floating[S], v = b[C] - o.reference[C], w = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(h));
|
|
4895
4895
|
let k = w ? w[x] : 0;
|
|
4896
4896
|
(!k || !await (l.isElement == null ? void 0 : l.isElement(w))) && (k = c.floating[x] || o.floating[S]);
|
|
4897
|
-
const N = p / 2 - v / 2, T = k / 2 - E[S] / 2 - 1, D = zr(m[f], T),
|
|
4897
|
+
const N = p / 2 - v / 2, T = k / 2 - E[S] / 2 - 1, D = zr(m[f], T), O = zr(m[g], T), R = D, L = k - E[S] - O, P = k / 2 - E[S] / 2 + N, z = Yl(R, P, L), V = !a.arrow && Wi(s) != null && P !== z && o.reference[S] / 2 - (P < R ? D : O) - E[S] / 2 < 0, W = V ? P < R ? P - R : P - L : 0;
|
|
4898
4898
|
return {
|
|
4899
4899
|
[C]: b[C] + W,
|
|
4900
4900
|
data: {
|
|
@@ -4943,8 +4943,8 @@ const p5 = (t) => ({
|
|
|
4943
4943
|
placement: s,
|
|
4944
4944
|
overflows: T
|
|
4945
4945
|
}], !T.every((P) => P <= 0)) {
|
|
4946
|
-
var
|
|
4947
|
-
const P = (((
|
|
4946
|
+
var O, R;
|
|
4947
|
+
const P = (((O = o.flip) == null ? void 0 : O.index) || 0) + 1, z = k[P];
|
|
4948
4948
|
if (z && (!(m === "alignment" ? g !== Zn(z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4949
4949
|
// overflows the main axis.
|
|
4950
4950
|
D.every(($) => Zn($.placement) === g ? $.overflows[0] > 0 : !0)))
|
|
@@ -4961,8 +4961,8 @@ const p5 = (t) => ({
|
|
|
4961
4961
|
if (!V)
|
|
4962
4962
|
switch (C) {
|
|
4963
4963
|
case "bestFit": {
|
|
4964
|
-
var
|
|
4965
|
-
const W = (
|
|
4964
|
+
var L;
|
|
4965
|
+
const W = (L = D.filter(($) => {
|
|
4966
4966
|
if (w) {
|
|
4967
4967
|
const F = Zn($.placement);
|
|
4968
4968
|
return F === g || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4970,7 +4970,7 @@ const p5 = (t) => ({
|
|
|
4970
4970
|
F === "y";
|
|
4971
4971
|
}
|
|
4972
4972
|
return !0;
|
|
4973
|
-
}).map(($) => [$.placement, $.overflows.filter((F) => F > 0).reduce((F, H) => F + H, 0)]).sort(($, F) => $[1] - F[1])[0]) == null ? void 0 :
|
|
4973
|
+
}).map(($) => [$.placement, $.overflows.filter((F) => F > 0).reduce((F, H) => F + H, 0)]).sort(($, F) => $[1] - F[1])[0]) == null ? void 0 : L[0];
|
|
4974
4974
|
W && (V = W);
|
|
4975
4975
|
break;
|
|
4976
4976
|
}
|
|
@@ -5213,8 +5213,8 @@ const y5 = function(t) {
|
|
|
5213
5213
|
const g = E - u.top - u.bottom, x = S - u.left - u.right, p = zr(E - u[d], g), v = zr(S - u[f], x), w = !n.middlewareData.shift;
|
|
5214
5214
|
let k = p, N = v;
|
|
5215
5215
|
if ((r = n.middlewareData.shift) != null && r.enabled.x && (N = x), (i = n.middlewareData.shift) != null && i.enabled.y && (k = g), w && !b) {
|
|
5216
|
-
const D = cn(u.left, 0),
|
|
5217
|
-
C ? N = S - 2 * (D !== 0 ||
|
|
5216
|
+
const D = cn(u.left, 0), O = cn(u.right, 0), R = cn(u.top, 0), L = cn(u.bottom, 0);
|
|
5217
|
+
C ? N = S - 2 * (D !== 0 || O !== 0 ? D + O : cn(u.left, u.right)) : k = E - 2 * (R !== 0 || L !== 0 ? R + L : cn(u.top, u.bottom));
|
|
5218
5218
|
}
|
|
5219
5219
|
await a({
|
|
5220
5220
|
...n,
|
|
@@ -5802,7 +5802,7 @@ function i7(t) {
|
|
|
5802
5802
|
$ !== w.current && (w.current = $, E($));
|
|
5803
5803
|
}, []), x = y.useCallback(($) => {
|
|
5804
5804
|
$ !== k.current && (k.current = $, f($));
|
|
5805
|
-
}, []), p = o || S, v = l || d, w = y.useRef(null), k = y.useRef(null), N = y.useRef(u), T = a != null, D = ol(a),
|
|
5805
|
+
}, []), p = o || S, v = l || d, w = y.useRef(null), k = y.useRef(null), N = y.useRef(u), T = a != null, D = ol(a), O = ol(s), R = ol(h), L = y.useCallback(() => {
|
|
5806
5806
|
if (!w.current || !k.current)
|
|
5807
5807
|
return;
|
|
5808
5808
|
const $ = {
|
|
@@ -5810,7 +5810,7 @@ function i7(t) {
|
|
|
5810
5810
|
strategy: r,
|
|
5811
5811
|
middleware: b
|
|
5812
5812
|
};
|
|
5813
|
-
|
|
5813
|
+
O.current && ($.platform = O.current), t7(w.current, k.current, $).then((F) => {
|
|
5814
5814
|
const H = {
|
|
5815
5815
|
...F,
|
|
5816
5816
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5823,7 +5823,7 @@ function i7(t) {
|
|
|
5823
5823
|
m(H);
|
|
5824
5824
|
}));
|
|
5825
5825
|
});
|
|
5826
|
-
}, [b, n, r,
|
|
5826
|
+
}, [b, n, r, O, R]);
|
|
5827
5827
|
_o(() => {
|
|
5828
5828
|
h === !1 && N.current.isPositioned && (N.current.isPositioned = !1, m(($) => ({
|
|
5829
5829
|
...$,
|
|
@@ -5836,10 +5836,10 @@ function i7(t) {
|
|
|
5836
5836
|
}), []), _o(() => {
|
|
5837
5837
|
if (p && (w.current = p), v && (k.current = v), p && v) {
|
|
5838
5838
|
if (D.current)
|
|
5839
|
-
return D.current(p, v,
|
|
5840
|
-
|
|
5839
|
+
return D.current(p, v, L);
|
|
5840
|
+
L();
|
|
5841
5841
|
}
|
|
5842
|
-
}, [p, v,
|
|
5842
|
+
}, [p, v, L, D, T]);
|
|
5843
5843
|
const z = y.useMemo(() => ({
|
|
5844
5844
|
reference: w,
|
|
5845
5845
|
floating: k,
|
|
@@ -5871,11 +5871,11 @@ function i7(t) {
|
|
|
5871
5871
|
}, [r, c, V.floating, u.x, u.y]);
|
|
5872
5872
|
return y.useMemo(() => ({
|
|
5873
5873
|
...u,
|
|
5874
|
-
update:
|
|
5874
|
+
update: L,
|
|
5875
5875
|
refs: z,
|
|
5876
5876
|
elements: V,
|
|
5877
5877
|
floatingStyles: W
|
|
5878
|
-
}), [u,
|
|
5878
|
+
}), [u, L, z, V, W]);
|
|
5879
5879
|
}
|
|
5880
5880
|
const s7 = (t) => {
|
|
5881
5881
|
function n(r) {
|
|
@@ -6156,9 +6156,9 @@ var qc = "PopperContent", [P7, L7] = Ih(qc), Hh = y.forwardRef(
|
|
|
6156
6156
|
updatePositionStrategy: C = "optimized",
|
|
6157
6157
|
onPlaced: S,
|
|
6158
6158
|
...E
|
|
6159
|
-
} = t, d = Oh(qc, r), [f, g] = y.useState(null), x = Ke(n, (ue) => g(ue)), [p, v] = y.useState(null), w = Pc(p), k = (w == null ? void 0 : w.width) ?? 0, N = (w == null ? void 0 : w.height) ?? 0, T = i + (o !== "center" ? "-" + o : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u },
|
|
6159
|
+
} = t, d = Oh(qc, r), [f, g] = y.useState(null), x = Ke(n, (ue) => g(ue)), [p, v] = y.useState(null), w = Pc(p), k = (w == null ? void 0 : w.width) ?? 0, N = (w == null ? void 0 : w.height) ?? 0, T = i + (o !== "center" ? "-" + o : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, O = Array.isArray(h) ? h : [h], R = O.length > 0, L = {
|
|
6160
6160
|
padding: D,
|
|
6161
|
-
boundary:
|
|
6161
|
+
boundary: O.filter(O7),
|
|
6162
6162
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6163
6163
|
altBoundary: R
|
|
6164
6164
|
}, { refs: P, floatingStyles: z, placement: V, isPositioned: W, middlewareData: $ } = i7({
|
|
@@ -6177,11 +6177,11 @@ var qc = "PopperContent", [P7, L7] = Ih(qc), Hh = y.forwardRef(
|
|
|
6177
6177
|
mainAxis: !0,
|
|
6178
6178
|
crossAxis: !1,
|
|
6179
6179
|
limiter: m === "partial" ? l7() : void 0,
|
|
6180
|
-
...
|
|
6180
|
+
...L
|
|
6181
6181
|
}),
|
|
6182
|
-
a && c7({ ...
|
|
6182
|
+
a && c7({ ...L }),
|
|
6183
6183
|
u7({
|
|
6184
|
-
...
|
|
6184
|
+
...L,
|
|
6185
6185
|
apply: ({ elements: ue, rects: he, availableWidth: Ce, availableHeight: Pe }) => {
|
|
6186
6186
|
const { width: Be, height: Ie } = he.reference, Qe = ue.floating.style;
|
|
6187
6187
|
Qe.setProperty("--radix-popper-available-width", `${Ce}px`), Qe.setProperty("--radix-popper-available-height", `${Pe}px`), Qe.setProperty("--radix-popper-anchor-width", `${Be}px`), Qe.setProperty("--radix-popper-anchor-height", `${Ie}px`);
|
|
@@ -6189,7 +6189,7 @@ var qc = "PopperContent", [P7, L7] = Ih(qc), Hh = y.forwardRef(
|
|
|
6189
6189
|
}),
|
|
6190
6190
|
p && f7({ element: p, padding: c }),
|
|
6191
6191
|
B7({ arrowWidth: k, arrowHeight: N }),
|
|
6192
|
-
b && d7({ strategy: "referenceHidden", ...
|
|
6192
|
+
b && d7({ strategy: "referenceHidden", ...L })
|
|
6193
6193
|
]
|
|
6194
6194
|
}), [F, H] = Vh(V), G = Ut(S);
|
|
6195
6195
|
Ft(() => {
|
|
@@ -7012,10 +7012,10 @@ function q6(t) {
|
|
|
7012
7012
|
var N = window.getSelection(), T = N && N.anchorNode, D = T ? T === w || T.contains(w) : !1;
|
|
7013
7013
|
if (D)
|
|
7014
7014
|
return !1;
|
|
7015
|
-
var
|
|
7016
|
-
if (!
|
|
7015
|
+
var O = rd(k, w);
|
|
7016
|
+
if (!O)
|
|
7017
7017
|
return !0;
|
|
7018
|
-
if (
|
|
7018
|
+
if (O ? v = k : (v = k === "v" ? "h" : "v", O = rd(k, w)), !O)
|
|
7019
7019
|
return !1;
|
|
7020
7020
|
if (!i.current && "changedTouches" in E && (x || p) && (i.current = v), !v)
|
|
7021
7021
|
return !0;
|
|
@@ -7110,7 +7110,7 @@ var G6 = [" ", "Enter", "ArrowUp", "ArrowDown"], Z6 = [" ", "Enter"], ci = "Sele
|
|
|
7110
7110
|
defaultProp: c,
|
|
7111
7111
|
onChange: a,
|
|
7112
7112
|
caller: ci
|
|
7113
|
-
}),
|
|
7113
|
+
}), O = y.useRef(null), R = d ? S || !!d.closest("form") : !0, [L, P] = y.useState(/* @__PURE__ */ new Set()), z = Array.from(L).map((V) => V.props.value).join(";");
|
|
7114
7114
|
return /* @__PURE__ */ _(Ls, { ...E, children: /* @__PURE__ */ X(
|
|
7115
7115
|
K6,
|
|
7116
7116
|
{
|
|
@@ -7128,7 +7128,7 @@ var G6 = [" ", "Enter", "ArrowUp", "ArrowDown"], Z6 = [" ", "Enter"], ci = "Sele
|
|
|
7128
7128
|
open: k,
|
|
7129
7129
|
onOpenChange: N,
|
|
7130
7130
|
dir: w,
|
|
7131
|
-
triggerPointerDownPosRef:
|
|
7131
|
+
triggerPointerDownPosRef: O,
|
|
7132
7132
|
disabled: b,
|
|
7133
7133
|
children: [
|
|
7134
7134
|
/* @__PURE__ */ _(ga.Provider, { scope: n, children: /* @__PURE__ */ _(
|
|
@@ -7161,7 +7161,7 @@ var G6 = [" ", "Enter", "ArrowUp", "ArrowDown"], Z6 = [" ", "Enter"], ci = "Sele
|
|
|
7161
7161
|
form: S,
|
|
7162
7162
|
children: [
|
|
7163
7163
|
T === void 0 ? /* @__PURE__ */ _("option", { value: "" }) : null,
|
|
7164
|
-
Array.from(
|
|
7164
|
+
Array.from(L)
|
|
7165
7165
|
]
|
|
7166
7166
|
},
|
|
7167
7167
|
z
|
|
@@ -7279,9 +7279,9 @@ var Rn = 10, [c1, qr] = Vi(ui), nw = "SelectContentImpl", rw = /* @__PURE__ */ U
|
|
|
7279
7279
|
avoidCollisions: d,
|
|
7280
7280
|
//
|
|
7281
7281
|
...f
|
|
7282
|
-
} = t, g = Ur(ui, r), [x, p] = y.useState(null), [v, w] = y.useState(null), k = Ke(n, (ee) => p(ee)), [N, T] = y.useState(null), [D,
|
|
7282
|
+
} = t, g = Ur(ui, r), [x, p] = y.useState(null), [v, w] = y.useState(null), k = Ke(n, (ee) => p(ee)), [N, T] = y.useState(null), [D, O] = y.useState(
|
|
7283
7283
|
null
|
|
7284
|
-
), R = va(r), [
|
|
7284
|
+
), R = va(r), [L, P] = y.useState(!1), z = y.useRef(!1);
|
|
7285
7285
|
y.useEffect(() => {
|
|
7286
7286
|
if (x) return ma(x);
|
|
7287
7287
|
}, [x]), aa();
|
|
@@ -7297,8 +7297,8 @@ var Rn = 10, [c1, qr] = Vi(ui), nw = "SelectContentImpl", rw = /* @__PURE__ */ U
|
|
|
7297
7297
|
[V, N, x]
|
|
7298
7298
|
);
|
|
7299
7299
|
y.useEffect(() => {
|
|
7300
|
-
|
|
7301
|
-
}, [
|
|
7300
|
+
L && W();
|
|
7301
|
+
}, [L, W]);
|
|
7302
7302
|
const { onOpenChange: $, triggerPointerDownPosRef: F } = g;
|
|
7303
7303
|
y.useEffect(() => {
|
|
7304
7304
|
if (x) {
|
|
@@ -7334,7 +7334,7 @@ var Rn = 10, [c1, qr] = Vi(ui), nw = "SelectContentImpl", rw = /* @__PURE__ */ U
|
|
|
7334
7334
|
), J = y.useCallback(() => x == null ? void 0 : x.focus(), [x]), U = y.useCallback(
|
|
7335
7335
|
(ee, oe, re) => {
|
|
7336
7336
|
const ae = !z.current && !re;
|
|
7337
|
-
(g.value !== void 0 && g.value === oe || ae) &&
|
|
7337
|
+
(g.value !== void 0 && g.value === oe || ae) && O(ee);
|
|
7338
7338
|
},
|
|
7339
7339
|
[g.value]
|
|
7340
7340
|
), K = i === "popper" ? Xl : d1, se = K === Xl ? {
|
|
@@ -7363,7 +7363,7 @@ var Rn = 10, [c1, qr] = Vi(ui), nw = "SelectContentImpl", rw = /* @__PURE__ */ U
|
|
|
7363
7363
|
focusSelectedItem: W,
|
|
7364
7364
|
selectedItemText: D,
|
|
7365
7365
|
position: i,
|
|
7366
|
-
isPositioned:
|
|
7366
|
+
isPositioned: L,
|
|
7367
7367
|
searchRef: H,
|
|
7368
7368
|
children: /* @__PURE__ */ _(Bs, { as: rw, allowPinchZoom: !0, children: /* @__PURE__ */ _(
|
|
7369
7369
|
Rs,
|
|
@@ -7450,9 +7450,9 @@ var iw = "SelectItemAlignedPosition", d1 = y.forwardRef((t, n) => {
|
|
|
7450
7450
|
]);
|
|
7451
7451
|
c.style.minWidth = he + "px", c.style.right = Be + "px";
|
|
7452
7452
|
}
|
|
7453
|
-
const
|
|
7453
|
+
const O = b(), R = window.innerHeight - Rn * 2, L = E.scrollHeight, P = window.getComputedStyle(h), z = parseInt(P.borderTopWidth, 10), V = parseInt(P.paddingTop, 10), W = parseInt(P.borderBottomWidth, 10), $ = parseInt(P.paddingBottom, 10), F = z + V + L + $ + W, H = Math.min(d.offsetHeight * 5, F), G = window.getComputedStyle(E), q = parseInt(G.paddingTop, 10), J = parseInt(G.paddingBottom, 10), U = k.top + k.height / 2 - Rn, K = R - U, se = d.offsetHeight / 2, ee = d.offsetTop + se, oe = z + V + ee, re = F - oe;
|
|
7454
7454
|
if (oe <= U) {
|
|
7455
|
-
const de =
|
|
7455
|
+
const de = O.length > 0 && d === O[O.length - 1].ref.current;
|
|
7456
7456
|
c.style.bottom = "0px";
|
|
7457
7457
|
const ye = h.clientHeight - E.offsetTop - E.offsetHeight, ue = Math.max(
|
|
7458
7458
|
K,
|
|
@@ -7461,7 +7461,7 @@ var iw = "SelectItemAlignedPosition", d1 = y.forwardRef((t, n) => {
|
|
|
7461
7461
|
), he = oe + ue;
|
|
7462
7462
|
c.style.height = he + "px";
|
|
7463
7463
|
} else {
|
|
7464
|
-
const de =
|
|
7464
|
+
const de = O.length > 0 && d === O[0].ref.current;
|
|
7465
7465
|
c.style.top = "0px";
|
|
7466
7466
|
const ue = Math.max(
|
|
7467
7467
|
U,
|
|
@@ -8665,7 +8665,7 @@ var a8 = y.forwardRef((t, n) => {
|
|
|
8665
8665
|
if (N.target === N.currentTarget && T && !f) {
|
|
8666
8666
|
const D = new CustomEvent(dl, n8);
|
|
8667
8667
|
if (N.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
8668
|
-
const
|
|
8668
|
+
const O = p().filter((V) => V.focusable), R = O.find((V) => V.active), L = O.find((V) => V.id === E), z = [R, L, ...O].filter(
|
|
8669
8669
|
Boolean
|
|
8670
8670
|
).map((V) => V.ref.current);
|
|
8671
8671
|
bm(z, u);
|
|
@@ -13729,9 +13729,9 @@ function EC(t, n, r, i, s) {
|
|
|
13729
13729
|
[Nt.today]: []
|
|
13730
13730
|
}, p = {};
|
|
13731
13731
|
for (const v of t) {
|
|
13732
|
-
const { date: w, displayMonth: k } = v, N = !!(k && !b(w, k)), T = !!(f && S(w, f)), D = !!(g && d(w, g)),
|
|
13733
|
-
!h && !a && N || h && a === !1 && N,
|
|
13734
|
-
N && x.outside.push(v),
|
|
13732
|
+
const { date: w, displayMonth: k } = v, N = !!(k && !b(w, k)), T = !!(f && S(w, f)), D = !!(g && d(w, g)), O = !!(o && pr(w, o, s)), R = !!(l && pr(w, l, s)) || T || D || // Broadcast calendar will show outside days as default
|
|
13733
|
+
!h && !a && N || h && a === !1 && N, L = m(w, u);
|
|
13734
|
+
N && x.outside.push(v), O && x.disabled.push(v), R && x.hidden.push(v), L && x.today.push(v), c && Object.keys(c).forEach((P) => {
|
|
13735
13735
|
const z = c == null ? void 0 : c[P];
|
|
13736
13736
|
z && pr(w, z, s) && (p[P] ? p[P].push(v) : p[P] = [v]);
|
|
13737
13737
|
});
|
|
@@ -14086,22 +14086,22 @@ function QC(t, n, { classNames: r, months: i, focused: s, dateLib: o }) {
|
|
|
14086
14086
|
T && (T.style.opacity = "0");
|
|
14087
14087
|
const D = bl(v);
|
|
14088
14088
|
D && (D.classList.add(m ? r[ln.caption_before_exit] : r[ln.caption_after_exit]), D.addEventListener("animationend", N));
|
|
14089
|
-
const
|
|
14090
|
-
|
|
14089
|
+
const O = yl(v);
|
|
14090
|
+
O && O.classList.add(m ? r[ln.weeks_before_exit] : r[ln.weeks_after_exit]), x.insertBefore(v, x.firstChild);
|
|
14091
14091
|
});
|
|
14092
14092
|
}
|
|
14093
14093
|
});
|
|
14094
14094
|
}
|
|
14095
14095
|
function JC(t, n, r, i) {
|
|
14096
14096
|
const s = t[0], o = t[t.length - 1], { ISOWeek: l, fixedWeeks: c, broadcastCalendar: a } = r ?? {}, { addDays: h, differenceInCalendarDays: u, differenceInCalendarMonths: m, endOfBroadcastWeek: b, endOfISOWeek: C, endOfMonth: S, endOfWeek: E, isAfter: d, startOfBroadcastWeek: f, startOfISOWeek: g, startOfWeek: x } = i, p = a ? f(s, i) : l ? g(s) : x(s), v = a ? b(o) : l ? C(S(o)) : E(S(o)), w = n && (a ? b(n) : l ? C(n) : E(n)), k = w && d(v, w) ? w : v, N = u(k, p), T = m(o, s) + 1, D = [];
|
|
14097
|
-
for (let
|
|
14098
|
-
const P = h(p,
|
|
14097
|
+
for (let L = 0; L <= N; L++) {
|
|
14098
|
+
const P = h(p, L);
|
|
14099
14099
|
D.push(P);
|
|
14100
14100
|
}
|
|
14101
14101
|
const R = (a ? 35 : 42) * T;
|
|
14102
14102
|
if (c && D.length < R) {
|
|
14103
|
-
const
|
|
14104
|
-
for (let P = 0; P <
|
|
14103
|
+
const L = R - D.length;
|
|
14104
|
+
for (let P = 0; P < L; P++) {
|
|
14105
14105
|
const z = h(D[D.length - 1], 1);
|
|
14106
14106
|
D.push(z);
|
|
14107
14107
|
}
|
|
@@ -14146,8 +14146,8 @@ function nS(t, n, r, i) {
|
|
|
14146
14146
|
x.push(...k);
|
|
14147
14147
|
}
|
|
14148
14148
|
const v = x.reduce((k, N) => {
|
|
14149
|
-
const T = r.ISOWeek ? h(N) : u(N), D = k.find((R) => R.weekNumber === T),
|
|
14150
|
-
return D ? D.days.push(
|
|
14149
|
+
const T = r.ISOWeek ? h(N) : u(N), D = k.find((R) => R.weekNumber === T), O = new Bp(N, d, i);
|
|
14150
|
+
return D ? D.days.push(O) : k.push(new Q_(T, [O])), k;
|
|
14151
14151
|
}, []), w = new K_(d, v);
|
|
14152
14152
|
return E.push(w), E;
|
|
14153
14153
|
}, []);
|
|
@@ -14210,13 +14210,13 @@ function aS(t, n) {
|
|
|
14210
14210
|
fixedWeeks: t.fixedWeeks,
|
|
14211
14211
|
ISOWeek: t.ISOWeek,
|
|
14212
14212
|
reverseMonths: t.reverseMonths
|
|
14213
|
-
}, n), N = oS(k), T = eS(k), D = sS(c, r, t, n),
|
|
14213
|
+
}, n), N = oS(k), T = eS(k), D = sS(c, r, t, n), O = iS(c, i, t, n);
|
|
14214
14214
|
return {
|
|
14215
14215
|
months: k,
|
|
14216
14216
|
weeks: N,
|
|
14217
14217
|
days: T,
|
|
14218
14218
|
previousMonth: D,
|
|
14219
|
-
nextMonth:
|
|
14219
|
+
nextMonth: O
|
|
14220
14220
|
};
|
|
14221
14221
|
}, [
|
|
14222
14222
|
n,
|
|
@@ -14492,7 +14492,7 @@ function bS(t) {
|
|
|
14492
14492
|
n.classNames
|
|
14493
14493
|
]);
|
|
14494
14494
|
n.today || (n = { ...n, today: l.today() });
|
|
14495
|
-
const { captionLayout: h, mode: u, navLayout: m, numberOfMonths: b = 1, onDayBlur: C, onDayClick: S, onDayFocus: E, onDayKeyDown: d, onDayMouseEnter: f, onDayMouseLeave: g, onNextClick: x, onPrevClick: p, showWeekNumber: v, styles: w } = n, { formatCaption: k, formatDay: N, formatMonthDropdown: T, formatWeekNumber: D, formatWeekNumberHeader:
|
|
14495
|
+
const { captionLayout: h, mode: u, navLayout: m, numberOfMonths: b = 1, onDayBlur: C, onDayClick: S, onDayFocus: E, onDayKeyDown: d, onDayMouseEnter: f, onDayMouseLeave: g, onNextClick: x, onPrevClick: p, showWeekNumber: v, styles: w } = n, { formatCaption: k, formatDay: N, formatMonthDropdown: T, formatWeekNumber: D, formatWeekNumberHeader: O, formatWeekdayName: R, formatYearDropdown: L } = s, P = aS(n, l), { days: z, months: V, navStart: W, navEnd: $, previousMonth: F, nextMonth: H, goToMonth: G } = P, q = EC(z, n, W, $, l), { isSelected: J, select: U, selected: K } = vS(n, l) ?? {}, { blur: se, focused: ee, isFocusTarget: oe, moveFocus: re, setFocused: ae } = uS(n, P, q, J ?? (() => !1), l), { labelDayButton: de, labelGridcell: ye, labelGrid: ue, labelMonthDropdown: he, labelNav: Ce, labelPrevious: Pe, labelNext: Be, labelWeekday: Ie, labelWeekNumber: Qe, labelWeekNumberHeader: Y, labelYearDropdown: ne } = o, ie = cs(() => YC(l, n.ISOWeek, n.broadcastCalendar, n.today), [l, n.ISOWeek, n.broadcastCalendar, n.today]), _e = u !== void 0 || S !== void 0, me = at(() => {
|
|
14496
14496
|
F && (G(F), p == null || p(F));
|
|
14497
14497
|
}, [F, G, p]), ce = at(() => {
|
|
14498
14498
|
H && (G(H), x == null || x(H));
|
|
@@ -14591,7 +14591,7 @@ function bS(t) {
|
|
|
14591
14591
|
i.DropdownNav,
|
|
14592
14592
|
{ className: a[Fe.Dropdowns], style: w == null ? void 0 : w[Fe.Dropdowns] },
|
|
14593
14593
|
(() => {
|
|
14594
|
-
const ze = h === "dropdown" || h === "dropdown-months" ? ge.createElement(i.MonthsDropdown, { key: "month", className: a[Fe.MonthsDropdown], "aria-label": he(), classNames: a, components: i, disabled: !!n.disableNavigation, onChange: Ae(We.date), options: UC(We.date, W, $, s, l), style: w == null ? void 0 : w[Fe.Dropdown], value: l.getMonth(We.date) }) : ge.createElement("span", { key: "month" }, T(We.date, l)), et = h === "dropdown" || h === "dropdown-years" ? ge.createElement(i.YearsDropdown, { key: "year", className: a[Fe.YearsDropdown], "aria-label": ne(l.options), classNames: a, components: i, disabled: !!n.disableNavigation, onChange: He(We.date), options: jC(W, $, s, l, !!n.reverseYears), style: w == null ? void 0 : w[Fe.Dropdown], value: l.getYear(We.date) }) : ge.createElement("span", { key: "year" },
|
|
14594
|
+
const ze = h === "dropdown" || h === "dropdown-months" ? ge.createElement(i.MonthsDropdown, { key: "month", className: a[Fe.MonthsDropdown], "aria-label": he(), classNames: a, components: i, disabled: !!n.disableNavigation, onChange: Ae(We.date), options: UC(We.date, W, $, s, l), style: w == null ? void 0 : w[Fe.Dropdown], value: l.getMonth(We.date) }) : ge.createElement("span", { key: "month" }, T(We.date, l)), et = h === "dropdown" || h === "dropdown-years" ? ge.createElement(i.YearsDropdown, { key: "year", className: a[Fe.YearsDropdown], "aria-label": ne(l.options), classNames: a, components: i, disabled: !!n.disableNavigation, onChange: He(We.date), options: jC(W, $, s, l, !!n.reverseYears), style: w == null ? void 0 : w[Fe.Dropdown], value: l.getYear(We.date) }) : ge.createElement("span", { key: "year" }, L(We.date, l));
|
|
14595
14595
|
return l.getMonthYearOrder() === "year-first" ? [et, ze] : [ze, et];
|
|
14596
14596
|
})(),
|
|
14597
14597
|
ge.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -14619,7 +14619,7 @@ function bS(t) {
|
|
|
14619
14619
|
!n.hideWeekdays && ge.createElement(
|
|
14620
14620
|
i.Weekdays,
|
|
14621
14621
|
{ "data-animated-weekdays": n.animate ? "true" : void 0, className: a[Fe.Weekdays], style: w == null ? void 0 : w[Fe.Weekdays] },
|
|
14622
|
-
v && ge.createElement(i.WeekNumberHeader, { "aria-label": Y(l.options), className: a[Fe.WeekNumberHeader], style: w == null ? void 0 : w[Fe.WeekNumberHeader], scope: "col" },
|
|
14622
|
+
v && ge.createElement(i.WeekNumberHeader, { "aria-label": Y(l.options), className: a[Fe.WeekNumberHeader], style: w == null ? void 0 : w[Fe.WeekNumberHeader], scope: "col" }, O()),
|
|
14623
14623
|
ie.map((ze) => ge.createElement(i.Weekday, { "aria-label": Ie(ze, l.options, l), className: a[Fe.Weekday], key: String(ze), style: w == null ? void 0 : w[Fe.Weekday], scope: "col" }, R(ze, l.options, l)))
|
|
14624
14624
|
),
|
|
14625
14625
|
ge.createElement(i.Weeks, { "data-animated-weeks": n.animate ? "true" : void 0, className: a[Fe.Weeks], style: w == null ? void 0 : w[Fe.Weeks] }, We.weeks.map((ze) => ge.createElement(
|
|
@@ -14866,7 +14866,7 @@ const xl = (t) => {
|
|
|
14866
14866
|
}, [S, k]);
|
|
14867
14867
|
const D = (W) => {
|
|
14868
14868
|
n == null || n(wS(W, s));
|
|
14869
|
-
},
|
|
14869
|
+
}, O = (W) => {
|
|
14870
14870
|
if (!W) {
|
|
14871
14871
|
n == null || n(void 0), E(!1);
|
|
14872
14872
|
return;
|
|
@@ -14920,7 +14920,7 @@ const xl = (t) => {
|
|
|
14920
14920
|
);
|
|
14921
14921
|
} else
|
|
14922
14922
|
v(""), n == null || n(void 0);
|
|
14923
|
-
},
|
|
14923
|
+
}, L = (W) => {
|
|
14924
14924
|
const $ = g;
|
|
14925
14925
|
if (/^\d$/.test(W.key) && ($.length === 4 || $.length === 7)) {
|
|
14926
14926
|
W.preventDefault();
|
|
@@ -14970,7 +14970,7 @@ const xl = (t) => {
|
|
|
14970
14970
|
type: "text",
|
|
14971
14971
|
value: g,
|
|
14972
14972
|
onChange: R,
|
|
14973
|
-
onKeyDown:
|
|
14973
|
+
onKeyDown: L,
|
|
14974
14974
|
placeholder: r,
|
|
14975
14975
|
className: Q(
|
|
14976
14976
|
"pr-8",
|
|
@@ -15012,7 +15012,7 @@ const xl = (t) => {
|
|
|
15012
15012
|
{
|
|
15013
15013
|
mode: "single",
|
|
15014
15014
|
selected: k,
|
|
15015
|
-
onSelect:
|
|
15015
|
+
onSelect: O,
|
|
15016
15016
|
month: d,
|
|
15017
15017
|
onMonthChange: f,
|
|
15018
15018
|
captionLayout: "dropdown",
|
|
@@ -15032,7 +15032,7 @@ const xl = (t) => {
|
|
|
15032
15032
|
className: "flex-1 cursor-pointer",
|
|
15033
15033
|
onClick: () => {
|
|
15034
15034
|
const W = /* @__PURE__ */ new Date();
|
|
15035
|
-
z(W) ||
|
|
15035
|
+
z(W) || O(
|
|
15036
15036
|
new Date(
|
|
15037
15037
|
W.getFullYear(),
|
|
15038
15038
|
W.getMonth(),
|
|
@@ -15054,7 +15054,7 @@ const xl = (t) => {
|
|
|
15054
15054
|
className: "flex-1 cursor-pointer",
|
|
15055
15055
|
onClick: () => {
|
|
15056
15056
|
const W = /* @__PURE__ */ new Date();
|
|
15057
|
-
W.setDate(W.getDate() + 1), z(W) ||
|
|
15057
|
+
W.setDate(W.getDate() + 1), z(W) || O(
|
|
15058
15058
|
new Date(
|
|
15059
15059
|
W.getFullYear(),
|
|
15060
15060
|
W.getMonth(),
|
|
@@ -15087,172 +15087,180 @@ const tg = y.forwardRef(
|
|
|
15087
15087
|
className: i,
|
|
15088
15088
|
clearable: s = !0,
|
|
15089
15089
|
sendUTC: o = !1,
|
|
15090
|
-
|
|
15091
|
-
|
|
15092
|
-
|
|
15090
|
+
popoverContentClassName: l,
|
|
15091
|
+
...c
|
|
15092
|
+
}, a) => {
|
|
15093
|
+
const [h, u] = y.useState(!1), [m, b] = y.useState(null), [C, S] = y.useState(0);
|
|
15093
15094
|
y.useEffect(() => {
|
|
15094
|
-
|
|
15095
|
-
}, [
|
|
15096
|
-
const
|
|
15097
|
-
|
|
15098
|
-
},
|
|
15095
|
+
h && (b(null), S(0));
|
|
15096
|
+
}, [h]);
|
|
15097
|
+
const E = (R) => {
|
|
15098
|
+
R.stopPropagation(), n == null || n({ from: void 0, to: void 0 }), b(null), S(0);
|
|
15099
|
+
}, d = () => t != null && t.from ? t.to ? `${Gt(new Date(t.from), "LLL dd, y")} - ${Gt(
|
|
15099
15100
|
new Date(t.to),
|
|
15100
15101
|
"LLL dd, y"
|
|
15101
|
-
)}` : Gt(new Date(t.from), "LLL dd, y") : r,
|
|
15102
|
-
if (!
|
|
15102
|
+
)}` : Gt(new Date(t.from), "LLL dd, y") : r, f = (R) => {
|
|
15103
|
+
if (!R || !R.from) return { from: void 0, to: void 0 };
|
|
15103
15104
|
if (o) {
|
|
15104
|
-
const
|
|
15105
|
+
const L = new Date(
|
|
15105
15106
|
Date.UTC(
|
|
15106
|
-
|
|
15107
|
-
|
|
15108
|
-
|
|
15107
|
+
R.from.getFullYear(),
|
|
15108
|
+
R.from.getMonth(),
|
|
15109
|
+
R.from.getDate(),
|
|
15109
15110
|
0,
|
|
15110
15111
|
0,
|
|
15111
15112
|
0
|
|
15112
15113
|
)
|
|
15113
|
-
).toISOString(),
|
|
15114
|
+
).toISOString(), P = R.to ? new Date(
|
|
15114
15115
|
Date.UTC(
|
|
15115
|
-
|
|
15116
|
-
|
|
15117
|
-
|
|
15116
|
+
R.to.getFullYear(),
|
|
15117
|
+
R.to.getMonth(),
|
|
15118
|
+
R.to.getDate(),
|
|
15118
15119
|
0,
|
|
15119
15120
|
0,
|
|
15120
15121
|
0
|
|
15121
15122
|
)
|
|
15122
15123
|
).toISOString() : void 0;
|
|
15123
|
-
return { from:
|
|
15124
|
+
return { from: L, to: P };
|
|
15124
15125
|
} else
|
|
15125
15126
|
return {
|
|
15126
|
-
from:
|
|
15127
|
-
to:
|
|
15127
|
+
from: R.from ? Gt(R.from, "yyyy-MM-dd") : void 0,
|
|
15128
|
+
to: R.to ? Gt(R.to, "yyyy-MM-dd") : void 0
|
|
15128
15129
|
};
|
|
15129
|
-
},
|
|
15130
|
-
if (!
|
|
15131
|
-
|
|
15130
|
+
}, g = (R) => {
|
|
15131
|
+
if (!R) {
|
|
15132
|
+
b(null), S(0);
|
|
15132
15133
|
return;
|
|
15133
15134
|
}
|
|
15134
|
-
const
|
|
15135
|
-
if (
|
|
15136
|
-
|
|
15135
|
+
const L = C + 1;
|
|
15136
|
+
if (S(L), !m || L === 1) {
|
|
15137
|
+
b({ from: R.from, to: void 0 });
|
|
15137
15138
|
return;
|
|
15138
15139
|
}
|
|
15139
|
-
if (
|
|
15140
|
-
const
|
|
15141
|
-
from:
|
|
15142
|
-
to:
|
|
15140
|
+
if (L === 2) {
|
|
15141
|
+
const P = {
|
|
15142
|
+
from: m.from,
|
|
15143
|
+
to: R.to || R.from
|
|
15143
15144
|
};
|
|
15144
|
-
|
|
15145
|
-
}
|
|
15146
|
-
},
|
|
15147
|
-
if (!(
|
|
15148
|
-
const
|
|
15149
|
-
n == null || n(
|
|
15150
|
-
},
|
|
15151
|
-
|
|
15152
|
-
},
|
|
15145
|
+
b(P), S(0);
|
|
15146
|
+
}
|
|
15147
|
+
}, x = () => {
|
|
15148
|
+
if (!(m != null && m.from)) return;
|
|
15149
|
+
const R = f(m);
|
|
15150
|
+
n == null || n(R), u(!1), b(null), S(0);
|
|
15151
|
+
}, p = (R, L) => {
|
|
15152
|
+
b({ from: R, to: L }), S(0);
|
|
15153
|
+
}, w = m || (() => {
|
|
15153
15154
|
if (!(t != null && t.from)) return;
|
|
15154
|
-
const
|
|
15155
|
-
return { from:
|
|
15156
|
-
})() || void 0,
|
|
15157
|
-
{ label: "Today", from:
|
|
15158
|
-
{ label: "Yesterday", from:
|
|
15155
|
+
const R = typeof t.from == "string" ? new Date(t.from) : t.from, L = t.to ? typeof t.to == "string" ? new Date(t.to) : t.to : void 0;
|
|
15156
|
+
return { from: R, to: L };
|
|
15157
|
+
})() || void 0, k = !!(m != null && m.from), N = m != null && m.from && (m != null && m.to) ? `Apply: ${Gt(m.from, "MMM dd")} – ${Gt(m.to, "MMM dd")}` : m != null && m.from ? `Apply: ${Gt(m.from, "MMM dd")}` : "Apply", T = /* @__PURE__ */ new Date(), D = gl(T, 1), O = [
|
|
15158
|
+
{ label: "Today", from: T, to: T },
|
|
15159
|
+
{ label: "Yesterday", from: D, to: D },
|
|
15159
15160
|
{
|
|
15160
15161
|
label: "This Week",
|
|
15161
|
-
from: Fn(
|
|
15162
|
-
to: zo(
|
|
15162
|
+
from: Fn(T, { weekStartsOn: 0 }),
|
|
15163
|
+
to: zo(T, { weekStartsOn: 0 })
|
|
15163
15164
|
},
|
|
15164
15165
|
{
|
|
15165
15166
|
label: "Last Week",
|
|
15166
|
-
from: Fn(gl(
|
|
15167
|
-
to: zo(gl(
|
|
15167
|
+
from: Fn(gl(T, 7), { weekStartsOn: 0 }),
|
|
15168
|
+
to: zo(gl(T, 7), { weekStartsOn: 0 })
|
|
15168
15169
|
},
|
|
15169
|
-
{ label: "This Month", from: ac(
|
|
15170
|
+
{ label: "This Month", from: ac(T), to: oc(T) },
|
|
15170
15171
|
{
|
|
15171
15172
|
label: "Last Month",
|
|
15172
|
-
from: ac(gd(
|
|
15173
|
-
to: oc(gd(
|
|
15173
|
+
from: ac(gd(T)),
|
|
15174
|
+
to: oc(gd(T))
|
|
15174
15175
|
}
|
|
15175
15176
|
];
|
|
15176
|
-
return /* @__PURE__ */ _("div", { className: Q("grid gap-2 relative", i), children: /* @__PURE__ */ X(bp, { open:
|
|
15177
|
+
return /* @__PURE__ */ _("div", { className: Q("grid gap-2 relative", i), children: /* @__PURE__ */ X(bp, { open: h, onOpenChange: u, children: [
|
|
15177
15178
|
/* @__PURE__ */ _(yp, { asChild: !0, children: /* @__PURE__ */ X(
|
|
15178
15179
|
Ge,
|
|
15179
15180
|
{
|
|
15180
|
-
ref:
|
|
15181
|
+
ref: a,
|
|
15181
15182
|
id: "date-range",
|
|
15182
15183
|
variant: "outline",
|
|
15183
15184
|
className: Q(
|
|
15184
15185
|
"w-full justify-between text-left font-normal",
|
|
15185
15186
|
!(t != null && t.from) && "text-muted-foreground"
|
|
15186
15187
|
),
|
|
15187
|
-
...
|
|
15188
|
+
...c,
|
|
15188
15189
|
children: [
|
|
15189
15190
|
/* @__PURE__ */ X("div", { className: "flex items-center gap-2", children: [
|
|
15190
15191
|
/* @__PURE__ */ _(No, { className: "h-4 w-4" }),
|
|
15191
|
-
|
|
15192
|
+
d()
|
|
15192
15193
|
] }),
|
|
15193
15194
|
s && (t == null ? void 0 : t.from) && /* @__PURE__ */ _(
|
|
15194
15195
|
tr,
|
|
15195
15196
|
{
|
|
15196
15197
|
className: "h-4 w-4 cursor-pointer text-muted-foreground hover:text-foreground",
|
|
15197
|
-
onClick:
|
|
15198
|
+
onClick: E
|
|
15198
15199
|
}
|
|
15199
15200
|
)
|
|
15200
15201
|
]
|
|
15201
15202
|
}
|
|
15202
15203
|
) }),
|
|
15203
|
-
/* @__PURE__ */ _(
|
|
15204
|
-
|
|
15205
|
-
|
|
15206
|
-
|
|
15207
|
-
|
|
15208
|
-
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
|
|
15218
|
-
|
|
15219
|
-
/* @__PURE__ */ _(
|
|
15220
|
-
Jp,
|
|
15221
|
-
{
|
|
15222
|
-
initialFocus: !0,
|
|
15223
|
-
mode: "range",
|
|
15224
|
-
defaultMonth: (v == null ? void 0 : v.from) || void 0,
|
|
15225
|
-
selected: v,
|
|
15226
|
-
onSelect: f,
|
|
15227
|
-
numberOfMonths: 2
|
|
15228
|
-
}
|
|
15229
|
-
),
|
|
15230
|
-
/* @__PURE__ */ _("div", { className: "flex items-center justify-end gap-2 border-t px-4 py-3", children: /* @__PURE__ */ X("div", { className: "flex gap-2", children: [
|
|
15231
|
-
/* @__PURE__ */ _(
|
|
15232
|
-
Ge,
|
|
15233
|
-
{
|
|
15234
|
-
variant: "outline",
|
|
15235
|
-
size: "sm",
|
|
15236
|
-
className: "cursor-pointer",
|
|
15237
|
-
onClick: () => {
|
|
15238
|
-
m(null), C(0), h(!1);
|
|
15204
|
+
/* @__PURE__ */ _(
|
|
15205
|
+
c0,
|
|
15206
|
+
{
|
|
15207
|
+
className: Q("w-auto p-0 z-[100]", l),
|
|
15208
|
+
align: "start",
|
|
15209
|
+
children: /* @__PURE__ */ X("div", { className: "flex", children: [
|
|
15210
|
+
/* @__PURE__ */ X("div", { className: "flex flex-col gap-1 border-r p-3 min-w-[140px]", children: [
|
|
15211
|
+
/* @__PURE__ */ _("div", { className: "text-sm font-medium mb-1 text-muted-foreground", children: "Quick Select" }),
|
|
15212
|
+
O.map((R) => /* @__PURE__ */ _(
|
|
15213
|
+
Ge,
|
|
15214
|
+
{
|
|
15215
|
+
variant: "ghost",
|
|
15216
|
+
size: "sm",
|
|
15217
|
+
className: "justify-start font-normal cursor-pointer",
|
|
15218
|
+
onClick: () => p(R.from, R.to),
|
|
15219
|
+
children: R.label
|
|
15239
15220
|
},
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
),
|
|
15243
|
-
/* @__PURE__ */
|
|
15244
|
-
|
|
15245
|
-
|
|
15246
|
-
|
|
15247
|
-
|
|
15248
|
-
|
|
15249
|
-
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15221
|
+
R.label
|
|
15222
|
+
))
|
|
15223
|
+
] }),
|
|
15224
|
+
/* @__PURE__ */ X("div", { className: "flex flex-col", children: [
|
|
15225
|
+
/* @__PURE__ */ _(
|
|
15226
|
+
Jp,
|
|
15227
|
+
{
|
|
15228
|
+
initialFocus: !0,
|
|
15229
|
+
mode: "range",
|
|
15230
|
+
defaultMonth: (w == null ? void 0 : w.from) || void 0,
|
|
15231
|
+
selected: w,
|
|
15232
|
+
onSelect: g,
|
|
15233
|
+
numberOfMonths: 2
|
|
15234
|
+
}
|
|
15235
|
+
),
|
|
15236
|
+
/* @__PURE__ */ _("div", { className: "flex items-center justify-end gap-2 border-t px-4 py-3", children: /* @__PURE__ */ X("div", { className: "flex gap-2", children: [
|
|
15237
|
+
/* @__PURE__ */ _(
|
|
15238
|
+
Ge,
|
|
15239
|
+
{
|
|
15240
|
+
variant: "outline",
|
|
15241
|
+
size: "sm",
|
|
15242
|
+
className: "cursor-pointer",
|
|
15243
|
+
onClick: () => {
|
|
15244
|
+
b(null), S(0), u(!1);
|
|
15245
|
+
},
|
|
15246
|
+
children: "Cancel"
|
|
15247
|
+
}
|
|
15248
|
+
),
|
|
15249
|
+
/* @__PURE__ */ _(
|
|
15250
|
+
Ge,
|
|
15251
|
+
{
|
|
15252
|
+
size: "sm",
|
|
15253
|
+
disabled: !k,
|
|
15254
|
+
className: "cursor-pointer",
|
|
15255
|
+
onClick: x,
|
|
15256
|
+
children: N
|
|
15257
|
+
}
|
|
15258
|
+
)
|
|
15259
|
+
] }) })
|
|
15260
|
+
] })
|
|
15261
|
+
] })
|
|
15262
|
+
}
|
|
15263
|
+
)
|
|
15256
15264
|
] }) });
|
|
15257
15265
|
}
|
|
15258
15266
|
);
|
|
@@ -15861,12 +15869,12 @@ const ng = {
|
|
|
15861
15869
|
const w = (function(k) {
|
|
15862
15870
|
return !this.isComponent(k) && !this.isList(k);
|
|
15863
15871
|
}).bind(o);
|
|
15864
|
-
for (let k = 0, N = s.length, T, D,
|
|
15872
|
+
for (let k = 0, N = s.length, T, D, O, R, L, P, z, V, W; k < N; k++) {
|
|
15865
15873
|
if (D = s[k], D.childNodes.length === 0 && !o._isIgnoreNodeChange(D)) {
|
|
15866
15874
|
o.removeItem(D);
|
|
15867
15875
|
continue;
|
|
15868
15876
|
}
|
|
15869
|
-
if (R = s[k + 1],
|
|
15877
|
+
if (R = s[k + 1], L = D.parentNode, P = R ? R.parentNode : null, O = o.isListCell(D), W = o.isRangeFormatElement(L) ? L : null, z = O && !o.isWysiwygDiv(L) ? L.parentNode : L, V = O && !o.isWysiwygDiv(L) ? !R || o.isListCell(z) ? L : L.nextSibling : D.nextSibling, T = o.createElement("LI"), o.copyFormatAttributes(T, D), k === 0 && m.sc === D && (m.sc = T), k === N - 1 && m.ec === D && (m.ec = T), o.isComponent(D)) {
|
|
15870
15878
|
const $ = /^HR$/i.test(D.nodeName);
|
|
15871
15879
|
$ || (T.innerHTML = "<br>"), T.innerHTML += D.outerHTML, $ && (T.innerHTML += "<br>");
|
|
15872
15880
|
} else {
|
|
@@ -15874,7 +15882,7 @@ const ng = {
|
|
|
15874
15882
|
for (; $[0]; )
|
|
15875
15883
|
T.appendChild($[0]);
|
|
15876
15884
|
}
|
|
15877
|
-
g.appendChild(T), (!R || z !== P || o.isRangeFormatElement(V)) && (x || (x = g), (!d || !R || z !== P) && !(R && o.isList(P) && P ===
|
|
15885
|
+
g.appendChild(T), (!R || z !== P || o.isRangeFormatElement(V)) && (x || (x = g), (!d || !R || z !== P) && !(R && o.isList(P) && P === L) && g.parentNode !== z && z.insertBefore(g, V)), o.removeItem(D), d && p === null && (p = g.children.length - 1), R && (o.getRangeFormatElement(P, w) !== o.getRangeFormatElement(L, w) || o.isList(P) && o.isList(L) && o.getElementDepth(P) !== o.getElementDepth(L)) && (g = o.createElement(t)), W && W.children.length === 0 && o.removeItem(W);
|
|
15878
15886
|
}
|
|
15879
15887
|
p && (x = x.children[p]), f && (v = g.children.length - 1, g.innerHTML += h.innerHTML, g.children[v], o.removeItem(h));
|
|
15880
15888
|
}
|
|
@@ -16202,19 +16210,19 @@ const ng = {
|
|
|
16202
16210
|
const b = [], C = [];
|
|
16203
16211
|
for (let S = 0, E = r._rowCnt, d, f, g, x, p, v; S < E; S++) {
|
|
16204
16212
|
d = a[S], f = c, p = !1, g = d.cells, v = 0;
|
|
16205
|
-
for (let w = 0, k, N = g.length, T, D,
|
|
16213
|
+
for (let w = 0, k, N = g.length, T, D, O; w < N && (k = g[w], !!k); w++)
|
|
16206
16214
|
if (T = k.rowSpan - 1, D = k.colSpan - 1, s) {
|
|
16207
|
-
if (
|
|
16215
|
+
if (O = w + v, u.length > 0) {
|
|
16208
16216
|
const R = !g[w + 1];
|
|
16209
|
-
for (let
|
|
16210
|
-
P = u[
|
|
16217
|
+
for (let L = 0, P; L < u.length; L++)
|
|
16218
|
+
P = u[L], !(P.row > S) && (O >= P.index ? (v += P.cs, O = w + v, P.rs -= 1, P.row = S + 1, P.rs < 1 && (u.splice(L, 1), L--)) : R && (P.rs -= 1, P.row = S + 1, P.rs < 1 && (u.splice(L, 1), L--)));
|
|
16211
16219
|
}
|
|
16212
16220
|
T > 0 && h.push({
|
|
16213
16221
|
rs: T,
|
|
16214
16222
|
cs: D + 1,
|
|
16215
|
-
index:
|
|
16223
|
+
index: O,
|
|
16216
16224
|
row: -1
|
|
16217
|
-
}),
|
|
16225
|
+
}), O >= f && O + D <= f + l ? b.push(k) : O <= f + l && O + D >= f ? k.colSpan -= i.getOverlapRangeAtIndex(c, c + l, O, O + D) : T > 0 && (O < f || O + D > f + l) && C.push({
|
|
16218
16226
|
cell: k,
|
|
16219
16227
|
i: S,
|
|
16220
16228
|
rs: S + T
|
|
@@ -16229,8 +16237,8 @@ const ng = {
|
|
|
16229
16237
|
f -= D;
|
|
16230
16238
|
}
|
|
16231
16239
|
if (!p) {
|
|
16232
|
-
for (let R = 0,
|
|
16233
|
-
|
|
16240
|
+
for (let R = 0, L; R < u.length; R++)
|
|
16241
|
+
L = u[R], f -= L.cs, L.rs -= 1, L.rs < 1 && (u.splice(R, 1), R--);
|
|
16234
16242
|
p = !0;
|
|
16235
16243
|
}
|
|
16236
16244
|
}
|
|
@@ -16578,16 +16586,16 @@ const ng = {
|
|
|
16578
16586
|
const f = d.length - 1;
|
|
16579
16587
|
let g = d[f].parentNode, x = s.cloneNode(!1);
|
|
16580
16588
|
const p = x;
|
|
16581
|
-
for (let v = f, w, k, N, T, D,
|
|
16589
|
+
for (let v = f, w, k, N, T, D, O, R = !0; v >= 0; v--)
|
|
16582
16590
|
if (w = d[v], w !== (d[v + 1] ? d[v + 1].parentNode : null)) {
|
|
16583
|
-
if (
|
|
16584
|
-
return
|
|
16585
|
-
}), (g !== w.parentNode ||
|
|
16591
|
+
if (O = u.isComponent(w), k = O ? "" : w.innerHTML.replace(/(?!>)\s+(?=<)|\n/g, " "), N = u.getParentElement(w, function(L) {
|
|
16592
|
+
return L.parentNode === g;
|
|
16593
|
+
}), (g !== w.parentNode || O) && (u.isFormatElement(g) ? (g.parentNode.insertBefore(x, g.nextSibling), g = g.parentNode) : (g.insertBefore(x, N ? N.nextSibling : null), g = w.parentNode), T = x.nextSibling, T && x.nodeName === T.nodeName && u.isSameAttributes(x, T) && (x.innerHTML += "<BR>" + T.innerHTML, u.removeItem(T)), x = s.cloneNode(!1), R = !0), D = x.innerHTML, x.innerHTML = (R || !k || !D || /<br>$/i.test(k) ? k : k + "<BR>") + D, v === 0) {
|
|
16586
16594
|
g.insertBefore(x, w), T = w.nextSibling, T && x.nodeName === T.nodeName && u.isSameAttributes(x, T) && (x.innerHTML += "<BR>" + T.innerHTML, u.removeItem(T));
|
|
16587
|
-
const
|
|
16588
|
-
|
|
16595
|
+
const L = x.previousSibling;
|
|
16596
|
+
L && x.nodeName === L.nodeName && u.isSameAttributes(x, L) && (L.innerHTML += "<BR>" + x.innerHTML, u.removeItem(x));
|
|
16589
16597
|
}
|
|
16590
|
-
|
|
16598
|
+
O || u.removeItem(w), k && (R = !1);
|
|
16591
16599
|
}
|
|
16592
16600
|
this.setRange(p, 0, p, 0);
|
|
16593
16601
|
} else {
|
|
@@ -17482,7 +17490,7 @@ var xg = { exports: {} };
|
|
|
17482
17490
|
const f = this.util.getParentElement(s, this.util.isComponent), g = this.util.getParentElement(s, "FIGURE"), x = this.plugins.resizing._module_getSizeX.call(this, c, s, g, f) || "auto", p = c._onlyPercentage && o === "image" ? "" : ", " + (this.plugins.resizing._module_getSizeY.call(this, c, s, g, f) || "auto");
|
|
17483
17491
|
this.util.changeTxt(l.resizeDisplay, this.lang.dialogBox[d] + " (" + x + p + ")"), l.resizeButtonGroup.style.display = c._resizing ? "" : "none";
|
|
17484
17492
|
const v = c._resizing && !c._resizeDotHide && !c._onlyPercentage ? "flex" : "none", w = l.resizeHandles;
|
|
17485
|
-
for (let R = 0,
|
|
17493
|
+
for (let R = 0, L = w.length; R < L; R++)
|
|
17486
17494
|
w[R].style.display = v;
|
|
17487
17495
|
if (c._resizing) {
|
|
17488
17496
|
const R = l.rotationButtons;
|
|
@@ -17494,11 +17502,11 @@ var xg = { exports: {} };
|
|
|
17494
17502
|
l.alignButton.style.display = "";
|
|
17495
17503
|
const R = l.alignMenuList;
|
|
17496
17504
|
this.util.changeElement(l.alignButton.firstElementChild, l.alignIcons[d]);
|
|
17497
|
-
for (let
|
|
17498
|
-
R[
|
|
17505
|
+
for (let L = 0, P = R.length; L < P; L++)
|
|
17506
|
+
R[L].getAttribute("data-value") === d ? this.util.addClass(R[L], "on") : this.util.removeClass(R[L], "on");
|
|
17499
17507
|
}
|
|
17500
17508
|
const k = l.percentageButtons, N = /%$/.test(s.style.width) && /%$/.test(f.style.width) ? this.util.getNumber(f.style.width, 0) / 100 + "" : "";
|
|
17501
|
-
for (let R = 0,
|
|
17509
|
+
for (let R = 0, L = k.length; R < L; R++)
|
|
17502
17510
|
k[R].getAttribute("data-value") === N ? this.util.addClass(k[R], "active") : this.util.removeClass(k[R], "active");
|
|
17503
17511
|
c._captionShow ? (l.captionButton.style.display = "", this.util.getChildElement(s.parentNode, "figcaption") ? (this.util.addClass(l.captionButton, "active"), c._captionChecked = !0) : (this.util.removeClass(l.captionButton, "active"), c._captionChecked = !1)) : l.captionButton.style.display = "none", a.style.display = "block";
|
|
17504
17512
|
const T = { left: 0, top: 50 };
|
|
@@ -17507,8 +17515,8 @@ var xg = { exports: {} };
|
|
|
17507
17515
|
this.util.setDisabledButtons.call(this.util, !1, this.resizingDisabledButtons), this.history._resetCachingButton();
|
|
17508
17516
|
};
|
|
17509
17517
|
this.controllersOn(a, l.resizeButton, D.bind(this), s, o), this.util.setDisabledButtons(!0, this.resizingDisabledButtons), l._resize_w = b, l._resize_h = C;
|
|
17510
|
-
const
|
|
17511
|
-
return l._origin_w =
|
|
17518
|
+
const O = (s.getAttribute("origin-size") || "").split(",");
|
|
17519
|
+
return l._origin_w = O[0] || s.naturalWidth, l._origin_h = O[1] || s.naturalHeight, {
|
|
17512
17520
|
w: b,
|
|
17513
17521
|
h: C,
|
|
17514
17522
|
t: S,
|
|
@@ -21560,8 +21568,8 @@ body{height: min-content; overflow: hidden;}
|
|
|
21560
21568
|
e:
|
|
21561
21569
|
for (let p = 0, v, w, k, N, T; p < n.length; p++)
|
|
21562
21570
|
if (v = !1, T = "", N = n[p], C = this._createModuleGroup(), typeof N == "object") {
|
|
21563
|
-
for (let D = 0,
|
|
21564
|
-
if (b = N[D],
|
|
21571
|
+
for (let D = 0, O; D < N.length; D++) {
|
|
21572
|
+
if (b = N[D], O = !1, /^\%\d+/.test(b) && D === 0) {
|
|
21565
21573
|
N[0] = b.replace(/[^\d]/g, ""), u.push(N), n.splice(p--, 1);
|
|
21566
21574
|
continue e;
|
|
21567
21575
|
}
|
|
@@ -21577,11 +21585,11 @@ body{height: min-content; overflow: hidden;}
|
|
|
21577
21585
|
continue;
|
|
21578
21586
|
}
|
|
21579
21587
|
if (/^\:/.test(b)) {
|
|
21580
|
-
|
|
21588
|
+
O = !0;
|
|
21581
21589
|
const R = b.match(/^\:([^\-]+)\-([^\-]+)\-([^\-]+)/);
|
|
21582
21590
|
k = "__se__" + R[1].trim();
|
|
21583
|
-
const
|
|
21584
|
-
m = ["se-btn-more",
|
|
21591
|
+
const L = R[2].trim(), P = R[3].trim();
|
|
21592
|
+
m = ["se-btn-more", L, k, "MORE", P];
|
|
21585
21593
|
} else
|
|
21586
21594
|
m = a[b];
|
|
21587
21595
|
if (E = b, !m) {
|
|
@@ -21590,7 +21598,7 @@ body{height: min-content; overflow: hidden;}
|
|
|
21590
21598
|
m = [R.buttonClass, R.title, R.name, R.display, R.innerHTML, R._disabled];
|
|
21591
21599
|
}
|
|
21592
21600
|
}
|
|
21593
|
-
S = this._createButton(m[0], m[1], m[2], m[3], m[4], m[5], c), (v ? w : C.ul).appendChild(S.li), r[E] && (h[E] = S.button),
|
|
21601
|
+
S = this._createButton(m[0], m[1], m[2], m[3], m[4], m[5], c), (v ? w : C.ul).appendChild(S.li), r[E] && (h[E] = S.button), O && (v = !0, w = Ye.createElement("DIV"), w.className = "se-more-layer " + k, w.innerHTML = '<div class="se-more-form"><ul class="se-menu-list"' + (T ? ' style="float: ' + T + ';"' : "") + "></ul></div>", f.appendChild(w), w = w.firstElementChild.firstElementChild);
|
|
21594
21602
|
}
|
|
21595
21603
|
if (d) {
|
|
21596
21604
|
const D = s.cloneNode(!1);
|
|
@@ -22368,11 +22376,11 @@ function PS(t, n, r, i, s, o) {
|
|
|
22368
22376
|
k += N.offsetTop, N = N.offsetParent;
|
|
22369
22377
|
const T = k;
|
|
22370
22378
|
this._isBalloon ? k += g.offsetTop + d.offsetHeight : k -= d.offsetHeight;
|
|
22371
|
-
const D = p.top,
|
|
22372
|
-
if (
|
|
22373
|
-
let P = -1 * (
|
|
22374
|
-
const z = D - R + P, V =
|
|
22375
|
-
V >
|
|
22379
|
+
const D = p.top, O = f.offsetHeight, R = this.getGlobalScrollOffset().top, L = c.innerHeight - (D - R + T + d.parentElement.offsetHeight);
|
|
22380
|
+
if (L < O) {
|
|
22381
|
+
let P = -1 * (O - T + 3);
|
|
22382
|
+
const z = D - R + P, V = O + (z < 0 ? z : 0);
|
|
22383
|
+
V > L ? (f.style.height = V + "px", P = -1 * (V - T + 3)) : (f.style.height = L + "px", P = T + d.parentElement.offsetHeight), f.style.top = P + "px";
|
|
22376
22384
|
} else
|
|
22377
22385
|
f.style.top = T + d.parentElement.offsetHeight + "px";
|
|
22378
22386
|
f.style.visibility = "";
|
|
@@ -22443,8 +22451,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
22443
22451
|
d.style.top = p.top + v + x.top + "px";
|
|
22444
22452
|
const w = p.left - t.element.wysiwygFrame.scrollLeft + x.left, k = d.offsetWidth, N = f.offsetWidth, T = a.hasClass(d.firstElementChild, "se-arrow") ? d.firstElementChild : null;
|
|
22445
22453
|
if (s.rtl) {
|
|
22446
|
-
const D = k > N ? k - N : 0,
|
|
22447
|
-
d.style.left = w - D +
|
|
22454
|
+
const D = k > N ? k - N : 0, O = D > 0 ? 0 : N - k;
|
|
22455
|
+
d.style.left = w - D + O + "px", D > 0 && T && (T.style.left = (k - 14 < 10 + D ? k - 14 : 10 + D) + "px");
|
|
22448
22456
|
const R = t.element.wysiwygFrame.offsetLeft - d.offsetLeft;
|
|
22449
22457
|
R > 0 && (d.style.left = "0px", T && (T.style.left = R + "px"));
|
|
22450
22458
|
} else {
|
|
@@ -22713,15 +22721,15 @@ function PS(t, n, r, i, s, o) {
|
|
|
22713
22721
|
const D = function(P) {
|
|
22714
22722
|
return a.isTable(P) ? /^TABLE$/i.test(P.nodeName) : !0;
|
|
22715
22723
|
};
|
|
22716
|
-
let
|
|
22717
|
-
a.isTable(
|
|
22718
|
-
const
|
|
22724
|
+
let O = a.getRangeFormatElement(w, D), R = a.getRangeFormatElement(k, D);
|
|
22725
|
+
a.isTable(O) && a.isListCell(O.parentNode) && (O = O.parentNode), a.isTable(R) && a.isListCell(R.parentNode) && (R = R.parentNode);
|
|
22726
|
+
const L = O === R;
|
|
22719
22727
|
for (let P = 0, z = v.length, V; P < z; P++) {
|
|
22720
|
-
if (V = v[P], w === V || !
|
|
22728
|
+
if (V = v[P], w === V || !L && V === O) {
|
|
22721
22729
|
N = P;
|
|
22722
22730
|
continue;
|
|
22723
22731
|
}
|
|
22724
|
-
if (k === V || !
|
|
22732
|
+
if (k === V || !L && V === R) {
|
|
22725
22733
|
T = P;
|
|
22726
22734
|
break;
|
|
22727
22735
|
}
|
|
@@ -22925,7 +22933,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
22925
22933
|
if (this.isReadOnly || g && !this.checkCharCount(d, null))
|
|
22926
22934
|
return null;
|
|
22927
22935
|
let x = null, p = this.getRange(), v = a.isListCell(p.commonAncestorContainer) ? p.commonAncestorContainer : a.getFormatElement(this.getSelectionNode(), null), w = a.isListCell(v) && (a.isListCell(d) || a.isList(d)), k, N, T, D = null;
|
|
22928
|
-
const
|
|
22936
|
+
const O = a.isFreeFormatElement(v), R = !O && (a.isFormatElement(d) || a.isRangeFormatElement(d)) || a.isComponent(d);
|
|
22929
22937
|
if (w && (T = f || a.isList(d) ? v.lastChild : v.nextElementSibling, D = a.isList(d) ? v : (T || v).parentNode), !f && (R || a.isComponent(d) || a.isMedia(d))) {
|
|
22930
22938
|
const F = this.isEdgePoint(p.endContainer, p.endOffset, "end"), H = this.removeNode(), G = H.container, q = G === H.prevContainer && p.collapsed ? null : H.prevContainer;
|
|
22931
22939
|
if (w && q)
|
|
@@ -22955,13 +22963,13 @@ function PS(t, n, r, i, s, o) {
|
|
|
22955
22963
|
}
|
|
22956
22964
|
}
|
|
22957
22965
|
p = !f && !R ? this.getRange_addLine(this.getRange(), null) : this.getRange();
|
|
22958
|
-
const
|
|
22966
|
+
const L = p.commonAncestorContainer, P = p.startOffset, z = p.endOffset, V = p.startContainer === L && a.isFormatElement(L), W = V && (L.childNodes[P] || L.childNodes[0]) || p.startContainer, $ = V && (L.childNodes[z] || L.childNodes[L.childNodes.length - 1]) || p.endContainer;
|
|
22959
22967
|
if (!w)
|
|
22960
22968
|
if (f)
|
|
22961
22969
|
k = f.parentNode, f = f.nextSibling, N = !0;
|
|
22962
22970
|
else if (k = W, W.nodeType === 3 && (k = W.parentNode), p.collapsed)
|
|
22963
|
-
if (
|
|
22964
|
-
|
|
22971
|
+
if (L.nodeType === 3)
|
|
22972
|
+
L.textContent.length > z ? f = L.splitText(z) : f = L.nextSibling;
|
|
22965
22973
|
else if (a.isBreak(k))
|
|
22966
22974
|
f = k, k = k.parentNode;
|
|
22967
22975
|
else {
|
|
@@ -22985,8 +22993,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
22985
22993
|
J && G === q && (f = f.nextSibling);
|
|
22986
22994
|
} else
|
|
22987
22995
|
f = null;
|
|
22988
|
-
else a.isWysiwygDiv(G) && !a.isFormatElement(d) ? (k = G.appendChild(a.createElement(s.defaultTag)), f = null) : (f = R ? $ : G === q ? G.nextSibling : G, k = !f || !f.parentNode ?
|
|
22989
|
-
for (; f && !a.isFormatElement(f) && f.parentNode !==
|
|
22996
|
+
else a.isWysiwygDiv(G) && !a.isFormatElement(d) ? (k = G.appendChild(a.createElement(s.defaultTag)), f = null) : (f = R ? $ : G === q ? G.nextSibling : G, k = !f || !f.parentNode ? L : f.parentNode);
|
|
22997
|
+
for (; f && !a.isFormatElement(f) && f.parentNode !== L; )
|
|
22990
22998
|
f = f.parentNode;
|
|
22991
22999
|
}
|
|
22992
23000
|
try {
|
|
@@ -23003,7 +23011,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23003
23011
|
}
|
|
23004
23012
|
F.childNodes.length === 0 && k !== F && a.removeItem(F);
|
|
23005
23013
|
}
|
|
23006
|
-
if (R && !
|
|
23014
|
+
if (R && !O && !a.isRangeFormatElement(k) && !a.isListCell(k) && !a.isWysiwygDiv(k) && (f = k.nextElementSibling, k = k.parentNode), a.isWysiwygDiv(k) && (d.nodeType === 3 || a.isBreak(d))) {
|
|
23007
23015
|
const F = a.createElement(s.defaultTag);
|
|
23008
23016
|
F.appendChild(d), x = d, d = F;
|
|
23009
23017
|
}
|
|
@@ -23036,10 +23044,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
23036
23044
|
q === d && (d = J), a.removeItem(q);
|
|
23037
23045
|
}
|
|
23038
23046
|
if ((a.isFormatElement(d) || a.isComponent(d)) && W === $) {
|
|
23039
|
-
const H = a.getFormatElement(
|
|
23047
|
+
const H = a.getFormatElement(L, null);
|
|
23040
23048
|
H && H.nodeType === 1 && a.isEmptyLine(H) && a.removeItem(H);
|
|
23041
23049
|
}
|
|
23042
|
-
if (
|
|
23050
|
+
if (O && (a.isFormatElement(d) || a.isRangeFormatElement(d)) && (d = this._setIntoFreeFormat(d)), !a.isComponent(d)) {
|
|
23043
23051
|
let H = 1;
|
|
23044
23052
|
if (d.nodeType === 3)
|
|
23045
23053
|
H = d.textContent.length, this.setRange(d, H, d, H);
|
|
@@ -23090,9 +23098,9 @@ function PS(t, n, r, i, s, o) {
|
|
|
23090
23098
|
const f = d.startOffset === 0, g = u.isEdgePoint(d.endContainer, d.endOffset, "end");
|
|
23091
23099
|
let x = null, p = null, v = null;
|
|
23092
23100
|
f && (p = a.getFormatElement(d.startContainer), p && (x = p.previousElementSibling, p = x)), g && (v = a.getFormatElement(d.endContainer), v = v && v.nextElementSibling);
|
|
23093
|
-
let w, k = 0, N = d.startContainer, T = d.endContainer, D = d.startOffset,
|
|
23101
|
+
let w, k = 0, N = d.startContainer, T = d.endContainer, D = d.startOffset, O = d.endOffset;
|
|
23094
23102
|
const R = d.commonAncestorContainer.nodeType === 3 && d.commonAncestorContainer.parentNode === N.parentNode ? N.parentNode : d.commonAncestorContainer;
|
|
23095
|
-
if (R === N && R === T && (N = R.children[D], T = R.children[
|
|
23103
|
+
if (R === N && R === T && (N = R.children[D], T = R.children[O], D = O = 0), !N || !T) return {
|
|
23096
23104
|
container: R,
|
|
23097
23105
|
offset: 0
|
|
23098
23106
|
};
|
|
@@ -23102,7 +23110,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23102
23110
|
offset: D,
|
|
23103
23111
|
prevContainer: N && N.parentNode ? N : null
|
|
23104
23112
|
};
|
|
23105
|
-
let
|
|
23113
|
+
let L = null, P = null;
|
|
23106
23114
|
const z = a.getListChildNodes(R, null);
|
|
23107
23115
|
let V = a.getArrayIndex(z, N), W = a.getArrayIndex(z, T);
|
|
23108
23116
|
if (z.length > 0 && V > -1 && W > -1) {
|
|
@@ -23120,7 +23128,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23120
23128
|
if (R.nodeType === 3)
|
|
23121
23129
|
return {
|
|
23122
23130
|
container: R,
|
|
23123
|
-
offset:
|
|
23131
|
+
offset: O
|
|
23124
23132
|
};
|
|
23125
23133
|
z.push(R), N = T = R;
|
|
23126
23134
|
} else if (N = T = z[0], a.isBreak(N) || a.onlyZeroWidthSpace(N))
|
|
@@ -23139,10 +23147,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
23139
23147
|
if (G === N) {
|
|
23140
23148
|
if (N.nodeType === 1) {
|
|
23141
23149
|
if (a.isComponent(N)) continue;
|
|
23142
|
-
|
|
23150
|
+
L = a.createTextNode(N.textContent);
|
|
23143
23151
|
} else
|
|
23144
|
-
G === T ? (
|
|
23145
|
-
if (
|
|
23152
|
+
G === T ? (L = a.createTextNode(N.substringData(0, D) + T.substringData(O, T.length - O)), k = D) : L = a.createTextNode(N.substringData(0, D));
|
|
23153
|
+
if (L.length > 0 ? N.data = L.data : this._nodeRemoveListItem(N), G === T) break;
|
|
23146
23154
|
continue;
|
|
23147
23155
|
}
|
|
23148
23156
|
if (G === T) {
|
|
@@ -23150,7 +23158,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23150
23158
|
if (a.isComponent(T)) continue;
|
|
23151
23159
|
P = a.createTextNode(T.textContent);
|
|
23152
23160
|
} else
|
|
23153
|
-
P = a.createTextNode(T.substringData(
|
|
23161
|
+
P = a.createTextNode(T.substringData(O, T.length - O));
|
|
23154
23162
|
P.length > 0 ? T.data = P.data : this._nodeRemoveListItem(T);
|
|
23155
23163
|
continue;
|
|
23156
23164
|
}
|
|
@@ -23180,8 +23188,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
23180
23188
|
const f = this.getSelectedElementsAndComponents(!1);
|
|
23181
23189
|
if (!f || f.length === 0) return;
|
|
23182
23190
|
e:
|
|
23183
|
-
for (let
|
|
23184
|
-
if (
|
|
23191
|
+
for (let O = 0, R = f.length, L, P, z, V, W, $; O < R; O++)
|
|
23192
|
+
if (L = f[O], !!a.isListCell(L) && (P = L.lastElementChild, P && a.isListCell(L.nextElementSibling) && f.indexOf(L.nextElementSibling) > -1 && (V = P.lastElementChild, f.indexOf(V) > -1))) {
|
|
23185
23193
|
let F = null;
|
|
23186
23194
|
for (; F = V.lastElementChild; )
|
|
23187
23195
|
if (a.isList(F))
|
|
@@ -23195,19 +23203,19 @@ function PS(t, n, r, i, s, o) {
|
|
|
23195
23203
|
let g = f[f.length - 1], x, p, v;
|
|
23196
23204
|
a.isRangeFormatElement(g) || a.isFormatElement(g) ? x = g : x = a.getRangeFormatElement(g, null) || a.getFormatElement(g, null), a.isCell(x) ? (p = null, v = x) : (p = x.nextSibling, v = x.parentNode);
|
|
23197
23205
|
let w = a.getElementDepth(x), k = null;
|
|
23198
|
-
const N = [], T = function(
|
|
23206
|
+
const N = [], T = function(O, R, L) {
|
|
23199
23207
|
let P = null;
|
|
23200
|
-
if (
|
|
23201
|
-
if (R && a.getElementDepth(
|
|
23202
|
-
P = a.removeItemAllParents(R, null,
|
|
23208
|
+
if (O !== R && !a.isTable(R)) {
|
|
23209
|
+
if (R && a.getElementDepth(O) === a.getElementDepth(R)) return L;
|
|
23210
|
+
P = a.removeItemAllParents(R, null, O);
|
|
23203
23211
|
}
|
|
23204
|
-
return P ? P.ec :
|
|
23212
|
+
return P ? P.ec : L;
|
|
23205
23213
|
};
|
|
23206
|
-
for (let
|
|
23207
|
-
if (
|
|
23208
|
-
if (z = a.getElementDepth(
|
|
23209
|
-
if (k === null && ($ ? (k = $, F = !0, $ = null) : k = P.cloneNode(!1)), N.push(
|
|
23210
|
-
W &&
|
|
23214
|
+
for (let O = 0, R = f.length, L, P, z, V, W, $, F; O < R; O++)
|
|
23215
|
+
if (L = f[O], P = L.parentNode, !(!P || d.contains(P)))
|
|
23216
|
+
if (z = a.getElementDepth(L), a.isList(P)) {
|
|
23217
|
+
if (k === null && ($ ? (k = $, F = !0, $ = null) : k = P.cloneNode(!1)), N.push(L), W = f[O + 1], O === R - 1 || W && W.parentNode !== P) {
|
|
23218
|
+
W && L.contains(W.parentNode) && ($ = W.parentNode.cloneNode(!1));
|
|
23211
23219
|
let H = P.parentNode, G;
|
|
23212
23220
|
for (; a.isList(H); )
|
|
23213
23221
|
G = a.createElement(H.nodeName), G.appendChild(k), k = G, H = H.parentNode;
|
|
@@ -23218,13 +23226,13 @@ function PS(t, n, r, i, s, o) {
|
|
|
23218
23226
|
F || d.appendChild(k), $ && q.removeArray[q.removeArray.length - 1].appendChild($), k = null, F = !1;
|
|
23219
23227
|
}
|
|
23220
23228
|
} else
|
|
23221
|
-
w >= z && (w = z, v = P, p =
|
|
23222
|
-
if (this.effectNode = null, a.mergeSameTags(d, null, !1), a.mergeNestedTags(d, (function(
|
|
23223
|
-
return this.isList(
|
|
23229
|
+
w >= z && (w = z, v = P, p = L.nextSibling), d.appendChild(L), v !== P && (V = T(v, P), V !== void 0 && (p = V));
|
|
23230
|
+
if (this.effectNode = null, a.mergeSameTags(d, null, !1), a.mergeNestedTags(d, (function(O) {
|
|
23231
|
+
return this.isList(O);
|
|
23224
23232
|
}).bind(a)), p && a.getElementDepth(p) > 0 && (a.isList(p.parentNode) || a.isList(p.parentNode.parentNode))) {
|
|
23225
|
-
const
|
|
23226
|
-
return this.isRangeFormatElement(
|
|
23227
|
-
}).bind(a)), R = a.splitElement(p, null,
|
|
23233
|
+
const O = a.getParentElement(p, (function(L) {
|
|
23234
|
+
return this.isRangeFormatElement(L) && !this.isList(L);
|
|
23235
|
+
}).bind(a)), R = a.splitElement(p, null, O ? a.getElementDepth(O) + 1 : 0);
|
|
23228
23236
|
R.parentNode.insertBefore(d, R);
|
|
23229
23237
|
} else
|
|
23230
23238
|
v.insertBefore(d, p), T(d, p);
|
|
@@ -23246,8 +23254,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
23246
23254
|
const v = this.getRange();
|
|
23247
23255
|
let w = v.startOffset, k = v.endOffset, N = a.getListChildNodes(d, function(q) {
|
|
23248
23256
|
return q.parentNode === d;
|
|
23249
|
-
}), T = d.parentNode, D = null,
|
|
23250
|
-
const
|
|
23257
|
+
}), T = d.parentNode, D = null, O = null, R = d.cloneNode(!1);
|
|
23258
|
+
const L = [], P = a.isList(g);
|
|
23251
23259
|
let z = !1, V = !1, W = !1;
|
|
23252
23260
|
function $(q, J, U, K) {
|
|
23253
23261
|
if (a.onlyZeroWidthSpace(J) && (J.innerHTML = a.zeroWidthSpace, w = k = 1), J.nodeType === 3)
|
|
@@ -23296,7 +23304,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23296
23304
|
}
|
|
23297
23305
|
else
|
|
23298
23306
|
U = U.cloneNode(!1);
|
|
23299
|
-
if (!V && (x ? (
|
|
23307
|
+
if (!V && (x ? (L.push(U), a.removeItem(N[q])) : (g ? (z || (T.insertBefore(g, d), z = !0), U = $(g, U, null, N[q])) : U = $(T, U, d, N[q]), V || (f ? (O = U, D || (D = U)) : D || (D = O = U))), V)) {
|
|
23300
23308
|
V = W = !1, N = a.getListChildNodes(d, function(ee) {
|
|
23301
23309
|
return ee.parentNode === d;
|
|
23302
23310
|
}), R = d.cloneNode(!1), T = d.parentNode, q = -1, J = N.length;
|
|
@@ -23314,11 +23322,11 @@ function PS(t, n, r, i, s, o) {
|
|
|
23314
23322
|
so: w,
|
|
23315
23323
|
ec: H,
|
|
23316
23324
|
eo: k,
|
|
23317
|
-
removeArray:
|
|
23325
|
+
removeArray: L
|
|
23318
23326
|
};
|
|
23319
23327
|
else {
|
|
23320
|
-
D || (D =
|
|
23321
|
-
const q = a.getEdgeChildNodes(D,
|
|
23328
|
+
D || (D = O), O || (O = D);
|
|
23329
|
+
const q = a.getEdgeChildNodes(D, O.parentNode ? D : O);
|
|
23322
23330
|
G = {
|
|
23323
23331
|
cc: (q.sc || q.ec).parentNode,
|
|
23324
23332
|
sc: q.sc,
|
|
@@ -23343,13 +23351,13 @@ function PS(t, n, r, i, s, o) {
|
|
|
23343
23351
|
const k = (function(N) {
|
|
23344
23352
|
return !this.isComponent(N);
|
|
23345
23353
|
}).bind(a);
|
|
23346
|
-
for (let N = 0, T = d.length, D,
|
|
23347
|
-
if (R = N === T - 1,
|
|
23348
|
-
D =
|
|
23349
|
-
else if (D &&
|
|
23350
|
-
if (D !==
|
|
23354
|
+
for (let N = 0, T = d.length, D, O, R, L; N < T; N++) {
|
|
23355
|
+
if (R = N === T - 1, O = a.getRangeFormatElement(d[N], k), L = a.isList(O), !D && L)
|
|
23356
|
+
D = O, g = { r: D, f: [a.getParentElement(d[N], "LI")] }, N === 0 && (x = !0);
|
|
23357
|
+
else if (D && L)
|
|
23358
|
+
if (D !== O) {
|
|
23351
23359
|
const P = this.detachRangeFormatElement(g.f[0].parentNode, g.f, null, f, !0);
|
|
23352
|
-
|
|
23360
|
+
O = d[N].parentNode, x && (v = P.sc, x = !1), R && (w = P.ec), L ? (D = O, g = { r: D, f: [a.getParentElement(d[N], "LI")] }, R && (p = !0)) : D = null;
|
|
23353
23361
|
} else
|
|
23354
23362
|
g.f.push(a.getParentElement(d[N], "LI")), R && (p = !0);
|
|
23355
23363
|
if (R && a.isList(D)) {
|
|
@@ -23402,7 +23410,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23402
23410
|
k.insertBefore(de, re), this.setRange(de, 1, de, 1), p = this.getRange(), k = p.startContainer, N = p.startOffset, T = p.endContainer, D = p.endOffset;
|
|
23403
23411
|
}
|
|
23404
23412
|
a.isFormatElement(k) && (k = k.childNodes[N] || k.firstChild, N = 0), a.isFormatElement(T) && (T = T.childNodes[D] || T.lastChild, D = T.textContent.length), v && (d = a.createElement("DIV"));
|
|
23405
|
-
const
|
|
23413
|
+
const O = c.RegExp, R = d.nodeName;
|
|
23406
23414
|
if (!w && k === T && !g && d) {
|
|
23407
23415
|
let re = k, ae = 0;
|
|
23408
23416
|
const de = [], ye = d.style;
|
|
@@ -23415,7 +23423,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23415
23423
|
for (; !a.isFormatElement(re) && !a.isWysiwygDiv(re); ) {
|
|
23416
23424
|
for (let he = 0; he < de.length; he++)
|
|
23417
23425
|
if (re.nodeType === 1) {
|
|
23418
|
-
const Ce = de[he], Pe = /^\./.test(Ce) ? new
|
|
23426
|
+
const Ce = de[he], Pe = /^\./.test(Ce) ? new O("\\s*" + Ce.replace(/^\./, "") + "(\\s+|$)", "ig") : !1, Be = v ? !!re.style[Ce] : !!re.style[Ce] && !!d.style[Ce] && re.style[Ce] === d.style[Ce], Ie = Pe === !1 ? !1 : v ? !!re.className.match(Pe) : !!re.className.match(Pe) && !!d.className.match(Pe);
|
|
23419
23427
|
(Be || Ie) && ae++;
|
|
23420
23428
|
}
|
|
23421
23429
|
re = re.parentNode;
|
|
@@ -23423,17 +23431,17 @@ function PS(t, n, r, i, s, o) {
|
|
|
23423
23431
|
if (ae >= de.length) return;
|
|
23424
23432
|
}
|
|
23425
23433
|
}
|
|
23426
|
-
let
|
|
23434
|
+
let L = {}, P = {}, z, V = "", W = "", $ = "";
|
|
23427
23435
|
if (f) {
|
|
23428
23436
|
for (let re = 0, ae = f.length, de; re < ae; re++)
|
|
23429
23437
|
de = f[re], /^\./.test(de) ? W += (W ? "|" : "\\s*(?:") + de.replace(/^\./, "") : V += (V ? "|" : "(?:;|^|\\s)(?:") + de;
|
|
23430
|
-
V && (V += ")\\s*:[^;]*\\s*(?:;|$)", V = new
|
|
23438
|
+
V && (V += ")\\s*:[^;]*\\s*(?:;|$)", V = new O(V, "ig")), W && (W += ")(?=\\s+|$)", W = new O(W, "ig"));
|
|
23431
23439
|
}
|
|
23432
23440
|
if (g) {
|
|
23433
23441
|
$ = "^(?:" + g[0];
|
|
23434
23442
|
for (let re = 1; re < g.length; re++)
|
|
23435
23443
|
$ += "|" + g[re];
|
|
23436
|
-
$ += ")$", $ = new
|
|
23444
|
+
$ += ")$", $ = new O($, "i");
|
|
23437
23445
|
}
|
|
23438
23446
|
const F = c.Boolean, H = { v: !1 }, G = function(re) {
|
|
23439
23447
|
const ae = re.cloneNode(!1);
|
|
@@ -23464,15 +23472,15 @@ function PS(t, n, r, i, s, o) {
|
|
|
23464
23472
|
if (J) {
|
|
23465
23473
|
this._resetCommonListCell(q[0], f) && (p = this.setRange(k, N, T, D));
|
|
23466
23474
|
const re = this._nodeChange_oneLine(q[0], z, G, k, N, T, D, w, v, p.collapsed, H, ee, oe);
|
|
23467
|
-
|
|
23475
|
+
L.container = re.startContainer, L.offset = re.startOffset, P.container = re.endContainer, P.offset = re.endOffset, L.container === P.container && a.onlyZeroWidthSpace(L.container) && (L.offset = P.offset = 1), this._setCommonListStyle(re.ancestor, null);
|
|
23468
23476
|
} else {
|
|
23469
23477
|
let re = !1;
|
|
23470
23478
|
U > 0 && this._resetCommonListCell(q[U], f) && (re = !0), this._resetCommonListCell(q[0], f) && (re = !0), re && this.setRange(k, N, T, D), U > 0 && (z = d.cloneNode(!1), P = this._nodeChange_endLine(q[U], z, G, T, D, w, v, H, ee, oe));
|
|
23471
23479
|
for (let ae = U - 1, de; ae > 0; ae--)
|
|
23472
23480
|
this._resetCommonListCell(q[ae], f), z = d.cloneNode(!1), de = this._nodeChange_middleLine(q[ae], z, G, w, v, H, P.container), de.endContainer && de.ancestor.contains(de.endContainer) && (P.ancestor = null, P.container = de.endContainer), this._setCommonListStyle(de.ancestor, null);
|
|
23473
|
-
z = d.cloneNode(!1),
|
|
23481
|
+
z = d.cloneNode(!1), L = this._nodeChange_startLine(q[0], z, G, k, N, w, v, H, ee, oe, P.container), L.endContainer && (P.ancestor = null, P.container = L.endContainer), U <= 0 ? P = L : P.container || (P.ancestor = null, P.container = L.container, P.offset = L.container.textContent.length), this._setCommonListStyle(L.ancestor, null), this._setCommonListStyle(P.ancestor || a.getFormatElement(P.container), null);
|
|
23474
23482
|
}
|
|
23475
|
-
this.controllersOff(), this.setRange(
|
|
23483
|
+
this.controllersOff(), this.setRange(L.container, L.offset, P.container, P.offset), this.history.push(!1);
|
|
23476
23484
|
},
|
|
23477
23485
|
/**
|
|
23478
23486
|
* @description Reset common style of list cell
|
|
@@ -23483,21 +23491,21 @@ function PS(t, n, r, i, s, o) {
|
|
|
23483
23491
|
_resetCommonListCell: function(d, f) {
|
|
23484
23492
|
if (!a.isListCell(d)) return;
|
|
23485
23493
|
f || (f = this._listKebab);
|
|
23486
|
-
const g = a.getArrayItem(d.childNodes, function(
|
|
23487
|
-
return !a.isBreak(
|
|
23494
|
+
const g = a.getArrayItem(d.childNodes, function(O) {
|
|
23495
|
+
return !a.isBreak(O);
|
|
23488
23496
|
}, !0), x = d.style, p = [], v = [], w = a.getValues(x);
|
|
23489
|
-
for (let
|
|
23490
|
-
w.indexOf(this._listKebab[
|
|
23497
|
+
for (let O = 0, R = this._listKebab.length; O < R; O++)
|
|
23498
|
+
w.indexOf(this._listKebab[O]) > -1 && f.indexOf(this._listKebab[O]) > -1 && (p.push(this._listCamel[O]), v.push(this._listKebab[O]));
|
|
23491
23499
|
if (!p.length) return;
|
|
23492
23500
|
const k = a.createElement("SPAN");
|
|
23493
|
-
for (let
|
|
23494
|
-
k.style[p[
|
|
23501
|
+
for (let O = 0, R = p.length; O < R; O++)
|
|
23502
|
+
k.style[p[O]] = x[v[O]], x.removeProperty(v[O]);
|
|
23495
23503
|
let N = k.cloneNode(!1), T = null, D = !1;
|
|
23496
|
-
for (let
|
|
23497
|
-
|
|
23504
|
+
for (let O = 0, R = g.length, L, P; O < R; O++)
|
|
23505
|
+
L = g[O], !s._textTagsMap[L.nodeName.toLowerCase()] && (P = a.getValues(L.style), P.length === 0 || p.some(function(z) {
|
|
23498
23506
|
return P.indexOf(z) === -1;
|
|
23499
23507
|
}) && P.some(function(z) {
|
|
23500
|
-
}) ? (T =
|
|
23508
|
+
}) ? (T = L.nextSibling, N.appendChild(L)) : N.childNodes.length > 0 && (d.insertBefore(N, T), N = k.cloneNode(!1), T = null, D = !0));
|
|
23501
23509
|
return N.childNodes.length > 0 && (d.insertBefore(N, T), D = !0), x.length || d.removeAttribute("style"), D;
|
|
23502
23510
|
},
|
|
23503
23511
|
/**
|
|
@@ -23574,12 +23582,12 @@ function PS(t, n, r, i, s, o) {
|
|
|
23574
23582
|
* @returns {{ancestor: *, startContainer: *, startOffset: *, endContainer: *, endOffset: *}}
|
|
23575
23583
|
* @private
|
|
23576
23584
|
*/
|
|
23577
|
-
_nodeChange_oneLine: function(d, f, g, x, p, v, w, k, N, T, D,
|
|
23578
|
-
let
|
|
23579
|
-
for (; !
|
|
23580
|
-
|
|
23581
|
-
if (!N &&
|
|
23582
|
-
const Ie =
|
|
23585
|
+
_nodeChange_oneLine: function(d, f, g, x, p, v, w, k, N, T, D, O, R) {
|
|
23586
|
+
let L = x.parentNode;
|
|
23587
|
+
for (; !L.nextSibling && !L.previousSibling && !a.isFormatElement(L.parentNode) && !a.isWysiwygDiv(L.parentNode) && L.nodeName !== f.nodeName; )
|
|
23588
|
+
L = L.parentNode;
|
|
23589
|
+
if (!N && L === v.parentNode && L.nodeName === f.nodeName && a.onlyZeroWidthSpace(x.textContent.slice(0, p)) && a.onlyZeroWidthSpace(v.textContent.slice(w))) {
|
|
23590
|
+
const Ie = L.childNodes;
|
|
23583
23591
|
let Qe = !0;
|
|
23584
23592
|
for (let Y = 0, ne = Ie.length, ie, _e, me, ce; Y < ne; Y++) {
|
|
23585
23593
|
if (ie = Ie[Y], ce = !a.onlyZeroWidthSpace(ie), ie === x) {
|
|
@@ -23596,7 +23604,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23596
23604
|
}
|
|
23597
23605
|
}
|
|
23598
23606
|
if (Qe)
|
|
23599
|
-
return a.copyTagAttributes(
|
|
23607
|
+
return a.copyTagAttributes(L, f), {
|
|
23600
23608
|
ancestor: d,
|
|
23601
23609
|
startContainer: x,
|
|
23602
23610
|
startOffset: p,
|
|
@@ -23621,7 +23629,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23621
23629
|
let ve = Y, Le;
|
|
23622
23630
|
if (!q && ce === $) {
|
|
23623
23631
|
let fe = V;
|
|
23624
|
-
oe =
|
|
23632
|
+
oe = O(ce);
|
|
23625
23633
|
const Ue = a.createTextNode($.nodeType === 1 ? "" : $.substringData(0, F)), Ze = a.createTextNode(
|
|
23626
23634
|
$.nodeType === 1 ? "" : $.substringData(
|
|
23627
23635
|
F,
|
|
@@ -23629,7 +23637,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23629
23637
|
)
|
|
23630
23638
|
);
|
|
23631
23639
|
if (oe) {
|
|
23632
|
-
const He =
|
|
23640
|
+
const He = O(Y);
|
|
23633
23641
|
if (He && He.parentNode !== fe) {
|
|
23634
23642
|
let st = He, Oe = null;
|
|
23635
23643
|
for (; st.parentNode !== fe; ) {
|
|
@@ -23642,16 +23650,16 @@ function PS(t, n, r, i, s, o) {
|
|
|
23642
23650
|
oe = oe.cloneNode(!1);
|
|
23643
23651
|
}
|
|
23644
23652
|
a.onlyZeroWidthSpace(Ue) || Y.appendChild(Ue);
|
|
23645
|
-
const be =
|
|
23653
|
+
const be = O(Y);
|
|
23646
23654
|
for (be && (oe = be), oe && (fe = oe), K = ce, U = [], ee = ""; K !== fe && K !== P && K !== null; )
|
|
23647
23655
|
me = R(K) ? null : g(K), me && K.nodeType === 1 && ae(K) && (U.push(me), ee += K.style.cssText.substr(0, K.style.cssText.indexOf(":")) + "|"), K = K.parentNode;
|
|
23648
23656
|
const Ae = U.pop() || Ze;
|
|
23649
23657
|
for (se = K = Ae; U.length > 0; )
|
|
23650
23658
|
K = U.pop(), se.appendChild(K), se = K;
|
|
23651
|
-
if (f.appendChild(Ae), fe.appendChild(f), oe && !
|
|
23659
|
+
if (f.appendChild(Ae), fe.appendChild(f), oe && !O(H) && (f = f.cloneNode(!1), V.appendChild(f), z.push(f)), $ = Ze, F = 0, q = !0, K !== Ze && K.appendChild($), !W) continue;
|
|
23652
23660
|
}
|
|
23653
23661
|
if (!J && ce === H) {
|
|
23654
|
-
oe =
|
|
23662
|
+
oe = O(ce);
|
|
23655
23663
|
const fe = a.createTextNode(H.nodeType === 1 ? "" : H.substringData(G, H.length - G)), Ue = a.createTextNode(W || H.nodeType === 1 ? "" : H.substringData(0, G));
|
|
23656
23664
|
if (oe ? oe = oe.cloneNode(!1) : R(f.parentNode) && !oe && (f = f.cloneNode(!1), V.appendChild(f), z.push(f)), !a.onlyZeroWidthSpace(fe)) {
|
|
23657
23665
|
K = ce, ee = "", U = [];
|
|
@@ -23663,7 +23671,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23663
23671
|
V.appendChild(Le), K.textContent = fe.data;
|
|
23664
23672
|
}
|
|
23665
23673
|
if (oe && Le) {
|
|
23666
|
-
const be =
|
|
23674
|
+
const be = O(Le);
|
|
23667
23675
|
be && (oe = be);
|
|
23668
23676
|
}
|
|
23669
23677
|
for (K = ce, U = [], ee = ""; K !== V && K !== P && K !== null; )
|
|
@@ -23695,7 +23703,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23695
23703
|
Ue.appendChild(f), V.appendChild(Ue), z.push(f), f.children.length > 0 ? Y = K : Y = f;
|
|
23696
23704
|
} else Ue === ce ? J ? Y = V : Y = f : J ? (V.appendChild(Ue), Y = K) : (f.appendChild(Ue), Y = K);
|
|
23697
23705
|
if (oe && ce.nodeType === 3)
|
|
23698
|
-
if (
|
|
23706
|
+
if (O(ce)) {
|
|
23699
23707
|
const Ze = a.getParentElement(Y, (function(be) {
|
|
23700
23708
|
return this._isMaintainedNode(be.parentNode) || be.parentNode === V;
|
|
23701
23709
|
}).bind(a));
|
|
@@ -23762,10 +23770,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
23762
23770
|
* @private
|
|
23763
23771
|
*/
|
|
23764
23772
|
_nodeChange_startLine: function(d, f, g, x, p, v, w, k, N, T, D) {
|
|
23765
|
-
let
|
|
23766
|
-
for (; !
|
|
23767
|
-
|
|
23768
|
-
if (!w &&
|
|
23773
|
+
let O = x.parentNode;
|
|
23774
|
+
for (; !O.nextSibling && !O.previousSibling && !a.isFormatElement(O.parentNode) && !a.isWysiwygDiv(O.parentNode) && O.nodeName !== f.nodeName; )
|
|
23775
|
+
O = O.parentNode;
|
|
23776
|
+
if (!w && O.nodeName === f.nodeName && !a.isFormatElement(O) && !O.nextSibling && a.onlyZeroWidthSpace(x.textContent.slice(0, p))) {
|
|
23769
23777
|
let q = !0, J = x.previousSibling;
|
|
23770
23778
|
for (; J; ) {
|
|
23771
23779
|
if (!a.onlyZeroWidthSpace(J)) {
|
|
@@ -23775,14 +23783,14 @@ function PS(t, n, r, i, s, o) {
|
|
|
23775
23783
|
J = J.previousSibling;
|
|
23776
23784
|
}
|
|
23777
23785
|
if (q)
|
|
23778
|
-
return a.copyTagAttributes(
|
|
23786
|
+
return a.copyTagAttributes(O, f), {
|
|
23779
23787
|
ancestor: d,
|
|
23780
23788
|
container: x,
|
|
23781
23789
|
offset: p
|
|
23782
23790
|
};
|
|
23783
23791
|
}
|
|
23784
23792
|
k.v = !1;
|
|
23785
|
-
const R = d,
|
|
23793
|
+
const R = d, L = [f], P = d.cloneNode(!1);
|
|
23786
23794
|
let z = x, V = p, W = !1, $, F, H, G;
|
|
23787
23795
|
if (function q(J, U) {
|
|
23788
23796
|
const K = J.childNodes;
|
|
@@ -23793,7 +23801,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23793
23801
|
if (W && !a.isBreak(ae)) {
|
|
23794
23802
|
if (ae.nodeType === 1) {
|
|
23795
23803
|
if (a._isIgnoreNodeChange(ae)) {
|
|
23796
|
-
if (f = f.cloneNode(!1), re = ae.cloneNode(!0), P.appendChild(re), P.appendChild(f),
|
|
23804
|
+
if (f = f.cloneNode(!1), re = ae.cloneNode(!0), P.appendChild(re), P.appendChild(f), L.push(f), D && ae.contains(D)) {
|
|
23797
23805
|
const Ce = a.getNodePath(D, ae);
|
|
23798
23806
|
D = a.getNodeFromPath(Ce, re);
|
|
23799
23807
|
}
|
|
@@ -23809,19 +23817,19 @@ function PS(t, n, r, i, s, o) {
|
|
|
23809
23817
|
const ue = $.length > 0, he = $.pop() || ae;
|
|
23810
23818
|
for (H = F = he; $.length > 0; )
|
|
23811
23819
|
F = $.pop(), H.appendChild(F), H = F;
|
|
23812
|
-
if (T(f.parentNode) && !T(he) && (f = f.cloneNode(!1), P.appendChild(f),
|
|
23820
|
+
if (T(f.parentNode) && !T(he) && (f = f.cloneNode(!1), P.appendChild(f), L.push(f)), !G && T(he)) {
|
|
23813
23821
|
f = f.cloneNode(!1);
|
|
23814
23822
|
const Ce = he.childNodes;
|
|
23815
23823
|
for (let Pe = 0, Be = Ce.length; Pe < Be; Pe++)
|
|
23816
23824
|
f.appendChild(Ce[Pe]);
|
|
23817
|
-
he.appendChild(f), P.appendChild(he), U = T(F) ? f : F,
|
|
23825
|
+
he.appendChild(f), P.appendChild(he), U = T(F) ? f : F, L.push(f);
|
|
23818
23826
|
} else ue ? (f.appendChild(he), U = F) : U = f;
|
|
23819
23827
|
if (G && ae.nodeType === 3)
|
|
23820
23828
|
if (N(ae)) {
|
|
23821
23829
|
const Ce = a.getParentElement(U, (function(Pe) {
|
|
23822
23830
|
return this._isMaintainedNode(Pe.parentNode) || Pe.parentNode === P;
|
|
23823
23831
|
}).bind(a));
|
|
23824
|
-
G.appendChild(Ce), f = Ce.cloneNode(!1),
|
|
23832
|
+
G.appendChild(Ce), f = Ce.cloneNode(!1), L.push(f), P.appendChild(f);
|
|
23825
23833
|
} else
|
|
23826
23834
|
G = null;
|
|
23827
23835
|
}
|
|
@@ -23862,8 +23870,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
23862
23870
|
endContainer: D
|
|
23863
23871
|
};
|
|
23864
23872
|
if (v = v && w, v)
|
|
23865
|
-
for (let q = 0; q <
|
|
23866
|
-
let J =
|
|
23873
|
+
for (let q = 0; q < L.length; q++) {
|
|
23874
|
+
let J = L[q];
|
|
23867
23875
|
const U = J.childNodes, K = U[0];
|
|
23868
23876
|
for (; U[0]; )
|
|
23869
23877
|
P.insertBefore(U[0], J);
|
|
@@ -23871,8 +23879,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
23871
23879
|
}
|
|
23872
23880
|
else if (w) {
|
|
23873
23881
|
f = f.firstChild;
|
|
23874
|
-
for (let q = 0; q <
|
|
23875
|
-
this._stripRemoveNode(
|
|
23882
|
+
for (let q = 0; q < L.length; q++)
|
|
23883
|
+
this._stripRemoveNode(L[q]);
|
|
23876
23884
|
}
|
|
23877
23885
|
if (!v && P.childNodes.length === 0)
|
|
23878
23886
|
d.childNodes ? z = d.childNodes[0] : (z = a.createTextNode(a.zeroWidthSpace), d.appendChild(z));
|
|
@@ -23905,11 +23913,11 @@ function PS(t, n, r, i, s, o) {
|
|
|
23905
23913
|
if (!p) {
|
|
23906
23914
|
let D = null;
|
|
23907
23915
|
w && d.contains(w) && (D = a.getNodePath(w, d));
|
|
23908
|
-
const
|
|
23909
|
-
let z =
|
|
23916
|
+
const O = d.cloneNode(!0), R = f.nodeName, L = f.style.cssText, P = f.className;
|
|
23917
|
+
let z = O.childNodes, V = 0, W = z.length;
|
|
23910
23918
|
for (let $; V < W && ($ = z[V], $.nodeType !== 3); V++)
|
|
23911
23919
|
if ($.nodeName === R)
|
|
23912
|
-
$.style.cssText +=
|
|
23920
|
+
$.style.cssText += L, a.addClass($, P);
|
|
23913
23921
|
else {
|
|
23914
23922
|
if (!a.isBreak($) && a._isIgnoreNodeChange($))
|
|
23915
23923
|
continue;
|
|
@@ -23920,7 +23928,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23920
23928
|
break;
|
|
23921
23929
|
}
|
|
23922
23930
|
if (W > 0 && V === W)
|
|
23923
|
-
return d.innerHTML =
|
|
23931
|
+
return d.innerHTML = O.innerHTML, {
|
|
23924
23932
|
ancestor: d,
|
|
23925
23933
|
endContainer: D ? a.getNodeFromPath(D, d) : null
|
|
23926
23934
|
};
|
|
@@ -23928,10 +23936,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
23928
23936
|
v.v = !1;
|
|
23929
23937
|
const k = d.cloneNode(!1), N = [f];
|
|
23930
23938
|
let T = !0;
|
|
23931
|
-
if (function D(
|
|
23932
|
-
const
|
|
23933
|
-
for (let P = 0, z =
|
|
23934
|
-
let $ =
|
|
23939
|
+
if (function D(O, R) {
|
|
23940
|
+
const L = O.childNodes;
|
|
23941
|
+
for (let P = 0, z = L.length, V, W; P < z; P++) {
|
|
23942
|
+
let $ = L[P];
|
|
23935
23943
|
if (!$) continue;
|
|
23936
23944
|
let F = R;
|
|
23937
23945
|
if (!a.isBreak($) && a._isIgnoreNodeChange($)) {
|
|
@@ -23947,11 +23955,11 @@ function PS(t, n, r, i, s, o) {
|
|
|
23947
23955
|
}(d, f), T || p && !x && !v.v) return { ancestor: d, endContainer: w };
|
|
23948
23956
|
if (k.appendChild(f), x && p)
|
|
23949
23957
|
for (let D = 0; D < N.length; D++) {
|
|
23950
|
-
let
|
|
23951
|
-
const R =
|
|
23958
|
+
let O = N[D];
|
|
23959
|
+
const R = O.childNodes;
|
|
23952
23960
|
for (; R[0]; )
|
|
23953
|
-
k.insertBefore(R[0],
|
|
23954
|
-
a.removeItem(
|
|
23961
|
+
k.insertBefore(R[0], O);
|
|
23962
|
+
a.removeItem(O);
|
|
23955
23963
|
}
|
|
23956
23964
|
else if (p) {
|
|
23957
23965
|
f = f.firstChild;
|
|
@@ -23993,7 +24001,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
23993
24001
|
};
|
|
23994
24002
|
}
|
|
23995
24003
|
k.v = !1;
|
|
23996
|
-
const
|
|
24004
|
+
const O = d, R = [f], L = d.cloneNode(!1);
|
|
23997
24005
|
let P = x, z = p, V = !1, W, $, F, H;
|
|
23998
24006
|
if (function G(q, J) {
|
|
23999
24007
|
const U = q.childNodes;
|
|
@@ -24006,32 +24014,32 @@ function PS(t, n, r, i, s, o) {
|
|
|
24006
24014
|
if (a._isIgnoreNodeChange(ee)) {
|
|
24007
24015
|
f = f.cloneNode(!1);
|
|
24008
24016
|
const ye = ee.cloneNode(!0);
|
|
24009
|
-
|
|
24017
|
+
L.insertBefore(ye, J), L.insertBefore(f, ye), R.push(f);
|
|
24010
24018
|
} else
|
|
24011
24019
|
G(ee, ee);
|
|
24012
24020
|
continue;
|
|
24013
24021
|
}
|
|
24014
24022
|
$ = ee, W = [];
|
|
24015
24023
|
const re = [];
|
|
24016
|
-
for (; $.parentNode !== null && $ !==
|
|
24024
|
+
for (; $.parentNode !== null && $ !== O && $ !== f; )
|
|
24017
24025
|
se = g($), se && $.nodeType === 1 && (T($) ? H || re.push(se) : W.push(se)), $ = $.parentNode;
|
|
24018
24026
|
W = W.concat(re);
|
|
24019
24027
|
const ae = W.length > 0, de = W.pop() || ee;
|
|
24020
24028
|
for (F = $ = de; W.length > 0; )
|
|
24021
24029
|
$ = W.pop(), F.appendChild($), F = $;
|
|
24022
|
-
if (T(f.parentNode) && !T(de) && (f = f.cloneNode(!1),
|
|
24030
|
+
if (T(f.parentNode) && !T(de) && (f = f.cloneNode(!1), L.insertBefore(f, L.firstChild), R.push(f)), !H && T(de)) {
|
|
24023
24031
|
f = f.cloneNode(!1);
|
|
24024
24032
|
const ye = de.childNodes;
|
|
24025
24033
|
for (let ue = 0, he = ye.length; ue < he; ue++)
|
|
24026
24034
|
f.appendChild(ye[ue]);
|
|
24027
|
-
de.appendChild(f),
|
|
24035
|
+
de.appendChild(f), L.insertBefore(de, L.firstChild), R.push(f), f.children.length > 0 ? J = $ : J = f;
|
|
24028
24036
|
} else ae ? (f.insertBefore(de, f.firstChild), J = $) : J = f;
|
|
24029
24037
|
if (H && ee.nodeType === 3)
|
|
24030
24038
|
if (N(ee)) {
|
|
24031
24039
|
const ye = a.getParentElement(J, (function(ue) {
|
|
24032
|
-
return this._isMaintainedNode(ue.parentNode) || ue.parentNode ===
|
|
24040
|
+
return this._isMaintainedNode(ue.parentNode) || ue.parentNode === L;
|
|
24033
24041
|
}).bind(a));
|
|
24034
|
-
H.appendChild(ye), f = ye.cloneNode(!1), R.push(f),
|
|
24042
|
+
H.appendChild(ye), f = ye.cloneNode(!1), R.push(f), L.insertBefore(f, L.firstChild);
|
|
24035
24043
|
} else
|
|
24036
24044
|
H = null;
|
|
24037
24045
|
}
|
|
@@ -24041,9 +24049,9 @@ function PS(t, n, r, i, s, o) {
|
|
|
24041
24049
|
if (H) {
|
|
24042
24050
|
H = H.cloneNode(!1);
|
|
24043
24051
|
const ye = N(J);
|
|
24044
|
-
if (ye && ye.parentNode !==
|
|
24052
|
+
if (ye && ye.parentNode !== L) {
|
|
24045
24053
|
let ue = ye, he = null;
|
|
24046
|
-
for (; ue.parentNode !==
|
|
24054
|
+
for (; ue.parentNode !== L; ) {
|
|
24047
24055
|
for (J = he = ue.parentNode.cloneNode(!1); ue.childNodes[0]; )
|
|
24048
24056
|
he.appendChild(ue.childNodes[0]);
|
|
24049
24057
|
ue.appendChild(he), ue = ue.parentNode;
|
|
@@ -24051,18 +24059,18 @@ function PS(t, n, r, i, s, o) {
|
|
|
24051
24059
|
ue.parentNode.insertBefore(ye, ue.parentNode.firstChild);
|
|
24052
24060
|
}
|
|
24053
24061
|
H = H.cloneNode(!1);
|
|
24054
|
-
} else T(f.parentNode) && !H && (f = f.cloneNode(!1),
|
|
24055
|
-
for (a.onlyZeroWidthSpace(re) || J.insertBefore(re, J.firstChild), $ = J, W = []; $ !==
|
|
24062
|
+
} else T(f.parentNode) && !H && (f = f.cloneNode(!1), L.appendChild(f), R.push(f));
|
|
24063
|
+
for (a.onlyZeroWidthSpace(re) || J.insertBefore(re, J.firstChild), $ = J, W = []; $ !== L && $ !== null; )
|
|
24056
24064
|
se = T($) ? null : g($), se && $.nodeType === 1 && W.push(se), $ = $.parentNode;
|
|
24057
24065
|
const de = W.pop() || J;
|
|
24058
24066
|
for (F = $ = de; W.length > 0; )
|
|
24059
24067
|
$ = W.pop(), F.appendChild($), F = $;
|
|
24060
|
-
de !== J ? (f.insertBefore(de, f.firstChild), J = $) : J = f, a.isBreak(ee) && f.appendChild(ee.cloneNode(!1)), H ? (H.insertBefore(f, H.firstChild),
|
|
24068
|
+
de !== J ? (f.insertBefore(de, f.firstChild), J = $) : J = f, a.isBreak(ee) && f.appendChild(ee.cloneNode(!1)), H ? (H.insertBefore(f, H.firstChild), L.insertBefore(H, L.firstChild), H = null) : L.insertBefore(f, L.firstChild), P = ae, z = ae.data.length, V = !0, J.insertBefore(P, J.firstChild);
|
|
24061
24069
|
continue;
|
|
24062
24070
|
}
|
|
24063
24071
|
se = V ? g(ee) : ee.cloneNode(!1), se && (J.insertBefore(se, J.firstChild), ee.nodeType === 1 && !a.isBreak(ee) && (oe = se)), G(ee, oe);
|
|
24064
24072
|
}
|
|
24065
|
-
}(d,
|
|
24073
|
+
}(d, L), w && !v && !k.v)
|
|
24066
24074
|
return {
|
|
24067
24075
|
ancestor: d,
|
|
24068
24076
|
container: x,
|
|
@@ -24074,7 +24082,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
24074
24082
|
const J = q.childNodes;
|
|
24075
24083
|
let U = null;
|
|
24076
24084
|
for (; J[0]; )
|
|
24077
|
-
U = J[0],
|
|
24085
|
+
U = J[0], L.insertBefore(U, q);
|
|
24078
24086
|
a.removeItem(q), G === R.length - 1 && (P = U, z = U.textContent.length);
|
|
24079
24087
|
}
|
|
24080
24088
|
else if (w) {
|
|
@@ -24082,23 +24090,23 @@ function PS(t, n, r, i, s, o) {
|
|
|
24082
24090
|
for (let G = 0; G < R.length; G++)
|
|
24083
24091
|
this._stripRemoveNode(R[G]);
|
|
24084
24092
|
}
|
|
24085
|
-
if (!v &&
|
|
24093
|
+
if (!v && L.childNodes.length === 0)
|
|
24086
24094
|
d.childNodes ? P = d.childNodes[0] : (P = a.createTextNode(a.zeroWidthSpace), d.appendChild(P));
|
|
24087
24095
|
else {
|
|
24088
24096
|
if (!w && f.textContent.length === 0)
|
|
24089
|
-
return a.removeEmptyNode(
|
|
24097
|
+
return a.removeEmptyNode(L, null, !1), {
|
|
24090
24098
|
ancestor: null,
|
|
24091
24099
|
container: null,
|
|
24092
24100
|
offset: 0
|
|
24093
24101
|
};
|
|
24094
|
-
a.removeEmptyNode(
|
|
24095
|
-
const G = { s: 0, e: 0 }, q = a.getNodePath(P,
|
|
24102
|
+
a.removeEmptyNode(L, f, !1), a.onlyZeroWidthSpace(L.textContent) ? (P = L.firstChild, z = P.textContent.length) : a.onlyZeroWidthSpace(P) && (P = f, z = 1);
|
|
24103
|
+
const G = { s: 0, e: 0 }, q = a.getNodePath(P, L, G);
|
|
24096
24104
|
z += G.s;
|
|
24097
|
-
const J = a.mergeSameTags(
|
|
24098
|
-
d.parentNode.replaceChild(
|
|
24105
|
+
const J = a.mergeSameTags(L, [q], !0);
|
|
24106
|
+
d.parentNode.replaceChild(L, d), P = a.getNodeFromPath(q, L), z += J[0];
|
|
24099
24107
|
}
|
|
24100
24108
|
return {
|
|
24101
|
-
ancestor:
|
|
24109
|
+
ancestor: L,
|
|
24102
24110
|
container: P,
|
|
24103
24111
|
offset: P.nodeType === 1 && z === 1 ? P.childNodes.length : z
|
|
24104
24112
|
};
|
|
@@ -24235,8 +24243,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
24235
24243
|
indent: function(d) {
|
|
24236
24244
|
const f = this.getRange(), g = this.getSelectedElements(null), x = [], p = d !== "indent", v = s.rtl ? "marginRight" : "marginLeft";
|
|
24237
24245
|
let w = f.startContainer, k = f.endContainer, N = f.startOffset, T = f.endOffset;
|
|
24238
|
-
for (let D = 0,
|
|
24239
|
-
R = g[D], !a.isListCell(R) || !this.plugins.list ? (
|
|
24246
|
+
for (let D = 0, O = g.length, R, L; D < O; D++)
|
|
24247
|
+
R = g[D], !a.isListCell(R) || !this.plugins.list ? (L = /\d+/.test(R.style[v]) ? a.getNumber(R.style[v], 0) : 0, p ? L -= 25 : L += 25, a.setStyle(R, v, L <= 0 ? "" : L + "px")) : (p || R.previousElementSibling) && x.push(R);
|
|
24240
24248
|
x.length > 0 && this.plugins.list.editInsideList.call(this, p, x), this.effectNode = null, this.setRange(w, N, k, T), this.history.push(!1);
|
|
24241
24249
|
},
|
|
24242
24250
|
/**
|
|
@@ -24518,23 +24526,23 @@ function PS(t, n, r, i, s, o) {
|
|
|
24518
24526
|
const v = [];
|
|
24519
24527
|
for (let w = 0, k = p.length, N; w < k; w++)
|
|
24520
24528
|
if (N = p[w].match(/([a-zA-Z0-9-]+)(:)([^"']+)/), N && !/inherit|initial|revert|unset/i.test(N[3])) {
|
|
24521
|
-
const T = a.kebabToCamelCase(N[1].trim()), D = this.wwComputedStyle[T] ? this.wwComputedStyle[T].replace(/"/g, "") : "",
|
|
24529
|
+
const T = a.kebabToCamelCase(N[1].trim()), D = this.wwComputedStyle[T] ? this.wwComputedStyle[T].replace(/"/g, "") : "", O = N[3].trim();
|
|
24522
24530
|
switch (T) {
|
|
24523
24531
|
case "fontFamily":
|
|
24524
|
-
if (!s.plugins.font || s.font.indexOf(
|
|
24532
|
+
if (!s.plugins.font || s.font.indexOf(O) === -1) continue;
|
|
24525
24533
|
break;
|
|
24526
24534
|
case "fontSize":
|
|
24527
24535
|
if (!s.plugins.fontSize) continue;
|
|
24528
24536
|
this._cleanStyleRegExp.fontSizeUnit.test(N[0]) || (N[0] = N[0].replace((N[0].match(/:\s*([^;]+)/) || [])[1], this._convertFontSize.bind(this, s.fontSizeUnit)));
|
|
24529
24537
|
break;
|
|
24530
24538
|
case "color":
|
|
24531
|
-
if (!s.plugins.fontColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(
|
|
24539
|
+
if (!s.plugins.fontColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(O)) continue;
|
|
24532
24540
|
break;
|
|
24533
24541
|
case "backgroundColor":
|
|
24534
|
-
if (!s.plugins.hiliteColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(
|
|
24542
|
+
if (!s.plugins.hiliteColor || /rgba\(([0-9]+\s*,\s*){3}0\)|windowtext/i.test(O)) continue;
|
|
24535
24543
|
break;
|
|
24536
24544
|
}
|
|
24537
|
-
D !==
|
|
24545
|
+
D !== O && v.push(N[0]);
|
|
24538
24546
|
}
|
|
24539
24547
|
v.length > 0 && f.push('style="' + v.join(";") + '"');
|
|
24540
24548
|
}
|
|
@@ -24623,10 +24631,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
24623
24631
|
}
|
|
24624
24632
|
if (this.managedTagsInfo && this.managedTagsInfo.query) {
|
|
24625
24633
|
const k = x.querySelectorAll(this.managedTagsInfo.query);
|
|
24626
|
-
for (let N = 0, T = k.length, D,
|
|
24627
|
-
|
|
24628
|
-
for (let R = 0,
|
|
24629
|
-
if (D = this.managedTagsInfo.map[
|
|
24634
|
+
for (let N = 0, T = k.length, D, O; N < T; N++) {
|
|
24635
|
+
O = [].slice.call(k[N].classList);
|
|
24636
|
+
for (let R = 0, L = O.length; R < L; R++)
|
|
24637
|
+
if (D = this.managedTagsInfo.map[O[R]], D) {
|
|
24630
24638
|
D(k[N]);
|
|
24631
24639
|
break;
|
|
24632
24640
|
}
|
|
@@ -24662,7 +24670,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
24662
24670
|
const v = f.querySelectorAll(this.managedTagsInfo.query);
|
|
24663
24671
|
for (let w = 0, k = v.length, N, T; w < k; w++) {
|
|
24664
24672
|
T = [].slice.call(v[w].classList);
|
|
24665
|
-
for (let D = 0,
|
|
24673
|
+
for (let D = 0, O = T.length; D < O; D++)
|
|
24666
24674
|
if (N = this.managedTagsInfo.map[T[D]], N) {
|
|
24667
24675
|
N(v[w]);
|
|
24668
24676
|
break;
|
|
@@ -24698,10 +24706,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
24698
24706
|
}).bind(a), k = f ? "" : `
|
|
24699
24707
|
`;
|
|
24700
24708
|
let N = f ? 0 : this._variable.codeIndent * 1;
|
|
24701
|
-
return N = N > 0 ? new c.Array(N + 1).join(" ") : "", function T(D,
|
|
24702
|
-
const R = D.childNodes,
|
|
24709
|
+
return N = N > 0 ? new c.Array(N + 1).join(" ") : "", function T(D, O) {
|
|
24710
|
+
const R = D.childNodes, L = p.test(D.nodeName), P = L ? O : "";
|
|
24703
24711
|
for (let z = 0, V = R.length, W, $, F, H, G, q; z < V; z++) {
|
|
24704
|
-
if (W = R[z], H = p.test(W.nodeName), $ = H ? k : "", F = w(W) && !
|
|
24712
|
+
if (W = R[z], H = p.test(W.nodeName), $ = H ? k : "", F = w(W) && !L && !/^(TH|TD)$/i.test(D.nodeName) ? k : "", W.nodeType === 8) {
|
|
24705
24713
|
g += `
|
|
24706
24714
|
<!-- ` + W.textContent.trim() + " -->" + $;
|
|
24707
24715
|
continue;
|
|
@@ -24714,7 +24722,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
24714
24722
|
g += (/^HR$/i.test(W.nodeName) ? k : "") + (/^PRE$/i.test(W.parentElement.nodeName) && /^BR$/i.test(W.nodeName) ? "" : P) + W.outerHTML + $;
|
|
24715
24723
|
continue;
|
|
24716
24724
|
}
|
|
24717
|
-
W.outerHTML ? (G = W.nodeName.toLowerCase(), q = P || H ?
|
|
24725
|
+
W.outerHTML ? (G = W.nodeName.toLowerCase(), q = P || H ? O : "", g += (F || (L ? "" : $)) + q + W.outerHTML.match(x("<" + G + "[^>]*>", "i"))[0] + $, T(W, O + N), g += (/\n$/.test(g) ? q : "") + "</" + G + ">" + (F || $ || L || /^(TH|TD)$/i.test(W.nodeName) ? k : "")) : g += new c.XMLSerializer().serializeToString(W);
|
|
24718
24726
|
}
|
|
24719
24727
|
}(v, ""), g.trim() + k;
|
|
24720
24728
|
},
|
|
@@ -24898,17 +24906,17 @@ function PS(t, n, r, i, s, o) {
|
|
|
24898
24906
|
return H ? H === "*" ? "[a-z-]+" : G ? H + "|" + G : H : "^";
|
|
24899
24907
|
}, T = "contenteditable|colspan|rowspan|target|href|download|rel|src|alt|class|type|origin-size" + "|controls|autoplay|loop|muted|poster|preload|playsinline" + "|allowfullscreen|sandbox|loading|allow|referrerpolicy|frameborder|scrolling", D = "data-format|data-size|data-file-size|data-file-name|data-origin|data-align|data-image-link|data-rotate|data-proportion|data-percentage|data-exp|data-font-size";
|
|
24900
24908
|
this._allowHTMLComments = s._editorTagsWhitelist.indexOf("//") > -1 || s._editorTagsWhitelist === "*", this._htmlCheckWhitelistRegExp = new g("^(" + w(s._editorTagsWhitelist.replace("|//", ""), "") + ")$", "i"), this._htmlCheckBlacklistRegExp = new g("^(" + (s.tagsBlacklist || "^") + ")$", "i"), this.editorTagsWhitelistRegExp = a.createTagsWhitelist(w(s._editorTagsWhitelist.replace("|//", "|<!--|-->"), "")), this.editorTagsBlacklistRegExp = a.createTagsBlacklist(s.tagsBlacklist.replace("|//", "|<!--|-->")), this.pasteTagsWhitelistRegExp = a.createTagsWhitelist(w(s.pasteTagsWhitelist, "")), this.pasteTagsBlacklistRegExp = a.createTagsBlacklist(s.pasteTagsBlacklist);
|
|
24901
|
-
const
|
|
24902
|
-
let
|
|
24909
|
+
const O = '\\s*=\\s*(")[^"]*\\1', R = s.attributesWhitelist;
|
|
24910
|
+
let L = {}, P = "";
|
|
24903
24911
|
if (R)
|
|
24904
24912
|
for (let H in R)
|
|
24905
|
-
!a.hasOwn(R, H) || /^on[a-z]+$/i.test(R[H]) || (H === "all" ? P = w(R[H], T) :
|
|
24906
|
-
this._attributesWhitelistRegExp = new g("\\s(?:" + (P || T + "|" + D) + ")" +
|
|
24913
|
+
!a.hasOwn(R, H) || /^on[a-z]+$/i.test(R[H]) || (H === "all" ? P = w(R[H], T) : L[H] = new g("\\s(?:" + w(R[H], T) + ")" + O, "ig"));
|
|
24914
|
+
this._attributesWhitelistRegExp = new g("\\s(?:" + (P || T + "|" + D) + ")" + O, "ig"), this._attributesWhitelistRegExp_all_data = new g("\\s(?:" + ((P || T) + "|data-[a-z0-9\\-]+") + ")" + O, "ig"), this._attributesTagsWhitelist = L;
|
|
24907
24915
|
const z = s.attributesBlacklist;
|
|
24908
|
-
if (
|
|
24916
|
+
if (L = {}, P = "", z)
|
|
24909
24917
|
for (let H in z)
|
|
24910
|
-
a.hasOwn(z, H) && (H === "all" ? P = w(z[H], "") :
|
|
24911
|
-
this._attributesBlacklistRegExp = new g("\\s(?:" + (P || "^") + ")" +
|
|
24918
|
+
a.hasOwn(z, H) && (H === "all" ? P = w(z[H], "") : L[H] = new g("\\s(?:" + w(z[H], "") + ")" + O, "ig"));
|
|
24919
|
+
this._attributesBlacklistRegExp = new g("\\s(?:" + (P || "^") + ")" + O, "ig"), this._attributesTagsBlacklist = L, this._isInline = /inline/i.test(s.mode), this._isBalloon = /balloon|balloon-always/i.test(s.mode), this._isBalloonAlways = /balloon-always/i.test(s.mode), this._cachingButtons(), this._fileInfoPluginsCheck = [], this._fileInfoPluginsReset = [], this.managedTagsInfo = { query: "", map: {} };
|
|
24912
24920
|
const V = [];
|
|
24913
24921
|
this.activePlugins = [], this._fileManager.tags = [], this._fileManager.pluginMap = {};
|
|
24914
24922
|
let W = [], $, F;
|
|
@@ -25165,8 +25173,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
25165
25173
|
for (let T = d; !a.isWysiwygDiv(T) && T; T = T.parentNode)
|
|
25166
25174
|
if (!(T.nodeType !== 1 || a.isBreak(T))) {
|
|
25167
25175
|
if (N = T.nodeName.toUpperCase(), v.push(N), !u.isReadOnly)
|
|
25168
|
-
for (let D = 0,
|
|
25169
|
-
|
|
25176
|
+
for (let D = 0, O; D < k; D++)
|
|
25177
|
+
O = w[D], p.indexOf(O) === -1 && r[O].active.call(u, T) && p.push(O);
|
|
25170
25178
|
if (a.isFormatElement(T)) {
|
|
25171
25179
|
p.indexOf("OUTDENT") === -1 && g.OUTDENT && !a.isImportantDisabled(g.OUTDENT) && (a.isListCell(T) || T.style[f] && a.getNumber(T.style[f], 0) > 0) && (p.push("OUTDENT"), g.OUTDENT.removeAttribute("disabled")), p.indexOf("INDENT") === -1 && g.INDENT && !a.isImportantDisabled(g.INDENT) && (p.push("INDENT"), a.isListCell(T) && !T.previousElementSibling ? g.INDENT.setAttribute("disabled", !0) : g.INDENT.removeAttribute("disabled"));
|
|
25172
25180
|
continue;
|
|
@@ -25256,8 +25264,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
25256
25264
|
if (a.getFormatElement(T.startContainer) === a.getFormatElement(T.endContainer))
|
|
25257
25265
|
if (a.isList(w)) {
|
|
25258
25266
|
d.preventDefault();
|
|
25259
|
-
const D = a.createElement("LI"),
|
|
25260
|
-
D.appendChild(p), w.insertBefore(D,
|
|
25267
|
+
const D = a.createElement("LI"), O = p.nextElementSibling;
|
|
25268
|
+
D.appendChild(p), w.insertBefore(D, O), u.focus();
|
|
25261
25269
|
} else !a.isWysiwygDiv(p) && !a.isComponent(p) && (!a.isTable(p) || a.isCell(p)) && u._setDefaultFormat(a.isRangeFormatElement(w) ? "DIV" : s.defaultTag) !== null ? (d.preventDefault(), u.focus()) : m._applyTagEffects();
|
|
25262
25270
|
} else
|
|
25263
25271
|
m._applyTagEffects();
|
|
@@ -25292,7 +25300,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
25292
25300
|
w = w[v ? 0 : w.length - 1];
|
|
25293
25301
|
const k = u.getGlobalScrollOffset();
|
|
25294
25302
|
let N = k.left, T = k.top;
|
|
25295
|
-
const D = x.offsetWidth,
|
|
25303
|
+
const D = x.offsetWidth, O = m._getEditorOffsets(null), R = O.top, L = O.left;
|
|
25296
25304
|
if (g.style.top = "-10000px", g.style.visibility = "hidden", g.style.display = "block", !w) {
|
|
25297
25305
|
const $ = u.getSelectionNode();
|
|
25298
25306
|
if (a.isFormatElement($)) {
|
|
@@ -25317,7 +25325,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
25317
25325
|
top: w.top + W.top,
|
|
25318
25326
|
right: w.right + W.right - W.width,
|
|
25319
25327
|
bottom: w.bottom + W.bottom - W.height
|
|
25320
|
-
}), m._setToolbarOffset(v, w, g,
|
|
25328
|
+
}), m._setToolbarOffset(v, w, g, L, D, N, T, R, P), (z !== g.offsetWidth || V !== g.offsetHeight) && m._setToolbarOffset(v, w, g, L, D, N, T, R, P), s.toolbarContainer) {
|
|
25321
25329
|
const $ = x.parentElement;
|
|
25322
25330
|
let F = s.toolbarContainer, H = F.offsetLeft, G = F.offsetTop;
|
|
25323
25331
|
for (; !F.parentElement.contains($) || !/^(BODY|HTML)$/i.test(F.parentElement.nodeName); )
|
|
@@ -25327,10 +25335,10 @@ function PS(t, n, r, i, s, o) {
|
|
|
25327
25335
|
g.style.visibility = "";
|
|
25328
25336
|
},
|
|
25329
25337
|
_setToolbarOffset: function(d, f, g, x, p, v, w, k, N) {
|
|
25330
|
-
const D = g.offsetWidth,
|
|
25331
|
-
let P = (d ? f.top -
|
|
25338
|
+
const D = g.offsetWidth, O = f.noText && !d ? 0 : g.offsetHeight, R = (d ? f.left : f.right) - x - D / 2 + v, L = R + D - p;
|
|
25339
|
+
let P = (d ? f.top - O - N : f.bottom + N) - (f.noText ? 0 : k) + w, z = R < 0 ? 1 : L < 0 ? R : R - L - 1 - 1, V = !1;
|
|
25332
25340
|
const W = P + (d ? m._getEditorOffsets(null).top : g.offsetHeight - t.element.wysiwyg.offsetHeight);
|
|
25333
|
-
!d && W > 0 && m._getPageBottomSpace() < W ? (d = !0, V = !0) : d && l.documentElement.offsetTop > W && (d = !1, V = !0), V && (P = (d ? f.top -
|
|
25341
|
+
!d && W > 0 && m._getPageBottomSpace() < W ? (d = !0, V = !0) : d && l.documentElement.offsetTop > W && (d = !1, V = !0), V && (P = (d ? f.top - O - N : f.bottom + N) - (f.noText ? 0 : k) + w), g.style.left = c.Math.floor(z) + "px", g.style.top = c.Math.floor(P) + "px", d ? (a.removeClass(t.element._arrow, "se-arrow-up"), a.addClass(t.element._arrow, "se-arrow-down"), t.element._arrow.style.top = O + "px") : (a.removeClass(t.element._arrow, "se-arrow-down"), a.addClass(t.element._arrow, "se-arrow-up"), t.element._arrow.style.top = -N + "px");
|
|
25334
25342
|
const $ = c.Math.floor(D / 2 + (R - z));
|
|
25335
25343
|
t.element._arrow.style.left = ($ + N > g.offsetWidth ? g.offsetWidth - N : $ < N ? N : $) + "px";
|
|
25336
25344
|
},
|
|
@@ -25430,7 +25438,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
25430
25438
|
break;
|
|
25431
25439
|
}
|
|
25432
25440
|
!k && u._isEdgeFormat(w.startContainer, w.startOffset, "start") && a.isFormatElement(T.previousElementSibling) && (u._formatAttrsTemp = T.previousElementSibling.attributes);
|
|
25433
|
-
const
|
|
25441
|
+
const L = w.commonAncestorContainer;
|
|
25434
25442
|
if (T = a.getFormatElement(w.startContainer, null), D = a.getRangeFormatElement(T, null), D && T && !a.isCell(D) && !/^FIGCAPTION$/i.test(D.nodeName)) {
|
|
25435
25443
|
if (a.isListCell(T) && a.isList(D) && (a.isListCell(D.parentNode) || T.previousElementSibling) && (f === T || f.nodeType === 3 && (!f.previousSibling || a.isList(f.previousSibling))) && (a.getFormatElement(w.startContainer, null) !== a.getFormatElement(w.endContainer, null) ? D.contains(w.startContainer) : w.startOffset === 0 && w.collapsed)) {
|
|
25436
25444
|
if (w.startContainer !== w.endContainer)
|
|
@@ -25457,7 +25465,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
25457
25465
|
break;
|
|
25458
25466
|
}
|
|
25459
25467
|
if (!k && w.startOffset === 0) {
|
|
25460
|
-
let q = !0, J =
|
|
25468
|
+
let q = !0, J = L;
|
|
25461
25469
|
for (; J && J !== D && !a.isWysiwygDiv(J); ) {
|
|
25462
25470
|
if (J.previousSibling && (J.previousSibling.nodeType === 1 || !a.onlyZeroWidthSpace(J.previousSibling.textContent.trim()))) {
|
|
25463
25471
|
q = !1;
|
|
@@ -25472,8 +25480,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
25472
25480
|
}
|
|
25473
25481
|
}
|
|
25474
25482
|
if (!k && T && (w.startOffset === 0 || f === T && T.childNodes[w.startOffset])) {
|
|
25475
|
-
const q = a.isListCell(T), J = f === T ? T.childNodes[w.startOffset] : f, U = q ? J.previousSibling : T.previousSibling, K = q || (
|
|
25476
|
-
if (J && (q || !J.previousSibling) && (
|
|
25483
|
+
const q = a.isListCell(T), J = f === T ? T.childNodes[w.startOffset] : f, U = q ? J.previousSibling : T.previousSibling, K = q || (L.nodeType === 3 || a.isBreak(L)) && !L.previousSibling && w.startOffset === 0;
|
|
25484
|
+
if (J && (q || !J.previousSibling) && (L && a.isComponent(L.previousSibling) || K && a.isComponent(U))) {
|
|
25477
25485
|
const se = u.getFileComponent(U);
|
|
25478
25486
|
se ? (d.preventDefault(), d.stopPropagation(), q ? a.removeItem(J) : T.textContent.length === 0 && a.removeItem(T), u.selectComponent(se.target, se.pluginName) === !1 && u.blur()) : a.isComponent(U) && (d.preventDefault(), d.stopPropagation(), a.removeItem(U));
|
|
25479
25487
|
break;
|
|
@@ -25739,9 +25747,9 @@ function PS(t, n, r, i, s, o) {
|
|
|
25739
25747
|
d.preventDefault(), d.stopPropagation();
|
|
25740
25748
|
const R = u.plugins.table;
|
|
25741
25749
|
if (R && !R._shift && !R._ref) {
|
|
25742
|
-
const
|
|
25743
|
-
if (
|
|
25744
|
-
R.onTableCellMultiSelect.call(u,
|
|
25750
|
+
const L = a.getParentElement(T, a.isCell);
|
|
25751
|
+
if (L) {
|
|
25752
|
+
R.onTableCellMultiSelect.call(u, L, !0);
|
|
25745
25753
|
return;
|
|
25746
25754
|
}
|
|
25747
25755
|
}
|
|
@@ -25777,18 +25785,18 @@ function PS(t, n, r, i, s, o) {
|
|
|
25777
25785
|
}
|
|
25778
25786
|
let T = f;
|
|
25779
25787
|
for (; T && T.firstChild; ) T = T.firstChild;
|
|
25780
|
-
const D = T === k,
|
|
25781
|
-
let R = null,
|
|
25788
|
+
const D = T === k, O = T === N;
|
|
25789
|
+
let R = null, L = 0;
|
|
25782
25790
|
if (d.keyCode === 38 && D) {
|
|
25783
25791
|
const P = v && v.previousElementSibling;
|
|
25784
25792
|
for (P ? R = P.children[w.cellIndex] : R = a.getPreviousDeepestNode(x, u.context.element.wysiwyg); R && R.lastChild; ) R = R.lastChild;
|
|
25785
|
-
R && (
|
|
25786
|
-
} else if (d.keyCode === 40 &&
|
|
25793
|
+
R && (L = R.textContent.length);
|
|
25794
|
+
} else if (d.keyCode === 40 && O) {
|
|
25787
25795
|
const P = v && v.nextElementSibling;
|
|
25788
25796
|
for (P ? R = P.children[w.cellIndex] : R = a.getNextDeepestNode(x, u.context.element.wysiwyg); R && R.firstChild; ) R = R.firstChild;
|
|
25789
25797
|
}
|
|
25790
25798
|
if (R)
|
|
25791
|
-
return g(R,
|
|
25799
|
+
return g(R, L), !1;
|
|
25792
25800
|
}
|
|
25793
25801
|
const p = u.getFileComponent(f);
|
|
25794
25802
|
if (p) {
|
|
@@ -25830,7 +25838,7 @@ function PS(t, n, r, i, s, o) {
|
|
|
25830
25838
|
}
|
|
25831
25839
|
const N = a.getFormatElement(v, null), T = a.getRangeFormatElement(v, null), D = u._formatAttrsTemp;
|
|
25832
25840
|
if (D) {
|
|
25833
|
-
for (let R = 0,
|
|
25841
|
+
for (let R = 0, L = D.length; R < L; R++) {
|
|
25834
25842
|
if (f === 13 && /^id$/i.test(D[R].name)) {
|
|
25835
25843
|
N.removeAttribute("id");
|
|
25836
25844
|
continue;
|
|
@@ -25840,9 +25848,9 @@ function PS(t, n, r, i, s, o) {
|
|
|
25840
25848
|
u._formatAttrsTemp = null;
|
|
25841
25849
|
}
|
|
25842
25850
|
if (!N && p.collapsed && !a.isComponent(v) && !a.isList(v) && u._setDefaultFormat(a.isRangeFormatElement(T) ? "DIV" : s.defaultTag) !== null && (v = u.getSelectionNode()), !g && !x && !m._nonTextKeyCode.test(f) && v.nodeType === 3 && a.zeroWidthRegExp.test(v.textContent) && !(d.isComposing !== void 0 ? d.isComposing : m._IEisComposing)) {
|
|
25843
|
-
let R = p.startOffset,
|
|
25844
|
-
const P = (v.textContent.substring(0,
|
|
25845
|
-
R = p.startOffset - P,
|
|
25851
|
+
let R = p.startOffset, L = p.endOffset;
|
|
25852
|
+
const P = (v.textContent.substring(0, L).match(m._frontZeroWidthReg) || "").length;
|
|
25853
|
+
R = p.startOffset - P, L = p.endOffset - P, v.textContent = v.textContent.replace(a.zeroWidthRegExp, ""), u.setRange(v, R < 0 ? 0 : R, v, L < 0 ? 0 : L);
|
|
25846
25854
|
}
|
|
25847
25855
|
m._deleteKeyCode.test(f) && N && a.onlyZeroWidthSpace(N.textContent) && !N.previousElementSibling && (N.innerHTML = "<br>", u.setRange(N, 0, N, 0)), u._charCount(""), !(typeof b.onKeyUp == "function" && b.onKeyUp(d, u) === !1) && !g && !x && !m._historyIgnoreKeyCode.test(f) && u.history.push(!0);
|
|
25848
25856
|
},
|
|
@@ -26030,17 +26038,17 @@ function PS(t, n, r, i, s, o) {
|
|
|
26030
26038
|
do
|
|
26031
26039
|
p += v.scrollTop, v = v.parentElement;
|
|
26032
26040
|
while (v && !/^(BODY|HTML)$/i.test(v.nodeName));
|
|
26033
|
-
const w = x.wysiwyg.scrollTop, k = m._getEditorOffsets(null), N = a.getOffset(f, x.wysiwygFrame).top + w, T = d.pageY + p + (s.iframe && !s.toolbarContainer ? x.toolbar.offsetHeight : 0), D = N + (s.iframe ? p : k.top),
|
|
26034
|
-
let R = "",
|
|
26035
|
-
if ((
|
|
26036
|
-
|
|
26037
|
-
else if ((
|
|
26038
|
-
|
|
26041
|
+
const w = x.wysiwyg.scrollTop, k = m._getEditorOffsets(null), N = a.getOffset(f, x.wysiwygFrame).top + w, T = d.pageY + p + (s.iframe && !s.toolbarContainer ? x.toolbar.offsetHeight : 0), D = N + (s.iframe ? p : k.top), O = a.isListCell(f.parentNode);
|
|
26042
|
+
let R = "", L = "";
|
|
26043
|
+
if ((O ? !f.previousSibling : !a.isFormatElement(f.previousElementSibling)) && T < D + 20)
|
|
26044
|
+
L = N, R = "t";
|
|
26045
|
+
else if ((O ? !f.nextSibling : !a.isFormatElement(f.nextElementSibling)) && T > D + f.offsetHeight - 20)
|
|
26046
|
+
L = N + f.offsetHeight, R = "b";
|
|
26039
26047
|
else {
|
|
26040
26048
|
g.display = "none";
|
|
26041
26049
|
return;
|
|
26042
26050
|
}
|
|
26043
|
-
u._variable._lineBreakComp = f, u._variable._lineBreakDir = R, g.top =
|
|
26051
|
+
u._variable._lineBreakComp = f, u._variable._lineBreakDir = R, g.top = L - w + "px", u._lineBreakerButton.style.left = a.getOffset(f).left + f.offsetWidth / 2 - 15 + "px", g.display = "block";
|
|
26044
26052
|
} else g.display !== "none" && (g.display = "none");
|
|
26045
26053
|
},
|
|
26046
26054
|
_enterPrevent: function(d) {
|
|
@@ -26488,16 +26496,16 @@ function PS(t, n, r, i, s, o) {
|
|
|
26488
26496
|
f || (d = u.cleanHTML(d, null, null));
|
|
26489
26497
|
try {
|
|
26490
26498
|
if (a.isListCell(a.getFormatElement(u.getSelectionNode(), null))) {
|
|
26491
|
-
const
|
|
26492
|
-
u._isFormatData(
|
|
26499
|
+
const L = l.createRange().createContextualFragment(d).childNodes;
|
|
26500
|
+
u._isFormatData(L) && (d = u._convertListCell(L));
|
|
26493
26501
|
}
|
|
26494
26502
|
const v = l.createRange().createContextualFragment(d).childNodes;
|
|
26495
26503
|
if (g) {
|
|
26496
26504
|
const R = u._charTypeHTML ? "outerHTML" : "textContent";
|
|
26497
|
-
let
|
|
26505
|
+
let L = "";
|
|
26498
26506
|
for (let P = 0, z = v.length; P < z; P++)
|
|
26499
|
-
|
|
26500
|
-
if (!u.checkCharCount(
|
|
26507
|
+
L += v[P][R];
|
|
26508
|
+
if (!u.checkCharCount(L, null)) return;
|
|
26501
26509
|
}
|
|
26502
26510
|
let w, k, N, T, D;
|
|
26503
26511
|
for (; w = v[0]; ) {
|
|
@@ -26508,8 +26516,8 @@ function PS(t, n, r, i, s, o) {
|
|
|
26508
26516
|
N = u.insertNode(w, k, !1), k = N.container || N, D || (D = N), T = w;
|
|
26509
26517
|
}
|
|
26510
26518
|
T.nodeType === 3 && k.nodeType === 1 && (k = T);
|
|
26511
|
-
const
|
|
26512
|
-
x ? u.setRange(D.container || D, D.startOffset || 0, k,
|
|
26519
|
+
const O = k.nodeType === 3 ? N.endOffset || k.textContent.length : k.childNodes.length;
|
|
26520
|
+
x ? u.setRange(D.container || D, D.startOffset || 0, k, O) : u.setRange(k, O, k, O);
|
|
26513
26521
|
} catch (p) {
|
|
26514
26522
|
if (u.isDisabled || u.isReadOnly) return;
|
|
26515
26523
|
console.warn("[SUNEDITOR.insertHTML.fail] " + p), u.execCommand("insertHTML", !1, d);
|
|
@@ -26803,11 +26811,11 @@ var us = St && St.__assign || function() {
|
|
|
26803
26811
|
};
|
|
26804
26812
|
Object.defineProperty(x0, "__esModule", { value: !0 });
|
|
26805
26813
|
var wn = WS(ge), $S = k0(MS), VS = k0(OS), kd = k0(S0), Ed = Ii, US = function(t) {
|
|
26806
|
-
var n = t.name, r = t.lang, i = t.setOptions, s = i === void 0 ? {} : i, o = t.placeholder, l = t.width, c = l === void 0 ? "100%" : l, a = t.height, h = t.defaultValue, u = t.setContents, m = t.setDefaultStyle, b = t.getSunEditorInstance, C = t.appendContents, S = t.setAllPlugins, E = S === void 0 ? !0 : S, d = t.disable, f = d === void 0 ? !1 : d, g = t.readOnly, x = g === void 0 ? !1 : g, p = t.hide, v = p === void 0 ? !1 : p, w = t.hideToolbar, k = w === void 0 ? !1 : w, N = t.disableToolbar, T = N === void 0 ? !1 : N, D = t.onChange,
|
|
26814
|
+
var n = t.name, r = t.lang, i = t.setOptions, s = i === void 0 ? {} : i, o = t.placeholder, l = t.width, c = l === void 0 ? "100%" : l, a = t.height, h = t.defaultValue, u = t.setContents, m = t.setDefaultStyle, b = t.getSunEditorInstance, C = t.appendContents, S = t.setAllPlugins, E = S === void 0 ? !0 : S, d = t.disable, f = d === void 0 ? !1 : d, g = t.readOnly, x = g === void 0 ? !1 : g, p = t.hide, v = p === void 0 ? !1 : p, w = t.hideToolbar, k = w === void 0 ? !1 : w, N = t.disableToolbar, T = N === void 0 ? !1 : N, D = t.onChange, O = t.autoFocus, R = t.onBlur, L = t.onLoad, P = (0, wn.useRef)(null), z = (0, wn.useRef)(null), V = (0, wn.useRef)(!0);
|
|
26807
26815
|
return (0, wn.useEffect)(function() {
|
|
26808
26816
|
var W, $ = us(us({}, s), { lang: r ? (0, kd.default)(r) : s.lang, width: c ?? s.width, placeholder: o ?? s.placeholder, plugins: (W = s.plugins) !== null && W !== void 0 ? W : E ? $S.default : void 0, height: a ?? s.height, value: h ?? s.value, defaultStyle: m ?? s.defaultStyle });
|
|
26809
26817
|
return n && $.value && (P.current.value = $.value), z.current = VS.default.create(P.current, $), b && b(z.current), z.current.onload = function(F, H) {
|
|
26810
|
-
return H || (u && (z.current.setContents(u), z.current.core.focusEdge(null)), C && z.current.appendContents(C), z.current.util.isIE && z.current.core._createDefaultRange(), f && z.current.disable(), x && z.current.readOnly(!0), v && z.current.hide(), k && z.current.toolbar.hide(), T && z.current.toolbar.disable(),
|
|
26818
|
+
return H || (u && (z.current.setContents(u), z.current.core.focusEdge(null)), C && z.current.appendContents(C), z.current.util.isIE && z.current.core._createDefaultRange(), f && z.current.disable(), x && z.current.readOnly(!0), v && z.current.hide(), k && z.current.toolbar.hide(), T && z.current.toolbar.disable(), O === !1 ? z.current.core.context.element.wysiwyg.blur() : O && z.current.core.context.element.wysiwyg.focus()), L == null ? void 0 : L(H);
|
|
26811
26819
|
}, z.current.onChange = function(F) {
|
|
26812
26820
|
n && P.current && (P.current.value = F), D && D(F);
|
|
26813
26821
|
}, R && (z.current.onBlur = function(F) {
|
|
@@ -30488,102 +30496,102 @@ function M(t, n, r, i, s, o) {
|
|
|
30488
30496
|
replace: i
|
|
30489
30497
|
}, o && i && (_t[t][i] = _t[t][s]);
|
|
30490
30498
|
}
|
|
30491
|
-
var A = "math", pe = "text",
|
|
30492
|
-
M(A,
|
|
30493
|
-
M(A,
|
|
30494
|
-
M(A,
|
|
30495
|
-
M(A,
|
|
30496
|
-
M(A,
|
|
30497
|
-
M(A,
|
|
30498
|
-
M(A,
|
|
30499
|
-
M(A,
|
|
30500
|
-
M(A,
|
|
30501
|
-
M(A,
|
|
30502
|
-
M(A,
|
|
30503
|
-
M(A,
|
|
30504
|
-
M(A,
|
|
30505
|
-
M(A,
|
|
30506
|
-
M(A,
|
|
30507
|
-
M(A,
|
|
30508
|
-
M(A,
|
|
30509
|
-
M(A,
|
|
30510
|
-
M(A,
|
|
30511
|
-
M(A,
|
|
30512
|
-
M(A,
|
|
30513
|
-
M(A,
|
|
30514
|
-
M(A,
|
|
30515
|
-
M(A,
|
|
30516
|
-
M(A,
|
|
30517
|
-
M(A,
|
|
30518
|
-
M(A,
|
|
30519
|
-
M(pe,
|
|
30520
|
-
M(A,
|
|
30521
|
-
M(pe,
|
|
30522
|
-
M(A,
|
|
30523
|
-
M(A,
|
|
30524
|
-
M(A,
|
|
30525
|
-
M(A,
|
|
30526
|
-
M(A,
|
|
30527
|
-
M(A,
|
|
30528
|
-
M(A,
|
|
30529
|
-
M(A,
|
|
30530
|
-
M(A,
|
|
30531
|
-
M(A,
|
|
30532
|
-
M(A,
|
|
30533
|
-
M(A,
|
|
30534
|
-
M(A,
|
|
30535
|
-
M(A,
|
|
30536
|
-
M(A,
|
|
30537
|
-
M(A,
|
|
30538
|
-
M(A,
|
|
30539
|
-
M(pe,
|
|
30540
|
-
M(A,
|
|
30541
|
-
M(pe,
|
|
30542
|
-
M(A,
|
|
30543
|
-
M(pe,
|
|
30544
|
-
M(pe,
|
|
30545
|
-
M(A,
|
|
30546
|
-
M(pe,
|
|
30547
|
-
M(pe,
|
|
30548
|
-
M(A,
|
|
30549
|
-
M(A,
|
|
30550
|
-
M(A,
|
|
30551
|
-
M(A,
|
|
30552
|
-
M(A,
|
|
30553
|
-
M(A,
|
|
30554
|
-
M(A,
|
|
30555
|
-
M(A,
|
|
30556
|
-
M(A,
|
|
30557
|
-
M(A,
|
|
30558
|
-
M(A,
|
|
30559
|
-
M(A,
|
|
30560
|
-
M(A,
|
|
30561
|
-
M(A,
|
|
30562
|
-
M(A,
|
|
30563
|
-
M(A,
|
|
30564
|
-
M(A,
|
|
30565
|
-
M(A,
|
|
30566
|
-
M(A,
|
|
30567
|
-
M(A,
|
|
30568
|
-
M(A,
|
|
30569
|
-
M(A,
|
|
30570
|
-
M(A,
|
|
30571
|
-
M(A,
|
|
30572
|
-
M(A,
|
|
30573
|
-
M(A,
|
|
30574
|
-
M(A,
|
|
30575
|
-
M(A,
|
|
30576
|
-
M(A,
|
|
30577
|
-
M(A,
|
|
30578
|
-
M(A,
|
|
30579
|
-
M(A,
|
|
30580
|
-
M(A,
|
|
30581
|
-
M(A,
|
|
30582
|
-
M(A,
|
|
30583
|
-
M(A,
|
|
30584
|
-
M(A,
|
|
30585
|
-
M(A,
|
|
30586
|
-
M(A,
|
|
30499
|
+
var A = "math", pe = "text", I = "main", j = "ams", kt = "accent-token", Me = "bin", nn = "close", Yi = "inner", $e = "mathord", $t = "op-token", gn = "open", Pa = "punct", Z = "rel", kr = "spacing", te = "textord";
|
|
30500
|
+
M(A, I, Z, "≡", "\\equiv", !0);
|
|
30501
|
+
M(A, I, Z, "≺", "\\prec", !0);
|
|
30502
|
+
M(A, I, Z, "≻", "\\succ", !0);
|
|
30503
|
+
M(A, I, Z, "∼", "\\sim", !0);
|
|
30504
|
+
M(A, I, Z, "⊥", "\\perp");
|
|
30505
|
+
M(A, I, Z, "⪯", "\\preceq", !0);
|
|
30506
|
+
M(A, I, Z, "⪰", "\\succeq", !0);
|
|
30507
|
+
M(A, I, Z, "≃", "\\simeq", !0);
|
|
30508
|
+
M(A, I, Z, "∣", "\\mid", !0);
|
|
30509
|
+
M(A, I, Z, "≪", "\\ll", !0);
|
|
30510
|
+
M(A, I, Z, "≫", "\\gg", !0);
|
|
30511
|
+
M(A, I, Z, "≍", "\\asymp", !0);
|
|
30512
|
+
M(A, I, Z, "∥", "\\parallel");
|
|
30513
|
+
M(A, I, Z, "⋈", "\\bowtie", !0);
|
|
30514
|
+
M(A, I, Z, "⌣", "\\smile", !0);
|
|
30515
|
+
M(A, I, Z, "⊑", "\\sqsubseteq", !0);
|
|
30516
|
+
M(A, I, Z, "⊒", "\\sqsupseteq", !0);
|
|
30517
|
+
M(A, I, Z, "≐", "\\doteq", !0);
|
|
30518
|
+
M(A, I, Z, "⌢", "\\frown", !0);
|
|
30519
|
+
M(A, I, Z, "∋", "\\ni", !0);
|
|
30520
|
+
M(A, I, Z, "∝", "\\propto", !0);
|
|
30521
|
+
M(A, I, Z, "⊢", "\\vdash", !0);
|
|
30522
|
+
M(A, I, Z, "⊣", "\\dashv", !0);
|
|
30523
|
+
M(A, I, Z, "∋", "\\owns");
|
|
30524
|
+
M(A, I, Pa, ".", "\\ldotp");
|
|
30525
|
+
M(A, I, Pa, "⋅", "\\cdotp");
|
|
30526
|
+
M(A, I, te, "#", "\\#");
|
|
30527
|
+
M(pe, I, te, "#", "\\#");
|
|
30528
|
+
M(A, I, te, "&", "\\&");
|
|
30529
|
+
M(pe, I, te, "&", "\\&");
|
|
30530
|
+
M(A, I, te, "ℵ", "\\aleph", !0);
|
|
30531
|
+
M(A, I, te, "∀", "\\forall", !0);
|
|
30532
|
+
M(A, I, te, "ℏ", "\\hbar", !0);
|
|
30533
|
+
M(A, I, te, "∃", "\\exists", !0);
|
|
30534
|
+
M(A, I, te, "∇", "\\nabla", !0);
|
|
30535
|
+
M(A, I, te, "♭", "\\flat", !0);
|
|
30536
|
+
M(A, I, te, "ℓ", "\\ell", !0);
|
|
30537
|
+
M(A, I, te, "♮", "\\natural", !0);
|
|
30538
|
+
M(A, I, te, "♣", "\\clubsuit", !0);
|
|
30539
|
+
M(A, I, te, "℘", "\\wp", !0);
|
|
30540
|
+
M(A, I, te, "♯", "\\sharp", !0);
|
|
30541
|
+
M(A, I, te, "♢", "\\diamondsuit", !0);
|
|
30542
|
+
M(A, I, te, "ℜ", "\\Re", !0);
|
|
30543
|
+
M(A, I, te, "♡", "\\heartsuit", !0);
|
|
30544
|
+
M(A, I, te, "ℑ", "\\Im", !0);
|
|
30545
|
+
M(A, I, te, "♠", "\\spadesuit", !0);
|
|
30546
|
+
M(A, I, te, "§", "\\S", !0);
|
|
30547
|
+
M(pe, I, te, "§", "\\S");
|
|
30548
|
+
M(A, I, te, "¶", "\\P", !0);
|
|
30549
|
+
M(pe, I, te, "¶", "\\P");
|
|
30550
|
+
M(A, I, te, "†", "\\dag");
|
|
30551
|
+
M(pe, I, te, "†", "\\dag");
|
|
30552
|
+
M(pe, I, te, "†", "\\textdagger");
|
|
30553
|
+
M(A, I, te, "‡", "\\ddag");
|
|
30554
|
+
M(pe, I, te, "‡", "\\ddag");
|
|
30555
|
+
M(pe, I, te, "‡", "\\textdaggerdbl");
|
|
30556
|
+
M(A, I, nn, "⎱", "\\rmoustache", !0);
|
|
30557
|
+
M(A, I, gn, "⎰", "\\lmoustache", !0);
|
|
30558
|
+
M(A, I, nn, "⟯", "\\rgroup", !0);
|
|
30559
|
+
M(A, I, gn, "⟮", "\\lgroup", !0);
|
|
30560
|
+
M(A, I, Me, "∓", "\\mp", !0);
|
|
30561
|
+
M(A, I, Me, "⊖", "\\ominus", !0);
|
|
30562
|
+
M(A, I, Me, "⊎", "\\uplus", !0);
|
|
30563
|
+
M(A, I, Me, "⊓", "\\sqcap", !0);
|
|
30564
|
+
M(A, I, Me, "∗", "\\ast");
|
|
30565
|
+
M(A, I, Me, "⊔", "\\sqcup", !0);
|
|
30566
|
+
M(A, I, Me, "◯", "\\bigcirc", !0);
|
|
30567
|
+
M(A, I, Me, "∙", "\\bullet", !0);
|
|
30568
|
+
M(A, I, Me, "‡", "\\ddagger");
|
|
30569
|
+
M(A, I, Me, "≀", "\\wr", !0);
|
|
30570
|
+
M(A, I, Me, "⨿", "\\amalg");
|
|
30571
|
+
M(A, I, Me, "&", "\\And");
|
|
30572
|
+
M(A, I, Z, "⟵", "\\longleftarrow", !0);
|
|
30573
|
+
M(A, I, Z, "⇐", "\\Leftarrow", !0);
|
|
30574
|
+
M(A, I, Z, "⟸", "\\Longleftarrow", !0);
|
|
30575
|
+
M(A, I, Z, "⟶", "\\longrightarrow", !0);
|
|
30576
|
+
M(A, I, Z, "⇒", "\\Rightarrow", !0);
|
|
30577
|
+
M(A, I, Z, "⟹", "\\Longrightarrow", !0);
|
|
30578
|
+
M(A, I, Z, "↔", "\\leftrightarrow", !0);
|
|
30579
|
+
M(A, I, Z, "⟷", "\\longleftrightarrow", !0);
|
|
30580
|
+
M(A, I, Z, "⇔", "\\Leftrightarrow", !0);
|
|
30581
|
+
M(A, I, Z, "⟺", "\\Longleftrightarrow", !0);
|
|
30582
|
+
M(A, I, Z, "↦", "\\mapsto", !0);
|
|
30583
|
+
M(A, I, Z, "⟼", "\\longmapsto", !0);
|
|
30584
|
+
M(A, I, Z, "↗", "\\nearrow", !0);
|
|
30585
|
+
M(A, I, Z, "↩", "\\hookleftarrow", !0);
|
|
30586
|
+
M(A, I, Z, "↪", "\\hookrightarrow", !0);
|
|
30587
|
+
M(A, I, Z, "↘", "\\searrow", !0);
|
|
30588
|
+
M(A, I, Z, "↼", "\\leftharpoonup", !0);
|
|
30589
|
+
M(A, I, Z, "⇀", "\\rightharpoonup", !0);
|
|
30590
|
+
M(A, I, Z, "↙", "\\swarrow", !0);
|
|
30591
|
+
M(A, I, Z, "↽", "\\leftharpoondown", !0);
|
|
30592
|
+
M(A, I, Z, "⇁", "\\rightharpoondown", !0);
|
|
30593
|
+
M(A, I, Z, "↖", "\\nwarrow", !0);
|
|
30594
|
+
M(A, I, Z, "⇌", "\\rightleftharpoons", !0);
|
|
30587
30595
|
M(A, j, Z, "≮", "\\nless", !0);
|
|
30588
30596
|
M(A, j, Z, "", "\\@nleqslant");
|
|
30589
30597
|
M(A, j, Z, "", "\\@nleqq");
|
|
@@ -30663,7 +30671,7 @@ M(A, j, te, "★", "\\bigstar");
|
|
|
30663
30671
|
M(A, j, te, "∢", "\\sphericalangle", !0);
|
|
30664
30672
|
M(A, j, te, "∁", "\\complement", !0);
|
|
30665
30673
|
M(A, j, te, "ð", "\\eth", !0);
|
|
30666
|
-
M(pe,
|
|
30674
|
+
M(pe, I, te, "ð", "ð");
|
|
30667
30675
|
M(A, j, te, "╱", "\\diagup");
|
|
30668
30676
|
M(A, j, te, "╲", "\\diagdown");
|
|
30669
30677
|
M(A, j, te, "□", "\\square");
|
|
@@ -30753,7 +30761,7 @@ M(A, j, Z, "⋙", "\\gggtr");
|
|
|
30753
30761
|
M(A, j, Me, "⊲", "\\lhd");
|
|
30754
30762
|
M(A, j, Me, "⊳", "\\rhd");
|
|
30755
30763
|
M(A, j, Z, "≂", "\\eqsim", !0);
|
|
30756
|
-
M(A,
|
|
30764
|
+
M(A, I, Z, "⋈", "\\Join");
|
|
30757
30765
|
M(A, j, Z, "≑", "\\Doteq", !0);
|
|
30758
30766
|
M(A, j, Me, "∔", "\\dotplus", !0);
|
|
30759
30767
|
M(A, j, Me, "∖", "\\smallsetminus");
|
|
@@ -30791,8 +30799,8 @@ M(A, j, Z, "↰", "\\Lsh", !0);
|
|
|
30791
30799
|
M(A, j, Z, "⇈", "\\upuparrows", !0);
|
|
30792
30800
|
M(A, j, Z, "↿", "\\upharpoonleft", !0);
|
|
30793
30801
|
M(A, j, Z, "⇃", "\\downharpoonleft", !0);
|
|
30794
|
-
M(A,
|
|
30795
|
-
M(A,
|
|
30802
|
+
M(A, I, Z, "⊶", "\\origof", !0);
|
|
30803
|
+
M(A, I, Z, "⊷", "\\imageof", !0);
|
|
30796
30804
|
M(A, j, Z, "⊸", "\\multimap", !0);
|
|
30797
30805
|
M(A, j, Z, "↭", "\\leftrightsquigarrow", !0);
|
|
30798
30806
|
M(A, j, Z, "⇉", "\\rightrightarrows", !0);
|
|
@@ -30810,297 +30818,297 @@ M(A, j, Z, "⇝", "\\rightsquigarrow", !0);
|
|
|
30810
30818
|
M(A, j, Z, "⇝", "\\leadsto");
|
|
30811
30819
|
M(A, j, Z, "⇛", "\\Rrightarrow", !0);
|
|
30812
30820
|
M(A, j, Z, "↾", "\\restriction");
|
|
30813
|
-
M(A,
|
|
30814
|
-
M(A,
|
|
30815
|
-
M(pe,
|
|
30816
|
-
M(pe,
|
|
30817
|
-
M(A,
|
|
30818
|
-
M(pe,
|
|
30819
|
-
M(A,
|
|
30820
|
-
M(pe,
|
|
30821
|
-
M(pe,
|
|
30822
|
-
M(A,
|
|
30823
|
-
M(A,
|
|
30824
|
-
M(A,
|
|
30825
|
-
M(A,
|
|
30826
|
-
M(A,
|
|
30827
|
-
M(A,
|
|
30828
|
-
M(A,
|
|
30829
|
-
M(A,
|
|
30830
|
-
M(A,
|
|
30831
|
-
M(A,
|
|
30832
|
-
M(A,
|
|
30833
|
-
M(A,
|
|
30834
|
-
M(A,
|
|
30835
|
-
M(A,
|
|
30836
|
-
M(A,
|
|
30837
|
-
M(A,
|
|
30838
|
-
M(A,
|
|
30839
|
-
M(A,
|
|
30840
|
-
M(A,
|
|
30841
|
-
M(A,
|
|
30842
|
-
M(A,
|
|
30843
|
-
M(A,
|
|
30844
|
-
M(A,
|
|
30845
|
-
M(A,
|
|
30846
|
-
M(A,
|
|
30847
|
-
M(A,
|
|
30848
|
-
M(A,
|
|
30849
|
-
M(A,
|
|
30850
|
-
M(A,
|
|
30851
|
-
M(A,
|
|
30852
|
-
M(A,
|
|
30853
|
-
M(A,
|
|
30854
|
-
M(A,
|
|
30821
|
+
M(A, I, te, "‘", "`");
|
|
30822
|
+
M(A, I, te, "$", "\\$");
|
|
30823
|
+
M(pe, I, te, "$", "\\$");
|
|
30824
|
+
M(pe, I, te, "$", "\\textdollar");
|
|
30825
|
+
M(A, I, te, "%", "\\%");
|
|
30826
|
+
M(pe, I, te, "%", "\\%");
|
|
30827
|
+
M(A, I, te, "_", "\\_");
|
|
30828
|
+
M(pe, I, te, "_", "\\_");
|
|
30829
|
+
M(pe, I, te, "_", "\\textunderscore");
|
|
30830
|
+
M(A, I, te, "∠", "\\angle", !0);
|
|
30831
|
+
M(A, I, te, "∞", "\\infty", !0);
|
|
30832
|
+
M(A, I, te, "′", "\\prime");
|
|
30833
|
+
M(A, I, te, "△", "\\triangle");
|
|
30834
|
+
M(A, I, te, "Γ", "\\Gamma", !0);
|
|
30835
|
+
M(A, I, te, "Δ", "\\Delta", !0);
|
|
30836
|
+
M(A, I, te, "Θ", "\\Theta", !0);
|
|
30837
|
+
M(A, I, te, "Λ", "\\Lambda", !0);
|
|
30838
|
+
M(A, I, te, "Ξ", "\\Xi", !0);
|
|
30839
|
+
M(A, I, te, "Π", "\\Pi", !0);
|
|
30840
|
+
M(A, I, te, "Σ", "\\Sigma", !0);
|
|
30841
|
+
M(A, I, te, "Υ", "\\Upsilon", !0);
|
|
30842
|
+
M(A, I, te, "Φ", "\\Phi", !0);
|
|
30843
|
+
M(A, I, te, "Ψ", "\\Psi", !0);
|
|
30844
|
+
M(A, I, te, "Ω", "\\Omega", !0);
|
|
30845
|
+
M(A, I, te, "A", "Α");
|
|
30846
|
+
M(A, I, te, "B", "Β");
|
|
30847
|
+
M(A, I, te, "E", "Ε");
|
|
30848
|
+
M(A, I, te, "Z", "Ζ");
|
|
30849
|
+
M(A, I, te, "H", "Η");
|
|
30850
|
+
M(A, I, te, "I", "Ι");
|
|
30851
|
+
M(A, I, te, "K", "Κ");
|
|
30852
|
+
M(A, I, te, "M", "Μ");
|
|
30853
|
+
M(A, I, te, "N", "Ν");
|
|
30854
|
+
M(A, I, te, "O", "Ο");
|
|
30855
|
+
M(A, I, te, "P", "Ρ");
|
|
30856
|
+
M(A, I, te, "T", "Τ");
|
|
30857
|
+
M(A, I, te, "X", "Χ");
|
|
30858
|
+
M(A, I, te, "¬", "\\neg", !0);
|
|
30859
|
+
M(A, I, te, "¬", "\\lnot");
|
|
30860
|
+
M(A, I, te, "⊤", "\\top");
|
|
30861
|
+
M(A, I, te, "⊥", "\\bot");
|
|
30862
|
+
M(A, I, te, "∅", "\\emptyset");
|
|
30855
30863
|
M(A, j, te, "∅", "\\varnothing");
|
|
30856
|
-
M(A,
|
|
30857
|
-
M(A,
|
|
30858
|
-
M(A,
|
|
30859
|
-
M(A,
|
|
30860
|
-
M(A,
|
|
30861
|
-
M(A,
|
|
30862
|
-
M(A,
|
|
30863
|
-
M(A,
|
|
30864
|
-
M(A,
|
|
30865
|
-
M(A,
|
|
30866
|
-
M(A,
|
|
30867
|
-
M(A,
|
|
30868
|
-
M(A,
|
|
30869
|
-
M(A,
|
|
30870
|
-
M(A,
|
|
30871
|
-
M(A,
|
|
30872
|
-
M(A,
|
|
30873
|
-
M(A,
|
|
30874
|
-
M(A,
|
|
30875
|
-
M(A,
|
|
30876
|
-
M(A,
|
|
30877
|
-
M(A,
|
|
30878
|
-
M(A,
|
|
30879
|
-
M(A,
|
|
30880
|
-
M(A,
|
|
30881
|
-
M(A,
|
|
30882
|
-
M(A,
|
|
30883
|
-
M(A,
|
|
30884
|
-
M(A,
|
|
30885
|
-
M(A,
|
|
30886
|
-
M(A,
|
|
30887
|
-
M(A,
|
|
30888
|
-
M(A,
|
|
30889
|
-
M(A,
|
|
30890
|
-
M(A,
|
|
30891
|
-
M(A,
|
|
30892
|
-
M(A,
|
|
30893
|
-
M(A,
|
|
30894
|
-
M(A,
|
|
30895
|
-
M(A,
|
|
30896
|
-
M(A,
|
|
30897
|
-
M(A,
|
|
30898
|
-
M(A,
|
|
30899
|
-
M(A,
|
|
30900
|
-
M(A,
|
|
30901
|
-
M(A,
|
|
30902
|
-
M(A,
|
|
30903
|
-
M(A,
|
|
30904
|
-
M(A,
|
|
30905
|
-
M(A,
|
|
30906
|
-
M(A,
|
|
30907
|
-
M(A,
|
|
30908
|
-
M(A,
|
|
30909
|
-
M(A,
|
|
30910
|
-
M(A,
|
|
30911
|
-
M(A,
|
|
30912
|
-
M(A,
|
|
30913
|
-
M(A,
|
|
30914
|
-
M(A,
|
|
30915
|
-
M(A,
|
|
30916
|
-
M(A,
|
|
30917
|
-
M(A,
|
|
30918
|
-
M(A,
|
|
30919
|
-
M(A,
|
|
30920
|
-
M(A,
|
|
30921
|
-
M(A,
|
|
30922
|
-
M(A,
|
|
30923
|
-
M(A,
|
|
30864
|
+
M(A, I, $e, "α", "\\alpha", !0);
|
|
30865
|
+
M(A, I, $e, "β", "\\beta", !0);
|
|
30866
|
+
M(A, I, $e, "γ", "\\gamma", !0);
|
|
30867
|
+
M(A, I, $e, "δ", "\\delta", !0);
|
|
30868
|
+
M(A, I, $e, "ϵ", "\\epsilon", !0);
|
|
30869
|
+
M(A, I, $e, "ζ", "\\zeta", !0);
|
|
30870
|
+
M(A, I, $e, "η", "\\eta", !0);
|
|
30871
|
+
M(A, I, $e, "θ", "\\theta", !0);
|
|
30872
|
+
M(A, I, $e, "ι", "\\iota", !0);
|
|
30873
|
+
M(A, I, $e, "κ", "\\kappa", !0);
|
|
30874
|
+
M(A, I, $e, "λ", "\\lambda", !0);
|
|
30875
|
+
M(A, I, $e, "μ", "\\mu", !0);
|
|
30876
|
+
M(A, I, $e, "ν", "\\nu", !0);
|
|
30877
|
+
M(A, I, $e, "ξ", "\\xi", !0);
|
|
30878
|
+
M(A, I, $e, "ο", "\\omicron", !0);
|
|
30879
|
+
M(A, I, $e, "π", "\\pi", !0);
|
|
30880
|
+
M(A, I, $e, "ρ", "\\rho", !0);
|
|
30881
|
+
M(A, I, $e, "σ", "\\sigma", !0);
|
|
30882
|
+
M(A, I, $e, "τ", "\\tau", !0);
|
|
30883
|
+
M(A, I, $e, "υ", "\\upsilon", !0);
|
|
30884
|
+
M(A, I, $e, "ϕ", "\\phi", !0);
|
|
30885
|
+
M(A, I, $e, "χ", "\\chi", !0);
|
|
30886
|
+
M(A, I, $e, "ψ", "\\psi", !0);
|
|
30887
|
+
M(A, I, $e, "ω", "\\omega", !0);
|
|
30888
|
+
M(A, I, $e, "ε", "\\varepsilon", !0);
|
|
30889
|
+
M(A, I, $e, "ϑ", "\\vartheta", !0);
|
|
30890
|
+
M(A, I, $e, "ϖ", "\\varpi", !0);
|
|
30891
|
+
M(A, I, $e, "ϱ", "\\varrho", !0);
|
|
30892
|
+
M(A, I, $e, "ς", "\\varsigma", !0);
|
|
30893
|
+
M(A, I, $e, "φ", "\\varphi", !0);
|
|
30894
|
+
M(A, I, Me, "∗", "*", !0);
|
|
30895
|
+
M(A, I, Me, "+", "+");
|
|
30896
|
+
M(A, I, Me, "−", "-", !0);
|
|
30897
|
+
M(A, I, Me, "⋅", "\\cdot", !0);
|
|
30898
|
+
M(A, I, Me, "∘", "\\circ", !0);
|
|
30899
|
+
M(A, I, Me, "÷", "\\div", !0);
|
|
30900
|
+
M(A, I, Me, "±", "\\pm", !0);
|
|
30901
|
+
M(A, I, Me, "×", "\\times", !0);
|
|
30902
|
+
M(A, I, Me, "∩", "\\cap", !0);
|
|
30903
|
+
M(A, I, Me, "∪", "\\cup", !0);
|
|
30904
|
+
M(A, I, Me, "∖", "\\setminus", !0);
|
|
30905
|
+
M(A, I, Me, "∧", "\\land");
|
|
30906
|
+
M(A, I, Me, "∨", "\\lor");
|
|
30907
|
+
M(A, I, Me, "∧", "\\wedge", !0);
|
|
30908
|
+
M(A, I, Me, "∨", "\\vee", !0);
|
|
30909
|
+
M(A, I, te, "√", "\\surd");
|
|
30910
|
+
M(A, I, gn, "⟨", "\\langle", !0);
|
|
30911
|
+
M(A, I, gn, "∣", "\\lvert");
|
|
30912
|
+
M(A, I, gn, "∥", "\\lVert");
|
|
30913
|
+
M(A, I, nn, "?", "?");
|
|
30914
|
+
M(A, I, nn, "!", "!");
|
|
30915
|
+
M(A, I, nn, "⟩", "\\rangle", !0);
|
|
30916
|
+
M(A, I, nn, "∣", "\\rvert");
|
|
30917
|
+
M(A, I, nn, "∥", "\\rVert");
|
|
30918
|
+
M(A, I, Z, "=", "=");
|
|
30919
|
+
M(A, I, Z, ":", ":");
|
|
30920
|
+
M(A, I, Z, "≈", "\\approx", !0);
|
|
30921
|
+
M(A, I, Z, "≅", "\\cong", !0);
|
|
30922
|
+
M(A, I, Z, "≥", "\\ge");
|
|
30923
|
+
M(A, I, Z, "≥", "\\geq", !0);
|
|
30924
|
+
M(A, I, Z, "←", "\\gets");
|
|
30925
|
+
M(A, I, Z, ">", "\\gt", !0);
|
|
30926
|
+
M(A, I, Z, "∈", "\\in", !0);
|
|
30927
|
+
M(A, I, Z, "", "\\@not");
|
|
30928
|
+
M(A, I, Z, "⊂", "\\subset", !0);
|
|
30929
|
+
M(A, I, Z, "⊃", "\\supset", !0);
|
|
30930
|
+
M(A, I, Z, "⊆", "\\subseteq", !0);
|
|
30931
|
+
M(A, I, Z, "⊇", "\\supseteq", !0);
|
|
30924
30932
|
M(A, j, Z, "⊈", "\\nsubseteq", !0);
|
|
30925
30933
|
M(A, j, Z, "⊉", "\\nsupseteq", !0);
|
|
30926
|
-
M(A,
|
|
30927
|
-
M(A,
|
|
30928
|
-
M(A,
|
|
30929
|
-
M(A,
|
|
30930
|
-
M(A,
|
|
30931
|
-
M(A,
|
|
30932
|
-
M(A,
|
|
30934
|
+
M(A, I, Z, "⊨", "\\models");
|
|
30935
|
+
M(A, I, Z, "←", "\\leftarrow", !0);
|
|
30936
|
+
M(A, I, Z, "≤", "\\le");
|
|
30937
|
+
M(A, I, Z, "≤", "\\leq", !0);
|
|
30938
|
+
M(A, I, Z, "<", "\\lt", !0);
|
|
30939
|
+
M(A, I, Z, "→", "\\rightarrow", !0);
|
|
30940
|
+
M(A, I, Z, "→", "\\to");
|
|
30933
30941
|
M(A, j, Z, "≱", "\\ngeq", !0);
|
|
30934
30942
|
M(A, j, Z, "≰", "\\nleq", !0);
|
|
30935
|
-
M(A,
|
|
30936
|
-
M(A,
|
|
30937
|
-
M(A,
|
|
30938
|
-
M(pe,
|
|
30939
|
-
M(pe,
|
|
30940
|
-
M(pe,
|
|
30941
|
-
M(pe,
|
|
30942
|
-
M(A,
|
|
30943
|
-
M(A,
|
|
30944
|
-
M(A,
|
|
30945
|
-
M(A,
|
|
30943
|
+
M(A, I, kr, " ", "\\ ");
|
|
30944
|
+
M(A, I, kr, " ", "\\space");
|
|
30945
|
+
M(A, I, kr, " ", "\\nobreakspace");
|
|
30946
|
+
M(pe, I, kr, " ", "\\ ");
|
|
30947
|
+
M(pe, I, kr, " ", " ");
|
|
30948
|
+
M(pe, I, kr, " ", "\\space");
|
|
30949
|
+
M(pe, I, kr, " ", "\\nobreakspace");
|
|
30950
|
+
M(A, I, kr, null, "\\nobreak");
|
|
30951
|
+
M(A, I, kr, null, "\\allowbreak");
|
|
30952
|
+
M(A, I, Pa, ",", ",");
|
|
30953
|
+
M(A, I, Pa, ";", ";");
|
|
30946
30954
|
M(A, j, Me, "⊼", "\\barwedge", !0);
|
|
30947
30955
|
M(A, j, Me, "⊻", "\\veebar", !0);
|
|
30948
|
-
M(A,
|
|
30949
|
-
M(A,
|
|
30950
|
-
M(A,
|
|
30951
|
-
M(A,
|
|
30952
|
-
M(A,
|
|
30956
|
+
M(A, I, Me, "⊙", "\\odot", !0);
|
|
30957
|
+
M(A, I, Me, "⊕", "\\oplus", !0);
|
|
30958
|
+
M(A, I, Me, "⊗", "\\otimes", !0);
|
|
30959
|
+
M(A, I, te, "∂", "\\partial", !0);
|
|
30960
|
+
M(A, I, Me, "⊘", "\\oslash", !0);
|
|
30953
30961
|
M(A, j, Me, "⊚", "\\circledcirc", !0);
|
|
30954
30962
|
M(A, j, Me, "⊡", "\\boxdot", !0);
|
|
30955
|
-
M(A,
|
|
30956
|
-
M(A,
|
|
30957
|
-
M(A,
|
|
30958
|
-
M(A,
|
|
30959
|
-
M(A,
|
|
30960
|
-
M(A,
|
|
30961
|
-
M(A,
|
|
30962
|
-
M(A,
|
|
30963
|
-
M(pe,
|
|
30964
|
-
M(pe,
|
|
30965
|
-
M(A,
|
|
30966
|
-
M(pe,
|
|
30967
|
-
M(pe,
|
|
30968
|
-
M(A,
|
|
30969
|
-
M(A,
|
|
30970
|
-
M(A,
|
|
30971
|
-
M(pe,
|
|
30972
|
-
M(A,
|
|
30973
|
-
M(pe,
|
|
30974
|
-
M(A,
|
|
30975
|
-
M(A,
|
|
30976
|
-
M(pe,
|
|
30977
|
-
M(pe,
|
|
30978
|
-
M(A,
|
|
30979
|
-
M(A,
|
|
30980
|
-
M(A,
|
|
30981
|
-
M(A,
|
|
30982
|
-
M(A,
|
|
30983
|
-
M(A,
|
|
30984
|
-
M(A,
|
|
30985
|
-
M(pe,
|
|
30986
|
-
M(A,
|
|
30987
|
-
M(A,
|
|
30988
|
-
M(pe,
|
|
30989
|
-
M(pe,
|
|
30990
|
-
M(pe,
|
|
30991
|
-
M(pe,
|
|
30992
|
-
M(A,
|
|
30993
|
-
M(A,
|
|
30994
|
-
M(A,
|
|
30995
|
-
M(A,
|
|
30996
|
-
M(A,
|
|
30997
|
-
M(A,
|
|
30998
|
-
M(A,
|
|
30999
|
-
M(A,
|
|
31000
|
-
M(A,
|
|
31001
|
-
M(A,
|
|
31002
|
-
M(A,
|
|
31003
|
-
M(A,
|
|
31004
|
-
M(A,
|
|
31005
|
-
M(A,
|
|
31006
|
-
M(A,
|
|
31007
|
-
M(A,
|
|
31008
|
-
M(A,
|
|
31009
|
-
M(A,
|
|
31010
|
-
M(A,
|
|
31011
|
-
M(A,
|
|
31012
|
-
M(A,
|
|
31013
|
-
M(A,
|
|
31014
|
-
M(A,
|
|
31015
|
-
M(A,
|
|
31016
|
-
M(A,
|
|
31017
|
-
M(A,
|
|
31018
|
-
M(pe,
|
|
31019
|
-
M(A,
|
|
31020
|
-
M(pe,
|
|
31021
|
-
M(A,
|
|
31022
|
-
M(A,
|
|
31023
|
-
M(A,
|
|
31024
|
-
M(A,
|
|
31025
|
-
M(pe,
|
|
31026
|
-
M(A,
|
|
31027
|
-
M(A,
|
|
31028
|
-
M(A,
|
|
31029
|
-
M(A,
|
|
31030
|
-
M(A,
|
|
31031
|
-
M(A,
|
|
31032
|
-
M(A,
|
|
31033
|
-
M(A,
|
|
31034
|
-
M(A,
|
|
31035
|
-
M(A,
|
|
31036
|
-
M(A,
|
|
31037
|
-
M(A,
|
|
31038
|
-
M(A,
|
|
31039
|
-
M(A,
|
|
31040
|
-
M(A,
|
|
31041
|
-
M(pe,
|
|
31042
|
-
M(pe,
|
|
31043
|
-
M(pe,
|
|
31044
|
-
M(pe,
|
|
31045
|
-
M(pe,
|
|
31046
|
-
M(pe,
|
|
31047
|
-
M(pe,
|
|
31048
|
-
M(pe,
|
|
31049
|
-
M(pe,
|
|
31050
|
-
M(pe,
|
|
31051
|
-
M(pe,
|
|
31052
|
-
M(pe,
|
|
31053
|
-
M(pe,
|
|
31054
|
-
M(pe,
|
|
31055
|
-
M(pe,
|
|
31056
|
-
M(pe,
|
|
31057
|
-
M(pe,
|
|
31058
|
-
M(pe,
|
|
31059
|
-
M(pe,
|
|
31060
|
-
M(pe,
|
|
31061
|
-
M(pe,
|
|
31062
|
-
M(pe,
|
|
30963
|
+
M(A, I, Me, "△", "\\bigtriangleup");
|
|
30964
|
+
M(A, I, Me, "▽", "\\bigtriangledown");
|
|
30965
|
+
M(A, I, Me, "†", "\\dagger");
|
|
30966
|
+
M(A, I, Me, "⋄", "\\diamond");
|
|
30967
|
+
M(A, I, Me, "⋆", "\\star");
|
|
30968
|
+
M(A, I, Me, "◃", "\\triangleleft");
|
|
30969
|
+
M(A, I, Me, "▹", "\\triangleright");
|
|
30970
|
+
M(A, I, gn, "{", "\\{");
|
|
30971
|
+
M(pe, I, te, "{", "\\{");
|
|
30972
|
+
M(pe, I, te, "{", "\\textbraceleft");
|
|
30973
|
+
M(A, I, nn, "}", "\\}");
|
|
30974
|
+
M(pe, I, te, "}", "\\}");
|
|
30975
|
+
M(pe, I, te, "}", "\\textbraceright");
|
|
30976
|
+
M(A, I, gn, "{", "\\lbrace");
|
|
30977
|
+
M(A, I, nn, "}", "\\rbrace");
|
|
30978
|
+
M(A, I, gn, "[", "\\lbrack", !0);
|
|
30979
|
+
M(pe, I, te, "[", "\\lbrack", !0);
|
|
30980
|
+
M(A, I, nn, "]", "\\rbrack", !0);
|
|
30981
|
+
M(pe, I, te, "]", "\\rbrack", !0);
|
|
30982
|
+
M(A, I, gn, "(", "\\lparen", !0);
|
|
30983
|
+
M(A, I, nn, ")", "\\rparen", !0);
|
|
30984
|
+
M(pe, I, te, "<", "\\textless", !0);
|
|
30985
|
+
M(pe, I, te, ">", "\\textgreater", !0);
|
|
30986
|
+
M(A, I, gn, "⌊", "\\lfloor", !0);
|
|
30987
|
+
M(A, I, nn, "⌋", "\\rfloor", !0);
|
|
30988
|
+
M(A, I, gn, "⌈", "\\lceil", !0);
|
|
30989
|
+
M(A, I, nn, "⌉", "\\rceil", !0);
|
|
30990
|
+
M(A, I, te, "\\", "\\backslash");
|
|
30991
|
+
M(A, I, te, "∣", "|");
|
|
30992
|
+
M(A, I, te, "∣", "\\vert");
|
|
30993
|
+
M(pe, I, te, "|", "\\textbar", !0);
|
|
30994
|
+
M(A, I, te, "∥", "\\|");
|
|
30995
|
+
M(A, I, te, "∥", "\\Vert");
|
|
30996
|
+
M(pe, I, te, "∥", "\\textbardbl");
|
|
30997
|
+
M(pe, I, te, "~", "\\textasciitilde");
|
|
30998
|
+
M(pe, I, te, "\\", "\\textbackslash");
|
|
30999
|
+
M(pe, I, te, "^", "\\textasciicircum");
|
|
31000
|
+
M(A, I, Z, "↑", "\\uparrow", !0);
|
|
31001
|
+
M(A, I, Z, "⇑", "\\Uparrow", !0);
|
|
31002
|
+
M(A, I, Z, "↓", "\\downarrow", !0);
|
|
31003
|
+
M(A, I, Z, "⇓", "\\Downarrow", !0);
|
|
31004
|
+
M(A, I, Z, "↕", "\\updownarrow", !0);
|
|
31005
|
+
M(A, I, Z, "⇕", "\\Updownarrow", !0);
|
|
31006
|
+
M(A, I, $t, "∐", "\\coprod");
|
|
31007
|
+
M(A, I, $t, "⋁", "\\bigvee");
|
|
31008
|
+
M(A, I, $t, "⋀", "\\bigwedge");
|
|
31009
|
+
M(A, I, $t, "⨄", "\\biguplus");
|
|
31010
|
+
M(A, I, $t, "⋂", "\\bigcap");
|
|
31011
|
+
M(A, I, $t, "⋃", "\\bigcup");
|
|
31012
|
+
M(A, I, $t, "∫", "\\int");
|
|
31013
|
+
M(A, I, $t, "∫", "\\intop");
|
|
31014
|
+
M(A, I, $t, "∬", "\\iint");
|
|
31015
|
+
M(A, I, $t, "∭", "\\iiint");
|
|
31016
|
+
M(A, I, $t, "∏", "\\prod");
|
|
31017
|
+
M(A, I, $t, "∑", "\\sum");
|
|
31018
|
+
M(A, I, $t, "⨂", "\\bigotimes");
|
|
31019
|
+
M(A, I, $t, "⨁", "\\bigoplus");
|
|
31020
|
+
M(A, I, $t, "⨀", "\\bigodot");
|
|
31021
|
+
M(A, I, $t, "∮", "\\oint");
|
|
31022
|
+
M(A, I, $t, "∯", "\\oiint");
|
|
31023
|
+
M(A, I, $t, "∰", "\\oiiint");
|
|
31024
|
+
M(A, I, $t, "⨆", "\\bigsqcup");
|
|
31025
|
+
M(A, I, $t, "∫", "\\smallint");
|
|
31026
|
+
M(pe, I, Yi, "…", "\\textellipsis");
|
|
31027
|
+
M(A, I, Yi, "…", "\\mathellipsis");
|
|
31028
|
+
M(pe, I, Yi, "…", "\\ldots", !0);
|
|
31029
|
+
M(A, I, Yi, "…", "\\ldots", !0);
|
|
31030
|
+
M(A, I, Yi, "⋯", "\\@cdots", !0);
|
|
31031
|
+
M(A, I, Yi, "⋱", "\\ddots", !0);
|
|
31032
|
+
M(A, I, te, "⋮", "\\varvdots");
|
|
31033
|
+
M(pe, I, te, "⋮", "\\varvdots");
|
|
31034
|
+
M(A, I, kt, "ˊ", "\\acute");
|
|
31035
|
+
M(A, I, kt, "ˋ", "\\grave");
|
|
31036
|
+
M(A, I, kt, "¨", "\\ddot");
|
|
31037
|
+
M(A, I, kt, "~", "\\tilde");
|
|
31038
|
+
M(A, I, kt, "ˉ", "\\bar");
|
|
31039
|
+
M(A, I, kt, "˘", "\\breve");
|
|
31040
|
+
M(A, I, kt, "ˇ", "\\check");
|
|
31041
|
+
M(A, I, kt, "^", "\\hat");
|
|
31042
|
+
M(A, I, kt, "⃗", "\\vec");
|
|
31043
|
+
M(A, I, kt, "˙", "\\dot");
|
|
31044
|
+
M(A, I, kt, "˚", "\\mathring");
|
|
31045
|
+
M(A, I, $e, "", "\\@imath");
|
|
31046
|
+
M(A, I, $e, "", "\\@jmath");
|
|
31047
|
+
M(A, I, te, "ı", "ı");
|
|
31048
|
+
M(A, I, te, "ȷ", "ȷ");
|
|
31049
|
+
M(pe, I, te, "ı", "\\i", !0);
|
|
31050
|
+
M(pe, I, te, "ȷ", "\\j", !0);
|
|
31051
|
+
M(pe, I, te, "ß", "\\ss", !0);
|
|
31052
|
+
M(pe, I, te, "æ", "\\ae", !0);
|
|
31053
|
+
M(pe, I, te, "œ", "\\oe", !0);
|
|
31054
|
+
M(pe, I, te, "ø", "\\o", !0);
|
|
31055
|
+
M(pe, I, te, "Æ", "\\AE", !0);
|
|
31056
|
+
M(pe, I, te, "Œ", "\\OE", !0);
|
|
31057
|
+
M(pe, I, te, "Ø", "\\O", !0);
|
|
31058
|
+
M(pe, I, kt, "ˊ", "\\'");
|
|
31059
|
+
M(pe, I, kt, "ˋ", "\\`");
|
|
31060
|
+
M(pe, I, kt, "ˆ", "\\^");
|
|
31061
|
+
M(pe, I, kt, "˜", "\\~");
|
|
31062
|
+
M(pe, I, kt, "ˉ", "\\=");
|
|
31063
|
+
M(pe, I, kt, "˘", "\\u");
|
|
31064
|
+
M(pe, I, kt, "˙", "\\.");
|
|
31065
|
+
M(pe, I, kt, "¸", "\\c");
|
|
31066
|
+
M(pe, I, kt, "˚", "\\r");
|
|
31067
|
+
M(pe, I, kt, "ˇ", "\\v");
|
|
31068
|
+
M(pe, I, kt, "¨", '\\"');
|
|
31069
|
+
M(pe, I, kt, "˝", "\\H");
|
|
31070
|
+
M(pe, I, kt, "◯", "\\textcircled");
|
|
31063
31071
|
var zg = {
|
|
31064
31072
|
"--": !0,
|
|
31065
31073
|
"---": !0,
|
|
31066
31074
|
"``": !0,
|
|
31067
31075
|
"''": !0
|
|
31068
31076
|
};
|
|
31069
|
-
M(pe,
|
|
31070
|
-
M(pe,
|
|
31071
|
-
M(pe,
|
|
31072
|
-
M(pe,
|
|
31073
|
-
M(pe,
|
|
31074
|
-
M(pe,
|
|
31075
|
-
M(pe,
|
|
31076
|
-
M(pe,
|
|
31077
|
-
M(pe,
|
|
31078
|
-
M(pe,
|
|
31079
|
-
M(pe,
|
|
31080
|
-
M(pe,
|
|
31081
|
-
M(A,
|
|
31082
|
-
M(pe,
|
|
31083
|
-
M(pe,
|
|
31084
|
-
M(A,
|
|
31085
|
-
M(A,
|
|
31086
|
-
M(pe,
|
|
31087
|
-
M(pe,
|
|
31077
|
+
M(pe, I, te, "–", "--", !0);
|
|
31078
|
+
M(pe, I, te, "–", "\\textendash");
|
|
31079
|
+
M(pe, I, te, "—", "---", !0);
|
|
31080
|
+
M(pe, I, te, "—", "\\textemdash");
|
|
31081
|
+
M(pe, I, te, "‘", "`", !0);
|
|
31082
|
+
M(pe, I, te, "‘", "\\textquoteleft");
|
|
31083
|
+
M(pe, I, te, "’", "'", !0);
|
|
31084
|
+
M(pe, I, te, "’", "\\textquoteright");
|
|
31085
|
+
M(pe, I, te, "“", "``", !0);
|
|
31086
|
+
M(pe, I, te, "“", "\\textquotedblleft");
|
|
31087
|
+
M(pe, I, te, "”", "''", !0);
|
|
31088
|
+
M(pe, I, te, "”", "\\textquotedblright");
|
|
31089
|
+
M(A, I, te, "°", "\\degree", !0);
|
|
31090
|
+
M(pe, I, te, "°", "\\degree");
|
|
31091
|
+
M(pe, I, te, "°", "\\textdegree", !0);
|
|
31092
|
+
M(A, I, te, "£", "\\pounds");
|
|
31093
|
+
M(A, I, te, "£", "\\mathsterling", !0);
|
|
31094
|
+
M(pe, I, te, "£", "\\pounds");
|
|
31095
|
+
M(pe, I, te, "£", "\\textsterling", !0);
|
|
31088
31096
|
M(A, j, te, "✠", "\\maltese");
|
|
31089
31097
|
M(pe, j, te, "✠", "\\maltese");
|
|
31090
31098
|
var Rd = '0123456789/@."';
|
|
31091
31099
|
for (var Cl = 0; Cl < Rd.length; Cl++) {
|
|
31092
31100
|
var Pd = Rd.charAt(Cl);
|
|
31093
|
-
M(A,
|
|
31101
|
+
M(A, I, te, Pd, Pd);
|
|
31094
31102
|
}
|
|
31095
31103
|
var Ld = '0123456789!@*()-=+";:?/.,';
|
|
31096
31104
|
for (var Sl = 0; Sl < Ld.length; Sl++) {
|
|
31097
31105
|
var Id = Ld.charAt(Sl);
|
|
31098
|
-
M(pe,
|
|
31106
|
+
M(pe, I, te, Id, Id);
|
|
31099
31107
|
}
|
|
31100
31108
|
var Wo = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
31101
31109
|
for (var kl = 0; kl < Wo.length; kl++) {
|
|
31102
31110
|
var mo = Wo.charAt(kl);
|
|
31103
|
-
M(A,
|
|
31111
|
+
M(A, I, $e, mo, mo), M(pe, I, te, mo, mo);
|
|
31104
31112
|
}
|
|
31105
31113
|
M(A, j, te, "C", "ℂ");
|
|
31106
31114
|
M(pe, j, te, "C", "ℂ");
|
|
@@ -31116,24 +31124,24 @@ M(A, j, te, "R", "ℝ");
|
|
|
31116
31124
|
M(pe, j, te, "R", "ℝ");
|
|
31117
31125
|
M(A, j, te, "Z", "ℤ");
|
|
31118
31126
|
M(pe, j, te, "Z", "ℤ");
|
|
31119
|
-
M(A,
|
|
31120
|
-
M(pe,
|
|
31127
|
+
M(A, I, $e, "h", "ℎ");
|
|
31128
|
+
M(pe, I, $e, "h", "ℎ");
|
|
31121
31129
|
var je = "";
|
|
31122
31130
|
for (var Kt = 0; Kt < Wo.length; Kt++) {
|
|
31123
31131
|
var Rt = Wo.charAt(Kt);
|
|
31124
|
-
je = String.fromCharCode(55349, 56320 + Kt), M(A,
|
|
31132
|
+
je = String.fromCharCode(55349, 56320 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56372 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56424 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56580 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56684 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56736 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56788 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56840 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56944 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), Kt < 26 && (je = String.fromCharCode(55349, 56632 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je), je = String.fromCharCode(55349, 56476 + Kt), M(A, I, $e, Rt, je), M(pe, I, te, Rt, je));
|
|
31125
31133
|
}
|
|
31126
31134
|
je = "𝕜";
|
|
31127
|
-
M(A,
|
|
31128
|
-
M(pe,
|
|
31135
|
+
M(A, I, $e, "k", je);
|
|
31136
|
+
M(pe, I, te, "k", je);
|
|
31129
31137
|
for (var Qr = 0; Qr < 10; Qr++) {
|
|
31130
31138
|
var Dr = Qr.toString();
|
|
31131
|
-
je = String.fromCharCode(55349, 57294 + Qr), M(A,
|
|
31139
|
+
je = String.fromCharCode(55349, 57294 + Qr), M(A, I, $e, Dr, je), M(pe, I, te, Dr, je), je = String.fromCharCode(55349, 57314 + Qr), M(A, I, $e, Dr, je), M(pe, I, te, Dr, je), je = String.fromCharCode(55349, 57324 + Qr), M(A, I, $e, Dr, je), M(pe, I, te, Dr, je), je = String.fromCharCode(55349, 57334 + Qr), M(A, I, $e, Dr, je), M(pe, I, te, Dr, je);
|
|
31132
31140
|
}
|
|
31133
31141
|
var pc = "ÐÞþ";
|
|
31134
31142
|
for (var El = 0; El < pc.length; El++) {
|
|
31135
31143
|
var po = pc.charAt(El);
|
|
31136
|
-
M(A,
|
|
31144
|
+
M(A, I, $e, po, po), M(pe, I, te, po, po);
|
|
31137
31145
|
}
|
|
31138
31146
|
var go = [
|
|
31139
31147
|
["mathbf", "textbf", "Main-Bold"],
|
|
@@ -32135,13 +32143,13 @@ var Yg = function(n) {
|
|
|
32135
32143
|
else
|
|
32136
32144
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
32137
32145
|
` + k + " children.");
|
|
32138
|
-
for (var
|
|
32139
|
-
var R = new Wr(x[
|
|
32146
|
+
for (var O = 0; O < k; O++) {
|
|
32147
|
+
var R = new Wr(x[O]), L = new _r([R], {
|
|
32140
32148
|
width: "400em",
|
|
32141
32149
|
height: Se(w),
|
|
32142
32150
|
viewBox: "0 0 " + c + " " + v,
|
|
32143
|
-
preserveAspectRatio: T[
|
|
32144
|
-
}), P = le.makeSvgSpan([N[
|
|
32151
|
+
preserveAspectRatio: T[O] + " slice"
|
|
32152
|
+
}), P = le.makeSvgSpan([N[O]], [L], r);
|
|
32145
32153
|
if (k === 1)
|
|
32146
32154
|
return {
|
|
32147
32155
|
span: P,
|
|
@@ -33074,9 +33082,9 @@ var ss = function(n, r, i) {
|
|
|
33074
33082
|
}
|
|
33075
33083
|
var k = E + x + p, N = Math.max(0, Math.ceil((r - k) / (v * f))), T = k + N * v * f, D = s.fontMetrics().axisHeight;
|
|
33076
33084
|
i && (D *= s.sizeMultiplier);
|
|
33077
|
-
var
|
|
33085
|
+
var O = T / 2 - D, R = [];
|
|
33078
33086
|
if (m.length > 0) {
|
|
33079
|
-
var
|
|
33087
|
+
var L = T - E - x, P = Math.round(T * 1e3), z = Ck(m, Math.round(L * 1e3)), V = new Wr(m, z), W = (b / 1e3).toFixed(3) + "em", $ = (P / 1e3).toFixed(3) + "em", F = new _r([V], {
|
|
33080
33088
|
width: W,
|
|
33081
33089
|
height: $,
|
|
33082
33090
|
viewBox: "0 0 " + b + " " + P
|
|
@@ -33097,7 +33105,7 @@ var ss = function(n, r, i) {
|
|
|
33097
33105
|
}
|
|
33098
33106
|
var J = s.havingBaseStyle(Ve.TEXT), U = le.makeVList({
|
|
33099
33107
|
positionType: "bottom",
|
|
33100
|
-
positionData:
|
|
33108
|
+
positionData: O,
|
|
33101
33109
|
children: R
|
|
33102
33110
|
}, J);
|
|
33103
33111
|
return I0(le.makeSpan(["delimsizing", "mult"], [U], J), Ve.TEXT, s, l);
|
|
@@ -33809,10 +33817,10 @@ var or = function(n, r) {
|
|
|
33809
33817
|
var T = dt(v[s], r);
|
|
33810
33818
|
k < T.depth && (k = T.depth), w < T.height && (w = T.height), N[s] = T;
|
|
33811
33819
|
}
|
|
33812
|
-
var D = n.rowGaps[i],
|
|
33813
|
-
D && (
|
|
33820
|
+
var D = n.rowGaps[i], O = 0;
|
|
33821
|
+
D && (O = Mt(D, r), O > 0 && (O += g, k < O && (k = O), O = 0)), n.addJot && (k += E), N.height = w, N.depth = k, x += w, N.pos = x, x += k + O, a[i] = N, p(l[i + 1]);
|
|
33814
33822
|
}
|
|
33815
|
-
var R = x / 2 + r.fontMetrics().axisHeight,
|
|
33823
|
+
var R = x / 2 + r.fontMetrics().axisHeight, L = n.cols || [], P = [], z, V, W = [];
|
|
33816
33824
|
if (n.tags && n.tags.some((Ie) => Ie))
|
|
33817
33825
|
for (i = 0; i < o; ++i) {
|
|
33818
33826
|
var $ = a[i], F = $.pos - R, H = n.tags[i], G = void 0;
|
|
@@ -33826,10 +33834,10 @@ var or = function(n, r) {
|
|
|
33826
33834
|
s = 0, V = 0;
|
|
33827
33835
|
// Continue while either there are more columns or more column
|
|
33828
33836
|
// descriptions, so trailing separators don't get lost.
|
|
33829
|
-
s < c || V <
|
|
33837
|
+
s < c || V < L.length;
|
|
33830
33838
|
++s, ++V
|
|
33831
33839
|
) {
|
|
33832
|
-
for (var q =
|
|
33840
|
+
for (var q = L[V] || {}, J = !0; q.type === "separator"; ) {
|
|
33833
33841
|
if (J || (z = le.makeSpan(["arraycolsep"], []), z.style.width = Se(r.fontMetrics().doubleRuleSep), P.push(z)), q.separator === "|" || q.separator === ":") {
|
|
33834
33842
|
var U = q.separator === "|" ? "solid" : "dashed", K = le.makeSpan(["vertical-separator"], [], r);
|
|
33835
33843
|
K.style.height = Se(x), K.style.borderRightWidth = Se(u), K.style.borderRightStyle = U, K.style.margin = "0 " + Se(-u / 2);
|
|
@@ -33837,7 +33845,7 @@ var or = function(n, r) {
|
|
|
33837
33845
|
se && (K.style.verticalAlign = Se(-se)), P.push(K);
|
|
33838
33846
|
} else
|
|
33839
33847
|
throw new xe("Invalid separator type: " + q.separator);
|
|
33840
|
-
V++, q =
|
|
33848
|
+
V++, q = L[V] || {}, J = !1;
|
|
33841
33849
|
}
|
|
33842
33850
|
if (!(s >= c)) {
|
|
33843
33851
|
var ee = void 0;
|
|
@@ -39144,7 +39152,7 @@ var kn = "MenuContent", [ST, G0] = pi(kn), O2 = y.forwardRef(
|
|
|
39144
39152
|
onDismiss: C,
|
|
39145
39153
|
disableOutsideScroll: S,
|
|
39146
39154
|
...E
|
|
39147
|
-
} = t, d = Gr(kn, r), f = Ks(kn, r), g = Xs(r), x = D2(r), p = yT(r), [v, w] = y.useState(null), k = y.useRef(null), N = Ke(n, k, d.onContentChange), T = y.useRef(0), D = y.useRef(""),
|
|
39155
|
+
} = t, d = Gr(kn, r), f = Ks(kn, r), g = Xs(r), x = D2(r), p = yT(r), [v, w] = y.useState(null), k = y.useRef(null), N = Ke(n, k, d.onContentChange), T = y.useRef(0), D = y.useRef(""), O = y.useRef(0), R = y.useRef(null), L = y.useRef("right"), P = y.useRef(0), z = S ? Bs : y.Fragment, V = S ? { as: TT, allowPinchZoom: !0 } : void 0, W = (F) => {
|
|
39148
39156
|
var ee, oe;
|
|
39149
39157
|
const H = D.current + F, G = p().filter((re) => !re.disabled), q = document.activeElement, J = (ee = G.find((re) => re.ref.current === q)) == null ? void 0 : ee.textValue, U = G.map((re) => re.textValue), K = FT(U, H, J), se = (oe = G.find((re) => re.textValue === K)) == null ? void 0 : oe.ref.current;
|
|
39150
39158
|
(function re(ae) {
|
|
@@ -39154,7 +39162,7 @@ var kn = "MenuContent", [ST, G0] = pi(kn), O2 = y.forwardRef(
|
|
|
39154
39162
|
y.useEffect(() => () => window.clearTimeout(T.current), []), aa();
|
|
39155
39163
|
const $ = y.useCallback((F) => {
|
|
39156
39164
|
var G, q;
|
|
39157
|
-
return
|
|
39165
|
+
return L.current === ((G = R.current) == null ? void 0 : G.side) && WT(F, (q = R.current) == null ? void 0 : q.area);
|
|
39158
39166
|
}, []);
|
|
39159
39167
|
return /* @__PURE__ */ _(
|
|
39160
39168
|
ST,
|
|
@@ -39180,7 +39188,7 @@ var kn = "MenuContent", [ST, G0] = pi(kn), O2 = y.forwardRef(
|
|
|
39180
39188
|
},
|
|
39181
39189
|
[$]
|
|
39182
39190
|
),
|
|
39183
|
-
pointerGraceTimerRef:
|
|
39191
|
+
pointerGraceTimerRef: O,
|
|
39184
39192
|
onPointerGraceIntentChange: y.useCallback((F) => {
|
|
39185
39193
|
R.current = F;
|
|
39186
39194
|
}, []),
|
|
@@ -39248,7 +39256,7 @@ var kn = "MenuContent", [ST, G0] = pi(kn), O2 = y.forwardRef(
|
|
|
39248
39256
|
const H = F.target, G = P.current !== F.clientX;
|
|
39249
39257
|
if (F.currentTarget.contains(H) && G) {
|
|
39250
39258
|
const q = F.clientX > P.current ? "right" : "left";
|
|
39251
|
-
|
|
39259
|
+
L.current = q, P.current = F.clientX;
|
|
39252
39260
|
}
|
|
39253
39261
|
})
|
|
39254
39262
|
)
|
|
@@ -40062,7 +40070,7 @@ var ru = "ScrollArea", [T4] = BN(ru), [HN, Mn] = T4(ru), N4 = y.forwardRef(
|
|
|
40062
40070
|
dir: s,
|
|
40063
40071
|
scrollHideDelay: o = 600,
|
|
40064
40072
|
...l
|
|
40065
|
-
} = t, [c, a] = y.useState(null), [h, u] = y.useState(null), [m, b] = y.useState(null), [C, S] = y.useState(null), [E, d] = y.useState(null), [f, g] = y.useState(0), [x, p] = y.useState(0), [v, w] = y.useState(!1), [k, N] = y.useState(!1), T = Ke(n, (
|
|
40073
|
+
} = t, [c, a] = y.useState(null), [h, u] = y.useState(null), [m, b] = y.useState(null), [C, S] = y.useState(null), [E, d] = y.useState(null), [f, g] = y.useState(0), [x, p] = y.useState(0), [v, w] = y.useState(!1), [k, N] = y.useState(!1), T = Ke(n, (O) => a(O)), D = Ds(s);
|
|
40066
40074
|
return /* @__PURE__ */ _(
|
|
40067
40075
|
HN,
|
|
40068
40076
|
{
|
|
@@ -40387,14 +40395,14 @@ var WN = y.forwardRef((t, n) => {
|
|
|
40387
40395
|
} = t, C = Mn(lr, r), [S, E] = y.useState(null), d = Ke(n, (T) => E(T)), f = y.useRef(null), g = y.useRef(""), x = C.viewport, p = i.content - i.viewport, v = Ut(u), w = Ut(a), k = Ua(m, 10);
|
|
40388
40396
|
function N(T) {
|
|
40389
40397
|
if (f.current) {
|
|
40390
|
-
const D = T.clientX - f.current.left,
|
|
40391
|
-
h({ x: D, y:
|
|
40398
|
+
const D = T.clientX - f.current.left, O = T.clientY - f.current.top;
|
|
40399
|
+
h({ x: D, y: O });
|
|
40392
40400
|
}
|
|
40393
40401
|
}
|
|
40394
40402
|
return y.useEffect(() => {
|
|
40395
40403
|
const T = (D) => {
|
|
40396
|
-
const
|
|
40397
|
-
(S == null ? void 0 : S.contains(
|
|
40404
|
+
const O = D.target;
|
|
40405
|
+
(S == null ? void 0 : S.contains(O)) && v(D, p);
|
|
40398
40406
|
};
|
|
40399
40407
|
return document.addEventListener("wheel", T, { passive: !1 }), () => document.removeEventListener("wheel", T, { passive: !1 });
|
|
40400
40408
|
}, [x, S, p, v]), y.useEffect(w, [i, w]), zi(S, k), zi(C.content, k), /* @__PURE__ */ _(
|
|
@@ -41002,7 +41010,7 @@ const hv = y.forwardRef(
|
|
|
41002
41010
|
triggerClassName: v,
|
|
41003
41011
|
...w
|
|
41004
41012
|
}, k) => {
|
|
41005
|
-
const [N, T] = y.useState(!1), [D,
|
|
41013
|
+
const [N, T] = y.useState(!1), [D, O] = y.useState(""), [R, L] = y.useState(0), P = y.useRef(null), z = y.useRef(null), V = y.useMemo(() => D ? E ? t.filter((ue) => E(ue, D)) : t.filter((ue) => C(ue).toLowerCase().includes(D.toLowerCase())) : t, [t, D, E, C]), W = y.useRef(null), [$, F] = y.useState(f), [H, G] = y.useState(g);
|
|
41006
41014
|
y.useEffect(() => {
|
|
41007
41015
|
F(f);
|
|
41008
41016
|
}, [f]), y.useEffect(() => {
|
|
@@ -41022,7 +41030,7 @@ const hv = y.forwardRef(
|
|
|
41022
41030
|
[i]
|
|
41023
41031
|
), U = (ue) => {
|
|
41024
41032
|
const he = ue.target.value;
|
|
41025
|
-
|
|
41033
|
+
O(he), L(0), J(he);
|
|
41026
41034
|
}, K = (ue) => {
|
|
41027
41035
|
if (a) {
|
|
41028
41036
|
const he = Array.isArray(n) ? n : [], Ce = S(ue);
|
|
@@ -41032,9 +41040,9 @@ const hv = y.forwardRef(
|
|
|
41032
41040
|
he.filter((Be) => S(Be) !== Ce)
|
|
41033
41041
|
) : r == null || r([...he, ue]);
|
|
41034
41042
|
} else
|
|
41035
|
-
r == null || r(ue), T(!1),
|
|
41043
|
+
r == null || r(ue), T(!1), O("");
|
|
41036
41044
|
}, se = (ue) => {
|
|
41037
|
-
ue.stopPropagation(), r == null || r(a ? [] : null),
|
|
41045
|
+
ue.stopPropagation(), r == null || r(a ? [] : null), O(""), i == null || i("");
|
|
41038
41046
|
}, ee = () => {
|
|
41039
41047
|
if (!a) return;
|
|
41040
41048
|
const ue = Array.isArray(n) ? n : [];
|
|
@@ -41062,24 +41070,24 @@ const hv = y.forwardRef(
|
|
|
41062
41070
|
}
|
|
41063
41071
|
switch (ue.key) {
|
|
41064
41072
|
case "ArrowDown":
|
|
41065
|
-
ue.preventDefault(),
|
|
41073
|
+
ue.preventDefault(), L(
|
|
41066
41074
|
(he) => Math.min(he + 1, V.length - 1)
|
|
41067
41075
|
);
|
|
41068
41076
|
break;
|
|
41069
41077
|
case "ArrowUp":
|
|
41070
|
-
ue.preventDefault(),
|
|
41078
|
+
ue.preventDefault(), L((he) => Math.max(he - 1, 0));
|
|
41071
41079
|
break;
|
|
41072
41080
|
case "Enter":
|
|
41073
41081
|
ue.preventDefault(), V[R] && K(V[R]);
|
|
41074
41082
|
break;
|
|
41075
41083
|
case "Escape":
|
|
41076
|
-
ue.preventDefault(), T(!1), D && (
|
|
41084
|
+
ue.preventDefault(), T(!1), D && (O(""), i == null || i(""));
|
|
41077
41085
|
break;
|
|
41078
41086
|
}
|
|
41079
41087
|
};
|
|
41080
41088
|
y.useEffect(() => {
|
|
41081
41089
|
const ue = (he) => {
|
|
41082
|
-
P.current && !P.current.contains(he.target) && (T(!1), D && (
|
|
41090
|
+
P.current && !P.current.contains(he.target) && (T(!1), D && (O(""), i == null || i("")));
|
|
41083
41091
|
};
|
|
41084
41092
|
return document.addEventListener("mousedown", ue), () => document.removeEventListener("mousedown", ue);
|
|
41085
41093
|
}, []);
|
|
@@ -41238,7 +41246,7 @@ const hv = y.forwardRef(
|
|
|
41238
41246
|
role: "option",
|
|
41239
41247
|
"aria-selected": re(ue),
|
|
41240
41248
|
onClick: () => K(ue),
|
|
41241
|
-
onMouseEnter: () =>
|
|
41249
|
+
onMouseEnter: () => L(he),
|
|
41242
41250
|
className: Q(
|
|
41243
41251
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
41244
41252
|
R === he && "bg-accent",
|
|
@@ -41450,7 +41458,7 @@ const _c = y.forwardRef(
|
|
|
41450
41458
|
}
|
|
41451
41459
|
} else
|
|
41452
41460
|
a ? c == null || c(P.target.value) : c == null || c(P);
|
|
41453
|
-
},
|
|
41461
|
+
}, O = (P) => {
|
|
41454
41462
|
var z;
|
|
41455
41463
|
if (h === "number") {
|
|
41456
41464
|
const V = P.target.value;
|
|
@@ -41476,7 +41484,7 @@ const _c = y.forwardRef(
|
|
|
41476
41484
|
}
|
|
41477
41485
|
let W = V;
|
|
41478
41486
|
b !== 1 / 0 && (W = Math.min(b, W)), m !== -1 / 0 && (W = Math.max(m, W)), !E && W < 0 && (W = 0), a ? c == null || c(W) : c == null || c(e);
|
|
41479
|
-
},
|
|
41487
|
+
}, L = h === "number";
|
|
41480
41488
|
return /* @__PURE__ */ X("div", { className: `flex flex-col gap-1 ${o || ""}`, children: [
|
|
41481
41489
|
t && /* @__PURE__ */ X(
|
|
41482
41490
|
gr,
|
|
@@ -41491,7 +41499,7 @@ const _c = y.forwardRef(
|
|
|
41491
41499
|
]
|
|
41492
41500
|
}
|
|
41493
41501
|
),
|
|
41494
|
-
/* @__PURE__ */ _("div", { className: "relative", children:
|
|
41502
|
+
/* @__PURE__ */ _("div", { className: "relative", children: L ? /* @__PURE__ */ X("div", { className: "flex items-center gap-2", children: [
|
|
41495
41503
|
/* @__PURE__ */ _(
|
|
41496
41504
|
"button",
|
|
41497
41505
|
{
|
|
@@ -41530,7 +41538,7 @@ const _c = y.forwardRef(
|
|
|
41530
41538
|
inputMode: "numeric",
|
|
41531
41539
|
value: u,
|
|
41532
41540
|
onChange: D,
|
|
41533
|
-
onBlur:
|
|
41541
|
+
onBlur: O,
|
|
41534
41542
|
disabled: S,
|
|
41535
41543
|
className: Q(
|
|
41536
41544
|
`flex h-10 ${d} rounded-md border border-input bg-background px-3 py-2 text-sm text-center font-medium text-foreground ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,
|
|
@@ -41626,7 +41634,15 @@ const _c = y.forwardRef(
|
|
|
41626
41634
|
...N
|
|
41627
41635
|
}
|
|
41628
41636
|
) }),
|
|
41629
|
-
/* @__PURE__ */ _(
|
|
41637
|
+
/* @__PURE__ */ _(
|
|
41638
|
+
qa,
|
|
41639
|
+
{
|
|
41640
|
+
description: n,
|
|
41641
|
+
helpText: r,
|
|
41642
|
+
error: i,
|
|
41643
|
+
hideOnError: !0
|
|
41644
|
+
}
|
|
41645
|
+
),
|
|
41630
41646
|
i && /* @__PURE__ */ X("p", { className: "text-xs text-destructive flex items-center gap-1", children: [
|
|
41631
41647
|
/* @__PURE__ */ _(
|
|
41632
41648
|
"svg",
|
|
@@ -41779,23 +41795,23 @@ const AM = y.forwardRef(
|
|
|
41779
41795
|
loadingMore: w = !1,
|
|
41780
41796
|
...k
|
|
41781
41797
|
}, N) => {
|
|
41782
|
-
const T = y.useRef(/* @__PURE__ */ new Map()), D = h || (typeof m == "function" ? m : m ? (P) => P == null ? void 0 : P[m] : (P) => (P == null ? void 0 : P.label) || (P == null ? void 0 : P.name) || String(P)),
|
|
41798
|
+
const T = y.useRef(/* @__PURE__ */ new Map()), D = h || (typeof m == "function" ? m : m ? (P) => P == null ? void 0 : P[m] : (P) => (P == null ? void 0 : P.label) || (P == null ? void 0 : P.name) || String(P)), O = u || (typeof b == "function" ? b : b ? (P) => P == null ? void 0 : P[b] : (P) => (P == null ? void 0 : P.value) || (P == null ? void 0 : P.id) || P);
|
|
41783
41799
|
y.useEffect(() => {
|
|
41784
41800
|
a.forEach((P) => {
|
|
41785
41801
|
if (P && typeof P == "object") {
|
|
41786
|
-
const z =
|
|
41802
|
+
const z = O(P);
|
|
41787
41803
|
z != null && T.current.set(z, P);
|
|
41788
41804
|
}
|
|
41789
41805
|
});
|
|
41790
|
-
}, [a,
|
|
41806
|
+
}, [a, O]);
|
|
41791
41807
|
const R = y.useMemo(() => {
|
|
41792
41808
|
if (l == null) return x ? [] : null;
|
|
41793
41809
|
const P = (z) => {
|
|
41794
41810
|
if (typeof z == "object" && z !== null) {
|
|
41795
|
-
const W =
|
|
41811
|
+
const W = O(z);
|
|
41796
41812
|
return W != null && T.current.set(W, z), z;
|
|
41797
41813
|
}
|
|
41798
|
-
const V = a.find((W) =>
|
|
41814
|
+
const V = a.find((W) => O(W) === z);
|
|
41799
41815
|
return V || T.current.get(z) || null;
|
|
41800
41816
|
};
|
|
41801
41817
|
if (x) {
|
|
@@ -41807,7 +41823,7 @@ const AM = y.forwardRef(
|
|
|
41807
41823
|
}
|
|
41808
41824
|
} else
|
|
41809
41825
|
return typeof l == "object" && l !== null ? l : P(l);
|
|
41810
|
-
}, [l, a,
|
|
41826
|
+
}, [l, a, O, x]);
|
|
41811
41827
|
return /* @__PURE__ */ _(
|
|
41812
41828
|
gi,
|
|
41813
41829
|
{
|
|
@@ -41829,7 +41845,7 @@ const AM = y.forwardRef(
|
|
|
41829
41845
|
else {
|
|
41830
41846
|
const z = P.map((V) => {
|
|
41831
41847
|
if (V == null) return null;
|
|
41832
|
-
const W =
|
|
41848
|
+
const W = O(V);
|
|
41833
41849
|
return W != null && typeof V == "object" && T.current.set(W, V), W;
|
|
41834
41850
|
}).filter((V) => V != null);
|
|
41835
41851
|
c == null || c(z);
|
|
@@ -41837,13 +41853,13 @@ const AM = y.forwardRef(
|
|
|
41837
41853
|
else if (P == null)
|
|
41838
41854
|
c == null || c(null);
|
|
41839
41855
|
else {
|
|
41840
|
-
const z =
|
|
41856
|
+
const z = O(P);
|
|
41841
41857
|
z != null && typeof P == "object" && T.current.set(z, P), c == null || c(z);
|
|
41842
41858
|
}
|
|
41843
41859
|
},
|
|
41844
41860
|
options: a,
|
|
41845
41861
|
getOptionLabel: D,
|
|
41846
|
-
getOptionValue:
|
|
41862
|
+
getOptionValue: O,
|
|
41847
41863
|
onSearch: C,
|
|
41848
41864
|
multiple: x,
|
|
41849
41865
|
className: Q(i && "border-destructive"),
|
|
@@ -42033,8 +42049,9 @@ const LM = y.forwardRef(
|
|
|
42033
42049
|
descriptionClassName: b,
|
|
42034
42050
|
errorClassName: C,
|
|
42035
42051
|
datePickerTriggerClassName: S,
|
|
42036
|
-
|
|
42037
|
-
|
|
42052
|
+
popoverContentClassName: E,
|
|
42053
|
+
...d
|
|
42054
|
+
}, f) => /* @__PURE__ */ _(
|
|
42038
42055
|
gi,
|
|
42039
42056
|
{
|
|
42040
42057
|
label: t,
|
|
@@ -42046,16 +42063,17 @@ const LM = y.forwardRef(
|
|
|
42046
42063
|
children: /* @__PURE__ */ _(
|
|
42047
42064
|
tg,
|
|
42048
42065
|
{
|
|
42049
|
-
ref:
|
|
42066
|
+
ref: f,
|
|
42050
42067
|
dateRange: l,
|
|
42051
42068
|
onDateRangeChange: c,
|
|
42052
42069
|
placeholder: h,
|
|
42053
42070
|
clearable: u,
|
|
42054
42071
|
sendUTC: a,
|
|
42072
|
+
popoverContentClassName: E,
|
|
42055
42073
|
triggerClassName: Q(
|
|
42056
42074
|
i && "border-destructive focus-visible:ring-destructive"
|
|
42057
42075
|
),
|
|
42058
|
-
...
|
|
42076
|
+
...d
|
|
42059
42077
|
}
|
|
42060
42078
|
)
|
|
42061
42079
|
}
|
|
@@ -42656,9 +42674,9 @@ const hf = ({ text: t, maxLines: n = 1, className: r, showTooltip: i = !0 }) =>
|
|
|
42656
42674
|
actions: T = [],
|
|
42657
42675
|
onRowClick: D,
|
|
42658
42676
|
// Appearance
|
|
42659
|
-
striped:
|
|
42677
|
+
striped: O = !1,
|
|
42660
42678
|
hover: R = !0,
|
|
42661
|
-
compact:
|
|
42679
|
+
compact: L = !1,
|
|
42662
42680
|
className: P,
|
|
42663
42681
|
// Empty state
|
|
42664
42682
|
emptyTitle: z = "No data found",
|
|
@@ -42957,7 +42975,7 @@ const hf = ({ text: t, maxLines: n = 1, className: r, showTooltip: i = !0 }) =>
|
|
|
42957
42975
|
"data-state": st ? "selected" : void 0,
|
|
42958
42976
|
className: Q(
|
|
42959
42977
|
"border-b border-border transition-colors",
|
|
42960
|
-
|
|
42978
|
+
O && Ae % 2 === 1 && "bg-gray-50",
|
|
42961
42979
|
R && D && "cursor-pointer",
|
|
42962
42980
|
R && !D && st && "bg-primary/20",
|
|
42963
42981
|
de
|
|
@@ -42984,7 +43002,7 @@ const hf = ({ text: t, maxLines: n = 1, className: r, showTooltip: i = !0 }) =>
|
|
|
42984
43002
|
{
|
|
42985
43003
|
className: Q(
|
|
42986
43004
|
"text-muted-foreground font-medium",
|
|
42987
|
-
|
|
43005
|
+
L && "py-2",
|
|
42988
43006
|
ue
|
|
42989
43007
|
),
|
|
42990
43008
|
children: me(Ae)
|
|
@@ -42995,7 +43013,7 @@ const hf = ({ text: t, maxLines: n = 1, className: r, showTooltip: i = !0 }) =>
|
|
|
42995
43013
|
{
|
|
42996
43014
|
className: Q(
|
|
42997
43015
|
"text-foreground",
|
|
42998
|
-
|
|
43016
|
+
L ? "py-2" : "py-3",
|
|
42999
43017
|
Oe.cellClassName,
|
|
43000
43018
|
ue
|
|
43001
43019
|
),
|
|
@@ -43182,9 +43200,9 @@ const WM = ({
|
|
|
43182
43200
|
onEdit: N,
|
|
43183
43201
|
onDelete: T,
|
|
43184
43202
|
onRefresh: D,
|
|
43185
|
-
onExport:
|
|
43203
|
+
onExport: O,
|
|
43186
43204
|
tableClassName: R,
|
|
43187
|
-
tableHeaderClassName:
|
|
43205
|
+
tableHeaderClassName: L,
|
|
43188
43206
|
tableBodyClassName: P,
|
|
43189
43207
|
tableRowClassName: z,
|
|
43190
43208
|
tableHeadClassName: V,
|
|
@@ -43505,12 +43523,12 @@ const WM = ({
|
|
|
43505
43523
|
},
|
|
43506
43524
|
Ee.label || mt
|
|
43507
43525
|
)) }),
|
|
43508
|
-
|
|
43526
|
+
O && (y.isValidElement(O) ? O : /* @__PURE__ */ X(
|
|
43509
43527
|
Ge,
|
|
43510
43528
|
{
|
|
43511
43529
|
variant: "outline",
|
|
43512
43530
|
size: "sm",
|
|
43513
|
-
onClick:
|
|
43531
|
+
onClick: O,
|
|
43514
43532
|
className: Q("cursor-pointer", J),
|
|
43515
43533
|
children: [
|
|
43516
43534
|
/* @__PURE__ */ _(Ac, { className: "mr-2 h-4 w-4" }),
|
|
@@ -43588,7 +43606,7 @@ const WM = ({
|
|
|
43588
43606
|
emptyAction: Qa ? `Create ${ne}` : void 0,
|
|
43589
43607
|
onEmptyAction: Qa ? xu : void 0,
|
|
43590
43608
|
tableClassName: R,
|
|
43591
|
-
tableHeaderClassName:
|
|
43609
|
+
tableHeaderClassName: L,
|
|
43592
43610
|
tableBodyClassName: P,
|
|
43593
43611
|
tableRowClassName: z,
|
|
43594
43612
|
tableHeadClassName: V,
|
|
@@ -43931,8 +43949,8 @@ var ki = (t) => Wt(t) && !Ko(t) ? t : {
|
|
|
43931
43949
|
return {};
|
|
43932
43950
|
const x = c ? c[0] : l, p = (R) => {
|
|
43933
43951
|
s && x.reportValidity && (x.setCustomValidity($n(R) ? "" : R || ""), x.reportValidity());
|
|
43934
|
-
}, v = {}, w = hu(l), k = eo(l), N = w || k, T = (d || fu(l)) && It(l.value) && It(g) || Xo(l) && l.value === "" || g === "" || Array.isArray(g) && !g.length, D = Cv.bind(null, E, i, v),
|
|
43935
|
-
const W = R ?
|
|
43952
|
+
}, v = {}, w = hu(l), k = eo(l), N = w || k, T = (d || fu(l)) && It(l.value) && It(g) || Xo(l) && l.value === "" || g === "" || Array.isArray(g) && !g.length, D = Cv.bind(null, E, i, v), O = (R, L, P, z = fr.maxLength, V = fr.minLength) => {
|
|
43953
|
+
const W = R ? L : P;
|
|
43936
43954
|
v[E] = {
|
|
43937
43955
|
type: R ? z : V,
|
|
43938
43956
|
message: W,
|
|
@@ -43941,60 +43959,60 @@ var ki = (t) => Wt(t) && !Ko(t) ? t : {
|
|
|
43941
43959
|
};
|
|
43942
43960
|
};
|
|
43943
43961
|
if (o ? !Array.isArray(g) || !g.length : a && (!N && (T || sn(g)) || $n(g) && !g || k && !Tv(c).isValid || w && !Mv(c).isValid)) {
|
|
43944
|
-
const { value: R, message:
|
|
43962
|
+
const { value: R, message: L } = dn(a) ? { value: !!a, message: a } : ki(a);
|
|
43945
43963
|
if (R && (v[E] = {
|
|
43946
43964
|
type: fr.required,
|
|
43947
|
-
message:
|
|
43965
|
+
message: L,
|
|
43948
43966
|
ref: x,
|
|
43949
|
-
...D(fr.required,
|
|
43967
|
+
...D(fr.required, L)
|
|
43950
43968
|
}, !i))
|
|
43951
|
-
return p(
|
|
43969
|
+
return p(L), v;
|
|
43952
43970
|
}
|
|
43953
43971
|
if (!T && (!sn(m) || !sn(b))) {
|
|
43954
|
-
let R,
|
|
43972
|
+
let R, L;
|
|
43955
43973
|
const P = ki(b), z = ki(m);
|
|
43956
43974
|
if (!sn(g) && !isNaN(g)) {
|
|
43957
43975
|
const V = l.valueAsNumber || g && +g;
|
|
43958
|
-
sn(P.value) || (R = V > P.value), sn(z.value) || (
|
|
43976
|
+
sn(P.value) || (R = V > P.value), sn(z.value) || (L = V < z.value);
|
|
43959
43977
|
} else {
|
|
43960
43978
|
const V = l.valueAsDate || new Date(g), W = (H) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + H), $ = l.type == "time", F = l.type == "week";
|
|
43961
|
-
dn(P.value) && g && (R = $ ? W(g) > W(P.value) : F ? g > P.value : V > new Date(P.value)), dn(z.value) && g && (
|
|
43979
|
+
dn(P.value) && g && (R = $ ? W(g) > W(P.value) : F ? g > P.value : V > new Date(P.value)), dn(z.value) && g && (L = $ ? W(g) < W(z.value) : F ? g < z.value : V < new Date(z.value));
|
|
43962
43980
|
}
|
|
43963
|
-
if ((R ||
|
|
43981
|
+
if ((R || L) && (O(!!R, P.message, z.message, fr.max, fr.min), !i))
|
|
43964
43982
|
return p(v[E].message), v;
|
|
43965
43983
|
}
|
|
43966
43984
|
if ((h || u) && !T && (dn(g) || o && Array.isArray(g))) {
|
|
43967
|
-
const R = ki(h),
|
|
43968
|
-
if ((P || z) && (
|
|
43985
|
+
const R = ki(h), L = ki(u), P = !sn(R.value) && g.length > +R.value, z = !sn(L.value) && g.length < +L.value;
|
|
43986
|
+
if ((P || z) && (O(P, R.message, L.message), !i))
|
|
43969
43987
|
return p(v[E].message), v;
|
|
43970
43988
|
}
|
|
43971
43989
|
if (C && !T && dn(g)) {
|
|
43972
|
-
const { value: R, message:
|
|
43990
|
+
const { value: R, message: L } = ki(C);
|
|
43973
43991
|
if (Ko(R) && !g.match(R) && (v[E] = {
|
|
43974
43992
|
type: fr.pattern,
|
|
43975
|
-
message:
|
|
43993
|
+
message: L,
|
|
43976
43994
|
ref: l,
|
|
43977
|
-
...D(fr.pattern,
|
|
43995
|
+
...D(fr.pattern, L)
|
|
43978
43996
|
}, !i))
|
|
43979
|
-
return p(
|
|
43997
|
+
return p(L), v;
|
|
43980
43998
|
}
|
|
43981
43999
|
if (S) {
|
|
43982
44000
|
if (In(S)) {
|
|
43983
|
-
const R = await S(g, r),
|
|
43984
|
-
if (
|
|
43985
|
-
...
|
|
43986
|
-
...D(fr.validate,
|
|
44001
|
+
const R = await S(g, r), L = Sf(R, x);
|
|
44002
|
+
if (L && (v[E] = {
|
|
44003
|
+
...L,
|
|
44004
|
+
...D(fr.validate, L.message)
|
|
43987
44005
|
}, !i))
|
|
43988
|
-
return p(
|
|
44006
|
+
return p(L.message), v;
|
|
43989
44007
|
} else if (Wt(S)) {
|
|
43990
44008
|
let R = {};
|
|
43991
|
-
for (const
|
|
44009
|
+
for (const L in S) {
|
|
43992
44010
|
if (!Qt(R) && !i)
|
|
43993
44011
|
break;
|
|
43994
|
-
const P = Sf(await S[
|
|
44012
|
+
const P = Sf(await S[L](g, r), x, L);
|
|
43995
44013
|
P && (R = {
|
|
43996
44014
|
...P,
|
|
43997
|
-
...D(
|
|
44015
|
+
...D(L, P.message)
|
|
43998
44016
|
}, p(P.message), i && (v[E] = R));
|
|
43999
44017
|
}
|
|
44000
44018
|
if (!Qt(R) && (v[E] = {
|
|
@@ -44088,7 +44106,7 @@ function cA(t = {}) {
|
|
|
44088
44106
|
}
|
|
44089
44107
|
(u.dirtyFields || m.dirtyFields) && (r.dirtyFields = Ei(s, o)), b.state.next({
|
|
44090
44108
|
name: Y,
|
|
44091
|
-
isDirty:
|
|
44109
|
+
isDirty: O(Y, ne),
|
|
44092
44110
|
dirtyFields: r.dirtyFields,
|
|
44093
44111
|
errors: r.errors,
|
|
44094
44112
|
isValid: r.isValid
|
|
@@ -44117,7 +44135,7 @@ function cA(t = {}) {
|
|
|
44117
44135
|
};
|
|
44118
44136
|
if (!n.disabled) {
|
|
44119
44137
|
if (!ie || _e) {
|
|
44120
|
-
(u.isDirty || m.isDirty) && (ve = r.isDirty, r.isDirty = Le.isDirty =
|
|
44138
|
+
(u.isDirty || m.isDirty) && (ve = r.isDirty, r.isDirty = Le.isDirty = O(), ce = ve !== Le.isDirty);
|
|
44121
44139
|
const fe = Lr(Re(s, Y), ne);
|
|
44122
44140
|
ve = !!Re(r.dirtyFields, Y), fe ? Ht(r.dirtyFields, Y) : yt(r.dirtyFields, Y, !0), Le.dirtyFields = r.dirtyFields, ce = ce || (u.dirtyFields || m.dirtyFields) && ve !== !fe;
|
|
44123
44141
|
}
|
|
@@ -44181,9 +44199,9 @@ function cA(t = {}) {
|
|
|
44181
44199
|
ne && (ne._f.refs ? ne._f.refs.every((ie) => !Bl(ie)) : !Bl(ne._f.ref)) && ee(Y);
|
|
44182
44200
|
}
|
|
44183
44201
|
c.unMount = /* @__PURE__ */ new Set();
|
|
44184
|
-
},
|
|
44202
|
+
}, O = (Y, ne) => !n.disabled && (Y && ne && yt(o, Y, ne), !Lr(H(), s)), R = (Y, ne, ie) => ZM(Y, c, {
|
|
44185
44203
|
...l.mount ? o : It(ne) ? s : dn(Y) ? { [Y]: ne } : ne
|
|
44186
|
-
}, ie, ne),
|
|
44204
|
+
}, ie, ne), L = (Y) => uu(Re(l.mount ? o : s, Y, n.shouldUnregister ? Re(s, Y, []) : [])), P = (Y, ne, ie = {}) => {
|
|
44187
44205
|
const _e = Re(i, Y);
|
|
44188
44206
|
let me = ne;
|
|
44189
44207
|
if (_e) {
|
|
@@ -44211,7 +44229,7 @@ function cA(t = {}) {
|
|
|
44211
44229
|
}), (u.isDirty || u.dirtyFields || m.isDirty || m.dirtyFields) && ie.shouldDirty && b.state.next({
|
|
44212
44230
|
name: Y,
|
|
44213
44231
|
dirtyFields: Ei(s, o),
|
|
44214
|
-
isDirty:
|
|
44232
|
+
isDirty: O(Y, ce)
|
|
44215
44233
|
})) : _e && !_e._f && !sn(ce) ? z(Y, ce, ie) : P(Y, ce, ie), _f(Y, c) && b.state.next({ ...r, name: Y }), b.state.next({
|
|
44216
44234
|
name: l.mount ? Y : void 0,
|
|
44217
44235
|
values: Yt(o)
|
|
@@ -44312,7 +44330,7 @@ function cA(t = {}) {
|
|
|
44312
44330
|
values: Yt(o)
|
|
44313
44331
|
}), b.state.next({
|
|
44314
44332
|
...r,
|
|
44315
|
-
...ne.keepDirty ? { isDirty:
|
|
44333
|
+
...ne.keepDirty ? { isDirty: O() } : {}
|
|
44316
44334
|
}), !ne.keepIsValid && E();
|
|
44317
44335
|
}, oe = ({ disabled: Y, name: ne }) => {
|
|
44318
44336
|
($n(Y) && l.mount || Y || c.disabled.has(ne)) && (Y ? c.disabled.add(ne) : c.disabled.delete(ne));
|
|
@@ -44407,7 +44425,7 @@ function cA(t = {}) {
|
|
|
44407
44425
|
}), _e)
|
|
44408
44426
|
throw _e;
|
|
44409
44427
|
}, ue = (Y, ne = {}) => {
|
|
44410
|
-
Re(i, Y) && (It(ne.defaultValue) ? V(Y, Yt(Re(s, Y))) : (V(Y, ne.defaultValue), yt(s, Y, Yt(ne.defaultValue))), ne.keepTouched || Ht(r.touchedFields, Y), ne.keepDirty || (Ht(r.dirtyFields, Y), r.isDirty = ne.defaultValue ?
|
|
44428
|
+
Re(i, Y) && (It(ne.defaultValue) ? V(Y, Yt(Re(s, Y))) : (V(Y, ne.defaultValue), yt(s, Y, Yt(ne.defaultValue))), ne.keepTouched || Ht(r.touchedFields, Y), ne.keepDirty || (Ht(r.dirtyFields, Y), r.isDirty = ne.defaultValue ? O(Y, Yt(Re(s, Y))) : O()), ne.keepError || (Ht(r.errors, Y), u.isValid && E()), b.state.next({ ...r }));
|
|
44411
44429
|
}, he = (Y, ne = {}) => {
|
|
44412
44430
|
const ie = Y ? Yt(Y) : s, _e = Yt(ie), me = Qt(Y), ce = me ? s : _e;
|
|
44413
44431
|
if (ne.keepDefaultValues || (s = ie), !ne.keepValues) {
|
|
@@ -44486,12 +44504,12 @@ function cA(t = {}) {
|
|
|
44486
44504
|
_runSchema: k,
|
|
44487
44505
|
_focusError: ae,
|
|
44488
44506
|
_getWatch: R,
|
|
44489
|
-
_getDirty:
|
|
44507
|
+
_getDirty: O,
|
|
44490
44508
|
_setValid: E,
|
|
44491
44509
|
_setFieldArray: f,
|
|
44492
44510
|
_setDisabledField: oe,
|
|
44493
44511
|
_setErrors: x,
|
|
44494
|
-
_getFieldArray:
|
|
44512
|
+
_getFieldArray: L,
|
|
44495
44513
|
_reset: he,
|
|
44496
44514
|
_resetDefaultValues: () => In(n.defaultValues) && n.defaultValues().then((Y) => {
|
|
44497
44515
|
Ce(Y, n.resetOptions), b.state.next({
|
|
@@ -44766,38 +44784,38 @@ const Rv = (t) => {
|
|
|
44766
44784
|
className: T,
|
|
44767
44785
|
// NEW: Breadcrumb support
|
|
44768
44786
|
getBreadcrumbName: D,
|
|
44769
|
-
...
|
|
44787
|
+
...O
|
|
44770
44788
|
}) => {
|
|
44771
44789
|
var me;
|
|
44772
|
-
const R = Nc(), { uuid:
|
|
44790
|
+
const R = Nc(), { uuid: L } = Rf(), { success: P, error: z } = lu(), { setBreadcrumbName: V, clearBreadcrumbName: W } = mu(), $ = !!L, F = t == null ? void 0 : t(), H = F == null ? void 0 : F.form, G = (F == null ? void 0 : F.loading) ?? !1, q = ((me = F == null ? void 0 : F.form) == null ? void 0 : me.isSubmitting) ?? !1, J = (F == null ? void 0 : F.fetchAndPopulateForm) || (F == null ? void 0 : F.fetchById) || (F == null ? void 0 : F.fetchOne), U = F == null ? void 0 : F.create, K = F == null ? void 0 : F.update, se = F == null ? void 0 : F.resetForm, ee = m || G, oe = b || q, re = y.useRef(!1), ae = y.useRef(null);
|
|
44773
44791
|
y.useEffect(() => {
|
|
44774
|
-
$ &&
|
|
44775
|
-
}, [
|
|
44792
|
+
$ && L && J && L !== ae.current && (ae.current = L, re.current = !0, J(L));
|
|
44793
|
+
}, [L, $, J]), y.useEffect(() => {
|
|
44776
44794
|
!$ && se && se();
|
|
44777
44795
|
}, [$, se]), y.useEffect(() => () => {
|
|
44778
44796
|
se && setTimeout(() => {
|
|
44779
44797
|
se();
|
|
44780
44798
|
}, 0), re.current = !1, ae.current = null;
|
|
44781
44799
|
}, []), y.useEffect(() => {
|
|
44782
|
-
if ($ &&
|
|
44800
|
+
if ($ && L && D && (H != null && H.values)) {
|
|
44783
44801
|
const ce = H.values;
|
|
44784
44802
|
if (ce && Object.entries(ce).some(([Le, fe]) => fe !== "" && fe !== null && fe !== void 0 && Le !== "uuid")) {
|
|
44785
44803
|
const Le = D(ce);
|
|
44786
|
-
Le && V(
|
|
44804
|
+
Le && V(L, Le);
|
|
44787
44805
|
}
|
|
44788
44806
|
}
|
|
44789
44807
|
}, [
|
|
44790
|
-
|
|
44808
|
+
L,
|
|
44791
44809
|
$,
|
|
44792
44810
|
H == null ? void 0 : H.values,
|
|
44793
44811
|
D,
|
|
44794
44812
|
V
|
|
44795
44813
|
]), y.useEffect(() => {
|
|
44796
|
-
const ce =
|
|
44814
|
+
const ce = L;
|
|
44797
44815
|
return () => {
|
|
44798
44816
|
ce && W(ce);
|
|
44799
44817
|
};
|
|
44800
|
-
}, [
|
|
44818
|
+
}, [L, W]);
|
|
44801
44819
|
const de = y.useCallback(() => {
|
|
44802
44820
|
se && se(), c ? c() : R(k || -1);
|
|
44803
44821
|
}, [c, k, R, se]), ye = y.useCallback(() => {
|
|
@@ -44817,7 +44835,7 @@ const Rv = (t) => {
|
|
|
44817
44835
|
try {
|
|
44818
44836
|
let qe = ve;
|
|
44819
44837
|
if (a && (qe = a(qe)), $)
|
|
44820
|
-
await (K == null ? void 0 : K(
|
|
44838
|
+
await (K == null ? void 0 : K(L, qe)), P(`${C || "Item"} updated successfully`), se && se(), de();
|
|
44821
44839
|
else {
|
|
44822
44840
|
const lt = await (U == null ? void 0 : U(qe));
|
|
44823
44841
|
P(`${C || "Item"} created successfully`), se && se(), h && lt ? h(lt, R) : de();
|
|
@@ -44862,7 +44880,7 @@ const Rv = (t) => {
|
|
|
44862
44880
|
)
|
|
44863
44881
|
] })
|
|
44864
44882
|
] });
|
|
44865
|
-
return w ? /* @__PURE__ */ X(_n, { className: T, ...
|
|
44883
|
+
return w ? /* @__PURE__ */ X(_n, { className: T, ...O, children: [
|
|
44866
44884
|
/* @__PURE__ */ _(ps, { children: /* @__PURE__ */ X("div", { className: "flex items-center gap-4", children: [
|
|
44867
44885
|
v && /* @__PURE__ */ _(
|
|
44868
44886
|
Ge,
|
|
@@ -44880,7 +44898,7 @@ const Rv = (t) => {
|
|
|
44880
44898
|
] })
|
|
44881
44899
|
] }) }),
|
|
44882
44900
|
/* @__PURE__ */ _(Cn, { children: ve })
|
|
44883
|
-
] }) : /* @__PURE__ */ X("div", { className: Q("space-y-6", T), ...
|
|
44901
|
+
] }) : /* @__PURE__ */ X("div", { className: Q("space-y-6", T), ...O, children: [
|
|
44884
44902
|
/* @__PURE__ */ X("div", { className: "flex items-center gap-4", children: [
|
|
44885
44903
|
v && /* @__PURE__ */ _(Ge, { variant: "ghost", size: "icon", onClick: de, children: /* @__PURE__ */ _(Vn, { className: "h-4 w-4" }) }),
|
|
44886
44904
|
N && /* @__PURE__ */ _("div", { className: "h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center", children: /* @__PURE__ */ _(N, { className: "h-5 w-5 text-primary" }) }),
|
|
@@ -45086,7 +45104,7 @@ const Rv = (t) => {
|
|
|
45086
45104
|
)
|
|
45087
45105
|
] })
|
|
45088
45106
|
] });
|
|
45089
|
-
return x && (C || S || v) ? /* @__PURE__ */ X(_n, { className: T, ...
|
|
45107
|
+
return x && (C || S || v) ? /* @__PURE__ */ X(_n, { className: T, ...O, children: [
|
|
45090
45108
|
/* @__PURE__ */ _(ps, { children: /* @__PURE__ */ X("div", { className: "flex items-center gap-4", children: [
|
|
45091
45109
|
v && c && /* @__PURE__ */ _(Ge, { variant: "ghost", size: "icon", onClick: c, children: /* @__PURE__ */ _(Vn, { className: "h-4 w-4" }) }),
|
|
45092
45110
|
/* @__PURE__ */ X("div", { children: [
|
|
@@ -45095,7 +45113,7 @@ const Rv = (t) => {
|
|
|
45095
45113
|
] })
|
|
45096
45114
|
] }) }),
|
|
45097
45115
|
/* @__PURE__ */ _(Cn, { children: _e })
|
|
45098
|
-
] }) : /* @__PURE__ */ _("div", { className: T, ...
|
|
45116
|
+
] }) : /* @__PURE__ */ _("div", { className: T, ...O, children: _e });
|
|
45099
45117
|
};
|
|
45100
45118
|
gA.displayName = "CrudForm";
|
|
45101
45119
|
function LD({
|
|
@@ -45180,7 +45198,7 @@ function ID({
|
|
|
45180
45198
|
className: x,
|
|
45181
45199
|
children: p
|
|
45182
45200
|
}) {
|
|
45183
|
-
const [v, w] = pt(""), [k, N] = pt(""), [T, D] = pt(!1), [
|
|
45201
|
+
const [v, w] = pt(""), [k, N] = pt(""), [T, D] = pt(!1), [O, R] = pt(!1), L = async (P) => {
|
|
45184
45202
|
P.preventDefault(), t && await t({ email: v, password: k, rememberMe: T });
|
|
45185
45203
|
};
|
|
45186
45204
|
return /* @__PURE__ */ X("div", { className: Q("space-y-6", x), children: [
|
|
@@ -45190,7 +45208,7 @@ function ID({
|
|
|
45190
45208
|
s && /* @__PURE__ */ _("p", { className: "text-sm text-muted-foreground", children: s })
|
|
45191
45209
|
] }),
|
|
45192
45210
|
r && /* @__PURE__ */ _("div", { className: "p-3 text-sm text-destructive bg-destructive/10 rounded-md", children: r }),
|
|
45193
|
-
/* @__PURE__ */ X("form", { onSubmit:
|
|
45211
|
+
/* @__PURE__ */ X("form", { onSubmit: L, className: "space-y-4 w-full", children: [
|
|
45194
45212
|
/* @__PURE__ */ X("div", { className: "space-y-1", children: [
|
|
45195
45213
|
/* @__PURE__ */ _(gr, { htmlFor: "email", children: o }),
|
|
45196
45214
|
/* @__PURE__ */ _(
|
|
@@ -45213,7 +45231,7 @@ function ID({
|
|
|
45213
45231
|
ai,
|
|
45214
45232
|
{
|
|
45215
45233
|
id: "password",
|
|
45216
|
-
type:
|
|
45234
|
+
type: O ? "text" : "password",
|
|
45217
45235
|
value: k,
|
|
45218
45236
|
onChange: (P) => N(P.target.value),
|
|
45219
45237
|
required: !0,
|
|
@@ -45226,10 +45244,10 @@ function ID({
|
|
|
45226
45244
|
"button",
|
|
45227
45245
|
{
|
|
45228
45246
|
type: "button",
|
|
45229
|
-
onClick: () => R(!
|
|
45247
|
+
onClick: () => R(!O),
|
|
45230
45248
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",
|
|
45231
|
-
"aria-label":
|
|
45232
|
-
children:
|
|
45249
|
+
"aria-label": O ? "Hide password" : "Show password",
|
|
45250
|
+
children: O ? /* @__PURE__ */ _(Zf, { className: "h-4 w-4" }) : /* @__PURE__ */ _(_y, { className: "h-4 w-4" })
|
|
45233
45251
|
}
|
|
45234
45252
|
)
|
|
45235
45253
|
] })
|
|
@@ -45559,26 +45577,26 @@ function PA({
|
|
|
45559
45577
|
onExpandedChange: S,
|
|
45560
45578
|
onPinnedChange: E
|
|
45561
45579
|
}) {
|
|
45562
|
-
var
|
|
45580
|
+
var O, R;
|
|
45563
45581
|
const { isOpen: d, setOpen: f } = Lv(), g = na(), [x, p] = ge.useState(!1), [v, w] = ge.useState(!1), k = v || x;
|
|
45564
45582
|
ge.useEffect(() => {
|
|
45565
45583
|
S && S(k);
|
|
45566
45584
|
}, [k, S]), ge.useEffect(() => {
|
|
45567
45585
|
E && E(v);
|
|
45568
45586
|
}, [v, E]);
|
|
45569
|
-
const N = (
|
|
45570
|
-
if (
|
|
45587
|
+
const N = (L, P = !1) => {
|
|
45588
|
+
if (L.title)
|
|
45571
45589
|
return /* @__PURE__ */ X("div", { className: "mt-6", children: [
|
|
45572
|
-
k && /* @__PURE__ */ _("h3", { className: "px-3 text-xs font-medium text-sidebar-foreground/50 uppercase tracking-wider mb-2", children:
|
|
45590
|
+
k && /* @__PURE__ */ _("h3", { className: "px-3 text-xs font-medium text-sidebar-foreground/50 uppercase tracking-wider mb-2", children: L.title }),
|
|
45573
45591
|
!k && /* @__PURE__ */ _(oa, { className: "my-3 bg-sidebar-border" })
|
|
45574
|
-
] },
|
|
45592
|
+
] }, L.title);
|
|
45575
45593
|
if (m)
|
|
45576
|
-
return m(
|
|
45594
|
+
return m(L, {
|
|
45577
45595
|
isCollapsed: !k,
|
|
45578
45596
|
isSubItem: P,
|
|
45579
45597
|
location: g
|
|
45580
45598
|
});
|
|
45581
|
-
const z =
|
|
45599
|
+
const z = L.icon, V = L.children && L.children.length > 0, W = L.path && (g.pathname === L.path || g.pathname.startsWith(L.path + "/")), $ = V && L.children.some(
|
|
45582
45600
|
(F) => g.pathname === F.path || g.pathname.startsWith(F.path + "/")
|
|
45583
45601
|
);
|
|
45584
45602
|
return V ? k ? /* @__PURE__ */ _(
|
|
@@ -45595,15 +45613,15 @@ function PA({
|
|
|
45595
45613
|
$ ? "bg-sidebar-accent text-sidebar-accent-foreground" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground",
|
|
45596
45614
|
"px-3 py-2 h-10"
|
|
45597
45615
|
),
|
|
45598
|
-
title:
|
|
45616
|
+
title: L.label,
|
|
45599
45617
|
children: [
|
|
45600
45618
|
z && /* @__PURE__ */ _(z, { className: "h-5 w-5 flex-shrink-0" }),
|
|
45601
|
-
/* @__PURE__ */ _("span", { className: "flex-1 text-left truncate", children:
|
|
45619
|
+
/* @__PURE__ */ _("span", { className: "flex-1 text-left truncate", children: L.label }),
|
|
45602
45620
|
/* @__PURE__ */ _(Gn, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 flex-shrink-0" })
|
|
45603
45621
|
]
|
|
45604
45622
|
}
|
|
45605
45623
|
) }),
|
|
45606
|
-
/* @__PURE__ */ _(Hl, { className: "overflow-hidden", children: /* @__PURE__ */ _("div", { className: "ml-4 mt-1 space-y-0.5", children:
|
|
45624
|
+
/* @__PURE__ */ _(Hl, { className: "overflow-hidden", children: /* @__PURE__ */ _("div", { className: "ml-4 mt-1 space-y-0.5", children: L.children.map((F) => {
|
|
45607
45625
|
const H = F.icon, G = g.pathname === F.path || g.pathname.startsWith(F.path + "/");
|
|
45608
45626
|
return F.children && F.children.length > 0 ? /* @__PURE__ */ X(
|
|
45609
45627
|
zl,
|
|
@@ -45628,7 +45646,7 @@ function PA({
|
|
|
45628
45646
|
]
|
|
45629
45647
|
}
|
|
45630
45648
|
) }),
|
|
45631
|
-
/* @__PURE__ */ _(Hl, { className: "overflow-hidden", children: /* @__PURE__ */ _("div", { className: "ml-4 mt-1 space-y-0.5", children:
|
|
45649
|
+
/* @__PURE__ */ _(Hl, { className: "overflow-hidden", children: /* @__PURE__ */ _("div", { className: "ml-4 mt-1 space-y-0.5", children: L.children.map((J) => {
|
|
45632
45650
|
const U = J.icon, K = J.children && J.children.length > 0, se = g.pathname === J.path || g.pathname.startsWith(
|
|
45633
45651
|
(J.path || "") + "/"
|
|
45634
45652
|
), ee = K && J.children.some(
|
|
@@ -45720,7 +45738,7 @@ function PA({
|
|
|
45720
45738
|
}) }) })
|
|
45721
45739
|
] })
|
|
45722
45740
|
},
|
|
45723
|
-
|
|
45741
|
+
L.label
|
|
45724
45742
|
) : /* @__PURE__ */ _(
|
|
45725
45743
|
"div",
|
|
45726
45744
|
{
|
|
@@ -45729,26 +45747,26 @@ function PA({
|
|
|
45729
45747
|
$ ? "bg-sidebar-accent text-sidebar-accent-foreground" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground",
|
|
45730
45748
|
"justify-center p-2 h-10"
|
|
45731
45749
|
),
|
|
45732
|
-
title:
|
|
45750
|
+
title: L.label,
|
|
45733
45751
|
children: z && /* @__PURE__ */ _(z, { className: "h-5 w-5 flex-shrink-0" })
|
|
45734
45752
|
},
|
|
45735
|
-
|
|
45753
|
+
L.label
|
|
45736
45754
|
) : /* @__PURE__ */ X(
|
|
45737
45755
|
Pr,
|
|
45738
45756
|
{
|
|
45739
|
-
to:
|
|
45757
|
+
to: L.path,
|
|
45740
45758
|
className: Q(
|
|
45741
45759
|
"flex items-center gap-3 rounded-lg transition-all duration-150 text-sm",
|
|
45742
45760
|
W ? "bg-sidebar-primary text-sidebar-primary-foreground" : "hover:bg-sidebar-accent text-sidebar-foreground hover:text-sidebar-accent-foreground",
|
|
45743
45761
|
k ? "px-3 py-2 h-10" : "justify-center p-2 h-10"
|
|
45744
45762
|
),
|
|
45745
|
-
title:
|
|
45763
|
+
title: L.label,
|
|
45746
45764
|
children: [
|
|
45747
45765
|
z && /* @__PURE__ */ _(z, { className: "h-5 w-5 flex-shrink-0" }),
|
|
45748
|
-
/* @__PURE__ */ _("span", { className: Q("truncate", !k && "hidden"), children:
|
|
45766
|
+
/* @__PURE__ */ _("span", { className: Q("truncate", !k && "hidden"), children: L.label })
|
|
45749
45767
|
]
|
|
45750
45768
|
},
|
|
45751
|
-
|
|
45769
|
+
L.path || L.label
|
|
45752
45770
|
);
|
|
45753
45771
|
}, T = /* @__PURE__ */ X("div", { className: "flex items-center justify-between h-14 px-3 border-b border-sidebar-border", children: [
|
|
45754
45772
|
/* @__PURE__ */ X(
|
|
@@ -45814,7 +45832,7 @@ function PA({
|
|
|
45814
45832
|
children: [
|
|
45815
45833
|
/* @__PURE__ */ X(Um, { className: "h-8 w-8 flex-shrink-0", children: [
|
|
45816
45834
|
/* @__PURE__ */ _(qm, { src: s.avatar, alt: s.firstName || "User" }),
|
|
45817
|
-
/* @__PURE__ */ _(Ym, { className: "bg-sidebar-primary text-sidebar-primary-foreground text-xs", children: s.name ? s.name : `${((
|
|
45835
|
+
/* @__PURE__ */ _(Ym, { className: "bg-sidebar-primary text-sidebar-primary-foreground text-xs", children: s.name ? s.name : `${((O = s.firstName) == null ? void 0 : O[0]) || "U"}${((R = s.lastName) == null ? void 0 : R[0]) || ""}` })
|
|
45818
45836
|
] }),
|
|
45819
45837
|
k && /* @__PURE__ */ X("div", { className: "flex-1 text-left min-w-0", children: [
|
|
45820
45838
|
/* @__PURE__ */ _("p", { className: "text-sm font-medium text-sidebar-foreground truncate", children: s.name ? s.name : `${s.firstName} ${s.lastName}` }),
|
|
@@ -45826,12 +45844,12 @@ function PA({
|
|
|
45826
45844
|
/* @__PURE__ */ X($a, { align: "end", className: "w-56", children: [
|
|
45827
45845
|
/* @__PURE__ */ _(nu, { children: "My Account" }),
|
|
45828
45846
|
/* @__PURE__ */ _(Bi, {}),
|
|
45829
|
-
l.map((
|
|
45847
|
+
l.map((L, P) => /* @__PURE__ */ _(
|
|
45830
45848
|
oi,
|
|
45831
45849
|
{
|
|
45832
|
-
asChild: !!
|
|
45833
|
-
onClick:
|
|
45834
|
-
children:
|
|
45850
|
+
asChild: !!L.path,
|
|
45851
|
+
onClick: L.onClick,
|
|
45852
|
+
children: L.path ? /* @__PURE__ */ _(Pr, { to: L.path, children: L.label }) : L.label
|
|
45835
45853
|
},
|
|
45836
45854
|
P
|
|
45837
45855
|
)),
|
|
@@ -45864,7 +45882,7 @@ function PA({
|
|
|
45864
45882
|
),
|
|
45865
45883
|
children: [
|
|
45866
45884
|
b || T,
|
|
45867
|
-
/* @__PURE__ */ _("nav", { className: "flex-1 overflow-y-auto px-3 py-3", children: /* @__PURE__ */ _("div", { className: "space-y-1", children: t.map((
|
|
45885
|
+
/* @__PURE__ */ _("nav", { className: "flex-1 overflow-y-auto px-3 py-3", children: /* @__PURE__ */ _("div", { className: "space-y-1", children: t.map((L) => N(L)) }) }),
|
|
45868
45886
|
C || D
|
|
45869
45887
|
]
|
|
45870
45888
|
}
|
|
@@ -45912,12 +45930,12 @@ function LA({
|
|
|
45912
45930
|
}, E = () => {
|
|
45913
45931
|
const f = m.pathname.split("/").filter(Boolean), g = new URLSearchParams(m.search);
|
|
45914
45932
|
return /* @__PURE__ */ _(np, { children: /* @__PURE__ */ _("nav", { className: "flex items-center gap-1 text-sm", children: f.map((x, p) => {
|
|
45915
|
-
var T, D,
|
|
45933
|
+
var T, D, O;
|
|
45916
45934
|
let v = "/" + f.slice(0, p + 1).join("/");
|
|
45917
45935
|
const w = p === f.length - 1, k = /^\d+$/.test(x);
|
|
45918
45936
|
if ((D = (T = m.state) == null ? void 0 : T.customBreadcrumbPaths) != null && D[x])
|
|
45919
45937
|
v = m.state.customBreadcrumbPaths[x];
|
|
45920
|
-
else if (!w && !k && ((
|
|
45938
|
+
else if (!w && !k && ((O = m.state) != null && O.parentPath)) {
|
|
45921
45939
|
const R = f[p + 1];
|
|
45922
45940
|
R && /^\d+$/.test(R) && (v = m.state.parentPath);
|
|
45923
45941
|
} else if (!w && g.get("tenant")) {
|
|
@@ -46271,10 +46289,10 @@ const WA = ({
|
|
|
46271
46289
|
preserveLocationState: T = !1,
|
|
46272
46290
|
// Visibility toggles
|
|
46273
46291
|
showEditButton: D = !0,
|
|
46274
|
-
showDeleteButton:
|
|
46292
|
+
showDeleteButton: O = !0,
|
|
46275
46293
|
// Layout
|
|
46276
46294
|
showHeader: R = !0,
|
|
46277
|
-
showMeta:
|
|
46295
|
+
showMeta: L = !0,
|
|
46278
46296
|
showCard: P = !0,
|
|
46279
46297
|
columns: z = 2,
|
|
46280
46298
|
// Appearance
|
|
@@ -46358,7 +46376,7 @@ const WA = ({
|
|
|
46358
46376
|
}, We = (Te) => !Te || typeof Te != "string" ? Te : Te.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim(), ot = (Te, tt = 80) => Te.length > tt ? Te.slice(0, tt).trimEnd() + "…" : Te, ze = (() => {
|
|
46359
46377
|
const Te = fe && g ? g(fe) : (fe == null ? void 0 : fe.name) || (fe == null ? void 0 : fe.title) || f;
|
|
46360
46378
|
return ot(We(Te) || f);
|
|
46361
|
-
})(), et = (a || m) && D, Lt = (h || Le) &&
|
|
46379
|
+
})(), et = (a || m) && D, Lt = (h || Le) && O, Xe = et || Lt || p.length > 0, Zr = () => Xe ? /* @__PURE__ */ X(eu, { children: [
|
|
46362
46380
|
/* @__PURE__ */ _(tu, { asChild: !0, children: /* @__PURE__ */ _(
|
|
46363
46381
|
Ge,
|
|
46364
46382
|
{
|
|
@@ -46531,7 +46549,7 @@ const WA = ({
|
|
|
46531
46549
|
Te.name || Te.accessor
|
|
46532
46550
|
);
|
|
46533
46551
|
}) }),
|
|
46534
|
-
|
|
46552
|
+
L && fe && (fe.created_at || fe.updated_at || fe.createdAt || fe.updatedAt) && /* @__PURE__ */ X(wt, { children: [
|
|
46535
46553
|
/* @__PURE__ */ _(oa, { className: "my-6" }),
|
|
46536
46554
|
/* @__PURE__ */ X(
|
|
46537
46555
|
"div",
|
|
@@ -47494,26 +47512,26 @@ var Tc = { exports: {} };
|
|
|
47494
47512
|
static LimitPointToCircle(p, v, w) {
|
|
47495
47513
|
if (c.GetDistanceBetweenTwoPoint(p, w) <= v) return w;
|
|
47496
47514
|
const k = p.x, N = p.y, T = w.x, D = w.y;
|
|
47497
|
-
let
|
|
47498
|
-
w.x < 0 && (
|
|
47499
|
-
let R = (
|
|
47500
|
-
return k - T + N === 0 && (R = v), { x:
|
|
47515
|
+
let O = Math.sqrt(Math.pow(v, 2) * Math.pow(k - T, 2) / (Math.pow(k - T, 2) + Math.pow(N - D, 2))) + k;
|
|
47516
|
+
w.x < 0 && (O *= -1);
|
|
47517
|
+
let R = (O - k) * (N - D) / (k - T) + N;
|
|
47518
|
+
return k - T + N === 0 && (R = v), { x: O, y: R };
|
|
47501
47519
|
}
|
|
47502
47520
|
static GetIntersectBetweenTwoSegment(p, v, w) {
|
|
47503
47521
|
return c.PointInRect(p, c.GetIntersectBeetwenTwoLine(v, w));
|
|
47504
47522
|
}
|
|
47505
47523
|
static GetIntersectBeetwenTwoLine(p, v) {
|
|
47506
|
-
const w = p[0].y - p[1].y, k = v[0].y - v[1].y, N = p[1].x - p[0].x, T = v[1].x - v[0].x, D = p[0].x * p[1].y - p[1].x * p[0].y,
|
|
47524
|
+
const w = p[0].y - p[1].y, k = v[0].y - v[1].y, N = p[1].x - p[0].x, T = v[1].x - v[0].x, D = p[0].x * p[1].y - p[1].x * p[0].y, O = v[0].x * v[1].y - v[1].x * v[0].y, R = w * O - k * D, L = N * O - T * D, P = -(D * T - O * N) / (w * T - k * N), z = -(w * O - k * D) / (w * T - k * N);
|
|
47507
47525
|
if (isFinite(P) && isFinite(z)) return { x: P, y: z };
|
|
47508
|
-
if (Math.abs(R -
|
|
47526
|
+
if (Math.abs(R - L) < 0.1) throw new Error("Segment included");
|
|
47509
47527
|
return null;
|
|
47510
47528
|
}
|
|
47511
47529
|
static GetCordsFromTwoPoint(p, v) {
|
|
47512
47530
|
const w = Math.abs(p.x - v.x), k = Math.abs(p.y - v.y), N = Math.max(w, k), T = [p];
|
|
47513
|
-
function D(
|
|
47514
|
-
return R >
|
|
47531
|
+
function D(O, R, L, P, z) {
|
|
47532
|
+
return R > O ? O + z * (L / P) : R < O ? O - z * (L / P) : O;
|
|
47515
47533
|
}
|
|
47516
|
-
for (let
|
|
47534
|
+
for (let O = 1; O <= N; O += 1) T.push({ x: D(p.x, v.x, w, N, O), y: D(p.y, v.y, k, N, O) });
|
|
47517
47535
|
return T;
|
|
47518
47536
|
}
|
|
47519
47537
|
}
|
|
@@ -47685,9 +47703,9 @@ var Tc = { exports: {} };
|
|
|
47685
47703
|
const N = c.LimitPointToCircle(v, this.pageWidth, k);
|
|
47686
47704
|
k !== N && (k = N, this.updateAngleAndGeometry(k));
|
|
47687
47705
|
const T = Math.sqrt(Math.pow(this.pageWidth, 2) + Math.pow(this.pageHeight, 2));
|
|
47688
|
-
let D = this.rect.bottomRight,
|
|
47689
|
-
if (this.corner === "bottom" && (D = this.rect.topRight,
|
|
47690
|
-
const R = c.LimitPointToCircle(w, T,
|
|
47706
|
+
let D = this.rect.bottomRight, O = this.rect.topLeft;
|
|
47707
|
+
if (this.corner === "bottom" && (D = this.rect.topRight, O = this.rect.bottomLeft), D.x <= 0) {
|
|
47708
|
+
const R = c.LimitPointToCircle(w, T, O);
|
|
47691
47709
|
R !== k && (k = R, this.updateAngleAndGeometry(k));
|
|
47692
47710
|
}
|
|
47693
47711
|
return k;
|
|
@@ -47765,7 +47783,7 @@ var Tc = { exports: {} };
|
|
|
47765
47783
|
}
|
|
47766
47784
|
animateFlippingTo(p, v, w, k = !0) {
|
|
47767
47785
|
const N = c.GetCordsFromTwoPoint(p, v), T = [];
|
|
47768
|
-
for (const
|
|
47786
|
+
for (const O of N) T.push(() => this.do(O));
|
|
47769
47787
|
const D = this.getAnimationDuration(N.length);
|
|
47770
47788
|
this.render.startAnimation(T, D, () => {
|
|
47771
47789
|
this.calc && (w && (this.calc.getDirection() === 1 ? this.app.turnToPrevPage() : this.app.turnToNextPage()), k && (this.render.setBottomPage(null), this.render.setFlippingPage(null), this.render.clearShadow(), this.setState("read"), this.reset()));
|
|
@@ -47843,8 +47861,8 @@ var Tc = { exports: {} };
|
|
|
47843
47861
|
calculateBoundsRect() {
|
|
47844
47862
|
let p = "landscape";
|
|
47845
47863
|
const v = this.getBlockWidth(), w = v / 2, k = this.getBlockHeight() / 2, N = this.setting.width / this.setting.height;
|
|
47846
|
-
let T = this.setting.width, D = this.setting.height,
|
|
47847
|
-
return this.setting.size === "stretch" ? (v < 2 * this.setting.minWidth && this.app.getSettings().usePortrait && (p = "portrait"), T = p === "portrait" ? this.getBlockWidth() : this.getBlockWidth() / 2, T > this.setting.maxWidth && (T = this.setting.maxWidth), D = T / N, D > this.getBlockHeight() && (D = this.getBlockHeight(), T = D * N),
|
|
47864
|
+
let T = this.setting.width, D = this.setting.height, O = w - T;
|
|
47865
|
+
return this.setting.size === "stretch" ? (v < 2 * this.setting.minWidth && this.app.getSettings().usePortrait && (p = "portrait"), T = p === "portrait" ? this.getBlockWidth() : this.getBlockWidth() / 2, T > this.setting.maxWidth && (T = this.setting.maxWidth), D = T / N, D > this.getBlockHeight() && (D = this.getBlockHeight(), T = D * N), O = p === "portrait" ? w - T / 2 - T : w - T) : v < 2 * T && this.app.getSettings().usePortrait && (p = "portrait", O = w - T / 2 - T), this.boundsRect = { left: O, top: k - D / 2, width: 2 * T, height: D, pageWidth: T }, p;
|
|
47848
47866
|
}
|
|
47849
47867
|
setShadowData(p, v, w, k) {
|
|
47850
47868
|
if (!this.app.getSettings().drawShadow) return;
|
|
@@ -47985,12 +48003,12 @@ var Tc = { exports: {} };
|
|
|
47985
48003
|
}, this.onTouchEnd = (N) => {
|
|
47986
48004
|
if (N.changedTouches.length > 0) {
|
|
47987
48005
|
const T = N.changedTouches[0], D = this.getMousePos(T.clientX, T.clientY);
|
|
47988
|
-
let
|
|
48006
|
+
let O = !1;
|
|
47989
48007
|
if (this.touchPoint !== null) {
|
|
47990
|
-
const R = D.x - this.touchPoint.point.x,
|
|
47991
|
-
Math.abs(R) > this.swipeDistance &&
|
|
48008
|
+
const R = D.x - this.touchPoint.point.x, L = Math.abs(D.y - this.touchPoint.point.y);
|
|
48009
|
+
Math.abs(R) > this.swipeDistance && L < 2 * this.swipeDistance && Date.now() - this.touchPoint.time < this.swipeTimeout && (R > 0 ? this.app.flipPrev(this.touchPoint.point.y < this.app.getRender().getRect().height / 2 ? "top" : "bottom") : this.app.flipNext(this.touchPoint.point.y < this.app.getRender().getRect().height / 2 ? "top" : "bottom"), O = !0), this.touchPoint = null;
|
|
47992
48010
|
}
|
|
47993
|
-
this.app.userStop(D,
|
|
48011
|
+
this.app.userStop(D, O);
|
|
47994
48012
|
}
|
|
47995
48013
|
}, this.parentElement = p, p.classList.add("stf__parent"), p.insertAdjacentHTML("afterbegin", '<div class="stf__wrapper"></div>'), this.wrapper = p.querySelector(".stf__wrapper"), this.app = v;
|
|
47996
48014
|
const k = this.app.getSettings().usePortrait ? 1 : 2;
|
|
@@ -48105,12 +48123,12 @@ var Tc = { exports: {} };
|
|
|
48105
48123
|
}
|
|
48106
48124
|
drawInnerShadow() {
|
|
48107
48125
|
const p = this.getRect(), v = 3 * this.shadow.width / 4, w = this.getDirection() === 0 ? v : 0, k = this.getDirection() === 0 ? "to left" : "to right", N = this.convertToGlobal(this.shadow.pos), T = this.shadow.angle + 3 * Math.PI / 2, D = [this.pageRect.topLeft, this.pageRect.topRight, this.pageRect.bottomRight, this.pageRect.bottomLeft];
|
|
48108
|
-
let
|
|
48109
|
-
for (const
|
|
48110
|
-
let P = this.getDirection() === 1 ? { x: -
|
|
48111
|
-
P = c.GetRotatedPoint(P, { x: w, y: 100 }, T),
|
|
48126
|
+
let O = "polygon( ";
|
|
48127
|
+
for (const L of D) {
|
|
48128
|
+
let P = this.getDirection() === 1 ? { x: -L.x + this.shadow.pos.x, y: L.y - this.shadow.pos.y } : { x: L.x - this.shadow.pos.x, y: L.y - this.shadow.pos.y };
|
|
48129
|
+
P = c.GetRotatedPoint(P, { x: w, y: 100 }, T), O += P.x + "px " + P.y + "px, ";
|
|
48112
48130
|
}
|
|
48113
|
-
|
|
48131
|
+
O = O.slice(0, -2), O += ")";
|
|
48114
48132
|
const R = `
|
|
48115
48133
|
display: block;
|
|
48116
48134
|
z-index: ${(this.getSettings().startZIndex + 10).toString(10)};
|
|
@@ -48123,8 +48141,8 @@ var Tc = { exports: {} };
|
|
|
48123
48141
|
rgba(0, 0, 0, 0) 100%);
|
|
48124
48142
|
transform-origin: ${w}px 100px;
|
|
48125
48143
|
transform: translate3d(${N.x - w}px, ${N.y - 100}px, 0) rotate(${T}rad);
|
|
48126
|
-
clip-path: ${
|
|
48127
|
-
-webkit-clip-path: ${
|
|
48144
|
+
clip-path: ${O};
|
|
48145
|
+
-webkit-clip-path: ${O};
|
|
48128
48146
|
`;
|
|
48129
48147
|
this.innerShadow.style.cssText = R;
|
|
48130
48148
|
}
|
|
@@ -48132,11 +48150,11 @@ var Tc = { exports: {} };
|
|
|
48132
48150
|
const p = this.getRect(), v = this.convertToGlobal({ x: this.shadow.pos.x, y: this.shadow.pos.y }), w = this.shadow.angle + 3 * Math.PI / 2, k = this.getDirection() === 1 ? this.shadow.width : 0, N = this.getDirection() === 0 ? "to right" : "to left", T = [{ x: 0, y: 0 }, { x: p.pageWidth, y: 0 }, { x: p.pageWidth, y: p.height }, { x: 0, y: p.height }];
|
|
48133
48151
|
let D = "polygon( ";
|
|
48134
48152
|
for (const R of T) if (R !== null) {
|
|
48135
|
-
let
|
|
48136
|
-
|
|
48153
|
+
let L = this.getDirection() === 1 ? { x: -R.x + this.shadow.pos.x, y: R.y - this.shadow.pos.y } : { x: R.x - this.shadow.pos.x, y: R.y - this.shadow.pos.y };
|
|
48154
|
+
L = c.GetRotatedPoint(L, { x: k, y: 100 }, w), D += L.x + "px " + L.y + "px, ";
|
|
48137
48155
|
}
|
|
48138
48156
|
D = D.slice(0, -2), D += ")";
|
|
48139
|
-
const
|
|
48157
|
+
const O = `
|
|
48140
48158
|
display: block;
|
|
48141
48159
|
z-index: ${(this.getSettings().startZIndex + 10).toString(10)};
|
|
48142
48160
|
width: ${this.shadow.width}px;
|
|
@@ -48147,7 +48165,7 @@ var Tc = { exports: {} };
|
|
|
48147
48165
|
clip-path: ${D};
|
|
48148
48166
|
-webkit-clip-path: ${D};
|
|
48149
48167
|
`;
|
|
48150
|
-
this.outerShadow.style.cssText =
|
|
48168
|
+
this.outerShadow.style.cssText = O;
|
|
48151
48169
|
}
|
|
48152
48170
|
drawLeftPage() {
|
|
48153
48171
|
this.orientation !== "portrait" && this.leftPage !== null && (this.direction === 1 && this.flippingPage !== null && this.flippingPage.getDrawingDensity() === "hard" ? (this.leftPage.getElement().style.zIndex = (this.getSettings().startZIndex + 5).toString(10), this.leftPage.setHardDrawingAngle(180 + this.flippingPage.getHardAngle()), this.leftPage.draw(this.flippingPage.getDrawingDensity())) : this.leftPage.simpleDraw(0));
|
|
@@ -48449,14 +48467,14 @@ function JA({
|
|
|
48449
48467
|
er(() => {
|
|
48450
48468
|
if (!t || n < 10 || r < 10) return;
|
|
48451
48469
|
v.current = !1, m(!0), f(null), c(0), h({}), E(0), C(!1), x(0);
|
|
48452
|
-
let
|
|
48470
|
+
let O = null;
|
|
48453
48471
|
return (async () => {
|
|
48454
|
-
var
|
|
48472
|
+
var L, P, z, V;
|
|
48455
48473
|
try {
|
|
48456
|
-
const { default: W } = await import("./index-
|
|
48457
|
-
|
|
48474
|
+
const { default: W } = await import("./index-DYnTJrkh.js");
|
|
48475
|
+
O = W(t, { openAs: "epub" }), await O.ready;
|
|
48458
48476
|
const $ = [];
|
|
48459
|
-
if (
|
|
48477
|
+
if (O.spine.each((se) => $.push(se)), $.length === 0) {
|
|
48460
48478
|
f("No readable sections found in EPUB."), m(!1);
|
|
48461
48479
|
return;
|
|
48462
48480
|
}
|
|
@@ -48471,7 +48489,7 @@ function JA({
|
|
|
48471
48489
|
pointerEvents: "none",
|
|
48472
48490
|
zIndex: -1
|
|
48473
48491
|
}), document.body.appendChild(F);
|
|
48474
|
-
const H =
|
|
48492
|
+
const H = O.renderTo(F, {
|
|
48475
48493
|
width: n,
|
|
48476
48494
|
height: r,
|
|
48477
48495
|
spread: "none",
|
|
@@ -48497,7 +48515,7 @@ function JA({
|
|
|
48497
48515
|
continue;
|
|
48498
48516
|
}
|
|
48499
48517
|
await ee, await new Promise((ye) => setTimeout(ye, 80));
|
|
48500
|
-
const oe = F.querySelector("iframe"), re = (
|
|
48518
|
+
const oe = F.querySelector("iframe"), re = (L = oe == null ? void 0 : oe.contentDocument) == null ? void 0 : L.body, ae = Math.max(
|
|
48501
48519
|
r,
|
|
48502
48520
|
(re == null ? void 0 : re.scrollHeight) ?? r,
|
|
48503
48521
|
((z = (P = oe == null ? void 0 : oe.contentDocument) == null ? void 0 : P.documentElement) == null ? void 0 : z.scrollHeight) ?? 0
|
|
@@ -48540,9 +48558,9 @@ function JA({
|
|
|
48540
48558
|
} catch (W) {
|
|
48541
48559
|
v.current || (console.error("EPUB render error:", W), f("Failed to render EPUB pages."), m(!1));
|
|
48542
48560
|
} finally {
|
|
48543
|
-
if (C(!1),
|
|
48561
|
+
if (C(!1), O)
|
|
48544
48562
|
try {
|
|
48545
|
-
|
|
48563
|
+
O.destroy();
|
|
48546
48564
|
} catch {
|
|
48547
48565
|
}
|
|
48548
48566
|
}
|
|
@@ -48552,19 +48570,19 @@ function JA({
|
|
|
48552
48570
|
}, [t, n, r]);
|
|
48553
48571
|
const w = at(
|
|
48554
48572
|
() => {
|
|
48555
|
-
var
|
|
48556
|
-
return (R = (
|
|
48573
|
+
var O, R;
|
|
48574
|
+
return (R = (O = p.current) == null ? void 0 : O.pageFlip()) == null ? void 0 : R.flipPrev("top");
|
|
48557
48575
|
},
|
|
48558
48576
|
[]
|
|
48559
48577
|
), k = at(() => {
|
|
48560
|
-
var
|
|
48561
|
-
g < l - 2 && ((R = (
|
|
48562
|
-
}, [g, l]), N = at((
|
|
48578
|
+
var O, R;
|
|
48579
|
+
g < l - 2 && ((R = (O = p.current) == null ? void 0 : O.pageFlip()) == null || R.flipNext("top"));
|
|
48580
|
+
}, [g, l]), N = at((O) => x(O.data), []);
|
|
48563
48581
|
if (er(() => {
|
|
48564
|
-
const
|
|
48582
|
+
const O = (R) => {
|
|
48565
48583
|
R.key === "ArrowRight" && k(), R.key === "ArrowLeft" && w();
|
|
48566
48584
|
};
|
|
48567
|
-
return window.addEventListener("keydown",
|
|
48585
|
+
return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
|
|
48568
48586
|
}, [k, w]), u) return /* @__PURE__ */ _(yu, { label: "Opening book…" });
|
|
48569
48587
|
if (d)
|
|
48570
48588
|
return /* @__PURE__ */ _(wu, { message: d, downloadUrl: i ? s : null });
|
|
@@ -48639,7 +48657,7 @@ function JA({
|
|
|
48639
48657
|
swipeDistance: 30,
|
|
48640
48658
|
showPageCorners: !0,
|
|
48641
48659
|
style: { background: "transparent" },
|
|
48642
|
-
children: Array.from({ length: l }, (
|
|
48660
|
+
children: Array.from({ length: l }, (O, R) => /* @__PURE__ */ _(
|
|
48643
48661
|
qv,
|
|
48644
48662
|
{
|
|
48645
48663
|
dataUrl: a[R] ?? null,
|
|
@@ -48781,20 +48799,20 @@ function eD({
|
|
|
48781
48799
|
), T = at(() => {
|
|
48782
48800
|
var P, z;
|
|
48783
48801
|
m < h - 2 && ((z = (P = x.current) == null ? void 0 : P.pageFlip()) == null || z.flipNext("top"));
|
|
48784
|
-
}, [m, h]), D = at((P) => b(P.data), []),
|
|
48802
|
+
}, [m, h]), D = at((P) => b(P.data), []), O = cs(
|
|
48785
48803
|
() => Array.from({ length: h }, (P, z) => z),
|
|
48786
48804
|
[h]
|
|
48787
48805
|
);
|
|
48788
48806
|
if (E) return /* @__PURE__ */ _(yu, { label: "Loading PDF…" });
|
|
48789
48807
|
if (f)
|
|
48790
48808
|
return /* @__PURE__ */ _(wu, { message: f, downloadUrl: i ? s : null });
|
|
48791
|
-
const R = m + 1,
|
|
48809
|
+
const R = m + 1, L = Math.min(m + 2, h);
|
|
48792
48810
|
return /* @__PURE__ */ X("div", { style: { width: "100%", display: "flex", flexDirection: "column" }, children: [
|
|
48793
48811
|
/* @__PURE__ */ _(
|
|
48794
48812
|
$v,
|
|
48795
48813
|
{
|
|
48796
48814
|
title: o,
|
|
48797
|
-
pageLabel: `${R}–${
|
|
48815
|
+
pageLabel: `${R}–${L} of ${h}`,
|
|
48798
48816
|
canDownload: i,
|
|
48799
48817
|
downloadUrl: s
|
|
48800
48818
|
}
|
|
@@ -48856,7 +48874,7 @@ function eD({
|
|
|
48856
48874
|
swipeDistance: 30,
|
|
48857
48875
|
showPageCorners: !0,
|
|
48858
48876
|
style: { background: "transparent" },
|
|
48859
|
-
children:
|
|
48877
|
+
children: O.map((P) => /* @__PURE__ */ _(
|
|
48860
48878
|
Yv,
|
|
48861
48879
|
{
|
|
48862
48880
|
dataUrl: C[P + 1],
|
|
@@ -48920,7 +48938,7 @@ function zD({
|
|
|
48920
48938
|
let D = !1;
|
|
48921
48939
|
return (h ? () => h(t) : () => tD(t, u))().then((R) => {
|
|
48922
48940
|
if (D) return;
|
|
48923
|
-
const
|
|
48941
|
+
const L = R instanceof Blob ? R : new Blob([R], { type: N }), P = URL.createObjectURL(L);
|
|
48924
48942
|
v.current = P, g(P), d("ready");
|
|
48925
48943
|
}).catch((R) => {
|
|
48926
48944
|
D || (console.error("BookViewer fetch error:", R), p((R == null ? void 0 : R.message) ?? "Failed to load file."), d("error"), w.current = null);
|
|
@@ -49125,4 +49143,4 @@ export {
|
|
|
49125
49143
|
Uw as y,
|
|
49126
49144
|
lm as z
|
|
49127
49145
|
};
|
|
49128
|
-
//# sourceMappingURL=index-
|
|
49146
|
+
//# sourceMappingURL=index-C27owgN3.js.map
|