@orangelogic/design-system 2.82.0-pr86082.31 → 2.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/asset.CVuNAhz3.js +287 -0
- package/library/chunks/{button.CauAHfdl.js → button.KaZ7h26c.js} +2 -2
- package/library/chunks/{color-swatch-group.BoVb3qVt.js → color-swatch-group.9Cj98tfp.js} +5 -5
- package/library/chunks/{color-swatch.2HS4bc3N.js → color-swatch.Bx-HOp9f.js} +1 -1
- package/library/chunks/{confirm-popover.DmGAMS8X.js → confirm-popover.DO0gfilx.js} +3 -3
- package/library/chunks/content-builder.B4Tqoc6M.js +127 -0
- package/library/chunks/{cropper.ZU2Dy-MM.js → cropper.DTokTzP9.js} +6788 -6793
- package/library/chunks/{dialog.2UW1LNm1.js → dialog.B1nzoJak.js} +2 -2
- package/library/chunks/{dom.BslZF2Y_.js → dom.Dd4Wh-Mt.js} +1 -1
- package/library/chunks/{dot-pagination.DsAfSNzr.js → dot-pagination.C26bQ3vy.js} +1 -1
- package/library/chunks/{endpoints.Fpyb8xvv.js → endpoints.BpAhLyZw.js} +91 -93
- package/library/chunks/{file-on-demand.Dig_iVvx.js → file-on-demand.C1FsJcvR.js} +9 -9
- package/library/chunks/{folder-select.BT1drT8C.js → folder-select.C0lq8nkf.js} +64 -64
- package/library/chunks/{form.CFc09rKh.js → form.Bi8x0jbW.js} +1 -1
- package/library/chunks/{header.BePZwMCQ.js → header.D68fIfe2.js} +1 -1
- package/library/chunks/{i18n.BFqTRDCA.js → i18n.BUW7B9hr.js} +4 -10
- package/library/chunks/{icon-button.rKe0N4VB.js → icon-button.BuhCp--_.js} +1 -1
- package/library/chunks/{iframe.DznmlYpV.js → iframe.BQFZQMTe.js} +1 -1
- package/library/chunks/{image.CEtCGsNL.js → image.4eLWAZ3-.js} +230 -273
- package/library/chunks/index.DOQMQFEd.js +373 -0
- package/library/chunks/{list-editor.xBvtJqdy.js → list-editor.6MidcXE8.js} +17 -18
- package/library/chunks/{option.COnEtd3X.js → option.DljDoFx4.js} +1 -1
- package/library/chunks/{pagination.DaD9Yul6.js → pagination.BhTABU__.js} +4 -4
- package/library/chunks/{responsive.BndCeSg0.js → responsive.DL-wBD4P.js} +1 -1
- package/library/chunks/{string.BigZhczf.js → string.B_mXTq0K.js} +23 -30
- package/library/chunks/{tab-group.0Po0eoxR.js → tab-group.B2t3Ipa3.js} +4 -4
- package/library/chunks/{table.Cs5a0duW.js → table.DgYTOnso.js} +10 -10
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.QCQd_cuc.js → tree.q7xRVYyh.js} +1 -1
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +825 -736
- package/library/components/atoms.js +12 -12
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +6 -6
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/details.js +4 -4
- package/library/components/dialog.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +4 -4
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +7 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +6 -6
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +5 -5
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +2 -2
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +2 -2
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/table.js +5 -5
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +31836 -32950
- package/library/components/video.js +543 -552
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +1 -15
- package/library/packages/atoms/src/components/input/input.d.ts +2 -1
- package/library/packages/atoms/src/components/video/video.d.ts +1 -3
- package/library/packages/events/src/events.d.ts +1 -10
- package/library/packages/molecules/src/cropper/cropper.d.ts +0 -1
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +0 -1
- package/library/packages/molecules/src/index.d.ts +0 -1
- package/library/packages/molecules/src/timeline/timeline.d.ts +0 -14
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +0 -4
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +7 -7
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +26 -57
- package/library/packages/organisms/src/carousel/carousel.d.ts +1 -3
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +0 -7
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +0 -11
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +0 -10
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +2 -6
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +2 -6
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -6
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +2 -5
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +2 -11
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +4 -44
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +0 -13
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -19
- package/library/packages/organisms/src/index.d.ts +0 -2
- package/library/packages/services/src/api/asset/asset.d.ts +2 -3
- package/library/packages/services/src/api/asset/asset.types.d.ts +0 -83
- package/library/packages/services/src/api/endpoints.d.ts +1 -1
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +1 -2
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +5 -17
- package/library/packages/types/src/asset-click-action.d.ts +1 -3
- package/library/packages/types/src/bento-grid.d.ts +0 -37
- package/library/packages/types/src/content-builder.d.ts +1 -27
- package/library/packages/types/src/gallery.d.ts +6 -0
- package/library/packages/utils/src/actions/asset-click.d.ts +3 -1
- package/library/packages/utils/src/custom-element/i18n.d.ts +0 -6
- package/library/packages/utils/src/index.d.ts +0 -1
- package/library/packages/utils/src/string/string.d.ts +0 -1
- package/library/react-web-component.d.ts +8 -212
- package/library/utils.js +182 -483
- package/package.json +1 -1
- package/library/chunks/array.DCtvHiLS.js +0 -81
- package/library/chunks/asset.D7E0-cUV.js +0 -460
- package/library/chunks/toast.B2cJgW5u.js +0 -71
- package/library/chunks/transformation.CzBptarI.js +0 -140
- package/library/packages/events/src/cx-asset-transformation-dialog-cancel.d.ts +0 -6
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +0 -11
- package/library/packages/events/src/cx-asset-transformation-dialog-delete.d.ts +0 -6
- package/library/packages/events/src/cx-bento-range-change.d.ts +0 -9
- package/library/packages/events/src/cx-content-builder-gallery-fetched.d.ts +0 -10
- package/library/packages/events/src/cx-lightbox-close.d.ts +0 -6
- package/library/packages/events/src/cx-lightbox-download.d.ts +0 -11
- package/library/packages/events/src/cx-video-format-picker-delete.d.ts +0 -6
- package/library/packages/events/src/cx-video-format-picker-select.d.ts +0 -8
- package/library/packages/molecules/src/video-format-picker/video-format-picker.d.ts +0 -55
- package/library/packages/molecules/src/video-format-picker/video-format-picker.styles.d.ts +0 -2
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +0 -95
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.styles.d.ts +0 -2
- package/library/packages/organisms/src/bento-grid/bento-layout.d.ts +0 -44
- package/library/packages/organisms/src/lightbox/lightbox.d.ts +0 -79
- package/library/packages/organisms/src/lightbox/lightbox.styles.d.ts +0 -2
- package/library/packages/services/src/api/asset/asset.utils.d.ts +0 -9
- package/library/packages/types/src/video-format-picker.d.ts +0 -11
- package/library/packages/utils/src/transformation/index.d.ts +0 -1
- /package/library/packages/{utils/src/transformation/transformation.d.ts → organisms/src/asset-link-format/asset-link-format.utils.d.ts} +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { h as i, A as T, a as M } from "./endpoints.BpAhLyZw.js";
|
|
2
|
+
import { f as P, t as L } from "./toast.BXNbwZV8.js";
|
|
3
|
+
const C = "CoreField.LargeSizePreview", h = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", N = "CoreField.Identifier", g = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", U = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
|
|
4
|
+
function W(o) {
|
|
5
|
+
return !o || Object.keys(o).length === 0 ? {} : Object.entries(o).reduce(
|
|
6
|
+
(e, [t, r]) => !r || r.length === 0 ? e : t === "Types" ? {
|
|
7
|
+
...e,
|
|
8
|
+
SubtypeCriteria: r
|
|
9
|
+
} : {
|
|
10
|
+
...e,
|
|
11
|
+
FacetFilters: {
|
|
12
|
+
...e.FacetFilters,
|
|
13
|
+
[t]: r
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
async function H({
|
|
20
|
+
assetId: o,
|
|
21
|
+
extension: e,
|
|
22
|
+
format: t,
|
|
23
|
+
siteUrl: r,
|
|
24
|
+
token: a,
|
|
25
|
+
transformations: l,
|
|
26
|
+
useSession: s
|
|
27
|
+
}) {
|
|
28
|
+
try {
|
|
29
|
+
return (await i.request({
|
|
30
|
+
baseURL: r,
|
|
31
|
+
method: "GET",
|
|
32
|
+
params: {
|
|
33
|
+
SourceAssetFormat: t,
|
|
34
|
+
SourceAssetRecordID: o,
|
|
35
|
+
TargetExtension: e,
|
|
36
|
+
Token: a,
|
|
37
|
+
Transformations: l,
|
|
38
|
+
UseSession: s || void 0
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* https://link.orangelogic.com/Tasks/41S1XH
|
|
42
|
+
*/
|
|
43
|
+
timeout: 3e5,
|
|
44
|
+
// 5 minutes
|
|
45
|
+
url: T.GET_TRANSFORM_ASSET_LINK
|
|
46
|
+
})).data;
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async function k({
|
|
52
|
+
extraFields: o,
|
|
53
|
+
recordIds: e
|
|
54
|
+
}) {
|
|
55
|
+
if (!Array.isArray(e) || e.length === 0)
|
|
56
|
+
return { facets: [], items: [], totalCount: 0 };
|
|
57
|
+
const t = o?.filter((r) => r && typeof r == "string") ?? [];
|
|
58
|
+
try {
|
|
59
|
+
return (await i.request({
|
|
60
|
+
method: "GET",
|
|
61
|
+
params: {
|
|
62
|
+
ExtraFilters: `RecordID:${e.join(" OR ")}`,
|
|
63
|
+
Fields: [
|
|
64
|
+
...t,
|
|
65
|
+
E,
|
|
66
|
+
F,
|
|
67
|
+
I,
|
|
68
|
+
b,
|
|
69
|
+
j
|
|
70
|
+
],
|
|
71
|
+
SeeThru: !0
|
|
72
|
+
},
|
|
73
|
+
paramsSerializer: {
|
|
74
|
+
indexes: null
|
|
75
|
+
},
|
|
76
|
+
responseType: "json",
|
|
77
|
+
transformResponse: [
|
|
78
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
79
|
+
(a) => {
|
|
80
|
+
const l = a.contentItems?.map((s) => {
|
|
81
|
+
let d = s.fields[F] ?? "";
|
|
82
|
+
return d === "" && (d = s.fields[I] ?? ""), {
|
|
83
|
+
name: d,
|
|
84
|
+
originalUrl: s.fields[E] ?? "",
|
|
85
|
+
recordId: s.recordID,
|
|
86
|
+
...t.reduce(
|
|
87
|
+
(u, c) => (u[c] = s.fields[c] ?? "", u),
|
|
88
|
+
{}
|
|
89
|
+
)
|
|
90
|
+
};
|
|
91
|
+
}) ?? [];
|
|
92
|
+
return l.sort((s, d) => {
|
|
93
|
+
const u = e.indexOf(s.recordId), c = e.indexOf(d.recordId);
|
|
94
|
+
return u - c;
|
|
95
|
+
}), {
|
|
96
|
+
facets: a.facets,
|
|
97
|
+
items: l,
|
|
98
|
+
totalCount: a.totalCount
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
url: T.GET_CONTENT_V1
|
|
103
|
+
})).data;
|
|
104
|
+
} catch {
|
|
105
|
+
return {
|
|
106
|
+
facets: [],
|
|
107
|
+
items: [],
|
|
108
|
+
totalCount: 0
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async function q({
|
|
113
|
+
extraFields: o,
|
|
114
|
+
folderId: e,
|
|
115
|
+
limit: t,
|
|
116
|
+
limitedDocTypes: r,
|
|
117
|
+
searchTerm: a,
|
|
118
|
+
seeThrough: l,
|
|
119
|
+
selectedFacets: s,
|
|
120
|
+
sortOrder: d,
|
|
121
|
+
start: u
|
|
122
|
+
}) {
|
|
123
|
+
const c = (o?.filter((f) => f && typeof f == "string") ?? []).map((f) => f.replace("%20", " "));
|
|
124
|
+
try {
|
|
125
|
+
return (await i.request({
|
|
126
|
+
method: "GET",
|
|
127
|
+
params: {
|
|
128
|
+
Fields: [
|
|
129
|
+
...c,
|
|
130
|
+
w,
|
|
131
|
+
C,
|
|
132
|
+
E,
|
|
133
|
+
g,
|
|
134
|
+
G,
|
|
135
|
+
R,
|
|
136
|
+
O,
|
|
137
|
+
h,
|
|
138
|
+
U,
|
|
139
|
+
N,
|
|
140
|
+
S,
|
|
141
|
+
x,
|
|
142
|
+
I,
|
|
143
|
+
F
|
|
144
|
+
],
|
|
145
|
+
Limit: t,
|
|
146
|
+
LimitedToDocTypes: r.length > 0 ? r : void 0,
|
|
147
|
+
ObjectRecordID: e,
|
|
148
|
+
OrderBy: d || void 0,
|
|
149
|
+
SearchTerm: a || void 0,
|
|
150
|
+
SeeThru: l,
|
|
151
|
+
Start: u,
|
|
152
|
+
...W(s)
|
|
153
|
+
},
|
|
154
|
+
paramsSerializer: {
|
|
155
|
+
indexes: null
|
|
156
|
+
},
|
|
157
|
+
responseType: "json",
|
|
158
|
+
transformResponse: [
|
|
159
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
160
|
+
(D) => ({
|
|
161
|
+
facets: D.facets,
|
|
162
|
+
items: D.contentItems?.map((n) => {
|
|
163
|
+
let p = n.fields[S] ?? "", _ = n.fields[F] ?? "", m = n.fields[C] ?? "";
|
|
164
|
+
return p && !p.startsWith(".") && (p = "." + p), _ === "" && (_ = n.fields[I] ?? ""), p.toLowerCase() === ".gif" && (m = n.fields[E] ?? ""), {
|
|
165
|
+
docSubType: n.fields[U] ?? "",
|
|
166
|
+
docType: n.fields[h] ?? "",
|
|
167
|
+
extension: p,
|
|
168
|
+
height: n.fields[R] ?? "0",
|
|
169
|
+
id: n.recordID,
|
|
170
|
+
identifier: n.fields[N] ?? "",
|
|
171
|
+
imageUrl: m,
|
|
172
|
+
name: _ ?? "",
|
|
173
|
+
originalUrl: n.fields[E] ?? "",
|
|
174
|
+
recordId: n.fields[x] ?? "",
|
|
175
|
+
size: n.fields[O] ?? "0 MB",
|
|
176
|
+
tags: n.fields[g] ?? "",
|
|
177
|
+
width: n.fields[G] ?? "0",
|
|
178
|
+
...c.reduce(
|
|
179
|
+
(y, A) => (y[A] = n.fields[A] ?? "", y),
|
|
180
|
+
{}
|
|
181
|
+
)
|
|
182
|
+
};
|
|
183
|
+
}) ?? [],
|
|
184
|
+
totalCount: D.totalCount
|
|
185
|
+
})
|
|
186
|
+
],
|
|
187
|
+
url: T.GET_CONTENT_V2
|
|
188
|
+
})).data;
|
|
189
|
+
} catch {
|
|
190
|
+
return {
|
|
191
|
+
facets: [],
|
|
192
|
+
items: [],
|
|
193
|
+
totalCount: 0
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
async function z({
|
|
198
|
+
autoCropMode: o,
|
|
199
|
+
cropHeight: e,
|
|
200
|
+
cropWidth: t,
|
|
201
|
+
imageUrl: r,
|
|
202
|
+
useSession: a
|
|
203
|
+
}) {
|
|
204
|
+
try {
|
|
205
|
+
return (await i.request({
|
|
206
|
+
method: "GET",
|
|
207
|
+
params: {
|
|
208
|
+
AutoCropMode: o,
|
|
209
|
+
CropHeight: e,
|
|
210
|
+
CropWidth: t,
|
|
211
|
+
ImageUrl: r && new URL(r, window.location.origin).href,
|
|
212
|
+
UseSession: a || void 0
|
|
213
|
+
},
|
|
214
|
+
responseType: "json",
|
|
215
|
+
timeout: 3e5,
|
|
216
|
+
// 5 minutes
|
|
217
|
+
transformResponse: [
|
|
218
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
219
|
+
(s) => ({
|
|
220
|
+
height: s.cropHeight,
|
|
221
|
+
width: s.cropWidth,
|
|
222
|
+
x: s.cropX,
|
|
223
|
+
y: s.cropY
|
|
224
|
+
})
|
|
225
|
+
],
|
|
226
|
+
url: T.GET_CROP_ZONE_SUGGESTION
|
|
227
|
+
})).data;
|
|
228
|
+
} catch {
|
|
229
|
+
return null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async function V({
|
|
233
|
+
siteUrl: o
|
|
234
|
+
} = {}) {
|
|
235
|
+
try {
|
|
236
|
+
return (await i.request({
|
|
237
|
+
baseURL: o,
|
|
238
|
+
method: "GET",
|
|
239
|
+
responseType: "json",
|
|
240
|
+
transformResponse: [
|
|
241
|
+
...Array.isArray(i.defaults.transformResponse) ? i.defaults.transformResponse : [],
|
|
242
|
+
(t) => !t || typeof t != "object" ? {
|
|
243
|
+
formatsByDocType: {
|
|
244
|
+
Audio: {},
|
|
245
|
+
Image: {},
|
|
246
|
+
Multimedia: {},
|
|
247
|
+
Video: {}
|
|
248
|
+
}
|
|
249
|
+
} : {
|
|
250
|
+
formatsByDocType: t.formatsByDocType ?? {}
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
url: M
|
|
254
|
+
})).data;
|
|
255
|
+
} catch {
|
|
256
|
+
return { formatsByDocType: {} };
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
async function K(o, e) {
|
|
260
|
+
const t = new FormData();
|
|
261
|
+
t.append("InputStream", o);
|
|
262
|
+
const r = await P(
|
|
263
|
+
T.UPLOAD_AND_GET_RESPONSE,
|
|
264
|
+
{
|
|
265
|
+
body: t,
|
|
266
|
+
method: "POST"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
ClientFileName: o.name,
|
|
270
|
+
FolderRecordID: e?.imageUploadFolderID || ""
|
|
271
|
+
}
|
|
272
|
+
), a = r ? await r.json() : null;
|
|
273
|
+
return a ? a.downloadLink === "" ? (L(e?.errorUploadMessage || "", {
|
|
274
|
+
notificationType: "error"
|
|
275
|
+
}), "") : a.downloadLink : (L(e?.errorUploadMessage || "", {
|
|
276
|
+
notificationType: "error"
|
|
277
|
+
}), "");
|
|
278
|
+
}
|
|
279
|
+
export {
|
|
280
|
+
C as D,
|
|
281
|
+
k as a,
|
|
282
|
+
H as b,
|
|
283
|
+
z as c,
|
|
284
|
+
V as d,
|
|
285
|
+
q as e,
|
|
286
|
+
K as u
|
|
287
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as i, C as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as g } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as C } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { F as x, v as w } from "./form.
|
|
5
|
-
import { L as $ } from "./i18n.
|
|
4
|
+
import { F as x, v as w } from "./form.Bi8x0jbW.js";
|
|
5
|
+
import { L as $ } from "./i18n.BUW7B9hr.js";
|
|
6
6
|
import { H as S, g as O } from "./slot.j5oheLJC.js";
|
|
7
7
|
import { w as m } from "./watch.BCJD77bD.js";
|
|
8
8
|
import { r as u } from "./state.CSDxrqLd.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.DgYTOnso.js";
|
|
3
3
|
import { C as k } from "./typography.DJC_UXgs.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
|
-
import { C, a as g } from "./color-swatch.
|
|
5
|
+
import { C, a as g } from "./color-swatch.Bx-HOp9f.js";
|
|
6
6
|
import { c as A } from "./component.styles.CRO4Odto.js";
|
|
7
|
-
import { D as p } from "./
|
|
7
|
+
import { D as p } from "./content-builder.B4Tqoc6M.js";
|
|
8
8
|
import { c as S } from "./custom-element.L4WJXn1j.js";
|
|
9
9
|
import { d as T } from "./debounce.DaHuiSGU.js";
|
|
10
|
-
import { L as E } from "./i18n.
|
|
10
|
+
import { L as E } from "./i18n.BUW7B9hr.js";
|
|
11
11
|
import { w as x } from "./watch.BCJD77bD.js";
|
|
12
|
-
import { g as D, a as R } from "./responsive.
|
|
12
|
+
import { g as D, a as R } from "./responsive.DL-wBD4P.js";
|
|
13
13
|
import { x as l, B as H, i as O } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as d } from "./state.CSDxrqLd.js";
|
|
15
15
|
import { e as P } from "./query.BBf1UFkC.js";
|
|
@@ -8,7 +8,7 @@ import { c as F } from "./component.styles.CRO4Odto.js";
|
|
|
8
8
|
import { c as n, C as h, H as $, l as z } from "./color.vLD2sNTs.js";
|
|
9
9
|
import { c as O } from "./custom-element.L4WJXn1j.js";
|
|
10
10
|
import { d as W } from "./debounce.DaHuiSGU.js";
|
|
11
|
-
import { L as A } from "./i18n.
|
|
11
|
+
import { L as A } from "./i18n.BUW7B9hr.js";
|
|
12
12
|
import { w as i } from "./watch.BCJD77bD.js";
|
|
13
13
|
import { i as G, x as u } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as c } from "./state.CSDxrqLd.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as _ } from "./button.
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
1
|
+
import { C as _ } from "./button.KaZ7h26c.js";
|
|
2
|
+
import { C as u, D as h } from "./dialog.B1nzoJak.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.DJC_UXgs.js";
|
|
5
5
|
import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as y } from "./component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as w } from "./custom-element.L4WJXn1j.js";
|
|
8
|
-
import { L as $ } from "./i18n.
|
|
8
|
+
import { L as $ } from "./i18n.BUW7B9hr.js";
|
|
9
9
|
import { i as z, x as d } from "./lit-element.jLBm65_O.js";
|
|
10
10
|
import { e as m } from "./query.BBf1UFkC.js";
|
|
11
11
|
import { e as a } from "./class-map.BiVq-cVR.js";
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { c as s } from "./capitalize.CNStXZBq.js";
|
|
2
|
+
function v(n, a) {
|
|
3
|
+
return n.filter((t, e) => e !== a);
|
|
4
|
+
}
|
|
5
|
+
function b(n, a) {
|
|
6
|
+
return n.filter((t, e) => !a.includes(e));
|
|
7
|
+
}
|
|
8
|
+
function R(n, a, t) {
|
|
9
|
+
return [...n.slice(0, a), t, ...n.slice(a)];
|
|
10
|
+
}
|
|
11
|
+
function B(n, a, t) {
|
|
12
|
+
return [...n.slice(0, a), ...t, ...n.slice(a)];
|
|
13
|
+
}
|
|
14
|
+
function T(n, a, t) {
|
|
15
|
+
return n.findIndex((e) => e[a] === t);
|
|
16
|
+
}
|
|
17
|
+
function _(n, a, t) {
|
|
18
|
+
const e = [...n], i = v(e, a);
|
|
19
|
+
let r = t;
|
|
20
|
+
return r >= n.length - 1 && (r = r + 1), R(i, r, n[a]);
|
|
21
|
+
}
|
|
22
|
+
function G(n, a, t) {
|
|
23
|
+
const e = [...n], i = b(e, a), r = t !== 0 ? a.reduce(
|
|
24
|
+
(o, u) => t > u ? o - 1 : o,
|
|
25
|
+
t
|
|
26
|
+
) : t;
|
|
27
|
+
return B(
|
|
28
|
+
i,
|
|
29
|
+
r,
|
|
30
|
+
a.map((o) => n[o])
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function V(n, a) {
|
|
34
|
+
return n.reduce(
|
|
35
|
+
(t, e) => {
|
|
36
|
+
const i = e[a];
|
|
37
|
+
return t[i] ??= [], t[i].push(e), t;
|
|
38
|
+
},
|
|
39
|
+
{}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function j(n, a, t) {
|
|
43
|
+
if (!n.length)
|
|
44
|
+
return [a];
|
|
45
|
+
const e = t.findIndex(
|
|
46
|
+
(l) => l.id === a
|
|
47
|
+
), i = n[n.length - 1], r = t.findIndex(
|
|
48
|
+
(l) => l.id === i
|
|
49
|
+
);
|
|
50
|
+
if (e < 0 || r < 0)
|
|
51
|
+
return [a];
|
|
52
|
+
const d = t.reduce(
|
|
53
|
+
(l, c, x) => (l[c.id] = x, l),
|
|
54
|
+
{}
|
|
55
|
+
), o = e > r, u = o ? r : e, f = o ? e : r, C = t.slice(u, f + 1).filter((l) => !(!l || n.includes(l.id))).map((l) => l.id), g = o ? C : [...C].reverse(), A = n.includes(a) ? n.slice(0, n.indexOf(a) + 1) : [...n, ...g];
|
|
56
|
+
return A.sort((l, c) => d[l] - d[c]), A;
|
|
57
|
+
}
|
|
58
|
+
function p(n, a, t, e, i, r) {
|
|
59
|
+
const d = t + 1;
|
|
60
|
+
if (n.length < 2)
|
|
61
|
+
throw new Error("Values array must contain at least 2 elements");
|
|
62
|
+
if (t < 0 || d >= n.length)
|
|
63
|
+
throw new Error("Invalid index or not enough values to adjust");
|
|
64
|
+
if (e < 0)
|
|
65
|
+
throw new Error("Minimum value must be non-negative");
|
|
66
|
+
let o = i + a;
|
|
67
|
+
o < e && (a = e - i, o = e);
|
|
68
|
+
let u = r - a;
|
|
69
|
+
u < e && (a = r - e, o = i + a, u = e), n[t] = parseFloat(o.toFixed(2)), n[d] = parseFloat(u.toFixed(2));
|
|
70
|
+
}
|
|
71
|
+
var w = /* @__PURE__ */ ((n) => (n.Desktop = "desktop", n.Mobile = "mobile", n.Tablet = "tablet", n))(w || {});
|
|
72
|
+
const E = {
|
|
73
|
+
canvasWidth: "",
|
|
74
|
+
height: "",
|
|
75
|
+
id: "desktop",
|
|
76
|
+
maxWidth: "",
|
|
77
|
+
name: s(
|
|
78
|
+
"desktop"
|
|
79
|
+
/* Desktop */
|
|
80
|
+
)
|
|
81
|
+
}, L = {
|
|
82
|
+
canvasWidth: "770px",
|
|
83
|
+
height: "",
|
|
84
|
+
id: "tablet",
|
|
85
|
+
maxWidth: "1280px",
|
|
86
|
+
name: s(
|
|
87
|
+
"tablet"
|
|
88
|
+
/* Tablet */
|
|
89
|
+
)
|
|
90
|
+
}, M = {
|
|
91
|
+
canvasWidth: "320px",
|
|
92
|
+
height: "",
|
|
93
|
+
id: "mobile",
|
|
94
|
+
maxWidth: "480px",
|
|
95
|
+
name: s(
|
|
96
|
+
"mobile"
|
|
97
|
+
/* Mobile */
|
|
98
|
+
)
|
|
99
|
+
}, K = [E, L, M];
|
|
100
|
+
var O = /* @__PURE__ */ ((n) => (n.All = "ALL", n.CanDelete = "CanDelete", n.CanDownload = "CanDownload", n.CanFind = "CanFind", n.CanManageRights = "CanManageRights", n.CanMove = "CanMove", n.CanRead = "CanRead", n.CanReadAll = "CanReadAll", n.CanReadAndWrite = "CanReadAndWrite", n.CanReadLarge = "CanReadLarge", n.CanReadMedium = "CanReadMedium", n.CanReadOriginal = "CanReadOriginal", n.CanShare = "CanShare", n.CanUpload = "CanUpload", n.CanWrite = "CanWrite", n.None = "NONE", n))(O || {}), S = /* @__PURE__ */ ((n) => (n.All = "all", n.Audio = "audio", n.Image = "image", n.Other = "other", n.Video = "video", n))(S || {}), F = /* @__PURE__ */ ((n) => (n.Content = "content", n.Template = "template", n))(F || {}), k = /* @__PURE__ */ ((n) => (n.Administrator = "Administrator", n.Designer = "Designer", n.Editor = "Editor", n))(k || {}), h = /* @__PURE__ */ ((n) => (n.Accordion = "BlockAccordion", n.Analytics = "BlockAnalytics", n.Button = "BlockButton", n.Carousel = "BlockCarousel", n.ColorSwatches = "BlockColorSwatches", n.Column = "BlockCell", n.ColumnGroup = "BlockColumns", n.Divider = "BlockDivider", n.FontKit = "BlockFontKit", n.Gallery = "BlockGallery", n.Header = "BlockHeader", n.Image = "BlockImage", n.RichText = "BlockRichText", n.SearchBox = "BlockSearchBox", n.TabGroup = "BlockTabs", n.Text = "BlockText", n.Timeline = "BlockTimeline", n.Video = "BlockVideo", n))(h || {});
|
|
101
|
+
const U = Object.values(h).filter(
|
|
102
|
+
(n) => n !== "BlockCell"
|
|
103
|
+
/* Column */
|
|
104
|
+
);
|
|
105
|
+
var D = /* @__PURE__ */ ((n) => (n.Carousel = "carousel", n.Gallery = "gallery", n))(D || {}), N = /* @__PURE__ */ ((n) => (n.Templates = "TEMPLATES", n.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", n.TranslatableTexts = "TRANSLATABLE_TEXTS", n))(N || {});
|
|
106
|
+
export {
|
|
107
|
+
S as A,
|
|
108
|
+
h as B,
|
|
109
|
+
w as D,
|
|
110
|
+
F as E,
|
|
111
|
+
O as P,
|
|
112
|
+
k as T,
|
|
113
|
+
D as a,
|
|
114
|
+
N as b,
|
|
115
|
+
U as c,
|
|
116
|
+
K as d,
|
|
117
|
+
G as e,
|
|
118
|
+
T as f,
|
|
119
|
+
V as g,
|
|
120
|
+
v as h,
|
|
121
|
+
B as i,
|
|
122
|
+
R as j,
|
|
123
|
+
_ as k,
|
|
124
|
+
p as l,
|
|
125
|
+
j as m,
|
|
126
|
+
b as r
|
|
127
|
+
};
|