@huyooo/ui 2.1.13 → 2.1.14

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.
@@ -2,17 +2,17 @@
2
2
  import "./userMenuModal-D-nDaYqM.js";
3
3
  import "./apiClients-CWSwNzGk.js";
4
4
  /* empty css */
5
- import { defineComponent as Q, computed as T, onMounted as J, onUnmounted as oe, openBlock as t, createElementBlock as n, createElementVNode as i, unref as e, createBlock as V, toDisplayString as a, createVNode as p, withCtx as h, createTextVNode as B, resolveDirective as ce, withDirectives as ue, normalizeClass as w, Fragment as I, renderList as C, createCommentVNode as P } from "vue";
5
+ import { defineComponent as V, computed as w, onMounted as J, onUnmounted as oe, openBlock as t, createElementBlock as n, createElementVNode as i, unref as e, createBlock as z, toDisplayString as a, createVNode as p, withCtx as h, createTextVNode as B, resolveDirective as ce, withDirectives as ue, normalizeClass as I, Fragment as C, renderList as T, createCommentVNode as P } from "vue";
6
6
  import { Spin as X, Button as R, Message as de } from "@arco-design/web-vue";
7
7
  import { useRoute as _e, useRouter as ge } from "vue-router";
8
8
  import { a as Pe } from "./PaySubscriptions-pEZtjp1g.js";
9
- import { _ as z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { L as me, a as fe, b as pe } from "./LandingPageSectionHeader-3hiuw6G0.js";
11
11
  import { Icon as Y } from "@iconify/vue";
12
- import { u as ve, a as ye } from "./useSubscriptionCheckout-Dmg0kt4F.js";
12
+ import { u as ve, a as ye } from "./useSubscriptionCheckout-CZZLk_1d.js";
13
13
  import { u as he } from "./useEnsureAuthenticated-RZ1DflLz.js";
14
14
  const _t = "/Pay/Return";
15
- function M(r) {
15
+ function Q(r) {
16
16
  const d = typeof r.scene == "string" ? r.scene : null, o = typeof r.orderId == "string" ? r.orderId : null, c = typeof r.returnTo == "string" ? r.returnTo.trim() : null, g = c != null && c.startsWith("/") && !c.startsWith("//") ? c : null;
17
17
  return d !== "subscription" && d !== "recharge" && d !== "agreement" ? {
18
18
  scene: null,
@@ -27,7 +27,7 @@ function M(r) {
27
27
  function ke(r, d) {
28
28
  const {
29
29
  returnTo: o
30
- } = M(r);
30
+ } = Q(r);
31
31
  return o || d;
32
32
  }
33
33
  const be = {
@@ -46,7 +46,7 @@ const be = {
46
46
  }, Be = {
47
47
  key: 4,
48
48
  class: "payment-return-actions"
49
- }, Re = /* @__PURE__ */ Q({
49
+ }, Re = /* @__PURE__ */ V({
50
50
  __name: "PaymentReturnPage",
51
51
  props: {
52
52
  defaultReturnTo: {
@@ -65,7 +65,7 @@ const be = {
65
65
  confirmPayment: A,
66
66
  stopPolling: F,
67
67
  verifyNow: D
68
- } = Pe(g), S = T(() => u.value === "success" ? "支付成功" : u.value === "failed" ? "支付未完成" : "正在确认支付");
68
+ } = Pe(g), S = w(() => u.value === "success" ? "支付成功" : u.value === "failed" ? "支付未完成" : "正在确认支付");
69
69
  function $() {
70
70
  c.replace(g());
71
71
  }
@@ -73,7 +73,7 @@ const be = {
73
73
  const {
74
74
  scene: m,
75
75
  orderId: l
76
- } = M(o.query);
76
+ } = Q(o.query);
77
77
  if (!m || !l) {
78
78
  de.error("支付参数无效");
79
79
  return;
@@ -95,7 +95,7 @@ const be = {
95
95
  const {
96
96
  scene: m,
97
97
  orderId: l
98
- } = M(o.query);
98
+ } = Q(o.query);
99
99
  if (!m || !l) {
100
100
  u.value = "failed", v.value = "缺少支付回跳参数";
101
101
  return;
@@ -107,7 +107,7 @@ const be = {
107
107
  return;
108
108
  }
109
109
  A(m, l);
110
- }), oe(F), (m, l) => (t(), n("div", be, [i("div", Ie, [e(u) === "loading" ? (t(), V(e(X), {
110
+ }), oe(F), (m, l) => (t(), n("div", be, [i("div", Ie, [e(u) === "loading" ? (t(), z(e(X), {
111
111
  key: 0,
112
112
  size: 36
113
113
  })) : e(u) === "success" ? (t(), n("div", Ce, "✓")) : (t(), n("div", Te, "!")), i("h1", null, a(S.value), 1), i("p", null, a(e(v)), 1), e(u) === "loading" ? (t(), n("div", we, [p(e(R), {
@@ -130,7 +130,7 @@ const be = {
130
130
  _: 1
131
131
  })]))])]));
132
132
  }
133
- }), gt = /* @__PURE__ */ z(Re, [["__scopeId", "data-v-65b534f9"]]), Le = /* @__PURE__ */ Q({
133
+ }), gt = /* @__PURE__ */ H(Re, [["__scopeId", "data-v-65b534f9"]]), Le = /* @__PURE__ */ V({
134
134
  __name: "PricingFAQ",
135
135
  props: {
136
136
  title: {
@@ -171,8 +171,8 @@ const be = {
171
171
  }, {
172
172
  question: "使用订阅服务有什么限制?",
173
173
  answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
174
- }], o = r, c = T(() => o.faqItems ?? d);
175
- return (g, u) => (t(), V(me, {
174
+ }], o = r, c = w(() => o.faqItems ?? d);
175
+ return (g, u) => (t(), z(me, {
176
176
  class: "PricingFAQ"
177
177
  }, {
178
178
  BlockHeader: h(() => [p(pe, {
@@ -186,7 +186,7 @@ const be = {
186
186
  _: 1
187
187
  }));
188
188
  }
189
- }), Pt = /* @__PURE__ */ z(Le, [["__scopeId", "data-v-fcab2f05"]]), Se = {
189
+ }), Pt = /* @__PURE__ */ H(Le, [["__scopeId", "data-v-fcab2f05"]]), Se = {
190
190
  class: "PricingPlans"
191
191
  }, $e = {
192
192
  class: "PricingPlans__trialMain"
@@ -240,7 +240,7 @@ const be = {
240
240
  }, Je = {
241
241
  key: 3,
242
242
  class: "PricingPlans__empty"
243
- }, Xe = /* @__PURE__ */ Q({
243
+ }, Xe = /* @__PURE__ */ V({
244
244
  __name: "PricingPlans",
245
245
  props: {
246
246
  appName: {
@@ -270,14 +270,14 @@ const be = {
270
270
  getDisplayPrice: m,
271
271
  getDisplayOriginalPrice: l,
272
272
  getDisplayCycle: k,
273
- getPromotionLabel: H,
273
+ getPromotionLabel: G,
274
274
  getBadgeLabels: Z,
275
275
  getButtonLabel: ee,
276
- getPlanSummary: G,
277
- getFeatureGroups: K,
278
- loadCurrentSubscription: O,
276
+ getPlanSummary: K,
277
+ getFeatureGroups: O,
278
+ loadCurrentSubscription: U,
279
279
  refresh: te
280
- } = ve(d.defaultInterval), b = T(() => {
280
+ } = ve(d.defaultInterval), b = w(() => {
281
281
  if (!g.value)
282
282
  for (const f of o.value) {
283
283
  const _ = f.prices.find((x) => x.type === "free");
@@ -288,76 +288,76 @@ const be = {
288
288
  selectedPrice: _
289
289
  };
290
290
  }
291
- }), q = T(() => c.value.filter((f) => !$(f))), ne = T(() => !!localStorage.getItem("jwtToken")), U = T(() => !!F.value), {
291
+ }), q = w(() => c.value.filter((f) => !$(f))), ne = w(() => !!localStorage.getItem("jwtToken")), W = w(() => !!F.value), {
292
292
  checkout: se,
293
293
  isCheckingOut: ie
294
294
  } = ye({
295
295
  currentSubscription: g,
296
- refreshCurrentSubscription: O
296
+ refreshCurrentSubscription: U
297
297
  }), {
298
298
  ensureAuthenticated: re
299
299
  } = he();
300
300
  function ae(f) {
301
301
  return f === 1 ? "适合团队协作与更高频使用" : "适合个人和轻量团队使用";
302
302
  }
303
- function W(f) {
304
- return K(f.features).flatMap((_) => _.items).slice(0, 3);
303
+ function j(f) {
304
+ return O(f.features).flatMap((_) => _.items).slice(0, 3);
305
305
  }
306
306
  function le() {
307
307
  re(() => {
308
- O();
308
+ U();
309
309
  });
310
310
  }
311
311
  return J(() => {
312
312
  te();
313
313
  }), (f, _) => {
314
314
  const x = ce("motion-slide-top");
315
- return t(), n("section", Se, [ue((t(), V(e(X), {
315
+ return t(), n("section", Se, [ue((t(), z(e(X), {
316
316
  loading: e(u),
317
317
  tip: "数据加载中",
318
318
  class: "PricingPlans__spin"
319
319
  }, {
320
320
  default: h(() => [b.value ? (t(), n("article", {
321
321
  key: 0,
322
- class: w(["PricingPlans__trial", {
323
- "is-current": U.value
322
+ class: I(["PricingPlans__trial", {
323
+ "is-current": W.value
324
324
  }])
325
- }, [i("div", $e, [i("div", qe, [i("h2", null, a(b.value.name), 1), i("p", null, a(b.value.description || e(G)(b.value, 0)), 1), W(b.value).length ? (t(), n("ul", Ae, [(t(!0), n(I, null, C(W(b.value), (s) => (t(), n("li", {
325
+ }, [i("div", $e, [i("div", qe, [i("h2", null, a(b.value.name), 1), i("p", null, a(b.value.description || e(K)(b.value, 0)), 1), j(b.value).length ? (t(), n("ul", Ae, [(t(!0), n(C, null, T(j(b.value), (s) => (t(), n("li", {
326
326
  key: s.title
327
327
  }, [p(e(Y), {
328
328
  icon: "mingcute:check-circle-fill",
329
329
  class: "PricingPlans__trialFeatureIcon"
330
- }), i("span", null, a(s.title), 1)]))), 128))])) : P("", !0)]), ne.value ? U.value ? (t(), n("div", De, " 已开通 ")) : P("", !0) : (t(), n("div", Fe, [p(e(R), {
330
+ }), i("span", null, a(s.title), 1)]))), 128))])) : P("", !0)]), ne.value ? W.value ? (t(), n("div", De, " 已开通 ")) : P("", !0) : (t(), n("div", Fe, [p(e(R), {
331
331
  size: "large",
332
332
  class: "PricingPlans__trialButton",
333
333
  onClick: le
334
334
  }, {
335
335
  default: h(() => [..._[0] || (_[0] = [B(" 免费注册 ", -1)])]),
336
336
  _: 1
337
- })]))])], 2)) : P("", !0), q.value.length ? (t(), n("div", Ne, [e(L).length > 1 ? (t(), n("div", xe, [(t(!0), n(I, null, C(e(L), (s) => (t(), n("button", {
337
+ })]))])], 2)) : P("", !0), q.value.length ? (t(), n("div", Ne, [e(L).length > 1 ? (t(), n("div", xe, [(t(!0), n(C, null, T(e(L), (s) => (t(), n("button", {
338
338
  key: s.value,
339
339
  type: "button",
340
- class: w(["PricingPlans__toggleItem", {
340
+ class: I(["PricingPlans__toggleItem", {
341
341
  "is-active": e(v) === s.value
342
342
  }]),
343
343
  onClick: (E) => e(A)(s.value)
344
344
  }, [i("span", null, a(s.label), 1), s.badge ? (t(), n("span", Me, a(s.badge), 1)) : P("", !0)], 10, Ee))), 128))])) : P("", !0), r.note ? (t(), n("p", Qe, a(r.note), 1)) : P("", !0)])) : P("", !0), q.value.length ? (t(), n("div", {
345
345
  key: 2,
346
- class: w(["PricingPlans__grid", {
346
+ class: I(["PricingPlans__grid", {
347
347
  "PricingPlans__grid--compact": q.value.length <= 2
348
348
  }])
349
- }, [(t(!0), n(I, null, C(q.value, (s, E) => (t(), n("article", {
349
+ }, [(t(!0), n(C, null, T(q.value, (s, E) => (t(), n("article", {
350
350
  key: s.id,
351
- class: w(["PricingPlans__card", {
351
+ class: I(["PricingPlans__card", {
352
352
  "is-recommended": e(S)(s),
353
353
  "is-current": e(D)(s)
354
354
  }])
355
- }, [i("div", Ve, [(t(!0), n(I, null, C(e(Z)(s), (y) => (t(), n("span", {
355
+ }, [i("div", Ve, [(t(!0), n(C, null, T(e(Z)(s), (y) => (t(), n("span", {
356
356
  key: y.type,
357
- class: w(["PricingPlans__badge", `is-${y.type}`])
357
+ class: I(["PricingPlans__badge", `is-${y.type}`])
358
358
  }, a(y.label), 3))), 128))]), i("div", ze, [i("h2", null, a(s.name), 1), i("p", null, a(s.description || ae(E)), 1)]), i("div", He, [e(l)(s) ? (t(), n("span", Ge, " ¥" + a(e(l)(s)), 1)) : P("", !0), _[1] || (_[1] = i("span", {
359
359
  class: "PricingPlans__currency"
360
- }, "¥", -1)), i("span", Ke, a(e(m)(s)), 1), i("span", Oe, a(e(k)(s)), 1)]), e(H)(s) ? (t(), n("p", Ue, a(e(H)(s)), 1)) : P("", !0), i("p", We, a(e(G)(s, E)), 1), p(e(R), {
360
+ }, "¥", -1)), i("span", Ke, a(e(m)(s)), 1), i("span", Oe, a(e(k)(s)), 1)]), e(G)(s) ? (t(), n("p", Ue, a(e(G)(s)), 1)) : P("", !0), i("p", We, a(e(K)(s, E)), 1), p(e(R), {
361
361
  long: "",
362
362
  size: "large",
363
363
  class: "PricingPlans__button",
@@ -370,25 +370,28 @@ const be = {
370
370
  _: 2
371
371
  }, 1032, ["type", "loading", "disabled", "onClick"]), _[2] || (_[2] = i("div", {
372
372
  class: "PricingPlans__divider"
373
- }, null, -1)), i("div", je, [(t(!0), n(I, null, C(e(K)(s.features), (y) => (t(), n("section", {
373
+ }, null, -1)), i("div", je, [(t(!0), n(C, null, T(e(O)(s.features), (y) => (t(), n("section", {
374
374
  key: y.title,
375
375
  class: "PricingPlans__featureGroup"
376
- }, [i("h3", null, a(y.title), 1), i("ul", Ye, [(t(!0), n(I, null, C(y.items, (j) => (t(), n("li", {
377
- key: j.title
376
+ }, [i("h3", null, a(y.title), 1), i("ul", Ye, [(t(!0), n(C, null, T(y.items, (M) => (t(), n("li", {
377
+ key: M.title,
378
+ class: I({
379
+ "is-highlight": M.highlight
380
+ })
378
381
  }, [p(e(Y), {
379
382
  icon: "mingcute:check-circle-fill",
380
383
  class: "PricingPlans__featureIcon"
381
- }), i("span", null, a(j.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !b.value && !e(u) ? (t(), n("div", Je, " 当前暂无可订阅方案 ")) : P("", !0)]),
384
+ }), i("span", null, a(M.title), 1)], 2))), 128))])]))), 128))])], 2))), 128))], 2)) : !b.value && !e(u) ? (t(), n("div", Je, " 当前暂无可订阅方案 ")) : P("", !0)]),
382
385
  _: 1
383
386
  }, 8, ["loading"])), [[x]])]);
384
387
  };
385
388
  }
386
- }), mt = /* @__PURE__ */ z(Xe, [["__scopeId", "data-v-3c0af18c"]]);
389
+ }), mt = /* @__PURE__ */ H(Xe, [["__scopeId", "data-v-26e2902b"]]);
387
390
  export {
388
391
  _t as P,
389
392
  gt as a,
390
393
  Pt as b,
391
394
  mt as c,
392
- M as p,
395
+ Q as p,
393
396
  ke as r
394
397
  };
@@ -78,6 +78,8 @@ export interface BillingTrial {
78
78
  export interface BillingFeatureItem {
79
79
  title: string;
80
80
  description: string;
81
+ /** 定价卡上视觉强调,不影响是否展示 */
82
+ highlight?: boolean;
81
83
  }
82
84
  export interface BillingFeatureGroup {
83
85
  title: string;
@@ -10,7 +10,7 @@ import { u as E } from "./useMessageNotifications-pxa5LHjV.js";
10
10
  import { c as y, g as B, a as H, s as I, u as _ } from "./runtime-DDJRAtkv.js";
11
11
  import { u as F, a as K, b as N, c as V, d as Y } from "./usePageSEO-B3stKP3n.js";
12
12
  import { u as q } from "./useUserMenu-ClPBlvaM.js";
13
- import { u as J, a as Q } from "./useSubscriptionCheckout-Dmg0kt4F.js";
13
+ import { u as J, a as Q } from "./useSubscriptionCheckout-CZZLk_1d.js";
14
14
  import { c as X, u as Z, a as $, b as ee } from "./useBillingStatusOptions-C6edto7H.js";
15
15
  export {
16
16
  r as LEGAL_DOCS,
package/dist/main.js CHANGED
@@ -13,7 +13,7 @@ import { H as x3, b as v3, d as Z3, c as V3, a as H3, s as U3, u as E3 } from ".
13
13
  import { b as N } from "./usePageSEO-B3stKP3n.js";
14
14
  import { u as S3, a as A3, c as G3, d as D3 } from "./usePageSEO-B3stKP3n.js";
15
15
  import { u as b3 } from "./useUserMenu-ClPBlvaM.js";
16
- import { u as O3, a as T3 } from "./useSubscriptionCheckout-Dmg0kt4F.js";
16
+ import { u as O3, a as T3 } from "./useSubscriptionCheckout-CZZLk_1d.js";
17
17
  import { c as $3, u as N3, a as R3, b as j3 } from "./useBillingStatusOptions-C6edto7H.js";
18
18
  import { A as W3, B as Y3, a as q3, _ as Q3, b as K3, O as J3, P as X3, c as e4, d as t4, e as o4, f as a4, S as s4, g as i4, h as n4, u as r4, i as c4 } from "./AuthkitAppSetting-CHVSyEY1.js";
19
19
  import { A as l4, a as d4, b as p4, c as f4, d as u4, E as h4, e as g4, f as _4, g as m4, O as L4, h as F4, P as w4, i as y4, j as M4, _ as x4, R as v4, S as Z4, k as V4, l as H4, m as U4, n as E4, o as k4, p as S4, L as A4 } from "./LegalDocViewer-DiNoy_oj.js";
@@ -32,7 +32,7 @@ import { C as h7, a as g7 } from "./CollapseItem-DUzZA6tx.js";
32
32
  import { C as m7, E as L7 } from "./CustomTable-BY0oHLXc.js";
33
33
  import { M as w7, a as y7 } from "./Menu-uCexrsKP.js";
34
34
  import { P as x7, u as v7, a as Z7, v as V7 } from "./PaySubscriptions-pEZtjp1g.js";
35
- import { P as U7, a as E7, b as k7, c as S7, p as A7, r as G7 } from "./PricingPlans-rArK_Fv1.js";
35
+ import { P as U7, a as E7, b as k7, c as S7, p as A7, r as G7 } from "./PricingPlans-CpkbxJQW.js";
36
36
  import { useBillingSubscriptionSummary as P7 } from "./useBillingSubscriptionSummary-BC3G0N4t.js";
37
37
  import { R as B7 } from "./ReferrerReferees-t5s4LzbY.js";
38
38
  import { _ as T7 } from "./Upload.vue_vue_type_script_setup_true_lang-DsrqOACa.js";
package/dist/pay.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { P as e, u as t, a as n, v as r } from "./PaySubscriptions-pEZtjp1g.js";
2
- import { P as i, a as o, b as P, c as p, p as m, r as c } from "./PricingPlans-rArK_Fv1.js";
3
- import { u as g, a as y } from "./useSubscriptionCheckout-Dmg0kt4F.js";
2
+ import { P as i, a as o, b as P, c as p, p as m, r as c } from "./PricingPlans-CpkbxJQW.js";
3
+ import { u as g, a as y } from "./useSubscriptionCheckout-CZZLk_1d.js";
4
4
  import { useBillingSubscriptionSummary as R } from "./useBillingSubscriptionSummary-BC3G0N4t.js";
5
5
  import { c as b, u as x, a as v, b as O } from "./useBillingStatusOptions-C6edto7H.js";
6
6
  export {