trade-safety 1.9.0 → 1.11.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 +6 -3
- package/dist/components/DetailedResult/AnalysisCard.d.ts.map +1 -1
- package/dist/components/DetailedResult/PriceAnalysisSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/SafetyChecklistSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/SectionContent.d.ts +7 -0
- package/dist/components/DetailedResult/SectionContent.d.ts.map +1 -0
- package/dist/components/DetailedResult/SignalsSection.d.ts +3 -3
- package/dist/components/DetailedResult/SignalsSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/TranslationSection.d.ts.map +1 -1
- package/dist/components/DetailedResult/index.d.ts.map +1 -1
- package/dist/components/PageHeader.d.ts +1 -2
- package/dist/components/PageHeader.d.ts.map +1 -1
- package/dist/i18n/translations.d.ts +216 -36
- package/dist/i18n/translations.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- 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 +324 -340
- package/dist/index.mjs.map +1 -1
- package/dist/locale.js +54 -9
- package/dist/locale.js.map +1 -1
- package/dist/locale.mjs +76 -31
- package/dist/locale.mjs.map +1 -1
- package/dist/repositories/TradeSafetyRepository.d.ts +8 -8
- package/package.json +1 -1
- package/dist/components/DetailedResult/RecommendationSection.d.ts +0 -6
- package/dist/components/DetailedResult/RecommendationSection.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,149 +1,129 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as u } 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
|
|
5
|
+
import { TRADE_SAFETY_NS as d } from "./locale.mjs";
|
|
6
|
+
import { tradeSafetyTranslations as ge } from "./locale.mjs";
|
|
7
|
+
import * as g from "react";
|
|
8
8
|
import m from "react";
|
|
9
|
-
import { BaseCrudRepository as
|
|
10
|
-
import { z as
|
|
11
|
-
function
|
|
9
|
+
import { BaseCrudRepository as z } from "@aioia/core";
|
|
10
|
+
import { z as i } from "zod";
|
|
11
|
+
function j(e) {
|
|
12
12
|
var t, r, n = "";
|
|
13
13
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
14
14
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
15
|
-
var
|
|
16
|
-
for (t = 0; t <
|
|
15
|
+
var s = e.length;
|
|
16
|
+
for (t = 0; t < s; t++) e[t] && (r = j(e[t])) && (n && (n += " "), n += r);
|
|
17
17
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
18
18
|
return n;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
for (var e, t, r = 0, n = "",
|
|
20
|
+
function w() {
|
|
21
|
+
for (var e, t, r = 0, n = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = j(e)) && (n && (n += " "), n += t);
|
|
22
22
|
return n;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
const E = {
|
|
25
|
+
danger: "bg-error/10 text-error",
|
|
26
|
+
caution: "bg-error/10 text-error",
|
|
27
|
+
safe: "bg-neutral/10 text-neutral"
|
|
28
|
+
}, R = {
|
|
29
|
+
danger: "result.danger.badge",
|
|
30
|
+
caution: "result.caution.badge",
|
|
31
|
+
safe: "result.safe.badge"
|
|
32
|
+
}, A = {
|
|
33
|
+
sm: "text-xl font-bold",
|
|
34
|
+
lg: "text-2xl font-bold"
|
|
30
35
|
};
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
function b({
|
|
37
|
+
badgeVariant: e,
|
|
38
|
+
subtitle: t,
|
|
39
|
+
icon: r,
|
|
40
|
+
title: n,
|
|
41
|
+
titleSize: s = "lg",
|
|
42
|
+
children: l
|
|
36
43
|
}) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
44
|
+
const { t: f } = u(d);
|
|
45
|
+
return /* @__PURE__ */ c("section", { className: "rounded-2xl bg-neutral-content p-6 shadow-sm", children: [
|
|
46
|
+
/* @__PURE__ */ c("header", { className: "mb-4 flex flex-col items-start", children: [
|
|
47
|
+
e && /* @__PURE__ */ a(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
className: w(
|
|
51
|
+
"mb-2 rounded-full px-4 py-1 text-sm font-bold",
|
|
52
|
+
E[e]
|
|
53
|
+
),
|
|
54
|
+
children: f(R[e])
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
t && /* @__PURE__ */ a("p", { className: "mb-1 break-keep text-lg font-medium text-neutral", children: t }),
|
|
58
|
+
/* @__PURE__ */ c("div", { className: "flex items-center gap-2 text-neutral", children: [
|
|
59
|
+
r && /* @__PURE__ */ a("span", { className: "text-base", children: r }),
|
|
60
|
+
/* @__PURE__ */ a(
|
|
61
|
+
"h2",
|
|
62
|
+
{
|
|
63
|
+
className: w(
|
|
64
|
+
"whitespace-pre-line break-keep sm:whitespace-normal",
|
|
65
|
+
A[s]
|
|
66
|
+
),
|
|
67
|
+
children: n
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] })
|
|
62
71
|
] }),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */ a("p", { className: "text-xs", children: e.price_assessment })
|
|
66
|
-
] })
|
|
67
|
-
] }) : null;
|
|
72
|
+
/* @__PURE__ */ a("div", { children: l })
|
|
73
|
+
] });
|
|
68
74
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
})
|
|
72
|
-
const { t } = u(h);
|
|
73
|
-
return e ? /* @__PURE__ */ a(p, { title: t("result.recommendation"), children: /* @__PURE__ */ a("p", { className: "text-xs", children: e }) }) : null;
|
|
75
|
+
function T({ summary: e }) {
|
|
76
|
+
const { t } = u(d);
|
|
77
|
+
return /* @__PURE__ */ a(b, { title: t("result.aiSummary"), children: /* @__PURE__ */ a("p", { className: "rounded-lg bg-base-200 p-6 text-sm leading-relaxed text-base-content", children: e }) });
|
|
74
78
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
return /* @__PURE__ */ o.createElement("svg", Object.assign({
|
|
81
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
82
|
-
viewBox: "0 0 24 24",
|
|
83
|
-
fill: "currentColor",
|
|
84
|
-
"aria-hidden": "true",
|
|
85
|
-
"data-slot": "icon",
|
|
86
|
-
ref: n,
|
|
87
|
-
"aria-labelledby": t
|
|
88
|
-
}, r), e ? /* @__PURE__ */ o.createElement("title", {
|
|
89
|
-
id: t
|
|
90
|
-
}, e) : null, /* @__PURE__ */ o.createElement("path", {
|
|
91
|
-
fillRule: "evenodd",
|
|
92
|
-
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",
|
|
93
|
-
clipRule: "evenodd"
|
|
94
|
-
}));
|
|
95
|
-
}
|
|
96
|
-
const A = /* @__PURE__ */ o.forwardRef(T);
|
|
97
|
-
function D({
|
|
98
|
-
title: e,
|
|
99
|
-
titleId: t,
|
|
100
|
-
...r
|
|
101
|
-
}, n) {
|
|
102
|
-
return /* @__PURE__ */ o.createElement("svg", Object.assign({
|
|
103
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
104
|
-
viewBox: "0 0 24 24",
|
|
105
|
-
fill: "currentColor",
|
|
106
|
-
"aria-hidden": "true",
|
|
107
|
-
"data-slot": "icon",
|
|
108
|
-
ref: n,
|
|
109
|
-
"aria-labelledby": t
|
|
110
|
-
}, r), e ? /* @__PURE__ */ o.createElement("title", {
|
|
111
|
-
id: t
|
|
112
|
-
}, e) : null, /* @__PURE__ */ o.createElement("path", {
|
|
113
|
-
fillRule: "evenodd",
|
|
114
|
-
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",
|
|
115
|
-
clipRule: "evenodd"
|
|
116
|
-
}));
|
|
79
|
+
function h({ title: e, content: t }) {
|
|
80
|
+
return /* @__PURE__ */ c("div", { className: "text-neutral", children: [
|
|
81
|
+
/* @__PURE__ */ a("h3", { className: "mb-1 break-keep text-lg font-semibold", children: e }),
|
|
82
|
+
/* @__PURE__ */ a("p", { className: "break-keep", children: t })
|
|
83
|
+
] });
|
|
117
84
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
85
|
+
function D({ data: e }) {
|
|
86
|
+
const { t, i18n: r } = u(d);
|
|
87
|
+
return e ? /* @__PURE__ */ a(
|
|
88
|
+
b,
|
|
89
|
+
{
|
|
90
|
+
subtitle: t("result.priceAnalysis.subtitle"),
|
|
91
|
+
title: t("result.priceAnalysis.title"),
|
|
92
|
+
children: /* @__PURE__ */ c("div", { className: "space-y-4", children: [
|
|
93
|
+
e.market_price_range && /* @__PURE__ */ a(
|
|
94
|
+
h,
|
|
95
|
+
{
|
|
96
|
+
title: t("result.marketPrice"),
|
|
97
|
+
content: e.market_price_range
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
e.offered_price && /* @__PURE__ */ a(
|
|
101
|
+
h,
|
|
102
|
+
{
|
|
103
|
+
title: t("result.offeredPrice"),
|
|
104
|
+
content: new Intl.NumberFormat(r.language, {
|
|
105
|
+
style: "currency",
|
|
106
|
+
currency: e.currency || "USD"
|
|
107
|
+
}).format(e.offered_price)
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
e.price_assessment && /* @__PURE__ */ a(
|
|
111
|
+
h,
|
|
112
|
+
{
|
|
113
|
+
title: t("result.priceAssessment"),
|
|
114
|
+
content: e.price_assessment
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] })
|
|
118
|
+
}
|
|
119
|
+
) : null;
|
|
139
120
|
}
|
|
140
|
-
|
|
141
|
-
function B({
|
|
121
|
+
function L({
|
|
142
122
|
title: e,
|
|
143
123
|
titleId: t,
|
|
144
124
|
...r
|
|
145
125
|
}, n) {
|
|
146
|
-
return /* @__PURE__ */
|
|
126
|
+
return /* @__PURE__ */ g.createElement("svg", Object.assign({
|
|
147
127
|
xmlns: "http://www.w3.org/2000/svg",
|
|
148
128
|
viewBox: "0 0 24 24",
|
|
149
129
|
fill: "currentColor",
|
|
@@ -151,123 +131,119 @@ function B({
|
|
|
151
131
|
"data-slot": "icon",
|
|
152
132
|
ref: n,
|
|
153
133
|
"aria-labelledby": t
|
|
154
|
-
}, r), e ? /* @__PURE__ */
|
|
134
|
+
}, r), e ? /* @__PURE__ */ g.createElement("title", {
|
|
155
135
|
id: t
|
|
156
|
-
}, e) : null, /* @__PURE__ */
|
|
136
|
+
}, e) : null, /* @__PURE__ */ g.createElement("path", {
|
|
157
137
|
fillRule: "evenodd",
|
|
158
|
-
d: "
|
|
138
|
+
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",
|
|
159
139
|
clipRule: "evenodd"
|
|
160
140
|
}));
|
|
161
141
|
}
|
|
162
|
-
const H = /* @__PURE__ */
|
|
163
|
-
function
|
|
164
|
-
const { t } = u(
|
|
165
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"input",
|
|
142
|
+
const H = /* @__PURE__ */ g.forwardRef(L);
|
|
143
|
+
function M({ items: e }) {
|
|
144
|
+
const { t } = u(d);
|
|
145
|
+
return e.length === 0 ? null : /* @__PURE__ */ a(
|
|
146
|
+
b,
|
|
147
|
+
{
|
|
148
|
+
icon: /* @__PURE__ */ a(H, { className: "size-6" }),
|
|
149
|
+
title: t("result.safetyChecklist"),
|
|
150
|
+
titleSize: "sm",
|
|
151
|
+
children: /* @__PURE__ */ a("div", { className: "space-y-4", children: e.map((r, n) => /* @__PURE__ */ c(
|
|
152
|
+
"label",
|
|
174
153
|
{
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
154
|
+
className: "label cursor-pointer gap-4 rounded-2xl bg-base-200 p-4",
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ a("span", { className: "label-text break-keep text-neutral", children: r }),
|
|
157
|
+
/* @__PURE__ */ a(
|
|
158
|
+
"input",
|
|
159
|
+
{
|
|
160
|
+
type: "checkbox",
|
|
161
|
+
className: "checkbox checkbox-sm [--chkbg:theme(colors.neutral)] [--chkfg:theme(colors.neutral-content)]"
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
n
|
|
167
|
+
)) })
|
|
168
|
+
}
|
|
169
|
+
);
|
|
182
170
|
}
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}, $ = {
|
|
188
|
-
error: "result.riskSignals",
|
|
189
|
-
warning: "result.cautions",
|
|
190
|
-
success: "result.safeIndicators"
|
|
171
|
+
const B = {
|
|
172
|
+
danger: "result.danger.title",
|
|
173
|
+
caution: "result.caution.title",
|
|
174
|
+
safe: "result.safe.title"
|
|
191
175
|
};
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
})
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
] }),
|
|
205
|
-
/* @__PURE__ */ a("div", { className: "space-y-3", children: e.map((l, c) => /* @__PURE__ */ a(p, { variant: t, children: /* @__PURE__ */ i("div", { className: "space-y-2", children: [
|
|
206
|
-
/* @__PURE__ */ i("div", { children: [
|
|
207
|
-
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: l.title }),
|
|
208
|
-
/* @__PURE__ */ a("p", { className: "text-xs", children: l.description })
|
|
209
|
-
] }),
|
|
210
|
-
/* @__PURE__ */ i("div", { children: [
|
|
211
|
-
/* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: r("result.whatToDo") }),
|
|
212
|
-
/* @__PURE__ */ a("p", { className: "text-xs", children: l.what_to_do })
|
|
213
|
-
] })
|
|
214
|
-
] }) }, c)) })
|
|
215
|
-
] });
|
|
176
|
+
function y({ signals: e, variant: t }) {
|
|
177
|
+
const { t: r } = u(d);
|
|
178
|
+
return e.length === 0 ? null : /* @__PURE__ */ a(b, { badgeVariant: t, title: r(B[t]), children: /* @__PURE__ */ a("div", { className: "divide-y divide-base-300", children: e.map((n, s) => /* @__PURE__ */ c("div", { className: "space-y-4 py-4 first:pt-0 last:pb-0", children: [
|
|
179
|
+
/* @__PURE__ */ a(h, { title: n.title, content: n.description }),
|
|
180
|
+
/* @__PURE__ */ a(
|
|
181
|
+
h,
|
|
182
|
+
{
|
|
183
|
+
title: r("result.whatToDo"),
|
|
184
|
+
content: n.what_to_do
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
] }, s)) }) });
|
|
216
188
|
}
|
|
217
|
-
function
|
|
189
|
+
function F({
|
|
218
190
|
translation: e,
|
|
219
191
|
nuance: t
|
|
220
192
|
}) {
|
|
221
|
-
const { t: r } = u(
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
193
|
+
const { t: r } = u(d);
|
|
194
|
+
return /* @__PURE__ */ a(
|
|
195
|
+
b,
|
|
196
|
+
{
|
|
197
|
+
subtitle: r("result.translation.subtitle"),
|
|
198
|
+
title: r("result.translation.title"),
|
|
199
|
+
children: /* @__PURE__ */ c("div", { className: "space-y-4", children: [
|
|
200
|
+
e && /* @__PURE__ */ a(
|
|
201
|
+
h,
|
|
202
|
+
{
|
|
203
|
+
title: r("result.translation.label"),
|
|
204
|
+
content: e
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
t && /* @__PURE__ */ a(h, { title: r("result.nuance.label"), content: t })
|
|
208
|
+
] })
|
|
209
|
+
}
|
|
210
|
+
);
|
|
232
211
|
}
|
|
233
|
-
function
|
|
234
|
-
return /* @__PURE__ */
|
|
235
|
-
e.ai_summary && /* @__PURE__ */ a(
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
e.
|
|
248
|
-
e.cautions.length > 0 && /* @__PURE__ */ a(v, { signals: e.cautions, variant: "warning" }),
|
|
249
|
-
e.safe_indicators.length > 0 && /* @__PURE__ */ a(v, { signals: e.safe_indicators, variant: "success" }),
|
|
250
|
-
e.safety_checklist.length > 0 && /* @__PURE__ */ a(I, { items: e.safety_checklist })
|
|
212
|
+
function ue({ analysis: e }) {
|
|
213
|
+
return /* @__PURE__ */ c("div", { className: "space-y-6", children: [
|
|
214
|
+
e.ai_summary && /* @__PURE__ */ a(T, { summary: e.ai_summary }),
|
|
215
|
+
e.risk_signals.length > 0 && /* @__PURE__ */ a(y, { signals: e.risk_signals, variant: "danger" }),
|
|
216
|
+
e.cautions.length > 0 && /* @__PURE__ */ a(y, { signals: e.cautions, variant: "caution" }),
|
|
217
|
+
e.safe_indicators.length > 0 && /* @__PURE__ */ a(y, { signals: e.safe_indicators, variant: "safe" }),
|
|
218
|
+
e.safety_checklist.length > 0 && /* @__PURE__ */ a(M, { items: e.safety_checklist }),
|
|
219
|
+
(e.translation || e.nuance_explanation) && /* @__PURE__ */ a(
|
|
220
|
+
F,
|
|
221
|
+
{
|
|
222
|
+
translation: e.translation,
|
|
223
|
+
nuance: e.nuance_explanation
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
e.price_analysis && /* @__PURE__ */ a(D, { data: e.price_analysis })
|
|
251
227
|
] });
|
|
252
228
|
}
|
|
253
|
-
var
|
|
229
|
+
var k = {
|
|
254
230
|
color: void 0,
|
|
255
231
|
size: void 0,
|
|
256
232
|
className: void 0,
|
|
257
233
|
style: void 0,
|
|
258
234
|
attr: void 0
|
|
259
|
-
},
|
|
260
|
-
function
|
|
235
|
+
}, N = m.createContext && /* @__PURE__ */ m.createContext(k), I = ["attr", "size", "title"];
|
|
236
|
+
function Z(e, t) {
|
|
261
237
|
if (e == null) return {};
|
|
262
|
-
var r =
|
|
238
|
+
var r = W(e, t), n, s;
|
|
263
239
|
if (Object.getOwnPropertySymbols) {
|
|
264
|
-
var
|
|
265
|
-
for (
|
|
266
|
-
n =
|
|
240
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
241
|
+
for (s = 0; s < l.length; s++)
|
|
242
|
+
n = l[s], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
267
243
|
}
|
|
268
244
|
return r;
|
|
269
245
|
}
|
|
270
|
-
function
|
|
246
|
+
function W(e, t) {
|
|
271
247
|
if (e == null) return {};
|
|
272
248
|
var r = {};
|
|
273
249
|
for (var n in e)
|
|
@@ -277,45 +253,45 @@ function V(e, t) {
|
|
|
277
253
|
}
|
|
278
254
|
return r;
|
|
279
255
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
256
|
+
function x() {
|
|
257
|
+
return x = Object.assign ? Object.assign.bind() : function(e) {
|
|
282
258
|
for (var t = 1; t < arguments.length; t++) {
|
|
283
259
|
var r = arguments[t];
|
|
284
260
|
for (var n in r)
|
|
285
261
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
286
262
|
}
|
|
287
263
|
return e;
|
|
288
|
-
},
|
|
264
|
+
}, x.apply(this, arguments);
|
|
289
265
|
}
|
|
290
|
-
function
|
|
266
|
+
function S(e, t) {
|
|
291
267
|
var r = Object.keys(e);
|
|
292
268
|
if (Object.getOwnPropertySymbols) {
|
|
293
269
|
var n = Object.getOwnPropertySymbols(e);
|
|
294
|
-
t && (n = n.filter(function(
|
|
295
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
270
|
+
t && (n = n.filter(function(s) {
|
|
271
|
+
return Object.getOwnPropertyDescriptor(e, s).enumerable;
|
|
296
272
|
})), r.push.apply(r, n);
|
|
297
273
|
}
|
|
298
274
|
return r;
|
|
299
275
|
}
|
|
300
|
-
function
|
|
276
|
+
function v(e) {
|
|
301
277
|
for (var t = 1; t < arguments.length; t++) {
|
|
302
278
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
303
|
-
t % 2 ?
|
|
304
|
-
|
|
305
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
279
|
+
t % 2 ? S(Object(r), !0).forEach(function(n) {
|
|
280
|
+
$(e, n, r[n]);
|
|
281
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : S(Object(r)).forEach(function(n) {
|
|
306
282
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
307
283
|
});
|
|
308
284
|
}
|
|
309
285
|
return e;
|
|
310
286
|
}
|
|
311
|
-
function
|
|
312
|
-
return t =
|
|
287
|
+
function $(e, t, r) {
|
|
288
|
+
return t = K(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
313
289
|
}
|
|
314
|
-
function
|
|
315
|
-
var t =
|
|
290
|
+
function K(e) {
|
|
291
|
+
var t = U(e, "string");
|
|
316
292
|
return typeof t == "symbol" ? t : t + "";
|
|
317
293
|
}
|
|
318
|
-
function
|
|
294
|
+
function U(e, t) {
|
|
319
295
|
if (typeof e != "object" || !e) return e;
|
|
320
296
|
var r = e[Symbol.toPrimitive];
|
|
321
297
|
if (r !== void 0) {
|
|
@@ -325,70 +301,70 @@ function q(e, t) {
|
|
|
325
301
|
}
|
|
326
302
|
return (t === "string" ? String : Number)(e);
|
|
327
303
|
}
|
|
328
|
-
function
|
|
329
|
-
return e && e.map((t, r) => /* @__PURE__ */ m.createElement(t.tag,
|
|
304
|
+
function P(e) {
|
|
305
|
+
return e && e.map((t, r) => /* @__PURE__ */ m.createElement(t.tag, v({
|
|
330
306
|
key: r
|
|
331
|
-
}, t.attr),
|
|
307
|
+
}, t.attr), P(t.child)));
|
|
332
308
|
}
|
|
333
|
-
function
|
|
334
|
-
return (t) => /* @__PURE__ */ m.createElement(
|
|
335
|
-
attr:
|
|
336
|
-
}, t),
|
|
309
|
+
function C(e) {
|
|
310
|
+
return (t) => /* @__PURE__ */ m.createElement(X, x({
|
|
311
|
+
attr: v({}, e.attr)
|
|
312
|
+
}, t), P(e.child));
|
|
337
313
|
}
|
|
338
|
-
function
|
|
314
|
+
function X(e) {
|
|
339
315
|
var t = (r) => {
|
|
340
316
|
var {
|
|
341
317
|
attr: n,
|
|
342
|
-
size:
|
|
343
|
-
title:
|
|
344
|
-
} = e,
|
|
345
|
-
return r.className && (
|
|
318
|
+
size: s,
|
|
319
|
+
title: l
|
|
320
|
+
} = e, f = Z(e, I), p = s || r.size || "1em", o;
|
|
321
|
+
return r.className && (o = r.className), e.className && (o = (o ? o + " " : "") + e.className), /* @__PURE__ */ m.createElement("svg", x({
|
|
346
322
|
stroke: "currentColor",
|
|
347
323
|
fill: "currentColor",
|
|
348
324
|
strokeWidth: "0"
|
|
349
|
-
}, r.attr, n,
|
|
350
|
-
className:
|
|
351
|
-
style:
|
|
325
|
+
}, r.attr, n, f, {
|
|
326
|
+
className: o,
|
|
327
|
+
style: v(v({
|
|
352
328
|
color: e.color || r.color
|
|
353
329
|
}, r.style), e.style),
|
|
354
|
-
height:
|
|
355
|
-
width:
|
|
330
|
+
height: p,
|
|
331
|
+
width: p,
|
|
356
332
|
xmlns: "http://www.w3.org/2000/svg"
|
|
357
|
-
}),
|
|
333
|
+
}), l && /* @__PURE__ */ m.createElement("title", null, l), e.children);
|
|
358
334
|
};
|
|
359
|
-
return
|
|
335
|
+
return N !== void 0 ? /* @__PURE__ */ m.createElement(N.Consumer, null, (r) => t(r)) : t(k);
|
|
360
336
|
}
|
|
361
|
-
function
|
|
362
|
-
return
|
|
337
|
+
function Y(e) {
|
|
338
|
+
return C({ 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);
|
|
363
339
|
}
|
|
364
|
-
function
|
|
365
|
-
return
|
|
340
|
+
function q(e) {
|
|
341
|
+
return C({ 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);
|
|
366
342
|
}
|
|
367
|
-
function
|
|
343
|
+
function de({
|
|
368
344
|
value: e,
|
|
369
345
|
onChange: t,
|
|
370
346
|
onSubmit: r,
|
|
371
347
|
isLoading: n,
|
|
372
|
-
error:
|
|
348
|
+
error: s
|
|
373
349
|
}) {
|
|
374
|
-
const { t:
|
|
375
|
-
return /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center justify-center", children: /* @__PURE__ */
|
|
376
|
-
/* @__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:
|
|
377
|
-
/* @__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:
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
/* @__PURE__ */
|
|
350
|
+
const { t: l } = u(d), f = n ? /* @__PURE__ */ a("span", { className: "loading loading-spinner loading-sm" }) : l("hero.checkSafety"), p = n || !e.trim();
|
|
351
|
+
return /* @__PURE__ */ a("div", { className: "flex w-full flex-col items-center justify-center", children: /* @__PURE__ */ c("div", { className: "w-full lg:max-w-[720px]", children: [
|
|
352
|
+
/* @__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: l("hero.title") }),
|
|
353
|
+
/* @__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: l("hero.subtitle") }),
|
|
354
|
+
/* @__PURE__ */ c("div", { className: w("mb-4", !s && "sm:mb-8 md:mb-12"), children: [
|
|
355
|
+
/* @__PURE__ */ c("div", { className: "relative hidden lg:block", children: [
|
|
380
356
|
/* @__PURE__ */ a(
|
|
381
357
|
"input",
|
|
382
358
|
{
|
|
383
359
|
type: "text",
|
|
384
360
|
className: "input input-bordered h-[72px] w-full pr-36 text-sm placeholder:text-base-300 focus:outline-none",
|
|
385
|
-
placeholder:
|
|
386
|
-
"aria-label":
|
|
361
|
+
placeholder: l("hero.placeholder"),
|
|
362
|
+
"aria-label": l("hero.placeholder"),
|
|
387
363
|
value: e,
|
|
388
|
-
onChange: (
|
|
364
|
+
onChange: (o) => t(o.target.value),
|
|
389
365
|
disabled: n,
|
|
390
|
-
onKeyDown: (
|
|
391
|
-
|
|
366
|
+
onKeyDown: (o) => {
|
|
367
|
+
o.key === "Enter" && !p && r();
|
|
392
368
|
}
|
|
393
369
|
}
|
|
394
370
|
),
|
|
@@ -397,20 +373,20 @@ function pe({
|
|
|
397
373
|
{
|
|
398
374
|
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",
|
|
399
375
|
onClick: r,
|
|
400
|
-
disabled:
|
|
401
|
-
children:
|
|
376
|
+
disabled: p,
|
|
377
|
+
children: f
|
|
402
378
|
}
|
|
403
379
|
)
|
|
404
380
|
] }),
|
|
405
|
-
/* @__PURE__ */ a("div", { className: "block lg:hidden", children: /* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ a("div", { className: "block lg:hidden", children: /* @__PURE__ */ c("div", { className: "relative h-[400px] w-full overflow-hidden rounded-xl border border-base-300 bg-base-100", children: [
|
|
406
382
|
!e && /* @__PURE__ */ a(
|
|
407
383
|
"div",
|
|
408
384
|
{
|
|
409
385
|
className: "pointer-events-none absolute inset-0 overflow-hidden p-5 pb-24 text-base text-base-300",
|
|
410
386
|
"aria-hidden": "true",
|
|
411
|
-
children: /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */ a("p", { className: "mb-4 text-base-300", children:
|
|
413
|
-
|
|
387
|
+
children: /* @__PURE__ */ c("div", { className: "whitespace-pre-line leading-relaxed", children: [
|
|
388
|
+
/* @__PURE__ */ a("p", { className: "mb-4 text-base-300", children: l("hero.placeholder") }),
|
|
389
|
+
l("hero.placeholderExample")
|
|
414
390
|
] })
|
|
415
391
|
}
|
|
416
392
|
),
|
|
@@ -419,8 +395,8 @@ function pe({
|
|
|
419
395
|
{
|
|
420
396
|
className: "textarea size-full resize-none overflow-auto bg-transparent p-4 leading-6 text-base-content focus:outline-none",
|
|
421
397
|
value: e,
|
|
422
|
-
"aria-label":
|
|
423
|
-
onChange: (
|
|
398
|
+
"aria-label": l("hero.placeholder"),
|
|
399
|
+
onChange: (o) => t(o.target.value),
|
|
424
400
|
disabled: n,
|
|
425
401
|
placeholder: ""
|
|
426
402
|
}
|
|
@@ -430,15 +406,15 @@ function pe({
|
|
|
430
406
|
{
|
|
431
407
|
className: "btn btn-neutral h-16 w-full text-base font-medium text-neutral-content",
|
|
432
408
|
onClick: r,
|
|
433
|
-
disabled:
|
|
434
|
-
children:
|
|
409
|
+
disabled: p,
|
|
410
|
+
children: f
|
|
435
411
|
}
|
|
436
412
|
) })
|
|
437
413
|
] }) })
|
|
438
414
|
] }),
|
|
439
|
-
|
|
440
|
-
/* @__PURE__ */ a("p", { className: "mb-4 text-left text-xs text-base-content/60 sm:mb-8 sm:text-center md:mb-12", children:
|
|
441
|
-
/* @__PURE__ */
|
|
415
|
+
s && /* @__PURE__ */ a("div", { className: "alert alert-error mb-6 flex items-center gap-2 text-sm", children: /* @__PURE__ */ a("span", { children: s }) }),
|
|
416
|
+
/* @__PURE__ */ a("p", { className: "mb-4 text-left text-xs text-base-content/60 sm:mb-8 sm:text-center md:mb-12", children: l("hero.disclaimer") }),
|
|
417
|
+
/* @__PURE__ */ c("div", { className: "flex items-center justify-start gap-6 sm:justify-center", children: [
|
|
442
418
|
/* @__PURE__ */ a(
|
|
443
419
|
"a",
|
|
444
420
|
{
|
|
@@ -446,7 +422,7 @@ function pe({
|
|
|
446
422
|
target: "_blank",
|
|
447
423
|
rel: "noopener noreferrer",
|
|
448
424
|
"aria-label": "X",
|
|
449
|
-
children: /* @__PURE__ */ a(
|
|
425
|
+
children: /* @__PURE__ */ a(q, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
450
426
|
}
|
|
451
427
|
),
|
|
452
428
|
/* @__PURE__ */ a(
|
|
@@ -456,89 +432,97 @@ function pe({
|
|
|
456
432
|
target: "_blank",
|
|
457
433
|
rel: "noopener noreferrer",
|
|
458
434
|
"aria-label": "Reddit",
|
|
459
|
-
children: /* @__PURE__ */ a(
|
|
435
|
+
children: /* @__PURE__ */ a(Y, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
|
|
460
436
|
}
|
|
461
437
|
)
|
|
462
438
|
] })
|
|
463
439
|
] }) });
|
|
464
440
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
441
|
+
function me({ level: e, score: t }) {
|
|
442
|
+
const { t: r } = u(d);
|
|
443
|
+
return /* @__PURE__ */ c("div", { className: "mb-4 rounded-lg", children: [
|
|
444
|
+
/* @__PURE__ */ a("h1", { className: "mb-2 text-3xl font-bold", children: r(`result.safetyLevel.${e}.title`) }),
|
|
445
|
+
/* @__PURE__ */ a("p", { className: "mt-2 text-sm text-neutral", children: r(`result.safetyLevel.${e}.description`, { score: t }) })
|
|
446
|
+
] });
|
|
447
|
+
}
|
|
448
|
+
const O = {
|
|
449
|
+
safe: 70,
|
|
450
|
+
caution: 40
|
|
451
|
+
}, he = (e) => e >= O.safe ? "safe" : e >= O.caution ? "caution" : "danger", _ = i.object({
|
|
452
|
+
category: i.enum(["payment", "seller", "platform", "price", "content"]),
|
|
453
|
+
severity: i.enum(["high", "medium", "low"]),
|
|
454
|
+
title: i.string(),
|
|
455
|
+
description: i.string(),
|
|
456
|
+
what_to_do: i.string()
|
|
457
|
+
}), G = i.object({
|
|
458
|
+
market_price_range: i.string().nullish(),
|
|
459
|
+
offered_price: i.number().nullish(),
|
|
460
|
+
currency: i.string().nullish(),
|
|
461
|
+
price_assessment: i.string(),
|
|
462
|
+
warnings: i.array(i.string())
|
|
463
|
+
}), J = i.object({
|
|
464
|
+
ai_summary: i.string(),
|
|
465
|
+
translation: i.string().nullish(),
|
|
466
|
+
nuance_explanation: i.string().nullish(),
|
|
467
|
+
risk_signals: i.array(_),
|
|
468
|
+
cautions: i.array(_),
|
|
469
|
+
safe_indicators: i.array(_),
|
|
470
|
+
price_analysis: G,
|
|
471
|
+
safety_checklist: i.array(i.string()),
|
|
472
|
+
safe_score: i.number(),
|
|
473
|
+
recommendation: i.string(),
|
|
474
|
+
emotional_support: i.string()
|
|
475
|
+
}), Q = i.object({
|
|
476
|
+
id: i.string(),
|
|
477
|
+
user_id: i.string().nullish(),
|
|
478
|
+
input_text: i.string(),
|
|
479
|
+
llm_analysis: J,
|
|
480
|
+
safe_score: i.number(),
|
|
481
|
+
expert_advice: i.string().nullish(),
|
|
482
|
+
expert_reviewed: i.boolean(),
|
|
483
|
+
expert_reviewed_at: i.string().nullish(),
|
|
484
|
+
expert_reviewed_by: i.string().nullish(),
|
|
485
|
+
created_at: i.string(),
|
|
486
|
+
updated_at: i.string()
|
|
487
|
+
}), V = i.enum(["twitter"]), ee = i.object({
|
|
488
|
+
platform: V,
|
|
489
|
+
author: i.string(),
|
|
490
|
+
created_at: i.string().nullish(),
|
|
491
|
+
text: i.string(),
|
|
492
|
+
text_preview: i.string(),
|
|
493
|
+
images: i.array(i.string())
|
|
494
|
+
}), te = i.object({
|
|
495
|
+
data: ee
|
|
510
496
|
});
|
|
511
|
-
class
|
|
497
|
+
class fe extends z {
|
|
512
498
|
constructor() {
|
|
513
499
|
super(...arguments), this.resource = "trade-safety";
|
|
514
500
|
}
|
|
515
501
|
getDataSchema() {
|
|
516
|
-
return
|
|
502
|
+
return Q;
|
|
517
503
|
}
|
|
518
504
|
/**
|
|
519
505
|
* Fetch post preview metadata from a social media URL
|
|
520
506
|
* POST /trade-safety/preview
|
|
521
507
|
*/
|
|
522
508
|
async fetchPreview(t, r) {
|
|
523
|
-
const n = `${this.apiService.buildUrl(this.resource)}/preview`,
|
|
509
|
+
const n = `${this.apiService.buildUrl(this.resource)}/preview`, s = await this.apiService.request(n, {
|
|
524
510
|
...r,
|
|
525
511
|
method: "POST",
|
|
526
512
|
headers: { "Content-Type": "application/json" },
|
|
527
513
|
body: JSON.stringify({ url: t })
|
|
528
514
|
});
|
|
529
|
-
return this.validateResponse(
|
|
515
|
+
return this.validateResponse(s, te).data;
|
|
530
516
|
}
|
|
531
517
|
}
|
|
532
|
-
const ge = {
|
|
533
|
-
safe: 70,
|
|
534
|
-
caution: 40
|
|
535
|
-
};
|
|
536
518
|
export {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
519
|
+
ue as DetailedResult,
|
|
520
|
+
de as HomeHeroSection,
|
|
521
|
+
me as PageHeader,
|
|
522
|
+
O as SAFETY_SCORE_THRESHOLDS,
|
|
523
|
+
d as TRADE_SAFETY_NS,
|
|
524
|
+
fe as TradeSafetyRepository,
|
|
525
|
+
he as getSafetyLevel,
|
|
526
|
+
ge as tradeSafetyTranslations
|
|
543
527
|
};
|
|
544
528
|
//# sourceMappingURL=index.mjs.map
|