@topvisor/ui 1.1.0-addNativeDialog.10 → 1.1.0-addNativeDialog.12

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