@topvisor/ui 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (536) hide show
  1. package/.chunks/core-CXqQSo9c.amd.js +2 -0
  2. package/.chunks/core-CXqQSo9c.amd.js.map +1 -0
  3. package/.chunks/{core-Dsl28h7N.es.js → core-CY6RkZz2.es.js} +47 -46
  4. package/.chunks/core-CY6RkZz2.es.js.map +1 -0
  5. package/.chunks/{datepicker-BTiE5Grw.es.js → datepicker-BiaXdEIn.es.js} +2 -2
  6. package/.chunks/datepicker-BiaXdEIn.es.js.map +1 -0
  7. package/.chunks/datepicker-DUoArkDy.amd.js +2 -0
  8. package/.chunks/datepicker-DUoArkDy.amd.js.map +1 -0
  9. package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js +2 -0
  10. package/.chunks/dialog_selectorRegions-CPRVbPAk.amd.js.map +1 -0
  11. package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js +188 -0
  12. package/.chunks/dialog_selectorRegions-Zlm6K2mk.es.js.map +1 -0
  13. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js +322 -0
  14. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CLahwA6M.es.js.map +1 -0
  15. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js +2 -0
  16. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8NggYHD.amd.js.map +1 -0
  17. package/.chunks/field-Cvv0SRcJ.amd.js +2 -0
  18. package/.chunks/field-Cvv0SRcJ.amd.js.map +1 -0
  19. package/.chunks/field-CyyFzM-Y.es.js +16 -0
  20. package/.chunks/field-CyyFzM-Y.es.js.map +1 -0
  21. package/.chunks/forms-CgtkdwgA.amd.js +3 -0
  22. package/.chunks/forms-CgtkdwgA.amd.js.map +1 -0
  23. package/.chunks/forms-DarRVke_.es.js +2045 -0
  24. package/.chunks/forms-DarRVke_.es.js.map +1 -0
  25. package/.chunks/index-BEI7XZmU.amd.js +2 -0
  26. package/.chunks/index-BEI7XZmU.amd.js.map +1 -0
  27. package/.chunks/index-igPkes8X.es.js +48 -0
  28. package/.chunks/index-igPkes8X.es.js.map +1 -0
  29. package/.chunks/lazy-40pjr8cZ.es.js +71 -0
  30. package/.chunks/lazy-40pjr8cZ.es.js.map +1 -0
  31. package/.chunks/lazy-DSFLxvj4.amd.js +2 -0
  32. package/.chunks/lazy-DSFLxvj4.amd.js.map +1 -0
  33. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js +2 -0
  34. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CT-EXxJj.amd.js.map +1 -0
  35. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js +184 -0
  36. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js.map +1 -0
  37. package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js +2 -0
  38. package/.chunks/menu.vue_vue_type_style_index_0_lang-BLMYjYLV.amd.js.map +1 -0
  39. package/.chunks/{menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js → menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js} +35 -34
  40. package/.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js.map +1 -0
  41. package/.chunks/{notice-CJdCc72d.amd.js → notice-CPtAnc7p.amd.js} +3 -3
  42. package/.chunks/notice-CPtAnc7p.amd.js.map +1 -0
  43. package/.chunks/{notice-Cqs1dKt8.es.js → notice-fno9saBY.es.js} +2 -2
  44. package/.chunks/notice-fno9saBY.es.js.map +1 -0
  45. package/.chunks/{page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js → page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js} +4 -4
  46. package/.chunks/page.vue_vue_type_script_setup_true_lang-BS0aEP4i.es.js.map +1 -0
  47. package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js +2 -0
  48. package/.chunks/page.vue_vue_type_script_setup_true_lang-DLebrPmi.amd.js.map +1 -0
  49. package/.chunks/popup-AG94kehM.es.js +459 -0
  50. package/.chunks/popup-AG94kehM.es.js.map +1 -0
  51. package/.chunks/popup-CtvJLWn3.amd.js +2 -0
  52. package/.chunks/popup-CtvJLWn3.amd.js.map +1 -0
  53. package/.chunks/punycode.es6-CNOnFR2-.amd.js +2 -0
  54. package/.chunks/{punycode.es6-C2yitnNb.amd.js.map → punycode.es6-CNOnFR2-.amd.js.map} +1 -1
  55. package/.chunks/punycode.es6-CgGegfA_.es.js +134 -0
  56. package/.chunks/{punycode.es6-CNI-zL6U.es.js.map → punycode.es6-CgGegfA_.es.js.map} +1 -1
  57. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  58. package/.chunks/store-YRW59xEF.amd.js +2 -0
  59. package/.chunks/store-YRW59xEF.amd.js.map +1 -0
  60. package/.chunks/{utils-B1H3EGkg.es.js → utils-3M9LC_L_.es.js} +2 -2
  61. package/.chunks/utils-3M9LC_L_.es.js.map +1 -0
  62. package/.chunks/utils-BitKP31L.es.js +302 -0
  63. package/.chunks/utils-BitKP31L.es.js.map +1 -0
  64. package/.chunks/utils-D9D3zzjc.amd.js +2 -0
  65. package/.chunks/utils-D9D3zzjc.amd.js.map +1 -0
  66. package/.chunks/utils-DcP4RFmH.amd.js +2 -0
  67. package/.chunks/utils-DcP4RFmH.amd.js.map +1 -0
  68. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js +2 -0
  69. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-BK-pTu3V.amd.js.map +1 -0
  70. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js +39 -0
  71. package/.chunks/widgetInput.vue_vue_type_script_setup_true_lang-xwjgBq1L.es.js.map +1 -0
  72. package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js +2 -0
  73. package/.chunks/widgetInput.vue_vue_type_style_index_0_lang-Cce9ZdtW.amd.js.map +1 -0
  74. package/README.md +82 -82
  75. package/api/additional.amd.js +2 -0
  76. package/api/additional.amd.js.map +1 -0
  77. package/api/additional.d.ts +2 -0
  78. package/api/additional.js +66 -0
  79. package/api/additional.js.map +1 -0
  80. package/api/index.amd.js +2 -0
  81. package/api/index.amd.js.map +1 -0
  82. package/api/index.d.ts +2 -0
  83. package/api/index.js +280 -0
  84. package/api/index.js.map +1 -0
  85. package/assets/core.css +1 -1
  86. package/assets/extra.css +1 -0
  87. package/assets/forms.css +1 -1
  88. package/assets/formsExt.css +1 -1
  89. package/assets/layout.css +1 -1
  90. package/assets/notice.css +1 -1
  91. package/assets/project.css +1 -1
  92. package/assets/themes/dark-th.css +1 -1
  93. package/assets/themes/dark.css +1 -1
  94. package/assets/themes/light.css +1 -1
  95. package/charts/charts.amd.js +1 -1
  96. package/charts/charts.amd.js.map +1 -1
  97. package/charts/charts.d.ts +1 -1
  98. package/charts/charts.js +11 -11
  99. package/charts/charts.js.map +1 -1
  100. package/core/app.amd.js +1 -1
  101. package/core/app.amd.js.map +1 -1
  102. package/core/app.d.ts +2 -8
  103. package/core/app.js +36 -34
  104. package/core/app.js.map +1 -1
  105. package/dialog/dialog.amd.js +1 -1
  106. package/dialog/dialog.amd.js.map +1 -1
  107. package/dialog/dialog.d.ts +1 -1
  108. package/dialog/dialog.js +2 -2
  109. package/dialog/dialog.js.map +1 -1
  110. package/extra/extra.amd.js +2 -0
  111. package/extra/extra.amd.js.map +1 -0
  112. package/extra/extra.d.ts +2 -0
  113. package/extra/extra.js +72 -0
  114. package/extra/extra.js.map +1 -0
  115. package/forms/forms.amd.js +1 -1
  116. package/forms/forms.d.ts +1 -1
  117. package/forms/forms.js +11 -9
  118. package/forms/helpers.amd.js +1 -1
  119. package/forms/helpers.amd.js.map +1 -1
  120. package/forms/helpers.d.ts +0 -1
  121. package/forms/helpers.js +1 -9
  122. package/forms/helpers.js.map +1 -1
  123. package/formsExt/formsExt.amd.js +1 -1
  124. package/formsExt/formsExt.amd.js.map +1 -1
  125. package/formsExt/formsExt.d.ts +1 -1
  126. package/formsExt/formsExt.js +524 -320
  127. package/formsExt/formsExt.js.map +1 -1
  128. package/icomoon/Read Me.txt +7 -7
  129. package/icomoon/demo-files/demo.css +158 -158
  130. package/icomoon/demo-files/demo.js +30 -30
  131. package/icomoon/demo.css +158 -0
  132. package/icomoon/demo.html +3782 -3558
  133. package/icomoon/demo.js +30 -0
  134. package/icomoon/fonts/Topvisor-2.eot +0 -0
  135. package/icomoon/fonts/Topvisor-2.svg +292 -276
  136. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  137. package/icomoon/fonts/Topvisor-2.woff +0 -0
  138. package/icomoon/selection.json +1 -1
  139. package/icomoon/style.css +828 -780
  140. package/jquery-ui.min.css +5 -5
  141. package/layout/layout.amd.js +1 -1
  142. package/layout/layout.amd.js.map +1 -1
  143. package/layout/layout.d.ts +1 -1
  144. package/layout/layout.js +29 -29
  145. package/layout/layout.js.map +1 -1
  146. package/package.json +36 -33
  147. package/popup/popup.amd.js +1 -1
  148. package/popup/popup.amd.js.map +1 -1
  149. package/popup/popup.d.ts +1 -1
  150. package/popup/popup.js +120 -136
  151. package/popup/popup.js.map +1 -1
  152. package/popup/worker.amd.js +1 -1
  153. package/popup/worker.amd.js.map +1 -1
  154. package/popup/worker.d.ts +1 -1
  155. package/popup/worker.js +31 -22
  156. package/popup/worker.js.map +1 -1
  157. package/project/project.amd.js +1 -1
  158. package/project/project.amd.js.map +1 -1
  159. package/project/project.d.ts +1 -1
  160. package/project/project.js +396 -386
  161. package/project/project.js.map +1 -1
  162. package/require/css.amd.js +12 -12
  163. package/src/api/api/additional.d.ts +1 -0
  164. package/src/api/api/client/client.d.ts +55 -0
  165. package/src/api/api/client/request-options.d.ts +1 -0
  166. package/src/api/api/client/request.d.ts +2 -0
  167. package/src/api/api/index.d.ts +12 -0
  168. package/src/api/api/mocker/index.d.ts +9 -0
  169. package/src/api/api/tests/types.test-d.d.ts +1 -0
  170. package/src/api/api/types/api.d.ts +144 -0
  171. package/src/api/api/types/client/client.d.ts +8 -0
  172. package/src/api/api/types/client/middleware.d.ts +65 -0
  173. package/src/api/api/types/client/options.d.ts +60 -0
  174. package/src/api/api/types/client/request-context.d.ts +35 -0
  175. package/src/api/api/types/client/request-options.d.ts +73 -0
  176. package/src/api/api/types/client/request.d.ts +91 -0
  177. package/src/api/api/types/ext.d.ts +51 -0
  178. package/src/api/api/types/field.d.ts +33 -0
  179. package/src/api/api/types/index.d.ts +13 -0
  180. package/src/api/api/types/mocker.d.ts +106 -0
  181. package/src/api/api/types/schema.d.ts +50 -0
  182. package/src/api/api/types/tv.d.ts +59 -0
  183. package/src/api/api/types/utils.d.ts +51 -0
  184. package/src/api/api/utils/common.d.ts +16 -0
  185. package/src/api/api/utils/field.d.ts +8 -0
  186. package/src/api/api/utils/filters.d.ts +48 -0
  187. package/src/api/api/utils/lazy.d.ts +26 -0
  188. package/src/components/charts/charts.d.ts +2 -0
  189. package/{components → src/components}/charts/miniChart/miniChart.vue.d.ts +1 -1
  190. package/{components → src/components}/charts/miniCharts/miniCharts.d.ts +1 -1
  191. package/{components → src/components}/charts/miniCharts/miniCharts.vue.d.ts +1 -1
  192. package/{components → src/components}/core/notice/item/types.d.ts +2 -0
  193. package/{components → src/components}/dialog/dialog/dialogs/dialogs.vue.d.ts +3 -0
  194. package/{components → src/components}/dialog/dialog/page/types.d.ts +2 -2
  195. package/{components → src/components}/dialog/lib/types.d.ts +23 -0
  196. package/src/components/dialog/lib/utils.d.ts +14 -0
  197. package/{components → src/components}/dialog/lib/utils.globalEvents.d.ts +2 -2
  198. package/{components → src/components}/dialog/lib/worker.d.ts +27 -11
  199. package/src/components/extra/extra.d.ts +1 -0
  200. package/src/components/extra/rive/rive.vue.d.ts +11 -0
  201. package/src/components/extra/rive/types.d.ts +7 -0
  202. package/{components → src/components}/forms/avatar/avatar.vue.d.ts +2 -2
  203. package/{components/forms/avatar/avatar.d.ts → src/components/forms/avatar/types.d.ts} +4 -10
  204. package/{components → src/components}/forms/button/button.vue.d.ts +3 -7
  205. package/{components → src/components}/forms/button/types.d.ts +15 -19
  206. package/src/components/forms/caption/caption.vue.d.ts +17 -0
  207. package/src/components/forms/caption/types.d.ts +9 -0
  208. package/{components → src/components}/forms/checkbox/checkbox.vue.d.ts +3 -3
  209. package/{components → src/components}/forms/controlLabel/controlLabel.vue.d.ts +1 -1
  210. package/src/components/forms/forms.d.ts +15 -0
  211. package/src/components/forms/helpers.d.ts +1 -0
  212. package/{components → src/components}/forms/hint/hint.vue.d.ts +1 -1
  213. package/{components → src/components}/forms/input/input.vue.d.ts +2 -3
  214. package/src/components/forms/input/types.d.ts +23 -0
  215. package/{components → src/components}/forms/inputDate/inputDate.vue.d.ts +1 -1
  216. package/src/components/forms/inputDate/types.d.ts +1 -0
  217. package/src/components/forms/preloader/types.d.ts +3 -0
  218. package/{components → src/components}/forms/radio/radio.vue.d.ts +1 -1
  219. package/src/components/forms/select/select.vue.d.ts +17 -0
  220. package/{components/forms/select/select.d.ts → src/components/forms/select/types.d.ts} +3 -3
  221. package/{components → src/components}/forms/switcher/switcher.vue.d.ts +1 -1
  222. package/{components → src/components}/forms/textarea/textarea.vue.d.ts +1 -1
  223. package/{components/forms/textarea/textarea.d.ts → src/components/forms/textarea/types.d.ts} +4 -0
  224. package/{components/formsExt/radioGroup/radioGroup.vue.d.ts → src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts} +7 -10
  225. package/src/components/formsExt/checkboxGroup/types.d.ts +19 -0
  226. package/{components → src/components}/formsExt/editArea/editArea.vue.d.ts +1 -1
  227. package/{components/formsExt/editArea/editArea.d.ts → src/components/formsExt/editArea/types.d.ts} +1 -1
  228. package/{components → src/components}/formsExt/editInput/editInput.vue.d.ts +1 -1
  229. package/{components/formsExt/editInput/editInput.d.ts → src/components/formsExt/editInput/types.d.ts} +1 -1
  230. package/src/components/formsExt/formsExt.d.ts +8 -0
  231. package/{components → src/components}/formsExt/info/types.d.ts +1 -1
  232. package/{components → src/components}/formsExt/menu/menu.vue.d.ts +1 -1
  233. package/src/components/formsExt/policy/policy.vue.d.ts +8 -0
  234. package/src/components/formsExt/policy/types.d.ts +20 -0
  235. package/{components/forms/select/select.vue.d.ts → src/components/formsExt/radioGroup/radioGroup.vue.d.ts} +4 -6
  236. package/{components/formsExt/radioGroup/radioGroup.d.ts → src/components/formsExt/radioGroup/types.d.ts} +3 -3
  237. package/src/components/formsExt/selector2/composables/useAPI.d.ts +18 -0
  238. package/src/components/formsExt/selector2/composables/useMenu.d.ts +16 -0
  239. package/{components → src/components}/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  240. package/src/components/formsExt/selector2/selector2.vue.d.ts +43 -0
  241. package/{components/formsExt/selector2/selector2.d.ts → src/components/formsExt/selector2/types.d.ts} +66 -34
  242. package/src/components/formsExt/selector2/utils.d.ts +6 -0
  243. package/{components → src/components}/layout/islandRows/types.d.ts +1 -1
  244. package/src/components/layout/layout.d.ts +4 -0
  245. package/src/components/popup/alert/alert.vue.d.ts +25 -0
  246. package/src/components/popup/alert/types.d.ts +8 -0
  247. package/src/components/popup/confirm/confirm.vue.d.ts +26 -0
  248. package/{components/popup/confirm/confirm.d.ts → src/components/popup/confirm/types.d.ts} +3 -3
  249. package/{components → src/components}/popup/lib/popup.d.ts +6 -2
  250. package/{components → src/components}/popup/lib/popup.globalEvents.d.ts +6 -0
  251. package/{components → src/components}/popup/lib/worker.d.ts +8 -6
  252. package/{components → src/components}/popup/popup/listItem.vue.d.ts +1 -1
  253. package/src/components/popup/popup/opener.vue.d.ts +17 -0
  254. package/src/components/popup/popup/popup.vue.d.ts +38 -0
  255. package/{components/popup/popup/popup.d.ts → src/components/popup/popup/types.d.ts} +20 -11
  256. package/{components → src/components}/popup/popup/widgetInput.vue.d.ts +1 -1
  257. package/src/components/popup/popup.d.ts +7 -0
  258. package/src/components/popup/prompt/prompt.vue.d.ts +26 -0
  259. package/{components/popup/prompt/prompt.d.ts → src/components/popup/prompt/types.d.ts} +3 -3
  260. package/src/components/project/project.d.ts +9 -0
  261. package/{components → src/components}/project/selectorCompetitors/composables.d.ts +1 -2
  262. package/{components → src/components}/project/selectorCompetitors/selectorCompetitors.vue.d.ts +1 -1
  263. package/{components/project/selectorCompetitors/selectorCompetitors.d.ts → src/components/project/selectorCompetitors/types.d.ts} +7 -0
  264. package/{components → src/components}/project/selectorRegion/composables/compare.d.ts +1 -1
  265. package/{components → src/components}/project/selectorRegion/composables/selectRegion.d.ts +2 -3
  266. package/{components → src/components}/project/selectorRegion/composables/selectSearcher.d.ts +2 -2
  267. package/{components → src/components}/project/selectorRegion/composables/selectorRegion.d.ts +2 -2
  268. package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/dialog_selectorRegions.vue.d.ts +3 -1
  269. package/{components → src/components}/project/selectorRegion/dialog_selectorRegions/types.d.ts +1 -1
  270. package/{components → src/components}/project/selectorRegion/selectorRegion.vue.d.ts +1 -1
  271. package/{components/project/selectorRegion/selectorRegion.d.ts → src/components/project/selectorRegion/types.d.ts} +2 -0
  272. package/src/components/project/selectorRegion/utils/consts.d.ts +31 -0
  273. package/{components → src/components}/project/selectorRegion/utils/utils.d.ts +4 -2
  274. package/{components → src/components}/project/tagSelector/popupOpener/types.d.ts +2 -0
  275. package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +4 -0
  276. package/{components → src/components}/project/tagSelector/types.d.ts +2 -0
  277. package/{components → src/components}/project/tagSelector/utils/el.d.ts +1 -1
  278. package/{components → src/components}/tabs/tabs/content.vue.d.ts +1 -1
  279. package/{components → src/components}/tabs/tabs/tab.vue.d.ts +1 -1
  280. package/{components → src/components}/tabs/tabs/tabs.vue.d.ts +1 -1
  281. package/src/components/tabs/tabs.d.ts +3 -0
  282. package/{components → src/components}/tabsView/tabsView/menu.vue.d.ts +1 -1
  283. package/{components → src/components}/tabsView/tabsView/menuItem.vue.d.ts +1 -1
  284. package/{components → src/components}/tabsView/tabsView/menuTitle.vue.d.ts +1 -1
  285. package/src/components/tabsView/tabsView/store.d.ts +12 -0
  286. package/{components → src/components}/tabsView/tabsView/tabsView.vue.d.ts +1 -1
  287. package/{components/tabsView/tabsView/tabsView.d.ts → src/components/tabsView/tabsView/types.d.ts} +2 -2
  288. package/src/components/tabsView/tabsView.d.ts +3 -0
  289. package/src/core/app.d.ts +8 -0
  290. package/{core → src/core}/core/core.d.ts +1 -1
  291. package/{core → src/core}/core/options.d.ts +7 -6
  292. package/{core → src/core}/core/state.d.ts +1 -1
  293. package/src/core/directives/preloader.d.ts +8 -0
  294. package/{core → src/core}/plugins/core.d.ts +2 -2
  295. package/{core → src/core}/plugins/i18n.d.ts +4 -4
  296. package/{core → src/core}/utils/date.d.ts +30 -12
  297. package/{core → src/core}/utils/dom.d.ts +11 -1
  298. package/{core → src/core}/utils/route.d.ts +1 -1
  299. package/{core → src/core}/utils/searchers.d.ts +1 -1
  300. package/{core → src/core}/utils/store.d.ts +1 -1
  301. package/{core → src/core}/utils/string.d.ts +13 -1
  302. package/tabs/tabs.amd.js +1 -1
  303. package/tabs/tabs.amd.js.map +1 -1
  304. package/tabs/tabs.d.ts +1 -1
  305. package/tabs/tabs.js +14 -14
  306. package/tabs/tabs.js.map +1 -1
  307. package/tabsView/tabsView.amd.js +1 -1
  308. package/tabsView/tabsView.amd.js.map +1 -1
  309. package/tabsView/tabsView.d.ts +1 -1
  310. package/tabsView/tabsView.js +49 -48
  311. package/tabsView/tabsView.js.map +1 -1
  312. package/utils/check.amd.js +1 -1
  313. package/utils/check.amd.js.map +1 -1
  314. package/utils/check.d.ts +1 -1
  315. package/utils/check.js.map +1 -1
  316. package/utils/clipboard.amd.js +2 -2
  317. package/utils/clipboard.amd.js.map +1 -1
  318. package/utils/clipboard.d.ts +1 -1
  319. package/utils/clipboard.js +1 -1
  320. package/utils/clipboard.js.map +1 -1
  321. package/utils/date.amd.js +1 -1
  322. package/utils/date.d.ts +1 -1
  323. package/utils/date.js +4 -3
  324. package/utils/device.amd.js +1 -1
  325. package/utils/device.d.ts +1 -1
  326. package/utils/device.js +4 -4
  327. package/utils/dom.amd.js +1 -1
  328. package/utils/dom.amd.js.map +1 -1
  329. package/utils/dom.d.ts +3 -3
  330. package/utils/dom.js +27 -22
  331. package/utils/dom.js.map +1 -1
  332. package/utils/image.amd.js +2 -2
  333. package/utils/image.amd.js.map +1 -1
  334. package/utils/image.d.ts +1 -1
  335. package/utils/image.js +1 -1
  336. package/utils/image.js.map +1 -1
  337. package/utils/keyboard.amd.js +1 -1
  338. package/utils/keyboard.amd.js.map +1 -1
  339. package/utils/keyboard.d.ts +1 -1
  340. package/utils/keyboard.js.map +1 -1
  341. package/utils/lodash.amd.js +1 -1
  342. package/utils/lodash.d.ts +1 -1
  343. package/utils/lodash.js +1 -1
  344. package/utils/number.amd.js +1 -1
  345. package/utils/number.amd.js.map +1 -1
  346. package/utils/number.d.ts +1 -1
  347. package/utils/number.js.map +1 -1
  348. package/utils/price.amd.js +1 -1
  349. package/utils/price.amd.js.map +1 -1
  350. package/utils/price.d.ts +1 -1
  351. package/utils/price.js +1 -1
  352. package/utils/price.js.map +1 -1
  353. package/utils/route.amd.js +1 -1
  354. package/utils/route.amd.js.map +1 -1
  355. package/utils/route.d.ts +1 -1
  356. package/utils/route.js +26 -19
  357. package/utils/route.js.map +1 -1
  358. package/utils/scroll.amd.js +1 -1
  359. package/utils/scroll.amd.js.map +1 -1
  360. package/utils/scroll.d.ts +1 -1
  361. package/utils/scroll.js.map +1 -1
  362. package/utils/searchers.amd.js +1 -1
  363. package/utils/searchers.amd.js.map +1 -1
  364. package/utils/searchers.d.ts +1 -1
  365. package/utils/searchers.js +3 -3
  366. package/utils/searchers.js.map +1 -1
  367. package/utils/store.amd.js +1 -1
  368. package/utils/store.d.ts +1 -1
  369. package/utils/string.amd.js +1 -1
  370. package/utils/string.amd.js.map +1 -1
  371. package/utils/string.d.ts +1 -1
  372. package/utils/string.js +41 -28
  373. package/utils/string.js.map +1 -1
  374. package/utils/system.amd.js +1 -1
  375. package/utils/system.amd.js.map +1 -1
  376. package/utils/system.d.ts +1 -1
  377. package/utils/system.js.map +1 -1
  378. package/utils/url.amd.js +2 -2
  379. package/utils/url.amd.js.map +1 -1
  380. package/utils/url.d.ts +1 -1
  381. package/utils/url.js +1 -1
  382. package/utils/url.js.map +1 -1
  383. package/web-types.json +130 -130
  384. package/.chunks/core-CcWs0qYw.amd.js +0 -2
  385. package/.chunks/core-CcWs0qYw.amd.js.map +0 -1
  386. package/.chunks/core-Dsl28h7N.es.js.map +0 -1
  387. package/.chunks/datepicker-B6kIyIcw.amd.js +0 -2
  388. package/.chunks/datepicker-B6kIyIcw.amd.js.map +0 -1
  389. package/.chunks/datepicker-BTiE5Grw.es.js.map +0 -1
  390. package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js +0 -140
  391. package/.chunks/dialog_selectorRegions-BZcnnvJM.es.js.map +0 -1
  392. package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js +0 -2
  393. package/.chunks/dialog_selectorRegions-CePGUsCo.amd.js.map +0 -1
  394. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js +0 -266
  395. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B5hK613K.es.js.map +0 -1
  396. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js +0 -2
  397. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-izSFcRLb.amd.js.map +0 -1
  398. package/.chunks/forms-BsuCen2-.es.js +0 -1999
  399. package/.chunks/forms-BsuCen2-.es.js.map +0 -1
  400. package/.chunks/forms-BwGakScF.amd.js +0 -3
  401. package/.chunks/forms-BwGakScF.amd.js.map +0 -1
  402. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js +0 -2
  403. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CfM8kOV1.amd.js.map +0 -1
  404. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js +0 -181
  405. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js.map +0 -1
  406. package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js +0 -2
  407. package/.chunks/menu.vue_vue_type_style_index_0_lang-DQTVNJGq.amd.js.map +0 -1
  408. package/.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js.map +0 -1
  409. package/.chunks/notice-CJdCc72d.amd.js.map +0 -1
  410. package/.chunks/notice-Cqs1dKt8.es.js.map +0 -1
  411. package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js +0 -2
  412. package/.chunks/page.vue_vue_type_script_setup_true_lang-1JWduCTr.amd.js.map +0 -1
  413. package/.chunks/page.vue_vue_type_script_setup_true_lang-BCfksgg3.es.js.map +0 -1
  414. package/.chunks/popup-CLhWWJDe.amd.js +0 -2
  415. package/.chunks/popup-CLhWWJDe.amd.js.map +0 -1
  416. package/.chunks/popup-N10MDafw.es.js +0 -416
  417. package/.chunks/popup-N10MDafw.es.js.map +0 -1
  418. package/.chunks/punycode.es6-C2yitnNb.amd.js +0 -2
  419. package/.chunks/punycode.es6-CNI-zL6U.es.js +0 -134
  420. package/.chunks/store-esTid5oI.amd.js +0 -2
  421. package/.chunks/store-esTid5oI.amd.js.map +0 -1
  422. package/.chunks/utils-B1H3EGkg.es.js.map +0 -1
  423. package/.chunks/utils-B7GVqGBH.amd.js +0 -2
  424. package/.chunks/utils-B7GVqGBH.amd.js.map +0 -1
  425. package/.chunks/utils-DIy2mbYd.amd.js +0 -2
  426. package/.chunks/utils-DIy2mbYd.amd.js.map +0 -1
  427. package/.chunks/utils-bjr7c5my.es.js +0 -225
  428. package/.chunks/utils-bjr7c5my.es.js.map +0 -1
  429. package/CHANGELOG.md +0 -14
  430. package/components/charts/charts.d.ts +0 -5
  431. package/components/charts/miniChart/stories/dummy.d.ts +0 -13
  432. package/components/charts/miniCharts/stories/dummy.d.ts +0 -6
  433. package/components/dialog/dialog/stories/autoload.d.ts +0 -2
  434. package/components/dialog/lib/utils.d.ts +0 -14
  435. package/components/forms/forms.d.ts +0 -27
  436. package/components/forms/helpers.d.ts +0 -10
  437. package/components/forms/input/input.d.ts +0 -34
  438. package/components/forms/inputDate/inputDate.d.ts +0 -3
  439. package/components/forms/select/stories/exampleOptions.d.ts +0 -5
  440. package/components/formsExt/formsExt.d.ts +0 -13
  441. package/components/formsExt/menu/stories/items.d.ts +0 -3
  442. package/components/formsExt/navigationMenu/navigationMenu.d.ts +0 -24
  443. package/components/formsExt/navigationMenu/stories/items.d.ts +0 -3
  444. package/components/formsExt/selector2/api.d.ts +0 -8
  445. package/components/formsExt/selector2/selector2.vue.d.ts +0 -210
  446. package/components/formsExt/selector2/stories/dummyAPIRequest.d.ts +0 -10
  447. package/components/layout/layout.d.ts +0 -9
  448. package/components/popup/alert/alert.d.ts +0 -8
  449. package/components/popup/alert/alert.vue.d.ts +0 -31
  450. package/components/popup/confirm/confirm.vue.d.ts +0 -33
  451. package/components/popup/popup/opener.vue.d.ts +0 -23
  452. package/components/popup/popup/popup.vue.d.ts +0 -40
  453. package/components/popup/popup.d.ts +0 -15
  454. package/components/popup/prompt/prompt.vue.d.ts +0 -33
  455. package/components/project/project.d.ts +0 -15
  456. package/components/project/selectorCompetitors/stories/items.d.ts +0 -3
  457. package/components/project/selectorCompetitors/types/competitor.d.ts +0 -7
  458. package/components/project/selectorRegion/stories/searchers.d.ts +0 -3
  459. package/components/project/selectorRegion/utils/consts.d.ts +0 -18
  460. package/components/tabs/tabs.d.ts +0 -7
  461. package/components/tabsView/tabsView/store.d.ts +0 -192
  462. package/components/tabsView/tabsView.d.ts +0 -7
  463. package/icomoon/Topvisor icons.json +0 -6260
  464. /package/assets/{popup.css → widgetInput.css} +0 -0
  465. /package/{components/charts/miniChart/miniChart.d.ts → src/components/charts/miniChart/types.d.ts} +0 -0
  466. /package/{components → src/components}/charts/miniChart/utils/consts.d.ts +0 -0
  467. /package/{components → src/components}/core/notice/item/item.vue.d.ts +0 -0
  468. /package/{components → src/components}/core/notice/notice.vue.d.ts +0 -0
  469. /package/{components → src/components}/core/notice/types.d.ts +0 -0
  470. /package/{components → src/components}/core/notice/utils.d.ts +0 -0
  471. /package/{components → src/components}/dialog/dialog/composables/asyncDialogHandle.d.ts +0 -0
  472. /package/{components → src/components}/dialog/dialog/composables/dialogHandle.d.ts +0 -0
  473. /package/{components → src/components}/dialog/dialog/composables/types.d.ts +0 -0
  474. /package/{components → src/components}/dialog/dialog/composables/utils.d.ts +0 -0
  475. /package/{components → src/components}/dialog/dialog/dialog.vue.d.ts +0 -0
  476. /package/{components → src/components}/dialog/dialog/page/page.vue.d.ts +0 -0
  477. /package/{components → src/components}/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -0
  478. /package/{components → src/components}/dialog/dialog/pageComponent/types.d.ts +0 -0
  479. /package/{components → src/components}/dialog/dialog/stories/dialog_example/pages/utils.d.ts +0 -0
  480. /package/{components → src/components}/dialog/dialog/types.d.ts +0 -0
  481. /package/{components → src/components}/dialog/dialog.d.ts +0 -0
  482. /package/{components/forms/checkbox/checkbox.d.ts → src/components/forms/checkbox/types.d.ts} +0 -0
  483. /package/{components/forms/controlLabel/controlLabel.d.ts → src/components/forms/controlLabel/types.d.ts} +0 -0
  484. /package/{components/forms/hint/hint.d.ts → src/components/forms/hint/types.d.ts} +0 -0
  485. /package/{components → src/components}/forms/inputDate/datepicker.d.ts +0 -0
  486. /package/{components → src/components}/forms/inputRange/inputRange.vue.d.ts +0 -0
  487. /package/{components/layout/islandRows/islandRowsRow → src/components/forms/inputRange}/types.d.ts +0 -0
  488. /package/{components → src/components}/forms/loadbar/loadbar.vue.d.ts +0 -0
  489. /package/{components/project/tagSelector/tagIcon/tagIcon.vue.d.ts → src/components/forms/preloader/preloader.vue.d.ts} +0 -0
  490. /package/{components/forms/radio/radio.d.ts → src/components/forms/radio/types.d.ts} +0 -0
  491. /package/{components/forms/switcher/switcher.d.ts → src/components/forms/switcher/types.d.ts} +0 -0
  492. /package/{components → src/components}/formsExt/info/info.vue.d.ts +0 -0
  493. /package/{components/formsExt/menu/menu.d.ts → src/components/formsExt/menu/types.d.ts} +0 -0
  494. /package/{components → src/components}/layout/islandRows/islandRows.vue.d.ts +0 -0
  495. /package/{components → src/components}/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -0
  496. /package/{components/forms/inputRange/inputRange.d.ts → src/components/layout/islandRows/islandRowsRow/types.d.ts} +0 -0
  497. /package/{components → src/components}/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -0
  498. /package/{components → src/components}/layout/rows/rows.vue.d.ts +0 -0
  499. /package/{components → src/components}/layout/rows/types.d.ts +0 -0
  500. /package/{components → src/components}/popup/lib/worker.globalEvents.d.ts +0 -0
  501. /package/{components → src/components}/popup/worker.d.ts +0 -0
  502. /package/{components → src/components}/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -0
  503. /package/{components → src/components}/project/tagSelector/popupListItem/types.d.ts +0 -0
  504. /package/{components → src/components}/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -0
  505. /package/{components → src/components}/project/tagSelector/tagIcon/types.d.ts +0 -0
  506. /package/{components → src/components}/project/tagSelector/tagSelector.vue.d.ts +0 -0
  507. /package/{components → src/components}/project/tagSelector/tagsDefaults.d.ts +0 -0
  508. /package/{components → src/components}/project/tagSelector/utils/utils.d.ts +0 -0
  509. /package/{components/tabs/tabs/tabs.d.ts → src/components/tabs/tabs/types.d.ts} +0 -0
  510. /package/{components → src/components}/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -0
  511. /package/{components → src/components}/tabsView/tabsView/utils.d.ts +0 -0
  512. /package/{core → src/core}/core/events/resize.d.ts +0 -0
  513. /package/{core → src/core}/core/events.d.ts +0 -0
  514. /package/{core → src/core}/core/preloaders.d.ts +0 -0
  515. /package/{core → src/core}/directives/data.d.ts +0 -0
  516. /package/{core → src/core}/directives/focus.d.ts +0 -0
  517. /package/{core → src/core}/directives/scrollIntoView.d.ts +0 -0
  518. /package/{core → src/core}/directives/scrollShadow.d.ts +0 -0
  519. /package/{core → src/core}/directives/sticky.d.ts +0 -0
  520. /package/{core → src/core}/directives/swimUp.d.ts +0 -0
  521. /package/{core → src/core}/directives/tooltip.d.ts +0 -0
  522. /package/{core → src/core}/plugins/piniaTPA.d.ts +0 -0
  523. /package/{core → src/core}/utils/check.d.ts +0 -0
  524. /package/{core → src/core}/utils/clipboard.d.ts +0 -0
  525. /package/{core → src/core}/utils/device.d.ts +0 -0
  526. /package/{core → src/core}/utils/image.d.ts +0 -0
  527. /package/{core → src/core}/utils/keyboard.d.ts +0 -0
  528. /package/{core → src/core}/utils/lodash.d.ts +0 -0
  529. /package/{core → src/core}/utils/number.d.ts +0 -0
  530. /package/{core → src/core}/utils/price.d.ts +0 -0
  531. /package/{core → src/core}/utils/scroll.d.ts +0 -0
  532. /package/{core → src/core}/utils/store/localStorage.d.ts +0 -0
  533. /package/{core → src/core}/utils/store/plugin.d.ts +0 -0
  534. /package/{core → src/core}/utils/store/store.d.ts +0 -0
  535. /package/{core → src/core}/utils/system.d.ts +0 -0
  536. /package/{core → src/core}/utils/url.d.ts +0 -0
@@ -1,17 +1,17 @@
1
- import { Core as Te } from "../core/app.js";
2
- import { defineComponent as q, mergeModels as R, useModel as N, computed as E, createElementBlock as B, openBlock as k, createBlock as b, unref as y, withCtx as _, Fragment as W, renderList as ie, normalizeClass as Q, createElementVNode as ye, toDisplayString as M, createVNode as L, createTextVNode as z, ref as D, watch as K, createCommentVNode as F, withModifiers as j, mergeProps as pe, withKeys as de, nextTick as be, resolveDirective as Be, withDirectives as Ve, resolveDynamicComponent as Ee, renderSlot as Me, shallowRef as $e, createSlots as Ke, reactive as we, toValue as ue, isRef as ce } from "vue";
3
- import { u as A, C as J, _ as Y, x as re, d as Le } from "../.chunks/forms-BsuCen2-.es.js";
4
- import { _ as he, a as se, b as Ae } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-CszHDnB0.es.js";
5
- import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-DmY5w4yr.es.js";
6
- import { u as Re } from "../.chunks/utils-B1H3EGkg.es.js";
7
- import { getSearcherGIcon as Ne, getLangLabel as De, getDeviceGIcon as Fe } from "../utils/searchers.js";
8
- import { storage as G } from "../utils/dom.js";
9
- import { TopPopupWorker as qe } from "../popup/worker.js";
10
- const _e = ["../assets/project.css"].map((t) => import.meta.resolve(t));
11
- Te.insertCSSLinkToPage(_e, !0);
12
- const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }, je = /* @__PURE__ */ q({
1
+ import { Core as _e } from "../core/app.js";
2
+ import { defineComponent as P, mergeModels as N, useModel as D, computed as E, createElementBlock as B, openBlock as k, createBlock as b, unref as y, withCtx as _, Fragment as Y, renderList as se, normalizeClass as X, createElementVNode as he, toDisplayString as K, createVNode as A, createTextVNode as G, toValue as de, ref as F, watch as w, createCommentVNode as q, isRef as ce, withModifiers as z, mergeProps as Se, withKeys as ge, nextTick as Be, resolveDirective as Ve, withDirectives as Ee, resolveDynamicComponent as Me, renderSlot as Ke, shallowRef as $e, createSlots as we, reactive as Le } from "vue";
3
+ import { u as R, C as J, c as H, o as re, d as Ae } from "../.chunks/forms-DarRVke_.es.js";
4
+ import { _ as Ie, b as ue, a as Re } from "../.chunks/listItem.vue_vue_type_script_setup_true_lang-DzJ_pc-d.es.js";
5
+ import { _ as Oe } from "../.chunks/menu.vue_vue_type_style_index_0_lang-COD_4iTy.es.js";
6
+ import { u as Ne } from "../.chunks/utils-3M9LC_L_.es.js";
7
+ import { getSearcherGIcon as De, getLangLabel as Fe, getDeviceGIcon as qe } from "../utils/searchers.js";
8
+ import { storage as W } from "../utils/dom.js";
9
+ import { TopPopupWorker as Pe } from "../popup/worker.js";
10
+ const be = ["../assets/project.css"].map((t) => import.meta.resolve(t));
11
+ _e.insertCSSLinkToPage(be, !0);
12
+ const Ue = { class: "top-selectorCompetitors" }, je = { class: "top-ellipsis1" }, yt = /* @__PURE__ */ P({
13
13
  __name: "selectorCompetitors",
14
- props: /* @__PURE__ */ R({
14
+ props: /* @__PURE__ */ N({
15
15
  modelValue: {},
16
16
  items: {},
17
17
  showSelectAllItem: { type: Boolean, default: !0 }
@@ -21,19 +21,19 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
21
21
  }),
22
22
  emits: ["update:modelValue"],
23
23
  setup(t) {
24
- const l = t, o = N(t, "modelValue"), e = E(() => {
24
+ const l = t, o = D(t, "modelValue"), e = E(() => {
25
25
  if (l.showSelectAllItem)
26
26
  return {
27
27
  icon: "",
28
- title: A().Common.Select_all,
28
+ title: R().Common.Select_all,
29
29
  value: "all",
30
30
  content: ""
31
31
  };
32
32
  });
33
- return (i, a) => (k(), B("div", Pe, [
34
- y(J).state.isMobile ? (k(), b(he, { key: 0 }, {
33
+ return (i, a) => (k(), B("div", Ue, [
34
+ y(J).state.isMobile ? (k(), b(Ie, { key: 0 }, {
35
35
  opener: _(() => [
36
- L(Y, {
36
+ A(H, {
37
37
  class: "top-selectorCompetitors_opener",
38
38
  color: "theme",
39
39
  icon: "",
@@ -42,9 +42,9 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
42
42
  default: _(() => {
43
43
  var n;
44
44
  return [
45
- z(M((n = i.items.find((d) => {
46
- var m;
47
- return d.value === ((m = o.value) == null ? void 0 : m[0]);
45
+ G(K((n = i.items.find((u) => {
46
+ var f;
47
+ return u.value === ((f = o.value) == null ? void 0 : f[0]);
48
48
  })) == null ? void 0 : n.content), 1)
49
49
  ];
50
50
  }),
@@ -52,18 +52,18 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
52
52
  })
53
53
  ]),
54
54
  contentList: _(() => [
55
- (k(!0), B(W, null, ie(i.items, (n, d) => {
56
- var m;
57
- return k(), b(se, {
58
- class: Q({
59
- "top-active": (m = o.value) == null ? void 0 : m.includes(n.value)
55
+ (k(!0), B(Y, null, se(i.items, (n) => {
56
+ var u;
57
+ return k(), b(ue, {
58
+ class: X({
59
+ "top-active": (u = o.value) == null ? void 0 : u.includes(n.value)
60
60
  }),
61
61
  "data-top-icon": n.icon,
62
62
  title: n.title,
63
63
  onClick: () => o.value = [n.value]
64
64
  }, {
65
65
  default: _(() => [
66
- ye("span", Ue, M(n.content), 1)
66
+ he("span", je, K(n.content), 1)
67
67
  ]),
68
68
  _: 2
69
69
  }, 1032, ["class", "data-top-icon", "title", "onClick"]);
@@ -82,7 +82,12 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
82
82
  }, null, 8, ["modelValue", "items", "selectAllItem"]))
83
83
  ]));
84
84
  }
85
- }), x = -2, Je = {
85
+ }), pt = (t, l) => E(() => de(t).filter((i) => i.on >= 0 || i.id === l).map((i) => ({
86
+ value: i.id,
87
+ title: i.url + ` [${i.id}]`,
88
+ icon: i.id === de(l) ? "" : "",
89
+ content: i.name
90
+ }))), M = -1, p = -2, te = -1, ze = {
86
91
  0: "Yandex",
87
92
  1: "Google",
88
93
  4: "YouTube",
@@ -92,57 +97,60 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
92
97
  9: "GoogleStore",
93
98
  20: "Yandex.com",
94
99
  21: "Yandex.com.tr"
95
- }, ee = {
96
- key: x,
100
+ }, me = {
101
+ key: p,
97
102
  name: "--",
98
- index: x
99
- }, Se = {
100
- key: x,
103
+ index: p
104
+ }, xe = {
105
+ key: p,
101
106
  name: "--",
102
- regions: [ee],
103
- regionByIndex: /* @__PURE__ */ new Map([[x, ee]])
104
- }, te = {
105
- key: x,
107
+ regions: [me],
108
+ regionByIndex: /* @__PURE__ */ new Map([[p, me]])
109
+ }, ae = {
110
+ key: p,
106
111
  name: "Autoselect",
107
- index: x
112
+ index: p
108
113
  }, oe = {
109
- key: x,
114
+ key: p,
110
115
  name: "Autoselect",
111
- regions: [te],
112
- regionByIndex: /* @__PURE__ */ new Map([[x, te]])
113
- }, ge = {
116
+ regions: [ae],
117
+ regionByIndex: /* @__PURE__ */ new Map([[p, ae]])
118
+ }, fe = {
114
119
  countryCode: "00",
115
120
  depth: 1,
116
121
  device: 0,
117
- key: -1,
118
- index: -1,
122
+ key: te,
123
+ index: te,
119
124
  lang: "ru",
120
125
  name: "Without region"
121
- }, ze = () => (te.name = A().Common.Autoselect, te), Ge = () => (ze(), oe.name = A().Common.Autoselect, console.log(oe), oe), We = () => (ge.name = A().Keywords.Without_region, ge), Ie = (t = !1, l = !1, o = []) => {
126
+ }, Je = () => (ae.name = R().Common.Autoselect, ae), Ge = () => (Je(), oe.name = R().Common.Autoselect, console.log(oe), oe), We = () => (fe.name = R().Keywords.Without_region, fe), ke = (t = !1, l = !1, o = []) => {
122
127
  let e;
123
- return t ? e = Ye(o) : e = xe(o), l && e.set(x, Ge()), e.size || e.set(x, Se), e;
124
- }, xe = (t, l = !0, o = [], e = !1) => {
128
+ return t ? e = Ye(o) : e = Ce(o), l && e.set(p, Ge()), e.size || e.set(p, xe), e;
129
+ }, Ce = (t, l = !0, o = [], e = !1) => {
125
130
  const i = /* @__PURE__ */ new Map();
126
131
  return t.forEach((a) => {
127
132
  if (!a.enabled || e && typeof a.key == "number" && a.key > 1) return;
128
133
  const n = { ...a };
129
- n.regionByIndex = /* @__PURE__ */ new Map(), a.regions && a.regions.forEach((d) => {
130
- if (l && !d.enabled) return;
131
- const m = { ...d };
132
- n.regionByIndex.set(m.index, m);
133
- }), !n.regionByIndex.size && !o.length && n.regionByIndex.set(ee.index, ee), typeof n.key == "number" && i.set(n.key, n);
134
+ n.regionByIndex = /* @__PURE__ */ new Map(), a.regions && a.regions.forEach((u) => {
135
+ if (l && !u.enabled) return;
136
+ const f = { ...u };
137
+ n.regionByIndex.set(f.index, f);
138
+ }), !n.regionByIndex.size && o.length, // режим вывода ПС без регионов
139
+ (!a.regions || // есть включенные регионы
140
+ n.regionByIndex.size || // запрошен вывод конкретных ПС
141
+ o.length) && typeof n.key == "number" && i.set(n.key, n);
134
142
  }), o.forEach((a) => {
135
143
  if (i.has(a)) return;
136
144
  const n = {
137
145
  key: a,
138
- name: Je[a],
146
+ name: ze[a],
139
147
  regions: [],
140
148
  regionByIndex: /* @__PURE__ */ new Map()
141
149
  };
142
150
  i.set(n.key, n);
143
151
  }), i;
144
152
  }, Ye = (t) => {
145
- const l = xe(t, !1, [0, 1], !0);
153
+ const l = Ce(t, !1, [0, 1], !0);
146
154
  if (l.has(2)) {
147
155
  const o = l.get(2);
148
156
  o && (o.regionByIndex = /* @__PURE__ */ new Map());
@@ -153,7 +161,7 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
153
161
  o.regionByIndex.set(e.index, e);
154
162
  }), l;
155
163
  }, He = (t, l, o = []) => {
156
- const e = Ie(t, !1, o);
164
+ const e = ke(t, !1, o);
157
165
  let i;
158
166
  return e.forEach((a) => {
159
167
  if (!(l.searcher_key !== void 0 && l.searcher_key != a.key) && a.regions && (a.regions.forEach((n) => {
@@ -162,27 +170,27 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
162
170
  }), i))
163
171
  return !1;
164
172
  }), i;
165
- }, Qe = Re(() => import("../.chunks/dialog_selectorRegions-BZcnnvJM.es.js")), Xe = (t, l) => {
166
- const o = A(), e = D(l.value.keys().next().value ?? x), i = E(() => {
173
+ }, Qe = Ne(() => import("../.chunks/dialog_selectorRegions-Zlm6K2mk.es.js")), Xe = (t, l) => {
174
+ const o = R(), e = F(l.value.keys().next().value ?? p), i = E(() => {
167
175
  const a = /* @__PURE__ */ new Map();
168
176
  if (l.value.forEach((n) => {
169
- let d = {
177
+ let u = {
170
178
  value: n.key,
171
179
  title: n.name
172
180
  };
173
- t.addSearcherIcon && (d.icon = Ne(n.key)), a.set(n.key, d);
174
- }), t.addCompare && !a.has(x)) {
181
+ t.addSearcherIcon && (u.icon = De(n.key)), a.set(n.key, u);
182
+ }), t.addCompare && !a.has(p)) {
175
183
  const n = {
176
184
  value: "",
177
185
  title: "--------------------",
178
186
  disabled: !0
179
187
  };
180
188
  a.set(n.value, n);
181
- const d = {
182
- value: -1,
189
+ const u = {
190
+ value: M,
183
191
  title: o.Common.Compare
184
192
  };
185
- a.set(d.value, d);
193
+ a.set(u.value, u);
186
194
  }
187
195
  return a;
188
196
  });
@@ -191,62 +199,62 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
191
199
  optionBySearcherKey: i
192
200
  };
193
201
  }, Ze = (t, l) => {
194
- var a, n, d;
195
- const o = A(), e = D(x);
196
- t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === x && (t.forFrequency ? e.value = ((n = (a = l.value) == null ? void 0 : a.regionByIndex.values().next().value) == null ? void 0 : n.key) ?? x : e.value = ((d = l.value) == null ? void 0 : d.regionByIndex.keys().next().value) ?? x);
202
+ var a, n, u;
203
+ const o = R(), e = F(p);
204
+ t.modelValue.length === 1 && (e.value = t.modelValue[0]), e.value === p && (t.forFrequency ? e.value = ((n = (a = l.value) == null ? void 0 : a.regionByIndex.values().next().value) == null ? void 0 : n.key) ?? p : e.value = ((u = l.value) == null ? void 0 : u.regionByIndex.keys().next().value) ?? p);
197
205
  const i = E(() => {
198
- var p;
199
- const m = /* @__PURE__ */ new Map();
200
- return (p = l.value.regionByIndex) == null || p.forEach((h) => {
201
- let r = h.name;
206
+ var h;
207
+ const f = /* @__PURE__ */ new Map();
208
+ return (h = l.value.regionByIndex) == null || h.forEach((S) => {
209
+ let r = S.name;
202
210
  if (t.forFrequency) {
203
- const I = {
204
- value: h.key,
211
+ const x = {
212
+ value: S.key,
205
213
  title: r
206
214
  };
207
- m.has(h.key) || m.set(h.key, I);
215
+ f.has(S.key) || f.set(S.key, x);
208
216
  return;
209
217
  }
210
- h.device && (r += " (" + o.Common["Device_" + h.device] + ")");
211
- const g = De(l.value.key || 0, h.lang ?? "");
218
+ S.device && (r += " (" + o.Common["Device_" + S.device] + ")");
219
+ const g = Fe(l.value.key || 0, S.lang ?? "");
212
220
  g && (r += " / " + g);
213
- const u = {
214
- value: h.index,
221
+ const d = {
222
+ value: S.index,
215
223
  title: r,
216
- icon: h.device ? Fe(h.device) : void 0
224
+ icon: S.device ? qe(S.device) : void 0
217
225
  };
218
- m.set(h.index, u);
219
- }), m;
226
+ f.set(S.index, d);
227
+ }), f;
220
228
  });
221
- return K(i, (m, p) => {
222
- var u;
223
- if (t.onlySearcher || e.value !== void 0 && m.get(e.value))
229
+ return w(i, (f, h) => {
230
+ var d;
231
+ if (t.onlySearcher || e.value !== void 0 && f.get(e.value))
224
232
  return;
225
- let h = m.keys().next().value;
226
- if (e.value === x || h === x) {
227
- e.value = h;
233
+ let S = f.keys().next().value;
234
+ if (e.value === p || S === p) {
235
+ e.value = S;
228
236
  return;
229
237
  }
230
- let r = ((u = p == null ? void 0 : p.get(e.value)) == null ? void 0 : u.title) || "", g = -1;
231
- for (const [I, T] of m.entries()) {
238
+ let r = ((d = h == null ? void 0 : h.get(e.value)) == null ? void 0 : d.title) || "", g = -1;
239
+ for (const [x, T] of f.entries()) {
232
240
  const C = T.title;
233
- if (typeof C != "string" || typeof I == "string")
241
+ if (typeof C != "string" || typeof x == "string")
234
242
  break;
235
243
  if (C === r) {
236
- h = I;
244
+ S = x;
237
245
  break;
238
246
  }
239
247
  const V = new RegExp(` \\((${o.Common.Device_1}|${o.Common.Device_2})\\)`);
240
- let f = r, s = 3;
241
- C.indexOf(f) === -1 && (f = r.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(f) === -1 && (f = r.replace(/ \/.*/, ""), s--), C.indexOf(f) === -1 && (f = r.replace(/ \/.*/, ""), f = f.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(f) !== -1 && (s <= g || (g = s, h = I));
248
+ let m = r, s = 3;
249
+ C.indexOf(m) === -1 && (m = r.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(m) === -1 && (m = r.replace(/ \/.*/, ""), s--), C.indexOf(m) === -1 && (m = r.replace(/ \/.*/, ""), m = m.replace(/^[^a-zа-я]/i, "").replace(V, ""), s--), C.indexOf(m) !== -1 && (s <= g || (g = s, S = x));
242
250
  }
243
- e.value = h;
251
+ e.value = S;
244
252
  }), {
245
253
  regionIndex: e,
246
254
  optionByRegionIndex: i
247
255
  };
248
256
  }, et = (t, l, o) => {
249
- const e = D([]), i = () => {
257
+ const e = F([]), i = () => {
250
258
  if (t.onlySearcher && l.value) {
251
259
  e.value = Array.from(l.value.keys());
252
260
  return;
@@ -261,55 +269,55 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
261
269
  ) ?? [];
262
270
  } catch {
263
271
  }
264
- n.length && (n = n.filter((d) => o.value.has(d))), n.length || (n = Array.from(o.value)), e.value = [...n];
272
+ n.length && (n = n.filter((u) => o.value.has(u))), n.length || (n = Array.from(o.value)), e.value = [...n];
265
273
  }, a = () => {
266
274
  e.value.length ? localStorage.setItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes", JSON.stringify(e.value)) : localStorage.removeItem("ui:project:regionSelector:" + t.projectId + ":regionsIndexes");
267
275
  };
268
- return K(e, () => {
276
+ return w(e, () => {
269
277
  a();
270
278
  }), t.addCompare && i(), {
271
279
  regionsIndexes: e
272
280
  };
273
281
  }, tt = (t) => {
274
- const l = E(() => Ie(t.forFrequency, t.autoRegion, t.searchers)), o = E(() => l.value.get(i.searcherKey.value) || Se), e = E(() => {
282
+ const l = E(() => ke(t.forFrequency, t.autoRegion, t.searchers)), o = E(() => l.value.get(i.searcherKey.value) || xe), e = E(() => {
275
283
  const r = /* @__PURE__ */ new Set();
276
284
  return l.value.forEach((g) => {
277
- g.regionByIndex.forEach((u) => {
278
- u.index !== -1 && u.index !== x && r.add(u.index);
285
+ g.regionByIndex.forEach((d) => {
286
+ d.index !== te && d.index !== p && r.add(d.index);
279
287
  });
280
288
  }), r;
281
289
  }), i = Xe(t, l), a = Ze(t, o), n = et(t, l, e);
282
- K(l, () => {
283
- var g, u, I, T;
284
- if (t.onlySearcher ? n.regionsIndexes.value = Array.from(l.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((C) => e.value.has(C)), i.searcherKey.value === -1) return;
290
+ w(l, () => {
291
+ var g, d, x, T;
292
+ if (t.onlySearcher ? n.regionsIndexes.value = Array.from(l.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((C) => e.value.has(C)), i.searcherKey.value === M) return;
285
293
  let r = l.value.keys().next().value;
286
294
  l.value.forEach((C) => {
287
- var V, f, s;
295
+ var V, m, s;
288
296
  if (t.onlySearcher && C.key === i.searcherKey.value) {
289
297
  r = i.searcherKey.value;
290
298
  return;
291
299
  }
292
300
  if (a.regionIndex.value && ((V = C.regionByIndex) != null && V.has(a.regionIndex.value)) && (r = C.key), !t.onlySearcher) {
293
301
  let c;
294
- r !== void 0 && (c = (f = l.value.get(r)) == null ? void 0 : f.regionByIndex);
302
+ r !== void 0 && (c = (m = l.value.get(r)) == null ? void 0 : m.regionByIndex);
295
303
  const v = (s = l.value.get(C.key)) == null ? void 0 : s.regionByIndex;
296
- c != null && c.has(x) && !(v != null && v.has(x)) && (r = C.key);
304
+ c != null && c.has(p) && !(v != null && v.has(p)) && (r = C.key);
297
305
  }
298
- }), r !== void 0 && (i.searcherKey.value = r), a.regionIndex.value !== void 0 && !((u = (g = o.value) == null ? void 0 : g.regionByIndex) != null && u.has(a.regionIndex.value)) && (a.regionIndex.value = (T = (I = o.value) == null ? void 0 : I.regions) == null ? void 0 : T.keys().next().value);
306
+ }), r !== void 0 && (i.searcherKey.value = r), a.regionIndex.value !== void 0 && !((d = (g = o.value) == null ? void 0 : g.regionByIndex) != null && d.has(a.regionIndex.value)) && (a.regionIndex.value = (T = (x = o.value) == null ? void 0 : x.regions) == null ? void 0 : T.keys().next().value);
299
307
  }, { immediate: !0 });
300
- const d = () => {
301
- if (!(i.searcherKey.value === -1 || i.searcherKey.value === x))
308
+ const u = () => {
309
+ if (!(i.searcherKey.value === M || i.searcherKey.value === p))
302
310
  return i.searcherKey.value;
303
- }, m = () => {
304
- if (t.onlySearcher || a.regionIndex.value === x) return;
311
+ }, f = () => {
312
+ if (t.onlySearcher || a.regionIndex.value === p) return;
305
313
  let r = a.regionIndex.value;
306
314
  if (t.forFrequency) {
307
- const g = a.regionIndex.value, u = He(t.forFrequency, { searcher_key: d(), key: g }, t.searchers);
308
- r = u == null ? void 0 : u.index;
315
+ const g = a.regionIndex.value, d = He(t.forFrequency, { searcher_key: u(), key: g }, t.searchers);
316
+ r = d == null ? void 0 : d.index;
309
317
  }
310
318
  return r;
311
- }, p = () => {
312
- const r = d();
319
+ }, h = () => {
320
+ const r = u();
313
321
  if (r !== void 0)
314
322
  return l.value.get(r);
315
323
  };
@@ -319,17 +327,17 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
319
327
  compare: n,
320
328
  searcherByKey: l,
321
329
  allRegionsIndexes: e,
322
- getSearcher: p,
330
+ getSearcher: h,
323
331
  getRegion: () => {
324
- var g, u;
325
- const r = m();
332
+ var g, d;
333
+ const r = f();
326
334
  if (r !== void 0)
327
- return (u = (g = p()) == null ? void 0 : g.regionByIndex) == null ? void 0 : u.get(r);
335
+ return (d = (g = h()) == null ? void 0 : g.regionByIndex) == null ? void 0 : d.get(r);
328
336
  }
329
337
  };
330
- }, at = /* @__PURE__ */ q({
338
+ }, ht = /* @__PURE__ */ P({
331
339
  __name: "selectorRegion",
332
- props: /* @__PURE__ */ R({
340
+ props: /* @__PURE__ */ N({
333
341
  projectId: {},
334
342
  searchers: { default: () => [] },
335
343
  modelValue: {},
@@ -349,63 +357,63 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
349
357
  }),
350
358
  emits: ["update:modelValue", "update:modelValueSingle"],
351
359
  setup(t, { expose: l }) {
352
- const o = t, e = N(t, "modelValue"), i = N(t, "modelValueSingle"), {
360
+ const o = t, e = D(t, "modelValue"), i = D(t, "modelValueSingle"), {
353
361
  selectSearcher: a,
354
362
  selectRegion: n,
355
- compare: d,
356
- searcherByKey: m,
357
- allRegionsIndexes: p,
358
- getSearcher: h,
363
+ compare: u,
364
+ searcherByKey: f,
365
+ allRegionsIndexes: h,
366
+ getSearcher: S,
359
367
  getRegion: r
360
368
  } = tt(o), g = () => {
361
- const u = [];
362
- m.value.forEach((I) => {
363
- I.enabled && I.regions.forEach((T) => {
364
- T.enabled && u.push(T);
369
+ const d = [];
370
+ f.value.forEach((x) => {
371
+ x.enabled && x.regions.forEach((T) => {
372
+ T.enabled && d.push(T);
365
373
  });
366
374
  }), Qe.open("selectorRegions", {
367
- regions: u,
368
- regionsIndexes: d.regionsIndexes.value,
369
- "@update:regionsIndexes": (I) => d.regionsIndexes.value = I
375
+ regions: d,
376
+ regionsIndexes: u.regionsIndexes.value,
377
+ "@update:regionsIndexes": (x) => u.regionsIndexes.value = x
370
378
  });
371
379
  };
372
- return K([n.regionIndex, a.searcherKey, d.regionsIndexes], () => {
373
- if (a.searcherKey.value === -1 && d.regionsIndexes.value.length) {
374
- if (JSON.stringify(e.value) === JSON.stringify(d.regionsIndexes.value))
380
+ return w([n.regionIndex, a.searcherKey, u.regionsIndexes], () => {
381
+ if (a.searcherKey.value === M && u.regionsIndexes.value.length) {
382
+ if (JSON.stringify(e.value) === JSON.stringify(u.regionsIndexes.value))
375
383
  return;
376
- e.value = [...d.regionsIndexes.value];
384
+ e.value = [...u.regionsIndexes.value];
377
385
  } else
378
- e.value = [o.onlySearcher ? a.searcherKey.value : n.regionIndex.value];
379
- !o.onlySearcher && !p.value.size && (a.searcherKey.value = x);
380
- }), i.value && K(i, () => {
381
- e.value = [i.value];
382
- }, { immediate: !0 }), K(e, () => {
383
- var u, I, T, C, V;
386
+ o.onlySearcher ? (e.value = [a.searcherKey.value], a.searcherKey.value === p && !o.autoRegion && (e.value.length = 0)) : (e.value = [n.regionIndex.value], n.regionIndex.value === p && !o.autoRegion && (e.value.length = 0));
387
+ !o.onlySearcher && !h.value.size && (a.searcherKey.value = p);
388
+ }), i.value && w(i, () => {
389
+ i.value && (e.value = [i.value]);
390
+ }, { immediate: !0 }), w(e, () => {
391
+ var d, x, T, C, V;
384
392
  if (e.value[0] && (i.value = e.value[0]), o.onlySearcher) {
385
- if (!e.value.length || e.value.length === 1 && !m.value.has(e.value[0])) {
386
- let f = m.value.keys().next().value;
387
- f !== void 0 && (e.value = [f]);
393
+ if (!e.value.length || e.value.length === 1 && !f.value.has(e.value[0]) || e.value.length === 1 && e.value[0] === p && !o.autoRegion) {
394
+ let m = f.value.keys().next().value;
395
+ m === p && !o.autoRegion && (m = void 0, i.value = p), m !== void 0 ? e.value = [m] : e.value.length = 0;
388
396
  return;
389
397
  }
390
- if (e.value.length > 1 && JSON.stringify(e.value) !== JSON.stringify(d.regionsIndexes.value)) {
391
- e.value = [...d.regionsIndexes.value];
398
+ if (e.value.length > 1 && JSON.stringify(e.value) !== JSON.stringify(u.regionsIndexes.value)) {
399
+ e.value = [...u.regionsIndexes.value];
392
400
  return;
393
401
  }
394
402
  } else {
395
- let f = [...new Set(e.value)], s = (I = (u = m.value.values().next().value) == null ? void 0 : u.regionByIndex) == null ? void 0 : I.keys().next().value;
396
- if (o.forFrequency && (s = (V = (C = (T = m.value.values().next().value) == null ? void 0 : T.regionByIndex) == null ? void 0 : C.values().next().value) == null ? void 0 : V.key), !f.length)
397
- s !== void 0 && f.push(s);
398
- else if (f.length === 1) {
399
- let c = p.value;
400
- o.forFrequency && (c = /* @__PURE__ */ new Set(), m.value.forEach((v) => {
401
- v.regionByIndex.forEach((S) => {
402
- S.index !== -1 && S.index !== x && c.add(S.key);
403
+ let m = [...new Set(e.value)], s = (x = (d = f.value.values().next().value) == null ? void 0 : d.regionByIndex) == null ? void 0 : x.keys().next().value;
404
+ if (o.forFrequency && (s = (V = (C = (T = f.value.values().next().value) == null ? void 0 : T.regionByIndex) == null ? void 0 : C.values().next().value) == null ? void 0 : V.key), s === p && !o.autoRegion && (s = void 0, i.value = p), !m.length)
405
+ s !== void 0 && m.push(s);
406
+ else if (m.length === 1) {
407
+ let c = h.value;
408
+ o.forFrequency && (c = /* @__PURE__ */ new Set(), f.value.forEach((v) => {
409
+ v.regionByIndex.forEach((I) => {
410
+ I.index !== te && I.index !== p && c.add(I.key);
403
411
  });
404
- })), !c.has(f[0]) && f[0] !== -2 && (f = [], s !== void 0 && f.push(s));
412
+ })), c.has(m[0]) || (m = [], s !== void 0 && m.push(s));
405
413
  } else
406
- f = f.filter((c) => p.value.has(c)), !f.length && s !== void 0 && f.push(s);
407
- if (JSON.stringify(e.value) !== JSON.stringify(f)) {
408
- e.value = f;
414
+ m = m.filter((c) => h.value.has(c)), !m.length && s !== void 0 && m.push(s);
415
+ if (JSON.stringify(e.value) !== JSON.stringify(m)) {
416
+ e.value = m;
409
417
  return;
410
418
  }
411
419
  }
@@ -415,63 +423,124 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
415
423
  a.searcherKey.value = e.value[0];
416
424
  return;
417
425
  }
418
- a.searcherKey.value = -1;
426
+ a.searcherKey.value = M;
419
427
  return;
420
- } else if (e.value.length === 1 && a.searcherKey.value !== -1) {
421
- n.regionIndex.value = e.value[0];
422
- let f;
423
- for (const s of m.value.values()) {
424
- for (const c of s.regionByIndex.values())
425
- if ((o.forFrequency ? c.key : c.index) === n.regionIndex.value) {
426
- f = s.key;
428
+ } else {
429
+ if (!e.value.length)
430
+ return;
431
+ if (e.value.length === 1 && a.searcherKey.value !== M) {
432
+ n.regionIndex.value = e.value[0];
433
+ let m;
434
+ for (const s of f.value.values()) {
435
+ for (const c of s.regionByIndex.values())
436
+ if ((o.forFrequency ? c.key : c.index) === n.regionIndex.value) {
437
+ m = s.key;
438
+ break;
439
+ }
440
+ if (m !== void 0)
427
441
  break;
428
- }
429
- if (f !== void 0)
430
- break;
431
- }
432
- f !== void 0 && (a.searcherKey.value = f);
433
- } else
434
- a.searcherKey.value = -1, d.regionsIndexes.value = [...e.value];
442
+ }
443
+ m !== void 0 && (a.searcherKey.value = m);
444
+ } else
445
+ a.searcherKey.value = M, u.regionsIndexes.value = [...e.value];
446
+ }
435
447
  }, { immediate: !0 }), l({
436
- getSearcher: h,
448
+ getSearcher: S,
437
449
  getRegion: r
438
- }), (u, I) => (k(), B("div", {
439
- class: Q({
450
+ }), (d, x) => (k(), B("div", {
451
+ class: X({
440
452
  "top-selectorRegion": !0,
441
- "top-selectorRegion-onlySearcher": u.onlySearcher
453
+ "top-selectorRegion-onlySearcher": d.onlySearcher
442
454
  })
443
455
  }, [
444
- L(re, {
456
+ A(re, {
445
457
  options: y(a).optionBySearcherKey.value,
446
458
  modelValue: y(a).searcherKey.value,
447
- "onUpdate:modelValue": I[0] || (I[0] = (T) => y(a).searcherKey.value = T),
459
+ "onUpdate:modelValue": x[0] || (x[0] = (T) => y(a).searcherKey.value = T),
448
460
  name: "searcher_key",
449
- addChanger: u.addChanger
461
+ addChanger: d.addChanger
450
462
  }, null, 8, ["options", "modelValue", "addChanger"]),
451
- !u.onlySearcher && y(a).searcherKey.value !== -1 ? (k(), b(re, {
463
+ !d.onlySearcher && y(a).searcherKey.value !== y(M) ? (k(), b(re, {
452
464
  key: 0,
453
465
  class: "top-select-region",
454
466
  options: y(n).optionByRegionIndex.value,
455
467
  modelValue: y(n).regionIndex.value,
456
- "onUpdate:modelValue": I[1] || (I[1] = (T) => y(n).regionIndex.value = T),
457
- name: u.forFrequency ? "region_key" : "region_index",
458
- addChanger: u.addChanger,
459
- "data-top-icon": u.addRegionIcon ? "" : void 0
460
- }, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : F("", !0),
461
- u.addCompare && !u.onlySearcher && y(a).searcherKey.value === -1 ? (k(), b(Y, {
468
+ "onUpdate:modelValue": x[1] || (x[1] = (T) => y(n).regionIndex.value = T),
469
+ name: d.forFrequency ? "region_key" : "region_index",
470
+ addChanger: d.addChanger,
471
+ "data-top-icon": d.addRegionIcon ? "" : void 0
472
+ }, null, 8, ["options", "modelValue", "name", "addChanger", "data-top-icon"])) : q("", !0),
473
+ d.addCompare && !d.onlySearcher && y(a).searcherKey.value === y(M) ? (k(), b(H, {
462
474
  key: 1,
463
475
  name: "compare",
464
476
  onClick: g,
465
- "data-count-compare-regions-indexes": y(d).regionsIndexes.value.length
477
+ "data-count-compare-regions-indexes": y(u).regionsIndexes.value.length
466
478
  }, {
467
479
  default: _(() => [
468
- z(M(u.$i18n.Common.Selected_regions), 1)
480
+ G(K(d.$i18n.Common.Selected_regions), 1)
469
481
  ]),
470
482
  _: 1
471
- }, 8, ["data-count-compare-regions-indexes"])) : F("", !0)
483
+ }, 8, ["data-count-compare-regions-indexes"])) : q("", !0)
472
484
  ], 2));
473
485
  }
474
- }), lt = [
486
+ }), ve = (t) => "-" + t, Q = (t) => t[0] === "-" ? t.substring(1) : t, le = (t, l) => {
487
+ t = Q(t);
488
+ const o = l.find((e) => e.id === t);
489
+ if (o)
490
+ return o;
491
+ }, St = (t, l, o) => {
492
+ l || (l = { id: t.id }), l.id = t.id;
493
+ const e = Pe.genElPopupOpener("div", l);
494
+ return e.classList.add("top-tagSelector"), t.useTopButton && e.classList.add("top-button", "top-color_theme"), t.mode === "filter" && e.classList.add("top-tagSelector-filter"), t.mode === "setter" && !t.filters && e.classList.add("top-tagSelector-setter_single"), t.mode === "setter" && t.filters && e.classList.add("top-tagSelector-setter_several"), e.onclick = (i) => {
495
+ i.preventDefault(), i.stopPropagation(), e.onclick = null;
496
+ const a = F(t.modelValue), n = {
497
+ model: a,
498
+ mode: t.mode,
499
+ targetId: t.targetId,
500
+ filters: t.filters,
501
+ payload: t.payload
502
+ };
503
+ W(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ce(t.modelValue) || w(a, () => {
504
+ t.modelValue = a.value, ee(e, t, o);
505
+ }), e.click();
506
+ }, ce(t.modelValue) ? w(t.modelValue, () => ee(e, t, o)) : W(e, "topTagSelectorRender", (i) => {
507
+ t.modelValue = i;
508
+ const a = W(e, "topTagSelectorTarget");
509
+ a && (a.model.value = i), ee(e, t, o);
510
+ }), ee(e, t, o), e;
511
+ }, It = (t, l) => {
512
+ var o;
513
+ (o = W(t, "topTagSelectorRender")) == null || o(l);
514
+ }, ee = (t, l, o) => {
515
+ var i;
516
+ const e = y(l.modelValue);
517
+ if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5), l.mode === "setter" && l.filters) {
518
+ t.innerHTML = `<div>${o}</div>`;
519
+ return;
520
+ }
521
+ if (t.innerHTML = "", !e.length && l.mode === "filter") {
522
+ const a = ye({
523
+ id: "all",
524
+ colorId: "",
525
+ name: ((i = R().Common) == null ? void 0 : i.All_tags) ?? "",
526
+ state: ""
527
+ });
528
+ t.append(a);
529
+ }
530
+ e.forEach((a) => {
531
+ var u, f;
532
+ const n = ye({
533
+ id: Q(a),
534
+ colorId: ((u = le(a, l.tags)) == null ? void 0 : u.color_id) ?? "",
535
+ name: ((f = le(a, l.tags)) == null ? void 0 : f.name) ?? "",
536
+ state: Q(a) === a ? "selected" : "excluded"
537
+ });
538
+ t.append(n);
539
+ });
540
+ }, ye = (t) => {
541
+ const l = document.createElement("div");
542
+ return l.classList.add("top-tagSelector_tagIcon"), l.classList.toggle("top-tagSelector-active", !!t.state), l.classList.toggle("top-tagSelector-excluded", t.state === "excluded"), l.dataset.tag_id = t.id, l.dataset.tag_color_id = t.colorId, l.title = t.name, l;
543
+ }, at = [
475
544
  {
476
545
  id: "1",
477
546
  name: "Without Tag",
@@ -522,12 +591,7 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
522
591
  name: "Turquoise",
523
592
  color_id: "10"
524
593
  }
525
- ], me = (t) => "-" + t, H = (t) => t[0] === "-" ? t.substring(1) : t, ae = (t, l) => {
526
- t = H(t);
527
- const o = l.find((e) => e.id === t);
528
- if (o)
529
- return o;
530
- }, nt = ["data-tag_id", "data-tag_color_id", "title"], le = /* @__PURE__ */ q({
594
+ ], lt = ["data-tag_id", "data-tag_color_id", "title"], ie = /* @__PURE__ */ P({
531
595
  __name: "tagIcon",
532
596
  props: {
533
597
  id: {},
@@ -537,7 +601,7 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
537
601
  },
538
602
  setup(t) {
539
603
  return (l, o) => (k(), B("div", {
540
- class: Q({
604
+ class: X({
541
605
  "top-tagSelector_tagIcon": !0,
542
606
  "top-tagSelector-active": !!l.state,
543
607
  "top-tagSelector-excluded": l.state === "excluded"
@@ -545,11 +609,11 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
545
609
  "data-tag_id": l.id,
546
610
  "data-tag_color_id": l.colorId,
547
611
  title: l.name
548
- }, null, 10, nt));
612
+ }, null, 10, lt));
549
613
  }
550
- }), ot = ["contenteditable", "onKeydown"], fe = /* @__PURE__ */ q({
614
+ }), nt = ["contenteditable", "onKeydown"], pe = /* @__PURE__ */ P({
551
615
  __name: "tagPopupListItem",
552
- props: /* @__PURE__ */ R({
616
+ props: /* @__PURE__ */ N({
553
617
  editable: { type: Boolean },
554
618
  disabled: { type: Boolean },
555
619
  canExclude: { type: Boolean },
@@ -563,76 +627,76 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
563
627
  },
564
628
  nameModifiers: {}
565
629
  }),
566
- emits: /* @__PURE__ */ R(["update:name", "unselect", "exclude", "select"], ["update:name"]),
630
+ emits: /* @__PURE__ */ N(["update:name", "unselect", "exclude", "select"], ["update:name"]),
567
631
  setup(t, { emit: l }) {
568
- const o = t, e = l, i = N(t, "name"), a = D(null), n = E(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
569
- contenteditable: d.value,
632
+ const o = t, e = l, i = D(t, "name"), a = F(null), n = E(() => navigator.userAgent.indexOf("Firefox") != -1 ? {
633
+ contenteditable: u.value,
570
634
  onpaste: (g) => g.preventDefault()
571
- } : {}), d = D(!1), m = async () => {
635
+ } : {}), u = F(!1), f = async () => {
572
636
  var g;
573
- d.value = !0, await be(), (g = a.value) == null || g.focus();
574
- }, p = () => {
575
- var u;
576
- const g = (u = a.value) == null ? void 0 : u.innerText;
577
- if (!g) return h();
578
- a.value && (a.value.innerText = g), d.value = !1, e("update:name", g);
579
- }, h = async () => {
580
- a.value && (a.value.innerText = o.name), d.value = !1;
637
+ u.value = !0, await Be(), (g = a.value) == null || g.focus();
638
+ }, h = () => {
639
+ var d;
640
+ const g = (d = a.value) == null ? void 0 : d.innerText;
641
+ if (!g) return S();
642
+ a.value && (a.value.innerText = g), u.value = !1, e("update:name", g);
643
+ }, S = async () => {
644
+ a.value && (a.value.innerText = o.name), u.value = !1;
581
645
  }, r = (g) => {
582
- if (d.value || o.disabled) return;
583
- let u = "selected";
584
- o.canExclude && (g.ctrlKey || g.metaKey) && (u = "excluded"), o.state == u && (u = ""), u === "" && e("unselect"), u === "selected" && e("select"), u === "excluded" && e("exclude");
646
+ if (u.value || o.disabled) return;
647
+ let d = "selected";
648
+ o.canExclude && (g.ctrlKey || g.metaKey) && (d = "excluded"), o.state == d && (d = ""), d === "" && e("unselect"), d === "selected" && e("select"), d === "excluded" && e("exclude");
585
649
  };
586
- return (g, u) => (k(), b(se, {
587
- class: Q({
650
+ return (g, d) => (k(), b(ue, {
651
+ class: X({
588
652
  "top-tagSelector_tagListItem": !0,
589
- "top-tagSelector_tagListItem-inEdit": d.value,
653
+ "top-tagSelector_tagListItem-inEdit": u.value,
590
654
  "top-tagSelector_tagListItem-disabled": g.disabled,
591
655
  "top-tagSelector_tagListItem-canExclude": g.canExclude,
592
656
  "top-tagSelector-active": !!g.state,
593
657
  "top-tagSelector-excluded": g.state === "excluded"
594
658
  }),
595
- onClick: j(r, ["stop"])
659
+ onClick: z(r, ["stop"])
596
660
  }, {
597
661
  default: _(() => [
598
- L(le, {
662
+ A(ie, {
599
663
  id: g.id,
600
664
  name: i.value,
601
665
  colorId: g.colorId,
602
666
  state: g.state
603
667
  }, null, 8, ["id", "name", "colorId", "state"]),
604
- ye("span", pe({
668
+ he("span", Se({
605
669
  ref_key: "elName",
606
670
  ref: a,
607
671
  class: "top-tagSelector_tagListItemName",
608
- contenteditable: d.value ? "plaintext-only" : !1
672
+ contenteditable: u.value ? "plaintext-only" : !1
609
673
  }, n.value, {
610
674
  onKeydown: [
611
- de(j(p, ["stop"]), ["enter"]),
612
- de(j(h, ["stop"]), ["esc"])
675
+ ge(z(h, ["stop"]), ["enter"]),
676
+ ge(z(S, ["stop"]), ["esc"])
613
677
  ]
614
- }), M(i.value), 17, ot),
615
- g.editable ? (k(), B(W, { key: 0 }, [
616
- d.value ? (k(), B("span", {
678
+ }), K(i.value), 17, nt),
679
+ g.editable ? (k(), B(Y, { key: 0 }, [
680
+ u.value ? (k(), B("span", {
617
681
  key: 1,
618
682
  "data-top-icon": "",
619
683
  class: "top-tagSelector_edit",
620
- onClick: j(p, ["stop"])
684
+ onClick: z(h, ["stop"])
621
685
  })) : (k(), B("span", {
622
686
  key: 0,
623
- "data-top-icon": "",
687
+ "data-top-icon": "",
624
688
  class: "top-tagSelector_edit",
625
- onClick: m
689
+ onClick: f
626
690
  }))
627
- ], 64)) : F("", !0)
691
+ ], 64)) : q("", !0)
628
692
  ]),
629
693
  _: 1
630
694
  }, 8, ["class"]));
631
695
  }
632
- }), rt = { key: 1 }, ke = /* @__PURE__ */ q({
696
+ }), ot = { key: 1 }, rt = /* @__PURE__ */ P({
633
697
  inheritAttrs: !1,
634
698
  __name: "popupOpener",
635
- props: /* @__PURE__ */ R({
699
+ props: /* @__PURE__ */ N({
636
700
  modelValue: {},
637
701
  id: {},
638
702
  tags: {},
@@ -640,7 +704,8 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
640
704
  targetId: {},
641
705
  filters: {},
642
706
  useTopButton: { type: Boolean },
643
- payload: {}
707
+ payload: {},
708
+ styling: {}
644
709
  }, {
645
710
  modelValue: {
646
711
  required: !0
@@ -649,18 +714,18 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
649
714
  }),
650
715
  emits: ["update:modelValue"],
651
716
  setup(t) {
652
- const l = t, o = N(t, "modelValue"), e = l.useTopButton ? Y : "div", i = l.useTopButton ? "html" : "default", a = {
717
+ const l = t, o = D(t, "modelValue"), e = l.useTopButton ? H : "div", i = l.useTopButton ? "html" : "default", a = {
653
718
  model: o,
654
719
  mode: l.mode,
655
720
  targetId: l.targetId,
656
721
  filters: l.filters,
657
722
  payload: l.payload
658
723
  };
659
- return (n, d) => {
660
- const m = Be("top-data");
661
- return k(), b(Ae, { id: n.id }, {
724
+ return (n, u) => {
725
+ const f = Ve("top-data");
726
+ return k(), b(Re, { id: n.id }, {
662
727
  default: _(() => [
663
- Ve((k(), b(Ee(y(e)), pe({
728
+ Ee((k(), b(Me(y(e)), Se({
664
729
  class: {
665
730
  "top-tagSelector": !0,
666
731
  "top-tagSelector-filter": l.mode === "filter",
@@ -670,40 +735,40 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
670
735
  "top-tagSelector-toTwoLine": o.value.length > 5
671
736
  },
672
737
  color: "theme",
673
- styling: ""
738
+ styling: n.styling
674
739
  }, n.$attrs), {
675
740
  [y(i)]: _(() => [
676
- !o.value.length && n.mode === "filter" ? (k(), b(le, {
741
+ !o.value.length && n.mode === "filter" ? (k(), b(ie, {
677
742
  key: 0,
678
743
  id: "all",
679
744
  colorId: "",
680
745
  name: n.$i18n.Common.All_tags ?? "",
681
746
  state: ""
682
- }, null, 8, ["name"])) : F("", !0),
683
- n.mode === "setter" && n.filters ? (k(), B("div", rt, [
684
- Me(n.$slots, "default")
685
- ])) : (k(!0), B(W, { key: 2 }, ie(o.value, (p) => {
686
- var h, r;
687
- return k(), b(le, {
688
- id: y(H)(p),
689
- colorId: ((h = y(ae)(p, n.tags)) == null ? void 0 : h.color_id) ?? "",
690
- name: ((r = y(ae)(p, n.tags)) == null ? void 0 : r.name) ?? "",
691
- state: y(H)(p) === p ? "selected" : "excluded"
747
+ }, null, 8, ["name"])) : q("", !0),
748
+ n.mode === "setter" && n.filters ? (k(), B("div", ot, [
749
+ Ke(n.$slots, "default")
750
+ ])) : (k(!0), B(Y, { key: 2 }, se(o.value, (h) => {
751
+ var S, r;
752
+ return k(), b(ie, {
753
+ id: y(Q)(h),
754
+ colorId: ((S = y(le)(h, n.tags)) == null ? void 0 : S.color_id) ?? "",
755
+ name: ((r = y(le)(h, n.tags)) == null ? void 0 : r.name) ?? "",
756
+ state: y(Q)(h) === h ? "selected" : "excluded"
692
757
  }, null, 8, ["id", "colorId", "name", "state"]);
693
758
  }), 256))
694
759
  ]),
695
760
  _: 2
696
- }, 1040, ["class"])), [
697
- [m, a, "topTagSelectorTarget"]
761
+ }, 1040, ["class", "styling"])), [
762
+ [f, a, "topTagSelectorTarget"]
698
763
  ])
699
764
  ]),
700
765
  _: 3
701
766
  }, 8, ["id"]);
702
767
  };
703
768
  }
704
- }), it = /* @__PURE__ */ q({
769
+ }), xt = /* @__PURE__ */ P({
705
770
  __name: "tagSelector",
706
- props: /* @__PURE__ */ R({
771
+ props: /* @__PURE__ */ N({
707
772
  modelValue: {},
708
773
  tags: {},
709
774
  tagsEditable: { type: Boolean },
@@ -712,24 +777,25 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
712
777
  singleMode: { type: Boolean },
713
778
  requiredForSetter: { type: Boolean, default: !0 },
714
779
  maxTagsForSetter: {},
715
- emitDelay: { default: 500 }
780
+ emitDelay: { default: 500 },
781
+ styling: {}
716
782
  }, {
717
783
  modelValue: {
718
784
  required: !0
719
785
  },
720
786
  modelModifiers: {},
721
787
  tags: {
722
- default: we(lt)
788
+ default: Le(at)
723
789
  },
724
790
  tagsModifiers: {}
725
791
  }),
726
- emits: /* @__PURE__ */ R(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
792
+ emits: /* @__PURE__ */ N(["selector", "setter", "tagsChanged"], ["update:modelValue", "update:tags"]),
727
793
  setup(t, { emit: l }) {
728
- const o = A(), e = t, i = N(t, "modelValue"), a = N(t, "tags"), n = l, d = Le((s, c) => {
794
+ const o = R(), e = t, i = D(t, "modelValue"), a = D(t, "tags"), n = l, u = Ae((s, c) => {
729
795
  n(s, c);
730
796
  }, e.emitDelay);
731
797
  e.singleMode && !i.value.length && (i.value = [a.value[0].id]);
732
- const m = e.id ?? "top-popup-id-" + Math.random(), p = D("add"), h = () => {
798
+ const f = e.id ?? "top-popup-id-" + Math.random(), h = F("add"), S = () => {
733
799
  var v;
734
800
  const s = " " + ((v = o.Common.Tags) == null ? void 0 : v.toLowerCase()), c = /* @__PURE__ */ new Map();
735
801
  return c.set("add", { value: "add", title: o.Common.Add + s }), c.set("replace", { value: "replace", title: o.Common.Replace + s }), c.set("delete", { value: "delete", title: o.Common.Delete + s }), c;
@@ -741,27 +807,27 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
741
807
  filters: void 0,
742
808
  payload: void 0
743
809
  });
744
- K(i, () => {
745
- d("selector", i.value);
810
+ w(i, () => {
811
+ u("selector", i.value);
746
812
  });
747
813
  const g = E(() => {
748
814
  if (r.value.mode === "setter" && e.maxTagsForSetter && !r.value.filters)
749
815
  return r.value.model.value.length >= e.maxTagsForSetter;
750
- }), u = (s) => {
816
+ }), d = (s) => {
751
817
  if (s !== "all") {
752
818
  if (r.value.model.value.includes(s)) return "selected";
753
- if (r.value.model.value.includes(me(s))) return "excluded";
819
+ if (r.value.model.value.includes(ve(s))) return "excluded";
754
820
  }
755
821
  return s === "all" && !r.value.model.value.length ? "selected" : "";
756
- }, I = (s, c) => {
757
- const v = me(s);
758
- let S = r.value.model.value.filter((w) => w !== s && w !== v);
759
- c === "select" && S.push(s), c === "exclude" && S.push(v), r.value.mode === "setter" && r.value.targetId !== void 0 && e.requiredForSetter && (S.length || S.push("1"), S.length === 2 && r.value.model.value.length === 1 && r.value.model.value[0] === "1" && (S = S.filter((w) => w !== "1"))), e.singleMode && !r.value.filters && (S.length || (S = r.value.model.value), S.length > 1 && (S = [S[S.length - 1]])), S.sort((w, P) => {
822
+ }, x = (s, c) => {
823
+ const v = ve(s);
824
+ let I = r.value.model.value.filter((L) => L !== s && L !== v);
825
+ c === "select" && I.push(s), c === "exclude" && I.push(v), r.value.mode === "setter" && r.value.targetId !== void 0 && e.requiredForSetter && (I.length || I.push("1"), I.length === 2 && r.value.model.value.length === 1 && r.value.model.value[0] === "1" && (I = I.filter((L) => L !== "1"))), e.singleMode && !r.value.filters && (I.length || (I = r.value.model.value), I.length > 1 && (I = [I[I.length - 1]])), I.sort((L, U) => {
760
826
  if (!e.tags) return 0;
761
- const X = e.tags.findIndex((O) => O.id === w), U = e.tags.findIndex((O) => O.id === P);
762
- return X - U;
763
- }), r.value.model.value = S, r.value.mode === "setter" && r.value.targetId !== void 0 && d("setter", {
764
- tagsIds: S,
827
+ const Z = e.tags.findIndex((O) => O.id === L), j = e.tags.findIndex((O) => O.id === U);
828
+ return Z - j;
829
+ }), r.value.model.value = I, r.value.mode === "setter" && r.value.targetId !== void 0 && u("setter", {
830
+ tagsIds: I,
765
831
  targetId: r.value.targetId,
766
832
  payload: r.value.payload
767
833
  });
@@ -779,8 +845,8 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
779
845
  }), n("tagsChanged", a.value);
780
846
  }, V = (s) => {
781
847
  var c;
782
- if (r.value = G(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
783
- if (r.value.filters && (p.value = "add", r.value.model.value = []), !((c = J.$) != null && c.ui.sortable)) {
848
+ if (r.value = W(s.elPopupOpener, "topTagSelectorTarget"), !r.value) throw new Error("Open popup TopTagSelector required v-data:topTagSelectorTarget");
849
+ if (r.value.filters && (h.value = "add", r.value.model.value = []), !((c = J.$) != null && c.ui.sortable)) {
784
850
  console.info("Для работы сортировки требуется глобальная загрузка jQuery UI Sortable");
785
851
  return;
786
852
  }
@@ -791,85 +857,86 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
791
857
  */
792
858
  cancel: '[contenteditable="plaintext-only"], [contenteditable="true"]',
793
859
  distance: 10,
794
- stop: function(v, S) {
860
+ stop: function(v, I) {
795
861
  if (!a.value) return;
796
- const w = $(S.item).parent().find("[data-tag_id]"), P = [];
797
- w.each((X, U) => {
862
+ const L = $(I.item).parent().find("[data-tag_id]"), U = [];
863
+ L.each((Z, j) => {
798
864
  if (!a.value) return;
799
- const O = $(U).attr("data-tag_id");
800
- P.push(O);
801
- }), a.value.sort((X, U) => {
802
- const O = P.findIndex((ne) => ne === X.id), Ce = P.findIndex((ne) => ne === U.id);
803
- return O - Ce;
804
- }), d("tagsChanged", a.value);
865
+ const O = $(j).attr("data-tag_id");
866
+ U.push(O);
867
+ }), a.value.sort((Z, j) => {
868
+ const O = U.findIndex((ne) => ne === Z.id), Te = U.findIndex((ne) => ne === j.id);
869
+ return O - Te;
870
+ }), u("tagsChanged", a.value);
805
871
  }
806
872
  });
807
- }, f = (s) => {
873
+ }, m = (s) => {
808
874
  var c;
809
875
  (c = J.$) != null && c.ui.sortable && $(s.elPopup).data("ui-sortable") && $(s.elPopup).sortable("destroy");
810
876
  };
811
- return (s, c) => (k(), B(W, null, [
812
- L(ke, {
813
- class: "top-select_arrow",
877
+ return (s, c) => (k(), B(Y, null, [
878
+ A(rt, {
879
+ class: "top-as-selector",
814
880
  modelValue: i.value,
815
881
  "onUpdate:modelValue": c[0] || (c[0] = (v) => i.value = v),
816
- id: y(m),
882
+ id: y(f),
817
883
  tags: a.value,
884
+ styling: s.styling,
818
885
  mode: "filter",
819
886
  useTopButton: ""
820
- }, null, 8, ["modelValue", "id", "tags"]),
821
- L(he, {
822
- id: y(m),
823
- class: Q(T.value),
887
+ }, null, 8, ["modelValue", "id", "tags", "styling"]),
888
+ A(Ie, {
889
+ id: y(f),
890
+ class: X(T.value),
824
891
  onOpen: c[4] || (c[4] = (v) => V(v)),
825
- onClose: c[5] || (c[5] = (v) => f(v)),
892
+ onClose: c[5] || (c[5] = (v) => m(v)),
826
893
  "transition-duration": 50
827
- }, Ke({
894
+ }, we({
828
895
  contentList: _(() => [
829
- y(r).mode === "filter" && !s.singleMode ? (k(), b(fe, {
896
+ y(r).mode === "filter" && !s.singleMode ? (k(), b(pe, {
830
897
  key: 0,
831
898
  id: "all",
832
899
  colorId: "",
833
900
  name: s.$i18n.Common.All_tags ?? "",
834
901
  state: y(r).model.value.length ? "" : "selected",
835
902
  onSelect: c[3] || (c[3] = (v) => y(r).model.value = [])
836
- }, null, 8, ["name", "state"])) : F("", !0),
837
- (k(!0), B(W, null, ie(a.value, (v) => (k(), b(fe, {
903
+ }, null, 8, ["name", "state"])) : q("", !0),
904
+ (k(!0), B(Y, null, se(a.value, (v) => (k(), b(pe, {
838
905
  key: v.id,
839
906
  id: v.id,
840
907
  colorId: v.color_id,
841
908
  name: v.name,
842
- state: u(v.id),
909
+ state: d(v.id),
843
910
  canExclude: y(r).mode === "filter" && !s.singleMode,
844
911
  editable: s.tagsEditable,
845
- disabled: g.value && u(v.id) === "",
846
- onUnselect: (S) => I(v.id, "unselect"),
847
- onSelect: (S) => I(v.id, "select"),
848
- onExclude: (S) => I(v.id, "exclude"),
849
- "onUpdate:name": (S) => {
850
- v.name = S, y(d)("tagsChanged", a.value);
912
+ disabled: g.value && d(v.id) === "",
913
+ onUnselect: (I) => x(v.id, "unselect"),
914
+ onSelect: (I) => x(v.id, "select"),
915
+ onExclude: (I) => x(v.id, "exclude"),
916
+ "onUpdate:name": (I) => {
917
+ v.name = I, y(u)("tagsChanged", a.value);
851
918
  }
852
919
  }, null, 8, ["id", "colorId", "name", "state", "canExclude", "editable", "disabled", "onUnselect", "onSelect", "onExclude", "onUpdate:name"]))), 128)),
853
- s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(se, {
920
+ s.tagsEditable && a.value.length < s.tagsMax && a.value.length < 20 ? (k(), b(ue, {
854
921
  key: 1,
855
922
  "data-top-icon": "",
856
- onClick: j(C, ["stop"])
923
+ onClick: z(C, ["stop"])
857
924
  }, {
858
925
  default: _(() => [
859
- z(M(s.$i18n.Common.Add), 1)
926
+ G(K(s.$i18n.Common.Add), 1)
860
927
  ]),
861
928
  _: 1
862
- })) : F("", !0)
929
+ })) : q("", !0)
863
930
  ]),
864
931
  _: 2
865
932
  }, [
866
933
  y(r).mode === "setter" && y(r).filters ? {
867
934
  name: "header",
868
935
  fn: _(() => [
869
- L(re, {
870
- modelValue: p.value,
871
- "onUpdate:modelValue": c[1] || (c[1] = (v) => p.value = v),
872
- options: h()
936
+ A(re, {
937
+ modelValue: h.value,
938
+ "onUpdate:modelValue": c[1] || (c[1] = (v) => h.value = v),
939
+ options: S()
873
940
  }, null, 8, ["modelValue", "options"])
874
941
  ]),
875
942
  key: "0"
@@ -877,22 +944,22 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
877
944
  y(r).mode === "setter" && y(r).filters ? {
878
945
  name: "footer",
879
946
  fn: _(() => [
880
- L(Y, { color: "theme" }, {
947
+ A(H, { color: "theme" }, {
881
948
  default: _(() => [
882
- z(M(s.$i18n.Common.Cancel), 1)
949
+ G(K(s.$i18n.Common.Cancel), 1)
883
950
  ]),
884
951
  _: 1
885
952
  }),
886
- L(Y, {
887
- onClick: c[2] || (c[2] = (v) => y(d)("setter", {
953
+ A(H, {
954
+ onClick: c[2] || (c[2] = (v) => y(u)("setter", {
888
955
  tagsIds: y(r).model.value,
889
956
  filters: y(r).filters,
890
- filtersAction: p.value,
957
+ filtersAction: h.value,
891
958
  payload: y(r).payload
892
959
  }))
893
960
  }, {
894
961
  default: _(() => [
895
- z(M(p.value === "add" ? s.$i18n.Common.Add : "") + " " + M(p.value === "replace" ? s.$i18n.Common.Replace : "") + " " + M(p.value === "delete" ? s.$i18n.Common.Remove : ""), 1)
962
+ G(K(h.value === "add" ? s.$i18n.Common.Add : "") + " " + K(h.value === "replace" ? s.$i18n.Common.Replace : "") + " " + K(h.value === "delete" ? s.$i18n.Common.Remove : ""), 1)
896
963
  ]),
897
964
  _: 1
898
965
  })
@@ -902,75 +969,18 @@ const Pe = { class: "top-selectorCompetitors" }, Ue = { class: "top-ellipsis1" }
902
969
  ]), 1032, ["id", "class"])
903
970
  ], 64));
904
971
  }
905
- }), pt = (t, l) => E(() => ue(t).filter((i) => i.on >= 0 || i.id === l).map((i) => ({
906
- value: i.id,
907
- title: i.url + ` [${i.id}]`,
908
- icon: i.id === ue(l) ? "" : "",
909
- content: i.name
910
- }))), ht = (t, l, o) => {
911
- l || (l = { id: t.id }), l.id = t.id;
912
- const e = qe.genElPopupOpener("div", l);
913
- return e.classList.add("top-tagSelector"), t.useTopButton && e.classList.add("top-button", "top-color_theme"), t.mode === "filter" && e.classList.add("top-tagSelector-filter"), t.mode === "setter" && !t.filters && e.classList.add("top-tagSelector-setter_single"), t.mode === "setter" && t.filters && e.classList.add("top-tagSelector-setter_several"), e.onclick = (i) => {
914
- i.preventDefault(), i.stopPropagation(), e.onclick = null;
915
- const a = D(t.modelValue), n = {
916
- model: a,
917
- mode: t.mode,
918
- targetId: t.targetId,
919
- filters: t.filters,
920
- payload: t.payload
921
- };
922
- G(e, "topTagSelectorTarget", n), delete e.dataset.topPopupDisabled, ce(t.modelValue) || K(a, () => {
923
- t.modelValue = a.value, Z(e, t, o);
924
- }), e.click();
925
- }, ce(t.modelValue) ? K(t.modelValue, () => Z(e, t, o)) : G(e, "topTagSelectorRender", (i) => {
926
- t.modelValue = i;
927
- const a = G(e, "topTagSelectorTarget");
928
- a && (a.model.value = i), Z(e, t, o);
929
- }), Z(e, t, o), e;
930
- }, St = (t, l) => {
931
- var o;
932
- (o = G(t, "topTagSelectorRender")) == null || o(l);
933
- }, Z = (t, l, o) => {
934
- var i;
935
- const e = y(l.modelValue);
936
- if (t.classList.toggle("top-tagSelector-selectedOne", !e.length || e.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", e.length > 5), l.mode === "setter" && l.filters) {
937
- t.innerHTML = `<div>${o}</div>`;
938
- return;
939
- }
940
- if (t.innerHTML = "", !e.length && l.mode === "filter") {
941
- const a = ve({
942
- id: "all",
943
- colorId: "",
944
- name: ((i = A().Common) == null ? void 0 : i.All_tags) ?? "",
945
- state: ""
946
- });
947
- t.append(a);
948
- }
949
- e.forEach((a) => {
950
- var d, m;
951
- const n = ve({
952
- id: H(a),
953
- colorId: ((d = ae(a, l.tags)) == null ? void 0 : d.color_id) ?? "",
954
- name: ((m = ae(a, l.tags)) == null ? void 0 : m.name) ?? "",
955
- state: H(a) === a ? "selected" : "excluded"
956
- });
957
- t.append(n);
958
- });
959
- }, ve = (t) => {
960
- const l = document.createElement("div");
961
- return l.classList.add("top-tagSelector_tagIcon"), l.classList.toggle("top-tagSelector-active", !!t.state), l.classList.toggle("top-tagSelector-excluded", t.state === "excluded"), l.dataset.tag_id = t.id, l.dataset.tag_color_id = t.colorId, l.title = t.name, l;
962
- }, It = je, xt = at, kt = it, Ct = ke, Tt = le;
972
+ });
963
973
  export {
964
- It as TopSelectorCompetitors,
965
- xt as TopSelectorRegion,
966
- kt as TopTagSelector,
967
- Ct as TopTagSelectorPopupOpener,
968
- Tt as TopTagSelectorTagIcon,
974
+ yt as TopSelectorCompetitors,
975
+ ht as TopSelectorRegion,
976
+ xt as TopTagSelector,
977
+ rt as TopTagSelectorPopupOpener,
978
+ ie as TopTagSelectorTagIcon,
969
979
  Qe as dialogSelectorRegions,
970
980
  He as findRegion,
971
- ht as genElTopTagSelectorPopupOpener,
972
- Ie as genSearcherByKey,
973
- St as renderElTopTagSelectorPopupOpener,
981
+ St as genElTopTagSelectorPopupOpener,
982
+ ke as genSearcherByKey,
983
+ It as renderElTopTagSelectorPopupOpener,
974
984
  pt as useItemsFromCompetitors
975
985
  };
976
986
  //# sourceMappingURL=project.js.map