trade-safety 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/HomeHeroSection.d.ts +5 -1
- package/dist/components/HomeHeroSection.d.ts.map +1 -1
- package/dist/components/UrlPreviewCard.d.ts +7 -0
- package/dist/components/UrlPreviewCard.d.ts.map +1 -0
- package/dist/components/UrlPreviewCardSkeleton.d.ts +2 -0
- package/dist/components/UrlPreviewCardSkeleton.d.ts.map +1 -0
- package/dist/i18n/translations.d.ts +9 -0
- package/dist/i18n/translations.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +701 -635
- package/dist/index.mjs.map +1 -1
- package/dist/locale.js +14 -14
- package/dist/locale.mjs +30 -30
- package/dist/repositories/TradeSafetyRepository.d.ts +3 -3
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,177 +1,178 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as D, Trans as
|
|
1
|
+
import { jsxs as b, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as D, Trans as Me } from "react-i18next";
|
|
3
3
|
import "i18next";
|
|
4
4
|
import "i18next-resources-to-backend";
|
|
5
|
-
import { TRADE_SAFETY_NS as
|
|
6
|
-
import { tradeSafetyTranslations as
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import { TRADE_SAFETY_NS as F } from "./locale.mjs";
|
|
6
|
+
import { tradeSafetyTranslations as Dr } from "./locale.mjs";
|
|
7
|
+
import * as z from "react";
|
|
8
|
+
import T, { memo as Ft, useRef as We, useEffect as qe, useState as ue } from "react";
|
|
9
|
+
import It from "next/image";
|
|
10
|
+
import { BaseCrudRepository as At } from "@aioia/core";
|
|
10
11
|
import { z as c } from "zod";
|
|
11
|
-
function
|
|
12
|
+
function Lt({
|
|
12
13
|
title: t,
|
|
13
|
-
titleId:
|
|
14
|
+
titleId: r,
|
|
14
15
|
...a
|
|
15
|
-
},
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
}, s) {
|
|
17
|
+
return /* @__PURE__ */ z.createElement("svg", Object.assign({
|
|
17
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
19
|
viewBox: "0 0 24 24",
|
|
19
20
|
fill: "currentColor",
|
|
20
21
|
"aria-hidden": "true",
|
|
21
22
|
"data-slot": "icon",
|
|
22
|
-
ref:
|
|
23
|
-
"aria-labelledby":
|
|
24
|
-
}, a), t ? /* @__PURE__ */
|
|
25
|
-
id:
|
|
26
|
-
}, t) : null, /* @__PURE__ */
|
|
23
|
+
ref: s,
|
|
24
|
+
"aria-labelledby": r
|
|
25
|
+
}, a), t ? /* @__PURE__ */ z.createElement("title", {
|
|
26
|
+
id: r
|
|
27
|
+
}, t) : null, /* @__PURE__ */ z.createElement("path", {
|
|
27
28
|
fillRule: "evenodd",
|
|
28
29
|
d: "M2.625 6.75a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875 0A.75.75 0 0 1 8.25 6h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75ZM2.625 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0ZM7.5 12a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12A.75.75 0 0 1 7.5 12Zm-4.875 5.25a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875 0a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75Z",
|
|
29
30
|
clipRule: "evenodd"
|
|
30
31
|
}));
|
|
31
32
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
33
|
+
const Mt = /* @__PURE__ */ z.forwardRef(Lt);
|
|
34
|
+
function Wt({
|
|
34
35
|
title: t,
|
|
35
|
-
titleId:
|
|
36
|
+
titleId: r,
|
|
36
37
|
...a
|
|
37
|
-
},
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
}, s) {
|
|
39
|
+
return /* @__PURE__ */ z.createElement("svg", Object.assign({
|
|
39
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40
41
|
viewBox: "0 0 24 24",
|
|
41
42
|
fill: "currentColor",
|
|
42
43
|
"aria-hidden": "true",
|
|
43
44
|
"data-slot": "icon",
|
|
44
|
-
ref:
|
|
45
|
-
"aria-labelledby":
|
|
46
|
-
}, a), t ? /* @__PURE__ */
|
|
47
|
-
id:
|
|
48
|
-
}, t) : null, /* @__PURE__ */
|
|
45
|
+
ref: s,
|
|
46
|
+
"aria-labelledby": r
|
|
47
|
+
}, a), t ? /* @__PURE__ */ z.createElement("title", {
|
|
48
|
+
id: r
|
|
49
|
+
}, t) : null, /* @__PURE__ */ z.createElement("path", {
|
|
49
50
|
fillRule: "evenodd",
|
|
50
51
|
d: "M9 4.5a.75.75 0 0 1 .721.544l.813 2.846a3.75 3.75 0 0 0 2.576 2.576l2.846.813a.75.75 0 0 1 0 1.442l-2.846.813a3.75 3.75 0 0 0-2.576 2.576l-.813 2.846a.75.75 0 0 1-1.442 0l-.813-2.846a3.75 3.75 0 0 0-2.576-2.576l-2.846-.813a.75.75 0 0 1 0-1.442l2.846-.813A3.75 3.75 0 0 0 7.466 7.89l.813-2.846A.75.75 0 0 1 9 4.5ZM18 1.5a.75.75 0 0 1 .728.568l.258 1.036c.236.94.97 1.674 1.91 1.91l1.036.258a.75.75 0 0 1 0 1.456l-1.036.258c-.94.236-1.674.97-1.91 1.91l-.258 1.036a.75.75 0 0 1-1.456 0l-.258-1.036a2.625 2.625 0 0 0-1.91-1.91l-1.036-.258a.75.75 0 0 1 0-1.456l1.036-.258a2.625 2.625 0 0 0 1.91-1.91l.258-1.036A.75.75 0 0 1 18 1.5ZM16.5 15a.75.75 0 0 1 .712.513l.394 1.183c.15.447.5.799.948.948l1.183.395a.75.75 0 0 1 0 1.422l-1.183.395c-.447.15-.799.5-.948.948l-.395 1.183a.75.75 0 0 1-1.422 0l-.395-1.183a1.5 1.5 0 0 0-.948-.948l-1.183-.395a.75.75 0 0 1 0-1.422l1.183-.395c.447-.15.799-.5.948-.948l.395-1.183A.75.75 0 0 1 16.5 15Z",
|
|
51
52
|
clipRule: "evenodd"
|
|
52
53
|
}));
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
-
function
|
|
56
|
-
var
|
|
57
|
-
if (typeof t == "string" || typeof t == "number")
|
|
55
|
+
const Ut = /* @__PURE__ */ z.forwardRef(Wt);
|
|
56
|
+
function Ve(t) {
|
|
57
|
+
var r, a, s = "";
|
|
58
|
+
if (typeof t == "string" || typeof t == "number") s += t;
|
|
58
59
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
59
|
-
var
|
|
60
|
-
for (
|
|
61
|
-
} else for (a in t) t[a] && (
|
|
62
|
-
return
|
|
60
|
+
var d = t.length;
|
|
61
|
+
for (r = 0; r < d; r++) t[r] && (a = Ve(t[r])) && (s && (s += " "), s += a);
|
|
62
|
+
} else for (a in t) t[a] && (s && (s += " "), s += a);
|
|
63
|
+
return s;
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
for (var t,
|
|
66
|
-
return
|
|
65
|
+
function Z() {
|
|
66
|
+
for (var t, r, a = 0, s = "", d = arguments.length; a < d; a++) (t = arguments[a]) && (r = Ve(t)) && (s && (s += " "), s += r);
|
|
67
|
+
return s;
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
+
const Bt = {
|
|
69
70
|
danger: "bg-error/10 text-error",
|
|
70
71
|
caution: "bg-error/10 text-error",
|
|
71
72
|
safe: "bg-neutral/10 text-neutral"
|
|
72
|
-
},
|
|
73
|
+
}, Ht = {
|
|
73
74
|
danger: "result.danger.badge",
|
|
74
75
|
caution: "result.caution.badge",
|
|
75
76
|
safe: "result.safe.badge"
|
|
76
|
-
},
|
|
77
|
+
}, Yt = {
|
|
77
78
|
sm: "text-xl font-bold",
|
|
78
79
|
lg: "text-2xl font-bold"
|
|
79
80
|
};
|
|
80
|
-
function
|
|
81
|
+
function K({
|
|
81
82
|
badgeVariant: t,
|
|
82
|
-
subtitle:
|
|
83
|
+
subtitle: r,
|
|
83
84
|
icon: a,
|
|
84
|
-
title:
|
|
85
|
-
titleSize:
|
|
86
|
-
children:
|
|
85
|
+
title: s,
|
|
86
|
+
titleSize: d = "lg",
|
|
87
|
+
children: x
|
|
87
88
|
}) {
|
|
88
|
-
const { t:
|
|
89
|
-
return /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
t && /* @__PURE__ */
|
|
89
|
+
const { t: N } = D(F);
|
|
90
|
+
return /* @__PURE__ */ b("section", { className: "rounded-2xl bg-neutral-content p-6 shadow-sm", children: [
|
|
91
|
+
/* @__PURE__ */ b("header", { className: "mb-4 flex flex-col items-start", children: [
|
|
92
|
+
t && /* @__PURE__ */ o(
|
|
92
93
|
"div",
|
|
93
94
|
{
|
|
94
|
-
className:
|
|
95
|
+
className: Z(
|
|
95
96
|
"mb-2 rounded-full px-4 py-1 text-sm font-bold",
|
|
96
|
-
|
|
97
|
+
Bt[t]
|
|
97
98
|
),
|
|
98
|
-
children:
|
|
99
|
+
children: N(Ht[t])
|
|
99
100
|
}
|
|
100
101
|
),
|
|
101
|
-
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
a && /* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
102
|
+
r && /* @__PURE__ */ o("p", { className: "mb-1 break-keep text-lg font-medium text-neutral", children: r }),
|
|
103
|
+
/* @__PURE__ */ b("div", { className: "flex items-center gap-2 text-neutral", children: [
|
|
104
|
+
a && /* @__PURE__ */ o("span", { className: "text-base", children: a }),
|
|
105
|
+
/* @__PURE__ */ o(
|
|
105
106
|
"h2",
|
|
106
107
|
{
|
|
107
|
-
className:
|
|
108
|
+
className: Z(
|
|
108
109
|
"whitespace-pre-line break-keep sm:whitespace-normal",
|
|
109
|
-
|
|
110
|
+
Yt[d]
|
|
110
111
|
),
|
|
111
|
-
children:
|
|
112
|
+
children: s
|
|
112
113
|
}
|
|
113
114
|
)
|
|
114
115
|
] })
|
|
115
116
|
] }),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ o("div", { children: x })
|
|
117
118
|
] });
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
-
const { t:
|
|
121
|
-
return t.length === 0 ? null : /* @__PURE__ */
|
|
122
|
-
|
|
120
|
+
function Zt({ summary: t }) {
|
|
121
|
+
const { t: r } = D(F);
|
|
122
|
+
return t.length === 0 ? null : /* @__PURE__ */ o(
|
|
123
|
+
K,
|
|
123
124
|
{
|
|
124
|
-
title:
|
|
125
|
-
icon: /* @__PURE__ */
|
|
126
|
-
children: /* @__PURE__ */
|
|
125
|
+
title: r("result.aiSummary"),
|
|
126
|
+
icon: /* @__PURE__ */ o(Ut, { className: "size-6" }),
|
|
127
|
+
children: /* @__PURE__ */ o("div", { children: t.map((a, s) => /* @__PURE__ */ o(
|
|
127
128
|
"p",
|
|
128
129
|
{
|
|
129
|
-
className:
|
|
130
|
+
className: Z(
|
|
130
131
|
"py-2 text-sm leading-relaxed text-neutral first:pt-0",
|
|
131
|
-
|
|
132
|
+
s < t.length - 1 && "border-b border-base-300"
|
|
132
133
|
),
|
|
133
134
|
children: a
|
|
134
135
|
},
|
|
135
|
-
`${a}-${
|
|
136
|
+
`${a}-${s}`
|
|
136
137
|
)) })
|
|
137
138
|
}
|
|
138
139
|
);
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
-
return /* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
141
|
+
function L({ title: t, content: r }) {
|
|
142
|
+
return /* @__PURE__ */ b("div", { className: "text-neutral", children: [
|
|
143
|
+
/* @__PURE__ */ o("h3", { className: "mb-1 break-keep text-lg font-semibold", children: t }),
|
|
144
|
+
/* @__PURE__ */ o("p", { className: "break-keep", children: r })
|
|
144
145
|
] });
|
|
145
146
|
}
|
|
146
|
-
function
|
|
147
|
-
const { t:
|
|
148
|
-
return t ? /* @__PURE__ */
|
|
149
|
-
|
|
147
|
+
function Kt({ data: t }) {
|
|
148
|
+
const { t: r, i18n: a } = D(F);
|
|
149
|
+
return t ? /* @__PURE__ */ o(
|
|
150
|
+
K,
|
|
150
151
|
{
|
|
151
|
-
subtitle:
|
|
152
|
-
title:
|
|
153
|
-
children: /* @__PURE__ */
|
|
154
|
-
t.market_price_range && /* @__PURE__ */
|
|
155
|
-
|
|
152
|
+
subtitle: r("result.priceAnalysis.subtitle"),
|
|
153
|
+
title: r("result.priceAnalysis.title"),
|
|
154
|
+
children: /* @__PURE__ */ b("div", { className: "space-y-4", children: [
|
|
155
|
+
t.market_price_range && /* @__PURE__ */ o(
|
|
156
|
+
L,
|
|
156
157
|
{
|
|
157
|
-
title:
|
|
158
|
+
title: r("result.marketPrice"),
|
|
158
159
|
content: t.market_price_range
|
|
159
160
|
}
|
|
160
161
|
),
|
|
161
|
-
t.offered_price && /* @__PURE__ */
|
|
162
|
-
|
|
162
|
+
t.offered_price && /* @__PURE__ */ o(
|
|
163
|
+
L,
|
|
163
164
|
{
|
|
164
|
-
title:
|
|
165
|
+
title: r("result.offeredPrice"),
|
|
165
166
|
content: new Intl.NumberFormat(a.language, {
|
|
166
167
|
style: "currency",
|
|
167
168
|
currency: t.currency || "USD"
|
|
168
169
|
}).format(t.offered_price)
|
|
169
170
|
}
|
|
170
171
|
),
|
|
171
|
-
t.price_assessment && /* @__PURE__ */
|
|
172
|
-
|
|
172
|
+
t.price_assessment && /* @__PURE__ */ o(
|
|
173
|
+
L,
|
|
173
174
|
{
|
|
174
|
-
title:
|
|
175
|
+
title: r("result.priceAssessment"),
|
|
175
176
|
content: t.price_assessment
|
|
176
177
|
}
|
|
177
178
|
)
|
|
@@ -179,21 +180,21 @@ function Yt({ data: t }) {
|
|
|
179
180
|
}
|
|
180
181
|
) : null;
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
const { t:
|
|
184
|
-
return t.length === 0 ? null : /* @__PURE__ */
|
|
185
|
-
|
|
183
|
+
function Jt({ items: t }) {
|
|
184
|
+
const { t: r } = D(F);
|
|
185
|
+
return t.length === 0 ? null : /* @__PURE__ */ o(
|
|
186
|
+
K,
|
|
186
187
|
{
|
|
187
|
-
icon: /* @__PURE__ */
|
|
188
|
-
title:
|
|
188
|
+
icon: /* @__PURE__ */ o(Mt, { className: "size-6" }),
|
|
189
|
+
title: r("result.safetyChecklist"),
|
|
189
190
|
titleSize: "sm",
|
|
190
|
-
children: /* @__PURE__ */
|
|
191
|
+
children: /* @__PURE__ */ o("div", { className: "space-y-4", children: t.map((a, s) => /* @__PURE__ */ b(
|
|
191
192
|
"label",
|
|
192
193
|
{
|
|
193
194
|
className: "label cursor-pointer gap-4 rounded-2xl bg-base-200 p-4",
|
|
194
195
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ o("span", { className: "label-text break-keep text-neutral", children: a }),
|
|
197
|
+
/* @__PURE__ */ o(
|
|
197
198
|
"input",
|
|
198
199
|
{
|
|
199
200
|
type: "checkbox",
|
|
@@ -202,343 +203,408 @@ function Zt({ items: t }) {
|
|
|
202
203
|
)
|
|
203
204
|
]
|
|
204
205
|
},
|
|
205
|
-
|
|
206
|
+
s
|
|
206
207
|
)) })
|
|
207
208
|
}
|
|
208
209
|
);
|
|
209
210
|
}
|
|
210
|
-
const
|
|
211
|
+
const qt = {
|
|
211
212
|
danger: "result.danger.title",
|
|
212
213
|
caution: "result.caution.title",
|
|
213
214
|
safe: "result.safe.title"
|
|
214
215
|
};
|
|
215
|
-
function
|
|
216
|
-
const { t: a } = D(
|
|
217
|
-
return t.length === 0 ? null : /* @__PURE__ */
|
|
218
|
-
/* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
|
|
216
|
+
function fe({ signals: t, variant: r }) {
|
|
217
|
+
const { t: a } = D(F);
|
|
218
|
+
return t.length === 0 ? null : /* @__PURE__ */ o(K, { badgeVariant: r, title: a(qt[r]), children: /* @__PURE__ */ o("div", { className: "divide-y divide-base-300", children: t.map((s, d) => /* @__PURE__ */ b("div", { className: "space-y-4 py-4 first:pt-0 last:pb-0", children: [
|
|
219
|
+
/* @__PURE__ */ o(L, { title: s.title, content: s.description }),
|
|
220
|
+
/* @__PURE__ */ o(
|
|
221
|
+
L,
|
|
221
222
|
{
|
|
222
223
|
title: a("result.whatToDo"),
|
|
223
|
-
content:
|
|
224
|
+
content: s.what_to_do
|
|
224
225
|
}
|
|
225
226
|
)
|
|
226
|
-
] },
|
|
227
|
+
] }, d)) }) });
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function Vt({
|
|
229
230
|
translation: t,
|
|
230
|
-
nuance:
|
|
231
|
+
nuance: r
|
|
231
232
|
}) {
|
|
232
|
-
const { t: a } = D(
|
|
233
|
-
return /* @__PURE__ */
|
|
234
|
-
|
|
233
|
+
const { t: a } = D(F);
|
|
234
|
+
return /* @__PURE__ */ o(
|
|
235
|
+
K,
|
|
235
236
|
{
|
|
236
237
|
subtitle: a("result.translation.subtitle"),
|
|
237
238
|
title: a("result.translation.title"),
|
|
238
|
-
children: /* @__PURE__ */
|
|
239
|
-
t && /* @__PURE__ */
|
|
240
|
-
|
|
239
|
+
children: /* @__PURE__ */ b("div", { className: "space-y-4", children: [
|
|
240
|
+
t && /* @__PURE__ */ o(
|
|
241
|
+
L,
|
|
241
242
|
{
|
|
242
243
|
title: a("result.translation.label"),
|
|
243
244
|
content: t
|
|
244
245
|
}
|
|
245
246
|
),
|
|
246
|
-
|
|
247
|
+
r && /* @__PURE__ */ o(L, { title: a("result.nuance.label"), content: r })
|
|
247
248
|
] })
|
|
248
249
|
}
|
|
249
250
|
);
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
-
return /* @__PURE__ */
|
|
253
|
-
t.ai_summary.length > 0 && /* @__PURE__ */
|
|
254
|
-
t.risk_signals.length > 0 && /* @__PURE__ */
|
|
255
|
-
t.cautions.length > 0 && /* @__PURE__ */
|
|
256
|
-
t.safe_indicators.length > 0 && /* @__PURE__ */
|
|
257
|
-
t.safety_checklist.length > 0 && /* @__PURE__ */
|
|
258
|
-
(t.translation || t.nuance_explanation) && /* @__PURE__ */
|
|
259
|
-
|
|
252
|
+
function Er({ analysis: t }) {
|
|
253
|
+
return /* @__PURE__ */ b("div", { className: "space-y-6", children: [
|
|
254
|
+
t.ai_summary.length > 0 && /* @__PURE__ */ o(Zt, { summary: t.ai_summary }),
|
|
255
|
+
t.risk_signals.length > 0 && /* @__PURE__ */ o(fe, { signals: t.risk_signals, variant: "danger" }),
|
|
256
|
+
t.cautions.length > 0 && /* @__PURE__ */ o(fe, { signals: t.cautions, variant: "caution" }),
|
|
257
|
+
t.safe_indicators.length > 0 && /* @__PURE__ */ o(fe, { signals: t.safe_indicators, variant: "safe" }),
|
|
258
|
+
t.safety_checklist.length > 0 && /* @__PURE__ */ o(Jt, { items: t.safety_checklist }),
|
|
259
|
+
(t.translation || t.nuance_explanation) && /* @__PURE__ */ o(
|
|
260
|
+
Vt,
|
|
260
261
|
{
|
|
261
262
|
translation: t.translation,
|
|
262
263
|
nuance: t.nuance_explanation
|
|
263
264
|
}
|
|
264
265
|
),
|
|
265
|
-
t.price_analysis && /* @__PURE__ */
|
|
266
|
+
t.price_analysis && /* @__PURE__ */ o(Kt, { data: t.price_analysis })
|
|
266
267
|
] });
|
|
267
268
|
}
|
|
268
|
-
var
|
|
269
|
+
var Xe = {
|
|
269
270
|
color: void 0,
|
|
270
271
|
size: void 0,
|
|
271
272
|
className: void 0,
|
|
272
273
|
style: void 0,
|
|
273
274
|
attr: void 0
|
|
274
|
-
},
|
|
275
|
-
function
|
|
275
|
+
}, Ue = T.createContext && /* @__PURE__ */ T.createContext(Xe), Xt = ["attr", "size", "title"];
|
|
276
|
+
function Gt(t, r) {
|
|
276
277
|
if (t == null) return {};
|
|
277
|
-
var a =
|
|
278
|
+
var a = Qt(t, r), s, d;
|
|
278
279
|
if (Object.getOwnPropertySymbols) {
|
|
279
|
-
var
|
|
280
|
-
for (
|
|
281
|
-
|
|
280
|
+
var x = Object.getOwnPropertySymbols(t);
|
|
281
|
+
for (d = 0; d < x.length; d++)
|
|
282
|
+
s = x[d], !(r.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(t, s) && (a[s] = t[s]);
|
|
282
283
|
}
|
|
283
284
|
return a;
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function Qt(t, r) {
|
|
286
287
|
if (t == null) return {};
|
|
287
288
|
var a = {};
|
|
288
|
-
for (var
|
|
289
|
-
if (Object.prototype.hasOwnProperty.call(t,
|
|
290
|
-
if (
|
|
291
|
-
a[
|
|
289
|
+
for (var s in t)
|
|
290
|
+
if (Object.prototype.hasOwnProperty.call(t, s)) {
|
|
291
|
+
if (r.indexOf(s) >= 0) continue;
|
|
292
|
+
a[s] = t[s];
|
|
292
293
|
}
|
|
293
294
|
return a;
|
|
294
295
|
}
|
|
295
|
-
function
|
|
296
|
-
return
|
|
297
|
-
for (var
|
|
298
|
-
var a = arguments[
|
|
299
|
-
for (var
|
|
300
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
296
|
+
function ee() {
|
|
297
|
+
return ee = Object.assign ? Object.assign.bind() : function(t) {
|
|
298
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
299
|
+
var a = arguments[r];
|
|
300
|
+
for (var s in a)
|
|
301
|
+
Object.prototype.hasOwnProperty.call(a, s) && (t[s] = a[s]);
|
|
301
302
|
}
|
|
302
303
|
return t;
|
|
303
|
-
},
|
|
304
|
+
}, ee.apply(this, arguments);
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function Be(t, r) {
|
|
306
307
|
var a = Object.keys(t);
|
|
307
308
|
if (Object.getOwnPropertySymbols) {
|
|
308
|
-
var
|
|
309
|
-
|
|
310
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
311
|
-
})), a.push.apply(a,
|
|
309
|
+
var s = Object.getOwnPropertySymbols(t);
|
|
310
|
+
r && (s = s.filter(function(d) {
|
|
311
|
+
return Object.getOwnPropertyDescriptor(t, d).enumerable;
|
|
312
|
+
})), a.push.apply(a, s);
|
|
312
313
|
}
|
|
313
314
|
return a;
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
-
for (var
|
|
317
|
-
var a = arguments[
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) :
|
|
321
|
-
Object.defineProperty(t,
|
|
316
|
+
function te(t) {
|
|
317
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
318
|
+
var a = arguments[r] != null ? arguments[r] : {};
|
|
319
|
+
r % 2 ? Be(Object(a), !0).forEach(function(s) {
|
|
320
|
+
er(t, s, a[s]);
|
|
321
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : Be(Object(a)).forEach(function(s) {
|
|
322
|
+
Object.defineProperty(t, s, Object.getOwnPropertyDescriptor(a, s));
|
|
322
323
|
});
|
|
323
324
|
}
|
|
324
325
|
return t;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
327
|
+
function er(t, r, a) {
|
|
328
|
+
return r = tr(r), r in t ? Object.defineProperty(t, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = a, t;
|
|
328
329
|
}
|
|
329
|
-
function
|
|
330
|
-
var
|
|
331
|
-
return typeof
|
|
330
|
+
function tr(t) {
|
|
331
|
+
var r = rr(t, "string");
|
|
332
|
+
return typeof r == "symbol" ? r : r + "";
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function rr(t, r) {
|
|
334
335
|
if (typeof t != "object" || !t) return t;
|
|
335
336
|
var a = t[Symbol.toPrimitive];
|
|
336
337
|
if (a !== void 0) {
|
|
337
|
-
var
|
|
338
|
-
if (typeof
|
|
338
|
+
var s = a.call(t, r);
|
|
339
|
+
if (typeof s != "object") return s;
|
|
339
340
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
340
341
|
}
|
|
341
|
-
return (
|
|
342
|
+
return (r === "string" ? String : Number)(t);
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
-
return t && t.map((
|
|
344
|
+
function Ge(t) {
|
|
345
|
+
return t && t.map((r, a) => /* @__PURE__ */ T.createElement(r.tag, te({
|
|
345
346
|
key: a
|
|
346
|
-
},
|
|
347
|
+
}, r.attr), Ge(r.child)));
|
|
347
348
|
}
|
|
348
|
-
function
|
|
349
|
-
return (
|
|
350
|
-
attr:
|
|
351
|
-
},
|
|
349
|
+
function Qe(t) {
|
|
350
|
+
return (r) => /* @__PURE__ */ T.createElement(nr, ee({
|
|
351
|
+
attr: te({}, t.attr)
|
|
352
|
+
}, r), Ge(t.child));
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
-
var
|
|
354
|
+
function nr(t) {
|
|
355
|
+
var r = (a) => {
|
|
355
356
|
var {
|
|
356
|
-
attr:
|
|
357
|
-
size:
|
|
358
|
-
title:
|
|
359
|
-
} = t,
|
|
360
|
-
return a.className && (
|
|
357
|
+
attr: s,
|
|
358
|
+
size: d,
|
|
359
|
+
title: x
|
|
360
|
+
} = t, N = Gt(t, Xt), w = d || a.size || "1em", f;
|
|
361
|
+
return a.className && (f = a.className), t.className && (f = (f ? f + " " : "") + t.className), /* @__PURE__ */ T.createElement("svg", ee({
|
|
361
362
|
stroke: "currentColor",
|
|
362
363
|
fill: "currentColor",
|
|
363
364
|
strokeWidth: "0"
|
|
364
|
-
}, a.attr,
|
|
365
|
-
className:
|
|
366
|
-
style:
|
|
365
|
+
}, a.attr, s, N, {
|
|
366
|
+
className: f,
|
|
367
|
+
style: te(te({
|
|
367
368
|
color: t.color || a.color
|
|
368
369
|
}, a.style), t.style),
|
|
369
|
-
height:
|
|
370
|
-
width:
|
|
370
|
+
height: w,
|
|
371
|
+
width: w,
|
|
371
372
|
xmlns: "http://www.w3.org/2000/svg"
|
|
372
|
-
}),
|
|
373
|
+
}), x && /* @__PURE__ */ T.createElement("title", null, x), t.children);
|
|
373
374
|
};
|
|
374
|
-
return
|
|
375
|
+
return Ue !== void 0 ? /* @__PURE__ */ T.createElement(Ue.Consumer, null, (a) => r(a)) : r(Xe);
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
377
|
+
function ar(t) {
|
|
378
|
+
return Qe({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M0 256C0 114.6 114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256L37.1 512c-13.7 0-20.5-16.5-10.9-26.2L75 437C28.7 390.7 0 326.7 0 256zM349.6 153.6c23.6 0 42.7-19.1 42.7-42.7s-19.1-42.7-42.7-42.7c-20.6 0-37.8 14.6-41.8 34c-34.5 3.7-61.4 33-61.4 68.4l0 .2c-37.5 1.6-71.8 12.3-99 29.1c-10.1-7.8-22.8-12.5-36.5-12.5c-33 0-59.8 26.8-59.8 59.8c0 24 14.1 44.6 34.4 54.1c2 69.4 77.6 125.2 170.6 125.2s168.7-55.9 170.6-125.3c20.2-9.6 34.1-30.2 34.1-54c0-33-26.8-59.8-59.8-59.8c-13.7 0-26.3 4.6-36.4 12.4c-27.4-17-62.1-27.7-100-29.1l0-.2c0-25.4 18.9-46.5 43.4-49.9l0 0c4.4 18.8 21.3 32.8 41.5 32.8zM177.1 246.9c16.7 0 29.5 17.6 28.5 39.3s-13.5 29.6-30.3 29.6s-31.4-8.8-30.4-30.5s15.4-38.3 32.1-38.3zm190.1 38.3c1 21.7-13.7 30.5-30.4 30.5s-29.3-7.9-30.3-29.6c-1-21.7 11.8-39.3 28.5-39.3s31.2 16.6 32.1 38.3zm-48.1 56.7c-10.3 24.6-34.6 41.9-63 41.9s-52.7-17.3-63-41.9c-1.2-2.9 .8-6.2 3.9-6.5c18.4-1.9 38.3-2.9 59.1-2.9s40.7 1 59.1 2.9c3.1 .3 5.1 3.6 3.9 6.5z" }, child: [] }] })(t);
|
|
378
379
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
380
|
+
function or(t) {
|
|
381
|
+
return Qe({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" }, child: [] }] })(t);
|
|
381
382
|
}
|
|
382
|
-
function
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
})
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
type: "text",
|
|
399
|
-
className: "input input-bordered h-[72px] w-full pr-36 text-sm placeholder:text-base-300 focus:outline-none",
|
|
400
|
-
placeholder: y("hero.placeholder"),
|
|
401
|
-
"aria-label": y("hero.placeholder"),
|
|
402
|
-
value: t,
|
|
403
|
-
onChange: (d) => n(d.target.value),
|
|
404
|
-
disabled: o,
|
|
405
|
-
onKeyDown: (d) => {
|
|
406
|
-
d.key === "Enter" && !v && a();
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
),
|
|
410
|
-
/* @__PURE__ */ i(
|
|
411
|
-
"button",
|
|
383
|
+
function sr({ data: t }) {
|
|
384
|
+
const r = t.images.slice(0, 3), a = r.length > 0;
|
|
385
|
+
return /* @__PURE__ */ b("div", { className: "relative rounded-l-md border-l-4 border-neutral/50 bg-base-100 px-5 py-2", children: [
|
|
386
|
+
/* @__PURE__ */ b("div", { className: "mb-3", children: [
|
|
387
|
+
/* @__PURE__ */ o("h3", { className: "mb-2 text-sm font-bold text-base-content", children: t.title }),
|
|
388
|
+
/* @__PURE__ */ b("div", { className: "flex min-w-0 items-center gap-2 text-sm text-base-content/60", children: [
|
|
389
|
+
/* @__PURE__ */ o("span", { className: "truncate", children: t.author }),
|
|
390
|
+
t.date && /* @__PURE__ */ o("span", { className: "shrink-0 whitespace-nowrap", children: t.date })
|
|
391
|
+
] })
|
|
392
|
+
] }),
|
|
393
|
+
a && /* @__PURE__ */ o("div", { className: "flex gap-2", children: r.map((s, d) => /* @__PURE__ */ o(
|
|
394
|
+
"div",
|
|
395
|
+
{
|
|
396
|
+
className: "relative size-14 overflow-hidden rounded bg-base-200",
|
|
397
|
+
children: /* @__PURE__ */ o(
|
|
398
|
+
It,
|
|
412
399
|
{
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
400
|
+
src: s,
|
|
401
|
+
alt: `Image ${d + 1} from post by ${t.author}`,
|
|
402
|
+
fill: !0,
|
|
403
|
+
className: "object-cover"
|
|
417
404
|
}
|
|
418
405
|
)
|
|
406
|
+
},
|
|
407
|
+
`${s}-${d}`
|
|
408
|
+
)) })
|
|
409
|
+
] });
|
|
410
|
+
}
|
|
411
|
+
function ir() {
|
|
412
|
+
return /* @__PURE__ */ b("div", { className: "relative border-l-4 border-base-300 bg-base-100 px-5 py-2", children: [
|
|
413
|
+
/* @__PURE__ */ b("div", { className: "mb-3", children: [
|
|
414
|
+
/* @__PURE__ */ o("div", { className: "skeleton mb-2 h-4 w-3/4" }),
|
|
415
|
+
/* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
|
|
416
|
+
/* @__PURE__ */ o("div", { className: "skeleton h-3 w-20" }),
|
|
417
|
+
/* @__PURE__ */ o("div", { className: "skeleton h-3 w-16" })
|
|
418
|
+
] })
|
|
419
|
+
] }),
|
|
420
|
+
/* @__PURE__ */ b("div", { className: "flex gap-2", children: [
|
|
421
|
+
/* @__PURE__ */ o("div", { className: "skeleton size-14 rounded" }),
|
|
422
|
+
/* @__PURE__ */ o("div", { className: "skeleton size-14 rounded" }),
|
|
423
|
+
/* @__PURE__ */ o("div", { className: "skeleton size-14 rounded" })
|
|
424
|
+
] })
|
|
425
|
+
] });
|
|
426
|
+
}
|
|
427
|
+
const lr = Ft(
|
|
428
|
+
({
|
|
429
|
+
value: t,
|
|
430
|
+
onChange: r,
|
|
431
|
+
onSubmit: a,
|
|
432
|
+
isLoading: s,
|
|
433
|
+
error: d,
|
|
434
|
+
previewData: x,
|
|
435
|
+
isLoadingPreview: N,
|
|
436
|
+
previewError: w
|
|
437
|
+
}) => {
|
|
438
|
+
const { t: f } = D(F), j = We(null), _ = We(!0), g = !t && !x && !N && !w;
|
|
439
|
+
qe(() => {
|
|
440
|
+
if (_.current && !g && j.current) {
|
|
441
|
+
j.current.focus();
|
|
442
|
+
const J = j.current.value.length;
|
|
443
|
+
j.current.setSelectionRange(J, J);
|
|
444
|
+
}
|
|
445
|
+
_.current = g;
|
|
446
|
+
}, [g]);
|
|
447
|
+
const R = s ? /* @__PURE__ */ o("span", { className: "loading loading-spinner loading-sm" }) : f("hero.checkSafety"), C = s || !t.trim();
|
|
448
|
+
return /* @__PURE__ */ o("div", { className: "flex w-full flex-col items-center justify-center", children: /* @__PURE__ */ b("div", { className: "w-full lg:max-w-3xl", children: [
|
|
449
|
+
/* @__PURE__ */ o("h1", { className: "mb-2 text-left text-3xl font-bold text-base-content sm:mb-8 sm:text-center sm:text-4xl md:mb-8", children: f("hero.title") }),
|
|
450
|
+
/* @__PURE__ */ o("p", { className: "mb-4 text-left text-sm text-base-content/70 sm:mb-8 sm:text-center sm:text-base md:mb-16", children: f("hero.subtitle") }),
|
|
451
|
+
/* @__PURE__ */ b("div", { className: Z("mb-4", !d && "sm:mb-8 md:mb-12"), children: [
|
|
452
|
+
g ? /* @__PURE__ */ o("div", { className: "hidden lg:block", children: /* @__PURE__ */ b("div", { className: "relative", children: [
|
|
453
|
+
/* @__PURE__ */ o(
|
|
454
|
+
"input",
|
|
455
|
+
{
|
|
456
|
+
type: "text",
|
|
457
|
+
className: "input input-bordered h-20 w-full pr-36 text-sm placeholder:text-base-300 focus:outline-none",
|
|
458
|
+
placeholder: f("hero.placeholder"),
|
|
459
|
+
"aria-label": f("hero.placeholder"),
|
|
460
|
+
value: t,
|
|
461
|
+
onChange: (P) => r(P.target.value),
|
|
462
|
+
disabled: s,
|
|
463
|
+
onKeyDown: (P) => {
|
|
464
|
+
P.key === "Enter" && !C && a();
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
),
|
|
468
|
+
/* @__PURE__ */ o(
|
|
469
|
+
"button",
|
|
470
|
+
{
|
|
471
|
+
className: "btn btn-neutral absolute right-2 top-1/2 h-14 min-h-0 -translate-y-1/2 !animate-none px-6 font-bold text-neutral-content",
|
|
472
|
+
onClick: a,
|
|
473
|
+
disabled: C,
|
|
474
|
+
children: R
|
|
475
|
+
}
|
|
476
|
+
)
|
|
477
|
+
] }) }) : null,
|
|
478
|
+
/* @__PURE__ */ o("div", { className: Z(g ? "block lg:hidden" : "block"), children: /* @__PURE__ */ b("div", { className: "relative flex min-h-[400px] w-full flex-col overflow-hidden rounded-xl border border-base-300 bg-base-100", children: [
|
|
479
|
+
!t && /* @__PURE__ */ o(
|
|
480
|
+
"div",
|
|
481
|
+
{
|
|
482
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden p-5 pb-24 text-base text-base-300",
|
|
483
|
+
"aria-hidden": "true",
|
|
484
|
+
children: /* @__PURE__ */ b("div", { className: "whitespace-pre-line leading-relaxed", children: [
|
|
485
|
+
/* @__PURE__ */ o("p", { className: "mb-4 text-base-300", children: f("hero.placeholder") }),
|
|
486
|
+
f("hero.placeholderExample")
|
|
487
|
+
] })
|
|
488
|
+
}
|
|
489
|
+
),
|
|
490
|
+
/* @__PURE__ */ b("div", { className: "flex flex-1 flex-col pb-24", children: [
|
|
491
|
+
/* @__PURE__ */ o(
|
|
492
|
+
"textarea",
|
|
493
|
+
{
|
|
494
|
+
ref: j,
|
|
495
|
+
className: "flex-1 resize-none overflow-auto border-none bg-transparent p-4 leading-6 text-base-content outline-none",
|
|
496
|
+
value: t,
|
|
497
|
+
"aria-label": f("hero.placeholder"),
|
|
498
|
+
onChange: (P) => r(P.target.value),
|
|
499
|
+
disabled: s,
|
|
500
|
+
placeholder: ""
|
|
501
|
+
}
|
|
502
|
+
),
|
|
503
|
+
x && /* @__PURE__ */ o("div", { className: "px-4 pb-4", children: /* @__PURE__ */ o(sr, { data: x }) }),
|
|
504
|
+
N && /* @__PURE__ */ o("div", { className: "px-4 pb-4", children: /* @__PURE__ */ o(ir, {}) }),
|
|
505
|
+
w && /* @__PURE__ */ o("div", { className: "alert alert-error mx-4 mb-4 flex w-auto items-center text-sm", children: /* @__PURE__ */ o("span", { children: w }) })
|
|
506
|
+
] }),
|
|
507
|
+
/* @__PURE__ */ o("div", { className: "absolute inset-x-4 bottom-4 z-10", children: /* @__PURE__ */ o(
|
|
508
|
+
"button",
|
|
509
|
+
{
|
|
510
|
+
className: "btn btn-neutral h-16 w-full text-base font-medium text-neutral-content",
|
|
511
|
+
onClick: a,
|
|
512
|
+
disabled: C,
|
|
513
|
+
children: R
|
|
514
|
+
}
|
|
515
|
+
) })
|
|
516
|
+
] }) })
|
|
419
517
|
] }),
|
|
420
|
-
/* @__PURE__ */
|
|
421
|
-
|
|
422
|
-
|
|
518
|
+
d && /* @__PURE__ */ o("div", { className: "alert alert-error mb-6 flex items-center gap-2 text-sm", children: /* @__PURE__ */ o("span", { children: d }) }),
|
|
519
|
+
/* @__PURE__ */ o("p", { className: "mb-4 text-left text-xs text-base-content/60 sm:mb-8 sm:text-center md:mb-12", children: f("hero.disclaimer") }),
|
|
520
|
+
/* @__PURE__ */ b("div", { className: "flex items-center justify-start gap-6 sm:justify-center", children: [
|
|
521
|
+
/* @__PURE__ */ o(
|
|
522
|
+
"a",
|
|
423
523
|
{
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
] })
|
|
524
|
+
href: "https://x.com",
|
|
525
|
+
target: "_blank",
|
|
526
|
+
rel: "noopener noreferrer",
|
|
527
|
+
"aria-label": "X",
|
|
528
|
+
children: /* @__PURE__ */ o(or, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
430
529
|
}
|
|
431
530
|
),
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
"
|
|
434
|
-
{
|
|
435
|
-
className: "textarea size-full resize-none overflow-auto bg-transparent p-4 leading-6 text-base-content focus:outline-none",
|
|
436
|
-
value: t,
|
|
437
|
-
"aria-label": y("hero.placeholder"),
|
|
438
|
-
onChange: (d) => n(d.target.value),
|
|
439
|
-
disabled: o,
|
|
440
|
-
placeholder: ""
|
|
441
|
-
}
|
|
442
|
-
) }),
|
|
443
|
-
/* @__PURE__ */ i("div", { className: "absolute inset-x-4 bottom-4 z-10", children: /* @__PURE__ */ i(
|
|
444
|
-
"button",
|
|
531
|
+
/* @__PURE__ */ o(
|
|
532
|
+
"a",
|
|
445
533
|
{
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
534
|
+
href: "https://reddit.com",
|
|
535
|
+
target: "_blank",
|
|
536
|
+
rel: "noopener noreferrer",
|
|
537
|
+
"aria-label": "Reddit",
|
|
538
|
+
children: /* @__PURE__ */ o(ar, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
450
539
|
}
|
|
451
|
-
)
|
|
452
|
-
] })
|
|
453
|
-
] })
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
"a",
|
|
469
|
-
{
|
|
470
|
-
href: "https://reddit.com",
|
|
471
|
-
target: "_blank",
|
|
472
|
-
rel: "noopener noreferrer",
|
|
473
|
-
"aria-label": "Reddit",
|
|
474
|
-
children: /* @__PURE__ */ i(tr, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
475
|
-
}
|
|
476
|
-
)
|
|
477
|
-
] })
|
|
478
|
-
] }) });
|
|
479
|
-
}
|
|
480
|
-
var ue = { exports: {} }, U = {}, Be;
|
|
481
|
-
function nr() {
|
|
482
|
-
if (Be) return U;
|
|
483
|
-
Be = 1;
|
|
484
|
-
var t = R, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
485
|
-
function w(v, d, P) {
|
|
486
|
-
var x, k = {}, E = null, Z = null;
|
|
487
|
-
P !== void 0 && (E = "" + P), d.key !== void 0 && (E = "" + d.key), d.ref !== void 0 && (Z = d.ref);
|
|
488
|
-
for (x in d) o.call(d, x) && !y.hasOwnProperty(x) && (k[x] = d[x]);
|
|
489
|
-
if (v && v.defaultProps) for (x in d = v.defaultProps, d) k[x] === void 0 && (k[x] = d[x]);
|
|
490
|
-
return { $$typeof: n, type: v, key: E, ref: Z, props: k, _owner: p.current };
|
|
540
|
+
)
|
|
541
|
+
] })
|
|
542
|
+
] }) });
|
|
543
|
+
}
|
|
544
|
+
);
|
|
545
|
+
lr.displayName = "HomeHeroSection";
|
|
546
|
+
var pe = { exports: {} }, Y = {}, He;
|
|
547
|
+
function cr() {
|
|
548
|
+
if (He) return Y;
|
|
549
|
+
He = 1;
|
|
550
|
+
var t = T, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, d = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
551
|
+
function N(w, f, j) {
|
|
552
|
+
var _, g = {}, R = null, C = null;
|
|
553
|
+
j !== void 0 && (R = "" + j), f.key !== void 0 && (R = "" + f.key), f.ref !== void 0 && (C = f.ref);
|
|
554
|
+
for (_ in f) s.call(f, _) && !x.hasOwnProperty(_) && (g[_] = f[_]);
|
|
555
|
+
if (w && w.defaultProps) for (_ in f = w.defaultProps, f) g[_] === void 0 && (g[_] = f[_]);
|
|
556
|
+
return { $$typeof: r, type: w, key: R, ref: C, props: g, _owner: d.current };
|
|
491
557
|
}
|
|
492
|
-
return
|
|
558
|
+
return Y.Fragment = a, Y.jsx = N, Y.jsxs = N, Y;
|
|
493
559
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
496
|
-
return
|
|
497
|
-
var t =
|
|
498
|
-
function
|
|
560
|
+
var Q = {}, Ye;
|
|
561
|
+
function ur() {
|
|
562
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
563
|
+
var t = T, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), N = Symbol.for("react.provider"), w = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), P = Symbol.iterator, J = "@@iterator";
|
|
564
|
+
function et(e) {
|
|
499
565
|
if (e === null || typeof e != "object")
|
|
500
566
|
return null;
|
|
501
|
-
var
|
|
502
|
-
return typeof
|
|
567
|
+
var n = P && e[P] || e[J];
|
|
568
|
+
return typeof n == "function" ? n : null;
|
|
503
569
|
}
|
|
504
|
-
var
|
|
570
|
+
var M = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
505
571
|
function S(e) {
|
|
506
572
|
{
|
|
507
|
-
for (var
|
|
508
|
-
|
|
509
|
-
|
|
573
|
+
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
|
|
574
|
+
i[l - 1] = arguments[l];
|
|
575
|
+
tt("error", e, i);
|
|
510
576
|
}
|
|
511
577
|
}
|
|
512
|
-
function
|
|
578
|
+
function tt(e, n, i) {
|
|
513
579
|
{
|
|
514
|
-
var l =
|
|
515
|
-
m !== "" && (
|
|
516
|
-
var h =
|
|
517
|
-
return String(
|
|
580
|
+
var l = M.ReactDebugCurrentFrame, m = l.getStackAddendum();
|
|
581
|
+
m !== "" && (n += "%s", i = i.concat([m]));
|
|
582
|
+
var h = i.map(function(p) {
|
|
583
|
+
return String(p);
|
|
518
584
|
});
|
|
519
|
-
h.unshift("Warning: " +
|
|
585
|
+
h.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, h);
|
|
520
586
|
}
|
|
521
587
|
}
|
|
522
|
-
var
|
|
523
|
-
|
|
524
|
-
function
|
|
525
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
588
|
+
var rt = !1, nt = !1, at = !1, ot = !1, st = !1, he;
|
|
589
|
+
he = Symbol.for("react.module.reference");
|
|
590
|
+
function it(e) {
|
|
591
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === x || st || e === d || e === j || e === _ || ot || e === C || rt || nt || at || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === g || e.$$typeof === N || e.$$typeof === w || e.$$typeof === f || // This needs to include all possible module reference object
|
|
526
592
|
// types supported by any Flight configuration anywhere since
|
|
527
593
|
// we don't know which Flight build this will end up being used
|
|
528
594
|
// with.
|
|
529
|
-
e.$$typeof ===
|
|
595
|
+
e.$$typeof === he || e.getModuleId !== void 0));
|
|
530
596
|
}
|
|
531
|
-
function
|
|
597
|
+
function lt(e, n, i) {
|
|
532
598
|
var l = e.displayName;
|
|
533
599
|
if (l)
|
|
534
600
|
return l;
|
|
535
|
-
var m =
|
|
536
|
-
return m !== "" ?
|
|
601
|
+
var m = n.displayName || n.name || "";
|
|
602
|
+
return m !== "" ? i + "(" + m + ")" : i;
|
|
537
603
|
}
|
|
538
|
-
function
|
|
604
|
+
function be(e) {
|
|
539
605
|
return e.displayName || "Context";
|
|
540
606
|
}
|
|
541
|
-
function
|
|
607
|
+
function $(e) {
|
|
542
608
|
if (e == null)
|
|
543
609
|
return null;
|
|
544
610
|
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -546,36 +612,36 @@ function ar() {
|
|
|
546
612
|
if (typeof e == "string")
|
|
547
613
|
return e;
|
|
548
614
|
switch (e) {
|
|
549
|
-
case
|
|
615
|
+
case s:
|
|
550
616
|
return "Fragment";
|
|
551
617
|
case a:
|
|
552
618
|
return "Portal";
|
|
553
|
-
case
|
|
619
|
+
case x:
|
|
554
620
|
return "Profiler";
|
|
555
|
-
case
|
|
621
|
+
case d:
|
|
556
622
|
return "StrictMode";
|
|
557
|
-
case
|
|
623
|
+
case j:
|
|
558
624
|
return "Suspense";
|
|
559
|
-
case
|
|
625
|
+
case _:
|
|
560
626
|
return "SuspenseList";
|
|
561
627
|
}
|
|
562
628
|
if (typeof e == "object")
|
|
563
629
|
switch (e.$$typeof) {
|
|
564
|
-
case v:
|
|
565
|
-
var r = e;
|
|
566
|
-
return he(r) + ".Consumer";
|
|
567
630
|
case w:
|
|
568
|
-
var
|
|
569
|
-
return
|
|
570
|
-
case
|
|
571
|
-
|
|
572
|
-
|
|
631
|
+
var n = e;
|
|
632
|
+
return be(n) + ".Consumer";
|
|
633
|
+
case N:
|
|
634
|
+
var i = e;
|
|
635
|
+
return be(i._context) + ".Provider";
|
|
636
|
+
case f:
|
|
637
|
+
return lt(e, e.render, "ForwardRef");
|
|
638
|
+
case g:
|
|
573
639
|
var l = e.displayName || null;
|
|
574
|
-
return l !== null ? l :
|
|
575
|
-
case
|
|
576
|
-
var m = e, h = m._payload,
|
|
640
|
+
return l !== null ? l : $(e.type) || "Memo";
|
|
641
|
+
case R: {
|
|
642
|
+
var m = e, h = m._payload, p = m._init;
|
|
577
643
|
try {
|
|
578
|
-
return
|
|
644
|
+
return $(p(h));
|
|
579
645
|
} catch {
|
|
580
646
|
return null;
|
|
581
647
|
}
|
|
@@ -583,14 +649,14 @@ function ar() {
|
|
|
583
649
|
}
|
|
584
650
|
return null;
|
|
585
651
|
}
|
|
586
|
-
var
|
|
652
|
+
var I = Object.assign, B = 0, ye, ge, ve, xe, _e, we, Ne;
|
|
587
653
|
function Se() {
|
|
588
654
|
}
|
|
589
655
|
Se.__reactDisabledLog = !0;
|
|
590
|
-
function
|
|
656
|
+
function ct() {
|
|
591
657
|
{
|
|
592
|
-
if (
|
|
593
|
-
ye = console.log,
|
|
658
|
+
if (B === 0) {
|
|
659
|
+
ye = console.log, ge = console.info, ve = console.warn, xe = console.error, _e = console.group, we = console.groupCollapsed, Ne = console.groupEnd;
|
|
594
660
|
var e = {
|
|
595
661
|
configurable: !0,
|
|
596
662
|
enumerable: !0,
|
|
@@ -607,277 +673,277 @@ function ar() {
|
|
|
607
673
|
groupEnd: e
|
|
608
674
|
});
|
|
609
675
|
}
|
|
610
|
-
|
|
676
|
+
B++;
|
|
611
677
|
}
|
|
612
678
|
}
|
|
613
|
-
function
|
|
679
|
+
function ut() {
|
|
614
680
|
{
|
|
615
|
-
if (
|
|
681
|
+
if (B--, B === 0) {
|
|
616
682
|
var e = {
|
|
617
683
|
configurable: !0,
|
|
618
684
|
enumerable: !0,
|
|
619
685
|
writable: !0
|
|
620
686
|
};
|
|
621
687
|
Object.defineProperties(console, {
|
|
622
|
-
log:
|
|
688
|
+
log: I({}, e, {
|
|
623
689
|
value: ye
|
|
624
690
|
}),
|
|
625
|
-
info:
|
|
626
|
-
value: be
|
|
627
|
-
}),
|
|
628
|
-
warn: z({}, e, {
|
|
691
|
+
info: I({}, e, {
|
|
629
692
|
value: ge
|
|
630
693
|
}),
|
|
631
|
-
|
|
694
|
+
warn: I({}, e, {
|
|
632
695
|
value: ve
|
|
633
696
|
}),
|
|
634
|
-
|
|
697
|
+
error: I({}, e, {
|
|
635
698
|
value: xe
|
|
636
699
|
}),
|
|
637
|
-
|
|
700
|
+
group: I({}, e, {
|
|
638
701
|
value: _e
|
|
639
702
|
}),
|
|
640
|
-
|
|
703
|
+
groupCollapsed: I({}, e, {
|
|
641
704
|
value: we
|
|
705
|
+
}),
|
|
706
|
+
groupEnd: I({}, e, {
|
|
707
|
+
value: Ne
|
|
642
708
|
})
|
|
643
709
|
});
|
|
644
710
|
}
|
|
645
|
-
|
|
711
|
+
B < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
646
712
|
}
|
|
647
713
|
}
|
|
648
|
-
var
|
|
649
|
-
function
|
|
714
|
+
var re = M.ReactCurrentDispatcher, ne;
|
|
715
|
+
function q(e, n, i) {
|
|
650
716
|
{
|
|
651
|
-
if (
|
|
717
|
+
if (ne === void 0)
|
|
652
718
|
try {
|
|
653
719
|
throw Error();
|
|
654
720
|
} catch (m) {
|
|
655
721
|
var l = m.stack.trim().match(/\n( *(at )?)/);
|
|
656
|
-
|
|
722
|
+
ne = l && l[1] || "";
|
|
657
723
|
}
|
|
658
724
|
return `
|
|
659
|
-
` +
|
|
725
|
+
` + ne + e;
|
|
660
726
|
}
|
|
661
727
|
}
|
|
662
|
-
var
|
|
728
|
+
var ae = !1, V;
|
|
663
729
|
{
|
|
664
|
-
var
|
|
665
|
-
|
|
730
|
+
var ft = typeof WeakMap == "function" ? WeakMap : Map;
|
|
731
|
+
V = new ft();
|
|
666
732
|
}
|
|
667
|
-
function
|
|
668
|
-
if (!e ||
|
|
733
|
+
function ke(e, n) {
|
|
734
|
+
if (!e || ae)
|
|
669
735
|
return "";
|
|
670
736
|
{
|
|
671
|
-
var
|
|
672
|
-
if (
|
|
673
|
-
return
|
|
737
|
+
var i = V.get(e);
|
|
738
|
+
if (i !== void 0)
|
|
739
|
+
return i;
|
|
674
740
|
}
|
|
675
741
|
var l;
|
|
676
|
-
|
|
742
|
+
ae = !0;
|
|
677
743
|
var m = Error.prepareStackTrace;
|
|
678
744
|
Error.prepareStackTrace = void 0;
|
|
679
745
|
var h;
|
|
680
|
-
h =
|
|
746
|
+
h = re.current, re.current = null, ct();
|
|
681
747
|
try {
|
|
682
|
-
if (
|
|
683
|
-
var
|
|
748
|
+
if (n) {
|
|
749
|
+
var p = function() {
|
|
684
750
|
throw Error();
|
|
685
751
|
};
|
|
686
|
-
if (Object.defineProperty(
|
|
752
|
+
if (Object.defineProperty(p.prototype, "props", {
|
|
687
753
|
set: function() {
|
|
688
754
|
throw Error();
|
|
689
755
|
}
|
|
690
756
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
691
757
|
try {
|
|
692
|
-
Reflect.construct(
|
|
693
|
-
} catch (
|
|
694
|
-
l =
|
|
758
|
+
Reflect.construct(p, []);
|
|
759
|
+
} catch (O) {
|
|
760
|
+
l = O;
|
|
695
761
|
}
|
|
696
|
-
Reflect.construct(e, [],
|
|
762
|
+
Reflect.construct(e, [], p);
|
|
697
763
|
} else {
|
|
698
764
|
try {
|
|
699
|
-
|
|
700
|
-
} catch (
|
|
701
|
-
l =
|
|
765
|
+
p.call();
|
|
766
|
+
} catch (O) {
|
|
767
|
+
l = O;
|
|
702
768
|
}
|
|
703
|
-
e.call(
|
|
769
|
+
e.call(p.prototype);
|
|
704
770
|
}
|
|
705
771
|
} else {
|
|
706
772
|
try {
|
|
707
773
|
throw Error();
|
|
708
|
-
} catch (
|
|
709
|
-
l =
|
|
774
|
+
} catch (O) {
|
|
775
|
+
l = O;
|
|
710
776
|
}
|
|
711
777
|
e();
|
|
712
778
|
}
|
|
713
|
-
} catch (
|
|
714
|
-
if (
|
|
715
|
-
for (var u =
|
|
716
|
-
`),
|
|
717
|
-
`),
|
|
718
|
-
|
|
719
|
-
for (;
|
|
720
|
-
if (u[
|
|
721
|
-
if (
|
|
779
|
+
} catch (O) {
|
|
780
|
+
if (O && l && typeof O.stack == "string") {
|
|
781
|
+
for (var u = O.stack.split(`
|
|
782
|
+
`), k = l.stack.split(`
|
|
783
|
+
`), y = u.length - 1, v = k.length - 1; y >= 1 && v >= 0 && u[y] !== k[v]; )
|
|
784
|
+
v--;
|
|
785
|
+
for (; y >= 1 && v >= 0; y--, v--)
|
|
786
|
+
if (u[y] !== k[v]) {
|
|
787
|
+
if (y !== 1 || v !== 1)
|
|
722
788
|
do
|
|
723
|
-
if (
|
|
724
|
-
var
|
|
725
|
-
` + u[
|
|
726
|
-
return e.displayName &&
|
|
789
|
+
if (y--, v--, v < 0 || u[y] !== k[v]) {
|
|
790
|
+
var E = `
|
|
791
|
+
` + u[y].replace(" at new ", " at ");
|
|
792
|
+
return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, E), E;
|
|
727
793
|
}
|
|
728
|
-
while (
|
|
794
|
+
while (y >= 1 && v >= 0);
|
|
729
795
|
break;
|
|
730
796
|
}
|
|
731
797
|
}
|
|
732
798
|
} finally {
|
|
733
|
-
|
|
799
|
+
ae = !1, re.current = h, ut(), Error.prepareStackTrace = m;
|
|
734
800
|
}
|
|
735
|
-
var
|
|
736
|
-
return typeof e == "function" &&
|
|
801
|
+
var U = e ? e.displayName || e.name : "", A = U ? q(U) : "";
|
|
802
|
+
return typeof e == "function" && V.set(e, A), A;
|
|
737
803
|
}
|
|
738
|
-
function
|
|
739
|
-
return
|
|
804
|
+
function pt(e, n, i) {
|
|
805
|
+
return ke(e, !1);
|
|
740
806
|
}
|
|
741
|
-
function
|
|
742
|
-
var
|
|
743
|
-
return !!(
|
|
807
|
+
function dt(e) {
|
|
808
|
+
var n = e.prototype;
|
|
809
|
+
return !!(n && n.isReactComponent);
|
|
744
810
|
}
|
|
745
|
-
function
|
|
811
|
+
function X(e, n, i) {
|
|
746
812
|
if (e == null)
|
|
747
813
|
return "";
|
|
748
814
|
if (typeof e == "function")
|
|
749
|
-
return
|
|
815
|
+
return ke(e, dt(e));
|
|
750
816
|
if (typeof e == "string")
|
|
751
|
-
return
|
|
817
|
+
return q(e);
|
|
752
818
|
switch (e) {
|
|
753
|
-
case
|
|
754
|
-
return
|
|
755
|
-
case
|
|
756
|
-
return
|
|
819
|
+
case j:
|
|
820
|
+
return q("Suspense");
|
|
821
|
+
case _:
|
|
822
|
+
return q("SuspenseList");
|
|
757
823
|
}
|
|
758
824
|
if (typeof e == "object")
|
|
759
825
|
switch (e.$$typeof) {
|
|
760
|
-
case
|
|
761
|
-
return
|
|
762
|
-
case
|
|
763
|
-
return
|
|
764
|
-
case
|
|
826
|
+
case f:
|
|
827
|
+
return pt(e.render);
|
|
828
|
+
case g:
|
|
829
|
+
return X(e.type, n, i);
|
|
830
|
+
case R: {
|
|
765
831
|
var l = e, m = l._payload, h = l._init;
|
|
766
832
|
try {
|
|
767
|
-
return
|
|
833
|
+
return X(h(m), n, i);
|
|
768
834
|
} catch {
|
|
769
835
|
}
|
|
770
836
|
}
|
|
771
837
|
}
|
|
772
838
|
return "";
|
|
773
839
|
}
|
|
774
|
-
var
|
|
775
|
-
function
|
|
840
|
+
var H = Object.prototype.hasOwnProperty, je = {}, Oe = M.ReactDebugCurrentFrame;
|
|
841
|
+
function G(e) {
|
|
776
842
|
if (e) {
|
|
777
|
-
var
|
|
778
|
-
|
|
843
|
+
var n = e._owner, i = X(e.type, e._source, n ? n.type : null);
|
|
844
|
+
Oe.setExtraStackFrame(i);
|
|
779
845
|
} else
|
|
780
|
-
|
|
846
|
+
Oe.setExtraStackFrame(null);
|
|
781
847
|
}
|
|
782
|
-
function
|
|
848
|
+
function mt(e, n, i, l, m) {
|
|
783
849
|
{
|
|
784
|
-
var h = Function.call.bind(
|
|
785
|
-
for (var
|
|
786
|
-
if (h(e,
|
|
850
|
+
var h = Function.call.bind(H);
|
|
851
|
+
for (var p in e)
|
|
852
|
+
if (h(e, p)) {
|
|
787
853
|
var u = void 0;
|
|
788
854
|
try {
|
|
789
|
-
if (typeof e[
|
|
790
|
-
var
|
|
791
|
-
throw
|
|
855
|
+
if (typeof e[p] != "function") {
|
|
856
|
+
var k = Error((l || "React class") + ": " + i + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
857
|
+
throw k.name = "Invariant Violation", k;
|
|
792
858
|
}
|
|
793
|
-
u = e[
|
|
794
|
-
} catch (
|
|
795
|
-
u =
|
|
859
|
+
u = e[p](n, p, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
860
|
+
} catch (y) {
|
|
861
|
+
u = y;
|
|
796
862
|
}
|
|
797
|
-
u && !(u instanceof Error) && (
|
|
863
|
+
u && !(u instanceof Error) && (G(m), S("%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).", l || "React class", i, p, typeof u), G(null)), u instanceof Error && !(u.message in je) && (je[u.message] = !0, G(m), S("Failed %s type: %s", i, u.message), G(null));
|
|
798
864
|
}
|
|
799
865
|
}
|
|
800
866
|
}
|
|
801
|
-
var
|
|
802
|
-
function
|
|
803
|
-
return
|
|
867
|
+
var ht = Array.isArray;
|
|
868
|
+
function oe(e) {
|
|
869
|
+
return ht(e);
|
|
804
870
|
}
|
|
805
|
-
function
|
|
871
|
+
function bt(e) {
|
|
806
872
|
{
|
|
807
|
-
var
|
|
808
|
-
return
|
|
873
|
+
var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
874
|
+
return i;
|
|
809
875
|
}
|
|
810
876
|
}
|
|
811
|
-
function
|
|
877
|
+
function yt(e) {
|
|
812
878
|
try {
|
|
813
|
-
return
|
|
879
|
+
return Re(e), !1;
|
|
814
880
|
} catch {
|
|
815
881
|
return !0;
|
|
816
882
|
}
|
|
817
883
|
}
|
|
818
|
-
function
|
|
884
|
+
function Re(e) {
|
|
819
885
|
return "" + e;
|
|
820
886
|
}
|
|
821
887
|
function Ee(e) {
|
|
822
|
-
if (
|
|
823
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
888
|
+
if (yt(e))
|
|
889
|
+
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(e)), Re(e);
|
|
824
890
|
}
|
|
825
|
-
var
|
|
891
|
+
var Pe = M.ReactCurrentOwner, gt = {
|
|
826
892
|
key: !0,
|
|
827
893
|
ref: !0,
|
|
828
894
|
__self: !0,
|
|
829
895
|
__source: !0
|
|
830
|
-
},
|
|
831
|
-
function
|
|
832
|
-
if (
|
|
833
|
-
var
|
|
834
|
-
if (
|
|
896
|
+
}, Te, Ce;
|
|
897
|
+
function vt(e) {
|
|
898
|
+
if (H.call(e, "ref")) {
|
|
899
|
+
var n = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
900
|
+
if (n && n.isReactWarning)
|
|
835
901
|
return !1;
|
|
836
902
|
}
|
|
837
903
|
return e.ref !== void 0;
|
|
838
904
|
}
|
|
839
|
-
function
|
|
840
|
-
if (
|
|
841
|
-
var
|
|
842
|
-
if (
|
|
905
|
+
function xt(e) {
|
|
906
|
+
if (H.call(e, "key")) {
|
|
907
|
+
var n = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
908
|
+
if (n && n.isReactWarning)
|
|
843
909
|
return !1;
|
|
844
910
|
}
|
|
845
911
|
return e.key !== void 0;
|
|
846
912
|
}
|
|
847
|
-
function
|
|
848
|
-
typeof e.ref == "string" &&
|
|
913
|
+
function _t(e, n) {
|
|
914
|
+
typeof e.ref == "string" && Pe.current;
|
|
849
915
|
}
|
|
850
|
-
function
|
|
916
|
+
function wt(e, n) {
|
|
851
917
|
{
|
|
852
|
-
var
|
|
853
|
-
|
|
918
|
+
var i = function() {
|
|
919
|
+
Te || (Te = !0, S("%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)", n));
|
|
854
920
|
};
|
|
855
|
-
|
|
856
|
-
get:
|
|
921
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
922
|
+
get: i,
|
|
857
923
|
configurable: !0
|
|
858
924
|
});
|
|
859
925
|
}
|
|
860
926
|
}
|
|
861
|
-
function
|
|
927
|
+
function Nt(e, n) {
|
|
862
928
|
{
|
|
863
|
-
var
|
|
864
|
-
|
|
929
|
+
var i = function() {
|
|
930
|
+
Ce || (Ce = !0, S("%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)", n));
|
|
865
931
|
};
|
|
866
|
-
|
|
867
|
-
get:
|
|
932
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
933
|
+
get: i,
|
|
868
934
|
configurable: !0
|
|
869
935
|
});
|
|
870
936
|
}
|
|
871
937
|
}
|
|
872
|
-
var
|
|
938
|
+
var St = function(e, n, i, l, m, h, p) {
|
|
873
939
|
var u = {
|
|
874
940
|
// This tag allows us to uniquely identify this as a React Element
|
|
875
|
-
$$typeof:
|
|
941
|
+
$$typeof: r,
|
|
876
942
|
// Built-in properties that belong on the element
|
|
877
943
|
type: e,
|
|
878
|
-
key:
|
|
879
|
-
ref:
|
|
880
|
-
props:
|
|
944
|
+
key: n,
|
|
945
|
+
ref: i,
|
|
946
|
+
props: p,
|
|
881
947
|
// Record the component responsible for creating this element.
|
|
882
948
|
_owner: h
|
|
883
949
|
};
|
|
@@ -898,41 +964,41 @@ function ar() {
|
|
|
898
964
|
value: m
|
|
899
965
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
900
966
|
};
|
|
901
|
-
function
|
|
967
|
+
function kt(e, n, i, l, m) {
|
|
902
968
|
{
|
|
903
|
-
var h,
|
|
904
|
-
|
|
905
|
-
for (h in
|
|
906
|
-
|
|
969
|
+
var h, p = {}, u = null, k = null;
|
|
970
|
+
i !== void 0 && (Ee(i), u = "" + i), xt(n) && (Ee(n.key), u = "" + n.key), vt(n) && (k = n.ref, _t(n));
|
|
971
|
+
for (h in n)
|
|
972
|
+
H.call(n, h) && !gt.hasOwnProperty(h) && (p[h] = n[h]);
|
|
907
973
|
if (e && e.defaultProps) {
|
|
908
|
-
var
|
|
909
|
-
for (h in
|
|
910
|
-
|
|
974
|
+
var y = e.defaultProps;
|
|
975
|
+
for (h in y)
|
|
976
|
+
p[h] === void 0 && (p[h] = y[h]);
|
|
911
977
|
}
|
|
912
|
-
if (u ||
|
|
913
|
-
var
|
|
914
|
-
u &&
|
|
978
|
+
if (u || k) {
|
|
979
|
+
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
980
|
+
u && wt(p, v), k && Nt(p, v);
|
|
915
981
|
}
|
|
916
|
-
return
|
|
982
|
+
return St(e, u, k, m, l, Pe.current, p);
|
|
917
983
|
}
|
|
918
984
|
}
|
|
919
|
-
var
|
|
920
|
-
function
|
|
985
|
+
var se = M.ReactCurrentOwner, $e = M.ReactDebugCurrentFrame;
|
|
986
|
+
function W(e) {
|
|
921
987
|
if (e) {
|
|
922
|
-
var
|
|
923
|
-
|
|
988
|
+
var n = e._owner, i = X(e.type, e._source, n ? n.type : null);
|
|
989
|
+
$e.setExtraStackFrame(i);
|
|
924
990
|
} else
|
|
925
|
-
|
|
991
|
+
$e.setExtraStackFrame(null);
|
|
926
992
|
}
|
|
927
|
-
var
|
|
928
|
-
|
|
929
|
-
function
|
|
930
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
993
|
+
var ie;
|
|
994
|
+
ie = !1;
|
|
995
|
+
function le(e) {
|
|
996
|
+
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
931
997
|
}
|
|
932
|
-
function
|
|
998
|
+
function ze() {
|
|
933
999
|
{
|
|
934
|
-
if (
|
|
935
|
-
var e =
|
|
1000
|
+
if (se.current) {
|
|
1001
|
+
var e = $(se.current.type);
|
|
936
1002
|
if (e)
|
|
937
1003
|
return `
|
|
938
1004
|
|
|
@@ -944,178 +1010,178 @@ Check the render method of \`` + e + "`.";
|
|
|
944
1010
|
function jt(e) {
|
|
945
1011
|
return "";
|
|
946
1012
|
}
|
|
947
|
-
var
|
|
948
|
-
function
|
|
1013
|
+
var De = {};
|
|
1014
|
+
function Ot(e) {
|
|
949
1015
|
{
|
|
950
|
-
var
|
|
951
|
-
if (!
|
|
952
|
-
var
|
|
953
|
-
|
|
1016
|
+
var n = ze();
|
|
1017
|
+
if (!n) {
|
|
1018
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
1019
|
+
i && (n = `
|
|
954
1020
|
|
|
955
|
-
Check the top-level render call using <` +
|
|
1021
|
+
Check the top-level render call using <` + i + ">.");
|
|
956
1022
|
}
|
|
957
|
-
return
|
|
1023
|
+
return n;
|
|
958
1024
|
}
|
|
959
1025
|
}
|
|
960
|
-
function
|
|
1026
|
+
function Fe(e, n) {
|
|
961
1027
|
{
|
|
962
1028
|
if (!e._store || e._store.validated || e.key != null)
|
|
963
1029
|
return;
|
|
964
1030
|
e._store.validated = !0;
|
|
965
|
-
var
|
|
966
|
-
if (
|
|
1031
|
+
var i = Ot(n);
|
|
1032
|
+
if (De[i])
|
|
967
1033
|
return;
|
|
968
|
-
|
|
1034
|
+
De[i] = !0;
|
|
969
1035
|
var l = "";
|
|
970
|
-
e && e._owner && e._owner !==
|
|
1036
|
+
e && e._owner && e._owner !== se.current && (l = " It was passed a child from " + $(e._owner.type) + "."), W(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), W(null);
|
|
971
1037
|
}
|
|
972
1038
|
}
|
|
973
|
-
function
|
|
1039
|
+
function Ie(e, n) {
|
|
974
1040
|
{
|
|
975
1041
|
if (typeof e != "object")
|
|
976
1042
|
return;
|
|
977
|
-
if (
|
|
978
|
-
for (var
|
|
979
|
-
var l = e[
|
|
980
|
-
|
|
1043
|
+
if (oe(e))
|
|
1044
|
+
for (var i = 0; i < e.length; i++) {
|
|
1045
|
+
var l = e[i];
|
|
1046
|
+
le(l) && Fe(l, n);
|
|
981
1047
|
}
|
|
982
|
-
else if (
|
|
1048
|
+
else if (le(e))
|
|
983
1049
|
e._store && (e._store.validated = !0);
|
|
984
1050
|
else if (e) {
|
|
985
|
-
var m =
|
|
1051
|
+
var m = et(e);
|
|
986
1052
|
if (typeof m == "function" && m !== e.entries)
|
|
987
|
-
for (var h = m.call(e),
|
|
988
|
-
|
|
1053
|
+
for (var h = m.call(e), p; !(p = h.next()).done; )
|
|
1054
|
+
le(p.value) && Fe(p.value, n);
|
|
989
1055
|
}
|
|
990
1056
|
}
|
|
991
1057
|
}
|
|
992
|
-
function
|
|
1058
|
+
function Rt(e) {
|
|
993
1059
|
{
|
|
994
|
-
var
|
|
995
|
-
if (
|
|
1060
|
+
var n = e.type;
|
|
1061
|
+
if (n == null || typeof n == "string")
|
|
996
1062
|
return;
|
|
997
|
-
var
|
|
998
|
-
if (typeof
|
|
999
|
-
|
|
1000
|
-
else if (typeof
|
|
1063
|
+
var i;
|
|
1064
|
+
if (typeof n == "function")
|
|
1065
|
+
i = n.propTypes;
|
|
1066
|
+
else if (typeof n == "object" && (n.$$typeof === f || // Note: Memo only checks outer props here.
|
|
1001
1067
|
// Inner props are checked in the reconciler.
|
|
1002
|
-
|
|
1003
|
-
|
|
1068
|
+
n.$$typeof === g))
|
|
1069
|
+
i = n.propTypes;
|
|
1004
1070
|
else
|
|
1005
1071
|
return;
|
|
1006
|
-
if (
|
|
1007
|
-
var l =
|
|
1008
|
-
|
|
1009
|
-
} else if (
|
|
1010
|
-
|
|
1011
|
-
var m =
|
|
1072
|
+
if (i) {
|
|
1073
|
+
var l = $(n);
|
|
1074
|
+
mt(i, e.props, "prop", l, e);
|
|
1075
|
+
} else if (n.PropTypes !== void 0 && !ie) {
|
|
1076
|
+
ie = !0;
|
|
1077
|
+
var m = $(n);
|
|
1012
1078
|
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
|
|
1013
1079
|
}
|
|
1014
|
-
typeof
|
|
1080
|
+
typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1015
1081
|
}
|
|
1016
1082
|
}
|
|
1017
|
-
function
|
|
1083
|
+
function Et(e) {
|
|
1018
1084
|
{
|
|
1019
|
-
for (var
|
|
1020
|
-
var l =
|
|
1085
|
+
for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
|
|
1086
|
+
var l = n[i];
|
|
1021
1087
|
if (l !== "children" && l !== "key") {
|
|
1022
|
-
|
|
1088
|
+
W(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), W(null);
|
|
1023
1089
|
break;
|
|
1024
1090
|
}
|
|
1025
1091
|
}
|
|
1026
|
-
e.ref !== null && (
|
|
1092
|
+
e.ref !== null && (W(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
1027
1093
|
}
|
|
1028
1094
|
}
|
|
1029
|
-
var
|
|
1030
|
-
function Le(e,
|
|
1095
|
+
var Ae = {};
|
|
1096
|
+
function Le(e, n, i, l, m, h) {
|
|
1031
1097
|
{
|
|
1032
|
-
var
|
|
1033
|
-
if (!
|
|
1098
|
+
var p = it(e);
|
|
1099
|
+
if (!p) {
|
|
1034
1100
|
var u = "";
|
|
1035
1101
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1038
|
-
var
|
|
1039
|
-
e === null ?
|
|
1102
|
+
var k = jt();
|
|
1103
|
+
k ? u += k : u += ze();
|
|
1104
|
+
var y;
|
|
1105
|
+
e === null ? y = "null" : oe(e) ? y = "array" : e !== void 0 && e.$$typeof === r ? (y = "<" + ($(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, u);
|
|
1040
1106
|
}
|
|
1041
|
-
var
|
|
1042
|
-
if (
|
|
1043
|
-
return
|
|
1044
|
-
if (
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1107
|
+
var v = kt(e, n, i, m, h);
|
|
1108
|
+
if (v == null)
|
|
1109
|
+
return v;
|
|
1110
|
+
if (p) {
|
|
1111
|
+
var E = n.children;
|
|
1112
|
+
if (E !== void 0)
|
|
1047
1113
|
if (l)
|
|
1048
|
-
if (
|
|
1049
|
-
for (var
|
|
1050
|
-
|
|
1051
|
-
Object.freeze && Object.freeze(
|
|
1114
|
+
if (oe(E)) {
|
|
1115
|
+
for (var U = 0; U < E.length; U++)
|
|
1116
|
+
Ie(E[U], e);
|
|
1117
|
+
Object.freeze && Object.freeze(E);
|
|
1052
1118
|
} else
|
|
1053
1119
|
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1054
1120
|
else
|
|
1055
|
-
|
|
1121
|
+
Ie(E, e);
|
|
1056
1122
|
}
|
|
1057
|
-
if (
|
|
1058
|
-
var A =
|
|
1123
|
+
if (H.call(n, "key")) {
|
|
1124
|
+
var A = $(e), O = Object.keys(n).filter(function(Dt) {
|
|
1059
1125
|
return Dt !== "key";
|
|
1060
|
-
}),
|
|
1061
|
-
if (!
|
|
1062
|
-
var
|
|
1126
|
+
}), ce = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1127
|
+
if (!Ae[A + ce]) {
|
|
1128
|
+
var zt = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
|
|
1063
1129
|
S(`A props object containing a "key" prop is being spread into JSX:
|
|
1064
1130
|
let props = %s;
|
|
1065
1131
|
<%s {...props} />
|
|
1066
1132
|
React keys must be passed directly to JSX without using spread:
|
|
1067
1133
|
let props = %s;
|
|
1068
|
-
<%s key={someKey} {...props} />`,
|
|
1134
|
+
<%s key={someKey} {...props} />`, ce, A, zt, A), Ae[A + ce] = !0;
|
|
1069
1135
|
}
|
|
1070
1136
|
}
|
|
1071
|
-
return e ===
|
|
1137
|
+
return e === s ? Et(v) : Rt(v), v;
|
|
1072
1138
|
}
|
|
1073
1139
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return Le(e,
|
|
1140
|
+
function Pt(e, n, i) {
|
|
1141
|
+
return Le(e, n, i, !0);
|
|
1076
1142
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return Le(e,
|
|
1143
|
+
function Tt(e, n, i) {
|
|
1144
|
+
return Le(e, n, i, !1);
|
|
1079
1145
|
}
|
|
1080
|
-
var
|
|
1081
|
-
|
|
1082
|
-
})()),
|
|
1146
|
+
var Ct = Tt, $t = Pt;
|
|
1147
|
+
Q.Fragment = s, Q.jsx = Ct, Q.jsxs = $t;
|
|
1148
|
+
})()), Q;
|
|
1083
1149
|
}
|
|
1084
|
-
var
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1150
|
+
var Ze;
|
|
1151
|
+
function fr() {
|
|
1152
|
+
return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? pe.exports = cr() : pe.exports = ur()), pe.exports;
|
|
1087
1153
|
}
|
|
1088
|
-
var
|
|
1089
|
-
function
|
|
1154
|
+
var Ke = fr();
|
|
1155
|
+
function pr({
|
|
1090
1156
|
src: t,
|
|
1091
|
-
autoplay:
|
|
1157
|
+
autoplay: r,
|
|
1092
1158
|
loop: a = !0,
|
|
1093
|
-
...
|
|
1159
|
+
...s
|
|
1094
1160
|
}) {
|
|
1095
|
-
const [
|
|
1096
|
-
return
|
|
1097
|
-
let
|
|
1098
|
-
return
|
|
1161
|
+
const [d, x] = ue(!1), [N, w] = ue(null), [f, j] = ue(!1);
|
|
1162
|
+
return qe(() => {
|
|
1163
|
+
let _ = !0;
|
|
1164
|
+
return x(!0), Promise.all([
|
|
1099
1165
|
import("./lottie-react.esm-BUHy0Xb6.mjs"),
|
|
1100
1166
|
import("./isChromatic-5i32AXac-CtZ5BKgh.mjs")
|
|
1101
|
-
]).then(([{ Player:
|
|
1102
|
-
|
|
1103
|
-
}).catch((
|
|
1104
|
-
throw console.error("[LottiePlayer] Failed to load dependencies:",
|
|
1167
|
+
]).then(([{ Player: g }, { default: R }]) => {
|
|
1168
|
+
_ && (w(() => g), j(R()));
|
|
1169
|
+
}).catch((g) => {
|
|
1170
|
+
throw console.error("[LottiePlayer] Failed to load dependencies:", g), g;
|
|
1105
1171
|
}), () => {
|
|
1106
|
-
|
|
1172
|
+
_ = !1;
|
|
1107
1173
|
};
|
|
1108
|
-
}, []), !
|
|
1109
|
-
|
|
1174
|
+
}, []), !d || !N ? /* @__PURE__ */ Ke.jsx("div", { ...s }) : /* @__PURE__ */ Ke.jsx(
|
|
1175
|
+
N,
|
|
1110
1176
|
{
|
|
1111
1177
|
src: t,
|
|
1112
1178
|
loop: a,
|
|
1113
|
-
autoplay:
|
|
1114
|
-
...
|
|
1179
|
+
autoplay: r !== void 0 ? r : !f,
|
|
1180
|
+
...s
|
|
1115
1181
|
}
|
|
1116
1182
|
);
|
|
1117
1183
|
}
|
|
1118
|
-
const
|
|
1184
|
+
const dr = {
|
|
1119
1185
|
danger: {
|
|
1120
1186
|
lottie: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f6a8/lottie.json",
|
|
1121
1187
|
webp: "https://fonts.gstatic.com/s/e/notoemoji/latest/1f6a8/512.webp",
|
|
@@ -1134,70 +1200,70 @@ const ir = {
|
|
|
1134
1200
|
gif: "https://fonts.gstatic.com/s/e/notoemoji/latest/2705/512.gif",
|
|
1135
1201
|
alt: "✅"
|
|
1136
1202
|
}
|
|
1137
|
-
},
|
|
1203
|
+
}, de = {
|
|
1138
1204
|
danger: "font-bold text-error",
|
|
1139
1205
|
caution: "font-bold text-warning",
|
|
1140
1206
|
safe: "font-bold text-success"
|
|
1141
1207
|
};
|
|
1142
|
-
function
|
|
1143
|
-
const { t: a } = D(
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
/* @__PURE__ */
|
|
1146
|
-
/* @__PURE__ */
|
|
1147
|
-
|
|
1208
|
+
function Pr({ level: t, score: r }) {
|
|
1209
|
+
const { t: a } = D(F), s = dr[t];
|
|
1210
|
+
return /* @__PURE__ */ b("div", { className: "mb-8 flex flex-col items-center text-center", children: [
|
|
1211
|
+
/* @__PURE__ */ o("div", { className: "mb-5 rounded-full bg-neutral/75 px-4 py-1.5", children: /* @__PURE__ */ o("span", { className: "text-sm font-medium text-neutral-content", children: a(`result.safetyLevel.${t}.badge`) }) }),
|
|
1212
|
+
/* @__PURE__ */ o("h1", { className: "mb-9 break-keep text-4xl font-bold leading-tight text-base-content", children: /* @__PURE__ */ o(
|
|
1213
|
+
Me,
|
|
1148
1214
|
{
|
|
1149
1215
|
t: a,
|
|
1150
1216
|
i18nKey: `result.safetyLevel.${t}.title`,
|
|
1151
|
-
components: [/* @__PURE__ */
|
|
1217
|
+
components: [/* @__PURE__ */ o("strong", { className: de[t] }, "0")]
|
|
1152
1218
|
}
|
|
1153
1219
|
) }),
|
|
1154
|
-
/* @__PURE__ */
|
|
1155
|
-
/* @__PURE__ */
|
|
1156
|
-
|
|
1220
|
+
/* @__PURE__ */ o("div", { className: "mb-9 flex size-32 items-center justify-center", children: /* @__PURE__ */ o(pr, { src: s.lottie, autoplay: !0, loop: !0, className: "size-full" }) }),
|
|
1221
|
+
/* @__PURE__ */ o("p", { className: "max-w-md break-keep text-xl leading-relaxed text-base-content", children: /* @__PURE__ */ o(
|
|
1222
|
+
Me,
|
|
1157
1223
|
{
|
|
1158
1224
|
t: a,
|
|
1159
1225
|
i18nKey: `result.safetyLevel.${t}.description`,
|
|
1160
|
-
values: { score:
|
|
1226
|
+
values: { score: r },
|
|
1161
1227
|
components: [
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1228
|
+
/* @__PURE__ */ o("strong", { className: de[t] }, "0"),
|
|
1229
|
+
/* @__PURE__ */ o("strong", { className: de[t] }, "1")
|
|
1164
1230
|
]
|
|
1165
1231
|
}
|
|
1166
1232
|
) })
|
|
1167
1233
|
] });
|
|
1168
1234
|
}
|
|
1169
|
-
const
|
|
1235
|
+
const Je = {
|
|
1170
1236
|
safe: 70,
|
|
1171
1237
|
caution: 40
|
|
1172
|
-
},
|
|
1238
|
+
}, Tr = (t) => t >= Je.safe ? "safe" : t >= Je.caution ? "caution" : "danger", me = c.object({
|
|
1173
1239
|
category: c.enum(["payment", "seller", "platform", "price", "content"]),
|
|
1174
1240
|
severity: c.enum(["high", "medium", "low"]),
|
|
1175
1241
|
title: c.string(),
|
|
1176
1242
|
description: c.string(),
|
|
1177
1243
|
what_to_do: c.string()
|
|
1178
|
-
}),
|
|
1244
|
+
}), mr = c.object({
|
|
1179
1245
|
market_price_range: c.string().nullish(),
|
|
1180
1246
|
offered_price: c.number().nullish(),
|
|
1181
1247
|
currency: c.string().nullish(),
|
|
1182
1248
|
price_assessment: c.string(),
|
|
1183
1249
|
warnings: c.array(c.string())
|
|
1184
|
-
}),
|
|
1250
|
+
}), hr = c.object({
|
|
1185
1251
|
ai_summary: c.array(c.string()),
|
|
1186
1252
|
translation: c.string().nullish(),
|
|
1187
1253
|
nuance_explanation: c.string().nullish(),
|
|
1188
|
-
risk_signals: c.array(
|
|
1189
|
-
cautions: c.array(
|
|
1190
|
-
safe_indicators: c.array(
|
|
1191
|
-
price_analysis:
|
|
1254
|
+
risk_signals: c.array(me),
|
|
1255
|
+
cautions: c.array(me),
|
|
1256
|
+
safe_indicators: c.array(me),
|
|
1257
|
+
price_analysis: mr,
|
|
1192
1258
|
safety_checklist: c.array(c.string()),
|
|
1193
1259
|
safe_score: c.number(),
|
|
1194
1260
|
recommendation: c.string(),
|
|
1195
1261
|
emotional_support: c.string()
|
|
1196
|
-
}),
|
|
1262
|
+
}), br = c.object({
|
|
1197
1263
|
id: c.string(),
|
|
1198
1264
|
user_id: c.string().nullish(),
|
|
1199
1265
|
input_text: c.string(),
|
|
1200
|
-
llm_analysis:
|
|
1266
|
+
llm_analysis: hr,
|
|
1201
1267
|
safe_score: c.number(),
|
|
1202
1268
|
expert_advice: c.string().nullish(),
|
|
1203
1269
|
expert_reviewed: c.boolean(),
|
|
@@ -1205,45 +1271,45 @@ const He = {
|
|
|
1205
1271
|
expert_reviewed_by: c.string().nullish(),
|
|
1206
1272
|
created_at: c.string(),
|
|
1207
1273
|
updated_at: c.string()
|
|
1208
|
-
}),
|
|
1209
|
-
platform:
|
|
1274
|
+
}), yr = c.enum(["twitter", "reddit"]), gr = c.object({
|
|
1275
|
+
platform: yr,
|
|
1210
1276
|
author: c.string(),
|
|
1211
1277
|
created_at: c.string().nullish(),
|
|
1212
1278
|
text: c.string(),
|
|
1213
1279
|
text_preview: c.string(),
|
|
1214
1280
|
images: c.array(c.string())
|
|
1215
|
-
}),
|
|
1216
|
-
data:
|
|
1281
|
+
}), vr = c.object({
|
|
1282
|
+
data: gr
|
|
1217
1283
|
});
|
|
1218
|
-
class
|
|
1284
|
+
class Cr extends At {
|
|
1219
1285
|
constructor() {
|
|
1220
1286
|
super(...arguments), this.resource = "trade-safety";
|
|
1221
1287
|
}
|
|
1222
1288
|
getDataSchema() {
|
|
1223
|
-
return
|
|
1289
|
+
return br;
|
|
1224
1290
|
}
|
|
1225
1291
|
/**
|
|
1226
1292
|
* Fetch post preview metadata from a social media URL
|
|
1227
1293
|
* POST /trade-safety/preview
|
|
1228
1294
|
*/
|
|
1229
|
-
async fetchPreview(
|
|
1230
|
-
const
|
|
1295
|
+
async fetchPreview(r, a) {
|
|
1296
|
+
const s = `${this.apiService.buildUrl(this.resource)}/preview`, d = await this.apiService.request(s, {
|
|
1231
1297
|
...a,
|
|
1232
1298
|
method: "POST",
|
|
1233
1299
|
headers: { "Content-Type": "application/json" },
|
|
1234
|
-
body: JSON.stringify({ url:
|
|
1300
|
+
body: JSON.stringify({ url: r })
|
|
1235
1301
|
});
|
|
1236
|
-
return this.validateResponse(
|
|
1302
|
+
return this.validateResponse(d, vr).data;
|
|
1237
1303
|
}
|
|
1238
1304
|
}
|
|
1239
1305
|
export {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1306
|
+
Er as DetailedResult,
|
|
1307
|
+
lr as HomeHeroSection,
|
|
1308
|
+
Pr as PageHeader,
|
|
1309
|
+
Je as SAFETY_SCORE_THRESHOLDS,
|
|
1310
|
+
F as TRADE_SAFETY_NS,
|
|
1311
|
+
Cr as TradeSafetyRepository,
|
|
1312
|
+
Tr as getSafetyLevel,
|
|
1313
|
+
Dr as tradeSafetyTranslations
|
|
1248
1314
|
};
|
|
1249
1315
|
//# sourceMappingURL=index.mjs.map
|