@orangelogic/design-system 2.79.0 → 2.81.0-ci.1

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 (62) hide show
  1. package/library/chunks/{asset.DWZ2Lzb6.js → asset.CVuNAhz3.js} +1 -1
  2. package/library/chunks/{button.B-ktz-w4.js → button.KaZ7h26c.js} +1 -1
  3. package/library/chunks/{color-swatch-group.DvllHUil.js → color-swatch-group.DJIS429Z.js} +1 -1
  4. package/library/chunks/{confirm-popover.BbHneK19.js → confirm-popover.DO0gfilx.js} +1 -1
  5. package/library/chunks/{dom.BQVKDNd8.js → dom.Dd4Wh-Mt.js} +1 -1
  6. package/library/chunks/{endpoints.B7lcoc1N.js → endpoints.BpAhLyZw.js} +126 -117
  7. package/library/chunks/{file-on-demand.D_Mia7M9.js → file-on-demand.C1FsJcvR.js} +4 -4
  8. package/library/chunks/folder-select.C0lq8nkf.js +775 -0
  9. package/library/chunks/{form.DgwYWi0O.js → form.Bi8x0jbW.js} +1 -1
  10. package/library/chunks/{index.Bx0otwQo.js → index.DOQMQFEd.js} +3 -3
  11. package/library/chunks/{list-editor.DNa6ROgr.js → list-editor.DeiZa2_X.js} +4 -4
  12. package/library/chunks/{pagination.BiRyMwhM.js → pagination.BhTABU__.js} +1 -1
  13. package/library/chunks/string.B_mXTq0K.js +178 -0
  14. package/library/chunks/{tab-group.9HbDE1AF.js → tab-group.B2t3Ipa3.js} +2 -2
  15. package/library/chunks/{table.B8LpbiGE.js → table.DGQVKi_0.js} +256 -241
  16. package/library/components/asset-link-format.js +3 -3
  17. package/library/components/atoms.js +4 -4
  18. package/library/components/button.js +2 -2
  19. package/library/components/checkbox.js +1 -1
  20. package/library/components/color-picker.js +2 -2
  21. package/library/components/color-swatch-group.js +2 -2
  22. package/library/components/confirm-popover.js +2 -2
  23. package/library/components/dynamic-select.js +1 -1
  24. package/library/components/element-clamp.js +1 -1
  25. package/library/components/file-on-demand.js +5 -5
  26. package/library/components/folder-select.js +5 -3
  27. package/library/components/input.js +1 -1
  28. package/library/components/line-clamp.js +1 -1
  29. package/library/components/list-editor.js +3 -3
  30. package/library/components/menu-item.js +1 -1
  31. package/library/components/molecules.js +3 -3
  32. package/library/components/organisms.js +2 -2
  33. package/library/components/pagination.js +2 -2
  34. package/library/components/radio-group.js +1 -1
  35. package/library/components/range.js +1 -1
  36. package/library/components/select.js +1 -1
  37. package/library/components/share-option-list.js +1 -1
  38. package/library/components/switch.js +1 -1
  39. package/library/components/tab-group.js +3 -3
  40. package/library/components/table.js +3 -3
  41. package/library/components/textarea.js +1 -1
  42. package/library/components/timecode.js +1 -1
  43. package/library/components/types.js +18221 -18136
  44. package/library/package.json +1 -1
  45. package/library/packages/atoms/src/components/table/table.d.ts +2 -6
  46. package/library/packages/events/src/cx-unauthorized.d.ts +10 -0
  47. package/library/packages/events/src/events.d.ts +1 -0
  48. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +26 -0
  49. package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +46 -0
  50. package/library/packages/molecules/src/folder-select/folder-select.d.ts +25 -0
  51. package/library/packages/molecules/src/storybook/storybook.d.ts +60 -24
  52. package/library/packages/organisms/src/content-builder/components/folder-picker/folder-picker.d.ts +6 -0
  53. package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
  54. package/library/packages/services/src/api/asset/asset.types.d.ts +1 -0
  55. package/library/packages/types/src/storybook.d.ts +19 -0
  56. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -1
  57. package/library/packages/utils/src/string/string.d.ts +32 -0
  58. package/library/react-web-component.d.ts +7 -7
  59. package/library/utils.js +58 -55
  60. package/package.json +1 -1
  61. package/library/chunks/folder-select.DOsefkAC.js +0 -638
  62. package/library/chunks/string.B_rEG27K.js +0 -160
@@ -1,4 +1,4 @@
1
- import { h as i, A as T, a as M } from "./endpoints.B7lcoc1N.js";
1
+ import { h as i, A as T, a as M } from "./endpoints.BpAhLyZw.js";
2
2
  import { f as P, t as L } from "./toast.BXNbwZV8.js";
3
3
  const C = "CoreField.LargeSizePreview", h = "CoreField.DocType", b = "Document.Title", j = "Document.CaptionLong", S = "Document.FileExtension", O = "CoreField.FileSize", N = "CoreField.Identifier", g = "CoreField.Keywords", R = "CoreField.MaxHeight", G = "CoreField.MaxWidth", x = "Document.RecordID", U = "CoreField.DocSubType", w = "CoreField.TitleWithFallback", I = "CoreField.OriginalFileName", F = "CoreField.UpdatedFileName", E = "CoreField.OriginalPreview";
4
4
  function W(o) {
@@ -1,7 +1,7 @@
1
1
  import { n as i, C as v } from "./lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as g } from "./component.styles.CRO4Odto.js";
3
3
  import { c as C } from "./custom-element.L4WJXn1j.js";
4
- import { F as x, v as w } from "./form.DgwYWi0O.js";
4
+ import { F as x, v as w } from "./form.Bi8x0jbW.js";
5
5
  import { L as $ } from "./i18n.BUW7B9hr.js";
6
6
  import { H as S, g as O } from "./slot.j5oheLJC.js";
7
7
  import { w as m } from "./watch.BCJD77bD.js";
@@ -1,5 +1,5 @@
1
1
  import z from "../components/space.js";
2
- import { C as $ } from "./table.B8LpbiGE.js";
2
+ import { C as $ } from "./table.DGQVKi_0.js";
3
3
  import { C as k } from "./typography.DJC_UXgs.js";
4
4
  import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
5
5
  import { C, a as g } from "./color-swatch.Bx-HOp9f.js";
@@ -1,4 +1,4 @@
1
- import { C as _ } from "./button.B-ktz-w4.js";
1
+ import { C as _ } from "./button.KaZ7h26c.js";
2
2
  import { C as u, D as h } from "./dialog.B1nzoJak.js";
3
3
  import g from "../components/dropdown.js";
4
4
  import { C as x } from "./typography.DJC_UXgs.js";
@@ -1,4 +1,4 @@
1
- import { s as u } from "./string.B_rEG27K.js";
1
+ import { s as u } from "./string.B_mXTq0K.js";
2
2
  import { B as p } from "./lit-element.jLBm65_O.js";
3
3
  const f = (n) => n.nodeType === Node.ELEMENT_NODE, E = (n, t) => {
4
4
  if (!n)
@@ -15,7 +15,7 @@ function mt(e) {
15
15
  let t;
16
16
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && qe(e.buffer), t;
17
17
  }
18
- const yt = ne("string"), _ = ne("function"), He = ne("number"), K = (e) => e !== null && typeof e == "object", bt = (e) => e === !0 || e === !1, W = (e) => {
18
+ const bt = ne("string"), _ = ne("function"), He = ne("number"), K = (e) => e !== null && typeof e == "object", yt = (e) => e === !0 || e === !1, W = (e) => {
19
19
  if (re(e) !== "object")
20
20
  return !1;
21
21
  const t = we(e);
@@ -182,9 +182,9 @@ const Vt = (e) => {
182
182
  isBuffer: G,
183
183
  isFormData: Ot,
184
184
  isArrayBufferView: mt,
185
- isString: yt,
185
+ isString: bt,
186
186
  isNumber: He,
187
- isBoolean: bt,
187
+ isBoolean: yt,
188
188
  isObject: K,
189
189
  isPlainObject: W,
190
190
  isEmptyObject: wt,
@@ -236,10 +236,10 @@ const Vt = (e) => {
236
236
  asap: Yt,
237
237
  isIterable: Qt
238
238
  };
239
- function b(e, t, r, n, s) {
239
+ function y(e, t, r, n, s) {
240
240
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), s && (this.response = s, this.status = s.status ? s.status : null);
241
241
  }
242
- c.inherits(b, Error, {
242
+ c.inherits(y, Error, {
243
243
  toJSON: function() {
244
244
  return {
245
245
  // Standard
@@ -260,7 +260,7 @@ c.inherits(b, Error, {
260
260
  };
261
261
  }
262
262
  });
263
- const $e = b.prototype, Ve = {};
263
+ const $e = y.prototype, Ve = {};
264
264
  [
265
265
  "ERR_BAD_OPTION_VALUE",
266
266
  "ERR_BAD_OPTION",
@@ -278,13 +278,13 @@ const $e = b.prototype, Ve = {};
278
278
  ].forEach((e) => {
279
279
  Ve[e] = { value: e };
280
280
  });
281
- Object.defineProperties(b, Ve);
281
+ Object.defineProperties(y, Ve);
282
282
  Object.defineProperty($e, "isAxiosError", { value: !0 });
283
- b.from = (e, t, r, n, s, i) => {
283
+ y.from = (e, t, r, n, s, i) => {
284
284
  const a = Object.create($e);
285
285
  return c.toFlatObject(e, a, function(d) {
286
286
  return d !== Error.prototype;
287
- }, (o) => o !== "isAxiosError"), b.call(a, e.message, t, r, n, s), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
287
+ }, (o) => o !== "isAxiosError"), y.call(a, e.message, t, r, n, s), a.cause = e, a.name = e.name, i && Object.assign(a, i), a;
288
288
  };
289
289
  const Zt = null;
290
290
  function de(e) {
@@ -311,8 +311,8 @@ function se(e, t, r) {
311
311
  metaTokens: !0,
312
312
  dots: !1,
313
313
  indexes: !1
314
- }, !1, function(m, y) {
315
- return !c.isUndefined(y[m]);
314
+ }, !1, function(m, b) {
315
+ return !c.isUndefined(b[m]);
316
316
  });
317
317
  const n = r.metaTokens, s = r.visitor || l, i = r.dots, a = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && c.isSpecCompliantForm(t);
318
318
  if (!c.isFunction(s))
@@ -324,12 +324,12 @@ function se(e, t, r) {
324
324
  if (c.isBoolean(f))
325
325
  return f.toString();
326
326
  if (!d && c.isBlob(f))
327
- throw new b("Blob is not supported. Use a Buffer instead.");
327
+ throw new y("Blob is not supported. Use a Buffer instead.");
328
328
  return c.isArrayBuffer(f) || c.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
329
329
  }
330
- function l(f, m, y) {
330
+ function l(f, m, b) {
331
331
  let g = f;
332
- if (f && !y && typeof f == "object") {
332
+ if (f && !b && typeof f == "object") {
333
333
  if (c.endsWith(m, "{}"))
334
334
  m = n ? m : m.slice(0, -2), f = JSON.stringify(f);
335
335
  else if (c.isArray(f) && er(f) || (c.isFileList(f) || c.endsWith(m, "[]")) && (g = c.toArray(f)))
@@ -341,7 +341,7 @@ function se(e, t, r) {
341
341
  );
342
342
  }), !1;
343
343
  }
344
- return de(f) ? !0 : (t.append(Te(y, m, i), u(f)), !1);
344
+ return de(f) ? !0 : (t.append(Te(b, m, i), u(f)), !1);
345
345
  }
346
346
  const h = [], p = Object.assign(tr, {
347
347
  defaultVisitor: l,
@@ -575,7 +575,7 @@ const $ = {
575
575
  return JSON.parse(t);
576
576
  } catch (o) {
577
577
  if (a)
578
- throw o.name === "SyntaxError" ? b.from(o, b.ERR_BAD_RESPONSE, this, null, this.response) : o;
578
+ throw o.name === "SyntaxError" ? y.from(o, y.ERR_BAD_RESPONSE, this, null, this.response) : o;
579
579
  }
580
580
  }
581
581
  return t;
@@ -624,7 +624,7 @@ const mr = c.toObjectSet([
624
624
  "referer",
625
625
  "retry-after",
626
626
  "user-agent"
627
- ]), yr = (e) => {
627
+ ]), br = (e) => {
628
628
  const t = {};
629
629
  let r, n, s;
630
630
  return e && e.split(`
@@ -638,7 +638,7 @@ function q(e) {
638
638
  function X(e) {
639
639
  return e === !1 || e == null ? e : c.isArray(e) ? e.map(X) : String(e);
640
640
  }
641
- function br(e) {
641
+ function yr(e) {
642
642
  const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
643
643
  let n;
644
644
  for (; n = r.exec(e); )
@@ -687,7 +687,7 @@ let C = class {
687
687
  if (c.isPlainObject(t) || t instanceof this.constructor)
688
688
  a(t, r);
689
689
  else if (c.isString(t) && (t = t.trim()) && !wr(t))
690
- a(yr(t), r);
690
+ a(br(t), r);
691
691
  else if (c.isObject(t) && c.isIterable(t)) {
692
692
  let o = {}, d, u;
693
693
  for (const l of t) {
@@ -708,7 +708,7 @@ let C = class {
708
708
  if (!r)
709
709
  return s;
710
710
  if (r === !0)
711
- return br(s);
711
+ return yr(s);
712
712
  if (c.isFunction(r))
713
713
  return r.call(this, s, n);
714
714
  if (c.isRegExp(r))
@@ -818,16 +818,16 @@ function et(e) {
818
818
  return !!(e && e.__CANCEL__);
819
819
  }
820
820
  function M(e, t, r) {
821
- b.call(this, e ?? "canceled", b.ERR_CANCELED, t, r), this.name = "CanceledError";
821
+ y.call(this, e ?? "canceled", y.ERR_CANCELED, t, r), this.name = "CanceledError";
822
822
  }
823
- c.inherits(M, b, {
823
+ c.inherits(M, y, {
824
824
  __CANCEL__: !0
825
825
  });
826
826
  function tt(e, t, r) {
827
827
  const n = r.config.validateStatus;
828
- !r.status || !n || n(r.status) ? e(r) : t(new b(
828
+ !r.status || !n || n(r.status) ? e(r) : t(new y(
829
829
  "Request failed with status code " + r.status,
830
- [b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
830
+ [y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
831
831
  r.config,
832
832
  r.request,
833
833
  r
@@ -1026,53 +1026,53 @@ const nt = (e) => {
1026
1026
  function m() {
1027
1027
  w && w(), f && f(), s.cancelToken && s.cancelToken.unsubscribe(l), s.signal && s.signal.removeEventListener("abort", l);
1028
1028
  }
1029
- let y = new XMLHttpRequest();
1030
- y.open(s.method.toUpperCase(), s.url, !0), y.timeout = s.timeout;
1029
+ let b = new XMLHttpRequest();
1030
+ b.open(s.method.toUpperCase(), s.url, !0), b.timeout = s.timeout;
1031
1031
  function g() {
1032
- if (!y)
1032
+ if (!b)
1033
1033
  return;
1034
1034
  const E = C.from(
1035
- "getAllResponseHeaders" in y && y.getAllResponseHeaders()
1036
- ), R = {
1037
- data: !o || o === "text" || o === "json" ? y.responseText : y.response,
1038
- status: y.status,
1039
- statusText: y.statusText,
1035
+ "getAllResponseHeaders" in b && b.getAllResponseHeaders()
1036
+ ), T = {
1037
+ data: !o || o === "text" || o === "json" ? b.responseText : b.response,
1038
+ status: b.status,
1039
+ statusText: b.statusText,
1040
1040
  headers: E,
1041
1041
  config: e,
1042
- request: y
1042
+ request: b
1043
1043
  };
1044
1044
  tt(function(j) {
1045
1045
  r(j), m();
1046
1046
  }, function(j) {
1047
1047
  n(j), m();
1048
- }, R), y = null;
1048
+ }, T), b = null;
1049
1049
  }
1050
- "onloadend" in y ? y.onloadend = g : y.onreadystatechange = function() {
1051
- !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(g);
1052
- }, y.onabort = function() {
1053
- y && (n(new b("Request aborted", b.ECONNABORTED, e, y)), y = null);
1054
- }, y.onerror = function() {
1055
- n(new b("Network Error", b.ERR_NETWORK, e, y)), y = null;
1056
- }, y.ontimeout = function() {
1050
+ "onloadend" in b ? b.onloadend = g : b.onreadystatechange = function() {
1051
+ !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(g);
1052
+ }, b.onabort = function() {
1053
+ b && (n(new y("Request aborted", y.ECONNABORTED, e, b)), b = null);
1054
+ }, b.onerror = function() {
1055
+ n(new y("Network Error", y.ERR_NETWORK, e, b)), b = null;
1056
+ }, b.ontimeout = function() {
1057
1057
  let x = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1058
- const R = s.transitional || Qe;
1059
- s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new b(
1058
+ const T = s.transitional || Qe;
1059
+ s.timeoutErrorMessage && (x = s.timeoutErrorMessage), n(new y(
1060
1060
  x,
1061
- R.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
1061
+ T.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
1062
1062
  e,
1063
- y
1064
- )), y = null;
1065
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in y && c.forEach(a.toJSON(), function(x, R) {
1066
- y.setRequestHeader(R, x);
1067
- }), c.isUndefined(s.withCredentials) || (y.withCredentials = !!s.withCredentials), o && o !== "json" && (y.responseType = s.responseType), u && ([p, f] = Z(u, !0), y.addEventListener("progress", p)), d && y.upload && ([h, w] = Z(d), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (l = (E) => {
1068
- y && (n(!E || E.type ? new M(null, e, y) : E), y.abort(), y = null);
1063
+ b
1064
+ )), b = null;
1065
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in b && c.forEach(a.toJSON(), function(x, T) {
1066
+ b.setRequestHeader(T, x);
1067
+ }), c.isUndefined(s.withCredentials) || (b.withCredentials = !!s.withCredentials), o && o !== "json" && (b.responseType = s.responseType), u && ([p, f] = Z(u, !0), b.addEventListener("progress", p)), d && b.upload && ([h, w] = Z(d), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", w)), (s.cancelToken || s.signal) && (l = (E) => {
1068
+ b && (n(!E || E.type ? new M(null, e, b) : E), b.abort(), b = null);
1069
1069
  }, s.cancelToken && s.cancelToken.subscribe(l), s.signal && (s.signal.aborted ? l() : s.signal.addEventListener("abort", l)));
1070
1070
  const S = Sr(s.url);
1071
1071
  if (S && A.protocols.indexOf(S) === -1) {
1072
- n(new b("Unsupported protocol " + S + ":", b.ERR_BAD_REQUEST, e));
1072
+ n(new y("Unsupported protocol " + S + ":", y.ERR_BAD_REQUEST, e));
1073
1073
  return;
1074
1074
  }
1075
- y.send(i || null);
1075
+ b.send(i || null);
1076
1076
  });
1077
1077
  }, vr = (e, t) => {
1078
1078
  const { length: r } = e = e ? e.filter(Boolean) : [];
@@ -1082,11 +1082,11 @@ const nt = (e) => {
1082
1082
  if (!s) {
1083
1083
  s = !0, o();
1084
1084
  const l = u instanceof Error ? u : this.reason;
1085
- n.abort(l instanceof b ? l : new M(l instanceof Error ? l.message : l));
1085
+ n.abort(l instanceof y ? l : new M(l instanceof Error ? l.message : l));
1086
1086
  }
1087
1087
  };
1088
1088
  let a = t && setTimeout(() => {
1089
- a = null, i(new b(`timeout ${t} of ms exceeded`, b.ETIMEDOUT));
1089
+ a = null, i(new y(`timeout ${t} of ms exceeded`, y.ETIMEDOUT));
1090
1090
  }, t);
1091
1091
  const o = () => {
1092
1092
  e && (a && clearTimeout(a), a = null, e.forEach((u) => {
@@ -1176,7 +1176,7 @@ const nt = (e) => {
1176
1176
  ae && ((e) => {
1177
1177
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1178
1178
  !ee[t] && (ee[t] = c.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
1179
- throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, n);
1179
+ throw new y(`Response type '${t}' is not supported`, y.ERR_NOT_SUPPORT, n);
1180
1180
  });
1181
1181
  });
1182
1182
  })(new Response());
@@ -1217,20 +1217,20 @@ const Pr = async (e) => {
1217
1217
  const m = w && w.unsubscribe && (() => {
1218
1218
  w.unsubscribe();
1219
1219
  });
1220
- let y;
1220
+ let b;
1221
1221
  try {
1222
- if (d && Nr && r !== "get" && r !== "head" && (y = await Br(l, n)) !== 0) {
1223
- let R = new Request(t, {
1222
+ if (d && Nr && r !== "get" && r !== "head" && (b = await Br(l, n)) !== 0) {
1223
+ let T = new Request(t, {
1224
1224
  method: "POST",
1225
1225
  body: n,
1226
1226
  duplex: "half"
1227
1227
  }), k;
1228
- if (c.isFormData(n) && (k = R.headers.get("content-type")) && l.setContentType(k), R.body) {
1228
+ if (c.isFormData(n) && (k = T.headers.get("content-type")) && l.setContentType(k), T.body) {
1229
1229
  const [j, V] = Ce(
1230
- y,
1230
+ b,
1231
1231
  Z(xe(d))
1232
1232
  );
1233
- n = ve(R.body, Fe, j, V);
1233
+ n = ve(T.body, Fe, j, V);
1234
1234
  }
1235
1235
  }
1236
1236
  c.isString(h) || (h = h ? "include" : "omit");
@@ -1247,9 +1247,9 @@ const Pr = async (e) => {
1247
1247
  let S = await fetch(f, p);
1248
1248
  const E = he && (u === "stream" || u === "response");
1249
1249
  if (he && (o || E && m)) {
1250
- const R = {};
1250
+ const T = {};
1251
1251
  ["status", "statusText", "headers"].forEach((Se) => {
1252
- R[Se] = S[Se];
1252
+ T[Se] = S[Se];
1253
1253
  });
1254
1254
  const k = c.toFiniteNumber(S.headers.get("content-length")), [j, V] = o && Ce(
1255
1255
  k,
@@ -1259,13 +1259,13 @@ const Pr = async (e) => {
1259
1259
  ve(S.body, Fe, j, () => {
1260
1260
  V && V(), m && m();
1261
1261
  }),
1262
- R
1262
+ T
1263
1263
  );
1264
1264
  }
1265
1265
  u = u || "text";
1266
1266
  let x = await ee[c.findKey(ee, u) || "text"](S, e);
1267
- return !E && m && m(), await new Promise((R, k) => {
1268
- tt(R, k, {
1267
+ return !E && m && m(), await new Promise((T, k) => {
1268
+ tt(T, k, {
1269
1269
  data: x,
1270
1270
  headers: C.from(S.headers),
1271
1271
  status: S.status,
@@ -1276,11 +1276,11 @@ const Pr = async (e) => {
1276
1276
  });
1277
1277
  } catch (g) {
1278
1278
  throw m && m(), g && g.name === "TypeError" && /Load failed|fetch/i.test(g.message) ? Object.assign(
1279
- new b("Network Error", b.ERR_NETWORK, e, f),
1279
+ new y("Network Error", y.ERR_NETWORK, e, f),
1280
1280
  {
1281
1281
  cause: g.cause || g
1282
1282
  }
1283
- ) : b.from(g, g && g.code, e, f);
1283
+ ) : y.from(g, g && g.code, e, f);
1284
1284
  }
1285
1285
  }), pe = {
1286
1286
  http: Zt,
@@ -1306,7 +1306,7 @@ const ke = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
1306
1306
  r = e[i];
1307
1307
  let a;
1308
1308
  if (n = r, !Ir(r) && (n = pe[(a = String(r)).toLowerCase()], n === void 0))
1309
- throw new b(`Unknown adapter '${a}'`);
1309
+ throw new y(`Unknown adapter '${a}'`);
1310
1310
  if (n)
1311
1311
  break;
1312
1312
  s[a || "#" + i] = n;
@@ -1318,7 +1318,7 @@ const ke = (e) => `- ${e}`, Ir = (e) => c.isFunction(e) || e === null || e === !
1318
1318
  let a = t ? i.length > 1 ? `since :
1319
1319
  ` + i.map(ke).join(`
1320
1320
  `) : " " + ke(i[0]) : "as no adapter specified";
1321
- throw new b(
1321
+ throw new y(
1322
1322
  "There is no suitable adapter to dispatch the request " + a,
1323
1323
  "ERR_NOT_SUPPORT"
1324
1324
  );
@@ -1362,9 +1362,9 @@ ie.transitional = function(t, r, n) {
1362
1362
  }
1363
1363
  return (i, a, o) => {
1364
1364
  if (t === !1)
1365
- throw new b(
1365
+ throw new y(
1366
1366
  s(a, " has been removed" + (r ? " in " + r : "")),
1367
- b.ERR_DEPRECATED
1367
+ y.ERR_DEPRECATED
1368
1368
  );
1369
1369
  return r && !Ue[a] && (Ue[a] = !0, console.warn(
1370
1370
  s(
@@ -1379,7 +1379,7 @@ ie.spelling = function(t) {
1379
1379
  };
1380
1380
  function Mr(e, t, r) {
1381
1381
  if (typeof e != "object")
1382
- throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
1382
+ throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
1383
1383
  const n = Object.keys(e);
1384
1384
  let s = n.length;
1385
1385
  for (; s-- > 0; ) {
@@ -1387,11 +1387,11 @@ function Mr(e, t, r) {
1387
1387
  if (a) {
1388
1388
  const o = e[i], d = o === void 0 || a(o, i, e);
1389
1389
  if (d !== !0)
1390
- throw new b("option " + i + " must be " + d, b.ERR_BAD_OPTION_VALUE);
1390
+ throw new y("option " + i + " must be " + d, y.ERR_BAD_OPTION_VALUE);
1391
1391
  continue;
1392
1392
  }
1393
1393
  if (r !== !0)
1394
- throw new b("Unknown option " + i, b.ERR_BAD_OPTION);
1394
+ throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
1395
1395
  }
1396
1396
  }
1397
1397
  const Y = {
@@ -1478,8 +1478,8 @@ let N = class {
1478
1478
  const f = o[h++], m = o[h++];
1479
1479
  try {
1480
1480
  w = f(w);
1481
- } catch (y) {
1482
- m.call(this, y);
1481
+ } catch (b) {
1482
+ m.call(this, b);
1483
1483
  break;
1484
1484
  }
1485
1485
  }
@@ -1677,26 +1677,26 @@ function lt(e) {
1677
1677
  return lt(P(e, s));
1678
1678
  }, r;
1679
1679
  }
1680
- const T = lt($);
1681
- T.Axios = N;
1682
- T.CanceledError = M;
1683
- T.CancelToken = qr;
1684
- T.isCancel = et;
1685
- T.VERSION = ot;
1686
- T.toFormData = se;
1687
- T.AxiosError = b;
1688
- T.Cancel = T.CanceledError;
1689
- T.all = function(t) {
1680
+ const R = lt($);
1681
+ R.Axios = N;
1682
+ R.CanceledError = M;
1683
+ R.CancelToken = qr;
1684
+ R.isCancel = et;
1685
+ R.VERSION = ot;
1686
+ R.toFormData = se;
1687
+ R.AxiosError = y;
1688
+ R.Cancel = R.CanceledError;
1689
+ R.all = function(t) {
1690
1690
  return Promise.all(t);
1691
1691
  };
1692
- T.spread = Hr;
1693
- T.isAxiosError = zr;
1694
- T.mergeConfig = P;
1695
- T.AxiosHeaders = C;
1696
- T.formToJSON = (e) => Ze(c.isHTMLForm(e) ? new FormData(e) : e);
1697
- T.getAdapter = it.getAdapter;
1698
- T.HttpStatusCode = me;
1699
- T.default = T;
1692
+ R.spread = Hr;
1693
+ R.isAxiosError = zr;
1694
+ R.mergeConfig = P;
1695
+ R.AxiosHeaders = C;
1696
+ R.formToJSON = (e) => Ze(c.isHTMLForm(e) ? new FormData(e) : e);
1697
+ R.getAdapter = it.getAdapter;
1698
+ R.HttpStatusCode = me;
1699
+ R.default = R;
1700
1700
  const {
1701
1701
  Axios: En,
1702
1702
  AxiosError: Sn,
@@ -1714,7 +1714,7 @@ const {
1714
1714
  formToJSON: jn,
1715
1715
  getAdapter: Un,
1716
1716
  mergeConfig: Nn
1717
- } = T;
1717
+ } = R;
1718
1718
  var Gr = Symbol("cache-parser");
1719
1719
  function Ne(e, t) {
1720
1720
  (t == null || t > e.length) && (t = e.length);
@@ -1732,14 +1732,14 @@ function ut(e) {
1732
1732
  var t = Object.defineProperty({}, Gr, { enumerable: !1, value: 1 });
1733
1733
  if (!e || typeof e != "string") return t;
1734
1734
  var r = function(u) {
1735
- for (var l, h = {}, p = function(m, y) {
1735
+ for (var l, h = {}, p = function(m, b) {
1736
1736
  var g = typeof Symbol < "u" && m[Symbol.iterator] || m["@@iterator"];
1737
1737
  if (g) return (g = g.call(m)).next.bind(g);
1738
1738
  if (Array.isArray(m) || (g = function(E, x) {
1739
1739
  if (E) {
1740
1740
  if (typeof E == "string") return Ne(E, x);
1741
- var R = Object.prototype.toString.call(E).slice(8, -1);
1742
- return R === "Object" && E.constructor && (R = E.constructor.name), R === "Map" || R === "Set" ? Array.from(E) : R === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R) ? Ne(E, x) : void 0;
1741
+ var T = Object.prototype.toString.call(E).slice(8, -1);
1742
+ return T === "Object" && E.constructor && (T = E.constructor.name), T === "Map" || T === "Set" ? Array.from(E) : T === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T) ? Ne(E, x) : void 0;
1743
1743
  }
1744
1744
  }(m))) {
1745
1745
  g && (m = g);
@@ -1977,7 +1977,7 @@ function Pe(e, t) {
1977
1977
  function Xr(e) {
1978
1978
  return e ? (t) => e(t) || t === 304 : (t) => t >= 200 && t < 300 || t === 304;
1979
1979
  }
1980
- function ye(e = "get", t = []) {
1980
+ function be(e = "get", t = []) {
1981
1981
  return e = e.toLowerCase(), t.some((r) => r === e);
1982
1982
  }
1983
1983
  function Yr(e, t) {
@@ -2015,8 +2015,8 @@ function Zr(e) {
2015
2015
  }
2016
2016
  if (typeof r.cache.cachePredicate == "object" && r.cache.cachePredicate.allowUrls && r.url) {
2017
2017
  let m = !1;
2018
- for (const y of r.cache.cachePredicate.allowUrls)
2019
- if (Pe(y, r.url)) {
2018
+ for (const b of r.cache.cachePredicate.allowUrls)
2019
+ if (Pe(b, r.url)) {
2020
2020
  m = !0;
2021
2021
  break;
2022
2022
  }
@@ -2027,7 +2027,7 @@ function Zr(e) {
2027
2027
  var n, s, i, a, o, d, u, l, h;
2028
2028
  (i = (n = r.headers)[s = O.CacheControl]) != null || (n[s] = "no-cache"), (d = (a = r.headers)[o = O.Pragma]) != null || (a[o] = "no-cache"), (h = (u = r.headers)[l = O.Expires]) != null || (u[l] = "0");
2029
2029
  }
2030
- if (!ye(r.method, r.cache.methods))
2030
+ if (!be(r.method, r.cache.methods))
2031
2031
  return r;
2032
2032
  let p = await e.storage.get(r.id, r);
2033
2033
  const w = r.cache.override;
@@ -2058,10 +2058,10 @@ function Zr(e) {
2058
2058
  return p.data && await (r.cache.hydrate == null ? void 0 : r.cache.hydrate(p)), r;
2059
2059
  try {
2060
2060
  await m;
2061
- const y = await e.storage.get(r.id, r);
2062
- if (!y.data)
2061
+ const b = await e.storage.get(r.id, r);
2062
+ if (!b.data)
2063
2063
  return t(r);
2064
- f = y.data;
2064
+ f = b.data;
2065
2065
  } catch {
2066
2066
  return p.data && await (r.cache.hydrate == null ? void 0 : r.cache.hydrate(p)), t(r);
2067
2067
  }
@@ -2120,7 +2120,7 @@ function tn(e) {
2120
2120
  return s;
2121
2121
  if (!o)
2122
2122
  return s.cached = !1, s;
2123
- if (o.update && await en(e.storage, s, o.update), !ye(a.method, o.methods))
2123
+ if (o.update && await en(e.storage, s, o.update), !be(a.method, o.methods))
2124
2124
  return s;
2125
2125
  const d = await e.storage.get(s.id, a);
2126
2126
  if (
@@ -2162,7 +2162,7 @@ function tn(e) {
2162
2162
  const i = s.config, a = i.id, o = i.cache, d = s.response;
2163
2163
  if (!o || !a)
2164
2164
  throw s;
2165
- if (!ye(i.method, o.methods))
2165
+ if (!be(i.method, o.methods))
2166
2166
  throw await t(a, i, !0), s;
2167
2167
  const u = await e.storage.get(a, i);
2168
2168
  if (
@@ -2218,7 +2218,7 @@ function ft(e) {
2218
2218
  // [ past ][now is in here]
2219
2219
  Math.abs(Date.now() - (e.createdAt + e.ttl)) <= e.staleTtl;
2220
2220
  }
2221
- function be(e) {
2221
+ function ye(e) {
2222
2222
  return e.ttl !== void 0 && e.createdAt + e.ttl <= Date.now();
2223
2223
  }
2224
2224
  function sn({
@@ -2242,7 +2242,7 @@ function sn({
2242
2242
  if (a.state === "empty" || a.state === "loading" || a.state === "must-revalidate")
2243
2243
  return a;
2244
2244
  if (a.state === "cached") {
2245
- if (!be(a))
2245
+ if (!ye(a))
2246
2246
  return a;
2247
2247
  if (!ft(a))
2248
2248
  return await r(s, i), {
@@ -2258,7 +2258,7 @@ function sn({
2258
2258
  state: "must-revalidate"
2259
2259
  });
2260
2260
  }
2261
- return !be(a) || dt(a) ? a : (await r(s, i), {
2261
+ return !ye(a) || dt(a) ? a : (await r(s, i), {
2262
2262
  state: "empty"
2263
2263
  });
2264
2264
  }
@@ -2298,7 +2298,7 @@ function an(e = !1, t = !1, r = !1) {
2298
2298
  n.remove(o);
2299
2299
  continue;
2300
2300
  }
2301
- a.state === "cached" && be(a) && !ft(a) && n.remove(o);
2301
+ a.state === "cached" && ye(a) && !ft(a) && n.remove(o);
2302
2302
  }
2303
2303
  }, t && (n.cleaner = setInterval(n.cleanup, t)), n;
2304
2304
  }
@@ -2352,7 +2352,7 @@ function ln(e, t = {}) {
2352
2352
  hydrate: (u = t.hydrate) != null ? u : void 0
2353
2353
  }, l.interceptors.request.use(l.requestInterceptor.onFulfilled, l.requestInterceptor.onRejected), l.interceptors.response.use(l.responseInterceptor.onFulfilled, l.responseInterceptor.onRejected), l;
2354
2354
  }
2355
- const un = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin, ht = T.create({
2355
+ const un = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin, ht = R.create({
2356
2356
  baseURL: un,
2357
2357
  headers: {
2358
2358
  Accept: "application/json, */*"
@@ -2361,13 +2361,22 @@ const un = window.location.origin.includes("localhost:") ? "https://local.orange
2361
2361
  });
2362
2362
  ht.interceptors.response.use(
2363
2363
  (e) => e,
2364
- (e) => Promise.reject(e)
2364
+ (e) => (R.isAxiosError(e) && e.response?.status === 401 && globalThis.dispatchEvent(
2365
+ new CustomEvent("cx-unauthorized", {
2366
+ bubbles: !0,
2367
+ composed: !0,
2368
+ detail: {
2369
+ status: 401,
2370
+ url: e.config?.url ?? ""
2371
+ }
2372
+ })
2373
+ ), Promise.reject(e))
2365
2374
  );
2366
2375
  const Pn = ln(ht), Bn = "webapi/extensibility/integrations/gab/assetbrowser/gethierarchy_41e8", Dn = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
2367
- var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_ASSET_LINK = "webapi/extensibility/integrations/contentBrowserSDK/GetAssetLink_4by", e.GET_CONTENT_V1 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1", e.GET_CONTENT_V2 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v2", e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), yn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(yn || {}), bn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(bn || {});
2376
+ var dn = /* @__PURE__ */ ((e) => (e.GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1", e.GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1", e.GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1", e.GET_USER_ROLE = "webapi/objectmanagement/teamspaces/getuserroles_41E7_v1", e))(dn || {}), fn = /* @__PURE__ */ ((e) => (e.GET_ASSET_LINK = "webapi/extensibility/integrations/contentBrowserSDK/GetAssetLink_4by", e.GET_CONTENT_V1 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v1", e.GET_CONTENT_V2 = "webapi/extensibility/integrations/contentBrowserSDK/getcontent_4bw_v2", e.GET_CROP_ZONE_SUGGESTION = "webapi/mediafile/assettransformation/getcropzonesuggestion_41UP_v1", e.GET_TRANSFORM_ASSET_LINK = "webapi/mediafile/assettransformation/transformasset_41E6_v1", e.UPLOAD_AND_GET_RESPONSE = "webapi/mediafile/import/upload/uploadimageandgetlargestdownloadlink_4CM_v1", e.UPLOAD_RESPONSE = "api/UploadMedia/v3.0/UploadNewMedia", e))(fn || {}), hn = /* @__PURE__ */ ((e) => (e.GET_AUTOCOMPLETE_ITEMS_WITH_QUERY = "webapi/ui/autocompletion/executequery_4JD_v1-alpha", e.GET_AUTOCOMPLETE_ITEMS_WITH_SERVICE = "webapi/ui/autocompletion/callservice_41s5_v1-alpha", e))(hn || {}), pn = /* @__PURE__ */ ((e) => (e.GET_DASHBOARD_EMBEDDED_URL = "webapi/extensibility/integrations/businessintelligence/getdashboardembededurl_41JJ_v1", e.GET_DASHBOARD_LIST = "webapi/extensibility/integrations/businessintelligence/getlistdashboards_41JI_v1", e))(pn || {}), mn = /* @__PURE__ */ ((e) => (e.GET_SEARCHABLE_FIELDS = "webapi/objectmanagement/metadata/fields/getallobjectfieldsforcurrentuser_4C2_v2", e))(mn || {}), bn = /* @__PURE__ */ ((e) => (e.CREATE_OR_UPDATE_CHAPTERS = "webapi/mediafile/timebasedasset/createorupdatechapters_4b0_v1", e.GET_CHAPTERS = "webapi/mediafile/timebasedasset/getchapters_41T7_v1", e))(bn || {}), yn = /* @__PURE__ */ ((e) => (e.BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/418g_v1", e.GET_ADHOC_PROPERTIES = "webapi/cms/cms5/blocktemplate/getadhocpropertieslist_419s_v1", e.GET_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getblocktemplates_419y_v1", e.GET_BLOCK_TYPES = "webapi/cms/cms5/blocktemplate/getblocktypes_419z_v1", e.GET_CAN_CREATE_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/cancreatenewblocktemplate_41cs_v1", e.GET_PAGES_FOR_BLOCK_TEMPLATE = "webapi/cms/cms5/blocktemplate/getpagesforblocktemplate_41ig_v1", e.GET_PERMISSION = "webapi/cms/cms5/blocktemplate/getpermission_419r_v1", e.LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1", e))(yn || {});
2368
2377
  export {
2369
2378
  fn as A,
2370
- bn as C,
2379
+ yn as C,
2371
2380
  pn as D,
2372
2381
  Bn as F,
2373
2382
  mn as M,
@@ -2375,6 +2384,6 @@ export {
2375
2384
  Dn as a,
2376
2385
  Sn as b,
2377
2386
  hn as c,
2378
- yn as d,
2387
+ bn as d,
2379
2388
  Pn as h
2380
2389
  };