@topvisor/ui 1.4.3-fixGroupSelector.5 → 1.4.3-fixGroupSelector.6

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 (67) hide show
  1. package/.chunks/{core-DoIr-EAf.es.js → core-Dgj_YGWh.es.js} +4 -4
  2. package/.chunks/{core-DoIr-EAf.es.js.map → core-Dgj_YGWh.es.js.map} +1 -1
  3. package/.chunks/{datepicker-DPgavbKe.es.js → datepicker-qToxk2nN.es.js} +2 -2
  4. package/.chunks/{datepicker-DPgavbKe.es.js.map → datepicker-qToxk2nN.es.js.map} +1 -1
  5. package/.chunks/{dialog_regionSelectorRegions-D7x41iZu.es.js → dialog_regionSelectorRegions-qDW2Ejsv.es.js} +5 -5
  6. package/.chunks/{dialog_regionSelectorRegions-D7x41iZu.es.js.map → dialog_regionSelectorRegions-qDW2Ejsv.es.js.map} +1 -1
  7. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-D8WYUfXI.es.js → dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js} +3 -3
  8. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-D8WYUfXI.es.js.map → dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js.map} +1 -1
  9. package/.chunks/{forms-BpbQYyEQ.es.js → forms-DtC-EKJL.es.js} +24 -24
  10. package/.chunks/{forms-BpbQYyEQ.es.js.map → forms-DtC-EKJL.es.js.map} +1 -1
  11. package/.chunks/lazy-DDNqYkXn.amd.js +2 -0
  12. package/.chunks/lazy-DDNqYkXn.amd.js.map +1 -0
  13. package/.chunks/{lazy-BJRCrEiD.es.js → lazy-HKSyLh72.es.js} +20 -20
  14. package/.chunks/lazy-HKSyLh72.es.js.map +1 -0
  15. package/.chunks/{notice-Ckc8r96E.es.js → notice-BvQl911b.es.js} +3 -3
  16. package/.chunks/{notice-Ckc8r96E.es.js.map → notice-BvQl911b.es.js.map} +1 -1
  17. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D3_o-DIM.es.js → page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js} +9 -9
  18. package/.chunks/{page.vue_vue_type_script_setup_true_lang-D3_o-DIM.es.js.map → page.vue_vue_type_script_setup_true_lang-Dd5-B4Ss.es.js.map} +1 -1
  19. package/.chunks/{policy.vue_vue_type_style_index_0_lang-BFldQm5e.es.js → policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js} +34 -34
  20. package/.chunks/{policy.vue_vue_type_style_index_0_lang-BFldQm5e.es.js.map → policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js.map} +1 -1
  21. package/.chunks/{policy.vue_vue_type_style_index_0_lang-CR-aHxza.amd.js → policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js} +2 -2
  22. package/.chunks/{policy.vue_vue_type_style_index_0_lang-CR-aHxza.amd.js.map → policy.vue_vue_type_style_index_0_lang-Da7rztT5.amd.js.map} +1 -1
  23. package/.chunks/{popup-DpyyE2Cs.es.js → popup-OuDglAOF.es.js} +2 -2
  24. package/.chunks/{popup-DpyyE2Cs.es.js.map → popup-OuDglAOF.es.js.map} +1 -1
  25. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-CdQostog.amd.js → popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js} +2 -2
  26. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-CdQostog.amd.js.map → popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd.js.map} +1 -1
  27. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-if4Qli-k.es.js → popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js} +5 -5
  28. package/.chunks/{popupHint.vue_vue_type_style_index_0_lang-if4Qli-k.es.js.map → popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js.map} +1 -1
  29. package/.chunks/{utils-MzIaxkRQ.es.js → utils-BNzP9anP.es.js} +2 -2
  30. package/.chunks/{utils-MzIaxkRQ.es.js.map → utils-BNzP9anP.es.js.map} +1 -1
  31. package/.chunks/{utils-CyE38wuQ.es.js → utils-Dma85ehT.es.js} +3 -3
  32. package/.chunks/{utils-CyE38wuQ.es.js.map → utils-Dma85ehT.es.js.map} +1 -1
  33. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Dy8jWadl.es.js → widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js} +6 -6
  34. package/.chunks/{widgetInput.vue_vue_type_script_setup_true_lang-Dy8jWadl.es.js.map → widgetInput.vue_vue_type_script_setup_true_lang-CX_BOcVY.es.js.map} +1 -1
  35. package/api/index.amd.js +1 -1
  36. package/api/index.js +6 -6
  37. package/charts/charts.js +14 -14
  38. package/core/app.js +15 -15
  39. package/dialog/dialog.js +6 -6
  40. package/extra/extra.js +2 -2
  41. package/forms/forms.js +1 -1
  42. package/formsExt/formsExt.amd.js +1 -1
  43. package/formsExt/formsExt.js +21 -21
  44. package/layout/layout.js +7 -7
  45. package/package.json +1 -1
  46. package/popup/popup.amd.js +1 -1
  47. package/popup/popup.js +9 -9
  48. package/popup/worker.js +2 -2
  49. package/project/project.amd.js +1 -1
  50. package/project/project.amd.js.map +1 -1
  51. package/project/project.js +8 -8
  52. package/src/components/project/groupSelector/folders/utils.d.ts +6 -26
  53. package/src/components/project/groupSelector/groups/utils.d.ts +17 -56
  54. package/src/components/project/projectSelector/utils.d.ts +14 -4
  55. package/tabs/tabs.js +5 -5
  56. package/tabsView/tabsView.amd.js +1 -1
  57. package/tabsView/tabsView.js +12 -12
  58. package/utils/clipboard.js +1 -1
  59. package/utils/date.js +1 -1
  60. package/utils/device.js +1 -1
  61. package/utils/lodash.js +1 -1
  62. package/utils/price.js +1 -1
  63. package/utils/searchers.js +3 -3
  64. package/utils/string.js +1 -1
  65. package/.chunks/lazy-BJRCrEiD.es.js.map +0 -1
  66. package/.chunks/lazy-DZK9LT7a.amd.js +0 -2
  67. package/.chunks/lazy-DZK9LT7a.amd.js.map +0 -1
@@ -3,14 +3,14 @@
3
3
  const fileNames = ['../assets/project.css'].map(fileName => import.meta.resolve(fileName));
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
- import { defineComponent as K, mergeModels as G, useModel as P, computed as E, createElementBlock as j, openBlock as h, createBlock as A, unref as v, withCtx as B, Fragment as F, renderList as pe, normalizeClass as oe, createElementVNode as N, toDisplayString as b, createVNode as U, createTextVNode as W, toValue as be, ref as _, watch as L, createCommentVNode as M, reactive as De, resolveComponent as Fe, shallowRef as qe, onMounted as et, withModifiers as H, isRef as Pe, mergeProps as We, withKeys as Ee, nextTick as tt, resolveDirective as ot, withDirectives as at, resolveDynamicComponent as lt, renderSlot as nt, createSlots as rt } from "vue";
7
- import { u as w, C as X, e as ee, q as xe, d as it } from "../.chunks/forms-BpbQYyEQ.es.js";
8
- import { _ as je, b as Ae, a as dt } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-if4Qli-k.es.js";
9
- import { a as st, _ as Be, b as He, c as Je, I as ye } from "../.chunks/policy.vue_vue_type_style_index_0_lang-BFldQm5e.es.js";
10
- import { u as ut } from "../.chunks/utils-MzIaxkRQ.es.js";
6
+ import { defineComponent as K, useModel as P, computed as E, openBlock as h, createElementBlock as j, unref as v, createBlock as A, withCtx as B, Fragment as F, renderList as pe, normalizeClass as oe, createElementVNode as N, toDisplayString as b, createVNode as U, createTextVNode as W, mergeModels as G, toValue as be, ref as _, watch as L, createCommentVNode as M, reactive as De, resolveComponent as Fe, shallowRef as qe, onMounted as et, withModifiers as H, isRef as Pe, mergeProps as We, withKeys as Ee, nextTick as tt, resolveDirective as ot, withDirectives as at, resolveDynamicComponent as lt, renderSlot as nt, createSlots as rt } from "vue";
7
+ import { u as w, C as X, e as ee, q as xe, d as it } from "../.chunks/forms-DtC-EKJL.es.js";
8
+ import { _ as je, a as Ae, b as dt } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js";
9
+ import { _ as st, b as Be, c as He, I as Je, a as ye } from "../.chunks/policy.vue_vue_type_style_index_0_lang-Bv3LwNDC.es.js";
10
+ import { u as ut } from "../.chunks/utils-BNzP9anP.es.js";
11
11
  import { getSearcherGIcon as ct, getLangLabel as ft, getDeviceGIcon as gt } from "../utils/searchers.js";
12
- import "../.chunks/core-DoIr-EAf.es.js";
13
- import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8WYUfXI.es.js";
12
+ import "../.chunks/core-Dgj_YGWh.es.js";
13
+ import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js";
14
14
  import { g as ie, a as le } from "../.chunks/field-CyyFzM-Y.es.js";
15
15
  import { validUrl as mt } from "../utils/check.js";
16
16
  import { ellipsis as vt } from "../utils/string.js";
@@ -169,7 +169,7 @@ const yt = { class: "top-competitorSelector" }, St = { class: "top-ellipsis1" },
169
169
  }), n))
170
170
  return !1;
171
171
  }), n;
172
- }, At = ut(() => import("../.chunks/dialog_regionSelectorRegions-D7x41iZu.es.js")), Bt = (e, t) => {
172
+ }, At = ut(() => import("../.chunks/dialog_regionSelectorRegions-qDW2Ejsv.es.js")), Bt = (e, t) => {
173
173
  const o = w(), a = _(t.value.keys().next().value ?? S), n = E(() => {
174
174
  const l = /* @__PURE__ */ new Map();
175
175
  if (t.value.forEach((r) => {
@@ -1,13 +1,12 @@
1
1
  import { Folder, FolderTree } from './types';
2
2
  import { Props } from '../types';
3
3
  import { paths } from 'topvisor-openapi/src/ts/Topvisor';
4
- import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Topvisor/Subdomain';
5
- import { components } from 'topvisor-openapi/src/ts/Qr_2/Types/TplN';
6
4
  import { components } from 'topvisor-openapi/src/ts/Recurring_2/Types/System';
7
5
  import { components } from 'topvisor-openapi/src/ts/Recurring_2/Types/Type';
8
6
  import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Url';
9
7
  import { components } from 'topvisor-openapi/src/ts/Tags_2/Types/Type';
10
8
  import { components } from 'topvisor-openapi/src/ts/Tpvsr_2/Types/Tags';
9
+ import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Topvisor/Subdomain';
11
10
  import { components } from 'topvisor-openapi/src/ts/Votes_2/Types/Rate';
12
11
  import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Date';
13
12
  import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Lang';
@@ -73,21 +72,9 @@ export declare const genApiGetFolders: (client: Api.Client<Api.TV.Paths, true>,
73
72
  uid?: number | null;
74
73
  hash_id?: number | null;
75
74
  hash?: number | null;
76
- } | {
77
- subdomain?: components["schemas"]["TV.API.Types.Topvisor.Subdomain"];
78
- text: string;
79
- page_url?: string | null;
80
- reply_id?: number | null;
81
75
  } | {
82
76
  url: string;
83
77
  debug?: number;
84
- } | {
85
- text: string;
86
- tpl_n?: components["schemas"]["Qr_2.Types.TplN"];
87
- use_brand?: boolean;
88
- use_logo_colors?: boolean;
89
- color?: unknown[] | null;
90
- point_size?: number;
91
78
  } | {
92
79
  system: components["schemas"]["Recurring_2.Types.System"];
93
80
  type: components["schemas"]["Recurring_2.Types.Type"];
@@ -130,6 +117,8 @@ export declare const genApiGetFolders: (client: Api.Client<Api.TV.Paths, true>,
130
117
  state_time_end: components["schemas"]["TV.API.Types.Date"];
131
118
  } | {
132
119
  tpl: string;
120
+ } | {
121
+ text: string;
133
122
  } | {
134
123
  lang?: components["schemas"]["TV.API.Types.Lang"] | null;
135
124
  } | {
@@ -149,14 +138,6 @@ export declare const genApiGetFolders: (client: Api.Client<Api.TV.Paths, true>,
149
138
  } | {
150
139
  user_id: number;
151
140
  bookmark: boolean;
152
- } | {
153
- subdomain: string;
154
- url: string;
155
- bookmark: boolean;
156
- } | {
157
- subdomain: components["schemas"]["Content_2.Types.Subdomain"];
158
- url: string;
159
- like: boolean;
160
141
  } | {
161
142
  subdomain?: components["schemas"]["Content_2.Types.Subdomain"] | null;
162
143
  tag?: string;
@@ -224,10 +205,6 @@ export declare const genApiGetFolders: (client: Api.Client<Api.TV.Paths, true>,
224
205
  target_type: components["schemas"]["Templates_2.Types.TargetType"];
225
206
  } | {
226
207
  filename: string;
227
- } | {
228
- ticket_id: number;
229
- text: string;
230
- is_silent?: boolean;
231
208
  } | {
232
209
  projects_ids: components["schemas"]["TV.API.Types.IntArray"];
233
210
  provider: components["schemas"]["Tpa_2.Types.Provider"];
@@ -318,6 +295,9 @@ export declare const genApiGetFolders: (client: Api.Client<Api.TV.Paths, true>,
318
295
  subdomain: components["schemas"]["Content_2.Types.Subdomain"];
319
296
  parent_url: string;
320
297
  urls: unknown[];
298
+ } | {
299
+ subdomain: components["schemas"]["Content_2.Types.Subdomain"];
300
+ url?: string | null;
321
301
  } | {
322
302
  type: components["schemas"]["Informer_2.Types.Push.Token.Type"];
323
303
  token: string;
@@ -1,13 +1,12 @@
1
1
  import { Folder } from '../folders/types';
2
2
  import { Group, Props } from './types';
3
3
  import { paths } from 'topvisor-openapi/src/ts/Topvisor';
4
- import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Topvisor/Subdomain';
5
- import { components } from 'topvisor-openapi/src/ts/Qr_2/Types/TplN';
6
4
  import { components } from 'topvisor-openapi/src/ts/Recurring_2/Types/System';
7
5
  import { components } from 'topvisor-openapi/src/ts/Recurring_2/Types/Type';
8
6
  import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Url';
9
7
  import { components } from 'topvisor-openapi/src/ts/Tags_2/Types/Type';
10
8
  import { components } from 'topvisor-openapi/src/ts/Tpvsr_2/Types/Tags';
9
+ import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Topvisor/Subdomain';
11
10
  import { components } from 'topvisor-openapi/src/ts/Votes_2/Types/Rate';
12
11
  import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Date';
13
12
  import { components } from 'topvisor-openapi/src/ts/TV/API/Types/Lang';
@@ -80,23 +79,9 @@ export declare const genApiGetGroups: (client: Api.Client<Api.TV.Paths, true>, s
80
79
  uid?: number | null;
81
80
  hash_id?: number | null;
82
81
  hash?: number | null;
83
- } | {
84
- subdomain?: components["schemas"] /**
85
- * Элемент для выбора всех групп
86
- */["TV.API.Types.Topvisor.Subdomain"];
87
- text: string;
88
- page_url?: string | null;
89
- reply_id?: number | null;
90
82
  } | {
91
83
  url: string;
92
84
  debug?: number;
93
- } | {
94
- text: string;
95
- tpl_n?: components["schemas"]["Qr_2.Types.TplN"];
96
- use_brand?: boolean;
97
- use_logo_colors?: boolean;
98
- color?: unknown[] | null;
99
- point_size?: number;
100
85
  } | {
101
86
  system: components["schemas"]["Recurring_2.Types.System"];
102
87
  type: components["schemas"]["Recurring_2.Types.Type"];
@@ -139,6 +124,8 @@ export declare const genApiGetGroups: (client: Api.Client<Api.TV.Paths, true>, s
139
124
  state_time_end: components["schemas"]["TV.API.Types.Date"];
140
125
  } | {
141
126
  tpl: string;
127
+ } | {
128
+ text: string;
142
129
  } | {
143
130
  lang?: components["schemas"]["TV.API.Types.Lang"] | null;
144
131
  } | {
@@ -158,14 +145,6 @@ export declare const genApiGetGroups: (client: Api.Client<Api.TV.Paths, true>, s
158
145
  } | {
159
146
  user_id: number;
160
147
  bookmark: boolean;
161
- } | {
162
- subdomain: string;
163
- url: string;
164
- bookmark: boolean;
165
- } | {
166
- subdomain: components["schemas"]["Content_2.Types.Subdomain"];
167
- url: string;
168
- like: boolean;
169
148
  } | {
170
149
  subdomain?: components["schemas"]["Content_2.Types.Subdomain"] | null;
171
150
  tag?: string;
@@ -179,7 +158,9 @@ export declare const genApiGetGroups: (client: Api.Client<Api.TV.Paths, true>, s
179
158
  command: components["schemas"]["Cron_2.Params.CommandTrait"]["command"];
180
159
  } | {
181
160
  ints: components["schemas"]["TV.API.Types.IntArray"];
182
- strings: components["schemas"]["TV.API.Types.StringArray"];
161
+ strings: components["schemas"] /**
162
+ * Элемент для выбора всех групп
163
+ */["TV.API.Types.StringArray"];
183
164
  booleans: components["schemas"]["TV.API.Types.BoolArray"];
184
165
  enum_numbers: components["schemas"]["Example_2.Types.EnumNumberArray"];
185
166
  } | {
@@ -233,10 +214,6 @@ export declare const genApiGetGroups: (client: Api.Client<Api.TV.Paths, true>, s
233
214
  target_type: components["schemas"]["Templates_2.Types.TargetType"];
234
215
  } | {
235
216
  filename: string;
236
- } | {
237
- ticket_id: number;
238
- text: string;
239
- is_silent?: boolean;
240
217
  } | {
241
218
  projects_ids: components["schemas"]["TV.API.Types.IntArray"];
242
219
  provider: components["schemas"]["Tpa_2.Types.Provider"];
@@ -327,6 +304,9 @@ export declare const genApiGetGroups: (client: Api.Client<Api.TV.Paths, true>, s
327
304
  subdomain: components["schemas"]["Content_2.Types.Subdomain"];
328
305
  parent_url: string;
329
306
  urls: unknown[];
307
+ } | {
308
+ subdomain: components["schemas"]["Content_2.Types.Subdomain"];
309
+ url?: string | null;
330
310
  } | {
331
311
  type: components["schemas"]["Informer_2.Types.Push.Token.Type"];
332
312
  token: string;
@@ -459,23 +439,9 @@ export declare const genApiAddGroup: (client: Api.Client<Api.TV.Paths, true>, se
459
439
  uid?: number | null;
460
440
  hash_id?: number | null;
461
441
  hash?: number | null;
462
- } | {
463
- subdomain?: components["schemas"] /**
464
- * Элемент для выбора всех групп
465
- */["TV.API.Types.Topvisor.Subdomain"];
466
- text: string;
467
- page_url?: string | null;
468
- reply_id?: number | null;
469
442
  } | {
470
443
  url: string;
471
444
  debug?: number;
472
- } | {
473
- text: string;
474
- tpl_n?: components["schemas"]["Qr_2.Types.TplN"];
475
- use_brand?: boolean;
476
- use_logo_colors?: boolean;
477
- color?: unknown[] | null;
478
- point_size?: number;
479
445
  } | {
480
446
  system: components["schemas"]["Recurring_2.Types.System"];
481
447
  type: components["schemas"]["Recurring_2.Types.Type"];
@@ -518,6 +484,8 @@ export declare const genApiAddGroup: (client: Api.Client<Api.TV.Paths, true>, se
518
484
  state_time_end: components["schemas"]["TV.API.Types.Date"];
519
485
  } | {
520
486
  tpl: string;
487
+ } | {
488
+ text: string;
521
489
  } | {
522
490
  lang?: components["schemas"]["TV.API.Types.Lang"] | null;
523
491
  } | {
@@ -537,14 +505,6 @@ export declare const genApiAddGroup: (client: Api.Client<Api.TV.Paths, true>, se
537
505
  } | {
538
506
  user_id: number;
539
507
  bookmark: boolean;
540
- } | {
541
- subdomain: string;
542
- url: string;
543
- bookmark: boolean;
544
- } | {
545
- subdomain: components["schemas"]["Content_2.Types.Subdomain"];
546
- url: string;
547
- like: boolean;
548
508
  } | {
549
509
  subdomain?: components["schemas"]["Content_2.Types.Subdomain"] | null;
550
510
  tag?: string;
@@ -558,7 +518,9 @@ export declare const genApiAddGroup: (client: Api.Client<Api.TV.Paths, true>, se
558
518
  command: components["schemas"]["Cron_2.Params.CommandTrait"]["command"];
559
519
  } | {
560
520
  ints: components["schemas"]["TV.API.Types.IntArray"];
561
- strings: components["schemas"]["TV.API.Types.StringArray"];
521
+ strings: components["schemas"] /**
522
+ * Элемент для выбора всех групп
523
+ */["TV.API.Types.StringArray"];
562
524
  booleans: components["schemas"]["TV.API.Types.BoolArray"];
563
525
  enum_numbers: components["schemas"]["Example_2.Types.EnumNumberArray"];
564
526
  } | {
@@ -612,10 +574,6 @@ export declare const genApiAddGroup: (client: Api.Client<Api.TV.Paths, true>, se
612
574
  target_type: components["schemas"]["Templates_2.Types.TargetType"];
613
575
  } | {
614
576
  filename: string;
615
- } | {
616
- ticket_id: number;
617
- text: string;
618
- is_silent?: boolean;
619
577
  } | {
620
578
  projects_ids: components["schemas"]["TV.API.Types.IntArray"];
621
579
  provider: components["schemas"]["Tpa_2.Types.Provider"];
@@ -706,6 +664,9 @@ export declare const genApiAddGroup: (client: Api.Client<Api.TV.Paths, true>, se
706
664
  subdomain: components["schemas"]["Content_2.Types.Subdomain"];
707
665
  parent_url: string;
708
666
  urls: unknown[];
667
+ } | {
668
+ subdomain: components["schemas"]["Content_2.Types.Subdomain"];
669
+ url?: string | null;
709
670
  } | {
710
671
  type: components["schemas"]["Informer_2.Types.Push.Token.Type"];
711
672
  token: string;
@@ -52,15 +52,20 @@ export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>,
52
52
  task_method_params_json?: any;
53
53
  task_status?: any;
54
54
  task_progress?: any;
55
+ task_noticed?: any;
55
56
  site?: any;
56
57
  update?: any;
57
- status_positions?: string | null;
58
58
  positions_time?: any;
59
59
  positions_date?: any;
60
60
  positions_percent?: any;
61
+ status_positions?: string | null;
61
62
  status_positions_time?: any;
62
63
  status_positions_date?: any;
63
64
  status_positions_percent?: any;
65
+ status_relevance?: string | null;
66
+ status_relevance_time?: any;
67
+ status_relevance_date?: any;
68
+ status_relevance_percent?: any;
64
69
  status_positions_by_keywords?: any;
65
70
  status_volumes?: any;
66
71
  status_claster?: any;
@@ -115,7 +120,7 @@ export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>,
115
120
  watcher_types?: unknown[] | null;
116
121
  ai_tracker_brand_name?: any;
117
122
  ai_tracker_aliases?: unknown[] | null;
118
- ai_tracker_models?: unknown[] | null;
123
+ ai_tracker_models_names?: unknown[] | null;
119
124
  ai_tracker_context_lang?: any;
120
125
  ai_tracker_context_location?: any;
121
126
  }, {
@@ -150,15 +155,20 @@ export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>,
150
155
  task_method_params_json?: any;
151
156
  task_status?: any;
152
157
  task_progress?: any;
158
+ task_noticed?: any;
153
159
  site?: any;
154
160
  update?: any;
155
- status_positions?: string | null;
156
161
  positions_time?: any;
157
162
  positions_date?: any;
158
163
  positions_percent?: any;
164
+ status_positions?: string | null;
159
165
  status_positions_time?: any;
160
166
  status_positions_date?: any;
161
167
  status_positions_percent?: any;
168
+ status_relevance?: string | null;
169
+ status_relevance_time?: any;
170
+ status_relevance_date?: any;
171
+ status_relevance_percent?: any;
162
172
  status_positions_by_keywords?: any;
163
173
  status_volumes?: any;
164
174
  status_claster?: any;
@@ -213,7 +223,7 @@ export declare const genApiGetProjects: (client: Api.Client<Api.TV.Paths, true>,
213
223
  watcher_types?: unknown[] | null;
214
224
  ai_tracker_brand_name?: any;
215
225
  ai_tracker_aliases?: unknown[] | null;
216
- ai_tracker_models?: unknown[] | null;
226
+ ai_tracker_models_names?: unknown[] | null;
217
227
  ai_tracker_context_lang?: any;
218
228
  ai_tracker_context_location?: any;
219
229
  }> | undefined>;
package/tabs/tabs.js CHANGED
@@ -3,7 +3,7 @@
3
3
  const fileNames = ['../assets/tabs.css'].map(fileName => import.meta.resolve(fileName));
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
- import { defineComponent as d, createElementBlock as s, openBlock as n, normalizeClass as l, renderSlot as a, createCommentVNode as i, createElementVNode as o, Fragment as b } from "vue";
6
+ import { defineComponent as d, openBlock as s, createElementBlock as n, renderSlot as a, createCommentVNode as i, createElementVNode as o, normalizeClass as l, Fragment as b } from "vue";
7
7
  const r = {
8
8
  class: /* @__PURE__ */ l({
9
9
  "top-tabs": !0
@@ -17,9 +17,9 @@ const r = {
17
17
  id: {}
18
18
  },
19
19
  setup(e) {
20
- return (t, c) => (n(), s("div", r, [
20
+ return (t, c) => (s(), n("div", r, [
21
21
  a(t.$slots, "buttons"),
22
- t.$slots.header ? (n(), s("div", m, [
22
+ t.$slots.header ? (s(), n("div", m, [
23
23
  a(t.$slots, "header")
24
24
  ])) : i("", !0),
25
25
  o("div", u, [
@@ -37,7 +37,7 @@ const r = {
37
37
  disabled: { type: Boolean }
38
38
  },
39
39
  setup(e) {
40
- return (t, c) => (n(), s(b, null, [
40
+ return (t, c) => (s(), n(b, null, [
41
41
  o("input", {
42
42
  type: "radio",
43
43
  class: "top-tabs_tabInput top-unvisible",
@@ -65,7 +65,7 @@ const r = {
65
65
  name: {}
66
66
  },
67
67
  setup(e) {
68
- return (t, c) => (n(), s("div", {
68
+ return (t, c) => (s(), n("div", {
69
69
  class: l({
70
70
  "top-tabs_content": !0
71
71
  }),
@@ -1,2 +1,2 @@
1
- define(["require","exports","vue","../.chunks/forms-DDNzqU6o.amd","../utils/route.amd","../.chunks/store-YRW59xEF.amd","../.chunks/popupHint.vue_vue_type_style_index_0_lang-CdQostog.amd","../utils/system.amd","../require/css.amd!../assets/tabsView.css"],(function(A,h,e,p,f,g,S,M){"use strict";if(typeof e>"u")var e=window.Vue;const k=(o,n)=>`top:${String(o)}:${n}`,y={loadLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);try{const a=JSON.parse(localStorage.getItem(t));typeof a==typeof n[o]&&(n[o]=a)}catch{console.warn(new Error(`В localStorage[${t}] не корректный json`))}},addSaverLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);e.watch(()=>n[o],()=>{localStorage.setItem(t,JSON.stringify(n[o]))},{immediate:!0})}},_=new Set;addEventListener("popstate",o=>{_.forEach(n=>n(o))});const V=Symbol(),$=(o,n)=>{const t=g.defineStore(V,()=>{const a=e.computed(()=>o.showMenuInPopup??p.Core.state.isMobile),i=e.computed(()=>o.pageMod),u=e.ref(!1),r=e.ref(void 0),l=e.ref(!0);return{showMenuInPopup:a,pageMod:i,isShort:u,activeItemName:n,component:r,scrollable:l}},o.idState);if(o.isShortable){const a="isShort";y.loadLocalStorge(a,t),y.addSaverLocalStorge(a,t)}if(t.$id){const a=i=>{n.value=f.getHash(t.$id)};_.add(a)}return t},w=()=>g.useStore(V),N={key:1,class:"top-ellipsis"},v=e.defineComponent({__name:"menuItem",props:{name:{},href:{},icon:{},disabled:{type:Boolean},component:{default:void 0},scrollable:{type:Boolean,default:!0}},setup(o){const n=o,t=w(),a=e.computed(()=>n.name&&t.$id?f.genHash(t.$id,n.name):n.href),i=e.computed(()=>t.showMenuInPopup?S._sfc_main$2:a?"a":"button"),u=r=>{!n.href&&a.value&&r.preventDefault(),n.name&&(t.activeItemName=n.name)};return(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{target:"_self",class:e.normalizeClass({"top-tabsView_menuItem":!e.unref(t).showMenuInPopup,"top-active":o.name&&e.unref(t).activeItemName===o.name,"top-disabled":o.disabled,"top-spa-disabled":!0}),href:a.value,"data-top-icon":o.icon||void 0,disabled:o.disabled||void 0,onClick:u},{default:e.withCtx(()=>[e.unref(t).showMenuInPopup?e.renderSlot(r.$slots,"default",{key:0}):r.$slots.default&&!e.unref(t).isShort?(e.openBlock(),e.createElementBlock("span",N,[e.renderSlot(r.$slots,"default")])):e.createCommentVNode("",!0)]),_:3},8,["class","href","data-top-icon","disabled"]))}}),B=o=>o?.name==="AsyncComponentWrapper"&&!o?.__asyncResolved,C=async(o,n)=>{o?.name==="AsyncComponentWrapper"&&(o?.__asyncResolved||(o.__asyncLoader(),await M.sleepWhile(()=>n()&&B(o),200)))},L={class:"top-tabsView_menuOpener"},E=["data-top-icon"],P={class:"top-ellipsis"},T={class:"top-tabsView_menuList"},z={key:0,class:"top-tabsView_menuFooter"},R=e.defineComponent({__name:"menu",props:e.mergeModels({isShortable:{type:Boolean},isLoading:{type:Boolean}},{isLoading:{},isLoadingModifiers:{}}),emits:["update:isLoading"],setup(o){const n=e.useModel(o,"isLoading"),t=w(),a=e.useSlots(),i=new Map,u=()=>{if(!a.default)return;const c=a.default({}).find(s=>s.key==="_menu");c&&r(c.children)},r=c=>{c.forEach(s=>{if(s.type.__name&&s.type.__name!==v.__name)return;if(!s.type.__name&&typeof s.children=="object"){r(s.children);return}if(!s.props?.name||s.props?.disabled)return;const I={title:(s.children.default?.()[0].children).trim(),icon:s.props.icon,component:s.props.component?e.markRaw(s.props.component):v.props.component.default,scrollable:s.props.scrollable??v.props.scrollable.default};i.set(s.props.name,I)})},l=e.ref(null);let d=0;e.watch(()=>t.activeItemName,async()=>{const c=++d;if(i.size===0&&u(),i.size===0){t.activeItemName="";return}if(l.value=i.get(t.activeItemName)??null,!l.value&&t.$id){const s=f.getHash(t.$id);if(l.value=i.get(s)??null,l.value){t.activeItemName=s;return}}if(!l.value){t.activeItemName=i.keys().next().value;return}if(l.value.component===t.component){n.value=!1;return}t.$id&&f.setHash(t.$id,t.activeItemName,!1),n.value=!0,await C(l.value.component,()=>c===d),c===d&&(t.scrollable=l.value.scrollable,t.component=l.value.component,l.value&&!t.component&&console.warn(`Компонент вкладки ${t.activeItemName} не найден. Добавьте props.component для пункта меню ${t.activeItemName}.`))},{immediate:!0});const m=e.ref();let b;return e.onMounted(()=>{b=new ResizeObserver(()=>{m.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top",m.value.offsetHeight+"px")}),b.observe(m.value)}),e.onUnmounted(()=>{b.disconnect()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:m,class:e.normalizeClass({"top-tabsView_menu":!0,"top-tabsView_menu-inPopup_0":!e.unref(t).showMenuInPopup,"top-tabsView_menu-inPopup_1":e.unref(t).showMenuInPopup,"top-tabsView_menu-short":e.unref(t).isShort&&!e.unref(t).showMenuInPopup})},[e.unref(t).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0},{opener:e.withCtx(()=>[e.createElementVNode("div",L,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-tabsView_menuOpenerActiveItem","data-top-icon":l.value.icon},[e.createElementVNode("span",P,e.toDisplayString(l.value.title),1)],8,E)):e.createCommentVNode("",!0),s[1]||(s[1]=e.createElementVNode("div",{class:"top-tabsView_menuOpenerIcon","data-top-icon":""},null,-1))])]),contentList:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",T,[e.renderSlot(c.$slots,"default")]),o.isShortable?(e.openBlock(),e.createElementBlock("div",z,[o.isShortable?(e.openBlock(),e.createBlock(v,{key:0,icon:e.unref(t).isShort?"":"",onClick:s[0]||(s[0]=I=>e.unref(t).isShort=!e.unref(t).isShort)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t).isShort?"":"Свернуть"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],2))}}),O=e.defineComponent({__name:"tabsView",props:e.mergeModels({modelValue:{},pageMod:{type:Boolean},showMenuInPopup:{type:Boolean,default:void 0},isShortable:{type:Boolean,default:!1},idState:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,t=e.useModel(o,"modelValue"),a=$(n,t),i=Math.random();n.pageMod&&p.Core.state.documentClassModificators.set(i,"top-hasTabsViewPageMod"),e.onUnmounted(()=>{n.pageMod&&p.Core.state.documentClassModificators.delete(i),a.$id&&f.delHash(a.$id,a.activeItemName,!0)});const u=e.ref(),r=e.ref(!1);return e.watch([u,()=>a.component],()=>{r.value=B(a.component)},{immediate:!0}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabsView":!0,"top-tabsView-pageMod":n.pageMod,"top-tabsView-inPopup":e.unref(a).showMenuInPopup})},[e.createVNode(R,{isShortable:o.isShortable,isLoading:r.value,"onUpdate:isLoading":d[0]||(d[0]=m=>r.value=m)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"menu")]),_:3},8,["isShortable","isLoading"]),e.createElementVNode("div",{class:e.normalizeClass({"top-tabsView_contents":!0,"top-tabsView_contents-isLoading":r.value,"top-tabsView_contents-noScrollable":!e.unref(a).scrollable})},[r.value?(e.openBlock(),e.createBlock(p.TopLoadbar,{key:0})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).component),{ref_key:"componentRef",ref:u},null,512))],1024))],2)],2))}}),D={},H={class:"top-tabsView_menuDelimeter"};function K(o,n){return e.openBlock(),e.createElementBlock("div",H)}const j=p._export_sfc(D,[["render",K]]),x=e.defineComponent({__name:"menuTitle",props:{isSubtitle:{type:Boolean}},setup(o){const n=w();return(t,a)=>e.unref(n).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main$2),{key:0,type:"title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.unref(n).isShort?(e.openBlock(),e.createBlock(j,{key:1})):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"top-tabsView_menuTitle":!0,"top-tabsView_menuTitle-subtitle":o.isSubtitle})},[e.renderSlot(t.$slots,"default")],2))}});h.TopTabsView=O,h.TopTabsViewMenuItem=v,h.TopTabsViewMenuTitle=x,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
1
+ define(["require","exports","vue","../.chunks/forms-DDNzqU6o.amd","../utils/route.amd","../.chunks/store-YRW59xEF.amd","../.chunks/popupHint.vue_vue_type_style_index_0_lang-Bu_HvFoW.amd","../utils/system.amd","../require/css.amd!../assets/tabsView.css"],(function(A,h,e,p,f,g,S,M){"use strict";if(typeof e>"u")var e=window.Vue;const k=(o,n)=>`top:${String(o)}:${n}`,y={loadLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);try{const a=JSON.parse(localStorage.getItem(t));typeof a==typeof n[o]&&(n[o]=a)}catch{console.warn(new Error(`В localStorage[${t}] не корректный json`))}},addSaverLocalStorge:(o,n)=>{if(!n.$id)return;const t=k(o,n.$id);e.watch(()=>n[o],()=>{localStorage.setItem(t,JSON.stringify(n[o]))},{immediate:!0})}},_=new Set;addEventListener("popstate",o=>{_.forEach(n=>n(o))});const V=Symbol(),$=(o,n)=>{const t=g.defineStore(V,()=>{const a=e.computed(()=>o.showMenuInPopup??p.Core.state.isMobile),i=e.computed(()=>o.pageMod),u=e.ref(!1),r=e.ref(void 0),l=e.ref(!0);return{showMenuInPopup:a,pageMod:i,isShort:u,activeItemName:n,component:r,scrollable:l}},o.idState);if(o.isShortable){const a="isShort";y.loadLocalStorge(a,t),y.addSaverLocalStorge(a,t)}if(t.$id){const a=i=>{n.value=f.getHash(t.$id)};_.add(a)}return t},w=()=>g.useStore(V),N={key:1,class:"top-ellipsis"},v=e.defineComponent({__name:"menuItem",props:{name:{},href:{},icon:{},disabled:{type:Boolean},component:{default:void 0},scrollable:{type:Boolean,default:!0}},setup(o){const n=o,t=w(),a=e.computed(()=>n.name&&t.$id?f.genHash(t.$id,n.name):n.href),i=e.computed(()=>t.showMenuInPopup?S._sfc_main$1:a?"a":"button"),u=r=>{!n.href&&a.value&&r.preventDefault(),n.name&&(t.activeItemName=n.name)};return(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value),{target:"_self",class:e.normalizeClass({"top-tabsView_menuItem":!e.unref(t).showMenuInPopup,"top-active":o.name&&e.unref(t).activeItemName===o.name,"top-disabled":o.disabled,"top-spa-disabled":!0}),href:a.value,"data-top-icon":o.icon||void 0,disabled:o.disabled||void 0,onClick:u},{default:e.withCtx(()=>[e.unref(t).showMenuInPopup?e.renderSlot(r.$slots,"default",{key:0}):r.$slots.default&&!e.unref(t).isShort?(e.openBlock(),e.createElementBlock("span",N,[e.renderSlot(r.$slots,"default")])):e.createCommentVNode("",!0)]),_:3},8,["class","href","data-top-icon","disabled"]))}}),B=o=>o?.name==="AsyncComponentWrapper"&&!o?.__asyncResolved,C=async(o,n)=>{o?.name==="AsyncComponentWrapper"&&(o?.__asyncResolved||(o.__asyncLoader(),await M.sleepWhile(()=>n()&&B(o),200)))},L={class:"top-tabsView_menuOpener"},E=["data-top-icon"],P={class:"top-ellipsis"},T={class:"top-tabsView_menuList"},z={key:0,class:"top-tabsView_menuFooter"},R=e.defineComponent({__name:"menu",props:e.mergeModels({isShortable:{type:Boolean},isLoading:{type:Boolean}},{isLoading:{},isLoadingModifiers:{}}),emits:["update:isLoading"],setup(o){const n=e.useModel(o,"isLoading"),t=w(),a=e.useSlots(),i=new Map,u=()=>{if(!a.default)return;const c=a.default({}).find(s=>s.key==="_menu");c&&r(c.children)},r=c=>{c.forEach(s=>{if(s.type.__name&&s.type.__name!==v.__name)return;if(!s.type.__name&&typeof s.children=="object"){r(s.children);return}if(!s.props?.name||s.props?.disabled)return;const I={title:(s.children.default?.()[0].children).trim(),icon:s.props.icon,component:s.props.component?e.markRaw(s.props.component):v.props.component.default,scrollable:s.props.scrollable??v.props.scrollable.default};i.set(s.props.name,I)})},l=e.ref(null);let d=0;e.watch(()=>t.activeItemName,async()=>{const c=++d;if(i.size===0&&u(),i.size===0){t.activeItemName="";return}if(l.value=i.get(t.activeItemName)??null,!l.value&&t.$id){const s=f.getHash(t.$id);if(l.value=i.get(s)??null,l.value){t.activeItemName=s;return}}if(!l.value){t.activeItemName=i.keys().next().value;return}if(l.value.component===t.component){n.value=!1;return}t.$id&&f.setHash(t.$id,t.activeItemName,!1),n.value=!0,await C(l.value.component,()=>c===d),c===d&&(t.scrollable=l.value.scrollable,t.component=l.value.component,l.value&&!t.component&&console.warn(`Компонент вкладки ${t.activeItemName} не найден. Добавьте props.component для пункта меню ${t.activeItemName}.`))},{immediate:!0});const m=e.ref();let b;return e.onMounted(()=>{b=new ResizeObserver(()=>{m.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top",m.value.offsetHeight+"px")}),b.observe(m.value)}),e.onUnmounted(()=>{b.disconnect()}),(c,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"elRef",ref:m,class:e.normalizeClass({"top-tabsView_menu":!0,"top-tabsView_menu-inPopup_0":!e.unref(t).showMenuInPopup,"top-tabsView_menu-inPopup_1":e.unref(t).showMenuInPopup,"top-tabsView_menu-short":e.unref(t).isShort&&!e.unref(t).showMenuInPopup})},[e.unref(t).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main),{key:0},{opener:e.withCtx(()=>[e.createElementVNode("div",L,[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"top-tabsView_menuOpenerActiveItem","data-top-icon":l.value.icon},[e.createElementVNode("span",P,e.toDisplayString(l.value.title),1)],8,E)):e.createCommentVNode("",!0),s[1]||(s[1]=e.createElementVNode("div",{class:"top-tabsView_menuOpenerIcon","data-top-icon":""},null,-1))])]),contentList:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",T,[e.renderSlot(c.$slots,"default")]),o.isShortable?(e.openBlock(),e.createElementBlock("div",z,[o.isShortable?(e.openBlock(),e.createBlock(v,{key:0,icon:e.unref(t).isShort?"":"",onClick:s[0]||(s[0]=I=>e.unref(t).isShort=!e.unref(t).isShort)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t).isShort?"":"Свернуть"),1)]),_:1},8,["icon"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))],2))}}),O=e.defineComponent({__name:"tabsView",props:e.mergeModels({modelValue:{},pageMod:{type:Boolean},showMenuInPopup:{type:Boolean,default:void 0},isShortable:{type:Boolean,default:!1},idState:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(o){const n=o,t=e.useModel(o,"modelValue"),a=$(n,t),i=Math.random();n.pageMod&&p.Core.state.documentClassModificators.set(i,"top-hasTabsViewPageMod"),e.onUnmounted(()=>{n.pageMod&&p.Core.state.documentClassModificators.delete(i),a.$id&&f.delHash(a.$id,a.activeItemName,!0)});const u=e.ref(),r=e.ref(!1);return e.watch([u,()=>a.component],()=>{r.value=B(a.component)},{immediate:!0}),(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"top-tabsView":!0,"top-tabsView-pageMod":n.pageMod,"top-tabsView-inPopup":e.unref(a).showMenuInPopup})},[e.createVNode(R,{isShortable:o.isShortable,isLoading:r.value,"onUpdate:isLoading":d[0]||(d[0]=m=>r.value=m)},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"menu")]),_:3},8,["isShortable","isLoading"]),e.createElementVNode("div",{class:e.normalizeClass({"top-tabsView_contents":!0,"top-tabsView_contents-isLoading":r.value,"top-tabsView_contents-noScrollable":!e.unref(a).scrollable})},[r.value?(e.openBlock(),e.createBlock(p.TopLoadbar,{key:0})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(a).component),{ref_key:"componentRef",ref:u},null,512))],1024))],2)],2))}}),D={},H={class:"top-tabsView_menuDelimeter"};function K(o,n){return e.openBlock(),e.createElementBlock("div",H)}const j=p._export_sfc(D,[["render",K]]),x=e.defineComponent({__name:"menuTitle",props:{isSubtitle:{type:Boolean}},setup(o){const n=w();return(t,a)=>e.unref(n).showMenuInPopup?(e.openBlock(),e.createBlock(e.unref(S._sfc_main$1),{key:0,type:"title"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3})):e.unref(n).isShort?(e.openBlock(),e.createBlock(j,{key:1})):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"top-tabsView_menuTitle":!0,"top-tabsView_menuTitle-subtitle":o.isSubtitle})},[e.renderSlot(t.$slots,"default")],2))}});h.TopTabsView=O,h.TopTabsViewMenuItem=v,h.TopTabsViewMenuTitle=x,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=tabsView.amd.js.map
@@ -3,11 +3,11 @@
3
3
  const fileNames = ['../assets/tabsView.css'].map(fileName => import.meta.resolve(fileName));
4
4
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
5
5
 
6
- import { watch as k, computed as I, ref as f, defineComponent as M, createBlock as m, openBlock as r, resolveDynamicComponent as B, normalizeClass as g, unref as s, withCtx as b, renderSlot as v, createElementBlock as p, createCommentVNode as S, mergeModels as R, useModel as C, useSlots as j, onMounted as x, onUnmounted as E, createElementVNode as y, toDisplayString as P, Fragment as F, createTextVNode as W, markRaw as J, createVNode as U, KeepAlive as q } from "vue";
7
- import { C as V, T as G, k as Q } from "../.chunks/forms-BpbQYyEQ.es.js";
6
+ import { watch as k, computed as I, ref as f, defineComponent as M, openBlock as r, createBlock as m, resolveDynamicComponent as B, normalizeClass as g, unref as s, withCtx as b, renderSlot as v, createElementBlock as p, createCommentVNode as S, useModel as R, useSlots as j, onMounted as x, onUnmounted as C, createElementVNode as y, toDisplayString as P, Fragment as F, createTextVNode as W, mergeModels as E, markRaw as J, createVNode as U, KeepAlive as q } from "vue";
7
+ import { C as V, T as G, k as Q } from "../.chunks/forms-DtC-EKJL.es.js";
8
8
  import { getHash as O, genHash as X, setHash as Y, delHash as Z } from "../utils/route.js";
9
- import { u as ee, d as te } from "../.chunks/store-CX_6ZXhO.es.js";
10
- import { b as z, _ as oe } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-if4Qli-k.es.js";
9
+ import { d as ee, u as te } from "../.chunks/store-CX_6ZXhO.es.js";
10
+ import { a as z, _ as oe } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-DAQIAxvu.es.js";
11
11
  import { sleepWhile as ae } from "../utils/system.js";
12
12
  const D = (t, o) => `top:${String(t)}:${o}`, ne = (t, o) => {
13
13
  if (!o.$id) return;
@@ -32,7 +32,7 @@ addEventListener("popstate", (t) => {
32
32
  H.forEach((o) => o(t));
33
33
  });
34
34
  const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
35
- const e = te(K, () => {
35
+ const e = ee(K, () => {
36
36
  const a = I(() => t.showMenuInPopup ?? V.state.isMobile), c = I(() => t.pageMod), d = f(!1), l = f(void 0), i = f(!0);
37
37
  return {
38
38
  showMenuInPopup: a,
@@ -54,7 +54,7 @@ const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
54
54
  H.add(a);
55
55
  }
56
56
  return e;
57
- }, L = () => ee(K), le = {
57
+ }, L = () => te(K), le = {
58
58
  key: 1,
59
59
  class: "top-ellipsis"
60
60
  }, w = /* @__PURE__ */ M({
@@ -99,7 +99,7 @@ const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
99
99
  class: "top-tabsView_menuFooter"
100
100
  }, fe = /* @__PURE__ */ M({
101
101
  __name: "menu",
102
- props: /* @__PURE__ */ R({
102
+ props: /* @__PURE__ */ E({
103
103
  isShortable: { type: Boolean },
104
104
  isLoading: { type: Boolean }
105
105
  }, {
@@ -108,7 +108,7 @@ const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
108
108
  }),
109
109
  emits: ["update:isLoading"],
110
110
  setup(t) {
111
- const o = C(t, "isLoading"), e = L(), a = j(), c = /* @__PURE__ */ new Map(), d = () => {
111
+ const o = R(t, "isLoading"), e = L(), a = j(), c = /* @__PURE__ */ new Map(), d = () => {
112
112
  if (!a.default) return;
113
113
  const u = a.default({}).find((n) => n.key === "_menu");
114
114
  u && l(u.children);
@@ -163,7 +163,7 @@ const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
163
163
  $ = new ResizeObserver(() => {
164
164
  _.value.parentElement.style.setProperty("--top-tabsView-contents-offset-top", _.value.offsetHeight + "px");
165
165
  }), $.observe(_.value);
166
- }), E(() => {
166
+ }), C(() => {
167
167
  $.disconnect();
168
168
  }), (u, n) => (r(), p("div", {
169
169
  ref_key: "elRef",
@@ -216,7 +216,7 @@ const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
216
216
  }
217
217
  }), $e = /* @__PURE__ */ M({
218
218
  __name: "tabsView",
219
- props: /* @__PURE__ */ R({
219
+ props: /* @__PURE__ */ E({
220
220
  modelValue: {},
221
221
  pageMod: { type: Boolean },
222
222
  showMenuInPopup: { type: Boolean, default: void 0 },
@@ -228,8 +228,8 @@ const K = /* @__PURE__ */ Symbol(), ie = (t, o) => {
228
228
  }),
229
229
  emits: ["update:modelValue"],
230
230
  setup(t) {
231
- const o = t, e = C(t, "modelValue"), a = ie(o, e), c = Math.random();
232
- o.pageMod && V.state.documentClassModificators.set(c, "top-hasTabsViewPageMod"), E(() => {
231
+ const o = t, e = R(t, "modelValue"), a = ie(o, e), c = Math.random();
232
+ o.pageMod && V.state.documentClassModificators.set(c, "top-hasTabsViewPageMod"), C(() => {
233
233
  o.pageMod && V.state.documentClassModificators.delete(c), a.$id && Z(a.$id, a.activeItemName, !0);
234
234
  });
235
235
  const d = f(), l = f(!1);
@@ -1,4 +1,4 @@
1
- import { C as t, u as a, b as s } from "../.chunks/forms-BpbQYyEQ.es.js";
1
+ import { b as s, u as a, C as t } from "../.chunks/forms-DtC-EKJL.es.js";
2
2
  async function r(o, e = !1) {
3
3
  let i = !1;
4
4
  return navigator.clipboard && (await navigator.clipboard.writeText(o), i = !0, e && t.notice(a().Common.Copied_to_clipboard + "", "info")), i;
package/utils/date.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as t, K as s, P as o, N as r, O as g, M as n, J as D, L as d } from "../.chunks/forms-BpbQYyEQ.es.js";
1
+ import { c as t, J as s, K as o, L as r, M as g, N as n, O as D, P as d } from "../.chunks/forms-DtC-EKJL.es.js";
2
2
  export {
3
3
  t as dateFormat,
4
4
  s as dateToString,
package/utils/device.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z as e, x as l, A as t, B as i, D as o, y as g, w as r, l as S, v as c, t as p, b } from "../.chunks/forms-BpbQYyEQ.es.js";
1
+ import { t as e, v as l, w as t, x as i, y as o, z as g, A as r, l as S, B as c, D as p, b } from "../.chunks/forms-DtC-EKJL.es.js";
2
2
  export {
3
3
  e as get$scroll,
4
4
  l as getCommandKeyLabel,
package/utils/lodash.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as a, d as s, G as m, I as r, H as t } from "../.chunks/forms-BpbQYyEQ.es.js";
1
+ import { F as a, d as s, G as m, H as r, I as t } from "../.chunks/forms-DtC-EKJL.es.js";
2
2
  export {
3
3
  a as cloneDeep,
4
4
  s as debounce,
package/utils/price.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as a, a as o } from "../.chunks/forms-BpbQYyEQ.es.js";
1
+ import { C as a, a as o } from "../.chunks/forms-DtC-EKJL.es.js";
2
2
  const i = (t, e, c = a.state.currency) => {
3
3
  e = e ?? o().value;
4
4
  let r = t.toLocaleString(e, { style: "currency", currency: c, maximumFractionDigits: 2 });
@@ -1,7 +1,7 @@
1
- import "../.chunks/forms-BpbQYyEQ.es.js";
2
- import "../.chunks/core-DoIr-EAf.es.js";
1
+ import "../.chunks/forms-DtC-EKJL.es.js";
2
+ import "../.chunks/core-Dgj_YGWh.es.js";
3
3
  import "vue";
4
- import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-D8WYUfXI.es.js";
4
+ import "../.chunks/dialogs.vue_vue_type_script_setup_true_lang-CJ97l1ST.es.js";
5
5
  const k = {
6
6
  0: "Yandex",
7
7
  20: "Yandex.com",
package/utils/string.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getDomainRegexp as u } from "./check.js";
2
- import { a as n } from "../.chunks/forms-BpbQYyEQ.es.js";
2
+ import { a as n } from "../.chunks/forms-DtC-EKJL.es.js";
3
3
  const s = new RegExp(`^[^a-zа-я0-9_%#!?.:'"«»[\\](){} \\r\\n\\t<>&/+-]`, "i"), g = (e) => {
4
4
  const r = e?.[0]?.match(s);
5
5
  return {
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy-BJRCrEiD.es.js","sources":["../../src/api/api/utils/lazy.ts"],"sourcesContent":["/**\n * Общие утилиты, которые должны грузиться в отложенном режиме\n *\n * Все такие утилиты являются асинхронными\n */\n\n/**\n * Выполнить post запрос в окне браузера\n *\n * @see Api.ClientRequest.callInNewWindow\n * @see Api.ClientRequest.callInSelfWindow\n */\nexport const postInWindow = async (url: string, data: Record<string, any>, target: '_blank' | '_self'): Promise<void> => {\n\tconst form = document.createElement('form');\n\tform.target = target;\n\tform.action = url;\n\tform.method = 'post';\n\n\tdataToForm(form, data);\n\n\tdocument.body.appendChild(form);\n\tform.submit();\n\tform.remove();\n};\n\n/**\n * Вставляет данные в HTML форму\n */\nexport const dataToForm = (elForm: HTMLFormElement, data: Record<string, any>): void => {\n\tconst formData = formDataSerializer(data);\n\n\tfor (const [key, value] of formData.entries()) {\n\t\tif (value instanceof File) {\n\t\t\tthrow new Error('Files can not be manual set in `HTMLFormElement`');\n\t\t}\n\n\t\tconst input = document.createElement('input');\n\t\t// input.type = 'hidden';\n\t\tinput.name = key;\n\t\tinput.value = String(value);\n\t\telForm.appendChild(input);\n\t}\n};\n\n/**\n * Сериализация данных в объект FormData\n *\n * Для отправки файлов или генерации форм\n */\nexport const formDataSerializer = (data: Record<string, any>, formData: FormData = new FormData(), parentKey?: string): FormData => {\n\tfor (const [key, value] of Object.entries(data)) {\n\t\tif (value === undefined || value === null) continue;\n\n\t\tconst fieldKey = parentKey ? `${parentKey}[${key}]` : key;\n\n\t\tswitch (true) {\n\t\t\tcase value instanceof File:\n\t\t\t\tformData.append(fieldKey, value, value.name);\n\n\t\t\t\tbreak;\n\t\t\tcase value instanceof FileList:\n\t\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\t\tconst file = value.item(i);\n\t\t\t\t\tif (file) {\n\t\t\t\t\t\tformData.append(fieldKey + '[]', file, file.name);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase value instanceof Blob:\n\t\t\t\tformData.append(fieldKey, value);\n\n\t\t\t\tbreak;\n\t\t\tcase Array.isArray(value):\n\t\t\t\tif (value.length === 0) {\n\t\t\t\t\tformData.append(fieldKey + '[]', '');\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tvalue.forEach((item, key) => {\n\t\t\t\t\tformDataSerializer({ [fieldKey + '[' + key + ']']: item }, formData);\n\t\t\t\t});\n\n\t\t\t\tbreak;\n\t\t\tcase value instanceof Date:\n\t\t\t\t// для совместимости с JSON.stringify();\n\t\t\t\tformData.append(fieldKey, value.toISOString());\n\n\t\t\t\tbreak;\n\t\t\tcase typeof value === 'object':\n\t\t\t\tformDataSerializer(value, formData, fieldKey);\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tformData.append(fieldKey, String(value));\n\t\t}\n\t}\n\n\treturn formData;\n};\n\n/**\n * Сериализация данных для вставки в виде параметров в url\n */\nexport const querySerializer = (data: Record<string, unknown>): string => {\n\tconst searchParams = new URLSearchParams();\n\n\tconst appendParam = (path: string, currentValue: unknown): void => {\n\t\tif (currentValue == null) return;\n\n\t\tif (Array.isArray(currentValue)) {\n\t\t\tfor (const [key, value] of Object.entries(currentValue)) {\n\t\t\t\tappendParam(`${path}[${key}]`, value);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof currentValue === 'object') {\n\t\t\tfor (const [key, value] of Object.entries(currentValue as Record<string, unknown>)) {\n\t\t\t\tappendParam(`${path}[${key}]`, value);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tsearchParams.append(path, String(currentValue));\n\t};\n\n\tfor (const [key, value] of Object.entries(data)) {\n\t\tappendParam(key, value);\n\t}\n\n\treturn searchParams.toString();\n};\n"],"names":["postInWindow","url","data","target","form","dataToForm","elForm","formData","formDataSerializer","key","value","input","parentKey","fieldKey","file","item","querySerializer","searchParams","appendParam","path","currentValue"],"mappings":"AAYO,MAAMA,IAAe,OAAOC,GAAaC,GAA2BC,MAA8C;AACxH,QAAMC,IAAO,SAAS,cAAc,MAAM;AAC1C,EAAAA,EAAK,SAASD,GACdC,EAAK,SAASH,GACdG,EAAK,SAAS,QAEdC,EAAWD,GAAMF,CAAI,GAErB,SAAS,KAAK,YAAYE,CAAI,GAC9BA,EAAK,OAAA,GACLA,EAAK,OAAA;AACN,GAKaC,IAAa,CAACC,GAAyBJ,MAAoC;AACvF,QAAMK,IAAWC,EAAmBN,CAAI;AAExC,aAAW,CAACO,GAAKC,CAAK,KAAKH,EAAS,WAAW;AAC9C,QAAIG,aAAiB;AACpB,YAAM,IAAI,MAAM,kDAAkD;AAGnE,UAAMC,IAAQ,SAAS,cAAc,OAAO;AAE5C,IAAAA,EAAM,OAAOF,GACbE,EAAM,QAAQ,OAAOD,CAAK,GAC1BJ,EAAO,YAAYK,CAAK;AAAA,EACzB;AACD,GAOaH,IAAqB,CAACN,GAA2BK,IAAqB,IAAI,SAAA,GAAYK,MAAiC;AACnI,aAAW,CAACH,GAAKC,CAAK,KAAK,OAAO,QAAQR,CAAI,GAAG;AAChD,QAA2BQ,KAAU,KAAM;AAE3C,UAAMG,IAAWD,IAAY,GAAGA,CAAS,IAAIH,CAAG,MAAMA;AAEtD,YAAQ,IAAA;AAAA,MACP,KAAKC,aAAiB;AACrB,QAAAH,EAAS,OAAOM,GAAUH,GAAOA,EAAM,IAAI;AAE3C;AAAA,MACD,KAAKA,aAAiB;AACrB,iBAAS,IAAI,GAAG,IAAIA,EAAM,QAAQ,KAAK;AACtC,gBAAMI,IAAOJ,EAAM,KAAK,CAAC;AACzB,UAAII,KACHP,EAAS,OAAOM,IAAW,MAAMC,GAAMA,EAAK,IAAI;AAAA,QAElD;AAEA;AAAA,MACD,KAAKJ,aAAiB;AACrB,QAAAH,EAAS,OAAOM,GAAUH,CAAK;AAE/B;AAAA,MACD,KAAK,MAAM,QAAQA,CAAK;AACvB,YAAIA,EAAM,WAAW,GAAG;AACvB,UAAAH,EAAS,OAAOM,IAAW,MAAM,EAAE;AAEnC;AAAA,QACD;AAEA,QAAAH,EAAM,QAAQ,CAACK,GAAMN,MAAQ;AAC5B,UAAAD,EAAmB,EAAE,CAACK,IAAW,MAAMJ,IAAM,GAAG,GAAGM,EAAA,GAAQR,CAAQ;AAAA,QACpE,CAAC;AAED;AAAA,MACD,KAAKG,aAAiB;AAErB,QAAAH,EAAS,OAAOM,GAAUH,EAAM,YAAA,CAAa;AAE7C;AAAA,MACD,KAAK,OAAOA,KAAU;AACrB,QAAAF,EAAmBE,GAAOH,GAAUM,CAAQ;AAE5C;AAAA,MACD;AACC,QAAAN,EAAS,OAAOM,GAAU,OAAOH,CAAK,CAAC;AAAA,IAAA;AAAA,EAE1C;AAEA,SAAOH;AACR,GAKaS,IAAkB,CAACd,MAA0C;AACzE,QAAMe,IAAe,IAAI,gBAAA,GAEnBC,IAAc,CAACC,GAAcC,MAAgC;AAClE,QAAIA,KAAgB,MAEpB;AAAA,UAAI,MAAM,QAAQA,CAAY,GAAG;AAChC,mBAAW,CAACX,GAAKC,CAAK,KAAK,OAAO,QAAQU,CAAY;AACrD,UAAAF,EAAY,GAAGC,CAAI,IAAIV,CAAG,KAAKC,CAAK;AAErC;AAAA,MACD;AAEA,UAAI,OAAOU,KAAiB,UAAU;AACrC,mBAAW,CAACX,GAAKC,CAAK,KAAK,OAAO,QAAQU,CAAuC;AAChF,UAAAF,EAAY,GAAGC,CAAI,IAAIV,CAAG,KAAKC,CAAK;AAErC;AAAA,MACD;AAEA,MAAAO,EAAa,OAAOE,GAAM,OAAOC,CAAY,CAAC;AAAA;AAAA,EAC/C;AAEA,aAAW,CAACX,GAAKC,CAAK,KAAK,OAAO,QAAQR,CAAI;AAC7C,IAAAgB,EAAYT,GAAKC,CAAK;AAGvB,SAAOO,EAAa,SAAA;AACrB;"}
@@ -1,2 +0,0 @@
1
- define(["require","exports"],(function(b,s){"use strict";if(typeof l>"u")var l=window.Vue;const u=async(a,t,i)=>{const n=document.createElement("form");n.target=i,n.action=a,n.method="post",d(n,t),document.body.appendChild(n),n.submit(),n.remove()},d=(a,t)=>{const i=f(t);for(const[n,e]of i.entries()){if(e instanceof File)throw new Error("Files can not be manual set in `HTMLFormElement`");const o=document.createElement("input");o.name=n,o.value=String(e),a.appendChild(o)}},f=(a,t=new FormData,i)=>{for(const[n,e]of Object.entries(a)){if(e==null)continue;const o=i?`${i}[${n}]`:n;switch(!0){case e instanceof File:t.append(o,e,e.name);break;case e instanceof FileList:for(let r=0;r<e.length;r++){const c=e.item(r);c&&t.append(o+"[]",c,c.name)}break;case e instanceof Blob:t.append(o,e);break;case Array.isArray(e):if(e.length===0){t.append(o+"[]","");break}e.forEach((r,c)=>{f({[o+"["+c+"]"]:r},t)});break;case e instanceof Date:t.append(o,e.toISOString());break;case typeof e=="object":f(e,t,o);break;default:t.append(o,String(e))}}return t},p=a=>{const t=new URLSearchParams,i=(n,e)=>{if(e!=null){if(Array.isArray(e)){for(const[o,r]of Object.entries(e))i(`${n}[${o}]`,r);return}if(typeof e=="object"){for(const[o,r]of Object.entries(e))i(`${n}[${o}]`,r);return}t.append(n,String(e))}};for(const[n,e]of Object.entries(a))i(n,e);return t.toString()};s.dataToForm=d,s.formDataSerializer=f,s.postInWindow=u,s.querySerializer=p,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
2
- //# sourceMappingURL=lazy-DZK9LT7a.amd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy-DZK9LT7a.amd.js","sources":["../../src/api/api/utils/lazy.ts"],"sourcesContent":["/**\n * Общие утилиты, которые должны грузиться в отложенном режиме\n *\n * Все такие утилиты являются асинхронными\n */\n\n/**\n * Выполнить post запрос в окне браузера\n *\n * @see Api.ClientRequest.callInNewWindow\n * @see Api.ClientRequest.callInSelfWindow\n */\nexport const postInWindow = async (url: string, data: Record<string, any>, target: '_blank' | '_self'): Promise<void> => {\n\tconst form = document.createElement('form');\n\tform.target = target;\n\tform.action = url;\n\tform.method = 'post';\n\n\tdataToForm(form, data);\n\n\tdocument.body.appendChild(form);\n\tform.submit();\n\tform.remove();\n};\n\n/**\n * Вставляет данные в HTML форму\n */\nexport const dataToForm = (elForm: HTMLFormElement, data: Record<string, any>): void => {\n\tconst formData = formDataSerializer(data);\n\n\tfor (const [key, value] of formData.entries()) {\n\t\tif (value instanceof File) {\n\t\t\tthrow new Error('Files can not be manual set in `HTMLFormElement`');\n\t\t}\n\n\t\tconst input = document.createElement('input');\n\t\t// input.type = 'hidden';\n\t\tinput.name = key;\n\t\tinput.value = String(value);\n\t\telForm.appendChild(input);\n\t}\n};\n\n/**\n * Сериализация данных в объект FormData\n *\n * Для отправки файлов или генерации форм\n */\nexport const formDataSerializer = (data: Record<string, any>, formData: FormData = new FormData(), parentKey?: string): FormData => {\n\tfor (const [key, value] of Object.entries(data)) {\n\t\tif (value === undefined || value === null) continue;\n\n\t\tconst fieldKey = parentKey ? `${parentKey}[${key}]` : key;\n\n\t\tswitch (true) {\n\t\t\tcase value instanceof File:\n\t\t\t\tformData.append(fieldKey, value, value.name);\n\n\t\t\t\tbreak;\n\t\t\tcase value instanceof FileList:\n\t\t\t\tfor (let i = 0; i < value.length; i++) {\n\t\t\t\t\tconst file = value.item(i);\n\t\t\t\t\tif (file) {\n\t\t\t\t\t\tformData.append(fieldKey + '[]', file, file.name);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase value instanceof Blob:\n\t\t\t\tformData.append(fieldKey, value);\n\n\t\t\t\tbreak;\n\t\t\tcase Array.isArray(value):\n\t\t\t\tif (value.length === 0) {\n\t\t\t\t\tformData.append(fieldKey + '[]', '');\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tvalue.forEach((item, key) => {\n\t\t\t\t\tformDataSerializer({ [fieldKey + '[' + key + ']']: item }, formData);\n\t\t\t\t});\n\n\t\t\t\tbreak;\n\t\t\tcase value instanceof Date:\n\t\t\t\t// для совместимости с JSON.stringify();\n\t\t\t\tformData.append(fieldKey, value.toISOString());\n\n\t\t\t\tbreak;\n\t\t\tcase typeof value === 'object':\n\t\t\t\tformDataSerializer(value, formData, fieldKey);\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tformData.append(fieldKey, String(value));\n\t\t}\n\t}\n\n\treturn formData;\n};\n\n/**\n * Сериализация данных для вставки в виде параметров в url\n */\nexport const querySerializer = (data: Record<string, unknown>): string => {\n\tconst searchParams = new URLSearchParams();\n\n\tconst appendParam = (path: string, currentValue: unknown): void => {\n\t\tif (currentValue == null) return;\n\n\t\tif (Array.isArray(currentValue)) {\n\t\t\tfor (const [key, value] of Object.entries(currentValue)) {\n\t\t\t\tappendParam(`${path}[${key}]`, value);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif (typeof currentValue === 'object') {\n\t\t\tfor (const [key, value] of Object.entries(currentValue as Record<string, unknown>)) {\n\t\t\t\tappendParam(`${path}[${key}]`, value);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tsearchParams.append(path, String(currentValue));\n\t};\n\n\tfor (const [key, value] of Object.entries(data)) {\n\t\tappendParam(key, value);\n\t}\n\n\treturn searchParams.toString();\n};\n"],"names":["postInWindow","url","data","target","form","dataToForm","elForm","formData","formDataSerializer","key","value","input","parentKey","fieldKey","i","file","key2","item","querySerializer","searchParams","appendParam","path","currentValue"],"mappings":"0FAYO,MAAAA,EAAA,MAAAC,EAAAC,EAAAC,IAAA,wCAENC,EAAA,OAAAD,EACAC,EAAA,OAAAH,EACAG,EAAA,OAAA,OAEAC,EAAAD,EAAAF,CAAA,EAEA,SAAA,KAAA,YAAAE,CAAA,uBAGD,EAKOC,EAAA,CAAAC,EAAAJ,IAAA,CACN,MAAAK,EAAAC,EAAAN,CAAA,EAEA,SAAA,CAAAO,EAAAC,CAAA,IAAAH,EAAA,QAAA,EAAA,CACC,GAAAG,aAAA,KACC,MAAA,IAAA,MAAA,kDAAA,0CAKDC,EAAA,KAAAF,EACAE,EAAA,MAAA,OAAAD,CAAA,EACAJ,EAAA,YAAAK,CAAA,EAEF,EAOOH,EAAA,CAAAN,EAAAK,EAAA,IAAA,SAAAK,IAAA,CACN,SAAA,CAAAH,EAAAC,CAAA,IAAA,OAAA,QAAAR,CAAA,EAAA,qBAGC,MAAAW,EAAAD,EAAA,GAAAA,CAAA,IAAAH,CAAA,IAAAA,EAEA,OAAA,GAAA,8EAME,QAAAK,EAAA,EAAAA,EAAAJ,EAAA,OAAAI,IAAA,sBAGEP,EAAA,OAAAM,EAAA,KAAAE,EAAAA,EAAA,IAAA,+BAMFR,EAAA,OAAAM,EAAAH,CAAA,QAEA,KAAA,MAAA,QAAAA,CAAA,EAEA,GAAAA,EAAA,SAAA,EAAA,6CAOCF,EAAA,CAAA,CAAAK,EAAA,IAAAG,EAAA,GAAA,EAAAC,CAAA,EAAAV,CAAA,CAAmE,CAAA,iEAQpE,KAAA,OAAAG,GAAA,SAEAF,EAAAE,EAAAH,EAAAM,CAAA,qCAIuC,EAI1C,OAAAN,CACD,EAKOW,EAAAhB,GAAA,CACN,MAAAiB,EAAA,IAAA,gBAEAC,EAAA,CAAAC,EAAAC,IAAA,CACC,GAAAA,GAAA,KAEA,IAAA,MAAA,QAAAA,CAAA,EAAA,CACC,SAAA,CAAAb,EAAAC,CAAA,IAAA,OAAA,QAAAY,CAAA,EACCF,EAAA,GAAAC,CAAA,IAAAZ,CAAA,IAAAC,CAAA,SAKF,GAAA,OAAAY,GAAA,SAAA,CACC,SAAA,CAAAb,EAAAC,CAAA,IAAA,OAAA,QAAAY,CAAA,EACCF,EAAA,GAAAC,CAAA,IAAAZ,CAAA,IAAAC,CAAA,+BAK4C,EAG/C,SAAA,CAAAD,EAAAC,CAAA,IAAA,OAAA,QAAAR,CAAA,EACCkB,EAAAX,EAAAC,CAAA,EAGD,OAAAS,EAAA,SAAA,CACD"}