@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.
- package/library/chunks/{document-viewer.VVTf0dxG.js → document-viewer.Dn_vUYCW.js} +2 -2
- package/library/chunks/{image.CDrKFe1H.js → image.BC_hwk-b.js} +246 -215
- package/library/chunks/{list-editor.C8SaStOE.js → list-editor.DfOsqO4y.js} +7 -6
- package/library/chunks/{resizable-component.styles.DpK0TTP5.js → resizable-component.styles.BVhOesNE.js} +2 -1
- package/library/components/atoms.js +2 -2
- package/library/components/audio.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/image.js +4 -3
- package/library/components/list-editor.js +1 -1
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/types.js +34836 -34990
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +16 -8
- package/library/packages/base/src/highlightable-element.d.ts +2 -1
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +3 -2
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +6 -0
- package/library/react-web-component.d.ts +2 -2
- package/package.json +1 -1
- package/library/packages/molecules/src/annotator/utils/define-markerjs3-global.d.ts +0 -1
|
@@ -1,145 +1,146 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { c as
|
|
3
|
-
import { a as
|
|
4
|
-
import { c as
|
|
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
|
|
6
|
+
import { L as $e } from "./i18n.NAH4U8Lw.js";
|
|
7
7
|
import { w as Z } from "./watch.CThbualB.js";
|
|
8
|
-
import { i as
|
|
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
|
|
11
|
-
import { e as
|
|
12
|
-
import { e as
|
|
13
|
-
import { o as
|
|
14
|
-
import { i as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
28
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
28
|
+
for (var l in r)
|
|
29
|
+
Object.prototype.hasOwnProperty.call(r, l) && (i[l] = r[l]);
|
|
29
30
|
}
|
|
30
31
|
return i;
|
|
31
|
-
},
|
|
32
|
+
}, F = function(t) {
|
|
32
33
|
return t.tagName === "IMG";
|
|
33
|
-
},
|
|
34
|
+
}, Ne = function(t) {
|
|
34
35
|
return NodeList.prototype.isPrototypeOf(t);
|
|
35
|
-
},
|
|
36
|
+
}, W = function(t) {
|
|
36
37
|
return t && t.nodeType === 1;
|
|
37
|
-
},
|
|
38
|
+
}, ie = function(t) {
|
|
38
39
|
var r = t.currentSrc || t.src;
|
|
39
40
|
return r.substr(-4).toLowerCase() === ".svg";
|
|
40
|
-
},
|
|
41
|
+
}, oe = function(t) {
|
|
41
42
|
try {
|
|
42
|
-
return Array.isArray(t) ? t.filter(
|
|
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
|
-
},
|
|
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
|
-
},
|
|
52
|
-
var r = t.getBoundingClientRect(),
|
|
53
|
-
return b.removeAttribute("id"), b.style.position = "absolute", b.style.top =
|
|
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
|
|
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,
|
|
62
|
+
return new CustomEvent(t, l);
|
|
62
63
|
var c = document.createEvent("CustomEvent");
|
|
63
|
-
return c.initCustomEvent(t,
|
|
64
|
-
},
|
|
65
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
66
|
-
function
|
|
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(
|
|
69
|
+
o(n, n);
|
|
69
70
|
}, c = function(o) {
|
|
70
|
-
var
|
|
71
|
-
if (
|
|
71
|
+
var n = o.target;
|
|
72
|
+
if (n === N) {
|
|
72
73
|
x();
|
|
73
74
|
return;
|
|
74
75
|
}
|
|
75
|
-
v.indexOf(
|
|
76
|
-
},
|
|
77
|
-
if (!(
|
|
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(
|
|
80
|
+
Math.abs(Q - o) > d.scrollOffset && setTimeout(x, 150);
|
|
80
81
|
}
|
|
81
|
-
},
|
|
82
|
-
var
|
|
83
|
-
(
|
|
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] : {},
|
|
86
|
-
if (o.background && (
|
|
87
|
-
var m =
|
|
88
|
-
|
|
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 =
|
|
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
|
-
},
|
|
96
|
+
}, U = function() {
|
|
96
97
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
97
|
-
return i(
|
|
98
|
-
},
|
|
99
|
-
for (var o = arguments.length,
|
|
100
|
-
|
|
101
|
-
var g =
|
|
102
|
-
return [].concat(
|
|
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(
|
|
105
|
-
return v.indexOf(
|
|
106
|
-
}).forEach(function(
|
|
107
|
-
v.push(
|
|
108
|
-
}),
|
|
109
|
-
var f =
|
|
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,
|
|
112
|
+
w.addEventListener(f, z, T);
|
|
112
113
|
});
|
|
113
114
|
}), u;
|
|
114
|
-
},
|
|
115
|
-
for (var o = arguments.length,
|
|
116
|
-
|
|
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 =
|
|
119
|
-
return [].concat(
|
|
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(
|
|
122
|
-
|
|
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(
|
|
126
|
-
return g.indexOf(
|
|
126
|
+
}), v = v.filter(function(a) {
|
|
127
|
+
return g.indexOf(a) === -1;
|
|
127
128
|
}), u;
|
|
128
|
-
}, ae = function(o,
|
|
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,
|
|
132
|
-
}),
|
|
133
|
-
},
|
|
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,
|
|
137
|
-
}),
|
|
138
|
-
return !(g.type === "medium-zoom:" + o && g.listener.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
|
-
},
|
|
141
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
142
|
-
var
|
|
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
|
-
|
|
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
|
|
155
|
-
|
|
156
|
-
width:
|
|
157
|
-
height:
|
|
158
|
-
left:
|
|
159
|
-
top:
|
|
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 ||
|
|
163
|
-
var O = e.zoomedHd || e.original,
|
|
164
|
-
e.zoomed.style.transform =
|
|
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
|
|
167
|
-
if (
|
|
167
|
+
return new l(function(g) {
|
|
168
|
+
if (n && v.indexOf(n) === -1) {
|
|
168
169
|
g(u);
|
|
169
170
|
return;
|
|
170
171
|
}
|
|
171
|
-
var
|
|
172
|
-
|
|
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 (
|
|
181
|
-
e.original =
|
|
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
|
-
})),
|
|
192
|
-
var z =
|
|
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",
|
|
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(
|
|
200
|
+
clearInterval(T), console.warn("Unable to reach the zoom image target " + e.zoomedHd.src), e.zoomedHd = null, m();
|
|
200
201
|
};
|
|
201
|
-
var
|
|
202
|
-
e.zoomedHd.complete && (clearInterval(
|
|
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
|
|
214
|
-
if (
|
|
214
|
+
return new l(function(o) {
|
|
215
|
+
if (H || !e.original) {
|
|
215
216
|
o(u);
|
|
216
217
|
return;
|
|
217
218
|
}
|
|
218
|
-
var
|
|
219
|
-
e.original.classList.remove("medium-zoom-image--hidden"), document.body.removeChild(e.zoomed), e.zoomedHd && document.body.removeChild(e.zoomedHd), document.body.removeChild(
|
|
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
|
-
|
|
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",
|
|
226
|
+
})), e.zoomed.addEventListener("transitionend", n);
|
|
226
227
|
});
|
|
227
|
-
},
|
|
228
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
229
|
-
return e.original ? x() :
|
|
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
|
|
232
|
+
return d;
|
|
234
233
|
}, he = function() {
|
|
234
|
+
return v;
|
|
235
|
+
}, de = function() {
|
|
235
236
|
return e.original;
|
|
236
|
-
}, v = [],
|
|
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") &&
|
|
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
|
|
251
|
-
document.addEventListener("click", c), document.addEventListener("keyup",
|
|
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:
|
|
254
|
+
open: G,
|
|
254
255
|
close: x,
|
|
255
|
-
toggle:
|
|
256
|
+
toggle: J,
|
|
256
257
|
update: b,
|
|
257
|
-
clone:
|
|
258
|
-
attach:
|
|
259
|
-
detach:
|
|
258
|
+
clone: U,
|
|
259
|
+
attach: I,
|
|
260
|
+
detach: ne,
|
|
260
261
|
on: ae,
|
|
261
|
-
off:
|
|
262
|
-
getOptions:
|
|
263
|
-
getImages:
|
|
264
|
-
getZoomedImage:
|
|
262
|
+
off: se,
|
|
263
|
+
getOptions: le,
|
|
264
|
+
getImages: he,
|
|
265
|
+
getZoomedImage: de
|
|
265
266
|
};
|
|
266
267
|
return u;
|
|
267
268
|
};
|
|
268
|
-
function
|
|
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
|
|
273
|
-
c.type = "text/css", r === "top" &&
|
|
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
|
|
277
|
-
|
|
278
|
-
const
|
|
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
|
-
${
|
|
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
|
|
525
|
-
for (var c =
|
|
526
|
-
(
|
|
527
|
-
return
|
|
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
|
|
550
|
+
let s = class extends Ee {
|
|
530
551
|
constructor() {
|
|
531
|
-
super(...arguments), this.localize = new
|
|
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),
|
|
555
|
-
return
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
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 =
|
|
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:
|
|
638
|
-
this.imageRatio =
|
|
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.
|
|
642
|
-
this.
|
|
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 !==
|
|
649
|
-
i && (this.width || this.isResizing ? this.style.setProperty("--width", r) : this.style.removeProperty("--width")), t && (this.heightMode !==
|
|
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
|
-
|
|
674
|
-
this.
|
|
675
|
-
|
|
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
|
|
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=${
|
|
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
|
-
() =>
|
|
690
|
-
() =>
|
|
715
|
+
() => V,
|
|
716
|
+
() => S(
|
|
691
717
|
this.effect === Y.Jump || this.effect === Y.Zoom,
|
|
692
|
-
() =>
|
|
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">${
|
|
721
|
+
)}<div class="zoom-image-container">${S(
|
|
696
722
|
i,
|
|
697
|
-
() =>
|
|
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=${
|
|
701
|
-
)}</div>${
|
|
702
|
-
this.skeleton && !this.isLoaded && !this.isError || this.loading,
|
|
703
|
-
() =>
|
|
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
|
-
${
|
|
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
|
-
|
|
711
|
-
|
|
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":
|
|
743
|
+
"cx-space": Ie,
|
|
744
|
+
"cx-spinner": Me
|
|
717
745
|
};
|
|
718
746
|
h([
|
|
719
|
-
|
|
720
|
-
],
|
|
747
|
+
X(".image")
|
|
748
|
+
], s.prototype, "imageElement", 2);
|
|
749
|
+
h([
|
|
750
|
+
X(".zoom-image")
|
|
751
|
+
], s.prototype, "zoomImageElement", 2);
|
|
721
752
|
h([
|
|
722
|
-
|
|
723
|
-
],
|
|
753
|
+
X(".highlighter")
|
|
754
|
+
], s.prototype, "highlighterElement", 2);
|
|
724
755
|
h([
|
|
725
|
-
|
|
726
|
-
],
|
|
756
|
+
k()
|
|
757
|
+
], s.prototype, "isLoaded", 2);
|
|
727
758
|
h([
|
|
728
|
-
|
|
729
|
-
],
|
|
759
|
+
k()
|
|
760
|
+
], s.prototype, "isError", 2);
|
|
730
761
|
h([
|
|
731
|
-
|
|
732
|
-
],
|
|
762
|
+
k()
|
|
763
|
+
], s.prototype, "isRetrying", 2);
|
|
733
764
|
h([
|
|
734
|
-
|
|
735
|
-
],
|
|
765
|
+
k()
|
|
766
|
+
], s.prototype, "retryIndex", 2);
|
|
736
767
|
h([
|
|
737
768
|
y({ reflect: !0, type: String })
|
|
738
|
-
],
|
|
769
|
+
], s.prototype, "src", 2);
|
|
739
770
|
h([
|
|
740
771
|
y({ reflect: !0, type: String })
|
|
741
|
-
],
|
|
772
|
+
], s.prototype, "placeholder", 2);
|
|
742
773
|
h([
|
|
743
774
|
y({ reflect: !0, type: String })
|
|
744
|
-
],
|
|
775
|
+
], s.prototype, "alt", 2);
|
|
745
776
|
h([
|
|
746
777
|
y({ attribute: "object-fit", reflect: !0 })
|
|
747
|
-
],
|
|
778
|
+
], s.prototype, "objectFit", 2);
|
|
748
779
|
h([
|
|
749
780
|
y({ reflect: !0, type: Boolean })
|
|
750
|
-
],
|
|
781
|
+
], s.prototype, "skeleton", 2);
|
|
751
782
|
h([
|
|
752
783
|
y({ reflect: !0, type: Boolean })
|
|
753
|
-
],
|
|
784
|
+
], s.prototype, "fallback", 2);
|
|
754
785
|
h([
|
|
755
786
|
y({ attribute: "can-zoom", reflect: !0, type: Boolean })
|
|
756
|
-
],
|
|
787
|
+
], s.prototype, "canZoom", 2);
|
|
757
788
|
h([
|
|
758
789
|
y({ reflect: !0, type: Boolean })
|
|
759
|
-
],
|
|
790
|
+
], s.prototype, "loading", 2);
|
|
760
791
|
h([
|
|
761
792
|
y({ reflect: !0, type: Boolean })
|
|
762
|
-
],
|
|
793
|
+
], s.prototype, "block", 2);
|
|
763
794
|
h([
|
|
764
795
|
y({ attribute: "html-loading", reflect: !0, type: String })
|
|
765
|
-
],
|
|
796
|
+
], s.prototype, "htmlLoading", 2);
|
|
766
797
|
h([
|
|
767
798
|
y({ attribute: "click-handler-type", reflect: !0, type: String })
|
|
768
|
-
],
|
|
799
|
+
], s.prototype, "clickHandlerType", 2);
|
|
769
800
|
h([
|
|
770
801
|
y({ attribute: "retry-on-error", type: Boolean })
|
|
771
|
-
],
|
|
802
|
+
], s.prototype, "retryOnError", 2);
|
|
772
803
|
h([
|
|
773
804
|
y({ attribute: "max-retries", type: Number })
|
|
774
|
-
],
|
|
805
|
+
], s.prototype, "maxRetries", 2);
|
|
775
806
|
h([
|
|
776
|
-
|
|
777
|
-
],
|
|
807
|
+
k()
|
|
808
|
+
], s.prototype, "isZoomed", 2);
|
|
778
809
|
h([
|
|
779
|
-
|
|
780
|
-
],
|
|
810
|
+
k()
|
|
811
|
+
], s.prototype, "imageRatio", 2);
|
|
781
812
|
h([
|
|
782
|
-
|
|
783
|
-
],
|
|
813
|
+
k()
|
|
814
|
+
], s.prototype, "parsedAlt", 2);
|
|
784
815
|
h([
|
|
785
|
-
|
|
786
|
-
],
|
|
816
|
+
k()
|
|
817
|
+
], s.prototype, "parsedAltDarkMode", 2);
|
|
787
818
|
h([
|
|
788
819
|
Z("isLoaded"),
|
|
789
820
|
Z("canZoom", { waitUntilFirstUpdate: !0 })
|
|
790
|
-
],
|
|
821
|
+
], s.prototype, "handleCanZoomChange", 1);
|
|
791
822
|
h([
|
|
792
823
|
Z("objectFit", { waitUntilFirstUpdate: !0 })
|
|
793
|
-
],
|
|
824
|
+
], s.prototype, "handleObjectFitChange", 1);
|
|
794
825
|
h([
|
|
795
826
|
Z("src"),
|
|
796
827
|
Z("srcDarkMode")
|
|
797
|
-
],
|
|
828
|
+
], s.prototype, "handleSrcChange", 1);
|
|
798
829
|
h([
|
|
799
830
|
Se(100)
|
|
800
|
-
],
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
],
|
|
831
|
+
], s.prototype, "updateLastPatchedWidth", 1);
|
|
832
|
+
s = h([
|
|
833
|
+
Re("cx-image")
|
|
834
|
+
], s);
|
|
804
835
|
export {
|
|
805
|
-
|
|
836
|
+
s as C,
|
|
806
837
|
j as a
|
|
807
838
|
};
|