@huyooo/ui 0.15.1 → 0.16.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/{AuthkitAppSetting-Ds7mYFV5.js → AuthkitAppSetting-v80fEiq0.js} +1 -1
- package/dist/{AuthkitGithubBinding-LVDS1PNQ.js → AuthkitGithubBinding-CVhCM6AX.js} +1 -1
- package/dist/{FeedbackItem-DkvSQT33.js → FeedbackItem-BP-SiJ2u.js} +98 -184
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-CAGBbiZD.js +1396 -0
- package/dist/{MessageHandle-CEQtGyVZ.js → MessageHandle-BMhGWVHD.js} +54 -54
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-87v_RIQa.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-ByB_YaVb.js} +1 -1
- package/dist/{PricingPlans-ClKLdoVv.js → PricingPlans-DXea7rl0.js} +76 -77
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DLKSHzxG.js → Upload.vue_vue_type_script_setup_true_lang-CXr8D4VG.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-C7mV8kGe.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-6xQNhFk3.js} +16 -16
- package/dist/{WidthContainer-DKasAIgU.js → WidthContainer-DVZQV6sM.js} +2 -2
- package/dist/authkit.js +2 -2
- package/dist/common.js +1 -1
- package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +11 -14
- package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +11 -14
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -0
- package/dist/components/Feedback/FeedbackForm.vue.d.ts +1 -0
- package/dist/components/Feedback/FeedbackMessageAttachments.vue.d.ts +15 -0
- package/dist/components/Feedback/FeedbackVideoPreview.vue.d.ts +33 -0
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +1 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +1 -19
- package/dist/composables/feedbackAttachmentPolicy.d.ts +6 -0
- package/dist/composables/uploadFeedbackAttachment.d.ts +9 -0
- package/dist/composables/useFeedbackPendingAttachments.d.ts +98 -0
- package/dist/composables.js +2 -2
- package/dist/feedback.d.ts +0 -1
- package/dist/feedback.js +8 -9
- package/dist/main.js +119 -120
- package/dist/message.js +3 -3
- package/dist/pay.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/api/billing.generated.d.ts +0 -4
- package/dist/types/api/ones.generated.d.ts +46 -8
- package/dist/types/feedback.d.ts +12 -44
- package/dist/upload.js +2 -2
- package/dist/{useSubscriptionCheckout-CfFdAhTR.js → useSubscriptionCheckout-BjPiHSjA.js} +103 -104
- package/dist/{useUploadCos-CvG6EL5Q.js → useUploadCos-DOHnz2MP.js} +5 -3
- package/dist/user.js +1 -1
- package/dist/utils/feedbackMessage.d.ts +8 -0
- package/package.json +1 -1
- package/dist/FeedbackModal-C45pNoiw.js +0 -1050
- package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +0 -19
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as o, defineComponent as T, openBlock as i, createBlock as C, unref as a, withCtx as v, createVNode as N, createCommentVNode as M, createElementBlock as w, createTextVNode as L, toDisplayString as
|
|
1
|
+
import { ref as o, defineComponent as T, openBlock as i, createBlock as C, unref as a, withCtx as v, createVNode as N, createCommentVNode as M, createElementBlock as w, createTextVNode as L, toDisplayString as $, createElementVNode as V, Fragment as W, renderList as Q, normalizeClass as G, watch as X, computed as F, useModel as Y, isRef as Z, mergeModels as j } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { U as ee } from "./index-D3Kp6R4z.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
import { M as q } from "./MessageList-CrCF8mU6.js";
|
|
7
|
-
import { Spin as te, Breadcrumb as K, BreadcrumbItem as
|
|
7
|
+
import { Spin as te, Breadcrumb as K, BreadcrumbItem as I, Tag as D, Modal as ae } from "@arco-design/web-vue";
|
|
8
8
|
import { o as x } from "./apiClients-DT7o0IpO.js";
|
|
9
9
|
import { TiptapEditor as se, TiptapTitle as ne } from "@huyooo/vue-tiptap";
|
|
10
|
-
import { _ as
|
|
10
|
+
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
import { Icon as le } from "@iconify/vue";
|
|
12
12
|
import { u as ie } from "./useAuthkitCreateAndUpdate-MzA4qtTh.js";
|
|
13
13
|
import { M as oe } from "./Menu-Cy2ZPeaz.js";
|
|
@@ -136,7 +136,7 @@ const ue = /* @__PURE__ */ T({
|
|
|
136
136
|
_: 1
|
|
137
137
|
}, 8, ["loading"]));
|
|
138
138
|
}
|
|
139
|
-
}), B = /* @__PURE__ */
|
|
139
|
+
}), B = /* @__PURE__ */ U(ue, [["__scopeId", "data-v-6ccdedc3"]]), re = /* @__PURE__ */ T({
|
|
140
140
|
__name: "MessageChangelogNotificationsDetails",
|
|
141
141
|
props: {
|
|
142
142
|
id: {
|
|
@@ -206,12 +206,12 @@ const ue = /* @__PURE__ */ T({
|
|
|
206
206
|
key: 0,
|
|
207
207
|
class: "message-panel__breadcrumb"
|
|
208
208
|
}, {
|
|
209
|
-
default: v(() => [N(a(
|
|
209
|
+
default: v(() => [N(a(I), {
|
|
210
210
|
onClick: a(e)
|
|
211
211
|
}, {
|
|
212
212
|
default: v(() => [...m[0] || (m[0] = [L("更新日志", -1)])]),
|
|
213
213
|
_: 1
|
|
214
|
-
}, 8, ["onClick"]), N(a(
|
|
214
|
+
}, 8, ["onClick"]), N(a(I), null, {
|
|
215
215
|
default: v(() => [...m[1] || (m[1] = [L("详情", -1)])]),
|
|
216
216
|
_: 1
|
|
217
217
|
})]),
|
|
@@ -226,25 +226,25 @@ const ue = /* @__PURE__ */ T({
|
|
|
226
226
|
}, {
|
|
227
227
|
prefix: v(({
|
|
228
228
|
item: y
|
|
229
|
-
}) => [V("span", de,
|
|
229
|
+
}) => [V("span", de, $(y.version), 1)]),
|
|
230
230
|
tags: v(({
|
|
231
231
|
item: y
|
|
232
|
-
}) => [N(a(
|
|
232
|
+
}) => [N(a(D), {
|
|
233
233
|
color: n(y.changeType),
|
|
234
234
|
size: "small"
|
|
235
235
|
}, {
|
|
236
|
-
default: v(() => [L(
|
|
236
|
+
default: v(() => [L($(A(y.changeType)), 1)]),
|
|
237
237
|
_: 2
|
|
238
238
|
}, 1032, ["color"])]),
|
|
239
239
|
footer: v(({
|
|
240
240
|
item: y
|
|
241
|
-
}) => [y.publishedAt ? (i(), w("span", pe, " 发布于 " +
|
|
241
|
+
}) => [y.publishedAt ? (i(), w("span", pe, " 发布于 " + $(y.publishedAt), 1)) : M("", !0)]),
|
|
242
242
|
_: 1
|
|
243
243
|
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (i(), w("div", fe, [N(re, {
|
|
244
244
|
id: a(g)
|
|
245
245
|
}, null, 8, ["id"])]))]));
|
|
246
246
|
}
|
|
247
|
-
}), ve = /* @__PURE__ */
|
|
247
|
+
}), ve = /* @__PURE__ */ U(ge, [["__scopeId", "data-v-d65989f5"]]), me = /* @__PURE__ */ T({
|
|
248
248
|
__name: "MessageEventNotificationsDetails",
|
|
249
249
|
props: {
|
|
250
250
|
id: {
|
|
@@ -315,12 +315,12 @@ const ue = /* @__PURE__ */ T({
|
|
|
315
315
|
key: 0,
|
|
316
316
|
class: "message-panel__breadcrumb"
|
|
317
317
|
}, {
|
|
318
|
-
default: v(() => [N(a(
|
|
318
|
+
default: v(() => [N(a(I), {
|
|
319
319
|
onClick: a(e)
|
|
320
320
|
}, {
|
|
321
321
|
default: v(() => [...m[0] || (m[0] = [L("活动通知", -1)])]),
|
|
322
322
|
_: 1
|
|
323
|
-
}, 8, ["onClick"]), N(a(
|
|
323
|
+
}, 8, ["onClick"]), N(a(I), null, {
|
|
324
324
|
default: v(() => [...m[1] || (m[1] = [L("详情", -1)])]),
|
|
325
325
|
_: 1
|
|
326
326
|
})]),
|
|
@@ -335,22 +335,22 @@ const ue = /* @__PURE__ */ T({
|
|
|
335
335
|
}, {
|
|
336
336
|
tags: v(({
|
|
337
337
|
item: y
|
|
338
|
-
}) => [N(a(
|
|
338
|
+
}) => [N(a(D), {
|
|
339
339
|
color: n(y.displayStatus),
|
|
340
340
|
size: "small"
|
|
341
341
|
}, {
|
|
342
|
-
default: v(() => [L(
|
|
342
|
+
default: v(() => [L($(A(y.displayStatus)), 1)]),
|
|
343
343
|
_: 2
|
|
344
344
|
}, 1032, ["color"])]),
|
|
345
345
|
footer: v(({
|
|
346
346
|
item: y
|
|
347
|
-
}) => [y.startAt || y.endAt ? (i(), w("span", _e,
|
|
347
|
+
}) => [y.startAt || y.endAt ? (i(), w("span", _e, $(y.startAt || "无") + " ~ " + $(y.endAt || "无"), 1)) : M("", !0)]),
|
|
348
348
|
_: 1
|
|
349
349
|
}, 8, ["message-list", "loading", "finished", "onItemClick", "onLoadMore"])) : (i(), w("div", be, [N(me, {
|
|
350
350
|
id: a(g)
|
|
351
351
|
}, null, 8, ["id"])]))]));
|
|
352
352
|
}
|
|
353
|
-
}), ke = /* @__PURE__ */
|
|
353
|
+
}), ke = /* @__PURE__ */ U(he, [["__scopeId", "data-v-59d1c742"]]), Ce = {
|
|
354
354
|
style: {
|
|
355
355
|
display: "flex",
|
|
356
356
|
gap: "16px"
|
|
@@ -387,9 +387,9 @@ const ue = /* @__PURE__ */ T({
|
|
|
387
387
|
active: h.modelValue === e.key
|
|
388
388
|
}]]),
|
|
389
389
|
onClick: (f) => l(e.key)
|
|
390
|
-
},
|
|
390
|
+
}, $(e.label), 11, Ae))), 128))]));
|
|
391
391
|
}
|
|
392
|
-
}), Se = /* @__PURE__ */
|
|
392
|
+
}), Se = /* @__PURE__ */ U(Ne, [["__scopeId", "data-v-d7edaca7"]]), Me = {
|
|
393
393
|
class: "tabs"
|
|
394
394
|
}, we = /* @__PURE__ */ T({
|
|
395
395
|
__name: "MessageTabs",
|
|
@@ -437,7 +437,7 @@ const ue = /* @__PURE__ */ T({
|
|
|
437
437
|
icon: "icon-park-outline:clear"
|
|
438
438
|
}), f[1] || (f[1] = V("span", null, " 全部已读", -1))], 2)) : M("", !0)]));
|
|
439
439
|
}
|
|
440
|
-
}), P = /* @__PURE__ */
|
|
440
|
+
}), P = /* @__PURE__ */ U(we, [["__scopeId", "data-v-47f7fce5"]]), Le = {
|
|
441
441
|
class: "message-panel"
|
|
442
442
|
}, xe = {
|
|
443
443
|
key: 3,
|
|
@@ -546,12 +546,12 @@ const ue = /* @__PURE__ */ T({
|
|
|
546
546
|
key: 0,
|
|
547
547
|
class: "message-panel__breadcrumb"
|
|
548
548
|
}, {
|
|
549
|
-
default: v(() => [N(a(
|
|
549
|
+
default: v(() => [N(a(I), {
|
|
550
550
|
onClick: O
|
|
551
551
|
}, {
|
|
552
552
|
default: v(() => [...d[1] || (d[1] = [L("消息通知", -1)])]),
|
|
553
553
|
_: 1
|
|
554
|
-
}), N(a(
|
|
554
|
+
}), N(a(I), null, {
|
|
555
555
|
default: v(() => [...d[2] || (d[2] = [L("详情", -1)])]),
|
|
556
556
|
_: 1
|
|
557
557
|
})]),
|
|
@@ -576,14 +576,14 @@ const ue = /* @__PURE__ */ T({
|
|
|
576
576
|
}, {
|
|
577
577
|
tags: v(({
|
|
578
578
|
item: c
|
|
579
|
-
}) => [c.priority === "urgent" ? (i(), C(a(
|
|
579
|
+
}) => [c.priority === "urgent" ? (i(), C(a(D), {
|
|
580
580
|
key: 0,
|
|
581
581
|
color: "red",
|
|
582
582
|
size: "small"
|
|
583
583
|
}, {
|
|
584
584
|
default: v(() => [...d[3] || (d[3] = [L("紧急", -1)])]),
|
|
585
585
|
_: 1
|
|
586
|
-
})) : c.priority === "high" ? (i(), C(a(
|
|
586
|
+
})) : c.priority === "high" ? (i(), C(a(D), {
|
|
587
587
|
key: 1,
|
|
588
588
|
color: "orange",
|
|
589
589
|
size: "small"
|
|
@@ -598,15 +598,15 @@ const ue = /* @__PURE__ */ T({
|
|
|
598
598
|
loading: r.value
|
|
599
599
|
}, null, 8, ["title", "content", "loading"])]))]));
|
|
600
600
|
}
|
|
601
|
-
}), ze =
|
|
601
|
+
}), ze = {
|
|
602
602
|
class: "message-panel"
|
|
603
603
|
}, $e = {
|
|
604
604
|
key: 0,
|
|
605
605
|
class: "expire-time"
|
|
606
|
-
},
|
|
606
|
+
}, Ie = {
|
|
607
607
|
key: 3,
|
|
608
608
|
class: "message-panel__detail"
|
|
609
|
-
},
|
|
609
|
+
}, De = /* @__PURE__ */ T({
|
|
610
610
|
__name: "MessageNoticeNotifications",
|
|
611
611
|
setup(h) {
|
|
612
612
|
const u = o(!0), g = o(""), r = o(!1), l = o({
|
|
@@ -720,16 +720,16 @@ const ue = /* @__PURE__ */ T({
|
|
|
720
720
|
expired: "已过期"
|
|
721
721
|
}[c] || "未知";
|
|
722
722
|
}
|
|
723
|
-
return m(), (c, p) => (i(), w("div",
|
|
723
|
+
return m(), (c, p) => (i(), w("div", ze, [u.value ? M("", !0) : (i(), C(a(K), {
|
|
724
724
|
key: 0,
|
|
725
725
|
class: "message-panel__breadcrumb"
|
|
726
726
|
}, {
|
|
727
|
-
default: v(() => [N(a(
|
|
727
|
+
default: v(() => [N(a(I), {
|
|
728
728
|
onClick: O
|
|
729
729
|
}, {
|
|
730
730
|
default: v(() => [...p[1] || (p[1] = [L("公告通知", -1)])]),
|
|
731
731
|
_: 1
|
|
732
|
-
}), N(a(
|
|
732
|
+
}), N(a(I), null, {
|
|
733
733
|
default: v(() => [...p[2] || (p[2] = [L("详情", -1)])]),
|
|
734
734
|
_: 1
|
|
735
735
|
})]),
|
|
@@ -754,42 +754,42 @@ const ue = /* @__PURE__ */ T({
|
|
|
754
754
|
}, {
|
|
755
755
|
tags: v(({
|
|
756
756
|
item: k
|
|
757
|
-
}) => [k.priority === "urgent" ? (i(), C(a(
|
|
757
|
+
}) => [k.priority === "urgent" ? (i(), C(a(D), {
|
|
758
758
|
key: 0,
|
|
759
759
|
color: "red",
|
|
760
760
|
size: "small"
|
|
761
761
|
}, {
|
|
762
762
|
default: v(() => [...p[3] || (p[3] = [L("紧急", -1)])]),
|
|
763
763
|
_: 1
|
|
764
|
-
})) : k.priority === "important" ? (i(), C(a(
|
|
764
|
+
})) : k.priority === "important" ? (i(), C(a(D), {
|
|
765
765
|
key: 1,
|
|
766
766
|
color: "orange",
|
|
767
767
|
size: "small"
|
|
768
768
|
}, {
|
|
769
769
|
default: v(() => [...p[4] || (p[4] = [L("重要", -1)])]),
|
|
770
770
|
_: 1
|
|
771
|
-
})) : M("", !0), N(a(
|
|
771
|
+
})) : M("", !0), N(a(D), {
|
|
772
772
|
color: b(k.displayStatus),
|
|
773
773
|
size: "small"
|
|
774
774
|
}, {
|
|
775
|
-
default: v(() => [L(
|
|
775
|
+
default: v(() => [L($(d(k.displayStatus)), 1)]),
|
|
776
776
|
_: 2
|
|
777
777
|
}, 1032, ["color"])]),
|
|
778
778
|
footer: v(({
|
|
779
779
|
item: k
|
|
780
|
-
}) => [k.expireAt ? (i(), w("span", $e,
|
|
780
|
+
}) => [k.expireAt ? (i(), w("span", $e, $(k.displayStatus === "expired" ? "已过期" : `过期时间: ${k.expireAt}`), 1)) : M("", !0)]),
|
|
781
781
|
_: 1
|
|
782
|
-
}, 8, ["message-list", "loading", "finished"])) : (i(), w("div",
|
|
782
|
+
}, 8, ["message-list", "loading", "finished"])) : (i(), w("div", Ie, [N(B, {
|
|
783
783
|
title: l.value.title,
|
|
784
784
|
content: l.value.content,
|
|
785
785
|
loading: r.value
|
|
786
786
|
}, null, 8, ["title", "content", "loading"])]))]));
|
|
787
787
|
}
|
|
788
|
-
}),
|
|
789
|
-
class: "content"
|
|
790
|
-
},
|
|
788
|
+
}), Ue = /* @__PURE__ */ U(De, [["__scopeId", "data-v-d16f47e2"]]), Ee = {
|
|
789
|
+
class: "user-menu-modal-content"
|
|
790
|
+
}, Oe = {
|
|
791
791
|
class: "left"
|
|
792
|
-
},
|
|
792
|
+
}, Re = /* @__PURE__ */ T({
|
|
793
793
|
__name: "MessageAppMessage",
|
|
794
794
|
props: /* @__PURE__ */ j({
|
|
795
795
|
menus: {
|
|
@@ -835,7 +835,7 @@ const ue = /* @__PURE__ */ T({
|
|
|
835
835
|
width: a(ee),
|
|
836
836
|
onCancel: e
|
|
837
837
|
}, {
|
|
838
|
-
default: v(() => [V("div",
|
|
838
|
+
default: v(() => [V("div", Ee, [V("div", Oe, [N(oe, {
|
|
839
839
|
"selected-keys": s.value,
|
|
840
840
|
"onUpdate:selectedKeys": y[0] || (y[0] = (z) => s.value = z),
|
|
841
841
|
menus: r.menus,
|
|
@@ -846,15 +846,15 @@ const ue = /* @__PURE__ */ T({
|
|
|
846
846
|
key: 0
|
|
847
847
|
})) : M("", !0), t.value === "EventNotifications" ? (i(), C(ke, {
|
|
848
848
|
key: 1
|
|
849
|
-
})) : M("", !0), t.value === "MessageNotifications" ? (i(), C(
|
|
849
|
+
})) : M("", !0), t.value === "MessageNotifications" ? (i(), C(Te, {
|
|
850
850
|
key: 2
|
|
851
|
-
})) : M("", !0), t.value === "NoticeNotifications" ? (i(), C(
|
|
851
|
+
})) : M("", !0), t.value === "NoticeNotifications" ? (i(), C(Ue, {
|
|
852
852
|
key: 3
|
|
853
853
|
})) : M("", !0)], 64)) : M("", !0)])]),
|
|
854
854
|
_: 1
|
|
855
855
|
}, 8, ["visible", "width"]));
|
|
856
856
|
}
|
|
857
|
-
}),
|
|
857
|
+
}), Ve = /* @__PURE__ */ T({
|
|
858
858
|
__name: "MessageHandle",
|
|
859
859
|
setup(h, {
|
|
860
860
|
expose: u
|
|
@@ -896,7 +896,7 @@ const ue = /* @__PURE__ */ T({
|
|
|
896
896
|
}]);
|
|
897
897
|
return u({
|
|
898
898
|
openNotification: s
|
|
899
|
-
}), (n, A) => (i(), C(
|
|
899
|
+
}), (n, A) => (i(), C(Re, {
|
|
900
900
|
ref_key: "MessageNotificationsRef",
|
|
901
901
|
ref: r,
|
|
902
902
|
key: l.value,
|
|
@@ -908,17 +908,17 @@ const ue = /* @__PURE__ */ T({
|
|
|
908
908
|
onCancel: t
|
|
909
909
|
}, null, 8, ["selected-keys", "menus"]));
|
|
910
910
|
}
|
|
911
|
-
}),
|
|
911
|
+
}), Ze = /* @__PURE__ */ U(Ve, [["__scopeId", "data-v-2e2a72d0"]]);
|
|
912
912
|
export {
|
|
913
|
-
qe as A,
|
|
914
913
|
ve as C,
|
|
915
914
|
B as D,
|
|
916
915
|
ke as E,
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
916
|
+
Ze as M,
|
|
917
|
+
Ue as N,
|
|
918
|
+
Re as _,
|
|
919
|
+
re as a,
|
|
920
|
+
Se as b,
|
|
921
|
+
me as c,
|
|
922
|
+
Te as d,
|
|
923
|
+
P as e
|
|
924
924
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as f, ref as p, openBlock as t, createElementBlock as i
|
|
|
2
2
|
import { Icon as D } from "@iconify/vue";
|
|
3
3
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { o as $ } from "./apiClients-DT7o0IpO.js";
|
|
5
|
-
import { D as x } from "./MessageHandle-
|
|
5
|
+
import { D as x } from "./MessageHandle-BMhGWVHD.js";
|
|
6
6
|
const b = /* @__PURE__ */ f({
|
|
7
7
|
__name: "MessageMenuItem",
|
|
8
8
|
props: {
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import "./index-D3Kp6R4z.js";
|
|
3
3
|
import "./apiClients-DT7o0IpO.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { defineComponent as z, computed as k, onMounted as te, onUnmounted as Pe, openBlock as
|
|
6
|
-
import { Spin as ne, Button as
|
|
5
|
+
import { defineComponent as z, computed as k, onMounted as te, onUnmounted as Pe, openBlock as t, createElementBlock as s, createElementVNode as i, unref as e, createBlock as H, toDisplayString as r, createVNode as v, withCtx as b, createTextVNode as L, resolveDirective as me, withDirectives as fe, normalizeClass as B, Fragment as I, renderList as w, createCommentVNode as p } from "vue";
|
|
6
|
+
import { Spin as ne, Button as R, Message as Z } from "@arco-design/web-vue";
|
|
7
7
|
import { useRoute as pe, useRouter as ve } from "vue-router";
|
|
8
8
|
import { b as ye } from "./PaySubscriptions-D3g1OhiA.js";
|
|
9
9
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { L as he, a as ke } from "./LandingPageFAQ-CZJXvor9.js";
|
|
11
11
|
import { L as be } from "./LandingPageSectionHeader-D_74W4My.js";
|
|
12
12
|
import { Icon as ee } from "@iconify/vue";
|
|
13
|
-
import { u as Te, a as Ie } from "./useSubscriptionCheckout-
|
|
13
|
+
import { u as Te, a as Ie } from "./useSubscriptionCheckout-BjPiHSjA.js";
|
|
14
14
|
import { u as we } from "./useEnsureAuthenticated-BEKhtQAl.js";
|
|
15
15
|
const pt = "/Pay/Return";
|
|
16
16
|
function V(a) {
|
|
@@ -62,15 +62,15 @@ const Be = {
|
|
|
62
62
|
const {
|
|
63
63
|
phase: g,
|
|
64
64
|
message: y,
|
|
65
|
-
checking:
|
|
66
|
-
confirmPayment:
|
|
67
|
-
stopPolling:
|
|
68
|
-
verifyNow:
|
|
69
|
-
} = ye(_),
|
|
70
|
-
function
|
|
65
|
+
checking: q,
|
|
66
|
+
confirmPayment: A,
|
|
67
|
+
stopPolling: F,
|
|
68
|
+
verifyNow: S
|
|
69
|
+
} = ye(_), D = k(() => g.value === "success" ? "支付成功" : g.value === "failed" ? "支付未完成" : "正在确认支付");
|
|
70
|
+
function C() {
|
|
71
71
|
c.replace(_());
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
73
|
+
async function N() {
|
|
74
74
|
const {
|
|
75
75
|
scene: m,
|
|
76
76
|
orderId: o
|
|
@@ -80,7 +80,7 @@ const Be = {
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
try {
|
|
83
|
-
const f = await
|
|
83
|
+
const f = await S(m, o);
|
|
84
84
|
if (f.success) {
|
|
85
85
|
g.value = "success", y.value = f.message || "支付成功", window.setTimeout(() => {
|
|
86
86
|
c.replace(_());
|
|
@@ -107,27 +107,27 @@ const Be = {
|
|
|
107
107
|
}, 1200);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
}), Pe(
|
|
110
|
+
A(m, o);
|
|
111
|
+
}), Pe(F), (m, o) => (t(), s("div", Be, [i("div", Le, [e(g) === "loading" ? (t(), H(e(ne), {
|
|
112
112
|
key: 0,
|
|
113
113
|
size: 36
|
|
114
|
-
})) : e(g) === "success" ? (
|
|
115
|
-
loading: e(
|
|
114
|
+
})) : e(g) === "success" ? (t(), s("div", Re, "✓")) : (t(), s("div", Ae, "!")), i("h1", null, r(D.value), 1), i("p", null, r(e(y)), 1), e(g) === "loading" ? (t(), s("div", De, [v(e(R), {
|
|
115
|
+
loading: e(q),
|
|
116
116
|
type: "primary",
|
|
117
|
-
onClick:
|
|
117
|
+
onClick: N
|
|
118
118
|
}, {
|
|
119
|
-
default: b(() => [...o[0] || (o[0] = [
|
|
119
|
+
default: b(() => [...o[0] || (o[0] = [L(" 我已完成支付 ", -1)])]),
|
|
120
120
|
_: 1
|
|
121
|
-
}, 8, ["loading"]), v(e(
|
|
122
|
-
onClick:
|
|
121
|
+
}, 8, ["loading"]), v(e(R), {
|
|
122
|
+
onClick: C
|
|
123
123
|
}, {
|
|
124
|
-
default: b(() => [...o[1] || (o[1] = [
|
|
124
|
+
default: b(() => [...o[1] || (o[1] = [L("返回", -1)])]),
|
|
125
125
|
_: 1
|
|
126
|
-
})])) : (
|
|
126
|
+
})])) : (t(), s("div", $e, [v(e(R), {
|
|
127
127
|
type: "primary",
|
|
128
|
-
onClick:
|
|
128
|
+
onClick: C
|
|
129
129
|
}, {
|
|
130
|
-
default: b(() => [...o[2] || (o[2] = [
|
|
130
|
+
default: b(() => [...o[2] || (o[2] = [L("返回", -1)])]),
|
|
131
131
|
_: 1
|
|
132
132
|
})]))])]));
|
|
133
133
|
}
|
|
@@ -173,7 +173,7 @@ const Be = {
|
|
|
173
173
|
question: "使用订阅服务有什么限制?",
|
|
174
174
|
answer: "请按正常业务场景使用服务,禁止共享、转售订阅或用于违法违规场景。严重滥用可能导致服务受限或账户终止。"
|
|
175
175
|
}], l = a, c = k(() => l.faqItems ?? u);
|
|
176
|
-
return (_, g) => (
|
|
176
|
+
return (_, g) => (t(), H(he, {
|
|
177
177
|
class: "PricingFAQ"
|
|
178
178
|
}, {
|
|
179
179
|
BlockHeader: b(() => [v(be, {
|
|
@@ -257,13 +257,13 @@ const Be = {
|
|
|
257
257
|
currentSubscription: _,
|
|
258
258
|
currentLoading: g,
|
|
259
259
|
listLoading: y,
|
|
260
|
-
billingInterval:
|
|
261
|
-
billingIntervalTabs:
|
|
262
|
-
setBillingInterval:
|
|
263
|
-
currentTrial:
|
|
264
|
-
isCurrentPlan:
|
|
265
|
-
isRecommendedPlan:
|
|
266
|
-
isFreePlan:
|
|
260
|
+
billingInterval: q,
|
|
261
|
+
billingIntervalTabs: A,
|
|
262
|
+
setBillingInterval: F,
|
|
263
|
+
currentTrial: S,
|
|
264
|
+
isCurrentPlan: D,
|
|
265
|
+
isRecommendedPlan: C,
|
|
266
|
+
isFreePlan: N,
|
|
267
267
|
isPlanActionDisabled: m,
|
|
268
268
|
getDisplayPrice: o,
|
|
269
269
|
getDisplayOriginalPrice: f,
|
|
@@ -276,18 +276,17 @@ const Be = {
|
|
|
276
276
|
loadCurrentSubscription: W,
|
|
277
277
|
refresh: ae
|
|
278
278
|
} = Te(u.defaultInterval), T = k(() => {
|
|
279
|
-
var d;
|
|
280
279
|
if (!_.value)
|
|
281
|
-
for (const
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
280
|
+
for (const d of l.value) {
|
|
281
|
+
const P = d.prices.find((M) => M.type === "free");
|
|
282
|
+
if (P)
|
|
284
283
|
return {
|
|
285
|
-
...
|
|
286
|
-
features:
|
|
287
|
-
selectedPrice:
|
|
284
|
+
...d,
|
|
285
|
+
features: P.features ?? [],
|
|
286
|
+
selectedPrice: P
|
|
288
287
|
};
|
|
289
288
|
}
|
|
290
|
-
}),
|
|
289
|
+
}), $ = k(() => c.value.filter((d) => !N(d))), j = k(() => !!localStorage.getItem("jwtToken")), E = k(() => !!S.value), x = k(() => j.value && g.value && !E.value), Y = k(() => E.value || x.value), {
|
|
291
290
|
checkout: le,
|
|
292
291
|
isCheckingOut: oe
|
|
293
292
|
} = Ie({
|
|
@@ -306,7 +305,7 @@ const Be = {
|
|
|
306
305
|
return (d.description || O(d, 0)).replace(/^\s*\d+\s*天(?:免费)?体验[,,、\s]*/, "").replace(/^\s*免费体验[,,、\s]*/, "").trim();
|
|
307
306
|
}
|
|
308
307
|
function _e() {
|
|
309
|
-
return
|
|
308
|
+
return x.value ? "权益加载中" : E.value ? "正在体验当前权益" : "立即体验";
|
|
310
309
|
}
|
|
311
310
|
async function ge() {
|
|
312
311
|
if (!Y.value) {
|
|
@@ -320,81 +319,81 @@ const Be = {
|
|
|
320
319
|
return te(() => {
|
|
321
320
|
ae();
|
|
322
321
|
}), (d, P) => {
|
|
323
|
-
const
|
|
324
|
-
return
|
|
322
|
+
const M = me("motion-slide-top");
|
|
323
|
+
return t(), s("section", Se, [fe((t(), H(e(ne), {
|
|
325
324
|
loading: e(y),
|
|
326
325
|
tip: "数据加载中",
|
|
327
326
|
class: "PricingPlans__spin"
|
|
328
327
|
}, {
|
|
329
|
-
default: b(() => [T.value ? (
|
|
328
|
+
default: b(() => [T.value ? (t(), s("article", {
|
|
330
329
|
key: 0,
|
|
331
|
-
class:
|
|
332
|
-
"is-current": e(
|
|
330
|
+
class: B(["PricingPlans__trial", {
|
|
331
|
+
"is-current": e(D)(T.value)
|
|
333
332
|
}])
|
|
334
|
-
}, [i("div", Ne, [i("div", Ee, [i("h2", null, r(T.value.name), 1), i("p", null, r(de(T.value)), 1), J(T.value).length ? (
|
|
335
|
-
key:
|
|
333
|
+
}, [i("div", Ne, [i("div", Ee, [i("h2", null, r(T.value.name), 1), i("p", null, r(de(T.value)), 1), J(T.value).length ? (t(), s("ul", xe, [(t(!0), s(I, null, w(J(T.value), (n) => (t(), s("li", {
|
|
334
|
+
key: n.title
|
|
336
335
|
}, [v(e(ee), {
|
|
337
336
|
icon: "mingcute:check-circle-fill",
|
|
338
337
|
class: "PricingPlans__trialFeatureIcon"
|
|
339
|
-
}), i("span", null, r(
|
|
338
|
+
}), i("span", null, r(n.title), 1)]))), 128))])) : p("", !0)]), i("div", Me, [v(e(R), {
|
|
340
339
|
size: "large",
|
|
341
340
|
class: "PricingPlans__trialButton",
|
|
342
|
-
loading:
|
|
341
|
+
loading: x.value,
|
|
343
342
|
disabled: Y.value,
|
|
344
343
|
onClick: ge
|
|
345
344
|
}, {
|
|
346
|
-
default: b(() => [
|
|
345
|
+
default: b(() => [L(r(_e()), 1)]),
|
|
347
346
|
_: 1
|
|
348
|
-
}, 8, ["loading", "disabled"])])])], 2)) : p("", !0),
|
|
349
|
-
key:
|
|
347
|
+
}, 8, ["loading", "disabled"])])])], 2)) : p("", !0), $.value.length ? (t(), s("div", Qe, [e(A).length > 1 ? (t(), s("div", Ve, [(t(!0), s(I, null, w(e(A), (n) => (t(), s("button", {
|
|
348
|
+
key: n.value,
|
|
350
349
|
type: "button",
|
|
351
|
-
class:
|
|
352
|
-
"is-active": e(
|
|
350
|
+
class: B(["PricingPlans__toggleItem", {
|
|
351
|
+
"is-active": e(q) === n.value
|
|
353
352
|
}]),
|
|
354
|
-
onClick: (Q) => e(
|
|
355
|
-
}, [i("span", null, r(
|
|
353
|
+
onClick: (Q) => e(F)(n.value)
|
|
354
|
+
}, [i("span", null, r(n.label), 1), n.badge ? (t(), s("span", He, r(n.badge), 1)) : p("", !0)], 10, ze))), 128))])) : p("", !0), a.note ? (t(), s("p", Ge, r(a.note), 1)) : p("", !0)])) : p("", !0), $.value.length ? (t(), s("div", {
|
|
356
355
|
key: 2,
|
|
357
|
-
class:
|
|
358
|
-
"PricingPlans__grid--compact":
|
|
356
|
+
class: B(["PricingPlans__grid", {
|
|
357
|
+
"PricingPlans__grid--compact": $.value.length <= 2
|
|
359
358
|
}])
|
|
360
|
-
}, [(
|
|
361
|
-
key:
|
|
362
|
-
class:
|
|
363
|
-
"is-recommended": e(
|
|
364
|
-
"is-current": e(
|
|
359
|
+
}, [(t(!0), s(I, null, w($.value, (n, Q) => (t(), s("article", {
|
|
360
|
+
key: n.id,
|
|
361
|
+
class: B(["PricingPlans__card", {
|
|
362
|
+
"is-recommended": e(C)(n),
|
|
363
|
+
"is-current": e(D)(n)
|
|
365
364
|
}])
|
|
366
|
-
}, [i("div", Ke, [(
|
|
365
|
+
}, [i("div", Ke, [(t(!0), s(I, null, w(e(ie)(n), (h) => (t(), s("span", {
|
|
367
366
|
key: h.type,
|
|
368
|
-
class:
|
|
369
|
-
}, r(h.label), 3))), 128))]), i("div", Oe, [i("h2", null, r(
|
|
367
|
+
class: B(["PricingPlans__badge", `is-${h.type}`])
|
|
368
|
+
}, r(h.label), 3))), 128))]), i("div", Oe, [i("h2", null, r(n.name), 1), i("p", null, r(n.description || ue(Q)), 1)]), i("div", Ue, [e(f)(n) ? (t(), s("span", We, " ¥" + r(e(f)(n)), 1)) : p("", !0), P[0] || (P[0] = i("span", {
|
|
370
369
|
class: "PricingPlans__currency"
|
|
371
|
-
}, "¥", -1)), i("span", je, r(e(o)(
|
|
370
|
+
}, "¥", -1)), i("span", je, r(e(o)(n)), 1), i("span", Ye, r(e(se)(n)), 1)]), e(K)(n) ? (t(), s("p", Je, r(e(K)(n)), 1)) : p("", !0), i("p", Xe, r(e(O)(n, Q)), 1), v(e(R), {
|
|
372
371
|
long: "",
|
|
373
372
|
size: "large",
|
|
374
373
|
class: "PricingPlans__button",
|
|
375
|
-
type: e(
|
|
376
|
-
loading: e(oe)(
|
|
377
|
-
disabled: e(m)(
|
|
378
|
-
onClick: (h) => e(le)(
|
|
374
|
+
type: e(C)(n) ? "primary" : "outline",
|
|
375
|
+
loading: e(oe)(n),
|
|
376
|
+
disabled: e(m)(n),
|
|
377
|
+
onClick: (h) => e(le)(n)
|
|
379
378
|
}, {
|
|
380
|
-
default: b(() => [
|
|
379
|
+
default: b(() => [L(r(e(re)(n)), 1)]),
|
|
381
380
|
_: 2
|
|
382
381
|
}, 1032, ["type", "loading", "disabled", "onClick"]), P[1] || (P[1] = i("div", {
|
|
383
382
|
class: "PricingPlans__divider"
|
|
384
|
-
}, null, -1)), i("div", Ze, [(
|
|
383
|
+
}, null, -1)), i("div", Ze, [(t(!0), s(I, null, w(e(U)(n.features), (h) => (t(), s("section", {
|
|
385
384
|
key: h.title,
|
|
386
385
|
class: "PricingPlans__featureGroup"
|
|
387
|
-
}, [i("h3", null, r(h.title), 1), i("ul", et, [(
|
|
386
|
+
}, [i("h3", null, r(h.title), 1), i("ul", et, [(t(!0), s(I, null, w(h.items, (X) => (t(), s("li", {
|
|
388
387
|
key: X.title
|
|
389
388
|
}, [v(e(ee), {
|
|
390
389
|
icon: "mingcute:check-circle-fill",
|
|
391
390
|
class: "PricingPlans__featureIcon"
|
|
392
|
-
}), i("span", null, r(X.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !T.value && !e(y) ? (
|
|
391
|
+
}), i("span", null, r(X.title), 1)]))), 128))])]))), 128))])], 2))), 128))], 2)) : !T.value && !e(y) ? (t(), s("div", tt, " 当前暂无可订阅方案 ")) : p("", !0)]),
|
|
393
392
|
_: 1
|
|
394
|
-
}, 8, ["loading"])), [[
|
|
393
|
+
}, 8, ["loading"])), [[M]])]);
|
|
395
394
|
};
|
|
396
395
|
}
|
|
397
|
-
}), ht = /* @__PURE__ */ G(nt, [["__scopeId", "data-v-
|
|
396
|
+
}), ht = /* @__PURE__ */ G(nt, [["__scopeId", "data-v-8cdab97c"]]);
|
|
398
397
|
export {
|
|
399
398
|
pt as P,
|
|
400
399
|
vt as a,
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { defineComponent as g, openBlock as F, createBlock as h, unref as q, mergeProps as y, createSlots as I, withCtx as p, renderSlot as u } from "vue";
|
|
8
8
|
import { Upload as S } from "@arco-design/web-vue";
|
|
9
|
-
import { u as _ } from "./useUploadCos-
|
|
9
|
+
import { u as _ } from "./useUploadCos-DOHnz2MP.js";
|
|
10
10
|
const N = /* @__PURE__ */ g({
|
|
11
11
|
__name: "Upload",
|
|
12
12
|
props: {
|