@aixnn/aixautots 0.6.12 → 0.6.13

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.
Files changed (51) hide show
  1. package/dist/{automation-queue-CvrWEOw2.d.ts → automation-queue-BFWqw32O.d.ts} +2 -2
  2. package/dist/{chunk-PUEKOYSH.js → chunk-2KPZSPV6.js} +131 -3
  3. package/dist/{chunk-UH5OYPXE.js → chunk-7BJPVSEZ.js} +205 -18
  4. package/dist/{chunk-LR5LJJNM.js → chunk-HMDUSVQ3.js} +4 -4
  5. package/dist/{chunk-E7WMHM63.js → chunk-MBBVYSPD.js} +7 -0
  6. package/dist/{chunk-ROOOAG3E.js → chunk-Q5I63UYT.js} +30 -387
  7. package/dist/{chunk-7IXBWJHB.js → chunk-QEK25NUA.js} +5 -5
  8. package/dist/chunk-QFGMQLRB.js +405 -0
  9. package/dist/{chunk-LO3XD4T5.js → chunk-QRIWTPN3.js} +114 -4
  10. package/dist/{chunk-D7J4EQTA.js → chunk-S5N4EOCP.js} +1 -1
  11. package/dist/{chunk-QZLUQSLA.js → chunk-SKI7TINK.js} +349 -420
  12. package/dist/{chunk-SL6M6CC6.js → chunk-T6X6TWHK.js} +3 -3
  13. package/dist/{chunk-XCYGBYFC.js → chunk-U4QW45MB.js} +208 -126
  14. package/dist/{chunk-SKTL6ACT.js → chunk-VMA3QOYR.js} +3 -3
  15. package/dist/chunk-ZCTAYVPK.js +1 -0
  16. package/dist/{config-BUH2EYHO.d.ts → config-UmU2_q5M.d.ts} +173 -2
  17. package/dist/core/index.d.ts +29 -11
  18. package/dist/core/index.js +2 -2
  19. package/dist/{device-normalize-DzuVemCy.d.ts → device-normalize-CWJFr_sf.d.ts} +7 -4
  20. package/dist/device-session-3XK2SZDF.js +1 -0
  21. package/dist/i18n/index.js +1 -1
  22. package/dist/{mirror-session-D2YY9mKf.d.ts → mirror-session-Cy20lIHP.d.ts} +14 -4
  23. package/dist/react/index.d.ts +9 -9
  24. package/dist/react/index.js +3 -3
  25. package/dist/{script-debugger-Csm4CrfY.d.ts → script-debugger-F5UGUq5t.d.ts} +1 -1
  26. package/dist/{task-agent-runner-C4WfT77g.d.ts → task-agent-runner-Cj_u-3DS.d.ts} +3 -3
  27. package/dist/{types-BfIeUpsU.d.ts → types-BvrppNIZ.d.ts} +34 -2
  28. package/dist/ui/billing.d.ts +2 -2
  29. package/dist/ui/billing.js +14 -8
  30. package/dist/ui/device-create.d.ts +1 -1
  31. package/dist/ui/device-create.js +8 -7
  32. package/dist/ui/device-mirror.js +7 -7
  33. package/dist/ui/devices.d.ts +5 -5
  34. package/dist/ui/devices.js +12 -11
  35. package/dist/ui/editor.d.ts +2 -2
  36. package/dist/ui/editor.js +7 -7
  37. package/dist/ui/index.d.ts +5 -4
  38. package/dist/ui/index.js +9 -7
  39. package/dist/ui/inspector.js +5 -5
  40. package/dist/ui/ip-commerce.d.ts +26 -0
  41. package/dist/ui/ip-commerce.js +8 -0
  42. package/dist/ui/market.js +4 -4
  43. package/dist/ui/mirror.d.ts +5 -4
  44. package/dist/ui/mirror.js +1 -1
  45. package/dist/ui/primitives/index.js +1 -1
  46. package/dist/ui/script-studio.js +6 -6
  47. package/dist/ui/scripts.d.ts +1 -1
  48. package/dist/ui/scripts.js +5 -5
  49. package/dist/ui/tasks.js +12 -11
  50. package/package.json +6 -2
  51. package/dist/device-session-7MKEJTIA.js +0 -1
@@ -0,0 +1,405 @@
1
+ import { useAixLang } from './chunk-QRIWTPN3.js';
2
+ import { Button } from './chunk-VMA3QOYR.js';
3
+ import { useClient } from './chunk-QEK25NUA.js';
4
+ import { useState, useRef, useEffect } from 'react';
5
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
+
7
+ var usd = (cents) => `USD ${(cents / 100).toFixed(2)}`;
8
+ function offerUnit(offer, zh) {
9
+ if (offer.billing_mode === "term") return zh ? "IP / \u5929" : "IP / day";
10
+ return `${offer.unit_bytes ?? "\u2014"} bytes`;
11
+ }
12
+ var clientIds = /* @__PURE__ */ new WeakMap();
13
+ var nextClientId = 0;
14
+ function IpCommercePanel(props) {
15
+ return props.client ? /* @__PURE__ */ jsx(BoundPanel, { ...props, client: props.client }) : /* @__PURE__ */ jsx(ConnectedPanel, { ...props });
16
+ }
17
+ function ConnectedPanel(props) {
18
+ const client = useClient();
19
+ return /* @__PURE__ */ jsx(BoundPanel, { ...props, client });
20
+ }
21
+ function BoundPanel(props) {
22
+ const { client } = props;
23
+ if (!clientIds.has(client)) clientIds.set(client, ++nextClientId);
24
+ return /* @__PURE__ */ jsx(IpCommerceSession, { ...props }, `${clientIds.get(client)}:${props.deviceId ?? (props.creationSpec ? "creation" : "standalone")}`);
25
+ }
26
+ function IpCommerceSession(props) {
27
+ const { client } = props;
28
+ const standalone = !props.deviceId && !props.creationSpec;
29
+ const supported = props.supported ?? standalone;
30
+ const lang = useAixLang();
31
+ const zh = lang === "zh";
32
+ const msg = (cn, en) => zh ? cn : en;
33
+ const [catalog, setCatalog] = useState(null);
34
+ const [orders, setOrders] = useState([]);
35
+ const [resources, setResources] = useState([]);
36
+ const [kind, setKind] = useState("static");
37
+ const [country, setCountry] = useState("");
38
+ const [tier, setTier] = useState("");
39
+ const [mode, setMode] = useState("");
40
+ const [ceiling, setCeiling] = useState("");
41
+ const [selected, setSelected] = useState("");
42
+ const [duration, setDuration] = useState("");
43
+ const [traffic, setTraffic] = useState("");
44
+ const [limit, setLimit] = useState("");
45
+ const [quote, setQuote] = useState(null);
46
+ const [pending, setPending] = useState(null);
47
+ const [storage, setStorage] = useState(null);
48
+ const storageRef = useRef(null);
49
+ const [busy, setBusy] = useState(false);
50
+ const [loading, setLoading] = useState(true);
51
+ const [error, setError] = useState("");
52
+ const [notice, setNotice] = useState("");
53
+ const [, setClock] = useState(0);
54
+ const alive = useRef(true);
55
+ const lock = useRef(false);
56
+ const latest = useRef(props);
57
+ latest.current = props;
58
+ const quoteScope = useRef("");
59
+ const currentScope = JSON.stringify([props.deviceId, props.creationSpec]);
60
+ const filters = catalog?.offers.filter((o) => o.kind === kind) ?? [];
61
+ const offers = filters.filter((o) => (!country || o.region === country) && (!tier || o.tier === tier) && (!mode || o.billing_mode === mode) && (!ceiling || o.unit_price_cents !== null && o.unit_price_cents <= Number(ceiling)));
62
+ const offer = offers.find((o) => o.offer_id === selected) ?? offers[0];
63
+ const frozen = busy || !!pending;
64
+ const active = orders.find((o) => o.id === pending);
65
+ const issue = (e) => e instanceof Error ? e.message : String(e);
66
+ const remember = (id) => {
67
+ if (!storage) throw new Error(msg("\u7528\u6237\u4E0A\u4E0B\u6587\u5C1A\u672A\u5C31\u7EEA", "User context is not ready"));
68
+ if (id) localStorage.setItem(storage, id);
69
+ else localStorage.removeItem(storage);
70
+ setPending(id);
71
+ };
72
+ const run = async (action) => {
73
+ if (lock.current) return;
74
+ lock.current = true;
75
+ setBusy(true);
76
+ setError("");
77
+ setNotice("");
78
+ try {
79
+ await action();
80
+ } catch (e) {
81
+ if (alive.current) setError(issue(e));
82
+ } finally {
83
+ lock.current = false;
84
+ if (alive.current) setBusy(false);
85
+ }
86
+ };
87
+ const refresh = async () => {
88
+ const [rows, usage] = await Promise.all([client.ipCommerce.orders(props.deviceId ?? ""), client.ipCommerce.resources()]);
89
+ if (!alive.current) return;
90
+ setOrders((old) => [...rows, ...old.filter((o) => !rows.some((r) => r.id === o.id))]);
91
+ setResources(usage.items);
92
+ const unresolved = rows.find((o) => o.status === "pending");
93
+ if (unresolved && storageRef.current) {
94
+ localStorage.setItem(storageRef.current, unresolved.id);
95
+ setPending(unresolved.id);
96
+ }
97
+ };
98
+ useEffect(() => {
99
+ alive.current = true;
100
+ const controller = new AbortController();
101
+ void (async () => {
102
+ try {
103
+ const context = await client.ipCommerce.capabilities({ signal: controller.signal });
104
+ if (!alive.current) return;
105
+ const key = JSON.stringify(["aixips-commerce", client.cfg.baseUrl, context.owner_user_id, context.project_id, props.deviceId ?? (standalone ? "standalone" : "creation")]);
106
+ storageRef.current = key;
107
+ setStorage(key);
108
+ const saved = localStorage.getItem(key);
109
+ if (saved) {
110
+ setPending(saved);
111
+ const row = await client.ipCommerce.order(saved, { signal: controller.signal });
112
+ if (!alive.current) return;
113
+ setOrders([row]);
114
+ if (row.status === "quoted") setQuote(row.quote);
115
+ }
116
+ await refresh();
117
+ const result = await client.ipCommerce.catalog({}, { signal: controller.signal });
118
+ if (alive.current) setCatalog(result);
119
+ } catch (e) {
120
+ if (alive.current) setError(issue(e));
121
+ } finally {
122
+ if (alive.current) setLoading(false);
123
+ }
124
+ })();
125
+ return () => {
126
+ alive.current = false;
127
+ controller.abort();
128
+ };
129
+ }, [client, props.deviceId]);
130
+ useEffect(() => {
131
+ latest.current.onPendingChange?.(!!pending);
132
+ }, [pending]);
133
+ useEffect(() => {
134
+ const timer = setInterval(() => {
135
+ setClock((n) => n + 1);
136
+ if (!pending || lock.current) return;
137
+ void client.ipCommerce.order(pending).then((row) => {
138
+ if (!alive.current) return;
139
+ setOrders((old) => [row, ...old.filter((o) => o.id !== row.id)]);
140
+ if (row.status === "fulfilled") void client.ipCommerce.resources().then((r) => {
141
+ if (alive.current) setResources(r.items);
142
+ }).catch(() => {
143
+ });
144
+ }).catch((e) => {
145
+ if (alive.current) setError(issue(e));
146
+ });
147
+ }, 5e3);
148
+ return () => clearInterval(timer);
149
+ }, [client, pending]);
150
+ useEffect(() => {
151
+ if (!pending) setQuote(null);
152
+ }, [currentScope, selected, kind, country, tier, mode, ceiling, duration, traffic, limit, pending]);
153
+ const selectClass = "min-h-11 w-full rounded border border-border bg-background px-2 text-sm disabled:opacity-50";
154
+ const getQuote = () => run(async () => {
155
+ if (!offer || !offer.available) return;
156
+ quoteScope.current = currentScope;
157
+ const q = await client.ipCommerce.quote({
158
+ request_id: crypto.randomUUID(),
159
+ ...props.deviceId ? { device_id: props.deviceId } : { creation_spec: props.creationSpec },
160
+ offer_id: offer.offer_id,
161
+ quantity: 1,
162
+ ...offer.billing_mode === "term" ? { duration_days: Number(duration || offer.duration_days_options[0]) } : {},
163
+ ...offer.billing_mode === "prepaid" ? { traffic_gb: Number(traffic || offer.traffic_gb_options[0]) } : {},
164
+ ...offer.billing_mode === "payg" ? { spend_limit_cents: Number(limit) } : {}
165
+ });
166
+ if (alive.current) setQuote(q);
167
+ });
168
+ const buy = (chosen = quote) => run(async () => {
169
+ const quote2 = chosen;
170
+ if (!quote2 || !quote2.retail_configured || Date.parse(quote2.expires_at) <= Date.now()) return;
171
+ if (!pending && quoteScope.current !== currentScope) throw new Error(msg("\u8BBE\u5907\u914D\u7F6E\u5DF2\u6539\u53D8\uFF0C\u8BF7\u91CD\u65B0\u62A5\u4EF7", "Device settings changed; request a new quote"));
172
+ remember(quote2.id);
173
+ const row = await client.ipCommerce.purchase({ quote_id: quote2.id, max_total_cents: quote2.total_cents, confirm: true });
174
+ if (alive.current) {
175
+ setOrders((old) => [row, ...old.filter((o) => o.id !== row.id)]);
176
+ setQuote(null);
177
+ }
178
+ });
179
+ const selectResource = (resource, row) => run(async () => {
180
+ if (props.onConnectionSelected) {
181
+ const connection = await client.ipCommerce.resourceConnection(resource.id);
182
+ if (!alive.current) return;
183
+ await latest.current.onConnectionSelected?.(connection, resource, row);
184
+ }
185
+ if (alive.current) latest.current.onResourceSelected?.(resource, row);
186
+ });
187
+ const apply = (row, resourceId) => run(async () => {
188
+ if (props.deviceId) {
189
+ const r = await client.ipCommerce.apply(row.id, resourceId);
190
+ if (!alive.current) return;
191
+ setNotice(`${msg("\u4EE3\u7406\u914D\u7F6E\u72B6\u6001", "Proxy configuration status")}: ${r.status}`);
192
+ latest.current.onChanged?.();
193
+ if (r.status === "applied" && pending === row.id) remember(null);
194
+ } else if (props.creationSpec) {
195
+ const result = await client.ipCommerce.createDevice(row.id);
196
+ if (!alive.current) return;
197
+ remember(null);
198
+ latest.current.onCreated?.(result.device_id);
199
+ }
200
+ });
201
+ return /* @__PURE__ */ jsxs("section", { hidden: props.visible === false, "aria-busy": loading || busy, className: "space-y-3 text-sm", children: [
202
+ standalone && /* @__PURE__ */ jsx("p", { children: msg("\u8D2D\u4E70\u7684 IP \u5F52\u5C5E\u5F53\u524D\u7528\u6237\u548C\u9879\u76EE\uFF0C\u8D39\u7528\u4EE5 USD \u7ED3\u7B97\u3002\u9009\u62E9 IP \u4E0D\u989D\u5916\u6536\u8D39\uFF0C\u4F7F\u7528\u6D41\u91CF\u4ECD\u6309\u5546\u54C1\u89C4\u5219\u8BA1\u8D39\u3002", "IPs belong to the current user and project. Charges are in USD. Selection has no additional fee; traffic remains subject to product pricing.") }),
203
+ /* @__PURE__ */ jsxs("p", { className: "font-medium", children: [
204
+ "AIxIPs \xB7 ",
205
+ msg("\u5730\u533A\u4E0E\u5546\u54C1", "Regions and products")
206
+ ] }),
207
+ loading && /* @__PURE__ */ jsx("p", { role: "status", children: msg("\u6B63\u5728\u67E5\u8BE2\u771F\u5B9E\u5E93\u5B58\u4E0E\u4EF7\u683C\uFF0C\u7EBF\u8DEF\u68C0\u67E5\u53EF\u80FD\u9700\u8981 45 \u79D2\u2026", "Checking live inventory and prices; line checks may take 45 seconds\u2026") }),
208
+ error && /* @__PURE__ */ jsx("p", { role: "alert", className: "break-words text-destructive", children: error }),
209
+ notice && /* @__PURE__ */ jsx("p", { role: "status", children: notice }),
210
+ !supported && !standalone && /* @__PURE__ */ jsx("p", { children: msg("\u5F53\u524D\u8282\u70B9\u4E0D\u652F\u6301\u8BBE\u5907\u4EE3\u7406\uFF0C\u8BF7\u9009\u62E9\u652F\u6301\u4EE3\u7406\u7684 Redroid \u8282\u70B9\u3002", "Choose a Redroid node with per-device proxy support.") }),
211
+ pending && /* @__PURE__ */ jsxs("div", { className: "rounded border border-border p-3 space-y-2", children: [
212
+ /* @__PURE__ */ jsxs("p", { className: "break-all", children: [
213
+ msg("\u539F\u8BA2\u5355", "Original order"),
214
+ ": ",
215
+ pending
216
+ ] }),
217
+ /* @__PURE__ */ jsx("p", { role: "status", children: active?.status ?? msg("\u6B63\u5728\u6062\u590D\u7ED3\u679C", "Recovering outcome") }),
218
+ active?.failure_reason && /* @__PURE__ */ jsx("p", { role: "alert", children: active.failure_reason }),
219
+ (!active || active.status === "pending") && /* @__PURE__ */ jsx("p", { children: msg("\u6B63\u5728\u6838\u5BF9\u91C7\u8D2D\u7ED3\u679C\u3002\u8BF7\u52FF\u91CD\u65B0\u4E0B\u5355\uFF1B\u8D85\u65F6\u4E0D\u4EE3\u8868\u672A\u6210\u4EA4\u3002", "Reconciling purchase. Do not place another order; a timeout does not mean the purchase failed.") }),
220
+ active?.status === "rejected" && /* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: () => {
221
+ remember(null);
222
+ setQuote(null);
223
+ }, children: msg("\u5173\u95ED\u5DF2\u53D6\u6D88\u62A5\u4EF7", "Close cancelled quote") }),
224
+ active?.status === "quoted" && /* @__PURE__ */ jsxs(Fragment, { children: [
225
+ /* @__PURE__ */ jsx(Button, { disabled: busy || Date.parse(active.quote.expires_at) <= Date.now() || !active.quote.retail_configured, onClick: () => void buy(active.quote), children: msg("\u786E\u8BA4\u539F\u62A5\u4EF7\u5E76\u91C7\u8D2D", "Confirm original quote and purchase") }),
226
+ /* @__PURE__ */ jsx(Button, { variant: "ghost", disabled: busy, onClick: () => void run(async () => {
227
+ const row = await client.ipCommerce.cancelQuote(active.id);
228
+ if (!alive.current) return;
229
+ if (row.status === "rejected") {
230
+ remember(null);
231
+ setQuote(null);
232
+ } else setOrders((old) => [row, ...old.filter((o) => o.id !== row.id)]);
233
+ }), children: msg("\u53D6\u6D88\u672A\u63D0\u4EA4\u62A5\u4EF7", "Cancel unsubmitted quote") })
234
+ ] })
235
+ ] }),
236
+ !pending && catalog && /* @__PURE__ */ jsxs(Fragment, { children: [
237
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-3", children: [
238
+ /* @__PURE__ */ jsxs("label", { children: [
239
+ msg("\u7C7B\u578B", "Type"),
240
+ /* @__PURE__ */ jsxs("select", { className: selectClass, disabled: frozen, value: kind, onChange: (e) => {
241
+ setKind(e.target.value);
242
+ setSelected("");
243
+ setCountry("");
244
+ setTier("");
245
+ setMode("");
246
+ }, children: [
247
+ /* @__PURE__ */ jsx("option", { value: "static", children: msg("\u9759\u6001", "Static") }),
248
+ /* @__PURE__ */ jsx("option", { value: "dynamic", children: msg("\u52A8\u6001", "Dynamic") })
249
+ ] })
250
+ ] }),
251
+ /* @__PURE__ */ jsxs("label", { children: [
252
+ msg("\u56FD\u5BB6\uFF0F\u5730\u533A", "Country / region"),
253
+ /* @__PURE__ */ jsxs("select", { className: selectClass, disabled: frozen, value: country, onChange: (e) => setCountry(e.target.value), children: [
254
+ /* @__PURE__ */ jsx("option", { value: "", children: msg("\u5168\u90E8", "All") }),
255
+ [...new Set(filters.map((o) => o.region))].map((r) => /* @__PURE__ */ jsx("option", { value: r, children: r.toUpperCase() }, r))
256
+ ] })
257
+ ] }),
258
+ /* @__PURE__ */ jsxs("label", { children: [
259
+ msg("\u5546\u54C1\u5206\u7C7B", "Product tier"),
260
+ /* @__PURE__ */ jsxs("select", { className: selectClass, disabled: frozen, value: tier, onChange: (e) => setTier(e.target.value), children: [
261
+ /* @__PURE__ */ jsx("option", { value: "", children: msg("\u5168\u90E8", "All") }),
262
+ [...new Set(filters.map((o) => o.tier))].map((r) => /* @__PURE__ */ jsx("option", { children: r }, r))
263
+ ] })
264
+ ] }),
265
+ /* @__PURE__ */ jsxs("label", { children: [
266
+ msg("\u8BA1\u8D39\u65B9\u5F0F", "Billing mode"),
267
+ /* @__PURE__ */ jsxs("select", { className: selectClass, disabled: frozen, value: mode, onChange: (e) => setMode(e.target.value), children: [
268
+ /* @__PURE__ */ jsx("option", { value: "", children: msg("\u5168\u90E8", "All") }),
269
+ [...new Set(filters.map((o) => o.billing_mode))].map((r) => /* @__PURE__ */ jsx("option", { children: r }, r))
270
+ ] })
271
+ ] }),
272
+ /* @__PURE__ */ jsxs("label", { children: [
273
+ msg("\u6700\u9AD8\u5355\u4EF7\uFF08USD cents\uFF0C\u987B\u6BD4\u8F83\u76F8\u540C\u8BA1\u8D39\u5355\u4F4D\uFF09", "Maximum unit price (USD cents; compare matching units)"),
274
+ /* @__PURE__ */ jsx("input", { className: selectClass, type: "number", min: "0", step: "1", value: ceiling, disabled: frozen, onChange: (e) => setCeiling(e.target.value) })
275
+ ] })
276
+ ] }),
277
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: msg("\u5546\u54C1\u5206\u7C7B\u4E0D\u4EE3\u8868\u72EC\u7ACB\u8D28\u91CF\u8BA4\u8BC1\uFF1B\u56FA\u5B9A\u7EBF\u8DEF\u4E0D\u4FDD\u8BC1\u51FA\u53E3 IP \u6C38\u4E45\u4E0D\u53D8\u3002", "Tiers are product classifications, not quality certification. A fixed line does not guarantee a permanently fixed exit IP.") }),
278
+ !offers.length ? /* @__PURE__ */ jsx("p", { role: "status", children: kind === "dynamic" ? msg("\u5F53\u524D\u6682\u65E0\u7B26\u5408\u6761\u4EF6\u7684\u52A8\u6001 IP \u5546\u54C1\u3002", "No matching dynamic IP products are currently available.") : msg("\u6682\u65E0\u7B26\u5408\u6761\u4EF6\u7684\u5546\u54C1\u3002", "No matching products.") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
279
+ /* @__PURE__ */ jsxs("label", { className: "block", children: [
280
+ msg("\u5546\u54C1", "Product"),
281
+ /* @__PURE__ */ jsx("select", { className: selectClass, value: offer?.offer_id ?? "", disabled: frozen, onChange: (e) => {
282
+ setSelected(e.target.value);
283
+ setDuration("");
284
+ setTraffic("");
285
+ }, children: offers.map((o) => /* @__PURE__ */ jsxs("option", { value: o.offer_id, children: [
286
+ o.name,
287
+ " \xB7 ",
288
+ o.unit_price_cents === null ? msg("\u672A\u5B9A\u4EF7", "Unpriced") : `${usd(o.unit_price_cents)} / ${offerUnit(o, zh)}`,
289
+ " \xB7 ",
290
+ o.available ? msg("\u53EF\u62A5\u4EF7", "Quote available") : msg("\u4E0D\u53EF\u552E", "Unavailable")
291
+ ] }, o.offer_id)) })
292
+ ] }),
293
+ offer && /* @__PURE__ */ jsxs("div", { className: "rounded border border-border p-3 space-y-2", children: [
294
+ /* @__PURE__ */ jsxs("p", { children: [
295
+ msg("\u51FA\u53E3\u7A33\u5B9A\u6027", "Exit stability"),
296
+ ": ",
297
+ offer.ip_stability
298
+ ] }),
299
+ !offer.available && /* @__PURE__ */ jsxs("p", { role: "status", children: [
300
+ msg("\u4E0D\u53EF\u552E\u539F\u56E0", "Unavailable reason"),
301
+ ": ",
302
+ offer.unavailable_reason ?? "unavailable"
303
+ ] }),
304
+ offer.billing_mode === "term" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
305
+ msg("\u671F\u9650\uFF08\u5929\uFF09", "Duration (days)"),
306
+ /* @__PURE__ */ jsx("select", { className: selectClass, value: duration || String(offer.duration_days_options[0] ?? ""), disabled: frozen, onChange: (e) => setDuration(e.target.value), children: offer.duration_days_options.map((n) => /* @__PURE__ */ jsx("option", { children: n }, n)) })
307
+ ] }),
308
+ offer.billing_mode === "prepaid" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
309
+ msg("\u6D41\u91CF\u5305\uFF08GiB\uFF09", "Traffic package (GiB)"),
310
+ /* @__PURE__ */ jsx("select", { className: selectClass, value: traffic || String(offer.traffic_gb_options[0] ?? ""), disabled: frozen, onChange: (e) => setTraffic(e.target.value), children: offer.traffic_gb_options.map((n) => /* @__PURE__ */ jsx("option", { children: n }, n)) })
311
+ ] }),
312
+ offer.billing_mode === "payg" && /* @__PURE__ */ jsxs("label", { className: "block", children: [
313
+ msg("\u7528\u91CF\u8D39\u7528\u4E0A\u9650\uFF08USD cents\uFF09", "Usage spending cap (USD cents)"),
314
+ /* @__PURE__ */ jsx("input", { className: selectClass, type: "number", min: "1", max: "100000000", step: "1", value: limit, disabled: frozen, onChange: (e) => setLimit(e.target.value) })
315
+ ] }),
316
+ /* @__PURE__ */ jsx(Button, { disabled: busy || !supported || !offer.available || !catalog.purchases_enabled || offer.billing_mode === "payg" && !(Number(limit) > 0), onClick: () => void getQuote(), children: msg("\u83B7\u53D6\u62A5\u4EF7", "Get quote") })
317
+ ] })
318
+ ] }),
319
+ !catalog.retail_policy?.configured && /* @__PURE__ */ jsx("p", { role: "status", children: msg("\u7528\u6237\u94B1\u5305\u5E01\u79CD\u53CA\u6536\u8D39\u89C4\u5219\u5C1A\u672A\u914D\u7F6E\uFF0C\u5F53\u524D\u4E0D\u80FD\u91C7\u8D2D\u3002", "Retail wallet currency and pricing policy are not configured; purchasing is unavailable.") })
320
+ ] }),
321
+ quote && !pending && /* @__PURE__ */ jsxs("div", { className: "rounded border border-primary/40 p-3 space-y-2", children: [
322
+ /* @__PURE__ */ jsxs("p", { className: "font-semibold", children: [
323
+ msg("IP \u9996\u6B21\u8D39\u7528", "Upfront IP cost"),
324
+ ": ",
325
+ usd(quote.total_cents)
326
+ ] }),
327
+ /* @__PURE__ */ jsxs("p", { children: [
328
+ msg("\u7528\u6237\u8D39\u7528", "Retail charge"),
329
+ ": ",
330
+ quote.retail_currency ?? "\u2014",
331
+ " ",
332
+ quote.retail_total ?? "\u2014"
333
+ ] }),
334
+ /* @__PURE__ */ jsxs("p", { children: [
335
+ msg("\u53E6\u9884\u7559\u7528\u91CF\u989D\u5EA6", "Additional reserved usage budget"),
336
+ ": ",
337
+ quote.retail_currency ?? "\u2014",
338
+ " ",
339
+ quote.retail_usage_limit ?? "\u2014"
340
+ ] }),
341
+ /* @__PURE__ */ jsxs("p", { children: [
342
+ msg("\u540E\u7EED\u8D39\u7387", "Ongoing rate"),
343
+ ": ",
344
+ quote.offer.unit_price_cents === null ? "\u2014" : usd(quote.offer.unit_price_cents),
345
+ " / ",
346
+ offerUnit(quote.offer, zh),
347
+ " \xB7 ",
348
+ quote.offer.billing_mode
349
+ ] }),
350
+ quote.offer.billing_mode === "payg" && /* @__PURE__ */ jsx("p", { children: msg("\u96F6\u9996\u4ED8\u4E0D\u4EE3\u8868\u514D\u8D39\u3002\u4F7F\u7528\u8D39\u7528\u6309\u5B9E\u9645\u7D2F\u8BA1\u6D88\u8017\u5DEE\u989D\u7ED3\u7B97\u3002", "Zero upfront is not free. Usage is settled from cumulative charge differences.") }),
351
+ quote.device_billing && /* @__PURE__ */ jsxs("p", { children: [
352
+ msg("\u8BBE\u5907\u8FD0\u884C\u8D39\u7528", "Device running cost"),
353
+ ": ",
354
+ quote.device_billing.kind === "personal_free" ? msg("\u4E2A\u4EBA\u8282\u70B9\u514D\u8D39", "Personal node: free") : `${quote.device_billing.currency} ${quote.device_billing.rate_per_hour} / h`
355
+ ] }),
356
+ /* @__PURE__ */ jsxs("p", { children: [
357
+ msg("\u62A5\u4EF7\u6709\u6548\u81F3", "Quote expires"),
358
+ ": ",
359
+ new Date(quote.expires_at).toLocaleString()
360
+ ] }),
361
+ /* @__PURE__ */ jsx(Button, { disabled: busy || !quote.retail_configured || Date.parse(quote.expires_at) <= Date.now(), onClick: () => void buy(), children: msg("\u786E\u8BA4\u8D39\u7528\u5E76\u91C7\u8D2D", "Confirm charges and purchase") })
362
+ ] }),
363
+ orders.filter((o) => o.status === "fulfilled").map((row) => /* @__PURE__ */ jsxs("div", { className: "rounded border border-border p-3 space-y-2", children: [
364
+ /* @__PURE__ */ jsxs("p", { children: [
365
+ msg("\u5DF2\u8D2D IP", "Purchased IP"),
366
+ " \xB7 ",
367
+ row.quote.offer.name,
368
+ " \xB7 ",
369
+ usd(row.charged_cents ?? 0)
370
+ ] }),
371
+ row.entitlement_ids.map((id) => {
372
+ const r = resources.find((item) => item.id === id);
373
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
374
+ r && /* @__PURE__ */ jsxs("p", { children: [
375
+ r.status,
376
+ " \xB7 ",
377
+ msg("\u5DF2\u7528", "Used"),
378
+ " ",
379
+ r.used_bytes,
380
+ " bytes \xB7 ",
381
+ msg("\u7D2F\u8BA1\u7528\u91CF\u8D39\u7528", "Cumulative usage cost"),
382
+ " ",
383
+ usd(r.usage_charged_cents)
384
+ ] }),
385
+ standalone ? /* @__PURE__ */ jsxs(Fragment, { children: [
386
+ (props.onResourceSelected || props.onConnectionSelected) && /* @__PURE__ */ jsx(Button, { disabled: busy || !r || r.status !== "active", onClick: () => {
387
+ if (r) void selectResource(r, row);
388
+ }, children: msg("\u9009\u62E9\u6B64 IP", "Select this IP") }),
389
+ pending === row.id && /* @__PURE__ */ jsx(Button, { variant: "ghost", onClick: () => {
390
+ remember(null);
391
+ setQuote(null);
392
+ }, children: msg("\u5B8C\u6210", "Done") })
393
+ ] }) : /* @__PURE__ */ jsx(Button, { disabled: busy || !supported || !r || r.status !== "active", onClick: () => void apply(row, id), children: props.deviceId ? msg("\u5E94\u7528\u5230\u8BBE\u5907", "Apply to device") : msg("\u4F7F\u7528\u5DF2\u8D2D IP \u521B\u5EFA\u8BBE\u5907", "Create device with purchased IP") })
394
+ ] }, id);
395
+ })
396
+ ] }, row.id)),
397
+ !loading && /* @__PURE__ */ jsx(Button, { variant: "ghost", disabled: busy, onClick: () => void run(async () => {
398
+ const c = await client.ipCommerce.catalog();
399
+ if (alive.current) setCatalog(c);
400
+ await refresh();
401
+ }), children: msg("\u5237\u65B0\u5E93\u5B58\u4E0E\u8BA2\u5355", "Refresh inventory and orders") })
402
+ ] });
403
+ }
404
+
405
+ export { IpCommercePanel };
@@ -43,6 +43,9 @@ var en = {
43
43
  "creation.startupNetwork": "The proxy is configured after device startup. The device may use its original network until proxy application is confirmed.",
44
44
  "creation.title": "Create with an AIxIps IP",
45
45
  "creation.network": "Network egress",
46
+ "proxy.manualInput": "Manual input",
47
+ "proxy.chooseManaged": "Choose from AIxIPs",
48
+ "proxy.directHint": "The device will use the node\u2019s network directly.",
46
49
  "creation.managed": "AIxIps regional IP",
47
50
  "creation.custom": "Custom proxy (optional)",
48
51
  "creation.none": "No proxy",
@@ -143,6 +146,7 @@ var en = {
143
146
  "managed.seconds": "{n} seconds",
144
147
  "managed.handshakeReservation": "Connection establishment reserves up to {kib} KiB before connecting. Failed attempts also consume this allowance.",
145
148
  "managed.reservations": "Traffic allowance is reserved in up to {kib} KiB blocks per direction. Unused or failed-transfer reservations consume allowance.",
149
+ "managed.noVerifiedInventory": "AIxIPs is connected. No verified IP products are available for purchase yet.",
146
150
  "managed.title": "AIxIps managed IP",
147
151
  "managed.description": "Prepay once for a fixed term and a spending allowance. Choose a country; no automatic renewal.",
148
152
  "managed.unsupported": "Managed IP requires a provisioned Android device with a supported owning node.",
@@ -199,8 +203,53 @@ var en = {
199
203
  "managed.apply.failed": "Device application failed",
200
204
  "managed.apply.superseded": "Replaced on device",
201
205
  "managed.apply.none": "Not applied",
202
- "snapshots.title": "Snapshots",
203
- "snapshots.description": "Save and load device data. Fingerprint and proxy settings remain shared by this device. Save current changes before loading to keep them.",
206
+ "portable.title": "Account snapshot library",
207
+ "portable.tab": "Snapshots",
208
+ "portable.description": "Encrypted snapshots can be restored to a new device or shared with another platform account.",
209
+ "portable.policy": "Proxy settings are not restored. Template restores reset the system desktop.",
210
+ "portable.label": "Portable snapshot name",
211
+ "portable.kind": "Snapshot content",
212
+ "portable.full": "Full snapshot",
213
+ "portable.template": "Template snapshot",
214
+ "portable.fullHint": "Includes app login data and the saved device identity.",
215
+ "portable.templateHint": "Keeps installed apps, clears app data and creates a fresh device identity.",
216
+ "portable.save": "Create portable snapshot",
217
+ "portable.offline": "Connect the source device to create a snapshot. Existing snapshots can still be restored.",
218
+ "portable.unsupported": "Creating portable snapshots requires a virtual Android device. You can restore snapshots from the account library below.",
219
+ "portable.working": "Operation {id} is running. You can check its status after a connection interruption.",
220
+ "portable.check": "Check operation status",
221
+ "portable.unknown": "The result is not confirmed. Check the operation status or refresh the library before submitting again.",
222
+ "portable.failed": "Snapshot operation failed.",
223
+ "portable.saved": "Portable snapshot is ready.",
224
+ "portable.warning.proxy": "The device was restored, but some previous proxy settings could not be cleared. Check the device network settings before using it.",
225
+ "portable.warning.kernelsu": "The device was restored, but KernelSU initialization could not be verified. Check root access on the new device before running tasks that require it.",
226
+ "portable.warning.other": "The device was restored with a warning: {code}",
227
+ "portable.restored": "New device created: {id}",
228
+ "portable.empty": "No account snapshots yet.",
229
+ "portable.list": "Account snapshots",
230
+ "portable.owned": "Owned",
231
+ "portable.shared": "Shared with me",
232
+ "portable.state.pending": "Pending",
233
+ "portable.state.running": "Processing",
234
+ "portable.state.ready": "Ready",
235
+ "portable.state.failed": "Failed",
236
+ "portable.restore": "Restore to new device",
237
+ "portable.restoreTitle": "Create a device from snapshot",
238
+ "portable.restoreHint": "Creates a new device without changing the source. The server verifies image and runtime compatibility. Proxy settings are not restored.",
239
+ "portable.node": "Target node",
240
+ "portable.autoNode": "Choose a compatible node automatically",
241
+ "portable.share": "Manage access",
242
+ "portable.shareTitle": "Share snapshot",
243
+ "portable.shareHint": "The recipient can restore a new device. Full snapshots include login data. Revoking access stops future restores; it does not remove devices already created.",
244
+ "portable.user": "Recipient user UUID",
245
+ "portable.grant": "Grant access",
246
+ "portable.grants": "Snapshot access grants",
247
+ "portable.revoke": "Revoke access",
248
+ "portable.deleteTitle": "Delete portable snapshot?",
249
+ "portable.deleteHint": "Permanently removes this snapshot and its access grants. Devices already restored remain available.",
250
+ "portable.deleted": "Portable snapshot deleted.",
251
+ "snapshots.title": "Legacy device snapshots",
252
+ "snapshots.description": "Same-device data only. Historical identity is not included; fingerprint and proxy settings remain shared by this device. Save current changes before loading to keep them.",
204
253
  "snapshots.unsupported": "Data snapshots currently support virtual Android (redroid) devices only.",
205
254
  "snapshots.offline": "Device offline. Saved snapshots remain visible; connect the device to save, load or delete.",
206
255
  "snapshots.label": "Snapshot name",
@@ -830,6 +879,12 @@ var en = {
830
879
  "billing.kind.platform_session": "Device usage",
831
880
  "billing.kind.subscription": "Subscription",
832
881
  "billing.kind.own_node_daily": "Own-node daily",
882
+ "billing.kind.proxy_purchase": "AIxIPs purchase",
883
+ "billing.kind.proxy_refund": "AIxIPs refund",
884
+ "billing.kind.ip_hold": "IP purchase / usage reservation",
885
+ "billing.kind.ip_hold_release": "IP reservation released",
886
+ "billing.kind.ip_purchase": "IP purchase",
887
+ "billing.kind.ip_usage": "IP metered usage",
833
888
  "billing.kind.adjust": "Adjustment",
834
889
  "billing.subs": "Subscriptions",
835
890
  "billing.subs.empty": "No subscriptions.",
@@ -923,6 +978,9 @@ var zh = {
923
978
  "creation.startupNetwork": "\u8BBE\u5907\u542F\u52A8\u540E\u5B8C\u6210\u4EE3\u7406\u914D\u7F6E\uFF1B\u4EE3\u7406\u5E94\u7528\u786E\u8BA4\u524D\u53EF\u80FD\u4F7F\u7528\u539F\u7F51\u7EDC\u3002",
924
979
  "creation.title": "\u4F7F\u7528 AIxIps IP \u521B\u5EFA\u8BBE\u5907",
925
980
  "creation.network": "\u7F51\u7EDC\u51FA\u53E3",
981
+ "proxy.manualInput": "\u624B\u52A8\u8F93\u5165",
982
+ "proxy.chooseManaged": "\u9009\u62E9 AIxIPs \u4EE3\u7406",
983
+ "proxy.directHint": "\u8BBE\u5907\u5C06\u76F4\u63A5\u4F7F\u7528\u8282\u70B9\u7F51\u7EDC\u3002",
926
984
  "creation.managed": "AIxIps \u5730\u533A IP",
927
985
  "creation.custom": "\u81EA\u5B9A\u4E49\u4EE3\u7406\uFF08\u5907\u9009\uFF09",
928
986
  "creation.none": "\u4E0D\u4F7F\u7528\u4EE3\u7406",
@@ -1023,6 +1081,7 @@ var zh = {
1023
1081
  "managed.seconds": "{n} \u79D2",
1024
1082
  "managed.handshakeReservation": "\u5EFA\u7ACB\u8FDE\u63A5\u524D\u8FD8\u4F1A\u9884\u7559\u6700\u591A {kib} KiB \u7684\u8D39\u7528\uFF0C\u8FDE\u63A5\u5931\u8D25\u540C\u6837\u6D88\u8017\u8FD9\u90E8\u5206\u989D\u5EA6\u3002",
1025
1083
  "managed.reservations": "\u4E0A\u4E0B\u884C\u5206\u522B\u6309\u6700\u591A {kib} KiB \u4E00\u6BB5\u9884\u7559\u6D41\u91CF\u8D39\u7528\uFF1B\u672A\u7528\u5B8C\u6216\u4F20\u8F93\u5931\u8D25\u7684\u9884\u7559\u4E5F\u6D88\u8017\u989D\u5EA6\u3002",
1084
+ "managed.noVerifiedInventory": "\u5DF2\u8FDE\u63A5 AIxIPs\uFF0C\u5F53\u524D\u6682\u65E0\u5DF2\u6838\u5B9E\u7684\u53EF\u552E IP \u5546\u54C1\u3002",
1026
1085
  "managed.title": "AIxIps \u5185\u7F6E IP",
1027
1086
  "managed.description": "\u56FA\u5B9A\u6709\u6548\u671F\u4E0E\u91D1\u989D\u989D\u5EA6\uFF0C\u4E00\u6B21\u9884\u4ED8\u3002\u9009\u62E9\u56FA\u5B9A\u56FD\u5BB6\u5730\u533A\uFF0C\u4E0D\u81EA\u52A8\u7EED\u8D39\u3002",
1028
1087
  "managed.unsupported": "\u5185\u7F6E IP \u9700\u8981\u5DF2\u521B\u5EFA\u7684\u865A\u62DF Android \u8BBE\u5907\u53CA\u652F\u6301\u4EE3\u7406\u7684\u6240\u5C5E\u8282\u70B9\u3002",
@@ -1079,8 +1138,53 @@ var zh = {
1079
1138
  "managed.apply.failed": "\u8BBE\u5907\u5E94\u7528\u5931\u8D25",
1080
1139
  "managed.apply.superseded": "\u5DF2\u5207\u6362\u4E3A\u5176\u4ED6\u914D\u7F6E",
1081
1140
  "managed.apply.none": "\u5C1A\u672A\u5E94\u7528",
1082
- "snapshots.title": "\u6570\u636E\u5FEB\u7167",
1083
- "snapshots.description": "\u4FDD\u5B58\u548C\u52A0\u8F7D\u8BBE\u5907\u6570\u636E\u3002\u6307\u7EB9\u548C\u4EE3\u7406\u914D\u7F6E\u4ECD\u7531\u6B64\u8BBE\u5907\u5171\u4EAB\uFF0C\u4E0D\u968F\u5FEB\u7167\u6062\u590D\u3002\u82E5\u8981\u4FDD\u7559\u5F53\u524D\u6539\u52A8\uFF0C\u8BF7\u5148\u4FDD\u5B58\u518D\u52A0\u8F7D\u3002",
1141
+ "portable.title": "\u8D26\u53F7\u5FEB\u7167\u5E93",
1142
+ "portable.tab": "\u6570\u636E\u5FEB\u7167",
1143
+ "portable.description": "\u52A0\u5BC6\u5FEB\u7167\u53EF\u6062\u590D\u81F3\u65B0\u8BBE\u5907\uFF0C\u4E5F\u53EF\u6388\u6743\u7ED9\u5176\u4ED6\u5E73\u53F0\u8D26\u53F7\u3002",
1144
+ "portable.policy": "\u4E0D\u6062\u590D\u4EE3\u7406\u914D\u7F6E\u3002\u6A21\u677F\u6062\u590D\u4F1A\u91CD\u7F6E\u7CFB\u7EDF\u684C\u9762\u3002",
1145
+ "portable.label": "\u4FBF\u643A\u5FEB\u7167\u540D\u79F0",
1146
+ "portable.kind": "\u5FEB\u7167\u5185\u5BB9",
1147
+ "portable.full": "\u5168\u91CF\u5FEB\u7167",
1148
+ "portable.template": "\u6A21\u677F\u5FEB\u7167",
1149
+ "portable.fullHint": "\u5305\u542B\u5E94\u7528\u767B\u5F55\u6570\u636E\u548C\u5DF2\u4FDD\u5B58\u7684\u8BBE\u5907\u8EAB\u4EFD\u3002",
1150
+ "portable.templateHint": "\u4FDD\u7559\u5DF2\u5B89\u88C5\u5E94\u7528\uFF0C\u6E05\u9664\u5E94\u7528\u6570\u636E\u5E76\u751F\u6210\u65B0\u7684\u8BBE\u5907\u8EAB\u4EFD\u3002",
1151
+ "portable.save": "\u521B\u5EFA\u4FBF\u643A\u5FEB\u7167",
1152
+ "portable.offline": "\u6E90\u8BBE\u5907\u4E0A\u7EBF\u540E\u53EF\u521B\u5EFA\u5FEB\u7167\u3002\u5DF2\u6709\u5FEB\u7167\u4ECD\u53EF\u6062\u590D\u3002",
1153
+ "portable.unsupported": "\u521B\u5EFA\u4FBF\u643A\u5FEB\u7167\u9700\u8981 Android \u865A\u62DF\u8BBE\u5907\u3002\u53EF\u4ECE\u4E0B\u65B9\u8D26\u53F7\u5E93\u6062\u590D\u5DF2\u6709\u5FEB\u7167\u3002",
1154
+ "portable.working": "\u64CD\u4F5C {id} \u6B63\u5728\u5904\u7406\u3002\u8FDE\u63A5\u4E2D\u65AD\u540E\u53EF\u7EE7\u7EED\u67E5\u8BE2\u72B6\u6001\u3002",
1155
+ "portable.check": "\u7EE7\u7EED\u67E5\u8BE2\u64CD\u4F5C\u72B6\u6001",
1156
+ "portable.unknown": "\u7ED3\u679C\u5C1A\u672A\u786E\u8BA4\u3002\u518D\u6B21\u63D0\u4EA4\u524D\uFF0C\u8BF7\u67E5\u8BE2\u64CD\u4F5C\u72B6\u6001\u6216\u5237\u65B0\u5FEB\u7167\u5E93\u3002",
1157
+ "portable.failed": "\u5FEB\u7167\u64CD\u4F5C\u5931\u8D25\u3002",
1158
+ "portable.saved": "\u4FBF\u643A\u5FEB\u7167\u5DF2\u5C31\u7EEA\u3002",
1159
+ "portable.warning.proxy": "\u8BBE\u5907\u5DF2\u6062\u590D\uFF0C\u4F46\u90E8\u5206\u65E7\u4EE3\u7406\u8BBE\u7F6E\u672A\u80FD\u6E05\u9664\u3002\u4F7F\u7528\u524D\u8BF7\u68C0\u67E5\u8BBE\u5907\u7684\u7F51\u7EDC\u8BBE\u7F6E\u3002",
1160
+ "portable.warning.kernelsu": "\u8BBE\u5907\u5DF2\u6062\u590D\uFF0C\u4F46\u65E0\u6CD5\u786E\u8BA4 KernelSU \u521D\u59CB\u5316\u662F\u5426\u5B8C\u6210\u3002\u8FD0\u884C\u9700\u8981 root \u6743\u9650\u7684\u4EFB\u52A1\u524D\uFF0C\u8BF7\u5148\u68C0\u67E5\u65B0\u8BBE\u5907\u7684 root \u72B6\u6001\u3002",
1161
+ "portable.warning.other": "\u8BBE\u5907\u5DF2\u6062\u590D\uFF0C\u4F46\u6709\u4E00\u9879\u8B66\u544A\uFF1A{code}",
1162
+ "portable.restored": "\u65B0\u8BBE\u5907\u5DF2\u521B\u5EFA\uFF1A{id}",
1163
+ "portable.empty": "\u8D26\u53F7\u5E93\u6682\u65E0\u5FEB\u7167\u3002",
1164
+ "portable.list": "\u8D26\u53F7\u5FEB\u7167",
1165
+ "portable.owned": "\u6211\u521B\u5EFA\u7684",
1166
+ "portable.shared": "\u6388\u6743\u7ED9\u6211\u7684",
1167
+ "portable.state.pending": "\u7B49\u5F85\u4E2D",
1168
+ "portable.state.running": "\u5904\u7406\u4E2D",
1169
+ "portable.state.ready": "\u5C31\u7EEA",
1170
+ "portable.state.failed": "\u5931\u8D25",
1171
+ "portable.restore": "\u6062\u590D\u81F3\u65B0\u8BBE\u5907",
1172
+ "portable.restoreTitle": "\u4ECE\u5FEB\u7167\u521B\u5EFA\u65B0\u8BBE\u5907",
1173
+ "portable.restoreHint": "\u521B\u5EFA\u65B0\u8BBE\u5907\uFF0C\u6E90\u8BBE\u5907\u4FDD\u6301\u4E0D\u53D8\u3002\u670D\u52A1\u5668\u4F1A\u9A8C\u8BC1\u7CFB\u7EDF\u955C\u50CF\u548C\u8FD0\u884C\u73AF\u5883\u517C\u5BB9\u6027\uFF0C\u4E0D\u6062\u590D\u4EE3\u7406\u914D\u7F6E\u3002",
1174
+ "portable.node": "\u76EE\u6807\u8282\u70B9",
1175
+ "portable.autoNode": "\u81EA\u52A8\u9009\u62E9\u517C\u5BB9\u8282\u70B9",
1176
+ "portable.share": "\u7BA1\u7406\u6388\u6743",
1177
+ "portable.shareTitle": "\u6388\u6743\u5FEB\u7167",
1178
+ "portable.shareHint": "\u88AB\u6388\u6743\u8D26\u53F7\u53EF\u6062\u590D\u65B0\u8BBE\u5907\u3002\u5168\u91CF\u5FEB\u7167\u5305\u542B\u767B\u5F55\u6570\u636E\u3002\u64A4\u9500\u540E\u65E0\u6CD5\u518D\u6B21\u6062\u590D\uFF0C\u4F46\u5DF2\u521B\u5EFA\u7684\u8BBE\u5907\u4E0D\u4F1A\u88AB\u5220\u9664\u3002",
1179
+ "portable.user": "\u88AB\u6388\u6743\u7528\u6237 UUID",
1180
+ "portable.grant": "\u6388\u4E88\u8BBF\u95EE\u6743\u9650",
1181
+ "portable.grants": "\u5FEB\u7167\u6388\u6743\u5217\u8868",
1182
+ "portable.revoke": "\u64A4\u9500\u6388\u6743",
1183
+ "portable.deleteTitle": "\u5220\u9664\u4FBF\u643A\u5FEB\u7167\uFF1F",
1184
+ "portable.deleteHint": "\u6C38\u4E45\u5220\u9664\u6B64\u5FEB\u7167\u53CA\u5176\u6388\u6743\uFF0C\u5DF2\u6062\u590D\u7684\u8BBE\u5907\u4ECD\u7136\u4FDD\u7559\u3002",
1185
+ "portable.deleted": "\u4FBF\u643A\u5FEB\u7167\u5DF2\u5220\u9664\u3002",
1186
+ "snapshots.title": "\u65E7\u7248\u8BBE\u5907\u5FEB\u7167",
1187
+ "snapshots.description": "\u4EC5\u4FDD\u5B58\u548C\u52A0\u8F7D\u540C\u4E00\u8BBE\u5907\u7684\u6570\u636E\uFF0C\u4E0D\u5305\u542B\u5386\u53F2\u8EAB\u4EFD\u3002\u6307\u7EB9\u548C\u4EE3\u7406\u914D\u7F6E\u4ECD\u7531\u6B64\u8BBE\u5907\u5171\u4EAB\uFF0C\u4E0D\u968F\u5FEB\u7167\u6062\u590D\u3002\u82E5\u8981\u4FDD\u7559\u5F53\u524D\u6539\u52A8\uFF0C\u8BF7\u5148\u4FDD\u5B58\u518D\u52A0\u8F7D\u3002",
1084
1188
  "snapshots.unsupported": "\u6570\u636E\u5FEB\u7167\u76EE\u524D\u4EC5\u652F\u6301 Android \u865A\u62DF\u8BBE\u5907\uFF08redroid\uFF09\u3002",
1085
1189
  "snapshots.offline": "\u8BBE\u5907\u79BB\u7EBF\uFF0C\u53EF\u67E5\u770B\u5DF2\u6709\u5FEB\u7167\uFF1B\u4E0A\u7EBF\u540E\u624D\u80FD\u4FDD\u5B58\u3001\u52A0\u8F7D\u6216\u5220\u9664\u3002",
1086
1190
  "snapshots.label": "\u5FEB\u7167\u540D\u79F0",
@@ -1709,6 +1813,12 @@ var zh = {
1709
1813
  "billing.kind.platform_session": "\u8BBE\u5907\u65F6\u957F",
1710
1814
  "billing.kind.subscription": "\u8BA2\u9605",
1711
1815
  "billing.kind.own_node_daily": "\u81EA\u6709\u8282\u70B9\u65E5\u8D39",
1816
+ "billing.kind.proxy_purchase": "AIxIPs \u4EE3\u7406\u91C7\u8D2D",
1817
+ "billing.kind.proxy_refund": "AIxIPs \u91C7\u8D2D\u9000\u6B3E",
1818
+ "billing.kind.ip_hold": "IP \u91C7\u8D2D\uFF0F\u7528\u91CF\u8D44\u91D1\u9884\u7559",
1819
+ "billing.kind.ip_hold_release": "IP \u9884\u7559\u8D44\u91D1\u91CA\u653E",
1820
+ "billing.kind.ip_purchase": "IP \u91C7\u8D2D\u8D39\u7528",
1821
+ "billing.kind.ip_usage": "IP \u5B9E\u9645\u7528\u91CF\u8D39\u7528",
1712
1822
  "billing.kind.adjust": "\u8C03\u6574",
1713
1823
  "billing.subs": "\u8BA2\u9605",
1714
1824
  "billing.subs.empty": "\u6682\u65E0\u8BA2\u9605\u3002",
@@ -1,4 +1,4 @@
1
- import { cn } from './chunk-SKTL6ACT.js';
1
+ import { cn } from './chunk-VMA3QOYR.js';
2
2
  import { useRef, useMemo, useEffect } from 'react';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4