@topvisor/ui 1.0.41 → 1.0.42-checkvisibility.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.chunks/{core-CwjGTMhd.es.js → core-BAG3GPtC.es.js} +4 -4
  2. package/.chunks/{core-CwjGTMhd.es.js.map → core-BAG3GPtC.es.js.map} +1 -1
  3. package/.chunks/{core-D2o3elGA.amd.js → core-BW5pBSkC.amd.js} +2 -2
  4. package/.chunks/{core-D2o3elGA.amd.js.map → core-BW5pBSkC.amd.js.map} +1 -1
  5. package/.chunks/{datepicker-Byyye2pn.amd.js → datepicker-BWaVsTd0.amd.js} +2 -2
  6. package/.chunks/{datepicker-Byyye2pn.amd.js.map → datepicker-BWaVsTd0.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-N83oX3hx.es.js → datepicker-DCDYQmsc.es.js} +2 -2
  8. package/.chunks/{datepicker-N83oX3hx.es.js.map → datepicker-DCDYQmsc.es.js.map} +1 -1
  9. package/.chunks/{dialog_selectorRegions-pDIYvl7b.amd.js → dialog_selectorRegions-C-MZasKk.amd.js} +2 -2
  10. package/.chunks/{dialog_selectorRegions-pDIYvl7b.amd.js.map → dialog_selectorRegions-C-MZasKk.amd.js.map} +1 -1
  11. package/.chunks/{dialog_selectorRegions-lYV2SJBx.es.js → dialog_selectorRegions-DhFJmdQM.es.js} +4 -4
  12. package/.chunks/{dialog_selectorRegions-lYV2SJBx.es.js.map → dialog_selectorRegions-DhFJmdQM.es.js.map} +1 -1
  13. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B92h9NoR.amd.js +2 -0
  14. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B92h9NoR.amd.js.map +1 -0
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-X3S_WcSV.es.js → dialogs.vue_vue_type_script_setup_true_lang-LxNjWbxU.es.js} +113 -97
  16. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-LxNjWbxU.es.js.map +1 -0
  17. package/.chunks/{forms-C-fyoosd.es.js → forms-DOGPN_TR.es.js} +480 -468
  18. package/.chunks/{forms-C-fyoosd.es.js.map → forms-DOGPN_TR.es.js.map} +1 -1
  19. package/.chunks/forms-Gb7ujpmz.amd.js +3 -0
  20. package/.chunks/{forms-DO87ZZk9.amd.js.map → forms-Gb7ujpmz.amd.js.map} +1 -1
  21. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DDQSxC8E.amd.js → listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js} +2 -2
  22. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-DDQSxC8E.amd.js.map → listItem.vue_vue_type_script_setup_true_lang-CF_hIWa6.amd.js.map} +1 -1
  23. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BJTTvdc7.es.js → listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js} +2 -2
  24. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-BJTTvdc7.es.js.map → listItem.vue_vue_type_script_setup_true_lang-CJQj81Yq.es.js.map} +1 -1
  25. package/.chunks/{menu.vue_vue_type_style_index_0_lang-7eYwnVLw.amd.js → menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js} +2 -2
  26. package/.chunks/{menu.vue_vue_type_style_index_0_lang-7eYwnVLw.amd.js.map → menu.vue_vue_type_style_index_0_lang-CczcI_-j.amd.js.map} +1 -1
  27. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Bi9Z81pC.es.js → menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js} +2 -2
  28. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Bi9Z81pC.es.js.map → menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js.map} +1 -1
  29. package/.chunks/{notice-B8nfJMJN.amd.js → notice-C5sXcBql.amd.js} +2 -2
  30. package/.chunks/{notice-B8nfJMJN.amd.js.map → notice-C5sXcBql.amd.js.map} +1 -1
  31. package/.chunks/{notice-DCONQ8rR.es.js → notice-DE88Oe-t.es.js} +2 -2
  32. package/.chunks/{notice-DCONQ8rR.es.js.map → notice-DE88Oe-t.es.js.map} +1 -1
  33. package/.chunks/{page.vue_vue_type_script_setup_true_lang-Dze2ZUr3.es.js → page.vue_vue_type_script_setup_true_lang-DV1TJ_hF.es.js} +4 -4
  34. package/.chunks/page.vue_vue_type_script_setup_true_lang-DV1TJ_hF.es.js.map +1 -0
  35. package/.chunks/{page.vue_vue_type_script_setup_true_lang-Cg3dLy7K.amd.js → page.vue_vue_type_script_setup_true_lang-wVql7Y7c.amd.js} +2 -2
  36. package/.chunks/page.vue_vue_type_script_setup_true_lang-wVql7Y7c.amd.js.map +1 -0
  37. package/.chunks/popup-B_8bvIsF.amd.js +2 -0
  38. package/.chunks/{popup-XXfdNLmr.amd.js.map → popup-B_8bvIsF.amd.js.map} +1 -1
  39. package/.chunks/{popup-PpCQY5Zi.es.js → popup-BjsK_pMZ.es.js} +106 -80
  40. package/.chunks/{popup-PpCQY5Zi.es.js.map → popup-BjsK_pMZ.es.js.map} +1 -1
  41. package/.chunks/{utils-DAIrXU57.amd.js → utils-BYruuiOR.amd.js} +2 -2
  42. package/.chunks/{utils-DAIrXU57.amd.js.map → utils-BYruuiOR.amd.js.map} +1 -1
  43. package/.chunks/utils-BbbR1pxf.amd.js +2 -0
  44. package/.chunks/utils-BbbR1pxf.amd.js.map +1 -0
  45. package/.chunks/{utils-BcKnFj1j.es.js → utils-CB-BjgcP.es.js} +242 -166
  46. package/.chunks/utils-CB-BjgcP.es.js.map +1 -0
  47. package/.chunks/{utils-DsICGMuv.es.js → utils-DtQUyz9-.es.js} +2 -2
  48. package/.chunks/{utils-DsICGMuv.es.js.map → utils-DtQUyz9-.es.js.map} +1 -1
  49. package/assets/core.css +1 -1
  50. package/assets/forms.css +1 -1
  51. package/assets/formsExt.css +1 -1
  52. package/assets/notice.css +1 -1
  53. package/charts/charts.amd.js +1 -1
  54. package/charts/charts.js +1 -1
  55. package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +3 -0
  56. package/components/dialog/lib/types.d.ts +23 -0
  57. package/components/dialog/lib/utils.d.ts +8 -8
  58. package/components/dialog/lib/utils.globalEvents.d.ts +2 -2
  59. package/components/dialog/lib/worker.d.ts +12 -11
  60. package/components/formsExt/formsExt.d.ts +2 -0
  61. package/components/formsExt/policy/policy.vue.d.ts +4 -0
  62. package/components/formsExt/policy/types.d.ts +10 -0
  63. package/components/formsExt/selector2/composables/useMenu.d.ts +2 -0
  64. package/components/formsExt/selector2/selector2.vue.d.ts +5 -180
  65. package/components/formsExt/selector2/types.d.ts +17 -8
  66. package/core/app.amd.js +1 -1
  67. package/core/app.js +5 -5
  68. package/core/core/core.d.ts +1 -1
  69. package/core/core/options.d.ts +7 -6
  70. package/core/core/state.d.ts +1 -1
  71. package/core/plugins/core.d.ts +1 -1
  72. package/core/utils/date.d.ts +30 -12
  73. package/core/utils/dom.d.ts +17 -1
  74. package/dialog/dialog.amd.js +1 -1
  75. package/dialog/dialog.js +2 -2
  76. package/forms/forms.amd.js +1 -1
  77. package/forms/forms.js +1 -1
  78. package/formsExt/formsExt.amd.js +1 -1
  79. package/formsExt/formsExt.amd.js.map +1 -1
  80. package/formsExt/formsExt.js +320 -283
  81. package/formsExt/formsExt.js.map +1 -1
  82. package/icomoon/demo.html +15 -1
  83. package/icomoon/fonts/Topvisor-2.eot +0 -0
  84. package/icomoon/fonts/Topvisor-2.svg +1 -0
  85. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  86. package/icomoon/fonts/Topvisor-2.woff +0 -0
  87. package/icomoon/selection.json +1 -1
  88. package/icomoon/style.css +8 -5
  89. package/layout/layout.amd.js +1 -1
  90. package/layout/layout.js +1 -1
  91. package/package.json +1 -1
  92. package/popup/popup.amd.js +1 -1
  93. package/popup/popup.js +2 -2
  94. package/popup/worker.amd.js +1 -1
  95. package/popup/worker.js +2 -2
  96. package/project/project.amd.js +1 -1
  97. package/project/project.js +5 -5
  98. package/tabsView/tabsView.amd.js +1 -1
  99. package/tabsView/tabsView.js +1 -1
  100. package/utils/clipboard.amd.js +1 -1
  101. package/utils/clipboard.js +1 -1
  102. package/utils/date.amd.js +1 -1
  103. package/utils/date.js +4 -3
  104. package/utils/device.amd.js +1 -1
  105. package/utils/device.js +1 -1
  106. package/utils/dom.amd.js +1 -1
  107. package/utils/dom.amd.js.map +1 -1
  108. package/utils/dom.js +44 -27
  109. package/utils/dom.js.map +1 -1
  110. package/utils/lodash.amd.js +1 -1
  111. package/utils/lodash.js +1 -1
  112. package/utils/price.amd.js +1 -1
  113. package/utils/price.js +1 -1
  114. package/utils/searchers.amd.js +1 -1
  115. package/utils/searchers.js +3 -3
  116. package/utils/string.amd.js +1 -1
  117. package/utils/string.js +1 -1
  118. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B14m3p7q.amd.js +0 -2
  119. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-B14m3p7q.amd.js.map +0 -1
  120. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-X3S_WcSV.es.js.map +0 -1
  121. package/.chunks/forms-DO87ZZk9.amd.js +0 -3
  122. package/.chunks/page.vue_vue_type_script_setup_true_lang-Cg3dLy7K.amd.js.map +0 -1
  123. package/.chunks/page.vue_vue_type_script_setup_true_lang-Dze2ZUr3.es.js.map +0 -1
  124. package/.chunks/popup-XXfdNLmr.amd.js +0 -2
  125. package/.chunks/utils-BcKnFj1j.es.js.map +0 -1
  126. package/.chunks/utils-pvFg1FqE.amd.js +0 -2
  127. package/.chunks/utils-pvFg1FqE.amd.js.map +0 -1
  128. package/icomoon/Topvisor icons.json +0 -6612
@@ -1,12 +1,12 @@
1
- import { Core as Y } from "../core/app.js";
2
- import { defineComponent as B, ref as w, computed as F, createElementBlock as f, openBlock as p, normalizeClass as C, createCommentVNode as k, createElementVNode as I, toDisplayString as $, createVNode as P, withKeys as L, withModifiers as M, createBlock as A, createSlots as N, withCtx as V, createTextVNode as S, watch as E, toRef as z, mergeProps as W, mergeModels as R, useModel as U, Fragment as _, renderList as G, withDirectives as X, vModelRadio as Q, resolveDirective as Z, unref as b, renderSlot as D } from "vue";
3
- import { w as q, _ as H, f as x, d as ee, u as oe, C as te, x as le } from "../.chunks/forms-C-fyoosd.es.js";
4
- import { TopPopup as se, TopPopupListItem as O, TopPopupWidgetInput as ae } from "../popup/popup.js";
1
+ import { Core as R } from "../core/app.js";
2
+ import { defineComponent as B, ref as w, computed as S, createElementBlock as f, openBlock as d, normalizeClass as A, createCommentVNode as T, createElementVNode as _, toDisplayString as C, createVNode as z, withKeys as L, withModifiers as P, createBlock as V, createSlots as O, withCtx as $, createTextVNode as I, watch as M, toRef as G, mergeProps as W, mergeModels as F, useModel as U, Fragment as E, renderList as K, withDirectives as j, vModelRadio as Q, resolveDirective as Z, unref as v, renderSlot as D, resolveDynamicComponent as q } from "vue";
3
+ import { w as x, _ as H, f as ee, d as te, u as oe, C as X, x as le, g as se } from "../.chunks/forms-DOGPN_TR.es.js";
4
+ import { TopPopup as ae, TopPopupListItem as N, TopPopupWidgetInput as ne } from "../popup/popup.js";
5
5
  import { invertKeyboardLayout as re } from "../utils/keyboard.js";
6
- import { _ as ne } from "../.chunks/menu.vue_vue_type_style_index_0_lang-Bi9Z81pC.es.js";
7
- const j = ["../assets/formsExt.css"].map((s) => import.meta.resolve(s));
8
- Y.insertCSSLinkToPage(j, !0);
9
- const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
6
+ import { _ as ie } from "../.chunks/menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js";
7
+ const Y = ["../assets/formsExt.css"].map((o) => import.meta.resolve(o));
8
+ R.insertCSSLinkToPage(Y, !0);
9
+ const ue = { class: "top-editArea_footer" }, de = /* @__PURE__ */ B({
10
10
  __name: "editArea",
11
11
  props: {
12
12
  defaultValue: { default: "" },
@@ -31,92 +31,92 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
31
31
  maxLength: {}
32
32
  },
33
33
  emits: ["submit", "close", "clickOnTitle"],
34
- setup(s, { emit: o }) {
35
- const e = s, a = o, n = w(e.defaultValue), t = w(e.isFocused), d = F(() => n.value !== e.defaultValue), c = (i) => {
36
- a("submit", i), n.value = e.defaultValue;
34
+ setup(o, { emit: e }) {
35
+ const l = o, a = e, n = w(l.defaultValue), t = w(l.isFocused), p = S(() => n.value !== l.defaultValue), c = (r) => {
36
+ a("submit", r), n.value = l.defaultValue;
37
37
  }, y = () => {
38
- if (e.forceShowCloseBtn && !d.value) {
38
+ if (l.forceShowCloseBtn && !p.value) {
39
39
  a("close");
40
40
  return;
41
41
  }
42
- n.value = e.defaultValue;
43
- }, g = () => {
44
- e.attachToKeyboard && a("clickOnTitle");
42
+ n.value = l.defaultValue;
43
+ }, k = () => {
44
+ l.attachToKeyboard && a("clickOnTitle");
45
45
  };
46
- return (i, m) => (p(), f("div", {
47
- class: C({
46
+ return (r, b) => (d(), f("div", {
47
+ class: A({
48
48
  "top-editArea": !0,
49
- "top-editArea-attachedToKeyboard": i.attachToKeyboard
49
+ "top-editArea-attachedToKeyboard": r.attachToKeyboard
50
50
  })
51
51
  }, [
52
- i.title ? (p(), f("div", {
52
+ r.title ? (d(), f("div", {
53
53
  key: 0,
54
54
  class: "top-editArea_title",
55
- onClick: m[0] || (m[0] = (r) => g())
56
- }, $(i.title), 1)) : k("", !0),
57
- I("div", {
58
- class: C({
55
+ onClick: b[0] || (b[0] = (u) => k())
56
+ }, C(r.title), 1)) : T("", !0),
57
+ _("div", {
58
+ class: A({
59
59
  "top-editArea_form": !0,
60
- "top-error": i.isError,
60
+ "top-error": r.isError,
61
61
  "top-focus": t.value
62
62
  })
63
63
  }, [
64
- P(q, {
64
+ z(x, {
65
65
  modelValue: n.value,
66
- "onUpdate:modelValue": m[1] || (m[1] = (r) => n.value = r),
67
- name: i.name,
68
- placeholder: i.placeholder,
69
- rows: i.rows,
70
- minHeight: i.minHeight,
71
- expandable: i.expandable,
72
- disabled: i.disabled,
73
- readonly: i.readonly,
74
- isError: i.isError,
75
- hint: i.hint,
66
+ "onUpdate:modelValue": b[1] || (b[1] = (u) => n.value = u),
67
+ name: r.name,
68
+ placeholder: r.placeholder,
69
+ rows: r.rows,
70
+ minHeight: r.minHeight,
71
+ expandable: r.expandable,
72
+ disabled: r.disabled,
73
+ readonly: r.readonly,
74
+ isError: r.isError,
75
+ hint: r.hint,
76
76
  class: "top-editArea_element",
77
- onFocus: m[2] || (m[2] = () => t.value = !0),
78
- onBlur: m[3] || (m[3] = () => t.value = !1),
77
+ onFocus: b[2] || (b[2] = () => t.value = !0),
78
+ onBlur: b[3] || (b[3] = () => t.value = !1),
79
79
  onKeyup: [
80
80
  L(y, ["esc"]),
81
- m[4] || (m[4] = L(M((r) => c(n.value), ["ctrl"]), ["enter"]))
81
+ b[4] || (b[4] = L(P((u) => c(n.value), ["ctrl"]), ["enter"]))
82
82
  ]
83
83
  }, null, 8, ["modelValue", "name", "placeholder", "rows", "minHeight", "expandable", "disabled", "readonly", "isError", "hint"]),
84
- I("div", ie, [
85
- d.value || i.forceShowCloseBtn ? (p(), A(H, {
84
+ _("div", ue, [
85
+ p.value || r.forceShowCloseBtn ? (d(), V(H, {
86
86
  key: 0,
87
- icon: i.$core.state.isMobile ? "" : "",
87
+ icon: r.$core.state.isMobile ? "" : "",
88
88
  class: "top-editArea_button",
89
89
  color: "theme",
90
90
  styling: "soft",
91
91
  onClick: y
92
- }, N({ _: 2 }, [
93
- i.$core.state.isMobile ? void 0 : {
92
+ }, O({ _: 2 }, [
93
+ r.$core.state.isMobile ? void 0 : {
94
94
  name: "default",
95
- fn: V(() => [
96
- S($(i.cancelText), 1)
95
+ fn: $(() => [
96
+ I(C(r.cancelText), 1)
97
97
  ]),
98
98
  key: "0"
99
99
  }
100
- ]), 1032, ["icon"])) : k("", !0),
101
- d.value ? (p(), A(H, {
100
+ ]), 1032, ["icon"])) : T("", !0),
101
+ p.value ? (d(), V(H, {
102
102
  key: 1,
103
103
  class: "top-editArea_button",
104
- icon: i.$core.state.isMobile ? "" : "",
105
- onClick: m[5] || (m[5] = (r) => c(n.value))
106
- }, N({ _: 2 }, [
107
- i.$core.state.isMobile ? void 0 : {
104
+ icon: r.$core.state.isMobile ? "" : "",
105
+ onClick: b[5] || (b[5] = (u) => c(n.value))
106
+ }, O({ _: 2 }, [
107
+ r.$core.state.isMobile ? void 0 : {
108
108
  name: "default",
109
- fn: V(() => [
110
- S($(i.submitText), 1)
109
+ fn: $(() => [
110
+ I(C(r.submitText), 1)
111
111
  ]),
112
112
  key: "0"
113
113
  }
114
- ]), 1032, ["icon"])) : k("", !0)
114
+ ]), 1032, ["icon"])) : T("", !0)
115
115
  ])
116
116
  ], 2)
117
117
  ], 2));
118
118
  }
119
- }), de = { class: "top-editInput" }, pe = /* @__PURE__ */ B({
119
+ }), pe = { class: "top-editInput" }, ce = /* @__PURE__ */ B({
120
120
  __name: "editInput",
121
121
  props: {
122
122
  modelValue: {},
@@ -124,34 +124,34 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
124
124
  button: {}
125
125
  },
126
126
  emits: ["update:modelValue"],
127
- setup(s, { emit: o }) {
128
- const e = s, a = w(e.modelValue);
129
- E(z(e.modelValue), () => {
130
- a.value = e.modelValue;
127
+ setup(o, { emit: e }) {
128
+ const l = o, a = w(l.modelValue);
129
+ M(G(l.modelValue), () => {
130
+ a.value = l.modelValue;
131
131
  });
132
- const n = o, t = () => {
132
+ const n = e, t = () => {
133
133
  n("update:modelValue", a.value);
134
134
  };
135
- return (d, c) => (p(), f("div", de, [
136
- P(x, W(d.input, {
137
- onKeydownCapture: c[0] || (c[0] = L(M((y) => a.value = d.modelValue, ["stop"]), ["esc"])),
138
- onKeydown: L(M(t, ["stop"]), ["enter"]),
135
+ return (p, c) => (d(), f("div", pe, [
136
+ z(ee, W(p.input, {
137
+ onKeydownCapture: c[0] || (c[0] = L(P((y) => a.value = p.modelValue, ["stop"]), ["esc"])),
138
+ onKeydown: L(P(t, ["stop"]), ["enter"]),
139
139
  modelValue: a.value,
140
140
  "onUpdate:modelValue": c[1] || (c[1] = (y) => a.value = y)
141
141
  }), null, 16, ["onKeydown", "modelValue"]),
142
- a.value !== d.modelValue ? (p(), A(H, W({
142
+ a.value !== p.modelValue ? (d(), V(H, W({
143
143
  key: 0,
144
144
  icon: "",
145
145
  styling: "soft"
146
- }, d.button, { onClick: t }), null, 16)) : k("", !0)
146
+ }, p.button, { onClick: t }), null, 16)) : T("", !0)
147
147
  ]));
148
148
  }
149
- }), ce = ["data-top-icon", "onClick"], me = {
149
+ }), me = ["data-top-icon", "onClick"], fe = {
150
150
  key: 0,
151
151
  class: "top-radioGroup_circle"
152
- }, fe = ["value", "disabled"], ve = /* @__PURE__ */ B({
152
+ }, ve = ["value", "disabled"], ye = /* @__PURE__ */ B({
153
153
  __name: "radioGroup",
154
- props: /* @__PURE__ */ R({
154
+ props: /* @__PURE__ */ F({
155
155
  modelValue: {},
156
156
  radiosProps: {},
157
157
  showIndicator: { type: Boolean },
@@ -164,53 +164,53 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
164
164
  modelModifiers: {}
165
165
  }),
166
166
  emits: ["update:modelValue"],
167
- setup(s) {
168
- const o = U(s, "modelValue"), e = s, a = w(null);
169
- E(o, () => {
170
- var t, d, c, y, g;
171
- (t = e.radiosProps) != null && t.some((i) => i.value === o.value) || (o.value = ((c = (d = e.radiosProps) == null ? void 0 : d[0]) == null ? void 0 : c.value) ?? ""), (g = (y = a.value) == null ? void 0 : y.querySelector(".radioGroup_item-selected")) == null || g.scrollIntoView();
167
+ setup(o) {
168
+ const e = U(o, "modelValue"), l = o, a = w(null);
169
+ M(e, () => {
170
+ var t, p, c, y, k;
171
+ (t = l.radiosProps) != null && t.some((r) => r.value === e.value) || (e.value = ((c = (p = l.radiosProps) == null ? void 0 : p[0]) == null ? void 0 : c.value) ?? ""), (k = (y = a.value) == null ? void 0 : y.querySelector(".radioGroup_item-selected")) == null || k.scrollIntoView();
172
172
  }, { immediate: !0 });
173
173
  const n = "radioGroup-" + Math.random();
174
- return (t, d) => (p(), f("div", {
174
+ return (t, p) => (d(), f("div", {
175
175
  ref_key: "elRef",
176
176
  ref: a,
177
- class: C({
177
+ class: A({
178
178
  "top-radioGroup": !0,
179
179
  "top-scrollBarXHidding": !0,
180
180
  ["top-size_" + t.size]: !!t.size,
181
181
  "top-error": t.isError
182
182
  })
183
183
  }, [
184
- (p(!0), f(_, null, G(t.radiosProps, (c) => (p(), f("label", {
185
- class: C({
186
- "top-radioGroup_item-selected": c.value === o.value,
184
+ (d(!0), f(E, null, K(t.radiosProps, (c) => (d(), f("label", {
185
+ class: A({
186
+ "top-radioGroup_item-selected": c.value === e.value,
187
187
  "top-radioGroup_item": !0,
188
188
  "top-forms-focusable": !0,
189
189
  "top-disabled": c.disabled
190
190
  }),
191
191
  "data-top-icon": c.icon,
192
- onClick: (y) => o.value = c.value
192
+ onClick: (y) => e.value = c.value
193
193
  }, [
194
- S($(c.title) + " ", 1),
195
- t.showIndicator ? (p(), f("span", me)) : k("", !0),
196
- X(I("input", {
197
- "onUpdate:modelValue": d[0] || (d[0] = (y) => o.value = y),
194
+ I(C(c.title) + " ", 1),
195
+ t.showIndicator ? (d(), f("span", fe)) : T("", !0),
196
+ j(_("input", {
197
+ "onUpdate:modelValue": p[0] || (p[0] = (y) => e.value = y),
198
198
  name: n,
199
199
  type: "radio",
200
- class: C({
200
+ class: A({
201
201
  "top-unvisible": !0
202
202
  }),
203
203
  value: c.value,
204
204
  disabled: c.disabled
205
- }, null, 8, fe), [
206
- [Q, o.value]
205
+ }, null, 8, ve), [
206
+ [Q, e.value]
207
207
  ])
208
- ], 10, ce))), 256))
208
+ ], 10, me))), 256))
209
209
  ], 2));
210
210
  }
211
- }), ye = ["data-top-icon"], he = ["value", "checked", "disabled", "onChange"], be = /* @__PURE__ */ B({
211
+ }), he = ["data-top-icon"], be = ["value", "checked", "disabled", "onChange"], ge = /* @__PURE__ */ B({
212
212
  __name: "checkboxGroup",
213
- props: /* @__PURE__ */ R({
213
+ props: /* @__PURE__ */ F({
214
214
  modelValue: {},
215
215
  items: {},
216
216
  size: { default: "s" },
@@ -223,13 +223,13 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
223
223
  modelModifiers: {}
224
224
  }),
225
225
  emits: ["update:modelValue"],
226
- setup(s) {
227
- const o = U(s, "modelValue"), e = (a) => {
228
- const n = [...o.value], t = n.indexOf(a);
229
- t === -1 ? n.push(a) : n.splice(t, 1), o.value = n;
226
+ setup(o) {
227
+ const e = U(o, "modelValue"), l = (a) => {
228
+ const n = [...e.value], t = n.indexOf(a);
229
+ t === -1 ? n.push(a) : n.splice(t, 1), e.value = n;
230
230
  };
231
- return (a, n) => (p(), f("div", {
232
- class: C({
231
+ return (a, n) => (d(), f("div", {
232
+ class: A({
233
233
  "top-checkboxGroup": !0,
234
234
  ["top-checkboxGroup-" + a.styling]: !0,
235
235
  "top-scrollBarXHidding": !0,
@@ -237,126 +237,136 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
237
237
  "top-error": a.isError
238
238
  })
239
239
  }, [
240
- (p(!0), f(_, null, G(a.items, (t) => (p(), f("label", {
240
+ (d(!0), f(E, null, K(a.items, (t) => (d(), f("label", {
241
241
  key: t.id,
242
- class: C({
242
+ class: A({
243
243
  "top-checkboxGroup_item": !0,
244
- "top-checkboxGroup_item-selected": o.value.includes(t.id),
244
+ "top-checkboxGroup_item-selected": e.value.includes(t.id),
245
245
  "top-forms-focusable": !0,
246
246
  "top-disabled": t.disabled
247
247
  }),
248
248
  "data-top-icon": t.icon
249
249
  }, [
250
- I("input", {
250
+ _("input", {
251
251
  type: "checkbox",
252
252
  class: "top-unvisible",
253
253
  value: t.id,
254
- checked: o.value.includes(t.id),
254
+ checked: e.value.includes(t.id),
255
255
  disabled: t.disabled,
256
- onChange: (d) => e(t.id)
257
- }, null, 40, he),
258
- S(" " + $(t.title), 1)
259
- ], 10, ye))), 128))
256
+ onChange: (p) => l(t.id)
257
+ }, null, 40, be),
258
+ I(" " + C(t.title), 1)
259
+ ], 10, he))), 128))
260
260
  ], 2));
261
261
  }
262
- }), ge = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ B({
262
+ }), Te = { class: "top-selector2_itemMulti top-ellipsis" }, ke = /* @__PURE__ */ B({
263
263
  __name: "itemMulti",
264
264
  props: {
265
265
  id: {},
266
266
  name: {}
267
267
  },
268
268
  emits: ["delete"],
269
- setup(s) {
270
- return (o, e) => (p(), f("div", ge, [
271
- S($(o.name) + " ", 1),
272
- I("span", {
269
+ setup(o) {
270
+ return (e, l) => (d(), f("div", Te, [
271
+ I(C(e.name) + " ", 1),
272
+ _("span", {
273
273
  class: "top-selector2_itemMultiDelete",
274
274
  "data-top-icon": "",
275
- onClick: e[0] || (e[0] = (a) => o.$emit("delete", o.id)),
276
- onMousedown: e[1] || (e[1] = M(() => {
275
+ onClick: l[0] || (l[0] = (a) => e.$emit("delete", e.id)),
276
+ onMousedown: l[1] || (l[1] = P(() => {
277
277
  }, ["stop"]))
278
278
  }, null, 32)
279
279
  ]));
280
280
  }
281
- }), we = (s, o, e) => {
281
+ }), Ce = (o, e, l) => {
282
282
  const a = w([]), n = w(!1);
283
- let t = "", d;
284
- s && !s.params.limit && (s.params.limit = 100);
283
+ let t = "", p;
284
+ o && !o.params.limit && (o.params.limit = 100);
285
285
  const c = async () => {
286
- if (!s) return;
287
- let r, v;
288
- if (e && (s.cache ??= /* @__PURE__ */ new Map(), v = JSON.stringify(s.params), r = s.cache.get(v), r))
289
- return r;
290
- if (n.value = !0, r = await s.call(), n.value = !1, r.errors) return;
291
- if (!Array.isArray(r.result)) {
286
+ if (!o) return;
287
+ let u, s;
288
+ if (l && (o.cache ??= /* @__PURE__ */ new Map(), s = JSON.stringify(o.params), u = o.cache.get(s), u))
289
+ return u;
290
+ if (n.value = !0, u = await o.call(), n.value = !1, u.errors) return;
291
+ if (!Array.isArray(u.result)) {
292
292
  console.warn("В result ожидался массив");
293
293
  return;
294
294
  }
295
- const l = r.result.findIndex((u) => u.id === void 0 || u.name === void 0);
296
- if (l !== -1) {
297
- console.warn(`В result[${l}] нет id или name`);
295
+ const i = u.result.findIndex((h) => h.id === void 0 || h.name === void 0);
296
+ if (i !== -1) {
297
+ console.warn(`В result[${i}] нет id или name`);
298
298
  return;
299
299
  }
300
- return e && s.cache.set(v, r), r;
300
+ return l && o.cache.set(s, u), u;
301
301
  }, y = async () => {
302
- if (!s) return;
303
- s.params.offset = 0, s.params.search = t;
304
- const r = await c();
305
- r && (d = r.nextOffset, a.value = r.result);
306
- }, g = async () => {
307
- if (!s || !d || n.value) return;
308
- s.params.offset = d, s.params.search = t;
309
- const r = await c();
310
- r && (d = r.nextOffset, a.value = a.value.concat(r.result));
311
- }, i = ee(() => y(), 200);
302
+ if (!o) return;
303
+ o.params.offset = 0, o.params.search = t;
304
+ const u = await c();
305
+ u && (p = u.nextOffset, a.value = u.result);
306
+ }, k = async () => {
307
+ if (!o || !p || n.value) return;
308
+ o.params.offset = p, o.params.search = t;
309
+ const u = await c();
310
+ u && (p = u.nextOffset, a.value = a.value.concat(u.result));
311
+ }, r = te(() => y(), 200);
312
312
  return {
313
- apiRequest: s,
313
+ apiRequest: o,
314
314
  items: a,
315
315
  isLoading: n,
316
- loadAppend: g,
317
- setSearchTextAndLoad: (r, v = !0) => {
318
- s && (r.length < o || r === t && a.value.length || (t = r, v ? i() : y()));
316
+ loadAppend: k,
317
+ setSearchTextAndLoad: (u, s = !0) => {
318
+ o && (u.length < e || u === t && a.value.length || (t = u, s ? r() : y()));
319
319
  }
320
320
  };
321
- }, Ce = 0, J = (s, o, e = !0) => e && o.id === null ? Array.isArray(s) ? s.some((a) => a.id === o.id && a.name === o.name) : o.name === s.name : Array.isArray(s) ? s.some((a) => a.id === o.id) : o.id === s.id, $e = (s, o, e, a, n, t) => {
322
- const d = w(""), c = {
323
- id: Ce,
321
+ }, $e = 0, J = (o, e, l = !0) => l && e.id === null ? Array.isArray(o) ? o.some((a) => a.id === e.id && a.name === e.name) : e.name === o.name : Array.isArray(o) ? o.some((a) => a.id === e.id) : e.id === o.id, Ae = (o, e, l, a, n, t) => {
322
+ const p = w(""), c = {
323
+ id: $e,
324
324
  name: oe().Common.All
325
325
  }, y = () => {
326
- d.value = "", t.items.value = [];
327
- }, g = F(() => {
328
- var r;
329
- const m = [];
330
- return !e && a.value && m.push(c), (r = o.value) == null || r.forEach((v) => m.push({ ...v })), m;
331
- }), i = F(() => {
332
- const m = d.value.toLowerCase(), r = re(m);
333
- let v = [];
334
- return g.value.forEach((l) => {
335
- const u = l.name.toLowerCase();
336
- (l.id === Number(m) || u.includes(m) || u.includes(r)) && (u === m || u === r ? v.unshift(l) : v.push(l));
337
- }), v.push(...t.items.value), n.value && d.value && (!v.length || v[0].name.toLowerCase() !== m) && v.push({
326
+ p.value = "", t.items.value = [];
327
+ }, k = S(() => {
328
+ var i;
329
+ const s = [];
330
+ return !l && a.value && s.push(c), (i = e.value) == null || i.forEach((h) => s.push({ ...h })), s;
331
+ }), r = S(() => {
332
+ const s = p.value.toLowerCase(), i = re(s);
333
+ let h = [];
334
+ return k.value.forEach((m) => {
335
+ const g = m.name.toLowerCase();
336
+ (m.id === Number(s) || g.includes(s) || g.includes(i)) && (g === s || g === i ? h.unshift(m) : h.push(m));
337
+ }), h.push(...t.items.value), n.value && p.value && (!h.length || h[0].name.toLowerCase() !== s) && h.push({
338
338
  id: null,
339
- name: d.value
340
- }), e && (v = v.filter((l) => !J(s.value, l))), v;
339
+ name: p.value
340
+ }), l && (h = h.filter((m) => !J(o.value, m))), h;
341
341
  });
342
342
  return {
343
- searchText: d,
343
+ searchText: p,
344
344
  resetSearch: y,
345
- items: g,
346
- itemsForShow: i
345
+ items: k,
346
+ itemsForShow: r,
347
+ selectNextItem: () => {
348
+ if (!Array.isArray(o.value)) {
349
+ const i = (r.value.findIndex((h) => h.id === o.value.id) + 1) % r.value.length;
350
+ o.value = { ...r.value[i] };
351
+ }
352
+ },
353
+ deleteItemById: async (s) => {
354
+ Array.isArray(o.value) && (o.value = o.value.filter((i) => i.id !== s));
355
+ }
347
356
  };
348
- }, Te = {
357
+ }, Ve = {
349
358
  key: 0,
350
359
  class: "top-selector2_activeItems"
351
- }, Ve = {
360
+ }, we = {
352
361
  key: 1,
353
362
  class: "top-selector2_activeName top-ellipsis"
354
- }, Ae = /* @__PURE__ */ B({
363
+ }, _e = /* @__PURE__ */ B({
355
364
  __name: "selector2",
356
- props: /* @__PURE__ */ R({
365
+ props: /* @__PURE__ */ F({
357
366
  modelValue: {},
358
367
  items: { default: () => [] },
359
368
  multiselect: { type: Boolean },
369
+ title: {},
360
370
  disabled: { type: Boolean },
361
371
  size: { default: "s" },
362
372
  isError: { type: Boolean },
@@ -366,163 +376,158 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
366
376
  appendSearchToResult: { type: Boolean },
367
377
  appendAllValue: { type: Boolean },
368
378
  addChanger: { type: Boolean },
379
+ searchType: { default: "popup" },
369
380
  placeholder: {},
370
- showSelectedInInput: { type: Boolean, default: !0 },
371
- showSearch: { type: Boolean, default: !0 }
381
+ selectedAsPlaceholder: { type: Boolean, default: !0 }
372
382
  }, {
373
383
  modelValue: { required: !0 },
374
384
  modelModifiers: {}
375
385
  }),
376
386
  emits: ["update:modelValue"],
377
- setup(s) {
378
- const o = s, e = U(s, "modelValue"), a = w(null), n = we(o.apiRequest, o.minLength || 0, o.useCache), t = $e(e, z(o, "items"), o.multiselect, z(o, "appendAllValue"), z(o, "appendSearchToResult"), n), d = w(null), c = () => {
379
- var l;
380
- return (l = d.value) == null ? void 0 : l.popup;
381
- }, y = () => {
382
- if (!Array.isArray(e.value)) {
383
- const u = (t.itemsForShow.value.findIndex((K) => K.id === e.value.id) + 1) % t.itemsForShow.value.length;
384
- e.value = { ...t.itemsForShow.value[u] };
385
- }
386
- }, g = async (l) => {
387
- Array.isArray(e.value) && (e.value = e.value.filter((u) => u.id !== l), setTimeout(() => {
388
- var u;
389
- (u = c()) == null || u.recalcPosition();
390
- }));
391
- }, i = w(!1);
392
- n.apiRequest && (E(i, () => {
393
- i.value && n.setSearchTextAndLoad(t.searchText.value, !1);
394
- }), E(t.searchText, () => n.setSearchTextAndLoad(t.searchText.value)));
395
- const m = (l) => {
396
- o.multiselect && Array.isArray(e.value) ? J(e.value, l) || (e.value = [...e.value, l]) : e.value = l;
397
- }, r = () => {
398
- var l;
399
- i.value = !1, (l = a.value) == null || l.focus(), t.searchText.value && t.resetSearch();
400
- }, v = (l) => {
401
- const u = l.target;
402
- u.scrollTop / (u.scrollHeight - u.offsetHeight) > 0.8 && n.loadAppend();
387
+ setup(o) {
388
+ const e = o, l = U(o, "modelValue"), a = w(null), n = Ce(e.apiRequest, e.minLength || 0, e.useCache), t = Ae(l, G(e, "items"), e.multiselect, G(e, "appendAllValue"), G(e, "appendSearchToResult"), n), p = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType), c = S(() => p.value === "inline" ? "TopInput" : "div");
389
+ n.apiRequest && M(t.searchText, () => n.setSearchTextAndLoad(t.searchText.value));
390
+ const y = (s) => {
391
+ e.multiselect && Array.isArray(l.value) ? J(l.value, s) || (l.value = [...l.value, s]) : l.value = s;
392
+ }, k = S(() => Array.isArray(l.value) || e.multiselect || !e.selectedAsPlaceholder ? e.placeholder : l.value.name || e.placeholder), r = () => {
393
+ n.apiRequest && n.setSearchTextAndLoad(t.searchText.value, !1);
394
+ }, b = () => {
395
+ var s;
396
+ (s = a.value) == null || s.focus(), t.searchText.value && t.resetSearch();
397
+ }, u = (s) => {
398
+ const i = s.target;
399
+ i.scrollTop / (i.scrollHeight - i.offsetHeight) > 0.8 && n.loadAppend();
403
400
  };
404
- return window.__STORYBOOK_PREVIEW__ && !o.modelValue && E(
405
- () => o.multiselect,
401
+ return window.__STORYBOOK_PREVIEW__ && (M(
402
+ () => e.multiselect,
406
403
  () => {
407
- e.value = o.multiselect ? [] : { id: null, name: "" };
404
+ l.value = e.multiselect ? [] : { id: null, name: "" };
408
405
  },
409
406
  { immediate: !0 }
410
- ), (l, u) => {
411
- const K = Z("top-focus");
412
- return p(), A(b(se), {
413
- ref_key: "popupRef",
414
- ref: d,
415
- onOpen: u[3] || (u[3] = (h) => i.value = !0),
416
- onClose: u[4] || (u[4] = (h) => r()),
417
- onScrollContentList: u[5] || (u[5] = (h) => l.apiRequest ? v(h) : void 0),
407
+ ), M(
408
+ () => e.searchType,
409
+ () => {
410
+ setTimeout(() => {
411
+ location.reload();
412
+ }, 300);
413
+ }
414
+ )), (s, i) => {
415
+ const h = Z("top-focus");
416
+ return d(), V(v(ae), {
417
+ onOpen: i[4] || (i[4] = (m) => r()),
418
+ onClose: i[5] || (i[5] = (m) => b()),
419
+ onScrollContentList: i[6] || (i[6] = (m) => s.apiRequest ? u(m) : void 0),
418
420
  notch: !1,
419
421
  transitionDuration: 0
420
- }, N({
421
- opener: V(() => [
422
- X((p(), f("div", {
423
- ref_key: "elRef",
424
- ref: a,
425
- class: C({
422
+ }, O({
423
+ opener: $(() => [
424
+ j((d(), V(q(c.value), {
425
+ ref: "subcomponentSelector",
426
+ class: A({
426
427
  "top-selector2": !0,
427
- "top-selector2-multiselect": l.multiselect,
428
- ["top-size_" + l.size]: !0,
429
- "top-disabled": l.disabled,
430
- "top-forms-focusable": !l.disabled,
431
- "top-error": l.isError
428
+ "top-selector2-multiselect": s.multiselect,
429
+ ["top-size_" + s.size]: !0,
430
+ "top-disabled": s.disabled,
431
+ "top-forms-focusable": !s.disabled,
432
+ "top-error": s.isError
432
433
  }),
433
434
  onKeydown: [
434
- u[0] || (u[0] = L(M((h) => h.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
435
- u[1] || (u[1] = L((h) => e.value = [], ["delete"]))
435
+ i[1] || (i[1] = L(P((m) => m.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
436
+ i[2] || (i[2] = L((m) => l.value = [], ["delete"]))
436
437
  ],
437
438
  tabindex: "0"
438
- }, [
439
- l.multiselect ? (p(), f("div", Te, [
440
- (p(!0), f(_, null, G(e.value, (h) => (p(), A(ke, {
441
- id: h.id,
442
- name: h.name,
443
- onDelete: g
444
- }, null, 8, ["id", "name"]))), 256))
445
- ])) : k("", !0),
446
- l.multiselect ? k("", !0) : (p(), f("span", Ve, $(Array.isArray(e.value) ? "" : e.value.name), 1)),
447
- l.addChanger && !l.multiselect && b(t).items.value.length > 1 && !l.disabled ? (p(), f("span", {
448
- key: 2,
449
- class: "top-changer top-changer-selector",
450
- "data-top-popup-disabled": "true",
451
- onClick: y
452
- })) : k("", !0)
453
- ], 34)), [
439
+ }, {
440
+ default: $(() => [
441
+ s.multiselect ? (d(), f("div", Ve, [
442
+ (d(!0), f(E, null, K(l.value, (m) => (d(), V(ke, {
443
+ id: m.id,
444
+ name: m.name,
445
+ onDelete: v(t).deleteItemById
446
+ }, null, 8, ["id", "name", "onDelete"]))), 256))
447
+ ])) : T("", !0),
448
+ s.multiselect ? T("", !0) : (d(), f("span", we, C(Array.isArray(l.value) ? "" : l.value.name), 1)),
449
+ s.addChanger && !s.multiselect && v(t).items.value.length > 1 && !s.disabled ? (d(), f("span", {
450
+ key: 2,
451
+ class: "top-changer top-changer-selector",
452
+ "data-top-popup-disabled": "true",
453
+ onClick: i[0] || (i[0] = //@ts-ignore
454
+ (...m) => v(t).selectNextItem && v(t).selectNextItem(...m))
455
+ })) : T("", !0)
456
+ ]),
457
+ _: 1
458
+ }, 40, ["class"])), [
454
459
  [
455
- K,
456
- l.isError,
460
+ h,
461
+ s.isError,
457
462
  void 0,
458
463
  { onupdate: !0 }
459
464
  ]
460
465
  ])
461
466
  ]),
462
- contentList: V(() => {
463
- var h;
467
+ contentList: $(() => {
468
+ var m;
464
469
  return [
465
- (p(!0), f(_, null, G(b(t).itemsForShow.value, (T) => (p(), A(b(O), {
466
- class: C({
467
- "top-active": !Array.isArray(e.value) && !l.multiselect && e.value.id === T.id && e.value.name === T.name
470
+ (d(!0), f(E, null, K(v(t).itemsForShow.value, (g) => (d(), V(v(N), {
471
+ class: A({
472
+ "top-active": !Array.isArray(l.value) && !s.multiselect && l.value.id === g.id && l.value.name === g.name
468
473
  }),
469
- key: T.id ?? void 0,
470
- closeByClick: !l.multiselect || b(te).state.isMobile,
471
- onClick: (Ee) => m(T)
474
+ key: g.id ?? void 0,
475
+ closeByClick: !s.multiselect || v(X).state.isMobile,
476
+ onClick: (Ge) => y(g)
472
477
  }, {
473
- default: V(() => [
474
- l.$slots.item ? D(l.$slots, "item", {
478
+ default: $(() => [
479
+ s.$slots.item ? D(s.$slots, "item", {
475
480
  key: 0,
476
- item: T
477
- }) : (p(), f(_, { key: 1 }, [
478
- S($(T.name), 1)
481
+ item: g
482
+ }) : (d(), f(E, { key: 1 }, [
483
+ I(C(g.name), 1)
479
484
  ], 64))
480
485
  ]),
481
486
  _: 2
482
487
  }, 1032, ["class", "closeByClick", "onClick"]))), 128)),
483
- !b(n).isLoading.value && !b(t).itemsForShow.value.length ? (p(), A(b(O), {
488
+ !v(n).isLoading.value && !v(t).itemsForShow.value.length ? (d(), V(v(N), {
484
489
  key: 0,
485
490
  type: "regular"
486
491
  }, {
487
- default: V(() => [
488
- S($(l.$i18n.Common.No_results), 1)
492
+ default: $(() => [
493
+ I(C(s.$i18n.Common.No_results), 1)
489
494
  ]),
490
495
  _: 1
491
- })) : k("", !0),
492
- b(n).isLoading.value && (!l.showSearch || (h = l.apiRequest) != null && h.params.offset) ? (p(), A(b(O), {
496
+ })) : T("", !0),
497
+ v(n).isLoading.value && (s.searchType !== "popup" || (m = s.apiRequest) != null && m.params.offset) ? (d(), V(v(N), {
493
498
  key: 1,
494
499
  type: "regular"
495
500
  }, {
496
- default: V(() => [
497
- P(b(le), { type: "circles" })
501
+ default: $(() => [
502
+ z(v(le), { type: "circles" })
498
503
  ]),
499
504
  _: 1
500
- })) : k("", !0)
505
+ })) : T("", !0)
501
506
  ];
502
507
  }),
503
508
  _: 2
504
509
  }, [
505
- l.showSearch ? {
510
+ s.searchType === "popup" ? {
506
511
  name: "widget",
507
- fn: V(() => {
508
- var h;
512
+ fn: $(() => {
513
+ var m;
509
514
  return [
510
- P(b(ae), {
515
+ z(v(ne), {
511
516
  title: "Поиск",
512
517
  icon: "",
513
- modelValue: b(t).searchText.value,
514
- "onUpdate:modelValue": u[2] || (u[2] = (T) => b(t).searchText.value = T),
515
- isLoading: b(n).isLoading.value && !((h = l.apiRequest) != null && h.params.offset),
516
- placeholder: !Array.isArray(e.value) && !l.multiselect && l.showSelectedInInput ? e.value.name : l.placeholder
518
+ modelValue: v(t).searchText.value,
519
+ "onUpdate:modelValue": i[3] || (i[3] = (g) => v(t).searchText.value = g),
520
+ isLoading: v(n).isLoading.value && !((m = s.apiRequest) != null && m.params.offset),
521
+ placeholder: k.value
517
522
  }, null, 8, ["modelValue", "isLoading", "placeholder"])
518
523
  ];
519
524
  }),
520
525
  key: "0"
521
526
  } : void 0
522
- ]), 1536);
527
+ ]), 1024);
523
528
  };
524
529
  }
525
- }), Se = ["data-top-icon"], Be = { class: "top-info_text" }, Ie = {
530
+ }), Ie = ["data-top-icon"], Be = { class: "top-info_text" }, Se = {
526
531
  key: 0,
527
532
  class: "top-info_value"
528
533
  }, Le = /* @__PURE__ */ B({
@@ -532,31 +537,63 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
532
537
  styling: { default: "default" },
533
538
  size: { default: "default" }
534
539
  },
535
- setup(s) {
536
- return (o, e) => (p(), f("div", {
537
- class: C({
540
+ setup(o) {
541
+ return (e, l) => (d(), f("div", {
542
+ class: A({
538
543
  "top-info": !0,
539
- ["top-size_" + o.size]: !0,
540
- ["top-info-styling_" + o.styling]: !0
544
+ ["top-size_" + e.size]: !0,
545
+ ["top-info-styling_" + e.styling]: !0
541
546
  }),
542
- "data-top-icon": o.icon
547
+ "data-top-icon": e.icon
543
548
  }, [
544
- I("div", Be, [
545
- D(o.$slots, "default")
549
+ _("div", Be, [
550
+ D(e.$slots, "default")
546
551
  ]),
547
- o.$slots.additional ? (p(), f("span", Ie, [
548
- D(o.$slots, "additional")
549
- ])) : k("", !0)
550
- ], 10, Se));
552
+ e.$slots.additional ? (d(), f("span", Se, [
553
+ D(e.$slots, "additional")
554
+ ])) : T("", !0)
555
+ ], 10, Ie));
556
+ }
557
+ }), Me = {
558
+ key: 0,
559
+ class: "top-policy"
560
+ }, Ee = { class: "top-policy_title" }, ze = ["innerHTML"], Pe = /* @__PURE__ */ B({
561
+ __name: "policy",
562
+ props: {
563
+ title: {},
564
+ text: {}
565
+ },
566
+ setup(o) {
567
+ const e = w(!0), l = () => {
568
+ const a = location.hostname.split(".").slice(-2).join(".");
569
+ document.cookie = `cookie_consent=accepted; path=/; domain=.${a}; max-age=31536000`, e.value = !1;
570
+ };
571
+ return (a, n) => e.value ? (d(), f("div", Me, [
572
+ _("div", Ee, C(a.title), 1),
573
+ _("div", {
574
+ class: "top-policy_description",
575
+ innerHTML: a.text
576
+ }, null, 8, ze),
577
+ z(v(se), {
578
+ size: "m",
579
+ onClick: l
580
+ }, {
581
+ default: $(() => [
582
+ I(C(a.$i18n.Common.Allow), 1)
583
+ ]),
584
+ _: 1
585
+ })
586
+ ])) : T("", !0);
551
587
  }
552
- }), Oe = ue, Fe = pe, Ne = ve, De = be, He = Ae, Re = ne, Ue = Le;
588
+ }), Ue = de, We = ce, Xe = ye, je = ge, Je = _e, Re = ie, Ye = Le, Qe = Pe;
553
589
  export {
554
- De as TopCheckboxGroup,
555
- Oe as TopEditArea,
556
- Fe as TopEditInput,
557
- Ue as TopInfo,
590
+ je as TopCheckboxGroup,
591
+ Ue as TopEditArea,
592
+ We as TopEditInput,
593
+ Ye as TopInfo,
558
594
  Re as TopMenu,
559
- Ne as TopRadioGroup,
560
- He as TopSelector2
595
+ Qe as TopPolicy,
596
+ Xe as TopRadioGroup,
597
+ Je as TopSelector2
561
598
  };
562
599
  //# sourceMappingURL=formsExt.js.map