@orangelogic/design-system 2.62.0 → 2.63.0-pr81192.7

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.
@@ -5,12 +5,12 @@ import { n as d, C as H } from "./lib-cortex-element.CVMmyPMC.js";
5
5
  import { c as tt } from "./component.styles.DMSLciL5.js";
6
6
  import { c as W } from "./custom-element.L4WJXn1j.js";
7
7
  import { L as q } from "./i18n.BMRLOAZR.js";
8
- import { k as Dt, a as bt, i as $t, w as P, S as Tt, b as Pt, c as zt, d as Et, e as Ft, f as Lt } from "./watch.q1sEjPWL.js";
8
+ import { k as Dt, a as bt, i as $t, w as P, S as Tt, b as Pt, c as zt, d as Et, e as Lt, f as Ft } from "./watch.q1sEjPWL.js";
9
9
  import { p as R } from "./string.Cp_XNbnV.js";
10
- import { x as n, i as at, E as Ut } from "./lit-element.jLBm65_O.js";
10
+ import { x as o, i as at, E as Ut } from "./lit-element.jLBm65_O.js";
11
11
  import { r as u } from "./state.CSDxrqLd.js";
12
12
  import { e as z } from "./query.BBf1UFkC.js";
13
- import { e as A } from "./class-map.BiVq-cVR.js";
13
+ import { e as C } from "./class-map.BiVq-cVR.js";
14
14
  import { c as U } from "./repeat.DbF2p5ae.js";
15
15
  import { n as p } from "./when.Dr1es41R.js";
16
16
  import { a as Rt, c as kt, b as dt } from "./_baseUniq.Df-fLIBx.js";
@@ -19,10 +19,10 @@ import { C as Nt } from "./button.SoX-7UYy.js";
19
19
  import { C as jt } from "./dialog.eN3RUbwx.js";
20
20
  import Bt from "../components/divider.js";
21
21
  import ot from "../components/format-bytes.js";
22
- import St from "../components/icon-button.js";
22
+ import It from "../components/icon-button.js";
23
23
  import Mt from "../components/input.js";
24
24
  import { C as Vt } from "./option.Ce_wlnZj.js";
25
- import It from "../components/relative-time.js";
25
+ import St from "../components/relative-time.js";
26
26
  import Ht from "../components/select.js";
27
27
  import Wt from "../components/space.js";
28
28
  import qt from "../components/tab.js";
@@ -42,7 +42,7 @@ import ee from "../components/spinner.js";
42
42
  import { o as se } from "./style-map.llVFPd__.js";
43
43
  import { r as ie } from "./choose.BTbF6BAn.js";
44
44
  function ae(t, e, i, a) {
45
- for (var s = -1, o = t == null ? 0 : t.length; ++s < o; ) {
45
+ for (var s = -1, n = t == null ? 0 : t.length; ++s < n; ) {
46
46
  var l = t[s];
47
47
  e(a, l, i(l), t);
48
48
  }
@@ -50,9 +50,9 @@ function ae(t, e, i, a) {
50
50
  }
51
51
  function oe(t) {
52
52
  return function(e, i, a) {
53
- for (var s = -1, o = Object(e), l = a(e), h = l.length; h--; ) {
53
+ for (var s = -1, n = Object(e), l = a(e), h = l.length; h--; ) {
54
54
  var _ = l[++s];
55
- if (i(o[_], _, o) === !1)
55
+ if (i(n[_], _, n) === !1)
56
56
  break;
57
57
  }
58
58
  return e;
@@ -68,21 +68,21 @@ function ce(t, e) {
68
68
  return i;
69
69
  if (!bt(i))
70
70
  return t(i, a);
71
- for (var s = i.length, o = -1, l = Object(i); ++o < s && a(l[o], o, l) !== !1; )
71
+ for (var s = i.length, n = -1, l = Object(i); ++n < s && a(l[n], n, l) !== !1; )
72
72
  ;
73
73
  return i;
74
74
  };
75
75
  }
76
76
  var le = ce(re);
77
77
  function de(t, e, i, a) {
78
- return le(t, function(s, o, l) {
78
+ return le(t, function(s, n, l) {
79
79
  e(a, s, i(s), l);
80
80
  }), a;
81
81
  }
82
82
  function he(t, e) {
83
83
  return function(i, a) {
84
- var s = $t(i) ? ae : de, o = e ? e() : {};
85
- return s(i, t, Rt(a), o);
84
+ var s = $t(i) ? ae : de, n = e ? e() : {};
85
+ return s(i, t, Rt(a), n);
86
86
  };
87
87
  }
88
88
  var pe = he(function(t, e, i) {
@@ -101,7 +101,7 @@ const ue = {
101
101
  UPLOADS: "uploads"
102
102
  }, X = 20, ge = {
103
103
  GET_CONTENT: "/webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1"
104
- }, C = {
104
+ }, A = {
105
105
  ASSET_PATH: "Document.AssetPath",
106
106
  CHILD_COUNT: "Document.ChildCount",
107
107
  CORTEX_PATH: "Document.CortexPath",
@@ -120,7 +120,7 @@ const ue = {
120
120
  e.getDate() + 1
121
121
  ).getTime();
122
122
  return pe(
123
- t.toSorted((s, o) => o.uploadTimestamp - s.uploadTimestamp),
123
+ t.toSorted((s, n) => n.uploadTimestamp - s.uploadTimestamp),
124
124
  (s) => s.uploadTimestamp >= i && s.uploadTimestamp < a
125
125
  );
126
126
  }, me = ({
@@ -130,7 +130,7 @@ const ue = {
130
130
  let i = "";
131
131
  e?.trim() && (i = `Story_Title:${e}`);
132
132
  let a = "";
133
- t?.length && (a = t.map((o) => `RecordID:NOT ${o}`).join(" AND "));
133
+ t?.length && (a = t.map((n) => `RecordID:NOT ${n}`).join(" AND "));
134
134
  let s = i ? ` AND (${[i].filter(Boolean).join(" OR ")})` : "";
135
135
  return a && (s = `${s} AND (${a})`), `(MediaType:Story OR MediaType:Album)${s}`;
136
136
  }, _e = 10, Ct = async ({
@@ -139,7 +139,7 @@ const ue = {
139
139
  folderPath: i = [],
140
140
  folderPathsSet: a,
141
141
  limit: s = _e,
142
- searchText: o,
142
+ searchText: n,
143
143
  seeThru: l,
144
144
  siteUrl: h,
145
145
  start: _ = 0,
@@ -149,31 +149,31 @@ const ue = {
149
149
  return { data: [], totalCount: 0 };
150
150
  let g = h;
151
151
  g.endsWith("/") && (g = g.slice(0, -1));
152
- const b = ge.GET_CONTENT, f = [
152
+ const $ = ge.GET_CONTENT, f = [
153
153
  ["Token", m],
154
154
  [
155
155
  "extraFilters",
156
156
  me({
157
157
  excludesRecordIDs: t,
158
- searchText: o
158
+ searchText: n
159
159
  })
160
160
  ],
161
- ["fields", C.ASSET_PATH],
162
- ["fields", C.CORTEX_PATH],
163
- ["fields", C.DOC_TYPE],
164
- ["fields", C.TITLE_WITH_FALLBACK],
165
- ["fields", C.HAS_BROWSER_CHILDREN],
166
- ["fields", C.PARENT_FOLDER_IDENTIFIER],
167
- ["fields", C.CHILD_COUNT],
161
+ ["fields", A.ASSET_PATH],
162
+ ["fields", A.CORTEX_PATH],
163
+ ["fields", A.DOC_TYPE],
164
+ ["fields", A.TITLE_WITH_FALLBACK],
165
+ ["fields", A.HAS_BROWSER_CHILDREN],
166
+ ["fields", A.PARENT_FOLDER_IDENTIFIER],
167
+ ["fields", A.CHILD_COUNT],
168
168
  ["objectRecordID", e],
169
- ["seeThru", o?.trim() || l ? "true" : "false"],
169
+ ["seeThru", n?.trim() || l ? "true" : "false"],
170
170
  ["limit", s.toString()],
171
171
  ["start", _.toString()]
172
- ], L = new URL(`${g}${b}`);
172
+ ], F = new URL(`${g}${$}`);
173
173
  f.forEach(([w, E]) => {
174
- L.searchParams.append(w, E);
174
+ F.searchParams.append(w, E);
175
175
  });
176
- const k = await fetch(L.toString(), {
176
+ const k = await fetch(F.toString(), {
177
177
  headers: {
178
178
  Authorization: `Bearer ${m}`
179
179
  },
@@ -189,11 +189,11 @@ const ue = {
189
189
  const rt = G.contentItems?.map((w) => {
190
190
  let E = M(
191
191
  w.fields,
192
- C.TITLE_WITH_FALLBACK
192
+ A.TITLE_WITH_FALLBACK
193
193
  ) ?? "", B = ve(
194
194
  (M(
195
195
  w.fields,
196
- C.ASSET_PATH
196
+ A.ASSET_PATH
197
197
  ) ?? "").replace(/^Root\//i, "")
198
198
  ) || E;
199
199
  if (a) {
@@ -201,29 +201,29 @@ const ue = {
201
201
  const ct = B.split("/"), At = ct.pop();
202
202
  B = `${ct.join("/")}/${w.recordID}-${At}`, E = `${w.recordID}-${E}`;
203
203
  }
204
- o?.trim() && Y.has(E) && (E = B), a.add(B), Y.add(E);
204
+ n?.trim() && Y.has(E) && (E = B), a.add(B), Y.add(E);
205
205
  }
206
206
  return {
207
207
  childCount: Number(
208
208
  M(
209
209
  w.fields,
210
- C.CHILD_COUNT
210
+ A.CHILD_COUNT
211
211
  ) ?? 0
212
212
  ),
213
213
  children: [],
214
214
  docType: M(
215
215
  w.fields,
216
- C.DOC_TYPE
216
+ A.DOC_TYPE
217
217
  ) ?? "",
218
218
  fullPath: B,
219
219
  hasChildren: M(
220
220
  w.fields,
221
- C.HAS_BROWSER_CHILDREN
221
+ A.HAS_BROWSER_CHILDREN
222
222
  ) === "1",
223
223
  id: w.recordID,
224
224
  parentFolderIdentifier: M(
225
225
  w.fields,
226
- C.PARENT_FOLDER_IDENTIFIER
226
+ A.PARENT_FOLDER_IDENTIFIER
227
227
  ) ?? "",
228
228
  parents: [],
229
229
  path: [...i, E],
@@ -238,7 +238,7 @@ function M(t, e) {
238
238
  );
239
239
  return a ? t[a] : void 0;
240
240
  }
241
- const it = "-", S = (t) => {
241
+ const it = "-", I = (t) => {
242
242
  const e = t.split(it), i = e.pop() ?? "", a = e.join(it);
243
243
  return { id: i, path: a };
244
244
  }, N = ({ id: t, path: e }) => [e, t].join(it), fe = (t) => {
@@ -265,12 +265,12 @@ const it = "-", S = (t) => {
265
265
  function mt(t) {
266
266
  return t.toSorted((e, i) => i.uploadTimestamp - e.uploadTimestamp);
267
267
  }
268
- var $e = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, D = (t, e, i, a) => {
269
- for (var s = a > 1 ? void 0 : a ? Se(e, i) : e, o = t.length - 1, l; o >= 0; o--)
270
- (l = t[o]) && (s = (a ? l(e, i, s) : l(s)) || s);
268
+ var $e = Object.defineProperty, Ie = Object.getOwnPropertyDescriptor, D = (t, e, i, a) => {
269
+ for (var s = a > 1 ? void 0 : a ? Ie(e, i) : e, n = t.length - 1, l; n >= 0; n--)
270
+ (l = t[n]) && (s = (a ? l(e, i, s) : l(s)) || s);
271
271
  return a && s && $e(e, i, s), s;
272
272
  };
273
- let v = class extends H {
273
+ let y = class extends H {
274
274
  constructor() {
275
275
  super(...arguments), this.localize = new q(this), this.role = "treeitem", this.siteUrl = "", this.token = "", this.searchText = "", this.folder = null, this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.folderPathsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.data = null, this.totalCount = 0, this.isLoading = !1, this.fetchFolders = async ({
276
276
  folderId: t,
@@ -301,8 +301,8 @@ let v = class extends H {
301
301
  });
302
302
  if (this.data = e, this.totalCount = i, await this.updateComplete, !this.treeItem.selected && !this.treeItem.indeterminate) {
303
303
  let a = !0, s = !0;
304
- for (const o of this.treeItem.getChildrenItems())
305
- o.selected ? (vt(o, !0, "multiple"), s = !1) : a = !1;
304
+ for (const n of this.treeItem.getChildrenItems())
305
+ n.selected ? (vt(n, !0, "multiple"), s = !1) : a = !1;
306
306
  this.treeItem.indeterminate = !a && !s;
307
307
  }
308
308
  };
@@ -336,24 +336,24 @@ let v = class extends H {
336
336
  if (await this.updateComplete, !this.treeItem)
337
337
  return;
338
338
  let t = !1;
339
- const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = xt(this.folder?.path ?? [], this.folder?.fullPath ?? ""), s = [...this.currentRootIDsSet], o = (m, g) => {
340
- m.forEach((b) => {
341
- const f = S(b);
339
+ const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = xt(this.folder?.path ?? [], this.folder?.fullPath ?? ""), s = [...this.currentRootIDsSet], n = (m, g) => {
340
+ m.forEach(($) => {
341
+ const f = I($);
342
342
  if (!f.path.trim() || !f.id.trim())
343
343
  return !1;
344
- const L = R(f.path), k = R(a);
345
- a && L.startsWith(k) && L !== k && g.add(be(f.path, a));
344
+ const F = R(f.path), k = R(a);
345
+ a && F.startsWith(k) && F !== k && g.add(be(f.path, a));
346
346
  });
347
347
  };
348
- o(this.removedIDs, i), o(s, e);
348
+ n(this.removedIDs, i), n(s, e);
349
349
  let l = !!s.some((m) => {
350
- const g = S(m);
350
+ const g = I(m);
351
351
  if (!g.path.trim() || !g.id.trim())
352
352
  return !1;
353
- const b = N({
353
+ const $ = N({
354
354
  id: this.folder?.id ?? "",
355
355
  path: a
356
- }), f = R(g.path), L = R(a), k = g.id === this.folder?.id, G = !this.removedIDs.includes(b) && L.startsWith(f);
356
+ }), f = R(g.path), F = R(a), k = g.id === this.folder?.id, G = !this.removedIDs.includes($) && F.startsWith(f);
357
357
  return k || G;
358
358
  });
359
359
  const h = this.folder?.childCount && e.size === this.folder?.childCount;
@@ -365,7 +365,7 @@ let v = class extends H {
365
365
  })
366
366
  );
367
367
  const m = this.parentElement?.parentElement;
368
- m && m instanceof v && m.syncBoxes(), l = !1;
368
+ m && m instanceof y && m.syncBoxes(), l = !1;
369
369
  } else if (!l)
370
370
  if (h) {
371
371
  this.currentRootIDsSet.add(
@@ -375,16 +375,16 @@ let v = class extends H {
375
375
  })
376
376
  );
377
377
  const m = this.parentElement?.parentElement;
378
- m && m instanceof v && m.syncBoxes(), l = !0;
378
+ m && m instanceof y && m.syncBoxes(), l = !0;
379
379
  } else e.size > 0 && (t = !0);
380
380
  l ? (t = i.size > 0, this.treeItem.selected = !0) : (t = e.size > 0, this.treeItem.selected = !1, await this.treeItem.updateComplete), t ? (this.treeItem.selected = !1, await this.treeItem.updateComplete, this.treeItem.indeterminate = !0) : this.treeItem.indeterminate = !1;
381
381
  }
382
382
  render() {
383
383
  const t = xt(this.folder?.path ?? [], this.folder?.fullPath ?? "");
384
- return n`
384
+ return o`
385
385
  <cx-tree-item
386
386
  aria-label=${this.folder?.title ?? ""}
387
- class=${A({
387
+ class=${C({
388
388
  "folder-tree__item": !0,
389
389
  selectable: !0
390
390
  })}
@@ -402,7 +402,7 @@ let v = class extends H {
402
402
  ${U(
403
403
  this.data ?? [],
404
404
  (e) => e.id,
405
- (e) => n`<cx-folder-item
405
+ (e) => o`<cx-folder-item
406
406
  slot="children"
407
407
  .folder=${e}
408
408
  .siteUrl=${this.siteUrl}
@@ -414,7 +414,7 @@ let v = class extends H {
414
414
  )}
415
415
  ${p(
416
416
  this.data && this.data.length < this.totalCount,
417
- () => n`
417
+ () => o`
418
418
  <div slot="children" class="load-more-button">
419
419
  <cx-button
420
420
  data-testid="load-more-button"
@@ -431,40 +431,40 @@ let v = class extends H {
431
431
  `;
432
432
  }
433
433
  };
434
- v.styles = [tt];
435
- v.dependencies = {
434
+ y.styles = [tt];
435
+ y.dependencies = {
436
436
  "cx-icon": J,
437
437
  "cx-line-clamp": Q,
438
438
  "cx-tree-item": ft
439
439
  };
440
440
  D([
441
441
  z("cx-tree-item")
442
- ], v.prototype, "treeItem", 2);
442
+ ], y.prototype, "treeItem", 2);
443
443
  D([
444
444
  d({
445
445
  attribute: "site-url",
446
446
  reflect: !0,
447
447
  type: String
448
448
  })
449
- ], v.prototype, "siteUrl", 2);
449
+ ], y.prototype, "siteUrl", 2);
450
450
  D([
451
451
  d({ reflect: !0, type: String })
452
- ], v.prototype, "token", 2);
452
+ ], y.prototype, "token", 2);
453
453
  D([
454
454
  d({ attribute: "search-text", reflect: !0, type: String })
455
- ], v.prototype, "searchText", 2);
455
+ ], y.prototype, "searchText", 2);
456
456
  D([
457
457
  d({ type: Object })
458
- ], v.prototype, "folder", 2);
458
+ ], y.prototype, "folder", 2);
459
459
  D([
460
460
  d({
461
461
  attribute: "current-root-ids-set",
462
462
  type: Object
463
463
  })
464
- ], v.prototype, "currentRootIDsSet", 2);
464
+ ], y.prototype, "currentRootIDsSet", 2);
465
465
  D([
466
466
  d({ attribute: "folder-paths-set", type: Object })
467
- ], v.prototype, "folderPathsSet", 2);
467
+ ], y.prototype, "folderPathsSet", 2);
468
468
  D([
469
469
  d({
470
470
  attribute: "removed-ids",
@@ -474,23 +474,23 @@ D([
474
474
  },
475
475
  type: String
476
476
  })
477
- ], v.prototype, "removedIDs", 2);
477
+ ], y.prototype, "removedIDs", 2);
478
478
  D([
479
479
  u()
480
- ], v.prototype, "data", 2);
480
+ ], y.prototype, "data", 2);
481
481
  D([
482
482
  u()
483
- ], v.prototype, "totalCount", 2);
483
+ ], y.prototype, "totalCount", 2);
484
484
  D([
485
485
  u()
486
- ], v.prototype, "isLoading", 2);
486
+ ], y.prototype, "isLoading", 2);
487
487
  D([
488
488
  P(["currentRootIDsSet", "removedIDs"])
489
- ], v.prototype, "syncBoxes", 1);
490
- v = D([
489
+ ], y.prototype, "syncBoxes", 1);
490
+ y = D([
491
491
  W("cx-folder-item")
492
- ], v);
493
- const Ie = at`
492
+ ], y);
493
+ const Se = at`
494
494
  .folder-tree {
495
495
  overflow: auto;
496
496
  flex: 1;
@@ -545,15 +545,15 @@ const Ie = at`
545
545
  line-height: var(--cx-line-height-small);
546
546
  }
547
547
  `;
548
- var we = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, I = (t, e, i, a) => {
549
- for (var s = a > 1 ? void 0 : a ? Ce(e, i) : e, o = t.length - 1, l; o >= 0; o--)
550
- (l = t[o]) && (s = (a ? l(e, i, s) : l(s)) || s);
548
+ var we = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, S = (t, e, i, a) => {
549
+ for (var s = a > 1 ? void 0 : a ? Ce(e, i) : e, n = t.length - 1, l; n >= 0; n--)
550
+ (l = t[n]) && (s = (a ? l(e, i, s) : l(s)) || s);
551
551
  return a && s && we(e, i, s), s;
552
552
  };
553
- let y = class extends H {
553
+ let b = class extends H {
554
554
  constructor() {
555
555
  super(...arguments), this.localize = new q(this), this.role = "tree", this.siteUrl = "", this.bearerToken = "", this.token = "", this.searchText = "", this.folders = [], this.rootIDs = [], this.totalCount = 0, this.loadMore = () => {
556
- }, this.isLoading = !1, this.folderPathsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.renderFolder = (t) => n`<cx-folder-item
556
+ }, this.isLoading = !1, this.folderPathsSet = /* @__PURE__ */ new Set(), this.removedIDs = [], this.currentRootIDsSet = /* @__PURE__ */ new Set(), this.renderFolder = (t) => o`<cx-folder-item
557
557
  .currentRootIDsSet=${this.currentRootIDsSet}
558
558
  .folder=${t}
559
559
  .folderPathsSet=${this.folderPathsSet}
@@ -592,30 +592,30 @@ let y = class extends H {
592
592
  if (e.selected) {
593
593
  if (!this.currentRootIDsSet.has(s)) {
594
594
  lt(e, "multiple"), this.currentRootIDsSet.add(s);
595
- for (const o of e.getChildrenItems())
596
- !o.id.trim() || !o.dataset.path?.trim() || this.currentRootIDsSet.add(
595
+ for (const n of e.getChildrenItems())
596
+ !n.id.trim() || !n.dataset.path?.trim() || this.currentRootIDsSet.add(
597
597
  N({
598
- id: o.id,
599
- path: o.dataset.path ?? ""
598
+ id: n.id,
599
+ path: n.dataset.path ?? ""
600
600
  })
601
601
  );
602
602
  }
603
603
  this.removedIDs = this.removedIDs.filter(
604
- (o) => o !== s && !S(o).path.startsWith(a + "/")
604
+ (n) => n !== s && !I(n).path.startsWith(a + "/")
605
605
  );
606
606
  } else
607
607
  this.removedIDs.push(s), this.currentRootIDsSet.has(s) && (this.currentRootIDsSet.delete(s), lt(e, "multiple"));
608
- [...this.currentRootIDsSet].forEach((o) => {
609
- const l = R(a), h = S(o).path, _ = R(h);
610
- _.startsWith(l) && _ !== l && (e.selected || this.currentRootIDsSet.delete(o));
608
+ [...this.currentRootIDsSet].forEach((n) => {
609
+ const l = R(a), h = I(n).path, _ = R(h);
610
+ _.startsWith(l) && _ !== l && (e.selected || this.currentRootIDsSet.delete(n));
611
611
  }), this.currentRootIDsSet = new Set(this.currentRootIDsSet);
612
612
  }
613
613
  }
614
614
  render() {
615
- return n`
615
+ return o`
616
616
  <div class="folder-tree selectable">
617
617
  <cx-tree
618
- class=${A({
618
+ class=${C({
619
619
  selectable: !0
620
620
  })}
621
621
  @cx-selected-change=${this.handleSelectedChange}
@@ -630,7 +630,7 @@ let y = class extends H {
630
630
  )}
631
631
  ${p(
632
632
  this.folders && this.folders.length < this.totalCount,
633
- () => n`
633
+ () => o`
634
634
  <div class="load-more-button">
635
635
  <cx-button
636
636
  variant="text"
@@ -647,71 +647,71 @@ let y = class extends H {
647
647
  `;
648
648
  }
649
649
  };
650
- y.styles = [tt, Ie];
651
- y.dependencies = {
652
- "cx-folder-item": v,
650
+ b.styles = [tt, Se];
651
+ b.dependencies = {
652
+ "cx-folder-item": y,
653
653
  "cx-tree": yt
654
654
  };
655
- I([
655
+ S([
656
656
  z("cx-tree")
657
- ], y.prototype, "tree", 2);
658
- I([
657
+ ], b.prototype, "tree", 2);
658
+ S([
659
659
  d({ attribute: "site-url", reflect: !0, type: String })
660
- ], y.prototype, "siteUrl", 2);
661
- I([
660
+ ], b.prototype, "siteUrl", 2);
661
+ S([
662
662
  d({ attribute: "bearer-token", reflect: !0, type: String })
663
- ], y.prototype, "bearerToken", 2);
664
- I([
663
+ ], b.prototype, "bearerToken", 2);
664
+ S([
665
665
  d({ attribute: "token", reflect: !0, type: String })
666
- ], y.prototype, "token", 2);
667
- I([
666
+ ], b.prototype, "token", 2);
667
+ S([
668
668
  d({ attribute: "search-text", reflect: !0, type: String })
669
- ], y.prototype, "searchText", 2);
670
- I([
669
+ ], b.prototype, "searchText", 2);
670
+ S([
671
671
  d({ type: Array })
672
- ], y.prototype, "folders", 2);
673
- I([
672
+ ], b.prototype, "folders", 2);
673
+ S([
674
674
  d({ attribute: "root-ids", reflect: !0, type: Array })
675
- ], y.prototype, "rootIDs", 2);
676
- I([
675
+ ], b.prototype, "rootIDs", 2);
676
+ S([
677
677
  d({ attribute: "total-count", reflect: !0, type: Number })
678
- ], y.prototype, "totalCount", 2);
679
- I([
678
+ ], b.prototype, "totalCount", 2);
679
+ S([
680
680
  d({ attribute: "load-more", type: Function })
681
- ], y.prototype, "loadMore", 2);
682
- I([
681
+ ], b.prototype, "loadMore", 2);
682
+ S([
683
683
  d({ attribute: "is-loading", reflect: !0, type: Boolean })
684
- ], y.prototype, "isLoading", 2);
685
- I([
684
+ ], b.prototype, "isLoading", 2);
685
+ S([
686
686
  d({ attribute: "folder-paths-set", type: Object })
687
- ], y.prototype, "folderPathsSet", 2);
688
- I([
687
+ ], b.prototype, "folderPathsSet", 2);
688
+ S([
689
689
  u()
690
- ], y.prototype, "removedIDs", 2);
691
- I([
690
+ ], b.prototype, "removedIDs", 2);
691
+ S([
692
692
  u()
693
- ], y.prototype, "currentRootIDsSet", 2);
694
- I([
693
+ ], b.prototype, "currentRootIDsSet", 2);
694
+ S([
695
695
  P("rootIDs")
696
- ], y.prototype, "handleRootIDsChange", 1);
697
- y = I([
696
+ ], b.prototype, "handleRootIDsChange", 1);
697
+ b = S([
698
698
  W("cx-folder-tree")
699
- ], y);
699
+ ], b);
700
700
  var Ae = 200;
701
701
  function De(t, e, i, a) {
702
- var s = -1, o = kt, l = !0, h = t.length, _ = [], m = e.length;
702
+ var s = -1, n = kt, l = !0, h = t.length, _ = [], m = e.length;
703
703
  if (!h)
704
704
  return _;
705
- i && (e = Jt(e, Pt(i))), e.length >= Ae && (o = zt, l = !1, e = new Tt(e));
705
+ i && (e = Jt(e, Pt(i))), e.length >= Ae && (n = zt, l = !1, e = new Tt(e));
706
706
  t:
707
707
  for (; ++s < h; ) {
708
- var g = t[s], b = i == null ? g : i(g);
709
- if (g = g !== 0 ? g : 0, l && b === b) {
708
+ var g = t[s], $ = i == null ? g : i(g);
709
+ if (g = g !== 0 ? g : 0, l && $ === $) {
710
710
  for (var f = m; f--; )
711
- if (e[f] === b)
711
+ if (e[f] === $)
712
712
  continue t;
713
713
  _.push(g);
714
- } else o(e, b, a) || _.push(g);
714
+ } else n(e, $, a) || _.push(g);
715
715
  }
716
716
  return _;
717
717
  }
@@ -720,10 +720,10 @@ function Te(t) {
720
720
  return $t(t) || Et(t) || !!(_t && t && t[_t]);
721
721
  }
722
722
  function Pe(t, e, i, a, s) {
723
- var o = -1, l = t.length;
724
- for (i || (i = Te), s || (s = []); ++o < l; ) {
725
- var h = t[o];
726
- i(h) ? Ft(s, h) : a || (s[s.length] = h);
723
+ var n = -1, l = t.length;
724
+ for (i || (i = Te), s || (s = []); ++n < l; ) {
725
+ var h = t[n];
726
+ i(h) ? Lt(s, h) : a || (s[s.length] = h);
727
727
  }
728
728
  return s;
729
729
  }
@@ -731,20 +731,20 @@ function ze(t, e, i) {
731
731
  var a = t.length;
732
732
  if (a < 2)
733
733
  return a ? dt(t[0]) : [];
734
- for (var s = -1, o = Array(a); ++s < a; )
734
+ for (var s = -1, n = Array(a); ++s < a; )
735
735
  for (var l = t[s], h = -1; ++h < a; )
736
- h != s && (o[s] = De(o[s] || l, t[h], e, i));
737
- return dt(Pe(o), e, i);
736
+ h != s && (n[s] = De(n[s] || l, t[h], e, i));
737
+ return dt(Pe(n), e, i);
738
738
  }
739
739
  function Ee(t) {
740
740
  return Qt(t) && bt(t);
741
741
  }
742
742
  var st = Zt(function(t) {
743
- return ze(Lt(t, Ee));
744
- }), $ = /* @__PURE__ */ ((t) => (t.Canceled = "CANCELED", t.Failed = "FAILED", t.InProgress = "INPROGRESS", t.PendingComplete = "PENDINGCOMPLETE", t.Success = "SUCCESS", t))($ || {}), Fe = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, j = (t, e, i, a) => {
745
- for (var s = a > 1 ? void 0 : a ? Le(e, i) : e, o = t.length - 1, l; o >= 0; o--)
746
- (l = t[o]) && (s = (a ? l(e, i, s) : l(s)) || s);
747
- return a && s && Fe(e, i, s), s;
743
+ return ze(Ft(t, Ee));
744
+ }), v = /* @__PURE__ */ ((t) => (t.Canceled = "CANCELED", t.Failed = "FAILED", t.InProgress = "INPROGRESS", t.PendingComplete = "PENDINGCOMPLETE", t.Success = "SUCCESS", t))(v || {}), Le = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, j = (t, e, i, a) => {
745
+ for (var s = a > 1 ? void 0 : a ? Fe(e, i) : e, n = t.length - 1, l; n >= 0; n--)
746
+ (l = t[n]) && (s = (a ? l(e, i, s) : l(s)) || s);
747
+ return a && s && Le(e, i, s), s;
748
748
  };
749
749
  let T = class extends H {
750
750
  constructor() {
@@ -754,27 +754,27 @@ let T = class extends H {
754
754
  return Math.max(0, this.size - this.remainingSize);
755
755
  }
756
756
  get percentage() {
757
- return this.size ? this.cachedSize / this.size * 100 : 0;
757
+ return this.size ? Math.round(this.cachedSize / this.size * 100) : 0;
758
758
  }
759
759
  createRenderRoot() {
760
760
  return this;
761
761
  }
762
762
  renderFolderSuccessText() {
763
- return n`${this.childrenCount} ${this.localize.term("subfolders")},
763
+ return o`${this.childrenCount} ${this.localize.term("subfolders")},
764
764
  ${this.assetsCount} ${this.localize.term("assets")}`;
765
765
  }
766
766
  renderSuccess() {
767
- return n`<div class="file-on-demand-pinned-status__success progress">
767
+ return o`<div class="file-on-demand-pinned-status__success progress">
768
768
  <cx-icon name="file_download" variant="filled"></cx-icon>
769
769
  <cx-typography variant="small">
770
770
  <cx-line-clamp lines="1">
771
- ${p(this.isFolder, this.renderFolderSuccessText.bind(this), () => n`${this.localize.term("cached")}`)}
771
+ ${p(this.isFolder, this.renderFolderSuccessText.bind(this), () => o`${this.localize.term("cached")}`)}
772
772
  </cx-line-clamp>
773
773
  </cx-typography>
774
774
  </div>`;
775
775
  }
776
776
  renderFailed() {
777
- return n`<div class="file-on-demand-pinned-status__failed progress">
777
+ return o`<div class="file-on-demand-pinned-status__failed progress">
778
778
  <cx-icon name="file_download_off" variant="filled"></cx-icon>
779
779
  <cx-typography variant="small">
780
780
  <cx-line-clamp lines="1">
@@ -784,7 +784,7 @@ let T = class extends H {
784
784
  </div>`;
785
785
  }
786
786
  renderCanceled() {
787
- return n`<div class="file-on-demand-pinned-status__canceled progress">
787
+ return o`<div class="file-on-demand-pinned-status__canceled progress">
788
788
  <cx-icon name="file_download_off" variant="filled"></cx-icon>
789
789
  <cx-typography variant="small">
790
790
  <cx-line-clamp lines="1">
@@ -794,7 +794,7 @@ let T = class extends H {
794
794
  </div>`;
795
795
  }
796
796
  renderInProgress() {
797
- return n`<div class="file-on-demand-pinned-status__in-progress progress">
797
+ return o`<div class="file-on-demand-pinned-status__in-progress progress">
798
798
  <cx-icon name="downloading" variant="filled"></cx-icon>
799
799
  <cx-typography variant="small">
800
800
  <cx-line-clamp lines="1">
@@ -805,13 +805,13 @@ let T = class extends H {
805
805
  </div>`;
806
806
  }
807
807
  render() {
808
- return n`<div class="file-on-demand-pinned-status">
808
+ return o`<div class="file-on-demand-pinned-status">
809
809
  ${ie(this.uploadStatus, [
810
- [$.Success, this.renderSuccess.bind(this)],
811
- [$.Failed, this.renderFailed.bind(this)],
812
- [$.InProgress, this.renderInProgress.bind(this)],
813
- [$.PendingComplete, this.renderInProgress.bind(this)],
814
- [$.Canceled, this.renderCanceled.bind(this)]
810
+ [v.Success, this.renderSuccess.bind(this)],
811
+ [v.Failed, this.renderFailed.bind(this)],
812
+ [v.InProgress, this.renderInProgress.bind(this)],
813
+ [v.PendingComplete, this.renderInProgress.bind(this)],
814
+ [v.Canceled, this.renderCanceled.bind(this)]
815
815
  ])}
816
816
  </div>`;
817
817
  }
@@ -870,7 +870,7 @@ const Ue = at`
870
870
  display: flex;
871
871
  gap: var(--cx-spacing-small);
872
872
  }
873
- .asset:hover {
873
+ :host(:hover) {
874
874
  background-color: var(--cx-input-filled-background-color-hover);
875
875
  }
876
876
 
@@ -1020,10 +1020,14 @@ const Ue = at`
1020
1020
  line-height: var(--cx-font-size-medium);
1021
1021
  }
1022
1022
 
1023
- .uploading-progress cx-icon {
1023
+ .uploading-progress.in-progress cx-icon {
1024
1024
  color: var(--cx-color-primary-500);
1025
1025
  }
1026
1026
 
1027
+ .uploading-progress.paused cx-icon {
1028
+ color: var(--cx-color-warning-500);
1029
+ }
1030
+
1027
1031
  .syncing-progress cx-icon {
1028
1032
  color: var(--cx-color-warning);
1029
1033
  }
@@ -1056,22 +1060,23 @@ const Ue = at`
1056
1060
  }
1057
1061
  `;
1058
1062
  var Re = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, V = (t, e, i, a) => {
1059
- for (var s = a > 1 ? void 0 : a ? ke(e, i) : e, o = t.length - 1, l; o >= 0; o--)
1060
- (l = t[o]) && (s = (a ? l(e, i, s) : l(s)) || s);
1063
+ for (var s = a > 1 ? void 0 : a ? ke(e, i) : e, n = t.length - 1, l; n >= 0; n--)
1064
+ (l = t[n]) && (s = (a ? l(e, i, s) : l(s)) || s);
1061
1065
  return a && s && Re(e, i, s), s;
1062
1066
  };
1063
- let F = class extends H {
1067
+ let L = class extends H {
1064
1068
  constructor() {
1065
1069
  super(...arguments), this.localize = new q(this), this.favoriteInProgressAssets = [], this.pinInProgressAssets = [], this.thumbnailLoadError = !1;
1066
1070
  }
1067
- get showFailedActions() {
1068
- return this.listType === x.PINNED ? !1 : this.asset.uploadStatus === $.Failed;
1071
+ /** Failed or canceled uploads: show open-in-drive and retry. */
1072
+ get showRetryableUploadActions() {
1073
+ return this.listType === x.PINNED ? !1 : this.asset.uploadStatus === v.Failed || this.asset.uploadStatus === v.Canceled;
1069
1074
  }
1070
1075
  get showInProgressActions() {
1071
- return this.listType === x.PINNED ? !1 : this.asset.uploadStatus === $.InProgress;
1076
+ return this.listType === x.PINNED ? !1 : this.asset.uploadStatus === v.InProgress;
1072
1077
  }
1073
1078
  get showNormalActions() {
1074
- return this.listType === x.PINNED ? !1 : [$.Success, $.PendingComplete].includes(
1079
+ return this.listType === x.PINNED ? !1 : [v.Success, v.PendingComplete].includes(
1075
1080
  this.asset.uploadStatus
1076
1081
  ) || !this.asset.uploadStatus?.trim();
1077
1082
  }
@@ -1166,33 +1171,46 @@ let F = class extends H {
1166
1171
  }
1167
1172
  });
1168
1173
  }
1174
+ cancelUpload(t) {
1175
+ this.emit("cx-cancel-upload", {
1176
+ detail: {
1177
+ assetId: t
1178
+ }
1179
+ });
1180
+ }
1169
1181
  handlePauseUploadClick() {
1170
1182
  this.asset.uploadId && (this.asset.isPaused ? this.resumeUpload(this.asset.uploadId) : this.pauseUpload(this.asset.uploadId));
1171
1183
  }
1184
+ handleCancelUploadClick() {
1185
+ this.asset.uploadId && this.cancelUpload(this.asset.uploadId);
1186
+ }
1172
1187
  renderProgress({
1173
1188
  isPaused: t = !1,
1174
1189
  progress: e = 0,
1175
1190
  remainingTime: i,
1176
1191
  size: a = 0,
1177
1192
  timestamp: s = Date.now(),
1178
- uploadErrorMessage: o,
1179
- uploadStatus: l = $.InProgress
1193
+ uploadErrorMessage: n,
1194
+ uploadStatus: l = v.InProgress
1180
1195
  }) {
1181
- const h = a > 0 ? e * 100 / a : 0, _ = l === $.InProgress ? h : 100, m = n`
1182
- <div class="progress uploading-progress">
1183
- ${p(!t, () => n`<cx-icon name="arrow_upward"></cx-icon>`)}
1196
+ const h = a > 0 ? e * 100 / a : 0, _ = l === v.InProgress ? h : 100, m = o`
1197
+ <div class=${C({
1198
+ "in-progress": l === v.InProgress,
1199
+ paused: t,
1200
+ progress: !0,
1201
+ "uploading-progress": !0
1202
+ })}>
1203
+ ${p(t, () => o`<cx-icon name="pause" variant="filled"></cx-icon>`, () => o`<cx-icon name="arrow_upward"></cx-icon>`)}
1184
1204
  <cx-typography variant="small">
1185
1205
  <cx-line-clamp lines="1">
1186
- ${p(t, () => n`${this.localize.term("paused")} ‧`)}
1206
+ ${p(t, () => o`${this.localize.term("paused")} ‧`)}
1187
1207
  <cx-format-bytes .value=${e}></cx-format-bytes>
1188
1208
  ${this.localize.term("of")}
1189
1209
  <cx-format-bytes .value=${a}></cx-format-bytes>
1190
- (${new Intl.NumberFormat(void 0, {
1191
- maximumFractionDigits: 2
1192
- }).format(h)}%)
1210
+ (${Math.round(h)}%)
1193
1211
  ${p(
1194
1212
  !!i && !t,
1195
- () => n`‧
1213
+ () => o`‧
1196
1214
  <cx-relative-time
1197
1215
  format="narrow"
1198
1216
  numeric="always"
@@ -1204,7 +1222,7 @@ let F = class extends H {
1204
1222
  </cx-line-clamp>
1205
1223
  </cx-typography>
1206
1224
  </div>
1207
- `, g = n`
1225
+ `, g = o`
1208
1226
  <div class="progress syncing-progress">
1209
1227
  <cx-icon name="cached"></cx-icon>
1210
1228
  <cx-typography variant="small">
@@ -1220,7 +1238,7 @@ let F = class extends H {
1220
1238
  </cx-line-clamp>
1221
1239
  </cx-typography>
1222
1240
  </div>
1223
- `, b = n`
1241
+ `, $ = o`
1224
1242
  <div class="progress completed-progress">
1225
1243
  <cx-icon name="check"></cx-icon>
1226
1244
  <cx-typography variant="small">
@@ -1236,11 +1254,13 @@ let F = class extends H {
1236
1254
  </cx-line-clamp>
1237
1255
  </cx-typography>
1238
1256
  </div>
1239
- `, f = n`
1257
+ `, f = o`
1240
1258
  <div class="progress failed-progress">
1241
1259
  <cx-typography variant="small">
1242
1260
  <cx-line-clamp lines="1">
1243
- <cx-tooltip content=${o || this.localize.term("uploadFailed")}>
1261
+ <cx-tooltip
1262
+ content=${n || this.localize.term("uploadFailed")}
1263
+ >
1244
1264
  <span class="failed-progress__text">
1245
1265
  ${this.localize.term("uploadFailed")} ‧
1246
1266
  </span>
@@ -1255,7 +1275,7 @@ let F = class extends H {
1255
1275
  </cx-line-clamp>
1256
1276
  </cx-typography>
1257
1277
  </div>
1258
- `, L = n`
1278
+ `, F = o`
1259
1279
  <div class="progress canceled-progress">
1260
1280
  <cx-icon name="cancel"></cx-icon>
1261
1281
  <cx-typography variant="small">
@@ -1272,10 +1292,10 @@ let F = class extends H {
1272
1292
  </cx-typography>
1273
1293
  </div>
1274
1294
  `;
1275
- return n`
1295
+ return o`
1276
1296
  ${p(
1277
- l === $.InProgress,
1278
- () => n`<cx-progress-bar
1297
+ l === v.InProgress,
1298
+ () => o`<cx-progress-bar
1279
1299
  style=${se({
1280
1300
  "--color": t ? "var(--cx-color-warning-500)" : "var(--cx-color-primary-500)"
1281
1301
  })}
@@ -1285,16 +1305,16 @@ let F = class extends H {
1285
1305
  >${m}`
1286
1306
  )}
1287
1307
  ${p(
1288
- l === $.PendingComplete,
1308
+ l === v.PendingComplete,
1289
1309
  () => g
1290
1310
  )}
1291
- ${p(l === $.Success, () => b)}
1292
- ${p(l === $.Failed, () => f)}
1293
- ${p(l === $.Canceled, () => L)}
1311
+ ${p(l === v.Success, () => $)}
1312
+ ${p(l === v.Failed, () => f)}
1313
+ ${p(l === v.Canceled, () => F)}
1294
1314
  `;
1295
1315
  }
1296
1316
  renderUploadingStatus() {
1297
- return n`
1317
+ return o`
1298
1318
  ${this.renderProgress({
1299
1319
  isPaused: this.asset.isPaused,
1300
1320
  progress: (this.asset.size ?? 0) - (this.asset.remainingSize ?? 0),
@@ -1307,7 +1327,7 @@ let F = class extends H {
1307
1327
  `;
1308
1328
  }
1309
1329
  renderPinnedStatus() {
1310
- return n`<cx-file-on-demand-pinned-status
1330
+ return o`<cx-file-on-demand-pinned-status
1311
1331
  size=${this.asset.size ?? 0}
1312
1332
  remaining-size=${this.asset.remainingSize ?? 0}
1313
1333
  upload-status=${this.asset.uploadStatus}
@@ -1317,18 +1337,18 @@ let F = class extends H {
1317
1337
  ></cx-file-on-demand-pinned-status>`;
1318
1338
  }
1319
1339
  renderThumbnailContent() {
1320
- return this.isFolder ? this.listType === x.FAVORITES ? n`<cx-icon
1340
+ return this.isFolder ? this.listType === x.FAVORITES ? o`<cx-icon
1321
1341
  class="asset__folder__icon"
1322
1342
  name="folder_special"
1323
- ></cx-icon>` : n`<cx-icon class="asset__folder__icon" name="topic"></cx-icon>` : n`${p(
1343
+ ></cx-icon>` : o`<cx-icon class="asset__folder__icon" name="topic"></cx-icon>` : o`${p(
1324
1344
  !!this.thumbnailUrl,
1325
- () => n`<img
1326
- alt=${this.asset.fileName}
1327
- class="asset__thumbnail__image"
1328
- src=${this.thumbnailUrl}
1329
- @error=${this.handleImgError}
1330
- @load=${this.handleImgLoad}
1331
- />`
1345
+ () => o`<img
1346
+ alt=${this.asset.fileName}
1347
+ class="asset__thumbnail__image"
1348
+ src=${this.thumbnailUrl}
1349
+ @error=${this.handleImgError}
1350
+ @load=${this.handleImgLoad}
1351
+ />`
1332
1352
  )}
1333
1353
  <cx-icon
1334
1354
  class="asset__thumbnail__icon"
@@ -1350,8 +1370,8 @@ let F = class extends H {
1350
1370
  </div>`;
1351
1371
  }
1352
1372
  renderThumbnail() {
1353
- return n`<div
1354
- class=${A({
1373
+ return o`<div
1374
+ class=${C({
1355
1375
  asset__thumbnail: !0,
1356
1376
  "asset__thumbnail--folder": this.isFolder,
1357
1377
  "asset__thumbnail--placeholder": this.showThumbnailPlaceholder
@@ -1360,18 +1380,21 @@ let F = class extends H {
1360
1380
  ${this.renderThumbnailContent()}
1361
1381
  </div>`;
1362
1382
  }
1383
+ renderOpenDriveButton() {
1384
+ return o`<cx-tooltip content=${this.localize.term("openInDrive")} hoist>
1385
+ <cx-icon-button
1386
+ data-testid="asset__drive-button"
1387
+ name="folder_open"
1388
+ @click=${this.handleOpenDriveClick}
1389
+ ></cx-icon-button>
1390
+ </cx-tooltip>`;
1391
+ }
1363
1392
  renderNormalActions() {
1364
- return n`<cx-tooltip content=${this.localize.term("openInDrive")} hoist>
1365
- <cx-icon-button
1366
- data-testid="asset__drive-button"
1367
- name="folder_open"
1368
- @click=${this.handleOpenDriveClick}
1369
- ></cx-icon-button>
1370
- </cx-tooltip>
1393
+ return o`${this.renderOpenDriveButton()}
1371
1394
  ${p(
1372
1395
  this.favoriteInProgressAssets.includes(this.asset.recordId),
1373
- () => n`<cx-spinner class="asset__actions__spinner"></cx-spinner>`,
1374
- () => n`<cx-tooltip
1396
+ () => o`<cx-spinner class="asset__actions__spinner"></cx-spinner>`,
1397
+ () => o`<cx-tooltip
1375
1398
  content=${this.asset.isInFavorite ? this.localize.term("unfavorite") : this.localize.term("favorite")}
1376
1399
  hoist
1377
1400
  >
@@ -1384,33 +1407,43 @@ let F = class extends H {
1384
1407
  </cx-tooltip>`
1385
1408
  )} `;
1386
1409
  }
1387
- renderFailedActions() {
1388
- return n`<cx-tooltip content=${this.localize.term("retry")} hoist>
1389
- <cx-icon-button
1390
- data-testid="asset__retry-button"
1391
- name="refresh"
1392
- @click=${this.handleRetryUploadClick}
1393
- ></cx-icon-button>
1394
- </cx-tooltip>`;
1410
+ renderRetryableUploadActions() {
1411
+ return o`${this.renderOpenDriveButton()}
1412
+ <cx-tooltip content=${this.localize.term("retry")} hoist>
1413
+ <cx-icon-button
1414
+ data-testid="asset__retry-button"
1415
+ name="refresh"
1416
+ @click=${this.handleRetryUploadClick}
1417
+ ></cx-icon-button>
1418
+ </cx-tooltip>`;
1395
1419
  }
1396
1420
  renderInProgressActions() {
1397
- return n`<cx-tooltip
1398
- content=${this.asset.isPaused ? this.localize.term("resume") : this.localize.term("pause")}
1399
- hoist
1400
- >
1401
- <cx-icon-button
1402
- data-testid=${this.asset.isPaused ? "asset__resume-button" : "asset__pause-button"}
1403
- name=${this.asset.isPaused ? "play_arrow" : "pause"}
1404
- variant="filled"
1405
- @click=${this.handlePauseUploadClick}
1406
- ></cx-icon-button>
1407
- </cx-tooltip>`;
1421
+ return o`
1422
+ <cx-tooltip
1423
+ content=${this.asset.isPaused ? this.localize.term("resume") : this.localize.term("pause")}
1424
+ hoist
1425
+ >
1426
+ <cx-icon-button
1427
+ data-testid=${this.asset.isPaused ? "asset__resume-button" : "asset__pause-button"}
1428
+ name=${this.asset.isPaused ? "play_arrow" : "pause"}
1429
+ variant="filled"
1430
+ @click=${this.handlePauseUploadClick}
1431
+ ></cx-icon-button>
1432
+ </cx-tooltip>
1433
+ <cx-tooltip content=${this.localize.term("cancel")} hoist>
1434
+ <cx-icon-button
1435
+ data-testid="asset__cancel-button"
1436
+ name="close"
1437
+ @click=${this.handleCancelUploadClick}
1438
+ ></cx-icon-button>
1439
+ </cx-tooltip>
1440
+ `;
1408
1441
  }
1409
1442
  renderPinnedActions() {
1410
- return n`${p(
1443
+ return o`${p(
1411
1444
  this.pinInProgressAssets.includes(this.asset.recordId),
1412
- () => n`<cx-spinner class="asset__actions__spinner"></cx-spinner>`,
1413
- () => n`<cx-tooltip
1445
+ () => o`<cx-spinner class="asset__actions__spinner"></cx-spinner>`,
1446
+ () => o`<cx-tooltip
1414
1447
  content=${this.asset.isPinned ? this.localize.term("unpin") : this.localize.term("pin")}
1415
1448
  hoist
1416
1449
  >
@@ -1424,7 +1457,7 @@ let F = class extends H {
1424
1457
  )} `;
1425
1458
  }
1426
1459
  render() {
1427
- return n`
1460
+ return o`
1428
1461
  <div
1429
1462
  data-id=${this.asset.recordId}
1430
1463
  data-testid=${`asset-${this.asset.uploadStatus}`}
@@ -1442,7 +1475,7 @@ let F = class extends H {
1442
1475
  <div class="asset__description__status">
1443
1476
  ${p(
1444
1477
  this.listType === x.RECENT,
1445
- () => n`
1478
+ () => o`
1446
1479
  <cx-typography
1447
1480
  variant="small"
1448
1481
  class="asset__description__status__time"
@@ -1473,35 +1506,38 @@ let F = class extends H {
1473
1506
  this.showInProgressActions,
1474
1507
  () => this.renderInProgressActions()
1475
1508
  )}
1476
- ${p(this.showFailedActions, () => this.renderFailedActions())}
1509
+ ${p(
1510
+ this.showRetryableUploadActions,
1511
+ () => this.renderRetryableUploadActions()
1512
+ )}
1477
1513
  ${p(this.showPinnedActions, () => this.renderPinnedActions())}
1478
1514
  </div>
1479
1515
  </div>
1480
1516
  `;
1481
1517
  }
1482
1518
  };
1483
- F.styles = [tt, Ue];
1484
- F.dependencies = {
1519
+ L.styles = [tt, Ue];
1520
+ L.dependencies = {
1485
1521
  "cx-file-on-demand-pinned-status": T,
1486
1522
  "cx-format-bytes": ot,
1487
1523
  "cx-icon": J,
1488
- "cx-icon-button": St,
1524
+ "cx-icon-button": It,
1489
1525
  "cx-line-clamp": Q,
1490
1526
  "cx-progress-bar": te,
1491
- "cx-relative-time": It,
1527
+ "cx-relative-time": St,
1492
1528
  "cx-spinner": ee,
1493
1529
  "cx-tooltip": wt,
1494
1530
  "cx-typography": nt
1495
1531
  };
1496
1532
  V([
1497
1533
  d({ type: Object })
1498
- ], F.prototype, "asset", 2);
1534
+ ], L.prototype, "asset", 2);
1499
1535
  V([
1500
1536
  d({
1501
1537
  attribute: "list-type",
1502
1538
  type: String
1503
1539
  })
1504
- ], F.prototype, "listType", 2);
1540
+ ], L.prototype, "listType", 2);
1505
1541
  V([
1506
1542
  d({
1507
1543
  attribute: "favorite-in-progress-assets",
@@ -1511,7 +1547,7 @@ V([
1511
1547
  },
1512
1548
  type: String
1513
1549
  })
1514
- ], F.prototype, "favoriteInProgressAssets", 2);
1550
+ ], L.prototype, "favoriteInProgressAssets", 2);
1515
1551
  V([
1516
1552
  d({
1517
1553
  attribute: "pin-in-progress-assets",
@@ -1521,13 +1557,13 @@ V([
1521
1557
  },
1522
1558
  type: String
1523
1559
  })
1524
- ], F.prototype, "pinInProgressAssets", 2);
1560
+ ], L.prototype, "pinInProgressAssets", 2);
1525
1561
  V([
1526
1562
  u()
1527
- ], F.prototype, "thumbnailLoadError", 2);
1528
- F = V([
1563
+ ], L.prototype, "thumbnailLoadError", 2);
1564
+ L = V([
1529
1565
  W("cx-file-on-demand-asset")
1530
- ], F);
1566
+ ], L);
1531
1567
  const Oe = at`
1532
1568
  :host {
1533
1569
  --asset-height: 40px;
@@ -1723,6 +1759,7 @@ const Oe = at`
1723
1759
  display: flex;
1724
1760
  flex-direction: column;
1725
1761
  overflow-y: auto;
1762
+ overflow-x: hidden;
1726
1763
  padding: 0 0 var(--cx-spacing-x-small) 0;
1727
1764
  }
1728
1765
 
@@ -2069,8 +2106,8 @@ const Oe = at`
2069
2106
  }
2070
2107
  `;
2071
2108
  var Ne = Object.defineProperty, je = Object.getOwnPropertyDescriptor, c = (t, e, i, a) => {
2072
- for (var s = a > 1 ? void 0 : a ? je(e, i) : e, o = t.length - 1, l; o >= 0; o--)
2073
- (l = t[o]) && (s = (a ? l(e, i, s) : l(s)) || s);
2109
+ for (var s = a > 1 ? void 0 : a ? je(e, i) : e, n = t.length - 1, l; n >= 0; n--)
2110
+ (l = t[n]) && (s = (a ? l(e, i, s) : l(s)) || s);
2074
2111
  return a && s && Ne(e, i, s), s;
2075
2112
  };
2076
2113
  let r = class extends H {
@@ -2116,8 +2153,8 @@ let r = class extends H {
2116
2153
  start: s,
2117
2154
  token: this.token
2118
2155
  });
2119
- } catch (o) {
2120
- o instanceof Error && o.message === "Failed to fetch" && this.emit("cx-renew-token");
2156
+ } catch (n) {
2157
+ n instanceof Error && n.message === "Failed to fetch" && this.emit("cx-renew-token");
2121
2158
  }
2122
2159
  return {
2123
2160
  data: this.availableFolderIdentifiers,
@@ -2338,7 +2375,7 @@ let r = class extends H {
2338
2375
  const t = () => {
2339
2376
  this.openDrive();
2340
2377
  };
2341
- return n`
2378
+ return o`
2342
2379
  <div class="header">
2343
2380
  <div class="header__user">
2344
2381
  <cx-avatar
@@ -2376,7 +2413,7 @@ let r = class extends H {
2376
2413
  >
2377
2414
  ${p(
2378
2415
  this.hasNewVersion,
2379
- () => n`<cx-badge
2416
+ () => o`<cx-badge
2380
2417
  class="settings__version__badge"
2381
2418
  slot="badge"
2382
2419
  variant="danger"
@@ -2392,7 +2429,7 @@ let r = class extends H {
2392
2429
  }
2393
2430
  // #region Assets
2394
2431
  renderAsset(t, e) {
2395
- return n`<cx-file-on-demand-asset
2432
+ return o`<cx-file-on-demand-asset
2396
2433
  .asset=${t}
2397
2434
  .listType=${e}
2398
2435
  .favoriteInProgressAssets=${this.favoriteInProgressAssets}
@@ -2400,7 +2437,7 @@ let r = class extends H {
2400
2437
  ></cx-file-on-demand-asset>`;
2401
2438
  }
2402
2439
  renderRecentAssets() {
2403
- const t = n`
2440
+ const t = o`
2404
2441
  <div class="recent-empty assets-list__tab-group__empty-message">
2405
2442
  <cx-icon class="empty-icon" name="explore"></cx-icon>
2406
2443
  <cx-typography variant="body2">
@@ -2409,10 +2446,10 @@ let r = class extends H {
2409
2446
  </div>
2410
2447
  `, [e, i] = ut(
2411
2448
  this.recentAssets.assets
2412
- ), a = n`
2449
+ ), a = o`
2413
2450
  <div class="recent__list" @scroll=${this.requestMoreRecentAssets}>
2414
2451
  <div
2415
- class=${A({
2452
+ class=${C({
2416
2453
  empty: e.length === 0,
2417
2454
  recent__today: !0
2418
2455
  })}
@@ -2430,7 +2467,7 @@ let r = class extends H {
2430
2467
  )}
2431
2468
  </div>
2432
2469
  <div
2433
- class=${A({
2470
+ class=${C({
2434
2471
  empty: i.length === 0,
2435
2472
  recent__other: !0
2436
2473
  })}
@@ -2448,7 +2485,7 @@ let r = class extends H {
2448
2485
  </div>
2449
2486
  </div>
2450
2487
  `;
2451
- return n`
2488
+ return o`
2452
2489
  <cx-tab-panel
2453
2490
  name=${x.RECENT}
2454
2491
  class="assets-list__recent-tab-panel"
@@ -2462,14 +2499,14 @@ let r = class extends H {
2462
2499
  `;
2463
2500
  }
2464
2501
  renderFavoriteAssets() {
2465
- const t = n`
2502
+ const t = o`
2466
2503
  <div class="favorites-empty assets-list__tab-group__empty-message">
2467
2504
  <cx-icon class="empty-icon" name="star"></cx-icon>
2468
2505
  <cx-typography variant="body2">
2469
2506
  ${this.localize.term("allFavoriteAssetsWillBeVisibleHere")}
2470
2507
  </cx-typography>
2471
2508
  </div>
2472
- `, e = mt(this.favoriteAssets.assets), i = n`
2509
+ `, e = mt(this.favoriteAssets.assets), i = o`
2473
2510
  <div class="favorites__list" @scroll=${this.requestMoreFavoriteAssets}>
2474
2511
  ${U(
2475
2512
  e,
@@ -2478,7 +2515,7 @@ let r = class extends H {
2478
2515
  )}
2479
2516
  </div>
2480
2517
  `;
2481
- return n`
2518
+ return o`
2482
2519
  <cx-tab-panel
2483
2520
  name=${x.FAVORITES}
2484
2521
  class="assets-list__favorites-tab-panel"
@@ -2506,7 +2543,7 @@ let r = class extends H {
2506
2543
  `;
2507
2544
  }
2508
2545
  renderUploadingAssets() {
2509
- const t = n`
2546
+ const t = o`
2510
2547
  <div class="uploads-empty assets-list__tab-group__empty-message">
2511
2548
  <cx-icon class="empty-icon" name="arrow_upward"></cx-icon>
2512
2549
  <cx-typography variant="body2">
@@ -2515,10 +2552,10 @@ let r = class extends H {
2515
2552
  </div>
2516
2553
  `, [e, i] = ut(
2517
2554
  this.uploadingAssets.assets
2518
- ), a = n`
2555
+ ), a = o`
2519
2556
  <div class="uploads__list" @scroll=${this.requestMoreUploadingAssets}>
2520
2557
  <div
2521
- class=${A({
2558
+ class=${C({
2522
2559
  empty: e.length === 0,
2523
2560
  recent__today: !0
2524
2561
  })}
@@ -2544,7 +2581,7 @@ let r = class extends H {
2544
2581
  )}
2545
2582
  </div>
2546
2583
  <div
2547
- class=${A({
2584
+ class=${C({
2548
2585
  empty: i.length === 0,
2549
2586
  uploads__other: !0
2550
2587
  })}
@@ -2562,7 +2599,7 @@ let r = class extends H {
2562
2599
  </div>
2563
2600
  </div>
2564
2601
  `;
2565
- return n`
2602
+ return o`
2566
2603
  <cx-tab-panel
2567
2604
  name=${x.UPLOADS}
2568
2605
  class="assets-list__uploads-tab-panel"
@@ -2576,14 +2613,14 @@ let r = class extends H {
2576
2613
  `;
2577
2614
  }
2578
2615
  renderPinnedAssets() {
2579
- const t = n`
2616
+ const t = o`
2580
2617
  <div class="pinned-empty assets-list__tab-group__empty-message">
2581
2618
  <cx-icon class="empty-icon" name="keep"></cx-icon>
2582
2619
  <cx-typography variant="body2">
2583
2620
  ${this.localize.term("allPinnedAssetsWillBeVisibleHere")}
2584
2621
  </cx-typography>
2585
2622
  </div>
2586
- `, e = mt(this.pinnedAssets.assets), i = n`
2623
+ `, e = mt(this.pinnedAssets.assets), i = o`
2587
2624
  <div class="pinned__list" @scroll=${this.requestMorePinnedAssets}>
2588
2625
  ${U(
2589
2626
  e,
@@ -2592,7 +2629,7 @@ let r = class extends H {
2592
2629
  )}
2593
2630
  </div>
2594
2631
  `;
2595
- return n`
2632
+ return o`
2596
2633
  <cx-tab-panel
2597
2634
  name=${x.PINNED}
2598
2635
  class="assets-list__pinned-tab-panel"
@@ -2608,7 +2645,7 @@ let r = class extends H {
2608
2645
  `;
2609
2646
  }
2610
2647
  renderAssetsList() {
2611
- return n`
2648
+ return o`
2612
2649
  <div class="assets-list">
2613
2650
  <cx-tab-group
2614
2651
  @cx-tab-show=${async (e) => {
@@ -2666,7 +2703,7 @@ let r = class extends H {
2666
2703
  `;
2667
2704
  }
2668
2705
  renderAssetsView() {
2669
- return n`
2706
+ return o`
2670
2707
  <div class="assets">
2671
2708
  ${this.renderHeader()}${this.renderAssetsList()}${this.renderStatusFooter()}
2672
2709
  </div>
@@ -2689,47 +2726,47 @@ let r = class extends H {
2689
2726
  this.isAddingRootIDs = !0, await this.updateComplete, this.searchText = "";
2690
2727
  const s = this.rootIDs.filter((h) => {
2691
2728
  if (!this.folderTree.shadowRoot?.querySelector(
2692
- `[data-id="${S(h).id}"]`
2729
+ `[data-id="${I(h).id}"]`
2693
2730
  ))
2694
2731
  return !0;
2695
- }), o = /* @__PURE__ */ new Set([
2732
+ }), n = /* @__PURE__ */ new Set([
2696
2733
  ...this.folderTree.currentRootIDs,
2697
2734
  ...s
2698
2735
  ]);
2699
- for (const h of o) {
2700
- const _ = R(S(h).path), m = this.folderTree.removedIDs.filter(
2701
- (g) => R(S(g).path).startsWith(_)
2736
+ for (const h of n) {
2737
+ const _ = R(I(h).path), m = this.folderTree.removedIDs.filter(
2738
+ (g) => R(I(g).path).startsWith(_)
2702
2739
  );
2703
2740
  if (m.length > 0) {
2704
2741
  const { totalCount: g } = await this.fetchFolders({
2705
- excludes: m.map((f) => S(f).id),
2706
- folderId: S(h).id,
2742
+ excludes: m.map((f) => I(f).id),
2743
+ folderId: I(h).id,
2707
2744
  start: 0
2708
- }), { data: b } = await this.fetchFolders({
2709
- excludes: m.map((f) => S(f).id),
2710
- folderId: S(h).id,
2745
+ }), { data: $ } = await this.fetchFolders({
2746
+ excludes: m.map((f) => I(f).id),
2747
+ folderId: I(h).id,
2711
2748
  limit: g || 10,
2712
2749
  start: 0
2713
2750
  });
2714
- b.forEach((f) => {
2715
- o.add(
2751
+ $.forEach((f) => {
2752
+ n.add(
2716
2753
  N({ id: f.id, path: f.fullPath })
2717
2754
  );
2718
- }), o.delete(h);
2755
+ }), n.delete(h);
2719
2756
  }
2720
2757
  }
2721
- const l = Array.from(o);
2758
+ const l = Array.from(n);
2722
2759
  this.updateActiveFolderIdentifiers(l), this.removedIds = l.filter(
2723
2760
  (h) => [...l].some((_) => {
2724
- const m = S(h), g = S(_), b = R(g.path);
2725
- return _ !== h && m.path.startsWith(b);
2761
+ const m = I(h), g = I(_), $ = R(g.path);
2762
+ return _ !== h && m.path.startsWith($);
2726
2763
  })
2727
2764
  ), e(), this.isAddingRootIDs = !1;
2728
2765
  }, a = (s) => {
2729
- const o = s.target;
2730
- this.searchText = (o.value ?? "").trim();
2766
+ const n = s.target;
2767
+ this.searchText = (n.value ?? "").trim();
2731
2768
  };
2732
- return n`
2769
+ return o`
2733
2770
  <cx-dialog
2734
2771
  class="select-folders-popup"
2735
2772
  no-header
@@ -2767,7 +2804,7 @@ let r = class extends H {
2767
2804
  }
2768
2805
  renderSelectableFolderTree() {
2769
2806
  const t = this.availableFolderIdentifiers;
2770
- return n`
2807
+ return o`
2771
2808
  <cx-folder-tree
2772
2809
  class="selectable-folder-tree"
2773
2810
  .siteUrl=${this.settings.config.siteUrl}
@@ -2790,24 +2827,24 @@ let r = class extends H {
2790
2827
  ), e = (a) => {
2791
2828
  this.updateActiveFolderIdentifiers(
2792
2829
  t.filter(
2793
- (s) => S(s).id !== a
2830
+ (s) => I(s).id !== a
2794
2831
  )
2795
2832
  ), this.folderTree.rootIDs = this.rootIDs, this.folderTree.resetTree();
2796
2833
  }, i = (a) => {
2797
- const { id: s, path: o } = S(a), l = () => {
2834
+ const { id: s, path: n } = I(a), l = () => {
2798
2835
  e(s);
2799
2836
  };
2800
- return n`
2837
+ return o`
2801
2838
  <cx-tree-item
2802
2839
  data-id=${s}
2803
- class=${A({
2840
+ class=${C({
2804
2841
  "folder-tree__item": !0
2805
2842
  })}
2806
2843
  >
2807
2844
  <div class="folder-tree__label">
2808
2845
  <cx-icon class="folder-tree__icon" name="folder"></cx-icon>
2809
2846
  <cx-line-clamp lines="1" class="folder-tree__label__value">
2810
- ${o}
2847
+ ${n}
2811
2848
  </cx-line-clamp>
2812
2849
  </div>
2813
2850
  <cx-tooltip
@@ -2823,7 +2860,7 @@ let r = class extends H {
2823
2860
  </cx-tree-item>
2824
2861
  `;
2825
2862
  };
2826
- return n`
2863
+ return o`
2827
2864
  <div data-testid="root-folder-tree" class="folder-tree">
2828
2865
  <cx-tree selection="none">
2829
2866
  ${U(
@@ -2840,7 +2877,7 @@ let r = class extends H {
2840
2877
  t.target.value === "custom" ? (this._activeFoldersMode = !0, this.rootIDs = this.settings.config.rootIDs ?? []) : (this._activeFoldersMode = !1, this.rootIDs = []);
2841
2878
  }
2842
2879
  renderGeneralSettings() {
2843
- const t = n`
2880
+ const t = o`
2844
2881
  <div class="settings-group settings__active-folder">
2845
2882
  <cx-typography variant="h5">
2846
2883
  ${this.localize.term("activeFolders")}
@@ -2862,13 +2899,13 @@ let r = class extends H {
2862
2899
  </cx-select>
2863
2900
  ${p(
2864
2901
  this._activeFoldersMode,
2865
- () => n`
2902
+ () => o`
2866
2903
  ${this.renderRootFolderTree()} ${this.renderSelectFoldersPopup()}
2867
2904
  `
2868
2905
  )}
2869
2906
  </div>
2870
2907
  `;
2871
- return n`
2908
+ return o`
2872
2909
  <div class="settings__general">
2873
2910
  ${t}
2874
2911
  <div class="settings-group settings__software">
@@ -2889,7 +2926,7 @@ let r = class extends H {
2889
2926
  </div>
2890
2927
  ${p(
2891
2928
  this.hasNewVersion,
2892
- () => n`<div class="settings__software__version__value">
2929
+ () => o`<div class="settings__software__version__value">
2893
2930
  <cx-badge
2894
2931
  class="settings__version__badge"
2895
2932
  slot="badge"
@@ -2991,7 +3028,7 @@ let r = class extends H {
2991
3028
  await this.updateComplete, this.cacheLocationValueText?.handleResize();
2992
3029
  }
2993
3030
  renderAdvancedSettings() {
2994
- const t = n`<cx-tooltip
3031
+ const t = o`<cx-tooltip
2995
3032
  content=${this.localize.term("openDrive")}
2996
3033
  hoist
2997
3034
  >
@@ -3002,7 +3039,7 @@ let r = class extends H {
3002
3039
  @click=${this.openCacheLocation}
3003
3040
  ></cx-icon-button>
3004
3041
  </cx-tooltip>`;
3005
- return n`
3042
+ return o`
3006
3043
  <div class="settings__advanced">
3007
3044
  <div class="settings-group settings__proxy">
3008
3045
  <cx-typography variant="h5">Proxy</cx-typography>
@@ -3155,7 +3192,7 @@ let r = class extends H {
3155
3192
  const t = () => {
3156
3193
  this.hideSettings();
3157
3194
  };
3158
- return n`
3195
+ return o`
3159
3196
  <div class="settings">
3160
3197
  <form class="settings__form" @submit=${(i) => {
3161
3198
  i.preventDefault(), this.saveSettings();
@@ -3208,34 +3245,34 @@ let r = class extends H {
3208
3245
  }
3209
3246
  // #endregion
3210
3247
  renderStatusFooter() {
3211
- const t = n`
3248
+ const t = o`
3212
3249
  <cx-typography class="error-message" variant="small">
3213
3250
  ${this.localize.term("fileOnDemandSyncErrorMessage")}
3214
3251
  </cx-typography>
3215
3252
  `, e = () => {
3216
3253
  switch (this.connectionStatus) {
3217
3254
  case "excellent":
3218
- return n`
3255
+ return o`
3219
3256
  <cx-icon variant="filled" name="check_circle"></cx-icon>
3220
3257
  `;
3221
3258
  case "good":
3222
- return n` <cx-icon variant="filled" name="circle"></cx-icon> `;
3259
+ return o` <cx-icon variant="filled" name="circle"></cx-icon> `;
3223
3260
  case "bad":
3224
- return n` <cx-icon variant="filled" name="circle"></cx-icon> `;
3261
+ return o` <cx-icon variant="filled" name="circle"></cx-icon> `;
3225
3262
  }
3226
3263
  }, i = () => {
3227
3264
  switch (this.assetIndexSyncStatus) {
3228
3265
  case "loaded":
3229
- return n`
3266
+ return o`
3230
3267
  <cx-icon variant="filled" name="check_circle"></cx-icon>
3231
3268
  `;
3232
3269
  case "loading":
3233
- return n` <cx-icon variant="filled" name="cached"></cx-icon> `;
3270
+ return o` <cx-icon variant="filled" name="cached"></cx-icon> `;
3234
3271
  case "error":
3235
- return n` <cx-icon variant="filled" name="error"></cx-icon> `;
3272
+ return o` <cx-icon variant="filled" name="error"></cx-icon> `;
3236
3273
  }
3237
- }, a = n`<div
3238
- class=${A({
3274
+ }, a = o`<div
3275
+ class=${C({
3239
3276
  "connection-status": !0,
3240
3277
  "connection-status--bad": this.connectionStatus === "bad",
3241
3278
  "connection-status--excellent": this.connectionStatus === "excellent",
@@ -3259,7 +3296,7 @@ let r = class extends H {
3259
3296
  </div>
3260
3297
  </cx-tooltip>
3261
3298
  </div>`, s = this.settings.cacheUsage >= this.settings.cacheSize;
3262
- return n`
3299
+ return o`
3263
3300
  <cx-divider class="status-footer__divider"></cx-divider>
3264
3301
  <div class="status-footer">
3265
3302
  <div class="connected-url">
@@ -3274,7 +3311,7 @@ let r = class extends H {
3274
3311
  </div>
3275
3312
  ${a}
3276
3313
  <div
3277
- class=${A({
3314
+ class=${C({
3278
3315
  "asset-index-sync-status": !0,
3279
3316
  "asset-index-sync-status--error": this.assetIndexSyncStatus === "error",
3280
3317
  "asset-index-sync-status--loaded": this.assetIndexSyncStatus === "loaded",
@@ -3304,7 +3341,7 @@ let r = class extends H {
3304
3341
  <cx-format-bytes .value=${this.settings.cacheSize}></cx-format-bytes>
3305
3342
  </cx-typography>
3306
3343
  </cx-line-clamp>
3307
- ${p(s, () => n`<cx-icon class="cache-usage__warning-icon" name="warning" variant="filled"></cx-icon>`)}
3344
+ ${p(s, () => o`<cx-icon class="cache-usage__warning-icon" name="warning" variant="filled"></cx-icon>`)}
3308
3345
  </cx-space>
3309
3346
  </cx-tooltip>
3310
3347
  </div>
@@ -3318,7 +3355,7 @@ let r = class extends H {
3318
3355
  K(e) || (this.validConnectionUrl = !1);
3319
3356
  }
3320
3357
  renderWelcomeView() {
3321
- return n`
3358
+ return o`
3322
3359
  <div class="welcome">
3323
3360
  <div class="welcome__message">
3324
3361
  <cx-typography variant="h5">
@@ -3345,7 +3382,7 @@ let r = class extends H {
3345
3382
  type="submit"
3346
3383
  ?loading=${this.isConnecting}
3347
3384
  variant="primary"
3348
- class=${A({
3385
+ class=${C({
3349
3386
  "welcome__connect-button": !0,
3350
3387
  "welcome__connect-button--disabled": !this.siteUrl.trim() || !this.validConnectionUrl
3351
3388
  })}
@@ -3358,7 +3395,7 @@ let r = class extends H {
3358
3395
  type="button"
3359
3396
  ?loading=${this.isCancellingConnection}
3360
3397
  variant="text"
3361
- class=${A({
3398
+ class=${C({
3362
3399
  "welcome__cancel-connection-button": !0
3363
3400
  })}
3364
3401
  ?disabled=${!this.isConnecting}
@@ -3381,16 +3418,16 @@ let r = class extends H {
3381
3418
  return this.connectionEstablished ? this.isSettingsOpened ? this.renderSettingsView() : this.renderAssetsView() : this.renderWelcomeView();
3382
3419
  }
3383
3420
  renderLoadingOverlay() {
3384
- return n`
3421
+ return o`
3385
3422
  <div class="loading-overlay">
3386
3423
  <cx-spinner></cx-spinner>
3387
3424
  </div>
3388
3425
  `;
3389
3426
  }
3390
3427
  render() {
3391
- return n`
3428
+ return o`
3392
3429
  <div
3393
- class=${A({
3430
+ class=${C({
3394
3431
  container: !0,
3395
3432
  "container--connected": this.connectionEstablished,
3396
3433
  "container--user-interaction-blocked": this.userInteractionBlocked
@@ -3410,15 +3447,15 @@ r.dependencies = {
3410
3447
  "cx-confirm-popover": Kt,
3411
3448
  "cx-dialog": jt,
3412
3449
  "cx-divider": Bt,
3413
- "cx-file-on-demand-asset": F,
3414
- "cx-folder-tree": y,
3450
+ "cx-file-on-demand-asset": L,
3451
+ "cx-folder-tree": b,
3415
3452
  "cx-format-bytes": ot,
3416
3453
  "cx-icon": J,
3417
- "cx-icon-button": St,
3454
+ "cx-icon-button": It,
3418
3455
  "cx-input": Mt,
3419
3456
  "cx-line-clamp": Q,
3420
3457
  "cx-option": Vt,
3421
- "cx-relative-time": It,
3458
+ "cx-relative-time": St,
3422
3459
  "cx-select": Ht,
3423
3460
  "cx-space": Wt,
3424
3461
  "cx-tab": qt,