trade-safety 1.1.3 → 1.3.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/DetailedResult/AnalysisCard.d.ts +9 -0
- package/dist/components/DetailedResult/AnalysisCard.d.ts.map +1 -0
- package/dist/components/DetailedResult/PriceAnalysisSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/RecommendationSection.d.ts +2 -3
- package/dist/components/DetailedResult/RecommendationSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/SafetyChecklistSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/SignalsSection.d.ts +8 -0
- package/dist/components/DetailedResult/SignalsSection.d.ts.map +1 -0
- package/dist/components/DetailedResult/TranslationSection.d.ts +1 -1
- package/dist/components/DetailedResult/TranslationSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/index.d.ts +1 -4
- package/dist/components/DetailedResult/index.d.ts.map +1 -1
- package/dist/components/HomeHeroSection.d.ts +9 -0
- package/dist/components/HomeHeroSection.d.ts.map +1 -0
- package/dist/i18n/translations.d.ts +12 -0
- package/dist/i18n/translations.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +415 -648
- package/dist/index.mjs.map +1 -1
- package/dist/locale.js +43 -43
- package/dist/locale.js.map +1 -1
- package/dist/locale.mjs +69 -69
- package/dist/repositories/TradeSafetyRepository.d.ts +27 -69
- package/dist/repositories/TradeSafetyRepository.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/components/DetailedResult/CautionsSection.d.ts +0 -7
- package/dist/components/DetailedResult/CautionsSection.d.ts.map +0 -1
- package/dist/components/DetailedResult/CompanionCtaSection.d.ts +0 -2
- package/dist/components/DetailedResult/CompanionCtaSection.d.ts.map +0 -1
- package/dist/components/DetailedResult/ExpertAdviceSection.d.ts +0 -6
- package/dist/components/DetailedResult/ExpertAdviceSection.d.ts.map +0 -1
- package/dist/components/DetailedResult/RiskScoreHero.d.ts +0 -6
- package/dist/components/DetailedResult/RiskScoreHero.d.ts.map +0 -1
- package/dist/components/DetailedResult/RiskSignalsSection.d.ts +0 -7
- package/dist/components/DetailedResult/RiskSignalsSection.d.ts.map +0 -1
- package/dist/components/DetailedResult/SafeIndicatorsSection.d.ts +0 -7
- package/dist/components/DetailedResult/SafeIndicatorsSection.d.ts.map +0 -1
- package/dist/components/QuickResultTeaser.d.ts +0 -8
- package/dist/components/QuickResultTeaser.d.ts.map +0 -1
- package/dist/components/RiskSignalCard.d.ts +0 -8
- package/dist/components/RiskSignalCard.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,739 +1,507 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useTranslation as o } from "react-i18next";
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as h } from "react-i18next";
|
|
4
3
|
import "i18next";
|
|
5
4
|
import "i18next-resources-to-backend";
|
|
6
|
-
import { TRADE_SAFETY_NS as
|
|
7
|
-
import { tradeSafetyTranslations as
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
import { BaseCrudRepository as
|
|
11
|
-
import { z as
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
fill: "currentColor",
|
|
21
|
-
"aria-hidden": "true",
|
|
22
|
-
"data-slot": "icon",
|
|
23
|
-
ref: n,
|
|
24
|
-
"aria-labelledby": r
|
|
25
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
26
|
-
id: r
|
|
27
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
28
|
-
fillRule: "evenodd",
|
|
29
|
-
d: "M4.804 21.644A6.707 6.707 0 0 0 6 21.75a6.721 6.721 0 0 0 3.583-1.029c.774.182 1.584.279 2.417.279 5.322 0 9.75-3.97 9.75-9 0-5.03-4.428-9-9.75-9s-9.75 3.97-9.75 9c0 2.409 1.025 4.587 2.674 6.192.232.226.277.428.254.543a3.73 3.73 0 0 1-.814 1.686.75.75 0 0 0 .44 1.223ZM8.25 10.875a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25ZM10.875 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875-1.125a1.125 1.125 0 1 0 0 2.25 1.125 1.125 0 0 0 0-2.25Z",
|
|
30
|
-
clipRule: "evenodd"
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
const y = /* @__PURE__ */ l.forwardRef(N);
|
|
34
|
-
function R({
|
|
35
|
-
title: e,
|
|
36
|
-
titleId: r,
|
|
37
|
-
...a
|
|
38
|
-
}, n) {
|
|
39
|
-
return /* @__PURE__ */ l.createElement("svg", Object.assign({
|
|
40
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
-
viewBox: "0 0 24 24",
|
|
42
|
-
fill: "currentColor",
|
|
43
|
-
"aria-hidden": "true",
|
|
44
|
-
"data-slot": "icon",
|
|
45
|
-
ref: n,
|
|
46
|
-
"aria-labelledby": r
|
|
47
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
48
|
-
id: r
|
|
49
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
50
|
-
fillRule: "evenodd",
|
|
51
|
-
d: "M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
|
|
52
|
-
clipRule: "evenodd"
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
const _ = /* @__PURE__ */ l.forwardRef(R);
|
|
56
|
-
function E({
|
|
57
|
-
title: e,
|
|
58
|
-
titleId: r,
|
|
59
|
-
...a
|
|
60
|
-
}, n) {
|
|
61
|
-
return /* @__PURE__ */ l.createElement("svg", Object.assign({
|
|
62
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
63
|
-
viewBox: "0 0 24 24",
|
|
64
|
-
fill: "currentColor",
|
|
65
|
-
"aria-hidden": "true",
|
|
66
|
-
"data-slot": "icon",
|
|
67
|
-
ref: n,
|
|
68
|
-
"aria-labelledby": r
|
|
69
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
70
|
-
id: r
|
|
71
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
72
|
-
fillRule: "evenodd",
|
|
73
|
-
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
|
|
74
|
-
clipRule: "evenodd"
|
|
75
|
-
}));
|
|
76
|
-
}
|
|
77
|
-
const k = /* @__PURE__ */ l.forwardRef(E);
|
|
78
|
-
function C({
|
|
79
|
-
title: e,
|
|
80
|
-
titleId: r,
|
|
81
|
-
...a
|
|
82
|
-
}, n) {
|
|
83
|
-
return /* @__PURE__ */ l.createElement("svg", Object.assign({
|
|
84
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
85
|
-
viewBox: "0 0 24 24",
|
|
86
|
-
fill: "currentColor",
|
|
87
|
-
"aria-hidden": "true",
|
|
88
|
-
"data-slot": "icon",
|
|
89
|
-
ref: n,
|
|
90
|
-
"aria-labelledby": r
|
|
91
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
92
|
-
id: r
|
|
93
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
94
|
-
fillRule: "evenodd",
|
|
95
|
-
d: "M7.502 6h7.128A3.375 3.375 0 0 1 18 9.375v9.375a3 3 0 0 0 3-3V6.108c0-1.505-1.125-2.811-2.664-2.94a48.972 48.972 0 0 0-.673-.05A3 3 0 0 0 15 1.5h-1.5a3 3 0 0 0-2.663 1.618c-.225.015-.45.032-.673.05C8.662 3.295 7.554 4.542 7.502 6ZM13.5 3A1.5 1.5 0 0 0 12 4.5h4.5A1.5 1.5 0 0 0 15 3h-1.5Z",
|
|
96
|
-
clipRule: "evenodd"
|
|
97
|
-
}), /* @__PURE__ */ l.createElement("path", {
|
|
98
|
-
fillRule: "evenodd",
|
|
99
|
-
d: "M3 9.375C3 8.339 3.84 7.5 4.875 7.5h9.75c1.036 0 1.875.84 1.875 1.875v11.25c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625V9.375Zm9.586 4.594a.75.75 0 0 0-1.172-.938l-2.476 3.096-.908-.907a.75.75 0 0 0-1.06 1.06l1.5 1.5a.75.75 0 0 0 1.116-.062l3-3.75Z",
|
|
100
|
-
clipRule: "evenodd"
|
|
101
|
-
}));
|
|
5
|
+
import { TRADE_SAFETY_NS as f } from "./locale.mjs";
|
|
6
|
+
import { tradeSafetyTranslations as be } from "./locale.mjs";
|
|
7
|
+
import * as o from "react";
|
|
8
|
+
import m from "react";
|
|
9
|
+
import { BaseCrudRepository as R } from "@aioia/core";
|
|
10
|
+
import { z as l } from "zod";
|
|
11
|
+
function _(e) {
|
|
12
|
+
var t, r, n = "";
|
|
13
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
14
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
15
|
+
var s = e.length;
|
|
16
|
+
for (t = 0; t < s; t++) e[t] && (r = _(e[t])) && (n && (n += " "), n += r);
|
|
17
|
+
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
18
|
+
return n;
|
|
102
19
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
titleId: r,
|
|
107
|
-
...a
|
|
108
|
-
}, n) {
|
|
109
|
-
return /* @__PURE__ */ l.createElement("svg", Object.assign({
|
|
110
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
111
|
-
viewBox: "0 0 24 24",
|
|
112
|
-
fill: "currentColor",
|
|
113
|
-
"aria-hidden": "true",
|
|
114
|
-
"data-slot": "icon",
|
|
115
|
-
ref: n,
|
|
116
|
-
"aria-labelledby": r
|
|
117
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
118
|
-
id: r
|
|
119
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
120
|
-
d: "M10.464 8.746c.227-.18.497-.311.786-.394v2.795a2.252 2.252 0 0 1-.786-.393c-.394-.313-.546-.681-.546-1.004 0-.323.152-.691.546-1.004ZM12.75 15.662v-2.824c.347.085.664.228.921.421.427.32.579.686.579.991 0 .305-.152.671-.579.991a2.534 2.534 0 0 1-.921.42Z"
|
|
121
|
-
}), /* @__PURE__ */ l.createElement("path", {
|
|
122
|
-
fillRule: "evenodd",
|
|
123
|
-
d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25ZM12.75 6a.75.75 0 0 0-1.5 0v.816a3.836 3.836 0 0 0-1.72.756c-.712.566-1.112 1.35-1.112 2.178 0 .829.4 1.612 1.113 2.178.502.4 1.102.647 1.719.756v2.978a2.536 2.536 0 0 1-.921-.421l-.879-.66a.75.75 0 0 0-.9 1.2l.879.66c.533.4 1.169.645 1.821.75V18a.75.75 0 0 0 1.5 0v-.81a4.124 4.124 0 0 0 1.821-.749c.745-.559 1.179-1.344 1.179-2.191 0-.847-.434-1.632-1.179-2.191a4.122 4.122 0 0 0-1.821-.75V8.354c.29.082.559.213.786.393l.415.33a.75.75 0 0 0 .933-1.175l-.415-.33a3.836 3.836 0 0 0-1.719-.755V6Z",
|
|
124
|
-
clipRule: "evenodd"
|
|
125
|
-
}));
|
|
20
|
+
function O() {
|
|
21
|
+
for (var e, t, r = 0, n = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = _(e)) && (n && (n += " "), n += t);
|
|
22
|
+
return n;
|
|
126
23
|
}
|
|
127
|
-
const
|
|
128
|
-
|
|
24
|
+
const k = {
|
|
25
|
+
default: "border-base-300",
|
|
26
|
+
error: "border-error bg-error/10",
|
|
27
|
+
warning: "border-warning bg-warning/10",
|
|
28
|
+
success: "border-success bg-success/10",
|
|
29
|
+
info: "border-info bg-info/10"
|
|
30
|
+
};
|
|
31
|
+
function p({
|
|
129
32
|
title: e,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
142
|
-
id: r
|
|
143
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
144
|
-
fillRule: "evenodd",
|
|
145
|
-
d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
146
|
-
clipRule: "evenodd"
|
|
147
|
-
}));
|
|
33
|
+
icon: t,
|
|
34
|
+
variant: r = "default",
|
|
35
|
+
children: n
|
|
36
|
+
}) {
|
|
37
|
+
return n ? /* @__PURE__ */ i("div", { className: O("rounded-lg border p-6", k[r]), children: [
|
|
38
|
+
e && /* @__PURE__ */ i("h2", { className: "mb-2 flex items-center gap-2 font-bold", children: [
|
|
39
|
+
e,
|
|
40
|
+
t
|
|
41
|
+
] }),
|
|
42
|
+
n
|
|
43
|
+
] }) : null;
|
|
148
44
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
title:
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
clipRule: "evenodd"
|
|
169
|
-
}));
|
|
45
|
+
function C({ data: e }) {
|
|
46
|
+
const { t, i18n: r } = h(f);
|
|
47
|
+
return e ? /* @__PURE__ */ i(p, { title: t("result.priceAnalysis"), children: [
|
|
48
|
+
e.market_price_range && /* @__PURE__ */ i("div", { className: "mb-2", children: [
|
|
49
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: t("result.marketPrice") }),
|
|
50
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: e.market_price_range })
|
|
51
|
+
] }),
|
|
52
|
+
e.offered_price && /* @__PURE__ */ i("div", { className: "mb-2", children: [
|
|
53
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: t("result.offeredPrice") }),
|
|
54
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: new Intl.NumberFormat(r.language, {
|
|
55
|
+
style: "currency",
|
|
56
|
+
currency: e.currency || "USD"
|
|
57
|
+
}).format(e.offered_price) })
|
|
58
|
+
] }),
|
|
59
|
+
e.price_assessment && /* @__PURE__ */ i("div", { children: [
|
|
60
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: t("result.priceAssessment") }),
|
|
61
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: e.price_assessment })
|
|
62
|
+
] })
|
|
63
|
+
] }) : null;
|
|
170
64
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, n) {
|
|
177
|
-
return /* @__PURE__ */ l.createElement("svg", Object.assign({
|
|
178
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
179
|
-
viewBox: "0 0 24 24",
|
|
180
|
-
fill: "currentColor",
|
|
181
|
-
"aria-hidden": "true",
|
|
182
|
-
"data-slot": "icon",
|
|
183
|
-
ref: n,
|
|
184
|
-
"aria-labelledby": r
|
|
185
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
186
|
-
id: r
|
|
187
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
188
|
-
d: "m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z"
|
|
189
|
-
}));
|
|
65
|
+
function P({
|
|
66
|
+
recommendation: e
|
|
67
|
+
}) {
|
|
68
|
+
const { t } = h(f);
|
|
69
|
+
return e ? /* @__PURE__ */ a(p, { title: t("result.recommendation"), children: /* @__PURE__ */ a("p", { className: "text-xs", children: e }) }) : null;
|
|
190
70
|
}
|
|
191
|
-
const O = /* @__PURE__ */ l.forwardRef(B);
|
|
192
71
|
function z({
|
|
193
72
|
title: e,
|
|
194
|
-
titleId:
|
|
195
|
-
...
|
|
73
|
+
titleId: t,
|
|
74
|
+
...r
|
|
196
75
|
}, n) {
|
|
197
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ o.createElement("svg", Object.assign({
|
|
198
77
|
xmlns: "http://www.w3.org/2000/svg",
|
|
199
78
|
viewBox: "0 0 24 24",
|
|
200
79
|
fill: "currentColor",
|
|
201
80
|
"aria-hidden": "true",
|
|
202
81
|
"data-slot": "icon",
|
|
203
82
|
ref: n,
|
|
204
|
-
"aria-labelledby":
|
|
205
|
-
},
|
|
206
|
-
id:
|
|
207
|
-
}, e) : null, /* @__PURE__ */
|
|
83
|
+
"aria-labelledby": t
|
|
84
|
+
}, r), e ? /* @__PURE__ */ o.createElement("title", {
|
|
85
|
+
id: t
|
|
86
|
+
}, e) : null, /* @__PURE__ */ o.createElement("path", {
|
|
208
87
|
fillRule: "evenodd",
|
|
209
|
-
d: "
|
|
88
|
+
d: "M8.603 3.799A4.49 4.49 0 0 1 12 2.25c1.357 0 2.573.6 3.397 1.549a4.49 4.49 0 0 1 3.498 1.307 4.491 4.491 0 0 1 1.307 3.497A4.49 4.49 0 0 1 21.75 12a4.49 4.49 0 0 1-1.549 3.397 4.491 4.491 0 0 1-1.307 3.497 4.491 4.491 0 0 1-3.497 1.307A4.49 4.49 0 0 1 12 21.75a4.49 4.49 0 0 1-3.397-1.549 4.49 4.49 0 0 1-3.498-1.306 4.491 4.491 0 0 1-1.307-3.498A4.49 4.49 0 0 1 2.25 12c0-1.357.6-2.573 1.549-3.397a4.49 4.49 0 0 1 1.307-3.497 4.49 4.49 0 0 1 3.497-1.307Zm7.007 6.387a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",
|
|
210
89
|
clipRule: "evenodd"
|
|
211
90
|
}));
|
|
212
91
|
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
92
|
+
const T = /* @__PURE__ */ o.forwardRef(z);
|
|
93
|
+
function A({
|
|
215
94
|
title: e,
|
|
216
|
-
titleId:
|
|
217
|
-
...
|
|
95
|
+
titleId: t,
|
|
96
|
+
...r
|
|
218
97
|
}, n) {
|
|
219
|
-
return /* @__PURE__ */
|
|
98
|
+
return /* @__PURE__ */ o.createElement("svg", Object.assign({
|
|
220
99
|
xmlns: "http://www.w3.org/2000/svg",
|
|
221
100
|
viewBox: "0 0 24 24",
|
|
222
101
|
fill: "currentColor",
|
|
223
102
|
"aria-hidden": "true",
|
|
224
103
|
"data-slot": "icon",
|
|
225
104
|
ref: n,
|
|
226
|
-
"aria-labelledby":
|
|
227
|
-
},
|
|
228
|
-
id:
|
|
229
|
-
}, e) : null, /* @__PURE__ */
|
|
105
|
+
"aria-labelledby": t
|
|
106
|
+
}, r), e ? /* @__PURE__ */ o.createElement("title", {
|
|
107
|
+
id: t
|
|
108
|
+
}, e) : null, /* @__PURE__ */ o.createElement("path", {
|
|
230
109
|
fillRule: "evenodd",
|
|
231
|
-
d: "M9
|
|
110
|
+
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",
|
|
232
111
|
clipRule: "evenodd"
|
|
233
112
|
}));
|
|
234
113
|
}
|
|
235
|
-
const
|
|
236
|
-
function
|
|
114
|
+
const D = /* @__PURE__ */ o.forwardRef(A);
|
|
115
|
+
function M({
|
|
237
116
|
title: e,
|
|
238
|
-
titleId:
|
|
239
|
-
...
|
|
117
|
+
titleId: t,
|
|
118
|
+
...r
|
|
240
119
|
}, n) {
|
|
241
|
-
return /* @__PURE__ */
|
|
120
|
+
return /* @__PURE__ */ o.createElement("svg", Object.assign({
|
|
242
121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
243
122
|
viewBox: "0 0 24 24",
|
|
244
123
|
fill: "currentColor",
|
|
245
124
|
"aria-hidden": "true",
|
|
246
125
|
"data-slot": "icon",
|
|
247
126
|
ref: n,
|
|
248
|
-
"aria-labelledby":
|
|
249
|
-
},
|
|
250
|
-
id:
|
|
251
|
-
}, e) : null, /* @__PURE__ */
|
|
252
|
-
d: "M12 .75a8.25 8.25 0 0 0-4.135 15.39c.686.398 1.115 1.008 1.134 1.623a.75.75 0 0 0 .577.706c.352.083.71.148 1.074.195.323.041.6-.218.6-.544v-4.661a6.714 6.714 0 0 1-.937-.171.75.75 0 1 1 .374-1.453 5.261 5.261 0 0 0 2.626 0 .75.75 0 1 1 .374 1.452 6.712 6.712 0 0 1-.937.172v4.66c0 .327.277.586.6.545.364-.047.722-.112 1.074-.195a.75.75 0 0 0 .577-.706c.02-.615.448-1.225 1.134-1.623A8.25 8.25 0 0 0 12 .75Z"
|
|
253
|
-
}), /* @__PURE__ */ l.createElement("path", {
|
|
127
|
+
"aria-labelledby": t
|
|
128
|
+
}, r), e ? /* @__PURE__ */ o.createElement("title", {
|
|
129
|
+
id: t
|
|
130
|
+
}, e) : null, /* @__PURE__ */ o.createElement("path", {
|
|
254
131
|
fillRule: "evenodd",
|
|
255
|
-
d: "
|
|
132
|
+
d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-2.625 6c-.54 0-.828.419-.936.634a1.96 1.96 0 0 0-.189.866c0 .298.059.605.189.866.108.215.395.634.936.634.54 0 .828-.419.936-.634.13-.26.189-.568.189-.866 0-.298-.059-.605-.189-.866-.108-.215-.395-.634-.936-.634Zm4.314.634c.108-.215.395-.634.936-.634.54 0 .828.419.936.634.13.26.189.568.189.866 0 .298-.059.605-.189.866-.108.215-.395.634-.936.634-.54 0-.828-.419-.936-.634a1.96 1.96 0 0 1-.189-.866c0-.298.059-.605.189-.866Zm-4.34 7.964a.75.75 0 0 1-1.061-1.06 5.236 5.236 0 0 1 3.73-1.538 5.236 5.236 0 0 1 3.695 1.538.75.75 0 1 1-1.061 1.06 3.736 3.736 0 0 0-2.639-1.098 3.736 3.736 0 0 0-2.664 1.098Z",
|
|
256
133
|
clipRule: "evenodd"
|
|
257
134
|
}));
|
|
258
135
|
}
|
|
259
|
-
const
|
|
260
|
-
function
|
|
136
|
+
const Z = /* @__PURE__ */ o.forwardRef(M);
|
|
137
|
+
function B({
|
|
261
138
|
title: e,
|
|
262
|
-
titleId:
|
|
263
|
-
...
|
|
139
|
+
titleId: t,
|
|
140
|
+
...r
|
|
264
141
|
}, n) {
|
|
265
|
-
return /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ o.createElement("svg", Object.assign({
|
|
266
143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
267
144
|
viewBox: "0 0 24 24",
|
|
268
145
|
fill: "currentColor",
|
|
269
146
|
"aria-hidden": "true",
|
|
270
147
|
"data-slot": "icon",
|
|
271
148
|
ref: n,
|
|
272
|
-
"aria-labelledby":
|
|
273
|
-
},
|
|
274
|
-
id:
|
|
275
|
-
}, e) : null, /* @__PURE__ */
|
|
149
|
+
"aria-labelledby": t
|
|
150
|
+
}, r), e ? /* @__PURE__ */ o.createElement("title", {
|
|
151
|
+
id: t
|
|
152
|
+
}, e) : null, /* @__PURE__ */ o.createElement("path", {
|
|
276
153
|
fillRule: "evenodd",
|
|
277
154
|
d: "M11.484 2.17a.75.75 0 0 1 1.032 0 11.209 11.209 0 0 0 7.877 3.08.75.75 0 0 1 .722.515 12.74 12.74 0 0 1 .635 3.985c0 5.942-4.064 10.933-9.563 12.348a.749.749 0 0 1-.374 0C6.314 20.683 2.25 15.692 2.25 9.75c0-1.39.223-2.73.635-3.985a.75.75 0 0 1 .722-.516l.143.001c2.996 0 5.718-1.17 7.734-3.08ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75ZM12 15a.75.75 0 0 0-.75.75v.008c0 .414.336.75.75.75h.008a.75.75 0 0 0 .75-.75v-.008a.75.75 0 0 0-.75-.75H12Z",
|
|
278
155
|
clipRule: "evenodd"
|
|
279
156
|
}));
|
|
280
157
|
}
|
|
281
|
-
const
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
viewBox: "0 0 24 24",
|
|
290
|
-
fill: "currentColor",
|
|
291
|
-
"aria-hidden": "true",
|
|
292
|
-
"data-slot": "icon",
|
|
293
|
-
ref: n,
|
|
294
|
-
"aria-labelledby": r
|
|
295
|
-
}, a), e ? /* @__PURE__ */ l.createElement("title", {
|
|
296
|
-
id: r
|
|
297
|
-
}, e) : null, /* @__PURE__ */ l.createElement("path", {
|
|
298
|
-
fillRule: "evenodd",
|
|
299
|
-
d: "M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z",
|
|
300
|
-
clipRule: "evenodd"
|
|
301
|
-
}));
|
|
302
|
-
}
|
|
303
|
-
const U = /* @__PURE__ */ l.forwardRef(V);
|
|
304
|
-
function b(e) {
|
|
305
|
-
var r, a, n = "";
|
|
306
|
-
if (typeof e == "string" || typeof e == "number") n += e;
|
|
307
|
-
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
308
|
-
var m = e.length;
|
|
309
|
-
for (r = 0; r < m; r++) e[r] && (a = b(e[r])) && (n && (n += " "), n += a);
|
|
310
|
-
} else for (a in e) e[a] && (n && (n += " "), n += a);
|
|
311
|
-
return n;
|
|
312
|
-
}
|
|
313
|
-
function u() {
|
|
314
|
-
for (var e, r, a = 0, n = "", m = arguments.length; a < m; a++) (e = arguments[a]) && (r = b(e)) && (n && (n += " "), n += r);
|
|
315
|
-
return n;
|
|
316
|
-
}
|
|
317
|
-
const q = {
|
|
318
|
-
error: "bg-error/10 border-error/30",
|
|
319
|
-
warning: "bg-warning/10 border-warning/30",
|
|
320
|
-
success: "bg-success/10 border-success/30"
|
|
321
|
-
}, P = {
|
|
322
|
-
error: "text-error",
|
|
323
|
-
warning: "text-warning",
|
|
324
|
-
success: "text-success"
|
|
325
|
-
}, K = {
|
|
326
|
-
high: j,
|
|
327
|
-
medium: g,
|
|
328
|
-
low: F
|
|
329
|
-
};
|
|
330
|
-
function p({
|
|
331
|
-
signal: e,
|
|
332
|
-
variant: r = "error"
|
|
333
|
-
}) {
|
|
334
|
-
const { t: a } = o(d), n = K[e.severity];
|
|
335
|
-
return /* @__PURE__ */ t(
|
|
336
|
-
"div",
|
|
337
|
-
{
|
|
338
|
-
className: u("card border-2 backdrop-blur-sm", q[r]),
|
|
339
|
-
children: /* @__PURE__ */ t("div", { className: "card-body", children: /* @__PURE__ */ i("div", { className: "flex items-start gap-4", children: [
|
|
340
|
-
/* @__PURE__ */ t(n, { className: u("mt-1 size-8 shrink-0", P[r]) }),
|
|
341
|
-
/* @__PURE__ */ i("div", { className: "flex-1", children: [
|
|
342
|
-
/* @__PURE__ */ t("h4", { className: "card-title text-xl", children: e.title }),
|
|
343
|
-
/* @__PURE__ */ t("p", { className: "mt-2 text-base-content/70", children: e.description }),
|
|
344
|
-
/* @__PURE__ */ i("div", { className: "mt-4 rounded-lg bg-base-100/50 p-4", children: [
|
|
345
|
-
/* @__PURE__ */ i("p", { className: "mb-2 text-sm font-semibold", children: [
|
|
346
|
-
"💡 ",
|
|
347
|
-
a("result.whatToDo")
|
|
348
|
-
] }),
|
|
349
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children: e.what_to_do })
|
|
350
|
-
] })
|
|
351
|
-
] })
|
|
352
|
-
] }) })
|
|
353
|
-
}
|
|
354
|
-
);
|
|
355
|
-
}
|
|
356
|
-
function Q({ cautions: e }) {
|
|
357
|
-
const { t: r } = o(d);
|
|
358
|
-
return e.length === 0 ? null : /* @__PURE__ */ i("section", { children: [
|
|
359
|
-
/* @__PURE__ */ i("h3", { className: "mb-6 flex items-center gap-3 text-3xl font-bold", children: [
|
|
360
|
-
/* @__PURE__ */ t(g, { className: "size-10 text-warning" }),
|
|
361
|
-
r("result.cautions")
|
|
158
|
+
const F = /* @__PURE__ */ o.forwardRef(B);
|
|
159
|
+
function H({ items: e }) {
|
|
160
|
+
const { t } = h(f);
|
|
161
|
+
return e.length === 0 ? null : /* @__PURE__ */ i("div", { className: "mb-4", children: [
|
|
162
|
+
/* @__PURE__ */ i("h2", { className: "flex items-center gap-1 py-4 font-bold", children: [
|
|
163
|
+
t("result.safetyChecklist"),
|
|
164
|
+
" ",
|
|
165
|
+
/* @__PURE__ */ a(T, { className: "size-6" })
|
|
362
166
|
] }),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
)) })
|
|
167
|
+
/* @__PURE__ */ a(p, { variant: "info", children: e.map((r, n) => /* @__PURE__ */ i("label", { className: "label w-fit cursor-pointer gap-2", children: [
|
|
168
|
+
/* @__PURE__ */ a(
|
|
169
|
+
"input",
|
|
170
|
+
{
|
|
171
|
+
type: "checkbox",
|
|
172
|
+
className: "checkbox rounded-full [--chkbg:theme(colors.neutral)] [--chkfg:theme(colors.neutral-content)]"
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ a("span", { className: "label-text", children: r })
|
|
176
|
+
] }, n)) })
|
|
374
177
|
] });
|
|
375
178
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
{
|
|
398
|
-
whileHover: { scale: 1.02 },
|
|
399
|
-
className: "card bg-secondary text-secondary-content shadow-xl",
|
|
400
|
-
children: /* @__PURE__ */ i("div", { className: "card-body", children: [
|
|
401
|
-
/* @__PURE__ */ i("div", { className: "mb-6 flex items-center gap-4", children: [
|
|
402
|
-
/* @__PURE__ */ t("div", { className: "avatar placeholder", children: /* @__PURE__ */ t("div", { className: "w-16 rounded-full bg-primary text-primary-content", children: /* @__PURE__ */ t(U, { className: "size-8" }) }) }),
|
|
403
|
-
/* @__PURE__ */ i("div", { children: [
|
|
404
|
-
/* @__PURE__ */ t("h3", { className: "text-2xl font-bold", children: r("result.expertAdvice") }),
|
|
405
|
-
/* @__PURE__ */ t("p", { className: "opacity-80", children: r("result.expertName") })
|
|
406
|
-
] })
|
|
407
|
-
] }),
|
|
408
|
-
/* @__PURE__ */ t("div", { className: "prose max-w-none", children: /* @__PURE__ */ t("p", { className: "whitespace-pre-wrap text-lg", children: e }) })
|
|
409
|
-
] })
|
|
410
|
-
}
|
|
411
|
-
);
|
|
412
|
-
}
|
|
413
|
-
function G({ data: e }) {
|
|
414
|
-
const { t: r, i18n: a } = o(d);
|
|
415
|
-
return e ? /* @__PURE__ */ i("section", { children: [
|
|
416
|
-
/* @__PURE__ */ i("h3", { className: "mb-6 flex items-center gap-3 text-3xl font-bold", children: [
|
|
417
|
-
/* @__PURE__ */ t(M, { className: "size-10 text-secondary" }),
|
|
418
|
-
r("result.priceAnalysis")
|
|
179
|
+
const I = {
|
|
180
|
+
error: Z,
|
|
181
|
+
warning: D,
|
|
182
|
+
success: F
|
|
183
|
+
}, L = {
|
|
184
|
+
error: "result.riskSignals",
|
|
185
|
+
warning: "result.cautions",
|
|
186
|
+
success: "result.safeIndicators"
|
|
187
|
+
};
|
|
188
|
+
function v({
|
|
189
|
+
signals: e,
|
|
190
|
+
variant: t = "error"
|
|
191
|
+
}) {
|
|
192
|
+
const { t: r } = h(f);
|
|
193
|
+
if (e.length === 0) return null;
|
|
194
|
+
const n = I[t];
|
|
195
|
+
return /* @__PURE__ */ i("div", { className: "mb-4", children: [
|
|
196
|
+
/* @__PURE__ */ i("h2", { className: "flex items-center gap-1 py-4 font-bold", children: [
|
|
197
|
+
r(L[t]),
|
|
198
|
+
" ",
|
|
199
|
+
/* @__PURE__ */ a(n, { className: "size-6" })
|
|
419
200
|
] }),
|
|
420
|
-
/* @__PURE__ */
|
|
421
|
-
/* @__PURE__ */ i("div", {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
/* @__PURE__ */ t("p", { className: "text-2xl font-bold", children: e.market_price_range })
|
|
425
|
-
] }),
|
|
426
|
-
e.offered_price && /* @__PURE__ */ i("div", { children: [
|
|
427
|
-
/* @__PURE__ */ t("h4", { className: "mb-2 text-lg font-semibold", children: r("result.offeredPrice") }),
|
|
428
|
-
/* @__PURE__ */ t("p", { className: "text-2xl font-bold text-primary", children: new Intl.NumberFormat(a.language, {
|
|
429
|
-
style: "currency",
|
|
430
|
-
currency: e.currency || "USD"
|
|
431
|
-
}).format(e.offered_price) })
|
|
432
|
-
] })
|
|
433
|
-
] }),
|
|
434
|
-
/* @__PURE__ */ i("div", { className: "mt-6 rounded-lg bg-base-100 p-4", children: [
|
|
435
|
-
/* @__PURE__ */ t("h4", { className: "mb-2 text-lg font-semibold", children: r("result.priceAssessment") }),
|
|
436
|
-
/* @__PURE__ */ t("p", { className: "text-base-content/70", children: e.price_assessment })
|
|
201
|
+
/* @__PURE__ */ a("div", { className: "space-y-3", children: e.map((s, c) => /* @__PURE__ */ a(p, { variant: t, children: /* @__PURE__ */ i("div", { className: "space-y-2", children: [
|
|
202
|
+
/* @__PURE__ */ i("div", { children: [
|
|
203
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: s.title }),
|
|
204
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: s.description })
|
|
437
205
|
] }),
|
|
438
|
-
|
|
439
|
-
/* @__PURE__ */
|
|
440
|
-
|
|
441
|
-
r("result.priceWarnings")
|
|
442
|
-
] }),
|
|
443
|
-
/* @__PURE__ */ t("ul", { className: "list-inside list-disc space-y-1", children: e.warnings.map((n, m) => /* @__PURE__ */ t("li", { className: "text-base-content/70", children: n }, m)) })
|
|
206
|
+
/* @__PURE__ */ i("div", { children: [
|
|
207
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: r("result.whatToDo") }),
|
|
208
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: s.what_to_do })
|
|
444
209
|
] })
|
|
445
|
-
] }) })
|
|
446
|
-
] }) : null;
|
|
447
|
-
}
|
|
448
|
-
function J({
|
|
449
|
-
recommendation: e,
|
|
450
|
-
emotionalSupport: r
|
|
451
|
-
}) {
|
|
452
|
-
const { t: a } = o(d);
|
|
453
|
-
return /* @__PURE__ */ i("section", { children: [
|
|
454
|
-
/* @__PURE__ */ i("h3", { className: "mb-6 flex items-center gap-3 text-3xl font-bold", children: [
|
|
455
|
-
/* @__PURE__ */ t(L, { className: "size-10 text-warning" }),
|
|
456
|
-
a("result.recommendation")
|
|
457
|
-
] }),
|
|
458
|
-
/* @__PURE__ */ t("div", { className: "card bg-base-200 shadow-xl", children: /* @__PURE__ */ i("div", { className: "card-body", children: [
|
|
459
|
-
/* @__PURE__ */ t("div", { className: "prose max-w-none", children: /* @__PURE__ */ t("p", { className: "whitespace-pre-wrap text-lg text-base-content/70", children: e }) }),
|
|
460
|
-
/* @__PURE__ */ t("div", { className: "divider" }),
|
|
461
|
-
/* @__PURE__ */ t("div", { className: "rounded-lg bg-base-100 p-4", children: /* @__PURE__ */ i("p", { className: "flex items-center gap-2 text-lg font-medium", children: [
|
|
462
|
-
/* @__PURE__ */ t(O, { className: "size-6 text-info" }),
|
|
463
|
-
" ",
|
|
464
|
-
r
|
|
465
|
-
] }) })
|
|
466
|
-
] }) })
|
|
210
|
+
] }) }, c)) })
|
|
467
211
|
] });
|
|
468
212
|
}
|
|
469
|
-
function
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
function ee({ score: e }) {
|
|
473
|
-
const { t: r } = o(d), a = X(e), { Icon: n } = a, m = {
|
|
474
|
-
error: "text-error",
|
|
475
|
-
warning: "text-warning",
|
|
476
|
-
success: "text-success"
|
|
477
|
-
};
|
|
478
|
-
return /* @__PURE__ */ t("div", { className: "hero min-h-[40vh] rounded-3xl bg-base-200", children: /* @__PURE__ */ t("div", { className: "hero-content text-center", children: /* @__PURE__ */ i("div", { children: [
|
|
479
|
-
/* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(n, { className: u("size-32", m[a.color]) }) }),
|
|
480
|
-
/* @__PURE__ */ t("h2", { className: "mb-4 text-5xl font-bold", children: r(`result.riskLevel.${a.level}.title`) }),
|
|
481
|
-
/* @__PURE__ */ t("div", { className: "mx-auto w-64", children: /* @__PURE__ */ t(
|
|
482
|
-
"div",
|
|
483
|
-
{
|
|
484
|
-
className: u("radial-progress", m[a.color]),
|
|
485
|
-
style: {
|
|
486
|
-
"--value": e,
|
|
487
|
-
"--size": "12rem",
|
|
488
|
-
"--thickness": "1rem"
|
|
489
|
-
},
|
|
490
|
-
role: "progressbar",
|
|
491
|
-
children: /* @__PURE__ */ t("span", { className: "text-5xl font-bold", children: e })
|
|
492
|
-
}
|
|
493
|
-
) }),
|
|
494
|
-
/* @__PURE__ */ t("p", { className: "mt-6 max-w-lg text-xl text-base-content/70", children: r(`result.riskLevel.${a.level}.message`) })
|
|
495
|
-
] }) }) });
|
|
496
|
-
}
|
|
497
|
-
function te({ signals: e }) {
|
|
498
|
-
const { t: r } = o(d);
|
|
499
|
-
return e.length === 0 ? null : /* @__PURE__ */ i("section", { children: [
|
|
500
|
-
/* @__PURE__ */ i("h3", { className: "mb-6 flex items-center gap-3 text-3xl font-bold", children: [
|
|
501
|
-
/* @__PURE__ */ t(x, { className: "size-10 text-error" }),
|
|
502
|
-
r("result.riskSignals")
|
|
503
|
-
] }),
|
|
504
|
-
/* @__PURE__ */ t("div", { className: "space-y-4", children: e.map((a, n) => /* @__PURE__ */ t(
|
|
505
|
-
s.div,
|
|
506
|
-
{
|
|
507
|
-
initial: { x: -50, opacity: 0 },
|
|
508
|
-
animate: { x: 0, opacity: 1 },
|
|
509
|
-
transition: { delay: n * 0.1 },
|
|
510
|
-
whileHover: { scale: 1.02, x: 10 },
|
|
511
|
-
children: /* @__PURE__ */ t(p, { signal: a, variant: "error" })
|
|
512
|
-
},
|
|
513
|
-
n
|
|
514
|
-
)) })
|
|
515
|
-
] });
|
|
516
|
-
}
|
|
517
|
-
function re({
|
|
518
|
-
indicators: e
|
|
213
|
+
function K({
|
|
214
|
+
translation: e,
|
|
215
|
+
nuance: t
|
|
519
216
|
}) {
|
|
520
|
-
const { t: r } =
|
|
521
|
-
return
|
|
522
|
-
/* @__PURE__ */ i("
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
|
|
217
|
+
const { t: r } = h(f);
|
|
218
|
+
return /* @__PURE__ */ i(p, { title: r("result.translation"), children: [
|
|
219
|
+
e && /* @__PURE__ */ i("div", { className: "mb-2", children: [
|
|
220
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: r("result.translationTitle") }),
|
|
221
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: e })
|
|
525
222
|
] }),
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
|
|
528
|
-
{
|
|
529
|
-
|
|
530
|
-
animate: { x: 0, opacity: 1 },
|
|
531
|
-
transition: { delay: n * 0.1 },
|
|
532
|
-
whileHover: { scale: 1.02, x: 10 },
|
|
533
|
-
children: /* @__PURE__ */ t(p, { signal: a, variant: "success" })
|
|
534
|
-
},
|
|
535
|
-
n
|
|
536
|
-
)) })
|
|
223
|
+
t && /* @__PURE__ */ i("div", { children: [
|
|
224
|
+
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: r("result.nuanceTitle") }),
|
|
225
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: t })
|
|
226
|
+
] })
|
|
537
227
|
] });
|
|
538
228
|
}
|
|
539
|
-
function
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
r("result.safetyChecklist")
|
|
545
|
-
] }),
|
|
546
|
-
/* @__PURE__ */ t("div", { className: "card border-2 border-primary/30 bg-base-200", children: /* @__PURE__ */ i("div", { className: "card-body", children: [
|
|
547
|
-
/* @__PURE__ */ t("p", { className: "mb-6 text-lg text-base-content/70", children: r("result.checklistDescription") }),
|
|
548
|
-
/* @__PURE__ */ t("div", { className: "space-y-3", children: e.map((a, n) => /* @__PURE__ */ i(
|
|
549
|
-
s.label,
|
|
229
|
+
function de({ analysis: e }) {
|
|
230
|
+
return /* @__PURE__ */ i("div", { children: [
|
|
231
|
+
/* @__PURE__ */ i("div", { className: "mb-4 flex flex-col gap-4", children: [
|
|
232
|
+
(e.translation || e.nuance_explanation) && /* @__PURE__ */ a(
|
|
233
|
+
K,
|
|
550
234
|
{
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
"input",
|
|
558
|
-
{
|
|
559
|
-
type: "checkbox",
|
|
560
|
-
className: "checkbox-primary checkbox mt-1"
|
|
561
|
-
}
|
|
562
|
-
),
|
|
563
|
-
/* @__PURE__ */ t("span", { className: "text-lg", children: a })
|
|
564
|
-
]
|
|
565
|
-
},
|
|
566
|
-
n
|
|
567
|
-
)) })
|
|
568
|
-
] }) })
|
|
569
|
-
] });
|
|
570
|
-
}
|
|
571
|
-
function ne({
|
|
572
|
-
translation: e,
|
|
573
|
-
nuance: r
|
|
574
|
-
}) {
|
|
575
|
-
const { t: a } = o(d);
|
|
576
|
-
return !e && !r ? null : /* @__PURE__ */ i("section", { children: [
|
|
577
|
-
/* @__PURE__ */ i("h3", { className: "mb-6 flex items-center gap-3 text-3xl font-bold", children: [
|
|
578
|
-
/* @__PURE__ */ t(T, { className: "size-10 text-primary" }),
|
|
579
|
-
a("result.translation")
|
|
235
|
+
translation: e.translation,
|
|
236
|
+
nuance: e.nuance_explanation
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
e.price_analysis && /* @__PURE__ */ a(C, { data: e.price_analysis }),
|
|
240
|
+
e.recommendation && /* @__PURE__ */ a(P, { recommendation: e.recommendation })
|
|
580
241
|
] }),
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
] }),
|
|
586
|
-
r && /* @__PURE__ */ i("div", { children: [
|
|
587
|
-
/* @__PURE__ */ t("h4", { className: "mb-2 text-lg font-semibold", children: a("result.nuanceTitle") }),
|
|
588
|
-
/* @__PURE__ */ t("p", { className: "whitespace-pre-wrap text-base-content/70", children: r })
|
|
589
|
-
] })
|
|
590
|
-
] }) })
|
|
242
|
+
e.risk_signals.length > 0 && /* @__PURE__ */ a(v, { signals: e.risk_signals, variant: "error" }),
|
|
243
|
+
e.cautions.length > 0 && /* @__PURE__ */ a(v, { signals: e.cautions, variant: "warning" }),
|
|
244
|
+
e.safe_indicators.length > 0 && /* @__PURE__ */ a(v, { signals: e.safe_indicators, variant: "success" }),
|
|
245
|
+
e.safety_checklist.length > 0 && /* @__PURE__ */ a(H, { items: e.safety_checklist })
|
|
591
246
|
] });
|
|
592
247
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
248
|
+
var S = {
|
|
249
|
+
color: void 0,
|
|
250
|
+
size: void 0,
|
|
251
|
+
className: void 0,
|
|
252
|
+
style: void 0,
|
|
253
|
+
attr: void 0
|
|
254
|
+
}, y = m.createContext && /* @__PURE__ */ m.createContext(S), W = ["attr", "size", "title"];
|
|
255
|
+
function $(e, t) {
|
|
256
|
+
if (e == null) return {};
|
|
257
|
+
var r = V(e, t), n, s;
|
|
258
|
+
if (Object.getOwnPropertySymbols) {
|
|
259
|
+
var c = Object.getOwnPropertySymbols(e);
|
|
260
|
+
for (s = 0; s < c.length; s++)
|
|
261
|
+
n = c[s], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
599
262
|
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
263
|
+
return r;
|
|
264
|
+
}
|
|
265
|
+
function V(e, t) {
|
|
266
|
+
if (e == null) return {};
|
|
267
|
+
var r = {};
|
|
268
|
+
for (var n in e)
|
|
269
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
270
|
+
if (t.indexOf(n) >= 0) continue;
|
|
271
|
+
r[n] = e[n];
|
|
272
|
+
}
|
|
273
|
+
return r;
|
|
274
|
+
}
|
|
275
|
+
function g() {
|
|
276
|
+
return g = Object.assign ? Object.assign.bind() : function(e) {
|
|
277
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
278
|
+
var r = arguments[t];
|
|
279
|
+
for (var n in r)
|
|
280
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
604
281
|
}
|
|
282
|
+
return e;
|
|
283
|
+
}, g.apply(this, arguments);
|
|
284
|
+
}
|
|
285
|
+
function N(e, t) {
|
|
286
|
+
var r = Object.keys(e);
|
|
287
|
+
if (Object.getOwnPropertySymbols) {
|
|
288
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
289
|
+
t && (n = n.filter(function(s) {
|
|
290
|
+
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
291
|
+
})), r.push.apply(r, n);
|
|
605
292
|
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
293
|
+
return r;
|
|
294
|
+
}
|
|
295
|
+
function x(e) {
|
|
296
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
297
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
298
|
+
t % 2 ? N(Object(r), !0).forEach(function(n) {
|
|
299
|
+
X(e, n, r[n]);
|
|
300
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : N(Object(r)).forEach(function(n) {
|
|
301
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
return e;
|
|
305
|
+
}
|
|
306
|
+
function X(e, t, r) {
|
|
307
|
+
return t = G(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
308
|
+
}
|
|
309
|
+
function G(e) {
|
|
310
|
+
var t = U(e, "string");
|
|
311
|
+
return typeof t == "symbol" ? t : t + "";
|
|
312
|
+
}
|
|
313
|
+
function U(e, t) {
|
|
314
|
+
if (typeof e != "object" || !e) return e;
|
|
315
|
+
var r = e[Symbol.toPrimitive];
|
|
316
|
+
if (r !== void 0) {
|
|
317
|
+
var n = r.call(e, t);
|
|
318
|
+
if (typeof n != "object") return n;
|
|
319
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
320
|
+
}
|
|
321
|
+
return (t === "string" ? String : Number)(e);
|
|
322
|
+
}
|
|
323
|
+
function j(e) {
|
|
324
|
+
return e && e.map((t, r) => /* @__PURE__ */ m.createElement(t.tag, x({
|
|
325
|
+
key: r
|
|
326
|
+
}, t.attr), j(t.child)));
|
|
327
|
+
}
|
|
328
|
+
function E(e) {
|
|
329
|
+
return (t) => /* @__PURE__ */ m.createElement(Y, g({
|
|
330
|
+
attr: x({}, e.attr)
|
|
331
|
+
}, t), j(e.child));
|
|
332
|
+
}
|
|
333
|
+
function Y(e) {
|
|
334
|
+
var t = (r) => {
|
|
335
|
+
var {
|
|
336
|
+
attr: n,
|
|
337
|
+
size: s,
|
|
338
|
+
title: c
|
|
339
|
+
} = e, b = $(e, W), u = s || r.size || "1em", d;
|
|
340
|
+
return r.className && (d = r.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ m.createElement("svg", g({
|
|
341
|
+
stroke: "currentColor",
|
|
342
|
+
fill: "currentColor",
|
|
343
|
+
strokeWidth: "0"
|
|
344
|
+
}, r.attr, n, b, {
|
|
345
|
+
className: d,
|
|
346
|
+
style: x(x({
|
|
347
|
+
color: e.color || r.color
|
|
348
|
+
}, r.style), e.style),
|
|
349
|
+
height: u,
|
|
350
|
+
width: u,
|
|
351
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
352
|
+
}), c && /* @__PURE__ */ m.createElement("title", null, c), e.children);
|
|
353
|
+
};
|
|
354
|
+
return y !== void 0 ? /* @__PURE__ */ m.createElement(y.Consumer, null, (r) => t(r)) : t(S);
|
|
355
|
+
}
|
|
356
|
+
function q(e) {
|
|
357
|
+
return E({ 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: [] }] })(e);
|
|
358
|
+
}
|
|
359
|
+
function J(e) {
|
|
360
|
+
return E({ 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: [] }] })(e);
|
|
361
|
+
}
|
|
362
|
+
function me({
|
|
363
|
+
value: e,
|
|
364
|
+
onChange: t,
|
|
365
|
+
onSubmit: r,
|
|
366
|
+
isLoading: n,
|
|
367
|
+
error: s
|
|
611
368
|
}) {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
{
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
/* @__PURE__ */ t(s.div, { variants: h, children: /* @__PURE__ */ t(ee, { score: e.risk_score }) }),
|
|
621
|
-
(e.translation || e.nuance_explanation) && /* @__PURE__ */ t(s.div, { variants: h, children: /* @__PURE__ */ t(
|
|
622
|
-
ne,
|
|
369
|
+
const { t: c } = h(f), b = n ? /* @__PURE__ */ a("span", { className: "loading loading-spinner loading-sm" }) : c("hero.checkSafety"), u = n || !e.trim();
|
|
370
|
+
return /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center justify-center", children: /* @__PURE__ */ i("div", { className: "w-full lg:max-w-[720px]", children: [
|
|
371
|
+
/* @__PURE__ */ a("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: c("hero.title") }),
|
|
372
|
+
/* @__PURE__ */ a("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: c("hero.subtitle") }),
|
|
373
|
+
/* @__PURE__ */ i("div", { className: O("mb-4", !s && "sm:mb-8 md:mb-12"), children: [
|
|
374
|
+
/* @__PURE__ */ i("div", { className: "relative hidden lg:block", children: [
|
|
375
|
+
/* @__PURE__ */ a(
|
|
376
|
+
"input",
|
|
623
377
|
{
|
|
624
|
-
|
|
625
|
-
|
|
378
|
+
type: "text",
|
|
379
|
+
className: "input input-bordered h-[72px] w-full pr-36 text-sm placeholder:text-base-300 focus:outline-none",
|
|
380
|
+
placeholder: c("hero.placeholder"),
|
|
381
|
+
"aria-label": c("hero.placeholder"),
|
|
382
|
+
value: e,
|
|
383
|
+
onChange: (d) => t(d.target.value),
|
|
384
|
+
disabled: n,
|
|
385
|
+
onKeyDown: (d) => {
|
|
386
|
+
d.key === "Enter" && !u && r();
|
|
387
|
+
}
|
|
626
388
|
}
|
|
627
|
-
)
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
389
|
+
),
|
|
390
|
+
/* @__PURE__ */ a(
|
|
391
|
+
"button",
|
|
392
|
+
{
|
|
393
|
+
className: "btn btn-neutral absolute right-2 top-1/2 h-[56px] min-h-0 -translate-y-1/2 !animate-none px-6 font-bold text-neutral-content",
|
|
394
|
+
onClick: r,
|
|
395
|
+
disabled: u,
|
|
396
|
+
children: b
|
|
397
|
+
}
|
|
398
|
+
)
|
|
399
|
+
] }),
|
|
400
|
+
/* @__PURE__ */ a("div", { className: "block lg:hidden", children: /* @__PURE__ */ i("div", { className: "relative h-[400px] w-full overflow-hidden rounded-xl border border-base-300 bg-base-100", children: [
|
|
401
|
+
!e && /* @__PURE__ */ a(
|
|
402
|
+
"div",
|
|
403
|
+
{
|
|
404
|
+
className: "pointer-events-none absolute inset-0 overflow-hidden p-5 pb-24 text-base text-base-300",
|
|
405
|
+
"aria-hidden": "true",
|
|
406
|
+
children: /* @__PURE__ */ i("div", { className: "whitespace-pre-line leading-relaxed", children: [
|
|
407
|
+
/* @__PURE__ */ a("p", { className: "mb-4 text-base-300", children: c("hero.placeholder") }),
|
|
408
|
+
c("hero.placeholderExample")
|
|
409
|
+
] })
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
/* @__PURE__ */ a("div", { className: "absolute inset-0 overflow-hidden pb-24", children: /* @__PURE__ */ a(
|
|
413
|
+
"textarea",
|
|
636
414
|
{
|
|
637
|
-
|
|
638
|
-
|
|
415
|
+
className: "textarea size-full resize-none overflow-auto bg-transparent p-4 leading-6 text-base-content focus:outline-none",
|
|
416
|
+
value: e,
|
|
417
|
+
"aria-label": c("hero.placeholder"),
|
|
418
|
+
onChange: (d) => t(d.target.value),
|
|
419
|
+
disabled: n,
|
|
420
|
+
placeholder: ""
|
|
639
421
|
}
|
|
640
422
|
) }),
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
})
|
|
650
|
-
const { t: a, i18n: n } = o(d), m = n.language;
|
|
651
|
-
return /* @__PURE__ */ i("div", { className: "mx-auto max-w-2xl", children: [
|
|
652
|
-
/* @__PURE__ */ t("h1", { className: "mb-8 text-center text-3xl font-bold", children: a("result.title") }),
|
|
653
|
-
/* @__PURE__ */ i("div", { className: "mb-8 grid grid-cols-1 gap-4 md:grid-cols-3", children: [
|
|
654
|
-
/* @__PURE__ */ t("div", { className: "card bg-error/10", children: /* @__PURE__ */ i("div", { className: "card-body items-center text-center", children: [
|
|
655
|
-
/* @__PURE__ */ t("h3", { className: "text-4xl font-bold text-error", children: e.risk_signals_count }),
|
|
656
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children: a("result.riskSignals") })
|
|
657
|
-
] }) }),
|
|
658
|
-
/* @__PURE__ */ t("div", { className: "card bg-warning/10", children: /* @__PURE__ */ i("div", { className: "card-body items-center text-center", children: [
|
|
659
|
-
/* @__PURE__ */ t("h3", { className: "text-4xl font-bold text-warning", children: e.cautions_count }),
|
|
660
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children: a("result.cautions") })
|
|
661
|
-
] }) }),
|
|
662
|
-
/* @__PURE__ */ t("div", { className: "card bg-success/10", children: /* @__PURE__ */ i("div", { className: "card-body items-center text-center", children: [
|
|
663
|
-
/* @__PURE__ */ t("h3", { className: "text-4xl font-bold text-success", children: e.safe_indicators_count }),
|
|
664
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children: a("result.safeIndicators") })
|
|
423
|
+
/* @__PURE__ */ a("div", { className: "absolute inset-x-4 bottom-4 z-10", children: /* @__PURE__ */ a(
|
|
424
|
+
"button",
|
|
425
|
+
{
|
|
426
|
+
className: "btn btn-neutral h-16 w-full text-base font-medium text-neutral-content",
|
|
427
|
+
onClick: r,
|
|
428
|
+
disabled: u,
|
|
429
|
+
children: b
|
|
430
|
+
}
|
|
431
|
+
) })
|
|
665
432
|
] }) })
|
|
666
433
|
] }),
|
|
667
|
-
/* @__PURE__ */
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
|
|
434
|
+
s && /* @__PURE__ */ a("div", { className: "alert alert-error mb-6 flex items-center gap-2 text-sm", children: /* @__PURE__ */ a("span", { children: s }) }),
|
|
435
|
+
/* @__PURE__ */ a("p", { className: "mb-4 text-left text-xs text-base-content/60 sm:mb-8 sm:text-center md:mb-12", children: c("hero.disclaimer") }),
|
|
436
|
+
/* @__PURE__ */ i("div", { className: "flex items-center justify-start gap-6 sm:justify-center", children: [
|
|
437
|
+
/* @__PURE__ */ a(
|
|
438
|
+
"a",
|
|
672
439
|
{
|
|
673
|
-
href:
|
|
674
|
-
|
|
675
|
-
|
|
440
|
+
href: "https://x.com",
|
|
441
|
+
target: "_blank",
|
|
442
|
+
rel: "noopener noreferrer",
|
|
443
|
+
"aria-label": "X",
|
|
444
|
+
children: /* @__PURE__ */ a(J, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
445
|
+
}
|
|
446
|
+
),
|
|
447
|
+
/* @__PURE__ */ a(
|
|
448
|
+
"a",
|
|
449
|
+
{
|
|
450
|
+
href: "https://reddit.com",
|
|
451
|
+
target: "_blank",
|
|
452
|
+
rel: "noopener noreferrer",
|
|
453
|
+
"aria-label": "Reddit",
|
|
454
|
+
children: /* @__PURE__ */ a(q, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
676
455
|
}
|
|
677
456
|
)
|
|
678
|
-
] })
|
|
679
|
-
] });
|
|
457
|
+
] })
|
|
458
|
+
] }) });
|
|
680
459
|
}
|
|
681
|
-
const
|
|
682
|
-
category:
|
|
683
|
-
severity:
|
|
684
|
-
title:
|
|
685
|
-
description:
|
|
686
|
-
what_to_do:
|
|
687
|
-
}),
|
|
688
|
-
market_price_range:
|
|
689
|
-
offered_price:
|
|
690
|
-
currency:
|
|
691
|
-
price_assessment:
|
|
692
|
-
warnings:
|
|
693
|
-
}),
|
|
694
|
-
translation:
|
|
695
|
-
nuance_explanation:
|
|
696
|
-
risk_signals:
|
|
697
|
-
cautions:
|
|
698
|
-
safe_indicators:
|
|
699
|
-
price_analysis:
|
|
700
|
-
safety_checklist:
|
|
701
|
-
risk_score:
|
|
702
|
-
recommendation:
|
|
703
|
-
emotional_support:
|
|
704
|
-
}),
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
created_at: c.string(),
|
|
719
|
-
updated_at: c.string()
|
|
720
|
-
}), de = c.union([
|
|
721
|
-
oe,
|
|
722
|
-
c.object({
|
|
723
|
-
id: c.string(),
|
|
724
|
-
quick_summary: se,
|
|
725
|
-
signup_required: c.literal(!0)
|
|
726
|
-
})
|
|
727
|
-
]);
|
|
728
|
-
class ye extends w {
|
|
460
|
+
const w = l.object({
|
|
461
|
+
category: l.enum(["payment", "seller", "platform", "price", "content"]),
|
|
462
|
+
severity: l.enum(["high", "medium", "low"]),
|
|
463
|
+
title: l.string(),
|
|
464
|
+
description: l.string(),
|
|
465
|
+
what_to_do: l.string()
|
|
466
|
+
}), Q = l.object({
|
|
467
|
+
market_price_range: l.string().nullish(),
|
|
468
|
+
offered_price: l.number().nullish(),
|
|
469
|
+
currency: l.string().nullish(),
|
|
470
|
+
price_assessment: l.string(),
|
|
471
|
+
warnings: l.array(l.string())
|
|
472
|
+
}), ee = l.object({
|
|
473
|
+
translation: l.string().nullish(),
|
|
474
|
+
nuance_explanation: l.string().nullish(),
|
|
475
|
+
risk_signals: l.array(w),
|
|
476
|
+
cautions: l.array(w),
|
|
477
|
+
safe_indicators: l.array(w),
|
|
478
|
+
price_analysis: Q,
|
|
479
|
+
safety_checklist: l.array(l.string()),
|
|
480
|
+
risk_score: l.number(),
|
|
481
|
+
recommendation: l.string(),
|
|
482
|
+
emotional_support: l.string()
|
|
483
|
+
}), te = l.object({
|
|
484
|
+
id: l.string(),
|
|
485
|
+
user_id: l.string().nullish(),
|
|
486
|
+
input_text: l.string(),
|
|
487
|
+
llm_analysis: ee,
|
|
488
|
+
risk_score: l.number(),
|
|
489
|
+
expert_advice: l.string().nullish(),
|
|
490
|
+
expert_reviewed: l.boolean(),
|
|
491
|
+
expert_reviewed_at: l.string().nullish(),
|
|
492
|
+
expert_reviewed_by: l.string().nullish(),
|
|
493
|
+
created_at: l.string(),
|
|
494
|
+
updated_at: l.string()
|
|
495
|
+
});
|
|
496
|
+
class ue extends R {
|
|
729
497
|
constructor() {
|
|
730
498
|
super(...arguments), this.resource = "trade-safety";
|
|
731
499
|
}
|
|
732
500
|
getDataSchema() {
|
|
733
|
-
return
|
|
501
|
+
return te;
|
|
734
502
|
}
|
|
735
503
|
}
|
|
736
|
-
const
|
|
504
|
+
const he = {
|
|
737
505
|
high: 70,
|
|
738
506
|
// >= 70: High risk (red)
|
|
739
507
|
medium: 40
|
|
@@ -741,12 +509,11 @@ const Re = {
|
|
|
741
509
|
// < 40: Low risk (green)
|
|
742
510
|
};
|
|
743
511
|
export {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
ke as tradeSafetyTranslations
|
|
512
|
+
de as DetailedResult,
|
|
513
|
+
me as HomeHeroSection,
|
|
514
|
+
he as RISK_SCORE_THRESHOLDS,
|
|
515
|
+
f as TRADE_SAFETY_NS,
|
|
516
|
+
ue as TradeSafetyRepository,
|
|
517
|
+
be as tradeSafetyTranslations
|
|
751
518
|
};
|
|
752
519
|
//# sourceMappingURL=index.mjs.map
|