@orangelogic/design-system 3.1.0 → 3.2.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 (111) hide show
  1. package/library/chunks/{asset-link-format.Ds5nq4mo.js → asset-link-format.BnIUG_vO.js} +19 -18
  2. package/library/chunks/{button.BnkkUqiI.js → button.CpY4FCwE.js} +1 -1
  3. package/library/chunks/{color-swatch-group.d5e1sYos.js → color-swatch-group.CTcv62MK.js} +11 -10
  4. package/library/chunks/{color-swatch.D6Gg5bpz.js → color-swatch.Caved2kL.js} +1 -1
  5. package/library/chunks/{confirm-popover.tftDINBg.js → confirm-popover.BSS1VhB2.js} +3 -3
  6. package/library/chunks/content-builder.BX4pHujE.js +60 -0
  7. package/library/chunks/{dialog.CzSaiGBF.js → dialog.ICoCAj6Z.js} +4 -4
  8. package/library/chunks/{document-viewer.B1EEIvUY.js → document-viewer.D6PxGcEL.js} +8 -7
  9. package/library/chunks/{dot-pagination.BqGFeFXK.js → dot-pagination.CzVpiv00.js} +1 -1
  10. package/library/chunks/{folder-select.CIqVGGFl.js → folder-select.DN-JomDt.js} +4 -4
  11. package/library/chunks/{header.CWlWNree.js → header.BQg_JjHw.js} +1 -1
  12. package/library/chunks/{i18n.DbXTTLXx.js → i18n.BA19xtyU.js} +6 -3
  13. package/library/chunks/{icon-button.BHC52xvk.js → icon-button.BWJ1Vqn5.js} +1 -1
  14. package/library/chunks/{iframe.-GCTFas1.js → iframe.Dm-nXSBv.js} +1 -1
  15. package/library/chunks/{image.CTMzUqCC.js → image.B-4cVbol.js} +187 -188
  16. package/library/chunks/{input.33UmFGqR.js → input.xgeLCG8I.js} +1 -1
  17. package/library/chunks/{markdown.Dga4_SbU.js → markdown.bkEjjjS9.js} +2 -2
  18. package/library/chunks/menu-item.DgUMVYe5.js +493 -0
  19. package/library/chunks/{option.B6odSlS2.js → option.jeaj7_Lr.js} +1 -1
  20. package/library/chunks/{pagination.D50ned8_.js → pagination.CSPKsj4y.js} +5 -5
  21. package/library/chunks/{tab-group.DE0RsMX4.js → tab-group.BSl6GdIO.js} +4 -4
  22. package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
  23. package/library/chunks/transformation.CWKaoGaY.js +254 -0
  24. package/library/chunks/{tree.CmEdKtzK.js → tree.DYFFjW1-.js} +1 -1
  25. package/library/components/alert.js +2 -2
  26. package/library/components/asset-link-format.js +4 -4
  27. package/library/components/atoms.js +31 -31
  28. package/library/components/audio.js +2 -2
  29. package/library/components/border-input-group.js +2 -2
  30. package/library/components/breadcrumb.js +1 -1
  31. package/library/components/button.js +2 -2
  32. package/library/components/color-picker.js +3 -3
  33. package/library/components/color-swatch-group.js +5 -5
  34. package/library/components/color-swatch.js +2 -2
  35. package/library/components/confirm-popover.js +4 -4
  36. package/library/components/copy-button.js +1 -1
  37. package/library/components/corner-position-input-group.js +3 -3
  38. package/library/components/date-calendar.js +1 -1
  39. package/library/components/details.js +1 -1
  40. package/library/components/dialog.js +3 -3
  41. package/library/components/document-viewer.js +3 -3
  42. package/library/components/dot-pagination.js +2 -2
  43. package/library/components/drawer.js +4 -4
  44. package/library/components/dropdown.js +2 -2
  45. package/library/components/dynamic-select.js +4 -4
  46. package/library/components/e-chart.js +1 -1
  47. package/library/components/element-clamp.js +2 -2
  48. package/library/components/file-on-demand.js +9 -9
  49. package/library/components/folder-select.js +4 -4
  50. package/library/components/format-bytes.js +1 -1
  51. package/library/components/format-date.js +1 -1
  52. package/library/components/format-number.js +1 -1
  53. package/library/components/format-time.js +1 -1
  54. package/library/components/header.js +2 -2
  55. package/library/components/icon-button.js +2 -2
  56. package/library/components/iframe.js +2 -2
  57. package/library/components/image-comparer.js +1 -1
  58. package/library/components/image.js +3 -4
  59. package/library/components/input.js +2 -2
  60. package/library/components/line-clamp.js +1 -1
  61. package/library/components/markdown.js +3 -3
  62. package/library/components/masonry.js +113 -100
  63. package/library/components/menu-item.js +15 -486
  64. package/library/components/menu.js +20 -20
  65. package/library/components/molecules.js +3 -3
  66. package/library/components/option.js +2 -2
  67. package/library/components/organisms.js +2 -2
  68. package/library/components/padding-input-group.js +1 -1
  69. package/library/components/pagination.js +6 -6
  70. package/library/components/popup.js +101 -98
  71. package/library/components/position-picker.js +1 -1
  72. package/library/components/progress-bar.js +1 -1
  73. package/library/components/progress-ring.js +1 -1
  74. package/library/components/range.js +1 -1
  75. package/library/components/rating.js +1 -1
  76. package/library/components/relative-time.js +1 -1
  77. package/library/components/select.js +18 -13
  78. package/library/components/shadow-input-group.js +1 -1
  79. package/library/components/share-option-list.js +1 -1
  80. package/library/components/sidebar.js +1 -1
  81. package/library/components/size-input-group.js +3 -3
  82. package/library/components/spinner.js +1 -1
  83. package/library/components/split-panel.js +1 -1
  84. package/library/components/tab-group.js +5 -5
  85. package/library/components/tab.js +2 -2
  86. package/library/components/tag.js +2 -2
  87. package/library/components/tooltip.js +1 -1
  88. package/library/components/tree-item.js +2 -2
  89. package/library/components/tree.js +2 -2
  90. package/library/components/typeface.js +2 -2
  91. package/library/components/types.js +15020 -14844
  92. package/library/components/video.js +2 -2
  93. package/library/package.json +1 -1
  94. package/library/packages/atoms/src/components/image/image.d.ts +30 -4
  95. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +5 -2
  96. package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
  97. package/library/packages/atoms/src/components/select/select.d.ts +8 -0
  98. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  99. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +1 -0
  100. package/library/packages/molecules/src/masonry/masonry.d.ts +9 -0
  101. package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +8 -0
  102. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +88 -0
  103. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +11 -1
  104. package/library/packages/organisms/src/content-builder/content-builder.d.ts +31 -6
  105. package/library/packages/types/src/menu-item.d.ts +12 -1
  106. package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
  107. package/library/packages/utils/src/transformation/transformation.d.ts +52 -0
  108. package/library/react-web-component.d.ts +17 -1
  109. package/library/utils.js +173 -167
  110. package/package.json +1 -1
  111. package/library/chunks/transformation.8uLv6uwG.js +0 -264
package/library/utils.js CHANGED
@@ -1,44 +1,45 @@
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 U } from "./chunks/url.CGdWC06g.js";
2
+ import { R as yt, f as Et, g as At, h as It, U as Lt, a as Rt, d as Ft, c as bt, i as Vt, r as vt, t as Ot, e as kt } from "./chunks/url.CGdWC06g.js";
3
+ import { j as Yt, f as _t, 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";
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 Me, g as xe } from "./chunks/active-elements.jTVWtBDp.js";
7
+ import { a as Ee, p as Ae, c as Ie, b as Le, s as Re, w as Fe } from "./chunks/event.BeKOsirN.js";
8
8
  import { t as Ve } from "./chunks/converters.DkDtLstb.js";
9
9
  import { c as Oe } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as Ye } from "./chunks/debounce.DaHuiSGU.js";
10
+ import { d as Ue } from "./chunks/debounce.DaHuiSGU.js";
11
11
  import { d as _e } 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";
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";
16
- import { L as Ze, r as je } from "./chunks/i18n.DbXTTLXx.js";
13
+ import { f as Xe } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
+ import { f as Y } 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
+ import { L as Ze, r as je } from "./chunks/i18n.BA19xtyU.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
- 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";
20
+ import { k as x } from "./chunks/dom.gRV2cDjL.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 Cr } from "./chunks/dom.gRV2cDjL.js";
22
+ import { H as xr, a as yr, g as Er } from "./chunks/slot.j5oheLJC.js";
23
23
  import { a as Ir, g as Lr } from "./chunks/tabbable.BwnZBHrm.js";
24
- import { i as Rr } from "./chunks/user-agent.D9aPuOyL.js";
24
+ import { i as Fr } from "./chunks/user-agent.D9aPuOyL.js";
25
25
  import { w as Vr } from "./chunks/watch.DJF5K-8U.js";
26
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";
27
+ import { b as Ur, c as Yr, f as _r, 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 Ma, n as xa, d as ya, e as Ea, f as Aa, y as Ia, o as La, g as Ra, h as Fa, l as ba, p as Va, z as va, x as Oa, a as ka, c as Ua, s as Ya, w as _a, 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 { S as es, a as rs, e as as, b as ss, d as os, c as ns, h as is } from "./chunks/transformation.CWKaoGaY.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 y(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
  }
@@ -59,11 +60,11 @@ function L(t) {
59
60
  const e = Math.floor(t.getMonth() / 3) * 3;
60
61
  return new Date(t.getFullYear(), e, 1);
61
62
  }
62
- function F(t) {
63
+ function R(t) {
63
64
  const e = Math.floor(t.getMonth() / 3) * 3;
64
65
  return new Date(t.getFullYear(), e + 3, 0);
65
66
  }
66
- function R(t) {
67
+ function F(t) {
67
68
  const e = t.getMonth() < 6 ? 0 : 6;
68
69
  return new Date(t.getFullYear(), e, 1);
69
70
  }
@@ -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: y(a),
90
91
  toDate: s,
91
- toTime: S(r)
92
+ toTime: y(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,28 +111,28 @@ 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
  };
@@ -139,7 +140,7 @@ class Q {
139
140
  const a = E(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
  };
@@ -148,7 +149,7 @@ class Q {
148
149
  const a = h(E(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
  };
@@ -156,7 +157,7 @@ class Q {
156
157
  case c.thisMonth:
157
158
  return {
158
159
  fromDate: n(A(r)),
159
- fromTime: f,
160
+ fromTime: m,
160
161
  toDate: n(I(r)),
161
162
  toTime: u
162
163
  };
@@ -164,7 +165,7 @@ class Q {
164
165
  const a = new Date(r.getFullYear(), r.getMonth() - 1, 1);
165
166
  return {
166
167
  fromDate: n(A(a)),
167
- fromTime: f,
168
+ fromTime: m,
168
169
  toDate: n(I(a)),
169
170
  toTime: u
170
171
  };
@@ -172,8 +173,8 @@ class Q {
172
173
  case c.thisQuarter:
173
174
  return {
174
175
  fromDate: n(L(r)),
175
- fromTime: f,
176
- toDate: n(F(r)),
176
+ fromTime: m,
177
+ toDate: n(R(r)),
177
178
  toTime: u
178
179
  };
179
180
  case c.lastQuarter: {
@@ -184,23 +185,23 @@ class Q {
184
185
  );
185
186
  return {
186
187
  fromDate: n(L(a)),
187
- fromTime: f,
188
- toDate: n(F(a)),
188
+ fromTime: m,
189
+ toDate: n(R(a)),
189
190
  toTime: u
190
191
  };
191
192
  }
192
193
  case c.thisHalfYear:
193
194
  return {
194
- fromDate: n(R(r)),
195
- fromTime: f,
195
+ fromDate: n(F(r)),
196
+ fromTime: m,
196
197
  toDate: n(b(r)),
197
198
  toTime: u
198
199
  };
199
200
  case c.lastHalfYear: {
200
201
  const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
201
202
  return {
202
- fromDate: n(R(a)),
203
- fromTime: f,
203
+ fromDate: n(F(a)),
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
+ U(t, "https://", !0),
266
267
  e ?? "_blank"
267
268
  );
268
269
  }
@@ -289,14 +290,14 @@ function et(t, e) {
289
290
  }
290
291
  class rt {
291
292
  constructor(e) {
292
- this.currentZIndex = y(), (this.host = e).addController(this);
293
+ this.currentZIndex = x(), (this.host = e).addController(this);
293
294
  }
294
295
  hostConnected() {
295
296
  }
296
297
  hostDisconnected() {
297
298
  }
298
299
  async activatePopup() {
299
- this.currentZIndex = y();
300
+ this.currentZIndex = x();
300
301
  }
301
302
  }
302
303
  class at {
@@ -352,7 +353,7 @@ function it(t) {
352
353
  function O(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} ${_(f)}, monospace`, o.measureText(r).width) : 0, l = i("monospace");
356
357
  return i(e) !== l;
357
358
  }
358
359
  function lt(t, e) {
@@ -366,10 +367,10 @@ function lt(t, e) {
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
  };
@@ -402,17 +403,17 @@ function ut(t) {
402
403
  }), r;
403
404
  }
404
405
  function P(t) {
405
- const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = U.get(t), o = a ? Array.from(a) : [];
406
+ const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = Y.get(t), o = a ? Array.from(a) : [];
406
407
  return [...s, ...o].sort(
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, C = H(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
551
+ C ? yield { ...C, isLastFrame: M } : (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,12 +560,12 @@ async function* Mt({
559
560
  frameHeight: l,
560
561
  frameWidth: p,
561
562
  index: T,
562
- isLastFrame: x,
563
+ isLastFrame: M,
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 {
@@ -588,130 +589,135 @@ export {
588
589
  at as DragScroll,
589
590
  Be as FormControlController,
590
591
  ue as HEX_ALPHA_VALIDATION_REGEX,
591
- fe as HEX_VALIDATION_REGEX,
592
- yr as HasSlotController,
593
- mt as HistoryManager,
594
- X as KeyboardKey,
592
+ me as HEX_VALIDATION_REGEX,
593
+ xr as HasSlotController,
594
+ ft as HistoryManager,
595
+ W as KeyboardKey,
595
596
  Ze as LocalizeController,
596
- H as PRECISION,
597
- St as RELATIVE_URL_REGEX,
598
- me as RGB_VALIDATION_REGEX,
597
+ X as PRECISION,
598
+ yt as RELATIVE_URL_REGEX,
599
+ fe as RGB_VALIDATION_REGEX,
600
+ es as SRCSET_WIDTH_LADDER,
599
601
  Et as URL_DOMAIN_VALIDATION_REGEX,
600
602
  At as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
601
603
  It as URL_PROTOCOL_VALIDATION_REGEX,
602
604
  Lt as URL_VALIDATION_REGEX,
603
- xe as activeElements,
604
- Yr as addMonths,
605
- Ut as adjustRelativeValues,
605
+ Me as activeElements,
606
+ Ur as addMonths,
607
+ Yt as adjustRelativeValues,
606
608
  Ee as animateTo,
607
- Y as appendProtocol,
608
- Ft as appendQueryParam,
609
- Qr as applyTransformationsToUrl,
610
- Zr as buildTransformationString,
611
- ca as buildWaveformPath,
612
- Kr as calculateAspectRatioFit,
609
+ U as appendProtocol,
610
+ Rt as appendQueryParam,
611
+ rs as applyTransformationsToUrl,
612
+ as as applyWidthToAssetUrl,
613
+ ss as buildAssetSrcset,
614
+ os as buildSizesFromDisplayWidth,
615
+ ns as buildTransformationString,
616
+ ia as buildWaveformPath,
617
+ jr as calculateAspectRatioFit,
613
618
  Ke as clamp,
614
- ta as cleanImageFileName,
615
- Ja as clearZeroDurationParts,
619
+ Jr as cleanImageFileName,
620
+ Za as clearZeroDurationParts,
616
621
  he as convertColor,
617
- ma as convertDataUnits,
618
- ha as convertDurationToMilliseconds,
619
- ga as convertPixelsToAspectRatio,
620
- ea as convertSrcToBlob,
621
- ra as cropImage,
622
+ ua as convertDataUnits,
623
+ ma as convertDurationToMilliseconds,
624
+ fa as convertPixelsToAspectRatio,
625
+ Kr as convertSrcToBlob,
626
+ ta as cropImage,
622
627
  cr as cssValueToPx,
623
628
  Oe as customElement,
624
629
  Ge as customErrorValidityState,
625
- Ye as debounce,
630
+ Ue as debounce,
626
631
  _e as defaultValue,
627
632
  et as downloadAsset,
628
633
  Pe as drag,
629
- Sa as emptyToSpace,
630
- Ea as escapeXML,
634
+ Ma as emptyToSpace,
635
+ xa as escapeXML,
631
636
  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,
637
+ ya as extractExtension,
638
+ St as extractFrames,
639
+ Ea as extractRootData,
640
+ ha as extractValueAndUnit,
641
+ la as extractWaveformPeaks,
642
+ Qr as fetchCortexApi,
638
643
  jt as findAncestorWithBuggyStyle,
639
644
  Jt as findContainingBlock,
640
645
  Kt as findCuttingAncestor,
641
- W as findFrameByColAndRow,
646
+ H as findFrameByColAndRow,
642
647
  _t as findIndexByProp,
643
- He as focusWhenVisible,
644
- U as formCollections,
645
- pa as formatAspectRatioString,
646
- Ka as formatDurationPartsManually,
647
- Ur as formatIsoToDisplay,
648
+ Xe as focusWhenVisible,
649
+ Y as formCollections,
650
+ ga as formatAspectRatioString,
651
+ ja as formatDurationPartsManually,
652
+ Yr as formatIsoToDisplay,
648
653
  _r as formatMonthYearLabel,
649
- Da as formatNumberWithGrouping,
650
- La as formatSecondsToTime,
651
- Fa as formatTimeToSeconds,
652
- ts as formatWithIntlDurationFormat,
653
- Ta as gcd,
654
+ da as formatNumberWithGrouping,
655
+ Aa as formatSecondsToTime,
656
+ Ia as formatTimeToSeconds,
657
+ Ja as formatWithIntlDurationFormat,
658
+ pa as gcd,
654
659
  ur as getActiveElement,
655
660
  rr as getActiveModals,
656
661
  $e as getAssociatedForm,
657
- fr as getAttributes,
658
- Ra as getAttributesString,
662
+ mr as getAttributes,
663
+ La as getAttributesString,
659
664
  Nt as getBreakpointsFromCSS,
660
665
  ct as getBrowserFontVariants,
661
666
  de as getColorType,
662
- aa as getContainedImageSize,
663
- mr as getCortexPopupLayer,
664
- y as getCurrentZIndex,
667
+ ea as getContainedImageSize,
668
+ fr as getCortexPopupLayer,
669
+ x as getCurrentZIndex,
665
670
  Nr as getDateMask,
666
- ye as getDeepestActiveElement,
671
+ xe as getDeepestActiveElement,
667
672
  Pt as getDeviceType,
668
- es as getDurationPartsByUnitsFormat,
673
+ Ka as getDurationPartsByUnitsFormat,
669
674
  hr as getElementFromHTMLString,
670
675
  gr as getElementFromTemplate,
671
676
  Pr as getFirstDayOfWeek,
672
677
  nt as getFontFamilyOptionValue,
673
678
  P as getFormControls,
674
- Qa as getHighlightedTitle,
675
- Za as getHighlightedTitleHtml,
676
- Sr as getInnerHTML,
679
+ za as getHighlightedTitle,
680
+ qa as getHighlightedTitleHtml,
681
+ yr as getInnerHTML,
677
682
  Ct as getInterval,
678
683
  pe as getLightDarkCssString,
679
- sa as getNaturalWidthHeight,
684
+ ra as getNaturalWidthHeight,
680
685
  dr as getNeededPaddingForBoxShadow,
681
686
  te as getNextAncestor,
682
687
  sr as getOffset,
683
688
  pr as getRelativeClickPercentage,
684
- ba as getRootIDString,
689
+ Ra as getRootIDString,
685
690
  Ir as getTabbableBoundary,
686
691
  Lr as getTabbableElements,
687
692
  Er as getTextContent,
688
- Xr as getTodayIsoDate,
693
+ Wr as getTodayIsoDate,
689
694
  ot as getTypefaceOptionValue,
690
- Xt as groupBy,
691
- Va as htmlToPlainText,
692
- Ht as insertAtIndex,
695
+ Wt as groupBy,
696
+ is as hasTransformSegment,
697
+ Fa as htmlToPlainText,
698
+ Xt as insertAtIndex,
693
699
  wt as insertFrameToCache,
694
- Wt as insertMultipleAtIndex,
700
+ Ht as insertMultipleAtIndex,
695
701
  ee as isChrome,
696
- Rr as isCortexAdobePlugin,
702
+ Fr as isCortexAdobePlugin,
697
703
  Dr as isDomElement,
698
704
  Tr as isElementInHorizontalView,
699
- Rt as isExpiredAssetUrl,
705
+ Ft as isExpiredAssetUrl,
700
706
  re as isFirefox,
701
707
  lt as isFontFamilyAvailable,
702
- ft as isFormInteracted,
703
- va as isGalleryItemCardType,
708
+ mt as isFormInteracted,
709
+ ba as isGalleryItemCardType,
704
710
  ae as isIOS,
705
711
  wr as isInElement,
706
712
  st as isModKey,
707
713
  se as isSafari,
708
- oa as isSaveSrcValid,
714
+ aa as isSaveSrcValid,
709
715
  bt as isValidDomainOrIntranetUrl,
710
- Hr as isValidIsoDate,
716
+ Xr as isValidIsoDate,
711
717
  Vt as isValidUrl,
712
- Wr as isoToDate,
718
+ Hr as isoToDate,
713
719
  Z as isoWeekNumber,
714
- Mr as loadScript,
720
+ Sr as loadScript,
715
721
  or as lockBodyScrolling,
716
722
  De as luminanceTextColor,
717
723
  Bt as moveMultipleToIndex,
@@ -722,8 +728,8 @@ export {
722
728
  j as openAssetOverview,
723
729
  J as openFolderOverview,
724
730
  K as openLink,
725
- Oa as padPath,
726
- ka as parseBooleanString,
731
+ Va as padPath,
732
+ va as parseBooleanString,
727
733
  Te as parseBorder,
728
734
  Gr as parseDisplayToIso,
729
735
  Ae as parseDuration,
@@ -731,53 +737,53 @@ export {
731
737
  dt as parseJsonString,
732
738
  we as parseLightDark,
733
739
  pt as parseListString,
734
- Me as parseShadow,
740
+ Se as parseShadow,
735
741
  gt as pick,
736
742
  oe as popoverSupported,
737
743
  Ie as prefersReducedMotion,
738
744
  tr as quantizeLargestRemainder,
739
745
  _ as quoteFontFamily,
740
746
  Dt as readLocalStorageValue,
741
- Ya as reducePathToDirectChild,
747
+ Oa as reducePathToDirectChild,
742
748
  je as registerTranslation,
743
- qt as removeAtIndex,
744
- zt as removeMultipleAtIndex,
745
- na as resizeImage,
749
+ zt as removeAtIndex,
750
+ qt as removeMultipleAtIndex,
751
+ sa as resizeImage,
746
752
  vt as resolveSpaceUrl,
747
- wa as rotateBox,
748
- ia as rotateImage,
749
- Ua as safeExtension,
750
- _a as safeString,
751
- Na as sanitizeHTML,
752
- Ma as sanitizeRotation,
753
+ Da as rotateBox,
754
+ oa as rotateImage,
755
+ ka as safeExtension,
756
+ Ua as safeString,
757
+ Ya as sanitizeHTML,
758
+ Ta as sanitizeRotation,
753
759
  nr as scrollIntoView,
754
760
  ut as serialize,
755
761
  tt as shareAsset,
756
762
  Le as shimKeyframesHeightAuto,
757
763
  Cr as sortByTopPosition,
758
764
  N as sortTypefaceVariants,
759
- xa as splitBoxValues,
760
- Pa as splitCamelCaseFormatted,
761
- Fe as stopAnimations,
765
+ Sa as splitBoxValues,
766
+ _a as splitCamelCaseFormatted,
767
+ Re as stopAnimations,
762
768
  ne as supportHLS,
763
769
  O as testFontAvailability,
764
770
  Ve as timecodeConverter,
765
- Xa as toCamelCase,
766
- qr as toIsoDate,
767
- Ha as toKebabCase,
771
+ Na as toCamelCase,
772
+ zr as toIsoDate,
773
+ Pa as toKebabCase,
768
774
  Wa as toPascalCase,
769
775
  Ot as toRelativeUrl,
770
- Ba as toTitleCase,
776
+ Xa as toTitleCase,
771
777
  kt as toUrlPathKey,
772
778
  Qt as toast,
773
- Ga as truncateTextMiddle,
774
- $a as unescapeXML,
779
+ Ha as truncateTextMiddle,
780
+ Ba as unescapeXML,
775
781
  ir as unlockBodyScrolling,
776
782
  it as unquoteFontFamily,
777
- qa as upperFirst,
778
- qe as validValidityState,
779
- ze as valueMissingValidityState,
780
- Re as waitForEvent,
783
+ Ga as upperFirst,
784
+ ze as validValidityState,
785
+ qe as valueMissingValidityState,
786
+ Fe as waitForEvent,
781
787
  Vr as watch,
782
788
  Tt as writeLocalStorageValue
783
789
  };