@dotss/tictoccroc 0.0.22 → 0.0.23
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/shared/components/Carousel/Carousel.mjs +1 -1
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.d.ts +3 -3
- package/dist/shared/components/ChatKit/BotMessage/index.d.ts +2 -2
- package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +33 -25
- package/dist/shared/components/ChatKit/Message/Message.mjs +24 -24
- package/dist/shared/components/Image/Image.d.ts +1 -1
- package/dist/shared/components/Image/Image.mjs +33 -33
- package/dist/shared/components/Swiper/Swiper.mjs +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ function ye({
|
|
|
13
13
|
renderPagination: z,
|
|
14
14
|
...C
|
|
15
15
|
}) {
|
|
16
|
-
const { spacing: $ } = he(), [l, Y] = I(1), [w, ee] = I(
|
|
16
|
+
const { spacing: $ } = he(), [l, Y] = I(1), [w, ee] = I(1), [te, ne] = I(0), L = p(null), c = p(null), u = p(null), X = p(0), F = p(0), b = p(0), S = p(!1), D = p(!0), k = p(0), v = $.content(K), E = $.content(O), N = Q.toArray(Z).filter(ue).filter((e) => e.type === me), x = N.length, j = (e, t) => {
|
|
17
17
|
X.current = e, F.current = t;
|
|
18
18
|
}, M = () => {
|
|
19
19
|
var o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
2
|
export type BotMessageType = 'MATCHING_SUCCEEDED' | 'TEACHER_INQUIRED' | 'PARENT_CHANGED_OFFER_SCHEDULE' | 'PARENT_CHANGED_MATCHING_SCHEDULE' | 'TEACHER_APPLIED' | 'PARENT_SENT_OFFER' | 'KOK_MATCHING_SUCCEEDED' | 'APPLICATION_MATCHING_SUCCEEDED' | 'PARENT_REJECTED_APPLICATION' | 'TEACHER_REFUSED_OFFER' | 'PARENT_CANCELED_MATCHING' | 'TEACHER_CANCELED_MATCHING' | 'TEACHER_COMPLETED_CARE' | 'ADMIN_CANCELED_MATCHING';
|
|
3
3
|
export type BotMessageCtaType = 'MY_CLASS_CHECK' | 'OFFER_CHECK' | 'CHANGE_INFO_CHECK' | 'MY_APPLICATION_INFO_VIEW' | 'CARE_NOTE_CHECK' | 'TEACHER_SELECTION';
|
|
4
|
-
export type
|
|
4
|
+
export type BotMessageSubCtaTargetTable = 'MATCHING';
|
|
5
5
|
export interface BotMessageOffer {
|
|
6
6
|
careStartDate: string;
|
|
7
7
|
careStartTime: string;
|
|
@@ -16,7 +16,7 @@ export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
|
|
|
16
16
|
ctaType?: BotMessageCtaType | null;
|
|
17
17
|
ctaTargetTable?: string | null;
|
|
18
18
|
ctaTargetId?: number | null;
|
|
19
|
-
subCtaTargetTable?:
|
|
19
|
+
subCtaTargetTable?: BotMessageSubCtaTargetTable | null;
|
|
20
20
|
subCtaTargetId?: number | null;
|
|
21
21
|
mine: boolean;
|
|
22
22
|
avatarUrl?: string;
|
|
@@ -29,7 +29,7 @@ export interface BotMessageProps extends Omit<FlexboxProps, 'id' | 'title'> {
|
|
|
29
29
|
botMessageType: BotMessageType;
|
|
30
30
|
ctaType?: BotMessageCtaType | null;
|
|
31
31
|
ctaTargetId?: number | null;
|
|
32
|
-
subCtaTargetTable?:
|
|
32
|
+
subCtaTargetTable?: BotMessageSubCtaTargetTable | null;
|
|
33
33
|
subCtaTargetId?: number | null;
|
|
34
34
|
}) => void;
|
|
35
35
|
onView?: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as BotMessage, BotMessageCtaType, BotMessageOffer, BotMessageProps,
|
|
1
|
+
import { default as BotMessage, BotMessageCtaType, BotMessageOffer, BotMessageProps, BotMessageSubCtaTargetTable, BotMessageType } from './BotMessage';
|
|
2
2
|
export { getClassInfo, getCtaButtonText, getBotMessageLabel } from './BotMessage.utils';
|
|
3
|
-
export type { BotMessageProps, BotMessageCtaType, BotMessageType, BotMessageOffer,
|
|
3
|
+
export type { BotMessageProps, BotMessageCtaType, BotMessageType, BotMessageOffer, BotMessageSubCtaTargetTable };
|
|
4
4
|
export default BotMessage;
|
|
@@ -1,53 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Flexbox as
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Flexbox as n, Skeleton as l } from "@dotss/ui";
|
|
3
|
+
import f from "@dotss/ui/core/useTheme";
|
|
4
4
|
function x({
|
|
5
|
-
mine:
|
|
6
|
-
showAvatar:
|
|
5
|
+
mine: i = !1,
|
|
6
|
+
showAvatar: t = !1,
|
|
7
7
|
showTime: o = !1,
|
|
8
|
-
width:
|
|
9
|
-
inlineCSS:
|
|
10
|
-
...
|
|
8
|
+
width: a = 200,
|
|
9
|
+
inlineCSS: s,
|
|
10
|
+
...d
|
|
11
11
|
}) {
|
|
12
|
-
const { spacing:
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
12
|
+
const { spacing: h } = f();
|
|
13
|
+
return /* @__PURE__ */ r(
|
|
14
|
+
n,
|
|
15
15
|
{
|
|
16
16
|
alignItems: "flex-end",
|
|
17
|
-
flexDirection:
|
|
17
|
+
flexDirection: i ? "row-reverse" : "row",
|
|
18
18
|
pl: 4,
|
|
19
19
|
pr: 4,
|
|
20
20
|
gap: 1,
|
|
21
|
-
...
|
|
21
|
+
...d,
|
|
22
22
|
inlineCSS: {
|
|
23
23
|
overflowAnchor: "none",
|
|
24
|
-
...
|
|
24
|
+
...s
|
|
25
25
|
},
|
|
26
26
|
children: [
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
!
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
27
|
+
/* @__PURE__ */ r(n, { alignItems: "flex-start", gap: 2.5, children: [
|
|
28
|
+
!i && t && /* @__PURE__ */ e(l, { width: 32, height: 32, borderRadius: 200 }),
|
|
29
|
+
/* @__PURE__ */ e(
|
|
30
|
+
l,
|
|
31
31
|
{
|
|
32
|
-
width:
|
|
32
|
+
width: a,
|
|
33
33
|
height: 38,
|
|
34
34
|
borderRadius: 12,
|
|
35
35
|
inlineCSS: {
|
|
36
|
-
marginLeft: !
|
|
36
|
+
marginLeft: !i && t ? h.content(10.5) : void 0
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
)
|
|
40
40
|
] }),
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
41
|
+
/* @__PURE__ */ e(
|
|
42
|
+
n,
|
|
43
43
|
{
|
|
44
44
|
flexDirection: "column",
|
|
45
|
-
alignItems: e ? "flex-end" : "flex-start",
|
|
46
45
|
inlineCSS: {
|
|
47
|
-
visibility: o ? "visible" : "hidden",
|
|
48
46
|
whiteSpace: "nowrap"
|
|
49
47
|
},
|
|
50
|
-
children: /* @__PURE__ */
|
|
48
|
+
children: /* @__PURE__ */ r(n, { flexDirection: "column", alignItems: i ? "flex-end" : "flex-start", gap: 1, children: [
|
|
49
|
+
/* @__PURE__ */ e(l, { width: 4.49, height: 12 }),
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
l,
|
|
52
|
+
{
|
|
53
|
+
width: 38,
|
|
54
|
+
height: 12,
|
|
55
|
+
inlineCSS: { display: o ? "visible" : "hidden" }
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] })
|
|
51
59
|
}
|
|
52
60
|
)
|
|
53
61
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r, Fragment as O } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Flexbox as s, Typography as
|
|
2
|
+
import { useRef as x, useImperativeHandle as q, useEffect as b } from "react";
|
|
3
|
+
import { Flexbox as s, Typography as C, Button as J, Icon as I, Menu as K, MenuBlock as $, CircularProgressIndicator as Q } from "@dotss/ui";
|
|
4
4
|
import W from "@dotss/ui/core/useTheme";
|
|
5
5
|
import { useCheckHoverPossible as X } from "@dotss/ui/hooks";
|
|
6
6
|
import { MenuButton as Y } from "@dotss/ui/Menu";
|
|
@@ -8,11 +8,11 @@ import Z from "dayjs";
|
|
|
8
8
|
import _ from "../../Image/Image.mjs";
|
|
9
9
|
import V from "../../../hooks/useInView/useInView.mjs";
|
|
10
10
|
function ar({
|
|
11
|
-
id:
|
|
11
|
+
id: v,
|
|
12
12
|
content: p = "",
|
|
13
13
|
mine: e = !1,
|
|
14
|
-
avatarUrl:
|
|
15
|
-
unreadUserCount:
|
|
14
|
+
avatarUrl: f = "",
|
|
15
|
+
unreadUserCount: h = 0,
|
|
16
16
|
regDatetime: z,
|
|
17
17
|
status: n,
|
|
18
18
|
onView: c,
|
|
@@ -31,7 +31,7 @@ function ar({
|
|
|
31
31
|
const {
|
|
32
32
|
palette: { brand: y, grey: o, etc: A },
|
|
33
33
|
spacing: w
|
|
34
|
-
} = W(), { isHoverPossible: G } = X(), l =
|
|
34
|
+
} = W(), { isHoverPossible: G } = X(), l = x(null), E = x(null), m = x(null);
|
|
35
35
|
q(R, () => l.current);
|
|
36
36
|
const L = V(l), N = 300, d = n === "FAILED", P = p.length > N, H = (a) => {
|
|
37
37
|
a === "resend" ? (i == null || i(), m.current = setTimeout(() => {
|
|
@@ -40,12 +40,12 @@ function ar({
|
|
|
40
40
|
S == null || S();
|
|
41
41
|
}, 200));
|
|
42
42
|
};
|
|
43
|
-
return
|
|
43
|
+
return b(() => {
|
|
44
44
|
L && (c == null || c());
|
|
45
|
-
}, [L, c]),
|
|
45
|
+
}, [L, c]), b(() => {
|
|
46
46
|
var a;
|
|
47
47
|
d && ((a = l == null ? void 0 : l.current) == null || a.scrollIntoView());
|
|
48
|
-
}, [d]),
|
|
48
|
+
}, [d]), b(() => () => {
|
|
49
49
|
m.current && clearTimeout(m.current);
|
|
50
50
|
}, []), /* @__PURE__ */ t(
|
|
51
51
|
s,
|
|
@@ -65,10 +65,10 @@ function ar({
|
|
|
65
65
|
},
|
|
66
66
|
children: [
|
|
67
67
|
/* @__PURE__ */ t(s, { alignItems: "flex-start", gap: 2.5, children: [
|
|
68
|
-
!e && k &&
|
|
68
|
+
!e && k && f && /* @__PURE__ */ r(
|
|
69
69
|
_,
|
|
70
70
|
{
|
|
71
|
-
src:
|
|
71
|
+
src: f,
|
|
72
72
|
width: 32,
|
|
73
73
|
height: 32,
|
|
74
74
|
borderRadius: "50%",
|
|
@@ -86,7 +86,7 @@ function ar({
|
|
|
86
86
|
pb: 2,
|
|
87
87
|
pl: 3,
|
|
88
88
|
pr: 3,
|
|
89
|
-
ml: !e && !k &&
|
|
89
|
+
ml: !e && !k && f ? 10.5 : void 0,
|
|
90
90
|
flexDirection: "column",
|
|
91
91
|
gap: 2.5,
|
|
92
92
|
inlineCSS: {
|
|
@@ -95,7 +95,7 @@ function ar({
|
|
|
95
95
|
},
|
|
96
96
|
children: [
|
|
97
97
|
/* @__PURE__ */ r(
|
|
98
|
-
|
|
98
|
+
C,
|
|
99
99
|
{
|
|
100
100
|
tag: "p",
|
|
101
101
|
variant: "b3R",
|
|
@@ -112,7 +112,7 @@ function ar({
|
|
|
112
112
|
{
|
|
113
113
|
variant: "text",
|
|
114
114
|
size: "xSmall",
|
|
115
|
-
endAdornment: /* @__PURE__ */ r(
|
|
115
|
+
endAdornment: /* @__PURE__ */ r(I, { name: "ChevronRightLine" }),
|
|
116
116
|
onClick: D,
|
|
117
117
|
inlineCSS: {
|
|
118
118
|
marginLeft: "auto"
|
|
@@ -130,7 +130,7 @@ function ar({
|
|
|
130
130
|
{
|
|
131
131
|
ref: E,
|
|
132
132
|
isMenuOpen: !!g,
|
|
133
|
-
menuId: `message-${
|
|
133
|
+
menuId: `message-${v}-menu`,
|
|
134
134
|
onClick: B,
|
|
135
135
|
size: "xSmall",
|
|
136
136
|
inlineCSS: {
|
|
@@ -150,7 +150,7 @@ function ar({
|
|
|
150
150
|
},
|
|
151
151
|
children: [
|
|
152
152
|
/* @__PURE__ */ r(
|
|
153
|
-
|
|
153
|
+
I,
|
|
154
154
|
{
|
|
155
155
|
name: "ResetLine",
|
|
156
156
|
size: "xSmall",
|
|
@@ -161,7 +161,7 @@ function ar({
|
|
|
161
161
|
}
|
|
162
162
|
),
|
|
163
163
|
/* @__PURE__ */ r(
|
|
164
|
-
|
|
164
|
+
I,
|
|
165
165
|
{
|
|
166
166
|
name: "CloseLine",
|
|
167
167
|
size: "xSmall",
|
|
@@ -177,7 +177,7 @@ function ar({
|
|
|
177
177
|
/* @__PURE__ */ t(
|
|
178
178
|
K,
|
|
179
179
|
{
|
|
180
|
-
id: `message-${
|
|
180
|
+
id: `message-${v}-menu`,
|
|
181
181
|
anchorRef: E,
|
|
182
182
|
open: g,
|
|
183
183
|
onClose: i,
|
|
@@ -200,8 +200,8 @@ function ar({
|
|
|
200
200
|
whiteSpace: "nowrap"
|
|
201
201
|
},
|
|
202
202
|
children: [
|
|
203
|
-
e &&
|
|
204
|
-
|
|
203
|
+
e && h > 0 && n === "SUCCEEDED" && /* @__PURE__ */ r(
|
|
204
|
+
C,
|
|
205
205
|
{
|
|
206
206
|
tag: "span",
|
|
207
207
|
variant: "c5B",
|
|
@@ -209,10 +209,10 @@ function ar({
|
|
|
209
209
|
inlineCSS: {
|
|
210
210
|
color: y.primary.text
|
|
211
211
|
},
|
|
212
|
-
children:
|
|
212
|
+
children: h
|
|
213
213
|
}
|
|
214
214
|
),
|
|
215
|
-
e &&
|
|
215
|
+
e && h > 0 && n === "PENDING" && /* @__PURE__ */ r(
|
|
216
216
|
Q,
|
|
217
217
|
{
|
|
218
218
|
size: "small",
|
|
@@ -224,13 +224,13 @@ function ar({
|
|
|
224
224
|
}
|
|
225
225
|
),
|
|
226
226
|
/* @__PURE__ */ r(
|
|
227
|
-
|
|
227
|
+
C,
|
|
228
228
|
{
|
|
229
229
|
tag: "span",
|
|
230
230
|
variant: "c5R",
|
|
231
231
|
color: "etc.dimmed01",
|
|
232
232
|
inlineCSS: {
|
|
233
|
-
|
|
233
|
+
display: F ? void 0 : "none"
|
|
234
234
|
},
|
|
235
235
|
children: Z(z).format("A h:mm")
|
|
236
236
|
}
|
|
@@ -17,7 +17,7 @@ export interface ImageProps extends Omit<HTMLProps<HTMLImageElement>, 'onError'>
|
|
|
17
17
|
wrapperProps?: FlexboxProps;
|
|
18
18
|
enableFallback?: boolean;
|
|
19
19
|
enableErrorFallback?: boolean;
|
|
20
|
-
renderErrorFallback?: (
|
|
20
|
+
renderErrorFallback?: () => ReactNode;
|
|
21
21
|
}
|
|
22
22
|
declare const Image: import('react').ForwardRefExoticComponent<Omit<ImageProps, "ref"> & import('react').RefAttributes<HTMLImageElement>>;
|
|
23
23
|
export default Image;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as L, jsx as
|
|
1
|
+
import { jsxs as L, jsx as c, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Z, useRef as h, useImperativeHandle as w, useState as C, useEffect as R } from "react";
|
|
3
3
|
import { Flexbox as M, Skeleton as U } from "@dotss/ui";
|
|
4
4
|
import F from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
@@ -11,9 +11,9 @@ const k = 100, ot = Z(
|
|
|
11
11
|
height: o,
|
|
12
12
|
fit: q = "cover",
|
|
13
13
|
position: A = "center",
|
|
14
|
-
alt:
|
|
14
|
+
alt: E,
|
|
15
15
|
scale: D = 2,
|
|
16
|
-
onLoad:
|
|
16
|
+
onLoad: r,
|
|
17
17
|
onLazyLoad: g,
|
|
18
18
|
lazy: I = !1,
|
|
19
19
|
borderRadius: l,
|
|
@@ -21,21 +21,21 @@ const k = 100, ot = Z(
|
|
|
21
21
|
withIntrinsicRatio: x = !1,
|
|
22
22
|
enableFallback: T = !1,
|
|
23
23
|
enableErrorFallback: W = !0,
|
|
24
|
-
renderErrorFallback:
|
|
24
|
+
renderErrorFallback: f,
|
|
25
25
|
wrapperProps: e = {},
|
|
26
26
|
onError: H,
|
|
27
|
-
...
|
|
27
|
+
...d
|
|
28
28
|
}, J) => {
|
|
29
|
-
const
|
|
29
|
+
const u = h(null), $ = h(!1), m = h(null);
|
|
30
30
|
w(J, () => m.current);
|
|
31
|
-
const [
|
|
32
|
-
|
|
31
|
+
const [a, K] = C(!1), [O, y] = C(!1), [v, S] = C(!1), j = b({ src: _, width: n, height: o, fit: q, position: A, scale: D, disabledResizing: G }), z = (t) => {
|
|
32
|
+
y(!0), S(!1), typeof r == "function" && r(t);
|
|
33
33
|
}, B = (t) => {
|
|
34
|
-
S(!0),
|
|
34
|
+
S(!0), y(!1), typeof H == "function" && H(t.nativeEvent);
|
|
35
35
|
};
|
|
36
36
|
return R(() => {
|
|
37
|
-
if (I &&
|
|
38
|
-
const t =
|
|
37
|
+
if (I && u.current) {
|
|
38
|
+
const t = u.current, N = () => {
|
|
39
39
|
if (!t) return !1;
|
|
40
40
|
const i = t.getBoundingClientRect();
|
|
41
41
|
return i.bottom >= 0 && i.top <= (window.innerHeight || document.documentElement.clientHeight) + k;
|
|
@@ -51,21 +51,21 @@ const k = 100, ot = Z(
|
|
|
51
51
|
return s(), Q(), X;
|
|
52
52
|
}
|
|
53
53
|
}), R(() => {
|
|
54
|
-
typeof g == "function" &&
|
|
55
|
-
}, [g,
|
|
54
|
+
typeof g == "function" && a && !$.current && ($.current = !0, g());
|
|
55
|
+
}, [g, a]), F(() => {
|
|
56
56
|
const t = m.current;
|
|
57
|
-
return t != null && t.complete ? t.naturalWidth > 0 ? (t.style.transition = "none", t.style.opacity = "1",
|
|
58
|
-
t.style.opacity = "1",
|
|
57
|
+
return t != null && t.complete ? t.naturalWidth > 0 ? (t.style.transition = "none", t.style.opacity = "1", y(!0)) : (t.style.opacity = "0", S(!0)) : t && (t.style.transition = "opacity 0.3s", t.style.opacity = "0", t.onload = () => {
|
|
58
|
+
t.style.opacity = "1", y(!0), t.onload = null;
|
|
59
59
|
}, t.onerror = () => {
|
|
60
60
|
S(!0), t.onerror = null;
|
|
61
61
|
}), () => {
|
|
62
62
|
t && (t.onload = null, t.onerror = null);
|
|
63
63
|
};
|
|
64
|
-
}, [
|
|
64
|
+
}, [a]), I ? /* @__PURE__ */ L(
|
|
65
65
|
M,
|
|
66
66
|
{
|
|
67
67
|
...e,
|
|
68
|
-
ref:
|
|
68
|
+
ref: u,
|
|
69
69
|
inlineCSS: x ? {
|
|
70
70
|
position: "relative",
|
|
71
71
|
paddingTop: `calc(100% / ${n} * ${o})`,
|
|
@@ -83,7 +83,7 @@ const k = 100, ot = Z(
|
|
|
83
83
|
...e == null ? void 0 : e.inlineCSS
|
|
84
84
|
},
|
|
85
85
|
children: [
|
|
86
|
-
T && /* @__PURE__ */
|
|
86
|
+
T && /* @__PURE__ */ c(
|
|
87
87
|
U,
|
|
88
88
|
{
|
|
89
89
|
width: "100%",
|
|
@@ -98,19 +98,19 @@ const k = 100, ot = Z(
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */
|
|
101
|
+
a && /* @__PURE__ */ L(Y, { children: [
|
|
102
|
+
/* @__PURE__ */ c(
|
|
103
103
|
"img",
|
|
104
104
|
{
|
|
105
105
|
ref: m,
|
|
106
106
|
src: j,
|
|
107
|
-
alt:
|
|
107
|
+
alt: E,
|
|
108
108
|
width: n,
|
|
109
109
|
height: o,
|
|
110
110
|
onLoad: z,
|
|
111
111
|
onError: B,
|
|
112
|
-
"aria-hidden":
|
|
113
|
-
...
|
|
112
|
+
"aria-hidden": v,
|
|
113
|
+
...d,
|
|
114
114
|
style: {
|
|
115
115
|
position: "absolute",
|
|
116
116
|
top: 0,
|
|
@@ -118,11 +118,11 @@ const k = 100, ot = Z(
|
|
|
118
118
|
width: "100%",
|
|
119
119
|
height: "100%",
|
|
120
120
|
transition: "opacity 0.3s",
|
|
121
|
-
...
|
|
121
|
+
...d.style
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
|
-
W && ((
|
|
125
|
+
W && v && ((f == null ? void 0 : f()) || /* @__PURE__ */ c(V, {}))
|
|
126
126
|
] })
|
|
127
127
|
]
|
|
128
128
|
}
|
|
@@ -130,7 +130,7 @@ const k = 100, ot = Z(
|
|
|
130
130
|
M,
|
|
131
131
|
{
|
|
132
132
|
...e,
|
|
133
|
-
ref:
|
|
133
|
+
ref: u,
|
|
134
134
|
inlineCSS: x ? {
|
|
135
135
|
position: "relative",
|
|
136
136
|
paddingTop: `calc(100% / ${n} * ${o})`,
|
|
@@ -149,7 +149,7 @@ const k = 100, ot = Z(
|
|
|
149
149
|
...e == null ? void 0 : e.inlineCSS
|
|
150
150
|
},
|
|
151
151
|
children: [
|
|
152
|
-
T && /* @__PURE__ */
|
|
152
|
+
T && /* @__PURE__ */ c(
|
|
153
153
|
U,
|
|
154
154
|
{
|
|
155
155
|
width: "100%",
|
|
@@ -164,18 +164,18 @@ const k = 100, ot = Z(
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ c(
|
|
168
168
|
"img",
|
|
169
169
|
{
|
|
170
170
|
ref: m,
|
|
171
171
|
src: j,
|
|
172
|
-
alt:
|
|
172
|
+
alt: E,
|
|
173
173
|
width: n,
|
|
174
174
|
height: o,
|
|
175
175
|
onLoad: z,
|
|
176
176
|
onError: B,
|
|
177
|
-
"aria-hidden":
|
|
178
|
-
...
|
|
177
|
+
"aria-hidden": v,
|
|
178
|
+
...d,
|
|
179
179
|
style: {
|
|
180
180
|
position: "absolute",
|
|
181
181
|
top: 0,
|
|
@@ -183,11 +183,11 @@ const k = 100, ot = Z(
|
|
|
183
183
|
width: "100%",
|
|
184
184
|
height: "100%",
|
|
185
185
|
transition: "opacity 0.3s",
|
|
186
|
-
...
|
|
186
|
+
...d.style
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
),
|
|
190
|
-
W && ((
|
|
190
|
+
W && v && ((f == null ? void 0 : f()) || /* @__PURE__ */ c(V, {}))
|
|
191
191
|
]
|
|
192
192
|
}
|
|
193
193
|
);
|
|
@@ -15,7 +15,7 @@ function vr({
|
|
|
15
15
|
inlineCSS: S,
|
|
16
16
|
...w
|
|
17
17
|
}) {
|
|
18
|
-
const [P, R] = _(E), [s, rr] = _(
|
|
18
|
+
const [P, R] = _(E), [s, rr] = _(1), t = f(null), X = f(0), W = f(0), q = f(0), Y = f(0), o = f(!1), d = f(!0), N = f(""), n = f(E), H = f(!1), l = f(null), p = x.count(j), m = x.toArray(j).filter(G).filter((r) => r.type === U || r.type === I), D = p > 1 && !O, tr = x.toArray(m == null ? void 0 : m[0]).filter(G).filter((r) => r.type === U || r.type === I), er = x.toArray(m == null ? void 0 : m[(m == null ? void 0 : m.length) - 1]).filter(G).filter((r) => r.type === U || r.type === I), J = (r, e, i) => {
|
|
19
19
|
!t.current || !D || (N.current = t.current.style.transform, W.current = r, X.current = r + t.current.offsetWidth * (i + 1), q.current = e);
|
|
20
20
|
}, C = (r, e, i) => {
|
|
21
21
|
if (!t.current || !D || !o.current || !d.current)
|
package/package.json
CHANGED