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/index.mjs CHANGED
@@ -1,149 +1,129 @@
1
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
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 h } from "./locale.mjs";
6
- import { tradeSafetyTranslations as we } from "./locale.mjs";
7
- import * as o from "react";
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 R } from "@aioia/core";
10
- import { z as s } from "zod";
11
- function _(e) {
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 l = e.length;
16
- for (t = 0; t < l; t++) e[t] && (r = _(e[t])) && (n && (n += " "), n += r);
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 S() {
21
- for (var e, t, r = 0, n = "", l = arguments.length; r < l; r++) (e = arguments[r]) && (t = _(e)) && (n && (n += " "), n += t);
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 P = {
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"
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 p({
32
- title: e,
33
- icon: t,
34
- variant: r = "default",
35
- children: n
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
- return n ? /* @__PURE__ */ i("div", { className: S("rounded-lg border p-6", P[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;
44
- }
45
- function C({ summary: e }) {
46
- const { t } = u(h);
47
- return /* @__PURE__ */ a(p, { 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 }) });
48
- }
49
- function k({ data: e }) {
50
- const { t, i18n: r } = u(h);
51
- return e ? /* @__PURE__ */ i(p, { title: t("result.priceAnalysis"), children: [
52
- e.market_price_range && /* @__PURE__ */ i("div", { className: "mb-2", children: [
53
- /* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: t("result.marketPrice") }),
54
- /* @__PURE__ */ a("p", { className: "text-xs", children: e.market_price_range })
55
- ] }),
56
- e.offered_price && /* @__PURE__ */ i("div", { className: "mb-2", children: [
57
- /* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: t("result.offeredPrice") }),
58
- /* @__PURE__ */ a("p", { className: "text-xs", children: new Intl.NumberFormat(r.language, {
59
- style: "currency",
60
- currency: e.currency || "USD"
61
- }).format(e.offered_price) })
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
- e.price_assessment && /* @__PURE__ */ i("div", { children: [
64
- /* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: t("result.priceAssessment") }),
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 z({
70
- recommendation: e
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 T({
76
- title: e,
77
- titleId: t,
78
- ...r
79
- }, n) {
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
- const M = /* @__PURE__ */ o.forwardRef(D);
119
- function Z({
120
- title: e,
121
- titleId: t,
122
- ...r
123
- }, n) {
124
- return /* @__PURE__ */ o.createElement("svg", Object.assign({
125
- xmlns: "http://www.w3.org/2000/svg",
126
- viewBox: "0 0 24 24",
127
- fill: "currentColor",
128
- "aria-hidden": "true",
129
- "data-slot": "icon",
130
- ref: n,
131
- "aria-labelledby": t
132
- }, r), e ? /* @__PURE__ */ o.createElement("title", {
133
- id: t
134
- }, e) : null, /* @__PURE__ */ o.createElement("path", {
135
- fillRule: "evenodd",
136
- 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",
137
- clipRule: "evenodd"
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
- const F = /* @__PURE__ */ o.forwardRef(Z);
141
- function B({
121
+ function L({
142
122
  title: e,
143
123
  titleId: t,
144
124
  ...r
145
125
  }, n) {
146
- return /* @__PURE__ */ o.createElement("svg", Object.assign({
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__ */ o.createElement("title", {
134
+ }, r), e ? /* @__PURE__ */ g.createElement("title", {
155
135
  id: t
156
- }, e) : null, /* @__PURE__ */ o.createElement("path", {
136
+ }, e) : null, /* @__PURE__ */ g.createElement("path", {
157
137
  fillRule: "evenodd",
158
- 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",
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__ */ o.forwardRef(B);
163
- function I({ items: e }) {
164
- const { t } = u(h);
165
- return e.length === 0 ? null : /* @__PURE__ */ i("div", { className: "mb-4", children: [
166
- /* @__PURE__ */ i("h2", { className: "flex items-center gap-1 py-4 font-bold", children: [
167
- t("result.safetyChecklist"),
168
- " ",
169
- /* @__PURE__ */ a(A, { className: "size-6" })
170
- ] }),
171
- /* @__PURE__ */ a(p, { variant: "info", children: e.map((r, n) => /* @__PURE__ */ i("label", { className: "label w-fit cursor-pointer gap-2", children: [
172
- /* @__PURE__ */ a(
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
- type: "checkbox",
176
- className: "checkbox rounded-full [--chkbg:theme(colors.neutral)] [--chkfg:theme(colors.neutral-content)]"
177
- }
178
- ),
179
- /* @__PURE__ */ a("span", { className: "label-text", children: r })
180
- ] }, n)) })
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 L = {
184
- error: F,
185
- warning: M,
186
- success: H
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 v({
193
- signals: e,
194
- variant: t = "error"
195
- }) {
196
- const { t: r } = u(h);
197
- if (e.length === 0) return null;
198
- const n = L[t];
199
- return /* @__PURE__ */ i("div", { className: "mb-4", children: [
200
- /* @__PURE__ */ i("h2", { className: "flex items-center gap-1 py-4 font-bold", children: [
201
- r($[t]),
202
- " ",
203
- /* @__PURE__ */ a(n, { className: "size-6" })
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 W({
189
+ function F({
218
190
  translation: e,
219
191
  nuance: t
220
192
  }) {
221
- const { t: r } = u(h);
222
- return /* @__PURE__ */ i(p, { title: r("result.translation"), children: [
223
- e && /* @__PURE__ */ i("div", { className: "mb-2", children: [
224
- /* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: r("result.translationTitle") }),
225
- /* @__PURE__ */ a("p", { className: "text-xs", children: e })
226
- ] }),
227
- t && /* @__PURE__ */ i("div", { children: [
228
- /* @__PURE__ */ a("h3", { className: "text-sm font-bold", children: r("result.nuanceTitle") }),
229
- /* @__PURE__ */ a("p", { className: "text-xs", children: t })
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 fe({ analysis: e }) {
234
- return /* @__PURE__ */ i("div", { children: [
235
- e.ai_summary && /* @__PURE__ */ a(C, { summary: e.ai_summary }),
236
- /* @__PURE__ */ i("div", { className: "my-4 flex flex-col gap-4", children: [
237
- (e.translation || e.nuance_explanation) && /* @__PURE__ */ a(
238
- W,
239
- {
240
- translation: e.translation,
241
- nuance: e.nuance_explanation
242
- }
243
- ),
244
- e.price_analysis && /* @__PURE__ */ a(k, { data: e.price_analysis }),
245
- e.recommendation && /* @__PURE__ */ a(z, { recommendation: e.recommendation })
246
- ] }),
247
- e.risk_signals.length > 0 && /* @__PURE__ */ a(v, { signals: e.risk_signals, variant: "error" }),
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 O = {
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
- }, y = m.createContext && /* @__PURE__ */ m.createContext(O), K = ["attr", "size", "title"];
260
- function U(e, t) {
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 = V(e, t), n, l;
238
+ var r = W(e, t), n, s;
263
239
  if (Object.getOwnPropertySymbols) {
264
- var c = Object.getOwnPropertySymbols(e);
265
- for (l = 0; l < c.length; l++)
266
- n = c[l], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[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 V(e, t) {
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 g() {
281
- return g = Object.assign ? Object.assign.bind() : function(e) {
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
- }, g.apply(this, arguments);
264
+ }, x.apply(this, arguments);
289
265
  }
290
- function N(e, t) {
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(l) {
295
- return Object.getOwnPropertyDescriptor(e, l).enumerable;
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 x(e) {
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 ? N(Object(r), !0).forEach(function(n) {
304
- X(e, n, r[n]);
305
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : N(Object(r)).forEach(function(n) {
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 X(e, t, r) {
312
- return t = Y(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
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 Y(e) {
315
- var t = q(e, "string");
290
+ function K(e) {
291
+ var t = U(e, "string");
316
292
  return typeof t == "symbol" ? t : t + "";
317
293
  }
318
- function q(e, t) {
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 j(e) {
329
- return e && e.map((t, r) => /* @__PURE__ */ m.createElement(t.tag, x({
304
+ function P(e) {
305
+ return e && e.map((t, r) => /* @__PURE__ */ m.createElement(t.tag, v({
330
306
  key: r
331
- }, t.attr), j(t.child)));
307
+ }, t.attr), P(t.child)));
332
308
  }
333
- function E(e) {
334
- return (t) => /* @__PURE__ */ m.createElement(G, g({
335
- attr: x({}, e.attr)
336
- }, t), j(e.child));
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 G(e) {
314
+ function X(e) {
339
315
  var t = (r) => {
340
316
  var {
341
317
  attr: n,
342
- size: l,
343
- title: c
344
- } = e, b = U(e, K), f = l || r.size || "1em", d;
345
- return r.className && (d = r.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ m.createElement("svg", g({
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, b, {
350
- className: d,
351
- style: x(x({
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: f,
355
- width: f,
330
+ height: p,
331
+ width: p,
356
332
  xmlns: "http://www.w3.org/2000/svg"
357
- }), c && /* @__PURE__ */ m.createElement("title", null, c), e.children);
333
+ }), l && /* @__PURE__ */ m.createElement("title", null, l), e.children);
358
334
  };
359
- return y !== void 0 ? /* @__PURE__ */ m.createElement(y.Consumer, null, (r) => t(r)) : t(O);
335
+ return N !== void 0 ? /* @__PURE__ */ m.createElement(N.Consumer, null, (r) => t(r)) : t(k);
360
336
  }
361
- function J(e) {
362
- 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);
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 Q(e) {
365
- 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);
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 pe({
343
+ function de({
368
344
  value: e,
369
345
  onChange: t,
370
346
  onSubmit: r,
371
347
  isLoading: n,
372
- error: l
348
+ error: s
373
349
  }) {
374
- const { t: c } = u(h), b = n ? /* @__PURE__ */ a("span", { className: "loading loading-spinner loading-sm" }) : c("hero.checkSafety"), f = n || !e.trim();
375
- 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: [
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: c("hero.title") }),
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: c("hero.subtitle") }),
378
- /* @__PURE__ */ i("div", { className: S("mb-4", !l && "sm:mb-8 md:mb-12"), children: [
379
- /* @__PURE__ */ i("div", { className: "relative hidden lg:block", children: [
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: c("hero.placeholder"),
386
- "aria-label": c("hero.placeholder"),
361
+ placeholder: l("hero.placeholder"),
362
+ "aria-label": l("hero.placeholder"),
387
363
  value: e,
388
- onChange: (d) => t(d.target.value),
364
+ onChange: (o) => t(o.target.value),
389
365
  disabled: n,
390
- onKeyDown: (d) => {
391
- d.key === "Enter" && !f && r();
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: f,
401
- children: b
376
+ disabled: p,
377
+ children: f
402
378
  }
403
379
  )
404
380
  ] }),
405
- /* @__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: [
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__ */ i("div", { className: "whitespace-pre-line leading-relaxed", children: [
412
- /* @__PURE__ */ a("p", { className: "mb-4 text-base-300", children: c("hero.placeholder") }),
413
- c("hero.placeholderExample")
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": c("hero.placeholder"),
423
- onChange: (d) => t(d.target.value),
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: f,
434
- children: b
409
+ disabled: p,
410
+ children: f
435
411
  }
436
412
  ) })
437
413
  ] }) })
438
414
  ] }),
439
- l && /* @__PURE__ */ a("div", { className: "alert alert-error mb-6 flex items-center gap-2 text-sm", children: /* @__PURE__ */ a("span", { children: l }) }),
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: c("hero.disclaimer") }),
441
- /* @__PURE__ */ i("div", { className: "flex items-center justify-start gap-6 sm:justify-center", children: [
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(Q, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
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(J, { className: "size-6 text-base-content transition-colors hover:text-base-content/70" })
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
- const w = s.object({
466
- category: s.enum(["payment", "seller", "platform", "price", "content"]),
467
- severity: s.enum(["high", "medium", "low"]),
468
- title: s.string(),
469
- description: s.string(),
470
- what_to_do: s.string()
471
- }), ee = s.object({
472
- market_price_range: s.string().nullish(),
473
- offered_price: s.number().nullish(),
474
- currency: s.string().nullish(),
475
- price_assessment: s.string(),
476
- warnings: s.array(s.string())
477
- }), te = s.object({
478
- ai_summary: s.string(),
479
- translation: s.string().nullish(),
480
- nuance_explanation: s.string().nullish(),
481
- risk_signals: s.array(w),
482
- cautions: s.array(w),
483
- safe_indicators: s.array(w),
484
- price_analysis: ee,
485
- safety_checklist: s.array(s.string()),
486
- safe_score: s.number(),
487
- recommendation: s.string(),
488
- emotional_support: s.string()
489
- }), re = s.object({
490
- id: s.string(),
491
- user_id: s.string().nullish(),
492
- input_text: s.string(),
493
- llm_analysis: te,
494
- safe_score: s.number(),
495
- expert_advice: s.string().nullish(),
496
- expert_reviewed: s.boolean(),
497
- expert_reviewed_at: s.string().nullish(),
498
- expert_reviewed_by: s.string().nullish(),
499
- created_at: s.string(),
500
- updated_at: s.string()
501
- }), ne = s.enum(["twitter"]), ae = s.object({
502
- platform: ne,
503
- author: s.string(),
504
- created_at: s.string().nullish(),
505
- text: s.string(),
506
- text_preview: s.string(),
507
- images: s.array(s.string())
508
- }), se = s.object({
509
- data: ae
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 be extends R {
497
+ class fe extends z {
512
498
  constructor() {
513
499
  super(...arguments), this.resource = "trade-safety";
514
500
  }
515
501
  getDataSchema() {
516
- return re;
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`, l = await this.apiService.request(n, {
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(l, se).data;
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
- fe as DetailedResult,
538
- pe as HomeHeroSection,
539
- ge as SAFETY_SCORE_THRESHOLDS,
540
- h as TRADE_SAFETY_NS,
541
- be as TradeSafetyRepository,
542
- we as tradeSafetyTranslations
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