@orangelogic/design-system 2.204.0 → 2.205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ import { default as AJt } from "./avatar.js";
|
|
|
9
9
|
import wx from "./badge.js";
|
|
10
10
|
import { default as DJt } from "./breadcrumb.js";
|
|
11
11
|
import { default as MJt } from "./breadcrumb-item.js";
|
|
12
|
-
import { C as Ji, B as
|
|
12
|
+
import { C as Ji, B as Ml, a as Sc } from "../chunks/button.BnkkUqiI.js";
|
|
13
13
|
import BQ from "./button-group.js";
|
|
14
14
|
import om from "./card.js";
|
|
15
15
|
import Uh from "./checkbox.js";
|
|
@@ -47,8 +47,8 @@ import { C as eo, I as YS } from "../chunks/input.33UmFGqR.js";
|
|
|
47
47
|
import { default as ZJt } from "./input-group.js";
|
|
48
48
|
import Lp from "./line-clamp.js";
|
|
49
49
|
import { C as o3, e as ree, x as oee, s as aee, p as oM, a as see } from "../chunks/markdown.DOHru2Rz.js";
|
|
50
|
-
import
|
|
51
|
-
import
|
|
50
|
+
import hl from "./menu.js";
|
|
51
|
+
import gl from "./menu-item.js";
|
|
52
52
|
import o6 from "./menu-label.js";
|
|
53
53
|
import RF from "./menu-section.js";
|
|
54
54
|
import lee from "./mutation-observer.js";
|
|
@@ -112,7 +112,7 @@ import { o as fi } from "../chunks/style-map.llVFPd__.js";
|
|
|
112
112
|
import { readLocalStorageValue as h9, writeLocalStorageValue as See, DateRangePresets as hM, getTypefaceOptionValue as Xm, getFontFamilyOptionValue as Jm, quoteFontFamily as qF, isModKey as WF, CortexPopupController as Tee, isoWeekNumber as Eee, isFormInteracted as GF, unquoteFontFamily as Aee, openLink as KF, shareAsset as YF, downloadAsset as XF, openFolderOverview as JF, openAssetOverview as ZF, omit as Oee } from "../utils.js";
|
|
113
113
|
import { DragScroll as WZt, HistoryManager as GZt, KeyboardKey as KZt, PRECISION as YZt, extractFrames as XZt, findFrameByColAndRow as JZt, getBrowserFontVariants as ZZt, getFormControls as QZt, getInterval as eQt, insertFrameToCache as tQt, isFontFamilyAvailable as nQt, parseJsonString as iQt, parseListString as rQt, pick as oQt, serialize as aQt, sortTypefaceVariants as sQt, testFontAvailability as lQt } from "../utils.js";
|
|
114
114
|
import { d as ec } from "../chunks/debounce.DaHuiSGU.js";
|
|
115
|
-
import { t as JS, c as
|
|
115
|
+
import { t as JS, c as el, d as Dee, i as d2, G as Kg, j as hp, h as Iee, s as gM, T as u6, k as vn, l as QF, u as Mee, m as Pee, n as ez, o as mM } from "../chunks/string.CfI2ejyR.js";
|
|
116
116
|
import { b as dQt, e as uQt, f as pQt, y as hQt, g as gQt, p as mQt, z as fQt, x as vQt, a as yQt, w as bQt, r as wQt, q as xQt, v as kQt } from "../chunks/string.CfI2ejyR.js";
|
|
117
117
|
import { c as pn } from "../chunks/repeat.CFjcER6_.js";
|
|
118
118
|
import { a as Df, F as Bh, b as If, c as tz, M as p6, d as Ew, e as Aw, f as Nee, g as nz, h as iz, i as h6, j as g6, C as Lee, k as zy, l as fM, m as vM, n as yM, o as bM, p as Ree, q as Bee, r as wM, u as u2, s as g9, t as m9, v as f9 } from "../chunks/asset-link-format.C6BPob3e.js";
|
|
@@ -122,7 +122,7 @@ import { c as Or, d as $ee, H as An, e as Oa, f as ys, a as Fee, b as rr } from
|
|
|
122
122
|
import { s as Cx, F as Wd, C as m6, a as ZS } from "../chunks/folder-select.CIqVGGFl.js";
|
|
123
123
|
import { a as Fo, E as Yn, b as Jv, O as Su, T as fp, G as xM } from "../chunks/index.Cpamj0jB.js";
|
|
124
124
|
import { C as EQt } from "../chunks/index.Cpamj0jB.js";
|
|
125
|
-
import { A as
|
|
125
|
+
import { A as Bl, D as Ek, e as rz, P as QS, B as lt, E as Pu, g as vp, S as Mf, r as Ak, h as Ro, i as oz, j as zee, T as kM, a as az, b as jee, c as Hee, f as u3 } from "../chunks/transformation.Bjs3TBPd.js";
|
|
126
126
|
import { o as OQt, l as DQt, p as IQt, k as MQt, m as PQt, d as NQt, n as LQt, q as RQt } from "../chunks/transformation.Bjs3TBPd.js";
|
|
127
127
|
import { t as Eu, b as Vee, c as _M, g as CM } from "../chunks/toast.GT3J-T2_.js";
|
|
128
128
|
import { j as $Qt, f as FQt, e as zQt, i as jQt, a as HQt, h as VQt, m as UQt, d as qQt, r as WQt } from "../chunks/toast.GT3J-T2_.js";
|
|
@@ -354,8 +354,8 @@ Qr.dependencies = {
|
|
|
354
354
|
"cx-dropdown": _s,
|
|
355
355
|
"cx-icon": Hr,
|
|
356
356
|
"cx-icon-button": Cr,
|
|
357
|
-
"cx-menu":
|
|
358
|
-
"cx-menu-item":
|
|
357
|
+
"cx-menu": hl,
|
|
358
|
+
"cx-menu-item": gl,
|
|
359
359
|
"cx-switch": pb,
|
|
360
360
|
"cx-tooltip": Eo,
|
|
361
361
|
"cx-typography": qi
|
|
@@ -4621,8 +4621,8 @@ Pf.styles = [mn];
|
|
|
4621
4621
|
Pf.dependencies = {
|
|
4622
4622
|
"cx-button": Ji,
|
|
4623
4623
|
"cx-dropdown": _s,
|
|
4624
|
-
"cx-menu":
|
|
4625
|
-
"cx-menu-item":
|
|
4624
|
+
"cx-menu": hl,
|
|
4625
|
+
"cx-menu-item": gl,
|
|
4626
4626
|
"cx-tooltip": Eo
|
|
4627
4627
|
};
|
|
4628
4628
|
S6([
|
|
@@ -4669,8 +4669,8 @@ Nf.styles = [mn];
|
|
|
4669
4669
|
Nf.dependencies = {
|
|
4670
4670
|
"cx-dropdown": _s,
|
|
4671
4671
|
"cx-icon-button": Cr,
|
|
4672
|
-
"cx-menu":
|
|
4673
|
-
"cx-menu-item":
|
|
4672
|
+
"cx-menu": hl,
|
|
4673
|
+
"cx-menu-item": gl,
|
|
4674
4674
|
"cx-space": Ui,
|
|
4675
4675
|
"cx-tooltip": Eo
|
|
4676
4676
|
};
|
|
@@ -5141,7 +5141,7 @@ let _r = class extends hn {
|
|
|
5141
5141
|
securityByPassToken: this.siteBuilderToken || void 0,
|
|
5142
5142
|
token: this.token || void 0
|
|
5143
5143
|
});
|
|
5144
|
-
this.header =
|
|
5144
|
+
this.header = el(n[this.headerSourceField]), this.details = el(n[this.detailsSourceField]), this.additionalContent = this.additionalFields.map(
|
|
5145
5145
|
(e) => n[e] ?? ""
|
|
5146
5146
|
), this.emit("cx-asset-data-display-fetch-success", {
|
|
5147
5147
|
detail: {
|
|
@@ -5315,7 +5315,7 @@ var zne = Object.defineProperty, jne = Object.getOwnPropertyDescriptor, ss = (n,
|
|
|
5315
5315
|
};
|
|
5316
5316
|
let ao = class extends hn {
|
|
5317
5317
|
constructor() {
|
|
5318
|
-
super(...arguments), this.localize = new Dn(this), this.value = "", this.name = "", this.type = [
|
|
5318
|
+
super(...arguments), this.localize = new Dn(this), this.value = "", this.name = "", this.type = [Bl.Image], this.multiple = !1, this.accepts = [], this.required = !1, this.disabled = !1, this.restrict = !1, this.noRepresentativeFor = [Bl.Image], this.onRequestAsset = void 0, this.recordId = null, this.isSiteBuilder = !1, this.previewSrc = "", this.assetTitle = "", this.apiGetAssets = Df;
|
|
5319
5319
|
}
|
|
5320
5320
|
async handleRequestAssetClick() {
|
|
5321
5321
|
if (this.onRequestAsset)
|
|
@@ -5394,7 +5394,7 @@ let ao = class extends hn {
|
|
|
5394
5394
|
}
|
|
5395
5395
|
/** True when the picker accepts this asset type. `all` accepts every type. */
|
|
5396
5396
|
acceptsType(n) {
|
|
5397
|
-
return this.type.includes(
|
|
5397
|
+
return this.type.includes(Bl.All) || this.type.includes(n);
|
|
5398
5398
|
}
|
|
5399
5399
|
/**
|
|
5400
5400
|
* Resolves the URL a consumer should render as the selected asset's preview.
|
|
@@ -5411,11 +5411,11 @@ let ao = class extends hn {
|
|
|
5411
5411
|
return n.type && this.noRepresentativeFor.includes(n.type) ? n.src : n.representative ?? n.src;
|
|
5412
5412
|
}
|
|
5413
5413
|
renderAssetPreview() {
|
|
5414
|
-
if ((this.previewSrc || this.value) && this.acceptsType(
|
|
5414
|
+
if ((this.previewSrc || this.value) && this.acceptsType(Bl.Image))
|
|
5415
5415
|
return I`<cx-image part="image" class="asset-picker__image" src=${this.previewSrc || this.value} alt=${this.assetTitle} width="200px" object-fit=${Fo.Cover} no-crossorigin retry-on-error></cx-image>`;
|
|
5416
|
-
if (this.assetTitle && (this.acceptsType(
|
|
5416
|
+
if (this.assetTitle && (this.acceptsType(Bl.Audio) || this.acceptsType(Bl.Video)))
|
|
5417
5417
|
return I`<cx-typography variant="body-2">${d2(this.assetTitle, 30, 11, 11)}</cx-typography>`;
|
|
5418
|
-
if (this.assetTitle && this.acceptsType(
|
|
5418
|
+
if (this.assetTitle && this.acceptsType(Bl.Other)) {
|
|
5419
5419
|
const n = this.assetTitle.split(",");
|
|
5420
5420
|
return I`<cx-typography variant="body-2">${d2(n[0], 30, 11, 11)}
|
|
5421
5421
|
${We(
|
|
@@ -5426,7 +5426,7 @@ let ao = class extends hn {
|
|
|
5426
5426
|
return null;
|
|
5427
5427
|
}
|
|
5428
5428
|
render() {
|
|
5429
|
-
return I`<cx-space part="base" class="asset-picker" spacing="2x-small" direction="horizontal" align-items=${this.acceptsType(
|
|
5429
|
+
return I`<cx-space part="base" class="asset-picker" spacing="2x-small" direction="horizontal" align-items=${this.acceptsType(Bl.Image) ? "flex-start" : "center"}>${this.renderAssetPreview()}
|
|
5430
5430
|
${We(
|
|
5431
5431
|
!this.disabled,
|
|
5432
5432
|
() => I`<div part="button-container" class="asset-picker__button-container"><cx-input class="asset-picker__input" aria-label=${this.localize.term("choose")} name=${this.name} value=${this.value} ?required=${this.required} .form=${this.closest("form")}></cx-input><div class="asset-picker__trigger-wrapper"><slot name="trigger" @click=${this.handleRequestAssetClick}><cx-button part="button" class="asset-picker__button">${this.localize.term("choose")}</cx-button></slot></div></div>${We(
|
|
@@ -5839,7 +5839,7 @@ var oie = Object.defineProperty, aie = Object.getOwnPropertyDescriptor, lu = (n,
|
|
|
5839
5839
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
5840
5840
|
return i && r && oie(e, t, r), r;
|
|
5841
5841
|
};
|
|
5842
|
-
let
|
|
5842
|
+
let sl = class extends hn {
|
|
5843
5843
|
constructor() {
|
|
5844
5844
|
super(...arguments), this.localize = new Dn(this), this.value = {}, this.name = "", this.required = !1, this.assetIds = [], this.prescribedDocTypes = [], this.disabled = !1, this.onRequestDownloadFormat = void 0, this.formatLabelMap = {}, this.apiGetAllFormatCodes = Nee;
|
|
5845
5845
|
}
|
|
@@ -5919,8 +5919,8 @@ let al = class extends hn {
|
|
|
5919
5919
|
)}</cx-space>`;
|
|
5920
5920
|
}
|
|
5921
5921
|
};
|
|
5922
|
-
|
|
5923
|
-
|
|
5922
|
+
sl.styles = [mn, rie];
|
|
5923
|
+
sl.dependencies = {
|
|
5924
5924
|
"cx-button": Ji,
|
|
5925
5925
|
"cx-icon-button": Cr,
|
|
5926
5926
|
"cx-input": eo,
|
|
@@ -5929,10 +5929,10 @@ al.dependencies = {
|
|
|
5929
5929
|
};
|
|
5930
5930
|
lu([
|
|
5931
5931
|
Tt(".download-format-picker__button")
|
|
5932
|
-
],
|
|
5932
|
+
], sl.prototype, "buttonEl", 2);
|
|
5933
5933
|
lu([
|
|
5934
5934
|
Tt(".download-format-picker__input")
|
|
5935
|
-
],
|
|
5935
|
+
], sl.prototype, "inputEl", 2);
|
|
5936
5936
|
lu([
|
|
5937
5937
|
O({
|
|
5938
5938
|
converter: {
|
|
@@ -5948,13 +5948,13 @@ lu([
|
|
|
5948
5948
|
reflect: !0,
|
|
5949
5949
|
type: Object
|
|
5950
5950
|
})
|
|
5951
|
-
],
|
|
5951
|
+
], sl.prototype, "value", 2);
|
|
5952
5952
|
lu([
|
|
5953
5953
|
O({ reflect: !0, type: String })
|
|
5954
|
-
],
|
|
5954
|
+
], sl.prototype, "name", 2);
|
|
5955
5955
|
lu([
|
|
5956
5956
|
O({ reflect: !0, type: Boolean })
|
|
5957
|
-
],
|
|
5957
|
+
], sl.prototype, "required", 2);
|
|
5958
5958
|
lu([
|
|
5959
5959
|
O({
|
|
5960
5960
|
attribute: "asset-ids",
|
|
@@ -5965,7 +5965,7 @@ lu([
|
|
|
5965
5965
|
reflect: !0,
|
|
5966
5966
|
type: Array
|
|
5967
5967
|
})
|
|
5968
|
-
],
|
|
5968
|
+
], sl.prototype, "assetIds", 2);
|
|
5969
5969
|
lu([
|
|
5970
5970
|
O({
|
|
5971
5971
|
attribute: "prescribed-doc-types",
|
|
@@ -5976,22 +5976,22 @@ lu([
|
|
|
5976
5976
|
reflect: !0,
|
|
5977
5977
|
type: Array
|
|
5978
5978
|
})
|
|
5979
|
-
],
|
|
5979
|
+
], sl.prototype, "prescribedDocTypes", 2);
|
|
5980
5980
|
lu([
|
|
5981
5981
|
O({ attribute: "disabled", reflect: !0, type: Boolean })
|
|
5982
|
-
],
|
|
5982
|
+
], sl.prototype, "disabled", 2);
|
|
5983
5983
|
lu([
|
|
5984
5984
|
O({ attribute: "on-request-download-format", type: Function })
|
|
5985
|
-
],
|
|
5985
|
+
], sl.prototype, "onRequestDownloadFormat", 2);
|
|
5986
5986
|
lu([
|
|
5987
5987
|
ge()
|
|
5988
|
-
],
|
|
5988
|
+
], sl.prototype, "formatLabelMap", 2);
|
|
5989
5989
|
lu([
|
|
5990
5990
|
Qe("value")
|
|
5991
|
-
],
|
|
5992
|
-
|
|
5991
|
+
], sl.prototype, "handleValueChange", 1);
|
|
5992
|
+
sl = lu([
|
|
5993
5993
|
nn("cx-download-format-picker")
|
|
5994
|
-
],
|
|
5994
|
+
], sl);
|
|
5995
5995
|
const sie = un`:host{display:inline-block}.estimated-reading-time{font-style:var(--cx-estimated-reading-time-font-style,italic);font-weight:var(--cx-estimated-reading-time-font-weight,var(--cx-color-font-weight-regular));font-size:var(--cx-estimated-reading-time-font-size,var(--cx-font-size-x-small));color:var(--cx-estimated-reading-time-font-color,var(--cx-color-neutral-600))}`;
|
|
5996
5996
|
var lie = Object.defineProperty, cie = Object.getOwnPropertyDescriptor, Ax = (n, e, t, i) => {
|
|
5997
5997
|
for (var r = i > 1 ? void 0 : i ? cie(e, t) : e, o = n.length - 1, a; o >= 0; o--)
|
|
@@ -6604,7 +6604,7 @@ var xie = Object.defineProperty, kie = Object.getOwnPropertyDescriptor, wd = (n,
|
|
|
6604
6604
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
6605
6605
|
return i && r && xie(e, t, r), r;
|
|
6606
6606
|
};
|
|
6607
|
-
let
|
|
6607
|
+
let ll = class extends hn {
|
|
6608
6608
|
constructor() {
|
|
6609
6609
|
super(...arguments), this.field = "", this.displayName = "", this.fromDate = "", this.toDate = "", this.fromTime = df, this.toTime = v9, this.showTime = !1, this.showPreset = !1, this.preset = "", this.min = "", this.max = "", this.displayFormat = h3.DdMmYyyy;
|
|
6610
6610
|
}
|
|
@@ -6635,50 +6635,50 @@ let sl = class extends hn {
|
|
|
6635
6635
|
return I`<cx-details open class="facet-date-range"><span slot="summary" class="facet-date-range__title">${this.displayName}</span><cx-input-date-range-picker class="facet-date-range__control" display-format=${this.displayFormat} from-date=${this.fromDate} to-date=${this.toDate} from-time=${this.fromTime} to-time=${this.toTime} preset=${this.preset} min=${this.min} max=${this.max} ?show-time=${this.showTime} ?show-preset=${this.showPreset} @cx-change=${this.handleChange}></cx-input-date-range-picker></cx-details>`;
|
|
6636
6636
|
}
|
|
6637
6637
|
};
|
|
6638
|
-
|
|
6639
|
-
|
|
6638
|
+
ll.styles = [mn, wie];
|
|
6639
|
+
ll.dependencies = {
|
|
6640
6640
|
"cx-details": kx,
|
|
6641
6641
|
"cx-input-date-range-picker": Yr
|
|
6642
6642
|
};
|
|
6643
6643
|
wd([
|
|
6644
6644
|
O({ reflect: !0, type: String })
|
|
6645
|
-
],
|
|
6645
|
+
], ll.prototype, "field", 2);
|
|
6646
6646
|
wd([
|
|
6647
6647
|
O({ attribute: "display-name", type: String })
|
|
6648
|
-
],
|
|
6648
|
+
], ll.prototype, "displayName", 2);
|
|
6649
6649
|
wd([
|
|
6650
6650
|
O({ attribute: "from-date", type: String })
|
|
6651
|
-
],
|
|
6651
|
+
], ll.prototype, "fromDate", 2);
|
|
6652
6652
|
wd([
|
|
6653
6653
|
O({ attribute: "to-date", type: String })
|
|
6654
|
-
],
|
|
6654
|
+
], ll.prototype, "toDate", 2);
|
|
6655
6655
|
wd([
|
|
6656
6656
|
O({ attribute: "from-time", type: String })
|
|
6657
|
-
],
|
|
6657
|
+
], ll.prototype, "fromTime", 2);
|
|
6658
6658
|
wd([
|
|
6659
6659
|
O({ attribute: "to-time", type: String })
|
|
6660
|
-
],
|
|
6660
|
+
], ll.prototype, "toTime", 2);
|
|
6661
6661
|
wd([
|
|
6662
6662
|
O({ attribute: "show-time", reflect: !0, type: Boolean })
|
|
6663
|
-
],
|
|
6663
|
+
], ll.prototype, "showTime", 2);
|
|
6664
6664
|
wd([
|
|
6665
6665
|
O({ attribute: "show-preset", reflect: !0, type: Boolean })
|
|
6666
|
-
],
|
|
6666
|
+
], ll.prototype, "showPreset", 2);
|
|
6667
6667
|
wd([
|
|
6668
6668
|
O({ type: String })
|
|
6669
|
-
],
|
|
6669
|
+
], ll.prototype, "preset", 2);
|
|
6670
6670
|
wd([
|
|
6671
6671
|
O({ type: String })
|
|
6672
|
-
],
|
|
6672
|
+
], ll.prototype, "min", 2);
|
|
6673
6673
|
wd([
|
|
6674
6674
|
O({ type: String })
|
|
6675
|
-
],
|
|
6675
|
+
], ll.prototype, "max", 2);
|
|
6676
6676
|
wd([
|
|
6677
6677
|
O({ attribute: "display-format", type: String })
|
|
6678
|
-
],
|
|
6679
|
-
|
|
6678
|
+
], ll.prototype, "displayFormat", 2);
|
|
6679
|
+
ll = wd([
|
|
6680
6680
|
nn("cx-facet-date-range")
|
|
6681
|
-
],
|
|
6681
|
+
], ll);
|
|
6682
6682
|
var $z = /* @__PURE__ */ ((n) => (n.Text = "text", n))($z || {});
|
|
6683
6683
|
const _ie = un`.facet{--content-padding:var(--cx-spacing-x-small);--expand-icon-size:24px}.facet::part(summary){padding-right:var(--cx-spacing-3x-small);flex:none}.facet::part(base){border-top-width:0;border-left-width:0;border-right-width:0}.facet__title{font-weight:var(--cx-font-weight-medium);color:var(--cx-color-neutral-900)}:host([loading]) cx-tree{pointer-events:none;opacity:.5}cx-tree-item::part(label){flex:1;min-width:0}.facet__item-label{justify-content:space-between;align-items:center;gap:var(--cx-spacing-x-small);width:100%;display:flex}.facet__item-label__count{font-size:var(--cx-font-size-x-small);color:var(--cx-color-neutral-600);white-space:nowrap;flex-shrink:0}.facet__empty-message{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-x-small);padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-large)}`;
|
|
6684
6684
|
var Cie = Object.defineProperty, Sie = Object.getOwnPropertyDescriptor, Wu = (n, e, t, i) => {
|
|
@@ -15291,8 +15291,8 @@ Zg.dependencies = {
|
|
|
15291
15291
|
"cx-icon": Hr,
|
|
15292
15292
|
"cx-icon-button": Cr,
|
|
15293
15293
|
"cx-line-clamp": Lp,
|
|
15294
|
-
"cx-menu":
|
|
15295
|
-
"cx-menu-item":
|
|
15294
|
+
"cx-menu": hl,
|
|
15295
|
+
"cx-menu-item": gl,
|
|
15296
15296
|
"cx-spinner": bd,
|
|
15297
15297
|
"cx-tooltip": Eo
|
|
15298
15298
|
};
|
|
@@ -19784,8 +19784,8 @@ Ma.dependencies = {
|
|
|
19784
19784
|
"cx-icon": Hr,
|
|
19785
19785
|
"cx-icon-button": Cr,
|
|
19786
19786
|
"cx-input": eo,
|
|
19787
|
-
"cx-menu":
|
|
19788
|
-
"cx-menu-item":
|
|
19787
|
+
"cx-menu": hl,
|
|
19788
|
+
"cx-menu-item": gl,
|
|
19789
19789
|
"cx-option": ta,
|
|
19790
19790
|
"cx-select": Na,
|
|
19791
19791
|
"cx-space": Ui
|
|
@@ -20299,7 +20299,7 @@ function xH(n, e, t, i) {
|
|
|
20299
20299
|
t -= l, i -= l;
|
|
20300
20300
|
}
|
|
20301
20301
|
}
|
|
20302
|
-
let Mt = class
|
|
20302
|
+
let Mt = class Ol {
|
|
20303
20303
|
/**
|
|
20304
20304
|
@internal
|
|
20305
20305
|
*/
|
|
@@ -20354,7 +20354,7 @@ let Mt = class Al {
|
|
|
20354
20354
|
let t = this.lastChild, i = e.firstChild, r = this.content.slice(), o = 0;
|
|
20355
20355
|
for (t.isText && t.sameMarkup(i) && (r[r.length - 1] = t.withText(t.text + i.text), o = 1); o < e.content.length; o++)
|
|
20356
20356
|
r.push(e.content[o]);
|
|
20357
|
-
return new
|
|
20357
|
+
return new Ol(r, this.size + e.size);
|
|
20358
20358
|
}
|
|
20359
20359
|
/**
|
|
20360
20360
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -20368,13 +20368,13 @@ let Mt = class Al {
|
|
|
20368
20368
|
let s = this.content[o], l = a + s.nodeSize;
|
|
20369
20369
|
l > e && ((a < e || l > t) && (s.isText ? s = s.cut(Math.max(0, e - a), Math.min(s.text.length, t - a)) : s = s.cut(Math.max(0, e - a - 1), Math.min(s.content.size, t - a - 1))), i.push(s), r += s.nodeSize), a = l;
|
|
20370
20370
|
}
|
|
20371
|
-
return new
|
|
20371
|
+
return new Ol(i, r);
|
|
20372
20372
|
}
|
|
20373
20373
|
/**
|
|
20374
20374
|
@internal
|
|
20375
20375
|
*/
|
|
20376
20376
|
cutByIndex(e, t) {
|
|
20377
|
-
return e == t ?
|
|
20377
|
+
return e == t ? Ol.empty : e == 0 && t == this.content.length ? this : new Ol(this.content.slice(e, t));
|
|
20378
20378
|
}
|
|
20379
20379
|
/**
|
|
20380
20380
|
Create a new fragment in which the node at the given index is
|
|
@@ -20385,21 +20385,21 @@ let Mt = class Al {
|
|
|
20385
20385
|
if (i == t)
|
|
20386
20386
|
return this;
|
|
20387
20387
|
let r = this.content.slice(), o = this.size + t.nodeSize - i.nodeSize;
|
|
20388
|
-
return r[e] = t, new
|
|
20388
|
+
return r[e] = t, new Ol(r, o);
|
|
20389
20389
|
}
|
|
20390
20390
|
/**
|
|
20391
20391
|
Create a new fragment by prepending the given node to this
|
|
20392
20392
|
fragment.
|
|
20393
20393
|
*/
|
|
20394
20394
|
addToStart(e) {
|
|
20395
|
-
return new
|
|
20395
|
+
return new Ol([e].concat(this.content), this.size + e.nodeSize);
|
|
20396
20396
|
}
|
|
20397
20397
|
/**
|
|
20398
20398
|
Create a new fragment by appending the given node to this
|
|
20399
20399
|
fragment.
|
|
20400
20400
|
*/
|
|
20401
20401
|
addToEnd(e) {
|
|
20402
|
-
return new
|
|
20402
|
+
return new Ol(this.content.concat(e), this.size + e.nodeSize);
|
|
20403
20403
|
}
|
|
20404
20404
|
/**
|
|
20405
20405
|
Compare this fragment to another one.
|
|
@@ -20514,10 +20514,10 @@ let Mt = class Al {
|
|
|
20514
20514
|
*/
|
|
20515
20515
|
static fromJSON(e, t) {
|
|
20516
20516
|
if (!t)
|
|
20517
|
-
return
|
|
20517
|
+
return Ol.empty;
|
|
20518
20518
|
if (!Array.isArray(t))
|
|
20519
20519
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
20520
|
-
return new
|
|
20520
|
+
return new Ol(t.map(e.nodeFromJSON));
|
|
20521
20521
|
}
|
|
20522
20522
|
/**
|
|
20523
20523
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -20525,13 +20525,13 @@ let Mt = class Al {
|
|
|
20525
20525
|
*/
|
|
20526
20526
|
static fromArray(e) {
|
|
20527
20527
|
if (!e.length)
|
|
20528
|
-
return
|
|
20528
|
+
return Ol.empty;
|
|
20529
20529
|
let t, i = 0;
|
|
20530
20530
|
for (let r = 0; r < e.length; r++) {
|
|
20531
20531
|
let o = e[r];
|
|
20532
20532
|
i += o.nodeSize, r && o.isText && e[r - 1].sameMarkup(o) ? (t || (t = e.slice(0, r)), t[t.length - 1] = o.withText(t[t.length - 1].text + o.text)) : t && t.push(o);
|
|
20533
20533
|
}
|
|
20534
|
-
return new
|
|
20534
|
+
return new Ol(t || e, i);
|
|
20535
20535
|
}
|
|
20536
20536
|
/**
|
|
20537
20537
|
Create a fragment from something that can be interpreted as a
|
|
@@ -20541,13 +20541,13 @@ let Mt = class Al {
|
|
|
20541
20541
|
*/
|
|
20542
20542
|
static from(e) {
|
|
20543
20543
|
if (!e)
|
|
20544
|
-
return
|
|
20545
|
-
if (e instanceof
|
|
20544
|
+
return Ol.empty;
|
|
20545
|
+
if (e instanceof Ol)
|
|
20546
20546
|
return e;
|
|
20547
20547
|
if (Array.isArray(e))
|
|
20548
20548
|
return this.fromArray(e);
|
|
20549
20549
|
if (e.attrs)
|
|
20550
|
-
return new
|
|
20550
|
+
return new Ol([e], e.nodeSize);
|
|
20551
20551
|
throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
20552
20552
|
}
|
|
20553
20553
|
};
|
|
@@ -23216,7 +23216,7 @@ let Zf = class Rk {
|
|
|
23216
23216
|
}
|
|
23217
23217
|
};
|
|
23218
23218
|
const ET = /* @__PURE__ */ Object.create(null);
|
|
23219
|
-
let
|
|
23219
|
+
let ml = class {
|
|
23220
23220
|
/**
|
|
23221
23221
|
Get the step map that represents the changes made by this step,
|
|
23222
23222
|
and which can be used to transform between positions in the old
|
|
@@ -23298,7 +23298,7 @@ function V6(n, e, t) {
|
|
|
23298
23298
|
}
|
|
23299
23299
|
return Mt.fromArray(i);
|
|
23300
23300
|
}
|
|
23301
|
-
let U6 = class b0 extends
|
|
23301
|
+
let U6 = class b0 extends ml {
|
|
23302
23302
|
/**
|
|
23303
23303
|
Create a mark step.
|
|
23304
23304
|
*/
|
|
@@ -23336,8 +23336,8 @@ let U6 = class b0 extends gl {
|
|
|
23336
23336
|
return new b0(t.from, t.to, e.markFromJSON(t.mark));
|
|
23337
23337
|
}
|
|
23338
23338
|
};
|
|
23339
|
-
|
|
23340
|
-
let Rx = class w0 extends
|
|
23339
|
+
ml.jsonID("addMark", U6);
|
|
23340
|
+
let Rx = class w0 extends ml {
|
|
23341
23341
|
/**
|
|
23342
23342
|
Create a mark-removing step.
|
|
23343
23343
|
*/
|
|
@@ -23375,8 +23375,8 @@ let Rx = class w0 extends gl {
|
|
|
23375
23375
|
return new w0(t.from, t.to, e.markFromJSON(t.mark));
|
|
23376
23376
|
}
|
|
23377
23377
|
};
|
|
23378
|
-
|
|
23379
|
-
let q6 = class x0 extends
|
|
23378
|
+
ml.jsonID("removeMark", Rx);
|
|
23379
|
+
let q6 = class x0 extends ml {
|
|
23380
23380
|
/**
|
|
23381
23381
|
Create a node mark step.
|
|
23382
23382
|
*/
|
|
@@ -23419,8 +23419,8 @@ let q6 = class x0 extends gl {
|
|
|
23419
23419
|
return new x0(t.pos, e.markFromJSON(t.mark));
|
|
23420
23420
|
}
|
|
23421
23421
|
};
|
|
23422
|
-
|
|
23423
|
-
let W6 = class R9 extends
|
|
23422
|
+
ml.jsonID("addNodeMark", q6);
|
|
23423
|
+
let W6 = class R9 extends ml {
|
|
23424
23424
|
/**
|
|
23425
23425
|
Create a mark-removing step.
|
|
23426
23426
|
*/
|
|
@@ -23454,8 +23454,8 @@ let W6 = class R9 extends gl {
|
|
|
23454
23454
|
return new R9(t.pos, e.markFromJSON(t.mark));
|
|
23455
23455
|
}
|
|
23456
23456
|
};
|
|
23457
|
-
|
|
23458
|
-
let Fu = class Lm extends
|
|
23457
|
+
ml.jsonID("removeNodeMark", W6);
|
|
23458
|
+
let Fu = class Lm extends ml {
|
|
23459
23459
|
/**
|
|
23460
23460
|
The given `slice` should fit the 'gap' between `from` and
|
|
23461
23461
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -23506,8 +23506,8 @@ let Fu = class Lm extends gl {
|
|
|
23506
23506
|
return new Lm(t.from, t.to, gn.fromJSON(e, t.slice), !!t.structure);
|
|
23507
23507
|
}
|
|
23508
23508
|
};
|
|
23509
|
-
|
|
23510
|
-
let Gl = class Bk extends
|
|
23509
|
+
ml.jsonID("replace", Fu);
|
|
23510
|
+
let Gl = class Bk extends ml {
|
|
23511
23511
|
/**
|
|
23512
23512
|
Create a replace-around step with the given range and gap.
|
|
23513
23513
|
`insert` should be the point in the slice into which the content
|
|
@@ -23564,7 +23564,7 @@ let Gl = class Bk extends gl {
|
|
|
23564
23564
|
return new Bk(t.from, t.to, t.gapFrom, t.gapTo, gn.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
23565
23565
|
}
|
|
23566
23566
|
};
|
|
23567
|
-
|
|
23567
|
+
ml.jsonID("replaceAround", Gl);
|
|
23568
23568
|
function B9(n, e, t) {
|
|
23569
23569
|
let i = n.resolve(e), r = t - e, o = i.depth;
|
|
23570
23570
|
for (; r > 0 && o > 0 && i.indexAfter(o) == i.node(o).childCount; )
|
|
@@ -24150,7 +24150,7 @@ function JH(n, e) {
|
|
|
24150
24150
|
}
|
|
24151
24151
|
return t;
|
|
24152
24152
|
}
|
|
24153
|
-
let ZH = class $k extends
|
|
24153
|
+
let ZH = class $k extends ml {
|
|
24154
24154
|
/**
|
|
24155
24155
|
Construct an attribute step.
|
|
24156
24156
|
*/
|
|
@@ -24187,8 +24187,8 @@ let ZH = class $k extends gl {
|
|
|
24187
24187
|
return new $k(t.pos, t.attr, t.value);
|
|
24188
24188
|
}
|
|
24189
24189
|
};
|
|
24190
|
-
|
|
24191
|
-
let QH = class $9 extends
|
|
24190
|
+
ml.jsonID("attr", ZH);
|
|
24191
|
+
let QH = class $9 extends ml {
|
|
24192
24192
|
/**
|
|
24193
24193
|
Construct an attribute step.
|
|
24194
24194
|
*/
|
|
@@ -24221,7 +24221,7 @@ let QH = class $9 extends gl {
|
|
|
24221
24221
|
return new $9(t.attr, t.value);
|
|
24222
24222
|
}
|
|
24223
24223
|
};
|
|
24224
|
-
|
|
24224
|
+
ml.jsonID("docAttr", QH);
|
|
24225
24225
|
let Xy = class extends Error {
|
|
24226
24226
|
};
|
|
24227
24227
|
Xy = function n(e) {
|
|
@@ -24562,7 +24562,7 @@ class Xn {
|
|
|
24562
24562
|
negative, it will search backwards first.
|
|
24563
24563
|
*/
|
|
24564
24564
|
static near(e, t = 1) {
|
|
24565
|
-
return this.findFrom(e, t) || this.findFrom(e, -t) || new
|
|
24565
|
+
return this.findFrom(e, t) || this.findFrom(e, -t) || new ol(e.node(0));
|
|
24566
24566
|
}
|
|
24567
24567
|
/**
|
|
24568
24568
|
Find the cursor or leaf node selection closest to the start of
|
|
@@ -24571,14 +24571,14 @@ class Xn {
|
|
|
24571
24571
|
exists.
|
|
24572
24572
|
*/
|
|
24573
24573
|
static atStart(e) {
|
|
24574
|
-
return zv(e, e, 0, 0, 1) || new
|
|
24574
|
+
return zv(e, e, 0, 0, 1) || new ol(e);
|
|
24575
24575
|
}
|
|
24576
24576
|
/**
|
|
24577
24577
|
Find the cursor or leaf node selection closest to the end of the
|
|
24578
24578
|
given document.
|
|
24579
24579
|
*/
|
|
24580
24580
|
static atEnd(e) {
|
|
24581
|
-
return zv(e, e, e.content.size, e.childCount, -1) || new
|
|
24581
|
+
return zv(e, e, e.content.size, e.childCount, -1) || new ol(e);
|
|
24582
24582
|
}
|
|
24583
24583
|
/**
|
|
24584
24584
|
Deserialize the JSON representation of a selection. Must be
|
|
@@ -24774,7 +24774,7 @@ class Y6 {
|
|
|
24774
24774
|
return i && Rn.isSelectable(i) ? new Rn(t) : Xn.near(t);
|
|
24775
24775
|
}
|
|
24776
24776
|
}
|
|
24777
|
-
class
|
|
24777
|
+
class ol extends Xn {
|
|
24778
24778
|
/**
|
|
24779
24779
|
Create an all-selection over the given document.
|
|
24780
24780
|
*/
|
|
@@ -24796,25 +24796,25 @@ class rl extends Xn {
|
|
|
24796
24796
|
@internal
|
|
24797
24797
|
*/
|
|
24798
24798
|
static fromJSON(e) {
|
|
24799
|
-
return new
|
|
24799
|
+
return new ol(e);
|
|
24800
24800
|
}
|
|
24801
24801
|
map(e) {
|
|
24802
|
-
return new
|
|
24802
|
+
return new ol(e);
|
|
24803
24803
|
}
|
|
24804
24804
|
eq(e) {
|
|
24805
|
-
return e instanceof
|
|
24805
|
+
return e instanceof ol;
|
|
24806
24806
|
}
|
|
24807
24807
|
getBookmark() {
|
|
24808
24808
|
return ogt;
|
|
24809
24809
|
}
|
|
24810
24810
|
}
|
|
24811
|
-
Xn.jsonID("all",
|
|
24811
|
+
Xn.jsonID("all", ol);
|
|
24812
24812
|
const ogt = {
|
|
24813
24813
|
map() {
|
|
24814
24814
|
return this;
|
|
24815
24815
|
},
|
|
24816
24816
|
resolve(n) {
|
|
24817
|
-
return new
|
|
24817
|
+
return new ol(n);
|
|
24818
24818
|
}
|
|
24819
24819
|
};
|
|
24820
24820
|
function zv(n, e, t, i, r, o = !1) {
|
|
@@ -25463,7 +25463,7 @@ const tO = (n, e) => {
|
|
|
25463
25463
|
return !0;
|
|
25464
25464
|
}, dV = (n, e) => {
|
|
25465
25465
|
let t = n.selection, { $from: i, $to: r } = t;
|
|
25466
|
-
if (t instanceof
|
|
25466
|
+
if (t instanceof ol || i.parent.inlineContent || r.parent.inlineContent)
|
|
25467
25467
|
return !1;
|
|
25468
25468
|
let o = eO(r.parent.contentMatchAt(r.indexAfter()));
|
|
25469
25469
|
if (!o || !o.isTextblock)
|
|
@@ -25503,7 +25503,7 @@ function hgt(n) {
|
|
|
25503
25503
|
o.unshift(null);
|
|
25504
25504
|
}
|
|
25505
25505
|
let d = e.tr;
|
|
25506
|
-
(e.selection instanceof Fn || e.selection instanceof
|
|
25506
|
+
(e.selection instanceof Fn || e.selection instanceof ol) && d.deleteSelection();
|
|
25507
25507
|
let u = d.mapping.map(i.pos), h = pd(d.doc, u, o.length, o);
|
|
25508
25508
|
if (h || (o[0] = s ? { type: s } : null, h = pd(d.doc, u, o.length, o)), d.split(u, o.length, o), !l && c && i.node(a).type != s) {
|
|
25509
25509
|
let g = d.mapping.map(i.before(a)), f = d.doc.resolve(g);
|
|
@@ -25515,7 +25515,7 @@ function hgt(n) {
|
|
|
25515
25515
|
const ggt = hgt(), mgt = (n, e) => {
|
|
25516
25516
|
let { $from: t, to: i } = n.selection, r, o = t.sharedDepth(i);
|
|
25517
25517
|
return o == 0 ? !1 : (r = t.before(o), e && e(n.tr.setSelection(Rn.create(n.doc, r))), !0);
|
|
25518
|
-
}, fgt = (n, e) => (e && e(n.tr.setSelection(new
|
|
25518
|
+
}, fgt = (n, e) => (e && e(n.tr.setSelection(new ol(n.doc))), !0);
|
|
25519
25519
|
function vgt(n, e, t) {
|
|
25520
25520
|
let i = e.nodeBefore, r = e.nodeAfter, o = e.index();
|
|
25521
25521
|
return !i || !r || !i.type.compatibleContent(r.type) ? !1 : !i.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - i.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(r.isTextblock || Kh(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
|
|
@@ -27146,7 +27146,7 @@ function imt(n, e, t) {
|
|
|
27146
27146
|
}
|
|
27147
27147
|
const Ep = typeof navigator < "u" ? navigator : null, xP = typeof document < "u" ? document : null, am = Ep && Ep.userAgent || "", q9 = /Edge\/(\d+)/.exec(am), EV = /MSIE \d/.exec(am), W9 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(am), Pc = !!(EV || W9 || q9), jg = EV ? document.documentMode : W9 ? +W9[1] : q9 ? +q9[1] : 0, zu = !Pc && /gecko\/(\d+)/i.test(am);
|
|
27148
27148
|
zu && +(/Firefox\/(\d+)/.exec(am) || [0, 0])[1];
|
|
27149
|
-
const G9 = !Pc && /Chrome\/(\d+)/.exec(am),
|
|
27149
|
+
const G9 = !Pc && /Chrome\/(\d+)/.exec(am), il = !!G9, AV = G9 ? +G9[1] : 0, Kl = !Pc && !!Ep && /Apple Computer/.test(Ep.vendor), Zy = Kl && (/Mobile\/\w+/.test(am) || !!Ep && Ep.maxTouchPoints > 2), zd = Zy || (Ep ? /Mac/.test(Ep.platform) : !1), rmt = Ep ? /Win/.test(Ep.platform) : !1, Ch = /Android \d/.test(am), Fx = !!xP && "webkitFontSmoothing" in xP.documentElement.style, omt = Fx ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
27150
27150
|
function amt(n) {
|
|
27151
27151
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
27152
27152
|
return e ? {
|
|
@@ -28352,7 +28352,7 @@ class Cmt {
|
|
|
28352
28352
|
for (; e instanceof zf; )
|
|
28353
28353
|
t = e, e = t.children[t.children.length - 1];
|
|
28354
28354
|
(!e || // Empty textblock
|
|
28355
|
-
!(e instanceof z3) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Kl ||
|
|
28355
|
+
!(e instanceof z3) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Kl || il) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
28356
28356
|
}
|
|
28357
28357
|
addHackNode(e, t) {
|
|
28358
28358
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -28528,7 +28528,7 @@ function zV(n) {
|
|
|
28528
28528
|
function Ph(n, e = !1) {
|
|
28529
28529
|
let t = n.state.selection;
|
|
28530
28530
|
if (jV(n, t), !!zV(n)) {
|
|
28531
|
-
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault &&
|
|
28531
|
+
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && il) {
|
|
28532
28532
|
let i = n.domSelectionRange(), r = n.domObserver.currentSelection;
|
|
28533
28533
|
if (i.anchorNode && r.anchorNode && Ff(i.anchorNode, i.anchorOffset, r.anchorNode, r.anchorOffset)) {
|
|
28534
28534
|
n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
|
|
@@ -28544,7 +28544,7 @@ function Ph(n, e = !1) {
|
|
|
28544
28544
|
n.domObserver.setCurSelection(), n.domObserver.connectSelection();
|
|
28545
28545
|
}
|
|
28546
28546
|
}
|
|
28547
|
-
const DP = Kl ||
|
|
28547
|
+
const DP = Kl || il && AV < 63;
|
|
28548
28548
|
function IP(n, e) {
|
|
28549
28549
|
let { node: t, offset: i } = n.docView.domFromPos(e, 0), r = i < t.childNodes.length ? t.childNodes[i] : null, o = i ? t.childNodes[i - 1] : null;
|
|
28550
28550
|
if (Kl && r && r.contentEditable == "false")
|
|
@@ -28772,7 +28772,7 @@ function J9(n, e, t) {
|
|
|
28772
28772
|
}
|
|
28773
28773
|
function RP(n, e) {
|
|
28774
28774
|
let t = n.state.doc.resolve(e);
|
|
28775
|
-
if (!(
|
|
28775
|
+
if (!(il || rmt) && t.parent.inlineContent) {
|
|
28776
28776
|
let r = n.coordsAtPos(e);
|
|
28777
28777
|
if (e > t.start()) {
|
|
28778
28778
|
let o = n.coordsAtPos(e - 1), a = (o.top + o.bottom) / 2;
|
|
@@ -28798,7 +28798,7 @@ function BP(n, e, t) {
|
|
|
28798
28798
|
return Cg(n, a);
|
|
28799
28799
|
}
|
|
28800
28800
|
if (!r.parent.inlineContent) {
|
|
28801
|
-
let a = e < 0 ? r : o, s = i instanceof
|
|
28801
|
+
let a = e < 0 ? r : o, s = i instanceof ol ? Xn.near(a, e) : Xn.findFrom(a, e);
|
|
28802
28802
|
return s ? Cg(n, s) : !1;
|
|
28803
28803
|
}
|
|
28804
28804
|
return !1;
|
|
@@ -29025,7 +29025,7 @@ function Vmt(n) {
|
|
|
29025
29025
|
return t;
|
|
29026
29026
|
}
|
|
29027
29027
|
function Umt(n) {
|
|
29028
|
-
let e = n.querySelectorAll(
|
|
29028
|
+
let e = n.querySelectorAll(il ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
29029
29029
|
for (let t = 0; t < e.length; t++) {
|
|
29030
29030
|
let i = e[t];
|
|
29031
29031
|
i.childNodes.length == 1 && i.textContent == " " && i.parentNode && i.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), i);
|
|
@@ -29100,7 +29100,7 @@ function Jmt(n, e) {
|
|
|
29100
29100
|
}
|
|
29101
29101
|
Xl.keydown = (n, e) => {
|
|
29102
29102
|
let t = e;
|
|
29103
|
-
if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ZV(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ch &&
|
|
29103
|
+
if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !ZV(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ch && il && t.keyCode == 13)))
|
|
29104
29104
|
if (t.keyCode != 229 && n.domObserver.forceFlush(), Zy && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
29105
29105
|
let i = Date.now();
|
|
29106
29106
|
n.input.lastIOSEnter = i, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -29244,7 +29244,7 @@ class oft {
|
|
|
29244
29244
|
// (hidden) cursor is doesn't change the selection, and
|
|
29245
29245
|
// thus doesn't get a reaction from ProseMirror. This
|
|
29246
29246
|
// works around that.
|
|
29247
|
-
|
|
29247
|
+
il && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Oy(this.view, Xn.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Ng(this.view, "pointer");
|
|
29248
29248
|
}
|
|
29249
29249
|
move(e) {
|
|
29250
29250
|
this.updateAllowDefault(e), Ng(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -29404,7 +29404,7 @@ Yl.dragstart = (n, e) => {
|
|
|
29404
29404
|
}
|
|
29405
29405
|
}
|
|
29406
29406
|
let s = (a || n.state.selection).content(), { dom: l, text: c, slice: d } = UV(n, s);
|
|
29407
|
-
(!t.dataTransfer.files.length || !
|
|
29407
|
+
(!t.dataTransfer.files.length || !il || AV > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Uw ? "Text" : "text/html", l.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Uw || t.dataTransfer.setData("text/plain", c), n.dragging = new nU(d, !t[iU], a);
|
|
29408
29408
|
};
|
|
29409
29409
|
Yl.dragend = (n) => {
|
|
29410
29410
|
let e = n.dragging;
|
|
@@ -29461,7 +29461,7 @@ Yl.blur = (n, e) => {
|
|
|
29461
29461
|
n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
|
|
29462
29462
|
};
|
|
29463
29463
|
Yl.beforeinput = (n, e) => {
|
|
29464
|
-
if (
|
|
29464
|
+
if (il && Ch && e.inputType == "deleteContentBackward") {
|
|
29465
29465
|
n.domObserver.flushSoon();
|
|
29466
29466
|
let { domChangeCount: i } = n.input;
|
|
29467
29467
|
setTimeout(() => {
|
|
@@ -30180,7 +30180,7 @@ function wft(n, e) {
|
|
|
30180
30180
|
}
|
|
30181
30181
|
function xft(n, e, t) {
|
|
30182
30182
|
let { node: i, fromOffset: r, toOffset: o, from: a, to: s } = n.docView.parseRange(e, t), l = n.domSelectionRange(), c, d = l.anchorNode;
|
|
30183
|
-
if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: l.anchorOffset }], F3(l) || c.push({ node: l.focusNode, offset: l.focusOffset })),
|
|
30183
|
+
if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: l.anchorOffset }], F3(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), il && n.input.lastKeyCode === 8)
|
|
30184
30184
|
for (let w = o; w > r; w--) {
|
|
30185
30185
|
let k = i.childNodes[w - 1], E = k.pmViewDesc;
|
|
30186
30186
|
if (k.nodeName == "BR" && !E) {
|
|
@@ -30227,7 +30227,7 @@ function Cft(n, e, t, i, r) {
|
|
|
30227
30227
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
30228
30228
|
let R = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, X = rO(n, R);
|
|
30229
30229
|
if (X && !n.state.selection.eq(X)) {
|
|
30230
|
-
if (
|
|
30230
|
+
if (il && Ch && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", ($) => $(n, Hm(13, "Enter"))))
|
|
30231
30231
|
return;
|
|
30232
30232
|
let F = n.state.tr.setSelection(X);
|
|
30233
30233
|
R == "pointer" ? F.setMeta("pointer", !0) : R == "key" && F.scrollIntoView(), o && F.setMeta("composition", o), n.dispatch(F);
|
|
@@ -30263,10 +30263,10 @@ function Cft(n, e, t, i, r) {
|
|
|
30263
30263
|
return;
|
|
30264
30264
|
}
|
|
30265
30265
|
if (n.state.selection.anchor > f.start && Tft(d, f.start, f.endA, b, w) && n.someProp("handleKeyDown", (R) => R(n, Hm(8, "Backspace")))) {
|
|
30266
|
-
Ch &&
|
|
30266
|
+
Ch && il && n.domObserver.suppressSelectionUpdates();
|
|
30267
30267
|
return;
|
|
30268
30268
|
}
|
|
30269
|
-
|
|
30269
|
+
il && f.endB == f.start && (n.input.lastChromeDelete = Date.now()), Ch && !E && b.start() != w.start() && w.parentOffset == 0 && b.depth == w.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == f.endA && (f.endB -= 2, w = c.doc.resolveNoCache(f.endB - c.from), setTimeout(() => {
|
|
30270
30270
|
n.someProp("handleKeyDown", function(R) {
|
|
30271
30271
|
return R(n, Hm(13, "Enter"));
|
|
30272
30272
|
});
|
|
@@ -30289,7 +30289,7 @@ function Cft(n, e, t, i, r) {
|
|
|
30289
30289
|
}
|
|
30290
30290
|
if (z || (z = n.state.tr.replace(T, M, c.doc.slice(f.start - c.from, f.endB - c.from))), c.sel) {
|
|
30291
30291
|
let R = WP(n, z.doc, c.sel);
|
|
30292
|
-
R && !(
|
|
30292
|
+
R && !(il && n.composing && R.empty && (f.start != f.endB || n.input.lastChromeDelete < Date.now() - 100) && (R.head == T || R.head == z.mapping.map(M) - 1) || Pc && R.empty && R.head == T) && z.setSelection(R);
|
|
30293
30293
|
}
|
|
30294
30294
|
V && z.ensureMarks(V), o && z.setMeta("composition", o), n.dispatch(z.scrollIntoView());
|
|
30295
30295
|
}
|
|
@@ -30443,9 +30443,9 @@ let sU = class {
|
|
|
30443
30443
|
let h = d == "preserve" && a && this.dom.style.overflowAnchor == null && lmt(this);
|
|
30444
30444
|
if (a) {
|
|
30445
30445
|
this.domObserver.stop();
|
|
30446
|
-
let g = u && (Pc ||
|
|
30446
|
+
let g = u && (Pc || il) && !this.composing && !r.selection.empty && !e.selection.empty && Aft(r.selection, e.selection);
|
|
30447
30447
|
if (u) {
|
|
30448
|
-
let f =
|
|
30448
|
+
let f = il ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
30449
30449
|
this.composing && (this.input.compositionNode = sft(this)), (o || !this.docView.update(e.doc, c, l, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = AP(e.doc, c, l, this.dom, this)), f && !this.trackWrites && (g = !0);
|
|
30450
30450
|
}
|
|
30451
30451
|
g || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Mmt(this)) ? Ph(this, g) : (jV(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
@@ -30995,7 +30995,7 @@ class q2 {
|
|
|
30995
30995
|
}
|
|
30996
30996
|
}
|
|
30997
30997
|
const qT = /* @__PURE__ */ Object.create(null);
|
|
30998
|
-
class
|
|
30998
|
+
class fl {
|
|
30999
30999
|
/**
|
|
31000
31000
|
Get the step map that represents the changes made by this step,
|
|
31001
31001
|
and which can be used to transform between positions in the old
|
|
@@ -31078,7 +31078,7 @@ function uO(n, e, t) {
|
|
|
31078
31078
|
}
|
|
31079
31079
|
return Gn.fromArray(i);
|
|
31080
31080
|
}
|
|
31081
|
-
class Lg extends
|
|
31081
|
+
class Lg extends fl {
|
|
31082
31082
|
/**
|
|
31083
31083
|
Create a mark step.
|
|
31084
31084
|
*/
|
|
@@ -31116,8 +31116,8 @@ class Lg extends ml {
|
|
|
31116
31116
|
return new Lg(t.from, t.to, e.markFromJSON(t.mark));
|
|
31117
31117
|
}
|
|
31118
31118
|
}
|
|
31119
|
-
|
|
31120
|
-
class wp extends
|
|
31119
|
+
fl.jsonID("addMark", Lg);
|
|
31120
|
+
class wp extends fl {
|
|
31121
31121
|
/**
|
|
31122
31122
|
Create a mark-removing step.
|
|
31123
31123
|
*/
|
|
@@ -31155,8 +31155,8 @@ class wp extends ml {
|
|
|
31155
31155
|
return new wp(t.from, t.to, e.markFromJSON(t.mark));
|
|
31156
31156
|
}
|
|
31157
31157
|
}
|
|
31158
|
-
|
|
31159
|
-
class Rg extends
|
|
31158
|
+
fl.jsonID("removeMark", wp);
|
|
31159
|
+
class Rg extends fl {
|
|
31160
31160
|
/**
|
|
31161
31161
|
Create a node mark step.
|
|
31162
31162
|
*/
|
|
@@ -31199,8 +31199,8 @@ class Rg extends ml {
|
|
|
31199
31199
|
return new Rg(t.pos, e.markFromJSON(t.mark));
|
|
31200
31200
|
}
|
|
31201
31201
|
}
|
|
31202
|
-
|
|
31203
|
-
class jf extends
|
|
31202
|
+
fl.jsonID("addNodeMark", Rg);
|
|
31203
|
+
class jf extends fl {
|
|
31204
31204
|
/**
|
|
31205
31205
|
Create a mark-removing step.
|
|
31206
31206
|
*/
|
|
@@ -31234,8 +31234,8 @@ class jf extends ml {
|
|
|
31234
31234
|
return new jf(t.pos, e.markFromJSON(t.mark));
|
|
31235
31235
|
}
|
|
31236
31236
|
}
|
|
31237
|
-
|
|
31238
|
-
class Fl extends
|
|
31237
|
+
fl.jsonID("removeNodeMark", jf);
|
|
31238
|
+
class Fl extends fl {
|
|
31239
31239
|
/**
|
|
31240
31240
|
The given `slice` should fit the 'gap' between `from` and
|
|
31241
31241
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -31286,8 +31286,8 @@ class Fl extends ml {
|
|
|
31286
31286
|
return new Fl(t.from, t.to, ai.fromJSON(e, t.slice), !!t.structure);
|
|
31287
31287
|
}
|
|
31288
31288
|
}
|
|
31289
|
-
|
|
31290
|
-
class kp extends
|
|
31289
|
+
fl.jsonID("replace", Fl);
|
|
31290
|
+
class kp extends fl {
|
|
31291
31291
|
/**
|
|
31292
31292
|
Create a replace-around step with the given range and gap.
|
|
31293
31293
|
`insert` should be the point in the slice into which the content
|
|
@@ -31344,7 +31344,7 @@ class kp extends ml {
|
|
|
31344
31344
|
return new kp(t.from, t.to, t.gapFrom, t.gapTo, ai.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
31345
31345
|
}
|
|
31346
31346
|
}
|
|
31347
|
-
|
|
31347
|
+
fl.jsonID("replaceAround", kp);
|
|
31348
31348
|
function t5(n, e, t) {
|
|
31349
31349
|
let i = n.resolve(e), r = t - e, o = i.depth;
|
|
31350
31350
|
for (; r > 0 && o > 0 && i.indexAfter(o) == i.node(o).childCount; )
|
|
@@ -31827,7 +31827,7 @@ function yU(n, e) {
|
|
|
31827
31827
|
}
|
|
31828
31828
|
return t;
|
|
31829
31829
|
}
|
|
31830
|
-
class Dy extends
|
|
31830
|
+
class Dy extends fl {
|
|
31831
31831
|
/**
|
|
31832
31832
|
Construct an attribute step.
|
|
31833
31833
|
*/
|
|
@@ -31864,8 +31864,8 @@ class Dy extends ml {
|
|
|
31864
31864
|
return new Dy(t.pos, t.attr, t.value);
|
|
31865
31865
|
}
|
|
31866
31866
|
}
|
|
31867
|
-
|
|
31868
|
-
class Gw extends
|
|
31867
|
+
fl.jsonID("attr", Dy);
|
|
31868
|
+
class Gw extends fl {
|
|
31869
31869
|
/**
|
|
31870
31870
|
Construct an attribute step.
|
|
31871
31871
|
*/
|
|
@@ -31898,7 +31898,7 @@ class Gw extends ml {
|
|
|
31898
31898
|
return new Gw(t.attr, t.value);
|
|
31899
31899
|
}
|
|
31900
31900
|
}
|
|
31901
|
-
|
|
31901
|
+
fl.jsonID("docAttr", Gw);
|
|
31902
31902
|
let Qy = class extends Error {
|
|
31903
31903
|
};
|
|
31904
31904
|
Qy = function n(e) {
|
|
@@ -32428,7 +32428,7 @@ function So(n) {
|
|
|
32428
32428
|
}
|
|
32429
32429
|
return e;
|
|
32430
32430
|
}
|
|
32431
|
-
var
|
|
32431
|
+
var nl = new Fi("selectingCells");
|
|
32432
32432
|
function cu(n) {
|
|
32433
32433
|
for (let e = n.depth - 1; e > 0; e--)
|
|
32434
32434
|
if (n.node(e).type.spec.tableRole == "row")
|
|
@@ -33553,21 +33553,21 @@ function Evt(n, e) {
|
|
|
33553
33553
|
return;
|
|
33554
33554
|
function o(l, c) {
|
|
33555
33555
|
let d = KT(n, c);
|
|
33556
|
-
const u =
|
|
33556
|
+
const u = nl.getState(n.state) == null;
|
|
33557
33557
|
if (!d || !H3(l, d))
|
|
33558
33558
|
if (u) d = l;
|
|
33559
33559
|
else return;
|
|
33560
33560
|
const h = new ci(l, d);
|
|
33561
33561
|
if (u || !n.state.selection.eq(h)) {
|
|
33562
33562
|
const g = n.state.tr.setSelection(h);
|
|
33563
|
-
u && g.setMeta(
|
|
33563
|
+
u && g.setMeta(nl, l.pos), n.dispatch(g);
|
|
33564
33564
|
}
|
|
33565
33565
|
}
|
|
33566
33566
|
function a() {
|
|
33567
|
-
n.root.removeEventListener("mouseup", a), n.root.removeEventListener("dragstart", a), n.root.removeEventListener("mousemove", s),
|
|
33567
|
+
n.root.removeEventListener("mouseup", a), n.root.removeEventListener("dragstart", a), n.root.removeEventListener("mousemove", s), nl.getState(n.state) != null && n.dispatch(n.state.tr.setMeta(nl, -1));
|
|
33568
33568
|
}
|
|
33569
33569
|
function s(l) {
|
|
33570
|
-
const c = l, d =
|
|
33570
|
+
const c = l, d = nl.getState(n.state);
|
|
33571
33571
|
let u;
|
|
33572
33572
|
if (d != null)
|
|
33573
33573
|
u = n.state.doc.resolve(d);
|
|
@@ -33871,7 +33871,7 @@ function LU({
|
|
|
33871
33871
|
allowTableNodeSelection: n = !1
|
|
33872
33872
|
} = {}) {
|
|
33873
33873
|
return new ki({
|
|
33874
|
-
key:
|
|
33874
|
+
key: nl,
|
|
33875
33875
|
// This piece of state is used to remember when a mouse-drag
|
|
33876
33876
|
// cell-selection is happening, so that it can continue even as
|
|
33877
33877
|
// transactions (which might move its anchor cell) come in.
|
|
@@ -33880,7 +33880,7 @@ function LU({
|
|
|
33880
33880
|
return null;
|
|
33881
33881
|
},
|
|
33882
33882
|
apply(e, t) {
|
|
33883
|
-
const i = e.getMeta(
|
|
33883
|
+
const i = e.getMeta(nl);
|
|
33884
33884
|
if (i != null) return i == -1 ? null : i;
|
|
33885
33885
|
if (t == null || !e.docChanged) return t;
|
|
33886
33886
|
const { deleted: r, pos: o } = e.mapping.mapResult(t);
|
|
@@ -33893,7 +33893,7 @@ function LU({
|
|
|
33893
33893
|
mousedown: Evt
|
|
33894
33894
|
},
|
|
33895
33895
|
createSelectionBetween(e) {
|
|
33896
|
-
return
|
|
33896
|
+
return nl.getState(e.state) != null ? e.state.selection : null;
|
|
33897
33897
|
},
|
|
33898
33898
|
handleTripleClick: Svt,
|
|
33899
33899
|
handleKeyDown: Cvt,
|
|
@@ -34769,7 +34769,7 @@ class hyt {
|
|
|
34769
34769
|
}
|
|
34770
34770
|
var Js = /* @__PURE__ */ ((n) => (n.Preview = "preview", n.Source = "source", n.Edit = "edit", n.Wysiwyg = "wysiwyg", n))(Js || {});
|
|
34771
34771
|
const gyt = un`:host{display:block;position:relative}.toolbar-anchor{z-index:1;height:0;position:sticky;inset-block-start:0}:host([no-sticky-toolbar]) .toolbar-anchor{position:static}.toolbar{align-items:center;gap:var(--cx-markdown-viewer-toolbar-gap,var(--cx-spacing-x-small));opacity:0;transition:opacity var(--cx-transition-fast) ease;display:flex;position:absolute;inset-block-start:var(--cx-markdown-viewer-toolbar-offset-block,var(--cx-spacing-medium));inset-inline-end:var(--cx-markdown-viewer-toolbar-offset-inline,var(--cx-spacing-medium))}:host(:hover) .toolbar,:host(:focus-within) .toolbar{opacity:1}:host(:not([view=wysiwyg])) .toolbar{padding:var(--cx-spacing-3x-small);border-radius:var(--cx-border-radius-medium);background:var(--cx-color-neutral-0)}cx-radio-group::part(form-control-label),cx-textarea::part(form-control-label){clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.view[hidden]{display:none}.source{font-family:var(--cx-font-mono);font-size:var(--cx-markdown-viewer-source-font-size,var(--cx-font-size-small));white-space:pre-wrap;overflow-wrap:anywhere;max-height:var(--cx-markdown-viewer-source-max-height,none);background:0 0;margin:0;padding:0;overflow:auto}cx-textarea::part(textarea){font-family:var(--cx-font-mono);font-size:var(--cx-markdown-viewer-source-font-size,var(--cx-font-size-small));min-height:var(--cx-markdown-viewer-edit-min-height,auto)}.rich-toolbar{align-items:center;gap:var(--cx-spacing-3x-small);padding:var(--cx-spacing-2x-small);border-block-end:1px solid var(--cx-color-neutral-200);background:var(--cx-color-neutral-0);flex-wrap:wrap;display:flex}:host([view=wysiwyg]) .toolbar-anchor{z-index:2}:host([view=wysiwyg]) .rich-toolbar{padding-inline-end:var(--cx-markdown-viewer-view-switcher-width,12rem)}:host([view=wysiwyg]) .toolbar{inset-block-start:var(--cx-spacing-2x-small);inset-inline-end:var(--cx-spacing-2x-small)}.rich-toolbar__separator{width:1px;margin-inline:var(--cx-spacing-2x-small);background:var(--cx-color-neutral-200);align-self:stretch}.rich-toolbar cx-icon-button.active::part(base){border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-200);color:var(--cx-color-neutral-900)}.rich{border:var(--cx-input-border-width) solid var(--cx-input-border-color);border-radius:var(--cx-input-border-radius-medium);flex-direction:column;max-height:100%;display:flex}.rich-editor{flex:1;min-height:0;overflow:auto}.rich-editor .ProseMirror{padding:var(--cx-spacing-medium);min-height:var(--cx-markdown-viewer-edit-min-height,20lh);white-space:pre-wrap;outline:none}.rich-editor table{table-layout:fixed;width:100%}.rich-editor th,.rich-editor td{border:1px solid var(--cx-color-neutral-300)}.rich-editor .selectedCell{background:var(--cx-color-primary-100);position:relative}.rich-editor .cx-md-frontmatter,.rich-editor .cx-md-html{padding:var(--cx-spacing-x-small);border-inline-start:3px solid var(--cx-color-neutral-400);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);font-size:var(--cx-markdown-viewer-source-font-size,var(--cx-font-size-small));white-space:pre-wrap;display:block}.rich-editor span.cx-md-html{padding:0 var(--cx-spacing-3x-small);border-inline-start:0;display:inline}`;
|
|
34772
|
-
var myt = Object.defineProperty, fyt = Object.getOwnPropertyDescriptor,
|
|
34772
|
+
var myt = Object.defineProperty, fyt = Object.getOwnPropertyDescriptor, vl = (n, e, t, i) => {
|
|
34773
34773
|
for (var r = i > 1 ? void 0 : i ? fyt(e, t) : e, o = n.length - 1, a; o >= 0; o--)
|
|
34774
34774
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
34775
34775
|
return i && r && myt(e, t, r), r;
|
|
@@ -34993,52 +34993,52 @@ es.dependencies = {
|
|
|
34993
34993
|
"cx-radio-group": Yf,
|
|
34994
34994
|
"cx-textarea": c6
|
|
34995
34995
|
};
|
|
34996
|
-
|
|
34996
|
+
vl([
|
|
34997
34997
|
Tt(".rich-editor")
|
|
34998
34998
|
], es.prototype, "richEditorHost", 2);
|
|
34999
|
-
|
|
34999
|
+
vl([
|
|
35000
35000
|
O({ attribute: "available-view-modes", type: Array })
|
|
35001
35001
|
], es.prototype, "availableViewModes", 2);
|
|
35002
|
-
|
|
35002
|
+
vl([
|
|
35003
35003
|
O({ attribute: "default-view-mode", type: String })
|
|
35004
35004
|
], es.prototype, "defaultViewMode", 2);
|
|
35005
|
-
|
|
35005
|
+
vl([
|
|
35006
35006
|
O({ reflect: !0, type: Boolean })
|
|
35007
35007
|
], es.prototype, "editable", 2);
|
|
35008
|
-
|
|
35008
|
+
vl([
|
|
35009
35009
|
O({ attribute: "link-target", type: String })
|
|
35010
35010
|
], es.prototype, "linkTarget", 2);
|
|
35011
|
-
|
|
35011
|
+
vl([
|
|
35012
35012
|
O({ type: String })
|
|
35013
35013
|
], es.prototype, "markdown", 2);
|
|
35014
|
-
|
|
35014
|
+
vl([
|
|
35015
35015
|
O({ attribute: "no-copy-button", reflect: !0, type: Boolean })
|
|
35016
35016
|
], es.prototype, "noCopyButton", 2);
|
|
35017
|
-
|
|
35017
|
+
vl([
|
|
35018
35018
|
O({ attribute: "no-sticky-toolbar", reflect: !0, type: Boolean })
|
|
35019
35019
|
], es.prototype, "noStickyToolbar", 2);
|
|
35020
|
-
|
|
35020
|
+
vl([
|
|
35021
35021
|
O({ attribute: "no-view-toggle", reflect: !0, type: Boolean })
|
|
35022
35022
|
], es.prototype, "noViewToggle", 2);
|
|
35023
|
-
|
|
35023
|
+
vl([
|
|
35024
35024
|
O({ type: String })
|
|
35025
35025
|
], es.prototype, "value", 2);
|
|
35026
|
-
|
|
35026
|
+
vl([
|
|
35027
35027
|
O({ reflect: !0, type: String })
|
|
35028
35028
|
], es.prototype, "view", 2);
|
|
35029
|
-
|
|
35029
|
+
vl([
|
|
35030
35030
|
Qe("defaultViewMode")
|
|
35031
35031
|
], es.prototype, "handleDefaultViewModeChange", 1);
|
|
35032
|
-
|
|
35032
|
+
vl([
|
|
35033
35033
|
Qe("markdown")
|
|
35034
35034
|
], es.prototype, "handleMarkdownChange", 1);
|
|
35035
|
-
|
|
35035
|
+
vl([
|
|
35036
35036
|
Qe(["availableViewModes", "editable", "value", "view"])
|
|
35037
35037
|
], es.prototype, "handleRichEditorSync", 1);
|
|
35038
|
-
|
|
35038
|
+
vl([
|
|
35039
35039
|
ec(300)
|
|
35040
35040
|
], es.prototype, "emitChange", 1);
|
|
35041
|
-
es =
|
|
35041
|
+
es = vl([
|
|
35042
35042
|
nn("cx-markdown-viewer")
|
|
35043
35043
|
], es);
|
|
35044
35044
|
const byt = un`
|
|
@@ -35184,8 +35184,8 @@ Nc.styles = byt;
|
|
|
35184
35184
|
Nc.dependencies = {
|
|
35185
35185
|
"cx-badge": wx,
|
|
35186
35186
|
"cx-icon": Hr,
|
|
35187
|
-
"cx-menu":
|
|
35188
|
-
"cx-menu-item":
|
|
35187
|
+
"cx-menu": hl,
|
|
35188
|
+
"cx-menu-item": gl,
|
|
35189
35189
|
"cx-popup": Qd,
|
|
35190
35190
|
"cx-space": Ui,
|
|
35191
35191
|
"cx-tooltip": Eo
|
|
@@ -35642,8 +35642,8 @@ md.dependencies = {
|
|
|
35642
35642
|
"cx-divider": $c,
|
|
35643
35643
|
"cx-dropdown": _s,
|
|
35644
35644
|
"cx-icon": Hr,
|
|
35645
|
-
"cx-menu":
|
|
35646
|
-
"cx-menu-item":
|
|
35645
|
+
"cx-menu": hl,
|
|
35646
|
+
"cx-menu-item": gl,
|
|
35647
35647
|
"cx-range": s6,
|
|
35648
35648
|
"cx-space": Ui,
|
|
35649
35649
|
"cx-typography": qi
|
|
@@ -35811,8 +35811,8 @@ em.dependencies = {
|
|
|
35811
35811
|
"cx-dropdown": _s,
|
|
35812
35812
|
"cx-icon": Hr,
|
|
35813
35813
|
"cx-icon-button": Cr,
|
|
35814
|
-
"cx-menu":
|
|
35815
|
-
"cx-menu-item":
|
|
35814
|
+
"cx-menu": hl,
|
|
35815
|
+
"cx-menu-item": gl
|
|
35816
35816
|
};
|
|
35817
35817
|
q3([
|
|
35818
35818
|
O({ attribute: "cursor-tool", reflect: !0 })
|
|
@@ -37401,7 +37401,7 @@ function TN(n) {
|
|
|
37401
37401
|
}
|
|
37402
37402
|
let Hu = class extends hn {
|
|
37403
37403
|
constructor() {
|
|
37404
|
-
super(), this.localize = new Dn(this), this.items = [], this.flattenSubmenu = !1, this.label = this.localize.term("viewAndSort"), this.triggerButtonVariant = "text", this.triggerButtonSize =
|
|
37404
|
+
super(), this.localize = new Dn(this), this.items = [], this.flattenSubmenu = !1, this.label = this.localize.term("viewAndSort"), this.triggerButtonVariant = "text", this.triggerButtonSize = Ml.Medium, this.debouncedHandleSelectChanged = fee(this.handleSelectChanged, 100), this.onSelectChanged = this.onSelectChanged.bind(this), this.onDropdownShow = this.onDropdownShow.bind(this), this.onDropdownAfterHide = this.onDropdownAfterHide.bind(this);
|
|
37405
37405
|
}
|
|
37406
37406
|
connectedUpdatedCallback() {
|
|
37407
37407
|
this.dropdown && (this.dropdown.addEventListener("cx-select", this.onSelectChanged), this.dropdown.addEventListener("cx-show", this.onDropdownShow), this.dropdown.addEventListener("cx-after-hide", this.onDropdownAfterHide));
|
|
@@ -37506,8 +37506,8 @@ Hu.dependencies = {
|
|
|
37506
37506
|
"cx-icon": Hr,
|
|
37507
37507
|
"cx-icon-button": Cr,
|
|
37508
37508
|
"cx-line-clamp": Lp,
|
|
37509
|
-
"cx-menu":
|
|
37510
|
-
"cx-menu-item":
|
|
37509
|
+
"cx-menu": hl,
|
|
37510
|
+
"cx-menu-item": gl,
|
|
37511
37511
|
"cx-menu-label": o6,
|
|
37512
37512
|
"cx-space": Ui,
|
|
37513
37513
|
"cx-switch": pb,
|
|
@@ -38864,7 +38864,7 @@ const X0t = (n, e) => ({ tr: t, state: i, dispatch: r }) => {
|
|
|
38864
38864
|
}), !0) : !1;
|
|
38865
38865
|
}, J0t = () => ({ tr: n, dispatch: e }) => (e && n.scrollIntoView(), !0), Z0t = () => ({ tr: n, dispatch: e }) => {
|
|
38866
38866
|
if (e) {
|
|
38867
|
-
const t = new
|
|
38867
|
+
const t = new ol(n.doc);
|
|
38868
38868
|
n.setSelection(t);
|
|
38869
38869
|
}
|
|
38870
38870
|
return !0;
|
|
@@ -41162,7 +41162,7 @@ const Uwt = new Fi("mention"), qwt = $a.create({
|
|
|
41162
41162
|
toggleBulletList: () => ({ chain: n, state: e }) => {
|
|
41163
41163
|
const { selection: t } = e;
|
|
41164
41164
|
let i = n();
|
|
41165
|
-
return t instanceof
|
|
41165
|
+
return t instanceof ol && (i = i.setTextSelection({
|
|
41166
41166
|
from: 0,
|
|
41167
41167
|
to: e.doc.content.size
|
|
41168
41168
|
})), this.options.keepAttributes ? i.toggleList(
|
|
@@ -42594,7 +42594,7 @@ const oS = ns.create({
|
|
|
42594
42594
|
toggleOrderedList: () => ({ chain: n, state: e }) => {
|
|
42595
42595
|
const { selection: t } = e;
|
|
42596
42596
|
let i = n();
|
|
42597
|
-
return t instanceof
|
|
42597
|
+
return t instanceof ol && (i = i.setTextSelection({
|
|
42598
42598
|
from: 0,
|
|
42599
42599
|
to: e.doc.content.size
|
|
42600
42600
|
})), this.options.keepAttributes ? i.toggleList(
|
|
@@ -43393,7 +43393,7 @@ function GN(n, e) {
|
|
|
43393
43393
|
i !== e && t(WN);
|
|
43394
43394
|
});
|
|
43395
43395
|
}
|
|
43396
|
-
let
|
|
43396
|
+
let al = class extends To {
|
|
43397
43397
|
constructor() {
|
|
43398
43398
|
super(...arguments), this.canUseTimeBased = !1, this.hideTimeBasedIcon = !1, this.canAnnotate = !1, this.timeBased = !1, this._annotationState = My;
|
|
43399
43399
|
}
|
|
@@ -43483,39 +43483,39 @@ let ol = class extends To {
|
|
|
43483
43483
|
return I` ${f3([this.annotationEl], () => I`<cx-annotator .annotationEl=${this.annotationEl} .annotationState=${this._annotationState} continuous-creation-tools=${Zv.Freehand} @cx-marker-area-state-change=${this.handleMarkerAreaStateChange}></cx-annotator>`)}`;
|
|
43484
43484
|
}
|
|
43485
43485
|
};
|
|
43486
|
-
|
|
43487
|
-
|
|
43488
|
-
...Lq(
|
|
43486
|
+
al.styles = [...Lq(al, al, "styles"), y1t];
|
|
43487
|
+
al.dependencies = {
|
|
43488
|
+
...Lq(al, al, "dependencies"),
|
|
43489
43489
|
"cx-annotator": ql
|
|
43490
43490
|
};
|
|
43491
43491
|
dm([
|
|
43492
43492
|
Tt("cx-annotator")
|
|
43493
|
-
],
|
|
43493
|
+
], al.prototype, "annotator", 2);
|
|
43494
43494
|
dm([
|
|
43495
43495
|
O({ attribute: "annotation-el", type: Object })
|
|
43496
|
-
],
|
|
43496
|
+
], al.prototype, "annotationEl", 2);
|
|
43497
43497
|
dm([
|
|
43498
43498
|
O({ attribute: "can-use-time-based", reflect: !0, type: Boolean })
|
|
43499
|
-
],
|
|
43499
|
+
], al.prototype, "canUseTimeBased", 2);
|
|
43500
43500
|
dm([
|
|
43501
43501
|
O({ attribute: "hide-time-based-icon", reflect: !0, type: Boolean })
|
|
43502
|
-
],
|
|
43502
|
+
], al.prototype, "hideTimeBasedIcon", 2);
|
|
43503
43503
|
dm([
|
|
43504
43504
|
O({ attribute: "can-annotate", reflect: !0, type: Boolean })
|
|
43505
|
-
],
|
|
43505
|
+
], al.prototype, "canAnnotate", 2);
|
|
43506
43506
|
dm([
|
|
43507
43507
|
O({ attribute: "time-based", reflect: !0, type: Boolean })
|
|
43508
|
-
],
|
|
43508
|
+
], al.prototype, "timeBased", 2);
|
|
43509
43509
|
dm([
|
|
43510
43510
|
O({
|
|
43511
43511
|
attribute: "annotation-state",
|
|
43512
43512
|
reflect: !1,
|
|
43513
43513
|
type: Object
|
|
43514
43514
|
})
|
|
43515
|
-
],
|
|
43516
|
-
|
|
43515
|
+
], al.prototype, "annotationState", 1);
|
|
43516
|
+
al = dm([
|
|
43517
43517
|
nn("cx-annotator-comment-menu")
|
|
43518
|
-
],
|
|
43518
|
+
], al);
|
|
43519
43519
|
const _1t = Pr.create({
|
|
43520
43520
|
addProseMirrorPlugins() {
|
|
43521
43521
|
const { host: n } = this.options;
|
|
@@ -44077,7 +44077,7 @@ let ga = class extends pr {
|
|
|
44077
44077
|
ga.styles = [...Fq(ga, ga, "styles"), v1t];
|
|
44078
44078
|
ga.dependencies = {
|
|
44079
44079
|
...Fq(ga, ga, "dependencies"),
|
|
44080
|
-
"cx-annotator-comment-menu":
|
|
44080
|
+
"cx-annotator-comment-menu": al
|
|
44081
44081
|
};
|
|
44082
44082
|
zc([
|
|
44083
44083
|
Tt("cx-annotator-comment-menu")
|
|
@@ -45793,7 +45793,7 @@ var bkt = Object.defineProperty, wkt = Object.getOwnPropertyDescriptor, uu = (n,
|
|
|
45793
45793
|
return i && r && bkt(e, t, r), r;
|
|
45794
45794
|
};
|
|
45795
45795
|
const xkt = 1, kkt = 5;
|
|
45796
|
-
let
|
|
45796
|
+
let cl = class extends hn {
|
|
45797
45797
|
constructor() {
|
|
45798
45798
|
super(...arguments), this.bands = [], this.barWidth = 0, this.capacity = 40, this.floor = 0.2, this.resizable = !1, this.collapseZeroBands = !1, this.fullLabelThreshold = 86, this.shortLabelThreshold = 28, this.summary = "", this.geometries = /* @__PURE__ */ new Map(), this.renderedBarWidth = 0, this.barResizeObserver = null;
|
|
45799
45799
|
}
|
|
@@ -45903,46 +45903,46 @@ let ll = class extends hn {
|
|
|
45903
45903
|
)}</div></div>`;
|
|
45904
45904
|
}
|
|
45905
45905
|
};
|
|
45906
|
-
|
|
45907
|
-
|
|
45906
|
+
cl.styles = ykt;
|
|
45907
|
+
cl.dependencies = {
|
|
45908
45908
|
"cx-tooltip": Eo
|
|
45909
45909
|
};
|
|
45910
45910
|
uu([
|
|
45911
45911
|
O({ attribute: !1 })
|
|
45912
|
-
],
|
|
45912
|
+
], cl.prototype, "bands", 2);
|
|
45913
45913
|
uu([
|
|
45914
45914
|
O({ attribute: "bar-width", type: Number })
|
|
45915
|
-
],
|
|
45915
|
+
], cl.prototype, "barWidth", 2);
|
|
45916
45916
|
uu([
|
|
45917
45917
|
O({ attribute: "capacity", type: Number })
|
|
45918
|
-
],
|
|
45918
|
+
], cl.prototype, "capacity", 2);
|
|
45919
45919
|
uu([
|
|
45920
45920
|
O({ attribute: "floor", type: Number })
|
|
45921
|
-
],
|
|
45921
|
+
], cl.prototype, "floor", 2);
|
|
45922
45922
|
uu([
|
|
45923
45923
|
O({ attribute: "max-hour-per-cell", type: Number })
|
|
45924
|
-
],
|
|
45924
|
+
], cl.prototype, "maxHourPerCell", 2);
|
|
45925
45925
|
uu([
|
|
45926
45926
|
O({ reflect: !0, type: Boolean })
|
|
45927
|
-
],
|
|
45927
|
+
], cl.prototype, "resizable", 2);
|
|
45928
45928
|
uu([
|
|
45929
45929
|
O({ attribute: "collapse-zero-bands", reflect: !0, type: Boolean })
|
|
45930
|
-
],
|
|
45930
|
+
], cl.prototype, "collapseZeroBands", 2);
|
|
45931
45931
|
uu([
|
|
45932
45932
|
O({ attribute: "full-label-threshold", type: Number })
|
|
45933
|
-
],
|
|
45933
|
+
], cl.prototype, "fullLabelThreshold", 2);
|
|
45934
45934
|
uu([
|
|
45935
45935
|
O({ attribute: "short-label-threshold", type: Number })
|
|
45936
|
-
],
|
|
45936
|
+
], cl.prototype, "shortLabelThreshold", 2);
|
|
45937
45937
|
uu([
|
|
45938
45938
|
Tt(".bar")
|
|
45939
|
-
],
|
|
45939
|
+
], cl.prototype, "barEl", 2);
|
|
45940
45940
|
uu([
|
|
45941
45941
|
ge()
|
|
45942
|
-
],
|
|
45943
|
-
|
|
45942
|
+
], cl.prototype, "renderedBarWidth", 2);
|
|
45943
|
+
cl = uu([
|
|
45944
45944
|
nn("cx-capacity-week-bar")
|
|
45945
|
-
],
|
|
45945
|
+
], cl);
|
|
45946
45946
|
var _kt = Object.defineProperty, Ckt = Object.getOwnPropertyDescriptor, oa = (n, e, t, i) => {
|
|
45947
45947
|
for (var r = i > 1 ? void 0 : i ? Ckt(e, t) : e, o = n.length - 1, a; o >= 0; o--)
|
|
45948
45948
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
@@ -46409,7 +46409,7 @@ let yo = class extends hn {
|
|
|
46409
46409
|
yo.styles = gkt;
|
|
46410
46410
|
yo.dependencies = {
|
|
46411
46411
|
"cx-capacity-toolbar": ib,
|
|
46412
|
-
"cx-capacity-week-bar":
|
|
46412
|
+
"cx-capacity-week-bar": cl,
|
|
46413
46413
|
"cx-radio-button": a6,
|
|
46414
46414
|
"cx-radio-group": Yf,
|
|
46415
46415
|
"cx-typography": qi
|
|
@@ -50978,8 +50978,8 @@ jr.dependencies = {
|
|
|
50978
50978
|
"cx-icon-button": Cr,
|
|
50979
50979
|
"cx-input": eo,
|
|
50980
50980
|
"cx-markdown": o3,
|
|
50981
|
-
"cx-menu":
|
|
50982
|
-
"cx-menu-item":
|
|
50981
|
+
"cx-menu": hl,
|
|
50982
|
+
"cx-menu-item": gl,
|
|
50983
50983
|
"cx-tooltip": Eo,
|
|
50984
50984
|
"cx-typography": qi
|
|
50985
50985
|
};
|
|
@@ -56532,21 +56532,21 @@ var bSt = {
|
|
|
56532
56532
|
var ko = void 0;
|
|
56533
56533
|
for (ko = qr + 1; ko < Ge && Be[ko] == "%"; ++ko)
|
|
56534
56534
|
;
|
|
56535
|
-
for (var fc = qr && Be[qr - 1] == "!" || ko < Ge && Be[ko] == "1" ? "1" : "N",
|
|
56536
|
-
Be[
|
|
56535
|
+
for (var fc = qr && Be[qr - 1] == "!" || ko < Ge && Be[ko] == "1" ? "1" : "N", Cl = qr; Cl < ko; ++Cl)
|
|
56536
|
+
Be[Cl] = fc;
|
|
56537
56537
|
qr = ko - 1;
|
|
56538
56538
|
}
|
|
56539
56539
|
}
|
|
56540
|
-
for (var da = 0,
|
|
56540
|
+
for (var da = 0, Sl = ke; da < Ge; ++da) {
|
|
56541
56541
|
var gs = Be[da];
|
|
56542
|
-
|
|
56542
|
+
Sl == "L" && gs == "1" ? Be[da] = "L" : S.test(gs) && (Sl = gs);
|
|
56543
56543
|
}
|
|
56544
56544
|
for (var Ca = 0; Ca < Ge; ++Ca)
|
|
56545
56545
|
if (x.test(Be[Ca])) {
|
|
56546
56546
|
var ua = void 0;
|
|
56547
56547
|
for (ua = Ca + 1; ua < Ge && x.test(Be[ua]); ++ua)
|
|
56548
56548
|
;
|
|
56549
|
-
for (var No = (Ca ? Be[Ca - 1] : ke) == "L",
|
|
56549
|
+
for (var No = (Ca ? Be[Ca - 1] : ke) == "L", Tl = (ua < Ge ? Be[ua] : ke) == "L", xv = No == Tl ? No ? "L" : "R" : ke, cg = Ca; cg < ua; ++cg)
|
|
56550
56550
|
Be[cg] = xv;
|
|
56551
56551
|
Ca = ua - 1;
|
|
56552
56552
|
}
|
|
@@ -57008,7 +57008,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57008
57008
|
var v = p.doc, x = p.display;
|
|
57009
57009
|
if (!v.mode.startState)
|
|
57010
57010
|
return new Oi(v, !0, m);
|
|
57011
|
-
var S =
|
|
57011
|
+
var S = bl(p, m, y), P = S > v.first && $t(v, S - 1).stateAfter, j = P ? Oi.fromSaved(v, P, S) : new Oi(v, sa(v.mode), S);
|
|
57012
57012
|
return v.iter(S, m, function(q) {
|
|
57013
57013
|
lc(p, q.text, j);
|
|
57014
57014
|
var J = j.line;
|
|
@@ -57082,7 +57082,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57082
57082
|
x(ft, J), q = ft;
|
|
57083
57083
|
}
|
|
57084
57084
|
}
|
|
57085
|
-
function
|
|
57085
|
+
function bl(p, m, y) {
|
|
57086
57086
|
for (var v, x, S = p.doc, P = y ? -1 : m - (p.doc.mode.innerMode ? 1e3 : 100), j = m; j > P; --j) {
|
|
57087
57087
|
if (j <= S.first)
|
|
57088
57088
|
return S.first;
|
|
@@ -57161,7 +57161,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57161
57161
|
}
|
|
57162
57162
|
return v;
|
|
57163
57163
|
}
|
|
57164
|
-
function
|
|
57164
|
+
function wl(p, m) {
|
|
57165
57165
|
if (m.full)
|
|
57166
57166
|
return null;
|
|
57167
57167
|
var y = ba(p, m.from.line) && $t(p, m.from.line).markedSpans, v = ba(p, m.to.line) && $t(p, m.to.line).markedSpans;
|
|
@@ -57243,7 +57243,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57243
57243
|
function Wc(p) {
|
|
57244
57244
|
return p.inclusiveLeft ? -1 : 0;
|
|
57245
57245
|
}
|
|
57246
|
-
function
|
|
57246
|
+
function xl(p) {
|
|
57247
57247
|
return p.inclusiveRight ? 1 : 0;
|
|
57248
57248
|
}
|
|
57249
57249
|
function Gc(p, m) {
|
|
@@ -57253,7 +57253,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57253
57253
|
var v = p.find(), x = m.find(), S = Ln(v.from, x.from) || Wc(p) - Wc(m);
|
|
57254
57254
|
if (S)
|
|
57255
57255
|
return -S;
|
|
57256
|
-
var P = Ln(v.to, x.to) ||
|
|
57256
|
+
var P = Ln(v.to, x.to) || xl(p) - xl(m);
|
|
57257
57257
|
return P || m.id - p.id;
|
|
57258
57258
|
}
|
|
57259
57259
|
function As(p, m) {
|
|
@@ -57284,7 +57284,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57284
57284
|
for (var j = 0; j < P.length; ++j) {
|
|
57285
57285
|
var q = P[j];
|
|
57286
57286
|
if (q.marker.collapsed) {
|
|
57287
|
-
var J = q.marker.find(0), me = Ln(J.from, y) || Wc(q.marker) - Wc(x), ke = Ln(J.to, v) ||
|
|
57287
|
+
var J = q.marker.find(0), me = Ln(J.from, y) || Wc(q.marker) - Wc(x), ke = Ln(J.to, v) || xl(q.marker) - xl(x);
|
|
57288
57288
|
if (!(me >= 0 && ke <= 0 || me <= 0 && ke >= 0) && (me <= 0 && (q.marker.inclusiveRight && x.inclusiveLeft ? Ln(J.to, y) >= 0 : Ln(J.to, y) > 0) || me >= 0 && (q.marker.inclusiveRight && x.inclusiveLeft ? Ln(J.from, v) <= 0 : Ln(J.from, v) < 0)))
|
|
57289
57289
|
return !0;
|
|
57290
57290
|
}
|
|
@@ -57532,9 +57532,9 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57532
57532
|
break;
|
|
57533
57533
|
for (var fc = Math.min(j, Be); ; ) {
|
|
57534
57534
|
if (me) {
|
|
57535
|
-
var
|
|
57535
|
+
var Cl = q + me.length;
|
|
57536
57536
|
if (!ln) {
|
|
57537
|
-
var da =
|
|
57537
|
+
var da = Cl > fc ? me.slice(0, fc - q) : me;
|
|
57538
57538
|
m.addToken(
|
|
57539
57539
|
m,
|
|
57540
57540
|
da,
|
|
@@ -57545,11 +57545,11 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57545
57545
|
fn
|
|
57546
57546
|
);
|
|
57547
57547
|
}
|
|
57548
|
-
if (
|
|
57548
|
+
if (Cl >= fc) {
|
|
57549
57549
|
me = me.slice(fc - q), q = fc;
|
|
57550
57550
|
break;
|
|
57551
57551
|
}
|
|
57552
|
-
q =
|
|
57552
|
+
q = Cl, Ht = "";
|
|
57553
57553
|
}
|
|
57554
57554
|
me = x.slice(S, S = y[J++]), ke = mm(y[J++], m.cm.options);
|
|
57555
57555
|
}
|
|
@@ -57720,7 +57720,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
57720
57720
|
}
|
|
57721
57721
|
return p.height = p.node.parentNode.offsetHeight;
|
|
57722
57722
|
}
|
|
57723
|
-
function
|
|
57723
|
+
function kl(p, m) {
|
|
57724
57724
|
for (var y = Ce(m); y != p.wrapper; y = y.parentNode)
|
|
57725
57725
|
if (!y || y.nodeType == 1 && y.getAttribute("cm-ignore-events") == "true" || y.parentNode == p.sizer && y != p.mover)
|
|
57726
57726
|
return !0;
|
|
@@ -58242,24 +58242,24 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
58242
58242
|
}
|
|
58243
58243
|
function ke(cn, kn, Wn) {
|
|
58244
58244
|
var jn = $t(x, cn), Ei = jn.text.length, qr, Ya;
|
|
58245
|
-
function ko(da,
|
|
58246
|
-
return Z(p, At(cn, da), "div", jn,
|
|
58245
|
+
function ko(da, Sl) {
|
|
58246
|
+
return Z(p, At(cn, da), "div", jn, Sl);
|
|
58247
58247
|
}
|
|
58248
|
-
function fc(da,
|
|
58249
|
-
var Ca = Xe(p, jn, null, da), ua =
|
|
58248
|
+
function fc(da, Sl, gs) {
|
|
58249
|
+
var Ca = Xe(p, jn, null, da), ua = Sl == "ltr" == (gs == "after") ? "left" : "right", No = gs == "after" ? Ca.begin : Ca.end - (/\s/.test(jn.text.charAt(Ca.end - 1)) ? 2 : 1);
|
|
58250
58250
|
return ko(No, ua)[ua];
|
|
58251
58251
|
}
|
|
58252
|
-
var
|
|
58253
|
-
return _n(
|
|
58254
|
-
var ua = gs == "ltr", No = ko(da, ua ? "left" : "right"),
|
|
58255
|
-
if (
|
|
58256
|
-
var Xa = (J ? xv : cg) && Ms, GS = (J ? cg : xv) && np, eh = Xa ? j : (ua ? No :
|
|
58252
|
+
var Cl = ne(jn, x.direction);
|
|
58253
|
+
return _n(Cl, kn || 0, Wn ?? Ei, function(da, Sl, gs, Ca) {
|
|
58254
|
+
var ua = gs == "ltr", No = ko(da, ua ? "left" : "right"), Tl = ko(Sl - 1, ua ? "right" : "left"), xv = kn == null && da == 0, cg = Wn == null && Sl == Ei, Ms = Ca == 0, np = !Cl || Ca == Cl.length - 1;
|
|
58255
|
+
if (Tl.top - No.top <= 3) {
|
|
58256
|
+
var Xa = (J ? xv : cg) && Ms, GS = (J ? cg : xv) && np, eh = Xa ? j : (ua ? No : Tl).left, Tm = GS ? q : (ua ? Tl : No).right;
|
|
58257
58257
|
me(eh, No.top, Tm - eh, No.bottom);
|
|
58258
58258
|
} else {
|
|
58259
58259
|
var Em, Ys, kv, KS;
|
|
58260
|
-
ua ? (Em = J && xv && Ms ? j : No.left, Ys = J ? q : fc(da, gs, "before"), kv = J ? j : fc(
|
|
58260
|
+
ua ? (Em = J && xv && Ms ? j : No.left, Ys = J ? q : fc(da, gs, "before"), kv = J ? j : fc(Sl, gs, "after"), KS = J && cg && np ? q : Tl.right) : (Em = J ? fc(da, gs, "before") : j, Ys = !J && xv && Ms ? q : No.right, kv = !J && cg && np ? j : Tl.left, KS = J ? fc(Sl, gs, "after") : q), me(Em, No.top, Ys - Em, No.bottom), No.bottom < Tl.top && me(j, No.bottom, null, Tl.top), me(kv, Tl.top, KS - kv, Tl.bottom);
|
|
58261
58261
|
}
|
|
58262
|
-
(!qr || ca(No, qr) < 0) && (qr = No), ca(
|
|
58262
|
+
(!qr || ca(No, qr) < 0) && (qr = No), ca(Tl, qr) < 0 && (qr = Tl), (!Ya || ca(No, Ya) < 0) && (Ya = No), ca(Tl, Ya) < 0 && (Ya = Tl);
|
|
58263
58263
|
}), { start: qr, end: Ya };
|
|
58264
58264
|
}
|
|
58265
58265
|
var Ge = m.from(), Be = m.to();
|
|
@@ -59129,7 +59129,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
59129
59129
|
return v;
|
|
59130
59130
|
}
|
|
59131
59131
|
function gI(p, m) {
|
|
59132
|
-
var y = KZ(p, m), v =
|
|
59132
|
+
var y = KZ(p, m), v = wl(p, m);
|
|
59133
59133
|
if (!y)
|
|
59134
59134
|
return v;
|
|
59135
59135
|
if (!v)
|
|
@@ -59301,10 +59301,10 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
59301
59301
|
function CI(p, m) {
|
|
59302
59302
|
if (!(m.text.length == 1 && m.text[0] == "" && Ln(m.from, m.to) == 0)) {
|
|
59303
59303
|
var y = MS(p, m);
|
|
59304
|
-
pI(p, m, y, p.cm ? p.cm.curOp.id : NaN), Fb(p, m, y,
|
|
59304
|
+
pI(p, m, y, p.cm ? p.cm.curOp.id : NaN), Fb(p, m, y, wl(p, m));
|
|
59305
59305
|
var v = [];
|
|
59306
59306
|
ag(p, function(x, S) {
|
|
59307
|
-
!S && ot(v, x.history) == -1 && (AI(x.history, m), v.push(x.history)), Fb(x, m, null,
|
|
59307
|
+
!S && ot(v, x.history) == -1 && (AI(x.history, m), v.push(x.history)), Fb(x, m, null, wl(x, m));
|
|
59308
59308
|
});
|
|
59309
59309
|
}
|
|
59310
59310
|
}
|
|
@@ -59745,15 +59745,15 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
59745
59745
|
}
|
|
59746
59746
|
}, y = 0; y < p.length; y++) m(y);
|
|
59747
59747
|
}
|
|
59748
|
-
var tQ = 0,
|
|
59749
|
-
if (!(this instanceof
|
|
59750
|
-
return new
|
|
59748
|
+
var tQ = 0, _l = function(p, m, y, v, x) {
|
|
59749
|
+
if (!(this instanceof _l))
|
|
59750
|
+
return new _l(p, m, y, v, x);
|
|
59751
59751
|
y == null && (y = 0), Hb.call(this, [new jb([new Wo("", null)])]), this.first = y, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = y;
|
|
59752
59752
|
var S = At(y, 0);
|
|
59753
59753
|
this.sel = rg(S), this.history = new l1(null), this.id = ++tQ, this.modeOption = m, this.lineSep = v, this.direction = x == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof p == "string" && (p = this.splitLines(p)), NS(this, { from: S, to: S, text: p }), Is(this, rg(S), it);
|
|
59754
59754
|
};
|
|
59755
|
-
|
|
59756
|
-
constructor:
|
|
59755
|
+
_l.prototype = Y(Hb.prototype, {
|
|
59756
|
+
constructor: _l,
|
|
59757
59757
|
// Iterate over the document. Supports two forms -- with only one
|
|
59758
59758
|
// argument, it calls that for each line in the document. With
|
|
59759
59759
|
// three, it iterates over the range given by the first two (with
|
|
@@ -60070,7 +60070,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60070
60070
|
}), m;
|
|
60071
60071
|
},
|
|
60072
60072
|
copy: function(p) {
|
|
60073
|
-
var m = new
|
|
60073
|
+
var m = new _l(
|
|
60074
60074
|
Wi(this, this.first, this.first + this.size),
|
|
60075
60075
|
this.modeOption,
|
|
60076
60076
|
this.first,
|
|
@@ -60083,7 +60083,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60083
60083
|
p || (p = {});
|
|
60084
60084
|
var m = this.first, y = this.first + this.size;
|
|
60085
60085
|
p.from != null && p.from > m && (m = p.from), p.to != null && p.to < y && (y = p.to);
|
|
60086
|
-
var v = new
|
|
60086
|
+
var v = new _l(Wi(this, m, y), p.mode || this.modeOption, m, this.lineSep, this.direction);
|
|
60087
60087
|
return p.sharedHist && (v.history = this.history), (this.linked || (this.linked = [])).push({ doc: v, sharedHist: p.sharedHist }), v.linked = [{ doc: this, isParent: !0, sharedHist: p.sharedHist }], QZ(v, II(this)), v;
|
|
60088
60088
|
},
|
|
60089
60089
|
unlinkDoc: function(p) {
|
|
@@ -60123,11 +60123,11 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60123
60123
|
return m.order = null;
|
|
60124
60124
|
}), this.cm && VZ(this.cm));
|
|
60125
60125
|
})
|
|
60126
|
-
}),
|
|
60126
|
+
}), _l.prototype.eachLine = _l.prototype.iter;
|
|
60127
60127
|
var MI = 0;
|
|
60128
60128
|
function nQ(p) {
|
|
60129
60129
|
var m = this;
|
|
60130
|
-
if (PI(m), !(Bt(m, p) ||
|
|
60130
|
+
if (PI(m), !(Bt(m, p) || kl(m.display, p))) {
|
|
60131
60131
|
ui(p), s && (MI = +/* @__PURE__ */ new Date());
|
|
60132
60132
|
var y = rn(m, p, !0), v = p.dataTransfer.files;
|
|
60133
60133
|
if (!(!y || m.isReadOnly()))
|
|
@@ -60191,7 +60191,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60191
60191
|
ae(m);
|
|
60192
60192
|
return;
|
|
60193
60193
|
}
|
|
60194
|
-
if (!(Bt(p, m) ||
|
|
60194
|
+
if (!(Bt(p, m) || kl(p.display, m)) && (m.dataTransfer.setData("Text", p.getSelection()), m.dataTransfer.effectAllowed = "copyMove", m.dataTransfer.setDragImage && !g)) {
|
|
60195
60195
|
var y = W("img", null, null, "position: fixed; left: 0; top: 0;");
|
|
60196
60196
|
y.src = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", h && (y.width = y.height = 1, p.display.wrapper.appendChild(y), y._top = y.offsetTop), m.dataTransfer.setDragImage(y, 0, 0), h && y.parentNode.removeChild(y);
|
|
60197
60197
|
}
|
|
@@ -60876,7 +60876,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60876
60876
|
}
|
|
60877
60877
|
function qI(p) {
|
|
60878
60878
|
var m = this;
|
|
60879
|
-
if (!(p.target && p.target != m.display.input.getField()) && !(
|
|
60879
|
+
if (!(p.target && p.target != m.display.input.getField()) && !(kl(m.display, p) || Bt(m, p) || p.ctrlKey && !p.altKey || C && p.metaKey)) {
|
|
60880
60880
|
var y = p.keyCode, v = p.charCode;
|
|
60881
60881
|
if (h && y == jS) {
|
|
60882
60882
|
jS = null, ui(p);
|
|
@@ -60902,7 +60902,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60902
60902
|
function WI(p) {
|
|
60903
60903
|
var m = this, y = m.display;
|
|
60904
60904
|
if (!(Bt(m, p) || y.activeTouch && y.input.supportsTouch())) {
|
|
60905
|
-
if (y.input.ensurePolled(), y.shift = p.shiftKey,
|
|
60905
|
+
if (y.input.ensurePolled(), y.shift = p.shiftKey, kl(y, p)) {
|
|
60906
60906
|
c || (y.scroller.draggable = !1, setTimeout(function() {
|
|
60907
60907
|
return y.scroller.draggable = !0;
|
|
60908
60908
|
}, 100));
|
|
@@ -60992,8 +60992,8 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
60992
60992
|
if (Ln(ke, cn) != 0)
|
|
60993
60993
|
if (ke = cn, v.unit == "rectangle") {
|
|
60994
60994
|
for (var kn = [], Wn = p.options.tabSize, jn = Te($t(S, y.line).text, y.ch, Wn), Ei = Te($t(S, cn.line).text, cn.ch, Wn), qr = Math.min(jn, Ei), Ya = Math.max(jn, Ei), ko = Math.min(y.line, cn.line), fc = Math.min(p.lastLine(), Math.max(y.line, cn.line)); ko <= fc; ko++) {
|
|
60995
|
-
var
|
|
60996
|
-
qr == Ya ? kn.push(new xr(At(ko, da), At(ko, da))) :
|
|
60995
|
+
var Cl = $t(S, ko).text, da = vt(Cl, qr, Wn);
|
|
60996
|
+
qr == Ya ? kn.push(new xr(At(ko, da), At(ko, da))) : Cl.length > da && kn.push(new xr(At(ko, da), At(ko, vt(Cl, Ya, Wn))));
|
|
60997
60997
|
}
|
|
60998
60998
|
kn.length || kn.push(new xr(y, y)), Is(
|
|
60999
60999
|
S,
|
|
@@ -61001,8 +61001,8 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
61001
61001
|
{ origin: "*mouse", scroll: !1 }
|
|
61002
61002
|
), p.scrollIntoView(cn);
|
|
61003
61003
|
} else {
|
|
61004
|
-
var
|
|
61005
|
-
Ln(gs.anchor, Ca) > 0 ? (ua = gs.head, Ca = mt(
|
|
61004
|
+
var Sl = P, gs = GI(p, cn, v.unit), Ca = Sl.anchor, ua;
|
|
61005
|
+
Ln(gs.anchor, Ca) > 0 ? (ua = gs.head, Ca = mt(Sl.from(), gs.anchor)) : (ua = gs.anchor, Ca = ue(Sl.to(), gs.head));
|
|
61006
61006
|
var No = q.ranges.slice(0);
|
|
61007
61007
|
No[j] = _Q(p, new xr(Pt(S, Ca), ua)), Is(S, bu(p, No, j), Ke);
|
|
61008
61008
|
}
|
|
@@ -61084,7 +61084,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
61084
61084
|
return KI(p, m, "gutterClick", !0);
|
|
61085
61085
|
}
|
|
61086
61086
|
function YI(p, m) {
|
|
61087
|
-
|
|
61087
|
+
kl(p.display, m) || CQ(p, m) || Bt(p, m, "contextmenu") || H || p.display.input.onContextMenu(m);
|
|
61088
61088
|
}
|
|
61089
61089
|
function CQ(p, m) {
|
|
61090
61090
|
return Zn(p, "gutterContextMenu") ? KI(p, m, "gutterContextMenu", !1) : !1;
|
|
@@ -61188,7 +61188,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
61188
61188
|
return new po(p, m);
|
|
61189
61189
|
this.options = m = m ? ye(m) : {}, ye(JI, m, !1);
|
|
61190
61190
|
var v = m.value;
|
|
61191
|
-
typeof v == "string" ? v = new
|
|
61191
|
+
typeof v == "string" ? v = new _l(v, m.mode, null, m.lineSeparator, m.direction) : m.mode && (v.modeOption = m.mode), this.doc = v;
|
|
61192
61192
|
var x = new po.inputStyles[m.inputStyle](this), S = this.display = new zZ(p, v, x, m);
|
|
61193
61193
|
S.wrapper.CodeMirror = this, XI(this), m.lineWrapping && (this.display.wrapper.className += " CodeMirror-wrap"), QD(this), this.state = {
|
|
61194
61194
|
keyMaps: [],
|
|
@@ -61230,7 +61230,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
61230
61230
|
je(m.scroller, "mousedown", Ga(p, WI)), s && l < 11 ? je(m.scroller, "dblclick", Ga(p, function(q) {
|
|
61231
61231
|
if (!Bt(p, q)) {
|
|
61232
61232
|
var J = rn(p, q);
|
|
61233
|
-
if (!(!J || VS(p, q) ||
|
|
61233
|
+
if (!(!J || VS(p, q) || kl(p.display, q))) {
|
|
61234
61234
|
ui(q);
|
|
61235
61235
|
var me = p.findWordAt(J);
|
|
61236
61236
|
d1(p.doc, me.anchor, me.head);
|
|
@@ -61275,7 +61275,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
61275
61275
|
m.activeTouch && (m.activeTouch.moved = !0);
|
|
61276
61276
|
}), je(m.scroller, "touchend", function(q) {
|
|
61277
61277
|
var J = m.activeTouch;
|
|
61278
|
-
if (J && !
|
|
61278
|
+
if (J && !kl(m, q) && J.left != null && !J.moved && /* @__PURE__ */ new Date() - J.start < 300) {
|
|
61279
61279
|
var me = p.coordsChar(m.activeTouch, "page"), ke;
|
|
61280
61280
|
!J.prev || P(J, J.prev) ? ke = new xr(me, me) : !J.prev.prev || P(J, J.prev.prev) ? ke = p.findWordAt(me) : ke = new xr(At(me.line, 0), Pt(p.doc, At(me.line + 1, 0))), p.setSelection(ke.anchor, ke.head), p.focus(), ui(q);
|
|
61281
61281
|
}
|
|
@@ -62154,7 +62154,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
62154
62154
|
}
|
|
62155
62155
|
}
|
|
62156
62156
|
je(x, "cut", S), je(x, "copy", S), je(p.scroller, "paste", function(P) {
|
|
62157
|
-
if (!(
|
|
62157
|
+
if (!(kl(p, P) || Bt(v, P))) {
|
|
62158
62158
|
if (!x.dispatchEvent) {
|
|
62159
62159
|
v.state.pasteIncoming = +/* @__PURE__ */ new Date(), y.focus();
|
|
62160
62160
|
return;
|
|
@@ -62163,7 +62163,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
62163
62163
|
j.clipboardData = P.clipboardData, x.dispatchEvent(j);
|
|
62164
62164
|
}
|
|
62165
62165
|
}), je(p.lineSpace, "selectstart", function(P) {
|
|
62166
|
-
|
|
62166
|
+
kl(p, P) || ui(P);
|
|
62167
62167
|
}), je(x, "compositionstart", function() {
|
|
62168
62168
|
var P = v.getCursor("from");
|
|
62169
62169
|
y.composing && y.composing.range.clear(), y.composing = {
|
|
@@ -62342,17 +62342,17 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
62342
62342
|
return j;
|
|
62343
62343
|
}
|
|
62344
62344
|
function NQ(p) {
|
|
62345
|
-
p.off = Jt, p.on = je, p.wheelEventPixels = jZ, p.Doc =
|
|
62345
|
+
p.off = Jt, p.on = je, p.wheelEventPixels = jZ, p.Doc = _l, p.splitLines = ii, p.countColumn = Te, p.findColumn = vt, p.isWordChar = be, p.Pass = tt, p.signal = pt, p.Line = Wo, p.changeEnd = og, p.scrollbarModel = ZD, p.Pos = At, p.cmpPos = Ln, p.modes = aa, p.mimeModes = ji, p.resolveMode = $r, p.getMode = Nn, p.modeExtensions = ja, p.extendMode = no, p.copyState = io, p.startState = sa, p.innerMode = Er, p.commands = Gb, p.keyMap = Qp, p.keyName = $I, p.isModifierKey = RI, p.lookupKey = vv, p.normalizeKeyMap = cQ, p.StringStream = Mi, p.SharedTextMarker = Ub, p.TextMarker = sg, p.LineWidget = Vb, p.e_preventDefault = ui, p.e_stopPropagation = Br, p.e_stop = ae, p.addClass = ce, p.contains = L, p.rmClass = X, p.keyNames = lg;
|
|
62346
62346
|
}
|
|
62347
62347
|
SQ(po), OQ(po);
|
|
62348
62348
|
var LQ = "iter insert remove copy getEditor constructor".split(" ");
|
|
62349
|
-
for (var w1 in
|
|
62350
|
-
|
|
62349
|
+
for (var w1 in _l.prototype)
|
|
62350
|
+
_l.prototype.hasOwnProperty(w1) && ot(LQ, w1) < 0 && (po.prototype[w1] = /* @__PURE__ */ function(p) {
|
|
62351
62351
|
return function() {
|
|
62352
62352
|
return p.apply(this.doc, arguments);
|
|
62353
62353
|
};
|
|
62354
|
-
}(
|
|
62355
|
-
return Dt(
|
|
62354
|
+
}(_l.prototype[w1]));
|
|
62355
|
+
return Dt(_l), po.inputStyles = { textarea: Ko, contenteditable: Mr }, po.defineMode = function(p) {
|
|
62356
62356
|
!po.defaults.mode && p != "null" && (po.defaults.mode = p), fr.apply(this, arguments);
|
|
62357
62357
|
}, po.defineMIME = li, po.defineMode("null", function() {
|
|
62358
62358
|
return { token: function(p) {
|
|
@@ -62361,7 +62361,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
62361
62361
|
}), po.defineMIME("text/plain", "null"), po.defineExtension = function(p, m) {
|
|
62362
62362
|
po.prototype[p] = m;
|
|
62363
62363
|
}, po.defineDocExtension = function(p, m) {
|
|
62364
|
-
|
|
62364
|
+
_l.prototype[p] = m;
|
|
62365
62365
|
}, po.fromTextArea = PQ, NQ(po), po.version = "5.63.0", po;
|
|
62366
62366
|
});
|
|
62367
62367
|
}
|
|
@@ -69308,7 +69308,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69308
69308
|
),
|
|
69309
69309
|
chunk: () => (
|
|
69310
69310
|
/* reexport */
|
|
69311
|
-
|
|
69311
|
+
kl
|
|
69312
69312
|
),
|
|
69313
69313
|
clone: () => (
|
|
69314
69314
|
/* reexport */
|
|
@@ -69324,7 +69324,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69324
69324
|
),
|
|
69325
69325
|
compose: () => (
|
|
69326
69326
|
/* reexport */
|
|
69327
|
-
|
|
69327
|
+
wl
|
|
69328
69328
|
),
|
|
69329
69329
|
constant: () => (
|
|
69330
69330
|
/* reexport */
|
|
@@ -69404,7 +69404,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69404
69404
|
),
|
|
69405
69405
|
findIndex: () => (
|
|
69406
69406
|
/* reexport */
|
|
69407
|
-
|
|
69407
|
+
xl
|
|
69408
69408
|
),
|
|
69409
69409
|
findKey: () => (
|
|
69410
69410
|
/* reexport */
|
|
@@ -69684,7 +69684,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69684
69684
|
),
|
|
69685
69685
|
partial: () => (
|
|
69686
69686
|
/* reexport */
|
|
69687
|
-
|
|
69687
|
+
bl
|
|
69688
69688
|
),
|
|
69689
69689
|
partition: () => (
|
|
69690
69690
|
/* reexport */
|
|
@@ -69863,11 +69863,11 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69863
69863
|
bind: () => Xu,
|
|
69864
69864
|
bindAll: () => dc,
|
|
69865
69865
|
chain: () => pu,
|
|
69866
|
-
chunk: () =>
|
|
69866
|
+
chunk: () => kl,
|
|
69867
69867
|
clone: () => $r,
|
|
69868
69868
|
collect: () => la,
|
|
69869
69869
|
compact: () => eg,
|
|
69870
|
-
compose: () =>
|
|
69870
|
+
compose: () => wl,
|
|
69871
69871
|
constant: () => Gt,
|
|
69872
69872
|
contains: () => Wo,
|
|
69873
69873
|
countBy: () => Zu,
|
|
@@ -69887,7 +69887,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69887
69887
|
extendOwn: () => Do,
|
|
69888
69888
|
filter: () => Ws,
|
|
69889
69889
|
find: () => zn,
|
|
69890
|
-
findIndex: () =>
|
|
69890
|
+
findIndex: () => xl,
|
|
69891
69891
|
findKey: () => qa,
|
|
69892
69892
|
findLastIndex: () => Gc,
|
|
69893
69893
|
findWhere: () => Xr,
|
|
@@ -69957,7 +69957,7 @@ b`.split(/\n/).length != 3 ? function(p) {
|
|
|
69957
69957
|
omit: () => Ed,
|
|
69958
69958
|
once: () => Wp,
|
|
69959
69959
|
pairs: () => gr,
|
|
69960
|
-
partial: () =>
|
|
69960
|
+
partial: () => bl,
|
|
69961
69961
|
partition: () => fu,
|
|
69962
69962
|
pick: () => Qu,
|
|
69963
69963
|
pluck: () => gu,
|
|
@@ -70497,7 +70497,7 @@ __p+='`), ei;
|
|
|
70497
70497
|
return Ee;
|
|
70498
70498
|
});
|
|
70499
70499
|
_i.placeholder = ne;
|
|
70500
|
-
const
|
|
70500
|
+
const bl = _i, Xu = H(function(K, ie, xe) {
|
|
70501
70501
|
if (!Ae(K)) throw new TypeError("Bind must be called on a function");
|
|
70502
70502
|
var Ee = H(function(qe) {
|
|
70503
70503
|
return hu(K, Ee, ie, this, xe.concat(qe));
|
|
@@ -70541,7 +70541,7 @@ __p+='`), ei;
|
|
|
70541
70541
|
return setTimeout(function() {
|
|
70542
70542
|
return K.apply(null, xe);
|
|
70543
70543
|
}, ie);
|
|
70544
|
-
}), Va =
|
|
70544
|
+
}), Va = bl(ka, ne, 1);
|
|
70545
70545
|
function Mo(K, ie, xe) {
|
|
70546
70546
|
var Ee, qe, Le, ct, jt = 0;
|
|
70547
70547
|
xe || (xe = {});
|
|
@@ -70569,14 +70569,14 @@ __p+='`), ei;
|
|
|
70569
70569
|
}, ei;
|
|
70570
70570
|
}
|
|
70571
70571
|
function Uo(K, ie) {
|
|
70572
|
-
return
|
|
70572
|
+
return bl(ie, K);
|
|
70573
70573
|
}
|
|
70574
70574
|
function Ua(K) {
|
|
70575
70575
|
return function() {
|
|
70576
70576
|
return !K.apply(this, arguments);
|
|
70577
70577
|
};
|
|
70578
70578
|
}
|
|
70579
|
-
function
|
|
70579
|
+
function wl() {
|
|
70580
70580
|
var K = arguments, ie = K.length - 1;
|
|
70581
70581
|
return function() {
|
|
70582
70582
|
for (var xe = ie, Ee = K[ie].apply(this, arguments); xe--; ) Ee = K[xe].call(this, Ee);
|
|
@@ -70595,7 +70595,7 @@ __p+='`), ei;
|
|
|
70595
70595
|
return --K > 0 && (xe = ie.apply(this, arguments)), K <= 1 && (ie = null), xe;
|
|
70596
70596
|
};
|
|
70597
70597
|
}
|
|
70598
|
-
const Wp =
|
|
70598
|
+
const Wp = bl(qo, 2);
|
|
70599
70599
|
function qa(K, ie, xe) {
|
|
70600
70600
|
ie = Zi(ie, xe);
|
|
70601
70601
|
for (var Ee = Bn(K), qe, Le = 0, ct = Ee.length; Le < ct; Le++)
|
|
@@ -70609,7 +70609,7 @@ __p+='`), ei;
|
|
|
70609
70609
|
return -1;
|
|
70610
70610
|
};
|
|
70611
70611
|
}
|
|
70612
|
-
const
|
|
70612
|
+
const xl = Wc(1), Gc = Wc(-1);
|
|
70613
70613
|
function As(K, ie, xe, Ee) {
|
|
70614
70614
|
xe = Zi(xe, Ee, 1);
|
|
70615
70615
|
for (var qe = xe(ie), Le = 0, ct = Ne(K); Le < ct; ) {
|
|
@@ -70632,9 +70632,9 @@ __p+='`), ei;
|
|
|
70632
70632
|
return -1;
|
|
70633
70633
|
};
|
|
70634
70634
|
}
|
|
70635
|
-
const Mn = In(1,
|
|
70635
|
+
const Mn = In(1, xl, As), Bi = In(-1, Gc);
|
|
70636
70636
|
function zn(K, ie, xe) {
|
|
70637
|
-
var Ee = Io(K) ?
|
|
70637
|
+
var Ee = Io(K) ? xl : qa, qe = Ee(K, ie, xe);
|
|
70638
70638
|
if (qe !== void 0 && qe !== -1) return K[qe];
|
|
70639
70639
|
}
|
|
70640
70640
|
function Xr(K, ie) {
|
|
@@ -70884,7 +70884,7 @@ __p+='`), ei;
|
|
|
70884
70884
|
qe[Le] = K;
|
|
70885
70885
|
return qe;
|
|
70886
70886
|
}
|
|
70887
|
-
function
|
|
70887
|
+
function kl(K, ie) {
|
|
70888
70888
|
if (ie == null || ie < 1) return [];
|
|
70889
70889
|
for (var xe = [], Ee = 0, qe = K.length; Ee < qe; )
|
|
70890
70890
|
xe.push(d.call(K, Ee, Ee += ie));
|
|
@@ -72826,7 +72826,7 @@ var pTt = (
|
|
|
72826
72826
|
(o || !(i in e)) && (o || (o = Array.prototype.slice.call(e, 0, i)), o[i] = e[i]);
|
|
72827
72827
|
return n.concat(o || Array.prototype.slice.call(e));
|
|
72828
72828
|
}, af = function(n) {
|
|
72829
|
-
return (0, Q.isArray)(n.get(
|
|
72829
|
+
return (0, Q.isArray)(n.get(Ll));
|
|
72830
72830
|
}, L_ = function(n) {
|
|
72831
72831
|
return !!n.get(_c);
|
|
72832
72832
|
}, Pp = function(n) {
|
|
@@ -72844,7 +72844,7 @@ var pTt = (
|
|
|
72844
72844
|
}
|
|
72845
72845
|
return e || void 0;
|
|
72846
72846
|
}, Mc = function(n) {
|
|
72847
|
-
var e = n?.get(
|
|
72847
|
+
var e = n?.get(Ll);
|
|
72848
72848
|
return e && (0, Q.isArray)(e) && (e.forEach(function(t, i) {
|
|
72849
72849
|
t && (0, Q.isString)(t) && (e[i] = n.__getAllById()[t]);
|
|
72850
72850
|
}), e = e.filter(function(t) {
|
|
@@ -72875,7 +72875,7 @@ var pTt = (
|
|
|
72875
72875
|
}, uS = function(n, e) {
|
|
72876
72876
|
e === void 0 && (e = {});
|
|
72877
72877
|
var t = Jd(n), i = t && Mc(t);
|
|
72878
|
-
!e.skipRefs && i && t.set(
|
|
72878
|
+
!e.skipRefs && i && t.set(Ll, i.filter(function(r) {
|
|
72879
72879
|
return r !== n;
|
|
72880
72880
|
})), n.set(_c, 0), n.components().forEach(function(r) {
|
|
72881
72881
|
return uS(r, e);
|
|
@@ -72895,7 +72895,7 @@ var pTt = (
|
|
|
72895
72895
|
});
|
|
72896
72896
|
}
|
|
72897
72897
|
}, vTt = function(n, e) {
|
|
72898
|
-
var t = ["status", "open",
|
|
72898
|
+
var t = ["status", "open", Ll, _c, dy, "attributes"];
|
|
72899
72899
|
t.forEach(function(i) {
|
|
72900
72900
|
return delete n[i];
|
|
72901
72901
|
}), delete e.id, (0, xt.isEmptyObj)(e) || (n.attributes = e);
|
|
@@ -72945,7 +72945,7 @@ var pTt = (
|
|
|
72945
72945
|
});
|
|
72946
72946
|
} else {
|
|
72947
72947
|
var w = Jd(e);
|
|
72948
|
-
if (w && !i.temporary && w.set(
|
|
72948
|
+
if (w && !i.temporary && w.set(Ll, Mc(w).filter(function(V) {
|
|
72949
72949
|
return V !== e;
|
|
72950
72950
|
})), !Uf(e) && !i.skipRefsUp) {
|
|
72951
72951
|
var k = "components:remove", E = i.index, C = e.parent(), T = Qs({ fromInstance: e }, i), M = Uf(e), z = function(H) {
|
|
@@ -73409,14 +73409,14 @@ var $_ = function() {
|
|
|
73409
73409
|
}
|
|
73410
73410
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
73411
73411
|
};
|
|
73412
|
-
}(),
|
|
73413
|
-
return
|
|
73412
|
+
}(), Dl = function() {
|
|
73413
|
+
return Dl = Object.assign || function(n) {
|
|
73414
73414
|
for (var e, t = 1, i = arguments.length; t < i; t++) {
|
|
73415
73415
|
e = arguments[t];
|
|
73416
73416
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
73417
73417
|
}
|
|
73418
73418
|
return n;
|
|
73419
|
-
},
|
|
73419
|
+
}, Dl.apply(this, arguments);
|
|
73420
73420
|
}, ITt = lG(), n4 = function(n) {
|
|
73421
73421
|
return (0, Q.isArray)(n) ? n[n.length - 1] : n;
|
|
73422
73422
|
}, MTt = (
|
|
@@ -73426,25 +73426,25 @@ var $_ = function() {
|
|
|
73426
73426
|
function e(t, i) {
|
|
73427
73427
|
i === void 0 && (i = {});
|
|
73428
73428
|
var r = this, o = i.em, a = new OTt(void 0, { em: o });
|
|
73429
|
-
return r = n.call(this, t,
|
|
73429
|
+
return r = n.call(this, t, Dl(Dl({}, i), { dataResolverWatchers: a })) || this, r.views = [], r.collectionsStateMap = {}, a.bindModel(r), a.setStyles(r.get("style")), r.dataResolverWatchers = a, r.em = i.em, r;
|
|
73430
73430
|
}
|
|
73431
73431
|
return e.prototype.parseStyle = function(t) {
|
|
73432
73432
|
return ITt.parseStyle(t);
|
|
73433
73433
|
}, e.prototype.extendStyle = function(t) {
|
|
73434
|
-
return
|
|
73434
|
+
return Dl(Dl({}, this.getStyle("", { skipResolve: !0 })), t);
|
|
73435
73435
|
}, e.prototype.getStyle = function(t, i) {
|
|
73436
73436
|
i === void 0 && (i = {});
|
|
73437
|
-
var r =
|
|
73437
|
+
var r = Dl({}, this.get("style") || {});
|
|
73438
73438
|
if (delete r.__p, !i.skipResolve)
|
|
73439
|
-
return t && (0, Q.isString)(t) ?
|
|
73440
|
-
var o =
|
|
73439
|
+
return t && (0, Q.isString)(t) ? Dl({}, r)[t] : Dl({}, r);
|
|
73440
|
+
var o = Dl(Dl({}, r), this.dataResolverWatchers.getDynamicStylesDefs());
|
|
73441
73441
|
return t && (0, Q.isString)(t) ? o[t] : o;
|
|
73442
73442
|
}, e.prototype.setStyle = function(t, i) {
|
|
73443
73443
|
var r = this;
|
|
73444
73444
|
t === void 0 && (t = {}), i === void 0 && (i = {}), (0, Q.isString)(t) && (t = this.parseStyle(t));
|
|
73445
73445
|
var o = this.getStyle("", { skipResolve: !0 });
|
|
73446
73446
|
i.partial || i.avoidStore ? (i.avoidStore = !0, t.__p = !0) : delete t.__p;
|
|
73447
|
-
var a =
|
|
73447
|
+
var a = Dl({}, t), s = Dl({}, a);
|
|
73448
73448
|
(0, Q.keys)(s).forEach(function(d) {
|
|
73449
73449
|
if (s[d] === "") {
|
|
73450
73450
|
delete s[d];
|
|
@@ -73453,7 +73453,7 @@ var $_ = function() {
|
|
|
73453
73453
|
}), s = this.dataResolverWatchers.setStyles(s, i), this.set("style", s, i);
|
|
73454
73454
|
var l = Object.keys((0, xt.shallowDiff)(o, a)), c = l.reduce(function(d, u) {
|
|
73455
73455
|
var h;
|
|
73456
|
-
return
|
|
73456
|
+
return Dl(Dl({}, d), (h = {}, h[u] = s[u], h));
|
|
73457
73457
|
}, {});
|
|
73458
73458
|
return delete c.__p, (0, Q.keys)(c).forEach(function(d) {
|
|
73459
73459
|
var u = r.em;
|
|
@@ -73810,7 +73810,7 @@ var LTt = /* @__PURE__ */ function() {
|
|
|
73810
73810
|
}, e.TYPE_CLASS = Q1, e.TYPE_ID = AE, e;
|
|
73811
73811
|
}(Vt.Kx)
|
|
73812
73812
|
);
|
|
73813
|
-
const
|
|
73813
|
+
const $l = vG;
|
|
73814
73814
|
vG.prototype.idAttribute = "name";
|
|
73815
73815
|
var RTt = /* @__PURE__ */ function() {
|
|
73816
73816
|
var n = function(e, t) {
|
|
@@ -73841,7 +73841,7 @@ var RTt = /* @__PURE__ */ function() {
|
|
|
73841
73841
|
return n !== null && n.apply(this, arguments) || this;
|
|
73842
73842
|
}
|
|
73843
73843
|
return e.prototype.modelId = function(t) {
|
|
73844
|
-
return "".concat(t.name, "_").concat(t.type ||
|
|
73844
|
+
return "".concat(t.name, "_").concat(t.type || $l.TYPE_CLASS);
|
|
73845
73845
|
}, e.prototype.getStyleable = function() {
|
|
73846
73846
|
return (0, Q.filter)(this.models, function(t) {
|
|
73847
73847
|
return t.getActive() && !t.get("private");
|
|
@@ -73871,7 +73871,7 @@ var RTt = /* @__PURE__ */ function() {
|
|
|
73871
73871
|
}(Vt.pM)
|
|
73872
73872
|
);
|
|
73873
73873
|
const Bg = bG;
|
|
73874
|
-
bG.prototype.model =
|
|
73874
|
+
bG.prototype.model = $l;
|
|
73875
73875
|
var BTt = /* @__PURE__ */ function() {
|
|
73876
73876
|
var n = function(e, t) {
|
|
73877
73877
|
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
@@ -74337,7 +74337,7 @@ var GTt = /* @__PURE__ */ function() {
|
|
|
74337
74337
|
return n.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
|
|
74338
74338
|
}, Gv = function(n) {
|
|
74339
74339
|
return !!n?.getConfig().avoidInlineStyle;
|
|
74340
|
-
}, b7 = "component:drag",
|
|
74340
|
+
}, b7 = "component:drag", Ll = "__symbols", _c = "__symbol", dy = "__symbol_ovrd", Zk = yr.I.update, r4 = yr.I.updateInside, YTt = (
|
|
74341
74341
|
/** @class */
|
|
74342
74342
|
function(n) {
|
|
74343
74343
|
GTt(e, n);
|
|
@@ -74413,7 +74413,7 @@ var GTt = /* @__PURE__ */ function() {
|
|
|
74413
74413
|
dmode: "",
|
|
74414
74414
|
toolbar: null,
|
|
74415
74415
|
delegate: null
|
|
74416
|
-
}, t[_c] = 0, t[
|
|
74416
|
+
}, t[_c] = 0, t[Ll] = 0, t[dy] = 0, t._undo = !0, t._undoexc = ["status", "open"], t;
|
|
74417
74417
|
},
|
|
74418
74418
|
enumerable: !1,
|
|
74419
74419
|
configurable: !0
|
|
@@ -74716,7 +74716,7 @@ var GTt = /* @__PURE__ */ function() {
|
|
|
74716
74716
|
}, e.prototype.removeClass = function(t) {
|
|
74717
74717
|
var i = [];
|
|
74718
74718
|
t = (0, Q.isArray)(t) ? t : [t];
|
|
74719
|
-
var r = this.classes, o =
|
|
74719
|
+
var r = this.classes, o = $l.TYPE_CLASS;
|
|
74720
74720
|
return t.forEach(function(a) {
|
|
74721
74721
|
var s = a.split(" ");
|
|
74722
74722
|
s.forEach(function(l) {
|
|
@@ -74864,16 +74864,16 @@ var GTt = /* @__PURE__ */ function() {
|
|
|
74864
74864
|
u.forEach(function(w) {
|
|
74865
74865
|
var k = w.clone();
|
|
74866
74866
|
k.set("selectors", [d]), l.getAll().add(k);
|
|
74867
|
-
}), c.set(
|
|
74867
|
+
}), c.set(Ll, 0);
|
|
74868
74868
|
var h = Jd(this), g = Mc(this);
|
|
74869
74869
|
if (!t.symbol && (h || g))
|
|
74870
|
-
c.set(_c, 0), c.set(
|
|
74870
|
+
c.set(_c, 0), c.set(Ll, 0);
|
|
74871
74871
|
else if (h) {
|
|
74872
74872
|
var f = (i = Mc(h)) !== null && i !== void 0 ? i : [];
|
|
74873
|
-
h.set(
|
|
74874
|
-
} else t.symbol && (af(this) ? (this.set(
|
|
74873
|
+
h.set(Ll, xu(xu([], f, !0), [c], !1)), t0(c);
|
|
74874
|
+
} else t.symbol && (af(this) ? (this.set(Ll, xu(xu([], g, !0), [c], !1)), c.set(_c, this), t0(c)) : t.symbolInv ? (this.set(Ll, [c]), c.set(_c, this), [this, c].map(function(w) {
|
|
74875
74875
|
return t0(w);
|
|
74876
|
-
})) : (c.set(
|
|
74876
|
+
})) : (c.set(Ll, [this]), [this, c].map(function(w) {
|
|
74877
74877
|
return t0(w);
|
|
74878
74878
|
}), this.set(_c, c)));
|
|
74879
74879
|
var b = "component:clone";
|
|
@@ -74940,9 +74940,9 @@ var GTt = /* @__PURE__ */ function() {
|
|
|
74940
74940
|
}, e.prototype.toJSON = function(t) {
|
|
74941
74941
|
t === void 0 && (t = {});
|
|
74942
74942
|
var i = M_.Model.prototype.toJSON.call(this, t);
|
|
74943
|
-
if (i = $i($i({}, i), this.dataResolverWatchers.getDynamicPropsDefs()), i.attributes = this.dataResolverWatchers.getAttributesDefsOrValues(this.getAttributes()), delete i.dataResolverWatchers, delete i.attributes.class, delete i.toolbar, delete i.traits, delete i.status, delete i.open, delete i._undoexc, delete i.delegate, this.collectionsStateMap && Object.getOwnPropertyNames(this.collectionsStateMap).length > 0 && (delete i[_c], delete i[dy], delete i[
|
|
74944
|
-
var r = i[_c], o = i[
|
|
74945
|
-
o && (0, Q.isArray)(o) && (i[
|
|
74943
|
+
if (i = $i($i({}, i), this.dataResolverWatchers.getDynamicPropsDefs()), i.attributes = this.dataResolverWatchers.getAttributesDefsOrValues(this.getAttributes()), delete i.dataResolverWatchers, delete i.attributes.class, delete i.toolbar, delete i.traits, delete i.status, delete i.open, delete i._undoexc, delete i.delegate, this.collectionsStateMap && Object.getOwnPropertyNames(this.collectionsStateMap).length > 0 && (delete i[_c], delete i[dy], delete i[Ll], delete i.attributes.id), !t.fromUndo) {
|
|
74944
|
+
var r = i[_c], o = i[Ll];
|
|
74945
|
+
o && (0, Q.isArray)(o) && (i[Ll] = o.filter(function(a) {
|
|
74946
74946
|
return a;
|
|
74947
74947
|
}).map(function(a) {
|
|
74948
74948
|
return a.getId ? a.getId() : a;
|
|
@@ -79679,14 +79679,14 @@ var H9t = /* @__PURE__ */ function() {
|
|
|
79679
79679
|
}
|
|
79680
79680
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
79681
79681
|
};
|
|
79682
|
-
}(),
|
|
79683
|
-
return
|
|
79682
|
+
}(), Il = function() {
|
|
79683
|
+
return Il = Object.assign || function(n) {
|
|
79684
79684
|
for (var e, t = 1, i = arguments.length; t < i; t++) {
|
|
79685
79685
|
e = arguments[t];
|
|
79686
79686
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
79687
79687
|
}
|
|
79688
79688
|
return n;
|
|
79689
|
-
},
|
|
79689
|
+
}, Il.apply(this, arguments);
|
|
79690
79690
|
}, FE = { avoidStore: !0, partial: !0 }, V9t = (
|
|
79691
79691
|
/** @class */
|
|
79692
79692
|
function(n) {
|
|
@@ -79695,12 +79695,12 @@ var H9t = /* @__PURE__ */ function() {
|
|
|
79695
79695
|
var r = this;
|
|
79696
79696
|
if (i.forCloning)
|
|
79697
79697
|
return r = n.call(this, t, i) || this;
|
|
79698
|
-
var o =
|
|
79698
|
+
var o = Il(Il({}, t), { droppable: !1 }), a = r = n.call(this, o, i) || this;
|
|
79699
79699
|
return r.rebuildChildrenFromCollection = r.rebuildChildrenFromCollection.bind(r), r.listenToPropsChange(), r.rebuildChildrenFromCollection(), a;
|
|
79700
79700
|
}
|
|
79701
79701
|
return Object.defineProperty(e.prototype, "defaults", {
|
|
79702
79702
|
get: function() {
|
|
79703
|
-
return
|
|
79703
|
+
return Il(Il({}, n.prototype.defaults), { droppable: !1, dataResolver: {}, type: e4, components: [
|
|
79704
79704
|
{
|
|
79705
79705
|
type: dw
|
|
79706
79706
|
}
|
|
@@ -79738,7 +79738,7 @@ var H9t = /* @__PURE__ */ function() {
|
|
|
79738
79738
|
}, e.prototype.setEndIndex = function(t) {
|
|
79739
79739
|
this.updateCollectionConfig({ endIndex: t });
|
|
79740
79740
|
}, e.prototype.setDataSource = function(t) {
|
|
79741
|
-
this.set(Wv,
|
|
79741
|
+
this.set(Wv, Il(Il({}, this.dataResolver), { dataSource: t }));
|
|
79742
79742
|
}, e.prototype.setCollectionItemComponents = function(t) {
|
|
79743
79743
|
this.firstChild.components(t);
|
|
79744
79744
|
}, Object.defineProperty(e.prototype, "firstChild", {
|
|
@@ -79748,12 +79748,12 @@ var H9t = /* @__PURE__ */ function() {
|
|
|
79748
79748
|
enumerable: !1,
|
|
79749
79749
|
configurable: !0
|
|
79750
79750
|
}), e.prototype.updateCollectionConfig = function(t) {
|
|
79751
|
-
this.set(Wv,
|
|
79751
|
+
this.set(Wv, Il(Il({}, this.dataResolver), t));
|
|
79752
79752
|
}, e.prototype.getDataSourceItems = function() {
|
|
79753
79753
|
var t = K9t(this.dataResolver.dataSource, this.em);
|
|
79754
79754
|
if ((0, Q.isArray)(t))
|
|
79755
79755
|
return t;
|
|
79756
|
-
var i =
|
|
79756
|
+
var i = Il({}, t);
|
|
79757
79757
|
return delete i.__p, i;
|
|
79758
79758
|
}, Object.defineProperty(e.prototype, "dataResolver", {
|
|
79759
79759
|
get: function() {
|
|
@@ -79807,7 +79807,7 @@ var H9t = /* @__PURE__ */ function() {
|
|
|
79807
79807
|
endIndex: s,
|
|
79808
79808
|
totalItems: l,
|
|
79809
79809
|
remainingItems: f
|
|
79810
|
-
}, w =
|
|
79810
|
+
}, w = Il(Il({}, u), (r = {}, r[c] = b, r));
|
|
79811
79811
|
return w;
|
|
79812
79812
|
}, e.prototype.hasDuplicateCollectionId = function() {
|
|
79813
79813
|
var t = this.collectionId, i = this.collectionsStateMap;
|
|
@@ -79853,7 +79853,7 @@ var H9t = /* @__PURE__ */ function() {
|
|
|
79853
79853
|
var i, r = n.prototype.toJSON.call(this, t);
|
|
79854
79854
|
delete r.droppable, delete r[_c], (i = r.attributes) === null || i === void 0 || delete i.id;
|
|
79855
79855
|
var o = this.firstChild;
|
|
79856
|
-
return
|
|
79856
|
+
return Il(Il({}, r), { components: [o] });
|
|
79857
79857
|
}, e.prototype.destroy = function(t) {
|
|
79858
79858
|
return this.removePropsListeners(), n.prototype.destroy.call(this, t);
|
|
79859
79859
|
}, e;
|
|
@@ -80895,19 +80895,19 @@ var b5t = /* @__PURE__ */ function() {
|
|
|
80895
80895
|
return a;
|
|
80896
80896
|
}, e.prototype.setIdRule = function(t, i, r) {
|
|
80897
80897
|
i === void 0 && (i = {}), r === void 0 && (r = {});
|
|
80898
|
-
var o = r.addOpts, a = o === void 0 ? {} : o, s = r.mediaText, l = r.state || "", c = (0, Q.isUndefined)(s) ? this.em.getCurrentMedia() : s, d = this.em.Selectors, u = d.add({ name: t, type:
|
|
80898
|
+
var o = r.addOpts, a = o === void 0 ? {} : o, s = r.mediaText, l = r.state || "", c = (0, Q.isUndefined)(s) ? this.em.getCurrentMedia() : s, d = this.em.Selectors, u = d.add({ name: t, type: $l.TYPE_ID }, a), h = this.add(u, l, c, {}, a);
|
|
80899
80899
|
return h.setStyle(i, Gm(Gm({}, r), a)), h;
|
|
80900
80900
|
}, e.prototype.getIdRule = function(t, i) {
|
|
80901
80901
|
i === void 0 && (i = {});
|
|
80902
|
-
var r = i.mediaText, o = i.state || "", a = (0, Q.isUndefined)(r) ? this.em.getCurrentMedia() : r, s = this.em.Selectors.get(t,
|
|
80902
|
+
var r = i.mediaText, o = i.state || "", a = (0, Q.isUndefined)(r) ? this.em.getCurrentMedia() : r, s = this.em.Selectors.get(t, $l.TYPE_ID);
|
|
80903
80903
|
return s && this.get(s, o, a);
|
|
80904
80904
|
}, e.prototype.setClassRule = function(t, i, r) {
|
|
80905
80905
|
i === void 0 && (i = {}), r === void 0 && (r = {});
|
|
80906
|
-
var o = r.state || "", a = r.mediaText || this.em.getCurrentMedia(), s = this.em.Selectors, l = s.add({ name: t, type:
|
|
80906
|
+
var o = r.state || "", a = r.mediaText || this.em.getCurrentMedia(), s = this.em.Selectors, l = s.add({ name: t, type: $l.TYPE_CLASS }), c = this.add(l, o, a);
|
|
80907
80907
|
return c.setStyle(i, r), c;
|
|
80908
80908
|
}, e.prototype.getClassRule = function(t, i) {
|
|
80909
80909
|
i === void 0 && (i = {});
|
|
80910
|
-
var r = i.state || "", o = i.mediaText || this.em.getCurrentMedia(), a = this.em.Selectors.get(t,
|
|
80910
|
+
var r = i.state || "", o = i.mediaText || this.em.getCurrentMedia(), a = this.em.Selectors.get(t, $l.TYPE_CLASS);
|
|
80911
80911
|
return a && this.get(a, r, o);
|
|
80912
80912
|
}, e.prototype.remove = function(t, i) {
|
|
80913
80913
|
var r = (0, Q.isString)(t) ? this.getRules(t) : t, o = this.getAll().remove(r, i);
|
|
@@ -80943,7 +80943,7 @@ var b5t = /* @__PURE__ */ function() {
|
|
|
80943
80943
|
var u = d.substring(1), h = o[u];
|
|
80944
80944
|
u && h && (c[0] = "#".concat(h), a.push(l));
|
|
80945
80945
|
}
|
|
80946
|
-
} else if (d.name && d.type ===
|
|
80946
|
+
} else if (d.name && d.type === $l.TYPE_ID) {
|
|
80947
80947
|
var h = o[d.name];
|
|
80948
80948
|
h && (d.name = h, a.push(l));
|
|
80949
80949
|
}
|
|
@@ -81912,7 +81912,7 @@ var uR, pR, hR, gR, mR, Y5t = /* @__PURE__ */ function() {
|
|
|
81912
81912
|
Y5t(e, n);
|
|
81913
81913
|
function e(t) {
|
|
81914
81914
|
var i = n.call(this, t, "SelectorManager", new Bg([]), e4t, z5t(), { skipListen: !0 }) || this;
|
|
81915
|
-
i.Selector =
|
|
81915
|
+
i.Selector = $l, i.Selectors = Bg, i.storageKey = "", (0, Q.bindAll)(i, "__updateSelectedByComponents");
|
|
81916
81916
|
var r = i.config, o = r.pStylePrefix;
|
|
81917
81917
|
o && (r.stylePrefix = o + r.stylePrefix), i.all = new Bg(r.selectors), i.selected = new Bg([], { em: t, config: r }), i.states = new Vt.pM(r.states.map(function(l) {
|
|
81918
81918
|
return new HE(l);
|
|
@@ -81958,15 +81958,15 @@ var uR, pR, hR, gR, mR, Y5t = /* @__PURE__ */ function() {
|
|
|
81958
81958
|
}, e.prototype.addSelector = function(t, i, r) {
|
|
81959
81959
|
i === void 0 && (i = {}), r === void 0 && (r = {});
|
|
81960
81960
|
var o = hw({}, i);
|
|
81961
|
-
(0, Q.isObject)(t) ? o = t : o.name = t, fR(o.name) ? (o.name = o.name.substr(1), o.type =
|
|
81961
|
+
(0, Q.isObject)(t) ? o = t : o.name = t, fR(o.name) ? (o.name = o.name.substr(1), o.type = $l.TYPE_ID) : vR(o.name) && (o.name = o.name.substr(1)), o.label && !o.name && (o.name = this.escapeName(o.label));
|
|
81962
81962
|
var a = o.name, s = this.getConfig(), l = this, c = l.all, d = l.em, u = a ? this.get(a, o.type) : c.where(o)[0];
|
|
81963
81963
|
if (!u) {
|
|
81964
|
-
var h = o instanceof
|
|
81964
|
+
var h = o instanceof $l ? o : new $l(o, hw(hw({}, r), { config: s, em: d }));
|
|
81965
81965
|
return c.add(h, r);
|
|
81966
81966
|
}
|
|
81967
81967
|
return u;
|
|
81968
81968
|
}, e.prototype.getSelector = function(t, i) {
|
|
81969
|
-
return i === void 0 && (i =
|
|
81969
|
+
return i === void 0 && (i = $l.TYPE_CLASS), fR(t) ? (t = t.substr(1), i = $l.TYPE_ID) : vR(t) && (t = t.substr(1)), this.all.where({ name: t, type: i })[0];
|
|
81970
81970
|
}, e.prototype.add = function(t, i) {
|
|
81971
81971
|
var r = this;
|
|
81972
81972
|
i === void 0 && (i = {});
|
|
@@ -82043,7 +82043,7 @@ var uR, pR, hR, gR, mR, Y5t = /* @__PURE__ */ function() {
|
|
|
82043
82043
|
return this.getConfig().componentFirst;
|
|
82044
82044
|
}, e.prototype.escapeName = function(t) {
|
|
82045
82045
|
var i = this.getConfig().escapeName;
|
|
82046
|
-
return i ? i(t) :
|
|
82046
|
+
return i ? i(t) : $l.escapeName(t);
|
|
82047
82047
|
}, e.prototype.render = function(t) {
|
|
82048
82048
|
var i = this.selectorTags, r = this.getConfig(), o = i?.el;
|
|
82049
82049
|
return this.selected.reset(t), this.selectorTags = new K5t({
|
|
@@ -82837,7 +82837,7 @@ var h4;
|
|
|
82837
82837
|
(function(n) {
|
|
82838
82838
|
n.start = "storage:start", n.startStore = "storage:start:store", n.startLoad = "storage:start:load", n.load = "storage:load", n.store = "storage:store", n.after = "storage:after", n.afterStore = "storage:after:store", n.afterLoad = "storage:after:load", n.end = "storage:end", n.endStore = "storage:end:store", n.endLoad = "storage:end:load", n.error = "storage:error", n.errorStore = "storage:error:store", n.errorLoad = "storage:error:load";
|
|
82839
82839
|
})(h4 || (h4 = {}));
|
|
82840
|
-
const
|
|
82840
|
+
const El = h4;
|
|
82841
82841
|
var D4t = /* @__PURE__ */ function() {
|
|
82842
82842
|
var n = function(e, t) {
|
|
82843
82843
|
return n = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, r) {
|
|
@@ -82954,7 +82954,7 @@ var D4t = /* @__PURE__ */ function() {
|
|
|
82954
82954
|
D4t(e, n);
|
|
82955
82955
|
function e(t) {
|
|
82956
82956
|
var i = n.call(this, t, "StorageManager", m4t()) || this;
|
|
82957
|
-
i.storages = {}, i.events =
|
|
82957
|
+
i.storages = {}, i.events = El;
|
|
82958
82958
|
var r = i.config;
|
|
82959
82959
|
return r._disable && (r.type = void 0), i.storages = {}, i.add(ik, new v4t()), i.add(CR, new O4t()), i.setCurrent(r.type), i;
|
|
82960
82960
|
}
|
|
@@ -83099,28 +83099,28 @@ var D4t = /* @__PURE__ */ function() {
|
|
|
83099
83099
|
}, e.prototype.onStart = function(t, i) {
|
|
83100
83100
|
var r = this.em;
|
|
83101
83101
|
if (r) {
|
|
83102
|
-
var o = t === "load" ?
|
|
83103
|
-
r.trigger(
|
|
83102
|
+
var o = t === "load" ? El.startLoad : El.startStore;
|
|
83103
|
+
r.trigger(El.start, t, i), r.trigger(o, i);
|
|
83104
83104
|
}
|
|
83105
83105
|
}, e.prototype.onAfter = function(t, i, r) {
|
|
83106
83106
|
var o = this.em;
|
|
83107
83107
|
if (o) {
|
|
83108
|
-
var a = t === "load" ?
|
|
83109
|
-
o.trigger(
|
|
83110
|
-
var s = t === "load" ?
|
|
83108
|
+
var a = t === "load" ? El.afterLoad : El.afterStore;
|
|
83109
|
+
o.trigger(El.after), o.trigger(a, i, r);
|
|
83110
|
+
var s = t === "load" ? El.load : El.store;
|
|
83111
83111
|
o.trigger(s, i, r);
|
|
83112
83112
|
}
|
|
83113
83113
|
}, e.prototype.onEnd = function(t, i, r) {
|
|
83114
83114
|
var o = this.em;
|
|
83115
83115
|
if (o) {
|
|
83116
|
-
var a = t === "load" ?
|
|
83117
|
-
o.trigger(
|
|
83116
|
+
var a = t === "load" ? El.endLoad : El.endStore;
|
|
83117
|
+
o.trigger(El.end, t, i, r), o.trigger(a, i, r);
|
|
83118
83118
|
}
|
|
83119
83119
|
}, e.prototype.onError = function(t, i) {
|
|
83120
83120
|
var r = this.em;
|
|
83121
83121
|
if (r) {
|
|
83122
|
-
var o = t === "load" ?
|
|
83123
|
-
r.trigger(
|
|
83122
|
+
var o = t === "load" ? El.errorLoad : El.errorStore;
|
|
83123
|
+
r.trigger(El.error, i, t), r.trigger(o, i), this.onEnd(t, i);
|
|
83124
83124
|
}
|
|
83125
83125
|
}, e.prototype.canAutoload = function() {
|
|
83126
83126
|
var t = this.getCurrentStorage();
|
|
@@ -83509,10 +83509,10 @@ function j4t(n, e) {
|
|
|
83509
83509
|
}
|
|
83510
83510
|
lc(), mt.bind("click.spectrum touchstart.spectrum", function(zn) {
|
|
83511
83511
|
$r || Xu(), zn.stopPropagation(), n(zn.target).is("input") || zn.preventDefault();
|
|
83512
|
-
}), (li.is(":disabled") || ne.disabled === !0) &&
|
|
83513
|
-
setTimeout(
|
|
83512
|
+
}), (li.is(":disabled") || ne.disabled === !0) && xl(), Nn.click(f), Wi.change(bl), Wi.bind("paste", function() {
|
|
83513
|
+
setTimeout(bl, 1);
|
|
83514
83514
|
}), Wi.keydown(function(zn) {
|
|
83515
|
-
zn.keyCode == 13 &&
|
|
83515
|
+
zn.keyCode == 13 && bl();
|
|
83516
83516
|
}), Zi.text(ne.cancelText), Zi.bind("click.spectrum", function(zn) {
|
|
83517
83517
|
zn.stopPropagation(), zn.preventDefault(), ka(), ds();
|
|
83518
83518
|
}), ba.attr("title", ne.clearText), ba.bind("click.spectrum", function(zn) {
|
|
@@ -83596,7 +83596,7 @@ function j4t(n, e) {
|
|
|
83596
83596
|
function _i() {
|
|
83597
83597
|
Zn = !1, Nn.removeClass(aa), li.trigger("dragstop.spectrum", [Mo()]);
|
|
83598
83598
|
}
|
|
83599
|
-
function
|
|
83599
|
+
function bl() {
|
|
83600
83600
|
var In = Wi.val();
|
|
83601
83601
|
if ((In === null || In === "") && xa)
|
|
83602
83602
|
Va(null), Es(!0);
|
|
@@ -83655,7 +83655,7 @@ function j4t(n, e) {
|
|
|
83655
83655
|
Ua(), pt.move(Mo()), li.trigger("move.spectrum", [Mo()]);
|
|
83656
83656
|
}
|
|
83657
83657
|
function Ua() {
|
|
83658
|
-
Wi.removeClass("sp-validation-error"),
|
|
83658
|
+
Wi.removeClass("sp-validation-error"), wl();
|
|
83659
83659
|
var In = $.fromRatio({ h: Rt, s: 1, v: 1 });
|
|
83660
83660
|
no.css("background-color", In.toHexString());
|
|
83661
83661
|
var Mn = oi;
|
|
@@ -83675,7 +83675,7 @@ function j4t(n, e) {
|
|
|
83675
83675
|
}
|
|
83676
83676
|
ne.showInput && Wi.val(zn), ne.showPalette && cc(), pu();
|
|
83677
83677
|
}
|
|
83678
|
-
function
|
|
83678
|
+
function wl() {
|
|
83679
83679
|
var In = En, Mn = Kn;
|
|
83680
83680
|
if (xa && Oi)
|
|
83681
83681
|
Ir.hide(), sa.hide(), io.hide();
|
|
@@ -83701,7 +83701,7 @@ function j4t(n, e) {
|
|
|
83701
83701
|
Mn && (Bi = Mn.toString(oi), !yn && qs(Mn)), Ln && li.val(Bi), In && zn && (pt.change(Mn), li.trigger("change", [Mn]));
|
|
83702
83702
|
}
|
|
83703
83703
|
function qo() {
|
|
83704
|
-
yn && (ui = no.width(), Br = no.height(), to = io.height(), Er.width(), ae = Er.height(), wt = sa.height(), Ce = $t.width(), $e = Ir.width(), yt || (Nn.css("position", "absolute"), ne.offset ? Nn.offset(ne.offset) : Nn.offset(h(Nn, mt))),
|
|
83704
|
+
yn && (ui = no.width(), Br = no.height(), to = io.height(), Er.width(), ae = Er.height(), wt = sa.height(), Ce = $t.width(), $e = Ir.width(), yt || (Nn.css("position", "absolute"), ne.offset ? Nn.offset(ne.offset) : Nn.offset(h(Nn, mt))), wl(), ne.showPalette && cc(), li.trigger("reflow.spectrum"));
|
|
83705
83705
|
}
|
|
83706
83706
|
function Wp() {
|
|
83707
83707
|
li.show(), mt.unbind("click.spectrum touchstart.spectrum"), Nn.remove(), ue.remove(), i[As.id] = null;
|
|
@@ -83716,7 +83716,7 @@ function j4t(n, e) {
|
|
|
83716
83716
|
function Wc() {
|
|
83717
83717
|
$r = !1, li.attr("disabled", !1), mt.removeClass("sp-disabled");
|
|
83718
83718
|
}
|
|
83719
|
-
function
|
|
83719
|
+
function xl() {
|
|
83720
83720
|
ds(), $r = !0, li.attr("disabled", !0), mt.addClass("sp-disabled");
|
|
83721
83721
|
}
|
|
83722
83722
|
function Gc(In) {
|
|
@@ -83730,7 +83730,7 @@ function j4t(n, e) {
|
|
|
83730
83730
|
reflow: qo,
|
|
83731
83731
|
option: qa,
|
|
83732
83732
|
enable: Wc,
|
|
83733
|
-
disable:
|
|
83733
|
+
disable: xl,
|
|
83734
83734
|
offset: Gc,
|
|
83735
83735
|
set: function(In) {
|
|
83736
83736
|
Va(In), Es();
|
|
@@ -88686,7 +88686,7 @@ var s7t = /* @__PURE__ */ function() {
|
|
|
88686
88686
|
}(jc)
|
|
88687
88687
|
);
|
|
88688
88688
|
const c7t = l7t;
|
|
88689
|
-
var Ac, dd = {},
|
|
88689
|
+
var Ac, dd = {}, Rl = {
|
|
88690
88690
|
16: !1,
|
|
88691
88691
|
18: !1,
|
|
88692
88692
|
17: !1,
|
|
@@ -88758,13 +88758,13 @@ var u7t = {
|
|
|
88758
88758
|
91: "metaKey"
|
|
88759
88759
|
};
|
|
88760
88760
|
function p7t(n) {
|
|
88761
|
-
for (Ac in
|
|
88762
|
-
|
|
88761
|
+
for (Ac in Rl)
|
|
88762
|
+
Rl[Ac] = n[u7t[Ac]];
|
|
88763
88763
|
}
|
|
88764
88764
|
function h7t(n) {
|
|
88765
88765
|
var e, t, i, r, o, a;
|
|
88766
|
-
if (e = n.keyCode, vw(ob, e) == -1 && ob.push(e), (e == 93 || e == 224) && (e = 91), e in
|
|
88767
|
-
|
|
88766
|
+
if (e = n.keyCode, vw(ob, e) == -1 && ob.push(e), (e == 93 || e == 224) && (e = 91), e in Rl) {
|
|
88767
|
+
Rl[e] = !0;
|
|
88768
88768
|
for (i in Kf)
|
|
88769
88769
|
Kf[i] == e && (Zl[i] = !0);
|
|
88770
88770
|
return;
|
|
@@ -88773,23 +88773,23 @@ function h7t(n) {
|
|
|
88773
88773
|
for (a = A7(), r = 0; r < dd[e].length; r++)
|
|
88774
88774
|
if (t = dd[e][r], t.scope == a || t.scope == "all") {
|
|
88775
88775
|
o = t.mods.length > 0;
|
|
88776
|
-
for (i in
|
|
88777
|
-
(!
|
|
88778
|
-
(t.mods.length == 0 && !
|
|
88776
|
+
for (i in Rl)
|
|
88777
|
+
(!Rl[i] && vw(t.mods, +i) > -1 || Rl[i] && vw(t.mods, +i) == -1) && (o = !1);
|
|
88778
|
+
(t.mods.length == 0 && !Rl[16] && !Rl[18] && !Rl[17] && !Rl[91] || o) && t.method(n, t) === !1 && (n.preventDefault ? n.preventDefault() : n.returnValue = !1, n.stopPropagation && n.stopPropagation(), n.cancelBubble && (n.cancelBubble = !0));
|
|
88779
88779
|
}
|
|
88780
88780
|
}
|
|
88781
88781
|
}
|
|
88782
88782
|
function g7t(n) {
|
|
88783
88783
|
var e = n.keyCode, t, i = vw(ob, e);
|
|
88784
|
-
if (i >= 0 && ob.splice(i, 1), (e == 93 || e == 224) && (e = 91), e in
|
|
88785
|
-
|
|
88784
|
+
if (i >= 0 && ob.splice(i, 1), (e == 93 || e == 224) && (e = 91), e in Rl) {
|
|
88785
|
+
Rl[e] = !1;
|
|
88786
88786
|
for (t in Kf)
|
|
88787
88787
|
Kf[t] == e && (Zl[t] = !1);
|
|
88788
88788
|
}
|
|
88789
88789
|
}
|
|
88790
88790
|
function m7t() {
|
|
88791
|
-
for (Ac in
|
|
88792
|
-
|
|
88791
|
+
for (Ac in Rl)
|
|
88792
|
+
Rl[Ac] = !1;
|
|
88793
88793
|
for (Ac in Kf)
|
|
88794
88794
|
Zl[Ac] = !1;
|
|
88795
88795
|
}
|
|
@@ -90982,14 +90982,14 @@ var QDt = /* @__PURE__ */ function() {
|
|
|
90982
90982
|
}
|
|
90983
90983
|
e.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
90984
90984
|
};
|
|
90985
|
-
}(),
|
|
90986
|
-
return
|
|
90985
|
+
}(), Nl = function() {
|
|
90986
|
+
return Nl = Object.assign || function(n) {
|
|
90987
90987
|
for (var e, t = 1, i = arguments.length; t < i; t++) {
|
|
90988
90988
|
e = arguments[t];
|
|
90989
90989
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
90990
90990
|
}
|
|
90991
90991
|
return n;
|
|
90992
|
-
},
|
|
90992
|
+
}, Nl.apply(this, arguments);
|
|
90993
90993
|
}, eIt = function(n, e) {
|
|
90994
90994
|
var t = {};
|
|
90995
90995
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);
|
|
@@ -91050,13 +91050,13 @@ var QDt = /* @__PURE__ */ function() {
|
|
|
91050
91050
|
s.__trgEv(s.events.propertyUpdate, E), k && k(E), w && this.__upTargetsStyle((r = {}, r[l] = d, r), i);
|
|
91051
91051
|
}, e.prototype.__upTargetsStyle = function(t, i) {
|
|
91052
91052
|
var r, o = (r = this.em) === null || r === void 0 ? void 0 : r.get("StyleManager");
|
|
91053
|
-
o?.addStyleTargets(
|
|
91053
|
+
o?.addStyleTargets(Nl(Nl({}, t), { __p: !!i.avoidStore }), i);
|
|
91054
91054
|
}, e.prototype._up = function(t, i) {
|
|
91055
91055
|
i === void 0 && (i = {}), i.noTarget && (i.__up = !0);
|
|
91056
91056
|
var r = i.partial, o = eIt(i, ["partial"]);
|
|
91057
|
-
return t.__p = !!(o.avoidStore || r), this.set(t,
|
|
91057
|
+
return t.__p = !!(o.avoidStore || r), this.set(t, Nl(Nl({}, o), { avoidStore: t.__p }));
|
|
91058
91058
|
}, e.prototype.up = function(t, i) {
|
|
91059
|
-
i === void 0 && (i = {}), this.set(t,
|
|
91059
|
+
i === void 0 && (i = {}), this.set(t, Nl(Nl({}, i), { __up: !0 }));
|
|
91060
91060
|
}, e.prototype.init = function() {
|
|
91061
91061
|
}, e.prototype.getId = function() {
|
|
91062
91062
|
return this.get("id");
|
|
@@ -91094,7 +91094,7 @@ var QDt = /* @__PURE__ */ function() {
|
|
|
91094
91094
|
}, e.prototype.isVisible = function() {
|
|
91095
91095
|
return !!this.get("visible");
|
|
91096
91096
|
}, e.prototype.clear = function(t) {
|
|
91097
|
-
return t === void 0 && (t = {}), this._up(this.__getClearProps(),
|
|
91097
|
+
return t === void 0 && (t = {}), this._up(this.__getClearProps(), Nl(Nl({}, t), { __clear: !0 })), this;
|
|
91098
91098
|
}, e.prototype.canClear = function() {
|
|
91099
91099
|
var t = this.getParent();
|
|
91100
91100
|
return t ? t.__canClearProp(this) : this.hasValue({ noParent: !0 });
|
|
@@ -91109,9 +91109,9 @@ var QDt = /* @__PURE__ */ function() {
|
|
|
91109
91109
|
}, e.prototype.setValue = function(t, i, r) {
|
|
91110
91110
|
i === void 0 && (i = !0), r === void 0 && (r = {});
|
|
91111
91111
|
var o = this.parseValue(t), a = !i;
|
|
91112
|
-
!a && this.set({ value: void 0 }, { avoidStore: a, silent: !0 }), this.set(o,
|
|
91112
|
+
!a && this.set({ value: void 0 }, { avoidStore: a, silent: !0 }), this.set(o, Nl({ avoidStore: a }, r));
|
|
91113
91113
|
}, e.prototype.setValueFromInput = function(t, i, r) {
|
|
91114
|
-
r === void 0 && (r = {}), this.setValue(t, i,
|
|
91114
|
+
r === void 0 && (r = {}), this.setValue(t, i, Nl(Nl({}, r), { fromInput: 1 }));
|
|
91115
91115
|
}, e.prototype.parseValue = function(t, i) {
|
|
91116
91116
|
i === void 0 && (i = {});
|
|
91117
91117
|
var r = { value: t }, o = "!important", a = this.get("functionName") || "";
|
|
@@ -91187,7 +91187,7 @@ const go = O7;
|
|
|
91187
91187
|
O7.callParentInit = function(n, e, t, i) {
|
|
91188
91188
|
i === void 0 && (i = {}), n.prototype.initialize.apply(e, [
|
|
91189
91189
|
t,
|
|
91190
|
-
|
|
91190
|
+
Nl(Nl({}, i), { skipInit: 1 })
|
|
91191
91191
|
]);
|
|
91192
91192
|
};
|
|
91193
91193
|
O7.callInit = function(n, e, t) {
|
|
@@ -96249,7 +96249,7 @@ const l8t = {
|
|
|
96249
96249
|
"data-label": "Button",
|
|
96250
96250
|
label: "",
|
|
96251
96251
|
"open-in-new-tab": !0,
|
|
96252
|
-
size:
|
|
96252
|
+
size: Ml.Medium,
|
|
96253
96253
|
type: "link",
|
|
96254
96254
|
variant: "default",
|
|
96255
96255
|
"width-type": Sc.Hug
|
|
@@ -96486,24 +96486,24 @@ const l8t = {
|
|
|
96486
96486
|
name: "size",
|
|
96487
96487
|
options: [
|
|
96488
96488
|
{
|
|
96489
|
-
id:
|
|
96489
|
+
id: Ml.Small,
|
|
96490
96490
|
name: n.term("small"),
|
|
96491
|
-
value:
|
|
96491
|
+
value: Ml.Small
|
|
96492
96492
|
},
|
|
96493
96493
|
{
|
|
96494
|
-
id:
|
|
96494
|
+
id: Ml.Medium,
|
|
96495
96495
|
name: n.term("medium"),
|
|
96496
|
-
value:
|
|
96496
|
+
value: Ml.Medium
|
|
96497
96497
|
},
|
|
96498
96498
|
{
|
|
96499
|
-
id:
|
|
96499
|
+
id: Ml.Large,
|
|
96500
96500
|
name: n.term("large"),
|
|
96501
|
-
value:
|
|
96501
|
+
value: Ml.Large
|
|
96502
96502
|
},
|
|
96503
96503
|
{
|
|
96504
|
-
id:
|
|
96504
|
+
id: Ml.Custom,
|
|
96505
96505
|
name: n.term("custom"),
|
|
96506
|
-
value:
|
|
96506
|
+
value: Ml.Custom
|
|
96507
96507
|
}
|
|
96508
96508
|
],
|
|
96509
96509
|
type: "attribute"
|
|
@@ -96512,7 +96512,7 @@ const l8t = {
|
|
|
96512
96512
|
...t.getStyleControl("--font-size"),
|
|
96513
96513
|
id: "--button-custom-font-size",
|
|
96514
96514
|
name: "font-size",
|
|
96515
|
-
show: (r) => r.size ===
|
|
96515
|
+
show: (r) => r.size === Ml.Custom
|
|
96516
96516
|
},
|
|
96517
96517
|
...i ? [
|
|
96518
96518
|
...t.getFontPickerControls({
|
|
@@ -96521,7 +96521,7 @@ const l8t = {
|
|
|
96521
96521
|
familyKey: "--button-custom-font-family",
|
|
96522
96522
|
id: "--button-custom-font-family",
|
|
96523
96523
|
name: "font-family",
|
|
96524
|
-
show: (r) => r.size ===
|
|
96524
|
+
show: (r) => r.size === Ml.Custom,
|
|
96525
96525
|
styleKey: "--button-custom-font-style",
|
|
96526
96526
|
weightKey: "--button-custom-font-weight"
|
|
96527
96527
|
})
|
|
@@ -96530,14 +96530,14 @@ const l8t = {
|
|
|
96530
96530
|
...t.getStyleControl("--height"),
|
|
96531
96531
|
id: "--button-custom-height",
|
|
96532
96532
|
name: "height",
|
|
96533
|
-
show: (r) => r.size ===
|
|
96533
|
+
show: (r) => r.size === Ml.Custom
|
|
96534
96534
|
},
|
|
96535
96535
|
{
|
|
96536
96536
|
...t.getStyleControl("--padding"),
|
|
96537
96537
|
id: "--button-custom-padding",
|
|
96538
96538
|
label: n.term("paddings"),
|
|
96539
96539
|
name: "padding",
|
|
96540
|
-
show: (r) => r.size ===
|
|
96540
|
+
show: (r) => r.size === Ml.Custom
|
|
96541
96541
|
},
|
|
96542
96542
|
t.getStyleControl("--margin"),
|
|
96543
96543
|
{
|
|
@@ -97905,11 +97905,11 @@ const u8t = {
|
|
|
97905
97905
|
"--margin-right",
|
|
97906
97906
|
"--margin-top"
|
|
97907
97907
|
], pA = { configs: b8t, defaultValue: y8t, stylable: w8t };
|
|
97908
|
-
var
|
|
97908
|
+
var Pl = /* @__PURE__ */ ((n) => (n.Fill = "fill", n.Fit = "fit", n.Fixed = "fixed", n.Relative = "relative", n))(Pl || {});
|
|
97909
97909
|
const x8t = {
|
|
97910
97910
|
"custom-width": !1,
|
|
97911
97911
|
trigger: "manual",
|
|
97912
|
-
"width-type":
|
|
97912
|
+
"width-type": Pl.Fill
|
|
97913
97913
|
}, k8t = (n) => {
|
|
97914
97914
|
const e = new ya(n);
|
|
97915
97915
|
return [
|
|
@@ -97993,7 +97993,7 @@ const x8t = {
|
|
|
97993
97993
|
"--custom-width"
|
|
97994
97994
|
], hA = { configs: k8t, defaultValue: x8t, stylable: _8t }, C8t = {
|
|
97995
97995
|
"data-constraints": !1,
|
|
97996
|
-
"width-type":
|
|
97996
|
+
"width-type": Pl.Fill
|
|
97997
97997
|
}, S8t = (n) => {
|
|
97998
97998
|
const e = new ya(n);
|
|
97999
97999
|
return [
|
|
@@ -98012,24 +98012,24 @@ const x8t = {
|
|
|
98012
98012
|
name: "width-type",
|
|
98013
98013
|
options: [
|
|
98014
98014
|
{
|
|
98015
|
-
id:
|
|
98015
|
+
id: Pl.Fill,
|
|
98016
98016
|
name: n.term("fillContainer"),
|
|
98017
|
-
value:
|
|
98017
|
+
value: Pl.Fill
|
|
98018
98018
|
},
|
|
98019
98019
|
{
|
|
98020
|
-
id:
|
|
98020
|
+
id: Pl.Fit,
|
|
98021
98021
|
name: n.term("hugContent"),
|
|
98022
|
-
value:
|
|
98022
|
+
value: Pl.Fit
|
|
98023
98023
|
},
|
|
98024
98024
|
{
|
|
98025
|
-
id:
|
|
98025
|
+
id: Pl.Fixed,
|
|
98026
98026
|
name: n.term("fixed"),
|
|
98027
|
-
value:
|
|
98027
|
+
value: Pl.Fixed
|
|
98028
98028
|
},
|
|
98029
98029
|
{
|
|
98030
|
-
id:
|
|
98030
|
+
id: Pl.Relative,
|
|
98031
98031
|
name: n.term("relative"),
|
|
98032
|
-
value:
|
|
98032
|
+
value: Pl.Relative
|
|
98033
98033
|
}
|
|
98034
98034
|
],
|
|
98035
98035
|
selectConfigs: {
|
|
@@ -98037,13 +98037,13 @@ const x8t = {
|
|
|
98037
98037
|
placement: "bottom-start"
|
|
98038
98038
|
},
|
|
98039
98039
|
type: "attribute",
|
|
98040
|
-
width: (t) => t["width-type"] ===
|
|
98040
|
+
width: (t) => t["width-type"] === Pl.Fill || t["width-type"] === Pl.Fit ? "100%" : "50%"
|
|
98041
98041
|
},
|
|
98042
98042
|
{
|
|
98043
98043
|
...e.getStyleControl("--width"),
|
|
98044
98044
|
id: "--column-width-fixed",
|
|
98045
98045
|
name: "column-width-fixed",
|
|
98046
|
-
show: (t) => t["width-type"] ===
|
|
98046
|
+
show: (t) => t["width-type"] === Pl.Fixed,
|
|
98047
98047
|
width: "50%"
|
|
98048
98048
|
},
|
|
98049
98049
|
{
|
|
@@ -98060,7 +98060,7 @@ const x8t = {
|
|
|
98060
98060
|
}
|
|
98061
98061
|
},
|
|
98062
98062
|
name: "column-width-relative",
|
|
98063
|
-
show: (t) => t["width-type"] ===
|
|
98063
|
+
show: (t) => t["width-type"] === Pl.Relative,
|
|
98064
98064
|
width: "50%"
|
|
98065
98065
|
}
|
|
98066
98066
|
],
|
|
@@ -123760,7 +123760,7 @@ Si.dependencies = {
|
|
|
123760
123760
|
"cx-dam-custom-toolbar-buttons-editor": is,
|
|
123761
123761
|
"cx-dialog": as,
|
|
123762
123762
|
"cx-divider": $c,
|
|
123763
|
-
"cx-download-format-picker":
|
|
123763
|
+
"cx-download-format-picker": sl,
|
|
123764
123764
|
"cx-dropdown": _s,
|
|
123765
123765
|
"cx-dynamic-select": gb,
|
|
123766
123766
|
"cx-folder-picker": Pa,
|
|
@@ -123773,8 +123773,8 @@ Si.dependencies = {
|
|
|
123773
123773
|
"cx-input": eo,
|
|
123774
123774
|
"cx-line-clamp": Lp,
|
|
123775
123775
|
"cx-list-editor": ar,
|
|
123776
|
-
"cx-menu":
|
|
123777
|
-
"cx-menu-item":
|
|
123776
|
+
"cx-menu": hl,
|
|
123777
|
+
"cx-menu-item": gl,
|
|
123778
123778
|
"cx-option": ta,
|
|
123779
123779
|
"cx-padding-input-group": wte,
|
|
123780
123780
|
"cx-page-picker": Lc,
|
|
@@ -132298,7 +132298,7 @@ class AY {
|
|
|
132298
132298
|
break;
|
|
132299
132299
|
}
|
|
132300
132300
|
case Oe.IN_BODY: {
|
|
132301
|
-
|
|
132301
|
+
yl(this, e);
|
|
132302
132302
|
break;
|
|
132303
132303
|
}
|
|
132304
132304
|
case Oe.IN_TABLE: {
|
|
@@ -132665,7 +132665,7 @@ function ww(n, e) {
|
|
|
132665
132665
|
function lBt(n, e) {
|
|
132666
132666
|
switch (e.tagID) {
|
|
132667
132667
|
case D.HTML: {
|
|
132668
|
-
|
|
132668
|
+
yl(n, e);
|
|
132669
132669
|
break;
|
|
132670
132670
|
}
|
|
132671
132671
|
case D.HEAD: {
|
|
@@ -132686,7 +132686,7 @@ function xw(n, e) {
|
|
|
132686
132686
|
function Ku(n, e) {
|
|
132687
132687
|
switch (e.tagID) {
|
|
132688
132688
|
case D.HTML: {
|
|
132689
|
-
|
|
132689
|
+
yl(n, e);
|
|
132690
132690
|
break;
|
|
132691
132691
|
}
|
|
132692
132692
|
case D.BASE:
|
|
@@ -132755,7 +132755,7 @@ function kw(n, e) {
|
|
|
132755
132755
|
function uBt(n, e) {
|
|
132756
132756
|
switch (e.tagID) {
|
|
132757
132757
|
case D.HTML: {
|
|
132758
|
-
|
|
132758
|
+
yl(n, e);
|
|
132759
132759
|
break;
|
|
132760
132760
|
}
|
|
132761
132761
|
case D.BASEFONT:
|
|
@@ -132797,7 +132797,7 @@ function _w(n, e) {
|
|
|
132797
132797
|
function hBt(n, e) {
|
|
132798
132798
|
switch (e.tagID) {
|
|
132799
132799
|
case D.HTML: {
|
|
132800
|
-
|
|
132800
|
+
yl(n, e);
|
|
132801
132801
|
break;
|
|
132802
132802
|
}
|
|
132803
132803
|
case D.BODY: {
|
|
@@ -132863,7 +132863,7 @@ function gS(n, e) {
|
|
|
132863
132863
|
break;
|
|
132864
132864
|
}
|
|
132865
132865
|
case vr.START_TAG: {
|
|
132866
|
-
|
|
132866
|
+
yl(n, e);
|
|
132867
132867
|
break;
|
|
132868
132868
|
}
|
|
132869
132869
|
case vr.END_TAG: {
|
|
@@ -132994,7 +132994,7 @@ function HBt(n, e) {
|
|
|
132994
132994
|
function WB(n, e) {
|
|
132995
132995
|
n._reconstructActiveFormattingElements(), n._insertElement(e, Lt.HTML);
|
|
132996
132996
|
}
|
|
132997
|
-
function
|
|
132997
|
+
function yl(n, e) {
|
|
132998
132998
|
switch (e.tagID) {
|
|
132999
132999
|
case D.I:
|
|
133000
133000
|
case D.S:
|
|
@@ -133500,7 +133500,7 @@ function l0(n, e) {
|
|
|
133500
133500
|
const BY = /* @__PURE__ */ new Set([D.CAPTION, D.COL, D.COLGROUP, D.TBODY, D.TD, D.TFOOT, D.TH, D.THEAD, D.TR]);
|
|
133501
133501
|
function c$t(n, e) {
|
|
133502
133502
|
const t = e.tagID;
|
|
133503
|
-
BY.has(t) ? n.openElements.hasInTableScope(D.CAPTION) && (n.openElements.generateImpliedEndTags(), n.openElements.popUntilTagNamePopped(D.CAPTION), n.activeFormattingElements.clearToLastMarker(), n.insertionMode = Oe.IN_TABLE, ab(n, e)) :
|
|
133503
|
+
BY.has(t) ? n.openElements.hasInTableScope(D.CAPTION) && (n.openElements.generateImpliedEndTags(), n.openElements.popUntilTagNamePopped(D.CAPTION), n.activeFormattingElements.clearToLastMarker(), n.insertionMode = Oe.IN_TABLE, ab(n, e)) : yl(n, e);
|
|
133504
133504
|
}
|
|
133505
133505
|
function d$t(n, e) {
|
|
133506
133506
|
const t = e.tagID;
|
|
@@ -133528,7 +133528,7 @@ function d$t(n, e) {
|
|
|
133528
133528
|
function Y7(n, e) {
|
|
133529
133529
|
switch (e.tagID) {
|
|
133530
133530
|
case D.HTML: {
|
|
133531
|
-
|
|
133531
|
+
yl(n, e);
|
|
133532
133532
|
break;
|
|
133533
133533
|
}
|
|
133534
133534
|
case D.COL: {
|
|
@@ -133663,7 +133663,7 @@ function $Y(n, e) {
|
|
|
133663
133663
|
}
|
|
133664
133664
|
function p$t(n, e) {
|
|
133665
133665
|
const t = e.tagID;
|
|
133666
|
-
BY.has(t) ? (n.openElements.hasInTableScope(D.TD) || n.openElements.hasInTableScope(D.TH)) && (n._closeTableCell(), vS(n, e)) :
|
|
133666
|
+
BY.has(t) ? (n.openElements.hasInTableScope(D.TD) || n.openElements.hasInTableScope(D.TH)) && (n._closeTableCell(), vS(n, e)) : yl(n, e);
|
|
133667
133667
|
}
|
|
133668
133668
|
function h$t(n, e) {
|
|
133669
133669
|
const t = e.tagID;
|
|
@@ -133694,7 +133694,7 @@ function h$t(n, e) {
|
|
|
133694
133694
|
function FY(n, e) {
|
|
133695
133695
|
switch (e.tagID) {
|
|
133696
133696
|
case D.HTML: {
|
|
133697
|
-
|
|
133697
|
+
yl(n, e);
|
|
133698
133698
|
break;
|
|
133699
133699
|
}
|
|
133700
133700
|
case D.OPTION: {
|
|
@@ -133790,7 +133790,7 @@ function f$t(n, e) {
|
|
|
133790
133790
|
break;
|
|
133791
133791
|
}
|
|
133792
133792
|
default:
|
|
133793
|
-
n.tmplInsertionModeStack[0] = Oe.IN_BODY, n.insertionMode = Oe.IN_BODY,
|
|
133793
|
+
n.tmplInsertionModeStack[0] = Oe.IN_BODY, n.insertionMode = Oe.IN_BODY, yl(n, e);
|
|
133794
133794
|
}
|
|
133795
133795
|
}
|
|
133796
133796
|
function v$t(n, e) {
|
|
@@ -133800,7 +133800,7 @@ function jY(n, e) {
|
|
|
133800
133800
|
n.openElements.tmplCount > 0 ? (n.openElements.popUntilTagNamePopped(D.TEMPLATE), n.activeFormattingElements.clearToLastMarker(), n.tmplInsertionModeStack.shift(), n._resetInsertionMode(), n.onEof(e)) : K7(n, e);
|
|
133801
133801
|
}
|
|
133802
133802
|
function y$t(n, e) {
|
|
133803
|
-
e.tagID === D.HTML ?
|
|
133803
|
+
e.tagID === D.HTML ? yl(n, e) : UC(n, e);
|
|
133804
133804
|
}
|
|
133805
133805
|
function HY(n, e) {
|
|
133806
133806
|
var t;
|
|
@@ -133819,7 +133819,7 @@ function UC(n, e) {
|
|
|
133819
133819
|
function b$t(n, e) {
|
|
133820
133820
|
switch (e.tagID) {
|
|
133821
133821
|
case D.HTML: {
|
|
133822
|
-
|
|
133822
|
+
yl(n, e);
|
|
133823
133823
|
break;
|
|
133824
133824
|
}
|
|
133825
133825
|
case D.FRAMESET: {
|
|
@@ -133842,7 +133842,7 @@ function w$t(n, e) {
|
|
|
133842
133842
|
function x$t(n, e) {
|
|
133843
133843
|
switch (e.tagID) {
|
|
133844
133844
|
case D.HTML: {
|
|
133845
|
-
|
|
133845
|
+
yl(n, e);
|
|
133846
133846
|
break;
|
|
133847
133847
|
}
|
|
133848
133848
|
case D.NOFRAMES: {
|
|
@@ -133855,7 +133855,7 @@ function k$t(n, e) {
|
|
|
133855
133855
|
e.tagID === D.HTML && (n.insertionMode = Oe.AFTER_AFTER_FRAMESET);
|
|
133856
133856
|
}
|
|
133857
133857
|
function _$t(n, e) {
|
|
133858
|
-
e.tagID === D.HTML ?
|
|
133858
|
+
e.tagID === D.HTML ? yl(n, e) : t2(n, e);
|
|
133859
133859
|
}
|
|
133860
133860
|
function t2(n, e) {
|
|
133861
133861
|
n.insertionMode = Oe.IN_BODY, gS(n, e);
|
|
@@ -133863,7 +133863,7 @@ function t2(n, e) {
|
|
|
133863
133863
|
function C$t(n, e) {
|
|
133864
133864
|
switch (e.tagID) {
|
|
133865
133865
|
case D.HTML: {
|
|
133866
|
-
|
|
133866
|
+
yl(n, e);
|
|
133867
133867
|
break;
|
|
133868
133868
|
}
|
|
133869
133869
|
case D.NOFRAMES: {
|
|
@@ -138584,7 +138584,7 @@ function qzt(n, e) {
|
|
|
138584
138584
|
return;
|
|
138585
138585
|
function r(s, l) {
|
|
138586
138586
|
let c = qA(n, l);
|
|
138587
|
-
const d =
|
|
138587
|
+
const d = nl.getState(n.state) == null;
|
|
138588
138588
|
if (!c || !H3(s, c))
|
|
138589
138589
|
if (d)
|
|
138590
138590
|
c = s;
|
|
@@ -138593,14 +138593,14 @@ function qzt(n, e) {
|
|
|
138593
138593
|
const u = new ci(s, c);
|
|
138594
138594
|
if (d || !n.state.selection.eq(u)) {
|
|
138595
138595
|
const h = n.state.tr.setSelection(u);
|
|
138596
|
-
d && h.setMeta(
|
|
138596
|
+
d && h.setMeta(nl, s.pos), n.dispatch(h);
|
|
138597
138597
|
}
|
|
138598
138598
|
}
|
|
138599
138599
|
function o() {
|
|
138600
|
-
n.root.removeEventListener("mouseup", o), n.root.removeEventListener("dragstart", o), n.root.removeEventListener("mousemove", a),
|
|
138600
|
+
n.root.removeEventListener("mouseup", o), n.root.removeEventListener("dragstart", o), n.root.removeEventListener("mousemove", a), nl.getState(n.state) != null && n.dispatch(n.state.tr.setMeta(nl, -1));
|
|
138601
138601
|
}
|
|
138602
138602
|
function a(s) {
|
|
138603
|
-
const l = s, c =
|
|
138603
|
+
const l = s, c = nl.getState(n.state);
|
|
138604
138604
|
let d;
|
|
138605
138605
|
if (c != null)
|
|
138606
138606
|
d = n.state.doc.resolve(c);
|
|
@@ -138649,10 +138649,10 @@ function Wzt({
|
|
|
138649
138649
|
n
|
|
138650
138650
|
);
|
|
138651
138651
|
},
|
|
138652
|
-
key:
|
|
138652
|
+
key: nl,
|
|
138653
138653
|
props: {
|
|
138654
138654
|
createSelectionBetween(e) {
|
|
138655
|
-
return
|
|
138655
|
+
return nl.getState(e.state) != null ? e.state.selection : null;
|
|
138656
138656
|
},
|
|
138657
138657
|
decorations: Bzt,
|
|
138658
138658
|
handleDOMEvents: {
|
|
@@ -138667,7 +138667,7 @@ function Wzt({
|
|
|
138667
138667
|
// transactions (which might move its anchor cell) come in.
|
|
138668
138668
|
state: {
|
|
138669
138669
|
apply(e, t) {
|
|
138670
|
-
const i = e.getMeta(
|
|
138670
|
+
const i = e.getMeta(nl);
|
|
138671
138671
|
if (i != null)
|
|
138672
138672
|
return i == -1 ? null : i;
|
|
138673
138673
|
if (t == null || !e.docChanged)
|
|
@@ -141065,7 +141065,7 @@ const I$ = {
|
|
|
141065
141065
|
keepRatio: !0,
|
|
141066
141066
|
src: "",
|
|
141067
141067
|
title: "",
|
|
141068
|
-
type:
|
|
141068
|
+
type: Bl.Image,
|
|
141069
141069
|
width: ""
|
|
141070
141070
|
};
|
|
141071
141071
|
let zs = class extends hn {
|
|
@@ -141181,7 +141181,7 @@ let zs = class extends hn {
|
|
|
141181
141181
|
async handleBrowserClick() {
|
|
141182
141182
|
if (this.onRequestAsset)
|
|
141183
141183
|
try {
|
|
141184
|
-
const n = await this.onRequestAsset(
|
|
141184
|
+
const n = await this.onRequestAsset(Bl.Image), { src: e } = n;
|
|
141185
141185
|
this.setSrc(e);
|
|
141186
141186
|
} catch {
|
|
141187
141187
|
}
|
|
@@ -142008,7 +142008,7 @@ let nr = class extends hn {
|
|
|
142008
142008
|
keepRatio: e.keepRatio || !1,
|
|
142009
142009
|
src: e.src || "",
|
|
142010
142010
|
title: e.title || "",
|
|
142011
|
-
type:
|
|
142011
|
+
type: Bl.Image,
|
|
142012
142012
|
width: e.width || ""
|
|
142013
142013
|
};
|
|
142014
142014
|
}
|
|
@@ -142127,8 +142127,8 @@ nr.dependencies = {
|
|
|
142127
142127
|
"cx-image-dialog": zs,
|
|
142128
142128
|
"cx-input": eo,
|
|
142129
142129
|
"cx-line-clamp": Lp,
|
|
142130
|
-
"cx-menu":
|
|
142131
|
-
"cx-menu-item":
|
|
142130
|
+
"cx-menu": hl,
|
|
142131
|
+
"cx-menu-item": gl,
|
|
142132
142132
|
"cx-option": ta,
|
|
142133
142133
|
"cx-popup": Qd,
|
|
142134
142134
|
"cx-select": Na,
|
|
@@ -142681,11 +142681,11 @@ Yt.prototype.luminance = function(n, e = "rgb") {
|
|
|
142681
142681
|
}
|
|
142682
142682
|
return oHt(...this._rgb.slice(0, 3));
|
|
142683
142683
|
};
|
|
142684
|
-
const oHt = (n, e, t) => (n = YA(n), e = YA(e), t = YA(t), 0.2126 * n + 0.7152 * e + 0.0722 * t), YA = (n) => (n /= 255, n <= 0.03928 ? n / 12.92 : nHt((n + 0.055) / 1.055, 2.4)),
|
|
142684
|
+
const oHt = (n, e, t) => (n = YA(n), e = YA(e), t = YA(t), 0.2126 * n + 0.7152 * e + 0.0722 * t), YA = (n) => (n /= 255, n <= 0.03928 ? n / 12.92 : nHt((n + 0.055) / 1.055, 2.4)), rl = {}, lb = (n, e, t = 0.5, ...i) => {
|
|
142685
142685
|
let r = i[0] || "lrgb";
|
|
142686
|
-
if (!
|
|
142686
|
+
if (!rl[r] && !i.length && (r = Object.keys(rl)[0]), !rl[r])
|
|
142687
142687
|
throw new Error(`interpolation mode ${r} is not defined`);
|
|
142688
|
-
return Vi(n) !== "object" && (n = new Yt(n)), Vi(e) !== "object" && (e = new Yt(e)),
|
|
142688
|
+
return Vi(n) !== "object" && (n = new Yt(n)), Vi(e) !== "object" && (e = new Yt(e)), rl[r](n, e, t).alpha(
|
|
142689
142689
|
n.alpha() + t * (e.alpha() - n.alpha())
|
|
142690
142690
|
);
|
|
142691
142691
|
};
|
|
@@ -142788,7 +142788,7 @@ const gHt = (n, e, t) => {
|
|
|
142788
142788
|
"rgb"
|
|
142789
142789
|
);
|
|
142790
142790
|
};
|
|
142791
|
-
|
|
142791
|
+
rl.rgb = gHt;
|
|
142792
142792
|
const { sqrt: XA, pow: Lv } = Math, mHt = (n, e, t) => {
|
|
142793
142793
|
const [i, r, o] = n._rgb, [a, s, l] = e._rgb;
|
|
142794
142794
|
return new Yt(
|
|
@@ -142798,7 +142798,7 @@ const { sqrt: XA, pow: Lv } = Math, mHt = (n, e, t) => {
|
|
|
142798
142798
|
"rgb"
|
|
142799
142799
|
);
|
|
142800
142800
|
};
|
|
142801
|
-
|
|
142801
|
+
rl.lrgb = mHt;
|
|
142802
142802
|
const fHt = (n, e, t) => {
|
|
142803
142803
|
const i = n.lab(), r = e.lab();
|
|
142804
142804
|
return new Yt(
|
|
@@ -142808,7 +142808,7 @@ const fHt = (n, e, t) => {
|
|
|
142808
142808
|
"lab"
|
|
142809
142809
|
);
|
|
142810
142810
|
};
|
|
142811
|
-
|
|
142811
|
+
rl.lab = fHt;
|
|
142812
142812
|
const Eb = (n, e, t, i) => {
|
|
142813
142813
|
let r, o;
|
|
142814
142814
|
i === "hsl" ? (r = n.hsl(), o = e.hsl()) : i === "hsv" ? (r = n.hsv(), o = e.hsv()) : i === "hcg" ? (r = n.hcg(), o = e.hcg()) : i === "hsi" ? (r = n.hsi(), o = e.hsi()) : i === "lch" || i === "hcl" ? (i = "hcl", r = n.hcl(), o = e.hcl()) : i === "oklch" && (r = n.oklch().reverse(), o = e.oklch().reverse());
|
|
@@ -142817,8 +142817,8 @@ const Eb = (n, e, t, i) => {
|
|
|
142817
142817
|
let h, g, f, b;
|
|
142818
142818
|
return !isNaN(a) && !isNaN(s) ? (s > a && s - a > 180 ? b = s - (a + 360) : s < a && a - s > 180 ? b = s + 360 - a : b = s - a, g = a + t * b) : isNaN(a) ? isNaN(s) ? g = Number.NaN : (g = s, (d == 1 || d == 0) && i != "hsv" && (h = c)) : (g = a, (u == 1 || u == 0) && i != "hsv" && (h = l)), h === void 0 && (h = l + t * (c - l)), f = d + t * (u - d), i === "oklch" ? new Yt([f, h, g], i) : new Yt([g, h, f], i);
|
|
142819
142819
|
}, wX = (n, e, t) => Eb(n, e, t, "lch");
|
|
142820
|
-
|
|
142821
|
-
|
|
142820
|
+
rl.lch = wX;
|
|
142821
|
+
rl.hcl = wX;
|
|
142822
142822
|
const vHt = (n) => {
|
|
142823
142823
|
if (Vi(n) == "number" && n >= 0 && n <= 16777215) {
|
|
142824
142824
|
const e = n >> 16, t = n >> 8 & 255, i = n & 255;
|
|
@@ -142846,7 +142846,7 @@ const wHt = (n, e, t) => {
|
|
|
142846
142846
|
const i = n.num(), r = e.num();
|
|
142847
142847
|
return new Yt(i + t * (r - i), "num");
|
|
142848
142848
|
};
|
|
142849
|
-
|
|
142849
|
+
rl.num = wHt;
|
|
142850
142850
|
const { floor: xHt } = Math, kHt = (...n) => {
|
|
142851
142851
|
n = Ai(n, "hcg");
|
|
142852
142852
|
let [e, t, i] = n, r, o, a;
|
|
@@ -142898,7 +142898,7 @@ Ci.autodetect.push({
|
|
|
142898
142898
|
}
|
|
142899
142899
|
});
|
|
142900
142900
|
const SHt = (n, e, t) => Eb(n, e, t, "hcg");
|
|
142901
|
-
|
|
142901
|
+
rl.hcg = SHt;
|
|
142902
142902
|
const { cos: Rv } = Math, THt = (...n) => {
|
|
142903
142903
|
n = Ai(n, "hsi");
|
|
142904
142904
|
let [e, t, i] = n, r, o, a;
|
|
@@ -142924,7 +142924,7 @@ Ci.autodetect.push({
|
|
|
142924
142924
|
}
|
|
142925
142925
|
});
|
|
142926
142926
|
const MHt = (n, e, t) => Eb(n, e, t, "hsi");
|
|
142927
|
-
|
|
142927
|
+
rl.hsi = MHt;
|
|
142928
142928
|
const V4 = (...n) => {
|
|
142929
142929
|
n = Ai(n, "hsl");
|
|
142930
142930
|
const [e, t, i] = n;
|
|
@@ -142961,7 +142961,7 @@ Ci.autodetect.push({
|
|
|
142961
142961
|
}
|
|
142962
142962
|
});
|
|
142963
142963
|
const NHt = (n, e, t) => Eb(n, e, t, "hsl");
|
|
142964
|
-
|
|
142964
|
+
rl.hsl = NHt;
|
|
142965
142965
|
const { floor: LHt } = Math, RHt = (...n) => {
|
|
142966
142966
|
n = Ai(n, "hsv");
|
|
142967
142967
|
let [e, t, i] = n, r, o, a;
|
|
@@ -143013,7 +143013,7 @@ Ci.autodetect.push({
|
|
|
143013
143013
|
}
|
|
143014
143014
|
});
|
|
143015
143015
|
const jHt = (n, e, t) => Eb(n, e, t, "hsv");
|
|
143016
|
-
|
|
143016
|
+
rl.hsv = jHt;
|
|
143017
143017
|
function WC(n, e) {
|
|
143018
143018
|
let t = n.length;
|
|
143019
143019
|
Array.isArray(n[0]) || (n = [n]), Array.isArray(e[0]) || (e = e.map((a) => [a]));
|
|
@@ -143083,9 +143083,9 @@ const qHt = (n, e, t) => {
|
|
|
143083
143083
|
"oklab"
|
|
143084
143084
|
);
|
|
143085
143085
|
};
|
|
143086
|
-
|
|
143086
|
+
rl.oklab = qHt;
|
|
143087
143087
|
const WHt = (n, e, t) => Eb(n, e, t, "oklch");
|
|
143088
|
-
|
|
143088
|
+
rl.oklch = WHt;
|
|
143089
143089
|
const { pow: JA, sqrt: ZA, PI: QA, cos: M$, sin: P$, atan2: GHt } = Math, KHt = (n, e = "lrgb", t = null) => {
|
|
143090
143090
|
const i = n.length;
|
|
143091
143091
|
t || (t = Array.from(new Array(i)).map(() => 1));
|
|
@@ -143704,7 +143704,7 @@ const RVt = (...n) => {
|
|
|
143704
143704
|
"^oklab\\(" + ru + [$u, $u, $u].join(Ab) + Ob + "\\)$"
|
|
143705
143705
|
), BX = new RegExp(
|
|
143706
143706
|
"^oklch\\(" + ru + [$u, $u, bS].join(Ab) + Ob + "\\)$"
|
|
143707
|
-
), { round: $X } = Math, Bv = (n) => n.map((e, t) => t <= 2 ? Sf($X(e), 0, 255) : e), Ta = (n, e = 0, t = 100, i = !1) => (typeof n == "string" && n.endsWith("%") && (n = parseFloat(n.substring(0, n.length - 1)) / 100, i ? n = e + (n + 1) * 0.5 * (t - e) : n = e + n * (t - e)), +n),
|
|
143707
|
+
), { round: $X } = Math, Bv = (n) => n.map((e, t) => t <= 2 ? Sf($X(e), 0, 255) : e), Ta = (n, e = 0, t = 100, i = !1) => (typeof n == "string" && n.endsWith("%") && (n = parseFloat(n.substring(0, n.length - 1)) / 100, i ? n = e + (n + 1) * 0.5 * (t - e) : n = e + n * (t - e)), +n), Al = (n, e) => n === "none" ? e : n, oD = (n) => {
|
|
143708
143708
|
if (n = n.toLowerCase().trim(), n === "transparent")
|
|
143709
143709
|
return [0, 0, 0, 0];
|
|
143710
143710
|
let e;
|
|
@@ -143716,7 +143716,7 @@ const RVt = (...n) => {
|
|
|
143716
143716
|
if ((e = n.match(AX)) || (e = n.match(OX))) {
|
|
143717
143717
|
let t = e.slice(1, 4);
|
|
143718
143718
|
for (let r = 0; r < 3; r++)
|
|
143719
|
-
t[r] = +Ta(
|
|
143719
|
+
t[r] = +Ta(Al(t[r], 0), 0, 255);
|
|
143720
143720
|
t = Bv(t);
|
|
143721
143721
|
const i = e[4] !== void 0 ? +Ta(e[4], 0, 1) : 1;
|
|
143722
143722
|
return t[3] = i, t;
|
|
@@ -143729,7 +143729,7 @@ const RVt = (...n) => {
|
|
|
143729
143729
|
}
|
|
143730
143730
|
if ((e = n.match(IX)) || (e = n.match(MX))) {
|
|
143731
143731
|
const t = e.slice(1, 4);
|
|
143732
|
-
t[0] = +
|
|
143732
|
+
t[0] = +Al(t[0].replace("deg", ""), 0), t[1] = +Ta(Al(t[1], 0), 0, 100) * 0.01, t[2] = +Ta(Al(t[2], 0), 0, 100) * 0.01;
|
|
143733
143733
|
const i = Bv(V4(t)), r = e[4] !== void 0 ? +Ta(e[4], 0, 1) : 1;
|
|
143734
143734
|
return i[3] = r, i;
|
|
143735
143735
|
}
|
|
@@ -143743,7 +143743,7 @@ const RVt = (...n) => {
|
|
|
143743
143743
|
}
|
|
143744
143744
|
if (e = n.match(NX)) {
|
|
143745
143745
|
const t = e.slice(1, 4);
|
|
143746
|
-
t[0] = Ta(
|
|
143746
|
+
t[0] = Ta(Al(t[0], 0), 0, 100), t[1] = Ta(Al(t[1], 0), -125, 125, !0), t[2] = Ta(Al(t[2], 0), -125, 125, !0);
|
|
143747
143747
|
const i = mx();
|
|
143748
143748
|
Ah("d50");
|
|
143749
143749
|
const r = Bv(Z7(t));
|
|
@@ -143753,7 +143753,7 @@ const RVt = (...n) => {
|
|
|
143753
143753
|
}
|
|
143754
143754
|
if (e = n.match(LX)) {
|
|
143755
143755
|
const t = e.slice(1, 4);
|
|
143756
|
-
t[0] = Ta(t[0], 0, 100), t[1] = Ta(
|
|
143756
|
+
t[0] = Ta(t[0], 0, 100), t[1] = Ta(Al(t[1], 0), 0, 150, !1), t[2] = +Al(t[2].replace("deg", ""), 0);
|
|
143757
143757
|
const i = mx();
|
|
143758
143758
|
Ah("d50");
|
|
143759
143759
|
const r = Bv(eD(t));
|
|
@@ -143763,13 +143763,13 @@ const RVt = (...n) => {
|
|
|
143763
143763
|
}
|
|
143764
143764
|
if (e = n.match(RX)) {
|
|
143765
143765
|
const t = e.slice(1, 4);
|
|
143766
|
-
t[0] = Ta(
|
|
143766
|
+
t[0] = Ta(Al(t[0], 0), 0, 1), t[1] = Ta(Al(t[1], 0), -0.4, 0.4, !0), t[2] = Ta(Al(t[2], 0), -0.4, 0.4, !0);
|
|
143767
143767
|
const i = Bv(nD(t)), r = e[4] !== void 0 ? +Ta(e[4], 0, 1) : 1;
|
|
143768
143768
|
return i[3] = r, i;
|
|
143769
143769
|
}
|
|
143770
143770
|
if (e = n.match(BX)) {
|
|
143771
143771
|
const t = e.slice(1, 4);
|
|
143772
|
-
t[0] = Ta(
|
|
143772
|
+
t[0] = Ta(Al(t[0], 0), 0, 1), t[1] = Ta(Al(t[1], 0), 0, 0.4, !1), t[2] = +Al(t[2].replace("deg", ""), 0);
|
|
143773
143773
|
const i = Bv(EX(t)), r = e[4] !== void 0 ? +Ta(e[4], 0, 1) : 1;
|
|
143774
143774
|
return i[3] = r, i;
|
|
143775
143775
|
}
|
|
@@ -145618,16 +145618,16 @@ let ti = class extends hn {
|
|
|
145618
145618
|
}
|
|
145619
145619
|
onRequestAsset(n) {
|
|
145620
145620
|
return new Promise((t) => {
|
|
145621
|
-
n ===
|
|
145621
|
+
n === Bl.Image ? t({
|
|
145622
145622
|
id: "example-id",
|
|
145623
145623
|
name: "test",
|
|
145624
145624
|
src: "https://local.orangelogic.com/Assets/V2/MQYHu9JLm4ZnRSbesuitQwZ8hlzfNJxU4wZBgf4iFYttUK_5oyLV_BQ0bEo_eJCk0WX5dnIQ@NznXPQckFqBTrb2JJm82cNPJnFi8YvZsLk-/FYGtspJ3sVgnl9ns/moKB596OhaoNyGR1/X1UDJO.jpg",
|
|
145625
|
-
type:
|
|
145626
|
-
}) : n ===
|
|
145625
|
+
type: Bl.Image
|
|
145626
|
+
}) : n === Bl.Video && t({
|
|
145627
145627
|
id: "example-id",
|
|
145628
145628
|
name: "test",
|
|
145629
145629
|
src: "https://local.orangelogic.com/Assets/V2/MQYHu9JLm4ZnRSbesuitQ5afXR@WX7dqirSG2kRhB0UFCGLI1jGjzNq2HUNHpjqvU2JRbSR7I_NuWGcVILDK3nYcDEaiHySOrZLsy4WIHgtCfi3nkFxStF7brhoN7pZq/onfezGa0XL4E2hCX/yAjrMTe3nL2_krCV/X1UBDR.mp4",
|
|
145630
|
-
type:
|
|
145630
|
+
type: Bl.Video
|
|
145631
145631
|
});
|
|
145632
145632
|
});
|
|
145633
145633
|
}
|
|
@@ -146266,8 +146266,8 @@ let Ql = class extends DF {
|
|
|
146266
146266
|
this.isInEditMode || Object.keys(this.fetchedAssetData).length === 0 || this.applyAssetData(this.fetchedAssetData);
|
|
146267
146267
|
}
|
|
146268
146268
|
applyAssetData(n) {
|
|
146269
|
-
if (this.resolvedName =
|
|
146270
|
-
const e = Number.parseFloat(
|
|
146269
|
+
if (this.resolvedName = el(n[Ew]) || el(n[Aw]), this.parentRecordId && n[g9] === x6.AudioSegment) {
|
|
146270
|
+
const e = Number.parseFloat(el(n[m9])), t = Number.parseFloat(el(n[f9]));
|
|
146271
146271
|
this.inPoint = Number.isFinite(e) ? e : 0, this.outPoint = Number.isFinite(t) ? t : 0;
|
|
146272
146272
|
} else
|
|
146273
146273
|
this.inPoint = 0, this.outPoint = 0;
|
|
@@ -146529,8 +146529,8 @@ let Hn = class extends _x {
|
|
|
146529
146529
|
* own `cx-asset-data-display` fetch) into alt text and overlay content.
|
|
146530
146530
|
*/
|
|
146531
146531
|
applyFetchedAssetData(n) {
|
|
146532
|
-
this.applyAltFromAssetData(n), this.applyExtensionFromAssetData(n), this.overlayHeader =
|
|
146533
|
-
(e) =>
|
|
146532
|
+
this.applyAltFromAssetData(n), this.applyExtensionFromAssetData(n), this.overlayHeader = el(n[this.headerSourceField]), this.overlayDetails = el(n[this.detailsSourceField]), this.overlayAdditionalContent = this.additionalFields.map(
|
|
146533
|
+
(e) => el(n[e])
|
|
146534
146534
|
);
|
|
146535
146535
|
}
|
|
146536
146536
|
/**
|
|
@@ -146541,14 +146541,26 @@ let Hn = class extends _x {
|
|
|
146541
146541
|
* record whose extension never arrives does not block `srcset` indefinitely.
|
|
146542
146542
|
*/
|
|
146543
146543
|
applyExtensionFromAssetData(n) {
|
|
146544
|
-
const e =
|
|
146544
|
+
const e = el(n[Bh]);
|
|
146545
146545
|
e && (this.assetExtension = e);
|
|
146546
|
-
const t =
|
|
146546
|
+
const t = el(n[zy]);
|
|
146547
146547
|
t && (this.assetFileSize = t), this.hasResolvedAssetExtension = !0;
|
|
146548
146548
|
const i = Object.keys(n).find(
|
|
146549
146549
|
(o) => o.endsWith(p6)
|
|
146550
|
-
), r = i ?
|
|
146551
|
-
r && (this.assetProxyWidth = r);
|
|
146550
|
+
), r = i ? el(n[i]) : "";
|
|
146551
|
+
r && (this.assetProxyWidth = r), this.applyAutoFormatSrcFromAssetData(n);
|
|
146552
|
+
}
|
|
146553
|
+
/**
|
|
146554
|
+
* Uses the fetched proxy URL for Auto instead of trusting the proxy encoded in a
|
|
146555
|
+
* persisted `src`. Older blocks may still hold a valid TRX URL even though Auto now
|
|
146556
|
+
* resolves that asset to TR1; building a ladder from the stored URL would therefore
|
|
146557
|
+
* resize the wrong proxy.
|
|
146558
|
+
*/
|
|
146559
|
+
applyAutoFormatSrcFromAssetData(n) {
|
|
146560
|
+
if (this.isCurrentFormatManual)
|
|
146561
|
+
return;
|
|
146562
|
+
const e = el(n[`path_${this.currentFormat}`]);
|
|
146563
|
+
e && (this.useDarkVariant ? this.resolvedSrcDarkMode = e : this.resolvedSrc = e);
|
|
146552
146564
|
}
|
|
146553
146565
|
/**
|
|
146554
146566
|
* A stored space URL breaks once the space moves domain, so the link target is
|
|
@@ -147039,8 +147051,8 @@ let si = class extends zF {
|
|
|
147039
147051
|
* own `cx-asset-data-display` fetch) into name and overlay content.
|
|
147040
147052
|
*/
|
|
147041
147053
|
applyFetchedAssetData(n) {
|
|
147042
|
-
this.applyNameFromAssetData(n), this.overlayHeader =
|
|
147043
|
-
(e) =>
|
|
147054
|
+
this.applyNameFromAssetData(n), this.overlayHeader = el(n[this.headerSourceField]), this.overlayDetails = el(n[this.detailsSourceField]), this.overlayAdditionalContent = this.additionalFields.map(
|
|
147055
|
+
(e) => el(n[e])
|
|
147044
147056
|
);
|
|
147045
147057
|
}
|
|
147046
147058
|
handleClickAction(n) {
|
|
@@ -148859,7 +148871,7 @@ function QUt() {
|
|
|
148859
148871
|
return et(Ft.length, Di);
|
|
148860
148872
|
});
|
|
148861
148873
|
}).then(function() {
|
|
148862
|
-
return (0 < sn.length || dt && _ ===
|
|
148874
|
+
return (0 < sn.length || dt && _ === bl) && Se.mutate({ trans: U, type: "delete", keys: sn, criteria: dt, isAdditionalChunk: 0 < ht }).then(function(Di) {
|
|
148863
148875
|
return et(sn.length, Di);
|
|
148864
148876
|
});
|
|
148865
148877
|
}).then(function() {
|
|
@@ -148867,7 +148879,7 @@ function QUt() {
|
|
|
148867
148879
|
});
|
|
148868
148880
|
});
|
|
148869
148881
|
}
|
|
148870
|
-
var dt = Oi(B) && B.limit === 1 / 0 && (typeof _ != "function" || _ ===
|
|
148882
|
+
var dt = Oi(B) && B.limit === 1 / 0 && (typeof _ != "function" || _ === bl) && { index: B.index, range: B.range };
|
|
148871
148883
|
return at(0).then(function() {
|
|
148872
148884
|
if (0 < ze.length) throw new ot("Error modifying one or more objects", ze, Ye, Je);
|
|
148873
148885
|
return Ve.length;
|
|
@@ -148887,11 +148899,11 @@ function QUt() {
|
|
|
148887
148899
|
return oe - ve;
|
|
148888
148900
|
});
|
|
148889
148901
|
});
|
|
148890
|
-
}) : this.modify(
|
|
148902
|
+
}) : this.modify(bl);
|
|
148891
148903
|
}, _i);
|
|
148892
148904
|
function _i() {
|
|
148893
148905
|
}
|
|
148894
|
-
var
|
|
148906
|
+
var bl = function(_, A) {
|
|
148895
148907
|
return A.value = null;
|
|
148896
148908
|
};
|
|
148897
148909
|
function Xu(_, A) {
|
|
@@ -149116,7 +149128,7 @@ function QUt() {
|
|
|
149116
149128
|
function Ua(_) {
|
|
149117
149129
|
_.stopPropagation && _.stopPropagation(), _.preventDefault && _.preventDefault();
|
|
149118
149130
|
}
|
|
149119
|
-
var
|
|
149131
|
+
var wl = "storagemutated", Es = "x-storagemutated-1", qo = oi(null, wl), Wp = (qa.prototype._lock = function() {
|
|
149120
149132
|
return T(!pt.global), ++this._reculock, this._reculock !== 1 || pt.global || (pt.lockOwnerFor = this), this;
|
|
149121
149133
|
}, qa.prototype._unlock = function() {
|
|
149122
149134
|
if (T(!pt.global), --this._reculock == 0) for (pt.global || (pt.lockOwnerFor = null); 0 < this._blockedFuncs.length && !this._locked(); ) {
|
|
@@ -149205,9 +149217,9 @@ function QUt() {
|
|
|
149205
149217
|
function qa() {
|
|
149206
149218
|
}
|
|
149207
149219
|
function Wc(_, A, B, U, Z, oe, ve) {
|
|
149208
|
-
return { name: _, keyPath: A, unique: B, multi: U, auto: Z, compound: oe, src: (B && !ve ? "&" : "") + (U ? "*" : "") + (Z ? "++" : "") +
|
|
149220
|
+
return { name: _, keyPath: A, unique: B, multi: U, auto: Z, compound: oe, src: (B && !ve ? "&" : "") + (U ? "*" : "") + (Z ? "++" : "") + xl(A) };
|
|
149209
149221
|
}
|
|
149210
|
-
function
|
|
149222
|
+
function xl(_) {
|
|
149211
149223
|
return typeof _ == "string" ? _ : _ ? "[" + [].join.call(_, "+") + "]" : "";
|
|
149212
149224
|
}
|
|
149213
149225
|
function Gc(_, A, B) {
|
|
@@ -149548,7 +149560,7 @@ function QUt() {
|
|
|
149548
149560
|
function gu(_, A, B) {
|
|
149549
149561
|
var U = {};
|
|
149550
149562
|
return E(A.objectStoreNames, 0).forEach(function(Z) {
|
|
149551
|
-
for (var oe = B.objectStore(Z), ve = Wc(
|
|
149563
|
+
for (var oe = B.objectStore(Z), ve = Wc(xl(He = oe.keyPath), He || "", !0, !1, !!oe.autoIncrement, He && typeof He != "string", !0), Se = [], Re = 0; Re < oe.indexNames.length; ++Re) {
|
|
149552
149564
|
var Xe = oe.index(oe.indexNames[Re]), He = Xe.keyPath, Xe = Wc(Xe.name, He, !!Xe.unique, !!Xe.multiEntry, !1, He && typeof He != "string", !1);
|
|
149553
149565
|
Se.push(Xe);
|
|
149554
149566
|
}
|
|
@@ -149818,7 +149830,7 @@ function QUt() {
|
|
|
149818
149830
|
ze.schema.indexes.forEach(function(Ye) {
|
|
149819
149831
|
Ye.name && (et["idb://".concat(_.name, "/").concat(ze.name, "/").concat(Ye.name)] = new Go(-1 / 0, [[[]]]));
|
|
149820
149832
|
}), et["idb://".concat(_.name, "/").concat(ze.name, "/")] = et["idb://".concat(_.name, "/").concat(ze.name, "/:dels")] = new Go(-1 / 0, [[[]]]);
|
|
149821
|
-
}), qo(
|
|
149833
|
+
}), qo(wl).fire(et), eg(et, !0)), _;
|
|
149822
149834
|
});
|
|
149823
149835
|
}
|
|
149824
149836
|
function ep(_) {
|
|
@@ -149981,7 +149993,7 @@ function QUt() {
|
|
|
149981
149993
|
} });
|
|
149982
149994
|
} };
|
|
149983
149995
|
} };
|
|
149984
|
-
function
|
|
149996
|
+
function kl(_, A) {
|
|
149985
149997
|
return _.trans.mode === "readonly" && !!_.subscr && !_.trans.explicit && _.trans.db._options.cache !== "disabled" && !A.schema.primaryKey.outbound;
|
|
149986
149998
|
}
|
|
149987
149999
|
function vu(_, A) {
|
|
@@ -150046,7 +150058,7 @@ function QUt() {
|
|
|
150046
150058
|
}, count: Me, query: Me, openCursor: Me };
|
|
150047
150059
|
return a(et).forEach(function(ze) {
|
|
150048
150060
|
Xe[ze] = function(Ye) {
|
|
150049
|
-
var Je = pt.subscr, Ve = !!Je, at =
|
|
150061
|
+
var Je = pt.subscr, Ve = !!Je, at = kl(pt, Z) && vu(ze, Ye) ? Ye.obsSet = {} : Je;
|
|
150050
150062
|
if (Ve) {
|
|
150051
150063
|
var dt = function(Nt) {
|
|
150052
150064
|
return Nt = "idb://".concat(A, "/").concat(U, "/").concat(Nt), at[Nt] || (at[Nt] = new Go());
|
|
@@ -150235,7 +150247,7 @@ function QUt() {
|
|
|
150235
150247
|
});
|
|
150236
150248
|
}), ve) : U.mutate(oe);
|
|
150237
150249
|
}, query: function(oe) {
|
|
150238
|
-
if (!
|
|
150250
|
+
if (!kl(pt, U) || !vu("query", oe)) return U.query(oe);
|
|
150239
150251
|
var ve = ((He = pt.trans) === null || He === void 0 ? void 0 : He.db._options.cache) === "immutable", Me = pt, Se = Me.requery, Re = Me.signal, He = function(Ye, Je, Ve, at) {
|
|
150240
150252
|
var dt = Ar["idb://".concat(Ye, "/").concat(Je)];
|
|
150241
150253
|
if (!dt) return [];
|
|
@@ -150552,7 +150564,7 @@ function QUt() {
|
|
|
150552
150564
|
B = !0, A = dt, Se || Ve.signal.aborted || (Re = {}, function(ht) {
|
|
150553
150565
|
for (var Ct in ht) if (u(ht, Ct)) return;
|
|
150554
150566
|
return 1;
|
|
150555
|
-
}(He = Je) || Me || (qo(
|
|
150567
|
+
}(He = Je) || Me || (qo(wl, ze), Me = !0), Mi(function() {
|
|
150556
150568
|
return !Se && Z.next && Z.next(dt);
|
|
150557
150569
|
}));
|
|
150558
150570
|
}, function(dt) {
|
|
@@ -150637,7 +150649,7 @@ function QUt() {
|
|
|
150637
150649
|
return parseInt(_);
|
|
150638
150650
|
}).reduce(function(_, A, B) {
|
|
150639
150651
|
return _ + A / Math.pow(10, 2 * B);
|
|
150640
|
-
}) })), Id.maxKey = As(Id.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (qo(
|
|
150652
|
+
}) })), Id.maxKey = As(Id.dependencies.IDBKeyRange), typeof dispatchEvent < "u" && typeof addEventListener < "u" && (qo(wl, function(_) {
|
|
150641
150653
|
gc || (_ = new CustomEvent(Es, { detail: _ }), gc = !0, dispatchEvent(_), gc = !1);
|
|
150642
150654
|
}), addEventListener(Es, function(_) {
|
|
150643
150655
|
_ = _.detail, gc || Jp(_);
|
|
@@ -150648,7 +150660,7 @@ function QUt() {
|
|
|
150648
150660
|
(Zp = new BroadcastChannel(Es)).onmessage = function(_) {
|
|
150649
150661
|
return _.data && Jp(_.data);
|
|
150650
150662
|
};
|
|
150651
|
-
})(), typeof Zp.unref == "function" && Zp.unref(), qo(
|
|
150663
|
+
})(), typeof Zp.unref == "function" && Zp.unref(), qo(wl, function(_) {
|
|
150652
150664
|
gc || Zp.postMessage(_);
|
|
150653
150665
|
})), typeof addEventListener < "u" && (addEventListener("pagehide", function(_) {
|
|
150654
150666
|
if (!Le.disableBfCache && _.persisted) {
|
|
@@ -152852,8 +152864,8 @@ Ti.dependencies = {
|
|
|
152852
152864
|
"cx-icon-button": Cr,
|
|
152853
152865
|
"cx-input": eo,
|
|
152854
152866
|
"cx-line-clamp": Lp,
|
|
152855
|
-
"cx-menu":
|
|
152856
|
-
"cx-menu-item":
|
|
152867
|
+
"cx-menu": hl,
|
|
152868
|
+
"cx-menu-item": gl,
|
|
152857
152869
|
"cx-pagination": dee,
|
|
152858
152870
|
"cx-progress-bar": uee,
|
|
152859
152871
|
"cx-range": s6,
|
|
@@ -152991,7 +153003,7 @@ var uWt = Object.defineProperty, pWt = Object.getOwnPropertyDescriptor, _d = (n,
|
|
|
152991
153003
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
152992
153004
|
return i && r && uWt(e, t, r), r;
|
|
152993
153005
|
};
|
|
152994
|
-
let
|
|
153006
|
+
let dl = class extends hn {
|
|
152995
153007
|
constructor() {
|
|
152996
153008
|
super(...arguments), this.localize = new Dn(this), this.open = !1, this.popupDistance = 16, this.currentOccurrence = 0, this.totalOccurrences = 0, this.hideOccurrenceProgress = !1, this.findText = "", this.replaceText = "", this.matchCase = !1, this.wholeWord = !1, this.findInSelection = !1, this.popupAnchor = {
|
|
152997
153009
|
contextElement: this,
|
|
@@ -153098,14 +153110,14 @@ let cl = class extends hn {
|
|
|
153098
153110
|
)}<cx-space spacing="3x-small" class="search-navigation"><cx-tooltip content=${this.localize.term("previousOccurrence")} hoist><cx-icon-button name="arrow_upward" size="small" label=${this.localize.term("previousOccurrence")} @click=${this.handlePreviousClick}></cx-icon-button></cx-tooltip><cx-tooltip content=${this.localize.term("nextOccurrence")} hoist><cx-icon-button name="arrow_downward" size="small" label=${this.localize.term("nextOccurrence")} @click=${this.handleNextClick}></cx-icon-button></cx-tooltip><cx-dropdown placement="bottom-end" hoist><cx-tooltip slot="trigger" content=${this.localize.term("searchOptions")} hoist><cx-icon-button name="settings" size="small" label=${this.localize.term("searchOptions")}></cx-icon-button></cx-tooltip><cx-menu @cx-select=${this.handleSearchOptionSelect}><cx-menu-item type="checkbox" value="matchCase" ?checked=${this.matchCase}>${this.localize.term("matchCase")}</cx-menu-item><cx-menu-item type="checkbox" value="wholeWord" ?checked=${this.wholeWord}>${this.localize.term("findWholeWordsOnly")}</cx-menu-item><cx-menu-item type="checkbox" value="findInSelection" ?checked=${this.findInSelection}>${this.localize.term("findInSelection")}</cx-menu-item></cx-menu></cx-dropdown></cx-space></cx-space><cx-input aria-label=${this.localize.term("replaceWith")} placeholder=${this.localize.term("replaceWith")} value=${this.replaceText} @cx-input=${this.handleReplaceTextInput}></cx-input><cx-space spacing="2x-small" justify-content="flex-end" class="actions"><cx-button @click=${this.handleFind}>${this.localize.term("find")}</cx-button><cx-button ?disabled=${this.totalOccurrences === 0} @click=${this.handleReplaceClick}>${this.localize.term("replace")}</cx-button><cx-button variant="primary" ?disabled=${this.totalOccurrences === 0} @click=${this.handleReplaceAllClick}>${this.localize.term("replaceAll")}</cx-button></cx-space></cx-space></cx-space></cx-popup>`;
|
|
153099
153111
|
}
|
|
153100
153112
|
};
|
|
153101
|
-
|
|
153102
|
-
|
|
153113
|
+
dl.styles = [mn, dWt];
|
|
153114
|
+
dl.dependencies = {
|
|
153103
153115
|
"cx-button": Ji,
|
|
153104
153116
|
"cx-dropdown": _s,
|
|
153105
153117
|
"cx-icon-button": Cr,
|
|
153106
153118
|
"cx-input": eo,
|
|
153107
|
-
"cx-menu":
|
|
153108
|
-
"cx-menu-item":
|
|
153119
|
+
"cx-menu": hl,
|
|
153120
|
+
"cx-menu-item": gl,
|
|
153109
153121
|
"cx-popup": Qd,
|
|
153110
153122
|
"cx-space": Ui,
|
|
153111
153123
|
"cx-tooltip": Eo,
|
|
@@ -153113,50 +153125,50 @@ cl.dependencies = {
|
|
|
153113
153125
|
};
|
|
153114
153126
|
_d([
|
|
153115
153127
|
Tt(".search-input")
|
|
153116
|
-
],
|
|
153128
|
+
], dl.prototype, "searchInputEl", 2);
|
|
153117
153129
|
_d([
|
|
153118
153130
|
O({ reflect: !0, type: Boolean })
|
|
153119
|
-
],
|
|
153131
|
+
], dl.prototype, "open", 2);
|
|
153120
153132
|
_d([
|
|
153121
153133
|
O({ attribute: "popup-distance", type: Number })
|
|
153122
|
-
],
|
|
153134
|
+
], dl.prototype, "popupDistance", 2);
|
|
153123
153135
|
_d([
|
|
153124
153136
|
O({ attribute: "current-occurrence", type: Number })
|
|
153125
|
-
],
|
|
153137
|
+
], dl.prototype, "currentOccurrence", 2);
|
|
153126
153138
|
_d([
|
|
153127
153139
|
O({ attribute: "total-occurrences", type: Number })
|
|
153128
|
-
],
|
|
153140
|
+
], dl.prototype, "totalOccurrences", 2);
|
|
153129
153141
|
_d([
|
|
153130
153142
|
O({ attribute: "hide-occurrence-progress", type: Boolean })
|
|
153131
|
-
],
|
|
153143
|
+
], dl.prototype, "hideOccurrenceProgress", 2);
|
|
153132
153144
|
_d([
|
|
153133
153145
|
ge()
|
|
153134
|
-
],
|
|
153146
|
+
], dl.prototype, "findText", 2);
|
|
153135
153147
|
_d([
|
|
153136
153148
|
ge()
|
|
153137
|
-
],
|
|
153149
|
+
], dl.prototype, "replaceText", 2);
|
|
153138
153150
|
_d([
|
|
153139
153151
|
ge()
|
|
153140
|
-
],
|
|
153152
|
+
], dl.prototype, "matchCase", 2);
|
|
153141
153153
|
_d([
|
|
153142
153154
|
ge()
|
|
153143
|
-
],
|
|
153155
|
+
], dl.prototype, "wholeWord", 2);
|
|
153144
153156
|
_d([
|
|
153145
153157
|
ge()
|
|
153146
|
-
],
|
|
153158
|
+
], dl.prototype, "findInSelection", 2);
|
|
153147
153159
|
_d([
|
|
153148
153160
|
Qe("open", { waitUntilFirstUpdate: !0 })
|
|
153149
|
-
],
|
|
153150
|
-
|
|
153161
|
+
], dl.prototype, "handleOpenChange", 1);
|
|
153162
|
+
dl = _d([
|
|
153151
153163
|
nn("cx-find-and-replace")
|
|
153152
|
-
],
|
|
153164
|
+
], dl);
|
|
153153
153165
|
const hWt = un`.lightbox-dialog{--body-spacing:0px;--width:90dvw}.lightbox{width:100%;height:100%;position:relative}.lightbox__toolbar{align-items:center;gap:var(--cx-spacing-small);right:var(--cx-spacing-medium);top:var(--cx-spacing-medium);z-index:var(--cx-z-index-tooltip);display:flex;position:absolute}cx-carousel{--gallery-item-border-radius:0px;--slide-transition-duration:0s;--transition-transform-duration:0s;width:100%;height:100%}`;
|
|
153154
153166
|
var gWt = Object.defineProperty, mWt = Object.getOwnPropertyDescriptor, Cd = (n, e, t, i) => {
|
|
153155
153167
|
for (var r = i > 1 ? void 0 : i ? mWt(e, t) : e, o = n.length - 1, a; o >= 0; o--)
|
|
153156
153168
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
153157
153169
|
return i && r && gWt(e, t, r), r;
|
|
153158
153170
|
};
|
|
153159
|
-
let
|
|
153171
|
+
let ul = class extends hn {
|
|
153160
153172
|
constructor() {
|
|
153161
153173
|
super(...arguments), this.localize = new Dn(this), this.open = !1, this.data = [], this.totalData = 0, this.chunk = [0, 1 / 0], this.startIndex = 0, this.loop = !1, this.canDownload = !1, this.activeIndex = 0, this.mappedData = [];
|
|
153162
153174
|
}
|
|
@@ -153187,8 +153199,8 @@ let dl = class extends hn {
|
|
|
153187
153199
|
return I`<cx-dialog strategy="overlay" class="lightbox-dialog" ?open=${this.open} no-header @cx-request-close=${this.handleRequestClose}><div part="base" class=${Ut({ lightbox: !0 })}>${this.renderToolbar()}<cx-carousel .data=${this.open ? this.mappedData : []} .totalData=${this.totalData} .chunk=${this.chunk} ?loop=${this.loop} navigation="arrows" transition-type=${fp.Fade} @cx-slide-change=${this.handleSlideChange}></cx-carousel></div></cx-dialog>`;
|
|
153188
153200
|
}
|
|
153189
153201
|
};
|
|
153190
|
-
|
|
153191
|
-
|
|
153202
|
+
ul.styles = [mn, hWt];
|
|
153203
|
+
ul.dependencies = {
|
|
153192
153204
|
"cx-button": Ji,
|
|
153193
153205
|
"cx-carousel": Tn,
|
|
153194
153206
|
"cx-dialog": as,
|
|
@@ -153197,43 +153209,43 @@ dl.dependencies = {
|
|
|
153197
153209
|
};
|
|
153198
153210
|
Cd([
|
|
153199
153211
|
Tt("cx-carousel")
|
|
153200
|
-
],
|
|
153212
|
+
], ul.prototype, "carouselEl", 2);
|
|
153201
153213
|
Cd([
|
|
153202
153214
|
O({ reflect: !0, type: Boolean })
|
|
153203
|
-
],
|
|
153215
|
+
], ul.prototype, "open", 2);
|
|
153204
153216
|
Cd([
|
|
153205
153217
|
O({ attribute: !1, type: Array })
|
|
153206
|
-
],
|
|
153218
|
+
], ul.prototype, "data", 2);
|
|
153207
153219
|
Cd([
|
|
153208
153220
|
O({ attribute: "total-data", type: Number })
|
|
153209
|
-
],
|
|
153221
|
+
], ul.prototype, "totalData", 2);
|
|
153210
153222
|
Cd([
|
|
153211
153223
|
O({ attribute: !1, type: Array })
|
|
153212
|
-
],
|
|
153224
|
+
], ul.prototype, "chunk", 2);
|
|
153213
153225
|
Cd([
|
|
153214
153226
|
O({ attribute: "start-index", type: Number })
|
|
153215
|
-
],
|
|
153227
|
+
], ul.prototype, "startIndex", 2);
|
|
153216
153228
|
Cd([
|
|
153217
153229
|
O({ reflect: !0, type: Boolean })
|
|
153218
|
-
],
|
|
153230
|
+
], ul.prototype, "loop", 2);
|
|
153219
153231
|
Cd([
|
|
153220
153232
|
O({ attribute: "can-download", type: Boolean })
|
|
153221
|
-
],
|
|
153233
|
+
], ul.prototype, "canDownload", 2);
|
|
153222
153234
|
Cd([
|
|
153223
153235
|
ge()
|
|
153224
|
-
],
|
|
153236
|
+
], ul.prototype, "activeIndex", 2);
|
|
153225
153237
|
Cd([
|
|
153226
153238
|
ge()
|
|
153227
|
-
],
|
|
153239
|
+
], ul.prototype, "mappedData", 2);
|
|
153228
153240
|
Cd([
|
|
153229
153241
|
Qe("open", { waitUntilFirstUpdate: !0 })
|
|
153230
|
-
],
|
|
153242
|
+
], ul.prototype, "handleOpenChange", 1);
|
|
153231
153243
|
Cd([
|
|
153232
153244
|
Qe("data")
|
|
153233
|
-
],
|
|
153234
|
-
|
|
153245
|
+
], ul.prototype, "handleDataChange", 1);
|
|
153246
|
+
ul = Cd([
|
|
153235
153247
|
nn("cx-lightbox")
|
|
153236
|
-
],
|
|
153248
|
+
], ul);
|
|
153237
153249
|
const fWt = un`:host{display:inline-block}:host([mode=inline]){display:contents}:host([mode=inline]) cx-menu{width:100%}cx-dropdown{min-width:max-content}@media (width<=991px){:host([mode=dropdown][panel-visibility=desktop-only]) cx-menu{display:none}}.space-selector__trigger{max-width:500px}.space-selector__list{max-height:60vh;overflow:hidden auto}.space-selector__space--current{pointer-events:none}.space-selector__status{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);color:var(--cx-color-neutral-600)}.space-selector__action--danger{--label-color:var(--cx-color-danger-600)}.space-selector__action--danger cx-icon{color:var(--cx-color-danger-600)}cx-menu-item{--checked-icon-display:none}`;
|
|
153238
153250
|
var vWt = Object.defineProperty, yWt = Object.getOwnPropertyDescriptor, uJ = (n) => {
|
|
153239
153251
|
throw TypeError(n);
|
|
@@ -153241,10 +153253,10 @@ var vWt = Object.defineProperty, yWt = Object.getOwnPropertyDescriptor, uJ = (n)
|
|
|
153241
153253
|
for (var r = i > 1 ? void 0 : i ? yWt(e, t) : e, o = n.length - 1, a; o >= 0; o--)
|
|
153242
153254
|
(a = n[o]) && (r = (i ? a(e, t, r) : a(r)) || r);
|
|
153243
153255
|
return i && r && vWt(e, t, r), r;
|
|
153244
|
-
}, gD = (n, e, t) => e.has(n) || uJ("Cannot " + t), lf = (n, e, t) => (gD(n, e, "read from private field"), t ? t.call(n) : e.get(n)), s9 = (n, e, t) => e.has(n) ? uJ("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), n3 = (n, e, t, i) => (gD(n, e, "write to private field"), e.set(n, t), t), Dc = (n, e, t) => (gD(n, e, "access private method"), t), db, xh,
|
|
153256
|
+
}, gD = (n, e, t) => e.has(n) || uJ("Cannot " + t), lf = (n, e, t) => (gD(n, e, "read from private field"), t ? t.call(n) : e.get(n)), s9 = (n, e, t) => e.has(n) ? uJ("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, t), n3 = (n, e, t, i) => (gD(n, e, "write to private field"), e.set(n, t), t), Dc = (n, e, t) => (gD(n, e, "access private method"), t), db, xh, tl, pJ, mD, hJ, gJ, mJ, fJ, vJ, Q4, yJ, e6, bJ;
|
|
153245
153257
|
let fa = class extends hn {
|
|
153246
153258
|
constructor() {
|
|
153247
|
-
super(...arguments), s9(this,
|
|
153259
|
+
super(...arguments), s9(this, tl), s9(this, db, !1), s9(this, xh), this.canCreate = !1, this.canDelete = !1, this.canEdit = !1, this.createLabel = "New space", this.currentSpaceId = "", this.currentSpaceName = "", this.deleteLabel = "Delete space", this.excludedSpaceId = "", this.emptyLabel = "No other space available", this.mode = "dropdown", this.panelVisibility = "always", this.settingsLabel = "Space settings", this.triggerIcon = "grid_view", this.triggerLabel = "List of spaces", this.triggerVariant = "button", this.loading = !1, this.spaces = [];
|
|
153248
153260
|
}
|
|
153249
153261
|
connectedCallback() {
|
|
153250
153262
|
super.connectedCallback();
|
|
@@ -153253,21 +153265,21 @@ let fa = class extends hn {
|
|
|
153253
153265
|
super.disconnectedCallback(), lf(this, xh)?.disconnect(), n3(this, xh, void 0);
|
|
153254
153266
|
}
|
|
153255
153267
|
updated(n) {
|
|
153256
|
-
super.updated(n), Dc(this,
|
|
153268
|
+
super.updated(n), Dc(this, tl, pJ).call(this);
|
|
153257
153269
|
}
|
|
153258
153270
|
render() {
|
|
153259
|
-
return this.mode === "inline" ? Dc(this,
|
|
153271
|
+
return this.mode === "inline" ? Dc(this, tl, e6).call(this) : I`<cx-dropdown hoist placement="bottom-start" @cx-show=${Dc(this, tl, mD)}>${Dc(this, tl, bJ).call(this)} ${Dc(this, tl, e6).call(this)}</cx-dropdown>`;
|
|
153260
153272
|
}
|
|
153261
153273
|
};
|
|
153262
153274
|
db = /* @__PURE__ */ new WeakMap();
|
|
153263
153275
|
xh = /* @__PURE__ */ new WeakMap();
|
|
153264
|
-
|
|
153276
|
+
tl = /* @__PURE__ */ new WeakSet();
|
|
153265
153277
|
pJ = function() {
|
|
153266
153278
|
if (this.mode !== "inline" || lf(this, db) || lf(this, xh))
|
|
153267
153279
|
return;
|
|
153268
153280
|
const n = this.renderRoot.querySelector("cx-menu");
|
|
153269
153281
|
n && (n3(this, xh, new IntersectionObserver((e) => {
|
|
153270
|
-
e.some((t) => t.isIntersecting) && (lf(this, xh)?.disconnect(), n3(this, xh, void 0), Dc(this,
|
|
153282
|
+
e.some((t) => t.isIntersecting) && (lf(this, xh)?.disconnect(), n3(this, xh, void 0), Dc(this, tl, mD).call(this));
|
|
153271
153283
|
})), lf(this, xh).observe(n));
|
|
153272
153284
|
};
|
|
153273
153285
|
mD = async function() {
|
|
@@ -153293,7 +153305,7 @@ hJ = function(n) {
|
|
|
153293
153305
|
};
|
|
153294
153306
|
gJ = function(n) {
|
|
153295
153307
|
const e = n.currentTarget.dataset.module, t = this.spaces.find((i) => i.module === e);
|
|
153296
|
-
t && Dc(this,
|
|
153308
|
+
t && Dc(this, tl, hJ).call(this, t);
|
|
153297
153309
|
};
|
|
153298
153310
|
mJ = function() {
|
|
153299
153311
|
this.emit("cx-space-create");
|
|
@@ -153308,26 +153320,26 @@ Q4 = function(n, e = !1) {
|
|
|
153308
153320
|
return I`<cx-space class="space-selector__status" align-items="center" spacing="small">${e ? I`<cx-spinner></cx-spinner>` : qn} ${n}</cx-space>`;
|
|
153309
153321
|
};
|
|
153310
153322
|
yJ = function() {
|
|
153311
|
-
return this.loading ? Dc(this,
|
|
153323
|
+
return this.loading ? Dc(this, tl, Q4).call(this, "", !0) : this.spaces.length ? this.spaces.map((n) => {
|
|
153312
153324
|
const e = n.module === this.currentSpaceId;
|
|
153313
|
-
return I`<cx-menu-item class=${e ? "space-selector__space--current" : ""} data-module=${n.module} type="checkbox" ?checked=${e} @click=${Dc(this,
|
|
153314
|
-
}) : lf(this, db) ? Dc(this,
|
|
153325
|
+
return I`<cx-menu-item class=${e ? "space-selector__space--current" : ""} data-module=${n.module} type="checkbox" ?checked=${e} @click=${Dc(this, tl, gJ)}>${n.name || n.url}</cx-menu-item>`;
|
|
153326
|
+
}) : lf(this, db) ? Dc(this, tl, Q4).call(this, this.emptyLabel) : qn;
|
|
153315
153327
|
};
|
|
153316
153328
|
e6 = function() {
|
|
153317
153329
|
const n = this.canEdit || this.canDelete;
|
|
153318
|
-
return I`<cx-menu><!-- Entries the host adds above the list, i.e. the drawer's "Back" item. --><slot></slot><cx-menu-section class="space-selector__list">${Dc(this,
|
|
153330
|
+
return I`<cx-menu><!-- Entries the host adds above the list, i.e. the drawer's "Back" item. --><slot></slot><cx-menu-section class="space-selector__list">${Dc(this, tl, yJ).call(this)}</cx-menu-section>${We(
|
|
153319
153331
|
this.canCreate,
|
|
153320
|
-
() => I`<cx-menu-section><cx-menu-item @click=${Dc(this,
|
|
153332
|
+
() => I`<cx-menu-section><cx-menu-item @click=${Dc(this, tl, mJ)}><cx-icon slot="prefix" name="add"></cx-icon>${this.createLabel}</cx-menu-item></cx-menu-section>`
|
|
153321
153333
|
)}
|
|
153322
153334
|
${We(
|
|
153323
153335
|
n,
|
|
153324
153336
|
() => I`<cx-menu-section>${We(
|
|
153325
153337
|
this.canEdit,
|
|
153326
|
-
() => I`<cx-menu-item @click=${Dc(this,
|
|
153338
|
+
() => I`<cx-menu-item @click=${Dc(this, tl, fJ)}><cx-icon slot="prefix" name="settings"></cx-icon>${this.settingsLabel}</cx-menu-item>`
|
|
153327
153339
|
)}
|
|
153328
153340
|
${We(
|
|
153329
153341
|
this.canDelete,
|
|
153330
|
-
() => I`<cx-menu-item class="space-selector__action--danger" @click=${Dc(this,
|
|
153342
|
+
() => I`<cx-menu-item class="space-selector__action--danger" @click=${Dc(this, tl, vJ)}><cx-icon slot="prefix" name="delete"></cx-icon>${this.deleteLabel}</cx-menu-item>`
|
|
153331
153343
|
)}</cx-menu-section>`
|
|
153332
153344
|
)}</cx-menu>`;
|
|
153333
153345
|
};
|
|
@@ -153340,8 +153352,8 @@ fa.dependencies = {
|
|
|
153340
153352
|
"cx-dropdown": _s,
|
|
153341
153353
|
"cx-icon": Hr,
|
|
153342
153354
|
"cx-icon-button": Cr,
|
|
153343
|
-
"cx-menu":
|
|
153344
|
-
"cx-menu-item":
|
|
153355
|
+
"cx-menu": hl,
|
|
153356
|
+
"cx-menu-item": gl,
|
|
153345
153357
|
"cx-menu-section": RF,
|
|
153346
153358
|
"cx-space": Ui,
|
|
153347
153359
|
"cx-spinner": bd
|
|
@@ -154000,9 +154012,9 @@ const TWt = (n, e) => {
|
|
|
154000
154012
|
const t = e.find((i) => i.id === n);
|
|
154001
154013
|
return t ? t.name : n;
|
|
154002
154014
|
};
|
|
154003
|
-
let
|
|
154015
|
+
let pl = class extends hn {
|
|
154004
154016
|
constructor() {
|
|
154005
|
-
super(...arguments), this.localize = new Dn(this), this.hasSlotController = new d3(this, "trigger"), this.data = _Wt, this.forcedSortOrder = null, this.forcedSortOrderReason = null, this.label = this.localize.term("viewAndSort"), this.triggerButtonVariant = "text", this.triggerButtonSize =
|
|
154017
|
+
super(...arguments), this.localize = new Dn(this), this.hasSlotController = new d3(this, "trigger"), this.data = _Wt, this.forcedSortOrder = null, this.forcedSortOrderReason = null, this.label = this.localize.term("viewAndSort"), this.triggerButtonVariant = "text", this.triggerButtonSize = Ml.Medium, this.flattenSubmenu = !1, this._loading = !1, this._menu = [], this._settings = {
|
|
154006
154018
|
darkMode: !1,
|
|
154007
154019
|
deployStack: !1,
|
|
154008
154020
|
direction: "",
|
|
@@ -154382,63 +154394,63 @@ let ul = class extends hn {
|
|
|
154382
154394
|
)}</cx-view-and-sort>`;
|
|
154383
154395
|
}
|
|
154384
154396
|
};
|
|
154385
|
-
|
|
154397
|
+
pl.dependencies = {
|
|
154386
154398
|
"cx-view-and-sort": Hu
|
|
154387
154399
|
};
|
|
154388
154400
|
Uc([
|
|
154389
154401
|
Tt("cx-view-and-sort")
|
|
154390
|
-
],
|
|
154402
|
+
], pl.prototype, "viewAndSort", 2);
|
|
154391
154403
|
Uc([
|
|
154392
154404
|
O({ type: Object })
|
|
154393
|
-
],
|
|
154405
|
+
], pl.prototype, "data", 2);
|
|
154394
154406
|
Uc([
|
|
154395
154407
|
O({ attribute: "forced-sort-order", reflect: !0, type: Boolean })
|
|
154396
|
-
],
|
|
154408
|
+
], pl.prototype, "forcedSortOrder", 2);
|
|
154397
154409
|
Uc([
|
|
154398
154410
|
O({
|
|
154399
154411
|
attribute: "forced-sort-order-reason",
|
|
154400
154412
|
reflect: !0,
|
|
154401
154413
|
type: String
|
|
154402
154414
|
})
|
|
154403
|
-
],
|
|
154415
|
+
], pl.prototype, "forcedSortOrderReason", 2);
|
|
154404
154416
|
Uc([
|
|
154405
154417
|
O({ type: String })
|
|
154406
|
-
],
|
|
154418
|
+
], pl.prototype, "label", 2);
|
|
154407
154419
|
Uc([
|
|
154408
154420
|
O({
|
|
154409
154421
|
attribute: "trigger-button-variant",
|
|
154410
154422
|
reflect: !0,
|
|
154411
154423
|
type: String
|
|
154412
154424
|
})
|
|
154413
|
-
],
|
|
154425
|
+
], pl.prototype, "triggerButtonVariant", 2);
|
|
154414
154426
|
Uc([
|
|
154415
154427
|
O({
|
|
154416
154428
|
attribute: "trigger-button-size",
|
|
154417
154429
|
reflect: !0,
|
|
154418
154430
|
type: String
|
|
154419
154431
|
})
|
|
154420
|
-
],
|
|
154432
|
+
], pl.prototype, "triggerButtonSize", 2);
|
|
154421
154433
|
Uc([
|
|
154422
154434
|
O({ attribute: "flatten-submenu", reflect: !0, type: Boolean })
|
|
154423
|
-
],
|
|
154435
|
+
], pl.prototype, "flattenSubmenu", 2);
|
|
154424
154436
|
Uc([
|
|
154425
154437
|
ge()
|
|
154426
|
-
],
|
|
154438
|
+
], pl.prototype, "_loading", 2);
|
|
154427
154439
|
Uc([
|
|
154428
154440
|
ge()
|
|
154429
|
-
],
|
|
154441
|
+
], pl.prototype, "_menu", 2);
|
|
154430
154442
|
Uc([
|
|
154431
154443
|
ge()
|
|
154432
|
-
],
|
|
154444
|
+
], pl.prototype, "_settings", 2);
|
|
154433
154445
|
Uc([
|
|
154434
154446
|
Qe("data")
|
|
154435
|
-
],
|
|
154447
|
+
], pl.prototype, "handleDataChange", 1);
|
|
154436
154448
|
Uc([
|
|
154437
154449
|
Qe("_settings")
|
|
154438
|
-
],
|
|
154439
|
-
|
|
154450
|
+
], pl.prototype, "handleSettingsChange", 1);
|
|
154451
|
+
pl = Uc([
|
|
154440
154452
|
nn("cx-template-switcher")
|
|
154441
|
-
],
|
|
154453
|
+
], pl);
|
|
154442
154454
|
const xF = {
|
|
154443
154455
|
1: "MALE",
|
|
154444
154456
|
2: "FEMALE"
|
|
@@ -157001,8 +157013,8 @@ ni.dependencies = {
|
|
|
157001
157013
|
"cx-icon": Hr,
|
|
157002
157014
|
"cx-icon-button": Cr,
|
|
157003
157015
|
"cx-input": eo,
|
|
157004
|
-
"cx-menu":
|
|
157005
|
-
"cx-menu-item":
|
|
157016
|
+
"cx-menu": hl,
|
|
157017
|
+
"cx-menu-item": gl,
|
|
157006
157018
|
"cx-menu-label": o6,
|
|
157007
157019
|
"cx-option": ta,
|
|
157008
157020
|
"cx-popup": Qd,
|
|
@@ -158423,7 +158435,7 @@ export {
|
|
|
158423
158435
|
RJt as CxDocumentViewer,
|
|
158424
158436
|
GQ as CxDotPagination,
|
|
158425
158437
|
$Jt as CxDotStatus,
|
|
158426
|
-
|
|
158438
|
+
sl as CxDownloadFormatPicker,
|
|
158427
158439
|
Ti as CxDownloader,
|
|
158428
158440
|
zJt as CxDrawer,
|
|
158429
158441
|
_s as CxDropdown,
|
|
@@ -158432,11 +158444,11 @@ export {
|
|
|
158432
158444
|
UJt as CxElementClamp,
|
|
158433
158445
|
Jg as CxEstimatedReadingTime,
|
|
158434
158446
|
eu as CxFacetDatePicker,
|
|
158435
|
-
|
|
158447
|
+
ll as CxFacetDateRange,
|
|
158436
158448
|
hen as CxFacetedFilter,
|
|
158437
158449
|
Za as CxFacetedFilterFacet,
|
|
158438
158450
|
ntn as CxFileOnDemand,
|
|
158439
|
-
|
|
158451
|
+
dl as CxFindAndReplace,
|
|
158440
158452
|
m6 as CxFolderSelect,
|
|
158441
158453
|
hd as CxFontPicker,
|
|
158442
158454
|
KQ as CxFormatBytes,
|
|
@@ -158460,15 +158472,15 @@ export {
|
|
|
158460
158472
|
zr as CxInputDatePicker,
|
|
158461
158473
|
Yr as CxInputDateRangePicker,
|
|
158462
158474
|
ZJt as CxInputGroup,
|
|
158463
|
-
|
|
158475
|
+
ul as CxLightbox,
|
|
158464
158476
|
Lp as CxLineClamp,
|
|
158465
158477
|
ar as CxListEditor,
|
|
158466
158478
|
o3 as CxMarkdown,
|
|
158467
158479
|
es as CxMarkdownViewer,
|
|
158468
158480
|
bte as CxMasonry,
|
|
158469
158481
|
Nc as CxMentions,
|
|
158470
|
-
|
|
158471
|
-
|
|
158482
|
+
hl as CxMenu,
|
|
158483
|
+
gl as CxMenuItem,
|
|
158472
158484
|
o6 as CxMenuLabel,
|
|
158473
158485
|
RF as CxMenuSection,
|
|
158474
158486
|
gen as CxMultiSelect,
|
|
@@ -158513,7 +158525,7 @@ export {
|
|
|
158513
158525
|
c3 as CxTabGroup,
|
|
158514
158526
|
l6 as CxTabPanel,
|
|
158515
158527
|
fZt as CxTag,
|
|
158516
|
-
|
|
158528
|
+
pl as CxTemplateSwitcher,
|
|
158517
158529
|
ni as CxTextToSpeech,
|
|
158518
158530
|
c6 as CxTextarea,
|
|
158519
158531
|
hee as CxTimecode,
|
|
@@ -158710,7 +158722,7 @@ export {
|
|
|
158710
158722
|
Qen as rotateBox,
|
|
158711
158723
|
xtn as rotateImage,
|
|
158712
158724
|
yQt as safeExtension,
|
|
158713
|
-
|
|
158725
|
+
el as safeString,
|
|
158714
158726
|
gM as sanitizeHTML,
|
|
158715
158727
|
etn as sanitizeRotation,
|
|
158716
158728
|
LZt as scrollIntoView,
|