@orangelogic/design-system 3.80.0 → 3.81.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 (55) hide show
  1. package/library/chunks/{asset-link-format.vF2ZaG1Y.js → asset-link-format.BCaHv6rQ.js} +387 -381
  2. package/library/chunks/{audio.OVvnRj2a.js → audio.Dr0Hus7H.js} +6 -3
  3. package/library/chunks/{block-width.BH7TR3eZ.js → block-width.DDBxasyy.js} +469 -445
  4. package/library/chunks/{color-swatch-group.CfYdaquw.js → color-swatch-group.D6W7Zrig.js} +45 -45
  5. package/library/chunks/{config-manager.CXYDqPVU.js → config-manager.CXUj_qfl.js} +12 -12
  6. package/library/chunks/{configs-controller.D7ZZytOj.js → configs-controller.C34CcFSA.js} +61 -61
  7. package/library/chunks/{document-viewer.6SnAxejc.js → document-viewer.BKdDZ9MG.js} +16 -7
  8. package/library/chunks/{file-on-demand.BMY6QNJY.js → file-on-demand.BAwB-Znv.js} +1 -1
  9. package/library/chunks/{image.CXQJO9if.js → image.wVxvwZxr.js} +74 -79
  10. package/library/chunks/{masonry.C9-z9R7j.js → masonry.D4DxZZ03.js} +1 -1
  11. package/library/chunks/{src.B1k7w53w.js → src.DoJoeNZB.js} +4 -4
  12. package/library/chunks/src.cBRbsOdC.js +720 -0
  13. package/library/chunks/{url.CZO_DV8Y.js → url.BCc06dE7.js} +15 -6
  14. package/library/chunks/{video.Bv7f2jDe.js → video.C9tEIck_.js} +1 -1
  15. package/library/components/asset-link-format.js +1 -1
  16. package/library/components/atoms.js +5 -5
  17. package/library/components/audio.js +1 -1
  18. package/library/components/color-swatch-group.js +1 -1
  19. package/library/components/document-viewer.js +1 -1
  20. package/library/components/file-on-demand.js +1 -1
  21. package/library/components/image.js +1 -1
  22. package/library/components/masonry.js +1 -1
  23. package/library/components/molecules.js +1 -1
  24. package/library/components/organisms.js +3 -3
  25. package/library/components/types.js +10287 -10185
  26. package/library/components/video.js +1 -1
  27. package/library/package.json +1 -1
  28. package/library/packages/atoms/src/components/audio/audio.d.ts +2 -0
  29. package/library/packages/atoms/src/components/document-viewer/document-viewer.d.ts +6 -0
  30. package/library/packages/atoms/src/components/image/image.d.ts +0 -3
  31. package/library/packages/events/src/events.d.ts +0 -4
  32. package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +14 -0
  33. package/library/packages/organisms/src/content-builder/blocks/button/button.d.ts +8 -0
  34. package/library/packages/organisms/src/content-builder/blocks/column/column.d.ts +5 -0
  35. package/library/packages/organisms/src/content-builder/blocks/column-group/column-group.d.ts +5 -0
  36. package/library/packages/organisms/src/content-builder/blocks/document-viewer/document-viewer.d.ts +8 -0
  37. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +7 -6
  38. package/library/packages/organisms/src/content-builder/blocks/timeline/timeline.d.ts +0 -2
  39. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +9 -0
  40. package/library/packages/organisms/src/content-builder/components/template-manager/template-manager.d.ts +11 -0
  41. package/library/packages/organisms/src/content-builder/content-builder.d.ts +17 -1
  42. package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +13 -4
  43. package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +1 -1
  44. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -1
  45. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -0
  46. package/library/packages/utils/src/asset-url-mode/asset-url-mode.d.ts +22 -0
  47. package/library/packages/utils/src/asset-url-mode/index.d.ts +1 -0
  48. package/library/packages/utils/src/url/url.d.ts +7 -0
  49. package/library/react-web-component.d.ts +21 -1
  50. package/library/utils.js +28 -706
  51. package/package.json +1 -1
  52. package/library/packages/events/src/cx-image-src-resolved.d.ts +0 -9
  53. package/library/packages/events/src/cx-timeline-data-resolved.d.ts +0 -9
  54. package/library/packages/events/src/cx-video-src-resolved.d.ts +0 -8
  55. package/library/packages/events/src/cx-video-thumbnail-resolved.d.ts +0 -8
@@ -7,17 +7,17 @@ import { n as g } from "./position-picker.dY_vgF_H.js";
7
7
  import { a as _, n as v, o as ee, s as y } from "./src.BJhIYoMP.js";
8
8
  import { a as te, i as ne, r as re } from "./tab-group.D5yMsNTe.js";
9
9
  import { t as ie } from "./parse.CDrJ-NY7.js";
10
- import { t as ae } from "./toString.r2ImdBrm.js";
11
- import { t as oe } from "./capitalize.BT_EavGy.js";
12
- import { a as se, i as ce, n as le, r as ue } from "./document-viewer.6SnAxejc.js";
13
- import { f as de, l as fe } from "./url.CZO_DV8Y.js";
14
- import { _ as pe, g as me, p as he, v as ge } from "./color.CIOzHtLK.js";
15
- import { _ as _e, g as ve, h as ye, m as be, p as xe, s as b } from "./responsive.L9Csz2w2.js";
16
- import { getFontFamilyOptionValue as Se, getTypefaceOptionValue as Ce, quoteFontFamily as we, unquoteFontFamily as Te } from "../utils.js";
10
+ import { B as ae, H as oe, W as se, q as ce } from "./src.cBRbsOdC.js";
11
+ import { t as le } from "./toString.r2ImdBrm.js";
12
+ import { t as ue } from "./capitalize.BT_EavGy.js";
13
+ import { a as de, i as fe, n as pe, r as me } from "./document-viewer.BKdDZ9MG.js";
14
+ import { l as he, p as ge } from "./url.BCc06dE7.js";
15
+ import { _ as _e, g as ve, p as ye, v as be } from "./color.CIOzHtLK.js";
16
+ import { _ as xe, g as Se, h as Ce, m as we, p as Te, s as b } from "./responsive.L9Csz2w2.js";
17
17
  import { n as Ee, r as De } from "./header.CfCULafs.js";
18
18
  import { d as Oe, f as x, l as S, o as C, s as ke } from "./endpoints.CqXqfyiN.js";
19
19
  import { n as Ae } from "./folder-select.BajqQkzA.js";
20
- import { a as w, i as T, o as E, r as D, s as je } from "./color-swatch-group.CfYdaquw.js";
20
+ import { a as w, i as T, o as E, r as D, s as je } from "./color-swatch-group.D6W7Zrig.js";
21
21
  import { n as Me } from "./isEmpty.D3QQduJ5.js";
22
22
  import { a as O } from "./cloneDeep.C6x5LNv3.js";
23
23
  //#region ../../packages/services/src/api/dashboard/dashboard.ts
@@ -270,7 +270,7 @@ var Re = Le({
270
270
  ſ: "s"
271
271
  }), ze = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Be = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
272
272
  function Ve(e) {
273
- return e = ae(e), e && e.replace(ze, Re).replace(Be, "");
273
+ return e = le(e), e && e.replace(ze, Re).replace(Be, "");
274
274
  }
275
275
  //#endregion
276
276
  //#region ../../node_modules/lodash-es/_asciiWords.js
@@ -318,7 +318,7 @@ function Dt(e) {
318
318
  //#endregion
319
319
  //#region ../../node_modules/lodash-es/words.js
320
320
  function Ot(e, t, n) {
321
- return e = ae(e), t = n ? void 0 : t, t === void 0 ? Ge(e) ? Dt(e) : Ue(e) : e.match(t) || [];
321
+ return e = le(e), t = n ? void 0 : t, t === void 0 ? Ge(e) ? Dt(e) : Ue(e) : e.match(t) || [];
322
322
  }
323
323
  //#endregion
324
324
  //#region ../../node_modules/lodash-es/_createCompounder.js
@@ -331,7 +331,7 @@ function At(e) {
331
331
  //#endregion
332
332
  //#region ../../node_modules/lodash-es/camelCase.js
333
333
  var jt = At(function(e, t, n) {
334
- return t = t.toLowerCase(), e + (n ? oe(t) : t);
334
+ return t = t.toLowerCase(), e + (n ? ue(t) : t);
335
335
  }), Mt = /* @__PURE__ */ function(e) {
336
336
  return e.Current = "current", e.Latest = "latest", e;
337
337
  }({}), Nt = /* @__PURE__ */ function(e) {
@@ -381,12 +381,12 @@ var jt = At(function(e, t, n) {
381
381
  function n() {}
382
382
  t.exports = n;
383
383
  })), Ht = /* @__PURE__ */ n(((e, t) => {
384
- var n = le(), r = Vt(), i = ue();
384
+ var n = pe(), r = Vt(), i = me();
385
385
  t.exports = n && 1 / i(new n([, -0]))[1] == 1 / 0 ? function(e) {
386
386
  return new n(e);
387
387
  } : r;
388
388
  })), Ut = /* @__PURE__ */ n(((e, t) => {
389
- var n = se(), r = zt(), i = Bt(), a = ce(), o = Ht(), s = ue(), c = 200;
389
+ var n = de(), r = zt(), i = Bt(), a = fe(), o = Ht(), s = me(), c = 200;
390
390
  function l(e, t, l) {
391
391
  var u = -1, d = r, f = e.length, p = !0, m = [], h = m;
392
392
  if (l) p = !1, d = i;
@@ -412,9 +412,9 @@ var jt = At(function(e, t, n) {
412
412
  }
413
413
  t.exports = r;
414
414
  })))(), 1), Gt = [
415
- ve.All,
416
- ve.CanReadAndWrite,
417
- ve.CanWrite
415
+ Se.All,
416
+ Se.CanReadAndWrite,
417
+ Se.CanWrite
418
418
  ], Kt = "Block", qt = (e) => e.startsWith(Kt) ? e : Kt + e, Jt = (e) => e.startsWith(Kt) ? e.substring(5) : e;
419
419
  async function Yt({ blockType: e, description: t, name: n, settings: r }) {
420
420
  try {
@@ -539,14 +539,14 @@ async function tn({ id: e }) {
539
539
  try {
540
540
  if (e) {
541
541
  let t = await Qt({ id: e });
542
- return t && Gt.some((e) => t.includes(e)) ? be.Template : be.Content;
542
+ return t && Gt.some((e) => t.includes(e)) ? we.Template : we.Content;
543
543
  }
544
544
  return (await x.request({
545
545
  method: "GET",
546
546
  url: C.GET_CAN_CREATE_BLOCK_TEMPLATE
547
- })).data.canCreate ? be.Template : be.Content;
547
+ })).data.canCreate ? we.Template : we.Content;
548
548
  } catch {
549
- return be.Content;
549
+ return we.Content;
550
550
  }
551
551
  }
552
552
  async function nn({ type: e }) {
@@ -1352,7 +1352,7 @@ async function Ln({ searchTerm: e = "" }) {
1352
1352
  return {
1353
1353
  data: (await In({ searchTerm: e })).map((e) => ({
1354
1354
  label: e.name,
1355
- value: de(e.absoluteURL) ?? ""
1355
+ value: ge(e.absoluteURL) ?? ""
1356
1356
  })),
1357
1357
  hasMore: !1
1358
1358
  };
@@ -1412,24 +1412,24 @@ async function zn() {
1412
1412
  //#endregion
1413
1413
  //#region ../../packages/organisms/src/content-builder/content-builder.utils.ts
1414
1414
  function Bn(e, t, n) {
1415
- return e.value === "space-default" ? n ? we(t?.value ?? n) : _e : we(t?.value ?? e.typeface);
1415
+ return e.value === "space-default" ? n ? se(t?.value ?? n) : xe : se(t?.value ?? e.typeface);
1416
1416
  }
1417
1417
  function Vn(e, t) {
1418
- return e.find((e) => e.typeface === t || e.value === t || Ce(e) === t || e.families.some((e) => e.value === t));
1418
+ return e.find((e) => e.typeface === t || e.value === t || oe(e) === t || e.families.some((e) => e.value === t));
1419
1419
  }
1420
1420
  function Hn(e, t, n) {
1421
- return e ? e.families.find((e) => String(e.fontStyle ?? "") === t && String(e.fontWeight ?? "") === n) || e.families.find((e) => Se(e) === t || e.value === t) : void 0;
1421
+ return e ? e.families.find((e) => String(e.fontStyle ?? "") === t && String(e.fontWeight ?? "") === n) || e.families.find((e) => ae(e) === t || e.value === t) : void 0;
1422
1422
  }
1423
1423
  function Un(e, t) {
1424
1424
  return {
1425
- family: Te(String(e[t.familyKey] ?? "")),
1425
+ family: ce(String(e[t.familyKey] ?? "")),
1426
1426
  style: String(e[t.styleKey] ?? ""),
1427
1427
  weight: String(t.weightKey ? e[t.weightKey] ?? "" : "")
1428
1428
  };
1429
1429
  }
1430
1430
  var Wn = /^(\/(?![/\\])|\.{1,2}\/|[#?])\S*$/;
1431
1431
  function Gn(e) {
1432
- return Wn.test(e) || fe(e);
1432
+ return Wn.test(e) || he(e);
1433
1433
  }
1434
1434
  function Kn(e) {
1435
1435
  return `cls-${e}`;
@@ -1452,14 +1452,14 @@ function Xn(e, t) {
1452
1452
  } : e);
1453
1453
  }
1454
1454
  function Zn({ blockAttributes: e, keys: t, typefaces: n }) {
1455
- let r = Un(e, t), i = n.some((e) => e.value === "inherited-font") ? ye : _e, a = Vn(n, r.family) ?? (r.family ? void 0 : n.find((e) => e.value === i)), o = Hn(a, r.style, r.weight);
1455
+ let r = Un(e, t), i = n.some((e) => e.value === "inherited-font") ? Ce : xe, a = Vn(n, r.family) ?? (r.family ? void 0 : n.find((e) => e.value === i)), o = Hn(a, r.style, r.weight);
1456
1456
  return {
1457
- familyValue: a ? Ce(a) : r.family,
1458
- styleValue: a && o ? Se(o) : r.style
1457
+ familyValue: a ? oe(a) : r.family,
1458
+ styleValue: a && o ? ae(o) : r.style
1459
1459
  };
1460
1460
  }
1461
1461
  function Qn({ clearDefaultFamily: e = !1, familyValue: t, spaceFontFamily: n, styleValue: r, typefaces: i }) {
1462
- let a = t === ye, o = i.find((e) => Ce(e) === t), s = (o?.families ?? []).find((e) => Se(e) === r), c = o?.value === _e, l = a || e && c && !n, u = t;
1462
+ let a = t === Ce, o = i.find((e) => oe(e) === t), s = (o?.families ?? []).find((e) => ae(e) === r), c = o?.value === xe, l = a || e && c && !n, u = t;
1463
1463
  l ? u = "" : o && (u = Bn(o, s, n));
1464
1464
  let d = String(s?.fontStyle ?? ""), f = s?.fontWeight === void 0 ? "" : String(s.fontWeight);
1465
1465
  return {
@@ -1591,8 +1591,8 @@ var B = class {
1591
1591
  iconField: "collapse-icon",
1592
1592
  iconWidthField: "--collapse-icon-width"
1593
1593
  }
1594
- ], V = (e) => !!e.customStyle, or = (e) => {
1595
- let t = [
1594
+ ], V = (e) => !!e.customStyle, or = (e, t) => {
1595
+ let n = [
1596
1596
  {
1597
1597
  configOrder: 1,
1598
1598
  field: "label",
@@ -1619,7 +1619,7 @@ var B = class {
1619
1619
  show: V,
1620
1620
  title: e.term("background")
1621
1621
  },
1622
- {
1622
+ ...t ? [{
1623
1623
  assetTransformationConfigs: {
1624
1624
  assetIdKey: "backgroundRecordId",
1625
1625
  formatKey: "backgroundFormat",
@@ -1632,7 +1632,7 @@ var B = class {
1632
1632
  hidden: !0,
1633
1633
  show: (e) => V(e) && !!e.backgroundRecordId,
1634
1634
  title: e.term("backgroundFormat")
1635
- },
1635
+ }] : [],
1636
1636
  {
1637
1637
  configOrder: 5,
1638
1638
  controlType: "radio-group",
@@ -1658,21 +1658,21 @@ var B = class {
1658
1658
  show: V,
1659
1659
  title: e.term("cropFocus")
1660
1660
  }
1661
- ], n = ar.flatMap((n, r) => {
1662
- let i = t.length + 1 + r * 6;
1661
+ ], r = ar.flatMap((t, r) => {
1662
+ let i = n.length + 1 + r * 6;
1663
1663
  return [
1664
1664
  {
1665
1665
  configOrder: i,
1666
1666
  controlType: "group-heading",
1667
- field: n.headingField,
1667
+ field: t.headingField,
1668
1668
  hidden: !0,
1669
1669
  show: V,
1670
- title: e.term(n.headingTerm)
1670
+ title: e.term(t.headingTerm)
1671
1671
  },
1672
1672
  {
1673
1673
  configOrder: i + 1,
1674
1674
  controlType: "bicolor-picker",
1675
- field: n.backgroundColorField,
1675
+ field: t.backgroundColorField,
1676
1676
  hidden: !0,
1677
1677
  show: V,
1678
1678
  title: e.term("backgroundColor")
@@ -1680,7 +1680,7 @@ var B = class {
1680
1680
  {
1681
1681
  configOrder: i + 2,
1682
1682
  controlType: "bicolor-picker",
1683
- field: n.colorField,
1683
+ field: t.colorField,
1684
1684
  hidden: !0,
1685
1685
  show: V,
1686
1686
  title: e.term("textAndIconsColor")
@@ -1688,7 +1688,7 @@ var B = class {
1688
1688
  {
1689
1689
  configOrder: i + 3,
1690
1690
  controlType: "border-input-group",
1691
- field: n.borderField,
1691
+ field: t.borderField,
1692
1692
  hidden: !0,
1693
1693
  show: V,
1694
1694
  title: e.term("border")
@@ -1696,7 +1696,7 @@ var B = class {
1696
1696
  {
1697
1697
  configOrder: i + 4,
1698
1698
  controlType: "icon-picker",
1699
- field: n.iconField,
1699
+ field: t.iconField,
1700
1700
  hidden: !0,
1701
1701
  show: V,
1702
1702
  title: e.term("icon")
@@ -1704,7 +1704,7 @@ var B = class {
1704
1704
  {
1705
1705
  configOrder: i + 5,
1706
1706
  controlType: "input",
1707
- field: n.iconWidthField,
1707
+ field: t.iconWidthField,
1708
1708
  hidden: !0,
1709
1709
  ...R,
1710
1710
  show: V,
@@ -1712,10 +1712,10 @@ var B = class {
1712
1712
  }
1713
1713
  ];
1714
1714
  });
1715
- return [...t, ...n];
1715
+ return [...n, ...r];
1716
1716
  }, sr = {
1717
1717
  configs: (e, t = {}) => {
1718
- let n = new B(e), { enableFontFamilyControls: r = !1 } = t;
1718
+ let n = new B(e), { enableAssetFormatControls: r = !1, enableFontFamilyControls: i = !1 } = t;
1719
1719
  return [
1720
1720
  ...[
1721
1721
  "data-content-width-percent",
@@ -1742,7 +1742,7 @@ var B = class {
1742
1742
  listEditorConfigs: {
1743
1743
  addDialogLabel: e.term("addSection"),
1744
1744
  addItemText: e.term("addSection"),
1745
- columns: or(e),
1745
+ columns: or(e, r),
1746
1746
  displayField: "label",
1747
1747
  editDialogLabel: e.term("editSection"),
1748
1748
  noHeader: !0,
@@ -1864,7 +1864,7 @@ var B = class {
1864
1864
  id: "--header-border-radius",
1865
1865
  name: "header-border-radius"
1866
1866
  },
1867
- ...r ? [{
1867
+ ...i ? [{
1868
1868
  ...n.getStyleControl("--font-size"),
1869
1869
  id: "--header-font-size",
1870
1870
  label: e.term("fontSize"),
@@ -2599,7 +2599,7 @@ var B = class {
2599
2599
  controlType: "select",
2600
2600
  helpText: (t) => {
2601
2601
  let n = t["card-type"];
2602
- return h(n) ? e.term(`cardTypeHelpText${oe(n)}`) : "";
2602
+ return h(n) ? e.term(`cardTypeHelpText${ue(n)}`) : "";
2603
2603
  },
2604
2604
  id: "card-type",
2605
2605
  label: e.term("cardType"),
@@ -2934,7 +2934,7 @@ var B = class {
2934
2934
  controlType: "gallery-picker",
2935
2935
  direction: "vertical",
2936
2936
  galleryPickerConfigs: {
2937
- dialog: xe.Carousel,
2937
+ dialog: Te.Carousel,
2938
2938
  ...r ? {
2939
2939
  formatKey: "format",
2940
2940
  manualFormatKey: "manual-format",
@@ -3029,7 +3029,7 @@ var B = class {
3029
3029
  ...n.getStyleControl("--border"),
3030
3030
  callback: ({ record: e, value: t }) => {
3031
3031
  if (typeof t != "string") return e;
3032
- let n = he(t);
3032
+ let n = ye(t);
3033
3033
  if (!n) return e;
3034
3034
  let r = n.split(" ")[2];
3035
3035
  return r ? {
@@ -3695,14 +3695,14 @@ var B = class {
3695
3695
  }, fr = r`<svg width="180" height="67" viewBox="0 0 188 70" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="188" height="70" rx="6" fill="#3A80F7"/><rect opacity="0.5" width="188" height="70" fill="white"/><rect opacity="0.5" x="9.16211" y="11" width="19.343" height="13" rx="2" fill="white"/><rect opacity="0.5" x="30.541" y="11" width="37.6679" height="13" rx="2" fill="white"/><rect opacity="0.5" x="70.2461" y="11" width="68.2094" height="13" rx="2" fill="white"/><rect opacity="0.5" x="140.49" y="11" width="37.6679" height="13" rx="2" fill="white"/><rect opacity="0.5" x="9.16211" y="28" width="19.343" height="13" rx="2" fill="white"/><rect opacity="0.5" x="30.541" y="28" width="37.6679" height="13" rx="2" fill="white"/><rect opacity="0.5" x="70.2461" y="28" width="68.2094" height="13" rx="2" fill="white"/><rect opacity="0.5" x="140.49" y="28" width="37.6679" height="13" rx="2" fill="white"/><rect opacity="0.5" x="9.16211" y="45" width="19.343" height="13" rx="2" fill="white"/><rect opacity="0.5" x="30.541" y="45" width="37.6679" height="13" rx="2" fill="white"/><rect opacity="0.5" x="70.2461" y="45" width="68.2094" height="13" rx="2" fill="white"/><rect opacity="0.5" x="140.49" y="45" width="37.6679" height="13" rx="2" fill="white"/></svg>`, pr = r`<svg xmlns="http://www.w3.org/2000/svg" width="180" height="67" viewBox="0 0 188 70" fill="none" aria-hidden="true"><rect width="188" height="70" rx="6" fill="#3A80F7"/><rect opacity="0.5" width="188" height="70" fill="white"/><rect opacity="0.5" x="30" y="8" width="40" height="24" rx="4" fill="white"/><rect opacity="0.5" x="30" y="36" width="40" height="26" rx="4" fill="white"/><rect opacity="0.5" x="74" y="8" width="38" height="24" rx="4" fill="white"/><rect opacity="0.5" x="74" y="36" width="38" height="26" rx="4" fill="white"/><rect opacity="0.5" x="116" y="8" width="42" height="24" rx="4" fill="white"/><rect opacity="0.5" x="116" y="36" width="42" height="26" rx="4" fill="white"/></svg>`, mr = r`<svg xmlns="http://www.w3.org/2000/svg" width="180" height="68" viewBox="0 0 185 70" fill="none" aria-hidden="true"><rect width="184.667" height="70" rx="6" fill="#3A80F7"/><rect opacity="0.5" width="184.667" height="70" fill="white"/><rect opacity="0.5" x="24.668" y="12" width="46" height="46" rx="23" fill="white"/><rect opacity="0.5" x="54.668" y="12" width="46" height="46" rx="23" fill="white"/><rect opacity="0.5" x="84.668" y="12" width="46" height="46" rx="23" fill="white"/><rect opacity="0.5" x="114.668" y="12" width="46" height="46" rx="23" fill="white"/></svg>`, hr = {
3696
3696
  "can-copy": !0,
3697
3697
  "can-custom-shadow-and-border-radius": !1,
3698
- "code-alignment": me.SameLine,
3698
+ "code-alignment": ve.SameLine,
3699
3699
  "code-column-alignment": D.Left,
3700
3700
  "code-column-constraints": !1,
3701
3701
  "code-column-max-width": "",
3702
3702
  "code-column-min-width": "",
3703
3703
  "code-column-width": "",
3704
3704
  "code-column-width-mode": T.HugContents,
3705
- "code-separator": pe.Comma,
3705
+ "code-separator": _e.Comma,
3706
3706
  "custom-columns": "[]",
3707
3707
  data: JSON.stringify([{
3708
3708
  cmyk: "0, 9, 16, 82",
@@ -3723,7 +3723,7 @@ var B = class {
3723
3723
  }]),
3724
3724
  "full-bleed": !1,
3725
3725
  "gradient-effect": !1,
3726
- "hex-format": ge.LeadingHash,
3726
+ "hex-format": be.LeadingHash,
3727
3727
  "max-col": "3",
3728
3728
  "multi-language": !1,
3729
3729
  "name-column-alignment": D.Left,
@@ -4496,10 +4496,10 @@ var B = class {
4496
4496
  name: "code-alignment",
4497
4497
  options: [{
4498
4498
  name: e.term("sameLine"),
4499
- value: me.SameLine
4499
+ value: ve.SameLine
4500
4500
  }, {
4501
4501
  name: e.term("separateLine"),
4502
- value: me.SeparateLine
4502
+ value: ve.SeparateLine
4503
4503
  }],
4504
4504
  radioGroupConfigs: { horizontal: !0 },
4505
4505
  show: (e) => !o(e),
@@ -4513,10 +4513,10 @@ var B = class {
4513
4513
  name: "code-separator",
4514
4514
  options: [{
4515
4515
  name: e.term("commaSeparated"),
4516
- value: pe.Comma
4516
+ value: _e.Comma
4517
4517
  }, {
4518
4518
  name: e.term("slashSeparated"),
4519
- value: pe.Slash
4519
+ value: _e.Slash
4520
4520
  }],
4521
4521
  type: "attribute"
4522
4522
  },
@@ -4529,15 +4529,15 @@ var B = class {
4529
4529
  options: [
4530
4530
  {
4531
4531
  name: e.term("leadingHash"),
4532
- value: ge.LeadingHash
4532
+ value: be.LeadingHash
4533
4533
  },
4534
4534
  {
4535
4535
  name: e.term("leadingHex"),
4536
- value: ge.LeadingHex
4536
+ value: be.LeadingHex
4537
4537
  },
4538
4538
  {
4539
4539
  name: e.term("codeOnly"),
4540
- value: ge.None
4540
+ value: be.None
4541
4541
  }
4542
4542
  ],
4543
4543
  type: "attribute"
@@ -6894,7 +6894,7 @@ var kr = {
6894
6894
  controlType: "select",
6895
6895
  helpText: (t) => {
6896
6896
  let n = t["card-type"];
6897
- return h(n) ? e.term(`cardTypeHelpText${oe(n)}`) : "";
6897
+ return h(n) ? e.term(`cardTypeHelpText${ue(n)}`) : "";
6898
6898
  },
6899
6899
  id: "card-type",
6900
6900
  label: e.term("cardType"),
@@ -7181,7 +7181,7 @@ var kr = {
7181
7181
  controlType: "gallery-picker",
7182
7182
  direction: "vertical",
7183
7183
  galleryPickerConfigs: {
7184
- dialog: xe.Gallery,
7184
+ dialog: Te.Gallery,
7185
7185
  ...r ? {
7186
7186
  formatKey: "format",
7187
7187
  manualFormatKey: "manual-format",
@@ -23,13 +23,13 @@ import { t as input_default } from "./input.AS0kZ6ks.js";
23
23
  import { t as menu_default } from "./menu.DqKFF1tH.js";
24
24
  import { t as menu_item_default } from "./menu-item.Bi9zjGsW.js";
25
25
  import { t as space_default } from "./space.Dd8jezXK.js";
26
+ import { J as fetchCortexApi } from "./src.cBRbsOdC.js";
26
27
  import { t as drawer_default } from "./drawer.CqpMBED_.js";
27
28
  import { t as progress_bar_default } from "./progress-bar.BSTyftIm.js";
28
- import { fetchCortexApi } from "../utils.js";
29
29
  import { a as require_react, n as w, r as require_client, t as require_jsx_runtime } from "./jsx-runtime.BqxT1jD6.js";
30
30
  import { t as require___vite_browser_external } from "./__vite-browser-external.CMLby1wp.js";
31
31
  import { i as _extends, r as _assertThisInitialized, t as _inheritsLoose } from "./inheritsLoose.CmL1ZoPA.js";
32
- import { t as image_default } from "./image.CXQJO9if.js";
32
+ import { t as image_default } from "./image.wVxvwZxr.js";
33
33
  //#region ../../packages/types/src/book-reader.ts
34
34
  var BookReaderMode$1 = /* @__PURE__ */ function(t) {
35
35
  return t.Image = "Image", t.Pdf = "Pdf", t;
@@ -22321,17 +22321,23 @@ var book_reader_default = CxBookReader, document_viewer_styles_default = i`:host
22321
22321
  document_viewer_styles_default
22322
22322
  ];
22323
22323
  static #r = this.SUPPORTED_EXTENSIONS = [".pdf", ".pptx"];
22324
+ get documentSource() {
22325
+ return this.src;
22326
+ }
22327
+ get representativeSource() {
22328
+ return this.representative;
22329
+ }
22324
22330
  get isPptx() {
22325
22331
  return this.extension.toLowerCase() === ".pptx";
22326
22332
  }
22327
22333
  get isPdf() {
22328
- return this.isExtensionSupported && (this.isPptx ? !!this.identifier : !!this.src);
22334
+ return this.isExtensionSupported && (this.isPptx ? !!this.identifier : !!this.documentSource);
22329
22335
  }
22330
22336
  get isExtensionSupported() {
22331
22337
  return _CxDocumentViewer.SUPPORTED_EXTENSIONS.includes(this.extension.toLowerCase());
22332
22338
  }
22333
22339
  get showExtensionFallback() {
22334
- return !this.isPdf && !this.representative && !this.isExtensionSupported && !!this.extension;
22340
+ return !this.isPdf && !this.representativeSource && !this.isExtensionSupported && !!this.extension;
22335
22341
  }
22336
22342
  willUpdate(t) {
22337
22343
  super.willUpdate(t), (t.has("src") || t.has("representative") || t.has("identifier")) && (this.hasImageError = !1);
@@ -22346,8 +22352,11 @@ var book_reader_default = CxBookReader, document_viewer_styles_default = i`:host
22346
22352
  handleImageError() {
22347
22353
  this.hasImageError = !0;
22348
22354
  }
22355
+ resetImageError() {
22356
+ this.hasImageError = !1;
22357
+ }
22349
22358
  renderPdfViewer() {
22350
- let t = this.isPptx ? `/API/Download/v1_0/GetOriginalLimited?Identifier=${this.identifier}&SourceAction=API_VIEW_DETAILS_TRX&UsePreviewPdf=True` : this.src;
22359
+ let t = this.isPptx ? `/API/Download/v1_0/GetOriginalLimited?Identifier=${this.identifier}&SourceAction=API_VIEW_DETAILS_TRX&UsePreviewPdf=True` : this.documentSource;
22351
22360
  return x`<cx-book-reader part="book-reader" class="document-viewer__book-reader" source-url=${t} book-name=${this.name} book-reader-mode=${BookReaderMode$1.Pdf} role="group" aria-label=${this.name}></cx-book-reader>`;
22352
22361
  }
22353
22362
  renderExtensionFallback() {
@@ -22355,11 +22364,11 @@ var book_reader_default = CxBookReader, document_viewer_styles_default = i`:host
22355
22364
  return x`<div class="document-viewer__extension-fallback"><div class="document-viewer__file-icon"><cx-typography class="document-viewer__extension-label">${t}</cx-typography></div></div>`;
22356
22365
  }
22357
22366
  renderRepresentativeImage() {
22358
- let t = this.isPdf, a = t ? "" : this.representative;
22367
+ let t = this.isPdf, a = t ? "" : this.representativeSource;
22359
22368
  return !t && !a ? this.showExtensionFallback ? this.renderExtensionFallback() : E : this.hasImageError ? x`<div class="document-viewer__broken"><cx-icon name="hide_image"></cx-icon></div>` : x`<cx-image part="image" class="document-viewer__image" src=${a} alt=${this.name} block object-fit=${ObjectFit.Cover} no-crossorigin @cx-error=${this.handleImageError}></cx-image>`;
22360
22369
  }
22361
22370
  render() {
22362
- let t = this.isPdf, a = t ? "" : this.representative, o = this.showExtensionFallback;
22371
+ let t = this.isPdf, a = t ? "" : this.representativeSource, o = this.showExtensionFallback;
22363
22372
  return x`<div part="base" class=${e({
22364
22373
  "document-viewer": !0,
22365
22374
  "document-viewer--empty": !t && !a && !o,
@@ -30,7 +30,7 @@ import { t as ue } from "./tab-panel.BxeoKuSv.js";
30
30
  import { t as E } from "./dialog.Cagz5vxR.js";
31
31
  import { t as de } from "./divider.CqSNZCU8.js";
32
32
  import { t as fe } from "./progress-bar.BSTyftIm.js";
33
- import { o as D, u as O } from "./url.CZO_DV8Y.js";
33
+ import { o as D, u as O } from "./url.BCc06dE7.js";
34
34
  import k from "../components/format-bytes.js";
35
35
  import { t as pe } from "./relative-time.DZ5rhLwg.js";
36
36
  import { a as A, i as me, n as he, t as j } from "./tree.BP9r-4UR.js";