@oneb/ui-vue 0.3.32 → 0.4.1

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 (229) hide show
  1. package/dist/ChevronLeftIcon-7505e081.cjs +1 -0
  2. package/dist/ChevronLeftIcon-bb9adb5b.js +20 -0
  3. package/dist/ChevronRightIcon-2992cf0d.cjs +1 -0
  4. package/dist/ChevronRightIcon-b0585768.js +20 -0
  5. package/dist/ChevronUpIcon-64a673e1.cjs +1 -0
  6. package/dist/{ChevronRightIcon-4549a26b.js → ChevronUpIcon-c43f27a9.js} +2 -19
  7. package/dist/LogoOneb-b6ac382e.cjs +1 -0
  8. package/dist/LogoOneb-ddb388a4.js +16 -0
  9. package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
  10. package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
  11. package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js +79 -0
  12. package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-bf923b04.cjs +1 -0
  13. package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-b89117e7.js +521 -0
  14. package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-f6f7cd96.cjs +1 -0
  15. package/dist/{OneHelpMenu-73817f8a.js → OneHelpMenu-2a2051d7.js} +120 -214
  16. package/dist/OneHelpMenu-78d9348a.cjs +1 -0
  17. package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-05266fc3.cjs +1 -0
  18. package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js +18 -0
  19. package/dist/OneModal-02a9a173.js +189 -0
  20. package/dist/OneModal-0e92c039.cjs +1 -0
  21. package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-c492c128.js +25 -0
  22. package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-e83a81ea.cjs +1 -0
  23. package/dist/SpinnerIcon-01be39fe.cjs +1 -0
  24. package/dist/{SpinnerIcon-74648c98.js → SpinnerIcon-516264ba.js} +5 -6
  25. package/dist/button/index.cjs +1 -1
  26. package/dist/button/index.d.ts +1 -1
  27. package/dist/button/index.js +3 -4
  28. package/dist/checkbox/checkbox.d.ts +5 -0
  29. package/dist/checkbox/index.cjs +1 -1
  30. package/dist/checkbox/index.js +40 -34
  31. package/dist/chips/OneChips.vue.d.ts +2 -0
  32. package/dist/chips/chips.d.ts +25 -0
  33. package/dist/chips/index.cjs +1 -0
  34. package/dist/chips/index.d.ts +3 -0
  35. package/dist/chips/index.js +62 -0
  36. package/dist/clipboard-494e1513.cjs +1 -0
  37. package/dist/clipboard-733b79a1.js +22 -0
  38. package/dist/common/OneDetailsList.vue.d.ts +2 -0
  39. package/dist/common/OneDetailsRow.vue.d.ts +2 -0
  40. package/dist/common/index.cjs +1 -1
  41. package/dist/common/index.d.ts +2 -0
  42. package/dist/common/index.js +68 -16
  43. package/dist/composables/index.cjs +1 -0
  44. package/dist/composables/index.d.ts +18 -0
  45. package/dist/composables/index.js +91 -0
  46. package/dist/composables/useAsyncMethod.d.ts +17 -0
  47. package/dist/composables/useAsyncSelect.d.ts +26 -0
  48. package/dist/composables/useConfirm.d.ts +27 -0
  49. package/dist/composables/useCursorList.d.ts +42 -0
  50. package/dist/composables/useDebouncedRef.d.ts +6 -0
  51. package/dist/composables/useFileUpload.d.ts +21 -0
  52. package/dist/composables/useFormSubmit.d.ts +23 -0
  53. package/dist/composables/useIsMobile.d.ts +8 -0
  54. package/dist/confirm/OneConfirmHost.vue.d.ts +2 -0
  55. package/dist/confirm/confirm.d.ts +10 -0
  56. package/dist/confirm/index.cjs +1 -0
  57. package/dist/confirm/index.d.ts +5 -0
  58. package/dist/confirm/index.js +59 -0
  59. package/dist/cursorList/OneCursorList.vue.d.ts +2 -0
  60. package/dist/cursorList/index.cjs +1 -0
  61. package/dist/cursorList/index.d.ts +3 -0
  62. package/dist/cursorList/index.js +78 -0
  63. package/dist/dataTable/index.cjs +1 -1
  64. package/dist/dataTable/index.js +256 -301
  65. package/dist/dateTime/OneDateTime.vue.d.ts +2 -0
  66. package/dist/dateTime/dateTime.d.ts +43 -0
  67. package/dist/dateTime/index.cjs +1 -0
  68. package/dist/dateTime/index.d.ts +3 -0
  69. package/dist/dateTime/index.js +66 -0
  70. package/dist/dropdown/index.cjs +1 -1
  71. package/dist/dropdown/index.js +302 -376
  72. package/dist/dropdown-5cb64ab7.cjs +1 -0
  73. package/dist/dropdown-c81fb945.js +101 -0
  74. package/dist/entityPicker/index.cjs +1 -1
  75. package/dist/entityPicker/index.js +57 -57
  76. package/dist/entityPicker/useEntityModal.d.ts +7 -3
  77. package/dist/errorsPage/OneCrashScreen.vue.d.ts +2 -0
  78. package/dist/errorsPage/OneErrorHero.vue.d.ts +2 -0
  79. package/dist/errorsPage/OneNotFoundPage.vue.d.ts +2 -0
  80. package/dist/errorsPage/OneServerErrorPage.vue.d.ts +2 -0
  81. package/dist/errorsPage/OneSnakeGame.vue.d.ts +2 -0
  82. package/dist/errorsPage/createAppErrorHandler.d.ts +24 -0
  83. package/dist/errorsPage/errorsType.d.ts +5 -0
  84. package/dist/errorsPage/index.cjs +1 -1
  85. package/dist/errorsPage/index.d.ts +8 -0
  86. package/dist/errorsPage/index.js +543 -28
  87. package/dist/errorsPage/useCrashState.d.ts +10 -0
  88. package/dist/fileUpload/OneDropzone.vue.d.ts +2 -0
  89. package/dist/fileUpload/OneFileUpload.vue.d.ts +2 -0
  90. package/dist/fileUpload/fileUpload.d.ts +17 -0
  91. package/dist/fileUpload/index.cjs +1 -0
  92. package/dist/fileUpload/index.d.ts +6 -0
  93. package/dist/fileUpload/index.js +228 -0
  94. package/dist/filterBuilder/OneFilterBuilder.vue.d.ts +2 -0
  95. package/dist/filterBuilder/OneFilterGroup.vue.d.ts +2 -0
  96. package/dist/filterBuilder/OneFilterRule.vue.d.ts +2 -0
  97. package/dist/filterBuilder/filterBuilder.d.ts +17 -0
  98. package/dist/filterBuilder/index.cjs +1 -0
  99. package/dist/filterBuilder/index.d.ts +5 -0
  100. package/dist/filterBuilder/index.js +268 -0
  101. package/dist/form/form.d.ts +1 -1
  102. package/dist/form/index.cjs +1 -1
  103. package/dist/form/index.js +66 -574
  104. package/dist/i18n/index.cjs +1 -1
  105. package/dist/i18n/index.js +101 -15
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.d.ts +18 -0
  108. package/dist/index.js +244 -104
  109. package/dist/indicators/OneStatCard.vue.d.ts +2 -0
  110. package/dist/indicators/index.cjs +1 -1
  111. package/dist/indicators/index.d.ts +1 -0
  112. package/dist/indicators/index.js +66 -29
  113. package/dist/label/index.cjs +1 -1
  114. package/dist/label/index.js +5 -5
  115. package/dist/layout/LogoOneb.vue.d.ts +2 -0
  116. package/dist/layout/OneAuthLayout.vue.d.ts +2 -0
  117. package/dist/layout/OneBackButton.vue.d.ts +2 -0
  118. package/dist/layout/OneBreadcrumbs.vue.d.ts +2 -0
  119. package/dist/layout/OneEmptyLayout.vue.d.ts +6 -0
  120. package/dist/layout/OneGridLayout.vue.d.ts +2 -0
  121. package/dist/layout/index.cjs +1 -1
  122. package/dist/layout/index.d.ts +7 -1
  123. package/dist/layout/index.js +1059 -765
  124. package/dist/layout/layout.d.ts +11 -0
  125. package/dist/modal/OneModalHost.vue.d.ts +2 -0
  126. package/dist/modal/index.cjs +1 -1
  127. package/dist/modal/index.d.ts +3 -0
  128. package/dist/modal/index.js +84 -27
  129. package/dist/modal/modal.d.ts +9 -0
  130. package/dist/modal/useModalStack.d.ts +20 -0
  131. package/dist/notifications/OneNotificationItem.vue.d.ts +2 -0
  132. package/dist/notifications/OneNotificationsBell.vue.d.ts +2 -0
  133. package/dist/notifications/OneNotificationsPanel.vue.d.ts +2 -0
  134. package/dist/notifications/index.cjs +1 -0
  135. package/dist/notifications/index.d.ts +7 -0
  136. package/dist/notifications/index.js +477 -0
  137. package/dist/notifications/notifications.d.ts +53 -0
  138. package/dist/notifications/useNotifyfeed.d.ts +32 -0
  139. package/dist/periodPicker/index.cjs +1 -1
  140. package/dist/periodPicker/index.js +126 -139
  141. package/dist/popover/OnePopover.vue.d.ts +2 -0
  142. package/dist/popover/index.cjs +1 -0
  143. package/dist/popover/index.d.ts +3 -0
  144. package/dist/popover/index.js +104 -0
  145. package/dist/popover/popover.d.ts +31 -0
  146. package/dist/progress/OneProgress.vue.d.ts +2 -0
  147. package/dist/progress/index.cjs +1 -0
  148. package/dist/progress/index.d.ts +3 -0
  149. package/dist/progress/index.js +74 -0
  150. package/dist/progress/progress.d.ts +32 -0
  151. package/dist/searchInput/OneSearchInput.vue.d.ts +2 -0
  152. package/dist/searchInput/index.cjs +1 -0
  153. package/dist/searchInput/index.d.ts +3 -0
  154. package/dist/searchInput/index.js +103 -0
  155. package/dist/searchInput/searchInput.d.ts +39 -0
  156. package/dist/settings/OneSettingsLayout.vue.d.ts +2 -0
  157. package/dist/settings/OneSettingsRow.vue.d.ts +2 -0
  158. package/dist/settings/OneSettingsSection.vue.d.ts +2 -0
  159. package/dist/settings/index.cjs +1 -0
  160. package/dist/settings/index.d.ts +4 -0
  161. package/dist/settings/index.js +116 -0
  162. package/dist/spinner/OneSpinner.vue.d.ts +2 -0
  163. package/dist/spinner/index.cjs +1 -0
  164. package/dist/spinner/index.d.ts +3 -0
  165. package/dist/spinner/index.js +30 -0
  166. package/dist/spinner/spinner.d.ts +10 -0
  167. package/dist/stageBadge/index.cjs +1 -1
  168. package/dist/stageBadge/index.js +18 -16
  169. package/dist/stepper/OneStepper.vue.d.ts +2 -0
  170. package/dist/stepper/index.cjs +1 -0
  171. package/dist/stepper/index.d.ts +3 -0
  172. package/dist/stepper/index.js +53 -0
  173. package/dist/stepper/stepper.d.ts +24 -0
  174. package/dist/style.css +1 -1
  175. package/dist/switch/index.cjs +1 -1
  176. package/dist/switch/index.js +3 -4
  177. package/dist/tabs/OneTab.vue.d.ts +2 -0
  178. package/dist/tabs/OneTabs.vue.d.ts +2 -0
  179. package/dist/tabs/index.cjs +1 -0
  180. package/dist/tabs/index.d.ts +4 -0
  181. package/dist/tabs/index.js +64 -0
  182. package/dist/tabs/tabs.d.ts +7 -0
  183. package/dist/toast/OneMascotToast.vue.d.ts +2 -0
  184. package/dist/toast/RabbitIcon.vue.d.ts +2 -0
  185. package/dist/toast/index.cjs +1 -1
  186. package/dist/toast/index.d.ts +4 -0
  187. package/dist/toast/index.js +139 -74
  188. package/dist/toast/useMascotToast.d.ts +12 -0
  189. package/dist/tooltip/OneTooltip.vue.d.ts +2 -0
  190. package/dist/tooltip/index.cjs +2 -2
  191. package/dist/tooltip/index.d.ts +1 -0
  192. package/dist/tooltip/index.js +33 -30
  193. package/dist/useConfirm-6344b49d.cjs +1 -0
  194. package/dist/useConfirm-74e99a5c.js +23 -0
  195. package/dist/useCursorList-5c1b57aa.js +62 -0
  196. package/dist/useCursorList-e1cb41e7.cjs +1 -0
  197. package/dist/useElementWidth-b36a7ce9.js +40 -0
  198. package/dist/useElementWidth-b3e53f48.cjs +1 -0
  199. package/dist/useFileUpload-228dbc07.js +24 -0
  200. package/dist/useFileUpload-f47622bb.cjs +1 -0
  201. package/dist/useIsMobile-7b1f08cf.cjs +1 -0
  202. package/dist/useIsMobile-98fc0cf9.js +7 -0
  203. package/dist/useMediaQuery-1d87df02.cjs +1 -0
  204. package/dist/useMediaQuery-77a19b18.js +37 -0
  205. package/dist/useModal-6a5d870b.js +30 -0
  206. package/dist/useModal-aa6f4a57.cjs +1 -0
  207. package/dist/userList/OneUserInviteModal.vue.d.ts +2 -0
  208. package/dist/userList/OneUserList.vue.d.ts +2 -0
  209. package/dist/userList/OneUserListItem.vue.d.ts +2 -0
  210. package/dist/userList/index.cjs +1 -0
  211. package/dist/userList/index.d.ts +4 -0
  212. package/dist/userList/index.js +559 -0
  213. package/dist/utils/clipboard.d.ts +6 -0
  214. package/dist/utils/format.d.ts +17 -0
  215. package/dist/utils/index.cjs +1 -0
  216. package/dist/utils/index.d.ts +4 -0
  217. package/dist/utils/index.js +125 -0
  218. package/dist/utils/string.d.ts +25 -0
  219. package/dist/utils/versionChecker.d.ts +26 -0
  220. package/package.json +215 -24
  221. package/dist/ChevronRightIcon-7a2f0c20.cjs +0 -1
  222. package/dist/OneHelpMenu-c6e88d8f.cjs +0 -1
  223. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
  224. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
  225. package/dist/SpinnerIcon-ccb6f3fc.cjs +0 -1
  226. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
  227. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
  228. package/dist/useModal-0c73777f.cjs +0 -1
  229. package/dist/useModal-7fe9444b.js +0 -194
@@ -1,21 +1,25 @@
1
- import { openBlock as e, createElementBlock as l, createElementVNode as s, defineComponent as ke, computed as j, ref as z, resolveComponent as s1, resolveDirective as h1, Fragment as N, toDisplayString as u, createCommentVNode as a, createBlock as c, withCtx as Z, resolveDynamicComponent as _, mergeProps as m1, renderList as D, withDirectives as ie, normalizeClass as C, unref as S, withModifiers as ue, watch as pe, onMounted as Ce, onBeforeUnmount as v1, watchEffect as t1, shallowRef as f1, normalizeStyle as w1, vShow as ge, createVNode as B, createTextVNode as we, onUnmounted as Se, renderSlot as de } from "vue";
2
- import { _ as l1, g as y1, h as b1, c as o1, O as n1, b as a1 } from "../OneHelpMenu-73817f8a.js";
3
- import { r as Le, a as C1 } from "../ChevronRightIcon-4549a26b.js";
4
- import { r as ye } from "../ChevronDownIcon-6805ce6c.js";
5
- import { _ as _e } from "../_plugin-vue_export-helper-dad06003.js";
6
- import { OneButton as Me } from "../button/index.js";
7
- import { useOnebI18n as Be } from "../i18n/index.js";
8
- import { r as r1 } from "../XMarkIcon-51ef0691.js";
9
- import { S as i1 } from "../SpinnerIcon-74648c98.js";
10
- import { OneMarkdown as u1 } from "../common/index.js";
11
- import "../OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js";
12
- import { _ as be } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
1
+ import { openBlock as e, createElementBlock as s, createElementVNode as t, defineComponent as K, computed as S, ref as V, resolveComponent as Ce, resolveDirective as ht, Fragment as W, toDisplayString as d, createCommentVNode as o, createBlock as h, withCtx as I, resolveDynamicComponent as _, mergeProps as mt, renderList as U, withDirectives as pe, normalizeClass as y, unref as O, withModifiers as he, watch as Me, shallowRef as ft, watchEffect as vt, normalizeStyle as tt, vShow as ge, createVNode as B, createTextVNode as ce, onMounted as xe, onUnmounted as Oe, renderSlot as P } from "vue";
2
+ import { _ as st, e as yt, f as wt, c as lt, O as ot, b as at } from "../OneHelpMenu-2a2051d7.js";
3
+ import { r as Be } from "../ChevronUpIcon-c43f27a9.js";
4
+ import { r as be } from "../ChevronDownIcon-6805ce6c.js";
5
+ import { _ as $e } from "../_plugin-vue_export-helper-dad06003.js";
6
+ import { r as nt } from "../ChevronRightIcon-b0585768.js";
7
+ import { OneButton as _e } from "../button/index.js";
8
+ import { u as bt } from "../useElementWidth-b36a7ce9.js";
9
+ import { useOnebI18n as Le } from "../i18n/index.js";
10
+ import { r as rt } from "../XMarkIcon-51ef0691.js";
11
+ import { S as it } from "../SpinnerIcon-516264ba.js";
12
+ import { _ as dt } from "../OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js";
13
+ import { _ as ue } from "../OneAvatar.vue_vue_type_script_setup_true_lang-08ab80dd.js";
14
+ import { L as _o } from "../LogoOneb-ddb388a4.js";
15
+ import { useRouter as gt } from "vue-router";
16
+ import { r as xt } from "../ChevronLeftIcon-bb9adb5b.js";
17
+ import "../dropdown-c81fb945.js";
13
18
  import "@floating-ui/dom";
14
19
  import "@floating-ui/vue";
15
- import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
16
20
  import "vue-markdown-render";
17
- function je(x, k) {
18
- return e(), l("svg", {
21
+ function je(u, f) {
22
+ return e(), s("svg", {
19
23
  xmlns: "http://www.w3.org/2000/svg",
20
24
  fill: "none",
21
25
  viewBox: "0 0 24 24",
@@ -23,14 +27,14 @@ function je(x, k) {
23
27
  stroke: "currentColor",
24
28
  "aria-hidden": "true"
25
29
  }, [
26
- s("path", {
30
+ t("path", {
27
31
  "stroke-linecap": "round",
28
32
  "stroke-linejoin": "round",
29
33
  d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
30
34
  })
31
35
  ]);
32
36
  }
33
- const d1 = {
37
+ const ut = {
34
38
  items: {
35
39
  required: !0,
36
40
  type: Array
@@ -64,7 +68,7 @@ const d1 = {
64
68
  t: {
65
69
  type: Function
66
70
  }
67
- }, g1 = {
71
+ }, kt = {
68
72
  route: {
69
73
  required: !1,
70
74
  type: [Object, String]
@@ -131,8 +135,8 @@ const d1 = {
131
135
  required: !1
132
136
  // Не обов'язковий, бо може бути відсутнім
133
137
  }
134
- }, p1 = {
135
- sidebarItems: d1.items,
138
+ }, pt = {
139
+ sidebarItems: ut.items,
136
140
  logoSrc: {
137
141
  type: String
138
142
  },
@@ -155,6 +159,11 @@ const d1 = {
155
159
  workspace: {
156
160
  type: Object
157
161
  },
162
+ showHeader: {
163
+ type: Boolean,
164
+ default: void 0
165
+ },
166
+ /** @deprecated typo alias, use showHeader */
158
167
  showHeadre: {
159
168
  type: Boolean,
160
169
  default: !0
@@ -185,114 +194,118 @@ const d1 = {
185
194
  t: {
186
195
  type: Function
187
196
  }
188
- }, x1 = {
197
+ }, Ct = {
198
+ count: {
199
+ type: Number
200
+ }
201
+ }, $t = {
189
202
  key: 0,
190
203
  class: "border-t border-secondary-stroke my-2 mx-auto w-6"
191
- }, k1 = {
204
+ }, _t = {
192
205
  key: 1,
193
206
  style: { "font-size": "10px" },
194
207
  class: "text-[#a1a5b0] px-2 pt-0 pb-0.5 pl-3 font-medium"
195
- }, _1 = { class: "flex flex-nowrap items-center h-[24px]" }, $1 = {
208
+ }, Lt = { class: "flex flex-nowrap items-center h-[24px]" }, St = {
196
209
  key: 0,
197
210
  class: "flex-shrink-0 w-auto"
198
- }, L1 = { class: "min-w-[220px] py-1" }, S1 = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, M1 = ["href"], B1 = { class: "text-xs" }, j1 = { class: "text-xs" }, T1 = ["href"], z1 = { class: "flex flex-nowrap items-center h-[24px]" }, O1 = {
211
+ }, Bt = { class: "min-w-[220px] py-1" }, Ot = { class: "text-xs font-semibold text-black px-3 pt-1 pb-2" }, Mt = ["href"], jt = { class: "text-xs" }, Tt = { class: "text-xs" }, zt = ["href"], Ft = { class: "flex flex-nowrap items-center h-[24px]" }, Vt = {
199
212
  key: 1,
200
213
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
201
- }, V1 = { class: "py-[8px] pl-0 pr-0" }, H1 = {
214
+ }, Ht = { class: "py-[8px] pl-0 pr-0" }, Wt = {
202
215
  key: 2,
203
216
  class: "ml-auto"
204
- }, F1 = { class: "flex flex-nowrap items-center h-[24px]" }, E1 = {
217
+ }, Pt = { class: "flex flex-nowrap items-center h-[24px]" }, At = {
205
218
  key: 1,
206
219
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
207
- }, W1 = { class: "py-[8px] pl-0 pr-0" }, A1 = {
220
+ }, Et = { class: "py-[8px] pl-0 pr-0" }, Nt = {
208
221
  key: 2,
209
222
  class: "p-3"
210
- }, P1 = { class: "flex flex-nowrap items-center h-[24px]" }, G1 = {
223
+ }, Gt = { class: "flex flex-nowrap items-center h-[24px]" }, It = {
211
224
  key: 1,
212
225
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
213
- }, I1 = { class: "py-[8px] pl-0 pr-0" }, N1 = {
226
+ }, Rt = { class: "py-[8px] pl-0 pr-0" }, qt = {
214
227
  key: 2,
215
228
  class: "p-3"
216
- }, R1 = {
229
+ }, Ut = {
217
230
  key: 3,
218
231
  class: "pl-[36px] pr-3"
219
- }, q1 = ["href"], U1 = { class: "flex items-center justify-between min-w-full h-[24px]" }, Z1 = { class: "text-xs" }, D1 = {
232
+ }, Zt = ["href"], Dt = { class: "flex items-center justify-between min-w-full h-[24px]" }, Jt = { class: "text-xs" }, Kt = {
220
233
  key: 0,
221
234
  class: "pr-1"
222
- }, J1 = { class: "text-xs" }, K1 = {
235
+ }, Qt = { class: "text-xs" }, Xt = {
223
236
  key: 0,
224
237
  class: "pr-3"
225
- }, Q1 = /* @__PURE__ */ ke({
238
+ }, Yt = /* @__PURE__ */ K({
226
239
  __name: "OneSidebarLink",
227
- props: g1,
240
+ props: kt,
228
241
  emits: ["update-collapsed"],
229
- setup(x, { emit: k }) {
230
- const d = x, p = k, F = (t) => t.route ? t.route : t.routeName ? { name: t.routeName } : null, m = j(() => F(d)), w = j(() => Array.isArray(d.subItems) && d.subItems.length > 0), O = j(() => w.value && d.subItems.some((t) => t.href)), H = j(() => d.href ? "a" : m.value ? "router-link" : "span"), P = j(() => d.href ? { href: d.href, title: w.value ? null : d.label } : m.value ? { to: m.value, title: w.value ? null : d.label } : { title: w.value ? null : d.label }), M = j(() => [
242
+ setup(u, { emit: f }) {
243
+ const c = u, p = f, g = (l) => l.route ? l.route : l.routeName ? { name: l.routeName } : null, m = S(() => g(c)), C = S(() => Array.isArray(c.subItems) && c.subItems.length > 0), T = S(() => C.value && c.subItems.some((l) => l.href)), L = S(() => c.href ? "a" : m.value ? "router-link" : "span"), A = S(() => c.href ? { href: c.href, title: C.value ? null : c.label } : m.value ? { to: m.value, title: C.value ? null : c.label } : { title: C.value ? null : c.label }), z = S(() => [
231
244
  "flex items-center justify-center text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5 rounded-10 w-[44px] h-[44px] cursor-pointer",
232
- d.active ? "bg-primary-10 !text-primary-base" : ""
233
- ]), $ = z(d.open), q = (t, L = d) => {
245
+ c.active ? "bg-primary-10 !text-primary-base" : ""
246
+ ]), M = V(c.open), D = (l, j = c) => {
234
247
  var i;
235
- return (L == null ? void 0 : L.menuGroup) && (t == null ? void 0 : t.meta) && ((i = t.meta) == null ? void 0 : i.menuGroup) && t.meta.menuGroup && t.meta.menuGroup === L.menuGroup;
236
- }, R = () => {
237
- $.value = !$.value;
238
- }, E = (t, L) => {
248
+ return (j == null ? void 0 : j.menuGroup) && (l == null ? void 0 : l.meta) && ((i = l.meta) == null ? void 0 : i.menuGroup) && l.meta.menuGroup && l.meta.menuGroup === j.menuGroup;
249
+ }, Z = () => {
250
+ M.value = !M.value;
251
+ }, E = (l, j) => {
239
252
  var i;
240
- w.value && !L && !(d.slim && d.island) && ((i = t == null ? void 0 : t.preventDefault) == null || i.call(t), R()), (L || !w.value) && d.isMobile && p("update-collapsed");
253
+ C.value && !j && !(c.slim && c.island) && ((i = l == null ? void 0 : l.preventDefault) == null || i.call(l), Z()), (j || !C.value) && c.isMobile && p("update-collapsed");
241
254
  };
242
- return (t, L) => {
243
- var J, o;
244
- const i = s1("RouterLink"), f = h1("onetooltip");
245
- return e(), l(N, null, [
246
- t.labelTop && t.slim ? (e(), l("div", x1)) : t.labelTop ? (e(), l("p", k1, u(t.labelTop), 1)) : a("", !0),
247
- t.slim && t.island && w.value ? (e(), c(l1, {
255
+ return (l, j) => {
256
+ var Q, a;
257
+ const i = Ce("RouterLink"), b = ht("onetooltip");
258
+ return e(), s(W, null, [
259
+ l.labelTop && l.slim ? (e(), s("div", $t)) : l.labelTop ? (e(), s("p", _t, d(l.labelTop), 1)) : o("", !0),
260
+ l.slim && l.island && C.value ? (e(), h(st, {
248
261
  key: 2,
249
262
  trigger: "hover",
250
263
  "append-body": !0,
251
264
  stick: "right-start",
252
265
  offset: 12
253
266
  }, {
254
- button: Z(() => [
255
- (e(), c(_(H.value), m1(P.value, {
256
- class: M.value,
267
+ button: I(() => [
268
+ (e(), h(_(L.value), mt(A.value, {
269
+ class: z.value,
257
270
  onClick: E
258
271
  }), {
259
- default: Z(() => [
260
- s("div", _1, [
261
- t.icon ? (e(), l("div", $1, [
262
- (e(), c(_(t.icon), { class: "mx-auto w-5 h-5" }))
263
- ])) : a("", !0)
272
+ default: I(() => [
273
+ t("div", Lt, [
274
+ l.icon ? (e(), s("div", St, [
275
+ (e(), h(_(l.icon), { class: "mx-auto w-5 h-5" }))
276
+ ])) : o("", !0)
264
277
  ])
265
278
  ]),
266
279
  _: 1
267
280
  }, 16, ["class"]))
268
281
  ]),
269
- menu: Z(() => [
270
- s("div", L1, [
271
- s("p", S1, u(t.label), 1),
272
- O.value ? (e(!0), l(N, { key: 0 }, D(d.subItems, (r) => (e(), l("a", {
282
+ menu: I(() => [
283
+ t("div", Bt, [
284
+ t("p", Ot, d(l.label), 1),
285
+ T.value ? (e(!0), s(W, { key: 0 }, U(c.subItems, (r) => (e(), s("a", {
273
286
  key: r.label,
274
287
  href: r.href,
275
288
  class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
276
289
  }, [
277
- r.icon ? (e(), c(_(r.icon), {
290
+ r.icon ? (e(), h(_(r.icon), {
278
291
  key: 0,
279
292
  class: "w-[15px] h-[15px] shrink-0"
280
- })) : a("", !0),
281
- s("span", B1, u(r.label), 1)
282
- ], 8, M1))), 128)) : (e(!0), l(N, { key: 1 }, D(d.subItems, (r) => {
283
- var y, V;
284
- return e(), c(i, {
293
+ })) : o("", !0),
294
+ t("span", jt, d(r.label), 1)
295
+ ], 8, Mt))), 128)) : (e(!0), s(W, { key: 1 }, U(c.subItems, (r) => {
296
+ var x, H;
297
+ return e(), h(i, {
285
298
  key: r.label,
286
- to: F(r),
299
+ to: g(r),
287
300
  class: "flex items-center gap-2 rounded-10 mx-1 px-3 py-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]",
288
- "active-class": (y = t.$route) != null && y.meta && ((V = t.$route.meta) != null && V.menuGroup) && t.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
301
+ "active-class": (x = l.$route) != null && x.meta && ((H = l.$route.meta) != null && H.menuGroup) && l.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
289
302
  }, {
290
- default: Z(() => [
291
- r.icon ? (e(), c(_(r.icon), {
303
+ default: I(() => [
304
+ r.icon ? (e(), h(_(r.icon), {
292
305
  key: 0,
293
306
  class: "w-[15px] h-[15px] shrink-0"
294
- })) : a("", !0),
295
- s("span", j1, u(r.label), 1)
307
+ })) : o("", !0),
308
+ t("span", Tt, d(r.label), 1)
296
309
  ]),
297
310
  _: 2
298
311
  }, 1032, ["to", "active-class"]);
@@ -300,159 +313,159 @@ const d1 = {
300
313
  ])
301
314
  ]),
302
315
  _: 1
303
- })) : (e(), l(N, { key: 3 }, [
304
- t.href ? ie((e(), l("a", {
316
+ })) : (e(), s(W, { key: 3 }, [
317
+ l.href ? pe((e(), s("a", {
305
318
  key: 0,
306
- href: t.href,
307
- class: C(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
308
- t.island ? "rounded-10" : "rounded-xl",
309
- t.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
310
- t.active ? "bg-primary-10 !text-primary-base" : ""
319
+ href: l.href,
320
+ class: y(["flex items-center relative text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", [
321
+ l.island ? "rounded-10" : "rounded-xl",
322
+ l.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
323
+ l.active ? "bg-primary-10 !text-primary-base" : ""
311
324
  ]]),
312
325
  onClick: E
313
326
  }, [
314
- s("div", z1, [
315
- t.icon ? (e(), l("div", {
327
+ t("div", Ft, [
328
+ l.icon ? (e(), s("div", {
316
329
  key: 0,
317
- class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
330
+ class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
318
331
  }, [
319
- (e(), c(_(t.icon), {
320
- class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
332
+ (e(), h(_(l.icon), {
333
+ class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
321
334
  }, null, 8, ["class"]))
322
- ], 2)) : a("", !0),
323
- t.slim ? a("", !0) : (e(), l("div", O1, [
324
- s("span", V1, u(t.label), 1)
335
+ ], 2)) : o("", !0),
336
+ l.slim ? o("", !0) : (e(), s("div", Vt, [
337
+ t("span", Ht, d(l.label), 1)
325
338
  ])),
326
- w.value && !t.slim ? (e(), l("div", H1, [
327
- (e(), c(_($.value ? S(Le) : S(ye)), { class: "w-[16px] h-[16px]" }))
328
- ])) : a("", !0)
339
+ C.value && !l.slim ? (e(), s("div", Wt, [
340
+ (e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
341
+ ])) : o("", !0)
329
342
  ])
330
- ], 10, T1)), [
331
- [f, t.slim && !w.value ? t.label : "", "right"]
332
- ]) : a("", !0),
333
- !t.href && m.value ? ie((e(), c(i, {
343
+ ], 10, zt)), [
344
+ [b, l.slim && !C.value ? l.label : "", "right"]
345
+ ]) : o("", !0),
346
+ !l.href && m.value ? pe((e(), h(i, {
334
347
  key: 1,
335
348
  to: m.value,
336
- exact: t.exact,
337
- class: C(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
338
- "rounded-10": t.island,
339
- "rounded-xl": !t.island,
340
- "w-[44px] h-[44px] justify-center": t.slim,
341
- "h-[44px] w-full": !t.slim,
342
- "bg-primary-10 !text-primary-base": t.active || q(t.$route)
349
+ exact: l.exact,
350
+ class: y(["relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] mb-0.5", {
351
+ "rounded-10": l.island,
352
+ "rounded-xl": !l.island,
353
+ "w-[44px] h-[44px] justify-center": l.slim,
354
+ "h-[44px] w-full": !l.slim,
355
+ "bg-primary-10 !text-primary-base": l.active || D(l.$route)
343
356
  }]),
344
- "active-class": (J = t.$route) != null && J.meta && ((o = t.$route.meta) != null && o.menuGroup) && t.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
345
- onClick: ue(E, ["prevent"])
357
+ "active-class": (Q = l.$route) != null && Q.meta && ((a = l.$route.meta) != null && a.menuGroup) && l.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base",
358
+ onClick: he(E, ["prevent"])
346
359
  }, {
347
- default: Z(() => [
348
- s("div", F1, [
349
- t.icon ? (e(), l("div", {
360
+ default: I(() => [
361
+ t("div", Pt, [
362
+ l.icon ? (e(), s("div", {
350
363
  key: 0,
351
- class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
364
+ class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
352
365
  }, [
353
- (e(), c(_(t.icon), {
354
- class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
366
+ (e(), h(_(l.icon), {
367
+ class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
355
368
  }, null, 8, ["class"]))
356
- ], 2)) : a("", !0),
357
- t.slim ? a("", !0) : (e(), l("div", E1, [
358
- s("span", W1, u(t.label), 1)
369
+ ], 2)) : o("", !0),
370
+ l.slim ? o("", !0) : (e(), s("div", At, [
371
+ t("span", Et, d(l.label), 1)
359
372
  ])),
360
- w.value && !t.slim ? (e(), l("div", A1, [
361
- (e(), c(_($.value ? S(Le) : S(ye)), { class: "w-[16px] h-[16px]" }))
362
- ])) : a("", !0)
373
+ C.value && !l.slim ? (e(), s("div", Nt, [
374
+ (e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
375
+ ])) : o("", !0)
363
376
  ])
364
377
  ]),
365
378
  _: 1
366
379
  }, 8, ["to", "exact", "active-class", "class"])), [
367
- [f, t.slim && !w.value ? t.label : "", "right"]
368
- ]) : a("", !0),
369
- !t.href && !m.value ? ie((e(), l("span", {
380
+ [b, l.slim && !C.value ? l.label : "", "right"]
381
+ ]) : o("", !0),
382
+ !l.href && !m.value ? pe((e(), s("span", {
370
383
  key: 2,
371
- onClick: ue(E, ["prevent"]),
372
- class: C(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
373
- t.island ? "rounded-10" : "rounded-xl",
374
- t.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
375
- t.active ? "bg-primary-10 !text-primary-base" : ""
384
+ onClick: he(E, ["prevent"]),
385
+ class: y(["mb-0.5 relative flex items-center cursor-pointer text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]", [
386
+ l.island ? "rounded-10" : "rounded-xl",
387
+ l.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
388
+ l.active ? "bg-primary-10 !text-primary-base" : ""
376
389
  ]])
377
390
  }, [
378
- s("div", P1, [
379
- t.icon ? (e(), l("div", {
391
+ t("div", Gt, [
392
+ l.icon ? (e(), s("div", {
380
393
  key: 0,
381
- class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
394
+ class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
382
395
  }, [
383
- (e(), c(_(t.icon), {
384
- class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
396
+ (e(), h(_(l.icon), {
397
+ class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
385
398
  }, null, 8, ["class"]))
386
- ], 2)) : a("", !0),
387
- t.slim ? a("", !0) : (e(), l("div", G1, [
388
- s("span", I1, u(t.label), 1)
399
+ ], 2)) : o("", !0),
400
+ l.slim ? o("", !0) : (e(), s("div", It, [
401
+ t("span", Rt, d(l.label), 1)
389
402
  ])),
390
- w.value && !t.slim ? (e(), l("div", N1, [
391
- (e(), c(_($.value ? S(Le) : S(ye)), { class: "w-[16px] h-[16px]" }))
392
- ])) : a("", !0)
403
+ C.value && !l.slim ? (e(), s("div", qt, [
404
+ (e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
405
+ ])) : o("", !0)
393
406
  ])
394
407
  ], 2)), [
395
- [f, t.slim && !w.value ? t.label : "", "right"]
396
- ]) : a("", !0),
397
- $.value && w.value && !t.slim ? (e(), l("div", R1, [
398
- (e(!0), l(N, null, D(d.subItems, (r) => {
399
- var y, V;
400
- return e(), l("div", {
408
+ [b, l.slim && !C.value ? l.label : "", "right"]
409
+ ]) : o("", !0),
410
+ M.value && C.value && !l.slim ? (e(), s("div", Ut, [
411
+ (e(!0), s(W, null, U(c.subItems, (r) => {
412
+ var x, H;
413
+ return e(), s("div", {
401
414
  key: r.label
402
415
  }, [
403
- r.href ? (e(), l("a", {
416
+ r.href ? (e(), s("a", {
404
417
  key: 0,
405
418
  href: r.href,
406
419
  class: "flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66]"
407
420
  }, [
408
- s("div", U1, [
409
- s("span", Z1, u(r.label), 1),
410
- r.icon ? (e(), l("div", D1, [
411
- (e(), c(_(r.icon), { class: "w-[15px] h-[15px] mx-auto" }))
412
- ])) : a("", !0)
421
+ t("div", Dt, [
422
+ t("span", Jt, d(r.label), 1),
423
+ r.icon ? (e(), s("div", Kt, [
424
+ (e(), h(_(r.icon), { class: "w-[15px] h-[15px] mx-auto" }))
425
+ ])) : o("", !0)
413
426
  ])
414
- ], 8, q1)) : F(r) ? (e(), c(i, {
427
+ ], 8, Zt)) : g(r) ? (e(), h(i, {
415
428
  key: 1,
416
- to: F(r),
417
- onClick: L[0] || (L[0] = ue((U) => E(U, !0), ["prevent"])),
418
- class: C(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] h-[44px] w-full", {
419
- "bg-primary-10 !text-primary-base": q(t.$route, r)
429
+ to: g(r),
430
+ onClick: j[0] || (j[0] = he((J) => E(J, !0), ["prevent"])),
431
+ class: y(["flex items-center rounded-xl p-2 text-sm font-medium hover:bg-primary-10-hover hover:text-primary-base transition-all text-[#525B66] h-[44px] w-full", {
432
+ "bg-primary-10 !text-primary-base": D(l.$route, r)
420
433
  }]),
421
- "active-class": (y = t.$route) != null && y.meta && ((V = t.$route.meta) != null && V.menuGroup) && t.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
434
+ "active-class": (x = l.$route) != null && x.meta && ((H = l.$route.meta) != null && H.menuGroup) && l.$route.meta.menuGroup ? "" : "bg-primary-10 !text-primary-base"
422
435
  }, {
423
- default: Z(() => [
424
- s("span", J1, u(r.label), 1),
425
- r.icon ? (e(), l("div", K1, [
426
- (e(), c(_(r.icon), { class: "w-[20px] h-[20px] mx-auto" }))
427
- ])) : a("", !0)
436
+ default: I(() => [
437
+ t("span", Qt, d(r.label), 1),
438
+ r.icon ? (e(), s("div", Xt, [
439
+ (e(), h(_(r.icon), { class: "w-[20px] h-[20px] mx-auto" }))
440
+ ])) : o("", !0)
428
441
  ]),
429
442
  _: 2
430
- }, 1032, ["to", "active-class", "class"])) : a("", !0)
443
+ }, 1032, ["to", "active-class", "class"])) : o("", !0)
431
444
  ]);
432
445
  }), 128))
433
- ])) : a("", !0)
446
+ ])) : o("", !0)
434
447
  ], 64))
435
448
  ], 64);
436
449
  };
437
450
  }
438
- }), X1 = {}, Y1 = {
451
+ }), es = {}, ts = {
439
452
  xmlns: "http://www.w3.org/2000/svg",
440
453
  width: "24",
441
454
  height: "24",
442
455
  viewBox: "0 0 24 24",
443
456
  fill: "none"
444
457
  };
445
- function es(x, k) {
446
- return e(), l("svg", Y1, [...k[0] || (k[0] = [
447
- s("path", {
458
+ function ss(u, f) {
459
+ return e(), s("svg", ts, [...f[0] || (f[0] = [
460
+ t("path", {
448
461
  d: "M9.27987 15.963H7.76282V9.97577C7.76282 9.67316 7.575 9.40658 7.29326 9.29851L6.7948 9.11839V8.57802V8.03766H8.10957C8.60081 8.03766 8.91867 8.12412 9.05592 8.30424C9.20763 8.48436 9.27987 8.8374 9.27987 9.36335V15.963Z",
449
462
  fill: "currentColor"
450
463
  }, null, -1),
451
- s("path", {
464
+ t("path", {
452
465
  d: "M15.7294 11.3876C16.2011 11.2795 16.7453 10.9769 16.7816 10.0547C16.7816 9.36299 16.5276 8.90188 16.1285 8.57766C15.6569 8.14537 14.9675 8.03729 14.3797 8.03729H11.4626V13.9309C11.4626 14.6802 11.6441 15.2061 12.0141 15.5087C12.3842 15.8113 13.0155 15.9626 13.8935 15.9626H14.9675C15.6859 15.9626 16.2374 15.7681 16.6365 15.3718C17.0428 14.9756 17.2388 14.4136 17.2388 13.6787C17.2388 12.7925 16.9993 11.6758 15.7294 11.3876ZM13.0228 9.42783L14.2564 9.39181C14.8296 9.39181 15.1199 9.68 15.1199 10.2492C15.1199 10.8184 14.8296 11.1066 14.2564 11.1066L13.0228 11.1426V9.42783ZM14.8079 14.5865H14.0024C13.6541 14.5865 13.4001 14.5289 13.2405 14.4064C13.0881 14.2911 13.0155 14.075 13.0155 13.7724V12.5259H14.8079C15.1344 12.5259 15.3666 12.6196 15.49 12.8069C15.6133 12.987 15.6786 13.2536 15.6786 13.6067C15.6859 14.2551 15.3956 14.5865 14.8079 14.5865Z",
453
466
  fill: "currentColor"
454
467
  }, null, -1),
455
- s("path", {
468
+ t("path", {
456
469
  "fill-rule": "evenodd",
457
470
  "clip-rule": "evenodd",
458
471
  d: "M13.6437 3H10.4761C10.462 3.00738 10.4468 3.00752 10.4317 3.00766L10.4237 3.00778L10.2163 3.01067L10.1771 3.01124C10.1389 3.01181 10.1006 3.01238 10.0624 3.01238C9.85585 3.01276 9.64939 3.01797 9.44293 3.02318C9.34618 3.02562 9.24943 3.02806 9.15267 3.03C9.04934 3.03209 8.94604 3.03642 8.84277 3.04075L8.7649 3.04397C8.68023 3.04733 8.59559 3.05152 8.51098 3.05656C8.48805 3.05791 8.46519 3.06072 8.44234 3.06353L8.41144 3.0672L8.41136 3.06733L8.41135 3.06733C8.36472 3.06357 8.31825 3.06706 8.27185 3.07055L8.2508 3.07211C8.17968 3.07719 8.10867 3.08303 8.03766 3.08888L7.99014 3.09278L7.93408 3.09722C7.88146 3.10132 7.82884 3.10543 7.77638 3.111C7.67642 3.12147 7.57658 3.13307 7.47685 3.14581L7.46711 3.14705C7.35956 3.16078 7.25195 3.17451 7.14491 3.19162C6.9685 3.21996 6.79301 3.25364 6.61912 3.29514C6.39508 3.34863 6.17474 3.41407 5.95992 3.49743C5.64582 3.6192 5.35134 3.77699 5.08051 3.97818C4.85418 4.14605 4.6417 4.33183 4.44509 4.5337C4.2703 4.71309 4.10878 4.90496 3.96183 5.1078C3.77344 5.36816 3.62514 5.65018 3.50915 5.94958C3.36896 6.31155 3.2788 6.68668 3.21499 7.06866C3.19851 7.1678 3.18411 7.26735 3.17082 7.36697C3.15756 7.46541 3.14628 7.56409 3.135 7.66276L3.13307 7.67973C3.12541 7.74641 3.11884 7.81305 3.11245 7.87981L3.11091 7.89541C3.10743 7.9302 3.10394 7.96508 3.10714 8.00012L3.10716 8.0001C3.09909 8.01985 3.09789 8.04067 3.0967 8.06145L3.09602 8.07249L3.07085 8.44649L3.07007 8.45985C3.06822 8.50323 3.06651 8.54661 3.0648 8.58999C3.06098 8.68709 3.05716 8.78418 3.05165 8.88117C3.04485 9.00132 3.04236 9.12161 3.03987 9.24188C3.03793 9.33581 3.03599 9.42973 3.03199 9.52356C3.02946 9.58278 3.02895 9.64209 3.02844 9.7014L3.02804 9.74445L3.02618 9.9482C3.02519 10.0655 3.02421 10.1828 3.02245 10.3001C3.02144 10.367 3.01875 10.4338 3.01605 10.5007L3.01316 10.5745L3.01312 10.5756C3.01256 10.5885 3.01199 10.6018 3 10.6107V13.3892C3.00108 13.3909 3.00237 13.3925 3.00365 13.3942L3.00366 13.3942C3.00655 13.3979 3.00944 13.4016 3.01007 13.4057C3.01249 13.4212 3.01389 13.4369 3.01427 13.4526L3.01611 13.5092L3.01611 13.5092C3.01871 13.5887 3.0213 13.6681 3.02293 13.7476C3.02474 13.8348 3.02545 13.922 3.02545 14.0092C3.0256 14.2458 3.03197 14.4823 3.03835 14.7188L3.03835 14.7188C3.04022 14.7885 3.0421 14.8582 3.04382 14.9279C3.04659 15.0408 3.05225 15.1535 3.05791 15.2663L3.06335 15.3769C3.06897 15.4952 3.07473 15.6135 3.08203 15.7318C3.08634 15.8018 3.09212 15.8717 3.0979 15.9417L3.0979 15.9417L3.10262 15.9992L3.10453 16.0229C3.10928 16.0819 3.11403 16.1408 3.12009 16.1996C3.13141 16.3108 3.14359 16.4219 3.15661 16.5328C3.16284 16.5864 3.1703 16.6399 3.17776 16.6933L3.185 16.7455C3.20654 16.9028 3.23441 17.0589 3.26627 17.2144C3.30583 17.4093 3.35558 17.602 3.4153 17.7917C3.50677 18.0804 3.62514 18.3571 3.77815 18.6188C3.87433 18.7833 3.98454 18.9379 4.10322 19.0866C4.38114 19.4348 4.70212 19.7464 5.05849 20.0138C5.34835 20.2318 5.66471 20.4005 6.00352 20.5279C6.22982 20.6131 6.46181 20.6788 6.69755 20.7318C6.88514 20.774 7.07435 20.8079 7.2645 20.8355C7.38593 20.8534 7.50793 20.8672 7.62989 20.881L7.6304 20.8811C7.7437 20.8937 7.8571 20.9052 7.97062 20.9156C8.03986 20.9219 8.10927 20.9264 8.17868 20.931L8.21137 20.9332C8.28755 20.9383 8.36371 20.943 8.43985 20.9478L8.54613 20.9545L8.556 20.9552C8.56163 20.9556 8.56727 20.956 8.57291 20.9562L8.71929 20.9621C8.81347 20.9658 8.90765 20.9695 9.0018 20.9736C9.21881 20.9828 9.43595 20.9864 9.65309 20.99L9.74613 20.9915L9.75798 20.9914C9.77405 20.9912 9.79026 20.9909 9.80497 21H14.0598C14.1664 20.9939 14.273 20.9919 14.3797 20.9899C14.4179 20.9892 14.4561 20.9885 14.4943 20.9876C14.7149 20.9825 14.9354 20.9772 15.156 20.9696C15.2421 20.9667 15.3282 20.9618 15.4143 20.9569C15.4551 20.9546 15.4958 20.9523 15.5366 20.9502L15.5761 20.9484C15.5941 20.9477 15.6121 20.947 15.6301 20.9459C15.6439 20.945 15.6578 20.9436 15.6716 20.9421L15.6898 20.9403L15.6899 20.9402C15.701 20.9399 15.7121 20.94 15.7231 20.9392L15.7557 20.9369C15.8318 20.9315 15.9079 20.9261 15.984 20.9202C15.9957 20.9194 16.0074 20.9185 16.0192 20.9176C16.081 20.913 16.1429 20.9083 16.2046 20.9021C16.272 20.8953 16.3393 20.8876 16.4066 20.8799C16.4414 20.8759 16.4763 20.8719 16.5111 20.868C16.6378 20.8539 16.7638 20.8353 16.8896 20.8154C17.0775 20.7859 17.2638 20.7493 17.4484 20.7044C17.6789 20.6482 17.905 20.5785 18.125 20.4897C18.4165 20.3719 18.6905 20.2225 18.9436 20.0355C19.3225 19.7539 19.6587 19.4279 19.952 19.0575C20.1845 18.7646 20.3725 18.4391 20.51 18.0914C20.609 17.8414 20.6842 17.5843 20.7426 17.3223C20.8039 17.0471 20.849 16.7692 20.8805 16.4891C20.8828 16.4688 20.8852 16.4484 20.8876 16.4281C20.8909 16.3996 20.8943 16.3711 20.8974 16.3426C20.9041 16.2803 20.9108 16.2181 20.9166 16.1558C20.9179 16.143 20.9176 16.13 20.9174 16.1171C20.9174 16.1122 20.9173 16.1073 20.9173 16.1025L20.9175 16.1023L20.9216 16.0734C20.9247 16.0521 20.9277 16.0308 20.9298 16.0094C20.9345 15.9583 20.9385 15.907 20.9419 15.8557C20.9481 15.7576 20.9542 15.6594 20.9595 15.5612C20.967 15.4207 20.974 15.2801 20.9806 15.1394C20.9829 15.0903 20.9838 15.0412 20.9846 14.992C20.9853 14.9473 20.9858 14.9026 20.9863 14.8579V14.8579C20.987 14.7953 20.9877 14.7328 20.9889 14.6702C20.9899 14.6211 20.9917 14.5721 20.9973 14.5231C21.0007 14.494 21.0001 14.4644 20.9995 14.4348C20.9993 14.4218 20.999 14.4088 20.9991 14.3959V9.63092L20.9991 9.60404L20.9991 9.55038L20.9991 9.53972C20.9989 9.51204 20.9988 9.48446 20.9941 9.45682C20.9908 9.4383 20.9906 9.4192 20.9904 9.40022V9.40019L20.9903 9.38995L20.9882 9.25341C20.9872 9.18265 20.9862 9.11189 20.9847 9.04114C20.9836 8.98836 20.9816 8.93561 20.9795 8.88285L20.9772 8.81995C20.9766 8.80494 20.9759 8.78993 20.9752 8.77493L20.9748 8.76634L20.9691 8.64082C20.9651 8.55088 20.9611 8.46094 20.956 8.37104C20.9522 8.30451 20.947 8.23805 20.9417 8.1716L20.9359 8.09682L20.9321 8.04666C20.9275 7.98535 20.9229 7.92405 20.9175 7.86274C20.9125 7.80634 20.9064 7.74993 20.9004 7.69354L20.9003 7.69313L20.897 7.66264C20.8931 7.62609 20.8889 7.58959 20.8846 7.5531L20.8845 7.55231L20.8803 7.51608C20.8416 7.18046 20.7858 6.84789 20.7029 6.52018C20.6311 6.23571 20.5375 5.95879 20.4129 5.6927C20.2939 5.43833 20.1468 5.20173 19.9745 4.98024C19.6752 4.5943 19.3289 4.25662 18.9357 3.9672C18.6895 3.78603 18.4233 3.64067 18.1406 3.52522C17.9042 3.42869 17.6608 3.35464 17.4126 3.29549C17.2386 3.25401 17.0631 3.22009 16.8865 3.192C16.7762 3.17443 16.6652 3.16021 16.5545 3.14604C16.4547 3.1333 16.3548 3.12195 16.2548 3.1114C16.1994 3.10556 16.1439 3.10111 16.0884 3.09667L16.0476 3.09338C15.9873 3.08847 15.9269 3.08378 15.8666 3.07909L15.8665 3.07909L15.7802 3.07236L15.7725 3.07169L15.7601 3.0707L15.6649 3.06539L15.6649 3.06539C15.5895 3.06113 15.5141 3.05688 15.4386 3.05333C15.316 3.0476 15.1933 3.04242 15.0707 3.03725L14.9361 3.03154C14.9137 3.03058 14.8914 3.02983 14.869 3.02942C14.7553 3.02747 14.6416 3.02471 14.5279 3.02195C14.3309 3.01717 14.1339 3.0124 13.9368 3.0118C13.8728 3.01162 13.8088 3.0106 13.7448 3.00958L13.6819 3.00861L13.677 3.00858C13.6653 3.00857 13.6535 3.00855 13.6437 3ZM19.1763 17.0579L19.1766 17.0517C19.1767 17.0471 19.1768 17.0425 19.1779 17.0381C19.2275 16.836 19.2624 16.631 19.291 16.4251C19.3098 16.2901 19.3268 16.1547 19.3375 16.0187C19.3417 15.9654 19.3464 15.9121 19.3511 15.8589C19.3586 15.774 19.3661 15.6892 19.3716 15.6042C19.3828 15.4301 19.391 15.2558 19.3987 15.0816C19.4046 14.9497 19.4094 14.8178 19.4117 14.6859L19.4153 14.4842C19.4205 14.2026 19.4257 13.9209 19.4268 13.6392C19.4297 12.9436 19.4306 12.248 19.4295 11.5523L19.4295 11.2777C19.4295 10.7542 19.4295 10.2306 19.4186 9.70709C19.4124 9.40296 19.4061 9.09888 19.3918 8.79501C19.3844 8.63644 19.3757 8.47787 19.3647 8.31947C19.3541 8.1655 19.3406 8.01182 19.3242 7.85844C19.3125 7.74723 19.2991 7.63627 19.284 7.52554C19.2621 7.36599 19.2346 7.20747 19.1999 7.05026C19.1657 6.89516 19.1232 6.74238 19.0697 6.59267C18.9916 6.37321 18.8802 6.16704 18.7395 5.98137C18.5884 5.78135 18.4163 5.59801 18.2263 5.43445C18.1883 5.40179 18.1494 5.37029 18.1105 5.33881L18.1104 5.33876L18.0812 5.3151C17.8793 5.15117 17.6528 5.03224 17.408 4.94664C17.207 4.87636 17.0007 4.82673 16.7919 4.78696C16.581 4.74669 16.3684 4.71721 16.155 4.69446C16.004 4.67833 15.8523 4.66544 15.7006 4.65444C15.5492 4.64344 15.3974 4.63568 15.2457 4.62792L15.2385 4.62756C15.1291 4.62194 15.0196 4.61762 14.91 4.61462L14.8134 4.61183C14.6511 4.60712 14.4888 4.6024 14.3265 4.60068C13.8657 4.59577 13.405 4.59101 12.9443 4.59016C12.2464 4.58885 11.5486 4.58938 10.8507 4.59177C10.5996 4.5923 10.3486 4.59439 10.0974 4.59647L10.0974 4.59647L9.8577 4.59841L9.82872 4.59862H9.82872C9.7489 4.59919 9.66907 4.59976 9.58934 4.60282C9.49703 4.60635 9.40468 4.60825 9.31233 4.61016L9.31231 4.61016L9.3123 4.61016C9.18105 4.61286 9.0498 4.61557 8.91869 4.62295C8.83304 4.62782 8.7474 4.63152 8.66175 4.63522C8.61777 4.63712 8.5738 4.63902 8.52981 4.64107C8.52362 4.64135 8.51744 4.64185 8.51126 4.64235L8.51126 4.64235L8.51126 4.64235L8.50306 4.64299L8.41244 4.64946C8.34449 4.65429 8.27653 4.65912 8.20857 4.66428L8.18781 4.66585C8.12337 4.67072 8.05892 4.67559 7.99463 4.68218C7.89227 4.69268 7.79008 4.70422 7.68806 4.71679C7.62913 4.72411 7.57031 4.73243 7.5115 4.74075L7.51148 4.74075L7.51141 4.74076C7.47952 4.74527 7.44763 4.74978 7.41572 4.75414C7.40685 4.75493 7.39794 4.75526 7.38904 4.75512L7.38907 4.75503L7.31739 4.76857L7.31738 4.76857C7.26453 4.7785 7.21167 4.78842 7.15898 4.79909C6.93749 4.84394 6.71967 4.90123 6.5096 4.98613C6.34776 5.05123 6.19426 5.1354 6.05234 5.23684C5.78124 5.43085 5.54562 5.66141 5.33918 5.92242C5.28924 5.98552 5.24069 6.04965 5.19677 6.11724C5.09636 6.27173 5.01967 6.43755 4.95864 6.61102C4.91632 6.73123 4.88184 6.85368 4.85186 6.97747C4.84793 6.99374 4.8434 7.00985 4.83887 7.02596L4.83887 7.02597L4.83261 7.04844L4.83272 7.0484L4.8298 7.06701C4.82771 7.08069 4.82563 7.09438 4.82265 7.10788C4.76979 7.35293 4.73521 7.60091 4.70752 7.84979C4.69096 7.99864 4.67853 8.148 4.66745 8.29738C4.65639 8.44663 4.64854 8.59619 4.64069 8.74569L4.64069 8.74569L4.64069 8.7457L4.64067 8.74609C4.63503 8.85329 4.63069 8.96055 4.62763 9.06786L4.62559 9.13807C4.62045 9.31366 4.61532 9.48925 4.61283 9.66486C4.608 10.0048 4.60357 10.3448 4.60262 10.6847C4.59962 11.7494 4.5969 12.8141 4.60737 13.8788C4.61072 14.2165 4.61777 14.5542 4.62607 14.8918C4.62673 14.9186 4.62753 14.9455 4.62877 14.9724L4.63381 15.0811C4.63926 15.199 4.64472 15.3169 4.65074 15.4347C4.65577 15.5308 4.66081 15.6268 4.66836 15.7227C4.67515 15.8081 4.68316 15.8934 4.69117 15.9787L4.70214 16.0968C4.71248 16.2104 4.7265 16.3235 4.74143 16.4366C4.7631 16.6007 4.79033 16.7638 4.82487 16.9256C4.85985 17.0897 4.90314 17.2516 4.95983 17.4096C5.02424 17.5893 5.10596 17.7603 5.21434 17.9181C5.29414 18.0342 5.38123 18.1452 5.47508 18.2503C5.64558 18.4412 5.83564 18.6105 6.0414 18.7625C6.1548 18.8463 6.27647 18.9182 6.4045 18.9772C6.5449 19.0421 6.69048 19.0925 6.83926 19.1339C7.11993 19.2121 7.40659 19.2588 7.69529 19.294C7.79514 19.3061 7.89529 19.3159 7.99546 19.3252L8.03116 19.3284L8.03143 19.3285L8.03148 19.3285C8.15306 19.3397 8.27467 19.3509 8.39647 19.359C8.56158 19.3699 8.72687 19.378 8.89219 19.3856C9.02176 19.3916 9.15144 19.3965 9.28109 19.399L9.45946 19.4025H9.4595H9.45953C9.71982 19.4078 9.98011 19.4131 10.2404 19.4145C11.3901 19.4206 12.5397 19.4191 13.6893 19.4158C13.9179 19.4151 14.1465 19.4106 14.375 19.4061C14.4976 19.4037 14.6201 19.4013 14.7426 19.3995C14.7627 19.3992 14.7829 19.3984 14.803 19.3976L14.9426 19.392C15.0681 19.387 15.1937 19.382 15.3192 19.3763C15.4286 19.3713 15.538 19.365 15.6474 19.3587C15.701 19.3556 15.7545 19.3513 15.808 19.3469C15.8726 19.3417 15.9372 19.3362 16.0018 19.33C16.0685 19.3236 16.1352 19.3168 16.2019 19.309C16.2973 19.2978 16.3927 19.2861 16.488 19.2738C16.5343 19.2678 16.5805 19.2613 16.6267 19.2547L16.687 19.2462C16.6871 19.2462 16.6871 19.2461 16.6871 19.246C16.7106 19.2413 16.7341 19.2367 16.7576 19.232C16.8085 19.2219 16.8595 19.2118 16.9104 19.2011C17.1251 19.1562 17.336 19.0987 17.5392 19.0149C17.6923 18.9519 17.8378 18.8717 17.9727 18.7758C18.2687 18.5653 18.5214 18.311 18.7414 18.0229C18.8499 17.8805 18.9401 17.725 19.01 17.5602C19.0583 17.4469 19.0978 17.3307 19.132 17.2125C19.138 17.1917 19.1435 17.1708 19.149 17.1498C19.1531 17.134 19.1572 17.1182 19.1616 17.1025C19.1644 17.0923 19.1679 17.0823 19.1713 17.0723C19.1729 17.0675 19.1746 17.0627 19.1762 17.058C19.1762 17.0579 19.1763 17.0579 19.1763 17.0579ZM3.12917 7.986L3.12916 7.98601L3.12903 7.98608C3.14334 7.97696 3.15765 7.96783 3.17163 7.95831C3.15771 7.96785 3.14344 7.97693 3.12917 7.986Z",
@@ -460,9 +473,9 @@ function es(x, k) {
460
473
  }, null, -1)
461
474
  ])]);
462
475
  }
463
- const xe = /* @__PURE__ */ _e(X1, [["render", es]]);
464
- function ss(x, k) {
465
- return e(), l("svg", {
476
+ const ke = /* @__PURE__ */ $e(es, [["render", ss]]);
477
+ function ls(u, f) {
478
+ return e(), s("svg", {
466
479
  xmlns: "http://www.w3.org/2000/svg",
467
480
  fill: "none",
468
481
  viewBox: "0 0 24 24",
@@ -470,100 +483,66 @@ function ss(x, k) {
470
483
  stroke: "currentColor",
471
484
  "aria-hidden": "true"
472
485
  }, [
473
- s("path", {
486
+ t("path", {
474
487
  "stroke-linecap": "round",
475
488
  "stroke-linejoin": "round",
476
489
  d: "M7.83 1.08v21.6M1.08 3.78a2.697 2.697 0 012.7-2.7h16.2a2.697 2.697 0 012.7 2.7v16.2a2.697 2.697 0 01-2.7 2.7H3.78a2.697 2.697 0 01-2.7-2.7V3.78z"
477
490
  }),
478
- s("path", {
491
+ t("path", {
479
492
  "stroke-linecap": "round",
480
493
  "stroke-linejoin": "round",
481
494
  d: "M15.48 9.48l-2.4 2.4 2.4 2.4"
482
495
  })
483
496
  ]);
484
497
  }
485
- const e1 = (x) => {
486
- if (Array.isArray(x))
487
- return x.map(S);
488
- const k = S(x);
489
- return Array.isArray(k) ? k : [k];
490
- }, ts = (x, k) => {
491
- let d;
492
- const p = (F) => {
493
- F.forEach((m) => {
494
- const w = S(m);
495
- if (w) {
496
- if (!(w instanceof Element))
497
- throw console.error("Vuestic: Trying to observe non-HTMLElement", {
498
- target: w,
499
- array: x
500
- }), new Error("Vuestic: Unable to observe non-HTMLElement");
501
- w && (d == null || d.observe(w));
502
- }
503
- });
504
- };
505
- return pe(x, (F) => {
506
- d == null || d.disconnect(), p(e1(F));
507
- }), Ce(() => {
508
- d = new ResizeObserver(k), p(e1(x));
509
- }), v1(() => d == null ? void 0 : d.disconnect()), d;
510
- }, ls = (x) => {
511
- const k = z(null);
512
- return ts([x], () => {
513
- var d;
514
- k.value = ((d = x.value) == null ? void 0 : d.clientWidth) ?? null;
515
- }), t1(() => {
516
- var d;
517
- k.value = ((d = x.value) == null ? void 0 : d.clientWidth) ?? null;
518
- }), k;
519
- }, os = {
498
+ const os = {
520
499
  key: 0,
521
500
  class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
522
- }, ns = ["src"], as = {
501
+ }, as = ["src"], ns = {
523
502
  key: 1,
524
503
  class: "flex items-center gap-2 min-w-0 pl-1"
525
504
  }, rs = {
526
505
  key: 0,
527
506
  class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
528
- }, is = ["src"], us = { class: "min-w-0" }, ds = { class: "text-base font-bold leading-5 text-black truncate" }, ps = {
507
+ }, is = ["src"], ds = { class: "min-w-0" }, us = { class: "text-base font-bold leading-5 text-black truncate" }, ps = {
529
508
  key: 0,
530
509
  class: "flex items-center gap-1 text-xs text-secondary-content"
531
510
  }, cs = { class: "truncate" }, hs = {
532
511
  key: 1,
533
512
  class: "mt-auto pb-2 flex justify-center shrink-0"
534
- }, ms = ["href"], vs = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, fs = { class: "" }, ws = {
513
+ }, ms = ["href"], fs = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, vs = { class: "" }, ys = {
535
514
  class: "",
536
515
  style: { "font-size": "10px" }
537
- }, ys = {
516
+ }, ws = {
538
517
  key: 1,
539
518
  class: "flex justify-between border rounded-lg bg-[#F5F5F5] mb-1 w-full min-w-[19+0px] space-x-1 px-2"
540
- }, bs = { class: "flex items-center text-[#525B66] space-x-3" }, Cs = { style: { "font-size": "10px" } }, gs = { class: "relative -right-2" }, xs = ["href"], ks = { class: "flex flex-nowrap items-center w-max h-[24px]" }, _s = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, $s = { class: "py-[8px] pl-0 pr-[8px]" }, Ls = ["href"], Ss = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Ms = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Bs = { class: "py-[8px] pl-0 pr-[8px]" }, js = {
519
+ }, bs = { class: "flex items-center text-[#525B66] space-x-3" }, gs = { style: { "font-size": "10px" } }, xs = { class: "relative -right-2" }, ks = ["href"], Cs = { class: "flex flex-nowrap items-center w-max h-[24px]" }, $s = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full text-[#525B66]" }, _s = { class: "py-[8px] pl-0 pr-[8px]" }, Ls = ["href"], Ss = { class: "flex flex-nowrap items-center w-max h-[24px]" }, Bs = { class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full" }, Os = { class: "py-[8px] pl-0 pr-[8px]" }, Ms = {
541
520
  key: 4,
542
521
  class: "custom-select ml-1 w-full relative pt-2 pb-2"
543
- }, Ts = { class: "pl-1" }, zs = {
522
+ }, js = { class: "pl-1" }, Ts = {
544
523
  key: 0,
545
524
  class: "dropdown w-[200px] z-50 text-[#525B66]"
546
- }, Os = ["onClick"], Vs = {
525
+ }, zs = ["onClick"], Fs = {
547
526
  key: 1,
548
527
  class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
549
- }, Hs = {
528
+ }, Vs = {
550
529
  key: 0,
551
530
  class: "tooltip-text"
552
- }, Fs = { key: 0 }, Es = {
531
+ }, Hs = { key: 0 }, Ws = {
553
532
  key: 1,
554
533
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
555
- }, Ws = {
534
+ }, Ps = {
556
535
  key: 2,
557
536
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
558
- }, As = ["href"], Ps = {
537
+ }, As = ["href"], Es = {
559
538
  key: 0,
560
539
  class: "tooltip-text"
561
- }, Gs = { key: 0 }, Is = {
540
+ }, Ns = { key: 0 }, Gs = {
562
541
  key: 2,
563
542
  class: "text-[8px] text-[#979CA9] font-light leading-[12px] flex items-center gap-1 mt-2 px-2"
564
- }, Ns = { key: 0 }, Rs = /* @__PURE__ */ ke({
543
+ }, Is = { key: 0 }, Rs = /* @__PURE__ */ K({
565
544
  __name: "OneSidebar",
566
- props: d1,
545
+ props: ut,
567
546
  emits: [
568
547
  "show-news",
569
548
  "show-tariff",
@@ -573,18 +552,18 @@ const e1 = (x) => {
573
552
  "toggle-menu",
574
553
  "update:modelValue"
575
554
  ],
576
- setup(x, { emit: k }) {
577
- var K, Q, X;
578
- const d = k, p = x, F = Be(), m = j(() => p.t ?? F), w = j(() => {
555
+ setup(u, { emit: f }) {
556
+ var X, Y, ee;
557
+ const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = S(() => {
579
558
  var n;
580
559
  return ((n = p.news) == null ? void 0 : n.unseenCount) || 0;
581
- }), O = () => {
582
- d("show-news");
583
- }, H = z(!1), P = z(p.hoverable);
584
- pe(p, () => {
585
- p.modelValue ? P.value = !0 : P.value = !1;
586
- }), p.modelValue && (P.value = !0);
587
- const M = f1(), $ = j(() => {
560
+ }), T = () => {
561
+ c("show-news");
562
+ }, L = V(!1), A = V(p.hoverable);
563
+ Me(p, () => {
564
+ p.modelValue ? A.value = !0 : A.value = !1;
565
+ }), p.modelValue && (A.value = !0);
566
+ const z = ft(), M = S(() => {
588
567
  const n = [];
589
568
  if (p.slim || n.push("fixed"), !E.value)
590
569
  if (!p.isMobile)
@@ -592,565 +571,557 @@ const e1 = (x) => {
592
571
  else
593
572
  return n.push("w-full");
594
573
  return n.join(" ");
595
- }), q = j(() => ""), R = (n) => {
596
- H.value = P.value && n;
597
- }, E = j(() => P.value && !H.value), t = j(() => p.island ? p.modelValue !== !1 : !!E.value), L = z(), i = ls(L), f = j(() => p.modelValue === !0 || i.value === null ? !0 : i.value > 0), J = z(), o = () => E.value ? p.minimizedWidth : p.width;
598
- t1(() => {
599
- const n = o();
574
+ }), D = S(() => ""), Z = (n) => {
575
+ L.value = A.value && n;
576
+ }, E = S(() => A.value && !L.value), l = S(() => p.island ? p.modelValue !== !1 : !!E.value), j = V(), i = bt(j), b = S(() => p.modelValue === !0 || i.value === null ? !0 : i.value > 0), Q = V(), a = () => E.value ? p.minimizedWidth : p.width;
577
+ vt(() => {
578
+ const n = a();
600
579
  setTimeout(() => {
601
- J.value = n;
580
+ Q.value = n;
602
581
  });
603
582
  });
604
- const r = z(!1), y = z(
605
- (K = p.app) != null && K.availableLang && ((Q = p.app) == null ? void 0 : Q.availableLang.length) > 0 ? (X = p.app) == null ? void 0 : X.availableLang.find((n) => {
606
- var b;
607
- return n.id == ((b = p.app) == null ? void 0 : b.lang);
583
+ const r = V(!1), x = V(
584
+ (X = p.app) != null && X.availableLang && ((Y = p.app) == null ? void 0 : Y.availableLang.length) > 0 ? (ee = p.app) == null ? void 0 : ee.availableLang.find((n) => {
585
+ var k;
586
+ return n.id == ((k = p.app) == null ? void 0 : k.lang);
608
587
  }) : null
609
- ), V = () => {
588
+ ), H = () => {
610
589
  r.value = !r.value;
611
- }, U = (n) => {
612
- y.value = n, r.value = !1, d("select-language", n);
613
- }, ae = () => {
614
- var n, b;
615
- (b = (n = p.app) == null ? void 0 : n.selectedPlan) != null && b.url && (window.location.href = p.app.selectedPlan.url);
590
+ }, J = (n) => {
591
+ x.value = n, r.value = !1, c("select-language", n);
592
+ }, ie = () => {
593
+ var n, k;
594
+ (k = (n = p.app) == null ? void 0 : n.selectedPlan) != null && k.url && (window.location.href = p.app.selectedPlan.url);
616
595
  };
617
- return (n, b) => {
618
- var Y, ee, se, h, G, te, ce, he, me, ve, fe, v, W, I, le, oe, T, re, A, ne, Te, ze, Oe, Ve, He, Fe, Ee, We, Ae, Pe, Ge, Ie, Ne, Re, qe, Ue, Ze, De, Je, Ke, Qe;
619
- return e(), l("aside", {
596
+ return (n, k) => {
597
+ var te, se, le, v, R, oe, me, fe, ve, ye, we, w, N, q, ae, ne, F, de, G, re, Te, ze, Fe, Ve, He, We, Pe, Ae, Ee, Ne, Ge, Ie, Re, qe, Ue, Ze, De, Je, Ke, Qe, Xe;
598
+ return e(), s("aside", {
620
599
  ref_key: "rootElement",
621
- ref: M,
622
- class: C(["oneb-sidebar cont flex flex-col", [
600
+ ref: z,
601
+ class: y(["oneb-sidebar cont flex flex-col", [
623
602
  n.island ? "island-mode bg-white rounded-10 py-2 shrink-0 transition-all" : "pt-[56px] pb-1 sidebar z-40",
624
- n.island ? t.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : $.value,
625
- n.island ? n.isMobile ? "fixed top-3 left-3 bottom-3 z-50 shadow-xl" : "" : t.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
603
+ n.island ? l.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : M.value,
604
+ n.island ? n.isMobile ? "fixed top-3 left-3 bottom-3 z-50 shadow-xl" : "" : l.value ? "sm:max-w-[260px] w-full sm:w-max" : "sm:w-[260px] w-full"
626
605
  ]]),
627
- style: w1(q.value),
628
- onMouseenter: b[3] || (b[3] = (g) => R(!0)),
629
- onMouseleave: b[4] || (b[4] = (g) => R(!1))
606
+ style: tt(D.value),
607
+ onMouseenter: k[3] || (k[3] = ($) => Z(!0)),
608
+ onMouseleave: k[4] || (k[4] = ($) => Z(!1))
630
609
  }, [
631
- n.island ? (e(), l("div", {
610
+ n.island ? (e(), s("div", {
632
611
  key: 0,
633
- class: C(["px-2 flex shrink-0", t.value ? "flex-col items-center gap-1" : "items-center justify-between"])
612
+ class: y(["px-2 flex shrink-0", l.value ? "flex-col items-center gap-1" : "items-center justify-between"])
634
613
  }, [
635
- t.value && n.logoSrc ? (e(), l("div", os, [
636
- s("img", {
614
+ l.value && n.logoSrc ? (e(), s("div", os, [
615
+ t("img", {
637
616
  src: n.logoSrc,
638
617
  class: "w-8 h-8 mx-auto",
639
618
  alt: "logo"
640
- }, null, 8, ns)
641
- ])) : a("", !0),
642
- !t.value && ((Y = n.app) != null && Y.name) ? (e(), l("div", as, [
643
- n.logoSrc ? (e(), l("div", rs, [
644
- s("img", {
619
+ }, null, 8, as)
620
+ ])) : o("", !0),
621
+ !l.value && ((te = n.app) != null && te.name) ? (e(), s("div", ns, [
622
+ n.logoSrc ? (e(), s("div", rs, [
623
+ t("img", {
645
624
  src: n.logoSrc,
646
625
  class: "w-8 h-8 mx-auto",
647
626
  alt: "logo"
648
627
  }, null, 8, is)
649
- ])) : a("", !0),
650
- s("div", us, [
651
- s("p", ds, u(n.app.name), 1),
652
- (se = (ee = n.app) == null ? void 0 : ee.selectedPlan) != null && se.name ? (e(), l("div", ps, [
653
- s("span", cs, u(m.value("ui.layout.plan")) + " " + u(n.app.selectedPlan.name), 1)
654
- ])) : a("", !0)
628
+ ])) : o("", !0),
629
+ t("div", ds, [
630
+ t("p", us, d(n.app.name), 1),
631
+ (le = (se = n.app) == null ? void 0 : se.selectedPlan) != null && le.name ? (e(), s("div", ps, [
632
+ t("span", cs, d(m.value("ui.layout.plan")) + " " + d(n.app.selectedPlan.name), 1)
633
+ ])) : o("", !0)
655
634
  ])
656
- ])) : a("", !0),
657
- s("button", {
635
+ ])) : o("", !0),
636
+ t("button", {
658
637
  type: "button",
659
638
  class: "w-11 h-11 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
660
- onClick: b[0] || (b[0] = (g) => d("toggle-menu"))
639
+ onClick: k[0] || (k[0] = ($) => c("toggle-menu"))
661
640
  }, [
662
- (e(), c(_(t.value ? S(je) : S(ss)), { class: "w-5 h-5" }))
641
+ (e(), h(_(l.value ? O(je) : O(ls)), { class: "w-5 h-5" }))
663
642
  ])
664
- ], 2)) : a("", !0),
665
- ie(s("div", {
666
- class: C(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
667
- n.island ? t.value ? "flex flex-col items-center gap-1 px-0 mx-0 mt-2" : "px-2 mt-2" : "top-[56px] left-0 z-50 px-1 ml-1 mr-1 mt-2"
643
+ ], 2)) : o("", !0),
644
+ pe(t("div", {
645
+ class: y(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
646
+ n.island ? l.value ? "flex flex-col items-center gap-1 px-0 mx-0 mt-2" : "px-2 mt-2" : "top-[56px] left-0 z-50 px-1 ml-1 mr-1 mt-2"
668
647
  ]]),
669
648
  ref_key: "menu",
670
- ref: L
649
+ ref: j
671
650
  }, [
672
- (e(!0), l(N, null, D(n.items, (g) => (e(), c(Q1, {
673
- key: g.label,
674
- labelTop: g.labelTop,
651
+ (e(!0), s(W, null, U(n.items, ($) => (e(), h(Yt, {
652
+ key: $.label,
653
+ labelTop: $.labelTop,
675
654
  isMobile: n.isMobile,
676
- subItems: g.subItems,
677
- open: g.open,
678
- icon: g.icon,
679
- label: g.label,
680
- route: g.route,
681
- menuGroup: g == null ? void 0 : g.menuGroup,
682
- href: g.href,
683
- slim: t.value,
655
+ subItems: $.subItems,
656
+ open: $.open,
657
+ icon: $.icon,
658
+ label: $.label,
659
+ route: $.route,
660
+ menuGroup: $ == null ? void 0 : $.menuGroup,
661
+ href: $.href,
662
+ slim: l.value,
684
663
  island: n.island,
685
- active: g.active === !0,
686
- "route-name": g.routeName,
687
- exact: g.exact || !1,
688
- onUpdateCollapsed: b[1] || (b[1] = ($e) => d("update-collapsed"))
664
+ active: $.active === !0,
665
+ "route-name": $.routeName,
666
+ exact: $.exact || !1,
667
+ onUpdateCollapsed: k[1] || (k[1] = (Se) => c("update-collapsed"))
689
668
  }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
690
669
  ], 2), [
691
- [ge, f.value]
670
+ [ge, b.value]
692
671
  ]),
693
- n.island && t.value ? (e(), l("div", hs, [
694
- s("button", {
672
+ n.island && l.value ? (e(), s("div", hs, [
673
+ t("button", {
695
674
  type: "button",
696
675
  class: "w-9 h-9 rounded-10 flex items-center justify-center hover:bg-secondary-body-active transition-colors",
697
- onClick: b[2] || (b[2] = (g) => d("show-help"))
676
+ onClick: k[2] || (k[2] = ($) => c("show-help"))
698
677
  }, [
699
- B(xe, { class: "w-6 h-6" })
678
+ B(ke, { class: "w-6 h-6" })
700
679
  ])
701
- ])) : a("", !0),
702
- ie(s("div", {
703
- class: C(["mt-auto shrink rounded-2xl mx-2", [t.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
680
+ ])) : o("", !0),
681
+ pe(t("div", {
682
+ class: y(["mt-auto shrink rounded-2xl mx-2", [l.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
704
683
  }, [
705
- n.island ? a("", !0) : (e(), l("div", {
684
+ n.island ? o("", !0) : (e(), s("div", {
706
685
  key: 0,
707
- class: C([t.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
686
+ class: y([l.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
708
687
  }, [
709
- (h = n.app) != null && h.offerPlan ? (e(), l("a", {
688
+ (v = n.app) != null && v.offerPlan ? (e(), s("a", {
710
689
  key: 0,
711
- href: (G = n.app) == null ? void 0 : G.offerPlan.url,
690
+ href: (R = n.app) == null ? void 0 : R.offerPlan.url,
712
691
  class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
713
692
  target: "_blank",
714
693
  rel: "noopener noreferrer"
715
694
  }, [
716
- s("div", vs, [
717
- s("div", fs, [
718
- (e(), c(_((te = n.app) == null ? void 0 : te.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
695
+ t("div", fs, [
696
+ t("div", vs, [
697
+ (e(), h(_((oe = n.app) == null ? void 0 : oe.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
719
698
  ]),
720
- s("p", ws, [
721
- s("strong", null, u((ce = n.app) == null ? void 0 : ce.offerPlan.title), 1),
722
- we(" «" + u((he = n.app) == null ? void 0 : he.offerPlan.name) + "» ", 1),
723
- b[5] || (b[5] = s("br", null, null, -1)),
724
- we(u((me = n.app) == null ? void 0 : me.offerPlan.title1), 1)
699
+ t("p", ys, [
700
+ t("strong", null, d((me = n.app) == null ? void 0 : me.offerPlan.title), 1),
701
+ ce(" «" + d((fe = n.app) == null ? void 0 : fe.offerPlan.name) + "» ", 1),
702
+ k[5] || (k[5] = t("br", null, null, -1)),
703
+ ce(d((ve = n.app) == null ? void 0 : ve.offerPlan.title1), 1)
725
704
  ])
726
705
  ])
727
- ], 8, ms)) : a("", !0),
728
- (ve = n.app) != null && ve.selectedPlan && ((fe = n.app) != null && fe.selectedPlan.name) ? (e(), l("div", ys, [
729
- s("div", bs, [
730
- s("div", null, [
731
- (e(), c(_((v = n.app) == null ? void 0 : v.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
706
+ ], 8, ms)) : o("", !0),
707
+ (ye = n.app) != null && ye.selectedPlan && ((we = n.app) != null && we.selectedPlan.name) ? (e(), s("div", ws, [
708
+ t("div", bs, [
709
+ t("div", null, [
710
+ (e(), h(_((w = n.app) == null ? void 0 : w.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
732
711
  ]),
733
- s("div", Cs, [
734
- s("p", null, u(((W = n.app) == null ? void 0 : W.selectedPlan.name) || ""), 1),
735
- s("p", null, u(((I = n.app) == null ? void 0 : I.selectedPlan.title) || ""), 1)
712
+ t("div", gs, [
713
+ t("p", null, d(((N = n.app) == null ? void 0 : N.selectedPlan.name) || ""), 1),
714
+ t("p", null, d(((q = n.app) == null ? void 0 : q.selectedPlan.title) || ""), 1)
736
715
  ])
737
716
  ]),
738
- s("div", gs, [
739
- B(Me, {
717
+ t("div", xs, [
718
+ B(_e, {
740
719
  class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
741
720
  variant: "touch",
742
- icon: S(C1),
743
- onClick: ae
721
+ icon: O(nt),
722
+ onClick: ie
744
723
  }, null, 8, ["icon"])
745
724
  ])
746
- ])) : a("", !0),
747
- (le = n.app) != null && le.terms ? (e(), l("a", {
725
+ ])) : o("", !0),
726
+ (ae = n.app) != null && ae.terms ? (e(), s("a", {
748
727
  key: 2,
749
- href: (oe = n.app) == null ? void 0 : oe.terms.url,
728
+ href: (ne = n.app) == null ? void 0 : ne.terms.url,
750
729
  target: "_blank",
751
730
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
752
731
  }, [
753
- s("div", ks, [
754
- s("div", _s, [
755
- s("span", $s, u(((T = n.app) == null ? void 0 : T.terms.label) || m.value("ui.layout.terms")), 1)
732
+ t("div", Cs, [
733
+ t("div", $s, [
734
+ t("span", _s, d(((F = n.app) == null ? void 0 : F.terms.label) || m.value("ui.layout.terms")), 1)
756
735
  ])
757
736
  ])
758
- ], 8, xs)) : a("", !0),
759
- (re = n.app) != null && re.offer ? (e(), l("a", {
737
+ ], 8, ks)) : o("", !0),
738
+ (de = n.app) != null && de.offer ? (e(), s("a", {
760
739
  key: 3,
761
- href: (A = n.app) == null ? void 0 : A.offer.url,
740
+ href: (G = n.app) == null ? void 0 : G.offer.url,
762
741
  target: "_blank",
763
742
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
764
743
  }, [
765
- s("div", Ss, [
766
- s("div", Ms, [
767
- s("span", Bs, u(((ne = n.app) == null ? void 0 : ne.offer.label) || m.value("ui.layout.offer")), 1)
744
+ t("div", Ss, [
745
+ t("div", Bs, [
746
+ t("span", Os, d(((re = n.app) == null ? void 0 : re.offer.label) || m.value("ui.layout.offer")), 1)
768
747
  ])
769
748
  ])
770
- ], 8, Ls)) : a("", !0),
771
- (ze = (Te = n.app) == null ? void 0 : Te.availableLang) != null && ze.length ? (e(), l("div", js, [
772
- s("div", {
749
+ ], 8, Ls)) : o("", !0),
750
+ (ze = (Te = n.app) == null ? void 0 : Te.availableLang) != null && ze.length ? (e(), s("div", Ms, [
751
+ t("div", {
773
752
  class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
774
- onClick: V
753
+ onClick: H
775
754
  }, [
776
- B(S(y1), { class: "w-4" }),
777
- we(" " + u((Oe = y.value) == null ? void 0 : Oe.name) + " ", 1),
778
- s("span", Ts, u(r.value ? "▲" : "▼"), 1)
755
+ B(O(yt), { class: "w-4" }),
756
+ ce(" " + d((Fe = x.value) == null ? void 0 : Fe.name) + " ", 1),
757
+ t("span", js, d(r.value ? "▲" : "▼"), 1)
779
758
  ]),
780
- r.value ? (e(), l("div", zs, [
781
- (e(!0), l(N, null, D((Ve = n.app) == null ? void 0 : Ve.availableLang, (g) => {
782
- var $e, Xe;
783
- return e(), l("div", {
784
- key: g.id,
785
- class: C(["px-2", {
786
- "hover:bg-slate-200 rounded-lg cursor-pointer": g.id !== (($e = y.value) == null ? void 0 : $e.id),
787
- "text-gray-300": g.id === ((Xe = y.value) == null ? void 0 : Xe.id)
759
+ r.value ? (e(), s("div", Ts, [
760
+ (e(!0), s(W, null, U((Ve = n.app) == null ? void 0 : Ve.availableLang, ($) => {
761
+ var Se, Ye;
762
+ return e(), s("div", {
763
+ key: $.id,
764
+ class: y(["px-2", {
765
+ "hover:bg-slate-200 rounded-lg cursor-pointer": $.id !== ((Se = x.value) == null ? void 0 : Se.id),
766
+ "text-gray-300": $.id === ((Ye = x.value) == null ? void 0 : Ye.id)
788
767
  }]),
789
- onClick: (Ll) => {
790
- var Ye;
791
- return g.id !== ((Ye = y.value) == null ? void 0 : Ye.id) && U(g);
768
+ onClick: (Kl) => {
769
+ var et;
770
+ return $.id !== ((et = x.value) == null ? void 0 : et.id) && J($);
792
771
  }
793
- }, u(g.name), 11, Os);
772
+ }, d($.name), 11, zs);
794
773
  }), 128))
795
- ])) : a("", !0)
796
- ])) : a("", !0)
774
+ ])) : o("", !0)
775
+ ])) : o("", !0)
797
776
  ], 2)),
798
- !t.value && ((He = n.app) != null && He.offer || (Ee = (Fe = n.app) == null ? void 0 : Fe.availableLang) != null && Ee.length || (We = n.app) != null && We.selectedPlan && ((Ae = n.app) != null && Ae.selectedPlan.name) || (Pe = n.app) != null && Pe.offerPlan) ? (e(), l("div", Vs)) : a("", !0),
799
- s("div", {
800
- class: C([t.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
777
+ !l.value && ((He = n.app) != null && He.offer || (Pe = (We = n.app) == null ? void 0 : We.availableLang) != null && Pe.length || (Ae = n.app) != null && Ae.selectedPlan && ((Ee = n.app) != null && Ee.selectedPlan.name) || (Ne = n.app) != null && Ne.offerPlan) ? (e(), s("div", Fs)) : o("", !0),
778
+ t("div", {
779
+ class: y([l.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
801
780
  }, [
802
- n.news ? (e(), l("a", {
781
+ n.news ? (e(), s("a", {
803
782
  key: 0,
804
783
  href: "#",
805
- class: C(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [t.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
806
- onClick: O
784
+ class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all bg-gray-100 px-1", [l.value ? "w-[44px] h-[44px] text-center" : "h-[36x] pr-2"]]),
785
+ onClick: T
807
786
  }, [
808
- n.news.menuLabel ? (e(), l("div", Hs, u(n.news.menuLabel || m.value("ui.layout.news")), 1)) : a("", !0),
809
- s("div", {
810
- class: C(["w-full", [t.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
787
+ n.news.menuLabel ? (e(), s("div", Vs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)) : o("", !0),
788
+ t("div", {
789
+ class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
811
790
  }, [
812
- s("div", {
813
- class: C(["relative items-center", [t.value ? "" : "flex flex-row space-x-1"]])
791
+ t("div", {
792
+ class: y(["relative items-center", [l.value ? "" : "flex flex-row space-x-1"]])
814
793
  }, [
815
- s("div", null, [
816
- (e(), c(_(xe), { class: "w-[24px] h-[24px] mx-auto" }))
794
+ t("div", null, [
795
+ (e(), h(_(ke), { class: "w-[24px] h-[24px] mx-auto" }))
817
796
  ]),
818
- t.value ? a("", !0) : (e(), l("div", Fs, u(n.news.menuLabel || m.value("ui.layout.news")), 1)),
819
- w.value > 0 ? (e(), l("span", Es)) : a("", !0),
820
- w.value > 0 ? (e(), l("span", Ws)) : a("", !0)
797
+ l.value ? o("", !0) : (e(), s("div", Hs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)),
798
+ C.value > 0 ? (e(), s("span", Ws)) : o("", !0),
799
+ C.value > 0 ? (e(), s("span", Ps)) : o("", !0)
821
800
  ], 2)
822
801
  ], 2)
823
- ], 2)) : a("", !0),
824
- (Ge = n.app) != null && Ge.support ? (e(), l("a", {
802
+ ], 2)) : o("", !0),
803
+ (Ge = n.app) != null && Ge.support ? (e(), s("a", {
825
804
  key: 1,
826
- href: (Ne = (Ie = n.app) == null ? void 0 : Ie.support) == null ? void 0 : Ne.url,
827
- class: C(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [t.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
805
+ href: (Re = (Ie = n.app) == null ? void 0 : Ie.support) == null ? void 0 : Re.url,
806
+ class: y(["text-[#525B66] flex items-center rounded-lg text-sm tooltip hover:bg-primary-10-hover hover:text-primary-base transition-all", [l.value ? "w-[44px] h-[44px] text-center" : "h-[36x]"]])
828
807
  }, [
829
- (qe = (Re = n.app) == null ? void 0 : Re.support) != null && qe.label ? (e(), l("div", Ps, u(((Ze = (Ue = n.app) == null ? void 0 : Ue.support) == null ? void 0 : Ze.label) || m.value("ui.layout.support")), 1)) : a("", !0),
830
- s("div", {
831
- class: C(["w-full", [t.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
808
+ (Ue = (qe = n.app) == null ? void 0 : qe.support) != null && Ue.label ? (e(), s("div", Es, d(((De = (Ze = n.app) == null ? void 0 : Ze.support) == null ? void 0 : De.label) || m.value("ui.layout.support")), 1)) : o("", !0),
809
+ t("div", {
810
+ class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
832
811
  }, [
833
- s("div", {
834
- class: C(["flex-shrink-0 relative", [t.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
812
+ t("div", {
813
+ class: y(["flex-shrink-0 relative", [l.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
835
814
  }, [
836
- s("div", null, [
837
- (e(), c(_(S(b1)), { class: "w-[20px] h-[20px] mx-auto" }))
815
+ t("div", null, [
816
+ (e(), h(_(O(wt)), { class: "w-[20px] h-[20px] mx-auto" }))
838
817
  ]),
839
- t.value ? a("", !0) : (e(), l("div", Gs, u(((Je = (De = n.app) == null ? void 0 : De.support) == null ? void 0 : Je.label) || m.value("ui.layout.support")), 1))
818
+ l.value ? o("", !0) : (e(), s("div", Ns, d(((Ke = (Je = n.app) == null ? void 0 : Je.support) == null ? void 0 : Ke.label) || m.value("ui.layout.support")), 1))
840
819
  ], 2)
841
820
  ], 2)
842
- ], 10, As)) : a("", !0)
821
+ ], 10, As)) : o("", !0)
843
822
  ], 2),
844
- n.island && !t.value ? (e(), l("div", Is, [
845
- s("span", null, [
846
- we(u(m.value("ui.layout.powered_by")) + " ", 1),
847
- b[6] || (b[6] = s("span", { class: "capitalize" }, "OneB", -1))
823
+ n.island && !l.value ? (e(), s("div", Gs, [
824
+ t("span", null, [
825
+ ce(d(m.value("ui.layout.powered_by")) + " ", 1),
826
+ k[6] || (k[6] = t("span", { class: "capitalize" }, "OneB", -1))
848
827
  ]),
849
- (Ke = n.app) != null && Ke.version ? (e(), l("span", Ns, "V." + u(n.app.version), 1)) : a("", !0)
850
- ])) : a("", !0),
851
- n.island ? a("", !0) : (e(), l("p", {
828
+ (Qe = n.app) != null && Qe.version ? (e(), s("span", Is, "V." + d(n.app.version), 1)) : o("", !0)
829
+ ])) : o("", !0),
830
+ n.island ? o("", !0) : (e(), s("p", {
852
831
  key: 3,
853
- class: C([[t.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
832
+ class: y([[l.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
854
833
  }, [
855
- s("span", null, [
856
- we(u(m.value("ui.layout.powered_by")) + " ", 1),
857
- b[7] || (b[7] = s("span", { class: "text-blue-700" }, "OneB", -1))
834
+ t("span", null, [
835
+ ce(d(m.value("ui.layout.powered_by")) + " ", 1),
836
+ k[7] || (k[7] = t("span", { class: "text-blue-700" }, "OneB", -1))
858
837
  ]),
859
- s("span", null, u((Qe = n.app) == null ? void 0 : Qe.version), 1)
838
+ t("span", null, d((Xe = n.app) == null ? void 0 : Xe.version), 1)
860
839
  ], 2))
861
840
  ], 2), [
862
- [ge, f.value && (!n.island || !t.value)]
841
+ [ge, b.value && (!n.island || !l.value)]
863
842
  ])
864
843
  ], 38);
865
844
  };
866
845
  }
867
846
  });
868
- const c1 = /* @__PURE__ */ _e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { class: "h-screen relative" }, Us = {
847
+ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { class: "h-screen relative" }, Us = {
869
848
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
870
849
  style: { background: "rgba(245, 247, 251, 0.8)", "backdrop-filter": "blur(5px)" }
871
- }, Zs = { class: "sm:p-2 pl-2 flex-shrink-0" }, Ds = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, Js = ["src"], Ks = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Qs = { class: "text-xs whitespace-nowrap truncate" }, Xs = { class: "w-full pl-1" }, Ys = { class: "w-full flex justify-end sm:pr-4" }, et = { class: "flex items-center sm:space-x-1" }, st = {
850
+ }, Zs = { class: "sm:p-2 pl-2 flex-shrink-0" }, Ds = { class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0" }, Js = ["src"], Ks = { class: "whitespace-nowrap font-semibold sm:text-xl truncate" }, Qs = { class: "text-xs whitespace-nowrap truncate" }, Xs = { class: "w-full pl-1" }, Ys = { class: "w-full flex justify-end sm:pr-4" }, e1 = { class: "flex items-center sm:space-x-1" }, t1 = {
872
851
  key: 0,
873
852
  class: "module-border-wrap flex justify-center items-center h-6 w-max"
874
- }, tt = { class: "h-4 w-4" }, lt = { class: "ml-2 hidden sm:flex" }, ot = { class: "flex h-full" }, nt = { key: 0 }, at = {
853
+ }, s1 = { class: "h-4 w-4" }, l1 = { class: "ml-2 hidden sm:flex" }, o1 = { class: "flex h-full" }, a1 = { key: 0 }, n1 = {
875
854
  key: 0,
876
855
  class: "sm:w-[560px] w-full relative h-full"
877
- }, rt = { class: "h-full relative" }, it = { class: "flex items-center p-3 space-x-1.5" }, ut = { class: "w-full font-medium" }, dt = {
856
+ }, r1 = { class: "h-full relative" }, i1 = { class: "flex items-center p-3 space-x-1.5" }, d1 = { class: "w-full font-medium" }, u1 = {
878
857
  class: "overflow-auto",
879
858
  style: { height: "calc(100% - 62px)" }
880
- }, pt = {
859
+ }, p1 = {
881
860
  key: 0,
882
861
  class: "p-5"
883
- }, ct = { key: 1 }, ht = { class: "p-4 text-gray text-center" }, mt = { key: 2 }, vt = {
862
+ }, c1 = { key: 1 }, h1 = { class: "p-4 text-gray text-center" }, m1 = { key: 2 }, f1 = {
884
863
  class: "p-3 space-y-1.5 rounded-lg",
885
864
  style: { "box-shadow": "0 0 6px #eaeaea" }
886
- }, ft = { key: 0 }, wt = {
865
+ }, v1 = { key: 0 }, y1 = {
887
866
  key: 0,
888
867
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
889
- }, yt = {
868
+ }, w1 = {
890
869
  key: 1,
891
870
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
892
- }, bt = {
871
+ }, b1 = {
893
872
  key: 2,
894
873
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
895
- }, Ct = {
874
+ }, g1 = {
896
875
  key: 3,
897
876
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
898
- }, gt = { class: "text-lg font-medium" }, xt = { class: "text-sm text-gray-600" }, kt = { key: 0 }, _t = ["src"], $t = { class: "text-sm" }, Lt = { key: 1 }, St = ["href"], Mt = { class: "text-sm flex items-center justify-between mt-1" }, Bt = { class: "text-gray-800" }, jt = ["href"], Tt = /* @__PURE__ */ ke({
877
+ }, x1 = { class: "text-lg font-medium" }, k1 = { class: "text-sm text-gray-600" }, C1 = { key: 0 }, $1 = ["src"], _1 = { class: "text-sm" }, L1 = { key: 1 }, S1 = ["href"], B1 = { class: "text-sm flex items-center justify-between mt-1" }, O1 = { class: "text-gray-800" }, M1 = ["href"], j1 = /* @__PURE__ */ K({
899
878
  __name: "OneMainLayout",
900
- props: p1,
879
+ props: pt,
901
880
  emits: ["load-news", "load-tariff", "open-tariff"],
902
- setup(x, { emit: k }) {
903
- const d = k, p = x, F = Be(), m = j(() => p.t ?? F);
904
- let w = window.localStorage.getItem("sidebar-slim");
905
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), w = "1");
906
- const O = z(w === "1");
907
- z(!0), pe(O, (i) => {
881
+ setup(u, { emit: f }) {
882
+ const c = f, p = u, g = Le(), m = S(() => p.t ?? g);
883
+ let C = window.localStorage.getItem("sidebar-slim");
884
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), C = "1");
885
+ const T = V(C === "1");
886
+ V(!0), Me(T, (i) => {
908
887
  window.localStorage.setItem("sidebar-slim", String(i ? 1 : 0));
909
888
  });
910
- const H = z(!1), P = () => {
911
- H.value = !H.value, H.value && d("load-news");
912
- }, M = j(() => p.showHeadre);
913
- pe(
914
- () => p.showHeadre,
915
- // Передаємо доступ до props
916
- () => {
917
- M.value = p.showHeadre;
918
- }
919
- );
920
- const $ = z(window.innerWidth), q = () => {
921
- $.value = window.innerWidth;
922
- }, R = j(() => $.value <= 768);
923
- Ce(() => {
924
- window.addEventListener("resize", q);
925
- }), Se(() => {
926
- window.removeEventListener("resize", q);
889
+ const L = V(!1), A = () => {
890
+ L.value = !L.value, L.value && c("load-news");
891
+ }, z = S(() => p.showHeader ?? p.showHeadre), M = V(window.innerWidth), D = () => {
892
+ M.value = window.innerWidth;
893
+ }, Z = S(() => M.value <= 768);
894
+ xe(() => {
895
+ window.addEventListener("resize", D);
896
+ }), Oe(() => {
897
+ window.removeEventListener("resize", D);
927
898
  });
928
899
  const E = (i) => {
929
- var f;
930
- (f = p.handlers) == null || f.onSetLang(i);
931
- }, t = z(!1), L = () => {
932
- t.value = window.matchMedia("(min-width: 769px)").matches;
900
+ var b;
901
+ (b = p.handlers) == null || b.onSetLang(i);
902
+ }, l = V(!1), j = () => {
903
+ l.value = window.matchMedia("(min-width: 769px)").matches;
933
904
  };
934
- return Ce(() => {
935
- L(), window.addEventListener("resize", L);
936
- }), Se(() => {
937
- window.removeEventListener("resize", L);
938
- }), (i, f) => {
939
- var o, r, y, V, U, ae, K, Q, X, n, b, Y, ee, se;
940
- const J = s1("RouterLink");
941
- return e(), l("div", qs, [
942
- ie(s("div", Us, [
943
- s("div", Zs, [
944
- s("button", {
945
- onClick: f[0] || (f[0] = (h) => O.value = !O.value),
905
+ return xe(() => {
906
+ j(), window.addEventListener("resize", j);
907
+ }), Oe(() => {
908
+ window.removeEventListener("resize", j);
909
+ }), (i, b) => {
910
+ var a, r, x, H, J, ie, X, Y, ee, n, k, te, se, le;
911
+ const Q = Ce("RouterLink");
912
+ return e(), s("div", qs, [
913
+ pe(t("div", Us, [
914
+ t("div", Zs, [
915
+ t("button", {
916
+ onClick: b[0] || (b[0] = (v) => T.value = !T.value),
946
917
  class: "sm:w-[44px] sm:h-[44px] w-8 h-8 sm:p-[8px] flex items-center justify-center rounded hover:bg-secondary-10 hover:text-blue-600"
947
918
  }, [
948
- B(S(je), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
919
+ B(O(je), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
949
920
  ])
950
921
  ]),
951
- s("div", Ds, [
952
- i.logoSrc != null ? (e(), l("img", {
922
+ t("div", Ds, [
923
+ i.logoSrc != null ? (e(), s("img", {
953
924
  key: 0,
954
925
  src: i.logoSrc,
955
926
  class: "w-8 h-8 mx-auto",
956
927
  alt: "logo"
957
- }, null, 8, Js)) : a("", !0)
928
+ }, null, 8, Js)) : o("", !0)
958
929
  ]),
959
- i.app != null ? (e(), c(J, {
930
+ i.app != null ? (e(), h(Q, {
960
931
  key: 0,
961
932
  to: "/",
962
933
  class: "sm:pl-2 pl-1 truncate w-full"
963
934
  }, {
964
- default: Z(() => {
965
- var h, G;
935
+ default: I(() => {
936
+ var v, R;
966
937
  return [
967
- s("div", Ks, u(i.app.name), 1),
968
- s("div", Qs, u((G = (h = i.app) == null ? void 0 : h.workspace) == null ? void 0 : G.name), 1)
938
+ t("div", Ks, d(i.app.name), 1),
939
+ t("div", Qs, d((R = (v = i.app) == null ? void 0 : v.workspace) == null ? void 0 : R.name), 1)
969
940
  ];
970
941
  }),
971
942
  _: 1
972
- })) : a("", !0),
973
- de(i.$slots, "head-left", {}, void 0, !0),
974
- s("div", Xs, [
975
- s("div", Ys, [
976
- s("div", et, [
977
- i.improveTariff && ((o = i.improveTariff) != null && o.label) && i.improveTariff.label ? (e(), l("div", st, [
978
- s("button", {
943
+ })) : o("", !0),
944
+ P(i.$slots, "head-left", {}, void 0, !0),
945
+ t("div", Xs, [
946
+ t("div", Ys, [
947
+ t("div", e1, [
948
+ i.improveTariff && ((a = i.improveTariff) != null && a.label) && i.improveTariff.label ? (e(), s("div", t1, [
949
+ t("button", {
979
950
  type: "button",
980
951
  class: "cursor-pointer flex items-center h-full bg-[#FFF8E4] hover:bg-[#f2e3b8] rounded-full px-2 py-1 font-medium",
981
- onClick: f[1] || (f[1] = //@ts-ignore
982
- (...h) => {
983
- var G, te;
984
- return ((G = i.handlers) == null ? void 0 : G.onImproveTariff) && ((te = i.handlers) == null ? void 0 : te.onImproveTariff(...h));
952
+ onClick: b[1] || (b[1] = //@ts-ignore
953
+ (...v) => {
954
+ var R, oe;
955
+ return ((R = i.handlers) == null ? void 0 : R.onImproveTariff) && ((oe = i.handlers) == null ? void 0 : oe.onImproveTariff(...v));
985
956
  }),
986
957
  style: { "font-size": "10px" }
987
958
  }, [
988
- s("div", tt, [
989
- (e(), c(_((r = i.improveTariff) == null ? void 0 : r.icon), { class: "h-4 w-4 mx-auto" }))
959
+ t("div", s1, [
960
+ (e(), h(_((r = i.improveTariff) == null ? void 0 : r.icon), { class: "h-4 w-4 mx-auto" }))
990
961
  ]),
991
- s("span", lt, u((y = i.improveTariff) == null ? void 0 : y.label), 1)
962
+ t("span", l1, d((x = i.improveTariff) == null ? void 0 : x.label), 1)
992
963
  ])
993
- ])) : a("", !0),
994
- de(i.$slots, "head-right", {}, void 0, !0),
995
- i.help ? (e(), c(o1, {
964
+ ])) : o("", !0),
965
+ P(i.$slots, "head-right", {}, void 0, !0),
966
+ i.help ? (e(), h(lt, {
996
967
  key: 1,
997
968
  help: i.help,
998
969
  "help-slug": i.helpSlug,
999
970
  t: m.value
1000
- }, null, 8, ["help", "help-slug", "t"])) : a("", !0),
1001
- ((V = i.handlers) == null ? void 0 : V.onBrowse) != null ? (e(), c(n1, {
971
+ }, null, 8, ["help", "help-slug", "t"])) : o("", !0),
972
+ ((H = i.handlers) == null ? void 0 : H.onBrowse) != null ? (e(), h(ot, {
1002
973
  key: 2,
1003
- workspace: (U = i.app) == null ? void 0 : U.workspace,
1004
- apps: ((ae = i.app) == null ? void 0 : ae.apps) || [],
974
+ workspace: (J = i.app) == null ? void 0 : J.workspace,
975
+ apps: ((ie = i.app) == null ? void 0 : ie.apps) || [],
1005
976
  t: m.value,
1006
- "on-app": (K = i.handlers) == null ? void 0 : K.onApp,
1007
- "on-change": (Q = i.handlers) == null ? void 0 : Q.onChange,
1008
- onOpen: (X = i.handlers) == null ? void 0 : X.onBrowse
1009
- }, null, 8, ["workspace", "apps", "t", "on-app", "on-change", "onOpen"])) : a("", !0),
1010
- B(a1, {
977
+ "on-app": (X = i.handlers) == null ? void 0 : X.onApp,
978
+ "on-change": (Y = i.handlers) == null ? void 0 : Y.onChange,
979
+ onOpen: (ee = i.handlers) == null ? void 0 : ee.onBrowse
980
+ }, null, 8, ["workspace", "apps", "t", "on-app", "on-change", "onOpen"])) : o("", !0),
981
+ B(at, {
1011
982
  user: i.user,
1012
983
  menu: i.menu,
1013
984
  app: i.app,
1014
985
  t: m.value,
1015
986
  "on-account": (n = i.handlers) == null ? void 0 : n.onAccount,
1016
- "on-logout": (b = i.handlers) == null ? void 0 : b.onLogout
987
+ "on-logout": (k = i.handlers) == null ? void 0 : k.onLogout
1017
988
  }, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
1018
989
  ])
1019
990
  ])
1020
991
  ])
1021
992
  ], 512), [
1022
- [ge, M.value]
993
+ [ge, z.value]
1023
994
  ]),
1024
- s("div", ot, [
1025
- !R.value || !O.value ? (e(), c(c1, {
995
+ t("div", o1, [
996
+ !Z.value || !T.value ? (e(), h(ct, {
1026
997
  key: 0,
1027
998
  app: i.app,
1028
999
  t: m.value,
1029
1000
  items: i.sidebarItems,
1030
1001
  "with-news": i.news != null,
1031
1002
  news: i.news,
1032
- isMobile: R.value,
1033
- modelValue: O.value,
1034
- "onUpdate:modelValue": f[2] || (f[2] = (h) => O.value = h),
1035
- onShowNews: P,
1003
+ isMobile: Z.value,
1004
+ modelValue: T.value,
1005
+ "onUpdate:modelValue": b[2] || (b[2] = (v) => T.value = v),
1006
+ onShowNews: A,
1036
1007
  onSelectLanguage: E,
1037
- onUpdateCollapsed: f[3] || (f[3] = (h) => O.value = !O.value)
1038
- }, null, 8, ["app", "t", "items", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
1039
- s("div", {
1040
- class: C([[
1041
- O.value ? "" : "lg:ml-[260px] hidden sm:block",
1042
- t.value ? "ml-[60px]" : ""
1008
+ onUpdateCollapsed: b[3] || (b[3] = (v) => T.value = !T.value)
1009
+ }, null, 8, ["app", "t", "items", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
1010
+ t("div", {
1011
+ class: y([[
1012
+ T.value ? "" : "lg:ml-[260px] hidden sm:block",
1013
+ l.value ? "ml-[60px]" : ""
1043
1014
  ], "body scroll-body w-full overflow-y-auto"])
1044
1015
  }, [
1045
- s("div", {
1046
- class: C(["content transition-all", { "pt-[56px]": M.value }])
1016
+ t("div", {
1017
+ class: y(["content transition-all", { "pt-[56px]": z.value }])
1047
1018
  }, [
1048
- de(i.$slots, "default", {}, void 0, !0)
1019
+ P(i.$slots, "default", {}, void 0, !0)
1049
1020
  ], 2)
1050
1021
  ], 2)
1051
1022
  ]),
1052
- i.news ? (e(), l("div", nt, [
1053
- H.value ? (e(), l("div", {
1023
+ i.news ? (e(), s("div", a1, [
1024
+ L.value ? (e(), s("div", {
1054
1025
  key: 0,
1055
1026
  class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
1056
- onClick: f[4] || (f[4] = ue((h) => H.value = !1, ["self"]))
1057
- })) : a("", !0),
1058
- s("div", {
1059
- class: C(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [H.value ? "sm:w-[560px] w-full" : "w-0"]])
1027
+ onClick: b[4] || (b[4] = he((v) => L.value = !1, ["self"]))
1028
+ })) : o("", !0),
1029
+ t("div", {
1030
+ class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [L.value ? "sm:w-[560px] w-full" : "w-0"]])
1060
1031
  }, [
1061
- H.value ? (e(), l("div", at, [
1062
- s("div", rt, [
1063
- s("div", it, [
1064
- B(xe, { class: "w-10 h-10" }),
1065
- s("div", ut, u(m.value("ui.layout.news")), 1),
1066
- s("div", null, [
1067
- B(Me, {
1032
+ L.value ? (e(), s("div", n1, [
1033
+ t("div", r1, [
1034
+ t("div", i1, [
1035
+ B(ke, { class: "w-10 h-10" }),
1036
+ t("div", d1, d(m.value("ui.layout.news")), 1),
1037
+ t("div", null, [
1038
+ B(_e, {
1068
1039
  variant: "touch",
1069
- icon: S(r1),
1070
- onClick: f[5] || (f[5] = (h) => H.value = !1)
1040
+ icon: O(rt),
1041
+ onClick: b[5] || (b[5] = (v) => L.value = !1)
1071
1042
  }, null, 8, ["icon"])
1072
1043
  ])
1073
1044
  ]),
1074
- s("div", dt, [
1075
- i.news.isLoading && ((Y = i.news.items) == null ? void 0 : Y.length) === 0 ? (e(), l("div", pt, [
1076
- B(i1, { class: "w-6 h-6 text-gray-600 mx-auto" })
1077
- ])) : ((ee = i.news.items) == null ? void 0 : ee.length) === 0 ? (e(), l("div", ct, [
1078
- s("div", ht, u(i.news.emptyText), 1)
1079
- ])) : ((se = i.news.items) == null ? void 0 : se.length) > 0 ? (e(), l("div", mt, [
1080
- (e(!0), l(N, null, D(i.news.items, (h) => (e(), l("div", {
1081
- key: h.id,
1045
+ t("div", u1, [
1046
+ i.news.isLoading && ((te = i.news.items) == null ? void 0 : te.length) === 0 ? (e(), s("div", p1, [
1047
+ B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
1048
+ ])) : ((se = i.news.items) == null ? void 0 : se.length) === 0 ? (e(), s("div", c1, [
1049
+ t("div", h1, d(i.news.emptyText), 1)
1050
+ ])) : ((le = i.news.items) == null ? void 0 : le.length) > 0 ? (e(), s("div", m1, [
1051
+ (e(!0), s(W, null, U(i.news.items, (v) => (e(), s("div", {
1052
+ key: v.id,
1082
1053
  class: "p-3"
1083
1054
  }, [
1084
- s("div", vt, [
1085
- s("div", null, [
1086
- h.type ? (e(), l("div", ft, [
1087
- h.type === 10 ? (e(), l("span", wt, "update")) : h.type === 11 ? (e(), l("span", yt, "warning")) : h.type === 12 ? (e(), l("span", bt, "notice")) : h.type === 13 ? (e(), l("span", Ct, "ads")) : a("", !0)
1088
- ])) : a("", !0),
1089
- s("div", gt, u(h.title), 1),
1090
- s("div", xt, u(h.summary), 1)
1055
+ t("div", f1, [
1056
+ t("div", null, [
1057
+ v.type ? (e(), s("div", v1, [
1058
+ v.type === 10 ? (e(), s("span", y1, "update")) : v.type === 11 ? (e(), s("span", w1, "warning")) : v.type === 12 ? (e(), s("span", b1, "notice")) : v.type === 13 ? (e(), s("span", g1, "ads")) : o("", !0)
1059
+ ])) : o("", !0),
1060
+ t("div", x1, d(v.title), 1),
1061
+ t("div", k1, d(v.summary), 1)
1091
1062
  ]),
1092
- h.image_url ? (e(), l("div", kt, [
1093
- s("img", {
1094
- src: h.image_url,
1063
+ v.image_url ? (e(), s("div", C1, [
1064
+ t("img", {
1065
+ src: v.image_url,
1095
1066
  alt: "",
1096
1067
  class: "w-full rounded-md"
1097
- }, null, 8, _t)
1098
- ])) : a("", !0),
1099
- s("div", $t, [
1100
- B(u1, {
1101
- text: h.body
1068
+ }, null, 8, $1)
1069
+ ])) : o("", !0),
1070
+ t("div", _1, [
1071
+ B(dt, {
1072
+ text: v.body
1102
1073
  }, null, 8, ["text"])
1103
1074
  ]),
1104
- h.video_url ? (e(), l("div", Lt, [
1105
- s("a", {
1106
- href: h.video_url,
1075
+ v.video_url ? (e(), s("div", L1, [
1076
+ t("a", {
1077
+ href: v.video_url,
1107
1078
  target: "_blank",
1108
1079
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
1109
- }, u(i.news.openVideoText), 9, St)
1110
- ])) : a("", !0),
1111
- s("div", Mt, [
1112
- s("span", Bt, u(h.published), 1),
1113
- h.post_url ? (e(), l("a", {
1080
+ }, d(i.news.openVideoText), 9, S1)
1081
+ ])) : o("", !0),
1082
+ t("div", B1, [
1083
+ t("span", O1, d(v.published), 1),
1084
+ v.post_url ? (e(), s("a", {
1114
1085
  key: 0,
1115
- href: h.post_url,
1086
+ href: v.post_url,
1116
1087
  target: "_blank",
1117
1088
  class: "text-blue-600 hover:text-blue-700 block"
1118
- }, u(i.news.moreText), 9, jt)) : a("", !0)
1089
+ }, d(i.news.moreText), 9, M1)) : o("", !0)
1119
1090
  ])
1120
1091
  ])
1121
1092
  ]))), 128))
1122
- ])) : a("", !0)
1093
+ ])) : o("", !0)
1123
1094
  ])
1124
1095
  ])
1125
- ])) : a("", !0)
1096
+ ])) : o("", !0)
1126
1097
  ], 2)
1127
- ])) : a("", !0)
1098
+ ])) : o("", !0)
1128
1099
  ]);
1129
1100
  };
1130
1101
  }
1131
1102
  });
1132
- const Nl = /* @__PURE__ */ _e(Tt, [["__scopeId", "data-v-0db00cd0"]]), zt = { class: "bg-secondary-body-island min-h-screen p-3" }, Ot = { class: "flex gap-3 items-stretch" }, Vt = { class: "flex-1 flex flex-col gap-3 min-w-0" }, Ht = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, Ft = { class: "flex items-center min-w-0 gap-2" }, Et = { class: "text-base text-black truncate" }, Wt = ["onClick"], At = { class: "text-base text-black truncate" }, Pt = { class: "w-[320px] py-2" }, Gt = ["onClick"], It = { class: "text-sm" }, Nt = {
1103
+ const yo = /* @__PURE__ */ $e(j1, [["__scopeId", "data-v-e0173e75"]]), T1 = { class: "bg-secondary-body-island min-h-screen p-3" }, z1 = { class: "flex gap-3 items-stretch" }, F1 = { class: "flex-1 flex flex-col gap-3 min-w-0" }, V1 = { class: "bg-white rounded-10 h-14 flex items-center justify-between pl-3 pr-3 shrink-0" }, H1 = { class: "flex items-center min-w-0 gap-2" }, W1 = { class: "text-base text-black truncate" }, P1 = ["onClick"], A1 = { class: "text-base text-black truncate" }, E1 = { class: "w-[320px] py-2" }, N1 = ["onClick"], G1 = { class: "text-sm" }, I1 = {
1133
1104
  key: 0,
1134
1105
  class: "border-t border-secondary-stroke my-1"
1135
- }, Rt = {
1106
+ }, R1 = {
1136
1107
  key: 1,
1137
1108
  class: "text-2xs text-secondary-content px-3 py-1 uppercase"
1138
- }, qt = ["onClick"], Ut = { class: "text-sm" }, Zt = {
1109
+ }, q1 = ["onClick"], U1 = { class: "text-sm" }, Z1 = {
1139
1110
  key: 2,
1140
1111
  class: "border-t border-secondary-stroke mt-1 pt-1"
1141
- }, Dt = ["onClick"], Jt = { class: "flex items-center gap-2 shrink-0" }, Kt = ["href"], Qt = { class: "text-2xs font-semibold text-black leading-loose" }, Xt = { class: "flex-1 min-w-0" }, Yt = { key: 0 }, el = {
1112
+ }, D1 = ["onClick"], J1 = { class: "flex items-center gap-2 shrink-0" }, K1 = ["href"], Q1 = { class: "text-2xs font-semibold text-black leading-loose" }, X1 = { class: "flex-1 min-w-0" }, Y1 = { key: 0 }, el = {
1142
1113
  key: 0,
1143
1114
  class: "sm:w-[560px] w-full relative h-full"
1144
- }, sl = { class: "h-full relative" }, tl = { class: "flex items-center p-3 space-x-1.5" }, ll = { class: "w-full font-medium" }, ol = {
1115
+ }, tl = { class: "h-full relative" }, sl = { class: "flex items-center p-3 space-x-1.5" }, ll = { class: "w-full font-medium" }, ol = {
1145
1116
  class: "overflow-auto",
1146
1117
  style: { height: "calc(100% - 62px)" }
1147
- }, nl = {
1118
+ }, al = {
1148
1119
  key: 0,
1149
1120
  class: "p-5"
1150
- }, al = { key: 1 }, rl = { class: "p-4 text-gray text-center" }, il = { key: 2 }, ul = {
1121
+ }, nl = { key: 1 }, rl = { class: "p-4 text-gray text-center" }, il = { key: 2 }, dl = {
1151
1122
  class: "p-3 space-y-1.5 rounded-lg",
1152
1123
  style: { "box-shadow": "0 0 6px #eaeaea" }
1153
- }, dl = { key: 0 }, pl = {
1124
+ }, ul = { key: 0 }, pl = {
1154
1125
  key: 0,
1155
1126
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
1156
1127
  }, cl = {
@@ -1162,312 +1133,635 @@ const Nl = /* @__PURE__ */ _e(Tt, [["__scopeId", "data-v-0db00cd0"]]), zt = { cl
1162
1133
  }, ml = {
1163
1134
  key: 3,
1164
1135
  class: "text-xs px-2 py-1 rounded-md bg-gray-600 text-white"
1165
- }, vl = { class: "text-lg font-medium" }, fl = { class: "text-sm text-gray-600" }, wl = { key: 0 }, yl = ["src"], bl = { class: "text-sm" }, Cl = { key: 1 }, gl = ["href"], xl = { class: "text-sm flex items-center justify-between mt-1" }, kl = { class: "text-gray-800" }, _l = ["href"], $l = /* @__PURE__ */ ke({
1136
+ }, fl = { class: "text-lg font-medium" }, vl = { class: "text-sm text-gray-600" }, yl = { key: 0 }, wl = ["src"], bl = { class: "text-sm" }, gl = { key: 1 }, xl = ["href"], kl = { class: "text-sm flex items-center justify-between mt-1" }, Cl = { class: "text-gray-800" }, $l = ["href"], _l = /* @__PURE__ */ K({
1166
1137
  __name: "OneIslandLayout",
1167
- props: p1,
1138
+ props: pt,
1168
1139
  emits: ["load-news", "load-tariff", "open-tariff", "browse", "workspace-click", "manage-workspaces"],
1169
- setup(x, { emit: k }) {
1170
- const d = k, p = x, F = Be(), m = j(() => p.t ?? F), w = () => {
1171
- var o, r;
1172
- d("browse"), (r = (o = p.handlers) == null ? void 0 : o.onBrowse) == null || r.call(o);
1173
- }, O = () => {
1174
- var o, r;
1175
- d("workspace-click"), (r = (o = p.handlers) == null ? void 0 : o.onWorkspace) == null || r.call(o);
1176
- }, H = () => {
1177
- var o, r, y;
1178
- d("manage-workspaces"), (o = p.handlers) != null && o.onManageWorkspaces ? p.handlers.onManageWorkspaces() : (y = (r = p.handlers) == null ? void 0 : r.onChange) == null || y.call(r);
1140
+ setup(u, { emit: f }) {
1141
+ const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = () => {
1142
+ var a, r;
1143
+ c("browse"), (r = (a = p.handlers) == null ? void 0 : a.onBrowse) == null || r.call(a);
1144
+ }, T = () => {
1145
+ var a, r;
1146
+ c("workspace-click"), (r = (a = p.handlers) == null ? void 0 : a.onWorkspace) == null || r.call(a);
1147
+ }, L = () => {
1148
+ var a, r, x;
1149
+ c("manage-workspaces"), (a = p.handlers) != null && a.onManageWorkspaces ? p.handlers.onManageWorkspaces() : (x = (r = p.handlers) == null ? void 0 : r.onChange) == null || x.call(r);
1179
1150
  };
1180
- let P = window.localStorage.getItem("island-sidebar-slim");
1181
- window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), P = "1");
1182
- const M = z(P === "1");
1183
- pe(M, (o) => {
1184
- window.localStorage.setItem("island-sidebar-slim", String(o ? 1 : 0));
1151
+ let A = window.localStorage.getItem("island-sidebar-slim");
1152
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), A = "1");
1153
+ const z = V(A === "1");
1154
+ Me(z, (a) => {
1155
+ window.localStorage.setItem("island-sidebar-slim", String(a ? 1 : 0));
1185
1156
  });
1186
- const $ = z(!1), q = () => {
1187
- $.value = !$.value, $.value && d("load-news");
1188
- }, R = z(null), E = () => {
1189
- var r, y, V;
1190
- const o = (V = (y = (r = R.value) == null ? void 0 : r.$el) == null ? void 0 : y.querySelector) == null ? void 0 : V.call(y, "button");
1191
- o == null || o.click();
1192
- }, t = j(() => p.showHeadre);
1193
- pe(
1194
- () => p.showHeadre,
1195
- () => {
1196
- t.value = p.showHeadre;
1197
- }
1198
- );
1199
- const L = z(window.innerWidth), i = () => {
1200
- L.value = window.innerWidth;
1201
- }, f = j(() => L.value <= 768);
1202
- Ce(() => {
1157
+ const M = V(!1), D = () => {
1158
+ M.value = !M.value, M.value && c("load-news");
1159
+ }, Z = V(null), E = () => {
1160
+ var r, x, H;
1161
+ const a = (H = (x = (r = Z.value) == null ? void 0 : r.$el) == null ? void 0 : x.querySelector) == null ? void 0 : H.call(x, "button");
1162
+ a == null || a.click();
1163
+ }, l = S(() => p.showHeader ?? p.showHeadre), j = V(window.innerWidth), i = () => {
1164
+ j.value = window.innerWidth;
1165
+ }, b = S(() => j.value <= 768);
1166
+ xe(() => {
1203
1167
  window.addEventListener("resize", i);
1204
- }), Se(() => {
1168
+ }), Oe(() => {
1205
1169
  window.removeEventListener("resize", i);
1206
1170
  });
1207
- const J = (o) => {
1208
- var r, y;
1209
- (y = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || y.call(r, o);
1171
+ const Q = (a) => {
1172
+ var r, x;
1173
+ (x = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || x.call(r, a);
1210
1174
  };
1211
- return (o, r) => {
1212
- var y, V, U, ae, K, Q, X, n, b, Y, ee, se, h, G, te, ce, he, me, ve, fe;
1213
- return e(), l("div", zt, [
1214
- s("div", Ot, [
1215
- !f.value || !M.value ? (e(), c(c1, {
1175
+ return (a, r) => {
1176
+ var x, H, J, ie, X, Y, ee, n, k, te, se, le, v, R, oe, me, fe, ve, ye, we;
1177
+ return e(), s("div", T1, [
1178
+ t("div", z1, [
1179
+ !b.value || !z.value ? (e(), h(ct, {
1216
1180
  key: 0,
1217
- items: o.sidebarItems,
1181
+ items: a.sidebarItems,
1218
1182
  island: !0,
1219
1183
  t: m.value,
1220
- app: o.app,
1221
- "logo-src": o.logoSrc,
1222
- "with-news": o.news != null,
1223
- news: o.news,
1224
- isMobile: f.value,
1225
- modelValue: M.value,
1226
- onToggleMenu: r[0] || (r[0] = (v) => M.value = !M.value),
1227
- onShowNews: q,
1184
+ app: a.app,
1185
+ "logo-src": a.logoSrc,
1186
+ "with-news": a.news != null,
1187
+ news: a.news,
1188
+ isMobile: b.value,
1189
+ modelValue: z.value,
1190
+ onToggleMenu: r[0] || (r[0] = (w) => z.value = !z.value),
1191
+ onShowNews: D,
1228
1192
  onShowHelp: E,
1229
- onSelectLanguage: J,
1230
- onUpdateCollapsed: r[1] || (r[1] = (v) => M.value = !M.value)
1231
- }, null, 8, ["items", "t", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : a("", !0),
1232
- f.value && !M.value ? (e(), l("div", {
1193
+ onSelectLanguage: Q,
1194
+ onUpdateCollapsed: r[1] || (r[1] = (w) => z.value = !z.value)
1195
+ }, null, 8, ["items", "t", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
1196
+ b.value && !z.value ? (e(), s("div", {
1233
1197
  key: 1,
1234
1198
  class: "fixed inset-0 z-40 bg-black/20",
1235
- onClick: r[2] || (r[2] = (v) => M.value = !0)
1236
- })) : a("", !0),
1237
- s("div", Vt, [
1238
- ie(s("header", Ht, [
1239
- s("div", Ft, [
1240
- f.value ? (e(), l("button", {
1199
+ onClick: r[2] || (r[2] = (w) => z.value = !0)
1200
+ })) : o("", !0),
1201
+ t("div", F1, [
1202
+ pe(t("header", V1, [
1203
+ t("div", H1, [
1204
+ b.value ? (e(), s("button", {
1241
1205
  key: 0,
1242
1206
  type: "button",
1243
1207
  class: "w-9 h-9 -ml-1 rounded-10 flex items-center justify-center text-secondary-base hover:bg-secondary-body-active transition-colors shrink-0",
1244
- onClick: r[3] || (r[3] = (v) => M.value = !M.value)
1208
+ onClick: r[3] || (r[3] = (w) => z.value = !z.value)
1245
1209
  }, [
1246
- (e(), c(_(S(je)), { class: "w-5 h-5" }))
1247
- ])) : a("", !0),
1248
- !f.value && ((y = o.handlers) != null && y.onWorkspace) && (o.workspace || (V = o.app) != null && V.workspace) ? (e(), l("button", {
1210
+ (e(), h(_(O(je)), { class: "w-5 h-5" }))
1211
+ ])) : o("", !0),
1212
+ !b.value && ((x = a.handlers) != null && x.onWorkspace) && (a.workspace || (H = a.app) != null && H.workspace) ? (e(), s("button", {
1249
1213
  key: 1,
1250
1214
  type: "button",
1251
1215
  class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
1252
- onClick: O
1216
+ onClick: T
1253
1217
  }, [
1254
- B(be, {
1255
- text: (ae = o.workspace || ((U = o.app) == null ? void 0 : U.workspace)) == null ? void 0 : ae.name,
1256
- src: (Q = o.workspace || ((K = o.app) == null ? void 0 : K.workspace)) == null ? void 0 : Q.photo_url,
1218
+ B(ue, {
1219
+ text: (ie = a.workspace || ((J = a.app) == null ? void 0 : J.workspace)) == null ? void 0 : ie.name,
1220
+ src: (Y = a.workspace || ((X = a.app) == null ? void 0 : X.workspace)) == null ? void 0 : Y.photo_url,
1257
1221
  size: 20,
1258
1222
  rounded: !1
1259
1223
  }, null, 8, ["text", "src"]),
1260
- s("span", Et, u((n = o.workspace || ((X = o.app) == null ? void 0 : X.workspace)) == null ? void 0 : n.name), 1),
1261
- (e(), c(_(S(ye)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1262
- ])) : !f.value && (o.workspace || (b = o.app) != null && b.workspace) ? (e(), c(l1, {
1224
+ t("span", W1, d((n = a.workspace || ((ee = a.app) == null ? void 0 : ee.workspace)) == null ? void 0 : n.name), 1),
1225
+ (e(), h(_(O(be)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1226
+ ])) : !b.value && (a.workspace || (k = a.app) != null && k.workspace) ? (e(), h(st, {
1263
1227
  key: 2,
1264
1228
  "append-body": !0,
1265
1229
  stick: "bottom-start"
1266
1230
  }, {
1267
- button: Z(({ onToggle: v }) => {
1268
- var W, I, le, oe, T, re;
1231
+ button: I(({ onToggle: w }) => {
1232
+ var N, q, ae, ne, F, de;
1269
1233
  return [
1270
- s("button", {
1234
+ t("button", {
1271
1235
  type: "button",
1272
1236
  class: "flex items-center gap-2 px-2 py-1 rounded-10 bg-[#F5F5F5] hover:bg-secondary-body transition-colors min-w-0",
1273
- onClick: (A) => (O(), v())
1237
+ onClick: (G) => (T(), w())
1274
1238
  }, [
1275
- B(be, {
1276
- text: (I = o.workspace || ((W = o.app) == null ? void 0 : W.workspace)) == null ? void 0 : I.name,
1277
- src: (oe = o.workspace || ((le = o.app) == null ? void 0 : le.workspace)) == null ? void 0 : oe.photo_url,
1239
+ B(ue, {
1240
+ text: (q = a.workspace || ((N = a.app) == null ? void 0 : N.workspace)) == null ? void 0 : q.name,
1241
+ src: (ne = a.workspace || ((ae = a.app) == null ? void 0 : ae.workspace)) == null ? void 0 : ne.photo_url,
1278
1242
  size: 20,
1279
1243
  rounded: !1
1280
1244
  }, null, 8, ["text", "src"]),
1281
- s("span", At, u((re = o.workspace || ((T = o.app) == null ? void 0 : T.workspace)) == null ? void 0 : re.name), 1),
1282
- (e(), c(_(S(ye)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1283
- ], 8, Wt)
1245
+ t("span", A1, d((de = a.workspace || ((F = a.app) == null ? void 0 : F.workspace)) == null ? void 0 : de.name), 1),
1246
+ (e(), h(_(O(be)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1247
+ ], 8, P1)
1284
1248
  ];
1285
1249
  }),
1286
- menu: Z(({ onToggle: v }) => {
1287
- var W, I, le, oe;
1250
+ menu: I(({ onToggle: w }) => {
1251
+ var N, q, ae, ne;
1288
1252
  return [
1289
- s("div", Pt, [
1290
- (e(!0), l(N, null, D(o.workspaces || [], (T) => (e(), l("div", {
1291
- key: T.name,
1253
+ t("div", E1, [
1254
+ (e(!0), s(W, null, U(a.workspaces || [], (F) => (e(), s("div", {
1255
+ key: F.name,
1292
1256
  class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
1293
- onClick: (re) => {
1294
- var A, ne;
1295
- return (ne = (A = o.handlers) == null ? void 0 : A.onChange) == null || ne.call(A, T), v();
1257
+ onClick: (de) => {
1258
+ var G, re;
1259
+ return (re = (G = a.handlers) == null ? void 0 : G.onChange) == null || re.call(G, F), w();
1296
1260
  }
1297
1261
  }, [
1298
- B(be, {
1299
- text: T.name,
1300
- src: T.photo_url,
1262
+ B(ue, {
1263
+ text: F.name,
1264
+ src: F.photo_url,
1301
1265
  size: 24,
1302
1266
  rounded: !1
1303
1267
  }, null, 8, ["text", "src"]),
1304
- s("span", It, u(T.name), 1)
1305
- ], 8, Gt))), 128)),
1306
- (W = o.workspaces) != null && W.length ? (e(), l("div", Nt)) : a("", !0),
1307
- (I = o.apps) != null && I.length ? (e(), l("div", Rt, u(m.value("ui.layout.apps")), 1)) : a("", !0),
1308
- (e(!0), l(N, null, D(o.apps || [], (T) => (e(), l("div", {
1309
- key: T.id,
1268
+ t("span", G1, d(F.name), 1)
1269
+ ], 8, N1))), 128)),
1270
+ (N = a.workspaces) != null && N.length ? (e(), s("div", I1)) : o("", !0),
1271
+ (q = a.apps) != null && q.length ? (e(), s("div", R1, d(m.value("ui.layout.apps")), 1)) : o("", !0),
1272
+ (e(!0), s(W, null, U(a.apps || [], (F) => (e(), s("div", {
1273
+ key: F.id,
1310
1274
  class: "flex items-center gap-2 px-3 py-2 hover:bg-secondary-10 cursor-pointer",
1311
- onClick: (re) => {
1312
- var A, ne;
1313
- return (ne = (A = o.handlers) == null ? void 0 : A.onApp) == null || ne.call(A, T), v();
1275
+ onClick: (de) => {
1276
+ var G, re;
1277
+ return (re = (G = a.handlers) == null ? void 0 : G.onApp) == null || re.call(G, F), w();
1314
1278
  }
1315
1279
  }, [
1316
- B(be, {
1317
- text: T.name,
1318
- src: T.photo_url,
1280
+ B(ue, {
1281
+ text: F.name,
1282
+ src: F.photo_url,
1319
1283
  size: 24,
1320
1284
  rounded: !1
1321
1285
  }, null, 8, ["text", "src"]),
1322
- s("span", Ut, u(T.name), 1)
1323
- ], 8, qt))), 128)),
1324
- (le = o.handlers) != null && le.onManageWorkspaces || (oe = o.handlers) != null && oe.onChange ? (e(), l("div", Zt, [
1325
- s("button", {
1286
+ t("span", U1, d(F.name), 1)
1287
+ ], 8, q1))), 128)),
1288
+ (ae = a.handlers) != null && ae.onManageWorkspaces || (ne = a.handlers) != null && ne.onChange ? (e(), s("div", Z1, [
1289
+ t("button", {
1326
1290
  type: "button",
1327
1291
  class: "w-full text-left text-xs text-secondary-content px-3 py-2 hover:bg-secondary-10",
1328
- onClick: (T) => (H(), v())
1329
- }, u(m.value("ui.layout.change_workspace")), 9, Dt)
1330
- ])) : a("", !0)
1292
+ onClick: (F) => (L(), w())
1293
+ }, d(m.value("ui.layout.change_workspace")), 9, D1)
1294
+ ])) : o("", !0)
1331
1295
  ])
1332
1296
  ];
1333
1297
  }),
1334
1298
  _: 1
1335
- })) : a("", !0),
1336
- de(o.$slots, "head-left", {}, void 0, !0)
1299
+ })) : o("", !0),
1300
+ P(a.$slots, "head-left", {}, void 0, !0)
1337
1301
  ]),
1338
- s("div", Jt, [
1339
- (Y = o.improveTariff) != null && Y.label ? (e(), l("a", {
1302
+ t("div", J1, [
1303
+ (te = a.improveTariff) != null && te.label ? (e(), s("a", {
1340
1304
  key: 0,
1341
- href: ((ee = o.improveTariff) == null ? void 0 : ee.url) || "#",
1305
+ href: ((se = a.improveTariff) == null ? void 0 : se.url) || "#",
1342
1306
  class: "flex items-center gap-1.5 bg-[#FFF8E4] hover:bg-[#FAEBC2] rounded-full px-2 py-0.5 transition-colors",
1343
- onClick: r[4] || (r[4] = ue((v) => {
1344
- var W, I;
1345
- return (I = (W = o.handlers) == null ? void 0 : W.onImproveTariff) == null ? void 0 : I.call(W);
1307
+ onClick: r[4] || (r[4] = he((w) => {
1308
+ var N, q;
1309
+ return (q = (N = a.handlers) == null ? void 0 : N.onImproveTariff) == null ? void 0 : q.call(N);
1346
1310
  }, ["prevent"]))
1347
1311
  }, [
1348
- o.improveTariff.icon ? (e(), c(_(o.improveTariff.icon), {
1312
+ a.improveTariff.icon ? (e(), h(_(a.improveTariff.icon), {
1349
1313
  key: 0,
1350
1314
  class: "w-4 h-4 text-warning-base"
1351
- })) : a("", !0),
1352
- s("span", Qt, u(o.improveTariff.label), 1)
1353
- ], 8, Kt)) : a("", !0),
1354
- de(o.$slots, "head-right", {}, void 0, !0),
1355
- o.help ? (e(), c(o1, {
1315
+ })) : o("", !0),
1316
+ t("span", Q1, d(a.improveTariff.label), 1)
1317
+ ], 8, K1)) : o("", !0),
1318
+ P(a.$slots, "head-right", {}, void 0, !0),
1319
+ a.help ? (e(), h(lt, {
1356
1320
  key: 1,
1357
1321
  ref_key: "helpMenuRef",
1358
- ref: R,
1359
- help: o.help,
1360
- "help-slug": o.helpSlug,
1322
+ ref: Z,
1323
+ help: a.help,
1324
+ "help-slug": a.helpSlug,
1361
1325
  t: m.value
1362
- }, null, 8, ["help", "help-slug", "t"])) : a("", !0),
1363
- B(n1, {
1364
- workspace: o.workspace || ((se = o.app) == null ? void 0 : se.workspace),
1365
- apps: o.apps || ((h = o.app) == null ? void 0 : h.apps) || [],
1326
+ }, null, 8, ["help", "help-slug", "t"])) : o("", !0),
1327
+ B(ot, {
1328
+ workspace: a.workspace || ((le = a.app) == null ? void 0 : le.workspace),
1329
+ apps: a.apps || ((v = a.app) == null ? void 0 : v.apps) || [],
1366
1330
  t: m.value,
1367
- "on-app": (G = o.handlers) == null ? void 0 : G.onApp,
1368
- "on-change": (te = o.handlers) == null ? void 0 : te.onChange,
1369
- onOpen: w
1331
+ "on-app": (R = a.handlers) == null ? void 0 : R.onApp,
1332
+ "on-change": (oe = a.handlers) == null ? void 0 : oe.onChange,
1333
+ onOpen: C
1370
1334
  }, null, 8, ["workspace", "apps", "t", "on-app", "on-change"]),
1371
- B(a1, {
1372
- user: o.user,
1373
- menu: o.menu,
1374
- app: o.app,
1335
+ B(at, {
1336
+ user: a.user,
1337
+ menu: a.menu,
1338
+ app: a.app,
1375
1339
  t: m.value,
1376
- "on-account": (ce = o.handlers) == null ? void 0 : ce.onAccount,
1377
- "on-logout": (he = o.handlers) == null ? void 0 : he.onLogout
1340
+ "on-account": (me = a.handlers) == null ? void 0 : me.onAccount,
1341
+ "on-logout": (fe = a.handlers) == null ? void 0 : fe.onLogout
1378
1342
  }, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
1379
1343
  ])
1380
1344
  ], 512), [
1381
- [ge, t.value]
1345
+ [ge, l.value]
1382
1346
  ]),
1383
- s("div", Xt, [
1384
- de(o.$slots, "default", {}, void 0, !0)
1347
+ t("div", X1, [
1348
+ P(a.$slots, "default", {}, void 0, !0)
1385
1349
  ])
1386
1350
  ])
1387
1351
  ]),
1388
- o.news ? (e(), l("div", Yt, [
1389
- $.value ? (e(), l("div", {
1352
+ a.news ? (e(), s("div", Y1, [
1353
+ M.value ? (e(), s("div", {
1390
1354
  key: 0,
1391
1355
  class: "fixed top-0 left-0 h-dvh w-screen bg-gray-100 bg-opacity-40 z-50",
1392
- onClick: r[5] || (r[5] = ue((v) => $.value = !1, ["self"]))
1393
- })) : a("", !0),
1394
- s("div", {
1395
- class: C(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [$.value ? "sm:w-[560px] w-full" : "w-0"]])
1356
+ onClick: r[5] || (r[5] = he((w) => M.value = !1, ["self"]))
1357
+ })) : o("", !0),
1358
+ t("div", {
1359
+ class: y(["opacity-100 shadow-lg transition-all fixed top-0 left-0 h-dvh overflow-hidden z-50 bg-white", [M.value ? "sm:w-[560px] w-full" : "w-0"]])
1396
1360
  }, [
1397
- $.value ? (e(), l("div", el, [
1398
- s("div", sl, [
1399
- s("div", tl, [
1400
- B(xe, { class: "w-10 h-10" }),
1401
- s("div", ll, u(m.value("ui.layout.news")), 1),
1402
- s("div", null, [
1403
- B(Me, {
1361
+ M.value ? (e(), s("div", el, [
1362
+ t("div", tl, [
1363
+ t("div", sl, [
1364
+ B(ke, { class: "w-10 h-10" }),
1365
+ t("div", ll, d(m.value("ui.layout.news")), 1),
1366
+ t("div", null, [
1367
+ B(_e, {
1404
1368
  variant: "touch",
1405
- icon: S(r1),
1406
- onClick: r[6] || (r[6] = (v) => $.value = !1)
1369
+ icon: O(rt),
1370
+ onClick: r[6] || (r[6] = (w) => M.value = !1)
1407
1371
  }, null, 8, ["icon"])
1408
1372
  ])
1409
1373
  ]),
1410
- s("div", ol, [
1411
- o.news.isLoading && ((me = o.news.items) == null ? void 0 : me.length) === 0 ? (e(), l("div", nl, [
1412
- B(i1, { class: "w-6 h-6 text-gray-600 mx-auto" })
1413
- ])) : ((ve = o.news.items) == null ? void 0 : ve.length) === 0 ? (e(), l("div", al, [
1414
- s("div", rl, u(o.news.emptyText), 1)
1415
- ])) : ((fe = o.news.items) == null ? void 0 : fe.length) > 0 ? (e(), l("div", il, [
1416
- (e(!0), l(N, null, D(o.news.items, (v) => (e(), l("div", {
1417
- key: v.id,
1374
+ t("div", ol, [
1375
+ a.news.isLoading && ((ve = a.news.items) == null ? void 0 : ve.length) === 0 ? (e(), s("div", al, [
1376
+ B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
1377
+ ])) : ((ye = a.news.items) == null ? void 0 : ye.length) === 0 ? (e(), s("div", nl, [
1378
+ t("div", rl, d(a.news.emptyText), 1)
1379
+ ])) : ((we = a.news.items) == null ? void 0 : we.length) > 0 ? (e(), s("div", il, [
1380
+ (e(!0), s(W, null, U(a.news.items, (w) => (e(), s("div", {
1381
+ key: w.id,
1418
1382
  class: "p-3"
1419
1383
  }, [
1420
- s("div", ul, [
1421
- s("div", null, [
1422
- v.type ? (e(), l("div", dl, [
1423
- v.type === 10 ? (e(), l("span", pl, "update")) : v.type === 11 ? (e(), l("span", cl, "warning")) : v.type === 12 ? (e(), l("span", hl, "notice")) : v.type === 13 ? (e(), l("span", ml, "ads")) : a("", !0)
1424
- ])) : a("", !0),
1425
- s("div", vl, u(v.title), 1),
1426
- s("div", fl, u(v.summary), 1)
1384
+ t("div", dl, [
1385
+ t("div", null, [
1386
+ w.type ? (e(), s("div", ul, [
1387
+ w.type === 10 ? (e(), s("span", pl, "update")) : w.type === 11 ? (e(), s("span", cl, "warning")) : w.type === 12 ? (e(), s("span", hl, "notice")) : w.type === 13 ? (e(), s("span", ml, "ads")) : o("", !0)
1388
+ ])) : o("", !0),
1389
+ t("div", fl, d(w.title), 1),
1390
+ t("div", vl, d(w.summary), 1)
1427
1391
  ]),
1428
- v.image_url ? (e(), l("div", wl, [
1429
- s("img", {
1430
- src: v.image_url,
1392
+ w.image_url ? (e(), s("div", yl, [
1393
+ t("img", {
1394
+ src: w.image_url,
1431
1395
  alt: "",
1432
1396
  class: "w-full rounded-md"
1433
- }, null, 8, yl)
1434
- ])) : a("", !0),
1435
- s("div", bl, [
1436
- B(u1, {
1437
- text: v.body
1397
+ }, null, 8, wl)
1398
+ ])) : o("", !0),
1399
+ t("div", bl, [
1400
+ B(dt, {
1401
+ text: w.body
1438
1402
  }, null, 8, ["text"])
1439
1403
  ]),
1440
- v.video_url ? (e(), l("div", Cl, [
1441
- s("a", {
1442
- href: v.video_url,
1404
+ w.video_url ? (e(), s("div", gl, [
1405
+ t("a", {
1406
+ href: w.video_url,
1443
1407
  target: "_blank",
1444
1408
  class: "text-blue-600 hover:text-blue-700 px-3 py-2 border rounded-md w-full block"
1445
- }, u(o.news.openVideoText), 9, gl)
1446
- ])) : a("", !0),
1447
- s("div", xl, [
1448
- s("span", kl, u(v.published), 1),
1449
- v.post_url ? (e(), l("a", {
1409
+ }, d(a.news.openVideoText), 9, xl)
1410
+ ])) : o("", !0),
1411
+ t("div", kl, [
1412
+ t("span", Cl, d(w.published), 1),
1413
+ w.post_url ? (e(), s("a", {
1450
1414
  key: 0,
1451
- href: v.post_url,
1415
+ href: w.post_url,
1452
1416
  target: "_blank",
1453
1417
  class: "text-blue-600 hover:text-blue-700 block"
1454
- }, u(o.news.moreText), 9, _l)) : a("", !0)
1418
+ }, d(a.news.moreText), 9, $l)) : o("", !0)
1455
1419
  ])
1456
1420
  ])
1457
1421
  ]))), 128))
1458
- ])) : a("", !0)
1422
+ ])) : o("", !0)
1459
1423
  ])
1460
1424
  ])
1461
- ])) : a("", !0)
1425
+ ])) : o("", !0)
1462
1426
  ], 2)
1463
- ])) : a("", !0)
1427
+ ])) : o("", !0)
1464
1428
  ]);
1465
1429
  };
1466
1430
  }
1467
1431
  });
1468
- const Rl = /* @__PURE__ */ _e($l, [["__scopeId", "data-v-e0a89bf0"]]);
1432
+ const wo = /* @__PURE__ */ $e(_l, [["__scopeId", "data-v-b8001409"]]), Ll = { class: "not-prose relative bg-slate-50 rounded-xl overflow-hidden dark:bg-slate-800/25" }, Sl = { class: "relative rounded-xl overflow-auto p-8" }, Bl = { class: "grid lg:grid-cols-4 2xl:grid-cols-6 gap-4 font-mono text-white text-sm text-center font-bold leading-6 bg-stripes-fuchsia rounded-lg" }, bo = /* @__PURE__ */ K({
1433
+ __name: "OneGridLayout",
1434
+ props: Ct,
1435
+ setup(u) {
1436
+ const f = u, c = S(() => Array.from({ length: f.count || 2 }, (p, g) => g + 1));
1437
+ return (p, g) => {
1438
+ const m = Ce("font");
1439
+ return e(), s("div", Ll, [
1440
+ g[0] || (g[0] = t("div", {
1441
+ class: "absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))] dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]",
1442
+ style: { "background-position": "10px 10px" }
1443
+ }, null, -1)),
1444
+ t("div", Sl, [
1445
+ t("div", Bl, [
1446
+ (e(!0), s(W, null, U(c.value, (C) => (e(), s("div", {
1447
+ class: "p-4 rounded-lg shadow-lg bg-fuchsia-500",
1448
+ key: C
1449
+ }, [
1450
+ B(m, { style: { "vertical-align": "inherit" } }, {
1451
+ default: I(() => [
1452
+ B(m, { style: { "vertical-align": "inherit" } }, {
1453
+ default: I(() => [
1454
+ ce(d(C), 1)
1455
+ ]),
1456
+ _: 2
1457
+ }, 1024)
1458
+ ]),
1459
+ _: 2
1460
+ }, 1024)
1461
+ ]))), 128))
1462
+ ])
1463
+ ]),
1464
+ g[1] || (g[1] = t("div", { class: "absolute inset-0 pointer-events-none border border-black/5 rounded-xl dark:border-white/5" }, null, -1))
1465
+ ]);
1466
+ };
1467
+ }
1468
+ }), Ol = /* @__PURE__ */ K({
1469
+ __name: "OneBackButton",
1470
+ props: {
1471
+ /** Fallback route when there is no browser history (deep link). */
1472
+ to: {
1473
+ type: [String, Object],
1474
+ default: void 0
1475
+ },
1476
+ label: {
1477
+ type: String,
1478
+ default: ""
1479
+ },
1480
+ variant: {
1481
+ type: String,
1482
+ default: "link"
1483
+ },
1484
+ classButton: {
1485
+ type: String,
1486
+ default: "pl-0"
1487
+ },
1488
+ classIcon: {
1489
+ type: String,
1490
+ default: "!w-3"
1491
+ },
1492
+ /** Return true to fully handle the click yourself. */
1493
+ handler: {
1494
+ type: Function,
1495
+ default: void 0
1496
+ },
1497
+ t: {
1498
+ type: Function,
1499
+ default: void 0
1500
+ }
1501
+ },
1502
+ setup(u) {
1503
+ const f = u, c = gt(), p = Le(), g = S(() => f.t ?? p), m = V(!1);
1504
+ xe(() => {
1505
+ var L;
1506
+ m.value = ((L = window.history.state) == null ? void 0 : L.back) != null;
1507
+ });
1508
+ const C = () => {
1509
+ if (f.handler != null && f.handler())
1510
+ return;
1511
+ const L = c.options.history.state;
1512
+ m.value && L.back !== L.current ? c.back() : f.to != null ? c.push(f.to) : c.back();
1513
+ }, T = S(() => f.label || g.value("ui.back"));
1514
+ return (L, A) => (e(), h(O(_e), {
1515
+ class: y(["!text-[#525B66] text-xs", u.classButton]),
1516
+ label: T.value,
1517
+ iconClass: u.classIcon,
1518
+ labelClass: "!ml-1",
1519
+ icon: O(xt),
1520
+ variant: u.variant,
1521
+ onClick: C
1522
+ }, null, 8, ["class", "label", "iconClass", "icon", "variant"]));
1523
+ }
1524
+ }), Ml = { class: "flex min-w-0 items-center gap-3" }, jl = ["src"], Tl = { class: "min-w-0 text-left leading-tight" }, zl = {
1525
+ key: 0,
1526
+ class: "truncate text-base font-semibold text-gray-900"
1527
+ }, Fl = {
1528
+ key: 1,
1529
+ class: "truncate text-xs text-gray-500"
1530
+ }, Vl = {
1531
+ key: 1,
1532
+ class: "truncate text-sm font-medium text-gray-700 sm:text-base"
1533
+ }, Hl = {
1534
+ id: "one-empty-layout-header-center",
1535
+ class: "hidden min-w-0 flex-1 px-4 lg:flex"
1536
+ }, Wl = { class: "flex shrink-0 items-center gap-3" }, Pl = {
1537
+ key: 0,
1538
+ class: "hidden text-right sm:block"
1539
+ }, Al = { class: "text-sm text-gray-800" }, El = { class: "p-3 sm:p-4 lg:mx-auto" }, Nl = {
1540
+ class: "fixed bottom-0 left-0 right-0 bg-white h-16 flex items-center",
1541
+ style: { "box-shadow": "0 0 15px rgba(0, 0, 0, 0.2)", "will-change": "transform" }
1542
+ }, Gl = { class: "w-full lg:max-w-[960px] mx-auto px-3 lg:px-0" }, go = /* @__PURE__ */ K({
1543
+ __name: "OneEmptyLayout",
1544
+ props: {
1545
+ showHeader: {
1546
+ type: Boolean,
1547
+ default: !0
1548
+ },
1549
+ showFooter: {
1550
+ type: Boolean,
1551
+ default: !1
1552
+ },
1553
+ showHeaderShadow: {
1554
+ type: Boolean,
1555
+ default: !1
1556
+ },
1557
+ logoUrl: {
1558
+ type: String,
1559
+ default: ""
1560
+ },
1561
+ appName: {
1562
+ type: String,
1563
+ default: ""
1564
+ },
1565
+ workspaceName: {
1566
+ type: String,
1567
+ default: ""
1568
+ },
1569
+ /** Route for the logo link; plain block when omitted. */
1570
+ homeTo: {
1571
+ type: [String, Object],
1572
+ default: void 0
1573
+ },
1574
+ /** Back-button fallback route; button hidden when omitted. */
1575
+ backTo: {
1576
+ type: [String, Object],
1577
+ default: void 0
1578
+ },
1579
+ title: {
1580
+ type: String,
1581
+ default: ""
1582
+ },
1583
+ user: {
1584
+ type: Object,
1585
+ default: null
1586
+ },
1587
+ /** White content background (invoice "create document" pages). */
1588
+ whiteBackground: {
1589
+ type: Boolean,
1590
+ default: !1
1591
+ }
1592
+ },
1593
+ setup(u) {
1594
+ return (f, c) => (e(), s("div", {
1595
+ class: y(u.whiteBackground ? "bg-white min-h-screen" : "min-h-screen bg-[#FAFBFC]")
1596
+ }, [
1597
+ u.showHeader ? (e(), s("div", {
1598
+ key: 0,
1599
+ class: "sticky top-0 z-40 flex items-center justify-between gap-3 border-b bg-white/90 px-3 py-2.5 backdrop-blur supports-[backdrop-filter]:bg-white/80 sm:px-6",
1600
+ style: tt(u.showHeaderShadow ? "box-shadow: 0 0 15px rgba(0, 0, 0, 0.2)" : "")
1601
+ }, [
1602
+ t("div", Ml, [
1603
+ (e(), h(_(u.homeTo ? "router-link" : "div"), {
1604
+ to: u.homeTo,
1605
+ class: "hidden shrink-0 items-center gap-2 lg:flex"
1606
+ }, {
1607
+ default: I(() => [
1608
+ u.logoUrl ? (e(), s("img", {
1609
+ key: 0,
1610
+ src: u.logoUrl,
1611
+ alt: "",
1612
+ class: "h-8 w-8"
1613
+ }, null, 8, jl)) : o("", !0),
1614
+ t("div", Tl, [
1615
+ u.appName ? (e(), s("div", zl, d(u.appName), 1)) : o("", !0),
1616
+ u.workspaceName ? (e(), s("div", Fl, d(u.workspaceName), 1)) : o("", !0)
1617
+ ])
1618
+ ]),
1619
+ _: 1
1620
+ }, 8, ["to"])),
1621
+ u.backTo ? (e(), h(Ol, {
1622
+ key: 0,
1623
+ to: u.backTo,
1624
+ variant: "secondary",
1625
+ "class-button": "!bg-[#F6F8FF] rounded-xl h-8",
1626
+ "class-icon": "!w-4"
1627
+ }, null, 8, ["to"])) : o("", !0),
1628
+ u.title ? (e(), s("h1", Vl, d(u.title), 1)) : o("", !0),
1629
+ P(f.$slots, "header-left")
1630
+ ]),
1631
+ t("div", Hl, [
1632
+ P(f.$slots, "header-center")
1633
+ ]),
1634
+ t("div", Wl, [
1635
+ P(f.$slots, "header-right", {}, () => {
1636
+ var p;
1637
+ return [
1638
+ (p = u.user) != null && p.name ? (e(), s("div", Pl, [
1639
+ t("div", Al, d(u.user.name), 1)
1640
+ ])) : o("", !0),
1641
+ u.user ? (e(), h(O(ue), {
1642
+ key: 1,
1643
+ src: u.user.photo_url,
1644
+ rounded: !0,
1645
+ size: "30"
1646
+ }, null, 8, ["src"])) : o("", !0)
1647
+ ];
1648
+ })
1649
+ ])
1650
+ ], 4)) : o("", !0),
1651
+ t("div", El, [
1652
+ P(f.$slots, "default")
1653
+ ]),
1654
+ u.showFooter ? (e(), s(W, { key: 1 }, [
1655
+ c[0] || (c[0] = t("div", { class: "h-16" }, null, -1)),
1656
+ t("div", Nl, [
1657
+ t("div", Gl, [
1658
+ P(f.$slots, "footer")
1659
+ ])
1660
+ ])
1661
+ ], 64)) : o("", !0)
1662
+ ], 2));
1663
+ }
1664
+ }), Il = { class: "flex flex-col md:flex-row h-screen" }, Rl = { class: "flex flex-col lg:flex-row items-center h-full" }, ql = { class: "2xl:px-12 p-4 w-full" }, Ul = {
1665
+ key: 0,
1666
+ class: "flex flex-col lg:flex-row justify-center text-center p-4"
1667
+ }, Zl = {
1668
+ key: 0,
1669
+ class: "flex-1 hidden md:block"
1670
+ }, xo = /* @__PURE__ */ K({
1671
+ __name: "OneAuthLayout",
1672
+ props: {
1673
+ /** Tailwind width class for the form panel (accounts uses lg:w-[450px]). */
1674
+ panelWidthClass: {
1675
+ type: String,
1676
+ default: "lg:w-[450px]"
1677
+ }
1678
+ },
1679
+ setup(u) {
1680
+ return (f, c) => (e(), s("div", Il, [
1681
+ t("div", {
1682
+ class: y(["w-full bg-white h-full flex flex-col justify-between", u.panelWidthClass])
1683
+ }, [
1684
+ t("div", Rl, [
1685
+ t("div", ql, [
1686
+ P(f.$slots, "default")
1687
+ ])
1688
+ ]),
1689
+ f.$slots.footer ? (e(), s("div", Ul, [
1690
+ P(f.$slots, "footer")
1691
+ ])) : o("", !0)
1692
+ ], 2),
1693
+ f.$slots.brand ? (e(), s("div", Zl, [
1694
+ P(f.$slots, "brand")
1695
+ ])) : o("", !0)
1696
+ ]));
1697
+ }
1698
+ }), Dl = { class: "truncate max-w-[220px]" }, Jl = { class: "truncate max-w-[220px]" }, ko = /* @__PURE__ */ K({
1699
+ __name: "OneBreadcrumbs",
1700
+ props: {
1701
+ items: {
1702
+ type: Array,
1703
+ required: !0
1704
+ },
1705
+ pill: {
1706
+ type: Boolean,
1707
+ default: !0
1708
+ }
1709
+ },
1710
+ setup(u) {
1711
+ return (f, c) => {
1712
+ const p = Ce("RouterLink");
1713
+ return e(), s("nav", {
1714
+ class: y(["flex items-center gap-1 min-w-0", u.pill ? "bg-light-body rounded-10 px-3 py-1" : ""]),
1715
+ "aria-label": "Breadcrumb"
1716
+ }, [
1717
+ (e(!0), s(W, null, U(u.items, (g, m) => (e(), s(W, { key: m }, [
1718
+ m > 0 ? (e(), h(O(nt), {
1719
+ key: 0,
1720
+ class: "w-3 h-3 text-secondary-content shrink-0"
1721
+ })) : o("", !0),
1722
+ g.to != null && m < u.items.length - 1 ? (e(), h(p, {
1723
+ key: 1,
1724
+ to: g.to,
1725
+ class: "flex items-center gap-2 min-w-0 text-sm text-primary-content hover:text-primary-base transition-colors",
1726
+ "data-test": "breadcrumb-link"
1727
+ }, {
1728
+ default: I(() => [
1729
+ g.avatarSrc ? (e(), h(ue, {
1730
+ key: 0,
1731
+ src: g.avatarSrc,
1732
+ size: 20,
1733
+ rounded: !1,
1734
+ class: "shrink-0"
1735
+ }, null, 8, ["src"])) : o("", !0),
1736
+ t("span", Dl, d(g.label), 1)
1737
+ ]),
1738
+ _: 2
1739
+ }, 1032, ["to"])) : (e(), s("span", {
1740
+ key: 2,
1741
+ class: y(["flex items-center gap-2 min-w-0 text-sm", m === u.items.length - 1 ? "text-secondary-content" : ""])
1742
+ }, [
1743
+ g.avatarSrc ? (e(), h(ue, {
1744
+ key: 0,
1745
+ src: g.avatarSrc,
1746
+ size: 20,
1747
+ rounded: !1,
1748
+ class: "shrink-0"
1749
+ }, null, 8, ["src"])) : o("", !0),
1750
+ t("span", Jl, d(g.label), 1)
1751
+ ], 2))
1752
+ ], 64))), 128))
1753
+ ], 2);
1754
+ };
1755
+ }
1756
+ });
1469
1757
  export {
1470
- Rl as OneIslandLayout,
1471
- Nl as OneMainLayout,
1472
- c1 as OneSidebar
1758
+ _o as LogoOneb,
1759
+ xo as OneAuthLayout,
1760
+ Ol as OneBackButton,
1761
+ ko as OneBreadcrumbs,
1762
+ go as OneEmptyLayout,
1763
+ bo as OneGridLayout,
1764
+ wo as OneIslandLayout,
1765
+ yo as OneMainLayout,
1766
+ ct as OneSidebar
1473
1767
  };