@topvisor/ui 1.5.4-groupSelector.1 → 1.5.4-groupSelector.2

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 (333) hide show
  1. package/.chunks/{api-DuS0Qura.amd.js → api-D-JuUXVn.amd.js} +2 -2
  2. package/.chunks/api-D-JuUXVn.amd.js.map +1 -0
  3. package/.chunks/{api-DuS0Qura.esm.js → api-D-JuUXVn.esm.js} +9 -9
  4. package/.chunks/{api-DuS0Qura.esm.js.map → api-D-JuUXVn.esm.js.map} +1 -1
  5. package/.chunks/app-DeBknp1Q.amd.js +2 -0
  6. package/.chunks/app-DeBknp1Q.amd.js.map +1 -0
  7. package/.chunks/{app-BXCICBAa.esm.js → app-DeBknp1Q.esm.js} +12 -13
  8. package/.chunks/app-DeBknp1Q.esm.js.map +1 -0
  9. package/.chunks/{datepicker-BnBQNlTc.amd.js → datepicker-B2Km72Vg.amd.js} +2 -2
  10. package/.chunks/datepicker-B2Km72Vg.amd.js.map +1 -0
  11. package/.chunks/{datepicker-BnBQNlTc.esm.js → datepicker-B2Km72Vg.esm.js} +2 -2
  12. package/.chunks/{datepicker-BnBQNlTc.esm.js.map → datepicker-B2Km72Vg.esm.js.map} +1 -1
  13. package/.chunks/dialog-DPTJ7VN5.amd.js +2 -0
  14. package/.chunks/dialog-DPTJ7VN5.amd.js.map +1 -0
  15. package/.chunks/{dialog-BPUICFiG.esm.js → dialog-DPTJ7VN5.esm.js} +3 -4
  16. package/.chunks/{dialog-BPUICFiG.esm.js.map → dialog-DPTJ7VN5.esm.js.map} +1 -1
  17. package/.chunks/dialog_regionSelectorRegions-ClRx55RP.amd.js +2 -0
  18. package/.chunks/dialog_regionSelectorRegions-ClRx55RP.amd.js.map +1 -0
  19. package/.chunks/{dialog_regionSelectorRegions-BKvg82IO.esm.js → dialog_regionSelectorRegions-ClRx55RP.esm.js} +14 -15
  20. package/.chunks/{dialog_regionSelectorRegions-BKvg82IO.esm.js.map → dialog_regionSelectorRegions-ClRx55RP.esm.js.map} +1 -1
  21. package/.chunks/{field-CjkpGeA7.amd.js → field-DEusYVqS.amd.js} +2 -2
  22. package/.chunks/field-DEusYVqS.amd.js.map +1 -0
  23. package/.chunks/{field-CjkpGeA7.esm.js → field-DEusYVqS.esm.js} +1 -1
  24. package/.chunks/{field-CjkpGeA7.esm.js.map → field-DEusYVqS.esm.js.map} +1 -1
  25. package/.chunks/forms-DKVIpGnH.amd.js +2 -0
  26. package/.chunks/forms-DKVIpGnH.amd.js.map +1 -0
  27. package/.chunks/{forms-CdCS6WAQ.esm.js → forms-DKVIpGnH.esm.js} +17 -14
  28. package/.chunks/forms-DKVIpGnH.esm.js.map +1 -0
  29. package/.chunks/formsExt-UkSw445A.amd.js +2 -0
  30. package/.chunks/formsExt-UkSw445A.amd.js.map +1 -0
  31. package/.chunks/{formsExt-Ck5q-jXI.esm.js → formsExt-UkSw445A.esm.js} +136 -122
  32. package/.chunks/formsExt-UkSw445A.esm.js.map +1 -0
  33. package/.chunks/lazy-DQU-hLos.amd.js +2 -0
  34. package/.chunks/lazy-DQU-hLos.amd.js.map +1 -0
  35. package/.chunks/lazy-DQU-hLos.esm.js +68 -0
  36. package/.chunks/{lazy-CGswTOPj.esm.js.map → lazy-DQU-hLos.esm.js.map} +1 -1
  37. package/.chunks/{mocker-CwZe-g4N.amd.js → mocker-DOnGwq3y.amd.js} +2 -2
  38. package/.chunks/mocker-DOnGwq3y.amd.js.map +1 -0
  39. package/.chunks/{mocker-CwZe-g4N.esm.js → mocker-DOnGwq3y.esm.js} +1 -1
  40. package/.chunks/{mocker-CwZe-g4N.esm.js.map → mocker-DOnGwq3y.esm.js.map} +1 -1
  41. package/.chunks/{notice-DA4p-RwX.amd.js → notice-C3_mXHCe.amd.js} +2 -2
  42. package/.chunks/notice-C3_mXHCe.amd.js.map +1 -0
  43. package/.chunks/{notice-DA4p-RwX.esm.js → notice-C3_mXHCe.esm.js} +2 -2
  44. package/.chunks/{notice-DA4p-RwX.esm.js.map → notice-C3_mXHCe.esm.js.map} +1 -1
  45. package/.chunks/{popup-CN7-bnQJ.amd.js → popup-B8Us9xZO.amd.js} +2 -2
  46. package/.chunks/popup-B8Us9xZO.amd.js.map +1 -0
  47. package/.chunks/{popup-CN7-bnQJ.esm.js → popup-B8Us9xZO.esm.js} +3 -3
  48. package/.chunks/{popup-CN7-bnQJ.esm.js.map → popup-B8Us9xZO.esm.js.map} +1 -1
  49. package/.chunks/{popup-DHCqvZzI.amd.js → popup-CtiL5V44.amd.js} +2 -2
  50. package/.chunks/popup-CtiL5V44.amd.js.map +1 -0
  51. package/.chunks/{popup-DHCqvZzI.esm.js → popup-CtiL5V44.esm.js} +4 -4
  52. package/.chunks/{popup-DHCqvZzI.esm.js.map → popup-CtiL5V44.esm.js.map} +1 -1
  53. package/.chunks/punycode.es6-BZRFIj88.amd.js +2 -0
  54. package/.chunks/punycode.es6-BZRFIj88.amd.js.map +1 -0
  55. package/.chunks/{punycode.es6-B-5kB2YI.esm.js → punycode.es6-BZRFIj88.esm.js} +5 -5
  56. package/.chunks/{punycode.es6-B-5kB2YI.esm.js.map → punycode.es6-BZRFIj88.esm.js.map} +1 -1
  57. package/.chunks/{store-DuQpSSLL.amd.js → store-DjQAOnrn.amd.js} +2 -2
  58. package/.chunks/store-DjQAOnrn.amd.js.map +1 -0
  59. package/.chunks/{store-DuQpSSLL.esm.js → store-DjQAOnrn.esm.js} +1 -1
  60. package/.chunks/{store-DuQpSSLL.esm.js.map → store-DjQAOnrn.esm.js.map} +1 -1
  61. package/.chunks/utils-C1xkXfK0.amd.js +2 -0
  62. package/.chunks/utils-C1xkXfK0.amd.js.map +1 -0
  63. package/.chunks/{dialogs-CbMNuvfF.esm.js → utils-C1xkXfK0.esm.js} +70 -37
  64. package/.chunks/utils-C1xkXfK0.esm.js.map +1 -0
  65. package/.chunks/utils-Cj8CJ22r.amd.js +2 -0
  66. package/.chunks/utils-Cj8CJ22r.amd.js.map +1 -0
  67. package/.chunks/{utils-lidKtVjF.esm.js → utils-Cj8CJ22r.esm.js} +16 -16
  68. package/.chunks/{utils-lidKtVjF.esm.js.map → utils-Cj8CJ22r.esm.js.map} +1 -1
  69. package/.chunks/{worker-spLieexQ.amd.js → worker-DYTgdzGP.amd.js} +2 -2
  70. package/.chunks/worker-DYTgdzGP.amd.js.map +1 -0
  71. package/.chunks/{worker-spLieexQ.esm.js → worker-DYTgdzGP.esm.js} +3 -3
  72. package/.chunks/{worker-spLieexQ.esm.js.map → worker-DYTgdzGP.esm.js.map} +1 -1
  73. package/api/additional.amd.js +1 -1
  74. package/api/additional.amd.js.map +1 -1
  75. package/api/additional.d.ts +1 -1
  76. package/api/additional.js +1 -1
  77. package/api/additional.js.map +1 -1
  78. package/api/index.amd.js +1 -1
  79. package/api/index.amd.js.map +1 -1
  80. package/api/index.d.ts +1 -1
  81. package/api/index.js +2 -2
  82. package/assets/themes/dark-th.css +1 -1
  83. package/assets/themes/dark.css +1 -1
  84. package/assets/themes/light.css +1 -1
  85. package/autoload-css-manifest.amd.json +4 -4
  86. package/autoload-css-manifest.json +4 -4
  87. package/charts/charts.amd.js +1 -1
  88. package/charts/charts.amd.js.map +1 -1
  89. package/charts/charts.d.ts +1 -1
  90. package/charts/charts.js +3 -3
  91. package/charts/charts.js.map +1 -1
  92. package/core/app.amd.js +1 -1
  93. package/core/app.amd.js.map +1 -1
  94. package/core/app.d.ts +1 -1
  95. package/core/app.js +4 -5
  96. package/dialog/dialog.amd.js +1 -1
  97. package/dialog/dialog.amd.js.map +1 -1
  98. package/dialog/dialog.d.ts +1 -1
  99. package/dialog/dialog.js +3 -4
  100. package/extra/extra.amd.js +1 -1
  101. package/extra/extra.amd.js.map +1 -1
  102. package/extra/extra.d.ts +1 -1
  103. package/extra/extra.js.map +1 -1
  104. package/forms/forms.amd.js +1 -1
  105. package/forms/forms.amd.js.map +1 -1
  106. package/forms/forms.d.ts +1 -1
  107. package/forms/forms.js +1 -1
  108. package/formsExt/formsExt.amd.js +1 -1
  109. package/formsExt/formsExt.amd.js.map +1 -1
  110. package/formsExt/formsExt.d.ts +1 -1
  111. package/formsExt/formsExt.js +1 -1
  112. package/icomoon/demo-files/demo.amd.js.map +1 -1
  113. package/icomoon/demo.amd.js.map +1 -1
  114. package/layout/layout.amd.js +1 -1
  115. package/layout/layout.amd.js.map +1 -1
  116. package/layout/layout.d.ts +1 -1
  117. package/layout/layout.js +3 -3
  118. package/layout/layout.js.map +1 -1
  119. package/package.json +1 -1
  120. package/popup/popup.amd.js +1 -1
  121. package/popup/popup.amd.js.map +1 -1
  122. package/popup/popup.d.ts +1 -1
  123. package/popup/popup.js +1 -1
  124. package/popup/worker.amd.js +1 -1
  125. package/popup/worker.amd.js.map +1 -1
  126. package/popup/worker.d.ts +1 -1
  127. package/popup/worker.js +1 -1
  128. package/project/project.amd.js +1 -1
  129. package/project/project.amd.js.map +1 -1
  130. package/project/project.d.ts +1 -1
  131. package/project/project.js +359 -366
  132. package/project/project.js.map +1 -1
  133. package/src/components/dialog/dialog/composables/utils.d.ts +1 -1
  134. package/src/components/formsExt/selector2/cache.d.ts +9 -1
  135. package/src/components/project/groupSelector/folders/utils.d.ts +1 -0
  136. package/src/components/project/groupSelector/stories/mocks/groups.d.ts +4 -0
  137. package/src/components/project/groupSelector/stories/mocks/index.d.ts +2 -1
  138. package/src/components/project/projectSelector/cache.d.ts +5 -3
  139. package/src/components/project/projectSelector/stories/mocks/index.d.ts +5 -0
  140. package/src/components/project/projectSelector/stories/mocks/projects.d.ts +3 -0
  141. package/src/components/project/projectSelector/utils.d.ts +1 -1
  142. package/src/components/project/regionSelector/utils/utils.d.ts +2 -5
  143. package/src/core/core/core.d.ts +7 -4
  144. package/src/core/core/options.d.ts +6 -0
  145. package/src/core/core/state.d.ts +3 -0
  146. package/src/core/plugins/core.d.ts +4 -5
  147. package/src/core/utils/composables/useEnteties.d.ts +94 -0
  148. package/tabs/tabs.amd.js +1 -1
  149. package/tabs/tabs.amd.js.map +1 -1
  150. package/tabs/tabs.d.ts +1 -1
  151. package/tabs/tabs.js +1 -1
  152. package/tabs/tabs.js.map +1 -1
  153. package/tabsView/tabsView.amd.js +1 -1
  154. package/tabsView/tabsView.amd.js.map +1 -1
  155. package/tabsView/tabsView.d.ts +1 -1
  156. package/tabsView/tabsView.js +6 -6
  157. package/tabsView/tabsView.js.map +1 -1
  158. package/utils/check.amd.js +1 -1
  159. package/utils/check.amd.js.map +1 -1
  160. package/utils/check.d.ts +1 -1
  161. package/utils/check.js.map +1 -1
  162. package/utils/clipboard.amd.js +1 -1
  163. package/utils/clipboard.amd.js.map +1 -1
  164. package/utils/clipboard.d.ts +1 -1
  165. package/utils/clipboard.js +1 -1
  166. package/utils/clipboard.js.map +1 -1
  167. package/utils/date.amd.js +1 -1
  168. package/utils/date.amd.js.map +1 -1
  169. package/utils/date.d.ts +1 -1
  170. package/utils/date.js +1 -1
  171. package/utils/device.amd.js +1 -1
  172. package/utils/device.amd.js.map +1 -1
  173. package/utils/device.d.ts +1 -1
  174. package/utils/device.js +1 -1
  175. package/utils/dom.amd.js +1 -1
  176. package/utils/dom.amd.js.map +1 -1
  177. package/utils/dom.d.ts +3 -3
  178. package/utils/dom.js.map +1 -1
  179. package/utils/image.amd.js +1 -1
  180. package/utils/image.amd.js.map +1 -1
  181. package/utils/image.d.ts +1 -1
  182. package/utils/image.js +1 -1
  183. package/utils/image.js.map +1 -1
  184. package/utils/keyboard.amd.js +1 -1
  185. package/utils/keyboard.amd.js.map +1 -1
  186. package/utils/keyboard.d.ts +1 -1
  187. package/utils/keyboard.js.map +1 -1
  188. package/utils/lodash.amd.js +1 -1
  189. package/utils/lodash.amd.js.map +1 -1
  190. package/utils/lodash.d.ts +1 -1
  191. package/utils/lodash.js +1 -1
  192. package/utils/number.amd.js +1 -1
  193. package/utils/number.amd.js.map +1 -1
  194. package/utils/number.d.ts +1 -1
  195. package/utils/number.js.map +1 -1
  196. package/utils/price.amd.js +1 -1
  197. package/utils/price.amd.js.map +1 -1
  198. package/utils/price.d.ts +1 -1
  199. package/utils/price.js +1 -1
  200. package/utils/price.js.map +1 -1
  201. package/utils/route.amd.js +1 -1
  202. package/utils/route.amd.js.map +1 -1
  203. package/utils/route.d.ts +1 -1
  204. package/utils/route.js.map +1 -1
  205. package/utils/scroll.amd.js +1 -1
  206. package/utils/scroll.amd.js.map +1 -1
  207. package/utils/scroll.d.ts +1 -1
  208. package/utils/scroll.js.map +1 -1
  209. package/utils/searchers.amd.js +1 -1
  210. package/utils/searchers.amd.js.map +1 -1
  211. package/utils/searchers.d.ts +1 -1
  212. package/utils/searchers.js +1 -1
  213. package/utils/searchers.js.map +1 -1
  214. package/utils/store.amd.js +1 -1
  215. package/utils/store.amd.js.map +1 -1
  216. package/utils/store.d.ts +1 -1
  217. package/utils/store.js +1 -1
  218. package/utils/string.amd.js +1 -1
  219. package/utils/string.amd.js.map +1 -1
  220. package/utils/string.d.ts +1 -1
  221. package/utils/string.js +1 -1
  222. package/utils/string.js.map +1 -1
  223. package/utils/system.amd.js +1 -1
  224. package/utils/system.amd.js.map +1 -1
  225. package/utils/system.d.ts +1 -1
  226. package/utils/system.js.map +1 -1
  227. package/utils/url.amd.js +1 -1
  228. package/utils/url.amd.js.map +1 -1
  229. package/utils/url.d.ts +1 -1
  230. package/utils/url.js +1 -1
  231. package/utils/url.js.map +1 -1
  232. package/.chunks/api-DuS0Qura.amd.js.map +0 -1
  233. package/.chunks/app-BXCICBAa.amd.js +0 -2
  234. package/.chunks/app-BXCICBAa.amd.js.map +0 -1
  235. package/.chunks/app-BXCICBAa.esm.js.map +0 -1
  236. package/.chunks/datepicker-BnBQNlTc.amd.js.map +0 -1
  237. package/.chunks/dialog-BPUICFiG.amd.js +0 -2
  238. package/.chunks/dialog-BPUICFiG.amd.js.map +0 -1
  239. package/.chunks/dialog_regionSelectorRegions-BKvg82IO.amd.js +0 -2
  240. package/.chunks/dialog_regionSelectorRegions-BKvg82IO.amd.js.map +0 -1
  241. package/.chunks/dialogs-CbMNuvfF.amd.js +0 -2
  242. package/.chunks/dialogs-CbMNuvfF.amd.js.map +0 -1
  243. package/.chunks/dialogs-CbMNuvfF.esm.js.map +0 -1
  244. package/.chunks/field-CjkpGeA7.amd.js.map +0 -1
  245. package/.chunks/forms-CdCS6WAQ.amd.js +0 -2
  246. package/.chunks/forms-CdCS6WAQ.amd.js.map +0 -1
  247. package/.chunks/forms-CdCS6WAQ.esm.js.map +0 -1
  248. package/.chunks/formsExt-Ck5q-jXI.amd.js +0 -2
  249. package/.chunks/formsExt-Ck5q-jXI.amd.js.map +0 -1
  250. package/.chunks/formsExt-Ck5q-jXI.esm.js.map +0 -1
  251. package/.chunks/lazy-CGswTOPj.amd.js +0 -2
  252. package/.chunks/lazy-CGswTOPj.amd.js.map +0 -1
  253. package/.chunks/lazy-CGswTOPj.esm.js +0 -68
  254. package/.chunks/mocker-CwZe-g4N.amd.js.map +0 -1
  255. package/.chunks/notice-DA4p-RwX.amd.js.map +0 -1
  256. package/.chunks/popup-CN7-bnQJ.amd.js.map +0 -1
  257. package/.chunks/popup-DHCqvZzI.amd.js.map +0 -1
  258. package/.chunks/punycode.es6-B-5kB2YI.amd.js +0 -2
  259. package/.chunks/punycode.es6-B-5kB2YI.amd.js.map +0 -1
  260. package/.chunks/store-DuQpSSLL.amd.js.map +0 -1
  261. package/.chunks/utils-DrvuXyXl.amd.js +0 -2
  262. package/.chunks/utils-DrvuXyXl.amd.js.map +0 -1
  263. package/.chunks/utils-DrvuXyXl.esm.js +0 -43
  264. package/.chunks/utils-DrvuXyXl.esm.js.map +0 -1
  265. package/.chunks/utils-lidKtVjF.amd.js +0 -2
  266. package/.chunks/utils-lidKtVjF.amd.js.map +0 -1
  267. package/.chunks/worker-spLieexQ.amd.js.map +0 -1
  268. package/src/components/charts/miniChart/miniChart.vue.d.ts +0 -15
  269. package/src/components/charts/miniCharts/miniCharts.vue.d.ts +0 -32
  270. package/src/components/core/notice/item/item.vue.d.ts +0 -10
  271. package/src/components/core/notice/notice.vue.d.ts +0 -5
  272. package/src/components/dialog/dialog/dialog.vue.d.ts +0 -28
  273. package/src/components/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -13
  274. package/src/components/dialog/dialog/page/page.vue.d.ts +0 -19
  275. package/src/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -6
  276. package/src/components/extra/rive/rive.vue.d.ts +0 -11
  277. package/src/components/forms/avatar/avatar.vue.d.ts +0 -10
  278. package/src/components/forms/button/button.vue.d.ts +0 -21
  279. package/src/components/forms/caption/caption.vue.d.ts +0 -17
  280. package/src/components/forms/checkbox/checkbox.vue.d.ts +0 -27
  281. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +0 -19
  282. package/src/components/forms/hint/hint.vue.d.ts +0 -4
  283. package/src/components/forms/input/input.vue.d.ts +0 -25
  284. package/src/components/forms/inputDate/inputDate.vue.d.ts +0 -12
  285. package/src/components/forms/inputRange/inputRange.vue.d.ts +0 -19
  286. package/src/components/forms/loadbar/loadbar.vue.d.ts +0 -3
  287. package/src/components/forms/preloader/preloader.vue.d.ts +0 -4
  288. package/src/components/forms/radio/radio.vue.d.ts +0 -23
  289. package/src/components/forms/select/select.vue.d.ts +0 -30
  290. package/src/components/forms/switcher/switcher.vue.d.ts +0 -23
  291. package/src/components/forms/textarea/textarea.vue.d.ts +0 -12
  292. package/src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -27
  293. package/src/components/formsExt/editArea/editArea.vue.d.ts +0 -31
  294. package/src/components/formsExt/editInput/editInput.vue.d.ts +0 -23
  295. package/src/components/formsExt/info/info.vue.d.ts +0 -20
  296. package/src/components/formsExt/libs/optionGroup/optionGroup.vue.d.ts +0 -16
  297. package/src/components/formsExt/menu/menu.vue.d.ts +0 -16
  298. package/src/components/formsExt/policy/policy.vue.d.ts +0 -8
  299. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +0 -27
  300. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +0 -8
  301. package/src/components/formsExt/selector2/selector2.vue.d.ts +0 -62
  302. package/src/components/layout/islandRows/islandRows.vue.d.ts +0 -17
  303. package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -18
  304. package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -18
  305. package/src/components/layout/rows/rows.vue.d.ts +0 -21
  306. package/src/components/popup/popup/listItem.vue.d.ts +0 -25
  307. package/src/components/popup/popup/opener/opener.vue.d.ts +0 -17
  308. package/src/components/popup/popup/popup.vue.d.ts +0 -38
  309. package/src/components/popup/popup/widgetInput/widgetInput.vue.d.ts +0 -17
  310. package/src/components/popup/popupAlert/popupAlert.vue.d.ts +0 -25
  311. package/src/components/popup/popupConfirm/popupConfirm.vue.d.ts +0 -26
  312. package/src/components/popup/popupHint/popupHint.vue.d.ts +0 -17
  313. package/src/components/popup/popupPrompt/popupPrompt.vue.d.ts +0 -26
  314. package/src/components/project/competitorSelector/competitorSelector.vue.d.ts +0 -14
  315. package/src/components/project/groupSelector/folders/folders.vue.d.ts +0 -18
  316. package/src/components/project/groupSelector/groupSelector.vue.d.ts +0 -205
  317. package/src/components/project/groupSelector/groups/groups.vue.d.ts +0 -146
  318. package/src/components/project/projectSelector/projectSelector.vue.d.ts +0 -132
  319. package/src/components/project/projectSelector/submenu/submenu.vue.d.ts +0 -4
  320. package/src/components/project/regionSelector/dialog_regionSelectorRegions/dialog_regionSelectorRegions.vue.d.ts +0 -6
  321. package/src/components/project/regionSelector/regionSelector.vue.d.ts +0 -23
  322. package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -20
  323. package/src/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -27
  324. package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -4
  325. package/src/components/project/tagSelector/tagSelector.vue.d.ts +0 -38
  326. package/src/components/tabs/tabs/content.vue.d.ts +0 -19
  327. package/src/components/tabs/tabs/tab.vue.d.ts +0 -19
  328. package/src/components/tabs/tabs/tabs.vue.d.ts +0 -21
  329. package/src/components/tabsView/tabsView/menu.vue.d.ts +0 -28
  330. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -3
  331. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +0 -23
  332. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +0 -20
  333. package/src/components/tabsView/tabsView/tabsView.vue.d.ts +0 -34
@@ -5,25 +5,25 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import "../.chunks/api-DuS0Qura.esm.js";
9
- import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-CdCS6WAQ.esm.js";
10
- import { n as a, t as o } from "../.chunks/field-CjkpGeA7.esm.js";
8
+ import "../.chunks/api-D-JuUXVn.esm.js";
9
+ import { E as e, O as t, P as n, h as r, n as i } from "../.chunks/forms-DKVIpGnH.esm.js";
10
+ import { n as a, t as o } from "../.chunks/field-DEusYVqS.esm.js";
11
11
  import { storage as s } from "../utils/dom.js";
12
- import { t as c } from "../.chunks/worker-spLieexQ.esm.js";
13
- import "../.chunks/app-BXCICBAa.esm.js";
14
- import { validUrl as l } from "../utils/check.js";
15
- import { ellipsis as u } from "../utils/string.js";
16
- import { t as d } from "../.chunks/utils-DrvuXyXl.esm.js";
12
+ import { t as c } from "../.chunks/worker-DYTgdzGP.esm.js";
13
+ import "../.chunks/app-DeBknp1Q.esm.js";
14
+ import { t as l } from "../.chunks/utils-C1xkXfK0.esm.js";
15
+ import { validUrl as u } from "../utils/check.js";
16
+ import { ellipsis as d } from "../utils/string.js";
17
17
  import { getDeviceGIcon as f, getLangLabel as p, getSearcherGIcon as m } from "../utils/searchers.js";
18
18
  import { invertKeyboardLayout as h } from "../utils/keyboard.js";
19
- import { c as g, n as _, o as v, r as ee, s as y } from "../.chunks/popup-DHCqvZzI.esm.js";
20
- import { d as b, s as x, u as te } from "../.chunks/formsExt-Ck5q-jXI.esm.js";
19
+ import { c as g, n as _, o as v, r as ee, s as y } from "../.chunks/popup-CtiL5V44.esm.js";
20
+ import { d as b, s as x, u as te } from "../.chunks/formsExt-UkSw445A.esm.js";
21
21
  import "../popup/worker.js";
22
- import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as ne, createTextVNode as O, createVNode as k, defineComponent as A, isRef as j, mergeModels as M, mergeProps as re, nextTick as ie, normalizeClass as N, onMounted as ae, openBlock as P, reactive as oe, ref as F, renderList as I, renderSlot as se, resolveComponent as ce, resolveDirective as le, resolveDynamicComponent as ue, shallowRef as de, toDisplayString as L, toValue as fe, unref as R, useModel as z, watch as B, withCtx as V, withDirectives as pe, withKeys as me, withModifiers as H } from "vue";
22
+ import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as ne, createTextVNode as O, createVNode as k, defineComponent as A, isRef as re, mergeModels as j, mergeProps as ie, nextTick as ae, normalizeClass as M, onMounted as oe, openBlock as N, reactive as se, ref as P, renderList as F, renderSlot as ce, resolveComponent as le, resolveDirective as ue, resolveDynamicComponent as de, shallowRef as fe, toDisplayString as I, toValue as pe, unref as L, useModel as R, watch as z, withCtx as B, withDirectives as me, withKeys as he, withModifiers as V } from "vue";
23
23
  //#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
24
- var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _e = /* @__PURE__ */ A({
24
+ var ge = { class: "top-competitorSelector" }, _e = { class: "top-ellipsis1" }, ve = /* @__PURE__ */ A({
25
25
  __name: "competitorSelector",
26
- props: /* @__PURE__ */ M({
26
+ props: /*@__PURE__*/ j({
27
27
  modelValue: {},
28
28
  items: {},
29
29
  showSelectAllItem: {
@@ -36,7 +36,7 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
36
36
  }),
37
37
  emits: ["update:modelValue"],
38
38
  setup(n) {
39
- let i = n, a = z(n, "modelValue"), o = C(() => {
39
+ let i = n, a = R(n, "modelValue"), o = C(() => {
40
40
  if (i.showSelectAllItem) return {
41
41
  icon: "",
42
42
  title: e().Common.Select_all,
@@ -44,23 +44,23 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
44
44
  content: ""
45
45
  };
46
46
  });
47
- return (e, i) => (P(), E("div", he, [R(t).state.isMobile ? (P(), w(y, { key: 0 }, {
48
- opener: V(() => [k(r, {
47
+ return (e, i) => (N(), E("div", ge, [L(t).state.isMobile ? (N(), w(y, { key: 0 }, {
48
+ opener: B(() => [k(r, {
49
49
  class: "top-competitorSelector_opener",
50
50
  color: "theme",
51
51
  icon: "",
52
52
  icon2: ""
53
53
  }, {
54
- default: V(() => [O(L(n.items.find((e) => e.value === a.value?.[0])?.content), 1)]),
54
+ default: B(() => [O(I(n.items.find((e) => e.value === a.value?.[0])?.content), 1)]),
55
55
  _: 1
56
56
  })]),
57
- contentList: V(() => [(P(!0), E(S, null, I(n.items, (e) => (P(), w(v, {
58
- class: N({ "top-active": a.value?.includes(e.value) }),
57
+ contentList: B(() => [(N(!0), E(S, null, F(n.items, (e) => (N(), w(v, {
58
+ class: M({ "top-active": a.value?.includes(e.value) }),
59
59
  "data-top-icon": e.icon,
60
60
  title: e.title,
61
61
  onClick: () => a.value = [e.value]
62
62
  }, {
63
- default: V(() => [D("span", ge, L(e.content), 1)]),
63
+ default: B(() => [D("span", _e, I(e.content), 1)]),
64
64
  _: 2
65
65
  }, 1032, [
66
66
  "class",
@@ -69,7 +69,7 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
69
69
  "onClick"
70
70
  ]))), 256))]),
71
71
  _: 1
72
- })) : (P(), w(b, {
72
+ })) : (N(), w(b, {
73
73
  key: 1,
74
74
  modelValue: a.value,
75
75
  "onUpdate:modelValue": i[0] ||= (e) => a.value = e,
@@ -84,12 +84,12 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
84
84
  "selectAllItem"
85
85
  ]))]));
86
86
  }
87
- }), ve = (e, t) => C(() => fe(e).filter((e) => e.on >= 0 || e.id === t).map((e) => ({
87
+ }), ye = (e, t) => C(() => pe(e).filter((e) => e.on >= 0 || e.id === t).map((e) => ({
88
88
  value: e.id,
89
89
  title: e.url + ` [${e.id}]`,
90
- icon: e.id === fe(t) ? "" : "",
90
+ icon: e.id === pe(t) ? "" : "",
91
91
  content: e.name
92
- }))), ye = {
92
+ }))), be = {
93
93
  0: "Yandex",
94
94
  1: "Google",
95
95
  4: "YouTube",
@@ -99,25 +99,25 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
99
99
  9: "GoogleStore",
100
100
  20: "Yandex.com",
101
101
  21: "Yandex.com.tr"
102
- }, be = {
102
+ }, xe = {
103
103
  key: -2,
104
104
  name: "--",
105
105
  index: -2
106
- }, xe = {
106
+ }, Se = {
107
107
  key: -2,
108
108
  name: "--",
109
- regions: [be],
110
- regionByIndex: new Map([[-2, be]])
111
- }, U = {
109
+ regions: [xe],
110
+ regionByIndex: new Map([[-2, xe]])
111
+ }, H = {
112
112
  key: -2,
113
113
  name: "Autoselect",
114
114
  index: -2
115
- }, Se = {
115
+ }, Ce = {
116
116
  key: -2,
117
117
  name: "Autoselect",
118
- regions: [U],
119
- regionByIndex: new Map([[-2, U]])
120
- }, Ce = {
118
+ regions: [H],
119
+ regionByIndex: new Map([[-2, H]])
120
+ }, we = {
121
121
  countryCode: "00",
122
122
  depth: 1,
123
123
  device: 0,
@@ -125,10 +125,10 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
125
125
  index: -1,
126
126
  lang: "ru",
127
127
  name: "Without region"
128
- }, we = () => (U.name = e().Common.Autoselect, U), Te = () => (we(), Se.name = e().Common.Autoselect, console.log(Se), Se), Ee = () => (Ce.name = e().Keywords.Without_region, Ce), De = (e = "", t = !1, n = []) => {
128
+ }, Te = () => (H.name = e().Common.Autoselect, H), Ee = () => (Te(), Ce.name = e().Common.Autoselect, console.log(Ce), Ce), De = () => (we.name = e().Keywords.Without_region, we), Oe = (e = "", t = !1, n = []) => {
129
129
  let r;
130
- return r = e ? ke(n, e) : Oe(n), t && r.set(-2, Te()), r.size || r.set(-2, xe), r;
131
- }, Oe = (e, t = !0, n = [], r = "") => {
130
+ return r = e ? Ae(n, e) : ke(n), t && r.set(-2, Ee()), r.size || r.set(-2, Se), r;
131
+ }, ke = (e, t = !0, n = [], r = "") => {
132
132
  let i = /* @__PURE__ */ new Map();
133
133
  return e.forEach((e) => {
134
134
  if (!e.enabled || r && typeof e.key == "number" && e.key > 1) return;
@@ -142,34 +142,34 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
142
142
  if (i.has(e)) return;
143
143
  let t = {
144
144
  key: e,
145
- name: ye[e],
145
+ name: be[e],
146
146
  regions: [],
147
147
  regionByIndex: /* @__PURE__ */ new Map()
148
148
  };
149
149
  i.set(t.key, t);
150
150
  }), i;
151
- }, ke = (e, n) => {
152
- let r = Oe(e, !1, t.state.forceSearchersKeysForKeywordsStats, n);
151
+ }, Ae = (e, n) => {
152
+ let r = ke(e, !1, t.state.forceSearchersKeysForKeywordsStats, n);
153
153
  if (r.has(2)) {
154
154
  let e = r.get(2);
155
155
  e && (e.regionByIndex = /* @__PURE__ */ new Map());
156
156
  }
157
157
  return (n === "volume" || n === "cost_forecast") && t.state.showGlobalRegionForKeywordsStats && r.forEach((e) => {
158
158
  if (!e.regionByIndex) return;
159
- let t = { ...Ee() };
159
+ let t = { ...De() };
160
160
  e.regionByIndex.set(t.index, t);
161
161
  }), r;
162
- }, Ae = (e, t, n = []) => {
163
- let r = De(e, !1, n), i;
162
+ }, je = (e, t, n = []) => {
163
+ let r = Oe(e, !1, n), i;
164
164
  return r.forEach((n) => {
165
165
  if (!(t.searcher_key !== void 0 && t.searcher_key != n.key) && n.regions && (n.regions.forEach((r) => {
166
166
  if (!i && !(t.key !== void 0 && t.key != r.key) && !(t.index !== void 0 && t.index != r.index) && !(!e && (t.lang !== void 0 && t.lang != r.lang || t.device !== void 0 && t.device != r.device))) return r.searcher_key = n.key, i = r, !1;
167
167
  }), i)) return !1;
168
168
  }), i;
169
- }, je = d(() => import("../.chunks/dialog_regionSelectorRegions-BKvg82IO.esm.js")), Me = (t, n) => {
169
+ }, Me = l(() => import("../.chunks/dialog_regionSelectorRegions-ClRx55RP.esm.js")), Ne = (t, n) => {
170
170
  let r = e();
171
171
  return {
172
- searcherKey: F(n.value.keys().next().value ?? -2),
172
+ searcherKey: P(n.value.keys().next().value ?? -2),
173
173
  optionBySearcherKey: C(() => {
174
174
  let e = /* @__PURE__ */ new Map();
175
175
  if (n.value.forEach((n) => {
@@ -194,8 +194,8 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
194
194
  return e;
195
195
  })
196
196
  };
197
- }, Ne = (t, n) => {
198
- let r = e(), i = F(-2);
197
+ }, Pe = (t, n) => {
198
+ let r = e(), i = P(-2);
199
199
  t.modelValue.length === 1 && (i.value = t.modelValue[0]), i.value === -2 && (t.forMode ? i.value = n.value?.regionByIndex.values().next().value?.key ?? -2 : i.value = n.value?.regionByIndex.keys().next().value ?? -2);
200
200
  let a = C(() => {
201
201
  let e = /* @__PURE__ */ new Map();
@@ -220,7 +220,7 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
220
220
  e.set(i.index, s);
221
221
  }), e;
222
222
  });
223
- return B(a, (e, n) => {
223
+ return z(a, (e, n) => {
224
224
  if (t.onlySearcher || i.value !== void 0 && e.get(i.value)) return;
225
225
  let a = e.keys().next().value;
226
226
  if (i.value === -2 || a === -2) {
@@ -243,8 +243,8 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
243
243
  regionIndex: i,
244
244
  optionByRegionIndex: a
245
245
  };
246
- }, Pe = (e, t, n) => {
247
- let r = F([]), i = () => {
246
+ }, Fe = (e, t, n) => {
247
+ let r = P([]), i = () => {
248
248
  if (e.onlySearcher && t.value) {
249
249
  r.value = Array.from(t.value.keys());
250
250
  return;
@@ -258,19 +258,19 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
258
258
  }, a = () => {
259
259
  r.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(r.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
260
260
  };
261
- return B(r, () => {
261
+ return z(r, () => {
262
262
  a();
263
263
  }), e.addCompare && i(), { regionsIndexes: r };
264
- }, Fe = (e) => {
265
- let t = C(() => De(e.forMode, e.autoRegion, e.searchers)), n = C(() => t.value.get(i.searcherKey.value) || xe), r = C(() => {
264
+ }, Ie = (e) => {
265
+ let t = C(() => Oe(e.forMode, e.autoRegion, e.searchers)), n = C(() => t.value.get(i.searcherKey.value) || Se), r = C(() => {
266
266
  let e = /* @__PURE__ */ new Set();
267
267
  return t.value.forEach((t) => {
268
268
  t.regionByIndex.forEach((t) => {
269
269
  t.index !== -1 && t.index !== -2 && e.add(t.index);
270
270
  });
271
271
  }), e;
272
- }), i = Me(e, t), a = Ne(e, n), o = Pe(e, t, r);
273
- B(t, () => {
272
+ }), i = Ne(e, t), a = Pe(e, n), o = Fe(e, t, r);
273
+ z(t, () => {
274
274
  if (e.onlySearcher ? o.regionsIndexes.value = Array.from(t.value.keys()) : o.regionsIndexes.value = o.regionsIndexes.value.filter((e) => r.value.has(e)), i.searcherKey.value === -1) return;
275
275
  let s = t.value.keys().next().value;
276
276
  t.value.forEach((n) => {
@@ -293,7 +293,7 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
293
293
  let t = a.regionIndex.value;
294
294
  if (e.forMode) {
295
295
  let n = a.regionIndex.value;
296
- t = Ae(e.forMode, {
296
+ t = je(e.forMode, {
297
297
  searcher_key: s(),
298
298
  key: n
299
299
  }, e.searchers)?.index;
@@ -315,9 +315,9 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
315
315
  if (e !== void 0) return l()?.regionByIndex?.get(e);
316
316
  }
317
317
  };
318
- }, Ie = /* @__PURE__ */ A({
318
+ }, Le = /* @__PURE__ */ A({
319
319
  __name: "regionSelector",
320
- props: /* @__PURE__ */ M({
320
+ props: /*@__PURE__*/ j({
321
321
  projectId: {},
322
322
  searchers: { default: () => [] },
323
323
  modelValue: {},
@@ -346,19 +346,19 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
346
346
  }),
347
347
  emits: ["update:modelValue", "update:modelValueSingle"],
348
348
  setup(e, { expose: t }) {
349
- let n = e, a = z(e, "modelValue"), o = z(e, "modelValueSingle"), { selectSearcher: s, selectRegion: c, compare: l, searcherByKey: u, allRegionsIndexes: d, getSearcher: f, getRegion: p } = Fe(n), m = () => {
349
+ let n = e, a = R(e, "modelValue"), o = R(e, "modelValueSingle"), { selectSearcher: s, selectRegion: c, compare: l, searcherByKey: u, allRegionsIndexes: d, getSearcher: f, getRegion: p } = Ie(n), m = () => {
350
350
  let e = [];
351
351
  u.value.forEach((t) => {
352
352
  t.enabled && t.regions.forEach((t) => {
353
353
  t.enabled && e.push(t);
354
354
  });
355
- }), je.open("regions", {
355
+ }), Me.open("regions", {
356
356
  regions: e,
357
357
  regionsIndexes: l.regionsIndexes.value,
358
358
  "@update:regionsIndexes": (e) => l.regionsIndexes.value = e
359
359
  });
360
360
  };
361
- return B([
361
+ return z([
362
362
  c.regionIndex,
363
363
  s.searcherKey,
364
364
  l.regionsIndexes
@@ -368,9 +368,9 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
368
368
  a.value = [...l.regionsIndexes.value];
369
369
  } else n.onlySearcher ? (a.value = [s.searcherKey.value], s.searcherKey.value === -2 && !n.autoRegion && (a.value.length = 0)) : (a.value = [c.regionIndex.value], c.regionIndex.value === -2 && !n.autoRegion && (a.value.length = 0));
370
370
  !n.onlySearcher && !d.value.size && (s.searcherKey.value = -2);
371
- }), o.value && B(o, () => {
371
+ }), o.value && z(o, () => {
372
372
  o.value && (a.value = [o.value]);
373
- }, { immediate: !0 }), B(a, () => {
373
+ }, { immediate: !0 }), z(a, () => {
374
374
  if (a.value[0] && (o.value = a.value[0]), n.onlySearcher) {
375
375
  if (!a.value.length || a.value.length === 1 && !u.value.has(a.value[0]) || a.value.length === 1 && a.value[0] === -2 && !n.autoRegion) {
376
376
  let e = u.value.keys().next().value;
@@ -422,14 +422,14 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
422
422
  }, { immediate: !0 }), t({
423
423
  getSearcher: f,
424
424
  getRegion: p
425
- }), (t, n) => (P(), E("div", { class: N({
425
+ }), (t, n) => (N(), E("div", { class: M({
426
426
  "top-regionSelector": !0,
427
427
  "top-regionSelector-onlySearcher": e.onlySearcher
428
428
  }) }, [
429
429
  k(i, {
430
- options: R(s).optionBySearcherKey.value,
431
- modelValue: R(s).searcherKey.value,
432
- "onUpdate:modelValue": n[0] ||= (e) => R(s).searcherKey.value = e,
430
+ options: L(s).optionBySearcherKey.value,
431
+ modelValue: L(s).searcherKey.value,
432
+ "onUpdate:modelValue": n[0] ||= (e) => L(s).searcherKey.value = e,
433
433
  name: "searcher_key",
434
434
  addChanger: e.addChanger
435
435
  }, null, 8, [
@@ -437,12 +437,12 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
437
437
  "modelValue",
438
438
  "addChanger"
439
439
  ]),
440
- !e.onlySearcher && R(s).searcherKey.value !== R(-1) ? (P(), w(i, {
440
+ !e.onlySearcher && L(s).searcherKey.value !== L(-1) ? (N(), w(i, {
441
441
  key: 0,
442
442
  class: "top-select-region",
443
- options: R(c).optionByRegionIndex.value,
444
- modelValue: R(c).regionIndex.value,
445
- "onUpdate:modelValue": n[1] ||= (e) => R(c).regionIndex.value = e,
443
+ options: L(c).optionByRegionIndex.value,
444
+ modelValue: L(c).regionIndex.value,
445
+ "onUpdate:modelValue": n[1] ||= (e) => L(c).regionIndex.value = e,
446
446
  name: e.forMode ? "region_key" : "region_index",
447
447
  addChanger: e.addChanger,
448
448
  "data-top-icon": e.addRegionIcon ? "" : void 0
@@ -453,30 +453,30 @@ var he = { class: "top-competitorSelector" }, ge = { class: "top-ellipsis1" }, _
453
453
  "addChanger",
454
454
  "data-top-icon"
455
455
  ])) : T("", !0),
456
- e.addCompare && !e.onlySearcher && R(s).searcherKey.value === R(-1) ? (P(), w(r, {
456
+ e.addCompare && !e.onlySearcher && L(s).searcherKey.value === L(-1) ? (N(), w(r, {
457
457
  key: 1,
458
458
  name: "compare",
459
459
  onClick: m,
460
- "data-count-compare-regions-indexes": R(l).regionsIndexes.value.length
460
+ "data-count-compare-regions-indexes": L(l).regionsIndexes.value.length
461
461
  }, {
462
- default: V(() => [O(L(t.$i18n.Common.Selected_regions), 1)]),
462
+ default: B(() => [O(I(t.$i18n.Common.Selected_regions), 1)]),
463
463
  _: 1
464
464
  }, 8, ["data-count-compare-regions-indexes"])) : T("", !0)
465
465
  ], 2));
466
466
  }
467
- }), W = {
467
+ }), U = {
468
468
  id: 0,
469
469
  name: "/",
470
470
  path: "/"
471
471
  };
472
- function Le(t) {
472
+ function Re(t) {
473
473
  return t ? e()?.Common.All_folders : "/ (" + e()?.Keywords.Root_folder + ")";
474
474
  }
475
- var Re = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.childsIds = [], r.id && (r.countAllGroupsActive = r.count_groups_active), e[r.id] && e[r.id].forEach((a) => {
476
- a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name = Le(t));
475
+ var ze = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.childsIds = [], r.id && (r.countAllGroupsActive = r.count_groups_active), e[r.id] && e[r.id].forEach((a) => {
476
+ a = { ...a }, r.childsIds.push(a.id), a.id === 0 && (a.name = Re(t));
477
477
  let o = i > 1 ? "-".repeat(i - 1) + " " : "";
478
- o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a), Re(e, t, n, a, i + 1), r.childsIds = r.childsIds.concat(a.childsIds), r.id && a.count_groups_active && (r.countAllGroupsActive += a.count_groups_active);
479
- }), n), ze = (e, t) => e.gen(`/get/${t}/folders/`, [
478
+ o && !a.name.startsWith(o) && (a.name = o + a.name), n.set(a.id, a), ze(e, t, n, a, i + 1), r.childsIds = r.childsIds.concat(a.childsIds), r.id && a.count_groups_active && (r.countAllGroupsActive += a.count_groups_active);
479
+ }), n), Be = (e, t) => e.gen(`/get/${t}/folders/`, [
480
480
  "id",
481
481
  "parent_id",
482
482
  "name",
@@ -487,9 +487,9 @@ var Re = (e, t, n = /* @__PURE__ */ new Map(), r = { id: "root" }, i = 0) => (r.
487
487
  });
488
488
  //#endregion
489
489
  //#region src/core/utils/composables/useWatch.ts
490
- function Be(e, t, n) {
490
+ function Ve(e, t, n) {
491
491
  let r = Object.keys(e);
492
- return B(r.map((t) => e[t]), (e, n, i) => {
492
+ return z(r.map((t) => e[t]), (e, n, i) => {
493
493
  let a = {};
494
494
  e.forEach((e, t) => {
495
495
  if (!Object.is(e, n[t])) {
@@ -504,9 +504,9 @@ function Be(e, t, n) {
504
504
  }
505
505
  //#endregion
506
506
  //#region src/components/project/groupSelector/folders/folders.vue?vue&type=script&setup=true&lang.ts
507
- var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
507
+ var He = ["innerHTML"], Ue = /* @__PURE__ */ A({
508
508
  __name: "folders",
509
- props: /* @__PURE__ */ M({
509
+ props: /*@__PURE__*/ j({
510
510
  folderId: {},
511
511
  folder: {},
512
512
  folders: {},
@@ -522,17 +522,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
522
522
  }, {
523
523
  folderId: { required: !0 },
524
524
  folderIdModifiers: {},
525
- folder: { default: W },
525
+ folder: { default: U },
526
526
  folderModifiers: {}
527
527
  }),
528
528
  emits: ["update:folderId", "update:folder"],
529
529
  setup(e) {
530
- let t = e, n = z(e, "folderId"), r = z(e, "folder"), i = t.client && !t.folders ? ze(t.client, t.service) : void 0, a = F(null);
531
- B(() => t.projectId, () => {
530
+ let t = e, n = R(e, "folderId"), r = R(e, "folder"), i = t.client && !t.folders ? Be(t.client, t.service) : void 0, a = P(null);
531
+ z(() => t.projectId, () => {
532
532
  i?.changeParams({ project_id: t.projectId }), i?.setOptions({ checkFingerprint: "TopGroupSelectorFolders:" + t.projectId }), a.value?.resetCache();
533
533
  }, { immediate: !0 });
534
- let o = C(() => Re(t.folders ?? { root: [W] }, t.canSelectAll));
535
- return Be({
534
+ let o = C(() => ze(t.folders ?? { root: [U] }, t.canSelectAll)), s = (e) => (e.id === 0 && (e.name = Re(t.canSelectAll)), e.name.replaceAll(/</g, "< "));
535
+ return Ve({
536
536
  modelFolder: r,
537
537
  modelFolderId: n
538
538
  }, async (e) => {
@@ -542,20 +542,20 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
542
542
  return;
543
543
  }
544
544
  let i = o.value.get(t.folderId);
545
- i ||= W, r.value = i, n.value = i.id;
546
- }, { immediate: !0 }), (t, n) => (P(), w(x, {
545
+ i ||= U, r.value = i, n.value = i.id;
546
+ }, { immediate: !0 }), (t, n) => (N(), w(x, {
547
547
  class: "top-groupSelector_folder",
548
548
  modelValue: r.value,
549
549
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
550
550
  items: e.folders ? [...o.value.values()] : void 0,
551
551
  "search-type": "inline",
552
552
  icon: e.addIcon ? "" : void 0,
553
- api: e.folders ? void 0 : R(i),
554
- apiSetSearchParams: (...e) => R(te)(...e, "name"),
553
+ api: e.folders ? void 0 : L(i),
554
+ apiSetSearchParams: (...e) => L(te)(...e, "name"),
555
555
  addChanger: e.addChanger,
556
556
  useCache: ""
557
557
  }, {
558
- item: V(({ item: e }) => [D("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ve)]),
558
+ item: B(({ item: e }) => [D("div", { innerHTML: s(e) }, null, 8, He)]),
559
559
  _: 1
560
560
  }, 8, [
561
561
  "modelValue",
@@ -566,17 +566,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
566
566
  "addChanger"
567
567
  ]));
568
568
  }
569
- }), G = {
569
+ }), W = {
570
570
  id: -1,
571
571
  name: "--",
572
- folder_id: W.id,
573
- folder_path: W.path
574
- }, K = {
572
+ folder_id: U.id,
573
+ folder_path: U.path
574
+ }, G = {
575
575
  id: 0,
576
576
  name: "All groups",
577
- folder_id: W.id,
578
- folder_path: W.path
579
- }, q = () => (K.name = e()?.Common.All_groups, K), Ue = () => (K.name = e()?.Keywords.Choose_group, K), We = (e, t, n) => (e = [...e], t !== void 0 && (e = e.filter((e) => e.on == Number(t))), n && n.id && n.childsIds && (e = e.filter((e) => e.folder_id === n.id || n.childsIds.includes(e.folder_id))), e), Ge = (e, t) => e.gen(`/get/${t}/groups/`, [
577
+ folder_id: U.id,
578
+ folder_path: U.path
579
+ }, K = () => (G.name = e()?.Common.All_groups, G), We = () => (G.name = e()?.Keywords.Choose_group, G), Ge = (e, t, n) => (e = [...e], t !== void 0 && (e = e.filter((e) => e.on == Number(t))), n && n.id && n.childsIds && (e = e.filter((e) => e.folder_id === n.id || n.childsIds.includes(e.folder_id))), e), Ke = (e, t) => e.gen(`/get/${t}/groups/`, [
580
580
  "id",
581
581
  "name",
582
582
  "folder_id",
@@ -584,12 +584,12 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
584
584
  ]).changeParams({
585
585
  folder_id_depth: !0,
586
586
  limit: 100
587
- }), Ke = (e, t) => e.gen(`/add/${t}/groups/`), qe = (e, t) => e.gen(`/del/${t}/groups/`), Je = (e, t) => e.gen(`/edit/${t}/groups/rename/`), Ye = { class: "top-groupSelector_groupItem top-ellipsis1" }, Xe = {
587
+ }), qe = (e, t) => e.gen(`/add/${t}/groups/`), Je = (e, t) => e.gen(`/del/${t}/groups/`), Ye = (e, t) => e.gen(`/edit/${t}/groups/rename/`), Xe = { class: "top-groupSelector_groupItem top-ellipsis1" }, Ze = {
588
588
  key: 0,
589
589
  class: "top-comment"
590
- }, Ze = ["innerHTML"], Qe = ["innerHTML"], $e = ["innerHTML"], et = /* @__PURE__ */ A({
590
+ }, Qe = ["innerHTML"], $e = ["innerHTML"], et = ["innerHTML"], tt = /* @__PURE__ */ A({
591
591
  __name: "groups",
592
- props: /* @__PURE__ */ M({
592
+ props: /*@__PURE__*/ j({
593
593
  groupId: {},
594
594
  group: {},
595
595
  projectId: {},
@@ -620,13 +620,13 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
620
620
  group: { required: !0 },
621
621
  groupModifiers: {}
622
622
  }),
623
- emits: /* @__PURE__ */ M([
623
+ emits: /*@__PURE__*/ j([
624
624
  "addGroup",
625
625
  "editGroup",
626
626
  "delGroup"
627
627
  ], ["update:groupId", "update:group"]),
628
628
  setup(e, { expose: t, emit: n }) {
629
- let r = e, i = n, a = z(e, "groupId"), s = z(e, "group"), c = r.client && !r.groups ? Ge(r.client, r.service) : void 0, l = r.client ? Ke(r.client, r.service) : void 0, u = r.client ? qe(r.client, r.service) : void 0, d = r.client ? Je(r.client, r.service) : void 0, f = F(null), p = F(void 0), m = o("folder_id", "EQUALS", [r.folder?.id ?? 0]);
629
+ let r = e, i = n, a = R(e, "groupId"), s = R(e, "group"), c = r.client && !r.groups ? Ke(r.client, r.service) : void 0, l = r.client ? qe(r.client, r.service) : void 0, u = r.client ? Je(r.client, r.service) : void 0, d = r.client ? Ye(r.client, r.service) : void 0, f = P(null), p = P(void 0), m = o("folder_id", "EQUALS", [r.folder?.id ?? 0]);
630
630
  c?.changeParams({
631
631
  project_id: r.projectId,
632
632
  folder_id_depth: !0,
@@ -636,43 +636,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
636
636
  s.value = e, a.value = e.id;
637
637
  }, g = (e = !1) => {
638
638
  f.value?.resetCache(e);
639
- }, v = () => {
640
- r.groups && (p.value = We(r.groups, r.on, r.folder));
641
- }, y = () => {
642
- h(r.canSelectAll ? q() : G);
643
- }, b = async () => {
644
- if (r.groups) {
645
- let e = p.value?.find((e) => e.id === a.value);
646
- if (!e && r.canSelectAll && (e = q()), e) h(e);
647
- else {
648
- let e = p.value?.[0];
649
- e && !a.value ? h(e) : h(G);
650
- }
651
- }
652
- if (r.client && !r.groups && (a.value || a.value === 0 && !r.canSelectAll)) {
653
- let e = Ge(r.client, r.service).changeParams({
654
- project_id: r.projectId,
655
- id: a.value,
656
- filters: [m]
657
- });
658
- e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + r.projectId });
659
- let t = await e.call();
660
- if (!t.errors?.length && !t.result) return;
661
- !t.errors && t.result[0] ? h(t.result[0]) : y();
662
- }
663
- }, C = async () => {
664
- g(!0), v(), await b();
665
639
  };
666
- Be({
640
+ Ve({
667
641
  projectId: () => r.projectId,
668
642
  folderId: () => r.folder?.id,
669
643
  canSelectAll: () => r.canSelectAll
670
644
  }, (e) => {
671
- if (e.projectId && (c?.changeParams({ project_id: r.projectId }), c?.setOptions({ checkFingerprint: "TopGroupSelectorGroups:" + r.projectId })), e.folderId && (m.values = [r.folder?.id ?? 0], v()), g(), (e.folderId?.old !== void 0 || e.canSelectAll?.old !== void 0) && a.value !== null) {
645
+ if (e.projectId && (c?.changeParams({ project_id: r.projectId }), c?.setOptions({ checkFingerprint: "TopGroupSelectorGroups:" + r.projectId })), e.folderId && (m.values = [r.folder?.id ?? 0], r.groups && (p.value = Ge(r.groups, r.on, r.folder))), g(), (e.folderId?.old !== void 0 || e.canSelectAll?.old !== void 0) && a.value !== null) {
672
646
  let e;
673
- r.autoselect === "first" && (e = p.value?.[0], r.canSelectAll && (e = oe(q()))), (r.autoselect === "placeholder" || !e) && (e = Ue()), h(e);
647
+ r.autoselect === "first" && (e = p.value?.[0], r.canSelectAll && (e = se(K()))), (r.autoselect === "placeholder" || !e) && (e = We()), h(e);
674
648
  }
675
- }, { immediate: !0 }), Be({
649
+ }, { immediate: !0 }), Ve({
676
650
  modelGroup: s,
677
651
  modelGroupId: a
678
652
  }, async (e) => {
@@ -681,15 +655,35 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
681
655
  a.value = s.value.id;
682
656
  return;
683
657
  }
684
- r.canAdd && a.value === null || await b();
658
+ if (!(r.canAdd && a.value === null)) {
659
+ if (r.groups) {
660
+ let e = p.value?.find((e) => e.id === a.value);
661
+ if (!e && r.canSelectAll && (e = K()), e) h(e);
662
+ else {
663
+ let e = p.value?.[0];
664
+ e && !a.value ? h(e) : h(W);
665
+ }
666
+ }
667
+ if (r.client && !r.groups && (a.value || a.value === 0 && !r.canSelectAll)) {
668
+ let e = Ke(r.client, r.service).changeParams({
669
+ project_id: r.projectId,
670
+ id: a.value,
671
+ filters: [m]
672
+ });
673
+ e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + r.projectId });
674
+ let t = await e.call();
675
+ if (!t.errors?.length && !t.result) return;
676
+ !t.errors && t.result[0] ? h(t.result[0]) : h(W);
677
+ }
678
+ }
685
679
  }
686
680
  }, { immediate: !0 });
687
- let O = async (e) => {
681
+ let v = async (e) => {
688
682
  if (r.canAdd !== "api" || !l) return;
689
683
  let t = s.value, n = await l.changeParams({
690
684
  project_id: r.projectId,
691
685
  names: [e.name],
692
- to_id: r.folder?.id ?? W.id,
686
+ to_id: r.folder?.id ?? U.id,
693
687
  to_type: "in_folder_last"
694
688
  }).call();
695
689
  if (n.result) {
@@ -697,7 +691,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
697
691
  h(e), i("addGroup", e);
698
692
  } else h(t);
699
693
  f.value?.resetCache(!0);
700
- }, A = async (e, t) => {
694
+ }, y = async (e, t) => {
701
695
  d && ((await d.changeParams({
702
696
  project_id: r.projectId,
703
697
  id: e.id,
@@ -709,13 +703,13 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
709
703
  ...e,
710
704
  name: t
711
705
  }), f.value?.updateItemById(e.id, { name: t })));
712
- }, j = async (e) => {
706
+ }, b = async (e) => {
713
707
  u && ((await u.changeParams({
714
708
  project_id: r.projectId,
715
709
  id: e.id
716
- }).call()).errors || (s.value.id === e.id && y(), i("delGroup", e), f.value?.deleteItemById(e.id)));
710
+ }).call()).errors || (s.value.id === e.id && h(r.canSelectAll ? K() : W), i("delGroup", e), f.value?.deleteItemById(e.id)));
717
711
  };
718
- return t({ reload: C }), (t, n) => (P(), w(x, {
712
+ return t({ resetCacheGroups: g }), (t, n) => (N(), w(x, {
719
713
  ref_key: "refSelector",
720
714
  ref: f,
721
715
  class: "top-groupSelector_group",
@@ -724,37 +718,37 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
724
718
  items: p.value ?? e.groups,
725
719
  searchType: "inline",
726
720
  icon: e.addIcon ? "" : void 0,
727
- api: e.groups ? void 0 : R(c),
728
- apiSetSearchParams: (...e) => R(te)(...e, "name"),
721
+ api: e.groups ? void 0 : L(c),
722
+ apiSetSearchParams: (...e) => L(te)(...e, "name"),
729
723
  appendSearchToResult: !!e.canAdd,
730
- useAllItem: e.canSelectAll ? R(q)().name : !1,
724
+ useAllItem: e.canSelectAll ? L(K)().name : !1,
731
725
  addChanger: e.addChanger,
732
726
  useCache: "",
733
- onAppendItem: O
727
+ onAppendItem: v
734
728
  }, ne({
735
- item: V(({ item: n }) => [D("div", Ye, [
736
- n.id === R(null) ? (P(), E("div", Xe, L(t.$i18n.Common.Add) + ": ", 1)) : T("", !0),
729
+ item: B(({ item: n }) => [D("div", Xe, [
730
+ n.id === L(null) ? (N(), E("div", Ze, I(t.$i18n.Common.Add) + ": ", 1)) : T("", !0),
737
731
  D("span", {
738
732
  class: "top-groupSelector_groupItemName top-ellipsis1",
739
733
  innerHTML: n.name
740
- }, null, 8, Ze),
741
- n.folder_path && e.showPath ? (P(), E("span", {
734
+ }, null, 8, Qe),
735
+ n.folder_path && e.showPath ? (N(), E("span", {
742
736
  key: 1,
743
737
  class: "top-groupSelector_groupItemFolderPath top-ellipsis1",
744
738
  innerHTML: n.folder_path
745
- }, null, 8, Qe)) : T("", !0)
739
+ }, null, 8, $e)) : T("", !0)
746
740
  ])]),
747
741
  _: 2
748
742
  }, [e.canEditAndDel && e.client ? {
749
743
  name: "actions",
750
- fn: V(({ item: r }) => [r.id ? (P(), E(S, { key: 0 }, [k(_, {
744
+ fn: B(({ item: r }) => [r.id ? (N(), E(S, { key: 0 }, [k(_, {
751
745
  submitText: t.$i18n.Common.Save,
752
746
  defaultValue: r.name,
753
747
  inputProps: { addCleaner: !1 },
754
- onSubmit: (e) => A(r, e)
748
+ onSubmit: (e) => y(r, e)
755
749
  }, {
756
- opener: V(() => [...n[1] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
757
- default: V(() => [...n[2] ||= []]),
750
+ opener: B(() => [...n[1] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
751
+ default: B(() => [...n[2] ||= []]),
758
752
  _: 1
759
753
  }, 8, [
760
754
  "submitText",
@@ -763,10 +757,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
763
757
  ]), k(ee, {
764
758
  isWarning: "",
765
759
  submitText: t.$i18n.Common.Delete,
766
- onSubmit: (e) => j(r)
760
+ onSubmit: (e) => b(r)
767
761
  }, {
768
- opener: V(() => [...n[3] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
769
- default: V(() => [D("span", { innerHTML: e.service === "keywords_2" ? t.$i18n.Keywords.Delete_group_warning : t.$i18n["Ai.Tracker"].Delete_group_warning }, null, 8, $e)]),
762
+ opener: B(() => [...n[3] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
763
+ default: B(() => [D("span", { innerHTML: e.service === "keywords_2" ? t.$i18n.Keywords.Delete_group_warning : t.$i18n["Ai.Tracker"].Delete_group_warning }, null, 8, et)]),
770
764
  _: 1
771
765
  }, 8, ["submitText", "onSubmit"])], 64)) : T("", !0)]),
772
766
  key: "0"
@@ -781,9 +775,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
781
775
  "addChanger"
782
776
  ]));
783
777
  }
784
- }), tt = { class: "top-groupSelector" }, nt = /* @__PURE__ */ A({
778
+ }), nt = { class: "top-groupSelector" }, rt = /* @__PURE__ */ A({
785
779
  __name: "groupSelector",
786
- props: /* @__PURE__ */ M({
780
+ props: /*@__PURE__*/ j({
787
781
  folderId: {},
788
782
  folder: {},
789
783
  groupId: {},
@@ -827,20 +821,20 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
827
821
  folderModifiers: {},
828
822
  groupId: { required: !0 },
829
823
  groupIdModifiers: {},
830
- group: { default: G },
824
+ group: { default: W },
831
825
  groupModifiers: {}
832
826
  }),
833
- emits: /* @__PURE__ */ M(["update:groups"], [
827
+ emits: /*@__PURE__*/ j(["update:groups"], [
834
828
  "update:folderId",
835
829
  "update:folder",
836
830
  "update:groupId",
837
831
  "update:group"
838
832
  ]),
839
833
  setup(e, { expose: t, emit: n }) {
840
- let r = e, i = F(null), a = z(e, "folderId"), o = z(e, "folder"), s = z(e, "groupId"), c = z(e, "group"), l = n;
841
- o.value = Re(r.folders ?? { root: [W] }, r.canSelectAllGroups).get(a.value);
834
+ let r = e, i = P(null), a = R(e, "folderId"), o = R(e, "folder"), s = R(e, "groupId"), c = R(e, "group"), l = n;
835
+ o.value = ze(r.folders ?? { root: [U] }, r.canSelectAllGroups).get(a.value);
842
836
  let u = r.groups?.find((e) => e.id === s.value);
843
- s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u = q()), (r.autoselect === "placeholder" || !u) && (u = Ue()), u ??= G, c.value = u;
837
+ s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u = K()), (r.autoselect === "placeholder" || !u) && (u = We()), u ??= W, c.value = u;
844
838
  let d = (e) => {
845
839
  let t;
846
840
  r.groups && e && (t = [...r.groups, e]), l("update:groups", t);
@@ -857,9 +851,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
857
851
  }
858
852
  l("update:groups", r.groups.filter((t) => t.id !== e.id));
859
853
  };
860
- return t({ reloadGroups: async () => {
861
- await i.value?.reload();
862
- } }), (t, n) => (P(), E("div", tt, [e.showFolders ? (P(), w(He, {
854
+ return t({ resetCacheGroups: (e = !1) => {
855
+ i.value?.resetCacheGroups(e);
856
+ } }), (t, n) => (N(), E("div", nt, [e.showFolders ? (N(), w(Ue, {
863
857
  key: 0,
864
858
  folderId: a.value,
865
859
  "onUpdate:folderId": n[0] ||= (e) => a.value = e,
@@ -871,7 +865,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
871
865
  addChanger: e.addChanger,
872
866
  addIcon: e.addIcon,
873
867
  client: e.client,
874
- service: e.service
868
+ service: r.service
875
869
  }, null, 8, [
876
870
  "folderId",
877
871
  "folder",
@@ -882,7 +876,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
882
876
  "addIcon",
883
877
  "client",
884
878
  "service"
885
- ])) : T("", !0), e.showGroups ? (P(), w(et, {
879
+ ])) : T("", !0), e.showGroups ? (N(), w(tt, {
886
880
  key: 1,
887
881
  ref_key: "componentGroupsRef",
888
882
  ref: i,
@@ -902,7 +896,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
902
896
  showPath: e.showFolders && !!e.folders?.[0],
903
897
  addIcon: e.addIcon,
904
898
  client: e.client,
905
- service: e.service,
899
+ service: r.service,
906
900
  onAddGroup: d,
907
901
  onEditGroup: f,
908
902
  onDelGroup: p
@@ -924,39 +918,39 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
924
918
  "service"
925
919
  ])) : T("", !0)]));
926
920
  }
927
- }), rt = (e) => ({
921
+ }), it = (e) => ({
928
922
  id: null,
929
923
  name: e,
930
924
  listItemProps: { type: "title" }
931
- }), it = {
925
+ }), at = {
932
926
  scheduledUpdate: !1,
933
927
  manualUpdate: !1,
934
928
  guestProjects: !1
935
- }, at = (t, n) => {
929
+ }, ot = (t, n) => {
936
930
  let r = [], i = {
937
- scheduledUpdate: rt(e().Projects.Scheduled_update),
938
- manualUpdate: rt(e().Projects.Manual_update),
939
- guestProjects: rt(e().Projects.Guest_projects)
931
+ scheduledUpdate: it(e().Projects.Scheduled_update),
932
+ manualUpdate: it(e().Projects.Manual_update),
933
+ guestProjects: it(e().Projects.Guest_projects)
940
934
  }, a = n ? {
941
935
  scheduledUpdate: !1,
942
936
  manualUpdate: !1,
943
937
  guestProjects: !1
944
- } : it;
938
+ } : at;
945
939
  for (let e of t) !a.scheduledUpdate && e.right?.startsWith("1") && e.on > 0 && (r.push(i.scheduledUpdate), a.scheduledUpdate = !0), !a.manualUpdate && e.right?.startsWith("1") && e.on === 0 && (r.push(i.manualUpdate), a.manualUpdate = !0), !a.guestProjects && e.right?.startsWith("0") && e.on >= 0 && (r.push(i.guestProjects), a.guestProjects = !0), r.push(e);
946
940
  return r;
947
- }, ot = (e) => e.map((e) => ({
941
+ }, st = (e) => e.map((e) => ({
948
942
  ...e,
949
943
  listItemProps: { attrs: { title: e.name } }
950
- })), st = (e, t, n) => !e || e.length === 0 ? [] : (t && Object.keys(it).forEach((e) => it[e] = !1), at(ot(e), n)), ct = (e) => {
944
+ })), ct = (e, t, n) => !e || e.length === 0 ? [] : (t && Object.keys(at).forEach((e) => at[e] = !1), ot(st(e), n)), lt = (e) => {
951
945
  e = e.replace(/#.*/, "");
952
946
  let t = location.hash;
953
947
  return t = t.replace(/historyView=[^&]*/, ""), t = t.replace(/modelsKeys=[^&]*/, ""), t = t.replace(/competitorsIds=[^&]*/, ""), t = t.replace(/searchersKeys=[^&]*/, ""), t = t.replace(/regionIndex=[^&]*/, ""), t = t.replace(/regionsIndexes=[^&]*/, ""), t = t.replace(/folderId=[^&]*/, ""), t = t.replace(/groupId=[^&]*/, ""), t = t.replace(/tags=[^&]*/, ""), window.mo?.getHash && !window.mo.getHash("dataSort").toString().includes("0000-00-00") && (t = t.replace(/dataSort=[^&]*/, "")), t = t.replace(/%22historyView%22:[^,]*,/, ""), t = t.replace(/%22modelsKeys%22:\[[^\]]*\],/, ""), t = t.replace(/%22competitorsIds%22:\[[^\]]*],/, ""), t = t.replace(/%22searchersKeys%22:\[[^\]]*],/, ""), t = t.replace(/%22regionIndex%22:[^,]*,/, ""), t = t.replace(/%22regionsIndexes%22:\[[^\]]*],/, ""), t = t.replace(/%22folderId%22:[^,]*,/, ""), t = t.replace(/%22groupId%22:[^,]*,/, ""), t = t.replace(/%22tagsIds%22:\[[^\]]*],/, ""), /%22dataSort%22:\{[^}]*0000-00-00[^}]*}/.test(t) || (t = t.replace(/,?%22dataSort%22:\{[^}]*}(,?)/, "$1")), e + t;
954
- }, lt = (e, t) => {
948
+ }, ut = (e, t) => {
955
949
  t && t.target instanceof HTMLElement && c.close(t.target.closest(".top-popup-wrapper"));
956
- let n = ct(e);
950
+ let n = lt(e);
957
951
  location.href = n;
958
- }, ut = (e) => {
959
- let t = dt(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
952
+ }, dt = (e) => {
953
+ let t = ft(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
960
954
  return n[1] == "project" && (r = n[1] + "/" + n[2] + "/"), n[2] == "settings" && (i = location.hash), [
961
955
  "watcher",
962
956
  "indexing",
@@ -965,16 +959,16 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
965
959
  "direct",
966
960
  "adwords"
967
961
  ].includes(n[4]) && (i = n[4] + "/"), "https://" + t + "/" + r + e + "/" + i;
968
- }, dt = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, ft = (e) => {
962
+ }, ft = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, pt = (e) => {
969
963
  let t = e.startsWith("http") ? e : "http://" + e;
970
964
  return t = t.replace(/"/g, "%22"), t;
971
- }, pt = (e, t) => {
965
+ }, mt = (e, t) => {
972
966
  let n = e.params.filters ?? [];
973
967
  n = n.filter((e) => e.name !== "GEN_SEARCH_STRING()");
974
968
  let r = h(t), i = t.replace(/([[^$.|?*+()])/g, "\\$1"), a = r.replace(/([[^$.|?*+()])/g, "\\$1");
975
969
  t && n.push(o("GEN_SEARCH_STRING()", "REGEXP", [`(${i}|${a})`])), e.changeParams({ filters: n });
976
- }, mt = (e, t, n) => {
977
- let r = e.gen("/get/projects_2/projects/", [
970
+ }, ht = (e) => {
971
+ let n = e.gen("/get/projects_2/projects/", [
978
972
  "id",
979
973
  "user_id",
980
974
  "name",
@@ -982,25 +976,24 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
982
976
  "on",
983
977
  "right"
984
978
  ]);
985
- return r.params = {
986
- ...n,
979
+ return n.changeParams({
987
980
  filters: [o("on", "GREATER_THAN_EQUALS", [0])],
988
981
  orders: [
989
- a("user_id", "DESC", [t]),
982
+ a("user_id", "DESC", [t.state.user.id]),
990
983
  a("on", "DESC"),
991
984
  a("favorite", "DESC"),
992
985
  a("id", "DESC")
993
986
  ]
994
- }, r.options.onApiLoaded = (e, t, n) => {
987
+ }), n.options.onApiLoaded = (e, t, n) => {
995
988
  let r = t.data.filters.length === 1 && t.data.offset === 0 || t.data.limit === 1e3, i = t.data.limit === 100 && t.data.filters.length > 1 ? !0 : void 0;
996
- e.result = st(e.result, r, i), n?.(e, t);
997
- }, r;
998
- }, ht = (e) => e.gen("/add/projects_2/projects/"), gt = { class: "top-projectSelectorSubmenu_item" }, _t = [
989
+ e.result = ct(e.result, r, i), n?.(e, t);
990
+ }, n;
991
+ }, gt = (e) => e.gen("/add/projects_2/projects/"), _t = { class: "top-projectSelectorSubmenu_item" }, vt = [
999
992
  "href",
1000
993
  "title",
1001
994
  "data-top-icon",
1002
995
  "data-right"
1003
- ], vt = { class: "top-projectSelectorSubmenu_item" }, yt = ["href"], bt = /* @__PURE__ */ A({
996
+ ], yt = { class: "top-projectSelectorSubmenu_item" }, bt = ["href"], xt = /* @__PURE__ */ A({
1004
997
  __name: "submenu",
1005
998
  props: {
1006
999
  id: {},
@@ -1008,7 +1001,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1008
1001
  url: {}
1009
1002
  },
1010
1003
  setup(t) {
1011
- let n = t, r = e(), i = dt(), a = [
1004
+ let n = t, r = e(), i = ft(), a = [
1012
1005
  {
1013
1006
  href: `https://${i}/project/keywords/${n.id}/`,
1014
1007
  title: r.Common.Menu_phrases,
@@ -1089,53 +1082,53 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1089
1082
  return n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a;
1090
1083
  });
1091
1084
  return (e, n) => {
1092
- let r = ce("TopButton");
1093
- return P(), w(R(y), {
1085
+ let r = le("TopButton");
1086
+ return N(), w(L(y), {
1094
1087
  class: "top-projectSelectorSubmenu",
1095
1088
  notch: !1,
1096
1089
  pos: "2"
1097
1090
  }, {
1098
- opener: V(() => [k(r, {
1091
+ opener: B(() => [k(r, {
1099
1092
  class: "top-projectSelectorSubmenu_opener",
1100
1093
  "data-top-icon": "",
1101
1094
  color: "theme"
1102
1095
  })]),
1103
- contentList: V(() => [(P(!0), E(S, null, I(o.value, (e) => (P(), E("li", gt, [D("a", {
1096
+ contentList: B(() => [(N(!0), E(S, null, F(o.value, (e) => (N(), E("li", _t, [D("a", {
1104
1097
  href: e.href,
1105
1098
  title: e.title,
1106
1099
  "data-top-icon": e.icon,
1107
1100
  "data-right": e.right
1108
- }, null, 8, _t)]))), 256)), D("li", vt, [D("a", {
1101
+ }, null, 8, vt)]))), 256)), D("li", yt, [D("a", {
1109
1102
  href: t.url,
1110
1103
  "data-top-icon": "",
1111
1104
  target: "_blank"
1112
- }, null, 8, yt)])]),
1105
+ }, null, 8, bt)])]),
1113
1106
  _: 1
1114
1107
  });
1115
1108
  };
1116
1109
  }
1117
- }), J = "ui_project_selector_total:", xt = 1440 * 60 * 1e3, Y = de(), St = F(0), X = F(null), Ct = (e, t) => {
1118
- localStorage.setItem(J + e, JSON.stringify({
1119
- projectsTotal: t,
1120
- expiresAt: Date.now() + xt
1110
+ }), St = 1440 * 60 * 1e3, q = fe(), Ct = P(0), J = P(null), wt = (e) => {
1111
+ localStorage.setItem("ui_project_selector_total:" + t.state.user.id, JSON.stringify({
1112
+ projectsTotal: e,
1113
+ expiresAt: Date.now() + St
1121
1114
  }));
1122
- }, wt = (e) => {
1123
- let t = localStorage.getItem(J + e);
1124
- if (!t) return;
1125
- let { projectsTotal: n, expiresAt: r } = JSON.parse(t);
1115
+ }, Tt = () => {
1116
+ let e = localStorage.getItem("ui_project_selector_total:" + t.state.user.id);
1117
+ if (!e) return;
1118
+ let { projectsTotal: n, expiresAt: r } = JSON.parse(e);
1126
1119
  if (Date.now() > r) {
1127
- localStorage.removeItem(J + e);
1120
+ localStorage.removeItem("ui_project_selector_total:" + t.state.user.id);
1128
1121
  return;
1129
1122
  }
1130
1123
  return n;
1131
- }, Tt = (e, t = !0) => {
1132
- Y.value = void 0, localStorage.removeItem(J + e), t && St.value++;
1133
- }, Et = { class: "top-projectSelector_item" }, Dt = { class: "top-projectSelector_itemText" }, Ot = { class: "top-comment" }, kt = {
1124
+ }, Et = (e = !0) => {
1125
+ q.value = void 0, J.value = null, localStorage.removeItem("ui_project_selector_total:" + t.state.user.id), e && Ct.value++;
1126
+ }, Dt = { class: "top-projectSelector_item" }, Ot = { class: "top-projectSelector_itemText" }, kt = { class: "top-comment" }, At = {
1134
1127
  key: 0,
1135
1128
  class: "top-comment"
1136
- }, At = ["href", "onClick"], jt = 1e3, Mt = /* @__PURE__ */ A({
1129
+ }, jt = ["href", "onClick"], Mt = 1e3, Nt = /* @__PURE__ */ A({
1137
1130
  __name: "projectSelector",
1138
- props: /* @__PURE__ */ M({
1131
+ props: /*@__PURE__*/ j({
1139
1132
  modelValue: {},
1140
1133
  client: {},
1141
1134
  addLinksToProjects: {
@@ -1155,112 +1148,112 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1155
1148
  modelModifiers: {}
1156
1149
  }),
1157
1150
  emits: ["update:modelValue"],
1158
- setup(t) {
1159
- let n = e();
1160
- if (!window.mo?.user?.id) throw Error("TopProjectSelector: не удалось определить userId. Компонент требует авторизованного пользователя (см. window.mo.user.id)");
1161
- let r = window.mo.user.id, i = t, a = z(t, "modelValue"), o = mt(i.client, r), s = ht(i.client), c = F(wt(r)), d = F(null), f = C(() => i.placeholder ?? n.Projects.Select_project), p = C(() => !Y.value || !i.excludeProjectId ? Y.value : Y.value.filter((e) => e.id !== i.excludeProjectId)), m = C(() => {
1162
- if (!(!c.value && c.value !== 0)) return c.value < jt ? "static" : "api";
1151
+ setup(n) {
1152
+ let r = e(), i = n, a = R(n, "modelValue"), o = ht(i.client), s = ht(i.client);
1153
+ s.changeParams({ limit: Mt });
1154
+ let c = gt(i.client), l = P(Tt()), f = P(null), p = C(() => i.placeholder ?? r.Projects.Select_project), m = C(() => !q.value || !i.excludeProjectId ? q.value : q.value.filter((e) => e.id !== i.excludeProjectId)), h = C(() => {
1155
+ if (!(!l.value && l.value !== 0)) return l.value < Mt ? "static" : "api";
1163
1156
  });
1164
- B(St, () => {
1165
- v();
1166
- }), B(a, () => {
1167
- !a.value.id || !i.addLinksToProjects || lt(ut(a.value.id));
1157
+ z(Ct, () => {
1158
+ ee();
1159
+ }), z(a, () => {
1160
+ !a.value.id || !i.addLinksToProjects || ut(dt(a.value.id));
1168
1161
  });
1169
- let h = async () => {
1170
- X.value ||= mt(i.client, r, { limit: jt }).call();
1171
- let e = await X.value;
1162
+ let g = async () => {
1163
+ J.value ||= s.call();
1164
+ let e = await J.value;
1172
1165
  if (e.errors) {
1173
- X.value = null;
1166
+ J.value = null;
1174
1167
  return;
1175
1168
  }
1176
- return X.value = null, e;
1177
- }, g = async () => {
1178
- if (c.value) return;
1179
- let e = await h();
1180
- e && (c.value = e.total, m.value === "static" && !Y.value && (Y.value = e.result), c.value && Ct(r, c.value));
1181
- }, _ = async (e) => {
1182
- let t = await s.changeParams({
1169
+ return J.value = null, e;
1170
+ }, _ = async () => {
1171
+ if (l.value) return;
1172
+ let e = await g();
1173
+ e && (l.value = e.total, h.value === "static" && !q.value && (q.value = e.result), l.value && wt(l.value));
1174
+ }, v = async (e) => {
1175
+ let n = await c.changeParams({
1183
1176
  url: e.name,
1184
1177
  name: e.name
1185
1178
  }).call();
1186
- if (!t.errors) {
1187
- if (Y.value && m.value === "static") {
1188
- let n = {
1189
- id: Number(t.result),
1190
- user_id: r,
1179
+ if (!n.errors) {
1180
+ if (q.value && h.value === "static") {
1181
+ let r = {
1182
+ id: Number(n.result),
1183
+ user_id: t.state.user.id,
1191
1184
  name: e.name,
1192
1185
  url: e.name,
1193
1186
  on: 0,
1194
1187
  right: "11111111111111111111",
1195
1188
  listItemProps: { attrs: { title: e.name } }
1196
- }, i = Y.value.findIndex((e) => e.on === 0);
1197
- Y.value = [
1198
- ...Y.value.slice(0, i),
1199
- n,
1200
- ...Y.value.slice(i)
1201
- ], c.value && (c.value += 1, Ct(r, c.value));
1189
+ }, i = q.value.findIndex((e) => e.on === 0);
1190
+ q.value = [
1191
+ ...q.value.slice(0, i),
1192
+ r,
1193
+ ...q.value.slice(i)
1194
+ ], l.value && (l.value += 1, wt(l.value));
1202
1195
  }
1203
- m.value === "api" && Tt(r);
1196
+ h.value === "api" && Et();
1204
1197
  }
1205
- }, v = () => {
1206
- m.value === "api" && d.value?.resetCache(!0);
1207
- }, ee = async () => {
1208
- if (Y.value || m.value !== "static") return;
1209
- let e = await h();
1210
- e && (Y.value = e.result);
1198
+ }, ee = () => {
1199
+ h.value === "api" && f.value?.resetCache(!0);
1200
+ }, y = async () => {
1201
+ if (q.value || h.value === "api") return;
1202
+ let e = await g();
1203
+ e && (q.value = e.result);
1211
1204
  };
1212
- return ae(async () => {
1213
- await g();
1214
- }), (e, n) => {
1215
- let r = ce("TopButton");
1216
- return P(), w(x, {
1205
+ return oe(async () => {
1206
+ await _();
1207
+ }), (e, t) => {
1208
+ let r = le("TopButton");
1209
+ return N(), w(x, {
1217
1210
  ref_key: "refSelector",
1218
- ref: d,
1211
+ ref: f,
1219
1212
  class: "top-projectSelector",
1220
1213
  modelValue: a.value,
1221
- "onUpdate:modelValue": n[1] ||= (e) => a.value = e,
1222
- items: p.value,
1214
+ "onUpdate:modelValue": t[1] ||= (e) => a.value = e,
1215
+ items: m.value,
1223
1216
  title: e.$i18n.Projects.Search_projects,
1224
- modificator: t.modificator,
1217
+ modificator: n.modificator,
1225
1218
  searchFields: [
1226
1219
  "id",
1227
1220
  "name",
1228
1221
  "url"
1229
1222
  ],
1230
- placeholder: f.value,
1223
+ placeholder: p.value,
1231
1224
  hasCloserBtn: "",
1232
- api: m.value === "api" ? R(o) : void 0,
1233
- apiSetSearchParams: m.value === "api" ? (...e) => R(pt)(...e) : void 0,
1225
+ api: h.value === "api" ? L(o) : void 0,
1226
+ apiSetSearchParams: h.value === "api" ? (...e) => L(mt)(...e) : void 0,
1234
1227
  useCache: "",
1235
1228
  appendSearchToResult: "",
1236
1229
  appendSearchAllowDuplicate: "",
1237
- appendSearchToResultCond: R(l),
1230
+ appendSearchToResultCond: L(u),
1238
1231
  appendWithoutSelect: "",
1239
- buttonProps: t.buttonProps,
1240
- openerShortcut: t.openerShortcut,
1241
- onAppendItem: _,
1242
- onOpen: ee
1232
+ buttonProps: n.buttonProps,
1233
+ openerShortcut: n.openerShortcut,
1234
+ onAppendItem: v,
1235
+ onOpen: y
1243
1236
  }, {
1244
- item: V(({ item: i }) => [D("div", Et, [D("div", Dt, [i.id ? (P(), E(S, { key: 0 }, [O(L(R(u)(i.name, 20)) + " ", 1), D("span", Ot, " id " + L(i.id), 1)], 64)) : (P(), E(S, { key: 1 }, [i.listItemProps?.type ? T("", !0) : (P(), E("div", kt, L(e.$i18n.Projects.Add_project) + ": ", 1)), O(" " + L(i.name), 1)], 64))]), i.id ? (P(), E(S, { key: 0 }, [
1245
- t.addLinksToProjects ? (P(), E("a", {
1237
+ item: B(({ item: i }) => [D("div", Dt, [D("div", Ot, [i.id ? (N(), E(S, { key: 0 }, [O(I(L(d)(i.name, 20)) + " ", 1), D("span", kt, " id " + I(i.id), 1)], 64)) : (N(), E(S, { key: 1 }, [i.listItemProps?.type ? T("", !0) : (N(), E("div", At, I(e.$i18n.Projects.Add_project) + ": ", 1)), O(" " + I(i.name), 1)], 64))]), i.id ? (N(), E(S, { key: 0 }, [
1238
+ n.addLinksToProjects ? (N(), E("a", {
1246
1239
  key: 0,
1247
1240
  class: "top-projectSelector_itemLink",
1248
- href: R(ut)(i.id),
1249
- onClick: H((e) => R(lt)(R(ut)(i.id), e), ["prevent", "stop"])
1250
- }, null, 8, At)) : T("", !0),
1251
- e.$core.state.isMobile ? T("", !0) : (P(), w(r, {
1241
+ href: L(dt)(i.id),
1242
+ onClick: V((e) => L(ut)(L(dt)(i.id), e), ["prevent", "stop"])
1243
+ }, null, 8, jt)) : T("", !0),
1244
+ e.$core.state.isMobile ? T("", !0) : (N(), w(r, {
1252
1245
  key: 1,
1253
1246
  class: "top-projectSelector_itemExtLink",
1254
- href: R(ft)(i.url),
1247
+ href: L(pt)(i.url),
1255
1248
  "data-top-icon": "",
1256
1249
  color: "theme",
1257
1250
  target: "_blank",
1258
- onClick: n[0] ||= H(() => {}, ["stop"])
1251
+ onClick: t[0] ||= V(() => {}, ["stop"])
1259
1252
  }, null, 8, ["href"])),
1260
- k(bt, {
1253
+ k(xt, {
1261
1254
  id: i.id,
1262
1255
  right: i.right ?? void 0,
1263
- url: R(ft)(i.url)
1256
+ url: L(pt)(i.url)
1264
1257
  }, null, 8, [
1265
1258
  "id",
1266
1259
  "right",
@@ -1282,34 +1275,34 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1282
1275
  ]);
1283
1276
  };
1284
1277
  }
1285
- }), Nt = (e) => "-" + e, Z = (e) => e[0] === "-" ? e.substring(1) : e, Q = (e, t) => {
1286
- e = Z(e);
1278
+ }), Pt = (e) => "-" + e, Y = (e) => e[0] === "-" ? e.substring(1) : e, X = (e, t) => {
1279
+ e = Y(e);
1287
1280
  let n = t.find((t) => t.id === e);
1288
1281
  if (n) return n;
1289
- }, Pt = (e, t, n) => {
1282
+ }, Ft = (e, t, n) => {
1290
1283
  t ||= { id: e.id }, t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
1291
1284
  let r = c.genElPopupOpener("div", t);
1292
1285
  return r.classList.add("top-tagSelector"), e.useTopButton && r.classList.add("top-tagSelector-useTopButton", "top-button", "top-color_theme", "top-as-selector"), e.useTopButton || r.classList.add("top-tagSelector-custom"), e.mode === "filter" && r.classList.add("top-tagSelector-filter"), e.mode === "setter" && !e.filters && r.classList.add("top-tagSelector-setter_single"), e.mode === "setter" && e.filters && r.classList.add("top-tagSelector-setter_several"), r.onclick = (t) => {
1293
1286
  t.preventDefault(), t.stopPropagation(), r.onclick = null;
1294
- let i = F(e.modelValue);
1287
+ let i = P(e.modelValue);
1295
1288
  s(r, "topTagSelectorTarget", {
1296
1289
  model: i,
1297
1290
  mode: e.mode,
1298
1291
  targetId: e.targetId,
1299
1292
  filters: e.filters,
1300
1293
  payload: e.payload
1301
- }), delete r.dataset.topPopupDisabled, j(e.modelValue) || B(i, () => {
1302
- e.modelValue = i.value, It(r, e, n);
1294
+ }), delete r.dataset.topPopupDisabled, re(e.modelValue) || z(i, () => {
1295
+ e.modelValue = i.value, Z(r, e, n);
1303
1296
  }), r.click();
1304
- }, j(e.modelValue) ? B(e.modelValue, () => It(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1297
+ }, re(e.modelValue) ? z(e.modelValue, () => Z(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1305
1298
  e.modelValue = t;
1306
1299
  let i = s(r, "topTagSelectorTarget");
1307
- i && (i.model.value = t), It(r, e, n);
1308
- }), It(r, e, n), r;
1309
- }, Ft = (e, t) => {
1300
+ i && (i.model.value = t), Z(r, e, n);
1301
+ }), Z(r, e, n), r;
1302
+ }, It = (e, t) => {
1310
1303
  s(e, "topTagSelectorRender")?.(t);
1311
- }, It = (t, n, r) => {
1312
- let i = R(n.modelValue);
1304
+ }, Z = (t, n, r) => {
1305
+ let i = L(n.modelValue);
1313
1306
  if (t.classList.toggle("top-tagSelector-selectedOne", !i.length || i.length === 1), t.classList.toggle("top-tagSelector-toTwoLine", i.length > 5), n.mode === "setter" && n.filters) {
1314
1307
  t.innerHTML = `<div>${r}</div>`;
1315
1308
  return;
@@ -1325,10 +1318,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1325
1318
  }
1326
1319
  i.forEach((e) => {
1327
1320
  let r = Lt({
1328
- id: Z(e),
1329
- colorId: Q(e, n.tags)?.color_id ?? "",
1330
- name: Q(e, n.tags)?.name ?? "",
1331
- state: Z(e) === e ? "selected" : "excluded"
1321
+ id: Y(e),
1322
+ colorId: X(e, n.tags)?.color_id ?? "",
1323
+ name: X(e, n.tags)?.name ?? "",
1324
+ state: Y(e) === e ? "selected" : "excluded"
1332
1325
  });
1333
1326
  t.append(r);
1334
1327
  });
@@ -1390,7 +1383,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1390
1383
  "data-tag_id",
1391
1384
  "data-tag_color_id",
1392
1385
  "title"
1393
- ], Bt = /* @__PURE__ */ A({
1386
+ ], Q = /* @__PURE__ */ A({
1394
1387
  __name: "tagIcon",
1395
1388
  props: {
1396
1389
  id: {},
@@ -1399,8 +1392,8 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1399
1392
  state: {}
1400
1393
  },
1401
1394
  setup(e) {
1402
- return (t, n) => (P(), E("div", {
1403
- class: N({
1395
+ return (t, n) => (N(), E("div", {
1396
+ class: M({
1404
1397
  "top-tagSelector_tagIcon": !0,
1405
1398
  "top-tagSelector-active": !!e.state,
1406
1399
  "top-tagSelector-excluded": e.state === "excluded"
@@ -1410,9 +1403,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1410
1403
  title: e.name
1411
1404
  }, null, 10, zt));
1412
1405
  }
1413
- }), Vt = ["contenteditable", "onKeydown"], Ht = /* @__PURE__ */ A({
1406
+ }), Bt = ["contenteditable", "onKeydown"], Vt = /* @__PURE__ */ A({
1414
1407
  __name: "tagPopupListItem",
1415
- props: /* @__PURE__ */ M({
1408
+ props: /*@__PURE__*/ j({
1416
1409
  editable: { type: Boolean },
1417
1410
  disabled: { type: Boolean },
1418
1411
  canExclude: { type: Boolean },
@@ -1424,18 +1417,18 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1424
1417
  name: { required: !0 },
1425
1418
  nameModifiers: {}
1426
1419
  }),
1427
- emits: /* @__PURE__ */ M([
1420
+ emits: /*@__PURE__*/ j([
1428
1421
  "update:name",
1429
1422
  "unselect",
1430
1423
  "exclude",
1431
1424
  "select"
1432
1425
  ], ["update:name"]),
1433
1426
  setup(e, { emit: t }) {
1434
- let n = e, r = t, i = z(e, "name"), a = F(null), o = C(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
1427
+ let n = e, r = t, i = R(e, "name"), a = P(null), o = C(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
1435
1428
  contenteditable: s.value,
1436
1429
  onpaste: (e) => e.preventDefault()
1437
- }), s = F(!1), c = async () => {
1438
- s.value = !0, await ie(), a.value?.focus();
1430
+ }), s = P(!1), c = async () => {
1431
+ s.value = !0, await ae(), a.value?.focus();
1439
1432
  }, l = () => {
1440
1433
  let e = a.value?.innerText;
1441
1434
  if (!e) return u();
@@ -1447,8 +1440,8 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1447
1440
  let t = "selected";
1448
1441
  n.canExclude && (e.ctrlKey || e.metaKey) && (t = "excluded"), n.state == t && (t = ""), t === "" && r("unselect"), t === "selected" && r("select"), t === "excluded" && r("exclude");
1449
1442
  };
1450
- return (t, n) => (P(), w(v, {
1451
- class: N({
1443
+ return (t, n) => (N(), w(v, {
1444
+ class: M({
1452
1445
  "top-tagSelector_tagListItem": !0,
1453
1446
  "top-tagSelector_tagListItem-inEdit": s.value,
1454
1447
  "top-tagSelector_tagListItem-disabled": e.disabled,
@@ -1456,10 +1449,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1456
1449
  "top-tagSelector-active": !!e.state,
1457
1450
  "top-tagSelector-excluded": e.state === "excluded"
1458
1451
  }),
1459
- onClick: H(d, ["stop"])
1452
+ onClick: V(d, ["stop"])
1460
1453
  }, {
1461
- default: V(() => [
1462
- k(Bt, {
1454
+ default: B(() => [
1455
+ k(Q, {
1463
1456
  id: e.id,
1464
1457
  name: i.value,
1465
1458
  colorId: e.colorId,
@@ -1470,18 +1463,18 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1470
1463
  "colorId",
1471
1464
  "state"
1472
1465
  ]),
1473
- D("span", re({
1466
+ D("span", ie({
1474
1467
  ref_key: "elName",
1475
1468
  ref: a,
1476
1469
  class: "top-tagSelector_tagListItemName",
1477
1470
  contenteditable: s.value ? "plaintext-only" : !1
1478
- }, o.value, { onKeydown: [me(H(l, ["stop"]), ["enter"]), me(H(u, ["stop"]), ["esc"])] }), L(i.value), 17, Vt),
1479
- e.editable ? (P(), E(S, { key: 0 }, [s.value ? (P(), E("span", {
1471
+ }, o.value, { onKeydown: [he(V(l, ["stop"]), ["enter"]), he(V(u, ["stop"]), ["esc"])] }), I(i.value), 17, Bt),
1472
+ e.editable ? (N(), E(S, { key: 0 }, [s.value ? (N(), E("span", {
1480
1473
  key: 1,
1481
1474
  "data-top-icon": "",
1482
1475
  class: "top-tagSelector_edit",
1483
- onClick: H(l, ["stop"])
1484
- })) : (P(), E("span", {
1476
+ onClick: V(l, ["stop"])
1477
+ })) : (N(), E("span", {
1485
1478
  key: 0,
1486
1479
  "data-top-icon": "",
1487
1480
  class: "top-tagSelector_edit",
@@ -1491,10 +1484,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1491
1484
  _: 1
1492
1485
  }, 8, ["class"]));
1493
1486
  }
1494
- }), Ut = { key: 1 }, Wt = /* @__PURE__ */ A({
1487
+ }), Ht = { key: 1 }, Ut = /* @__PURE__ */ A({
1495
1488
  inheritAttrs: !1,
1496
1489
  __name: "popupOpener",
1497
- props: /* @__PURE__ */ M({
1490
+ props: /*@__PURE__*/ j({
1498
1491
  modelValue: {},
1499
1492
  id: {},
1500
1493
  tags: {},
@@ -1510,7 +1503,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1510
1503
  }),
1511
1504
  emits: ["update:modelValue"],
1512
1505
  setup(e) {
1513
- let t = e, n = z(e, "modelValue"), i = t.useTopButton ? r : "div", a = t.useTopButton ? "html" : "default", o = {
1506
+ let t = e, n = R(e, "modelValue"), i = t.useTopButton ? r : "div", a = t.useTopButton ? "html" : "default", o = {
1514
1507
  model: n,
1515
1508
  mode: t.mode,
1516
1509
  targetId: t.targetId,
@@ -1518,9 +1511,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1518
1511
  payload: t.payload
1519
1512
  };
1520
1513
  return (r, s) => {
1521
- let c = le("top-data");
1522
- return P(), w(g, { id: e.id }, {
1523
- default: V(() => [pe((P(), w(ue(R(i)), re({
1514
+ let c = ue("top-data");
1515
+ return N(), w(g, { id: e.id }, {
1516
+ default: B(() => [me((N(), w(de(L(i)), ie({
1524
1517
  class: {
1525
1518
  "top-tagSelector": !0,
1526
1519
  "top-tagSelector-useTopButton": t.useTopButton,
@@ -1535,17 +1528,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1535
1528
  color: "theme",
1536
1529
  styling: e.styling
1537
1530
  }, r.$attrs), {
1538
- [R(a)]: V(() => [!n.value.length && e.mode === "filter" ? (P(), w(Bt, {
1531
+ [L(a)]: B(() => [!n.value.length && e.mode === "filter" ? (N(), w(Q, {
1539
1532
  key: 0,
1540
1533
  id: "all",
1541
1534
  colorId: "",
1542
1535
  name: r.$i18n.Common.All_tags ?? "",
1543
1536
  state: ""
1544
- }, null, 8, ["name"])) : T("", !0), e.mode === "setter" && e.filters ? (P(), E("div", Ut, [se(r.$slots, "default")])) : (P(!0), E(S, { key: 2 }, I(n.value, (t) => (P(), w(Bt, {
1545
- id: R(Z)(t),
1546
- colorId: R(Q)(t, e.tags)?.color_id ?? "",
1547
- name: R(Q)(t, e.tags)?.name ?? "",
1548
- state: R(Z)(t) === t ? "selected" : "excluded"
1537
+ }, null, 8, ["name"])) : T("", !0), e.mode === "setter" && e.filters ? (N(), E("div", Ht, [ce(r.$slots, "default")])) : (N(!0), E(S, { key: 2 }, F(n.value, (t) => (N(), w(Q, {
1538
+ id: L(Y)(t),
1539
+ colorId: L(X)(t, e.tags)?.color_id ?? "",
1540
+ name: L(X)(t, e.tags)?.name ?? "",
1541
+ state: L(Y)(t) === t ? "selected" : "excluded"
1549
1542
  }, null, 8, [
1550
1543
  "id",
1551
1544
  "colorId",
@@ -1562,9 +1555,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1562
1555
  }, 8, ["id"]);
1563
1556
  };
1564
1557
  }
1565
- }), Gt = /* @__PURE__ */ A({
1558
+ }), Wt = /* @__PURE__ */ A({
1566
1559
  __name: "tagSelector",
1567
- props: /* @__PURE__ */ M({
1560
+ props: /*@__PURE__*/ j({
1568
1561
  modelValue: {},
1569
1562
  tags: {},
1570
1563
  tagsEditable: { type: Boolean },
@@ -1585,20 +1578,20 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1585
1578
  }, {
1586
1579
  modelValue: { required: !0 },
1587
1580
  modelModifiers: {},
1588
- tags: { default: oe(Rt) },
1581
+ tags: { default: se(Rt) },
1589
1582
  tagsModifiers: {}
1590
1583
  }),
1591
- emits: /* @__PURE__ */ M([
1584
+ emits: /*@__PURE__*/ j([
1592
1585
  "selector",
1593
1586
  "setter",
1594
1587
  "tagsChanged"
1595
1588
  ], ["update:modelValue", "update:tags"]),
1596
1589
  setup(a, { emit: o }) {
1597
- let c = e(), l = a, u = z(a, "modelValue"), d = z(a, "tags"), f = o, p = n((e, t) => {
1590
+ let c = e(), l = a, u = R(a, "modelValue"), d = R(a, "tags"), f = o, p = n((e, t) => {
1598
1591
  f(e, t);
1599
1592
  }, l.emitDelay);
1600
1593
  l.singleMode && !u.value.length && (u.value = [d.value[0].id]);
1601
- let m = l.id ?? "top-popup-id-" + Math.random(), h = F("add"), g = () => {
1594
+ let m = l.id ?? "top-popup-id-" + Math.random(), h = P("add"), g = () => {
1602
1595
  let e = " " + c.Common.Tags?.toLowerCase(), t = /* @__PURE__ */ new Map();
1603
1596
  return t.set("add", {
1604
1597
  value: "add",
@@ -1610,14 +1603,14 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1610
1603
  value: "delete",
1611
1604
  title: c.Common.Delete + e
1612
1605
  }), t;
1613
- }, _ = de({
1606
+ }, _ = fe({
1614
1607
  model: u,
1615
1608
  mode: "filter",
1616
1609
  targetId: void 0,
1617
1610
  filters: void 0,
1618
1611
  payload: void 0
1619
1612
  });
1620
- B(u, () => {
1613
+ z(u, () => {
1621
1614
  p("selector", u.value);
1622
1615
  });
1623
1616
  let ee = C(() => {
@@ -1625,11 +1618,11 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1625
1618
  }), b = (e) => {
1626
1619
  if (e !== "all") {
1627
1620
  if (_.value.model.value.includes(e)) return "selected";
1628
- if (_.value.model.value.includes(Nt(e))) return "excluded";
1621
+ if (_.value.model.value.includes(Pt(e))) return "excluded";
1629
1622
  }
1630
1623
  return e === "all" && !_.value.model.value.length ? "selected" : "";
1631
1624
  }, x = (e, t) => {
1632
- let n = Nt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
1625
+ let n = Pt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
1633
1626
  t === "select" && r.push(e), t === "exclude" && r.push(n), _.value.mode === "setter" && _.value.targetId !== void 0 && l.requiredForSetter && (r.length || r.push("1"), r.length === 2 && _.value.model.value.length === 1 && _.value.model.value[0] === "1" && (r = r.filter((e) => e !== "1"))), l.singleMode && !_.value.filters && (r.length || (r = _.value.model.value), r.length > 1 && (r = [r[r.length - 1]])), r.sort((e, t) => l.tags ? l.tags.findIndex((t) => t.id === e) - l.tags.findIndex((e) => e.id === t) : 0), _.value.model.value = r, _.value.mode === "setter" && _.value.targetId !== void 0 && p("setter", {
1634
1627
  tagsIds: r,
1635
1628
  targetId: _.value.targetId,
@@ -1667,13 +1660,13 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1667
1660
  }), d.value.sort((e, t) => r.findIndex((t) => t === e.id) - r.findIndex((e) => e === t.id)), p("tagsChanged", d.value);
1668
1661
  }
1669
1662
  });
1670
- }, j = (e) => {
1663
+ }, re = (e) => {
1671
1664
  t.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
1672
1665
  };
1673
- return (e, t) => (P(), E(S, null, [k(Wt, {
1666
+ return (e, t) => (N(), E(S, null, [k(Ut, {
1674
1667
  modelValue: u.value,
1675
1668
  "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
1676
- id: R(m),
1669
+ id: L(m),
1677
1670
  tags: d.value,
1678
1671
  styling: a.styling,
1679
1672
  mode: "filter",
@@ -1685,35 +1678,35 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1685
1678
  "styling",
1686
1679
  "useTopButton"
1687
1680
  ]), k(y, {
1688
- id: R(m),
1689
- class: N(te.value),
1681
+ id: L(m),
1682
+ class: M(te.value),
1690
1683
  onOpen: t[4] ||= (e) => A(e),
1691
- onClose: t[5] ||= (e) => j(e),
1684
+ onClose: t[5] ||= (e) => re(e),
1692
1685
  "transition-duration": 50
1693
1686
  }, ne({
1694
- contentList: V(() => [
1695
- R(_).mode === "filter" && !a.singleMode ? (P(), w(Ht, {
1687
+ contentList: B(() => [
1688
+ L(_).mode === "filter" && !a.singleMode ? (N(), w(Vt, {
1696
1689
  key: 0,
1697
1690
  id: "all",
1698
1691
  colorId: "",
1699
1692
  name: e.$i18n.Common.All_tags ?? "",
1700
- state: R(_).model.value.length ? "" : "selected",
1701
- onSelect: t[3] ||= (e) => R(_).model.value = []
1693
+ state: L(_).model.value.length ? "" : "selected",
1694
+ onSelect: t[3] ||= (e) => L(_).model.value = []
1702
1695
  }, null, 8, ["name", "state"])) : T("", !0),
1703
- (P(!0), E(S, null, I(d.value, (e) => (P(), w(Ht, {
1696
+ (N(!0), E(S, null, F(d.value, (e) => (N(), w(Vt, {
1704
1697
  key: e.id,
1705
1698
  id: e.id,
1706
1699
  colorId: e.color_id,
1707
1700
  name: e.name,
1708
1701
  state: b(e.id),
1709
- canExclude: R(_).mode === "filter" && !a.singleMode,
1702
+ canExclude: L(_).mode === "filter" && !a.singleMode,
1710
1703
  editable: a.tagsEditable,
1711
1704
  disabled: ee.value && b(e.id) === "",
1712
1705
  onUnselect: (t) => x(e.id, "unselect"),
1713
1706
  onSelect: (t) => x(e.id, "select"),
1714
1707
  onExclude: (t) => x(e.id, "exclude"),
1715
1708
  "onUpdate:name": (t) => {
1716
- e.name = t, R(p)("tagsChanged", d.value);
1709
+ e.name = t, L(p)("tagsChanged", d.value);
1717
1710
  }
1718
1711
  }, null, 8, [
1719
1712
  "id",
@@ -1728,36 +1721,36 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1728
1721
  "onExclude",
1729
1722
  "onUpdate:name"
1730
1723
  ]))), 128)),
1731
- a.tagsEditable && d.value.length < a.tagsMax && d.value.length < 20 ? (P(), w(v, {
1724
+ a.tagsEditable && d.value.length < a.tagsMax && d.value.length < 20 ? (N(), w(v, {
1732
1725
  key: 1,
1733
1726
  "data-top-icon": "",
1734
- onClick: H(D, ["stop"])
1727
+ onClick: V(D, ["stop"])
1735
1728
  }, {
1736
- default: V(() => [O(L(e.$i18n.Common.Add), 1)]),
1729
+ default: B(() => [O(I(e.$i18n.Common.Add), 1)]),
1737
1730
  _: 1
1738
1731
  })) : T("", !0)
1739
1732
  ]),
1740
1733
  _: 2
1741
- }, [R(_).mode === "setter" && R(_).filters ? {
1734
+ }, [L(_).mode === "setter" && L(_).filters ? {
1742
1735
  name: "header",
1743
- fn: V(() => [k(i, {
1736
+ fn: B(() => [k(i, {
1744
1737
  modelValue: h.value,
1745
1738
  "onUpdate:modelValue": t[1] ||= (e) => h.value = e,
1746
1739
  options: g()
1747
1740
  }, null, 8, ["modelValue", "options"])]),
1748
1741
  key: "0"
1749
- } : void 0, R(_).mode === "setter" && R(_).filters ? {
1742
+ } : void 0, L(_).mode === "setter" && L(_).filters ? {
1750
1743
  name: "footer",
1751
- fn: V(() => [k(r, { color: "theme" }, {
1752
- default: V(() => [O(L(e.$i18n.Common.Cancel), 1)]),
1744
+ fn: B(() => [k(r, { color: "theme" }, {
1745
+ default: B(() => [O(I(e.$i18n.Common.Cancel), 1)]),
1753
1746
  _: 1
1754
- }), k(r, { onClick: t[2] ||= (e) => R(p)("setter", {
1755
- tagsIds: R(_).model.value,
1756
- filters: R(_).filters,
1747
+ }), k(r, { onClick: t[2] ||= (e) => L(p)("setter", {
1748
+ tagsIds: L(_).model.value,
1749
+ filters: L(_).filters,
1757
1750
  filtersAction: h.value,
1758
- payload: R(_).payload
1751
+ payload: L(_).payload
1759
1752
  }) }, {
1760
- default: V(() => [O(L(h.value === "add" ? e.$i18n.Common.Add : "") + " " + L(h.value === "replace" ? e.$i18n.Common.Replace : "") + " " + L(h.value === "delete" ? e.$i18n.Common.Delete : ""), 1)]),
1753
+ default: B(() => [O(I(h.value === "add" ? e.$i18n.Common.Add : "") + " " + I(h.value === "replace" ? e.$i18n.Common.Replace : "") + " " + I(h.value === "delete" ? e.$i18n.Common.Delete : ""), 1)]),
1761
1754
  _: 1
1762
1755
  })]),
1763
1756
  key: "1"
@@ -1765,6 +1758,6 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1765
1758
  }
1766
1759
  });
1767
1760
  //#endregion
1768
- export { _e as TopCompetitorSelector, nt as TopGroupSelector, Mt as TopProjectSelector, Ie as TopRegionSelector, Gt as TopTagSelector, Wt as TopTagSelectorPopupOpener, Bt as TopTagSelectorTagIcon, Tt as clearCache, je as dialogRegionSelector, Ae as findRegion, Pt as genElTopTagSelectorPopupOpener, De as genSearcherByKey, Ft as renderElTopTagSelectorPopupOpener, ve as useItemsFromCompetitors };
1761
+ export { ve as TopCompetitorSelector, rt as TopGroupSelector, Nt as TopProjectSelector, Le as TopRegionSelector, Wt as TopTagSelector, Ut as TopTagSelectorPopupOpener, Q as TopTagSelectorTagIcon, Et as clearCache, Me as dialogRegionSelector, je as findRegion, Ft as genElTopTagSelectorPopupOpener, Oe as genSearcherByKey, It as renderElTopTagSelectorPopupOpener, ye as useItemsFromCompetitors };
1769
1762
 
1770
1763
  //# sourceMappingURL=project.js.map