@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
@@ -17,40 +17,39 @@ import { t as w } from "./resize-observer.D9EHlnZI.js";
17
17
  import { n as T } from "./position-picker.dY_vgF_H.js";
18
18
  import { a as E } from "./src.BJhIYoMP.js";
19
19
  import { t as D } from "./space.Dd8jezXK.js";
20
- import { s as O } from "./url.CZO_DV8Y.js";
21
- import { t as k } from "./keyed.zYwdaCfO.js";
22
- import { t as A } from "./skeleton.BtwugOTG.js";
20
+ import { t as O } from "./keyed.zYwdaCfO.js";
21
+ import { t as k } from "./skeleton.BtwugOTG.js";
23
22
  //#region ../../packages/types/src/image.ts
24
- var j = /* @__PURE__ */ function(e) {
23
+ var A = /* @__PURE__ */ function(e) {
25
24
  return e.Automatic = "automatic", e.Manual = "manual", e;
26
- }({}), M = Object.assign || function(e) {
25
+ }({}), j = Object.assign || function(e) {
27
26
  for (var t = 1; t < arguments.length; t++) {
28
27
  var n = arguments[t];
29
28
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
30
29
  }
31
30
  return e;
32
- }, N = function(e) {
31
+ }, M = function(e) {
33
32
  return e.tagName === "IMG";
34
- }, P = function(e) {
33
+ }, N = function(e) {
35
34
  return NodeList.prototype.isPrototypeOf(e);
36
- }, F = function(e) {
35
+ }, P = function(e) {
37
36
  return e && e.nodeType === 1;
38
- }, I = function(e) {
37
+ }, F = function(e) {
39
38
  return (e.currentSrc || e.src).substr(-4).toLowerCase() === ".svg";
40
- }, L = function(e) {
39
+ }, I = function(e) {
41
40
  try {
42
- return Array.isArray(e) ? e.filter(N) : P(e) ? [].slice.call(e).filter(N) : F(e) ? [e].filter(N) : typeof e == "string" ? [].slice.call(document.querySelectorAll(e)).filter(N) : [];
41
+ return Array.isArray(e) ? e.filter(M) : N(e) ? [].slice.call(e).filter(M) : P(e) ? [e].filter(M) : typeof e == "string" ? [].slice.call(document.querySelectorAll(e)).filter(M) : [];
43
42
  } catch {
44
43
  throw TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom");
45
44
  }
46
- }, R = function(e) {
45
+ }, L = function(e) {
47
46
  var t = document.createElement("div");
48
47
  return t.classList.add("medium-zoom-overlay"), t.style.background = e, t;
49
- }, z = function(e) {
48
+ }, R = function(e) {
50
49
  var t = e.getBoundingClientRect(), n = t.top, r = t.left, i = t.width, a = t.height, o = e.cloneNode(), s = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, c = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
51
50
  return o.removeAttribute("id"), o.style.position = "absolute", o.style.top = n + s + "px", o.style.left = r + c + "px", o.style.width = i + "px", o.style.height = a + "px", o.style.transform = "", o;
52
- }, B = function(e, t) {
53
- var n = M({
51
+ }, z = function(e, t) {
52
+ var n = j({
54
53
  bubbles: !1,
55
54
  cancelable: !1,
56
55
  detail: void 0
@@ -58,7 +57,7 @@ var j = /* @__PURE__ */ function(e) {
58
57
  if (typeof window.CustomEvent == "function") return new CustomEvent(e, n);
59
58
  var r = document.createEvent("CustomEvent");
60
59
  return r.initCustomEvent(e, n.bubbles, n.cancelable, n.detail), r;
61
- }, V = function e(t) {
60
+ }, B = function e(t) {
62
61
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = window.Promise || function(e) {
63
62
  function t() {}
64
63
  e(t, t);
@@ -79,15 +78,15 @@ var j = /* @__PURE__ */ function(e) {
79
78
  (t === "Escape" || t === "Esc" || t === 27) && m();
80
79
  }, s = function() {
81
80
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e;
82
- return e.background && (T.style.background = e.background), e.container && e.container instanceof Object && (t.container = M({}, C.container, e.container)), e.template && (t.template = F(e.template) ? e.template : document.querySelector(e.template)), C = M({}, C, t), y.forEach(function(e) {
83
- e.dispatchEvent(B("medium-zoom:update", { detail: { zoom: E } }));
81
+ return e.background && (T.style.background = e.background), e.container && e.container instanceof Object && (t.container = j({}, C.container, e.container)), e.template && (t.template = P(e.template) ? e.template : document.querySelector(e.template)), C = j({}, C, t), y.forEach(function(e) {
82
+ e.dispatchEvent(z("medium-zoom:update", { detail: { zoom: E } }));
84
83
  }), E;
85
84
  }, c = function() {
86
85
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
87
- return e(M({}, C, t));
86
+ return e(j({}, C, t));
88
87
  }, l = function() {
89
88
  var e = [...arguments].reduce(function(e, t) {
90
- return [].concat(e, L(t));
89
+ return [].concat(e, I(t));
91
90
  }, []);
92
91
  return e.filter(function(e) {
93
92
  return y.indexOf(e) === -1;
@@ -103,10 +102,10 @@ var j = /* @__PURE__ */ function(e) {
103
102
  var e = [...arguments];
104
103
  w.zoomed && m();
105
104
  var t = e.length > 0 ? e.reduce(function(e, t) {
106
- return [].concat(e, L(t));
105
+ return [].concat(e, I(t));
107
106
  }, []) : y;
108
107
  return t.forEach(function(e) {
109
- e.classList.remove("medium-zoom-image"), e.dispatchEvent(B("medium-zoom:detach", { detail: { zoom: E } }));
108
+ e.classList.remove("medium-zoom-image"), e.dispatchEvent(z("medium-zoom:detach", { detail: { zoom: E } }));
110
109
  }), y = y.filter(function(e) {
111
110
  return t.indexOf(e) === -1;
112
111
  }), E;
@@ -137,10 +136,10 @@ var j = /* @__PURE__ */ function(e) {
137
136
  bottom: 0
138
137
  }, t = void 0, n = void 0;
139
138
  if (C.container) {
140
- if (C.container instanceof Object) e = M({}, e, C.container), t = e.width - e.left - e.right - C.margin * 2, n = e.height - e.top - e.bottom - C.margin * 2;
139
+ if (C.container instanceof Object) e = j({}, e, C.container), t = e.width - e.left - e.right - C.margin * 2, n = e.height - e.top - e.bottom - C.margin * 2;
141
140
  else {
142
- var r = (F(C.container) ? C.container : document.querySelector(C.container)).getBoundingClientRect(), i = r.width, a = r.height, o = r.left, s = r.top;
143
- e = M({}, e, {
141
+ var r = (P(C.container) ? C.container : document.querySelector(C.container)).getBoundingClientRect(), i = r.width, a = r.height, o = r.left, s = r.top;
142
+ e = j({}, e, {
144
143
  width: i,
145
144
  height: a,
146
145
  left: o,
@@ -149,7 +148,7 @@ var j = /* @__PURE__ */ function(e) {
149
148
  }
150
149
  }
151
150
  t ||= e.width - C.margin * 2, n ||= e.height - C.margin * 2;
152
- var c = w.zoomedHd || w.original, l = I(c) ? t : c.naturalWidth || t, u = I(c) ? n : c.naturalHeight || n, d = c.getBoundingClientRect(), f = d.top, p = d.left, m = d.width, h = d.height, g = Math.min(Math.max(m, l), t) / m, _ = Math.min(Math.max(h, u), n) / h, v = Math.min(g, _), y = (-p + (t - m) / 2 + C.margin + e.left) / v, b = (-f + (n - h) / 2 + C.margin + e.top) / v, x = "scale(" + v + ") translate3d(" + y + "px, " + b + "px, 0)";
151
+ var c = w.zoomedHd || w.original, l = F(c) ? t : c.naturalWidth || t, u = F(c) ? n : c.naturalHeight || n, d = c.getBoundingClientRect(), f = d.top, p = d.left, m = d.width, h = d.height, g = Math.min(Math.max(m, l), t) / m, _ = Math.min(Math.max(h, u), n) / h, v = Math.min(g, _), y = (-p + (t - m) / 2 + C.margin + e.left) / v, b = (-f + (n - h) / 2 + C.margin + e.top) / v, x = "scale(" + v + ") translate3d(" + y + "px, " + b + "px, 0)";
153
152
  w.zoomed.style.transform = x, w.zoomedHd && (w.zoomedHd.style.transform = x);
154
153
  };
155
154
  return new r(function(n) {
@@ -158,7 +157,7 @@ var j = /* @__PURE__ */ function(e) {
158
157
  return;
159
158
  }
160
159
  var r = function e() {
161
- x = !1, w.zoomed.removeEventListener("transitionend", e), w.original.dispatchEvent(B("medium-zoom:opened", { detail: { zoom: E } })), n(E);
160
+ x = !1, w.zoomed.removeEventListener("transitionend", e), w.original.dispatchEvent(z("medium-zoom:opened", { detail: { zoom: E } })), n(E);
162
161
  };
163
162
  if (w.zoomed) {
164
163
  n(E);
@@ -170,8 +169,8 @@ var j = /* @__PURE__ */ function(e) {
170
169
  n(E);
171
170
  return;
172
171
  }
173
- if (w.original.dispatchEvent(B("medium-zoom:open", { detail: { zoom: E } })), S = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, x = !0, w.zoomed = z(w.original), document.body.appendChild(T), C.template) {
174
- var i = F(C.template) ? C.template : document.querySelector(C.template);
172
+ if (w.original.dispatchEvent(z("medium-zoom:open", { detail: { zoom: E } })), S = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, x = !0, w.zoomed = R(w.original), document.body.appendChild(T), C.template) {
173
+ var i = P(C.template) ? C.template : document.querySelector(C.template);
175
174
  w.template = document.createElement("div"), w.template.appendChild(i.content.cloneNode(!0)), document.body.appendChild(w.template);
176
175
  }
177
176
  if (w.original.parentElement && w.original.parentElement.tagName === "PICTURE" && w.original.currentSrc && (w.zoomed.src = w.original.currentSrc), document.body.appendChild(w.zoomed), window.requestAnimationFrame(function() {
@@ -197,9 +196,9 @@ var j = /* @__PURE__ */ function(e) {
197
196
  return;
198
197
  }
199
198
  var t = function t() {
200
- w.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(w.zoomed), w.zoomedHd && document.body.removeChild(w.zoomedHd), document.body.removeChild(T), w.zoomed.classList.remove("medium-zoom-image--opened"), w.template && document.body.removeChild(w.template), x = !1, w.zoomed.removeEventListener("transitionend", t), w.original.dispatchEvent(B("medium-zoom:closed", { detail: { zoom: E } })), w.original = null, w.zoomed = null, w.zoomedHd = null, w.template = null, e(E);
199
+ w.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(w.zoomed), w.zoomedHd && document.body.removeChild(w.zoomedHd), document.body.removeChild(T), w.zoomed.classList.remove("medium-zoom-image--opened"), w.template && document.body.removeChild(w.template), x = !1, w.zoomed.removeEventListener("transitionend", t), w.original.dispatchEvent(z("medium-zoom:closed", { detail: { zoom: E } })), w.original = null, w.zoomed = null, w.zoomedHd = null, w.template = null, e(E);
201
200
  };
202
- x = !0, document.body.classList.remove("medium-zoom--opened"), w.zoomed.style.transform = "", w.zoomedHd && (w.zoomedHd.style.transform = ""), w.template && (w.template.style.transition = "opacity 150ms", w.template.style.opacity = 0), w.original.dispatchEvent(B("medium-zoom:close", { detail: { zoom: E } })), w.zoomed.addEventListener("transitionend", t);
201
+ x = !0, document.body.classList.remove("medium-zoom--opened"), w.zoomed.style.transform = "", w.zoomedHd && (w.zoomedHd.style.transform = ""), w.template && (w.template.style.transition = "opacity 150ms", w.template.style.opacity = 0), w.original.dispatchEvent(z("medium-zoom:close", { detail: { zoom: E } })), w.zoomed.addEventListener("transitionend", t);
203
202
  });
204
203
  }, h = function() {
205
204
  var e = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).target;
@@ -216,14 +215,14 @@ var j = /* @__PURE__ */ function(e) {
216
215
  zoomedHd: null,
217
216
  template: null
218
217
  };
219
- Object.prototype.toString.call(t) === "[object Object]" ? C = t : (t || typeof t == "string") && l(t), C = M({
218
+ Object.prototype.toString.call(t) === "[object Object]" ? C = t : (t || typeof t == "string") && l(t), C = j({
220
219
  margin: 0,
221
220
  background: "#fff",
222
221
  scrollOffset: 40,
223
222
  container: null,
224
223
  template: null
225
224
  }, C);
226
- var T = R(C.background);
225
+ var T = L(C.background);
227
226
  document.addEventListener("click", i), document.addEventListener("keyup", o), document.addEventListener("scroll", a), window.addEventListener("resize", m);
228
227
  var E = {
229
228
  open: p,
@@ -241,7 +240,7 @@ var j = /* @__PURE__ */ function(e) {
241
240
  };
242
241
  return E;
243
242
  };
244
- function H(e, t) {
243
+ function V(e, t) {
245
244
  t === void 0 && (t = {});
246
245
  var n = t.insertAt;
247
246
  if (e && typeof document < "u") {
@@ -249,10 +248,10 @@ function H(e, t) {
249
248
  i.type = "text/css", n === "top" && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i), i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(document.createTextNode(e));
250
249
  }
251
250
  }
252
- H(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");
251
+ V(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");
253
252
  //#endregion
254
253
  //#region ../../packages/atoms/src/components/image/image.styles.ts
255
- var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}:host([effect=zoom][zoom-style=pop-out]){overflow-clip-margin:var(--column-padding,10px);overflow:clip}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, W = t`
254
+ var H = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container,:host([effect=zoom]) .container{overflow:initial}:host([effect=jump]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}:host([effect=zoom][zoom-style=pop-out]){overflow-clip-margin:var(--column-padding,10px);overflow:clip}.highlighter--effect-text-reveal,:host([effect=zoom]) .highlighter--zoom-style-within-borders{overflow:hidden}:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{z-index:3;animation:none}:host([effect=zoom][zoom-style=pop-out]) .highlighter:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .image{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:after{border-radius:var(--border-radius,none)}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent)}.highlighter--drop-shadow:hover .image{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .highlightable-item{--content-background-color:var(--highlightable-item-highlight-background,transparent);--highlightable-item-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}:host([effect=zoom][zoom-style=within-borders]) .highlighter .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom][zoom-style=within-borders]) .highlighter:hover .image,:host([effect=zoom][zoom-style=pop-out]) .highlighter:hover{transform:scale(var(--highlightable-item-effect-zoom-scale,1))}.highlightable-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}`, U = t`
256
255
  :host {
257
256
  --justify-content: flex-start;
258
257
  --border-radius: 0px;
@@ -306,7 +305,7 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
306
305
  max-height: 100%;
307
306
  }
308
307
 
309
- ${U}
308
+ ${H}
310
309
 
311
310
  :host([block]) {
312
311
  width: 100%;
@@ -616,23 +615,22 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
616
615
  --font-size: var(--cx-font-size-4x-large);
617
616
  color: var(--fallback-icon-color);
618
617
  }
619
- `, G = class extends b {
618
+ `, W = class extends b {
620
619
  constructor(...e) {
621
- super(...e), this.localize = new d(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.aspectRatio = 0, this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = E.Fill, this.cropFocus = T.CenterCenter, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = j.Automatic, this.retryOnError = !1, this.maxRetries = 10, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null, this.#n = "";
620
+ super(...e), this.localize = new d(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.aspectRatio = 0, this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = E.Fill, this.cropFocus = T.CenterCenter, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = A.Automatic, this.retryOnError = !1, this.maxRetries = 10, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
622
621
  }
623
622
  static #e = this.styles = [
624
623
  l,
625
624
  S,
626
- W
625
+ U
627
626
  ];
628
627
  static #t = this.dependencies = {
629
628
  "cx-icon": g,
630
629
  "cx-popup": c,
631
630
  "cx-resize-observer": w,
632
- "cx-skeleton": A,
631
+ "cx-skeleton": k,
633
632
  "cx-space": D
634
633
  };
635
- #n;
636
634
  get currentAltValue() {
637
635
  return this.alt;
638
636
  }
@@ -640,10 +638,10 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
640
638
  return this.src;
641
639
  }
642
640
  get highlighterTabindex() {
643
- return this.hasZoomAction && this.clickHandlerType === j.Automatic ? "0" : void 0;
641
+ return this.hasZoomAction && this.clickHandlerType === A.Automatic ? "0" : void 0;
644
642
  }
645
643
  get highlighterRole() {
646
- return this.hasZoomAction && this.clickHandlerType === j.Automatic ? "button" : "img";
644
+ return this.hasZoomAction && this.clickHandlerType === A.Automatic ? "button" : "img";
647
645
  }
648
646
  get highlighterCropFocusClass() {
649
647
  return this.objectFit === E.Contain ? { [`highlightable-item--crop-focus-${this.cropFocus}`]: !0 } : {};
@@ -722,7 +720,7 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
722
720
  await this.updateComplete, this.requestUpdate();
723
721
  }
724
722
  handleSrcChange() {
725
- this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, this.#n = "", this.clearRetryTimer();
723
+ this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, this.clearRetryTimer();
726
724
  }
727
725
  clearRetryTimer() {
728
726
  this.retryTimer !== null && (clearTimeout(this.retryTimer), this.retryTimer = null);
@@ -730,14 +728,11 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
730
728
  scheduleRetry() {
731
729
  let e = Math.min(1e3 * 2 ** (this.retryCount - 1), 1e4);
732
730
  this.retryTimer = setTimeout(() => {
733
- this.retryTimer = null, this.#n = `${this.retryCount}-${Math.random().toString(36).slice(2)}`, this.retryIndex += 1;
731
+ this.retryTimer = null, this.retryIndex += 1;
734
732
  }, e);
735
733
  }
736
- applyRetryCacheBust(e) {
737
- return this.retryIndex === 0 || !this.#n || !e ? e : O(e, "cachebust", this.#n);
738
- }
739
734
  async initZoom() {
740
- this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = V(this.zoomImageElement, {
735
+ this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = B(this.zoomImageElement, {
741
736
  background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
742
737
  margin: 0,
743
738
  scrollOffset: 0
@@ -772,7 +767,7 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
772
767
  this.lastPatchedWidth = e, this.requestUpdate();
773
768
  }
774
769
  handleClickAction(e) {
775
- e.target instanceof HTMLElement && this.clickHandlerType !== j.Manual && this.canZoom && this.openZoom();
770
+ e.target instanceof HTMLElement && this.clickHandlerType !== A.Manual && this.canZoom && this.openZoom();
776
771
  }
777
772
  updated(e) {
778
773
  super.updated(e);
@@ -783,11 +778,11 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
783
778
  this.zoom && this.zoom.open();
784
779
  }
785
780
  renderContent() {
786
- let t = this.applyRetryCacheBust(this.currentSrc), r = this.currentAltValue;
781
+ let t = this.currentSrc, r = this.currentAltValue;
787
782
  if (this.retryOnError) {
788
783
  if (this.isError && this.retryCount >= this.maxRetries) return n;
789
784
  } else if (this.isError) return n;
790
- return e`<div part="content" slot="anchor" class=${p(this.highlighterClass)}>${k(this.retryIndex, e`<img part="image" class=${p(this.imageClass)} src=${t || this.placeholder} srcset=${m(this.srcset || void 0)} sizes=${m(this.sizes || void 0)} alt=${r} aria-label=${r} crossorigin=${m(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading} decoding="async" width=${m(this.width || void 0)} height=${m(this.height || void 0)}>`)}</div>`;
785
+ return e`<div part="content" slot="anchor" class=${p(this.highlighterClass)}>${O(this.retryIndex, e`<img part="image" class=${p(this.imageClass)} src=${t || this.placeholder} srcset=${m(this.srcset || void 0)} sizes=${m(this.sizes || void 0)} alt=${r} aria-label=${r} crossorigin=${m(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading} decoding="async" width=${m(this.width || void 0)} height=${m(this.height || void 0)}>`)}</div>`;
791
786
  }
792
787
  render() {
793
788
  let t = this.hasZoomAction, r = this.currentAltValue;
@@ -799,93 +794,93 @@ var U = t`:host([effect=jump]) .container,:host([effect=text-reveal]) .container
799
794
  })} style=${_({ "--easing": this.easeCSSVariable })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${m(this.highlighterTabindex)} role=${m(this.highlighterRole)} aria-label=${m(this.highlighterRole ? r : void 0)} aria-roledescription=${m(this.highlighterRole ? this.localize.term("image") : void 0)} class=${p(this.isEmpty ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${h(this.isEmpty, () => n, () => h(this.effect === x.Jump || this.effect === x.Zoom, () => e`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`, () => this.renderContent()))}<div class="zoom-image-container">${h(t, () => e`<img part="zoom-image" class=${p({
800
795
  "zoom-image": !0,
801
796
  "zoom-image--hidden": !this.isZoomed
802
- })} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${m(this.crossorigin)}>`)}</div>${h(this.showPlaceholderSkeleton, () => e`<slot name="skeleton" part="skeleton"><div class=${p({ skeleton: !0 })}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
797
+ })} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${m(this.crossorigin)}>`)}</div>${h(this.showPlaceholderSkeleton, () => e`<slot name="skeleton" part="skeleton"><div class=${p({ skeleton: !0 })}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
803
798
  ${h(this.isError, () => e`<slot name="fallback" part="fallback"><cx-space class=${p({ fallback: !0 })} direction="column" align-items="center" justify-content="center"><cx-icon name="hide_image" part="fallback-icon"> </cx-icon></cx-space></slot>`)}</div></cx-resize-observer>${h(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
804
799
  }
805
800
  };
806
- a([s(".image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)], G.prototype, "imageElement", void 0), a([s(".zoom-image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)], G.prototype, "zoomImageElement", void 0), a([s(".highlighter"), o("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], G.prototype, "highlighterElement", void 0), a([i(), o("design:type", Object)], G.prototype, "isLoaded", void 0), a([i(), o("design:type", Object)], G.prototype, "isError", void 0), a([i(), o("design:type", Object)], G.prototype, "isRetrying", void 0), a([i(), o("design:type", Object)], G.prototype, "retryIndex", void 0), a([r({
801
+ a([s(".image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)], W.prototype, "imageElement", void 0), a([s(".zoom-image"), o("design:type", typeof HTMLImageElement > "u" ? Object : HTMLImageElement)], W.prototype, "zoomImageElement", void 0), a([s(".highlighter"), o("design:type", typeof HTMLDivElement > "u" ? Object : HTMLDivElement)], W.prototype, "highlighterElement", void 0), a([i(), o("design:type", Object)], W.prototype, "isLoaded", void 0), a([i(), o("design:type", Object)], W.prototype, "isError", void 0), a([i(), o("design:type", Object)], W.prototype, "isRetrying", void 0), a([i(), o("design:type", Object)], W.prototype, "retryIndex", void 0), a([r({
807
802
  reflect: !0,
808
803
  type: String
809
- }), o("design:type", String)], G.prototype, "src", void 0), a([r({
804
+ }), o("design:type", String)], W.prototype, "src", void 0), a([r({
810
805
  attribute: "aspect-ratio",
811
806
  reflect: !0,
812
807
  type: Number
813
- }), o("design:type", Object)], G.prototype, "aspectRatio", void 0), a([r({
808
+ }), o("design:type", Object)], W.prototype, "aspectRatio", void 0), a([r({
814
809
  reflect: !0,
815
810
  type: String
816
- }), o("design:type", Object)], G.prototype, "srcset", void 0), a([r({
811
+ }), o("design:type", Object)], W.prototype, "srcset", void 0), a([r({
817
812
  reflect: !0,
818
813
  type: String
819
- }), o("design:type", Object)], G.prototype, "sizes", void 0), a([r({
814
+ }), o("design:type", Object)], W.prototype, "sizes", void 0), a([r({
820
815
  reflect: !0,
821
816
  type: String
822
- }), o("design:type", Object)], G.prototype, "placeholder", void 0), a([r({
817
+ }), o("design:type", Object)], W.prototype, "placeholder", void 0), a([r({
823
818
  reflect: !0,
824
819
  type: String
825
- }), o("design:type", Object)], G.prototype, "alt", void 0), a([r({
820
+ }), o("design:type", Object)], W.prototype, "alt", void 0), a([r({
826
821
  attribute: "object-fit",
827
822
  reflect: !0
828
- }), o("design:type", E === void 0 ? Object : E)], G.prototype, "objectFit", void 0), a([r({
823
+ }), o("design:type", E === void 0 ? Object : E)], W.prototype, "objectFit", void 0), a([r({
829
824
  attribute: "crop-focus",
830
825
  reflect: !0
831
- }), o("design:type", T === void 0 ? Object : T)], G.prototype, "cropFocus", void 0), a([r({
826
+ }), o("design:type", T === void 0 ? Object : T)], W.prototype, "cropFocus", void 0), a([r({
832
827
  reflect: !0,
833
828
  type: Boolean
834
- }), o("design:type", Object)], G.prototype, "skeleton", void 0), a([r({
829
+ }), o("design:type", Object)], W.prototype, "skeleton", void 0), a([r({
835
830
  reflect: !0,
836
831
  type: Boolean
837
- }), o("design:type", Object)], G.prototype, "fallback", void 0), a([r({
832
+ }), o("design:type", Object)], W.prototype, "fallback", void 0), a([r({
838
833
  attribute: "can-zoom",
839
834
  reflect: !0,
840
835
  type: Boolean
841
- }), o("design:type", Object)], G.prototype, "canZoom", void 0), a([r({
836
+ }), o("design:type", Object)], W.prototype, "canZoom", void 0), a([r({
842
837
  reflect: !0,
843
838
  type: Boolean
844
- }), o("design:type", Object)], G.prototype, "loading", void 0), a([r({
839
+ }), o("design:type", Object)], W.prototype, "loading", void 0), a([r({
845
840
  reflect: !0,
846
841
  type: Boolean
847
- }), o("design:type", Object)], G.prototype, "block", void 0), a([r({
842
+ }), o("design:type", Object)], W.prototype, "block", void 0), a([r({
848
843
  attribute: "html-loading",
849
844
  reflect: !0,
850
845
  type: String
851
- }), o("design:type", String)], G.prototype, "htmlLoading", void 0), a([r({
846
+ }), o("design:type", String)], W.prototype, "htmlLoading", void 0), a([r({
852
847
  attribute: "no-crossorigin",
853
848
  reflect: !0,
854
849
  type: Boolean
855
- }), o("design:type", Object)], G.prototype, "noCrossorigin", void 0), a([r({
850
+ }), o("design:type", Object)], W.prototype, "noCrossorigin", void 0), a([r({
856
851
  attribute: "click-handler-type",
857
852
  reflect: !0,
858
853
  type: String
859
- }), o("design:type", j === void 0 ? Object : j)], G.prototype, "clickHandlerType", void 0), a([r({
854
+ }), o("design:type", A === void 0 ? Object : A)], W.prototype, "clickHandlerType", void 0), a([r({
860
855
  attribute: "retry-on-error",
861
856
  reflect: !0,
862
857
  type: Boolean
863
- }), o("design:type", Object)], G.prototype, "retryOnError", void 0), a([r({
858
+ }), o("design:type", Object)], W.prototype, "retryOnError", void 0), a([r({
864
859
  attribute: "max-retries",
865
860
  type: Number
866
- }), o("design:type", Object)], G.prototype, "maxRetries", void 0), a([i(), o("design:type", Object)], G.prototype, "isZoomed", void 0), a([i(), o("design:type", Object)], G.prototype, "imageRatio", void 0), a([i(), o("design:type", String)], G.prototype, "parsedAlt", void 0), a([i(), o("design:type", String)], G.prototype, "parsedAltDarkMode", void 0), a([
861
+ }), o("design:type", Object)], W.prototype, "maxRetries", void 0), a([i(), o("design:type", Object)], W.prototype, "isZoomed", void 0), a([i(), o("design:type", Object)], W.prototype, "imageRatio", void 0), a([i(), o("design:type", String)], W.prototype, "parsedAlt", void 0), a([i(), o("design:type", String)], W.prototype, "parsedAltDarkMode", void 0), a([
867
862
  f("isLoaded"),
868
863
  f("canZoom", { waitUntilFirstUpdate: !0 }),
869
864
  o("design:type", Function),
870
865
  o("design:paramtypes", []),
871
866
  o("design:returntype", Promise)
872
- ], G.prototype, "handleCanZoomChange", null), a([
867
+ ], W.prototype, "handleCanZoomChange", null), a([
873
868
  f("objectFit", { waitUntilFirstUpdate: !0 }),
874
869
  o("design:type", Function),
875
870
  o("design:paramtypes", []),
876
871
  o("design:returntype", Promise)
877
- ], G.prototype, "handleObjectFitChange", null), a([
872
+ ], W.prototype, "handleObjectFitChange", null), a([
878
873
  f("src"),
879
874
  f("srcDarkMode"),
880
875
  o("design:type", Function),
881
876
  o("design:paramtypes", []),
882
877
  o("design:returntype", void 0)
883
- ], G.prototype, "handleSrcChange", null), a([
878
+ ], W.prototype, "handleSrcChange", null), a([
884
879
  C(100),
885
880
  o("design:type", Function),
886
881
  o("design:paramtypes", [Number]),
887
882
  o("design:returntype", void 0)
888
- ], G.prototype, "updateLastPatchedWidth", null), G = a([u("cx-image")], G);
889
- var K = G;
883
+ ], W.prototype, "updateLastPatchedWidth", null), W = a([u("cx-image")], W);
884
+ var G = W;
890
885
  //#endregion
891
- export { j as n, K as t };
886
+ export { A as n, G as t };
@@ -13,7 +13,7 @@ import { t as g } from "./tooltip.O-5jGui7.js";
13
13
  import { a as _ } from "./src.BJhIYoMP.js";
14
14
  import { t as v } from "./repeat.CKv9FPlC.js";
15
15
  import { t as y } from "./space.Dd8jezXK.js";
16
- import { t as b } from "./image.CXQJO9if.js";
16
+ import { t as b } from "./image.wVxvwZxr.js";
17
17
  import { t as x } from "./grid.CK4PRwur.js";
18
18
  import { t as S } from "./grid-item.CSieaU5T.js";
19
19
  import { t as C } from "./sortable.esm.W3y3EWKS.js";
@@ -14,7 +14,7 @@ import "./line-clamp.biFX066w.js";
14
14
  import "./tag.kF4Izxei.js";
15
15
  import "./array-line-clamp.eDLjR1nZ.js";
16
16
  import "./typography.B0mkhqTB.js";
17
- import "./audio.OVvnRj2a.js";
17
+ import "./audio.Dr0Hus7H.js";
18
18
  import "./avatar.Ce0OZHBT.js";
19
19
  import "./badge.H_UuxPXn.js";
20
20
  import "./box.DvLxXaBD.js";
@@ -44,8 +44,8 @@ import "./divider.CqSNZCU8.js";
44
44
  import "./diff.DAFtnzhM.js";
45
45
  import "./drawer.CqpMBED_.js";
46
46
  import "./progress-bar.BSTyftIm.js";
47
- import "./document-viewer.6SnAxejc.js";
48
- import "./image.CXQJO9if.js";
47
+ import "./document-viewer.BKdDZ9MG.js";
48
+ import "./image.wVxvwZxr.js";
49
49
  import "./skeleton.BtwugOTG.js";
50
50
  import "./dot-pagination.ka2dgd3K.js";
51
51
  import "./dot-status.BATg_Fn-.js";
@@ -83,7 +83,7 @@ import "./stepper.cJSgSSMJ.js";
83
83
  import "./switch.CBho2RVW.js";
84
84
  import "./timecode.DME2imtx.js";
85
85
  import "./tree.BP9r-4UR.js";
86
- import "./video.Bv7f2jDe.js";
86
+ import "./video.C9tEIck_.js";
87
87
  //#region ../../packages/atoms/src/components/animation/animations.ts
88
88
  function r() {
89
89
  return Object.entries(t).filter(([e]) => e !== "easings").map(([e]) => e);