@orangelogic/design-system 2.191.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.
Files changed (61) hide show
  1. package/library/chunks/{asset-link-format.CEDcHah6.js → asset-link-format.CDd4iPA2.js} +1141 -992
  2. package/library/chunks/{color-swatch-group.tnhiQ0jp.js → color-swatch-group.NOcRP-23.js} +4 -3
  3. package/library/chunks/{confirm-popover.CrQKEChc.js → confirm-popover.jCP9CdcD.js} +1 -1
  4. package/library/chunks/content-builder.BX4pHujE.js +60 -0
  5. package/library/chunks/{dialog.CWGtufDA.js → dialog.B6hZ7fvn.js} +2 -2
  6. package/library/chunks/{document-viewer.C90j1Xrr.js → document-viewer.CRluR-_W.js} +3 -2
  7. package/library/chunks/{image.CTMzUqCC.js → image.CiQwSDfe.js} +186 -187
  8. package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
  9. package/library/chunks/transformation.BfIEi4p4.js +300 -0
  10. package/library/components/asset-link-format.js +2 -2
  11. package/library/components/atoms.js +3 -3
  12. package/library/components/color-swatch-group.js +3 -3
  13. package/library/components/confirm-popover.js +2 -2
  14. package/library/components/cropper.js +1 -1
  15. package/library/components/dialog.js +1 -1
  16. package/library/components/document-viewer.js +2 -2
  17. package/library/components/drawer.js +2 -2
  18. package/library/components/file-on-demand.js +2 -2
  19. package/library/components/image.js +2 -3
  20. package/library/components/masonry.js +136 -107
  21. package/library/components/molecules.js +1 -1
  22. package/library/components/organisms.js +2 -2
  23. package/library/components/popup.js +100 -97
  24. package/library/components/select.js +16 -11
  25. package/library/components/types.js +21757 -21460
  26. package/library/components/video.js +1 -1
  27. package/library/package.json +1 -1
  28. package/library/packages/atoms/src/components/image/image.d.ts +36 -4
  29. package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
  30. package/library/packages/atoms/src/components/select/select.d.ts +8 -0
  31. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
  32. package/library/packages/molecules/src/cropper/cropper.d.ts +0 -1
  33. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +0 -1
  34. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  35. package/library/packages/molecules/src/masonry/masonry.d.ts +24 -0
  36. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +46 -2
  37. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.d.ts +36 -1
  38. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +20 -2
  39. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +101 -0
  40. package/library/packages/organisms/src/carousel/carousel.d.ts +26 -0
  41. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +65 -1
  42. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +5 -0
  43. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
  44. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
  45. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +1 -0
  46. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +1 -0
  47. package/library/packages/organisms/src/content-builder/configs/image.d.ts +2 -0
  48. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
  49. package/library/packages/organisms/src/content-builder/configs/video.d.ts +1 -0
  50. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +10 -0
  51. package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -0
  52. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -5
  53. package/library/packages/types/src/asset-link-format.d.ts +0 -1
  54. package/library/packages/types/src/content-builder.d.ts +7 -0
  55. package/library/packages/types/src/gallery-item.d.ts +1 -0
  56. package/library/packages/types/src/masonry.d.ts +1 -0
  57. package/library/packages/utils/src/transformation/transformation.d.ts +91 -0
  58. package/library/react-web-component.d.ts +63 -7
  59. package/library/utils.js +192 -182
  60. package/package.json +1 -1
  61. package/library/chunks/transformation.8uLv6uwG.js +0 -264
package/library/utils.js CHANGED
@@ -1,55 +1,56 @@
1
- import { b as Y } from "./chunks/url.CGdWC06g.js";
2
- import { R as St, f as Et, g as At, h as It, U as Lt, a as Ft, d as Rt, c as bt, i as Vt, r as vt, t as Ot, e as kt } from "./chunks/url.CGdWC06g.js";
3
- import { j as Ut, f as _t, b as Nt, c as Pt, g as Xt, e as Ht, i as Wt, a as Bt, h as Gt, m as $t, d as qt, r as zt, t as Qt } from "./chunks/toast.CXEAfCvN.js";
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 fe, R as me, c as he, h as ge, f as de, g as pe, l as De, a as Te, p as we, b as Me } from "./chunks/color.LzSGBy7o.js";
6
- import { a as xe, g as ye } from "./chunks/active-elements.jTVWtBDp.js";
7
- import { a as Ee, p as Ae, c as Ie, b as Le, s as Fe, w as Re } from "./chunks/event.BeKOsirN.js";
8
- import { t as Ve } from "./chunks/converters.DkDtLstb.js";
9
- import { c as Oe } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as Ye } from "./chunks/debounce.DaHuiSGU.js";
11
- import { d as _e } from "./chunks/default-value.COZopaet.js";
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 He } from "./chunks/focus-when-visible.jWSw9ks0.js";
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 qe, a as ze } from "./chunks/form.DSsy3Fcy.js";
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 fr, m as mr, a as hr, g as gr, j as dr, b as pr, f as Dr, i as Tr, e as wr, l as Mr, s as Cr } from "./chunks/dom.gRV2cDjL.js";
22
- import { H as yr, a as Sr, g as Er } from "./chunks/slot.j5oheLJC.js";
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 Vr } from "./chunks/watch.DJF5K-8U.js";
26
- import { C as Or } from "./chunks/calendar-grid.BWjcZL5W.js";
27
- import { b as Yr, c as Ur, f as _r, h as Nr, g as Pr, a as Xr, i as Hr, d as Wr, n as Br, e as Gr, p as $r, t as qr } from "./chunks/date.iWq_pkIk.js";
28
- import { f as c, a as u, D as f } from "./chunks/date-picker.BGHn6qg8.js";
29
- import { a as Qr, b as Zr, f as jr } from "./chunks/transformation.8uLv6uwG.js";
30
- import { c as Kr, f as ta, e as ea, b as ra, g as aa, d as sa, i as oa, r as na, a as ia } from "./chunks/image.Y5c_hFx8.js";
31
- import { b as ca, e as ua } from "./chunks/waveform.1U9U_0rd.js";
32
- import { c as ma, b as ha, a as ga, e as da, d as pa, f as Da, g as Ta, r as wa, s as Ma } from "./chunks/number.Cx2ncfJJ.js";
33
- import { s as xa } from "./chunks/parse.Cu5nBDTb.js";
34
- import { b as Sa, n as Ea, d as Aa, e as Ia, f as La, y as Fa, o as Ra, g as ba, h as Va, l as va, p as Oa, z as ka, x as Ya, a as Ua, c as _a, s as Na, w as Pa, r as Xa, t as Ha, q as Wa, v as Ba, i as Ga, m as $a, u as qa } from "./chunks/string.CfI2ejyR.js";
35
- import { g as Qa, a as Za } from "./chunks/template.ClovJacp.js";
36
- import { c as Ja, f as Ka, a as ts, g as es } from "./chunks/time.DYWuX2id.js";
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 S(t) {
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 E(t) {
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 A(t) {
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: S(a),
90
+ fromTime: x(a),
90
91
  toDate: s,
91
- toTime: S(r)
92
+ toTime: x(r)
92
93
  };
93
94
  }
94
95
  case c.today:
95
96
  return {
96
97
  fromDate: s,
97
- fromTime: f,
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: f,
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: f,
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: f,
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: f,
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: f,
135
+ fromTime: m,
135
136
  toDate: n(h(r, 30)),
136
137
  toTime: u
137
138
  };
138
139
  case c.thisWeek: {
139
- const a = E(r);
140
+ const a = A(r);
140
141
  return {
141
142
  fromDate: n(a),
142
- fromTime: f,
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(E(r), -7);
149
+ const a = h(A(r), -7);
149
150
  return {
150
151
  fromDate: n(a),
151
- fromTime: f,
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(A(r)),
159
- fromTime: f,
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(A(a)),
167
- fromTime: f,
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: f,
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: f,
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: f,
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: f,
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: f,
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: f,
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
- Y(t, "https://", !0),
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 V(t) {
330
+ function O(t) {
330
331
  return t.replaceAll(" ", "_");
331
332
  }
332
333
  function ot(t) {
333
- return t.value ?? V(t.typeface);
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 V(e);
342
+ return O(e);
342
343
  }
343
- function v(t) {
344
+ function V(t) {
344
345
  return t.length >= 2 && (t.startsWith("'") && t.endsWith("'") || t.startsWith('"') && t.endsWith('"'));
345
346
  }
346
- function _(t) {
347
- return v(t) || !t.includes(" ") ? t : `'${t.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
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 v(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
351
+ return V(t) ? t.slice(1, -1).replace(/\\(.)/g, "$1") : t;
351
352
  }
352
- function O(t, e) {
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 = (m) => o ? (o.font = `${s} ${_(m)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
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 : O(t, e);
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 m = 0;
370
- return l && (m = 1), p && (m = l ? 3 : 2), {
370
+ let f = 0;
371
+ return l && (f = 1), p && (f = l ? 3 : 2), {
371
372
  family: a.fontFamily,
372
- styleRank: m,
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 (O(t, e))
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 ft(t) {
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 mt {
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 X = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(X || {});
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 H = 10;
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 W(t, e, r) {
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* Mt({
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: m, spriteCtx: k } = e;
543
+ const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx: k } = e;
543
544
  try {
544
- for (let g = 0; g < m; 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, M = g * l, C = W(t[a] ?? [], d, g), x = d === i - 1 && g === m - 1 || D + s >= r;
550
- C ? yield { ...C, isLastFrame: x } : (await B(o, D, s), k.drawImage(
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
- M,
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: x,
563
+ isLastFrame: C,
563
564
  row: g,
564
- rows: m,
565
- time: Number(D.toFixed(H)),
565
+ rows: f,
566
+ time: Number(D.toFixed(X)),
566
567
  x: w,
567
- y: M
568
+ y: S
568
569
  }), await new Promise(requestAnimationFrame);
569
570
  }
570
571
  } catch {
571
572
  }
572
573
  }
573
- function Ct({
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
- Or as CalendarGrid,
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
- fe as HEX_VALIDATION_REGEX,
594
+ me as HEX_VALIDATION_REGEX,
592
595
  yr as HasSlotController,
593
- mt as HistoryManager,
594
- X as KeyboardKey,
596
+ ft as HistoryManager,
597
+ W as KeyboardKey,
595
598
  Ze as LocalizeController,
596
- H as PRECISION,
597
- St as RELATIVE_URL_REGEX,
598
- me as RGB_VALIDATION_REGEX,
599
- Et as URL_DOMAIN_VALIDATION_REGEX,
600
- At as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
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
- xe as activeElements,
604
- Yr as addMonths,
607
+ Ce as activeElements,
608
+ _r as addMonths,
605
609
  Ut as adjustRelativeValues,
606
- Ee as animateTo,
607
- Y as appendProtocol,
610
+ Ae as animateTo,
611
+ _ as appendProtocol,
608
612
  Ft as appendQueryParam,
609
- Qr as applyTransformationsToUrl,
610
- Zr as buildTransformationString,
611
- ca as buildWaveformPath,
612
- Kr as calculateAspectRatioFit,
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
- ta as cleanImageFileName,
615
- Ja as clearZeroDurationParts,
621
+ Jr as cleanImageFileName,
622
+ Za as clearZeroDurationParts,
616
623
  he as convertColor,
617
- ma as convertDataUnits,
618
- ha as convertDurationToMilliseconds,
619
- ga as convertPixelsToAspectRatio,
620
- ea as convertSrcToBlob,
621
- ra as cropImage,
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
- Oe as customElement,
630
+ ve as customElement,
624
631
  Ge as customErrorValidityState,
625
- Ye as debounce,
626
- _e as defaultValue,
632
+ _e as debounce,
633
+ Ye as defaultValue,
627
634
  et as downloadAsset,
628
635
  Pe as drag,
629
- Sa as emptyToSpace,
630
- Ea as escapeXML,
636
+ Ca as emptyToSpace,
637
+ ya as escapeXML,
631
638
  ge as extractColor,
632
- Aa as extractExtension,
633
- Mt as extractFrames,
634
- Ia as extractRootData,
635
- da as extractValueAndUnit,
636
- ua as extractWaveformPeaks,
637
- jr as fetchCortexApi,
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
- W as findFrameByColAndRow,
642
- _t as findIndexByProp,
643
- He as focusWhenVisible,
648
+ H as findFrameByColAndRow,
649
+ Yt as findIndexByProp,
650
+ Xe as focusWhenVisible,
644
651
  U as formCollections,
645
- pa as formatAspectRatioString,
646
- Ka as formatDurationPartsManually,
652
+ ga as formatAspectRatioString,
653
+ ja as formatDurationPartsManually,
647
654
  Ur as formatIsoToDisplay,
648
- _r as formatMonthYearLabel,
649
- Da as formatNumberWithGrouping,
650
- La as formatSecondsToTime,
651
- Fa as formatTimeToSeconds,
652
- ts as formatWithIntlDurationFormat,
653
- Ta as gcd,
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
- fr as getAttributes,
658
- Ra as getAttributesString,
664
+ mr as getAttributes,
665
+ La as getAttributesString,
659
666
  Nt as getBreakpointsFromCSS,
660
667
  ct as getBrowserFontVariants,
661
668
  de as getColorType,
662
- aa as getContainedImageSize,
663
- mr as getCortexPopupLayer,
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
- es as getDurationPartsByUnitsFormat,
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
- Qa as getHighlightedTitle,
675
- Za as getHighlightedTitleHtml,
676
- Sr as getInnerHTML,
677
- Ct as getInterval,
681
+ za as getHighlightedTitle,
682
+ qa as getHighlightedTitleHtml,
683
+ xr as getInnerHTML,
684
+ Mt as getInterval,
678
685
  pe as getLightDarkCssString,
679
- sa as getNaturalWidthHeight,
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
- ba as getRootIDString,
691
+ Fa as getRootIDString,
685
692
  Ir as getTabbableBoundary,
686
693
  Lr as getTabbableElements,
687
- Er as getTextContent,
688
- Xr as getTodayIsoDate,
694
+ Ar as getTextContent,
695
+ Wr as getTodayIsoDate,
689
696
  ot as getTypefaceOptionValue,
690
- Xt as groupBy,
691
- Va as htmlToPlainText,
692
- Ht as insertAtIndex,
697
+ Wt as groupBy,
698
+ cs as hasTransformSegment,
699
+ Ra as htmlToPlainText,
700
+ Xt as insertAtIndex,
693
701
  wt as insertFrameToCache,
694
- Wt as insertMultipleAtIndex,
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
- ft as isFormInteracted,
703
- va as isGalleryItemCardType,
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
- oa as isSaveSrcValid,
716
+ aa as isSaveSrcValid,
709
717
  bt as isValidDomainOrIntranetUrl,
710
- Hr as isValidIsoDate,
711
- Vt as isValidUrl,
712
- Wr as isoToDate,
718
+ Xr as isValidIsoDate,
719
+ Ot as isValidUrl,
720
+ Hr as isoToDate,
713
721
  Z as isoWeekNumber,
714
- Mr as loadScript,
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
- ka as parseBooleanString,
734
+ Va as parseBooleanString,
727
735
  Te as parseBorder,
728
736
  Gr as parseDisplayToIso,
729
- Ae as parseDuration,
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
- Me as parseShadow,
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
- _ as quoteFontFamily,
748
+ Y as quoteFontFamily,
740
749
  Dt as readLocalStorageValue,
741
- Ya as reducePathToDirectChild,
750
+ va as reducePathToDirectChild,
742
751
  je as registerTranslation,
743
- qt as removeAtIndex,
744
- zt as removeMultipleAtIndex,
745
- na as resizeImage,
746
- vt as resolveSpaceUrl,
747
- wa as rotateBox,
748
- ia as rotateImage,
749
- Ua as safeExtension,
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
- Na as sanitizeHTML,
752
- Ma as sanitizeRotation,
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
- Cr as sortByTopPosition,
767
+ Mr as sortByTopPosition,
758
768
  N as sortTypefaceVariants,
759
- xa as splitBoxValues,
760
- Pa as splitCamelCaseFormatted,
769
+ Sa as splitBoxValues,
770
+ Ya as splitCamelCaseFormatted,
761
771
  Fe as stopAnimations,
762
772
  ne as supportHLS,
763
- O as testFontAvailability,
764
- Ve as timecodeConverter,
765
- Xa as toCamelCase,
766
- qr as toIsoDate,
767
- Ha as toKebabCase,
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
- Ot as toRelativeUrl,
770
- Ba as toTitleCase,
779
+ vt as toRelativeUrl,
780
+ Xa as toTitleCase,
771
781
  kt as toUrlPathKey,
772
782
  Qt as toast,
773
- Ga as truncateTextMiddle,
774
- $a as unescapeXML,
783
+ Ha as truncateTextMiddle,
784
+ Ba as unescapeXML,
775
785
  ir as unlockBodyScrolling,
776
786
  it as unquoteFontFamily,
777
- qa as upperFirst,
778
- qe as validValidityState,
779
- ze as valueMissingValidityState,
787
+ Ga as upperFirst,
788
+ ze as validValidityState,
789
+ qe as valueMissingValidityState,
780
790
  Re as waitForEvent,
781
- Vr as watch,
791
+ Or as watch,
782
792
  Tt as writeLocalStorageValue
783
793
  };