@orangelogic/design-system 2.228.0 → 2.229.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 (116) hide show
  1. package/library/chunks/{asset-link-format.DLYctI8Q.js → asset-link-format.C524ORni.js} +723 -701
  2. package/library/chunks/{button.CrhpoXK8.js → button.ByfW1n1P.js} +1 -1
  3. package/library/chunks/{color-swatch-group.DMpWk1pm.js → color-swatch-group.BsS_WSkX.js} +9 -9
  4. package/library/chunks/{color-swatch.CSsvAlq8.js → color-swatch.BMsBeGVi.js} +1 -1
  5. package/library/chunks/{confirm-popover.CrB-N3KV.js → confirm-popover.sVFj9zPi.js} +3 -3
  6. package/library/chunks/{dialog.DWa11p4j.js → dialog.C1GgF9kf.js} +2 -2
  7. package/library/chunks/{document-viewer.D5885amO.js → document-viewer.BYoPlykW.js} +6 -6
  8. package/library/chunks/{dot-pagination.ry5d0ZtQ.js → dot-pagination.yATbscYF.js} +1 -1
  9. package/library/chunks/{folder-select.BIXyzMCY.js → folder-select.BVvQo_lR.js} +4 -4
  10. package/library/chunks/{header.CIdqF9dY.js → header.BXuOKS0L.js} +1 -1
  11. package/library/chunks/{i18n.CXIpdSSZ.js → i18n.Dv4-j3re.js} +4 -3
  12. package/library/chunks/{icon-button.BBLy-yj3.js → icon-button.N5YNs1qg.js} +1 -1
  13. package/library/chunks/{iframe.FHGbVxm4.js → iframe.b-u-DyQ0.js} +1 -1
  14. package/library/chunks/{image.BYDGEbte.js → image.6LrV-0hE.js} +2 -2
  15. package/library/chunks/{input.B1JamaTE.js → input.ve6RUdJ5.js} +1 -1
  16. package/library/chunks/{markdown.DP1DqzwO.js → markdown.CpZAccJx.js} +2 -2
  17. package/library/chunks/{option.C3DgnL2F.js → option.C7dkuxVF.js} +1 -1
  18. package/library/chunks/{pagination.DSi4odS9.js → pagination.s4rK5EBT.js} +5 -5
  19. package/library/chunks/{tab-group.PQnc285p.js → tab-group.CvUu5LK3.js} +3 -3
  20. package/library/chunks/{toast.GT3J-T2_.js → toast.CR5tYYn3.js} +1 -1
  21. package/library/chunks/transformation.0cnXfwVJ.js +415 -0
  22. package/library/chunks/{tree.BS7eGCf0.js → tree.yJto6M6E.js} +1 -1
  23. package/library/chunks/url.qYS-uQJe.js +89 -0
  24. package/library/components/alert.js +2 -2
  25. package/library/components/asset-link-format.js +4 -4
  26. package/library/components/atoms.js +14 -14
  27. package/library/components/audio.js +9 -5
  28. package/library/components/border-input-group.js +2 -2
  29. package/library/components/breadcrumb.js +1 -1
  30. package/library/components/button.js +2 -2
  31. package/library/components/color-picker.js +3 -3
  32. package/library/components/color-swatch-group.js +5 -5
  33. package/library/components/color-swatch.js +2 -2
  34. package/library/components/confirm-popover.js +4 -4
  35. package/library/components/copy-button.js +1 -1
  36. package/library/components/corner-position-input-group.js +3 -3
  37. package/library/components/date-calendar.js +1 -1
  38. package/library/components/details.js +1 -1
  39. package/library/components/dialog.js +3 -3
  40. package/library/components/document-viewer.js +3 -3
  41. package/library/components/dot-pagination.js +2 -2
  42. package/library/components/drawer.js +2 -2
  43. package/library/components/dropdown.js +32 -23
  44. package/library/components/dynamic-select.js +4 -4
  45. package/library/components/e-chart.js +1 -1
  46. package/library/components/element-clamp.js +2 -2
  47. package/library/components/file-on-demand.js +10 -10
  48. package/library/components/folder-select.js +4 -4
  49. package/library/components/format-bytes.js +1 -1
  50. package/library/components/format-date.js +1 -1
  51. package/library/components/format-number.js +1 -1
  52. package/library/components/format-time.js +1 -1
  53. package/library/components/header.js +2 -2
  54. package/library/components/icon-button.js +2 -2
  55. package/library/components/iframe.js +2 -2
  56. package/library/components/image-comparer.js +1 -1
  57. package/library/components/image.js +3 -3
  58. package/library/components/input.js +2 -2
  59. package/library/components/line-clamp.js +1 -1
  60. package/library/components/markdown.js +3 -3
  61. package/library/components/masonry.js +2 -2
  62. package/library/components/menu-item.js +1 -1
  63. package/library/components/menu.js +1 -1
  64. package/library/components/molecules.js +3 -3
  65. package/library/components/option.js +2 -2
  66. package/library/components/organisms.js +2 -2
  67. package/library/components/padding-input-group.js +1 -1
  68. package/library/components/pagination.js +6 -6
  69. package/library/components/popup.js +1 -1
  70. package/library/components/position-picker.js +1 -1
  71. package/library/components/progress-bar.js +1 -1
  72. package/library/components/progress-ring.js +1 -1
  73. package/library/components/range.js +1 -1
  74. package/library/components/rating.js +1 -1
  75. package/library/components/relative-time.js +1 -1
  76. package/library/components/select.js +2 -2
  77. package/library/components/shadow-input-group.js +1 -1
  78. package/library/components/share-option-list.js +1 -1
  79. package/library/components/sidebar.js +1 -1
  80. package/library/components/size-input-group.js +3 -3
  81. package/library/components/spinner.js +1 -1
  82. package/library/components/split-panel.js +1 -1
  83. package/library/components/tab-group.js +4 -4
  84. package/library/components/tab.js +2 -2
  85. package/library/components/tag.js +2 -2
  86. package/library/components/tooltip.js +1 -1
  87. package/library/components/tree-item.js +2 -2
  88. package/library/components/tree.js +2 -2
  89. package/library/components/typeface.js +2 -2
  90. package/library/components/types.js +19792 -19635
  91. package/library/components/video.js +2 -2
  92. package/library/package.json +1 -1
  93. package/library/packages/atoms/src/components/audio/audio.d.ts +2 -0
  94. package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +6 -0
  95. package/library/packages/events/src/events.d.ts +0 -4
  96. package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +24 -0
  97. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +12 -5
  98. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +5 -4
  99. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +5 -0
  100. package/library/packages/organisms/src/content-builder/content-builder.d.ts +17 -1
  101. package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +9 -0
  102. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  103. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +27 -0
  104. package/library/packages/utils/src/asset-url-mode/asset-url-mode.d.ts +22 -0
  105. package/library/packages/utils/src/asset-url-mode/index.d.ts +1 -0
  106. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
  107. package/library/packages/utils/src/url/url.d.ts +7 -0
  108. package/library/react-web-component.d.ts +13 -1
  109. package/library/utils.js +214 -213
  110. package/package.json +1 -1
  111. package/library/chunks/transformation.Bjs3TBPd.js +0 -376
  112. package/library/chunks/url.CGdWC06g.js +0 -76
  113. package/library/packages/events/src/cx-image-src-resolved.d.ts +0 -9
  114. package/library/packages/events/src/cx-timeline-data-resolved.d.ts +0 -10
  115. package/library/packages/events/src/cx-video-src-resolved.d.ts +0 -8
  116. package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +0 -8
@@ -0,0 +1,415 @@
1
+ import { c as b } from "./capitalize.CIBKBL10.js";
2
+ import { C as x, T as C, U as N } from "./asset-link-format.ClaYu_v8.js";
3
+ import { P as E } from "./position-picker.DjnhxIKF.js";
4
+ import { i as L, r as M } from "./url.qYS-uQJe.js";
5
+ const G = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
6
+ function me(e, t, n, u = G) {
7
+ const c = new URL(u + "/" + e);
8
+ return Array.isArray(n) ? n.forEach((o) => {
9
+ o[1] && c.searchParams.append(o[0], o[1]);
10
+ }) : n && Object.keys(n).forEach((o) => {
11
+ n[o] && c.searchParams.append(o, n[o]);
12
+ }), fetch(c, t);
13
+ }
14
+ const _e = "space-default";
15
+ var K = /* @__PURE__ */ ((e) => (e.Desktop = "desktop", e.Mobile = "mobile", e.Tablet = "tablet", e))(K || {});
16
+ const X = {
17
+ canvasWidth: "",
18
+ height: "",
19
+ id: "desktop",
20
+ maxWidth: "",
21
+ name: b(
22
+ "desktop"
23
+ /* Desktop */
24
+ )
25
+ }, P = {
26
+ canvasWidth: "770px",
27
+ height: "",
28
+ id: "tablet",
29
+ maxWidth: "1280px",
30
+ name: b(
31
+ "tablet"
32
+ /* Tablet */
33
+ )
34
+ }, z = {
35
+ canvasWidth: "320px",
36
+ height: "",
37
+ id: "mobile",
38
+ maxWidth: "480px",
39
+ name: b(
40
+ "mobile"
41
+ /* Mobile */
42
+ )
43
+ }, Ae = [X, P, z];
44
+ var H = /* @__PURE__ */ ((e) => (e.All = "ALL", e.CanDelete = "CanDelete", e.CanDownload = "CanDownload", e.CanFind = "CanFind", e.CanManageRights = "CanManageRights", e.CanMove = "CanMove", e.CanRead = "CanRead", e.CanReadAll = "CanReadAll", e.CanReadAndWrite = "CanReadAndWrite", e.CanReadLarge = "CanReadLarge", e.CanReadMedium = "CanReadMedium", e.CanReadOriginal = "CanReadOriginal", e.CanShare = "CanShare", e.CanUpload = "CanUpload", e.CanWrite = "CanWrite", e.None = "NONE", e))(H || {}), Y = /* @__PURE__ */ ((e) => (e.All = "all", e.Audio = "audio", e.Image = "image", e.Other = "other", e.Video = "video", e))(Y || {}), V = /* @__PURE__ */ ((e) => (e.Content = "content", e.Template = "template", e))(V || {}), j = /* @__PURE__ */ ((e) => (e.Administrator = "Administrator", e.Designer = "Designer", e.Editor = "Editor", e))(j || {}), y = /* @__PURE__ */ ((e) => (e.Accordion = "BlockAccordion", e.Analytics = "BlockAnalytics", e.Audio = "BlockAudio", e.Button = "BlockButton", e.Carousel = "BlockCarousel", e.ColorSwatches = "BlockColorSwatches", e.Column = "BlockCell", e.ColumnGroup = "BlockColumns", e.DamView = "BlockDamView", e.Divider = "BlockDivider", e.DocumentViewer = "BlockDocumentViewer", e.FontKit = "BlockFontKit", e.Gallery = "BlockGallery", e.Header = "BlockHeader", e.Image = "BlockImage", e.RichText = "BlockRichText", e.SearchBox = "BlockSearchBox", e.TabGroup = "BlockTabs", e.Text = "BlockText", e.Timeline = "BlockTimeline", e.Video = "BlockVideo", e))(y || {});
45
+ const ge = Object.values(y).filter(
46
+ (e) => e !== "BlockCell"
47
+ /* Column */
48
+ );
49
+ var q = /* @__PURE__ */ ((e) => (e.Carousel = "carousel", e.Gallery = "gallery", e))(q || {}), Q = /* @__PURE__ */ ((e) => (e.Templates = "TEMPLATES", e.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", e.TranslatableTexts = "TRANSLATABLE_TEXTS", e))(Q || {});
50
+ const F = "__cxUseExpiringAssetUrls", S = "path_TR1", $ = "path_TRX";
51
+ function w(e) {
52
+ return e ?? globalThis;
53
+ }
54
+ function Z(e) {
55
+ return !!e && M(e) === null && !L(e);
56
+ }
57
+ function Re(e, t) {
58
+ return !e || L(e) ? !1 : t ? M(e) !== null : Z(e);
59
+ }
60
+ function Ce(e, t) {
61
+ w(t)[F] = e === !0;
62
+ }
63
+ function U(e) {
64
+ return w(e)[F] === !0;
65
+ }
66
+ function xe(e) {
67
+ return !U(e);
68
+ }
69
+ function Ee(e, t, n) {
70
+ if (n?.trim().toLowerCase().replace(/^\./, "") === "gif" && t && e[$])
71
+ return $;
72
+ if (e[S])
73
+ return S;
74
+ if (t && e[$])
75
+ return $;
76
+ }
77
+ const A = "/AssetLink/";
78
+ function k(e) {
79
+ return U() || M(e) !== null;
80
+ }
81
+ const J = {
82
+ [E.BottomCenter]: x.South,
83
+ [E.BottomLeft]: x.Southwest,
84
+ [E.BottomRight]: x.Southeast,
85
+ [E.CenterCenter]: x.Center,
86
+ [E.CenterLeft]: x.West,
87
+ [E.CenterRight]: x.East,
88
+ [E.TopCenter]: x.North,
89
+ [E.TopLeft]: x.Northwest,
90
+ [E.TopRight]: x.Northeast
91
+ }, _ = "/t/", ee = [400, 800, 1200, 1600, 2400], te = 0.15;
92
+ function ne({
93
+ asset: e,
94
+ baseUrl: t,
95
+ extension: n,
96
+ options: u,
97
+ parameters: c,
98
+ transformations: o,
99
+ useSession: h = ""
100
+ }) {
101
+ if (t == null)
102
+ return "";
103
+ let r = t;
104
+ const f = o?.findLast(
105
+ (l) => l.key === C.Quality
106
+ );
107
+ if (f && (o = [
108
+ ...o?.filter(
109
+ (l) => l.key !== C.Quality
110
+ ) || [],
111
+ f
112
+ ]), o) {
113
+ const l = [];
114
+ for (let i = 0; i < o.length; i++) {
115
+ const d = o[i];
116
+ if (d.key === C.Rotate) {
117
+ let a = d.value.rotation ?? 0;
118
+ for (; o[i + 1]?.key === C.Rotate; )
119
+ i++, a += o[i].value.rotation ?? 0;
120
+ a !== 0 && l.push({ key: C.Rotate, value: { rotation: a } });
121
+ } else
122
+ l.push(d);
123
+ }
124
+ o = l;
125
+ }
126
+ o && o.length > 0 && (r += "/t/"), o?.forEach(({ key: l, value: i }) => {
127
+ if (l === C.Resize) {
128
+ if (i.unit === N.AspectRatio && i.ratioWidth && i.ratioHeight) {
129
+ r += `re_ar_${i.ratioWidth}:${i.ratioHeight}/`;
130
+ return;
131
+ }
132
+ const d = [
133
+ ...[
134
+ {
135
+ key: "re_w_",
136
+ value: Math.round(i.width ?? 0)
137
+ },
138
+ {
139
+ key: "re_h_",
140
+ value: Math.round(i.height ?? 0)
141
+ }
142
+ ].filter((a) => a.value !== void 0).map((a) => ({
143
+ key: a.key,
144
+ value: Math.round(Number(a.value))
145
+ })),
146
+ {
147
+ key: "re_rm_",
148
+ value: "stretch"
149
+ }
150
+ ];
151
+ d.forEach(({ key: a, value: m }, g) => {
152
+ r += `${a}${m}${g < d.length - 1 ? "," : ""}`;
153
+ }), r += "/";
154
+ }
155
+ if (l === C.Crop) {
156
+ const d = i.unit === N.AspectRatio && !!i.ratioWidth && !!i.ratioHeight, a = !i.disabledSize && !d, m = a && (i.x !== void 0 || i.y !== void 0), g = [
157
+ ...[
158
+ {
159
+ key: "c_",
160
+ value: i.mode
161
+ },
162
+ ...d ? [
163
+ {
164
+ key: "ar_",
165
+ value: `${i.ratioWidth}:${i.ratioHeight}`
166
+ }
167
+ ] : [],
168
+ ...a ? [
169
+ {
170
+ key: "c_w_",
171
+ value: Math.round(i.width ?? 0)
172
+ },
173
+ {
174
+ key: "c_h_",
175
+ value: Math.round(i.height ?? 0)
176
+ },
177
+ {
178
+ key: "c_x_",
179
+ value: Math.round(i.x ?? 0) === 0 && u?.omitZeroXY ? void 0 : Math.round(i.x ?? 0)
180
+ },
181
+ {
182
+ key: "c_y_",
183
+ value: Math.round(i.y ?? 0) === 0 && u?.omitZeroXY ? void 0 : Math.round(i.y ?? 0)
184
+ }
185
+ ] : [],
186
+ ...!m && i.focusMode && i.focusMode !== "manual" ? [
187
+ {
188
+ key: i.isFocusModeAuto ? "acm_" : "c_g_",
189
+ value: i.focusMode
190
+ }
191
+ ] : [],
192
+ ...!m && i.focusMode === "manual" && i.position ? [
193
+ {
194
+ key: "c_g_",
195
+ value: J[i.position]
196
+ }
197
+ ] : []
198
+ ].filter((R) => R.value !== void 0 && R.value !== null).map((R) => ({
199
+ key: R.key,
200
+ value: R.value
201
+ })),
202
+ ...d ? [] : [
203
+ {
204
+ key: "c_whu_",
205
+ value: "pixel"
206
+ }
207
+ ]
208
+ ];
209
+ g.forEach(({ key: R, value: T }, v) => {
210
+ const D = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(R);
211
+ r += `${R}${D ? Math.round(Number(T)) : T}${v < g.length - 1 ? "," : ""}`;
212
+ }), r += "/";
213
+ }
214
+ if (l === C.Rotate && ([
215
+ {
216
+ key: "r_a_",
217
+ value: i.rotation
218
+ }
219
+ ].filter((a) => a.value !== void 0).map((a) => ({
220
+ key: a.key,
221
+ value: Math.round(Number(a.value))
222
+ })).forEach(({ key: a, value: m }) => {
223
+ r += `${a}${m}`;
224
+ }), r += "/"), l === C.Quality) {
225
+ const d = [
226
+ {
227
+ key: "q_level_",
228
+ value: i.quality
229
+ }
230
+ ].filter((a) => a.value !== void 0).map((a) => ({
231
+ key: a.key,
232
+ value: Math.round(Number(a.value))
233
+ }));
234
+ d.forEach(({ key: a, value: m }, g) => {
235
+ r += `${a}${m}${g < d.length - 1 ? "," : ""}`;
236
+ }), r += "/";
237
+ }
238
+ if (l === C.Metadata) {
239
+ const d = [
240
+ {
241
+ key: "fl_keep_metadata",
242
+ value: i.keepMetadata
243
+ }
244
+ ].filter((a) => a.value !== void 0).map((a) => ({ key: a.key, value: a.value }));
245
+ d.forEach(({ key: a }, m) => {
246
+ r += `${a}${m < d.length - 1 ? "," : ""}`;
247
+ }), r += "/";
248
+ }
249
+ }), n && (r += `${e?.identifier ?? crypto.randomUUID()}${n}`);
250
+ const s = [];
251
+ return c && c.length > 0 && c.forEach(({ key: l, value: i }) => {
252
+ s.push(
253
+ `${encodeURIComponent(l.trim())}=${encodeURIComponent(i.trim())}`
254
+ );
255
+ }), t && h && s.push(`UseSession=${encodeURIComponent(h)}`), s.length > 0 && (r += `?${s.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
256
+ }
257
+ const O = ".auto";
258
+ function ve(e, t, n = {}) {
259
+ const u = n.format === I && B(n.extension), c = !!n.autoFormat && !u;
260
+ if (!e || k(e) || !t?.length && !c)
261
+ return e;
262
+ const o = t?.length ? ne({ baseUrl: "", transformations: t }).replace(/\/t\//g, "") : "";
263
+ if (!o && !c)
264
+ return e;
265
+ const h = e.indexOf(A);
266
+ if (h < 0)
267
+ return o ? `${e}${_}${o}` : e;
268
+ const r = e.slice(0, h + A.length), f = e.slice(h + A.length);
269
+ if (!f)
270
+ return e;
271
+ const s = f.indexOf(_), l = s >= 0, i = f.indexOf("/"), d = l ? s : i, a = d >= 0 ? f.slice(0, d) : f, m = l ? f.slice(s + _.length) : i >= 0 ? f.slice(i + 1) : "", g = m.slice(m.lastIndexOf("/") + 1), R = g ? `${g.replace(/\.[^.]+$/, "")}${O}` : `${a.replace(/\.[^.]+$/, "")}${O}`, v = [o, c ? R : l ? "" : g].filter(
272
+ Boolean
273
+ );
274
+ return v.length === 0 ? e : `${r}${a}${_}${v.join("/")}`;
275
+ }
276
+ function ie(e) {
277
+ return `re_w_${Math.round(e)}`;
278
+ }
279
+ function oe(e, t) {
280
+ if (!e || k(e) || !Number.isFinite(t) || t <= 0)
281
+ return e;
282
+ const n = e.indexOf(A);
283
+ if (n < 0)
284
+ return e;
285
+ const u = ie(t), c = e.slice(0, n + A.length), o = e.slice(n + A.length), h = o.indexOf(_);
286
+ if (h >= 0) {
287
+ const f = o.slice(0, h), s = o.slice(
288
+ h + _.length
289
+ );
290
+ return `${c}${f}${_}${u}/${s}`;
291
+ }
292
+ const r = o.indexOf("/");
293
+ if (r >= 0) {
294
+ const f = o.slice(0, r), s = o.slice(r);
295
+ return `${c}${f}${_}${u}${s}`;
296
+ }
297
+ return `${c}${o}${_}${u}`;
298
+ }
299
+ function $e(e) {
300
+ const t = e.indexOf(A);
301
+ return t < 0 ? !1 : e.slice(t + A.length).includes(_);
302
+ }
303
+ function ae(e) {
304
+ const t = e.indexOf(A);
305
+ if (t < 0)
306
+ return !1;
307
+ const n = e.slice(t + A.length), u = n.indexOf(_);
308
+ return u < 0 ? !1 : n.slice(u + _.length).includes("/");
309
+ }
310
+ const I = "TRX", p = "TR1", re = /* @__PURE__ */ new Set([
311
+ "gif",
312
+ "svg"
313
+ ]);
314
+ function W(e) {
315
+ if (!e)
316
+ return "";
317
+ const t = e.trim().toLowerCase();
318
+ return t.startsWith(".") ? t.slice(1) : t;
319
+ }
320
+ function B(e) {
321
+ return W(e) === "gif";
322
+ }
323
+ const se = 1e3 * 1024 * 1024, ce = {
324
+ b: 1,
325
+ byte: 1,
326
+ bytes: 1,
327
+ gb: 1024 ** 3,
328
+ kb: 1024,
329
+ mb: 1024 ** 2,
330
+ tb: 1024 ** 4
331
+ };
332
+ function le(e) {
333
+ if (typeof e == "number")
334
+ return Number.isFinite(e) && e >= 0 ? e : void 0;
335
+ if (!e)
336
+ return;
337
+ const t = /^\s*([\d.,]+)\s*([a-z]*)\s*$/i.exec(e);
338
+ if (!t)
339
+ return;
340
+ const n = Number(t[1].replace(/,/g, ""));
341
+ if (!Number.isFinite(n) || n < 0)
342
+ return;
343
+ const u = t[2].toLowerCase();
344
+ if (!u)
345
+ return n;
346
+ const c = ce[u];
347
+ return c === void 0 ? void 0 : n * c;
348
+ }
349
+ function Te(e, t) {
350
+ if (e)
351
+ return;
352
+ const n = typeof t == "number" ? t : Number(t ?? "");
353
+ return Number.isFinite(n) && n > 0 ? n : void 0;
354
+ }
355
+ function be(e, t) {
356
+ if (!re.has(W(e)))
357
+ return p;
358
+ const n = le(t);
359
+ return n !== void 0 && n > se ? p : I;
360
+ }
361
+ function Me(e, t = {}) {
362
+ if (k(e) || !e.includes(A) || ae(e) || t.format === I && B(t.extension))
363
+ return "";
364
+ const { maxWidth: n, widths: u = ee } = t, c = [...u].filter((s) => Number.isFinite(s) && s > 0).sort((s, l) => s - l);
365
+ if (c.length === 0)
366
+ return "";
367
+ let o = c;
368
+ if (n !== void 0 && Number.isFinite(n) && n > 0) {
369
+ const s = c.filter((l) => l <= n);
370
+ o = s.length > 0 ? s : [c[0]];
371
+ }
372
+ const h = n !== void 0 && Number.isFinite(n) && n > 0, f = (h ? o.filter(
373
+ (s) => n > s * (1 + te)
374
+ ) : o).map(
375
+ (s) => `${oe(e, s)} ${s}w`
376
+ );
377
+ return h && f.push(`${e} ${n}w`), f.join(", ");
378
+ }
379
+ function ke(e, t = 100) {
380
+ return !Number.isFinite(e) || e <= 0 ? "" : `${Math.ceil(e / t) * t}px`;
381
+ }
382
+ export {
383
+ Y as A,
384
+ y as B,
385
+ K as D,
386
+ S as E,
387
+ H as P,
388
+ _e as S,
389
+ j as T,
390
+ ve as a,
391
+ Ee as b,
392
+ be as c,
393
+ Me as d,
394
+ Te as e,
395
+ ne as f,
396
+ me as g,
397
+ $ as h,
398
+ U as i,
399
+ ke as j,
400
+ V as k,
401
+ q as l,
402
+ Q as m,
403
+ ge as n,
404
+ Ae as o,
405
+ Re as p,
406
+ ee as q,
407
+ xe as r,
408
+ Ce as s,
409
+ O as t,
410
+ oe as u,
411
+ $e as v,
412
+ p as w,
413
+ se as x,
414
+ le as y
415
+ };
@@ -1,7 +1,7 @@
1
1
  import { C as F, n as l } from "./lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as O } from "./component.styles.CRO4Odto.js";
3
3
  import { c as U } from "./custom-element.L4WJXn1j.js";
4
- import { L as N } from "./i18n.CXIpdSSZ.js";
4
+ import { L as N } from "./i18n.Dv4-j3re.js";
5
5
  import { c as X } from "./math.DuKzLacZ.js";
6
6
  import { w as b } from "./watch.DJF5K-8U.js";
7
7
  import { i as R, x as m, E } from "./lit-element.jLBm65_O.js";
@@ -0,0 +1,89 @@
1
+ function f(t, e = globalThis.location.origin) {
2
+ if (t) {
3
+ try {
4
+ const a = new URL(t);
5
+ if (a.origin === e)
6
+ return a.pathname + a.search + a.hash || "/";
7
+ } catch {
8
+ }
9
+ return t;
10
+ }
11
+ }
12
+ function i(t) {
13
+ if (!t)
14
+ return "";
15
+ let e = t;
16
+ try {
17
+ e = new URL(t).pathname;
18
+ } catch {
19
+ e = t.split(/[?#]/)[0];
20
+ }
21
+ return e.replace(/\/+$/, "");
22
+ }
23
+ function R(t, e) {
24
+ if (!t)
25
+ return;
26
+ if (e.some((s) => s.absoluteURL === t))
27
+ return t;
28
+ const a = i(t);
29
+ if (!a)
30
+ return;
31
+ const n = e.filter(
32
+ (s) => i(s.absoluteURL) === a
33
+ ), [o] = n;
34
+ return o ? n.some(
35
+ (s) => s.absoluteURL !== o.absoluteURL
36
+ ) ? void 0 : o.absoluteURL : void 0;
37
+ }
38
+ function p(t, e = "https://", a = !1) {
39
+ return a && t.match(c) || t.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? t : `${e}${t}`;
40
+ }
41
+ function A(t, e, a) {
42
+ if (!t)
43
+ return t;
44
+ const n = t.indexOf("#"), o = n === -1 ? t : t.slice(0, n), r = n === -1 ? "" : t.slice(n), s = o.includes("?") ? "&" : "?";
45
+ return `${o}${s}${encodeURIComponent(e)}=${encodeURIComponent(a)}${r}`;
46
+ }
47
+ function _(t) {
48
+ if (!t)
49
+ return !1;
50
+ const e = d(t);
51
+ return e !== null ? Date.now() >= e * 1e3 : t.toLowerCase().includes("expire");
52
+ }
53
+ function d(t) {
54
+ if (!t)
55
+ return null;
56
+ const e = /[?&]assetTokenExp=(\d+)/i.exec(t);
57
+ if (!e)
58
+ return null;
59
+ const a = Number(e[1]);
60
+ return Number.isFinite(a) && a > 0 ? a : null;
61
+ }
62
+ function l(t) {
63
+ try {
64
+ return new URL(t), new RegExp(z, "i").test(t);
65
+ } catch {
66
+ return !1;
67
+ }
68
+ }
69
+ const c = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", z = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", u = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", h = "^((https?:\\/\\/)?[a-z\\d]([a-z\\d-]*[a-z\\d])*\\.[a-z\\d]([a-z\\d-]*[a-z\\d])*|(https?:\\/\\/)[a-z\\d]([a-z\\d-]*[a-z\\d])*)(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
70
+ function L(t) {
71
+ return new RegExp(u, "i").test(t) || new RegExp(h, "i").test(t);
72
+ }
73
+ const E = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
74
+ export {
75
+ c as R,
76
+ z as U,
77
+ A as a,
78
+ l as b,
79
+ p as c,
80
+ L as d,
81
+ R as e,
82
+ i as f,
83
+ u as g,
84
+ h,
85
+ _ as i,
86
+ E as j,
87
+ d as r,
88
+ f as t
89
+ };
@@ -2,7 +2,7 @@ import { n as s, C as x } from "../chunks/lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as b } from "../chunks/component.styles.CRO4Odto.js";
3
3
  import { s as u, a as p, w as m } from "../chunks/event.BeKOsirN.js";
4
4
  import { c as y } from "../chunks/custom-element.L4WJXn1j.js";
5
- import { L as C } from "../chunks/i18n.CXIpdSSZ.js";
5
+ import { L as C } from "../chunks/i18n.Dv4-j3re.js";
6
6
  import { H as T } from "../chunks/slot.j5oheLJC.js";
7
7
  import { w } from "../chunks/watch.DJF5K-8U.js";
8
8
  import { i as I, x as h } from "../chunks/lit-element.jLBm65_O.js";
@@ -10,7 +10,7 @@ import { r as A } from "../chunks/state.CSDxrqLd.js";
10
10
  import { e as g } from "../chunks/query.BBf1UFkC.js";
11
11
  import { e as v } from "../chunks/class-map.BiVq-cVR.js";
12
12
  import { s as _, g as f } from "../chunks/animation-registry.HmpwNuGH.js";
13
- import { C as H } from "../chunks/icon-button.BBLy-yj3.js";
13
+ import { C as H } from "../chunks/icon-button.N5YNs1qg.js";
14
14
  const k = I`:host{margin:0;display:contents}.alert{background-color:var(--cx-panel-background-color);border:solid var(--cx-panel-border-width) var(--cx-panel-border-color);border-top-width:calc(var(--cx-panel-border-width) * 3);border-radius:var(--cx-border-radius-small);font-family:var(--cx-font-sans);font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-regular);color:var(--cx-color-neutral-700);margin:inherit;align-items:stretch;line-height:1.6;display:flex;position:relative;overflow:hidden}.alert:not(.alert--has-icon) .alert__icon,.alert:not(.alert--closable) .alert__close-button{display:none}.alert__icon{font-size:var(--cx-font-size-large);flex:none;align-items:center;padding-inline-start:var(--cx-spacing-large);display:flex}.alert--has-countdown{border-bottom:none}.alert--primary{border-top-color:var(--cx-color-primary)}.alert--primary .alert__icon{color:var(--cx-color-primary)}.alert--success{border-top-color:var(--cx-color-success)}.alert--success .alert__icon{color:var(--cx-color-success)}.alert--neutral{border-top-color:var(--cx-color-neutral)}.alert--neutral .alert__icon{color:var(--cx-color-neutral)}.alert--warning{border-top-color:var(--cx-color-warning)}.alert--warning .alert__icon{color:var(--cx-color-warning)}.alert--danger{border-top-color:var(--cx-color-danger)}.alert--danger .alert__icon{color:var(--cx-color-danger)}.alert__message{padding:var(--cx-spacing-large);flex:auto;display:block;overflow:hidden}.alert__close-button{font-size:var(--cx-font-size-medium);flex:none;align-items:center;padding-inline-end:var(--cx-spacing-medium);display:flex}.alert__countdown{width:100%;height:calc(var(--cx-panel-border-width) * 3);background-color:var(--cx-panel-border-color);display:flex;position:absolute;bottom:0;left:0}.alert__countdown--ltr{justify-content:flex-end}.alert__countdown .alert__countdown-elapsed{width:0;height:100%}.alert--primary .alert__countdown-elapsed{background-color:var(--cx-color-primary)}.alert--success .alert__countdown-elapsed{background-color:var(--cx-color-success)}.alert--neutral .alert__countdown-elapsed{background-color:var(--cx-color-neutral-600)}.alert--warning .alert__countdown-elapsed{background-color:var(--cx-color-warning)}.alert--danger .alert__countdown-elapsed{background-color:var(--cx-color-danger)}.alert__timer{display:none}`;
15
15
  var z = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, t = (r, o, n, l) => {
16
16
  for (var a = l > 1 ? void 0 : l ? $(o, n) : o, c = r.length - 1, d; c >= 0; c--)
@@ -1,17 +1,17 @@
1
1
  import "./cropper.js";
2
- import "../chunks/button.CrhpoXK8.js";
2
+ import "../chunks/button.ByfW1n1P.js";
3
3
  import "./space.js";
4
4
  import "../chunks/typography.IqHbnd3C.js";
5
5
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
6
- import { C as h } from "../chunks/asset-link-format.DLYctI8Q.js";
6
+ import { C as h } from "../chunks/asset-link-format.C524ORni.js";
7
7
  import "../chunks/component.styles.CRO4Odto.js";
8
8
  import "../chunks/asset-link-format.ClaYu_v8.js";
9
9
  import "../chunks/position-picker.DjnhxIKF.js";
10
10
  import "../chunks/custom-element.L4WJXn1j.js";
11
- import "../chunks/i18n.CXIpdSSZ.js";
11
+ import "../chunks/i18n.Dv4-j3re.js";
12
12
  import "../chunks/watch.DJF5K-8U.js";
13
13
  import "../chunks/number.Cx2ncfJJ.js";
14
- import "../chunks/transformation.Bjs3TBPd.js";
14
+ import "../chunks/transformation.0cnXfwVJ.js";
15
15
  import "../chunks/lit-element.jLBm65_O.js";
16
16
  import "../chunks/state.CSDxrqLd.js";
17
17
  import "../chunks/when.Dr1es41R.js";
@@ -9,7 +9,7 @@ import { default as h } from "./avatar.js";
9
9
  import { default as P } from "./badge.js";
10
10
  import { default as M } from "./breadcrumb.js";
11
11
  import { default as F } from "./breadcrumb-item.js";
12
- import { C as O } from "../chunks/button.CrhpoXK8.js";
12
+ import { C as O } from "../chunks/button.ByfW1n1P.js";
13
13
  import { default as E } from "./button-group.js";
14
14
  import { default as L } from "./card.js";
15
15
  import { default as j } from "./checkbox.js";
@@ -18,10 +18,10 @@ import { default as q } from "./copy-button.js";
18
18
  import { default as K } from "./date-calendar.js";
19
19
  import { default as W } from "./details.js";
20
20
  import { default as Y } from "./diff.js";
21
- import { C as _ } from "../chunks/dialog.DWa11p4j.js";
21
+ import { C as _ } from "../chunks/dialog.C1GgF9kf.js";
22
22
  import { default as oe } from "./divider.js";
23
- import { C as ae } from "../chunks/document-viewer.D5885amO.js";
24
- import { C as xe } from "../chunks/dot-pagination.ry5d0ZtQ.js";
23
+ import { C as ae } from "../chunks/document-viewer.BYoPlykW.js";
24
+ import { C as xe } from "../chunks/dot-pagination.yATbscYF.js";
25
25
  import { default as me } from "./dot-status.js";
26
26
  import { default as pe } from "./drawer.js";
27
27
  import { default as ue } from "./dropdown.js";
@@ -33,26 +33,26 @@ import { default as Se } from "./format-number.js";
33
33
  import { default as De } from "./format-time.js";
34
34
  import { default as we } from "./grid.js";
35
35
  import { default as he } from "./grid-item.js";
36
- import { C as Pe } from "../chunks/header.CIdqF9dY.js";
36
+ import { C as Pe } from "../chunks/header.BXuOKS0L.js";
37
37
  import { C as Me } from "../chunks/hub-connection.BtevPWYb.js";
38
38
  import { f } from "../chunks/icon.CpHbi8tH.js";
39
39
  import { C as Fe } from "../chunks/icon.CpHbi8tH.js";
40
- import { C as Oe } from "../chunks/icon-button.BBLy-yj3.js";
41
- import { C as Ee } from "../chunks/iframe.FHGbVxm4.js";
42
- import { C as Le } from "../chunks/image.BYDGEbte.js";
40
+ import { C as Oe } from "../chunks/icon-button.N5YNs1qg.js";
41
+ import { C as Ee } from "../chunks/iframe.b-u-DyQ0.js";
42
+ import { C as Le } from "../chunks/image.6LrV-0hE.js";
43
43
  import { default as je } from "./image-comparer.js";
44
44
  import { default as Qe } from "./include.js";
45
- import { C as qe } from "../chunks/input.B1JamaTE.js";
45
+ import { C as qe } from "../chunks/input.ve6RUdJ5.js";
46
46
  import { default as Ke } from "./input-group.js";
47
47
  import { default as We } from "./line-clamp.js";
48
- import { C as Ye } from "../chunks/markdown.DP1DqzwO.js";
48
+ import { C as Ye } from "../chunks/markdown.CpZAccJx.js";
49
49
  import { default as _e } from "./menu.js";
50
50
  import { default as oo } from "./menu-item.js";
51
51
  import { default as ao } from "./menu-label.js";
52
52
  import { default as xo } from "./menu-section.js";
53
53
  import { default as mo } from "./mutation-observer.js";
54
- import { C as po } from "../chunks/option.C3DgnL2F.js";
55
- import { C as uo } from "../chunks/pagination.DSi4odS9.js";
54
+ import { C as po } from "../chunks/option.C7dkuxVF.js";
55
+ import { C as uo } from "../chunks/pagination.s4rK5EBT.js";
56
56
  import { default as no } from "./popup.js";
57
57
  import { default as co } from "./progress-bar.js";
58
58
  import { default as bo } from "./progress-ring.js";
@@ -74,13 +74,13 @@ import { default as Uo } from "./step.js";
74
74
  import { default as Xo } from "./stepper.js";
75
75
  import { default as Zo } from "./switch.js";
76
76
  import { default as et } from "./tab.js";
77
- import { C as tt } from "../chunks/tab-group.PQnc285p.js";
77
+ import { C as tt } from "../chunks/tab-group.CvUu5LK3.js";
78
78
  import { default as rt } from "./tab-panel.js";
79
79
  import { default as ft } from "./tag.js";
80
80
  import { default as st } from "./textarea.js";
81
81
  import { default as Ct } from "./timecode.js";
82
82
  import { default as lt } from "./tooltip.js";
83
- import { a as nt, C as it } from "../chunks/tree.BS7eGCf0.js";
83
+ import { a as nt, C as it } from "../chunks/tree.yJto6M6E.js";
84
84
  import { C as gt } from "../chunks/typography.IqHbnd3C.js";
85
85
  import { default as At } from "./video.js";
86
86
  import { default as St } from "./visually-hidden.js";