@orangelogic/design-system 2.190.0 → 2.192.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-link-format.D--xQVgR.js → asset-link-format.CDd4iPA2.js} +1149 -1001
- package/library/chunks/{color-swatch-group.tnhiQ0jp.js → color-swatch-group.NOcRP-23.js} +4 -3
- package/library/chunks/{confirm-popover.CrQKEChc.js → confirm-popover.jCP9CdcD.js} +1 -1
- package/library/chunks/content-builder.BX4pHujE.js +60 -0
- package/library/chunks/{dialog.CWGtufDA.js → dialog.B6hZ7fvn.js} +2 -2
- package/library/chunks/{document-viewer.C90j1Xrr.js → document-viewer.CRluR-_W.js} +3 -2
- package/library/chunks/{image.CTMzUqCC.js → image.CiQwSDfe.js} +186 -187
- package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
- package/library/chunks/transformation.BfIEi4p4.js +300 -0
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/confirm-popover.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/file-on-demand.js +2 -2
- package/library/components/image.js +2 -3
- package/library/components/masonry.js +136 -107
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +100 -97
- package/library/components/select.js +16 -11
- package/library/components/types.js +22267 -21934
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +36 -4
- package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
- package/library/packages/atoms/src/components/select/select.d.ts +8 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +20 -1
- 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/gallery-item/gallery-item.d.ts +10 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +24 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +46 -2
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.d.ts +36 -1
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +20 -2
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +101 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +65 -1
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +31 -6
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -0
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -5
- package/library/packages/types/src/asset-link-format.d.ts +0 -1
- package/library/packages/types/src/content-builder.d.ts +7 -0
- package/library/packages/types/src/gallery-item.d.ts +1 -0
- package/library/packages/types/src/masonry.d.ts +1 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +91 -0
- package/library/react-web-component.d.ts +67 -7
- package/library/utils.js +192 -182
- package/package.json +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +0 -264
- package/library/packages/types/src/download-format-picker.d.ts +0 -7
package/library/utils.js
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { R as
|
|
3
|
-
import { j as Ut, f as
|
|
1
|
+
import { b as _ } from "./chunks/url.CGdWC06g.js";
|
|
2
|
+
import { R as xt, f as At, g as Et, h as It, U as Lt, a as Ft, d as Rt, c as bt, i as Ot, r as Vt, t as vt, e as kt } from "./chunks/url.CGdWC06g.js";
|
|
3
|
+
import { j as Ut, f as Yt, b as Nt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.C5Ir5yKA.js";
|
|
4
4
|
import { e as jt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
|
|
5
|
-
import { d as le, C as ce, e as ue, H as
|
|
6
|
-
import { a as
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
9
|
-
import { c as
|
|
10
|
-
import { d as
|
|
11
|
-
import { d as
|
|
5
|
+
import { d as le, C as ce, e as ue, H as me, R as fe, c as he, h as ge, f as de, g as pe, l as De, a as Te, p as we, b as Se } from "./chunks/color.LzSGBy7o.js";
|
|
6
|
+
import { a as Ce, g as ye } from "./chunks/active-elements.jTVWtBDp.js";
|
|
7
|
+
import { a as Ae, p as Ee, c as Ie, b as Le, s as Fe, w as Re } from "./chunks/event.BeKOsirN.js";
|
|
8
|
+
import { t as Oe } from "./chunks/converters.DkDtLstb.js";
|
|
9
|
+
import { c as ve } from "./chunks/custom-element.L4WJXn1j.js";
|
|
10
|
+
import { d as _e } from "./chunks/debounce.DaHuiSGU.js";
|
|
11
|
+
import { d as Ye } from "./chunks/default-value.COZopaet.js";
|
|
12
12
|
import { d as Pe } from "./chunks/drag.DenOh3AE.js";
|
|
13
|
-
import { f as
|
|
13
|
+
import { f as Xe } from "./chunks/focus-when-visible.jWSw9ks0.js";
|
|
14
14
|
import { f as U } from "./chunks/form.DSsy3Fcy.js";
|
|
15
|
-
import { F as Be, c as Ge, g as $e, v as
|
|
15
|
+
import { F as Be, c as Ge, g as $e, v as ze, a as qe } from "./chunks/form.DSsy3Fcy.js";
|
|
16
16
|
import { L as Ze, r as je } from "./chunks/i18n.DbXTTLXx.js";
|
|
17
17
|
import { c as Ke, q as tr } from "./chunks/math.DuKzLacZ.js";
|
|
18
18
|
import { g as rr } from "./chunks/modal.Ct0bJBSe.js";
|
|
19
19
|
import { g as sr, l as or, s as nr, u as ir } from "./chunks/scroll.xtO5yojm.js";
|
|
20
20
|
import { k as y } from "./chunks/dom.gRV2cDjL.js";
|
|
21
|
-
import { c as cr, d as ur, h as
|
|
22
|
-
import { H as yr, a as
|
|
21
|
+
import { c as cr, d as ur, h as mr, m as fr, a as hr, g as gr, j as dr, b as pr, f as Dr, i as Tr, e as wr, l as Sr, s as Mr } from "./chunks/dom.gRV2cDjL.js";
|
|
22
|
+
import { H as yr, a as xr, g as Ar } from "./chunks/slot.j5oheLJC.js";
|
|
23
23
|
import { a as Ir, g as Lr } from "./chunks/tabbable.BwnZBHrm.js";
|
|
24
24
|
import { i as Rr } from "./chunks/user-agent.D9aPuOyL.js";
|
|
25
|
-
import { w as
|
|
26
|
-
import { C as
|
|
27
|
-
import { b as
|
|
28
|
-
import { f as c, a as u, D as
|
|
29
|
-
import {
|
|
30
|
-
import { c as
|
|
31
|
-
import { b as
|
|
32
|
-
import { c as
|
|
33
|
-
import { s as
|
|
34
|
-
import { b as
|
|
35
|
-
import { g as
|
|
36
|
-
import { c as
|
|
25
|
+
import { w as Or } from "./chunks/watch.DJF5K-8U.js";
|
|
26
|
+
import { C as vr } from "./chunks/calendar-grid.BWjcZL5W.js";
|
|
27
|
+
import { b as _r, c as Ur, f as Yr, h as Nr, g as Pr, a as Wr, i as Xr, d as Hr, n as Br, e as Gr, p as $r, t as zr } from "./chunks/date.iWq_pkIk.js";
|
|
28
|
+
import { f as c, a as u, D as m } from "./chunks/date-picker.BGHn6qg8.js";
|
|
29
|
+
import { f as Qr } from "./chunks/content-builder.BX4pHujE.js";
|
|
30
|
+
import { c as jr, f as Jr, e as Kr, b as ta, g as ea, d as ra, i as aa, r as sa, a as oa } from "./chunks/image.Y5c_hFx8.js";
|
|
31
|
+
import { b as ia, e as la } from "./chunks/waveform.1U9U_0rd.js";
|
|
32
|
+
import { c as ua, b as ma, a as fa, e as ha, d as ga, f as da, g as pa, r as Da, s as Ta } from "./chunks/number.Cx2ncfJJ.js";
|
|
33
|
+
import { s as Sa } from "./chunks/parse.Cu5nBDTb.js";
|
|
34
|
+
import { b as Ca, n as ya, d as xa, e as Aa, f as Ea, y as Ia, o as La, g as Fa, h as Ra, l as ba, p as Oa, z as Va, x as va, a as ka, c as _a, s as Ua, w as Ya, r as Na, t as Pa, q as Wa, v as Xa, i as Ha, m as Ba, u as Ga } from "./chunks/string.CfI2ejyR.js";
|
|
35
|
+
import { g as za, a as qa } from "./chunks/template.ClovJacp.js";
|
|
36
|
+
import { c as Za, f as ja, a as Ja, g as Ka } from "./chunks/time.DYWuX2id.js";
|
|
37
|
+
import { A as es, f as rs, S as as, a as ss, e as os, b as ns, d as is, c as ls, h as cs, p as us, r as ms } from "./chunks/transformation.BfIEi4p4.js";
|
|
37
38
|
function n(t) {
|
|
38
39
|
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
39
40
|
return `${e}-${r}-${s}`;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function x(t) {
|
|
42
43
|
const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
|
|
43
44
|
return `${e}:${r}:${s}`;
|
|
44
45
|
}
|
|
45
46
|
function h(t, e) {
|
|
46
47
|
return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
+
function A(t) {
|
|
49
50
|
const e = t.getDay(), r = e === 0 ? -6 : 1 - e;
|
|
50
51
|
return h(t, r);
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function E(t) {
|
|
53
54
|
return new Date(t.getFullYear(), t.getMonth(), 1);
|
|
54
55
|
}
|
|
55
56
|
function I(t) {
|
|
@@ -86,15 +87,15 @@ class Q {
|
|
|
86
87
|
const a = new Date(r.getTime() - 18e5);
|
|
87
88
|
return {
|
|
88
89
|
fromDate: n(a),
|
|
89
|
-
fromTime:
|
|
90
|
+
fromTime: x(a),
|
|
90
91
|
toDate: s,
|
|
91
|
-
toTime:
|
|
92
|
+
toTime: x(r)
|
|
92
93
|
};
|
|
93
94
|
}
|
|
94
95
|
case c.today:
|
|
95
96
|
return {
|
|
96
97
|
fromDate: s,
|
|
97
|
-
fromTime:
|
|
98
|
+
fromTime: m,
|
|
98
99
|
toDate: s,
|
|
99
100
|
toTime: u
|
|
100
101
|
};
|
|
@@ -102,7 +103,7 @@ class Q {
|
|
|
102
103
|
const a = n(h(r, -1));
|
|
103
104
|
return {
|
|
104
105
|
fromDate: a,
|
|
105
|
-
fromTime:
|
|
106
|
+
fromTime: m,
|
|
106
107
|
toDate: a,
|
|
107
108
|
toTime: u
|
|
108
109
|
};
|
|
@@ -110,61 +111,61 @@ class Q {
|
|
|
110
111
|
case c.last2Days:
|
|
111
112
|
return {
|
|
112
113
|
fromDate: n(h(r, -1)),
|
|
113
|
-
fromTime:
|
|
114
|
+
fromTime: m,
|
|
114
115
|
toDate: s,
|
|
115
116
|
toTime: u
|
|
116
117
|
};
|
|
117
118
|
case c.last3Days:
|
|
118
119
|
return {
|
|
119
120
|
fromDate: n(h(r, -2)),
|
|
120
|
-
fromTime:
|
|
121
|
+
fromTime: m,
|
|
121
122
|
toDate: s,
|
|
122
123
|
toTime: u
|
|
123
124
|
};
|
|
124
125
|
case c.last30Days:
|
|
125
126
|
return {
|
|
126
127
|
fromDate: n(h(r, -29)),
|
|
127
|
-
fromTime:
|
|
128
|
+
fromTime: m,
|
|
128
129
|
toDate: s,
|
|
129
130
|
toTime: u
|
|
130
131
|
};
|
|
131
132
|
case c.next30Days:
|
|
132
133
|
return {
|
|
133
134
|
fromDate: s,
|
|
134
|
-
fromTime:
|
|
135
|
+
fromTime: m,
|
|
135
136
|
toDate: n(h(r, 30)),
|
|
136
137
|
toTime: u
|
|
137
138
|
};
|
|
138
139
|
case c.thisWeek: {
|
|
139
|
-
const a =
|
|
140
|
+
const a = A(r);
|
|
140
141
|
return {
|
|
141
142
|
fromDate: n(a),
|
|
142
|
-
fromTime:
|
|
143
|
+
fromTime: m,
|
|
143
144
|
toDate: n(h(a, 6)),
|
|
144
145
|
toTime: u
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
148
|
case c.lastWeek: {
|
|
148
|
-
const a = h(
|
|
149
|
+
const a = h(A(r), -7);
|
|
149
150
|
return {
|
|
150
151
|
fromDate: n(a),
|
|
151
|
-
fromTime:
|
|
152
|
+
fromTime: m,
|
|
152
153
|
toDate: n(h(a, 6)),
|
|
153
154
|
toTime: u
|
|
154
155
|
};
|
|
155
156
|
}
|
|
156
157
|
case c.thisMonth:
|
|
157
158
|
return {
|
|
158
|
-
fromDate: n(
|
|
159
|
-
fromTime:
|
|
159
|
+
fromDate: n(E(r)),
|
|
160
|
+
fromTime: m,
|
|
160
161
|
toDate: n(I(r)),
|
|
161
162
|
toTime: u
|
|
162
163
|
};
|
|
163
164
|
case c.lastMonth: {
|
|
164
165
|
const a = new Date(r.getFullYear(), r.getMonth() - 1, 1);
|
|
165
166
|
return {
|
|
166
|
-
fromDate: n(
|
|
167
|
-
fromTime:
|
|
167
|
+
fromDate: n(E(a)),
|
|
168
|
+
fromTime: m,
|
|
168
169
|
toDate: n(I(a)),
|
|
169
170
|
toTime: u
|
|
170
171
|
};
|
|
@@ -172,7 +173,7 @@ class Q {
|
|
|
172
173
|
case c.thisQuarter:
|
|
173
174
|
return {
|
|
174
175
|
fromDate: n(L(r)),
|
|
175
|
-
fromTime:
|
|
176
|
+
fromTime: m,
|
|
176
177
|
toDate: n(F(r)),
|
|
177
178
|
toTime: u
|
|
178
179
|
};
|
|
@@ -184,7 +185,7 @@ class Q {
|
|
|
184
185
|
);
|
|
185
186
|
return {
|
|
186
187
|
fromDate: n(L(a)),
|
|
187
|
-
fromTime:
|
|
188
|
+
fromTime: m,
|
|
188
189
|
toDate: n(F(a)),
|
|
189
190
|
toTime: u
|
|
190
191
|
};
|
|
@@ -192,7 +193,7 @@ class Q {
|
|
|
192
193
|
case c.thisHalfYear:
|
|
193
194
|
return {
|
|
194
195
|
fromDate: n(R(r)),
|
|
195
|
-
fromTime:
|
|
196
|
+
fromTime: m,
|
|
196
197
|
toDate: n(b(r)),
|
|
197
198
|
toTime: u
|
|
198
199
|
};
|
|
@@ -200,7 +201,7 @@ class Q {
|
|
|
200
201
|
const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
|
|
201
202
|
return {
|
|
202
203
|
fromDate: n(R(a)),
|
|
203
|
-
fromTime:
|
|
204
|
+
fromTime: m,
|
|
204
205
|
toDate: n(b(a)),
|
|
205
206
|
toTime: u
|
|
206
207
|
};
|
|
@@ -208,7 +209,7 @@ class Q {
|
|
|
208
209
|
case c.thisYear:
|
|
209
210
|
return {
|
|
210
211
|
fromDate: `${r.getFullYear()}-01-01`,
|
|
211
|
-
fromTime:
|
|
212
|
+
fromTime: m,
|
|
212
213
|
toDate: `${r.getFullYear()}-12-31`,
|
|
213
214
|
toTime: u
|
|
214
215
|
};
|
|
@@ -216,7 +217,7 @@ class Q {
|
|
|
216
217
|
const a = r.getFullYear() - 1;
|
|
217
218
|
return {
|
|
218
219
|
fromDate: `${a}-01-01`,
|
|
219
|
-
fromTime:
|
|
220
|
+
fromTime: m,
|
|
220
221
|
toDate: `${a}-12-31`,
|
|
221
222
|
toTime: u
|
|
222
223
|
};
|
|
@@ -262,7 +263,7 @@ function J(t) {
|
|
|
262
263
|
}
|
|
263
264
|
function K(t, e = void 0) {
|
|
264
265
|
!this.ownerDocument.defaultView?.Matrix3 || !t || this.ownerDocument.defaultView?.open(
|
|
265
|
-
|
|
266
|
+
_(t, "https://", !0),
|
|
266
267
|
e ?? "_blank"
|
|
267
268
|
);
|
|
268
269
|
}
|
|
@@ -326,11 +327,11 @@ class at {
|
|
|
326
327
|
}
|
|
327
328
|
}
|
|
328
329
|
const st = (t) => t.ctrlKey || t.metaKey;
|
|
329
|
-
function
|
|
330
|
+
function O(t) {
|
|
330
331
|
return t.replaceAll(" ", "_");
|
|
331
332
|
}
|
|
332
333
|
function ot(t) {
|
|
333
|
-
return t.value ??
|
|
334
|
+
return t.value ?? O(t.typeface);
|
|
334
335
|
}
|
|
335
336
|
function nt(t) {
|
|
336
337
|
const e = [
|
|
@@ -338,21 +339,21 @@ function nt(t) {
|
|
|
338
339
|
t.fontStyle,
|
|
339
340
|
t.fontWeight
|
|
340
341
|
].filter((r) => r != null && r !== "").join("_");
|
|
341
|
-
return
|
|
342
|
+
return O(e);
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
+
function V(t) {
|
|
344
345
|
return t.length >= 2 && (t.startsWith("'") && t.endsWith("'") || t.startsWith('"') && t.endsWith('"'));
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
-
return
|
|
347
|
+
function Y(t) {
|
|
348
|
+
return V(t) || !t.includes(" ") ? t : `'${t.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
|
|
348
349
|
}
|
|
349
350
|
function it(t) {
|
|
350
|
-
return
|
|
351
|
+
return V(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
|
|
351
352
|
}
|
|
352
|
-
function
|
|
353
|
+
function v(t, e) {
|
|
353
354
|
if (!t?.document)
|
|
354
355
|
return !1;
|
|
355
|
-
const r = "mmmmmmmmmmwwwwwww", s = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (
|
|
356
|
+
const r = "mmmmmmmmmmwwwwwww", s = "32px", o = t.document.createElement("canvas").getContext("2d"), i = (f) => o ? (o.font = `${s} ${Y(f)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
|
|
356
357
|
return i(e) !== l;
|
|
357
358
|
}
|
|
358
359
|
function lt(t, e) {
|
|
@@ -361,15 +362,15 @@ function lt(t, e) {
|
|
|
361
362
|
let r = !1;
|
|
362
363
|
return t.document.fonts.forEach((s) => {
|
|
363
364
|
s.family.replace(/['"]/g, "").toLowerCase() === e.toLowerCase() && (r = !0);
|
|
364
|
-
}), r ? !0 :
|
|
365
|
+
}), r ? !0 : v(t, e);
|
|
365
366
|
}
|
|
366
367
|
function N(t) {
|
|
367
368
|
const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, s = (a) => {
|
|
368
369
|
const o = a.fontFamily.toLowerCase(), i = a.fontStyle.toLowerCase(), l = e.test(i), p = r.test(o);
|
|
369
|
-
let
|
|
370
|
-
return l && (
|
|
370
|
+
let f = 0;
|
|
371
|
+
return l && (f = 1), p && (f = l ? 3 : 2), {
|
|
371
372
|
family: a.fontFamily,
|
|
372
|
-
styleRank:
|
|
373
|
+
styleRank: f,
|
|
373
374
|
weight: Number(a.fontWeight)
|
|
374
375
|
};
|
|
375
376
|
};
|
|
@@ -380,7 +381,7 @@ function N(t) {
|
|
|
380
381
|
}
|
|
381
382
|
function ct(t, e, r = [300, 400, 500, 700, 900], s = ["normal", "italic"]) {
|
|
382
383
|
const a = [];
|
|
383
|
-
if (
|
|
384
|
+
if (v(t, e))
|
|
384
385
|
for (const o of r)
|
|
385
386
|
for (const i of s)
|
|
386
387
|
a.push({
|
|
@@ -407,12 +408,12 @@ function P(t) {
|
|
|
407
408
|
(i, l) => r.indexOf(i) < r.indexOf(l) ? -1 : r.indexOf(i) > r.indexOf(l) ? 1 : 0
|
|
408
409
|
);
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
+
function mt(t) {
|
|
411
412
|
return P(t).some(
|
|
412
413
|
(r) => r.hasAttribute("data-user-valid") || r.hasAttribute("data-user-invalid")
|
|
413
414
|
);
|
|
414
415
|
}
|
|
415
|
-
class
|
|
416
|
+
class ft {
|
|
416
417
|
constructor(e = null) {
|
|
417
418
|
this.history = e !== null ? [e] : [], this.redoStack = [];
|
|
418
419
|
}
|
|
@@ -449,7 +450,7 @@ class mt {
|
|
|
449
450
|
return [...this.history];
|
|
450
451
|
}
|
|
451
452
|
}
|
|
452
|
-
var
|
|
453
|
+
var W = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(W || {});
|
|
453
454
|
function ht(t, e) {
|
|
454
455
|
const r = {}, s = new Set(e);
|
|
455
456
|
return Object.keys(t).forEach((a) => {
|
|
@@ -490,7 +491,7 @@ function Dt(t, e) {
|
|
|
490
491
|
function Tt(t, e) {
|
|
491
492
|
typeof Storage < "u" && localStorage.setItem(t, e.toString());
|
|
492
493
|
}
|
|
493
|
-
const
|
|
494
|
+
const X = 10;
|
|
494
495
|
function wt(t, e) {
|
|
495
496
|
let r = 0, s = t.length;
|
|
496
497
|
for (; r < s; ) {
|
|
@@ -499,7 +500,7 @@ function wt(t, e) {
|
|
|
499
500
|
}
|
|
500
501
|
t.splice(r, 0, e);
|
|
501
502
|
}
|
|
502
|
-
function
|
|
503
|
+
function H(t, e, r) {
|
|
503
504
|
return t.find(
|
|
504
505
|
(s) => s.col === e && s.row === r
|
|
505
506
|
) ?? null;
|
|
@@ -527,7 +528,7 @@ function B(t, e, r) {
|
|
|
527
528
|
}
|
|
528
529
|
});
|
|
529
530
|
}
|
|
530
|
-
async function*
|
|
531
|
+
async function* St({
|
|
531
532
|
cache: t,
|
|
532
533
|
canvas: e,
|
|
533
534
|
duration: r,
|
|
@@ -539,18 +540,18 @@ async function* Mt({
|
|
|
539
540
|
throw new Error("Canvas is required");
|
|
540
541
|
if (!o)
|
|
541
542
|
throw new Error("Video is required");
|
|
542
|
-
const { columns: i, frameHeight: l, frameWidth: p, rows:
|
|
543
|
+
const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx: k } = e;
|
|
543
544
|
try {
|
|
544
|
-
for (let g = 0; g <
|
|
545
|
+
for (let g = 0; g < f; g++)
|
|
545
546
|
for (let d = 0; d < i; d++) {
|
|
546
547
|
const T = g * i + d, D = T * s;
|
|
547
548
|
if (D >= r)
|
|
548
549
|
continue;
|
|
549
|
-
const w = d * p,
|
|
550
|
-
|
|
550
|
+
const w = d * p, S = g * l, M = H(t[a] ?? [], d, g), C = d === i - 1 && g === f - 1 || D + s >= r;
|
|
551
|
+
M ? yield { ...M, isLastFrame: C } : (await B(o, D, s), k.drawImage(
|
|
551
552
|
o,
|
|
552
553
|
w,
|
|
553
|
-
|
|
554
|
+
S,
|
|
554
555
|
p,
|
|
555
556
|
l
|
|
556
557
|
), yield {
|
|
@@ -559,18 +560,18 @@ async function* Mt({
|
|
|
559
560
|
frameHeight: l,
|
|
560
561
|
frameWidth: p,
|
|
561
562
|
index: T,
|
|
562
|
-
isLastFrame:
|
|
563
|
+
isLastFrame: C,
|
|
563
564
|
row: g,
|
|
564
|
-
rows:
|
|
565
|
-
time: Number(D.toFixed(
|
|
565
|
+
rows: f,
|
|
566
|
+
time: Number(D.toFixed(X)),
|
|
566
567
|
x: w,
|
|
567
|
-
y:
|
|
568
|
+
y: S
|
|
568
569
|
}), await new Promise(requestAnimationFrame);
|
|
569
570
|
}
|
|
570
571
|
} catch {
|
|
571
572
|
}
|
|
572
573
|
}
|
|
573
|
-
function
|
|
574
|
+
function Mt({
|
|
574
575
|
duration: t,
|
|
575
576
|
frameWidth: e,
|
|
576
577
|
playbackSpeed: r,
|
|
@@ -580,118 +581,125 @@ function Ct({
|
|
|
580
581
|
return a > t && (a = t / 2), a;
|
|
581
582
|
}
|
|
582
583
|
export {
|
|
584
|
+
es as AUTO_FALLBACK_FORMAT,
|
|
585
|
+
rs as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
|
|
583
586
|
le as CMYK_VALIDATION_REGEX,
|
|
584
|
-
|
|
587
|
+
vr as CalendarGrid,
|
|
585
588
|
ce as ColorType,
|
|
586
589
|
rt as CortexPopupController,
|
|
587
590
|
Q as DateRangePresets,
|
|
588
591
|
at as DragScroll,
|
|
589
592
|
Be as FormControlController,
|
|
590
593
|
ue as HEX_ALPHA_VALIDATION_REGEX,
|
|
591
|
-
|
|
594
|
+
me as HEX_VALIDATION_REGEX,
|
|
592
595
|
yr as HasSlotController,
|
|
593
|
-
|
|
594
|
-
|
|
596
|
+
ft as HistoryManager,
|
|
597
|
+
W as KeyboardKey,
|
|
595
598
|
Ze as LocalizeController,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
At as
|
|
599
|
+
X as PRECISION,
|
|
600
|
+
xt as RELATIVE_URL_REGEX,
|
|
601
|
+
fe as RGB_VALIDATION_REGEX,
|
|
602
|
+
as as SRCSET_WIDTH_LADDER,
|
|
603
|
+
At as URL_DOMAIN_VALIDATION_REGEX,
|
|
604
|
+
Et as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
|
|
601
605
|
It as URL_PROTOCOL_VALIDATION_REGEX,
|
|
602
606
|
Lt as URL_VALIDATION_REGEX,
|
|
603
|
-
|
|
604
|
-
|
|
607
|
+
Ce as activeElements,
|
|
608
|
+
_r as addMonths,
|
|
605
609
|
Ut as adjustRelativeValues,
|
|
606
|
-
|
|
607
|
-
|
|
610
|
+
Ae as animateTo,
|
|
611
|
+
_ as appendProtocol,
|
|
608
612
|
Ft as appendQueryParam,
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
+
ss as applyTransformationsToUrl,
|
|
614
|
+
os as applyWidthToAssetUrl,
|
|
615
|
+
ns as buildAssetSrcset,
|
|
616
|
+
is as buildSizesFromDisplayWidth,
|
|
617
|
+
ls as buildTransformationString,
|
|
618
|
+
ia as buildWaveformPath,
|
|
619
|
+
jr as calculateAspectRatioFit,
|
|
613
620
|
Ke as clamp,
|
|
614
|
-
|
|
615
|
-
|
|
621
|
+
Jr as cleanImageFileName,
|
|
622
|
+
Za as clearZeroDurationParts,
|
|
616
623
|
he as convertColor,
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
624
|
+
ua as convertDataUnits,
|
|
625
|
+
ma as convertDurationToMilliseconds,
|
|
626
|
+
fa as convertPixelsToAspectRatio,
|
|
627
|
+
Kr as convertSrcToBlob,
|
|
628
|
+
ta as cropImage,
|
|
622
629
|
cr as cssValueToPx,
|
|
623
|
-
|
|
630
|
+
ve as customElement,
|
|
624
631
|
Ge as customErrorValidityState,
|
|
625
|
-
|
|
626
|
-
|
|
632
|
+
_e as debounce,
|
|
633
|
+
Ye as defaultValue,
|
|
627
634
|
et as downloadAsset,
|
|
628
635
|
Pe as drag,
|
|
629
|
-
|
|
630
|
-
|
|
636
|
+
Ca as emptyToSpace,
|
|
637
|
+
ya as escapeXML,
|
|
631
638
|
ge as extractColor,
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
639
|
+
xa as extractExtension,
|
|
640
|
+
St as extractFrames,
|
|
641
|
+
Aa as extractRootData,
|
|
642
|
+
ha as extractValueAndUnit,
|
|
643
|
+
la as extractWaveformPeaks,
|
|
644
|
+
Qr as fetchCortexApi,
|
|
638
645
|
jt as findAncestorWithBuggyStyle,
|
|
639
646
|
Jt as findContainingBlock,
|
|
640
647
|
Kt as findCuttingAncestor,
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
648
|
+
H as findFrameByColAndRow,
|
|
649
|
+
Yt as findIndexByProp,
|
|
650
|
+
Xe as focusWhenVisible,
|
|
644
651
|
U as formCollections,
|
|
645
|
-
|
|
646
|
-
|
|
652
|
+
ga as formatAspectRatioString,
|
|
653
|
+
ja as formatDurationPartsManually,
|
|
647
654
|
Ur as formatIsoToDisplay,
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
655
|
+
Yr as formatMonthYearLabel,
|
|
656
|
+
da as formatNumberWithGrouping,
|
|
657
|
+
Ea as formatSecondsToTime,
|
|
658
|
+
Ia as formatTimeToSeconds,
|
|
659
|
+
Ja as formatWithIntlDurationFormat,
|
|
660
|
+
pa as gcd,
|
|
654
661
|
ur as getActiveElement,
|
|
655
662
|
rr as getActiveModals,
|
|
656
663
|
$e as getAssociatedForm,
|
|
657
|
-
|
|
658
|
-
|
|
664
|
+
mr as getAttributes,
|
|
665
|
+
La as getAttributesString,
|
|
659
666
|
Nt as getBreakpointsFromCSS,
|
|
660
667
|
ct as getBrowserFontVariants,
|
|
661
668
|
de as getColorType,
|
|
662
|
-
|
|
663
|
-
|
|
669
|
+
ea as getContainedImageSize,
|
|
670
|
+
fr as getCortexPopupLayer,
|
|
664
671
|
y as getCurrentZIndex,
|
|
665
672
|
Nr as getDateMask,
|
|
666
673
|
ye as getDeepestActiveElement,
|
|
667
674
|
Pt as getDeviceType,
|
|
668
|
-
|
|
675
|
+
Ka as getDurationPartsByUnitsFormat,
|
|
669
676
|
hr as getElementFromHTMLString,
|
|
670
677
|
gr as getElementFromTemplate,
|
|
671
678
|
Pr as getFirstDayOfWeek,
|
|
672
679
|
nt as getFontFamilyOptionValue,
|
|
673
680
|
P as getFormControls,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
681
|
+
za as getHighlightedTitle,
|
|
682
|
+
qa as getHighlightedTitleHtml,
|
|
683
|
+
xr as getInnerHTML,
|
|
684
|
+
Mt as getInterval,
|
|
678
685
|
pe as getLightDarkCssString,
|
|
679
|
-
|
|
686
|
+
ra as getNaturalWidthHeight,
|
|
680
687
|
dr as getNeededPaddingForBoxShadow,
|
|
681
688
|
te as getNextAncestor,
|
|
682
689
|
sr as getOffset,
|
|
683
690
|
pr as getRelativeClickPercentage,
|
|
684
|
-
|
|
691
|
+
Fa as getRootIDString,
|
|
685
692
|
Ir as getTabbableBoundary,
|
|
686
693
|
Lr as getTabbableElements,
|
|
687
|
-
|
|
688
|
-
|
|
694
|
+
Ar as getTextContent,
|
|
695
|
+
Wr as getTodayIsoDate,
|
|
689
696
|
ot as getTypefaceOptionValue,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
697
|
+
Wt as groupBy,
|
|
698
|
+
cs as hasTransformSegment,
|
|
699
|
+
Ra as htmlToPlainText,
|
|
700
|
+
Xt as insertAtIndex,
|
|
693
701
|
wt as insertFrameToCache,
|
|
694
|
-
|
|
702
|
+
Ht as insertMultipleAtIndex,
|
|
695
703
|
ee as isChrome,
|
|
696
704
|
Rr as isCortexAdobePlugin,
|
|
697
705
|
Dr as isDomElement,
|
|
@@ -699,19 +707,19 @@ export {
|
|
|
699
707
|
Rt as isExpiredAssetUrl,
|
|
700
708
|
re as isFirefox,
|
|
701
709
|
lt as isFontFamilyAvailable,
|
|
702
|
-
|
|
703
|
-
|
|
710
|
+
mt as isFormInteracted,
|
|
711
|
+
ba as isGalleryItemCardType,
|
|
704
712
|
ae as isIOS,
|
|
705
713
|
wr as isInElement,
|
|
706
714
|
st as isModKey,
|
|
707
715
|
se as isSafari,
|
|
708
|
-
|
|
716
|
+
aa as isSaveSrcValid,
|
|
709
717
|
bt as isValidDomainOrIntranetUrl,
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
718
|
+
Xr as isValidIsoDate,
|
|
719
|
+
Ot as isValidUrl,
|
|
720
|
+
Hr as isoToDate,
|
|
713
721
|
Z as isoWeekNumber,
|
|
714
|
-
|
|
722
|
+
Sr as loadScript,
|
|
715
723
|
or as lockBodyScrolling,
|
|
716
724
|
De as luminanceTextColor,
|
|
717
725
|
Bt as moveMultipleToIndex,
|
|
@@ -723,61 +731,63 @@ export {
|
|
|
723
731
|
J as openFolderOverview,
|
|
724
732
|
K as openLink,
|
|
725
733
|
Oa as padPath,
|
|
726
|
-
|
|
734
|
+
Va as parseBooleanString,
|
|
727
735
|
Te as parseBorder,
|
|
728
736
|
Gr as parseDisplayToIso,
|
|
729
|
-
|
|
737
|
+
Ee as parseDuration,
|
|
738
|
+
us as parseFileSizeToBytes,
|
|
730
739
|
$r as parseIsoDate,
|
|
731
740
|
dt as parseJsonString,
|
|
732
741
|
we as parseLightDark,
|
|
733
742
|
pt as parseListString,
|
|
734
|
-
|
|
743
|
+
Se as parseShadow,
|
|
735
744
|
gt as pick,
|
|
736
745
|
oe as popoverSupported,
|
|
737
746
|
Ie as prefersReducedMotion,
|
|
738
747
|
tr as quantizeLargestRemainder,
|
|
739
|
-
|
|
748
|
+
Y as quoteFontFamily,
|
|
740
749
|
Dt as readLocalStorageValue,
|
|
741
|
-
|
|
750
|
+
va as reducePathToDirectChild,
|
|
742
751
|
je as registerTranslation,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
752
|
+
zt as removeAtIndex,
|
|
753
|
+
qt as removeMultipleAtIndex,
|
|
754
|
+
sa as resizeImage,
|
|
755
|
+
ms as resolveAutoFormat,
|
|
756
|
+
Vt as resolveSpaceUrl,
|
|
757
|
+
Da as rotateBox,
|
|
758
|
+
oa as rotateImage,
|
|
759
|
+
ka as safeExtension,
|
|
750
760
|
_a as safeString,
|
|
751
|
-
|
|
752
|
-
|
|
761
|
+
Ua as sanitizeHTML,
|
|
762
|
+
Ta as sanitizeRotation,
|
|
753
763
|
nr as scrollIntoView,
|
|
754
764
|
ut as serialize,
|
|
755
765
|
tt as shareAsset,
|
|
756
766
|
Le as shimKeyframesHeightAuto,
|
|
757
|
-
|
|
767
|
+
Mr as sortByTopPosition,
|
|
758
768
|
N as sortTypefaceVariants,
|
|
759
|
-
|
|
760
|
-
|
|
769
|
+
Sa as splitBoxValues,
|
|
770
|
+
Ya as splitCamelCaseFormatted,
|
|
761
771
|
Fe as stopAnimations,
|
|
762
772
|
ne as supportHLS,
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
773
|
+
v as testFontAvailability,
|
|
774
|
+
Oe as timecodeConverter,
|
|
775
|
+
Na as toCamelCase,
|
|
776
|
+
zr as toIsoDate,
|
|
777
|
+
Pa as toKebabCase,
|
|
768
778
|
Wa as toPascalCase,
|
|
769
|
-
|
|
770
|
-
|
|
779
|
+
vt as toRelativeUrl,
|
|
780
|
+
Xa as toTitleCase,
|
|
771
781
|
kt as toUrlPathKey,
|
|
772
782
|
Qt as toast,
|
|
773
|
-
|
|
774
|
-
|
|
783
|
+
Ha as truncateTextMiddle,
|
|
784
|
+
Ba as unescapeXML,
|
|
775
785
|
ir as unlockBodyScrolling,
|
|
776
786
|
it as unquoteFontFamily,
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
787
|
+
Ga as upperFirst,
|
|
788
|
+
ze as validValidityState,
|
|
789
|
+
qe as valueMissingValidityState,
|
|
780
790
|
Re as waitForEvent,
|
|
781
|
-
|
|
791
|
+
Or as watch,
|
|
782
792
|
Tt as writeLocalStorageValue
|
|
783
793
|
};
|