@topvisor/ui 1.5.0-updates.0 → 1.5.0-updates.10

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