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

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 (337) 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-Dy7EHtJS.amd.js +2 -0
  30. package/.chunks/formsExt-Dy7EHtJS.amd.js.map +1 -0
  31. package/.chunks/{formsExt-Ck5q-jXI.esm.js → formsExt-Dy7EHtJS.esm.js} +192 -164
  32. package/.chunks/formsExt-Dy7EHtJS.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 +368 -373
  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 +22 -4
  135. package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
  136. package/src/components/formsExt/selector2/types.d.ts +9 -0
  137. package/src/components/project/groupSelector/folders/utils.d.ts +1 -0
  138. package/src/components/project/groupSelector/groups/types.d.ts +5 -2
  139. package/src/components/project/groupSelector/stories/mocks/groups.d.ts +4 -0
  140. package/src/components/project/groupSelector/stories/mocks/index.d.ts +2 -1
  141. package/src/components/project/groupSelector/types.d.ts +6 -0
  142. package/src/components/project/projectSelector/cache.d.ts +5 -3
  143. package/src/components/project/projectSelector/stories/mocks/index.d.ts +5 -0
  144. package/src/components/project/projectSelector/stories/mocks/projects.d.ts +3 -0
  145. package/src/components/project/projectSelector/utils.d.ts +1 -1
  146. package/src/components/project/regionSelector/utils/utils.d.ts +2 -5
  147. package/src/core/core/core.d.ts +7 -4
  148. package/src/core/core/options.d.ts +6 -0
  149. package/src/core/core/state.d.ts +3 -0
  150. package/src/core/plugins/core.d.ts +4 -5
  151. package/src/core/utils/composables/useEnteties.d.ts +94 -0
  152. package/tabs/tabs.amd.js +1 -1
  153. package/tabs/tabs.amd.js.map +1 -1
  154. package/tabs/tabs.d.ts +1 -1
  155. package/tabs/tabs.js +1 -1
  156. package/tabs/tabs.js.map +1 -1
  157. package/tabsView/tabsView.amd.js +1 -1
  158. package/tabsView/tabsView.amd.js.map +1 -1
  159. package/tabsView/tabsView.d.ts +1 -1
  160. package/tabsView/tabsView.js +6 -6
  161. package/tabsView/tabsView.js.map +1 -1
  162. package/utils/check.amd.js +1 -1
  163. package/utils/check.amd.js.map +1 -1
  164. package/utils/check.d.ts +1 -1
  165. package/utils/check.js.map +1 -1
  166. package/utils/clipboard.amd.js +1 -1
  167. package/utils/clipboard.amd.js.map +1 -1
  168. package/utils/clipboard.d.ts +1 -1
  169. package/utils/clipboard.js +1 -1
  170. package/utils/clipboard.js.map +1 -1
  171. package/utils/date.amd.js +1 -1
  172. package/utils/date.amd.js.map +1 -1
  173. package/utils/date.d.ts +1 -1
  174. package/utils/date.js +1 -1
  175. package/utils/device.amd.js +1 -1
  176. package/utils/device.amd.js.map +1 -1
  177. package/utils/device.d.ts +1 -1
  178. package/utils/device.js +1 -1
  179. package/utils/dom.amd.js +1 -1
  180. package/utils/dom.amd.js.map +1 -1
  181. package/utils/dom.d.ts +3 -3
  182. package/utils/dom.js.map +1 -1
  183. package/utils/image.amd.js +1 -1
  184. package/utils/image.amd.js.map +1 -1
  185. package/utils/image.d.ts +1 -1
  186. package/utils/image.js +1 -1
  187. package/utils/image.js.map +1 -1
  188. package/utils/keyboard.amd.js +1 -1
  189. package/utils/keyboard.amd.js.map +1 -1
  190. package/utils/keyboard.d.ts +1 -1
  191. package/utils/keyboard.js.map +1 -1
  192. package/utils/lodash.amd.js +1 -1
  193. package/utils/lodash.amd.js.map +1 -1
  194. package/utils/lodash.d.ts +1 -1
  195. package/utils/lodash.js +1 -1
  196. package/utils/number.amd.js +1 -1
  197. package/utils/number.amd.js.map +1 -1
  198. package/utils/number.d.ts +1 -1
  199. package/utils/number.js.map +1 -1
  200. package/utils/price.amd.js +1 -1
  201. package/utils/price.amd.js.map +1 -1
  202. package/utils/price.d.ts +1 -1
  203. package/utils/price.js +1 -1
  204. package/utils/price.js.map +1 -1
  205. package/utils/route.amd.js +1 -1
  206. package/utils/route.amd.js.map +1 -1
  207. package/utils/route.d.ts +1 -1
  208. package/utils/route.js.map +1 -1
  209. package/utils/scroll.amd.js +1 -1
  210. package/utils/scroll.amd.js.map +1 -1
  211. package/utils/scroll.d.ts +1 -1
  212. package/utils/scroll.js.map +1 -1
  213. package/utils/searchers.amd.js +1 -1
  214. package/utils/searchers.amd.js.map +1 -1
  215. package/utils/searchers.d.ts +1 -1
  216. package/utils/searchers.js +1 -1
  217. package/utils/searchers.js.map +1 -1
  218. package/utils/store.amd.js +1 -1
  219. package/utils/store.amd.js.map +1 -1
  220. package/utils/store.d.ts +1 -1
  221. package/utils/store.js +1 -1
  222. package/utils/string.amd.js +1 -1
  223. package/utils/string.amd.js.map +1 -1
  224. package/utils/string.d.ts +1 -1
  225. package/utils/string.js +1 -1
  226. package/utils/string.js.map +1 -1
  227. package/utils/system.amd.js +1 -1
  228. package/utils/system.amd.js.map +1 -1
  229. package/utils/system.d.ts +1 -1
  230. package/utils/system.js.map +1 -1
  231. package/utils/url.amd.js +1 -1
  232. package/utils/url.amd.js.map +1 -1
  233. package/utils/url.d.ts +1 -1
  234. package/utils/url.js +1 -1
  235. package/utils/url.js.map +1 -1
  236. package/.chunks/api-DuS0Qura.amd.js.map +0 -1
  237. package/.chunks/app-BXCICBAa.amd.js +0 -2
  238. package/.chunks/app-BXCICBAa.amd.js.map +0 -1
  239. package/.chunks/app-BXCICBAa.esm.js.map +0 -1
  240. package/.chunks/datepicker-BnBQNlTc.amd.js.map +0 -1
  241. package/.chunks/dialog-BPUICFiG.amd.js +0 -2
  242. package/.chunks/dialog-BPUICFiG.amd.js.map +0 -1
  243. package/.chunks/dialog_regionSelectorRegions-BKvg82IO.amd.js +0 -2
  244. package/.chunks/dialog_regionSelectorRegions-BKvg82IO.amd.js.map +0 -1
  245. package/.chunks/dialogs-CbMNuvfF.amd.js +0 -2
  246. package/.chunks/dialogs-CbMNuvfF.amd.js.map +0 -1
  247. package/.chunks/dialogs-CbMNuvfF.esm.js.map +0 -1
  248. package/.chunks/field-CjkpGeA7.amd.js.map +0 -1
  249. package/.chunks/forms-CdCS6WAQ.amd.js +0 -2
  250. package/.chunks/forms-CdCS6WAQ.amd.js.map +0 -1
  251. package/.chunks/forms-CdCS6WAQ.esm.js.map +0 -1
  252. package/.chunks/formsExt-Ck5q-jXI.amd.js +0 -2
  253. package/.chunks/formsExt-Ck5q-jXI.amd.js.map +0 -1
  254. package/.chunks/formsExt-Ck5q-jXI.esm.js.map +0 -1
  255. package/.chunks/lazy-CGswTOPj.amd.js +0 -2
  256. package/.chunks/lazy-CGswTOPj.amd.js.map +0 -1
  257. package/.chunks/lazy-CGswTOPj.esm.js +0 -68
  258. package/.chunks/mocker-CwZe-g4N.amd.js.map +0 -1
  259. package/.chunks/notice-DA4p-RwX.amd.js.map +0 -1
  260. package/.chunks/popup-CN7-bnQJ.amd.js.map +0 -1
  261. package/.chunks/popup-DHCqvZzI.amd.js.map +0 -1
  262. package/.chunks/punycode.es6-B-5kB2YI.amd.js +0 -2
  263. package/.chunks/punycode.es6-B-5kB2YI.amd.js.map +0 -1
  264. package/.chunks/store-DuQpSSLL.amd.js.map +0 -1
  265. package/.chunks/utils-DrvuXyXl.amd.js +0 -2
  266. package/.chunks/utils-DrvuXyXl.amd.js.map +0 -1
  267. package/.chunks/utils-DrvuXyXl.esm.js +0 -43
  268. package/.chunks/utils-DrvuXyXl.esm.js.map +0 -1
  269. package/.chunks/utils-lidKtVjF.amd.js +0 -2
  270. package/.chunks/utils-lidKtVjF.amd.js.map +0 -1
  271. package/.chunks/worker-spLieexQ.amd.js.map +0 -1
  272. package/src/components/charts/miniChart/miniChart.vue.d.ts +0 -15
  273. package/src/components/charts/miniCharts/miniCharts.vue.d.ts +0 -32
  274. package/src/components/core/notice/item/item.vue.d.ts +0 -10
  275. package/src/components/core/notice/notice.vue.d.ts +0 -5
  276. package/src/components/dialog/dialog/dialog.vue.d.ts +0 -28
  277. package/src/components/dialog/dialog/dialogs/dialogs.vue.d.ts +0 -13
  278. package/src/components/dialog/dialog/page/page.vue.d.ts +0 -19
  279. package/src/components/dialog/dialog/pageComponent/pageComponent.vue.d.ts +0 -6
  280. package/src/components/extra/rive/rive.vue.d.ts +0 -11
  281. package/src/components/forms/avatar/avatar.vue.d.ts +0 -10
  282. package/src/components/forms/button/button.vue.d.ts +0 -21
  283. package/src/components/forms/caption/caption.vue.d.ts +0 -17
  284. package/src/components/forms/checkbox/checkbox.vue.d.ts +0 -27
  285. package/src/components/forms/controlLabel/controlLabel.vue.d.ts +0 -19
  286. package/src/components/forms/hint/hint.vue.d.ts +0 -4
  287. package/src/components/forms/input/input.vue.d.ts +0 -25
  288. package/src/components/forms/inputDate/inputDate.vue.d.ts +0 -12
  289. package/src/components/forms/inputRange/inputRange.vue.d.ts +0 -19
  290. package/src/components/forms/loadbar/loadbar.vue.d.ts +0 -3
  291. package/src/components/forms/preloader/preloader.vue.d.ts +0 -4
  292. package/src/components/forms/radio/radio.vue.d.ts +0 -23
  293. package/src/components/forms/select/select.vue.d.ts +0 -30
  294. package/src/components/forms/switcher/switcher.vue.d.ts +0 -23
  295. package/src/components/forms/textarea/textarea.vue.d.ts +0 -12
  296. package/src/components/formsExt/checkboxGroup/checkboxGroup.vue.d.ts +0 -27
  297. package/src/components/formsExt/editArea/editArea.vue.d.ts +0 -31
  298. package/src/components/formsExt/editInput/editInput.vue.d.ts +0 -23
  299. package/src/components/formsExt/info/info.vue.d.ts +0 -20
  300. package/src/components/formsExt/libs/optionGroup/optionGroup.vue.d.ts +0 -16
  301. package/src/components/formsExt/menu/menu.vue.d.ts +0 -16
  302. package/src/components/formsExt/policy/policy.vue.d.ts +0 -8
  303. package/src/components/formsExt/radioGroup/radioGroup.vue.d.ts +0 -27
  304. package/src/components/formsExt/selector2/itemMulti.vue.d.ts +0 -8
  305. package/src/components/formsExt/selector2/selector2.vue.d.ts +0 -62
  306. package/src/components/layout/islandRows/islandRows.vue.d.ts +0 -17
  307. package/src/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +0 -18
  308. package/src/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +0 -18
  309. package/src/components/layout/rows/rows.vue.d.ts +0 -21
  310. package/src/components/popup/popup/listItem.vue.d.ts +0 -25
  311. package/src/components/popup/popup/opener/opener.vue.d.ts +0 -17
  312. package/src/components/popup/popup/popup.vue.d.ts +0 -38
  313. package/src/components/popup/popup/widgetInput/widgetInput.vue.d.ts +0 -17
  314. package/src/components/popup/popupAlert/popupAlert.vue.d.ts +0 -25
  315. package/src/components/popup/popupConfirm/popupConfirm.vue.d.ts +0 -26
  316. package/src/components/popup/popupHint/popupHint.vue.d.ts +0 -17
  317. package/src/components/popup/popupPrompt/popupPrompt.vue.d.ts +0 -26
  318. package/src/components/project/competitorSelector/competitorSelector.vue.d.ts +0 -14
  319. package/src/components/project/groupSelector/folders/folders.vue.d.ts +0 -18
  320. package/src/components/project/groupSelector/groupSelector.vue.d.ts +0 -205
  321. package/src/components/project/groupSelector/groups/groups.vue.d.ts +0 -146
  322. package/src/components/project/projectSelector/projectSelector.vue.d.ts +0 -132
  323. package/src/components/project/projectSelector/submenu/submenu.vue.d.ts +0 -4
  324. package/src/components/project/regionSelector/dialog_regionSelectorRegions/dialog_regionSelectorRegions.vue.d.ts +0 -6
  325. package/src/components/project/regionSelector/regionSelector.vue.d.ts +0 -23
  326. package/src/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +0 -20
  327. package/src/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +0 -27
  328. package/src/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +0 -4
  329. package/src/components/project/tagSelector/tagSelector.vue.d.ts +0 -38
  330. package/src/components/tabs/tabs/content.vue.d.ts +0 -19
  331. package/src/components/tabs/tabs/tab.vue.d.ts +0 -19
  332. package/src/components/tabs/tabs/tabs.vue.d.ts +0 -21
  333. package/src/components/tabsView/tabsView/menu.vue.d.ts +0 -28
  334. package/src/components/tabsView/tabsView/menuDelimeter.vue.d.ts +0 -3
  335. package/src/components/tabsView/tabsView/menuItem.vue.d.ts +0 -23
  336. package/src/components/tabsView/tabsView/menuTitle.vue.d.ts +0 -20
  337. 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-Dy7EHtJS.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,20 @@ 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) => (t.canSelectAll && e[0]?.id === 0 && (e[0] = {
535
+ ...e[0],
536
+ name: Re(!0)
537
+ }), e);
538
+ return Ve({
536
539
  modelFolder: r,
537
540
  modelFolderId: n
538
541
  }, async (e) => {
@@ -542,20 +545,21 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
542
545
  return;
543
546
  }
544
547
  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, {
548
+ i ||= U, r.value = i, n.value = i.id;
549
+ }, { immediate: !0 }), (t, n) => (N(), w(x, {
547
550
  class: "top-groupSelector_folder",
548
551
  modelValue: r.value,
549
552
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
550
553
  items: e.folders ? [...o.value.values()] : void 0,
551
554
  "search-type": "inline",
552
555
  icon: e.addIcon ? "" : void 0,
553
- api: e.folders ? void 0 : R(i),
554
- apiSetSearchParams: (...e) => R(te)(...e, "name"),
556
+ api: e.folders ? void 0 : L(i),
557
+ apiSetSearchParams: (...e) => L(te)(...e, "name"),
558
+ prepareItemsBeforeRender: s,
555
559
  addChanger: e.addChanger,
556
560
  useCache: ""
557
561
  }, {
558
- item: V(({ item: e }) => [D("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, Ve)]),
562
+ item: B(({ item: e }) => [D("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, He)]),
559
563
  _: 1
560
564
  }, 8, [
561
565
  "modelValue",
@@ -566,17 +570,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
566
570
  "addChanger"
567
571
  ]));
568
572
  }
569
- }), G = {
573
+ }), W = {
570
574
  id: -1,
571
575
  name: "--",
572
- folder_id: W.id,
573
- folder_path: W.path
574
- }, K = {
576
+ folder_id: U.id,
577
+ folder_path: U.path
578
+ }, G = {
575
579
  id: 0,
576
580
  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/`, [
581
+ folder_id: U.id,
582
+ folder_path: U.path
583
+ }, 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
584
  "id",
581
585
  "name",
582
586
  "folder_id",
@@ -584,12 +588,12 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
584
588
  ]).changeParams({
585
589
  folder_id_depth: !0,
586
590
  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 = {
591
+ }), 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
592
  key: 0,
589
593
  class: "top-comment"
590
- }, Ze = ["innerHTML"], Qe = ["innerHTML"], $e = ["innerHTML"], et = /* @__PURE__ */ A({
594
+ }, Qe = ["innerHTML"], $e = ["innerHTML"], et = ["innerHTML"], tt = /* @__PURE__ */ A({
591
595
  __name: "groups",
592
- props: /* @__PURE__ */ M({
596
+ props: /*@__PURE__*/ j({
593
597
  groupId: {},
594
598
  group: {},
595
599
  projectId: {},
@@ -620,13 +624,13 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
620
624
  group: { required: !0 },
621
625
  groupModifiers: {}
622
626
  }),
623
- emits: /* @__PURE__ */ M([
627
+ emits: /*@__PURE__*/ j([
624
628
  "addGroup",
625
629
  "editGroup",
626
630
  "delGroup"
627
631
  ], ["update:groupId", "update:group"]),
628
632
  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]);
633
+ 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
634
  c?.changeParams({
631
635
  project_id: r.projectId,
632
636
  folder_id_depth: !0,
@@ -636,43 +640,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
636
640
  s.value = e, a.value = e.id;
637
641
  }, g = (e = !1) => {
638
642
  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
643
  };
666
- Be({
644
+ Ve({
667
645
  projectId: () => r.projectId,
668
646
  folderId: () => r.folder?.id,
669
647
  canSelectAll: () => r.canSelectAll
670
648
  }, (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) {
649
+ 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
650
  let e;
673
- r.autoselect === "first" && (e = p.value?.[0], r.canSelectAll && (e = oe(q()))), (r.autoselect === "placeholder" || !e) && (e = Ue()), h(e);
651
+ r.autoselect === "first" && (e = p.value?.[0], r.canSelectAll && (e = se(K()))), (r.autoselect === "placeholder" || !e) && (e = We()), h(e);
674
652
  }
675
- }, { immediate: !0 }), Be({
653
+ }, { immediate: !0 }), Ve({
676
654
  modelGroup: s,
677
655
  modelGroupId: a
678
656
  }, async (e) => {
@@ -681,15 +659,35 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
681
659
  a.value = s.value.id;
682
660
  return;
683
661
  }
684
- r.canAdd && a.value === null || await b();
662
+ if (!(r.canAdd && a.value === null)) {
663
+ if (r.groups) {
664
+ let e = p.value?.find((e) => e.id === a.value);
665
+ if (!e && r.canSelectAll && (e = K()), e) h(e);
666
+ else {
667
+ let e = p.value?.[0];
668
+ e && !a.value ? h(e) : h(W);
669
+ }
670
+ }
671
+ if (r.client && !r.groups && (a.value || a.value === 0 && !r.canSelectAll)) {
672
+ let e = Ke(r.client, r.service).changeParams({
673
+ project_id: r.projectId,
674
+ id: a.value,
675
+ filters: [m]
676
+ });
677
+ e?.setOptions({ checkFingerprint: "TopGroupSelectorFindGroup:" + r.projectId });
678
+ let t = await e.call();
679
+ if (!t.errors?.length && !t.result) return;
680
+ !t.errors && t.result[0] ? h(t.result[0]) : h(W);
681
+ }
682
+ }
685
683
  }
686
684
  }, { immediate: !0 });
687
- let O = async (e) => {
685
+ let v = async (e) => {
688
686
  if (r.canAdd !== "api" || !l) return;
689
687
  let t = s.value, n = await l.changeParams({
690
688
  project_id: r.projectId,
691
689
  names: [e.name],
692
- to_id: r.folder?.id ?? W.id,
690
+ to_id: r.folder?.id ?? U.id,
693
691
  to_type: "in_folder_last"
694
692
  }).call();
695
693
  if (n.result) {
@@ -697,25 +695,22 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
697
695
  h(e), i("addGroup", e);
698
696
  } else h(t);
699
697
  f.value?.resetCache(!0);
700
- }, A = async (e, t) => {
698
+ }, y = async (e, t) => {
701
699
  d && ((await d.changeParams({
702
700
  project_id: r.projectId,
703
701
  id: e.id,
704
702
  name: t
705
- }).call()).errors || (s.value.id === e.id && h({
706
- ...s.value,
707
- name: t
708
- }), i("editGroup", {
709
- ...e,
703
+ }).call()).errors || (s.value.id === e.id && (s.value.name = t), i("editGroup", {
704
+ id: e.id,
710
705
  name: t
711
- }), f.value?.updateItemById(e.id, { name: t })));
712
- }, j = async (e) => {
706
+ }), f.value?.updateCacheItemById(e.id, { name: t })));
707
+ }, b = async (e) => {
713
708
  u && ((await u.changeParams({
714
709
  project_id: r.projectId,
715
710
  id: e.id
716
- }).call()).errors || (s.value.id === e.id && y(), i("delGroup", e), f.value?.deleteItemById(e.id)));
711
+ }).call()).errors || (s.value.id === e.id && h(r.canSelectAll ? K() : W), i("delGroup", e.id), f.value?.deleteCacheItemById(e.id)));
717
712
  };
718
- return t({ reload: C }), (t, n) => (P(), w(x, {
713
+ return t({ resetCacheGroups: g }), (t, n) => (N(), w(x, {
719
714
  ref_key: "refSelector",
720
715
  ref: f,
721
716
  class: "top-groupSelector_group",
@@ -724,37 +719,37 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
724
719
  items: p.value ?? e.groups,
725
720
  searchType: "inline",
726
721
  icon: e.addIcon ? "" : void 0,
727
- api: e.groups ? void 0 : R(c),
728
- apiSetSearchParams: (...e) => R(te)(...e, "name"),
722
+ api: e.groups ? void 0 : L(c),
723
+ apiSetSearchParams: (...e) => L(te)(...e, "name"),
729
724
  appendSearchToResult: !!e.canAdd,
730
- useAllItem: e.canSelectAll ? R(q)().name : !1,
725
+ useAllItem: e.canSelectAll ? L(K)().name : !1,
731
726
  addChanger: e.addChanger,
732
727
  useCache: "",
733
- onAppendItem: O
728
+ onAppendItem: v
734
729
  }, 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),
730
+ item: B(({ item: n }) => [D("div", Xe, [
731
+ n.id === L(null) ? (N(), E("div", Ze, I(t.$i18n.Common.Add) + ": ", 1)) : T("", !0),
737
732
  D("span", {
738
733
  class: "top-groupSelector_groupItemName top-ellipsis1",
739
734
  innerHTML: n.name
740
- }, null, 8, Ze),
741
- n.folder_path && e.showPath ? (P(), E("span", {
735
+ }, null, 8, Qe),
736
+ n.folder_path && e.showPath ? (N(), E("span", {
742
737
  key: 1,
743
738
  class: "top-groupSelector_groupItemFolderPath top-ellipsis1",
744
739
  innerHTML: n.folder_path
745
- }, null, 8, Qe)) : T("", !0)
740
+ }, null, 8, $e)) : T("", !0)
746
741
  ])]),
747
742
  _: 2
748
743
  }, [e.canEditAndDel && e.client ? {
749
744
  name: "actions",
750
- fn: V(({ item: r }) => [r.id ? (P(), E(S, { key: 0 }, [k(_, {
745
+ fn: B(({ item: r }) => [r.id ? (N(), E(S, { key: 0 }, [k(_, {
751
746
  submitText: t.$i18n.Common.Save,
752
747
  defaultValue: r.name,
753
748
  inputProps: { addCleaner: !1 },
754
- onSubmit: (e) => A(r, e)
749
+ onSubmit: (e) => y(r, e)
755
750
  }, {
756
- opener: V(() => [...n[1] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
757
- default: V(() => [...n[2] ||= []]),
751
+ opener: B(() => [...n[1] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
752
+ default: B(() => [...n[2] ||= []]),
758
753
  _: 1
759
754
  }, 8, [
760
755
  "submitText",
@@ -763,10 +758,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
763
758
  ]), k(ee, {
764
759
  isWarning: "",
765
760
  submitText: t.$i18n.Common.Delete,
766
- onSubmit: (e) => j(r)
761
+ onSubmit: (e) => b(r)
767
762
  }, {
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)]),
763
+ opener: B(() => [...n[3] ||= [D("div", { "data-top-icon": "" }, null, -1)]]),
764
+ 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
765
  _: 1
771
766
  }, 8, ["submitText", "onSubmit"])], 64)) : T("", !0)]),
772
767
  key: "0"
@@ -781,9 +776,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
781
776
  "addChanger"
782
777
  ]));
783
778
  }
784
- }), tt = { class: "top-groupSelector" }, nt = /* @__PURE__ */ A({
779
+ }), nt = { class: "top-groupSelector" }, rt = /* @__PURE__ */ A({
785
780
  __name: "groupSelector",
786
- props: /* @__PURE__ */ M({
781
+ props: /*@__PURE__*/ j({
787
782
  folderId: {},
788
783
  folder: {},
789
784
  groupId: {},
@@ -814,6 +809,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
814
809
  type: Boolean,
815
810
  default: !0
816
811
  },
812
+ showGroupsPaths: { type: Boolean },
817
813
  addIcon: {
818
814
  type: Boolean,
819
815
  default: !0
@@ -827,20 +823,20 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
827
823
  folderModifiers: {},
828
824
  groupId: { required: !0 },
829
825
  groupIdModifiers: {},
830
- group: { default: G },
826
+ group: { default: W },
831
827
  groupModifiers: {}
832
828
  }),
833
- emits: /* @__PURE__ */ M(["update:groups"], [
829
+ emits: /*@__PURE__*/ j(["update:groups"], [
834
830
  "update:folderId",
835
831
  "update:folder",
836
832
  "update:groupId",
837
833
  "update:group"
838
834
  ]),
839
835
  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);
836
+ let r = e, i = P(null), a = R(e, "folderId"), o = R(e, "folder"), s = R(e, "groupId"), c = R(e, "group"), l = n;
837
+ o.value = ze(r.folders ?? { root: [U] }, r.canSelectAllGroups).get(a.value);
842
838
  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;
839
+ s.value || (u = r.groups?.[0]), r.canSelectAllGroups && !u && (u = K()), (r.autoselect === "placeholder" || !u) && (u = We()), u ??= W, c.value = u;
844
840
  let d = (e) => {
845
841
  let t;
846
842
  r.groups && e && (t = [...r.groups, e]), l("update:groups", t);
@@ -857,9 +853,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
857
853
  }
858
854
  l("update:groups", r.groups.filter((t) => t.id !== e.id));
859
855
  };
860
- return t({ reloadGroups: async () => {
861
- await i.value?.reload();
862
- } }), (t, n) => (P(), E("div", tt, [e.showFolders ? (P(), w(He, {
856
+ return t({ resetCacheGroups: (e = !1) => {
857
+ i.value?.resetCacheGroups(e);
858
+ } }), (t, n) => (N(), E("div", nt, [e.showFolders ? (N(), w(Ue, {
863
859
  key: 0,
864
860
  folderId: a.value,
865
861
  "onUpdate:folderId": n[0] ||= (e) => a.value = e,
@@ -871,7 +867,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
871
867
  addChanger: e.addChanger,
872
868
  addIcon: e.addIcon,
873
869
  client: e.client,
874
- service: e.service
870
+ service: r.service
875
871
  }, null, 8, [
876
872
  "folderId",
877
873
  "folder",
@@ -882,7 +878,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
882
878
  "addIcon",
883
879
  "client",
884
880
  "service"
885
- ])) : T("", !0), e.showGroups ? (P(), w(et, {
881
+ ])) : T("", !0), e.showGroups ? (N(), w(tt, {
886
882
  key: 1,
887
883
  ref_key: "componentGroupsRef",
888
884
  ref: i,
@@ -899,10 +895,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
899
895
  canSelectAll: e.canSelectAllGroups,
900
896
  autoselect: e.autoselect,
901
897
  addChanger: e.addChanger,
902
- showPath: e.showFolders && !!e.folders?.[0],
898
+ showPath: e.showGroupsPaths || e.showFolders,
903
899
  addIcon: e.addIcon,
904
900
  client: e.client,
905
- service: e.service,
901
+ service: r.service,
906
902
  onAddGroup: d,
907
903
  onEditGroup: f,
908
904
  onDelGroup: p
@@ -924,39 +920,39 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
924
920
  "service"
925
921
  ])) : T("", !0)]));
926
922
  }
927
- }), rt = (e) => ({
923
+ }), it = (e) => ({
928
924
  id: null,
929
925
  name: e,
930
926
  listItemProps: { type: "title" }
931
- }), it = {
927
+ }), at = {
932
928
  scheduledUpdate: !1,
933
929
  manualUpdate: !1,
934
930
  guestProjects: !1
935
- }, at = (t, n) => {
931
+ }, ot = (t, n) => {
936
932
  let r = [], i = {
937
- scheduledUpdate: rt(e().Projects.Scheduled_update),
938
- manualUpdate: rt(e().Projects.Manual_update),
939
- guestProjects: rt(e().Projects.Guest_projects)
933
+ scheduledUpdate: it(e().Projects.Scheduled_update),
934
+ manualUpdate: it(e().Projects.Manual_update),
935
+ guestProjects: it(e().Projects.Guest_projects)
940
936
  }, a = n ? {
941
937
  scheduledUpdate: !1,
942
938
  manualUpdate: !1,
943
939
  guestProjects: !1
944
- } : it;
940
+ } : at;
945
941
  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
942
  return r;
947
- }, ot = (e) => e.map((e) => ({
943
+ }, st = (e) => e.map((e) => ({
948
944
  ...e,
949
945
  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) => {
946
+ })), ct = (e, t, n) => !e || e.length === 0 ? [] : (t && Object.keys(at).forEach((e) => at[e] = !1), ot(st(e), n)), lt = (e) => {
951
947
  e = e.replace(/#.*/, "");
952
948
  let t = location.hash;
953
949
  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) => {
950
+ }, ut = (e, t) => {
955
951
  t && t.target instanceof HTMLElement && c.close(t.target.closest(".top-popup-wrapper"));
956
- let n = ct(e);
952
+ let n = lt(e);
957
953
  location.href = n;
958
- }, ut = (e) => {
959
- let t = dt(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
954
+ }, dt = (e) => {
955
+ let t = ft(), n = location.pathname.split("/"), r = "project/dynamics/", i = "";
960
956
  return n[1] == "project" && (r = n[1] + "/" + n[2] + "/"), n[2] == "settings" && (i = location.hash), [
961
957
  "watcher",
962
958
  "indexing",
@@ -965,16 +961,16 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
965
961
  "direct",
966
962
  "adwords"
967
963
  ].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) => {
964
+ }, ft = () => window.page?.subdomain ? window.location.host.replace(window.page?.subdomain + ".", "") : window.location.host, pt = (e) => {
969
965
  let t = e.startsWith("http") ? e : "http://" + e;
970
966
  return t = t.replace(/"/g, "%22"), t;
971
- }, pt = (e, t) => {
967
+ }, mt = (e, t) => {
972
968
  let n = e.params.filters ?? [];
973
969
  n = n.filter((e) => e.name !== "GEN_SEARCH_STRING()");
974
970
  let r = h(t), i = t.replace(/([[^$.|?*+()])/g, "\\$1"), a = r.replace(/([[^$.|?*+()])/g, "\\$1");
975
971
  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/", [
972
+ }, ht = (e) => {
973
+ let n = e.gen("/get/projects_2/projects/", [
978
974
  "id",
979
975
  "user_id",
980
976
  "name",
@@ -982,25 +978,24 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
982
978
  "on",
983
979
  "right"
984
980
  ]);
985
- return r.params = {
986
- ...n,
981
+ return n.changeParams({
987
982
  filters: [o("on", "GREATER_THAN_EQUALS", [0])],
988
983
  orders: [
989
- a("user_id", "DESC", [t]),
984
+ a("user_id", "DESC", [t.state.user.id]),
990
985
  a("on", "DESC"),
991
986
  a("favorite", "DESC"),
992
987
  a("id", "DESC")
993
988
  ]
994
- }, r.options.onApiLoaded = (e, t, n) => {
989
+ }), n.options.onApiLoaded = (e, t, n) => {
995
990
  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 = [
991
+ e.result = ct(e.result, r, i), n?.(e, t);
992
+ }, n;
993
+ }, gt = (e) => e.gen("/add/projects_2/projects/"), _t = { class: "top-projectSelectorSubmenu_item" }, vt = [
999
994
  "href",
1000
995
  "title",
1001
996
  "data-top-icon",
1002
997
  "data-right"
1003
- ], vt = { class: "top-projectSelectorSubmenu_item" }, yt = ["href"], bt = /* @__PURE__ */ A({
998
+ ], yt = { class: "top-projectSelectorSubmenu_item" }, bt = ["href"], xt = /* @__PURE__ */ A({
1004
999
  __name: "submenu",
1005
1000
  props: {
1006
1001
  id: {},
@@ -1008,7 +1003,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1008
1003
  url: {}
1009
1004
  },
1010
1005
  setup(t) {
1011
- let n = t, r = e(), i = dt(), a = [
1006
+ let n = t, r = e(), i = ft(), a = [
1012
1007
  {
1013
1008
  href: `https://${i}/project/keywords/${n.id}/`,
1014
1009
  title: r.Common.Menu_phrases,
@@ -1089,53 +1084,53 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1089
1084
  return n.right.includes("0") ? a.filter((e) => n.right[e.right] === "1") : a;
1090
1085
  });
1091
1086
  return (e, n) => {
1092
- let r = ce("TopButton");
1093
- return P(), w(R(y), {
1087
+ let r = le("TopButton");
1088
+ return N(), w(L(y), {
1094
1089
  class: "top-projectSelectorSubmenu",
1095
1090
  notch: !1,
1096
1091
  pos: "2"
1097
1092
  }, {
1098
- opener: V(() => [k(r, {
1093
+ opener: B(() => [k(r, {
1099
1094
  class: "top-projectSelectorSubmenu_opener",
1100
1095
  "data-top-icon": "",
1101
1096
  color: "theme"
1102
1097
  })]),
1103
- contentList: V(() => [(P(!0), E(S, null, I(o.value, (e) => (P(), E("li", gt, [D("a", {
1098
+ contentList: B(() => [(N(!0), E(S, null, F(o.value, (e) => (N(), E("li", _t, [D("a", {
1104
1099
  href: e.href,
1105
1100
  title: e.title,
1106
1101
  "data-top-icon": e.icon,
1107
1102
  "data-right": e.right
1108
- }, null, 8, _t)]))), 256)), D("li", vt, [D("a", {
1103
+ }, null, 8, vt)]))), 256)), D("li", yt, [D("a", {
1109
1104
  href: t.url,
1110
1105
  "data-top-icon": "",
1111
1106
  target: "_blank"
1112
- }, null, 8, yt)])]),
1107
+ }, null, 8, bt)])]),
1113
1108
  _: 1
1114
1109
  });
1115
1110
  };
1116
1111
  }
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
1112
+ }), St = 1440 * 60 * 1e3, q = fe(), Ct = P(0), J = P(null), wt = (e) => {
1113
+ localStorage.setItem("ui_project_selector_total:" + t.state.user.id, JSON.stringify({
1114
+ projectsTotal: e,
1115
+ expiresAt: Date.now() + St
1121
1116
  }));
1122
- }, wt = (e) => {
1123
- let t = localStorage.getItem(J + e);
1124
- if (!t) return;
1125
- let { projectsTotal: n, expiresAt: r } = JSON.parse(t);
1117
+ }, Tt = () => {
1118
+ let e = localStorage.getItem("ui_project_selector_total:" + t.state.user.id);
1119
+ if (!e) return;
1120
+ let { projectsTotal: n, expiresAt: r } = JSON.parse(e);
1126
1121
  if (Date.now() > r) {
1127
- localStorage.removeItem(J + e);
1122
+ localStorage.removeItem("ui_project_selector_total:" + t.state.user.id);
1128
1123
  return;
1129
1124
  }
1130
1125
  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 = {
1126
+ }, Et = (e = !0) => {
1127
+ q.value = void 0, J.value = null, localStorage.removeItem("ui_project_selector_total:" + t.state.user.id), e && Ct.value++;
1128
+ }, Dt = { class: "top-projectSelector_item" }, Ot = { class: "top-projectSelector_itemText" }, kt = { class: "top-comment" }, At = {
1134
1129
  key: 0,
1135
1130
  class: "top-comment"
1136
- }, At = ["href", "onClick"], jt = 1e3, Mt = /* @__PURE__ */ A({
1131
+ }, jt = ["href", "onClick"], Mt = 1e3, Nt = /* @__PURE__ */ A({
1137
1132
  __name: "projectSelector",
1138
- props: /* @__PURE__ */ M({
1133
+ props: /*@__PURE__*/ j({
1139
1134
  modelValue: {},
1140
1135
  client: {},
1141
1136
  addLinksToProjects: {
@@ -1155,112 +1150,112 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1155
1150
  modelModifiers: {}
1156
1151
  }),
1157
1152
  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";
1153
+ setup(n) {
1154
+ let r = e(), i = n, a = R(n, "modelValue"), o = ht(i.client), s = ht(i.client);
1155
+ s.changeParams({ limit: Mt });
1156
+ 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(() => {
1157
+ if (!(!l.value && l.value !== 0)) return l.value < Mt ? "static" : "api";
1163
1158
  });
1164
- B(St, () => {
1165
- v();
1166
- }), B(a, () => {
1167
- !a.value.id || !i.addLinksToProjects || lt(ut(a.value.id));
1159
+ z(Ct, () => {
1160
+ ee();
1161
+ }), z(a, () => {
1162
+ !a.value.id || !i.addLinksToProjects || ut(dt(a.value.id));
1168
1163
  });
1169
- let h = async () => {
1170
- X.value ||= mt(i.client, r, { limit: jt }).call();
1171
- let e = await X.value;
1164
+ let g = async () => {
1165
+ J.value ||= s.call();
1166
+ let e = await J.value;
1172
1167
  if (e.errors) {
1173
- X.value = null;
1168
+ J.value = null;
1174
1169
  return;
1175
1170
  }
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({
1171
+ return J.value = null, e;
1172
+ }, _ = async () => {
1173
+ if (l.value) return;
1174
+ let e = await g();
1175
+ e && (l.value = e.total, h.value === "static" && !q.value && (q.value = e.result), l.value && wt(l.value));
1176
+ }, v = async (e) => {
1177
+ let n = await c.changeParams({
1183
1178
  url: e.name,
1184
1179
  name: e.name
1185
1180
  }).call();
1186
- if (!t.errors) {
1187
- if (Y.value && m.value === "static") {
1188
- let n = {
1189
- id: Number(t.result),
1190
- user_id: r,
1181
+ if (!n.errors) {
1182
+ if (q.value && h.value === "static") {
1183
+ let r = {
1184
+ id: Number(n.result),
1185
+ user_id: t.state.user.id,
1191
1186
  name: e.name,
1192
1187
  url: e.name,
1193
1188
  on: 0,
1194
1189
  right: "11111111111111111111",
1195
1190
  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));
1191
+ }, i = q.value.findIndex((e) => e.on === 0);
1192
+ q.value = [
1193
+ ...q.value.slice(0, i),
1194
+ r,
1195
+ ...q.value.slice(i)
1196
+ ], l.value && (l.value += 1, wt(l.value));
1202
1197
  }
1203
- m.value === "api" && Tt(r);
1198
+ h.value === "api" && Et();
1204
1199
  }
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);
1200
+ }, ee = () => {
1201
+ h.value === "api" && f.value?.resetCache(!0);
1202
+ }, y = async () => {
1203
+ if (q.value || h.value === "api") return;
1204
+ let e = await g();
1205
+ e && (q.value = e.result);
1211
1206
  };
1212
- return ae(async () => {
1213
- await g();
1214
- }), (e, n) => {
1215
- let r = ce("TopButton");
1216
- return P(), w(x, {
1207
+ return oe(async () => {
1208
+ await _();
1209
+ }), (e, t) => {
1210
+ let r = le("TopButton");
1211
+ return N(), w(x, {
1217
1212
  ref_key: "refSelector",
1218
- ref: d,
1213
+ ref: f,
1219
1214
  class: "top-projectSelector",
1220
1215
  modelValue: a.value,
1221
- "onUpdate:modelValue": n[1] ||= (e) => a.value = e,
1222
- items: p.value,
1216
+ "onUpdate:modelValue": t[1] ||= (e) => a.value = e,
1217
+ items: m.value,
1223
1218
  title: e.$i18n.Projects.Search_projects,
1224
- modificator: t.modificator,
1219
+ modificator: n.modificator,
1225
1220
  searchFields: [
1226
1221
  "id",
1227
1222
  "name",
1228
1223
  "url"
1229
1224
  ],
1230
- placeholder: f.value,
1225
+ placeholder: p.value,
1231
1226
  hasCloserBtn: "",
1232
- api: m.value === "api" ? R(o) : void 0,
1233
- apiSetSearchParams: m.value === "api" ? (...e) => R(pt)(...e) : void 0,
1227
+ api: h.value === "api" ? L(o) : void 0,
1228
+ apiSetSearchParams: h.value === "api" ? (...e) => L(mt)(...e) : void 0,
1234
1229
  useCache: "",
1235
1230
  appendSearchToResult: "",
1236
1231
  appendSearchAllowDuplicate: "",
1237
- appendSearchToResultCond: R(l),
1232
+ appendSearchToResultCond: L(u),
1238
1233
  appendWithoutSelect: "",
1239
- buttonProps: t.buttonProps,
1240
- openerShortcut: t.openerShortcut,
1241
- onAppendItem: _,
1242
- onOpen: ee
1234
+ buttonProps: n.buttonProps,
1235
+ openerShortcut: n.openerShortcut,
1236
+ onAppendItem: v,
1237
+ onOpen: y
1243
1238
  }, {
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", {
1239
+ 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 }, [
1240
+ n.addLinksToProjects ? (N(), E("a", {
1246
1241
  key: 0,
1247
1242
  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, {
1243
+ href: L(dt)(i.id),
1244
+ onClick: V((e) => L(ut)(L(dt)(i.id), e), ["prevent", "stop"])
1245
+ }, null, 8, jt)) : T("", !0),
1246
+ e.$core.state.isMobile ? T("", !0) : (N(), w(r, {
1252
1247
  key: 1,
1253
1248
  class: "top-projectSelector_itemExtLink",
1254
- href: R(ft)(i.url),
1249
+ href: L(pt)(i.url),
1255
1250
  "data-top-icon": "",
1256
1251
  color: "theme",
1257
1252
  target: "_blank",
1258
- onClick: n[0] ||= H(() => {}, ["stop"])
1253
+ onClick: t[0] ||= V(() => {}, ["stop"])
1259
1254
  }, null, 8, ["href"])),
1260
- k(bt, {
1255
+ k(xt, {
1261
1256
  id: i.id,
1262
1257
  right: i.right ?? void 0,
1263
- url: R(ft)(i.url)
1258
+ url: L(pt)(i.url)
1264
1259
  }, null, 8, [
1265
1260
  "id",
1266
1261
  "right",
@@ -1282,34 +1277,34 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1282
1277
  ]);
1283
1278
  };
1284
1279
  }
1285
- }), Nt = (e) => "-" + e, Z = (e) => e[0] === "-" ? e.substring(1) : e, Q = (e, t) => {
1286
- e = Z(e);
1280
+ }), Pt = (e) => "-" + e, Y = (e) => e[0] === "-" ? e.substring(1) : e, X = (e, t) => {
1281
+ e = Y(e);
1287
1282
  let n = t.find((t) => t.id === e);
1288
1283
  if (n) return n;
1289
- }, Pt = (e, t, n) => {
1284
+ }, Ft = (e, t, n) => {
1290
1285
  t ||= { id: e.id }, t.id = e.id, t.pos ??= "3", t.notch ??= !0, t.posBy ??= "fixed";
1291
1286
  let r = c.genElPopupOpener("div", t);
1292
1287
  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
1288
  t.preventDefault(), t.stopPropagation(), r.onclick = null;
1294
- let i = F(e.modelValue);
1289
+ let i = P(e.modelValue);
1295
1290
  s(r, "topTagSelectorTarget", {
1296
1291
  model: i,
1297
1292
  mode: e.mode,
1298
1293
  targetId: e.targetId,
1299
1294
  filters: e.filters,
1300
1295
  payload: e.payload
1301
- }), delete r.dataset.topPopupDisabled, j(e.modelValue) || B(i, () => {
1302
- e.modelValue = i.value, It(r, e, n);
1296
+ }), delete r.dataset.topPopupDisabled, re(e.modelValue) || z(i, () => {
1297
+ e.modelValue = i.value, Z(r, e, n);
1303
1298
  }), r.click();
1304
- }, j(e.modelValue) ? B(e.modelValue, () => It(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1299
+ }, re(e.modelValue) ? z(e.modelValue, () => Z(r, e, n)) : s(r, "topTagSelectorRender", (t) => {
1305
1300
  e.modelValue = t;
1306
1301
  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) => {
1302
+ i && (i.model.value = t), Z(r, e, n);
1303
+ }), Z(r, e, n), r;
1304
+ }, It = (e, t) => {
1310
1305
  s(e, "topTagSelectorRender")?.(t);
1311
- }, It = (t, n, r) => {
1312
- let i = R(n.modelValue);
1306
+ }, Z = (t, n, r) => {
1307
+ let i = L(n.modelValue);
1313
1308
  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
1309
  t.innerHTML = `<div>${r}</div>`;
1315
1310
  return;
@@ -1325,10 +1320,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1325
1320
  }
1326
1321
  i.forEach((e) => {
1327
1322
  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"
1323
+ id: Y(e),
1324
+ colorId: X(e, n.tags)?.color_id ?? "",
1325
+ name: X(e, n.tags)?.name ?? "",
1326
+ state: Y(e) === e ? "selected" : "excluded"
1332
1327
  });
1333
1328
  t.append(r);
1334
1329
  });
@@ -1390,7 +1385,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1390
1385
  "data-tag_id",
1391
1386
  "data-tag_color_id",
1392
1387
  "title"
1393
- ], Bt = /* @__PURE__ */ A({
1388
+ ], Q = /* @__PURE__ */ A({
1394
1389
  __name: "tagIcon",
1395
1390
  props: {
1396
1391
  id: {},
@@ -1399,8 +1394,8 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1399
1394
  state: {}
1400
1395
  },
1401
1396
  setup(e) {
1402
- return (t, n) => (P(), E("div", {
1403
- class: N({
1397
+ return (t, n) => (N(), E("div", {
1398
+ class: M({
1404
1399
  "top-tagSelector_tagIcon": !0,
1405
1400
  "top-tagSelector-active": !!e.state,
1406
1401
  "top-tagSelector-excluded": e.state === "excluded"
@@ -1410,9 +1405,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1410
1405
  title: e.name
1411
1406
  }, null, 10, zt));
1412
1407
  }
1413
- }), Vt = ["contenteditable", "onKeydown"], Ht = /* @__PURE__ */ A({
1408
+ }), Bt = ["contenteditable", "onKeydown"], Vt = /* @__PURE__ */ A({
1414
1409
  __name: "tagPopupListItem",
1415
- props: /* @__PURE__ */ M({
1410
+ props: /*@__PURE__*/ j({
1416
1411
  editable: { type: Boolean },
1417
1412
  disabled: { type: Boolean },
1418
1413
  canExclude: { type: Boolean },
@@ -1424,18 +1419,18 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1424
1419
  name: { required: !0 },
1425
1420
  nameModifiers: {}
1426
1421
  }),
1427
- emits: /* @__PURE__ */ M([
1422
+ emits: /*@__PURE__*/ j([
1428
1423
  "update:name",
1429
1424
  "unselect",
1430
1425
  "exclude",
1431
1426
  "select"
1432
1427
  ], ["update:name"]),
1433
1428
  setup(e, { emit: t }) {
1434
- let n = e, r = t, i = z(e, "name"), a = F(null), o = C(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
1429
+ let n = e, r = t, i = R(e, "name"), a = P(null), o = C(() => navigator.userAgent.indexOf("Firefox") == -1 ? {} : {
1435
1430
  contenteditable: s.value,
1436
1431
  onpaste: (e) => e.preventDefault()
1437
- }), s = F(!1), c = async () => {
1438
- s.value = !0, await ie(), a.value?.focus();
1432
+ }), s = P(!1), c = async () => {
1433
+ s.value = !0, await ae(), a.value?.focus();
1439
1434
  }, l = () => {
1440
1435
  let e = a.value?.innerText;
1441
1436
  if (!e) return u();
@@ -1447,8 +1442,8 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1447
1442
  let t = "selected";
1448
1443
  n.canExclude && (e.ctrlKey || e.metaKey) && (t = "excluded"), n.state == t && (t = ""), t === "" && r("unselect"), t === "selected" && r("select"), t === "excluded" && r("exclude");
1449
1444
  };
1450
- return (t, n) => (P(), w(v, {
1451
- class: N({
1445
+ return (t, n) => (N(), w(v, {
1446
+ class: M({
1452
1447
  "top-tagSelector_tagListItem": !0,
1453
1448
  "top-tagSelector_tagListItem-inEdit": s.value,
1454
1449
  "top-tagSelector_tagListItem-disabled": e.disabled,
@@ -1456,10 +1451,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1456
1451
  "top-tagSelector-active": !!e.state,
1457
1452
  "top-tagSelector-excluded": e.state === "excluded"
1458
1453
  }),
1459
- onClick: H(d, ["stop"])
1454
+ onClick: V(d, ["stop"])
1460
1455
  }, {
1461
- default: V(() => [
1462
- k(Bt, {
1456
+ default: B(() => [
1457
+ k(Q, {
1463
1458
  id: e.id,
1464
1459
  name: i.value,
1465
1460
  colorId: e.colorId,
@@ -1470,18 +1465,18 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1470
1465
  "colorId",
1471
1466
  "state"
1472
1467
  ]),
1473
- D("span", re({
1468
+ D("span", ie({
1474
1469
  ref_key: "elName",
1475
1470
  ref: a,
1476
1471
  class: "top-tagSelector_tagListItemName",
1477
1472
  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", {
1473
+ }, o.value, { onKeydown: [he(V(l, ["stop"]), ["enter"]), he(V(u, ["stop"]), ["esc"])] }), I(i.value), 17, Bt),
1474
+ e.editable ? (N(), E(S, { key: 0 }, [s.value ? (N(), E("span", {
1480
1475
  key: 1,
1481
1476
  "data-top-icon": "",
1482
1477
  class: "top-tagSelector_edit",
1483
- onClick: H(l, ["stop"])
1484
- })) : (P(), E("span", {
1478
+ onClick: V(l, ["stop"])
1479
+ })) : (N(), E("span", {
1485
1480
  key: 0,
1486
1481
  "data-top-icon": "",
1487
1482
  class: "top-tagSelector_edit",
@@ -1491,10 +1486,10 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1491
1486
  _: 1
1492
1487
  }, 8, ["class"]));
1493
1488
  }
1494
- }), Ut = { key: 1 }, Wt = /* @__PURE__ */ A({
1489
+ }), Ht = { key: 1 }, Ut = /* @__PURE__ */ A({
1495
1490
  inheritAttrs: !1,
1496
1491
  __name: "popupOpener",
1497
- props: /* @__PURE__ */ M({
1492
+ props: /*@__PURE__*/ j({
1498
1493
  modelValue: {},
1499
1494
  id: {},
1500
1495
  tags: {},
@@ -1510,7 +1505,7 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1510
1505
  }),
1511
1506
  emits: ["update:modelValue"],
1512
1507
  setup(e) {
1513
- let t = e, n = z(e, "modelValue"), i = t.useTopButton ? r : "div", a = t.useTopButton ? "html" : "default", o = {
1508
+ let t = e, n = R(e, "modelValue"), i = t.useTopButton ? r : "div", a = t.useTopButton ? "html" : "default", o = {
1514
1509
  model: n,
1515
1510
  mode: t.mode,
1516
1511
  targetId: t.targetId,
@@ -1518,9 +1513,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1518
1513
  payload: t.payload
1519
1514
  };
1520
1515
  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({
1516
+ let c = ue("top-data");
1517
+ return N(), w(g, { id: e.id }, {
1518
+ default: B(() => [me((N(), w(de(L(i)), ie({
1524
1519
  class: {
1525
1520
  "top-tagSelector": !0,
1526
1521
  "top-tagSelector-useTopButton": t.useTopButton,
@@ -1535,17 +1530,17 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1535
1530
  color: "theme",
1536
1531
  styling: e.styling
1537
1532
  }, r.$attrs), {
1538
- [R(a)]: V(() => [!n.value.length && e.mode === "filter" ? (P(), w(Bt, {
1533
+ [L(a)]: B(() => [!n.value.length && e.mode === "filter" ? (N(), w(Q, {
1539
1534
  key: 0,
1540
1535
  id: "all",
1541
1536
  colorId: "",
1542
1537
  name: r.$i18n.Common.All_tags ?? "",
1543
1538
  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"
1539
+ }, 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, {
1540
+ id: L(Y)(t),
1541
+ colorId: L(X)(t, e.tags)?.color_id ?? "",
1542
+ name: L(X)(t, e.tags)?.name ?? "",
1543
+ state: L(Y)(t) === t ? "selected" : "excluded"
1549
1544
  }, null, 8, [
1550
1545
  "id",
1551
1546
  "colorId",
@@ -1562,9 +1557,9 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1562
1557
  }, 8, ["id"]);
1563
1558
  };
1564
1559
  }
1565
- }), Gt = /* @__PURE__ */ A({
1560
+ }), Wt = /* @__PURE__ */ A({
1566
1561
  __name: "tagSelector",
1567
- props: /* @__PURE__ */ M({
1562
+ props: /*@__PURE__*/ j({
1568
1563
  modelValue: {},
1569
1564
  tags: {},
1570
1565
  tagsEditable: { type: Boolean },
@@ -1585,20 +1580,20 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1585
1580
  }, {
1586
1581
  modelValue: { required: !0 },
1587
1582
  modelModifiers: {},
1588
- tags: { default: oe(Rt) },
1583
+ tags: { default: se(Rt) },
1589
1584
  tagsModifiers: {}
1590
1585
  }),
1591
- emits: /* @__PURE__ */ M([
1586
+ emits: /*@__PURE__*/ j([
1592
1587
  "selector",
1593
1588
  "setter",
1594
1589
  "tagsChanged"
1595
1590
  ], ["update:modelValue", "update:tags"]),
1596
1591
  setup(a, { emit: o }) {
1597
- let c = e(), l = a, u = z(a, "modelValue"), d = z(a, "tags"), f = o, p = n((e, t) => {
1592
+ let c = e(), l = a, u = R(a, "modelValue"), d = R(a, "tags"), f = o, p = n((e, t) => {
1598
1593
  f(e, t);
1599
1594
  }, l.emitDelay);
1600
1595
  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 = () => {
1596
+ let m = l.id ?? "top-popup-id-" + Math.random(), h = P("add"), g = () => {
1602
1597
  let e = " " + c.Common.Tags?.toLowerCase(), t = /* @__PURE__ */ new Map();
1603
1598
  return t.set("add", {
1604
1599
  value: "add",
@@ -1610,14 +1605,14 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1610
1605
  value: "delete",
1611
1606
  title: c.Common.Delete + e
1612
1607
  }), t;
1613
- }, _ = de({
1608
+ }, _ = fe({
1614
1609
  model: u,
1615
1610
  mode: "filter",
1616
1611
  targetId: void 0,
1617
1612
  filters: void 0,
1618
1613
  payload: void 0
1619
1614
  });
1620
- B(u, () => {
1615
+ z(u, () => {
1621
1616
  p("selector", u.value);
1622
1617
  });
1623
1618
  let ee = C(() => {
@@ -1625,11 +1620,11 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1625
1620
  }), b = (e) => {
1626
1621
  if (e !== "all") {
1627
1622
  if (_.value.model.value.includes(e)) return "selected";
1628
- if (_.value.model.value.includes(Nt(e))) return "excluded";
1623
+ if (_.value.model.value.includes(Pt(e))) return "excluded";
1629
1624
  }
1630
1625
  return e === "all" && !_.value.model.value.length ? "selected" : "";
1631
1626
  }, x = (e, t) => {
1632
- let n = Nt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
1627
+ let n = Pt(e), r = _.value.model.value.filter((t) => t !== e && t !== n);
1633
1628
  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
1629
  tagsIds: r,
1635
1630
  targetId: _.value.targetId,
@@ -1667,13 +1662,13 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1667
1662
  }), d.value.sort((e, t) => r.findIndex((t) => t === e.id) - r.findIndex((e) => e === t.id)), p("tagsChanged", d.value);
1668
1663
  }
1669
1664
  });
1670
- }, j = (e) => {
1665
+ }, re = (e) => {
1671
1666
  t.$?.ui.sortable && $(e.elPopup).data("ui-sortable") && $(e.elPopup).sortable("destroy");
1672
1667
  };
1673
- return (e, t) => (P(), E(S, null, [k(Wt, {
1668
+ return (e, t) => (N(), E(S, null, [k(Ut, {
1674
1669
  modelValue: u.value,
1675
1670
  "onUpdate:modelValue": t[0] ||= (e) => u.value = e,
1676
- id: R(m),
1671
+ id: L(m),
1677
1672
  tags: d.value,
1678
1673
  styling: a.styling,
1679
1674
  mode: "filter",
@@ -1685,35 +1680,35 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1685
1680
  "styling",
1686
1681
  "useTopButton"
1687
1682
  ]), k(y, {
1688
- id: R(m),
1689
- class: N(te.value),
1683
+ id: L(m),
1684
+ class: M(te.value),
1690
1685
  onOpen: t[4] ||= (e) => A(e),
1691
- onClose: t[5] ||= (e) => j(e),
1686
+ onClose: t[5] ||= (e) => re(e),
1692
1687
  "transition-duration": 50
1693
1688
  }, ne({
1694
- contentList: V(() => [
1695
- R(_).mode === "filter" && !a.singleMode ? (P(), w(Ht, {
1689
+ contentList: B(() => [
1690
+ L(_).mode === "filter" && !a.singleMode ? (N(), w(Vt, {
1696
1691
  key: 0,
1697
1692
  id: "all",
1698
1693
  colorId: "",
1699
1694
  name: e.$i18n.Common.All_tags ?? "",
1700
- state: R(_).model.value.length ? "" : "selected",
1701
- onSelect: t[3] ||= (e) => R(_).model.value = []
1695
+ state: L(_).model.value.length ? "" : "selected",
1696
+ onSelect: t[3] ||= (e) => L(_).model.value = []
1702
1697
  }, null, 8, ["name", "state"])) : T("", !0),
1703
- (P(!0), E(S, null, I(d.value, (e) => (P(), w(Ht, {
1698
+ (N(!0), E(S, null, F(d.value, (e) => (N(), w(Vt, {
1704
1699
  key: e.id,
1705
1700
  id: e.id,
1706
1701
  colorId: e.color_id,
1707
1702
  name: e.name,
1708
1703
  state: b(e.id),
1709
- canExclude: R(_).mode === "filter" && !a.singleMode,
1704
+ canExclude: L(_).mode === "filter" && !a.singleMode,
1710
1705
  editable: a.tagsEditable,
1711
1706
  disabled: ee.value && b(e.id) === "",
1712
1707
  onUnselect: (t) => x(e.id, "unselect"),
1713
1708
  onSelect: (t) => x(e.id, "select"),
1714
1709
  onExclude: (t) => x(e.id, "exclude"),
1715
1710
  "onUpdate:name": (t) => {
1716
- e.name = t, R(p)("tagsChanged", d.value);
1711
+ e.name = t, L(p)("tagsChanged", d.value);
1717
1712
  }
1718
1713
  }, null, 8, [
1719
1714
  "id",
@@ -1728,36 +1723,36 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1728
1723
  "onExclude",
1729
1724
  "onUpdate:name"
1730
1725
  ]))), 128)),
1731
- a.tagsEditable && d.value.length < a.tagsMax && d.value.length < 20 ? (P(), w(v, {
1726
+ a.tagsEditable && d.value.length < a.tagsMax && d.value.length < 20 ? (N(), w(v, {
1732
1727
  key: 1,
1733
1728
  "data-top-icon": "",
1734
- onClick: H(D, ["stop"])
1729
+ onClick: V(D, ["stop"])
1735
1730
  }, {
1736
- default: V(() => [O(L(e.$i18n.Common.Add), 1)]),
1731
+ default: B(() => [O(I(e.$i18n.Common.Add), 1)]),
1737
1732
  _: 1
1738
1733
  })) : T("", !0)
1739
1734
  ]),
1740
1735
  _: 2
1741
- }, [R(_).mode === "setter" && R(_).filters ? {
1736
+ }, [L(_).mode === "setter" && L(_).filters ? {
1742
1737
  name: "header",
1743
- fn: V(() => [k(i, {
1738
+ fn: B(() => [k(i, {
1744
1739
  modelValue: h.value,
1745
1740
  "onUpdate:modelValue": t[1] ||= (e) => h.value = e,
1746
1741
  options: g()
1747
1742
  }, null, 8, ["modelValue", "options"])]),
1748
1743
  key: "0"
1749
- } : void 0, R(_).mode === "setter" && R(_).filters ? {
1744
+ } : void 0, L(_).mode === "setter" && L(_).filters ? {
1750
1745
  name: "footer",
1751
- fn: V(() => [k(r, { color: "theme" }, {
1752
- default: V(() => [O(L(e.$i18n.Common.Cancel), 1)]),
1746
+ fn: B(() => [k(r, { color: "theme" }, {
1747
+ default: B(() => [O(I(e.$i18n.Common.Cancel), 1)]),
1753
1748
  _: 1
1754
- }), k(r, { onClick: t[2] ||= (e) => R(p)("setter", {
1755
- tagsIds: R(_).model.value,
1756
- filters: R(_).filters,
1749
+ }), k(r, { onClick: t[2] ||= (e) => L(p)("setter", {
1750
+ tagsIds: L(_).model.value,
1751
+ filters: L(_).filters,
1757
1752
  filtersAction: h.value,
1758
- payload: R(_).payload
1753
+ payload: L(_).payload
1759
1754
  }) }, {
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)]),
1755
+ 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
1756
  _: 1
1762
1757
  })]),
1763
1758
  key: "1"
@@ -1765,6 +1760,6 @@ var Ve = ["innerHTML"], He = /* @__PURE__ */ A({
1765
1760
  }
1766
1761
  });
1767
1762
  //#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 };
1763
+ 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
1764
 
1770
1765
  //# sourceMappingURL=project.js.map