@huyooo/ui 0.4.29 → 0.4.30

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.
@@ -1,544 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- /* empty css */
4
- /* empty css */
5
- import { defineComponent as _, createElementBlock as k, openBlock as l, normalizeStyle as F, normalizeClass as V, createElementVNode as f, computed as M, createBlock as v, createCommentVNode as P, createVNode as i, unref as t, withCtx as a, createTextVNode as d, toDisplayString as C, renderSlot as _e, ref as p, Fragment as Se } from "vue";
6
- import { Tag as be, Button as O, Avatar as q, Dropdown as Ce, Divider as E, Doption as g } from "@arco-design/web-vue";
7
- import { S as Ie } from "./PaySubscriptions-u3gwyezu.js";
8
- import { R as $e } from "./ReferrerReferees-D2NqWvol.js";
9
- import { a as K, u as he } from "./useAuthkitUsersProfile-Diituvy1.js";
10
- import { u as xe } from "./useAuthkitAuthModal-OkUKCIWR.js";
11
- import { u as Be } from "./useUploadCos-ByBVD4yB.js";
12
- import { a as Ue, b as De } from "./AuthkitAppSetting-CipV7oA1.js";
13
- import { d as Me } from "./FeedbackModal-CYHs8PS1.js";
14
- import { M as Pe } from "./MessageHandle-DN_JsQb2.js";
15
- /* empty css */
16
- /* empty css */
17
- import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- /* empty css */
19
- import { I as $ } from "./index-Cr5RQSnA.js";
20
- import { _ as T, g as W, i as G } from "./plugin-vue_export-helper-LjDO2Zua.js";
21
- const we = _({
22
- name: "IconExport",
23
- props: {
24
- size: {
25
- type: [Number, String]
26
- },
27
- strokeWidth: {
28
- type: Number,
29
- default: 4
30
- },
31
- strokeLinecap: {
32
- type: String,
33
- default: "butt",
34
- validator: (e) => ["butt", "round", "square"].includes(e)
35
- },
36
- strokeLinejoin: {
37
- type: String,
38
- default: "miter",
39
- validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
40
- },
41
- rotate: Number,
42
- spin: Boolean
43
- },
44
- emits: {
45
- click: (e) => !0
46
- },
47
- setup(e, {
48
- emit: n
49
- }) {
50
- const o = W("icon"), s = M(() => [o, `${o}-export`, {
51
- [`${o}-spin`]: e.spin
52
- }]), c = M(() => {
53
- const r = {};
54
- return e.size && (r.fontSize = G(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
55
- });
56
- return {
57
- cls: s,
58
- innerStyle: c,
59
- onClick: (r) => {
60
- n("click", r);
61
- }
62
- };
63
- }
64
- }), Ae = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
65
- function Re(e, n, o, s, c, m) {
66
- return l(), k("svg", {
67
- viewBox: "0 0 48 48",
68
- fill: "none",
69
- xmlns: "http://www.w3.org/2000/svg",
70
- stroke: "currentColor",
71
- class: V(e.cls),
72
- style: F(e.innerStyle),
73
- "stroke-width": e.strokeWidth,
74
- "stroke-linecap": e.strokeLinecap,
75
- "stroke-linejoin": e.strokeLinejoin,
76
- onClick: n[0] || (n[0] = (...r) => e.onClick && e.onClick(...r))
77
- }, n[1] || (n[1] = [f("path", {
78
- d: "M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"
79
- }, null, -1)]), 14, Ae);
80
- }
81
- var A = /* @__PURE__ */ T(we, [["render", Re]]);
82
- const ze = Object.assign(A, {
83
- install: (e, n) => {
84
- var o;
85
- const s = (o = n == null ? void 0 : n.iconPrefix) != null ? o : "";
86
- e.component(s + A.name, A);
87
- }
88
- }), Ne = _({
89
- name: "IconLaunch",
90
- props: {
91
- size: {
92
- type: [Number, String]
93
- },
94
- strokeWidth: {
95
- type: Number,
96
- default: 4
97
- },
98
- strokeLinecap: {
99
- type: String,
100
- default: "butt",
101
- validator: (e) => ["butt", "round", "square"].includes(e)
102
- },
103
- strokeLinejoin: {
104
- type: String,
105
- default: "miter",
106
- validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
107
- },
108
- rotate: Number,
109
- spin: Boolean
110
- },
111
- emits: {
112
- click: (e) => !0
113
- },
114
- setup(e, {
115
- emit: n
116
- }) {
117
- const o = W("icon"), s = M(() => [o, `${o}-launch`, {
118
- [`${o}-spin`]: e.spin
119
- }]), c = M(() => {
120
- const r = {};
121
- return e.size && (r.fontSize = G(e.size) ? `${e.size}px` : e.size), e.rotate && (r.transform = `rotate(${e.rotate}deg)`), r;
122
- });
123
- return {
124
- cls: s,
125
- innerStyle: c,
126
- onClick: (r) => {
127
- n("click", r);
128
- }
129
- };
130
- }
131
- }), Le = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
132
- function je(e, n, o, s, c, m) {
133
- return l(), k("svg", {
134
- viewBox: "0 0 48 48",
135
- fill: "none",
136
- stroke: "currentColor",
137
- xmlns: "http://www.w3.org/2000/svg",
138
- class: V(e.cls),
139
- style: F(e.innerStyle),
140
- "stroke-width": e.strokeWidth,
141
- "stroke-linecap": e.strokeLinecap,
142
- "stroke-linejoin": e.strokeLinejoin,
143
- onClick: n[0] || (n[0] = (...r) => e.onClick && e.onClick(...r))
144
- }, n[1] || (n[1] = [f("path", {
145
- d: "M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"
146
- }, null, -1)]), 14, Le);
147
- }
148
- var R = /* @__PURE__ */ T(Ne, [["render", je]]);
149
- const He = Object.assign(R, {
150
- install: (e, n) => {
151
- var o;
152
- const s = (o = n == null ? void 0 : n.iconPrefix) != null ? o : "";
153
- e.component(s + R.name, R);
154
- }
155
- }), Fe = {
156
- class: "pricing"
157
- }, Ve = {
158
- class: "base"
159
- }, Oe = {
160
- class: "pricingInfo"
161
- }, qe = /* @__PURE__ */ _({
162
- __name: "UserSubscriptionBaseInformation",
163
- props: {
164
- currentVersionName: {
165
- type: String,
166
- required: !0
167
- },
168
- expireDate: {
169
- type: String,
170
- required: !0
171
- },
172
- canUpgrade: {
173
- type: Boolean,
174
- required: !0
175
- }
176
- },
177
- emits: ["upgradeHandle"],
178
- setup(e, {
179
- emit: n
180
- }) {
181
- const o = e, s = n;
182
- function c() {
183
- s("upgradeHandle");
184
- }
185
- return (m, r) => (l(), k("div", Fe, [f("div", Ve, [f("div", Oe, [r[0] || (r[0] = f("span", null, "我的订阅:", -1)), i(t(be), {
186
- color: "arcoblue",
187
- style: {
188
- "border-radius": "6px"
189
- }
190
- }, {
191
- default: a(() => [d(C(o.currentVersionName), 1)]),
192
- _: 1
193
- })]), o.canUpgrade ? (l(), v(t(O), {
194
- key: 0,
195
- type: "primary",
196
- size: "mini",
197
- class: "updatePricing",
198
- onClick: c
199
- }, {
200
- default: a(() => r[1] || (r[1] = [d(" 升级 ")])),
201
- _: 1,
202
- __: [1]
203
- })) : P("", !0)]), f("span", null, "有效期至: " + C(o.expireDate), 1)]));
204
- }
205
- }), Ee = /* @__PURE__ */ h(qe, [["__scopeId", "data-v-1e32fa72"]]), Ke = {
206
- class: "userInfo"
207
- }, Te = {
208
- key: 0,
209
- class: "userName"
210
- }, We = /* @__PURE__ */ _({
211
- __name: "UserAvatar",
212
- props: {
213
- nickname: {
214
- type: String,
215
- default: ""
216
- },
217
- avatar: {
218
- type: String,
219
- default: ""
220
- }
221
- },
222
- setup(e) {
223
- const n = e;
224
- return (o, s) => (l(), k("div", Ke, [n.nickname ? (l(), k("span", Te, C(n.nickname), 1)) : P("", !0), i(t(q), {
225
- "image-url": n.avatar,
226
- size: 32,
227
- "object-fit": "cover"
228
- }, null, 8, ["image-url"])]));
229
- }
230
- }), Ge = /* @__PURE__ */ h(We, [["__scopeId", "data-v-a7a47cc4"]]), Je = {
231
- class: "userInfo"
232
- }, Qe = {
233
- class: "extra"
234
- }, Xe = {
235
- class: "userName"
236
- }, Ye = {
237
- class: "email"
238
- }, Ze = {
239
- key: 0,
240
- class: "referrerId"
241
- }, et = /* @__PURE__ */ _({
242
- __name: "UserBasicInformation",
243
- props: {
244
- nickname: {
245
- type: String,
246
- default: ""
247
- },
248
- email: {
249
- type: String,
250
- default: ""
251
- },
252
- avatarUrl: {
253
- type: String,
254
- default: ""
255
- },
256
- referrerId: {
257
- type: String,
258
- default: ""
259
- }
260
- },
261
- setup(e) {
262
- const n = e;
263
- return (o, s) => (l(), k("div", Je, [i(t(q), {
264
- "image-url": n.avatarUrl,
265
- size: 42,
266
- "object-fit": "cover"
267
- }, null, 8, ["image-url"]), f("div", Qe, [f("span", Xe, C(n.nickname), 1), f("span", Ye, C(n.email), 1), n.referrerId ? (l(), k("span", Ze, " 邀请码:" + C(n.referrerId), 1)) : P("", !0)])]));
268
- }
269
- }), tt = /* @__PURE__ */ h(et, [["__scopeId", "data-v-367449da"]]), nt = {
270
- class: "dropdownContent"
271
- }, ot = {
272
- class: "header"
273
- }, rt = /* @__PURE__ */ _({
274
- __name: "UserButton",
275
- emits: ["enterSystem", "toSignIn"],
276
- setup(e, {
277
- emit: n
278
- }) {
279
- const o = n, {
280
- userProfile: s,
281
- isLoggedIn: c
282
- } = K();
283
- function m() {
284
- o("toSignIn");
285
- }
286
- return (r, x) => t(c) ? (l(), v(t(Ce), {
287
- key: 1,
288
- class: "DropdownUserInfo",
289
- position: "bl"
290
- }, {
291
- content: a(() => {
292
- var y, B, U, I;
293
- return [f("div", nt, [f("div", ot, [i(tt, {
294
- "avatar-url": (y = t(s)) == null ? void 0 : y.avatarUrl,
295
- nickname: (B = t(s)) == null ? void 0 : B.nickname,
296
- email: (U = t(s)) == null ? void 0 : U.email,
297
- "referrer-id": (I = t(s)) == null ? void 0 : I.referrerId
298
- }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), i(Ee, {
299
- currentVersionName: "免费版本",
300
- "expire-date": "2025-01-01",
301
- "can-upgrade": !0
302
- })]), i(t(E), {
303
- style: {
304
- margin: "10px 0px"
305
- }
306
- }), _e(r.$slots, "DoptionList", {}, void 0, !0)])];
307
- }),
308
- default: a(() => {
309
- var y;
310
- return [i(Ge, {
311
- avatar: (y = t(s)) == null ? void 0 : y.avatarUrl
312
- }, null, 8, ["avatar"])];
313
- }),
314
- _: 3
315
- })) : (l(), v(t(O), {
316
- key: 0,
317
- type: "primary",
318
- class: "handle",
319
- onClick: m
320
- }, {
321
- default: a(() => x[0] || (x[0] = [d(" 登陆 ")])),
322
- _: 1,
323
- __: [0]
324
- }));
325
- }
326
- }), it = /* @__PURE__ */ h(rt, [["__scopeId", "data-v-895035f0"]]), st = {
327
- class: "UserPanel"
328
- }, at = /* @__PURE__ */ _({
329
- __name: "UserPanel",
330
- emits: ["toHomePage", "signOut"],
331
- setup(e, {
332
- emit: n
333
- }) {
334
- const o = p(), s = p(), c = p(Symbol("key")), m = n, {
335
- prefixUrl: r,
336
- bucketId: x,
337
- bucket: y,
338
- region: B,
339
- appId: U
340
- } = Be(), {
341
- fetchUserProfile: I,
342
- clearUserProfile: J,
343
- isLoggedIn: S
344
- } = K(), {
345
- addSignInCallback: Q,
346
- initializeAuth: X,
347
- clearAuth: Y
348
- } = he();
349
- X() && I();
350
- const z = p(), N = p(Symbol("key")), L = p(), j = p(), Z = p(Symbol("key")), ee = p(), te = p(Symbol("key"));
351
- function ne(H) {
352
- }
353
- function oe(H) {
354
- }
355
- const {
356
- show: re
357
- } = xe();
358
- function ie() {
359
- N.value = Symbol("key");
360
- }
361
- const w = p(), D = p(Symbol("key"));
362
- function se() {
363
- D.value = Symbol("key");
364
- }
365
- function ae() {
366
- D.value = Symbol("key");
367
- }
368
- function b() {
369
- re.value = !0;
370
- }
371
- Q(() => {
372
- I();
373
- });
374
- function le() {
375
- c.value = Symbol("key");
376
- }
377
- function ue() {
378
- s.value.show = !1;
379
- }
380
- function ce() {
381
- D.value = Symbol("key");
382
- }
383
- function pe() {
384
- w.value.setData(null, !0);
385
- }
386
- function fe() {
387
- if (!S.value) {
388
- b();
389
- return;
390
- }
391
- w.value.setData(null, !0);
392
- }
393
- function de() {
394
- if (!S.value) {
395
- b();
396
- return;
397
- }
398
- L.value.openNotification();
399
- }
400
- function me() {
401
- if (!S.value) {
402
- b();
403
- return;
404
- }
405
- j.value.setData(null, !0);
406
- }
407
- function ke() {
408
- if (!S.value) {
409
- b();
410
- return;
411
- }
412
- o.value.setData(!0);
413
- }
414
- function ve() {
415
- if (!S.value) {
416
- b();
417
- return;
418
- }
419
- z.value.setData(!0);
420
- }
421
- function ye() {
422
- m("toHomePage");
423
- }
424
- async function ge() {
425
- J(), Y(), m("signOut");
426
- }
427
- return (H, u) => (l(), k("div", st, [i(it, {
428
- onToSignIn: b
429
- }, {
430
- DoptionList: a(() => [i(t(g), {
431
- value: "messages",
432
- class: "Doption",
433
- onClick: de
434
- }, {
435
- icon: a(() => u[0] || (u[0] = [d("消息中心")])),
436
- default: a(() => [i(t($))]),
437
- _: 1
438
- }), i(t(g), {
439
- value: "setting",
440
- class: "Doption",
441
- onClick: fe
442
- }, {
443
- icon: a(() => u[1] || (u[1] = [d("系统设置 ")])),
444
- default: a(() => [i(t($))]),
445
- _: 1
446
- }), i(t(g), {
447
- value: "subscription",
448
- class: "Doption",
449
- onClick: me
450
- }, {
451
- icon: a(() => u[2] || (u[2] = [d("订阅信息 ")])),
452
- default: a(() => [i(t($))]),
453
- _: 1
454
- }), i(t(g), {
455
- value: "feedBack",
456
- class: "Doption",
457
- onClick: ke
458
- }, {
459
- icon: a(() => u[3] || (u[3] = [d("系统反馈 ")])),
460
- default: a(() => [i(t($))]),
461
- _: 1
462
- }), i(t(g), {
463
- value: "invitations",
464
- class: "Doption",
465
- onClick: ve
466
- }, {
467
- icon: a(() => u[4] || (u[4] = [d("邀请 ")])),
468
- default: a(() => [i(t($))]),
469
- _: 1
470
- }), i(t(E), {
471
- style: {
472
- margin: "10px 0px"
473
- }
474
- }), i(t(g), {
475
- value: "homePage",
476
- class: "Doption",
477
- onClick: ye
478
- }, {
479
- icon: a(() => u[5] || (u[5] = [d("主页 ")])),
480
- default: a(() => [i(t(He))]),
481
- _: 1
482
- }), i(t(g), {
483
- value: "signOut",
484
- class: "Doption",
485
- onClick: ge
486
- }, {
487
- icon: a(() => u[6] || (u[6] = [d("退出登陆 ")])),
488
- default: a(() => [i(t(ze))]),
489
- _: 1
490
- })]),
491
- _: 1
492
- }), (l(), v(Ue, {
493
- ref_key: "AuthModalRef",
494
- ref: ee,
495
- key: te.value,
496
- size: "large",
497
- onToPrivacyPolicy: ne,
498
- onToUserServiceAgreement: oe
499
- })), t(S) ? (l(), k(Se, {
500
- key: 0
501
- }, [(l(), v(De, {
502
- ref_key: "AppSettingRef",
503
- ref: w,
504
- key: D.value,
505
- onConfirm: pe,
506
- onCancel: ce
507
- })), (l(), v($e, {
508
- ref_key: "RefereesRef",
509
- ref: z,
510
- key: N.value,
511
- "prefix-url": t(r),
512
- onCancel: ie
513
- }, null, 8, ["prefix-url"])), (l(), v(Ie, {
514
- ref_key: "SubscriptionsRef",
515
- ref: j,
516
- key: Z.value,
517
- title: "订阅详情",
518
- onConfirm: se,
519
- onCancel: ae
520
- })), i(Pe, {
521
- ref_key: "MessageHandleRef",
522
- ref: L,
523
- "prefix-url": t(r)
524
- }, null, 8, ["prefix-url"]), (l(), v(Me, {
525
- ref_key: "FeedBackModalRef",
526
- ref: o,
527
- key: c.value,
528
- "app-id": t(U),
529
- "prefix-url": t(r),
530
- "bucket-id": t(x),
531
- bucket: t(y),
532
- region: t(B),
533
- onConfirm: ue,
534
- onCancel: le
535
- }, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"]))], 64)) : P("", !0)]));
536
- }
537
- }), Ut = /* @__PURE__ */ h(at, [["__scopeId", "data-v-6c113fce"]]);
538
- export {
539
- Ee as S,
540
- Ut as U,
541
- it as a,
542
- Ge as b,
543
- tt as c
544
- };