@scaleflex/asset-picker 0.2.8 → 0.2.9

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.
@@ -1,5 +1,5 @@
1
- import { css as S, LitElement as C, html as n, nothing as f, svg as ue } from "lit";
2
- import { property as h, query as Ae, customElement as F, state as _ } from "lit/decorators.js";
1
+ import { css as k, LitElement as S, html as n, nothing as f, svg as fe } from "lit";
2
+ import { property as p, query as Me, customElement as F, state as _ } from "lit/decorators.js";
3
3
  class Ds {
4
4
  constructor(e) {
5
5
  this.listeners = /* @__PURE__ */ new Set(), this._notifying = !1, this._pendingState = null, this.state = e;
@@ -125,7 +125,7 @@ class js {
125
125
  }
126
126
  }
127
127
  handleSelect(e, s, i) {
128
- var l, c, p, u;
128
+ var l, c, h, u;
129
129
  const a = this.store.getState(), r = new Map(a.selectedAssets);
130
130
  if (!(((l = a.config) == null ? void 0 : l.multiSelect) ?? !0)) {
131
131
  r.clear(), r.set(e.uuid, e), this.store.setState({ selectedAssets: r, selectedFolders: /* @__PURE__ */ new Map() }), this.lastClickedIndex = s;
@@ -140,9 +140,9 @@ class js {
140
140
  this.store.setState({ selectedAssets: r, selectedFolders: g });
141
141
  } else {
142
142
  const v = Math.min(this.lastClickedIndex, s), d = Math.max(this.lastClickedIndex, s), g = a.assets;
143
- for (let w = v; w <= d; w++)
144
- g[w] && r.set(g[w].uuid, g[w]);
145
- const m = (p = a.config) == null ? void 0 : p.maxSelections;
143
+ for (let x = v; x <= d; x++)
144
+ g[x] && r.set(g[x].uuid, g[x]);
145
+ const m = (h = a.config) == null ? void 0 : h.maxSelections;
146
146
  if (m && r.size > m) return;
147
147
  this.store.setState({ selectedAssets: r });
148
148
  }
@@ -156,7 +156,7 @@ class js {
156
156
  this.lastClickedIndex = s;
157
157
  }
158
158
  handleFolderSelect(e, s, i) {
159
- var l, c, p;
159
+ var l, c, h;
160
160
  if (!this._folderSelectionEnabled) return;
161
161
  const a = this.store.getState(), r = new Map(a.selectedFolders);
162
162
  if (!(((l = a.config) == null ? void 0 : l.multiSelect) ?? !0)) {
@@ -171,7 +171,7 @@ class js {
171
171
  this.store.setState({ selectedAssets: d, selectedFolders: r });
172
172
  } else if (i.metaKey || i.ctrlKey) {
173
173
  r.has(e.uuid) ? r.delete(e.uuid) : r.set(e.uuid, e);
174
- const u = (p = a.config) == null ? void 0 : p.maxSelections, v = r.size + a.selectedAssets.size;
174
+ const u = (h = a.config) == null ? void 0 : h.maxSelections, v = r.size + a.selectedAssets.size;
175
175
  if (u && v > u) return;
176
176
  this.store.setState({ selectedFolders: r });
177
177
  } else
@@ -234,7 +234,7 @@ class Bs {
234
234
  this.observer && this.sentinel && (this.observer.unobserve(this.sentinel), this.observer.disconnect()), this.observer = void 0, this.sentinel = void 0;
235
235
  }
236
236
  }
237
- const Qt = 5, Ie = 40, Zt = 15;
237
+ const Qt = 5, De = 40, Zt = 15;
238
238
  class Us {
239
239
  constructor(e, s) {
240
240
  this.startX = 0, this.startY = 0, this.startClientX = 0, this.startClientY = 0, this.preMarqueeSelection = /* @__PURE__ */ new Map(), this.preMarqueeFolderSelection = /* @__PURE__ */ new Map(), this._dragging = !1, this._scrollRAF = null, this._lastMouseEvent = null, this.isActive = !1, this.rect = { x: 0, y: 0, width: 0, height: 0 }, this.handleMouseDown = (i) => this.onMouseDown(i), this.handleMouseMove = (i) => this.onMouseMove(i), this.handleMouseUp = () => this.onMouseUp(), this.preventSelect = (i) => i.preventDefault(), this.host = e, this.store = s, e.addController(this);
@@ -259,9 +259,10 @@ class Us {
259
259
  });
260
260
  }
261
261
  onMouseDown(e) {
262
- if (e.button !== 0 || this.isInteractiveTarget(e)) return;
263
- const s = this.container.getBoundingClientRect();
264
- this.startX = e.clientX - s.left + this.container.scrollLeft, this.startY = e.clientY - s.top + this.container.scrollTop, this.startClientX = e.clientX, this.startClientY = e.clientY, this._dragging = !1, this.isActive = !1, document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("mouseup", this.handleMouseUp);
262
+ var a;
263
+ if (e.button !== 0 || this.isInteractiveTarget(e) || !(((a = this.store.getState().config) == null ? void 0 : a.multiSelect) ?? !0)) return;
264
+ const i = this.container.getBoundingClientRect();
265
+ this.startX = e.clientX - i.left + this.container.scrollLeft, this.startY = e.clientY - i.top + this.container.scrollTop, this.startClientX = e.clientX, this.startClientY = e.clientY, this._dragging = !1, this.isActive = !1, document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("mouseup", this.handleMouseUp);
265
266
  }
266
267
  onMouseMove(e) {
267
268
  var s;
@@ -278,8 +279,8 @@ class Us {
278
279
  if (!this.container) return;
279
280
  const s = this.container.getBoundingClientRect(), i = e.clientX - s.left + this.container.scrollLeft, a = e.clientY - s.top + this.container.scrollTop;
280
281
  let r = Math.min(this.startX, i), o = Math.min(this.startY, a), l = Math.abs(i - this.startX), c = Math.abs(a - this.startY);
281
- const p = this.container.scrollWidth, u = this.container.scrollHeight;
282
- r + l > p && (l = p - r), o + c > u && (c = u - o), r < 0 && (l += r, r = 0), o < 0 && (c += o, o = 0), this.rect = { x: r, y: o, width: l, height: c }, this.host.requestUpdate(), this.selectIntersecting();
282
+ const h = this.container.scrollWidth, u = this.container.scrollHeight;
283
+ r + l > h && (l = h - r), o + c > u && (c = u - o), r < 0 && (l += r, r = 0), o < 0 && (c += o, o = 0), this.rect = { x: r, y: o, width: l, height: c }, this.host.requestUpdate(), this.selectIntersecting();
283
284
  }
284
285
  startAutoScroll(e) {
285
286
  if (!this.container) return;
@@ -287,14 +288,14 @@ class Us {
287
288
  this.stopAutoScroll();
288
289
  return;
289
290
  }
290
- const s = this.container.getBoundingClientRect(), i = e.clientY - s.top, a = s.bottom - e.clientY, r = i < Ie || a < Ie;
291
+ const s = this.container.getBoundingClientRect(), i = e.clientY - s.top, a = s.bottom - e.clientY, r = i < De || a < De;
291
292
  r && !this._scrollRAF ? this._scrollRAF = requestAnimationFrame(() => this.autoScrollTick()) : r || this.stopAutoScroll();
292
293
  }
293
294
  autoScrollTick() {
294
295
  if (this._scrollRAF = null, !this.container || !this._dragging || !this._lastMouseEvent || this.container.scrollHeight <= this.container.clientHeight) return;
295
296
  const e = this.container.getBoundingClientRect(), s = this._lastMouseEvent, i = s.clientY - e.top, a = e.bottom - s.clientY;
296
297
  let r = 0;
297
- i < Ie ? r = -Zt * (1 - i / Ie) : a < Ie && (r = Zt * (1 - a / Ie)), r !== 0 && (this.container.scrollTop += r, this.updateMarqueeRect(s), this._scrollRAF = requestAnimationFrame(() => this.autoScrollTick()));
298
+ i < De ? r = -Zt * (1 - i / De) : a < De && (r = Zt * (1 - a / De)), r !== 0 && (this.container.scrollTop += r, this.updateMarqueeRect(s), this._scrollRAF = requestAnimationFrame(() => this.autoScrollTick()));
298
299
  }
299
300
  stopAutoScroll() {
300
301
  this._scrollRAF && (cancelAnimationFrame(this._scrollRAF), this._scrollRAF = null);
@@ -326,19 +327,19 @@ class Us {
326
327
  return this.rect.x < e.x + e.width && this.rect.x + this.rect.width > e.x && this.rect.y < e.y + e.height && this.rect.y + this.rect.height > e.y;
327
328
  }
328
329
  selectIntersecting() {
329
- var p, u;
330
+ var h, u;
330
331
  if (!this.container) return;
331
- const e = this.store.getState(), s = ((p = e.config) == null ? void 0 : p.folderSelection) === !0, { assetCards: i, folderCards: a } = this.querySelectableElements(), r = new Map(this.preMarqueeSelection), o = s ? new Map(this.preMarqueeFolderSelection) : e.selectedFolders;
332
+ const e = this.store.getState(), s = ((h = e.config) == null ? void 0 : h.folderSelection) === !0, { assetCards: i, folderCards: a } = this.querySelectableElements(), r = new Map(this.preMarqueeSelection), o = s ? new Map(this.preMarqueeFolderSelection) : e.selectedFolders;
332
333
  i.forEach((v) => {
333
334
  const d = this.getCardRelativeRect(v), g = v.dataset.assetUuid;
334
335
  if (this.intersectsMarquee(d)) {
335
- const m = e.assets.find((w) => w.uuid === g);
336
+ const m = e.assets.find((x) => x.uuid === g);
336
337
  m && r.set(g, m);
337
338
  }
338
339
  }), s && a.forEach((v) => {
339
340
  const d = this.getCardRelativeRect(v), g = v.dataset.folderUuid;
340
341
  if (this.intersectsMarquee(d)) {
341
- const m = e.folders.find((w) => w.uuid === g);
342
+ const m = e.folders.find((x) => x.uuid === g);
342
343
  m && o.set(g, m);
343
344
  }
344
345
  });
@@ -383,13 +384,13 @@ class Vs {
383
384
  try {
384
385
  const l = await fetch(i.toString(), { headers: a, signal: r.signal });
385
386
  if (clearTimeout(o), !l.ok) {
386
- let p = `API error: ${l.status} ${l.statusText}`;
387
+ let h = `API error: ${l.status} ${l.statusText}`;
387
388
  try {
388
389
  const u = await l.json();
389
- u.msg && (p = `API error: ${l.status} - ${u.msg}`);
390
+ u.msg && (h = `API error: ${l.status} - ${u.msg}`);
390
391
  } catch {
391
392
  }
392
- throw new Error(p);
393
+ throw new Error(h);
393
394
  }
394
395
  const c = await l.json();
395
396
  if (c.status === "error")
@@ -413,13 +414,13 @@ class Vs {
413
414
  signal: r.signal
414
415
  });
415
416
  if (clearTimeout(o), !l.ok) {
416
- let p = `API error: ${l.status} ${l.statusText}`;
417
+ let h = `API error: ${l.status} ${l.statusText}`;
417
418
  try {
418
419
  const u = await l.json();
419
- u.msg && (p = `API error: ${l.status} - ${u.msg}`);
420
+ u.msg && (h = `API error: ${l.status} - ${u.msg}`);
420
421
  } catch {
421
422
  }
422
- throw new Error(p);
423
+ throw new Error(h);
423
424
  }
424
425
  const c = await l.json();
425
426
  if (c.status === "error")
@@ -513,7 +514,7 @@ const b = {
513
514
  APPROVER: "task_approver",
514
515
  REQUESTOR: "task_requester",
515
516
  DUE_DATE: "task_duedate"
516
- }, k = {
517
+ }, $ = {
517
518
  IS: ":",
518
519
  RANGE: "..",
519
520
  IS_NOT: ":-",
@@ -524,7 +525,7 @@ const b = {
524
525
  LESS_THAN_OR_EQUAL: "<="
525
526
  }, Ws = {
526
527
  AND: "AND"
527
- }, x = {
528
+ }, y = {
528
529
  NUMERIC: "numeric",
529
530
  SELECT_ONE: "select-one",
530
531
  MULTI_SELECT: "multi-select",
@@ -539,19 +540,19 @@ const b = {
539
540
  DECIMAL2: "decimal2",
540
541
  INTEGER_LIST: "integer-list"
541
542
  }, wt = {
542
- [x.DATE]: "date_",
543
- [x.BOOLEAN]: "bool_",
544
- [x.NUMERIC]: "num_",
545
- [x.DECIMAL2]: "dec_",
546
- [x.ATTACHMENTS_ASSETS]: "attach_",
547
- [x.ATTACHMENT_URI]: "uri_",
548
- [x.SELECT_ONE]: "one_",
549
- [x.MULTI_SELECT]: "multi_",
550
- [x.SUPERTAGS]: "tags_",
551
- [x.TEXT]: "text_",
552
- [x.TEXT_AREA]: "area_",
553
- [x.GEO_POINT]: "geo_",
554
- [x.INTEGER_LIST]: "intlist_"
543
+ [y.DATE]: "date_",
544
+ [y.BOOLEAN]: "bool_",
545
+ [y.NUMERIC]: "num_",
546
+ [y.DECIMAL2]: "dec_",
547
+ [y.ATTACHMENTS_ASSETS]: "attach_",
548
+ [y.ATTACHMENT_URI]: "uri_",
549
+ [y.SELECT_ONE]: "one_",
550
+ [y.MULTI_SELECT]: "multi_",
551
+ [y.SUPERTAGS]: "tags_",
552
+ [y.TEXT]: "text_",
553
+ [y.TEXT_AREA]: "area_",
554
+ [y.GEO_POINT]: "geo_",
555
+ [y.INTEGER_LIST]: "intlist_"
555
556
  };
556
557
  Object.fromEntries(
557
558
  Object.entries(wt).map(([t, e]) => [e, t])
@@ -565,11 +566,11 @@ const ds = Object.values(wt), Qe = {
565
566
  }, es = {
566
567
  EMPTY: "empty",
567
568
  NOT_EMPTY: "non-empty"
568
- }, G = "empty", Y = "non-empty", we = "specific", At = 10, Tt = 10, ct = 10, ps = "filters:pinned:", hs = "metadata:pinned:", ts = [
569
+ }, X = "empty", W = "non-empty", ke = "specific", At = 10, Tt = 10, ct = 10, ps = "filters:pinned:", hs = "metadata:pinned:", ts = [
569
570
  b.DATE,
570
571
  b.TYPE,
571
572
  b.SIZE
572
- ], us = k.IS, pt = "20", ht = "1", Qs = 0, Zs = [
573
+ ], us = $.IS, pt = "20", ht = "1", Qs = 0, Zs = [
573
574
  { key: b.DATE, label: "Date", icon: "calendar", type: "date" },
574
575
  { key: b.TYPE, label: "Format", icon: "file-type", type: "string" },
575
576
  { key: b.SIZE, label: "Size", icon: "scaling", type: "string" },
@@ -593,7 +594,7 @@ const ds = Object.values(wt), Qe = {
593
594
  Js,
594
595
  ...Zs,
595
596
  ei
596
- ], De = {
597
+ ], ze = {
597
598
  [b.TYPE]: "Format",
598
599
  [b.DATE]: "Date",
599
600
  [b.SIZE]: "Size",
@@ -605,7 +606,7 @@ const ds = Object.values(wt), Qe = {
605
606
  [b.COLOR]: "Color",
606
607
  [b.METADATA]: "Metadata",
607
608
  [b.APPROVAL]: "Approval"
608
- }, he = {
609
+ }, ge = {
609
610
  IMAGE: "image",
610
611
  VIDEO: "video",
611
612
  AUDIO: "audio",
@@ -615,14 +616,14 @@ const ds = Object.values(wt), Qe = {
615
616
  OTHER: "other",
616
617
  FONTS: "font"
617
618
  }, gs = [
618
- { value: he.IMAGE, label: "Image", icon: "image" },
619
- { value: he.VIDEO, label: "Video", icon: "clapperboard" },
620
- { value: he.AUDIO, label: "Audio", icon: "music" },
621
- { value: he.DOCUMENT, label: "Document", icon: "document" },
622
- { value: he.ARCHIVE, label: "Archive", icon: "archive" },
623
- { value: he.DESIGN_TEMPLATE, label: "Design template", icon: "layout-template" },
624
- { value: he.FONTS, label: "Fonts", icon: "text" },
625
- { value: he.OTHER, label: "Other", icon: "layout-grid" }
619
+ { value: ge.IMAGE, label: "Image", icon: "image" },
620
+ { value: ge.VIDEO, label: "Video", icon: "clapperboard" },
621
+ { value: ge.AUDIO, label: "Audio", icon: "music" },
622
+ { value: ge.DOCUMENT, label: "Document", icon: "document" },
623
+ { value: ge.ARCHIVE, label: "Archive", icon: "archive" },
624
+ { value: ge.DESIGN_TEMPLATE, label: "Design template", icon: "layout-template" },
625
+ { value: ge.FONTS, label: "Fonts", icon: "text" },
626
+ { value: ge.OTHER, label: "Other", icon: "layout-grid" }
626
627
  ], Mt = {
627
628
  RESOLUTION: 0,
628
629
  ORIENTATION: 1,
@@ -690,116 +691,116 @@ const ds = Object.values(wt), Qe = {
690
691
  { label: "Medium", value: "2" },
691
692
  { label: "Large", value: "4" }
692
693
  ], Ot = [
693
- { label: "Is", value: k.IS },
694
- { label: "Contains", value: k.CONTAINS_IN_TEXT }
695
- ], re = [
696
- { label: "Is", value: k.IS },
697
- { label: "Is not", value: k.IS_NOT }
694
+ { label: "Is", value: $.IS },
695
+ { label: "Contains", value: $.CONTAINS_IN_TEXT }
696
+ ], le = [
697
+ { label: "Is", value: $.IS },
698
+ { label: "Is not", value: $.IS_NOT }
698
699
  ], Lt = [
699
- { label: "Is", value: k.IS_EXACT },
700
- { label: "Contains", value: k.IS },
701
- { label: "Does not contain", value: k.IS_NOT }
700
+ { label: "Is", value: $.IS_EXACT },
701
+ { label: "Contains", value: $.IS },
702
+ { label: "Does not contain", value: $.IS_NOT }
702
703
  ], Pt = [
703
- { label: "Is", value: k.IS },
704
- { label: "Greater than", value: k.GREATER_THAN_OR_EQUAL },
705
- { label: "Is not", value: k.IS_NOT },
706
- { label: "Less than", value: k.LESS_THAN_OR_EQUAL },
707
- { label: "Between", value: k.RANGE }
704
+ { label: "Is", value: $.IS },
705
+ { label: "Greater than", value: $.GREATER_THAN_OR_EQUAL },
706
+ { label: "Is not", value: $.IS_NOT },
707
+ { label: "Less than", value: $.LESS_THAN_OR_EQUAL },
708
+ { label: "Between", value: $.RANGE }
708
709
  ], ni = [
709
- { label: "Is", value: k.IS_EXACT },
710
- { label: "Is not", value: k.IS_NOT }
710
+ { label: "Is", value: $.IS_EXACT },
711
+ { label: "Is not", value: $.IS_NOT }
711
712
  ], ss = [
712
- { label: "Contains", value: k.CONTAINS },
713
- { label: "Does not contain", value: k.IS_NOT }
713
+ { label: "Contains", value: $.CONTAINS },
714
+ { label: "Does not contain", value: $.IS_NOT }
714
715
  ], li = [
715
716
  { value: "APPROVED", label: "Approved", icon: "circle-check-big", iconColor: "var(--ap-success, oklch(0.637 0.17 151.295))" },
716
717
  { value: "PENDING", label: "Pending", icon: "clock", iconColor: "var(--ap-warning, oklch(0.734 0.157 69.419))" },
717
718
  { value: "REJECTED", label: "Rejected", icon: "x-circle", iconColor: "var(--ap-destructive, oklch(0.577 0.215 27.325))" },
718
719
  { value: "CANCELLED", label: "Cancelled", icon: "ban", iconColor: "var(--ap-muted-foreground, oklch(0.685 0.033 249.82))" }
719
- ], ke = [
720
- { label: "Empty", value: G },
721
- { label: "Not empty", value: Y }
720
+ ], Ce = [
721
+ { label: "Empty", value: X },
722
+ { label: "Not empty", value: W }
722
723
  ], It = [
723
- ...ke,
724
- { label: "Specific", value: we }
724
+ ...Ce,
725
+ { label: "Specific", value: ke }
725
726
  ], ci = [
726
- { label: "Empty", value: G },
727
- { label: "Not empty", value: Y },
727
+ { label: "Empty", value: X },
728
+ { label: "Not empty", value: W },
728
729
  { label: "True", value: "true" },
729
730
  { label: "False", value: "false" }
730
731
  ], ut = {
731
- [x.DATE]: "calendar",
732
- [x.BOOLEAN]: "toggle-left",
733
- [x.NUMERIC]: "file-digit",
734
- [x.DECIMAL2]: "decimals-arrow-right",
735
- [x.ATTACHMENTS_ASSETS]: "paperclip",
736
- [x.ATTACHMENT_URI]: "link-2",
737
- [x.SELECT_ONE]: "circle-dot",
738
- [x.MULTI_SELECT]: "square-check",
739
- [x.SUPERTAGS]: "hash",
740
- [x.TEXT]: "text-initial",
741
- [x.TEXT_AREA]: "text-align-justify",
742
- [x.GEO_POINT]: "locate",
743
- [x.INTEGER_LIST]: "list-ordered"
732
+ [y.DATE]: "calendar",
733
+ [y.BOOLEAN]: "toggle-left",
734
+ [y.NUMERIC]: "file-digit",
735
+ [y.DECIMAL2]: "decimals-arrow-right",
736
+ [y.ATTACHMENTS_ASSETS]: "paperclip",
737
+ [y.ATTACHMENT_URI]: "link-2",
738
+ [y.SELECT_ONE]: "circle-dot",
739
+ [y.MULTI_SELECT]: "square-check",
740
+ [y.SUPERTAGS]: "hash",
741
+ [y.TEXT]: "text-initial",
742
+ [y.TEXT_AREA]: "text-align-justify",
743
+ [y.GEO_POINT]: "locate",
744
+ [y.INTEGER_LIST]: "list-ordered"
744
745
  }, di = {
745
- [x.TEXT]: "text",
746
- [x.TEXT_AREA]: "text",
747
- [x.NUMERIC]: "number",
748
- [x.DECIMAL2]: "number",
749
- [x.BOOLEAN]: "boolean",
750
- [x.SELECT_ONE]: "select-one",
751
- [x.MULTI_SELECT]: "multi-select",
752
- [x.SUPERTAGS]: "tags",
753
- [x.DATE]: "date",
754
- [x.GEO_POINT]: "geo",
755
- [x.ATTACHMENTS_ASSETS]: "attachment",
756
- [x.ATTACHMENT_URI]: "attachment",
757
- [x.INTEGER_LIST]: "attachment"
746
+ [y.TEXT]: "text",
747
+ [y.TEXT_AREA]: "text",
748
+ [y.NUMERIC]: "number",
749
+ [y.DECIMAL2]: "number",
750
+ [y.BOOLEAN]: "boolean",
751
+ [y.SELECT_ONE]: "select-one",
752
+ [y.MULTI_SELECT]: "multi-select",
753
+ [y.SUPERTAGS]: "tags",
754
+ [y.DATE]: "date",
755
+ [y.GEO_POINT]: "geo",
756
+ [y.ATTACHMENTS_ASSETS]: "attachment",
757
+ [y.ATTACHMENT_URI]: "attachment",
758
+ [y.INTEGER_LIST]: "attachment"
758
759
  };
759
760
  async function pi(t) {
760
- var m, w;
761
- const e = await t.request("/settings"), s = e.settings ?? e, i = (s == null ? void 0 : s.metadata) ?? e.metadata, r = ((i == null ? void 0 : i.model) ?? [])[Qs], o = i == null ? void 0 : i.store, c = ((o == null ? void 0 : o.regional_variants_groups) ?? []).map(($) => ({
762
- uuid: $.uuid,
763
- label: $.label ?? $.name ?? "",
764
- variants: ($.variants ?? []).map((T) => ({
761
+ var m, x;
762
+ const e = await t.request("/settings"), s = e.settings ?? e, i = (s == null ? void 0 : s.metadata) ?? e.metadata, r = ((i == null ? void 0 : i.model) ?? [])[Qs], o = i == null ? void 0 : i.store, c = ((o == null ? void 0 : o.regional_variants_groups) ?? []).map((w) => ({
763
+ uuid: w.uuid,
764
+ label: w.label ?? w.name ?? "",
765
+ variants: (w.variants ?? []).map((T) => ({
765
766
  api_value: T.api_value ?? T.value ?? "",
766
767
  internal_unique_value: T.internal_unique_value ?? T.api_value ?? "",
767
768
  label: T.label ?? T.name ?? ""
768
769
  }))
769
- })).filter(($) => $.variants.length > 1), p = {};
770
- for (const $ of c)
771
- p[$.uuid] = ((m = $.variants[0]) == null ? void 0 : m.api_value) ?? "";
772
- const u = (s == null ? void 0 : s.project_branding) ?? ((w = e.settings) == null ? void 0 : w.project_branding), v = u == null ? void 0 : u.brandColor;
773
- if (!r) return { fields: [], regionalVariantGroups: c, regionalFilters: p, brandColor: v };
770
+ })).filter((w) => w.variants.length > 1), h = {};
771
+ for (const w of c)
772
+ h[w.uuid] = ((m = w.variants[0]) == null ? void 0 : m.api_value) ?? "";
773
+ const u = (s == null ? void 0 : s.project_branding) ?? ((x = e.settings) == null ? void 0 : x.project_branding), v = u == null ? void 0 : u.brandColor;
774
+ if (!r) return { fields: [], regionalVariantGroups: c, regionalFilters: h, brandColor: v };
774
775
  const d = r.groups ?? [], g = [];
775
- for (const $ of d) {
776
- const T = $.name || "Root fields";
777
- for (const y of $.fields ?? []) {
778
- const M = y.possible_values, I = M == null ? void 0 : M.map((E) => ({
776
+ for (const w of d) {
777
+ const T = w.name || "Root fields";
778
+ for (const C of w.fields ?? []) {
779
+ const O = C.possible_values, D = O == null ? void 0 : O.map((E) => ({
779
780
  api_value: E.api_value ?? E.value ?? "",
780
781
  internal_unique_value: E.internal_unique_value ?? E.api_value ?? "",
781
782
  label: E.label ?? E.name ?? E.api_value ?? ""
782
783
  }));
783
784
  g.push({
784
785
  // Use field.key (not ckey) — this is what a.meta uses as keys
785
- key: y.key ?? y.ckey,
786
- label: y.title ?? y.label ?? y.key ?? "",
787
- type: y.type ?? "text",
788
- slug: y.slug,
789
- ckey: y.ckey,
790
- possible_values: I,
786
+ key: C.key ?? C.ckey,
787
+ label: C.title ?? C.label ?? C.key ?? "",
788
+ type: C.type ?? "text",
789
+ slug: C.slug,
790
+ ckey: C.ckey,
791
+ possible_values: D,
791
792
  group: T,
792
- regionalVariantsGroupUuid: y.regional_variants_group_uuid
793
+ regionalVariantsGroupUuid: C.regional_variants_group_uuid
793
794
  });
794
795
  }
795
796
  }
796
- return { fields: g, regionalVariantGroups: c, regionalFilters: p, brandColor: v };
797
+ return { fields: g, regionalVariantGroups: c, regionalFilters: h, brandColor: v };
797
798
  }
798
- function $e(t) {
799
+ function Se(t) {
799
800
  return t.toLocaleDateString("en-CA");
800
801
  }
801
802
  function dt() {
802
- return $e(/* @__PURE__ */ new Date());
803
+ return Se(/* @__PURE__ */ new Date());
803
804
  }
804
805
  function ms(t) {
805
806
  const e = /* @__PURE__ */ new Date();
@@ -811,27 +812,27 @@ function ms(t) {
811
812
  };
812
813
  case "last_week": {
813
814
  const s = new Date(e);
814
- return s.setDate(s.getDate() - 7), { from: $e(s), to: null };
815
+ return s.setDate(s.getDate() - 7), { from: Se(s), to: null };
815
816
  }
816
817
  case "within_week": {
817
818
  const s = new Date(e);
818
- return s.setDate(s.getDate() + 7), { from: dt(), to: $e(s) };
819
+ return s.setDate(s.getDate() + 7), { from: dt(), to: Se(s) };
819
820
  }
820
821
  case "last_month": {
821
822
  const s = new Date(e);
822
- return s.setDate(s.getDate() - 30), { from: $e(s), to: null };
823
+ return s.setDate(s.getDate() - 30), { from: Se(s), to: null };
823
824
  }
824
825
  case "within_month": {
825
826
  const s = new Date(e);
826
- return s.setDate(s.getDate() + 30), { from: dt(), to: $e(s) };
827
+ return s.setDate(s.getDate() + 30), { from: dt(), to: Se(s) };
827
828
  }
828
829
  case "last_year": {
829
830
  const s = new Date(e);
830
- return s.setDate(s.getDate() - 365), { from: $e(s), to: null };
831
+ return s.setDate(s.getDate() - 365), { from: Se(s), to: null };
831
832
  }
832
833
  case "within_year": {
833
834
  const s = new Date(e);
834
- return s.setDate(s.getDate() + 365), { from: dt(), to: $e(s) };
835
+ return s.setDate(s.getDate() + 365), { from: dt(), to: Se(s) };
835
836
  }
836
837
  default:
837
838
  return null;
@@ -884,9 +885,9 @@ function vi(t, e) {
884
885
  case b.FACES:
885
886
  return bi(t, i, a);
886
887
  case b.TAGS:
887
- return Se(t, i, rs(a), ",", r);
888
+ return Fe(t, i, rs(a), ",", r);
888
889
  case b.LABELS:
889
- return Se(t, i, rs(a), ",", r);
890
+ return Fe(t, i, rs(a), ",", r);
890
891
  case b.COLOR:
891
892
  return _i(i, a, r);
892
893
  case b.TYPE:
@@ -894,9 +895,9 @@ function vi(t, e) {
894
895
  case b.MIME_TYPE:
895
896
  return as(t, a, i);
896
897
  case b.PRODUCT_REF:
897
- return Se(t, "=%", a, ",", r);
898
+ return Fe(t, "=%", a, ",", r);
898
899
  default:
899
- return Se(t, i, a, ",", r);
900
+ return Fe(t, i, a, ",", r);
900
901
  }
901
902
  }
902
903
  function bs(t, e) {
@@ -929,7 +930,7 @@ function mi(t, e, s) {
929
930
  function bi(t, e, s) {
930
931
  return s.length === 0 ? [] : [`${t}${e}"${s.join(",")}"`];
931
932
  }
932
- function Se(t, e, s, i, a) {
933
+ function Fe(t, e, s, i, a) {
933
934
  if (s.length === 0) return [];
934
935
  if (a === Ws.AND)
935
936
  return s.map((o) => `${t}${e}"${o}"`);
@@ -937,7 +938,7 @@ function Se(t, e, s, i, a) {
937
938
  return [`${t}${e}${r}`];
938
939
  }
939
940
  function _i(t, e, s) {
940
- const i = [], a = Se("color_search", t, e, ",", s);
941
+ const i = [], a = Fe("color_search", t, e, ",", s);
941
942
  return i.push(...a), i.push('color_operator:"AND"'), i;
942
943
  }
943
944
  function as(t, e, s, i) {
@@ -948,8 +949,8 @@ function as(t, e, s, i) {
948
949
  function yi(t) {
949
950
  const e = [];
950
951
  if (typeof t == "object" && t !== null && !Array.isArray(t)) {
951
- const o = t, l = o.resolution, c = o.orientation, p = o.faces;
952
- return l != null && l.length && e.push(`resolution:"${l.join(",")}"`), c != null && c.length && e.push(`orientation:"${c.join(",")}"`), p != null && p.length && e.push(`faces:"${p.join(",")}"`), e;
952
+ const o = t, l = o.resolution, c = o.orientation, h = o.faces;
953
+ return l != null && l.length && e.push(`resolution:"${l.join(",")}"`), c != null && c.length && e.push(`orientation:"${c.join(",")}"`), h != null && h.length && e.push(`faces:"${h.join(",")}"`), e;
953
954
  }
954
955
  const s = t, i = s[Mt.RESOLUTION], a = s[Mt.ORIENTATION], r = s[Mt.FACES];
955
956
  return i && e.push(`resolution:"${i}"`), a && e.push(`orientation:"${a}"`), r && e.push(`faces:"${r}"`), e;
@@ -960,22 +961,22 @@ function xi(t, e) {
960
961
  return wi(s, e, i);
961
962
  const a = e, { operator: r = us, values: o = [], logic: l, metadataType: c } = a;
962
963
  if (o.length === 0) return [];
963
- if (o.length === 1 && (o[0] === G || o[0] === Y)) {
964
- const p = c === x.GEO_POINT ? k.IS + "~" : k.IS;
965
- return [`${s}${p}"${o[0]}"`];
966
- }
967
- if ((c === x.NUMERIC || c === x.DECIMAL2) && r === k.RANGE)
968
- return [`${s}${k.IS}"${o.join('","')}"`];
969
- if (c === x.GEO_POINT) {
970
- const p = o.map((u) => {
964
+ if (o.length === 1 && (o[0] === X || o[0] === W)) {
965
+ const h = c === y.GEO_POINT ? $.IS + "~" : $.IS;
966
+ return [`${s}${h}"${o[0]}"`];
967
+ }
968
+ if ((c === y.NUMERIC || c === y.DECIMAL2) && r === $.RANGE)
969
+ return [`${s}${$.IS}"${o.join('","')}"`];
970
+ if (c === y.GEO_POINT) {
971
+ const h = o.map((u) => {
971
972
  const v = u.indexOf("..");
972
973
  if (v === -1) return `(${u})`;
973
974
  const d = u.slice(0, v), g = u.slice(v);
974
975
  return `(${d})${g}`;
975
976
  });
976
- return Se(s, r + "~", p, ",", l);
977
+ return Fe(s, r + "~", h, ",", l);
977
978
  }
978
- return Se(s, r, o, ",", l);
979
+ return Fe(s, r, o, ",", l);
979
980
  }
980
981
  function wi(t, e, s) {
981
982
  const i = bs(t, e);
@@ -1111,9 +1112,9 @@ function Dt(t) {
1111
1112
  return t <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
1112
1113
  }
1113
1114
  function Di(t, e, s) {
1114
- const i = Dt(t), a = Dt(e), r = Dt(s), o = 0.4122214708 * i + 0.5363325363 * a + 0.0514459929 * r, l = 0.2119034982 * i + 0.6806995451 * a + 0.1073969566 * r, c = 0.0883024619 * i + 0.2817188376 * a + 0.6299787005 * r, p = Math.cbrt(o), u = Math.cbrt(l), v = Math.cbrt(c), d = 0.2104542553 * p + 0.793617785 * u - 0.0040720468 * v, g = 1.9779984951 * p - 2.428592205 * u + 0.4505937099 * v, m = 0.0259040371 * p + 0.7827717662 * u - 0.808675766 * v, w = Math.sqrt(g * g + m * m);
1115
- let $ = Math.atan2(m, g) * (180 / Math.PI);
1116
- return $ < 0 && ($ += 360), [d, w, $];
1115
+ const i = Dt(t), a = Dt(e), r = Dt(s), o = 0.4122214708 * i + 0.5363325363 * a + 0.0514459929 * r, l = 0.2119034982 * i + 0.6806995451 * a + 0.1073969566 * r, c = 0.0883024619 * i + 0.2817188376 * a + 0.6299787005 * r, h = Math.cbrt(o), u = Math.cbrt(l), v = Math.cbrt(c), d = 0.2104542553 * h + 0.793617785 * u - 0.0040720468 * v, g = 1.9779984951 * h - 2.428592205 * u + 0.4505937099 * v, m = 0.0259040371 * h + 0.7827717662 * u - 0.808675766 * v, x = Math.sqrt(g * g + m * m);
1116
+ let w = Math.atan2(m, g) * (180 / Math.PI);
1117
+ return w < 0 && (w += 360), [d, x, w];
1117
1118
  }
1118
1119
  function zi(t) {
1119
1120
  return t > 0.7;
@@ -1134,8 +1135,8 @@ function Ri(t, e) {
1134
1135
  t.style.removeProperty(v);
1135
1136
  return;
1136
1137
  }
1137
- const [i, a, r] = Ii(e), [o, l, c] = Di(i, a, r), p = `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)})`, u = zi(o) ? "#000" : "#fff";
1138
- t.style.setProperty("--ap-primary", p), t.style.setProperty("--ap-primary-foreground", u), t.style.setProperty("--ap-primary-10", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.1)`), t.style.setProperty("--ap-primary-20", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.2)`), t.style.setProperty("--ap-accent", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.07)`), t.style.setProperty("--ap-accent-foreground", p), t.style.setProperty("--ap-ring", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.7)`), t.style.setProperty("--ap-selection-bg", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.08)`);
1138
+ const [i, a, r] = Ii(e), [o, l, c] = Di(i, a, r), h = `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)})`, u = zi(o) ? "#000" : "#fff";
1139
+ t.style.setProperty("--ap-primary", h), t.style.setProperty("--ap-primary-foreground", u), t.style.setProperty("--ap-primary-10", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.1)`), t.style.setProperty("--ap-primary-20", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.2)`), t.style.setProperty("--ap-accent", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.07)`), t.style.setProperty("--ap-accent-foreground", h), t.style.setProperty("--ap-ring", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.7)`), t.style.setProperty("--ap-selection-bg", `oklch(${o.toFixed(3)} ${l.toFixed(3)} ${c.toFixed(1)} / 0.08)`);
1139
1140
  }
1140
1141
  const Ut = [
1141
1142
  { value: "name", label: "Name" },
@@ -1158,7 +1159,7 @@ var Bi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, Vt = (t, e
1158
1159
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
1159
1160
  return i && a && Bi(e, s, a), a;
1160
1161
  };
1161
- let et = class extends C {
1162
+ let et = class extends S {
1162
1163
  constructor() {
1163
1164
  super(...arguments), this.open = !1;
1164
1165
  }
@@ -1205,7 +1206,7 @@ let et = class extends C {
1205
1206
  `;
1206
1207
  }
1207
1208
  };
1208
- et.styles = S`
1209
+ et.styles = k`
1209
1210
  :host {
1210
1211
  display: contents;
1211
1212
  }
@@ -1280,10 +1281,10 @@ et.styles = S`
1280
1281
  }
1281
1282
  `;
1282
1283
  Vt([
1283
- h({ type: Boolean })
1284
+ p({ type: Boolean })
1284
1285
  ], et.prototype, "open", 2);
1285
1286
  Vt([
1286
- Ae("dialog")
1287
+ Me("dialog")
1287
1288
  ], et.prototype, "dialog", 2);
1288
1289
  et = Vt([
1289
1290
  F("ap-modal")
@@ -1295,7 +1296,7 @@ function Vi(t, e) {
1295
1296
  });
1296
1297
  return i.cancel = () => clearTimeout(s), i;
1297
1298
  }
1298
- const te = S`
1299
+ const ae = k`
1299
1300
  *, *::before, *::after {
1300
1301
  box-sizing: border-box;
1301
1302
  }
@@ -1305,7 +1306,7 @@ var qi = Object.defineProperty, Hi = Object.getOwnPropertyDescriptor, $t = (t, e
1305
1306
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
1306
1307
  return i && a && qi(e, s, a), a;
1307
1308
  };
1308
- let Re = class extends C {
1309
+ let Ne = class extends S {
1309
1310
  constructor() {
1310
1311
  super(...arguments), this.groups = [], this.selectedFilters = {}, this._open = !1, this._handleOutsideClick = (t) => {
1311
1312
  this._open && !t.composedPath().includes(this) && (this._open = !1);
@@ -1363,7 +1364,7 @@ let Re = class extends C {
1363
1364
  `;
1364
1365
  }
1365
1366
  };
1366
- Re.styles = S`
1367
+ Ne.styles = k`
1367
1368
  :host {
1368
1369
  position: relative;
1369
1370
  display: inline-block;
@@ -1450,18 +1451,18 @@ Re.styles = S`
1450
1451
  }
1451
1452
  `;
1452
1453
  $t([
1453
- h({ type: Array })
1454
- ], Re.prototype, "groups", 2);
1454
+ p({ type: Array })
1455
+ ], Ne.prototype, "groups", 2);
1455
1456
  $t([
1456
- h({ type: Object })
1457
- ], Re.prototype, "selectedFilters", 2);
1457
+ p({ type: Object })
1458
+ ], Ne.prototype, "selectedFilters", 2);
1458
1459
  $t([
1459
1460
  _()
1460
- ], Re.prototype, "_open", 2);
1461
- Re = $t([
1461
+ ], Ne.prototype, "_open", 2);
1462
+ Ne = $t([
1462
1463
  F("ap-regional-settings")
1463
- ], Re);
1464
- var Ki = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, de = (t, e, s, i) => {
1464
+ ], Ne);
1465
+ var Ki = Object.defineProperty, Gi = Object.getOwnPropertyDescriptor, he = (t, e, s, i) => {
1465
1466
  for (var a = i > 1 ? void 0 : i ? Gi(e, s) : e, r = t.length - 1, o; r >= 0; r--)
1466
1467
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
1467
1468
  return i && a && Ki(e, s, a), a;
@@ -1470,7 +1471,7 @@ const Yi = [
1470
1471
  { value: "assets", label: "Assets", icon: "gallery-vertical-end" },
1471
1472
  { value: "folders", label: "Folders", icon: "folder-open" }
1472
1473
  ];
1473
- let J = class extends C {
1474
+ let te = class extends S {
1474
1475
  constructor() {
1475
1476
  super(...arguments), this.activeTab = "assets", this.tabs = ["assets", "folders"], this.viewMode = "grid", this.searchQuery = "", this.regionalGroups = [], this.regionalFilters = {}, this.hideClose = !1, this._localSearch = "", this._debouncedSearch = Vi((t) => {
1476
1477
  (t.length === 0 || t.length >= 3) && this.dispatchEvent(new CustomEvent("search-change", { detail: { value: t }, bubbles: !0, composed: !0 }));
@@ -1555,7 +1556,7 @@ let J = class extends C {
1555
1556
  `;
1556
1557
  }
1557
1558
  };
1558
- J.styles = [te, S`
1559
+ te.styles = [ae, k`
1559
1560
  :host {
1560
1561
  display: block;
1561
1562
  padding: 16px 20px;
@@ -1667,39 +1668,39 @@ J.styles = [te, S`
1667
1668
  background: var(--ap-border, oklch(92.86% 0.009 247.92));
1668
1669
  }
1669
1670
  `];
1670
- de([
1671
- h()
1672
- ], J.prototype, "activeTab", 2);
1673
- de([
1674
- h({ type: Array })
1675
- ], J.prototype, "tabs", 2);
1676
- de([
1677
- h()
1678
- ], J.prototype, "viewMode", 2);
1679
- de([
1680
- h()
1681
- ], J.prototype, "searchQuery", 2);
1682
- de([
1683
- h({ type: Array })
1684
- ], J.prototype, "regionalGroups", 2);
1685
- de([
1686
- h({ type: Object })
1687
- ], J.prototype, "regionalFilters", 2);
1688
- de([
1689
- h({ type: Boolean })
1690
- ], J.prototype, "hideClose", 2);
1691
- de([
1671
+ he([
1672
+ p()
1673
+ ], te.prototype, "activeTab", 2);
1674
+ he([
1675
+ p({ type: Array })
1676
+ ], te.prototype, "tabs", 2);
1677
+ he([
1678
+ p()
1679
+ ], te.prototype, "viewMode", 2);
1680
+ he([
1681
+ p()
1682
+ ], te.prototype, "searchQuery", 2);
1683
+ he([
1684
+ p({ type: Array })
1685
+ ], te.prototype, "regionalGroups", 2);
1686
+ he([
1687
+ p({ type: Object })
1688
+ ], te.prototype, "regionalFilters", 2);
1689
+ he([
1690
+ p({ type: Boolean })
1691
+ ], te.prototype, "hideClose", 2);
1692
+ he([
1692
1693
  _()
1693
- ], J.prototype, "_localSearch", 2);
1694
- J = de([
1694
+ ], te.prototype, "_localSearch", 2);
1695
+ te = he([
1695
1696
  F("ap-header")
1696
- ], J);
1697
+ ], te);
1697
1698
  var Xi = Object.defineProperty, Wi = Object.getOwnPropertyDescriptor, ks = (t, e, s, i) => {
1698
1699
  for (var a = i > 1 ? void 0 : i ? Wi(e, s) : e, r = t.length - 1, o; r >= 0; r--)
1699
1700
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
1700
1701
  return i && a && Xi(e, s, a), a;
1701
1702
  };
1702
- let gt = class extends C {
1703
+ let gt = class extends S {
1703
1704
  constructor() {
1704
1705
  super(...arguments), this.items = [];
1705
1706
  }
@@ -1720,7 +1721,7 @@ let gt = class extends C {
1720
1721
  `;
1721
1722
  }
1722
1723
  };
1723
- gt.styles = S`
1724
+ gt.styles = k`
1724
1725
  :host {
1725
1726
  display: block;
1726
1727
  padding: 4px 20px 12px;
@@ -1758,7 +1759,7 @@ gt.styles = S`
1758
1759
  }
1759
1760
  `;
1760
1761
  ks([
1761
- h({ type: Array })
1762
+ p({ type: Array })
1762
1763
  ], gt.prototype, "items", 2);
1763
1764
  gt = ks([
1764
1765
  F("ap-breadcrumb")
@@ -1768,7 +1769,7 @@ var Qi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, qt = (t, e
1768
1769
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
1769
1770
  return i && a && Qi(e, s, a), a;
1770
1771
  };
1771
- let tt = class extends C {
1772
+ let tt = class extends S {
1772
1773
  constructor() {
1773
1774
  super(...arguments), this.title = "", this.open = !1;
1774
1775
  }
@@ -1781,7 +1782,7 @@ let tt = class extends C {
1781
1782
  ` : n``;
1782
1783
  }
1783
1784
  };
1784
- tt.styles = S`
1785
+ tt.styles = k`
1785
1786
  :host {
1786
1787
  display: block;
1787
1788
  }
@@ -1808,10 +1809,10 @@ tt.styles = S`
1808
1809
  }
1809
1810
  `;
1810
1811
  qt([
1811
- h()
1812
+ p()
1812
1813
  ], tt.prototype, "title", 2);
1813
1814
  qt([
1814
- h({ type: Boolean })
1815
+ p({ type: Boolean })
1815
1816
  ], tt.prototype, "open", 2);
1816
1817
  tt = qt([
1817
1818
  F("ap-filter-popover")
@@ -1821,7 +1822,7 @@ var Ji = Object.defineProperty, ea = Object.getOwnPropertyDescriptor, Ss = (t, e
1821
1822
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
1822
1823
  return i && a && Ji(e, s, a), a;
1823
1824
  };
1824
- let ft = class extends C {
1825
+ let ft = class extends S {
1825
1826
  constructor() {
1826
1827
  super(...arguments), this.selected = [];
1827
1828
  }
@@ -1832,7 +1833,7 @@ let ft = class extends C {
1832
1833
  detail: {
1833
1834
  key: b.TYPE,
1834
1835
  values: e,
1835
- operator: k.IS
1836
+ operator: $.IS
1836
1837
  },
1837
1838
  bubbles: !0,
1838
1839
  composed: !0
@@ -1861,7 +1862,7 @@ let ft = class extends C {
1861
1862
  `;
1862
1863
  }
1863
1864
  };
1864
- ft.styles = S`
1865
+ ft.styles = k`
1865
1866
  :host {
1866
1867
  display: block;
1867
1868
  }
@@ -1910,12 +1911,12 @@ ft.styles = S`
1910
1911
  }
1911
1912
  `;
1912
1913
  Ss([
1913
- h({ type: Array })
1914
+ p({ type: Array })
1914
1915
  ], ft.prototype, "selected", 2);
1915
1916
  ft = Ss([
1916
1917
  F("ap-filter-type")
1917
1918
  ], ft);
1918
- const pe = S`
1919
+ const ue = k`
1919
1920
  :host {
1920
1921
  display: block;
1921
1922
  }
@@ -2199,7 +2200,7 @@ const pe = S`
2199
2200
  color: var(--ap-muted-foreground, oklch(0.685 0.033 249.82));
2200
2201
  }
2201
2202
  `;
2202
- var ta = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Te = (t, e, s, i) => {
2203
+ var ta = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Oe = (t, e, s, i) => {
2203
2204
  for (var a = i > 1 ? void 0 : i ? sa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
2204
2205
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
2205
2206
  return i && a && ta(e, s, a), a;
@@ -2207,7 +2208,7 @@ var ta = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Te = (t, e
2207
2208
  function zt(t) {
2208
2209
  return t.toISOString().split("T")[0];
2209
2210
  }
2210
- let oe = class extends C {
2211
+ let ce = class extends S {
2211
2212
  constructor() {
2212
2213
  super(...arguments), this.filterKey = b.DATE, this.field = "created", this.kind = null, this.preset = "", this.from = "", this.to = "";
2213
2214
  }
@@ -2379,38 +2380,38 @@ let oe = class extends C {
2379
2380
  `;
2380
2381
  }
2381
2382
  };
2382
- oe.styles = [pe, S`
2383
+ ce.styles = [ue, k`
2383
2384
  .date-inputs {
2384
2385
  margin-top: 4px;
2385
2386
  }
2386
2387
  `];
2387
- Te([
2388
- h()
2389
- ], oe.prototype, "filterKey", 2);
2390
- Te([
2391
- h()
2392
- ], oe.prototype, "field", 2);
2393
- Te([
2394
- h()
2395
- ], oe.prototype, "kind", 2);
2396
- Te([
2397
- h()
2398
- ], oe.prototype, "preset", 2);
2399
- Te([
2400
- h()
2401
- ], oe.prototype, "from", 2);
2402
- Te([
2403
- h()
2404
- ], oe.prototype, "to", 2);
2405
- oe = Te([
2388
+ Oe([
2389
+ p()
2390
+ ], ce.prototype, "filterKey", 2);
2391
+ Oe([
2392
+ p()
2393
+ ], ce.prototype, "field", 2);
2394
+ Oe([
2395
+ p()
2396
+ ], ce.prototype, "kind", 2);
2397
+ Oe([
2398
+ p()
2399
+ ], ce.prototype, "preset", 2);
2400
+ Oe([
2401
+ p()
2402
+ ], ce.prototype, "from", 2);
2403
+ Oe([
2404
+ p()
2405
+ ], ce.prototype, "to", 2);
2406
+ ce = Oe([
2406
2407
  F("ap-filter-date")
2407
- ], oe);
2408
- var ia = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, He = (t, e, s, i) => {
2408
+ ], ce);
2409
+ var ia = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, Ke = (t, e, s, i) => {
2409
2410
  for (var a = i > 1 ? void 0 : i ? aa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
2410
2411
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
2411
2412
  return i && a && ia(e, s, a), a;
2412
2413
  };
2413
- let ge = class extends C {
2414
+ let ve = class extends S {
2414
2415
  constructor() {
2415
2416
  super(...arguments), this.tags = [], this.selected = [], this.filterKey = b.TAGS, this._search = "";
2416
2417
  }
@@ -2441,7 +2442,7 @@ let ge = class extends C {
2441
2442
  detail: {
2442
2443
  key: this.filterKey,
2443
2444
  values: s,
2444
- operator: k.IS
2445
+ operator: $.IS
2445
2446
  },
2446
2447
  bubbles: !0,
2447
2448
  composed: !0
@@ -2455,7 +2456,7 @@ let ge = class extends C {
2455
2456
  detail: {
2456
2457
  key: this.filterKey,
2457
2458
  values: e,
2458
- operator: k.IS
2459
+ operator: $.IS
2459
2460
  },
2460
2461
  bubbles: !0,
2461
2462
  composed: !0
@@ -2468,7 +2469,7 @@ let ge = class extends C {
2468
2469
  detail: {
2469
2470
  key: this.filterKey,
2470
2471
  values: [],
2471
- operator: k.IS
2472
+ operator: $.IS
2472
2473
  },
2473
2474
  bubbles: !0,
2474
2475
  composed: !0
@@ -2613,7 +2614,7 @@ let ge = class extends C {
2613
2614
  `;
2614
2615
  }
2615
2616
  };
2616
- ge.styles = [te, pe, S`
2617
+ ve.styles = [ae, ue, k`
2617
2618
  .tag-item {
2618
2619
  display: flex;
2619
2620
  align-items: center;
@@ -2698,30 +2699,30 @@ ge.styles = [te, pe, S`
2698
2699
  overflow-y: visible;
2699
2700
  }
2700
2701
  `];
2701
- He([
2702
- h({ type: Array })
2703
- ], ge.prototype, "tags", 2);
2704
- He([
2705
- h({ type: Array })
2706
- ], ge.prototype, "selected", 2);
2707
- He([
2708
- h()
2709
- ], ge.prototype, "filterKey", 2);
2710
- He([
2711
- Ae(".tag-search")
2712
- ], ge.prototype, "_searchInput", 2);
2713
- He([
2702
+ Ke([
2703
+ p({ type: Array })
2704
+ ], ve.prototype, "tags", 2);
2705
+ Ke([
2706
+ p({ type: Array })
2707
+ ], ve.prototype, "selected", 2);
2708
+ Ke([
2709
+ p()
2710
+ ], ve.prototype, "filterKey", 2);
2711
+ Ke([
2712
+ Me(".tag-search")
2713
+ ], ve.prototype, "_searchInput", 2);
2714
+ Ke([
2714
2715
  _()
2715
- ], ge.prototype, "_search", 2);
2716
- ge = He([
2716
+ ], ve.prototype, "_search", 2);
2717
+ ve = Ke([
2717
2718
  F("ap-filter-tags")
2718
- ], ge);
2719
+ ], ve);
2719
2720
  var ra = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, at = (t, e, s, i) => {
2720
2721
  for (var a = i > 1 ? void 0 : i ? oa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
2721
2722
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
2722
2723
  return i && a && ra(e, s, a), a;
2723
2724
  };
2724
- let Ce = class extends C {
2725
+ let Ee = class extends S {
2725
2726
  constructor() {
2726
2727
  super(...arguments), this.labels = [], this.selected = [], this._search = "";
2727
2728
  }
@@ -2746,7 +2747,7 @@ let Ce = class extends C {
2746
2747
  detail: {
2747
2748
  key: b.LABELS,
2748
2749
  values: s,
2749
- operator: k.IS
2750
+ operator: $.IS
2750
2751
  },
2751
2752
  bubbles: !0,
2752
2753
  composed: !0
@@ -2760,7 +2761,7 @@ let Ce = class extends C {
2760
2761
  detail: {
2761
2762
  key: b.LABELS,
2762
2763
  values: e,
2763
- operator: k.IS
2764
+ operator: $.IS
2764
2765
  },
2765
2766
  bubbles: !0,
2766
2767
  composed: !0
@@ -2773,7 +2774,7 @@ let Ce = class extends C {
2773
2774
  detail: {
2774
2775
  key: b.LABELS,
2775
2776
  values: [],
2776
- operator: k.IS
2777
+ operator: $.IS
2777
2778
  },
2778
2779
  bubbles: !0,
2779
2780
  composed: !0
@@ -2877,7 +2878,7 @@ let Ce = class extends C {
2877
2878
  `;
2878
2879
  }
2879
2880
  };
2880
- Ce.styles = [pe, S`
2881
+ Ee.styles = [ue, k`
2881
2882
  .label-item {
2882
2883
  display: flex;
2883
2884
  align-items: center;
@@ -2928,21 +2929,21 @@ Ce.styles = [pe, S`
2928
2929
  }
2929
2930
  `];
2930
2931
  at([
2931
- h({ type: Array })
2932
- ], Ce.prototype, "labels", 2);
2932
+ p({ type: Array })
2933
+ ], Ee.prototype, "labels", 2);
2933
2934
  at([
2934
- h({ type: Array })
2935
- ], Ce.prototype, "selected", 2);
2935
+ p({ type: Array })
2936
+ ], Ee.prototype, "selected", 2);
2936
2937
  at([
2937
- Ae(".search-input")
2938
- ], Ce.prototype, "_searchInput", 2);
2938
+ Me(".search-input")
2939
+ ], Ee.prototype, "_searchInput", 2);
2939
2940
  at([
2940
2941
  _()
2941
- ], Ce.prototype, "_search", 2);
2942
- Ce = at([
2942
+ ], Ee.prototype, "_search", 2);
2943
+ Ee = at([
2943
2944
  F("ap-filter-labels")
2944
- ], Ce);
2945
- var na = Object.defineProperty, la = Object.getOwnPropertyDescriptor, Ke = (t, e, s, i) => {
2945
+ ], Ee);
2946
+ var na = Object.defineProperty, la = Object.getOwnPropertyDescriptor, Ge = (t, e, s, i) => {
2946
2947
  for (var a = i > 1 ? void 0 : i ? la(e, s) : e, r = t.length - 1, o; r >= 0; r--)
2947
2948
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
2948
2949
  return i && a && na(e, s, a), a;
@@ -2956,7 +2957,7 @@ function ca(t) {
2956
2957
  coverage: e[3] || pt
2957
2958
  };
2958
2959
  }
2959
- let fe = class extends C {
2960
+ let me = class extends S {
2960
2961
  constructor() {
2961
2962
  super(...arguments), this.values = [], this._colors = [], this._advanced = !1, this._showPalette = !1, this._initialized = !1;
2962
2963
  }
@@ -3177,7 +3178,7 @@ let fe = class extends C {
3177
3178
  `;
3178
3179
  }
3179
3180
  };
3180
- fe.styles = [te, pe, S`
3181
+ me.styles = [ae, ue, k`
3181
3182
  /* ── Palette ── */
3182
3183
  .palette {
3183
3184
  display: grid;
@@ -3415,25 +3416,25 @@ fe.styles = [te, pe, S`
3415
3416
  opacity: 0.8;
3416
3417
  }
3417
3418
  `];
3418
- Ke([
3419
- h({ type: Array })
3420
- ], fe.prototype, "values", 2);
3421
- Ke([
3419
+ Ge([
3420
+ p({ type: Array })
3421
+ ], me.prototype, "values", 2);
3422
+ Ge([
3422
3423
  _()
3423
- ], fe.prototype, "_colors", 2);
3424
- Ke([
3424
+ ], me.prototype, "_colors", 2);
3425
+ Ge([
3425
3426
  _()
3426
- ], fe.prototype, "_advanced", 2);
3427
- Ke([
3427
+ ], me.prototype, "_advanced", 2);
3428
+ Ge([
3428
3429
  _()
3429
- ], fe.prototype, "_showPalette", 2);
3430
- Ke([
3430
+ ], me.prototype, "_showPalette", 2);
3431
+ Ge([
3431
3432
  _()
3432
- ], fe.prototype, "_initialized", 2);
3433
- fe = Ke([
3433
+ ], me.prototype, "_initialized", 2);
3434
+ me = Ge([
3434
3435
  F("ap-filter-color")
3435
- ], fe);
3436
- var da = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, Me = (t, e, s, i) => {
3436
+ ], me);
3437
+ var da = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, Le = (t, e, s, i) => {
3437
3438
  for (var a = i > 1 ? void 0 : i ? pa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
3438
3439
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
3439
3440
  return i && a && da(e, s, a), a;
@@ -3447,7 +3448,7 @@ const ha = {
3447
3448
  { value: "MB", label: "MB" },
3448
3449
  { value: "GB", label: "GB" }
3449
3450
  ];
3450
- let ne = class extends C {
3451
+ let de = class extends S {
3451
3452
  constructor() {
3452
3453
  super(...arguments), this.min = 0, this.max = 0, this._minVal = "", this._maxVal = "", this._unit = "MB", this._initialized = !1;
3453
3454
  }
@@ -3478,7 +3479,7 @@ let ne = class extends C {
3478
3479
  detail: {
3479
3480
  key: b.SIZE,
3480
3481
  values: [],
3481
- operator: k.RANGE
3482
+ operator: $.RANGE
3482
3483
  },
3483
3484
  bubbles: !0,
3484
3485
  composed: !0
@@ -3491,7 +3492,7 @@ let ne = class extends C {
3491
3492
  detail: {
3492
3493
  key: b.SIZE,
3493
3494
  values: [i],
3494
- operator: k.RANGE
3495
+ operator: $.RANGE
3495
3496
  },
3496
3497
  bubbles: !0,
3497
3498
  composed: !0
@@ -3552,9 +3553,9 @@ let ne = class extends C {
3552
3553
  `;
3553
3554
  }
3554
3555
  };
3555
- ne.styles = [
3556
- pe,
3557
- S`
3556
+ de.styles = [
3557
+ ue,
3558
+ k`
3558
3559
  /* Hide number input spinners */
3559
3560
  .filter-input[type='number']::-webkit-inner-spin-button,
3560
3561
  .filter-input[type='number']::-webkit-outer-spin-button {
@@ -3575,45 +3576,45 @@ ne.styles = [
3575
3576
  }
3576
3577
  `
3577
3578
  ];
3578
- Me([
3579
- h({ type: Number })
3580
- ], ne.prototype, "min", 2);
3581
- Me([
3582
- h({ type: Number })
3583
- ], ne.prototype, "max", 2);
3584
- Me([
3579
+ Le([
3580
+ p({ type: Number })
3581
+ ], de.prototype, "min", 2);
3582
+ Le([
3583
+ p({ type: Number })
3584
+ ], de.prototype, "max", 2);
3585
+ Le([
3585
3586
  _()
3586
- ], ne.prototype, "_minVal", 2);
3587
- Me([
3587
+ ], de.prototype, "_minVal", 2);
3588
+ Le([
3588
3589
  _()
3589
- ], ne.prototype, "_maxVal", 2);
3590
- Me([
3590
+ ], de.prototype, "_maxVal", 2);
3591
+ Le([
3591
3592
  _()
3592
- ], ne.prototype, "_unit", 2);
3593
- Me([
3593
+ ], de.prototype, "_unit", 2);
3594
+ Le([
3594
3595
  _()
3595
- ], ne.prototype, "_initialized", 2);
3596
- ne = Me([
3596
+ ], de.prototype, "_initialized", 2);
3597
+ de = Le([
3597
3598
  F("ap-filter-size")
3598
- ], ne);
3599
+ ], de);
3599
3600
  var ga = Object.defineProperty, fa = Object.getOwnPropertyDescriptor, kt = (t, e, s, i) => {
3600
3601
  for (var a = i > 1 ? void 0 : i ? fa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
3601
3602
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
3602
3603
  return i && a && ga(e, s, a), a;
3603
3604
  };
3604
- const va = ue`
3605
+ const va = fe`
3605
3606
  <svg width="20" height="20" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg">
3606
3607
  <path d="M2.66666 1.9987C2.29847 1.9987 1.99999 2.29717 1.99999 2.66536L1.99999 13.332C1.99999 13.7002 2.29847 13.9987 2.66666 13.9987L9.33332 13.9987C9.70151 13.9987 9.99999 13.7002 9.99999 13.332L9.99999 2.66536C9.99999 2.29717 9.70151 1.9987 9.33332 1.9987L2.66666 1.9987ZM9.33332 0.665364C10.4379 0.665364 11.3333 1.56079 11.3333 2.66536L11.3333 13.332C11.3333 14.4366 10.4379 15.332 9.33332 15.332L2.66666 15.332C1.56209 15.332 0.666656 14.4366 0.666656 13.332L0.666656 2.66536C0.666656 1.56079 1.56209 0.665364 2.66666 0.665364L9.33332 0.665364Z" fill="#9747FF"/>
3607
3608
  <path d="M5.33332 4.65885C5.33332 4.29066 5.6318 3.99219 5.99999 3.99219C6.36818 3.99219 6.66666 4.29066 6.66666 4.65885L6.66666 4.66536C6.66666 5.03355 6.36818 5.33203 5.99999 5.33203C5.6318 5.33203 5.33332 5.03355 5.33332 4.66536L5.33332 4.65885Z" fill="#9747FF"/>
3608
3609
  <path d="M5.33332 11.3255C5.33332 10.9573 5.6318 10.6589 5.99999 10.6589C6.36818 10.6589 6.66666 10.9573 6.66666 11.3255L6.66666 11.332C6.66666 11.7002 6.36818 11.9987 5.99999 11.9987C5.6318 11.9987 5.33332 11.7002 5.33332 11.332L5.33332 11.3255Z" fill="#9747FF"/>
3609
3610
  </svg>
3610
- `, ma = ue`
3611
+ `, ma = fe`
3611
3612
  <svg width="20" height="20" viewBox="0 0 16 12" fill="none" xmlns="http://www.w3.org/2000/svg">
3612
3613
  <path d="M14 2.66797C14 2.29978 13.7015 2.0013 13.3333 2.0013H2.66666C2.29847 2.0013 1.99999 2.29978 1.99999 2.66797V9.33463C1.99999 9.70282 2.29847 10.0013 2.66666 10.0013H13.3333C13.7015 10.0013 14 9.70282 14 9.33463V2.66797ZM15.3333 9.33463C15.3333 10.4392 14.4379 11.3346 13.3333 11.3346H2.66666C1.56209 11.3346 0.666656 10.4392 0.666656 9.33463V2.66797C0.666656 1.5634 1.56209 0.667969 2.66666 0.667969H13.3333C14.4379 0.667969 15.3333 1.5634 15.3333 2.66797V9.33463Z" fill="#65A30D"/>
3613
3614
  <path d="M11.3398 5.33464C11.708 5.33464 12.0065 5.63311 12.0065 6.0013C12.0065 6.36949 11.708 6.66797 11.3398 6.66797H11.3333C10.9651 6.66797 10.6667 6.36949 10.6667 6.0013C10.6667 5.63311 10.9651 5.33464 11.3333 5.33464H11.3398Z" fill="#65A30D"/>
3614
3615
  <path d="M4.67317 5.33464C5.04136 5.33464 5.33983 5.63311 5.33983 6.0013C5.33983 6.36949 5.04136 6.66797 4.67317 6.66797H4.66666C4.29847 6.66797 3.99999 6.36949 3.99999 6.0013C3.99999 5.63311 4.29847 5.33464 4.66666 5.33464H4.67317Z" fill="#65A30D"/>
3615
3616
  </svg>
3616
- `, ba = ue`
3617
+ `, ba = fe`
3617
3618
  <svg width="20" height="20" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
3618
3619
  <path d="M12.3333 2.33203C12.3333 1.96384 12.0349 1.66536 11.6667 1.66536H2.33334C1.96515 1.66536 1.66668 1.96384 1.66668 2.33203V11.6654C1.66668 12.0336 1.96515 12.332 2.33334 12.332H11.6667C12.0349 12.332 12.3333 12.0336 12.3333 11.6654V2.33203ZM13.6667 11.6654C13.6667 12.7699 12.7712 13.6654 11.6667 13.6654H2.33334C1.22877 13.6654 0.333344 12.7699 0.333344 11.6654V2.33203C0.333344 1.22746 1.22877 0.332031 2.33334 0.332031H11.6667C12.7712 0.332031 13.6667 1.22746 13.6667 2.33203V11.6654Z" fill="#6366F1"/>
3619
3620
  <path d="M9.67319 3.66536C10.0414 3.66536 10.3399 3.96384 10.3399 4.33203C10.3399 4.70022 10.0414 4.9987 9.67319 4.9987H9.66668C9.29849 4.9987 9.00001 4.70022 9.00001 4.33203C9.00001 3.96384 9.29849 3.66536 9.66668 3.66536H9.67319Z" fill="#6366F1"/>
@@ -3621,7 +3622,7 @@ const va = ue`
3621
3622
  <path d="M4.33985 8.9987C4.70804 8.9987 5.00652 9.29718 5.00652 9.66537C5.00652 10.0336 4.70804 10.332 4.33985 10.332H4.33334C3.96515 10.332 3.66668 10.0336 3.66668 9.66537C3.66668 9.29718 3.96515 8.9987 4.33334 8.9987H4.33985Z" fill="#6366F1"/>
3622
3623
  <path d="M9.67319 8.9987C10.0414 8.9987 10.3399 9.29718 10.3399 9.66537C10.3399 10.0336 10.0414 10.332 9.67319 10.332H9.66668C9.29849 10.332 9.00001 10.0336 9.00001 9.66537C9.00001 9.29718 9.29849 8.9987 9.66668 8.9987H9.67319Z" fill="#6366F1"/>
3623
3624
  </svg>
3624
- `, _a = ue`
3625
+ `, _a = fe`
3625
3626
  <svg width="20" height="20" viewBox="0 0 16 8" fill="none" xmlns="http://www.w3.org/2000/svg">
3626
3627
  <path d="M14 2.33203C14 1.96384 13.7015 1.66536 13.3333 1.66536H2.66666C2.29847 1.66536 1.99999 1.96384 1.99999 2.33203V5.66536C1.99999 6.03355 2.29847 6.33203 2.66666 6.33203H13.3333C13.7015 6.33203 14 6.03355 14 5.66536V2.33203ZM15.3333 5.66536C15.3333 6.76993 14.4379 7.66536 13.3333 7.66536H2.66666C1.56209 7.66536 0.666656 6.76993 0.666656 5.66536V2.33203C0.666656 1.22746 1.56209 0.332031 2.66666 0.332031H13.3333C14.4379 0.332031 15.3333 1.22746 15.3333 2.33203V5.66536Z" fill="#4BA3AD"/>
3627
3628
  <path d="M11.3398 3.33203C11.708 3.33203 12.0065 3.63051 12.0065 3.9987C12.0065 4.36689 11.708 4.66536 11.3398 4.66536H11.3333C10.9651 4.66536 10.6667 4.36689 10.6667 3.9987C10.6667 3.63051 10.9651 3.33203 11.3333 3.33203H11.3398Z" fill="#4BA3AD"/>
@@ -3633,7 +3634,7 @@ const va = ue`
3633
3634
  square: ba,
3634
3635
  panorama: _a
3635
3636
  };
3636
- let Ne = class extends C {
3637
+ let je = class extends S {
3637
3638
  constructor() {
3638
3639
  super(...arguments), this.selectedResolution = [], this.selectedOrientation = [], this.selectedFaces = [];
3639
3640
  }
@@ -3736,7 +3737,7 @@ let Ne = class extends C {
3736
3737
  `;
3737
3738
  }
3738
3739
  };
3739
- Ne.styles = [pe, S`
3740
+ je.styles = [ue, k`
3740
3741
  .options-horizontal {
3741
3742
  display: flex;
3742
3743
  gap: 28px;
@@ -3759,18 +3760,18 @@ Ne.styles = [pe, S`
3759
3760
  }
3760
3761
  `];
3761
3762
  kt([
3762
- h({ type: Array })
3763
- ], Ne.prototype, "selectedResolution", 2);
3763
+ p({ type: Array })
3764
+ ], je.prototype, "selectedResolution", 2);
3764
3765
  kt([
3765
- h({ type: Array })
3766
- ], Ne.prototype, "selectedOrientation", 2);
3766
+ p({ type: Array })
3767
+ ], je.prototype, "selectedOrientation", 2);
3767
3768
  kt([
3768
- h({ type: Array })
3769
- ], Ne.prototype, "selectedFaces", 2);
3770
- Ne = kt([
3769
+ p({ type: Array })
3770
+ ], je.prototype, "selectedFaces", 2);
3771
+ je = kt([
3771
3772
  F("ap-filter-image")
3772
- ], Ne);
3773
- var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, D = (t, e, s, i) => {
3773
+ ], je);
3774
+ var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, z = (t, e, s, i) => {
3774
3775
  for (var a = i > 1 ? void 0 : i ? wa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
3775
3776
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
3776
3777
  return i && a && xa(e, s, a), a;
@@ -3778,7 +3779,7 @@ var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, D = (t, e,
3778
3779
  function A(t) {
3779
3780
  return `${wt[t.type] || ""}${t.key}`;
3780
3781
  }
3781
- let P = class extends C {
3782
+ let I = class extends S {
3782
3783
  constructor() {
3783
3784
  super(...arguments), this.fields = [], this.appliedFilters = {}, this.visibleFields = [], this.mode = "full", this.activeFieldKey = "", this.pinnedFields = [], this.appliedMetadata = {}, this._showFieldSelection = !1, this._fieldSearch = "", this._collapsedFields = /* @__PURE__ */ new Set(), this._tagInputs = {}, this._tagSuggestions = {}, this._tagLoading = {}, this._datePresets = {}, this._dateFroms = {}, this._dateTos = {}, this._specificModeFields = /* @__PURE__ */ new Set(), this._selectSearches = {}, this._tagDebounceTimers = {};
3784
3785
  }
@@ -3808,13 +3809,13 @@ let P = class extends C {
3808
3809
  return this.appliedMetadata[t] || this.appliedFilters[t] || {};
3809
3810
  }
3810
3811
  _isSpecialValue(t) {
3811
- return !t || t.length !== 1 ? !1 : t[0] === G || t[0] === Y;
3812
+ return !t || t.length !== 1 ? !1 : t[0] === X || t[0] === W;
3812
3813
  }
3813
3814
  /** Get the "content" mode for a field: 'empty', 'not-empty', or 'specific' */
3814
3815
  _getContentMode(t) {
3815
3816
  var s, i;
3816
3817
  const e = this._getApplied(t);
3817
- return ((s = e.values) == null ? void 0 : s[0]) === G ? G : ((i = e.values) == null ? void 0 : i[0]) === Y ? Y : this._specificModeFields.has(t) || e.values && e.values.length > 0 ? we : "";
3818
+ return ((s = e.values) == null ? void 0 : s[0]) === X ? X : ((i = e.values) == null ? void 0 : i[0]) === W ? W : this._specificModeFields.has(t) || e.values && e.values.length > 0 ? ke : "";
3818
3819
  }
3819
3820
  // ── Event dispatchers ────────────────────────────────────────────
3820
3821
  _emitFilterChange(t, e, s) {
@@ -3888,7 +3889,7 @@ let P = class extends C {
3888
3889
  // ── Content mode change ─────────────────────────────────────────
3889
3890
  _onContentModeChange(t, e) {
3890
3891
  const s = A(t);
3891
- if (e === we) {
3892
+ if (e === ke) {
3892
3893
  const i = new Set(this._specificModeFields);
3893
3894
  i.add(s), this._specificModeFields = i;
3894
3895
  const a = this._getApplied(s);
@@ -3914,8 +3915,8 @@ let P = class extends C {
3914
3915
  this._dateFroms = r;
3915
3916
  const { [e]: o, ...l } = this._dateTos;
3916
3917
  this._dateTos = l;
3917
- const { [e]: c, ...p } = this._selectSearches;
3918
- this._selectSearches = p;
3918
+ const { [e]: c, ...h } = this._selectSearches;
3919
+ this._selectSearches = h;
3919
3920
  const { [e]: u, ...v } = this._tagInputs;
3920
3921
  this._tagInputs = v, this._emitFilterChange(t, void 0, []);
3921
3922
  }
@@ -3928,11 +3929,11 @@ let P = class extends C {
3928
3929
  _onNumberInput(t, e, s) {
3929
3930
  const i = e.target.value, a = A(t), r = this._getApplied(a), o = r.operator || Pt[0].value, l = [...r.values || []];
3930
3931
  s === 0 ? l[0] = i : l[1] = i;
3931
- const c = l.filter((p) => p !== "" && p !== void 0);
3932
+ const c = l.filter((h) => h !== "" && h !== void 0);
3932
3933
  if (c.length > 0) {
3933
- const p = t.type === x.DECIMAL2;
3934
+ const h = t.type === y.DECIMAL2;
3934
3935
  if (!c.every(
3935
- (v) => p ? !isNaN(parseFloat(v)) : /^-?\d+$/.test(v)
3936
+ (v) => h ? !isNaN(parseFloat(v)) : /^-?\d+$/.test(v)
3936
3937
  )) return;
3937
3938
  }
3938
3939
  this._emitFilterChange(t, o, l);
@@ -3945,7 +3946,7 @@ let P = class extends C {
3945
3946
  }
3946
3947
  // ── Select-one filter ────────────────────────────────────────────
3947
3948
  _onSelectOneToggle(t, e) {
3948
- const s = A(t), i = this._getApplied(s), a = i.operator || re[0].value, r = i.values || [];
3949
+ const s = A(t), i = this._getApplied(s), a = i.operator || le[0].value, r = i.values || [];
3949
3950
  r.length === 1 && r[0] === e ? this._emitFilterChange(t, a, []) : this._emitFilterChange(t, a, [e]);
3950
3951
  }
3951
3952
  // ── Multi-select filter ──────────────────────────────────────────
@@ -3968,7 +3969,7 @@ let P = class extends C {
3968
3969
  this._tagInputs = { ...this._tagInputs, [e]: i }, this._fetchTagSuggestions(t, e, i.trim());
3969
3970
  }
3970
3971
  _selectTagSuggestion(t, e) {
3971
- const s = A(t), i = this._getApplied(s), a = i.operator || re[0].value, r = i.values || [];
3972
+ const s = A(t), i = this._getApplied(s), a = i.operator || le[0].value, r = i.values || [];
3972
3973
  r.includes(e) || this._emitFilterChange(t, a, [...r, e]), this._tagInputs = { ...this._tagInputs, [s]: "" }, this._tagSuggestions = { ...this._tagSuggestions, [s]: [] };
3973
3974
  }
3974
3975
  _fetchTagSuggestions(t, e, s) {
@@ -3997,11 +3998,11 @@ let P = class extends C {
3997
3998
  _commitTagInput(t, e) {
3998
3999
  const s = (this._tagInputs[e] || "").trim();
3999
4000
  if (!s) return;
4000
- const i = this._getApplied(e), a = i.operator || re[0].value, r = i.values || [];
4001
+ const i = this._getApplied(e), a = i.operator || le[0].value, r = i.values || [];
4001
4002
  r.includes(s) || this._emitFilterChange(t, a, [...r, s]), this._tagInputs = { ...this._tagInputs, [e]: "" }, this._tagSuggestions = { ...this._tagSuggestions, [e]: [] };
4002
4003
  }
4003
4004
  _removeTag(t, e) {
4004
- const s = A(t), i = this._getApplied(s), a = i.operator || re[0].value, r = i.values || [];
4005
+ const s = A(t), i = this._getApplied(s), a = i.operator || le[0].value, r = i.values || [];
4005
4006
  this._emitFilterChange(
4006
4007
  t,
4007
4008
  a,
@@ -4072,7 +4073,7 @@ let P = class extends C {
4072
4073
  return;
4073
4074
  const [l, c] = o;
4074
4075
  let u = `${l},${c}..${r || "0"}`;
4075
- this._emitFilterChange(t, k.IS, [u]);
4076
+ this._emitFilterChange(t, $.IS, [u]);
4076
4077
  }
4077
4078
  _onGeoRadiusInput(t, e) {
4078
4079
  var c;
@@ -4080,7 +4081,7 @@ let P = class extends C {
4080
4081
  if (!((c = a.values) != null && c[0])) return;
4081
4082
  const r = a.values[0], [o] = r.split("..");
4082
4083
  let l = o;
4083
- s && (l += `..${s}`), this._emitFilterChange(t, k.IS, [l]);
4084
+ s && (l += `..${s}`), this._emitFilterChange(t, $.IS, [l]);
4084
4085
  }
4085
4086
  // ── Empty/non-empty option click ─────────────────────────────────
4086
4087
  _onEmptyOption(t, e) {
@@ -4103,11 +4104,11 @@ let P = class extends C {
4103
4104
  ), s = this._getGroupedFields(e), i = (a, r) => r.length === 0 ? f : n`
4104
4105
  <div class="field-group-label">${a}</div>
4105
4106
  ${r.map((o) => {
4106
- const l = A(o), c = this.visibleFields.includes(l), p = !c && this._atFieldLimit;
4107
+ const l = A(o), c = this.visibleFields.includes(l), h = !c && this._atFieldLimit;
4107
4108
  return n`
4108
4109
  <div
4109
- class="field-item ${c ? "selected" : ""} ${p ? "disabled" : ""}"
4110
- @click=${() => !p && !c && this._addField(o)}
4110
+ class="field-item ${c ? "selected" : ""} ${h ? "disabled" : ""}"
4111
+ @click=${() => !h && !c && this._addField(o)}
4111
4112
  >
4112
4113
  ${c ? n`<ap-icon name="check" .size=${14}></ap-icon>` : n`<ap-icon name=${ut[o.type] || "file-text"} .size=${14} style="color: var(--ap-muted-foreground, oklch(0.685 0.033 249.82))"></ap-icon>`}
4113
4114
  <span>${o.label}</span>
@@ -4148,8 +4149,8 @@ let P = class extends C {
4148
4149
  }
4149
4150
  // ── Render: Text filter ──────────────────────────────────────────
4150
4151
  _renderTextFilter(t) {
4151
- var p, u;
4152
- const e = A(t), s = this._getApplied(e), a = this._isSpecialValue(s.values) ? "" : ((p = s.values) == null ? void 0 : p[0]) || "", r = this._getContentMode(e), o = r === G || r === Y, l = s.operator || Ot[0].value, c = t.type === x.TEXT_AREA;
4152
+ var h, u;
4153
+ const e = A(t), s = this._getApplied(e), a = this._isSpecialValue(s.values) ? "" : ((h = s.values) == null ? void 0 : h[0]) || "", r = this._getContentMode(e), o = r === X || r === W, l = s.operator || Ot[0].value, c = t.type === y.TEXT_AREA;
4153
4154
  return n`
4154
4155
  <div class="filter-content" style="position: relative;">
4155
4156
  <button
@@ -4178,7 +4179,7 @@ let P = class extends C {
4178
4179
  ></ap-radio-group>
4179
4180
  </div>
4180
4181
 
4181
- ${r === we ? n`
4182
+ ${r === ke ? n`
4182
4183
  <div class="filter-section">
4183
4184
  <span class="section-label">Value</span>
4184
4185
  ${c ? n`
@@ -4207,13 +4208,13 @@ let P = class extends C {
4207
4208
  }
4208
4209
  // ── Render: Number filter ────────────────────────────────────────
4209
4210
  _renderNumberFilter(t) {
4210
- var y, M, I;
4211
- const e = A(t), s = this._getApplied(e), i = s.operator || Pt[0].value, a = this._isSpecialValue(s.values), r = this._getContentMode(e), o = r === G || r === Y, l = i === k.RANGE, c = i === k.GREATER_THAN_OR_EQUAL, p = i === k.LESS_THAN_OR_EQUAL, u = t.type === x.DECIMAL2, v = u ? "0.01" : "1", d = u ? "0.00" : "0", g = a ? "" : ((y = s.values) == null ? void 0 : y[0]) || "", m = a ? "" : ((M = s.values) == null ? void 0 : M[1]) || "", w = l || c || p, $ = l || c || p ? "Min" : "Value";
4211
+ var C, O, D;
4212
+ const e = A(t), s = this._getApplied(e), i = s.operator || Pt[0].value, a = this._isSpecialValue(s.values), r = this._getContentMode(e), o = r === X || r === W, l = i === $.RANGE, c = i === $.GREATER_THAN_OR_EQUAL, h = i === $.LESS_THAN_OR_EQUAL, u = t.type === y.DECIMAL2, v = u ? "0.01" : "1", d = u ? "0.00" : "0", g = a ? "" : ((C = s.values) == null ? void 0 : C[0]) || "", m = a ? "" : ((O = s.values) == null ? void 0 : O[1]) || "", x = l || c || h, w = l || c || h ? "Min" : "Value";
4212
4213
  return n`
4213
4214
  <div class="filter-content" style="position: relative;">
4214
4215
  <button
4215
4216
  class="clear-btn"
4216
- ?disabled=${!((I = s.values) != null && I.length) && !s.operator}
4217
+ ?disabled=${!((D = s.values) != null && D.length) && !s.operator}
4217
4218
  @click=${() => this._clearFieldFilter(t)}
4218
4219
  >Clear all</button>
4219
4220
 
@@ -4237,22 +4238,22 @@ let P = class extends C {
4237
4238
  ></ap-radio-group>
4238
4239
  </div>
4239
4240
 
4240
- ${r === we ? n`
4241
+ ${r === ke ? n`
4241
4242
  <div class="filter-section">
4242
4243
  <div class="grid-2">
4243
4244
  <div>
4244
- <span class="input-label" aria-disabled=${p ? "true" : f}>${$}</span>
4245
+ <span class="input-label" aria-disabled=${h ? "true" : f}>${w}</span>
4245
4246
  <input
4246
4247
  class="filter-input"
4247
4248
  type="number"
4248
4249
  step=${v}
4249
4250
  placeholder=${d}
4250
4251
  .value=${g}
4251
- ?disabled=${p}
4252
+ ?disabled=${h}
4252
4253
  @change=${(E) => this._onNumberInput(t, E, 0)}
4253
4254
  />
4254
4255
  </div>
4255
- ${w ? n`
4256
+ ${x ? n`
4256
4257
  <div>
4257
4258
  <span class="input-label" aria-disabled=${c ? "true" : f}>${"Max"}</span>
4258
4259
  <input
@@ -4297,7 +4298,7 @@ let P = class extends C {
4297
4298
  }
4298
4299
  // ── Render: Select-one filter ────────────────────────────────────
4299
4300
  _renderSelectOneFilter(t) {
4300
- const e = A(t), s = this._getApplied(e), i = this._isSpecialValue(s.values), a = i ? [] : s.values || [], r = t.possible_values || [], o = s.operator || re[0].value, l = (this._selectSearches[e] || "").toLowerCase(), c = l.length > 0, p = a.length > 0 || i, u = l ? r.filter((d) => d.label.toLowerCase().includes(l)) : r, v = a.length >= ct;
4301
+ const e = A(t), s = this._getApplied(e), i = this._isSpecialValue(s.values), a = i ? [] : s.values || [], r = t.possible_values || [], o = s.operator || le[0].value, l = (this._selectSearches[e] || "").toLowerCase(), c = l.length > 0, h = a.length > 0 || i, u = l ? r.filter((d) => d.label.toLowerCase().includes(l)) : r, v = a.length >= ct;
4301
4302
  return n`
4302
4303
  <div class="filter-content">
4303
4304
  <!-- Search input -->
@@ -4329,7 +4330,7 @@ let P = class extends C {
4329
4330
  <span class="section-label"></span>
4330
4331
  <button
4331
4332
  class="clear-btn"
4332
- ?disabled=${!p && !s.operator}
4333
+ ?disabled=${!h && !s.operator}
4333
4334
  @click=${() => this._clearFieldFilter(t)}
4334
4335
  >Clear all</button>
4335
4336
  </div>
@@ -4340,13 +4341,13 @@ let P = class extends C {
4340
4341
  <span class="section-label">Operator</span>
4341
4342
  <button
4342
4343
  class="clear-btn"
4343
- ?disabled=${!p && !s.operator}
4344
+ ?disabled=${!h && !s.operator}
4344
4345
  @click=${() => this._clearFieldFilter(t)}
4345
4346
  >Clear all</button>
4346
4347
  </div>
4347
4348
  <ap-radio-group
4348
4349
  direction="horizontal"
4349
- .options=${re}
4350
+ .options=${le}
4350
4351
  .value=${o}
4351
4352
  @ap-change=${(d) => this._onOperatorChange(t, d.detail.value)}
4352
4353
  ></ap-radio-group>
@@ -4378,7 +4379,7 @@ let P = class extends C {
4378
4379
 
4379
4380
  <!-- Empty/Not empty checkboxes -->
4380
4381
  <div class="options-list short">
4381
- ${ke.map(
4382
+ ${Ce.map(
4382
4383
  (d) => {
4383
4384
  var g;
4384
4385
  return n`
@@ -4417,7 +4418,7 @@ let P = class extends C {
4417
4418
  }
4418
4419
  // ── Render: Multi-select filter ──────────────────────────────────
4419
4420
  _renderMultiSelectFilter(t) {
4420
- const e = A(t), s = this._getApplied(e), i = this._isSpecialValue(s.values), a = i ? [] : s.values || [], r = t.possible_values || [], o = s.operator || Lt[0].value, l = (this._selectSearches[e] || "").toLowerCase(), c = l.length > 0, p = a.length > 0 || i, u = l ? r.filter((d) => d.label.toLowerCase().includes(l)) : r, v = a.length >= ct;
4421
+ const e = A(t), s = this._getApplied(e), i = this._isSpecialValue(s.values), a = i ? [] : s.values || [], r = t.possible_values || [], o = s.operator || Lt[0].value, l = (this._selectSearches[e] || "").toLowerCase(), c = l.length > 0, h = a.length > 0 || i, u = l ? r.filter((d) => d.label.toLowerCase().includes(l)) : r, v = a.length >= ct;
4421
4422
  return n`
4422
4423
  <div class="filter-content">
4423
4424
  <!-- Search input -->
@@ -4449,7 +4450,7 @@ let P = class extends C {
4449
4450
  <span class="section-label"></span>
4450
4451
  <button
4451
4452
  class="clear-btn"
4452
- ?disabled=${!p && !s.operator}
4453
+ ?disabled=${!h && !s.operator}
4453
4454
  @click=${() => this._clearFieldFilter(t)}
4454
4455
  >Clear all</button>
4455
4456
  </div>
@@ -4460,7 +4461,7 @@ let P = class extends C {
4460
4461
  <span class="section-label">Operator</span>
4461
4462
  <button
4462
4463
  class="clear-btn"
4463
- ?disabled=${!p && !s.operator}
4464
+ ?disabled=${!h && !s.operator}
4464
4465
  @click=${() => this._clearFieldFilter(t)}
4465
4466
  >Clear all</button>
4466
4467
  </div>
@@ -4498,7 +4499,7 @@ let P = class extends C {
4498
4499
 
4499
4500
  <!-- Empty/Not empty checkboxes -->
4500
4501
  <div class="options-list short">
4501
- ${ke.map(
4502
+ ${Ce.map(
4502
4503
  (d) => {
4503
4504
  var g;
4504
4505
  return n`
@@ -4537,7 +4538,7 @@ let P = class extends C {
4537
4538
  }
4538
4539
  // ── Render: Tags filter ──────────────────────────────────────────
4539
4540
  _renderTagsFilter(t) {
4540
- const e = A(t), s = this._getApplied(e), i = this._isSpecialValue(s.values), a = i ? [] : s.values || [], r = this._tagInputs[e] || "", o = s.operator || re[0].value, l = a.length > 0 || i, c = this._tagSuggestions[e] || [], p = this._tagLoading[e] || !1, u = r.trim().length > 0, v = a.length >= ct;
4541
+ const e = A(t), s = this._getApplied(e), i = this._isSpecialValue(s.values), a = i ? [] : s.values || [], r = this._tagInputs[e] || "", o = s.operator || le[0].value, l = a.length > 0 || i, c = this._tagSuggestions[e] || [], h = this._tagLoading[e] || !1, u = r.trim().length > 0, v = a.length >= ct;
4541
4542
  return n`
4542
4543
  <div class="filter-content">
4543
4544
  <!-- Search input -->
@@ -4582,7 +4583,7 @@ let P = class extends C {
4582
4583
  </div>
4583
4584
  <ap-radio-group
4584
4585
  direction="horizontal"
4585
- .options=${re}
4586
+ .options=${le}
4586
4587
  .value=${o}
4587
4588
  ?disabled=${i}
4588
4589
  @ap-change=${(d) => this._onTagOperatorChange(t, d.detail.value)}
@@ -4611,7 +4612,7 @@ let P = class extends C {
4611
4612
  <div class="filter-section">
4612
4613
  <span class="section-label">All options</span>
4613
4614
  <div class="options-list short">
4614
- ${ke.map(
4615
+ ${Ce.map(
4615
4616
  (d) => {
4616
4617
  var g;
4617
4618
  return n`
@@ -4633,7 +4634,7 @@ let P = class extends C {
4633
4634
  ${u ? n`
4634
4635
  <div class="filter-section">
4635
4636
  <div class="options-list">
4636
- ${p ? n`<div class="option-item disabled"><span>Loading...</span></div>` : c.length > 0 ? c.map(
4637
+ ${h ? n`<div class="option-item disabled"><span>Loading...</span></div>` : c.length > 0 ? c.map(
4637
4638
  (d) => {
4638
4639
  const g = a.includes(d), m = !g && v;
4639
4640
  return n`
@@ -4659,7 +4660,7 @@ let P = class extends C {
4659
4660
  const e = A(t), s = this._datePresets[e] || "", i = this._getApplied(e), r = this._isSpecialValue(i.values) ? ((u = i.values) == null ? void 0 : u[0]) || "" : s, o = [
4660
4661
  { value: "empty", label: "Empty" },
4661
4662
  { value: "non-empty", label: "Not empty" }
4662
- ], l = this._dateFroms[e] ? new Date(this._dateFroms[e]).toISOString().split("T")[0] : "", c = this._dateTos[e] ? new Date(this._dateTos[e]).toISOString().split("T")[0] : "", p = ["before", "after", "between"].includes(r);
4663
+ ], l = this._dateFroms[e] ? new Date(this._dateFroms[e]).toISOString().split("T")[0] : "", c = this._dateTos[e] ? new Date(this._dateTos[e]).toISOString().split("T")[0] : "", h = ["before", "after", "between"].includes(r);
4663
4664
  return n`
4664
4665
  <div class="filter-content" style="position: relative;">
4665
4666
  <button
@@ -4685,7 +4686,7 @@ let P = class extends C {
4685
4686
  ></ap-radio-group>
4686
4687
  </div>
4687
4688
 
4688
- ${p ? n`
4689
+ ${h ? n`
4689
4690
  <div class="filter-section">
4690
4691
  <div class="grid-2">
4691
4692
  ${r === "before" ? n`
@@ -4743,7 +4744,7 @@ let P = class extends C {
4743
4744
  const d = s.values[0], [g, m] = d.split("..");
4744
4745
  r = g || "", o = m || "";
4745
4746
  }
4746
- const l = r.length > 0, c = r.split(",").map((d) => d.trim()), p = !l || c.length === 2 && c.every((d) => !isNaN(Number(d)) && d !== "");
4747
+ const l = r.length > 0, c = r.split(",").map((d) => d.trim()), h = !l || c.length === 2 && c.every((d) => !isNaN(Number(d)) && d !== "");
4747
4748
  return n`
4748
4749
  <div class="filter-content" style="position: relative;">
4749
4750
  <button
@@ -4761,7 +4762,7 @@ let P = class extends C {
4761
4762
  ></ap-radio-group>
4762
4763
  </div>
4763
4764
 
4764
- ${a === we ? n`
4765
+ ${a === ke ? n`
4765
4766
  <div class="filter-section">
4766
4767
  <div class="geo-row">
4767
4768
  <div class="geo-location">
@@ -4773,7 +4774,7 @@ let P = class extends C {
4773
4774
  .value=${r}
4774
4775
  @change=${(d) => this._onGeoLocationInput(t, d)}
4775
4776
  />
4776
- ${l && !p ? n`<div class="error-text">Enter coordinates as "latitude, longitude"</div>` : f}
4777
+ ${l && !h ? n`<div class="error-text">Enter coordinates as "latitude, longitude"</div>` : f}
4777
4778
  </div>
4778
4779
  <div class="geo-radius">
4779
4780
  <span class="input-label">Max radius (&deg;)</span>
@@ -4806,7 +4807,7 @@ let P = class extends C {
4806
4807
 
4807
4808
  <div class="filter-section">
4808
4809
  <ap-radio-group
4809
- .options=${ke}
4810
+ .options=${Ce}
4810
4811
  .value=${s}
4811
4812
  @ap-change=${(r) => this._onEmptyOption(t, r.detail.value)}
4812
4813
  ></ap-radio-group>
@@ -4816,7 +4817,7 @@ let P = class extends C {
4816
4817
  }
4817
4818
  // ── Render: Face matcher (integer-list with slug face_matcher) ──
4818
4819
  _renderFaceMatcherFilter(t) {
4819
- const e = A(t), s = this._getApplied(e), i = s.values || [], a = s.operator || k.IS;
4820
+ const e = A(t), s = this._getApplied(e), i = s.values || [], a = s.operator || $.IS;
4820
4821
  return n`
4821
4822
  <div class="filter-content" style="position: relative;">
4822
4823
  <button
@@ -4829,7 +4830,7 @@ let P = class extends C {
4829
4830
  <span class="section-label">Condition</span>
4830
4831
  <ap-radio-group
4831
4832
  direction="horizontal"
4832
- .options=${re}
4833
+ .options=${le}
4833
4834
  .value=${a}
4834
4835
  @ap-change=${(r) => this._emitFilterChange(t, r.detail.value, i)}
4835
4836
  ></ap-radio-group>
@@ -4867,7 +4868,7 @@ let P = class extends C {
4867
4868
  case "geo":
4868
4869
  return this._renderGeoFilter(t);
4869
4870
  case "attachment":
4870
- return t.type === x.INTEGER_LIST && t.slug === "face_matcher" ? this._renderFaceMatcherFilter(t) : this._renderAttachmentFilter(t);
4871
+ return t.type === y.INTEGER_LIST && t.slug === "face_matcher" ? this._renderFaceMatcherFilter(t) : this._renderAttachmentFilter(t);
4871
4872
  default:
4872
4873
  return f;
4873
4874
  }
@@ -4917,10 +4918,10 @@ let P = class extends C {
4917
4918
  ), s = this._getGroupedFields(e), i = (a, r) => r.length === 0 ? f : n`
4918
4919
  <div class="field-group-label">${a}</div>
4919
4920
  ${r.map((o) => {
4920
- const l = A(o), c = this.visibleFields.includes(l), p = !!this.appliedMetadata[l] || !!this.appliedFilters[l], u = this.pinnedFields.includes(l), v = !c && this._atFieldLimit;
4921
+ const l = A(o), c = this.visibleFields.includes(l), h = !!this.appliedMetadata[l] || !!this.appliedFilters[l], u = this.pinnedFields.includes(l), v = !c && this._atFieldLimit;
4921
4922
  return n`
4922
4923
  <div
4923
- class="field-item ${p ? "has-filter" : ""} ${v ? "disabled" : ""}"
4924
+ class="field-item ${h ? "has-filter" : ""} ${v ? "disabled" : ""}"
4924
4925
  @click=${() => !v && this._emitFieldSelect(o)}
4925
4926
  >
4926
4927
  <ap-icon name=${ut[o.type] || "file-text"} .size=${14} style="color: var(--ap-muted-foreground, oklch(0.685 0.033 249.82))"></ap-icon>
@@ -4934,7 +4935,7 @@ let P = class extends C {
4934
4935
  >
4935
4936
  <ap-icon name="pin" .size=${12}></ap-icon>
4936
4937
  </button>
4937
- ${p ? n`<ap-icon name="check" .size=${14}></ap-icon>` : f}
4938
+ ${h ? n`<ap-icon name="check" .size=${14}></ap-icon>` : f}
4938
4939
  </div>
4939
4940
  `;
4940
4941
  })}
@@ -4995,7 +4996,7 @@ let P = class extends C {
4995
4996
  `;
4996
4997
  }
4997
4998
  };
4998
- P.styles = [te, pe, S`
4999
+ I.styles = [ae, ue, k`
4999
5000
  /* ── Field selection panel ─────────────────────────────── */
5000
5001
 
5001
5002
  .add-field-btn {
@@ -5373,72 +5374,72 @@ P.styles = [te, pe, S`
5373
5374
  background: var(--ap-primary-10, oklch(0.578 0.198 268.129 / 0.1));
5374
5375
  }
5375
5376
  `];
5376
- D([
5377
- h({ type: Array })
5378
- ], P.prototype, "fields", 2);
5379
- D([
5380
- h({ type: Object })
5381
- ], P.prototype, "appliedFilters", 2);
5382
- D([
5383
- h({ type: Array })
5384
- ], P.prototype, "visibleFields", 2);
5385
- D([
5386
- h()
5387
- ], P.prototype, "mode", 2);
5388
- D([
5389
- h()
5390
- ], P.prototype, "activeFieldKey", 2);
5391
- D([
5392
- h({ type: Array })
5393
- ], P.prototype, "pinnedFields", 2);
5394
- D([
5395
- h({ type: Object })
5396
- ], P.prototype, "appliedMetadata", 2);
5397
- D([
5398
- h({ attribute: !1 })
5399
- ], P.prototype, "apiClient", 2);
5400
- D([
5377
+ z([
5378
+ p({ type: Array })
5379
+ ], I.prototype, "fields", 2);
5380
+ z([
5381
+ p({ type: Object })
5382
+ ], I.prototype, "appliedFilters", 2);
5383
+ z([
5384
+ p({ type: Array })
5385
+ ], I.prototype, "visibleFields", 2);
5386
+ z([
5387
+ p()
5388
+ ], I.prototype, "mode", 2);
5389
+ z([
5390
+ p()
5391
+ ], I.prototype, "activeFieldKey", 2);
5392
+ z([
5393
+ p({ type: Array })
5394
+ ], I.prototype, "pinnedFields", 2);
5395
+ z([
5396
+ p({ type: Object })
5397
+ ], I.prototype, "appliedMetadata", 2);
5398
+ z([
5399
+ p({ attribute: !1 })
5400
+ ], I.prototype, "apiClient", 2);
5401
+ z([
5401
5402
  _()
5402
- ], P.prototype, "_showFieldSelection", 2);
5403
- D([
5403
+ ], I.prototype, "_showFieldSelection", 2);
5404
+ z([
5404
5405
  _()
5405
- ], P.prototype, "_fieldSearch", 2);
5406
- D([
5406
+ ], I.prototype, "_fieldSearch", 2);
5407
+ z([
5407
5408
  _()
5408
- ], P.prototype, "_collapsedFields", 2);
5409
- D([
5409
+ ], I.prototype, "_collapsedFields", 2);
5410
+ z([
5410
5411
  _()
5411
- ], P.prototype, "_tagInputs", 2);
5412
- D([
5412
+ ], I.prototype, "_tagInputs", 2);
5413
+ z([
5413
5414
  _()
5414
- ], P.prototype, "_tagSuggestions", 2);
5415
- D([
5415
+ ], I.prototype, "_tagSuggestions", 2);
5416
+ z([
5416
5417
  _()
5417
- ], P.prototype, "_tagLoading", 2);
5418
- D([
5418
+ ], I.prototype, "_tagLoading", 2);
5419
+ z([
5419
5420
  _()
5420
- ], P.prototype, "_datePresets", 2);
5421
- D([
5421
+ ], I.prototype, "_datePresets", 2);
5422
+ z([
5422
5423
  _()
5423
- ], P.prototype, "_dateFroms", 2);
5424
- D([
5424
+ ], I.prototype, "_dateFroms", 2);
5425
+ z([
5425
5426
  _()
5426
- ], P.prototype, "_dateTos", 2);
5427
- D([
5427
+ ], I.prototype, "_dateTos", 2);
5428
+ z([
5428
5429
  _()
5429
- ], P.prototype, "_specificModeFields", 2);
5430
- D([
5430
+ ], I.prototype, "_specificModeFields", 2);
5431
+ z([
5431
5432
  _()
5432
- ], P.prototype, "_selectSearches", 2);
5433
- P = D([
5433
+ ], I.prototype, "_selectSearches", 2);
5434
+ I = z([
5434
5435
  F("ap-filter-metadata")
5435
- ], P);
5436
- var $a = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, se = (t, e, s, i) => {
5436
+ ], I);
5437
+ var $a = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, re = (t, e, s, i) => {
5437
5438
  for (var a = i > 1 ? void 0 : i ? ka(e, s) : e, r = t.length - 1, o; r >= 0; r--)
5438
5439
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
5439
5440
  return i && a && $a(e, s, a), a;
5440
5441
  };
5441
- let X = class extends C {
5442
+ let Q = class extends S {
5442
5443
  constructor() {
5443
5444
  super(...arguments), this.selectedStatus = [], this.statusOperator = ":=", this.approverValue = "", this.approverOperator = "~", this.requesterValue = "", this.requesterOperator = "~", this.dueDatePreset = "", this.dueDateFrom = "", this.dueDateTo = "";
5444
5445
  }
@@ -5447,11 +5448,11 @@ let X = class extends C {
5447
5448
  return this.selectedStatus.length > 0 || !!this.approverValue || !!this.requesterValue || !!this.dueDatePreset || !!this.dueDateFrom || !!this.dueDateTo;
5448
5449
  }
5449
5450
  get _statusHasEmptyValue() {
5450
- return this.selectedStatus.includes(G) || this.selectedStatus.includes(Y);
5451
+ return this.selectedStatus.includes(X) || this.selectedStatus.includes(W);
5451
5452
  }
5452
5453
  get _statusHasOnlyEmptyValues() {
5453
5454
  return this.selectedStatus.length > 0 && this.selectedStatus.every(
5454
- (t) => t === G || t === Y
5455
+ (t) => t === X || t === W
5455
5456
  );
5456
5457
  }
5457
5458
  get _dueDateNeedsInputs() {
@@ -5562,7 +5563,7 @@ let X = class extends C {
5562
5563
 
5563
5564
  <!-- Empty / Not empty checkboxes -->
5564
5565
  <div class="options-list short mt-12">
5565
- ${ke.map(
5566
+ ${Ce.map(
5566
5567
  (e) => n`
5567
5568
  <ap-checkbox
5568
5569
  ?checked=${this.selectedStatus.includes(e.value)}
@@ -5669,8 +5670,8 @@ let X = class extends C {
5669
5670
 
5670
5671
  <!-- Empty / Not empty radio buttons -->
5671
5672
  <ap-radio-group
5672
- .options=${ke}
5673
- .value=${this.dueDatePreset === G || this.dueDatePreset === Y ? this.dueDatePreset : ""}
5673
+ .options=${Ce}
5674
+ .value=${this.dueDatePreset === X || this.dueDatePreset === W ? this.dueDatePreset : ""}
5674
5675
  @ap-change=${this._handleDueDatePreset}
5675
5676
  ></ap-radio-group>
5676
5677
 
@@ -5680,7 +5681,7 @@ let X = class extends C {
5680
5681
  <ap-radio-group
5681
5682
  columns="2"
5682
5683
  .options=${ai}
5683
- .value=${this.dueDatePreset !== G && this.dueDatePreset !== Y ? this.dueDatePreset : ""}
5684
+ .value=${this.dueDatePreset !== X && this.dueDatePreset !== W ? this.dueDatePreset : ""}
5684
5685
  @ap-change=${this._handleDueDatePreset}
5685
5686
  ></ap-radio-group>
5686
5687
 
@@ -5728,7 +5729,7 @@ let X = class extends C {
5728
5729
  `;
5729
5730
  }
5730
5731
  };
5731
- X.styles = [te, pe, S`
5732
+ Q.styles = [ae, ue, k`
5732
5733
  .options-list.short {
5733
5734
  max-height: none;
5734
5735
  }
@@ -5748,37 +5749,37 @@ X.styles = [te, pe, S`
5748
5749
  margin-top: 12px;
5749
5750
  }
5750
5751
  `];
5751
- se([
5752
- h({ type: Array })
5753
- ], X.prototype, "selectedStatus", 2);
5754
- se([
5755
- h()
5756
- ], X.prototype, "statusOperator", 2);
5757
- se([
5758
- h()
5759
- ], X.prototype, "approverValue", 2);
5760
- se([
5761
- h()
5762
- ], X.prototype, "approverOperator", 2);
5763
- se([
5764
- h()
5765
- ], X.prototype, "requesterValue", 2);
5766
- se([
5767
- h()
5768
- ], X.prototype, "requesterOperator", 2);
5769
- se([
5770
- h()
5771
- ], X.prototype, "dueDatePreset", 2);
5772
- se([
5773
- h()
5774
- ], X.prototype, "dueDateFrom", 2);
5775
- se([
5776
- h()
5777
- ], X.prototype, "dueDateTo", 2);
5778
- X = se([
5752
+ re([
5753
+ p({ type: Array })
5754
+ ], Q.prototype, "selectedStatus", 2);
5755
+ re([
5756
+ p()
5757
+ ], Q.prototype, "statusOperator", 2);
5758
+ re([
5759
+ p()
5760
+ ], Q.prototype, "approverValue", 2);
5761
+ re([
5762
+ p()
5763
+ ], Q.prototype, "approverOperator", 2);
5764
+ re([
5765
+ p()
5766
+ ], Q.prototype, "requesterValue", 2);
5767
+ re([
5768
+ p()
5769
+ ], Q.prototype, "requesterOperator", 2);
5770
+ re([
5771
+ p()
5772
+ ], Q.prototype, "dueDatePreset", 2);
5773
+ re([
5774
+ p()
5775
+ ], Q.prototype, "dueDateFrom", 2);
5776
+ re([
5777
+ p()
5778
+ ], Q.prototype, "dueDateTo", 2);
5779
+ Q = re([
5779
5780
  F("ap-filter-approval")
5780
- ], X);
5781
- var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, ie = (t, e, s, i) => {
5781
+ ], Q);
5782
+ var Sa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, oe = (t, e, s, i) => {
5782
5783
  for (var a = i > 1 ? void 0 : i ? Ca(e, s) : e, r = t.length - 1, o; r >= 0; r--)
5783
5784
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
5784
5785
  return i && a && Sa(e, s, a), a;
@@ -5791,7 +5792,7 @@ function Ea(t) {
5791
5792
  )
5792
5793
  );
5793
5794
  }
5794
- let W = class extends C {
5795
+ let Z = class extends S {
5795
5796
  constructor() {
5796
5797
  super(...arguments), this.selected = [], this._search = "", this._debouncedSearch = "", this._products = [], this._isLoading = !1, this._showAddList = !1, this._addListText = "";
5797
5798
  }
@@ -5814,7 +5815,7 @@ let W = class extends C {
5814
5815
  detail: {
5815
5816
  key: b.PRODUCT_REF,
5816
5817
  values: e,
5817
- operator: k.IS
5818
+ operator: $.IS
5818
5819
  },
5819
5820
  bubbles: !0,
5820
5821
  composed: !0
@@ -6010,7 +6011,7 @@ let W = class extends C {
6010
6011
  `;
6011
6012
  }
6012
6013
  };
6013
- W.styles = [te, pe, S`
6014
+ Z.styles = [ae, ue, k`
6014
6015
  .product-item {
6015
6016
  display: flex;
6016
6017
  align-items: center;
@@ -6250,42 +6251,42 @@ W.styles = [te, pe, S`
6250
6251
  margin-left: 4px;
6251
6252
  }
6252
6253
  `];
6253
- ie([
6254
- h({ type: Array })
6255
- ], W.prototype, "selected", 2);
6256
- ie([
6257
- h({ attribute: !1 })
6258
- ], W.prototype, "apiClient", 2);
6259
- ie([
6260
- Ae(".product-search")
6261
- ], W.prototype, "_searchInput", 2);
6262
- ie([
6254
+ oe([
6255
+ p({ type: Array })
6256
+ ], Z.prototype, "selected", 2);
6257
+ oe([
6258
+ p({ attribute: !1 })
6259
+ ], Z.prototype, "apiClient", 2);
6260
+ oe([
6261
+ Me(".product-search")
6262
+ ], Z.prototype, "_searchInput", 2);
6263
+ oe([
6263
6264
  _()
6264
- ], W.prototype, "_search", 2);
6265
- ie([
6265
+ ], Z.prototype, "_search", 2);
6266
+ oe([
6266
6267
  _()
6267
- ], W.prototype, "_debouncedSearch", 2);
6268
- ie([
6268
+ ], Z.prototype, "_debouncedSearch", 2);
6269
+ oe([
6269
6270
  _()
6270
- ], W.prototype, "_products", 2);
6271
- ie([
6271
+ ], Z.prototype, "_products", 2);
6272
+ oe([
6272
6273
  _()
6273
- ], W.prototype, "_isLoading", 2);
6274
- ie([
6274
+ ], Z.prototype, "_isLoading", 2);
6275
+ oe([
6275
6276
  _()
6276
- ], W.prototype, "_showAddList", 2);
6277
- ie([
6277
+ ], Z.prototype, "_showAddList", 2);
6278
+ oe([
6278
6279
  _()
6279
- ], W.prototype, "_addListText", 2);
6280
- W = ie([
6280
+ ], Z.prototype, "_addListText", 2);
6281
+ Z = oe([
6281
6282
  F("ap-filter-product-ref")
6282
- ], W);
6283
- var Aa = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, L = (t, e, s, i) => {
6283
+ ], Z);
6284
+ var Aa = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, P = (t, e, s, i) => {
6284
6285
  for (var a = i > 1 ? void 0 : i ? Ta(e, s) : e, r = t.length - 1, o; r >= 0; r--)
6285
6286
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
6286
6287
  return i && a && Aa(e, s, a), a;
6287
6288
  };
6288
- let O = class extends C {
6289
+ let L = class extends S {
6289
6290
  constructor() {
6290
6291
  super(...arguments), this.totalCount = 0, this.totalFolderCount = 0, this.isLoading = !1, this.showUpload = !1, this.sortBy = "created_at", this.sortDirection = "desc", this.sortOptions = Ut, this.filters = {
6291
6292
  metadata: { pinned: [], visible: [], applied: {} },
@@ -6507,9 +6508,9 @@ let O = class extends C {
6507
6508
  ></ap-filter-date>`;
6508
6509
  }
6509
6510
  case "size": {
6510
- const r = e.size, o = ((s = r == null ? void 0 : r.values) == null ? void 0 : s[0]) || "", [l, c] = o.split(".."), p = l ? parseFloat(l) / 1e6 : 0, u = c ? parseFloat(c) / 1e6 : 0;
6511
+ const r = e.size, o = ((s = r == null ? void 0 : r.values) == null ? void 0 : s[0]) || "", [l, c] = o.split(".."), h = l ? parseFloat(l) / 1e6 : 0, u = c ? parseFloat(c) / 1e6 : 0;
6511
6512
  return n`<ap-filter-size
6512
- .min=${p}
6513
+ .min=${h}
6513
6514
  .max=${u}
6514
6515
  @filter-change=${this._handleFilterChange}
6515
6516
  ></ap-filter-size>`;
@@ -6675,7 +6676,7 @@ let O = class extends C {
6675
6676
  ${this._getMetadataFieldLabel(this._openMetadataField)}
6676
6677
  ` : n`
6677
6678
  <ap-icon name=${this._getFilterIcon(this._openFilter)} .size=${16}></ap-icon>
6678
- ${De[this._openFilter] || this._openFilter}
6679
+ ${ze[this._openFilter] || this._openFilter}
6679
6680
  `}
6680
6681
  <button class="anchor-close" @click=${() => {
6681
6682
  this._openFilter = null, this._openMetadataField = null, this._externalTrigger = !1, this._externalLeft = null, this._externalTop = null;
@@ -6692,7 +6693,7 @@ let O = class extends C {
6692
6693
  `;
6693
6694
  }
6694
6695
  };
6695
- O.styles = S`
6696
+ L.styles = k`
6696
6697
  :host {
6697
6698
  display: block;
6698
6699
  padding: 8px 20px 6px;
@@ -7031,81 +7032,81 @@ O.styles = S`
7031
7032
  top: 0;
7032
7033
  }
7033
7034
  `;
7034
- L([
7035
- h({ type: Number })
7036
- ], O.prototype, "totalCount", 2);
7037
- L([
7038
- h({ type: Number })
7039
- ], O.prototype, "totalFolderCount", 2);
7040
- L([
7041
- h({ type: Boolean })
7042
- ], O.prototype, "isLoading", 2);
7043
- L([
7044
- h({ type: Boolean })
7045
- ], O.prototype, "showUpload", 2);
7046
- L([
7047
- h()
7048
- ], O.prototype, "sortBy", 2);
7049
- L([
7050
- h()
7051
- ], O.prototype, "sortDirection", 2);
7052
- L([
7053
- h({ type: Array })
7054
- ], O.prototype, "sortOptions", 2);
7055
- L([
7056
- h({ type: Object })
7057
- ], O.prototype, "filters", 2);
7058
- L([
7059
- h({ type: Array })
7060
- ], O.prototype, "labels", 2);
7061
- L([
7062
- h({ type: Array })
7063
- ], O.prototype, "tags", 2);
7064
- L([
7065
- h({ type: Array })
7066
- ], O.prototype, "metadataFields", 2);
7067
- L([
7068
- h({ type: Array })
7069
- ], O.prototype, "pinnedFilters", 2);
7070
- L([
7071
- h({ type: Array })
7072
- ], O.prototype, "forcedFilterKeys", 2);
7073
- L([
7074
- h({ attribute: !1 })
7075
- ], O.prototype, "apiClient", 2);
7076
- L([
7077
- Ae("ap-dropdown")
7078
- ], O.prototype, "_sortDropdown", 2);
7079
- L([
7035
+ P([
7036
+ p({ type: Number })
7037
+ ], L.prototype, "totalCount", 2);
7038
+ P([
7039
+ p({ type: Number })
7040
+ ], L.prototype, "totalFolderCount", 2);
7041
+ P([
7042
+ p({ type: Boolean })
7043
+ ], L.prototype, "isLoading", 2);
7044
+ P([
7045
+ p({ type: Boolean })
7046
+ ], L.prototype, "showUpload", 2);
7047
+ P([
7048
+ p()
7049
+ ], L.prototype, "sortBy", 2);
7050
+ P([
7051
+ p()
7052
+ ], L.prototype, "sortDirection", 2);
7053
+ P([
7054
+ p({ type: Array })
7055
+ ], L.prototype, "sortOptions", 2);
7056
+ P([
7057
+ p({ type: Object })
7058
+ ], L.prototype, "filters", 2);
7059
+ P([
7060
+ p({ type: Array })
7061
+ ], L.prototype, "labels", 2);
7062
+ P([
7063
+ p({ type: Array })
7064
+ ], L.prototype, "tags", 2);
7065
+ P([
7066
+ p({ type: Array })
7067
+ ], L.prototype, "metadataFields", 2);
7068
+ P([
7069
+ p({ type: Array })
7070
+ ], L.prototype, "pinnedFilters", 2);
7071
+ P([
7072
+ p({ type: Array })
7073
+ ], L.prototype, "forcedFilterKeys", 2);
7074
+ P([
7075
+ p({ attribute: !1 })
7076
+ ], L.prototype, "apiClient", 2);
7077
+ P([
7078
+ Me("ap-dropdown")
7079
+ ], L.prototype, "_sortDropdown", 2);
7080
+ P([
7080
7081
  _()
7081
- ], O.prototype, "_showDropdown", 2);
7082
- L([
7082
+ ], L.prototype, "_showDropdown", 2);
7083
+ P([
7083
7084
  _()
7084
- ], O.prototype, "_showMetadataSelector", 2);
7085
- L([
7085
+ ], L.prototype, "_showMetadataSelector", 2);
7086
+ P([
7086
7087
  _()
7087
- ], O.prototype, "_openFilter", 2);
7088
- L([
7088
+ ], L.prototype, "_openFilter", 2);
7089
+ P([
7089
7090
  _()
7090
- ], O.prototype, "_openMetadataField", 2);
7091
- L([
7091
+ ], L.prototype, "_openMetadataField", 2);
7092
+ P([
7092
7093
  _()
7093
- ], O.prototype, "_externalTrigger", 2);
7094
- L([
7094
+ ], L.prototype, "_externalTrigger", 2);
7095
+ P([
7095
7096
  _()
7096
- ], O.prototype, "_externalLeft", 2);
7097
- L([
7097
+ ], L.prototype, "_externalLeft", 2);
7098
+ P([
7098
7099
  _()
7099
- ], O.prototype, "_externalTop", 2);
7100
- O = L([
7100
+ ], L.prototype, "_externalTop", 2);
7101
+ L = P([
7101
7102
  F("ap-content-toolbar")
7102
- ], O);
7103
+ ], L);
7103
7104
  var Ma = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, H = (t, e, s, i) => {
7104
7105
  for (var a = i > 1 ? void 0 : i ? Oa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
7105
7106
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
7106
7107
  return i && a && Ma(e, s, a), a;
7107
7108
  };
7108
- let B = class extends C {
7109
+ let B = class extends S {
7109
7110
  constructor() {
7110
7111
  super(...arguments), this.appliedFilters = {}, this.appliedMetadata = {}, this.forcedFilters = {}, this.metadataFields = [], this.pinnedFilters = [], this.pinnedMetadataFields = [], this.tags = [], this.labels = [], this.activeFilter = null, this.activeMetadataField = null, this.pendingFilter = null, this.pendingMetadataField = null;
7111
7112
  }
@@ -7237,7 +7238,7 @@ let B = class extends C {
7237
7238
  return n`
7238
7239
  <span class="chip forced">
7239
7240
  ${(i || t === b.TYPE || t === b.SIZE) && s ? n`<span class="chip-label">${s}</span>` : n`
7240
- <span class="chip-label">${De[t] || t}</span>
7241
+ <span class="chip-label">${ze[t] || t}</span>
7241
7242
  ${s ? n`<span class="chip-summary">${s}</span>` : f}
7242
7243
  `}
7243
7244
  <span class="chip-lock">
@@ -7251,7 +7252,7 @@ let B = class extends C {
7251
7252
  return n`
7252
7253
  <span class="chip pinned-empty ${t === this.activeFilter ? "active" : ""}" @click=${(a) => this._openFilter(t, a)}>
7253
7254
  <span class="chip-icon"><ap-icon name=${this._getFilterIcon(t)} .size=${16}></ap-icon></span>
7254
- <span class="chip-label">${De[t] || t}</span>
7255
+ <span class="chip-label">${ze[t] || t}</span>
7255
7256
  <span class="chip-chevron"><ap-icon name="chevron-down" .size=${14}></ap-icon></span>
7256
7257
  </span>
7257
7258
  `;
@@ -7261,7 +7262,7 @@ let B = class extends C {
7261
7262
  ${(i || t === b.TYPE || t === b.SIZE) && s ? n`
7262
7263
  <span class="chip-icon"><ap-icon name=${this._getFilterIcon(t)} .size=${16}></ap-icon></span>
7263
7264
  <span class="chip-label">${s}</span>` : n`
7264
- <span class="chip-label">${De[t] || t}</span>
7265
+ <span class="chip-label">${ze[t] || t}</span>
7265
7266
  ${s ? n`<span class="chip-summary">${s}</span>` : f}
7266
7267
  `}
7267
7268
  <button class="chip-remove" @click=${(a) => {
@@ -7298,8 +7299,8 @@ let B = class extends C {
7298
7299
  `;
7299
7300
  }
7300
7301
  render() {
7301
- const t = Ze(this.forcedFilters), e = new Set(Object.keys(t)), s = Object.keys(this.appliedFilters).filter((g) => !e.has(g)), i = Object.keys(this.appliedMetadata), a = new Set(this.pinnedFilters), r = new Set(this.pinnedMetadataFields), o = this.pinnedFilters.filter((g) => !e.has(g)), l = s.filter((g) => !a.has(g)), c = i.filter((g) => !r.has(g)), p = this.pendingFilter && !a.has(this.pendingFilter) && !(this.pendingFilter in this.appliedFilters), u = this.pendingMetadataField && !r.has(this.pendingMetadataField) && !(this.pendingMetadataField in this.appliedMetadata), v = s.length + i.length > 0;
7302
- return e.size + o.length + this.pinnedMetadataFields.length + l.length + c.length + (p ? 1 : 0) + (u ? 1 : 0) === 0 ? f : n`
7302
+ const t = Ze(this.forcedFilters), e = new Set(Object.keys(t)), s = Object.keys(this.appliedFilters).filter((g) => !e.has(g)), i = Object.keys(this.appliedMetadata), a = new Set(this.pinnedFilters), r = new Set(this.pinnedMetadataFields), o = this.pinnedFilters.filter((g) => !e.has(g)), l = s.filter((g) => !a.has(g)), c = i.filter((g) => !r.has(g)), h = this.pendingFilter && !a.has(this.pendingFilter) && !(this.pendingFilter in this.appliedFilters), u = this.pendingMetadataField && !r.has(this.pendingMetadataField) && !(this.pendingMetadataField in this.appliedMetadata), v = s.length + i.length > 0;
7303
+ return e.size + o.length + this.pinnedMetadataFields.length + l.length + c.length + (h ? 1 : 0) + (u ? 1 : 0) === 0 ? f : n`
7303
7304
  <div class="chips-row">
7304
7305
  <div class="chips">
7305
7306
  ${[...e].map(
@@ -7314,10 +7315,10 @@ let B = class extends C {
7314
7315
  ${l.map(
7315
7316
  (g) => this._renderFilterChip(g, this.appliedFilters[g])
7316
7317
  )}
7317
- ${p ? n`
7318
+ ${h ? n`
7318
7319
  <span class="chip pinned-empty active pending" @click=${(g) => this._openFilter(this.pendingFilter, g)}>
7319
7320
  <span class="chip-icon"><ap-icon name=${this._getFilterIcon(this.pendingFilter)} .size=${16}></ap-icon></span>
7320
- <span class="chip-label">${De[this.pendingFilter] || this.pendingFilter}</span>
7321
+ <span class="chip-label">${ze[this.pendingFilter] || this.pendingFilter}</span>
7321
7322
  <span class="chip-chevron"><ap-icon name="chevron-down" .size=${14}></ap-icon></span>
7322
7323
  </span>
7323
7324
  ` : f}
@@ -7337,7 +7338,7 @@ let B = class extends C {
7337
7338
  `;
7338
7339
  }
7339
7340
  };
7340
- B.styles = S`
7341
+ B.styles = k`
7341
7342
  :host {
7342
7343
  display: block;
7343
7344
  }
@@ -7486,51 +7487,51 @@ B.styles = S`
7486
7487
  }
7487
7488
  `;
7488
7489
  H([
7489
- h({ type: Object })
7490
+ p({ type: Object })
7490
7491
  ], B.prototype, "appliedFilters", 2);
7491
7492
  H([
7492
- h({ type: Object })
7493
+ p({ type: Object })
7493
7494
  ], B.prototype, "appliedMetadata", 2);
7494
7495
  H([
7495
- h({ type: Object })
7496
+ p({ type: Object })
7496
7497
  ], B.prototype, "forcedFilters", 2);
7497
7498
  H([
7498
- h({ type: Array })
7499
+ p({ type: Array })
7499
7500
  ], B.prototype, "metadataFields", 2);
7500
7501
  H([
7501
- h({ type: Array })
7502
+ p({ type: Array })
7502
7503
  ], B.prototype, "pinnedFilters", 2);
7503
7504
  H([
7504
- h({ type: Array })
7505
+ p({ type: Array })
7505
7506
  ], B.prototype, "pinnedMetadataFields", 2);
7506
7507
  H([
7507
- h({ type: Array })
7508
+ p({ type: Array })
7508
7509
  ], B.prototype, "tags", 2);
7509
7510
  H([
7510
- h({ type: Array })
7511
+ p({ type: Array })
7511
7512
  ], B.prototype, "labels", 2);
7512
7513
  H([
7513
- h()
7514
+ p()
7514
7515
  ], B.prototype, "activeFilter", 2);
7515
7516
  H([
7516
- h()
7517
+ p()
7517
7518
  ], B.prototype, "activeMetadataField", 2);
7518
7519
  H([
7519
- h()
7520
+ p()
7520
7521
  ], B.prototype, "pendingFilter", 2);
7521
7522
  H([
7522
- h()
7523
+ p()
7523
7524
  ], B.prototype, "pendingMetadataField", 2);
7524
7525
  B = H([
7525
7526
  F("ap-filters-bar")
7526
7527
  ], B);
7527
- var La = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, ae = (t, e, s, i) => {
7528
+ var La = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, ne = (t, e, s, i) => {
7528
7529
  for (var a = i > 1 ? void 0 : i ? Pa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
7529
7530
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
7530
7531
  return i && a && La(e, s, a), a;
7531
7532
  };
7532
7533
  const Ia = 6;
7533
- let Q = class extends C {
7534
+ let J = class extends S {
7534
7535
  constructor() {
7535
7536
  super(...arguments), this.assets = [], this.folders = [], this.folderPreviews = {}, this.selectedIds = [], this.selectedFolderIds = [], this.isLoading = !1, this.multiSelect = !0, this.folderSelectable = !1, this.gridSize = "normal", this._prevCount = 0;
7536
7537
  }
@@ -7550,6 +7551,7 @@ let Q = class extends C {
7550
7551
  .folder=${e}
7551
7552
  .previews=${this.folderPreviews[e.uuid] || []}
7552
7553
  .selectable=${this.folderSelectable}
7554
+ .multiSelect=${this.multiSelect}
7553
7555
  ?selected=${this.selectedFolderIds.includes(e.uuid)}
7554
7556
  .index=${s}
7555
7557
  data-folder-uuid=${e.uuid}
@@ -7591,7 +7593,7 @@ let Q = class extends C {
7591
7593
  `;
7592
7594
  }
7593
7595
  };
7594
- Q.styles = S`
7596
+ J.styles = k`
7595
7597
  :host {
7596
7598
  display: block;
7597
7599
  padding: 0 20px 16px;
@@ -7647,43 +7649,43 @@ Q.styles = S`
7647
7649
  .ghost-thumb, .ghost-line { animation: none; }
7648
7650
  }
7649
7651
  `;
7650
- ae([
7651
- h({ type: Array })
7652
- ], Q.prototype, "assets", 2);
7653
- ae([
7654
- h({ type: Array })
7655
- ], Q.prototype, "folders", 2);
7656
- ae([
7657
- h({ type: Object })
7658
- ], Q.prototype, "folderPreviews", 2);
7659
- ae([
7660
- h({ type: Array })
7661
- ], Q.prototype, "selectedIds", 2);
7662
- ae([
7663
- h({ type: Array })
7664
- ], Q.prototype, "selectedFolderIds", 2);
7665
- ae([
7666
- h({ type: Boolean })
7667
- ], Q.prototype, "isLoading", 2);
7668
- ae([
7669
- h({ type: Boolean })
7670
- ], Q.prototype, "multiSelect", 2);
7671
- ae([
7672
- h({ type: Boolean })
7673
- ], Q.prototype, "folderSelectable", 2);
7674
- ae([
7675
- h({ type: String })
7676
- ], Q.prototype, "gridSize", 2);
7677
- Q = ae([
7652
+ ne([
7653
+ p({ type: Array })
7654
+ ], J.prototype, "assets", 2);
7655
+ ne([
7656
+ p({ type: Array })
7657
+ ], J.prototype, "folders", 2);
7658
+ ne([
7659
+ p({ type: Object })
7660
+ ], J.prototype, "folderPreviews", 2);
7661
+ ne([
7662
+ p({ type: Array })
7663
+ ], J.prototype, "selectedIds", 2);
7664
+ ne([
7665
+ p({ type: Array })
7666
+ ], J.prototype, "selectedFolderIds", 2);
7667
+ ne([
7668
+ p({ type: Boolean })
7669
+ ], J.prototype, "isLoading", 2);
7670
+ ne([
7671
+ p({ type: Boolean })
7672
+ ], J.prototype, "multiSelect", 2);
7673
+ ne([
7674
+ p({ type: Boolean })
7675
+ ], J.prototype, "folderSelectable", 2);
7676
+ ne([
7677
+ p({ type: String })
7678
+ ], J.prototype, "gridSize", 2);
7679
+ J = ne([
7678
7680
  F("ap-grid-view")
7679
- ], Q);
7680
- var Da = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Z = (t, e, s, i) => {
7681
+ ], J);
7682
+ var Da = Object.defineProperty, za = Object.getOwnPropertyDescriptor, ee = (t, e, s, i) => {
7681
7683
  for (var a = i > 1 ? void 0 : i ? za(e, s) : e, r = t.length - 1, o; r >= 0; r--)
7682
7684
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
7683
7685
  return i && a && Da(e, s, a), a;
7684
7686
  };
7685
7687
  const Ra = 5;
7686
- let q = class extends C {
7688
+ let q = class extends S {
7687
7689
  constructor() {
7688
7690
  super(...arguments), this.assets = [], this.folders = [], this.selectedIds = [], this.selectedFolderIds = [], this.isLoading = !1, this.multiSelect = !0, this.folderSelectable = !1, this.totalCount = 0, this.isSelectingAll = !1, this.folderPreviews = {}, this._compactLevel = 0;
7689
7691
  }
@@ -7700,7 +7702,7 @@ let q = class extends C {
7700
7702
  }
7701
7703
  _getGridColumns(t) {
7702
7704
  const e = [];
7703
- return t && e.push("32px"), e.push("48px"), e.push("minmax(120px, 1fr)"), e.push("72px"), this._compactLevel < 2 && e.push("100px"), this._compactLevel < 1 && e.push("120px"), e.push("36px"), e.join(" ");
7705
+ return t && e.push("32px"), e.push("48px"), e.push("minmax(120px, 1fr)"), e.push("72px"), this._compactLevel < 2 && e.push("100px"), this._compactLevel < 1 && e.push("120px"), e.push("64px"), e.join(" ");
7704
7706
  }
7705
7707
  get _allVisibleSelected() {
7706
7708
  if (this.assets.length === 0 && this.folders.length === 0 || this.selectedIds.length === 0 && this.selectedFolderIds.length === 0) return !1;
@@ -7712,7 +7714,7 @@ let q = class extends C {
7712
7714
  _handleHeaderCheckboxClick() {
7713
7715
  if (this.isSelectingAll) return;
7714
7716
  const t = this.folderSelectable ? this.totalCount + this.folders.length : this.totalCount, e = this.folderSelectable ? this.selectedIds.length + this.selectedFolderIds.length : this.selectedIds.length;
7715
- this._allVisibleSelected && e >= t ? this.dispatchEvent(new CustomEvent("selection-clear", { bubbles: !0, composed: !0 })) : this.dispatchEvent(new CustomEvent("select-all", { bubbles: !0, composed: !0 }));
7717
+ this._allVisibleSelected && e >= t ? this.dispatchEvent(new CustomEvent("selection-clear", { bubbles: !0, composed: !0 })) : this.dispatchEvent(new CustomEvent("select-all", { detail: { scope: "all" }, bubbles: !0, composed: !0 }));
7716
7718
  }
7717
7719
  render() {
7718
7720
  const t = this.folderSelectable ? this.totalCount + this.folders.length : this.totalCount, e = this.folderSelectable ? this.selectedIds.length + this.selectedFolderIds.length : this.selectedIds.length, s = this._allVisibleSelected && e >= t;
@@ -7742,6 +7744,7 @@ let q = class extends C {
7742
7744
  .folder=${i}
7743
7745
  .previews=${this.folderPreviews[i.uuid] || []}
7744
7746
  .selectable=${this.folderSelectable}
7747
+ .multiSelect=${this.multiSelect}
7745
7748
  .compactLevel=${this._compactLevel}
7746
7749
  ?selected=${this.selectedFolderIds.includes(i.uuid)}
7747
7750
  .index=${a}
@@ -7766,6 +7769,7 @@ let q = class extends C {
7766
7769
  data-asset-uuid=${i.uuid}
7767
7770
  @asset-select=${(r) => this.dispatchEvent(new CustomEvent("asset-select", { detail: r.detail, bubbles: !0, composed: !0 }))}
7768
7771
  @asset-preview=${(r) => this.dispatchEvent(new CustomEvent("asset-preview", { detail: r.detail, bubbles: !0, composed: !0 }))}
7772
+ @asset-quick-select=${(r) => this.dispatchEvent(new CustomEvent("asset-quick-select", { detail: r.detail, bubbles: !0, composed: !0 }))}
7769
7773
  ></ap-asset-row>
7770
7774
  `
7771
7775
  )}
@@ -7787,7 +7791,7 @@ let q = class extends C {
7787
7791
  `;
7788
7792
  }
7789
7793
  };
7790
- q.styles = S`
7794
+ q.styles = k`
7791
7795
  :host {
7792
7796
  display: block;
7793
7797
  padding: 0 20px 16px;
@@ -7875,40 +7879,40 @@ q.styles = S`
7875
7879
  .ghost-el { animation: none; }
7876
7880
  }
7877
7881
  `;
7878
- Z([
7879
- h({ type: Array })
7882
+ ee([
7883
+ p({ type: Array })
7880
7884
  ], q.prototype, "assets", 2);
7881
- Z([
7882
- h({ type: Array })
7885
+ ee([
7886
+ p({ type: Array })
7883
7887
  ], q.prototype, "folders", 2);
7884
- Z([
7885
- h({ type: Array })
7888
+ ee([
7889
+ p({ type: Array })
7886
7890
  ], q.prototype, "selectedIds", 2);
7887
- Z([
7888
- h({ type: Array })
7891
+ ee([
7892
+ p({ type: Array })
7889
7893
  ], q.prototype, "selectedFolderIds", 2);
7890
- Z([
7891
- h({ type: Boolean })
7894
+ ee([
7895
+ p({ type: Boolean })
7892
7896
  ], q.prototype, "isLoading", 2);
7893
- Z([
7894
- h({ type: Boolean })
7897
+ ee([
7898
+ p({ type: Boolean })
7895
7899
  ], q.prototype, "multiSelect", 2);
7896
- Z([
7897
- h({ type: Boolean })
7900
+ ee([
7901
+ p({ type: Boolean })
7898
7902
  ], q.prototype, "folderSelectable", 2);
7899
- Z([
7900
- h({ type: Number })
7903
+ ee([
7904
+ p({ type: Number })
7901
7905
  ], q.prototype, "totalCount", 2);
7902
- Z([
7903
- h({ type: Boolean })
7906
+ ee([
7907
+ p({ type: Boolean })
7904
7908
  ], q.prototype, "isSelectingAll", 2);
7905
- Z([
7906
- h({ type: Object })
7909
+ ee([
7910
+ p({ type: Object })
7907
7911
  ], q.prototype, "folderPreviews", 2);
7908
- Z([
7912
+ ee([
7909
7913
  _()
7910
7914
  ], q.prototype, "_compactLevel", 2);
7911
- q = Z([
7915
+ q = ee([
7912
7916
  F("ap-list-view")
7913
7917
  ], q);
7914
7918
  const Na = /* @__PURE__ */ new Set(["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp", "ico", "tiff", "tif", "avif", "heic", "heif"]), ja = /* @__PURE__ */ new Set([
@@ -7923,7 +7927,7 @@ const Na = /* @__PURE__ */ new Set(["jpg", "jpeg", "png", "gif", "webp", "svg",
7923
7927
  "woff2",
7924
7928
  "eot"
7925
7929
  ]);
7926
- function ze(t) {
7930
+ function Re(t) {
7927
7931
  if (!t) return "other";
7928
7932
  const e = {
7929
7933
  image: "image",
@@ -8006,7 +8010,7 @@ function rt(t) {
8006
8010
  const e = (t == null ? void 0 : t.toLowerCase().replace(".", "")) || "", s = Ba[e];
8007
8011
  return `${Fs}${s || "DEFAULT"}.png`;
8008
8012
  }
8009
- function je() {
8013
+ function Be() {
8010
8014
  return `${Fs}DEFAULT.png`;
8011
8015
  }
8012
8016
  function St(t) {
@@ -8026,15 +8030,15 @@ function Es(t) {
8026
8030
  function vt(t) {
8027
8031
  var i;
8028
8032
  const e = t.info, s = (e == null ? void 0 : e.video_thumbnail) || (e == null ? void 0 : e.image_thumbnail) || (e == null ? void 0 : e.thumbnail) || (e == null ? void 0 : e.preview) || ((i = t.url) == null ? void 0 : i.cdn) || "";
8029
- return Be(s);
8033
+ return Ue(s);
8030
8034
  }
8031
8035
  function As(t) {
8032
8036
  const e = t.info, s = (e == null ? void 0 : e.video_thumbnail) || (e == null ? void 0 : e.image_thumbnail) || (e == null ? void 0 : e.thumbnail) || "";
8033
- return s ? Be(s) : "";
8037
+ return s ? Ue(s) : "";
8034
8038
  }
8035
8039
  function Kt(t) {
8036
8040
  var s, i;
8037
- let e = Be(((s = t.url) == null ? void 0 : s.cdn) || ((i = t.url) == null ? void 0 : i.public) || "");
8041
+ let e = Ue(((s = t.url) == null ? void 0 : s.cdn) || ((i = t.url) == null ? void 0 : i.public) || "");
8038
8042
  return e ? (e = e.replace(/([?&])func=proxy&?/, "$1").replace(/[?&]$/, ""), Je(e, {
8039
8043
  w: "200",
8040
8044
  force_format: "webp,jpeg",
@@ -8053,7 +8057,7 @@ function Je(t, e) {
8053
8057
  }
8054
8058
  }
8055
8059
  const cs = /^(https:\/\/)([a-z0-9_-]+)\.filerobot\.com\//i;
8056
- function Be(t, e) {
8060
+ function Ue(t, e) {
8057
8061
  if (!t) return "";
8058
8062
  if (t.includes("assets.filerobot.com")) return t;
8059
8063
  const s = t.match(cs);
@@ -8072,8 +8076,8 @@ function Be(t, e) {
8072
8076
  function Ts(t, e) {
8073
8077
  const s = t.file_uri_cdn;
8074
8078
  if (!s) return "";
8075
- let i = Be(s);
8076
- const a = ze(t.file_type), r = String(window.devicePixelRatio || 1);
8079
+ let i = Ue(s);
8080
+ const a = Re(t.file_type), r = String(window.devicePixelRatio || 1);
8077
8081
  return a === "video" ? Je(i, { w: e, dpr: r, force_format: "webp,jpeg" }) : t.file_type === "application/pdf" || St(t.file_type).toLowerCase() === "pdf" ? (i = i.replace(/([?&])func=proxy&?/, "$1").replace(/[?&]$/, ""), Je(i, { w: e, dpr: r, force_format: "webp,jpeg", doc_page: "1", bypass_process_proxy: "1" })) : Je(i, { w: e, dpr: r });
8078
8082
  }
8079
8083
  function Gt(t) {
@@ -8098,7 +8102,7 @@ var qa = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, ot = (t, e
8098
8102
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
8099
8103
  return i && a && qa(e, s, a), a;
8100
8104
  };
8101
- let Fe = class extends C {
8105
+ let Ae = class extends S {
8102
8106
  constructor() {
8103
8107
  super(...arguments), this.index = 0, this.selected = !1, this.multiSelect = !0;
8104
8108
  }
@@ -8134,10 +8138,10 @@ let Fe = class extends C {
8134
8138
  }));
8135
8139
  }
8136
8140
  render() {
8137
- var c, p, u, v, d;
8141
+ var c, h, u, v, d;
8138
8142
  const t = this.asset;
8139
8143
  if (!t) return n``;
8140
- const s = ze(t.type) === "video", i = ((c = t.extension) == null ? void 0 : c.toLowerCase()) === "pdf", a = Cs(t.extension || "");
8144
+ const s = Re(t.type) === "video", i = ((c = t.extension) == null ? void 0 : c.toLowerCase()) === "pdf", a = Cs(t.extension || "");
8141
8145
  let r = "";
8142
8146
  s ? r = As(t) : i ? r = Kt(t) : a && (r = vt(t));
8143
8147
  const o = rt(t.extension || ""), l = Ht(t.extension || "");
@@ -8150,19 +8154,19 @@ let Fe = class extends C {
8150
8154
  loading="lazy"
8151
8155
  class="thumb-img ${l ? "transparent-asset" : ""}"
8152
8156
  @error=${(g) => {
8153
- const m = g.target, w = je();
8154
- m.src !== o && m.src !== w ? (m.src = o, m.classList.add("icon-fallback")) : m.src !== w && (m.src = w);
8157
+ const m = g.target, x = Be();
8158
+ m.src !== o && m.src !== x ? (m.src = o, m.classList.add("icon-fallback")) : m.src !== x && (m.src = x);
8155
8159
  }}
8156
8160
  />` : n`<img
8157
8161
  src=${o}
8158
8162
  alt=${t.name}
8159
8163
  class="thumb-img icon-fallback"
8160
8164
  @error=${(g) => {
8161
- const m = g.target, w = je();
8162
- m.src !== w && (m.src = w);
8165
+ const m = g.target, x = Be();
8166
+ m.src !== x && (m.src = x);
8163
8167
  }}
8164
8168
  />`}
8165
- ${s && (((p = t.info) == null ? void 0 : p.video_duration) ?? ((u = t.info) == null ? void 0 : u.duration)) != null ? n`<span class="duration">${this._formatDuration(t.info.video_duration ?? t.info.duration)}</span>` : f}
8169
+ ${s && (((h = t.info) == null ? void 0 : h.video_duration) ?? ((u = t.info) == null ? void 0 : u.duration)) != null ? n`<span class="duration">${this._formatDuration(t.info.video_duration ?? t.info.duration)}</span>` : f}
8166
8170
  <div class="overlay">
8167
8171
  <button class="overlay-btn" @click=${this._handlePreview} aria-label="Preview">
8168
8172
  <ap-icon name="preview" .size=${16}></ap-icon>
@@ -8186,16 +8190,16 @@ let Fe = class extends C {
8186
8190
  <div class="info">
8187
8191
  <div class="name" title=${t.name}>${t.name}</div>
8188
8192
  <div class="meta">${(v = t.extension) == null ? void 0 : v.toUpperCase()}${(() => {
8189
- var $, T, y, M;
8190
- const g = (($ = t.info) == null ? void 0 : $.img_w) || ((T = t.info) == null ? void 0 : T.video_w), m = ((y = t.info) == null ? void 0 : y.img_h) || ((M = t.info) == null ? void 0 : M.video_h), w = Ms(g, m);
8191
- return w ? ` · ${w}` : "";
8193
+ var w, T, C, O;
8194
+ const g = ((w = t.info) == null ? void 0 : w.img_w) || ((T = t.info) == null ? void 0 : T.video_w), m = ((C = t.info) == null ? void 0 : C.img_h) || ((O = t.info) == null ? void 0 : O.video_h), x = Ms(g, m);
8195
+ return x ? ` · ${x}` : "";
8192
8196
  })()} · ${Gt(((d = t.size) == null ? void 0 : d.bytes) || 0)}</div>
8193
8197
  </div>
8194
8198
  </div>
8195
8199
  `;
8196
8200
  }
8197
8201
  };
8198
- Fe.styles = S`
8202
+ Ae.styles = k`
8199
8203
  :host {
8200
8204
  display: block;
8201
8205
  animation: ap-card-in 300ms ease-out both;
@@ -8376,32 +8380,32 @@ Fe.styles = S`
8376
8380
  }
8377
8381
  `;
8378
8382
  ot([
8379
- h({ type: Object })
8380
- ], Fe.prototype, "asset", 2);
8383
+ p({ type: Object })
8384
+ ], Ae.prototype, "asset", 2);
8381
8385
  ot([
8382
- h({ type: Number })
8383
- ], Fe.prototype, "index", 2);
8386
+ p({ type: Number })
8387
+ ], Ae.prototype, "index", 2);
8384
8388
  ot([
8385
- h({ type: Boolean, reflect: !0 })
8386
- ], Fe.prototype, "selected", 2);
8389
+ p({ type: Boolean, reflect: !0 })
8390
+ ], Ae.prototype, "selected", 2);
8387
8391
  ot([
8388
- h({ type: Boolean })
8389
- ], Fe.prototype, "multiSelect", 2);
8390
- Fe = ot([
8392
+ p({ type: Boolean })
8393
+ ], Ae.prototype, "multiSelect", 2);
8394
+ Ae = ot([
8391
8395
  F("ap-asset-card")
8392
- ], Fe);
8393
- var Ka = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Ge = (t, e, s, i) => {
8396
+ ], Ae);
8397
+ var Ka = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Ye = (t, e, s, i) => {
8394
8398
  for (var a = i > 1 ? void 0 : i ? Ga(e, s) : e, r = t.length - 1, o; r >= 0; r--)
8395
8399
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
8396
8400
  return i && a && Ka(e, s, a), a;
8397
8401
  };
8398
- let ve = class extends C {
8402
+ let be = class extends S {
8399
8403
  constructor() {
8400
8404
  super(...arguments), this.index = 0, this.selected = !1, this.multiSelect = !0, this.compactLevel = 0;
8401
8405
  }
8402
8406
  _getGridColumns() {
8403
8407
  const t = [];
8404
- return this.multiSelect && t.push("32px"), t.push("48px"), t.push("minmax(120px, 1fr)"), t.push("72px"), this.compactLevel < 2 && t.push("100px"), this.compactLevel < 1 && t.push("120px"), t.push("36px"), t.join(" ");
8408
+ return this.multiSelect && t.push("32px"), t.push("48px"), t.push("minmax(120px, 1fr)"), t.push("72px"), this.compactLevel < 2 && t.push("100px"), this.compactLevel < 1 && t.push("120px"), t.push("64px"), t.join(" ");
8405
8409
  }
8406
8410
  _handleSelect(t) {
8407
8411
  if (t.composedPath().some(
@@ -8424,11 +8428,17 @@ let ve = class extends C {
8424
8428
  bubbles: !0
8425
8429
  }));
8426
8430
  }
8431
+ _handleQuickSelect(t) {
8432
+ t.stopPropagation(), this.dispatchEvent(new CustomEvent("asset-quick-select", {
8433
+ detail: { asset: this.asset },
8434
+ bubbles: !0
8435
+ }));
8436
+ }
8427
8437
  render() {
8428
- var c, p, u;
8438
+ var c, h, u;
8429
8439
  const t = this.asset;
8430
8440
  if (!t) return n``;
8431
- const s = ze(t.type) === "video", i = ((c = t.extension) == null ? void 0 : c.toLowerCase()) === "pdf", a = Cs(t.extension || "");
8441
+ const s = Re(t.type) === "video", i = ((c = t.extension) == null ? void 0 : c.toLowerCase()) === "pdf", a = Cs(t.extension || "");
8432
8442
  let r = "";
8433
8443
  s ? r = As(t) : i ? r = Kt(t) : a && (r = vt(t));
8434
8444
  const o = rt(t.extension || ""), l = Ht(t.extension || "");
@@ -8450,7 +8460,7 @@ let ve = class extends C {
8450
8460
  class="${l ? "transparent-asset" : ""}"
8451
8461
  loading="lazy"
8452
8462
  @error=${(v) => {
8453
- const d = v.target, g = je();
8463
+ const d = v.target, g = Be();
8454
8464
  d.src !== o && d.src !== g ? (d.src = o, d.classList.add("icon-fallback")) : d.src !== g && (d.src = g);
8455
8465
  }}
8456
8466
  />` : n`<img
@@ -8458,17 +8468,20 @@ let ve = class extends C {
8458
8468
  alt=${t.name}
8459
8469
  class="icon-fallback"
8460
8470
  @error=${(v) => {
8461
- const d = v.target, g = je();
8471
+ const d = v.target, g = Be();
8462
8472
  d.src !== g && (d.src = g);
8463
8473
  }}
8464
8474
  />`}
8465
8475
  </div>
8466
8476
  <div class="name" title=${t.name}>${t.name}</div>
8467
- <div class="type">${(p = t.extension) == null ? void 0 : p.toUpperCase()}</div>
8477
+ <div class="type">${(h = t.extension) == null ? void 0 : h.toUpperCase()}</div>
8468
8478
  ${this.compactLevel < 2 ? n`<div class="desc">${Gt(((u = t.size) == null ? void 0 : u.bytes) || 0)}</div>` : f}
8469
8479
  ${this.compactLevel < 1 ? n`<div class="date">${mt(t.created_at || "")}</div>` : f}
8470
8480
  <div class="actions">
8471
- <button class="icon-btn" @click=${this._handlePreview} aria-label="Preview">
8481
+ <button class="icon-btn select-btn" @click=${this._handleQuickSelect} aria-label="Select" title="Select">
8482
+ <ap-icon name="select" .size=${16}></ap-icon>
8483
+ </button>
8484
+ <button class="icon-btn" @click=${this._handlePreview} aria-label="Preview" title="Preview">
8472
8485
  <ap-icon name="preview" .size=${16}></ap-icon>
8473
8486
  </button>
8474
8487
  </div>
@@ -8476,7 +8489,7 @@ let ve = class extends C {
8476
8489
  `;
8477
8490
  }
8478
8491
  };
8479
- ve.styles = S`
8492
+ be.styles = k`
8480
8493
  :host {
8481
8494
  display: block;
8482
8495
  }
@@ -8567,6 +8580,9 @@ ve.styles = S`
8567
8580
  background: var(--ap-background, oklch(1 0 0));
8568
8581
  color: var(--ap-foreground, oklch(0.37 0.022 248.413));
8569
8582
  }
8583
+ .icon-btn.select-btn {
8584
+ color: var(--ap-primary, oklch(0.578 0.198 268.129));
8585
+ }
8570
8586
  .thumb.chess {
8571
8587
  background-image: conic-gradient(var(--ap-chess-a, #f0f0f0) 25%, var(--ap-chess-b, #fff) 25% 50%, var(--ap-chess-a, #f0f0f0) 50% 75%, var(--ap-chess-b, #fff) 75%);
8572
8588
  background-size: 12px 12px;
@@ -8604,32 +8620,32 @@ ve.styles = S`
8604
8620
  display: block;
8605
8621
  }
8606
8622
  `;
8607
- Ge([
8608
- h({ type: Object })
8609
- ], ve.prototype, "asset", 2);
8610
- Ge([
8611
- h({ type: Number })
8612
- ], ve.prototype, "index", 2);
8613
- Ge([
8614
- h({ type: Boolean, reflect: !0 })
8615
- ], ve.prototype, "selected", 2);
8616
- Ge([
8617
- h({ type: Boolean })
8618
- ], ve.prototype, "multiSelect", 2);
8619
- Ge([
8620
- h({ type: Number })
8621
- ], ve.prototype, "compactLevel", 2);
8622
- ve = Ge([
8623
+ Ye([
8624
+ p({ type: Object })
8625
+ ], be.prototype, "asset", 2);
8626
+ Ye([
8627
+ p({ type: Number })
8628
+ ], be.prototype, "index", 2);
8629
+ Ye([
8630
+ p({ type: Boolean, reflect: !0 })
8631
+ ], be.prototype, "selected", 2);
8632
+ Ye([
8633
+ p({ type: Boolean })
8634
+ ], be.prototype, "multiSelect", 2);
8635
+ Ye([
8636
+ p({ type: Number })
8637
+ ], be.prototype, "compactLevel", 2);
8638
+ be = Ye([
8623
8639
  F("ap-asset-row")
8624
- ], ve);
8625
- var Ya = Object.defineProperty, Xa = Object.getOwnPropertyDescriptor, Ye = (t, e, s, i) => {
8640
+ ], be);
8641
+ var Ya = Object.defineProperty, Xa = Object.getOwnPropertyDescriptor, Pe = (t, e, s, i) => {
8626
8642
  for (var a = i > 1 ? void 0 : i ? Xa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
8627
8643
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
8628
8644
  return i && a && Ya(e, s, a), a;
8629
8645
  };
8630
- let me = class extends C {
8646
+ let pe = class extends S {
8631
8647
  constructor() {
8632
- super(...arguments), this.previews = [], this.selected = !1, this.selectable = !1, this.index = 0;
8648
+ super(...arguments), this.previews = [], this.selected = !1, this.selectable = !1, this.multiSelect = !0, this.index = 0;
8633
8649
  }
8634
8650
  _handleClick(t) {
8635
8651
  if (!this.selectable) {
@@ -8659,7 +8675,7 @@ let me = class extends C {
8659
8675
  return Ts(t, "200");
8660
8676
  }
8661
8677
  _renderPreviewImg(t) {
8662
- const e = Es(t.file_type), s = this._getPreviewUrl(t), i = rt(St(t.file_type)), a = je();
8678
+ const e = Es(t.file_type), s = this._getPreviewUrl(t), i = rt(St(t.file_type)), a = Be();
8663
8679
  return n`<div class="preview-slot ${e ? "icon-bg" : ""}">
8664
8680
  <img
8665
8681
  class="preview-img ${e ? "icon-mode" : ""}"
@@ -8703,7 +8719,7 @@ let me = class extends C {
8703
8719
  <path d="M 3,0 L 30,0 L 43.5,0 Q 45,0 46.5,3 L 51,12 L 97,12 Q 100,12 100,15 L 100,97 Q 100,100 97,100 L 3,100 Q 0,100 0,97 L 0,3 Q 0,0 3,0 Z"
8704
8720
  rx="3" ry="3" />
8705
8721
  </svg>
8706
- ${this.selectable ? n`
8722
+ ${this.selectable && this.multiSelect ? n`
8707
8723
  <div class="check">
8708
8724
  <div class="check-box">
8709
8725
  <svg class="check-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
@@ -8729,7 +8745,7 @@ let me = class extends C {
8729
8745
  `;
8730
8746
  }
8731
8747
  };
8732
- me.styles = [te, S`
8748
+ pe.styles = [ae, k`
8733
8749
  :host {
8734
8750
  display: block;
8735
8751
  }
@@ -8908,39 +8924,42 @@ me.styles = [te, S`
8908
8924
  display: block;
8909
8925
  }
8910
8926
  `];
8911
- Ye([
8912
- h({ type: Object })
8913
- ], me.prototype, "folder", 2);
8914
- Ye([
8915
- h({ type: Array })
8916
- ], me.prototype, "previews", 2);
8917
- Ye([
8918
- h({ type: Boolean, reflect: !0 })
8919
- ], me.prototype, "selected", 2);
8920
- Ye([
8921
- h({ type: Boolean })
8922
- ], me.prototype, "selectable", 2);
8923
- Ye([
8924
- h({ type: Number })
8925
- ], me.prototype, "index", 2);
8926
- me = Ye([
8927
+ Pe([
8928
+ p({ type: Object })
8929
+ ], pe.prototype, "folder", 2);
8930
+ Pe([
8931
+ p({ type: Array })
8932
+ ], pe.prototype, "previews", 2);
8933
+ Pe([
8934
+ p({ type: Boolean, reflect: !0 })
8935
+ ], pe.prototype, "selected", 2);
8936
+ Pe([
8937
+ p({ type: Boolean })
8938
+ ], pe.prototype, "selectable", 2);
8939
+ Pe([
8940
+ p({ type: Boolean })
8941
+ ], pe.prototype, "multiSelect", 2);
8942
+ Pe([
8943
+ p({ type: Number })
8944
+ ], pe.prototype, "index", 2);
8945
+ pe = Pe([
8927
8946
  F("ap-folder-card")
8928
- ], me);
8929
- var Wa = Object.defineProperty, Qa = Object.getOwnPropertyDescriptor, Oe = (t, e, s, i) => {
8947
+ ], pe);
8948
+ var Wa = Object.defineProperty, Qa = Object.getOwnPropertyDescriptor, ye = (t, e, s, i) => {
8930
8949
  for (var a = i > 1 ? void 0 : i ? Qa(e, s) : e, r = t.length - 1, o; r >= 0; r--)
8931
8950
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
8932
8951
  return i && a && Wa(e, s, a), a;
8933
8952
  };
8934
- let le = class extends C {
8953
+ let se = class extends S {
8935
8954
  constructor() {
8936
- super(...arguments), this.previews = [], this.selected = !1, this.selectable = !1, this.index = 0, this.compactLevel = 0;
8955
+ super(...arguments), this.previews = [], this.selected = !1, this.selectable = !1, this.multiSelect = !0, this.index = 0, this.compactLevel = 0;
8937
8956
  }
8938
8957
  _getGridColumns() {
8939
8958
  const t = [];
8940
- return t.push("32px"), t.push("48px"), t.push("minmax(120px, 1fr)"), t.push("72px"), this.compactLevel < 2 && t.push("100px"), this.compactLevel < 1 && t.push("120px"), t.push("36px"), t.join(" ");
8959
+ return this.multiSelect && t.push("32px"), t.push("48px"), t.push("minmax(120px, 1fr)"), t.push("72px"), this.compactLevel < 2 && t.push("100px"), this.compactLevel < 1 && t.push("120px"), t.push("64px"), t.join(" ");
8941
8960
  }
8942
8961
  _renderPreviewImg(t) {
8943
- const e = Es(t.file_type), s = Ts(t, "80"), i = rt(St(t.file_type)), a = je();
8962
+ const e = Es(t.file_type), s = Ts(t, "80"), i = rt(St(t.file_type)), a = Be();
8944
8963
  return n`<div class="preview-slot ${e ? "icon-bg" : ""}"><img
8945
8964
  class="preview-img ${e ? "icon-mode" : ""}"
8946
8965
  src="${s || i}"
@@ -8997,15 +9016,14 @@ let le = class extends C {
8997
9016
  const t = this.folder;
8998
9017
  return t ? n`
8999
9018
  <div class="row" style="grid-template-columns: ${this._getGridColumns()}" @click=${this._handleClick}>
9000
- ${this.selectable ? n`
9001
- <div class="check">
9002
- <div class="check-box">
9003
- <svg class="check-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
9004
- <path d="M20 6 9 17l-5-5"></path>
9005
- </svg>
9006
- </div>
9007
- </div>
9008
- ` : n`<div></div>`}
9019
+ ${this.multiSelect ? this.selectable ? n`
9020
+ <div class="check">
9021
+ <div class="check-box">
9022
+ <svg class="check-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
9023
+ <path d="M20 6 9 17l-5-5"></path>
9024
+ </svg>
9025
+ </div>
9026
+ </div>` : n`<div></div>` : f}
9009
9027
  <div class="thumb">${this._renderThumb()}</div>
9010
9028
  <div class="name">${t.name}</div>
9011
9029
  <div class="meta">Folder</div>
@@ -9016,7 +9034,7 @@ let le = class extends C {
9016
9034
  ` : n``;
9017
9035
  }
9018
9036
  };
9019
- le.styles = S`
9037
+ se.styles = k`
9020
9038
  :host {
9021
9039
  display: block;
9022
9040
  }
@@ -9136,33 +9154,36 @@ le.styles = S`
9136
9154
  display: block;
9137
9155
  }
9138
9156
  `;
9139
- Oe([
9140
- h({ type: Object })
9141
- ], le.prototype, "folder", 2);
9142
- Oe([
9143
- h({ type: Array })
9144
- ], le.prototype, "previews", 2);
9145
- Oe([
9146
- h({ type: Boolean, reflect: !0 })
9147
- ], le.prototype, "selected", 2);
9148
- Oe([
9149
- h({ type: Boolean })
9150
- ], le.prototype, "selectable", 2);
9151
- Oe([
9152
- h({ type: Number })
9153
- ], le.prototype, "index", 2);
9154
- Oe([
9155
- h({ type: Number })
9156
- ], le.prototype, "compactLevel", 2);
9157
- le = Oe([
9157
+ ye([
9158
+ p({ type: Object })
9159
+ ], se.prototype, "folder", 2);
9160
+ ye([
9161
+ p({ type: Array })
9162
+ ], se.prototype, "previews", 2);
9163
+ ye([
9164
+ p({ type: Boolean, reflect: !0 })
9165
+ ], se.prototype, "selected", 2);
9166
+ ye([
9167
+ p({ type: Boolean })
9168
+ ], se.prototype, "selectable", 2);
9169
+ ye([
9170
+ p({ type: Boolean })
9171
+ ], se.prototype, "multiSelect", 2);
9172
+ ye([
9173
+ p({ type: Number })
9174
+ ], se.prototype, "index", 2);
9175
+ ye([
9176
+ p({ type: Number })
9177
+ ], se.prototype, "compactLevel", 2);
9178
+ se = ye([
9158
9179
  F("ap-folder-row")
9159
- ], le);
9180
+ ], se);
9160
9181
  var Za = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor, nt = (t, e, s, i) => {
9161
9182
  for (var a = i > 1 ? void 0 : i ? Ja(e, s) : e, r = t.length - 1, o; r >= 0; r--)
9162
9183
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
9163
9184
  return i && a && Za(e, s, a), a;
9164
9185
  };
9165
- let Ee = class extends C {
9186
+ let Te = class extends S {
9166
9187
  constructor() {
9167
9188
  super(...arguments), this.variant = "grid", this.gridSize = "normal", this.multiSelect = !0, this.folderCount = 0;
9168
9189
  }
@@ -9223,7 +9244,7 @@ let Ee = class extends C {
9223
9244
  `;
9224
9245
  }
9225
9246
  };
9226
- Ee.styles = S`
9247
+ Te.styles = k`
9227
9248
  :host {
9228
9249
  display: block;
9229
9250
  padding: 0 20px 16px;
@@ -9350,20 +9371,20 @@ Ee.styles = S`
9350
9371
  }
9351
9372
  `;
9352
9373
  nt([
9353
- h({ reflect: !0 })
9354
- ], Ee.prototype, "variant", 2);
9374
+ p({ reflect: !0 })
9375
+ ], Te.prototype, "variant", 2);
9355
9376
  nt([
9356
- h({ type: String })
9357
- ], Ee.prototype, "gridSize", 2);
9377
+ p({ type: String })
9378
+ ], Te.prototype, "gridSize", 2);
9358
9379
  nt([
9359
- h({ type: Boolean })
9360
- ], Ee.prototype, "multiSelect", 2);
9380
+ p({ type: Boolean })
9381
+ ], Te.prototype, "multiSelect", 2);
9361
9382
  nt([
9362
- h({ type: Number })
9363
- ], Ee.prototype, "folderCount", 2);
9364
- Ee = nt([
9383
+ p({ type: Number })
9384
+ ], Te.prototype, "folderCount", 2);
9385
+ Te = nt([
9365
9386
  F("ap-skeleton")
9366
- ], Ee);
9387
+ ], Te);
9367
9388
  function er(t) {
9368
9389
  var a, r;
9369
9390
  const e = (a = t.info) == null ? void 0 : a.playlists;
@@ -9376,7 +9397,7 @@ var tr = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, j = (t, e,
9376
9397
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
9377
9398
  return i && a && tr(e, s, a), a;
9378
9399
  };
9379
- let R = class extends C {
9400
+ let N = class extends S {
9380
9401
  constructor() {
9381
9402
  super(...arguments), this.asset = null, this.assets = [], this.selectedIds = [], this.containerToken = "", this.showMetadata = !0, this.metadataFields = [], this.labels = [], this.regionalFilters = {}, this.multiSelect = !0, this._isFullscreen = !1, this._fsImageLoaded = !1, this._previewLoading = !1, this._openSections = /* @__PURE__ */ new Set(["file-info", "metadata"]), this._hls = null;
9382
9403
  }
@@ -9398,7 +9419,7 @@ let R = class extends C {
9398
9419
  }
9399
9420
  updated(t) {
9400
9421
  if (super.updated(t), t.has("asset") && (this._destroyHls(), this._previewLoading = !0, this.asset)) {
9401
- const e = ze(this.asset.type);
9422
+ const e = Re(this.asset.type);
9402
9423
  e === "video" && this._setupHls(this.asset), e !== "image" && e !== "video" && (this._previewLoading = !1);
9403
9424
  }
9404
9425
  }
@@ -9417,8 +9438,8 @@ let R = class extends C {
9417
9438
  if (!r.isSupported() || ((a = this.asset) == null ? void 0 : a.uuid) !== t.uuid || !this.isConnected) return;
9418
9439
  const o = new r();
9419
9440
  this._hls = o, o.loadSource(e), o.attachMedia(s), o.on(r.Events.ERROR, (l, c) => {
9420
- var p;
9421
- c.fatal && (this._destroyHls(), s.src = ((p = t.url) == null ? void 0 : p.cdn) || "");
9441
+ var h;
9442
+ c.fatal && (this._destroyHls(), s.src = ((h = t.url) == null ? void 0 : h.cdn) || "");
9422
9443
  });
9423
9444
  } catch {
9424
9445
  }
@@ -9471,7 +9492,7 @@ let R = class extends C {
9471
9492
  }
9472
9493
  /** Check if an asset supports inline fullscreen preview (not PDF/other). */
9473
9494
  _supportsFullscreen(t) {
9474
- const e = ze(t.type);
9495
+ const e = Re(t.type);
9475
9496
  return e === "image" || e === "video" || e === "audio";
9476
9497
  }
9477
9498
  /**
@@ -9503,7 +9524,7 @@ let R = class extends C {
9503
9524
  const e = (i = t.url) == null ? void 0 : i.cdn;
9504
9525
  if (!e) return vt(t) || "";
9505
9526
  if (((a = t.extension) == null ? void 0 : a.toLowerCase()) === "svg") return e;
9506
- const s = Be(e, this.containerToken);
9527
+ const s = Ue(e, this.containerToken);
9507
9528
  return Je(s, {
9508
9529
  w: String(window.screen.width),
9509
9530
  dpr: String(window.devicePixelRatio || 1),
@@ -9540,14 +9561,14 @@ let R = class extends C {
9540
9561
  }
9541
9562
  _applyTagFilter(t) {
9542
9563
  this.dispatchEvent(new CustomEvent("filter-update", {
9543
- detail: { key: b.TAGS, values: [t], operator: k.IS },
9564
+ detail: { key: b.TAGS, values: [t], operator: $.IS },
9544
9565
  bubbles: !0,
9545
9566
  composed: !0
9546
9567
  }));
9547
9568
  }
9548
9569
  _applyLabelFilter(t) {
9549
9570
  this.dispatchEvent(new CustomEvent("filter-update", {
9550
- detail: { key: b.LABELS, values: [t], operator: k.IS },
9571
+ detail: { key: b.LABELS, values: [t], operator: $.IS },
9551
9572
  bubbles: !0,
9552
9573
  composed: !0
9553
9574
  }));
@@ -9665,9 +9686,9 @@ let R = class extends C {
9665
9686
  var r, o, l, c;
9666
9687
  const e = [], s = this._buildFieldMap(), i = /* @__PURE__ */ new Set();
9667
9688
  if (this.metadataFields.length > 0) {
9668
- const p = t;
9689
+ const h = t;
9669
9690
  for (const u of this.metadataFields) {
9670
- const v = p[u.key] ?? ((o = (r = t.info) == null ? void 0 : r.metadata) == null ? void 0 : o[u.key]) ?? ((l = t.meta) == null ? void 0 : l[u.key]), d = this._resolveFieldValue(v, u);
9691
+ const v = h[u.key] ?? ((o = (r = t.info) == null ? void 0 : r.metadata) == null ? void 0 : o[u.key]) ?? ((l = t.meta) == null ? void 0 : l[u.key]), d = this._resolveFieldValue(v, u);
9671
9692
  if (!d) continue;
9672
9693
  i.add(u.key), u.slug && i.add(u.slug);
9673
9694
  const g = d.length > 50;
@@ -9675,39 +9696,39 @@ let R = class extends C {
9675
9696
  }
9676
9697
  }
9677
9698
  if (t.meta)
9678
- for (const [p, u] of Object.entries(t.meta)) {
9679
- if (i.has(p) || u == null || u === "") continue;
9680
- const v = s.get(p);
9699
+ for (const [h, u] of Object.entries(t.meta)) {
9700
+ if (i.has(h) || u == null || u === "") continue;
9701
+ const v = s.get(h);
9681
9702
  if (v) {
9682
9703
  const d = this._resolveFieldValue(u, v);
9683
9704
  if (!d) continue;
9684
- i.add(p);
9705
+ i.add(h);
9685
9706
  const g = d.length > 50;
9686
9707
  e.push({ label: v.label, value: d, wrap: g });
9687
9708
  } else {
9688
9709
  const d = typeof u == "object" ? JSON.stringify(u) : String(u);
9689
9710
  if (!d || d === "{}" || d === "[]") continue;
9690
- i.add(p);
9691
- const g = p.charAt(0).toUpperCase() + p.slice(1).replace(/_/g, " "), m = d.length > 50;
9711
+ i.add(h);
9712
+ const g = h.charAt(0).toUpperCase() + h.slice(1).replace(/_/g, " "), m = d.length > 50;
9692
9713
  e.push({ label: g, value: d, wrap: m });
9693
9714
  }
9694
9715
  }
9695
9716
  const a = (c = t.info) == null ? void 0 : c.metadata;
9696
9717
  if (a && typeof a == "object")
9697
- for (const [p, u] of Object.entries(a)) {
9698
- if (i.has(p) || u == null || u === "") continue;
9699
- const v = s.get(p);
9718
+ for (const [h, u] of Object.entries(a)) {
9719
+ if (i.has(h) || u == null || u === "") continue;
9720
+ const v = s.get(h);
9700
9721
  if (v) {
9701
9722
  const d = this._resolveFieldValue(u, v);
9702
9723
  if (!d) continue;
9703
- i.add(p);
9724
+ i.add(h);
9704
9725
  const g = d.length > 50;
9705
9726
  e.push({ label: v.label, value: d, wrap: g });
9706
9727
  } else {
9707
9728
  const d = typeof u == "object" ? JSON.stringify(u) : String(u);
9708
9729
  if (!d || d === "{}" || d === "[]") continue;
9709
- i.add(p);
9710
- const g = p.charAt(0).toUpperCase() + p.slice(1).replace(/_/g, " "), m = d.length > 50;
9730
+ i.add(h);
9731
+ const g = h.charAt(0).toUpperCase() + h.slice(1).replace(/_/g, " "), m = d.length > 50;
9711
9732
  e.push({ label: g, value: d, wrap: m });
9712
9733
  }
9713
9734
  }
@@ -9748,10 +9769,10 @@ let R = class extends C {
9748
9769
  `;
9749
9770
  }
9750
9771
  render() {
9751
- var I, E, z, N, ee, _e, Pe, lt;
9772
+ var D, E, M, R, G, Y, Ie, lt;
9752
9773
  const t = this.asset;
9753
9774
  if (!t) return f;
9754
- const e = ze(t.type), s = e === "image", i = e === "video", a = e === "audio", r = ((I = t.extension) == null ? void 0 : I.toLowerCase()) === "pdf", o = rt(t.extension || ""), l = Ht(t.extension || ""), c = ((E = t.extension) == null ? void 0 : E.toLowerCase()) === "svg", p = vt(t), u = s ? c ? ((z = t.url) == null ? void 0 : z.cdn) || "" : p || Be(((N = t.url) == null ? void 0 : N.cdn) || "", this.containerToken) : "", v = s ? this._getFullscreenImageUrl(t) : "", d = s && !c ? this._getBlurDimensions(t) : null, g = i && ((ee = t.url) == null ? void 0 : ee.cdn) || "", m = i && (((_e = t.info) == null ? void 0 : _e.video_thumbnail) || ((Pe = t.info) == null ? void 0 : Pe.preview)) || "", w = r && !s ? Kt(t) : "", $ = this._getCurrentIndex(), T = $ > 0 && this._findNavTarget($, -1) >= 0, y = $ >= 0 && this._findNavTarget($, 1) >= 0, M = this.assets.length > 1;
9775
+ const e = Re(t.type), s = e === "image", i = e === "video", a = e === "audio", r = ((D = t.extension) == null ? void 0 : D.toLowerCase()) === "pdf", o = rt(t.extension || ""), l = Ht(t.extension || ""), c = ((E = t.extension) == null ? void 0 : E.toLowerCase()) === "svg", h = vt(t), u = s ? c ? ((M = t.url) == null ? void 0 : M.cdn) || "" : h || Ue(((R = t.url) == null ? void 0 : R.cdn) || "", this.containerToken) : "", v = s ? this._getFullscreenImageUrl(t) : "", d = s && !c ? this._getBlurDimensions(t) : null, g = i && ((G = t.url) == null ? void 0 : G.cdn) || "", m = i && (((Y = t.info) == null ? void 0 : Y.video_thumbnail) || ((Ie = t.info) == null ? void 0 : Ie.preview)) || "", x = r && !s ? Kt(t) : "", w = this._getCurrentIndex(), T = w > 0 && this._findNavTarget(w, -1) >= 0, C = w >= 0 && this._findNavTarget(w, 1) >= 0, O = this.assets.length > 1;
9755
9776
  return n`
9756
9777
  <div class="panel">
9757
9778
  <div class="panel-header">
@@ -9771,11 +9792,11 @@ let R = class extends C {
9771
9792
  </div>
9772
9793
 
9773
9794
  <div class="preview-area ${s && l ? "chess" : ""}">
9774
- ${M ? n`
9795
+ ${O ? n`
9775
9796
  <button class="nav-btn prev" @click=${this._prev} ?disabled=${!T} aria-label="Previous">
9776
9797
  <ap-icon name="chevron-left" .size=${16}></ap-icon>
9777
9798
  </button>
9778
- <button class="nav-btn next" @click=${this._next} ?disabled=${!y} aria-label="Next">
9799
+ <button class="nav-btn next" @click=${this._next} ?disabled=${!C} aria-label="Next">
9779
9800
  <ap-icon name="chevron-right" .size=${16}></ap-icon>
9780
9801
  </button>
9781
9802
  ` : f}
@@ -9789,12 +9810,12 @@ let R = class extends C {
9789
9810
  <img
9790
9811
  src=${u}
9791
9812
  alt=${t.name}
9792
- @load=${(ye) => {
9793
- ye.target.classList.remove("icon-fallback"), this._previewLoading = !1;
9813
+ @load=${(we) => {
9814
+ we.target.classList.remove("icon-fallback"), this._previewLoading = !1;
9794
9815
  }}
9795
- @error=${(ye) => {
9796
- const xe = ye.target;
9797
- this._previewLoading = !1, xe.src !== o && (xe.src = o, xe.classList.add("icon-fallback"));
9816
+ @error=${(we) => {
9817
+ const $e = we.target;
9818
+ this._previewLoading = !1, $e.src !== o && ($e.src = o, $e.classList.add("icon-fallback"));
9798
9819
  }}
9799
9820
  />
9800
9821
  <div class="fs-wrapper">
@@ -9823,12 +9844,12 @@ let R = class extends C {
9823
9844
  ${a ? n`<audio src=${((lt = t.url) == null ? void 0 : lt.cdn) || ""} controls></audio>` : f}
9824
9845
  ${r && !s ? n`
9825
9846
  <img
9826
- src=${w || o}
9847
+ src=${x || o}
9827
9848
  alt=${t.name}
9828
- class=${w ? "" : "icon-fallback"}
9829
- @error=${(ye) => {
9830
- const xe = ye.target;
9831
- xe.src !== o && (xe.src = o, xe.classList.add("icon-fallback"));
9849
+ class=${x ? "" : "icon-fallback"}
9850
+ @error=${(we) => {
9851
+ const $e = we.target;
9852
+ $e.src !== o && ($e.src = o, $e.classList.add("icon-fallback"));
9832
9853
  }}
9833
9854
  />
9834
9855
  ` : f}
@@ -9843,7 +9864,7 @@ let R = class extends C {
9843
9864
  `;
9844
9865
  }
9845
9866
  };
9846
- R.styles = S`
9867
+ N.styles = k`
9847
9868
  :host {
9848
9869
  display: block;
9849
9870
  }
@@ -10156,53 +10177,53 @@ R.styles = S`
10156
10177
  }
10157
10178
  `;
10158
10179
  j([
10159
- h({ type: Object })
10160
- ], R.prototype, "asset", 2);
10180
+ p({ type: Object })
10181
+ ], N.prototype, "asset", 2);
10161
10182
  j([
10162
- h({ type: Array })
10163
- ], R.prototype, "assets", 2);
10183
+ p({ type: Array })
10184
+ ], N.prototype, "assets", 2);
10164
10185
  j([
10165
- h({ type: Array })
10166
- ], R.prototype, "selectedIds", 2);
10186
+ p({ type: Array })
10187
+ ], N.prototype, "selectedIds", 2);
10167
10188
  j([
10168
- h()
10169
- ], R.prototype, "containerToken", 2);
10189
+ p()
10190
+ ], N.prototype, "containerToken", 2);
10170
10191
  j([
10171
- h({ type: Boolean })
10172
- ], R.prototype, "showMetadata", 2);
10192
+ p({ type: Boolean })
10193
+ ], N.prototype, "showMetadata", 2);
10173
10194
  j([
10174
- h({ type: Array })
10175
- ], R.prototype, "metadataFields", 2);
10195
+ p({ type: Array })
10196
+ ], N.prototype, "metadataFields", 2);
10176
10197
  j([
10177
- h({ type: Array })
10178
- ], R.prototype, "labels", 2);
10198
+ p({ type: Array })
10199
+ ], N.prototype, "labels", 2);
10179
10200
  j([
10180
- h({ type: Object })
10181
- ], R.prototype, "regionalFilters", 2);
10201
+ p({ type: Object })
10202
+ ], N.prototype, "regionalFilters", 2);
10182
10203
  j([
10183
- h({ type: Boolean })
10184
- ], R.prototype, "multiSelect", 2);
10204
+ p({ type: Boolean })
10205
+ ], N.prototype, "multiSelect", 2);
10185
10206
  j([
10186
- Ae(".preview-area")
10187
- ], R.prototype, "previewArea", 2);
10207
+ Me(".preview-area")
10208
+ ], N.prototype, "previewArea", 2);
10188
10209
  j([
10189
- Ae("video")
10190
- ], R.prototype, "_videoEl", 2);
10210
+ Me("video")
10211
+ ], N.prototype, "_videoEl", 2);
10191
10212
  j([
10192
10213
  _()
10193
- ], R.prototype, "_isFullscreen", 2);
10214
+ ], N.prototype, "_isFullscreen", 2);
10194
10215
  j([
10195
10216
  _()
10196
- ], R.prototype, "_fsImageLoaded", 2);
10217
+ ], N.prototype, "_fsImageLoaded", 2);
10197
10218
  j([
10198
10219
  _()
10199
- ], R.prototype, "_previewLoading", 2);
10220
+ ], N.prototype, "_previewLoading", 2);
10200
10221
  j([
10201
10222
  _()
10202
- ], R.prototype, "_openSections", 2);
10203
- R = j([
10223
+ ], N.prototype, "_openSections", 2);
10224
+ N = j([
10204
10225
  F("ap-preview-panel")
10205
- ], R);
10226
+ ], N);
10206
10227
  var ir = Object.defineProperty, ar = Object.getOwnPropertyDescriptor, Yt = (t, e, s, i) => {
10207
10228
  for (var a = i > 1 ? void 0 : i ? ar(e, s) : e, r = t.length - 1, o; r >= 0; r--)
10208
10229
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
@@ -10552,16 +10573,16 @@ const rr = {
10552
10573
  { tag: "path", attrs: { d: "M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z" } }
10553
10574
  ]
10554
10575
  };
10555
- let st = class extends C {
10576
+ let st = class extends S {
10556
10577
  constructor() {
10557
10578
  super(...arguments), this.name = "", this.size = 20;
10558
10579
  }
10559
10580
  render() {
10560
10581
  const t = rr[this.name];
10561
10582
  if (!t) return f;
10562
- const e = typeof t == "string" ? ue`<path d=${t}></path>` : t.map((s) => {
10583
+ const e = typeof t == "string" ? fe`<path d=${t}></path>` : t.map((s) => {
10563
10584
  const { tag: i, attrs: a } = s;
10564
- return i === "circle" ? ue`<circle cx=${a.cx} cy=${a.cy} r=${a.r} fill=${a.fill ?? "none"}></circle>` : i === "rect" ? ue`<rect width=${a.width} height=${a.height} x=${a.x} y=${a.y} rx=${a.rx ?? "0"} ry=${a.ry ?? "0"}></rect>` : ue`<path d=${a.d}></path>`;
10585
+ return i === "circle" ? fe`<circle cx=${a.cx} cy=${a.cy} r=${a.r} fill=${a.fill ?? "none"}></circle>` : i === "rect" ? fe`<rect width=${a.width} height=${a.height} x=${a.x} y=${a.y} rx=${a.rx ?? "0"} ry=${a.ry ?? "0"}></rect>` : fe`<path d=${a.d}></path>`;
10565
10586
  });
10566
10587
  return n`
10567
10588
  <svg
@@ -10579,7 +10600,7 @@ let st = class extends C {
10579
10600
  }
10580
10601
  };
10581
10602
  st.styles = [
10582
- S`
10603
+ k`
10583
10604
  :host {
10584
10605
  display: inline-flex;
10585
10606
  align-items: center;
@@ -10592,22 +10613,22 @@ st.styles = [
10592
10613
  `
10593
10614
  ];
10594
10615
  Yt([
10595
- h()
10616
+ p()
10596
10617
  ], st.prototype, "name", 2);
10597
10618
  Yt([
10598
- h({ type: Number })
10619
+ p({ type: Number })
10599
10620
  ], st.prototype, "size", 2);
10600
10621
  st = Yt([
10601
10622
  F("ap-icon")
10602
10623
  ], st);
10603
- var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Le = (t, e, s, i) => {
10624
+ var or = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, xe = (t, e, s, i) => {
10604
10625
  for (var a = i > 1 ? void 0 : i ? nr(e, s) : e, r = t.length - 1, o; r >= 0; r--)
10605
10626
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
10606
10627
  return i && a && or(e, s, a), a;
10607
10628
  };
10608
- let ce = class extends C {
10629
+ let ie = class extends S {
10609
10630
  constructor() {
10610
- super(...arguments), this.selectedAssets = [], this.selectedFolders = [], this.totalCount = 0, this.isSelectingAll = !1, this.multiSelect = !0;
10631
+ super(...arguments), this.selectedAssets = [], this.selectedFolders = [], this.totalCount = 0, this.totalFolderCount = 0, this.isSelectingAll = !1, this.multiSelect = !0;
10611
10632
  }
10612
10633
  get _totalSelected() {
10613
10634
  return this.selectedAssets.length + this.selectedFolders.length;
@@ -10629,29 +10650,48 @@ let ce = class extends C {
10629
10650
  _clear() {
10630
10651
  this.dispatchEvent(new CustomEvent("selection-clear", { bubbles: !0, composed: !0 }));
10631
10652
  }
10653
+ _canSelectMore() {
10654
+ if (this.maxSelections && this._totalSelected >= this.maxSelections) return !1;
10655
+ const t = this._selectScope;
10656
+ return t === "assets" ? this.selectedAssets.length < this.totalCount : t === "folders" ? this.selectedFolders.length < this.totalFolderCount : this._totalSelected < this.totalCount + this.totalFolderCount;
10657
+ }
10658
+ get _scopeTotal() {
10659
+ const t = this._selectScope;
10660
+ return t === "assets" ? this.totalCount : t === "folders" ? this.totalFolderCount : this.totalCount + this.totalFolderCount;
10661
+ }
10662
+ get _selectScope() {
10663
+ const t = this.selectedAssets.length > 0, e = this.selectedFolders.length > 0;
10664
+ return t && !e ? "assets" : e && !t ? "folders" : "all";
10665
+ }
10632
10666
  _selectAll() {
10633
- this.dispatchEvent(new CustomEvent("select-all", { bubbles: !0, composed: !0 }));
10667
+ this.dispatchEvent(new CustomEvent("select-all", {
10668
+ detail: { scope: this._selectScope },
10669
+ bubbles: !0,
10670
+ composed: !0
10671
+ }));
10634
10672
  }
10635
10673
  render() {
10636
10674
  return this._totalSelected === 0 ? f : n`
10637
10675
  <div class="bar">
10638
10676
  <span class="count">${this._formatCount()}</span>
10639
- <span class="divider"></span>
10640
- <span class="select-label">Select:</span>
10641
- ${this.multiSelect && this._totalSelected < this.totalCount && (!this.maxSelections || this._totalSelected < this.maxSelections) ? n`<button
10642
- class="bar-btn"
10643
- ?disabled=${this.isSelectingAll}
10644
- @click=${this._selectAll}
10645
- ><ap-icon name="check-check" .size=${14}></ap-icon>${this.isSelectingAll ? "Selecting..." : this.maxSelections && this.maxSelections < this.totalCount ? `First ${this.maxSelections}` : "Select all"}</button>` : f}
10646
- <button class="bar-btn" @click=${this._clear}><ap-icon name="close" .size=${14}></ap-icon>Deselect all</button>
10647
- ${this.maxSelections && this._totalSelected >= this.maxSelections ? n`<span class="limit-notice">Max ${this.maxSelections} allowed</span>` : f}
10677
+ ${this.multiSelect ? n`
10678
+ <span class="divider"></span>
10679
+ <span class="select-label">Select:</span>
10680
+ ${this._canSelectMore() ? n`<button
10681
+ class="bar-btn"
10682
+ ?disabled=${this.isSelectingAll}
10683
+ @click=${this._selectAll}
10684
+ ><ap-icon name="check-check" .size=${14}></ap-icon>${this.isSelectingAll ? "Selecting..." : this.maxSelections && this.maxSelections < this._scopeTotal ? `First ${this.maxSelections}` : this._selectScope === "assets" ? "Select all assets" : this._selectScope === "folders" ? "Select all folders" : "Select all"}</button>` : f}
10685
+ <button class="bar-btn" @click=${this._clear}><ap-icon name="close" .size=${14}></ap-icon>Deselect all</button>
10686
+ ${this.maxSelections && this._totalSelected >= this.maxSelections ? n`<span class="limit-notice">Max ${this.maxSelections} allowed</span>` : f}
10687
+ ` : f}
10648
10688
  <div class="spacer"></div>
10649
10689
  <button class="btn-confirm" @click=${this._confirm}>Confirm</button>
10650
10690
  </div>
10651
10691
  `;
10652
10692
  }
10653
10693
  };
10654
- ce.styles = S`
10694
+ ie.styles = k`
10655
10695
  :host {
10656
10696
  display: block;
10657
10697
  padding: 0 8px 8px;
@@ -10739,33 +10779,36 @@ ce.styles = S`
10739
10779
  .bar { animation: none; }
10740
10780
  }
10741
10781
  `;
10742
- Le([
10743
- h({ type: Array })
10744
- ], ce.prototype, "selectedAssets", 2);
10745
- Le([
10746
- h({ type: Array })
10747
- ], ce.prototype, "selectedFolders", 2);
10748
- Le([
10749
- h({ type: Number })
10750
- ], ce.prototype, "totalCount", 2);
10751
- Le([
10752
- h({ type: Boolean })
10753
- ], ce.prototype, "isSelectingAll", 2);
10754
- Le([
10755
- h({ type: Boolean })
10756
- ], ce.prototype, "multiSelect", 2);
10757
- Le([
10758
- h({ type: Number })
10759
- ], ce.prototype, "maxSelections", 2);
10760
- ce = Le([
10782
+ xe([
10783
+ p({ type: Array })
10784
+ ], ie.prototype, "selectedAssets", 2);
10785
+ xe([
10786
+ p({ type: Array })
10787
+ ], ie.prototype, "selectedFolders", 2);
10788
+ xe([
10789
+ p({ type: Number })
10790
+ ], ie.prototype, "totalCount", 2);
10791
+ xe([
10792
+ p({ type: Number })
10793
+ ], ie.prototype, "totalFolderCount", 2);
10794
+ xe([
10795
+ p({ type: Boolean })
10796
+ ], ie.prototype, "isSelectingAll", 2);
10797
+ xe([
10798
+ p({ type: Boolean })
10799
+ ], ie.prototype, "multiSelect", 2);
10800
+ xe([
10801
+ p({ type: Number })
10802
+ ], ie.prototype, "maxSelections", 2);
10803
+ ie = xe([
10761
10804
  F("ap-selection-bar")
10762
- ], ce);
10805
+ ], ie);
10763
10806
  var lr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, Xt = (t, e, s, i) => {
10764
10807
  for (var a = i > 1 ? void 0 : i ? cr(e, s) : e, r = t.length - 1, o; r >= 0; r--)
10765
10808
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
10766
10809
  return i && a && lr(e, s, a), a;
10767
10810
  };
10768
- let it = class extends C {
10811
+ let it = class extends S {
10769
10812
  constructor() {
10770
10813
  super(...arguments), this.active = !1, this.rect = { x: 0, y: 0, width: 0, height: 0 };
10771
10814
  }
@@ -10778,7 +10821,7 @@ let it = class extends C {
10778
10821
  `;
10779
10822
  }
10780
10823
  };
10781
- it.styles = S`
10824
+ it.styles = k`
10782
10825
  :host {
10783
10826
  display: block;
10784
10827
  position: absolute;
@@ -10797,10 +10840,10 @@ it.styles = S`
10797
10840
  }
10798
10841
  `;
10799
10842
  Xt([
10800
- h({ type: Boolean })
10843
+ p({ type: Boolean })
10801
10844
  ], it.prototype, "active", 2);
10802
10845
  Xt([
10803
- h({ type: Object })
10846
+ p({ type: Object })
10804
10847
  ], it.prototype, "rect", 2);
10805
10848
  it = Xt([
10806
10849
  F("ap-marquee-overlay")
@@ -10810,7 +10853,7 @@ var dr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, Xe = (t, e
10810
10853
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
10811
10854
  return i && a && dr(e, s, a), a;
10812
10855
  };
10813
- let be = class extends C {
10856
+ let _e = class extends S {
10814
10857
  constructor() {
10815
10858
  super(...arguments), this.value = "", this.options = [], this.disabled = !1, this.direction = "vertical", this._onKeydown = (t) => {
10816
10859
  const e = this.options.filter(
@@ -10873,9 +10916,9 @@ let be = class extends C {
10873
10916
  }));
10874
10917
  }
10875
10918
  };
10876
- be.styles = [
10877
- te,
10878
- S`
10919
+ _e.styles = [
10920
+ ae,
10921
+ k`
10879
10922
  :host {
10880
10923
  display: flex;
10881
10924
  flex-direction: column;
@@ -10939,29 +10982,29 @@ be.styles = [
10939
10982
  `
10940
10983
  ];
10941
10984
  Xe([
10942
- h()
10943
- ], be.prototype, "value", 2);
10985
+ p()
10986
+ ], _e.prototype, "value", 2);
10944
10987
  Xe([
10945
- h({ type: Array })
10946
- ], be.prototype, "options", 2);
10988
+ p({ type: Array })
10989
+ ], _e.prototype, "options", 2);
10947
10990
  Xe([
10948
- h({ type: Boolean })
10949
- ], be.prototype, "disabled", 2);
10991
+ p({ type: Boolean })
10992
+ ], _e.prototype, "disabled", 2);
10950
10993
  Xe([
10951
- h({ reflect: !0 })
10952
- ], be.prototype, "direction", 2);
10994
+ p({ reflect: !0 })
10995
+ ], _e.prototype, "direction", 2);
10953
10996
  Xe([
10954
- h({ reflect: !0 })
10955
- ], be.prototype, "columns", 2);
10956
- be = Xe([
10997
+ p({ reflect: !0 })
10998
+ ], _e.prototype, "columns", 2);
10999
+ _e = Xe([
10957
11000
  F("ap-radio-group")
10958
- ], be);
11001
+ ], _e);
10959
11002
  var hr = Object.defineProperty, ur = Object.getOwnPropertyDescriptor, Os = (t, e, s, i) => {
10960
11003
  for (var a = i > 1 ? void 0 : i ? ur(e, s) : e, r = t.length - 1, o; r >= 0; r--)
10961
11004
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
10962
11005
  return i && a && hr(e, s, a), a;
10963
11006
  };
10964
- let bt = class extends C {
11007
+ let bt = class extends S {
10965
11008
  constructor() {
10966
11009
  super(...arguments), this.size = 24;
10967
11010
  }
@@ -10970,7 +11013,7 @@ let bt = class extends C {
10970
11013
  }
10971
11014
  };
10972
11015
  bt.styles = [
10973
- S`
11016
+ k`
10974
11017
  :host {
10975
11018
  display: inline-flex;
10976
11019
  }
@@ -10986,7 +11029,7 @@ bt.styles = [
10986
11029
  `
10987
11030
  ];
10988
11031
  Os([
10989
- h({ type: Number })
11032
+ p({ type: Number })
10990
11033
  ], bt.prototype, "size", 2);
10991
11034
  bt = Os([
10992
11035
  F("ap-spinner")
@@ -10996,7 +11039,7 @@ var gr = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, Ct = (t, e
10996
11039
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
10997
11040
  return i && a && gr(e, s, a), a;
10998
11041
  };
10999
- let Ue = class extends C {
11042
+ let Ve = class extends S {
11000
11043
  constructor() {
11001
11044
  super(...arguments), this.folders = [], this.loading = !1, this._mode = "recursive";
11002
11045
  }
@@ -11048,7 +11091,7 @@ let Ue = class extends C {
11048
11091
  `;
11049
11092
  }
11050
11093
  };
11051
- Ue.styles = [te, S`
11094
+ Ve.styles = [ae, k`
11052
11095
  :host {
11053
11096
  display: block;
11054
11097
  }
@@ -11123,23 +11166,23 @@ Ue.styles = [te, S`
11123
11166
  }
11124
11167
  `];
11125
11168
  Ct([
11126
- h({ type: Array })
11127
- ], Ue.prototype, "folders", 2);
11169
+ p({ type: Array })
11170
+ ], Ve.prototype, "folders", 2);
11128
11171
  Ct([
11129
- h({ type: Boolean })
11130
- ], Ue.prototype, "loading", 2);
11172
+ p({ type: Boolean })
11173
+ ], Ve.prototype, "loading", 2);
11131
11174
  Ct([
11132
11175
  _()
11133
- ], Ue.prototype, "_mode", 2);
11134
- Ue = Ct([
11176
+ ], Ve.prototype, "_mode", 2);
11177
+ Ve = Ct([
11135
11178
  F("ap-folder-resolve-dialog")
11136
- ], Ue);
11179
+ ], Ve);
11137
11180
  var vr = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, Ft = (t, e, s, i) => {
11138
11181
  for (var a = i > 1 ? void 0 : i ? mr(e, s) : e, r = t.length - 1, o; r >= 0; r--)
11139
11182
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
11140
11183
  return i && a && vr(e, s, a), a;
11141
11184
  };
11142
- let Ve = class extends C {
11185
+ let qe = class extends S {
11143
11186
  constructor() {
11144
11187
  super(...arguments), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this._hasLabel = !1, this._handleHostClick = () => {
11145
11188
  this.dispatchEvent(new CustomEvent("ap-toggle", {
@@ -11173,8 +11216,8 @@ let Ve = class extends C {
11173
11216
  `;
11174
11217
  }
11175
11218
  };
11176
- Ve.styles = [
11177
- S`
11219
+ qe.styles = [
11220
+ k`
11178
11221
  :host {
11179
11222
  display: inline-flex;
11180
11223
  align-items: center;
@@ -11236,23 +11279,23 @@ Ve.styles = [
11236
11279
  `
11237
11280
  ];
11238
11281
  Ft([
11239
- h({ type: Boolean, reflect: !0 })
11240
- ], Ve.prototype, "checked", 2);
11282
+ p({ type: Boolean, reflect: !0 })
11283
+ ], qe.prototype, "checked", 2);
11241
11284
  Ft([
11242
- h({ type: Boolean, reflect: !0 })
11243
- ], Ve.prototype, "indeterminate", 2);
11285
+ p({ type: Boolean, reflect: !0 })
11286
+ ], qe.prototype, "indeterminate", 2);
11244
11287
  Ft([
11245
- h({ type: Boolean, reflect: !0 })
11246
- ], Ve.prototype, "disabled", 2);
11247
- Ve = Ft([
11288
+ p({ type: Boolean, reflect: !0 })
11289
+ ], qe.prototype, "disabled", 2);
11290
+ qe = Ft([
11248
11291
  F("ap-checkbox")
11249
- ], Ve);
11292
+ ], qe);
11250
11293
  var br = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Ls = (t, e, s, i) => {
11251
11294
  for (var a = i > 1 ? void 0 : i ? _r(e, s) : e, r = t.length - 1, o; r >= 0; r--)
11252
11295
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
11253
11296
  return i && a && br(e, s, a), a;
11254
11297
  };
11255
- let _t = class extends C {
11298
+ let _t = class extends S {
11256
11299
  constructor() {
11257
11300
  super(...arguments), this.open = !1, this._handleOutsideClick = (t) => {
11258
11301
  this.open && !t.composedPath().includes(this) && (this.open = !1);
@@ -11274,7 +11317,7 @@ let _t = class extends C {
11274
11317
  }
11275
11318
  };
11276
11319
  _t.styles = [
11277
- S`
11320
+ k`
11278
11321
  :host {
11279
11322
  position: relative;
11280
11323
  display: inline-block;
@@ -11308,7 +11351,7 @@ var yr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, K = (t, e,
11308
11351
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
11309
11352
  return i && a && yr(e, s, a), a;
11310
11353
  };
11311
- let U = class extends C {
11354
+ let U = class extends S {
11312
11355
  constructor() {
11313
11356
  super(...arguments), this.value = "", this.label = "", this.variant = "default", this.options = [], this._open = !1, this._focusedIndex = -1, this._menuPosition = "below", this._menuAlign = "align-left", this._menuTop = 0, this._menuBottom = 0, this._menuLeft = 0, this._menuRight = 0, this._handleOutsideClick = (t) => {
11314
11357
  t.composedPath().includes(this) || (this._open = !1, document.removeEventListener("click", this._handleOutsideClick));
@@ -11416,8 +11459,8 @@ let U = class extends C {
11416
11459
  }
11417
11460
  };
11418
11461
  U.styles = [
11419
- te,
11420
- S`
11462
+ ae,
11463
+ k`
11421
11464
  :host {
11422
11465
  position: relative;
11423
11466
  display: inline-block;
@@ -11500,16 +11543,16 @@ U.styles = [
11500
11543
  `
11501
11544
  ];
11502
11545
  K([
11503
- h()
11546
+ p()
11504
11547
  ], U.prototype, "value", 2);
11505
11548
  K([
11506
- h()
11549
+ p()
11507
11550
  ], U.prototype, "label", 2);
11508
11551
  K([
11509
- h({ reflect: !0 })
11552
+ p({ reflect: !0 })
11510
11553
  ], U.prototype, "variant", 2);
11511
11554
  K([
11512
- h({ type: Array })
11555
+ p({ type: Array })
11513
11556
  ], U.prototype, "options", 2);
11514
11557
  K([
11515
11558
  _()
@@ -11543,7 +11586,7 @@ var wr = Object.defineProperty, $r = Object.getOwnPropertyDescriptor, Ps = (t, e
11543
11586
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
11544
11587
  return i && a && wr(e, s, a), a;
11545
11588
  };
11546
- let yt = class extends C {
11589
+ let yt = class extends S {
11547
11590
  constructor() {
11548
11591
  super(...arguments), this.variant = "default";
11549
11592
  }
@@ -11552,7 +11595,7 @@ let yt = class extends C {
11552
11595
  }
11553
11596
  };
11554
11597
  yt.styles = [
11555
- S`
11598
+ k`
11556
11599
  :host {
11557
11600
  display: inline-flex;
11558
11601
  }
@@ -11574,7 +11617,7 @@ yt.styles = [
11574
11617
  `
11575
11618
  ];
11576
11619
  Ps([
11577
- h({ reflect: !0 })
11620
+ p({ reflect: !0 })
11578
11621
  ], yt.prototype, "variant", 2);
11579
11622
  yt = Ps([
11580
11623
  F("ap-badge")
@@ -11584,7 +11627,7 @@ var kr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, Is = (t, e
11584
11627
  (o = t[r]) && (a = (i ? o(e, s, a) : o(a)) || a);
11585
11628
  return i && a && kr(e, s, a), a;
11586
11629
  };
11587
- let xt = class extends C {
11630
+ let xt = class extends S {
11588
11631
  constructor() {
11589
11632
  super(...arguments), this.text = "";
11590
11633
  }
@@ -11596,7 +11639,7 @@ let xt = class extends C {
11596
11639
  }
11597
11640
  };
11598
11641
  xt.styles = [
11599
- S`
11642
+ k`
11600
11643
  :host {
11601
11644
  position: relative;
11602
11645
  display: inline-flex;
@@ -11622,7 +11665,7 @@ xt.styles = [
11622
11665
  `
11623
11666
  ];
11624
11667
  Is([
11625
- h()
11668
+ p()
11626
11669
  ], xt.prototype, "text", 2);
11627
11670
  xt = Is([
11628
11671
  F("ap-tooltip")
@@ -11632,7 +11675,7 @@ var Cr = Object.defineProperty, Et = (t, e, s, i) => {
11632
11675
  (o = t[r]) && (a = o(e, s, a) || a);
11633
11676
  return a && Cr(e, s, a), a;
11634
11677
  };
11635
- const Wt = class Wt extends C {
11678
+ const Wt = class Wt extends S {
11636
11679
  constructor() {
11637
11680
  super(), this._initFailed = !1, this._loadId = 0, this._loadMoreId = 0, this._loadDataTimer = null, this._pendingFilter = null, this._pendingMetadataField = null, this._uploaderEl = null, this._uploaderImportPromise = null, this._dragCounter = 0, this._isDragOver = !1, this._isUploaderOpen = !1, this._folderResolveOpen = !1, this._onDragEnter = (e) => {
11638
11681
  var s;
@@ -11698,16 +11741,16 @@ const Wt = class Wt extends C {
11698
11741
  Ys(this.apiClient)
11699
11742
  ]);
11700
11743
  if (r.status === "fulfilled") {
11701
- const { fields: d, regionalVariantGroups: g, regionalFilters: m, brandColor: w } = r.value;
11744
+ const { fields: d, regionalVariantGroups: g, regionalFilters: m, brandColor: x } = r.value;
11702
11745
  this.store.setState({
11703
11746
  metadataFields: d,
11704
11747
  regionalVariantGroups: g,
11705
11748
  regionalFilters: m,
11706
- ...w ? { brandColor: w } : {}
11749
+ ...x ? { brandColor: x } : {}
11707
11750
  });
11708
11751
  }
11709
11752
  o.status === "fulfilled" && this.store.setState({ labels: o.value.labels || [] }), l.status === "fulfilled" && this.store.setState({ tags: l.value });
11710
- const { pinnedFilters: c, pinnedMetadata: p } = Fi(e.auth.projectToken ?? null), u = this.store.getState().filters;
11753
+ const { pinnedFilters: c, pinnedMetadata: h } = Fi(e.auth.projectToken ?? null), u = this.store.getState().filters;
11711
11754
  this.store.setState({
11712
11755
  filters: {
11713
11756
  ...u,
@@ -11715,8 +11758,8 @@ const Wt = class Wt extends C {
11715
11758
  visible: [...c],
11716
11759
  metadata: {
11717
11760
  ...u.metadata,
11718
- pinned: p,
11719
- visible: [...p]
11761
+ pinned: h,
11762
+ visible: [...h]
11720
11763
  }
11721
11764
  }
11722
11765
  });
@@ -11811,14 +11854,14 @@ const Wt = class Wt extends C {
11811
11854
  return !!((i = (s = e.dataTransfer) == null ? void 0 : s.types) != null && i.includes("Files"));
11812
11855
  }
11813
11856
  async open() {
11814
- var u, v, d, g, m, w, $, T, y, M;
11857
+ var u, v, d, g, m, x, w, T, C, O;
11815
11858
  const e = this.store.getState(), s = Ze((u = this.config) == null ? void 0 : u.forcedFilters), i = new Set(Object.keys(s)), a = {}, r = Ze((v = this.config) == null ? void 0 : v.defaultFilters);
11816
- for (const [I, E] of Object.entries(r))
11817
- i.has(I) || (a[I] = E);
11818
- const o = Object.keys(a), l = ((d = this.config) == null ? void 0 : d.tabs) ?? ["assets", "folders"], c = (g = this.config) != null && g.rememberLastTab ? Pi() : null, p = (c && l.includes(c) ? c : null) ?? ((m = this.config) != null && m.defaultTab && l.includes(this.config.defaultTab) ? this.config.defaultTab : null) ?? l[0] ?? "assets";
11859
+ for (const [D, E] of Object.entries(r))
11860
+ i.has(D) || (a[D] = E);
11861
+ const o = Object.keys(a), l = ((d = this.config) == null ? void 0 : d.tabs) ?? ["assets", "folders"], c = (g = this.config) != null && g.rememberLastTab ? Pi() : null, h = (c && l.includes(c) ? c : null) ?? ((m = this.config) != null && m.defaultTab && l.includes(this.config.defaultTab) ? this.config.defaultTab : null) ?? l[0] ?? "assets";
11819
11862
  this.store.setState({
11820
11863
  isOpen: !0,
11821
- activeTab: p,
11864
+ activeTab: h,
11822
11865
  searchQuery: "",
11823
11866
  filters: {
11824
11867
  metadata: {
@@ -11834,10 +11877,10 @@ const Wt = class Wt extends C {
11834
11877
  assets: [],
11835
11878
  folders: [],
11836
11879
  currentFolder: null,
11837
- currentFolderPath: p === "folders" && ((w = this.config) == null ? void 0 : w.rememberLastFolder) && ls() || (($ = this.config) == null ? void 0 : $.rootFolderPath) || "/",
11880
+ currentFolderPath: h === "folders" && ((x = this.config) == null ? void 0 : x.rememberLastFolder) && ls() || ((w = this.config) == null ? void 0 : w.rootFolderPath) || "/",
11838
11881
  breadcrumb: this._buildBreadcrumbFromPath(
11839
- p === "folders" && ((T = this.config) == null ? void 0 : T.rememberLastFolder) && ls() || ((y = this.config) == null ? void 0 : y.rootFolderPath) || "/",
11840
- ((M = this.config) == null ? void 0 : M.rootFolderPath) || "/"
11882
+ h === "folders" && ((T = this.config) == null ? void 0 : T.rememberLastFolder) && ls() || ((C = this.config) == null ? void 0 : C.rootFolderPath) || "/",
11883
+ ((O = this.config) == null ? void 0 : O.rootFolderPath) || "/"
11841
11884
  ),
11842
11885
  selectedAssets: /* @__PURE__ */ new Map(),
11843
11886
  selectedFolders: /* @__PURE__ */ new Map(),
@@ -11861,41 +11904,41 @@ const Wt = class Wt extends C {
11861
11904
  (e = this.renderRoot.querySelector(".main-content")) == null || e.scrollTo({ top: 0 });
11862
11905
  }
11863
11906
  async _loadData() {
11864
- var i, a, r, o, l, c, p, u, v, d, g, m, w, $;
11907
+ var i, a, r, o, l, c, h, u, v, d, g, m, x, w;
11865
11908
  if (!this.apiClient) return;
11866
11909
  const e = ++this._loadId, s = this.store.getState();
11867
11910
  this._scrollToTop(), this.store.setState({ isLoading: !0 });
11868
11911
  try {
11869
11912
  const T = s.activeTab;
11870
11913
  if (T === "assets") {
11871
- const y = this._buildSearchNotation(), M = s.currentFolderPath || "/", I = We(this.apiClient, {
11872
- folder: M,
11914
+ const C = this._buildSearchNotation(), O = s.currentFolderPath || "/", D = We(this.apiClient, {
11915
+ folder: O,
11873
11916
  offset: 0,
11874
11917
  limit: s.limit,
11875
11918
  sort_by: s.sortBy,
11876
11919
  sort_direction: s.sortDirection,
11877
11920
  search: s.searchQuery || void 0,
11878
- q: y || void 0,
11921
+ q: C || void 0,
11879
11922
  recursive: 1
11880
11923
  }), E = Jt(this.apiClient, {
11881
- folder: M,
11882
- q: y || void 0,
11924
+ folder: O,
11925
+ q: C || void 0,
11883
11926
  search: s.searchQuery || void 0,
11884
11927
  recursive: 1
11885
- }).catch(() => null), [z, N] = await Promise.all([I, E]);
11928
+ }).catch(() => null), [M, R] = await Promise.all([D, E]);
11886
11929
  if (e !== this._loadId) return;
11887
- const ee = ((i = z.files) == null ? void 0 : i.length) ?? 0, _e = ee >= s.limit, Pe = ((a = N == null ? void 0 : N.stats) == null ? void 0 : a.approx_files_count) ?? ((r = N == null ? void 0 : N.info) == null ? void 0 : r.total_files_count) ?? ((o = z.info) == null ? void 0 : o.total_files_count) ?? ((c = (l = z.base) == null ? void 0 : l.count) == null ? void 0 : c.files_recursive) ?? ((u = (p = z.base) == null ? void 0 : p.count) == null ? void 0 : u.files_direct) ?? ee;
11930
+ const G = ((i = M.files) == null ? void 0 : i.length) ?? 0, Y = G >= s.limit, Ie = ((a = R == null ? void 0 : R.stats) == null ? void 0 : a.approx_files_count) ?? ((r = R == null ? void 0 : R.info) == null ? void 0 : r.total_files_count) ?? ((o = M.info) == null ? void 0 : o.total_files_count) ?? ((c = (l = M.base) == null ? void 0 : l.count) == null ? void 0 : c.files_recursive) ?? ((u = (h = M.base) == null ? void 0 : h.count) == null ? void 0 : u.files_direct) ?? G;
11888
11931
  this.store.setState({
11889
- assets: z.files || [],
11932
+ assets: M.files || [],
11890
11933
  folders: [],
11891
- totalCount: Pe,
11934
+ totalCount: Ie,
11892
11935
  totalFolderCount: 0,
11893
11936
  offset: 0,
11894
- hasMore: _e,
11937
+ hasMore: Y,
11895
11938
  isLoading: !1
11896
11939
  });
11897
11940
  } else if (T === "folders") {
11898
- const y = this._buildSearchNotation(), M = s.currentFolderPath || "/", [I, E, z] = await Promise.all([
11941
+ const C = this._buildSearchNotation(), O = s.currentFolderPath || "/", [D, E, M] = await Promise.all([
11899
11942
  Hs(this.apiClient, {
11900
11943
  folderPath: s.currentFolderPath,
11901
11944
  q: s.searchQuery || void 0,
@@ -11904,40 +11947,40 @@ const Wt = class Wt extends C {
11904
11947
  sort_direction: s.sortDirection
11905
11948
  }),
11906
11949
  We(this.apiClient, {
11907
- folder: M,
11950
+ folder: O,
11908
11951
  offset: 0,
11909
11952
  limit: s.limit,
11910
11953
  sort_by: s.sortBy,
11911
11954
  sort_direction: s.sortDirection,
11912
11955
  search: s.searchQuery || void 0,
11913
- q: y || void 0,
11956
+ q: C || void 0,
11914
11957
  recursive: 0
11915
11958
  }),
11916
11959
  Jt(this.apiClient, {
11917
- folder: M,
11918
- q: y || void 0,
11960
+ folder: O,
11961
+ q: C || void 0,
11919
11962
  search: s.searchQuery || void 0,
11920
11963
  recursive: 0
11921
11964
  }).catch(() => null)
11922
11965
  ]);
11923
11966
  if (e !== this._loadId) return;
11924
- const N = I.folders || [];
11925
- let ee = {};
11926
- if (N.length > 0)
11967
+ const R = D.folders || [];
11968
+ let G = {};
11969
+ if (R.length > 0)
11927
11970
  try {
11928
- ee = await Ks(this.apiClient, N.map((ye) => ye.uuid));
11971
+ G = await Ks(this.apiClient, R.map((we) => we.uuid));
11929
11972
  } catch {
11930
11973
  }
11931
11974
  if (e !== this._loadId) return;
11932
- const _e = ((v = E.files) == null ? void 0 : v.length) ?? 0, Pe = _e >= s.limit, lt = ((d = z == null ? void 0 : z.stats) == null ? void 0 : d.approx_files_count) ?? ((g = z == null ? void 0 : z.info) == null ? void 0 : g.total_files_count) ?? ((m = E.info) == null ? void 0 : m.total_files_count) ?? (($ = (w = E.base) == null ? void 0 : w.count) == null ? void 0 : $.files_direct) ?? _e;
11975
+ const Y = ((v = E.files) == null ? void 0 : v.length) ?? 0, Ie = Y >= s.limit, lt = ((d = M == null ? void 0 : M.stats) == null ? void 0 : d.approx_files_count) ?? ((g = M == null ? void 0 : M.info) == null ? void 0 : g.total_files_count) ?? ((m = E.info) == null ? void 0 : m.total_files_count) ?? ((w = (x = E.base) == null ? void 0 : x.count) == null ? void 0 : w.files_direct) ?? Y;
11933
11976
  this.store.setState({
11934
11977
  assets: E.files || [],
11935
- folders: N,
11936
- folderPreviews: ee,
11978
+ folders: R,
11979
+ folderPreviews: G,
11937
11980
  totalCount: lt,
11938
- totalFolderCount: I.total ?? N.length,
11981
+ totalFolderCount: D.total ?? R.length,
11939
11982
  offset: 0,
11940
- hasMore: Pe,
11983
+ hasMore: Ie,
11941
11984
  isLoading: !1
11942
11985
  });
11943
11986
  }
@@ -11967,9 +12010,9 @@ const Wt = class Wt extends C {
11967
12010
  recursive: e.activeTab === "folders" ? 0 : 1
11968
12011
  });
11969
12012
  if (s !== this._loadMoreId) return;
11970
- const o = this.store.getState().assets, l = r.files || [], c = l.length >= e.limit, p = [...o, ...l];
12013
+ const o = this.store.getState().assets, l = r.files || [], c = l.length >= e.limit, h = [...o, ...l];
11971
12014
  this.store.setState({
11972
- assets: p,
12015
+ assets: h,
11973
12016
  offset: i,
11974
12017
  hasMore: c,
11975
12018
  isLoading: !1
@@ -12073,7 +12116,7 @@ const Wt = class Wt extends C {
12073
12116
  }
12074
12117
  _handleBreadcrumbNavigate(e) {
12075
12118
  var l, c;
12076
- const s = e.detail.uuid, i = this.store.getState(), a = s ? i.breadcrumb.findIndex((p) => p.uuid === s) : -1, r = s ? i.breadcrumb.slice(0, a + 1) : [], o = r.length > 0 ? r[r.length - 1].path : ((l = this.config) == null ? void 0 : l.rootFolderPath) || "/";
12119
+ const s = e.detail.uuid, i = this.store.getState(), a = s ? i.breadcrumb.findIndex((h) => h.uuid === s) : -1, r = s ? i.breadcrumb.slice(0, a + 1) : [], o = r.length > 0 ? r[r.length - 1].path : ((l = this.config) == null ? void 0 : l.rootFolderPath) || "/";
12077
12120
  (c = this.config) != null && c.rememberLastFolder && ns(o), this.store.setState({
12078
12121
  currentFolder: s || null,
12079
12122
  currentFolderPath: o,
@@ -12102,7 +12145,7 @@ const Wt = class Wt extends C {
12102
12145
  this.store.setState({ previewAsset: e.detail.asset });
12103
12146
  }
12104
12147
  _handleSelectionConfirm(e) {
12105
- var a, r, o, l, c, p;
12148
+ var a, r, o, l, c, h;
12106
12149
  const s = e.detail.assets, i = e.detail.folders || [];
12107
12150
  if (i.length > 0 && ((a = this.config) == null ? void 0 : a.folderSelection) !== !1) {
12108
12151
  if (((r = this.config) == null ? void 0 : r.folderSelectionMode) === "assets") {
@@ -12116,7 +12159,7 @@ const Wt = class Wt extends C {
12116
12159
  })), this._isInline || this.close();
12117
12160
  return;
12118
12161
  }
12119
- (p = (c = this.config) == null ? void 0 : c.onSelect) == null || p.call(c, s), this.dispatchEvent(new CustomEvent("ap-select", {
12162
+ (h = (c = this.config) == null ? void 0 : c.onSelect) == null || h.call(c, s), this.dispatchEvent(new CustomEvent("ap-select", {
12120
12163
  detail: { assets: s },
12121
12164
  bubbles: !0,
12122
12165
  composed: !0
@@ -12135,11 +12178,11 @@ const Wt = class Wt extends C {
12135
12178
  limit: 1e4
12136
12179
  })
12137
12180
  )
12138
- ), p = [];
12181
+ ), h = [];
12139
12182
  for (const m of c)
12140
- p.push(...m.files);
12183
+ h.push(...m.files);
12141
12184
  const u = [...a], v = new Set(u.map((m) => m.uuid));
12142
- for (const m of p)
12185
+ for (const m of h)
12143
12186
  v.has(m.uuid) || (u.push(m), v.add(m.uuid));
12144
12187
  const d = (r = this.config) == null ? void 0 : r.maxSelections, g = d ? u.slice(0, d) : u;
12145
12188
  (l = (o = this.config) == null ? void 0 : o.onSelect) == null || l.call(o, g), this.dispatchEvent(new CustomEvent("ap-select", {
@@ -12158,52 +12201,56 @@ const Wt = class Wt extends C {
12158
12201
  _handleFolderResolveCancel() {
12159
12202
  this._folderResolveOpen = !1;
12160
12203
  }
12161
- async _handleSelectAll() {
12162
- var i, a, r;
12163
- const e = this.store.getState();
12164
- if (!(e.isSelectingAll || !this.apiClient || !(((i = e.config) == null ? void 0 : i.multiSelect) ?? !0))) {
12165
- if (e.assets.length >= e.totalCount) {
12166
- ((a = this.config) == null ? void 0 : a.folderSelection) !== !1 && e.folders.length > 0 && this.selectionCtrl.selectAllFolders(e.folders), this.selectionCtrl.selectAll(e.assets);
12167
- return;
12168
- }
12169
- this.store.setState({ isSelectingAll: !0 });
12170
- try {
12171
- const o = this._buildSearchNotation(), l = e.currentFolderPath || "/", c = e.limit, p = e.assets, u = e.totalCount, v = e.activeTab === "folders" ? 0 : 1, d = [];
12172
- for (let y = p.length; y < u; y += c)
12173
- d.push(y);
12174
- const g = 4, m = [];
12175
- for (let y = 0; y < d.length; y += g) {
12176
- const M = d.slice(y, y + g), I = await Promise.all(
12177
- M.map(
12178
- (E) => We(this.apiClient, {
12179
- folder: l,
12180
- offset: E,
12181
- limit: c,
12182
- sort_by: e.sortBy,
12183
- sort_direction: e.sortDirection,
12184
- search: e.searchQuery || void 0,
12185
- q: o || void 0,
12186
- recursive: v
12187
- })
12188
- )
12189
- );
12190
- for (const E of I)
12191
- E.files && m.push(...E.files);
12192
- }
12193
- const w = new Set(p.map((y) => y.uuid)), $ = m.filter((y) => w.has(y.uuid) ? !1 : (w.add(y.uuid), !0)), T = [...p, ...$];
12194
- this.store.setState({
12195
- assets: T,
12196
- offset: Math.max(0, T.length - c),
12197
- hasMore: !1,
12198
- isSelectingAll: !1
12199
- }), ((r = this.config) == null ? void 0 : r.folderSelection) !== !1 && e.folders.length > 0 && this.selectionCtrl.selectAllFolders(e.folders), this.selectionCtrl.selectAll(T);
12200
- } catch (o) {
12201
- this.store.setState({ isSelectingAll: !1 }), this.dispatchEvent(new CustomEvent("ap-error", {
12202
- detail: { error: o, context: "selectAll" },
12203
- bubbles: !0,
12204
- composed: !0
12205
- }));
12204
+ async _handleSelectAll(e) {
12205
+ var l, c, h;
12206
+ const s = this.store.getState();
12207
+ if (s.isSelectingAll || !this.apiClient || !(((l = s.config) == null ? void 0 : l.multiSelect) ?? !0)) return;
12208
+ const a = ((c = e == null ? void 0 : e.detail) == null ? void 0 : c.scope) ?? "all", r = a !== "assets" && ((h = this.config) == null ? void 0 : h.folderSelection) !== !1 && s.folders.length > 0;
12209
+ if (!(a !== "folders")) {
12210
+ r && this.selectionCtrl.selectAllFolders(s.folders);
12211
+ return;
12212
+ }
12213
+ if (s.assets.length >= s.totalCount) {
12214
+ r && this.selectionCtrl.selectAllFolders(s.folders), this.selectionCtrl.selectAll(s.assets);
12215
+ return;
12216
+ }
12217
+ this.store.setState({ isSelectingAll: !0 });
12218
+ try {
12219
+ const u = this._buildSearchNotation(), v = s.currentFolderPath || "/", d = s.limit, g = s.assets, m = s.totalCount, x = s.activeTab === "folders" ? 0 : 1, w = [];
12220
+ for (let M = g.length; M < m; M += d)
12221
+ w.push(M);
12222
+ const T = 4, C = [];
12223
+ for (let M = 0; M < w.length; M += T) {
12224
+ const R = w.slice(M, M + T), G = await Promise.all(
12225
+ R.map(
12226
+ (Y) => We(this.apiClient, {
12227
+ folder: v,
12228
+ offset: Y,
12229
+ limit: d,
12230
+ sort_by: s.sortBy,
12231
+ sort_direction: s.sortDirection,
12232
+ search: s.searchQuery || void 0,
12233
+ q: u || void 0,
12234
+ recursive: x
12235
+ })
12236
+ )
12237
+ );
12238
+ for (const Y of G)
12239
+ Y.files && C.push(...Y.files);
12206
12240
  }
12241
+ const O = new Set(g.map((M) => M.uuid)), D = C.filter((M) => O.has(M.uuid) ? !1 : (O.add(M.uuid), !0)), E = [...g, ...D];
12242
+ this.store.setState({
12243
+ assets: E,
12244
+ offset: Math.max(0, E.length - d),
12245
+ hasMore: !1,
12246
+ isSelectingAll: !1
12247
+ }), r && this.selectionCtrl.selectAllFolders(s.folders), this.selectionCtrl.selectAll(E);
12248
+ } catch (u) {
12249
+ this.store.setState({ isSelectingAll: !1 }), this.dispatchEvent(new CustomEvent("ap-error", {
12250
+ detail: { error: u, context: "selectAll" },
12251
+ bubbles: !0,
12252
+ composed: !0
12253
+ }));
12207
12254
  }
12208
12255
  }
12209
12256
  _handleSelectionClear() {
@@ -12223,12 +12270,12 @@ const Wt = class Wt extends C {
12223
12270
  (c) => c == null || c === "" || Array.isArray(c) && c.length === 0
12224
12271
  );
12225
12272
  if (!l && this._isDateFilterKey(s) && typeof i == "object" && !Array.isArray(i)) {
12226
- const { kind: c, preset: p, from: u, to: v } = i;
12227
- l = !c && !p && !u && !v;
12273
+ const { kind: c, preset: h, from: u, to: v } = i;
12274
+ l = !c && !h && !u && !v;
12228
12275
  }
12229
12276
  if (l) {
12230
12277
  const c = { ...o.applied };
12231
- delete c[s], o.applied = c, o.pinned.includes(s) || (o.visible = o.visible.filter((p) => p !== s));
12278
+ delete c[s], o.applied = c, o.pinned.includes(s) || (o.visible = o.visible.filter((h) => h !== s));
12232
12279
  } else {
12233
12280
  const c = { ...o.applied };
12234
12281
  this._isDateFilterKey(s) && typeof i == "object" && !Array.isArray(i) ? c[s] = {
@@ -12285,21 +12332,21 @@ const Wt = class Wt extends C {
12285
12332
  i ? (this._pendingMetadataField = i, a.pendingMetadataField = i) : s && (this._pendingFilter = s, a.pendingFilter = s), await a.updateComplete;
12286
12333
  let o = a.renderRoot.querySelector(".chip.pending");
12287
12334
  if (!o) {
12288
- const w = a.renderRoot.querySelectorAll(".chip.pinned-empty"), $ = i ? (d = a._getMetadataLabel) == null ? void 0 : d.call(a, i) : void 0;
12289
- for (const T of w) {
12290
- const y = (m = (g = T.querySelector(".chip-label")) == null ? void 0 : g.textContent) == null ? void 0 : m.trim();
12291
- if (i && y === $) {
12335
+ const x = a.renderRoot.querySelectorAll(".chip.pinned-empty"), w = i ? (d = a._getMetadataLabel) == null ? void 0 : d.call(a, i) : void 0;
12336
+ for (const T of x) {
12337
+ const C = (m = (g = T.querySelector(".chip-label")) == null ? void 0 : g.textContent) == null ? void 0 : m.trim();
12338
+ if (i && C === w) {
12292
12339
  o = T;
12293
12340
  break;
12294
12341
  }
12295
- if (s && y === (De[s] || s)) {
12342
+ if (s && C === (ze[s] || s)) {
12296
12343
  o = T;
12297
12344
  break;
12298
12345
  }
12299
12346
  }
12300
12347
  }
12301
12348
  if (!o) return;
12302
- const l = o.getBoundingClientRect(), c = this.renderRoot.querySelector(".toolbar-filters-wrapper"), p = c == null ? void 0 : c.getBoundingClientRect(), u = p ? l.left - p.left : l.left, v = p ? l.bottom - p.top : void 0;
12349
+ const l = o.getBoundingClientRect(), c = this.renderRoot.querySelector(".toolbar-filters-wrapper"), h = c == null ? void 0 : c.getBoundingClientRect(), u = h ? l.left - h.left : l.left, v = h ? l.bottom - h.top : void 0;
12303
12350
  i ? r.openMetadataFieldPanel(i, !0, u, v) : s && r.openFilterPanel(s, !0, u, v);
12304
12351
  }
12305
12352
  _handleFilterRemove(e) {
@@ -12310,13 +12357,13 @@ const Wt = class Wt extends C {
12310
12357
  delete r[s], a.applied = r, a.pinned.includes(s) || (a.visible = a.visible.filter((l) => l !== s)), this.store.setState({ filters: a, offset: 0, assets: [], folders: [], isLoading: !0 }), this.selectionCtrl.resetRange(), this._debouncedLoadData();
12311
12358
  }
12312
12359
  _handleMetadataFilterChange(e) {
12313
- const { fieldKey: s, operator: i, values: a, metadataType: r } = e.detail, l = { ...this.store.getState().filters }, c = { ...l.metadata }, p = { ...c.applied };
12314
- if (!a || Array.isArray(a) && a.length === 0 ? (delete p[s], c.applied = p, c.pinned.includes(s) || (c.visible = c.visible.filter((v) => v !== s))) : (p[s] = {
12360
+ const { fieldKey: s, operator: i, values: a, metadataType: r } = e.detail, l = { ...this.store.getState().filters }, c = { ...l.metadata }, h = { ...c.applied };
12361
+ if (!a || Array.isArray(a) && a.length === 0 ? (delete h[s], c.applied = h, c.pinned.includes(s) || (c.visible = c.visible.filter((v) => v !== s))) : (h[s] = {
12315
12362
  type: "string",
12316
12363
  values: Array.isArray(a) ? a : [a],
12317
12364
  operator: i || ":",
12318
12365
  metadataType: r
12319
- }, c.applied = p, c.visible.includes(s) || (c.visible = [...c.visible, s])), l.metadata = c, this.store.setState({ filters: l, offset: 0, assets: [], folders: [], isLoading: !0 }), this.selectionCtrl.resetRange(), this._debouncedLoadData(), this._pendingMetadataField === s) {
12366
+ }, c.applied = h, c.visible.includes(s) || (c.visible = [...c.visible, s])), l.metadata = c, this.store.setState({ filters: l, offset: 0, assets: [], folders: [], isLoading: !0 }), this.selectionCtrl.resetRange(), this._debouncedLoadData(), this._pendingMetadataField === s) {
12320
12367
  this._pendingMetadataField = null;
12321
12368
  const v = this.renderRoot.querySelector("ap-filters-bar");
12322
12369
  v && (v.pendingMetadataField = null);
@@ -12333,15 +12380,15 @@ const Wt = class Wt extends C {
12333
12380
  _handleFilterPin(e) {
12334
12381
  var l, c;
12335
12382
  const { key: s, pinned: i } = e.detail, r = { ...this.store.getState().filters };
12336
- i ? r.pinned.includes(s) || (r.pinned = [...r.pinned, s]) : (r.pinned = r.pinned.filter((p) => p !== s), s in r.applied || (r.visible = r.visible.filter((p) => p !== s))), this.store.setState({ filters: r });
12383
+ i ? r.pinned.includes(s) || (r.pinned = [...r.pinned, s]) : (r.pinned = r.pinned.filter((h) => h !== s), s in r.applied || (r.visible = r.visible.filter((h) => h !== s))), this.store.setState({ filters: r });
12337
12384
  const o = ((c = (l = this.store.getState().config) == null ? void 0 : l.auth) == null ? void 0 : c.projectToken) ?? null;
12338
12385
  Ei(o, r.pinned);
12339
12386
  }
12340
12387
  _handleMetadataPin(e) {
12341
- var c, p;
12388
+ var c, h;
12342
12389
  const { fieldKey: s, pinned: i } = e.detail, r = { ...this.store.getState().filters }, o = { ...r.metadata };
12343
12390
  i ? o.pinned.includes(s) || (o.pinned = [...o.pinned, s]) : (o.pinned = o.pinned.filter((u) => u !== s), s in o.applied || (o.visible = o.visible.filter((u) => u !== s))), r.metadata = o, this.store.setState({ filters: r });
12344
- const l = ((p = (c = this.store.getState().config) == null ? void 0 : c.auth) == null ? void 0 : p.projectToken) ?? null;
12391
+ const l = ((h = (c = this.store.getState().config) == null ? void 0 : c.auth) == null ? void 0 : h.projectToken) ?? null;
12345
12392
  Ai(l, o.pinned);
12346
12393
  }
12347
12394
  _handleFiltersClearAll() {
@@ -12374,8 +12421,8 @@ const Wt = class Wt extends C {
12374
12421
  r.visible = r.visible.filter((o) => o !== s), a.metadata = r, this.store.setState({ filters: a });
12375
12422
  }
12376
12423
  _handleFiltersSet(e) {
12377
- var p;
12378
- const { applied: s, metadata: i } = e.detail, r = { ...this.store.getState().filters }, o = new Set(Object.keys(((p = this.config) == null ? void 0 : p.forcedFilters) ?? {})), l = { ...s };
12424
+ var h;
12425
+ const { applied: s, metadata: i } = e.detail, r = { ...this.store.getState().filters }, o = new Set(Object.keys(((h = this.config) == null ? void 0 : h.forcedFilters) ?? {})), l = { ...s };
12379
12426
  for (const u of o) delete l[u];
12380
12427
  r.applied = l;
12381
12428
  const c = Object.keys(s);
@@ -12399,7 +12446,7 @@ const Wt = class Wt extends C {
12399
12446
  return gi(s, e.filters.metadata.applied).join(" ");
12400
12447
  }
12401
12448
  render() {
12402
- var d, g, m, w, $, T, y, M, I, E, z, N;
12449
+ var d, g, m, x, w, T, C, O, D, E, M, R;
12403
12450
  const e = this.storeCtrl.state, s = Array.from(e.selectedAssets.keys()), i = Array.from(e.selectedFolders.keys()), a = this.selectionCtrl.getSelectedAssets(), r = this.selectionCtrl.getSelectedFolders(), o = ((d = this.config) == null ? void 0 : d.folderSelection) !== !1, l = n`
12404
12451
  <ap-header
12405
12452
  .activeTab=${e.activeTab}
@@ -12415,7 +12462,7 @@ const Wt = class Wt extends C {
12415
12462
  @regional-change=${this._handleRegionalChange}
12416
12463
  @ap-close=${() => this._handleCancel("close-button")}
12417
12464
  ></ap-header>
12418
- `, c = !!((m = this.config) != null && m.uploader), p = n`
12465
+ `, c = !!((m = this.config) != null && m.uploader), h = n`
12419
12466
  <div class="content-area"
12420
12467
  @dragenter=${this._onDragEnter}
12421
12468
  @dragover=${this._onDragOver}
@@ -12431,7 +12478,7 @@ const Wt = class Wt extends C {
12431
12478
  </div>
12432
12479
  ` : f}
12433
12480
  <div class="main-content">
12434
- <div class="toolbar-filters-wrapper${(w = this.config) != null && w.stickyFilters ? " sticky" : ""}">
12481
+ <div class="toolbar-filters-wrapper${(x = this.config) != null && x.stickyFilters ? " sticky" : ""}">
12435
12482
  <ap-content-toolbar
12436
12483
  .isLoading=${e.isLoading}
12437
12484
  .totalCount=${e.totalCount}
@@ -12446,7 +12493,7 @@ const Wt = class Wt extends C {
12446
12493
  .metadataFields=${e.metadataFields}
12447
12494
  .pinnedFilters=${e.filters.pinned}
12448
12495
  .apiClient=${this.apiClient}
12449
- .forcedFilterKeys=${Object.keys(Ze(($ = this.config) == null ? void 0 : $.forcedFilters))}
12496
+ .forcedFilterKeys=${Object.keys(Ze((w = this.config) == null ? void 0 : w.forcedFilters))}
12450
12497
  @sort-change=${this._handleSortChange}
12451
12498
  @sort-direction-change=${this._handleSortDirectionChange}
12452
12499
  @filter-update=${this._handleFilterUpdate}
@@ -12485,7 +12532,7 @@ const Wt = class Wt extends C {
12485
12532
  ></ap-breadcrumb>` : f}
12486
12533
  </div>
12487
12534
 
12488
- ${e.isLoading && e.assets.length === 0 && e.folders.length === 0 ? n`<ap-skeleton .variant=${e.viewMode} .gridSize=${((y = this.config) == null ? void 0 : y.gridSize) ?? "normal"} .multiSelect=${((M = this.config) == null ? void 0 : M.multiSelect) !== !1} .folderCount=${2}></ap-skeleton>` : this._renderContent(e, s, i, o)}
12535
+ ${e.isLoading && e.assets.length === 0 && e.folders.length === 0 ? n`<ap-skeleton .variant=${e.viewMode} .gridSize=${((C = this.config) == null ? void 0 : C.gridSize) ?? "normal"} .multiSelect=${((O = this.config) == null ? void 0 : O.multiSelect) !== !1} .folderCount=${2}></ap-skeleton>` : this._renderContent(e, s, i, o)}
12489
12536
 
12490
12537
  <ap-marquee-overlay .active=${this.marqueeCtrl.isActive} .rect=${this.marqueeCtrl.rect}></ap-marquee-overlay>
12491
12538
  ${this._folderResolveOpen ? n`
@@ -12503,7 +12550,7 @@ const Wt = class Wt extends C {
12503
12550
  .assets=${e.assets}
12504
12551
  .selectedIds=${s}
12505
12552
  .containerToken=${e.projectToken}
12506
- .showMetadata=${((I = this.config) == null ? void 0 : I.showMetadata) !== !1}
12553
+ .showMetadata=${((D = this.config) == null ? void 0 : D.showMetadata) !== !1}
12507
12554
  .metadataFields=${e.metadataFields}
12508
12555
  .labels=${e.labels}
12509
12556
  .regionalFilters=${e.regionalFilters}
@@ -12520,9 +12567,10 @@ const Wt = class Wt extends C {
12520
12567
  .selectedAssets=${a}
12521
12568
  .selectedFolders=${r}
12522
12569
  .totalCount=${e.totalCount}
12570
+ .totalFolderCount=${e.totalFolderCount}
12523
12571
  .isSelectingAll=${e.isSelectingAll}
12524
- .multiSelect=${((z = this.config) == null ? void 0 : z.multiSelect) ?? !0}
12525
- .maxSelections=${(N = this.config) == null ? void 0 : N.maxSelections}
12572
+ .multiSelect=${((M = this.config) == null ? void 0 : M.multiSelect) ?? !0}
12573
+ .maxSelections=${(R = this.config) == null ? void 0 : R.maxSelections}
12526
12574
  @selection-confirm=${this._handleSelectionConfirm}
12527
12575
  @selection-clear=${this._handleSelectionClear}
12528
12576
  @selection-deselect=${this._handleSelectionDeselect}
@@ -12542,25 +12590,25 @@ const Wt = class Wt extends C {
12542
12590
  <div class="ap-inline">
12543
12591
  ${this._isUploaderOpen ? v : n`
12544
12592
  <div class="inline-header">${l}</div>
12545
- <div class="inline-content">${p}</div>
12593
+ <div class="inline-content">${h}</div>
12546
12594
  <div class="inline-footer">${u}</div>
12547
12595
  `}
12548
12596
  </div>
12549
12597
  ` : f : n`
12550
12598
  <ap-modal
12551
12599
  ?open=${e.isOpen}
12552
- @ap-cancel=${(ee) => this._handleCancel(ee.detail.reason)}
12600
+ @ap-cancel=${(G) => this._handleCancel(G.detail.reason)}
12553
12601
  >
12554
12602
  ${this._isUploaderOpen ? v : n`
12555
12603
  <div slot="header">${l}</div>
12556
- ${p}
12604
+ ${h}
12557
12605
  <div slot="footer">${u}</div>
12558
12606
  `}
12559
12607
  </ap-modal>
12560
12608
  `;
12561
12609
  }
12562
12610
  _renderContent(e, s, i = [], a = !1) {
12563
- var r, o, l, c, p;
12611
+ var r, o, l, c, h, u;
12564
12612
  return e.activeTab === "assets" ? !e.isLoading && e.assets.length === 0 ? n`
12565
12613
  <div class="empty-state">
12566
12614
  <ap-icon name="search" .size=${48}></ap-icon>
@@ -12616,8 +12664,9 @@ const Wt = class Wt extends C {
12616
12664
  .selectedIds=${s}
12617
12665
  .selectedFolderIds=${i}
12618
12666
  .isLoading=${e.isLoading}
12667
+ .multiSelect=${((c = this.config) == null ? void 0 : c.multiSelect) ?? !0}
12619
12668
  .folderSelectable=${a}
12620
- .gridSize=${((c = this.config) == null ? void 0 : c.gridSize) ?? "normal"}
12669
+ .gridSize=${((h = this.config) == null ? void 0 : h.gridSize) ?? "normal"}
12621
12670
  @asset-select=${this._handleAssetSelect}
12622
12671
  @asset-preview=${this._handleAssetPreview}
12623
12672
  @asset-quick-select=${this._handleQuickSelect}
@@ -12633,7 +12682,7 @@ const Wt = class Wt extends C {
12633
12682
  .selectedIds=${s}
12634
12683
  .selectedFolderIds=${i}
12635
12684
  .isLoading=${e.isLoading}
12636
- .multiSelect=${((p = this.config) == null ? void 0 : p.multiSelect) ?? !0}
12685
+ .multiSelect=${((u = this.config) == null ? void 0 : u.multiSelect) ?? !0}
12637
12686
  .folderSelectable=${a}
12638
12687
  .totalCount=${e.totalCount}
12639
12688
  .isSelectingAll=${e.isSelectingAll}
@@ -12650,7 +12699,7 @@ const Wt = class Wt extends C {
12650
12699
  }
12651
12700
  };
12652
12701
  Wt.styles = [
12653
- S`
12702
+ k`
12654
12703
  :host {
12655
12704
  display: contents;
12656
12705
  font-family: var(--ap-font-family, system-ui, -apple-system, sans-serif);
@@ -12826,19 +12875,19 @@ Wt.styles = [
12826
12875
  }
12827
12876
  `
12828
12877
  ];
12829
- let qe = Wt;
12878
+ let He = Wt;
12830
12879
  Et([
12831
12880
  _()
12832
- ], qe.prototype, "_isDragOver");
12881
+ ], He.prototype, "_isDragOver");
12833
12882
  Et([
12834
12883
  _()
12835
- ], qe.prototype, "_isUploaderOpen");
12884
+ ], He.prototype, "_isUploaderOpen");
12836
12885
  Et([
12837
12886
  _()
12838
- ], qe.prototype, "_folderResolveOpen");
12887
+ ], He.prototype, "_folderResolveOpen");
12839
12888
  Et([
12840
- h({ type: Object })
12841
- ], qe.prototype, "config");
12889
+ p({ type: Object })
12890
+ ], He.prototype, "config");
12842
12891
  export {
12843
- qe as A
12892
+ He as A
12844
12893
  };