deepsea-components 5.16.4 → 5.16.6
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/AutoFit.cjs +20 -15
- package/dist/components/AutoFit.js +20 -15
- package/dist/components/AutoScroll.cjs +12 -9
- package/dist/components/AutoScroll.js +12 -9
- package/dist/components/AutoSizeTextarea.cjs +81 -23
- package/dist/components/AutoSizeTextarea.js +81 -23
- package/dist/components/CircleText.cjs +120 -24
- package/dist/components/CircleText.js +120 -24
- package/dist/components/CopyButton.cjs +8 -2
- package/dist/components/CopyButton.js +8 -2
- package/dist/components/DraggableGrid.cjs +155 -104
- package/dist/components/DraggableGrid.d.ts +25 -23
- package/dist/components/DraggableGrid.js +155 -104
- package/dist/components/Echart.cjs +95 -21
- package/dist/components/Echart.js +95 -21
- package/dist/components/Flow.cjs +10 -10
- package/dist/components/Flow.js +10 -10
- package/dist/components/FormLabel.cjs +92 -27
- package/dist/components/FormLabel.js +92 -27
- package/dist/components/HlsPlayer.cjs +65 -24
- package/dist/components/HlsPlayer.js +65 -24
- package/dist/components/IconFileType.cjs +14 -4
- package/dist/components/IconFileType.js +14 -4
- package/dist/components/InfiniteScroll.cjs +17 -10
- package/dist/components/InfiniteScroll.js +17 -10
- package/dist/components/InputFile.cjs +5 -5
- package/dist/components/InputFile.js +5 -5
- package/dist/components/InputFileButton.cjs +14 -13
- package/dist/components/InputFileButton.js +14 -13
- package/dist/components/ReadSheet.cjs +32 -7
- package/dist/components/ReadSheet.js +32 -7
- package/dist/components/Ring.cjs +48 -10
- package/dist/components/Ring.js +48 -10
- package/dist/components/Scroll.cjs +10 -3
- package/dist/components/Scroll.js +10 -3
- package/dist/components/ScrollMask.cjs +97 -11
- package/dist/components/ScrollMask.js +97 -11
- package/dist/components/SectionRing.cjs +60 -15
- package/dist/components/SectionRing.js +60 -15
- package/dist/components/TransitionBox.cjs +120 -30
- package/dist/components/TransitionBox.js +120 -30
- package/dist/components/TransitionNum.cjs +8 -8
- package/dist/components/TransitionNum.js +8 -8
- package/dist/components/Trapezium.cjs +68 -9
- package/dist/components/Trapezium.js +68 -9
- package/dist/components/Unify.cjs +79 -19
- package/dist/components/Unify.js +79 -19
- package/dist/components/WriteSheet.cjs +1 -1
- package/dist/components/WriteSheet.js +1 -1
- package/package.json +3 -3
- package/src/components/DraggableGrid.tsx +510 -506
|
@@ -1,32 +1,106 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { init } from "echarts";
|
|
4
5
|
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef } from "react";
|
|
5
6
|
const Echart = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
6
|
-
const
|
|
7
|
+
const $ = c(21);
|
|
8
|
+
let chart;
|
|
9
|
+
let height;
|
|
10
|
+
let option;
|
|
11
|
+
let rest;
|
|
12
|
+
let width;
|
|
13
|
+
if ($[0] !== props) {
|
|
14
|
+
({ width, height, option, chart, ...rest } = props);
|
|
15
|
+
$[0] = props;
|
|
16
|
+
$[1] = chart;
|
|
17
|
+
$[2] = height;
|
|
18
|
+
$[3] = option;
|
|
19
|
+
$[4] = rest;
|
|
20
|
+
$[5] = width;
|
|
21
|
+
} else {
|
|
22
|
+
chart = $[1];
|
|
23
|
+
height = $[2];
|
|
24
|
+
option = $[3];
|
|
25
|
+
rest = $[4];
|
|
26
|
+
width = $[5];
|
|
27
|
+
}
|
|
7
28
|
const container = useRef(null);
|
|
8
29
|
const chartRef = useRef(null);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
30
|
+
let t0;
|
|
31
|
+
if ($[6] !== height || $[7] !== option || $[8] !== width) {
|
|
32
|
+
t0 = ()=>{
|
|
33
|
+
const ele = container.current;
|
|
34
|
+
chartRef.current = init(ele, option, {
|
|
35
|
+
width,
|
|
36
|
+
height
|
|
37
|
+
});
|
|
38
|
+
return ()=>{
|
|
39
|
+
var _chartRef_current;
|
|
40
|
+
return null == (_chartRef_current = chartRef.current) ? void 0 : _chartRef_current.dispose();
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
$[6] = height;
|
|
44
|
+
$[7] = option;
|
|
45
|
+
$[8] = width;
|
|
46
|
+
$[9] = t0;
|
|
47
|
+
} else t0 = $[9];
|
|
48
|
+
let t1;
|
|
49
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50
|
+
t1 = [];
|
|
51
|
+
$[10] = t1;
|
|
52
|
+
} else t1 = $[10];
|
|
53
|
+
useLayoutEffect(t0, t1);
|
|
54
|
+
let t2;
|
|
55
|
+
let t3;
|
|
56
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
57
|
+
t2 = ()=>container.current;
|
|
58
|
+
t3 = [];
|
|
59
|
+
$[11] = t2;
|
|
60
|
+
$[12] = t3;
|
|
61
|
+
} else {
|
|
62
|
+
t2 = $[11];
|
|
63
|
+
t3 = $[12];
|
|
64
|
+
}
|
|
65
|
+
useImperativeHandle(ref, t2, t3);
|
|
66
|
+
let t4;
|
|
67
|
+
let t5;
|
|
68
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
69
|
+
t4 = ()=>chartRef.current;
|
|
70
|
+
t5 = [];
|
|
71
|
+
$[13] = t4;
|
|
72
|
+
$[14] = t5;
|
|
73
|
+
} else {
|
|
74
|
+
t4 = $[13];
|
|
75
|
+
t5 = $[14];
|
|
76
|
+
}
|
|
77
|
+
useImperativeHandle(chart, t4, t5);
|
|
78
|
+
let t6;
|
|
79
|
+
if ($[15] !== height || $[16] !== option || $[17] !== width) {
|
|
80
|
+
t6 = ()=>{
|
|
81
|
+
var _chartRef_current, _chartRef_current1;
|
|
82
|
+
null == (_chartRef_current = chartRef.current) || _chartRef_current.setOption(option);
|
|
83
|
+
null == (_chartRef_current1 = chartRef.current) || _chartRef_current1.resize({
|
|
84
|
+
width,
|
|
85
|
+
height
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
$[15] = height;
|
|
89
|
+
$[16] = option;
|
|
90
|
+
$[17] = width;
|
|
91
|
+
$[18] = t6;
|
|
92
|
+
} else t6 = $[18];
|
|
93
|
+
useEffect(t6);
|
|
94
|
+
let t7;
|
|
95
|
+
if ($[19] !== rest) {
|
|
96
|
+
t7 = /*#__PURE__*/ jsx("div", {
|
|
97
|
+
ref: container,
|
|
98
|
+
...rest
|
|
14
99
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
useEffect(()=>{
|
|
20
|
-
chartRef.current?.setOption(option);
|
|
21
|
-
chartRef.current?.resize({
|
|
22
|
-
width,
|
|
23
|
-
height
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
return /*#__PURE__*/ jsx("div", {
|
|
27
|
-
ref: container,
|
|
28
|
-
...rest
|
|
29
|
-
});
|
|
100
|
+
$[19] = rest;
|
|
101
|
+
$[20] = t7;
|
|
102
|
+
} else t7 = $[20];
|
|
103
|
+
return t7;
|
|
30
104
|
});
|
|
31
105
|
const Pie = Echart;
|
|
32
106
|
const Bar = Echart;
|
package/dist/components/Flow.cjs
CHANGED
|
@@ -88,9 +88,9 @@ function ManualFlow(props) {
|
|
|
88
88
|
top: y * (itemHeight + rowGap)
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
function getHidden(
|
|
91
|
+
function getHidden(index_0) {
|
|
92
92
|
if ("number" != typeof maxRows) return false;
|
|
93
|
-
return
|
|
93
|
+
return index_0 >= maxRows * columnCount;
|
|
94
94
|
}
|
|
95
95
|
(0, external_react_namespaceObject.useImperativeHandle)(element, ()=>ele.current, [
|
|
96
96
|
ele.current
|
|
@@ -110,7 +110,7 @@ function ManualFlow(props) {
|
|
|
110
110
|
maxColumnGap
|
|
111
111
|
]);
|
|
112
112
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
113
|
-
onSizeChange
|
|
113
|
+
null == onSizeChange || onSizeChange({
|
|
114
114
|
width,
|
|
115
115
|
height,
|
|
116
116
|
itemWidth,
|
|
@@ -146,7 +146,7 @@ function ManualFlow(props) {
|
|
|
146
146
|
height: (0, index_cjs_namespaceObject.px)(height)
|
|
147
147
|
}, style),
|
|
148
148
|
...rest,
|
|
149
|
-
children: data.map((item,
|
|
149
|
+
children: data.map((item, index_1, arr)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
150
150
|
className: (0, external_deepsea_tools_namespaceObject.clsx)((0, css_namespaceObject.css)`
|
|
151
151
|
position: absolute;
|
|
152
152
|
width: var(--width);
|
|
@@ -160,8 +160,8 @@ function ManualFlow(props) {
|
|
|
160
160
|
width: (0, index_cjs_namespaceObject.px)(itemWidth),
|
|
161
161
|
height: (0, index_cjs_namespaceObject.px)(itemHeight),
|
|
162
162
|
transition: 0 === transitionDuration ? "none" : `all ${transitionDuration || 400}ms`,
|
|
163
|
-
left: (0, index_cjs_namespaceObject.px)(getPosition(
|
|
164
|
-
top: (0, index_cjs_namespaceObject.px)(getPosition(
|
|
163
|
+
left: (0, index_cjs_namespaceObject.px)(getPosition(index_1).left),
|
|
164
|
+
top: (0, index_cjs_namespaceObject.px)(getPosition(index_1).top)
|
|
165
165
|
}, wrapperStyle),
|
|
166
166
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
167
167
|
className: (0, external_deepsea_tools_namespaceObject.clsx)((0, css_namespaceObject.css)`
|
|
@@ -170,18 +170,18 @@ function ManualFlow(props) {
|
|
|
170
170
|
display: var(--display);
|
|
171
171
|
`, containerClassName),
|
|
172
172
|
style: (0, index_cjs_namespaceObject.transformCSSVariable)({
|
|
173
|
-
display: getHidden(
|
|
173
|
+
display: getHidden(index_1) ? "none" : "block"
|
|
174
174
|
}, containerStyle),
|
|
175
|
-
children: render(item,
|
|
175
|
+
children: render(item, index_1, arr)
|
|
176
176
|
})
|
|
177
|
-
}, keyExactor ? keyExactor(item,
|
|
177
|
+
}, keyExactor ? keyExactor(item, index_1, arr) : index_1))
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
function Flow(props) {
|
|
181
181
|
const { itemWidth, itemHeight, columnGap, rowGap, gap, maxRows, data, render, keyExactor, wrapperClassName, wrapperStyle, containerClassName, containerStyle, throttle, transitionDuration, onSizeChange, element, ...rest } = props;
|
|
182
182
|
const ele = (0, external_react_namespaceObject.useRef)(null);
|
|
183
183
|
const size = (0, external_soda_hooks_namespaceObject.useSize)(ele);
|
|
184
|
-
const width = (0, external_react_namespaceObject.useRef)(size
|
|
184
|
+
const width = (0, external_react_namespaceObject.useRef)((null == size ? void 0 : size.width) || 0);
|
|
185
185
|
if (size && 0 !== size.width) width.current = size.width;
|
|
186
186
|
(0, external_react_namespaceObject.useImperativeHandle)(element, ()=>ele.current, [
|
|
187
187
|
ele.current
|
package/dist/components/Flow.js
CHANGED
|
@@ -57,9 +57,9 @@ function ManualFlow(props) {
|
|
|
57
57
|
top: y * (itemHeight + rowGap)
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function getHidden(
|
|
60
|
+
function getHidden(index_0) {
|
|
61
61
|
if ("number" != typeof maxRows) return false;
|
|
62
|
-
return
|
|
62
|
+
return index_0 >= maxRows * columnCount;
|
|
63
63
|
}
|
|
64
64
|
useImperativeHandle(element, ()=>ele.current, [
|
|
65
65
|
ele.current
|
|
@@ -79,7 +79,7 @@ function ManualFlow(props) {
|
|
|
79
79
|
maxColumnGap
|
|
80
80
|
]);
|
|
81
81
|
useEffect(()=>{
|
|
82
|
-
onSizeChange
|
|
82
|
+
null == onSizeChange || onSizeChange({
|
|
83
83
|
width,
|
|
84
84
|
height,
|
|
85
85
|
itemWidth,
|
|
@@ -115,7 +115,7 @@ function ManualFlow(props) {
|
|
|
115
115
|
height: px(height)
|
|
116
116
|
}, style),
|
|
117
117
|
...rest,
|
|
118
|
-
children: data.map((item,
|
|
118
|
+
children: data.map((item, index_1, arr)=>/*#__PURE__*/ jsx("div", {
|
|
119
119
|
className: clsx(css`
|
|
120
120
|
position: absolute;
|
|
121
121
|
width: var(--width);
|
|
@@ -129,8 +129,8 @@ function ManualFlow(props) {
|
|
|
129
129
|
width: px(itemWidth),
|
|
130
130
|
height: px(itemHeight),
|
|
131
131
|
transition: 0 === transitionDuration ? "none" : `all ${transitionDuration || 400}ms`,
|
|
132
|
-
left: px(getPosition(
|
|
133
|
-
top: px(getPosition(
|
|
132
|
+
left: px(getPosition(index_1).left),
|
|
133
|
+
top: px(getPosition(index_1).top)
|
|
134
134
|
}, wrapperStyle),
|
|
135
135
|
children: /*#__PURE__*/ jsx("div", {
|
|
136
136
|
className: clsx(css`
|
|
@@ -139,18 +139,18 @@ function ManualFlow(props) {
|
|
|
139
139
|
display: var(--display);
|
|
140
140
|
`, containerClassName),
|
|
141
141
|
style: transformCSSVariable({
|
|
142
|
-
display: getHidden(
|
|
142
|
+
display: getHidden(index_1) ? "none" : "block"
|
|
143
143
|
}, containerStyle),
|
|
144
|
-
children: render(item,
|
|
144
|
+
children: render(item, index_1, arr)
|
|
145
145
|
})
|
|
146
|
-
}, keyExactor ? keyExactor(item,
|
|
146
|
+
}, keyExactor ? keyExactor(item, index_1, arr) : index_1))
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function Flow(props) {
|
|
150
150
|
const { itemWidth, itemHeight, columnGap, rowGap, gap, maxRows, data, render, keyExactor, wrapperClassName, wrapperStyle, containerClassName, containerStyle, throttle, transitionDuration, onSizeChange, element, ...rest } = props;
|
|
151
151
|
const ele = useRef(null);
|
|
152
152
|
const size = useSize(ele);
|
|
153
|
-
const width = useRef(size
|
|
153
|
+
const width = useRef((null == size ? void 0 : size.width) || 0);
|
|
154
154
|
if (size && 0 !== size.width) width.current = size.width;
|
|
155
155
|
useImperativeHandle(element, ()=>ele.current, [
|
|
156
156
|
ele.current
|
|
@@ -30,39 +30,104 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
FormLabelConfigContext: ()=>FormLabelConfigContext
|
|
31
31
|
});
|
|
32
32
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
33
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
33
34
|
const external_react_namespaceObject = require("react");
|
|
34
35
|
const FormLabelConfigContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)({});
|
|
35
|
-
const FormLabelConfigProvider = (
|
|
36
|
-
|
|
36
|
+
const FormLabelConfigProvider = (t0)=>{
|
|
37
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(6);
|
|
38
|
+
const { width, before, children } = t0;
|
|
39
|
+
let t1;
|
|
40
|
+
if ($[0] !== before || $[1] !== width) {
|
|
41
|
+
t1 = {
|
|
37
42
|
width,
|
|
38
43
|
before
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
};
|
|
45
|
+
$[0] = before;
|
|
46
|
+
$[1] = width;
|
|
47
|
+
$[2] = t1;
|
|
48
|
+
} else t1 = $[2];
|
|
49
|
+
let t2;
|
|
50
|
+
if ($[3] !== children || $[4] !== t1) {
|
|
51
|
+
t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FormLabelConfigContext.Provider, {
|
|
52
|
+
value: t1,
|
|
53
|
+
children: children
|
|
54
|
+
});
|
|
55
|
+
$[3] = children;
|
|
56
|
+
$[4] = t1;
|
|
57
|
+
$[5] = t2;
|
|
58
|
+
} else t2 = $[5];
|
|
59
|
+
return t2;
|
|
60
|
+
};
|
|
42
61
|
const FormLabel = (props)=>{
|
|
62
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(16);
|
|
43
63
|
const { width: _width, before: _before } = (0, external_react_namespaceObject.useContext)(FormLabelConfigContext);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
let rest;
|
|
65
|
+
let style;
|
|
66
|
+
let t0;
|
|
67
|
+
let t1;
|
|
68
|
+
if ($[0] !== props) {
|
|
69
|
+
({ style, width: t0, before: t1, ...rest } = props);
|
|
70
|
+
$[0] = props;
|
|
71
|
+
$[1] = rest;
|
|
72
|
+
$[2] = style;
|
|
73
|
+
$[3] = t0;
|
|
74
|
+
$[4] = t1;
|
|
75
|
+
} else {
|
|
76
|
+
rest = $[1];
|
|
77
|
+
style = $[2];
|
|
78
|
+
t0 = $[3];
|
|
79
|
+
t1 = $[4];
|
|
80
|
+
}
|
|
81
|
+
const width = void 0 === t0 ? _width : t0;
|
|
82
|
+
const before = void 0 === t1 ? _before : t1;
|
|
83
|
+
let t2;
|
|
84
|
+
if ($[5] !== before) {
|
|
85
|
+
t2 = !!before && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
86
|
+
style: {
|
|
87
|
+
width: 11,
|
|
88
|
+
color: "transparent",
|
|
89
|
+
userSelect: "none"
|
|
90
|
+
},
|
|
91
|
+
children: "\u2002"
|
|
92
|
+
});
|
|
93
|
+
$[5] = before;
|
|
94
|
+
$[6] = t2;
|
|
95
|
+
} else t2 = $[6];
|
|
96
|
+
let t3;
|
|
97
|
+
if ($[7] !== style || $[8] !== width) {
|
|
98
|
+
t3 = {
|
|
99
|
+
width,
|
|
100
|
+
textAlign: "justify",
|
|
101
|
+
textAlignLast: "justify",
|
|
102
|
+
...style
|
|
103
|
+
};
|
|
104
|
+
$[7] = style;
|
|
105
|
+
$[8] = width;
|
|
106
|
+
$[9] = t3;
|
|
107
|
+
} else t3 = $[9];
|
|
108
|
+
let t4;
|
|
109
|
+
if ($[10] !== rest || $[11] !== t3) {
|
|
110
|
+
t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
111
|
+
style: t3,
|
|
112
|
+
...rest
|
|
113
|
+
});
|
|
114
|
+
$[10] = rest;
|
|
115
|
+
$[11] = t3;
|
|
116
|
+
$[12] = t4;
|
|
117
|
+
} else t4 = $[12];
|
|
118
|
+
let t5;
|
|
119
|
+
if ($[13] !== t2 || $[14] !== t4) {
|
|
120
|
+
t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_react_namespaceObject.Fragment, {
|
|
121
|
+
children: [
|
|
122
|
+
t2,
|
|
123
|
+
t4
|
|
124
|
+
]
|
|
125
|
+
});
|
|
126
|
+
$[13] = t2;
|
|
127
|
+
$[14] = t4;
|
|
128
|
+
$[15] = t5;
|
|
129
|
+
} else t5 = $[15];
|
|
130
|
+
return t5;
|
|
66
131
|
};
|
|
67
132
|
exports.FormLabel = __webpack_exports__.FormLabel;
|
|
68
133
|
exports.FormLabelConfigContext = __webpack_exports__.FormLabelConfigContext;
|
|
@@ -1,37 +1,102 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { Fragment, createContext, useContext } from "react";
|
|
4
5
|
const FormLabelConfigContext = /*#__PURE__*/ createContext({});
|
|
5
|
-
const FormLabelConfigProvider = (
|
|
6
|
-
|
|
6
|
+
const FormLabelConfigProvider = (t0)=>{
|
|
7
|
+
const $ = c(6);
|
|
8
|
+
const { width, before, children } = t0;
|
|
9
|
+
let t1;
|
|
10
|
+
if ($[0] !== before || $[1] !== width) {
|
|
11
|
+
t1 = {
|
|
7
12
|
width,
|
|
8
13
|
before
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
};
|
|
15
|
+
$[0] = before;
|
|
16
|
+
$[1] = width;
|
|
17
|
+
$[2] = t1;
|
|
18
|
+
} else t1 = $[2];
|
|
19
|
+
let t2;
|
|
20
|
+
if ($[3] !== children || $[4] !== t1) {
|
|
21
|
+
t2 = /*#__PURE__*/ jsx(FormLabelConfigContext.Provider, {
|
|
22
|
+
value: t1,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
25
|
+
$[3] = children;
|
|
26
|
+
$[4] = t1;
|
|
27
|
+
$[5] = t2;
|
|
28
|
+
} else t2 = $[5];
|
|
29
|
+
return t2;
|
|
30
|
+
};
|
|
12
31
|
const FormLabel = (props)=>{
|
|
32
|
+
const $ = c(16);
|
|
13
33
|
const { width: _width, before: _before } = useContext(FormLabelConfigContext);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
let rest;
|
|
35
|
+
let style;
|
|
36
|
+
let t0;
|
|
37
|
+
let t1;
|
|
38
|
+
if ($[0] !== props) {
|
|
39
|
+
({ style, width: t0, before: t1, ...rest } = props);
|
|
40
|
+
$[0] = props;
|
|
41
|
+
$[1] = rest;
|
|
42
|
+
$[2] = style;
|
|
43
|
+
$[3] = t0;
|
|
44
|
+
$[4] = t1;
|
|
45
|
+
} else {
|
|
46
|
+
rest = $[1];
|
|
47
|
+
style = $[2];
|
|
48
|
+
t0 = $[3];
|
|
49
|
+
t1 = $[4];
|
|
50
|
+
}
|
|
51
|
+
const width = void 0 === t0 ? _width : t0;
|
|
52
|
+
const before = void 0 === t1 ? _before : t1;
|
|
53
|
+
let t2;
|
|
54
|
+
if ($[5] !== before) {
|
|
55
|
+
t2 = !!before && /*#__PURE__*/ jsx("div", {
|
|
56
|
+
style: {
|
|
57
|
+
width: 11,
|
|
58
|
+
color: "transparent",
|
|
59
|
+
userSelect: "none"
|
|
60
|
+
},
|
|
61
|
+
children: "\u2002"
|
|
62
|
+
});
|
|
63
|
+
$[5] = before;
|
|
64
|
+
$[6] = t2;
|
|
65
|
+
} else t2 = $[6];
|
|
66
|
+
let t3;
|
|
67
|
+
if ($[7] !== style || $[8] !== width) {
|
|
68
|
+
t3 = {
|
|
69
|
+
width,
|
|
70
|
+
textAlign: "justify",
|
|
71
|
+
textAlignLast: "justify",
|
|
72
|
+
...style
|
|
73
|
+
};
|
|
74
|
+
$[7] = style;
|
|
75
|
+
$[8] = width;
|
|
76
|
+
$[9] = t3;
|
|
77
|
+
} else t3 = $[9];
|
|
78
|
+
let t4;
|
|
79
|
+
if ($[10] !== rest || $[11] !== t3) {
|
|
80
|
+
t4 = /*#__PURE__*/ jsx("div", {
|
|
81
|
+
style: t3,
|
|
82
|
+
...rest
|
|
83
|
+
});
|
|
84
|
+
$[10] = rest;
|
|
85
|
+
$[11] = t3;
|
|
86
|
+
$[12] = t4;
|
|
87
|
+
} else t4 = $[12];
|
|
88
|
+
let t5;
|
|
89
|
+
if ($[13] !== t2 || $[14] !== t4) {
|
|
90
|
+
t5 = /*#__PURE__*/ jsxs(Fragment, {
|
|
91
|
+
children: [
|
|
92
|
+
t2,
|
|
93
|
+
t4
|
|
94
|
+
]
|
|
95
|
+
});
|
|
96
|
+
$[13] = t2;
|
|
97
|
+
$[14] = t4;
|
|
98
|
+
$[15] = t5;
|
|
99
|
+
} else t5 = $[15];
|
|
100
|
+
return t5;
|
|
36
101
|
};
|
|
37
102
|
export { FormLabel, FormLabelConfigContext, FormLabelConfigProvider };
|
|
@@ -37,35 +37,76 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
HlsPlayer: ()=>HlsPlayer
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
40
41
|
const external_hls_js_namespaceObject = require("hls.js");
|
|
41
42
|
var external_hls_js_default = /*#__PURE__*/ __webpack_require__.n(external_hls_js_namespaceObject);
|
|
42
43
|
const external_react_namespaceObject = require("react");
|
|
43
44
|
const HlsPlayer = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((props, ref)=>{
|
|
44
|
-
const
|
|
45
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(10);
|
|
46
|
+
let rest;
|
|
47
|
+
let src;
|
|
48
|
+
if ($[0] !== props) {
|
|
49
|
+
({ src, ...rest } = props);
|
|
50
|
+
$[0] = props;
|
|
51
|
+
$[1] = rest;
|
|
52
|
+
$[2] = src;
|
|
53
|
+
} else {
|
|
54
|
+
rest = $[1];
|
|
55
|
+
src = $[2];
|
|
56
|
+
}
|
|
45
57
|
const video = (0, external_react_namespaceObject.useRef)(null);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
let t0;
|
|
59
|
+
let t1;
|
|
60
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
61
|
+
t0 = ()=>video.current;
|
|
62
|
+
t1 = [];
|
|
63
|
+
$[3] = t0;
|
|
64
|
+
$[4] = t1;
|
|
65
|
+
} else {
|
|
66
|
+
t0 = $[3];
|
|
67
|
+
t1 = $[4];
|
|
68
|
+
}
|
|
69
|
+
(0, external_react_namespaceObject.useImperativeHandle)(ref, t0, t1);
|
|
70
|
+
let t2;
|
|
71
|
+
let t3;
|
|
72
|
+
if ($[5] !== src) {
|
|
73
|
+
t2 = ()=>{
|
|
74
|
+
const { current: player } = video;
|
|
75
|
+
if (!player || !src) return;
|
|
76
|
+
if (player.canPlayType("application/vnd.apple.mpegurl")) {
|
|
77
|
+
player.src = src;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (external_hls_js_default().isSupported()) {
|
|
81
|
+
const hls = new (external_hls_js_default())();
|
|
82
|
+
hls.loadSource(src);
|
|
83
|
+
hls.attachMedia(player);
|
|
84
|
+
return ()=>{
|
|
85
|
+
hls.destroy();
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
t3 = [
|
|
90
|
+
src
|
|
91
|
+
];
|
|
92
|
+
$[5] = src;
|
|
93
|
+
$[6] = t2;
|
|
94
|
+
$[7] = t3;
|
|
95
|
+
} else {
|
|
96
|
+
t2 = $[6];
|
|
97
|
+
t3 = $[7];
|
|
98
|
+
}
|
|
99
|
+
(0, external_react_namespaceObject.useEffect)(t2, t3);
|
|
100
|
+
let t4;
|
|
101
|
+
if ($[8] !== rest) {
|
|
102
|
+
t4 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("video", {
|
|
103
|
+
ref: video,
|
|
104
|
+
...rest
|
|
105
|
+
});
|
|
106
|
+
$[8] = rest;
|
|
107
|
+
$[9] = t4;
|
|
108
|
+
} else t4 = $[9];
|
|
109
|
+
return t4;
|
|
69
110
|
});
|
|
70
111
|
exports.HlsPlayer = __webpack_exports__.HlsPlayer;
|
|
71
112
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|