@nutui/taro-biz 0.0.1-alpha.23 → 0.0.1-alpha.24
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/es/index/index.d.ts +2 -0
- package/dist/es/index/index.js +6 -0
- package/dist/es/jdmaterialsblurtarget/index.d.ts +2 -0
- package/dist/es/jdmaterialsblurtarget/index.js +2 -12
- package/dist/es/jdmaterialsblurtarget.taro-Bn_5xMxm.mjs +43 -0
- package/dist/es/jdmaterialview/index.d.ts +2 -0
- package/dist/es/jdmaterialview/index.js +6 -145
- package/dist/es/jdmaterialview.taro-KasOg_jj.mjs +319 -0
- package/dist/es/typings-CdeuPEKG.mjs +7 -0
- package/package.json +1 -1
- package/dist/es/typings-Cti4YWFr.mjs +0 -635
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const s = {
|
|
3
|
-
...e
|
|
4
|
-
}, o = (a) => {
|
|
5
|
-
const { children: r } = {
|
|
6
|
-
...s,
|
|
7
|
-
...a
|
|
8
|
-
};
|
|
9
|
-
return /* @__PURE__ */ t.jsx(t.Fragment, { children: r });
|
|
10
|
-
};
|
|
11
|
-
o.displayName = "NutJDMaterialsBlurTarget";
|
|
1
|
+
import { J as r } from "../jdmaterialsblurtarget.taro-Bn_5xMxm.mjs";
|
|
12
2
|
export {
|
|
13
|
-
|
|
3
|
+
r as default
|
|
14
4
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as a, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import f from "classnames";
|
|
3
|
+
import u from "@tarojs/taro";
|
|
4
|
+
import { View as p } from "@jdtaro/ui";
|
|
5
|
+
import { C as d } from "./typings-CdeuPEKG.mjs";
|
|
6
|
+
const g = {
|
|
7
|
+
...d
|
|
8
|
+
};
|
|
9
|
+
function y() {
|
|
10
|
+
var t;
|
|
11
|
+
try {
|
|
12
|
+
const r = String(((t = u.getSystemInfoSync()) == null ? void 0 : t.platform) || "").toLowerCase();
|
|
13
|
+
return r === "android" || r === "ios";
|
|
14
|
+
} catch {
|
|
15
|
+
return !1;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const T = (t) => {
|
|
19
|
+
const { className: r, style: n, children: o, blurId: e, id: N, ...i } = {
|
|
20
|
+
...g,
|
|
21
|
+
...t
|
|
22
|
+
};
|
|
23
|
+
if (!y())
|
|
24
|
+
return /* @__PURE__ */ a(m, { children: o });
|
|
25
|
+
const l = f("nut-jdmaterialsblurtarget", r), s = i, c = typeof s.onTouchStart == "function" ? void 0 : { onTouchStart: () => {
|
|
26
|
+
} };
|
|
27
|
+
return /* @__PURE__ */ a(
|
|
28
|
+
p,
|
|
29
|
+
{
|
|
30
|
+
className: l,
|
|
31
|
+
style: n,
|
|
32
|
+
id: e,
|
|
33
|
+
blurId: e,
|
|
34
|
+
...c,
|
|
35
|
+
...s,
|
|
36
|
+
children: o
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
T.displayName = "NutJDMaterialsBlurTarget";
|
|
41
|
+
export {
|
|
42
|
+
T as J
|
|
43
|
+
};
|
|
@@ -1,147 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import D from "classnames";
|
|
4
|
-
function g(t) {
|
|
5
|
-
switch (t) {
|
|
6
|
-
case "top-bar":
|
|
7
|
-
case "bottom-bar":
|
|
8
|
-
return 0;
|
|
9
|
-
case "top-solid":
|
|
10
|
-
case "top-plain":
|
|
11
|
-
case "promotion-fair":
|
|
12
|
-
case "promotion-deep":
|
|
13
|
-
case "immersive":
|
|
14
|
-
return 8;
|
|
15
|
-
default:
|
|
16
|
-
return 0;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
function O(t, e) {
|
|
20
|
-
return g(t);
|
|
21
|
-
}
|
|
22
|
-
const m = "0 6PX 16PX rgba(0,0,0,0.08), inset -0.5PX -0.5PX 0.5PX rgba(255,255,255,0.4), inset 0.5PX 0.5PX 0.5PX #fff, inset 1PX 1PX 5PX rgba(45,45,45,0.08)", f = "0 6PX 16PX rgba(0,0,0,0.08), inset -0.5PX -0.5PX 0.5PX rgba(255,255,255,0.1), inset 0.5PX 0.5PX 0.5PX rgba(255,255,255,0.4), inset 1PX 1PX 5PX rgba(45,45,45,0.08)";
|
|
23
|
-
function P(t, e) {
|
|
24
|
-
const o = g(t);
|
|
25
|
-
switch (t) {
|
|
26
|
-
case "top-solid":
|
|
27
|
-
return {
|
|
28
|
-
blurRadius: 3,
|
|
29
|
-
borderRadius: o,
|
|
30
|
-
tintColor: e ? "rgba(31, 34, 38, 0.6)" : "rgba(255, 255, 255, 0.65)",
|
|
31
|
-
boxShadow: e ? f : m
|
|
32
|
-
};
|
|
33
|
-
case "top-plain":
|
|
34
|
-
return { blurRadius: 0, borderRadius: o };
|
|
35
|
-
case "top-bar":
|
|
36
|
-
return {
|
|
37
|
-
blurRadius: 3,
|
|
38
|
-
borderRadius: o,
|
|
39
|
-
tintColor: e ? "rgba(31, 34, 38, 0.6)" : "rgba(255, 255, 255, 0.65)",
|
|
40
|
-
boxShadow: e ? f : m
|
|
41
|
-
};
|
|
42
|
-
case "promotion-fair":
|
|
43
|
-
return { blurRadius: 3, borderRadius: o, tintColor: "rgba(255, 255, 255, 0.85)" };
|
|
44
|
-
case "promotion-deep":
|
|
45
|
-
return { blurRadius: 3, borderRadius: o, tintColor: "rgba(255, 255, 255, 0.2)" };
|
|
46
|
-
case "immersive":
|
|
47
|
-
return { blurRadius: 3, borderRadius: o, tintColor: "rgba(31, 34, 38, 0.6)", boxShadow: f };
|
|
48
|
-
case "bottom-bar":
|
|
49
|
-
return {
|
|
50
|
-
blurRadius: 3,
|
|
51
|
-
borderRadius: o,
|
|
52
|
-
tintColor: e ? "rgba(31, 34, 38, 0.8)" : "rgba(255, 255, 255, 0.8)"
|
|
53
|
-
};
|
|
54
|
-
default:
|
|
55
|
-
return { blurRadius: 3, borderRadius: o };
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const G = P, _ = P;
|
|
59
|
-
function M(t, e) {
|
|
60
|
-
switch (t) {
|
|
61
|
-
case "top-solid":
|
|
62
|
-
case "top-bar":
|
|
63
|
-
return e ? "FG-Dark-PX" : "FG-Light-PX";
|
|
64
|
-
case "top-plain":
|
|
65
|
-
return "FG-Clear-PX";
|
|
66
|
-
case "immersive":
|
|
67
|
-
return "FG-Dark-PX";
|
|
68
|
-
case "promotion-fair":
|
|
69
|
-
return "FG-Skin-L-PX";
|
|
70
|
-
case "promotion-deep":
|
|
71
|
-
return "FG-Skin-D-PX";
|
|
72
|
-
default:
|
|
73
|
-
return null;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
const W = {
|
|
77
|
-
...v
|
|
78
|
-
};
|
|
79
|
-
function N() {
|
|
80
|
-
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
81
|
-
}
|
|
82
|
-
function $(t) {
|
|
83
|
-
return t.style.startsWith("thin") ? 10 : t.style.startsWith("thick") ? 40 : 20;
|
|
84
|
-
}
|
|
85
|
-
function j(t) {
|
|
86
|
-
const e = {}, o = t.maxBlur ?? 0;
|
|
87
|
-
if (o > 0 && (e.backdropFilter = `blur(${o * 50}px)`, e.WebkitBackdropFilter = `blur(${o * 50}px)`), t.overlayAlpha && t.overlayAlpha > 0) {
|
|
88
|
-
const u = t.overlayColor || "rgba(255,255,255,1)";
|
|
89
|
-
e.backgroundColor = u, e.opacity = t.overlayAlpha;
|
|
90
|
-
}
|
|
91
|
-
return e;
|
|
92
|
-
}
|
|
93
|
-
const A = (t) => {
|
|
94
|
-
const {
|
|
95
|
-
className: e,
|
|
96
|
-
style: o,
|
|
97
|
-
children: u,
|
|
98
|
-
scene: s,
|
|
99
|
-
targetId: h,
|
|
100
|
-
frostedGlass: i,
|
|
101
|
-
gradientBlur: d,
|
|
102
|
-
overlayColor: c,
|
|
103
|
-
liquidGlass: B,
|
|
104
|
-
...X
|
|
105
|
-
} = { ...W, ...t }, [b, w] = y(N);
|
|
106
|
-
S(() => {
|
|
107
|
-
var n;
|
|
108
|
-
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
109
|
-
const r = window.matchMedia("(prefers-color-scheme: dark)"), a = (l) => w(l.matches);
|
|
110
|
-
return (n = r.addEventListener) == null || n.call(r, "change", a), () => {
|
|
111
|
-
var l;
|
|
112
|
-
return (l = r.removeEventListener) == null ? void 0 : l.call(r, "change", a);
|
|
113
|
-
};
|
|
114
|
-
}, []);
|
|
115
|
-
const k = "nut-jdmaterialview", p = s ? M(s, b) : null, C = D(k, p, e), R = F(() => {
|
|
116
|
-
const r = { ...o };
|
|
117
|
-
if (s) {
|
|
118
|
-
const a = G(s, b);
|
|
119
|
-
p || (a.blurRadius > 0 && (r.backdropFilter = `blur(${a.blurRadius}PX)`, r.WebkitBackdropFilter = `blur(${a.blurRadius}PX)`), a.tintColor !== void 0 && r.backgroundColor === void 0 && (r.backgroundColor = a.tintColor), a.boxShadow !== void 0 && r.boxShadow === void 0 && (r.boxShadow = a.boxShadow)), r.borderRadius === void 0 && (r.borderRadius = `${a.borderRadius}px`);
|
|
120
|
-
} else if (i) {
|
|
121
|
-
const a = $(i);
|
|
122
|
-
r.backdropFilter = `blur(${a}px)`, r.WebkitBackdropFilter = `blur(${a}px)`, i.alpha !== void 0 && (r.opacity = i.alpha);
|
|
123
|
-
const n = i.style.endsWith("-dark");
|
|
124
|
-
r.backgroundColor || (r.backgroundColor = n ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)");
|
|
125
|
-
} else d && Object.assign(r, j(d));
|
|
126
|
-
return c && (r.backgroundColor = c), r;
|
|
127
|
-
}, [o, s, b, p, i, d, c]);
|
|
128
|
-
return /* @__PURE__ */ x.jsx(
|
|
129
|
-
"div",
|
|
130
|
-
{
|
|
131
|
-
className: C,
|
|
132
|
-
style: R,
|
|
133
|
-
"data-target-id": h,
|
|
134
|
-
...X,
|
|
135
|
-
children: u
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
};
|
|
139
|
-
A.displayName = "NutJDMaterialView";
|
|
1
|
+
import { J as r } from "../jdmaterialview.taro-KasOg_jj.mjs";
|
|
2
|
+
import { g as s, a as o, b as g } from "../jdmaterialview.taro-KasOg_jj.mjs";
|
|
140
3
|
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
M as getH5MaterialClassName,
|
|
146
|
-
_ as getPreset
|
|
4
|
+
r as default,
|
|
5
|
+
s as getCornerRadius,
|
|
6
|
+
o as getFrostedPreset,
|
|
7
|
+
g as getPreset
|
|
147
8
|
};
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as N, useState as P, useCallback as H, useEffect as j } from "react";
|
|
3
|
+
import Z from "classnames";
|
|
4
|
+
import p, { getEnv as rr } from "@tarojs/taro";
|
|
5
|
+
import { JDIOSMaterialView as or, View as V } from "@jdtaro/ui";
|
|
6
|
+
import { C as tr } from "./typings-CdeuPEKG.mjs";
|
|
7
|
+
const E = 26, F = "0 4px 2px 0 rgba(0, 0, 0, 0.05)", J = "0 4px 8px 0 rgba(0, 0, 0, 0.05)", er = "0 -8px 4px 0 rgba(0, 0, 0, 0.12)", ar = "0 -8px 4px 0 rgba(31, 34, 38, 0.5)";
|
|
8
|
+
function sr(t, r, o) {
|
|
9
|
+
const e = o >= E;
|
|
10
|
+
switch (t) {
|
|
11
|
+
case "top-solid":
|
|
12
|
+
return e ? {
|
|
13
|
+
liquidGlass: {
|
|
14
|
+
style: "regular",
|
|
15
|
+
interactive: !0,
|
|
16
|
+
darkMode: r,
|
|
17
|
+
...r ? {} : { tintColor: "rgba(255, 255, 255, 0.45)" }
|
|
18
|
+
},
|
|
19
|
+
boxShadow: F
|
|
20
|
+
} : { fallbackStyle: { backgroundColor: r ? "#2A2F36" : "#FFFFFF" } };
|
|
21
|
+
case "top-plain":
|
|
22
|
+
return e ? {
|
|
23
|
+
liquidGlass: {
|
|
24
|
+
style: "regular",
|
|
25
|
+
interactive: !0,
|
|
26
|
+
darkMode: r,
|
|
27
|
+
...r ? {} : { tintColor: "rgba(255, 255, 255, 0.45)" }
|
|
28
|
+
},
|
|
29
|
+
boxShadow: F
|
|
30
|
+
} : {};
|
|
31
|
+
case "top-bar":
|
|
32
|
+
return {
|
|
33
|
+
frostedGlass: {
|
|
34
|
+
style: r ? "regular-dark" : "ultra-thin-light",
|
|
35
|
+
tintColor: r ? "rgba(0, 0, 0, 0.6)" : "rgba(255, 255, 255, 0.75)"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
case "promotion-fair":
|
|
39
|
+
return {
|
|
40
|
+
liquidGlass: { style: "clear", interactive: !1 },
|
|
41
|
+
frostedGlass: { style: "thick-light", alpha: 1 },
|
|
42
|
+
// 阴影仅玻璃态显示(对齐 ObjC shadowAlpha=0.05 / fallbackShadowAlpha=0)
|
|
43
|
+
...e ? { boxShadow: J } : {}
|
|
44
|
+
};
|
|
45
|
+
case "promotion-deep":
|
|
46
|
+
return {
|
|
47
|
+
liquidGlass: { style: "clear", interactive: !1 },
|
|
48
|
+
frostedGlass: { style: "ultra-thin-light", alpha: 1 },
|
|
49
|
+
...e ? { boxShadow: J } : {}
|
|
50
|
+
};
|
|
51
|
+
case "immersive":
|
|
52
|
+
return e ? {
|
|
53
|
+
liquidGlass: {
|
|
54
|
+
style: "regular",
|
|
55
|
+
darkMode: !0,
|
|
56
|
+
interactive: !0,
|
|
57
|
+
tintColor: "rgba(0, 0, 0, 0.05)"
|
|
58
|
+
},
|
|
59
|
+
boxShadow: F
|
|
60
|
+
} : { frostedGlass: { style: "regular-dark", alpha: 1 } };
|
|
61
|
+
case "bottom-bar":
|
|
62
|
+
return {
|
|
63
|
+
gradientBlur: {
|
|
64
|
+
minBlur: 0.5,
|
|
65
|
+
maxBlur: 0.8,
|
|
66
|
+
overlayAlpha: 0.9,
|
|
67
|
+
overlayColor: r ? "rgba(0, 0, 0, 1)" : "rgba(255, 255, 255, 1)"
|
|
68
|
+
},
|
|
69
|
+
// 底导背板阴影向上(对齐 ObjC off(0,-8) radius4):亮色黑 α0.12 / 暗色深灰 α0.5
|
|
70
|
+
boxShadow: r ? ar : er
|
|
71
|
+
};
|
|
72
|
+
default:
|
|
73
|
+
return {};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function nr(t, r) {
|
|
77
|
+
const o = r >= E;
|
|
78
|
+
switch (t) {
|
|
79
|
+
case "top-bar":
|
|
80
|
+
case "bottom-bar":
|
|
81
|
+
return 0;
|
|
82
|
+
case "top-plain":
|
|
83
|
+
return o ? 12 : 0;
|
|
84
|
+
case "top-solid":
|
|
85
|
+
case "promotion-fair":
|
|
86
|
+
case "promotion-deep":
|
|
87
|
+
case "immersive":
|
|
88
|
+
return o ? 12 : 8;
|
|
89
|
+
default:
|
|
90
|
+
return 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function W(t) {
|
|
94
|
+
switch (t) {
|
|
95
|
+
case "top-bar":
|
|
96
|
+
case "bottom-bar":
|
|
97
|
+
return 0;
|
|
98
|
+
case "top-solid":
|
|
99
|
+
case "top-plain":
|
|
100
|
+
case "promotion-fair":
|
|
101
|
+
case "promotion-deep":
|
|
102
|
+
case "immersive":
|
|
103
|
+
return 8;
|
|
104
|
+
default:
|
|
105
|
+
return 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const R = "255, 255, 255", D = "31, 34, 38";
|
|
109
|
+
function ir(t, r) {
|
|
110
|
+
const o = W(t);
|
|
111
|
+
switch (t) {
|
|
112
|
+
case "top-solid":
|
|
113
|
+
return {
|
|
114
|
+
blurRadius: 40,
|
|
115
|
+
borderRadius: o,
|
|
116
|
+
tintColor: r ? "rgba(42, 47, 54, 1)" : "rgba(255, 255, 255, 1)"
|
|
117
|
+
};
|
|
118
|
+
case "top-plain":
|
|
119
|
+
return { blurRadius: 0, borderRadius: o };
|
|
120
|
+
case "top-bar":
|
|
121
|
+
return {
|
|
122
|
+
blurRadius: 40,
|
|
123
|
+
borderRadius: o,
|
|
124
|
+
tintColor: r ? `rgba(${D}, 0.9)` : `rgba(${R}, 0.9)`
|
|
125
|
+
};
|
|
126
|
+
case "promotion-fair":
|
|
127
|
+
return { blurRadius: 40, borderRadius: o, tintColor: `rgba(${R}, 0.85)` };
|
|
128
|
+
case "promotion-deep":
|
|
129
|
+
return { blurRadius: 40, borderRadius: o, tintColor: `rgba(${R}, 0.2)` };
|
|
130
|
+
case "immersive":
|
|
131
|
+
return { blurRadius: 40, borderRadius: o, tintColor: `rgba(${D}, 0.4)` };
|
|
132
|
+
case "bottom-bar":
|
|
133
|
+
return {
|
|
134
|
+
blurRadius: 50,
|
|
135
|
+
borderRadius: o,
|
|
136
|
+
tintColor: r ? `rgba(${D}, 0.8)` : `rgba(${R}, 0.8)`
|
|
137
|
+
};
|
|
138
|
+
default:
|
|
139
|
+
return { blurRadius: 40, borderRadius: o };
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function lr(t) {
|
|
143
|
+
const r = t ? "0, 0, 0" : "255, 255, 255";
|
|
144
|
+
return `linear-gradient(to bottom, rgba(${r}, 0.8) 0%, rgba(${r}, 0.8) 56%, rgba(${r}, 0.78) 66%, rgba(${r}, 0.72) 76%, rgba(${r}, 0.62) 86%, rgba(${r}, 0.49) 94%, rgba(${r}, 0.3) 100%)`;
|
|
145
|
+
}
|
|
146
|
+
function cr(t, r) {
|
|
147
|
+
const o = r ? "dark" : "light", e = W(t);
|
|
148
|
+
switch (t) {
|
|
149
|
+
case "top-solid":
|
|
150
|
+
return {
|
|
151
|
+
blurScale: 1,
|
|
152
|
+
borderRadius: e,
|
|
153
|
+
colorMode: o,
|
|
154
|
+
overlayColor: r ? "#2A2F36" : "#FFFFFF"
|
|
155
|
+
};
|
|
156
|
+
case "top-plain":
|
|
157
|
+
return { blurScale: 0, borderRadius: e, colorMode: o };
|
|
158
|
+
case "top-bar":
|
|
159
|
+
return {
|
|
160
|
+
blurScale: 0.9,
|
|
161
|
+
borderRadius: e,
|
|
162
|
+
colorMode: o,
|
|
163
|
+
overlayColor: r ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.62)"
|
|
164
|
+
};
|
|
165
|
+
case "promotion-fair":
|
|
166
|
+
return { blurScale: 0.85, borderRadius: e, colorMode: "light" };
|
|
167
|
+
case "promotion-deep":
|
|
168
|
+
return { blurScale: 0.2, borderRadius: e, colorMode: "light" };
|
|
169
|
+
case "immersive":
|
|
170
|
+
return { blurScale: 0.4, borderRadius: e, colorMode: "dark" };
|
|
171
|
+
case "bottom-bar":
|
|
172
|
+
return {
|
|
173
|
+
blurScale: 0.2,
|
|
174
|
+
borderRadius: e,
|
|
175
|
+
colorMode: o,
|
|
176
|
+
backgroundGradient: lr(r),
|
|
177
|
+
boxShadow: "0 8px 40px rgba(0, 0, 0, 0.12)"
|
|
178
|
+
};
|
|
179
|
+
default:
|
|
180
|
+
return { blurScale: 0, borderRadius: e, colorMode: o };
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function ur(t, r) {
|
|
184
|
+
const o = /^#?([0-9a-fA-F]{6})$/.exec(t.trim());
|
|
185
|
+
if (!o) return t;
|
|
186
|
+
const e = parseInt(o[1], 16), a = e >> 16 & 255, i = e >> 8 & 255, d = e & 255, m = Math.max(0, Math.min(1, r));
|
|
187
|
+
return `rgba(${a}, ${i}, ${d}, ${m})`;
|
|
188
|
+
}
|
|
189
|
+
const dr = {
|
|
190
|
+
...tr
|
|
191
|
+
};
|
|
192
|
+
function br() {
|
|
193
|
+
return ["harmony", "harmonyhybrid", "jdharmony"].includes(
|
|
194
|
+
rr().toLowerCase()
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
function gr() {
|
|
198
|
+
var t;
|
|
199
|
+
try {
|
|
200
|
+
const r = p.getSystemInfoSync(), o = String((r == null ? void 0 : r.platform) || "").toLowerCase(), e = String((r == null ? void 0 : r.system) || ""), a = o === "ios", i = a ? parseInt(((t = e.match(/\d+/)) == null ? void 0 : t[0]) || "0", 10) : 0, d = String((r == null ? void 0 : r.theme) || "").toLowerCase() === "dark";
|
|
201
|
+
return { isIOS: a, iosMajor: i, dark: d };
|
|
202
|
+
} catch {
|
|
203
|
+
return { isIOS: !1, iosMajor: 0, dark: !1 };
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function mr() {
|
|
207
|
+
try {
|
|
208
|
+
const t = p.getSystemInfoSync();
|
|
209
|
+
return String((t == null ? void 0 : t.theme) || "").toLowerCase() === "dark";
|
|
210
|
+
} catch {
|
|
211
|
+
return !1;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
function fr(t) {
|
|
215
|
+
const { scene: r, dark: o, overlayColor: e, cls: a, style: i, children: d, rest: m } = t, s = r ? cr(r, o) : void 0, c = {};
|
|
216
|
+
s ? (c.blurScale = s.blurScale, c.colorMode = s.colorMode) : c.colorMode = o ? "dark" : "light";
|
|
217
|
+
const u = { ...i };
|
|
218
|
+
(i == null ? void 0 : i.borderRadius) === void 0 && s && (u.borderRadius = `${s.borderRadius}px`);
|
|
219
|
+
const b = e ?? (s == null ? void 0 : s.overlayColor);
|
|
220
|
+
return b && u.backgroundColor === void 0 && (u.backgroundColor = b), s != null && s.backgroundGradient && u.background === void 0 && (u.background = s.backgroundGradient), s != null && s.boxShadow && u.boxShadow === void 0 && (u.boxShadow = s.boxShadow), /* @__PURE__ */ B(V, { className: a, style: u, ...c, ...m, children: d });
|
|
221
|
+
}
|
|
222
|
+
function hr(t) {
|
|
223
|
+
const { scene: r, dark: o, targetId: e, overlayColor: a, cls: i, style: d, children: m, rest: s } = t, c = r ? ir(r, o) : void 0, u = { ...d };
|
|
224
|
+
c && c.blurRadius > 0 && (u.backdropFilter = `blur(${c.blurRadius}px)`), c && u.borderRadius === void 0 && (u.borderRadius = `${c.borderRadius}px`);
|
|
225
|
+
const b = a ?? (c == null ? void 0 : c.tintColor), y = {};
|
|
226
|
+
return e && (y.targetId = e), r && (y.scene = r), b && (y.overlayColor = b), /* @__PURE__ */ B(V, { className: i, style: u, ...y, ...s, children: m });
|
|
227
|
+
}
|
|
228
|
+
const pr = (t) => {
|
|
229
|
+
const {
|
|
230
|
+
className: r,
|
|
231
|
+
style: o,
|
|
232
|
+
children: e,
|
|
233
|
+
scene: a,
|
|
234
|
+
targetId: i,
|
|
235
|
+
theme: d = "auto",
|
|
236
|
+
extractTint: m,
|
|
237
|
+
liquidGlass: s,
|
|
238
|
+
frostedGlass: c,
|
|
239
|
+
gradientBlur: u,
|
|
240
|
+
overlayColor: b,
|
|
241
|
+
id: y,
|
|
242
|
+
...T
|
|
243
|
+
} = { ...dr, ...t }, M = Z("nut-jdmaterialview", r), { isIOS: S, iosMajor: I } = N(() => gr(), []), $ = d === "auto", [K, Y] = P(() => mr()), O = H(
|
|
244
|
+
(n) => {
|
|
245
|
+
const g = typeof n == "string" ? n : String((n == null ? void 0 : n.theme) || "");
|
|
246
|
+
Y(g.toLowerCase() === "dark");
|
|
247
|
+
},
|
|
248
|
+
[]
|
|
249
|
+
);
|
|
250
|
+
j(() => {
|
|
251
|
+
var n, g;
|
|
252
|
+
if ($) {
|
|
253
|
+
try {
|
|
254
|
+
(g = (n = p).onThemeChange) == null || g.call(n, O);
|
|
255
|
+
} catch {
|
|
256
|
+
}
|
|
257
|
+
return () => {
|
|
258
|
+
var f, C;
|
|
259
|
+
try {
|
|
260
|
+
(C = (f = p).offThemeChange) == null || C.call(f, O);
|
|
261
|
+
} catch {
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
}, [$, O]);
|
|
266
|
+
const v = $ ? K : d === "dark", l = N(
|
|
267
|
+
() => a ? sr(a, v, I) : void 0,
|
|
268
|
+
[a, v, I]
|
|
269
|
+
), k = s ?? (l == null ? void 0 : l.liquidGlass), x = !!m && (a === "promotion-fair" || a === "promotion-deep"), w = i ? `taro_material_${i}` : void 0, [_, Q] = P(void 0), L = H(() => {
|
|
270
|
+
var C;
|
|
271
|
+
if (!S || !x || !w || !i) return;
|
|
272
|
+
const n = p;
|
|
273
|
+
if (typeof n.getTagById != "function" || !((C = n.JDTheme) != null && C.getGlassTintConfig)) return;
|
|
274
|
+
const g = n.getTagById(w), f = n.getTagById(i);
|
|
275
|
+
g == null || f == null || g < 0 || f < 0 || n.JDTheme.getGlassTintConfig({ materialTag: g, blurTag: f }).then((G) => {
|
|
276
|
+
const h = (G == null ? void 0 : G.data) ?? G, q = h == null ? void 0 : h.tintColor, A = h == null ? void 0 : h.tintAlpha;
|
|
277
|
+
!q || !A || A <= 0 || Q(ur(q, A));
|
|
278
|
+
}).catch(() => {
|
|
279
|
+
});
|
|
280
|
+
}, [S, x, a, w, i]);
|
|
281
|
+
j(() => {
|
|
282
|
+
!S || !x || p.nextTick(() => L());
|
|
283
|
+
}, [S, x, v, L, a, i]);
|
|
284
|
+
const U = k && _ ? { ...k, tintColor: _ } : k, z = c ?? (l == null ? void 0 : l.frostedGlass), X = u ?? (l == null ? void 0 : l.gradientBlur);
|
|
285
|
+
if (S) {
|
|
286
|
+
const n = { ...l == null ? void 0 : l.fallbackStyle, ...o };
|
|
287
|
+
return a && n.borderRadius === void 0 && (n.borderRadius = `${nr(a, I)}px`), l != null && l.boxShadow && n.boxShadow === void 0 && (n.boxShadow = l.boxShadow), /* @__PURE__ */ B(
|
|
288
|
+
or,
|
|
289
|
+
{
|
|
290
|
+
id: w,
|
|
291
|
+
className: M,
|
|
292
|
+
style: n,
|
|
293
|
+
targetId: i,
|
|
294
|
+
liquidGlass: U,
|
|
295
|
+
frostedGlass: z,
|
|
296
|
+
gradientBlur: X,
|
|
297
|
+
...T,
|
|
298
|
+
children: e
|
|
299
|
+
}
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
return br() ? fr({ scene: a, dark: v, overlayColor: b, cls: M, style: o, children: e, rest: T }) : hr({
|
|
303
|
+
scene: a,
|
|
304
|
+
dark: v,
|
|
305
|
+
targetId: i,
|
|
306
|
+
overlayColor: b,
|
|
307
|
+
cls: M,
|
|
308
|
+
style: o,
|
|
309
|
+
children: e,
|
|
310
|
+
rest: T
|
|
311
|
+
});
|
|
312
|
+
};
|
|
313
|
+
pr.displayName = "NutJDMaterialView";
|
|
314
|
+
export {
|
|
315
|
+
pr as J,
|
|
316
|
+
ir as a,
|
|
317
|
+
sr as b,
|
|
318
|
+
nr as g
|
|
319
|
+
};
|
package/package.json
CHANGED
|
@@ -1,635 +0,0 @@
|
|
|
1
|
-
import Ce from "react";
|
|
2
|
-
var X = { exports: {} }, k = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Te;
|
|
13
|
-
function lr() {
|
|
14
|
-
if (Te) return k;
|
|
15
|
-
Te = 1;
|
|
16
|
-
var V = Ce, P = Symbol.for("react.element"), M = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function w(_, f, T) {
|
|
18
|
-
var p, y = {}, b = null, I = null;
|
|
19
|
-
T !== void 0 && (b = "" + T), f.key !== void 0 && (b = "" + f.key), f.ref !== void 0 && (I = f.ref);
|
|
20
|
-
for (p in f) m.call(f, p) && !A.hasOwnProperty(p) && (y[p] = f[p]);
|
|
21
|
-
if (_ && _.defaultProps) for (p in f = _.defaultProps, f) y[p] === void 0 && (y[p] = f[p]);
|
|
22
|
-
return { $$typeof: P, type: _, key: b, ref: I, props: y, _owner: F.current };
|
|
23
|
-
}
|
|
24
|
-
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
|
|
25
|
-
}
|
|
26
|
-
var D = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var Oe;
|
|
37
|
-
function fr() {
|
|
38
|
-
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var V = Ce, P = Symbol.for("react.element"), M = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Se = "@@iterator";
|
|
40
|
-
function Pe(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = H && e[H] || e[Se];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var O = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function c(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
-
t[n - 1] = arguments[n];
|
|
51
|
-
we("error", e, t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function we(e, r, t) {
|
|
55
|
-
{
|
|
56
|
-
var n = O.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
57
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
|
58
|
-
var u = t.map(function(o) {
|
|
59
|
-
return String(o);
|
|
60
|
-
});
|
|
61
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var je = !1, xe = !1, ke = !1, De = !1, Fe = !1, Z;
|
|
65
|
-
Z = Symbol.for("react.module.reference");
|
|
66
|
-
function Ae(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || Fe || e === F || e === T || e === p || De || e === I || je || xe || ke || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === y || e.$$typeof === w || e.$$typeof === _ || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ie(e, r, t) {
|
|
74
|
-
var n = e.displayName;
|
|
75
|
-
if (n)
|
|
76
|
-
return n;
|
|
77
|
-
var i = r.displayName || r.name || "";
|
|
78
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
|
79
|
-
}
|
|
80
|
-
function Q(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function E(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case m:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case M:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case A:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case F:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case T:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case p:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case _:
|
|
107
|
-
var r = e;
|
|
108
|
-
return Q(r) + ".Consumer";
|
|
109
|
-
case w:
|
|
110
|
-
var t = e;
|
|
111
|
-
return Q(t._context) + ".Provider";
|
|
112
|
-
case f:
|
|
113
|
-
return Ie(e, e.render, "ForwardRef");
|
|
114
|
-
case y:
|
|
115
|
-
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n : E(e.type) || "Memo";
|
|
117
|
-
case b: {
|
|
118
|
-
var i = e, u = i._payload, o = i._init;
|
|
119
|
-
try {
|
|
120
|
-
return E(o(u));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var h = Object.assign, j = 0, ee, re, te, ne, ae, oe, ie;
|
|
129
|
-
function ue() {
|
|
130
|
-
}
|
|
131
|
-
ue.__reactDisabledLog = !0;
|
|
132
|
-
function $e() {
|
|
133
|
-
{
|
|
134
|
-
if (j === 0) {
|
|
135
|
-
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: ue,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
j++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function We() {
|
|
156
|
-
{
|
|
157
|
-
if (j--, j === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: h({}, e, {
|
|
165
|
-
value: ee
|
|
166
|
-
}),
|
|
167
|
-
info: h({}, e, {
|
|
168
|
-
value: re
|
|
169
|
-
}),
|
|
170
|
-
warn: h({}, e, {
|
|
171
|
-
value: te
|
|
172
|
-
}),
|
|
173
|
-
error: h({}, e, {
|
|
174
|
-
value: ne
|
|
175
|
-
}),
|
|
176
|
-
group: h({}, e, {
|
|
177
|
-
value: ae
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: h({}, e, {
|
|
180
|
-
value: oe
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: h({}, e, {
|
|
183
|
-
value: ie
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var U = O.ReactCurrentDispatcher, N;
|
|
191
|
-
function $(e, r, t) {
|
|
192
|
-
{
|
|
193
|
-
if (N === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (i) {
|
|
197
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
N = n && n[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + N + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var B = !1, W;
|
|
205
|
-
{
|
|
206
|
-
var Ye = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
W = new Ye();
|
|
208
|
-
}
|
|
209
|
-
function se(e, r) {
|
|
210
|
-
if (!e || B)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var t = W.get(e);
|
|
214
|
-
if (t !== void 0)
|
|
215
|
-
return t;
|
|
216
|
-
}
|
|
217
|
-
var n;
|
|
218
|
-
B = !0;
|
|
219
|
-
var i = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var u;
|
|
222
|
-
u = U.current, U.current = null, $e();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var o = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(o, []);
|
|
235
|
-
} catch (d) {
|
|
236
|
-
n = d;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], o);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
o.call();
|
|
242
|
-
} catch (d) {
|
|
243
|
-
n = d;
|
|
244
|
-
}
|
|
245
|
-
e.call(o.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (d) {
|
|
251
|
-
n = d;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (d) {
|
|
256
|
-
if (d && n && typeof d.stack == "string") {
|
|
257
|
-
for (var a = d.stack.split(`
|
|
258
|
-
`), v = n.stack.split(`
|
|
259
|
-
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
260
|
-
l--;
|
|
261
|
-
for (; s >= 1 && l >= 0; s--, l--)
|
|
262
|
-
if (a[s] !== v[l]) {
|
|
263
|
-
if (s !== 1 || l !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
266
|
-
var g = `
|
|
267
|
-
` + a[s].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && W.set(e, g), g;
|
|
269
|
-
}
|
|
270
|
-
while (s >= 1 && l >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
B = !1, U.current = u, We(), Error.prepareStackTrace = i;
|
|
276
|
-
}
|
|
277
|
-
var S = e ? e.displayName || e.name : "", R = S ? $(S) : "";
|
|
278
|
-
return typeof e == "function" && W.set(e, R), R;
|
|
279
|
-
}
|
|
280
|
-
function Le(e, r, t) {
|
|
281
|
-
return se(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function Ve(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function Y(e, r, t) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return se(e, Ve(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return $(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case T:
|
|
296
|
-
return $("Suspense");
|
|
297
|
-
case p:
|
|
298
|
-
return $("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case f:
|
|
303
|
-
return Le(e.render);
|
|
304
|
-
case y:
|
|
305
|
-
return Y(e.type, r, t);
|
|
306
|
-
case b: {
|
|
307
|
-
var n = e, i = n._payload, u = n._init;
|
|
308
|
-
try {
|
|
309
|
-
return Y(u(i), r, t);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var x = Object.prototype.hasOwnProperty, le = {}, fe = O.ReactDebugCurrentFrame;
|
|
317
|
-
function L(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
320
|
-
fe.setExtraStackFrame(t);
|
|
321
|
-
} else
|
|
322
|
-
fe.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Me(e, r, t, n, i) {
|
|
325
|
-
{
|
|
326
|
-
var u = Function.call.bind(x);
|
|
327
|
-
for (var o in e)
|
|
328
|
-
if (u(e, o)) {
|
|
329
|
-
var a = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[o] != "function") {
|
|
332
|
-
var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw v.name = "Invariant Violation", v;
|
|
334
|
-
}
|
|
335
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (s) {
|
|
337
|
-
a = s;
|
|
338
|
-
}
|
|
339
|
-
a && !(a instanceof Error) && (L(i), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), L(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, L(i), c("Failed %s type: %s", t, a.message), L(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var Ue = Array.isArray;
|
|
344
|
-
function J(e) {
|
|
345
|
-
return Ue(e);
|
|
346
|
-
}
|
|
347
|
-
function Ne(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return t;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function Be(e) {
|
|
354
|
-
try {
|
|
355
|
-
return ce(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function ce(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function ve(e) {
|
|
364
|
-
if (Be(e))
|
|
365
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ne(e)), ce(e);
|
|
366
|
-
}
|
|
367
|
-
var de = O.ReactCurrentOwner, Je = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, pe, ge;
|
|
373
|
-
function qe(e) {
|
|
374
|
-
if (x.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function Ke(e) {
|
|
382
|
-
if (x.call(e, "key")) {
|
|
383
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (r && r.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function Ge(e, r) {
|
|
390
|
-
typeof e.ref == "string" && de.current;
|
|
391
|
-
}
|
|
392
|
-
function ze(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var t = function() {
|
|
395
|
-
pe || (pe = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
396
|
-
};
|
|
397
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: t,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function Xe(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var t = function() {
|
|
406
|
-
ge || (ge = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
|
-
};
|
|
408
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: t,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var He = function(e, r, t, n, i, u, o) {
|
|
415
|
-
var a = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: P,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: t,
|
|
422
|
-
props: o,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: u
|
|
425
|
-
};
|
|
426
|
-
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(a, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: n
|
|
436
|
-
}), Object.defineProperty(a, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: i
|
|
441
|
-
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
|
-
};
|
|
443
|
-
function Ze(e, r, t, n, i) {
|
|
444
|
-
{
|
|
445
|
-
var u, o = {}, a = null, v = null;
|
|
446
|
-
t !== void 0 && (ve(t), a = "" + t), Ke(r) && (ve(r.key), a = "" + r.key), qe(r) && (v = r.ref, Ge(r, i));
|
|
447
|
-
for (u in r)
|
|
448
|
-
x.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var s = e.defaultProps;
|
|
451
|
-
for (u in s)
|
|
452
|
-
o[u] === void 0 && (o[u] = s[u]);
|
|
453
|
-
}
|
|
454
|
-
if (a || v) {
|
|
455
|
-
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
a && ze(o, l), v && Xe(o, l);
|
|
457
|
-
}
|
|
458
|
-
return He(e, a, v, i, n, de.current, o);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var q = O.ReactCurrentOwner, ye = O.ReactDebugCurrentFrame;
|
|
462
|
-
function C(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
|
|
465
|
-
ye.setExtraStackFrame(t);
|
|
466
|
-
} else
|
|
467
|
-
ye.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var K;
|
|
470
|
-
K = !1;
|
|
471
|
-
function G(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === P;
|
|
473
|
-
}
|
|
474
|
-
function Ee() {
|
|
475
|
-
{
|
|
476
|
-
if (q.current) {
|
|
477
|
-
var e = E(q.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function Qe(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var _e = {};
|
|
490
|
-
function er(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Ee();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
t && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + t + ">.");
|
|
498
|
-
}
|
|
499
|
-
return r;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function be(e, r) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var t = er(r);
|
|
508
|
-
if (_e[t])
|
|
509
|
-
return;
|
|
510
|
-
_e[t] = !0;
|
|
511
|
-
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== q.current && (n = " It was passed a child from " + E(e._owner.type) + "."), C(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), C(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function he(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (J(e))
|
|
520
|
-
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var n = e[t];
|
|
522
|
-
G(n) && be(n, r);
|
|
523
|
-
}
|
|
524
|
-
else if (G(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var i = Pe(e);
|
|
528
|
-
if (typeof i == "function" && i !== e.entries)
|
|
529
|
-
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
530
|
-
G(o.value) && be(o.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function rr(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var t;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === y))
|
|
545
|
-
t = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (t) {
|
|
549
|
-
var n = E(r);
|
|
550
|
-
Me(t, e.props, "prop", n, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !K) {
|
|
552
|
-
K = !0;
|
|
553
|
-
var i = E(r);
|
|
554
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function tr(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var n = r[t];
|
|
563
|
-
if (n !== "children" && n !== "key") {
|
|
564
|
-
C(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), C(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (C(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), C(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var Re = {};
|
|
572
|
-
function me(e, r, t, n, i, u) {
|
|
573
|
-
{
|
|
574
|
-
var o = Ae(e);
|
|
575
|
-
if (!o) {
|
|
576
|
-
var a = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var v = Qe();
|
|
579
|
-
v ? a += v : a += Ee();
|
|
580
|
-
var s;
|
|
581
|
-
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === P ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
582
|
-
}
|
|
583
|
-
var l = Ze(e, r, t, i, u);
|
|
584
|
-
if (l == null)
|
|
585
|
-
return l;
|
|
586
|
-
if (o) {
|
|
587
|
-
var g = r.children;
|
|
588
|
-
if (g !== void 0)
|
|
589
|
-
if (n)
|
|
590
|
-
if (J(g)) {
|
|
591
|
-
for (var S = 0; S < g.length; S++)
|
|
592
|
-
he(g[S], e);
|
|
593
|
-
Object.freeze && Object.freeze(g);
|
|
594
|
-
} else
|
|
595
|
-
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
-
else
|
|
597
|
-
he(g, e);
|
|
598
|
-
}
|
|
599
|
-
if (x.call(r, "key")) {
|
|
600
|
-
var R = E(e), d = Object.keys(r).filter(function(sr) {
|
|
601
|
-
return sr !== "key";
|
|
602
|
-
}), z = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!Re[R + z]) {
|
|
604
|
-
var ur = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
c(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, z, R, ur, R), Re[R + z] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === m ? tr(l) : rr(l), l;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function nr(e, r, t) {
|
|
617
|
-
return me(e, r, t, !0);
|
|
618
|
-
}
|
|
619
|
-
function ar(e, r, t) {
|
|
620
|
-
return me(e, r, t, !1);
|
|
621
|
-
}
|
|
622
|
-
var or = ar, ir = nr;
|
|
623
|
-
D.Fragment = m, D.jsx = or, D.jsxs = ir;
|
|
624
|
-
}()), D;
|
|
625
|
-
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? X.exports = lr() : X.exports = fr();
|
|
627
|
-
var vr = X.exports;
|
|
628
|
-
const dr = {
|
|
629
|
-
className: "",
|
|
630
|
-
style: {}
|
|
631
|
-
};
|
|
632
|
-
export {
|
|
633
|
-
dr as C,
|
|
634
|
-
vr as j
|
|
635
|
-
};
|