@orangelogic/design-system 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/library/chunks/{asset-link-format.Ds5nq4mo.js → asset-link-format.BnIUG_vO.js} +19 -18
  2. package/library/chunks/{button.BnkkUqiI.js → button.CpY4FCwE.js} +1 -1
  3. package/library/chunks/{color-swatch-group.d5e1sYos.js → color-swatch-group.CTcv62MK.js} +11 -10
  4. package/library/chunks/{color-swatch.D6Gg5bpz.js → color-swatch.Caved2kL.js} +1 -1
  5. package/library/chunks/{confirm-popover.tftDINBg.js → confirm-popover.BSS1VhB2.js} +3 -3
  6. package/library/chunks/content-builder.BX4pHujE.js +60 -0
  7. package/library/chunks/{dialog.CzSaiGBF.js → dialog.ICoCAj6Z.js} +4 -4
  8. package/library/chunks/{document-viewer.B1EEIvUY.js → document-viewer.D6PxGcEL.js} +8 -7
  9. package/library/chunks/{dot-pagination.BqGFeFXK.js → dot-pagination.CzVpiv00.js} +1 -1
  10. package/library/chunks/{folder-select.CIqVGGFl.js → folder-select.DN-JomDt.js} +4 -4
  11. package/library/chunks/{header.CWlWNree.js → header.BQg_JjHw.js} +1 -1
  12. package/library/chunks/{i18n.DbXTTLXx.js → i18n.BA19xtyU.js} +6 -3
  13. package/library/chunks/{icon-button.BHC52xvk.js → icon-button.BWJ1Vqn5.js} +1 -1
  14. package/library/chunks/{iframe.-GCTFas1.js → iframe.Dm-nXSBv.js} +1 -1
  15. package/library/chunks/{image.CTMzUqCC.js → image.B-4cVbol.js} +187 -188
  16. package/library/chunks/{input.33UmFGqR.js → input.xgeLCG8I.js} +1 -1
  17. package/library/chunks/{markdown.Dga4_SbU.js → markdown.bkEjjjS9.js} +2 -2
  18. package/library/chunks/menu-item.DgUMVYe5.js +493 -0
  19. package/library/chunks/{option.B6odSlS2.js → option.jeaj7_Lr.js} +1 -1
  20. package/library/chunks/{pagination.D50ned8_.js → pagination.CSPKsj4y.js} +5 -5
  21. package/library/chunks/{tab-group.DE0RsMX4.js → tab-group.BSl6GdIO.js} +4 -4
  22. package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
  23. package/library/chunks/transformation.CWKaoGaY.js +254 -0
  24. package/library/chunks/{tree.CmEdKtzK.js → tree.DYFFjW1-.js} +1 -1
  25. package/library/components/alert.js +2 -2
  26. package/library/components/asset-link-format.js +4 -4
  27. package/library/components/atoms.js +31 -31
  28. package/library/components/audio.js +2 -2
  29. package/library/components/border-input-group.js +2 -2
  30. package/library/components/breadcrumb.js +1 -1
  31. package/library/components/button.js +2 -2
  32. package/library/components/color-picker.js +3 -3
  33. package/library/components/color-swatch-group.js +5 -5
  34. package/library/components/color-swatch.js +2 -2
  35. package/library/components/confirm-popover.js +4 -4
  36. package/library/components/copy-button.js +1 -1
  37. package/library/components/corner-position-input-group.js +3 -3
  38. package/library/components/date-calendar.js +1 -1
  39. package/library/components/details.js +1 -1
  40. package/library/components/dialog.js +3 -3
  41. package/library/components/document-viewer.js +3 -3
  42. package/library/components/dot-pagination.js +2 -2
  43. package/library/components/drawer.js +4 -4
  44. package/library/components/dropdown.js +2 -2
  45. package/library/components/dynamic-select.js +4 -4
  46. package/library/components/e-chart.js +1 -1
  47. package/library/components/element-clamp.js +2 -2
  48. package/library/components/file-on-demand.js +9 -9
  49. package/library/components/folder-select.js +4 -4
  50. package/library/components/format-bytes.js +1 -1
  51. package/library/components/format-date.js +1 -1
  52. package/library/components/format-number.js +1 -1
  53. package/library/components/format-time.js +1 -1
  54. package/library/components/header.js +2 -2
  55. package/library/components/icon-button.js +2 -2
  56. package/library/components/iframe.js +2 -2
  57. package/library/components/image-comparer.js +1 -1
  58. package/library/components/image.js +3 -4
  59. package/library/components/input.js +2 -2
  60. package/library/components/line-clamp.js +1 -1
  61. package/library/components/markdown.js +3 -3
  62. package/library/components/masonry.js +113 -100
  63. package/library/components/menu-item.js +15 -486
  64. package/library/components/menu.js +20 -20
  65. package/library/components/molecules.js +3 -3
  66. package/library/components/option.js +2 -2
  67. package/library/components/organisms.js +2 -2
  68. package/library/components/padding-input-group.js +1 -1
  69. package/library/components/pagination.js +6 -6
  70. package/library/components/popup.js +101 -98
  71. package/library/components/position-picker.js +1 -1
  72. package/library/components/progress-bar.js +1 -1
  73. package/library/components/progress-ring.js +1 -1
  74. package/library/components/range.js +1 -1
  75. package/library/components/rating.js +1 -1
  76. package/library/components/relative-time.js +1 -1
  77. package/library/components/select.js +18 -13
  78. package/library/components/shadow-input-group.js +1 -1
  79. package/library/components/share-option-list.js +1 -1
  80. package/library/components/sidebar.js +1 -1
  81. package/library/components/size-input-group.js +3 -3
  82. package/library/components/spinner.js +1 -1
  83. package/library/components/split-panel.js +1 -1
  84. package/library/components/tab-group.js +5 -5
  85. package/library/components/tab.js +2 -2
  86. package/library/components/tag.js +2 -2
  87. package/library/components/tooltip.js +1 -1
  88. package/library/components/tree-item.js +2 -2
  89. package/library/components/tree.js +2 -2
  90. package/library/components/typeface.js +2 -2
  91. package/library/components/types.js +15020 -14844
  92. package/library/components/video.js +2 -2
  93. package/library/package.json +1 -1
  94. package/library/packages/atoms/src/components/image/image.d.ts +30 -4
  95. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +5 -2
  96. package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
  97. package/library/packages/atoms/src/components/select/select.d.ts +8 -0
  98. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  99. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +1 -0
  100. package/library/packages/molecules/src/masonry/masonry.d.ts +9 -0
  101. package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +8 -0
  102. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +88 -0
  103. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +11 -1
  104. package/library/packages/organisms/src/content-builder/content-builder.d.ts +31 -6
  105. package/library/packages/types/src/menu-item.d.ts +12 -1
  106. package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
  107. package/library/packages/utils/src/transformation/transformation.d.ts +52 -0
  108. package/library/react-web-component.d.ts +17 -1
  109. package/library/utils.js +173 -167
  110. package/package.json +1 -1
  111. package/library/chunks/transformation.8uLv6uwG.js +0 -264
@@ -1,27 +1,26 @@
1
- import { r as Re, R as Se, H as V, a as ie, b as $e } from "./resizable-component.styles.CAfXABBc.js";
1
+ import { r as Se, R as Re, H as K, a as ie, b as $e } from "./resizable-component.styles.CAfXABBc.js";
2
2
  import { c as He } from "./component.styles.CRO4Odto.js";
3
3
  import { a as Te } from "./index.Cpamj0jB.js";
4
4
  import { c as Ae } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as Oe } from "./debounce.DaHuiSGU.js";
6
- import { L as je } from "./i18n.DbXTTLXx.js";
7
- import { w as I } from "./watch.DJF5K-8U.js";
6
+ import { L as je } from "./i18n.BA19xtyU.js";
7
+ import { w as M } from "./watch.DJF5K-8U.js";
8
8
  import { a as Ze } from "./url.CGdWC06g.js";
9
- import { i as se, E as K, x as E } from "./lit-element.jLBm65_O.js";
10
- import { n as v } from "./lib-cortex-element.CVMmyPMC.js";
11
- import { r as k } from "./state.CSDxrqLd.js";
9
+ import { i as se, E as X, x as L } from "./lit-element.jLBm65_O.js";
10
+ import { n as p } from "./lib-cortex-element.CVMmyPMC.js";
11
+ import { r as E } from "./state.CSDxrqLd.js";
12
12
  import { e as G } from "./query.BBf1UFkC.js";
13
- import { e as C } from "./class-map.BiVq-cVR.js";
14
- import { o as X } from "./if-defined.BRoBj_Rp.js";
13
+ import { e as S } from "./class-map.BiVq-cVR.js";
14
+ import { o as R } from "./if-defined.BRoBj_Rp.js";
15
15
  import { i as Ie } from "./keyed.DdOUTIg-.js";
16
16
  import { o as Me } from "./style-map.llVFPd__.js";
17
- import { n as S } from "./when.Dr1es41R.js";
17
+ import { n as A } from "./when.Dr1es41R.js";
18
18
  import { C as _e } from "./icon.CpHbi8tH.js";
19
19
  import Pe from "../components/popup.js";
20
20
  import Ne from "../components/resize-observer.js";
21
21
  import We from "../components/skeleton.js";
22
22
  import Be from "../components/space.js";
23
- import Fe from "../components/spinner.js";
24
- var Z = /* @__PURE__ */ ((i) => (i.Automatic = "automatic", i.Manual = "manual", i))(Z || {});
23
+ var I = /* @__PURE__ */ ((i) => (i.Automatic = "automatic", i.Manual = "manual", i))(I || {});
25
24
  /*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */
26
25
  var $ = Object.assign || function(i) {
27
26
  for (var t = 1; t < arguments.length; t++) {
@@ -30,30 +29,30 @@ var $ = Object.assign || function(i) {
30
29
  Object.prototype.hasOwnProperty.call(o, l) && (i[l] = o[l]);
31
30
  }
32
31
  return i;
33
- }, W = function(t) {
32
+ }, B = function(t) {
34
33
  return t.tagName === "IMG";
35
- }, Ue = function(t) {
34
+ }, Fe = function(t) {
36
35
  return NodeList.prototype.isPrototypeOf(t);
37
- }, B = function(t) {
36
+ }, F = function(t) {
38
37
  return t && t.nodeType === 1;
39
38
  }, oe = function(t) {
40
39
  var o = t.currentSrc || t.src;
41
40
  return o.substr(-4).toLowerCase() === ".svg";
42
41
  }, re = function(t) {
43
42
  try {
44
- return Array.isArray(t) ? t.filter(W) : Ue(t) ? [].slice.call(t).filter(W) : B(t) ? [t].filter(W) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(W) : [];
43
+ return Array.isArray(t) ? t.filter(B) : Fe(t) ? [].slice.call(t).filter(B) : F(t) ? [t].filter(B) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(B) : [];
45
44
  } catch {
46
45
  throw new TypeError(`The provided selector is invalid.
47
46
  Expects a CSS selector, a Node element, a NodeList or an array.
48
47
  See: https://github.com/francoischalifour/medium-zoom`);
49
48
  }
50
- }, De = function(t) {
49
+ }, Ue = function(t) {
51
50
  var o = document.createElement("div");
52
51
  return o.classList.add("medium-zoom-overlay"), o.style.background = t, o;
53
- }, qe = function(t) {
54
- var o = t.getBoundingClientRect(), l = o.top, c = o.left, L = o.width, R = o.height, b = t.cloneNode(), F = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, M = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
55
- return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = l + F + "px", b.style.left = c + M + "px", b.style.width = L + "px", b.style.height = R + "px", b.style.transform = "", b;
56
- }, A = function(t, o) {
52
+ }, De = function(t) {
53
+ var o = t.getBoundingClientRect(), l = o.top, c = o.left, C = o.width, k = o.height, b = t.cloneNode(), U = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, _ = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
54
+ return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = l + U + "px", b.style.left = c + _ + "px", b.style.width = C + "px", b.style.height = k + "px", b.style.transform = "", b;
55
+ }, O = function(t, o) {
57
56
  var l = $({
58
57
  bubbles: !1,
59
58
  cancelable: !1,
@@ -63,106 +62,106 @@ See: https://github.com/francoischalifour/medium-zoom`);
63
62
  return new CustomEvent(t, l);
64
63
  var c = document.createEvent("CustomEvent");
65
64
  return c.initCustomEvent(t, l.bubbles, l.cancelable, l.detail), c;
66
- }, Ye = function i(t) {
65
+ }, qe = function i(t) {
67
66
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = window.Promise || function(r) {
68
67
  function a() {
69
68
  }
70
69
  r(a, a);
71
70
  }, c = function(r) {
72
71
  var a = r.target;
73
- if (a === P) {
72
+ if (a === N) {
74
73
  x();
75
74
  return;
76
75
  }
77
76
  y.indexOf(a) !== -1 && Q({ target: a });
78
- }, L = function() {
77
+ }, C = function() {
79
78
  if (!(H || !e.original)) {
80
79
  var r = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
81
80
  Math.abs(ee - r) > d.scrollOffset && setTimeout(x, 150);
82
81
  }
83
- }, R = function(r) {
82
+ }, k = function(r) {
84
83
  var a = r.key || r.keyCode;
85
84
  (a === "Escape" || a === "Esc" || a === 27) && x();
86
85
  }, b = function() {
87
86
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r;
88
- if (r.background && (P.style.background = r.background), r.container && r.container instanceof Object && (a.container = $({}, d.container, r.container)), r.template) {
89
- var m = B(r.template) ? r.template : document.querySelector(r.template);
87
+ if (r.background && (N.style.background = r.background), r.container && r.container instanceof Object && (a.container = $({}, d.container, r.container)), r.template) {
88
+ var m = F(r.template) ? r.template : document.querySelector(r.template);
90
89
  a.template = m;
91
90
  }
92
91
  return d = $({}, d, a), y.forEach(function(g) {
93
- g.dispatchEvent(A("medium-zoom:update", {
92
+ g.dispatchEvent(O("medium-zoom:update", {
94
93
  detail: { zoom: u }
95
94
  }));
96
95
  }), u;
97
- }, F = function() {
96
+ }, U = function() {
98
97
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
99
98
  return i($({}, d, r));
100
- }, M = function() {
99
+ }, _ = function() {
101
100
  for (var r = arguments.length, a = Array(r), m = 0; m < r; m++)
102
101
  a[m] = arguments[m];
103
- var g = a.reduce(function(n, f) {
104
- return [].concat(n, re(f));
102
+ var g = a.reduce(function(s, v) {
103
+ return [].concat(s, re(v));
105
104
  }, []);
106
- return g.filter(function(n) {
107
- return y.indexOf(n) === -1;
108
- }).forEach(function(n) {
109
- y.push(n), n.classList.add("medium-zoom-image");
110
- }), _.forEach(function(n) {
111
- var f = n.type, z = n.listener, T = n.options;
105
+ return g.filter(function(s) {
106
+ return y.indexOf(s) === -1;
107
+ }).forEach(function(s) {
108
+ y.push(s), s.classList.add("medium-zoom-image");
109
+ }), P.forEach(function(s) {
110
+ var v = s.type, z = s.listener, T = s.options;
112
111
  g.forEach(function(w) {
113
- w.addEventListener(f, z, T);
112
+ w.addEventListener(v, z, T);
114
113
  });
115
114
  }), u;
116
115
  }, de = function() {
117
116
  for (var r = arguments.length, a = Array(r), m = 0; m < r; m++)
118
117
  a[m] = arguments[m];
119
118
  e.zoomed && x();
120
- var g = a.length > 0 ? a.reduce(function(n, f) {
121
- return [].concat(n, re(f));
119
+ var g = a.length > 0 ? a.reduce(function(s, v) {
120
+ return [].concat(s, re(v));
122
121
  }, []) : y;
123
- return g.forEach(function(n) {
124
- n.classList.remove("medium-zoom-image"), n.dispatchEvent(A("medium-zoom:detach", {
122
+ return g.forEach(function(s) {
123
+ s.classList.remove("medium-zoom-image"), s.dispatchEvent(O("medium-zoom:detach", {
125
124
  detail: { zoom: u }
126
125
  }));
127
- }), y = y.filter(function(n) {
128
- return g.indexOf(n) === -1;
126
+ }), y = y.filter(function(s) {
127
+ return g.indexOf(s) === -1;
129
128
  }), u;
130
129
  }, ce = function(r, a) {
131
130
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
132
131
  return y.forEach(function(g) {
133
132
  g.addEventListener("medium-zoom:" + r, a, m);
134
- }), _.push({ type: "medium-zoom:" + r, listener: a, options: m }), u;
133
+ }), P.push({ type: "medium-zoom:" + r, listener: a, options: m }), u;
135
134
  }, me = function(r, a) {
136
135
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
137
136
  return y.forEach(function(g) {
138
137
  g.removeEventListener("medium-zoom:" + r, a, m);
139
- }), _ = _.filter(function(g) {
138
+ }), P = P.filter(function(g) {
140
139
  return !(g.type === "medium-zoom:" + r && g.listener.toString() === a.toString());
141
140
  }), u;
142
141
  }, J = function() {
143
142
  var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = r.target, m = function() {
144
- var n = {
143
+ var s = {
145
144
  width: document.documentElement.clientWidth,
146
145
  height: document.documentElement.clientHeight,
147
146
  left: 0,
148
147
  top: 0,
149
148
  right: 0,
150
149
  bottom: 0
151
- }, f = void 0, z = void 0;
150
+ }, v = void 0, z = void 0;
152
151
  if (d.container)
153
152
  if (d.container instanceof Object)
154
- n = $({}, n, d.container), f = n.width - n.left - n.right - d.margin * 2, z = n.height - n.top - n.bottom - d.margin * 2;
153
+ s = $({}, s, d.container), v = s.width - s.left - s.right - d.margin * 2, z = s.height - s.top - s.bottom - d.margin * 2;
155
154
  else {
156
- var T = B(d.container) ? d.container : document.querySelector(d.container), w = T.getBoundingClientRect(), U = w.width, fe = w.height, ve = w.left, ye = w.top;
157
- n = $({}, n, {
158
- width: U,
155
+ var T = F(d.container) ? d.container : document.querySelector(d.container), w = T.getBoundingClientRect(), D = w.width, fe = w.height, ve = w.left, ye = w.top;
156
+ s = $({}, s, {
157
+ width: D,
159
158
  height: fe,
160
159
  left: ve,
161
160
  top: ye
162
161
  });
163
162
  }
164
- f = f || n.width - d.margin * 2, z = z || n.height - d.margin * 2;
165
- var j = e.zoomedHd || e.original, ze = oe(j) ? f : j.naturalWidth || f, be = oe(j) ? z : j.naturalHeight || z, N = j.getBoundingClientRect(), xe = N.top, we = N.left, D = N.width, q = N.height, Ee = Math.min(Math.max(D, ze), f) / D, Ce = Math.min(Math.max(q, be), z) / q, Y = Math.min(Ee, Ce), ke = (-we + (f - D) / 2 + d.margin + n.left) / Y, Le = (-xe + (z - q) / 2 + d.margin + n.top) / Y, te = "scale(" + Y + ") translate3d(" + ke + "px, " + Le + "px, 0)";
163
+ v = v || s.width - d.margin * 2, z = z || s.height - d.margin * 2;
164
+ var Z = e.zoomedHd || e.original, ze = oe(Z) ? v : Z.naturalWidth || v, be = oe(Z) ? z : Z.naturalHeight || z, W = Z.getBoundingClientRect(), xe = W.top, we = W.left, q = W.width, Y = W.height, Ee = Math.min(Math.max(q, ze), v) / q, Ce = Math.min(Math.max(Y, be), z) / Y, V = Math.min(Ee, Ce), ke = (-we + (v - q) / 2 + d.margin + s.left) / V, Le = (-xe + (z - Y) / 2 + d.margin + s.top) / V, te = "scale(" + V + ") translate3d(" + ke + "px, " + Le + "px, 0)";
166
165
  e.zoomed.style.transform = te, e.zoomedHd && (e.zoomedHd.style.transform = te);
167
166
  };
168
167
  return new l(function(g) {
@@ -170,8 +169,8 @@ See: https://github.com/francoischalifour/medium-zoom`);
170
169
  g(u);
171
170
  return;
172
171
  }
173
- var n = function U() {
174
- H = !1, e.zoomed.removeEventListener("transitionend", U), e.original.dispatchEvent(A("medium-zoom:opened", {
172
+ var s = function D() {
173
+ H = !1, e.zoomed.removeEventListener("transitionend", D), e.original.dispatchEvent(O("medium-zoom:opened", {
175
174
  detail: { zoom: u }
176
175
  })), g(u);
177
176
  };
@@ -182,21 +181,21 @@ See: https://github.com/francoischalifour/medium-zoom`);
182
181
  if (a)
183
182
  e.original = a;
184
183
  else if (y.length > 0) {
185
- var f = y;
186
- e.original = f[0];
184
+ var v = y;
185
+ e.original = v[0];
187
186
  } else {
188
187
  g(u);
189
188
  return;
190
189
  }
191
- if (e.original.dispatchEvent(A("medium-zoom:open", {
190
+ if (e.original.dispatchEvent(O("medium-zoom:open", {
192
191
  detail: { zoom: u }
193
- })), ee = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, H = !0, e.zoomed = qe(e.original), document.body.appendChild(P), d.template) {
194
- var z = B(d.template) ? d.template : document.querySelector(d.template);
192
+ })), ee = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, H = !0, e.zoomed = De(e.original), document.body.appendChild(N), d.template) {
193
+ var z = F(d.template) ? d.template : document.querySelector(d.template);
195
194
  e.template = document.createElement("div"), e.template.appendChild(z.content.cloneNode(!0)), document.body.appendChild(e.template);
196
195
  }
197
196
  if (e.original.parentElement && e.original.parentElement.tagName === "PICTURE" && e.original.currentSrc && (e.zoomed.src = e.original.currentSrc), document.body.appendChild(e.zoomed), window.requestAnimationFrame(function() {
198
197
  document.body.classList.add("medium-zoom--opened");
199
- }), e.original.classList.add("medium-zoom-image--hidden"), e.zoomed.classList.add("medium-zoom-image--opened"), e.zoomed.addEventListener("click", x), e.zoomed.addEventListener("transitionend", n), e.original.getAttribute("data-zoom-src")) {
198
+ }), e.original.classList.add("medium-zoom-image--hidden"), e.zoomed.classList.add("medium-zoom-image--opened"), e.zoomed.addEventListener("click", x), e.zoomed.addEventListener("transitionend", s), e.original.getAttribute("data-zoom-src")) {
200
199
  e.zoomedHd = e.zoomed.cloneNode(), e.zoomedHd.removeAttribute("srcset"), e.zoomedHd.removeAttribute("sizes"), e.zoomedHd.removeAttribute("loading"), e.zoomedHd.src = e.zoomed.getAttribute("data-zoom-src"), e.zoomedHd.onerror = function() {
201
200
  clearInterval(T), console.warn("Unable to reach the zoom image target " + e.zoomedHd.src), e.zoomedHd = null, m();
202
201
  };
@@ -218,11 +217,11 @@ See: https://github.com/francoischalifour/medium-zoom`);
218
217
  return;
219
218
  }
220
219
  var a = function m() {
221
- e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(P), e.zoomed.classList.remove("medium-zoom-image--opened"), e.template && document.body.removeChild(e.template), H = !1, e.zoomed.removeEventListener("transitionend", m), e.original.dispatchEvent(A("medium-zoom:closed", {
220
+ e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(N), e.zoomed.classList.remove("medium-zoom-image--opened"), e.template && document.body.removeChild(e.template), H = !1, e.zoomed.removeEventListener("transitionend", m), e.original.dispatchEvent(O("medium-zoom:closed", {
222
221
  detail: { zoom: u }
223
222
  })), e.original = null, e.zoomed = null, e.zoomedHd = null, e.template = null, r(u);
224
223
  };
225
- H = !0, document.body.classList.remove("medium-zoom--opened"), e.zoomed.style.transform = "", e.zoomedHd && (e.zoomedHd.style.transform = ""), e.template && (e.template.style.transition = "opacity 150ms", e.template.style.opacity = 0), e.original.dispatchEvent(A("medium-zoom:close", {
224
+ H = !0, document.body.classList.remove("medium-zoom--opened"), e.zoomed.style.transform = "", e.zoomedHd && (e.zoomedHd.style.transform = ""), e.template && (e.template.style.transition = "opacity 150ms", e.template.style.opacity = 0), e.original.dispatchEvent(O("medium-zoom:close", {
226
225
  detail: { zoom: u }
227
226
  })), e.zoomed.addEventListener("transitionend", a);
228
227
  });
@@ -235,29 +234,29 @@ See: https://github.com/francoischalifour/medium-zoom`);
235
234
  return y;
236
235
  }, pe = function() {
237
236
  return e.original;
238
- }, y = [], _ = [], H = !1, ee = 0, d = o, e = {
237
+ }, y = [], P = [], H = !1, ee = 0, d = o, e = {
239
238
  original: null,
240
239
  zoomed: null,
241
240
  zoomedHd: null,
242
241
  template: null
243
242
  // If the selector is omitted, it's replaced by the options
244
243
  };
245
- Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && M(t), d = $({
244
+ Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && _(t), d = $({
246
245
  margin: 0,
247
246
  background: "#fff",
248
247
  scrollOffset: 40,
249
248
  container: null,
250
249
  template: null
251
250
  }, d);
252
- var P = De(d.background);
253
- document.addEventListener("click", c), document.addEventListener("keyup", R), document.addEventListener("scroll", L), window.addEventListener("resize", x);
251
+ var N = Ue(d.background);
252
+ document.addEventListener("click", c), document.addEventListener("keyup", k), document.addEventListener("scroll", C), window.addEventListener("resize", x);
254
253
  var u = {
255
254
  open: J,
256
255
  close: x,
257
256
  toggle: Q,
258
257
  update: b,
259
- clone: F,
260
- attach: M,
258
+ clone: U,
259
+ attach: _,
261
260
  detach: de,
262
261
  on: ce,
263
262
  off: me,
@@ -267,7 +266,7 @@ See: https://github.com/francoischalifour/medium-zoom`);
267
266
  };
268
267
  return u;
269
268
  };
270
- function Ve(i, t) {
269
+ function Ye(i, t) {
271
270
  t === void 0 && (t = {});
272
271
  var o = t.insertAt;
273
272
  if (!(typeof document > "u")) {
@@ -275,9 +274,9 @@ function Ve(i, t) {
275
274
  c.type = "text/css", o === "top" && l.firstChild ? l.insertBefore(c, l.firstChild) : l.appendChild(c), c.styleSheet ? c.styleSheet.cssText = i : c.appendChild(document.createTextNode(i));
276
275
  }
277
276
  }
278
- var Ke = ".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}";
279
- Ve(Ke);
280
- const Xe = se`: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)}`, Ge = se`
277
+ var Ve = ".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}";
278
+ Ye(Ve);
279
+ const Ke = se`: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)}`, Xe = se`
281
280
  :host {
282
281
  --justify-content: flex-start;
283
282
  --border-radius: 0px;
@@ -331,7 +330,7 @@ const Xe = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
331
330
  max-height: 100%;
332
331
  }
333
332
 
334
- ${Xe}
333
+ ${Ke}
335
334
 
336
335
  :host([block]) {
337
336
  width: 100%;
@@ -523,18 +522,6 @@ const Xe = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
523
522
  --border-radius: 0;
524
523
  }
525
524
 
526
- .retry-spinner {
527
- position: absolute;
528
- inset: 0;
529
- display: flex;
530
- align-items: center;
531
- justify-content: center;
532
- }
533
-
534
- .retry-spinner cx-spinner {
535
- font-size: var(--cx-font-size-3x-large);
536
- }
537
-
538
525
  .fallback {
539
526
  align-items: center;
540
527
  display: flex;
@@ -548,16 +535,16 @@ const Xe = se`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
548
535
  color: var(--fallback-icon-color);
549
536
  }
550
537
  `;
551
- var Je = Object.defineProperty, Qe = Object.getOwnPropertyDescriptor, le = (i) => {
538
+ var Ge = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, le = (i) => {
552
539
  throw TypeError(i);
553
540
  }, h = (i, t, o, l) => {
554
- for (var c = l > 1 ? void 0 : l ? Qe(t, o) : t, L = i.length - 1, R; L >= 0; L--)
555
- (R = i[L]) && (c = (l ? R(t, o, c) : R(c)) || c);
556
- return l && c && Je(t, o, c), c;
557
- }, he = (i, t, o) => t.has(i) || le("Cannot " + o), ae = (i, t, o) => (he(i, t, "read from private field"), o ? o.call(i) : t.get(i)), et = (i, t, o) => t.has(i) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, o), ne = (i, t, o, l) => (he(i, t, "write to private field"), t.set(i, o), o), O;
558
- let s = class extends Se {
541
+ for (var c = l > 1 ? void 0 : l ? Je(t, o) : t, C = i.length - 1, k; C >= 0; C--)
542
+ (k = i[C]) && (c = (l ? k(t, o, c) : k(c)) || c);
543
+ return l && c && Ge(t, o, c), c;
544
+ }, he = (i, t, o) => t.has(i) || le("Cannot " + o), ae = (i, t, o) => (he(i, t, "read from private field"), o ? o.call(i) : t.get(i)), Qe = (i, t, o) => t.has(i) ? le("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, o), ne = (i, t, o, l) => (he(i, t, "write to private field"), t.set(i, o), o), j;
545
+ let n = class extends Re {
559
546
  constructor() {
560
- super(...arguments), this.localize = new je(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = Te.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = Z.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null, et(this, O, "");
547
+ super(...arguments), this.localize = new je(this), this.retryCount = 0, this.retryTimer = null, this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryIndex = 0, this.src = "", this.srcset = "", this.sizes = "", this.placeholder = "", this.alt = "", this.objectFit = Te.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.noCrossorigin = !1, this.clickHandlerType = I.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null, Qe(this, j, "");
561
548
  }
562
549
  get currentAltValue() {
563
550
  return this.alt;
@@ -566,15 +553,15 @@ let s = class extends Se {
566
553
  return this.src;
567
554
  }
568
555
  get highlighterTabindex() {
569
- return this.hasZoomAction && this.clickHandlerType === Z.Automatic ? "0" : void 0;
556
+ return this.hasZoomAction && this.clickHandlerType === I.Automatic ? "0" : void 0;
570
557
  }
571
558
  get highlighterRole() {
572
- return this.hasZoomAction && this.clickHandlerType === Z.Automatic ? "button" : "img";
559
+ return this.hasZoomAction && this.clickHandlerType === I.Automatic ? "button" : "img";
573
560
  }
574
561
  get highlighterClass() {
575
562
  return {
576
563
  "highlightable-item": !0,
577
- "highlightable-item--effect-text-reveal": this.effect === V.TextReveal,
564
+ "highlightable-item--effect-text-reveal": this.effect === K.TextReveal,
578
565
  [`highlightable-item--text-reveal-style-${this.textRevealStyle}`]: !0
579
566
  };
580
567
  }
@@ -595,6 +582,17 @@ let s = class extends Se {
595
582
  get crossorigin() {
596
583
  return this.noCrossorigin ? void 0 : "anonymous";
597
584
  }
585
+ /**
586
+ * Whether to hold the box with a skeleton rather than the loaded image.
587
+ *
588
+ * Retries are included: a retry is still "not loaded yet", so it keeps the same
589
+ * skeleton instead of swapping in a spinner. A spinner would restate what the
590
+ * skeleton already shows while changing the visual weight of the cell mid-load,
591
+ * which reads as a layout change on an image-heavy page.
592
+ */
593
+ get showPlaceholderSkeleton() {
594
+ return this.isError ? !1 : this.skeleton && !this.isLoaded || this.loading || this.isRetrying;
595
+ }
598
596
  /**
599
597
  * Whether the image have zoom action.
600
598
  */
@@ -638,7 +636,7 @@ let s = class extends Se {
638
636
  await this.updateComplete, this.requestUpdate();
639
637
  }
640
638
  handleSrcChange() {
641
- this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, ne(this, O, ""), this.clearRetryTimer();
639
+ this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, ne(this, j, ""), this.clearRetryTimer();
642
640
  }
643
641
  clearRetryTimer() {
644
642
  this.retryTimer !== null && (clearTimeout(this.retryTimer), this.retryTimer = null);
@@ -646,15 +644,15 @@ let s = class extends Se {
646
644
  scheduleRetry() {
647
645
  const i = Math.min(1e3 * Math.pow(2, this.retryCount - 1), 1e4);
648
646
  this.retryTimer = setTimeout(() => {
649
- this.retryTimer = null, ne(this, O, `${this.retryCount}-${Math.random().toString(36).slice(2)}`), this.retryIndex += 1;
647
+ this.retryTimer = null, ne(this, j, `${this.retryCount}-${Math.random().toString(36).slice(2)}`), this.retryIndex += 1;
650
648
  }, i);
651
649
  }
652
650
  /** Appends the retry cache-bust param to `src` while a retry attempt is in flight, so a CDN edge caching a corrupted/truncated response is bypassed in favor of a fresh origin fetch. */
653
651
  applyRetryCacheBust(i) {
654
- return this.retryIndex === 0 || !ae(this, O) || !i ? i : Ze(i, "cachebust", ae(this, O));
652
+ return this.retryIndex === 0 || !ae(this, j) || !i ? i : Ze(i, "cachebust", ae(this, j));
655
653
  }
656
654
  async initZoom() {
657
- this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Ye(this.zoomImageElement, {
655
+ this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = qe(this.zoomImageElement, {
658
656
  background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
659
657
  margin: 0,
660
658
  scrollOffset: 0
@@ -694,7 +692,7 @@ let s = class extends Se {
694
692
  * Support CMS5 click action for the image.
695
693
  */
696
694
  handleClickAction(i) {
697
- !(i.target instanceof HTMLElement) || this.clickHandlerType === Z.Manual || this.canZoom && this.openZoom();
695
+ !(i.target instanceof HTMLElement) || this.clickHandlerType === I.Manual || this.canZoom && this.openZoom();
698
696
  }
699
697
  updated(i) {
700
698
  super.updated(i), (i.has("width") || i.has("height") || i.has("heightMode") || i.has("resizeSize")) && this.handleSizeChange();
@@ -706,150 +704,151 @@ let s = class extends Se {
706
704
  const i = this.applyRetryCacheBust(this.currentSrc), t = this.currentAltValue;
707
705
  if (this.retryOnError) {
708
706
  if (this.isError && this.retryCount >= this.maxRetries)
709
- return K;
707
+ return X;
710
708
  } else if (this.isError)
711
- return K;
712
- return E`<div part="content" slot="anchor" class=${C(this.highlighterClass)}>${Ie(
709
+ return X;
710
+ return L`<div part="content" slot="anchor" class=${S(this.highlighterClass)}>${Ie(
713
711
  this.retryIndex,
714
- E`<img part="image" class=${C(this.imageClass)} src=${i || this.placeholder} alt=${t} aria-label=${t} crossorigin=${X(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading}>`
712
+ L`<img part="image" class=${S(this.imageClass)} src=${i || this.placeholder} srcset=${R(this.srcset || void 0)} sizes=${R(this.sizes || void 0)} alt=${t} aria-label=${t} crossorigin=${R(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading} decoding="async" width=${R(this.width || void 0)} height=${R(this.height || void 0)}>`
715
713
  )}</div>`;
716
714
  }
717
715
  render() {
718
716
  const i = this.hasZoomAction, t = this.currentAltValue, o = !this.currentSrc && !this.placeholder;
719
- return E`<div part="base" class=${C({
717
+ return L`<div part="base" class=${S({
720
718
  container: !0,
721
719
  "container--empty": o,
722
720
  "container--loading": this.loading,
723
721
  "container--resizing": this.resizable && this.isResizeActive
724
722
  })} style=${Me({
725
723
  "--easing": this.easeCSSVariable
726
- })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${X(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${C(o ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${S(
724
+ })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${R(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${S(o ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${A(
727
725
  o,
728
- () => K,
729
- () => S(
730
- this.effect === V.Jump || this.effect === V.Zoom,
731
- () => E`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
726
+ () => X,
727
+ () => A(
728
+ this.effect === K.Jump || this.effect === K.Zoom,
729
+ () => L`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
732
730
  () => this.renderContent()
733
731
  )
734
- )}<div class="zoom-image-container">${S(
732
+ )}<div class="zoom-image-container">${A(
735
733
  i,
736
- () => E`<img part="zoom-image" class=${C({
734
+ () => L`<img part="zoom-image" class=${S({
737
735
  "zoom-image": !0,
738
736
  "zoom-image--hidden": !this.isZoomed
739
- })} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${X(this.crossorigin)}>`
740
- )}</div>${S(
741
- (this.skeleton && !this.isLoaded && !this.isError || this.loading) && !this.isRetrying,
742
- () => E`<slot name="skeleton" part="skeleton"><div class=${C({
743
- skeleton: !0
744
- })}><cx-skeleton effect="sheen"></cx-skeleton></div></slot>`
745
- )}
746
- ${S(this.isRetrying, () => E`<div part="retry-spinner" class=${C({ "retry-spinner": !0 })}><cx-spinner></cx-spinner></div>`)}
747
- ${S(this.isError, () => E`<slot name="fallback" part="fallback"><cx-space class=${C({ 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>${S(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
737
+ })} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${R(this.crossorigin)}>`
738
+ )}</div>${A(this.showPlaceholderSkeleton, () => L`<slot name="skeleton" part="skeleton"><div class=${S({
739
+ skeleton: !0
740
+ })}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
741
+ ${A(this.isError, () => L`<slot name="fallback" part="fallback"><cx-space class=${S({ 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>${A(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
748
742
  }
749
743
  };
750
- O = /* @__PURE__ */ new WeakMap();
751
- s.styles = [He, Re, Ge];
752
- s.dependencies = {
744
+ j = /* @__PURE__ */ new WeakMap();
745
+ n.styles = [He, Se, Xe];
746
+ n.dependencies = {
753
747
  "cx-icon": _e,
754
748
  "cx-popup": Pe,
755
749
  "cx-resize-observer": Ne,
756
750
  "cx-skeleton": We,
757
- "cx-space": Be,
758
- "cx-spinner": Fe
751
+ "cx-space": Be
759
752
  };
760
753
  h([
761
754
  G(".image")
762
- ], s.prototype, "imageElement", 2);
755
+ ], n.prototype, "imageElement", 2);
763
756
  h([
764
757
  G(".zoom-image")
765
- ], s.prototype, "zoomImageElement", 2);
758
+ ], n.prototype, "zoomImageElement", 2);
766
759
  h([
767
760
  G(".highlighter")
768
- ], s.prototype, "highlighterElement", 2);
761
+ ], n.prototype, "highlighterElement", 2);
762
+ h([
763
+ E()
764
+ ], n.prototype, "isLoaded", 2);
765
+ h([
766
+ E()
767
+ ], n.prototype, "isError", 2);
769
768
  h([
770
- k()
771
- ], s.prototype, "isLoaded", 2);
769
+ E()
770
+ ], n.prototype, "isRetrying", 2);
772
771
  h([
773
- k()
774
- ], s.prototype, "isError", 2);
772
+ E()
773
+ ], n.prototype, "retryIndex", 2);
775
774
  h([
776
- k()
777
- ], s.prototype, "isRetrying", 2);
775
+ p({ reflect: !0, type: String })
776
+ ], n.prototype, "src", 2);
778
777
  h([
779
- k()
780
- ], s.prototype, "retryIndex", 2);
778
+ p({ reflect: !0, type: String })
779
+ ], n.prototype, "srcset", 2);
781
780
  h([
782
- v({ reflect: !0, type: String })
783
- ], s.prototype, "src", 2);
781
+ p({ reflect: !0, type: String })
782
+ ], n.prototype, "sizes", 2);
784
783
  h([
785
- v({ reflect: !0, type: String })
786
- ], s.prototype, "placeholder", 2);
784
+ p({ reflect: !0, type: String })
785
+ ], n.prototype, "placeholder", 2);
787
786
  h([
788
- v({ reflect: !0, type: String })
789
- ], s.prototype, "alt", 2);
787
+ p({ reflect: !0, type: String })
788
+ ], n.prototype, "alt", 2);
790
789
  h([
791
- v({ attribute: "object-fit", reflect: !0 })
792
- ], s.prototype, "objectFit", 2);
790
+ p({ attribute: "object-fit", reflect: !0 })
791
+ ], n.prototype, "objectFit", 2);
793
792
  h([
794
- v({ reflect: !0, type: Boolean })
795
- ], s.prototype, "skeleton", 2);
793
+ p({ reflect: !0, type: Boolean })
794
+ ], n.prototype, "skeleton", 2);
796
795
  h([
797
- v({ reflect: !0, type: Boolean })
798
- ], s.prototype, "fallback", 2);
796
+ p({ reflect: !0, type: Boolean })
797
+ ], n.prototype, "fallback", 2);
799
798
  h([
800
- v({ attribute: "can-zoom", reflect: !0, type: Boolean })
801
- ], s.prototype, "canZoom", 2);
799
+ p({ attribute: "can-zoom", reflect: !0, type: Boolean })
800
+ ], n.prototype, "canZoom", 2);
802
801
  h([
803
- v({ reflect: !0, type: Boolean })
804
- ], s.prototype, "loading", 2);
802
+ p({ reflect: !0, type: Boolean })
803
+ ], n.prototype, "loading", 2);
805
804
  h([
806
- v({ reflect: !0, type: Boolean })
807
- ], s.prototype, "block", 2);
805
+ p({ reflect: !0, type: Boolean })
806
+ ], n.prototype, "block", 2);
808
807
  h([
809
- v({ attribute: "html-loading", reflect: !0, type: String })
810
- ], s.prototype, "htmlLoading", 2);
808
+ p({ attribute: "html-loading", reflect: !0, type: String })
809
+ ], n.prototype, "htmlLoading", 2);
811
810
  h([
812
- v({ attribute: "no-crossorigin", reflect: !0, type: Boolean })
813
- ], s.prototype, "noCrossorigin", 2);
811
+ p({ attribute: "no-crossorigin", reflect: !0, type: Boolean })
812
+ ], n.prototype, "noCrossorigin", 2);
814
813
  h([
815
- v({ attribute: "click-handler-type", reflect: !0, type: String })
816
- ], s.prototype, "clickHandlerType", 2);
814
+ p({ attribute: "click-handler-type", reflect: !0, type: String })
815
+ ], n.prototype, "clickHandlerType", 2);
817
816
  h([
818
- v({ attribute: "retry-on-error", reflect: !0, type: Boolean })
819
- ], s.prototype, "retryOnError", 2);
817
+ p({ attribute: "retry-on-error", reflect: !0, type: Boolean })
818
+ ], n.prototype, "retryOnError", 2);
820
819
  h([
821
- v({ attribute: "max-retries", type: Number })
822
- ], s.prototype, "maxRetries", 2);
820
+ p({ attribute: "max-retries", type: Number })
821
+ ], n.prototype, "maxRetries", 2);
823
822
  h([
824
- k()
825
- ], s.prototype, "isZoomed", 2);
823
+ E()
824
+ ], n.prototype, "isZoomed", 2);
826
825
  h([
827
- k()
828
- ], s.prototype, "imageRatio", 2);
826
+ E()
827
+ ], n.prototype, "imageRatio", 2);
829
828
  h([
830
- k()
831
- ], s.prototype, "parsedAlt", 2);
829
+ E()
830
+ ], n.prototype, "parsedAlt", 2);
832
831
  h([
833
- k()
834
- ], s.prototype, "parsedAltDarkMode", 2);
832
+ E()
833
+ ], n.prototype, "parsedAltDarkMode", 2);
835
834
  h([
836
- I("isLoaded"),
837
- I("canZoom", { waitUntilFirstUpdate: !0 })
838
- ], s.prototype, "handleCanZoomChange", 1);
835
+ M("isLoaded"),
836
+ M("canZoom", { waitUntilFirstUpdate: !0 })
837
+ ], n.prototype, "handleCanZoomChange", 1);
839
838
  h([
840
- I("objectFit", { waitUntilFirstUpdate: !0 })
841
- ], s.prototype, "handleObjectFitChange", 1);
839
+ M("objectFit", { waitUntilFirstUpdate: !0 })
840
+ ], n.prototype, "handleObjectFitChange", 1);
842
841
  h([
843
- I("src"),
844
- I("srcDarkMode")
845
- ], s.prototype, "handleSrcChange", 1);
842
+ M("src"),
843
+ M("srcDarkMode")
844
+ ], n.prototype, "handleSrcChange", 1);
846
845
  h([
847
846
  Oe(100)
848
- ], s.prototype, "updateLastPatchedWidth", 1);
849
- s = h([
847
+ ], n.prototype, "updateLastPatchedWidth", 1);
848
+ n = h([
850
849
  Ae("cx-image")
851
- ], s);
850
+ ], n);
852
851
  export {
853
- s as C,
854
- Z as a
852
+ n as C,
853
+ I as a
855
854
  };