@orangelogic/design-system 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/library/chunks/{asset-link-format.ttcRQgDc.js → asset-link-format.CVwjA_yf.js} +606 -599
  2. package/library/chunks/{color-swatch-group.Bumfw-G2.js → color-swatch-group.BPXiMxjh.js} +611 -558
  3. package/library/chunks/{document-viewer.C9tM2Gc7.js → document-viewer.DtBW-p7z.js} +2 -2
  4. package/library/chunks/{index.Coy2OPB4.js → index.BO_sT6SH.js} +218 -217
  5. package/library/chunks/{menu-item.0TbnDEDp.js → menu-item.CbqZ66to.js} +5 -5
  6. package/library/chunks/{option.CyorNG0S.js → option.CkhHTlpl.js} +1 -1
  7. package/library/chunks/{pagination.D0BeaEIi.js → pagination.BlQRt932.js} +33 -29
  8. package/library/chunks/{tab-group.C98CWzEH.js → tab-group.CQfcMVEw.js} +1 -1
  9. package/library/chunks/{toast.BxiewnAG.js → toast.BOkYwUIj.js} +1 -1
  10. package/library/chunks/{transformation.CjWnFhab.js → transformation.B8m0Nbao.js} +23 -25
  11. package/library/chunks/{types.DVZ_cbKn.js → types.MwUT4xFk.js} +9410 -9400
  12. package/library/components/asset-link-format.js +2 -2
  13. package/library/components/atoms.js +5 -5
  14. package/library/components/color-picker.js +2 -2
  15. package/library/components/color-swatch-group.js +3 -3
  16. package/library/components/corner-position-input-group.js +1 -1
  17. package/library/components/document-viewer.js +1 -1
  18. package/library/components/dynamic-select.js +1 -1
  19. package/library/components/file-on-demand.js +2 -2
  20. package/library/components/menu-item.js +1 -1
  21. package/library/components/menu.js +1 -1
  22. package/library/components/option.js +1 -1
  23. package/library/components/organisms.js +2 -2
  24. package/library/components/pagination.js +2 -2
  25. package/library/components/select.js +1 -1
  26. package/library/components/tab-group.js +2 -2
  27. package/library/components/types.js +10 -10
  28. package/library/package.json +1 -1
  29. package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +2 -0
  30. package/library/packages/hybrid/table-core/src/table/table.d.ts +35 -4
  31. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
  32. package/library/packages/utils/src/custom-element/i18n.d.ts +2 -2
  33. package/library/utils.js +2 -2
  34. package/package.json +1 -1
@@ -2,88 +2,88 @@ import { C as Q } from "./typography.T72DuoCa.js";
2
2
  import { n as y, C as ee } from "./lib-cortex-element.CVMmyPMC.js";
3
3
  import { c as ae } from "./component.styles.CAS3c9pM.js";
4
4
  import { C as Ee, s as ve, F as Z, a as Ce } from "./folder-select.BAPsI-gg.js";
5
- import { e as U, r as n1, S as m1, E as le } from "./transformation.CjWnFhab.js";
5
+ import { e as U, r as m1, S as c1, E as le } from "./transformation.B8m0Nbao.js";
6
6
  import { c as ie } from "./custom-element.L4WJXn1j.js";
7
7
  import { L as W } from "./i18n.rtxrs1c1.js";
8
8
  import { w as O } from "./watch.DJF5K-8U.js";
9
- import { B as c1, E as ue, i as te, x as g } from "./lit-element.jLBm65_O.js";
9
+ import { B as d1, E as ue, i as te, x as g } from "./lit-element.jLBm65_O.js";
10
10
  import { r as u } from "./state.CSDxrqLd.js";
11
11
  import { e as M } from "./query.BBf1UFkC.js";
12
- import { b as Ke } from "./_baseIteratee.sC2wLi2m.js";
13
- import { a as d1 } from "./toString.B1zKIiZc.js";
14
- import { b as s1 } from "./cloneDeep.tKGbEwzn.js";
15
- import { c as o1 } from "./_baseClone.ipmFlCAx.js";
16
- import { I as je, C as Ve, a as h1, b as He, S as z, D as g1, c as l1, A as Ie, g as C1, i as y1, F as x1, d as b1, t as k1, e as p1, f as u1, h as f1, j as A1, k as B1, l as D1, m as F1, n as E1, o as v1, p as $1, q as w1, r as S1, O as _1 } from "./types.DVZ_cbKn.js";
12
+ import { b as je } from "./_baseIteratee.sC2wLi2m.js";
13
+ import { a as s1 } from "./toString.B1zKIiZc.js";
14
+ import { b as o1 } from "./cloneDeep.tKGbEwzn.js";
15
+ import { c as h1 } from "./_baseClone.ipmFlCAx.js";
16
+ import { I as Ve, C as He, a as g1, b as Ue, S as z, D as l1, c as C1, A as Ie, g as y1, i as x1, F as b1, d as k1, t as p1, e as u1, f as f1, h as A1, j as B1, k as D1, l as F1, m as E1, n as v1, o as $1, p as w1, q as S1, r as _1, O as I1 } from "./types.MwUT4xFk.js";
17
17
  import { C as ce } from "./button.D1YIxtv-.js";
18
- import I1 from "../components/button-group.js";
19
- import P1 from "../components/card.js";
20
- import Ue from "../components/checkbox.js";
21
- import { C as se, D as fe, O as We, a as T1, H as R1, z as z1, o as L1 } from "./dialog.BbQ4Du0M.js";
22
- import Je from "../components/divider.js";
23
- import q1 from "../components/dropdown.js";
18
+ import P1 from "../components/button-group.js";
19
+ import T1 from "../components/card.js";
20
+ import We from "../components/checkbox.js";
21
+ import { C as se, D as fe, O as Je, a as R1, H as z1, z as L1, o as q1 } from "./dialog.BbQ4Du0M.js";
22
+ import Ye from "../components/divider.js";
23
+ import O1 from "../components/dropdown.js";
24
24
  import $e from "../components/grid.js";
25
25
  import we from "../components/grid-item.js";
26
- import { C as O1 } from "./icon.BLXWp6CU.js";
26
+ import { C as M1 } from "./icon.BLXWp6CU.js";
27
27
  import { C as oe } from "./input.D1FFprPl.js";
28
- import M1 from "../components/line-clamp.js";
29
- import N1 from "../components/menu.js";
30
- import { C as G1 } from "./menu-item.0TbnDEDp.js";
31
- import { C as Ye, a as K1 } from "./option.CyorNG0S.js";
32
- import Xe from "../components/radio.js";
33
- import j1 from "../components/radio-card.js";
34
- import Ze from "../components/radio-group.js";
28
+ import N1 from "../components/line-clamp.js";
29
+ import G1 from "../components/menu.js";
30
+ import { C as K1 } from "./menu-item.CbqZ66to.js";
31
+ import { C as Xe, a as j1 } from "./option.CkhHTlpl.js";
32
+ import Ze from "../components/radio.js";
33
+ import V1 from "../components/radio-card.js";
34
+ import Qe from "../components/radio-group.js";
35
35
  import Se from "../components/select.js";
36
36
  import de from "../components/space.js";
37
- import V1 from "../components/switch.js";
38
- import H1 from "../components/tab.js";
39
- import { C as U1 } from "./tab-group.C98CWzEH.js";
40
- import W1 from "../components/tab-panel.js";
41
- import J1 from "../components/textarea.js";
42
- import Y1 from "../components/tooltip.js";
43
- import X1 from "../components/visually-hidden.js";
44
- import Z1 from "../components/bicolor-picker.js";
45
- import Q1 from "../components/border-input-group.js";
46
- import { C as e0, a as a0 } from "./confirm-popover.CJXyEa5A.js";
47
- import i0 from "../components/corner-position-input-group.js";
48
- import Qe from "../components/dynamic-select.js";
49
- import t0 from "../components/padding-input-group.js";
50
- import r0 from "../components/position-picker.js";
51
- import n0 from "../components/shadow-input-group.js";
52
- import m0 from "../components/size-input-group.js";
53
- import { isFormInteracted as c0 } from "../utils.js";
54
- import { e as d0, i as s0 } from "./directive.oAbCiebi.js";
55
- import { e as Pe, p as Te, m as Re, s as ze, h as o0, l as h0 } from "./directive-helpers.DEDMV45_.js";
56
- import { i as g0 } from "./keyed.DdOUTIg-.js";
37
+ import H1 from "../components/switch.js";
38
+ import U1 from "../components/tab.js";
39
+ import { C as W1 } from "./tab-group.CQfcMVEw.js";
40
+ import J1 from "../components/tab-panel.js";
41
+ import Y1 from "../components/textarea.js";
42
+ import X1 from "../components/tooltip.js";
43
+ import Z1 from "../components/visually-hidden.js";
44
+ import Q1 from "../components/bicolor-picker.js";
45
+ import e0 from "../components/border-input-group.js";
46
+ import { C as a0, a as i0 } from "./confirm-popover.CJXyEa5A.js";
47
+ import t0 from "../components/corner-position-input-group.js";
48
+ import e1 from "../components/dynamic-select.js";
49
+ import r0 from "../components/padding-input-group.js";
50
+ import n0 from "../components/position-picker.js";
51
+ import m0 from "../components/shadow-input-group.js";
52
+ import c0 from "../components/size-input-group.js";
53
+ import { isFormInteracted as d0 } from "../utils.js";
54
+ import { e as s0, i as o0 } from "./directive.oAbCiebi.js";
55
+ import { e as Pe, p as Te, m as Re, s as ze, h as h0, l as g0 } from "./directive-helpers.DEDMV45_.js";
56
+ import { i as l0 } from "./keyed.DdOUTIg-.js";
57
57
  import { c as N } from "./repeat.CFjcER6_.js";
58
58
  import { n as v } from "./when.Dr1es41R.js";
59
- import { a as l0 } from "./_baseXor.DixEm6JQ.js";
60
- import { a as C0, i as Le, b as y0 } from "./isArrayLikeObject.D7afXo-f.js";
61
- import { i as x0 } from "./isEmpty.DtTJTUcf.js";
62
- import { a as Ae, F as b0, b as k0, c as qe, d as Oe, e as p0, i as u0, f as Me, u as Be } from "./asset-link-format.ttcRQgDc.js";
63
- import f0 from "../components/color-picker.js";
59
+ import { a as C0 } from "./_baseXor.DixEm6JQ.js";
60
+ import { a as y0, i as Le, b as x0 } from "./isArrayLikeObject.D7afXo-f.js";
61
+ import { i as b0 } from "./isEmpty.DtTJTUcf.js";
62
+ import { a as Ae, F as k0, b as p0, c as qe, d as Oe, e as Me, f as u0, g as f0, i as Ne, u as Be } from "./asset-link-format.CVwjA_yf.js";
63
+ import A0 from "../components/color-picker.js";
64
64
  import { C as _e } from "./icon-button.CbUddcgI.js";
65
- import A0 from "../components/spinner.js";
66
- import { a as B0, d as D0 } from "./color-swatch-group.Bumfw-G2.js";
67
- import { c as ne, C as me, p as F0, a as E0, b as v0, g as ye } from "./color.LzSGBy7o.js";
68
- import { o as e1 } from "./map.D8heArFD.js";
69
- import { v as a1 } from "./v4.CKZ6klMF.js";
70
- import { M as i1 } from "./asset-link-format.ClaYu_v8.js";
71
- import $0 from "../components/masonry.js";
65
+ import B0 from "../components/spinner.js";
66
+ import { a as D0, d as F0 } from "./color-swatch-group.BPXiMxjh.js";
67
+ import { c as ne, C as me, p as E0, a as v0, b as $0, g as ye } from "./color.LzSGBy7o.js";
68
+ import { o as a1 } from "./map.D8heArFD.js";
69
+ import { v as i1 } from "./v4.CKZ6klMF.js";
70
+ import { M as t1 } from "./asset-link-format.ClaYu_v8.js";
71
+ import w0 from "../components/masonry.js";
72
72
  import { a as ge } from "./index.Cpamj0jB.js";
73
73
  import { G as L } from "./string.Demn8Xmk.js";
74
- import { d as w0 } from "./default-value.COZopaet.js";
75
- import { F as S0 } from "./form.DN2v7-DH.js";
74
+ import { d as S0 } from "./default-value.COZopaet.js";
75
+ import { F as _0 } from "./form.DN2v7-DH.js";
76
76
  import { o as De } from "./style-map.llVFPd__.js";
77
77
  import { r as Fe } from "./choose.BTbF6BAn.js";
78
78
  import { o as P } from "./if-defined.BRoBj_Rp.js";
79
- import { t as _0 } from "./url.CGdWC06g.js";
80
- import { e as I0 } from "./number.Cx2ncfJJ.js";
81
- import { e as P0 } from "./class-map.BiVq-cVR.js";
79
+ import { t as I0 } from "./url.CGdWC06g.js";
80
+ import { e as P0 } from "./number.Cx2ncfJJ.js";
81
+ import { e as T0 } from "./class-map.BiVq-cVR.js";
82
82
  import { n as xe, e as be } from "./ref.DktKp7fP.js";
83
- var T0 = "Expected a function";
84
- function R0(e) {
83
+ var R0 = "Expected a function";
84
+ function z0(e) {
85
85
  if (typeof e != "function")
86
- throw new TypeError(T0);
86
+ throw new TypeError(R0);
87
87
  return function() {
88
88
  var a = arguments;
89
89
  switch (a.length) {
@@ -99,25 +99,25 @@ function R0(e) {
99
99
  return !e.apply(this, a);
100
100
  };
101
101
  }
102
- function z0(e, a) {
102
+ function L0(e, a) {
103
103
  if (e == null)
104
104
  return {};
105
- var n = d1(o1(e), function(t) {
105
+ var n = s1(h1(e), function(t) {
106
106
  return [t];
107
107
  });
108
- return a = Ke(a), s1(e, n, function(t, r) {
108
+ return a = je(a), o1(e, n, function(t, r) {
109
109
  return a(t, r[0]);
110
110
  });
111
111
  }
112
- function L0(e, a) {
113
- return z0(e, R0(Ke(a)));
112
+ function q0(e, a) {
113
+ return L0(e, z0(je(a)));
114
114
  }
115
115
  /**
116
116
  * @license
117
117
  * Copyright 2017 Google LLC
118
118
  * SPDX-License-Identifier: BSD-3-Clause
119
119
  */
120
- const Ne = (e) => h0(e) ? e._$litType$.h : e.strings, q0 = d0(class extends s0 {
120
+ const Ge = (e) => g0(e) ? e._$litType$.h : e.strings, O0 = s0(class extends o0 {
121
121
  constructor(e) {
122
122
  super(e), this.et = /* @__PURE__ */ new WeakMap();
123
123
  }
@@ -125,13 +125,13 @@ const Ne = (e) => h0(e) ? e._$litType$.h : e.strings, q0 = d0(class extends s0 {
125
125
  return [e];
126
126
  }
127
127
  update(e, [a]) {
128
- const n = Pe(this.it) ? Ne(this.it) : null, t = Pe(a) ? Ne(a) : null;
128
+ const n = Pe(this.it) ? Ge(this.it) : null, t = Pe(a) ? Ge(a) : null;
129
129
  if (n !== null && (t === null || n !== t)) {
130
130
  const r = Te(e).pop();
131
131
  let i = this.et.get(n);
132
132
  if (i === void 0) {
133
133
  const m = document.createDocumentFragment();
134
- i = c1(ue, m), i.setConnected(!1), this.et.set(n, i);
134
+ i = d1(ue, m), i.setConnected(!1), this.et.set(n, i);
135
135
  }
136
136
  Re(i, [r]), ze(i, void 0, r);
137
137
  }
@@ -140,7 +140,7 @@ const Ne = (e) => h0(e) ? e._$litType$.h : e.strings, q0 = d0(class extends s0 {
140
140
  const r = this.et.get(t);
141
141
  if (r !== void 0) {
142
142
  const i = Te(r).pop();
143
- o0(e), ze(e, void 0, i), Re(e, [i]);
143
+ h0(e), ze(e, void 0, i), Re(e, [i]);
144
144
  }
145
145
  }
146
146
  this.it = a;
@@ -148,12 +148,12 @@ const Ne = (e) => h0(e) ? e._$litType$.h : e.strings, q0 = d0(class extends s0 {
148
148
  return this.render(a);
149
149
  }
150
150
  });
151
- var O0 = C0(function(e, a) {
152
- return Le(e) ? l0(e, y0(a, 1, Le, !0)) : [];
151
+ var M0 = y0(function(e, a) {
152
+ return Le(e) ? C0(e, x0(a, 1, Le, !0)) : [];
153
153
  });
154
- const M0 = {
154
+ const N0 = {
155
155
  resizable: !1
156
- }, N0 = (e) => [
156
+ }, G0 = (e) => [
157
157
  {
158
158
  field: "hex",
159
159
  formatter: (a) => {
@@ -216,7 +216,7 @@ const M0 = {
216
216
  title: "PMS",
217
217
  width: 75
218
218
  }
219
- ], G0 = (e) => ({
219
+ ], K0 = (e) => ({
220
220
  data: [
221
221
  {
222
222
  icon: "create",
@@ -16833,15 +16833,15 @@ const M0 = {
16833
16833
  name: "Mocha Mousse 17-1230 TCX",
16834
16834
  rgb: [164, 120, 100]
16835
16835
  }
16836
- }, K0 = te`.color-swatch-picker__space{width:100%}.color-swatch-picker__dialog{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:640px}.color-swatch-picker__table{--group-row-background-color:transparent;--row-background-color:transparent;--row-even-background-color:transparent;--row-hover-background-color:var(--cx-color-neutral-50);--row-even-hover-background-color:var(--cx-color-neutral-50);--header-height:48px;--cell-line-height:35px;--cell-border-color:transparent;--cell-bottom-border-color:transparent;--cell-hover-background-color:transparent;--row-header-border-color:transparent;--cell-horizontal-padding:var(--cx-spacing-2x-small);--header-horizontal-padding:var(--cx-spacing-2x-small);--header-border-bottom:1px solid var(--cx-color-neutral-200);--hover-menu-background-color:var(--row-hover-background-color)}.color-swatch-picker__table::part(table){background-color:#0000}.color-swatch-group__table__copy-button::part(button){background:0 0;border-width:0;height:fit-content;min-height:fit-content;padding:0}.color-swatch-picker__loading-spinner{--track-width:4px;font-size:var(--cx-font-size-3x-large)}.color-swatch-picker__add-color-button{width:100px}`;
16837
- var j0 = Object.defineProperty, V0 = Object.getOwnPropertyDescriptor, R = (e, a, n, t) => {
16838
- for (var r = t > 1 ? void 0 : t ? V0(a, n) : a, i = e.length - 1, m; i >= 0; i--)
16836
+ }, j0 = te`.color-swatch-picker__space{width:100%}.color-swatch-picker__dialog{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:640px}.color-swatch-picker__table{--group-row-background-color:transparent;--row-background-color:transparent;--row-even-background-color:transparent;--row-hover-background-color:var(--cx-color-neutral-50);--row-even-hover-background-color:var(--cx-color-neutral-50);--header-height:48px;--cell-line-height:35px;--cell-border-color:transparent;--cell-bottom-border-color:transparent;--cell-hover-background-color:transparent;--row-header-border-color:transparent;--cell-horizontal-padding:var(--cx-spacing-2x-small);--header-horizontal-padding:var(--cx-spacing-2x-small);--header-border-bottom:1px solid var(--cx-color-neutral-200);--hover-menu-background-color:var(--row-hover-background-color)}.color-swatch-picker__table::part(table){background-color:#0000}.color-swatch-group__table__copy-button::part(button){background:0 0;border-width:0;height:fit-content;min-height:fit-content;padding:0}.color-swatch-picker__loading-spinner{--track-width:4px;font-size:var(--cx-font-size-3x-large)}.color-swatch-picker__add-color-button{width:100px}`;
16837
+ var V0 = Object.defineProperty, H0 = Object.getOwnPropertyDescriptor, R = (e, a, n, t) => {
16838
+ for (var r = t > 1 ? void 0 : t ? H0(a, n) : a, i = e.length - 1, m; i >= 0; i--)
16839
16839
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
16840
- return t && r && j0(a, n, r), r;
16840
+ return t && r && V0(a, n, r), r;
16841
16841
  };
16842
16842
  let I = class extends ee {
16843
16843
  constructor() {
16844
- super(...arguments), this.localize = new W(this), this.translatedColumns = N0(this.localize), this.translatedHoverMenu = G0(this.localize), this.boundary = document.body, this.data = [], this.disableTableLoad = !1, this.supportedLanguages = ["en"], this.defaultLanguage = "en", this.dialogType = "add", this.dialogId = "", this.dialogName = "", this.dialogNameTranslations = {}, this.dialogPalette = "", this.dialogHex = "", this.dialogRgb = "", this.dialogCmyk = "", this.dialogPmsId = "", this.dialogColor = "", this.palettes = [];
16844
+ super(...arguments), this.localize = new W(this), this.translatedColumns = G0(this.localize), this.translatedHoverMenu = K0(this.localize), this.boundary = document.body, this.data = [], this.disableTableLoad = !1, this.supportedLanguages = ["en"], this.defaultLanguage = "en", this.dialogType = "add", this.dialogId = "", this.dialogName = "", this.dialogNameTranslations = {}, this.dialogPalette = "", this.dialogHex = "", this.dialogRgb = "", this.dialogCmyk = "", this.dialogPmsId = "", this.dialogColor = "", this.palettes = [];
16845
16845
  }
16846
16846
  get tabs() {
16847
16847
  return this.supportedLanguages.length > 1 ? [
@@ -16892,7 +16892,7 @@ let I = class extends ee {
16892
16892
  cmyk: this.dialogCmyk,
16893
16893
  color: this.dialogColor,
16894
16894
  hex: this.dialogHex,
16895
- id: this.dialogId || a1(),
16895
+ id: this.dialogId || i1(),
16896
16896
  name: this.dialogName,
16897
16897
  palette: this.dialogPalette.replaceAll("_", " "),
16898
16898
  pms: ke[this.dialogPmsId]?.name || "",
@@ -16977,8 +16977,8 @@ let I = class extends ee {
16977
16977
  ${N(
16978
16978
  ["name"],
16979
16979
  (n) => n,
16980
- (n) => g`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${this.localize.term(n)}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${e1(this.supportedLanguages, (t) => {
16981
- const r = this.localize.languageName(t) || je.getName(t) || t;
16980
+ (n) => g`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${this.localize.term(n)}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${a1(this.supportedLanguages, (t) => {
16981
+ const r = this.localize.languageName(t) || Ve.getName(t) || t;
16982
16982
  return g`<cx-input ?disabled=${t.toLowerCase() === this.defaultLanguage?.toLowerCase()} data-testid="name-input" data-language=${t} label=${r} value=${t.toLowerCase() === this.defaultLanguage?.toLowerCase() ? this.dialogName : this.dialogNameTranslations[t] ?? this.dialogName} placeholder=${this.localize.term("colorNameWillAppearInSwatch")} @cx-change=${this.handleChangeNameTranslation}></cx-input>`;
16983
16983
  })}</cx-space></cx-grid-item></cx-grid>`
16984
16984
  )}
@@ -17010,7 +17010,7 @@ let I = class extends ee {
17010
17010
  render() {
17011
17011
  return g`<cx-space part="base" spacing="medium" direction="vertical" class="color-swatch-picker">${v(
17012
17012
  !this.disableTableLoad,
17013
- () => g`<cx-table part="table" movable-rows class="color-swatch-picker__table" layout="fitColumns" .columns=${this.translatedColumns} .columnDefaults=${M0} .hoverMenu=${this.translatedHoverMenu} .rowHeight=${40} .data=${this.data ?? []} no-selectable @cx-table.rowMoved=${this.handleTableRowMoved} @cx-table.rowDeleted=${this.handleTableRowDeleted} @cx-table.rowSelected=${this.handleOpenEditColorDialog} @cx-table-row-action-click=${this.handleTableActions}></cx-table>`,
17013
+ () => g`<cx-table part="table" movable-rows class="color-swatch-picker__table" layout="fitColumns" .columns=${this.translatedColumns} .columnDefaults=${N0} .hoverMenu=${this.translatedHoverMenu} .rowHeight=${40} .data=${this.data ?? []} no-selectable @cx-table.rowMoved=${this.handleTableRowMoved} @cx-table.rowDeleted=${this.handleTableRowDeleted} @cx-table.rowSelected=${this.handleOpenEditColorDialog} @cx-table-row-action-click=${this.handleTableActions}></cx-table>`,
17014
17014
  () => g`<cx-spinner part="loading-spinner" class="color-swatch-picker__loading-spinner"></cx-spinner>`
17015
17015
  )}<cx-button @click=${this.handleOpenAddColorDialog} class="color-swatch-picker__add-color-button">${this.localize.term("addColor")}</cx-button></cx-space><cx-dialog part="dialog" class="color-swatch-picker__dialog" divider-position=${fe.Footer} use-overlay-scrollbar strategy="overlay" .boundary=${this.boundary} @cx-request-close=${this.handleRequestClose}><cx-space slot="label" direction="vertical" spacing="2x-small"><cx-typography variant="h4">${this.localize.term(`${this.dialogType}Color`)}</cx-typography></cx-space>${v(
17016
17016
  this.tabs.length >= 1,
@@ -17023,20 +17023,20 @@ let I = class extends ee {
17023
17023
  )}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button data-testid="cancel-button" variant="default" size="medium" @click=${this.handleRequestClose}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" @click=${this.handleFinishDialog}>${this.localize.term(this.dialogType === "add" ? "add" : "save")}</cx-button></cx-space></cx-dialog>`;
17024
17024
  }
17025
17025
  };
17026
- I.styles = [ae, K0];
17026
+ I.styles = [ae, j0];
17027
17027
  I.dependencies = {
17028
17028
  "cx-button": ce,
17029
- "cx-color-picker": f0,
17029
+ "cx-color-picker": A0,
17030
17030
  "cx-dialog": se,
17031
17031
  "cx-grid": $e,
17032
17032
  "cx-grid-item": we,
17033
17033
  "cx-icon-button": _e,
17034
17034
  "cx-input": oe,
17035
- "cx-option": Ye,
17035
+ "cx-option": Xe,
17036
17036
  "cx-select": Se,
17037
17037
  "cx-space": de,
17038
- "cx-spinner": A0,
17039
- "cx-table": B0,
17038
+ "cx-spinner": B0,
17039
+ "cx-table": D0,
17040
17040
  "cx-typography": Q
17041
17041
  };
17042
17042
  R([
@@ -17117,11 +17117,11 @@ R([
17117
17117
  I = R([
17118
17118
  ie("cx-color-swatch-picker")
17119
17119
  ], I);
17120
- const H0 = te`.folder-picker__name{--color:var(--cx-color-primary-500)}.folder-picker__request-folder-button:not(:first-child){margin-left:var(--cx-spacing-small)}`;
17121
- var U0 = Object.defineProperty, W0 = Object.getOwnPropertyDescriptor, G = (e, a, n, t) => {
17122
- for (var r = t > 1 ? void 0 : t ? W0(a, n) : a, i = e.length - 1, m; i >= 0; i--)
17120
+ const U0 = te`.folder-picker__name{--color:var(--cx-color-primary-500)}.folder-picker__request-folder-button:not(:first-child){margin-left:var(--cx-spacing-small)}`;
17121
+ var W0 = Object.defineProperty, J0 = Object.getOwnPropertyDescriptor, G = (e, a, n, t) => {
17122
+ for (var r = t > 1 ? void 0 : t ? J0(a, n) : a, i = e.length - 1, m; i >= 0; i--)
17123
17123
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
17124
- return t && r && U0(a, n, r), r;
17124
+ return t && r && W0(a, n, r), r;
17125
17125
  };
17126
17126
  let T = class extends ee {
17127
17127
  constructor() {
@@ -17177,7 +17177,7 @@ let T = class extends ee {
17177
17177
  return;
17178
17178
  }
17179
17179
  const e = await this.fetchSelectedFolder();
17180
- e ? this.useFullPath ? (this.selectedLabel = `/${(e.fullPath ?? "").replace(/^\/+/, "")}`, e.docType === i1.Album && (this.selectedLabel += `/${e.title}`)) : this.selectedLabel = e.title : this.selectedLabel = "";
17180
+ e ? this.useFullPath ? (this.selectedLabel = `/${(e.fullPath ?? "").replace(/^\/+/, "")}`, e.docType === t1.Album && (this.selectedLabel += `/${e.title}`)) : this.selectedLabel = e.title : this.selectedLabel = "";
17181
17181
  }
17182
17182
  render() {
17183
17183
  return g`<cx-space part="base" class="folder-picker" spacing="2x-small" direction="horizontal" align-items="center">${v(
@@ -17194,7 +17194,7 @@ let T = class extends ee {
17194
17194
  )}</cx-space>`;
17195
17195
  }
17196
17196
  };
17197
- T.styles = [ae, H0];
17197
+ T.styles = [ae, U0];
17198
17198
  T.dependencies = {
17199
17199
  "cx-button": ce,
17200
17200
  "cx-dialog": se,
@@ -17252,16 +17252,16 @@ G([
17252
17252
  T = G([
17253
17253
  ie("cx-folder-picker")
17254
17254
  ], T);
17255
- const J0 = te`:host{width:100%;display:block}.gallery-config-dialog{--width:600px}.gallery-config-dialog::part(body){padding-bottom:0}.gallery-config-dialog::part(footer){padding-top:0}`;
17256
- var Y0 = Object.defineProperty, X0 = Object.getOwnPropertyDescriptor, j = (e, a, n, t) => {
17257
- for (var r = t > 1 ? void 0 : t ? X0(a, n) : a, i = e.length - 1, m; i >= 0; i--)
17255
+ const Y0 = te`:host{width:100%;display:block}.gallery-config-dialog{--width:600px}.gallery-config-dialog::part(body){padding-bottom:0}.gallery-config-dialog::part(footer){padding-top:0}`;
17256
+ var X0 = Object.defineProperty, Z0 = Object.getOwnPropertyDescriptor, j = (e, a, n, t) => {
17257
+ for (var r = t > 1 ? void 0 : t ? Z0(a, n) : a, i = e.length - 1, m; i >= 0; i--)
17258
17258
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
17259
- return t && r && Y0(a, n, r), r;
17259
+ return t && r && X0(a, n, r), r;
17260
17260
  };
17261
17261
  const pe = "path_TR1";
17262
17262
  let q = class extends ee {
17263
17263
  constructor() {
17264
- super(), this.localize = new W(this), this.variant = L.Asset, this.dialogVariant = U.Gallery, this.boundary = document.body, this.onRequestAsset = void 0, this.image = null, this.selectedPosition = -1, this.disabledAssetPicker = !1, this.editedImage = { id: "" }, this.assetRequestingStatus = !1, this.selectedPageLabel = "", this.isThumbnailManuallySet = !1, this.apiGetTeamSpaceSpaceList = h1, this.apiGetPagesAndLinks = this.apiGetPagesAndLinks.bind(this);
17264
+ super(), this.localize = new W(this), this.variant = L.Asset, this.dialogVariant = U.Gallery, this.boundary = document.body, this.onRequestAsset = void 0, this.image = null, this.selectedPosition = -1, this.disabledAssetPicker = !1, this.editedImage = { id: "" }, this.assetRequestingStatus = !1, this.selectedPageLabel = "", this.isThumbnailManuallySet = !1, this.apiGetTeamSpaceSpaceList = g1, this.apiGetPagesAndLinks = this.apiGetPagesAndLinks.bind(this);
17265
17265
  }
17266
17266
  get showOpenInNewTab() {
17267
17267
  return this.variant === L.Link || this.variant === L.Page || this.variant === L.Space;
@@ -17287,7 +17287,7 @@ let q = class extends ee {
17287
17287
  start: n = 0
17288
17288
  }) {
17289
17289
  try {
17290
- const { data: t, hasMore: r } = await He({
17290
+ const { data: t, hasMore: r } = await Ue({
17291
17291
  parentId: e,
17292
17292
  searchTerm: a,
17293
17293
  start: n
@@ -17496,21 +17496,21 @@ let q = class extends ee {
17496
17496
  )}</cx-radio-group></cx-grid-item></cx-grid></form><cx-divider></cx-divider><cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.hide}>${this.localize.term("cancel")}</cx-button><cx-button data-testid="save-button" variant="primary" size="medium" type="submit" @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button></cx-space></cx-dialog>`;
17497
17497
  }
17498
17498
  };
17499
- q.styles = [ae, J0];
17499
+ q.styles = [ae, Y0];
17500
17500
  q.dependencies = {
17501
- "cx-asset-picker": Ve,
17501
+ "cx-asset-picker": He,
17502
17502
  "cx-button": ce,
17503
- "cx-checkbox": Ue,
17503
+ "cx-checkbox": We,
17504
17504
  "cx-dialog": se,
17505
- "cx-divider": Je,
17506
- "cx-dynamic-select": Qe,
17505
+ "cx-divider": Ye,
17506
+ "cx-dynamic-select": e1,
17507
17507
  "cx-folder-picker": T,
17508
17508
  "cx-folder-select": Ee,
17509
17509
  "cx-grid": $e,
17510
17510
  "cx-grid-item": we,
17511
17511
  "cx-input": oe,
17512
- "cx-radio": Xe,
17513
- "cx-radio-group": Ze,
17512
+ "cx-radio": Ze,
17513
+ "cx-radio-group": Qe,
17514
17514
  "cx-space": de,
17515
17515
  "cx-typography": Q
17516
17516
  };
@@ -17560,22 +17560,22 @@ j([
17560
17560
  q = j([
17561
17561
  ie("cx-gallery-config")
17562
17562
  ], q);
17563
- const Z0 = te`:host{width:100%;display:block;position:relative}.gallery-picker-dialog{--width:600px}.gallery-picker-dialog::part(body){padding-bottom:0}.gallery-picker-dialog::part(footer){padding-top:0}.gallery-picker__no-slides-added{margin-bottom:var(--cx-spacing-medium);display:block}.gallery-picker__overlay{margin-bottom:var(--cx-spacing-small)}.gallery-picker__masonry-wrapper{padding-right:var(--cx-spacing-medium)}.gallery-picker__input{opacity:0;pointer-events:none;z-index:-1;width:33.3333%;position:absolute;top:0;left:0;transform:translateY(-90%)}`;
17564
- var Q0 = Object.defineProperty, e2 = Object.getOwnPropertyDescriptor, w = (e, a, n, t) => {
17565
- for (var r = t > 1 ? void 0 : t ? e2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
17563
+ const Q0 = te`:host{width:100%;display:block;position:relative}.gallery-picker-dialog{--width:600px}.gallery-picker-dialog::part(body){padding-bottom:0}.gallery-picker-dialog::part(footer){padding-top:0}.gallery-picker__no-slides-added{margin-bottom:var(--cx-spacing-medium);display:block}.gallery-picker__overlay{margin-bottom:var(--cx-spacing-small)}.gallery-picker__masonry-wrapper{padding-right:var(--cx-spacing-medium)}.gallery-picker__input{opacity:0;pointer-events:none;z-index:-1;width:33.3333%;position:absolute;top:0;left:0;transform:translateY(-90%)}`;
17564
+ var e2 = Object.defineProperty, a2 = Object.getOwnPropertyDescriptor, w = (e, a, n, t) => {
17565
+ for (var r = t > 1 ? void 0 : t ? a2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
17566
17566
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
17567
- return t && r && Q0(a, n, r), r;
17567
+ return t && r && e2(a, n, r), r;
17568
17568
  };
17569
- We.plugin({
17570
- ClickScroll: z1,
17571
- ScrollbarsHiding: R1,
17572
- SizeObserver: T1
17569
+ Je.plugin({
17570
+ ClickScroll: L1,
17571
+ ScrollbarsHiding: z1,
17572
+ SizeObserver: R1
17573
17573
  });
17574
17574
  let D = class extends ee {
17575
17575
  constructor() {
17576
- super(...arguments), this.formControlController = new S0(this, {
17576
+ super(...arguments), this.formControlController = new _0(this, {
17577
17577
  assumeInteractionOn: ["cx-gallery-picker-action"]
17578
- }), this.localize = new W(this), this.variant = L.Asset, this.sourceVariant = z.Manual, this.dialogVariant = U.Gallery, this.name = "", this.value = void 0, this.defaultValue = void 0, this.src = "", this.format = g1, this.manualFormat = !1, this.boundary = document.body, this.form = void 0, this.onRequestAsset = void 0, this.loading = !1, this.masonryData = [], this.dataCount = 0, this.currentPage = 0, this.selectedPosition = -1, this.hasFinishedFetchingData = !1, this.errorDataMap = /* @__PURE__ */ new Map(), this.osInstance = null, this.itemsPerPage = 9, this.maxRows = 3, this.maxColumns = 3, this.rowHeight = "150px", this.spacing = "medium", this.autofetchController = new b0(this, {
17578
+ }), this.localize = new W(this), this.variant = L.Asset, this.sourceVariant = z.Manual, this.dialogVariant = U.Gallery, this.name = "", this.value = void 0, this.defaultValue = void 0, this.src = "", this.format = l1, this.manualFormat = !1, this.boundary = document.body, this.form = void 0, this.onRequestAsset = void 0, this.loading = !1, this.masonryData = [], this.dataCount = 0, this.currentPage = 0, this.selectedPosition = -1, this.hasFinishedFetchingData = !1, this.errorDataMap = /* @__PURE__ */ new Map(), this.osInstance = null, this.itemsPerPage = 9, this.maxRows = 3, this.maxColumns = 3, this.rowHeight = "150px", this.spacing = "medium", this.autofetchController = new k0(this, {
17579
17579
  isSiteBuilder: !0,
17580
17580
  maxEnd: 100
17581
17581
  });
@@ -17670,7 +17670,7 @@ let D = class extends ee {
17670
17670
  return;
17671
17671
  }
17672
17672
  const n = this.value.map((t) => t.id).filter((t) => t !== "");
17673
- if (Array.isArray(e) && Array.isArray(a) && e.length === a.length && D0(e, a, "id").length === 0) {
17673
+ if (Array.isArray(e) && Array.isArray(a) && e.length === a.length && F0(e, a, "id").length === 0) {
17674
17674
  this.masonryData.sort((t, r) => {
17675
17675
  const i = n.indexOf(t.id), m = n.indexOf(r.id);
17676
17676
  return i - m;
@@ -17788,7 +17788,7 @@ let D = class extends ee {
17788
17788
  }
17789
17789
  const r = t.map((i) => ({
17790
17790
  ...i,
17791
- rawId: this.sourceVariant === z.Manual ? i.rawId || a1() : i.rawId ?? ""
17791
+ rawId: this.sourceVariant === z.Manual ? i.rawId || i1() : i.rawId ?? ""
17792
17792
  }));
17793
17793
  this.value = r, this.emit("cx-content-builder-gallery-change", {
17794
17794
  detail: {
@@ -17824,7 +17824,7 @@ let D = class extends ee {
17824
17824
  super.disconnectedCallback(), this.destroyOverlayScrollbar();
17825
17825
  }
17826
17826
  initializeOverlayScrollbar() {
17827
- this.osInstance = We(this.scrollWrapper, {
17827
+ this.osInstance = Je(this.scrollWrapper, {
17828
17828
  scrollbars: {
17829
17829
  autoHide: "scroll",
17830
17830
  autoHideDelay: 1e3
@@ -17883,14 +17883,14 @@ let D = class extends ee {
17883
17883
  };
17884
17884
  D.styles = [
17885
17885
  ae,
17886
- L1,
17887
- Z0
17886
+ q1,
17887
+ Q0
17888
17888
  ];
17889
17889
  D.dependencies = {
17890
17890
  "cx-button": ce,
17891
17891
  "cx-gallery-config": q,
17892
17892
  "cx-input": oe,
17893
- "cx-masonry": $0,
17893
+ "cx-masonry": w0,
17894
17894
  "cx-space": de,
17895
17895
  "cx-typography": Q
17896
17896
  };
@@ -17937,7 +17937,7 @@ w([
17937
17937
  })
17938
17938
  ], D.prototype, "value", 2);
17939
17939
  w([
17940
- w0()
17940
+ S0()
17941
17941
  ], D.prototype, "defaultValue", 2);
17942
17942
  w([
17943
17943
  y({ reflect: !0, type: String })
@@ -18004,17 +18004,17 @@ w([
18004
18004
  D = w([
18005
18005
  ie("cx-gallery-picker")
18006
18006
  ], D);
18007
- const a2 = te`.page-picker__name{--color:var(--cx-color-primary-500)}.page-picker__request-page-button:not(:first-child){margin-left:var(--cx-spacing-small)}`;
18008
- var i2 = Object.defineProperty, t2 = Object.getOwnPropertyDescriptor, t1 = (e) => {
18007
+ const i2 = te`.page-picker__name{--color:var(--cx-color-primary-500)}.page-picker__request-page-button:not(:first-child){margin-left:var(--cx-spacing-small)}`;
18008
+ var t2 = Object.defineProperty, r2 = Object.getOwnPropertyDescriptor, r1 = (e) => {
18009
18009
  throw TypeError(e);
18010
18010
  }, V = (e, a, n, t) => {
18011
- for (var r = t > 1 ? void 0 : t ? t2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
18011
+ for (var r = t > 1 ? void 0 : t ? r2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
18012
18012
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
18013
- return t && r && i2(a, n, r), r;
18014
- }, r1 = (e, a, n) => a.has(e) || t1("Cannot " + n), he = (e, a, n) => (r1(e, a, "read from private field"), n ? n.call(e) : a.get(e)), r2 = (e, a, n) => a.has(e) ? t1("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, n), Ge = (e, a, n, t) => (r1(e, a, "write to private field"), a.set(e, n), n), H;
18013
+ return t && r && t2(a, n, r), r;
18014
+ }, n1 = (e, a, n) => a.has(e) || r1("Cannot " + n), he = (e, a, n) => (n1(e, a, "read from private field"), n ? n.call(e) : a.get(e)), n2 = (e, a, n) => a.has(e) ? r1("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(e) : a.set(e, n), Ke = (e, a, n, t) => (n1(e, a, "write to private field"), a.set(e, n), n), H;
18015
18015
  let K = class extends ee {
18016
18016
  constructor() {
18017
- super(), this.localize = new W(this), this.boundary = document.body, this.name = "", this.value = "", this.variant = Z.Select, this.required = !1, this.selectedLabel = "", this.open = !1, r2(this, H), this.apiGetPagesAndLinks = this.apiGetPagesAndLinks.bind(this);
18017
+ super(), this.localize = new W(this), this.boundary = document.body, this.name = "", this.value = "", this.variant = Z.Select, this.required = !1, this.selectedLabel = "", this.open = !1, n2(this, H), this.apiGetPagesAndLinks = this.apiGetPagesAndLinks.bind(this);
18018
18018
  }
18019
18019
  async fetchSelectedPage() {
18020
18020
  if (!(!this.value || this.selectedLabel))
@@ -18042,7 +18042,7 @@ let K = class extends ee {
18042
18042
  start: n = 0
18043
18043
  }) {
18044
18044
  try {
18045
- const { data: t, hasMore: r } = await He({
18045
+ const { data: t, hasMore: r } = await Ue({
18046
18046
  parentId: e,
18047
18047
  searchTerm: a,
18048
18048
  start: n
@@ -18058,7 +18058,7 @@ let K = class extends ee {
18058
18058
  hasChildren: m.hasChildren,
18059
18059
  id: m.id,
18060
18060
  title: m.title,
18061
- url: _0(m.url)
18061
+ url: I0(m.url)
18062
18062
  })),
18063
18063
  hasMore: r
18064
18064
  };
@@ -18083,13 +18083,13 @@ let K = class extends ee {
18083
18083
  const { id: n, url: t } = a.dataset;
18084
18084
  this.variant === Z.Select ? this.emit("cx-content-builder-page-change", {
18085
18085
  detail: { id: n, url: t }
18086
- }) : Ge(this, H, { id: n, url: t });
18086
+ }) : Ke(this, H, { id: n, url: t });
18087
18087
  }
18088
18088
  handleRequestPageClick() {
18089
18089
  this.open = !0;
18090
18090
  }
18091
18091
  handleClear() {
18092
- this.value = "", this.selectedLabel = "", Ge(this, H, void 0), this.emit("cx-content-builder-page-delete");
18092
+ this.value = "", this.selectedLabel = "", Ke(this, H, void 0), this.emit("cx-content-builder-page-delete");
18093
18093
  }
18094
18094
  handleRequestClose(e) {
18095
18095
  e.stopPropagation(), this.open = !1;
@@ -18115,7 +18115,7 @@ let K = class extends ee {
18115
18115
  }
18116
18116
  };
18117
18117
  H = /* @__PURE__ */ new WeakMap();
18118
- K.styles = [ae, a2];
18118
+ K.styles = [ae, i2];
18119
18119
  K.dependencies = {
18120
18120
  "cx-button": ce,
18121
18121
  "cx-dialog": se,
@@ -18154,10 +18154,10 @@ V([
18154
18154
  K = V([
18155
18155
  ie("cx-page-picker")
18156
18156
  ], K);
18157
- const n2 = te`:host{display:block}.config-form{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:680px;color:var(--cx-color-neutral)}.config-form__button-group{width:100%;& cx-button{flex:1}}.config-form__dropdown{text-align:left}.config-form__button-group--active::part(base){background-color:var(--cx-color-neutral-200)}.config-form__help-text{display:block}.config-form__radio-card-image *{max-width:100%}.config-form__checkbox-group{--children-gap:var(--cx-spacing-x-small)}.config-form__checkbox-group-item{--item-padding:0;--selected-background-color:transparent}.config-form__label{--color:var(--cx-color-neutral-800)}.config-form__help-text{--color:var(--cx-color-neutral-600)}.config-form__dropdown-menu{--checked-icon-display:none}.config-form__select{--option-color:var(--cx-color-neutral-900);--option-font-weight:var(--cx-font-weight-medium);--option-selected-font-weight:var(--cx-font-weight-medium);--option-help-text-color:var(--cx-color-neutral-600);--option-selected-help-text-color:var(--cx-color-neutral-600)}.config-form__confirm-popover{--confirm-popover-dialog-width:fit-content;--confirm-button-background-color:var(--cx-color-danger-500);--cancel-button-background-color:var(--cx-color-neutral-100);--cancel-button-color:var(--cx-color-neutral-700)}.config-form__input__select-suffix{--cx-input-border-width:0;margin-inline-end:0}.config-form__input__select-suffix::part(combobox){width:10ch}.config-form__input__select-suffix::part(expand-icon){margin-inline-start:0}.config-form__input__divider-suffix{--spacing:0;margin-inline-end:0}.config-form__tab-group{--padding:0;--tab-group-nav-padding:0 var(--cx-spacing-large);--tab-group-top-gap:0}.config-form__tab-group::part(nav){background-color:var(--cx-color-neutral-0);z-index:1;position:sticky;top:0}cx-radio-group cx-radio{line-height:var(--cx-line-height-x-large)}`;
18158
- class m2 {
18157
+ const m2 = te`:host{display:block}.config-form{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:680px;color:var(--cx-color-neutral)}.config-form__button-group{width:100%;& cx-button{flex:1}}.config-form__dropdown{text-align:left}.config-form__button-group--active::part(base){background-color:var(--cx-color-neutral-200)}.config-form__help-text{display:block}.config-form__radio-card-image *{max-width:100%}.config-form__checkbox-group{--children-gap:var(--cx-spacing-x-small)}.config-form__checkbox-group-item{--item-padding:0;--selected-background-color:transparent}.config-form__label{--color:var(--cx-color-neutral-800)}.config-form__help-text{--color:var(--cx-color-neutral-600)}.config-form__dropdown-menu{--checked-icon-display:none}.config-form__select{--option-color:var(--cx-color-neutral-900);--option-font-weight:var(--cx-font-weight-medium);--option-selected-font-weight:var(--cx-font-weight-medium);--option-help-text-color:var(--cx-color-neutral-600);--option-selected-help-text-color:var(--cx-color-neutral-600)}.config-form__confirm-popover{--confirm-popover-dialog-width:fit-content;--confirm-button-background-color:var(--cx-color-danger-500);--cancel-button-background-color:var(--cx-color-neutral-100);--cancel-button-color:var(--cx-color-neutral-700)}.config-form__input__select-suffix{--cx-input-border-width:0;margin-inline-end:0}.config-form__input__select-suffix::part(combobox){width:10ch}.config-form__input__select-suffix::part(expand-icon){margin-inline-start:0}.config-form__input__divider-suffix{--spacing:0;margin-inline-end:0}.config-form__tab-group{--padding:0;--tab-group-nav-padding:0 var(--cx-spacing-large);--tab-group-top-gap:0}.config-form__tab-group::part(nav){background-color:var(--cx-color-neutral-0);z-index:1;position:sticky;top:0}cx-radio-group cx-radio{line-height:var(--cx-line-height-x-large)}`;
18158
+ class c2 {
18159
18159
  constructor(a) {
18160
- this.apiSearchAssets = k0, this.apiGetTeamSpaceFontFamily = l1, this.pendingGalleryPickerSaves = /* @__PURE__ */ new Set(), this.fontFamiliesCache = /* @__PURE__ */ new Map(), this.pendingFontFamilyFetches = /* @__PURE__ */ new Set(), this.typeSubtypeOptionsCache = /* @__PURE__ */ new Map(), this.pendingTypeSubtypeOptionsFetches = /* @__PURE__ */ new Set(), this.host = a, this.localize = new W(this.host);
18160
+ this.apiSearchAssets = p0, this.apiGetTeamSpaceFontFamily = C1, this.pendingGalleryPickerSaves = /* @__PURE__ */ new Set(), this.fontFamiliesCache = /* @__PURE__ */ new Map(), this.pendingFontFamilyFetches = /* @__PURE__ */ new Set(), this.typeSubtypeOptionsCache = /* @__PURE__ */ new Map(), this.pendingTypeSubtypeOptionsFetches = /* @__PURE__ */ new Set(), this.host = a, this.localize = new W(this.host);
18161
18161
  }
18162
18162
  hostConnected() {
18163
18163
  this.host.addController(this);
@@ -18182,21 +18182,22 @@ class m2 {
18182
18182
  t,
18183
18183
  qe,
18184
18184
  Oe,
18185
- p0
18185
+ Me,
18186
+ u0
18186
18187
  ],
18187
18188
  getPermanentAssetsPaths: !0,
18188
18189
  isSiteBuilder: !0,
18189
18190
  query: { recordId: [a] }
18190
18191
  });
18191
18192
  for (const m of i.items) {
18192
- const A = String(m[qe] ?? ""), d = r ? n1(A, String(m[Oe] ?? "")) : n, l = `path_${d}`;
18193
- if (!(d === "TRX") || !A || u0(A)) {
18193
+ const A = String(m[qe] ?? ""), d = r ? m1(A, String(m[Oe] ?? "")) : n, l = `path_${d}`;
18194
+ if (!(d === "TRX") || f0(String(m[Me] ?? ""), A)) {
18194
18195
  const h = m[l];
18195
- if (Me(h))
18196
+ if (Ne(h))
18196
18197
  return h.URI;
18197
18198
  }
18198
18199
  const o = m[t];
18199
- if (Me(o))
18200
+ if (Ne(o))
18200
18201
  return o.URI;
18201
18202
  }
18202
18203
  return "";
@@ -18308,7 +18309,7 @@ class m2 {
18308
18309
  [
18309
18310
  "bicolor-picker",
18310
18311
  () => {
18311
- const l = F0(String(t));
18312
+ const l = E0(String(t));
18312
18313
  return g`<cx-bicolor-picker value=${l} @cx-bicolor-picker-change=${async (s) => {
18313
18314
  const o = s.detail.value, h = ye(
18314
18315
  o[0],
@@ -18325,7 +18326,7 @@ class m2 {
18325
18326
  const [s, o, h] = c.detail.value, C = `${ye(s, o)} ${h}`;
18326
18327
  await i(C);
18327
18328
  };
18328
- return g`<cx-border-input-group value=${typeof t == "string" ? E0(t) : t} @cx-border-input-group-change=${l}></cx-border-input-group>`;
18329
+ return g`<cx-border-input-group value=${typeof t == "string" ? v0(t) : t} @cx-border-input-group-change=${l}></cx-border-input-group>`;
18329
18330
  }
18330
18331
  ],
18331
18332
  [
@@ -18337,7 +18338,7 @@ class m2 {
18337
18338
  const c = async () => {
18338
18339
  await i(String(l.value));
18339
18340
  };
18340
- return g`<cx-button class=${P0({
18341
+ return g`<cx-button class=${T0({
18341
18342
  "config-form__button-group--active": t === l.value
18342
18343
  })} variant="default" outline value=${l.value} @click=${c}>${l.name}
18343
18344
  ${v(
@@ -18662,7 +18663,7 @@ class m2 {
18662
18663
  return d.api ? g`<cx-dynamic-select auto-size-padding=${s.length > 0 ? 100 : 10} class="config-form__select" data-label=${d.label ?? ""} hoist label=${d.inputConfigs?.label ?? ""} max-options-visible="0" placement=${P(d.selectConfigs?.placement)} value=${t ?? ""} .api=${d.api} .columns=${s} .syncElement=${P(c)} ?auto-fallback-first-option=${d.selectConfigs?.autoFallbackFirstOption ?? !1} ?clearable=${d.clearable ?? !0} ?disabled=${r} ?free-width=${s.length > 0} ?multiple=${d.multiple ?? !1} ?required=${d.required ?? !1} ?use-search-term=${d.useSearchTerm ?? !1} @cx-change=${l}></cx-dynamic-select>` : g`<cx-select class="config-form__select" value=${t ?? ""} hoist label=${d.inputConfigs?.label ?? ""} ?clearable=${d.clearable ?? !0} ?disabled=${r} placement=${P(d.selectConfigs?.placement)} .syncElement=${P(c)} @cx-change=${l}>${N(
18663
18664
  d.options ?? [],
18664
18665
  (o) => o.value,
18665
- (o) => g`<cx-option value=${o.value} show-check check-placement=${K1.Right}>${o.name}
18666
+ (o) => g`<cx-option value=${o.value} show-check check-placement=${j1.Right}>${o.name}
18666
18667
  ${v(
18667
18668
  o.helpText,
18668
18669
  () => g`<cx-typography slot="help-text" variant="small">${o.helpText}</cx-typography>`
@@ -18677,7 +18678,7 @@ class m2 {
18677
18678
  const [s, o, h, C, x, b] = c.detail.value, k = x || b, E = b || x, S = `${[s, o, h, C].join(" ")} ${ye(k, E)}`;
18678
18679
  await i(S);
18679
18680
  };
18680
- return g`<cx-shadow-input-group value=${typeof t == "string" ? v0(t) : t} @cx-shadow-input-group-change=${l}></cx-shadow-input-group>`;
18681
+ return g`<cx-shadow-input-group value=${typeof t == "string" ? $0(t) : t} @cx-shadow-input-group-change=${l}></cx-shadow-input-group>`;
18681
18682
  }
18682
18683
  ],
18683
18684
  [
@@ -18831,7 +18832,7 @@ class m2 {
18831
18832
  familyKey: c,
18832
18833
  styleKey: s,
18833
18834
  weightKey: o
18834
- } = d.fontPickerConfigs, h = this.fontFamiliesCache.get(d.id), { familyValue: C, styleValue: x } = h ? C1({
18835
+ } = d.fontPickerConfigs, h = this.fontFamiliesCache.get(d.id), { familyValue: C, styleValue: x } = h ? y1({
18835
18836
  blockAttributes: this.host.blockStyles,
18836
18837
  keys: {
18837
18838
  familyKey: c,
@@ -18841,14 +18842,14 @@ class m2 {
18841
18842
  typefaces: h
18842
18843
  }) : {
18843
18844
  familyValue: String(
18844
- this.host.blockStyles[c] ?? m1
18845
+ this.host.blockStyles[c] ?? c1
18845
18846
  ),
18846
18847
  styleValue: ""
18847
18848
  };
18848
18849
  !h && !this.pendingFontFamilyFetches.has(d.id) && (this.pendingFontFamilyFetches.add(d.id), Promise.all([l(), this.apiGetTeamSpaceFontFamily()]).then(([k, E]) => {
18849
18850
  this.fontFamiliesCache.set(
18850
18851
  d.id,
18851
- y1(
18852
+ x1(
18852
18853
  k,
18853
18854
  E?.fontFamily ?? ""
18854
18855
  )
@@ -18858,7 +18859,7 @@ class m2 {
18858
18859
  this.pendingFontFamilyFetches.delete(d.id);
18859
18860
  }));
18860
18861
  const b = async (k) => {
18861
- const E = k.target, S = this.fontFamiliesCache.get(d.id) ?? [], p = b1({
18862
+ const E = k.target, S = this.fontFamiliesCache.get(d.id) ?? [], p = k1({
18862
18863
  clearDefaultFamily: !0,
18863
18864
  familyValue: E.familyValue,
18864
18865
  styleValue: E.styleValue,
@@ -18870,12 +18871,12 @@ class m2 {
18870
18871
  weight: p.weight
18871
18872
  });
18872
18873
  };
18873
- return g`<cx-font-picker family-value=${C} style-value=${x} layout=${x1.Labeled} ?required=${d.required ?? !1} .fontTypefaces=${h ?? []} @cx-font-picker-change=${b}></cx-font-picker>`;
18874
+ return g`<cx-font-picker family-value=${C} style-value=${x} layout=${b1.Labeled} ?required=${d.required ?? !1} .fontTypefaces=${h ?? []} @cx-font-picker-change=${b}></cx-font-picker>`;
18874
18875
  }
18875
18876
  ]
18876
18877
  ],
18877
18878
  () => {
18878
- const l = be(), c = be(), s = { unit: "%", value: "100" }, { unit: o, value: h } = typeof t == "string" ? I0(t) ?? s : s;
18879
+ const l = be(), c = be(), s = { unit: "%", value: "100" }, { unit: o, value: h } = typeof t == "string" ? P0(t) ?? s : s;
18879
18880
  let C = t, x, b = d.maskBlocks, k = o;
18880
18881
  const E = () => {
18881
18882
  if (d.inputConfigs?.validation) {
@@ -19034,7 +19035,7 @@ class m2 {
19034
19035
  }
19035
19036
  if (i.galleryPickerConfigs?.transformationRecordIdKey && (!o || c.length > 0)) {
19036
19037
  const C = c.find(
19037
- (x) => x.docType === i1.Image
19038
+ (x) => x.docType === t1.Image
19038
19039
  );
19039
19040
  await this.handleConfigChange(
19040
19041
  i.galleryPickerConfigs.transformationRecordIdKey,
@@ -19402,8 +19403,8 @@ class m2 {
19402
19403
  return r.length === 0 ? ue : g`<cx-typography variant="h5">${t}</cx-typography>${N(
19403
19404
  r,
19404
19405
  (i) => i.id,
19405
- (i) => i.controlType === "info-text" ? this.renderInfoText(i) : g`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${i.label}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${e1(this.host.sortedLanguages, (m) => {
19406
- const A = this.localize.languageName(m) || je.getName(m) || m;
19406
+ (i) => i.controlType === "info-text" ? this.renderInfoText(i) : g`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${i.label}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${a1(this.host.sortedLanguages, (m) => {
19407
+ const A = this.localize.languageName(m) || Ve.getName(m) || m;
19407
19408
  let d = "";
19408
19409
  i.id && (m === this.host.defaultLanguage ? d = this.host.blockAttributes[i.id] ?? "" : d = this.host.translatableControlValues[m]?.[i.id] ?? this.host.translatableControlValues[this.host.defaultLanguage]?.[i.id] ?? this.host.blockAttributes[i.id]);
19409
19410
  let l;
@@ -19503,14 +19504,14 @@ class m2 {
19503
19504
  return g`<cx-space direction="vertical" wrap="nowrap">${n}</cx-space>`;
19504
19505
  }
19505
19506
  }
19506
- var c2 = Object.defineProperty, d2 = Object.getOwnPropertyDescriptor, B = (e, a, n, t) => {
19507
- for (var r = t > 1 ? void 0 : t ? d2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
19507
+ var d2 = Object.defineProperty, s2 = Object.getOwnPropertyDescriptor, B = (e, a, n, t) => {
19508
+ for (var r = t > 1 ? void 0 : t ? s2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
19508
19509
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
19509
- return t && r && c2(a, n, r), r;
19510
+ return t && r && d2(a, n, r), r;
19510
19511
  };
19511
19512
  let f = class extends ee {
19512
19513
  constructor() {
19513
- super(...arguments), this.localize = new W(this), this.configFormController = new m2(this), this.loading = !1, this.mode = le.Template, this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en"], this.translatableControlValues = {}, this.defaultLanguage = "en", this.boundary = document.body, this.baseUrl = "", this.token = "", this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.translatableControls = [], this.blockName = "", this.name = "", this.description = "", this.showTemplateTab = !1, this.dialogTitle = "", this.skipShowCheck = !1, this.enableAssetFormatControls = !1, this.allowedFolders = [], this.isEditingTemplateSettings = !1, this.disableCloseConfigDialog = !1, this.isAfterShow = !1, this.sortedLanguages = [], this.formKey = 0;
19514
+ super(...arguments), this.localize = new W(this), this.configFormController = new c2(this), this.loading = !1, this.mode = le.Template, this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en"], this.translatableControlValues = {}, this.defaultLanguage = "en", this.boundary = document.body, this.baseUrl = "", this.token = "", this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.translatableControls = [], this.blockName = "", this.name = "", this.description = "", this.showTemplateTab = !1, this.dialogTitle = "", this.skipShowCheck = !1, this.enableAssetFormatControls = !1, this.allowedFolders = [], this.isEditingTemplateSettings = !1, this.disableCloseConfigDialog = !1, this.isAfterShow = !1, this.sortedLanguages = [], this.formKey = 0;
19514
19515
  }
19515
19516
  /**
19516
19517
  * Whether the template is editable.
@@ -19551,7 +19552,7 @@ let f = class extends ee {
19551
19552
  * @return {Record<string, string>} A record mapping trait IDs to tab names.
19552
19553
  */
19553
19554
  get tabMap() {
19554
- const e = this.traits.map((m) => m.name).filter(Boolean), a = O0(e, this.adhocProperties), n = this.traits.filter(
19555
+ const e = this.traits.map((m) => m.name).filter(Boolean), a = M0(e, this.adhocProperties), n = this.traits.filter(
19555
19556
  (m) => m.tab === "sidePanels"
19556
19557
  /* SidePanels */
19557
19558
  ).map((m) => m.name).filter(Boolean), t = this.traits.filter(
@@ -19586,7 +19587,7 @@ let f = class extends ee {
19586
19587
  e?.target !== this.dialog || e.detail.source === "overlay" || (this.handleClose(), this.isAfterShow = !1, this.disableCloseConfigDialog = !1);
19587
19588
  }
19588
19589
  handleRequestClose(e) {
19589
- e?.target === this.dialog && (this.disableCloseConfigDialog ? e.preventDefault() : c0(this.form) ? (e.preventDefault(), this.confirmPopover.show()) : this.hide());
19590
+ e?.target === this.dialog && (this.disableCloseConfigDialog ? e.preventDefault() : d0(this.form) ? (e.preventDefault(), this.confirmPopover.show()) : this.hide());
19590
19591
  }
19591
19592
  handleNameInputChange(e) {
19592
19593
  this.emit("cx-content-builder-form-field-change", {
@@ -19654,16 +19655,16 @@ let f = class extends ee {
19654
19655
  )}</cx-typography>${v(
19655
19656
  this.templateName,
19656
19657
  () => g`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.templateName}</cx-line-clamp></cx-typography>`
19657
- )}</cx-space>${g0(
19658
+ )}</cx-space>${l0(
19658
19659
  this.formKey,
19659
- g`<form id="config-form" @submit=${this.handleFormSubmit}>${q0(v(
19660
+ g`<form id="config-form" @submit=${this.handleFormSubmit}>${O0(v(
19660
19661
  this.isEditingTemplateSettings,
19661
19662
  () => v(
19662
19663
  this.isTemplateEditable,
19663
19664
  () => g`<cx-tab-group class="config-form__tab-group" placement="top"><cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel></cx-tab-group>`
19664
19665
  ),
19665
19666
  () => v(
19666
- !x0(this.traits) && this.tabs.length >= 1,
19667
+ !b0(this.traits) && this.tabs.length >= 1,
19667
19668
  () => g`<cx-tab-group class="config-form__tab-group" placement="top">${v(
19668
19669
  this.showTemplateTab,
19669
19670
  () => g`<cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel>`
@@ -19689,63 +19690,63 @@ let f = class extends ee {
19689
19690
  this.templateId,
19690
19691
  () => g`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`
19691
19692
  )}</cx-menu></cx-dropdown>`
19692
- )}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${fe.Both} buttons-direction=${a0.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.hide}><cx-typography variant="body2" slot="footer" class="confirm-popover__footer">${this.localize.term(
19693
+ )}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${fe.Both} buttons-direction=${i0.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.hide}><cx-typography variant="body2" slot="footer" class="confirm-popover__footer">${this.localize.term(
19693
19694
  "doYouWantToCloseThisDialogChangesWillBeDismissed"
19694
19695
  )}</cx-typography></cx-confirm-popover>`;
19695
19696
  }
19696
19697
  };
19697
- f.styles = [ae, n2, k1];
19698
+ f.styles = [ae, m2, p1];
19698
19699
  f.dependencies = {
19699
- "cx-asset-format-picker": E1,
19700
- "cx-asset-picker": Ve,
19701
- "cx-asset-transformation-dialog": F1,
19702
- "cx-bicolor-picker": Z1,
19703
- "cx-border-input-group": Q1,
19700
+ "cx-asset-format-picker": v1,
19701
+ "cx-asset-picker": He,
19702
+ "cx-asset-transformation-dialog": E1,
19703
+ "cx-bicolor-picker": Q1,
19704
+ "cx-border-input-group": e0,
19704
19705
  "cx-button": ce,
19705
- "cx-button-group": I1,
19706
- "cx-card": P1,
19707
- "cx-checkbox": Ue,
19706
+ "cx-button-group": P1,
19707
+ "cx-card": T1,
19708
+ "cx-checkbox": We,
19708
19709
  "cx-color-swatch-picker": I,
19709
- "cx-confirm-popover": e0,
19710
- "cx-corner-position-input-group": i0,
19711
- "cx-dam-custom-toolbar-buttons-editor": D1,
19710
+ "cx-confirm-popover": a0,
19711
+ "cx-corner-position-input-group": t0,
19712
+ "cx-dam-custom-toolbar-buttons-editor": F1,
19712
19713
  "cx-dialog": se,
19713
- "cx-divider": Je,
19714
- "cx-download-format-picker": B1,
19715
- "cx-dropdown": q1,
19716
- "cx-dynamic-select": Qe,
19714
+ "cx-divider": Ye,
19715
+ "cx-download-format-picker": D1,
19716
+ "cx-dropdown": O1,
19717
+ "cx-dynamic-select": e1,
19717
19718
  "cx-folder-picker": T,
19718
- "cx-font-picker": A1,
19719
+ "cx-font-picker": B1,
19719
19720
  "cx-gallery-picker": D,
19720
19721
  "cx-grid": $e,
19721
19722
  "cx-grid-item": we,
19722
- "cx-icon": O1,
19723
- "cx-icon-picker": f1,
19723
+ "cx-icon": M1,
19724
+ "cx-icon-picker": A1,
19724
19725
  "cx-input": oe,
19725
- "cx-line-clamp": M1,
19726
- "cx-list-editor": u1,
19727
- "cx-menu": N1,
19728
- "cx-menu-item": G1,
19729
- "cx-option": Ye,
19730
- "cx-padding-input-group": t0,
19726
+ "cx-line-clamp": N1,
19727
+ "cx-list-editor": f1,
19728
+ "cx-menu": G1,
19729
+ "cx-menu-item": K1,
19730
+ "cx-option": Xe,
19731
+ "cx-padding-input-group": r0,
19731
19732
  "cx-page-picker": K,
19732
- "cx-position-picker": r0,
19733
- "cx-radio": Xe,
19734
- "cx-radio-card": j1,
19735
- "cx-radio-group": Ze,
19733
+ "cx-position-picker": n0,
19734
+ "cx-radio": Ze,
19735
+ "cx-radio-card": V1,
19736
+ "cx-radio-group": Qe,
19736
19737
  "cx-select": Se,
19737
- "cx-shadow-input-group": n0,
19738
- "cx-size-input-group": m0,
19738
+ "cx-shadow-input-group": m0,
19739
+ "cx-size-input-group": c0,
19739
19740
  "cx-space": de,
19740
- "cx-switch": V1,
19741
- "cx-tab": H1,
19742
- "cx-tab-group": U1,
19743
- "cx-tab-panel": W1,
19744
- "cx-textarea": J1,
19745
- "cx-tooltip": Y1,
19746
- "cx-type-subtype-select": p1,
19741
+ "cx-switch": H1,
19742
+ "cx-tab": U1,
19743
+ "cx-tab-group": W1,
19744
+ "cx-tab-panel": J1,
19745
+ "cx-textarea": Y1,
19746
+ "cx-tooltip": X1,
19747
+ "cx-type-subtype-select": u1,
19747
19748
  "cx-typography": Q,
19748
- "cx-visually-hidden": X1
19749
+ "cx-visually-hidden": Z1
19749
19750
  };
19750
19751
  B([
19751
19752
  M(".config-form")
@@ -19876,15 +19877,15 @@ B([
19876
19877
  f = B([
19877
19878
  ie("cx-config-form")
19878
19879
  ], f);
19879
- const s2 = te`:host{display:block}.confirm-popover__footer{--color:var(--cx-color-danger)}.confirm-popover__footer::part(base){margin-top:var(--cx-spacing-small);display:block}`;
19880
- var o2 = Object.defineProperty, h2 = Object.getOwnPropertyDescriptor, $ = (e, a, n, t) => {
19881
- for (var r = t > 1 ? void 0 : t ? h2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
19880
+ const o2 = te`:host{display:block}.confirm-popover__footer{--color:var(--cx-color-danger)}.confirm-popover__footer::part(base){margin-top:var(--cx-spacing-small);display:block}`;
19881
+ var h2 = Object.defineProperty, g2 = Object.getOwnPropertyDescriptor, $ = (e, a, n, t) => {
19882
+ for (var r = t > 1 ? void 0 : t ? g2(a, n) : a, i = e.length - 1, m; i >= 0; i--)
19882
19883
  (m = e[i]) && (r = (t ? m(a, n, r) : m(r)) || r);
19883
- return t && r && o2(a, n, r), r;
19884
+ return t && r && h2(a, n, r), r;
19884
19885
  };
19885
19886
  let F = class extends ee {
19886
19887
  constructor() {
19887
- super(), this.localize = new W(this), this.configsController = new v1(this.localize), this.component = null, this.loading = !1, this.mode = le.Template, this.enableAssetFormatControls = !1, this.enableFontFamilyControls = !1, this.allowedFolders = [], this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en-us"], this.defaultLanguage = "en-us", this.translatableControlValues = [], this.boundary = document.body, this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.blockType = "", this.blockName = "", this.name = "", this.description = "", this.tab = "", this.isEditingTemplateSettings = !1, this.translatableControlValuesMap = {}, this.translatableControls = [], this.handleSave = this.handleSave.bind(this);
19888
+ super(), this.localize = new W(this), this.configsController = new $1(this.localize), this.component = null, this.loading = !1, this.mode = le.Template, this.enableAssetFormatControls = !1, this.enableFontFamilyControls = !1, this.allowedFolders = [], this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en-us"], this.defaultLanguage = "en-us", this.translatableControlValues = [], this.boundary = document.body, this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.blockType = "", this.blockName = "", this.name = "", this.description = "", this.tab = "", this.isEditingTemplateSettings = !1, this.translatableControlValuesMap = {}, this.translatableControls = [], this.handleSave = this.handleSave.bind(this);
19888
19889
  }
19889
19890
  /**
19890
19891
  * Whether the template is editable.
@@ -19932,9 +19933,9 @@ let F = class extends ee {
19932
19933
  enableFontFamilyControls: this.enableFontFamilyControls
19933
19934
  });
19934
19935
  this.blockType = e, this.blockName = this.component.getName(), this.blockAttributes = {
19935
- ...$1(this.component),
19936
- ...L0(this.translatableControlValuesMap[this.defaultLanguage], (n) => n === void 0)
19937
- }, this.blockProperties = w1(this.component), this.blockStyles = S1(this.component), this.traits = Array.isArray(a) ? a : [];
19936
+ ...w1(this.component),
19937
+ ...q0(this.translatableControlValuesMap[this.defaultLanguage], (n) => n === void 0)
19938
+ }, this.blockProperties = S1(this.component), this.blockStyles = _1(this.component), this.traits = Array.isArray(a) ? a : [];
19938
19939
  }
19939
19940
  handleSave(e) {
19940
19941
  const n = this.getFlattenTraits(this.traits).reduce(
@@ -19943,7 +19944,7 @@ let F = class extends ee {
19943
19944
  ), t = Object.entries(this.blockAttributes).reduce(
19944
19945
  (r, [i, m]) => {
19945
19946
  const A = n[i];
19946
- return _1.includes(i) || (A ? r[i] = m : typeof m == "boolean" && (r[i] = !1)), r;
19947
+ return I1.includes(i) || (A ? r[i] = m : typeof m == "boolean" && (r[i] = !1)), r;
19947
19948
  },
19948
19949
  {}
19949
19950
  );
@@ -19991,7 +19992,7 @@ let F = class extends ee {
19991
19992
  return g`<cx-config-form block-name=${this.blockName} default-language=${this.defaultLanguage} description=${this.description} name=${this.name} mode=${this.mode} template-name=${this.templateName} template-id=${this.templateId} ?enable-asset-format-controls=${this.enableAssetFormatControls} ?enable-font-family-controls=${this.enableFontFamilyControls} ?loading=${this.loading} .allowedFolders=${this.allowedFolders} .adhocProperties=${this.adhocProperties} .blockAttributes=${this.blockAttributes} .blockProperties=${this.blockProperties} .blockStyles=${this.blockStyles} .boundary=${this.boundary} .supportedLanguages=${this.supportedLanguages} .translatableControls=${this.translatableControls} .translatableControlValues=${this.translatableControlValuesMap} .traits=${this.traits} .onRequestAsset=${this.onRequestAsset} .onRequestDownloadFormat=${this.onRequestDownloadFormat} .onConfigureWorkflow=${this.onConfigureWorkflow} .onRequestAssetFormat=${this.onRequestAssetFormat} @cx-content-builder-translatable-value-change=${this.handleTranslatableValueChange} @cx-content-builder-form-change=${this.handleChange} @cx-content-builder-form-field-change=${this.handleFieldChange} @cx-content-builder-form-save=${this.handleSave}></cx-config-form>`;
19992
19993
  }
19993
19994
  };
19994
- F.styles = [ae, s2];
19995
+ F.styles = [ae, o2];
19995
19996
  F.dependencies = {
19996
19997
  "cx-config-form": f,
19997
19998
  "cx-typography": Q