@orangelogic/design-system 2.191.0 → 2.193.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/{asset-link-format.CEDcHah6.js → asset-link-format.BX1hdLgZ.js} +1249 -1083
- package/library/chunks/{color-swatch-group.tnhiQ0jp.js → color-swatch-group.BpEQJM1b.js} +4 -3
- package/library/chunks/{confirm-popover.CrQKEChc.js → confirm-popover.jCP9CdcD.js} +1 -1
- package/library/chunks/content-builder.BX4pHujE.js +60 -0
- package/library/chunks/{dialog.CWGtufDA.js → dialog.B6hZ7fvn.js} +2 -2
- package/library/chunks/{document-viewer.C90j1Xrr.js → document-viewer.DZsbpf0x.js} +3 -2
- package/library/chunks/{image.CTMzUqCC.js → image.BSvc6eti.js} +194 -191
- package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
- package/library/chunks/transformation.CkwgrwKQ.js +312 -0
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/confirm-popover.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/file-on-demand.js +2 -2
- package/library/components/image.js +2 -3
- package/library/components/masonry.js +110 -79
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +100 -97
- package/library/components/select.js +16 -11
- package/library/components/types.js +22562 -22239
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +38 -4
- package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
- package/library/packages/atoms/src/components/select/select.d.ts +8 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +0 -1
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +0 -1
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +24 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +46 -2
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.d.ts +36 -1
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +20 -2
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +101 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +67 -1
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +10 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -5
- package/library/packages/types/src/asset-link-format.d.ts +0 -1
- package/library/packages/types/src/content-builder.d.ts +7 -0
- package/library/packages/types/src/gallery-item.d.ts +2 -0
- package/library/packages/types/src/masonry.d.ts +2 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +100 -0
- package/library/react-web-component.d.ts +63 -7
- package/library/utils.js +193 -182
- package/package.json +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +0 -264
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { r as
|
|
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
6
|
import { L as je } from "./i18n.DbXTTLXx.js";
|
|
7
|
-
import { w as
|
|
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
|
|
10
|
-
import { n as
|
|
11
|
-
import { r as
|
|
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
|
|
14
|
-
import { o as
|
|
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
|
|
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
|
-
|
|
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
|
-
},
|
|
32
|
+
}, B = function(t) {
|
|
34
33
|
return t.tagName === "IMG";
|
|
35
|
-
},
|
|
34
|
+
}, Fe = function(t) {
|
|
36
35
|
return NodeList.prototype.isPrototypeOf(t);
|
|
37
|
-
},
|
|
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(
|
|
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
|
-
},
|
|
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
|
-
},
|
|
54
|
-
var o = t.getBoundingClientRect(), l = o.top, c = o.left,
|
|
55
|
-
return b.removeAttribute("id"), b.style.position = "absolute", b.style.top = l +
|
|
56
|
-
},
|
|
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
|
-
},
|
|
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 ===
|
|
72
|
+
if (a === N) {
|
|
74
73
|
x();
|
|
75
74
|
return;
|
|
76
75
|
}
|
|
77
76
|
y.indexOf(a) !== -1 && Q({ target: a });
|
|
78
|
-
},
|
|
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
|
-
},
|
|
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 && (
|
|
89
|
-
var m =
|
|
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(
|
|
92
|
+
g.dispatchEvent(O("medium-zoom:update", {
|
|
94
93
|
detail: { zoom: u }
|
|
95
94
|
}));
|
|
96
95
|
}), u;
|
|
97
|
-
},
|
|
96
|
+
}, U = function() {
|
|
98
97
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
99
98
|
return i($({}, d, r));
|
|
100
|
-
},
|
|
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(
|
|
104
|
-
return [].concat(
|
|
102
|
+
var g = a.reduce(function(s, v) {
|
|
103
|
+
return [].concat(s, re(v));
|
|
105
104
|
}, []);
|
|
106
|
-
return g.filter(function(
|
|
107
|
-
return y.indexOf(
|
|
108
|
-
}).forEach(function(
|
|
109
|
-
y.push(
|
|
110
|
-
}),
|
|
111
|
-
var
|
|
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(
|
|
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(
|
|
121
|
-
return [].concat(
|
|
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(
|
|
124
|
-
|
|
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(
|
|
128
|
-
return g.indexOf(
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
|
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
|
-
},
|
|
150
|
+
}, v = void 0, z = void 0;
|
|
152
151
|
if (d.container)
|
|
153
152
|
if (d.container instanceof Object)
|
|
154
|
-
|
|
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 =
|
|
157
|
-
|
|
158
|
-
width:
|
|
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
|
-
|
|
165
|
-
var
|
|
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
|
|
174
|
-
H = !1, e.zoomed.removeEventListener("transitionend",
|
|
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
|
|
186
|
-
e.original =
|
|
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(
|
|
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 =
|
|
194
|
-
var z =
|
|
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",
|
|
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(
|
|
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(
|
|
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 = [],
|
|
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") &&
|
|
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
|
|
253
|
-
document.addEventListener("click", c), document.addEventListener("keyup",
|
|
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:
|
|
260
|
-
attach:
|
|
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
|
|
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
|
|
279
|
-
Ve
|
|
280
|
-
const
|
|
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
|
-
${
|
|
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
|
|
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 ?
|
|
555
|
-
(
|
|
556
|
-
return l && 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)),
|
|
558
|
-
let
|
|
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 =
|
|
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 = 10, 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 ===
|
|
556
|
+
return this.hasZoomAction && this.clickHandlerType === I.Automatic ? "0" : void 0;
|
|
570
557
|
}
|
|
571
558
|
get highlighterRole() {
|
|
572
|
-
return this.hasZoomAction && this.clickHandlerType ===
|
|
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 ===
|
|
564
|
+
"highlightable-item--effect-text-reveal": this.effect === K.TextReveal,
|
|
578
565
|
[`highlightable-item--text-reveal-style-${this.textRevealStyle}`]: !0
|
|
579
566
|
};
|
|
580
567
|
}
|
|
@@ -588,13 +575,28 @@ let s = class extends Se {
|
|
|
588
575
|
[`image--height-${this.heightMode}`]: !0,
|
|
589
576
|
"image--can-zoom": this.canZoom,
|
|
590
577
|
"image--has-action": this.hasZoomAction,
|
|
591
|
-
"image--hidden":
|
|
578
|
+
"image--hidden": this.isEmpty || this.isError || this.isRetrying
|
|
592
579
|
};
|
|
593
580
|
}
|
|
594
581
|
/** The crossorigin value for the `<img>`; `undefined` (attribute omitted) when `noCrossorigin` is set. */
|
|
595
582
|
get crossorigin() {
|
|
596
583
|
return this.noCrossorigin ? void 0 : "anonymous";
|
|
597
584
|
}
|
|
585
|
+
/** Whether there is nothing to display: no source and no placeholder to stand in for one. */
|
|
586
|
+
get isEmpty() {
|
|
587
|
+
return !this.currentSrc && !this.placeholder;
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Whether to hold the box with a skeleton rather than the loaded image.
|
|
591
|
+
*
|
|
592
|
+
* Retries are included: a retry is still "not loaded yet", so it keeps the same
|
|
593
|
+
* skeleton instead of swapping in a spinner. A spinner would restate what the
|
|
594
|
+
* skeleton already shows while changing the visual weight of the cell mid-load,
|
|
595
|
+
* which reads as a layout change on an image-heavy page.
|
|
596
|
+
*/
|
|
597
|
+
get showPlaceholderSkeleton() {
|
|
598
|
+
return this.isError ? !1 : this.isEmpty ? this.loading : this.skeleton && !this.isLoaded || this.loading || this.isRetrying;
|
|
599
|
+
}
|
|
598
600
|
/**
|
|
599
601
|
* Whether the image have zoom action.
|
|
600
602
|
*/
|
|
@@ -638,7 +640,7 @@ let s = class extends Se {
|
|
|
638
640
|
await this.updateComplete, this.requestUpdate();
|
|
639
641
|
}
|
|
640
642
|
handleSrcChange() {
|
|
641
|
-
this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, ne(this,
|
|
643
|
+
this.isLoaded = !1, this.isError = !1, this.isRetrying = !1, this.retryCount = 0, this.retryIndex = 0, ne(this, j, ""), this.clearRetryTimer();
|
|
642
644
|
}
|
|
643
645
|
clearRetryTimer() {
|
|
644
646
|
this.retryTimer !== null && (clearTimeout(this.retryTimer), this.retryTimer = null);
|
|
@@ -646,15 +648,15 @@ let s = class extends Se {
|
|
|
646
648
|
scheduleRetry() {
|
|
647
649
|
const i = Math.min(1e3 * Math.pow(2, this.retryCount - 1), 1e4);
|
|
648
650
|
this.retryTimer = setTimeout(() => {
|
|
649
|
-
this.retryTimer = null, ne(this,
|
|
651
|
+
this.retryTimer = null, ne(this, j, `${this.retryCount}-${Math.random().toString(36).slice(2)}`), this.retryIndex += 1;
|
|
650
652
|
}, i);
|
|
651
653
|
}
|
|
652
654
|
/** 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
655
|
applyRetryCacheBust(i) {
|
|
654
|
-
return this.retryIndex === 0 || !ae(this,
|
|
656
|
+
return this.retryIndex === 0 || !ae(this, j) || !i ? i : Ze(i, "cachebust", ae(this, j));
|
|
655
657
|
}
|
|
656
658
|
async initZoom() {
|
|
657
|
-
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom =
|
|
659
|
+
this.zoomImageElement && !this.zoom && this.isLoaded && (this.zoom = qe(this.zoomImageElement, {
|
|
658
660
|
background: "light-dark(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.8))",
|
|
659
661
|
margin: 0,
|
|
660
662
|
scrollOffset: 0
|
|
@@ -694,7 +696,7 @@ let s = class extends Se {
|
|
|
694
696
|
* Support CMS5 click action for the image.
|
|
695
697
|
*/
|
|
696
698
|
handleClickAction(i) {
|
|
697
|
-
!(i.target instanceof HTMLElement) || this.clickHandlerType ===
|
|
699
|
+
!(i.target instanceof HTMLElement) || this.clickHandlerType === I.Manual || this.canZoom && this.openZoom();
|
|
698
700
|
}
|
|
699
701
|
updated(i) {
|
|
700
702
|
super.updated(i), (i.has("width") || i.has("height") || i.has("heightMode") || i.has("resizeSize")) && this.handleSizeChange();
|
|
@@ -706,150 +708,151 @@ let s = class extends Se {
|
|
|
706
708
|
const i = this.applyRetryCacheBust(this.currentSrc), t = this.currentAltValue;
|
|
707
709
|
if (this.retryOnError) {
|
|
708
710
|
if (this.isError && this.retryCount >= this.maxRetries)
|
|
709
|
-
return
|
|
711
|
+
return X;
|
|
710
712
|
} else if (this.isError)
|
|
711
|
-
return
|
|
712
|
-
return
|
|
713
|
+
return X;
|
|
714
|
+
return L`<div part="content" slot="anchor" class=${S(this.highlighterClass)}>${Ie(
|
|
713
715
|
this.retryIndex,
|
|
714
|
-
|
|
716
|
+
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
717
|
)}</div>`;
|
|
716
718
|
}
|
|
717
719
|
render() {
|
|
718
|
-
const i = this.hasZoomAction, t = this.currentAltValue
|
|
719
|
-
return
|
|
720
|
+
const i = this.hasZoomAction, t = this.currentAltValue;
|
|
721
|
+
return L`<div part="base" class=${S({
|
|
720
722
|
container: !0,
|
|
721
|
-
"container--empty":
|
|
723
|
+
"container--empty": this.isEmpty,
|
|
722
724
|
"container--loading": this.loading,
|
|
723
725
|
"container--resizing": this.resizable && this.isResizeActive
|
|
724
726
|
})} style=${Me({
|
|
725
727
|
"--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=${
|
|
727
|
-
|
|
728
|
-
() =>
|
|
729
|
-
() =>
|
|
730
|
-
this.effect ===
|
|
731
|
-
() =>
|
|
728
|
+
})} 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(this.isEmpty ? {} : this.getHighlighterClass(this.isError))} @click=${this.handleClickAction} @mouseenter=${this.handleMouseEnter} @mouseleave=${this.handleMouseLeave} @blur=${this.handleBlur}>${A(
|
|
729
|
+
this.isEmpty,
|
|
730
|
+
() => X,
|
|
731
|
+
() => A(
|
|
732
|
+
this.effect === K.Jump || this.effect === K.Zoom,
|
|
733
|
+
() => L`<cx-popup class="popup-container" strategy="absolute" active placement="center" sync="both">${this.renderContent()}</cx-popup>`,
|
|
732
734
|
() => this.renderContent()
|
|
733
735
|
)
|
|
734
|
-
)}<div class="zoom-image-container">${
|
|
736
|
+
)}<div class="zoom-image-container">${A(
|
|
735
737
|
i,
|
|
736
|
-
() =>
|
|
738
|
+
() => L`<img part="zoom-image" class=${S({
|
|
737
739
|
"zoom-image": !0,
|
|
738
740
|
"zoom-image--hidden": !this.isZoomed
|
|
739
|
-
})} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${
|
|
740
|
-
)}</div>${S(
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
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>`;
|
|
741
|
+
})} src=${this.applyRetryCacheBust(this.currentSrc) || this.placeholder} alt="" aria-hidden="true" decoding="async" draggable="false" crossorigin=${R(this.crossorigin)}>`
|
|
742
|
+
)}</div>${A(this.showPlaceholderSkeleton, () => L`<slot name="skeleton" part="skeleton"><div class=${S({
|
|
743
|
+
skeleton: !0
|
|
744
|
+
})}><cx-skeleton effect="sheen" role="status" aria-live="polite" aria-label=${this.localize.term("loading")}></cx-skeleton></div></slot>`)}
|
|
745
|
+
${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
746
|
}
|
|
749
747
|
};
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
748
|
+
j = /* @__PURE__ */ new WeakMap();
|
|
749
|
+
n.styles = [He, Se, Xe];
|
|
750
|
+
n.dependencies = {
|
|
753
751
|
"cx-icon": _e,
|
|
754
752
|
"cx-popup": Pe,
|
|
755
753
|
"cx-resize-observer": Ne,
|
|
756
754
|
"cx-skeleton": We,
|
|
757
|
-
"cx-space": Be
|
|
758
|
-
"cx-spinner": Fe
|
|
755
|
+
"cx-space": Be
|
|
759
756
|
};
|
|
760
757
|
h([
|
|
761
758
|
G(".image")
|
|
762
|
-
],
|
|
759
|
+
], n.prototype, "imageElement", 2);
|
|
763
760
|
h([
|
|
764
761
|
G(".zoom-image")
|
|
765
|
-
],
|
|
762
|
+
], n.prototype, "zoomImageElement", 2);
|
|
766
763
|
h([
|
|
767
764
|
G(".highlighter")
|
|
768
|
-
],
|
|
765
|
+
], n.prototype, "highlighterElement", 2);
|
|
766
|
+
h([
|
|
767
|
+
E()
|
|
768
|
+
], n.prototype, "isLoaded", 2);
|
|
769
|
+
h([
|
|
770
|
+
E()
|
|
771
|
+
], n.prototype, "isError", 2);
|
|
769
772
|
h([
|
|
770
|
-
|
|
771
|
-
],
|
|
773
|
+
E()
|
|
774
|
+
], n.prototype, "isRetrying", 2);
|
|
772
775
|
h([
|
|
773
|
-
|
|
774
|
-
],
|
|
776
|
+
E()
|
|
777
|
+
], n.prototype, "retryIndex", 2);
|
|
775
778
|
h([
|
|
776
|
-
|
|
777
|
-
],
|
|
779
|
+
p({ reflect: !0, type: String })
|
|
780
|
+
], n.prototype, "src", 2);
|
|
778
781
|
h([
|
|
779
|
-
|
|
780
|
-
],
|
|
782
|
+
p({ reflect: !0, type: String })
|
|
783
|
+
], n.prototype, "srcset", 2);
|
|
781
784
|
h([
|
|
782
|
-
|
|
783
|
-
],
|
|
785
|
+
p({ reflect: !0, type: String })
|
|
786
|
+
], n.prototype, "sizes", 2);
|
|
784
787
|
h([
|
|
785
|
-
|
|
786
|
-
],
|
|
788
|
+
p({ reflect: !0, type: String })
|
|
789
|
+
], n.prototype, "placeholder", 2);
|
|
787
790
|
h([
|
|
788
|
-
|
|
789
|
-
],
|
|
791
|
+
p({ reflect: !0, type: String })
|
|
792
|
+
], n.prototype, "alt", 2);
|
|
790
793
|
h([
|
|
791
|
-
|
|
792
|
-
],
|
|
794
|
+
p({ attribute: "object-fit", reflect: !0 })
|
|
795
|
+
], n.prototype, "objectFit", 2);
|
|
793
796
|
h([
|
|
794
|
-
|
|
795
|
-
],
|
|
797
|
+
p({ reflect: !0, type: Boolean })
|
|
798
|
+
], n.prototype, "skeleton", 2);
|
|
796
799
|
h([
|
|
797
|
-
|
|
798
|
-
],
|
|
800
|
+
p({ reflect: !0, type: Boolean })
|
|
801
|
+
], n.prototype, "fallback", 2);
|
|
799
802
|
h([
|
|
800
|
-
|
|
801
|
-
],
|
|
803
|
+
p({ attribute: "can-zoom", reflect: !0, type: Boolean })
|
|
804
|
+
], n.prototype, "canZoom", 2);
|
|
802
805
|
h([
|
|
803
|
-
|
|
804
|
-
],
|
|
806
|
+
p({ reflect: !0, type: Boolean })
|
|
807
|
+
], n.prototype, "loading", 2);
|
|
805
808
|
h([
|
|
806
|
-
|
|
807
|
-
],
|
|
809
|
+
p({ reflect: !0, type: Boolean })
|
|
810
|
+
], n.prototype, "block", 2);
|
|
808
811
|
h([
|
|
809
|
-
|
|
810
|
-
],
|
|
812
|
+
p({ attribute: "html-loading", reflect: !0, type: String })
|
|
813
|
+
], n.prototype, "htmlLoading", 2);
|
|
811
814
|
h([
|
|
812
|
-
|
|
813
|
-
],
|
|
815
|
+
p({ attribute: "no-crossorigin", reflect: !0, type: Boolean })
|
|
816
|
+
], n.prototype, "noCrossorigin", 2);
|
|
814
817
|
h([
|
|
815
|
-
|
|
816
|
-
],
|
|
818
|
+
p({ attribute: "click-handler-type", reflect: !0, type: String })
|
|
819
|
+
], n.prototype, "clickHandlerType", 2);
|
|
817
820
|
h([
|
|
818
|
-
|
|
819
|
-
],
|
|
821
|
+
p({ attribute: "retry-on-error", reflect: !0, type: Boolean })
|
|
822
|
+
], n.prototype, "retryOnError", 2);
|
|
820
823
|
h([
|
|
821
|
-
|
|
822
|
-
],
|
|
824
|
+
p({ attribute: "max-retries", type: Number })
|
|
825
|
+
], n.prototype, "maxRetries", 2);
|
|
823
826
|
h([
|
|
824
|
-
|
|
825
|
-
],
|
|
827
|
+
E()
|
|
828
|
+
], n.prototype, "isZoomed", 2);
|
|
826
829
|
h([
|
|
827
|
-
|
|
828
|
-
],
|
|
830
|
+
E()
|
|
831
|
+
], n.prototype, "imageRatio", 2);
|
|
829
832
|
h([
|
|
830
|
-
|
|
831
|
-
],
|
|
833
|
+
E()
|
|
834
|
+
], n.prototype, "parsedAlt", 2);
|
|
832
835
|
h([
|
|
833
|
-
|
|
834
|
-
],
|
|
836
|
+
E()
|
|
837
|
+
], n.prototype, "parsedAltDarkMode", 2);
|
|
835
838
|
h([
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
],
|
|
839
|
+
M("isLoaded"),
|
|
840
|
+
M("canZoom", { waitUntilFirstUpdate: !0 })
|
|
841
|
+
], n.prototype, "handleCanZoomChange", 1);
|
|
839
842
|
h([
|
|
840
|
-
|
|
841
|
-
],
|
|
843
|
+
M("objectFit", { waitUntilFirstUpdate: !0 })
|
|
844
|
+
], n.prototype, "handleObjectFitChange", 1);
|
|
842
845
|
h([
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
],
|
|
846
|
+
M("src"),
|
|
847
|
+
M("srcDarkMode")
|
|
848
|
+
], n.prototype, "handleSrcChange", 1);
|
|
846
849
|
h([
|
|
847
850
|
Oe(100)
|
|
848
|
-
],
|
|
849
|
-
|
|
851
|
+
], n.prototype, "updateLastPatchedWidth", 1);
|
|
852
|
+
n = h([
|
|
850
853
|
Ae("cx-image")
|
|
851
|
-
],
|
|
854
|
+
], n);
|
|
852
855
|
export {
|
|
853
|
-
|
|
854
|
-
|
|
856
|
+
n as C,
|
|
857
|
+
I as a
|
|
855
858
|
};
|