@oneb/ui-vue 0.3.31 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) 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/InformationCircleIcon-2f6097a0.js +20 -0
  8. package/dist/InformationCircleIcon-d6b67d5d.cjs +1 -0
  9. package/dist/MagnifyingGlassIcon-adf871ba.cjs +1 -0
  10. package/dist/MagnifyingGlassIcon-ca213d3d.js +20 -0
  11. package/dist/{NoSymbolIcon-e58a9aee.js → NoSymbolIcon-b3470a26.js} +8 -25
  12. package/dist/{NoSymbolIcon-5d326416.cjs → NoSymbolIcon-e84375bb.cjs} +1 -1
  13. package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-2c508e8a.js +79 -0
  14. package/dist/OneDropdownAuto.vue_vue_type_script_setup_true_lang-bf923b04.cjs +1 -0
  15. package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-b89117e7.js +521 -0
  16. package/dist/OneFormInput.vue_vue_type_script_setup_true_lang-f6f7cd96.cjs +1 -0
  17. package/dist/OneHelpMenu-6ec63535.cjs +1 -0
  18. package/dist/{OneHelpMenu-73817f8a.js → OneHelpMenu-d5182c78.js} +118 -213
  19. package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-05266fc3.cjs +1 -0
  20. package/dist/OneMarkdown.vue_vue_type_script_setup_true_lang-bb2219c7.js +18 -0
  21. package/dist/OneModal-02a9a173.js +189 -0
  22. package/dist/OneModal-0e92c039.cjs +1 -0
  23. package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-c492c128.js +25 -0
  24. package/dist/OneTooltip.vue_vue_type_script_setup_true_lang-e83a81ea.cjs +1 -0
  25. package/dist/SpinnerIcon-01be39fe.cjs +1 -0
  26. package/dist/{SpinnerIcon-74648c98.js → SpinnerIcon-516264ba.js} +5 -6
  27. package/dist/button/index.cjs +1 -1
  28. package/dist/button/index.d.ts +1 -1
  29. package/dist/button/index.js +3 -4
  30. package/dist/checkbox/checkbox.d.ts +5 -0
  31. package/dist/checkbox/index.cjs +1 -1
  32. package/dist/checkbox/index.js +40 -34
  33. package/dist/chips/OneChips.vue.d.ts +2 -0
  34. package/dist/chips/chips.d.ts +25 -0
  35. package/dist/chips/index.cjs +1 -0
  36. package/dist/chips/index.d.ts +3 -0
  37. package/dist/chips/index.js +62 -0
  38. package/dist/clipboard-494e1513.cjs +1 -0
  39. package/dist/clipboard-733b79a1.js +22 -0
  40. package/dist/common/OneDetailsList.vue.d.ts +2 -0
  41. package/dist/common/OneDetailsRow.vue.d.ts +2 -0
  42. package/dist/common/index.cjs +1 -1
  43. package/dist/common/index.d.ts +2 -0
  44. package/dist/common/index.js +68 -16
  45. package/dist/composables/index.cjs +1 -0
  46. package/dist/composables/index.d.ts +18 -0
  47. package/dist/composables/index.js +91 -0
  48. package/dist/composables/useAsyncMethod.d.ts +17 -0
  49. package/dist/composables/useAsyncSelect.d.ts +26 -0
  50. package/dist/composables/useConfirm.d.ts +27 -0
  51. package/dist/composables/useCursorList.d.ts +42 -0
  52. package/dist/composables/useDebouncedRef.d.ts +6 -0
  53. package/dist/composables/useFileUpload.d.ts +21 -0
  54. package/dist/composables/useFormSubmit.d.ts +23 -0
  55. package/dist/composables/useIsMobile.d.ts +8 -0
  56. package/dist/confirm/OneConfirmHost.vue.d.ts +2 -0
  57. package/dist/confirm/confirm.d.ts +10 -0
  58. package/dist/confirm/index.cjs +1 -0
  59. package/dist/confirm/index.d.ts +5 -0
  60. package/dist/confirm/index.js +59 -0
  61. package/dist/cursorList/OneCursorList.vue.d.ts +2 -0
  62. package/dist/cursorList/index.cjs +1 -0
  63. package/dist/cursorList/index.d.ts +3 -0
  64. package/dist/cursorList/index.js +78 -0
  65. package/dist/dataTable/index.cjs +1 -1
  66. package/dist/dataTable/index.js +256 -301
  67. package/dist/dateTime/OneDateTime.vue.d.ts +2 -0
  68. package/dist/dateTime/dateTime.d.ts +43 -0
  69. package/dist/dateTime/index.cjs +1 -0
  70. package/dist/dateTime/index.d.ts +3 -0
  71. package/dist/dateTime/index.js +66 -0
  72. package/dist/dropdown/index.cjs +1 -1
  73. package/dist/dropdown/index.js +302 -376
  74. package/dist/dropdown-5cb64ab7.cjs +1 -0
  75. package/dist/dropdown-c81fb945.js +101 -0
  76. package/dist/entityPicker/index.cjs +1 -1
  77. package/dist/entityPicker/index.js +57 -57
  78. package/dist/entityPicker/useEntityModal.d.ts +7 -3
  79. package/dist/errorsPage/OneCrashScreen.vue.d.ts +2 -0
  80. package/dist/errorsPage/OneErrorHero.vue.d.ts +2 -0
  81. package/dist/errorsPage/OneNotFoundPage.vue.d.ts +2 -0
  82. package/dist/errorsPage/OneServerErrorPage.vue.d.ts +2 -0
  83. package/dist/errorsPage/OneSnakeGame.vue.d.ts +2 -0
  84. package/dist/errorsPage/createAppErrorHandler.d.ts +24 -0
  85. package/dist/errorsPage/errorsType.d.ts +5 -0
  86. package/dist/errorsPage/index.cjs +1 -1
  87. package/dist/errorsPage/index.d.ts +8 -0
  88. package/dist/errorsPage/index.js +557 -28
  89. package/dist/errorsPage/useCrashState.d.ts +10 -0
  90. package/dist/fileUpload/OneDropzone.vue.d.ts +2 -0
  91. package/dist/fileUpload/OneFileUpload.vue.d.ts +2 -0
  92. package/dist/fileUpload/fileUpload.d.ts +17 -0
  93. package/dist/fileUpload/index.cjs +1 -0
  94. package/dist/fileUpload/index.d.ts +6 -0
  95. package/dist/fileUpload/index.js +228 -0
  96. package/dist/filterBuilder/OneFilterBuilder.vue.d.ts +2 -0
  97. package/dist/filterBuilder/OneFilterGroup.vue.d.ts +2 -0
  98. package/dist/filterBuilder/OneFilterRule.vue.d.ts +2 -0
  99. package/dist/filterBuilder/filterBuilder.d.ts +17 -0
  100. package/dist/filterBuilder/index.cjs +1 -0
  101. package/dist/filterBuilder/index.d.ts +5 -0
  102. package/dist/filterBuilder/index.js +257 -0
  103. package/dist/form/form.d.ts +1 -1
  104. package/dist/form/index.cjs +1 -1
  105. package/dist/form/index.js +66 -574
  106. package/dist/i18n/index.cjs +1 -1
  107. package/dist/i18n/index.js +99 -15
  108. package/dist/index.cjs +1 -1
  109. package/dist/index.d.ts +18 -0
  110. package/dist/index.js +243 -104
  111. package/dist/indicators/OneStatCard.vue.d.ts +2 -0
  112. package/dist/indicators/index.cjs +1 -1
  113. package/dist/indicators/index.d.ts +1 -0
  114. package/dist/indicators/index.js +66 -29
  115. package/dist/infobox/index.cjs +1 -1
  116. package/dist/infobox/index.js +4 -3
  117. package/dist/label/index.cjs +1 -1
  118. package/dist/label/index.js +5 -5
  119. package/dist/layout/OneAuthLayout.vue.d.ts +2 -0
  120. package/dist/layout/OneBackButton.vue.d.ts +2 -0
  121. package/dist/layout/OneBreadcrumbs.vue.d.ts +2 -0
  122. package/dist/layout/OneEmptyLayout.vue.d.ts +6 -0
  123. package/dist/layout/OneGridLayout.vue.d.ts +2 -0
  124. package/dist/layout/index.cjs +1 -1
  125. package/dist/layout/index.d.ts +6 -1
  126. package/dist/layout/index.js +1057 -765
  127. package/dist/layout/layout.d.ts +11 -0
  128. package/dist/modal/OneModalHost.vue.d.ts +2 -0
  129. package/dist/modal/index.cjs +1 -1
  130. package/dist/modal/index.d.ts +3 -0
  131. package/dist/modal/index.js +84 -27
  132. package/dist/modal/modal.d.ts +9 -0
  133. package/dist/modal/useModalStack.d.ts +20 -0
  134. package/dist/notifications/OneNotificationItem.vue.d.ts +2 -0
  135. package/dist/notifications/OneNotificationsBell.vue.d.ts +2 -0
  136. package/dist/notifications/OneNotificationsPanel.vue.d.ts +2 -0
  137. package/dist/notifications/index.cjs +1 -0
  138. package/dist/notifications/index.d.ts +7 -0
  139. package/dist/notifications/index.js +477 -0
  140. package/dist/notifications/notifications.d.ts +53 -0
  141. package/dist/notifications/useNotifyfeed.d.ts +32 -0
  142. package/dist/periodPicker/index.cjs +1 -1
  143. package/dist/periodPicker/index.js +126 -139
  144. package/dist/popover/OnePopover.vue.d.ts +2 -0
  145. package/dist/popover/index.cjs +1 -0
  146. package/dist/popover/index.d.ts +3 -0
  147. package/dist/popover/index.js +102 -0
  148. package/dist/popover/popover.d.ts +31 -0
  149. package/dist/progress/OneProgress.vue.d.ts +2 -0
  150. package/dist/progress/index.cjs +1 -0
  151. package/dist/progress/index.d.ts +3 -0
  152. package/dist/progress/index.js +74 -0
  153. package/dist/progress/progress.d.ts +32 -0
  154. package/dist/searchInput/OneSearchInput.vue.d.ts +2 -0
  155. package/dist/searchInput/index.cjs +1 -0
  156. package/dist/searchInput/index.d.ts +3 -0
  157. package/dist/searchInput/index.js +103 -0
  158. package/dist/searchInput/searchInput.d.ts +39 -0
  159. package/dist/settings/OneSettingsLayout.vue.d.ts +2 -0
  160. package/dist/settings/OneSettingsRow.vue.d.ts +2 -0
  161. package/dist/settings/OneSettingsSection.vue.d.ts +2 -0
  162. package/dist/settings/index.cjs +1 -0
  163. package/dist/settings/index.d.ts +4 -0
  164. package/dist/settings/index.js +116 -0
  165. package/dist/spinner/OneSpinner.vue.d.ts +2 -0
  166. package/dist/spinner/index.cjs +1 -0
  167. package/dist/spinner/index.d.ts +3 -0
  168. package/dist/spinner/index.js +30 -0
  169. package/dist/spinner/spinner.d.ts +10 -0
  170. package/dist/stageBadge/OneStageBadge.vue.d.ts +2 -0
  171. package/dist/stageBadge/index.cjs +1 -0
  172. package/dist/stageBadge/index.d.ts +3 -0
  173. package/dist/stageBadge/index.js +126 -0
  174. package/dist/stageBadge/stageBadge.d.ts +64 -0
  175. package/dist/stepper/OneStepper.vue.d.ts +2 -0
  176. package/dist/stepper/index.cjs +1 -0
  177. package/dist/stepper/index.d.ts +3 -0
  178. package/dist/stepper/index.js +53 -0
  179. package/dist/stepper/stepper.d.ts +24 -0
  180. package/dist/style.css +1 -1
  181. package/dist/switch/index.cjs +1 -1
  182. package/dist/switch/index.js +3 -4
  183. package/dist/tabs/OneTab.vue.d.ts +2 -0
  184. package/dist/tabs/OneTabs.vue.d.ts +2 -0
  185. package/dist/tabs/index.cjs +1 -0
  186. package/dist/tabs/index.d.ts +4 -0
  187. package/dist/tabs/index.js +64 -0
  188. package/dist/tabs/tabs.d.ts +7 -0
  189. package/dist/toast/OneMascotToast.vue.d.ts +2 -0
  190. package/dist/toast/RabbitIcon.vue.d.ts +2 -0
  191. package/dist/toast/index.cjs +1 -1
  192. package/dist/toast/index.d.ts +4 -0
  193. package/dist/toast/index.js +139 -73
  194. package/dist/toast/useMascotToast.d.ts +12 -0
  195. package/dist/tooltip/OneTooltip.vue.d.ts +2 -0
  196. package/dist/tooltip/index.cjs +2 -2
  197. package/dist/tooltip/index.d.ts +1 -0
  198. package/dist/tooltip/index.js +33 -30
  199. package/dist/useConfirm-6344b49d.cjs +1 -0
  200. package/dist/useConfirm-74e99a5c.js +23 -0
  201. package/dist/useCursorList-5c1b57aa.js +62 -0
  202. package/dist/useCursorList-e1cb41e7.cjs +1 -0
  203. package/dist/useElementWidth-b36a7ce9.js +40 -0
  204. package/dist/useElementWidth-b3e53f48.cjs +1 -0
  205. package/dist/useFileUpload-228dbc07.js +24 -0
  206. package/dist/useFileUpload-f47622bb.cjs +1 -0
  207. package/dist/useIsMobile-7b1f08cf.cjs +1 -0
  208. package/dist/useIsMobile-98fc0cf9.js +7 -0
  209. package/dist/useMediaQuery-1d87df02.cjs +1 -0
  210. package/dist/useMediaQuery-77a19b18.js +37 -0
  211. package/dist/useModal-6a5d870b.js +30 -0
  212. package/dist/useModal-aa6f4a57.cjs +1 -0
  213. package/dist/userList/OneUserInviteModal.vue.d.ts +2 -0
  214. package/dist/userList/OneUserList.vue.d.ts +2 -0
  215. package/dist/userList/OneUserListItem.vue.d.ts +2 -0
  216. package/dist/userList/index.cjs +1 -0
  217. package/dist/userList/index.d.ts +4 -0
  218. package/dist/userList/index.js +559 -0
  219. package/dist/utils/clipboard.d.ts +6 -0
  220. package/dist/utils/format.d.ts +17 -0
  221. package/dist/utils/index.cjs +1 -0
  222. package/dist/utils/index.d.ts +4 -0
  223. package/dist/utils/index.js +125 -0
  224. package/dist/utils/string.d.ts +25 -0
  225. package/dist/utils/versionChecker.d.ts +26 -0
  226. package/package.json +221 -23
  227. package/dist/ChevronRightIcon-7a2f0c20.cjs +0 -1
  228. package/dist/OneHelpMenu-c6e88d8f.cjs +0 -1
  229. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
  230. package/dist/OneMarkdown.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
  231. package/dist/SpinnerIcon-ccb6f3fc.cjs +0 -1
  232. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-0ea8fbf8.cjs +0 -1
  233. package/dist/SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js +0 -1
  234. package/dist/useModal-0c73777f.cjs +0 -1
  235. package/dist/useModal-7fe9444b.js +0 -194
@@ -1,21 +1,24 @@
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-d5182c78.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 { useRouter as gt } from "vue-router";
15
+ import { r as xt } from "../ChevronLeftIcon-bb9adb5b.js";
16
+ import "../dropdown-c81fb945.js";
13
17
  import "@floating-ui/dom";
14
18
  import "@floating-ui/vue";
15
- import "../SpinnerIcon.vue_vue_type_style_index_0_lang-4ed993c7.js";
16
19
  import "vue-markdown-render";
17
- function je(x, k) {
18
- return e(), l("svg", {
20
+ function je(u, f) {
21
+ return e(), s("svg", {
19
22
  xmlns: "http://www.w3.org/2000/svg",
20
23
  fill: "none",
21
24
  viewBox: "0 0 24 24",
@@ -23,14 +26,14 @@ function je(x, k) {
23
26
  stroke: "currentColor",
24
27
  "aria-hidden": "true"
25
28
  }, [
26
- s("path", {
29
+ t("path", {
27
30
  "stroke-linecap": "round",
28
31
  "stroke-linejoin": "round",
29
32
  d: "M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"
30
33
  })
31
34
  ]);
32
35
  }
33
- const d1 = {
36
+ const ut = {
34
37
  items: {
35
38
  required: !0,
36
39
  type: Array
@@ -64,7 +67,7 @@ const d1 = {
64
67
  t: {
65
68
  type: Function
66
69
  }
67
- }, g1 = {
70
+ }, kt = {
68
71
  route: {
69
72
  required: !1,
70
73
  type: [Object, String]
@@ -131,8 +134,8 @@ const d1 = {
131
134
  required: !1
132
135
  // Не обов'язковий, бо може бути відсутнім
133
136
  }
134
- }, p1 = {
135
- sidebarItems: d1.items,
137
+ }, pt = {
138
+ sidebarItems: ut.items,
136
139
  logoSrc: {
137
140
  type: String
138
141
  },
@@ -155,6 +158,11 @@ const d1 = {
155
158
  workspace: {
156
159
  type: Object
157
160
  },
161
+ showHeader: {
162
+ type: Boolean,
163
+ default: void 0
164
+ },
165
+ /** @deprecated typo alias, use showHeader */
158
166
  showHeadre: {
159
167
  type: Boolean,
160
168
  default: !0
@@ -185,114 +193,118 @@ const d1 = {
185
193
  t: {
186
194
  type: Function
187
195
  }
188
- }, x1 = {
196
+ }, Ct = {
197
+ count: {
198
+ type: Number
199
+ }
200
+ }, $t = {
189
201
  key: 0,
190
202
  class: "border-t border-secondary-stroke my-2 mx-auto w-6"
191
- }, k1 = {
203
+ }, _t = {
192
204
  key: 1,
193
205
  style: { "font-size": "10px" },
194
206
  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 = {
207
+ }, Lt = { class: "flex flex-nowrap items-center h-[24px]" }, St = {
196
208
  key: 0,
197
209
  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 = {
210
+ }, 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
211
  key: 1,
200
212
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
201
- }, V1 = { class: "py-[8px] pl-0 pr-0" }, H1 = {
213
+ }, Ht = { class: "py-[8px] pl-0 pr-0" }, Wt = {
202
214
  key: 2,
203
215
  class: "ml-auto"
204
- }, F1 = { class: "flex flex-nowrap items-center h-[24px]" }, E1 = {
216
+ }, Pt = { class: "flex flex-nowrap items-center h-[24px]" }, At = {
205
217
  key: 1,
206
218
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
207
- }, W1 = { class: "py-[8px] pl-0 pr-0" }, A1 = {
219
+ }, Et = { class: "py-[8px] pl-0 pr-0" }, Nt = {
208
220
  key: 2,
209
221
  class: "p-3"
210
- }, P1 = { class: "flex flex-nowrap items-center h-[24px]" }, G1 = {
222
+ }, Gt = { class: "flex flex-nowrap items-center h-[24px]" }, It = {
211
223
  key: 1,
212
224
  class: "whitespace-nowrap overflow-hidden text-ellipsis text-left flex-shrink w-full"
213
- }, I1 = { class: "py-[8px] pl-0 pr-0" }, N1 = {
225
+ }, Rt = { class: "py-[8px] pl-0 pr-0" }, qt = {
214
226
  key: 2,
215
227
  class: "p-3"
216
- }, R1 = {
228
+ }, Ut = {
217
229
  key: 3,
218
230
  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 = {
231
+ }, Zt = ["href"], Dt = { class: "flex items-center justify-between min-w-full h-[24px]" }, Jt = { class: "text-xs" }, Kt = {
220
232
  key: 0,
221
233
  class: "pr-1"
222
- }, J1 = { class: "text-xs" }, K1 = {
234
+ }, Qt = { class: "text-xs" }, Xt = {
223
235
  key: 0,
224
236
  class: "pr-3"
225
- }, Q1 = /* @__PURE__ */ ke({
237
+ }, Yt = /* @__PURE__ */ K({
226
238
  __name: "OneSidebarLink",
227
- props: g1,
239
+ props: kt,
228
240
  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(() => [
241
+ setup(u, { emit: f }) {
242
+ 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
243
  "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) => {
244
+ c.active ? "bg-primary-10 !text-primary-base" : ""
245
+ ]), M = V(c.open), D = (l, j = c) => {
234
246
  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) => {
247
+ 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;
248
+ }, Z = () => {
249
+ M.value = !M.value;
250
+ }, E = (l, j) => {
239
251
  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");
252
+ 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
253
  };
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, {
254
+ return (l, j) => {
255
+ var Q, a;
256
+ const i = Ce("RouterLink"), b = ht("onetooltip");
257
+ return e(), s(W, null, [
258
+ l.labelTop && l.slim ? (e(), s("div", $t)) : l.labelTop ? (e(), s("p", _t, d(l.labelTop), 1)) : o("", !0),
259
+ l.slim && l.island && C.value ? (e(), h(st, {
248
260
  key: 2,
249
261
  trigger: "hover",
250
262
  "append-body": !0,
251
263
  stick: "right-start",
252
264
  offset: 12
253
265
  }, {
254
- button: Z(() => [
255
- (e(), c(_(H.value), m1(P.value, {
256
- class: M.value,
266
+ button: I(() => [
267
+ (e(), h(_(L.value), mt(A.value, {
268
+ class: z.value,
257
269
  onClick: E
258
270
  }), {
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)
271
+ default: I(() => [
272
+ t("div", Lt, [
273
+ l.icon ? (e(), s("div", St, [
274
+ (e(), h(_(l.icon), { class: "mx-auto w-5 h-5" }))
275
+ ])) : o("", !0)
264
276
  ])
265
277
  ]),
266
278
  _: 1
267
279
  }, 16, ["class"]))
268
280
  ]),
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", {
281
+ menu: I(() => [
282
+ t("div", Bt, [
283
+ t("p", Ot, d(l.label), 1),
284
+ T.value ? (e(!0), s(W, { key: 0 }, U(c.subItems, (r) => (e(), s("a", {
273
285
  key: r.label,
274
286
  href: r.href,
275
287
  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
288
  }, [
277
- r.icon ? (e(), c(_(r.icon), {
289
+ r.icon ? (e(), h(_(r.icon), {
278
290
  key: 0,
279
291
  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, {
292
+ })) : o("", !0),
293
+ t("span", jt, d(r.label), 1)
294
+ ], 8, Mt))), 128)) : (e(!0), s(W, { key: 1 }, U(c.subItems, (r) => {
295
+ var x, H;
296
+ return e(), h(i, {
285
297
  key: r.label,
286
- to: F(r),
298
+ to: g(r),
287
299
  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"
300
+ "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
301
  }, {
290
- default: Z(() => [
291
- r.icon ? (e(), c(_(r.icon), {
302
+ default: I(() => [
303
+ r.icon ? (e(), h(_(r.icon), {
292
304
  key: 0,
293
305
  class: "w-[15px] h-[15px] shrink-0"
294
- })) : a("", !0),
295
- s("span", j1, u(r.label), 1)
306
+ })) : o("", !0),
307
+ t("span", Tt, d(r.label), 1)
296
308
  ]),
297
309
  _: 2
298
310
  }, 1032, ["to", "active-class"]);
@@ -300,159 +312,159 @@ const d1 = {
300
312
  ])
301
313
  ]),
302
314
  _: 1
303
- })) : (e(), l(N, { key: 3 }, [
304
- t.href ? ie((e(), l("a", {
315
+ })) : (e(), s(W, { key: 3 }, [
316
+ l.href ? pe((e(), s("a", {
305
317
  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" : ""
318
+ href: l.href,
319
+ 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", [
320
+ l.island ? "rounded-10" : "rounded-xl",
321
+ l.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
322
+ l.active ? "bg-primary-10 !text-primary-base" : ""
311
323
  ]]),
312
324
  onClick: E
313
325
  }, [
314
- s("div", z1, [
315
- t.icon ? (e(), l("div", {
326
+ t("div", Ft, [
327
+ l.icon ? (e(), s("div", {
316
328
  key: 0,
317
- class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
329
+ class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
318
330
  }, [
319
- (e(), c(_(t.icon), {
320
- class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
331
+ (e(), h(_(l.icon), {
332
+ class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
321
333
  }, null, 8, ["class"]))
322
- ], 2)) : a("", !0),
323
- t.slim ? a("", !0) : (e(), l("div", O1, [
324
- s("span", V1, u(t.label), 1)
334
+ ], 2)) : o("", !0),
335
+ l.slim ? o("", !0) : (e(), s("div", Vt, [
336
+ t("span", Ht, d(l.label), 1)
325
337
  ])),
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)
338
+ C.value && !l.slim ? (e(), s("div", Wt, [
339
+ (e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
340
+ ])) : o("", !0)
329
341
  ])
330
- ], 10, T1)), [
331
- [f, t.slim && !w.value ? t.label : "", "right"]
332
- ]) : a("", !0),
333
- !t.href && m.value ? ie((e(), c(i, {
342
+ ], 10, zt)), [
343
+ [b, l.slim && !C.value ? l.label : "", "right"]
344
+ ]) : o("", !0),
345
+ !l.href && m.value ? pe((e(), h(i, {
334
346
  key: 1,
335
347
  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)
348
+ exact: l.exact,
349
+ 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", {
350
+ "rounded-10": l.island,
351
+ "rounded-xl": !l.island,
352
+ "w-[44px] h-[44px] justify-center": l.slim,
353
+ "h-[44px] w-full": !l.slim,
354
+ "bg-primary-10 !text-primary-base": l.active || D(l.$route)
343
355
  }]),
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"])
356
+ "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",
357
+ onClick: he(E, ["prevent"])
346
358
  }, {
347
- default: Z(() => [
348
- s("div", F1, [
349
- t.icon ? (e(), l("div", {
359
+ default: I(() => [
360
+ t("div", Pt, [
361
+ l.icon ? (e(), s("div", {
350
362
  key: 0,
351
- class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
363
+ class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
352
364
  }, [
353
- (e(), c(_(t.icon), {
354
- class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
365
+ (e(), h(_(l.icon), {
366
+ class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
355
367
  }, null, 8, ["class"]))
356
- ], 2)) : a("", !0),
357
- t.slim ? a("", !0) : (e(), l("div", E1, [
358
- s("span", W1, u(t.label), 1)
368
+ ], 2)) : o("", !0),
369
+ l.slim ? o("", !0) : (e(), s("div", At, [
370
+ t("span", Et, d(l.label), 1)
359
371
  ])),
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)
372
+ C.value && !l.slim ? (e(), s("div", Nt, [
373
+ (e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
374
+ ])) : o("", !0)
363
375
  ])
364
376
  ]),
365
377
  _: 1
366
378
  }, 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", {
379
+ [b, l.slim && !C.value ? l.label : "", "right"]
380
+ ]) : o("", !0),
381
+ !l.href && !m.value ? pe((e(), s("span", {
370
382
  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" : ""
383
+ onClick: he(E, ["prevent"]),
384
+ 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]", [
385
+ l.island ? "rounded-10" : "rounded-xl",
386
+ l.slim ? "w-[44px] h-[44px] justify-center" : "h-[44px] w-full",
387
+ l.active ? "bg-primary-10 !text-primary-base" : ""
376
388
  ]])
377
389
  }, [
378
- s("div", P1, [
379
- t.icon ? (e(), l("div", {
390
+ t("div", Gt, [
391
+ l.icon ? (e(), s("div", {
380
392
  key: 0,
381
- class: C(["flex-shrink-0", t.slim ? "w-auto" : "w-[44px]"])
393
+ class: y(["flex-shrink-0", l.slim ? "w-auto" : "w-[44px]"])
382
394
  }, [
383
- (e(), c(_(t.icon), {
384
- class: C(["mx-auto", t.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
395
+ (e(), h(_(l.icon), {
396
+ class: y(["mx-auto", l.slim ? "w-5 h-5" : "w-[24px] h-[24px]"])
385
397
  }, null, 8, ["class"]))
386
- ], 2)) : a("", !0),
387
- t.slim ? a("", !0) : (e(), l("div", G1, [
388
- s("span", I1, u(t.label), 1)
398
+ ], 2)) : o("", !0),
399
+ l.slim ? o("", !0) : (e(), s("div", It, [
400
+ t("span", Rt, d(l.label), 1)
389
401
  ])),
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)
402
+ C.value && !l.slim ? (e(), s("div", qt, [
403
+ (e(), h(_(M.value ? O(Be) : O(be)), { class: "w-[16px] h-[16px]" }))
404
+ ])) : o("", !0)
393
405
  ])
394
406
  ], 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", {
407
+ [b, l.slim && !C.value ? l.label : "", "right"]
408
+ ]) : o("", !0),
409
+ M.value && C.value && !l.slim ? (e(), s("div", Ut, [
410
+ (e(!0), s(W, null, U(c.subItems, (r) => {
411
+ var x, H;
412
+ return e(), s("div", {
401
413
  key: r.label
402
414
  }, [
403
- r.href ? (e(), l("a", {
415
+ r.href ? (e(), s("a", {
404
416
  key: 0,
405
417
  href: r.href,
406
418
  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
419
  }, [
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)
420
+ t("div", Dt, [
421
+ t("span", Jt, d(r.label), 1),
422
+ r.icon ? (e(), s("div", Kt, [
423
+ (e(), h(_(r.icon), { class: "w-[15px] h-[15px] mx-auto" }))
424
+ ])) : o("", !0)
413
425
  ])
414
- ], 8, q1)) : F(r) ? (e(), c(i, {
426
+ ], 8, Zt)) : g(r) ? (e(), h(i, {
415
427
  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)
428
+ to: g(r),
429
+ onClick: j[0] || (j[0] = he((J) => E(J, !0), ["prevent"])),
430
+ 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", {
431
+ "bg-primary-10 !text-primary-base": D(l.$route, r)
420
432
  }]),
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"
433
+ "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
434
  }, {
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)
435
+ default: I(() => [
436
+ t("span", Qt, d(r.label), 1),
437
+ r.icon ? (e(), s("div", Xt, [
438
+ (e(), h(_(r.icon), { class: "w-[20px] h-[20px] mx-auto" }))
439
+ ])) : o("", !0)
428
440
  ]),
429
441
  _: 2
430
- }, 1032, ["to", "active-class", "class"])) : a("", !0)
442
+ }, 1032, ["to", "active-class", "class"])) : o("", !0)
431
443
  ]);
432
444
  }), 128))
433
- ])) : a("", !0)
445
+ ])) : o("", !0)
434
446
  ], 64))
435
447
  ], 64);
436
448
  };
437
449
  }
438
- }), X1 = {}, Y1 = {
450
+ }), es = {}, ts = {
439
451
  xmlns: "http://www.w3.org/2000/svg",
440
452
  width: "24",
441
453
  height: "24",
442
454
  viewBox: "0 0 24 24",
443
455
  fill: "none"
444
456
  };
445
- function es(x, k) {
446
- return e(), l("svg", Y1, [...k[0] || (k[0] = [
447
- s("path", {
457
+ function ss(u, f) {
458
+ return e(), s("svg", ts, [...f[0] || (f[0] = [
459
+ t("path", {
448
460
  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
461
  fill: "currentColor"
450
462
  }, null, -1),
451
- s("path", {
463
+ t("path", {
452
464
  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
465
  fill: "currentColor"
454
466
  }, null, -1),
455
- s("path", {
467
+ t("path", {
456
468
  "fill-rule": "evenodd",
457
469
  "clip-rule": "evenodd",
458
470
  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 +472,9 @@ function es(x, k) {
460
472
  }, null, -1)
461
473
  ])]);
462
474
  }
463
- const xe = /* @__PURE__ */ _e(X1, [["render", es]]);
464
- function ss(x, k) {
465
- return e(), l("svg", {
475
+ const ke = /* @__PURE__ */ $e(es, [["render", ss]]);
476
+ function ls(u, f) {
477
+ return e(), s("svg", {
466
478
  xmlns: "http://www.w3.org/2000/svg",
467
479
  fill: "none",
468
480
  viewBox: "0 0 24 24",
@@ -470,100 +482,66 @@ function ss(x, k) {
470
482
  stroke: "currentColor",
471
483
  "aria-hidden": "true"
472
484
  }, [
473
- s("path", {
485
+ t("path", {
474
486
  "stroke-linecap": "round",
475
487
  "stroke-linejoin": "round",
476
488
  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
489
  }),
478
- s("path", {
490
+ t("path", {
479
491
  "stroke-linecap": "round",
480
492
  "stroke-linejoin": "round",
481
493
  d: "M15.48 9.48l-2.4 2.4 2.4 2.4"
482
494
  })
483
495
  ]);
484
496
  }
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 = {
497
+ const os = {
520
498
  key: 0,
521
499
  class: "w-8 h-8 sm:w-10 sm:h-10 flex items-center flex-shrink-0"
522
- }, ns = ["src"], as = {
500
+ }, as = ["src"], ns = {
523
501
  key: 1,
524
502
  class: "flex items-center gap-2 min-w-0 pl-1"
525
503
  }, rs = {
526
504
  key: 0,
527
505
  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 = {
506
+ }, is = ["src"], ds = { class: "min-w-0" }, us = { class: "text-base font-bold leading-5 text-black truncate" }, ps = {
529
507
  key: 0,
530
508
  class: "flex items-center gap-1 text-xs text-secondary-content"
531
509
  }, cs = { class: "truncate" }, hs = {
532
510
  key: 1,
533
511
  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 = {
512
+ }, ms = ["href"], fs = { class: "rounded-lg bg-[#FFF8E4] py-2 flex items-center space-x-1 px-2" }, vs = { class: "" }, ys = {
535
513
  class: "",
536
514
  style: { "font-size": "10px" }
537
- }, ys = {
515
+ }, ws = {
538
516
  key: 1,
539
517
  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 = {
518
+ }, 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
519
  key: 4,
542
520
  class: "custom-select ml-1 w-full relative pt-2 pb-2"
543
- }, Ts = { class: "pl-1" }, zs = {
521
+ }, js = { class: "pl-1" }, Ts = {
544
522
  key: 0,
545
523
  class: "dropdown w-[200px] z-50 text-[#525B66]"
546
- }, Os = ["onClick"], Vs = {
524
+ }, zs = ["onClick"], Fs = {
547
525
  key: 1,
548
526
  class: "mt-0.5 h-0 border-t border-secondary-stroke mb-1"
549
- }, Hs = {
527
+ }, Vs = {
550
528
  key: 0,
551
529
  class: "tooltip-text"
552
- }, Fs = { key: 0 }, Es = {
530
+ }, Hs = { key: 0 }, Ws = {
553
531
  key: 1,
554
532
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-600 text-white rounded-full animate-ping z-0"
555
- }, Ws = {
533
+ }, Ps = {
556
534
  key: 2,
557
535
  class: "absolute top-0 right-1.5 w-2 h-2 bg-blue-500 text-white rounded-full z-10"
558
- }, As = ["href"], Ps = {
536
+ }, As = ["href"], Es = {
559
537
  key: 0,
560
538
  class: "tooltip-text"
561
- }, Gs = { key: 0 }, Is = {
539
+ }, Ns = { key: 0 }, Gs = {
562
540
  key: 2,
563
541
  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({
542
+ }, Is = { key: 0 }, Rs = /* @__PURE__ */ K({
565
543
  __name: "OneSidebar",
566
- props: d1,
544
+ props: ut,
567
545
  emits: [
568
546
  "show-news",
569
547
  "show-tariff",
@@ -573,18 +551,18 @@ const e1 = (x) => {
573
551
  "toggle-menu",
574
552
  "update:modelValue"
575
553
  ],
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(() => {
554
+ setup(u, { emit: f }) {
555
+ var X, Y, ee;
556
+ const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = S(() => {
579
557
  var n;
580
558
  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(() => {
559
+ }), T = () => {
560
+ c("show-news");
561
+ }, L = V(!1), A = V(p.hoverable);
562
+ Me(p, () => {
563
+ p.modelValue ? A.value = !0 : A.value = !1;
564
+ }), p.modelValue && (A.value = !0);
565
+ const z = ft(), M = S(() => {
588
566
  const n = [];
589
567
  if (p.slim || n.push("fixed"), !E.value)
590
568
  if (!p.isMobile)
@@ -592,565 +570,557 @@ const e1 = (x) => {
592
570
  else
593
571
  return n.push("w-full");
594
572
  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();
573
+ }), D = S(() => ""), Z = (n) => {
574
+ L.value = A.value && n;
575
+ }, 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;
576
+ vt(() => {
577
+ const n = a();
600
578
  setTimeout(() => {
601
- J.value = n;
579
+ Q.value = n;
602
580
  });
603
581
  });
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);
582
+ const r = V(!1), x = V(
583
+ (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) => {
584
+ var k;
585
+ return n.id == ((k = p.app) == null ? void 0 : k.lang);
608
586
  }) : null
609
- ), V = () => {
587
+ ), H = () => {
610
588
  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);
589
+ }, J = (n) => {
590
+ x.value = n, r.value = !1, c("select-language", n);
591
+ }, ie = () => {
592
+ var n, k;
593
+ (k = (n = p.app) == null ? void 0 : n.selectedPlan) != null && k.url && (window.location.href = p.app.selectedPlan.url);
616
594
  };
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", {
595
+ return (n, k) => {
596
+ 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;
597
+ return e(), s("aside", {
620
598
  ref_key: "rootElement",
621
- ref: M,
622
- class: C(["oneb-sidebar cont flex flex-col", [
599
+ ref: z,
600
+ class: y(["oneb-sidebar cont flex flex-col", [
623
601
  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"
602
+ n.island ? l.value ? "self-stretch w-[60px]" : "self-stretch w-[260px]" : M.value,
603
+ 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
604
  ]]),
627
- style: w1(q.value),
628
- onMouseenter: b[3] || (b[3] = (g) => R(!0)),
629
- onMouseleave: b[4] || (b[4] = (g) => R(!1))
605
+ style: tt(D.value),
606
+ onMouseenter: k[3] || (k[3] = ($) => Z(!0)),
607
+ onMouseleave: k[4] || (k[4] = ($) => Z(!1))
630
608
  }, [
631
- n.island ? (e(), l("div", {
609
+ n.island ? (e(), s("div", {
632
610
  key: 0,
633
- class: C(["px-2 flex shrink-0", t.value ? "flex-col items-center gap-1" : "items-center justify-between"])
611
+ class: y(["px-2 flex shrink-0", l.value ? "flex-col items-center gap-1" : "items-center justify-between"])
634
612
  }, [
635
- t.value && n.logoSrc ? (e(), l("div", os, [
636
- s("img", {
613
+ l.value && n.logoSrc ? (e(), s("div", os, [
614
+ t("img", {
637
615
  src: n.logoSrc,
638
616
  class: "w-8 h-8 mx-auto",
639
617
  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", {
618
+ }, null, 8, as)
619
+ ])) : o("", !0),
620
+ !l.value && ((te = n.app) != null && te.name) ? (e(), s("div", ns, [
621
+ n.logoSrc ? (e(), s("div", rs, [
622
+ t("img", {
645
623
  src: n.logoSrc,
646
624
  class: "w-8 h-8 mx-auto",
647
625
  alt: "logo"
648
626
  }, 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)
627
+ ])) : o("", !0),
628
+ t("div", ds, [
629
+ t("p", us, d(n.app.name), 1),
630
+ (le = (se = n.app) == null ? void 0 : se.selectedPlan) != null && le.name ? (e(), s("div", ps, [
631
+ t("span", cs, d(m.value("ui.layout.plan")) + " " + d(n.app.selectedPlan.name), 1)
632
+ ])) : o("", !0)
655
633
  ])
656
- ])) : a("", !0),
657
- s("button", {
634
+ ])) : o("", !0),
635
+ t("button", {
658
636
  type: "button",
659
637
  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"))
638
+ onClick: k[0] || (k[0] = ($) => c("toggle-menu"))
661
639
  }, [
662
- (e(), c(_(t.value ? S(je) : S(ss)), { class: "w-5 h-5" }))
640
+ (e(), h(_(l.value ? O(je) : O(ls)), { class: "w-5 h-5" }))
663
641
  ])
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"
642
+ ], 2)) : o("", !0),
643
+ pe(t("div", {
644
+ class: y(["overflow-y-auto overflow-hidden lg:bg-transparent transition-all flex-grow", [
645
+ 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
646
  ]]),
669
647
  ref_key: "menu",
670
- ref: L
648
+ ref: j
671
649
  }, [
672
- (e(!0), l(N, null, D(n.items, (g) => (e(), c(Q1, {
673
- key: g.label,
674
- labelTop: g.labelTop,
650
+ (e(!0), s(W, null, U(n.items, ($) => (e(), h(Yt, {
651
+ key: $.label,
652
+ labelTop: $.labelTop,
675
653
  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,
654
+ subItems: $.subItems,
655
+ open: $.open,
656
+ icon: $.icon,
657
+ label: $.label,
658
+ route: $.route,
659
+ menuGroup: $ == null ? void 0 : $.menuGroup,
660
+ href: $.href,
661
+ slim: l.value,
684
662
  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"))
663
+ active: $.active === !0,
664
+ "route-name": $.routeName,
665
+ exact: $.exact || !1,
666
+ onUpdateCollapsed: k[1] || (k[1] = (Se) => c("update-collapsed"))
689
667
  }, null, 8, ["labelTop", "isMobile", "subItems", "open", "icon", "label", "route", "menuGroup", "href", "slim", "island", "active", "route-name", "exact"]))), 128))
690
668
  ], 2), [
691
- [ge, f.value]
669
+ [ge, b.value]
692
670
  ]),
693
- n.island && t.value ? (e(), l("div", hs, [
694
- s("button", {
671
+ n.island && l.value ? (e(), s("div", hs, [
672
+ t("button", {
695
673
  type: "button",
696
674
  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"))
675
+ onClick: k[2] || (k[2] = ($) => c("show-help"))
698
676
  }, [
699
- B(xe, { class: "w-6 h-6" })
677
+ B(ke, { class: "w-6 h-6" })
700
678
  ])
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"]])
679
+ ])) : o("", !0),
680
+ pe(t("div", {
681
+ class: y(["mt-auto shrink rounded-2xl mx-2", [l.value ? "" : "px-2 bg-white pt-2.5 py-2"]])
704
682
  }, [
705
- n.island ? a("", !0) : (e(), l("div", {
683
+ n.island ? o("", !0) : (e(), s("div", {
706
684
  key: 0,
707
- class: C([t.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
685
+ class: y([l.value ? "hidden" : "w-full hidden md:flex-col md:flex"])
708
686
  }, [
709
- (h = n.app) != null && h.offerPlan ? (e(), l("a", {
687
+ (v = n.app) != null && v.offerPlan ? (e(), s("a", {
710
688
  key: 0,
711
- href: (G = n.app) == null ? void 0 : G.offerPlan.url,
689
+ href: (R = n.app) == null ? void 0 : R.offerPlan.url,
712
690
  class: "w-full min-w-[190px] border-gradient rounded-lg p-[1px] bg-[#FFF8E4] mb-1 block",
713
691
  target: "_blank",
714
692
  rel: "noopener noreferrer"
715
693
  }, [
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]" }))
694
+ t("div", fs, [
695
+ t("div", vs, [
696
+ (e(), h(_((oe = n.app) == null ? void 0 : oe.offerPlan.icon), { class: "w-[16px] h-[16px]" }))
719
697
  ]),
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)
698
+ t("p", ys, [
699
+ t("strong", null, d((me = n.app) == null ? void 0 : me.offerPlan.title), 1),
700
+ ce(" «" + d((fe = n.app) == null ? void 0 : fe.offerPlan.name) + "» ", 1),
701
+ k[5] || (k[5] = t("br", null, null, -1)),
702
+ ce(d((ve = n.app) == null ? void 0 : ve.offerPlan.title1), 1)
725
703
  ])
726
704
  ])
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]" }))
705
+ ], 8, ms)) : o("", !0),
706
+ (ye = n.app) != null && ye.selectedPlan && ((we = n.app) != null && we.selectedPlan.name) ? (e(), s("div", ws, [
707
+ t("div", bs, [
708
+ t("div", null, [
709
+ (e(), h(_((w = n.app) == null ? void 0 : w.selectedPlan.icon), { class: "w-[16px] h-[16px]" }))
732
710
  ]),
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)
711
+ t("div", gs, [
712
+ t("p", null, d(((N = n.app) == null ? void 0 : N.selectedPlan.name) || ""), 1),
713
+ t("p", null, d(((q = n.app) == null ? void 0 : q.selectedPlan.title) || ""), 1)
736
714
  ])
737
715
  ]),
738
- s("div", gs, [
739
- B(Me, {
716
+ t("div", xs, [
717
+ B(_e, {
740
718
  class: "text-[#525B66] hover:text-[#4089E0] !rounded-lg",
741
719
  variant: "touch",
742
- icon: S(C1),
743
- onClick: ae
720
+ icon: O(nt),
721
+ onClick: ie
744
722
  }, null, 8, ["icon"])
745
723
  ])
746
- ])) : a("", !0),
747
- (le = n.app) != null && le.terms ? (e(), l("a", {
724
+ ])) : o("", !0),
725
+ (ae = n.app) != null && ae.terms ? (e(), s("a", {
748
726
  key: 2,
749
- href: (oe = n.app) == null ? void 0 : oe.terms.url,
727
+ href: (ne = n.app) == null ? void 0 : ne.terms.url,
750
728
  target: "_blank",
751
729
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline font-extralight"
752
730
  }, [
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)
731
+ t("div", Cs, [
732
+ t("div", $s, [
733
+ t("span", _s, d(((F = n.app) == null ? void 0 : F.terms.label) || m.value("ui.layout.terms")), 1)
756
734
  ])
757
735
  ])
758
- ], 8, xs)) : a("", !0),
759
- (re = n.app) != null && re.offer ? (e(), l("a", {
736
+ ], 8, ks)) : o("", !0),
737
+ (de = n.app) != null && de.offer ? (e(), s("a", {
760
738
  key: 3,
761
- href: (A = n.app) == null ? void 0 : A.offer.url,
739
+ href: (G = n.app) == null ? void 0 : G.offer.url,
762
740
  target: "_blank",
763
741
  class: "ml-1 flex items-center rounded-lg text-xs hover:underline text-[#525B66] font-extralight"
764
742
  }, [
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)
743
+ t("div", Ss, [
744
+ t("div", Bs, [
745
+ t("span", Os, d(((re = n.app) == null ? void 0 : re.offer.label) || m.value("ui.layout.offer")), 1)
768
746
  ])
769
747
  ])
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", {
748
+ ], 8, Ls)) : o("", !0),
749
+ (ze = (Te = n.app) == null ? void 0 : Te.availableLang) != null && ze.length ? (e(), s("div", Ms, [
750
+ t("div", {
773
751
  class: "select-box flex gap-x-2 text-xs text-[#525B66] cursor-pointer",
774
- onClick: V
752
+ onClick: H
775
753
  }, [
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)
754
+ B(O(yt), { class: "w-4" }),
755
+ ce(" " + d((Fe = x.value) == null ? void 0 : Fe.name) + " ", 1),
756
+ t("span", js, d(r.value ? "▲" : "▼"), 1)
779
757
  ]),
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)
758
+ r.value ? (e(), s("div", Ts, [
759
+ (e(!0), s(W, null, U((Ve = n.app) == null ? void 0 : Ve.availableLang, ($) => {
760
+ var Se, Ye;
761
+ return e(), s("div", {
762
+ key: $.id,
763
+ class: y(["px-2", {
764
+ "hover:bg-slate-200 rounded-lg cursor-pointer": $.id !== ((Se = x.value) == null ? void 0 : Se.id),
765
+ "text-gray-300": $.id === ((Ye = x.value) == null ? void 0 : Ye.id)
788
766
  }]),
789
- onClick: (Ll) => {
790
- var Ye;
791
- return g.id !== ((Ye = y.value) == null ? void 0 : Ye.id) && U(g);
767
+ onClick: (Kl) => {
768
+ var et;
769
+ return $.id !== ((et = x.value) == null ? void 0 : et.id) && J($);
792
770
  }
793
- }, u(g.name), 11, Os);
771
+ }, d($.name), 11, zs);
794
772
  }), 128))
795
- ])) : a("", !0)
796
- ])) : a("", !0)
773
+ ])) : o("", !0)
774
+ ])) : o("", !0)
797
775
  ], 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"])
776
+ !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),
777
+ t("div", {
778
+ class: y([l.value ? "grid" : n.island ? "flex items-center gap-2" : "flex space-x-2"])
801
779
  }, [
802
- n.news ? (e(), l("a", {
780
+ n.news ? (e(), s("a", {
803
781
  key: 0,
804
782
  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
783
+ 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"]]),
784
+ onClick: T
807
785
  }, [
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]"]])
786
+ n.news.menuLabel ? (e(), s("div", Vs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)) : o("", !0),
787
+ t("div", {
788
+ class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
811
789
  }, [
812
- s("div", {
813
- class: C(["relative items-center", [t.value ? "" : "flex flex-row space-x-1"]])
790
+ t("div", {
791
+ class: y(["relative items-center", [l.value ? "" : "flex flex-row space-x-1"]])
814
792
  }, [
815
- s("div", null, [
816
- (e(), c(_(xe), { class: "w-[24px] h-[24px] mx-auto" }))
793
+ t("div", null, [
794
+ (e(), h(_(ke), { class: "w-[24px] h-[24px] mx-auto" }))
817
795
  ]),
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)
796
+ l.value ? o("", !0) : (e(), s("div", Hs, d(n.news.menuLabel || m.value("ui.layout.news")), 1)),
797
+ C.value > 0 ? (e(), s("span", Ws)) : o("", !0),
798
+ C.value > 0 ? (e(), s("span", Ps)) : o("", !0)
821
799
  ], 2)
822
800
  ], 2)
823
- ], 2)) : a("", !0),
824
- (Ge = n.app) != null && Ge.support ? (e(), l("a", {
801
+ ], 2)) : o("", !0),
802
+ (Ge = n.app) != null && Ge.support ? (e(), s("a", {
825
803
  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]"]])
804
+ href: (Re = (Ie = n.app) == null ? void 0 : Ie.support) == null ? void 0 : Re.url,
805
+ 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
806
  }, [
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]"]])
807
+ (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),
808
+ t("div", {
809
+ class: y(["w-full", [l.value ? "" : "flex flex-nowrap items-center h-[36px]"]])
832
810
  }, [
833
- s("div", {
834
- class: C(["flex-shrink-0 relative", [t.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
811
+ t("div", {
812
+ class: y(["flex-shrink-0 relative", [l.value ? "mx-auto w-[36px] " : "flex space-x-2 px-1"]])
835
813
  }, [
836
- s("div", null, [
837
- (e(), c(_(S(b1)), { class: "w-[20px] h-[20px] mx-auto" }))
814
+ t("div", null, [
815
+ (e(), h(_(O(wt)), { class: "w-[20px] h-[20px] mx-auto" }))
838
816
  ]),
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))
817
+ 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
818
  ], 2)
841
819
  ], 2)
842
- ], 10, As)) : a("", !0)
820
+ ], 10, As)) : o("", !0)
843
821
  ], 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))
822
+ n.island && !l.value ? (e(), s("div", Gs, [
823
+ t("span", null, [
824
+ ce(d(m.value("ui.layout.powered_by")) + " ", 1),
825
+ k[6] || (k[6] = t("span", { class: "capitalize" }, "OneB", -1))
848
826
  ]),
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", {
827
+ (Qe = n.app) != null && Qe.version ? (e(), s("span", Is, "V." + d(n.app.version), 1)) : o("", !0)
828
+ ])) : o("", !0),
829
+ n.island ? o("", !0) : (e(), s("p", {
852
830
  key: 3,
853
- class: C([[t.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
831
+ class: y([[l.value ? "hidden" : "w-full"], "text-[7px] pl-2 text-[#979CA9] flex justify-between font-extralight pt-1"])
854
832
  }, [
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))
833
+ t("span", null, [
834
+ ce(d(m.value("ui.layout.powered_by")) + " ", 1),
835
+ k[7] || (k[7] = t("span", { class: "text-blue-700" }, "OneB", -1))
858
836
  ]),
859
- s("span", null, u((Qe = n.app) == null ? void 0 : Qe.version), 1)
837
+ t("span", null, d((Xe = n.app) == null ? void 0 : Xe.version), 1)
860
838
  ], 2))
861
839
  ], 2), [
862
- [ge, f.value && (!n.island || !t.value)]
840
+ [ge, b.value && (!n.island || !l.value)]
863
841
  ])
864
842
  ], 38);
865
843
  };
866
844
  }
867
845
  });
868
- const c1 = /* @__PURE__ */ _e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { class: "h-screen relative" }, Us = {
846
+ const ct = /* @__PURE__ */ $e(Rs, [["__scopeId", "data-v-28310709"]]), qs = { class: "h-screen relative" }, Us = {
869
847
  class: "header h-[56px] flex items-center flex-nowrap fixed top-0 left-0 w-full z-50",
870
848
  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 = {
849
+ }, 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
850
  key: 0,
873
851
  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 = {
852
+ }, s1 = { class: "h-4 w-4" }, l1 = { class: "ml-2 hidden sm:flex" }, o1 = { class: "flex h-full" }, a1 = { key: 0 }, n1 = {
875
853
  key: 0,
876
854
  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 = {
855
+ }, r1 = { class: "h-full relative" }, i1 = { class: "flex items-center p-3 space-x-1.5" }, d1 = { class: "w-full font-medium" }, u1 = {
878
856
  class: "overflow-auto",
879
857
  style: { height: "calc(100% - 62px)" }
880
- }, pt = {
858
+ }, p1 = {
881
859
  key: 0,
882
860
  class: "p-5"
883
- }, ct = { key: 1 }, ht = { class: "p-4 text-gray text-center" }, mt = { key: 2 }, vt = {
861
+ }, c1 = { key: 1 }, h1 = { class: "p-4 text-gray text-center" }, m1 = { key: 2 }, f1 = {
884
862
  class: "p-3 space-y-1.5 rounded-lg",
885
863
  style: { "box-shadow": "0 0 6px #eaeaea" }
886
- }, ft = { key: 0 }, wt = {
864
+ }, v1 = { key: 0 }, y1 = {
887
865
  key: 0,
888
866
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
889
- }, yt = {
867
+ }, w1 = {
890
868
  key: 1,
891
869
  class: "text-xs px-2 py-1 rounded-md bg-yellow-600 text-white"
892
- }, bt = {
870
+ }, b1 = {
893
871
  key: 2,
894
872
  class: "text-xs px-2 py-1 rounded-md bg-blue-600 text-white"
895
- }, Ct = {
873
+ }, g1 = {
896
874
  key: 3,
897
875
  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({
876
+ }, 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
877
  __name: "OneMainLayout",
900
- props: p1,
878
+ props: pt,
901
879
  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) => {
880
+ setup(u, { emit: f }) {
881
+ const c = f, p = u, g = Le(), m = S(() => p.t ?? g);
882
+ let C = window.localStorage.getItem("sidebar-slim");
883
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("sidebar-slim") == null && window.localStorage.setItem("sidebar-slim", "1"), C = "1");
884
+ const T = V(C === "1");
885
+ V(!0), Me(T, (i) => {
908
886
  window.localStorage.setItem("sidebar-slim", String(i ? 1 : 0));
909
887
  });
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);
888
+ const L = V(!1), A = () => {
889
+ L.value = !L.value, L.value && c("load-news");
890
+ }, z = S(() => p.showHeader ?? p.showHeadre), M = V(window.innerWidth), D = () => {
891
+ M.value = window.innerWidth;
892
+ }, Z = S(() => M.value <= 768);
893
+ xe(() => {
894
+ window.addEventListener("resize", D);
895
+ }), Oe(() => {
896
+ window.removeEventListener("resize", D);
927
897
  });
928
898
  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;
899
+ var b;
900
+ (b = p.handlers) == null || b.onSetLang(i);
901
+ }, l = V(!1), j = () => {
902
+ l.value = window.matchMedia("(min-width: 769px)").matches;
933
903
  };
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),
904
+ return xe(() => {
905
+ j(), window.addEventListener("resize", j);
906
+ }), Oe(() => {
907
+ window.removeEventListener("resize", j);
908
+ }), (i, b) => {
909
+ var a, r, x, H, J, ie, X, Y, ee, n, k, te, se, le;
910
+ const Q = Ce("RouterLink");
911
+ return e(), s("div", qs, [
912
+ pe(t("div", Us, [
913
+ t("div", Zs, [
914
+ t("button", {
915
+ onClick: b[0] || (b[0] = (v) => T.value = !T.value),
946
916
  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
917
  }, [
948
- B(S(je), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
918
+ B(O(je), { class: "sm:w-[24px] sm:h-[24px] w-6 h-6" })
949
919
  ])
950
920
  ]),
951
- s("div", Ds, [
952
- i.logoSrc != null ? (e(), l("img", {
921
+ t("div", Ds, [
922
+ i.logoSrc != null ? (e(), s("img", {
953
923
  key: 0,
954
924
  src: i.logoSrc,
955
925
  class: "w-8 h-8 mx-auto",
956
926
  alt: "logo"
957
- }, null, 8, Js)) : a("", !0)
927
+ }, null, 8, Js)) : o("", !0)
958
928
  ]),
959
- i.app != null ? (e(), c(J, {
929
+ i.app != null ? (e(), h(Q, {
960
930
  key: 0,
961
931
  to: "/",
962
932
  class: "sm:pl-2 pl-1 truncate w-full"
963
933
  }, {
964
- default: Z(() => {
965
- var h, G;
934
+ default: I(() => {
935
+ var v, R;
966
936
  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)
937
+ t("div", Ks, d(i.app.name), 1),
938
+ t("div", Qs, d((R = (v = i.app) == null ? void 0 : v.workspace) == null ? void 0 : R.name), 1)
969
939
  ];
970
940
  }),
971
941
  _: 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", {
942
+ })) : o("", !0),
943
+ P(i.$slots, "head-left", {}, void 0, !0),
944
+ t("div", Xs, [
945
+ t("div", Ys, [
946
+ t("div", e1, [
947
+ i.improveTariff && ((a = i.improveTariff) != null && a.label) && i.improveTariff.label ? (e(), s("div", t1, [
948
+ t("button", {
979
949
  type: "button",
980
950
  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));
951
+ onClick: b[1] || (b[1] = //@ts-ignore
952
+ (...v) => {
953
+ var R, oe;
954
+ return ((R = i.handlers) == null ? void 0 : R.onImproveTariff) && ((oe = i.handlers) == null ? void 0 : oe.onImproveTariff(...v));
985
955
  }),
986
956
  style: { "font-size": "10px" }
987
957
  }, [
988
- s("div", tt, [
989
- (e(), c(_((r = i.improveTariff) == null ? void 0 : r.icon), { class: "h-4 w-4 mx-auto" }))
958
+ t("div", s1, [
959
+ (e(), h(_((r = i.improveTariff) == null ? void 0 : r.icon), { class: "h-4 w-4 mx-auto" }))
990
960
  ]),
991
- s("span", lt, u((y = i.improveTariff) == null ? void 0 : y.label), 1)
961
+ t("span", l1, d((x = i.improveTariff) == null ? void 0 : x.label), 1)
992
962
  ])
993
- ])) : a("", !0),
994
- de(i.$slots, "head-right", {}, void 0, !0),
995
- i.help ? (e(), c(o1, {
963
+ ])) : o("", !0),
964
+ P(i.$slots, "head-right", {}, void 0, !0),
965
+ i.help ? (e(), h(lt, {
996
966
  key: 1,
997
967
  help: i.help,
998
968
  "help-slug": i.helpSlug,
999
969
  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, {
970
+ }, null, 8, ["help", "help-slug", "t"])) : o("", !0),
971
+ ((H = i.handlers) == null ? void 0 : H.onBrowse) != null ? (e(), h(ot, {
1002
972
  key: 2,
1003
- workspace: (U = i.app) == null ? void 0 : U.workspace,
1004
- apps: ((ae = i.app) == null ? void 0 : ae.apps) || [],
973
+ workspace: (J = i.app) == null ? void 0 : J.workspace,
974
+ apps: ((ie = i.app) == null ? void 0 : ie.apps) || [],
1005
975
  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, {
976
+ "on-app": (X = i.handlers) == null ? void 0 : X.onApp,
977
+ "on-change": (Y = i.handlers) == null ? void 0 : Y.onChange,
978
+ onOpen: (ee = i.handlers) == null ? void 0 : ee.onBrowse
979
+ }, null, 8, ["workspace", "apps", "t", "on-app", "on-change", "onOpen"])) : o("", !0),
980
+ B(at, {
1011
981
  user: i.user,
1012
982
  menu: i.menu,
1013
983
  app: i.app,
1014
984
  t: m.value,
1015
985
  "on-account": (n = i.handlers) == null ? void 0 : n.onAccount,
1016
- "on-logout": (b = i.handlers) == null ? void 0 : b.onLogout
986
+ "on-logout": (k = i.handlers) == null ? void 0 : k.onLogout
1017
987
  }, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
1018
988
  ])
1019
989
  ])
1020
990
  ])
1021
991
  ], 512), [
1022
- [ge, M.value]
992
+ [ge, z.value]
1023
993
  ]),
1024
- s("div", ot, [
1025
- !R.value || !O.value ? (e(), c(c1, {
994
+ t("div", o1, [
995
+ !Z.value || !T.value ? (e(), h(ct, {
1026
996
  key: 0,
1027
997
  app: i.app,
1028
998
  t: m.value,
1029
999
  items: i.sidebarItems,
1030
1000
  "with-news": i.news != null,
1031
1001
  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,
1002
+ isMobile: Z.value,
1003
+ modelValue: T.value,
1004
+ "onUpdate:modelValue": b[2] || (b[2] = (v) => T.value = v),
1005
+ onShowNews: A,
1036
1006
  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]" : ""
1007
+ onUpdateCollapsed: b[3] || (b[3] = (v) => T.value = !T.value)
1008
+ }, null, 8, ["app", "t", "items", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
1009
+ t("div", {
1010
+ class: y([[
1011
+ T.value ? "" : "lg:ml-[260px] hidden sm:block",
1012
+ l.value ? "ml-[60px]" : ""
1043
1013
  ], "body scroll-body w-full overflow-y-auto"])
1044
1014
  }, [
1045
- s("div", {
1046
- class: C(["content transition-all", { "pt-[56px]": M.value }])
1015
+ t("div", {
1016
+ class: y(["content transition-all", { "pt-[56px]": z.value }])
1047
1017
  }, [
1048
- de(i.$slots, "default", {}, void 0, !0)
1018
+ P(i.$slots, "default", {}, void 0, !0)
1049
1019
  ], 2)
1050
1020
  ], 2)
1051
1021
  ]),
1052
- i.news ? (e(), l("div", nt, [
1053
- H.value ? (e(), l("div", {
1022
+ i.news ? (e(), s("div", a1, [
1023
+ L.value ? (e(), s("div", {
1054
1024
  key: 0,
1055
1025
  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"]])
1026
+ onClick: b[4] || (b[4] = he((v) => L.value = !1, ["self"]))
1027
+ })) : o("", !0),
1028
+ t("div", {
1029
+ 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
1030
  }, [
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, {
1031
+ L.value ? (e(), s("div", n1, [
1032
+ t("div", r1, [
1033
+ t("div", i1, [
1034
+ B(ke, { class: "w-10 h-10" }),
1035
+ t("div", d1, d(m.value("ui.layout.news")), 1),
1036
+ t("div", null, [
1037
+ B(_e, {
1068
1038
  variant: "touch",
1069
- icon: S(r1),
1070
- onClick: f[5] || (f[5] = (h) => H.value = !1)
1039
+ icon: O(rt),
1040
+ onClick: b[5] || (b[5] = (v) => L.value = !1)
1071
1041
  }, null, 8, ["icon"])
1072
1042
  ])
1073
1043
  ]),
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,
1044
+ t("div", u1, [
1045
+ i.news.isLoading && ((te = i.news.items) == null ? void 0 : te.length) === 0 ? (e(), s("div", p1, [
1046
+ B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
1047
+ ])) : ((se = i.news.items) == null ? void 0 : se.length) === 0 ? (e(), s("div", c1, [
1048
+ t("div", h1, d(i.news.emptyText), 1)
1049
+ ])) : ((le = i.news.items) == null ? void 0 : le.length) > 0 ? (e(), s("div", m1, [
1050
+ (e(!0), s(W, null, U(i.news.items, (v) => (e(), s("div", {
1051
+ key: v.id,
1082
1052
  class: "p-3"
1083
1053
  }, [
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)
1054
+ t("div", f1, [
1055
+ t("div", null, [
1056
+ v.type ? (e(), s("div", v1, [
1057
+ 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)
1058
+ ])) : o("", !0),
1059
+ t("div", x1, d(v.title), 1),
1060
+ t("div", k1, d(v.summary), 1)
1091
1061
  ]),
1092
- h.image_url ? (e(), l("div", kt, [
1093
- s("img", {
1094
- src: h.image_url,
1062
+ v.image_url ? (e(), s("div", C1, [
1063
+ t("img", {
1064
+ src: v.image_url,
1095
1065
  alt: "",
1096
1066
  class: "w-full rounded-md"
1097
- }, null, 8, _t)
1098
- ])) : a("", !0),
1099
- s("div", $t, [
1100
- B(u1, {
1101
- text: h.body
1067
+ }, null, 8, $1)
1068
+ ])) : o("", !0),
1069
+ t("div", _1, [
1070
+ B(dt, {
1071
+ text: v.body
1102
1072
  }, null, 8, ["text"])
1103
1073
  ]),
1104
- h.video_url ? (e(), l("div", Lt, [
1105
- s("a", {
1106
- href: h.video_url,
1074
+ v.video_url ? (e(), s("div", L1, [
1075
+ t("a", {
1076
+ href: v.video_url,
1107
1077
  target: "_blank",
1108
1078
  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", {
1079
+ }, d(i.news.openVideoText), 9, S1)
1080
+ ])) : o("", !0),
1081
+ t("div", B1, [
1082
+ t("span", O1, d(v.published), 1),
1083
+ v.post_url ? (e(), s("a", {
1114
1084
  key: 0,
1115
- href: h.post_url,
1085
+ href: v.post_url,
1116
1086
  target: "_blank",
1117
1087
  class: "text-blue-600 hover:text-blue-700 block"
1118
- }, u(i.news.moreText), 9, jt)) : a("", !0)
1088
+ }, d(i.news.moreText), 9, M1)) : o("", !0)
1119
1089
  ])
1120
1090
  ])
1121
1091
  ]))), 128))
1122
- ])) : a("", !0)
1092
+ ])) : o("", !0)
1123
1093
  ])
1124
1094
  ])
1125
- ])) : a("", !0)
1095
+ ])) : o("", !0)
1126
1096
  ], 2)
1127
- ])) : a("", !0)
1097
+ ])) : o("", !0)
1128
1098
  ]);
1129
1099
  };
1130
1100
  }
1131
1101
  });
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 = {
1102
+ 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
1103
  key: 0,
1134
1104
  class: "border-t border-secondary-stroke my-1"
1135
- }, Rt = {
1105
+ }, R1 = {
1136
1106
  key: 1,
1137
1107
  class: "text-2xs text-secondary-content px-3 py-1 uppercase"
1138
- }, qt = ["onClick"], Ut = { class: "text-sm" }, Zt = {
1108
+ }, q1 = ["onClick"], U1 = { class: "text-sm" }, Z1 = {
1139
1109
  key: 2,
1140
1110
  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 = {
1111
+ }, 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
1112
  key: 0,
1143
1113
  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 = {
1114
+ }, tl = { class: "h-full relative" }, sl = { class: "flex items-center p-3 space-x-1.5" }, ll = { class: "w-full font-medium" }, ol = {
1145
1115
  class: "overflow-auto",
1146
1116
  style: { height: "calc(100% - 62px)" }
1147
- }, nl = {
1117
+ }, al = {
1148
1118
  key: 0,
1149
1119
  class: "p-5"
1150
- }, al = { key: 1 }, rl = { class: "p-4 text-gray text-center" }, il = { key: 2 }, ul = {
1120
+ }, nl = { key: 1 }, rl = { class: "p-4 text-gray text-center" }, il = { key: 2 }, dl = {
1151
1121
  class: "p-3 space-y-1.5 rounded-lg",
1152
1122
  style: { "box-shadow": "0 0 6px #eaeaea" }
1153
- }, dl = { key: 0 }, pl = {
1123
+ }, ul = { key: 0 }, pl = {
1154
1124
  key: 0,
1155
1125
  class: "text-xs px-2 py-1 rounded-md bg-green-600 text-white"
1156
1126
  }, cl = {
@@ -1162,312 +1132,634 @@ const Nl = /* @__PURE__ */ _e(Tt, [["__scopeId", "data-v-0db00cd0"]]), zt = { cl
1162
1132
  }, ml = {
1163
1133
  key: 3,
1164
1134
  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({
1135
+ }, 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
1136
  __name: "OneIslandLayout",
1167
- props: p1,
1137
+ props: pt,
1168
1138
  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);
1139
+ setup(u, { emit: f }) {
1140
+ const c = f, p = u, g = Le(), m = S(() => p.t ?? g), C = () => {
1141
+ var a, r;
1142
+ c("browse"), (r = (a = p.handlers) == null ? void 0 : a.onBrowse) == null || r.call(a);
1143
+ }, T = () => {
1144
+ var a, r;
1145
+ c("workspace-click"), (r = (a = p.handlers) == null ? void 0 : a.onWorkspace) == null || r.call(a);
1146
+ }, L = () => {
1147
+ var a, r, x;
1148
+ 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
1149
  };
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));
1150
+ let A = window.localStorage.getItem("island-sidebar-slim");
1151
+ window.document.body.offsetWidth < 1024 && (window.localStorage.getItem("island-sidebar-slim") == null && window.localStorage.setItem("island-sidebar-slim", "1"), A = "1");
1152
+ const z = V(A === "1");
1153
+ Me(z, (a) => {
1154
+ window.localStorage.setItem("island-sidebar-slim", String(a ? 1 : 0));
1185
1155
  });
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(() => {
1156
+ const M = V(!1), D = () => {
1157
+ M.value = !M.value, M.value && c("load-news");
1158
+ }, Z = V(null), E = () => {
1159
+ var r, x, H;
1160
+ const a = (H = (x = (r = Z.value) == null ? void 0 : r.$el) == null ? void 0 : x.querySelector) == null ? void 0 : H.call(x, "button");
1161
+ a == null || a.click();
1162
+ }, l = S(() => p.showHeader ?? p.showHeadre), j = V(window.innerWidth), i = () => {
1163
+ j.value = window.innerWidth;
1164
+ }, b = S(() => j.value <= 768);
1165
+ xe(() => {
1203
1166
  window.addEventListener("resize", i);
1204
- }), Se(() => {
1167
+ }), Oe(() => {
1205
1168
  window.removeEventListener("resize", i);
1206
1169
  });
1207
- const J = (o) => {
1208
- var r, y;
1209
- (y = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || y.call(r, o);
1170
+ const Q = (a) => {
1171
+ var r, x;
1172
+ (x = (r = p.handlers) == null ? void 0 : r.onSetLang) == null || x.call(r, a);
1210
1173
  };
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, {
1174
+ return (a, r) => {
1175
+ var x, H, J, ie, X, Y, ee, n, k, te, se, le, v, R, oe, me, fe, ve, ye, we;
1176
+ return e(), s("div", T1, [
1177
+ t("div", z1, [
1178
+ !b.value || !z.value ? (e(), h(ct, {
1216
1179
  key: 0,
1217
- items: o.sidebarItems,
1180
+ items: a.sidebarItems,
1218
1181
  island: !0,
1219
1182
  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,
1183
+ app: a.app,
1184
+ "logo-src": a.logoSrc,
1185
+ "with-news": a.news != null,
1186
+ news: a.news,
1187
+ isMobile: b.value,
1188
+ modelValue: z.value,
1189
+ onToggleMenu: r[0] || (r[0] = (w) => z.value = !z.value),
1190
+ onShowNews: D,
1228
1191
  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", {
1192
+ onSelectLanguage: Q,
1193
+ onUpdateCollapsed: r[1] || (r[1] = (w) => z.value = !z.value)
1194
+ }, null, 8, ["items", "t", "app", "logo-src", "with-news", "news", "isMobile", "modelValue"])) : o("", !0),
1195
+ b.value && !z.value ? (e(), s("div", {
1233
1196
  key: 1,
1234
1197
  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", {
1198
+ onClick: r[2] || (r[2] = (w) => z.value = !0)
1199
+ })) : o("", !0),
1200
+ t("div", F1, [
1201
+ pe(t("header", V1, [
1202
+ t("div", H1, [
1203
+ b.value ? (e(), s("button", {
1241
1204
  key: 0,
1242
1205
  type: "button",
1243
1206
  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)
1207
+ onClick: r[3] || (r[3] = (w) => z.value = !z.value)
1245
1208
  }, [
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", {
1209
+ (e(), h(_(O(je)), { class: "w-5 h-5" }))
1210
+ ])) : o("", !0),
1211
+ !b.value && ((x = a.handlers) != null && x.onWorkspace) && (a.workspace || (H = a.app) != null && H.workspace) ? (e(), s("button", {
1249
1212
  key: 1,
1250
1213
  type: "button",
1251
1214
  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
1215
+ onClick: T
1253
1216
  }, [
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,
1217
+ B(ue, {
1218
+ text: (ie = a.workspace || ((J = a.app) == null ? void 0 : J.workspace)) == null ? void 0 : ie.name,
1219
+ src: (Y = a.workspace || ((X = a.app) == null ? void 0 : X.workspace)) == null ? void 0 : Y.photo_url,
1257
1220
  size: 20,
1258
1221
  rounded: !1
1259
1222
  }, 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, {
1223
+ t("span", W1, d((n = a.workspace || ((ee = a.app) == null ? void 0 : ee.workspace)) == null ? void 0 : n.name), 1),
1224
+ (e(), h(_(O(be)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1225
+ ])) : !b.value && (a.workspace || (k = a.app) != null && k.workspace) ? (e(), h(st, {
1263
1226
  key: 2,
1264
1227
  "append-body": !0,
1265
1228
  stick: "bottom-start"
1266
1229
  }, {
1267
- button: Z(({ onToggle: v }) => {
1268
- var W, I, le, oe, T, re;
1230
+ button: I(({ onToggle: w }) => {
1231
+ var N, q, ae, ne, F, de;
1269
1232
  return [
1270
- s("button", {
1233
+ t("button", {
1271
1234
  type: "button",
1272
1235
  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())
1236
+ onClick: (G) => (T(), w())
1274
1237
  }, [
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,
1238
+ B(ue, {
1239
+ text: (q = a.workspace || ((N = a.app) == null ? void 0 : N.workspace)) == null ? void 0 : q.name,
1240
+ src: (ne = a.workspace || ((ae = a.app) == null ? void 0 : ae.workspace)) == null ? void 0 : ne.photo_url,
1278
1241
  size: 20,
1279
1242
  rounded: !1
1280
1243
  }, 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)
1244
+ t("span", A1, d((de = a.workspace || ((F = a.app) == null ? void 0 : F.workspace)) == null ? void 0 : de.name), 1),
1245
+ (e(), h(_(O(be)), { class: "w-4 h-4 text-secondary-base shrink-0" }))
1246
+ ], 8, P1)
1284
1247
  ];
1285
1248
  }),
1286
- menu: Z(({ onToggle: v }) => {
1287
- var W, I, le, oe;
1249
+ menu: I(({ onToggle: w }) => {
1250
+ var N, q, ae, ne;
1288
1251
  return [
1289
- s("div", Pt, [
1290
- (e(!0), l(N, null, D(o.workspaces || [], (T) => (e(), l("div", {
1291
- key: T.name,
1252
+ t("div", E1, [
1253
+ (e(!0), s(W, null, U(a.workspaces || [], (F) => (e(), s("div", {
1254
+ key: F.name,
1292
1255
  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();
1256
+ onClick: (de) => {
1257
+ var G, re;
1258
+ return (re = (G = a.handlers) == null ? void 0 : G.onChange) == null || re.call(G, F), w();
1296
1259
  }
1297
1260
  }, [
1298
- B(be, {
1299
- text: T.name,
1300
- src: T.photo_url,
1261
+ B(ue, {
1262
+ text: F.name,
1263
+ src: F.photo_url,
1301
1264
  size: 24,
1302
1265
  rounded: !1
1303
1266
  }, 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,
1267
+ t("span", G1, d(F.name), 1)
1268
+ ], 8, N1))), 128)),
1269
+ (N = a.workspaces) != null && N.length ? (e(), s("div", I1)) : o("", !0),
1270
+ (q = a.apps) != null && q.length ? (e(), s("div", R1, d(m.value("ui.layout.apps")), 1)) : o("", !0),
1271
+ (e(!0), s(W, null, U(a.apps || [], (F) => (e(), s("div", {
1272
+ key: F.id,
1310
1273
  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();
1274
+ onClick: (de) => {
1275
+ var G, re;
1276
+ return (re = (G = a.handlers) == null ? void 0 : G.onApp) == null || re.call(G, F), w();
1314
1277
  }
1315
1278
  }, [
1316
- B(be, {
1317
- text: T.name,
1318
- src: T.photo_url,
1279
+ B(ue, {
1280
+ text: F.name,
1281
+ src: F.photo_url,
1319
1282
  size: 24,
1320
1283
  rounded: !1
1321
1284
  }, 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", {
1285
+ t("span", U1, d(F.name), 1)
1286
+ ], 8, q1))), 128)),
1287
+ (ae = a.handlers) != null && ae.onManageWorkspaces || (ne = a.handlers) != null && ne.onChange ? (e(), s("div", Z1, [
1288
+ t("button", {
1326
1289
  type: "button",
1327
1290
  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)
1291
+ onClick: (F) => (L(), w())
1292
+ }, d(m.value("ui.layout.change_workspace")), 9, D1)
1293
+ ])) : o("", !0)
1331
1294
  ])
1332
1295
  ];
1333
1296
  }),
1334
1297
  _: 1
1335
- })) : a("", !0),
1336
- de(o.$slots, "head-left", {}, void 0, !0)
1298
+ })) : o("", !0),
1299
+ P(a.$slots, "head-left", {}, void 0, !0)
1337
1300
  ]),
1338
- s("div", Jt, [
1339
- (Y = o.improveTariff) != null && Y.label ? (e(), l("a", {
1301
+ t("div", J1, [
1302
+ (te = a.improveTariff) != null && te.label ? (e(), s("a", {
1340
1303
  key: 0,
1341
- href: ((ee = o.improveTariff) == null ? void 0 : ee.url) || "#",
1304
+ href: ((se = a.improveTariff) == null ? void 0 : se.url) || "#",
1342
1305
  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);
1306
+ onClick: r[4] || (r[4] = he((w) => {
1307
+ var N, q;
1308
+ return (q = (N = a.handlers) == null ? void 0 : N.onImproveTariff) == null ? void 0 : q.call(N);
1346
1309
  }, ["prevent"]))
1347
1310
  }, [
1348
- o.improveTariff.icon ? (e(), c(_(o.improveTariff.icon), {
1311
+ a.improveTariff.icon ? (e(), h(_(a.improveTariff.icon), {
1349
1312
  key: 0,
1350
1313
  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, {
1314
+ })) : o("", !0),
1315
+ t("span", Q1, d(a.improveTariff.label), 1)
1316
+ ], 8, K1)) : o("", !0),
1317
+ P(a.$slots, "head-right", {}, void 0, !0),
1318
+ a.help ? (e(), h(lt, {
1356
1319
  key: 1,
1357
1320
  ref_key: "helpMenuRef",
1358
- ref: R,
1359
- help: o.help,
1360
- "help-slug": o.helpSlug,
1321
+ ref: Z,
1322
+ help: a.help,
1323
+ "help-slug": a.helpSlug,
1361
1324
  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) || [],
1325
+ }, null, 8, ["help", "help-slug", "t"])) : o("", !0),
1326
+ B(ot, {
1327
+ workspace: a.workspace || ((le = a.app) == null ? void 0 : le.workspace),
1328
+ apps: a.apps || ((v = a.app) == null ? void 0 : v.apps) || [],
1366
1329
  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
1330
+ "on-app": (R = a.handlers) == null ? void 0 : R.onApp,
1331
+ "on-change": (oe = a.handlers) == null ? void 0 : oe.onChange,
1332
+ onOpen: C
1370
1333
  }, null, 8, ["workspace", "apps", "t", "on-app", "on-change"]),
1371
- B(a1, {
1372
- user: o.user,
1373
- menu: o.menu,
1374
- app: o.app,
1334
+ B(at, {
1335
+ user: a.user,
1336
+ menu: a.menu,
1337
+ app: a.app,
1375
1338
  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
1339
+ "on-account": (me = a.handlers) == null ? void 0 : me.onAccount,
1340
+ "on-logout": (fe = a.handlers) == null ? void 0 : fe.onLogout
1378
1341
  }, null, 8, ["user", "menu", "app", "t", "on-account", "on-logout"])
1379
1342
  ])
1380
1343
  ], 512), [
1381
- [ge, t.value]
1344
+ [ge, l.value]
1382
1345
  ]),
1383
- s("div", Xt, [
1384
- de(o.$slots, "default", {}, void 0, !0)
1346
+ t("div", X1, [
1347
+ P(a.$slots, "default", {}, void 0, !0)
1385
1348
  ])
1386
1349
  ])
1387
1350
  ]),
1388
- o.news ? (e(), l("div", Yt, [
1389
- $.value ? (e(), l("div", {
1351
+ a.news ? (e(), s("div", Y1, [
1352
+ M.value ? (e(), s("div", {
1390
1353
  key: 0,
1391
1354
  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"]])
1355
+ onClick: r[5] || (r[5] = he((w) => M.value = !1, ["self"]))
1356
+ })) : o("", !0),
1357
+ t("div", {
1358
+ 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
1359
  }, [
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, {
1360
+ M.value ? (e(), s("div", el, [
1361
+ t("div", tl, [
1362
+ t("div", sl, [
1363
+ B(ke, { class: "w-10 h-10" }),
1364
+ t("div", ll, d(m.value("ui.layout.news")), 1),
1365
+ t("div", null, [
1366
+ B(_e, {
1404
1367
  variant: "touch",
1405
- icon: S(r1),
1406
- onClick: r[6] || (r[6] = (v) => $.value = !1)
1368
+ icon: O(rt),
1369
+ onClick: r[6] || (r[6] = (w) => M.value = !1)
1407
1370
  }, null, 8, ["icon"])
1408
1371
  ])
1409
1372
  ]),
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,
1373
+ t("div", ol, [
1374
+ a.news.isLoading && ((ve = a.news.items) == null ? void 0 : ve.length) === 0 ? (e(), s("div", al, [
1375
+ B(it, { class: "w-6 h-6 text-gray-600 mx-auto" })
1376
+ ])) : ((ye = a.news.items) == null ? void 0 : ye.length) === 0 ? (e(), s("div", nl, [
1377
+ t("div", rl, d(a.news.emptyText), 1)
1378
+ ])) : ((we = a.news.items) == null ? void 0 : we.length) > 0 ? (e(), s("div", il, [
1379
+ (e(!0), s(W, null, U(a.news.items, (w) => (e(), s("div", {
1380
+ key: w.id,
1418
1381
  class: "p-3"
1419
1382
  }, [
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)
1383
+ t("div", dl, [
1384
+ t("div", null, [
1385
+ w.type ? (e(), s("div", ul, [
1386
+ 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)
1387
+ ])) : o("", !0),
1388
+ t("div", fl, d(w.title), 1),
1389
+ t("div", vl, d(w.summary), 1)
1427
1390
  ]),
1428
- v.image_url ? (e(), l("div", wl, [
1429
- s("img", {
1430
- src: v.image_url,
1391
+ w.image_url ? (e(), s("div", yl, [
1392
+ t("img", {
1393
+ src: w.image_url,
1431
1394
  alt: "",
1432
1395
  class: "w-full rounded-md"
1433
- }, null, 8, yl)
1434
- ])) : a("", !0),
1435
- s("div", bl, [
1436
- B(u1, {
1437
- text: v.body
1396
+ }, null, 8, wl)
1397
+ ])) : o("", !0),
1398
+ t("div", bl, [
1399
+ B(dt, {
1400
+ text: w.body
1438
1401
  }, null, 8, ["text"])
1439
1402
  ]),
1440
- v.video_url ? (e(), l("div", Cl, [
1441
- s("a", {
1442
- href: v.video_url,
1403
+ w.video_url ? (e(), s("div", gl, [
1404
+ t("a", {
1405
+ href: w.video_url,
1443
1406
  target: "_blank",
1444
1407
  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", {
1408
+ }, d(a.news.openVideoText), 9, xl)
1409
+ ])) : o("", !0),
1410
+ t("div", kl, [
1411
+ t("span", Cl, d(w.published), 1),
1412
+ w.post_url ? (e(), s("a", {
1450
1413
  key: 0,
1451
- href: v.post_url,
1414
+ href: w.post_url,
1452
1415
  target: "_blank",
1453
1416
  class: "text-blue-600 hover:text-blue-700 block"
1454
- }, u(o.news.moreText), 9, _l)) : a("", !0)
1417
+ }, d(a.news.moreText), 9, $l)) : o("", !0)
1455
1418
  ])
1456
1419
  ])
1457
1420
  ]))), 128))
1458
- ])) : a("", !0)
1421
+ ])) : o("", !0)
1459
1422
  ])
1460
1423
  ])
1461
- ])) : a("", !0)
1424
+ ])) : o("", !0)
1462
1425
  ], 2)
1463
- ])) : a("", !0)
1426
+ ])) : o("", !0)
1464
1427
  ]);
1465
1428
  };
1466
1429
  }
1467
1430
  });
1468
- const Rl = /* @__PURE__ */ _e($l, [["__scopeId", "data-v-e0a89bf0"]]);
1431
+ 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({
1432
+ __name: "OneGridLayout",
1433
+ props: Ct,
1434
+ setup(u) {
1435
+ const f = u, c = S(() => Array.from({ length: f.count || 2 }, (p, g) => g + 1));
1436
+ return (p, g) => {
1437
+ const m = Ce("font");
1438
+ return e(), s("div", Ll, [
1439
+ g[0] || (g[0] = t("div", {
1440
+ 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))]",
1441
+ style: { "background-position": "10px 10px" }
1442
+ }, null, -1)),
1443
+ t("div", Sl, [
1444
+ t("div", Bl, [
1445
+ (e(!0), s(W, null, U(c.value, (C) => (e(), s("div", {
1446
+ class: "p-4 rounded-lg shadow-lg bg-fuchsia-500",
1447
+ key: C
1448
+ }, [
1449
+ B(m, { style: { "vertical-align": "inherit" } }, {
1450
+ default: I(() => [
1451
+ B(m, { style: { "vertical-align": "inherit" } }, {
1452
+ default: I(() => [
1453
+ ce(d(C), 1)
1454
+ ]),
1455
+ _: 2
1456
+ }, 1024)
1457
+ ]),
1458
+ _: 2
1459
+ }, 1024)
1460
+ ]))), 128))
1461
+ ])
1462
+ ]),
1463
+ 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))
1464
+ ]);
1465
+ };
1466
+ }
1467
+ }), Ol = /* @__PURE__ */ K({
1468
+ __name: "OneBackButton",
1469
+ props: {
1470
+ /** Fallback route when there is no browser history (deep link). */
1471
+ to: {
1472
+ type: [String, Object],
1473
+ default: void 0
1474
+ },
1475
+ label: {
1476
+ type: String,
1477
+ default: ""
1478
+ },
1479
+ variant: {
1480
+ type: String,
1481
+ default: "link"
1482
+ },
1483
+ classButton: {
1484
+ type: String,
1485
+ default: "pl-0"
1486
+ },
1487
+ classIcon: {
1488
+ type: String,
1489
+ default: "!w-3"
1490
+ },
1491
+ /** Return true to fully handle the click yourself. */
1492
+ handler: {
1493
+ type: Function,
1494
+ default: void 0
1495
+ },
1496
+ t: {
1497
+ type: Function,
1498
+ default: void 0
1499
+ }
1500
+ },
1501
+ setup(u) {
1502
+ const f = u, c = gt(), p = Le(), g = S(() => f.t ?? p), m = V(!1);
1503
+ xe(() => {
1504
+ var L;
1505
+ m.value = ((L = window.history.state) == null ? void 0 : L.back) != null;
1506
+ });
1507
+ const C = () => {
1508
+ if (f.handler != null && f.handler())
1509
+ return;
1510
+ const L = c.options.history.state;
1511
+ m.value && L.back !== L.current ? c.back() : f.to != null ? c.push(f.to) : c.back();
1512
+ }, T = S(() => f.label || g.value("ui.back"));
1513
+ return (L, A) => (e(), h(O(_e), {
1514
+ class: y(["!text-[#525B66] text-xs", u.classButton]),
1515
+ label: T.value,
1516
+ iconClass: u.classIcon,
1517
+ labelClass: "!ml-1",
1518
+ icon: O(xt),
1519
+ variant: u.variant,
1520
+ onClick: C
1521
+ }, null, 8, ["class", "label", "iconClass", "icon", "variant"]));
1522
+ }
1523
+ }), Ml = { class: "flex min-w-0 items-center gap-3" }, jl = ["src"], Tl = { class: "min-w-0 text-left leading-tight" }, zl = {
1524
+ key: 0,
1525
+ class: "truncate text-base font-semibold text-gray-900"
1526
+ }, Fl = {
1527
+ key: 1,
1528
+ class: "truncate text-xs text-gray-500"
1529
+ }, Vl = {
1530
+ key: 1,
1531
+ class: "truncate text-sm font-medium text-gray-700 sm:text-base"
1532
+ }, Hl = {
1533
+ id: "one-empty-layout-header-center",
1534
+ class: "hidden min-w-0 flex-1 px-4 lg:flex"
1535
+ }, Wl = { class: "flex shrink-0 items-center gap-3" }, Pl = {
1536
+ key: 0,
1537
+ class: "hidden text-right sm:block"
1538
+ }, Al = { class: "text-sm text-gray-800" }, El = { class: "p-3 sm:p-4 lg:mx-auto" }, Nl = {
1539
+ class: "fixed bottom-0 left-0 right-0 bg-white h-16 flex items-center",
1540
+ style: { "box-shadow": "0 0 15px rgba(0, 0, 0, 0.2)", "will-change": "transform" }
1541
+ }, Gl = { class: "w-full lg:max-w-[960px] mx-auto px-3 lg:px-0" }, go = /* @__PURE__ */ K({
1542
+ __name: "OneEmptyLayout",
1543
+ props: {
1544
+ showHeader: {
1545
+ type: Boolean,
1546
+ default: !0
1547
+ },
1548
+ showFooter: {
1549
+ type: Boolean,
1550
+ default: !1
1551
+ },
1552
+ showHeaderShadow: {
1553
+ type: Boolean,
1554
+ default: !1
1555
+ },
1556
+ logoUrl: {
1557
+ type: String,
1558
+ default: ""
1559
+ },
1560
+ appName: {
1561
+ type: String,
1562
+ default: ""
1563
+ },
1564
+ workspaceName: {
1565
+ type: String,
1566
+ default: ""
1567
+ },
1568
+ /** Route for the logo link; plain block when omitted. */
1569
+ homeTo: {
1570
+ type: [String, Object],
1571
+ default: void 0
1572
+ },
1573
+ /** Back-button fallback route; button hidden when omitted. */
1574
+ backTo: {
1575
+ type: [String, Object],
1576
+ default: void 0
1577
+ },
1578
+ title: {
1579
+ type: String,
1580
+ default: ""
1581
+ },
1582
+ user: {
1583
+ type: Object,
1584
+ default: null
1585
+ },
1586
+ /** White content background (invoice "create document" pages). */
1587
+ whiteBackground: {
1588
+ type: Boolean,
1589
+ default: !1
1590
+ }
1591
+ },
1592
+ setup(u) {
1593
+ return (f, c) => (e(), s("div", {
1594
+ class: y(u.whiteBackground ? "bg-white min-h-screen" : "min-h-screen bg-[#FAFBFC]")
1595
+ }, [
1596
+ u.showHeader ? (e(), s("div", {
1597
+ key: 0,
1598
+ 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",
1599
+ style: tt(u.showHeaderShadow ? "box-shadow: 0 0 15px rgba(0, 0, 0, 0.2)" : "")
1600
+ }, [
1601
+ t("div", Ml, [
1602
+ (e(), h(_(u.homeTo ? "router-link" : "div"), {
1603
+ to: u.homeTo,
1604
+ class: "hidden shrink-0 items-center gap-2 lg:flex"
1605
+ }, {
1606
+ default: I(() => [
1607
+ u.logoUrl ? (e(), s("img", {
1608
+ key: 0,
1609
+ src: u.logoUrl,
1610
+ alt: "",
1611
+ class: "h-8 w-8"
1612
+ }, null, 8, jl)) : o("", !0),
1613
+ t("div", Tl, [
1614
+ u.appName ? (e(), s("div", zl, d(u.appName), 1)) : o("", !0),
1615
+ u.workspaceName ? (e(), s("div", Fl, d(u.workspaceName), 1)) : o("", !0)
1616
+ ])
1617
+ ]),
1618
+ _: 1
1619
+ }, 8, ["to"])),
1620
+ u.backTo ? (e(), h(Ol, {
1621
+ key: 0,
1622
+ to: u.backTo,
1623
+ variant: "secondary",
1624
+ "class-button": "!bg-[#F6F8FF] rounded-xl h-8",
1625
+ "class-icon": "!w-4"
1626
+ }, null, 8, ["to"])) : o("", !0),
1627
+ u.title ? (e(), s("h1", Vl, d(u.title), 1)) : o("", !0),
1628
+ P(f.$slots, "header-left")
1629
+ ]),
1630
+ t("div", Hl, [
1631
+ P(f.$slots, "header-center")
1632
+ ]),
1633
+ t("div", Wl, [
1634
+ P(f.$slots, "header-right", {}, () => {
1635
+ var p;
1636
+ return [
1637
+ (p = u.user) != null && p.name ? (e(), s("div", Pl, [
1638
+ t("div", Al, d(u.user.name), 1)
1639
+ ])) : o("", !0),
1640
+ u.user ? (e(), h(O(ue), {
1641
+ key: 1,
1642
+ src: u.user.photo_url,
1643
+ rounded: !0,
1644
+ size: "30"
1645
+ }, null, 8, ["src"])) : o("", !0)
1646
+ ];
1647
+ })
1648
+ ])
1649
+ ], 4)) : o("", !0),
1650
+ t("div", El, [
1651
+ P(f.$slots, "default")
1652
+ ]),
1653
+ u.showFooter ? (e(), s(W, { key: 1 }, [
1654
+ c[0] || (c[0] = t("div", { class: "h-16" }, null, -1)),
1655
+ t("div", Nl, [
1656
+ t("div", Gl, [
1657
+ P(f.$slots, "footer")
1658
+ ])
1659
+ ])
1660
+ ], 64)) : o("", !0)
1661
+ ], 2));
1662
+ }
1663
+ }), 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 = {
1664
+ key: 0,
1665
+ class: "flex flex-col lg:flex-row justify-center text-center p-4"
1666
+ }, Zl = {
1667
+ key: 0,
1668
+ class: "flex-1 hidden md:block"
1669
+ }, xo = /* @__PURE__ */ K({
1670
+ __name: "OneAuthLayout",
1671
+ props: {
1672
+ /** Tailwind width class for the form panel (accounts uses lg:w-[450px]). */
1673
+ panelWidthClass: {
1674
+ type: String,
1675
+ default: "lg:w-[450px]"
1676
+ }
1677
+ },
1678
+ setup(u) {
1679
+ return (f, c) => (e(), s("div", Il, [
1680
+ t("div", {
1681
+ class: y(["w-full bg-white h-full flex flex-col justify-between", u.panelWidthClass])
1682
+ }, [
1683
+ t("div", Rl, [
1684
+ t("div", ql, [
1685
+ P(f.$slots, "default")
1686
+ ])
1687
+ ]),
1688
+ f.$slots.footer ? (e(), s("div", Ul, [
1689
+ P(f.$slots, "footer")
1690
+ ])) : o("", !0)
1691
+ ], 2),
1692
+ f.$slots.brand ? (e(), s("div", Zl, [
1693
+ P(f.$slots, "brand")
1694
+ ])) : o("", !0)
1695
+ ]));
1696
+ }
1697
+ }), Dl = { class: "truncate max-w-[220px]" }, Jl = { class: "truncate max-w-[220px]" }, ko = /* @__PURE__ */ K({
1698
+ __name: "OneBreadcrumbs",
1699
+ props: {
1700
+ items: {
1701
+ type: Array,
1702
+ required: !0
1703
+ },
1704
+ pill: {
1705
+ type: Boolean,
1706
+ default: !0
1707
+ }
1708
+ },
1709
+ setup(u) {
1710
+ return (f, c) => {
1711
+ const p = Ce("RouterLink");
1712
+ return e(), s("nav", {
1713
+ class: y(["flex items-center gap-1 min-w-0", u.pill ? "bg-light-body rounded-10 px-3 py-1" : ""]),
1714
+ "aria-label": "Breadcrumb"
1715
+ }, [
1716
+ (e(!0), s(W, null, U(u.items, (g, m) => (e(), s(W, { key: m }, [
1717
+ m > 0 ? (e(), h(O(nt), {
1718
+ key: 0,
1719
+ class: "w-3 h-3 text-secondary-content shrink-0"
1720
+ })) : o("", !0),
1721
+ g.to != null && m < u.items.length - 1 ? (e(), h(p, {
1722
+ key: 1,
1723
+ to: g.to,
1724
+ class: "flex items-center gap-2 min-w-0 text-sm text-primary-content hover:text-primary-base transition-colors",
1725
+ "data-test": "breadcrumb-link"
1726
+ }, {
1727
+ default: I(() => [
1728
+ g.avatarSrc ? (e(), h(ue, {
1729
+ key: 0,
1730
+ src: g.avatarSrc,
1731
+ size: 20,
1732
+ rounded: !1,
1733
+ class: "shrink-0"
1734
+ }, null, 8, ["src"])) : o("", !0),
1735
+ t("span", Dl, d(g.label), 1)
1736
+ ]),
1737
+ _: 2
1738
+ }, 1032, ["to"])) : (e(), s("span", {
1739
+ key: 2,
1740
+ class: y(["flex items-center gap-2 min-w-0 text-sm", m === u.items.length - 1 ? "text-secondary-content" : ""])
1741
+ }, [
1742
+ g.avatarSrc ? (e(), h(ue, {
1743
+ key: 0,
1744
+ src: g.avatarSrc,
1745
+ size: 20,
1746
+ rounded: !1,
1747
+ class: "shrink-0"
1748
+ }, null, 8, ["src"])) : o("", !0),
1749
+ t("span", Jl, d(g.label), 1)
1750
+ ], 2))
1751
+ ], 64))), 128))
1752
+ ], 2);
1753
+ };
1754
+ }
1755
+ });
1469
1756
  export {
1470
- Rl as OneIslandLayout,
1471
- Nl as OneMainLayout,
1472
- c1 as OneSidebar
1757
+ xo as OneAuthLayout,
1758
+ Ol as OneBackButton,
1759
+ ko as OneBreadcrumbs,
1760
+ go as OneEmptyLayout,
1761
+ bo as OneGridLayout,
1762
+ wo as OneIslandLayout,
1763
+ yo as OneMainLayout,
1764
+ ct as OneSidebar
1473
1765
  };