@huyooo/ui 0.13.8 → 0.13.9

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 (37) hide show
  1. package/dist/{AuthkitAppSetting-u2kUUH6q.js → AuthkitAppSetting-Xe-QQSQ4.js} +403 -406
  2. package/dist/{AuthkitGithubBinding-B-YSWc50.js → AuthkitGithubBinding-CK6ijijV.js} +329 -330
  3. package/dist/{Contact-CIMfdt_b.js → Contact-mb7deQOs.js} +1 -1
  4. package/dist/CustomTable-BT-cnhLR.js +280 -0
  5. package/dist/{MessageHandle-D2dcvWVr.js → MessageHandle-CVueKPFG.js} +1 -1
  6. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-CSAIRPOj.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DL4qP8DA.js} +1 -1
  7. package/dist/{PaySubscriptions-BaUlQE-p.js → PaySubscriptions-BkZaeTgv.js} +2 -2
  8. package/dist/{PricingPlans-B0nt843Q.js → PricingPlans-B-GWpft_.js} +1 -1
  9. package/dist/{ReferrerReferees-B50_V69q.js → ReferrerReferees-DFCwvXJ6.js} +2 -2
  10. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BHXLN2Tu.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js} +5 -5
  11. package/dist/WidthContainer-jOX17pDu.js +691 -0
  12. package/dist/authkit.js +6 -6
  13. package/dist/common.js +2 -2
  14. package/dist/composables/Authkit/resolveRoutePermission.d.ts +4 -0
  15. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
  16. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +1 -1
  17. package/dist/composables.js +6 -6
  18. package/dist/main.js +19 -19
  19. package/dist/message.js +2 -2
  20. package/dist/pay.js +2 -2
  21. package/dist/privateCom.js +1 -1
  22. package/dist/referrer.js +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/types/api/ai.generated.d.ts +378 -247
  25. package/dist/types/api/billing.generated.d.ts +1105 -374
  26. package/dist/{useAuthkitAppsAuthPageInfo-CjPdpZ64.js → useAuthkitAppsAuthPageInfo-nCjfAjiw.js} +17 -7
  27. package/dist/useAuthkitCreateAndUpdate-u-ceTc-m.js +25 -0
  28. package/dist/useAuthkitUsersProfile-BC5EsA2f.js +40 -0
  29. package/dist/{useDownloads-CxoyuqyY.js → useDownloads-BC0QyEFr.js} +9 -9
  30. package/dist/{useLegalLinks-DHqsVvIK.js → useLegalLinks-DeXLE-yv.js} +1 -1
  31. package/dist/{useSEO-DypqLVfr.js → useSEO-BWAREYk4.js} +238 -227
  32. package/dist/user.js +1 -1
  33. package/package.json +2 -1
  34. package/dist/CustomTable-BBcd4nNL.js +0 -278
  35. package/dist/WidthContainer-BQIboxrg.js +0 -695
  36. package/dist/useAuthkitCreateAndUpdate-CsYn-oYu.js +0 -25
  37. package/dist/useAuthkitUsersProfile-CIFqG3gd.js +0 -36
@@ -0,0 +1,691 @@
1
+ /* empty css */
2
+ import "./index-D3Kp6R4z.js";
3
+ import { defineComponent as x, ref as L, watch as G, openBlock as n, createElementBlock as o, createElementVNode as a, createVNode as s, unref as i, withCtx as U, createTextVNode as z, renderSlot as V, toDisplayString as I, createCommentVNode as $, onMounted as j, onUnmounted as he, normalizeClass as S, Fragment as B, renderList as E, createBlock as pe, computed as H, onBeforeUnmount as fe, normalizeStyle as R } from "vue";
4
+ import { Spin as q } from "@arco-design/web-vue";
5
+ import { u as F } from "./useAuthkitAuth-C--qS6UE.js";
6
+ import { d as _e, b as ve, a as ge } from "./apiClients-CkI47p36.js";
7
+ import { u as N } from "./useAuthkitAppsAuthPageInfo-nCjfAjiw.js";
8
+ import { u as J } from "./useAuthkitUsersProfile-BC5EsA2f.js";
9
+ import { b as Q, f as X, w as W, a as Y, c as Z, d as ee, e as ye } from "./useSEO-BWAREYk4.js";
10
+ import "./useUploadCos-DGPnLOC9.js";
11
+ import { useRouter as te, useRoute as ne } from "vue-router";
12
+ import "./useUserMenu-ClPBlvaM.js";
13
+ import "./useBillingStatusOptions-D5Ehwtbj.js";
14
+ import { U as ke, c as oe, h as se, k as ae, _ as re, f as ie, j as ue, d as le, g as D, i as ce } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Iwq1MOFa.js";
15
+ /* empty css */
16
+ import { Icon as O } from "@iconify/vue";
17
+ import "./Clipboard-C8ncjaAJ.js";
18
+ /* empty css */
19
+ import { M as be } from "./Menu-Cy2ZPeaz.js";
20
+ import "./CollapseItem-DUzZA6tx.js";
21
+ /* empty css */
22
+ /* empty css */
23
+ /* empty css */
24
+ /* empty css */
25
+ /* empty css */
26
+ import "./CustomTable-BT-cnhLR.js";
27
+ import "./index-D56hUMeD.js";
28
+ import { L as de } from "./Logo-D7fyXyB-.js";
29
+ import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
30
+ const we = {
31
+ class: "SidebarCom"
32
+ }, $e = {
33
+ class: "LogoContent"
34
+ }, Ce = {
35
+ class: "MenuContent"
36
+ }, Me = {
37
+ class: "sidebar-footer"
38
+ }, Se = /* @__PURE__ */ x({
39
+ __name: "AppSidebar",
40
+ props: {
41
+ menuType: {
42
+ default: "system"
43
+ },
44
+ showUserPanel: {
45
+ type: Boolean,
46
+ default: !0
47
+ }
48
+ },
49
+ setup(m) {
50
+ const t = m, {
51
+ appsData: l
52
+ } = N(), {
53
+ clearAuth: h
54
+ } = F(), {
55
+ clearUserProfile: p
56
+ } = J(), {
57
+ menus: d
58
+ } = Q(t.menuType), f = te();
59
+ function y() {
60
+ f.push({
61
+ path: "/"
62
+ });
63
+ }
64
+ function C() {
65
+ p(), h(), y();
66
+ }
67
+ const _ = ne(), k = L([""]);
68
+ function M(g) {
69
+ const e = g.path;
70
+ W(() => {
71
+ f.push({
72
+ path: e,
73
+ query: _.query
74
+ }), k.value = [e], window.scrollTo({
75
+ top: 0,
76
+ behavior: "smooth"
77
+ });
78
+ });
79
+ }
80
+ return G(() => [_.path, d.value], () => {
81
+ const g = X(d.value, _.path, {
82
+ // Sidebar 中,子路由应该选中子菜单项
83
+ returnParentOnChildMatch: !1,
84
+ // 后备查找函数
85
+ fallback: (e) => Y(_.matched, t.menuType, e)
86
+ });
87
+ g && (k.value = [g]);
88
+ }, {
89
+ immediate: !0,
90
+ deep: !0
91
+ }), (g, e) => (n(), o("div", we, [a("div", $e, [s(i(de), {
92
+ icon: i(l).applicationLogoUrl,
93
+ name: i(l).name,
94
+ onTo: y
95
+ }, null, 8, ["icon", "name"])]), a("div", Ce, [s(be, {
96
+ "selected-keys": k.value,
97
+ "onUpdate:selectedKeys": e[0] || (e[0] = (r) => k.value = r),
98
+ menus: i(d),
99
+ onChange: M
100
+ }, null, 8, ["selected-keys", "menus"])]), a("div", Me, [s(i(ke), null, {
101
+ avatar: U(() => [s(i(oe), {
102
+ position: "tr",
103
+ "dropdown-offset-y": "30px"
104
+ }, {
105
+ items: U(() => [s(i(se)), s(i(ae)), s(i(re)), s(i(ie)), s(i(ue)), s(i(le)), s(i(D), {
106
+ icon: "lucide:home",
107
+ onClick: y
108
+ }, {
109
+ default: U(() => [...e[1] || (e[1] = [z("主页", -1)])]),
110
+ _: 1
111
+ }), s(i(D), {
112
+ icon: "lucide:log-out",
113
+ danger: "",
114
+ onClick: C
115
+ }, {
116
+ default: U(() => [...e[2] || (e[2] = [z("退出登陆", -1)])]),
117
+ _: 1
118
+ })]),
119
+ _: 1
120
+ })]),
121
+ _: 1
122
+ }), s(i(ce))])]));
123
+ }
124
+ }), Ie = /* @__PURE__ */ T(Se, [["__scopeId", "data-v-f465af61"]]), Te = {
125
+ class: "layout"
126
+ }, Pe = {
127
+ class: "leftContent"
128
+ }, Ae = {
129
+ class: "content"
130
+ }, xe = {
131
+ class: "contentCenter"
132
+ }, Ue = {
133
+ class: "pages"
134
+ }, Le = {
135
+ key: 0,
136
+ class: "loading"
137
+ }, Be = /* @__PURE__ */ x({
138
+ __name: "AppLayout",
139
+ props: {
140
+ menuType: {
141
+ default: "system"
142
+ },
143
+ showUserPanel: {
144
+ type: Boolean,
145
+ default: !0
146
+ }
147
+ },
148
+ setup(m) {
149
+ const t = m, {
150
+ isChecking: l
151
+ } = Z();
152
+ return ee(), (h, p) => (n(), o("div", Te, [a("div", Pe, [s(Ie, {
153
+ "menu-type": t.menuType,
154
+ "show-user-panel": t.showUserPanel
155
+ }, null, 8, ["menu-type", "show-user-panel"])]), a("div", Ae, [a("div", xe, [a("div", Ue, [i(l) ? (n(), o("div", Le, [s(i(q), {
156
+ size: 40
157
+ })])) : V(h.$slots, "default", {
158
+ key: 1
159
+ }, void 0, !0)])])])]));
160
+ }
161
+ }), Zt = /* @__PURE__ */ T(Be, [["__scopeId", "data-v-0eed4f11"]]), He = {
162
+ class: "ContentHead"
163
+ }, ze = {
164
+ class: "title"
165
+ }, Ee = {
166
+ key: 0,
167
+ class: "description"
168
+ }, De = /* @__PURE__ */ x({
169
+ __name: "ContentHead",
170
+ props: {
171
+ title: {
172
+ type: String,
173
+ required: !0,
174
+ default: () => ""
175
+ },
176
+ description: {
177
+ type: String,
178
+ required: !0,
179
+ default: () => ""
180
+ }
181
+ },
182
+ setup(m) {
183
+ const t = m;
184
+ return (l, h) => (n(), o("div", He, [a("h1", ze, I(t.title), 1), t.description ? (n(), o("p", Ee, I(t.description), 1)) : $("", !0)]));
185
+ }
186
+ }), en = /* @__PURE__ */ T(De, [["__scopeId", "data-v-209a7bef"]]), Ke = {
187
+ key: 0,
188
+ class: "desktop-menus"
189
+ }, Oe = {
190
+ key: 0,
191
+ class: "header-menu-item"
192
+ }, Re = {
193
+ class: "submenu-popup"
194
+ }, We = {
195
+ class: "submenu-content"
196
+ }, Ge = ["onClick"], Ve = {
197
+ key: 0,
198
+ class: "submenu-item-icon"
199
+ }, Ne = {
200
+ class: "submenu-item-content"
201
+ }, je = {
202
+ class: "submenu-item-title"
203
+ }, qe = {
204
+ key: 0,
205
+ class: "submenu-item-description"
206
+ }, Fe = ["onClick"], Je = {
207
+ key: 3,
208
+ class: "mobile-menu"
209
+ }, Qe = {
210
+ class: "mobile-menu-content"
211
+ }, Xe = ["onClick"], Ye = {
212
+ key: 0,
213
+ class: "mobile-submenu"
214
+ }, Ze = ["onClick"], et = ["onClick"], tt = /* @__PURE__ */ x({
215
+ __name: "HeaderMenus",
216
+ props: {
217
+ menus: {
218
+ type: Array,
219
+ required: !0
220
+ },
221
+ activateKey: {
222
+ type: String,
223
+ required: !0
224
+ },
225
+ theme: {
226
+ type: String,
227
+ default: "light"
228
+ }
229
+ },
230
+ emits: ["change"],
231
+ setup(m, {
232
+ emit: t
233
+ }) {
234
+ const l = m, h = t, p = L(!1), d = L(!1), f = L({});
235
+ function y() {
236
+ d.value = window.innerWidth <= 1024;
237
+ }
238
+ function C() {
239
+ p.value = !p.value;
240
+ }
241
+ function _() {
242
+ p.value = !1;
243
+ }
244
+ function k(c) {
245
+ h("change", c);
246
+ }
247
+ function M(c) {
248
+ h("change", c), _();
249
+ }
250
+ function g(c) {
251
+ f.value[c] = !f.value[c];
252
+ }
253
+ function e(c) {
254
+ const b = l.activateKey, u = c.path;
255
+ if (b === u || b.startsWith(u + "/"))
256
+ return !0;
257
+ if (c.children && c.children.length > 0) {
258
+ for (const w of c.children)
259
+ if (b === w.path || b.startsWith(w.path + "/"))
260
+ return !0;
261
+ }
262
+ return !1;
263
+ }
264
+ function r(c) {
265
+ const b = l.activateKey, u = c.path;
266
+ return !!(b === u || b.startsWith(u + "/"));
267
+ }
268
+ function P(c) {
269
+ h("change", c);
270
+ }
271
+ function A() {
272
+ y(), d.value || _();
273
+ }
274
+ return j(() => {
275
+ y(), window.addEventListener("resize", A);
276
+ }), he(() => {
277
+ window.removeEventListener("resize", A);
278
+ }), (c, b) => (n(), o("div", {
279
+ class: S(["HeaderMenus", {
280
+ "HeaderMenus--dark": l.theme === "dark"
281
+ }])
282
+ }, [d.value ? $("", !0) : (n(), o("div", Ke, [(n(!0), o(B, null, E(l.menus, (u, w) => (n(), o(B, {
283
+ key: w
284
+ }, [u.children && u.children.length > 0 ? (n(), o("div", Oe, [a("div", {
285
+ class: S(["headerLink hasChildren", {
286
+ activate: e(u)
287
+ }])
288
+ }, [z(I(u.name) + " ", 1), s(i(O), {
289
+ icon: "mingcute:down-line",
290
+ class: "dropdown-arrow"
291
+ })], 2), a("div", Re, [a("div", We, [(n(!0), o(B, null, E(u.children, (v, K) => (n(), o("div", {
292
+ key: K,
293
+ class: S(["submenu-item", {
294
+ active: r(v)
295
+ }]),
296
+ onClick: (me) => k(v)
297
+ }, [v.icon ? (n(), o("div", Ve, [s(i(O), {
298
+ icon: v.icon
299
+ }, null, 8, ["icon"])])) : $("", !0), a("div", Ne, [a("div", je, I(v.name), 1), v.description ? (n(), o("div", qe, I(v.description), 1)) : $("", !0)])], 10, Ge))), 128))])])])) : (n(), o("div", {
300
+ key: 1,
301
+ class: S(["headerLink", {
302
+ activate: e(u)
303
+ }]),
304
+ onClick: (v) => P(u)
305
+ }, I(u.name), 11, Fe))], 64))), 128))])), d.value ? (n(), o("button", {
306
+ key: 1,
307
+ class: S(["mobile-menu-toggle", {
308
+ active: p.value
309
+ }]),
310
+ "aria-label": "切换菜单",
311
+ onClick: C
312
+ }, [...b[0] || (b[0] = [a("span", {
313
+ class: "hamburger-line"
314
+ }, null, -1), a("span", {
315
+ class: "hamburger-line"
316
+ }, null, -1), a("span", {
317
+ class: "hamburger-line"
318
+ }, null, -1)])], 2)) : $("", !0), p.value ? (n(), o("div", {
319
+ key: 2,
320
+ class: "mobile-menu-overlay",
321
+ onClick: _
322
+ })) : $("", !0), p.value ? (n(), o("div", Je, [a("div", Qe, [(n(!0), o(B, null, E(l.menus, (u, w) => (n(), o(B, {
323
+ key: w
324
+ }, [u.children && u.children.length > 0 ? (n(), o("div", {
325
+ key: 0,
326
+ class: S(["mobile-menu-item has-children", {
327
+ activate: e(u),
328
+ expanded: f.value[w]
329
+ }])
330
+ }, [a("div", {
331
+ class: "mobile-menu-item-header",
332
+ onClick: (v) => g(w)
333
+ }, [a("span", null, I(u.name), 1), s(i(O), {
334
+ icon: f.value[w] ? "mingcute:up-line" : "mingcute:down-line",
335
+ class: "mobile-submenu-arrow"
336
+ }, null, 8, ["icon"])], 8, Xe), f.value[w] ? (n(), o("div", Ye, [(n(!0), o(B, null, E(u.children, (v, K) => (n(), o("div", {
337
+ key: K,
338
+ class: S(["mobile-submenu-item", {
339
+ active: r(v)
340
+ }]),
341
+ onClick: (me) => M(v)
342
+ }, I(v.name), 11, Ze))), 128))])) : $("", !0)], 2)) : (n(), o("div", {
343
+ key: 1,
344
+ class: S(["mobile-menu-item", {
345
+ activate: e(u)
346
+ }]),
347
+ onClick: (v) => M(u)
348
+ }, I(u.name), 11, et))], 64))), 128))])])) : $("", !0)], 2));
349
+ }
350
+ }), nt = /* @__PURE__ */ T(tt, [["__scopeId", "data-v-42f528ac"]]), ot = {
351
+ class: "HeaderCom"
352
+ }, st = {
353
+ class: "HeaderCom-inner"
354
+ }, at = {
355
+ class: "left"
356
+ }, rt = {
357
+ class: "right"
358
+ }, it = ["aria-label"], ut = {
359
+ key: 0,
360
+ class: "theme-icon",
361
+ "aria-hidden": "true"
362
+ }, lt = {
363
+ key: 1,
364
+ class: "theme-icon",
365
+ "aria-hidden": "true"
366
+ }, ct = /* @__PURE__ */ x({
367
+ __name: "Header",
368
+ props: {
369
+ menuType: {
370
+ default: "header"
371
+ },
372
+ showUserPanel: {
373
+ type: Boolean,
374
+ default: !0
375
+ },
376
+ showThemeToggle: {
377
+ type: Boolean,
378
+ default: !0
379
+ },
380
+ theme: {
381
+ default: "light"
382
+ }
383
+ },
384
+ setup(m) {
385
+ const t = m, {
386
+ appsData: l
387
+ } = N(), {
388
+ clearAuth: h
389
+ } = F(), {
390
+ clearUserProfile: p
391
+ } = J(), {
392
+ menus: d
393
+ } = Q(t.menuType), f = L(""), y = te(), C = ne();
394
+ function _() {
395
+ W(() => {
396
+ y.push({
397
+ path: "/"
398
+ }), window.scrollTo({
399
+ top: 0,
400
+ behavior: "smooth"
401
+ });
402
+ });
403
+ }
404
+ function k() {
405
+ p(), h(), _();
406
+ }
407
+ function M(e) {
408
+ const r = e.path;
409
+ W(() => {
410
+ y.push(r), f.value = r, window.scrollTo({
411
+ top: 0,
412
+ behavior: "smooth"
413
+ });
414
+ });
415
+ }
416
+ function g() {
417
+ _e(t.theme === "dark" ? "light" : "dark");
418
+ }
419
+ return G(() => [C.path, d.value], () => {
420
+ f.value = X(d.value, C.path, {
421
+ // Header 中,子菜单匹配时返回父菜单路径
422
+ returnParentOnChildMatch: !0,
423
+ // 后备查找函数
424
+ fallback: (e) => Y(C.matched, t.menuType, e)
425
+ });
426
+ }, {
427
+ immediate: !0,
428
+ deep: !0
429
+ }), (e, r) => (n(), o("header", ot, [a("div", st, [a("div", at, [s(de, {
430
+ icon: i(l).applicationLogoUrl,
431
+ name: i(l).name,
432
+ onTo: _
433
+ }, null, 8, ["icon", "name"])]), a("div", rt, [s(nt, {
434
+ menus: i(d),
435
+ activateKey: f.value,
436
+ theme: t.theme,
437
+ onChange: M
438
+ }, null, 8, ["menus", "activateKey", "theme"]), t.showThemeToggle ? (n(), o("button", {
439
+ key: 0,
440
+ type: "button",
441
+ class: "theme-toggle",
442
+ "aria-label": t.theme === "dark" ? "切换为浅色" : "切换为深色",
443
+ onClick: g
444
+ }, [t.theme === "dark" ? (n(), o("span", ut, [...r[0] || (r[0] = [a("svg", {
445
+ xmlns: "http://www.w3.org/2000/svg",
446
+ width: "20",
447
+ height: "20",
448
+ viewBox: "0 0 24 24",
449
+ fill: "none",
450
+ stroke: "currentColor",
451
+ "stroke-width": "2",
452
+ "stroke-linecap": "round",
453
+ "stroke-linejoin": "round"
454
+ }, [a("circle", {
455
+ cx: "12",
456
+ cy: "12",
457
+ r: "4"
458
+ }), a("path", {
459
+ d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"
460
+ })], -1)])])) : (n(), o("span", lt, [...r[1] || (r[1] = [a("svg", {
461
+ xmlns: "http://www.w3.org/2000/svg",
462
+ width: "20",
463
+ height: "20",
464
+ viewBox: "0 0 24 24",
465
+ fill: "none",
466
+ stroke: "currentColor",
467
+ "stroke-width": "2",
468
+ "stroke-linecap": "round",
469
+ "stroke-linejoin": "round"
470
+ }, [a("path", {
471
+ d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"
472
+ })], -1)])]))], 8, it)) : $("", !0), t.showUserPanel ? (n(), pe(oe, {
473
+ key: 1
474
+ }, {
475
+ items: U(() => [s(se), s(ae), s(re), s(ie), s(ue), s(le), s(D, {
476
+ icon: "lucide:home",
477
+ onClick: _
478
+ }, {
479
+ default: U(() => [...r[2] || (r[2] = [z("主页", -1)])]),
480
+ _: 1
481
+ }), s(D, {
482
+ icon: "lucide:log-out",
483
+ danger: "",
484
+ onClick: k
485
+ }, {
486
+ default: U(() => [...r[3] || (r[3] = [z("退出登陆", -1)])]),
487
+ _: 1
488
+ })]),
489
+ _: 1
490
+ })) : $("", !0), s(ce)])])]));
491
+ }
492
+ }), dt = /* @__PURE__ */ T(ct, [["__scopeId", "data-v-ce7108a0"]]), mt = {
493
+ class: "layout-inner"
494
+ }, ht = {
495
+ key: 0,
496
+ class: "loading"
497
+ }, pt = "none", ft = "var(--huyooo-layout-dark-background)", _t = /* @__PURE__ */ x({
498
+ __name: "DefaultLayout",
499
+ props: {
500
+ menuType: {
501
+ default: "header"
502
+ },
503
+ showUserPanel: {
504
+ type: Boolean,
505
+ default: !0
506
+ },
507
+ showThemeToggle: {
508
+ type: Boolean,
509
+ default: !0
510
+ },
511
+ enableRoutePermission: {
512
+ type: Boolean,
513
+ default: !0
514
+ },
515
+ backgroundImage: {
516
+ default: ""
517
+ },
518
+ theme: {
519
+ default: void 0
520
+ }
521
+ },
522
+ setup(m) {
523
+ var M, g;
524
+ const t = m, {
525
+ appsData: l
526
+ } = N(), h = L(typeof window < "u" && ((g = (M = window.matchMedia) == null ? void 0 : M.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : g.matches));
527
+ function p() {
528
+ var e, r;
529
+ typeof window > "u" || (h.value = ((r = (e = window.matchMedia) == null ? void 0 : e.call(window, "(prefers-color-scheme: dark)")) == null ? void 0 : r.matches) ?? !1);
530
+ }
531
+ let d;
532
+ j(() => {
533
+ var r, P;
534
+ p();
535
+ const e = (r = window.matchMedia) == null ? void 0 : r.call(window, "(prefers-color-scheme: dark)");
536
+ (P = e == null ? void 0 : e.addEventListener) == null || P.call(e, "change", p), d = () => {
537
+ var A;
538
+ return (A = e == null ? void 0 : e.removeEventListener) == null ? void 0 : A.call(e, "change", p);
539
+ };
540
+ });
541
+ const f = H(() => {
542
+ var A, c;
543
+ const e = t.theme;
544
+ if (e && e !== "system") return e;
545
+ if (e === "system") return h.value ? "dark" : "light";
546
+ const r = ve.value;
547
+ if (r === "dark" || r === "light") return r;
548
+ if (r === "system") return h.value ? "dark" : "light";
549
+ const P = (c = (A = l.value) == null ? void 0 : A.brand) == null ? void 0 : c.theme;
550
+ return P === "dark" || P === "light" ? P : "light";
551
+ }), y = H(() => t.backgroundImage ? t.backgroundImage : f.value === "dark" ? ft : pt), C = H(() => {
552
+ const e = y.value;
553
+ return !e || e === "none" ? {
554
+ backgroundImage: "none",
555
+ backgroundColor: "transparent"
556
+ } : {
557
+ backgroundImage: e,
558
+ backgroundAttachment: "fixed"
559
+ };
560
+ });
561
+ G(f, (e) => {
562
+ typeof document > "u" || (e === "dark" ? (document.body.setAttribute("arco-theme", "dark"), document.body.classList.add("dark")) : (document.body.removeAttribute("arco-theme"), document.body.classList.remove("dark")));
563
+ }, {
564
+ immediate: !0
565
+ }), fe(() => {
566
+ d == null || d();
567
+ });
568
+ const {
569
+ setGlobalSEO: _
570
+ } = ye();
571
+ _(ge);
572
+ const k = t.enableRoutePermission ? Z().isChecking : L(!1);
573
+ return ee(), (e, r) => (n(), o("div", {
574
+ class: S(["layout", {
575
+ "layout--dark": f.value === "dark"
576
+ }]),
577
+ style: R(C.value)
578
+ }, [s(dt, {
579
+ "menu-type": t.menuType,
580
+ "show-user-panel": t.showUserPanel,
581
+ "show-theme-toggle": t.showThemeToggle,
582
+ theme: f.value
583
+ }, null, 8, ["menu-type", "show-user-panel", "show-theme-toggle", "theme"]), a("main", mt, [i(k) ? (n(), o("div", ht, [s(i(q), {
584
+ size: 40
585
+ })])) : V(e.$slots, "default", {
586
+ key: 1
587
+ }, void 0, !0)])], 6));
588
+ }
589
+ }), tn = /* @__PURE__ */ T(_t, [["__scopeId", "data-v-20e8a01a"]]), vt = /* @__PURE__ */ x({
590
+ __name: "Gradientbackground",
591
+ props: {
592
+ width: {
593
+ type: String,
594
+ default: "100%"
595
+ },
596
+ height: {
597
+ type: String,
598
+ default: "100%"
599
+ },
600
+ zIndex: {
601
+ type: String,
602
+ default: "-1"
603
+ },
604
+ top: {
605
+ type: String,
606
+ default: "10%"
607
+ },
608
+ left: {
609
+ type: String,
610
+ default: "0%"
611
+ },
612
+ right: {
613
+ type: String,
614
+ default: "auto"
615
+ },
616
+ blur: {
617
+ type: String,
618
+ default: "0px"
619
+ },
620
+ background: {
621
+ type: String,
622
+ required: !1,
623
+ default: () => "var(--huyooo-gradient-background)"
624
+ }
625
+ },
626
+ setup(m) {
627
+ const t = m, l = H(() => ({
628
+ pointerEvents: "none",
629
+ position: "absolute",
630
+ zIndex: t.zIndex,
631
+ width: t.width,
632
+ height: t.height,
633
+ filter: `blur(${t.blur})`
634
+ })), h = H(() => ({
635
+ width: "100%",
636
+ height: "100%",
637
+ background: t.background
638
+ }));
639
+ return (p, d) => (n(), o("div", {
640
+ class: "ellipsis",
641
+ style: R(l.value)
642
+ }, [a("div", {
643
+ class: "ellipsis-item",
644
+ style: R(h.value)
645
+ }, null, 4)], 4));
646
+ }
647
+ }), nn = /* @__PURE__ */ T(vt, [["__scopeId", "data-v-64c41f65"]]), gt = {
648
+ class: "SvgIcon"
649
+ }, yt = ["href", "fill"], kt = /* @__PURE__ */ x({
650
+ __name: "SvgIcon",
651
+ props: {
652
+ prefix: {
653
+ type: String,
654
+ required: !1,
655
+ default: "icon"
656
+ },
657
+ name: {
658
+ type: String,
659
+ required: !0
660
+ },
661
+ color: {
662
+ type: String,
663
+ required: !1,
664
+ default: "currentColor"
665
+ }
666
+ },
667
+ setup(m) {
668
+ const t = m, l = H(() => `#${t.prefix ?? "icon"}-${t.name}`);
669
+ return (h, p) => (n(), o("svg", gt, [a("use", {
670
+ href: l.value,
671
+ fill: t.color
672
+ }, null, 8, yt)]));
673
+ }
674
+ }), on = /* @__PURE__ */ T(kt, [["__scopeId", "data-v-9d0b08a0"]]), bt = {}, wt = {
675
+ class: "WidthContainer"
676
+ };
677
+ function $t(m, t) {
678
+ return n(), o("div", wt, [V(m.$slots, "default", {}, void 0, !0)]);
679
+ }
680
+ const sn = /* @__PURE__ */ T(bt, [["render", $t], ["__scopeId", "data-v-d06aac1f"]]);
681
+ export {
682
+ Zt as A,
683
+ en as C,
684
+ tn as D,
685
+ nn as G,
686
+ dt as H,
687
+ on as S,
688
+ sn as W,
689
+ Ie as a,
690
+ nt as b
691
+ };
package/dist/authkit.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-u2kUUH6q.js";
2
- import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, i as B, j as C, k as y, R as I, S as V, l as _, m as v, n as G, o as R, p as D, q as M } from "./AuthkitGithubBinding-B-YSWc50.js";
3
- import { u as q } from "./useAuthkitAppsAuthPageInfo-CjPdpZ64.js";
1
+ import { A as a, B as s, E as u, a as e, b as h, O as A, P as r, c as o, _ as k, d as n, S as d, e as p, u as P } from "./AuthkitAppSetting-Xe-QQSQ4.js";
2
+ import { A as l, a as m, b as g, c as S, d as O, e as c, f as L, _ as U, g as w, O as x, h as E, P as b, i as B, j as C, k as y, R as I, S as V, l as _, m as v, n as G, o as R, p as D, q as M } from "./AuthkitGithubBinding-CK6ijijV.js";
3
+ import { u as q } from "./useAuthkitAppsAuthPageInfo-nCjfAjiw.js";
4
4
  import { u as K } from "./useAuthkitAuth-C--qS6UE.js";
5
5
  import { u as Y } from "./apiClients-CkI47p36.js";
6
6
  import { u as H } from "./useEnsureAuthenticated-C4tsSfv6.js";
7
- import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-DHqsVvIK.js";
8
- import { u as $ } from "./useAuthkitUsersProfile-CIFqG3gd.js";
9
- import { u as it } from "./useAuthkitCreateAndUpdate-CsYn-oYu.js";
7
+ import { L as N, a as Q, b as W, u as X } from "./useLegalLinks-DeXLE-yv.js";
8
+ import { u as $ } from "./useAuthkitUsersProfile-BC5EsA2f.js";
9
+ import { u as it } from "./useAuthkitCreateAndUpdate-u-ceTc-m.js";
10
10
  export {
11
11
  a as AuthkitAppSetting,
12
12
  l as AuthkitAuth,