@oneb/ui-vue 0.1.30 → 0.1.32

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,9 +1,9 @@
1
- import { defineComponent as B, ref as j, provide as Y, computed as F, openBlock as t, createElementBlock as o, renderSlot as N, normalizeProps as W, guardReactiveProps as U, createCommentVNode as h, createVNode as g, Transition as Z, withCtx as I, normalizeClass as z, toDisplayString as a, inject as ee, withModifiers as te, createBlock as L, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as oe, unref as C } from "vue";
2
- import { OneAvatar as M } from "./common/index.js";
3
- import { r as J } from "./XMarkIcon-51ef0691.js";
4
- import { _ as ne } from "./index-f8afb6b6.js";
5
- import { _ as K } from "./_plugin-vue_export-helper-dad06003.js";
6
- const se = {
1
+ import { defineComponent as z, ref as j, provide as X, computed as F, openBlock as t, createElementBlock as o, renderSlot as q, normalizeProps as N, guardReactiveProps as W, createCommentVNode as h, createVNode as _, Transition as Y, withCtx as I, normalizeClass as O, toDisplayString as a, inject as Z, withModifiers as ee, createBlock as L, resolveDynamicComponent as P, createElementVNode as e, Fragment as $, renderList as A, mergeProps as te, unref as b } from "vue";
2
+ import { OneAvatar as B } from "./common/index.js";
3
+ import { r as G } from "./XMarkIcon-51ef0691.js";
4
+ import { _ as oe } from "./index-f8afb6b6.js";
5
+ import { _ as J } from "./_plugin-vue_export-helper-dad06003.js";
6
+ const ne = {
7
7
  title: {
8
8
  type: String
9
9
  },
@@ -11,7 +11,7 @@ const se = {
11
11
  type: String,
12
12
  default: "right"
13
13
  }
14
- }, re = {
14
+ }, se = {
15
15
  variant: {
16
16
  type: String,
17
17
  default: "primary"
@@ -22,24 +22,24 @@ const se = {
22
22
  icon: {
23
23
  type: [Function, Object]
24
24
  }
25
- }, le = ["data-opened"], ie = {
25
+ }, re = ["data-opened"], le = {
26
26
  key: 0,
27
27
  class: "text-sm text-secondary-content px-3 py-2 text-left"
28
- }, ce = /* @__PURE__ */ B({
28
+ }, ie = /* @__PURE__ */ z({
29
29
  __name: "OneDropdown",
30
- props: se,
30
+ props: ne,
31
31
  emits: ["open", "close"],
32
32
  setup(f, { emit: u }) {
33
33
  const v = j(!1), d = j(null), c = u, r = f, p = () => {
34
34
  v.value = !v.value, v.value ? c("open") : c("close");
35
35
  };
36
- Y("OneDropdown", {
36
+ X("OneDropdown", {
37
37
  onToggle: p
38
38
  });
39
39
  const s = F(() => {
40
40
  const n = d.value != null && d.value.getBoundingClientRect.x < 270;
41
41
  return d.value != null && d.value.getBoundingClientRect().top + 270 > window.innerHeight ? "up" + (n ? "-right" : "-left") : "down" + (n ? "-right" : "-left");
42
- }), x = F(() => {
42
+ }), m = F(() => {
43
43
  const n = [
44
44
  "absolute z-10 w-fit rounded-md bg-white",
45
45
  "py-1 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",
@@ -47,19 +47,19 @@ const se = {
47
47
  ];
48
48
  return s.value.startsWith("up") ? n.push("bottom-1 mb-10") : s.value.startsWith("down") && n.push("top-1 mt-10"), r.stick === "right" ? n.push("right-0") : r.stick === "left" && n.push("left-0"), n;
49
49
  });
50
- return (n, w) => (t(), o("div", {
50
+ return (n, g) => (t(), o("div", {
51
51
  class: "relative inline-block",
52
52
  ref_key: "menuRef",
53
53
  ref: d,
54
54
  "data-opened": v.value
55
55
  }, [
56
- N(n.$slots, "button", W(U({ onToggle: p, isExpanded: v.value }))),
56
+ q(n.$slots, "button", N(W({ onToggle: p, isExpanded: v.value }))),
57
57
  v.value ? (t(), o("div", {
58
58
  key: 0,
59
59
  class: "fixed top-0 left-0 w-screen h-screen z-10",
60
60
  onClick: p
61
61
  })) : h("", !0),
62
- g(Z, {
62
+ _(Y, {
63
63
  "enter-active-class": "transition ease-out duration-100",
64
64
  "enter-from-class": "transform opacity-0 scale-95",
65
65
  "enter-to-class": "transform opacity-100 scale-100",
@@ -70,33 +70,33 @@ const se = {
70
70
  default: I(() => [
71
71
  v.value ? (t(), o("div", {
72
72
  key: 0,
73
- class: z(["menu", x.value]),
73
+ class: O(["menu", m.value]),
74
74
  role: "menu",
75
75
  "aria-orientation": "vertical",
76
76
  tabindex: "-1"
77
77
  }, [
78
- n.title ? (t(), o("div", ie, a(n.title), 1)) : h("", !0),
79
- N(n.$slots, "menu", W(U({ onToggle: p })))
78
+ n.title ? (t(), o("div", le, a(n.title), 1)) : h("", !0),
79
+ q(n.$slots, "menu", N(W({ onToggle: p })))
80
80
  ], 2)) : h("", !0)
81
81
  ]),
82
82
  _: 3
83
83
  })
84
- ], 8, le));
84
+ ], 8, re));
85
85
  }
86
- }), G = /* @__PURE__ */ B({
86
+ }), U = /* @__PURE__ */ z({
87
87
  __name: "OneDropdownItem",
88
- props: re,
88
+ props: se,
89
89
  emits: ["click"],
90
90
  setup(f, { emit: u }) {
91
- const v = u, d = f, c = ee("OneDropdown"), r = () => {
91
+ const v = u, d = f, c = Z("OneDropdown"), r = () => {
92
92
  c !== void 0 && c.onToggle(), v("click");
93
93
  }, p = F(() => {
94
94
  const s = [];
95
95
  return d.variant === "secondary" ? s.push("text-secondary-content hover:bg-secondary-body-hover") : d.variant === "danger" ? s.push("text-danger-content hover:bg-danger-10") : d.variant === "warning" ? s.push("text-warning-content hover:bg-warning-10") : d.variant === "info" ? s.push("text-info-content hover:bg-info-10") : s.push("hover:bg-secondary-body-hover"), s;
96
96
  });
97
- return (s, x) => (t(), o("button", {
98
- class: z(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", p.value]),
99
- onClick: te(r, ["prevent"])
97
+ return (s, m) => (t(), o("button", {
98
+ class: O(["px-3 py-1.5 flex items-center space-x-3 w-full whitespace-nowrap", p.value]),
99
+ onClick: ee(r, ["prevent"])
100
100
  }, [
101
101
  s.icon ? (t(), L(P(s.icon), {
102
102
  key: 0,
@@ -106,7 +106,7 @@ const se = {
106
106
  ], 2));
107
107
  }
108
108
  });
109
- function ae(f, u) {
109
+ function ce(f, u) {
110
110
  return t(), o("svg", {
111
111
  xmlns: "http://www.w3.org/2000/svg",
112
112
  fill: "none",
@@ -122,7 +122,7 @@ function ae(f, u) {
122
122
  })
123
123
  ]);
124
124
  }
125
- const ue = {
125
+ const ae = {
126
126
  user: {
127
127
  type: Object,
128
128
  required: !0
@@ -156,7 +156,7 @@ const ue = {
156
156
  onLogout: {
157
157
  type: Function
158
158
  }
159
- }, de = {
159
+ }, ue = {
160
160
  workspace: {
161
161
  type: Object,
162
162
  required: !0
@@ -186,26 +186,26 @@ const ue = {
186
186
  onApp: {
187
187
  type: Function
188
188
  }
189
- }, pe = {
189
+ }, de = {
190
190
  help: {
191
191
  type: Object,
192
192
  required: !0
193
193
  }
194
- }, he = ["onClick"], fe = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, ve = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, me = { class: "self-center text-base font-medium tracking-wide text-black" }, xe = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, ge = { class: "text-left w-full mt-5 px-3" }, _e = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, Lt = /* @__PURE__ */ B({
194
+ }, pe = ["onClick"], he = { class: "flex flex-col items-center pt-5 pb-2 h-full" }, fe = { class: "flex flex-col px-10 py-1 mt-2 text-center" }, ve = { class: "self-center text-base font-medium tracking-wide text-black" }, xe = { class: "mt-1 text-xs leading-5 text-blue-500 font-light" }, me = { class: "text-left w-full mt-5 px-3" }, ge = { class: "-mb-2 flex-shrink-0 mt-auto pt-6 text-[8px] leading-3 text-gray-400" }, jt = /* @__PURE__ */ z({
195
195
  __name: "OneUserMenu",
196
- props: ue,
196
+ props: ae,
197
197
  setup(f) {
198
198
  const u = f, v = F(() => {
199
199
  var r;
200
200
  return (r = u.menu) == null ? void 0 : r.map((p) => {
201
201
  let s = { label: p.label };
202
202
  p.icon != null && (s = { ...s, icon: p.icon });
203
- const x = typeof p.click == "function" ? p.click : () => {
203
+ const m = typeof p.click == "function" ? p.click : () => {
204
204
  };
205
205
  return {
206
206
  key: p.label,
207
207
  args: s,
208
- click: x
208
+ click: m
209
209
  };
210
210
  });
211
211
  }), d = () => {
@@ -213,53 +213,53 @@ const ue = {
213
213
  }, c = () => {
214
214
  typeof u.onLogout == "function" && u.onLogout();
215
215
  };
216
- return (r, p) => (t(), L(ce, { stick: "right" }, {
217
- button: I(({ onToggle: s, isExpanded: x }) => {
218
- var n, w;
216
+ return (r, p) => (t(), L(ie, { stick: "right" }, {
217
+ button: I(({ onToggle: s, isExpanded: m }) => {
218
+ var n, g;
219
219
  return [
220
220
  e("button", {
221
221
  onClick: s,
222
- class: z(["p-1 rounded-full hover:bg-secondary-10", [x ? "bg-secondary-25" : ""]])
222
+ class: O(["p-1 rounded-full hover:bg-secondary-10", [m ? "bg-secondary-25" : ""]])
223
223
  }, [
224
- g(M, {
224
+ _(B, {
225
225
  text: ((n = r.user) == null ? void 0 : n.name) || "",
226
226
  size: r.iconSize,
227
- src: (w = r.user) == null ? void 0 : w.photo_url,
227
+ src: (g = r.user) == null ? void 0 : g.photo_url,
228
228
  rounded: !0
229
229
  }, null, 8, ["text", "size", "src"])
230
- ], 10, he)
230
+ ], 10, pe)
231
231
  ];
232
232
  }),
233
233
  menu: I(() => {
234
- var s, x, n, w, b;
234
+ var s, m, n, g, y;
235
235
  return [
236
- e("div", fe, [
237
- g(M, {
236
+ e("div", he, [
237
+ _(B, {
238
238
  text: ((s = r.user) == null ? void 0 : s.name) || "",
239
239
  size: 80,
240
- src: (x = r.user) == null ? void 0 : x.photo_url,
240
+ src: (m = r.user) == null ? void 0 : m.photo_url,
241
241
  rounded: !0,
242
242
  class: "mx-auto"
243
243
  }, null, 8, ["text", "src"]),
244
- e("div", ve, [
245
- e("div", me, a((n = r.user) == null ? void 0 : n.name), 1),
246
- e("div", xe, a((w = r.user) == null ? void 0 : w.email), 1)
244
+ e("div", fe, [
245
+ e("div", ve, a((n = r.user) == null ? void 0 : n.name), 1),
246
+ e("div", xe, a((g = r.user) == null ? void 0 : g.email), 1)
247
247
  ]),
248
248
  typeof u.onAccount == "function" ? (t(), o("a", {
249
249
  key: 0,
250
250
  onClick: d,
251
251
  class: "cursor-pointer justify-center px-8 py-2 mt-3 text-xs font-semibold tracking-wide leading-5 text-gray-600 border border-solid bg-neutral-100 border-slate-200 rounded-[50px] hover:bg-neutral-200"
252
252
  }, a(r.accountLabel), 1)) : h("", !0),
253
- e("div", ge, [
254
- (t(!0), o($, null, A(v.value, (k) => (t(), L(G, oe({
255
- key: k.key,
253
+ e("div", me, [
254
+ (t(!0), o($, null, A(v.value, (C) => (t(), L(U, te({
255
+ key: C.key,
256
256
  ref_for: !0
257
- }, k.args, {
258
- onClick: k.click
257
+ }, C.args, {
258
+ onClick: C.click
259
259
  }), null, 16, ["onClick"]))), 128)),
260
- typeof r.onLogout == "function" ? (t(), L(G, {
260
+ typeof r.onLogout == "function" ? (t(), L(U, {
261
261
  key: 0,
262
- icon: C(ae),
262
+ icon: b(ce),
263
263
  label: r.logoutLabel,
264
264
  class: "rounded py-3",
265
265
  onClick: c
@@ -269,7 +269,7 @@ const ue = {
269
269
  class: "space-y-2 text-center",
270
270
  style: { width: "240px" }
271
271
  }, null, -1)),
272
- e("div", _e, a((b = r.app) == null ? void 0 : b.version), 1)
272
+ e("div", ge, a((y = r.app) == null ? void 0 : y.version), 1)
273
273
  ])
274
274
  ];
275
275
  }),
@@ -277,7 +277,7 @@ const ue = {
277
277
  }));
278
278
  }
279
279
  });
280
- function we(f, u) {
280
+ function _e(f, u) {
281
281
  return t(), o("svg", {
282
282
  xmlns: "http://www.w3.org/2000/svg",
283
283
  fill: "none",
@@ -369,7 +369,7 @@ function we(f, u) {
369
369
  })
370
370
  ]);
371
371
  }
372
- function Q(f, u) {
372
+ function K(f, u) {
373
373
  return t(), o("svg", {
374
374
  xmlns: "http://www.w3.org/2000/svg",
375
375
  fill: "none",
@@ -385,7 +385,7 @@ function Q(f, u) {
385
385
  })
386
386
  ]);
387
387
  }
388
- function X(f, u) {
388
+ function Q(f, u) {
389
389
  return t(), o("svg", {
390
390
  xmlns: "http://www.w3.org/2000/svg",
391
391
  fill: "none",
@@ -401,7 +401,7 @@ function X(f, u) {
401
401
  })
402
402
  ]);
403
403
  }
404
- function ke(f, u) {
404
+ function we(f, u) {
405
405
  return t(), o("svg", {
406
406
  xmlns: "http://www.w3.org/2000/svg",
407
407
  fill: "none",
@@ -417,132 +417,132 @@ function ke(f, u) {
417
417
  })
418
418
  ]);
419
419
  }
420
- const ye = ["data-opened"], be = {
420
+ const ke = ["data-opened"], ye = {
421
421
  key: 1,
422
422
  class: "absolute top-0 right-0 h-screen overflow-y-auto max-w-96 bg-white px-3 z-10"
423
- }, Ce = { class: "flex justify-between items-center pt-3 mb-3" }, $e = { class: "font-semibold text-xl px-3" }, Ae = { class: "grid" }, Fe = { class: "rounded-lg m-3 border" }, je = {
423
+ }, be = { class: "flex justify-between items-center pt-3 mb-3" }, Ce = { class: "font-semibold text-xl px-3" }, $e = { class: "grid" }, Ae = { class: "rounded-lg m-3 border" }, Fe = {
424
424
  class: "space-x-2 flex items-center px-3 py-2",
425
425
  style: { width: "300px" }
426
- }, Le = { class: "flex justify-between relative" }, Me = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Be = { key: 0 }, ze = { class: "text-xs font-semibold" }, Oe = { class: "px-3 py-2" }, Se = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Ee = { class: "overflow-auto max-h-full" }, Ie = {
426
+ }, je = { class: "flex justify-between relative" }, Le = { class: "flex items-center justify-between w-full text-left text-sm font-semibold" }, Me = { key: 0 }, Be = { class: "text-xs font-semibold" }, ze = { class: "px-3 py-2" }, Oe = { class: "text-secondary-content text-left pb-1 text-xs uppercase" }, Se = { class: "overflow-auto max-h-full" }, Ee = {
427
427
  key: 0,
428
428
  class: "space-y-2"
429
- }, Pe = ["onClick"], He = { class: "flex" }, Te = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Ve = { class: "pl-2" }, De = { class: "text-sm mt-1 font-semibold" }, Re = { class: "text9 mt-1" }, qe = {
429
+ }, Ie = ["onClick"], Pe = { class: "flex" }, He = { class: "border border-secondary-stroke rounded-2xl w-14 h-14 md:w-14 md:h-14 flex items-center justify-center" }, Te = { class: "pl-2" }, Ve = { class: "text-sm mt-1 font-semibold" }, De = { class: "text9 mt-1" }, Re = {
430
430
  key: 1,
431
431
  class: "mt-2 w-full bg-[#FAFAFA] hover:bg-secondary-10 p-2 rounded-lg mb-5 text-xs hidden"
432
- }, Ne = /* @__PURE__ */ B({
432
+ }, qe = /* @__PURE__ */ z({
433
433
  __name: "OneBrowserMenu",
434
- props: de,
434
+ props: ue,
435
435
  emits: ["open", "close"],
436
436
  setup(f, { emit: u }) {
437
437
  const v = u, d = f, c = j(!1), r = () => {
438
438
  c.value = !c.value, c.value ? v("open") : v("close");
439
439
  }, p = j(!1);
440
- F(() => p.value ? X : Q);
440
+ F(() => p.value ? Q : K);
441
441
  const s = () => {
442
442
  typeof d.onChange == "function" && d.onChange();
443
- }, x = (n) => {
443
+ }, m = (n) => {
444
444
  typeof d.onApp == "function" && d.onApp(n);
445
445
  };
446
- return (n, w) => {
447
- var b, k, O, i, _, y;
446
+ return (n, g) => {
447
+ var y, C, l, w, k, M;
448
448
  return t(), o("div", { "data-opened": c.value }, [
449
449
  e("button", {
450
450
  onClick: r,
451
- class: z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
451
+ class: O(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
452
452
  }, [
453
- g(C(we), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
453
+ _(b(_e), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
454
454
  ], 2),
455
455
  c.value ? (t(), o("div", {
456
456
  key: 0,
457
457
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10",
458
458
  onClick: r
459
459
  })) : h("", !0),
460
- c.value ? (t(), o("div", be, [
461
- e("div", Ce, [
462
- e("div", $e, a((b = n.workspace) == null ? void 0 : b.title), 1),
463
- g(C(J), {
460
+ c.value ? (t(), o("div", ye, [
461
+ e("div", be, [
462
+ e("div", Ce, a((y = n.workspace) == null ? void 0 : y.title), 1),
463
+ _(b(G), {
464
464
  class: "w-6 cursor-pointer",
465
465
  onClick: r
466
466
  })
467
467
  ]),
468
- e("div", Ae, [
469
- e("div", Fe, [
470
- e("div", je, [
471
- e("div", Le, [
472
- g(M, {
473
- text: ((k = n.workspace) == null ? void 0 : k.name) || "",
474
- src: (O = n.workspace) == null ? void 0 : O.photo_url,
468
+ e("div", $e, [
469
+ e("div", Ae, [
470
+ e("div", Fe, [
471
+ e("div", je, [
472
+ _(B, {
473
+ text: ((C = n.workspace) == null ? void 0 : C.name) || "",
474
+ src: (l = n.workspace) == null ? void 0 : l.photo_url,
475
475
  size: 44,
476
476
  rounded: !1,
477
477
  class: "mx-auto"
478
478
  }, null, 8, ["text", "src"])
479
479
  ]),
480
- e("div", Me, a((i = n.workspace) == null ? void 0 : i.name), 1)
480
+ e("div", Le, a((w = n.workspace) == null ? void 0 : w.name), 1)
481
481
  ]),
482
- p.value ? (t(), o("div", Be, [
483
- (t(!0), o($, null, A(n.workspaces, (m) => (t(), o("div", {
484
- key: m.name,
482
+ p.value ? (t(), o("div", Me, [
483
+ (t(!0), o($, null, A(n.workspaces, (x) => (t(), o("div", {
484
+ key: x.name,
485
485
  class: "flex items-center space-x-3 border-t px-5 py-2 hover:bg-secondary-10"
486
486
  }, [
487
- g(M, {
488
- text: m.name,
489
- src: m.photo_url,
487
+ _(B, {
488
+ text: x.name,
489
+ src: x.photo_url,
490
490
  size: 30,
491
491
  rounded: !1
492
492
  }, null, 8, ["text", "src"]),
493
- e("span", ze, a(m.name), 1)
493
+ e("span", Be, a(x.name), 1)
494
494
  ]))), 128))
495
495
  ])) : h("", !0),
496
- w[0] || (w[0] = e("hr", null, null, -1)),
496
+ g[0] || (g[0] = e("hr", null, null, -1)),
497
497
  e("div", {
498
498
  onClick: s,
499
499
  class: "text-center py-2 cursor-pointer",
500
500
  style: { "font-size": "10px" }
501
- }, a((_ = n.workspace) == null ? void 0 : _.changeLabel), 1)
501
+ }, a((k = n.workspace) == null ? void 0 : k.changeLabel), 1)
502
502
  ])
503
503
  ]),
504
- e("div", Oe, [
505
- e("div", Se, a((y = n.workspace) == null ? void 0 : y.appsLabel), 1),
506
- e("div", Ee, [
507
- n.apps && n.apps.length ? (t(), o("div", Ie, [
508
- (t(!0), o($, null, A(n.apps, (m) => (t(), o("div", {
509
- key: m.id,
510
- onClick: (S) => x(m),
504
+ e("div", ze, [
505
+ e("div", Oe, a((M = n.workspace) == null ? void 0 : M.appsLabel), 1),
506
+ e("div", Se, [
507
+ n.apps && n.apps.length ? (t(), o("div", Ee, [
508
+ (t(!0), o($, null, A(n.apps, (x) => (t(), o("div", {
509
+ key: x.id,
510
+ onClick: (S) => m(x),
511
511
  class: "flex justify-between items-center rounded-lg hover:bg-secondary-10 p-2 bg-[#FAFAFA] cursor-pointer"
512
512
  }, [
513
- e("div", He, [
514
- e("div", Te, [
515
- g(M, {
516
- text: m.name,
517
- src: m.photo_url,
513
+ e("div", Pe, [
514
+ e("div", He, [
515
+ _(B, {
516
+ text: x.name,
517
+ src: x.photo_url,
518
518
  size: 44,
519
519
  rounded: !1
520
520
  }, null, 8, ["text", "src"])
521
521
  ]),
522
- e("div", Ve, [
523
- e("p", De, a(m.name), 1),
524
- e("p", Re, a(m == null ? void 0 : m.short), 1)
522
+ e("div", Te, [
523
+ e("p", Ve, a(x.name), 1),
524
+ e("p", De, a(x == null ? void 0 : x.short), 1)
525
525
  ])
526
526
  ]),
527
527
  e("div", null, [
528
- g(ne, {
528
+ _(oe, {
529
529
  variant: "touch",
530
- icon: C(ke),
531
- onClick: (S) => x(m)
530
+ icon: b(we),
531
+ onClick: (S) => m(x)
532
532
  }, null, 8, ["icon", "onClick"])
533
533
  ])
534
- ], 8, Pe))), 128))
534
+ ], 8, Ie))), 128))
535
535
  ])) : h("", !0),
536
- n.apps && n.apps.length ? (t(), o("button", qe, a("Дивитися всі"))) : h("", !0)
536
+ n.apps && n.apps.length ? (t(), o("button", Re, a("Дивитися всі"))) : h("", !0)
537
537
  ])
538
538
  ])
539
539
  ])) : h("", !0)
540
- ], 8, ye);
540
+ ], 8, ke);
541
541
  };
542
542
  }
543
543
  });
544
- const Mt = /* @__PURE__ */ K(Ne, [["__scopeId", "data-v-4936d4e4"]]);
545
- function We(f, u) {
544
+ const Lt = /* @__PURE__ */ J(qe, [["__scopeId", "data-v-4936d4e4"]]);
545
+ function Ne(f, u) {
546
546
  return t(), o("svg", {
547
547
  xmlns: "http://www.w3.org/2000/svg",
548
548
  fill: "none",
@@ -558,7 +558,7 @@ function We(f, u) {
558
558
  })
559
559
  ]);
560
560
  }
561
- function Ue(f, u) {
561
+ function We(f, u) {
562
562
  return t(), o("svg", {
563
563
  xmlns: "http://www.w3.org/2000/svg",
564
564
  fill: "none",
@@ -579,7 +579,7 @@ function Ue(f, u) {
579
579
  })
580
580
  ]);
581
581
  }
582
- function Ge(f, u) {
582
+ function Ue(f, u) {
583
583
  return t(), o("svg", {
584
584
  xmlns: "http://www.w3.org/2000/svg",
585
585
  fill: "none",
@@ -595,170 +595,172 @@ function Ge(f, u) {
595
595
  })
596
596
  ]);
597
597
  }
598
- const Je = ["data-opened"], Ke = {
598
+ const Ge = ["data-opened"], Je = {
599
599
  key: 1,
600
600
  class: "absolute top-0 right-0 h-screen max-w-96 bg-white px-3 z-10 flex flex-col"
601
- }, Qe = { class: "flex justify-between items-center pt-3 mb-3" }, Xe = { class: "font-semibold text-xl px-3" }, Ye = {
601
+ }, Ke = { class: "flex justify-between items-center pt-3 mb-3" }, Qe = { class: "font-semibold text-xl px-3" }, Xe = {
602
602
  key: 0,
603
603
  class: "grid grid-cols-3 bg-[#FAFAFA] rounded-xl text-[#525B66] mb-2"
604
- }, Ze = ["onClick"], et = { class: "uppercase text-[8px]" }, tt = { class: "overflow-y-auto grid rounded-xl" }, ot = { class: "max-h-full bg-[#FAFAFA]" }, nt = {
604
+ }, Ye = ["onClick"], Ze = { class: "uppercase text-[8px]" }, et = { class: "overflow-y-auto grid rounded-xl" }, tt = { class: "max-h-full bg-[#FAFAFA]" }, ot = {
605
605
  key: 0,
606
606
  class: "space-y-2"
607
- }, st = ["onClick"], rt = { class: "flex" }, lt = { class: "pl-2" }, it = { class: "text-sm mt-1 font-semibold" }, ct = { class: "text-[10px] mt-1 text-[#979CA9]" }, at = { class: "mt-auto" }, ut = { key: 0 }, dt = ["onClick"], pt = { class: "flex items-center space-x-3" }, ht = { class: "h-16" }, ft = {
607
+ }, nt = ["onClick"], st = { class: "flex" }, rt = { class: "pl-2" }, lt = { class: "text-sm mt-1 font-semibold" }, it = { class: "text-[10px] mt-1 text-[#979CA9]" }, ct = { class: "mt-auto" }, at = { key: 0 }, ut = ["onClick"], dt = { class: "flex items-center space-x-3" }, pt = { class: "h-16" }, ht = {
608
608
  key: 0,
609
609
  class: "bg-[#FAFAFA] rounded-lg p-3"
610
- }, vt = { class: "flex justify-between" }, mt = ["onClick"], xt = {
610
+ }, ft = { class: "flex justify-between" }, vt = ["onClick"], xt = {
611
611
  key: 0,
612
612
  class: "tooltip-text min-w-[70px]"
613
- }, gt = { class: "flex justify-between mb-4" }, _t = ["href"], wt = { class: "flex flex-nowrap items-center w-max h-[24px]" }, kt = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, yt = { class: "py-[8px] pl-0 pr-[8px]" }, bt = /* @__PURE__ */ B({
613
+ }, mt = { class: "flex justify-between mb-4" }, gt = ["href"], _t = { class: "flex flex-nowrap items-center w-max h-[24px]" }, wt = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, kt = { class: "py-[8px] pl-0 pr-[8px]" }, yt = /* @__PURE__ */ z({
614
614
  __name: "OneHelpMenu",
615
- props: pe,
615
+ props: de,
616
616
  emits: ["open", "close"],
617
617
  setup(f, { emit: u }) {
618
618
  const v = u, d = f, c = j(!1), r = () => {
619
619
  c.value = !c.value, c.value ? v("open") : v("close");
620
- }, p = F(() => k.value ? X : Q), s = j(3), x = F(() => {
621
- var _, y;
622
- const i = ((y = (_ = d.help) == null ? void 0 : _.helpList) == null ? void 0 : y.length) || 0;
623
- return s.value === i;
624
- }), n = F(() => {
625
- var _;
626
- return (((_ = d.help) == null ? void 0 : _.helpList) || []).slice(0, s.value);
627
- }), w = () => {
628
- var _, y;
629
- const i = ((y = (_ = d.help) == null ? void 0 : _.helpList) == null ? void 0 : y.length) || 0;
630
- s.value = x.value ? 3 : i;
631
- }, b = (i) => {
632
- i && window.open(i, "_blank");
633
- }, k = j(!1), O = () => {
634
- k.value = !k.value;
620
+ }, p = F(() => y.value ? Q : K), s = j(3), m = F(() => {
621
+ var w, k;
622
+ const l = ((k = (w = d.help) == null ? void 0 : w.helpList) == null ? void 0 : k.length) || 0;
623
+ return s.value === l;
624
+ });
625
+ F(() => {
626
+ var w;
627
+ return (((w = d.help) == null ? void 0 : w.helpList) || []).slice(0, s.value);
628
+ });
629
+ const n = () => {
630
+ var w, k;
631
+ const l = ((k = (w = d.help) == null ? void 0 : w.helpList) == null ? void 0 : k.length) || 0;
632
+ s.value = m.value ? 3 : l;
633
+ }, g = (l) => {
634
+ l && window.open(l, "_blank");
635
+ }, y = j(!1), C = () => {
636
+ y.value = !y.value;
635
637
  };
636
- return (i, _) => {
637
- var y, m, S, H, T, V, D, R, q;
638
+ return (l, w) => {
639
+ var k, M, x, S, H, T, V, D, R;
638
640
  return t(), o("div", { "data-opened": c.value }, [
639
641
  e("button", {
640
642
  onClick: r,
641
- class: z(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
643
+ class: O(["p-1 w-[44px] h-[44px] rounded-md hover:bg-secondary-10", { "bg-secondary-10": c.value }])
642
644
  }, [
643
- g(C(We), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
645
+ _(b(Ne), { class: "text-secondary-base w-full p-1 hover:text-blue-600 m-auto" })
644
646
  ], 2),
645
647
  c.value ? (t(), o("div", {
646
648
  key: 0,
647
649
  class: "fixed top-0 left-0 w-screen h-screen z-10 bg-black/10 flex flex-col",
648
650
  onClick: r
649
651
  })) : h("", !0),
650
- c.value ? (t(), o("div", Ke, [
651
- e("div", Qe, [
652
- e("div", Xe, a((y = i.help) == null ? void 0 : y.label), 1),
653
- g(C(J), {
652
+ c.value ? (t(), o("div", Je, [
653
+ e("div", Ke, [
654
+ e("div", Qe, a((k = l.help) == null ? void 0 : k.label), 1),
655
+ _(b(G), {
654
656
  class: "w-6 cursor-pointer",
655
657
  onClick: r
656
658
  })
657
659
  ]),
658
- (m = i.help) != null && m.helpButton ? (t(), o("div", Ye, [
659
- (t(!0), o($, null, A((S = i.help) == null ? void 0 : S.helpButton, (l) => (t(), o("button", {
660
- key: l.name,
661
- onClick: (E) => b(l.link),
660
+ (M = l.help) != null && M.helpButton ? (t(), o("div", Xe, [
661
+ (t(!0), o($, null, A((x = l.help) == null ? void 0 : x.helpButton, (i) => (t(), o("button", {
662
+ key: i.name,
663
+ onClick: (E) => g(i.link),
662
664
  class: "grid justify-center space-y-2 hover:bg-slate-100 p-3 rounded-xl hover:text-blue-500"
663
665
  }, [
664
666
  e("div", null, [
665
- (t(), L(P(l == null ? void 0 : l.icon), { class: "w-[16px] h-[16px] mx-auto" }))
667
+ (t(), L(P(i == null ? void 0 : i.icon), { class: "w-[16px] h-[16px] mx-auto" }))
666
668
  ]),
667
- e("span", et, a(l.name), 1)
668
- ], 8, Ze))), 128))
669
+ e("span", Ze, a(i.name), 1)
670
+ ], 8, Ye))), 128))
669
671
  ])) : h("", !0),
670
- e("div", tt, [
671
- e("div", ot, [
672
- (H = i.help) != null && H.helpList && i.help.helpList.length ? (t(), o("div", nt, [
673
- (t(!0), o($, null, A(n.value, (l) => (t(), o("div", {
674
- key: l.id,
675
- onClick: (E) => b(l.link),
672
+ e("div", et, [
673
+ e("div", tt, [
674
+ (S = l.help) != null && S.helpList && l.help.helpList.length ? (t(), o("div", ot, [
675
+ (t(!0), o($, null, A(l.help.helpList, (i) => (t(), o("div", {
676
+ key: i.id,
677
+ onClick: (E) => g(i.link),
676
678
  class: "flex justify-between items-center rounded-lg hover:bg-slate-100 p-2 cursor-pointer hover:text-[#4089E0]"
677
679
  }, [
678
- e("div", rt, [
679
- e("div", lt, [
680
- e("p", it, a(l.name), 1),
681
- e("p", ct, a(l.category), 1)
680
+ e("div", st, [
681
+ e("div", rt, [
682
+ e("p", lt, a(i.name), 1),
683
+ e("p", it, a(i.category), 1)
682
684
  ])
683
685
  ])
684
- ], 8, st))), 128))
686
+ ], 8, nt))), 128))
685
687
  ])) : h("", !0)
686
688
  ])
687
689
  ]),
688
- (T = i.help) != null && T.helpList && i.help.helpList.length < 0 ? (t(), o("button", {
690
+ (H = l.help) != null && H.helpList && l.help.helpList.length < 0 ? (t(), o("button", {
689
691
  key: 1,
690
- onClick: w,
692
+ onClick: n,
691
693
  class: "h-11 w-full bg-[#FAFAFA] hover:bg-slate-100 p-3 text-[#525B66] rounded-b-xl text-xs hover:text-[#4089E0] font-medium"
692
- }, a(x.value ? i.help.buttNoMore : i.help.buttMore), 1)) : h("", !0),
693
- e("div", at, [
694
- (V = i.help) != null && V.video ? (t(), o("div", ut, [
695
- (t(!0), o($, null, A(i.help.video, (l) => (t(), o("button", {
696
- key: l.id,
697
- onClick: (E) => b(l.link),
694
+ }, a(m.value ? l.help.buttNoMore : l.help.buttMore), 1)) : h("", !0),
695
+ e("div", ct, [
696
+ (T = l.help) != null && T.video ? (t(), o("div", at, [
697
+ (t(!0), o($, null, A(l.help.video, (i) => (t(), o("button", {
698
+ key: i.id,
699
+ onClick: (E) => g(i.link),
698
700
  class: "flex items-center space-x-3 mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
699
701
  }, [
700
- g(C(Ue), { class: "w-6 h-6" }),
701
- e("span", null, a(l.name), 1)
702
- ], 8, dt))), 128))
702
+ _(b(We), { class: "w-6 h-6" }),
703
+ e("span", null, a(i.name), 1)
704
+ ], 8, ut))), 128))
703
705
  ])) : h("", !0),
704
- (D = i.help) != null && D.socialList ? (t(), o("button", {
706
+ (V = l.help) != null && V.socialList ? (t(), o("button", {
705
707
  key: 1,
706
- onClick: O,
708
+ onClick: C,
707
709
  class: "flex items-center justify-between mt-2 w-full bg-[#FAFAFA] hover:bg-slate-100 p-4 text-[#525B66] rounded-lg text-sm hover:text-[#4089E0] font-medium"
708
710
  }, [
709
- e("div", pt, [
710
- g(C(Ge), { class: "w-6 h-6" }),
711
- e("span", null, a(i.help.socialButt), 1)
711
+ e("div", dt, [
712
+ _(b(Ue), { class: "w-6 h-6" }),
713
+ e("span", null, a(l.help.socialButt), 1)
712
714
  ]),
713
- g(C(p), { class: "w-4 h-4" })
715
+ _(b(p), { class: "w-4 h-4" })
714
716
  ])) : h("", !0),
715
- e("div", ht, [
716
- k.value ? (t(), o("div", ft, [
717
- e("div", vt, [
718
- (t(!0), o($, null, A((R = i.help) == null ? void 0 : R.socialList, (l) => (t(), o("button", {
719
- key: l.id,
720
- onClick: (E) => b(l.link),
717
+ e("div", pt, [
718
+ y.value ? (t(), o("div", ht, [
719
+ e("div", ft, [
720
+ (t(!0), o($, null, A((D = l.help) == null ? void 0 : D.socialList, (i) => (t(), o("button", {
721
+ key: i.id,
722
+ onClick: (E) => g(i.link),
721
723
  class: "flex items-center space-x-2 p-2 rounded-lg hover:bg-slate-100 hover:text-blue-500 tooltip"
722
724
  }, [
723
725
  e("div", null, [
724
- l.name ? (t(), o("div", xt, a(l.name), 1)) : h("", !0),
725
- (t(), L(P(l == null ? void 0 : l.icon), { class: "w-[24px] h-[24px] mx-auto" }))
726
+ i.name ? (t(), o("div", xt, a(i.name), 1)) : h("", !0),
727
+ (t(), L(P(i == null ? void 0 : i.icon), { class: "w-[24px] h-[24px] mx-auto" }))
726
728
  ])
727
- ], 8, mt))), 128))
729
+ ], 8, vt))), 128))
728
730
  ])
729
731
  ])) : h("", !0)
730
732
  ]),
731
- e("div", gt, [
732
- (t(!0), o($, null, A((q = i.help) == null ? void 0 : q.termsOffer, (l) => (t(), o("a", {
733
- key: l.name,
733
+ e("div", mt, [
734
+ (t(!0), o($, null, A((R = l.help) == null ? void 0 : R.termsOffer, (i) => (t(), o("a", {
735
+ key: i.name,
734
736
  target: "_blank",
735
- href: l.link,
737
+ href: i.link,
736
738
  class: "ml-2 flex items-center rounded-lg text-xs hover:underline font-extralight cursor-pointer"
737
739
  }, [
738
- e("div", wt, [
739
- e("div", kt, [
740
- e("span", yt, a(l.name), 1)
740
+ e("div", _t, [
741
+ e("div", wt, [
742
+ e("span", kt, a(i.name), 1)
741
743
  ])
742
744
  ])
743
- ], 8, _t))), 128))
745
+ ], 8, gt))), 128))
744
746
  ])
745
747
  ])
746
748
  ])) : h("", !0)
747
- ], 8, Je);
749
+ ], 8, Ge);
748
750
  };
749
751
  }
750
752
  });
751
- const Bt = /* @__PURE__ */ K(bt, [["__scopeId", "data-v-32f18d17"]]);
753
+ const Mt = /* @__PURE__ */ J(yt, [["__scopeId", "data-v-83ffa612"]]);
752
754
  export {
753
755
  Mt as O,
754
- ce as _,
755
- G as a,
756
- Lt as b,
757
- Bt as c,
758
- Q as d,
759
- ke as e,
760
- Ge as f,
761
- de as g,
762
- we as h,
763
- X as r
756
+ jt as _,
757
+ K as a,
758
+ we as b,
759
+ Ue as c,
760
+ Lt as d,
761
+ ie as e,
762
+ U as f,
763
+ ue as g,
764
+ _e as h,
765
+ Q as r
764
766
  };