@topvisor/ui 1.0.22-test-ci-cd-10 → 1.2.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 (941) hide show
  1. package/.gitlab-ci/.gitlab-ci.yml +26 -0
  2. package/.gitlab-ci/common/install.yml +21 -0
  3. package/.gitlab-ci/common/lint.yml +14 -0
  4. package/.gitlab-ci/common/version.yml +23 -0
  5. package/.gitlab-ci/storybook/build.yml +20 -0
  6. package/.gitlab-ci/storybook/deploy.yml +49 -0
  7. package/.gitlab-ci/ui/build.yml +13 -0
  8. package/.gitlab-ci/ui/deploy.yml +23 -0
  9. package/.idea/.gitignore +11 -0
  10. package/.idea/codeStyles/Project.xml +205 -0
  11. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  12. package/.idea/externalDependencies.xml +6 -0
  13. package/.idea/inspectionProfiles/Disabled.xml +824 -0
  14. package/.idea/inspectionProfiles/Project_Default.xml +33 -0
  15. package/.idea/php.xml +19 -0
  16. package/.idea/vcs.xml +6 -0
  17. package/.storybook/TopTheme.ts +115 -0
  18. package/.storybook/TopThemeManager.ts +53 -0
  19. package/.storybook/main.ts +51 -0
  20. package/.storybook/manager.ts +25 -0
  21. package/.storybook/preview-head.html +21 -0
  22. package/.storybook/preview.ts +47 -0
  23. package/.storybook/vue/coreDecorator.ts +77 -0
  24. package/.storybook/vue/vModelDecorator.ts +46 -0
  25. package/.versionrc.json +16 -0
  26. package/.vscode/extensions.json +11 -0
  27. package/.vscode/keybindings.example.json +121 -0
  28. package/.vscode/settings.json +45 -0
  29. package/CHANGELOG.md +223 -0
  30. package/NPM.md +25 -0
  31. package/PUBLISH.md +63 -0
  32. package/README.md +20 -69
  33. package/STORYBOOK.md +48 -0
  34. package/USE_IN_PROJECT.md +32 -0
  35. package/build/afterBuild.sh +11 -0
  36. package/build/cssModules.ts +39 -0
  37. package/build/genDocs.sh +19 -0
  38. package/build/plugin/amdFix.ts +83 -0
  39. package/build/plugin/autoloadCSS.ts +155 -0
  40. package/build/rollup.config.ts +37 -0
  41. package/package.json +56 -1
  42. package/public/README.md +82 -0
  43. package/src/components/charts/charts.ts +8 -0
  44. package/src/components/charts/miniChart/miniChart.stories.ts +67 -0
  45. package/src/components/charts/miniChart/miniChart.ts +110 -0
  46. package/src/components/charts/miniChart/miniChart.vue +158 -0
  47. package/src/components/charts/miniChart/stories/README.md +9 -0
  48. package/src/components/charts/miniChart/stories/dummy.ts +25 -0
  49. package/src/components/charts/miniChart/styles/miniChart.css +87 -0
  50. package/src/components/charts/miniChart/utils/consts.ts +9 -0
  51. package/src/components/charts/miniCharts/miniCharts.stories.ts +76 -0
  52. package/src/components/charts/miniCharts/miniCharts.ts +24 -0
  53. package/src/components/charts/miniCharts/miniCharts.vue +128 -0
  54. package/src/components/charts/miniCharts/stories/README.md +18 -0
  55. package/src/components/charts/miniCharts/stories/dummy.ts +70 -0
  56. package/src/components/charts/miniCharts/stories/overview.vue +139 -0
  57. package/src/components/charts/miniCharts/styles/miniCharts.css +32 -0
  58. package/src/components/component.ts +130 -0
  59. package/src/components/core/core.mdx +7 -0
  60. package/src/components/core/notice/item/item.vue +145 -0
  61. package/src/components/core/notice/item/style.css +70 -0
  62. package/src/components/core/notice/item/types.ts +71 -0
  63. package/src/components/core/notice/notice.stories.ts +105 -0
  64. package/src/components/core/notice/notice.vue +69 -0
  65. package/src/components/core/notice/stories/README.md +34 -0
  66. package/src/components/core/notice/types.ts +1 -0
  67. package/src/components/core/notice/utils.ts +115 -0
  68. package/src/components/dialog/dialog/Dialog (code).mdx +61 -0
  69. package/src/components/dialog/dialog/composables/asyncDialogHandle.ts +99 -0
  70. package/src/components/dialog/dialog/composables/dialogHandle.ts +176 -0
  71. package/src/components/dialog/dialog/composables/types.ts +12 -0
  72. package/src/components/dialog/dialog/composables/utils.ts +39 -0
  73. package/src/components/dialog/dialog/dialog.stories.ts +83 -0
  74. package/src/components/dialog/dialog/dialog.vue +74 -0
  75. package/src/components/dialog/dialog/dialogs/dialogs.vue +58 -0
  76. package/src/components/dialog/dialog/page/page.vue +86 -0
  77. package/src/components/dialog/dialog/page/types.ts +84 -0
  78. package/src/components/dialog/dialog/page.stories.ts +27 -0
  79. package/src/components/dialog/dialog/pageComponent/pageComponent.vue +57 -0
  80. package/src/components/dialog/dialog/pageComponent/types.ts +21 -0
  81. package/src/components/dialog/dialog/pageComponent.stories.ts +27 -0
  82. package/src/components/dialog/dialog/stories/README.md +117 -0
  83. package/src/components/dialog/dialog/stories/autoload.ts +12 -0
  84. package/src/components/dialog/dialog/stories/dialog_example/dialog_example.vue +73 -0
  85. package/src/components/dialog/dialog/stories/dialog_example/pages/async.vue +57 -0
  86. package/src/components/dialog/dialog/stories/dialog_example/pages/default.vue +64 -0
  87. package/src/components/dialog/dialog/stories/dialog_example/pages/headerButtons.vue +56 -0
  88. package/src/components/dialog/dialog/stories/dialog_example/pages/utils.ts +26 -0
  89. package/src/components/dialog/dialog/stories/dialog_example/pages/withoutCache.vue +64 -0
  90. package/src/components/dialog/dialog/stories/page/README.md +24 -0
  91. package/src/components/dialog/dialog/stories/pageComponent/README.md +12 -0
  92. package/src/components/dialog/dialog/style/dialog.css +316 -0
  93. package/src/components/dialog/dialog/style/dialog.m.css +40 -0
  94. package/src/components/dialog/dialog/style/dialog.pc.css +73 -0
  95. package/src/components/dialog/dialog/style/modern/dialog.css +12 -0
  96. package/src/components/dialog/dialog/style/modern/dialog.pc.css +3 -0
  97. package/src/components/dialog/dialog/types.ts +69 -0
  98. package/src/components/dialog/dialog.ts +7 -0
  99. package/src/components/dialog/lib/types.ts +26 -0
  100. package/src/components/dialog/lib/utils.globalEvents.ts +175 -0
  101. package/src/components/dialog/lib/utils.ts +525 -0
  102. package/src/components/dialog/lib/worker.ts +273 -0
  103. package/src/components/forms/README.mdx +10 -0
  104. package/src/components/forms/avatar/avatar.stories.ts +38 -0
  105. package/src/components/forms/avatar/avatar.ts +40 -0
  106. package/src/components/forms/avatar/avatar.vue +77 -0
  107. package/src/components/forms/avatar/stories/overview.vue +28 -0
  108. package/src/components/forms/button/button.stories.ts +118 -0
  109. package/src/components/forms/button/button.vue +111 -0
  110. package/src/components/forms/button/stories/README.md +9 -0
  111. package/src/components/forms/button/stories/overview.vue +33 -0
  112. package/src/components/forms/button/style/button.css +139 -0
  113. package/src/components/forms/button/style/style-outline.css +129 -0
  114. package/src/components/forms/button/style/style-soft.css +89 -0
  115. package/src/components/forms/button/style/style-transparent.css +39 -0
  116. package/src/components/forms/button/types.ts +66 -0
  117. package/src/components/forms/checkbox/checkbox.stories.ts +33 -0
  118. package/src/components/forms/checkbox/checkbox.ts +21 -0
  119. package/src/components/forms/checkbox/checkbox.vue +114 -0
  120. package/src/components/forms/checkbox/stories/overview.vue +171 -0
  121. package/src/components/forms/controlLabel/controlLabel.stories.ts +32 -0
  122. package/src/components/forms/controlLabel/controlLabel.ts +4 -0
  123. package/src/components/forms/controlLabel/controlLabel.vue +54 -0
  124. package/src/components/forms/forms.ts +40 -0
  125. package/src/components/forms/helpers.ts +11 -0
  126. package/src/components/forms/hint/hint.stories.ts +41 -0
  127. package/src/components/forms/hint/hint.ts +8 -0
  128. package/src/components/forms/hint/hint.vue +32 -0
  129. package/src/components/forms/input/input.stories.ts +32 -0
  130. package/src/components/forms/input/input.ts +47 -0
  131. package/src/components/forms/input/input.vue +189 -0
  132. package/src/components/forms/input/stories/overview.vue +61 -0
  133. package/src/components/forms/inputDate/datepicker.css +246 -0
  134. package/src/components/forms/inputDate/datepicker.ts +101 -0
  135. package/src/components/forms/inputDate/inputDate.stories.ts +41 -0
  136. package/src/components/forms/inputDate/inputDate.ts +5 -0
  137. package/src/components/forms/inputDate/inputDate.vue +133 -0
  138. package/src/components/forms/inputDate/stories/overview.vue +35 -0
  139. package/src/components/forms/inputRange/inputRange.stories.ts +53 -0
  140. package/src/components/forms/inputRange/inputRange.ts +3 -0
  141. package/src/components/forms/inputRange/inputRange.vue +39 -0
  142. package/src/components/forms/inputRange/stories/overview.vue +129 -0
  143. package/src/components/forms/loadbar/loadbar.stories.ts +17 -0
  144. package/src/components/forms/loadbar/loadbar.vue +37 -0
  145. package/src/components/forms/radio/radio.stories.ts +34 -0
  146. package/src/components/forms/radio/radio.ts +15 -0
  147. package/src/components/forms/radio/radio.vue +97 -0
  148. package/src/components/forms/radio/stories/overview.vue +79 -0
  149. package/src/components/forms/select/select.stories.ts +69 -0
  150. package/src/components/forms/select/select.ts +69 -0
  151. package/src/components/forms/select/select.vue +300 -0
  152. package/src/components/forms/select/stories/exampleOptions.ts +61 -0
  153. package/src/components/forms/select/stories/overview.vue +72 -0
  154. package/src/components/forms/switcher/stories/overview.vue +139 -0
  155. package/src/components/forms/switcher/switcher.stories.ts +33 -0
  156. package/src/components/forms/switcher/switcher.ts +22 -0
  157. package/src/components/forms/switcher/switcher.vue +118 -0
  158. package/src/components/forms/textarea/stories/overview.vue +62 -0
  159. package/src/components/forms/textarea/textarea.stories.ts +34 -0
  160. package/src/components/forms/textarea/textarea.ts +47 -0
  161. package/src/components/forms/textarea/textarea.vue +123 -0
  162. package/src/components/formsExt/README.mdx +5 -0
  163. package/src/components/formsExt/editArea/editArea.stories.ts +41 -0
  164. package/src/components/formsExt/editArea/editArea.ts +41 -0
  165. package/src/components/formsExt/editArea/editArea.vue +198 -0
  166. package/src/components/formsExt/editArea/stories/README.md +21 -0
  167. package/src/components/formsExt/editArea/stories/overview.vue +67 -0
  168. package/src/components/formsExt/editInput/editInput.stories.ts +36 -0
  169. package/src/components/formsExt/editInput/editInput.ts +20 -0
  170. package/src/components/formsExt/editInput/editInput.vue +54 -0
  171. package/src/components/formsExt/editInput/stories/overview.vue +54 -0
  172. package/src/components/formsExt/formsExt.ts +15 -0
  173. package/src/components/formsExt/info/info.stories.ts +35 -0
  174. package/src/components/formsExt/info/info.vue +84 -0
  175. package/src/components/formsExt/info/stories/overview.vue +29 -0
  176. package/src/components/formsExt/info/types.ts +25 -0
  177. package/src/components/formsExt/menu/menu.stories.ts +59 -0
  178. package/src/components/formsExt/menu/menu.ts +45 -0
  179. package/src/components/formsExt/menu/menu.vue +321 -0
  180. package/src/components/formsExt/menu/stories/items.ts +18 -0
  181. package/src/components/formsExt/menu/stories/overview.vue +52 -0
  182. package/src/components/formsExt/navigationMenu/item.vue +186 -0
  183. package/src/components/formsExt/navigationMenu/navigationMenu.stories.ts +37 -0
  184. package/src/components/formsExt/navigationMenu/navigationMenu.ts +28 -0
  185. package/src/components/formsExt/navigationMenu/navigationMenu.vue +40 -0
  186. package/src/components/formsExt/navigationMenu/stories/items.ts +116 -0
  187. package/src/components/formsExt/radioGroup/radioGroup.stories.ts +51 -0
  188. package/src/components/formsExt/radioGroup/radioGroup.ts +28 -0
  189. package/src/components/formsExt/radioGroup/radioGroup.vue +146 -0
  190. package/src/components/formsExt/radioGroup/stories/overview.vue +78 -0
  191. package/src/components/formsExt/radioGroup/styles/top-scrollBar.css +52 -0
  192. package/src/components/formsExt/selector2/api.ts +148 -0
  193. package/src/components/formsExt/selector2/itemMulti.vue +57 -0
  194. package/src/components/formsExt/selector2/selector2.stories.ts +48 -0
  195. package/src/components/formsExt/selector2/selector2.ts +145 -0
  196. package/src/components/formsExt/selector2/selector2.vue +389 -0
  197. package/src/components/formsExt/selector2/stories/dummyAPIRequest.ts +58 -0
  198. package/src/components/formsExt/selector2/stories/overview.vue +93 -0
  199. package/src/components/helper.js +10 -0
  200. package/src/components/helpersStories.ts +205 -0
  201. package/src/components/layout/islandRows/islandRows.stories.ts +139 -0
  202. package/src/components/layout/islandRows/islandRows.vue +53 -0
  203. package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue +36 -0
  204. package/src/components/layout/islandRows/islandRowsRow/types.ts +1 -0
  205. package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue +16 -0
  206. package/src/components/layout/islandRows/stories/README.md +8 -0
  207. package/src/components/layout/islandRows/types.ts +11 -0
  208. package/src/components/layout/layout.ts +11 -0
  209. package/src/components/layout/rows/rows.stories.ts +48 -0
  210. package/src/components/layout/rows/rows.vue +46 -0
  211. package/src/components/layout/rows/stories/README.md +10 -0
  212. package/src/components/layout/rows/types.ts +6 -0
  213. package/src/components/popup/alert/alert.stories.ts +71 -0
  214. package/src/components/popup/alert/alert.ts +11 -0
  215. package/src/components/popup/alert/alert.vue +46 -0
  216. package/src/components/popup/alert/stories/overview.vue +40 -0
  217. package/src/components/popup/confirm/confirm.stories.ts +75 -0
  218. package/src/components/popup/confirm/confirm.ts +26 -0
  219. package/src/components/popup/confirm/confirm.vue +75 -0
  220. package/src/components/popup/confirm/stories/overview.vue +62 -0
  221. package/src/components/popup/lib/popup.globalEvents.ts +239 -0
  222. package/src/components/popup/lib/popup.ts +790 -0
  223. package/src/components/popup/lib/worker.globalEvents.ts +97 -0
  224. package/src/components/popup/lib/worker.ts +286 -0
  225. package/src/components/popup/popup/listItem.vue +35 -0
  226. package/src/components/popup/popup/opener.vue +81 -0
  227. package/src/components/popup/popup/popup.stories.ts +74 -0
  228. package/src/components/popup/popup/popup.ts +120 -0
  229. package/src/components/popup/popup/popup.vue +168 -0
  230. package/src/components/popup/popup/stories/README.md +55 -0
  231. package/src/components/popup/popup/stories/listItems.vue +44 -0
  232. package/src/components/popup/popup/stories/listSubItems.vue +47 -0
  233. package/src/components/popup/popup/stories/overview.vue +210 -0
  234. package/src/components/popup/popup/style/popup.css +345 -0
  235. package/src/components/popup/popup/style/popup.m.css +72 -0
  236. package/src/components/popup/popup/style/popup.pc.css +26 -0
  237. package/src/components/popup/popup/widgetInput.vue +43 -0
  238. package/src/components/popup/popup.ts +17 -0
  239. package/src/components/popup/prompt/prompt.stories.ts +78 -0
  240. package/src/components/popup/prompt/prompt.ts +26 -0
  241. package/src/components/popup/prompt/prompt.vue +84 -0
  242. package/src/components/popup/prompt/stories/overview.vue +50 -0
  243. package/src/components/popup/worker.ts +1 -0
  244. package/src/components/project/project.ts +23 -0
  245. package/src/components/project/selectorCompetitors/composables.ts +21 -0
  246. package/src/components/project/selectorCompetitors/selectorCompetitors.stories.ts +33 -0
  247. package/src/components/project/selectorCompetitors/selectorCompetitors.ts +27 -0
  248. package/src/components/project/selectorCompetitors/selectorCompetitors.vue +75 -0
  249. package/src/components/project/selectorCompetitors/stories/README.md +20 -0
  250. package/src/components/project/selectorCompetitors/stories/items.ts +30 -0
  251. package/src/components/project/selectorCompetitors/types/competitor.ts +7 -0
  252. package/src/components/project/selectorRegion/composables/compare.ts +87 -0
  253. package/src/components/project/selectorRegion/composables/selectRegion.ts +147 -0
  254. package/src/components/project/selectorRegion/composables/selectSearcher.ts +64 -0
  255. package/src/components/project/selectorRegion/composables/selectorRegion.ts +167 -0
  256. package/src/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue +190 -0
  257. package/src/components/project/selectorRegion/dialog_selectorRegions/style.css +49 -0
  258. package/src/components/project/selectorRegion/dialog_selectorRegions/types.ts +31 -0
  259. package/src/components/project/selectorRegion/selectorRegion.stories.ts +85 -0
  260. package/src/components/project/selectorRegion/selectorRegion.ts +204 -0
  261. package/src/components/project/selectorRegion/selectorRegion.vue +335 -0
  262. package/src/components/project/selectorRegion/stories/README.md +36 -0
  263. package/src/components/project/selectorRegion/stories/searchers.ts +77 -0
  264. package/src/components/project/selectorRegion/styles/searcherColors.css +41 -0
  265. package/src/components/project/selectorRegion/utils/consts.ts +73 -0
  266. package/src/components/project/selectorRegion/utils/utils.ts +167 -0
  267. package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue +209 -0
  268. package/src/components/project/tagSelector/popupListItem/types.ts +40 -0
  269. package/src/components/project/tagSelector/popupOpener/popupOpener.vue +145 -0
  270. package/src/components/project/tagSelector/popupOpener/types.ts +71 -0
  271. package/src/components/project/tagSelector/stories/README.md +62 -0
  272. package/src/components/project/tagSelector/stories/overview.vue +152 -0
  273. package/src/components/project/tagSelector/tagIcon/tagIcon.vue +97 -0
  274. package/src/components/project/tagSelector/tagIcon/types.ts +25 -0
  275. package/src/components/project/tagSelector/tagSelector.stories.ts +51 -0
  276. package/src/components/project/tagSelector/tagSelector.vue +359 -0
  277. package/src/components/project/tagSelector/tagsDefaults.ts +54 -0
  278. package/src/components/project/tagSelector/types.ts +159 -0
  279. package/src/components/project/tagSelector/utils/el.ts +151 -0
  280. package/src/components/project/tagSelector/utils/utils.ts +30 -0
  281. package/src/components/tabs/tabs/content.vue +24 -0
  282. package/src/components/tabs/tabs/stories/README.md +12 -0
  283. package/src/components/tabs/tabs/tab.vue +49 -0
  284. package/src/components/tabs/tabs/tabs.stories.ts +171 -0
  285. package/src/components/tabs/tabs/tabs.ts +22 -0
  286. package/src/components/tabs/tabs/tabs.vue +64 -0
  287. package/src/components/tabs/tabs.ts +9 -0
  288. package/src/components/tabsView/tabsView/menu.vue +291 -0
  289. package/src/components/tabsView/tabsView/menuDelimeter.vue +26 -0
  290. package/src/components/tabsView/tabsView/menuItem.vue +125 -0
  291. package/src/components/tabsView/tabsView/menuTitle.vue +46 -0
  292. package/src/components/tabsView/tabsView/store.ts +60 -0
  293. package/src/components/tabsView/tabsView/stories/README.md +22 -0
  294. package/src/components/tabsView/tabsView/tabsView.stories.ts +170 -0
  295. package/src/components/tabsView/tabsView/tabsView.ts +118 -0
  296. package/src/components/tabsView/tabsView/tabsView.vue +120 -0
  297. package/src/components/tabsView/tabsView/utils.ts +27 -0
  298. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuItem.stories.ts +47 -0
  299. package/src/components/tabsView/tabsView//320/255/320/273/320/265/320/274/320/265/320/275/321/202/321/213/MenuTitle.stories.ts +43 -0
  300. package/src/components/tabsView/tabsView.ts +9 -0
  301. package/src/components/types.ts +3 -0
  302. package/src/core/app.ts +22 -0
  303. package/src/core/core/core.mdx +36 -0
  304. package/src/core/core/core.ts +287 -0
  305. package/src/core/core/events/resize.ts +47 -0
  306. package/src/core/core/events.ts +6 -0
  307. package/src/core/core/jQuery.mdx +41 -0
  308. package/src/core/core/options.ts +51 -0
  309. package/src/core/core/preloaders.ts +31 -0
  310. package/src/core/core/state.ts +61 -0
  311. package/src/core/directives/data.mdx +24 -0
  312. package/src/core/directives/data.ts +25 -0
  313. package/src/core/directives/focus.mdx +28 -0
  314. package/src/core/directives/focus.ts +73 -0
  315. package/src/core/directives/scrollIntoView.mdx +41 -0
  316. package/src/core/directives/scrollIntoView.ts +123 -0
  317. package/src/core/directives/scrollShadow.mdx +23 -0
  318. package/src/core/directives/scrollShadow.ts +27 -0
  319. package/src/core/directives/sticky.mdx +29 -0
  320. package/src/core/directives/sticky.ts +32 -0
  321. package/src/core/directives/swimUp.mdx +27 -0
  322. package/src/core/directives/swimUp.ts +95 -0
  323. package/src/core/directives/tooltip.mdx +13 -0
  324. package/src/core/directives/tooltip.ts +57 -0
  325. package/src/core/icons/gallery.vue +70 -0
  326. package/src/core/icons/icons.mdx +24 -0
  327. package/src/core/icons/icons.stories.ts +14 -0
  328. package/src/core/plugins/core.ts +131 -0
  329. package/src/core/plugins/i18n.ts +184 -0
  330. package/src/core/plugins/piniaTPA.ts +431 -0
  331. package/src/core/plugins/plugins.mdx +82 -0
  332. package/src/core/styles/CSS Variables.stories.ts +17 -0
  333. package/src/core/styles/styles.mdx +26 -0
  334. package/src/core/theme/Variables.stories.ts +16 -0
  335. package/src/core/theme/theme.mdx +117 -0
  336. package/src/core/utils/References/Docs.mdx +23 -0
  337. package/src/core/utils/References/check/Docs.mdx +15 -0
  338. package/src/core/utils/References/check/functions/getDomainRegexp.mdx +15 -0
  339. package/src/core/utils/References/check/functions/isDomain.mdx +21 -0
  340. package/src/core/utils/References/check/functions/isEmail.mdx +22 -0
  341. package/src/core/utils/References/check/functions/isIp.mdx +21 -0
  342. package/src/core/utils/References/check/functions/validUrl.mdx +22 -0
  343. package/src/core/utils/References/clipboard/Docs.mdx +11 -0
  344. package/src/core/utils/References/clipboard/functions/setClipboard.mdx +23 -0
  345. package/src/core/utils/References/date/Docs.mdx +17 -0
  346. package/src/core/utils/References/date/functions/dateFormat.mdx +28 -0
  347. package/src/core/utils/References/date/functions/dateToString.mdx +26 -0
  348. package/src/core/utils/References/date/functions/dateUnformat.mdx +22 -0
  349. package/src/core/utils/References/date/functions/genDate.mdx +26 -0
  350. package/src/core/utils/References/date/functions/genDateMoscow.mdx +22 -0
  351. package/src/core/utils/References/date/functions/getDayOfWeek.mdx +26 -0
  352. package/src/core/utils/References/date/functions/stringToDate.mdx +21 -0
  353. package/src/core/utils/References/device/Docs.mdx +21 -0
  354. package/src/core/utils/References/device/functions/get$scroll.mdx +15 -0
  355. package/src/core/utils/References/device/functions/getCommandKeyLabel.mdx +15 -0
  356. package/src/core/utils/References/device/functions/getElsScroll.mdx +15 -0
  357. package/src/core/utils/References/device/functions/getOS.mdx +17 -0
  358. package/src/core/utils/References/device/functions/getOSAsync.mdx +15 -0
  359. package/src/core/utils/References/device/functions/getScrollTop.mdx +15 -0
  360. package/src/core/utils/References/device/functions/isApp.mdx +15 -0
  361. package/src/core/utils/References/device/functions/isMacOS.mdx +15 -0
  362. package/src/core/utils/References/device/functions/isMobile.mdx +15 -0
  363. package/src/core/utils/References/device/functions/isRetina.mdx +15 -0
  364. package/src/core/utils/References/device/functions/isSafari.mdx +15 -0
  365. package/src/core/utils/References/dom/Docs.mdx +27 -0
  366. package/src/core/utils/References/dom/functions/css.mdx +24 -0
  367. package/src/core/utils/References/dom/functions/genEl.mdx +28 -0
  368. package/src/core/utils/References/dom/functions/isVisible.mdx +23 -0
  369. package/src/core/utils/References/dom/functions/offset.mdx +35 -0
  370. package/src/core/utils/References/dom/functions/querySelectorAllArray.mdx +22 -0
  371. package/src/core/utils/References/dom/functions/querySelectorAllVisible.mdx +22 -0
  372. package/src/core/utils/References/dom/functions/querySelectorVisible.mdx +22 -0
  373. package/src/core/utils/References/dom/functions/querySelectorVisibleLast.mdx +22 -0
  374. package/src/core/utils/References/dom/functions/storage.mdx +28 -0
  375. package/src/core/utils/References/dom/functions/storageClear.mdx +21 -0
  376. package/src/core/utils/References/dom/functions/wrap.mdx +22 -0
  377. package/src/core/utils/References/dom/variables/default.mdx +241 -0
  378. package/src/core/utils/References/image/Docs.mdx +12 -0
  379. package/src/core/utils/References/image/functions/downloadImageFromString.mdx +22 -0
  380. package/src/core/utils/References/image/functions/genFaviconImgHtml.mdx +22 -0
  381. package/src/core/utils/References/keyboard/Docs.mdx +11 -0
  382. package/src/core/utils/References/keyboard/functions/invertKeyboardLayout.mdx +21 -0
  383. package/src/core/utils/References/lodash/Docs.mdx +20 -0
  384. package/src/core/utils/References/lodash/functions/cloneDeep.mdx +29 -0
  385. package/src/core/utils/References/lodash/functions/debounce.mdx +76 -0
  386. package/src/core/utils/References/lodash/functions/memoize.mdx +26 -0
  387. package/src/core/utils/References/lodash/functions/merge.mdx +200 -0
  388. package/src/core/utils/References/lodash/functions/throttle.mdx +73 -0
  389. package/src/core/utils/References/number/Docs.mdx +11 -0
  390. package/src/core/utils/References/number/functions/percentOfNumber.mdx +26 -0
  391. package/src/core/utils/References/price/Docs.mdx +11 -0
  392. package/src/core/utils/References/price/functions/genPrice.mdx +28 -0
  393. package/src/core/utils/References/route/Docs.mdx +16 -0
  394. package/src/core/utils/References/route/functions/delHash.mdx +26 -0
  395. package/src/core/utils/References/route/functions/genHash.mdx +26 -0
  396. package/src/core/utils/References/route/functions/getHash.mdx +22 -0
  397. package/src/core/utils/References/route/functions/historySetState.mdx +31 -0
  398. package/src/core/utils/References/route/functions/setHash.mdx +26 -0
  399. package/src/core/utils/References/route/functions/setHashs.mdx +22 -0
  400. package/src/core/utils/References/scroll/Docs.mdx +14 -0
  401. package/src/core/utils/References/scroll/functions/amountScrolled.mdx +17 -0
  402. package/src/core/utils/References/scroll/functions/connectScrollShadow.mdx +28 -0
  403. package/src/core/utils/References/scroll/functions/genHasScroll.mdx +25 -0
  404. package/src/core/utils/References/scroll/functions/getScrollPercent.mdx +21 -0
  405. package/src/core/utils/References/searchers/Docs.mdx +19 -0
  406. package/src/core/utils/References/searchers/functions/genVolumeLabel.mdx +26 -0
  407. package/src/core/utils/References/searchers/functions/getDeviceGIcon.mdx +21 -0
  408. package/src/core/utils/References/searchers/functions/getLangLabel.mdx +22 -0
  409. package/src/core/utils/References/searchers/functions/getSearcherGIcon.mdx +21 -0
  410. package/src/core/utils/References/searchers/functions/prepareVolumeType.mdx +22 -0
  411. package/src/core/utils/References/searchers/variables/searchersNames.mdx +97 -0
  412. package/src/core/utils/References/store/Docs.mdx +18 -0
  413. package/src/core/utils/References/store/functions/defineStore.mdx +36 -0
  414. package/src/core/utils/References/store/functions/useStore.mdx +29 -0
  415. package/src/core/utils/References/store/variables/plugin.mdx +66 -0
  416. package/src/core/utils/References/string/Docs.mdx +26 -0
  417. package/src/core/utils/References/string/functions/addCommasWhite.mdx +21 -0
  418. package/src/core/utils/References/string/functions/addLinkTags.mdx +23 -0
  419. package/src/core/utils/References/string/functions/camelToSnakeCase.mdx +21 -0
  420. package/src/core/utils/References/string/functions/ellipsis.mdx +26 -0
  421. package/src/core/utils/References/string/functions/genFlagLinkByCountryCode.mdx +21 -0
  422. package/src/core/utils/References/string/functions/genIntHash.mdx +21 -0
  423. package/src/core/utils/References/string/functions/getRandomHash.mdx +21 -0
  424. package/src/core/utils/References/string/functions/highlightHtml.mdx +25 -0
  425. package/src/core/utils/References/string/functions/htmlspecialchars.mdx +21 -0
  426. package/src/core/utils/References/string/functions/isUrl.mdx +21 -0
  427. package/src/core/utils/References/string/functions/nl2br.mdx +21 -0
  428. package/src/core/utils/References/string/functions/numberEnding.mdx +28 -0
  429. package/src/core/utils/References/string/functions/numberWithWord.mdx +28 -0
  430. package/src/core/utils/References/string/functions/rusToLatin.mdx +21 -0
  431. package/src/core/utils/References/string/functions/toCapitalize.mdx +21 -0
  432. package/src/core/utils/References/string/functions/toRoditPadej.mdx +21 -0
  433. package/src/core/utils/References/system/Docs.mdx +13 -0
  434. package/src/core/utils/References/system/functions/sleep.mdx +21 -0
  435. package/src/core/utils/References/system/functions/sleepWhile.mdx +26 -0
  436. package/src/core/utils/References/system/functions/waitWhile.mdx +26 -0
  437. package/src/core/utils/References/url/Docs.mdx +17 -0
  438. package/src/core/utils/References/url/functions/decode.mdx +21 -0
  439. package/src/core/utils/References/url/functions/encode.mdx +21 -0
  440. package/src/core/utils/References/url/functions/fromPuny.mdx +23 -0
  441. package/src/core/utils/References/url/functions/getHost.mdx +21 -0
  442. package/src/core/utils/References/url/functions/hostToLowerCase.mdx +21 -0
  443. package/src/core/utils/References/url/functions/normalize.mdx +21 -0
  444. package/src/core/utils/References/url/functions/toPuny.mdx +23 -0
  445. package/src/core/utils/check.ts +88 -0
  446. package/src/core/utils/clipboard.ts +51 -0
  447. package/src/core/utils/date.ts +291 -0
  448. package/src/core/utils/device.ts +139 -0
  449. package/src/core/utils/dom.ts +182 -0
  450. package/src/core/utils/image.ts +46 -0
  451. package/src/core/utils/keyboard.ts +29 -0
  452. package/src/core/utils/lodash.ts +18 -0
  453. package/src/core/utils/number.ts +37 -0
  454. package/src/core/utils/price.ts +24 -0
  455. package/src/core/utils/route.ts +115 -0
  456. package/src/core/utils/scroll.ts +120 -0
  457. package/src/core/utils/searchers.ts +191 -0
  458. package/src/core/utils/store/localStorage.ts +56 -0
  459. package/src/core/utils/store/plugin.ts +50 -0
  460. package/src/core/utils/store/store.ts +77 -0
  461. package/src/core/utils/store.ts +7 -0
  462. package/src/core/utils/string.ts +317 -0
  463. package/src/core/utils/system.ts +72 -0
  464. package/src/core/utils/url.ts +138 -0
  465. package/src/core/utils/utils.mdx +6 -0
  466. package/src/d.ts +12 -0
  467. package/src/icomoon.d.ts +98 -0
  468. package/src/resources/styles/core/components.css +111 -0
  469. package/src/resources/styles/core/core.ts +11 -0
  470. package/src/resources/styles/core/forms/clear.css +20 -0
  471. package/src/resources/styles/core/forms/controls.css +20 -0
  472. package/src/resources/styles/core/forms/focusable.css +26 -0
  473. package/src/resources/styles/core/forms/forms.css +156 -0
  474. package/src/resources/styles/core/icon.css +58 -0
  475. package/src/resources/styles/core/jquery.css +1 -0
  476. package/src/resources/styles/core/layout.css +59 -0
  477. package/src/resources/styles/core/modifiers/as.css +9 -0
  478. package/src/resources/styles/core/modifiers/ellipsis.css +26 -0
  479. package/src/resources/styles/core/modifiers/modifiers.css +120 -0
  480. package/src/resources/styles/core/modifiers/only.css +19 -0
  481. package/src/resources/styles/core/modifiers/scrollShadow.css +50 -0
  482. package/src/resources/styles/core/select.css +15 -0
  483. package/src/resources/styles/storybook.css +11 -0
  484. package/src/resources/styles/themes/dark/dark-layout.css +47 -0
  485. package/src/resources/styles/themes/dark/dark-positions.css +66 -0
  486. package/src/resources/styles/themes/dark/dark.css +400 -0
  487. package/src/resources/styles/themes/dark-positions.ts +1 -0
  488. package/src/resources/styles/themes/dark-th/dark-th-layout.css +47 -0
  489. package/src/resources/styles/themes/dark-th/dark-th-positions.css +67 -0
  490. package/src/resources/styles/themes/dark-th/dark-th.css +400 -0
  491. package/src/resources/styles/themes/dark-th-positions.ts +1 -0
  492. package/src/resources/styles/themes/dark-th.ts +3 -0
  493. package/src/resources/styles/themes/dark.ts +3 -0
  494. package/src/resources/styles/themes/light/light-layout.css +47 -0
  495. package/src/resources/styles/themes/light/light-positions.css +66 -0
  496. package/src/resources/styles/themes/light/light.css +400 -0
  497. package/src/resources/styles/themes/light-positions.ts +1 -0
  498. package/src/resources/styles/themes/light.ts +3 -0
  499. package/src/storybook/components/color.vue +47 -0
  500. package/src/storybook/components/cssVariables.vue +195 -0
  501. package/src/storybook/components/icomoon.ts +40 -0
  502. package/src/storybook/jquery.ts +4 -0
  503. package/src//320/221/321/213/321/201/321/202/321/200/321/213/320/271 /321/201/321/202/320/260/321/200/321/202.mdx" +181 -0
  504. package/src//320/230/320/275/321/204/320/276/321/200/320/274/320/260/321/206/320/270/321/217 /320/276 /321/201/320/261/320/276/321/200/320/272/320/265.mdx" +12 -0
  505. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CHANGELOG.md.mdx" +4 -0
  506. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS/FAQ.mdx" +43 -0
  507. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/236/320/261/321/211/320/270/320/265 /320/274/320/276/320/264/320/270/321/204/320/270/320/272/320/260/321/202/320/276/321/200/321/213.mdx" +155 -0
  508. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/237/320/265/321/200/320/265/320/274/320/265/320/275/320/275/321/213/320/265.mdx" +35 -0
  509. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/237/321/200/320/265/320/264/320/277/321/200/320/276/321/206/320/265/321/201/321/201/320/276/321/200/321/213.mdx" +15 -0
  510. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/240/320/265/320/272/320/276/320/274/320/265/320/275/320/264/320/260/321/206/320/270/320/270 /320/221/320/255/320/234.mdx" +56 -0
  511. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/241/321/202/320/270/320/273/320/270.mdx" +53 -0
  512. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/CSS//320/247/321/202/320/276 /321/202/320/260/320/272/320/276/320/265 css /320/274/320/276/320/264/321/203/320/273/321/214.mdx" +55 -0
  513. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/PUBLISH.md.mdx" +4 -0
  514. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/README.md.mdx" +4 -0
  515. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/STORYBOOK.md.mdx" +4 -0
  516. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)/USE_IN_PROJECT.md.mdx" +3 -0
  517. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/222/320/262/320/265/320/264/320/265/320/275/320/270/320/265 /320/262 NPM.md.mdx" +4 -0
  518. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/224/320/276/320/277/320/276/320/273/320/275/320/270/321/202/320/265/320/273/321/214/320/275/320/260/321/217 /320/273/320/270/321/202/320/265/321/200/320/260/321/202/321/203/321/200/320/260.mdx" +15 -0
  519. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/235/320/260/321/201/321/202/321/200/320/276/320/271/320/272/320/260 IDE.mdx" +45 -0
  520. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/236/321/204/320/276/321/200/320/274/320/273/320/265/320/275/320/270/320/265 /320/272/320/276/320/264/320/260.mdx" +31 -0
  521. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260//320/241/321/202/320/260/320/275/320/264/320/260/321/200/321/202/321/213 /320/272/320/276/320/264/320/260.mdx" +29 -0
  522. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx" +41 -0
  523. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/232/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213//320/241/321/202/320/270/320/273/320/270 /320/272/320/276/320/274/320/277/320/276/320/275/320/265/320/275/321/202/321/213.mdx" +58 -0
  524. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI.mdx" +11 -0
  525. package/src//320/240/320/260/320/267/321/200/320/260/320/261/320/276/321/202/320/272/320/260 (Contributing)//320/241/321/202/321/200/321/203/320/272/321/202/321/203/321/200/320/260 UI//320/243/321/202/320/270/320/273/320/270/321/202/321/213.mdx" +5 -0
  526. package/storybook-dev.sh +14 -0
  527. package/tsconfig.json +91 -0
  528. package/typedoc.json +20 -0
  529. package/vite.config.ts +148 -0
  530. package/.chunks/core-CcWs0qYw.amd.js +0 -2
  531. package/.chunks/core-CcWs0qYw.amd.js.map +0 -1
  532. package/.chunks/core-Dsl28h7N.es.js +0 -196
  533. package/.chunks/core-Dsl28h7N.es.js.map +0 -1
  534. package/.chunks/datepicker-B6kIyIcw.amd.js +0 -2
  535. package/.chunks/datepicker-B6kIyIcw.amd.js.map +0 -1
  536. package/.chunks/datepicker-BTiE5Grw.es.js +0 -44
  537. package/.chunks/datepicker-BTiE5Grw.es.js.map +0 -1
  538. package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js +0 -140
  539. package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js.map +0 -1
  540. package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js +0 -2
  541. package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js.map +0 -1
  542. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js +0 -266
  543. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js.map +0 -1
  544. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js +0 -2
  545. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js.map +0 -1
  546. package/.chunks/forms-BsuCen2-.es.js +0 -1999
  547. package/.chunks/forms-BsuCen2-.es.js.map +0 -1
  548. package/.chunks/forms-BwGakScF.amd.js +0 -3
  549. package/.chunks/forms-BwGakScF.amd.js.map +0 -1
  550. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js +0 -2
  551. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js.map +0 -1
  552. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js +0 -181
  553. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js.map +0 -1
  554. package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js +0 -2
  555. package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js.map +0 -1
  556. package/.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js +0 -109
  557. package/.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js.map +0 -1
  558. package/.chunks/notice-CJdCc72d.amd.js +0 -4
  559. package/.chunks/notice-CJdCc72d.amd.js.map +0 -1
  560. package/.chunks/notice-Cqs1dKt8.es.js +0 -175
  561. package/.chunks/notice-Cqs1dKt8.es.js.map +0 -1
  562. package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js +0 -2
  563. package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js.map +0 -1
  564. package/.chunks/page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js +0 -143
  565. package/.chunks/page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js.map +0 -1
  566. package/.chunks/popup-CLhWWJDe.amd.js +0 -2
  567. package/.chunks/popup-CLhWWJDe.amd.js.map +0 -1
  568. package/.chunks/popup-N10MDafw.es.js +0 -416
  569. package/.chunks/popup-N10MDafw.es.js.map +0 -1
  570. package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
  571. package/.chunks/punycode.es6-C2yitnNb.amd.js.map +0 -1
  572. package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
  573. package/.chunks/punycode.es6-CNI-zL6U.es.js.map +0 -1
  574. package/.chunks/store-CX_6ZXhO.es.js +0 -29
  575. package/.chunks/store-CX_6ZXhO.es.js.map +0 -1
  576. package/.chunks/store-esTid5oI.amd.js +0 -2
  577. package/.chunks/store-esTid5oI.amd.js.map +0 -1
  578. package/.chunks/utils-B1H3EGkg.es.js +0 -79
  579. package/.chunks/utils-B1H3EGkg.es.js.map +0 -1
  580. package/.chunks/utils-B7GVqGBH.amd.js +0 -2
  581. package/.chunks/utils-B7GVqGBH.amd.js.map +0 -1
  582. package/.chunks/utils-DIy2mbYd.amd.js +0 -2
  583. package/.chunks/utils-DIy2mbYd.amd.js.map +0 -1
  584. package/.chunks/utils-bjr7c5my.es.js +0 -225
  585. package/.chunks/utils-bjr7c5my.es.js.map +0 -1
  586. package/assets/charts.css +0 -1
  587. package/assets/core.css +0 -1
  588. package/assets/dialog_selectorRegions.css +0 -1
  589. package/assets/forms.css +0 -1
  590. package/assets/formsExt.css +0 -1
  591. package/assets/layout.css +0 -1
  592. package/assets/listItem.css +0 -1
  593. package/assets/menu.css +0 -1
  594. package/assets/notice.css +0 -1
  595. package/assets/popup.css +0 -1
  596. package/assets/project.css +0 -1
  597. package/assets/tabs.css +0 -1
  598. package/assets/tabsView.css +0 -1
  599. package/assets/themes/dark-th.css +0 -1
  600. package/assets/themes/dark.css +0 -1
  601. package/assets/themes/light.css +0 -1
  602. package/charts/charts.amd.js +0 -2
  603. package/charts/charts.amd.js.map +0 -1
  604. package/charts/charts.d.ts +0 -2
  605. package/charts/charts.js +0 -178
  606. package/charts/charts.js.map +0 -1
  607. package/components/charts/charts.d.ts +0 -5
  608. package/components/charts/miniChart/miniChart.d.ts +0 -92
  609. package/components/charts/miniChart/miniChart.vue.d.ts +0 -15
  610. package/components/charts/miniChart/stories/dummy.d.ts +0 -13
  611. package/components/charts/miniChart/utils/consts.d.ts +0 -8
  612. package/components/charts/miniCharts/miniCharts.d.ts +0 -20
  613. package/components/charts/miniCharts/miniCharts.vue.d.ts +0 -32
  614. package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
  615. package/components/core/notice/item/item.vue.d.ts +0 -10
  616. package/components/core/notice/item/types.d.ts +0 -61
  617. package/components/core/notice/notice.vue.d.ts +0 -5
  618. package/components/core/notice/types.d.ts +0 -1
  619. package/components/core/notice/utils.d.ts +0 -27
  620. package/components/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -51
  621. package/components/dialog/dialog/composables/dialogHandle.d.ts +0 -108
  622. package/components/dialog/dialog/composables/types.d.ts +0 -11
  623. package/components/dialog/dialog/composables/utils.d.ts +0 -21
  624. package/components/dialog/dialog/dialog.vue.d.ts +0 -28
  625. package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -10
  626. package/components/dialog/dialog/page/page.vue.d.ts +0 -19
  627. package/components/dialog/dialog/page/types.d.ts +0 -72
  628. package/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -6
  629. package/components/dialog/dialog/pageComponent/types.d.ts +0 -18
  630. package/components/dialog/dialog/stories/autoload.d.ts +0 -2
  631. package/components/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -7
  632. package/components/dialog/dialog/types.d.ts +0 -58
  633. package/components/dialog/dialog.d.ts +0 -6
  634. package/components/dialog/lib/types.d.ts +0 -21
  635. package/components/dialog/lib/utils.d.ts +0 -14
  636. package/components/dialog/lib/utils.globalEvents.d.ts +0 -8
  637. package/components/dialog/lib/worker.d.ts +0 -60
  638. package/components/forms/avatar/avatar.d.ts +0 -38
  639. package/components/forms/avatar/avatar.vue.d.ts +0 -10
  640. package/components/forms/button/button.vue.d.ts +0 -25
  641. package/components/forms/button/types.d.ts +0 -53
  642. package/components/forms/checkbox/checkbox.d.ts +0 -21
  643. package/components/forms/checkbox/checkbox.vue.d.ts +0 -27
  644. package/components/forms/controlLabel/controlLabel.d.ts +0 -4
  645. package/components/forms/controlLabel/controlLabel.vue.d.ts +0 -19
  646. package/components/forms/forms.d.ts +0 -27
  647. package/components/forms/helpers.d.ts +0 -10
  648. package/components/forms/hint/hint.d.ts +0 -8
  649. package/components/forms/hint/hint.vue.d.ts +0 -4
  650. package/components/forms/input/input.d.ts +0 -34
  651. package/components/forms/input/input.vue.d.ts +0 -28
  652. package/components/forms/inputDate/datepicker.d.ts +0 -5
  653. package/components/forms/inputDate/inputDate.d.ts +0 -3
  654. package/components/forms/inputDate/inputDate.vue.d.ts +0 -12
  655. package/components/forms/inputRange/inputRange.d.ts +0 -2
  656. package/components/forms/inputRange/inputRange.vue.d.ts +0 -19
  657. package/components/forms/loadbar/loadbar.vue.d.ts +0 -3
  658. package/components/forms/radio/radio.d.ts +0 -14
  659. package/components/forms/radio/radio.vue.d.ts +0 -23
  660. package/components/forms/select/select.d.ts +0 -58
  661. package/components/forms/select/select.vue.d.ts +0 -18
  662. package/components/forms/select/stories/exampleOptions.d.ts +0 -5
  663. package/components/forms/switcher/switcher.d.ts +0 -21
  664. package/components/forms/switcher/switcher.vue.d.ts +0 -23
  665. package/components/forms/textarea/textarea.d.ts +0 -40
  666. package/components/forms/textarea/textarea.vue.d.ts +0 -12
  667. package/components/formsExt/editArea/editArea.d.ts +0 -33
  668. package/components/formsExt/editArea/editArea.vue.d.ts +0 -18
  669. package/components/formsExt/editInput/editInput.d.ts +0 -16
  670. package/components/formsExt/editInput/editInput.vue.d.ts +0 -8
  671. package/components/formsExt/formsExt.d.ts +0 -13
  672. package/components/formsExt/info/info.vue.d.ts +0 -20
  673. package/components/formsExt/info/types.d.ts +0 -21
  674. package/components/formsExt/menu/menu.d.ts +0 -37
  675. package/components/formsExt/menu/menu.vue.d.ts +0 -16
  676. package/components/formsExt/menu/stories/items.d.ts +0 -3
  677. package/components/formsExt/navigationMenu/navigationMenu.d.ts +0 -24
  678. package/components/formsExt/navigationMenu/stories/items.d.ts +0 -3
  679. package/components/formsExt/radioGroup/radioGroup.d.ts +0 -21
  680. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +0 -19
  681. package/components/formsExt/selector2/api.d.ts +0 -8
  682. package/components/formsExt/selector2/itemMulti.vue.d.ts +0 -8
  683. package/components/formsExt/selector2/selector2.d.ts +0 -130
  684. package/components/formsExt/selector2/selector2.vue.d.ts +0 -210
  685. package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
  686. package/components/layout/islandRows/islandRows.vue.d.ts +0 -17
  687. package/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -18
  688. package/components/layout/islandRows/islandRowsRow/types.d.ts +0 -2
  689. package/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -18
  690. package/components/layout/islandRows/types.d.ts +0 -10
  691. package/components/layout/layout.d.ts +0 -9
  692. package/components/layout/rows/rows.vue.d.ts +0 -21
  693. package/components/layout/rows/types.d.ts +0 -6
  694. package/components/popup/alert/alert.d.ts +0 -8
  695. package/components/popup/alert/alert.vue.d.ts +0 -31
  696. package/components/popup/confirm/confirm.d.ts +0 -21
  697. package/components/popup/confirm/confirm.vue.d.ts +0 -33
  698. package/components/popup/lib/popup.d.ts +0 -83
  699. package/components/popup/lib/popup.globalEvents.d.ts +0 -26
  700. package/components/popup/lib/worker.d.ts +0 -75
  701. package/components/popup/lib/worker.globalEvents.d.ts +0 -19
  702. package/components/popup/popup/listItem.vue.d.ts +0 -22
  703. package/components/popup/popup/opener.vue.d.ts +0 -23
  704. package/components/popup/popup/popup.d.ts +0 -101
  705. package/components/popup/popup/popup.vue.d.ts +0 -40
  706. package/components/popup/popup/widgetInput.vue.d.ts +0 -17
  707. package/components/popup/popup.d.ts +0 -15
  708. package/components/popup/prompt/prompt.d.ts +0 -21
  709. package/components/popup/prompt/prompt.vue.d.ts +0 -33
  710. package/components/popup/worker.d.ts +0 -1
  711. package/components/project/project.d.ts +0 -15
  712. package/components/project/selectorCompetitors/composables.d.ts +0 -4
  713. package/components/project/selectorCompetitors/selectorCompetitors.d.ts +0 -23
  714. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +0 -14
  715. package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
  716. package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
  717. package/components/project/selectorRegion/composables/compare.d.ts +0 -12
  718. package/components/project/selectorRegion/composables/selectRegion.d.ts +0 -14
  719. package/components/project/selectorRegion/composables/selectSearcher.d.ts +0 -13
  720. package/components/project/selectorRegion/composables/selectorRegion.d.ts +0 -25
  721. package/components/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +0 -4
  722. package/components/project/selectorRegion/dialog_selectorRegions/types.d.ts +0 -26
  723. package/components/project/selectorRegion/selectorRegion.d.ts +0 -170
  724. package/components/project/selectorRegion/selectorRegion.vue.d.ts +0 -23
  725. package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
  726. package/components/project/selectorRegion/utils/consts.d.ts +0 -18
  727. package/components/project/selectorRegion/utils/utils.d.ts +0 -32
  728. package/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -20
  729. package/components/project/tagSelector/popupListItem/types.d.ts +0 -33
  730. package/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -27
  731. package/components/project/tagSelector/popupOpener/types.d.ts +0 -62
  732. package/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -4
  733. package/components/project/tagSelector/tagIcon/types.d.ts +0 -21
  734. package/components/project/tagSelector/tagSelector.vue.d.ts +0 -37
  735. package/components/project/tagSelector/tagsDefaults.d.ts +0 -3
  736. package/components/project/tagSelector/types.d.ts +0 -138
  737. package/components/project/tagSelector/utils/el.d.ts +0 -19
  738. package/components/project/tagSelector/utils/utils.d.ts +0 -14
  739. package/components/tabs/tabs/content.vue.d.ts +0 -19
  740. package/components/tabs/tabs/tab.vue.d.ts +0 -19
  741. package/components/tabs/tabs/tabs.d.ts +0 -19
  742. package/components/tabs/tabs/tabs.vue.d.ts +0 -21
  743. package/components/tabs/tabs.d.ts +0 -7
  744. package/components/tabsView/tabsView/menu.vue.d.ts +0 -32
  745. package/components/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -3
  746. package/components/tabsView/tabsView/menuItem.vue.d.ts +0 -23
  747. package/components/tabsView/tabsView/menuTitle.vue.d.ts +0 -20
  748. package/components/tabsView/tabsView/store.d.ts +0 -192
  749. package/components/tabsView/tabsView/tabsView.d.ts +0 -98
  750. package/components/tabsView/tabsView/tabsView.vue.d.ts +0 -34
  751. package/components/tabsView/tabsView/utils.d.ts +0 -11
  752. package/components/tabsView/tabsView.d.ts +0 -7
  753. package/core/app.amd.js +0 -2
  754. package/core/app.amd.js.map +0 -1
  755. package/core/app.d.ts +0 -8
  756. package/core/app.js +0 -214
  757. package/core/app.js.map +0 -1
  758. package/core/core/core.d.ts +0 -113
  759. package/core/core/events/resize.d.ts +0 -16
  760. package/core/core/events.d.ts +0 -15
  761. package/core/core/options.d.ts +0 -46
  762. package/core/core/preloaders.d.ts +0 -19
  763. package/core/core/state.d.ts +0 -49
  764. package/core/directives/data.d.ts +0 -10
  765. package/core/directives/focus.d.ts +0 -10
  766. package/core/directives/scrollIntoView.d.ts +0 -3
  767. package/core/directives/scrollShadow.d.ts +0 -15
  768. package/core/directives/sticky.d.ts +0 -10
  769. package/core/directives/swimUp.d.ts +0 -15
  770. package/core/directives/tooltip.d.ts +0 -10
  771. package/core/plugins/core.d.ts +0 -60
  772. package/core/plugins/i18n.d.ts +0 -97
  773. package/core/plugins/piniaTPA.d.ts +0 -17
  774. package/core/utils/check.d.ts +0 -26
  775. package/core/utils/clipboard.d.ts +0 -12
  776. package/core/utils/date.d.ts +0 -52
  777. package/core/utils/device.d.ts +0 -50
  778. package/core/utils/dom.d.ts +0 -94
  779. package/core/utils/image.d.ts +0 -16
  780. package/core/utils/keyboard.d.ts +0 -8
  781. package/core/utils/lodash.d.ts +0 -6
  782. package/core/utils/number.d.ts +0 -17
  783. package/core/utils/price.d.ts +0 -10
  784. package/core/utils/route.d.ts +0 -33
  785. package/core/utils/scroll.d.ts +0 -32
  786. package/core/utils/searchers.d.ts +0 -38
  787. package/core/utils/store/localStorage.d.ts +0 -6
  788. package/core/utils/store/plugin.d.ts +0 -24
  789. package/core/utils/store/store.d.ts +0 -34
  790. package/core/utils/store.d.ts +0 -6
  791. package/core/utils/string.d.ts +0 -88
  792. package/core/utils/system.d.ts +0 -25
  793. package/core/utils/url.d.ts +0 -36
  794. package/dialog/dialog.amd.js +0 -2
  795. package/dialog/dialog.amd.js.map +0 -1
  796. package/dialog/dialog.d.ts +0 -2
  797. package/dialog/dialog.js +0 -60
  798. package/dialog/dialog.js.map +0 -1
  799. package/forms/forms.amd.js +0 -2
  800. package/forms/forms.amd.js.map +0 -1
  801. package/forms/forms.d.ts +0 -2
  802. package/forms/forms.js +0 -17
  803. package/forms/forms.js.map +0 -1
  804. package/forms/helpers.amd.js +0 -2
  805. package/forms/helpers.amd.js.map +0 -1
  806. package/forms/helpers.d.ts +0 -2
  807. package/forms/helpers.js +0 -10
  808. package/forms/helpers.js.map +0 -1
  809. package/formsExt/formsExt.amd.js +0 -2
  810. package/formsExt/formsExt.amd.js.map +0 -1
  811. package/formsExt/formsExt.d.ts +0 -2
  812. package/formsExt/formsExt.js +0 -493
  813. package/formsExt/formsExt.js.map +0 -1
  814. package/layout/layout.amd.js +0 -2
  815. package/layout/layout.amd.js.map +0 -1
  816. package/layout/layout.d.ts +0 -2
  817. package/layout/layout.js +0 -62
  818. package/layout/layout.js.map +0 -1
  819. package/popup/popup.amd.js +0 -2
  820. package/popup/popup.amd.js.map +0 -1
  821. package/popup/popup.d.ts +0 -2
  822. package/popup/popup.js +0 -244
  823. package/popup/popup.js.map +0 -1
  824. package/popup/worker.amd.js +0 -2
  825. package/popup/worker.amd.js.map +0 -1
  826. package/popup/worker.d.ts +0 -2
  827. package/popup/worker.js +0 -129
  828. package/popup/worker.js.map +0 -1
  829. package/project/project.amd.js +0 -2
  830. package/project/project.amd.js.map +0 -1
  831. package/project/project.d.ts +0 -2
  832. package/project/project.js +0 -976
  833. package/project/project.js.map +0 -1
  834. package/tabs/tabs.amd.js +0 -2
  835. package/tabs/tabs.amd.js.map +0 -1
  836. package/tabs/tabs.d.ts +0 -2
  837. package/tabs/tabs.js +0 -81
  838. package/tabs/tabs.js.map +0 -1
  839. package/tabsView/tabsView.amd.js +0 -2
  840. package/tabsView/tabsView.amd.js.map +0 -1
  841. package/tabsView/tabsView.d.ts +0 -2
  842. package/tabsView/tabsView.js +0 -306
  843. package/tabsView/tabsView.js.map +0 -1
  844. package/utils/check.amd.js +0 -2
  845. package/utils/check.amd.js.map +0 -1
  846. package/utils/check.d.ts +0 -2
  847. package/utils/check.js +0 -26
  848. package/utils/check.js.map +0 -1
  849. package/utils/clipboard.amd.js +0 -6
  850. package/utils/clipboard.amd.js.map +0 -1
  851. package/utils/clipboard.d.ts +0 -2
  852. package/utils/clipboard.js +0 -33
  853. package/utils/clipboard.js.map +0 -1
  854. package/utils/date.amd.js +0 -2
  855. package/utils/date.amd.js.map +0 -1
  856. package/utils/date.d.ts +0 -2
  857. package/utils/date.js +0 -11
  858. package/utils/date.js.map +0 -1
  859. package/utils/device.amd.js +0 -2
  860. package/utils/device.amd.js.map +0 -1
  861. package/utils/device.d.ts +0 -2
  862. package/utils/device.js +0 -15
  863. package/utils/device.js.map +0 -1
  864. package/utils/dom.amd.js +0 -2
  865. package/utils/dom.amd.js.map +0 -1
  866. package/utils/dom.d.ts +0 -6
  867. package/utils/dom.js +0 -75
  868. package/utils/dom.js.map +0 -1
  869. package/utils/image.amd.js +0 -12
  870. package/utils/image.amd.js.map +0 -1
  871. package/utils/image.d.ts +0 -2
  872. package/utils/image.js +0 -23
  873. package/utils/image.js.map +0 -1
  874. package/utils/keyboard.amd.js +0 -2
  875. package/utils/keyboard.amd.js.map +0 -1
  876. package/utils/keyboard.d.ts +0 -2
  877. package/utils/keyboard.js +0 -12
  878. package/utils/keyboard.js.map +0 -1
  879. package/utils/lodash.amd.js +0 -2
  880. package/utils/lodash.amd.js.map +0 -1
  881. package/utils/lodash.d.ts +0 -2
  882. package/utils/lodash.js +0 -9
  883. package/utils/lodash.js.map +0 -1
  884. package/utils/number.amd.js +0 -2
  885. package/utils/number.amd.js.map +0 -1
  886. package/utils/number.d.ts +0 -2
  887. package/utils/number.js +0 -13
  888. package/utils/number.js.map +0 -1
  889. package/utils/price.amd.js +0 -2
  890. package/utils/price.amd.js.map +0 -1
  891. package/utils/price.d.ts +0 -2
  892. package/utils/price.js +0 -10
  893. package/utils/price.js.map +0 -1
  894. package/utils/route.amd.js +0 -2
  895. package/utils/route.amd.js.map +0 -1
  896. package/utils/route.d.ts +0 -2
  897. package/utils/route.js +0 -31
  898. package/utils/route.js.map +0 -1
  899. package/utils/scroll.amd.js +0 -2
  900. package/utils/scroll.amd.js.map +0 -1
  901. package/utils/scroll.d.ts +0 -2
  902. package/utils/scroll.js +0 -45
  903. package/utils/scroll.js.map +0 -1
  904. package/utils/searchers.amd.js +0 -2
  905. package/utils/searchers.amd.js.map +0 -1
  906. package/utils/searchers.d.ts +0 -2
  907. package/utils/searchers.js +0 -134
  908. package/utils/searchers.js.map +0 -1
  909. package/utils/store.amd.js +0 -2
  910. package/utils/store.amd.js.map +0 -1
  911. package/utils/store.d.ts +0 -2
  912. package/utils/store.js +0 -7
  913. package/utils/store.js.map +0 -1
  914. package/utils/string.amd.js +0 -2
  915. package/utils/string.amd.js.map +0 -1
  916. package/utils/string.d.ts +0 -2
  917. package/utils/string.js +0 -139
  918. package/utils/string.js.map +0 -1
  919. package/utils/system.amd.js +0 -2
  920. package/utils/system.amd.js.map +0 -1
  921. package/utils/system.d.ts +0 -2
  922. package/utils/system.js +0 -29
  923. package/utils/system.js.map +0 -1
  924. package/utils/url.amd.js +0 -3
  925. package/utils/url.amd.js.map +0 -1
  926. package/utils/url.d.ts +0 -2
  927. package/utils/url.js +0 -48
  928. package/utils/url.js.map +0 -1
  929. /package/{icomoon → public/icomoon}/Read Me.txt +0 -0
  930. /package/{icomoon → public/icomoon}/Topvisor icons.json +0 -0
  931. /package/{icomoon → public/icomoon}/demo-files/demo.css +0 -0
  932. /package/{icomoon → public/icomoon}/demo-files/demo.js +0 -0
  933. /package/{icomoon → public/icomoon}/demo.html +0 -0
  934. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.eot +0 -0
  935. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.svg +0 -0
  936. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.ttf +0 -0
  937. /package/{icomoon → public/icomoon}/fonts/Topvisor-2.woff +0 -0
  938. /package/{icomoon → public/icomoon}/selection.json +0 -0
  939. /package/{icomoon → public/icomoon}/style.css +0 -0
  940. /package/{jquery-ui.min.css → public/jquery-ui.min.css} +0 -0
  941. /package/{require → public/require}/css.amd.js +0 -0
@@ -1,1999 +0,0 @@
1
- import { reactive as ve, watch as mt, getCurrentInstance as we, inject as ht, ref as Me, defineComponent as E, useCssVars as bt, computed as _, createElementBlock as m, openBlock as g, createElementVNode as C, createCommentVNode as T, createBlock as B, resolveDynamicComponent as Qt, normalizeClass as S, withCtx as te, renderSlot as M, createTextVNode as Jt, toDisplayString as N, mergeModels as Te, useModel as yt, resolveDirective as z, withDirectives as V, vModelCheckbox as vt, mergeProps as ae, withKeys as Zt, vModelText as wt, withModifiers as xt, onUnmounted as en, unref as ge, vModelRadio as tn, Fragment as me, renderList as Re, vModelSelect as nn } from "vue";
2
- function rn() {
3
- return "devicePixelRatio" in window && window.devicePixelRatio > 1;
4
- }
5
- function on() {
6
- return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
7
- }
8
- function an() {
9
- return navigator.userAgent.indexOf("Topvisor_App") != -1;
10
- }
11
- function sn() {
12
- return navigator.userAgent.indexOf("Mac OS X") !== -1;
13
- }
14
- function ls() {
15
- const e = /Chrome|Android/.test(navigator.userAgent);
16
- let t = /Safari/.test(navigator.userAgent);
17
- return e && t && (t = !1), t;
18
- }
19
- function ds() {
20
- return sn() ? "⌘" : "Ctrl";
21
- }
22
- const us = () => $(document).scrollTop(), cs = () => $(document), ps = () => [document], ln = () => {
23
- const e = [
24
- ["iOS", /(iPhone|iPad)/i],
25
- ["Android", /(Android)/i],
26
- ["Windows Phone", /(IEMobile)/i],
27
- ["Windows 3.11", /Win16/i],
28
- ["Windows 95", /(Windows 95)|(Win95)|(Windows_95)/i],
29
- ["Windows 98", /(Windows 98)|(Win98)/i],
30
- ["Windows 2000", /(Windows NT 5.0)|(Windows 2000)/i],
31
- ["Windows XP", /(Windows NT 5.1)|(Windows XP)/i],
32
- ["Windows Server 2003", /(Windows NT 5.2)/i],
33
- ["Windows Vista", /(Windows NT 6.0)/i],
34
- ["Windows 7", /(Windows NT 6.1)/i],
35
- ["Windows 8", /(Windows NT 6.[23])|(Windows 8)/i],
36
- ["Windows 10", /(Windows NT 10)/i],
37
- ["Windows NT 4.0", /(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)/i],
38
- ["Windows ME", /Windows ME/i],
39
- ["Windows", /Windows/i],
40
- ["Open BSD", /OpenBSD/i],
41
- ["Sun OS", /SunOS/i],
42
- ["Linux", /(Linux)|(X11)/i],
43
- ["Macintosh", /(Mac_PowerPC)|(Macintosh)|(Mac OS X 10.4)|(Mac OS X 10.5)|(Mac OS X 10.6)/i],
44
- ["QNX", /QNX/i],
45
- ["BeOS", /BeOS/i],
46
- ["OS/2", /OS\/2/i]
47
- ];
48
- let t = "";
49
- for (let n = 0; n < e.length; n++)
50
- if (e[n][1].test(navigator.userAgent)) {
51
- t = e[n][0];
52
- break;
53
- }
54
- return t;
55
- }, fs = async () => {
56
- var t;
57
- let e = ln();
58
- if (e === "Windows 10") {
59
- const n = await ((t = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : t.getHighEntropyValues(["platformVersion"]));
60
- n && n.platformVersion >= "13" && (e = "Windows 11");
61
- }
62
- return e;
63
- };
64
- function O(e) {
65
- var t = typeof e;
66
- return e != null && (t == "object" || t == "function");
67
- }
68
- var Tt = typeof global == "object" && global && global.Object === Object && global, dn = typeof self == "object" && self && self.Object === Object && self, j = Tt || dn || Function("return this")(), he = function() {
69
- return j.Date.now();
70
- }, un = /\s/;
71
- function cn(e) {
72
- for (var t = e.length; t-- && un.test(e.charAt(t)); )
73
- ;
74
- return t;
75
- }
76
- var pn = /^\s+/;
77
- function fn(e) {
78
- return e && e.slice(0, cn(e) + 1).replace(pn, "");
79
- }
80
- var K = j.Symbol, $t = Object.prototype, gn = $t.hasOwnProperty, mn = $t.toString, Q = K ? K.toStringTag : void 0;
81
- function hn(e) {
82
- var t = gn.call(e, Q), n = e[Q];
83
- try {
84
- e[Q] = void 0;
85
- var r = !0;
86
- } catch {
87
- }
88
- var a = mn.call(e);
89
- return r && (t ? e[Q] = n : delete e[Q]), a;
90
- }
91
- var bn = Object.prototype, yn = bn.toString;
92
- function vn(e) {
93
- return yn.call(e);
94
- }
95
- var wn = "[object Null]", Tn = "[object Undefined]", Fe = K ? K.toStringTag : void 0;
96
- function R(e) {
97
- return e == null ? e === void 0 ? Tn : wn : Fe && Fe in Object(e) ? hn(e) : vn(e);
98
- }
99
- function L(e) {
100
- return e != null && typeof e == "object";
101
- }
102
- var $n = "[object Symbol]";
103
- function Sn(e) {
104
- return typeof e == "symbol" || L(e) && R(e) == $n;
105
- }
106
- var Ue = NaN, _n = /^[-+]0x[0-9a-f]+$/i, On = /^0b[01]+$/i, En = /^0o[0-7]+$/i, jn = parseInt;
107
- function He(e) {
108
- if (typeof e == "number")
109
- return e;
110
- if (Sn(e))
111
- return Ue;
112
- if (O(e)) {
113
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
114
- e = O(t) ? t + "" : t;
115
- }
116
- if (typeof e != "string")
117
- return e === 0 ? e : +e;
118
- e = fn(e);
119
- var n = On.test(e);
120
- return n || En.test(e) ? jn(e.slice(2), n ? 2 : 8) : _n.test(e) ? Ue : +e;
121
- }
122
- var An = "Expected a function", Pn = Math.max, Mn = Math.min;
123
- function St(e, t, n) {
124
- var r, a, o, l, i, s, d = 0, u = !1, c = !1, p = !0;
125
- if (typeof e != "function")
126
- throw new TypeError(An);
127
- t = He(t) || 0, O(n) && (u = !!n.leading, c = "maxWait" in n, o = c ? Pn(He(n.maxWait) || 0, t) : o, p = "trailing" in n ? !!n.trailing : p);
128
- function b(v) {
129
- var I = r, Y = a;
130
- return r = a = void 0, d = v, l = e.apply(Y, I), l;
131
- }
132
- function w(v) {
133
- return d = v, i = setTimeout(ne, t), u ? b(v) : l;
134
- }
135
- function A(v) {
136
- var I = v - s, Y = v - d, ke = t - I;
137
- return c ? Mn(ke, o - Y) : ke;
138
- }
139
- function ze(v) {
140
- var I = v - s, Y = v - d;
141
- return s === void 0 || I >= t || I < 0 || c && Y >= o;
142
- }
143
- function ne() {
144
- var v = he();
145
- if (ze(v))
146
- return Ve(v);
147
- i = setTimeout(ne, A(v));
148
- }
149
- function Ve(v) {
150
- return i = void 0, p && r ? b(v) : (r = a = void 0, l);
151
- }
152
- function qt() {
153
- i !== void 0 && clearTimeout(i), d = 0, r = s = a = i = void 0;
154
- }
155
- function Yt() {
156
- return i === void 0 ? l : Ve(he());
157
- }
158
- function fe() {
159
- var v = he(), I = ze(v);
160
- if (r = arguments, a = this, s = v, I) {
161
- if (i === void 0)
162
- return w(s);
163
- if (c)
164
- return clearTimeout(i), i = setTimeout(ne, t), b(s);
165
- }
166
- return i === void 0 && (i = setTimeout(ne, t)), l;
167
- }
168
- return fe.cancel = qt, fe.flush = Yt, fe;
169
- }
170
- function Cn() {
171
- this.__data__ = [], this.size = 0;
172
- }
173
- function se(e, t) {
174
- return e === t || e !== e && t !== t;
175
- }
176
- function le(e, t) {
177
- for (var n = e.length; n--; )
178
- if (se(e[n][0], t))
179
- return n;
180
- return -1;
181
- }
182
- var Dn = Array.prototype, In = Dn.splice;
183
- function Bn(e) {
184
- var t = this.__data__, n = le(t, e);
185
- if (n < 0)
186
- return !1;
187
- var r = t.length - 1;
188
- return n == r ? t.pop() : In.call(t, n, 1), --this.size, !0;
189
- }
190
- function Ln(e) {
191
- var t = this.__data__, n = le(t, e);
192
- return n < 0 ? void 0 : t[n][1];
193
- }
194
- function Wn(e) {
195
- return le(this.__data__, e) > -1;
196
- }
197
- function Nn(e, t) {
198
- var n = this.__data__, r = le(n, e);
199
- return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
200
- }
201
- function D(e) {
202
- var t = -1, n = e == null ? 0 : e.length;
203
- for (this.clear(); ++t < n; ) {
204
- var r = e[t];
205
- this.set(r[0], r[1]);
206
- }
207
- }
208
- D.prototype.clear = Cn;
209
- D.prototype.delete = Bn;
210
- D.prototype.get = Ln;
211
- D.prototype.has = Wn;
212
- D.prototype.set = Nn;
213
- function zn() {
214
- this.__data__ = new D(), this.size = 0;
215
- }
216
- function Vn(e) {
217
- var t = this.__data__, n = t.delete(e);
218
- return this.size = t.size, n;
219
- }
220
- function kn(e) {
221
- return this.__data__.get(e);
222
- }
223
- function Rn(e) {
224
- return this.__data__.has(e);
225
- }
226
- var Fn = "[object AsyncFunction]", Un = "[object Function]", Hn = "[object GeneratorFunction]", Gn = "[object Proxy]";
227
- function Ce(e) {
228
- if (!O(e))
229
- return !1;
230
- var t = R(e);
231
- return t == Un || t == Hn || t == Fn || t == Gn;
232
- }
233
- var be = j["__core-js_shared__"], Ge = function() {
234
- var e = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || "");
235
- return e ? "Symbol(src)_1." + e : "";
236
- }();
237
- function Kn(e) {
238
- return !!Ge && Ge in e;
239
- }
240
- var Xn = Function.prototype, qn = Xn.toString;
241
- function F(e) {
242
- if (e != null) {
243
- try {
244
- return qn.call(e);
245
- } catch {
246
- }
247
- try {
248
- return e + "";
249
- } catch {
250
- }
251
- }
252
- return "";
253
- }
254
- var Yn = /[\\^$.*+?()[\]{}|]/g, Qn = /^\[object .+?Constructor\]$/, Jn = Function.prototype, Zn = Object.prototype, xn = Jn.toString, er = Zn.hasOwnProperty, tr = RegExp(
255
- "^" + xn.call(er).replace(Yn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
256
- );
257
- function nr(e) {
258
- if (!O(e) || Kn(e))
259
- return !1;
260
- var t = Ce(e) ? tr : Qn;
261
- return t.test(F(e));
262
- }
263
- function rr(e, t) {
264
- return e == null ? void 0 : e[t];
265
- }
266
- function U(e, t) {
267
- var n = rr(e, t);
268
- return nr(n) ? n : void 0;
269
- }
270
- var Z = U(j, "Map"), x = U(Object, "create");
271
- function or() {
272
- this.__data__ = x ? x(null) : {}, this.size = 0;
273
- }
274
- function ar(e) {
275
- var t = this.has(e) && delete this.__data__[e];
276
- return this.size -= t ? 1 : 0, t;
277
- }
278
- var ir = "__lodash_hash_undefined__", sr = Object.prototype, lr = sr.hasOwnProperty;
279
- function dr(e) {
280
- var t = this.__data__;
281
- if (x) {
282
- var n = t[e];
283
- return n === ir ? void 0 : n;
284
- }
285
- return lr.call(t, e) ? t[e] : void 0;
286
- }
287
- var ur = Object.prototype, cr = ur.hasOwnProperty;
288
- function pr(e) {
289
- var t = this.__data__;
290
- return x ? t[e] !== void 0 : cr.call(t, e);
291
- }
292
- var fr = "__lodash_hash_undefined__";
293
- function gr(e, t) {
294
- var n = this.__data__;
295
- return this.size += this.has(e) ? 0 : 1, n[e] = x && t === void 0 ? fr : t, this;
296
- }
297
- function k(e) {
298
- var t = -1, n = e == null ? 0 : e.length;
299
- for (this.clear(); ++t < n; ) {
300
- var r = e[t];
301
- this.set(r[0], r[1]);
302
- }
303
- }
304
- k.prototype.clear = or;
305
- k.prototype.delete = ar;
306
- k.prototype.get = dr;
307
- k.prototype.has = pr;
308
- k.prototype.set = gr;
309
- function mr() {
310
- this.size = 0, this.__data__ = {
311
- hash: new k(),
312
- map: new (Z || D)(),
313
- string: new k()
314
- };
315
- }
316
- function hr(e) {
317
- var t = typeof e;
318
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
319
- }
320
- function de(e, t) {
321
- var n = e.__data__;
322
- return hr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
323
- }
324
- function br(e) {
325
- var t = de(this, e).delete(e);
326
- return this.size -= t ? 1 : 0, t;
327
- }
328
- function yr(e) {
329
- return de(this, e).get(e);
330
- }
331
- function vr(e) {
332
- return de(this, e).has(e);
333
- }
334
- function wr(e, t) {
335
- var n = de(this, e), r = n.size;
336
- return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
337
- }
338
- function W(e) {
339
- var t = -1, n = e == null ? 0 : e.length;
340
- for (this.clear(); ++t < n; ) {
341
- var r = e[t];
342
- this.set(r[0], r[1]);
343
- }
344
- }
345
- W.prototype.clear = mr;
346
- W.prototype.delete = br;
347
- W.prototype.get = yr;
348
- W.prototype.has = vr;
349
- W.prototype.set = wr;
350
- var Tr = 200;
351
- function $r(e, t) {
352
- var n = this.__data__;
353
- if (n instanceof D) {
354
- var r = n.__data__;
355
- if (!Z || r.length < Tr - 1)
356
- return r.push([e, t]), this.size = ++n.size, this;
357
- n = this.__data__ = new W(r);
358
- }
359
- return n.set(e, t), this.size = n.size, this;
360
- }
361
- function H(e) {
362
- var t = this.__data__ = new D(e);
363
- this.size = t.size;
364
- }
365
- H.prototype.clear = zn;
366
- H.prototype.delete = Vn;
367
- H.prototype.get = kn;
368
- H.prototype.has = Rn;
369
- H.prototype.set = $r;
370
- function Sr(e, t) {
371
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
372
- ;
373
- return e;
374
- }
375
- var ie = function() {
376
- try {
377
- var e = U(Object, "defineProperty");
378
- return e({}, "", {}), e;
379
- } catch {
380
- }
381
- }();
382
- function De(e, t, n) {
383
- t == "__proto__" && ie ? ie(e, t, {
384
- configurable: !0,
385
- enumerable: !0,
386
- value: n,
387
- writable: !0
388
- }) : e[t] = n;
389
- }
390
- var _r = Object.prototype, Or = _r.hasOwnProperty;
391
- function _t(e, t, n) {
392
- var r = e[t];
393
- (!(Or.call(e, t) && se(r, n)) || n === void 0 && !(t in e)) && De(e, t, n);
394
- }
395
- function Er(e, t, n, r) {
396
- var a = !n;
397
- n || (n = {});
398
- for (var o = -1, l = t.length; ++o < l; ) {
399
- var i = t[o], s = void 0;
400
- s === void 0 && (s = e[i]), a ? De(n, i, s) : _t(n, i, s);
401
- }
402
- return n;
403
- }
404
- function jr(e, t) {
405
- for (var n = -1, r = Array(e); ++n < e; )
406
- r[n] = t(n);
407
- return r;
408
- }
409
- var Ar = "[object Arguments]";
410
- function Ke(e) {
411
- return L(e) && R(e) == Ar;
412
- }
413
- var Ot = Object.prototype, Pr = Ot.hasOwnProperty, Mr = Ot.propertyIsEnumerable, $e = Ke(/* @__PURE__ */ function() {
414
- return arguments;
415
- }()) ? Ke : function(e) {
416
- return L(e) && Pr.call(e, "callee") && !Mr.call(e, "callee");
417
- }, ee = Array.isArray;
418
- function Cr() {
419
- return !1;
420
- }
421
- var Et = typeof exports == "object" && exports && !exports.nodeType && exports, Xe = Et && typeof module == "object" && module && !module.nodeType && module, Dr = Xe && Xe.exports === Et, qe = Dr ? j.Buffer : void 0, Ir = qe ? qe.isBuffer : void 0, Ie = Ir || Cr, Br = 9007199254740991, Lr = /^(?:0|[1-9]\d*)$/;
422
- function jt(e, t) {
423
- var n = typeof e;
424
- return t = t ?? Br, !!t && (n == "number" || n != "symbol" && Lr.test(e)) && e > -1 && e % 1 == 0 && e < t;
425
- }
426
- var Wr = 9007199254740991;
427
- function At(e) {
428
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Wr;
429
- }
430
- var Nr = "[object Arguments]", zr = "[object Array]", Vr = "[object Boolean]", kr = "[object Date]", Rr = "[object Error]", Fr = "[object Function]", Ur = "[object Map]", Hr = "[object Number]", Gr = "[object Object]", Kr = "[object RegExp]", Xr = "[object Set]", qr = "[object String]", Yr = "[object WeakMap]", Qr = "[object ArrayBuffer]", Jr = "[object DataView]", Zr = "[object Float32Array]", xr = "[object Float64Array]", eo = "[object Int8Array]", to = "[object Int16Array]", no = "[object Int32Array]", ro = "[object Uint8Array]", oo = "[object Uint8ClampedArray]", ao = "[object Uint16Array]", io = "[object Uint32Array]", y = {};
431
- y[Zr] = y[xr] = y[eo] = y[to] = y[no] = y[ro] = y[oo] = y[ao] = y[io] = !0;
432
- y[Nr] = y[zr] = y[Qr] = y[Vr] = y[Jr] = y[kr] = y[Rr] = y[Fr] = y[Ur] = y[Hr] = y[Gr] = y[Kr] = y[Xr] = y[qr] = y[Yr] = !1;
433
- function so(e) {
434
- return L(e) && At(e.length) && !!y[R(e)];
435
- }
436
- function Be(e) {
437
- return function(t) {
438
- return e(t);
439
- };
440
- }
441
- var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, J = Pt && typeof module == "object" && module && !module.nodeType && module, lo = J && J.exports === Pt, ye = lo && Tt.process, X = function() {
442
- try {
443
- var e = J && J.require && J.require("util").types;
444
- return e || ye && ye.binding && ye.binding("util");
445
- } catch {
446
- }
447
- }(), Ye = X && X.isTypedArray, Mt = Ye ? Be(Ye) : so, uo = Object.prototype, co = uo.hasOwnProperty;
448
- function Ct(e, t) {
449
- var n = ee(e), r = !n && $e(e), a = !n && !r && Ie(e), o = !n && !r && !a && Mt(e), l = n || r || a || o, i = l ? jr(e.length, String) : [], s = i.length;
450
- for (var d in e)
451
- (t || co.call(e, d)) && !(l && // Safari 9 has enumerable `arguments.length` in strict mode.
452
- (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
453
- a && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
454
- o && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
455
- jt(d, s))) && i.push(d);
456
- return i;
457
- }
458
- var po = Object.prototype;
459
- function Le(e) {
460
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || po;
461
- return e === n;
462
- }
463
- function Dt(e, t) {
464
- return function(n) {
465
- return e(t(n));
466
- };
467
- }
468
- var fo = Dt(Object.keys, Object), go = Object.prototype, ho = go.hasOwnProperty;
469
- function bo(e) {
470
- if (!Le(e))
471
- return fo(e);
472
- var t = [];
473
- for (var n in Object(e))
474
- ho.call(e, n) && n != "constructor" && t.push(n);
475
- return t;
476
- }
477
- function ue(e) {
478
- return e != null && At(e.length) && !Ce(e);
479
- }
480
- function yo(e) {
481
- return ue(e) ? Ct(e) : bo(e);
482
- }
483
- function vo(e) {
484
- var t = [];
485
- if (e != null)
486
- for (var n in Object(e))
487
- t.push(n);
488
- return t;
489
- }
490
- var wo = Object.prototype, To = wo.hasOwnProperty;
491
- function $o(e) {
492
- if (!O(e))
493
- return vo(e);
494
- var t = Le(e), n = [];
495
- for (var r in e)
496
- r == "constructor" && (t || !To.call(e, r)) || n.push(r);
497
- return n;
498
- }
499
- function It(e) {
500
- return ue(e) ? Ct(e, !0) : $o(e);
501
- }
502
- var Bt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Bt && typeof module == "object" && module && !module.nodeType && module, So = Qe && Qe.exports === Bt, Je = So ? j.Buffer : void 0, Ze = Je ? Je.allocUnsafe : void 0;
503
- function Lt(e, t) {
504
- if (t)
505
- return e.slice();
506
- var n = e.length, r = Ze ? Ze(n) : new e.constructor(n);
507
- return e.copy(r), r;
508
- }
509
- function _o(e, t) {
510
- var n = -1, r = e.length;
511
- for (t || (t = Array(r)); ++n < r; )
512
- t[n] = e[n];
513
- return t;
514
- }
515
- function Oo(e, t) {
516
- for (var n = -1, r = e == null ? 0 : e.length, a = 0, o = []; ++n < r; ) {
517
- var l = e[n];
518
- t(l, n, e) && (o[a++] = l);
519
- }
520
- return o;
521
- }
522
- function Eo() {
523
- return [];
524
- }
525
- var jo = Object.prototype, Ao = jo.propertyIsEnumerable, xe = Object.getOwnPropertySymbols, Po = xe ? function(e) {
526
- return e == null ? [] : (e = Object(e), Oo(xe(e), function(t) {
527
- return Ao.call(e, t);
528
- }));
529
- } : Eo;
530
- function Mo(e, t) {
531
- for (var n = -1, r = t.length, a = e.length; ++n < r; )
532
- e[a + n] = t[n];
533
- return e;
534
- }
535
- var Wt = Dt(Object.getPrototypeOf, Object);
536
- function Co(e, t, n) {
537
- var r = t(e);
538
- return ee(e) ? r : Mo(r, n(e));
539
- }
540
- function Do(e) {
541
- return Co(e, yo, Po);
542
- }
543
- var Se = U(j, "DataView"), _e = U(j, "Promise"), Oe = U(j, "Set"), Ee = U(j, "WeakMap"), et = "[object Map]", Io = "[object Object]", tt = "[object Promise]", nt = "[object Set]", rt = "[object WeakMap]", ot = "[object DataView]", Bo = F(Se), Lo = F(Z), Wo = F(_e), No = F(Oe), zo = F(Ee), P = R;
544
- (Se && P(new Se(new ArrayBuffer(1))) != ot || Z && P(new Z()) != et || _e && P(_e.resolve()) != tt || Oe && P(new Oe()) != nt || Ee && P(new Ee()) != rt) && (P = function(e) {
545
- var t = R(e), n = t == Io ? e.constructor : void 0, r = n ? F(n) : "";
546
- if (r)
547
- switch (r) {
548
- case Bo:
549
- return ot;
550
- case Lo:
551
- return et;
552
- case Wo:
553
- return tt;
554
- case No:
555
- return nt;
556
- case zo:
557
- return rt;
558
- }
559
- return t;
560
- });
561
- var Vo = Object.prototype, ko = Vo.hasOwnProperty;
562
- function Ro(e) {
563
- var t = e.length, n = new e.constructor(t);
564
- return t && typeof e[0] == "string" && ko.call(e, "index") && (n.index = e.index, n.input = e.input), n;
565
- }
566
- var at = j.Uint8Array;
567
- function We(e) {
568
- var t = new e.constructor(e.byteLength);
569
- return new at(t).set(new at(e)), t;
570
- }
571
- function Fo(e, t) {
572
- var n = We(e.buffer);
573
- return new e.constructor(n, e.byteOffset, e.byteLength);
574
- }
575
- var Uo = /\w*$/;
576
- function Ho(e) {
577
- var t = new e.constructor(e.source, Uo.exec(e));
578
- return t.lastIndex = e.lastIndex, t;
579
- }
580
- var it = K ? K.prototype : void 0, st = it ? it.valueOf : void 0;
581
- function Go(e) {
582
- return st ? Object(st.call(e)) : {};
583
- }
584
- function Nt(e, t) {
585
- var n = t ? We(e.buffer) : e.buffer;
586
- return new e.constructor(n, e.byteOffset, e.length);
587
- }
588
- var Ko = "[object Boolean]", Xo = "[object Date]", qo = "[object Map]", Yo = "[object Number]", Qo = "[object RegExp]", Jo = "[object Set]", Zo = "[object String]", xo = "[object Symbol]", ea = "[object ArrayBuffer]", ta = "[object DataView]", na = "[object Float32Array]", ra = "[object Float64Array]", oa = "[object Int8Array]", aa = "[object Int16Array]", ia = "[object Int32Array]", sa = "[object Uint8Array]", la = "[object Uint8ClampedArray]", da = "[object Uint16Array]", ua = "[object Uint32Array]";
589
- function ca(e, t, n) {
590
- var r = e.constructor;
591
- switch (t) {
592
- case ea:
593
- return We(e);
594
- case Ko:
595
- case Xo:
596
- return new r(+e);
597
- case ta:
598
- return Fo(e);
599
- case na:
600
- case ra:
601
- case oa:
602
- case aa:
603
- case ia:
604
- case sa:
605
- case la:
606
- case da:
607
- case ua:
608
- return Nt(e, n);
609
- case qo:
610
- return new r();
611
- case Yo:
612
- case Zo:
613
- return new r(e);
614
- case Qo:
615
- return Ho(e);
616
- case Jo:
617
- return new r();
618
- case xo:
619
- return Go(e);
620
- }
621
- }
622
- var lt = Object.create, pa = /* @__PURE__ */ function() {
623
- function e() {
624
- }
625
- return function(t) {
626
- if (!O(t))
627
- return {};
628
- if (lt)
629
- return lt(t);
630
- e.prototype = t;
631
- var n = new e();
632
- return e.prototype = void 0, n;
633
- };
634
- }();
635
- function zt(e) {
636
- return typeof e.constructor == "function" && !Le(e) ? pa(Wt(e)) : {};
637
- }
638
- var fa = "[object Map]";
639
- function ga(e) {
640
- return L(e) && P(e) == fa;
641
- }
642
- var dt = X && X.isMap, ma = dt ? Be(dt) : ga, ha = "[object Set]";
643
- function ba(e) {
644
- return L(e) && P(e) == ha;
645
- }
646
- var ut = X && X.isSet, ya = ut ? Be(ut) : ba, va = 1, Vt = "[object Arguments]", wa = "[object Array]", Ta = "[object Boolean]", $a = "[object Date]", Sa = "[object Error]", kt = "[object Function]", _a = "[object GeneratorFunction]", Oa = "[object Map]", Ea = "[object Number]", Rt = "[object Object]", ja = "[object RegExp]", Aa = "[object Set]", Pa = "[object String]", Ma = "[object Symbol]", Ca = "[object WeakMap]", Da = "[object ArrayBuffer]", Ia = "[object DataView]", Ba = "[object Float32Array]", La = "[object Float64Array]", Wa = "[object Int8Array]", Na = "[object Int16Array]", za = "[object Int32Array]", Va = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", Ra = "[object Uint16Array]", Fa = "[object Uint32Array]", h = {};
647
- h[Vt] = h[wa] = h[Da] = h[Ia] = h[Ta] = h[$a] = h[Ba] = h[La] = h[Wa] = h[Na] = h[za] = h[Oa] = h[Ea] = h[Rt] = h[ja] = h[Aa] = h[Pa] = h[Ma] = h[Va] = h[ka] = h[Ra] = h[Fa] = !0;
648
- h[Sa] = h[kt] = h[Ca] = !1;
649
- function oe(e, t, n, r, a, o) {
650
- var l, i = t & va;
651
- if (l !== void 0)
652
- return l;
653
- if (!O(e))
654
- return e;
655
- var s = ee(e);
656
- if (s)
657
- l = Ro(e);
658
- else {
659
- var d = P(e), u = d == kt || d == _a;
660
- if (Ie(e))
661
- return Lt(e, i);
662
- if (d == Rt || d == Vt || u && !a)
663
- l = u ? {} : zt(e);
664
- else {
665
- if (!h[d])
666
- return a ? e : {};
667
- l = ca(e, d, i);
668
- }
669
- }
670
- o || (o = new H());
671
- var c = o.get(e);
672
- if (c)
673
- return c;
674
- o.set(e, l), ya(e) ? e.forEach(function(w) {
675
- l.add(oe(w, t, n, w, e, o));
676
- }) : ma(e) && e.forEach(function(w, A) {
677
- l.set(A, oe(w, t, n, A, e, o));
678
- });
679
- var p = Do, b = s ? void 0 : p(e);
680
- return Sr(b || e, function(w, A) {
681
- b && (A = w, w = e[A]), _t(l, A, oe(w, t, n, A, e, o));
682
- }), l;
683
- }
684
- var Ua = 1, Ha = 4;
685
- function gs(e) {
686
- return oe(e, Ua | Ha);
687
- }
688
- var Ga = "Expected a function";
689
- function Ft(e, t) {
690
- if (typeof e != "function" || t != null && typeof t != "function")
691
- throw new TypeError(Ga);
692
- var n = function() {
693
- var r = arguments, a = t ? t.apply(this, r) : r[0], o = n.cache;
694
- if (o.has(a))
695
- return o.get(a);
696
- var l = e.apply(this, r);
697
- return n.cache = o.set(a, l) || o, l;
698
- };
699
- return n.cache = new (Ft.Cache || W)(), n;
700
- }
701
- Ft.Cache = W;
702
- var Ka = "Expected a function";
703
- function ms(e, t, n) {
704
- var r = !0, a = !0;
705
- if (typeof e != "function")
706
- throw new TypeError(Ka);
707
- return O(n) && (r = "leading" in n ? !!n.leading : r, a = "trailing" in n ? !!n.trailing : a), St(e, t, {
708
- leading: r,
709
- maxWait: t,
710
- trailing: a
711
- });
712
- }
713
- function je(e, t, n) {
714
- (n !== void 0 && !se(e[t], n) || n === void 0 && !(t in e)) && De(e, t, n);
715
- }
716
- function Xa(e) {
717
- return function(t, n, r) {
718
- for (var a = -1, o = Object(t), l = r(t), i = l.length; i--; ) {
719
- var s = l[++a];
720
- if (n(o[s], s, o) === !1)
721
- break;
722
- }
723
- return t;
724
- };
725
- }
726
- var qa = Xa();
727
- function Ya(e) {
728
- return L(e) && ue(e);
729
- }
730
- var Qa = "[object Object]", Ja = Function.prototype, Za = Object.prototype, Ut = Ja.toString, xa = Za.hasOwnProperty, ei = Ut.call(Object);
731
- function ti(e) {
732
- if (!L(e) || R(e) != Qa)
733
- return !1;
734
- var t = Wt(e);
735
- if (t === null)
736
- return !0;
737
- var n = xa.call(t, "constructor") && t.constructor;
738
- return typeof n == "function" && n instanceof n && Ut.call(n) == ei;
739
- }
740
- function Ae(e, t) {
741
- if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
742
- return e[t];
743
- }
744
- function ni(e) {
745
- return Er(e, It(e));
746
- }
747
- function ri(e, t, n, r, a, o, l) {
748
- var i = Ae(e, n), s = Ae(t, n), d = l.get(s);
749
- if (d) {
750
- je(e, n, d);
751
- return;
752
- }
753
- var u = o ? o(i, s, n + "", e, t, l) : void 0, c = u === void 0;
754
- if (c) {
755
- var p = ee(s), b = !p && Ie(s), w = !p && !b && Mt(s);
756
- u = s, p || b || w ? ee(i) ? u = i : Ya(i) ? u = _o(i) : b ? (c = !1, u = Lt(s, !0)) : w ? (c = !1, u = Nt(s, !0)) : u = [] : ti(s) || $e(s) ? (u = i, $e(i) ? u = ni(i) : (!O(i) || Ce(i)) && (u = zt(s))) : c = !1;
757
- }
758
- c && (l.set(s, u), a(u, s, r, o, l), l.delete(s)), je(e, n, u);
759
- }
760
- function Ht(e, t, n, r, a) {
761
- e !== t && qa(t, function(o, l) {
762
- if (a || (a = new H()), O(o))
763
- ri(e, t, l, n, Ht, r, a);
764
- else {
765
- var i = r ? r(Ae(e, l), o, l + "", e, t, a) : void 0;
766
- i === void 0 && (i = o), je(e, l, i);
767
- }
768
- }, It);
769
- }
770
- function Gt(e) {
771
- return e;
772
- }
773
- function oi(e, t, n) {
774
- switch (n.length) {
775
- case 0:
776
- return e.call(t);
777
- case 1:
778
- return e.call(t, n[0]);
779
- case 2:
780
- return e.call(t, n[0], n[1]);
781
- case 3:
782
- return e.call(t, n[0], n[1], n[2]);
783
- }
784
- return e.apply(t, n);
785
- }
786
- var ct = Math.max;
787
- function ai(e, t, n) {
788
- return t = ct(t === void 0 ? e.length - 1 : t, 0), function() {
789
- for (var r = arguments, a = -1, o = ct(r.length - t, 0), l = Array(o); ++a < o; )
790
- l[a] = r[t + a];
791
- a = -1;
792
- for (var i = Array(t + 1); ++a < t; )
793
- i[a] = r[a];
794
- return i[t] = n(l), oi(e, this, i);
795
- };
796
- }
797
- function ii(e) {
798
- return function() {
799
- return e;
800
- };
801
- }
802
- var si = ie ? function(e, t) {
803
- return ie(e, "toString", {
804
- configurable: !0,
805
- enumerable: !1,
806
- value: ii(t),
807
- writable: !0
808
- });
809
- } : Gt, li = 800, di = 16, ui = Date.now;
810
- function ci(e) {
811
- var t = 0, n = 0;
812
- return function() {
813
- var r = ui(), a = di - (r - n);
814
- if (n = r, a > 0) {
815
- if (++t >= li)
816
- return arguments[0];
817
- } else
818
- t = 0;
819
- return e.apply(void 0, arguments);
820
- };
821
- }
822
- var pi = ci(si);
823
- function fi(e, t) {
824
- return pi(ai(e, t, Gt), e + "");
825
- }
826
- function gi(e, t, n) {
827
- if (!O(n))
828
- return !1;
829
- var r = typeof t;
830
- return (r == "number" ? ue(n) && jt(t, n.length) : r == "string" && t in n) ? se(n[t], e) : !1;
831
- }
832
- function mi(e) {
833
- return fi(function(t, n) {
834
- var r = -1, a = n.length, o = a > 1 ? n[a - 1] : void 0, l = a > 2 ? n[2] : void 0;
835
- for (o = e.length > 3 && typeof o == "function" ? (a--, o) : void 0, l && gi(n[0], n[1], l) && (o = a < 3 ? void 0 : o, a = 1), t = Object(t); ++r < a; ) {
836
- var i = n[r];
837
- i && e(t, i, r, o);
838
- }
839
- return t;
840
- });
841
- }
842
- var hs = mi(function(e, t, n) {
843
- Ht(e, t, n);
844
- });
845
- const hi = 100, Ne = /* @__PURE__ */ new Map(), re = {
846
- width: window.innerWidth,
847
- height: window.innerHeight
848
- }, bi = (e) => {
849
- Ne.set(e, e);
850
- }, yi = (e) => {
851
- Ne.delete(e);
852
- }, vi = St((e) => {
853
- const t = e;
854
- t.topEvent = {
855
- widthDiff: re.width - window.innerWidth,
856
- hightDiff: re.height - window.innerHeight
857
- }, re.width = window.innerWidth, re.height = window.innerHeight, Ne.forEach((n) => n(t));
858
- }, hi);
859
- window.addEventListener("resize", vi);
860
- const wi = {
861
- addOnReize: bi,
862
- removeOnResize: yi
863
- };
864
- var gt;
865
- const G = {
866
- /**
867
- * Имя темы оформления
868
- *
869
- * В данный момент не используется для загрузки css
870
- *
871
- * @todo Реализовать загрузки и замену css темы на стороне UI
872
- *
873
- * @see https://ui.topvisor.com/?path=/docs/core-theme--docs
874
- */
875
- themeName: "light",
876
- /**
877
- * CSS-классы модификаторы для документа страницы
878
- *
879
- * Могут испоьзвоаться компонентами для включения необхоимых режимов отображения страницы
880
- *
881
- * Разные компоненты могут добавлять один и тот же класс, чтобы не было конфликтов каждый компонент управляет только своим классом:
882
- * - Ключ - уникальное имя компонента, например в setup: `const uid = Math.random();`
883
- * - Значение - класс модификатора
884
- */
885
- documentClassModificators: /* @__PURE__ */ new Map(),
886
- /**
887
- * Базовая ширина страницы для отображения ПК / Мобильной версии сайта
888
- *
889
- * @see Core state isMobile
890
- */
891
- widthForMobile: 900,
892
- /**
893
- * Формат даты, который будет испоьзоваться по умолчанию для вывода даты, как правило, завсит от текущего пользователя
894
- */
895
- dateFormat: "Y-m-d",
896
- /**
897
- * Валюта, которая будет испоьзоваться по умолчанию, как правило, завсит от текущего пользователя
898
- */
899
- currency: "USD",
900
- /**
901
- * Для Москвы: +0300
902
- */
903
- gmt: (gt = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : gt[1]
904
- }, Ti = {
905
- /**
906
- * CSS-классы модификаторы для документа страницы
907
- */
908
- documentClassModificators: G.documentClassModificators,
909
- dateFormat: G.dateFormat,
910
- currency: G.currency,
911
- gmt: G.gmt,
912
- /**
913
- * Device by size
914
- *
915
- * @see Core widthForMobile
916
- */
917
- isMobile: !1,
918
- /**
919
- * Device by user agent
920
- */
921
- isMobileUA: !1,
922
- /**
923
- * true, если плотность пикселей экрана больше 1
924
- */
925
- isRetina: !1,
926
- /**
927
- * true, елси это приложение
928
- */
929
- isApp: !1,
930
- /**
931
- * true при горизонтальном расположении устройства
932
- */
933
- isLandscape: !0,
934
- /**
935
- * true при вертикальном расположении устройства
936
- */
937
- isPortrait: !1,
938
- /**
939
- * Максимальная сторона страницы
940
- */
941
- size: 0,
942
- /**
943
- * true, если страница скрыта
944
- *
945
- * Не меняйте это значение вручную
946
- */
947
- isHidden: !1
948
- };
949
- class $i {
950
- /**
951
- * Загрузить в память полный функционал TopNotice
952
- */
953
- static async TopNotice() {
954
- await import("./notice-Cqs1dKt8.es.js");
955
- }
956
- /**
957
- * Загрузить в память полный функционал TopPopup
958
- */
959
- static async TopPopup() {
960
- await import("./popup-N10MDafw.es.js");
961
- }
962
- /**
963
- * Загрузить в память полный функционал TopDialog
964
- */
965
- static async TopDialog() {
966
- const { TopDialogWorker: t } = await import("../core/app.js");
967
- await t.getDialogsUtils();
968
- }
969
- }
970
- class f {
971
- static state = ve({ ...Ti });
972
- static preloaders = $i;
973
- static widthForMobile = G.widthForMobile;
974
- static themeName = G.themeName;
975
- static matchMediaIsMobile;
976
- static $ = $;
977
- static Events = wi;
978
- /**
979
- * Различные флаги, необходимые для работы UI
980
- */
981
- static flags = ve({ needLoadNotice: !1 });
982
- static _setState() {
983
- this.$ = $, f.matchMediaIsMobile = window.matchMedia(`(max-width: ${f.widthForMobile}px)`), f.state.isMobileUA = on(), f.state.isRetina = rn(), f.state.isApp = an(), f.useDocumentClassModificators(), f.useIsHidden(), f.setStateByWindowSize(), f.Events.addOnReize(f.onResize), f.onResize(), f.saveToCookie(), f.useCtrlClasses();
984
- }
985
- static useDocumentClassModificators() {
986
- mt(() => [...f.state.documentClassModificators], (t, n) => {
987
- let r = /* @__PURE__ */ new Set();
988
- n == null || n.forEach(([a, o]) => r.add(o)), t.forEach(([a, o]) => r.delete(o)), r.forEach((a) => document.documentElement.classList.remove(a)), t.forEach(([a, o]) => document.documentElement.classList.add(o));
989
- }, { immediate: !0 });
990
- }
991
- static useIsHidden() {
992
- document.addEventListener("visibilitychange", () => {
993
- f.state.isHidden = document.hidden;
994
- }), f.state.isHidden = document.hidden;
995
- }
996
- static setStateByWindowSize() {
997
- var t;
998
- f.state.isMobile = !!((t = f.matchMediaIsMobile) != null && t.matches), f.state.isLandscape = window.innerWidth > window.innerHeight, f.state.isPortrait = !f.state.isLandscape, f.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, f.saveToCookie();
999
- }
1000
- static onResize() {
1001
- f.setStateByWindowSize();
1002
- }
1003
- /**
1004
- * Сохранить информацию об устройстве в cookie
1005
- */
1006
- static saveToCookie() {
1007
- const t = [
1008
- 1,
1009
- window.innerWidth,
1010
- window.innerHeight,
1011
- window.devicePixelRatio,
1012
- Number(f.state.isMobile),
1013
- Number(f.state.isRetina)
1014
- ];
1015
- document.cookie = "device=" + t.join(",") + "; path=/;";
1016
- }
1017
- /**
1018
- * Добавить установку класса при нажатии ctrl (cmd) / alt
1019
- */
1020
- static useCtrlClasses() {
1021
- const t = document.body.classList;
1022
- document.addEventListener("keydown", (n) => {
1023
- (n.ctrlKey || n.metaKey) && t.add("top-body-press_ctrl"), n.altKey && t.add("top-body-press_alt");
1024
- }), document.addEventListener("keyup", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), document.addEventListener("keypress", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), window.addEventListener("blur", () => t.remove("top-body-press_ctrl", "top-body-press_alt"));
1025
- }
1026
- /**
1027
- * Вывести на экране сообщение в стилизации под push уведомление
1028
- *
1029
- * Для удобства работы со словарем, принимает один парамтер `text` и первую строку из него использует как `title`.
1030
- * Данное поведение можно изменить, передав в параметрах `options.title`
1031
- *
1032
- * Для вывода используется компонент TopNotice, требует его подклчючения
1033
- *
1034
- * @docs https://ui.topvisor.com/?path=/docs/components-core-notice--docs
1035
- */
1036
- static notice = async (t, n, r) => (f.flags.needLoadNotice = !0, (await import("./notice-Cqs1dKt8.es.js")).show(t, n, r));
1037
- /**
1038
- * Вставить css стили на страницу по ссылке с автоматическим добавлением правил media
1039
- *
1040
- * Правила media:
1041
- * - Файлы *.m.css будут грузиться, только на экранах с шириной менее, чем Core.widthForMobile
1042
- * - Файлы *.pc.css будут грузиться, только на экранах с шириной более, чем Core.widthForMobile
1043
- *
1044
- * Настройкой Core.widthForMobile можно управлять через plugin: @topvisor/ui/plugin/core
1045
- *
1046
- * @param fileNames - список ссылок на css файлы
1047
- * @param useSync - использовать синхронную загрузку css, только для css с того же домена. В синхронном режиме стили предзагружаются независимо от
1048
- * media
1049
- */
1050
- static insertCSSLinkToPage = (t, n = !1) => {
1051
- const r = /* @__PURE__ */ new Map();
1052
- r.set("::", []), t.forEach((o) => {
1053
- let l = !1, i = !1;
1054
- o.match(/\.m\./) && (l = !0), o.match(/\.pc\./) && (i = !0);
1055
- const s = `${l}:${i}`;
1056
- r.has(s) || r.set(`${l}:${i}`, []), r.get(`${l}:${i}`).push(o);
1057
- });
1058
- const a = [];
1059
- return r.forEach((o, l) => {
1060
- if (!o.length)
1061
- return;
1062
- const [i, s] = l.split(":").map((c) => c === "true");
1063
- let d = "all";
1064
- i && (d = "(max-width: " + f.widthForMobile + "px)"), s && (d = "(min-width: " + f.widthForMobile + "px)"), f._insertToPage(o, d, n).forEach((c) => a.push(c));
1065
- }), Promise.all(a);
1066
- };
1067
- static _insertToPage = (t, n, r) => {
1068
- const a = [];
1069
- return t.forEach((o) => {
1070
- if (r) {
1071
- const c = new XMLHttpRequest();
1072
- c.open("GET", o, !1), c.send();
1073
- }
1074
- const l = "topCSSLink-" + o.replace(/\W/g, "-");
1075
- if (window.hasOwnProperty(l)) return;
1076
- let i, s;
1077
- const d = new Promise((c, p) => {
1078
- i = c, s = p;
1079
- });
1080
- a.push(d);
1081
- const u = document.createElement("link");
1082
- u.id = l, u.rel = "stylesheet", u.media = n, u.href = o, u.onload = () => i(), u.onerror = () => s(), document.head.append(u);
1083
- }), a;
1084
- };
1085
- /**
1086
- * Вставить css стили на страницу с автоматическим добавлением правил media
1087
- *
1088
- * Загрузка с Vite:
1089
- *
1090
- * ```js
1091
- * import style from '/style.css?inline';
1092
- *
1093
- * insertToPageAsInine(style);
1094
- * ```
1095
- *
1096
- * Загрузка с fetch:
1097
- *
1098
- * ```js
1099
- * const style = await fetch('./style.css');
1100
- *
1101
- * insertToPageAsInine(style);
1102
- * ```
1103
- *
1104
- * @param style - css стили в строке
1105
- * @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.widthForMobile
1106
- *
1107
- * @see insertToPage
1108
- */
1109
- static insertStyleToPage = (t, n = "") => {
1110
- let r = "all";
1111
- n === "m" && (r = "(max-width: " + f.widthForMobile + "px)"), n === "pc" && (r = "(min-width: " + f.widthForMobile + "px)");
1112
- const a = document.createElement("style");
1113
- a.innerHTML = t, a.media = r, document.head.append(a);
1114
- };
1115
- }
1116
- const bs = {
1117
- install: (e, t) => {
1118
- const n = (r, a, o) => e.config.globalProperties.$i18n[r][a] ? Object.entries(o).reduce((l, [i, s]) => l.replaceAll(new RegExp(`{{ ${i} }}`, "g"), s), e.config.globalProperties.$i18n[r][a]) : "";
1119
- Object.setPrototypeOf(n, ve(t.i18n)), e.config.globalProperties.$i18n = n, e.config.globalProperties.$i18nLang = Me(t.lang), e.config.globalProperties.i18n = e.config.globalProperties.$i18n, typeof window < "u" && !window.requirejs && (globalThis.$i18n = e.config.globalProperties.$i18n), e.provide("$i18n", e.config.globalProperties.$i18n), e.provide("$i18nLang", e.config.globalProperties.$i18nLang), e.provide("i18n", e.config.globalProperties.i18n);
1120
- }
1121
- }, ce = () => {
1122
- var e, t;
1123
- return !we() && ((t = (e = window.mo) == null ? void 0 : e.user) != null && t.lang) ? requirejs("i18n").categories[mo.user.lang] : !we() && globalThis.$i18n ? globalThis.$i18n : ht("$i18n");
1124
- }, ys = () => {
1125
- var e, t;
1126
- return !we() && ((t = (e = window.mo) == null ? void 0 : e.user) != null && t.lang) ? Me(mo.user.lang) : ht("$i18nLang");
1127
- }, vs = (e, t, n) => {
1128
- const r = ce().Calendar;
1129
- switch (new Date(e, --t, n).getDay()) {
1130
- case 0:
1131
- return r.Dw_1 + ".";
1132
- case 1:
1133
- return r.Dw_2 + ".";
1134
- case 2:
1135
- return r.Dw_3 + ".";
1136
- case 3:
1137
- return r.Dw_4 + ".";
1138
- case 4:
1139
- return r.Dw_5 + ".";
1140
- case 5:
1141
- return r.Dw_6 + ".";
1142
- case 6:
1143
- return r.Dw_7 + ".";
1144
- default:
1145
- return "";
1146
- }
1147
- }, ws = (e, t = !0, n = 2) => {
1148
- let r = String(e.getFullYear()), a = String(e.getDate()).padStart(2, "0"), o = String(e.getMonth() + 1).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0"), s = String(e.getSeconds()).padStart(2, "0"), d = r + "-" + o + "-" + a;
1149
- return n >= 1 && (d += " " + l), n >= 2 && (d += ":" + i), n === 3 && (d += ":" + s), t && (d = q(d, n)), d;
1150
- };
1151
- function Ts(e) {
1152
- return e.indexOf("T") === -1 && (e.length == 10 && (e += " 00:00:00"), e = e.replace(" ", "T") + f.state.gmt), new Date(e);
1153
- }
1154
- function Si(e, t = !0, n = 0) {
1155
- e || (e = (/* @__PURE__ */ new Date()).getTime());
1156
- const r = new Date(e), a = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), l = r.getDate().toString().padStart(2, "0"), i = r.getHours().toString().padStart(2, "0"), s = r.getMinutes().toString().padStart(2, "0"), d = r.getSeconds().toString().padStart(2, "0");
1157
- n === "auto" && (n = 0, r.getHours() && (n = 1), r.getMinutes() && (n = 2), r.getSeconds() && (n = 3));
1158
- let u = a + "-" + o + "-" + l;
1159
- return n && (u += " "), n >= 1 && (u += i), n >= 2 && (u += ":" + s), n >= 3 && (u += ":" + d), t && (u = q(r, n)), u;
1160
- }
1161
- function $s(e, t = !0) {
1162
- const r = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
1163
- let o;
1164
- e !== void 0 ? o = new Date(e) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - r + a);
1165
- let l = String(o.getFullYear()), i = String(o.getDate()).padStart(2, "0"), s = String(o.getMonth() + 1).padStart(2, "0"), d = String(o.getHours()).padStart(2, "0"), u = String(o.getMinutes()).padStart(2, "0"), c = String(o.getSeconds()).padStart(2, "0"), p = l + "-" + s + "-" + i + " " + d + ":" + u + ":" + c;
1166
- return t && (p = q(p)), p;
1167
- }
1168
- function q(e, t = 2, n, r) {
1169
- if (r || (r = ce().Common.Not_date), typeof e == "string" && (!e || e.substring(0, 10) === "0000-00-00") && r && r !== "0000-00-00" || !e) return r;
1170
- n || (n = f.state.dateFormat), n = n.toLowerCase().replace("m", "mm").replace("y", "yy").replace("d", "dd");
1171
- let a;
1172
- if (e instanceof Date)
1173
- a = e;
1174
- else {
1175
- let l = e.substring(0, 10);
1176
- if (l.length === 7 && (l += "-01"), l += " 00:00", l = l.replace(/-/g, "/"), a = new Date(l), isNaN(Number(a))) return r;
1177
- }
1178
- let o = "";
1179
- if (n && window.$ && (o = $.datepicker.formatDate(n, a)), t && typeof e == "string" && e.length > 10 || t && e instanceof Date) {
1180
- let l = "";
1181
- if (e instanceof Date)
1182
- l = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
1183
- hour12: !1,
1184
- hour: "numeric",
1185
- minute: t >= 2 ? "numeric" : void 0,
1186
- second: t >= 3 ? "numeric" : void 0
1187
- });
1188
- else
1189
- switch (t) {
1190
- // часы
1191
- case 1:
1192
- l = e.substring(11, 13);
1193
- break;
1194
- // часы и минуты
1195
- case 2:
1196
- l = e.substring(11, 16);
1197
- break;
1198
- // часы, минуты и секунды
1199
- case 3:
1200
- l = e.substring(11, 19);
1201
- break;
1202
- }
1203
- o += " " + l;
1204
- }
1205
- return o = o.trim(), o;
1206
- }
1207
- function pt(e, t) {
1208
- if (t || (t = ce().Common.Not_date), !e)
1209
- return t;
1210
- if (e.match(/\d\d\d\d-\d\d-\d\d/))
1211
- return e;
1212
- const n = f.state.dateFormat.toLowerCase(), r = e.split(/\W/), a = n.split(/\W/);
1213
- let o = "", l = "", i = "";
1214
- a.forEach((d, u) => {
1215
- switch (d) {
1216
- case "d":
1217
- o = r[u];
1218
- break;
1219
- case "m":
1220
- l = r[u];
1221
- break;
1222
- case "y":
1223
- i = r[u];
1224
- break;
1225
- }
1226
- });
1227
- let s = i + "-" + l + "-" + o;
1228
- return s.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + s), s = Si((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), s;
1229
- }
1230
- const _i = { class: "top-avatar" }, Oi = ["src", "title"], Ei = ["title"], ji = /* @__PURE__ */ E({
1231
- __name: "avatar",
1232
- props: {
1233
- size: { default: 64 },
1234
- image: {},
1235
- nickname: {},
1236
- isOnline: { type: Boolean },
1237
- lastActiveTime: {},
1238
- i18n: { default: () => ({
1239
- Online: "Online",
1240
- LastSeen: "Last seen"
1241
- }) }
1242
- },
1243
- setup(e) {
1244
- bt((a) => ({
1245
- "3ce69dc2": a.size + "px"
1246
- }));
1247
- const t = e, n = _(() => {
1248
- var a, o;
1249
- if (t.isOnline)
1250
- return (a = t.i18n) == null ? void 0 : a.Online;
1251
- if (t.lastActiveTime)
1252
- return ((o = t.i18n) == null ? void 0 : o.LastSeen) + ": " + q(t.lastActiveTime, 2);
1253
- }), r = _(() => t.nickname ? t.nickname + (n.value ? `
1254
- ${n.value}` : "") : n.value);
1255
- return (a, o) => (g(), m("div", _i, [
1256
- C("img", {
1257
- class: "top-avatar_image",
1258
- src: a.image,
1259
- title: r.value,
1260
- alt: ""
1261
- }, null, 8, Oi),
1262
- a.isOnline ? (g(), m("div", {
1263
- key: 0,
1264
- class: "top-avatar_status",
1265
- title: n.value
1266
- }, null, 8, Ei)) : T("", !0)
1267
- ]));
1268
- }
1269
- }), Ai = ["data-top-badge"], Pi = {
1270
- key: 1,
1271
- class: "top-ellipsis"
1272
- }, Mi = /* @__PURE__ */ E({
1273
- __name: "button",
1274
- props: {
1275
- color: { default: "blue" },
1276
- styling: { default: "" },
1277
- size: { default: "s" },
1278
- name: {},
1279
- title: {},
1280
- icon: {},
1281
- icon2: {},
1282
- href: {},
1283
- badgeNumber: {},
1284
- badgePosAfterText: { type: Boolean },
1285
- disabled: { type: Boolean },
1286
- isSubmit: { type: Boolean },
1287
- isActive: { type: Boolean },
1288
- isProgress: { type: Boolean }
1289
- },
1290
- setup(e) {
1291
- const t = e, n = _(() => t.href ? "a" : "button"), r = _(() => t.isSubmit ? "submit" : void 0);
1292
- return (a, o) => (g(), B(Qt(n.value), {
1293
- class: S({
1294
- "top-active": a.isActive,
1295
- "top-disabled": a.disabled,
1296
- "top-forms-focusable": !a.disabled,
1297
- "top-button": !0,
1298
- "top-button-progress": a.isProgress,
1299
- [`top-size_${a.size}`]: !!a.size,
1300
- [`top-color_${a.color}`]: !0,
1301
- [`top-style_${a.styling}`]: !!a.styling,
1302
- "top-button-withoutText": !a.$slots.default
1303
- }),
1304
- name: a.name,
1305
- title: a.title,
1306
- href: a.href,
1307
- type: r.value,
1308
- "data-top-icon": a.icon || void 0,
1309
- "data-top-icon2": a.icon2 || void 0,
1310
- disabled: a.disabled || void 0,
1311
- inProgress: a.isProgress
1312
- }, {
1313
- default: te(() => [
1314
- a.badgeNumber ? (g(), m("span", {
1315
- key: 0,
1316
- "data-top-badge": a.badgeNumber,
1317
- class: S(["top-button_badge", {
1318
- "top-button_badge-afterText": a.badgePosAfterText
1319
- }])
1320
- }, null, 10, Ai)) : T("", !0),
1321
- a.$slots.default ? (g(), m("span", Pi, [
1322
- M(a.$slots, "default", {}, () => [
1323
- Jt(N(a.icon ? "" : "Button"), 1)
1324
- ])
1325
- ])) : T("", !0),
1326
- M(a.$slots, "html")
1327
- ]),
1328
- _: 3
1329
- }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
1330
- }
1331
- }), Ci = { class: "top-forms-optionLabel" }, pe = /* @__PURE__ */ E({
1332
- __name: "controlLabel",
1333
- props: {
1334
- description: {},
1335
- disabled: { type: Boolean }
1336
- },
1337
- setup(e) {
1338
- return (t, n) => (g(), m("div", Ci, [
1339
- C("div", {
1340
- class: S({
1341
- "top-forms-optionLabel_title": !0,
1342
- "top-forms-optionLabel_title-disabled": t.disabled
1343
- })
1344
- }, [
1345
- M(t.$slots, "default")
1346
- ], 2),
1347
- t.description ? (g(), m("div", {
1348
- key: 0,
1349
- class: S(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
1350
- }, N(t.description), 3)) : T("", !0)
1351
- ]));
1352
- }
1353
- }), Di = ["name", "value", "indeterminate", "disabled"], Ii = /* @__PURE__ */ E({
1354
- __name: "checkbox",
1355
- props: /* @__PURE__ */ Te({
1356
- modelValue: { type: [Boolean, Array, Set] },
1357
- name: {},
1358
- value: {},
1359
- description: {},
1360
- disabled: { type: Boolean },
1361
- indeterminate: { type: Boolean },
1362
- isError: { type: Boolean }
1363
- }, {
1364
- modelValue: { type: [Boolean, Array, Set] },
1365
- modelModifiers: {}
1366
- }),
1367
- emits: ["update:modelValue"],
1368
- setup(e) {
1369
- const t = yt(e, "modelValue");
1370
- return (n, r) => {
1371
- const a = z("top-focus");
1372
- return g(), m("label", {
1373
- class: S({
1374
- "top-forms-optionWrapper": !0,
1375
- "top-checkbox": !0,
1376
- ["top-checkbox_" + n.name]: !!n.name,
1377
- "top-disabled": n.disabled,
1378
- "top-error": n.isError && !n.disabled
1379
- })
1380
- }, [
1381
- V(C("input", {
1382
- type: "checkbox",
1383
- class: S({
1384
- "top-forms-focusable": !n.disabled,
1385
- "top-forms-option": !0,
1386
- "top-checkbox_input": !0,
1387
- "top-error": n.isError && !n.disabled
1388
- }),
1389
- name: n.name,
1390
- "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
1391
- value: n.value,
1392
- indeterminate: n.indeterminate,
1393
- disabled: n.disabled
1394
- }, null, 10, Di), [
1395
- [
1396
- a,
1397
- n.isError,
1398
- void 0,
1399
- { onupdate: !0 }
1400
- ],
1401
- [vt, t.value]
1402
- ]),
1403
- n.$slots.default ? (g(), B(pe, {
1404
- key: 0,
1405
- description: n.description,
1406
- disabled: n.disabled
1407
- }, {
1408
- default: te(() => [
1409
- M(n.$slots, "default")
1410
- ]),
1411
- _: 3
1412
- }, 8, ["description", "disabled"])) : T("", !0)
1413
- ], 2);
1414
- };
1415
- }
1416
- }), Bi = ["title"], Kt = /* @__PURE__ */ E({
1417
- __name: "hint",
1418
- props: {
1419
- hint: {}
1420
- },
1421
- setup(e) {
1422
- return (t, n) => (g(), m("span", {
1423
- class: "top-hint",
1424
- "data-top-icon": "",
1425
- title: t.hint
1426
- }, null, 8, Bi));
1427
- }
1428
- }), Li = (e, t) => {
1429
- const n = e.__vccOpts || e;
1430
- for (const [r, a] of t)
1431
- n[r] = a;
1432
- return n;
1433
- }, Wi = {}, Ni = { class: "top-loadbar" };
1434
- function zi(e, t) {
1435
- return g(), m("div", Ni);
1436
- }
1437
- const Xt = /* @__PURE__ */ Li(Wi, [["render", zi]]), Vi = ["data-top-icon", "data-top-icon2"], ki = ["name", "title", "placeholder", "disabled", "readonly"], Ri = {
1438
- key: 2,
1439
- class: "top-formsCaption"
1440
- }, Pe = /* @__PURE__ */ E({
1441
- inheritAttrs: !1,
1442
- __name: "input",
1443
- props: {
1444
- modelValue: {},
1445
- name: {},
1446
- disabled: { type: Boolean },
1447
- readonly: { type: Boolean },
1448
- modificator: {},
1449
- size: { default: "s" },
1450
- styling: { default: "" },
1451
- isError: { type: Boolean },
1452
- isLoading: { type: Boolean },
1453
- icon: {},
1454
- icon2: {},
1455
- addCleaner: { type: Boolean },
1456
- title: {},
1457
- captionType: { default: "" }
1458
- },
1459
- emits: ["update:modelValue"],
1460
- setup(e, { emit: t }) {
1461
- const n = e, r = t, a = _({
1462
- get() {
1463
- return n.modelValue;
1464
- },
1465
- set(i) {
1466
- r("update:modelValue", i);
1467
- }
1468
- }), o = _(() => n.addCleaner && !n.title || n.captionType !== "" ? "" : n.title), l = (i) => {
1469
- n.modelValue && i.stopPropagation(), r("update:modelValue", "");
1470
- };
1471
- return (i, s) => {
1472
- const d = z("top-focus");
1473
- return g(), m("label", {
1474
- class: S({
1475
- "top-input": !0,
1476
- ["top-size_" + i.size]: !0,
1477
- "top-disabled": i.disabled,
1478
- ["top-input-" + i.modificator]: !!i.modificator,
1479
- "top-input-withCleaner": i.addCleaner && a.value && a.value !== "0000-00-00",
1480
- "top-formsCaptionWrapper": i.captionType !== "",
1481
- "top-formsCaptionWrapper-always": i.captionType === "top"
1482
- }),
1483
- "data-top-icon": i.icon,
1484
- "data-top-icon2": i.icon2
1485
- }, [
1486
- i.isLoading ? (g(), B(Xt, { key: 0 })) : T("", !0),
1487
- V(C("input", ae({
1488
- type: "text",
1489
- class: {
1490
- "top-input_input": !0,
1491
- ["top-input_input-" + i.modificator]: !!i.modificator,
1492
- "top-forms-focusable": !i.disabled,
1493
- "top-error": i.isError,
1494
- [`top-style_${i.styling}`]: !!i.styling
1495
- },
1496
- autocomplete: "off_always",
1497
- name: i.name,
1498
- "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
1499
- title: i.title,
1500
- placeholder: o.value,
1501
- disabled: i.disabled,
1502
- readonly: i.readonly,
1503
- onKeydown: s[1] || (s[1] = Zt((u) => (i.addCleaner || !!i.$slots.btn) && l(u), ["esc"]))
1504
- }, i.$attrs), null, 16, ki), [
1505
- [
1506
- d,
1507
- i.isError,
1508
- void 0,
1509
- { onupdate: !0 }
1510
- ],
1511
- [wt, a.value]
1512
- ]),
1513
- i.addCleaner && a.value && a.value !== "0000-00-00" ? (g(), m("span", {
1514
- key: 1,
1515
- class: "top-input_cleaner",
1516
- "data-top-icon": "",
1517
- onClick: xt(l, ["prevent"])
1518
- })) : T("", !0),
1519
- i.captionType !== "" ? (g(), m("span", Ri, N(i.title), 1)) : T("", !0),
1520
- M(i.$slots, "default")
1521
- ], 10, Vi);
1522
- };
1523
- }
1524
- }), Fi = ["modelValue"], Ui = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
1525
- let ft = (e) => {
1526
- };
1527
- const Hi = /* @__PURE__ */ E({
1528
- __name: "inputDate",
1529
- props: {
1530
- modelValue: {},
1531
- name: {},
1532
- disabled: { type: Boolean },
1533
- readonly: { type: Boolean },
1534
- modificator: {},
1535
- size: {},
1536
- styling: {},
1537
- isError: { type: Boolean },
1538
- isLoading: { type: Boolean },
1539
- icon: {},
1540
- icon2: { default: "" },
1541
- addCleaner: { type: Boolean },
1542
- title: {},
1543
- captionType: {}
1544
- },
1545
- emits: ["update:modelValue"],
1546
- setup(e, { emit: t }) {
1547
- const n = ce(), r = e, a = t;
1548
- en(() => {
1549
- l && l.datepicker("destroy");
1550
- });
1551
- const o = Me();
1552
- let l;
1553
- const i = _({
1554
- get() {
1555
- return q(r.modelValue, 2, void 0, "0000-00-00");
1556
- },
1557
- set(c) {
1558
- c = pt(c, "0000-00-00"), a("update:modelValue", c);
1559
- }
1560
- });
1561
- let s = (c) => {
1562
- ft(c);
1563
- }, d = (c) => {
1564
- const p = pt(c.target.value), b = q(p);
1565
- if (!b || b === n.Common.Not_date || c.target.value !== b) {
1566
- c.target.value = i.value;
1567
- return;
1568
- }
1569
- i.value = c.target.value;
1570
- };
1571
- async function u(c) {
1572
- const p = await import("./datepicker-BTiE5Grw.es.js");
1573
- ft = p.oninput, l = p.connectDatepicker(c.target, {
1574
- onSelect: () => d(c)
1575
- }), l && l.datepicker("show");
1576
- }
1577
- return (c, p) => ge(Ui) ? (g(), B(Pe, ae({ key: 0 }, c.$props, {
1578
- modelValue: i.value,
1579
- readonly: "",
1580
- onClick: p[1] || (p[1] = (b) => o.value.showPicker())
1581
- }), {
1582
- default: te(() => [
1583
- C("input", {
1584
- ref_key: "el",
1585
- ref: o,
1586
- type: "date",
1587
- class: "top-input_input-date",
1588
- modelValue: c.modelValue,
1589
- onChange: p[0] || (p[0] = (b) => i.value = b.target.value),
1590
- tabindex: "-1"
1591
- }, null, 40, Fi)
1592
- ]),
1593
- _: 1
1594
- }, 16, ["modelValue"])) : (g(), B(Pe, ae({ key: 1 }, c.$props, {
1595
- modelValue: i.value,
1596
- "onUpdate:modelValue": p[2] || (p[2] = (b) => b === "" ? i.value = "" : ""),
1597
- onInput: ge(s),
1598
- onFocusOnce: u,
1599
- onChange: ge(d),
1600
- modificator: "datepicker"
1601
- }), null, 16, ["modelValue", "onInput", "onChange"]));
1602
- }
1603
- }), Gi = { class: "top-inputRange" }, Ki = /* @__PURE__ */ E({
1604
- __name: "inputRange",
1605
- setup(e) {
1606
- return (t, n) => (g(), m("div", Gi, [
1607
- M(t.$slots, "from"),
1608
- n[0] || (n[0] = C("span", { class: "top-inputRange_dash" }, " — ", -1)),
1609
- M(t.$slots, "to")
1610
- ]));
1611
- }
1612
- }), Xi = ["name", "value", "disabled"], qi = /* @__PURE__ */ E({
1613
- __name: "radio",
1614
- props: {
1615
- modelValue: {},
1616
- value: {},
1617
- name: {},
1618
- description: {},
1619
- disabled: { type: Boolean },
1620
- isError: { type: Boolean }
1621
- },
1622
- emits: ["update:modelValue"],
1623
- setup(e, { emit: t }) {
1624
- const n = e, r = t, a = _({
1625
- get() {
1626
- return n.modelValue;
1627
- },
1628
- set(o) {
1629
- r("update:modelValue", o);
1630
- }
1631
- });
1632
- return (o, l) => {
1633
- const i = z("top-focus");
1634
- return g(), m("label", {
1635
- class: S({
1636
- "top-forms-optionWrapper": !0,
1637
- "top-radio": !0,
1638
- ["top-radio_" + o.name]: o.name !== "",
1639
- "top-disabled": o.disabled,
1640
- "top-error": o.isError && !o.disabled
1641
- })
1642
- }, [
1643
- V(C("input", {
1644
- type: "radio",
1645
- class: S({
1646
- "top-forms-focusable": !o.disabled,
1647
- "top-forms-option": !0,
1648
- "top-radio_input": !0,
1649
- "top-error": o.isError && !o.disabled
1650
- }),
1651
- "onUpdate:modelValue": l[0] || (l[0] = (s) => a.value = s),
1652
- name: o.name,
1653
- value: o.value,
1654
- disabled: o.disabled
1655
- }, null, 10, Xi), [
1656
- [
1657
- i,
1658
- o.isError,
1659
- void 0,
1660
- { onupdate: !0 }
1661
- ],
1662
- [tn, a.value]
1663
- ]),
1664
- o.$slots.default ? (g(), B(pe, {
1665
- key: 0,
1666
- description: o.description,
1667
- disabled: o.disabled
1668
- }, {
1669
- default: te(() => [
1670
- M(o.$slots, "default")
1671
- ]),
1672
- _: 3
1673
- }, 8, ["description", "disabled"])) : T("", !0)
1674
- ], 2);
1675
- };
1676
- }
1677
- }), Yi = ["name", "value", "disabled"], Qi = /* @__PURE__ */ E({
1678
- __name: "switcher",
1679
- props: {
1680
- modelValue: { type: [Boolean, Array, Set] },
1681
- name: {},
1682
- value: {},
1683
- description: {},
1684
- disabled: { type: Boolean },
1685
- isError: { type: Boolean }
1686
- },
1687
- emits: ["update:modelValue"],
1688
- setup(e, { emit: t }) {
1689
- const n = e, r = t, a = _({
1690
- get() {
1691
- return n.modelValue;
1692
- },
1693
- set(o) {
1694
- r("update:modelValue", o);
1695
- }
1696
- });
1697
- return (o, l) => {
1698
- const i = z("top-focus");
1699
- return g(), m("label", {
1700
- class: S({
1701
- "top-forms-optionWrapper": !0,
1702
- "top-checkboxSwitcher": !0,
1703
- "top-disabled": o.disabled,
1704
- "top-error": o.isError && !o.disabled
1705
- })
1706
- }, [
1707
- V(C("input", {
1708
- type: "checkbox",
1709
- class: S({
1710
- "top-forms-focusable": !o.disabled,
1711
- "top-forms-option": !0,
1712
- "top-checkboxSwitcher_input": !0,
1713
- "top-error": o.isError && !o.disabled
1714
- }),
1715
- "onUpdate:modelValue": l[0] || (l[0] = (s) => a.value = s),
1716
- name: o.name,
1717
- value: o.value,
1718
- disabled: o.disabled
1719
- }, null, 10, Yi), [
1720
- [
1721
- i,
1722
- o.isError,
1723
- void 0,
1724
- { onupdate: !0 }
1725
- ],
1726
- [vt, a.value]
1727
- ]),
1728
- o.$slots.default ? (g(), B(pe, {
1729
- key: 0,
1730
- description: o.description,
1731
- disabled: o.disabled
1732
- }, {
1733
- default: te(() => [
1734
- M(o.$slots, "default")
1735
- ]),
1736
- _: 3
1737
- }, 8, ["description", "disabled"])) : T("", !0)
1738
- ], 2);
1739
- };
1740
- }
1741
- }), Ji = ["name", "placeholder", "disabled", "readonly", "rows"], Zi = {
1742
- key: 0,
1743
- class: "top-textarea_pseudoContent"
1744
- }, xi = /* @__PURE__ */ E({
1745
- inheritAttrs: !1,
1746
- __name: "textarea",
1747
- props: {
1748
- modelValue: {},
1749
- name: {},
1750
- placeholder: {},
1751
- styling: { default: "" },
1752
- rows: { default: 5 },
1753
- minHeight: { default: 120 },
1754
- expandable: { type: Boolean },
1755
- disabled: { type: Boolean },
1756
- readonly: { type: Boolean },
1757
- isError: { type: Boolean },
1758
- hint: {}
1759
- },
1760
- emits: ["update:modelValue"],
1761
- setup(e, { emit: t }) {
1762
- bt((o) => ({
1763
- "2e9b99fe": o.minHeight + "px"
1764
- }));
1765
- const n = e, r = t, a = _({
1766
- get() {
1767
- return n.modelValue;
1768
- },
1769
- set(o) {
1770
- r("update:modelValue", o);
1771
- }
1772
- });
1773
- return (o, l) => {
1774
- const i = z("top-focus"), s = z("top-tooltip");
1775
- return g(), m("label", {
1776
- class: S({
1777
- "top-textarea": !0,
1778
- ["top-textarea-" + o.name]: o.name,
1779
- "top-disabled": o.disabled
1780
- })
1781
- }, [
1782
- V(C("textarea", ae({
1783
- type: "text",
1784
- class: {
1785
- "top-forms-focusable": !o.disabled,
1786
- "top-textarea_textarea": !0,
1787
- "top-textarea_textarea-expandable": o.expandable,
1788
- "top-error": o.isError,
1789
- [`top-style_${o.styling}`]: !!o.styling
1790
- },
1791
- autocomplete: "off_always",
1792
- name: o.name,
1793
- placeholder: o.placeholder,
1794
- disabled: o.disabled,
1795
- readonly: o.readonly,
1796
- rows: o.expandable ? void 0 : o.rows
1797
- }, o.$attrs, {
1798
- "onUpdate:modelValue": l[0] || (l[0] = (d) => a.value = d)
1799
- }), null, 16, Ji), [
1800
- [
1801
- i,
1802
- o.isError,
1803
- void 0,
1804
- { onupdate: !0 }
1805
- ],
1806
- [wt, a.value]
1807
- ]),
1808
- o.expandable ? (g(), m("div", Zi, N(a.value + " "), 1)) : T("", !0),
1809
- o.hint ? V((g(), B(Kt, {
1810
- key: 1,
1811
- class: "top-textarea_hint",
1812
- hint: o.hint
1813
- }, null, 8, ["hint"])), [
1814
- [s]
1815
- ]) : T("", !0)
1816
- ], 2);
1817
- };
1818
- }
1819
- }), es = ["data-value", "data-top-icon", "data-top-icon2"], ts = ["name", "disabled"], ns = ["label", "disabled"], rs = ["value", "selected", "disabled"], os = ["value", "selected", "disabled"], as = {
1820
- key: 1,
1821
- class: "top-formsCaption"
1822
- }, is = /* @__PURE__ */ E({
1823
- __name: "select",
1824
- props: /* @__PURE__ */ Te({
1825
- modelValue: {},
1826
- options: {},
1827
- name: {},
1828
- disabled: { type: Boolean },
1829
- icon: {},
1830
- size: { default: "s" },
1831
- styling: { default: "" },
1832
- addChanger: { type: Boolean },
1833
- title: {},
1834
- isError: { type: Boolean }
1835
- }, {
1836
- modelValue: {
1837
- required: !0
1838
- },
1839
- modelModifiers: {}
1840
- }),
1841
- emits: /* @__PURE__ */ Te(["update:modelValue"], ["update:modelValue"]),
1842
- setup(e) {
1843
- const t = e, n = yt(e, "modelValue"), r = _(() => {
1844
- const s = /* @__PURE__ */ new Map();
1845
- return t.options.forEach((d, u) => {
1846
- if (typeof d == "string" && (d = o(u, d)), d.children) {
1847
- const c = /* @__PURE__ */ new Map();
1848
- d.children.forEach((p, b) => {
1849
- typeof p == "string" && (p = o(b, p)), c.set(p.value, p);
1850
- }), d = { ...d }, d.children = c, s.set(d.value, d);
1851
- } else
1852
- s.set(d.value, d);
1853
- }), s;
1854
- }), a = _(() => {
1855
- const s = /* @__PURE__ */ new Map();
1856
- return r.value.forEach((d) => {
1857
- if (!d.disabled) {
1858
- if (d.children) {
1859
- d.children.forEach((u) => {
1860
- u.disabled || s.set(u.value, u);
1861
- });
1862
- return;
1863
- }
1864
- s.set(d.value, d);
1865
- }
1866
- }), s;
1867
- }), o = (s, d) => ({
1868
- value: s,
1869
- title: d
1870
- });
1871
- mt([
1872
- () => t.modelValue,
1873
- a
1874
- ], () => {
1875
- (n.value === null || n.value === void 0) && a.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = a.value.keys().next().value);
1876
- }, { immediate: !0 });
1877
- const l = _(() => {
1878
- var s;
1879
- return (s = a.value.get(n.value)) == null ? void 0 : s.icon;
1880
- }), i = () => {
1881
- const s = [...a.value.keys()], u = (s.indexOf(n.value) + 1) % s.length;
1882
- n.value = s[u];
1883
- };
1884
- return (s, d) => {
1885
- const u = z("top-focus");
1886
- return g(), m("label", {
1887
- class: S({
1888
- "top-select": !0,
1889
- ["top-select-" + s.name]: s.name,
1890
- ["top-size_" + s.size]: !0,
1891
- "top-formsCaptionWrapper": !!s.title,
1892
- "top-select-error": s.isError,
1893
- "top-disabled": s.disabled
1894
- }),
1895
- "data-value": n.value,
1896
- "data-top-icon": s.icon,
1897
- "data-top-icon2": l.value
1898
- }, [
1899
- V((g(), m("select", {
1900
- class: S({
1901
- "top-forms-focusable": !s.disabled,
1902
- "top-select_select": !0,
1903
- "top-select_arrow": !0,
1904
- "top-error": s.isError,
1905
- [`top-style_${s.styling}`]: !!s.styling
1906
- }),
1907
- name: s.name,
1908
- disabled: s.disabled,
1909
- "onUpdate:modelValue": d[0] || (d[0] = (c) => n.value = c)
1910
- }, [
1911
- (g(!0), m(me, null, Re(r.value, ([c, p]) => (g(), m(me, null, [
1912
- p.children ? (g(), m("optgroup", {
1913
- key: "group_" + c,
1914
- label: p.title,
1915
- disabled: p.disabled
1916
- }, [
1917
- (g(!0), m(me, null, Re(p.children, ([b, w]) => (g(), m("option", {
1918
- key: b,
1919
- value: b,
1920
- selected: b === n.value,
1921
- disabled: w.disabled
1922
- }, N(w.title), 9, rs))), 128))
1923
- ], 8, ns)) : (g(), m("option", {
1924
- key: c ?? void 0,
1925
- value: c,
1926
- selected: c === n.value,
1927
- disabled: p.disabled
1928
- }, N(p.title), 9, os))
1929
- ], 64))), 256))
1930
- ], 10, ts)), [
1931
- [
1932
- u,
1933
- s.isError,
1934
- void 0,
1935
- { onupdate: !0 }
1936
- ],
1937
- [nn, n.value]
1938
- ]),
1939
- s.addChanger && a.value.size && !s.disabled ? (g(), m("span", {
1940
- key: 0,
1941
- class: "top-changer",
1942
- onClick: i
1943
- })) : T("", !0),
1944
- s.title ? (g(), m("span", as, N(s.title), 1)) : T("", !0)
1945
- ], 10, es);
1946
- };
1947
- }
1948
- }), Ss = ji, _s = Mi, Os = Ii, Es = pe, js = Kt, As = Pe, Ps = Hi, Ms = Ki, Cs = qi, Ds = Qi, Is = xi, Bs = is, Ls = Xt;
1949
- export {
1950
- an as A,
1951
- sn as B,
1952
- f as C,
1953
- ds as D,
1954
- wi as E,
1955
- us as F,
1956
- cs as G,
1957
- ps as H,
1958
- ln as I,
1959
- fs as J,
1960
- gs as K,
1961
- Ft as L,
1962
- ms as M,
1963
- hs as N,
1964
- vs as O,
1965
- ws as P,
1966
- Ts as Q,
1967
- Si as R,
1968
- $s as S,
1969
- Ss as T,
1970
- pt as U,
1971
- Mi as _,
1972
- ys as a,
1973
- ls as b,
1974
- q as c,
1975
- St as d,
1976
- Kt as e,
1977
- Pe as f,
1978
- _s as g,
1979
- Os as h,
1980
- bs as i,
1981
- Es as j,
1982
- js as k,
1983
- As as l,
1984
- Ps as m,
1985
- Ms as n,
1986
- Ls as o,
1987
- Cs as p,
1988
- Bs as q,
1989
- Ds as r,
1990
- Is as s,
1991
- Li as t,
1992
- ce as u,
1993
- Xt as v,
1994
- xi as w,
1995
- is as x,
1996
- rn as y,
1997
- on as z
1998
- };
1999
- //# sourceMappingURL=forms-BsuCen2-.es.js.map