@instockng/storefront-ui 1.0.65 → 1.0.67
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/dist/components/ProductAddOns.d.ts.map +1 -1
- package/dist/index10.mjs +50 -45
- package/dist/index100.mjs +52 -41
- package/dist/index101.mjs +6 -2
- package/dist/index102.mjs +5 -2
- package/dist/index103.mjs +176 -25
- package/dist/index104.mjs +52 -17
- package/dist/index105.mjs +69 -215
- package/dist/index106.mjs +2 -180
- package/dist/index107.mjs +34 -22
- package/dist/index108.mjs +42 -22
- package/dist/index109.mjs +2 -33
- package/dist/index110.mjs +22 -155
- package/dist/index111.mjs +9 -11
- package/dist/index112.mjs +207 -23
- package/dist/index113.mjs +171 -74
- package/dist/index114.mjs +15 -31
- package/dist/index115.mjs +17 -139
- package/dist/index116.mjs +28 -50
- package/dist/index117.mjs +152 -19
- package/dist/index118.mjs +13 -20
- package/dist/index119.mjs +25 -17
- package/dist/index120.mjs +76 -17
- package/dist/index121.mjs +31 -14
- package/dist/index122.mjs +140 -17
- package/dist/index123.mjs +51 -16
- package/dist/index124.mjs +17 -59
- package/dist/index125.mjs +20 -11
- package/dist/index126.mjs +17 -33
- package/dist/index127.mjs +18 -17
- package/dist/index128.mjs +13 -26
- package/dist/index129.mjs +13 -18
- package/dist/index13.mjs +1 -1
- package/dist/index130.mjs +14 -12
- package/dist/index131.mjs +57 -13
- package/dist/index132.mjs +11 -40
- package/dist/index133.mjs +31 -15
- package/dist/index134.mjs +19 -263
- package/dist/index135.mjs +25 -61
- package/dist/index136.mjs +26 -7
- package/dist/index137.mjs +19 -2
- package/dist/index138.mjs +21 -2
- package/dist/index139.mjs +42 -28
- package/dist/index140.mjs +23 -2
- package/dist/index141.mjs +267 -20
- package/dist/index142.mjs +68 -54
- package/dist/index143.mjs +7 -28
- package/dist/index144.mjs +2 -7
- package/dist/index145.mjs +2 -52
- package/dist/index146.mjs +2 -6
- package/dist/index147.mjs +32 -11
- package/dist/index148.mjs +2 -7
- package/dist/index149.mjs +19 -30
- package/dist/index15.mjs +4 -4
- package/dist/index150.mjs +16 -4
- package/dist/index151.mjs +62 -70
- package/dist/index152.mjs +2 -167
- package/dist/index156.mjs +129 -13
- package/dist/index157.mjs +16 -26
- package/dist/index158.mjs +32 -32
- package/dist/index159.mjs +2 -18
- package/dist/index16.mjs +2 -2
- package/dist/index160.mjs +35 -13
- package/dist/index161.mjs +47 -2
- package/dist/index162.mjs +20 -19
- package/dist/index163.mjs +54 -44
- package/dist/index164.mjs +29 -2
- package/dist/index165.mjs +6 -29
- package/dist/index166.mjs +50 -16
- package/dist/index167.mjs +6 -2
- package/dist/index168.mjs +12 -2
- package/dist/index169.mjs +7 -2
- package/dist/index170.mjs +28 -2
- package/dist/index171.mjs +2 -72
- package/dist/index172.mjs +70 -2
- package/dist/index173.mjs +164 -50
- package/dist/index174.mjs +2 -2
- package/dist/index175.mjs +2 -36
- package/dist/index176.mjs +2 -152
- package/dist/index177.mjs +18 -2
- package/dist/index178.mjs +32 -2
- package/dist/index179.mjs +33 -14
- package/dist/index18.mjs +1 -1
- package/dist/index180.mjs +18 -2
- package/dist/index181.mjs +18 -2
- package/dist/index182.mjs +2 -26
- package/dist/index183.mjs +20 -2
- package/dist/index184.mjs +46 -2
- package/dist/index185.mjs +2 -24
- package/dist/index186.mjs +26 -19
- package/dist/index187.mjs +18 -2
- package/dist/index188.mjs +2 -2
- package/dist/index189.mjs +2 -2
- package/dist/index19.mjs +1 -1
- package/dist/index190.mjs +2 -23
- package/dist/index191.mjs +2 -2
- package/dist/index192.mjs +67 -18
- package/dist/index193.mjs +2 -2
- package/dist/index194.mjs +53 -2
- package/dist/index196.mjs +28 -15
- package/dist/index197.mjs +152 -2
- package/dist/index198.mjs +2 -23
- package/dist/index199.mjs +2 -2
- package/dist/index200.mjs +19 -2
- package/dist/index201.mjs +2 -2
- package/dist/index202.mjs +2 -2
- package/dist/index203.mjs +26 -2
- package/dist/index204.mjs +2 -2
- package/dist/index205.mjs +2 -2
- package/dist/index206.mjs +24 -2
- package/dist/index207.mjs +20 -124
- package/dist/index209.mjs +2 -74
- package/dist/index210.mjs +2 -74
- package/dist/index211.mjs +23 -2
- package/dist/index212.mjs +2 -31
- package/dist/index213.mjs +22 -10
- package/dist/index214.mjs +2 -4
- package/dist/index215.mjs +2 -4
- package/dist/index216.mjs +2 -13
- package/dist/index217.mjs +23 -7
- package/dist/index218.mjs +2 -12
- package/dist/index219.mjs +22 -4
- package/dist/index22.mjs +2 -2
- package/dist/index220.mjs +2 -33
- package/dist/index221.mjs +2 -31
- package/dist/index222.mjs +2 -28
- package/dist/index223.mjs +2 -61
- package/dist/index225.mjs +2 -2
- package/dist/index226.mjs +2 -2
- package/dist/index227.mjs +2 -2
- package/dist/index228.mjs +127 -2
- package/dist/index229.mjs +2 -2
- package/dist/index230.mjs +74 -2
- package/dist/index231.mjs +74 -2
- package/dist/index232.mjs +2 -108
- package/dist/index233.mjs +648 -2
- package/dist/index234.mjs +2 -2
- package/dist/index235.mjs +2 -37
- package/dist/index236.mjs +43 -2
- package/dist/index237.mjs +17 -241
- package/dist/index238.mjs +19 -2
- package/dist/index239.mjs +2 -33
- package/dist/index240.mjs +2 -65
- package/dist/index241.mjs +30 -24
- package/dist/index242.mjs +11 -2
- package/dist/index243.mjs +4 -2
- package/dist/index244.mjs +4 -2
- package/dist/index245.mjs +13 -2
- package/dist/index246.mjs +7 -2
- package/dist/index247.mjs +12 -2
- package/dist/index248.mjs +5 -2
- package/dist/index249.mjs +33 -2
- package/dist/index25.mjs +2 -2
- package/dist/index250.mjs +31 -2
- package/dist/index251.mjs +28 -2
- package/dist/index252.mjs +61 -4
- package/dist/index253.mjs +2 -2
- package/dist/index254.mjs +2 -2
- package/dist/index255.mjs +2 -3
- package/dist/index256.mjs +2 -2
- package/dist/index257.mjs +2 -2
- package/dist/index258.mjs +2 -2
- package/dist/index259.mjs +108 -2
- package/dist/index26.mjs +1 -1
- package/dist/index260.mjs +2 -18
- package/dist/index261.mjs +2 -47
- package/dist/index262.mjs +2 -17
- package/dist/index263.mjs +2 -13
- package/dist/index264.mjs +37 -6
- package/dist/index265.mjs +2 -30
- package/dist/index266.mjs +2 -2
- package/dist/index267.mjs +2 -2
- package/dist/index268.mjs +244 -2
- package/dist/index270.mjs +31 -89
- package/dist/index271.mjs +65 -2
- package/dist/index272.mjs +25 -2
- package/dist/index274.mjs +2 -2
- package/dist/index275.mjs +5 -0
- package/dist/index276.mjs +5 -0
- package/dist/index277.mjs +5 -0
- package/dist/index278.mjs +5 -0
- package/dist/index279.mjs +5 -0
- package/dist/index280.mjs +5 -0
- package/dist/index281.mjs +7 -0
- package/dist/index282.mjs +5 -0
- package/dist/index283.mjs +5 -0
- package/dist/index284.mjs +5 -0
- package/dist/index285.mjs +5 -0
- package/dist/index286.mjs +5 -0
- package/dist/index287.mjs +5 -0
- package/dist/index288.mjs +6 -0
- package/dist/index289.mjs +5 -0
- package/dist/index290.mjs +5 -0
- package/dist/index291.mjs +20 -0
- package/dist/index292.mjs +16 -0
- package/dist/index293.mjs +9 -0
- package/dist/index294.mjs +33 -0
- package/dist/index295.mjs +5 -0
- package/dist/index296.mjs +5 -0
- package/dist/index297.mjs +21 -0
- package/dist/index298.mjs +50 -0
- package/dist/index299.mjs +5 -0
- package/dist/index300.mjs +5 -0
- package/dist/index301.mjs +5 -0
- package/dist/index302.mjs +5 -0
- package/dist/index303.mjs +94 -0
- package/dist/index304.mjs +5 -0
- package/dist/index305.mjs +5 -0
- package/dist/index306.mjs +5 -0
- package/dist/index307.mjs +5 -0
- package/dist/index34.mjs +11 -11
- package/dist/index40.mjs +2 -2
- package/dist/index42.mjs +2 -2
- package/dist/index43.mjs +6 -32
- package/dist/index44.mjs +32 -7
- package/dist/index45.mjs +6 -1432
- package/dist/index46.mjs +1432 -69
- package/dist/index47.mjs +70 -2
- package/dist/index48.mjs +2 -60
- package/dist/index49.mjs +57 -48
- package/dist/index50.mjs +51 -33
- package/dist/index51.mjs +33 -15
- package/dist/index52.mjs +12 -2260
- package/dist/index53.mjs +2263 -36
- package/dist/index54.mjs +36 -44
- package/dist/index55.mjs +44 -99
- package/dist/index56.mjs +99 -113
- package/dist/index57.mjs +82 -50
- package/dist/index58.mjs +53 -79
- package/dist/index59.mjs +75 -63
- package/dist/index60.mjs +71 -57
- package/dist/index61.mjs +57 -55
- package/dist/index62.mjs +75 -15
- package/dist/index63.mjs +13 -14
- package/dist/index64.mjs +16 -59
- package/dist/index65.mjs +43 -105
- package/dist/index66.mjs +89 -93
- package/dist/index67.mjs +128 -23
- package/dist/index68.mjs +19 -149
- package/dist/index69.mjs +24 -2
- package/dist/index70.mjs +2 -23
- package/dist/index71.mjs +37 -74
- package/dist/index72.mjs +2 -15
- package/dist/index73.mjs +148 -58
- package/dist/index75.mjs +75 -2
- package/dist/index76.mjs +15 -6
- package/dist/index77.mjs +57 -1128
- package/dist/index78.mjs +5 -19
- package/dist/index79.mjs +352 -51
- package/dist/index80.mjs +216 -30
- package/dist/index81.mjs +59 -2
- package/dist/index82.mjs +2 -235
- package/dist/index83.mjs +2 -6
- package/dist/index84.mjs +2 -134
- package/dist/index85.mjs +1134 -67
- package/dist/index86.mjs +19 -86
- package/dist/index87.mjs +54 -28
- package/dist/index88.mjs +32 -8
- package/dist/index89.mjs +229 -69
- package/dist/index90.mjs +5 -3
- package/dist/index91.mjs +134 -2
- package/dist/index92.mjs +64 -79
- package/dist/index93.mjs +84 -51
- package/dist/index94.mjs +28 -5
- package/dist/index95.mjs +8 -4
- package/dist/index96.mjs +69 -173
- package/dist/index97.mjs +4 -53
- package/dist/index98.mjs +2 -69
- package/dist/index99.mjs +80 -31
- package/package.json +1 -1
- package/src/components/ProductAddOns.tsx +10 -5
package/dist/index80.mjs
CHANGED
|
@@ -1,36 +1,222 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __module as
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { __module as E } from "./index155.mjs";
|
|
3
|
+
import "./index78.mjs";
|
|
4
|
+
import "./index110.mjs";
|
|
5
|
+
import J from "react/jsx-runtime";
|
|
6
|
+
import K from "react";
|
|
7
|
+
import Q from "react-dom";
|
|
8
|
+
import { __require as Y } from "./index156.mjs";
|
|
9
|
+
import "./index79.mjs";
|
|
10
|
+
import "./index151.mjs";
|
|
11
|
+
import { __require as Z } from "./index157.mjs";
|
|
12
|
+
import "./index149.mjs";
|
|
13
|
+
import { __require as ee } from "./index86.mjs";
|
|
14
|
+
import { __require as te } from "./index81.mjs";
|
|
15
|
+
import { __require as re } from "./index158.mjs";
|
|
16
|
+
import { __exports as oe } from "./index144.mjs";
|
|
17
|
+
import { __exports as ie } from "./index82.mjs";
|
|
18
|
+
import { __exports as ne } from "./index152.mjs";
|
|
19
|
+
import { __exports as se } from "./index83.mjs";
|
|
20
|
+
import { __exports as ae } from "./index153.mjs";
|
|
21
|
+
(function(O, s) {
|
|
22
|
+
"use client";
|
|
23
|
+
Object.defineProperty(s, "__esModule", {
|
|
24
|
+
value: !0
|
|
25
|
+
}), Object.defineProperty(s, "Image", {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
get: function() {
|
|
28
|
+
return X;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const P = ie, T = oe, g = J, o = /* @__PURE__ */ T._(K), z = /* @__PURE__ */ P._(Q), M = /* @__PURE__ */ P._(Y()), L = se, D = ne, N = Z(), S = ae, $ = ee(), B = /* @__PURE__ */ P._(te()), V = re(), k = process.env.__NEXT_IMAGE_OPTS;
|
|
32
|
+
typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
|
|
33
|
+
function I(e, h, t, a, v, b, d) {
|
|
34
|
+
const l = e == null ? void 0 : e.src;
|
|
35
|
+
if (!e || e["data-loaded-src"] === l)
|
|
36
|
+
return;
|
|
37
|
+
e["data-loaded-src"] = l, ("decode" in e ? e.decode() : Promise.resolve()).catch(() => {
|
|
38
|
+
}).then(() => {
|
|
39
|
+
if (!(!e.parentElement || !e.isConnected)) {
|
|
40
|
+
if (h !== "empty" && v(!0), t != null && t.current) {
|
|
41
|
+
const r = new Event("load");
|
|
42
|
+
Object.defineProperty(r, "target", {
|
|
43
|
+
writable: !1,
|
|
44
|
+
value: e
|
|
45
|
+
});
|
|
46
|
+
let f = !1, i = !1;
|
|
47
|
+
t.current({
|
|
48
|
+
...r,
|
|
49
|
+
nativeEvent: r,
|
|
50
|
+
currentTarget: e,
|
|
51
|
+
target: e,
|
|
52
|
+
isDefaultPrevented: () => f,
|
|
53
|
+
isPropagationStopped: () => i,
|
|
54
|
+
persist: () => {
|
|
55
|
+
},
|
|
56
|
+
preventDefault: () => {
|
|
57
|
+
f = !0, r.preventDefault();
|
|
58
|
+
},
|
|
59
|
+
stopPropagation: () => {
|
|
60
|
+
i = !0, r.stopPropagation();
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
if (a != null && a.current && a.current(e), process.env.NODE_ENV !== "production") {
|
|
65
|
+
const r = new URL(l, "http://n").searchParams.get("url") || l;
|
|
66
|
+
if (e.getAttribute("data-nimg") === "fill") {
|
|
67
|
+
if (!b && (!d || d === "100vw") && e.getBoundingClientRect().width / window.innerWidth < 0.6 && (d === "100vw" ? (0, S.warnOnce)('Image with src "' + r + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes') : (0, S.warnOnce)('Image with src "' + r + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes')), e.parentElement) {
|
|
68
|
+
const { position: _ } = window.getComputedStyle(e.parentElement), p = [
|
|
69
|
+
"absolute",
|
|
70
|
+
"fixed",
|
|
71
|
+
"relative"
|
|
72
|
+
];
|
|
73
|
+
p.includes(_) || (0, S.warnOnce)('Image with src "' + r + '" has "fill" and parent element with invalid "position". Provided "' + _ + '" should be one of ' + p.map(String).join(",") + ".");
|
|
74
|
+
}
|
|
75
|
+
e.height === 0 && (0, S.warnOnce)('Image with src "' + r + '" has "fill" and a height value of 0. This is likely because the parent element of the image has not been styled to have a set height.');
|
|
76
|
+
}
|
|
77
|
+
const f = e.height.toString() !== e.getAttribute("height"), i = e.width.toString() !== e.getAttribute("width");
|
|
78
|
+
(f && !i || !f && i) && (0, S.warnOnce)('Image with src "' + r + `" has either width or height modified, but not the other. If you use CSS to change the size of your image, also include the styles 'width: "auto"' or 'height: "auto"' to maintain the aspect ratio.`);
|
|
79
|
+
}
|
|
15
80
|
}
|
|
16
81
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
82
|
+
}
|
|
83
|
+
function j(e) {
|
|
84
|
+
return o.use ? {
|
|
85
|
+
fetchPriority: e
|
|
86
|
+
} : {
|
|
87
|
+
fetchpriority: e
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const G = /* @__PURE__ */ (0, o.forwardRef)((e, h) => {
|
|
91
|
+
let { src: t, srcSet: a, sizes: v, height: b, width: d, decoding: l, className: y, style: r, fetchPriority: f, placeholder: i, loading: _, unoptimized: p, fill: C, onLoadRef: m, onLoadingCompleteRef: x, setBlurComplete: c, setShowAltText: q, sizesInput: R, onLoad: A, onError: u, ...w } = e;
|
|
92
|
+
const F = (0, o.useCallback)((n) => {
|
|
93
|
+
n && (u && (n.src = n.src), process.env.NODE_ENV !== "production" && (t || console.error('Image is missing required "src" property:', n), n.getAttribute("alt") === null && console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')), n.complete && I(n, i, m, x, c, p, R));
|
|
94
|
+
}, [
|
|
95
|
+
t,
|
|
96
|
+
i,
|
|
97
|
+
m,
|
|
98
|
+
x,
|
|
99
|
+
c,
|
|
100
|
+
u,
|
|
101
|
+
p,
|
|
102
|
+
R
|
|
103
|
+
]), H = (0, V.useMergedRef)(h, F);
|
|
104
|
+
return /* @__PURE__ */ (0, g.jsx)("img", {
|
|
105
|
+
...w,
|
|
106
|
+
...j(f),
|
|
107
|
+
// It's intended to keep `loading` before `src` because React updates
|
|
108
|
+
// props in order which causes Safari/Firefox to not lazy load properly.
|
|
109
|
+
// See https://github.com/facebook/react/issues/25883
|
|
110
|
+
loading: _,
|
|
111
|
+
width: d,
|
|
112
|
+
height: b,
|
|
113
|
+
decoding: l,
|
|
114
|
+
"data-nimg": C ? "fill" : "1",
|
|
115
|
+
className: y,
|
|
116
|
+
style: r,
|
|
117
|
+
// It's intended to keep `src` the last attribute because React updates
|
|
118
|
+
// attributes in order. If we keep `src` the first one, Safari will
|
|
119
|
+
// immediately start to fetch `src`, before `sizes` and `srcSet` are even
|
|
120
|
+
// updated by React. That causes multiple unnecessary requests if `srcSet`
|
|
121
|
+
// and `sizes` are defined.
|
|
122
|
+
// This bug cannot be reproduced in Chrome or Firefox.
|
|
123
|
+
sizes: v,
|
|
124
|
+
srcSet: a,
|
|
125
|
+
src: t,
|
|
126
|
+
ref: H,
|
|
127
|
+
onLoad: (n) => {
|
|
128
|
+
const W = n.currentTarget;
|
|
129
|
+
I(W, i, m, x, c, p, R);
|
|
130
|
+
},
|
|
131
|
+
onError: (n) => {
|
|
132
|
+
q(!0), i !== "empty" && c(!0), u && u(n);
|
|
28
133
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
function U(e) {
|
|
137
|
+
let { isAppRouter: h, imgAttributes: t } = e;
|
|
138
|
+
const a = {
|
|
139
|
+
as: "image",
|
|
140
|
+
imageSrcSet: t.srcSet,
|
|
141
|
+
imageSizes: t.sizes,
|
|
142
|
+
crossOrigin: t.crossOrigin,
|
|
143
|
+
referrerPolicy: t.referrerPolicy,
|
|
144
|
+
...j(t.fetchPriority)
|
|
145
|
+
};
|
|
146
|
+
return h && z.default.preload ? (z.default.preload(
|
|
147
|
+
t.src,
|
|
148
|
+
// @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`
|
|
149
|
+
a
|
|
150
|
+
), null) : /* @__PURE__ */ (0, g.jsx)(M.default, {
|
|
151
|
+
children: /* @__PURE__ */ (0, g.jsx)("link", {
|
|
152
|
+
rel: "preload",
|
|
153
|
+
// Note how we omit the `href` attribute, as it would only be relevant
|
|
154
|
+
// for browsers that do not support `imagesrcset`, and in those cases
|
|
155
|
+
// it would cause the incorrect image to be preloaded.
|
|
156
|
+
//
|
|
157
|
+
// https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
|
|
158
|
+
href: t.srcSet ? void 0 : t.src,
|
|
159
|
+
...a
|
|
160
|
+
}, "__nimg-" + t.src + t.srcSet + t.sizes)
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
const X = /* @__PURE__ */ (0, o.forwardRef)((e, h) => {
|
|
164
|
+
const a = !(0, o.useContext)($.RouterContext), v = (0, o.useContext)(N.ImageConfigContext), b = (0, o.useMemo)(() => {
|
|
165
|
+
var x;
|
|
166
|
+
const c = k || v || D.imageConfigDefault, q = [
|
|
167
|
+
...c.deviceSizes,
|
|
168
|
+
...c.imageSizes
|
|
169
|
+
].sort((u, w) => u - w), R = c.deviceSizes.sort((u, w) => u - w), A = (x = c.qualities) == null ? void 0 : x.sort((u, w) => u - w);
|
|
170
|
+
return {
|
|
171
|
+
...c,
|
|
172
|
+
allSizes: q,
|
|
173
|
+
deviceSizes: R,
|
|
174
|
+
qualities: A
|
|
175
|
+
};
|
|
176
|
+
}, [
|
|
177
|
+
v
|
|
178
|
+
]), { onLoad: d, onLoadingComplete: l } = e, y = (0, o.useRef)(d);
|
|
179
|
+
(0, o.useEffect)(() => {
|
|
180
|
+
y.current = d;
|
|
181
|
+
}, [
|
|
182
|
+
d
|
|
183
|
+
]);
|
|
184
|
+
const r = (0, o.useRef)(l);
|
|
185
|
+
(0, o.useEffect)(() => {
|
|
186
|
+
r.current = l;
|
|
187
|
+
}, [
|
|
188
|
+
l
|
|
189
|
+
]);
|
|
190
|
+
const [f, i] = (0, o.useState)(!1), [_, p] = (0, o.useState)(!1), { props: C, meta: m } = (0, L.getImgProps)(e, {
|
|
191
|
+
defaultLoader: B.default,
|
|
192
|
+
imgConf: b,
|
|
193
|
+
blurComplete: f,
|
|
194
|
+
showAltText: _
|
|
195
|
+
});
|
|
196
|
+
return /* @__PURE__ */ (0, g.jsxs)(g.Fragment, {
|
|
197
|
+
children: [
|
|
198
|
+
/* @__PURE__ */ (0, g.jsx)(G, {
|
|
199
|
+
...C,
|
|
200
|
+
unoptimized: m.unoptimized,
|
|
201
|
+
placeholder: m.placeholder,
|
|
202
|
+
fill: m.fill,
|
|
203
|
+
onLoadRef: y,
|
|
204
|
+
onLoadingCompleteRef: r,
|
|
205
|
+
setBlurComplete: i,
|
|
206
|
+
setShowAltText: p,
|
|
207
|
+
sizesInput: e.sizes,
|
|
208
|
+
ref: h
|
|
209
|
+
}),
|
|
210
|
+
m.priority ? /* @__PURE__ */ (0, g.jsx)(U, {
|
|
211
|
+
isAppRouter: a,
|
|
212
|
+
imgAttributes: C
|
|
213
|
+
}) : null
|
|
214
|
+
]
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
(typeof s.default == "function" || typeof s.default == "object" && s.default !== null) && typeof s.default.__esModule > "u" && (Object.defineProperty(s.default, "__esModule", { value: !0 }), Object.assign(s.default, s), O.exports = s.default);
|
|
218
|
+
})(E, E.exports);
|
|
219
|
+
var qe = E.exports;
|
|
34
220
|
export {
|
|
35
|
-
|
|
221
|
+
qe as i
|
|
36
222
|
};
|
package/dist/index81.mjs
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import { __exports as c } from "./index159.mjs";
|
|
3
|
+
import { __require as p } from "./index160.mjs";
|
|
4
|
+
import { __require as _ } from "./index161.mjs";
|
|
5
|
+
var l;
|
|
6
|
+
function v() {
|
|
7
|
+
return l ? c : (l = 1, function(u) {
|
|
8
|
+
Object.defineProperty(u, "__esModule", {
|
|
9
|
+
value: !0
|
|
10
|
+
}), Object.defineProperty(u, "default", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: function() {
|
|
13
|
+
return g;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const s = 75;
|
|
17
|
+
function m(h) {
|
|
18
|
+
let { config: t, src: e, width: i, quality: n } = h;
|
|
19
|
+
var d;
|
|
20
|
+
if (process.env.NODE_ENV !== "production") {
|
|
21
|
+
const o = [];
|
|
22
|
+
if (e || o.push("src"), i || o.push("width"), o.length > 0)
|
|
23
|
+
throw new Error("Next Image Optimization requires " + o.join(", ") + " to be provided. Make sure you pass them as props to the `next/image` component. Received: " + JSON.stringify({
|
|
24
|
+
src: e,
|
|
25
|
+
width: i,
|
|
26
|
+
quality: n
|
|
27
|
+
}));
|
|
28
|
+
if (e.startsWith("//"))
|
|
29
|
+
throw new Error('Failed to parse src "' + e + '" on `next/image`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)');
|
|
30
|
+
if (e.startsWith("/") && t.localPatterns && process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
31
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
32
|
+
const { hasLocalMatch: r } = p();
|
|
33
|
+
if (!r(t.localPatterns, e))
|
|
34
|
+
throw new Error("Invalid src prop (" + e + ") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns");
|
|
35
|
+
}
|
|
36
|
+
if (!e.startsWith("/") && (t.domains || t.remotePatterns)) {
|
|
37
|
+
let r;
|
|
38
|
+
try {
|
|
39
|
+
r = new URL(e);
|
|
40
|
+
} catch (a) {
|
|
41
|
+
throw console.error(a), new Error('Failed to parse src "' + e + '" on `next/image`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)');
|
|
42
|
+
}
|
|
43
|
+
if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
44
|
+
process.env.NEXT_RUNTIME !== "edge") {
|
|
45
|
+
const { hasRemoteMatch: a } = _();
|
|
46
|
+
if (!a(t.domains, t.remotePatterns, r))
|
|
47
|
+
throw new Error("Invalid src prop (" + e + ') on `next/image`, hostname "' + r.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host');
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (n && t.qualities && !t.qualities.includes(n))
|
|
51
|
+
throw new Error("Invalid quality prop (" + n + ") on `next/image` does not match `images.qualities` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-qualities");
|
|
52
|
+
}
|
|
53
|
+
const f = n || ((d = t.qualities) == null ? void 0 : d.reduce((o, r) => Math.abs(r - s) < Math.abs(o - s) ? r : o)) || s;
|
|
54
|
+
return t.path + "?url=" + encodeURIComponent(e) + "&w=" + i + "&q=" + f + (e.startsWith("/_next/static/media/") && process.env.NEXT_DEPLOYMENT_ID ? "&dpl=" + process.env.NEXT_DEPLOYMENT_ID : "");
|
|
55
|
+
}
|
|
56
|
+
m.__next_img_default = !0;
|
|
57
|
+
const g = m;
|
|
58
|
+
}(c), c);
|
|
59
|
+
}
|
|
3
60
|
export {
|
|
4
|
-
|
|
61
|
+
v as __require
|
|
5
62
|
};
|
package/dist/index82.mjs
CHANGED
|
@@ -1,238 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
const { toString: T } = Object.prototype, { getPrototypeOf: A } = Object, { iterator: g, toStringTag: S } = Symbol, F = /* @__PURE__ */ ((e) => (t) => {
|
|
4
|
-
const n = T.call(t);
|
|
5
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
6
|
-
})(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => F(t) === e), O = (e) => (t) => typeof t === e, { isArray: p } = Array, a = O("undefined");
|
|
7
|
-
function d(e) {
|
|
8
|
-
return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
9
|
-
}
|
|
10
|
-
const B = f("ArrayBuffer");
|
|
11
|
-
function M(e) {
|
|
12
|
-
let t;
|
|
13
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && B(e.buffer), t;
|
|
14
|
-
}
|
|
15
|
-
const k = O("string"), c = O("function"), E = O("number"), y = (e) => e !== null && typeof e == "object", N = (e) => e === !0 || e === !1, w = (e) => {
|
|
16
|
-
if (F(e) !== "object")
|
|
17
|
-
return !1;
|
|
18
|
-
const t = A(e);
|
|
19
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
|
|
20
|
-
}, U = (e) => {
|
|
21
|
-
if (!y(e) || d(e))
|
|
22
|
-
return !1;
|
|
23
|
-
try {
|
|
24
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
25
|
-
} catch {
|
|
26
|
-
return !1;
|
|
27
|
-
}
|
|
28
|
-
}, I = f("Date"), V = f("File"), _ = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
|
|
29
|
-
let t;
|
|
30
|
-
return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = F(e)) === "formdata" || // detect form-data instance
|
|
31
|
-
t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
|
|
32
|
-
}, J = f("URLSearchParams"), [K, $, W, G] = ["ReadableStream", "Request", "Response", "Headers"].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
33
|
-
function m(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
34
|
-
if (e === null || typeof e > "u")
|
|
35
|
-
return;
|
|
36
|
-
let r, s;
|
|
37
|
-
if (typeof e != "object" && (e = [e]), p(e))
|
|
38
|
-
for (r = 0, s = e.length; r < s; r++)
|
|
39
|
-
t.call(null, e[r], r, e);
|
|
40
|
-
else {
|
|
41
|
-
if (d(e))
|
|
42
|
-
return;
|
|
43
|
-
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
44
|
-
let l;
|
|
45
|
-
for (r = 0; r < i; r++)
|
|
46
|
-
l = o[r], t.call(null, e[l], l, e);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function P(e, t) {
|
|
50
|
-
if (d(e))
|
|
51
|
-
return null;
|
|
52
|
-
t = t.toLowerCase();
|
|
53
|
-
const n = Object.keys(e);
|
|
54
|
-
let r = n.length, s;
|
|
55
|
-
for (; r-- > 0; )
|
|
56
|
-
if (s = n[r], t === s.toLowerCase())
|
|
57
|
-
return s;
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
61
|
-
function h() {
|
|
62
|
-
const { caseless: e, skipUndefined: t } = L(this) && this || {}, n = {}, r = (s, o) => {
|
|
63
|
-
const i = e && P(n, o) || o;
|
|
64
|
-
w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
|
|
65
|
-
};
|
|
66
|
-
for (let s = 0, o = arguments.length; s < o; s++)
|
|
67
|
-
arguments[s] && m(arguments[s], r);
|
|
68
|
-
return n;
|
|
69
|
-
}
|
|
70
|
-
const X = (e, t, n, { allOwnKeys: r } = {}) => (m(t, (s, o) => {
|
|
71
|
-
n && c(s) ? e[o] = R(s, n) : e[o] = s;
|
|
72
|
-
}, { allOwnKeys: r }), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, n, r) => {
|
|
73
|
-
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
74
|
-
value: t.prototype
|
|
75
|
-
}), n && Object.assign(e.prototype, n);
|
|
76
|
-
}, j = (e, t, n, r) => {
|
|
77
|
-
let s, o, i;
|
|
78
|
-
const l = {};
|
|
79
|
-
if (t = t || {}, e == null) return t;
|
|
80
|
-
do {
|
|
81
|
-
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
82
|
-
i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
83
|
-
e = n !== !1 && A(e);
|
|
84
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
85
|
-
return t;
|
|
86
|
-
}, v = (e, t, n) => {
|
|
87
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
88
|
-
const r = e.indexOf(t, n);
|
|
89
|
-
return r !== -1 && r === n;
|
|
90
|
-
}, ee = (e) => {
|
|
91
|
-
if (!e) return null;
|
|
92
|
-
if (p(e)) return e;
|
|
93
|
-
let t = e.length;
|
|
94
|
-
if (!E(t)) return null;
|
|
95
|
-
const n = new Array(t);
|
|
96
|
-
for (; t-- > 0; )
|
|
97
|
-
n[t] = e[t];
|
|
98
|
-
return n;
|
|
99
|
-
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), ne = (e, t) => {
|
|
100
|
-
const r = (e && e[g]).call(e);
|
|
101
|
-
let s;
|
|
102
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
103
|
-
const o = s.value;
|
|
104
|
-
t.call(e, o[0], o[1]);
|
|
105
|
-
}
|
|
106
|
-
}, re = (e, t) => {
|
|
107
|
-
let n;
|
|
108
|
-
const r = [];
|
|
109
|
-
for (; (n = e.exec(t)) !== null; )
|
|
110
|
-
r.push(n);
|
|
111
|
-
return r;
|
|
112
|
-
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(
|
|
113
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
114
|
-
function(n, r, s) {
|
|
115
|
-
return r.toUpperCase() + s;
|
|
116
|
-
}
|
|
117
|
-
), x = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
|
|
118
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
119
|
-
m(n, (s, o) => {
|
|
120
|
-
let i;
|
|
121
|
-
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
122
|
-
}), Object.defineProperties(e, r);
|
|
123
|
-
}, ce = (e) => {
|
|
124
|
-
C(e, (t, n) => {
|
|
125
|
-
if (c(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
126
|
-
return !1;
|
|
127
|
-
const r = e[n];
|
|
128
|
-
if (c(r)) {
|
|
129
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
130
|
-
t.writable = !1;
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
t.set || (t.set = () => {
|
|
134
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}, fe = (e, t) => {
|
|
139
|
-
const n = {}, r = (s) => {
|
|
140
|
-
s.forEach((o) => {
|
|
141
|
-
n[o] = !0;
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
return p(e) ? r(e) : r(String(e).split(t)), n;
|
|
145
|
-
}, le = () => {
|
|
146
|
-
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
147
|
-
function ae(e) {
|
|
148
|
-
return !!(e && c(e.append) && e[S] === "FormData" && e[g]);
|
|
149
|
-
}
|
|
150
|
-
const pe = (e) => {
|
|
151
|
-
const t = new Array(10), n = (r, s) => {
|
|
152
|
-
if (y(r)) {
|
|
153
|
-
if (t.indexOf(r) >= 0)
|
|
154
|
-
return;
|
|
155
|
-
if (d(r))
|
|
156
|
-
return r;
|
|
157
|
-
if (!("toJSON" in r)) {
|
|
158
|
-
t[s] = r;
|
|
159
|
-
const o = p(r) ? [] : {};
|
|
160
|
-
return m(r, (i, l) => {
|
|
161
|
-
const b = n(i, s + 1);
|
|
162
|
-
!a(b) && (o[l] = b);
|
|
163
|
-
}), t[s] = void 0, o;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return r;
|
|
167
|
-
};
|
|
168
|
-
return n(e, 0);
|
|
169
|
-
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (u.addEventListener("message", ({ source: s, data: o }) => {
|
|
170
|
-
s === u && o === n && r.length && r.shift()();
|
|
171
|
-
}, !1), (s) => {
|
|
172
|
-
r.push(s), u.postMessage(n, "*");
|
|
173
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
174
|
-
typeof setImmediate == "function",
|
|
175
|
-
c(u.postMessage)
|
|
176
|
-
), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), Fe = {
|
|
177
|
-
isArray: p,
|
|
178
|
-
isArrayBuffer: B,
|
|
179
|
-
isBuffer: d,
|
|
180
|
-
isFormData: z,
|
|
181
|
-
isArrayBufferView: M,
|
|
182
|
-
isString: k,
|
|
183
|
-
isNumber: E,
|
|
184
|
-
isBoolean: N,
|
|
185
|
-
isObject: y,
|
|
186
|
-
isPlainObject: w,
|
|
187
|
-
isEmptyObject: U,
|
|
188
|
-
isReadableStream: K,
|
|
189
|
-
isRequest: $,
|
|
190
|
-
isResponse: W,
|
|
191
|
-
isHeaders: G,
|
|
192
|
-
isUndefined: a,
|
|
193
|
-
isDate: I,
|
|
194
|
-
isFile: V,
|
|
195
|
-
isBlob: _,
|
|
196
|
-
isRegExp: ie,
|
|
197
|
-
isFunction: c,
|
|
198
|
-
isStream: H,
|
|
199
|
-
isURLSearchParams: J,
|
|
200
|
-
isTypedArray: te,
|
|
201
|
-
isFileList: q,
|
|
202
|
-
forEach: m,
|
|
203
|
-
merge: h,
|
|
204
|
-
extend: X,
|
|
205
|
-
trim: Q,
|
|
206
|
-
stripBOM: Y,
|
|
207
|
-
inherits: Z,
|
|
208
|
-
toFlatObject: j,
|
|
209
|
-
kindOf: F,
|
|
210
|
-
kindOfTest: f,
|
|
211
|
-
endsWith: v,
|
|
212
|
-
toArray: ee,
|
|
213
|
-
forEachEntry: ne,
|
|
214
|
-
matchAll: re,
|
|
215
|
-
isHTMLForm: se,
|
|
216
|
-
hasOwnProperty: x,
|
|
217
|
-
hasOwnProp: x,
|
|
218
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
219
|
-
reduceDescriptors: C,
|
|
220
|
-
freezeMethods: ce,
|
|
221
|
-
toObjectSet: fe,
|
|
222
|
-
toCamelCase: oe,
|
|
223
|
-
noop: le,
|
|
224
|
-
toFiniteNumber: ue,
|
|
225
|
-
findKey: P,
|
|
226
|
-
global: u,
|
|
227
|
-
isContextDefined: L,
|
|
228
|
-
isSpecCompliantForm: ae,
|
|
229
|
-
toJSONObject: pe,
|
|
230
|
-
isAsyncFn: de,
|
|
231
|
-
isThenable: ye,
|
|
232
|
-
setImmediate: D,
|
|
233
|
-
asap: me,
|
|
234
|
-
isIterable: we
|
|
235
|
-
};
|
|
2
|
+
var e = {};
|
|
236
3
|
export {
|
|
237
|
-
|
|
4
|
+
e as __exports
|
|
238
5
|
};
|