@orangelogic/design-system 2.128.0 → 2.130.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.
@@ -1,145 +1,146 @@
1
- import { r as xe, R as we, H as Y, a as ee, b as Ee } from "./resizable-component.styles.DpK0TTP5.js";
2
- import { c as Ce } from "./component.styles.CRO4Odto.js";
3
- import { a as ke } from "./index.Cpamj0jB.js";
4
- import { c as Le } from "./custom-element.L4WJXn1j.js";
1
+ import { r as we, R as Ee, H as Y, a as te, b as Ce } from "./resizable-component.styles.BVhOesNE.js";
2
+ import { c as ke } from "./component.styles.CRO4Odto.js";
3
+ import { a as Le } from "./index.Cpamj0jB.js";
4
+ import { c as Re } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as Se } from "./debounce.DaHuiSGU.js";
6
- import { L as He } from "./i18n.NAH4U8Lw.js";
6
+ import { L as $e } from "./i18n.NAH4U8Lw.js";
7
7
  import { w as Z } from "./watch.CThbualB.js";
8
- import { i as oe, x as k, E as $e } from "./lit-element.jLBm65_O.js";
8
+ import { i as re, E as V, x as E } from "./lit-element.jLBm65_O.js";
9
9
  import { n as y } from "./lib-cortex-element.CVMmyPMC.js";
10
- import { r as H } from "./state.CSDxrqLd.js";
11
- import { e as K } from "./query.BBf1UFkC.js";
12
- import { e as L } from "./class-map.BiVq-cVR.js";
13
- import { o as V } from "./if-defined.BRoBj_Rp.js";
14
- import { i as Re } from "./keyed.C0rkKrxH.js";
10
+ import { r as k } from "./state.CSDxrqLd.js";
11
+ import { e as X } from "./query.BBf1UFkC.js";
12
+ import { e as C } from "./class-map.BiVq-cVR.js";
13
+ import { o as K } from "./if-defined.BRoBj_Rp.js";
14
+ import { i as He } from "./keyed.C0rkKrxH.js";
15
15
  import { o as Te } from "./style-map.llVFPd__.js";
16
- import { n as T } from "./when.Dr1es41R.js";
16
+ import { n as S } from "./when.Dr1es41R.js";
17
17
  import { C as Ae } from "./icon.DnBh6-56.js";
18
18
  import Oe from "../components/popup.js";
19
19
  import je from "../components/resize-observer.js";
20
20
  import Ze from "../components/skeleton.js";
21
- import _e from "../components/space.js";
21
+ import Ie from "../components/space.js";
22
+ import Me from "../components/spinner.js";
22
23
  var j = /* @__PURE__ */ ((i) => (i.Automatic = "automatic", i.Manual = "manual", i))(j || {});
23
24
  /*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */
24
- var S = Object.assign || function(i) {
25
+ var $ = Object.assign || function(i) {
25
26
  for (var t = 1; t < arguments.length; t++) {
26
27
  var r = arguments[t];
27
- for (var s in r)
28
- Object.prototype.hasOwnProperty.call(r, s) && (i[s] = r[s]);
28
+ for (var l in r)
29
+ Object.prototype.hasOwnProperty.call(r, l) && (i[l] = r[l]);
29
30
  }
30
31
  return i;
31
- }, P = function(t) {
32
+ }, F = function(t) {
32
33
  return t.tagName === "IMG";
33
- }, Ie = function(t) {
34
+ }, Ne = function(t) {
34
35
  return NodeList.prototype.isPrototypeOf(t);
35
- }, F = function(t) {
36
+ }, W = function(t) {
36
37
  return t && t.nodeType === 1;
37
- }, te = function(t) {
38
+ }, ie = function(t) {
38
39
  var r = t.currentSrc || t.src;
39
40
  return r.substr(-4).toLowerCase() === ".svg";
40
- }, ie = function(t) {
41
+ }, oe = function(t) {
41
42
  try {
42
- return Array.isArray(t) ? t.filter(P) : Ie(t) ? [].slice.call(t).filter(P) : F(t) ? [t].filter(P) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(P) : [];
43
+ return Array.isArray(t) ? t.filter(F) : Ne(t) ? [].slice.call(t).filter(F) : W(t) ? [t].filter(F) : typeof t == "string" ? [].slice.call(document.querySelectorAll(t)).filter(F) : [];
43
44
  } catch {
44
45
  throw new TypeError(`The provided selector is invalid.
45
46
  Expects a CSS selector, a Node element, a NodeList or an array.
46
47
  See: https://github.com/francoischalifour/medium-zoom`);
47
48
  }
48
- }, Me = function(t) {
49
+ }, Pe = function(t) {
49
50
  var r = document.createElement("div");
50
51
  return r.classList.add("medium-zoom-overlay"), r.style.background = t, r;
51
- }, Ne = function(t) {
52
- var r = t.getBoundingClientRect(), s = r.top, c = r.left, E = r.width, C = r.height, b = t.cloneNode(), W = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, _ = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
53
- return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = s + W + "px", b.style.left = c + _ + "px", b.style.width = E + "px", b.style.height = C + "px", b.style.transform = "", b;
52
+ }, Fe = function(t) {
53
+ var r = t.getBoundingClientRect(), l = r.top, c = r.left, L = r.width, R = r.height, b = t.cloneNode(), U = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, I = 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 + I + "px", b.style.width = L + "px", b.style.height = R + "px", b.style.transform = "", b;
54
55
  }, A = function(t, r) {
55
- var s = S({
56
+ var l = $({
56
57
  bubbles: !1,
57
58
  cancelable: !1,
58
59
  detail: void 0
59
60
  }, r);
60
61
  if (typeof window.CustomEvent == "function")
61
- return new CustomEvent(t, s);
62
+ return new CustomEvent(t, l);
62
63
  var c = document.createEvent("CustomEvent");
63
- return c.initCustomEvent(t, s.bubbles, s.cancelable, s.detail), c;
64
- }, Pe = function i(t) {
65
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = window.Promise || function(o) {
66
- function a() {
64
+ return c.initCustomEvent(t, l.bubbles, l.cancelable, l.detail), c;
65
+ }, We = function i(t) {
66
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = window.Promise || function(o) {
67
+ function n() {
67
68
  }
68
- o(a, a);
69
+ o(n, n);
69
70
  }, c = function(o) {
70
- var a = o.target;
71
- if (a === M) {
71
+ var n = o.target;
72
+ if (n === N) {
72
73
  x();
73
74
  return;
74
75
  }
75
- v.indexOf(a) !== -1 && G({ target: a });
76
- }, E = function() {
77
- if (!($ || !e.original)) {
76
+ v.indexOf(n) !== -1 && J({ target: n });
77
+ }, L = function() {
78
+ if (!(H || !e.original)) {
78
79
  var o = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
79
- Math.abs(J - o) > d.scrollOffset && setTimeout(x, 150);
80
+ Math.abs(Q - o) > d.scrollOffset && setTimeout(x, 150);
80
81
  }
81
- }, C = function(o) {
82
- var a = o.key || o.keyCode;
83
- (a === "Escape" || a === "Esc" || a === 27) && x();
82
+ }, R = function(o) {
83
+ var n = o.key || o.keyCode;
84
+ (n === "Escape" || n === "Esc" || n === 27) && x();
84
85
  }, b = function() {
85
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = o;
86
- if (o.background && (M.style.background = o.background), o.container && o.container instanceof Object && (a.container = S({}, d.container, o.container)), o.template) {
87
- var m = F(o.template) ? o.template : document.querySelector(o.template);
88
- a.template = m;
86
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = o;
87
+ if (o.background && (N.style.background = o.background), o.container && o.container instanceof Object && (n.container = $({}, d.container, o.container)), o.template) {
88
+ var m = W(o.template) ? o.template : document.querySelector(o.template);
89
+ n.template = m;
89
90
  }
90
- return d = S({}, d, a), v.forEach(function(g) {
91
+ return d = $({}, d, n), v.forEach(function(g) {
91
92
  g.dispatchEvent(A("medium-zoom:update", {
92
93
  detail: { zoom: u }
93
94
  }));
94
95
  }), u;
95
- }, W = function() {
96
+ }, U = function() {
96
97
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
97
- return i(S({}, d, o));
98
- }, _ = function() {
99
- for (var o = arguments.length, a = Array(o), m = 0; m < o; m++)
100
- a[m] = arguments[m];
101
- var g = a.reduce(function(n, f) {
102
- return [].concat(n, ie(f));
98
+ return i($({}, d, o));
99
+ }, I = function() {
100
+ for (var o = arguments.length, n = Array(o), m = 0; m < o; m++)
101
+ n[m] = arguments[m];
102
+ var g = n.reduce(function(a, f) {
103
+ return [].concat(a, oe(f));
103
104
  }, []);
104
- return g.filter(function(n) {
105
- return v.indexOf(n) === -1;
106
- }).forEach(function(n) {
107
- v.push(n), n.classList.add("medium-zoom-image");
108
- }), I.forEach(function(n) {
109
- var f = n.type, z = n.listener, R = n.options;
105
+ return g.filter(function(a) {
106
+ return v.indexOf(a) === -1;
107
+ }).forEach(function(a) {
108
+ v.push(a), a.classList.add("medium-zoom-image");
109
+ }), M.forEach(function(a) {
110
+ var f = a.type, z = a.listener, T = a.options;
110
111
  g.forEach(function(w) {
111
- w.addEventListener(f, z, R);
112
+ w.addEventListener(f, z, T);
112
113
  });
113
114
  }), u;
114
- }, re = function() {
115
- for (var o = arguments.length, a = Array(o), m = 0; m < o; m++)
116
- a[m] = arguments[m];
115
+ }, ne = function() {
116
+ for (var o = arguments.length, n = Array(o), m = 0; m < o; m++)
117
+ n[m] = arguments[m];
117
118
  e.zoomed && x();
118
- var g = a.length > 0 ? a.reduce(function(n, f) {
119
- return [].concat(n, ie(f));
119
+ var g = n.length > 0 ? n.reduce(function(a, f) {
120
+ return [].concat(a, oe(f));
120
121
  }, []) : v;
121
- return g.forEach(function(n) {
122
- n.classList.remove("medium-zoom-image"), n.dispatchEvent(A("medium-zoom:detach", {
122
+ return g.forEach(function(a) {
123
+ a.classList.remove("medium-zoom-image"), a.dispatchEvent(A("medium-zoom:detach", {
123
124
  detail: { zoom: u }
124
125
  }));
125
- }), v = v.filter(function(n) {
126
- return g.indexOf(n) === -1;
126
+ }), v = v.filter(function(a) {
127
+ return g.indexOf(a) === -1;
127
128
  }), u;
128
- }, ae = function(o, a) {
129
+ }, ae = function(o, n) {
129
130
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
130
131
  return v.forEach(function(g) {
131
- g.addEventListener("medium-zoom:" + o, a, m);
132
- }), I.push({ type: "medium-zoom:" + o, listener: a, options: m }), u;
133
- }, ne = function(o, a) {
132
+ g.addEventListener("medium-zoom:" + o, n, m);
133
+ }), M.push({ type: "medium-zoom:" + o, listener: n, options: m }), u;
134
+ }, se = function(o, n) {
134
135
  var m = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
135
136
  return v.forEach(function(g) {
136
- g.removeEventListener("medium-zoom:" + o, a, m);
137
- }), I = I.filter(function(g) {
138
- return !(g.type === "medium-zoom:" + o && g.listener.toString() === a.toString());
137
+ g.removeEventListener("medium-zoom:" + o, n, m);
138
+ }), M = M.filter(function(g) {
139
+ return !(g.type === "medium-zoom:" + o && g.listener.toString() === n.toString());
139
140
  }), u;
140
- }, X = function() {
141
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = o.target, m = function() {
142
- var n = {
141
+ }, G = function() {
142
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = o.target, m = function() {
143
+ var a = {
143
144
  width: document.documentElement.clientWidth,
144
145
  height: document.documentElement.clientHeight,
145
146
  left: 0,
@@ -149,27 +150,27 @@ See: https://github.com/francoischalifour/medium-zoom`);
149
150
  }, f = void 0, z = void 0;
150
151
  if (d.container)
151
152
  if (d.container instanceof Object)
152
- n = S({}, n, d.container), f = n.width - n.left - n.right - d.margin * 2, z = n.height - n.top - n.bottom - d.margin * 2;
153
+ a = $({}, a, d.container), f = a.width - a.left - a.right - d.margin * 2, z = a.height - a.top - a.bottom - d.margin * 2;
153
154
  else {
154
- var R = F(d.container) ? d.container : document.querySelector(d.container), w = R.getBoundingClientRect(), U = w.width, de = w.height, ce = w.left, me = w.top;
155
- n = S({}, n, {
156
- width: U,
157
- height: de,
158
- left: ce,
159
- top: me
155
+ var T = W(d.container) ? d.container : document.querySelector(d.container), w = T.getBoundingClientRect(), B = w.width, ce = w.height, me = w.left, ge = w.top;
156
+ a = $({}, a, {
157
+ width: B,
158
+ height: ce,
159
+ left: me,
160
+ top: ge
160
161
  });
161
162
  }
162
- f = f || n.width - d.margin * 2, z = z || n.height - d.margin * 2;
163
- var O = e.zoomedHd || e.original, ge = te(O) ? f : O.naturalWidth || f, ue = te(O) ? z : O.naturalHeight || z, N = O.getBoundingClientRect(), pe = N.top, fe = N.left, B = N.width, D = N.height, ve = Math.min(Math.max(B, ge), f) / B, ye = Math.min(Math.max(D, ue), z) / D, q = Math.min(ve, ye), ze = (-fe + (f - B) / 2 + d.margin + n.left) / q, be = (-pe + (z - D) / 2 + d.margin + n.top) / q, Q = "scale(" + q + ") translate3d(" + ze + "px, " + be + "px, 0)";
164
- e.zoomed.style.transform = Q, e.zoomedHd && (e.zoomedHd.style.transform = Q);
163
+ f = f || a.width - d.margin * 2, z = z || a.height - d.margin * 2;
164
+ var O = e.zoomedHd || e.original, ue = ie(O) ? f : O.naturalWidth || f, pe = ie(O) ? z : O.naturalHeight || z, P = O.getBoundingClientRect(), fe = P.top, ve = P.left, D = P.width, _ = P.height, ye = Math.min(Math.max(D, ue), f) / D, ze = Math.min(Math.max(_, pe), z) / _, q = Math.min(ye, ze), be = (-ve + (f - D) / 2 + d.margin + a.left) / q, xe = (-fe + (z - _) / 2 + d.margin + a.top) / q, ee = "scale(" + q + ") translate3d(" + be + "px, " + xe + "px, 0)";
165
+ e.zoomed.style.transform = ee, e.zoomedHd && (e.zoomedHd.style.transform = ee);
165
166
  };
166
- return new s(function(g) {
167
- if (a && v.indexOf(a) === -1) {
167
+ return new l(function(g) {
168
+ if (n && v.indexOf(n) === -1) {
168
169
  g(u);
169
170
  return;
170
171
  }
171
- var n = function U() {
172
- $ = !1, e.zoomed.removeEventListener("transitionend", U), e.original.dispatchEvent(A("medium-zoom:opened", {
172
+ var a = function B() {
173
+ H = !1, e.zoomed.removeEventListener("transitionend", B), e.original.dispatchEvent(A("medium-zoom:opened", {
173
174
  detail: { zoom: u }
174
175
  })), g(u);
175
176
  };
@@ -177,8 +178,8 @@ See: https://github.com/francoischalifour/medium-zoom`);
177
178
  g(u);
178
179
  return;
179
180
  }
180
- if (a)
181
- e.original = a;
181
+ if (n)
182
+ e.original = n;
182
183
  else if (v.length > 0) {
183
184
  var f = v;
184
185
  e.original = f[0];
@@ -188,18 +189,18 @@ See: https://github.com/francoischalifour/medium-zoom`);
188
189
  }
189
190
  if (e.original.dispatchEvent(A("medium-zoom:open", {
190
191
  detail: { zoom: u }
191
- })), J = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, $ = !0, e.zoomed = Ne(e.original), document.body.appendChild(M), d.template) {
192
- var z = F(d.template) ? d.template : document.querySelector(d.template);
192
+ })), Q = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0, H = !0, e.zoomed = Fe(e.original), document.body.appendChild(N), d.template) {
193
+ var z = W(d.template) ? d.template : document.querySelector(d.template);
193
194
  e.template = document.createElement("div"), e.template.appendChild(z.content.cloneNode(!0)), document.body.appendChild(e.template);
194
195
  }
195
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() {
196
197
  document.body.classList.add("medium-zoom--opened");
197
- }), 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", a), e.original.getAttribute("data-zoom-src")) {
198
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() {
199
- clearInterval(R), console.warn("Unable to reach the zoom image target " + e.zoomedHd.src), e.zoomedHd = null, m();
200
+ clearInterval(T), console.warn("Unable to reach the zoom image target " + e.zoomedHd.src), e.zoomedHd = null, m();
200
201
  };
201
- var R = setInterval(function() {
202
- e.zoomedHd.complete && (clearInterval(R), e.zoomedHd.classList.add("medium-zoom-image--opened"), e.zoomedHd.addEventListener("click", x), document.body.appendChild(e.zoomedHd), m());
202
+ var T = setInterval(function() {
203
+ e.zoomedHd.complete && (clearInterval(T), e.zoomedHd.classList.add("medium-zoom-image--opened"), e.zoomedHd.addEventListener("click", x), document.body.appendChild(e.zoomedHd), m());
203
204
  }, 10);
204
205
  } else if (e.original.hasAttribute("srcset")) {
205
206
  e.zoomedHd = e.zoomed.cloneNode(), e.zoomedHd.removeAttribute("sizes"), e.zoomedHd.removeAttribute("loading");
@@ -210,72 +211,72 @@ See: https://github.com/francoischalifour/medium-zoom`);
210
211
  m();
211
212
  });
212
213
  }, x = function() {
213
- return new s(function(o) {
214
- if ($ || !e.original) {
214
+ return new l(function(o) {
215
+ if (H || !e.original) {
215
216
  o(u);
216
217
  return;
217
218
  }
218
- var a = function m() {
219
- e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(M), e.zoomed.classList.remove("medium-zoom-image--opened"), e.template && document.body.removeChild(e.template), $ = !1, e.zoomed.removeEventListener("transitionend", m), e.original.dispatchEvent(A("medium-zoom:closed", {
219
+ var n = function m() {
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(A("medium-zoom:closed", {
220
221
  detail: { zoom: u }
221
222
  })), e.original = null, e.zoomed = null, e.zoomedHd = null, e.template = null, o(u);
222
223
  };
223
- $ = !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(A("medium-zoom:close", {
224
225
  detail: { zoom: u }
225
- })), e.zoomed.addEventListener("transitionend", a);
226
+ })), e.zoomed.addEventListener("transitionend", n);
226
227
  });
227
- }, G = function() {
228
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = o.target;
229
- return e.original ? x() : X({ target: a });
230
- }, se = function() {
231
- return d;
228
+ }, J = function() {
229
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = o.target;
230
+ return e.original ? x() : G({ target: n });
232
231
  }, le = function() {
233
- return v;
232
+ return d;
234
233
  }, he = function() {
234
+ return v;
235
+ }, de = function() {
235
236
  return e.original;
236
- }, v = [], I = [], $ = !1, J = 0, d = r, e = {
237
+ }, v = [], M = [], H = !1, Q = 0, d = r, e = {
237
238
  original: null,
238
239
  zoomed: null,
239
240
  zoomedHd: null,
240
241
  template: null
241
242
  // If the selector is omitted, it's replaced by the options
242
243
  };
243
- Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && _(t), d = S({
244
+ Object.prototype.toString.call(t) === "[object Object]" ? d = t : (t || typeof t == "string") && I(t), d = $({
244
245
  margin: 0,
245
246
  background: "#fff",
246
247
  scrollOffset: 40,
247
248
  container: null,
248
249
  template: null
249
250
  }, d);
250
- var M = Me(d.background);
251
- document.addEventListener("click", c), document.addEventListener("keyup", C), document.addEventListener("scroll", E), window.addEventListener("resize", x);
251
+ var N = Pe(d.background);
252
+ document.addEventListener("click", c), document.addEventListener("keyup", R), document.addEventListener("scroll", L), window.addEventListener("resize", x);
252
253
  var u = {
253
- open: X,
254
+ open: G,
254
255
  close: x,
255
- toggle: G,
256
+ toggle: J,
256
257
  update: b,
257
- clone: W,
258
- attach: _,
259
- detach: re,
258
+ clone: U,
259
+ attach: I,
260
+ detach: ne,
260
261
  on: ae,
261
- off: ne,
262
- getOptions: se,
263
- getImages: le,
264
- getZoomedImage: he
262
+ off: se,
263
+ getOptions: le,
264
+ getImages: he,
265
+ getZoomedImage: de
265
266
  };
266
267
  return u;
267
268
  };
268
- function Fe(i, t) {
269
+ function Ue(i, t) {
269
270
  t === void 0 && (t = {});
270
271
  var r = t.insertAt;
271
272
  if (!(typeof document > "u")) {
272
- var s = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
273
- c.type = "text/css", r === "top" && s.firstChild ? s.insertBefore(c, s.firstChild) : s.appendChild(c), c.styleSheet ? c.styleSheet.cssText = i : c.appendChild(document.createTextNode(i));
273
+ var l = document.head || document.getElementsByTagName("head")[0], c = document.createElement("style");
274
+ c.type = "text/css", r === "top" && l.firstChild ? l.insertBefore(c, l.firstChild) : l.appendChild(c), c.styleSheet ? c.styleSheet.cssText = i : c.appendChild(document.createTextNode(i));
274
275
  }
275
276
  }
276
- var We = ".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}";
277
- Fe(We);
278
- const Ue = oe`: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))}.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)}`, Be = oe`
277
+ var Be = ".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
+ Ue(Be);
279
+ const De = re`: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))}.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)}`, _e = re`
279
280
  :host {
280
281
  --justify-content: flex-start;
281
282
  --border-radius: 0px;
@@ -285,6 +286,7 @@ const Ue = oe`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
285
286
  var(--cx-color-neutral-1000),
286
287
  var(--cx-color-neutral-0)
287
288
  );
289
+ --fallback-icon-color: var(--cx-input-icon-color);
288
290
  --details-font-size: 16px;
289
291
  --details-letter-spacing: 0px;
290
292
  --details-line-height: 1.5;
@@ -328,7 +330,7 @@ const Ue = oe`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
328
330
  max-height: 100%;
329
331
  }
330
332
 
331
- ${Ue}
333
+ ${De}
332
334
 
333
335
  :host([block]) {
334
336
  width: 100%;
@@ -402,6 +404,12 @@ const Ue = oe`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
402
404
  outline: none;
403
405
  }
404
406
 
407
+ .highlighter--centered {
408
+ display: flex;
409
+ justify-content: center;
410
+ align-items: center;
411
+ }
412
+
405
413
  .highlightable-item {
406
414
  background-color: var(--highlightable-item-background-color);
407
415
  display: flex;
@@ -513,22 +521,35 @@ const Ue = oe`:host([effect=jump]) .container,:host([effect=text-reveal]) .conta
513
521
  --border-radius: 0;
514
522
  }
515
523
 
524
+ .retry-spinner {
525
+ position: absolute;
526
+ inset: 0;
527
+ display: flex;
528
+ align-items: center;
529
+ justify-content: center;
530
+ }
531
+
532
+ .retry-spinner cx-spinner {
533
+ font-size: var(--cx-font-size-3x-large);
534
+ }
535
+
516
536
  .fallback {
517
537
  position: relative;
518
538
  }
519
539
 
520
540
  .fallback cx-icon {
521
541
  --font-size: var(--cx-font-size-4x-large);
542
+ color: var(--fallback-icon-color);
522
543
  }
523
544
  `;
524
- var De = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, h = (i, t, r, s) => {
525
- for (var c = s > 1 ? void 0 : s ? qe(t, r) : t, E = i.length - 1, C; E >= 0; E--)
526
- (C = i[E]) && (c = (s ? C(t, r, c) : C(c)) || c);
527
- return s && c && De(t, r, c), c;
545
+ var qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, h = (i, t, r, l) => {
546
+ for (var c = l > 1 ? void 0 : l ? Ye(t, r) : t, L = i.length - 1, R; L >= 0; L--)
547
+ (R = i[L]) && (c = (l ? R(t, r, c) : R(c)) || c);
548
+ return l && c && qe(t, r, c), c;
528
549
  };
529
- let l = class extends we {
550
+ let s = class extends Ee {
530
551
  constructor() {
531
- super(...arguments), this.localize = new He(this), this._retryCount = 0, this._retryTimer = null, this.isLoaded = !1, this.isError = !1, this._retryIndex = 0, this.src = "", this.placeholder = "", this.alt = "", this.objectFit = ke.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = j.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
552
+ super(...arguments), this.localize = new $e(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 = Le.Fill, this.skeleton = !1, this.fallback = !1, this.canZoom = !1, this.loading = !1, this.block = !1, this.htmlLoading = "lazy", this.clickHandlerType = j.Automatic, this.retryOnError = !1, this.maxRetries = 3, this.isZoomed = !1, this.imageRatio = 1, this.parsedAlt = "", this.parsedAltDarkMode = "", this.zoom = null, this.lastPatchedWidth = null;
532
553
  }
533
554
  get currentAltValue() {
534
555
  return this.alt;
@@ -551,15 +572,15 @@ let l = class extends we {
551
572
  }
552
573
  get imageClass() {
553
574
  let i = "landscape", t = this.ratio;
554
- const r = this.width.endsWith("%") ? this.clientWidth : Number.parseFloat(this.width), s = this.isResizing ? this.resizeSize.width : r, c = this.isResizing ? this.resizeSize.height : Number.parseFloat(this.height);
555
- return s && c && (t = s / c), t > this.imageRatio && (i = "portrait"), {
575
+ const r = this.width.endsWith("%") ? this.clientWidth : Number.parseFloat(this.width), l = this.isResizing ? this.resizeSize.width : r, c = this.isResizing ? this.resizeSize.height : Number.parseFloat(this.height);
576
+ return l && c && (t = l / c), t > this.imageRatio && (i = "portrait"), {
556
577
  image: !0,
557
578
  [`image--${this.objectFit}`]: !0,
558
579
  [`image--${i}`]: !0,
559
580
  [`image--height-${this.heightMode}`]: !0,
560
581
  "image--can-zoom": this.canZoom,
561
582
  "image--has-action": this.hasZoomAction,
562
- "image--hidden": !this.currentSrc && !this.placeholder || this.isError && this.fallback
583
+ "image--hidden": !this.currentSrc && !this.placeholder || this.isError || this.isRetrying
563
584
  };
564
585
  }
565
586
  get crossorigin() {
@@ -608,19 +629,19 @@ let l = class extends we {
608
629
  await this.updateComplete, this.requestUpdate();
609
630
  }
610
631
  handleSrcChange() {
611
- this.isLoaded = !1, this.isError = !1, this._retryCount = 0, this._retryIndex = 0, this.clearRetryTimer();
632
+ this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, this.clearRetryTimer();
612
633
  }
613
634
  clearRetryTimer() {
614
- this._retryTimer !== null && (clearTimeout(this._retryTimer), this._retryTimer = null);
635
+ this.retryTimer !== null && (clearTimeout(this.retryTimer), this.retryTimer = null);
615
636
  }
616
637
  scheduleRetry() {
617
- const i = Math.min(1e3 * Math.pow(2, this._retryCount - 1), 1e4);
618
- this._retryTimer = setTimeout(() => {
619
- this._retryTimer = null, this._retryIndex += 1;
638
+ const i = Math.min(1e3 * Math.pow(2, this.retryCount - 1), 1e4);
639
+ this.retryTimer = setTimeout(() => {
640
+ this.retryTimer = null, this.retryIndex += 1;
620
641
  }, i);
621
642
  }
622
643
  async initZoom() {
623
- this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = Pe(this.zoomImageElement, {
644
+ this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = We(this.zoomImageElement, {
624
645
  background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
625
646
  margin: 0,
626
647
  scrollOffset: 0
@@ -634,19 +655,19 @@ let l = class extends we {
634
655
  const t = i?.currentTarget ?? this.imageElement;
635
656
  if (!t)
636
657
  return;
637
- const { naturalHeight: r, naturalWidth: s } = t;
638
- this.imageRatio = s / r, this.isLoaded || (this.emit("cx-load"), this.isLoaded = !0, this.isError = !1);
658
+ const { naturalHeight: r, naturalWidth: l } = t;
659
+ this.imageRatio = l / r, this.isRetrying = !1, this.isLoaded || (this.emit("cx-load"), this.isLoaded = !0, this.isError = !1);
639
660
  }
640
661
  handleError() {
641
- if (this.retryOnError && this._retryCount < this.maxRetries) {
642
- this._retryCount += 1, this.scheduleRetry();
662
+ if (this.retryOnError && this.retryCount < this.maxRetries) {
663
+ this.retryCount += 1, this.isRetrying = !0, this.scheduleRetry();
643
664
  return;
644
665
  }
645
- this.emit("cx-error"), this.isLoaded = !0, this.isError = !0;
666
+ this.isRetrying = !1, this.emit("cx-error"), this.isLoaded = !0, this.isError = !0;
646
667
  }
647
668
  handleSizeChange() {
648
- const i = this.resizeDirection !== ee.Vertical, t = this.resizeDirection !== ee.Horizontal, r = this.isResizing ? `${this.resizeSize.width}px` : this.width, s = this.isResizing ? `${this.resizeSize.height}px` : this.height;
649
- i && (this.width || this.isResizing ? this.style.setProperty("--width", r) : this.style.removeProperty("--width")), t && (this.heightMode !== Ee.Auto && (this.height || this.isResizing) ? this.style.setProperty("--height", s) : this.style.removeProperty("--height"));
669
+ const i = this.resizeDirection !== te.Vertical, t = this.resizeDirection !== te.Horizontal, r = this.isResizing ? `${this.resizeSize.width}px` : this.width, l = this.isResizing ? `${this.resizeSize.height}px` : this.height;
670
+ i && (this.width || this.isResizing ? this.style.setProperty("--width", r) : this.style.removeProperty("--width")), t && (this.heightMode !== Ce.Auto && (this.height || this.isResizing) ? this.style.setProperty("--height", l) : this.style.removeProperty("--height"));
650
671
  }
651
672
  handleResize(i) {
652
673
  const { entries: t } = i.detail;
@@ -670,138 +691,148 @@ let l = class extends we {
670
691
  }
671
692
  renderContent() {
672
693
  const i = this.currentSrc, t = this.currentAltValue;
673
- return k`<div part="content" slot="anchor" class=${L(this.highlighterClass)}>${Re(
674
- this._retryIndex,
675
- k`<img part="image" class=${L(this.imageClass)} src=${i || this.placeholder} alt=${t} aria-label=${t} crossorigin=${V(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.htmlLoading}>`
694
+ if (this.retryOnError) {
695
+ if (this.isError && this.retryCount >= this.maxRetries)
696
+ return V;
697
+ } else if (this.isError)
698
+ return V;
699
+ return E`<div part="content" slot="anchor" class=${C(this.highlighterClass)}>${He(
700
+ this.retryIndex,
701
+ E`<img part="image" class=${C(this.imageClass)} src=${i || this.placeholder} alt=${t} aria-label=${t} crossorigin=${K(this.crossorigin)} @load=${this.handleLoad} @error=${this.handleError} loading=${this.retryIndex > 0 ? "eager" : this.htmlLoading}>`
676
702
  )}</div>`;
677
703
  }
678
704
  render() {
679
705
  const i = this.hasZoomAction, t = this.currentAltValue, r = !this.currentSrc && !this.placeholder;
680
- return k`<div part="base" class=${L({
706
+ return E`<div part="base" class=${C({
681
707
  container: !0,
682
708
  "container--empty": r,
683
709
  "container--loading": this.loading,
684
710
  "container--resizing": this.resizable && this.isResizeActive
685
711
  })} style=${Te({
686
712
  "--easing": this.easeCSSVariable
687
- })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${V(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${L(r ? {} : this.getHighlighterClass())} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${T(
713
+ })} data-empty-label=${this.localize.term("emptyImage")} @click=${this.startResizing} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleResize}><div part="highlighter" tabindex=${K(this.highlighterTabindex)} role=${this.highlighterRole} aria-label=${t} aria-roledescription=${this.localize.term("image")} class=${C(r ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${S(
688
714
  r,
689
- () => $e,
690
- () => T(
715
+ () => V,
716
+ () => S(
691
717
  this.effect === Y.Jump || this.effect === Y.Zoom,
692
- () => k`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
718
+ () => E`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
693
719
  () => this.renderContent()
694
720
  )
695
- )}<div class="zoom-image-container">${T(
721
+ )}<div class="zoom-image-container">${S(
696
722
  i,
697
- () => k`<img part="zoom-image" class=${L({
723
+ () => E`<img part="zoom-image" class=${C({
698
724
  "zoom-image": !0,
699
725
  "zoom-image--hidden": !this.isZoomed
700
- })} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${V(this.crossorigin)}>`
701
- )}</div>${T(
702
- this.skeleton && !this.isLoaded && !this.isError || this.loading,
703
- () => k`<slot name="skeleton" part="skeleton"><div class=${L({
726
+ })} src=${this.currentSrc || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${K(this.crossorigin)}>`
727
+ )}</div>${S(
728
+ (this.skeleton && !this.isLoaded && !this.isError || this.loading) && !this.isRetrying,
729
+ () => E`<slot name="skeleton" part="skeleton"><div class=${C({
704
730
  skeleton: !0
705
731
  })}><cx-skeleton effect="sheen"></cx-skeleton></div></slot>`
706
732
  )}
707
- ${T(this.isError && this.fallback, () => k`<slot name="fallback" part="fallback"><cx-space class=${L({ 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>${T(this.resizable && this.isResizeActive, () => this.renderResizer())}</div>`;
733
+ ${S(this.isRetrying, () => E`<div part="retry-spinner" class=${C({ "retry-spinner": !0 })}><cx-spinner></cx-spinner></div>`)}
734
+ ${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>`;
708
735
  }
709
736
  };
710
- l.styles = [Ce, xe, Be];
711
- l.dependencies = {
737
+ s.styles = [ke, we, _e];
738
+ s.dependencies = {
712
739
  "cx-icon": Ae,
713
740
  "cx-popup": Oe,
714
741
  "cx-resize-observer": je,
715
742
  "cx-skeleton": Ze,
716
- "cx-space": _e
743
+ "cx-space": Ie,
744
+ "cx-spinner": Me
717
745
  };
718
746
  h([
719
- K(".image")
720
- ], l.prototype, "imageElement", 2);
747
+ X(".image")
748
+ ], s.prototype, "imageElement", 2);
749
+ h([
750
+ X(".zoom-image")
751
+ ], s.prototype, "zoomImageElement", 2);
721
752
  h([
722
- K(".zoom-image")
723
- ], l.prototype, "zoomImageElement", 2);
753
+ X(".highlighter")
754
+ ], s.prototype, "highlighterElement", 2);
724
755
  h([
725
- K(".highlighter")
726
- ], l.prototype, "highlighterElement", 2);
756
+ k()
757
+ ], s.prototype, "isLoaded", 2);
727
758
  h([
728
- H()
729
- ], l.prototype, "isLoaded", 2);
759
+ k()
760
+ ], s.prototype, "isError", 2);
730
761
  h([
731
- H()
732
- ], l.prototype, "isError", 2);
762
+ k()
763
+ ], s.prototype, "isRetrying", 2);
733
764
  h([
734
- H()
735
- ], l.prototype, "_retryIndex", 2);
765
+ k()
766
+ ], s.prototype, "retryIndex", 2);
736
767
  h([
737
768
  y({ reflect: !0, type: String })
738
- ], l.prototype, "src", 2);
769
+ ], s.prototype, "src", 2);
739
770
  h([
740
771
  y({ reflect: !0, type: String })
741
- ], l.prototype, "placeholder", 2);
772
+ ], s.prototype, "placeholder", 2);
742
773
  h([
743
774
  y({ reflect: !0, type: String })
744
- ], l.prototype, "alt", 2);
775
+ ], s.prototype, "alt", 2);
745
776
  h([
746
777
  y({ attribute: "object-fit", reflect: !0 })
747
- ], l.prototype, "objectFit", 2);
778
+ ], s.prototype, "objectFit", 2);
748
779
  h([
749
780
  y({ reflect: !0, type: Boolean })
750
- ], l.prototype, "skeleton", 2);
781
+ ], s.prototype, "skeleton", 2);
751
782
  h([
752
783
  y({ reflect: !0, type: Boolean })
753
- ], l.prototype, "fallback", 2);
784
+ ], s.prototype, "fallback", 2);
754
785
  h([
755
786
  y({ attribute: "can-zoom", reflect: !0, type: Boolean })
756
- ], l.prototype, "canZoom", 2);
787
+ ], s.prototype, "canZoom", 2);
757
788
  h([
758
789
  y({ reflect: !0, type: Boolean })
759
- ], l.prototype, "loading", 2);
790
+ ], s.prototype, "loading", 2);
760
791
  h([
761
792
  y({ reflect: !0, type: Boolean })
762
- ], l.prototype, "block", 2);
793
+ ], s.prototype, "block", 2);
763
794
  h([
764
795
  y({ attribute: "html-loading", reflect: !0, type: String })
765
- ], l.prototype, "htmlLoading", 2);
796
+ ], s.prototype, "htmlLoading", 2);
766
797
  h([
767
798
  y({ attribute: "click-handler-type", reflect: !0, type: String })
768
- ], l.prototype, "clickHandlerType", 2);
799
+ ], s.prototype, "clickHandlerType", 2);
769
800
  h([
770
801
  y({ attribute: "retry-on-error", type: Boolean })
771
- ], l.prototype, "retryOnError", 2);
802
+ ], s.prototype, "retryOnError", 2);
772
803
  h([
773
804
  y({ attribute: "max-retries", type: Number })
774
- ], l.prototype, "maxRetries", 2);
805
+ ], s.prototype, "maxRetries", 2);
775
806
  h([
776
- H()
777
- ], l.prototype, "isZoomed", 2);
807
+ k()
808
+ ], s.prototype, "isZoomed", 2);
778
809
  h([
779
- H()
780
- ], l.prototype, "imageRatio", 2);
810
+ k()
811
+ ], s.prototype, "imageRatio", 2);
781
812
  h([
782
- H()
783
- ], l.prototype, "parsedAlt", 2);
813
+ k()
814
+ ], s.prototype, "parsedAlt", 2);
784
815
  h([
785
- H()
786
- ], l.prototype, "parsedAltDarkMode", 2);
816
+ k()
817
+ ], s.prototype, "parsedAltDarkMode", 2);
787
818
  h([
788
819
  Z("isLoaded"),
789
820
  Z("canZoom", { waitUntilFirstUpdate: !0 })
790
- ], l.prototype, "handleCanZoomChange", 1);
821
+ ], s.prototype, "handleCanZoomChange", 1);
791
822
  h([
792
823
  Z("objectFit", { waitUntilFirstUpdate: !0 })
793
- ], l.prototype, "handleObjectFitChange", 1);
824
+ ], s.prototype, "handleObjectFitChange", 1);
794
825
  h([
795
826
  Z("src"),
796
827
  Z("srcDarkMode")
797
- ], l.prototype, "handleSrcChange", 1);
828
+ ], s.prototype, "handleSrcChange", 1);
798
829
  h([
799
830
  Se(100)
800
- ], l.prototype, "updateLastPatchedWidth", 1);
801
- l = h([
802
- Le("cx-image")
803
- ], l);
831
+ ], s.prototype, "updateLastPatchedWidth", 1);
832
+ s = h([
833
+ Re("cx-image")
834
+ ], s);
804
835
  export {
805
- l as C,
836
+ s as C,
806
837
  j as a
807
838
  };